@coolon/angular-ui-powerups 12.4.0-alpha.69 → 12.4.0-alpha.7
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.scss +70 -0
- package/assets/form.scss +2 -10
- package/assets/interaction.scss +7 -10
- package/assets/mixins.scss +7 -5
- package/assets/styles.scss +15 -8
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +331 -748
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +305 -1045
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/components/aup-command-face.d.ts +8 -2
- package/cypress/components/aup-command.d.ts +1 -2
- package/cypress/components/aup-input.d.ts +5 -11
- package/cypress/components/aup-more-menu.d.ts +4 -0
- package/cypress/components/aup-popup-menu.d.ts +7 -0
- package/cypress/components/aup-table.d.ts +18 -5
- package/cypress/components/button-mixin.d.ts +19 -0
- package/cypress/components/button.d.ts +7 -11
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/exports.d.ts +4 -25
- package/cypress/package.json +1 -1
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +33 -8
- package/cypress/section.d.ts +52 -0
- package/esm2015/cypress/components/aup-command-face.js +22 -11
- 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 +6 -12
- 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-input.js +5 -17
- 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-more-menu.js +7 -0
- package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-more-menu.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-popup-menu.js +19 -0
- package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-table.js +33 -5
- package/esm2015/cypress/components/aup-table.js.map +1 -1
- package/esm2015/cypress/components/aup-table.metadata.json +1 -1
- package/esm2015/cypress/components/button-mixin.js +15 -0
- package/esm2015/cypress/components/button-mixin.js.map +1 -0
- package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
- package/esm2015/cypress/components/button.js +10 -4
- package/esm2015/cypress/components/button.js.map +1 -1
- package/esm2015/cypress/components/button.metadata.json +1 -1
- package/esm2015/cypress/exports.js +4 -25
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-element.js +19 -26
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +19 -31
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/cypress/section.js +72 -0
- package/esm2015/cypress/section.js.map +1 -0
- package/esm2015/cypress/section.metadata.json +1 -0
- 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/card-container/card-container.component.js +84 -0
- package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{labelled-value/labelled-value.component.scss.shim.ngstyle.js.map → card-container/card-container.component.scss.shim.ngstyle.js.map} +1 -1
- 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 +1 -5
- 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 +24 -37
- 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 +3 -6
- 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 +0 -1
- 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 +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/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 +5 -12
- 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 +3 -13
- 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/table/cell-renderer.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.js +9 -34
- 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 +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-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 +2 -0
- 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 +1 -1
- package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
- 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 +13 -21
- 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-node.js +2 -0
- package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +1 -0
- 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 +2 -3
- 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/tables/tree-table/visitable.class.js +26 -0
- package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +1 -0
- package/esm2015/lib/components/track-by.js +0 -12
- 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/activity.js +1 -1
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
- 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 +0 -4
- 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 +2 -5
- 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 +2 -5
- 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 +2 -5
- 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-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 +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 +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +3 -7
- 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/abstract-input-activity.js +43 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
- 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 +4 -6
- 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 +1 -2
- 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 +3 -5
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +5 -19
- 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 +1 -2
- 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 +1 -2
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/place-component.js +4 -31
- 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 +14 -11
- 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/url-snapshot.js +7 -1
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
- package/esm2015/lib/place/visit.js +1 -5
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +239 -550
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +230 -858
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +9 -30
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -1
- package/lib/components/exports.d.ts +3 -6
- package/lib/components/section-header/section-header.component.d.ts +2 -5
- package/lib/components/tables/abstract-table-model.d.ts +3 -6
- package/lib/components/tables/table/cell-renderer.d.ts +0 -2
- package/lib/components/tables/table/column-model.d.ts +3 -12
- package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +1 -2
- package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +3 -2
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +3 -2
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
- package/lib/components/tables/tree-table/tree-node.d.ts +3 -0
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
- package/lib/components/tables/tree-table/visitable.class.d.ts +22 -0
- package/lib/components/track-by.d.ts +0 -9
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
- package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -1
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
- package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
- package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
- package/lib/interaction/exports.d.ts +3 -5
- package/lib/place/place-component.d.ts +1 -6
- package/lib/place/place-router.d.ts +2 -2
- package/package.json +16 -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 +3 -5
- 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 +1 -3
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/utils/build-context.d.ts +3 -6
- package/schematics/utils/build-context.js +3 -3
- package/schematics/utils/build-context.js.map +1 -1
- package/schematics/utils/workspace.d.ts +0 -1
- package/schematics/utils/workspace.js +3 -11
- package/schematics/utils/workspace.js.map +1 -1
- package/assets/activities/activities.scss +0 -77
- package/assets/activities/input-activities.scss +0 -36
- package/assets/cards.scss +0 -17
- package/assets/empty-state.scss +0 -11
- package/assets/forms/mixins.scss +0 -6
- package/assets/interaction/editor/inline-string-editor.scss +0 -54
- package/cypress/component-builder.d.ts +0 -71
- package/cypress/components/aup-abstract-activity.d.ts +0 -31
- package/cypress/components/aup-abstract-table.d.ts +0 -18
- package/cypress/components/aup-activity.d.ts +0 -9
- package/cypress/components/aup-alert-dialog.d.ts +0 -27
- package/cypress/components/aup-alert.d.ts +0 -9
- package/cypress/components/aup-confirm-dialog.d.ts +0 -27
- package/cypress/components/aup-confirm.d.ts +0 -11
- package/cypress/components/aup-empty-state.d.ts +0 -4
- package/cypress/components/aup-modal-activity.d.ts +0 -24
- package/cypress/components/aup-modal-mixin.d.ts +0 -23
- package/cypress/components/aup-tree-table.d.ts +0 -16
- package/cypress/components/form-element-mixin.d.ts +0 -22
- package/cypress/components/mat-checkbox.d.ts +0 -31
- package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
- package/cypress/components/popup/aup-more-menu.d.ts +0 -5
- package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
- package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
- package/cypress/components/table/aup-table-cell.d.ts +0 -9
- package/cypress/components/table/aup-table-column.d.ts +0 -10
- package/cypress/components/table/aup-table-row.d.ts +0 -17
- package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
- package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
- package/cypress/element-locator.d.ts +0 -8
- package/cypress/page-builder.d.ts +0 -9
- package/esm2015/cypress/component-builder.js +0 -92
- package/esm2015/cypress/component-builder.js.map +0 -1
- package/esm2015/cypress/component-builder.metadata.json +0 -1
- package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
- package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-abstract-table.js +0 -50
- package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
- package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
- package/esm2015/cypress/components/aup-activity.js +0 -13
- package/esm2015/cypress/components/aup-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
- package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
- package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
- package/esm2015/cypress/components/aup-alert.js +0 -13
- package/esm2015/cypress/components/aup-alert.js.map +0 -1
- package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
- package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
- package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
- package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
- package/esm2015/cypress/components/aup-confirm.js +0 -19
- package/esm2015/cypress/components/aup-confirm.js.map +0 -1
- package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
- package/esm2015/cypress/components/aup-empty-state.js +0 -7
- package/esm2015/cypress/components/aup-empty-state.js.map +0 -1
- package/esm2015/cypress/components/aup-empty-state.metadata.json +0 -1
- package/esm2015/cypress/components/aup-modal-activity.js +0 -5
- package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
- package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
- package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
- package/esm2015/cypress/components/aup-tree-table.js +0 -34
- package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
- package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
- package/esm2015/cypress/components/form-element-mixin.js +0 -11
- package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
- package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
- package/esm2015/cypress/components/mat-checkbox.js +0 -34
- package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
- package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
- package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
- package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
- package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-column.js +0 -19
- package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-row.js +0 -28
- package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
- package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
- package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
- package/esm2015/cypress/element-locator.js +0 -16
- package/esm2015/cypress/element-locator.js.map +0 -1
- package/esm2015/cypress/element-locator.metadata.json +0 -1
- package/esm2015/cypress/page-builder.js +0 -16
- package/esm2015/cypress/page-builder.js.map +0 -1
- package/esm2015/cypress/page-builder.metadata.json +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
- package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
- package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
- package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/tables/table/text-search-predicate.js +0 -2
- package/esm2015/lib/components/tables/table/text-search-predicate.js.map +0 -1
- package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
- package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
- package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
- package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
- package/lib/components/loading-container/loading-container.component.d.ts +0 -11
- package/lib/components/tables/table/text-search-predicate.d.ts +0 -1
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
- package/lib/interaction/components/editors/edit-context.d.ts +0 -3
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
- package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/progress-
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/progress-
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon[
|
|
5
|
-
}
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/progress-spinner'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('@angular/platform-browser'), require('lodash'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('typescript-string-enums'), require('@coolon/typescript-utilities'), require('resize-observer-polyfill'), require('immer'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('@angular/material/list'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('wake-event')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/progress-spinner', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', '@angular/platform-browser', 'lodash', '@typescript-plus/fast-memoize-decorator/dist/src', 'typescript-string-enums', '@coolon/typescript-utilities', 'resize-observer-polyfill', 'immer', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', '@angular/material/list', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'wake-event'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.divider, global.ng.material.icon, global.ng.material.menu, global.ng.material.progressSpinner, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.ng.platformBrowser, global._, global.src, global.typescriptStringEnums, global.typescriptUtilities, global.ResizeObserver, global.produce, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ng.material.list, global.fastMemoizeDecorator, null, global.ng.animations, global.wakeEvent));
|
|
5
|
+
}(this, (function (exports, i2, i0, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu, progressSpinner, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, platformBrowser, _, src, typescriptStringEnums, typescriptUtilities, ResizeObserver, produce, flexLayout, i1, i1$1, overlay, list, fastMemoizeDecorator, reflectMetadata, animations$1, wakeEvent) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
16
|
Object.defineProperty(n, k, d.get ? d : {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () {
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
23
|
});
|
|
22
24
|
}
|
|
23
|
-
n[
|
|
25
|
+
n['default'] = e;
|
|
24
26
|
return Object.freeze(n);
|
|
25
27
|
}
|
|
26
28
|
|
|
@@ -260,16 +262,10 @@
|
|
|
260
262
|
r[k] = a[j];
|
|
261
263
|
return r;
|
|
262
264
|
}
|
|
263
|
-
function __spreadArray(to, from
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
if (!ar)
|
|
268
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
269
|
-
ar[i] = from[i];
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
265
|
+
function __spreadArray(to, from) {
|
|
266
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
267
|
+
to[j] = from[i];
|
|
268
|
+
return to;
|
|
273
269
|
}
|
|
274
270
|
function __await(v) {
|
|
275
271
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -357,7 +353,7 @@
|
|
|
357
353
|
function CommandDirective(elementRef, matButton, matMenuItem) {
|
|
358
354
|
var _this = _super.call(this) || this;
|
|
359
355
|
_this.elementRef = elementRef;
|
|
360
|
-
_this._commandEnabled =
|
|
356
|
+
_this._commandEnabled = new pectin.DelegatingValueModel().withDefault(false);
|
|
361
357
|
_this._commandParameterProvided = false;
|
|
362
358
|
// Material buttons and menu items don't respond to the disabled binding so we
|
|
363
359
|
// need to inject them from our host element and handle them manually.
|
|
@@ -685,7 +681,7 @@
|
|
|
685
681
|
var _a;
|
|
686
682
|
var model = searchModel !== null && searchModel !== void 0 ? searchModel : (_a = this.highlightContext) === null || _a === void 0 ? void 0 : _a.aupHighlightTextModel;
|
|
687
683
|
var searchText = model === null || model === void 0 ? void 0 : model.value;
|
|
688
|
-
if (___default[
|
|
684
|
+
if (___default['default'].isEmpty(searchText) || !___default['default'].isString(value)) {
|
|
689
685
|
return value;
|
|
690
686
|
}
|
|
691
687
|
// Match in a case insensitive manner
|
|
@@ -755,7 +751,7 @@
|
|
|
755
751
|
{ type: i0.Component, args: [{
|
|
756
752
|
selector: 'aup-busy-overlay',
|
|
757
753
|
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",
|
|
758
|
-
styles: [":host{position:relative}div.busy-overlay-backdrop{
|
|
754
|
+
styles: [":host{position:relative}div.busy-overlay-backdrop{position:absolute;background-color:rgba(0,0,0,.2);top:0;left:0;bottom:0;right:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}"]
|
|
759
755
|
},] }
|
|
760
756
|
];
|
|
761
757
|
BusyOverlayComponent.ctorParameters = function () { return []; };
|
|
@@ -772,32 +768,6 @@
|
|
|
772
768
|
__metadata("design:type", Boolean)
|
|
773
769
|
], BusyOverlayComponent.prototype, "busy", void 0);
|
|
774
770
|
|
|
775
|
-
var AbstractCardContainerComponent = /** @class */ (function (_super) {
|
|
776
|
-
__extends(AbstractCardContainerComponent, _super);
|
|
777
|
-
function AbstractCardContainerComponent() {
|
|
778
|
-
return _super.call(this) || this;
|
|
779
|
-
}
|
|
780
|
-
AbstractCardContainerComponent.prototype.ngOnInit = function () {
|
|
781
|
-
};
|
|
782
|
-
return AbstractCardContainerComponent;
|
|
783
|
-
}(DisposableComponent));
|
|
784
|
-
AbstractCardContainerComponent.decorators = [
|
|
785
|
-
{ type: i0.Component, args: [{
|
|
786
|
-
selector: 'aup-abstract-card-container',
|
|
787
|
-
template: ''
|
|
788
|
-
},] }
|
|
789
|
-
];
|
|
790
|
-
AbstractCardContainerComponent.ctorParameters = function () { return []; };
|
|
791
|
-
AbstractCardContainerComponent.propDecorators = {
|
|
792
|
-
addCardCommand: [{ type: i0.Input }],
|
|
793
|
-
addCardFace: [{ type: i0.Input }],
|
|
794
|
-
addCardTemplate: [{ type: i0.ContentChild, args: ['addCardTemplate',] }]
|
|
795
|
-
};
|
|
796
|
-
__decorate([
|
|
797
|
-
pectin.TrackExternal(),
|
|
798
|
-
__metadata("design:type", pectin.Command)
|
|
799
|
-
], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
|
|
800
|
-
|
|
801
771
|
/**
|
|
802
772
|
* @example
|
|
803
773
|
* // basic usage
|
|
@@ -815,13 +785,6 @@
|
|
|
815
785
|
* <my-card *ngFor="..."></my-card>
|
|
816
786
|
* </aup-card-container>
|
|
817
787
|
*
|
|
818
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
819
|
-
* // the activity inside teh card
|
|
820
|
-
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
821
|
-
* <my-card *ngFor="..."></my-card>
|
|
822
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
823
|
-
* </aup-card-container>
|
|
824
|
-
*
|
|
825
788
|
* // adds an add card component using the specified template. The template
|
|
826
789
|
* // will fill it's container in the grid.
|
|
827
790
|
* <aup-card-container>
|
|
@@ -854,7 +817,6 @@
|
|
|
854
817
|
* aup-card-container {
|
|
855
818
|
* --card-gap: var(--card-gap, 16px);
|
|
856
819
|
* --card-width: var(--card-width, 300px);
|
|
857
|
-
* --card-max-width: auto;
|
|
858
820
|
* --card-height: var(--card-height, auto);
|
|
859
821
|
* --card-min-height: var(--card-min-height, auto);
|
|
860
822
|
* --card-background: var(--card-background, #fcfcfb);
|
|
@@ -862,154 +824,30 @@
|
|
|
862
824
|
*/
|
|
863
825
|
var CardContainerComponent = /** @class */ (function (_super) {
|
|
864
826
|
__extends(CardContainerComponent, _super);
|
|
865
|
-
function CardContainerComponent(
|
|
866
|
-
|
|
867
|
-
_this.elementRef = elementRef;
|
|
868
|
-
/**
|
|
869
|
-
* Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
|
|
870
|
-
* or place in a layout that will stretch it such as a grid or flex layout.
|
|
871
|
-
*/
|
|
872
|
-
_this.enabledScroll = false;
|
|
873
|
-
return _this;
|
|
827
|
+
function CardContainerComponent() {
|
|
828
|
+
return _super.call(this) || this;
|
|
874
829
|
}
|
|
875
|
-
Object.defineProperty(CardContainerComponent.prototype, "columnCount", {
|
|
876
|
-
get: function () {
|
|
877
|
-
return this._columnCount;
|
|
878
|
-
},
|
|
879
|
-
set: function (count) {
|
|
880
|
-
if (!___namespace.isNil(count) && (!___namespace.isInteger(count) || count < 1)) {
|
|
881
|
-
typescriptUtilities.lang.illegalState('columnCount must be a positive integer or nil');
|
|
882
|
-
}
|
|
883
|
-
this._columnCount = count;
|
|
884
|
-
this.updateColumnCountStyles();
|
|
885
|
-
},
|
|
886
|
-
enumerable: false,
|
|
887
|
-
configurable: true
|
|
888
|
-
});
|
|
889
830
|
CardContainerComponent.prototype.ngOnInit = function () {
|
|
890
|
-
_super.prototype.ngOnInit.call(this);
|
|
891
|
-
this.updateColumnCountStyles();
|
|
892
|
-
};
|
|
893
|
-
Object.defineProperty(CardContainerComponent.prototype, "isAutoColumns", {
|
|
894
|
-
get: function () {
|
|
895
|
-
return ___namespace.isNil(this._columnCount);
|
|
896
|
-
},
|
|
897
|
-
enumerable: false,
|
|
898
|
-
configurable: true
|
|
899
|
-
});
|
|
900
|
-
Object.defineProperty(CardContainerComponent.prototype, "isSingleColumn", {
|
|
901
|
-
get: function () {
|
|
902
|
-
return this._columnCount === 1;
|
|
903
|
-
},
|
|
904
|
-
enumerable: false,
|
|
905
|
-
configurable: true
|
|
906
|
-
});
|
|
907
|
-
CardContainerComponent.prototype.updateColumnCountStyles = function () {
|
|
908
|
-
var el = this.elementRef.nativeElement;
|
|
909
|
-
if (___namespace.isNil(this._columnCount)) {
|
|
910
|
-
el.style.setProperty('--aup-card-container-column-count', '');
|
|
911
|
-
}
|
|
912
|
-
else {
|
|
913
|
-
el.style.setProperty('--aup-card-container-column-count', this._columnCount);
|
|
914
|
-
}
|
|
915
831
|
};
|
|
916
832
|
return CardContainerComponent;
|
|
917
|
-
}(
|
|
833
|
+
}(DisposableComponent));
|
|
918
834
|
CardContainerComponent.decorators = [
|
|
919
835
|
{ type: i0.Component, args: [{
|
|
920
836
|
selector: 'aup-card-container',
|
|
921
|
-
template: "<div class=\"
|
|
922
|
-
styles: [":host{--resolved-card-gap:
|
|
837
|
+
template: "<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\n</div>\n",
|
|
838
|
+
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,#fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));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);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));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));max-width:100%}.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;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.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}"]
|
|
923
839
|
},] }
|
|
924
840
|
];
|
|
925
|
-
CardContainerComponent.ctorParameters = function () { return [
|
|
926
|
-
{ type: i0.ElementRef }
|
|
927
|
-
]; };
|
|
841
|
+
CardContainerComponent.ctorParameters = function () { return []; };
|
|
928
842
|
CardContainerComponent.propDecorators = {
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
isSingleColumn: [{ type: i0.HostBinding, args: ['class.single-column',] }]
|
|
843
|
+
addCardCommand: [{ type: i0.Input }],
|
|
844
|
+
addCardFace: [{ type: i0.Input }],
|
|
845
|
+
addCardTemplate: [{ type: i0.ContentChild, args: ["addCardTemplate",] }]
|
|
933
846
|
};
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
* // basic usage
|
|
939
|
-
* <aup-card-stack>
|
|
940
|
-
* <my-card *ngFor="..."></my-card>
|
|
941
|
-
* </aup-card-stack>
|
|
942
|
-
*
|
|
943
|
-
* // adds an add button with a the '+' icon to the end of the card list.
|
|
944
|
-
* <aup-card-stack [addCardCommand]="addCard">
|
|
945
|
-
* <my-card *ngFor="..."></my-card>
|
|
946
|
-
* </aup-card-stack>
|
|
947
|
-
*
|
|
948
|
-
* // adds an add button with the specified face
|
|
949
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
950
|
-
* <my-card *ngFor="..."></my-card>
|
|
951
|
-
* </aup-card-stack>
|
|
952
|
-
*
|
|
953
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
954
|
-
* // the activity inside teh card
|
|
955
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
956
|
-
* <my-card *ngFor="..."></my-card>
|
|
957
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
958
|
-
* </aup-card-stack>
|
|
959
|
-
*
|
|
960
|
-
* // adds an add card component using the specified template. The template
|
|
961
|
-
* // will fill it's container in the grid.
|
|
962
|
-
* <aup-card-stack>
|
|
963
|
-
* <my-card *ngFor="..."></my-card>
|
|
964
|
-
* <ng-template #addCardTemplate>
|
|
965
|
-
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
966
|
-
* </ng-template>
|
|
967
|
-
* </aup-card-stack>
|
|
968
|
-
*
|
|
969
|
-
* // sing the default new card styles for your template
|
|
970
|
-
* @import "../../../../assets/styles";
|
|
971
|
-
* .my-new-card {
|
|
972
|
-
* @include aup-card-stack-new-card-style();
|
|
973
|
-
* // OR
|
|
974
|
-
* @include aup-card-stack-new-card-style(
|
|
975
|
-
* $color: rgba(0,0,0,0.54),
|
|
976
|
-
* $background-color: rgba(255,255,255,0.8),
|
|
977
|
-
* $hover-color: $color,
|
|
978
|
-
* $background-hover-color: white
|
|
979
|
-
* )
|
|
980
|
-
* }
|
|
981
|
-
* <aup-card-stack>
|
|
982
|
-
* <my-card *ngFor="..."></my-card>
|
|
983
|
-
* <ng-template #addCardTemplate>
|
|
984
|
-
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
985
|
-
* </ng-template>
|
|
986
|
-
* </aup-card-stack>
|
|
987
|
-
*
|
|
988
|
-
* // CSS Vars
|
|
989
|
-
* aup-card-stack {
|
|
990
|
-
* --card-gap: var(--card-gap, 16px);
|
|
991
|
-
* --card-height: var(--card-height, auto);
|
|
992
|
-
* --card-min-height: var(--card-min-height, auto);
|
|
993
|
-
* --card-background: var(--card-background, #fcfcfb);
|
|
994
|
-
* }
|
|
995
|
-
*/
|
|
996
|
-
var CardStackComponent = /** @class */ (function (_super) {
|
|
997
|
-
__extends(CardStackComponent, _super);
|
|
998
|
-
function CardStackComponent() {
|
|
999
|
-
var _this = _super.call(this) || this;
|
|
1000
|
-
console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
|
|
1001
|
-
return _this;
|
|
1002
|
-
}
|
|
1003
|
-
return CardStackComponent;
|
|
1004
|
-
}(AbstractCardContainerComponent));
|
|
1005
|
-
CardStackComponent.decorators = [
|
|
1006
|
-
{ type: i0.Component, args: [{
|
|
1007
|
-
selector: 'aup-card-stack',
|
|
1008
|
-
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",
|
|
1009
|
-
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"]
|
|
1010
|
-
},] }
|
|
1011
|
-
];
|
|
1012
|
-
CardStackComponent.ctorParameters = function () { return []; };
|
|
847
|
+
__decorate([
|
|
848
|
+
pectin.TrackExternal(),
|
|
849
|
+
__metadata("design:type", pectin.Command)
|
|
850
|
+
], CardContainerComponent.prototype, "addCardCommand", void 0);
|
|
1013
851
|
|
|
1014
852
|
exports.CommandFace = void 0;
|
|
1015
853
|
(function (CommandFace) {
|
|
@@ -1024,27 +862,27 @@
|
|
|
1024
862
|
RAISED: 'raised'
|
|
1025
863
|
});
|
|
1026
864
|
function getColorOf(face) {
|
|
1027
|
-
return ___default[
|
|
865
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
|
|
1028
866
|
}
|
|
1029
867
|
CommandFace.getColorOf = getColorOf;
|
|
1030
868
|
function getStyleOf(face) {
|
|
1031
|
-
return ___default[
|
|
869
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
|
|
1032
870
|
}
|
|
1033
871
|
CommandFace.getStyleOf = getStyleOf;
|
|
1034
872
|
function getIconOf(face) {
|
|
1035
|
-
return ___default[
|
|
873
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
|
|
1036
874
|
}
|
|
1037
875
|
CommandFace.getIconOf = getIconOf;
|
|
1038
876
|
function getIconPositionOf(face) {
|
|
1039
|
-
return ___default[
|
|
877
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
|
|
1040
878
|
}
|
|
1041
879
|
CommandFace.getIconPositionOf = getIconPositionOf;
|
|
1042
880
|
function getTooltipOf(face) {
|
|
1043
|
-
return ___default[
|
|
881
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
|
|
1044
882
|
}
|
|
1045
883
|
CommandFace.getTooltipOf = getTooltipOf;
|
|
1046
884
|
function getTextOf(face) {
|
|
1047
|
-
return ___default[
|
|
885
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
|
|
1048
886
|
}
|
|
1049
887
|
CommandFace.getTextOf = getTextOf;
|
|
1050
888
|
var Adapter = /** @class */ (function () {
|
|
@@ -1177,13 +1015,6 @@
|
|
|
1177
1015
|
_this.activeColor = activeFace.pluck("color");
|
|
1178
1016
|
return _this;
|
|
1179
1017
|
}
|
|
1180
|
-
Object.defineProperty(CommandFaceComponent.prototype, "face", {
|
|
1181
|
-
set: function (face) {
|
|
1182
|
-
this.facesModel.value = [face];
|
|
1183
|
-
},
|
|
1184
|
-
enumerable: false,
|
|
1185
|
-
configurable: true
|
|
1186
|
-
});
|
|
1187
1018
|
Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
|
|
1188
1019
|
get: function () {
|
|
1189
1020
|
return this.includeMissingIconInLayout && !this.activeIcon.value;
|
|
@@ -1216,13 +1047,12 @@
|
|
|
1216
1047
|
selector: 'aup-command-face',
|
|
1217
1048
|
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",
|
|
1218
1049
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1219
|
-
styles: ["aup-command-face{--icon-gap:
|
|
1050
|
+
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}"]
|
|
1220
1051
|
},] }
|
|
1221
1052
|
];
|
|
1222
1053
|
CommandFaceComponent.ctorParameters = function () { return []; };
|
|
1223
1054
|
CommandFaceComponent.propDecorators = {
|
|
1224
1055
|
_rawFaces: [{ type: i0.Input, args: ['faces',] }],
|
|
1225
|
-
face: [{ type: i0.Input }],
|
|
1226
1056
|
ignoreIcon: [{ type: i0.Input }],
|
|
1227
1057
|
ignoreText: [{ type: i0.Input }],
|
|
1228
1058
|
includeMissingIconInLayout: [{ type: i0.Input }],
|
|
@@ -1295,7 +1125,7 @@
|
|
|
1295
1125
|
_this.colorModel = chain(_this.activeFace).map(function (f) { return exports.CommandFace.getColorOf(f); });
|
|
1296
1126
|
_this.tooltipModel = chain(_this.activeFace).map(function (f) { return exports.CommandFace.getTooltipOf(f); });
|
|
1297
1127
|
_this.iconOnly = _this.faces.select(function (face) {
|
|
1298
|
-
return ___default[
|
|
1128
|
+
return ___default['default'].isEmpty(exports.CommandFace.getTextOf(face)) && !___default['default'].isEmpty(exports.CommandFace.getIconOf(face));
|
|
1299
1129
|
}).count().equals(_this.faces.count());
|
|
1300
1130
|
return _this;
|
|
1301
1131
|
}
|
|
@@ -1316,7 +1146,7 @@
|
|
|
1316
1146
|
{ type: i0.Component, args: [{
|
|
1317
1147
|
selector: 'aup-command',
|
|
1318
1148
|
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",
|
|
1319
|
-
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}
|
|
1149
|
+
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}"]
|
|
1320
1150
|
},] }
|
|
1321
1151
|
];
|
|
1322
1152
|
CommandComponent.ctorParameters = function () { return [
|
|
@@ -1380,7 +1210,7 @@
|
|
|
1380
1210
|
function AbstractPopupMenuComponent(element, parent) {
|
|
1381
1211
|
var _this = _super.call(this, element, parent) || this;
|
|
1382
1212
|
_this._unorderedChildren = new pectin.MutableListModel();
|
|
1383
|
-
_this.faceModelDelegate =
|
|
1213
|
+
_this.faceModelDelegate = new pectin.DelegatingValueModel();
|
|
1384
1214
|
_this.xPosition = 'after';
|
|
1385
1215
|
_this.yPosition = 'below';
|
|
1386
1216
|
var _c = pectin.Dsl.disposeWith(_this), chain = _c.chain, valueOf = _c.valueOf, before = _c.before, when = _c.when, after = _c.after, observe = _c.observe, switchOn = _c.switchOn;
|
|
@@ -1505,22 +1335,10 @@
|
|
|
1505
1335
|
exports.TrackBy = void 0;
|
|
1506
1336
|
(function (TrackBy) {
|
|
1507
1337
|
TrackBy.byIndex = function (index, item) { return index; };
|
|
1508
|
-
/**
|
|
1509
|
-
* @deprecated use #track(MyType).by("property") instead.
|
|
1510
|
-
* @param property
|
|
1511
|
-
*/
|
|
1512
1338
|
function trackByProperty(property) {
|
|
1513
1339
|
return function (index, item) { return item[property]; };
|
|
1514
1340
|
}
|
|
1515
1341
|
TrackBy.trackByProperty = trackByProperty;
|
|
1516
|
-
function track(type) {
|
|
1517
|
-
return {
|
|
1518
|
-
by: function (property) {
|
|
1519
|
-
return function (index, item) { return item[property]; };
|
|
1520
|
-
}
|
|
1521
|
-
};
|
|
1522
|
-
}
|
|
1523
|
-
TrackBy.track = track;
|
|
1524
1342
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1525
1343
|
|
|
1526
1344
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -1585,7 +1403,7 @@
|
|
|
1585
1403
|
selector: 'aup-tool-bar',
|
|
1586
1404
|
template: '<div class="toolbar-content"><ng-content></ng-content></div>',
|
|
1587
1405
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1588
|
-
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}
|
|
1406
|
+
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}"]
|
|
1589
1407
|
},] }
|
|
1590
1408
|
];
|
|
1591
1409
|
ToolBarComponent.ctorParameters = function () { return []; };
|
|
@@ -1611,7 +1429,8 @@
|
|
|
1611
1429
|
{ type: i0.Component, args: [{
|
|
1612
1430
|
selector: 'aup-separator',
|
|
1613
1431
|
template: "\n <mat-divider [vertical]=\"!isHorizontalContainer()\"></mat-divider>",
|
|
1614
|
-
styles: [":host {\n }",
|
|
1432
|
+
styles: [":host {\n }",
|
|
1433
|
+
":host(.horizontal-container) {\n display: inline-flex;\n flex-direction: row;\n align-items: stretch;\n }"]
|
|
1615
1434
|
},] }
|
|
1616
1435
|
];
|
|
1617
1436
|
SeparatorComponent.ctorParameters = function () { return [
|
|
@@ -1627,7 +1446,7 @@
|
|
|
1627
1446
|
__extends(PopupMenuRendererComponent, _super);
|
|
1628
1447
|
function PopupMenuRendererComponent() {
|
|
1629
1448
|
var _this = _super.call(this) || this;
|
|
1630
|
-
_this._childList =
|
|
1449
|
+
_this._childList = new pectin.DelegatingListModel();
|
|
1631
1450
|
_this.commandFired = new i0.EventEmitter();
|
|
1632
1451
|
_this.TrackBy = exports.TrackBy;
|
|
1633
1452
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
@@ -1768,7 +1587,7 @@
|
|
|
1768
1587
|
{ type: i0.Component, args: [{
|
|
1769
1588
|
selector: 'aup-empty-state',
|
|
1770
1589
|
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
1771
|
-
styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{
|
|
1590
|
+
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}"]
|
|
1772
1591
|
},] }
|
|
1773
1592
|
];
|
|
1774
1593
|
EmptyStateComponent.ctorParameters = function () { return []; };
|
|
@@ -1799,7 +1618,7 @@
|
|
|
1799
1618
|
providers: [
|
|
1800
1619
|
{ provide: pectin.FocusManager }
|
|
1801
1620
|
],
|
|
1802
|
-
styles: [":host{display:block}
|
|
1621
|
+
styles: [":host{display:block}"]
|
|
1803
1622
|
},] }
|
|
1804
1623
|
];
|
|
1805
1624
|
FocusContainerComponent.ctorParameters = function () { return [
|
|
@@ -1866,7 +1685,6 @@
|
|
|
1866
1685
|
function AbstractInputComponent() {
|
|
1867
1686
|
var _this = _super.call(this) || this;
|
|
1868
1687
|
_this.onValueEditedListeners = new pectin.EventListenerList();
|
|
1869
|
-
_this.userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1870
1688
|
_this.dense = false;
|
|
1871
1689
|
// TODO: fix this.
|
|
1872
1690
|
// tslint:disable-next-line:no-output-native
|
|
@@ -2148,10 +1966,10 @@
|
|
|
2148
1966
|
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2149
1967
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
2150
1968
|
var lowerCaseFilterValue = chain(_this.filterValue)
|
|
2151
|
-
.map(function (v) { return ___default[
|
|
1969
|
+
.map(function (v) { return ___default['default'].isString(v) ? v.toLowerCase() : ''; });
|
|
2152
1970
|
_this.filteredOptions = chain(_this.optionsModel)
|
|
2153
1971
|
.select(function (option) {
|
|
2154
|
-
return ___default[
|
|
1972
|
+
return ___default['default'].isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
|
|
2155
1973
|
}, { dependsOn: lowerCaseFilterValue });
|
|
2156
1974
|
return _this;
|
|
2157
1975
|
}
|
|
@@ -2172,7 +1990,7 @@
|
|
|
2172
1990
|
{ type: i0.Component, args: [{
|
|
2173
1991
|
selector: 'aup-autocomplete-input',
|
|
2174
1992
|
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",
|
|
2175
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
1993
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2176
1994
|
},] }
|
|
2177
1995
|
];
|
|
2178
1996
|
AutocompleteInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2211,7 +2029,7 @@
|
|
|
2211
2029
|
{ type: i0.Component, args: [{
|
|
2212
2030
|
selector: 'aup-checkbox-input',
|
|
2213
2031
|
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",
|
|
2214
|
-
styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-
|
|
2032
|
+
styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-error,mat-hint{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}"]
|
|
2215
2033
|
},] }
|
|
2216
2034
|
];
|
|
2217
2035
|
CheckboxInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2242,7 +2060,7 @@
|
|
|
2242
2060
|
{ type: i0.Component, args: [{
|
|
2243
2061
|
selector: 'aup-multiple-select-input',
|
|
2244
2062
|
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",
|
|
2245
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
2063
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2246
2064
|
},] }
|
|
2247
2065
|
];
|
|
2248
2066
|
MultipleSelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2332,7 +2150,7 @@
|
|
|
2332
2150
|
{ type: i0.Component, args: [{
|
|
2333
2151
|
selector: 'aup-select-input',
|
|
2334
2152
|
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",
|
|
2335
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
2153
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2336
2154
|
},] }
|
|
2337
2155
|
];
|
|
2338
2156
|
SelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2373,7 +2191,7 @@
|
|
|
2373
2191
|
{ type: i0.Component, args: [{
|
|
2374
2192
|
selector: 'aup-string-input',
|
|
2375
2193
|
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",
|
|
2376
|
-
styles: ["button[disabled]{visibility:hidden}
|
|
2194
|
+
styles: ["button[disabled]{visibility:hidden}"]
|
|
2377
2195
|
},] }
|
|
2378
2196
|
];
|
|
2379
2197
|
StringInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2410,7 +2228,7 @@
|
|
|
2410
2228
|
{ type: i0.Component, args: [{
|
|
2411
2229
|
selector: 'aup-text-input',
|
|
2412
2230
|
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",
|
|
2413
|
-
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}
|
|
2231
|
+
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
2414
2232
|
},] }
|
|
2415
2233
|
];
|
|
2416
2234
|
TextInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2454,7 +2272,7 @@
|
|
|
2454
2272
|
{ type: i0.Component, args: [{
|
|
2455
2273
|
selector: 'aup-icon',
|
|
2456
2274
|
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",
|
|
2457
|
-
styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center
|
|
2275
|
+
styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center}.faIconWrapper,.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]
|
|
2458
2276
|
},] }
|
|
2459
2277
|
];
|
|
2460
2278
|
exports.IconComponent.propDecorators = {
|
|
@@ -2468,54 +2286,6 @@
|
|
|
2468
2286
|
});
|
|
2469
2287
|
})(exports.IconComponent || (exports.IconComponent = {}));
|
|
2470
2288
|
|
|
2471
|
-
var LoadingContainerComponent = /** @class */ (function (_super) {
|
|
2472
|
-
__extends(LoadingContainerComponent, _super);
|
|
2473
|
-
function LoadingContainerComponent() {
|
|
2474
|
-
return _super.call(this) || this;
|
|
2475
|
-
}
|
|
2476
|
-
Object.defineProperty(LoadingContainerComponent.prototype, "state", {
|
|
2477
|
-
get: function () {
|
|
2478
|
-
return this.loadingModel.value ? "loaded" : "loading";
|
|
2479
|
-
},
|
|
2480
|
-
enumerable: false,
|
|
2481
|
-
configurable: true
|
|
2482
|
-
});
|
|
2483
|
-
LoadingContainerComponent.prototype.ngOnInit = function () {
|
|
2484
|
-
};
|
|
2485
|
-
return LoadingContainerComponent;
|
|
2486
|
-
}(pectin.GarbageCollector));
|
|
2487
|
-
LoadingContainerComponent.decorators = [
|
|
2488
|
-
{ type: i0.Component, args: [{
|
|
2489
|
-
selector: 'aup-loading-container',
|
|
2490
|
-
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",
|
|
2491
|
-
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"]
|
|
2492
|
-
},] }
|
|
2493
|
-
];
|
|
2494
|
-
LoadingContainerComponent.ctorParameters = function () { return []; };
|
|
2495
|
-
LoadingContainerComponent.propDecorators = {
|
|
2496
|
-
loadingModel: [{ type: i0.Input }],
|
|
2497
|
-
loading: [{ type: i0.Input }],
|
|
2498
|
-
messageModel: [{ type: i0.Input }],
|
|
2499
|
-
message: [{ type: i0.Input }],
|
|
2500
|
-
state: [{ type: i0.HostBinding, args: ["class",] }]
|
|
2501
|
-
};
|
|
2502
|
-
__decorate([
|
|
2503
|
-
pectin.TrackExternal(),
|
|
2504
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2505
|
-
], LoadingContainerComponent.prototype, "loadingModel", void 0);
|
|
2506
|
-
__decorate([
|
|
2507
|
-
pectin.StoreInValueModel("loadingModel"),
|
|
2508
|
-
__metadata("design:type", Boolean)
|
|
2509
|
-
], LoadingContainerComponent.prototype, "loading", void 0);
|
|
2510
|
-
__decorate([
|
|
2511
|
-
pectin.TrackExternal(),
|
|
2512
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2513
|
-
], LoadingContainerComponent.prototype, "messageModel", void 0);
|
|
2514
|
-
__decorate([
|
|
2515
|
-
pectin.StoreInValueModel("messageModel"),
|
|
2516
|
-
__metadata("design:type", String)
|
|
2517
|
-
], LoadingContainerComponent.prototype, "message", void 0);
|
|
2518
|
-
|
|
2519
2289
|
var NoopComponent = /** @class */ (function () {
|
|
2520
2290
|
function NoopComponent() {
|
|
2521
2291
|
}
|
|
@@ -2525,7 +2295,7 @@
|
|
|
2525
2295
|
{ type: i0.Component, args: [{
|
|
2526
2296
|
selector: 'aup-noop',
|
|
2527
2297
|
template: "",
|
|
2528
|
-
styles: [":host{display:block}
|
|
2298
|
+
styles: [":host{display:block}"]
|
|
2529
2299
|
},] }
|
|
2530
2300
|
];
|
|
2531
2301
|
NoopComponent.ctorParameters = function () { return []; };
|
|
@@ -2541,37 +2311,29 @@
|
|
|
2541
2311
|
{ type: i0.Component, args: [{
|
|
2542
2312
|
selector: 'aup-scroll-container',
|
|
2543
2313
|
template: "<div class=\"container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n",
|
|
2544
|
-
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}
|
|
2314
|
+
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}"]
|
|
2545
2315
|
},] }
|
|
2546
2316
|
];
|
|
2547
2317
|
ScrollContainerComponent.ctorParameters = function () { return []; };
|
|
2548
2318
|
|
|
2549
|
-
var SectionHeaderComponent = /** @class */ (function (
|
|
2550
|
-
__extends(SectionHeaderComponent, _super);
|
|
2319
|
+
var SectionHeaderComponent = /** @class */ (function () {
|
|
2551
2320
|
function SectionHeaderComponent() {
|
|
2552
|
-
|
|
2553
|
-
// readonly i18n = I18nMarsUi.components.layout.header;
|
|
2554
|
-
_this.size = 'medium';
|
|
2555
|
-
_this.borderTop = false;
|
|
2556
|
-
_this.borderBottom = false;
|
|
2557
|
-
return _this;
|
|
2321
|
+
this.underline = false;
|
|
2558
2322
|
}
|
|
2559
2323
|
SectionHeaderComponent.prototype.ngOnInit = function () {
|
|
2560
2324
|
};
|
|
2561
2325
|
return SectionHeaderComponent;
|
|
2562
|
-
}(
|
|
2326
|
+
}());
|
|
2563
2327
|
SectionHeaderComponent.decorators = [
|
|
2564
2328
|
{ type: i0.Component, args: [{
|
|
2565
2329
|
selector: 'aup-section-header',
|
|
2566
|
-
template: "<
|
|
2567
|
-
styles: [":host{
|
|
2330
|
+
template: "<ng-content></ng-content>\n",
|
|
2331
|
+
styles: [":host{--def-border-bottom-color:var(--border-bottom-color,rgba(0,0,0,0.07));display:block;padding:8px 16px;font-size:12px;line-height:12px;color:rgba(0,0,0,.5)}:host.underline{border-bottom:1px solid var(--def-border-bottom-color)}"]
|
|
2568
2332
|
},] }
|
|
2569
2333
|
];
|
|
2570
2334
|
SectionHeaderComponent.ctorParameters = function () { return []; };
|
|
2571
2335
|
SectionHeaderComponent.propDecorators = {
|
|
2572
|
-
|
|
2573
|
-
borderTop: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-top',] }],
|
|
2574
|
-
borderBottom: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-bottom',] }]
|
|
2336
|
+
underline: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.underline',] }]
|
|
2575
2337
|
};
|
|
2576
2338
|
|
|
2577
2339
|
var SwitchCaseOption = /** @class */ (function () {
|
|
@@ -2692,7 +2454,7 @@
|
|
|
2692
2454
|
{ type: i0.Component, args: [{
|
|
2693
2455
|
selector: 'aup-switch-case',
|
|
2694
2456
|
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",
|
|
2695
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}
|
|
2457
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}"]
|
|
2696
2458
|
},] }
|
|
2697
2459
|
];
|
|
2698
2460
|
SwitchCaseComponent.ctorParameters = function () { return [
|
|
@@ -2774,7 +2536,7 @@
|
|
|
2774
2536
|
ResizeAwareComponent.prototype.ngAfterViewInit = function () {
|
|
2775
2537
|
var _this = this;
|
|
2776
2538
|
var element = this.elementRef.nativeElement;
|
|
2777
|
-
var ro = new ResizeObserver__default[
|
|
2539
|
+
var ro = new ResizeObserver__default['default'](function (entries, observer) {
|
|
2778
2540
|
_this.ngZone.run(function () { return _this._updateBounds(); });
|
|
2779
2541
|
});
|
|
2780
2542
|
ro.observe(element);
|
|
@@ -3004,7 +2766,7 @@
|
|
|
3004
2766
|
{ type: i0.Component, args: [{
|
|
3005
2767
|
selector: 'aup-row-editor-controls',
|
|
3006
2768
|
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",
|
|
3007
|
-
styles: [":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}
|
|
2769
|
+
styles: [":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}"]
|
|
3008
2770
|
},] }
|
|
3009
2771
|
];
|
|
3010
2772
|
EditRowControls.ctorParameters = function () { return []; };
|
|
@@ -3081,23 +2843,16 @@
|
|
|
3081
2843
|
};
|
|
3082
2844
|
var ɵ0 = noop;
|
|
3083
2845
|
var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol('aup-cell-renderer:row-data-cache');
|
|
3084
|
-
var
|
|
3085
|
-
var ɵ1 = DEFAULT_TEXT_SEARCH_PREDICATE;
|
|
3086
|
-
var ColumnModel = /** @class */ (function (_super) {
|
|
3087
|
-
__extends(ColumnModel, _super);
|
|
2846
|
+
var ColumnModel = /** @class */ (function () {
|
|
3088
2847
|
function ColumnModel(columnId, textPropertiesProvider) {
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
_this._cellRendererTextSearchPredicate = undefined;
|
|
3098
|
-
_this.installHeaderRenderer();
|
|
3099
|
-
_this.dasherisedColumnId = typescriptUtilities.Stringy.from(columnId).dasherize().toString();
|
|
3100
|
-
return _this;
|
|
2848
|
+
this.columnId = columnId;
|
|
2849
|
+
this.textPropertiesProvider = textPropertiesProvider;
|
|
2850
|
+
this._enableRowSelection = true;
|
|
2851
|
+
this._flex = false;
|
|
2852
|
+
this._defaultVisibility = new pectin.DelegatingValueModel().withDefault(true);
|
|
2853
|
+
this._visible = new pectin.DelegatingValueModel().withDefault(this._defaultVisibility);
|
|
2854
|
+
this.installHeaderRenderer();
|
|
2855
|
+
this.dasherisedColumnId = typescriptUtilities.Stringy.from(columnId).dasherize().toString();
|
|
3101
2856
|
}
|
|
3102
2857
|
ColumnModel.prototype.installHeaderRenderer = function () {
|
|
3103
2858
|
this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, function (component, column) {
|
|
@@ -3128,21 +2883,6 @@
|
|
|
3128
2883
|
ColumnModel.prototype.getDefaultHeaderText = function () {
|
|
3129
2884
|
return this.columnId;
|
|
3130
2885
|
};
|
|
3131
|
-
Object.defineProperty(ColumnModel.prototype, "isTextMatch", {
|
|
3132
|
-
get: function () {
|
|
3133
|
-
return this._columnModelTextSearchPredicate || this._cellRendererTextSearchPredicate || DEFAULT_TEXT_SEARCH_PREDICATE;
|
|
3134
|
-
},
|
|
3135
|
-
enumerable: false,
|
|
3136
|
-
configurable: true
|
|
3137
|
-
});
|
|
3138
|
-
/**
|
|
3139
|
-
* Sets the predicate to use when checking if the specified row is a text match for this column.
|
|
3140
|
-
* @param predicate
|
|
3141
|
-
*/
|
|
3142
|
-
ColumnModel.prototype.useTextSearchPredicate = function (predicate) {
|
|
3143
|
-
this._columnModelTextSearchPredicate = predicate;
|
|
3144
|
-
return this;
|
|
3145
|
-
};
|
|
3146
2886
|
ColumnModel.prototype.getColumnTextProperties = function () {
|
|
3147
2887
|
return this._columnTextProperties || this.textPropertiesProvider();
|
|
3148
2888
|
};
|
|
@@ -3194,12 +2934,6 @@
|
|
|
3194
2934
|
};
|
|
3195
2935
|
ColumnModel.prototype.onRendererAttached = function (host, component) {
|
|
3196
2936
|
this._cellRendererPortalRef.onPortalAttached(host, component);
|
|
3197
|
-
if (___default["default"].isFunction(component === null || component === void 0 ? void 0 : component.matches)) {
|
|
3198
|
-
this._cellRendererTextSearchPredicate = function (row, text) { return component.matches(row, text); };
|
|
3199
|
-
}
|
|
3200
|
-
else {
|
|
3201
|
-
this._cellRendererTextSearchPredicate = undefined;
|
|
3202
|
-
}
|
|
3203
2937
|
};
|
|
3204
2938
|
// @Trace()
|
|
3205
2939
|
ColumnModel.prototype.onEditorAttached = function (host, component) {
|
|
@@ -3216,7 +2950,7 @@
|
|
|
3216
2950
|
return this._enableRowSelection;
|
|
3217
2951
|
};
|
|
3218
2952
|
return ColumnModel;
|
|
3219
|
-
}(
|
|
2953
|
+
}());
|
|
3220
2954
|
__decorate([
|
|
3221
2955
|
src.Memoize(),
|
|
3222
2956
|
__metadata("design:type", Function),
|
|
@@ -3234,27 +2968,27 @@
|
|
|
3234
2968
|
function PropertyColumnModel(id, property, defaults) {
|
|
3235
2969
|
var _this = _super.call(this, id, defaults) || this;
|
|
3236
2970
|
_this.property = property;
|
|
3237
|
-
_this._format = function (value) { return value
|
|
2971
|
+
_this._format = function (value) { return value; };
|
|
3238
2972
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
3239
|
-
_this.useTextSearchPredicate(function (row, regex) {
|
|
3240
|
-
return regex.test(_this._format(row[_this.property]));
|
|
3241
|
-
});
|
|
3242
2973
|
return _this;
|
|
3243
2974
|
}
|
|
3244
2975
|
PropertyColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
|
|
3245
2976
|
var _this = this;
|
|
3246
2977
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3247
2978
|
if (firstTime) {
|
|
3248
|
-
if (___default[
|
|
2979
|
+
if (___default['default'].isFunction(onComponentInitOrOptions)) {
|
|
3249
2980
|
onComponentInitOrOptions(component);
|
|
3250
2981
|
}
|
|
3251
2982
|
else {
|
|
3252
|
-
if (___default[
|
|
2983
|
+
if (___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3253
2984
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3254
2985
|
}
|
|
3255
2986
|
}
|
|
3256
2987
|
}
|
|
3257
2988
|
component.value = _this._format(rowData.row[_this.property]);
|
|
2989
|
+
if (!___default['default'].isFunction(onComponentInitOrOptions) && ___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
2990
|
+
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
2991
|
+
}
|
|
3258
2992
|
}));
|
|
3259
2993
|
return this;
|
|
3260
2994
|
};
|
|
@@ -3274,7 +3008,7 @@
|
|
|
3274
3008
|
component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
|
|
3275
3009
|
var disableEditCallback = false;
|
|
3276
3010
|
if (firstTime) {
|
|
3277
|
-
if (___default[
|
|
3011
|
+
if (___default['default'].isFunction(options === null || options === void 0 ? void 0 : options.onComponentInit)) {
|
|
3278
3012
|
options.onComponentInit(component);
|
|
3279
3013
|
}
|
|
3280
3014
|
// install our edit callback
|
|
@@ -3289,7 +3023,7 @@
|
|
|
3289
3023
|
disableEditCallback = true;
|
|
3290
3024
|
component.value = rowData.row[_this.property];
|
|
3291
3025
|
disableEditCallback = false;
|
|
3292
|
-
if (!___default[
|
|
3026
|
+
if (!___default['default'].isFunction(options) && ___default['default'].isFunction(options === null || options === void 0 ? void 0 : options.onRowUpdate)) {
|
|
3293
3027
|
options.onRowUpdate(component, rowData.row);
|
|
3294
3028
|
}
|
|
3295
3029
|
}));
|
|
@@ -3298,7 +3032,7 @@
|
|
|
3298
3032
|
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, onComponentInit) {
|
|
3299
3033
|
var _this = this;
|
|
3300
3034
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3301
|
-
var initialiser = ___default[
|
|
3035
|
+
var initialiser = ___default['default'].isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
|
|
3302
3036
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3303
3037
|
var formValueModel = editSession.form.pluck(_this.property);
|
|
3304
3038
|
if (validators) {
|
|
@@ -3328,9 +3062,6 @@
|
|
|
3328
3062
|
_this.property = property;
|
|
3329
3063
|
_this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
|
|
3330
3064
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
3331
|
-
_this.useTextSearchPredicate(function (row, regex) {
|
|
3332
|
-
return regex.test(_this._format(row[_this.property]));
|
|
3333
|
-
});
|
|
3334
3065
|
return _this;
|
|
3335
3066
|
}
|
|
3336
3067
|
ListPropertyColumnModel.prototype.cellRenderer = function (componentType) {
|
|
@@ -3343,7 +3074,7 @@
|
|
|
3343
3074
|
ListPropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
|
|
3344
3075
|
var _this = this;
|
|
3345
3076
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3346
|
-
var initialiser = ___default[
|
|
3077
|
+
var initialiser = ___default['default'].isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3347
3078
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3348
3079
|
var formListModel = editSession.form.pluckList(_this.property);
|
|
3349
3080
|
if (validators) {
|
|
@@ -3378,17 +3109,17 @@
|
|
|
3378
3109
|
var _this = this;
|
|
3379
3110
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3380
3111
|
if (firstTime) {
|
|
3381
|
-
if (___default[
|
|
3112
|
+
if (___default['default'].isFunction(onComponentInitOrOptions)) {
|
|
3382
3113
|
onComponentInitOrOptions(component);
|
|
3383
3114
|
}
|
|
3384
3115
|
else {
|
|
3385
|
-
if (___default[
|
|
3116
|
+
if (___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3386
3117
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3387
3118
|
}
|
|
3388
3119
|
}
|
|
3389
3120
|
}
|
|
3390
3121
|
component.value = _this.getValue(rowData.row);
|
|
3391
|
-
if (!___default[
|
|
3122
|
+
if (!___default['default'].isFunction(onComponentInitOrOptions) && ___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
3392
3123
|
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
3393
3124
|
}
|
|
3394
3125
|
}));
|
|
@@ -3766,7 +3497,7 @@
|
|
|
3766
3497
|
{ type: i0.Component, args: [{
|
|
3767
3498
|
selector: 'aup-table-header-cell-renderer',
|
|
3768
3499
|
template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event.instance)\"></ng-container>\n",
|
|
3769
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}
|
|
3500
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}"]
|
|
3770
3501
|
},] }
|
|
3771
3502
|
];
|
|
3772
3503
|
TableHeaderCellRendererComponent.ctorParameters = function () { return []; };
|
|
@@ -3799,6 +3530,8 @@
|
|
|
3799
3530
|
TableRowMenuComponent.prototype.registerMoreAction = function (commandFactory, properties) {
|
|
3800
3531
|
this.moreActions.push(new MenuItemData(commandFactory, properties));
|
|
3801
3532
|
};
|
|
3533
|
+
TableRowMenuComponent.prototype.ngOnInit = function () {
|
|
3534
|
+
};
|
|
3802
3535
|
TableRowMenuComponent.prototype.createMoreMenuCommand = function (item, value) {
|
|
3803
3536
|
var _this = this;
|
|
3804
3537
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
@@ -3885,7 +3618,7 @@
|
|
|
3885
3618
|
// if (!this._liveRowValue.value[immerable]) {
|
|
3886
3619
|
// console.warn()
|
|
3887
3620
|
// }
|
|
3888
|
-
_this._liveRowValue.value = produce__default[
|
|
3621
|
+
_this._liveRowValue.value = produce__default['default'](_this._liveRowValue.value, function (draft) {
|
|
3889
3622
|
_this.form.writeDirtyStateTo(draft);
|
|
3890
3623
|
});
|
|
3891
3624
|
});
|
|
@@ -3907,7 +3640,7 @@
|
|
|
3907
3640
|
__extends(AbstractTableModel, _super);
|
|
3908
3641
|
function AbstractTableModel() {
|
|
3909
3642
|
var _this = _super.call(this) || this;
|
|
3910
|
-
_this._dataSource =
|
|
3643
|
+
_this._dataSource = new pectin.DelegatingListModel();
|
|
3911
3644
|
_this._columnList = _this.registerDisposable(new ColumnListModel());
|
|
3912
3645
|
_this._editorSessions = new pectin.MutableListModel();
|
|
3913
3646
|
_this.rowClassNamePredicates = [];
|
|
@@ -3929,12 +3662,6 @@
|
|
|
3929
3662
|
_this.rowSelectionDisabledOnAllColumns = chain(_this._columnList).select(function (column) { return column.isRowSelectionEnabled(); }).count().equals(0);
|
|
3930
3663
|
return _this;
|
|
3931
3664
|
}
|
|
3932
|
-
AbstractTableModel.prototype.findMatchingColumns = function (row, regex) {
|
|
3933
|
-
return this.columns.value.filter(function (c) { return c.isTextMatch(row, regex); });
|
|
3934
|
-
};
|
|
3935
|
-
AbstractTableModel.prototype.hasMatchingColumn = function (row, regex) {
|
|
3936
|
-
return !!this.columns.value.find(function (c) { return c.isTextMatch(row, regex); });
|
|
3937
|
-
};
|
|
3938
3665
|
AbstractTableModel.prototype.setDataSource = function (sourceOfTruth) {
|
|
3939
3666
|
this._dataSource.setDelegate(sourceOfTruth);
|
|
3940
3667
|
};
|
|
@@ -4065,16 +3792,12 @@
|
|
|
4065
3792
|
return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
|
|
4066
3793
|
};
|
|
4067
3794
|
AbstractTableModel.prototype.isRowSelectionEnabled = function () {
|
|
4068
|
-
return this.
|
|
3795
|
+
return this.hasSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
|
|
4069
3796
|
};
|
|
4070
|
-
AbstractTableModel.prototype.
|
|
3797
|
+
AbstractTableModel.prototype.hasSelectionModel = function () {
|
|
4071
3798
|
var _a;
|
|
4072
3799
|
return !!((_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate());
|
|
4073
3800
|
};
|
|
4074
|
-
AbstractTableModel.prototype.getSelectionModel = function () {
|
|
4075
|
-
var _a;
|
|
4076
|
-
return (_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel;
|
|
4077
|
-
};
|
|
4078
3801
|
AbstractTableModel.prototype.isHoverEnabled = function () {
|
|
4079
3802
|
return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;
|
|
4080
3803
|
};
|
|
@@ -4174,7 +3897,7 @@
|
|
|
4174
3897
|
providers: [
|
|
4175
3898
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
4176
3899
|
],
|
|
4177
|
-
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}
|
|
3900
|
+
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}"]
|
|
4178
3901
|
},] }
|
|
4179
3902
|
];
|
|
4180
3903
|
TableComponent.ctorParameters = function () { return [
|
|
@@ -4227,7 +3950,7 @@
|
|
|
4227
3950
|
{ type: i0.Component, args: [{
|
|
4228
3951
|
selector: 'aup-tree-inheritance-icon',
|
|
4229
3952
|
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",
|
|
4230
|
-
styles: [":host{position:relative;color:inherit}svg{color:var(--line-color);display:block}
|
|
3953
|
+
styles: [":host{position:relative;color:inherit}svg{color:var(--line-color);display:block}"]
|
|
4231
3954
|
},] }
|
|
4232
3955
|
];
|
|
4233
3956
|
exports.TreeInheritanceIconComponent.ctorParameters = function () { return []; };
|
|
@@ -4469,17 +4192,17 @@
|
|
|
4469
4192
|
var _this = this;
|
|
4470
4193
|
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
4471
4194
|
this.canExpand = chain(this.nodeModel).map(function (node) {
|
|
4472
|
-
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && _this.
|
|
4473
|
-
}, { dependsOn: this.
|
|
4195
|
+
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && _this.expansionModel.isCollapsed(node);
|
|
4196
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4474
4197
|
this.canCollapse = chain(this.nodeModel).map(function (node) {
|
|
4475
|
-
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && !_this.
|
|
4476
|
-
}, { dependsOn: this.
|
|
4198
|
+
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && !_this.expansionModel.isCollapsed(node);
|
|
4199
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4477
4200
|
this.iconModel = chain(this.nodeModel).map(function (node) {
|
|
4478
4201
|
var _a;
|
|
4479
|
-
var expanded = _this.
|
|
4202
|
+
var expanded = _this.expansionModel.isExpanded(_this.node);
|
|
4480
4203
|
var iconFactory = (_a = _this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
|
|
4481
4204
|
return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
|
|
4482
|
-
}, { dependsOn: this.
|
|
4205
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4483
4206
|
};
|
|
4484
4207
|
Object.defineProperty(TreeLabelCellRendererComponent.prototype, "isRoot", {
|
|
4485
4208
|
get: function () {
|
|
@@ -4503,18 +4226,16 @@
|
|
|
4503
4226
|
configurable: true
|
|
4504
4227
|
});
|
|
4505
4228
|
// @Trace()
|
|
4506
|
-
TreeLabelCellRendererComponent.prototype.expandOrCollapse = function (
|
|
4507
|
-
|
|
4508
|
-
$event.stopPropagation();
|
|
4509
|
-
this.treeTableModel.isCollapsed(node) ? this.treeTableModel.expand(node) : this.treeTableModel.collapse(node);
|
|
4229
|
+
TreeLabelCellRendererComponent.prototype.expandOrCollapse = function (node) {
|
|
4230
|
+
this.expansionModel.isCollapsed(node) ? this.expansionModel.expand(node) : this.expansionModel.collapse(node);
|
|
4510
4231
|
};
|
|
4511
4232
|
return TreeLabelCellRendererComponent;
|
|
4512
4233
|
}(DisposableComponent));
|
|
4513
4234
|
exports.TreeLabelCellRendererComponent.decorators = [
|
|
4514
4235
|
{ type: i0.Component, args: [{
|
|
4515
4236
|
selector: 'aup-tree-label-cell-renderer',
|
|
4516
|
-
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(
|
|
4517
|
-
styles: [":host{--line-color
|
|
4237
|
+
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",
|
|
4238
|
+
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-icon,:host div.tree-icons aup-tree-inheritance-icon{margin-left:4px}"]
|
|
4518
4239
|
},] }
|
|
4519
4240
|
];
|
|
4520
4241
|
exports.TreeLabelCellRendererComponent.ctorParameters = function () { return []; };
|
|
@@ -4522,7 +4243,7 @@
|
|
|
4522
4243
|
value: [{ type: i0.Input }],
|
|
4523
4244
|
label: [{ type: i0.Input }],
|
|
4524
4245
|
iconFactory: [{ type: i0.Input }],
|
|
4525
|
-
|
|
4246
|
+
expansionModel: [{ type: i0.Input }],
|
|
4526
4247
|
isRoot: [{ type: i0.HostBinding, args: ['class.root',] }],
|
|
4527
4248
|
isLeaf: [{ type: i0.HostBinding, args: ['class.leaf',] }]
|
|
4528
4249
|
};
|
|
@@ -4531,29 +4252,22 @@
|
|
|
4531
4252
|
__metadata("design:type", Object)
|
|
4532
4253
|
], exports.TreeLabelCellRendererComponent.prototype, "value", void 0);
|
|
4533
4254
|
(function (TreeLabelCellRendererComponent) {
|
|
4534
|
-
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) {
|
|
4535
|
-
var isLeaf = exports.DecoratedTreeNode.getDecorator(node).isLeaf();
|
|
4536
|
-
return isLeaf ?
|
|
4537
|
-
undefined :
|
|
4538
|
-
expanded ?
|
|
4539
|
-
'mat:expand_more' :
|
|
4540
|
-
'mat:chevron_right';
|
|
4541
|
-
};
|
|
4255
|
+
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) { return expanded ? 'mat:expand_more' : 'mat:chevron_right'; };
|
|
4542
4256
|
})(exports.TreeLabelCellRendererComponent || (exports.TreeLabelCellRendererComponent = {}));
|
|
4543
4257
|
|
|
4544
4258
|
var FlattenedTreeListModel = /** @class */ (function (_super) {
|
|
4545
4259
|
__extends(FlattenedTreeListModel, _super);
|
|
4546
4260
|
function FlattenedTreeListModel(source, childRef, expansionModel) {
|
|
4547
|
-
var _this = _super.call(this, source
|
|
4548
|
-
initialValue: [],
|
|
4549
|
-
identifiedWith: function (row) { return source.identityOf(row); }
|
|
4550
|
-
}) || this;
|
|
4261
|
+
var _this = _super.call(this, source) || this;
|
|
4551
4262
|
_this.source = source;
|
|
4552
4263
|
_this.childRef = childRef;
|
|
4553
4264
|
_this.expansionModel = expansionModel;
|
|
4554
4265
|
_this.trackSource(expansionModel.isExpandedPredicate);
|
|
4555
4266
|
return _this;
|
|
4556
4267
|
}
|
|
4268
|
+
FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
|
|
4269
|
+
return this.source.identityOf(item);
|
|
4270
|
+
};
|
|
4557
4271
|
FlattenedTreeListModel.prototype.compute = function (values) {
|
|
4558
4272
|
var _this = this;
|
|
4559
4273
|
var result = [];
|
|
@@ -4652,10 +4366,10 @@
|
|
|
4652
4366
|
var _this = this;
|
|
4653
4367
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
4654
4368
|
if (firstTime) {
|
|
4655
|
-
component.
|
|
4369
|
+
component.expansionModel = _this.expansionModel;
|
|
4656
4370
|
}
|
|
4657
4371
|
component.value = rowData.row;
|
|
4658
|
-
component.label = ___default[
|
|
4372
|
+
component.label = ___default['default'].isNil(_this.labelProperty) ? undefined : rowData.row[_this.labelProperty];
|
|
4659
4373
|
component.iconFactory = _this.iconFactory;
|
|
4660
4374
|
}));
|
|
4661
4375
|
return this;
|
|
@@ -4686,13 +4400,12 @@
|
|
|
4686
4400
|
var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
|
|
4687
4401
|
_this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
|
|
4688
4402
|
_this.setDataSource(_this.flattenedDataSource);
|
|
4689
|
-
_this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
|
|
4690
4403
|
return _this;
|
|
4691
4404
|
}
|
|
4692
4405
|
TreeTableModel.prototype.treeControlColumn = function (builder) {
|
|
4693
4406
|
var _this = this;
|
|
4694
4407
|
var columnId = 'tree-label';
|
|
4695
|
-
var column = new TreeLabelColumnModel(columnId, function () { return _this.getColumnTextProperties(columnId); }, this);
|
|
4408
|
+
var column = new TreeLabelColumnModel(columnId, function () { return _this.getColumnTextProperties(columnId); }, this.treeExpansionModel);
|
|
4696
4409
|
builder(column);
|
|
4697
4410
|
this.addColumn(column);
|
|
4698
4411
|
};
|
|
@@ -4700,7 +4413,7 @@
|
|
|
4700
4413
|
this.treeExpansionModel.expand(node);
|
|
4701
4414
|
};
|
|
4702
4415
|
TreeTableModel.prototype.collapse = function (node) {
|
|
4703
|
-
this.treeExpansionModel.
|
|
4416
|
+
this.treeExpansionModel.expand(node);
|
|
4704
4417
|
};
|
|
4705
4418
|
TreeTableModel.prototype.isCollapsed = function (node) {
|
|
4706
4419
|
return this.treeExpansionModel.isCollapsed(node);
|
|
@@ -4836,7 +4549,7 @@
|
|
|
4836
4549
|
providers: [
|
|
4837
4550
|
{ provide: AbstractTableComponent, useExisting: TreeTableComponent }
|
|
4838
4551
|
],
|
|
4839
|
-
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}
|
|
4552
|
+
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}"]
|
|
4840
4553
|
},] }
|
|
4841
4554
|
];
|
|
4842
4555
|
TreeTableComponent.ctorParameters = function () { return [
|
|
@@ -4893,7 +4606,7 @@
|
|
|
4893
4606
|
providers: [
|
|
4894
4607
|
{ provide: pectin.FocusManager }
|
|
4895
4608
|
],
|
|
4896
|
-
styles: [":host{display:block}
|
|
4609
|
+
styles: [":host{display:block}"]
|
|
4897
4610
|
},] }
|
|
4898
4611
|
];
|
|
4899
4612
|
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
@@ -4957,7 +4670,7 @@
|
|
|
4957
4670
|
{ type: i0.Component, args: [{
|
|
4958
4671
|
selector: 'aup-paginator',
|
|
4959
4672
|
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",
|
|
4960
|
-
styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color
|
|
4673
|
+
styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:rgba(0,0,0,.6)}:host p{color:inherit;margin-right:8px}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}"]
|
|
4961
4674
|
},] }
|
|
4962
4675
|
];
|
|
4963
4676
|
PaginatorComponent.ctorParameters = function () { return []; };
|
|
@@ -4969,28 +4682,6 @@
|
|
|
4969
4682
|
__metadata("design:type", pectin.PageController)
|
|
4970
4683
|
], PaginatorComponent.prototype, "pageController", void 0);
|
|
4971
4684
|
|
|
4972
|
-
var LabelledValueComponent = /** @class */ (function (_super) {
|
|
4973
|
-
__extends(LabelledValueComponent, _super);
|
|
4974
|
-
function LabelledValueComponent() {
|
|
4975
|
-
return _super.call(this) || this;
|
|
4976
|
-
// const {chain} = Dsl.disposeWith(this);
|
|
4977
|
-
}
|
|
4978
|
-
LabelledValueComponent.prototype.ngOnInit = function () {
|
|
4979
|
-
};
|
|
4980
|
-
return LabelledValueComponent;
|
|
4981
|
-
}(DisposableComponent));
|
|
4982
|
-
LabelledValueComponent.decorators = [
|
|
4983
|
-
{ type: i0.Component, args: [{
|
|
4984
|
-
selector: 'aup-labelled-value',
|
|
4985
|
-
template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
|
|
4986
|
-
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"]
|
|
4987
|
-
},] }
|
|
4988
|
-
];
|
|
4989
|
-
LabelledValueComponent.ctorParameters = function () { return []; };
|
|
4990
|
-
LabelledValueComponent.propDecorators = {
|
|
4991
|
-
label: [{ type: i0.Input }]
|
|
4992
|
-
};
|
|
4993
|
-
|
|
4994
4685
|
var ComponentsModule = /** @class */ (function () {
|
|
4995
4686
|
function ComponentsModule(faIconLibrary) {
|
|
4996
4687
|
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
@@ -4999,29 +4690,6 @@
|
|
|
4999
4690
|
}());
|
|
5000
4691
|
ComponentsModule.decorators = [
|
|
5001
4692
|
{ type: i0.NgModule, args: [{
|
|
5002
|
-
imports: [
|
|
5003
|
-
i2.CommonModule,
|
|
5004
|
-
animations.BrowserAnimationsModule,
|
|
5005
|
-
forms.FormsModule,
|
|
5006
|
-
input.MatInputModule,
|
|
5007
|
-
formField.MatFormFieldModule,
|
|
5008
|
-
select.MatSelectModule,
|
|
5009
|
-
tabs.MatTabsModule,
|
|
5010
|
-
DirectivesModule,
|
|
5011
|
-
icon.MatIconModule,
|
|
5012
|
-
button.MatButtonModule,
|
|
5013
|
-
checkbox.MatCheckboxModule,
|
|
5014
|
-
table.MatTableModule,
|
|
5015
|
-
portal.PortalModule,
|
|
5016
|
-
scrolling.CdkScrollableModule,
|
|
5017
|
-
angularFontawesome.FontAwesomeModule,
|
|
5018
|
-
tooltip.MatTooltipModule,
|
|
5019
|
-
autocomplete.MatAutocompleteModule,
|
|
5020
|
-
menu.MatMenuModule,
|
|
5021
|
-
divider.MatDividerModule,
|
|
5022
|
-
progressSpinner.MatProgressSpinnerModule,
|
|
5023
|
-
progressBar.MatProgressBarModule
|
|
5024
|
-
],
|
|
5025
4693
|
declarations: [
|
|
5026
4694
|
AbstractInputComponent,
|
|
5027
4695
|
AbstractValueInputComponent,
|
|
@@ -5070,11 +4738,29 @@
|
|
|
5070
4738
|
BusyOverlayComponent,
|
|
5071
4739
|
EmptyStateComponent,
|
|
5072
4740
|
PaginatorComponent,
|
|
5073
|
-
AbstractTableComponent
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
4741
|
+
AbstractTableComponent
|
|
4742
|
+
],
|
|
4743
|
+
imports: [
|
|
4744
|
+
i2.CommonModule,
|
|
4745
|
+
animations.BrowserAnimationsModule,
|
|
4746
|
+
forms.FormsModule,
|
|
4747
|
+
input.MatInputModule,
|
|
4748
|
+
formField.MatFormFieldModule,
|
|
4749
|
+
select.MatSelectModule,
|
|
4750
|
+
tabs.MatTabsModule,
|
|
4751
|
+
DirectivesModule,
|
|
4752
|
+
icon.MatIconModule,
|
|
4753
|
+
button.MatButtonModule,
|
|
4754
|
+
checkbox.MatCheckboxModule,
|
|
4755
|
+
table.MatTableModule,
|
|
4756
|
+
portal.PortalModule,
|
|
4757
|
+
scrolling.CdkScrollableModule,
|
|
4758
|
+
angularFontawesome.FontAwesomeModule,
|
|
4759
|
+
tooltip.MatTooltipModule,
|
|
4760
|
+
autocomplete.MatAutocompleteModule,
|
|
4761
|
+
menu.MatMenuModule,
|
|
4762
|
+
divider.MatDividerModule,
|
|
4763
|
+
progressSpinner.MatProgressSpinnerModule
|
|
5078
4764
|
],
|
|
5079
4765
|
exports: [
|
|
5080
4766
|
NumberInputComponent,
|
|
@@ -5111,9 +4797,6 @@
|
|
|
5111
4797
|
BusyOverlayComponent,
|
|
5112
4798
|
EmptyStateComponent,
|
|
5113
4799
|
PaginatorComponent,
|
|
5114
|
-
CardStackComponent,
|
|
5115
|
-
LabelledValueComponent,
|
|
5116
|
-
LoadingContainerComponent,
|
|
5117
4800
|
],
|
|
5118
4801
|
providers: [
|
|
5119
4802
|
FocusBindingFactory
|
|
@@ -5145,13 +4828,12 @@
|
|
|
5145
4828
|
* <span>This content will be between the two commands</span>
|
|
5146
4829
|
* </aup-activity-actions>
|
|
5147
4830
|
*/
|
|
5148
|
-
|
|
4831
|
+
var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
5149
4832
|
__extends(ActivityActionsComponent, _super);
|
|
5150
4833
|
function ActivityActionsComponent(cdr) {
|
|
5151
4834
|
var _this = _super.call(this) || this;
|
|
5152
4835
|
_this.cdr = cdr;
|
|
5153
|
-
_this.
|
|
5154
|
-
_this.align = ActivityActionsComponent.Align.STRETCH;
|
|
4836
|
+
_this.align = 'stretch';
|
|
5155
4837
|
return _this;
|
|
5156
4838
|
}
|
|
5157
4839
|
Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
|
|
@@ -5172,6 +4854,20 @@
|
|
|
5172
4854
|
enumerable: false,
|
|
5173
4855
|
configurable: true
|
|
5174
4856
|
});
|
|
4857
|
+
Object.defineProperty(ActivityActionsComponent.prototype, "alignEnd", {
|
|
4858
|
+
get: function () {
|
|
4859
|
+
return this.align === 'end';
|
|
4860
|
+
},
|
|
4861
|
+
enumerable: false,
|
|
4862
|
+
configurable: true
|
|
4863
|
+
});
|
|
4864
|
+
Object.defineProperty(ActivityActionsComponent.prototype, "alignStretch", {
|
|
4865
|
+
get: function () {
|
|
4866
|
+
return this.align === 'stretch';
|
|
4867
|
+
},
|
|
4868
|
+
enumerable: false,
|
|
4869
|
+
configurable: true
|
|
4870
|
+
});
|
|
5175
4871
|
ActivityActionsComponent.prototype.ngOnInit = function () {
|
|
5176
4872
|
};
|
|
5177
4873
|
ActivityActionsComponent.prototype.hasConfirmFace = function () {
|
|
@@ -5187,52 +4883,42 @@
|
|
|
5187
4883
|
};
|
|
5188
4884
|
return ActivityActionsComponent;
|
|
5189
4885
|
}(DisposableComponent));
|
|
5190
|
-
|
|
4886
|
+
ActivityActionsComponent.decorators = [
|
|
5191
4887
|
{ type: i0.Component, args: [{
|
|
5192
4888
|
selector: 'aup-activity-actions',
|
|
5193
4889
|
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",
|
|
5194
|
-
styles: [":host{display:grid;grid-template-
|
|
4890
|
+
styles: [":host{display:grid;grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}"]
|
|
5195
4891
|
},] }
|
|
5196
4892
|
];
|
|
5197
|
-
|
|
4893
|
+
ActivityActionsComponent.ctorParameters = function () { return [
|
|
5198
4894
|
{ type: i0.ChangeDetectorRef }
|
|
5199
4895
|
]; };
|
|
5200
|
-
|
|
4896
|
+
ActivityActionsComponent.propDecorators = {
|
|
5201
4897
|
confirmCommand: [{ type: i0.Input }],
|
|
5202
4898
|
cancelCommand: [{ type: i0.Input }],
|
|
5203
4899
|
faces: [{ type: i0.Input }],
|
|
5204
4900
|
confirmFace: [{ type: i0.Input }],
|
|
5205
4901
|
cancelFace: [{ type: i0.Input }],
|
|
5206
4902
|
style: [{ type: i0.Input }],
|
|
5207
|
-
|
|
5208
|
-
|
|
4903
|
+
align: [{ type: i0.Input }],
|
|
4904
|
+
alignEnd: [{ type: i0.HostBinding, args: ['class.align-end',] }],
|
|
4905
|
+
alignStretch: [{ type: i0.HostBinding, args: ['class.align-stretch',] }]
|
|
5209
4906
|
};
|
|
5210
4907
|
__decorate([
|
|
5211
4908
|
pectin.TrackExternal(),
|
|
5212
4909
|
__metadata("design:type", pectin.Command)
|
|
5213
|
-
],
|
|
4910
|
+
], ActivityActionsComponent.prototype, "confirmCommand", void 0);
|
|
5214
4911
|
__decorate([
|
|
5215
4912
|
pectin.TrackExternal(),
|
|
5216
4913
|
__metadata("design:type", pectin.Command)
|
|
5217
|
-
],
|
|
5218
|
-
(function (ActivityActionsComponent) {
|
|
5219
|
-
ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
|
|
5220
|
-
INLINE: 'inline',
|
|
5221
|
-
BLOCK: 'block'
|
|
5222
|
-
});
|
|
5223
|
-
ActivityActionsComponent.Align = typescriptStringEnums.Enum({
|
|
5224
|
-
START: 'start',
|
|
5225
|
-
END: 'end',
|
|
5226
|
-
STRETCH: 'stretch'
|
|
5227
|
-
});
|
|
5228
|
-
})(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
|
|
4914
|
+
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
5229
4915
|
|
|
5230
4916
|
var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
|
|
5231
4917
|
var Activity = /** @class */ (function (_super) {
|
|
5232
4918
|
__extends(Activity, _super);
|
|
5233
4919
|
function Activity() {
|
|
5234
4920
|
var _this = _super.call(this) || this;
|
|
5235
|
-
_this._busyModel =
|
|
4921
|
+
_this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
|
|
5236
4922
|
_this._focusedModel = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
5237
4923
|
_this.class = 'aup-activity';
|
|
5238
4924
|
return _this;
|
|
@@ -5308,7 +4994,7 @@
|
|
|
5308
4994
|
];
|
|
5309
4995
|
Activity.ctorParameters = function () { return []; };
|
|
5310
4996
|
Activity.propDecorators = {
|
|
5311
|
-
activityActions: [{ type: i0.ViewChild, args: [
|
|
4997
|
+
activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
|
|
5312
4998
|
class: [{ type: i0.HostBinding, args: ['class',] }],
|
|
5313
4999
|
isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
|
|
5314
5000
|
};
|
|
@@ -5344,7 +5030,7 @@
|
|
|
5344
5030
|
{ type: i0.Component, args: [{
|
|
5345
5031
|
selector: 'aup-alert-dialog',
|
|
5346
5032
|
template: "<aup-activity-title *ngIf=\"alert.title\">{{alert.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n",
|
|
5347
|
-
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}
|
|
5033
|
+
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}"]
|
|
5348
5034
|
},] }
|
|
5349
5035
|
];
|
|
5350
5036
|
AlertDialogComponent.ctorParameters = function () { return [
|
|
@@ -5400,7 +5086,7 @@
|
|
|
5400
5086
|
{ type: i0.Component, args: [{
|
|
5401
5087
|
selector: 'aup-confirmation-dialog',
|
|
5402
5088
|
template: "<aup-activity-title *ngIf=\"confirm.title\" [color]=\"titleColor\">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
|
|
5403
|
-
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}
|
|
5089
|
+
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}"]
|
|
5404
5090
|
},] }
|
|
5405
5091
|
];
|
|
5406
5092
|
ConfirmThenDialogComponent.ctorParameters = function () { return [
|
|
@@ -5447,7 +5133,7 @@
|
|
|
5447
5133
|
{ type: i0.Component, args: [{
|
|
5448
5134
|
selector: 'aup-confirmation-dialog',
|
|
5449
5135
|
template: "<aup-activity-title *ngIf=\"confirm.title\" [color]=\"titleColor\">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n",
|
|
5450
|
-
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}
|
|
5136
|
+
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}"]
|
|
5451
5137
|
},] }
|
|
5452
5138
|
];
|
|
5453
5139
|
ConfirmationDialogComponent.ctorParameters = function () { return [
|
|
@@ -5618,7 +5304,7 @@
|
|
|
5618
5304
|
{ type: i0.Component, args: [{
|
|
5619
5305
|
selector: 'aup-activity-outlet',
|
|
5620
5306
|
template: '',
|
|
5621
|
-
styles: [":host{display:block}
|
|
5307
|
+
styles: [":host{display:block}"]
|
|
5622
5308
|
},] }
|
|
5623
5309
|
];
|
|
5624
5310
|
ActivityOutletComponent.ctorParameters = function () { return [
|
|
@@ -5639,7 +5325,7 @@
|
|
|
5639
5325
|
_this.activityRefs = [];
|
|
5640
5326
|
_this.garbage = new pectin.GarbageCollector();
|
|
5641
5327
|
_this.inAnimation = new pectin.MutableValueModel(false);
|
|
5642
|
-
_this.busy =
|
|
5328
|
+
_this.busy = new pectin.DelegatingValueModel().withDefault(false);
|
|
5643
5329
|
_this.registerDisposable(_this.busy);
|
|
5644
5330
|
return _this;
|
|
5645
5331
|
}
|
|
@@ -5689,7 +5375,7 @@
|
|
|
5689
5375
|
if (!this.isActive()) {
|
|
5690
5376
|
typescriptUtilities.lang.illegalState('no activity in progress');
|
|
5691
5377
|
}
|
|
5692
|
-
return ___default[
|
|
5378
|
+
return ___default['default'].findLast(this.activityRefs, function (tab) { return !tab.isComplete(); });
|
|
5693
5379
|
};
|
|
5694
5380
|
/**
|
|
5695
5381
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
@@ -5832,8 +5518,8 @@
|
|
|
5832
5518
|
ActivityContainerComponent.decorators = [
|
|
5833
5519
|
{ type: i0.Component, args: [{
|
|
5834
5520
|
selector: 'aup-activity-container',
|
|
5835
|
-
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\"
|
|
5836
|
-
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}
|
|
5521
|
+
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",
|
|
5522
|
+
styles: [":host{display:flex;flex-direction:column}aup-busy-overlay,mat-tab-group{flex:1}"]
|
|
5837
5523
|
},] }
|
|
5838
5524
|
];
|
|
5839
5525
|
ActivityContainerComponent.ctorParameters = function () { return []; };
|
|
@@ -5872,7 +5558,7 @@
|
|
|
5872
5558
|
}
|
|
5873
5559
|
Object.defineProperty(ActivityTitleComponent.prototype, "hasTransparentBackground", {
|
|
5874
5560
|
get: function () {
|
|
5875
|
-
return ___default[
|
|
5561
|
+
return ___default['default'].isNil(this._hasUserTransparentBackground) ? !this._color : this._hasUserTransparentBackground;
|
|
5876
5562
|
},
|
|
5877
5563
|
/**
|
|
5878
5564
|
* Adjusts layout to ensure the title and body are cleanly separated with even
|
|
@@ -5902,7 +5588,7 @@
|
|
|
5902
5588
|
{ type: i0.Component, args: [{
|
|
5903
5589
|
selector: 'aup-activity-title',
|
|
5904
5590
|
template: "<ng-content></ng-content>\n",
|
|
5905
|
-
styles: [":host{display:block}
|
|
5591
|
+
styles: [":host{display:block}"]
|
|
5906
5592
|
},] }
|
|
5907
5593
|
];
|
|
5908
5594
|
ActivityTitleComponent.propDecorators = {
|
|
@@ -5929,13 +5615,6 @@
|
|
|
5929
5615
|
});
|
|
5930
5616
|
return _this;
|
|
5931
5617
|
}
|
|
5932
|
-
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
|
|
5933
|
-
get: function () {
|
|
5934
|
-
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
5935
|
-
},
|
|
5936
|
-
enumerable: false,
|
|
5937
|
-
configurable: true
|
|
5938
|
-
});
|
|
5939
5618
|
AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
|
|
5940
5619
|
};
|
|
5941
5620
|
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
|
|
@@ -6113,7 +5792,7 @@
|
|
|
6113
5792
|
function ContextRegistry() {
|
|
6114
5793
|
var _this = _super.call(this) || this;
|
|
6115
5794
|
_this._interactions = new pectin.MutableListModel();
|
|
6116
|
-
_this._disabledDelegate =
|
|
5795
|
+
_this._disabledDelegate = new pectin.DelegatingValueModel().withDefault(false);
|
|
6117
5796
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
6118
5797
|
_this.active = chain(_this._interactions).isNotEmpty();
|
|
6119
5798
|
_this.interactionContextIds = chain(_this._interactions).pluck("identifier");
|
|
@@ -6177,23 +5856,16 @@
|
|
|
6177
5856
|
__extends(ModalActivityTriggerComponent, _super);
|
|
6178
5857
|
function ModalActivityTriggerComponent(interactionService) {
|
|
6179
5858
|
var _this = _super.call(this) || this;
|
|
6180
|
-
_this.
|
|
5859
|
+
_this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6181
5860
|
return _this;
|
|
6182
5861
|
}
|
|
6183
|
-
Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
|
|
6184
|
-
get: function () {
|
|
6185
|
-
return this._interactionContext;
|
|
6186
|
-
},
|
|
6187
|
-
enumerable: false,
|
|
6188
|
-
configurable: true
|
|
6189
|
-
});
|
|
6190
5862
|
return ModalActivityTriggerComponent;
|
|
6191
5863
|
}(AbstractActivityTriggerComponent));
|
|
6192
5864
|
ModalActivityTriggerComponent.decorators = [
|
|
6193
5865
|
{ type: i0.Component, args: [{
|
|
6194
5866
|
selector: 'aup-modal-activity-trigger',
|
|
6195
5867
|
template: "<aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n",
|
|
6196
|
-
styles: [":host{display:inline-block}
|
|
5868
|
+
styles: [":host{display:inline-block}"]
|
|
6197
5869
|
},] }
|
|
6198
5870
|
];
|
|
6199
5871
|
ModalActivityTriggerComponent.ctorParameters = function () { return [
|
|
@@ -6232,13 +5904,6 @@
|
|
|
6232
5904
|
enumerable: false,
|
|
6233
5905
|
configurable: true
|
|
6234
5906
|
});
|
|
6235
|
-
Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
|
|
6236
|
-
get: function () {
|
|
6237
|
-
return this.isActive();
|
|
6238
|
-
},
|
|
6239
|
-
enumerable: false,
|
|
6240
|
-
configurable: true
|
|
6241
|
-
});
|
|
6242
5907
|
InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
|
|
6243
5908
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
6244
5909
|
};
|
|
@@ -6279,7 +5944,7 @@
|
|
|
6279
5944
|
{ type: i0.Component, args: [{
|
|
6280
5945
|
selector: 'aup-in-place-interaction-context',
|
|
6281
5946
|
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",
|
|
6282
|
-
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}
|
|
5947
|
+
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
6283
5948
|
},] }
|
|
6284
5949
|
];
|
|
6285
5950
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6288,96 +5953,9 @@
|
|
|
6288
5953
|
]; };
|
|
6289
5954
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
6290
5955
|
activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
|
|
6291
|
-
animateFirstActivity: [{ type: i0.Input }]
|
|
6292
|
-
active: [{ type: i0.HostBinding, args: ["class.active",] }]
|
|
5956
|
+
animateFirstActivity: [{ type: i0.Input }]
|
|
6293
5957
|
};
|
|
6294
5958
|
|
|
6295
|
-
/**
|
|
6296
|
-
*
|
|
6297
|
-
*/
|
|
6298
|
-
exports.AddCardActivityComponent = /** @class */ (function (_super) {
|
|
6299
|
-
__extends(AddCardActivityComponent, _super);
|
|
6300
|
-
function AddCardActivityComponent(interactionService) {
|
|
6301
|
-
var _this = _super.call(this) || this;
|
|
6302
|
-
_this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
|
|
6303
|
-
_this.renderAs = AddCardActivityComponent.RenderAs.CARD;
|
|
6304
|
-
_this.notCard = true;
|
|
6305
|
-
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
6306
|
-
_this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6307
|
-
_this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
|
|
6308
|
-
return _this;
|
|
6309
|
-
}
|
|
6310
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
|
|
6311
|
-
get: function () {
|
|
6312
|
-
return "render-as-" + this.renderAs;
|
|
6313
|
-
},
|
|
6314
|
-
enumerable: false,
|
|
6315
|
-
configurable: true
|
|
6316
|
-
});
|
|
6317
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
|
|
6318
|
-
get: function () {
|
|
6319
|
-
return this.interactionStyle + "-activity";
|
|
6320
|
-
},
|
|
6321
|
-
enumerable: false,
|
|
6322
|
-
configurable: true
|
|
6323
|
-
});
|
|
6324
|
-
AddCardActivityComponent.prototype.isRenderAsCard = function () {
|
|
6325
|
-
return this.renderAs === 'card';
|
|
6326
|
-
};
|
|
6327
|
-
AddCardActivityComponent.prototype.isRenderAsButton = function () {
|
|
6328
|
-
return this.renderAs === 'button';
|
|
6329
|
-
};
|
|
6330
|
-
AddCardActivityComponent.prototype.ngOnInit = function () {
|
|
6331
|
-
};
|
|
6332
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
|
|
6333
|
-
get: function () {
|
|
6334
|
-
switch (this.interactionStyle) {
|
|
6335
|
-
case 'inline':
|
|
6336
|
-
return this.inlineInteractionContext;
|
|
6337
|
-
default:
|
|
6338
|
-
return this.modalInteractionContext;
|
|
6339
|
-
}
|
|
6340
|
-
},
|
|
6341
|
-
enumerable: false,
|
|
6342
|
-
configurable: true
|
|
6343
|
-
});
|
|
6344
|
-
AddCardActivityComponent.prototype.isModal = function () {
|
|
6345
|
-
return this.interactionStyle === 'modal';
|
|
6346
|
-
};
|
|
6347
|
-
AddCardActivityComponent.prototype.isInline = function () {
|
|
6348
|
-
return this.interactionStyle === 'inline';
|
|
6349
|
-
};
|
|
6350
|
-
return AddCardActivityComponent;
|
|
6351
|
-
}(AbstractActivityTriggerComponent));
|
|
6352
|
-
exports.AddCardActivityComponent.decorators = [
|
|
6353
|
-
{ type: i0.Component, args: [{
|
|
6354
|
-
selector: 'aup-add-card-activity',
|
|
6355
|
-
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",
|
|
6356
|
-
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"]
|
|
6357
|
-
},] }
|
|
6358
|
-
];
|
|
6359
|
-
exports.AddCardActivityComponent.ctorParameters = function () { return [
|
|
6360
|
-
{ type: exports.InteractionService }
|
|
6361
|
-
]; };
|
|
6362
|
-
exports.AddCardActivityComponent.propDecorators = {
|
|
6363
|
-
inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
6364
|
-
interactionStyle: [{ type: i0.Input }],
|
|
6365
|
-
renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
|
|
6366
|
-
notCard: [{ type: i0.HostBinding, args: ['class.not-card',] }],
|
|
6367
|
-
renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
6368
|
-
activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6369
|
-
};
|
|
6370
|
-
(function (AddCardActivityComponent) {
|
|
6371
|
-
AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
|
|
6372
|
-
MODAL: 'modal',
|
|
6373
|
-
INLINE: 'inline'
|
|
6374
|
-
});
|
|
6375
|
-
AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
|
|
6376
|
-
CARD: 'card',
|
|
6377
|
-
BUTTON: 'button'
|
|
6378
|
-
});
|
|
6379
|
-
})(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
|
|
6380
|
-
|
|
6381
5959
|
/**
|
|
6382
5960
|
* Css Vars.
|
|
6383
5961
|
* --link-color
|
|
@@ -6423,7 +6001,7 @@
|
|
|
6423
6001
|
{ type: i0.Component, args: [{
|
|
6424
6002
|
selector: 'aup-add-item-interaction-context',
|
|
6425
6003
|
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",
|
|
6426
|
-
styles: [":host{--def-link-color:
|
|
6004
|
+
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,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)}a.link,aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;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}"]
|
|
6427
6005
|
},] }
|
|
6428
6006
|
];
|
|
6429
6007
|
AddItemInteractionContextComponent.ctorParameters = function () { return []; };
|
|
@@ -6447,25 +6025,18 @@
|
|
|
6447
6025
|
function InlineActivityTriggerComponent() {
|
|
6448
6026
|
return _super.call(this) || this;
|
|
6449
6027
|
}
|
|
6450
|
-
Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
|
|
6451
|
-
get: function () {
|
|
6452
|
-
return this._interactionContext;
|
|
6453
|
-
},
|
|
6454
|
-
enumerable: false,
|
|
6455
|
-
configurable: true
|
|
6456
|
-
});
|
|
6457
6028
|
return InlineActivityTriggerComponent;
|
|
6458
6029
|
}(AbstractActivityTriggerComponent));
|
|
6459
6030
|
InlineActivityTriggerComponent.decorators = [
|
|
6460
6031
|
{ type: i0.Component, args: [{
|
|
6461
6032
|
selector: 'aup-inline-activity-trigger',
|
|
6462
6033
|
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",
|
|
6463
|
-
styles: [":host{display:inline-block}
|
|
6034
|
+
styles: [":host{display:inline-block}"]
|
|
6464
6035
|
},] }
|
|
6465
6036
|
];
|
|
6466
6037
|
InlineActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6467
6038
|
InlineActivityTriggerComponent.propDecorators = {
|
|
6468
|
-
|
|
6039
|
+
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
6469
6040
|
};
|
|
6470
6041
|
|
|
6471
6042
|
/**
|
|
@@ -6503,7 +6074,6 @@
|
|
|
6503
6074
|
var self = this;
|
|
6504
6075
|
var overlayRef = this._overlay.create({
|
|
6505
6076
|
hasBackdrop: false,
|
|
6506
|
-
disposeOnNavigation: true,
|
|
6507
6077
|
panelClass: 'aup-popup-interaction-panel',
|
|
6508
6078
|
positionStrategy: this._overlay.position()
|
|
6509
6079
|
.flexibleConnectedTo(this._element)
|
|
@@ -6559,7 +6129,7 @@
|
|
|
6559
6129
|
{ type: i0.Component, args: [{
|
|
6560
6130
|
selector: 'aup-popup-interaction-context',
|
|
6561
6131
|
template: "<ng-content></ng-content>\n",
|
|
6562
|
-
styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}
|
|
6132
|
+
styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}"]
|
|
6563
6133
|
},] }
|
|
6564
6134
|
];
|
|
6565
6135
|
PopupInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6615,7 +6185,7 @@
|
|
|
6615
6185
|
});
|
|
6616
6186
|
};
|
|
6617
6187
|
InteractionContextTriggerFor.prototype.prepareActivityData = function () {
|
|
6618
|
-
return ___default[
|
|
6188
|
+
return ___default['default'].isFunction(this.activityDataFactory()) ? this.activityDataFactory() : this.activityData;
|
|
6619
6189
|
};
|
|
6620
6190
|
return InteractionContextTriggerFor;
|
|
6621
6191
|
}(pectin.GarbageCollector));
|
|
@@ -6639,114 +6209,45 @@
|
|
|
6639
6209
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
6640
6210
|
// we're getting a metadata error for D for no reason that I can find and only during the build (ng serve works fine)
|
|
6641
6211
|
// @dynamic
|
|
6642
|
-
|
|
6643
|
-
__extends(
|
|
6644
|
-
function
|
|
6645
|
-
var _this = this;
|
|
6646
|
-
var _a, _b;
|
|
6647
|
-
_this = _super.call(this) || this;
|
|
6212
|
+
var AbstractInputActivity = /** @class */ (function (_super) {
|
|
6213
|
+
__extends(AbstractInputActivity, _super);
|
|
6214
|
+
function AbstractInputActivity(data) {
|
|
6215
|
+
var _this = _super.call(this) || this;
|
|
6648
6216
|
_this.data = data;
|
|
6649
6217
|
_this.class = 'aup-input-activity';
|
|
6650
6218
|
var form = new pectin.DirtyTrackingForm();
|
|
6651
6219
|
_this.valueModel = form.valueModel(_this.data.initialValue);
|
|
6652
6220
|
_this.valueModel.validateUsing(data.validators || []);
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
icon: function () { return 'mat:clear'; }
|
|
6659
|
-
};
|
|
6660
|
-
_this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6661
|
-
var self_1, allGood_1, result, e_1;
|
|
6662
|
-
return __generator(this, function (_c) {
|
|
6663
|
-
switch (_c.label) {
|
|
6664
|
-
case 0:
|
|
6665
|
-
if (!this.valueModel.validate()) return [3 /*break*/, 6];
|
|
6666
|
-
if (!data.save) return [3 /*break*/, 5];
|
|
6667
|
-
self_1 = this;
|
|
6668
|
-
_c.label = 1;
|
|
6669
|
-
case 1:
|
|
6670
|
-
_c.trys.push([1, 3, , 4]);
|
|
6671
|
-
allGood_1 = true;
|
|
6672
|
-
return [4 /*yield*/, data.save(this.valueModel.value, {
|
|
6673
|
-
injectError: function (error) {
|
|
6674
|
-
allGood_1 = false;
|
|
6675
|
-
self_1.valueModel.injectErrors([error]);
|
|
6676
|
-
}
|
|
6677
|
-
})];
|
|
6678
|
-
case 2:
|
|
6679
|
-
result = _c.sent();
|
|
6680
|
-
if (allGood_1) {
|
|
6681
|
-
this.done(this.valueModel.value);
|
|
6682
|
-
}
|
|
6683
|
-
return [3 /*break*/, 4];
|
|
6684
|
-
case 3:
|
|
6685
|
-
e_1 = _c.sent();
|
|
6686
|
-
console.error(e_1);
|
|
6687
|
-
return [3 /*break*/, 4];
|
|
6688
|
-
case 4: return [3 /*break*/, 6];
|
|
6689
|
-
case 5:
|
|
6690
|
-
this.done(this.valueModel.value);
|
|
6691
|
-
_c.label = 6;
|
|
6692
|
-
case 6: return [2 /*return*/];
|
|
6221
|
+
_this.confirmCommand = pectin.Command.create(function () {
|
|
6222
|
+
if (_this.valueModel.validate()) {
|
|
6223
|
+
if (data.save) {
|
|
6224
|
+
return Promise.resolve(data.save(_this.valueModel, _this.interactionContext))
|
|
6225
|
+
.then(function () { return _this.done(); });
|
|
6693
6226
|
}
|
|
6694
|
-
|
|
6695
|
-
|
|
6227
|
+
else {
|
|
6228
|
+
_this.done(_this.valueModel.value);
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
});
|
|
6696
6232
|
_this.cancelCommand = pectin.Command.create(function () {
|
|
6697
6233
|
_this.cancel();
|
|
6698
6234
|
});
|
|
6699
|
-
_this.busyWhile(_this.confirmCommand.busy);
|
|
6700
6235
|
return _this;
|
|
6701
6236
|
}
|
|
6702
|
-
|
|
6703
|
-
get: function () {
|
|
6704
|
-
var _a, _b;
|
|
6705
|
-
return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
|
|
6706
|
-
},
|
|
6707
|
-
enumerable: false,
|
|
6708
|
-
configurable: true
|
|
6709
|
-
});
|
|
6710
|
-
InputActivity.prototype.onActivityReady = function () {
|
|
6237
|
+
AbstractInputActivity.prototype.onActivityReady = function () {
|
|
6711
6238
|
this.valueModel.focusContext.requestFocus();
|
|
6712
6239
|
};
|
|
6713
|
-
|
|
6714
|
-
get: function () {
|
|
6715
|
-
var _a;
|
|
6716
|
-
return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
|
|
6717
|
-
},
|
|
6718
|
-
enumerable: false,
|
|
6719
|
-
configurable: true
|
|
6720
|
-
});
|
|
6721
|
-
InputActivity.prototype.onEscape = function () {
|
|
6722
|
-
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
|
|
6723
|
-
this.cancelCommand.execute();
|
|
6724
|
-
}
|
|
6725
|
-
};
|
|
6726
|
-
InputActivity.prototype.shouldCancelOnEscape = function () {
|
|
6727
|
-
return ___namespace.isNil(this.data.cancelOnEscape) // we default to true..
|
|
6728
|
-
|| this.data.cancelOnEscape;
|
|
6729
|
-
};
|
|
6730
|
-
return InputActivity;
|
|
6240
|
+
return AbstractInputActivity;
|
|
6731
6241
|
}(Activity));
|
|
6732
|
-
|
|
6242
|
+
AbstractInputActivity.decorators = [
|
|
6733
6243
|
{ type: i0.Component, args: [{ template: "" },] }
|
|
6734
6244
|
];
|
|
6735
|
-
|
|
6245
|
+
AbstractInputActivity.ctorParameters = function () { return [
|
|
6736
6246
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
6737
6247
|
]; };
|
|
6738
|
-
|
|
6739
|
-
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6740
|
-
layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
|
|
6741
|
-
additionalCssClassName: [{ type: i0.HostBinding, args: ["class",] }],
|
|
6742
|
-
onEscape: [{ type: i0.HostListener, args: ['keydown.escape',] }]
|
|
6248
|
+
AbstractInputActivity.propDecorators = {
|
|
6249
|
+
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6743
6250
|
};
|
|
6744
|
-
(function (InputActivity) {
|
|
6745
|
-
InputActivity.Layout = typescriptStringEnums.Enum({
|
|
6746
|
-
INLINE: 'inline',
|
|
6747
|
-
BLOCK: 'block'
|
|
6748
|
-
});
|
|
6749
|
-
})(exports.InputActivity || (exports.InputActivity = {}));
|
|
6750
6251
|
|
|
6751
6252
|
var StringInputActivity = /** @class */ (function (_super) {
|
|
6752
6253
|
__extends(StringInputActivity, _super);
|
|
@@ -6754,11 +6255,11 @@
|
|
|
6754
6255
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6755
6256
|
}
|
|
6756
6257
|
return StringInputActivity;
|
|
6757
|
-
}(
|
|
6258
|
+
}(AbstractInputActivity));
|
|
6758
6259
|
StringInputActivity.decorators = [
|
|
6759
6260
|
{ type: i0.Component, args: [{
|
|
6760
6261
|
selector: 'aup-string-input-activity',
|
|
6761
|
-
template: "\n <aup-string-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"></aup-string-input>\n <aup-activity-actions
|
|
6262
|
+
template: "\n <aup-string-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"></aup-string-input>\n <aup-activity-actions align=\"end\"\n [faces]=\"data.buttonStyle\"></aup-activity-actions>\n "
|
|
6762
6263
|
},] }
|
|
6763
6264
|
];
|
|
6764
6265
|
|
|
@@ -6788,11 +6289,11 @@
|
|
|
6788
6289
|
configurable: true
|
|
6789
6290
|
});
|
|
6790
6291
|
return SelectInputActivity;
|
|
6791
|
-
}(
|
|
6292
|
+
}(AbstractInputActivity));
|
|
6792
6293
|
SelectInputActivity.decorators = [
|
|
6793
6294
|
{ type: i0.Component, args: [{
|
|
6794
6295
|
selector: 'aup-select-input-activity',
|
|
6795
|
-
template: "\n <aup-select-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"\n [options]=\"options\"\n [optionLabelFormat]=\"optionLabelFormat\"\n ></aup-select-input>\n <aup-activity-actions
|
|
6296
|
+
template: "\n <aup-select-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"\n [options]=\"options\"\n [optionLabelFormat]=\"optionLabelFormat\"\n ></aup-select-input>\n <aup-activity-actions align=\"end\" [faces]=\"data.buttonStyle\"\n ></aup-activity-actions>\n "
|
|
6796
6297
|
},] }
|
|
6797
6298
|
];
|
|
6798
6299
|
|
|
@@ -6899,6 +6400,36 @@
|
|
|
6899
6400
|
return TableModel;
|
|
6900
6401
|
}(AbstractTableModel));
|
|
6901
6402
|
|
|
6403
|
+
exports.SelfAndDescendantsVisitor = /** @class */ (function () {
|
|
6404
|
+
function SelfAndDescendantsVisitor() {
|
|
6405
|
+
}
|
|
6406
|
+
SelfAndDescendantsVisitor.prototype.visit = function (it) {
|
|
6407
|
+
this.onVisit(it);
|
|
6408
|
+
if (this.shouldVisitChildrenOf(it)) {
|
|
6409
|
+
it.visitChildren(this);
|
|
6410
|
+
}
|
|
6411
|
+
};
|
|
6412
|
+
SelfAndDescendantsVisitor.prototype.shouldVisitChildrenOf = function (it) {
|
|
6413
|
+
return true;
|
|
6414
|
+
};
|
|
6415
|
+
return SelfAndDescendantsVisitor;
|
|
6416
|
+
}());
|
|
6417
|
+
(function (SelfAndDescendantsVisitor) {
|
|
6418
|
+
var Each = /** @class */ (function (_super) {
|
|
6419
|
+
__extends(Each, _super);
|
|
6420
|
+
function Each(callback) {
|
|
6421
|
+
var _this = _super.call(this) || this;
|
|
6422
|
+
_this.callback = callback;
|
|
6423
|
+
return _this;
|
|
6424
|
+
}
|
|
6425
|
+
Each.prototype.onVisit = function (it) {
|
|
6426
|
+
this.callback(it);
|
|
6427
|
+
};
|
|
6428
|
+
return Each;
|
|
6429
|
+
}(SelfAndDescendantsVisitor));
|
|
6430
|
+
SelfAndDescendantsVisitor.Each = Each;
|
|
6431
|
+
})(exports.SelfAndDescendantsVisitor || (exports.SelfAndDescendantsVisitor = {}));
|
|
6432
|
+
|
|
6902
6433
|
/**
|
|
6903
6434
|
* @file Automatically generated by barrelsby.
|
|
6904
6435
|
*/
|
|
@@ -6911,261 +6442,22 @@
|
|
|
6911
6442
|
_this.anchorY = 'bottom';
|
|
6912
6443
|
return _this;
|
|
6913
6444
|
}
|
|
6914
|
-
Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
|
|
6915
|
-
get: function () {
|
|
6916
|
-
return this._interactionContext;
|
|
6917
|
-
},
|
|
6918
|
-
enumerable: false,
|
|
6919
|
-
configurable: true
|
|
6920
|
-
});
|
|
6921
6445
|
return PopupActivityTriggerComponent;
|
|
6922
6446
|
}(AbstractActivityTriggerComponent));
|
|
6923
6447
|
PopupActivityTriggerComponent.decorators = [
|
|
6924
6448
|
{ type: i0.Component, args: [{
|
|
6925
6449
|
selector: 'aup-popup-activity-trigger',
|
|
6926
6450
|
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",
|
|
6927
|
-
styles: [":host{display:inline-block}
|
|
6451
|
+
styles: [":host{display:inline-block}"]
|
|
6928
6452
|
},] }
|
|
6929
6453
|
];
|
|
6930
6454
|
PopupActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6931
6455
|
PopupActivityTriggerComponent.propDecorators = {
|
|
6932
6456
|
anchorX: [{ type: i0.Input }],
|
|
6933
6457
|
anchorY: [{ type: i0.Input }],
|
|
6934
|
-
|
|
6458
|
+
interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
6935
6459
|
};
|
|
6936
6460
|
|
|
6937
|
-
exports.InlineEditorModel = /** @class */ (function (_super) {
|
|
6938
|
-
__extends(InlineEditorModel, _super);
|
|
6939
|
-
function InlineEditorModel(valueModel, saveCallback) {
|
|
6940
|
-
var _this = _super.call(this) || this;
|
|
6941
|
-
_this.valueModel = valueModel;
|
|
6942
|
-
_this.saveCallback = saveCallback;
|
|
6943
|
-
_this.editing = new pectin.MutableValueModel(false);
|
|
6944
|
-
_this._validators = new pectin.MutableListModel();
|
|
6945
|
-
_this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
|
|
6946
|
-
pectin.assert.notNil(valueModel);
|
|
6947
|
-
var when = pectin.Dsl.disposeWith(_this).when;
|
|
6948
|
-
when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
6949
|
-
return _this;
|
|
6950
|
-
}
|
|
6951
|
-
Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
|
|
6952
|
-
get: function () {
|
|
6953
|
-
return this._editingEnabled.readonly;
|
|
6954
|
-
},
|
|
6955
|
-
enumerable: false,
|
|
6956
|
-
configurable: true
|
|
6957
|
-
});
|
|
6958
|
-
InlineEditorModel.prototype.disableWhile = function (condition) {
|
|
6959
|
-
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
6960
|
-
this.enableWhile(chain(condition).isFalsey());
|
|
6961
|
-
return this;
|
|
6962
|
-
};
|
|
6963
|
-
InlineEditorModel.prototype.enableWhile = function (condition) {
|
|
6964
|
-
this._editingEnabled.setDelegate(condition);
|
|
6965
|
-
return this;
|
|
6966
|
-
};
|
|
6967
|
-
Object.defineProperty(InlineEditorModel.prototype, "validators", {
|
|
6968
|
-
get: function () {
|
|
6969
|
-
return this._validators.readonly;
|
|
6970
|
-
},
|
|
6971
|
-
enumerable: false,
|
|
6972
|
-
configurable: true
|
|
6973
|
-
});
|
|
6974
|
-
InlineEditorModel.prototype.validateUsing = function (validator) {
|
|
6975
|
-
this._validators.push(validator);
|
|
6976
|
-
return this;
|
|
6977
|
-
};
|
|
6978
|
-
InlineEditorModel.prototype.isEditing = function () {
|
|
6979
|
-
return this.editing.value;
|
|
6980
|
-
};
|
|
6981
|
-
InlineEditorModel.prototype.cancelEdit = function () {
|
|
6982
|
-
this.editing.value = false;
|
|
6983
|
-
};
|
|
6984
|
-
InlineEditorModel.prototype.startEditing = function () {
|
|
6985
|
-
this.editing.value = true;
|
|
6986
|
-
};
|
|
6987
|
-
return InlineEditorModel;
|
|
6988
|
-
}(pectin.GarbageCollector));
|
|
6989
|
-
(function (InlineEditorModel) {
|
|
6990
|
-
function create(valueModel, options) {
|
|
6991
|
-
return new InlineEditorModel(valueModel, options.save);
|
|
6992
|
-
}
|
|
6993
|
-
InlineEditorModel.create = create;
|
|
6994
|
-
})(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
|
|
6995
|
-
pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
|
|
6996
|
-
|
|
6997
|
-
/**
|
|
6998
|
-
* @example
|
|
6999
|
-
* const source: ValueModel<string> = ...;
|
|
7000
|
-
* const model = InlineEditorModel.create(source, {
|
|
7001
|
-
* save(updated:string, context: EditContext) => {
|
|
7002
|
-
* try {
|
|
7003
|
-
* try and save the thing...
|
|
7004
|
-
* } catch(error) {
|
|
7005
|
-
* context.injectError(error)
|
|
7006
|
-
* }
|
|
7007
|
-
* }).validateUsing(Validator.present("We'll need a value");
|
|
7008
|
-
*
|
|
7009
|
-
* # in the view
|
|
7010
|
-
* <aup-inline-string-editor
|
|
7011
|
-
* label="My field"
|
|
7012
|
-
* placeHolder="I'm ready for a string..."
|
|
7013
|
-
* [editorModel]="model"></aup-inline-string-editor>
|
|
7014
|
-
*/
|
|
7015
|
-
exports.InlineStringEditorComponent = /** @class */ (function (_super) {
|
|
7016
|
-
__extends(InlineStringEditorComponent, _super);
|
|
7017
|
-
function InlineStringEditorComponent(interactionService) {
|
|
7018
|
-
var _this = _super.call(this) || this;
|
|
7019
|
-
_this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
7020
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
7021
|
-
var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
7022
|
-
var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
|
|
7023
|
-
return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
|
|
7024
|
-
}, { allowNil: true });
|
|
7025
|
-
_this.editFaceModel = resolvedFacesModel.pluck('edit');
|
|
7026
|
-
_this.saveFace = resolvedFacesModel.pluck('save');
|
|
7027
|
-
_this.cancelFace = resolvedFacesModel.pluck('cancel');
|
|
7028
|
-
var self = _this;
|
|
7029
|
-
_this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
7030
|
-
var e_1;
|
|
7031
|
-
return __generator(this, function (_a) {
|
|
7032
|
-
switch (_a.label) {
|
|
7033
|
-
case 0:
|
|
7034
|
-
this.editorModel.editing.value = true;
|
|
7035
|
-
_a.label = 1;
|
|
7036
|
-
case 1:
|
|
7037
|
-
_a.trys.push([1, 3, 4, 5]);
|
|
7038
|
-
return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
|
|
7039
|
-
case 2:
|
|
7040
|
-
_a.sent();
|
|
7041
|
-
return [3 /*break*/, 5];
|
|
7042
|
-
case 3:
|
|
7043
|
-
e_1 = _a.sent();
|
|
7044
|
-
return [3 /*break*/, 5];
|
|
7045
|
-
case 4:
|
|
7046
|
-
this.editorModel.editing.value = false;
|
|
7047
|
-
return [7 /*endfinally*/];
|
|
7048
|
-
case 5: return [2 /*return*/];
|
|
7049
|
-
}
|
|
7050
|
-
});
|
|
7051
|
-
}); }).enableWhile(_this.editingEnabled);
|
|
7052
|
-
_this.onDispose(function () { return _this.cancelEdit(); });
|
|
7053
|
-
return _this;
|
|
7054
|
-
}
|
|
7055
|
-
InlineStringEditorComponent.prototype.ngOnInit = function () {
|
|
7056
|
-
var _this = this;
|
|
7057
|
-
// our editor model is a one time binding without delegates so we can only
|
|
7058
|
-
// use it once we've been initialised
|
|
7059
|
-
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
7060
|
-
if (!this.editorModel) {
|
|
7061
|
-
typescriptUtilities.lang.illegalState('editorModel is required');
|
|
7062
|
-
}
|
|
7063
|
-
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
7064
|
-
when(this.editorModel.editing).becomesTruthy(function () {
|
|
7065
|
-
_this.editCommand.execute();
|
|
7066
|
-
}, { asLongAs: this.editCommand.enabled });
|
|
7067
|
-
when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
7068
|
-
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
7069
|
-
// deviceDescription.isNil()
|
|
7070
|
-
).areTruthy();
|
|
7071
|
-
this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
|
|
7072
|
-
return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
|
|
7073
|
-
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
7074
|
-
};
|
|
7075
|
-
InlineStringEditorComponent.prototype.createInputActivityData = function () {
|
|
7076
|
-
var self = this;
|
|
7077
|
-
return {
|
|
7078
|
-
initialValue: self.editorModel.valueModel.value,
|
|
7079
|
-
confirmFace: self.saveFace.value,
|
|
7080
|
-
cancelFace: self.cancelFace.value,
|
|
7081
|
-
placeholder: self.placeHolderModel.value,
|
|
7082
|
-
label: self.label,
|
|
7083
|
-
layout: exports.InputActivity.Layout.INLINE,
|
|
7084
|
-
validators: self.editorModel.validators.value,
|
|
7085
|
-
save: function (value, inputContext) {
|
|
7086
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7087
|
-
return __generator(this, function (_a) {
|
|
7088
|
-
switch (_a.label) {
|
|
7089
|
-
case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
|
|
7090
|
-
case 1:
|
|
7091
|
-
_a.sent();
|
|
7092
|
-
return [2 /*return*/];
|
|
7093
|
-
}
|
|
7094
|
-
});
|
|
7095
|
-
});
|
|
7096
|
-
}
|
|
7097
|
-
};
|
|
7098
|
-
};
|
|
7099
|
-
InlineStringEditorComponent.prototype.cancelEdit = function () {
|
|
7100
|
-
if (this.isEditing()) {
|
|
7101
|
-
this.interactionContext.cancelActiveActivity();
|
|
7102
|
-
}
|
|
7103
|
-
};
|
|
7104
|
-
InlineStringEditorComponent.prototype.startEdit = function () {
|
|
7105
|
-
if (!this.isEditing() && this.editCommand.enabled.value) {
|
|
7106
|
-
this.editCommand.execute();
|
|
7107
|
-
}
|
|
7108
|
-
};
|
|
7109
|
-
InlineStringEditorComponent.prototype.isEditing = function () {
|
|
7110
|
-
return this.interactionContext.isActive();
|
|
7111
|
-
};
|
|
7112
|
-
InlineStringEditorComponent.prototype.isEmpty = function () {
|
|
7113
|
-
return this.empty.value;
|
|
7114
|
-
};
|
|
7115
|
-
return InlineStringEditorComponent;
|
|
7116
|
-
}(DisposableComponent));
|
|
7117
|
-
exports.InlineStringEditorComponent.decorators = [
|
|
7118
|
-
{ type: i0.Component, args: [{
|
|
7119
|
-
selector: 'aup-inline-string-editor',
|
|
7120
|
-
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"
|
|
7121
|
-
},] }
|
|
7122
|
-
];
|
|
7123
|
-
exports.InlineStringEditorComponent.ctorParameters = function () { return [
|
|
7124
|
-
{ type: exports.InteractionService }
|
|
7125
|
-
]; };
|
|
7126
|
-
exports.InlineStringEditorComponent.propDecorators = {
|
|
7127
|
-
editorModel: [{ type: i0.Input }],
|
|
7128
|
-
facesModel: [{ type: i0.Input }],
|
|
7129
|
-
faces: [{ type: i0.Input }],
|
|
7130
|
-
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
|
|
7131
|
-
label: [{ type: i0.Input }],
|
|
7132
|
-
placeHolder: [{ type: i0.Input }],
|
|
7133
|
-
placeHolderModel: [{ type: i0.Input }]
|
|
7134
|
-
};
|
|
7135
|
-
__decorate([
|
|
7136
|
-
pectin.TrackExternal(),
|
|
7137
|
-
__metadata("design:type", exports.InlineEditorModel)
|
|
7138
|
-
], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
|
|
7139
|
-
__decorate([
|
|
7140
|
-
pectin.TrackExternal(),
|
|
7141
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7142
|
-
], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
|
|
7143
|
-
__decorate([
|
|
7144
|
-
pectin.StoreInValueModel('facesModel'),
|
|
7145
|
-
__metadata("design:type", Object)
|
|
7146
|
-
], exports.InlineStringEditorComponent.prototype, "faces", void 0);
|
|
7147
|
-
__decorate([
|
|
7148
|
-
pectin.StoreInValueModel('placeHolderModel'),
|
|
7149
|
-
__metadata("design:type", String)
|
|
7150
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
|
|
7151
|
-
__decorate([
|
|
7152
|
-
pectin.TrackExternal(),
|
|
7153
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7154
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
7155
|
-
(function (InlineStringEditorComponent) {
|
|
7156
|
-
InlineStringEditorComponent.DEFAULT_FACES = {
|
|
7157
|
-
edit: {
|
|
7158
|
-
icon: function () { return 'mat:edit'; }
|
|
7159
|
-
},
|
|
7160
|
-
save: {
|
|
7161
|
-
icon: function () { return 'mat:check'; }
|
|
7162
|
-
},
|
|
7163
|
-
cancel: {
|
|
7164
|
-
icon: function () { return 'mat:clear'; }
|
|
7165
|
-
}
|
|
7166
|
-
};
|
|
7167
|
-
})(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
|
|
7168
|
-
|
|
7169
6461
|
var InteractionModule = /** @class */ (function () {
|
|
7170
6462
|
function InteractionModule() {
|
|
7171
6463
|
}
|
|
@@ -7184,11 +6476,7 @@
|
|
|
7184
6476
|
DirectivesModule,
|
|
7185
6477
|
flexLayout.FlexModule,
|
|
7186
6478
|
flexLayout.GridModule,
|
|
7187
|
-
ComponentsModule
|
|
7188
|
-
forms.FormsModule,
|
|
7189
|
-
input.MatInputModule,
|
|
7190
|
-
formField.MatFormFieldModule,
|
|
7191
|
-
a11y.A11yModule
|
|
6479
|
+
ComponentsModule
|
|
7192
6480
|
],
|
|
7193
6481
|
declarations: [
|
|
7194
6482
|
ActivityContainerComponent,
|
|
@@ -7198,22 +6486,20 @@
|
|
|
7198
6486
|
ActivityOutletComponent,
|
|
7199
6487
|
InPlaceInteractionContextComponent,
|
|
7200
6488
|
AddItemInteractionContextComponent,
|
|
7201
|
-
|
|
6489
|
+
ActivityActionsComponent,
|
|
7202
6490
|
PopupInteractionContextComponent,
|
|
7203
6491
|
StringInputActivity,
|
|
7204
6492
|
SelectInputActivity,
|
|
7205
|
-
|
|
6493
|
+
AbstractInputActivity,
|
|
7206
6494
|
InteractionContextTriggerFor,
|
|
7207
6495
|
Activity,
|
|
7208
6496
|
ActivityTitleComponent,
|
|
7209
6497
|
ActivityBodyComponent,
|
|
7210
|
-
|
|
6498
|
+
ActivityActionsComponent,
|
|
7211
6499
|
AbstractActivityTriggerComponent,
|
|
7212
6500
|
PopupActivityTriggerComponent,
|
|
7213
6501
|
InlineActivityTriggerComponent,
|
|
7214
|
-
ModalActivityTriggerComponent
|
|
7215
|
-
exports.AddCardActivityComponent,
|
|
7216
|
-
exports.InlineStringEditorComponent,
|
|
6502
|
+
ModalActivityTriggerComponent
|
|
7217
6503
|
],
|
|
7218
6504
|
exports: [
|
|
7219
6505
|
ActivityContainerComponent,
|
|
@@ -7221,7 +6507,7 @@
|
|
|
7221
6507
|
ActivityTitleComponent,
|
|
7222
6508
|
InPlaceInteractionContextComponent,
|
|
7223
6509
|
AddItemInteractionContextComponent,
|
|
7224
|
-
|
|
6510
|
+
ActivityActionsComponent,
|
|
7225
6511
|
PopupInteractionContextComponent,
|
|
7226
6512
|
InteractionContextTriggerFor,
|
|
7227
6513
|
StringInputActivity,
|
|
@@ -7229,9 +6515,7 @@
|
|
|
7229
6515
|
ActivityBodyComponent,
|
|
7230
6516
|
PopupActivityTriggerComponent,
|
|
7231
6517
|
InlineActivityTriggerComponent,
|
|
7232
|
-
ModalActivityTriggerComponent
|
|
7233
|
-
exports.AddCardActivityComponent,
|
|
7234
|
-
exports.InlineStringEditorComponent,
|
|
6518
|
+
ModalActivityTriggerComponent
|
|
7235
6519
|
],
|
|
7236
6520
|
entryComponents: [
|
|
7237
6521
|
ActivityContainerComponent,
|
|
@@ -7316,7 +6600,7 @@
|
|
|
7316
6600
|
return _this;
|
|
7317
6601
|
}
|
|
7318
6602
|
RouteId.prototype.isEmptyValue = function (value) {
|
|
7319
|
-
return ___default[
|
|
6603
|
+
return ___default['default'].isNil(value);
|
|
7320
6604
|
};
|
|
7321
6605
|
RouteId.prototype.hasChanged = function (a, b) {
|
|
7322
6606
|
return a !== b;
|
|
@@ -7334,7 +6618,7 @@
|
|
|
7334
6618
|
return _this;
|
|
7335
6619
|
}
|
|
7336
6620
|
ValueParameter.prototype.isEmptyValue = function (value) {
|
|
7337
|
-
return ___default[
|
|
6621
|
+
return ___default['default'].isNil(value);
|
|
7338
6622
|
};
|
|
7339
6623
|
ValueParameter.prototype.hasChanged = function (a, b) {
|
|
7340
6624
|
return a !== b;
|
|
@@ -7352,10 +6636,10 @@
|
|
|
7352
6636
|
return _this;
|
|
7353
6637
|
}
|
|
7354
6638
|
ArrayParameter.prototype.isEmptyValue = function (value) {
|
|
7355
|
-
return ___default[
|
|
6639
|
+
return ___default['default'].isNil(value) || value.length < 1;
|
|
7356
6640
|
};
|
|
7357
6641
|
ArrayParameter.prototype.hasChanged = function (a, b) {
|
|
7358
|
-
return !___default[
|
|
6642
|
+
return !___default['default'].isEqual(a, b);
|
|
7359
6643
|
};
|
|
7360
6644
|
return ArrayParameter;
|
|
7361
6645
|
}(ParameterDefinition));
|
|
@@ -7404,13 +6688,13 @@
|
|
|
7404
6688
|
};
|
|
7405
6689
|
PlaceDefinition.prototype.getPlaceData = function (key, defaultValue) {
|
|
7406
6690
|
return this.data ?
|
|
7407
|
-
___default[
|
|
6691
|
+
___default['default'].isNil(this.data[key]) ? defaultValue : this.data[key] :
|
|
7408
6692
|
defaultValue;
|
|
7409
6693
|
};
|
|
7410
6694
|
PlaceDefinition.prototype.searchPlaceData = function (keys, defaultValue) {
|
|
7411
6695
|
var _this = this;
|
|
7412
6696
|
if (this.data) {
|
|
7413
|
-
var found = keys.find(function (key) { return !___default[
|
|
6697
|
+
var found = keys.find(function (key) { return !___default['default'].isNil(_this.data[key]); });
|
|
7414
6698
|
return found ? this.data[found] : defaultValue;
|
|
7415
6699
|
}
|
|
7416
6700
|
else {
|
|
@@ -7480,7 +6764,7 @@
|
|
|
7480
6764
|
// because our id routes redirect if the id isn't present we always have a id
|
|
7481
6765
|
// parameter in our params. This will bugger our remember and defaultvalue sanitisation
|
|
7482
6766
|
// as it'll see that the id is present (event thought its a blank string).
|
|
7483
|
-
if (!___default[
|
|
6767
|
+
if (!___default['default'].isEmpty(value)) {
|
|
7484
6768
|
result[def.name] = def.urlFormat.parse(value);
|
|
7485
6769
|
}
|
|
7486
6770
|
}
|
|
@@ -7543,28 +6827,17 @@
|
|
|
7543
6827
|
_this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
|
|
7544
6828
|
return _this;
|
|
7545
6829
|
}
|
|
6830
|
+
// @Trace()
|
|
7546
6831
|
PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
|
|
7547
6832
|
var _this = this;
|
|
7548
6833
|
pectin.assert.isNil(this.visitModel.value);
|
|
7549
6834
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
7550
6835
|
this.visitModel.value = visit;
|
|
7551
6836
|
pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
7552
|
-
|
|
7553
|
-
// route in one go at the end.
|
|
7554
|
-
this.placeDefinition
|
|
7555
|
-
.getVisitParameterDefs()
|
|
7556
|
-
.forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
|
|
6837
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
7557
6838
|
when(this.visitModel).changes(function (current, previous) {
|
|
7558
6839
|
notifyVisitChanged(current, previous);
|
|
7559
6840
|
}, { unless: this._inVisitUpdate });
|
|
7560
|
-
// TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
|
|
7561
|
-
// now we're not doing it as it's a fair bit of effort and will only affect people if they're
|
|
7562
|
-
// cutting and pasting urls to each other.
|
|
7563
|
-
// // the binding process can update the visit (e.g. if a selection model has already selected during
|
|
7564
|
-
// // component construction) and there was no value specified in the route
|
|
7565
|
-
// if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
|
|
7566
|
-
// notifyVisitChanged(this.visitModel.value, visit)
|
|
7567
|
-
// }
|
|
7568
6841
|
};
|
|
7569
6842
|
PlaceComponent.prototype.updateVisit = function (visit) {
|
|
7570
6843
|
var _this = this;
|
|
@@ -7578,12 +6851,7 @@
|
|
|
7578
6851
|
return !!this.visitModel.value;
|
|
7579
6852
|
};
|
|
7580
6853
|
// @Trace()
|
|
7581
|
-
|
|
7582
|
-
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
7583
|
-
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
7584
|
-
* method will return ture to nofiy the the visit has changed.
|
|
7585
|
-
*/
|
|
7586
|
-
PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
|
|
6854
|
+
PlaceComponent.prototype.installBinding = function (parameterDef) {
|
|
7587
6855
|
var model = this[parameterDef.propertyName];
|
|
7588
6856
|
pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
|
|
7589
6857
|
var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
|
|
@@ -7597,17 +6865,7 @@
|
|
|
7597
6865
|
return currentVisit.replace(parameterDef, value);
|
|
7598
6866
|
}
|
|
7599
6867
|
}));
|
|
7600
|
-
|
|
7601
|
-
// 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
|
|
7602
|
-
// component constructor) then we should push that to the route.
|
|
7603
|
-
var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
|
|
7604
|
-
var isInModel = !___namespace.isNil(model.value);
|
|
7605
|
-
if (!isInVisit && isInModel) {
|
|
7606
|
-
binding.writeLeft(); // push it to the route
|
|
7607
|
-
}
|
|
7608
|
-
else {
|
|
7609
|
-
binding.writeRight(); // push it to the model
|
|
7610
|
-
}
|
|
6868
|
+
binding.writeRight();
|
|
7611
6869
|
};
|
|
7612
6870
|
Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
|
|
7613
6871
|
get: function () {
|
|
@@ -8158,7 +7416,7 @@
|
|
|
8158
7416
|
var currentIds = this.interactionServiceAdapter.getActiveInteractionContextIds();
|
|
8159
7417
|
var previousIds = this.urlService.getCurrentLocationUrlSnapshot().getInteractionIds();
|
|
8160
7418
|
// console.log(`---> synchroniseInteractionIds`, { is: currentIds.join(','), was: previousIds.join(',') });
|
|
8161
|
-
if (___default[
|
|
7419
|
+
if (___default['default'].isEqual(currentIds, previousIds)) {
|
|
8162
7420
|
// console.log('### Activity context ids were the same, skipping');
|
|
8163
7421
|
this.context.finishRoutingSession();
|
|
8164
7422
|
}
|
|
@@ -8638,7 +7896,7 @@
|
|
|
8638
7896
|
return !!((_a = this._previousVisits) === null || _a === void 0 ? void 0 : _a.getVisitFor(placeDef));
|
|
8639
7897
|
};
|
|
8640
7898
|
PlaceHistory.prototype.getMostRecentVisitFor = function (placeDef) {
|
|
8641
|
-
return ___default[
|
|
7899
|
+
return ___default['default'].first(this.getHistory(placeDef));
|
|
8642
7900
|
};
|
|
8643
7901
|
PlaceHistory.prototype.getHistory = function (placeDef) {
|
|
8644
7902
|
var history = this._archive.get(placeDef);
|
|
@@ -8655,7 +7913,7 @@
|
|
|
8655
7913
|
var _this = this;
|
|
8656
7914
|
visits.forEach(function (state) {
|
|
8657
7915
|
var history = _this.getHistory(state.placeDefinition);
|
|
8658
|
-
var previousState = ___default[
|
|
7916
|
+
var previousState = ___default['default'].first(history);
|
|
8659
7917
|
if (!previousState || state.hasChangedFrom(previousState)) {
|
|
8660
7918
|
history.unshift(state); // LIFO
|
|
8661
7919
|
_this.setHistory(state.placeDefinition, history.slice(0, _this.placeHistoryDepth));
|
|
@@ -8779,7 +8037,7 @@
|
|
|
8779
8037
|
};
|
|
8780
8038
|
Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
|
|
8781
8039
|
get: function () {
|
|
8782
|
-
return
|
|
8040
|
+
return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
|
|
8783
8041
|
},
|
|
8784
8042
|
enumerable: false,
|
|
8785
8043
|
configurable: true
|
|
@@ -8868,13 +8126,9 @@
|
|
|
8868
8126
|
});
|
|
8869
8127
|
return new Visit(this.placeDefinition, params);
|
|
8870
8128
|
};
|
|
8871
|
-
// @Trace()
|
|
8872
8129
|
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
8873
8130
|
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
8874
|
-
var
|
|
8875
|
-
var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
|
|
8876
|
-
// console.log({currentParams, otherParams});
|
|
8877
|
-
var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
|
|
8131
|
+
var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
8878
8132
|
return !samePlace || !sameRouteParameters;
|
|
8879
8133
|
};
|
|
8880
8134
|
Visit.prototype.hasChangedFrom = function (other) {
|
|
@@ -8898,7 +8152,6 @@
|
|
|
8898
8152
|
this.url = url;
|
|
8899
8153
|
this.urlTree = urlSerializer.parse(url);
|
|
8900
8154
|
}
|
|
8901
|
-
// @Trace()
|
|
8902
8155
|
UrlSnapshot.prototype.updateVisitSegments = function (visit) {
|
|
8903
8156
|
var newUrlTree = this.urlSerializer.parse(this.url);
|
|
8904
8157
|
// Ugly, but it works for now.
|
|
@@ -8950,7 +8203,7 @@
|
|
|
8950
8203
|
return this.getInteractionIds().length > 0;
|
|
8951
8204
|
};
|
|
8952
8205
|
UrlSnapshot.prototype.hasInteractionIds = function (ids) {
|
|
8953
|
-
return ___default[
|
|
8206
|
+
return ___default['default'].isEqual(this.getInteractionIds(), ids);
|
|
8954
8207
|
};
|
|
8955
8208
|
// @Trace()
|
|
8956
8209
|
UrlSnapshot.prototype.updateInteractionIds = function (ids) {
|
|
@@ -8976,6 +8229,12 @@
|
|
|
8976
8229
|
};
|
|
8977
8230
|
return UrlSnapshot;
|
|
8978
8231
|
}());
|
|
8232
|
+
__decorate([
|
|
8233
|
+
pectin.Trace(),
|
|
8234
|
+
__metadata("design:type", Function),
|
|
8235
|
+
__metadata("design:paramtypes", [Visit]),
|
|
8236
|
+
__metadata("design:returntype", exports.UrlSnapshot)
|
|
8237
|
+
], exports.UrlSnapshot.prototype, "updateVisitSegments", null);
|
|
8979
8238
|
__decorate([
|
|
8980
8239
|
src.Memoize(),
|
|
8981
8240
|
__metadata("design:type", Function),
|
|
@@ -9062,9 +8321,6 @@
|
|
|
9062
8321
|
{ type: i1$1.UrlSerializer }
|
|
9063
8322
|
]; };
|
|
9064
8323
|
|
|
9065
|
-
function asArray(item) {
|
|
9066
|
-
return Array.isArray(item) ? item : [item];
|
|
9067
|
-
}
|
|
9068
8324
|
exports.PlaceRouter = /** @class */ (function (_super) {
|
|
9069
8325
|
__extends(PlaceRouter, _super);
|
|
9070
8326
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -9081,7 +8337,7 @@
|
|
|
9081
8337
|
* An observable model containing the authoriser function. This allows places to react to changes
|
|
9082
8338
|
* in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
|
|
9083
8339
|
*/
|
|
9084
|
-
_this._accessGuard =
|
|
8340
|
+
_this._accessGuard = new pectin.DelegatingValueModel().withDefault(new exports.PlaceAccessGuard.NoAuth());
|
|
9085
8341
|
if (window['Cypress']) {
|
|
9086
8342
|
window['aup.PlaceRouter'] = _this;
|
|
9087
8343
|
}
|
|
@@ -9244,15 +8500,17 @@
|
|
|
9244
8500
|
};
|
|
9245
8501
|
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
9246
8502
|
var _this = this;
|
|
9247
|
-
var commands = asArray(visit).reduce(function (result, v) {
|
|
9248
|
-
return __spreadArray(__spreadArray(__spreadArray([], __read(result)), [v.placeDefinition.path]), __read(_this.createRouteParameters(v)));
|
|
9249
|
-
}, []);
|
|
9250
8503
|
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
8504
|
+
var commands;
|
|
9251
8505
|
return __generator(this, function (_a) {
|
|
9252
8506
|
switch (_a.label) {
|
|
9253
|
-
case 0:
|
|
9254
|
-
|
|
9255
|
-
|
|
8507
|
+
case 0:
|
|
8508
|
+
commands = __spreadArray([
|
|
8509
|
+
visit.placeDefinition.path
|
|
8510
|
+
], __read(this.createRouteParameters(visit)));
|
|
8511
|
+
return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
8512
|
+
relativeTo: options ? options.relativeTo : null
|
|
8513
|
+
})];
|
|
9256
8514
|
case 1:
|
|
9257
8515
|
_a.sent();
|
|
9258
8516
|
return [2 /*return*/];
|
|
@@ -9271,7 +8529,7 @@
|
|
|
9271
8529
|
pectin.lang.illegalState('Navigation already in progress');
|
|
9272
8530
|
}
|
|
9273
8531
|
navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
9274
|
-
|
|
8532
|
+
navigation.storeVisit(visit);
|
|
9275
8533
|
this.transitionTo(navigation);
|
|
9276
8534
|
_a.label = 1;
|
|
9277
8535
|
case 1:
|
|
@@ -9367,7 +8625,6 @@
|
|
|
9367
8625
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
9368
8626
|
* the app directly and we don't get to ask.
|
|
9369
8627
|
*/
|
|
9370
|
-
// @Trace()
|
|
9371
8628
|
PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
|
|
9372
8629
|
var _this = this;
|
|
9373
8630
|
if (this.navigationSession) {
|
|
@@ -9411,6 +8668,12 @@
|
|
|
9411
8668
|
{ type: UrlService },
|
|
9412
8669
|
{ type: exports.PlaceHistory }
|
|
9413
8670
|
]; };
|
|
8671
|
+
__decorate([
|
|
8672
|
+
pectin.Trace(),
|
|
8673
|
+
__metadata("design:type", Function),
|
|
8674
|
+
__metadata("design:paramtypes", []),
|
|
8675
|
+
__metadata("design:returntype", Promise)
|
|
8676
|
+
], exports.PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
|
|
9414
8677
|
(function (PlaceRouter) {
|
|
9415
8678
|
var State = /** @class */ (function () {
|
|
9416
8679
|
function State(activeVisits) {
|
|
@@ -9438,7 +8701,7 @@
|
|
|
9438
8701
|
{ type: i0.Component, args: [{
|
|
9439
8702
|
selector: 'aup-not-authorised-notice',
|
|
9440
8703
|
template: "<p>You are not authorised to access this page</p>\n",
|
|
9441
|
-
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}
|
|
8704
|
+
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}"]
|
|
9442
8705
|
},] }
|
|
9443
8706
|
];
|
|
9444
8707
|
NotAuthorisedNoticeComponent.ctorParameters = function () { return []; };
|
|
@@ -9689,7 +8952,7 @@
|
|
|
9689
8952
|
selector: 'aup-place-outlet',
|
|
9690
8953
|
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",
|
|
9691
8954
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
9692
|
-
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}
|
|
8955
|
+
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}"]
|
|
9693
8956
|
},] }
|
|
9694
8957
|
];
|
|
9695
8958
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
@@ -9731,7 +8994,7 @@
|
|
|
9731
8994
|
function AbstractPlaceNavigationComponent(placeRouter) {
|
|
9732
8995
|
var _this = _super.call(this) || this;
|
|
9733
8996
|
_this.placeRouter = placeRouter;
|
|
9734
|
-
_this._activePlaceComponent =
|
|
8997
|
+
_this._activePlaceComponent = new pectin.DelegatingValueModel();
|
|
9735
8998
|
_this.trackByPlaceDef = function (data) { return data.place; };
|
|
9736
8999
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
9737
9000
|
_this.placeDefinitions = chain(_this.placesModel)
|
|
@@ -9824,7 +9087,7 @@
|
|
|
9824
9087
|
{ type: i0.Component, args: [{
|
|
9825
9088
|
selector: 'aup-list-place-nav',
|
|
9826
9089
|
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",
|
|
9827
|
-
styles: [":host{display:flex;flex-direction:column;--selected-border-color
|
|
9090
|
+
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)}"]
|
|
9828
9091
|
},] }
|
|
9829
9092
|
];
|
|
9830
9093
|
ListPlaceNavComponent.ctorParameters = function () { return [
|
|
@@ -9895,7 +9158,7 @@
|
|
|
9895
9158
|
{ type: i0.Component, args: [{
|
|
9896
9159
|
selector: 'aup-side-place-navigation',
|
|
9897
9160
|
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",
|
|
9898
|
-
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:
|
|
9161
|
+
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,hsla(0,0%,100%,0.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)}"]
|
|
9899
9162
|
},] }
|
|
9900
9163
|
];
|
|
9901
9164
|
SidePlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -9917,7 +9180,7 @@
|
|
|
9917
9180
|
{ type: i0.Component, args: [{
|
|
9918
9181
|
selector: 'aup-tabbed-place-navigation',
|
|
9919
9182
|
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",
|
|
9920
|
-
styles: [":host{display:block}div.place-holder{border:1px solid green}
|
|
9183
|
+
styles: [":host{display:block}div.place-holder{border:1px solid green}"]
|
|
9921
9184
|
},] }
|
|
9922
9185
|
];
|
|
9923
9186
|
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -10249,13 +9512,13 @@
|
|
|
10249
9512
|
}
|
|
10250
9513
|
_a.label = 2;
|
|
10251
9514
|
case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10252
|
-
var
|
|
9515
|
+
var params, parsedParams, navigationSession, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
|
|
10253
9516
|
return __generator(this, function (_a) {
|
|
10254
9517
|
switch (_a.label) {
|
|
10255
9518
|
case 0:
|
|
10256
|
-
navigationSession = this.placeRouter.navigationSession;
|
|
10257
9519
|
params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
|
|
10258
9520
|
parsedParams = placeDefinition_1.parseRouteParams(params);
|
|
9521
|
+
navigationSession = this.placeRouter.navigationSession;
|
|
10259
9522
|
initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
|
|
10260
9523
|
sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
|
|
10261
9524
|
return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
|
|
@@ -10364,11 +9627,11 @@
|
|
|
10364
9627
|
function NumberType() {
|
|
10365
9628
|
}
|
|
10366
9629
|
NumberType.prototype.format = function (value) {
|
|
10367
|
-
return ___default[
|
|
9630
|
+
return ___default['default'].isNumber(value) && !___default['default'].isNaN(value) ? "" + value : null;
|
|
10368
9631
|
};
|
|
10369
9632
|
NumberType.prototype.parse = function (value) {
|
|
10370
9633
|
var parsed = Number.parseFloat(value);
|
|
10371
|
-
return ___default[
|
|
9634
|
+
return ___default['default'].isNaN(parsed) ? null : parsed;
|
|
10372
9635
|
};
|
|
10373
9636
|
return NumberType;
|
|
10374
9637
|
}());
|
|
@@ -10544,7 +9807,7 @@
|
|
|
10544
9807
|
exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
|
|
10545
9808
|
exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
|
|
10546
9809
|
exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
|
|
10547
|
-
exports.
|
|
9810
|
+
exports.AbstractInputActivity = AbstractInputActivity;
|
|
10548
9811
|
exports.AbstractInputComponent = AbstractInputComponent;
|
|
10549
9812
|
exports.AbstractInteractionContext = AbstractInteractionContext;
|
|
10550
9813
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
@@ -10555,6 +9818,7 @@
|
|
|
10555
9818
|
exports.AbstractTableModel = AbstractTableModel;
|
|
10556
9819
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
10557
9820
|
exports.Activity = Activity;
|
|
9821
|
+
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
10558
9822
|
exports.ActivityBodyComponent = ActivityBodyComponent;
|
|
10559
9823
|
exports.ActivityContainerComponent = ActivityContainerComponent;
|
|
10560
9824
|
exports.ActivityOutletComponent = ActivityOutletComponent;
|
|
@@ -10568,7 +9832,6 @@
|
|
|
10568
9832
|
exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
|
|
10569
9833
|
exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
|
|
10570
9834
|
exports.CardContainerComponent = CardContainerComponent;
|
|
10571
|
-
exports.CardStackComponent = CardStackComponent;
|
|
10572
9835
|
exports.CellEditorPortalRef = CellEditorPortalRef;
|
|
10573
9836
|
exports.CellHeaderPortalRef = CellHeaderPortalRef;
|
|
10574
9837
|
exports.CellPortalRef = CellPortalRef;
|
|
@@ -10618,10 +9881,8 @@
|
|
|
10618
9881
|
exports.InteractionModule = InteractionModule;
|
|
10619
9882
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
10620
9883
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
10621
|
-
exports.LabelledValueComponent = LabelledValueComponent;
|
|
10622
9884
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
10623
9885
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
10624
|
-
exports.LoadingContainerComponent = LoadingContainerComponent;
|
|
10625
9886
|
exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;
|
|
10626
9887
|
exports.ModalInteractionContextFactory = ModalInteractionContextFactory;
|
|
10627
9888
|
exports.MoreMenuComponent = MoreMenuComponent;
|
|
@@ -10700,10 +9961,9 @@
|
|
|
10700
9961
|
exports.slideDownOnEnterAnimation = slideDownOnEnterAnimation;
|
|
10701
9962
|
exports.slideRightOnEnterAnimation = slideRightOnEnterAnimation;
|
|
10702
9963
|
exports.treeNodeDecorator = treeNodeDecorator;
|
|
10703
|
-
exports
|
|
10704
|
-
exports["ɵ1"] = ɵ1;
|
|
9964
|
+
exports.ɵ0 = ɵ0;
|
|
10705
9965
|
|
|
10706
9966
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
10707
9967
|
|
|
10708
|
-
}));
|
|
9968
|
+
})));
|
|
10709
9969
|
//# sourceMappingURL=coolon-angular-ui-powerups.umd.js.map
|