@coolon/angular-ui-powerups 14.47.4 → 15.0.1
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.
- package/assets/table.scss +1 -18
- package/esm2022/lib/angular-ui-powerups.module.mjs +80 -0
- package/esm2022/lib/components/busy-overlay/busy-overlay.component.mjs +34 -0
- package/esm2022/lib/components/cards/abstract-card-container.component.mjs +37 -0
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +131 -0
- package/{esm2020 → esm2022}/lib/components/cards/card-stack/card-stack.component.mjs +4 -4
- package/esm2022/lib/components/commands/command/command.component.mjs +115 -0
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +85 -0
- package/{esm2020 → esm2022}/lib/components/commands/command-face.mjs +2 -1
- package/{esm2020 → esm2022}/lib/components/commands/flex.component.mjs +4 -4
- package/esm2022/lib/components/commands/group/command-container.mjs +22 -0
- package/esm2022/lib/components/commands/group/popup-aware.component.mjs +28 -0
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +90 -0
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +58 -0
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +106 -0
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +55 -0
- package/{esm2020 → esm2022}/lib/components/commands/group/tool-bar/tool-bar.component.mjs +4 -4
- package/esm2022/lib/components/commands/separator.component.mjs +42 -0
- package/esm2022/lib/components/components.module.mjs +340 -0
- package/{esm2020 → esm2022}/lib/components/disposable-component.mjs +4 -4
- package/esm2022/lib/components/empty-state/empty-state.component.mjs +23 -0
- package/esm2022/lib/components/exports.mjs +93 -0
- package/esm2022/lib/components/focus-container/focus-container.component.mjs +38 -0
- package/esm2022/lib/components/focusable.component.mjs +51 -0
- package/esm2022/lib/components/forms/abstract-input.component.mjs +175 -0
- package/esm2022/lib/components/forms/abstract-list-input.component.mjs +72 -0
- package/esm2022/lib/components/forms/abstract-value-input.component.mjs +72 -0
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +133 -0
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +29 -0
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +86 -0
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +35 -0
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +25 -0
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +130 -0
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +53 -0
- package/esm2022/lib/components/forms/text-input/text-input.component.mjs +31 -0
- package/{esm2020 → esm2022}/lib/components/icon/icon.component.mjs +11 -9
- package/esm2022/lib/components/labelled-value/labelled-value.component.mjs +22 -0
- package/esm2022/lib/components/loading-container/loading-container.component.mjs +54 -0
- package/{esm2020 → esm2022}/lib/components/noop/noop.component.mjs +4 -4
- package/esm2022/lib/components/resize-aware.component.mjs +47 -0
- package/esm2022/lib/components/scroll-container/scroll-container.component.mjs +37 -0
- package/esm2022/lib/components/section-header/section-header.component.mjs +36 -0
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +132 -0
- package/esm2022/lib/components/tables/abstract-table-model.mjs +254 -0
- package/esm2022/lib/components/tables/abstract-table.component.mjs +156 -0
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +190 -0
- package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +40 -0
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +16 -0
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +38 -0
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +56 -0
- package/esm2022/lib/components/tables/column/property-column-model.mjs +98 -0
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +51 -0
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +60 -0
- package/esm2022/lib/components/tables/editor/edit-session.mjs +26 -0
- package/esm2022/lib/components/tables/filter/column-text-search-formatter.mjs +53 -0
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +58 -0
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +45 -0
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +103 -0
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +23 -0
- package/esm2022/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +16 -0
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +51 -0
- package/esm2022/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +33 -0
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +129 -0
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +101 -0
- package/esm2022/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +34 -0
- package/esm2022/lib/components/tables/table/table.component.mjs +175 -0
- package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +84 -0
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +174 -0
- package/esm2022/lib/components/tables/tree-table/flattened-tree-list-model.mjs +32 -0
- package/esm2022/lib/components/tables/tree-table/tree-expansion-model.mjs +70 -0
- package/esm2022/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.mjs +73 -0
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +100 -0
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +44 -0
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +115 -0
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +108 -0
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +83 -0
- package/esm2022/lib/components/types/bounds.class.mjs +31 -0
- package/{esm2020 → esm2022}/lib/components/types/dimension.class.mjs +3 -1
- package/esm2022/lib/components/types/point.class.mjs +15 -0
- package/esm2022/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +80 -0
- package/esm2022/lib/directives/command.directive.mjs +126 -0
- package/esm2022/lib/directives/directives.module.mjs +68 -0
- package/esm2022/lib/directives/focus-binding-factory.mjs +32 -0
- package/esm2022/lib/directives/focus-binding.directive.mjs +66 -0
- package/esm2022/lib/directives/focus-binding.mjs +83 -0
- package/{esm2020 → esm2022}/lib/directives/garbage-collector.directive.mjs +4 -4
- package/esm2022/lib/directives/highlight-text-model.directive.mjs +28 -0
- package/esm2022/lib/directives/highlight.pipe.mjs +49 -0
- package/esm2022/lib/interaction/activity-ref.mjs +69 -0
- package/{esm2020 → esm2022}/lib/interaction/activity.mjs +19 -13
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +28 -0
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +66 -0
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +135 -0
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +20 -0
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +250 -0
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +65 -0
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +43 -0
- package/esm2022/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +96 -0
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +25 -0
- package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +23 -0
- package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +31 -0
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +94 -0
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +79 -0
- package/{esm2020 → esm2022}/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +30 -0
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-editor-model.mjs +52 -0
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +193 -0
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +143 -0
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +102 -0
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +52 -0
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +37 -0
- package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +134 -0
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +77 -0
- package/esm2022/lib/interaction/interaction.module.mjs +195 -0
- package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +32 -0
- package/esm2022/lib/interaction/services/interaction.service.mjs +157 -0
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +51 -0
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +68 -0
- package/esm2022/lib/place/components/abstract-place-navigation.component.mjs +109 -0
- package/{esm2020 → esm2022}/lib/place/components/list-place-nav/list-place-nav.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/place/components/not-authorised-notice/not-authorised-notice.component.mjs +4 -4
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +279 -0
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +97 -0
- package/{esm2020 → esm2022}/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +6 -6
- package/esm2022/lib/place/exports.mjs +48 -0
- package/{esm2020 → esm2022}/lib/place/guards/consolidated-param-map.mjs +3 -2
- package/{esm2020 → esm2022}/lib/place/guards/noop-auth-guard.service.mjs +4 -4
- package/esm2022/lib/place/guards/place.guard.mjs +158 -0
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +87 -0
- package/esm2022/lib/place/navigation/session/abstract-pop-state-navigation.mjs +15 -0
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.mjs +45 -0
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.mjs +159 -0
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.mjs +66 -0
- package/esm2022/lib/place/navigation/session/interactions/navigating-during-interaction.mjs +35 -0
- package/esm2022/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +54 -0
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +89 -0
- package/{esm2020 → esm2022}/lib/place/navigation/session/navigating.mjs +4 -6
- package/esm2022/lib/place/navigation/session/navigation-context.mjs +19 -0
- package/esm2022/lib/place/navigation/session/navigation-session.mjs +176 -0
- package/esm2022/lib/place/place-access-guard.mjs +15 -0
- package/esm2022/lib/place/place-component.mjs +200 -0
- package/esm2022/lib/place/place-definition.mjs +213 -0
- package/esm2022/lib/place/place-history.mjs +148 -0
- package/esm2022/lib/place/place-router.mjs +352 -0
- package/esm2022/lib/place/place.module.mjs +94 -0
- package/esm2022/lib/place/route/parameter-definition.mjs +121 -0
- package/esm2022/lib/place/route/visit-segment-sanitiser.mjs +46 -0
- package/esm2022/lib/place/url-service.mjs +68 -0
- package/esm2022/lib/place/url-snapshot.mjs +125 -0
- package/esm2022/lib/place/visit-segment.mjs +88 -0
- package/esm2022/lib/place/visit.mjs +97 -0
- package/{esm2020 → esm2022}/lib/services/markdown/markdown.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/visibility-service.mjs +8 -5
- package/{fesm2020 → fesm2022}/coolon-angular-ui-powerups.mjs +1834 -1534
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -0
- package/lib/angular-ui-powerups.module.d.ts +5 -5
- package/lib/components/alignment.d.ts +1 -1
- package/lib/components/busy-overlay/busy-overlay.component.d.ts +1 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +1 -1
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/cards/card-stack/card-stack.component.d.ts +1 -1
- package/lib/components/commands/command/command.component.d.ts +2 -2
- package/lib/components/commands/command-face/command-face.component.d.ts +1 -1
- package/lib/components/commands/flex.component.d.ts +1 -1
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
- package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +1 -1
- package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +2 -2
- package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +1 -1
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
- package/lib/components/commands/separator.component.d.ts +1 -1
- package/lib/components/components.module.d.ts +21 -23
- package/lib/components/disposable-component.d.ts +1 -1
- package/lib/components/empty-state/empty-state.component.d.ts +1 -1
- package/lib/components/exports.d.ts +0 -2
- package/lib/components/focus-container/focus-container.component.d.ts +1 -1
- package/lib/components/focusable.component.d.ts +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +1 -1
- package/lib/components/forms/abstract-list-input.component.d.ts +1 -1
- package/lib/components/forms/abstract-value-input.component.d.ts +1 -1
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +3 -3
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +1 -1
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +1 -1
- package/lib/components/forms/number-input/number-input.component.d.ts +1 -1
- package/lib/components/forms/password-input/password-input.component.d.ts +1 -1
- package/lib/components/forms/select-input/select-input.component.d.ts +1 -2
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -1
- package/lib/components/forms/text-input/text-input.component.d.ts +1 -1
- package/lib/components/icon/icon.component.d.ts +1 -1
- package/lib/components/labelled-value/labelled-value.component.d.ts +1 -1
- package/lib/components/loading-container/loading-container.component.d.ts +1 -1
- package/lib/components/noop/noop.component.d.ts +1 -1
- package/lib/components/resize-aware.component.d.ts +1 -1
- package/lib/components/scroll-container/scroll-container.component.d.ts +1 -1
- package/lib/components/section-header/section-header.component.d.ts +1 -1
- package/lib/components/switch-case/switch-case.component.d.ts +3 -3
- package/lib/components/tables/abstract-table-model.d.ts +1 -3
- package/lib/components/tables/abstract-table.component.d.ts +1 -1
- package/lib/components/tables/column/column-model.d.ts +1 -1
- package/lib/components/tables/column/column-template/column-template.directive.d.ts +1 -1
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
- package/lib/components/tables/filter/enable-cell-text-search.decorator.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +1 -1
- package/lib/components/tables/paginator/paginator.component.d.ts +1 -1
- package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/selection-cell/selection-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-header-cell/table-header-cell.component.d.ts +1 -1
- package/lib/components/tables/table/table.component.d.ts +1 -1
- package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +2 -2
- package/lib/components/tables/tree-table/decorated-tree-node.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +1 -1
- package/lib/components/text/markdown/markdown.component.d.ts +1 -1
- package/lib/components/vertical-focus-container/vertical-focus-container.component.d.ts +1 -1
- package/lib/directives/command.directive.d.ts +3 -3
- package/lib/directives/directives.module.d.ts +5 -5
- package/lib/directives/focus-binding.directive.d.ts +1 -1
- package/lib/directives/garbage-collector.directive.d.ts +1 -1
- package/lib/directives/highlight-text-model.directive.d.ts +1 -1
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +1 -1
- package/lib/interaction/components/abstract-dialog.component.d.ts +1 -1
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +1 -1
- package/lib/interaction/components/activity-body/activity-body.component.d.ts +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +1 -1
- package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +1 -1
- package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +1 -1
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +1 -1
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +1 -1
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +1 -1
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +1 -1
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +2 -2
- package/lib/interaction/components/input-activities/input-activity.d.ts +3 -7
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +2 -4
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +1 -1
- package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +1 -1
- package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +1 -1
- package/lib/interaction/interaction.module.d.ts +6 -6
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +2 -2
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +2 -2
- package/lib/place/components/abstract-place-navigation.component.d.ts +3 -4
- package/lib/place/components/list-place-nav/list-place-nav.component.d.ts +1 -1
- package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +1 -1
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
- package/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.d.ts +1 -1
- package/lib/place/exports.d.ts +0 -1
- package/lib/place/guards/noop-auth-guard.service.d.ts +2 -2
- package/lib/place/guards/place.guard.d.ts +4 -4
- package/lib/place/place-access-guard.d.ts +2 -2
- package/lib/place/place-component.d.ts +3 -6
- package/lib/place/place-router.d.ts +9 -2
- package/lib/place/place.module.d.ts +5 -5
- package/lib/place/route/json-types.d.ts +2 -2
- package/package.json +16 -24
- package/schematics/activity/index.js +1 -2
- package/schematics/activity/index.js.map +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -4
- package/schematics/aup-i18n/index.js +6 -6
- package/schematics/aup-i18n/index.js.map +1 -1
- package/schematics/bootstrap-app/index.js +10 -10
- package/schematics/bootstrap-app/index.js.map +1 -1
- package/schematics/component/index.js +2 -2
- package/schematics/component/index.js.map +1 -1
- package/schematics/component/schema.d.ts +1 -1
- package/schematics/component/schema.json +6 -6
- package/schematics/place-add/index.js +3 -3
- package/schematics/place-add/index.js.map +1 -1
- package/schematics/place-add/schema.d.ts +1 -1
- package/schematics/place-add/schema.json +4 -4
- package/schematics/place-add/templates/component/__name@dasherize__.component.scss.template +0 -1
- package/schematics/place-routes/index.js.map +1 -1
- package/schematics/place-routes/place-def.js +1 -1
- package/schematics/place-routes/place-def.js.map +1 -1
- package/schematics/place-routes/schema.json +2 -1
- package/schematics/place-routes/templates/place-routes.ts.template +3 -2
- package/schematics/utils/import-def.js +3 -3
- package/schematics/utils/import-def.js.map +1 -1
- package/schematics/utils/stringy.js +3 -3
- package/schematics/utils/stringy.js.map +1 -1
- package/schematics/utils/workspace.js +3 -3
- package/schematics/utils/workspace.js.map +1 -1
- package/esm2020/lib/angular-ui-powerups.module.mjs +0 -80
- package/esm2020/lib/components/busy-overlay/busy-overlay.component.mjs +0 -32
- package/esm2020/lib/components/cards/abstract-card-container.component.mjs +0 -34
- package/esm2020/lib/components/cards/card-container/card-container.component.mjs +0 -129
- package/esm2020/lib/components/commands/command/command.component.mjs +0 -103
- package/esm2020/lib/components/commands/command-face/command-face.component.mjs +0 -80
- package/esm2020/lib/components/commands/group/command-container.mjs +0 -21
- package/esm2020/lib/components/commands/group/popup-aware.component.mjs +0 -26
- package/esm2020/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +0 -84
- package/esm2020/lib/components/commands/group/popup-menu/more-menu.component.mjs +0 -57
- package/esm2020/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +0 -101
- package/esm2020/lib/components/commands/group/popup-menu/popup-menu.component.mjs +0 -53
- package/esm2020/lib/components/commands/separator.component.mjs +0 -41
- package/esm2020/lib/components/components.module.mjs +0 -350
- package/esm2020/lib/components/empty-state/empty-state.component.mjs +0 -23
- package/esm2020/lib/components/exports.mjs +0 -95
- package/esm2020/lib/components/focus-container/focus-container.component.mjs +0 -37
- package/esm2020/lib/components/focusable.component.mjs +0 -48
- package/esm2020/lib/components/forms/abstract-input.component.mjs +0 -154
- package/esm2020/lib/components/forms/abstract-list-input.component.mjs +0 -65
- package/esm2020/lib/components/forms/abstract-value-input.component.mjs +0 -65
- package/esm2020/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +0 -120
- package/esm2020/lib/components/forms/checkbox-input/checkbox-input.component.mjs +0 -29
- package/esm2020/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +0 -78
- package/esm2020/lib/components/forms/number-input/number-input.component.mjs +0 -33
- package/esm2020/lib/components/forms/password-input/password-input.component.mjs +0 -24
- package/esm2020/lib/components/forms/select-input/select-input.component.mjs +0 -121
- package/esm2020/lib/components/forms/string-input/string-input.component.mjs +0 -48
- package/esm2020/lib/components/forms/text-input/text-input.component.mjs +0 -30
- package/esm2020/lib/components/labelled-value/labelled-value.component.mjs +0 -20
- package/esm2020/lib/components/loading-container/loading-container.component.mjs +0 -50
- package/esm2020/lib/components/resize-aware.component.mjs +0 -45
- package/esm2020/lib/components/scroll-container/scroll-container.component.mjs +0 -35
- package/esm2020/lib/components/section-header/section-header.component.mjs +0 -36
- package/esm2020/lib/components/switch-case/switch-case.component.mjs +0 -126
- package/esm2020/lib/components/tables/abstract-table-model.mjs +0 -246
- package/esm2020/lib/components/tables/abstract-table.component.mjs +0 -149
- package/esm2020/lib/components/tables/column/column-list-model.mjs +0 -43
- package/esm2020/lib/components/tables/column/column-model.mjs +0 -184
- package/esm2020/lib/components/tables/column/column-template/column-template.directive.mjs +0 -35
- package/esm2020/lib/components/tables/column/custom-template-column-model.mjs +0 -16
- package/esm2020/lib/components/tables/column/custom-value-column-model.mjs +0 -37
- package/esm2020/lib/components/tables/column/list-propery-column-model.mjs +0 -54
- package/esm2020/lib/components/tables/column/property-column-model.mjs +0 -96
- package/esm2020/lib/components/tables/column/selection-column-model.mjs +0 -50
- package/esm2020/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +0 -55
- package/esm2020/lib/components/tables/editor/edit-session.mjs +0 -23
- package/esm2020/lib/components/tables/filter/column-text-search-formatter.mjs +0 -51
- package/esm2020/lib/components/tables/filter/table-filter-model.mjs +0 -56
- package/esm2020/lib/components/tables/paginator/paginator.component.mjs +0 -44
- package/esm2020/lib/components/tables/renderer/cell-portal-ref.mjs +0 -93
- package/esm2020/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +0 -22
- package/esm2020/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +0 -15
- package/esm2020/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +0 -47
- package/esm2020/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +0 -28
- package/esm2020/lib/components/tables/renderer/table-body/table-body.component.mjs +0 -120
- package/esm2020/lib/components/tables/renderer/table-cell/table-cell.component.mjs +0 -93
- package/esm2020/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +0 -32
- package/esm2020/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +0 -36
- package/esm2020/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +0 -55
- package/esm2020/lib/components/tables/table/table.component.mjs +0 -170
- package/esm2020/lib/components/tables/table-row-menu/table-row-menu.component.mjs +0 -80
- package/esm2020/lib/components/tables/tree-table/decorated-tree-node.mjs +0 -171
- package/esm2020/lib/components/tables/tree-table/flattened-tree-list-model.mjs +0 -29
- package/esm2020/lib/components/tables/tree-table/tree-expansion-model.mjs +0 -70
- package/esm2020/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.mjs +0 -72
- package/esm2020/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +0 -91
- package/esm2020/lib/components/tables/tree-table/tree-label-column-model.mjs +0 -42
- package/esm2020/lib/components/tables/tree-table/tree-table-component.mjs +0 -113
- package/esm2020/lib/components/tables/tree-table/tree-table-model.mjs +0 -105
- package/esm2020/lib/components/text/markdown/markdown.component.mjs +0 -78
- package/esm2020/lib/components/types/bounds.class.mjs +0 -27
- package/esm2020/lib/components/types/point.class.mjs +0 -13
- package/esm2020/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +0 -77
- package/esm2020/lib/directives/command.directive.mjs +0 -122
- package/esm2020/lib/directives/directives.module.mjs +0 -68
- package/esm2020/lib/directives/focus-binding-factory.mjs +0 -30
- package/esm2020/lib/directives/focus-binding.directive.mjs +0 -62
- package/esm2020/lib/directives/focus-binding.mjs +0 -79
- package/esm2020/lib/directives/highlight-text-model.directive.mjs +0 -27
- package/esm2020/lib/directives/highlight.pipe.mjs +0 -48
- package/esm2020/lib/interaction/activity-ref.mjs +0 -65
- package/esm2020/lib/interaction/components/abstract-confirm-dialog.component.mjs +0 -27
- package/esm2020/lib/interaction/components/abstract-dialog.component.mjs +0 -61
- package/esm2020/lib/interaction/components/activity-actions/activity-actions.component.mjs +0 -122
- package/esm2020/lib/interaction/components/activity-body/activity-body.component.mjs +0 -23
- package/esm2020/lib/interaction/components/activity-container/activity-container.component.mjs +0 -241
- package/esm2020/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +0 -59
- package/esm2020/lib/interaction/components/activity-title/activity-title.component.mjs +0 -41
- package/esm2020/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +0 -89
- package/esm2020/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +0 -24
- package/esm2020/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +0 -22
- package/esm2020/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +0 -30
- package/esm2020/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +0 -91
- package/esm2020/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +0 -73
- package/esm2020/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +0 -29
- package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-editor-model.mjs +0 -50
- package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +0 -179
- package/esm2020/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +0 -133
- package/esm2020/lib/interaction/components/input-activities/input-activity.mjs +0 -103
- package/esm2020/lib/interaction/components/input-activities/select-input-activity.mjs +0 -65
- package/esm2020/lib/interaction/components/input-activities/string-input-activity.mjs +0 -37
- package/esm2020/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +0 -128
- package/esm2020/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +0 -73
- package/esm2020/lib/interaction/interaction.module.mjs +0 -195
- package/esm2020/lib/interaction/services/interaction-service-routing-adapter.mjs +0 -29
- package/esm2020/lib/interaction/services/interaction.service.mjs +0 -144
- package/esm2020/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +0 -47
- package/esm2020/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +0 -62
- package/esm2020/lib/place/components/abstract-place-navigation.component.mjs +0 -101
- package/esm2020/lib/place/components/place-outlet/place-outlet.component.mjs +0 -257
- package/esm2020/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +0 -94
- package/esm2020/lib/place/exports.mjs +0 -49
- package/esm2020/lib/place/guards/place.guard.mjs +0 -154
- package/esm2020/lib/place/navigation/place-component-deactivation-handler.mjs +0 -83
- package/esm2020/lib/place/navigation/session/abstract-pop-state-navigation.mjs +0 -14
- package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.mjs +0 -43
- package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.mjs +0 -152
- package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.mjs +0 -62
- package/esm2020/lib/place/navigation/session/interactions/navigating-during-interaction.mjs +0 -38
- package/esm2020/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +0 -52
- package/esm2020/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +0 -88
- package/esm2020/lib/place/navigation/session/navigation-context.mjs +0 -14
- package/esm2020/lib/place/navigation/session/navigation-session.mjs +0 -173
- package/esm2020/lib/place/place-access-guard.mjs +0 -15
- package/esm2020/lib/place/place-auth-service.mjs +0 -142
- package/esm2020/lib/place/place-component.mjs +0 -203
- package/esm2020/lib/place/place-definition.mjs +0 -204
- package/esm2020/lib/place/place-history.mjs +0 -145
- package/esm2020/lib/place/place-router.mjs +0 -319
- package/esm2020/lib/place/place.module.mjs +0 -94
- package/esm2020/lib/place/route/parameter-definition.mjs +0 -122
- package/esm2020/lib/place/route/visit-segment-sanitiser.mjs +0 -41
- package/esm2020/lib/place/url-service.mjs +0 -65
- package/esm2020/lib/place/url-snapshot.mjs +0 -122
- package/esm2020/lib/place/visit-segment.mjs +0 -86
- package/esm2020/lib/place/visit.mjs +0 -95
- package/fesm2015/coolon-angular-ui-powerups.mjs +0 -11330
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +0 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +0 -1
- package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +0 -15
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +0 -23
- package/lib/place/place-auth-service.d.ts +0 -49
- /package/{esm2020 → esm2022}/coolon-angular-ui-powerups.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/animations/exports.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/animations/slide-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/alignment.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/commands/group/popup-container.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/column/column-text-properties.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/column/editor-controls-column-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/editor/editable-cell-renderer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/filter/text-search-predicate.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/renderer/cell-editors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/renderer/cell-renderer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/table/table-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/track-by.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/directives/exports.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/abstract-interaction-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/alert.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/components/editors/edit-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/confirm.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/exports.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/in-place-interaction-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/interaction-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/route-synchronisation-adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/services/modal-interaction-context.factory.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/components/place-outlet/route-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/nav-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/navigation/session/event-cleanup/event-clean-up-session.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/navigation/session/pop-state-navigation.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/place-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/place.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/formatter.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/json-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/parameter-decorators.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/parameter-sanitiser.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/parameter-snapshot.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/exports.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/markdown/pill-plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, ContentChild, Input, TemplateRef, ViewChild } from "@angular/core";
|
|
3
|
-
import { MatInput } from "@angular/material/input";
|
|
4
|
-
import { DelegatingListModel, Dsl, Guard, ListModel, MutableValueModel, StoreInListModel, TrackExternal } from "@coolon/pectin";
|
|
5
|
-
import { isEmpty, isString } from 'lodash';
|
|
6
|
-
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/common";
|
|
9
|
-
import * as i2 from "@angular/forms";
|
|
10
|
-
import * as i3 from "@angular/material/form-field";
|
|
11
|
-
import * as i4 from "@angular/material/input";
|
|
12
|
-
import * as i5 from "@angular/material/core";
|
|
13
|
-
import * as i6 from "../../../directives/focus-binding.directive";
|
|
14
|
-
import * as i7 from "@angular/material/autocomplete";
|
|
15
|
-
/**
|
|
16
|
-
* Using templates (not only supported for nil values:
|
|
17
|
-
* <aup-autocomplete-input [valueModel]="myModel" [options]="myOptions">
|
|
18
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
19
|
-
* </aup-autocomplete-input>
|
|
20
|
-
*/
|
|
21
|
-
export class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
this._options$ = new DelegatingListModel();
|
|
25
|
-
this.autoActiveFirstOption = true;
|
|
26
|
-
this.autoFilter = true;
|
|
27
|
-
this.inSearchUpdate$ = new Guard();
|
|
28
|
-
this.filterValue = new MutableValueModel();
|
|
29
|
-
this.optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
|
|
30
|
-
this.filterFactory = (filterText) => {
|
|
31
|
-
const lowerCaseFilterValue = isString(filterText) ? filterText.toLowerCase() : '';
|
|
32
|
-
return (option) => {
|
|
33
|
-
const matches = !isEmpty(this.filterValue.value) && this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue);
|
|
34
|
-
return matches;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
38
|
-
const filter$ = chain(this.filterValue).map(v => this.filterFactory(v), { allowNil: true });
|
|
39
|
-
this.filteredOptions = chain(this.options$)
|
|
40
|
-
.select(option => !this.autoFilter || filter$.value(option), { dependsOn: filter$ });
|
|
41
|
-
}
|
|
42
|
-
ngOnInit() {
|
|
43
|
-
}
|
|
44
|
-
ngAfterViewInit() {
|
|
45
|
-
const { when } = Dsl.disposeWith(this);
|
|
46
|
-
when(this.rawTextContent$).changes(content => {
|
|
47
|
-
this.matInputComponent.value = content;
|
|
48
|
-
}, {
|
|
49
|
-
unless: this.inSearchUpdate$
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
formatOption(option) {
|
|
53
|
-
return this.optionLabelFormat(option);
|
|
54
|
-
}
|
|
55
|
-
updateFilter($event) {
|
|
56
|
-
this.inSearchUpdate$.whileTrue(() => {
|
|
57
|
-
this.rawTextContent$.value = $event;
|
|
58
|
-
this.filterValue.value = $event;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
onSelect($event) {
|
|
62
|
-
this.inSearchUpdate$.whileTrue(() => {
|
|
63
|
-
this.rawTextContent$.value = undefined;
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
this.value$["value"] = $event.option.value;
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
AutocompleteInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AutocompleteInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
-
AutocompleteInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: AutocompleteInputComponent, selector: "aup-autocomplete-input", inputs: { rawTextContent$: "rawTextContent$", options$: "options$", optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", autoActiveFirstOption: "autoActiveFirstOption", autoFilter: "autoFilter", optionLabelFormat: "optionLabelFormat", filterFactory: "filterFactory" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "matInputComponent", first: true, predicate: MatInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\"\n [autoActiveFirstOption]=\"autoActiveFirstOption\"\n (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\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: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.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: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i7.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i7.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }] });
|
|
71
|
-
__decorate([
|
|
72
|
-
TrackExternal(),
|
|
73
|
-
__metadata("design:type", MutableValueModel)
|
|
74
|
-
], AutocompleteInputComponent.prototype, "rawTextContent$", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
TrackExternal({ delegateTo: "_options$" }),
|
|
77
|
-
__metadata("design:type", ListModel)
|
|
78
|
-
], AutocompleteInputComponent.prototype, "options$", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
TrackExternal({ delegateTo: "_options$" }),
|
|
81
|
-
__metadata("design:type", ListModel)
|
|
82
|
-
], AutocompleteInputComponent.prototype, "optionsModel", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
StoreInListModel('optionsModel'),
|
|
85
|
-
__metadata("design:type", Array)
|
|
86
|
-
], AutocompleteInputComponent.prototype, "options", void 0);
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AutocompleteInputComponent, decorators: [{
|
|
88
|
-
type: Component,
|
|
89
|
-
args: [{ selector: 'aup-autocomplete-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\"\n [autoActiveFirstOption]=\"autoActiveFirstOption\"\n (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"] }]
|
|
90
|
-
}], ctorParameters: function () { return []; }, propDecorators: { rawTextContent$: [{
|
|
91
|
-
type: Input
|
|
92
|
-
}], options$: [{
|
|
93
|
-
type: Input
|
|
94
|
-
}], optionsModel: [{
|
|
95
|
-
type: Input
|
|
96
|
-
}], options: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], optionLabel: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], allowNil: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], autoActiveFirstOption: [{
|
|
103
|
-
type: Input
|
|
104
|
-
}], autoFilter: [{
|
|
105
|
-
type: Input
|
|
106
|
-
}], matInputComponent: [{
|
|
107
|
-
type: ViewChild,
|
|
108
|
-
args: [MatInput]
|
|
109
|
-
}], optionTemplateRef: [{
|
|
110
|
-
type: ContentChild,
|
|
111
|
-
args: ['optionTemplate']
|
|
112
|
-
}], nilOptionTemplateRef: [{
|
|
113
|
-
type: ContentChild,
|
|
114
|
-
args: ['nilOptionTemplate']
|
|
115
|
-
}], optionLabelFormat: [{
|
|
116
|
-
type: Input
|
|
117
|
-
}], filterFactory: [{
|
|
118
|
-
type: Input
|
|
119
|
-
}] } });
|
|
120
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvZm9ybXMvYXV0b2NvbXBsZXRlLWlucHV0L2F1dG9jb21wbGV0ZS1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi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IFtuZ1RlbXBsYXRlT3V0bGV0Q29udGV4dF09XCJ7ICRpbXBsaWNpdDogaXRlbSwgaW5kZXg6IDAgfVwiXG4gICAgPlxuICAgIDwvbmctY29udGFpbmVyPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "@angular/forms";
|
|
6
|
-
import * as i3 from "@angular/material/form-field";
|
|
7
|
-
import * as i4 from "@angular/material/checkbox";
|
|
8
|
-
export class CheckboxInputComponent extends AbstractValueInputComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
// @Input() @TrackExternal({ delegateTo: 'inputModel' })
|
|
12
|
-
// valueModel: Form.ValueModelBase<boolean> | MutableValueModel<boolean>;
|
|
13
|
-
this.color = 'accent';
|
|
14
|
-
this.labelPosition = 'after';
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
CheckboxInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
CheckboxInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValue$.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CheckboxInputComponent, decorators: [{
|
|
22
|
-
type: Component,
|
|
23
|
-
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValue$.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"] }]
|
|
24
|
-
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}], labelPosition: [{
|
|
27
|
-
type: Input
|
|
28
|
-
}] } });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G9yXT1cImNvbG9yXCJcbiAgW2xhYmVsUG9zaXRpb25dPVwibGFiZWxQb3NpdGlvblwiXG4gIFtkaXNhYmxlZF09XCIhaXNFbmFibGVkKClcIlxuPnt7bGFiZWx9fTwvbWF0LWNoZWNrYm94PlxuPG1hdC1oaW50ICpuZ0lmPVwic2hvd0hpbnRcIj57e2hpbnR9fTwvbWF0LWhpbnQ+XG48bWF0LWVycm9yICpuZ0lmPVwiaGFzRXJyb3JzXCI+e3tmaXJzdEVycm9yfX08L21hdC1lcnJvcj5cbiJdfQ==
|
package/esm2020/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
|
|
3
|
-
import { Binding, DelegatingListModel, Dsl, ListModel, MutableListModel, StoreInListModel, TrackExternal } from '@coolon/pectin';
|
|
4
|
-
import { AbstractListInputComponent } from '../abstract-list-input.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
|
-
import * as i2 from "@angular/forms";
|
|
8
|
-
import * as i3 from "@angular/material/form-field";
|
|
9
|
-
import * as i4 from "@angular/material/select";
|
|
10
|
-
import * as i5 from "@angular/material/core";
|
|
11
|
-
import * as i6 from "../../../directives/focus-binding.directive";
|
|
12
|
-
/**
|
|
13
|
-
* Using templates:
|
|
14
|
-
* <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
|
|
15
|
-
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
16
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
17
|
-
* </aup-multiple-select_input>
|
|
18
|
-
*/
|
|
19
|
-
export class MultipleSelectInputComponent extends AbstractListInputComponent {
|
|
20
|
-
constructor() {
|
|
21
|
-
super();
|
|
22
|
-
this._options$ = new DelegatingListModel();
|
|
23
|
-
this.optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
|
|
24
|
-
this.ids$ = new MutableListModel();
|
|
25
|
-
}
|
|
26
|
-
selectAll(items) {
|
|
27
|
-
this.ids$.value = items.map(item => this.options$.identityOf(item));
|
|
28
|
-
}
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
// NOTE: this has to be done after our parameter have been bound or we'll clobber the initial selected values with the writeRight
|
|
31
|
-
const { chain } = Dsl.disposeWith(this);
|
|
32
|
-
const lookup = chain(this.options$).indexUsing(this.options$.identityOf);
|
|
33
|
-
const self = this;
|
|
34
|
-
this.registerDisposable(new Binding(this.componentList$, this.ids$, {
|
|
35
|
-
toLeft(selectedItems, currentLeftValue) {
|
|
36
|
-
const newValues = selectedItems.map(it => lookup.get(it)).filter(it => !it);
|
|
37
|
-
// if our lookup didn't find anything then we return the previous values so we don't clobber selections when the options go empty
|
|
38
|
-
return newValues.length < 1 && selectedItems.length > 0 ? currentLeftValue : newValues;
|
|
39
|
-
},
|
|
40
|
-
leftDependsOn: lookup,
|
|
41
|
-
toRight(leftValue, currentRightValue) {
|
|
42
|
-
return leftValue ? leftValue.map(it => self.options$.identityOf(it)) : [];
|
|
43
|
-
}
|
|
44
|
-
})).writeRight();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
MultipleSelectInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MultipleSelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
-
MultipleSelectInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\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: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
49
|
-
__decorate([
|
|
50
|
-
TrackExternal({ delegateTo: "_options$" }),
|
|
51
|
-
__metadata("design:type", ListModel)
|
|
52
|
-
], MultipleSelectInputComponent.prototype, "options$", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
TrackExternal({ delegateTo: "_options$" }),
|
|
55
|
-
__metadata("design:type", ListModel)
|
|
56
|
-
], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
StoreInListModel('optionsModel'),
|
|
59
|
-
__metadata("design:type", Array)
|
|
60
|
-
], MultipleSelectInputComponent.prototype, "options", void 0);
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MultipleSelectInputComponent, decorators: [{
|
|
62
|
-
type: Component,
|
|
63
|
-
args: [{ selector: 'aup-multiple-select-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"] }]
|
|
64
|
-
}], ctorParameters: function () { return []; }, propDecorators: { options$: [{
|
|
65
|
-
type: Input
|
|
66
|
-
}], optionsModel: [{
|
|
67
|
-
type: Input
|
|
68
|
-
}], options: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}], optionLabel: [{
|
|
71
|
-
type: Input
|
|
72
|
-
}], optionTemplateRef: [{
|
|
73
|
-
type: ContentChild,
|
|
74
|
-
args: ['optionTemplate']
|
|
75
|
-
}], optionLabelFormat: [{
|
|
76
|
-
type: Input
|
|
77
|
-
}] } });
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGlwbGUtc2VsZWN0LWl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rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "@angular/forms";
|
|
6
|
-
import * as i3 from "@angular/material/form-field";
|
|
7
|
-
import * as i4 from "@angular/material/input";
|
|
8
|
-
import * as i5 from "../../../directives/focus-binding.directive";
|
|
9
|
-
import * as i6 from "../../icon/icon.component";
|
|
10
|
-
export class NumberInputComponent extends AbstractValueInputComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
this.min = Number.MIN_SAFE_INTEGER;
|
|
14
|
-
this.max = Number.MAX_SAFE_INTEGER;
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
NumberInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min: "min", max: "max", iconPrefix: "iconPrefix" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{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", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.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: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i4.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: "directive", type: i5.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i6.IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
22
|
-
type: Component,
|
|
23
|
-
args: [{ selector: 'aup-number-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{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" }]
|
|
24
|
-
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}], min: [{
|
|
27
|
-
type: Input
|
|
28
|
-
}], max: [{
|
|
29
|
-
type: Input
|
|
30
|
-
}], iconPrefix: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}] } });
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnM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ZVwiXG4gICAgICAgICBbZGlzYWJsZWRdPVwiIWVuYWJsZWQkLnZhbHVlXCJcbiAgICAgICAgIChrZXlkb3duLmVudGVyKT1cIm5vdGlmeUVudGVyS2V5KClcIlxuICAgICAgICAgKGtleWRvd24uZXNjYXBlKT1cIm5vdGlmeUVzY2FwZUtleSgpXCJcbiAgICAgICAgIFtwZWN0aW5Gb2N1c0JpbmRpbmddPVwiZm9jdXNDb250ZXh0XCJcbiAgICAgICAgIFtlcnJvclN0YXRlTWF0Y2hlcl09XCJlcnJvclN0YXRlTWF0Y2hlclwiXG4gICAgICAgICBbbWluXT1cIm1pblwiXG4gICAgICAgICBbbWF4XT1cIm1heFwiXG4gID5cbiAgPG1hdC1oaW50ICpuZ0lmPVwiaGludCAmJiAhZGVuc2VcIiA+e3toaW50fX08L21hdC1oaW50PlxuICA8bWF0LWVycm9yICpuZ0lmPVwiaGFzRXJyb3JzXCI+e3tmaXJzdEVycm9yfX08L21hdC1lcnJvcj5cbiAgPGF1cC1pY29uICpuZ0lmPVwiaWNvblByZWZpeFwiIG1hdFByZWZpeCBbaWNvbl09XCJpY29uUHJlZml4XCI+PC9hdXAtaWNvbj5cbjwvbWF0LWZvcm0tZmllbGQ+XG4iXX0=
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "@angular/forms";
|
|
6
|
-
import * as i3 from "@angular/material/form-field";
|
|
7
|
-
import * as i4 from "@angular/material/input";
|
|
8
|
-
import * as i5 from "../../../directives/focus-binding.directive";
|
|
9
|
-
export class PasswordInputComponent extends AbstractValueInputComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
}
|
|
13
|
-
ngOnInit() {
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
PasswordInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PasswordInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
-
PasswordInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: PasswordInputComponent, selector: "aup-password-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.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: "directive", type: i5.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PasswordInputComponent, decorators: [{
|
|
19
|
-
type: Component,
|
|
20
|
-
args: [{ selector: 'aup-password-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n" }]
|
|
21
|
-
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}] } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFzc3dvcmQtaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saW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Ij57e2hpbnR9fTwvbWF0LWhpbnQ+XG4gIDxtYXQtZXJyb3IgKm5nSWY9XCJoYXNFcnJvcnNcIj57e2ZpcnN0RXJyb3J9fTwvbWF0LWVycm9yPlxuPC9tYXQtZm9ybS1maWVsZD5cblxuIl19
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
|
|
3
|
-
import { Binding, DelegatingListModel, Dsl, ListModel, MutableValueModel, StoreInListModel, TrackExternal } from '@coolon/pectin';
|
|
4
|
-
import { isNil } from "lodash";
|
|
5
|
-
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
import * as i2 from "@angular/forms";
|
|
9
|
-
import * as i3 from "@angular/material/form-field";
|
|
10
|
-
import * as i4 from "@angular/material/select";
|
|
11
|
-
import * as i5 from "@angular/material/core";
|
|
12
|
-
import * as i6 from "../../../directives/focus-binding.directive";
|
|
13
|
-
/**
|
|
14
|
-
* Using templates:
|
|
15
|
-
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
16
|
-
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
17
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
18
|
-
* </aup-select_input>
|
|
19
|
-
*/
|
|
20
|
-
export class SelectInputComponent extends AbstractValueInputComponent {
|
|
21
|
-
constructor() {
|
|
22
|
-
super();
|
|
23
|
-
this._options$ = new DelegatingListModel();
|
|
24
|
-
this.optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
|
|
25
|
-
this.id$ = new MutableValueModel();
|
|
26
|
-
this.delegatedIdentityOf = (item) => this.options$.identityOf(item);
|
|
27
|
-
this.trackByIdentity = (index, item) => this.delegatedIdentityOf(item) ?? index;
|
|
28
|
-
const { chain } = Dsl.disposeWith(this);
|
|
29
|
-
this.cookedOptions$ = chain(this.options$)
|
|
30
|
-
.reduceToList(options => {
|
|
31
|
-
return options.length < 1 && !isNil(this.componentValue$.value) ? [this.componentValue$.value] : options;
|
|
32
|
-
}, {
|
|
33
|
-
dependsOn: this.componentValue$
|
|
34
|
-
})
|
|
35
|
-
.identifiedWith(this.delegatedIdentityOf);
|
|
36
|
-
}
|
|
37
|
-
select(item) {
|
|
38
|
-
this.id$.value = this.delegatedIdentityOf(item);
|
|
39
|
-
}
|
|
40
|
-
ngOnInit() {
|
|
41
|
-
// NOTE: this has to be done after our parameter have been bound or we'll clobber the initial selected values with the writeRight
|
|
42
|
-
const { chain, before, when } = Dsl.disposeWith(this);
|
|
43
|
-
const lookup = chain(this.options$).indexUsing(this.delegatedIdentityOf);
|
|
44
|
-
const self = this;
|
|
45
|
-
const binding = this.registerDisposable(new Binding(this.componentValue$, this.id$, {
|
|
46
|
-
toLeft(selectedId, currentValue) {
|
|
47
|
-
if (isNil(selectedId)) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
const newValue = lookup.get(selectedId); // the list is empty or we're missing form it so don't touch the real value.
|
|
51
|
-
return isNil(newValue) ? currentValue : newValue;
|
|
52
|
-
},
|
|
53
|
-
leftDependsOn: lookup,
|
|
54
|
-
toRight(selectedValue, selectedId) {
|
|
55
|
-
return self.delegatedIdentityOf(selectedValue);
|
|
56
|
-
}
|
|
57
|
-
})).writeRight();
|
|
58
|
-
// TODO: we have to do this as the options identity function can change from identity to somethign else after
|
|
59
|
-
// we already have an initial value. In that case the stored id will be wrong.
|
|
60
|
-
// Probably a reasonable solution for it be to track changes in the identity function and handle it
|
|
61
|
-
// at a more fundamental level. This may include checking if the function has changed... but currently
|
|
62
|
-
// the function change things under the hood.
|
|
63
|
-
const snapshotValueAndId = (value) => ({
|
|
64
|
-
value: value,
|
|
65
|
-
id: this.delegatedIdentityOf(value)
|
|
66
|
-
});
|
|
67
|
-
let lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
|
|
68
|
-
console.log(lastIdSnapshot);
|
|
69
|
-
before(this.options$).changes(() => {
|
|
70
|
-
lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
|
|
71
|
-
console.log(lastIdSnapshot);
|
|
72
|
-
});
|
|
73
|
-
when(this.options$).changes((is, was) => {
|
|
74
|
-
const newIdSnapshot = snapshotValueAndId(lastIdSnapshot.value);
|
|
75
|
-
console.log(lastIdSnapshot, newIdSnapshot);
|
|
76
|
-
if (newIdSnapshot !== lastIdSnapshot.id) {
|
|
77
|
-
this.id$.value = this.delegatedIdentityOf(this.componentValue$.value);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
SelectInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
83
|
-
SelectInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "selectedOptionTemplateRef", first: true, predicate: ["selectedOptionTemplate"], descendants: true }, { propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of cookedOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\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: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "directive", type: i4.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
84
|
-
__decorate([
|
|
85
|
-
TrackExternal({ delegateTo: "_options$" }),
|
|
86
|
-
__metadata("design:type", ListModel)
|
|
87
|
-
], SelectInputComponent.prototype, "options$", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
TrackExternal({ delegateTo: "_options$" }),
|
|
90
|
-
__metadata("design:type", ListModel)
|
|
91
|
-
], SelectInputComponent.prototype, "optionsModel", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
StoreInListModel('optionsModel'),
|
|
94
|
-
__metadata("design:type", Array)
|
|
95
|
-
], SelectInputComponent.prototype, "options", void 0);
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: SelectInputComponent, decorators: [{
|
|
97
|
-
type: Component,
|
|
98
|
-
args: [{ selector: 'aup-select-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of cookedOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"] }]
|
|
99
|
-
}], ctorParameters: function () { return []; }, propDecorators: { options$: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], optionsModel: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], options: [{
|
|
104
|
-
type: Input
|
|
105
|
-
}], optionLabel: [{
|
|
106
|
-
type: Input
|
|
107
|
-
}], allowNil: [{
|
|
108
|
-
type: Input
|
|
109
|
-
}], selectedOptionTemplateRef: [{
|
|
110
|
-
type: ContentChild,
|
|
111
|
-
args: ['selectedOptionTemplate']
|
|
112
|
-
}], optionTemplateRef: [{
|
|
113
|
-
type: ContentChild,
|
|
114
|
-
args: ['optionTemplate']
|
|
115
|
-
}], nilOptionTemplateRef: [{
|
|
116
|
-
type: ContentChild,
|
|
117
|
-
args: ['nilOptionTemplate']
|
|
118
|
-
}], optionLabelFormat: [{
|
|
119
|
-
type: Input
|
|
120
|
-
}] } });
|
|
121
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvZm9ybXMvc2VsZWN0LWlucHV0L3NlbGVjdC1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm1zL3NlbGVjdC1pbnB1dC9zZWxlY3QtaW5wdXQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxXQUFXLEVBQWtCLE1BQU0sZUFBZSxDQUFDO0FBQ25HLE9BQU8sRUFDTCxPQUFPLEVBRVAsbUJBQW1CLEVBQ25CLEdBQUcsRUFDSCxTQUFTLEVBRVQsaUJBQWlCLEVBQ2pCLGdCQUFnQixFQUVoQixhQUFhLEVBQ2QsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QixPQUFPLEVBQUMsS0FBSyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBQzdCLE9BQU8sRUFBQywyQkFBMkIsRUFBQyxNQUFNLG1DQUFtQyxDQUFDOzs7Ozs7OztBQUU5RTs7Ozs7O0dBTUc7QUFNSCxNQUFNLE9BQU8sb0JBQThCLFNBQVEsMkJBQThCO0lBNkMvRTtRQ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