@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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import { Command, Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
+
import { AbstractValueInputComponent } from '../abstract-value-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/legacy-form-field";
|
|
9
|
+
import * as i4 from "@angular/material/legacy-input";
|
|
10
|
+
import * as i5 from "../../../directives/command.directive";
|
|
11
|
+
import * as i6 from "../../../directives/focus-binding.directive";
|
|
12
|
+
import * as i7 from "@angular/material/legacy-button";
|
|
13
|
+
import * as i8 from "../../icon/icon.component";
|
|
14
|
+
export class StringInputComponent extends AbstractValueInputComponent {
|
|
15
|
+
autocomplete;
|
|
16
|
+
enableClear$;
|
|
17
|
+
enableClear;
|
|
18
|
+
iconPrefix;
|
|
19
|
+
clearCommand;
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
23
|
+
this.clearCommand = Command.create(() => {
|
|
24
|
+
this.componentValue$.value = "";
|
|
25
|
+
});
|
|
26
|
+
this.clearCommand.disableWhile(chain.stringValue(this.componentValue$).isBlank());
|
|
27
|
+
}
|
|
28
|
+
ngOnInit() {
|
|
29
|
+
}
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: StringInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete", enableClear$: "enableClear$", enableClear: "enableClear", iconPrefix: "iconPrefix" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input 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 <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"], 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.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLegacyHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLegacyLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatLegacyPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatLegacySuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4.MatLegacyInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", exportAs: ["matInput"] }, { kind: "directive", type: i5.CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: i6.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i7.MatLegacyButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8.IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
32
|
+
}
|
|
33
|
+
__decorate([
|
|
34
|
+
TrackExternal({ defaultValue: false }),
|
|
35
|
+
__metadata("design:type", ValueModel)
|
|
36
|
+
], StringInputComponent.prototype, "enableClear$", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
StoreInValueModel('enableClear$'),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], StringInputComponent.prototype, "enableClear", void 0);
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: StringInputComponent, decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{ selector: 'aup-string-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input 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 <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"] }]
|
|
44
|
+
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], enableClear$: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], enableClear: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], iconPrefix: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvZm9ybXMvc3RyaW5nLWlucHV0L3N0cmluZy1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpY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hY2Vob2xkZXJ9fVwiXG4gICAgICAgICBbYXR0ci5hdXRvY29tcGxldGVdPVwiYXV0b2NvbXBsZXRlXCJcbiAgICAgICAgIFsobmdNb2RlbCldPVwiY29tcG9uZW50VmFsdWUkLnZhbHVlXCJcbiAgICAgICAgIFtkaXNhYmxlZF09XCIhZW5hYmxlZCQudmFsdWVcIlxuICAgICAgICAgKGtleWRvd24uZW50ZXIpPVwibm90aWZ5RW50ZXJLZXkoKVwiXG4gICAgICAgICAoa2V5ZG93bi5lc2NhcGUpPVwibm90aWZ5RXNjYXBlS2V5KClcIlxuICAgICAgICAgW3BlY3RpbkZvY3VzQmluZGluZ109XCJmb2N1c0NvbnRleHRcIlxuICAgICAgICAgW2Vycm9yU3RhdGVNYXRjaGVyXT1cImVycm9yU3RhdGVNYXRjaGVyXCJcbiAgPlxuICA8bWF0LWhpbnQgKm5nSWY9XCJzaG93SGludFwiPnt7aGludH19PC9tYXQtaGludD5cbiAgPG1hdC1lcnJvciAqbmdJZj1cImhhc0Vycm9yc1wiPnt7Zmlyc3RFcnJvcn19PC9tYXQtZXJyb3I+XG4gIDxhdXAtaWNvbiAqbmdJZj1cImljb25QcmVmaXhcIiBtYXRQcmVmaXggW2ljb25dPVwiaWNvblByZWZpeFwiPjwvYXVwLWljb24+XG4gIDxidXR0b24gbWF0LWJ1dHRvbiBtYXQtaWNvbi1idXR0b24gbWF0U3VmZml4ICpuZ0lmPVwiZW5hYmxlQ2xlYXJcIiBbcGVjdGluQ29tbWFuZF09XCJjbGVhckNvbW1hbmRcIj5cbiAgICA8YXVwLWljb24gaWNvbj1cIm1hdDpjbG9zZVwiPjwvYXVwLWljb24+XG4gIDwvYnV0dG9uPlxuPC9tYXQtZm9ybS1maWVsZD5cblxuIl19
|
|
@@ -0,0 +1,31 @@
|
|
|
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/legacy-form-field";
|
|
7
|
+
import * as i4 from "@angular/material/legacy-input";
|
|
8
|
+
import * as i5 from "../../../directives/focus-binding.directive";
|
|
9
|
+
export class TextInputComponent extends AbstractValueInputComponent {
|
|
10
|
+
// @Input() @TrackExternal({ delegateTo: 'inputModel' })
|
|
11
|
+
// valueModel: Form.ValueModelBase<string> | MutableValueModel<string>;
|
|
12
|
+
rows = 2;
|
|
13
|
+
cols;
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
// const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
17
|
+
}
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
}
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: TextInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: TextInputComponent, selector: "aup-text-input", inputs: { rows: "rows", cols: "cols" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"], 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.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLegacyHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLegacyLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatLegacyInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", exportAs: ["matInput"] }, { kind: "directive", type: i5.FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: TextInputComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{ selector: 'aup-text-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"] }]
|
|
26
|
+
}], ctorParameters: function () { return []; }, propDecorators: { rows: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], cols: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}] } });
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1pbnB1dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm1zL3RleHQtaW5wdXQvdGV4dC1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm1zL3RleHQtaW5wdXQvdGV4dC1pbnB1dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQzs7Ozs7OztBQU9oRixNQUFNLE9BQU8sa0JBQW1CLFNBQVEsMkJBQW1DO0lBRXpFLHdEQUF3RDtJQUN4RCx1RUFBdUU7SUFFOUQsSUFBSSxHQUFHLENBQUMsQ0FBQztJQUNULElBQUksQ0FBUztJQUV0QjtRQUNFLEtBQUssRUFBRSxDQUFDO1FBQ1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ZD5cblxuIl19
|
|
@@ -3,12 +3,14 @@ import { Enum } from 'typescript-string-enums';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common";
|
|
5
5
|
import * as i2 from "@angular/material/icon";
|
|
6
|
-
import * as i3 from "@angular/material/tooltip";
|
|
6
|
+
import * as i3 from "@angular/material/legacy-tooltip";
|
|
7
7
|
export class IconComponent {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
_icon;
|
|
9
|
+
prefix;
|
|
10
|
+
suffix;
|
|
11
|
+
errorMessage;
|
|
12
|
+
allowedPrefixes = Enum.values(IconComponent.IconPrefix).map(p => `${p}:`);
|
|
13
|
+
iconPrefix = IconComponent.IconPrefix;
|
|
12
14
|
set icon(iconName) {
|
|
13
15
|
this._icon = iconName;
|
|
14
16
|
if (!iconName) {
|
|
@@ -32,10 +34,10 @@ export class IconComponent {
|
|
|
32
34
|
get faIcon() {
|
|
33
35
|
return `fa-${this.suffix}`;
|
|
34
36
|
}
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: IconComponent, selector: "aup-icon", inputs: { icon: "icon" }, host: { properties: { "attr.icon": "this.icon" } }, ngImport: i0, template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"iconPrefix.SVG\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"iconPrefix.MATERIAL\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"iconPrefix.FONT_AWESOME\" class=\"faIconWrapper\">\n <i class=\"fa-solid\" [class]=\"faIcon\"></i>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n", styles: [":host{display:inline-flex;--resolved-size: var(--aup-icon-size, 24px);width:var(--resolved-size) fa-icon;width-vertical-align:middle}:host .faIconWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:var(--resolved-size);height:var(--resolved-size)}:host .svgIcon{width:var(--resolved-size);height:var(--resolved-size)}:host :host(.mat-chip-remove){--aup-icon-size: 18px}:host mat-icon{font-size:var(--resolved-size);width:var(--resolved-size);height:var(--resolved-size);margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatLegacyTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
35
39
|
}
|
|
36
|
-
|
|
37
|
-
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IconComponent, selector: "aup-icon", inputs: { icon: "icon" }, host: { properties: { "attr.icon": "this.icon" } }, ngImport: i0, template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"iconPrefix.SVG\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"iconPrefix.MATERIAL\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"iconPrefix.FONT_AWESOME\" class=\"faIconWrapper\">\n <i class=\"fa-solid\" [class]=\"faIcon\"></i>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n", styles: [":host{display:inline-flex;--resolved-size: var(--aup-icon-size, 24px);width:var(--resolved-size) fa-icon;width-vertical-align:middle}:host .faIconWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:var(--resolved-size);height:var(--resolved-size)}:host .svgIcon{width:var(--resolved-size);height:var(--resolved-size)}:host :host(.mat-chip-remove){--aup-icon-size: 18px}:host mat-icon{font-size:var(--resolved-size);width:var(--resolved-size);height:var(--resolved-size);margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IconComponent, decorators: [{
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IconComponent, decorators: [{
|
|
39
41
|
type: Component,
|
|
40
42
|
args: [{ selector: 'aup-icon', template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"iconPrefix.SVG\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"iconPrefix.MATERIAL\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"iconPrefix.FONT_AWESOME\" class=\"faIconWrapper\">\n <i class=\"fa-solid\" [class]=\"faIcon\"></i>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n", styles: [":host{display:inline-flex;--resolved-size: var(--aup-icon-size, 24px);width:var(--resolved-size) fa-icon;width-vertical-align:middle}:host .faIconWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:var(--resolved-size);height:var(--resolved-size)}:host .svgIcon{width:var(--resolved-size);height:var(--resolved-size)}:host :host(.mat-chip-remove){--aup-icon-size: 18px}:host mat-icon{font-size:var(--resolved-size);width:var(--resolved-size);height:var(--resolved-size);margin-right:0!important}\n"] }]
|
|
41
43
|
}], propDecorators: { icon: [{
|
|
@@ -51,4 +53,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
51
53
|
MATERIAL: 'mat'
|
|
52
54
|
});
|
|
53
55
|
})(IconComponent || (IconComponent = {}));
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2ljb24vaWNvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2ljb24vaWNvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQTJCLE1BQU0sZUFBZSxDQUFDO0FBQ3RGLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQzs7Ozs7QUFPN0MsTUFBTSxPQUFPLGFBQWE7SUFFeEIsS0FBSyxDQUFTO0lBRWQsTUFBTSxDQUFTO0lBQ2YsTUFBTSxDQ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0cmluZyB7XG4gICAgcmV0dXJuIGBmYS0ke3RoaXMuc3VmZml4fWA7XG4gIH1cblxufVxuXG5cbmV4cG9ydCBuYW1lc3BhY2UgSWNvbkNvbXBvbmVudCB7XG5cbiAgZXhwb3J0IGNvbnN0IEljb25QcmVmaXggPSBFbnVtKHtcbiAgICBTVkc6ICdzdmcnLFxuICAgIEZPTlRfQVdFU09NRTogJ2ZhJyxcbiAgICBNQVRFUklBTDogJ21hdCdcbiAgfSk7XG4gIGV4cG9ydCB0eXBlIEljb25QcmVmaXggPSBFbnVtPHR5cGVvZiBJY29uUHJlZml4PjtcblxufVxuIiwiPG5nLWNvbnRhaW5lciBbbmdTd2l0Y2hdPVwicHJlZml4XCI+XG5cbiAgPG1hdC1pY29uICpuZ1N3aXRjaENhc2U9XCJpY29uUHJlZml4LlNWR1wiXG4gICAgICAgICAgICBbc3ZnSWNvbl09XCJzdWZmaXhcIlxuICAgICAgICAgICAgY2xhc3M9XCJzdmdJY29uXCI+XG4gIDwvbWF0LWljb24+XG5cbiAgPG1hdC1pY29uICpuZ1N3aXRjaENhc2U9XCJpY29uUHJlZml4Lk1BVEVSSUFMXCI+XG4gICAge3tzdWZmaXh9fVxuICA8L21hdC1pY29uPlxuXG4gIDxkaXYgKm5nU3dpdGNoQ2FzZT1cImljb25QcmVmaXguRk9OVF9BV0VTT01FXCIgY2xhc3M9XCJmYUljb25XcmFwcGVyXCI+XG4gICAgPGkgY2xhc3M9XCJmYS1zb2xpZFwiIFtjbGFzc109XCJmYUljb25cIj48L2k+XG4gIDwvZGl2PlxuXG4gIDxtYXQtaWNvbiAqbmdTd2l0Y2hEZWZhdWx0XG4gICAgICAgICAgICBbbWF0VG9vbHRpcF09XCJlcnJvck1lc3NhZ2VcIj5cbiAgICBidWdfcmVwb3J0XG4gIDwvbWF0LWljb24+XG5cbjwvbmctY29udGFpbmVyPlxuXG4iXX0=
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { DisposableComponent } from '../disposable-component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class LabelledValueComponent extends DisposableComponent {
|
|
5
|
+
// readonly i18n = I18nMarsUi.components.layout.valueDisplay;
|
|
6
|
+
label;
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
// const {chain} = Dsl.disposeWith(this);
|
|
10
|
+
}
|
|
11
|
+
ngOnInit() {
|
|
12
|
+
}
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: LabelledValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: LabelledValueComponent, selector: "aup-labelled-value", inputs: { label: "label" }, usesInheritance: true, ngImport: i0, template: "<label>{{label}}</label>\n<ng-content></ng-content>\n", styles: [":host{display:inline-flex;flex-direction:column;align-items:flex-start}label{font-weight:400;font-size:12px;color:#00000091;margin-bottom:6px;white-space:nowrap}\n"] });
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: LabelledValueComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{ selector: 'aup-labelled-value', template: "<label>{{label}}</label>\n<ng-content></ng-content>\n", styles: [":host{display:inline-flex;flex-direction:column;align-items:flex-start}label{font-weight:400;font-size:12px;color:#00000091;margin-bottom:6px;white-space:nowrap}\n"] }]
|
|
19
|
+
}], ctorParameters: function () { return []; }, propDecorators: { label: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}] } });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFiZWxsZWQtdmFsdWUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4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BvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vbGFiZWxsZWQtdmFsdWUuY29tcG9uZW50LnNjc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBMYWJlbGxlZFZhbHVlQ29tcG9uZW50IGV4dGVuZHMgRGlzcG9zYWJsZUNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG5cbiAgLy8gcmVhZG9ubHkgaTE4biA9IEkxOG5NYXJzVWkuY29tcG9uZW50cy5sYXlvdXQudmFsdWVEaXNwbGF5O1xuXG4gIEBJbnB1dCgpXG4gIGxhYmVsOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoKTtcbiAgICAvLyBjb25zdCB7Y2hhaW59ID0gRHNsLmRpc3Bvc2VXaXRoKHRoaXMpO1xuICB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gIH1cblxufVxuIiwiPGxhYmVsPnt7bGFiZWx9fTwvbGFiZWw+XG48bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4iXX0=
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
3
|
+
import { GarbageCollector, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/material/legacy-progress-bar";
|
|
7
|
+
export class LoadingContainerComponent extends GarbageCollector {
|
|
8
|
+
loadingModel;
|
|
9
|
+
loading;
|
|
10
|
+
messageModel;
|
|
11
|
+
message;
|
|
12
|
+
get state() {
|
|
13
|
+
return this.loadingModel.value ? "loaded" : "loading";
|
|
14
|
+
}
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
}
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
}
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: LoadingContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: LoadingContainerComponent, selector: "aup-loading-container", inputs: { loadingModel: "loadingModel", loading: "loading", messageModel: "messageModel", message: "message" }, host: { properties: { "class": "this.state" } }, usesInheritance: true, ngImport: i0, template: "<ng-content *ngIf=\"!loadingModel.value\"></ng-content>\n<section *ngIf=\"loadingModel.value\" class=\"loading-indicator-overlay\">\n <div class=\"loading-message\">\n <p>{{messageModel.value}}</p>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n</section>\n", styles: [":host{display:block;position:relative}section.loading-indicator-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-message{display:inline-block;text-align:center;width:10em}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatLegacyProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
TrackExternal(),
|
|
25
|
+
__metadata("design:type", ValueModel)
|
|
26
|
+
], LoadingContainerComponent.prototype, "loadingModel", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
StoreInValueModel("loadingModel"),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], LoadingContainerComponent.prototype, "loading", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
TrackExternal(),
|
|
33
|
+
__metadata("design:type", ValueModel)
|
|
34
|
+
], LoadingContainerComponent.prototype, "messageModel", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
StoreInValueModel("messageModel"),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], LoadingContainerComponent.prototype, "message", void 0);
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: LoadingContainerComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{ selector: 'aup-loading-container', template: "<ng-content *ngIf=\"!loadingModel.value\"></ng-content>\n<section *ngIf=\"loadingModel.value\" class=\"loading-indicator-overlay\">\n <div class=\"loading-message\">\n <p>{{messageModel.value}}</p>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n</section>\n", styles: [":host{display:block;position:relative}section.loading-indicator-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-message{display:inline-block;text-align:center;width:10em}\n"] }]
|
|
42
|
+
}], ctorParameters: function () { return []; }, propDecorators: { loadingModel: [{
|
|
43
|
+
type: Input
|
|
44
|
+
}], loading: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], messageModel: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], message: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], state: [{
|
|
51
|
+
type: HostBinding,
|
|
52
|
+
args: ["class"]
|
|
53
|
+
}] } });
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9sb2FkaW5nLWNvbnRhaW5lci9sb2FkaW5nLWNvbnRhaW5lci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2xvYWRpbmctY29udGFpbmVyL2xvYWRpbmctY29udGFpbmVyLmNvbX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V0dXJuIHRoaXMubG9hZGluZ01vZGVsLnZhbHVlID8gXCJsb2FkZWRcIiA6IFwibG9hZGluZ1wiO1xuICB9XG5cbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoKVxuICB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIiwiPG5nLWNvbnRlbnQgKm5nSWY9XCIhbG9hZGluZ01vZGVsLnZhbHVlXCI+PC9uZy1jb250ZW50PlxuPHNlY3Rpb24gKm5nSWY9XCJsb2FkaW5nTW9kZWwudmFsdWVcIiBjbGFzcz1cImxvYWRpbmctaW5kaWNhdG9yLW92ZXJsYXlcIj5cbiAgPGRpdiBjbGFzcz1cImxvYWRpbmctbWVzc2FnZVwiPlxuICAgIDxwPnt7bWVzc2FnZU1vZGVsLnZhbHVlfX08L3A+XG4gICAgPG1hdC1wcm9ncmVzcy1iYXIgbW9kZT1cImluZGV0ZXJtaW5hdGVcIj48L21hdC1wcm9ncmVzcy1iYXI+XG4gIDwvZGl2PlxuPC9zZWN0aW9uPlxuIl19
|
|
@@ -3,11 +3,11 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export class NoopComponent {
|
|
4
4
|
constructor() {
|
|
5
5
|
}
|
|
6
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NoopComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: NoopComponent, selector: "aup-noop", ngImport: i0, template: "", styles: [":host{display:block}\n"] });
|
|
6
8
|
}
|
|
7
|
-
|
|
8
|
-
NoopComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: NoopComponent, selector: "aup-noop", ngImport: i0, template: "", styles: [":host{display:block}\n"] });
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: NoopComponent, decorators: [{
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NoopComponent, decorators: [{
|
|
10
10
|
type: Component,
|
|
11
11
|
args: [{ selector: 'aup-noop', template: "", styles: [":host{display:block}\n"] }]
|
|
12
12
|
}], ctorParameters: function () { return []; } });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9vcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL25vb3Avbm9vcC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL25vb3Avbm9vcC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU8xQyxNQUFNLE9BQU8sYUFBYTtJQUN4QjtJQUNBLENBQUM7dUdBRlUsYUFBYTsyRkFBYixhQUFhLGdEQ1AxQixFQUFBOzsyRkRPYSxhQUFhO2tCQUx6QixTQUFTOytCQUNFLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnYXVwLW5vb3AnLFxuICB0ZW1wbGF0ZVVybDogJy4vbm9vcC5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL25vb3AuY29tcG9uZW50LnNjc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBOb29wQ29tcG9uZW50IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gIH1cbn1cbiIsIiJdfQ==
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Directive, ElementRef, NgZone } from '@angular/core';
|
|
2
|
+
import { MutableValueModel } from '@coolon/pectin';
|
|
3
|
+
import ResizeObserver from 'resize-observer-polyfill';
|
|
4
|
+
import { DisposableComponent } from './disposable-component';
|
|
5
|
+
import { Bounds } from './types/bounds.class';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class ResizeAwareComponent extends DisposableComponent {
|
|
8
|
+
elementRef;
|
|
9
|
+
ngZone;
|
|
10
|
+
_boundsModel = new MutableValueModel(new Bounds(0, 0, 0, 0));
|
|
11
|
+
constructor(elementRef, ngZone) {
|
|
12
|
+
super();
|
|
13
|
+
this.elementRef = elementRef;
|
|
14
|
+
this.ngZone = ngZone;
|
|
15
|
+
}
|
|
16
|
+
ngAfterViewInit() {
|
|
17
|
+
const element = this.elementRef.nativeElement;
|
|
18
|
+
const ro = new ResizeObserver((entries, observer) => {
|
|
19
|
+
this.ngZone.run(() => this._updateBounds());
|
|
20
|
+
});
|
|
21
|
+
ro.observe(element);
|
|
22
|
+
this.onDispose(() => ro.disconnect());
|
|
23
|
+
setTimeout(() => this._updateBounds());
|
|
24
|
+
}
|
|
25
|
+
get boundsModel() {
|
|
26
|
+
return this._boundsModel.readonly;
|
|
27
|
+
}
|
|
28
|
+
get nativeElement() {
|
|
29
|
+
return this.elementRef.nativeElement;
|
|
30
|
+
}
|
|
31
|
+
// TODO: Make this handle body scroll
|
|
32
|
+
relativePositionOf(point) {
|
|
33
|
+
return this.bounds.relativePositionOf(point);
|
|
34
|
+
}
|
|
35
|
+
get bounds() {
|
|
36
|
+
return this._boundsModel.value;
|
|
37
|
+
}
|
|
38
|
+
_updateBounds() {
|
|
39
|
+
this._boundsModel.value = Bounds.ofElement(this.nativeElement);
|
|
40
|
+
}
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ResizeAwareComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
42
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.6", type: ResizeAwareComponent, usesInheritance: true, ngImport: i0 });
|
|
43
|
+
}
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ResizeAwareComponent, decorators: [{
|
|
45
|
+
type: Directive
|
|
46
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplLWF3YXJlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvcmVzaXplLWF3YXJlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWlCLFNBQVMsRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzdFLE9BQU8sRUFBRSxpQkFBaUIsRUFBYyxNQUFNLGdCQUFnQixDQUFDO0FBQy9ELE9BQU8sY0FBYyxNQUFNLDBCQUEwQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzdELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7QUFJOUMsTUFBTSxPQUFPLG9CQUFxQixTQUFRLG1CQUFtQjtJQUk1QjtJQUEyQztJQUZsRSxZQUFZLEdBQUcsS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GlzLmJvdW5kcy5yZWxhdGl2ZVBvc2l0aW9uT2YocG9pbnQpO1xuICB9XG5cbiAgZ2V0IGJvdW5kcygpOiBCb3VuZHMge1xuICAgIHJldHVybiB0aGlzLl9ib3VuZHNNb2RlbC52YWx1ZTtcbiAgfVxuXG4gIHByaXZhdGUgX3VwZGF0ZUJvdW5kcygpIHtcbiAgICB0aGlzLl9ib3VuZHNNb2RlbC52YWx1ZSA9IEJvdW5kcy5vZkVsZW1lbnQodGhpcy5uYXRpdmVFbGVtZW50KTtcbiAgfVxuXG59XG5cbmV4cG9ydCBuYW1lc3BhY2UgUmVzaXplQXdhcmVDb21wb25lbnQge1xuXG59XG4iXX0=
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Component, HostBinding, Input } from "@angular/core";
|
|
3
|
+
import { StoreInValueModel, TrackExternal, ValueModel } from "@coolon/pectin";
|
|
4
|
+
import { DisposableComponent } from "../disposable-component";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/cdk/scrolling";
|
|
7
|
+
export class ScrollContainerComponent extends DisposableComponent {
|
|
8
|
+
disableScroll$;
|
|
9
|
+
disableScroll;
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
}
|
|
13
|
+
ngOnInit() {
|
|
14
|
+
}
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ScrollContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: ScrollContainerComponent, selector: "aup-scroll-container", inputs: { disableScroll$: "disableScroll$", disableScroll: "disableScroll" }, host: { properties: { "class.disable-scroll": "this.disableScroll" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"scroll-container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host:not(.disable-scroll){min-height:0}:host:not(.disable-scroll)>.scroll-container{flex-basis:0;overflow-y:scroll;align-items:stretch}:host>.scroll-container{display:flex;flex-direction:column;flex:1}\n"], dependencies: [{ kind: "directive", type: i1.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }] });
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
TrackExternal({ defaultValue: false }),
|
|
20
|
+
__metadata("design:type", ValueModel)
|
|
21
|
+
], ScrollContainerComponent.prototype, "disableScroll$", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
StoreInValueModel("disableScroll$"),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], ScrollContainerComponent.prototype, "disableScroll", void 0);
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ScrollContainerComponent, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{ selector: "aup-scroll-container", template: "<div class=\"scroll-container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host:not(.disable-scroll){min-height:0}:host:not(.disable-scroll)>.scroll-container{flex-basis:0;overflow-y:scroll;align-items:stretch}:host>.scroll-container{display:flex;flex-direction:column;flex:1}\n"] }]
|
|
29
|
+
}], ctorParameters: function () { return []; }, propDecorators: { disableScroll$: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], disableScroll: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}, {
|
|
34
|
+
type: HostBinding,
|
|
35
|
+
args: ["class.disable-scroll"]
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLWNvbnRhaW5lci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8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2RrU2Nyb2xsYWJsZT5cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
|
+
import { DisposableComponent } from '../disposable-component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class SectionHeaderComponent extends DisposableComponent {
|
|
5
|
+
// readonly i18n = I18nMarsUi.components.layout.header;
|
|
6
|
+
size = 'medium';
|
|
7
|
+
borderTop = false;
|
|
8
|
+
borderBottom = false;
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
}
|
|
12
|
+
ngOnInit() {
|
|
13
|
+
}
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SectionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: SectionHeaderComponent, selector: "aup-section-header", inputs: { size: "size", borderTop: "borderTop", borderBottom: "borderBottom" }, host: { properties: { "class": "this.size", "class.border-top": "this.borderTop", "class.border-bottom": "this.borderBottom" } }, usesInheritance: true, ngImport: i0, template: "<span class=\"container-start\"><ng-content select=\"[header-start]\"></ng-content><ng-content></ng-content></span>\n<span class=\"container-middle\"><ng-content select=\"[header-center]\"></ng-content></span>\n<span class=\"container-end\"><ng-content select=\"[header-end]\"></ng-content></span>\n", styles: [":host{display:flex;flex-direction:row;align-items:center;--resolved-padding: var(--padding, var(--default-padding));--resolved-padding-right: var(--padding-right, calc(var(--default-padding)/2));padding-left:var(--resolved-padding);padding-right:var(--resolved-padding-right);box-sizing:border-box}:host.has-back-button{padding-left:0}:host.toolbar{height:56px;min-height:56px}:host.toolbar span{font-weight:500;font-size:18px;color:#000000ab}:host.large{height:48px;min-height:48px}:host.large span{font-weight:500;font-size:14px;color:#000000ab}:host.medium{height:48px;min-height:48px}:host.medium span{font-weight:500;font-size:13px;color:#000000ab}:host.small{height:30px;min-height:30px}:host.small span{font-weight:300;font-size:12px;color:#000000ab}:host.border-top{border-top:var(--pinstripe-border)}:host.border-bottom{border-bottom:var(--pinstripe-border)}span{white-space:nowrap;display:inline-flex;flex-direction:row;align-items:center}span.container-start{justify-content:flex-start}span.container-middle{justify-content:center;flex:1;width:0;overflow:hidden}span.container-end{justify-content:flex-end}\n"] });
|
|
16
|
+
}
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SectionHeaderComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{ selector: 'aup-section-header', template: "<span class=\"container-start\"><ng-content select=\"[header-start]\"></ng-content><ng-content></ng-content></span>\n<span class=\"container-middle\"><ng-content select=\"[header-center]\"></ng-content></span>\n<span class=\"container-end\"><ng-content select=\"[header-end]\"></ng-content></span>\n", styles: [":host{display:flex;flex-direction:row;align-items:center;--resolved-padding: var(--padding, var(--default-padding));--resolved-padding-right: var(--padding-right, calc(var(--default-padding)/2));padding-left:var(--resolved-padding);padding-right:var(--resolved-padding-right);box-sizing:border-box}:host.has-back-button{padding-left:0}:host.toolbar{height:56px;min-height:56px}:host.toolbar span{font-weight:500;font-size:18px;color:#000000ab}:host.large{height:48px;min-height:48px}:host.large span{font-weight:500;font-size:14px;color:#000000ab}:host.medium{height:48px;min-height:48px}:host.medium span{font-weight:500;font-size:13px;color:#000000ab}:host.small{height:30px;min-height:30px}:host.small span{font-weight:300;font-size:12px;color:#000000ab}:host.border-top{border-top:var(--pinstripe-border)}:host.border-bottom{border-bottom:var(--pinstripe-border)}span{white-space:nowrap;display:inline-flex;flex-direction:row;align-items:center}span.container-start{justify-content:flex-start}span.container-middle{justify-content:center;flex:1;width:0;overflow:hidden}span.container-end{justify-content:flex-end}\n"] }]
|
|
20
|
+
}], ctorParameters: function () { return []; }, propDecorators: { size: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}, {
|
|
23
|
+
type: HostBinding,
|
|
24
|
+
args: ['class']
|
|
25
|
+
}], borderTop: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}, {
|
|
28
|
+
type: HostBinding,
|
|
29
|
+
args: ['class.border-top']
|
|
30
|
+
}], borderBottom: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}, {
|
|
33
|
+
type: HostBinding,
|
|
34
|
+
args: ['class.border-bottom']
|
|
35
|
+
}] } });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi1oZWFkZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9zZWN0aW9uLWhlYWRlci9zZWN0aW9uLWhlYWRlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL3NlY3Rpb24taGVhZGVyL3NlY3Rpb24taGVhZGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQzs7QUFPOUQsTUFBTSxPQUFPLHNCQUF1QixTQUFRLG1CQUFtQjtJQUU3RCx1REFBdUQ7SUFJdkQsSUFBSSxHQUE2QyxRQUFRLENBQUM7SUFJMUQsU0FBUyxHQUFHLEtBQUssQ0FBQztJQUlsQixZQUFZLEdBQUcsS0FBSyxDQUFDO0lBRXJCO1FBQ0U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yB8ICdzbWFsbCcgPSAnbWVkaXVtJztcblxuICBASW5wdXQoKVxuICBASG9zdEJpbmRpbmcoJ2NsYXNzLmJvcmRlci10b3AnKVxuICBib3JkZXJUb3AgPSBmYWxzZTtcblxuICBASW5wdXQoKVxuICBASG9zdEJpbmRpbmcoJ2NsYXNzLmJvcmRlci1ib3R0b20nKVxuICBib3JkZXJCb3R0b20gPSBmYWxzZTtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gIH1cblxufVxuIiwiPHNwYW4gY2xhc3M9XCJjb250YWluZXItc3RhcnRcIj48bmctY29udGVudCBzZWxlY3Q9XCJbaGVhZGVyLXN0YXJ0XVwiPjwvbmctY29udGVudD48bmctY29udGVudD48L25nLWNvbnRlbnQ+PC9zcGFuPlxuPHNwYW4gY2xhc3M9XCJjb250YWluZXItbWlkZGxlXCI+PG5nLWNvbnRlbnQgc2VsZWN0PVwiW2hlYWRlci1jZW50ZXJdXCI+PC9uZy1jb250ZW50Pjwvc3Bhbj5cbjxzcGFuIGNsYXNzPVwiY29udGFpbmVyLWVuZFwiPjxuZy1jb250ZW50IHNlbGVjdD1cIltoZWFkZXItZW5kXVwiPjwvbmctY29udGVudD48L3NwYW4+XG4iXX0=
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { ChangeDetectorRef, Component, ContentChildren, Directive, Input, QueryList, TemplateRef } from '@angular/core';
|
|
3
|
+
import { Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
+
import { DisposableComponent } from '../disposable-component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "@angular/material/legacy-tabs";
|
|
8
|
+
export class SwitchCaseOption {
|
|
9
|
+
templateRef;
|
|
10
|
+
constructor(templateRef) {
|
|
11
|
+
this.templateRef = templateRef;
|
|
12
|
+
}
|
|
13
|
+
get name() {
|
|
14
|
+
return this.constructor.name;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export class SwitchCaseWhenDirective extends SwitchCaseOption {
|
|
18
|
+
aupSwitchCaseWhen;
|
|
19
|
+
isDefault = false;
|
|
20
|
+
constructor(templateRef) {
|
|
21
|
+
super(templateRef);
|
|
22
|
+
}
|
|
23
|
+
matches(value) {
|
|
24
|
+
return this.aupSwitchCaseWhen === value;
|
|
25
|
+
}
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SwitchCaseWhenDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
27
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.6", type: SwitchCaseWhenDirective, selector: "[aupSwitchCaseWhen]", inputs: { aupSwitchCaseWhen: "aupSwitchCaseWhen" }, providers: [{ provide: SwitchCaseOption, useExisting: SwitchCaseWhenDirective }], usesInheritance: true, ngImport: i0 });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SwitchCaseWhenDirective, decorators: [{
|
|
30
|
+
type: Directive,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: '[aupSwitchCaseWhen]',
|
|
33
|
+
providers: [{ provide: SwitchCaseOption, useExisting: SwitchCaseWhenDirective }]
|
|
34
|
+
}]
|
|
35
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { aupSwitchCaseWhen: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}] } });
|
|
38
|
+
export class SwitchCaseDefaultDirective extends SwitchCaseOption {
|
|
39
|
+
isDefault = true;
|
|
40
|
+
constructor(templateRef) {
|
|
41
|
+
super(templateRef);
|
|
42
|
+
}
|
|
43
|
+
matches(value) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SwitchCaseDefaultDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
47
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.6", type: SwitchCaseDefaultDirective, selector: "[aupSwitchCaseDefault]", providers: [{ provide: SwitchCaseOption, useExisting: SwitchCaseDefaultDirective }], usesInheritance: true, ngImport: i0 });
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SwitchCaseDefaultDirective, decorators: [{
|
|
50
|
+
type: Directive,
|
|
51
|
+
args: [{
|
|
52
|
+
selector: '[aupSwitchCaseDefault]',
|
|
53
|
+
providers: [{ provide: SwitchCaseOption, useExisting: SwitchCaseDefaultDirective }]
|
|
54
|
+
}]
|
|
55
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
56
|
+
/**
|
|
57
|
+
* @example
|
|
58
|
+
* <aup-switch-case [switchModel]="booleanModel">
|
|
59
|
+
* <div *aupSwitchCaseWhen="true"></div>
|
|
60
|
+
* <div *aupSwitchCaseDefault>The default content</div>
|
|
61
|
+
* </aup-switch-case>
|
|
62
|
+
*/
|
|
63
|
+
export class SwitchCaseComponent extends DisposableComponent {
|
|
64
|
+
cdr;
|
|
65
|
+
switchModel;
|
|
66
|
+
switch;
|
|
67
|
+
switchCaseOptions;
|
|
68
|
+
selectedIndex = 0;
|
|
69
|
+
constructor(cdr) {
|
|
70
|
+
super();
|
|
71
|
+
this.cdr = cdr;
|
|
72
|
+
}
|
|
73
|
+
ngOnInit() {
|
|
74
|
+
}
|
|
75
|
+
ngAfterContentInit() {
|
|
76
|
+
const subscription = this.switchCaseOptions.changes.subscribe(change => this.updateSelection());
|
|
77
|
+
this.onDispose(() => subscription.unsubscribe());
|
|
78
|
+
const { chain, when } = Dsl.disposeWith(this);
|
|
79
|
+
when(this.switchModel).changes(() => this.updateSelection(), { initialValue: 'triggerChange' });
|
|
80
|
+
this.cdr.detectChanges();
|
|
81
|
+
}
|
|
82
|
+
updateSelection() {
|
|
83
|
+
const matchingIndicies = [];
|
|
84
|
+
this.switchCaseOptions.forEach((option, index) => {
|
|
85
|
+
if (option.matches(this.switchModel.value)) {
|
|
86
|
+
matchingIndicies.push(index);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
if (matchingIndicies.length > 1) {
|
|
90
|
+
console.warn(`found ${matchingIndicies.length} matching case values, displaying the first.`);
|
|
91
|
+
}
|
|
92
|
+
if (matchingIndicies.length === 0) {
|
|
93
|
+
this.switchCaseOptions.forEach((option, index) => {
|
|
94
|
+
if (option.isDefault) {
|
|
95
|
+
matchingIndicies.push(index);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
if (matchingIndicies.length > 1) {
|
|
99
|
+
console.warn(`found ${matchingIndicies.length} default case values, displaying the first.`);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
if (matchingIndicies.length > 0) {
|
|
103
|
+
this.selectedIndex = matchingIndicies[0];
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
console.warn(`found no matching or default case values.`);
|
|
107
|
+
this.selectedIndex = -1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SwitchCaseComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
111
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.6", type: SwitchCaseComponent, selector: "aup-switch-case", inputs: { switchModel: "switchModel", switch: "switch" }, queries: [{ propertyName: "switchCaseOptions", predicate: SwitchCaseOption }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group class=\"content-wrapper\" no-tab-header full-height-tabs [selectedIndex]=\"selectedIndex\">\n <mat-tab *ngFor=\"let option of switchCaseOptions\">\n <ng-template [ngTemplateOutlet]=\"option.templateRef\"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.MatLegacyTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { kind: "component", type: i2.MatLegacyTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }] });
|
|
112
|
+
}
|
|
113
|
+
__decorate([
|
|
114
|
+
TrackExternal(),
|
|
115
|
+
__metadata("design:type", ValueModel)
|
|
116
|
+
], SwitchCaseComponent.prototype, "switchModel", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
StoreInValueModel('switchModel'),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
|
+
], SwitchCaseComponent.prototype, "switch", void 0);
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: SwitchCaseComponent, decorators: [{
|
|
122
|
+
type: Component,
|
|
123
|
+
args: [{ selector: 'aup-switch-case', template: "<mat-tab-group class=\"content-wrapper\" no-tab-header full-height-tabs [selectedIndex]=\"selectedIndex\">\n <mat-tab *ngFor=\"let option of switchCaseOptions\">\n <ng-template [ngTemplateOutlet]=\"option.templateRef\"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}\n"] }]
|
|
124
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { switchModel: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], switch: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], switchCaseOptions: [{
|
|
129
|
+
type: ContentChildren,
|
|
130
|
+
args: [SwitchCaseOption]
|
|
131
|
+
}] } });
|
|
132
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLWNhc2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9zd2l0Y2gtY2FzZS9zd2l0Y2gtY2FzZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL3N3aXRjaC1jYXNlL3N3aXRjaC1jYXNlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBRUwsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxlQUFlLEVBQ2YsU0FBUyxFQUNULEtBQUssRUFFTCxTQUFTLEVBQ1QsV0FBVyxFQUNaLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxHQUFHLEVBQUUsaUJBQWlCLEVBQUUsYUFBYSxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ25GLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDOzs7O0FBRzlELE1BQU0sT0FBZ0IsZ0JBQWdCO0lBSWY7SUFBckIsWUFBcUIsV0FBZ0M7UUFBaEMsZ0JBQVcsR0FBWCxXQUFXLENBQXFCO0lBQ3JELENBQUM7SUFFRCxJQUF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