@coolon/angular-ui-powerups 16.1.0-alpha.341 → 16.1.0-alpha.343

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/assets/_icon-button.scss +16 -0
  2. package/assets/table.scss +46 -8
  3. package/esm2022/lib/components/alignment.mjs +6 -1
  4. package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +20 -4
  5. package/esm2022/lib/components/commands/command/command.component.mjs +12 -4
  6. package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +6 -2
  7. package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +3 -3
  8. package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +3 -3
  9. package/esm2022/lib/components/forms/password-input/password-input.component.mjs +1 -1
  10. package/esm2022/lib/components/forms/string-input/string-input.component.mjs +1 -1
  11. package/esm2022/lib/components/forms/sub-form-list/sub-form-list.component.mjs +1 -1
  12. package/esm2022/lib/components/tables/abstract-table-model.mjs +3 -3
  13. package/esm2022/lib/components/tables/abstract-table.component.mjs +3 -3
  14. package/esm2022/lib/components/tables/column/column-model.mjs +15 -1
  15. package/esm2022/lib/components/tables/renderer/table-action-column/table-action-column.component.mjs +1 -1
  16. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +6 -2
  17. package/esm2022/lib/components/tables/table/table.component.mjs +3 -3
  18. package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +3 -3
  19. package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +1 -1
  20. package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
  21. package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +1 -1
  22. package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +1 -1
  23. package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
  24. package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +1 -1
  25. package/esm2022/lib/interaction/components/input-activities/option-list-activity/option-list-activity.mjs +1 -1
  26. package/fesm2022/coolon-angular-ui-powerups.mjs +81 -30
  27. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  28. package/lib/components/alignment.d.ts +6 -0
  29. package/lib/components/commands/button-renderer/button-renderer.component.d.ts +6 -2
  30. package/lib/components/commands/command/command.component.d.ts +8 -2
  31. package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +4 -1
  32. package/lib/components/tables/abstract-table.component.d.ts +2 -2
  33. package/lib/components/tables/column/column-model.d.ts +9 -0
  34. package/lib/components/tables/table/table.component.d.ts +2 -2
  35. package/lib/components/tables/tree-table/tree-table-component.d.ts +2 -2
  36. package/package.json +1 -1
@@ -15,7 +15,7 @@ export class ModalActivityTriggerComponent extends AbstractActivityTriggerCompon
15
15
  this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
16
16
  }
17
17
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ModalActivityTriggerComponent, deps: [{ token: i1.InteractionService }], target: i0.ɵɵFactoryTarget.Component });
18
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ModalActivityTriggerComponent, selector: "aup-modal-activity-trigger", usesInheritance: true, ngImport: i0, template: "<aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: i2.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }] });
18
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ModalActivityTriggerComponent, selector: "aup-modal-activity-trigger", usesInheritance: true, ngImport: i0, template: "<aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: i2.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "edge", "labelOverflow"] }] });
19
19
  }
