@coolon/angular-ui-powerups 12.4.0-alpha.79 → 12.4.0-alpha.8
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 -11
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +336 -741
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +422 -1409
- 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-empty-state.d.ts +2 -1
- 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 -24
- package/cypress/package.json +1 -1
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +34 -8
- package/cypress/section.d.ts +55 -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-empty-state.js +2 -2
- package/esm2015/cypress/components/aup-empty-state.js.map +1 -1
- package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -1
- package/esm2015/cypress/components/aup-input.js +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 -24
- 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 +76 -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 +25 -43
- 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 +4 -8
- 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 +2 -2
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.js +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/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 +20 -34
- 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-portal-ref.js.map +1 -1
- package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.js +10 -35
- 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 +12 -19
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/edit-session.js.map +1 -0
- package/esm2015/lib/components/tables/{edit-session.metadata.json → table/edit-session.metadata.json} +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js +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 +13 -14
- package/esm2015/lib/components/tables/table/table.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/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/abstract-interaction-context.js +0 -7
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.js +1 -2
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/alert.js +1 -17
- package/esm2015/lib/interaction/alert.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 +14 -8
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +31 -8
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +26 -7
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +3 -10
- 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 +4 -8
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.js +9 -29
- 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/result.js +4 -0
- package/esm2015/lib/interaction/result.js.map +1 -0
- package/esm2015/lib/interaction/result.metadata.json +1 -0
- 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/visit.js +1 -5
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/esm2015/lib/services/exports.js +0 -2
- package/esm2015/lib/services/exports.js.map +1 -1
- package/esm2015/lib/services/exports.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +244 -546
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +354 -1199
- 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 +4 -8
- package/lib/components/section-header/section-header.component.d.ts +2 -5
- package/lib/components/tables/abstract-table-model.d.ts +7 -10
- package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
- package/lib/components/tables/table/cell-renderer.d.ts +0 -2
- package/lib/components/tables/table/column-model.d.ts +5 -14
- package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +1 -2
- package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +2 -4
- package/lib/components/tables/{edit-session.d.ts → table/edit-session.d.ts} +3 -3
- package/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +3 -2
- package/lib/components/tables/table/table.component.d.ts +12 -13
- 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/abstract-interaction-context.d.ts +0 -1
- package/lib/interaction/alert.d.ts +1 -7
- 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/alert-dialog/alert-dialog.component.d.ts +7 -2
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +10 -2
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +9 -2
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -2
- 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 +4 -8
- package/lib/interaction/interaction-context.d.ts +0 -1
- package/lib/interaction/result.d.ts +8 -0
- package/lib/place/place-component.d.ts +1 -6
- package/lib/place/place-router.d.ts +2 -2
- package/lib/services/exports.d.ts +0 -2
- package/package.json +16 -17
- 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/assets/markdown.scss +0 -10
- package/assets/pills.scss +0 -45
- 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-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-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/edit-session.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/components/text/markdown/markdown.component.js +0 -76
- package/esm2015/lib/components/text/markdown/markdown.component.js.map +0 -1
- package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +0 -1
- package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +0 -23
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +0 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/abstract-dialog.component.js +0 -52
- package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +0 -1
- package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +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/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +0 -30
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +0 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.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/esm2015/lib/services/markdown/markdown.service.js +0 -25
- package/esm2015/lib/services/markdown/markdown.service.js.map +0 -1
- package/esm2015/lib/services/markdown/markdown.service.metadata.json +0 -1
- package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +0 -1
- package/esm2015/lib/services/markdown/pill-plugin.js +0 -38
- package/esm2015/lib/services/markdown/pill-plugin.js.map +0 -1
- package/esm2015/lib/services/markdown/pill-plugin.metadata.json +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/components/text/markdown/markdown.component.d.ts +0 -28
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -7
- package/lib/interaction/components/abstract-dialog.component.d.ts +0 -17
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +0 -12
- 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
- package/lib/services/markdown/markdown.service.d.ts +0 -6
- package/lib/services/markdown/pill-plugin.d.ts +0 -15
- /package/esm2015/lib/components/tables/{edit-session.js → table/edit-session.js} +0 -0
|
@@ -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
|
|
@@ -742,67 +738,6 @@
|
|
|
742
738
|
},] }
|
|
743
739
|
];
|
|
744
740
|
|
|
745
|
-
var markdownPillExtension = function (renderPill) {
|
|
746
|
-
return {
|
|
747
|
-
name: 'aup-pill',
|
|
748
|
-
level: 'inline',
|
|
749
|
-
start: function (src) {
|
|
750
|
-
var _a;
|
|
751
|
-
var index = (_a = src.match(/\(\([^)]/)) === null || _a === void 0 ? void 0 : _a.index;
|
|
752
|
-
// if (index) {
|
|
753
|
-
// console.log({start:src})
|
|
754
|
-
// }
|
|
755
|
-
return index;
|
|
756
|
-
},
|
|
757
|
-
tokenizer: function (src) {
|
|
758
|
-
var rule = /^(\(\((([^)])+)\)\))/; // Regex for the complete token
|
|
759
|
-
var match = rule.exec(src);
|
|
760
|
-
if (match) {
|
|
761
|
-
var token = {
|
|
762
|
-
type: 'aup-pill',
|
|
763
|
-
raw: match[0],
|
|
764
|
-
text: match[2].trim(), // Additional custom properties
|
|
765
|
-
// tokens: [] // Array where child inline tokens will be generated
|
|
766
|
-
};
|
|
767
|
-
// console.log(token)
|
|
768
|
-
// this.lexer.inlineTokens(token.text, token.tokens); // Queue this data to be processed for inline tokens
|
|
769
|
-
return token;
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
return undefined;
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
renderer: function (token) {
|
|
776
|
-
// @ts-ignore (until typings are up to date)
|
|
777
|
-
var url = token.text;
|
|
778
|
-
return renderPill(token.text);
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
var MarkdownService = /** @class */ (function () {
|
|
784
|
-
function MarkdownService() {
|
|
785
|
-
}
|
|
786
|
-
MarkdownService.prototype.render = function (content) {
|
|
787
|
-
return marked.marked.parse(content, {
|
|
788
|
-
smartLists: true
|
|
789
|
-
});
|
|
790
|
-
};
|
|
791
|
-
MarkdownService.prototype.renderInline = function (content) {
|
|
792
|
-
return marked.marked.parseInline(content);
|
|
793
|
-
};
|
|
794
|
-
MarkdownService.prototype.usePillExtension = function (renderer) {
|
|
795
|
-
marked.marked.use({
|
|
796
|
-
extensions: [markdownPillExtension(renderer !== null && renderer !== void 0 ? renderer : (function (text) { return "<span class='aup-pill'>" + text + "<span>"; }))]
|
|
797
|
-
});
|
|
798
|
-
};
|
|
799
|
-
return MarkdownService;
|
|
800
|
-
}());
|
|
801
|
-
MarkdownService.decorators = [
|
|
802
|
-
{ type: i0.Injectable }
|
|
803
|
-
];
|
|
804
|
-
MarkdownService.ctorParameters = function () { return []; };
|
|
805
|
-
|
|
806
741
|
var BusyOverlayComponent = /** @class */ (function (_super) {
|
|
807
742
|
__extends(BusyOverlayComponent, _super);
|
|
808
743
|
function BusyOverlayComponent() {
|
|
@@ -816,7 +751,7 @@
|
|
|
816
751
|
{ type: i0.Component, args: [{
|
|
817
752
|
selector: 'aup-busy-overlay',
|
|
818
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",
|
|
819
|
-
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}"]
|
|
820
755
|
},] }
|
|
821
756
|
];
|
|
822
757
|
BusyOverlayComponent.ctorParameters = function () { return []; };
|
|
@@ -833,32 +768,6 @@
|
|
|
833
768
|
__metadata("design:type", Boolean)
|
|
834
769
|
], BusyOverlayComponent.prototype, "busy", void 0);
|
|
835
770
|
|
|
836
|
-
var AbstractCardContainerComponent = /** @class */ (function (_super) {
|
|
837
|
-
__extends(AbstractCardContainerComponent, _super);
|
|
838
|
-
function AbstractCardContainerComponent() {
|
|
839
|
-
return _super.call(this) || this;
|
|
840
|
-
}
|
|
841
|
-
AbstractCardContainerComponent.prototype.ngOnInit = function () {
|
|
842
|
-
};
|
|
843
|
-
return AbstractCardContainerComponent;
|
|
844
|
-
}(DisposableComponent));
|
|
845
|
-
AbstractCardContainerComponent.decorators = [
|
|
846
|
-
{ type: i0.Component, args: [{
|
|
847
|
-
selector: 'aup-abstract-card-container',
|
|
848
|
-
template: ''
|
|
849
|
-
},] }
|
|
850
|
-
];
|
|
851
|
-
AbstractCardContainerComponent.ctorParameters = function () { return []; };
|
|
852
|
-
AbstractCardContainerComponent.propDecorators = {
|
|
853
|
-
addCardCommand: [{ type: i0.Input }],
|
|
854
|
-
addCardFace: [{ type: i0.Input }],
|
|
855
|
-
addCardTemplate: [{ type: i0.ContentChild, args: ['addCardTemplate',] }]
|
|
856
|
-
};
|
|
857
|
-
__decorate([
|
|
858
|
-
pectin.TrackExternal(),
|
|
859
|
-
__metadata("design:type", pectin.Command)
|
|
860
|
-
], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
|
|
861
|
-
|
|
862
771
|
/**
|
|
863
772
|
* @example
|
|
864
773
|
* // basic usage
|
|
@@ -876,13 +785,6 @@
|
|
|
876
785
|
* <my-card *ngFor="..."></my-card>
|
|
877
786
|
* </aup-card-container>
|
|
878
787
|
*
|
|
879
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
880
|
-
* // the activity inside teh card
|
|
881
|
-
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
882
|
-
* <my-card *ngFor="..."></my-card>
|
|
883
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
884
|
-
* </aup-card-container>
|
|
885
|
-
*
|
|
886
788
|
* // adds an add card component using the specified template. The template
|
|
887
789
|
* // will fill it's container in the grid.
|
|
888
790
|
* <aup-card-container>
|
|
@@ -915,7 +817,6 @@
|
|
|
915
817
|
* aup-card-container {
|
|
916
818
|
* --card-gap: var(--card-gap, 16px);
|
|
917
819
|
* --card-width: var(--card-width, 300px);
|
|
918
|
-
* --card-max-width: auto;
|
|
919
820
|
* --card-height: var(--card-height, auto);
|
|
920
821
|
* --card-min-height: var(--card-min-height, auto);
|
|
921
822
|
* --card-background: var(--card-background, #fcfcfb);
|
|
@@ -923,154 +824,30 @@
|
|
|
923
824
|
*/
|
|
924
825
|
var CardContainerComponent = /** @class */ (function (_super) {
|
|
925
826
|
__extends(CardContainerComponent, _super);
|
|
926
|
-
function CardContainerComponent(
|
|
927
|
-
|
|
928
|
-
_this.elementRef = elementRef;
|
|
929
|
-
/**
|
|
930
|
-
* Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
|
|
931
|
-
* or place in a layout that will stretch it such as a grid or flex layout.
|
|
932
|
-
*/
|
|
933
|
-
_this.enabledScroll = false;
|
|
934
|
-
return _this;
|
|
827
|
+
function CardContainerComponent() {
|
|
828
|
+
return _super.call(this) || this;
|
|
935
829
|
}
|
|
936
|
-
Object.defineProperty(CardContainerComponent.prototype, "columnCount", {
|
|
937
|
-
get: function () {
|
|
938
|
-
return this._columnCount;
|
|
939
|
-
},
|
|
940
|
-
set: function (count) {
|
|
941
|
-
if (!___namespace.isNil(count) && (!___namespace.isInteger(count) || count < 1)) {
|
|
942
|
-
typescriptUtilities.lang.illegalState('columnCount must be a positive integer or nil');
|
|
943
|
-
}
|
|
944
|
-
this._columnCount = count;
|
|
945
|
-
this.updateColumnCountStyles();
|
|
946
|
-
},
|
|
947
|
-
enumerable: false,
|
|
948
|
-
configurable: true
|
|
949
|
-
});
|
|
950
830
|
CardContainerComponent.prototype.ngOnInit = function () {
|
|
951
|
-
_super.prototype.ngOnInit.call(this);
|
|
952
|
-
this.updateColumnCountStyles();
|
|
953
|
-
};
|
|
954
|
-
Object.defineProperty(CardContainerComponent.prototype, "isAutoColumns", {
|
|
955
|
-
get: function () {
|
|
956
|
-
return ___namespace.isNil(this._columnCount);
|
|
957
|
-
},
|
|
958
|
-
enumerable: false,
|
|
959
|
-
configurable: true
|
|
960
|
-
});
|
|
961
|
-
Object.defineProperty(CardContainerComponent.prototype, "isSingleColumn", {
|
|
962
|
-
get: function () {
|
|
963
|
-
return this._columnCount === 1;
|
|
964
|
-
},
|
|
965
|
-
enumerable: false,
|
|
966
|
-
configurable: true
|
|
967
|
-
});
|
|
968
|
-
CardContainerComponent.prototype.updateColumnCountStyles = function () {
|
|
969
|
-
var el = this.elementRef.nativeElement;
|
|
970
|
-
if (___namespace.isNil(this._columnCount)) {
|
|
971
|
-
el.style.setProperty('--aup-card-container-column-count', '');
|
|
972
|
-
}
|
|
973
|
-
else {
|
|
974
|
-
el.style.setProperty('--aup-card-container-column-count', this._columnCount);
|
|
975
|
-
}
|
|
976
831
|
};
|
|
977
832
|
return CardContainerComponent;
|
|
978
|
-
}(
|
|
833
|
+
}(DisposableComponent));
|
|
979
834
|
CardContainerComponent.decorators = [
|
|
980
835
|
{ type: i0.Component, args: [{
|
|
981
836
|
selector: 'aup-card-container',
|
|
982
|
-
template: "<div class=\"
|
|
983
|
-
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}"]
|
|
984
839
|
},] }
|
|
985
840
|
];
|
|
986
|
-
CardContainerComponent.ctorParameters = function () { return [
|
|
987
|
-
{ type: i0.ElementRef }
|
|
988
|
-
]; };
|
|
841
|
+
CardContainerComponent.ctorParameters = function () { return []; };
|
|
989
842
|
CardContainerComponent.propDecorators = {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
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",] }]
|
|
994
846
|
};
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
* // basic usage
|
|
1000
|
-
* <aup-card-stack>
|
|
1001
|
-
* <my-card *ngFor="..."></my-card>
|
|
1002
|
-
* </aup-card-stack>
|
|
1003
|
-
*
|
|
1004
|
-
* // adds an add button with a the '+' icon to the end of the card list.
|
|
1005
|
-
* <aup-card-stack [addCardCommand]="addCard">
|
|
1006
|
-
* <my-card *ngFor="..."></my-card>
|
|
1007
|
-
* </aup-card-stack>
|
|
1008
|
-
*
|
|
1009
|
-
* // adds an add button with the specified face
|
|
1010
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
1011
|
-
* <my-card *ngFor="..."></my-card>
|
|
1012
|
-
* </aup-card-stack>
|
|
1013
|
-
*
|
|
1014
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
1015
|
-
* // the activity inside teh card
|
|
1016
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
1017
|
-
* <my-card *ngFor="..."></my-card>
|
|
1018
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
1019
|
-
* </aup-card-stack>
|
|
1020
|
-
*
|
|
1021
|
-
* // adds an add card component using the specified template. The template
|
|
1022
|
-
* // will fill it's container in the grid.
|
|
1023
|
-
* <aup-card-stack>
|
|
1024
|
-
* <my-card *ngFor="..."></my-card>
|
|
1025
|
-
* <ng-template #addCardTemplate>
|
|
1026
|
-
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
1027
|
-
* </ng-template>
|
|
1028
|
-
* </aup-card-stack>
|
|
1029
|
-
*
|
|
1030
|
-
* // sing the default new card styles for your template
|
|
1031
|
-
* @import "../../../../assets/styles";
|
|
1032
|
-
* .my-new-card {
|
|
1033
|
-
* @include aup-card-stack-new-card-style();
|
|
1034
|
-
* // OR
|
|
1035
|
-
* @include aup-card-stack-new-card-style(
|
|
1036
|
-
* $color: rgba(0,0,0,0.54),
|
|
1037
|
-
* $background-color: rgba(255,255,255,0.8),
|
|
1038
|
-
* $hover-color: $color,
|
|
1039
|
-
* $background-hover-color: white
|
|
1040
|
-
* )
|
|
1041
|
-
* }
|
|
1042
|
-
* <aup-card-stack>
|
|
1043
|
-
* <my-card *ngFor="..."></my-card>
|
|
1044
|
-
* <ng-template #addCardTemplate>
|
|
1045
|
-
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
1046
|
-
* </ng-template>
|
|
1047
|
-
* </aup-card-stack>
|
|
1048
|
-
*
|
|
1049
|
-
* // CSS Vars
|
|
1050
|
-
* aup-card-stack {
|
|
1051
|
-
* --card-gap: var(--card-gap, 16px);
|
|
1052
|
-
* --card-height: var(--card-height, auto);
|
|
1053
|
-
* --card-min-height: var(--card-min-height, auto);
|
|
1054
|
-
* --card-background: var(--card-background, #fcfcfb);
|
|
1055
|
-
* }
|
|
1056
|
-
*/
|
|
1057
|
-
var CardStackComponent = /** @class */ (function (_super) {
|
|
1058
|
-
__extends(CardStackComponent, _super);
|
|
1059
|
-
function CardStackComponent() {
|
|
1060
|
-
var _this = _super.call(this) || this;
|
|
1061
|
-
console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
|
|
1062
|
-
return _this;
|
|
1063
|
-
}
|
|
1064
|
-
return CardStackComponent;
|
|
1065
|
-
}(AbstractCardContainerComponent));
|
|
1066
|
-
CardStackComponent.decorators = [
|
|
1067
|
-
{ type: i0.Component, args: [{
|
|
1068
|
-
selector: 'aup-card-stack',
|
|
1069
|
-
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",
|
|
1070
|
-
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"]
|
|
1071
|
-
},] }
|
|
1072
|
-
];
|
|
1073
|
-
CardStackComponent.ctorParameters = function () { return []; };
|
|
847
|
+
__decorate([
|
|
848
|
+
pectin.TrackExternal(),
|
|
849
|
+
__metadata("design:type", pectin.Command)
|
|
850
|
+
], CardContainerComponent.prototype, "addCardCommand", void 0);
|
|
1074
851
|
|
|
1075
852
|
exports.CommandFace = void 0;
|
|
1076
853
|
(function (CommandFace) {
|
|
@@ -1085,27 +862,27 @@
|
|
|
1085
862
|
RAISED: 'raised'
|
|
1086
863
|
});
|
|
1087
864
|
function getColorOf(face) {
|
|
1088
|
-
return ___default[
|
|
865
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
|
|
1089
866
|
}
|
|
1090
867
|
CommandFace.getColorOf = getColorOf;
|
|
1091
868
|
function getStyleOf(face) {
|
|
1092
|
-
return ___default[
|
|
869
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
|
|
1093
870
|
}
|
|
1094
871
|
CommandFace.getStyleOf = getStyleOf;
|
|
1095
872
|
function getIconOf(face) {
|
|
1096
|
-
return ___default[
|
|
873
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
|
|
1097
874
|
}
|
|
1098
875
|
CommandFace.getIconOf = getIconOf;
|
|
1099
876
|
function getIconPositionOf(face) {
|
|
1100
|
-
return ___default[
|
|
877
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
|
|
1101
878
|
}
|
|
1102
879
|
CommandFace.getIconPositionOf = getIconPositionOf;
|
|
1103
880
|
function getTooltipOf(face) {
|
|
1104
|
-
return ___default[
|
|
881
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
|
|
1105
882
|
}
|
|
1106
883
|
CommandFace.getTooltipOf = getTooltipOf;
|
|
1107
884
|
function getTextOf(face) {
|
|
1108
|
-
return ___default[
|
|
885
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
|
|
1109
886
|
}
|
|
1110
887
|
CommandFace.getTextOf = getTextOf;
|
|
1111
888
|
var Adapter = /** @class */ (function () {
|
|
@@ -1238,13 +1015,6 @@
|
|
|
1238
1015
|
_this.activeColor = activeFace.pluck("color");
|
|
1239
1016
|
return _this;
|
|
1240
1017
|
}
|
|
1241
|
-
Object.defineProperty(CommandFaceComponent.prototype, "face", {
|
|
1242
|
-
set: function (face) {
|
|
1243
|
-
this.facesModel.value = [face];
|
|
1244
|
-
},
|
|
1245
|
-
enumerable: false,
|
|
1246
|
-
configurable: true
|
|
1247
|
-
});
|
|
1248
1018
|
Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
|
|
1249
1019
|
get: function () {
|
|
1250
1020
|
return this.includeMissingIconInLayout && !this.activeIcon.value;
|
|
@@ -1277,13 +1047,12 @@
|
|
|
1277
1047
|
selector: 'aup-command-face',
|
|
1278
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",
|
|
1279
1049
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1280
|
-
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}"]
|
|
1281
1051
|
},] }
|
|
1282
1052
|
];
|
|
1283
1053
|
CommandFaceComponent.ctorParameters = function () { return []; };
|
|
1284
1054
|
CommandFaceComponent.propDecorators = {
|
|
1285
1055
|
_rawFaces: [{ type: i0.Input, args: ['faces',] }],
|
|
1286
|
-
face: [{ type: i0.Input }],
|
|
1287
1056
|
ignoreIcon: [{ type: i0.Input }],
|
|
1288
1057
|
ignoreText: [{ type: i0.Input }],
|
|
1289
1058
|
includeMissingIconInLayout: [{ type: i0.Input }],
|
|
@@ -1356,7 +1125,7 @@
|
|
|
1356
1125
|
_this.colorModel = chain(_this.activeFace).map(function (f) { return exports.CommandFace.getColorOf(f); });
|
|
1357
1126
|
_this.tooltipModel = chain(_this.activeFace).map(function (f) { return exports.CommandFace.getTooltipOf(f); });
|
|
1358
1127
|
_this.iconOnly = _this.faces.select(function (face) {
|
|
1359
|
-
return ___default[
|
|
1128
|
+
return ___default['default'].isEmpty(exports.CommandFace.getTextOf(face)) && !___default['default'].isEmpty(exports.CommandFace.getIconOf(face));
|
|
1360
1129
|
}).count().equals(_this.faces.count());
|
|
1361
1130
|
return _this;
|
|
1362
1131
|
}
|
|
@@ -1377,7 +1146,7 @@
|
|
|
1377
1146
|
{ type: i0.Component, args: [{
|
|
1378
1147
|
selector: 'aup-command',
|
|
1379
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",
|
|
1380
|
-
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}"]
|
|
1381
1150
|
},] }
|
|
1382
1151
|
];
|
|
1383
1152
|
CommandComponent.ctorParameters = function () { return [
|
|
@@ -1441,7 +1210,7 @@
|
|
|
1441
1210
|
function AbstractPopupMenuComponent(element, parent) {
|
|
1442
1211
|
var _this = _super.call(this, element, parent) || this;
|
|
1443
1212
|
_this._unorderedChildren = new pectin.MutableListModel();
|
|
1444
|
-
_this.faceModelDelegate =
|
|
1213
|
+
_this.faceModelDelegate = new pectin.DelegatingValueModel();
|
|
1445
1214
|
_this.xPosition = 'after';
|
|
1446
1215
|
_this.yPosition = 'below';
|
|
1447
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;
|
|
@@ -1566,22 +1335,10 @@
|
|
|
1566
1335
|
exports.TrackBy = void 0;
|
|
1567
1336
|
(function (TrackBy) {
|
|
1568
1337
|
TrackBy.byIndex = function (index, item) { return index; };
|
|
1569
|
-
/**
|
|
1570
|
-
* @deprecated use #track(MyType).by("property") instead.
|
|
1571
|
-
* @param property
|
|
1572
|
-
*/
|
|
1573
1338
|
function trackByProperty(property) {
|
|
1574
1339
|
return function (index, item) { return item[property]; };
|
|
1575
1340
|
}
|
|
1576
1341
|
TrackBy.trackByProperty = trackByProperty;
|
|
1577
|
-
function track(type) {
|
|
1578
|
-
return {
|
|
1579
|
-
by: function (property) {
|
|
1580
|
-
return function (index, item) { return item[property]; };
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
}
|
|
1584
|
-
TrackBy.track = track;
|
|
1585
1342
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1586
1343
|
|
|
1587
1344
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -1646,7 +1403,7 @@
|
|
|
1646
1403
|
selector: 'aup-tool-bar',
|
|
1647
1404
|
template: '<div class="toolbar-content"><ng-content></ng-content></div>',
|
|
1648
1405
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1649
|
-
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}"]
|
|
1650
1407
|
},] }
|
|
1651
1408
|
];
|
|
1652
1409
|
ToolBarComponent.ctorParameters = function () { return []; };
|
|
@@ -1672,7 +1429,8 @@
|
|
|
1672
1429
|
{ type: i0.Component, args: [{
|
|
1673
1430
|
selector: 'aup-separator',
|
|
1674
1431
|
template: "\n <mat-divider [vertical]=\"!isHorizontalContainer()\"></mat-divider>",
|
|
1675
|
-
styles: [":host {\n }",
|
|
1432
|
+
styles: [":host {\n }",
|
|
1433
|
+
":host(.horizontal-container) {\n display: inline-flex;\n flex-direction: row;\n align-items: stretch;\n }"]
|
|
1676
1434
|
},] }
|
|
1677
1435
|
];
|
|
1678
1436
|
SeparatorComponent.ctorParameters = function () { return [
|
|
@@ -1688,7 +1446,7 @@
|
|
|
1688
1446
|
__extends(PopupMenuRendererComponent, _super);
|
|
1689
1447
|
function PopupMenuRendererComponent() {
|
|
1690
1448
|
var _this = _super.call(this) || this;
|
|
1691
|
-
_this._childList =
|
|
1449
|
+
_this._childList = new pectin.DelegatingListModel();
|
|
1692
1450
|
_this.commandFired = new i0.EventEmitter();
|
|
1693
1451
|
_this.TrackBy = exports.TrackBy;
|
|
1694
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;
|
|
@@ -1829,7 +1587,7 @@
|
|
|
1829
1587
|
{ type: i0.Component, args: [{
|
|
1830
1588
|
selector: 'aup-empty-state',
|
|
1831
1589
|
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
1832
|
-
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}"]
|
|
1833
1591
|
},] }
|
|
1834
1592
|
];
|
|
1835
1593
|
EmptyStateComponent.ctorParameters = function () { return []; };
|
|
@@ -1860,7 +1618,7 @@
|
|
|
1860
1618
|
providers: [
|
|
1861
1619
|
{ provide: pectin.FocusManager }
|
|
1862
1620
|
],
|
|
1863
|
-
styles: [":host{display:block}
|
|
1621
|
+
styles: [":host{display:block}"]
|
|
1864
1622
|
},] }
|
|
1865
1623
|
];
|
|
1866
1624
|
FocusContainerComponent.ctorParameters = function () { return [
|
|
@@ -1927,7 +1685,6 @@
|
|
|
1927
1685
|
function AbstractInputComponent() {
|
|
1928
1686
|
var _this = _super.call(this) || this;
|
|
1929
1687
|
_this.onValueEditedListeners = new pectin.EventListenerList();
|
|
1930
|
-
_this.userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1931
1688
|
_this.dense = false;
|
|
1932
1689
|
// TODO: fix this.
|
|
1933
1690
|
// tslint:disable-next-line:no-output-native
|
|
@@ -2209,10 +1966,10 @@
|
|
|
2209
1966
|
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2210
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;
|
|
2211
1968
|
var lowerCaseFilterValue = chain(_this.filterValue)
|
|
2212
|
-
.map(function (v) { return ___default[
|
|
1969
|
+
.map(function (v) { return ___default['default'].isString(v) ? v.toLowerCase() : ''; });
|
|
2213
1970
|
_this.filteredOptions = chain(_this.optionsModel)
|
|
2214
1971
|
.select(function (option) {
|
|
2215
|
-
return ___default[
|
|
1972
|
+
return ___default['default'].isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
|
|
2216
1973
|
}, { dependsOn: lowerCaseFilterValue });
|
|
2217
1974
|
return _this;
|
|
2218
1975
|
}
|
|
@@ -2233,7 +1990,7 @@
|
|
|
2233
1990
|
{ type: i0.Component, args: [{
|
|
2234
1991
|
selector: 'aup-autocomplete-input',
|
|
2235
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",
|
|
2236
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
1993
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2237
1994
|
},] }
|
|
2238
1995
|
];
|
|
2239
1996
|
AutocompleteInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2272,7 +2029,7 @@
|
|
|
2272
2029
|
{ type: i0.Component, args: [{
|
|
2273
2030
|
selector: 'aup-checkbox-input',
|
|
2274
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",
|
|
2275
|
-
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}"]
|
|
2276
2033
|
},] }
|
|
2277
2034
|
];
|
|
2278
2035
|
CheckboxInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2303,7 +2060,7 @@
|
|
|
2303
2060
|
{ type: i0.Component, args: [{
|
|
2304
2061
|
selector: 'aup-multiple-select-input',
|
|
2305
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",
|
|
2306
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
2063
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2307
2064
|
},] }
|
|
2308
2065
|
];
|
|
2309
2066
|
MultipleSelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2392,8 +2149,8 @@
|
|
|
2392
2149
|
SelectInputComponent.decorators = [
|
|
2393
2150
|
{ type: i0.Component, args: [{
|
|
2394
2151
|
selector: 'aup-select-input',
|
|
2395
|
-
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
|
|
2396
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
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",
|
|
2153
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2397
2154
|
},] }
|
|
2398
2155
|
];
|
|
2399
2156
|
SelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2434,7 +2191,7 @@
|
|
|
2434
2191
|
{ type: i0.Component, args: [{
|
|
2435
2192
|
selector: 'aup-string-input',
|
|
2436
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",
|
|
2437
|
-
styles: ["button[disabled]{visibility:hidden}
|
|
2194
|
+
styles: ["button[disabled]{visibility:hidden}"]
|
|
2438
2195
|
},] }
|
|
2439
2196
|
];
|
|
2440
2197
|
StringInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2471,7 +2228,7 @@
|
|
|
2471
2228
|
{ type: i0.Component, args: [{
|
|
2472
2229
|
selector: 'aup-text-input',
|
|
2473
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",
|
|
2474
|
-
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}
|
|
2231
|
+
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
2475
2232
|
},] }
|
|
2476
2233
|
];
|
|
2477
2234
|
TextInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2515,7 +2272,7 @@
|
|
|
2515
2272
|
{ type: i0.Component, args: [{
|
|
2516
2273
|
selector: 'aup-icon',
|
|
2517
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",
|
|
2518
|
-
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}"]
|
|
2519
2276
|
},] }
|
|
2520
2277
|
];
|
|
2521
2278
|
exports.IconComponent.propDecorators = {
|
|
@@ -2529,54 +2286,6 @@
|
|
|
2529
2286
|
});
|
|
2530
2287
|
})(exports.IconComponent || (exports.IconComponent = {}));
|
|
2531
2288
|
|
|
2532
|
-
var LoadingContainerComponent = /** @class */ (function (_super) {
|
|
2533
|
-
__extends(LoadingContainerComponent, _super);
|
|
2534
|
-
function LoadingContainerComponent() {
|
|
2535
|
-
return _super.call(this) || this;
|
|
2536
|
-
}
|
|
2537
|
-
Object.defineProperty(LoadingContainerComponent.prototype, "state", {
|
|
2538
|
-
get: function () {
|
|
2539
|
-
return this.loadingModel.value ? "loaded" : "loading";
|
|
2540
|
-
},
|
|
2541
|
-
enumerable: false,
|
|
2542
|
-
configurable: true
|
|
2543
|
-
});
|
|
2544
|
-
LoadingContainerComponent.prototype.ngOnInit = function () {
|
|
2545
|
-
};
|
|
2546
|
-
return LoadingContainerComponent;
|
|
2547
|
-
}(pectin.GarbageCollector));
|
|
2548
|
-
LoadingContainerComponent.decorators = [
|
|
2549
|
-
{ type: i0.Component, args: [{
|
|
2550
|
-
selector: 'aup-loading-container',
|
|
2551
|
-
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",
|
|
2552
|
-
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"]
|
|
2553
|
-
},] }
|
|
2554
|
-
];
|
|
2555
|
-
LoadingContainerComponent.ctorParameters = function () { return []; };
|
|
2556
|
-
LoadingContainerComponent.propDecorators = {
|
|
2557
|
-
loadingModel: [{ type: i0.Input }],
|
|
2558
|
-
loading: [{ type: i0.Input }],
|
|
2559
|
-
messageModel: [{ type: i0.Input }],
|
|
2560
|
-
message: [{ type: i0.Input }],
|
|
2561
|
-
state: [{ type: i0.HostBinding, args: ["class",] }]
|
|
2562
|
-
};
|
|
2563
|
-
__decorate([
|
|
2564
|
-
pectin.TrackExternal(),
|
|
2565
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2566
|
-
], LoadingContainerComponent.prototype, "loadingModel", void 0);
|
|
2567
|
-
__decorate([
|
|
2568
|
-
pectin.StoreInValueModel("loadingModel"),
|
|
2569
|
-
__metadata("design:type", Boolean)
|
|
2570
|
-
], LoadingContainerComponent.prototype, "loading", void 0);
|
|
2571
|
-
__decorate([
|
|
2572
|
-
pectin.TrackExternal(),
|
|
2573
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2574
|
-
], LoadingContainerComponent.prototype, "messageModel", void 0);
|
|
2575
|
-
__decorate([
|
|
2576
|
-
pectin.StoreInValueModel("messageModel"),
|
|
2577
|
-
__metadata("design:type", String)
|
|
2578
|
-
], LoadingContainerComponent.prototype, "message", void 0);
|
|
2579
|
-
|
|
2580
2289
|
var NoopComponent = /** @class */ (function () {
|
|
2581
2290
|
function NoopComponent() {
|
|
2582
2291
|
}
|
|
@@ -2586,7 +2295,7 @@
|
|
|
2586
2295
|
{ type: i0.Component, args: [{
|
|
2587
2296
|
selector: 'aup-noop',
|
|
2588
2297
|
template: "",
|
|
2589
|
-
styles: [":host{display:block}
|
|
2298
|
+
styles: [":host{display:block}"]
|
|
2590
2299
|
},] }
|
|
2591
2300
|
];
|
|
2592
2301
|
NoopComponent.ctorParameters = function () { return []; };
|
|
@@ -2602,37 +2311,29 @@
|
|
|
2602
2311
|
{ type: i0.Component, args: [{
|
|
2603
2312
|
selector: 'aup-scroll-container',
|
|
2604
2313
|
template: "<div class=\"container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n",
|
|
2605
|
-
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}"]
|
|
2606
2315
|
},] }
|
|
2607
2316
|
];
|
|
2608
2317
|
ScrollContainerComponent.ctorParameters = function () { return []; };
|
|
2609
2318
|
|
|
2610
|
-
var SectionHeaderComponent = /** @class */ (function (
|
|
2611
|
-
__extends(SectionHeaderComponent, _super);
|
|
2319
|
+
var SectionHeaderComponent = /** @class */ (function () {
|
|
2612
2320
|
function SectionHeaderComponent() {
|
|
2613
|
-
|
|
2614
|
-
// readonly i18n = I18nMarsUi.components.layout.header;
|
|
2615
|
-
_this.size = 'medium';
|
|
2616
|
-
_this.borderTop = false;
|
|
2617
|
-
_this.borderBottom = false;
|
|
2618
|
-
return _this;
|
|
2321
|
+
this.underline = false;
|
|
2619
2322
|
}
|
|
2620
2323
|
SectionHeaderComponent.prototype.ngOnInit = function () {
|
|
2621
2324
|
};
|
|
2622
2325
|
return SectionHeaderComponent;
|
|
2623
|
-
}(
|
|
2326
|
+
}());
|
|
2624
2327
|
SectionHeaderComponent.decorators = [
|
|
2625
2328
|
{ type: i0.Component, args: [{
|
|
2626
2329
|
selector: 'aup-section-header',
|
|
2627
|
-
template: "<
|
|
2628
|
-
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)}"]
|
|
2629
2332
|
},] }
|
|
2630
2333
|
];
|
|
2631
2334
|
SectionHeaderComponent.ctorParameters = function () { return []; };
|
|
2632
2335
|
SectionHeaderComponent.propDecorators = {
|
|
2633
|
-
|
|
2634
|
-
borderTop: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-top',] }],
|
|
2635
|
-
borderBottom: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-bottom',] }]
|
|
2336
|
+
underline: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.underline',] }]
|
|
2636
2337
|
};
|
|
2637
2338
|
|
|
2638
2339
|
var SwitchCaseOption = /** @class */ (function () {
|
|
@@ -2753,7 +2454,7 @@
|
|
|
2753
2454
|
{ type: i0.Component, args: [{
|
|
2754
2455
|
selector: 'aup-switch-case',
|
|
2755
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",
|
|
2756
|
-
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}"]
|
|
2757
2458
|
},] }
|
|
2758
2459
|
];
|
|
2759
2460
|
SwitchCaseComponent.ctorParameters = function () { return [
|
|
@@ -2835,7 +2536,7 @@
|
|
|
2835
2536
|
ResizeAwareComponent.prototype.ngAfterViewInit = function () {
|
|
2836
2537
|
var _this = this;
|
|
2837
2538
|
var element = this.elementRef.nativeElement;
|
|
2838
|
-
var ro = new ResizeObserver__default[
|
|
2539
|
+
var ro = new ResizeObserver__default['default'](function (entries, observer) {
|
|
2839
2540
|
_this.ngZone.run(function () { return _this._updateBounds(); });
|
|
2840
2541
|
});
|
|
2841
2542
|
ro.observe(element);
|
|
@@ -3036,38 +2737,19 @@
|
|
|
3036
2737
|
__extends(EditRowControls, _super);
|
|
3037
2738
|
function EditRowControls() {
|
|
3038
2739
|
var _this = _super.call(this) || this;
|
|
3039
|
-
_this.saveCommand = pectin.Command.create(function () {
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
case 1:
|
|
3045
|
-
finished = _b.sent();
|
|
3046
|
-
if (finished) {
|
|
3047
|
-
this.editSession.dispose();
|
|
3048
|
-
}
|
|
3049
|
-
return [2 /*return*/];
|
|
2740
|
+
_this.saveCommand = pectin.Command.create(function () {
|
|
2741
|
+
_this.editSession.saveCommand.execute(_this.editSession.form)
|
|
2742
|
+
.then(function (finished) {
|
|
2743
|
+
if (finished) {
|
|
2744
|
+
_this.editSession.dispose();
|
|
3050
2745
|
}
|
|
3051
2746
|
});
|
|
3052
|
-
});
|
|
2747
|
+
});
|
|
3053
2748
|
_this.cancelCommand = pectin.Command.create(function () {
|
|
3054
2749
|
_this.editSession.dispose();
|
|
3055
|
-
})
|
|
2750
|
+
});
|
|
3056
2751
|
return _this;
|
|
3057
2752
|
}
|
|
3058
|
-
Object.defineProperty(EditRowControls.prototype, "editSession", {
|
|
3059
|
-
get: function () {
|
|
3060
|
-
return this._session;
|
|
3061
|
-
},
|
|
3062
|
-
set: function (session) {
|
|
3063
|
-
if (session) {
|
|
3064
|
-
session.form.disableWhile(this.saveCommand.busy);
|
|
3065
|
-
}
|
|
3066
|
-
this._session = session;
|
|
3067
|
-
},
|
|
3068
|
-
enumerable: false,
|
|
3069
|
-
configurable: true
|
|
3070
|
-
});
|
|
3071
2753
|
EditRowControls.prototype.ngOnInit = function () {
|
|
3072
2754
|
};
|
|
3073
2755
|
Object.defineProperty(EditRowControls.prototype, "form", {
|
|
@@ -3084,7 +2766,7 @@
|
|
|
3084
2766
|
{ type: i0.Component, args: [{
|
|
3085
2767
|
selector: 'aup-row-editor-controls',
|
|
3086
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",
|
|
3087
|
-
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}"]
|
|
3088
2770
|
},] }
|
|
3089
2771
|
];
|
|
3090
2772
|
EditRowControls.ctorParameters = function () { return []; };
|
|
@@ -3161,23 +2843,16 @@
|
|
|
3161
2843
|
};
|
|
3162
2844
|
var ɵ0 = noop;
|
|
3163
2845
|
var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol('aup-cell-renderer:row-data-cache');
|
|
3164
|
-
var
|
|
3165
|
-
var ɵ1 = DEFAULT_TEXT_SEARCH_PREDICATE;
|
|
3166
|
-
var ColumnModel = /** @class */ (function (_super) {
|
|
3167
|
-
__extends(ColumnModel, _super);
|
|
2846
|
+
var ColumnModel = /** @class */ (function () {
|
|
3168
2847
|
function ColumnModel(columnId, textPropertiesProvider) {
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
_this._cellRendererTextSearchPredicate = undefined;
|
|
3178
|
-
_this.installHeaderRenderer();
|
|
3179
|
-
_this.dasherisedColumnId = typescriptUtilities.Stringy.from(columnId).dasherize().toString();
|
|
3180
|
-
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();
|
|
3181
2856
|
}
|
|
3182
2857
|
ColumnModel.prototype.installHeaderRenderer = function () {
|
|
3183
2858
|
this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, function (component, column) {
|
|
@@ -3208,21 +2883,6 @@
|
|
|
3208
2883
|
ColumnModel.prototype.getDefaultHeaderText = function () {
|
|
3209
2884
|
return this.columnId;
|
|
3210
2885
|
};
|
|
3211
|
-
Object.defineProperty(ColumnModel.prototype, "isTextMatch", {
|
|
3212
|
-
get: function () {
|
|
3213
|
-
return this._columnModelTextSearchPredicate || this._cellRendererTextSearchPredicate || DEFAULT_TEXT_SEARCH_PREDICATE;
|
|
3214
|
-
},
|
|
3215
|
-
enumerable: false,
|
|
3216
|
-
configurable: true
|
|
3217
|
-
});
|
|
3218
|
-
/**
|
|
3219
|
-
* Sets the predicate to use when checking if the specified row is a text match for this column.
|
|
3220
|
-
* @param predicate
|
|
3221
|
-
*/
|
|
3222
|
-
ColumnModel.prototype.useTextSearchPredicate = function (predicate) {
|
|
3223
|
-
this._columnModelTextSearchPredicate = predicate;
|
|
3224
|
-
return this;
|
|
3225
|
-
};
|
|
3226
2886
|
ColumnModel.prototype.getColumnTextProperties = function () {
|
|
3227
2887
|
return this._columnTextProperties || this.textPropertiesProvider();
|
|
3228
2888
|
};
|
|
@@ -3274,12 +2934,6 @@
|
|
|
3274
2934
|
};
|
|
3275
2935
|
ColumnModel.prototype.onRendererAttached = function (host, component) {
|
|
3276
2936
|
this._cellRendererPortalRef.onPortalAttached(host, component);
|
|
3277
|
-
if (___default["default"].isFunction(component === null || component === void 0 ? void 0 : component.matches)) {
|
|
3278
|
-
this._cellRendererTextSearchPredicate = function (row, text) { return component.matches(row, text); };
|
|
3279
|
-
}
|
|
3280
|
-
else {
|
|
3281
|
-
this._cellRendererTextSearchPredicate = undefined;
|
|
3282
|
-
}
|
|
3283
2937
|
};
|
|
3284
2938
|
// @Trace()
|
|
3285
2939
|
ColumnModel.prototype.onEditorAttached = function (host, component) {
|
|
@@ -3296,7 +2950,7 @@
|
|
|
3296
2950
|
return this._enableRowSelection;
|
|
3297
2951
|
};
|
|
3298
2952
|
return ColumnModel;
|
|
3299
|
-
}(
|
|
2953
|
+
}());
|
|
3300
2954
|
__decorate([
|
|
3301
2955
|
src.Memoize(),
|
|
3302
2956
|
__metadata("design:type", Function),
|
|
@@ -3314,27 +2968,27 @@
|
|
|
3314
2968
|
function PropertyColumnModel(id, property, defaults) {
|
|
3315
2969
|
var _this = _super.call(this, id, defaults) || this;
|
|
3316
2970
|
_this.property = property;
|
|
3317
|
-
_this._format = function (value) { return value
|
|
2971
|
+
_this._format = function (value) { return value; };
|
|
3318
2972
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
3319
|
-
_this.useTextSearchPredicate(function (row, regex) {
|
|
3320
|
-
return regex.test(_this._format(row[_this.property]));
|
|
3321
|
-
});
|
|
3322
2973
|
return _this;
|
|
3323
2974
|
}
|
|
3324
2975
|
PropertyColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
|
|
3325
2976
|
var _this = this;
|
|
3326
2977
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3327
2978
|
if (firstTime) {
|
|
3328
|
-
if (___default[
|
|
2979
|
+
if (___default['default'].isFunction(onComponentInitOrOptions)) {
|
|
3329
2980
|
onComponentInitOrOptions(component);
|
|
3330
2981
|
}
|
|
3331
2982
|
else {
|
|
3332
|
-
if (___default[
|
|
2983
|
+
if (___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3333
2984
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3334
2985
|
}
|
|
3335
2986
|
}
|
|
3336
2987
|
}
|
|
3337
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
|
+
}
|
|
3338
2992
|
}));
|
|
3339
2993
|
return this;
|
|
3340
2994
|
};
|
|
@@ -3354,7 +3008,7 @@
|
|
|
3354
3008
|
component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
|
|
3355
3009
|
var disableEditCallback = false;
|
|
3356
3010
|
if (firstTime) {
|
|
3357
|
-
if (___default[
|
|
3011
|
+
if (___default['default'].isFunction(options === null || options === void 0 ? void 0 : options.onComponentInit)) {
|
|
3358
3012
|
options.onComponentInit(component);
|
|
3359
3013
|
}
|
|
3360
3014
|
// install our edit callback
|
|
@@ -3369,7 +3023,7 @@
|
|
|
3369
3023
|
disableEditCallback = true;
|
|
3370
3024
|
component.value = rowData.row[_this.property];
|
|
3371
3025
|
disableEditCallback = false;
|
|
3372
|
-
if (!___default[
|
|
3026
|
+
if (!___default['default'].isFunction(options) && ___default['default'].isFunction(options === null || options === void 0 ? void 0 : options.onRowUpdate)) {
|
|
3373
3027
|
options.onRowUpdate(component, rowData.row);
|
|
3374
3028
|
}
|
|
3375
3029
|
}));
|
|
@@ -3378,7 +3032,7 @@
|
|
|
3378
3032
|
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, onComponentInit) {
|
|
3379
3033
|
var _this = this;
|
|
3380
3034
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3381
|
-
var initialiser = ___default[
|
|
3035
|
+
var initialiser = ___default['default'].isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
|
|
3382
3036
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3383
3037
|
var formValueModel = editSession.form.pluck(_this.property);
|
|
3384
3038
|
if (validators) {
|
|
@@ -3408,9 +3062,6 @@
|
|
|
3408
3062
|
_this.property = property;
|
|
3409
3063
|
_this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
|
|
3410
3064
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
3411
|
-
_this.useTextSearchPredicate(function (row, regex) {
|
|
3412
|
-
return regex.test(_this._format(row[_this.property]));
|
|
3413
|
-
});
|
|
3414
3065
|
return _this;
|
|
3415
3066
|
}
|
|
3416
3067
|
ListPropertyColumnModel.prototype.cellRenderer = function (componentType) {
|
|
@@ -3423,7 +3074,7 @@
|
|
|
3423
3074
|
ListPropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
|
|
3424
3075
|
var _this = this;
|
|
3425
3076
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3426
|
-
var initialiser = ___default[
|
|
3077
|
+
var initialiser = ___default['default'].isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3427
3078
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3428
3079
|
var formListModel = editSession.form.pluckList(_this.property);
|
|
3429
3080
|
if (validators) {
|
|
@@ -3458,17 +3109,17 @@
|
|
|
3458
3109
|
var _this = this;
|
|
3459
3110
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3460
3111
|
if (firstTime) {
|
|
3461
|
-
if (___default[
|
|
3112
|
+
if (___default['default'].isFunction(onComponentInitOrOptions)) {
|
|
3462
3113
|
onComponentInitOrOptions(component);
|
|
3463
3114
|
}
|
|
3464
3115
|
else {
|
|
3465
|
-
if (___default[
|
|
3116
|
+
if (___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3466
3117
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3467
3118
|
}
|
|
3468
3119
|
}
|
|
3469
3120
|
}
|
|
3470
3121
|
component.value = _this.getValue(rowData.row);
|
|
3471
|
-
if (!___default[
|
|
3122
|
+
if (!___default['default'].isFunction(onComponentInitOrOptions) && ___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
3472
3123
|
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
3473
3124
|
}
|
|
3474
3125
|
}));
|
|
@@ -3481,7 +3132,7 @@
|
|
|
3481
3132
|
}(ColumnModel));
|
|
3482
3133
|
var EditorControlColumnModel = /** @class */ (function (_super) {
|
|
3483
3134
|
__extends(EditorControlColumnModel, _super);
|
|
3484
|
-
function EditorControlColumnModel(columnId,
|
|
3135
|
+
function EditorControlColumnModel(columnId, saveCommand, defaults) {
|
|
3485
3136
|
var _this = _super.call(this, columnId, defaults) || this;
|
|
3486
3137
|
_this.cellRenderer(EditRowControls);
|
|
3487
3138
|
return _this;
|
|
@@ -3846,7 +3497,7 @@
|
|
|
3846
3497
|
{ type: i0.Component, args: [{
|
|
3847
3498
|
selector: 'aup-table-header-cell-renderer',
|
|
3848
3499
|
template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event.instance)\"></ng-container>\n",
|
|
3849
|
-
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%}"]
|
|
3850
3501
|
},] }
|
|
3851
3502
|
];
|
|
3852
3503
|
TableHeaderCellRendererComponent.ctorParameters = function () { return []; };
|
|
@@ -3879,6 +3530,8 @@
|
|
|
3879
3530
|
TableRowMenuComponent.prototype.registerMoreAction = function (commandFactory, properties) {
|
|
3880
3531
|
this.moreActions.push(new MenuItemData(commandFactory, properties));
|
|
3881
3532
|
};
|
|
3533
|
+
TableRowMenuComponent.prototype.ngOnInit = function () {
|
|
3534
|
+
};
|
|
3882
3535
|
TableRowMenuComponent.prototype.createMoreMenuCommand = function (item, value) {
|
|
3883
3536
|
var _this = this;
|
|
3884
3537
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
@@ -3965,7 +3618,7 @@
|
|
|
3965
3618
|
// if (!this._liveRowValue.value[immerable]) {
|
|
3966
3619
|
// console.warn()
|
|
3967
3620
|
// }
|
|
3968
|
-
_this._liveRowValue.value = produce__default[
|
|
3621
|
+
_this._liveRowValue.value = produce__default['default'](_this._liveRowValue.value, function (draft) {
|
|
3969
3622
|
_this.form.writeDirtyStateTo(draft);
|
|
3970
3623
|
});
|
|
3971
3624
|
});
|
|
@@ -3987,7 +3640,7 @@
|
|
|
3987
3640
|
__extends(AbstractTableModel, _super);
|
|
3988
3641
|
function AbstractTableModel() {
|
|
3989
3642
|
var _this = _super.call(this) || this;
|
|
3990
|
-
_this._dataSource =
|
|
3643
|
+
_this._dataSource = new pectin.DelegatingListModel();
|
|
3991
3644
|
_this._columnList = _this.registerDisposable(new ColumnListModel());
|
|
3992
3645
|
_this._editorSessions = new pectin.MutableListModel();
|
|
3993
3646
|
_this.rowClassNamePredicates = [];
|
|
@@ -4009,12 +3662,6 @@
|
|
|
4009
3662
|
_this.rowSelectionDisabledOnAllColumns = chain(_this._columnList).select(function (column) { return column.isRowSelectionEnabled(); }).count().equals(0);
|
|
4010
3663
|
return _this;
|
|
4011
3664
|
}
|
|
4012
|
-
AbstractTableModel.prototype.findMatchingColumns = function (row, regex) {
|
|
4013
|
-
return this.columns.value.filter(function (c) { return c.isTextMatch(row, regex); });
|
|
4014
|
-
};
|
|
4015
|
-
AbstractTableModel.prototype.hasMatchingColumn = function (row, regex) {
|
|
4016
|
-
return !!this.columns.value.find(function (c) { return c.isTextMatch(row, regex); });
|
|
4017
|
-
};
|
|
4018
3665
|
AbstractTableModel.prototype.setDataSource = function (sourceOfTruth) {
|
|
4019
3666
|
this._dataSource.setDelegate(sourceOfTruth);
|
|
4020
3667
|
};
|
|
@@ -4064,14 +3711,11 @@
|
|
|
4064
3711
|
}
|
|
4065
3712
|
return selectionColumnModel;
|
|
4066
3713
|
};
|
|
4067
|
-
AbstractTableModel.prototype.addEditControls = function (
|
|
3714
|
+
AbstractTableModel.prototype.addEditControls = function (saveCommand) {
|
|
4068
3715
|
var _this = this;
|
|
4069
|
-
this.
|
|
4070
|
-
if (___namespace.isFunction(formFactory)) {
|
|
4071
|
-
this._createForm = formFactory;
|
|
4072
|
-
}
|
|
3716
|
+
this.saveCommand = saveCommand;
|
|
4073
3717
|
var columnId = 'editControls';
|
|
4074
|
-
return this.addColumn(new EditorControlColumnModel(columnId,
|
|
3718
|
+
return this.addColumn(new EditorControlColumnModel(columnId, saveCommand, function () { return _this.getColumnTextProperties(columnId); }));
|
|
4075
3719
|
};
|
|
4076
3720
|
AbstractTableModel.prototype.addCustomColumn = function (columnId, dataAccessor) {
|
|
4077
3721
|
var _this = this;
|
|
@@ -4119,20 +3763,19 @@
|
|
|
4119
3763
|
if (this._rowsBeingEdited.query().indexOf(row) > -1) {
|
|
4120
3764
|
return pectin.lang.illegalState("Row with id=" + rowId + " already being edited");
|
|
4121
3765
|
}
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
}
|
|
4135
|
-
return editSession;
|
|
3766
|
+
else {
|
|
3767
|
+
var editSession_1 = new EditSession(rowId, row, this._createForm(row), this.saveCommand);
|
|
3768
|
+
var when = pectin.Dsl.disposeWith(editSession_1).when;
|
|
3769
|
+
when(editSession_1.liveRowValue).changes(function (editedValue) {
|
|
3770
|
+
_this._rowsBeingEdited.replaceOrPush(editedValue);
|
|
3771
|
+
}, { initialValue: 'triggerChangeUnlessNil' });
|
|
3772
|
+
this._editorSessions.push(editSession_1);
|
|
3773
|
+
editSession_1.onDispose(function () {
|
|
3774
|
+
_this._rowsBeingEdited.remove(editSession_1.liveRowValue.value);
|
|
3775
|
+
_this._editorSessions.remove(editSession_1);
|
|
3776
|
+
});
|
|
3777
|
+
return editSession_1;
|
|
3778
|
+
}
|
|
4136
3779
|
};
|
|
4137
3780
|
AbstractTableModel.prototype.getEditSessionFor = function (row) {
|
|
4138
3781
|
return this._editorSessionByRowId.get(this.identityOf(row));
|
|
@@ -4149,16 +3792,12 @@
|
|
|
4149
3792
|
return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
|
|
4150
3793
|
};
|
|
4151
3794
|
AbstractTableModel.prototype.isRowSelectionEnabled = function () {
|
|
4152
|
-
return this.
|
|
3795
|
+
return this.hasSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
|
|
4153
3796
|
};
|
|
4154
|
-
AbstractTableModel.prototype.
|
|
3797
|
+
AbstractTableModel.prototype.hasSelectionModel = function () {
|
|
4155
3798
|
var _a;
|
|
4156
3799
|
return !!((_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate());
|
|
4157
3800
|
};
|
|
4158
|
-
AbstractTableModel.prototype.getSelectionModel = function () {
|
|
4159
|
-
var _a;
|
|
4160
|
-
return (_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel;
|
|
4161
|
-
};
|
|
4162
3801
|
AbstractTableModel.prototype.isHoverEnabled = function () {
|
|
4163
3802
|
return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;
|
|
4164
3803
|
};
|
|
@@ -4226,19 +3865,18 @@
|
|
|
4226
3865
|
* --row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
4227
3866
|
* --first-column-padding-left: 18px // defaults to --column-gap
|
|
4228
3867
|
* --last-column-padding-right: 18px // defaults to --column-gap
|
|
4229
|
-
*
|
|
4230
|
-
*
|
|
4231
|
-
*
|
|
4232
|
-
*
|
|
4233
|
-
*
|
|
4234
|
-
*
|
|
4235
|
-
*
|
|
4236
|
-
*
|
|
4237
|
-
*
|
|
4238
|
-
*
|
|
4239
|
-
*
|
|
4240
|
-
*
|
|
4241
|
-
* }
|
|
3868
|
+
*
|
|
3869
|
+
* aup-table-header-cell-renderer,
|
|
3870
|
+
* aup-table-cell-renderer {
|
|
3871
|
+
* &.aup-col-my-dasherised-column-id {
|
|
3872
|
+
* // do stuff
|
|
3873
|
+
* }
|
|
3874
|
+
* &.first-visible-column {
|
|
3875
|
+
* // do stuff
|
|
3876
|
+
* }
|
|
3877
|
+
* &.last-visible-column {
|
|
3878
|
+
* // do stuff
|
|
3879
|
+
* }
|
|
4242
3880
|
* }
|
|
4243
3881
|
* }
|
|
4244
3882
|
*/
|
|
@@ -4259,7 +3897,7 @@
|
|
|
4259
3897
|
providers: [
|
|
4260
3898
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
4261
3899
|
],
|
|
4262
|
-
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}"]
|
|
4263
3901
|
},] }
|
|
4264
3902
|
];
|
|
4265
3903
|
TableComponent.ctorParameters = function () { return [
|
|
@@ -4312,7 +3950,7 @@
|
|
|
4312
3950
|
{ type: i0.Component, args: [{
|
|
4313
3951
|
selector: 'aup-tree-inheritance-icon',
|
|
4314
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",
|
|
4315
|
-
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}"]
|
|
4316
3954
|
},] }
|
|
4317
3955
|
];
|
|
4318
3956
|
exports.TreeInheritanceIconComponent.ctorParameters = function () { return []; };
|
|
@@ -4554,17 +4192,17 @@
|
|
|
4554
4192
|
var _this = this;
|
|
4555
4193
|
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
4556
4194
|
this.canExpand = chain(this.nodeModel).map(function (node) {
|
|
4557
|
-
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && _this.
|
|
4558
|
-
}, { dependsOn: this.
|
|
4195
|
+
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && _this.expansionModel.isCollapsed(node);
|
|
4196
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4559
4197
|
this.canCollapse = chain(this.nodeModel).map(function (node) {
|
|
4560
|
-
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && !_this.
|
|
4561
|
-
}, { dependsOn: this.
|
|
4198
|
+
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && !_this.expansionModel.isCollapsed(node);
|
|
4199
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4562
4200
|
this.iconModel = chain(this.nodeModel).map(function (node) {
|
|
4563
4201
|
var _a;
|
|
4564
|
-
var expanded = _this.
|
|
4202
|
+
var expanded = _this.expansionModel.isExpanded(_this.node);
|
|
4565
4203
|
var iconFactory = (_a = _this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
|
|
4566
4204
|
return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
|
|
4567
|
-
}, { dependsOn: this.
|
|
4205
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4568
4206
|
};
|
|
4569
4207
|
Object.defineProperty(TreeLabelCellRendererComponent.prototype, "isRoot", {
|
|
4570
4208
|
get: function () {
|
|
@@ -4588,18 +4226,16 @@
|
|
|
4588
4226
|
configurable: true
|
|
4589
4227
|
});
|
|
4590
4228
|
// @Trace()
|
|
4591
|
-
TreeLabelCellRendererComponent.prototype.expandOrCollapse = function (
|
|
4592
|
-
|
|
4593
|
-
$event.stopPropagation();
|
|
4594
|
-
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);
|
|
4595
4231
|
};
|
|
4596
4232
|
return TreeLabelCellRendererComponent;
|
|
4597
4233
|
}(DisposableComponent));
|
|
4598
4234
|
exports.TreeLabelCellRendererComponent.decorators = [
|
|
4599
4235
|
{ type: i0.Component, args: [{
|
|
4600
4236
|
selector: 'aup-tree-label-cell-renderer',
|
|
4601
|
-
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(
|
|
4602
|
-
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}"]
|
|
4603
4239
|
},] }
|
|
4604
4240
|
];
|
|
4605
4241
|
exports.TreeLabelCellRendererComponent.ctorParameters = function () { return []; };
|
|
@@ -4607,7 +4243,7 @@
|
|
|
4607
4243
|
value: [{ type: i0.Input }],
|
|
4608
4244
|
label: [{ type: i0.Input }],
|
|
4609
4245
|
iconFactory: [{ type: i0.Input }],
|
|
4610
|
-
|
|
4246
|
+
expansionModel: [{ type: i0.Input }],
|
|
4611
4247
|
isRoot: [{ type: i0.HostBinding, args: ['class.root',] }],
|
|
4612
4248
|
isLeaf: [{ type: i0.HostBinding, args: ['class.leaf',] }]
|
|
4613
4249
|
};
|
|
@@ -4616,29 +4252,22 @@
|
|
|
4616
4252
|
__metadata("design:type", Object)
|
|
4617
4253
|
], exports.TreeLabelCellRendererComponent.prototype, "value", void 0);
|
|
4618
4254
|
(function (TreeLabelCellRendererComponent) {
|
|
4619
|
-
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) {
|
|
4620
|
-
var isLeaf = exports.DecoratedTreeNode.getDecorator(node).isLeaf();
|
|
4621
|
-
return isLeaf ?
|
|
4622
|
-
undefined :
|
|
4623
|
-
expanded ?
|
|
4624
|
-
'mat:expand_more' :
|
|
4625
|
-
'mat:chevron_right';
|
|
4626
|
-
};
|
|
4255
|
+
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) { return expanded ? 'mat:expand_more' : 'mat:chevron_right'; };
|
|
4627
4256
|
})(exports.TreeLabelCellRendererComponent || (exports.TreeLabelCellRendererComponent = {}));
|
|
4628
4257
|
|
|
4629
4258
|
var FlattenedTreeListModel = /** @class */ (function (_super) {
|
|
4630
4259
|
__extends(FlattenedTreeListModel, _super);
|
|
4631
4260
|
function FlattenedTreeListModel(source, childRef, expansionModel) {
|
|
4632
|
-
var _this = _super.call(this, source
|
|
4633
|
-
initialValue: [],
|
|
4634
|
-
identifiedWith: function (row) { return source.identityOf(row); }
|
|
4635
|
-
}) || this;
|
|
4261
|
+
var _this = _super.call(this, source) || this;
|
|
4636
4262
|
_this.source = source;
|
|
4637
4263
|
_this.childRef = childRef;
|
|
4638
4264
|
_this.expansionModel = expansionModel;
|
|
4639
4265
|
_this.trackSource(expansionModel.isExpandedPredicate);
|
|
4640
4266
|
return _this;
|
|
4641
4267
|
}
|
|
4268
|
+
FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
|
|
4269
|
+
return this.source.identityOf(item);
|
|
4270
|
+
};
|
|
4642
4271
|
FlattenedTreeListModel.prototype.compute = function (values) {
|
|
4643
4272
|
var _this = this;
|
|
4644
4273
|
var result = [];
|
|
@@ -4737,10 +4366,10 @@
|
|
|
4737
4366
|
var _this = this;
|
|
4738
4367
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
4739
4368
|
if (firstTime) {
|
|
4740
|
-
component.
|
|
4369
|
+
component.expansionModel = _this.expansionModel;
|
|
4741
4370
|
}
|
|
4742
4371
|
component.value = rowData.row;
|
|
4743
|
-
component.label = ___default[
|
|
4372
|
+
component.label = ___default['default'].isNil(_this.labelProperty) ? undefined : rowData.row[_this.labelProperty];
|
|
4744
4373
|
component.iconFactory = _this.iconFactory;
|
|
4745
4374
|
}));
|
|
4746
4375
|
return this;
|
|
@@ -4771,13 +4400,12 @@
|
|
|
4771
4400
|
var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
|
|
4772
4401
|
_this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
|
|
4773
4402
|
_this.setDataSource(_this.flattenedDataSource);
|
|
4774
|
-
_this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
|
|
4775
4403
|
return _this;
|
|
4776
4404
|
}
|
|
4777
4405
|
TreeTableModel.prototype.treeControlColumn = function (builder) {
|
|
4778
4406
|
var _this = this;
|
|
4779
4407
|
var columnId = 'tree-label';
|
|
4780
|
-
var column = new TreeLabelColumnModel(columnId, function () { return _this.getColumnTextProperties(columnId); }, this);
|
|
4408
|
+
var column = new TreeLabelColumnModel(columnId, function () { return _this.getColumnTextProperties(columnId); }, this.treeExpansionModel);
|
|
4781
4409
|
builder(column);
|
|
4782
4410
|
this.addColumn(column);
|
|
4783
4411
|
};
|
|
@@ -4785,7 +4413,7 @@
|
|
|
4785
4413
|
this.treeExpansionModel.expand(node);
|
|
4786
4414
|
};
|
|
4787
4415
|
TreeTableModel.prototype.collapse = function (node) {
|
|
4788
|
-
this.treeExpansionModel.
|
|
4416
|
+
this.treeExpansionModel.expand(node);
|
|
4789
4417
|
};
|
|
4790
4418
|
TreeTableModel.prototype.isCollapsed = function (node) {
|
|
4791
4419
|
return this.treeExpansionModel.isCollapsed(node);
|
|
@@ -4921,7 +4549,7 @@
|
|
|
4921
4549
|
providers: [
|
|
4922
4550
|
{ provide: AbstractTableComponent, useExisting: TreeTableComponent }
|
|
4923
4551
|
],
|
|
4924
|
-
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}"]
|
|
4925
4553
|
},] }
|
|
4926
4554
|
];
|
|
4927
4555
|
TreeTableComponent.ctorParameters = function () { return [
|
|
@@ -4978,7 +4606,7 @@
|
|
|
4978
4606
|
providers: [
|
|
4979
4607
|
{ provide: pectin.FocusManager }
|
|
4980
4608
|
],
|
|
4981
|
-
styles: [":host{display:block}
|
|
4609
|
+
styles: [":host{display:block}"]
|
|
4982
4610
|
},] }
|
|
4983
4611
|
];
|
|
4984
4612
|
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
@@ -5042,7 +4670,7 @@
|
|
|
5042
4670
|
{ type: i0.Component, args: [{
|
|
5043
4671
|
selector: 'aup-paginator',
|
|
5044
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",
|
|
5045
|
-
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}"]
|
|
5046
4674
|
},] }
|
|
5047
4675
|
];
|
|
5048
4676
|
PaginatorComponent.ctorParameters = function () { return []; };
|
|
@@ -5054,133 +4682,14 @@
|
|
|
5054
4682
|
__metadata("design:type", pectin.PageController)
|
|
5055
4683
|
], PaginatorComponent.prototype, "pageController", void 0);
|
|
5056
4684
|
|
|
5057
|
-
var
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
return _super.call(this) || this;
|
|
5061
|
-
// const {chain} = Dsl.disposeWith(this);
|
|
5062
|
-
}
|
|
5063
|
-
LabelledValueComponent.prototype.ngOnInit = function () {
|
|
5064
|
-
};
|
|
5065
|
-
return LabelledValueComponent;
|
|
5066
|
-
}(DisposableComponent));
|
|
5067
|
-
LabelledValueComponent.decorators = [
|
|
5068
|
-
{ type: i0.Component, args: [{
|
|
5069
|
-
selector: 'aup-labelled-value',
|
|
5070
|
-
template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
|
|
5071
|
-
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"]
|
|
5072
|
-
},] }
|
|
5073
|
-
];
|
|
5074
|
-
LabelledValueComponent.ctorParameters = function () { return []; };
|
|
5075
|
-
LabelledValueComponent.propDecorators = {
|
|
5076
|
-
label: [{ type: i0.Input }]
|
|
5077
|
-
};
|
|
5078
|
-
|
|
5079
|
-
/**
|
|
5080
|
-
* @example
|
|
5081
|
-
* <aup-markdown [content]="..."></aup-markdown>
|
|
5082
|
-
* <aup-markdown [content$]="stringValueModel$"></aup-markdown>
|
|
5083
|
-
* <aup-markdown ngPreserveWhitespaces>
|
|
5084
|
-
* # This is markdown content
|
|
5085
|
-
*
|
|
5086
|
-
* With a list
|
|
5087
|
-
* - a
|
|
5088
|
-
* - b
|
|
5089
|
-
* </aup-markdown>
|
|
5090
|
-
*/
|
|
5091
|
-
var MarkdownComponent = /** @class */ (function (_super) {
|
|
5092
|
-
__extends(MarkdownComponent, _super);
|
|
5093
|
-
function MarkdownComponent(platform, element, markdownService) {
|
|
5094
|
-
var _this = _super.call(this) || this;
|
|
5095
|
-
_this.platform = platform;
|
|
5096
|
-
_this.element = element;
|
|
5097
|
-
_this.markdownService = markdownService;
|
|
5098
|
-
_this.inline = false;
|
|
5099
|
-
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
5100
|
-
return _this;
|
|
5101
|
-
}
|
|
5102
|
-
MarkdownComponent.prototype.ngOnInit = function () {
|
|
5103
|
-
var _this = this;
|
|
5104
|
-
var when = pectin.Dsl.disposeWith(this).when;
|
|
5105
|
-
when(this.content$).changes(function (content) { return _this.renderContent(content); }, { initialValue: 'triggerChangeUnlessNil' });
|
|
5106
|
-
if (___namespace.isNil(this.content) && !___namespace.isEmpty(this.element.nativeElement.innerHTML)) {
|
|
5107
|
-
this.renderContent(this.extractInnerContent(this.element.nativeElement.innerHTML));
|
|
5108
|
-
}
|
|
5109
|
-
};
|
|
5110
|
-
MarkdownComponent.prototype.extractInnerContent = function (content) {
|
|
5111
|
-
var lines = content.split("\n");
|
|
5112
|
-
var prefix = lines.reduce(function (maxPrefix, line) {
|
|
5113
|
-
return Math.max(maxPrefix, line.search(/\S/));
|
|
5114
|
-
}, 0);
|
|
5115
|
-
return lines.map(function (l) { return l.substr(prefix); }).join("\n");
|
|
5116
|
-
};
|
|
5117
|
-
MarkdownComponent.prototype.renderContent = function (content) {
|
|
5118
|
-
if (!___namespace.isNil(content)) {
|
|
5119
|
-
var markdown = this.inline ?
|
|
5120
|
-
this.markdownService.renderInline(content) :
|
|
5121
|
-
this.markdownService.render(content);
|
|
5122
|
-
this.element.nativeElement.innerHTML = markdown;
|
|
5123
|
-
}
|
|
5124
|
-
};
|
|
5125
|
-
return MarkdownComponent;
|
|
5126
|
-
}(DisposableComponent));
|
|
5127
|
-
MarkdownComponent.decorators = [
|
|
5128
|
-
{ type: i0.Component, args: [{
|
|
5129
|
-
selector: 'aup-markdown',
|
|
5130
|
-
template: "<ng-content></ng-content>\n",
|
|
5131
|
-
styles: [":host{display:inline-block}\n"]
|
|
5132
|
-
},] }
|
|
5133
|
-
];
|
|
5134
|
-
MarkdownComponent.ctorParameters = function () { return [
|
|
5135
|
-
{ type: Object, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] },
|
|
5136
|
-
{ type: i0.ElementRef },
|
|
5137
|
-
{ type: MarkdownService }
|
|
5138
|
-
]; };
|
|
5139
|
-
MarkdownComponent.propDecorators = {
|
|
5140
|
-
content$: [{ type: i0.Input }],
|
|
5141
|
-
content: [{ type: i0.Input }],
|
|
5142
|
-
inline: [{ type: i0.Input }]
|
|
5143
|
-
};
|
|
5144
|
-
__decorate([
|
|
5145
|
-
pectin.TrackExternal(),
|
|
5146
|
-
__metadata("design:type", pectin.ValueModel)
|
|
5147
|
-
], MarkdownComponent.prototype, "content$", void 0);
|
|
5148
|
-
__decorate([
|
|
5149
|
-
pectin.StoreInValueModel('content$'),
|
|
5150
|
-
__metadata("design:type", String)
|
|
5151
|
-
], MarkdownComponent.prototype, "content", void 0);
|
|
5152
|
-
|
|
5153
|
-
var ComponentsModule = /** @class */ (function () {
|
|
5154
|
-
function ComponentsModule(faIconLibrary) {
|
|
5155
|
-
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
4685
|
+
var ComponentsModule = /** @class */ (function () {
|
|
4686
|
+
function ComponentsModule(faIconLibrary) {
|
|
4687
|
+
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
5156
4688
|
}
|
|
5157
4689
|
return ComponentsModule;
|
|
5158
4690
|
}());
|
|
5159
4691
|
ComponentsModule.decorators = [
|
|
5160
4692
|
{ type: i0.NgModule, args: [{
|
|
5161
|
-
imports: [
|
|
5162
|
-
i2.CommonModule,
|
|
5163
|
-
animations.BrowserAnimationsModule,
|
|
5164
|
-
forms.FormsModule,
|
|
5165
|
-
input.MatInputModule,
|
|
5166
|
-
formField.MatFormFieldModule,
|
|
5167
|
-
select.MatSelectModule,
|
|
5168
|
-
tabs.MatTabsModule,
|
|
5169
|
-
DirectivesModule,
|
|
5170
|
-
icon.MatIconModule,
|
|
5171
|
-
button.MatButtonModule,
|
|
5172
|
-
checkbox.MatCheckboxModule,
|
|
5173
|
-
table.MatTableModule,
|
|
5174
|
-
portal.PortalModule,
|
|
5175
|
-
scrolling.CdkScrollableModule,
|
|
5176
|
-
angularFontawesome.FontAwesomeModule,
|
|
5177
|
-
tooltip.MatTooltipModule,
|
|
5178
|
-
autocomplete.MatAutocompleteModule,
|
|
5179
|
-
menu.MatMenuModule,
|
|
5180
|
-
divider.MatDividerModule,
|
|
5181
|
-
progressSpinner.MatProgressSpinnerModule,
|
|
5182
|
-
progressBar.MatProgressBarModule
|
|
5183
|
-
],
|
|
5184
4693
|
declarations: [
|
|
5185
4694
|
AbstractInputComponent,
|
|
5186
4695
|
AbstractValueInputComponent,
|
|
@@ -5229,12 +4738,29 @@
|
|
|
5229
4738
|
BusyOverlayComponent,
|
|
5230
4739
|
EmptyStateComponent,
|
|
5231
4740
|
PaginatorComponent,
|
|
5232
|
-
AbstractTableComponent
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
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
|
|
5238
4764
|
],
|
|
5239
4765
|
exports: [
|
|
5240
4766
|
NumberInputComponent,
|
|
@@ -5271,14 +4797,9 @@
|
|
|
5271
4797
|
BusyOverlayComponent,
|
|
5272
4798
|
EmptyStateComponent,
|
|
5273
4799
|
PaginatorComponent,
|
|
5274
|
-
CardStackComponent,
|
|
5275
|
-
LabelledValueComponent,
|
|
5276
|
-
LoadingContainerComponent,
|
|
5277
|
-
MarkdownComponent
|
|
5278
4800
|
],
|
|
5279
4801
|
providers: [
|
|
5280
|
-
FocusBindingFactory
|
|
5281
|
-
MarkdownService
|
|
4802
|
+
FocusBindingFactory
|
|
5282
4803
|
]
|
|
5283
4804
|
},] }
|
|
5284
4805
|
];
|
|
@@ -5307,13 +4828,12 @@
|
|
|
5307
4828
|
* <span>This content will be between the two commands</span>
|
|
5308
4829
|
* </aup-activity-actions>
|
|
5309
4830
|
*/
|
|
5310
|
-
|
|
4831
|
+
var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
5311
4832
|
__extends(ActivityActionsComponent, _super);
|
|
5312
4833
|
function ActivityActionsComponent(cdr) {
|
|
5313
4834
|
var _this = _super.call(this) || this;
|
|
5314
4835
|
_this.cdr = cdr;
|
|
5315
|
-
_this.
|
|
5316
|
-
_this.align = ActivityActionsComponent.Align.STRETCH;
|
|
4836
|
+
_this.align = 'stretch';
|
|
5317
4837
|
return _this;
|
|
5318
4838
|
}
|
|
5319
4839
|
Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
|
|
@@ -5334,6 +4854,20 @@
|
|
|
5334
4854
|
enumerable: false,
|
|
5335
4855
|
configurable: true
|
|
5336
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
|
+
});
|
|
5337
4871
|
ActivityActionsComponent.prototype.ngOnInit = function () {
|
|
5338
4872
|
};
|
|
5339
4873
|
ActivityActionsComponent.prototype.hasConfirmFace = function () {
|
|
@@ -5349,55 +4883,44 @@
|
|
|
5349
4883
|
};
|
|
5350
4884
|
return ActivityActionsComponent;
|
|
5351
4885
|
}(DisposableComponent));
|
|
5352
|
-
|
|
4886
|
+
ActivityActionsComponent.decorators = [
|
|
5353
4887
|
{ type: i0.Component, args: [{
|
|
5354
4888
|
selector: 'aup-activity-actions',
|
|
5355
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",
|
|
5356
|
-
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}"]
|
|
5357
4891
|
},] }
|
|
5358
4892
|
];
|
|
5359
|
-
|
|
4893
|
+
ActivityActionsComponent.ctorParameters = function () { return [
|
|
5360
4894
|
{ type: i0.ChangeDetectorRef }
|
|
5361
4895
|
]; };
|
|
5362
|
-
|
|
4896
|
+
ActivityActionsComponent.propDecorators = {
|
|
5363
4897
|
confirmCommand: [{ type: i0.Input }],
|
|
5364
4898
|
cancelCommand: [{ type: i0.Input }],
|
|
5365
4899
|
faces: [{ type: i0.Input }],
|
|
5366
4900
|
confirmFace: [{ type: i0.Input }],
|
|
5367
4901
|
cancelFace: [{ type: i0.Input }],
|
|
5368
4902
|
style: [{ type: i0.Input }],
|
|
5369
|
-
|
|
5370
|
-
|
|
4903
|
+
align: [{ type: i0.Input }],
|
|
4904
|
+
alignEnd: [{ type: i0.HostBinding, args: ['class.align-end',] }],
|
|
4905
|
+
alignStretch: [{ type: i0.HostBinding, args: ['class.align-stretch',] }]
|
|
5371
4906
|
};
|
|
5372
4907
|
__decorate([
|
|
5373
4908
|
pectin.TrackExternal(),
|
|
5374
4909
|
__metadata("design:type", pectin.Command)
|
|
5375
|
-
],
|
|
4910
|
+
], ActivityActionsComponent.prototype, "confirmCommand", void 0);
|
|
5376
4911
|
__decorate([
|
|
5377
4912
|
pectin.TrackExternal(),
|
|
5378
4913
|
__metadata("design:type", pectin.Command)
|
|
5379
|
-
],
|
|
5380
|
-
(function (ActivityActionsComponent) {
|
|
5381
|
-
ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
|
|
5382
|
-
INLINE: 'inline',
|
|
5383
|
-
BLOCK: 'block'
|
|
5384
|
-
});
|
|
5385
|
-
ActivityActionsComponent.Align = typescriptStringEnums.Enum({
|
|
5386
|
-
START: 'start',
|
|
5387
|
-
END: 'end',
|
|
5388
|
-
STRETCH: 'stretch'
|
|
5389
|
-
});
|
|
5390
|
-
})(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
|
|
4914
|
+
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
5391
4915
|
|
|
5392
4916
|
var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
|
|
5393
4917
|
var Activity = /** @class */ (function (_super) {
|
|
5394
4918
|
__extends(Activity, _super);
|
|
5395
4919
|
function Activity() {
|
|
5396
4920
|
var _this = _super.call(this) || this;
|
|
5397
|
-
_this._busyModel =
|
|
4921
|
+
_this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
|
|
5398
4922
|
_this._focusedModel = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
5399
4923
|
_this.class = 'aup-activity';
|
|
5400
|
-
_this.busyWhile(_this.confirmCommand.busy);
|
|
5401
4924
|
return _this;
|
|
5402
4925
|
}
|
|
5403
4926
|
Object.defineProperty(Activity.prototype, "isFocused", {
|
|
@@ -5471,7 +4994,7 @@
|
|
|
5471
4994
|
];
|
|
5472
4995
|
Activity.ctorParameters = function () { return []; };
|
|
5473
4996
|
Activity.propDecorators = {
|
|
5474
|
-
activityActions: [{ type: i0.ViewChild, args: [
|
|
4997
|
+
activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
|
|
5475
4998
|
class: [{ type: i0.HostBinding, args: ['class',] }],
|
|
5476
4999
|
isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
|
|
5477
5000
|
};
|
|
@@ -5484,196 +5007,133 @@
|
|
|
5484
5007
|
__metadata("design:type", pectin.Command)
|
|
5485
5008
|
], Activity.prototype, "cancelCommand", void 0);
|
|
5486
5009
|
|
|
5487
|
-
exports.Alert = void 0;
|
|
5488
|
-
(function (Alert) {
|
|
5489
|
-
function getContent(alert) {
|
|
5490
|
-
var content = alert.content();
|
|
5491
|
-
return Array.isArray(content) ? content : [content];
|
|
5492
|
-
}
|
|
5493
|
-
Alert.getContent = getContent;
|
|
5494
|
-
function getTitle(alert) {
|
|
5495
|
-
return ___namespace.isFunction(alert.title) ? alert.title() : undefined;
|
|
5496
|
-
}
|
|
5497
|
-
Alert.getTitle = getTitle;
|
|
5498
|
-
function getColor(alert) {
|
|
5499
|
-
return ___namespace.isFunction(alert.color) ? alert.color() : undefined;
|
|
5500
|
-
}
|
|
5501
|
-
Alert.getColor = getColor;
|
|
5502
|
-
})(exports.Alert || (exports.Alert = {}));
|
|
5503
|
-
|
|
5504
|
-
var ALERT_CONFIG = new i0.InjectionToken('AlertConfig');
|
|
5505
|
-
var AbstractDialogComponent = /** @class */ (function (_super) {
|
|
5506
|
-
__extends(AbstractDialogComponent, _super);
|
|
5507
|
-
function AbstractDialogComponent(config) {
|
|
5508
|
-
var _this = _super.call(this) || this;
|
|
5509
|
-
_this.config = config;
|
|
5510
|
-
pectin.assert.notNil(config);
|
|
5511
|
-
_this.title = exports.Alert.getTitle(config);
|
|
5512
|
-
_this.color = _this.checkColor(exports.Alert.getColor(config));
|
|
5513
|
-
_this.content = exports.Alert.getContent(config);
|
|
5514
|
-
_this.confirmFace = {
|
|
5515
|
-
text: function () { return config.ok(); },
|
|
5516
|
-
color: function () { return _this.color || 'primary'; },
|
|
5517
|
-
style: function () { return 'raised'; }
|
|
5518
|
-
};
|
|
5519
|
-
return _this;
|
|
5520
|
-
}
|
|
5521
|
-
AbstractDialogComponent.prototype.getConfig = function () {
|
|
5522
|
-
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
5523
|
-
};
|
|
5524
|
-
AbstractDialogComponent.prototype.checkColor = function (rawColor) {
|
|
5525
|
-
if (this.isDestructive()) {
|
|
5526
|
-
return 'warn';
|
|
5527
|
-
}
|
|
5528
|
-
else {
|
|
5529
|
-
if (['primary', 'accent', 'warn'].includes(rawColor)) {
|
|
5530
|
-
return rawColor;
|
|
5531
|
-
}
|
|
5532
|
-
else {
|
|
5533
|
-
console.warn("Invalid color string " + rawColor);
|
|
5534
|
-
return undefined;
|
|
5535
|
-
}
|
|
5536
|
-
}
|
|
5537
|
-
};
|
|
5538
|
-
AbstractDialogComponent.prototype.isDestructive = function () {
|
|
5539
|
-
// @ts-ignore
|
|
5540
|
-
return ___namespace.isFunction(this.config['destructive']) && this.config.destructive();
|
|
5541
|
-
};
|
|
5542
|
-
return AbstractDialogComponent;
|
|
5543
|
-
}(Activity));
|
|
5544
|
-
AbstractDialogComponent.decorators = [
|
|
5545
|
-
{ type: i0.Component, args: [{
|
|
5546
|
-
template: ''
|
|
5547
|
-
},] }
|
|
5548
|
-
];
|
|
5549
|
-
AbstractDialogComponent.ctorParameters = function () { return [
|
|
5550
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [ALERT_CONFIG,] }] }
|
|
5551
|
-
]; };
|
|
5552
|
-
|
|
5553
|
-
var AbstractConfirmDialogComponent = /** @class */ (function (_super) {
|
|
5554
|
-
__extends(AbstractConfirmDialogComponent, _super);
|
|
5555
|
-
function AbstractConfirmDialogComponent(config) {
|
|
5556
|
-
var _this = _super.call(this, config) || this;
|
|
5557
|
-
_this.cancelFace = {
|
|
5558
|
-
text: function () { return config.cancel(); }
|
|
5559
|
-
};
|
|
5560
|
-
_this.cancelCommand = pectin.Command.create(function () {
|
|
5561
|
-
return _this.cancel();
|
|
5562
|
-
});
|
|
5563
|
-
return _this;
|
|
5564
|
-
}
|
|
5565
|
-
return AbstractConfirmDialogComponent;
|
|
5566
|
-
}(AbstractDialogComponent));
|
|
5567
|
-
AbstractConfirmDialogComponent.decorators = [
|
|
5568
|
-
{ type: i0.Component, args: [{
|
|
5569
|
-
template: ''
|
|
5570
|
-
},] }
|
|
5571
|
-
];
|
|
5572
|
-
AbstractConfirmDialogComponent.ctorParameters = function () { return [
|
|
5573
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [ALERT_CONFIG,] }] }
|
|
5574
|
-
]; };
|
|
5575
|
-
|
|
5576
5010
|
var AlertDialogComponent = /** @class */ (function (_super) {
|
|
5577
5011
|
__extends(AlertDialogComponent, _super);
|
|
5578
5012
|
function AlertDialogComponent(alert) {
|
|
5579
|
-
var _this = _super.call(this
|
|
5013
|
+
var _this = _super.call(this) || this;
|
|
5014
|
+
_this.alert = alert;
|
|
5580
5015
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5581
5016
|
_this.done();
|
|
5582
5017
|
});
|
|
5018
|
+
_this.confirmFace = {
|
|
5019
|
+
text: function () { return alert.ok(); },
|
|
5020
|
+
color: function () { return "primary"; },
|
|
5021
|
+
style: function () { return "raised"; }
|
|
5022
|
+
};
|
|
5583
5023
|
return _this;
|
|
5584
5024
|
}
|
|
5025
|
+
AlertDialogComponent.prototype.ngOnInit = function () {
|
|
5026
|
+
};
|
|
5585
5027
|
return AlertDialogComponent;
|
|
5586
|
-
}(
|
|
5028
|
+
}(Activity));
|
|
5587
5029
|
AlertDialogComponent.decorators = [
|
|
5588
5030
|
{ type: i0.Component, args: [{
|
|
5589
5031
|
selector: 'aup-alert-dialog',
|
|
5590
|
-
template: "<aup-activity-title *ngIf=\"title\"
|
|
5591
|
-
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}
|
|
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",
|
|
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}"]
|
|
5592
5034
|
},] }
|
|
5593
5035
|
];
|
|
5594
5036
|
AlertDialogComponent.ctorParameters = function () { return [
|
|
5595
|
-
{ type:
|
|
5037
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
5596
5038
|
]; };
|
|
5597
5039
|
|
|
5598
5040
|
var ConfirmThenDialogComponent = /** @class */ (function (_super) {
|
|
5599
5041
|
__extends(ConfirmThenDialogComponent, _super);
|
|
5600
5042
|
function ConfirmThenDialogComponent(config) {
|
|
5601
|
-
var _this = _super.call(this
|
|
5043
|
+
var _this = _super.call(this) || this;
|
|
5044
|
+
_this.config = config;
|
|
5045
|
+
pectin.assert.notNil(config);
|
|
5602
5046
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5603
|
-
_this.interactionContext.startActivity(config.activityType, config.data)
|
|
5047
|
+
_this.interactionContext.startActivity(_this.config.activityType, _this.config.data)
|
|
5604
5048
|
.then(function (result) { return _this.done(result); })
|
|
5605
5049
|
.catch(function (error) { return _this.cancel(error); });
|
|
5606
5050
|
});
|
|
5051
|
+
_this.cancelCommand = pectin.Command.create(function () {
|
|
5052
|
+
return _this.cancel();
|
|
5053
|
+
});
|
|
5054
|
+
_this.confirmFace = {
|
|
5055
|
+
text: function () { return _this.confirm.ok(); },
|
|
5056
|
+
color: function () { return _this.isDestructive() ? 'warn' : 'primary'; },
|
|
5057
|
+
style: function () { return 'raised'; }
|
|
5058
|
+
};
|
|
5059
|
+
_this.cancelFace = {
|
|
5060
|
+
text: function () { return _this.confirm.cancel(); },
|
|
5061
|
+
};
|
|
5607
5062
|
return _this;
|
|
5608
5063
|
}
|
|
5064
|
+
ConfirmThenDialogComponent.prototype.ngOnInit = function () {
|
|
5065
|
+
};
|
|
5066
|
+
Object.defineProperty(ConfirmThenDialogComponent.prototype, "confirm", {
|
|
5067
|
+
get: function () {
|
|
5068
|
+
return this.config.confirm;
|
|
5069
|
+
},
|
|
5070
|
+
enumerable: false,
|
|
5071
|
+
configurable: true
|
|
5072
|
+
});
|
|
5073
|
+
Object.defineProperty(ConfirmThenDialogComponent.prototype, "titleColor", {
|
|
5074
|
+
get: function () {
|
|
5075
|
+
return this.isDestructive() ? 'warn' : undefined;
|
|
5076
|
+
},
|
|
5077
|
+
enumerable: false,
|
|
5078
|
+
configurable: true
|
|
5079
|
+
});
|
|
5080
|
+
ConfirmThenDialogComponent.prototype.isDestructive = function () {
|
|
5081
|
+
return this.confirm.destructive && this.confirm.destructive();
|
|
5082
|
+
};
|
|
5609
5083
|
return ConfirmThenDialogComponent;
|
|
5610
|
-
}(
|
|
5084
|
+
}(Activity));
|
|
5611
5085
|
ConfirmThenDialogComponent.decorators = [
|
|
5612
5086
|
{ type: i0.Component, args: [{
|
|
5613
5087
|
selector: 'aup-confirmation-dialog',
|
|
5614
|
-
template: "<aup-activity-title *ngIf=\"title\" [color]=\"
|
|
5615
|
-
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}
|
|
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",
|
|
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}"]
|
|
5616
5090
|
},] }
|
|
5617
5091
|
];
|
|
5618
5092
|
ConfirmThenDialogComponent.ctorParameters = function () { return [
|
|
5619
5093
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
5620
5094
|
]; };
|
|
5621
5095
|
|
|
5622
|
-
var ConfirmThenExecuteDialogComponent = /** @class */ (function (_super) {
|
|
5623
|
-
__extends(ConfirmThenExecuteDialogComponent, _super);
|
|
5624
|
-
function ConfirmThenExecuteDialogComponent(data) {
|
|
5625
|
-
var _this = _super.call(this, data.confirm) || this;
|
|
5626
|
-
_this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5627
|
-
var result, e_1;
|
|
5628
|
-
return __generator(this, function (_a) {
|
|
5629
|
-
switch (_a.label) {
|
|
5630
|
-
case 0:
|
|
5631
|
-
_a.trys.push([0, 2, , 3]);
|
|
5632
|
-
return [4 /*yield*/, data.operation(this.interactionContext)];
|
|
5633
|
-
case 1:
|
|
5634
|
-
result = _a.sent();
|
|
5635
|
-
this.done(result);
|
|
5636
|
-
return [3 /*break*/, 3];
|
|
5637
|
-
case 2:
|
|
5638
|
-
e_1 = _a.sent();
|
|
5639
|
-
this.cancel(e_1);
|
|
5640
|
-
return [3 /*break*/, 3];
|
|
5641
|
-
case 3: return [2 /*return*/];
|
|
5642
|
-
}
|
|
5643
|
-
});
|
|
5644
|
-
}); });
|
|
5645
|
-
return _this;
|
|
5646
|
-
}
|
|
5647
|
-
return ConfirmThenExecuteDialogComponent;
|
|
5648
|
-
}(AbstractConfirmDialogComponent));
|
|
5649
|
-
ConfirmThenExecuteDialogComponent.decorators = [
|
|
5650
|
-
{ type: i0.Component, args: [{
|
|
5651
|
-
selector: 'aup-confirmation-execute-dialog',
|
|
5652
|
-
template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
|
|
5653
|
-
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
|
|
5654
|
-
},] }
|
|
5655
|
-
];
|
|
5656
|
-
ConfirmThenExecuteDialogComponent.ctorParameters = function () { return [
|
|
5657
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
5658
|
-
]; };
|
|
5659
|
-
|
|
5660
5096
|
var ConfirmationDialogComponent = /** @class */ (function (_super) {
|
|
5661
5097
|
__extends(ConfirmationDialogComponent, _super);
|
|
5662
5098
|
function ConfirmationDialogComponent(confirm) {
|
|
5663
|
-
var _this = _super.call(this
|
|
5099
|
+
var _this = _super.call(this) || this;
|
|
5664
5100
|
_this.confirm = confirm;
|
|
5101
|
+
pectin.assert.notNil(confirm);
|
|
5665
5102
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5666
5103
|
return _this.done();
|
|
5667
5104
|
});
|
|
5105
|
+
_this.cancelCommand = pectin.Command.create(function () {
|
|
5106
|
+
return _this.cancel();
|
|
5107
|
+
});
|
|
5108
|
+
_this.confirmFace = {
|
|
5109
|
+
text: function () { return confirm.ok(); },
|
|
5110
|
+
color: function () { return _this.isDestructive() ? 'warn' : 'primary'; },
|
|
5111
|
+
style: function () { return 'raised'; }
|
|
5112
|
+
};
|
|
5113
|
+
_this.cancelFace = {
|
|
5114
|
+
text: function () { return confirm.cancel(); },
|
|
5115
|
+
};
|
|
5668
5116
|
return _this;
|
|
5669
5117
|
}
|
|
5118
|
+
ConfirmationDialogComponent.prototype.ngOnInit = function () {
|
|
5119
|
+
};
|
|
5120
|
+
Object.defineProperty(ConfirmationDialogComponent.prototype, "titleColor", {
|
|
5121
|
+
get: function () {
|
|
5122
|
+
return this.isDestructive() ? 'warn' : undefined;
|
|
5123
|
+
},
|
|
5124
|
+
enumerable: false,
|
|
5125
|
+
configurable: true
|
|
5126
|
+
});
|
|
5127
|
+
ConfirmationDialogComponent.prototype.isDestructive = function () {
|
|
5128
|
+
return this.confirm.destructive && this.confirm.destructive();
|
|
5129
|
+
};
|
|
5670
5130
|
return ConfirmationDialogComponent;
|
|
5671
|
-
}(
|
|
5131
|
+
}(Activity));
|
|
5672
5132
|
ConfirmationDialogComponent.decorators = [
|
|
5673
5133
|
{ type: i0.Component, args: [{
|
|
5674
5134
|
selector: 'aup-confirmation-dialog',
|
|
5675
|
-
template: "<aup-activity-title *ngIf=\"title\" [color]=\"
|
|
5676
|
-
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}
|
|
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",
|
|
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}"]
|
|
5677
5137
|
},] }
|
|
5678
5138
|
];
|
|
5679
5139
|
ConfirmationDialogComponent.ctorParameters = function () { return [
|
|
@@ -5712,12 +5172,6 @@
|
|
|
5712
5172
|
data: data
|
|
5713
5173
|
}, true);
|
|
5714
5174
|
};
|
|
5715
|
-
AbstractInteractionContext.prototype.confirmThenExecute = function (confirm, operation) {
|
|
5716
|
-
return this.createAndLaunchActivity(ConfirmThenExecuteDialogComponent, {
|
|
5717
|
-
confirm: confirm,
|
|
5718
|
-
operation: operation
|
|
5719
|
-
}, true);
|
|
5720
|
-
};
|
|
5721
5175
|
return AbstractInteractionContext;
|
|
5722
5176
|
}());
|
|
5723
5177
|
|
|
@@ -5850,7 +5304,7 @@
|
|
|
5850
5304
|
{ type: i0.Component, args: [{
|
|
5851
5305
|
selector: 'aup-activity-outlet',
|
|
5852
5306
|
template: '',
|
|
5853
|
-
styles: [":host{display:block}
|
|
5307
|
+
styles: [":host{display:block}"]
|
|
5854
5308
|
},] }
|
|
5855
5309
|
];
|
|
5856
5310
|
ActivityOutletComponent.ctorParameters = function () { return [
|
|
@@ -5871,7 +5325,7 @@
|
|
|
5871
5325
|
_this.activityRefs = [];
|
|
5872
5326
|
_this.garbage = new pectin.GarbageCollector();
|
|
5873
5327
|
_this.inAnimation = new pectin.MutableValueModel(false);
|
|
5874
|
-
_this.busy =
|
|
5328
|
+
_this.busy = new pectin.DelegatingValueModel().withDefault(false);
|
|
5875
5329
|
_this.registerDisposable(_this.busy);
|
|
5876
5330
|
return _this;
|
|
5877
5331
|
}
|
|
@@ -5921,7 +5375,7 @@
|
|
|
5921
5375
|
if (!this.isActive()) {
|
|
5922
5376
|
typescriptUtilities.lang.illegalState('no activity in progress');
|
|
5923
5377
|
}
|
|
5924
|
-
return ___default[
|
|
5378
|
+
return ___default['default'].findLast(this.activityRefs, function (tab) { return !tab.isComplete(); });
|
|
5925
5379
|
};
|
|
5926
5380
|
/**
|
|
5927
5381
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
@@ -6064,8 +5518,8 @@
|
|
|
6064
5518
|
ActivityContainerComponent.decorators = [
|
|
6065
5519
|
{ type: i0.Component, args: [{
|
|
6066
5520
|
selector: 'aup-activity-container',
|
|
6067
|
-
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\"
|
|
6068
|
-
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}"]
|
|
6069
5523
|
},] }
|
|
6070
5524
|
];
|
|
6071
5525
|
ActivityContainerComponent.ctorParameters = function () { return []; };
|
|
@@ -6104,7 +5558,7 @@
|
|
|
6104
5558
|
}
|
|
6105
5559
|
Object.defineProperty(ActivityTitleComponent.prototype, "hasTransparentBackground", {
|
|
6106
5560
|
get: function () {
|
|
6107
|
-
return ___default[
|
|
5561
|
+
return ___default['default'].isNil(this._hasUserTransparentBackground) ? !this._color : this._hasUserTransparentBackground;
|
|
6108
5562
|
},
|
|
6109
5563
|
/**
|
|
6110
5564
|
* Adjusts layout to ensure the title and body are cleanly separated with even
|
|
@@ -6134,7 +5588,7 @@
|
|
|
6134
5588
|
{ type: i0.Component, args: [{
|
|
6135
5589
|
selector: 'aup-activity-title',
|
|
6136
5590
|
template: "<ng-content></ng-content>\n",
|
|
6137
|
-
styles: [":host{display:block}
|
|
5591
|
+
styles: [":host{display:block}"]
|
|
6138
5592
|
},] }
|
|
6139
5593
|
];
|
|
6140
5594
|
ActivityTitleComponent.propDecorators = {
|
|
@@ -6161,13 +5615,6 @@
|
|
|
6161
5615
|
});
|
|
6162
5616
|
return _this;
|
|
6163
5617
|
}
|
|
6164
|
-
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
|
|
6165
|
-
get: function () {
|
|
6166
|
-
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
6167
|
-
},
|
|
6168
|
-
enumerable: false,
|
|
6169
|
-
configurable: true
|
|
6170
|
-
});
|
|
6171
5618
|
AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
|
|
6172
5619
|
};
|
|
6173
5620
|
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
|
|
@@ -6345,7 +5792,7 @@
|
|
|
6345
5792
|
function ContextRegistry() {
|
|
6346
5793
|
var _this = _super.call(this) || this;
|
|
6347
5794
|
_this._interactions = new pectin.MutableListModel();
|
|
6348
|
-
_this._disabledDelegate =
|
|
5795
|
+
_this._disabledDelegate = new pectin.DelegatingValueModel().withDefault(false);
|
|
6349
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;
|
|
6350
5797
|
_this.active = chain(_this._interactions).isNotEmpty();
|
|
6351
5798
|
_this.interactionContextIds = chain(_this._interactions).pluck("identifier");
|
|
@@ -6409,23 +5856,16 @@
|
|
|
6409
5856
|
__extends(ModalActivityTriggerComponent, _super);
|
|
6410
5857
|
function ModalActivityTriggerComponent(interactionService) {
|
|
6411
5858
|
var _this = _super.call(this) || this;
|
|
6412
|
-
_this.
|
|
5859
|
+
_this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6413
5860
|
return _this;
|
|
6414
5861
|
}
|
|
6415
|
-
Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
|
|
6416
|
-
get: function () {
|
|
6417
|
-
return this._interactionContext;
|
|
6418
|
-
},
|
|
6419
|
-
enumerable: false,
|
|
6420
|
-
configurable: true
|
|
6421
|
-
});
|
|
6422
5862
|
return ModalActivityTriggerComponent;
|
|
6423
5863
|
}(AbstractActivityTriggerComponent));
|
|
6424
5864
|
ModalActivityTriggerComponent.decorators = [
|
|
6425
5865
|
{ type: i0.Component, args: [{
|
|
6426
5866
|
selector: 'aup-modal-activity-trigger',
|
|
6427
5867
|
template: "<aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n",
|
|
6428
|
-
styles: [":host{display:inline-block}
|
|
5868
|
+
styles: [":host{display:inline-block}"]
|
|
6429
5869
|
},] }
|
|
6430
5870
|
];
|
|
6431
5871
|
ModalActivityTriggerComponent.ctorParameters = function () { return [
|
|
@@ -6464,13 +5904,6 @@
|
|
|
6464
5904
|
enumerable: false,
|
|
6465
5905
|
configurable: true
|
|
6466
5906
|
});
|
|
6467
|
-
Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
|
|
6468
|
-
get: function () {
|
|
6469
|
-
return this.isActive();
|
|
6470
|
-
},
|
|
6471
|
-
enumerable: false,
|
|
6472
|
-
configurable: true
|
|
6473
|
-
});
|
|
6474
5907
|
InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
|
|
6475
5908
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
6476
5909
|
};
|
|
@@ -6499,9 +5932,6 @@
|
|
|
6499
5932
|
InPlaceInteractionContextComponent.prototype.confirmThen = function (confirm, activityType, data) {
|
|
6500
5933
|
return this.activityContainerComponent.confirmThen(confirm, activityType);
|
|
6501
5934
|
};
|
|
6502
|
-
InPlaceInteractionContextComponent.prototype.confirmThenExecute = function (confirm, operation) {
|
|
6503
|
-
return this.activityContainerComponent.confirmThenExecute(confirm, operation);
|
|
6504
|
-
};
|
|
6505
5935
|
InPlaceInteractionContextComponent.prototype.isActive = function () {
|
|
6506
5936
|
return this.activityContainerComponent.isActive();
|
|
6507
5937
|
};
|
|
@@ -6514,7 +5944,7 @@
|
|
|
6514
5944
|
{ type: i0.Component, args: [{
|
|
6515
5945
|
selector: 'aup-in-place-interaction-context',
|
|
6516
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",
|
|
6517
|
-
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}"]
|
|
6518
5948
|
},] }
|
|
6519
5949
|
];
|
|
6520
5950
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6523,95 +5953,8 @@
|
|
|
6523
5953
|
]; };
|
|
6524
5954
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
6525
5955
|
activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
|
|
6526
|
-
animateFirstActivity: [{ type: i0.Input }]
|
|
6527
|
-
active: [{ type: i0.HostBinding, args: ["class.active",] }]
|
|
6528
|
-
};
|
|
6529
|
-
|
|
6530
|
-
/**
|
|
6531
|
-
*
|
|
6532
|
-
*/
|
|
6533
|
-
exports.AddCardActivityComponent = /** @class */ (function (_super) {
|
|
6534
|
-
__extends(AddCardActivityComponent, _super);
|
|
6535
|
-
function AddCardActivityComponent(interactionService) {
|
|
6536
|
-
var _this = _super.call(this) || this;
|
|
6537
|
-
_this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
|
|
6538
|
-
_this.renderAs = AddCardActivityComponent.RenderAs.CARD;
|
|
6539
|
-
_this.notCard = true;
|
|
6540
|
-
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
6541
|
-
_this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6542
|
-
_this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
|
|
6543
|
-
return _this;
|
|
6544
|
-
}
|
|
6545
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
|
|
6546
|
-
get: function () {
|
|
6547
|
-
return "render-as-" + this.renderAs;
|
|
6548
|
-
},
|
|
6549
|
-
enumerable: false,
|
|
6550
|
-
configurable: true
|
|
6551
|
-
});
|
|
6552
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
|
|
6553
|
-
get: function () {
|
|
6554
|
-
return this.interactionStyle + "-activity";
|
|
6555
|
-
},
|
|
6556
|
-
enumerable: false,
|
|
6557
|
-
configurable: true
|
|
6558
|
-
});
|
|
6559
|
-
AddCardActivityComponent.prototype.isRenderAsCard = function () {
|
|
6560
|
-
return this.renderAs === 'card';
|
|
6561
|
-
};
|
|
6562
|
-
AddCardActivityComponent.prototype.isRenderAsButton = function () {
|
|
6563
|
-
return this.renderAs === 'button';
|
|
6564
|
-
};
|
|
6565
|
-
AddCardActivityComponent.prototype.ngOnInit = function () {
|
|
6566
|
-
};
|
|
6567
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
|
|
6568
|
-
get: function () {
|
|
6569
|
-
switch (this.interactionStyle) {
|
|
6570
|
-
case 'inline':
|
|
6571
|
-
return this.inlineInteractionContext;
|
|
6572
|
-
default:
|
|
6573
|
-
return this.modalInteractionContext;
|
|
6574
|
-
}
|
|
6575
|
-
},
|
|
6576
|
-
enumerable: false,
|
|
6577
|
-
configurable: true
|
|
6578
|
-
});
|
|
6579
|
-
AddCardActivityComponent.prototype.isModal = function () {
|
|
6580
|
-
return this.interactionStyle === 'modal';
|
|
6581
|
-
};
|
|
6582
|
-
AddCardActivityComponent.prototype.isInline = function () {
|
|
6583
|
-
return this.interactionStyle === 'inline';
|
|
6584
|
-
};
|
|
6585
|
-
return AddCardActivityComponent;
|
|
6586
|
-
}(AbstractActivityTriggerComponent));
|
|
6587
|
-
exports.AddCardActivityComponent.decorators = [
|
|
6588
|
-
{ type: i0.Component, args: [{
|
|
6589
|
-
selector: 'aup-add-card-activity',
|
|
6590
|
-
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",
|
|
6591
|
-
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"]
|
|
6592
|
-
},] }
|
|
6593
|
-
];
|
|
6594
|
-
exports.AddCardActivityComponent.ctorParameters = function () { return [
|
|
6595
|
-
{ type: exports.InteractionService }
|
|
6596
|
-
]; };
|
|
6597
|
-
exports.AddCardActivityComponent.propDecorators = {
|
|
6598
|
-
inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
6599
|
-
interactionStyle: [{ type: i0.Input }],
|
|
6600
|
-
renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
|
|
6601
|
-
notCard: [{ type: i0.HostBinding, args: ['class.not-card',] }],
|
|
6602
|
-
renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
6603
|
-
activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
5956
|
+
animateFirstActivity: [{ type: i0.Input }]
|
|
6604
5957
|
};
|
|
6605
|
-
(function (AddCardActivityComponent) {
|
|
6606
|
-
AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
|
|
6607
|
-
MODAL: 'modal',
|
|
6608
|
-
INLINE: 'inline'
|
|
6609
|
-
});
|
|
6610
|
-
AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
|
|
6611
|
-
CARD: 'card',
|
|
6612
|
-
BUTTON: 'button'
|
|
6613
|
-
});
|
|
6614
|
-
})(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
|
|
6615
5958
|
|
|
6616
5959
|
/**
|
|
6617
5960
|
* Css Vars.
|
|
@@ -6658,7 +6001,7 @@
|
|
|
6658
6001
|
{ type: i0.Component, args: [{
|
|
6659
6002
|
selector: 'aup-add-item-interaction-context',
|
|
6660
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",
|
|
6661
|
-
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}"]
|
|
6662
6005
|
},] }
|
|
6663
6006
|
];
|
|
6664
6007
|
AddItemInteractionContextComponent.ctorParameters = function () { return []; };
|
|
@@ -6682,25 +6025,18 @@
|
|
|
6682
6025
|
function InlineActivityTriggerComponent() {
|
|
6683
6026
|
return _super.call(this) || this;
|
|
6684
6027
|
}
|
|
6685
|
-
Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
|
|
6686
|
-
get: function () {
|
|
6687
|
-
return this._interactionContext;
|
|
6688
|
-
},
|
|
6689
|
-
enumerable: false,
|
|
6690
|
-
configurable: true
|
|
6691
|
-
});
|
|
6692
6028
|
return InlineActivityTriggerComponent;
|
|
6693
6029
|
}(AbstractActivityTriggerComponent));
|
|
6694
6030
|
InlineActivityTriggerComponent.decorators = [
|
|
6695
6031
|
{ type: i0.Component, args: [{
|
|
6696
6032
|
selector: 'aup-inline-activity-trigger',
|
|
6697
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",
|
|
6698
|
-
styles: [":host{display:inline-block}
|
|
6034
|
+
styles: [":host{display:inline-block}"]
|
|
6699
6035
|
},] }
|
|
6700
6036
|
];
|
|
6701
6037
|
InlineActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6702
6038
|
InlineActivityTriggerComponent.propDecorators = {
|
|
6703
|
-
|
|
6039
|
+
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
6704
6040
|
};
|
|
6705
6041
|
|
|
6706
6042
|
/**
|
|
@@ -6738,7 +6074,6 @@
|
|
|
6738
6074
|
var self = this;
|
|
6739
6075
|
var overlayRef = this._overlay.create({
|
|
6740
6076
|
hasBackdrop: false,
|
|
6741
|
-
disposeOnNavigation: true,
|
|
6742
6077
|
panelClass: 'aup-popup-interaction-panel',
|
|
6743
6078
|
positionStrategy: this._overlay.position()
|
|
6744
6079
|
.flexibleConnectedTo(this._element)
|
|
@@ -6794,7 +6129,7 @@
|
|
|
6794
6129
|
{ type: i0.Component, args: [{
|
|
6795
6130
|
selector: 'aup-popup-interaction-context',
|
|
6796
6131
|
template: "<ng-content></ng-content>\n",
|
|
6797
|
-
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)}"]
|
|
6798
6133
|
},] }
|
|
6799
6134
|
];
|
|
6800
6135
|
PopupInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6850,7 +6185,7 @@
|
|
|
6850
6185
|
});
|
|
6851
6186
|
};
|
|
6852
6187
|
InteractionContextTriggerFor.prototype.prepareActivityData = function () {
|
|
6853
|
-
return ___default[
|
|
6188
|
+
return ___default['default'].isFunction(this.activityDataFactory()) ? this.activityDataFactory() : this.activityData;
|
|
6854
6189
|
};
|
|
6855
6190
|
return InteractionContextTriggerFor;
|
|
6856
6191
|
}(pectin.GarbageCollector));
|
|
@@ -6874,114 +6209,45 @@
|
|
|
6874
6209
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
6875
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)
|
|
6876
6211
|
// @dynamic
|
|
6877
|
-
|
|
6878
|
-
__extends(
|
|
6879
|
-
function
|
|
6880
|
-
var _this = this;
|
|
6881
|
-
var _a, _b;
|
|
6882
|
-
_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;
|
|
6883
6216
|
_this.data = data;
|
|
6884
6217
|
_this.class = 'aup-input-activity';
|
|
6885
6218
|
var form = new pectin.DirtyTrackingForm();
|
|
6886
6219
|
_this.valueModel = form.valueModel(_this.data.initialValue);
|
|
6887
6220
|
_this.valueModel.validateUsing(data.validators || []);
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
icon: function () { return 'mat:clear'; }
|
|
6894
|
-
};
|
|
6895
|
-
_this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6896
|
-
var self_1, allGood_1, result, e_1;
|
|
6897
|
-
return __generator(this, function (_c) {
|
|
6898
|
-
switch (_c.label) {
|
|
6899
|
-
case 0:
|
|
6900
|
-
if (!this.valueModel.validate()) return [3 /*break*/, 6];
|
|
6901
|
-
if (!data.save) return [3 /*break*/, 5];
|
|
6902
|
-
self_1 = this;
|
|
6903
|
-
_c.label = 1;
|
|
6904
|
-
case 1:
|
|
6905
|
-
_c.trys.push([1, 3, , 4]);
|
|
6906
|
-
allGood_1 = true;
|
|
6907
|
-
return [4 /*yield*/, data.save(this.valueModel.value, {
|
|
6908
|
-
injectError: function (error) {
|
|
6909
|
-
allGood_1 = false;
|
|
6910
|
-
self_1.valueModel.injectErrors([error]);
|
|
6911
|
-
}
|
|
6912
|
-
})];
|
|
6913
|
-
case 2:
|
|
6914
|
-
result = _c.sent();
|
|
6915
|
-
if (allGood_1) {
|
|
6916
|
-
this.done(this.valueModel.value);
|
|
6917
|
-
}
|
|
6918
|
-
return [3 /*break*/, 4];
|
|
6919
|
-
case 3:
|
|
6920
|
-
e_1 = _c.sent();
|
|
6921
|
-
console.error(e_1);
|
|
6922
|
-
return [3 /*break*/, 4];
|
|
6923
|
-
case 4: return [3 /*break*/, 6];
|
|
6924
|
-
case 5:
|
|
6925
|
-
this.done(this.valueModel.value);
|
|
6926
|
-
_c.label = 6;
|
|
6927
|
-
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(); });
|
|
6928
6226
|
}
|
|
6929
|
-
|
|
6930
|
-
|
|
6227
|
+
else {
|
|
6228
|
+
_this.done(_this.valueModel.value);
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
});
|
|
6931
6232
|
_this.cancelCommand = pectin.Command.create(function () {
|
|
6932
6233
|
_this.cancel();
|
|
6933
6234
|
});
|
|
6934
|
-
_this.busyWhile(_this.confirmCommand.busy);
|
|
6935
6235
|
return _this;
|
|
6936
6236
|
}
|
|
6937
|
-
|
|
6938
|
-
get: function () {
|
|
6939
|
-
var _a, _b;
|
|
6940
|
-
return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
|
|
6941
|
-
},
|
|
6942
|
-
enumerable: false,
|
|
6943
|
-
configurable: true
|
|
6944
|
-
});
|
|
6945
|
-
InputActivity.prototype.onActivityReady = function () {
|
|
6237
|
+
AbstractInputActivity.prototype.onActivityReady = function () {
|
|
6946
6238
|
this.valueModel.focusContext.requestFocus();
|
|
6947
6239
|
};
|
|
6948
|
-
|
|
6949
|
-
get: function () {
|
|
6950
|
-
var _a;
|
|
6951
|
-
return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
|
|
6952
|
-
},
|
|
6953
|
-
enumerable: false,
|
|
6954
|
-
configurable: true
|
|
6955
|
-
});
|
|
6956
|
-
InputActivity.prototype.onEscape = function () {
|
|
6957
|
-
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
|
|
6958
|
-
this.cancelCommand.execute();
|
|
6959
|
-
}
|
|
6960
|
-
};
|
|
6961
|
-
InputActivity.prototype.shouldCancelOnEscape = function () {
|
|
6962
|
-
return ___namespace.isNil(this.data.cancelOnEscape) // we default to true..
|
|
6963
|
-
|| this.data.cancelOnEscape;
|
|
6964
|
-
};
|
|
6965
|
-
return InputActivity;
|
|
6240
|
+
return AbstractInputActivity;
|
|
6966
6241
|
}(Activity));
|
|
6967
|
-
|
|
6242
|
+
AbstractInputActivity.decorators = [
|
|
6968
6243
|
{ type: i0.Component, args: [{ template: "" },] }
|
|
6969
6244
|
];
|
|
6970
|
-
|
|
6245
|
+
AbstractInputActivity.ctorParameters = function () { return [
|
|
6971
6246
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
6972
6247
|
]; };
|
|
6973
|
-
|
|
6974
|
-
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6975
|
-
layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
|
|
6976
|
-
additionalCssClassName: [{ type: i0.HostBinding, args: ["class",] }],
|
|
6977
|
-
onEscape: [{ type: i0.HostListener, args: ['keydown.escape',] }]
|
|
6248
|
+
AbstractInputActivity.propDecorators = {
|
|
6249
|
+
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6978
6250
|
};
|
|
6979
|
-
(function (InputActivity) {
|
|
6980
|
-
InputActivity.Layout = typescriptStringEnums.Enum({
|
|
6981
|
-
INLINE: 'inline',
|
|
6982
|
-
BLOCK: 'block'
|
|
6983
|
-
});
|
|
6984
|
-
})(exports.InputActivity || (exports.InputActivity = {}));
|
|
6985
6251
|
|
|
6986
6252
|
var StringInputActivity = /** @class */ (function (_super) {
|
|
6987
6253
|
__extends(StringInputActivity, _super);
|
|
@@ -6989,11 +6255,11 @@
|
|
|
6989
6255
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6990
6256
|
}
|
|
6991
6257
|
return StringInputActivity;
|
|
6992
|
-
}(
|
|
6258
|
+
}(AbstractInputActivity));
|
|
6993
6259
|
StringInputActivity.decorators = [
|
|
6994
6260
|
{ type: i0.Component, args: [{
|
|
6995
6261
|
selector: 'aup-string-input-activity',
|
|
6996
|
-
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 "
|
|
6997
6263
|
},] }
|
|
6998
6264
|
];
|
|
6999
6265
|
|
|
@@ -7023,11 +6289,11 @@
|
|
|
7023
6289
|
configurable: true
|
|
7024
6290
|
});
|
|
7025
6291
|
return SelectInputActivity;
|
|
7026
|
-
}(
|
|
6292
|
+
}(AbstractInputActivity));
|
|
7027
6293
|
SelectInputActivity.decorators = [
|
|
7028
6294
|
{ type: i0.Component, args: [{
|
|
7029
6295
|
selector: 'aup-select-input-activity',
|
|
7030
|
-
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 "
|
|
7031
6297
|
},] }
|
|
7032
6298
|
];
|
|
7033
6299
|
|
|
@@ -7134,6 +6400,36 @@
|
|
|
7134
6400
|
return TableModel;
|
|
7135
6401
|
}(AbstractTableModel));
|
|
7136
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
|
+
|
|
7137
6433
|
/**
|
|
7138
6434
|
* @file Automatically generated by barrelsby.
|
|
7139
6435
|
*/
|
|
@@ -7146,260 +6442,21 @@
|
|
|
7146
6442
|
_this.anchorY = 'bottom';
|
|
7147
6443
|
return _this;
|
|
7148
6444
|
}
|
|
7149
|
-
Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
|
|
7150
|
-
get: function () {
|
|
7151
|
-
return this._interactionContext;
|
|
7152
|
-
},
|
|
7153
|
-
enumerable: false,
|
|
7154
|
-
configurable: true
|
|
7155
|
-
});
|
|
7156
6445
|
return PopupActivityTriggerComponent;
|
|
7157
6446
|
}(AbstractActivityTriggerComponent));
|
|
7158
6447
|
PopupActivityTriggerComponent.decorators = [
|
|
7159
6448
|
{ type: i0.Component, args: [{
|
|
7160
6449
|
selector: 'aup-popup-activity-trigger',
|
|
7161
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",
|
|
7162
|
-
styles: [":host{display:inline-block}
|
|
6451
|
+
styles: [":host{display:inline-block}"]
|
|
7163
6452
|
},] }
|
|
7164
6453
|
];
|
|
7165
6454
|
PopupActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
7166
6455
|
PopupActivityTriggerComponent.propDecorators = {
|
|
7167
6456
|
anchorX: [{ type: i0.Input }],
|
|
7168
6457
|
anchorY: [{ type: i0.Input }],
|
|
7169
|
-
|
|
7170
|
-
};
|
|
7171
|
-
|
|
7172
|
-
exports.InlineEditorModel = /** @class */ (function (_super) {
|
|
7173
|
-
__extends(InlineEditorModel, _super);
|
|
7174
|
-
function InlineEditorModel(valueModel, saveCallback) {
|
|
7175
|
-
var _this = _super.call(this) || this;
|
|
7176
|
-
_this.valueModel = valueModel;
|
|
7177
|
-
_this.saveCallback = saveCallback;
|
|
7178
|
-
_this.editing = new pectin.MutableValueModel(false);
|
|
7179
|
-
_this._validators = new pectin.MutableListModel();
|
|
7180
|
-
_this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
|
|
7181
|
-
pectin.assert.notNil(valueModel);
|
|
7182
|
-
var when = pectin.Dsl.disposeWith(_this).when;
|
|
7183
|
-
when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
7184
|
-
return _this;
|
|
7185
|
-
}
|
|
7186
|
-
Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
|
|
7187
|
-
get: function () {
|
|
7188
|
-
return this._editingEnabled.readonly;
|
|
7189
|
-
},
|
|
7190
|
-
enumerable: false,
|
|
7191
|
-
configurable: true
|
|
7192
|
-
});
|
|
7193
|
-
InlineEditorModel.prototype.disableWhile = function (condition) {
|
|
7194
|
-
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
7195
|
-
this.enableWhile(chain(condition).isFalsey());
|
|
7196
|
-
return this;
|
|
7197
|
-
};
|
|
7198
|
-
InlineEditorModel.prototype.enableWhile = function (condition) {
|
|
7199
|
-
this._editingEnabled.setDelegate(condition);
|
|
7200
|
-
return this;
|
|
7201
|
-
};
|
|
7202
|
-
Object.defineProperty(InlineEditorModel.prototype, "validators", {
|
|
7203
|
-
get: function () {
|
|
7204
|
-
return this._validators.readonly;
|
|
7205
|
-
},
|
|
7206
|
-
enumerable: false,
|
|
7207
|
-
configurable: true
|
|
7208
|
-
});
|
|
7209
|
-
InlineEditorModel.prototype.validateUsing = function (validator) {
|
|
7210
|
-
this._validators.push(validator);
|
|
7211
|
-
return this;
|
|
7212
|
-
};
|
|
7213
|
-
InlineEditorModel.prototype.isEditing = function () {
|
|
7214
|
-
return this.editing.value;
|
|
7215
|
-
};
|
|
7216
|
-
InlineEditorModel.prototype.cancelEdit = function () {
|
|
7217
|
-
this.editing.value = false;
|
|
7218
|
-
};
|
|
7219
|
-
InlineEditorModel.prototype.startEditing = function () {
|
|
7220
|
-
this.editing.value = true;
|
|
7221
|
-
};
|
|
7222
|
-
return InlineEditorModel;
|
|
7223
|
-
}(pectin.GarbageCollector));
|
|
7224
|
-
(function (InlineEditorModel) {
|
|
7225
|
-
function create(valueModel, options) {
|
|
7226
|
-
return new InlineEditorModel(valueModel, options.save);
|
|
7227
|
-
}
|
|
7228
|
-
InlineEditorModel.create = create;
|
|
7229
|
-
})(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
|
|
7230
|
-
pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
|
|
7231
|
-
|
|
7232
|
-
/**
|
|
7233
|
-
* @example
|
|
7234
|
-
* const source: ValueModel<string> = ...;
|
|
7235
|
-
* const model = InlineEditorModel.create(source, {
|
|
7236
|
-
* save(updated:string, context: EditContext) => {
|
|
7237
|
-
* try {
|
|
7238
|
-
* try and save the thing...
|
|
7239
|
-
* } catch(error) {
|
|
7240
|
-
* context.injectError(error)
|
|
7241
|
-
* }
|
|
7242
|
-
* }).validateUsing(Validator.present("We'll need a value");
|
|
7243
|
-
*
|
|
7244
|
-
* # in the view
|
|
7245
|
-
* <aup-inline-string-editor
|
|
7246
|
-
* label="My field"
|
|
7247
|
-
* placeHolder="I'm ready for a string..."
|
|
7248
|
-
* [editorModel]="model"></aup-inline-string-editor>
|
|
7249
|
-
*/
|
|
7250
|
-
exports.InlineStringEditorComponent = /** @class */ (function (_super) {
|
|
7251
|
-
__extends(InlineStringEditorComponent, _super);
|
|
7252
|
-
function InlineStringEditorComponent(interactionService) {
|
|
7253
|
-
var _this = _super.call(this) || this;
|
|
7254
|
-
_this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
7255
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
7256
|
-
var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
7257
|
-
var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
|
|
7258
|
-
return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
|
|
7259
|
-
}, { allowNil: true });
|
|
7260
|
-
_this.editFaceModel = resolvedFacesModel.pluck('edit');
|
|
7261
|
-
_this.saveFace = resolvedFacesModel.pluck('save');
|
|
7262
|
-
_this.cancelFace = resolvedFacesModel.pluck('cancel');
|
|
7263
|
-
var self = _this;
|
|
7264
|
-
_this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
7265
|
-
var e_1;
|
|
7266
|
-
return __generator(this, function (_a) {
|
|
7267
|
-
switch (_a.label) {
|
|
7268
|
-
case 0:
|
|
7269
|
-
this.editorModel.editing.value = true;
|
|
7270
|
-
_a.label = 1;
|
|
7271
|
-
case 1:
|
|
7272
|
-
_a.trys.push([1, 3, 4, 5]);
|
|
7273
|
-
return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
|
|
7274
|
-
case 2:
|
|
7275
|
-
_a.sent();
|
|
7276
|
-
return [3 /*break*/, 5];
|
|
7277
|
-
case 3:
|
|
7278
|
-
e_1 = _a.sent();
|
|
7279
|
-
return [3 /*break*/, 5];
|
|
7280
|
-
case 4:
|
|
7281
|
-
this.editorModel.editing.value = false;
|
|
7282
|
-
return [7 /*endfinally*/];
|
|
7283
|
-
case 5: return [2 /*return*/];
|
|
7284
|
-
}
|
|
7285
|
-
});
|
|
7286
|
-
}); }).enableWhile(_this.editingEnabled);
|
|
7287
|
-
_this.onDispose(function () { return _this.cancelEdit(); });
|
|
7288
|
-
return _this;
|
|
7289
|
-
}
|
|
7290
|
-
InlineStringEditorComponent.prototype.ngOnInit = function () {
|
|
7291
|
-
var _this = this;
|
|
7292
|
-
// our editor model is a one time binding without delegates so we can only
|
|
7293
|
-
// use it once we've been initialised
|
|
7294
|
-
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
7295
|
-
if (!this.editorModel) {
|
|
7296
|
-
typescriptUtilities.lang.illegalState('editorModel is required');
|
|
7297
|
-
}
|
|
7298
|
-
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
7299
|
-
when(this.editorModel.editing).becomesTruthy(function () {
|
|
7300
|
-
_this.editCommand.execute();
|
|
7301
|
-
}, { asLongAs: this.editCommand.enabled });
|
|
7302
|
-
when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
7303
|
-
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
7304
|
-
// deviceDescription.isNil()
|
|
7305
|
-
).areTruthy();
|
|
7306
|
-
this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
|
|
7307
|
-
return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
|
|
7308
|
-
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
7309
|
-
};
|
|
7310
|
-
InlineStringEditorComponent.prototype.createInputActivityData = function () {
|
|
7311
|
-
var self = this;
|
|
7312
|
-
return {
|
|
7313
|
-
initialValue: self.editorModel.valueModel.value,
|
|
7314
|
-
confirmFace: self.saveFace.value,
|
|
7315
|
-
cancelFace: self.cancelFace.value,
|
|
7316
|
-
placeholder: self.placeHolderModel.value,
|
|
7317
|
-
label: self.label,
|
|
7318
|
-
layout: exports.InputActivity.Layout.INLINE,
|
|
7319
|
-
validators: self.editorModel.validators.value,
|
|
7320
|
-
save: function (value, inputContext) {
|
|
7321
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7322
|
-
return __generator(this, function (_a) {
|
|
7323
|
-
switch (_a.label) {
|
|
7324
|
-
case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
|
|
7325
|
-
case 1:
|
|
7326
|
-
_a.sent();
|
|
7327
|
-
return [2 /*return*/];
|
|
7328
|
-
}
|
|
7329
|
-
});
|
|
7330
|
-
});
|
|
7331
|
-
}
|
|
7332
|
-
};
|
|
7333
|
-
};
|
|
7334
|
-
InlineStringEditorComponent.prototype.cancelEdit = function () {
|
|
7335
|
-
if (this.isEditing()) {
|
|
7336
|
-
this.interactionContext.cancelActiveActivity();
|
|
7337
|
-
}
|
|
7338
|
-
};
|
|
7339
|
-
InlineStringEditorComponent.prototype.startEdit = function () {
|
|
7340
|
-
if (!this.isEditing() && this.editCommand.enabled.value) {
|
|
7341
|
-
this.editCommand.execute();
|
|
7342
|
-
}
|
|
7343
|
-
};
|
|
7344
|
-
InlineStringEditorComponent.prototype.isEditing = function () {
|
|
7345
|
-
return this.interactionContext.isActive();
|
|
7346
|
-
};
|
|
7347
|
-
InlineStringEditorComponent.prototype.isEmpty = function () {
|
|
7348
|
-
return this.empty.value;
|
|
7349
|
-
};
|
|
7350
|
-
return InlineStringEditorComponent;
|
|
7351
|
-
}(DisposableComponent));
|
|
7352
|
-
exports.InlineStringEditorComponent.decorators = [
|
|
7353
|
-
{ type: i0.Component, args: [{
|
|
7354
|
-
selector: 'aup-inline-string-editor',
|
|
7355
|
-
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"
|
|
7356
|
-
},] }
|
|
7357
|
-
];
|
|
7358
|
-
exports.InlineStringEditorComponent.ctorParameters = function () { return [
|
|
7359
|
-
{ type: exports.InteractionService }
|
|
7360
|
-
]; };
|
|
7361
|
-
exports.InlineStringEditorComponent.propDecorators = {
|
|
7362
|
-
editorModel: [{ type: i0.Input }],
|
|
7363
|
-
facesModel: [{ type: i0.Input }],
|
|
7364
|
-
faces: [{ type: i0.Input }],
|
|
7365
|
-
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
|
|
7366
|
-
label: [{ type: i0.Input }],
|
|
7367
|
-
placeHolder: [{ type: i0.Input }],
|
|
7368
|
-
placeHolderModel: [{ type: i0.Input }]
|
|
6458
|
+
interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
7369
6459
|
};
|
|
7370
|
-
__decorate([
|
|
7371
|
-
pectin.TrackExternal(),
|
|
7372
|
-
__metadata("design:type", exports.InlineEditorModel)
|
|
7373
|
-
], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
|
|
7374
|
-
__decorate([
|
|
7375
|
-
pectin.TrackExternal(),
|
|
7376
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7377
|
-
], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
|
|
7378
|
-
__decorate([
|
|
7379
|
-
pectin.StoreInValueModel('facesModel'),
|
|
7380
|
-
__metadata("design:type", Object)
|
|
7381
|
-
], exports.InlineStringEditorComponent.prototype, "faces", void 0);
|
|
7382
|
-
__decorate([
|
|
7383
|
-
pectin.StoreInValueModel('placeHolderModel'),
|
|
7384
|
-
__metadata("design:type", String)
|
|
7385
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
|
|
7386
|
-
__decorate([
|
|
7387
|
-
pectin.TrackExternal(),
|
|
7388
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7389
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
7390
|
-
(function (InlineStringEditorComponent) {
|
|
7391
|
-
InlineStringEditorComponent.DEFAULT_FACES = {
|
|
7392
|
-
edit: {
|
|
7393
|
-
icon: function () { return 'mat:edit'; }
|
|
7394
|
-
},
|
|
7395
|
-
save: {
|
|
7396
|
-
icon: function () { return 'mat:check'; }
|
|
7397
|
-
},
|
|
7398
|
-
cancel: {
|
|
7399
|
-
icon: function () { return 'mat:clear'; }
|
|
7400
|
-
}
|
|
7401
|
-
};
|
|
7402
|
-
})(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
|
|
7403
6460
|
|
|
7404
6461
|
var InteractionModule = /** @class */ (function () {
|
|
7405
6462
|
function InteractionModule() {
|
|
@@ -7419,39 +6476,30 @@
|
|
|
7419
6476
|
DirectivesModule,
|
|
7420
6477
|
flexLayout.FlexModule,
|
|
7421
6478
|
flexLayout.GridModule,
|
|
7422
|
-
ComponentsModule
|
|
7423
|
-
forms.FormsModule,
|
|
7424
|
-
input.MatInputModule,
|
|
7425
|
-
formField.MatFormFieldModule,
|
|
7426
|
-
a11y.A11yModule
|
|
6479
|
+
ComponentsModule
|
|
7427
6480
|
],
|
|
7428
6481
|
declarations: [
|
|
7429
6482
|
ActivityContainerComponent,
|
|
7430
6483
|
ConfirmationDialogComponent,
|
|
7431
6484
|
ConfirmThenDialogComponent,
|
|
7432
|
-
ConfirmThenExecuteDialogComponent,
|
|
7433
6485
|
AlertDialogComponent,
|
|
7434
6486
|
ActivityOutletComponent,
|
|
7435
6487
|
InPlaceInteractionContextComponent,
|
|
7436
6488
|
AddItemInteractionContextComponent,
|
|
7437
|
-
|
|
6489
|
+
ActivityActionsComponent,
|
|
7438
6490
|
PopupInteractionContextComponent,
|
|
7439
6491
|
StringInputActivity,
|
|
7440
6492
|
SelectInputActivity,
|
|
7441
|
-
|
|
6493
|
+
AbstractInputActivity,
|
|
7442
6494
|
InteractionContextTriggerFor,
|
|
7443
6495
|
Activity,
|
|
7444
6496
|
ActivityTitleComponent,
|
|
7445
6497
|
ActivityBodyComponent,
|
|
7446
|
-
|
|
6498
|
+
ActivityActionsComponent,
|
|
7447
6499
|
AbstractActivityTriggerComponent,
|
|
7448
6500
|
PopupActivityTriggerComponent,
|
|
7449
6501
|
InlineActivityTriggerComponent,
|
|
7450
|
-
ModalActivityTriggerComponent
|
|
7451
|
-
exports.AddCardActivityComponent,
|
|
7452
|
-
exports.InlineStringEditorComponent,
|
|
7453
|
-
AbstractDialogComponent,
|
|
7454
|
-
AbstractConfirmDialogComponent,
|
|
6502
|
+
ModalActivityTriggerComponent
|
|
7455
6503
|
],
|
|
7456
6504
|
exports: [
|
|
7457
6505
|
ActivityContainerComponent,
|
|
@@ -7459,7 +6507,7 @@
|
|
|
7459
6507
|
ActivityTitleComponent,
|
|
7460
6508
|
InPlaceInteractionContextComponent,
|
|
7461
6509
|
AddItemInteractionContextComponent,
|
|
7462
|
-
|
|
6510
|
+
ActivityActionsComponent,
|
|
7463
6511
|
PopupInteractionContextComponent,
|
|
7464
6512
|
InteractionContextTriggerFor,
|
|
7465
6513
|
StringInputActivity,
|
|
@@ -7467,15 +6515,13 @@
|
|
|
7467
6515
|
ActivityBodyComponent,
|
|
7468
6516
|
PopupActivityTriggerComponent,
|
|
7469
6517
|
InlineActivityTriggerComponent,
|
|
7470
|
-
ModalActivityTriggerComponent
|
|
7471
|
-
exports.AddCardActivityComponent,
|
|
7472
|
-
exports.InlineStringEditorComponent,
|
|
6518
|
+
ModalActivityTriggerComponent
|
|
7473
6519
|
],
|
|
7474
6520
|
entryComponents: [
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
6521
|
+
ActivityContainerComponent,
|
|
6522
|
+
ConfirmationDialogComponent,
|
|
6523
|
+
ConfirmThenDialogComponent,
|
|
6524
|
+
AlertDialogComponent
|
|
7479
6525
|
],
|
|
7480
6526
|
providers: [
|
|
7481
6527
|
exports.InteractionService
|
|
@@ -7554,7 +6600,7 @@
|
|
|
7554
6600
|
return _this;
|
|
7555
6601
|
}
|
|
7556
6602
|
RouteId.prototype.isEmptyValue = function (value) {
|
|
7557
|
-
return ___default[
|
|
6603
|
+
return ___default['default'].isNil(value);
|
|
7558
6604
|
};
|
|
7559
6605
|
RouteId.prototype.hasChanged = function (a, b) {
|
|
7560
6606
|
return a !== b;
|
|
@@ -7572,7 +6618,7 @@
|
|
|
7572
6618
|
return _this;
|
|
7573
6619
|
}
|
|
7574
6620
|
ValueParameter.prototype.isEmptyValue = function (value) {
|
|
7575
|
-
return ___default[
|
|
6621
|
+
return ___default['default'].isNil(value);
|
|
7576
6622
|
};
|
|
7577
6623
|
ValueParameter.prototype.hasChanged = function (a, b) {
|
|
7578
6624
|
return a !== b;
|
|
@@ -7590,10 +6636,10 @@
|
|
|
7590
6636
|
return _this;
|
|
7591
6637
|
}
|
|
7592
6638
|
ArrayParameter.prototype.isEmptyValue = function (value) {
|
|
7593
|
-
return ___default[
|
|
6639
|
+
return ___default['default'].isNil(value) || value.length < 1;
|
|
7594
6640
|
};
|
|
7595
6641
|
ArrayParameter.prototype.hasChanged = function (a, b) {
|
|
7596
|
-
return !___default[
|
|
6642
|
+
return !___default['default'].isEqual(a, b);
|
|
7597
6643
|
};
|
|
7598
6644
|
return ArrayParameter;
|
|
7599
6645
|
}(ParameterDefinition));
|
|
@@ -7642,13 +6688,13 @@
|
|
|
7642
6688
|
};
|
|
7643
6689
|
PlaceDefinition.prototype.getPlaceData = function (key, defaultValue) {
|
|
7644
6690
|
return this.data ?
|
|
7645
|
-
___default[
|
|
6691
|
+
___default['default'].isNil(this.data[key]) ? defaultValue : this.data[key] :
|
|
7646
6692
|
defaultValue;
|
|
7647
6693
|
};
|
|
7648
6694
|
PlaceDefinition.prototype.searchPlaceData = function (keys, defaultValue) {
|
|
7649
6695
|
var _this = this;
|
|
7650
6696
|
if (this.data) {
|
|
7651
|
-
var found = keys.find(function (key) { return !___default[
|
|
6697
|
+
var found = keys.find(function (key) { return !___default['default'].isNil(_this.data[key]); });
|
|
7652
6698
|
return found ? this.data[found] : defaultValue;
|
|
7653
6699
|
}
|
|
7654
6700
|
else {
|
|
@@ -7718,7 +6764,7 @@
|
|
|
7718
6764
|
// because our id routes redirect if the id isn't present we always have a id
|
|
7719
6765
|
// parameter in our params. This will bugger our remember and defaultvalue sanitisation
|
|
7720
6766
|
// as it'll see that the id is present (event thought its a blank string).
|
|
7721
|
-
if (!___default[
|
|
6767
|
+
if (!___default['default'].isEmpty(value)) {
|
|
7722
6768
|
result[def.name] = def.urlFormat.parse(value);
|
|
7723
6769
|
}
|
|
7724
6770
|
}
|
|
@@ -7781,28 +6827,17 @@
|
|
|
7781
6827
|
_this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
|
|
7782
6828
|
return _this;
|
|
7783
6829
|
}
|
|
6830
|
+
// @Trace()
|
|
7784
6831
|
PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
|
|
7785
6832
|
var _this = this;
|
|
7786
6833
|
pectin.assert.isNil(this.visitModel.value);
|
|
7787
6834
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
7788
6835
|
this.visitModel.value = visit;
|
|
7789
6836
|
pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
7790
|
-
|
|
7791
|
-
// route in one go at the end.
|
|
7792
|
-
this.placeDefinition
|
|
7793
|
-
.getVisitParameterDefs()
|
|
7794
|
-
.forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
|
|
6837
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
7795
6838
|
when(this.visitModel).changes(function (current, previous) {
|
|
7796
6839
|
notifyVisitChanged(current, previous);
|
|
7797
6840
|
}, { unless: this._inVisitUpdate });
|
|
7798
|
-
// TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
|
|
7799
|
-
// now we're not doing it as it's a fair bit of effort and will only affect people if they're
|
|
7800
|
-
// cutting and pasting urls to each other.
|
|
7801
|
-
// // the binding process can update the visit (e.g. if a selection model has already selected during
|
|
7802
|
-
// // component construction) and there was no value specified in the route
|
|
7803
|
-
// if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
|
|
7804
|
-
// notifyVisitChanged(this.visitModel.value, visit)
|
|
7805
|
-
// }
|
|
7806
6841
|
};
|
|
7807
6842
|
PlaceComponent.prototype.updateVisit = function (visit) {
|
|
7808
6843
|
var _this = this;
|
|
@@ -7816,12 +6851,7 @@
|
|
|
7816
6851
|
return !!this.visitModel.value;
|
|
7817
6852
|
};
|
|
7818
6853
|
// @Trace()
|
|
7819
|
-
|
|
7820
|
-
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
7821
|
-
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
7822
|
-
* method will return ture to nofiy the the visit has changed.
|
|
7823
|
-
*/
|
|
7824
|
-
PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
|
|
6854
|
+
PlaceComponent.prototype.installBinding = function (parameterDef) {
|
|
7825
6855
|
var model = this[parameterDef.propertyName];
|
|
7826
6856
|
pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
|
|
7827
6857
|
var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
|
|
@@ -7835,17 +6865,7 @@
|
|
|
7835
6865
|
return currentVisit.replace(parameterDef, value);
|
|
7836
6866
|
}
|
|
7837
6867
|
}));
|
|
7838
|
-
|
|
7839
|
-
// 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
|
|
7840
|
-
// component constructor) then we should push that to the route.
|
|
7841
|
-
var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
|
|
7842
|
-
var isInModel = !___namespace.isNil(model.value);
|
|
7843
|
-
if (!isInVisit && isInModel) {
|
|
7844
|
-
binding.writeLeft(); // push it to the route
|
|
7845
|
-
}
|
|
7846
|
-
else {
|
|
7847
|
-
binding.writeRight(); // push it to the model
|
|
7848
|
-
}
|
|
6868
|
+
binding.writeRight();
|
|
7849
6869
|
};
|
|
7850
6870
|
Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
|
|
7851
6871
|
get: function () {
|
|
@@ -8396,7 +7416,7 @@
|
|
|
8396
7416
|
var currentIds = this.interactionServiceAdapter.getActiveInteractionContextIds();
|
|
8397
7417
|
var previousIds = this.urlService.getCurrentLocationUrlSnapshot().getInteractionIds();
|
|
8398
7418
|
// console.log(`---> synchroniseInteractionIds`, { is: currentIds.join(','), was: previousIds.join(',') });
|
|
8399
|
-
if (___default[
|
|
7419
|
+
if (___default['default'].isEqual(currentIds, previousIds)) {
|
|
8400
7420
|
// console.log('### Activity context ids were the same, skipping');
|
|
8401
7421
|
this.context.finishRoutingSession();
|
|
8402
7422
|
}
|
|
@@ -8876,7 +7896,7 @@
|
|
|
8876
7896
|
return !!((_a = this._previousVisits) === null || _a === void 0 ? void 0 : _a.getVisitFor(placeDef));
|
|
8877
7897
|
};
|
|
8878
7898
|
PlaceHistory.prototype.getMostRecentVisitFor = function (placeDef) {
|
|
8879
|
-
return ___default[
|
|
7899
|
+
return ___default['default'].first(this.getHistory(placeDef));
|
|
8880
7900
|
};
|
|
8881
7901
|
PlaceHistory.prototype.getHistory = function (placeDef) {
|
|
8882
7902
|
var history = this._archive.get(placeDef);
|
|
@@ -8893,7 +7913,7 @@
|
|
|
8893
7913
|
var _this = this;
|
|
8894
7914
|
visits.forEach(function (state) {
|
|
8895
7915
|
var history = _this.getHistory(state.placeDefinition);
|
|
8896
|
-
var previousState = ___default[
|
|
7916
|
+
var previousState = ___default['default'].first(history);
|
|
8897
7917
|
if (!previousState || state.hasChangedFrom(previousState)) {
|
|
8898
7918
|
history.unshift(state); // LIFO
|
|
8899
7919
|
_this.setHistory(state.placeDefinition, history.slice(0, _this.placeHistoryDepth));
|
|
@@ -9017,7 +8037,7 @@
|
|
|
9017
8037
|
};
|
|
9018
8038
|
Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
|
|
9019
8039
|
get: function () {
|
|
9020
|
-
return
|
|
8040
|
+
return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
|
|
9021
8041
|
},
|
|
9022
8042
|
enumerable: false,
|
|
9023
8043
|
configurable: true
|
|
@@ -9106,13 +8126,9 @@
|
|
|
9106
8126
|
});
|
|
9107
8127
|
return new Visit(this.placeDefinition, params);
|
|
9108
8128
|
};
|
|
9109
|
-
// @Trace()
|
|
9110
8129
|
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
9111
8130
|
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
9112
|
-
var
|
|
9113
|
-
var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
|
|
9114
|
-
// console.log({currentParams, otherParams});
|
|
9115
|
-
var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
|
|
8131
|
+
var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
9116
8132
|
return !samePlace || !sameRouteParameters;
|
|
9117
8133
|
};
|
|
9118
8134
|
Visit.prototype.hasChangedFrom = function (other) {
|
|
@@ -9188,7 +8204,7 @@
|
|
|
9188
8204
|
return this.getInteractionIds().length > 0;
|
|
9189
8205
|
};
|
|
9190
8206
|
UrlSnapshot.prototype.hasInteractionIds = function (ids) {
|
|
9191
|
-
return ___default[
|
|
8207
|
+
return ___default['default'].isEqual(this.getInteractionIds(), ids);
|
|
9192
8208
|
};
|
|
9193
8209
|
// @Trace()
|
|
9194
8210
|
UrlSnapshot.prototype.updateInteractionIds = function (ids) {
|
|
@@ -9300,9 +8316,6 @@
|
|
|
9300
8316
|
{ type: i1$1.UrlSerializer }
|
|
9301
8317
|
]; };
|
|
9302
8318
|
|
|
9303
|
-
function asArray(item) {
|
|
9304
|
-
return Array.isArray(item) ? item : [item];
|
|
9305
|
-
}
|
|
9306
8319
|
exports.PlaceRouter = /** @class */ (function (_super) {
|
|
9307
8320
|
__extends(PlaceRouter, _super);
|
|
9308
8321
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -9319,7 +8332,7 @@
|
|
|
9319
8332
|
* An observable model containing the authoriser function. This allows places to react to changes
|
|
9320
8333
|
* in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
|
|
9321
8334
|
*/
|
|
9322
|
-
_this._accessGuard =
|
|
8335
|
+
_this._accessGuard = new pectin.DelegatingValueModel().withDefault(new exports.PlaceAccessGuard.NoAuth());
|
|
9323
8336
|
if (window['Cypress']) {
|
|
9324
8337
|
window['aup.PlaceRouter'] = _this;
|
|
9325
8338
|
}
|
|
@@ -9482,15 +8495,17 @@
|
|
|
9482
8495
|
};
|
|
9483
8496
|
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
9484
8497
|
var _this = this;
|
|
9485
|
-
var commands = asArray(visit).reduce(function (result, v) {
|
|
9486
|
-
return __spreadArray(__spreadArray(__spreadArray([], __read(result)), [v.placeDefinition.path]), __read(_this.createRouteParameters(v)));
|
|
9487
|
-
}, []);
|
|
9488
8498
|
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
8499
|
+
var commands;
|
|
9489
8500
|
return __generator(this, function (_a) {
|
|
9490
8501
|
switch (_a.label) {
|
|
9491
|
-
case 0:
|
|
9492
|
-
|
|
9493
|
-
|
|
8502
|
+
case 0:
|
|
8503
|
+
commands = __spreadArray([
|
|
8504
|
+
visit.placeDefinition.path
|
|
8505
|
+
], __read(this.createRouteParameters(visit)));
|
|
8506
|
+
return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
8507
|
+
relativeTo: options ? options.relativeTo : null
|
|
8508
|
+
})];
|
|
9494
8509
|
case 1:
|
|
9495
8510
|
_a.sent();
|
|
9496
8511
|
return [2 /*return*/];
|
|
@@ -9509,7 +8524,7 @@
|
|
|
9509
8524
|
pectin.lang.illegalState('Navigation already in progress');
|
|
9510
8525
|
}
|
|
9511
8526
|
navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
9512
|
-
|
|
8527
|
+
navigation.storeVisit(visit);
|
|
9513
8528
|
this.transitionTo(navigation);
|
|
9514
8529
|
_a.label = 1;
|
|
9515
8530
|
case 1:
|
|
@@ -9605,7 +8620,6 @@
|
|
|
9605
8620
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
9606
8621
|
* the app directly and we don't get to ask.
|
|
9607
8622
|
*/
|
|
9608
|
-
// @Trace()
|
|
9609
8623
|
PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
|
|
9610
8624
|
var _this = this;
|
|
9611
8625
|
if (this.navigationSession) {
|
|
@@ -9649,6 +8663,12 @@
|
|
|
9649
8663
|
{ type: UrlService },
|
|
9650
8664
|
{ type: exports.PlaceHistory }
|
|
9651
8665
|
]; };
|
|
8666
|
+
__decorate([
|
|
8667
|
+
pectin.Trace(),
|
|
8668
|
+
__metadata("design:type", Function),
|
|
8669
|
+
__metadata("design:paramtypes", []),
|
|
8670
|
+
__metadata("design:returntype", Promise)
|
|
8671
|
+
], exports.PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
|
|
9652
8672
|
(function (PlaceRouter) {
|
|
9653
8673
|
var State = /** @class */ (function () {
|
|
9654
8674
|
function State(activeVisits) {
|
|
@@ -9676,7 +8696,7 @@
|
|
|
9676
8696
|
{ type: i0.Component, args: [{
|
|
9677
8697
|
selector: 'aup-not-authorised-notice',
|
|
9678
8698
|
template: "<p>You are not authorised to access this page</p>\n",
|
|
9679
|
-
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}
|
|
8699
|
+
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}"]
|
|
9680
8700
|
},] }
|
|
9681
8701
|
];
|
|
9682
8702
|
NotAuthorisedNoticeComponent.ctorParameters = function () { return []; };
|
|
@@ -9927,7 +8947,7 @@
|
|
|
9927
8947
|
selector: 'aup-place-outlet',
|
|
9928
8948
|
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",
|
|
9929
8949
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
9930
|
-
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}
|
|
8950
|
+
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}"]
|
|
9931
8951
|
},] }
|
|
9932
8952
|
];
|
|
9933
8953
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
@@ -9969,7 +8989,7 @@
|
|
|
9969
8989
|
function AbstractPlaceNavigationComponent(placeRouter) {
|
|
9970
8990
|
var _this = _super.call(this) || this;
|
|
9971
8991
|
_this.placeRouter = placeRouter;
|
|
9972
|
-
_this._activePlaceComponent =
|
|
8992
|
+
_this._activePlaceComponent = new pectin.DelegatingValueModel();
|
|
9973
8993
|
_this.trackByPlaceDef = function (data) { return data.place; };
|
|
9974
8994
|
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;
|
|
9975
8995
|
_this.placeDefinitions = chain(_this.placesModel)
|
|
@@ -10062,7 +9082,7 @@
|
|
|
10062
9082
|
{ type: i0.Component, args: [{
|
|
10063
9083
|
selector: 'aup-list-place-nav',
|
|
10064
9084
|
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",
|
|
10065
|
-
styles: [":host{display:flex;flex-direction:column;--selected-border-color
|
|
9085
|
+
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)}"]
|
|
10066
9086
|
},] }
|
|
10067
9087
|
];
|
|
10068
9088
|
ListPlaceNavComponent.ctorParameters = function () { return [
|
|
@@ -10133,7 +9153,7 @@
|
|
|
10133
9153
|
{ type: i0.Component, args: [{
|
|
10134
9154
|
selector: 'aup-side-place-navigation',
|
|
10135
9155
|
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",
|
|
10136
|
-
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:
|
|
9156
|
+
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)}"]
|
|
10137
9157
|
},] }
|
|
10138
9158
|
];
|
|
10139
9159
|
SidePlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -10155,7 +9175,7 @@
|
|
|
10155
9175
|
{ type: i0.Component, args: [{
|
|
10156
9176
|
selector: 'aup-tabbed-place-navigation',
|
|
10157
9177
|
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",
|
|
10158
|
-
styles: [":host{display:block}div.place-holder{border:1px solid green}
|
|
9178
|
+
styles: [":host{display:block}div.place-holder{border:1px solid green}"]
|
|
10159
9179
|
},] }
|
|
10160
9180
|
];
|
|
10161
9181
|
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -10266,6 +9286,9 @@
|
|
|
10266
9286
|
* @file Automatically generated by barrelsby.
|
|
10267
9287
|
*/
|
|
10268
9288
|
|
|
9289
|
+
// const r:Result<string, number> = null;
|
|
9290
|
+
// r.catch(e => {}).then();
|
|
9291
|
+
|
|
10269
9292
|
var DialogInteractionContext = /** @class */ (function (_super) {
|
|
10270
9293
|
__extends(DialogInteractionContext, _super);
|
|
10271
9294
|
function DialogInteractionContext(identifier, api, dialogService, config) {
|
|
@@ -10484,13 +9507,13 @@
|
|
|
10484
9507
|
}
|
|
10485
9508
|
_a.label = 2;
|
|
10486
9509
|
case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10487
|
-
var
|
|
9510
|
+
var params, parsedParams, navigationSession, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
|
|
10488
9511
|
return __generator(this, function (_a) {
|
|
10489
9512
|
switch (_a.label) {
|
|
10490
9513
|
case 0:
|
|
10491
|
-
navigationSession = this.placeRouter.navigationSession;
|
|
10492
9514
|
params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
|
|
10493
9515
|
parsedParams = placeDefinition_1.parseRouteParams(params);
|
|
9516
|
+
navigationSession = this.placeRouter.navigationSession;
|
|
10494
9517
|
initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
|
|
10495
9518
|
sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
|
|
10496
9519
|
return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
|
|
@@ -10599,11 +9622,11 @@
|
|
|
10599
9622
|
function NumberType() {
|
|
10600
9623
|
}
|
|
10601
9624
|
NumberType.prototype.format = function (value) {
|
|
10602
|
-
return ___default[
|
|
9625
|
+
return ___default['default'].isNumber(value) && !___default['default'].isNaN(value) ? "" + value : null;
|
|
10603
9626
|
};
|
|
10604
9627
|
NumberType.prototype.parse = function (value) {
|
|
10605
9628
|
var parsed = Number.parseFloat(value);
|
|
10606
|
-
return ___default[
|
|
9629
|
+
return ___default['default'].isNaN(parsed) ? null : parsed;
|
|
10607
9630
|
};
|
|
10608
9631
|
return NumberType;
|
|
10609
9632
|
}());
|
|
@@ -10776,13 +9799,10 @@
|
|
|
10776
9799
|
*/
|
|
10777
9800
|
|
|
10778
9801
|
exports.ACTIVITY_DATA = ACTIVITY_DATA;
|
|
10779
|
-
exports.ALERT_CONFIG = ALERT_CONFIG;
|
|
10780
9802
|
exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
|
|
10781
9803
|
exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
|
|
10782
9804
|
exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
|
|
10783
|
-
exports.
|
|
10784
|
-
exports.AbstractConfirmDialogComponent = AbstractConfirmDialogComponent;
|
|
10785
|
-
exports.AbstractDialogComponent = AbstractDialogComponent;
|
|
9805
|
+
exports.AbstractInputActivity = AbstractInputActivity;
|
|
10786
9806
|
exports.AbstractInputComponent = AbstractInputComponent;
|
|
10787
9807
|
exports.AbstractInteractionContext = AbstractInteractionContext;
|
|
10788
9808
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
@@ -10793,6 +9813,7 @@
|
|
|
10793
9813
|
exports.AbstractTableModel = AbstractTableModel;
|
|
10794
9814
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
10795
9815
|
exports.Activity = Activity;
|
|
9816
|
+
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
10796
9817
|
exports.ActivityBodyComponent = ActivityBodyComponent;
|
|
10797
9818
|
exports.ActivityContainerComponent = ActivityContainerComponent;
|
|
10798
9819
|
exports.ActivityOutletComponent = ActivityOutletComponent;
|
|
@@ -10806,7 +9827,6 @@
|
|
|
10806
9827
|
exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
|
|
10807
9828
|
exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
|
|
10808
9829
|
exports.CardContainerComponent = CardContainerComponent;
|
|
10809
|
-
exports.CardStackComponent = CardStackComponent;
|
|
10810
9830
|
exports.CellEditorPortalRef = CellEditorPortalRef;
|
|
10811
9831
|
exports.CellHeaderPortalRef = CellHeaderPortalRef;
|
|
10812
9832
|
exports.CellPortalRef = CellPortalRef;
|
|
@@ -10821,7 +9841,6 @@
|
|
|
10821
9841
|
exports.ComponentCellRendererPortalRef = ComponentCellRendererPortalRef;
|
|
10822
9842
|
exports.ComponentsModule = ComponentsModule;
|
|
10823
9843
|
exports.ConfirmThenDialogComponent = ConfirmThenDialogComponent;
|
|
10824
|
-
exports.ConfirmThenExecuteDialogComponent = ConfirmThenExecuteDialogComponent;
|
|
10825
9844
|
exports.ConfirmationDialogComponent = ConfirmationDialogComponent;
|
|
10826
9845
|
exports.ConsolidatedParameterMap = ConsolidatedParameterMap;
|
|
10827
9846
|
exports.CustomTemplateColumnModel = CustomTemplateColumnModel;
|
|
@@ -10857,12 +9876,8 @@
|
|
|
10857
9876
|
exports.InteractionModule = InteractionModule;
|
|
10858
9877
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
10859
9878
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
10860
|
-
exports.LabelledValueComponent = LabelledValueComponent;
|
|
10861
9879
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
10862
9880
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
10863
|
-
exports.LoadingContainerComponent = LoadingContainerComponent;
|
|
10864
|
-
exports.MarkdownComponent = MarkdownComponent;
|
|
10865
|
-
exports.MarkdownService = MarkdownService;
|
|
10866
9881
|
exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;
|
|
10867
9882
|
exports.ModalInteractionContextFactory = ModalInteractionContextFactory;
|
|
10868
9883
|
exports.MoreMenuComponent = MoreMenuComponent;
|
|
@@ -10938,14 +9953,12 @@
|
|
|
10938
9953
|
exports.WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined = WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined;
|
|
10939
9954
|
exports.WaitUntilPopStateDuringCanDeactivateInteractionFinishes = WaitUntilPopStateDuringCanDeactivateInteractionFinishes;
|
|
10940
9955
|
exports.leftRightPlaceAnimation = leftRightPlaceAnimation;
|
|
10941
|
-
exports.markdownPillExtension = markdownPillExtension;
|
|
10942
9956
|
exports.slideDownOnEnterAnimation = slideDownOnEnterAnimation;
|
|
10943
9957
|
exports.slideRightOnEnterAnimation = slideRightOnEnterAnimation;
|
|
10944
9958
|
exports.treeNodeDecorator = treeNodeDecorator;
|
|
10945
|
-
exports
|
|
10946
|
-
exports["ɵ1"] = ɵ1;
|
|
9959
|
+
exports.ɵ0 = ɵ0;
|
|
10947
9960
|
|
|
10948
9961
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
10949
9962
|
|
|
10950
|
-
}));
|
|
9963
|
+
})));
|
|
10951
9964
|
//# sourceMappingURL=coolon-angular-ui-powerups.umd.js.map
|