-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* work for #8129 Popup submenu * work for #8129 Popup submenu * work for #8129 Popup submenu * work for #8129 Popup submenu * #8129 - allow search in subitems * work for #8129 Popup submenu * work for #8129 Popup submenu * #8129 change child popup position does not fit * merge "refactoring creation listmodel" * work for #8129 Popup submenu * work for #8129 Popup submenu * work for #8129 Popup submenu * fix for "refactoring creation listmodel" * work for #8129 extract list-item-content * #8129 - fix marker position * work for #8129 add markup test for list-item-group * work for #8129 extract list-item-content * work for #8129 extract list-item-content * work for #8129 Popup submenu * work for #8129 Popup submenu * #8129 - move delayed popup show/hide to library * #8129 - hover styles * work for #8129 Popup submenu * work for #8129 Popup submenu * work for #8129 Popup submenu * work for #8129 Popup submenu * #8129 - add simple setItems unit test * #8129 - remove creator toolbox classes * #8129 apply hovered classes only for dropdown popup * Revert "#8129 apply hovered classes only for dropdown popup" This reverts commit 0806e0a. * work for #8129 Popup submenu * #8129 - remove skipped test * #8129 - fix overlay popup test * work for #8129 Popup submenu - f-test * #8229 - support popup area * work for #8129 Popup submenu - f-test * work for #8129 Popup submenu - f-test * work for #8129 Popup submenu - visual test * #8229 - fix for support popup area --------- Co-authored-by: OlgaLarina <[email protected]> Co-authored-by: Aleksey Novikov <[email protected]> Co-authored-by: Aleksey Novikov <[email protected]>
- Loading branch information
1 parent
d1520cd
commit d7934ca
Showing
51 changed files
with
1,018 additions
and
270 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
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
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
24 changes: 24 additions & 0 deletions
24
packages/survey-vue3-ui/src/components/list/ListItemContent.vue
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,24 @@ | ||
<template> | ||
<sv-svg-icon | ||
v-if="item.iconName" | ||
v-bind:class="model.cssClasses.itemIcon" | ||
:iconName="item.iconName" | ||
:size="item.iconSize" | ||
></sv-svg-icon> | ||
<survey-string :locString="item.locTitle" /> | ||
<sv-svg-icon | ||
v-if="item.markerIconName" | ||
v-bind:class="item.cssClasses.itemMarkerIcon" | ||
:iconName="item.markerIconName" | ||
:size="item.markerIconSize" | ||
></sv-svg-icon> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { useBase } from "@/base"; | ||
import type { ListModel, Action, IAction } from "survey-core"; | ||
const props = defineProps<{ model: ListModel; item: Action }>(); | ||
useBase(() => props.item); | ||
</script> |
13 changes: 13 additions & 0 deletions
13
packages/survey-vue3-ui/src/components/list/ListItemGroup.vue
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,13 @@ | ||
<template> | ||
<sv-list-item-content :item="item" :model="model"></sv-list-item-content> | ||
<sv-popup :model="item.popupModel"></sv-popup> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { useBase } from "@/base"; | ||
import type { ListModel, Action } from "survey-core"; | ||
const props = defineProps<{ model: ListModel; item: Action }>(); | ||
useBase(() => props.item); | ||
</script> |
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.