20
20
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ModalActivityTriggerComponent, decorators: [{
21
21
  type: Component,
@@ -16,7 +16,7 @@ export class PopupActivityTriggerComponent extends AbstractActivityTriggerCompon
16
16
  return this._interactionContext;
17
17
  }
18
18
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupActivityTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupActivityTriggerComponent, selector: "aup-popup-activity-trigger", inputs: { anchorX: "anchorX", anchorY: "anchorY" }, viewQueries: [{ propertyName: "_interactionContext", first: true, predicate: PopupInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-popup-interaction-context [anchorX]=\"anchorX\" [anchorY]=\"anchorY\">\n <aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n</aup-popup-interaction-context>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: i1.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: i2.PopupInteractionContextComponent, selector: "aup-popup-interaction-context", inputs: ["anchorX", "anchorY", "cancelOnEscape$", "cancelOnEscape"] }] });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupActivityTriggerComponent, selector: "aup-popup-activity-trigger", inputs: { anchorX: "anchorX", anchorY: "anchorY" }, viewQueries: [{ propertyName: "_interactionContext", first: true, predicate: PopupInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-popup-interaction-context [anchorX]=\"anchorX\" [anchorY]=\"anchorY\">\n <aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n</aup-popup-interaction-context>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: i1.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "edge", "labelOverflow"] }, { kind: "component", type: i2.PopupInteractionContextComponent, selector: "aup-popup-interaction-context", inputs: ["anchorX", "anchorY", "cancelOnEscape$", "cancelOnEscape"] }] });
20
20
  }
21
21
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupActivityTriggerComponent, decorators: [{
22
22
  type: Component,
@@ -54,7 +54,7 @@ export class AddCardActivityComponent extends AbstractActivityTriggerComponent {
54
54
  return this.interactionStyle === 'inline';
55
55
  }
56
56
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddCardActivityComponent, deps: [{ token: i1.InteractionService }], target: i0.ɵɵFactoryTarget.Component });
57
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddCardActivityComponent, selector: "aup-add-card-activity", inputs: { interactionStyle: "interactionStyle", renderAs: "renderAs" }, host: { properties: { "class": "this.activityTypeClass", "class.not-card": "this.notCard" } }, viewQueries: [{ propertyName: "inlineInteractionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:#0000008a}:host[interactionStyle=modal][renderas=card]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:#0000008a}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: i4.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: i5.CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }, { kind: "component", type: i6.InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["opensChoicesAs", "animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
57
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddCardActivityComponent, selector: "aup-add-card-activity", inputs: { interactionStyle: "interactionStyle", renderAs: "renderAs" }, host: { properties: { "class": "this.activityTypeClass", "class.not-card": "this.notCard" } }, viewQueries: [{ propertyName: "inlineInteractionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:#0000008a}:host[interactionStyle=modal][renderas=card]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:#0000008a}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: i4.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "edge", "labelOverflow"] }, { kind: "component", type: i5.CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }, { kind: "component", type: i6.InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["opensChoicesAs", "animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
58
58
  }
59
59
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddCardActivityComponent, decorators: [{
60
60
  type: Component,
@@ -141,7 +141,7 @@ export class InlineStringEditorComponent extends DisposableComponent {
141
141
  return !this.editingEnabled$.value;
142
142
  }
143
143
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InlineStringEditorComponent, deps: [{ token: i1.InteractionService }], target: i0.ɵɵFactoryTarget.Component });
144
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineStringEditorComponent, selector: "aup-inline-string-editor", inputs: { editorModel: "editorModel", facesModel: "facesModel", faces: "faces", label: "label", placeHolder: "placeHolder", placeHolder$: "placeHolder$" }, host: { properties: { "class.disabled": "this.isDisabled" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled$.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors()\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled$.value\" [command]=\"editCommand\" [face$]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "component", type: i7.InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["opensChoicesAs", "animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
144
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineStringEditorComponent, selector: "aup-inline-string-editor", inputs: { editorModel: "editorModel", facesModel: "facesModel", faces: "faces", label: "label", placeHolder: "placeHolder", placeHolder$: "placeHolder$" }, host: { properties: { "class.disabled": "this.isDisabled" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled$.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors()\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled$.value\" [command]=\"editCommand\" [face$]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "edge", "labelOverflow"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "component", type: i7.InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["opensChoicesAs", "animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
145
145
  }
146
146
  __decorate([
147
147
  Proxify(),
@@ -152,7 +152,7 @@ export class OptionListActivity extends Activity {
152
152
  return needle ? rows.filter(row => row.index === undefined || row.label.toLowerCase().includes(needle)) : rows;
153
153
  }
154
154
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OptionListActivity, deps: [], target: i0.ɵɵFactoryTarget.Component });
155
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: OptionListActivity, selector: "aup-option-list-activity", host: { properties: { "class.aup-option-list--own-popup": "this.ownPopup" } }, viewQueries: [{ propertyName: "listbox", first: true, predicate: ["listbox"], descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionElements", predicate: MatOption, descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<!-- A popup of its own reads as a select's panel, with no title: Esc or a click outside closes it. Over another\n activity its title holds the way back. -->\n<aup-activity-title *ngIf=\"activityData.nested\">\n <aup-command [command]=\"leaveCommand\" data-cy=\"back\"></aup-command>\n {{ activityData.title }}\n</aup-activity-title>\n<aup-activity-body [fullWidth]=\"true\">\n <div *ngIf=\"activityData.searchable\" class=\"search\">\n <aup-icon icon=\"mat:search\"></aup-icon>\n <input #searchInput type=\"text\" autocomplete=\"off\" data-cy=\"option-list-search\"\n [placeholder]=\"searchPlaceholder\"\n [attr.aria-label]=\"searchPlaceholder\"\n [value]=\"searchText$.value\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\">\n </div>\n <div #listbox class=\"options\" role=\"listbox\" tabindex=\"0\" data-cy=\"option-list\"\n [attr.aria-label]=\"activityData.title\"\n [attr.aria-activedescendant]=\"keyManager?.activeItem?.id\"\n (keydown)=\"onListKeydown($event)\">\n <mat-option *ngFor=\"let row of rows$.value; trackBy: trackRow\" [value]=\"row\" data-cy=\"option\"\n (onSelectionChange)=\"onSelectionChange($event)\">\n <span class=\"option\">\n <span *ngIf=\"withIcons\" class=\"icon\"><aup-icon *ngIf=\"row.icon\" [icon]=\"row.icon\"></aup-icon></span>\n <span class=\"label\" data-cy=\"label\">{{ row.label }}</span>\n <span *ngIf=\"count(row) !== undefined\" class=\"count\" [class.zero]=\"count(row) === 0\" data-cy=\"count\">{{ count(row) }}</span>\n </span>\n </mat-option>\n </div>\n <div *ngIf=\"!rows$.value.length\" class=\"no-results\" data-cy=\"option-list-no-results\">{{ noResultsText }}</div>\n</aup-activity-body>\n", styles: [":host{display:block;width:var(--aup-option-list-width, 22rem);max-width:calc(100vw - 32px);--aup-activity-padding-top: 0;--aup-activity-padding-bottom: 0}:host(.aup-option-list--own-popup){width:auto;min-width:12rem}:host-context(.bottom-sheet-interaction-context){width:auto;max-width:none}.search{display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid rgba(0,0,0,.12)}.search input{flex:1;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.options{padding:8px 0;outline:none}.options{max-height:275px;overflow-y:auto}:host ::ng-deep .mat-mdc-option .mdc-list-item__primary-text{flex:1}.option{display:flex;align-items:center;gap:16px}.icon{flex:none;display:flex;width:24px;opacity:.7}.label{flex:1;min-width:0}.count{flex:none;font-size:.85em;opacity:.7}.count.zero{opacity:.4}.no-results{padding:8px 16px;opacity:.6;font-style:italic}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: i3.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: i6.ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight", "scroll"] }] });
155
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: OptionListActivity, selector: "aup-option-list-activity", host: { properties: { "class.aup-option-list--own-popup": "this.ownPopup" } }, viewQueries: [{ propertyName: "listbox", first: true, predicate: ["listbox"], descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionElements", predicate: MatOption, descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<!-- A popup of its own reads as a select's panel, with no title: Esc or a click outside closes it. Over another\n activity its title holds the way back. -->\n<aup-activity-title *ngIf=\"activityData.nested\">\n <aup-command [command]=\"leaveCommand\" data-cy=\"back\"></aup-command>\n {{ activityData.title }}\n</aup-activity-title>\n<aup-activity-body [fullWidth]=\"true\">\n <div *ngIf=\"activityData.searchable\" class=\"search\">\n <aup-icon icon=\"mat:search\"></aup-icon>\n <input #searchInput type=\"text\" autocomplete=\"off\" data-cy=\"option-list-search\"\n [placeholder]=\"searchPlaceholder\"\n [attr.aria-label]=\"searchPlaceholder\"\n [value]=\"searchText$.value\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\">\n </div>\n <div #listbox class=\"options\" role=\"listbox\" tabindex=\"0\" data-cy=\"option-list\"\n [attr.aria-label]=\"activityData.title\"\n [attr.aria-activedescendant]=\"keyManager?.activeItem?.id\"\n (keydown)=\"onListKeydown($event)\">\n <mat-option *ngFor=\"let row of rows$.value; trackBy: trackRow\" [value]=\"row\" data-cy=\"option\"\n (onSelectionChange)=\"onSelectionChange($event)\">\n <span class=\"option\">\n <span *ngIf=\"withIcons\" class=\"icon\"><aup-icon *ngIf=\"row.icon\" [icon]=\"row.icon\"></aup-icon></span>\n <span class=\"label\" data-cy=\"label\">{{ row.label }}</span>\n <span *ngIf=\"count(row) !== undefined\" class=\"count\" [class.zero]=\"count(row) === 0\" data-cy=\"count\">{{ count(row) }}</span>\n </span>\n </mat-option>\n </div>\n <div *ngIf=\"!rows$.value.length\" class=\"no-results\" data-cy=\"option-list-no-results\">{{ noResultsText }}</div>\n</aup-activity-body>\n", styles: [":host{display:block;width:var(--aup-option-list-width, 22rem);max-width:calc(100vw - 32px);--aup-activity-padding-top: 0;--aup-activity-padding-bottom: 0}:host(.aup-option-list--own-popup){width:auto;min-width:12rem}:host-context(.bottom-sheet-interaction-context){width:auto;max-width:none}.search{display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid rgba(0,0,0,.12)}.search input{flex:1;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.options{padding:8px 0;outline:none}.options{max-height:275px;overflow-y:auto}:host ::ng-deep .mat-mdc-option .mdc-list-item__primary-text{flex:1}.option{display:flex;align-items:center;gap:16px}.icon{flex:none;display:flex;width:24px;opacity:.7}.label{flex:1;min-width:0}.count{flex:none;font-size:.85em;opacity:.7}.count.zero{opacity:.4}.no-results{padding:8px 16px;opacity:.6;font-style:italic}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: i3.CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "edge", "labelOverflow"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: i6.ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight", "scroll"] }] });
156
156
  }
157
157
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OptionListActivity, decorators: [{
158
158
  type: Component,