@coolon/angular-ui-powerups 12.4.0-alpha.8 → 12.4.0-alpha.81
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/activities/activities.scss +77 -0
- package/assets/activities/input-activities.scss +36 -0
- package/assets/cards.scss +17 -0
- package/assets/empty-state.scss +11 -0
- package/assets/form.scss +10 -2
- package/assets/forms/mixins.scss +6 -0
- package/assets/interaction/editor/inline-string-editor.scss +54 -0
- package/assets/interaction.scss +10 -7
- package/assets/markdown.scss +10 -0
- package/assets/mixins.scss +5 -7
- package/assets/pills.scss +45 -0
- package/assets/styles.scss +11 -15
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +741 -336
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +1436 -448
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/component-builder.d.ts +71 -0
- package/cypress/components/aup-abstract-activity.d.ts +31 -0
- package/cypress/components/aup-abstract-table.d.ts +18 -0
- package/cypress/components/aup-activity.d.ts +9 -0
- package/cypress/components/aup-alert-dialog.d.ts +27 -0
- package/cypress/components/aup-alert.d.ts +9 -0
- package/cypress/components/aup-command-face.d.ts +2 -8
- package/cypress/components/aup-command.d.ts +2 -1
- package/cypress/components/aup-confirm-dialog.d.ts +27 -0
- package/cypress/components/aup-confirm.d.ts +11 -0
- package/cypress/components/aup-empty-state.d.ts +1 -2
- package/cypress/components/aup-input.d.ts +11 -5
- package/cypress/components/aup-modal-activity.d.ts +24 -0
- package/cypress/components/aup-modal-mixin.d.ts +23 -0
- package/cypress/components/aup-table.d.ts +5 -18
- package/cypress/components/aup-tree-table.d.ts +16 -0
- package/cypress/components/button.d.ts +11 -7
- package/cypress/components/form-element-mixin.d.ts +22 -0
- package/cypress/components/mat-checkbox.d.ts +31 -0
- package/cypress/components/popup/aup-abstract-popup-menu.d.ts +15 -0
- package/cypress/components/popup/aup-more-menu.d.ts +5 -0
- package/cypress/components/popup/aup-popup-menu-panel.d.ts +3 -0
- package/cypress/components/popup/aup-popup-menu.d.ts +7 -0
- package/cypress/components/table/aup-table-cell.d.ts +9 -0
- package/cypress/components/table/aup-table-column.d.ts +10 -0
- package/cypress/components/table/aup-table-row.d.ts +17 -0
- package/cypress/components/table/aup-table-selection-cell.d.ts +5 -0
- package/cypress/components/table/aup-table-selection-column.d.ts +5 -0
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/element-locator.d.ts +8 -0
- package/cypress/exports.d.ts +24 -4
- package/cypress/package.json +1 -1
- package/cypress/page-builder.d.ts +9 -0
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +8 -34
- package/esm2015/cypress/component-builder.js +92 -0
- package/esm2015/cypress/component-builder.js.map +1 -0
- package/esm2015/cypress/component-builder.metadata.json +1 -0
- package/esm2015/cypress/components/aup-abstract-activity.js +12 -0
- package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-abstract-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-abstract-table.js +50 -0
- package/esm2015/cypress/components/aup-abstract-table.js.map +1 -0
- package/esm2015/cypress/components/aup-abstract-table.metadata.json +1 -0
- package/esm2015/cypress/components/aup-activity.js +13 -0
- package/esm2015/cypress/components/aup-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-alert-dialog.js +8 -0
- package/esm2015/cypress/components/aup-alert-dialog.js.map +1 -0
- package/esm2015/cypress/components/aup-alert-dialog.metadata.json +1 -0
- package/esm2015/cypress/components/aup-alert.js +13 -0
- package/esm2015/cypress/components/aup-alert.js.map +1 -0
- package/esm2015/cypress/components/aup-alert.metadata.json +1 -0
- package/esm2015/cypress/components/aup-command-face.js +11 -22
- package/esm2015/cypress/components/aup-command-face.js.map +1 -1
- package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
- package/esm2015/cypress/components/aup-command.js +12 -6
- package/esm2015/cypress/components/aup-command.js.map +1 -1
- package/esm2015/cypress/components/aup-command.metadata.json +1 -1
- package/esm2015/cypress/components/aup-confirm-dialog.js +8 -0
- package/esm2015/cypress/components/aup-confirm-dialog.js.map +1 -0
- package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +1 -0
- package/esm2015/cypress/components/aup-confirm.js +19 -0
- package/esm2015/cypress/components/aup-confirm.js.map +1 -0
- package/esm2015/cypress/components/aup-confirm.metadata.json +1 -0
- package/esm2015/cypress/components/aup-empty-state.js +2 -2
- package/esm2015/cypress/components/aup-empty-state.js.map +1 -1
- package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -1
- package/esm2015/cypress/components/aup-input.js +17 -5
- package/esm2015/cypress/components/aup-input.js.map +1 -1
- package/esm2015/cypress/components/aup-input.metadata.json +1 -1
- package/esm2015/cypress/components/aup-modal-activity.js +5 -0
- package/esm2015/cypress/components/aup-modal-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-modal-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-modal-mixin.js +18 -0
- package/esm2015/cypress/components/aup-modal-mixin.js.map +1 -0
- package/esm2015/cypress/components/aup-modal-mixin.metadata.json +1 -0
- package/esm2015/cypress/components/aup-navigation.js +1 -1
- package/esm2015/cypress/components/aup-navigation.js.map +1 -1
- package/esm2015/cypress/components/aup-table.js +5 -33
- package/esm2015/cypress/components/aup-table.js.map +1 -1
- package/esm2015/cypress/components/aup-table.metadata.json +1 -1
- package/esm2015/cypress/components/aup-tree-table.js +34 -0
- package/esm2015/cypress/components/aup-tree-table.js.map +1 -0
- package/esm2015/cypress/components/aup-tree-table.metadata.json +1 -0
- package/esm2015/cypress/components/button.js +4 -10
- package/esm2015/cypress/components/button.js.map +1 -1
- package/esm2015/cypress/components/button.metadata.json +1 -1
- package/esm2015/cypress/components/form-element-mixin.js +11 -0
- package/esm2015/cypress/components/form-element-mixin.js.map +1 -0
- package/esm2015/cypress/components/form-element-mixin.metadata.json +1 -0
- package/esm2015/cypress/components/mat-checkbox.js +34 -0
- package/esm2015/cypress/components/mat-checkbox.js.map +1 -0
- package/esm2015/cypress/components/mat-checkbox.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +33 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-more-menu.js +8 -0
- package/esm2015/cypress/components/popup/aup-more-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +4 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.js +12 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-cell.js +14 -0
- package/esm2015/cypress/components/table/aup-table-cell.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-cell.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-column.js +19 -0
- package/esm2015/cypress/components/table/aup-table-column.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-column.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-row.js +28 -0
- package/esm2015/cypress/components/table/aup-table-row.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-row.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.js +6 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.js +6 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +1 -0
- package/esm2015/cypress/element-locator.js +16 -0
- package/esm2015/cypress/element-locator.js.map +1 -0
- package/esm2015/cypress/element-locator.metadata.json +1 -0
- package/esm2015/cypress/exports.js +24 -4
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-builder.js +16 -0
- package/esm2015/cypress/page-builder.js.map +1 -0
- package/esm2015/cypress/page-builder.metadata.json +1 -0
- package/esm2015/cypress/page-element.js +26 -19
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +31 -19
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.js +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.js +29 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.js.map +1 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.js +123 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js +78 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/command/command.component.js +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js +5 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +43 -25
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
- package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
- package/esm2015/lib/components/exports.js +8 -4
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.js +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.js +1 -0
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.js +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.js +22 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +1 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +1 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{card-container/card-container.component.scss.shim.ngstyle.js.map → labelled-value/labelled-value.component.scss.shim.ngstyle.js.map} +1 -1
- package/esm2015/lib/components/loading-container/loading-container.component.js +45 -0
- package/esm2015/lib/components/loading-container/loading-container.component.js.map +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/noop/noop.component.js +1 -1
- package/esm2015/lib/components/noop/noop.component.metadata.json +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.js +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
- package/esm2015/lib/components/section-header/section-header.component.js +12 -5
- package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
- package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.js +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.js +34 -20
- package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/edit-session.js.map +1 -0
- package/esm2015/lib/components/tables/{table/edit-session.metadata.json → edit-session.metadata.json} +1 -1
- package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -1
- package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.js +35 -10
- package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js +19 -12
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js +0 -2
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table.component.js +14 -13
- package/esm2015/lib/components/tables/table/table.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/text-search-predicate.js +2 -0
- package/esm2015/lib/components/tables/table/text-search-predicate.js.map +1 -0
- package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +1 -0
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +21 -13
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js +3 -2
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
- package/esm2015/lib/components/text/markdown/markdown.component.js +77 -0
- package/esm2015/lib/components/text/markdown/markdown.component.js.map +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/track-by.js +12 -0
- package/esm2015/lib/components/track-by.js.map +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
- package/esm2015/lib/directives/command.directive.js +1 -1
- package/esm2015/lib/directives/command.directive.js.map +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.js +7 -0
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.js +2 -1
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/alert.js +17 -1
- package/esm2015/lib/interaction/alert.js.map +1 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +23 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.js +52 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -11
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +3 -3
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +4 -0
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +5 -2
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +5 -2
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +5 -2
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +77 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +8 -14
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +8 -31
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +30 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +7 -26
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/editors/edit-context.js +2 -0
- package/esm2015/lib/interaction/components/editors/edit-context.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +50 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +161 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +10 -3
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.js +95 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +5 -3
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +6 -4
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +2 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/exports.js +8 -4
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.js +29 -9
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js +1 -1
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js +2 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +2 -1
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/place-component.js +31 -4
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +11 -14
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/visit.js +5 -1
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/esm2015/lib/services/exports.js +2 -0
- package/esm2015/lib/services/exports.js.map +1 -1
- package/esm2015/lib/services/exports.metadata.json +1 -1
- package/esm2015/lib/services/markdown/markdown.service.js +25 -0
- package/esm2015/lib/services/markdown/markdown.service.js.map +1 -0
- package/esm2015/lib/services/markdown/markdown.service.metadata.json +1 -0
- package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +1 -0
- package/esm2015/lib/services/markdown/pill-plugin.js +38 -0
- package/esm2015/lib/services/markdown/pill-plugin.js.map +1 -0
- package/esm2015/lib/services/markdown/pill-plugin.metadata.json +1 -0
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +546 -244
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +1199 -353
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +11 -0
- package/lib/components/{card-container → cards/card-container}/card-container.component.d.ts +30 -9
- package/lib/components/cards/card-stack/card-stack.component.d.ts +65 -0
- package/lib/components/commands/command-face/command-face.component.d.ts +1 -0
- package/lib/components/exports.d.ts +8 -4
- package/lib/components/labelled-value/labelled-value.component.d.ts +7 -0
- package/lib/components/loading-container/loading-container.component.d.ts +11 -0
- package/lib/components/section-header/section-header.component.d.ts +5 -2
- package/lib/components/tables/abstract-table-model.d.ts +10 -7
- package/lib/components/tables/{table/edit-session.d.ts → edit-session.d.ts} +3 -3
- package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
- package/lib/components/tables/table/cell-renderer.d.ts +2 -0
- package/lib/components/tables/table/column-model.d.ts +14 -5
- package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +2 -1
- package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +4 -2
- package/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +2 -3
- package/lib/components/tables/table/table.component.d.ts +13 -12
- package/lib/components/tables/table/text-search-predicate.d.ts +1 -0
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
- package/lib/components/text/markdown/markdown.component.d.ts +28 -0
- package/lib/components/track-by.d.ts +9 -0
- package/lib/interaction/abstract-interaction-context.d.ts +1 -0
- package/lib/interaction/alert.d.ts +7 -1
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +7 -0
- package/lib/interaction/components/abstract-dialog.component.d.ts +17 -0
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +14 -3
- 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 +2 -1
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +39 -0
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +2 -7
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +2 -10
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +12 -0
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +2 -9
- package/lib/interaction/components/editors/edit-context.d.ts +3 -0
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +24 -0
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +57 -0
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +2 -0
- package/lib/interaction/components/input-activities/input-activity.d.ts +41 -0
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +11 -3
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +6 -2
- package/lib/interaction/exports.d.ts +8 -4
- package/lib/interaction/interaction-context.d.ts +1 -0
- package/lib/place/place-component.d.ts +6 -1
- package/lib/place/place-router.d.ts +2 -2
- package/lib/services/exports.d.ts +2 -0
- package/lib/services/markdown/markdown.service.d.ts +6 -0
- package/lib/services/markdown/pill-plugin.d.ts +15 -0
- package/package.json +17 -16
- package/schematics/activity/index.js +1 -1
- package/schematics/activity/index.js.map +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -3
- package/schematics/aup-i18n/index.js +1 -1
- package/schematics/aup-i18n/index.js.map +1 -1
- package/schematics/component/index.js +1 -1
- package/schematics/component/index.js.map +1 -1
- package/schematics/component/templates/component/__name@dasherize__.component.ts.template +1 -1
- package/schematics/place-routes/place-class-scanner.js +3 -1
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/utils/build-context.d.ts +6 -3
- package/schematics/utils/build-context.js +3 -3
- package/schematics/utils/build-context.js.map +1 -1
- package/schematics/utils/workspace.d.ts +1 -0
- package/schematics/utils/workspace.js +11 -3
- package/schematics/utils/workspace.js.map +1 -1
- package/assets/activities.scss +0 -70
- package/cypress/components/aup-more-menu.d.ts +0 -4
- package/cypress/components/aup-popup-menu.d.ts +0 -7
- package/cypress/components/button-mixin.d.ts +0 -19
- package/cypress/section.d.ts +0 -55
- package/esm2015/cypress/components/aup-more-menu.js +0 -7
- package/esm2015/cypress/components/aup-more-menu.js.map +0 -1
- package/esm2015/cypress/components/aup-more-menu.metadata.json +0 -1
- package/esm2015/cypress/components/aup-popup-menu.js +0 -19
- package/esm2015/cypress/components/aup-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/aup-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/button-mixin.js +0 -15
- package/esm2015/cypress/components/button-mixin.js.map +0 -1
- package/esm2015/cypress/components/button-mixin.metadata.json +0 -1
- package/esm2015/cypress/section.js +0 -76
- package/esm2015/cypress/section.js.map +0 -1
- package/esm2015/cypress/section.metadata.json +0 -1
- package/esm2015/lib/components/card-container/card-container.component.js +0 -84
- package/esm2015/lib/components/card-container/card-container.component.js.map +0 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/tables/table/edit-session.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.js +0 -2
- package/esm2015/lib/components/tables/tree-table/tree-node.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +0 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.js +0 -26
- package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +0 -43
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +0 -2
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +0 -2
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +0 -1
- package/esm2015/lib/interaction/result.js +0 -4
- package/esm2015/lib/interaction/result.js.map +0 -1
- package/esm2015/lib/interaction/result.metadata.json +0 -1
- package/lib/components/tables/tree-table/tree-node.d.ts +0 -3
- package/lib/components/tables/tree-table/visitable.class.d.ts +0 -22
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +0 -12
- package/lib/interaction/components/input-activities/input-activity-data.d.ts +0 -11
- package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +0 -8
- package/lib/interaction/result.d.ts +0 -8
- /package/esm2015/lib/components/tables/{table/edit-session.js → edit-session.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { DOCUMENT, CommonModule, Location } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Directive, ElementRef, Inject, Host, Optional, Input, HostListener, NgZone, Injectable, Pipe, NgModule, Component, ContentChild,
|
|
4
|
+
import { Directive, ElementRef, Inject, Host, Optional, Input, HostListener, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ViewEncapsulation, InjectionToken, ViewChildren, SkipSelf, EventEmitter, ViewChild, Output, Self, TemplateRef, ChangeDetectorRef, ContentChildren, ViewContainerRef, PLATFORM_ID, Injector, ComponentFactoryResolver } from '@angular/core';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
6
6
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
7
7
|
import { MatInputModule } from '@angular/material/input';
|
|
@@ -16,21 +16,24 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
|
16
16
|
import { MatDividerModule } from '@angular/material/divider';
|
|
17
17
|
import { MatIconModule } from '@angular/material/icon';
|
|
18
18
|
import { MatMenuItem, MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
|
|
19
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
19
20
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
20
21
|
import { MatTableModule } from '@angular/material/table';
|
|
21
22
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
22
23
|
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
|
23
24
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
24
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DelegatingSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ComputedListModel, PageController, Deferred,
|
|
25
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DelegatingSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ComputedListModel, PageController, Deferred, Functions } from '@coolon/pectin';
|
|
25
26
|
import { __decorate, __metadata, __awaiter } from 'tslib';
|
|
26
27
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
27
28
|
import * as _ from 'lodash';
|
|
28
29
|
import ___default from 'lodash';
|
|
30
|
+
import { marked } from 'marked';
|
|
29
31
|
import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
|
|
30
32
|
import { Enum } from 'typescript-string-enums';
|
|
31
|
-
import {
|
|
33
|
+
import { lang as lang$1, assert as assert$1, Stringy, Opts, Klass } from '@coolon/typescript-utilities';
|
|
32
34
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
33
35
|
import produce from 'immer';
|
|
36
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
34
37
|
import { FlexModule, GridModule } from '@angular/flex-layout';
|
|
35
38
|
import * as i1$1 from '@angular/material/dialog';
|
|
36
39
|
import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
@@ -47,7 +50,7 @@ class CommandDirective extends GarbageCollector {
|
|
|
47
50
|
constructor(elementRef, matButton, matMenuItem) {
|
|
48
51
|
super();
|
|
49
52
|
this.elementRef = elementRef;
|
|
50
|
-
this._commandEnabled = new DelegatingValueModel().withDefault(false);
|
|
53
|
+
this._commandEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(false));
|
|
51
54
|
this._commandParameterProvided = false;
|
|
52
55
|
// Material buttons and menu items don't respond to the disabled binding so we
|
|
53
56
|
// need to inject them from our host element and handle them manually.
|
|
@@ -390,6 +393,66 @@ DirectivesModule.decorators = [
|
|
|
390
393
|
},] }
|
|
391
394
|
];
|
|
392
395
|
|
|
396
|
+
const markdownPillExtension = (renderPill) => {
|
|
397
|
+
return {
|
|
398
|
+
name: 'aup-pill',
|
|
399
|
+
level: 'inline',
|
|
400
|
+
start: (src) => {
|
|
401
|
+
var _a;
|
|
402
|
+
const index = (_a = src.match(/\(\([^)]/)) === null || _a === void 0 ? void 0 : _a.index;
|
|
403
|
+
// if (index) {
|
|
404
|
+
// console.log({start:src})
|
|
405
|
+
// }
|
|
406
|
+
return index;
|
|
407
|
+
},
|
|
408
|
+
tokenizer: function (src) {
|
|
409
|
+
const rule = /^(\(\((([^)])+)\)\))/; // Regex for the complete token
|
|
410
|
+
const match = rule.exec(src);
|
|
411
|
+
if (match) {
|
|
412
|
+
const token = {
|
|
413
|
+
type: 'aup-pill',
|
|
414
|
+
raw: match[0],
|
|
415
|
+
text: match[2].trim(), // Additional custom properties
|
|
416
|
+
// tokens: [] // Array where child inline tokens will be generated
|
|
417
|
+
};
|
|
418
|
+
// console.log(token)
|
|
419
|
+
// this.lexer.inlineTokens(token.text, token.tokens); // Queue this data to be processed for inline tokens
|
|
420
|
+
return token;
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
return undefined;
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
renderer: function (token) {
|
|
427
|
+
// @ts-ignore (until typings are up to date)
|
|
428
|
+
const url = token.text;
|
|
429
|
+
return renderPill(token.text);
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
class MarkdownService {
|
|
435
|
+
constructor() {
|
|
436
|
+
}
|
|
437
|
+
render(content) {
|
|
438
|
+
return marked.parse(content, {
|
|
439
|
+
smartLists: true
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
renderInline(content) {
|
|
443
|
+
return marked.parseInline(content);
|
|
444
|
+
}
|
|
445
|
+
usePillExtension(renderer) {
|
|
446
|
+
marked.use({
|
|
447
|
+
extensions: [markdownPillExtension(renderer !== null && renderer !== void 0 ? renderer : (text => `<span class='aup-pill'>${text}<span>`))]
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
MarkdownService.decorators = [
|
|
452
|
+
{ type: Injectable }
|
|
453
|
+
];
|
|
454
|
+
MarkdownService.ctorParameters = () => [];
|
|
455
|
+
|
|
393
456
|
class BusyOverlayComponent extends GarbageCollector {
|
|
394
457
|
constructor() {
|
|
395
458
|
super();
|
|
@@ -401,7 +464,7 @@ BusyOverlayComponent.decorators = [
|
|
|
401
464
|
{ type: Component, args: [{
|
|
402
465
|
selector: 'aup-busy-overlay',
|
|
403
466
|
template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busyModel.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n",
|
|
404
|
-
styles: [":host{position:relative}div.busy-overlay-backdrop{
|
|
467
|
+
styles: [":host{position:relative}div.busy-overlay-backdrop{z-index:10;z-index:var(--aup-busy-overlay-z-index, 10);position:absolute;background-color:#0003;top:0;left:0;bottom:0;right:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}\n"]
|
|
405
468
|
},] }
|
|
406
469
|
];
|
|
407
470
|
BusyOverlayComponent.ctorParameters = () => [];
|
|
@@ -526,6 +589,30 @@ var CommandFace;
|
|
|
526
589
|
CommandFace.Adapter = Adapter;
|
|
527
590
|
})(CommandFace || (CommandFace = {}));
|
|
528
591
|
|
|
592
|
+
class AbstractCardContainerComponent extends DisposableComponent {
|
|
593
|
+
constructor() {
|
|
594
|
+
super();
|
|
595
|
+
}
|
|
596
|
+
ngOnInit() {
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
AbstractCardContainerComponent.decorators = [
|
|
600
|
+
{ type: Component, args: [{
|
|
601
|
+
selector: 'aup-abstract-card-container',
|
|
602
|
+
template: ''
|
|
603
|
+
},] }
|
|
604
|
+
];
|
|
605
|
+
AbstractCardContainerComponent.ctorParameters = () => [];
|
|
606
|
+
AbstractCardContainerComponent.propDecorators = {
|
|
607
|
+
addCardCommand: [{ type: Input }],
|
|
608
|
+
addCardFace: [{ type: Input }],
|
|
609
|
+
addCardTemplate: [{ type: ContentChild, args: ['addCardTemplate',] }]
|
|
610
|
+
};
|
|
611
|
+
__decorate([
|
|
612
|
+
TrackExternal(),
|
|
613
|
+
__metadata("design:type", Command)
|
|
614
|
+
], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
|
|
615
|
+
|
|
529
616
|
/**
|
|
530
617
|
* @example
|
|
531
618
|
* // basic usage
|
|
@@ -543,6 +630,13 @@ var CommandFace;
|
|
|
543
630
|
* <my-card *ngFor="..."></my-card>
|
|
544
631
|
* </aup-card-container>
|
|
545
632
|
*
|
|
633
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
634
|
+
* // the activity inside teh card
|
|
635
|
+
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
636
|
+
* <my-card *ngFor="..."></my-card>
|
|
637
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
638
|
+
* </aup-card-container>
|
|
639
|
+
*
|
|
546
640
|
* // adds an add card component using the specified template. The template
|
|
547
641
|
* // will fill it's container in the grid.
|
|
548
642
|
* <aup-card-container>
|
|
@@ -575,35 +669,144 @@ var CommandFace;
|
|
|
575
669
|
* aup-card-container {
|
|
576
670
|
* --card-gap: var(--card-gap, 16px);
|
|
577
671
|
* --card-width: var(--card-width, 300px);
|
|
672
|
+
* --card-max-width: auto;
|
|
578
673
|
* --card-height: var(--card-height, auto);
|
|
579
674
|
* --card-min-height: var(--card-min-height, auto);
|
|
580
675
|
* --card-background: var(--card-background, #fcfcfb);
|
|
581
676
|
* }
|
|
582
677
|
*/
|
|
583
|
-
class CardContainerComponent extends
|
|
584
|
-
constructor() {
|
|
678
|
+
class CardContainerComponent extends AbstractCardContainerComponent {
|
|
679
|
+
constructor(elementRef) {
|
|
585
680
|
super();
|
|
681
|
+
this.elementRef = elementRef;
|
|
682
|
+
/**
|
|
683
|
+
* Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
|
|
684
|
+
* or place in a layout that will stretch it such as a grid or flex layout.
|
|
685
|
+
*/
|
|
686
|
+
this.enabledScroll = false;
|
|
687
|
+
}
|
|
688
|
+
set columnCount(count) {
|
|
689
|
+
if (!_.isNil(count) && (!_.isInteger(count) || count < 1)) {
|
|
690
|
+
lang$1.illegalState('columnCount must be a positive integer or nil');
|
|
691
|
+
}
|
|
692
|
+
this._columnCount = count;
|
|
693
|
+
this.updateColumnCountStyles();
|
|
694
|
+
}
|
|
695
|
+
get columnCount() {
|
|
696
|
+
return this._columnCount;
|
|
586
697
|
}
|
|
587
698
|
ngOnInit() {
|
|
699
|
+
super.ngOnInit();
|
|
700
|
+
this.updateColumnCountStyles();
|
|
701
|
+
}
|
|
702
|
+
get isAutoColumns() {
|
|
703
|
+
return _.isNil(this._columnCount);
|
|
704
|
+
}
|
|
705
|
+
get isSingleColumn() {
|
|
706
|
+
return this._columnCount === 1;
|
|
707
|
+
}
|
|
708
|
+
updateColumnCountStyles() {
|
|
709
|
+
const el = this.elementRef.nativeElement;
|
|
710
|
+
if (_.isNil(this._columnCount)) {
|
|
711
|
+
el.style.setProperty('--aup-card-container-column-count', '');
|
|
712
|
+
}
|
|
713
|
+
else {
|
|
714
|
+
el.style.setProperty('--aup-card-container-column-count', this._columnCount);
|
|
715
|
+
}
|
|
588
716
|
}
|
|
589
717
|
}
|
|
590
718
|
CardContainerComponent.decorators = [
|
|
591
719
|
{ type: Component, args: [{
|
|
592
720
|
selector: 'aup-card-container',
|
|
593
|
-
template: "<div class=\"
|
|
594
|
-
styles: [":host{--resolved-card-gap:var(--card-gap,16px);--resolved-card-width:var(--card-width,300px);--resolved-card-height:var(--card-height,auto);--resolved-card-min-height:var(--card-min-height,auto);--resolved-card-background:var(--card-background
|
|
721
|
+
template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]\"></ng-content>\n</div>\n\n<ng-template #content>\n <div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<div class=\"no-scroll-container\" *ngIf=\"!enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer]\"></ng-content>\n</div>\n\n",
|
|
722
|
+
styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-width: var(--card-width, 300px);--resolved-card-max-width: var(--card-max-width, auto);--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns .card-container{grid-template-columns:repeat(auto-fit,minmax(var(--resolved-card-width),var(--resolved-card-max-width)));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap))}:host:not(.auto-columns) .card-container{grid-template-columns:repeat(var(--aup-card-container-column-count),1fr)}.card-container{display:grid;box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));max-width:100%;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap)}aup-scroll-container,.no-scroll-container{flex:1}.add-card-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.add-card-container:hover{border-color:transparent;background-color:#fff;color:#0000008a}.add-card-template-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}\n"]
|
|
595
723
|
},] }
|
|
596
724
|
];
|
|
597
|
-
CardContainerComponent.ctorParameters = () => [
|
|
725
|
+
CardContainerComponent.ctorParameters = () => [
|
|
726
|
+
{ type: ElementRef }
|
|
727
|
+
];
|
|
598
728
|
CardContainerComponent.propDecorators = {
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
729
|
+
columnCount: [{ type: Input }],
|
|
730
|
+
enabledScroll: [{ type: Input }],
|
|
731
|
+
isAutoColumns: [{ type: HostBinding, args: ['class.auto-columns',] }],
|
|
732
|
+
isSingleColumn: [{ type: HostBinding, args: ['class.single-column',] }]
|
|
602
733
|
};
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* @deprecated deprecated, use `aup-card-container [columnCount]="1"` instead.
|
|
737
|
+
* @example
|
|
738
|
+
* // basic usage
|
|
739
|
+
* <aup-card-stack>
|
|
740
|
+
* <my-card *ngFor="..."></my-card>
|
|
741
|
+
* </aup-card-stack>
|
|
742
|
+
*
|
|
743
|
+
* // adds an add button with a the '+' icon to the end of the card list.
|
|
744
|
+
* <aup-card-stack [addCardCommand]="addCard">
|
|
745
|
+
* <my-card *ngFor="..."></my-card>
|
|
746
|
+
* </aup-card-stack>
|
|
747
|
+
*
|
|
748
|
+
* // adds an add button with the specified face
|
|
749
|
+
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
750
|
+
* <my-card *ngFor="..."></my-card>
|
|
751
|
+
* </aup-card-stack>
|
|
752
|
+
*
|
|
753
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
754
|
+
* // the activity inside teh card
|
|
755
|
+
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
756
|
+
* <my-card *ngFor="..."></my-card>
|
|
757
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
758
|
+
* </aup-card-stack>
|
|
759
|
+
*
|
|
760
|
+
* // adds an add card component using the specified template. The template
|
|
761
|
+
* // will fill it's container in the grid.
|
|
762
|
+
* <aup-card-stack>
|
|
763
|
+
* <my-card *ngFor="..."></my-card>
|
|
764
|
+
* <ng-template #addCardTemplate>
|
|
765
|
+
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
766
|
+
* </ng-template>
|
|
767
|
+
* </aup-card-stack>
|
|
768
|
+
*
|
|
769
|
+
* // sing the default new card styles for your template
|
|
770
|
+
* @import "../../../../assets/styles";
|
|
771
|
+
* .my-new-card {
|
|
772
|
+
* @include aup-card-stack-new-card-style();
|
|
773
|
+
* // OR
|
|
774
|
+
* @include aup-card-stack-new-card-style(
|
|
775
|
+
* $color: rgba(0,0,0,0.54),
|
|
776
|
+
* $background-color: rgba(255,255,255,0.8),
|
|
777
|
+
* $hover-color: $color,
|
|
778
|
+
* $background-hover-color: white
|
|
779
|
+
* )
|
|
780
|
+
* }
|
|
781
|
+
* <aup-card-stack>
|
|
782
|
+
* <my-card *ngFor="..."></my-card>
|
|
783
|
+
* <ng-template #addCardTemplate>
|
|
784
|
+
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
785
|
+
* </ng-template>
|
|
786
|
+
* </aup-card-stack>
|
|
787
|
+
*
|
|
788
|
+
* // CSS Vars
|
|
789
|
+
* aup-card-stack {
|
|
790
|
+
* --card-gap: var(--card-gap, 16px);
|
|
791
|
+
* --card-height: var(--card-height, auto);
|
|
792
|
+
* --card-min-height: var(--card-min-height, auto);
|
|
793
|
+
* --card-background: var(--card-background, #fcfcfb);
|
|
794
|
+
* }
|
|
795
|
+
*/
|
|
796
|
+
class CardStackComponent extends AbstractCardContainerComponent {
|
|
797
|
+
constructor() {
|
|
798
|
+
super();
|
|
799
|
+
console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
CardStackComponent.decorators = [
|
|
803
|
+
{ type: Component, args: [{
|
|
804
|
+
selector: 'aup-card-stack',
|
|
805
|
+
template: "<div class=\"card-container\">\n <ng-content></ng-content>\n</div>\n<div class=\"footer\">\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n <ng-content select=\"[aup-card-stack-footer]\"></ng-content>\n</div>\n",
|
|
806
|
+
styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:grid;grid-template-columns:1fr;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);max-width:100%}.footer{display:flex;flex-direction:column;align-items:stretch;padding:0 var(--resolved-card-gap) var(--resolved-card-gap)}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.add-card-container:hover{border-color:transparent;background-color:#fff;color:#0000008a}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}\n"]
|
|
807
|
+
},] }
|
|
808
|
+
];
|
|
809
|
+
CardStackComponent.ctorParameters = () => [];
|
|
607
810
|
|
|
608
811
|
/**
|
|
609
812
|
* Custom CSS:
|
|
@@ -628,6 +831,9 @@ class CommandFaceComponent extends DisposableComponent {
|
|
|
628
831
|
this.activeIcon = activeFace.pluck("icon");
|
|
629
832
|
this.activeColor = activeFace.pluck("color");
|
|
630
833
|
}
|
|
834
|
+
set face(face) {
|
|
835
|
+
this.facesModel.value = [face];
|
|
836
|
+
}
|
|
631
837
|
get requiresMissingIconInLayout() {
|
|
632
838
|
return this.includeMissingIconInLayout && !this.activeIcon.value;
|
|
633
839
|
}
|
|
@@ -651,12 +857,13 @@ CommandFaceComponent.decorators = [
|
|
|
651
857
|
selector: 'aup-command-face',
|
|
652
858
|
template: "<div class=\"face-container\" *ngFor=\"let face of faceAdapters.value\">\n <aup-icon *ngIf=\"hasIconStart(face)\" [icon]=\"face.icon\"></aup-icon>\n <span *ngIf=\"face.text\">{{face.text}}</span>\n <aup-icon *ngIf=\"hasIconEnd(face)\" [icon]=\"face.icon\"></aup-icon>\n</div>\n",
|
|
653
859
|
encapsulation: ViewEncapsulation.None,
|
|
654
|
-
styles: ["aup-command-face{--icon-gap:var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container:not(:first-child){visibility:hidden}aup-command-face>.face-container *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}aup-command-face.centered{justify-items:center}aup-command-face.start{justify-items:self-start}aup-command-face.end{justify-items:self-end}"]
|
|
860
|
+
styles: ["aup-command-face{--icon-gap: var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container:not(:first-child){visibility:hidden}aup-command-face>.face-container *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}aup-command-face.centered{justify-items:center}aup-command-face.start{justify-items:self-start}aup-command-face.end{justify-items:self-end}\n"]
|
|
655
861
|
},] }
|
|
656
862
|
];
|
|
657
863
|
CommandFaceComponent.ctorParameters = () => [];
|
|
658
864
|
CommandFaceComponent.propDecorators = {
|
|
659
865
|
_rawFaces: [{ type: Input, args: ['faces',] }],
|
|
866
|
+
face: [{ type: Input }],
|
|
660
867
|
ignoreIcon: [{ type: Input }],
|
|
661
868
|
ignoreText: [{ type: Input }],
|
|
662
869
|
includeMissingIconInLayout: [{ type: Input }],
|
|
@@ -740,7 +947,7 @@ CommandComponent.decorators = [
|
|
|
740
947
|
{ type: Component, args: [{
|
|
741
948
|
selector: 'aup-command',
|
|
742
949
|
template: "<ng-container *ngIf=\"iconOnly.value\">\n <button mat-icon-button [pectinCommand]=\"command\" [color]=\"colorModel.value\" [class.busy]=\"command.busy.value\"\n [matTooltip]=\"tooltipModel.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces.value\"></aup-command-face>\n </button>\n</ng-container>\n<ng-container *ngIf=\"!iconOnly.value\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <ng-container *ngSwitchCase=\"CommandFace.Style.STROKED\">\n <button mat-stroked-button [pectinCommand]=\"command\" [color]=\"colorModel.value\" [class.busy]=\"command.busy.value\"\n [matTooltip]=\"tooltipModel.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFace.Style.RAISED\">\n <button mat-raised-button [pectinCommand]=\"command\" [color]=\"colorModel.value\" [class.busy]=\"command.busy.value\"\n [matTooltip]=\"tooltipModel.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button mat-button [pectinCommand]=\"command\" [color]=\"colorModel.value\" [class.busy]=\"command.busy.value\"\n [matTooltip]=\"tooltipModel.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n</ng-container>\n",
|
|
743
|
-
styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}button{flex:1}"]
|
|
950
|
+
styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}button{flex:1}\n"]
|
|
744
951
|
},] }
|
|
745
952
|
];
|
|
746
953
|
CommandComponent.ctorParameters = () => [
|
|
@@ -801,7 +1008,7 @@ class AbstractPopupMenuComponent extends PopupAwareComponent {
|
|
|
801
1008
|
constructor(element, parent) {
|
|
802
1009
|
super(element, parent);
|
|
803
1010
|
this._unorderedChildren = new MutableListModel();
|
|
804
|
-
this.faceModelDelegate = new DelegatingValueModel();
|
|
1011
|
+
this.faceModelDelegate = this.registerDisposable(new DelegatingValueModel());
|
|
805
1012
|
this.xPosition = 'after';
|
|
806
1013
|
this.yPosition = 'below';
|
|
807
1014
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
@@ -912,10 +1119,22 @@ __decorate([
|
|
|
912
1119
|
var TrackBy;
|
|
913
1120
|
(function (TrackBy) {
|
|
914
1121
|
TrackBy.byIndex = (index, item) => index;
|
|
1122
|
+
/**
|
|
1123
|
+
* @deprecated use #track(MyType).by("property") instead.
|
|
1124
|
+
* @param property
|
|
1125
|
+
*/
|
|
915
1126
|
function trackByProperty(property) {
|
|
916
1127
|
return (index, item) => item[property];
|
|
917
1128
|
}
|
|
918
1129
|
TrackBy.trackByProperty = trackByProperty;
|
|
1130
|
+
function track(type) {
|
|
1131
|
+
return {
|
|
1132
|
+
by(property) {
|
|
1133
|
+
return (index, item) => item[property];
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
TrackBy.track = track;
|
|
919
1138
|
})(TrackBy || (TrackBy = {}));
|
|
920
1139
|
|
|
921
1140
|
class CommandContainer extends GarbageCollector {
|
|
@@ -963,7 +1182,7 @@ ToolBarComponent.decorators = [
|
|
|
963
1182
|
selector: 'aup-tool-bar',
|
|
964
1183
|
template: '<div class="toolbar-content"><ng-content></ng-content></div>',
|
|
965
1184
|
encapsulation: ViewEncapsulation.None,
|
|
966
|
-
styles: [":host{display:inline-block}.toolbar-content{display:inline-flex;flex-direction:row;align-items:center}.toolbar-content>aup-separator{align-self:stretch;margin:4px 0 4px 8px}.toolbar-content>aup-flex{flex:1}.toolbar-content>*+*{margin-left:8px}"]
|
|
1185
|
+
styles: [":host{display:inline-block}.toolbar-content{display:inline-flex;flex-direction:row;align-items:center}.toolbar-content>aup-separator{align-self:stretch;margin:4px 0 4px 8px}.toolbar-content>aup-flex{flex:1}.toolbar-content>*+*{margin-left:8px}\n"]
|
|
967
1186
|
},] }
|
|
968
1187
|
];
|
|
969
1188
|
ToolBarComponent.ctorParameters = () => [];
|
|
@@ -1044,7 +1263,7 @@ __decorate([
|
|
|
1044
1263
|
class PopupMenuRendererComponent extends DisposableComponent {
|
|
1045
1264
|
constructor() {
|
|
1046
1265
|
super();
|
|
1047
|
-
this._childList = new DelegatingListModel();
|
|
1266
|
+
this._childList = this.registerDisposable(new DelegatingListModel());
|
|
1048
1267
|
this.commandFired = new EventEmitter();
|
|
1049
1268
|
this.TrackBy = TrackBy;
|
|
1050
1269
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
@@ -1138,7 +1357,7 @@ EmptyStateComponent.decorators = [
|
|
|
1138
1357
|
<ng-content></ng-content>
|
|
1139
1358
|
</div>
|
|
1140
1359
|
`,
|
|
1141
|
-
styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{padding:var(--aup-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]
|
|
1360
|
+
styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{display:flex;flex-direction:column;align-items:stretch;padding:var(--aup-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}\n"]
|
|
1142
1361
|
},] }
|
|
1143
1362
|
];
|
|
1144
1363
|
EmptyStateComponent.ctorParameters = () => [];
|
|
@@ -1166,7 +1385,7 @@ FocusContainerComponent.decorators = [
|
|
|
1166
1385
|
providers: [
|
|
1167
1386
|
{ provide: FocusManager }
|
|
1168
1387
|
],
|
|
1169
|
-
styles: [":host{display:block}"]
|
|
1388
|
+
styles: [":host{display:block}\n"]
|
|
1170
1389
|
},] }
|
|
1171
1390
|
];
|
|
1172
1391
|
FocusContainerComponent.ctorParameters = () => [
|
|
@@ -1222,6 +1441,7 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1222
1441
|
constructor() {
|
|
1223
1442
|
super();
|
|
1224
1443
|
this.onValueEditedListeners = new EventListenerList();
|
|
1444
|
+
this.userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1225
1445
|
this.dense = false;
|
|
1226
1446
|
// TODO: fix this.
|
|
1227
1447
|
// tslint:disable-next-line:no-output-native
|
|
@@ -1482,7 +1702,7 @@ AutocompleteInputComponent.decorators = [
|
|
|
1482
1702
|
{ type: Component, args: [{
|
|
1483
1703
|
selector: 'aup-autocomplete-input',
|
|
1484
1704
|
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValueModel.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\" [autoActiveFirstOption]=\"true\" (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\"\n >{{formatOption(option)}}</mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
1485
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
1705
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}\n"]
|
|
1486
1706
|
},] }
|
|
1487
1707
|
];
|
|
1488
1708
|
AutocompleteInputComponent.ctorParameters = () => [];
|
|
@@ -1518,7 +1738,7 @@ CheckboxInputComponent.decorators = [
|
|
|
1518
1738
|
{ type: Component, args: [{
|
|
1519
1739
|
selector: 'aup-checkbox-input',
|
|
1520
1740
|
template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValueModel.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n",
|
|
1521
|
-
styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-
|
|
1741
|
+
styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"]
|
|
1522
1742
|
},] }
|
|
1523
1743
|
];
|
|
1524
1744
|
CheckboxInputComponent.ctorParameters = () => [];
|
|
@@ -1546,7 +1766,7 @@ MultipleSelectInputComponent.decorators = [
|
|
|
1546
1766
|
{ type: Component, args: [{
|
|
1547
1767
|
selector: 'aup-multiple-select-input',
|
|
1548
1768
|
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"componentListModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
1549
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
1769
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}\n"]
|
|
1550
1770
|
},] }
|
|
1551
1771
|
];
|
|
1552
1772
|
MultipleSelectInputComponent.ctorParameters = () => [];
|
|
@@ -1627,8 +1847,8 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
1627
1847
|
SelectInputComponent.decorators = [
|
|
1628
1848
|
{ type: Component, args: [{
|
|
1629
1849
|
selector: 'aup-select-input',
|
|
1630
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
1631
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
1850
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <div *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n",
|
|
1851
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{height:0;max-height:0;width:auto;visibility:hidden;padding-right:12px}\n"]
|
|
1632
1852
|
},] }
|
|
1633
1853
|
];
|
|
1634
1854
|
SelectInputComponent.ctorParameters = () => [];
|
|
@@ -1666,7 +1886,7 @@ StringInputComponent.decorators = [
|
|
|
1666
1886
|
{ type: Component, args: [{
|
|
1667
1887
|
selector: 'aup-string-input',
|
|
1668
1888
|
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)]=\"componentValueModel.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",
|
|
1669
|
-
styles: ["button[disabled]{visibility:hidden}"]
|
|
1889
|
+
styles: ["button[disabled]{visibility:hidden}\n"]
|
|
1670
1890
|
},] }
|
|
1671
1891
|
];
|
|
1672
1892
|
StringInputComponent.ctorParameters = () => [];
|
|
@@ -1700,7 +1920,7 @@ TextInputComponent.decorators = [
|
|
|
1700
1920
|
{ type: Component, args: [{
|
|
1701
1921
|
selector: 'aup-text-input',
|
|
1702
1922
|
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.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",
|
|
1703
|
-
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
1923
|
+
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"]
|
|
1704
1924
|
},] }
|
|
1705
1925
|
];
|
|
1706
1926
|
TextInputComponent.ctorParameters = () => [];
|
|
@@ -1739,7 +1959,7 @@ IconComponent.decorators = [
|
|
|
1739
1959
|
{ type: Component, args: [{
|
|
1740
1960
|
selector: 'aup-icon',
|
|
1741
1961
|
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\"\n class=\"faIconWrapper\">\n <fa-icon [icon]=\"suffix\">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n",
|
|
1742
|
-
styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center}.
|
|
1962
|
+
styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center;width:24px;height:24px}.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}\n"]
|
|
1743
1963
|
},] }
|
|
1744
1964
|
];
|
|
1745
1965
|
IconComponent.propDecorators = {
|
|
@@ -1753,6 +1973,48 @@ IconComponent.propDecorators = {
|
|
|
1753
1973
|
});
|
|
1754
1974
|
})(IconComponent || (IconComponent = {}));
|
|
1755
1975
|
|
|
1976
|
+
class LoadingContainerComponent extends GarbageCollector {
|
|
1977
|
+
constructor() {
|
|
1978
|
+
super();
|
|
1979
|
+
}
|
|
1980
|
+
get state() {
|
|
1981
|
+
return this.loadingModel.value ? "loaded" : "loading";
|
|
1982
|
+
}
|
|
1983
|
+
ngOnInit() {
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
LoadingContainerComponent.decorators = [
|
|
1987
|
+
{ type: Component, args: [{
|
|
1988
|
+
selector: 'aup-loading-container',
|
|
1989
|
+
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",
|
|
1990
|
+
styles: [":host{display:block;position:relative}section.loading-indicator-overlay{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-message{display:inline-block;text-align:center;width:10em}\n"]
|
|
1991
|
+
},] }
|
|
1992
|
+
];
|
|
1993
|
+
LoadingContainerComponent.ctorParameters = () => [];
|
|
1994
|
+
LoadingContainerComponent.propDecorators = {
|
|
1995
|
+
loadingModel: [{ type: Input }],
|
|
1996
|
+
loading: [{ type: Input }],
|
|
1997
|
+
messageModel: [{ type: Input }],
|
|
1998
|
+
message: [{ type: Input }],
|
|
1999
|
+
state: [{ type: HostBinding, args: ["class",] }]
|
|
2000
|
+
};
|
|
2001
|
+
__decorate([
|
|
2002
|
+
TrackExternal(),
|
|
2003
|
+
__metadata("design:type", ValueModel)
|
|
2004
|
+
], LoadingContainerComponent.prototype, "loadingModel", void 0);
|
|
2005
|
+
__decorate([
|
|
2006
|
+
StoreInValueModel("loadingModel"),
|
|
2007
|
+
__metadata("design:type", Boolean)
|
|
2008
|
+
], LoadingContainerComponent.prototype, "loading", void 0);
|
|
2009
|
+
__decorate([
|
|
2010
|
+
TrackExternal(),
|
|
2011
|
+
__metadata("design:type", ValueModel)
|
|
2012
|
+
], LoadingContainerComponent.prototype, "messageModel", void 0);
|
|
2013
|
+
__decorate([
|
|
2014
|
+
StoreInValueModel("messageModel"),
|
|
2015
|
+
__metadata("design:type", String)
|
|
2016
|
+
], LoadingContainerComponent.prototype, "message", void 0);
|
|
2017
|
+
|
|
1756
2018
|
class NoopComponent {
|
|
1757
2019
|
constructor() {
|
|
1758
2020
|
}
|
|
@@ -1761,7 +2023,7 @@ NoopComponent.decorators = [
|
|
|
1761
2023
|
{ type: Component, args: [{
|
|
1762
2024
|
selector: 'aup-noop',
|
|
1763
2025
|
template: "",
|
|
1764
|
-
styles: [":host{display:block}"]
|
|
2026
|
+
styles: [":host{display:block}\n"]
|
|
1765
2027
|
},] }
|
|
1766
2028
|
];
|
|
1767
2029
|
NoopComponent.ctorParameters = () => [];
|
|
@@ -1775,14 +2037,18 @@ ScrollContainerComponent.decorators = [
|
|
|
1775
2037
|
{ type: Component, args: [{
|
|
1776
2038
|
selector: 'aup-scroll-container',
|
|
1777
2039
|
template: "<div class=\"container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n",
|
|
1778
|
-
styles: [":host{display:flex;flex-direction:column;min-height:0;align-items:stretch}.container{display:flex;flex-direction:column;flex:1;flex-basis:0;overflow-y:scroll;align-items:stretch}"]
|
|
2040
|
+
styles: [":host{display:flex;flex-direction:column;min-height:0;align-items:stretch}.container{display:flex;flex-direction:column;flex:1;flex-basis:0;overflow-y:scroll;align-items:stretch}\n"]
|
|
1779
2041
|
},] }
|
|
1780
2042
|
];
|
|
1781
2043
|
ScrollContainerComponent.ctorParameters = () => [];
|
|
1782
2044
|
|
|
1783
|
-
class SectionHeaderComponent {
|
|
2045
|
+
class SectionHeaderComponent extends DisposableComponent {
|
|
1784
2046
|
constructor() {
|
|
1785
|
-
|
|
2047
|
+
super();
|
|
2048
|
+
// readonly i18n = I18nMarsUi.components.layout.header;
|
|
2049
|
+
this.size = 'medium';
|
|
2050
|
+
this.borderTop = false;
|
|
2051
|
+
this.borderBottom = false;
|
|
1786
2052
|
}
|
|
1787
2053
|
ngOnInit() {
|
|
1788
2054
|
}
|
|
@@ -1790,13 +2056,15 @@ class SectionHeaderComponent {
|
|
|
1790
2056
|
SectionHeaderComponent.decorators = [
|
|
1791
2057
|
{ type: Component, args: [{
|
|
1792
2058
|
selector: 'aup-section-header',
|
|
1793
|
-
template: "<ng-content></ng-content>\n",
|
|
1794
|
-
styles: [":host{--
|
|
2059
|
+
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",
|
|
2060
|
+
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"]
|
|
1795
2061
|
},] }
|
|
1796
2062
|
];
|
|
1797
2063
|
SectionHeaderComponent.ctorParameters = () => [];
|
|
1798
2064
|
SectionHeaderComponent.propDecorators = {
|
|
1799
|
-
|
|
2065
|
+
size: [{ type: Input }, { type: HostBinding, args: ['class',] }],
|
|
2066
|
+
borderTop: [{ type: Input }, { type: HostBinding, args: ['class.border-top',] }],
|
|
2067
|
+
borderBottom: [{ type: Input }, { type: HostBinding, args: ['class.border-bottom',] }]
|
|
1800
2068
|
};
|
|
1801
2069
|
|
|
1802
2070
|
class SwitchCaseOption {
|
|
@@ -1901,7 +2169,7 @@ SwitchCaseComponent.decorators = [
|
|
|
1901
2169
|
{ type: Component, args: [{
|
|
1902
2170
|
selector: 'aup-switch-case',
|
|
1903
2171
|
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",
|
|
1904
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}"]
|
|
2172
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}\n"]
|
|
1905
2173
|
},] }
|
|
1906
2174
|
];
|
|
1907
2175
|
SwitchCaseComponent.ctorParameters = () => [
|
|
@@ -2160,17 +2428,24 @@ class EditSession extends GarbageCollector {
|
|
|
2160
2428
|
class EditRowControls extends DisposableComponent {
|
|
2161
2429
|
constructor() {
|
|
2162
2430
|
super();
|
|
2163
|
-
this.saveCommand = Command.create(() => {
|
|
2164
|
-
this.editSession.saveCommand.execute(
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
});
|
|
2170
|
-
});
|
|
2431
|
+
this.saveCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
|
|
2432
|
+
const finished = yield this.editSession.saveCommand.execute();
|
|
2433
|
+
if (finished) {
|
|
2434
|
+
this.editSession.dispose();
|
|
2435
|
+
}
|
|
2436
|
+
}));
|
|
2171
2437
|
this.cancelCommand = Command.create(() => {
|
|
2172
2438
|
this.editSession.dispose();
|
|
2173
|
-
});
|
|
2439
|
+
}).disableWhile(this.saveCommand.busy);
|
|
2440
|
+
}
|
|
2441
|
+
set editSession(session) {
|
|
2442
|
+
if (session) {
|
|
2443
|
+
session.form.disableWhile(this.saveCommand.busy);
|
|
2444
|
+
}
|
|
2445
|
+
this._session = session;
|
|
2446
|
+
}
|
|
2447
|
+
get editSession() {
|
|
2448
|
+
return this._session;
|
|
2174
2449
|
}
|
|
2175
2450
|
ngOnInit() {
|
|
2176
2451
|
}
|
|
@@ -2183,7 +2458,7 @@ EditRowControls.decorators = [
|
|
|
2183
2458
|
{ type: Component, args: [{
|
|
2184
2459
|
selector: 'aup-row-editor-controls',
|
|
2185
2460
|
template: "<button *ngIf=\"!editSession\" mat-icon-button [pectinCommand]=\"editRowCommand\" class=\"edit-button\"><aup-icon icon=\"mat:edit\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"saveCommand\"><aup-icon icon=\"mat:done\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"cancelCommand\"><aup-icon icon=\"mat:clear\"></aup-icon></button>\n",
|
|
2186
|
-
styles: [":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}"]
|
|
2461
|
+
styles: [":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}\n"]
|
|
2187
2462
|
},] }
|
|
2188
2463
|
];
|
|
2189
2464
|
EditRowControls.ctorParameters = () => [];
|
|
@@ -2254,14 +2529,19 @@ const noop = () => {
|
|
|
2254
2529
|
};
|
|
2255
2530
|
const ɵ0 = noop;
|
|
2256
2531
|
const CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol('aup-cell-renderer:row-data-cache');
|
|
2257
|
-
|
|
2532
|
+
const DEFAULT_TEXT_SEARCH_PREDICATE = (row, text) => false;
|
|
2533
|
+
const ɵ1 = DEFAULT_TEXT_SEARCH_PREDICATE;
|
|
2534
|
+
class ColumnModel extends GarbageCollector {
|
|
2258
2535
|
constructor(columnId, textPropertiesProvider) {
|
|
2536
|
+
super();
|
|
2259
2537
|
this.columnId = columnId;
|
|
2260
2538
|
this.textPropertiesProvider = textPropertiesProvider;
|
|
2261
2539
|
this._enableRowSelection = true;
|
|
2262
2540
|
this._flex = false;
|
|
2263
|
-
this._defaultVisibility = new DelegatingValueModel().withDefault(true);
|
|
2264
|
-
this._visible = new DelegatingValueModel().withDefault(this._defaultVisibility);
|
|
2541
|
+
this._defaultVisibility = this.registerDisposable(new DelegatingValueModel().withDefault(true));
|
|
2542
|
+
this._visible = this.registerDisposable(new DelegatingValueModel().withDefault(this._defaultVisibility));
|
|
2543
|
+
this._columnModelTextSearchPredicate = undefined;
|
|
2544
|
+
this._cellRendererTextSearchPredicate = undefined;
|
|
2265
2545
|
this.installHeaderRenderer();
|
|
2266
2546
|
this.dasherisedColumnId = Stringy.from(columnId).dasherize().toString();
|
|
2267
2547
|
}
|
|
@@ -2290,6 +2570,17 @@ class ColumnModel {
|
|
|
2290
2570
|
getDefaultHeaderText() {
|
|
2291
2571
|
return this.columnId;
|
|
2292
2572
|
}
|
|
2573
|
+
get isTextMatch() {
|
|
2574
|
+
return this._columnModelTextSearchPredicate || this._cellRendererTextSearchPredicate || DEFAULT_TEXT_SEARCH_PREDICATE;
|
|
2575
|
+
}
|
|
2576
|
+
/**
|
|
2577
|
+
* Sets the predicate to use when checking if the specified row is a text match for this column.
|
|
2578
|
+
* @param predicate
|
|
2579
|
+
*/
|
|
2580
|
+
useTextSearchPredicate(predicate) {
|
|
2581
|
+
this._columnModelTextSearchPredicate = predicate;
|
|
2582
|
+
return this;
|
|
2583
|
+
}
|
|
2293
2584
|
getColumnTextProperties() {
|
|
2294
2585
|
return this._columnTextProperties || this.textPropertiesProvider();
|
|
2295
2586
|
}
|
|
@@ -2340,6 +2631,12 @@ class ColumnModel {
|
|
|
2340
2631
|
}
|
|
2341
2632
|
onRendererAttached(host, component) {
|
|
2342
2633
|
this._cellRendererPortalRef.onPortalAttached(host, component);
|
|
2634
|
+
if (___default.isFunction(component === null || component === void 0 ? void 0 : component.matches)) {
|
|
2635
|
+
this._cellRendererTextSearchPredicate = (row, text) => component.matches(row, text);
|
|
2636
|
+
}
|
|
2637
|
+
else {
|
|
2638
|
+
this._cellRendererTextSearchPredicate = undefined;
|
|
2639
|
+
}
|
|
2343
2640
|
}
|
|
2344
2641
|
// @Trace()
|
|
2345
2642
|
onEditorAttached(host, component) {
|
|
@@ -2372,8 +2669,11 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
2372
2669
|
constructor(id, property, defaults) {
|
|
2373
2670
|
super(id, defaults);
|
|
2374
2671
|
this.property = property;
|
|
2375
|
-
this._format = (value) => value;
|
|
2672
|
+
this._format = (value) => value === null || value === void 0 ? void 0 : value.toString();
|
|
2376
2673
|
this.cellRenderer(DefaultCellRendererComponent);
|
|
2674
|
+
this.useTextSearchPredicate((row, regex) => {
|
|
2675
|
+
return regex.test(this._format(row[this.property]));
|
|
2676
|
+
});
|
|
2377
2677
|
}
|
|
2378
2678
|
cellRenderer(componentType, onComponentInitOrOptions) {
|
|
2379
2679
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
|
|
@@ -2388,9 +2688,6 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
2388
2688
|
}
|
|
2389
2689
|
}
|
|
2390
2690
|
component.value = this._format(rowData.row[this.property]);
|
|
2391
|
-
if (!___default.isFunction(onComponentInitOrOptions) && ___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
2392
|
-
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
2393
|
-
}
|
|
2394
2691
|
}));
|
|
2395
2692
|
return this;
|
|
2396
2693
|
}
|
|
@@ -2460,6 +2757,9 @@ class ListPropertyColumnModel extends ColumnModel {
|
|
|
2460
2757
|
this.property = property;
|
|
2461
2758
|
this._format = (value) => value.map(v => v === null || v === void 0 ? void 0 : v.toString()).join(', ');
|
|
2462
2759
|
this.cellRenderer(DefaultCellRendererComponent);
|
|
2760
|
+
this.useTextSearchPredicate((row, regex) => {
|
|
2761
|
+
return regex.test(this._format(row[this.property]));
|
|
2762
|
+
});
|
|
2463
2763
|
}
|
|
2464
2764
|
cellRenderer(componentType) {
|
|
2465
2765
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData) => {
|
|
@@ -2521,7 +2821,7 @@ class CustomValueColumnModel extends ColumnModel {
|
|
|
2521
2821
|
}
|
|
2522
2822
|
}
|
|
2523
2823
|
class EditorControlColumnModel extends ColumnModel {
|
|
2524
|
-
constructor(columnId,
|
|
2824
|
+
constructor(columnId, saveCommandFactory, defaults) {
|
|
2525
2825
|
super(columnId, defaults);
|
|
2526
2826
|
this.cellRenderer(EditRowControls);
|
|
2527
2827
|
}
|
|
@@ -2819,7 +3119,7 @@ class RowClass {
|
|
|
2819
3119
|
class AbstractTableModel extends GarbageCollector {
|
|
2820
3120
|
constructor() {
|
|
2821
3121
|
super();
|
|
2822
|
-
this._dataSource = new DelegatingListModel();
|
|
3122
|
+
this._dataSource = this.registerDisposable(new DelegatingListModel());
|
|
2823
3123
|
this._columnList = this.registerDisposable(new ColumnListModel());
|
|
2824
3124
|
this._editorSessions = new MutableListModel();
|
|
2825
3125
|
this.rowClassNamePredicates = [];
|
|
@@ -2840,6 +3140,12 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
2840
3140
|
this.lastVisibleColumn = chain(this._columnList).last();
|
|
2841
3141
|
this.rowSelectionDisabledOnAllColumns = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
|
|
2842
3142
|
}
|
|
3143
|
+
findMatchingColumns(row, regex) {
|
|
3144
|
+
return this.columns.value.filter(c => c.isTextMatch(row, regex));
|
|
3145
|
+
}
|
|
3146
|
+
hasMatchingColumn(row, regex) {
|
|
3147
|
+
return !!this.columns.value.find(c => c.isTextMatch(row, regex));
|
|
3148
|
+
}
|
|
2843
3149
|
setDataSource(sourceOfTruth) {
|
|
2844
3150
|
this._dataSource.setDelegate(sourceOfTruth);
|
|
2845
3151
|
}
|
|
@@ -2874,10 +3180,13 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
2874
3180
|
}
|
|
2875
3181
|
return selectionColumnModel;
|
|
2876
3182
|
}
|
|
2877
|
-
addEditControls(
|
|
2878
|
-
this.
|
|
3183
|
+
addEditControls(saveCommandFactory, formFactory) {
|
|
3184
|
+
this.saveCommandFactory = saveCommandFactory;
|
|
3185
|
+
if (_.isFunction(formFactory)) {
|
|
3186
|
+
this._createForm = formFactory;
|
|
3187
|
+
}
|
|
2879
3188
|
const columnId = 'editControls';
|
|
2880
|
-
return this.addColumn(new EditorControlColumnModel(columnId,
|
|
3189
|
+
return this.addColumn(new EditorControlColumnModel(columnId, saveCommandFactory, () => this.getColumnTextProperties(columnId)));
|
|
2881
3190
|
}
|
|
2882
3191
|
addCustomColumn(columnId, dataAccessor) {
|
|
2883
3192
|
return this.addColumn(new CustomValueColumnModel(columnId, () => this.getColumnTextProperties(columnId), dataAccessor));
|
|
@@ -2921,19 +3230,20 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
2921
3230
|
if (this._rowsBeingEdited.query().indexOf(row) > -1) {
|
|
2922
3231
|
return lang.illegalState(`Row with id=${rowId} already being edited`);
|
|
2923
3232
|
}
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
this.
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
}
|
|
3233
|
+
// todo: pass the factories to the edit session so we can make the whole lot pluggable?
|
|
3234
|
+
const form = this._createForm(row);
|
|
3235
|
+
const saveCommand = this.saveCommandFactory.create(form);
|
|
3236
|
+
const editSession = new EditSession(rowId, row, form, saveCommand);
|
|
3237
|
+
const { when } = Dsl.disposeWith(editSession);
|
|
3238
|
+
when(editSession.liveRowValue).changes((editedValue) => {
|
|
3239
|
+
this._rowsBeingEdited.replaceOrPush(editedValue);
|
|
3240
|
+
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
3241
|
+
this._editorSessions.push(editSession);
|
|
3242
|
+
editSession.onDispose(() => {
|
|
3243
|
+
this._rowsBeingEdited.remove(editSession.liveRowValue.value);
|
|
3244
|
+
this._editorSessions.remove(editSession);
|
|
3245
|
+
});
|
|
3246
|
+
return editSession;
|
|
2937
3247
|
}
|
|
2938
3248
|
getEditSessionFor(row) {
|
|
2939
3249
|
return this._editorSessionByRowId.get(this.identityOf(row));
|
|
@@ -2949,12 +3259,16 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
2949
3259
|
return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
|
|
2950
3260
|
}
|
|
2951
3261
|
isRowSelectionEnabled() {
|
|
2952
|
-
return this.
|
|
3262
|
+
return this.hasUserSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
|
|
2953
3263
|
}
|
|
2954
|
-
|
|
3264
|
+
hasUserSelectionModel() {
|
|
2955
3265
|
var _a;
|
|
2956
3266
|
return !!((_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate());
|
|
2957
3267
|
}
|
|
3268
|
+
getSelectionModel() {
|
|
3269
|
+
var _a;
|
|
3270
|
+
return (_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel;
|
|
3271
|
+
}
|
|
2958
3272
|
isHoverEnabled() {
|
|
2959
3273
|
return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;
|
|
2960
3274
|
}
|
|
@@ -3070,7 +3384,7 @@ TableHeaderCellRendererComponent.decorators = [
|
|
|
3070
3384
|
{ type: Component, args: [{
|
|
3071
3385
|
selector: 'aup-table-header-cell-renderer',
|
|
3072
3386
|
template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event.instance)\"></ng-container>\n",
|
|
3073
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}"]
|
|
3387
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}\n"]
|
|
3074
3388
|
},] }
|
|
3075
3389
|
];
|
|
3076
3390
|
TableHeaderCellRendererComponent.ctorParameters = () => [];
|
|
@@ -3100,8 +3414,6 @@ class TableRowMenuComponent extends DisposableComponent {
|
|
|
3100
3414
|
registerMoreAction(commandFactory, properties) {
|
|
3101
3415
|
this.moreActions.push(new MenuItemData(commandFactory, properties));
|
|
3102
3416
|
}
|
|
3103
|
-
ngOnInit() {
|
|
3104
|
-
}
|
|
3105
3417
|
createMoreMenuCommand(item, value) {
|
|
3106
3418
|
const { when } = Dsl.disposeWith(this);
|
|
3107
3419
|
const command = item.factory.create(value);
|
|
@@ -3186,18 +3498,19 @@ TableRowMenuComponent.propDecorators = {
|
|
|
3186
3498
|
* --row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
3187
3499
|
* --first-column-padding-left: 18px // defaults to --column-gap
|
|
3188
3500
|
* --last-column-padding-right: 18px // defaults to --column-gap
|
|
3189
|
-
*
|
|
3190
|
-
*
|
|
3191
|
-
*
|
|
3192
|
-
*
|
|
3193
|
-
*
|
|
3194
|
-
*
|
|
3195
|
-
*
|
|
3196
|
-
*
|
|
3197
|
-
*
|
|
3198
|
-
*
|
|
3199
|
-
*
|
|
3200
|
-
*
|
|
3501
|
+
* ::ng-deep {
|
|
3502
|
+
* aup-table-header-cell-renderer,
|
|
3503
|
+
* aup-table-cell-renderer {
|
|
3504
|
+
* &.aup-col-my-dasherised-column-id {
|
|
3505
|
+
* // do stuff
|
|
3506
|
+
* }
|
|
3507
|
+
* &.first-visible-column {
|
|
3508
|
+
* // do stuff
|
|
3509
|
+
* }
|
|
3510
|
+
* &.last-visible-column {
|
|
3511
|
+
* // do stuff
|
|
3512
|
+
* }
|
|
3513
|
+
* }
|
|
3201
3514
|
* }
|
|
3202
3515
|
* }
|
|
3203
3516
|
*/
|
|
@@ -3216,7 +3529,7 @@ TableComponent.decorators = [
|
|
|
3216
3529
|
providers: [
|
|
3217
3530
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
3218
3531
|
],
|
|
3219
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}"]
|
|
3532
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"]
|
|
3220
3533
|
},] }
|
|
3221
3534
|
];
|
|
3222
3535
|
TableComponent.ctorParameters = () => [
|
|
@@ -3260,7 +3573,7 @@ TreeInheritanceIconComponent.decorators = [
|
|
|
3260
3573
|
{ type: Component, args: [{
|
|
3261
3574
|
selector: 'aup-tree-inheritance-icon',
|
|
3262
3575
|
template: "<svg xmlns=\"http://www.w3.org/2000/svg\" [attr.width]=\"pixelWidth\" [attr.height]=\"pixelHeight\" [attr.viewBox]=\"viewBox\">\n <g fill=\"none\" fill-rule=\"evenodd\">\n <rect *ngIf=\"hasHead()\" width=\"1\" height=\"32.5\" x=\"11.5\" fill=\"currentColor\"/>\n <rect *ngIf=\"hasTail()\" width=\"1\" height=\"32.5\" x=\"11.5\" y=\"31.5\" fill=\"currentColor\"/>\n\n <rect *ngIf=\"hasLeadIn()\" width=\"12\" height=\"1\" y=\"31.5\" fill=\"currentColor\"/>\n <rect *ngIf=\"hasTerminal()\" width=\"12\" height=\"1\" x=\"12\" y=\"31.5\" fill=\"currentColor\"/>\n </g>\n</svg>\n",
|
|
3263
|
-
styles: [":host{position:relative;color:inherit}svg{color:var(--line-color);display:block}"]
|
|
3576
|
+
styles: [":host{position:relative;color:inherit}svg{color:var(--line-color);display:block}\n"]
|
|
3264
3577
|
},] }
|
|
3265
3578
|
];
|
|
3266
3579
|
TreeInheritanceIconComponent.ctorParameters = () => [];
|
|
@@ -3465,6 +3778,33 @@ var DecoratedTreeNode;
|
|
|
3465
3778
|
DecoratedTreeNode.Decorator = Decorator;
|
|
3466
3779
|
})(DecoratedTreeNode || (DecoratedTreeNode = {}));
|
|
3467
3780
|
|
|
3781
|
+
class FlattenedTreeListModel extends ComputedListModel {
|
|
3782
|
+
constructor(source, childRef, expansionModel) {
|
|
3783
|
+
super(source, {
|
|
3784
|
+
initialValue: [],
|
|
3785
|
+
identifiedWith: row => source.identityOf(row)
|
|
3786
|
+
});
|
|
3787
|
+
this.source = source;
|
|
3788
|
+
this.childRef = childRef;
|
|
3789
|
+
this.expansionModel = expansionModel;
|
|
3790
|
+
this.trackSource(expansionModel.isExpandedPredicate);
|
|
3791
|
+
}
|
|
3792
|
+
compute(values) {
|
|
3793
|
+
const result = [];
|
|
3794
|
+
values.forEach(rootNode => {
|
|
3795
|
+
return this.addNodeAndVisibleChildren(DecoratedTreeNode.decorateRoot(rootNode, this.childRef), result);
|
|
3796
|
+
});
|
|
3797
|
+
return result;
|
|
3798
|
+
}
|
|
3799
|
+
addNodeAndVisibleChildren(node, result) {
|
|
3800
|
+
result.push(node);
|
|
3801
|
+
const decorator = node[treeNodeDecorator];
|
|
3802
|
+
if (decorator.hasChildren() && !this.expansionModel.isCollapsed(node)) {
|
|
3803
|
+
decorator.children.forEach(child => this.addNodeAndVisibleChildren(child, result));
|
|
3804
|
+
}
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3468
3808
|
class TreeExpansionModel {
|
|
3469
3809
|
constructor(identityOf) {
|
|
3470
3810
|
this.identityOf = identityOf;
|
|
@@ -3512,33 +3852,6 @@ class TreeExpansionModel {
|
|
|
3512
3852
|
}
|
|
3513
3853
|
}
|
|
3514
3854
|
|
|
3515
|
-
class FlattenedTreeListModel extends ComputedListModel {
|
|
3516
|
-
constructor(source, childRef, expansionModel) {
|
|
3517
|
-
super(source);
|
|
3518
|
-
this.source = source;
|
|
3519
|
-
this.childRef = childRef;
|
|
3520
|
-
this.expansionModel = expansionModel;
|
|
3521
|
-
this.trackSource(expansionModel.isExpandedPredicate);
|
|
3522
|
-
}
|
|
3523
|
-
getIdentityOf(item) {
|
|
3524
|
-
return this.source.identityOf(item);
|
|
3525
|
-
}
|
|
3526
|
-
compute(values) {
|
|
3527
|
-
const result = [];
|
|
3528
|
-
values.forEach(rootNode => {
|
|
3529
|
-
return this.addNodeAndVisibleChildren(DecoratedTreeNode.decorateRoot(rootNode, this.childRef), result);
|
|
3530
|
-
});
|
|
3531
|
-
return result;
|
|
3532
|
-
}
|
|
3533
|
-
addNodeAndVisibleChildren(node, result) {
|
|
3534
|
-
result.push(node);
|
|
3535
|
-
const decorator = node[treeNodeDecorator];
|
|
3536
|
-
if (decorator.hasChildren() && !this.expansionModel.isCollapsed(node)) {
|
|
3537
|
-
decorator.children.forEach(child => this.addNodeAndVisibleChildren(child, result));
|
|
3538
|
-
}
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3541
|
-
|
|
3542
3855
|
class TreeLabelColumnModel extends ColumnModel {
|
|
3543
3856
|
constructor(columnId, textPropertiesProvider, expansionModel) {
|
|
3544
3857
|
super(columnId, textPropertiesProvider);
|
|
@@ -3561,7 +3874,7 @@ class TreeLabelColumnModel extends ColumnModel {
|
|
|
3561
3874
|
cellRenderer(componentType) {
|
|
3562
3875
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
|
|
3563
3876
|
if (firstTime) {
|
|
3564
|
-
component.
|
|
3877
|
+
component.treeTableModel = this.expansionModel;
|
|
3565
3878
|
}
|
|
3566
3879
|
component.value = rowData.row;
|
|
3567
3880
|
component.label = ___default.isNil(this.labelProperty) ? undefined : rowData.row[this.labelProperty];
|
|
@@ -3593,10 +3906,11 @@ class TreeTableModel extends AbstractTableModel {
|
|
|
3593
3906
|
const childExtractor = _.isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
|
|
3594
3907
|
this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
|
|
3595
3908
|
this.setDataSource(this.flattenedDataSource);
|
|
3909
|
+
this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
|
|
3596
3910
|
}
|
|
3597
3911
|
treeControlColumn(builder) {
|
|
3598
3912
|
const columnId = 'tree-label';
|
|
3599
|
-
const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this
|
|
3913
|
+
const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this);
|
|
3600
3914
|
builder(column);
|
|
3601
3915
|
this.addColumn(column);
|
|
3602
3916
|
}
|
|
@@ -3604,7 +3918,7 @@ class TreeTableModel extends AbstractTableModel {
|
|
|
3604
3918
|
this.treeExpansionModel.expand(node);
|
|
3605
3919
|
}
|
|
3606
3920
|
collapse(node) {
|
|
3607
|
-
this.treeExpansionModel.
|
|
3921
|
+
this.treeExpansionModel.collapse(node);
|
|
3608
3922
|
}
|
|
3609
3923
|
isCollapsed(node) {
|
|
3610
3924
|
return this.treeExpansionModel.isCollapsed(node);
|
|
@@ -3681,17 +3995,17 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
|
|
|
3681
3995
|
ngOnInit() {
|
|
3682
3996
|
const { chain } = Dsl.disposeWith(this);
|
|
3683
3997
|
this.canExpand = chain(this.nodeModel).map(node => {
|
|
3684
|
-
return DecoratedTreeNode.getDecorator(node).hasChildren() && this.
|
|
3685
|
-
}, { dependsOn: this.
|
|
3998
|
+
return DecoratedTreeNode.getDecorator(node).hasChildren() && this.treeTableModel.isCollapsed(node);
|
|
3999
|
+
}, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
|
|
3686
4000
|
this.canCollapse = chain(this.nodeModel).map(node => {
|
|
3687
|
-
return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.
|
|
3688
|
-
}, { dependsOn: this.
|
|
4001
|
+
return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.treeTableModel.isCollapsed(node);
|
|
4002
|
+
}, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
|
|
3689
4003
|
this.iconModel = chain(this.nodeModel).map(node => {
|
|
3690
4004
|
var _a;
|
|
3691
|
-
const expanded = this.
|
|
4005
|
+
const expanded = this.treeTableModel.treeExpansionModel.isExpanded(this.node);
|
|
3692
4006
|
const iconFactory = (_a = this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
|
|
3693
4007
|
return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
|
|
3694
|
-
}, { dependsOn: this.
|
|
4008
|
+
}, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
|
|
3695
4009
|
}
|
|
3696
4010
|
get isRoot() {
|
|
3697
4011
|
return DecoratedTreeNode.getDecorator(this.node).isRoot();
|
|
@@ -3703,15 +4017,17 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
|
|
|
3703
4017
|
return this.nodeModel.value;
|
|
3704
4018
|
}
|
|
3705
4019
|
// @Trace()
|
|
3706
|
-
expandOrCollapse(node) {
|
|
3707
|
-
|
|
4020
|
+
expandOrCollapse($event, node) {
|
|
4021
|
+
$event.preventDefault();
|
|
4022
|
+
$event.stopPropagation();
|
|
4023
|
+
this.treeTableModel.isCollapsed(node) ? this.treeTableModel.expand(node) : this.treeTableModel.collapse(node);
|
|
3708
4024
|
}
|
|
3709
4025
|
}
|
|
3710
4026
|
TreeLabelCellRendererComponent.decorators = [
|
|
3711
4027
|
{ type: Component, args: [{
|
|
3712
4028
|
selector: 'aup-tree-label-cell-renderer',
|
|
3713
|
-
template: "<div class=\"tree-icons\">\n <aup-tree-inheritance-icon *ngFor=\"let iconClass of iconList.value\" [type]=\"iconClass\"></aup-tree-inheritance-icon>\n <aup-icon *ngIf=\"iconModel.value\"\n [icon]=\"iconModel.value\"\n [class.clickable]=\"canExpand.value || canCollapse.value\"\n (click)=\"expandOrCollapse(node)\" ></aup-icon>\n</div>\n<div class=\"label\">{{label}}</div>\n",
|
|
3714
|
-
styles: [":host{--line-color
|
|
4029
|
+
template: "<div class=\"tree-icons\">\n <aup-tree-inheritance-icon *ngFor=\"let iconClass of iconList.value\" [type]=\"iconClass\"></aup-tree-inheritance-icon>\n <aup-icon *ngIf=\"iconModel.value\"\n [icon]=\"iconModel.value\"\n [class.clickable]=\"canExpand.value || canCollapse.value\"\n (click)=\"expandOrCollapse($event, node)\" ></aup-icon>\n</div>\n<div class=\"label\">{{label}}</div>\n",
|
|
4030
|
+
styles: [":host{--line-color: #ddd;--node-color: #999;display:inline-flex;flex-direction:row;align-items:stretch}:host div.label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;padding-left:6px}:host div.tree-icons{display:grid;grid-auto-flow:column;grid-auto-columns:auto;grid-template-rows:1fr;align-items:stretch;justify-content:stretch}:host div.tree-icons aup-icon{align-self:center;color:var(--node-color)}:host div.tree-icons aup-icon.clickable{cursor:pointer}:host div.tree-icons aup-tree-inheritance-icon,:host div.tree-icons aup-icon{margin-left:4px}\n"]
|
|
3715
4031
|
},] }
|
|
3716
4032
|
];
|
|
3717
4033
|
TreeLabelCellRendererComponent.ctorParameters = () => [];
|
|
@@ -3719,7 +4035,7 @@ TreeLabelCellRendererComponent.propDecorators = {
|
|
|
3719
4035
|
value: [{ type: Input }],
|
|
3720
4036
|
label: [{ type: Input }],
|
|
3721
4037
|
iconFactory: [{ type: Input }],
|
|
3722
|
-
|
|
4038
|
+
treeTableModel: [{ type: Input }],
|
|
3723
4039
|
isRoot: [{ type: HostBinding, args: ['class.root',] }],
|
|
3724
4040
|
isLeaf: [{ type: HostBinding, args: ['class.leaf',] }]
|
|
3725
4041
|
};
|
|
@@ -3728,7 +4044,14 @@ __decorate([
|
|
|
3728
4044
|
__metadata("design:type", Object)
|
|
3729
4045
|
], TreeLabelCellRendererComponent.prototype, "value", void 0);
|
|
3730
4046
|
(function (TreeLabelCellRendererComponent) {
|
|
3731
|
-
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = (node, expanded, defaultIcon) =>
|
|
4047
|
+
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = (node, expanded, defaultIcon) => {
|
|
4048
|
+
const isLeaf = DecoratedTreeNode.getDecorator(node).isLeaf();
|
|
4049
|
+
return isLeaf ?
|
|
4050
|
+
undefined :
|
|
4051
|
+
expanded ?
|
|
4052
|
+
'mat:expand_more' :
|
|
4053
|
+
'mat:chevron_right';
|
|
4054
|
+
};
|
|
3732
4055
|
})(TreeLabelCellRendererComponent || (TreeLabelCellRendererComponent = {}));
|
|
3733
4056
|
|
|
3734
4057
|
/**
|
|
@@ -3806,7 +4129,7 @@ TreeTableComponent.decorators = [
|
|
|
3806
4129
|
providers: [
|
|
3807
4130
|
{ provide: AbstractTableComponent, useExisting: TreeTableComponent }
|
|
3808
4131
|
],
|
|
3809
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}", "td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}td.mat-column-tree-label{width:1px}aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}aup-tree-label-cell-renderer{flex:1}"]
|
|
4132
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n", "td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}td.mat-column-tree-label,td.mat-column-tree-label{width:1px}aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}aup-tree-label-cell-renderer{flex:1}\n"]
|
|
3810
4133
|
},] }
|
|
3811
4134
|
];
|
|
3812
4135
|
TreeTableComponent.ctorParameters = () => [
|
|
@@ -3860,7 +4183,7 @@ VerticalFocusContainerComponent.decorators = [
|
|
|
3860
4183
|
providers: [
|
|
3861
4184
|
{ provide: FocusManager }
|
|
3862
4185
|
],
|
|
3863
|
-
styles: [":host{display:block}"]
|
|
4186
|
+
styles: [":host{display:block}\n"]
|
|
3864
4187
|
},] }
|
|
3865
4188
|
];
|
|
3866
4189
|
VerticalFocusContainerComponent.ctorParameters = () => [
|
|
@@ -3906,7 +4229,7 @@ PaginatorComponent.decorators = [
|
|
|
3906
4229
|
{ type: Component, args: [{
|
|
3907
4230
|
selector: 'aup-paginator',
|
|
3908
4231
|
template: "<p>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]=\"previousCommand\"><aup-icon icon=\"mat:keyboard_arrow_left\"></aup-icon></button>\n<button mat-icon-button [pectinCommand]=\"nextCommand\"><aup-icon icon=\"mat:keyboard_arrow_right\"></aup-icon></button>\n\n",
|
|
3909
|
-
styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color
|
|
4232
|
+
styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:#0009}:host p{color:inherit;margin-right:8px}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}\n"]
|
|
3910
4233
|
},] }
|
|
3911
4234
|
];
|
|
3912
4235
|
PaginatorComponent.ctorParameters = () => [];
|
|
@@ -3918,6 +4241,97 @@ __decorate([
|
|
|
3918
4241
|
__metadata("design:type", PageController)
|
|
3919
4242
|
], PaginatorComponent.prototype, "pageController", void 0);
|
|
3920
4243
|
|
|
4244
|
+
class LabelledValueComponent extends DisposableComponent {
|
|
4245
|
+
constructor() {
|
|
4246
|
+
super();
|
|
4247
|
+
// const {chain} = Dsl.disposeWith(this);
|
|
4248
|
+
}
|
|
4249
|
+
ngOnInit() {
|
|
4250
|
+
}
|
|
4251
|
+
}
|
|
4252
|
+
LabelledValueComponent.decorators = [
|
|
4253
|
+
{ type: Component, args: [{
|
|
4254
|
+
selector: 'aup-labelled-value',
|
|
4255
|
+
template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
|
|
4256
|
+
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"]
|
|
4257
|
+
},] }
|
|
4258
|
+
];
|
|
4259
|
+
LabelledValueComponent.ctorParameters = () => [];
|
|
4260
|
+
LabelledValueComponent.propDecorators = {
|
|
4261
|
+
label: [{ type: Input }]
|
|
4262
|
+
};
|
|
4263
|
+
|
|
4264
|
+
/**
|
|
4265
|
+
* @example
|
|
4266
|
+
* <aup-markdown [content]="..."></aup-markdown>
|
|
4267
|
+
* <aup-markdown [content$]="stringValueModel$"></aup-markdown>
|
|
4268
|
+
* <aup-markdown ngPreserveWhitespaces>
|
|
4269
|
+
* # This is markdown content
|
|
4270
|
+
*
|
|
4271
|
+
* With a list
|
|
4272
|
+
* - a
|
|
4273
|
+
* - b
|
|
4274
|
+
* </aup-markdown>
|
|
4275
|
+
*/
|
|
4276
|
+
class MarkdownComponent extends DisposableComponent {
|
|
4277
|
+
constructor(platform, element, markdownService) {
|
|
4278
|
+
super();
|
|
4279
|
+
this.platform = platform;
|
|
4280
|
+
this.element = element;
|
|
4281
|
+
this.markdownService = markdownService;
|
|
4282
|
+
this.inline = false;
|
|
4283
|
+
const { chain } = Dsl.disposeWith(this);
|
|
4284
|
+
}
|
|
4285
|
+
ngOnInit() {
|
|
4286
|
+
const { when } = Dsl.disposeWith(this);
|
|
4287
|
+
when(this.content$).changes(content => this.renderContent(content), { initialValue: 'triggerChangeUnlessNil' });
|
|
4288
|
+
if (_.isNil(this.content) && !_.isEmpty(this.element.nativeElement.innerHTML)) {
|
|
4289
|
+
this.renderContent(this.extractInnerContent(this.element.nativeElement.innerHTML));
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
extractInnerContent(content) {
|
|
4293
|
+
const lines = content.split('\n');
|
|
4294
|
+
const prefix = lines.reduce((minPrefix, line) => {
|
|
4295
|
+
const leadingWhitespace = line.search(/\S/);
|
|
4296
|
+
return leadingWhitespace < 0 ? minPrefix : Math.min(minPrefix, leadingWhitespace);
|
|
4297
|
+
}, Number.MAX_SAFE_INTEGER);
|
|
4298
|
+
return lines.map(l => l.substr(prefix)).join('\n');
|
|
4299
|
+
}
|
|
4300
|
+
renderContent(content) {
|
|
4301
|
+
if (!_.isNil(content)) {
|
|
4302
|
+
const markdown = this.inline ?
|
|
4303
|
+
this.markdownService.renderInline(content) :
|
|
4304
|
+
this.markdownService.render(content);
|
|
4305
|
+
this.element.nativeElement.innerHTML = markdown;
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
MarkdownComponent.decorators = [
|
|
4310
|
+
{ type: Component, args: [{
|
|
4311
|
+
selector: 'aup-markdown, [aupMarkdown]',
|
|
4312
|
+
template: "<ng-content></ng-content>\n",
|
|
4313
|
+
styles: [":host{display:inline-block}\n"]
|
|
4314
|
+
},] }
|
|
4315
|
+
];
|
|
4316
|
+
MarkdownComponent.ctorParameters = () => [
|
|
4317
|
+
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
|
|
4318
|
+
{ type: ElementRef },
|
|
4319
|
+
{ type: MarkdownService }
|
|
4320
|
+
];
|
|
4321
|
+
MarkdownComponent.propDecorators = {
|
|
4322
|
+
content$: [{ type: Input }],
|
|
4323
|
+
content: [{ type: Input }],
|
|
4324
|
+
inline: [{ type: Input }]
|
|
4325
|
+
};
|
|
4326
|
+
__decorate([
|
|
4327
|
+
TrackExternal(),
|
|
4328
|
+
__metadata("design:type", ValueModel)
|
|
4329
|
+
], MarkdownComponent.prototype, "content$", void 0);
|
|
4330
|
+
__decorate([
|
|
4331
|
+
StoreInValueModel('content$'),
|
|
4332
|
+
__metadata("design:type", String)
|
|
4333
|
+
], MarkdownComponent.prototype, "content", void 0);
|
|
4334
|
+
|
|
3921
4335
|
class ComponentsModule {
|
|
3922
4336
|
constructor(faIconLibrary) {
|
|
3923
4337
|
faIconLibrary.addIconPacks(fas);
|
|
@@ -3925,6 +4339,29 @@ class ComponentsModule {
|
|
|
3925
4339
|
}
|
|
3926
4340
|
ComponentsModule.decorators = [
|
|
3927
4341
|
{ type: NgModule, args: [{
|
|
4342
|
+
imports: [
|
|
4343
|
+
CommonModule,
|
|
4344
|
+
BrowserAnimationsModule,
|
|
4345
|
+
FormsModule,
|
|
4346
|
+
MatInputModule,
|
|
4347
|
+
MatFormFieldModule,
|
|
4348
|
+
MatSelectModule,
|
|
4349
|
+
MatTabsModule,
|
|
4350
|
+
DirectivesModule,
|
|
4351
|
+
MatIconModule,
|
|
4352
|
+
MatButtonModule,
|
|
4353
|
+
MatCheckboxModule,
|
|
4354
|
+
MatTableModule,
|
|
4355
|
+
PortalModule,
|
|
4356
|
+
CdkScrollableModule,
|
|
4357
|
+
FontAwesomeModule,
|
|
4358
|
+
MatTooltipModule,
|
|
4359
|
+
MatAutocompleteModule,
|
|
4360
|
+
MatMenuModule,
|
|
4361
|
+
MatDividerModule,
|
|
4362
|
+
MatProgressSpinnerModule,
|
|
4363
|
+
MatProgressBarModule
|
|
4364
|
+
],
|
|
3928
4365
|
declarations: [
|
|
3929
4366
|
AbstractInputComponent,
|
|
3930
4367
|
AbstractValueInputComponent,
|
|
@@ -3973,29 +4410,12 @@ ComponentsModule.decorators = [
|
|
|
3973
4410
|
BusyOverlayComponent,
|
|
3974
4411
|
EmptyStateComponent,
|
|
3975
4412
|
PaginatorComponent,
|
|
3976
|
-
AbstractTableComponent
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
MatInputModule,
|
|
3983
|
-
MatFormFieldModule,
|
|
3984
|
-
MatSelectModule,
|
|
3985
|
-
MatTabsModule,
|
|
3986
|
-
DirectivesModule,
|
|
3987
|
-
MatIconModule,
|
|
3988
|
-
MatButtonModule,
|
|
3989
|
-
MatCheckboxModule,
|
|
3990
|
-
MatTableModule,
|
|
3991
|
-
PortalModule,
|
|
3992
|
-
CdkScrollableModule,
|
|
3993
|
-
FontAwesomeModule,
|
|
3994
|
-
MatTooltipModule,
|
|
3995
|
-
MatAutocompleteModule,
|
|
3996
|
-
MatMenuModule,
|
|
3997
|
-
MatDividerModule,
|
|
3998
|
-
MatProgressSpinnerModule
|
|
4413
|
+
AbstractTableComponent,
|
|
4414
|
+
AbstractCardContainerComponent,
|
|
4415
|
+
CardStackComponent,
|
|
4416
|
+
LabelledValueComponent,
|
|
4417
|
+
LoadingContainerComponent,
|
|
4418
|
+
MarkdownComponent
|
|
3999
4419
|
],
|
|
4000
4420
|
exports: [
|
|
4001
4421
|
NumberInputComponent,
|
|
@@ -4032,9 +4452,14 @@ ComponentsModule.decorators = [
|
|
|
4032
4452
|
BusyOverlayComponent,
|
|
4033
4453
|
EmptyStateComponent,
|
|
4034
4454
|
PaginatorComponent,
|
|
4455
|
+
CardStackComponent,
|
|
4456
|
+
LabelledValueComponent,
|
|
4457
|
+
LoadingContainerComponent,
|
|
4458
|
+
MarkdownComponent
|
|
4035
4459
|
],
|
|
4036
4460
|
providers: [
|
|
4037
|
-
FocusBindingFactory
|
|
4461
|
+
FocusBindingFactory,
|
|
4462
|
+
MarkdownService
|
|
4038
4463
|
]
|
|
4039
4464
|
},] }
|
|
4040
4465
|
];
|
|
@@ -4067,7 +4492,8 @@ class ActivityActionsComponent extends DisposableComponent {
|
|
|
4067
4492
|
constructor(cdr) {
|
|
4068
4493
|
super();
|
|
4069
4494
|
this.cdr = cdr;
|
|
4070
|
-
this.
|
|
4495
|
+
this.layout = ActivityActionsComponent.Layout.BLOCK;
|
|
4496
|
+
this.align = ActivityActionsComponent.Align.STRETCH;
|
|
4071
4497
|
}
|
|
4072
4498
|
set faces(faces) {
|
|
4073
4499
|
this.confirmFace = faces.confirm;
|
|
@@ -4079,12 +4505,6 @@ class ActivityActionsComponent extends DisposableComponent {
|
|
|
4079
4505
|
set style(style) {
|
|
4080
4506
|
this.faces = style;
|
|
4081
4507
|
}
|
|
4082
|
-
get alignEnd() {
|
|
4083
|
-
return this.align === 'end';
|
|
4084
|
-
}
|
|
4085
|
-
get alignStretch() {
|
|
4086
|
-
return this.align === 'stretch';
|
|
4087
|
-
}
|
|
4088
4508
|
ngOnInit() {
|
|
4089
4509
|
}
|
|
4090
4510
|
hasConfirmFace() {
|
|
@@ -4103,7 +4523,7 @@ ActivityActionsComponent.decorators = [
|
|
|
4103
4523
|
{ type: Component, args: [{
|
|
4104
4524
|
selector: 'aup-activity-actions',
|
|
4105
4525
|
template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n",
|
|
4106
|
-
styles: [":host{display:grid;grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr
|
|
4526
|
+
styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}\n"]
|
|
4107
4527
|
},] }
|
|
4108
4528
|
];
|
|
4109
4529
|
ActivityActionsComponent.ctorParameters = () => [
|
|
@@ -4116,9 +4536,8 @@ ActivityActionsComponent.propDecorators = {
|
|
|
4116
4536
|
confirmFace: [{ type: Input }],
|
|
4117
4537
|
cancelFace: [{ type: Input }],
|
|
4118
4538
|
style: [{ type: Input }],
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
alignStretch: [{ type: HostBinding, args: ['class.align-stretch',] }]
|
|
4539
|
+
layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
|
|
4540
|
+
align: [{ type: Input }, { type: HostBinding, args: ['attr.align',] }]
|
|
4122
4541
|
};
|
|
4123
4542
|
__decorate([
|
|
4124
4543
|
TrackExternal(),
|
|
@@ -4128,14 +4547,26 @@ __decorate([
|
|
|
4128
4547
|
TrackExternal(),
|
|
4129
4548
|
__metadata("design:type", Command)
|
|
4130
4549
|
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
4550
|
+
(function (ActivityActionsComponent) {
|
|
4551
|
+
ActivityActionsComponent.Layout = Enum({
|
|
4552
|
+
INLINE: 'inline',
|
|
4553
|
+
BLOCK: 'block'
|
|
4554
|
+
});
|
|
4555
|
+
ActivityActionsComponent.Align = Enum({
|
|
4556
|
+
START: 'start',
|
|
4557
|
+
END: 'end',
|
|
4558
|
+
STRETCH: 'stretch'
|
|
4559
|
+
});
|
|
4560
|
+
})(ActivityActionsComponent || (ActivityActionsComponent = {}));
|
|
4131
4561
|
|
|
4132
4562
|
const ACTIVITY_DATA = new InjectionToken('InteractionActivityData');
|
|
4133
4563
|
class Activity extends DisposableComponent {
|
|
4134
4564
|
constructor() {
|
|
4135
4565
|
super();
|
|
4136
|
-
this._busyModel = new DelegatingValueModel().withDefault(false);
|
|
4566
|
+
this._busyModel = this.registerDisposable(new DelegatingValueModel().withDefault(false));
|
|
4137
4567
|
this._focusedModel = this.registerDisposable(new DelegatingValueModel());
|
|
4138
4568
|
this.class = 'aup-activity';
|
|
4569
|
+
this.busyWhile(this.confirmCommand.busy);
|
|
4139
4570
|
}
|
|
4140
4571
|
get isFocused() {
|
|
4141
4572
|
return this._focusedModel.value;
|
|
@@ -4176,139 +4607,195 @@ class Activity extends DisposableComponent {
|
|
|
4176
4607
|
busyWhile(busyModel) {
|
|
4177
4608
|
this._busyModel.setDelegate(busyModel);
|
|
4178
4609
|
}
|
|
4179
|
-
isBusy() {
|
|
4180
|
-
return this._busyModel.value;
|
|
4610
|
+
isBusy() {
|
|
4611
|
+
return this._busyModel.value;
|
|
4612
|
+
}
|
|
4613
|
+
isInitialised() {
|
|
4614
|
+
return !!this._activityContext;
|
|
4615
|
+
}
|
|
4616
|
+
}
|
|
4617
|
+
Activity.decorators = [
|
|
4618
|
+
{ type: Component, args: [{
|
|
4619
|
+
template: ''
|
|
4620
|
+
},] }
|
|
4621
|
+
];
|
|
4622
|
+
Activity.ctorParameters = () => [];
|
|
4623
|
+
Activity.propDecorators = {
|
|
4624
|
+
activityActions: [{ type: ViewChild, args: [ActivityActionsComponent,] }],
|
|
4625
|
+
class: [{ type: HostBinding, args: ['class',] }],
|
|
4626
|
+
isFocused: [{ type: HostBinding, args: ['attr.focused',] }]
|
|
4627
|
+
};
|
|
4628
|
+
__decorate([
|
|
4629
|
+
TrackExternal(),
|
|
4630
|
+
__metadata("design:type", Command)
|
|
4631
|
+
], Activity.prototype, "confirmCommand", void 0);
|
|
4632
|
+
__decorate([
|
|
4633
|
+
TrackExternal(),
|
|
4634
|
+
__metadata("design:type", Command)
|
|
4635
|
+
], Activity.prototype, "cancelCommand", void 0);
|
|
4636
|
+
|
|
4637
|
+
var Alert;
|
|
4638
|
+
(function (Alert) {
|
|
4639
|
+
function getContent(alert) {
|
|
4640
|
+
const content = alert.content();
|
|
4641
|
+
return Array.isArray(content) ? content : [content];
|
|
4642
|
+
}
|
|
4643
|
+
Alert.getContent = getContent;
|
|
4644
|
+
function getTitle(alert) {
|
|
4645
|
+
return _.isFunction(alert.title) ? alert.title() : undefined;
|
|
4646
|
+
}
|
|
4647
|
+
Alert.getTitle = getTitle;
|
|
4648
|
+
function getColor(alert) {
|
|
4649
|
+
return _.isFunction(alert.color) ? alert.color() : undefined;
|
|
4650
|
+
}
|
|
4651
|
+
Alert.getColor = getColor;
|
|
4652
|
+
})(Alert || (Alert = {}));
|
|
4653
|
+
|
|
4654
|
+
const ALERT_CONFIG = new InjectionToken('AlertConfig');
|
|
4655
|
+
class AbstractDialogComponent extends Activity {
|
|
4656
|
+
constructor(config) {
|
|
4657
|
+
super();
|
|
4658
|
+
this.config = config;
|
|
4659
|
+
assert.notNil(config);
|
|
4660
|
+
this.title = Alert.getTitle(config);
|
|
4661
|
+
this.color = this.checkColor(Alert.getColor(config));
|
|
4662
|
+
this.content = Alert.getContent(config);
|
|
4663
|
+
this.confirmFace = {
|
|
4664
|
+
text: () => config.ok(),
|
|
4665
|
+
color: () => this.color || 'primary',
|
|
4666
|
+
style: () => 'raised'
|
|
4667
|
+
};
|
|
4668
|
+
}
|
|
4669
|
+
getConfig() {
|
|
4670
|
+
return lang$1.abstractMethod(this.constructor);
|
|
4671
|
+
}
|
|
4672
|
+
checkColor(rawColor) {
|
|
4673
|
+
if (this.isDestructive()) {
|
|
4674
|
+
return 'warn';
|
|
4675
|
+
}
|
|
4676
|
+
else {
|
|
4677
|
+
if (['primary', 'accent', 'warn'].includes(rawColor)) {
|
|
4678
|
+
return rawColor;
|
|
4679
|
+
}
|
|
4680
|
+
else {
|
|
4681
|
+
console.warn(`Invalid color string ${rawColor}`);
|
|
4682
|
+
return undefined;
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4686
|
+
isDestructive() {
|
|
4687
|
+
// @ts-ignore
|
|
4688
|
+
return _.isFunction(this.config['destructive']) && this.config.destructive();
|
|
4181
4689
|
}
|
|
4182
|
-
|
|
4183
|
-
|
|
4690
|
+
}
|
|
4691
|
+
AbstractDialogComponent.decorators = [
|
|
4692
|
+
{ type: Component, args: [{
|
|
4693
|
+
template: ''
|
|
4694
|
+
},] }
|
|
4695
|
+
];
|
|
4696
|
+
AbstractDialogComponent.ctorParameters = () => [
|
|
4697
|
+
{ type: undefined, decorators: [{ type: Inject, args: [ALERT_CONFIG,] }] }
|
|
4698
|
+
];
|
|
4699
|
+
|
|
4700
|
+
class AbstractConfirmDialogComponent extends AbstractDialogComponent {
|
|
4701
|
+
constructor(config) {
|
|
4702
|
+
super(config);
|
|
4703
|
+
this.cancelFace = {
|
|
4704
|
+
text: () => config.cancel()
|
|
4705
|
+
};
|
|
4706
|
+
this.cancelCommand = Command.create(() => {
|
|
4707
|
+
return this.cancel();
|
|
4708
|
+
});
|
|
4184
4709
|
}
|
|
4185
4710
|
}
|
|
4186
|
-
|
|
4711
|
+
AbstractConfirmDialogComponent.decorators = [
|
|
4187
4712
|
{ type: Component, args: [{
|
|
4188
4713
|
template: ''
|
|
4189
4714
|
},] }
|
|
4190
4715
|
];
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
class: [{ type: HostBinding, args: ['class',] }],
|
|
4195
|
-
isFocused: [{ type: HostBinding, args: ['attr.focused',] }]
|
|
4196
|
-
};
|
|
4197
|
-
__decorate([
|
|
4198
|
-
TrackExternal(),
|
|
4199
|
-
__metadata("design:type", Command)
|
|
4200
|
-
], Activity.prototype, "confirmCommand", void 0);
|
|
4201
|
-
__decorate([
|
|
4202
|
-
TrackExternal(),
|
|
4203
|
-
__metadata("design:type", Command)
|
|
4204
|
-
], Activity.prototype, "cancelCommand", void 0);
|
|
4716
|
+
AbstractConfirmDialogComponent.ctorParameters = () => [
|
|
4717
|
+
{ type: undefined, decorators: [{ type: Inject, args: [ALERT_CONFIG,] }] }
|
|
4718
|
+
];
|
|
4205
4719
|
|
|
4206
|
-
class AlertDialogComponent extends
|
|
4720
|
+
class AlertDialogComponent extends AbstractDialogComponent {
|
|
4207
4721
|
constructor(alert) {
|
|
4208
|
-
super();
|
|
4209
|
-
this.alert = alert;
|
|
4722
|
+
super(alert);
|
|
4210
4723
|
this.confirmCommand = Command.create(() => {
|
|
4211
4724
|
this.done();
|
|
4212
4725
|
});
|
|
4213
|
-
this.confirmFace = {
|
|
4214
|
-
text: () => alert.ok(),
|
|
4215
|
-
color: () => "primary",
|
|
4216
|
-
style: () => "raised"
|
|
4217
|
-
};
|
|
4218
|
-
}
|
|
4219
|
-
ngOnInit() {
|
|
4220
4726
|
}
|
|
4221
4727
|
}
|
|
4222
4728
|
AlertDialogComponent.decorators = [
|
|
4223
4729
|
{ type: Component, args: [{
|
|
4224
4730
|
selector: 'aup-alert-dialog',
|
|
4225
|
-
template: "<aup-activity-title *ngIf=\"
|
|
4226
|
-
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
|
|
4731
|
+
template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n",
|
|
4732
|
+
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
|
|
4227
4733
|
},] }
|
|
4228
4734
|
];
|
|
4229
4735
|
AlertDialogComponent.ctorParameters = () => [
|
|
4230
|
-
{ type:
|
|
4736
|
+
{ type: Alert, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
|
|
4231
4737
|
];
|
|
4232
4738
|
|
|
4233
|
-
class ConfirmThenDialogComponent extends
|
|
4739
|
+
class ConfirmThenDialogComponent extends AbstractConfirmDialogComponent {
|
|
4234
4740
|
constructor(config) {
|
|
4235
|
-
super();
|
|
4236
|
-
this.config = config;
|
|
4237
|
-
assert.notNil(config);
|
|
4741
|
+
super(config.confirm);
|
|
4238
4742
|
this.confirmCommand = Command.create(() => {
|
|
4239
|
-
this.interactionContext.startActivity(
|
|
4743
|
+
this.interactionContext.startActivity(config.activityType, config.data)
|
|
4240
4744
|
.then((result) => this.done(result))
|
|
4241
4745
|
.catch(error => this.cancel(error));
|
|
4242
4746
|
});
|
|
4243
|
-
this.cancelCommand = Command.create(() => {
|
|
4244
|
-
return this.cancel();
|
|
4245
|
-
});
|
|
4246
|
-
this.confirmFace = {
|
|
4247
|
-
text: () => this.confirm.ok(),
|
|
4248
|
-
color: () => this.isDestructive() ? 'warn' : 'primary',
|
|
4249
|
-
style: () => 'raised'
|
|
4250
|
-
};
|
|
4251
|
-
this.cancelFace = {
|
|
4252
|
-
text: () => this.confirm.cancel(),
|
|
4253
|
-
};
|
|
4254
|
-
}
|
|
4255
|
-
ngOnInit() {
|
|
4256
|
-
}
|
|
4257
|
-
get confirm() {
|
|
4258
|
-
return this.config.confirm;
|
|
4259
|
-
}
|
|
4260
|
-
get titleColor() {
|
|
4261
|
-
return this.isDestructive() ? 'warn' : undefined;
|
|
4262
|
-
}
|
|
4263
|
-
isDestructive() {
|
|
4264
|
-
return this.confirm.destructive && this.confirm.destructive();
|
|
4265
4747
|
}
|
|
4266
4748
|
}
|
|
4267
4749
|
ConfirmThenDialogComponent.decorators = [
|
|
4268
4750
|
{ type: Component, args: [{
|
|
4269
4751
|
selector: 'aup-confirmation-dialog',
|
|
4270
|
-
template: "<aup-activity-title *ngIf=\"
|
|
4271
|
-
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
|
|
4752
|
+
template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
|
|
4753
|
+
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
|
|
4272
4754
|
},] }
|
|
4273
4755
|
];
|
|
4274
4756
|
ConfirmThenDialogComponent.ctorParameters = () => [
|
|
4275
4757
|
{ type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
|
|
4276
4758
|
];
|
|
4277
4759
|
|
|
4278
|
-
class
|
|
4760
|
+
class ConfirmThenExecuteDialogComponent extends AbstractConfirmDialogComponent {
|
|
4761
|
+
constructor(data) {
|
|
4762
|
+
super(data.confirm);
|
|
4763
|
+
this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
|
|
4764
|
+
try {
|
|
4765
|
+
const result = yield data.operation(this.interactionContext);
|
|
4766
|
+
this.done(result);
|
|
4767
|
+
}
|
|
4768
|
+
catch (e) {
|
|
4769
|
+
this.cancel(e);
|
|
4770
|
+
}
|
|
4771
|
+
}));
|
|
4772
|
+
}
|
|
4773
|
+
}
|
|
4774
|
+
ConfirmThenExecuteDialogComponent.decorators = [
|
|
4775
|
+
{ type: Component, args: [{
|
|
4776
|
+
selector: 'aup-confirmation-execute-dialog',
|
|
4777
|
+
template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
|
|
4778
|
+
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
|
|
4779
|
+
},] }
|
|
4780
|
+
];
|
|
4781
|
+
ConfirmThenExecuteDialogComponent.ctorParameters = () => [
|
|
4782
|
+
{ type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
|
|
4783
|
+
];
|
|
4784
|
+
|
|
4785
|
+
class ConfirmationDialogComponent extends AbstractConfirmDialogComponent {
|
|
4279
4786
|
constructor(confirm) {
|
|
4280
|
-
super();
|
|
4787
|
+
super(confirm);
|
|
4281
4788
|
this.confirm = confirm;
|
|
4282
|
-
assert.notNil(confirm);
|
|
4283
4789
|
this.confirmCommand = Command.create(() => {
|
|
4284
4790
|
return this.done();
|
|
4285
4791
|
});
|
|
4286
|
-
this.cancelCommand = Command.create(() => {
|
|
4287
|
-
return this.cancel();
|
|
4288
|
-
});
|
|
4289
|
-
this.confirmFace = {
|
|
4290
|
-
text: () => confirm.ok(),
|
|
4291
|
-
color: () => this.isDestructive() ? 'warn' : 'primary',
|
|
4292
|
-
style: () => 'raised'
|
|
4293
|
-
};
|
|
4294
|
-
this.cancelFace = {
|
|
4295
|
-
text: () => confirm.cancel(),
|
|
4296
|
-
};
|
|
4297
|
-
}
|
|
4298
|
-
ngOnInit() {
|
|
4299
|
-
}
|
|
4300
|
-
get titleColor() {
|
|
4301
|
-
return this.isDestructive() ? 'warn' : undefined;
|
|
4302
|
-
}
|
|
4303
|
-
isDestructive() {
|
|
4304
|
-
return this.confirm.destructive && this.confirm.destructive();
|
|
4305
4792
|
}
|
|
4306
4793
|
}
|
|
4307
4794
|
ConfirmationDialogComponent.decorators = [
|
|
4308
4795
|
{ type: Component, args: [{
|
|
4309
4796
|
selector: 'aup-confirmation-dialog',
|
|
4310
|
-
template: "<aup-activity-title *ngIf=\"
|
|
4311
|
-
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
|
|
4797
|
+
template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n",
|
|
4798
|
+
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
|
|
4312
4799
|
},] }
|
|
4313
4800
|
];
|
|
4314
4801
|
ConfirmationDialogComponent.ctorParameters = () => [
|
|
@@ -4345,6 +4832,12 @@ class AbstractInteractionContext {
|
|
|
4345
4832
|
data: data
|
|
4346
4833
|
}, true);
|
|
4347
4834
|
}
|
|
4835
|
+
confirmThenExecute(confirm, operation) {
|
|
4836
|
+
return this.createAndLaunchActivity(ConfirmThenExecuteDialogComponent, {
|
|
4837
|
+
confirm,
|
|
4838
|
+
operation: operation
|
|
4839
|
+
}, true);
|
|
4840
|
+
}
|
|
4348
4841
|
}
|
|
4349
4842
|
|
|
4350
4843
|
class ActivityRef {
|
|
@@ -4450,7 +4943,7 @@ ActivityOutletComponent.decorators = [
|
|
|
4450
4943
|
{ type: Component, args: [{
|
|
4451
4944
|
selector: 'aup-activity-outlet',
|
|
4452
4945
|
template: '',
|
|
4453
|
-
styles: [":host{display:block}"]
|
|
4946
|
+
styles: [":host{display:block}\n"]
|
|
4454
4947
|
},] }
|
|
4455
4948
|
];
|
|
4456
4949
|
ActivityOutletComponent.ctorParameters = () => [
|
|
@@ -4470,7 +4963,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
4470
4963
|
this.activityRefs = [];
|
|
4471
4964
|
this.garbage = new GarbageCollector();
|
|
4472
4965
|
this.inAnimation = new MutableValueModel(false);
|
|
4473
|
-
this.busy = new DelegatingValueModel().withDefault(false);
|
|
4966
|
+
this.busy = this.registerDisposable(new DelegatingValueModel().withDefault(false));
|
|
4474
4967
|
this.registerDisposable(this.busy);
|
|
4475
4968
|
}
|
|
4476
4969
|
ngOnInit() {
|
|
@@ -4646,8 +5139,8 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
4646
5139
|
ActivityContainerComponent.decorators = [
|
|
4647
5140
|
{ type: Component, args: [{
|
|
4648
5141
|
selector: 'aup-activity-container',
|
|
4649
|
-
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busyModel]=\"busy\">\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n",
|
|
4650
|
-
styles: [":host{display:flex;flex-direction:column}
|
|
5142
|
+
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busyModel]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n",
|
|
5143
|
+
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}\n"]
|
|
4651
5144
|
},] }
|
|
4652
5145
|
];
|
|
4653
5146
|
ActivityContainerComponent.ctorParameters = () => [];
|
|
@@ -4700,7 +5193,7 @@ ActivityTitleComponent.decorators = [
|
|
|
4700
5193
|
{ type: Component, args: [{
|
|
4701
5194
|
selector: 'aup-activity-title',
|
|
4702
5195
|
template: "<ng-content></ng-content>\n",
|
|
4703
|
-
styles: [":host{display:block}"]
|
|
5196
|
+
styles: [":host{display:block}\n"]
|
|
4704
5197
|
},] }
|
|
4705
5198
|
];
|
|
4706
5199
|
ActivityTitleComponent.propDecorators = {
|
|
@@ -4725,6 +5218,9 @@ class AbstractActivityTriggerComponent extends DisposableComponent {
|
|
|
4725
5218
|
});
|
|
4726
5219
|
});
|
|
4727
5220
|
}
|
|
5221
|
+
get interactionContext() {
|
|
5222
|
+
return lang$1.abstractMethod(this.constructor);
|
|
5223
|
+
}
|
|
4728
5224
|
ngOnInit() {
|
|
4729
5225
|
}
|
|
4730
5226
|
get isActive() {
|
|
@@ -4890,7 +5386,7 @@ InteractionService.ctorParameters = () => [
|
|
|
4890
5386
|
constructor() {
|
|
4891
5387
|
super();
|
|
4892
5388
|
this._interactions = new MutableListModel();
|
|
4893
|
-
this._disabledDelegate = new DelegatingValueModel().withDefault(false);
|
|
5389
|
+
this._disabledDelegate = this.registerDisposable(new DelegatingValueModel().withDefault(false));
|
|
4894
5390
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
4895
5391
|
this.active = chain(this._interactions).isNotEmpty();
|
|
4896
5392
|
this.interactionContextIds = chain(this._interactions).pluck("identifier");
|
|
@@ -4946,14 +5442,17 @@ InteractionService.ctorParameters = () => [
|
|
|
4946
5442
|
class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
4947
5443
|
constructor(interactionService) {
|
|
4948
5444
|
super();
|
|
4949
|
-
this.
|
|
5445
|
+
this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
|
|
5446
|
+
}
|
|
5447
|
+
get interactionContext() {
|
|
5448
|
+
return this._interactionContext;
|
|
4950
5449
|
}
|
|
4951
5450
|
}
|
|
4952
5451
|
ModalActivityTriggerComponent.decorators = [
|
|
4953
5452
|
{ type: Component, args: [{
|
|
4954
5453
|
selector: 'aup-modal-activity-trigger',
|
|
4955
5454
|
template: "<aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n",
|
|
4956
|
-
styles: [":host{display:inline-block}"]
|
|
5455
|
+
styles: [":host{display:inline-block}\n"]
|
|
4957
5456
|
},] }
|
|
4958
5457
|
];
|
|
4959
5458
|
ModalActivityTriggerComponent.ctorParameters = () => [
|
|
@@ -4986,6 +5485,9 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
|
|
|
4986
5485
|
var _a;
|
|
4987
5486
|
return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : '0ms';
|
|
4988
5487
|
}
|
|
5488
|
+
get active() {
|
|
5489
|
+
return this.isActive();
|
|
5490
|
+
}
|
|
4989
5491
|
ngAfterViewInit() {
|
|
4990
5492
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
4991
5493
|
}
|
|
@@ -5010,6 +5512,9 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
|
|
|
5010
5512
|
confirmThen(confirm, activityType, data) {
|
|
5011
5513
|
return this.activityContainerComponent.confirmThen(confirm, activityType);
|
|
5012
5514
|
}
|
|
5515
|
+
confirmThenExecute(confirm, operation) {
|
|
5516
|
+
return this.activityContainerComponent.confirmThenExecute(confirm, operation);
|
|
5517
|
+
}
|
|
5013
5518
|
isActive() {
|
|
5014
5519
|
return this.activityContainerComponent.isActive();
|
|
5015
5520
|
}
|
|
@@ -5021,7 +5526,7 @@ InPlaceInteractionContextComponent.decorators = [
|
|
|
5021
5526
|
{ type: Component, args: [{
|
|
5022
5527
|
selector: 'aup-in-place-interaction-context',
|
|
5023
5528
|
template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\" [animationDuration]=\"animationDuration\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
|
|
5024
|
-
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
5529
|
+
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}\n"]
|
|
5025
5530
|
},] }
|
|
5026
5531
|
];
|
|
5027
5532
|
InPlaceInteractionContextComponent.ctorParameters = () => [
|
|
@@ -5030,8 +5535,80 @@ InPlaceInteractionContextComponent.ctorParameters = () => [
|
|
|
5030
5535
|
];
|
|
5031
5536
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
5032
5537
|
activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }],
|
|
5033
|
-
animateFirstActivity: [{ type: Input }]
|
|
5538
|
+
animateFirstActivity: [{ type: Input }],
|
|
5539
|
+
active: [{ type: HostBinding, args: ["class.active",] }]
|
|
5540
|
+
};
|
|
5541
|
+
|
|
5542
|
+
/**
|
|
5543
|
+
*
|
|
5544
|
+
*/
|
|
5545
|
+
class AddCardActivityComponent extends AbstractActivityTriggerComponent {
|
|
5546
|
+
constructor(interactionService) {
|
|
5547
|
+
super();
|
|
5548
|
+
this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
|
|
5549
|
+
this.renderAs = AddCardActivityComponent.RenderAs.CARD;
|
|
5550
|
+
this.notCard = true;
|
|
5551
|
+
const { chain } = Dsl.disposeWith(this);
|
|
5552
|
+
this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(this);
|
|
5553
|
+
this.faceList = chain(this.faceModel).mapToList(face => [face]);
|
|
5554
|
+
}
|
|
5555
|
+
get renderAsClass() {
|
|
5556
|
+
return `render-as-${this.renderAs}`;
|
|
5557
|
+
}
|
|
5558
|
+
get activityTypeClass() {
|
|
5559
|
+
return `${this.interactionStyle}-activity`;
|
|
5560
|
+
}
|
|
5561
|
+
isRenderAsCard() {
|
|
5562
|
+
return this.renderAs === 'card';
|
|
5563
|
+
}
|
|
5564
|
+
isRenderAsButton() {
|
|
5565
|
+
return this.renderAs === 'button';
|
|
5566
|
+
}
|
|
5567
|
+
ngOnInit() {
|
|
5568
|
+
}
|
|
5569
|
+
get interactionContext() {
|
|
5570
|
+
switch (this.interactionStyle) {
|
|
5571
|
+
case 'inline':
|
|
5572
|
+
return this.inlineInteractionContext;
|
|
5573
|
+
default:
|
|
5574
|
+
return this.modalInteractionContext;
|
|
5575
|
+
}
|
|
5576
|
+
}
|
|
5577
|
+
isModal() {
|
|
5578
|
+
return this.interactionStyle === 'modal';
|
|
5579
|
+
}
|
|
5580
|
+
isInline() {
|
|
5581
|
+
return this.interactionStyle === 'inline';
|
|
5582
|
+
}
|
|
5583
|
+
}
|
|
5584
|
+
AddCardActivityComponent.decorators = [
|
|
5585
|
+
{ type: Component, args: [{
|
|
5586
|
+
selector: 'aup-add-card-activity',
|
|
5587
|
+
template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n",
|
|
5588
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:#0000008a}:host[interactionStyle=modal][renderas=card]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:#0000008a}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}\n"]
|
|
5589
|
+
},] }
|
|
5590
|
+
];
|
|
5591
|
+
AddCardActivityComponent.ctorParameters = () => [
|
|
5592
|
+
{ type: InteractionService }
|
|
5593
|
+
];
|
|
5594
|
+
AddCardActivityComponent.propDecorators = {
|
|
5595
|
+
inlineInteractionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
5596
|
+
interactionStyle: [{ type: Input }],
|
|
5597
|
+
renderAs: [{ type: Input }, { type: HostBinding, args: ['class',] }],
|
|
5598
|
+
notCard: [{ type: HostBinding, args: ['class.not-card',] }],
|
|
5599
|
+
renderAsClass: [{ type: HostBinding, args: ['class',] }],
|
|
5600
|
+
activityTypeClass: [{ type: HostBinding, args: ['class',] }]
|
|
5034
5601
|
};
|
|
5602
|
+
(function (AddCardActivityComponent) {
|
|
5603
|
+
AddCardActivityComponent.InteractionType = Enum({
|
|
5604
|
+
MODAL: 'modal',
|
|
5605
|
+
INLINE: 'inline'
|
|
5606
|
+
});
|
|
5607
|
+
AddCardActivityComponent.RenderAs = Enum({
|
|
5608
|
+
CARD: 'card',
|
|
5609
|
+
BUTTON: 'button'
|
|
5610
|
+
});
|
|
5611
|
+
})(AddCardActivityComponent || (AddCardActivityComponent = {}));
|
|
5035
5612
|
|
|
5036
5613
|
/**
|
|
5037
5614
|
* Css Vars.
|
|
@@ -5071,7 +5648,7 @@ AddItemInteractionContextComponent.decorators = [
|
|
|
5071
5648
|
{ type: Component, args: [{
|
|
5072
5649
|
selector: 'aup-add-item-interaction-context',
|
|
5073
5650
|
template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><aup-icon [icon]=\"icon\"></aup-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n",
|
|
5074
|
-
styles: [":host{--def-link-color:var(--link-color,currentColor);--def-link-color-hover:var(--link-color-hover,currentColor);--def-link-background:var(--link-background,transparent);--def-link-background-hover:var(--link-background-hover,rgba(0,0,0,
|
|
5651
|
+
styles: [":host{--def-link-color: var(--link-color, currentColor);--def-link-color-hover: var(--link-color-hover, currentColor);--def-link-background: var(--link-background, transparent);--def-link-background-hover: var(--link-background-hover, rgba(0, 0, 0, .05));--def-link-border-radius: var(--link-border-radius, 4px);--def-link-padding: var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}\n"]
|
|
5075
5652
|
},] }
|
|
5076
5653
|
];
|
|
5077
5654
|
AddItemInteractionContextComponent.ctorParameters = () => [];
|
|
@@ -5094,17 +5671,20 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
|
5094
5671
|
constructor() {
|
|
5095
5672
|
super();
|
|
5096
5673
|
}
|
|
5674
|
+
get interactionContext() {
|
|
5675
|
+
return this._interactionContext;
|
|
5676
|
+
}
|
|
5097
5677
|
}
|
|
5098
5678
|
InlineActivityTriggerComponent.decorators = [
|
|
5099
5679
|
{ type: Component, args: [{
|
|
5100
5680
|
selector: 'aup-inline-activity-trigger',
|
|
5101
5681
|
template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n</aup-in-place-interaction-context>\n",
|
|
5102
|
-
styles: [":host{display:inline-block}"]
|
|
5682
|
+
styles: [":host{display:inline-block}\n"]
|
|
5103
5683
|
},] }
|
|
5104
5684
|
];
|
|
5105
5685
|
InlineActivityTriggerComponent.ctorParameters = () => [];
|
|
5106
5686
|
InlineActivityTriggerComponent.propDecorators = {
|
|
5107
|
-
|
|
5687
|
+
_interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
5108
5688
|
};
|
|
5109
5689
|
|
|
5110
5690
|
/**
|
|
@@ -5135,6 +5715,7 @@ class PopupInteractionContextComponent extends DisposableComponent {
|
|
|
5135
5715
|
const self = this;
|
|
5136
5716
|
const overlayRef = this._overlay.create({
|
|
5137
5717
|
hasBackdrop: false,
|
|
5718
|
+
disposeOnNavigation: true,
|
|
5138
5719
|
panelClass: 'aup-popup-interaction-panel',
|
|
5139
5720
|
positionStrategy: this._overlay.position()
|
|
5140
5721
|
.flexibleConnectedTo(this._element)
|
|
@@ -5189,7 +5770,7 @@ PopupInteractionContextComponent.decorators = [
|
|
|
5189
5770
|
{ type: Component, args: [{
|
|
5190
5771
|
selector: 'aup-popup-interaction-context',
|
|
5191
5772
|
template: "<ng-content></ng-content>\n",
|
|
5192
|
-
styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}"]
|
|
5773
|
+
styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}\n"]
|
|
5193
5774
|
},] }
|
|
5194
5775
|
];
|
|
5195
5776
|
PopupInteractionContextComponent.ctorParameters = () => [
|
|
@@ -5265,44 +5846,93 @@ InteractionContextTriggerFor.propDecorators = {
|
|
|
5265
5846
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
5266
5847
|
// we're getting a metadata error for D for no reason that I can find and only during the build (ng serve works fine)
|
|
5267
5848
|
// @dynamic
|
|
5268
|
-
class
|
|
5849
|
+
class InputActivity extends Activity {
|
|
5269
5850
|
constructor(data) {
|
|
5851
|
+
var _a, _b;
|
|
5270
5852
|
super();
|
|
5271
5853
|
this.data = data;
|
|
5272
5854
|
this.class = 'aup-input-activity';
|
|
5273
5855
|
const form = new DirtyTrackingForm();
|
|
5274
5856
|
this.valueModel = form.valueModel(this.data.initialValue);
|
|
5275
5857
|
this.valueModel.validateUsing(data.validators || []);
|
|
5276
|
-
|
|
5858
|
+
// TODO: move to global configuration
|
|
5859
|
+
this.confirmFace = (_a = data.confirmFace) !== null && _a !== void 0 ? _a : {
|
|
5860
|
+
icon: () => 'mat:check'
|
|
5861
|
+
};
|
|
5862
|
+
this.cancelFace = (_b = data.cancelFace) !== null && _b !== void 0 ? _b : {
|
|
5863
|
+
icon: () => 'mat:clear'
|
|
5864
|
+
};
|
|
5865
|
+
this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
|
|
5277
5866
|
if (this.valueModel.validate()) {
|
|
5278
5867
|
if (data.save) {
|
|
5279
|
-
|
|
5280
|
-
|
|
5868
|
+
const self = this;
|
|
5869
|
+
try {
|
|
5870
|
+
let allGood = true;
|
|
5871
|
+
const result = yield data.save(this.valueModel.value, {
|
|
5872
|
+
injectError(error) {
|
|
5873
|
+
allGood = false;
|
|
5874
|
+
self.valueModel.injectErrors([error]);
|
|
5875
|
+
}
|
|
5876
|
+
});
|
|
5877
|
+
if (allGood) {
|
|
5878
|
+
this.done(this.valueModel.value);
|
|
5879
|
+
}
|
|
5880
|
+
}
|
|
5881
|
+
catch (e) {
|
|
5882
|
+
console.error(e);
|
|
5883
|
+
}
|
|
5281
5884
|
}
|
|
5282
5885
|
else {
|
|
5283
5886
|
this.done(this.valueModel.value);
|
|
5284
5887
|
}
|
|
5285
5888
|
}
|
|
5286
|
-
});
|
|
5889
|
+
}));
|
|
5287
5890
|
this.cancelCommand = Command.create(() => {
|
|
5288
5891
|
this.cancel();
|
|
5289
5892
|
});
|
|
5893
|
+
this.busyWhile(this.confirmCommand.busy);
|
|
5894
|
+
}
|
|
5895
|
+
get layout() {
|
|
5896
|
+
var _a, _b;
|
|
5897
|
+
return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
|
|
5290
5898
|
}
|
|
5291
5899
|
onActivityReady() {
|
|
5292
5900
|
this.valueModel.focusContext.requestFocus();
|
|
5293
5901
|
}
|
|
5902
|
+
get additionalCssClassName() {
|
|
5903
|
+
var _a;
|
|
5904
|
+
return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
|
|
5905
|
+
}
|
|
5906
|
+
onEscape() {
|
|
5907
|
+
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
|
|
5908
|
+
this.cancelCommand.execute();
|
|
5909
|
+
}
|
|
5910
|
+
}
|
|
5911
|
+
shouldCancelOnEscape() {
|
|
5912
|
+
return _.isNil(this.data.cancelOnEscape) // we default to true..
|
|
5913
|
+
|| this.data.cancelOnEscape;
|
|
5914
|
+
}
|
|
5294
5915
|
}
|
|
5295
|
-
|
|
5916
|
+
InputActivity.decorators = [
|
|
5296
5917
|
{ type: Component, args: [{ template: `` },] }
|
|
5297
5918
|
];
|
|
5298
|
-
|
|
5919
|
+
InputActivity.ctorParameters = () => [
|
|
5299
5920
|
{ type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
|
|
5300
5921
|
];
|
|
5301
|
-
|
|
5302
|
-
class: [{ type: HostBinding, args: ['class',] }]
|
|
5922
|
+
InputActivity.propDecorators = {
|
|
5923
|
+
class: [{ type: HostBinding, args: ['class',] }],
|
|
5924
|
+
layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
|
|
5925
|
+
additionalCssClassName: [{ type: HostBinding, args: ["class",] }],
|
|
5926
|
+
onEscape: [{ type: HostListener, args: ['keydown.escape',] }]
|
|
5303
5927
|
};
|
|
5928
|
+
(function (InputActivity) {
|
|
5929
|
+
InputActivity.Layout = Enum({
|
|
5930
|
+
INLINE: 'inline',
|
|
5931
|
+
BLOCK: 'block'
|
|
5932
|
+
});
|
|
5933
|
+
})(InputActivity || (InputActivity = {}));
|
|
5304
5934
|
|
|
5305
|
-
class StringInputActivity extends
|
|
5935
|
+
class StringInputActivity extends InputActivity {
|
|
5306
5936
|
}
|
|
5307
5937
|
StringInputActivity.decorators = [
|
|
5308
5938
|
{ type: Component, args: [{
|
|
@@ -5313,13 +5943,15 @@ StringInputActivity.decorators = [
|
|
|
5313
5943
|
[placeholder]="data.placeholder"
|
|
5314
5944
|
[command.enter]="confirmCommand"
|
|
5315
5945
|
[command.escape]="cancelCommand"></aup-string-input>
|
|
5316
|
-
<aup-activity-actions align="end"
|
|
5317
|
-
[
|
|
5946
|
+
<aup-activity-actions [layout]="layout" align="end"
|
|
5947
|
+
[confirmFace]="confirmFace"
|
|
5948
|
+
[cancelFace]="cancelFace"
|
|
5949
|
+
></aup-activity-actions>
|
|
5318
5950
|
`
|
|
5319
5951
|
},] }
|
|
5320
5952
|
];
|
|
5321
5953
|
|
|
5322
|
-
class SelectInputActivity extends
|
|
5954
|
+
class SelectInputActivity extends InputActivity {
|
|
5323
5955
|
constructor() {
|
|
5324
5956
|
super(...arguments);
|
|
5325
5957
|
this.defaultOptionLabelFormat = (option) => {
|
|
@@ -5347,7 +5979,9 @@ SelectInputActivity.decorators = [
|
|
|
5347
5979
|
[options]="options"
|
|
5348
5980
|
[optionLabelFormat]="optionLabelFormat"
|
|
5349
5981
|
></aup-select-input>
|
|
5350
|
-
<aup-activity-actions
|
|
5982
|
+
<aup-activity-actions [layout]="layout" align="end"
|
|
5983
|
+
[confirmFace]="confirmFace"
|
|
5984
|
+
[cancelFace]="cancelFace"
|
|
5351
5985
|
></aup-activity-actions>
|
|
5352
5986
|
`
|
|
5353
5987
|
},] }
|
|
@@ -5453,32 +6087,6 @@ class TableModel extends AbstractTableModel {
|
|
|
5453
6087
|
}
|
|
5454
6088
|
}
|
|
5455
6089
|
|
|
5456
|
-
class SelfAndDescendantsVisitor {
|
|
5457
|
-
constructor() {
|
|
5458
|
-
}
|
|
5459
|
-
visit(it) {
|
|
5460
|
-
this.onVisit(it);
|
|
5461
|
-
if (this.shouldVisitChildrenOf(it)) {
|
|
5462
|
-
it.visitChildren(this);
|
|
5463
|
-
}
|
|
5464
|
-
}
|
|
5465
|
-
shouldVisitChildrenOf(it) {
|
|
5466
|
-
return true;
|
|
5467
|
-
}
|
|
5468
|
-
}
|
|
5469
|
-
(function (SelfAndDescendantsVisitor) {
|
|
5470
|
-
class Each extends SelfAndDescendantsVisitor {
|
|
5471
|
-
constructor(callback) {
|
|
5472
|
-
super();
|
|
5473
|
-
this.callback = callback;
|
|
5474
|
-
}
|
|
5475
|
-
onVisit(it) {
|
|
5476
|
-
this.callback(it);
|
|
5477
|
-
}
|
|
5478
|
-
}
|
|
5479
|
-
SelfAndDescendantsVisitor.Each = Each;
|
|
5480
|
-
})(SelfAndDescendantsVisitor || (SelfAndDescendantsVisitor = {}));
|
|
5481
|
-
|
|
5482
6090
|
/**
|
|
5483
6091
|
* @file Automatically generated by barrelsby.
|
|
5484
6092
|
*/
|
|
@@ -5489,20 +6097,222 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
|
5489
6097
|
this.anchorX = 'start';
|
|
5490
6098
|
this.anchorY = 'bottom';
|
|
5491
6099
|
}
|
|
6100
|
+
get interactionContext() {
|
|
6101
|
+
return this._interactionContext;
|
|
6102
|
+
}
|
|
5492
6103
|
}
|
|
5493
6104
|
PopupActivityTriggerComponent.decorators = [
|
|
5494
6105
|
{ type: Component, args: [{
|
|
5495
6106
|
selector: 'aup-popup-activity-trigger',
|
|
5496
6107
|
template: "<aup-popup-interaction-context [anchorX]=\"anchorX\" [anchorY]=\"anchorY\">\n <aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n</aup-popup-interaction-context>\n",
|
|
5497
|
-
styles: [":host{display:inline-block}"]
|
|
6108
|
+
styles: [":host{display:inline-block}\n"]
|
|
5498
6109
|
},] }
|
|
5499
6110
|
];
|
|
5500
6111
|
PopupActivityTriggerComponent.ctorParameters = () => [];
|
|
5501
6112
|
PopupActivityTriggerComponent.propDecorators = {
|
|
5502
6113
|
anchorX: [{ type: Input }],
|
|
5503
6114
|
anchorY: [{ type: Input }],
|
|
5504
|
-
|
|
6115
|
+
_interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
6116
|
+
};
|
|
6117
|
+
|
|
6118
|
+
class InlineEditorModel extends GarbageCollector {
|
|
6119
|
+
constructor(valueModel, saveCallback) {
|
|
6120
|
+
super();
|
|
6121
|
+
this.valueModel = valueModel;
|
|
6122
|
+
this.saveCallback = saveCallback;
|
|
6123
|
+
this.editing = new MutableValueModel(false);
|
|
6124
|
+
this._validators = new MutableListModel();
|
|
6125
|
+
this._editingEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(true));
|
|
6126
|
+
assert.notNil(valueModel);
|
|
6127
|
+
const { when } = Dsl.disposeWith(this);
|
|
6128
|
+
when(this.editingEnabled).becomesFalsey(() => this.cancelEdit());
|
|
6129
|
+
}
|
|
6130
|
+
get editingEnabled() {
|
|
6131
|
+
return this._editingEnabled.readonly;
|
|
6132
|
+
}
|
|
6133
|
+
disableWhile(condition) {
|
|
6134
|
+
const { chain } = Dsl.disposeWith(this);
|
|
6135
|
+
this.enableWhile(chain(condition).isFalsey());
|
|
6136
|
+
return this;
|
|
6137
|
+
}
|
|
6138
|
+
enableWhile(condition) {
|
|
6139
|
+
this._editingEnabled.setDelegate(condition);
|
|
6140
|
+
return this;
|
|
6141
|
+
}
|
|
6142
|
+
get validators() {
|
|
6143
|
+
return this._validators.readonly;
|
|
6144
|
+
}
|
|
6145
|
+
validateUsing(validator) {
|
|
6146
|
+
this._validators.push(validator);
|
|
6147
|
+
return this;
|
|
6148
|
+
}
|
|
6149
|
+
isEditing() {
|
|
6150
|
+
return this.editing.value;
|
|
6151
|
+
}
|
|
6152
|
+
cancelEdit() {
|
|
6153
|
+
this.editing.value = false;
|
|
6154
|
+
}
|
|
6155
|
+
startEditing() {
|
|
6156
|
+
this.editing.value = true;
|
|
6157
|
+
}
|
|
6158
|
+
}
|
|
6159
|
+
(function (InlineEditorModel) {
|
|
6160
|
+
function create(valueModel, options) {
|
|
6161
|
+
return new InlineEditorModel(valueModel, options.save);
|
|
6162
|
+
}
|
|
6163
|
+
InlineEditorModel.create = create;
|
|
6164
|
+
})(InlineEditorModel || (InlineEditorModel = {}));
|
|
6165
|
+
TrackExternal.oneTimeBinding(InlineEditorModel);
|
|
6166
|
+
|
|
6167
|
+
/**
|
|
6168
|
+
* @example
|
|
6169
|
+
* const source: ValueModel<string> = ...;
|
|
6170
|
+
* const model = InlineEditorModel.create(source, {
|
|
6171
|
+
* save(updated:string, context: EditContext) => {
|
|
6172
|
+
* try {
|
|
6173
|
+
* try and save the thing...
|
|
6174
|
+
* } catch(error) {
|
|
6175
|
+
* context.injectError(error)
|
|
6176
|
+
* }
|
|
6177
|
+
* }).validateUsing(Validator.present("We'll need a value");
|
|
6178
|
+
*
|
|
6179
|
+
* # in the view
|
|
6180
|
+
* <aup-inline-string-editor
|
|
6181
|
+
* label="My field"
|
|
6182
|
+
* placeHolder="I'm ready for a string..."
|
|
6183
|
+
* [editorModel]="model"></aup-inline-string-editor>
|
|
6184
|
+
*/
|
|
6185
|
+
class InlineStringEditorComponent extends DisposableComponent {
|
|
6186
|
+
constructor(interactionService) {
|
|
6187
|
+
super();
|
|
6188
|
+
this.editingEnabled = this.registerDisposable(new DelegatingValueModel());
|
|
6189
|
+
const { chain, when, valueOf } = Dsl.disposeWith(this);
|
|
6190
|
+
const modalIC = interactionService.createModalInteractionContextDisposedWith(this);
|
|
6191
|
+
const resolvedFacesModel = chain(this.facesModel).map(userFaces => {
|
|
6192
|
+
return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
|
|
6193
|
+
}, { allowNil: true });
|
|
6194
|
+
this.editFaceModel = resolvedFacesModel.pluck('edit');
|
|
6195
|
+
this.saveFace = resolvedFacesModel.pluck('save');
|
|
6196
|
+
this.cancelFace = resolvedFacesModel.pluck('cancel');
|
|
6197
|
+
const self = this;
|
|
6198
|
+
this.editCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
|
|
6199
|
+
this.editorModel.editing.value = true;
|
|
6200
|
+
try {
|
|
6201
|
+
yield this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData());
|
|
6202
|
+
}
|
|
6203
|
+
catch (e) {
|
|
6204
|
+
// don't care if they cancelled, just hiding the console errors
|
|
6205
|
+
}
|
|
6206
|
+
finally {
|
|
6207
|
+
this.editorModel.editing.value = false;
|
|
6208
|
+
}
|
|
6209
|
+
})).enableWhile(this.editingEnabled);
|
|
6210
|
+
this.onDispose(() => this.cancelEdit());
|
|
6211
|
+
}
|
|
6212
|
+
ngOnInit() {
|
|
6213
|
+
// our editor model is a one time binding without delegates so we can only
|
|
6214
|
+
// use it once we've been initialised
|
|
6215
|
+
const { chain, when, valueOf } = Dsl.disposeWith(this);
|
|
6216
|
+
if (!this.editorModel) {
|
|
6217
|
+
lang$1.illegalState('editorModel is required');
|
|
6218
|
+
}
|
|
6219
|
+
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
6220
|
+
when(this.editorModel.editing).becomesTruthy(() => {
|
|
6221
|
+
this.editCommand.execute();
|
|
6222
|
+
}, { asLongAs: this.editCommand.enabled });
|
|
6223
|
+
when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
|
|
6224
|
+
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
6225
|
+
// deviceDescription.isNil()
|
|
6226
|
+
).areTruthy();
|
|
6227
|
+
this.displayValue = chain(this.editorModel.valueModel).map(v => {
|
|
6228
|
+
return _.isEmpty(v) ? this.placeHolderModel.value : v;
|
|
6229
|
+
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
6230
|
+
}
|
|
6231
|
+
createInputActivityData() {
|
|
6232
|
+
const self = this;
|
|
6233
|
+
return {
|
|
6234
|
+
initialValue: self.editorModel.valueModel.value,
|
|
6235
|
+
confirmFace: self.saveFace.value,
|
|
6236
|
+
cancelFace: self.cancelFace.value,
|
|
6237
|
+
placeholder: self.placeHolderModel.value,
|
|
6238
|
+
label: self.label,
|
|
6239
|
+
layout: InputActivity.Layout.INLINE,
|
|
6240
|
+
validators: self.editorModel.validators.value,
|
|
6241
|
+
save(value, inputContext) {
|
|
6242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6243
|
+
yield self.editorModel.saveCallback(value, inputContext);
|
|
6244
|
+
});
|
|
6245
|
+
}
|
|
6246
|
+
};
|
|
6247
|
+
}
|
|
6248
|
+
cancelEdit() {
|
|
6249
|
+
if (this.isEditing()) {
|
|
6250
|
+
this.interactionContext.cancelActiveActivity();
|
|
6251
|
+
}
|
|
6252
|
+
}
|
|
6253
|
+
startEdit() {
|
|
6254
|
+
if (!this.isEditing() && this.editCommand.enabled.value) {
|
|
6255
|
+
this.editCommand.execute();
|
|
6256
|
+
}
|
|
6257
|
+
}
|
|
6258
|
+
isEditing() {
|
|
6259
|
+
return this.interactionContext.isActive();
|
|
6260
|
+
}
|
|
6261
|
+
isEmpty() {
|
|
6262
|
+
return this.empty.value;
|
|
6263
|
+
}
|
|
6264
|
+
}
|
|
6265
|
+
InlineStringEditorComponent.decorators = [
|
|
6266
|
+
{ type: Component, args: [{
|
|
6267
|
+
selector: 'aup-inline-string-editor',
|
|
6268
|
+
template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field appearance=\"standard\" floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled.value\" [command]=\"editCommand\" [faceModel]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n"
|
|
6269
|
+
},] }
|
|
6270
|
+
];
|
|
6271
|
+
InlineStringEditorComponent.ctorParameters = () => [
|
|
6272
|
+
{ type: InteractionService }
|
|
6273
|
+
];
|
|
6274
|
+
InlineStringEditorComponent.propDecorators = {
|
|
6275
|
+
editorModel: [{ type: Input }],
|
|
6276
|
+
facesModel: [{ type: Input }],
|
|
6277
|
+
faces: [{ type: Input }],
|
|
6278
|
+
interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent,] }],
|
|
6279
|
+
label: [{ type: Input }],
|
|
6280
|
+
placeHolder: [{ type: Input }],
|
|
6281
|
+
placeHolderModel: [{ type: Input }]
|
|
5505
6282
|
};
|
|
6283
|
+
__decorate([
|
|
6284
|
+
TrackExternal(),
|
|
6285
|
+
__metadata("design:type", InlineEditorModel)
|
|
6286
|
+
], InlineStringEditorComponent.prototype, "editorModel", void 0);
|
|
6287
|
+
__decorate([
|
|
6288
|
+
TrackExternal(),
|
|
6289
|
+
__metadata("design:type", ValueModel)
|
|
6290
|
+
], InlineStringEditorComponent.prototype, "facesModel", void 0);
|
|
6291
|
+
__decorate([
|
|
6292
|
+
StoreInValueModel('facesModel'),
|
|
6293
|
+
__metadata("design:type", Object)
|
|
6294
|
+
], InlineStringEditorComponent.prototype, "faces", void 0);
|
|
6295
|
+
__decorate([
|
|
6296
|
+
StoreInValueModel('placeHolderModel'),
|
|
6297
|
+
__metadata("design:type", String)
|
|
6298
|
+
], InlineStringEditorComponent.prototype, "placeHolder", void 0);
|
|
6299
|
+
__decorate([
|
|
6300
|
+
TrackExternal(),
|
|
6301
|
+
__metadata("design:type", ValueModel)
|
|
6302
|
+
], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
6303
|
+
(function (InlineStringEditorComponent) {
|
|
6304
|
+
InlineStringEditorComponent.DEFAULT_FACES = {
|
|
6305
|
+
edit: {
|
|
6306
|
+
icon: () => 'mat:edit'
|
|
6307
|
+
},
|
|
6308
|
+
save: {
|
|
6309
|
+
icon: () => 'mat:check'
|
|
6310
|
+
},
|
|
6311
|
+
cancel: {
|
|
6312
|
+
icon: () => 'mat:clear'
|
|
6313
|
+
}
|
|
6314
|
+
};
|
|
6315
|
+
})(InlineStringEditorComponent || (InlineStringEditorComponent = {}));
|
|
5506
6316
|
|
|
5507
6317
|
class InteractionModule {
|
|
5508
6318
|
}
|
|
@@ -5519,12 +6329,17 @@ InteractionModule.decorators = [
|
|
|
5519
6329
|
DirectivesModule,
|
|
5520
6330
|
FlexModule,
|
|
5521
6331
|
GridModule,
|
|
5522
|
-
ComponentsModule
|
|
6332
|
+
ComponentsModule,
|
|
6333
|
+
FormsModule,
|
|
6334
|
+
MatInputModule,
|
|
6335
|
+
MatFormFieldModule,
|
|
6336
|
+
A11yModule
|
|
5523
6337
|
],
|
|
5524
6338
|
declarations: [
|
|
5525
6339
|
ActivityContainerComponent,
|
|
5526
6340
|
ConfirmationDialogComponent,
|
|
5527
6341
|
ConfirmThenDialogComponent,
|
|
6342
|
+
ConfirmThenExecuteDialogComponent,
|
|
5528
6343
|
AlertDialogComponent,
|
|
5529
6344
|
ActivityOutletComponent,
|
|
5530
6345
|
InPlaceInteractionContextComponent,
|
|
@@ -5533,7 +6348,7 @@ InteractionModule.decorators = [
|
|
|
5533
6348
|
PopupInteractionContextComponent,
|
|
5534
6349
|
StringInputActivity,
|
|
5535
6350
|
SelectInputActivity,
|
|
5536
|
-
|
|
6351
|
+
InputActivity,
|
|
5537
6352
|
InteractionContextTriggerFor,
|
|
5538
6353
|
Activity,
|
|
5539
6354
|
ActivityTitleComponent,
|
|
@@ -5542,7 +6357,11 @@ InteractionModule.decorators = [
|
|
|
5542
6357
|
AbstractActivityTriggerComponent,
|
|
5543
6358
|
PopupActivityTriggerComponent,
|
|
5544
6359
|
InlineActivityTriggerComponent,
|
|
5545
|
-
ModalActivityTriggerComponent
|
|
6360
|
+
ModalActivityTriggerComponent,
|
|
6361
|
+
AddCardActivityComponent,
|
|
6362
|
+
InlineStringEditorComponent,
|
|
6363
|
+
AbstractDialogComponent,
|
|
6364
|
+
AbstractConfirmDialogComponent,
|
|
5546
6365
|
],
|
|
5547
6366
|
exports: [
|
|
5548
6367
|
ActivityContainerComponent,
|
|
@@ -5558,13 +6377,15 @@ InteractionModule.decorators = [
|
|
|
5558
6377
|
ActivityBodyComponent,
|
|
5559
6378
|
PopupActivityTriggerComponent,
|
|
5560
6379
|
InlineActivityTriggerComponent,
|
|
5561
|
-
ModalActivityTriggerComponent
|
|
6380
|
+
ModalActivityTriggerComponent,
|
|
6381
|
+
AddCardActivityComponent,
|
|
6382
|
+
InlineStringEditorComponent,
|
|
5562
6383
|
],
|
|
5563
6384
|
entryComponents: [
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
6385
|
+
// ActivityContainerComponent,
|
|
6386
|
+
// ConfirmationDialogComponent,
|
|
6387
|
+
// ConfirmThenDialogComponent,
|
|
6388
|
+
// AlertDialogComponent
|
|
5568
6389
|
],
|
|
5569
6390
|
providers: [
|
|
5570
6391
|
InteractionService
|
|
@@ -5839,16 +6660,27 @@ class PlaceComponent extends DisposableComponent {
|
|
|
5839
6660
|
when(this._active).becomesTruthy(() => this._notifyPlaceReady());
|
|
5840
6661
|
this.childPlaces = this.placeDefinition.children.map(d => d.component);
|
|
5841
6662
|
}
|
|
5842
|
-
// @Trace()
|
|
5843
6663
|
initialiseVisit(visit, notifyVisitChanged) {
|
|
5844
6664
|
assert.isNil(this.visitModel.value);
|
|
5845
6665
|
const { when } = Dsl.disposeWith(this);
|
|
5846
6666
|
this.visitModel.value = visit;
|
|
5847
6667
|
DebugContext.getOrCreate(this.visitModel).tag(`${this.placeDefinition.component.name}.visitModel`);
|
|
5848
|
-
|
|
6668
|
+
// we track if the any of the bindings updated the route. If so we remember it and update the
|
|
6669
|
+
// route in one go at the end.
|
|
6670
|
+
this.placeDefinition
|
|
6671
|
+
.getVisitParameterDefs()
|
|
6672
|
+
.forEach(parameterDef => this.installAndInitialiseBinding(visit, parameterDef));
|
|
5849
6673
|
when(this.visitModel).changes((current, previous) => {
|
|
5850
6674
|
notifyVisitChanged(current, previous);
|
|
5851
6675
|
}, { unless: this._inVisitUpdate });
|
|
6676
|
+
// TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
|
|
6677
|
+
// now we're not doing it as it's a fair bit of effort and will only affect people if they're
|
|
6678
|
+
// cutting and pasting urls to each other.
|
|
6679
|
+
// // the binding process can update the visit (e.g. if a selection model has already selected during
|
|
6680
|
+
// // component construction) and there was no value specified in the route
|
|
6681
|
+
// if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
|
|
6682
|
+
// notifyVisitChanged(this.visitModel.value, visit)
|
|
6683
|
+
// }
|
|
5852
6684
|
}
|
|
5853
6685
|
updateVisit(visit) {
|
|
5854
6686
|
assert.isTruthy(this.isInitialised());
|
|
@@ -5861,7 +6693,12 @@ class PlaceComponent extends DisposableComponent {
|
|
|
5861
6693
|
return !!this.visitModel.value;
|
|
5862
6694
|
}
|
|
5863
6695
|
// @Trace()
|
|
5864
|
-
|
|
6696
|
+
/**
|
|
6697
|
+
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
6698
|
+
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
6699
|
+
* method will return ture to nofiy the the visit has changed.
|
|
6700
|
+
*/
|
|
6701
|
+
installAndInitialiseBinding(initialVisit, parameterDef) {
|
|
5865
6702
|
const model = this[parameterDef.propertyName];
|
|
5866
6703
|
DebugContext.tag(model, `${this.placeDefinition.component.name}.${parameterDef.propertyName}`);
|
|
5867
6704
|
const binding = this.registerDisposable(new Binding(this.visitModel, model, {
|
|
@@ -5875,7 +6712,17 @@ class PlaceComponent extends DisposableComponent {
|
|
|
5875
6712
|
return currentVisit.replace(parameterDef, value);
|
|
5876
6713
|
}
|
|
5877
6714
|
}));
|
|
5878
|
-
binding.
|
|
6715
|
+
// Now we need to initialise the binding direction. If we have a value in the Url then we should always push
|
|
6716
|
+
// that to the view. If we don't and the view already has a value (e.g. a selection model has already initialised in the
|
|
6717
|
+
// component constructor) then we should push that to the route.
|
|
6718
|
+
const isInVisit = !_.isNil(initialVisit.getParameterValue(parameterDef));
|
|
6719
|
+
const isInModel = !_.isNil(model.value);
|
|
6720
|
+
if (!isInVisit && isInModel) {
|
|
6721
|
+
binding.writeLeft(); // push it to the route
|
|
6722
|
+
}
|
|
6723
|
+
else {
|
|
6724
|
+
binding.writeRight(); // push it to the model
|
|
6725
|
+
}
|
|
5879
6726
|
}
|
|
5880
6727
|
get placeDefinition() {
|
|
5881
6728
|
const definition = PlaceComponent.getDefinition(this.constructor);
|
|
@@ -6918,7 +7765,7 @@ class ConsolidatedParameterMap {
|
|
|
6918
7765
|
return !!this.paramMaps.find(m => m.has(name));
|
|
6919
7766
|
}
|
|
6920
7767
|
get keys() {
|
|
6921
|
-
return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);
|
|
7768
|
+
return _.uniq(this.paramMaps.reduce((result, params) => result.concat(params.keys), []));
|
|
6922
7769
|
}
|
|
6923
7770
|
}
|
|
6924
7771
|
__decorate([
|
|
@@ -6995,9 +7842,13 @@ class Visit {
|
|
|
6995
7842
|
});
|
|
6996
7843
|
return new Visit(this.placeDefinition, params);
|
|
6997
7844
|
}
|
|
7845
|
+
// @Trace()
|
|
6998
7846
|
hasRoutingChangedFrom(other) {
|
|
6999
7847
|
const samePlace = other.placeDefinition === this.placeDefinition;
|
|
7000
|
-
const
|
|
7848
|
+
const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
|
|
7849
|
+
const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
|
|
7850
|
+
// console.log({currentParams, otherParams});
|
|
7851
|
+
const sameRouteParameters = _.isEqual(currentParams, otherParams);
|
|
7001
7852
|
return !samePlace || !sameRouteParameters;
|
|
7002
7853
|
}
|
|
7003
7854
|
hasChangedFrom(other) {
|
|
@@ -7176,6 +8027,9 @@ UrlService.ctorParameters = () => [
|
|
|
7176
8027
|
{ type: UrlSerializer }
|
|
7177
8028
|
];
|
|
7178
8029
|
|
|
8030
|
+
function asArray(item) {
|
|
8031
|
+
return Array.isArray(item) ? item : [item];
|
|
8032
|
+
}
|
|
7179
8033
|
class PlaceRouter extends GarbageCollector {
|
|
7180
8034
|
constructor(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
7181
8035
|
super();
|
|
@@ -7191,7 +8045,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
7191
8045
|
* An observable model containing the authoriser function. This allows places to react to changes
|
|
7192
8046
|
* in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
|
|
7193
8047
|
*/
|
|
7194
|
-
this._accessGuard = new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth());
|
|
8048
|
+
this._accessGuard = this.registerDisposable(new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth()));
|
|
7195
8049
|
if (window['Cypress']) {
|
|
7196
8050
|
window['aup.PlaceRouter'] = this;
|
|
7197
8051
|
}
|
|
@@ -7339,11 +8193,10 @@ class PlaceRouter extends GarbageCollector {
|
|
|
7339
8193
|
this.currentSession.onRouterEnd(event);
|
|
7340
8194
|
}
|
|
7341
8195
|
navigate(visit, options) {
|
|
8196
|
+
const commands = asArray(visit).reduce((result, v) => {
|
|
8197
|
+
return [...result, v.placeDefinition.path, ...this.createRouteParameters(v)];
|
|
8198
|
+
}, []);
|
|
7342
8199
|
return this.doNavigation(visit, (router) => __awaiter(this, void 0, void 0, function* () {
|
|
7343
|
-
const commands = [
|
|
7344
|
-
visit.placeDefinition.path,
|
|
7345
|
-
...this.createRouteParameters(visit)
|
|
7346
|
-
];
|
|
7347
8200
|
yield this.angularRouter.navigate(commands, {
|
|
7348
8201
|
relativeTo: options ? options.relativeTo : null
|
|
7349
8202
|
});
|
|
@@ -7356,7 +8209,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
7356
8209
|
lang.illegalState('Navigation already in progress');
|
|
7357
8210
|
}
|
|
7358
8211
|
const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
7359
|
-
navigation.storeVisit(
|
|
8212
|
+
asArray(visit).forEach(v => navigation.storeVisit(v));
|
|
7360
8213
|
this.transitionTo(navigation);
|
|
7361
8214
|
try {
|
|
7362
8215
|
yield runNavigationCommands(this.angularRouter);
|
|
@@ -7437,6 +8290,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
7437
8290
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
7438
8291
|
* the app directly and we don't get to ask.
|
|
7439
8292
|
*/
|
|
8293
|
+
// @Trace()
|
|
7440
8294
|
syncInteractionContextIdsWithRouter() {
|
|
7441
8295
|
if (this.navigationSession) {
|
|
7442
8296
|
// console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
|
|
@@ -7478,12 +8332,6 @@ PlaceRouter.ctorParameters = () => [
|
|
|
7478
8332
|
{ type: UrlService },
|
|
7479
8333
|
{ type: PlaceHistory }
|
|
7480
8334
|
];
|
|
7481
|
-
__decorate([
|
|
7482
|
-
Trace(),
|
|
7483
|
-
__metadata("design:type", Function),
|
|
7484
|
-
__metadata("design:paramtypes", []),
|
|
7485
|
-
__metadata("design:returntype", Promise)
|
|
7486
|
-
], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
|
|
7487
8335
|
(function (PlaceRouter) {
|
|
7488
8336
|
class State {
|
|
7489
8337
|
constructor(activeVisits) {
|
|
@@ -7509,7 +8357,7 @@ NotAuthorisedNoticeComponent.decorators = [
|
|
|
7509
8357
|
{ type: Component, args: [{
|
|
7510
8358
|
selector: 'aup-not-authorised-notice',
|
|
7511
8359
|
template: "<p>You are not authorised to access this page</p>\n",
|
|
7512
|
-
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}"]
|
|
8360
|
+
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}\n"]
|
|
7513
8361
|
},] }
|
|
7514
8362
|
];
|
|
7515
8363
|
NotAuthorisedNoticeComponent.ctorParameters = () => [];
|
|
@@ -7735,7 +8583,7 @@ PlaceOutletComponent.decorators = [
|
|
|
7735
8583
|
selector: 'aup-place-outlet',
|
|
7736
8584
|
template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n",
|
|
7737
8585
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
7738
|
-
styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}"]
|
|
8586
|
+
styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"]
|
|
7739
8587
|
},] }
|
|
7740
8588
|
];
|
|
7741
8589
|
PlaceOutletComponent.ctorParameters = () => [
|
|
@@ -7776,7 +8624,7 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
|
|
|
7776
8624
|
constructor(placeRouter) {
|
|
7777
8625
|
super();
|
|
7778
8626
|
this.placeRouter = placeRouter;
|
|
7779
|
-
this._activePlaceComponent = new DelegatingValueModel();
|
|
8627
|
+
this._activePlaceComponent = this.registerDisposable(new DelegatingValueModel());
|
|
7780
8628
|
this.trackByPlaceDef = (data) => data.place;
|
|
7781
8629
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
7782
8630
|
this.placeDefinitions = chain(this.placesModel)
|
|
@@ -7865,7 +8713,7 @@ ListPlaceNavComponent.decorators = [
|
|
|
7865
8713
|
{ type: Component, args: [{
|
|
7866
8714
|
selector: 'aup-list-place-nav',
|
|
7867
8715
|
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n",
|
|
7868
|
-
styles: [":host{display:flex;flex-direction:column;--selected-border-color
|
|
8716
|
+
styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"]
|
|
7869
8717
|
},] }
|
|
7870
8718
|
];
|
|
7871
8719
|
ListPlaceNavComponent.ctorParameters = () => [
|
|
@@ -7933,7 +8781,7 @@ SidePlaceNavigationComponent.decorators = [
|
|
|
7933
8781
|
{ type: Component, args: [{
|
|
7934
8782
|
selector: 'aup-side-place-navigation',
|
|
7935
8783
|
template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-icon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
|
|
7936
|
-
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width,56px);--resolved-nav-item-height:var(--nav-item-height,var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width,235px);--resolved-color:var(--nav-color,
|
|
8784
|
+
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width: var(--nav-width, 56px);--resolved-nav-item-height: var(--nav-item-height, var(--resolved-nav-item-width));--resolved-expanded-width: var(--nav-expanded-width, 235px);--resolved-color: var(--nav-color, rgba(255, 255, 255, .9));--resolved-background-color: var(--nav-background-color, #555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}\n"]
|
|
7937
8785
|
},] }
|
|
7938
8786
|
];
|
|
7939
8787
|
SidePlaceNavigationComponent.ctorParameters = () => [
|
|
@@ -7953,7 +8801,7 @@ TabbedPlaceNavigationComponent.decorators = [
|
|
|
7953
8801
|
{ type: Component, args: [{
|
|
7954
8802
|
selector: 'aup-tabbed-place-navigation',
|
|
7955
8803
|
template: "<nav mat-tab-nav-bar>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n",
|
|
7956
|
-
styles: [":host{display:block}div.place-holder{border:1px solid green}"]
|
|
8804
|
+
styles: [":host{display:block}div.place-holder{border:1px solid green}\n"]
|
|
7957
8805
|
},] }
|
|
7958
8806
|
];
|
|
7959
8807
|
TabbedPlaceNavigationComponent.ctorParameters = () => [
|
|
@@ -8058,9 +8906,6 @@ const slideRightOnEnterAnimation = trigger('slideRightOnEnter', [
|
|
|
8058
8906
|
* @file Automatically generated by barrelsby.
|
|
8059
8907
|
*/
|
|
8060
8908
|
|
|
8061
|
-
// const r:Result<string, number> = null;
|
|
8062
|
-
// r.catch(e => {}).then();
|
|
8063
|
-
|
|
8064
8909
|
class DialogInteractionContext extends AbstractInteractionContext {
|
|
8065
8910
|
constructor(identifier, api, dialogService, config) {
|
|
8066
8911
|
super();
|
|
@@ -8245,10 +9090,11 @@ class PlaceGuard {
|
|
|
8245
9090
|
}
|
|
8246
9091
|
}
|
|
8247
9092
|
const result = yield this.cleanInteractionState(activatedRoute, state, () => __awaiter(this, void 0, void 0, function* () {
|
|
9093
|
+
const navigationSession = this.placeRouter.navigationSession;
|
|
8248
9094
|
// Parse our route params.
|
|
8249
9095
|
const params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
|
|
9096
|
+
// console.log("RouteParams", params)
|
|
8250
9097
|
const parsedParams = placeDefinition.parseRouteParams(params);
|
|
8251
|
-
const navigationSession = this.placeRouter.navigationSession;
|
|
8252
9098
|
const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);
|
|
8253
9099
|
const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
|
|
8254
9100
|
const sanitisedVisit = yield sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));
|
|
@@ -8500,5 +9346,5 @@ VisibilityService.ctorParameters = () => [
|
|
|
8500
9346
|
* Generated bundle index. Do not edit.
|
|
8501
9347
|
*/
|
|
8502
9348
|
|
|
8503
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent,
|
|
9349
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CardStackComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, markdownPillExtension, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator, ɵ0, ɵ1 };
|
|
8504
9350
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|