-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/preact
- Loading branch information
Showing
122 changed files
with
2,611 additions
and
835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/survey-angular-ui/src/components/list/list-item-content.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<ng-template #template> | ||
<svg *ngIf="model.iconName" [class]="listModel.cssClasses.itemIcon" [iconName]="model.iconName" [size]="model.iconSize" | ||
sv-ng-svg-icon></svg> | ||
<sv-ng-string [model]="model.locTitle"></sv-ng-string> | ||
<svg *ngIf="model.markerIconName" [class]="model.cssClasses.itemMarkerIcon" [iconName]="model.markerIconName" [size]="model.markerIconSize" | ||
sv-ng-svg-icon></svg> | ||
</ng-template> |
22 changes: 22 additions & 0 deletions
22
packages/survey-angular-ui/src/components/list/list-item-content.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Component, Input } from "@angular/core"; | ||
import { ListModel, Action } from "survey-core"; | ||
import { BaseAngular } from "../../base-angular"; | ||
import { AngularComponentFactory } from "../../component-factory"; | ||
|
||
@Component({ | ||
selector: "sv-ng-list-item-content, '[sv-ng-list-item-content]'", | ||
templateUrl: "./list-item-content.component.html", | ||
styleUrls: ["../../hide-host.scss"], | ||
}) | ||
|
||
export class ListItemContentComponent extends BaseAngular { | ||
@Input() element: any; | ||
@Input() model!: Action; | ||
@Input() listModel!: ListModel; | ||
|
||
getModel() { | ||
return this.model; | ||
} | ||
} | ||
|
||
AngularComponentFactory.Instance.registerComponent("sv-list-item-content", ListItemContentComponent); |
4 changes: 4 additions & 0 deletions
4
packages/survey-angular-ui/src/components/list/list-item-group.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<ng-template #template> | ||
<sv-ng-list-item-content [model]="model" [listModel]="listModel"></sv-ng-list-item-content> | ||
<sv-ng-popup [popupModel]="model.popupModel"></sv-ng-popup> | ||
</ng-template> |
22 changes: 22 additions & 0 deletions
22
packages/survey-angular-ui/src/components/list/list-item-group.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Component, Input } from "@angular/core"; | ||
import { ListModel, Action } from "survey-core"; | ||
import { BaseAngular } from "../../base-angular"; | ||
import { AngularComponentFactory } from "../../component-factory"; | ||
|
||
@Component({ | ||
selector: "sv-ng-list-item-group, '[sv-ng-list-item-group]'", | ||
templateUrl: "./list-item-group.component.html", | ||
styleUrls: ["../../hide-host.scss"], | ||
}) | ||
|
||
export class ListItemGroupComponent extends BaseAngular { | ||
@Input() element: any; | ||
@Input() model!: Action; | ||
@Input() listModel!: ListModel; | ||
|
||
getModel() { | ||
return this.model; | ||
} | ||
} | ||
|
||
AngularComponentFactory.Instance.registerComponent("sv-list-item-group", ListItemGroupComponent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
packages/survey-angular-ui/src/questions/ranking.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<div *ngIf="!model.selectToRankEnabled" [class]="model.rootClass" #contentElement> | ||
<ng-container *ngFor="let item of model.rankingChoices; index as index; trackBy: trackItemBy"> | ||
<ng-container *ngFor="let item of model.renderedRankingChoices; index as index; trackBy: trackItemBy"> | ||
<ng-template [component]="{ name: getItemValueComponentName(item), data: getItemValueComponentData(item, index) }"></ng-template> | ||
</ng-container> | ||
</div> | ||
|
||
<div *ngIf="model.selectToRankEnabled" [class]="model.rootClass" #contentElement> | ||
<div [class]='model.getContainerClasses("from")' data-ranking="from-container"> | ||
<ng-container *ngFor="let item of model.unRankingChoices; index as index; trackBy: trackItemBy"> | ||
<ng-container *ngFor="let item of model.renderedUnRankingChoices; index as index; trackBy: trackItemBy"> | ||
<ng-template [component]="{ name: getItemValueComponentName(item), data: getItemValueComponentData(item, index, true) }"></ng-template> | ||
</ng-container> | ||
|
||
<div *ngIf="model.unRankingChoices.length === 0" [class]="model.cssClasses.containerPlaceholder" [model]="$any(model).locSelectToRankEmptyRankedAreaText" sv-ng-string></div> | ||
<div *ngIf="model.renderedUnRankingChoices.length === 0" [class]="model.cssClasses.containerPlaceholder" [model]="$any(model).locSelectToRankEmptyRankedAreaText" sv-ng-string></div> | ||
</div> | ||
|
||
<div [class]="model.cssClasses.containersDivider"></div> | ||
|
||
<div [class]='model.getContainerClasses("to")' data-ranking="to-container"> | ||
<ng-container *ngFor="let item of model.rankingChoices; index as index; trackBy: trackItemBy"> | ||
<ng-container *ngFor="let item of model.renderedRankingChoices; index as index; trackBy: trackItemBy"> | ||
<ng-template [component]="{ name: getItemValueComponentName(item), data: getItemValueComponentData(item, index) }"></ng-template> | ||
</ng-container> | ||
|
||
<div *ngIf="model.rankingChoices.length === 0" [class]="model.cssClasses.containerPlaceholder" [model]="$any(model).locSelectToRankEmptyUnrankedAreaText" sv-ng-string></div> | ||
<div *ngIf="model.renderedRankingChoices.length === 0" [class]="model.cssClasses.containerPlaceholder" [model]="$any(model).locSelectToRankEmptyUnrankedAreaText" sv-ng-string></div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.