@coolon/angular-ui-powerups 12.4.0-alpha.78 → 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 -1387
- 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 -1177
- 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 -53
- 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 -26
- 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 -14
- 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,68 +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
|
-
gfm: true,
|
|
789
|
-
smartLists: true
|
|
790
|
-
});
|
|
791
|
-
};
|
|
792
|
-
MarkdownService.prototype.renderInline = function (content) {
|
|
793
|
-
return marked.marked.parseInline(content);
|
|
794
|
-
};
|
|
795
|
-
MarkdownService.prototype.usePillExtension = function (renderer) {
|
|
796
|
-
marked.marked.use({
|
|
797
|
-
extensions: [markdownPillExtension(renderer !== null && renderer !== void 0 ? renderer : (function (text) { return "<span class='aup-pill'>" + text + "<span>"; }))]
|
|
798
|
-
});
|
|
799
|
-
};
|
|
800
|
-
return MarkdownService;
|
|
801
|
-
}());
|
|
802
|
-
MarkdownService.decorators = [
|
|
803
|
-
{ type: i0.Injectable }
|
|
804
|
-
];
|
|
805
|
-
MarkdownService.ctorParameters = function () { return []; };
|
|
806
|
-
|
|
807
741
|
var BusyOverlayComponent = /** @class */ (function (_super) {
|
|
808
742
|
__extends(BusyOverlayComponent, _super);
|
|
809
743
|
function BusyOverlayComponent() {
|
|
@@ -817,7 +751,7 @@
|
|
|
817
751
|
{ type: i0.Component, args: [{
|
|
818
752
|
selector: 'aup-busy-overlay',
|
|
819
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",
|
|
820
|
-
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}"]
|
|
821
755
|
},] }
|
|
822
756
|
];
|
|
823
757
|
BusyOverlayComponent.ctorParameters = function () { return []; };
|
|
@@ -834,32 +768,6 @@
|
|
|
834
768
|
__metadata("design:type", Boolean)
|
|
835
769
|
], BusyOverlayComponent.prototype, "busy", void 0);
|
|
836
770
|
|
|
837
|
-
var AbstractCardContainerComponent = /** @class */ (function (_super) {
|
|
838
|
-
__extends(AbstractCardContainerComponent, _super);
|
|
839
|
-
function AbstractCardContainerComponent() {
|
|
840
|
-
return _super.call(this) || this;
|
|
841
|
-
}
|
|
842
|
-
AbstractCardContainerComponent.prototype.ngOnInit = function () {
|
|
843
|
-
};
|
|
844
|
-
return AbstractCardContainerComponent;
|
|
845
|
-
}(DisposableComponent));
|
|
846
|
-
AbstractCardContainerComponent.decorators = [
|
|
847
|
-
{ type: i0.Component, args: [{
|
|
848
|
-
selector: 'aup-abstract-card-container',
|
|
849
|
-
template: ''
|
|
850
|
-
},] }
|
|
851
|
-
];
|
|
852
|
-
AbstractCardContainerComponent.ctorParameters = function () { return []; };
|
|
853
|
-
AbstractCardContainerComponent.propDecorators = {
|
|
854
|
-
addCardCommand: [{ type: i0.Input }],
|
|
855
|
-
addCardFace: [{ type: i0.Input }],
|
|
856
|
-
addCardTemplate: [{ type: i0.ContentChild, args: ['addCardTemplate',] }]
|
|
857
|
-
};
|
|
858
|
-
__decorate([
|
|
859
|
-
pectin.TrackExternal(),
|
|
860
|
-
__metadata("design:type", pectin.Command)
|
|
861
|
-
], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
|
|
862
|
-
|
|
863
771
|
/**
|
|
864
772
|
* @example
|
|
865
773
|
* // basic usage
|
|
@@ -877,13 +785,6 @@
|
|
|
877
785
|
* <my-card *ngFor="..."></my-card>
|
|
878
786
|
* </aup-card-container>
|
|
879
787
|
*
|
|
880
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
881
|
-
* // the activity inside teh card
|
|
882
|
-
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
883
|
-
* <my-card *ngFor="..."></my-card>
|
|
884
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
885
|
-
* </aup-card-container>
|
|
886
|
-
*
|
|
887
788
|
* // adds an add card component using the specified template. The template
|
|
888
789
|
* // will fill it's container in the grid.
|
|
889
790
|
* <aup-card-container>
|
|
@@ -916,7 +817,6 @@
|
|
|
916
817
|
* aup-card-container {
|
|
917
818
|
* --card-gap: var(--card-gap, 16px);
|
|
918
819
|
* --card-width: var(--card-width, 300px);
|
|
919
|
-
* --card-max-width: auto;
|
|
920
820
|
* --card-height: var(--card-height, auto);
|
|
921
821
|
* --card-min-height: var(--card-min-height, auto);
|
|
922
822
|
* --card-background: var(--card-background, #fcfcfb);
|
|
@@ -924,154 +824,30 @@
|
|
|
924
824
|
*/
|
|
925
825
|
var CardContainerComponent = /** @class */ (function (_super) {
|
|
926
826
|
__extends(CardContainerComponent, _super);
|
|
927
|
-
function CardContainerComponent(
|
|
928
|
-
|
|
929
|
-
_this.elementRef = elementRef;
|
|
930
|
-
/**
|
|
931
|
-
* Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
|
|
932
|
-
* or place in a layout that will stretch it such as a grid or flex layout.
|
|
933
|
-
*/
|
|
934
|
-
_this.enabledScroll = false;
|
|
935
|
-
return _this;
|
|
827
|
+
function CardContainerComponent() {
|
|
828
|
+
return _super.call(this) || this;
|
|
936
829
|
}
|
|
937
|
-
Object.defineProperty(CardContainerComponent.prototype, "columnCount", {
|
|
938
|
-
get: function () {
|
|
939
|
-
return this._columnCount;
|
|
940
|
-
},
|
|
941
|
-
set: function (count) {
|
|
942
|
-
if (!___namespace.isNil(count) && (!___namespace.isInteger(count) || count < 1)) {
|
|
943
|
-
typescriptUtilities.lang.illegalState('columnCount must be a positive integer or nil');
|
|
944
|
-
}
|
|
945
|
-
this._columnCount = count;
|
|
946
|
-
this.updateColumnCountStyles();
|
|
947
|
-
},
|
|
948
|
-
enumerable: false,
|
|
949
|
-
configurable: true
|
|
950
|
-
});
|
|
951
830
|
CardContainerComponent.prototype.ngOnInit = function () {
|
|
952
|
-
_super.prototype.ngOnInit.call(this);
|
|
953
|
-
this.updateColumnCountStyles();
|
|
954
|
-
};
|
|
955
|
-
Object.defineProperty(CardContainerComponent.prototype, "isAutoColumns", {
|
|
956
|
-
get: function () {
|
|
957
|
-
return ___namespace.isNil(this._columnCount);
|
|
958
|
-
},
|
|
959
|
-
enumerable: false,
|
|
960
|
-
configurable: true
|
|
961
|
-
});
|
|
962
|
-
Object.defineProperty(CardContainerComponent.prototype, "isSingleColumn", {
|
|
963
|
-
get: function () {
|
|
964
|
-
return this._columnCount === 1;
|
|
965
|
-
},
|
|
966
|
-
enumerable: false,
|
|
967
|
-
configurable: true
|
|
968
|
-
});
|
|
969
|
-
CardContainerComponent.prototype.updateColumnCountStyles = function () {
|
|
970
|
-
var el = this.elementRef.nativeElement;
|
|
971
|
-
if (___namespace.isNil(this._columnCount)) {
|
|
972
|
-
el.style.setProperty('--aup-card-container-column-count', '');
|
|
973
|
-
}
|
|
974
|
-
else {
|
|
975
|
-
el.style.setProperty('--aup-card-container-column-count', this._columnCount);
|
|
976
|
-
}
|
|
977
831
|
};
|
|
978
832
|
return CardContainerComponent;
|
|
979
|
-
}(
|
|
833
|
+
}(DisposableComponent));
|
|
980
834
|
CardContainerComponent.decorators = [
|
|
981
835
|
{ type: i0.Component, args: [{
|
|
982
836
|
selector: 'aup-card-container',
|
|
983
|
-
template: "<div class=\"
|
|
984
|
-
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}"]
|
|
985
839
|
},] }
|
|
986
840
|
];
|
|
987
|
-
CardContainerComponent.ctorParameters = function () { return [
|
|
988
|
-
{ type: i0.ElementRef }
|
|
989
|
-
]; };
|
|
841
|
+
CardContainerComponent.ctorParameters = function () { return []; };
|
|
990
842
|
CardContainerComponent.propDecorators = {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
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",] }]
|
|
995
846
|
};
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
* // basic usage
|
|
1001
|
-
* <aup-card-stack>
|
|
1002
|
-
* <my-card *ngFor="..."></my-card>
|
|
1003
|
-
* </aup-card-stack>
|
|
1004
|
-
*
|
|
1005
|
-
* // adds an add button with a the '+' icon to the end of the card list.
|
|
1006
|
-
* <aup-card-stack [addCardCommand]="addCard">
|
|
1007
|
-
* <my-card *ngFor="..."></my-card>
|
|
1008
|
-
* </aup-card-stack>
|
|
1009
|
-
*
|
|
1010
|
-
* // adds an add button with the specified face
|
|
1011
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
1012
|
-
* <my-card *ngFor="..."></my-card>
|
|
1013
|
-
* </aup-card-stack>
|
|
1014
|
-
*
|
|
1015
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
1016
|
-
* // the activity inside teh card
|
|
1017
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
1018
|
-
* <my-card *ngFor="..."></my-card>
|
|
1019
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
1020
|
-
* </aup-card-stack>
|
|
1021
|
-
*
|
|
1022
|
-
* // adds an add card component using the specified template. The template
|
|
1023
|
-
* // will fill it's container in the grid.
|
|
1024
|
-
* <aup-card-stack>
|
|
1025
|
-
* <my-card *ngFor="..."></my-card>
|
|
1026
|
-
* <ng-template #addCardTemplate>
|
|
1027
|
-
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
1028
|
-
* </ng-template>
|
|
1029
|
-
* </aup-card-stack>
|
|
1030
|
-
*
|
|
1031
|
-
* // sing the default new card styles for your template
|
|
1032
|
-
* @import "../../../../assets/styles";
|
|
1033
|
-
* .my-new-card {
|
|
1034
|
-
* @include aup-card-stack-new-card-style();
|
|
1035
|
-
* // OR
|
|
1036
|
-
* @include aup-card-stack-new-card-style(
|
|
1037
|
-
* $color: rgba(0,0,0,0.54),
|
|
1038
|
-
* $background-color: rgba(255,255,255,0.8),
|
|
1039
|
-
* $hover-color: $color,
|
|
1040
|
-
* $background-hover-color: white
|
|
1041
|
-
* )
|
|
1042
|
-
* }
|
|
1043
|
-
* <aup-card-stack>
|
|
1044
|
-
* <my-card *ngFor="..."></my-card>
|
|
1045
|
-
* <ng-template #addCardTemplate>
|
|
1046
|
-
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
1047
|
-
* </ng-template>
|
|
1048
|
-
* </aup-card-stack>
|
|
1049
|
-
*
|
|
1050
|
-
* // CSS Vars
|
|
1051
|
-
* aup-card-stack {
|
|
1052
|
-
* --card-gap: var(--card-gap, 16px);
|
|
1053
|
-
* --card-height: var(--card-height, auto);
|
|
1054
|
-
* --card-min-height: var(--card-min-height, auto);
|
|
1055
|
-
* --card-background: var(--card-background, #fcfcfb);
|
|
1056
|
-
* }
|
|
1057
|
-
*/
|
|
1058
|
-
var CardStackComponent = /** @class */ (function (_super) {
|
|
1059
|
-
__extends(CardStackComponent, _super);
|
|
1060
|
-
function CardStackComponent() {
|
|
1061
|
-
var _this = _super.call(this) || this;
|
|
1062
|
-
console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
|
|
1063
|
-
return _this;
|
|
1064
|
-
}
|
|
1065
|
-
return CardStackComponent;
|
|
1066
|
-
}(AbstractCardContainerComponent));
|
|
1067
|
-
CardStackComponent.decorators = [
|
|
1068
|
-
{ type: i0.Component, args: [{
|
|
1069
|
-
selector: 'aup-card-stack',
|
|
1070
|
-
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",
|
|
1071
|
-
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"]
|
|
1072
|
-
},] }
|
|
1073
|
-
];
|
|
1074
|
-
CardStackComponent.ctorParameters = function () { return []; };
|
|
847
|
+
__decorate([
|
|
848
|
+
pectin.TrackExternal(),
|
|
849
|
+
__metadata("design:type", pectin.Command)
|
|
850
|
+
], CardContainerComponent.prototype, "addCardCommand", void 0);
|
|
1075
851
|
|
|
1076
852
|
exports.CommandFace = void 0;
|
|
1077
853
|
(function (CommandFace) {
|
|
@@ -1086,27 +862,27 @@
|
|
|
1086
862
|
RAISED: 'raised'
|
|
1087
863
|
});
|
|
1088
864
|
function getColorOf(face) {
|
|
1089
|
-
return ___default[
|
|
865
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
|
|
1090
866
|
}
|
|
1091
867
|
CommandFace.getColorOf = getColorOf;
|
|
1092
868
|
function getStyleOf(face) {
|
|
1093
|
-
return ___default[
|
|
869
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
|
|
1094
870
|
}
|
|
1095
871
|
CommandFace.getStyleOf = getStyleOf;
|
|
1096
872
|
function getIconOf(face) {
|
|
1097
|
-
return ___default[
|
|
873
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
|
|
1098
874
|
}
|
|
1099
875
|
CommandFace.getIconOf = getIconOf;
|
|
1100
876
|
function getIconPositionOf(face) {
|
|
1101
|
-
return ___default[
|
|
877
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
|
|
1102
878
|
}
|
|
1103
879
|
CommandFace.getIconPositionOf = getIconPositionOf;
|
|
1104
880
|
function getTooltipOf(face) {
|
|
1105
|
-
return ___default[
|
|
881
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
|
|
1106
882
|
}
|
|
1107
883
|
CommandFace.getTooltipOf = getTooltipOf;
|
|
1108
884
|
function getTextOf(face) {
|
|
1109
|
-
return ___default[
|
|
885
|
+
return ___default['default'].isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
|
|
1110
886
|
}
|
|
1111
887
|
CommandFace.getTextOf = getTextOf;
|
|
1112
888
|
var Adapter = /** @class */ (function () {
|
|
@@ -1239,13 +1015,6 @@
|
|
|
1239
1015
|
_this.activeColor = activeFace.pluck("color");
|
|
1240
1016
|
return _this;
|
|
1241
1017
|
}
|
|
1242
|
-
Object.defineProperty(CommandFaceComponent.prototype, "face", {
|
|
1243
|
-
set: function (face) {
|
|
1244
|
-
this.facesModel.value = [face];
|
|
1245
|
-
},
|
|
1246
|
-
enumerable: false,
|
|
1247
|
-
configurable: true
|
|
1248
|
-
});
|
|
1249
1018
|
Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
|
|
1250
1019
|
get: function () {
|
|
1251
1020
|
return this.includeMissingIconInLayout && !this.activeIcon.value;
|
|
@@ -1278,13 +1047,12 @@
|
|
|
1278
1047
|
selector: 'aup-command-face',
|
|
1279
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",
|
|
1280
1049
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1281
|
-
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}"]
|
|
1282
1051
|
},] }
|
|
1283
1052
|
];
|
|
1284
1053
|
CommandFaceComponent.ctorParameters = function () { return []; };
|
|
1285
1054
|
CommandFaceComponent.propDecorators = {
|
|
1286
1055
|
_rawFaces: [{ type: i0.Input, args: ['faces',] }],
|
|
1287
|
-
face: [{ type: i0.Input }],
|
|
1288
1056
|
ignoreIcon: [{ type: i0.Input }],
|
|
1289
1057
|
ignoreText: [{ type: i0.Input }],
|
|
1290
1058
|
includeMissingIconInLayout: [{ type: i0.Input }],
|
|
@@ -1357,7 +1125,7 @@
|
|
|
1357
1125
|
_this.colorModel = chain(_this.activeFace).map(function (f) { return exports.CommandFace.getColorOf(f); });
|
|
1358
1126
|
_this.tooltipModel = chain(_this.activeFace).map(function (f) { return exports.CommandFace.getTooltipOf(f); });
|
|
1359
1127
|
_this.iconOnly = _this.faces.select(function (face) {
|
|
1360
|
-
return ___default[
|
|
1128
|
+
return ___default['default'].isEmpty(exports.CommandFace.getTextOf(face)) && !___default['default'].isEmpty(exports.CommandFace.getIconOf(face));
|
|
1361
1129
|
}).count().equals(_this.faces.count());
|
|
1362
1130
|
return _this;
|
|
1363
1131
|
}
|
|
@@ -1378,7 +1146,7 @@
|
|
|
1378
1146
|
{ type: i0.Component, args: [{
|
|
1379
1147
|
selector: 'aup-command',
|
|
1380
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",
|
|
1381
|
-
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}"]
|
|
1382
1150
|
},] }
|
|
1383
1151
|
];
|
|
1384
1152
|
CommandComponent.ctorParameters = function () { return [
|
|
@@ -1442,7 +1210,7 @@
|
|
|
1442
1210
|
function AbstractPopupMenuComponent(element, parent) {
|
|
1443
1211
|
var _this = _super.call(this, element, parent) || this;
|
|
1444
1212
|
_this._unorderedChildren = new pectin.MutableListModel();
|
|
1445
|
-
_this.faceModelDelegate =
|
|
1213
|
+
_this.faceModelDelegate = new pectin.DelegatingValueModel();
|
|
1446
1214
|
_this.xPosition = 'after';
|
|
1447
1215
|
_this.yPosition = 'below';
|
|
1448
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;
|
|
@@ -1567,22 +1335,10 @@
|
|
|
1567
1335
|
exports.TrackBy = void 0;
|
|
1568
1336
|
(function (TrackBy) {
|
|
1569
1337
|
TrackBy.byIndex = function (index, item) { return index; };
|
|
1570
|
-
/**
|
|
1571
|
-
* @deprecated use #track(MyType).by("property") instead.
|
|
1572
|
-
* @param property
|
|
1573
|
-
*/
|
|
1574
1338
|
function trackByProperty(property) {
|
|
1575
1339
|
return function (index, item) { return item[property]; };
|
|
1576
1340
|
}
|
|
1577
1341
|
TrackBy.trackByProperty = trackByProperty;
|
|
1578
|
-
function track(type) {
|
|
1579
|
-
return {
|
|
1580
|
-
by: function (property) {
|
|
1581
|
-
return function (index, item) { return item[property]; };
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
}
|
|
1585
|
-
TrackBy.track = track;
|
|
1586
1342
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1587
1343
|
|
|
1588
1344
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -1647,7 +1403,7 @@
|
|
|
1647
1403
|
selector: 'aup-tool-bar',
|
|
1648
1404
|
template: '<div class="toolbar-content"><ng-content></ng-content></div>',
|
|
1649
1405
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1650
|
-
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}"]
|
|
1651
1407
|
},] }
|
|
1652
1408
|
];
|
|
1653
1409
|
ToolBarComponent.ctorParameters = function () { return []; };
|
|
@@ -1673,7 +1429,8 @@
|
|
|
1673
1429
|
{ type: i0.Component, args: [{
|
|
1674
1430
|
selector: 'aup-separator',
|
|
1675
1431
|
template: "\n <mat-divider [vertical]=\"!isHorizontalContainer()\"></mat-divider>",
|
|
1676
|
-
styles: [":host {\n }",
|
|
1432
|
+
styles: [":host {\n }",
|
|
1433
|
+
":host(.horizontal-container) {\n display: inline-flex;\n flex-direction: row;\n align-items: stretch;\n }"]
|
|
1677
1434
|
},] }
|
|
1678
1435
|
];
|
|
1679
1436
|
SeparatorComponent.ctorParameters = function () { return [
|
|
@@ -1689,7 +1446,7 @@
|
|
|
1689
1446
|
__extends(PopupMenuRendererComponent, _super);
|
|
1690
1447
|
function PopupMenuRendererComponent() {
|
|
1691
1448
|
var _this = _super.call(this) || this;
|
|
1692
|
-
_this._childList =
|
|
1449
|
+
_this._childList = new pectin.DelegatingListModel();
|
|
1693
1450
|
_this.commandFired = new i0.EventEmitter();
|
|
1694
1451
|
_this.TrackBy = exports.TrackBy;
|
|
1695
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;
|
|
@@ -1830,7 +1587,7 @@
|
|
|
1830
1587
|
{ type: i0.Component, args: [{
|
|
1831
1588
|
selector: 'aup-empty-state',
|
|
1832
1589
|
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
1833
|
-
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}"]
|
|
1834
1591
|
},] }
|
|
1835
1592
|
];
|
|
1836
1593
|
EmptyStateComponent.ctorParameters = function () { return []; };
|
|
@@ -1861,7 +1618,7 @@
|
|
|
1861
1618
|
providers: [
|
|
1862
1619
|
{ provide: pectin.FocusManager }
|
|
1863
1620
|
],
|
|
1864
|
-
styles: [":host{display:block}
|
|
1621
|
+
styles: [":host{display:block}"]
|
|
1865
1622
|
},] }
|
|
1866
1623
|
];
|
|
1867
1624
|
FocusContainerComponent.ctorParameters = function () { return [
|
|
@@ -1928,7 +1685,6 @@
|
|
|
1928
1685
|
function AbstractInputComponent() {
|
|
1929
1686
|
var _this = _super.call(this) || this;
|
|
1930
1687
|
_this.onValueEditedListeners = new pectin.EventListenerList();
|
|
1931
|
-
_this.userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1932
1688
|
_this.dense = false;
|
|
1933
1689
|
// TODO: fix this.
|
|
1934
1690
|
// tslint:disable-next-line:no-output-native
|
|
@@ -2210,10 +1966,10 @@
|
|
|
2210
1966
|
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2211
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;
|
|
2212
1968
|
var lowerCaseFilterValue = chain(_this.filterValue)
|
|
2213
|
-
.map(function (v) { return ___default[
|
|
1969
|
+
.map(function (v) { return ___default['default'].isString(v) ? v.toLowerCase() : ''; });
|
|
2214
1970
|
_this.filteredOptions = chain(_this.optionsModel)
|
|
2215
1971
|
.select(function (option) {
|
|
2216
|
-
return ___default[
|
|
1972
|
+
return ___default['default'].isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
|
|
2217
1973
|
}, { dependsOn: lowerCaseFilterValue });
|
|
2218
1974
|
return _this;
|
|
2219
1975
|
}
|
|
@@ -2234,7 +1990,7 @@
|
|
|
2234
1990
|
{ type: i0.Component, args: [{
|
|
2235
1991
|
selector: 'aup-autocomplete-input',
|
|
2236
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",
|
|
2237
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
1993
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2238
1994
|
},] }
|
|
2239
1995
|
];
|
|
2240
1996
|
AutocompleteInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2273,7 +2029,7 @@
|
|
|
2273
2029
|
{ type: i0.Component, args: [{
|
|
2274
2030
|
selector: 'aup-checkbox-input',
|
|
2275
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",
|
|
2276
|
-
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}"]
|
|
2277
2033
|
},] }
|
|
2278
2034
|
];
|
|
2279
2035
|
CheckboxInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2304,7 +2060,7 @@
|
|
|
2304
2060
|
{ type: i0.Component, args: [{
|
|
2305
2061
|
selector: 'aup-multiple-select-input',
|
|
2306
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",
|
|
2307
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
2063
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2308
2064
|
},] }
|
|
2309
2065
|
];
|
|
2310
2066
|
MultipleSelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2393,8 +2149,8 @@
|
|
|
2393
2149
|
SelectInputComponent.decorators = [
|
|
2394
2150
|
{ type: i0.Component, args: [{
|
|
2395
2151
|
selector: 'aup-select-input',
|
|
2396
|
-
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
|
|
2397
|
-
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%}"]
|
|
2398
2154
|
},] }
|
|
2399
2155
|
];
|
|
2400
2156
|
SelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2435,7 +2191,7 @@
|
|
|
2435
2191
|
{ type: i0.Component, args: [{
|
|
2436
2192
|
selector: 'aup-string-input',
|
|
2437
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",
|
|
2438
|
-
styles: ["button[disabled]{visibility:hidden}
|
|
2194
|
+
styles: ["button[disabled]{visibility:hidden}"]
|
|
2439
2195
|
},] }
|
|
2440
2196
|
];
|
|
2441
2197
|
StringInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2472,7 +2228,7 @@
|
|
|
2472
2228
|
{ type: i0.Component, args: [{
|
|
2473
2229
|
selector: 'aup-text-input',
|
|
2474
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",
|
|
2475
|
-
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}
|
|
2231
|
+
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
2476
2232
|
},] }
|
|
2477
2233
|
];
|
|
2478
2234
|
TextInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2516,7 +2272,7 @@
|
|
|
2516
2272
|
{ type: i0.Component, args: [{
|
|
2517
2273
|
selector: 'aup-icon',
|
|
2518
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",
|
|
2519
|
-
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}"]
|
|
2520
2276
|
},] }
|
|
2521
2277
|
];
|
|
2522
2278
|
exports.IconComponent.propDecorators = {
|
|
@@ -2530,54 +2286,6 @@
|
|
|
2530
2286
|
});
|
|
2531
2287
|
})(exports.IconComponent || (exports.IconComponent = {}));
|
|
2532
2288
|
|
|
2533
|
-
var LoadingContainerComponent = /** @class */ (function (_super) {
|
|
2534
|
-
__extends(LoadingContainerComponent, _super);
|
|
2535
|
-
function LoadingContainerComponent() {
|
|
2536
|
-
return _super.call(this) || this;
|
|
2537
|
-
}
|
|
2538
|
-
Object.defineProperty(LoadingContainerComponent.prototype, "state", {
|
|
2539
|
-
get: function () {
|
|
2540
|
-
return this.loadingModel.value ? "loaded" : "loading";
|
|
2541
|
-
},
|
|
2542
|
-
enumerable: false,
|
|
2543
|
-
configurable: true
|
|
2544
|
-
});
|
|
2545
|
-
LoadingContainerComponent.prototype.ngOnInit = function () {
|
|
2546
|
-
};
|
|
2547
|
-
return LoadingContainerComponent;
|
|
2548
|
-
}(pectin.GarbageCollector));
|
|
2549
|
-
LoadingContainerComponent.decorators = [
|
|
2550
|
-
{ type: i0.Component, args: [{
|
|
2551
|
-
selector: 'aup-loading-container',
|
|
2552
|
-
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",
|
|
2553
|
-
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"]
|
|
2554
|
-
},] }
|
|
2555
|
-
];
|
|
2556
|
-
LoadingContainerComponent.ctorParameters = function () { return []; };
|
|
2557
|
-
LoadingContainerComponent.propDecorators = {
|
|
2558
|
-
loadingModel: [{ type: i0.Input }],
|
|
2559
|
-
loading: [{ type: i0.Input }],
|
|
2560
|
-
messageModel: [{ type: i0.Input }],
|
|
2561
|
-
message: [{ type: i0.Input }],
|
|
2562
|
-
state: [{ type: i0.HostBinding, args: ["class",] }]
|
|
2563
|
-
};
|
|
2564
|
-
__decorate([
|
|
2565
|
-
pectin.TrackExternal(),
|
|
2566
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2567
|
-
], LoadingContainerComponent.prototype, "loadingModel", void 0);
|
|
2568
|
-
__decorate([
|
|
2569
|
-
pectin.StoreInValueModel("loadingModel"),
|
|
2570
|
-
__metadata("design:type", Boolean)
|
|
2571
|
-
], LoadingContainerComponent.prototype, "loading", void 0);
|
|
2572
|
-
__decorate([
|
|
2573
|
-
pectin.TrackExternal(),
|
|
2574
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2575
|
-
], LoadingContainerComponent.prototype, "messageModel", void 0);
|
|
2576
|
-
__decorate([
|
|
2577
|
-
pectin.StoreInValueModel("messageModel"),
|
|
2578
|
-
__metadata("design:type", String)
|
|
2579
|
-
], LoadingContainerComponent.prototype, "message", void 0);
|
|
2580
|
-
|
|
2581
2289
|
var NoopComponent = /** @class */ (function () {
|
|
2582
2290
|
function NoopComponent() {
|
|
2583
2291
|
}
|
|
@@ -2587,7 +2295,7 @@
|
|
|
2587
2295
|
{ type: i0.Component, args: [{
|
|
2588
2296
|
selector: 'aup-noop',
|
|
2589
2297
|
template: "",
|
|
2590
|
-
styles: [":host{display:block}
|
|
2298
|
+
styles: [":host{display:block}"]
|
|
2591
2299
|
},] }
|
|
2592
2300
|
];
|
|
2593
2301
|
NoopComponent.ctorParameters = function () { return []; };
|
|
@@ -2603,37 +2311,29 @@
|
|
|
2603
2311
|
{ type: i0.Component, args: [{
|
|
2604
2312
|
selector: 'aup-scroll-container',
|
|
2605
2313
|
template: "<div class=\"container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n",
|
|
2606
|
-
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}"]
|
|
2607
2315
|
},] }
|
|
2608
2316
|
];
|
|
2609
2317
|
ScrollContainerComponent.ctorParameters = function () { return []; };
|
|
2610
2318
|
|
|
2611
|
-
var SectionHeaderComponent = /** @class */ (function (
|
|
2612
|
-
__extends(SectionHeaderComponent, _super);
|
|
2319
|
+
var SectionHeaderComponent = /** @class */ (function () {
|
|
2613
2320
|
function SectionHeaderComponent() {
|
|
2614
|
-
|
|
2615
|
-
// readonly i18n = I18nMarsUi.components.layout.header;
|
|
2616
|
-
_this.size = 'medium';
|
|
2617
|
-
_this.borderTop = false;
|
|
2618
|
-
_this.borderBottom = false;
|
|
2619
|
-
return _this;
|
|
2321
|
+
this.underline = false;
|
|
2620
2322
|
}
|
|
2621
2323
|
SectionHeaderComponent.prototype.ngOnInit = function () {
|
|
2622
2324
|
};
|
|
2623
2325
|
return SectionHeaderComponent;
|
|
2624
|
-
}(
|
|
2326
|
+
}());
|
|
2625
2327
|
SectionHeaderComponent.decorators = [
|
|
2626
2328
|
{ type: i0.Component, args: [{
|
|
2627
2329
|
selector: 'aup-section-header',
|
|
2628
|
-
template: "<
|
|
2629
|
-
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)}"]
|
|
2630
2332
|
},] }
|
|
2631
2333
|
];
|
|
2632
2334
|
SectionHeaderComponent.ctorParameters = function () { return []; };
|
|
2633
2335
|
SectionHeaderComponent.propDecorators = {
|
|
2634
|
-
|
|
2635
|
-
borderTop: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-top',] }],
|
|
2636
|
-
borderBottom: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-bottom',] }]
|
|
2336
|
+
underline: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.underline',] }]
|
|
2637
2337
|
};
|
|
2638
2338
|
|
|
2639
2339
|
var SwitchCaseOption = /** @class */ (function () {
|
|
@@ -2754,7 +2454,7 @@
|
|
|
2754
2454
|
{ type: i0.Component, args: [{
|
|
2755
2455
|
selector: 'aup-switch-case',
|
|
2756
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",
|
|
2757
|
-
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}"]
|
|
2758
2458
|
},] }
|
|
2759
2459
|
];
|
|
2760
2460
|
SwitchCaseComponent.ctorParameters = function () { return [
|
|
@@ -2836,7 +2536,7 @@
|
|
|
2836
2536
|
ResizeAwareComponent.prototype.ngAfterViewInit = function () {
|
|
2837
2537
|
var _this = this;
|
|
2838
2538
|
var element = this.elementRef.nativeElement;
|
|
2839
|
-
var ro = new ResizeObserver__default[
|
|
2539
|
+
var ro = new ResizeObserver__default['default'](function (entries, observer) {
|
|
2840
2540
|
_this.ngZone.run(function () { return _this._updateBounds(); });
|
|
2841
2541
|
});
|
|
2842
2542
|
ro.observe(element);
|
|
@@ -3037,38 +2737,19 @@
|
|
|
3037
2737
|
__extends(EditRowControls, _super);
|
|
3038
2738
|
function EditRowControls() {
|
|
3039
2739
|
var _this = _super.call(this) || this;
|
|
3040
|
-
_this.saveCommand = pectin.Command.create(function () {
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
case 1:
|
|
3046
|
-
finished = _b.sent();
|
|
3047
|
-
if (finished) {
|
|
3048
|
-
this.editSession.dispose();
|
|
3049
|
-
}
|
|
3050
|
-
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();
|
|
3051
2745
|
}
|
|
3052
2746
|
});
|
|
3053
|
-
});
|
|
2747
|
+
});
|
|
3054
2748
|
_this.cancelCommand = pectin.Command.create(function () {
|
|
3055
2749
|
_this.editSession.dispose();
|
|
3056
|
-
})
|
|
2750
|
+
});
|
|
3057
2751
|
return _this;
|
|
3058
2752
|
}
|
|
3059
|
-
Object.defineProperty(EditRowControls.prototype, "editSession", {
|
|
3060
|
-
get: function () {
|
|
3061
|
-
return this._session;
|
|
3062
|
-
},
|
|
3063
|
-
set: function (session) {
|
|
3064
|
-
if (session) {
|
|
3065
|
-
session.form.disableWhile(this.saveCommand.busy);
|
|
3066
|
-
}
|
|
3067
|
-
this._session = session;
|
|
3068
|
-
},
|
|
3069
|
-
enumerable: false,
|
|
3070
|
-
configurable: true
|
|
3071
|
-
});
|
|
3072
2753
|
EditRowControls.prototype.ngOnInit = function () {
|
|
3073
2754
|
};
|
|
3074
2755
|
Object.defineProperty(EditRowControls.prototype, "form", {
|
|
@@ -3085,7 +2766,7 @@
|
|
|
3085
2766
|
{ type: i0.Component, args: [{
|
|
3086
2767
|
selector: 'aup-row-editor-controls',
|
|
3087
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",
|
|
3088
|
-
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}"]
|
|
3089
2770
|
},] }
|
|
3090
2771
|
];
|
|
3091
2772
|
EditRowControls.ctorParameters = function () { return []; };
|
|
@@ -3162,23 +2843,16 @@
|
|
|
3162
2843
|
};
|
|
3163
2844
|
var ɵ0 = noop;
|
|
3164
2845
|
var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol('aup-cell-renderer:row-data-cache');
|
|
3165
|
-
var
|
|
3166
|
-
var ɵ1 = DEFAULT_TEXT_SEARCH_PREDICATE;
|
|
3167
|
-
var ColumnModel = /** @class */ (function (_super) {
|
|
3168
|
-
__extends(ColumnModel, _super);
|
|
2846
|
+
var ColumnModel = /** @class */ (function () {
|
|
3169
2847
|
function ColumnModel(columnId, textPropertiesProvider) {
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
_this._cellRendererTextSearchPredicate = undefined;
|
|
3179
|
-
_this.installHeaderRenderer();
|
|
3180
|
-
_this.dasherisedColumnId = typescriptUtilities.Stringy.from(columnId).dasherize().toString();
|
|
3181
|
-
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();
|
|
3182
2856
|
}
|
|
3183
2857
|
ColumnModel.prototype.installHeaderRenderer = function () {
|
|
3184
2858
|
this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, function (component, column) {
|
|
@@ -3209,21 +2883,6 @@
|
|
|
3209
2883
|
ColumnModel.prototype.getDefaultHeaderText = function () {
|
|
3210
2884
|
return this.columnId;
|
|
3211
2885
|
};
|
|
3212
|
-
Object.defineProperty(ColumnModel.prototype, "isTextMatch", {
|
|
3213
|
-
get: function () {
|
|
3214
|
-
return this._columnModelTextSearchPredicate || this._cellRendererTextSearchPredicate || DEFAULT_TEXT_SEARCH_PREDICATE;
|
|
3215
|
-
},
|
|
3216
|
-
enumerable: false,
|
|
3217
|
-
configurable: true
|
|
3218
|
-
});
|
|
3219
|
-
/**
|
|
3220
|
-
* Sets the predicate to use when checking if the specified row is a text match for this column.
|
|
3221
|
-
* @param predicate
|
|
3222
|
-
*/
|
|
3223
|
-
ColumnModel.prototype.useTextSearchPredicate = function (predicate) {
|
|
3224
|
-
this._columnModelTextSearchPredicate = predicate;
|
|
3225
|
-
return this;
|
|
3226
|
-
};
|
|
3227
2886
|
ColumnModel.prototype.getColumnTextProperties = function () {
|
|
3228
2887
|
return this._columnTextProperties || this.textPropertiesProvider();
|
|
3229
2888
|
};
|
|
@@ -3275,12 +2934,6 @@
|
|
|
3275
2934
|
};
|
|
3276
2935
|
ColumnModel.prototype.onRendererAttached = function (host, component) {
|
|
3277
2936
|
this._cellRendererPortalRef.onPortalAttached(host, component);
|
|
3278
|
-
if (___default["default"].isFunction(component === null || component === void 0 ? void 0 : component.matches)) {
|
|
3279
|
-
this._cellRendererTextSearchPredicate = function (row, text) { return component.matches(row, text); };
|
|
3280
|
-
}
|
|
3281
|
-
else {
|
|
3282
|
-
this._cellRendererTextSearchPredicate = undefined;
|
|
3283
|
-
}
|
|
3284
2937
|
};
|
|
3285
2938
|
// @Trace()
|
|
3286
2939
|
ColumnModel.prototype.onEditorAttached = function (host, component) {
|
|
@@ -3297,7 +2950,7 @@
|
|
|
3297
2950
|
return this._enableRowSelection;
|
|
3298
2951
|
};
|
|
3299
2952
|
return ColumnModel;
|
|
3300
|
-
}(
|
|
2953
|
+
}());
|
|
3301
2954
|
__decorate([
|
|
3302
2955
|
src.Memoize(),
|
|
3303
2956
|
__metadata("design:type", Function),
|
|
@@ -3315,27 +2968,27 @@
|
|
|
3315
2968
|
function PropertyColumnModel(id, property, defaults) {
|
|
3316
2969
|
var _this = _super.call(this, id, defaults) || this;
|
|
3317
2970
|
_this.property = property;
|
|
3318
|
-
_this._format = function (value) { return value
|
|
2971
|
+
_this._format = function (value) { return value; };
|
|
3319
2972
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
3320
|
-
_this.useTextSearchPredicate(function (row, regex) {
|
|
3321
|
-
return regex.test(_this._format(row[_this.property]));
|
|
3322
|
-
});
|
|
3323
2973
|
return _this;
|
|
3324
2974
|
}
|
|
3325
2975
|
PropertyColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
|
|
3326
2976
|
var _this = this;
|
|
3327
2977
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3328
2978
|
if (firstTime) {
|
|
3329
|
-
if (___default[
|
|
2979
|
+
if (___default['default'].isFunction(onComponentInitOrOptions)) {
|
|
3330
2980
|
onComponentInitOrOptions(component);
|
|
3331
2981
|
}
|
|
3332
2982
|
else {
|
|
3333
|
-
if (___default[
|
|
2983
|
+
if (___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3334
2984
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3335
2985
|
}
|
|
3336
2986
|
}
|
|
3337
2987
|
}
|
|
3338
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
|
+
}
|
|
3339
2992
|
}));
|
|
3340
2993
|
return this;
|
|
3341
2994
|
};
|
|
@@ -3355,7 +3008,7 @@
|
|
|
3355
3008
|
component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
|
|
3356
3009
|
var disableEditCallback = false;
|
|
3357
3010
|
if (firstTime) {
|
|
3358
|
-
if (___default[
|
|
3011
|
+
if (___default['default'].isFunction(options === null || options === void 0 ? void 0 : options.onComponentInit)) {
|
|
3359
3012
|
options.onComponentInit(component);
|
|
3360
3013
|
}
|
|
3361
3014
|
// install our edit callback
|
|
@@ -3370,7 +3023,7 @@
|
|
|
3370
3023
|
disableEditCallback = true;
|
|
3371
3024
|
component.value = rowData.row[_this.property];
|
|
3372
3025
|
disableEditCallback = false;
|
|
3373
|
-
if (!___default[
|
|
3026
|
+
if (!___default['default'].isFunction(options) && ___default['default'].isFunction(options === null || options === void 0 ? void 0 : options.onRowUpdate)) {
|
|
3374
3027
|
options.onRowUpdate(component, rowData.row);
|
|
3375
3028
|
}
|
|
3376
3029
|
}));
|
|
@@ -3379,7 +3032,7 @@
|
|
|
3379
3032
|
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, onComponentInit) {
|
|
3380
3033
|
var _this = this;
|
|
3381
3034
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3382
|
-
var initialiser = ___default[
|
|
3035
|
+
var initialiser = ___default['default'].isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
|
|
3383
3036
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3384
3037
|
var formValueModel = editSession.form.pluck(_this.property);
|
|
3385
3038
|
if (validators) {
|
|
@@ -3409,9 +3062,6 @@
|
|
|
3409
3062
|
_this.property = property;
|
|
3410
3063
|
_this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
|
|
3411
3064
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
3412
|
-
_this.useTextSearchPredicate(function (row, regex) {
|
|
3413
|
-
return regex.test(_this._format(row[_this.property]));
|
|
3414
|
-
});
|
|
3415
3065
|
return _this;
|
|
3416
3066
|
}
|
|
3417
3067
|
ListPropertyColumnModel.prototype.cellRenderer = function (componentType) {
|
|
@@ -3424,7 +3074,7 @@
|
|
|
3424
3074
|
ListPropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
|
|
3425
3075
|
var _this = this;
|
|
3426
3076
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3427
|
-
var initialiser = ___default[
|
|
3077
|
+
var initialiser = ___default['default'].isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3428
3078
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3429
3079
|
var formListModel = editSession.form.pluckList(_this.property);
|
|
3430
3080
|
if (validators) {
|
|
@@ -3459,17 +3109,17 @@
|
|
|
3459
3109
|
var _this = this;
|
|
3460
3110
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3461
3111
|
if (firstTime) {
|
|
3462
|
-
if (___default[
|
|
3112
|
+
if (___default['default'].isFunction(onComponentInitOrOptions)) {
|
|
3463
3113
|
onComponentInitOrOptions(component);
|
|
3464
3114
|
}
|
|
3465
3115
|
else {
|
|
3466
|
-
if (___default[
|
|
3116
|
+
if (___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3467
3117
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3468
3118
|
}
|
|
3469
3119
|
}
|
|
3470
3120
|
}
|
|
3471
3121
|
component.value = _this.getValue(rowData.row);
|
|
3472
|
-
if (!___default[
|
|
3122
|
+
if (!___default['default'].isFunction(onComponentInitOrOptions) && ___default['default'].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
3473
3123
|
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
3474
3124
|
}
|
|
3475
3125
|
}));
|
|
@@ -3482,7 +3132,7 @@
|
|
|
3482
3132
|
}(ColumnModel));
|
|
3483
3133
|
var EditorControlColumnModel = /** @class */ (function (_super) {
|
|
3484
3134
|
__extends(EditorControlColumnModel, _super);
|
|
3485
|
-
function EditorControlColumnModel(columnId,
|
|
3135
|
+
function EditorControlColumnModel(columnId, saveCommand, defaults) {
|
|
3486
3136
|
var _this = _super.call(this, columnId, defaults) || this;
|
|
3487
3137
|
_this.cellRenderer(EditRowControls);
|
|
3488
3138
|
return _this;
|
|
@@ -3847,7 +3497,7 @@
|
|
|
3847
3497
|
{ type: i0.Component, args: [{
|
|
3848
3498
|
selector: 'aup-table-header-cell-renderer',
|
|
3849
3499
|
template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event.instance)\"></ng-container>\n",
|
|
3850
|
-
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%}"]
|
|
3851
3501
|
},] }
|
|
3852
3502
|
];
|
|
3853
3503
|
TableHeaderCellRendererComponent.ctorParameters = function () { return []; };
|
|
@@ -3880,6 +3530,8 @@
|
|
|
3880
3530
|
TableRowMenuComponent.prototype.registerMoreAction = function (commandFactory, properties) {
|
|
3881
3531
|
this.moreActions.push(new MenuItemData(commandFactory, properties));
|
|
3882
3532
|
};
|
|
3533
|
+
TableRowMenuComponent.prototype.ngOnInit = function () {
|
|
3534
|
+
};
|
|
3883
3535
|
TableRowMenuComponent.prototype.createMoreMenuCommand = function (item, value) {
|
|
3884
3536
|
var _this = this;
|
|
3885
3537
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
@@ -3966,7 +3618,7 @@
|
|
|
3966
3618
|
// if (!this._liveRowValue.value[immerable]) {
|
|
3967
3619
|
// console.warn()
|
|
3968
3620
|
// }
|
|
3969
|
-
_this._liveRowValue.value = produce__default[
|
|
3621
|
+
_this._liveRowValue.value = produce__default['default'](_this._liveRowValue.value, function (draft) {
|
|
3970
3622
|
_this.form.writeDirtyStateTo(draft);
|
|
3971
3623
|
});
|
|
3972
3624
|
});
|
|
@@ -3988,7 +3640,7 @@
|
|
|
3988
3640
|
__extends(AbstractTableModel, _super);
|
|
3989
3641
|
function AbstractTableModel() {
|
|
3990
3642
|
var _this = _super.call(this) || this;
|
|
3991
|
-
_this._dataSource =
|
|
3643
|
+
_this._dataSource = new pectin.DelegatingListModel();
|
|
3992
3644
|
_this._columnList = _this.registerDisposable(new ColumnListModel());
|
|
3993
3645
|
_this._editorSessions = new pectin.MutableListModel();
|
|
3994
3646
|
_this.rowClassNamePredicates = [];
|
|
@@ -4010,12 +3662,6 @@
|
|
|
4010
3662
|
_this.rowSelectionDisabledOnAllColumns = chain(_this._columnList).select(function (column) { return column.isRowSelectionEnabled(); }).count().equals(0);
|
|
4011
3663
|
return _this;
|
|
4012
3664
|
}
|
|
4013
|
-
AbstractTableModel.prototype.findMatchingColumns = function (row, regex) {
|
|
4014
|
-
return this.columns.value.filter(function (c) { return c.isTextMatch(row, regex); });
|
|
4015
|
-
};
|
|
4016
|
-
AbstractTableModel.prototype.hasMatchingColumn = function (row, regex) {
|
|
4017
|
-
return !!this.columns.value.find(function (c) { return c.isTextMatch(row, regex); });
|
|
4018
|
-
};
|
|
4019
3665
|
AbstractTableModel.prototype.setDataSource = function (sourceOfTruth) {
|
|
4020
3666
|
this._dataSource.setDelegate(sourceOfTruth);
|
|
4021
3667
|
};
|
|
@@ -4065,14 +3711,11 @@
|
|
|
4065
3711
|
}
|
|
4066
3712
|
return selectionColumnModel;
|
|
4067
3713
|
};
|
|
4068
|
-
AbstractTableModel.prototype.addEditControls = function (
|
|
3714
|
+
AbstractTableModel.prototype.addEditControls = function (saveCommand) {
|
|
4069
3715
|
var _this = this;
|
|
4070
|
-
this.
|
|
4071
|
-
if (___namespace.isFunction(formFactory)) {
|
|
4072
|
-
this._createForm = formFactory;
|
|
4073
|
-
}
|
|
3716
|
+
this.saveCommand = saveCommand;
|
|
4074
3717
|
var columnId = 'editControls';
|
|
4075
|
-
return this.addColumn(new EditorControlColumnModel(columnId,
|
|
3718
|
+
return this.addColumn(new EditorControlColumnModel(columnId, saveCommand, function () { return _this.getColumnTextProperties(columnId); }));
|
|
4076
3719
|
};
|
|
4077
3720
|
AbstractTableModel.prototype.addCustomColumn = function (columnId, dataAccessor) {
|
|
4078
3721
|
var _this = this;
|
|
@@ -4120,20 +3763,19 @@
|
|
|
4120
3763
|
if (this._rowsBeingEdited.query().indexOf(row) > -1) {
|
|
4121
3764
|
return pectin.lang.illegalState("Row with id=" + rowId + " already being edited");
|
|
4122
3765
|
}
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
}
|
|
4136
|
-
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
|
+
}
|
|
4137
3779
|
};
|
|
4138
3780
|
AbstractTableModel.prototype.getEditSessionFor = function (row) {
|
|
4139
3781
|
return this._editorSessionByRowId.get(this.identityOf(row));
|
|
@@ -4150,16 +3792,12 @@
|
|
|
4150
3792
|
return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
|
|
4151
3793
|
};
|
|
4152
3794
|
AbstractTableModel.prototype.isRowSelectionEnabled = function () {
|
|
4153
|
-
return this.
|
|
3795
|
+
return this.hasSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
|
|
4154
3796
|
};
|
|
4155
|
-
AbstractTableModel.prototype.
|
|
3797
|
+
AbstractTableModel.prototype.hasSelectionModel = function () {
|
|
4156
3798
|
var _a;
|
|
4157
3799
|
return !!((_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate());
|
|
4158
3800
|
};
|
|
4159
|
-
AbstractTableModel.prototype.getSelectionModel = function () {
|
|
4160
|
-
var _a;
|
|
4161
|
-
return (_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel;
|
|
4162
|
-
};
|
|
4163
3801
|
AbstractTableModel.prototype.isHoverEnabled = function () {
|
|
4164
3802
|
return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;
|
|
4165
3803
|
};
|
|
@@ -4227,19 +3865,18 @@
|
|
|
4227
3865
|
* --row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
4228
3866
|
* --first-column-padding-left: 18px // defaults to --column-gap
|
|
4229
3867
|
* --last-column-padding-right: 18px // defaults to --column-gap
|
|
4230
|
-
*
|
|
4231
|
-
*
|
|
4232
|
-
*
|
|
4233
|
-
*
|
|
4234
|
-
*
|
|
4235
|
-
*
|
|
4236
|
-
*
|
|
4237
|
-
*
|
|
4238
|
-
*
|
|
4239
|
-
*
|
|
4240
|
-
*
|
|
4241
|
-
*
|
|
4242
|
-
* }
|
|
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
|
+
* }
|
|
4243
3880
|
* }
|
|
4244
3881
|
* }
|
|
4245
3882
|
*/
|
|
@@ -4260,7 +3897,7 @@
|
|
|
4260
3897
|
providers: [
|
|
4261
3898
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
4262
3899
|
],
|
|
4263
|
-
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}"]
|
|
4264
3901
|
},] }
|
|
4265
3902
|
];
|
|
4266
3903
|
TableComponent.ctorParameters = function () { return [
|
|
@@ -4313,7 +3950,7 @@
|
|
|
4313
3950
|
{ type: i0.Component, args: [{
|
|
4314
3951
|
selector: 'aup-tree-inheritance-icon',
|
|
4315
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",
|
|
4316
|
-
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}"]
|
|
4317
3954
|
},] }
|
|
4318
3955
|
];
|
|
4319
3956
|
exports.TreeInheritanceIconComponent.ctorParameters = function () { return []; };
|
|
@@ -4555,17 +4192,17 @@
|
|
|
4555
4192
|
var _this = this;
|
|
4556
4193
|
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
4557
4194
|
this.canExpand = chain(this.nodeModel).map(function (node) {
|
|
4558
|
-
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && _this.
|
|
4559
|
-
}, { dependsOn: this.
|
|
4195
|
+
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && _this.expansionModel.isCollapsed(node);
|
|
4196
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4560
4197
|
this.canCollapse = chain(this.nodeModel).map(function (node) {
|
|
4561
|
-
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && !_this.
|
|
4562
|
-
}, { dependsOn: this.
|
|
4198
|
+
return exports.DecoratedTreeNode.getDecorator(node).hasChildren() && !_this.expansionModel.isCollapsed(node);
|
|
4199
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4563
4200
|
this.iconModel = chain(this.nodeModel).map(function (node) {
|
|
4564
4201
|
var _a;
|
|
4565
|
-
var expanded = _this.
|
|
4202
|
+
var expanded = _this.expansionModel.isExpanded(_this.node);
|
|
4566
4203
|
var iconFactory = (_a = _this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
|
|
4567
4204
|
return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
|
|
4568
|
-
}, { dependsOn: this.
|
|
4205
|
+
}, { dependsOn: this.expansionModel.isExpandedPredicate });
|
|
4569
4206
|
};
|
|
4570
4207
|
Object.defineProperty(TreeLabelCellRendererComponent.prototype, "isRoot", {
|
|
4571
4208
|
get: function () {
|
|
@@ -4589,18 +4226,16 @@
|
|
|
4589
4226
|
configurable: true
|
|
4590
4227
|
});
|
|
4591
4228
|
// @Trace()
|
|
4592
|
-
TreeLabelCellRendererComponent.prototype.expandOrCollapse = function (
|
|
4593
|
-
|
|
4594
|
-
$event.stopPropagation();
|
|
4595
|
-
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);
|
|
4596
4231
|
};
|
|
4597
4232
|
return TreeLabelCellRendererComponent;
|
|
4598
4233
|
}(DisposableComponent));
|
|
4599
4234
|
exports.TreeLabelCellRendererComponent.decorators = [
|
|
4600
4235
|
{ type: i0.Component, args: [{
|
|
4601
4236
|
selector: 'aup-tree-label-cell-renderer',
|
|
4602
|
-
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(
|
|
4603
|
-
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}"]
|
|
4604
4239
|
},] }
|
|
4605
4240
|
];
|
|
4606
4241
|
exports.TreeLabelCellRendererComponent.ctorParameters = function () { return []; };
|
|
@@ -4608,7 +4243,7 @@
|
|
|
4608
4243
|
value: [{ type: i0.Input }],
|
|
4609
4244
|
label: [{ type: i0.Input }],
|
|
4610
4245
|
iconFactory: [{ type: i0.Input }],
|
|
4611
|
-
|
|
4246
|
+
expansionModel: [{ type: i0.Input }],
|
|
4612
4247
|
isRoot: [{ type: i0.HostBinding, args: ['class.root',] }],
|
|
4613
4248
|
isLeaf: [{ type: i0.HostBinding, args: ['class.leaf',] }]
|
|
4614
4249
|
};
|
|
@@ -4617,29 +4252,22 @@
|
|
|
4617
4252
|
__metadata("design:type", Object)
|
|
4618
4253
|
], exports.TreeLabelCellRendererComponent.prototype, "value", void 0);
|
|
4619
4254
|
(function (TreeLabelCellRendererComponent) {
|
|
4620
|
-
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) {
|
|
4621
|
-
var isLeaf = exports.DecoratedTreeNode.getDecorator(node).isLeaf();
|
|
4622
|
-
return isLeaf ?
|
|
4623
|
-
undefined :
|
|
4624
|
-
expanded ?
|
|
4625
|
-
'mat:expand_more' :
|
|
4626
|
-
'mat:chevron_right';
|
|
4627
|
-
};
|
|
4255
|
+
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) { return expanded ? 'mat:expand_more' : 'mat:chevron_right'; };
|
|
4628
4256
|
})(exports.TreeLabelCellRendererComponent || (exports.TreeLabelCellRendererComponent = {}));
|
|
4629
4257
|
|
|
4630
4258
|
var FlattenedTreeListModel = /** @class */ (function (_super) {
|
|
4631
4259
|
__extends(FlattenedTreeListModel, _super);
|
|
4632
4260
|
function FlattenedTreeListModel(source, childRef, expansionModel) {
|
|
4633
|
-
var _this = _super.call(this, source
|
|
4634
|
-
initialValue: [],
|
|
4635
|
-
identifiedWith: function (row) { return source.identityOf(row); }
|
|
4636
|
-
}) || this;
|
|
4261
|
+
var _this = _super.call(this, source) || this;
|
|
4637
4262
|
_this.source = source;
|
|
4638
4263
|
_this.childRef = childRef;
|
|
4639
4264
|
_this.expansionModel = expansionModel;
|
|
4640
4265
|
_this.trackSource(expansionModel.isExpandedPredicate);
|
|
4641
4266
|
return _this;
|
|
4642
4267
|
}
|
|
4268
|
+
FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
|
|
4269
|
+
return this.source.identityOf(item);
|
|
4270
|
+
};
|
|
4643
4271
|
FlattenedTreeListModel.prototype.compute = function (values) {
|
|
4644
4272
|
var _this = this;
|
|
4645
4273
|
var result = [];
|
|
@@ -4738,10 +4366,10 @@
|
|
|
4738
4366
|
var _this = this;
|
|
4739
4367
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
4740
4368
|
if (firstTime) {
|
|
4741
|
-
component.
|
|
4369
|
+
component.expansionModel = _this.expansionModel;
|
|
4742
4370
|
}
|
|
4743
4371
|
component.value = rowData.row;
|
|
4744
|
-
component.label = ___default[
|
|
4372
|
+
component.label = ___default['default'].isNil(_this.labelProperty) ? undefined : rowData.row[_this.labelProperty];
|
|
4745
4373
|
component.iconFactory = _this.iconFactory;
|
|
4746
4374
|
}));
|
|
4747
4375
|
return this;
|
|
@@ -4772,13 +4400,12 @@
|
|
|
4772
4400
|
var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
|
|
4773
4401
|
_this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
|
|
4774
4402
|
_this.setDataSource(_this.flattenedDataSource);
|
|
4775
|
-
_this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
|
|
4776
4403
|
return _this;
|
|
4777
4404
|
}
|
|
4778
4405
|
TreeTableModel.prototype.treeControlColumn = function (builder) {
|
|
4779
4406
|
var _this = this;
|
|
4780
4407
|
var columnId = 'tree-label';
|
|
4781
|
-
var column = new TreeLabelColumnModel(columnId, function () { return _this.getColumnTextProperties(columnId); }, this);
|
|
4408
|
+
var column = new TreeLabelColumnModel(columnId, function () { return _this.getColumnTextProperties(columnId); }, this.treeExpansionModel);
|
|
4782
4409
|
builder(column);
|
|
4783
4410
|
this.addColumn(column);
|
|
4784
4411
|
};
|
|
@@ -4786,7 +4413,7 @@
|
|
|
4786
4413
|
this.treeExpansionModel.expand(node);
|
|
4787
4414
|
};
|
|
4788
4415
|
TreeTableModel.prototype.collapse = function (node) {
|
|
4789
|
-
this.treeExpansionModel.
|
|
4416
|
+
this.treeExpansionModel.expand(node);
|
|
4790
4417
|
};
|
|
4791
4418
|
TreeTableModel.prototype.isCollapsed = function (node) {
|
|
4792
4419
|
return this.treeExpansionModel.isCollapsed(node);
|
|
@@ -4922,7 +4549,7 @@
|
|
|
4922
4549
|
providers: [
|
|
4923
4550
|
{ provide: AbstractTableComponent, useExisting: TreeTableComponent }
|
|
4924
4551
|
],
|
|
4925
|
-
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}"]
|
|
4926
4553
|
},] }
|
|
4927
4554
|
];
|
|
4928
4555
|
TreeTableComponent.ctorParameters = function () { return [
|
|
@@ -4979,7 +4606,7 @@
|
|
|
4979
4606
|
providers: [
|
|
4980
4607
|
{ provide: pectin.FocusManager }
|
|
4981
4608
|
],
|
|
4982
|
-
styles: [":host{display:block}
|
|
4609
|
+
styles: [":host{display:block}"]
|
|
4983
4610
|
},] }
|
|
4984
4611
|
];
|
|
4985
4612
|
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
@@ -5043,7 +4670,7 @@
|
|
|
5043
4670
|
{ type: i0.Component, args: [{
|
|
5044
4671
|
selector: 'aup-paginator',
|
|
5045
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",
|
|
5046
|
-
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}"]
|
|
5047
4674
|
},] }
|
|
5048
4675
|
];
|
|
5049
4676
|
PaginatorComponent.ctorParameters = function () { return []; };
|
|
@@ -5055,110 +4682,14 @@
|
|
|
5055
4682
|
__metadata("design:type", pectin.PageController)
|
|
5056
4683
|
], PaginatorComponent.prototype, "pageController", void 0);
|
|
5057
4684
|
|
|
5058
|
-
var
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
return _super.call(this) || this;
|
|
5062
|
-
// const {chain} = Dsl.disposeWith(this);
|
|
5063
|
-
}
|
|
5064
|
-
LabelledValueComponent.prototype.ngOnInit = function () {
|
|
5065
|
-
};
|
|
5066
|
-
return LabelledValueComponent;
|
|
5067
|
-
}(DisposableComponent));
|
|
5068
|
-
LabelledValueComponent.decorators = [
|
|
5069
|
-
{ type: i0.Component, args: [{
|
|
5070
|
-
selector: 'aup-labelled-value',
|
|
5071
|
-
template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
|
|
5072
|
-
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"]
|
|
5073
|
-
},] }
|
|
5074
|
-
];
|
|
5075
|
-
LabelledValueComponent.ctorParameters = function () { return []; };
|
|
5076
|
-
LabelledValueComponent.propDecorators = {
|
|
5077
|
-
label: [{ type: i0.Input }]
|
|
5078
|
-
};
|
|
5079
|
-
|
|
5080
|
-
var MarkdownComponent = /** @class */ (function (_super) {
|
|
5081
|
-
__extends(MarkdownComponent, _super);
|
|
5082
|
-
function MarkdownComponent(element, markdownService) {
|
|
5083
|
-
var _this = _super.call(this) || this;
|
|
5084
|
-
_this.element = element;
|
|
5085
|
-
_this.markdownService = markdownService;
|
|
5086
|
-
_this.inline = false;
|
|
5087
|
-
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
5088
|
-
return _this;
|
|
5089
|
-
}
|
|
5090
|
-
MarkdownComponent.prototype.ngOnInit = function () {
|
|
5091
|
-
var _this = this;
|
|
5092
|
-
var when = pectin.Dsl.disposeWith(this).when;
|
|
5093
|
-
when(this.content$).changes(function (content) { return _this.renderContent(content); }, { initialValue: 'triggerChangeUnlessNil' });
|
|
5094
|
-
if (___namespace.isNil(this.content) && !___namespace.isEmpty(this.element.nativeElement.innerHTML)) {
|
|
5095
|
-
this.renderContent(this.element.nativeElement.innerHTML);
|
|
5096
|
-
}
|
|
5097
|
-
};
|
|
5098
|
-
MarkdownComponent.prototype.renderContent = function (content) {
|
|
5099
|
-
if (!___namespace.isNil(content)) {
|
|
5100
|
-
this.element.nativeElement.innerHTML = this.inline ? this.markdownService.renderInline(content) :
|
|
5101
|
-
this.markdownService.render(content);
|
|
5102
|
-
}
|
|
5103
|
-
};
|
|
5104
|
-
return MarkdownComponent;
|
|
5105
|
-
}(DisposableComponent));
|
|
5106
|
-
MarkdownComponent.decorators = [
|
|
5107
|
-
{ type: i0.Component, args: [{
|
|
5108
|
-
selector: 'aup-markdown',
|
|
5109
|
-
template: "<ng-content></ng-content>\n",
|
|
5110
|
-
styles: [":host{display:inline-block}\n"]
|
|
5111
|
-
},] }
|
|
5112
|
-
];
|
|
5113
|
-
MarkdownComponent.ctorParameters = function () { return [
|
|
5114
|
-
{ type: i0.ElementRef },
|
|
5115
|
-
{ type: MarkdownService }
|
|
5116
|
-
]; };
|
|
5117
|
-
MarkdownComponent.propDecorators = {
|
|
5118
|
-
content$: [{ type: i0.Input }],
|
|
5119
|
-
content: [{ type: i0.Input }],
|
|
5120
|
-
inline: [{ type: i0.Input }]
|
|
5121
|
-
};
|
|
5122
|
-
__decorate([
|
|
5123
|
-
pectin.TrackExternal(),
|
|
5124
|
-
__metadata("design:type", pectin.ValueModel)
|
|
5125
|
-
], MarkdownComponent.prototype, "content$", void 0);
|
|
5126
|
-
__decorate([
|
|
5127
|
-
pectin.StoreInValueModel('content$'),
|
|
5128
|
-
__metadata("design:type", String)
|
|
5129
|
-
], MarkdownComponent.prototype, "content", void 0);
|
|
5130
|
-
|
|
5131
|
-
var ComponentsModule = /** @class */ (function () {
|
|
5132
|
-
function ComponentsModule(faIconLibrary) {
|
|
5133
|
-
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
4685
|
+
var ComponentsModule = /** @class */ (function () {
|
|
4686
|
+
function ComponentsModule(faIconLibrary) {
|
|
4687
|
+
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
5134
4688
|
}
|
|
5135
4689
|
return ComponentsModule;
|
|
5136
4690
|
}());
|
|
5137
4691
|
ComponentsModule.decorators = [
|
|
5138
4692
|
{ type: i0.NgModule, args: [{
|
|
5139
|
-
imports: [
|
|
5140
|
-
i2.CommonModule,
|
|
5141
|
-
animations.BrowserAnimationsModule,
|
|
5142
|
-
forms.FormsModule,
|
|
5143
|
-
input.MatInputModule,
|
|
5144
|
-
formField.MatFormFieldModule,
|
|
5145
|
-
select.MatSelectModule,
|
|
5146
|
-
tabs.MatTabsModule,
|
|
5147
|
-
DirectivesModule,
|
|
5148
|
-
icon.MatIconModule,
|
|
5149
|
-
button.MatButtonModule,
|
|
5150
|
-
checkbox.MatCheckboxModule,
|
|
5151
|
-
table.MatTableModule,
|
|
5152
|
-
portal.PortalModule,
|
|
5153
|
-
scrolling.CdkScrollableModule,
|
|
5154
|
-
angularFontawesome.FontAwesomeModule,
|
|
5155
|
-
tooltip.MatTooltipModule,
|
|
5156
|
-
autocomplete.MatAutocompleteModule,
|
|
5157
|
-
menu.MatMenuModule,
|
|
5158
|
-
divider.MatDividerModule,
|
|
5159
|
-
progressSpinner.MatProgressSpinnerModule,
|
|
5160
|
-
progressBar.MatProgressBarModule
|
|
5161
|
-
],
|
|
5162
4693
|
declarations: [
|
|
5163
4694
|
AbstractInputComponent,
|
|
5164
4695
|
AbstractValueInputComponent,
|
|
@@ -5207,12 +4738,29 @@
|
|
|
5207
4738
|
BusyOverlayComponent,
|
|
5208
4739
|
EmptyStateComponent,
|
|
5209
4740
|
PaginatorComponent,
|
|
5210
|
-
AbstractTableComponent
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
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
|
|
5216
4764
|
],
|
|
5217
4765
|
exports: [
|
|
5218
4766
|
NumberInputComponent,
|
|
@@ -5249,14 +4797,9 @@
|
|
|
5249
4797
|
BusyOverlayComponent,
|
|
5250
4798
|
EmptyStateComponent,
|
|
5251
4799
|
PaginatorComponent,
|
|
5252
|
-
CardStackComponent,
|
|
5253
|
-
LabelledValueComponent,
|
|
5254
|
-
LoadingContainerComponent,
|
|
5255
|
-
MarkdownComponent
|
|
5256
4800
|
],
|
|
5257
4801
|
providers: [
|
|
5258
|
-
FocusBindingFactory
|
|
5259
|
-
MarkdownService
|
|
4802
|
+
FocusBindingFactory
|
|
5260
4803
|
]
|
|
5261
4804
|
},] }
|
|
5262
4805
|
];
|
|
@@ -5285,13 +4828,12 @@
|
|
|
5285
4828
|
* <span>This content will be between the two commands</span>
|
|
5286
4829
|
* </aup-activity-actions>
|
|
5287
4830
|
*/
|
|
5288
|
-
|
|
4831
|
+
var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
5289
4832
|
__extends(ActivityActionsComponent, _super);
|
|
5290
4833
|
function ActivityActionsComponent(cdr) {
|
|
5291
4834
|
var _this = _super.call(this) || this;
|
|
5292
4835
|
_this.cdr = cdr;
|
|
5293
|
-
_this.
|
|
5294
|
-
_this.align = ActivityActionsComponent.Align.STRETCH;
|
|
4836
|
+
_this.align = 'stretch';
|
|
5295
4837
|
return _this;
|
|
5296
4838
|
}
|
|
5297
4839
|
Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
|
|
@@ -5312,6 +4854,20 @@
|
|
|
5312
4854
|
enumerable: false,
|
|
5313
4855
|
configurable: true
|
|
5314
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
|
+
});
|
|
5315
4871
|
ActivityActionsComponent.prototype.ngOnInit = function () {
|
|
5316
4872
|
};
|
|
5317
4873
|
ActivityActionsComponent.prototype.hasConfirmFace = function () {
|
|
@@ -5327,55 +4883,44 @@
|
|
|
5327
4883
|
};
|
|
5328
4884
|
return ActivityActionsComponent;
|
|
5329
4885
|
}(DisposableComponent));
|
|
5330
|
-
|
|
4886
|
+
ActivityActionsComponent.decorators = [
|
|
5331
4887
|
{ type: i0.Component, args: [{
|
|
5332
4888
|
selector: 'aup-activity-actions',
|
|
5333
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",
|
|
5334
|
-
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}"]
|
|
5335
4891
|
},] }
|
|
5336
4892
|
];
|
|
5337
|
-
|
|
4893
|
+
ActivityActionsComponent.ctorParameters = function () { return [
|
|
5338
4894
|
{ type: i0.ChangeDetectorRef }
|
|
5339
4895
|
]; };
|
|
5340
|
-
|
|
4896
|
+
ActivityActionsComponent.propDecorators = {
|
|
5341
4897
|
confirmCommand: [{ type: i0.Input }],
|
|
5342
4898
|
cancelCommand: [{ type: i0.Input }],
|
|
5343
4899
|
faces: [{ type: i0.Input }],
|
|
5344
4900
|
confirmFace: [{ type: i0.Input }],
|
|
5345
4901
|
cancelFace: [{ type: i0.Input }],
|
|
5346
4902
|
style: [{ type: i0.Input }],
|
|
5347
|
-
|
|
5348
|
-
|
|
4903
|
+
align: [{ type: i0.Input }],
|
|
4904
|
+
alignEnd: [{ type: i0.HostBinding, args: ['class.align-end',] }],
|
|
4905
|
+
alignStretch: [{ type: i0.HostBinding, args: ['class.align-stretch',] }]
|
|
5349
4906
|
};
|
|
5350
4907
|
__decorate([
|
|
5351
4908
|
pectin.TrackExternal(),
|
|
5352
4909
|
__metadata("design:type", pectin.Command)
|
|
5353
|
-
],
|
|
4910
|
+
], ActivityActionsComponent.prototype, "confirmCommand", void 0);
|
|
5354
4911
|
__decorate([
|
|
5355
4912
|
pectin.TrackExternal(),
|
|
5356
4913
|
__metadata("design:type", pectin.Command)
|
|
5357
|
-
],
|
|
5358
|
-
(function (ActivityActionsComponent) {
|
|
5359
|
-
ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
|
|
5360
|
-
INLINE: 'inline',
|
|
5361
|
-
BLOCK: 'block'
|
|
5362
|
-
});
|
|
5363
|
-
ActivityActionsComponent.Align = typescriptStringEnums.Enum({
|
|
5364
|
-
START: 'start',
|
|
5365
|
-
END: 'end',
|
|
5366
|
-
STRETCH: 'stretch'
|
|
5367
|
-
});
|
|
5368
|
-
})(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
|
|
4914
|
+
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
5369
4915
|
|
|
5370
4916
|
var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
|
|
5371
4917
|
var Activity = /** @class */ (function (_super) {
|
|
5372
4918
|
__extends(Activity, _super);
|
|
5373
4919
|
function Activity() {
|
|
5374
4920
|
var _this = _super.call(this) || this;
|
|
5375
|
-
_this._busyModel =
|
|
4921
|
+
_this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
|
|
5376
4922
|
_this._focusedModel = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
5377
4923
|
_this.class = 'aup-activity';
|
|
5378
|
-
_this.busyWhile(_this.confirmCommand.busy);
|
|
5379
4924
|
return _this;
|
|
5380
4925
|
}
|
|
5381
4926
|
Object.defineProperty(Activity.prototype, "isFocused", {
|
|
@@ -5449,7 +4994,7 @@
|
|
|
5449
4994
|
];
|
|
5450
4995
|
Activity.ctorParameters = function () { return []; };
|
|
5451
4996
|
Activity.propDecorators = {
|
|
5452
|
-
activityActions: [{ type: i0.ViewChild, args: [
|
|
4997
|
+
activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
|
|
5453
4998
|
class: [{ type: i0.HostBinding, args: ['class',] }],
|
|
5454
4999
|
isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
|
|
5455
5000
|
};
|
|
@@ -5462,196 +5007,133 @@
|
|
|
5462
5007
|
__metadata("design:type", pectin.Command)
|
|
5463
5008
|
], Activity.prototype, "cancelCommand", void 0);
|
|
5464
5009
|
|
|
5465
|
-
exports.Alert = void 0;
|
|
5466
|
-
(function (Alert) {
|
|
5467
|
-
function getContent(alert) {
|
|
5468
|
-
var content = alert.content();
|
|
5469
|
-
return Array.isArray(content) ? content : [content];
|
|
5470
|
-
}
|
|
5471
|
-
Alert.getContent = getContent;
|
|
5472
|
-
function getTitle(alert) {
|
|
5473
|
-
return ___namespace.isFunction(alert.title) ? alert.title() : undefined;
|
|
5474
|
-
}
|
|
5475
|
-
Alert.getTitle = getTitle;
|
|
5476
|
-
function getColor(alert) {
|
|
5477
|
-
return ___namespace.isFunction(alert.color) ? alert.color() : undefined;
|
|
5478
|
-
}
|
|
5479
|
-
Alert.getColor = getColor;
|
|
5480
|
-
})(exports.Alert || (exports.Alert = {}));
|
|
5481
|
-
|
|
5482
|
-
var ALERT_CONFIG = new i0.InjectionToken('AlertConfig');
|
|
5483
|
-
var AbstractDialogComponent = /** @class */ (function (_super) {
|
|
5484
|
-
__extends(AbstractDialogComponent, _super);
|
|
5485
|
-
function AbstractDialogComponent(config) {
|
|
5486
|
-
var _this = _super.call(this) || this;
|
|
5487
|
-
_this.config = config;
|
|
5488
|
-
pectin.assert.notNil(config);
|
|
5489
|
-
_this.title = exports.Alert.getTitle(config);
|
|
5490
|
-
_this.color = _this.checkColor(exports.Alert.getColor(config));
|
|
5491
|
-
_this.content = exports.Alert.getContent(config);
|
|
5492
|
-
_this.confirmFace = {
|
|
5493
|
-
text: function () { return config.ok(); },
|
|
5494
|
-
color: function () { return _this.color || 'primary'; },
|
|
5495
|
-
style: function () { return 'raised'; }
|
|
5496
|
-
};
|
|
5497
|
-
return _this;
|
|
5498
|
-
}
|
|
5499
|
-
AbstractDialogComponent.prototype.getConfig = function () {
|
|
5500
|
-
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
5501
|
-
};
|
|
5502
|
-
AbstractDialogComponent.prototype.checkColor = function (rawColor) {
|
|
5503
|
-
if (this.isDestructive()) {
|
|
5504
|
-
return 'warn';
|
|
5505
|
-
}
|
|
5506
|
-
else {
|
|
5507
|
-
if (['primary', 'accent', 'warn'].includes(rawColor)) {
|
|
5508
|
-
return rawColor;
|
|
5509
|
-
}
|
|
5510
|
-
else {
|
|
5511
|
-
console.warn("Invalid color string " + rawColor);
|
|
5512
|
-
return undefined;
|
|
5513
|
-
}
|
|
5514
|
-
}
|
|
5515
|
-
};
|
|
5516
|
-
AbstractDialogComponent.prototype.isDestructive = function () {
|
|
5517
|
-
// @ts-ignore
|
|
5518
|
-
return ___namespace.isFunction(this.config['destructive']) && this.config.destructive();
|
|
5519
|
-
};
|
|
5520
|
-
return AbstractDialogComponent;
|
|
5521
|
-
}(Activity));
|
|
5522
|
-
AbstractDialogComponent.decorators = [
|
|
5523
|
-
{ type: i0.Component, args: [{
|
|
5524
|
-
template: ''
|
|
5525
|
-
},] }
|
|
5526
|
-
];
|
|
5527
|
-
AbstractDialogComponent.ctorParameters = function () { return [
|
|
5528
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [ALERT_CONFIG,] }] }
|
|
5529
|
-
]; };
|
|
5530
|
-
|
|
5531
|
-
var AbstractConfirmDialogComponent = /** @class */ (function (_super) {
|
|
5532
|
-
__extends(AbstractConfirmDialogComponent, _super);
|
|
5533
|
-
function AbstractConfirmDialogComponent(config) {
|
|
5534
|
-
var _this = _super.call(this, config) || this;
|
|
5535
|
-
_this.cancelFace = {
|
|
5536
|
-
text: function () { return config.cancel(); }
|
|
5537
|
-
};
|
|
5538
|
-
_this.cancelCommand = pectin.Command.create(function () {
|
|
5539
|
-
return _this.cancel();
|
|
5540
|
-
});
|
|
5541
|
-
return _this;
|
|
5542
|
-
}
|
|
5543
|
-
return AbstractConfirmDialogComponent;
|
|
5544
|
-
}(AbstractDialogComponent));
|
|
5545
|
-
AbstractConfirmDialogComponent.decorators = [
|
|
5546
|
-
{ type: i0.Component, args: [{
|
|
5547
|
-
template: ''
|
|
5548
|
-
},] }
|
|
5549
|
-
];
|
|
5550
|
-
AbstractConfirmDialogComponent.ctorParameters = function () { return [
|
|
5551
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [ALERT_CONFIG,] }] }
|
|
5552
|
-
]; };
|
|
5553
|
-
|
|
5554
5010
|
var AlertDialogComponent = /** @class */ (function (_super) {
|
|
5555
5011
|
__extends(AlertDialogComponent, _super);
|
|
5556
5012
|
function AlertDialogComponent(alert) {
|
|
5557
|
-
var _this = _super.call(this
|
|
5013
|
+
var _this = _super.call(this) || this;
|
|
5014
|
+
_this.alert = alert;
|
|
5558
5015
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5559
5016
|
_this.done();
|
|
5560
5017
|
});
|
|
5018
|
+
_this.confirmFace = {
|
|
5019
|
+
text: function () { return alert.ok(); },
|
|
5020
|
+
color: function () { return "primary"; },
|
|
5021
|
+
style: function () { return "raised"; }
|
|
5022
|
+
};
|
|
5561
5023
|
return _this;
|
|
5562
5024
|
}
|
|
5025
|
+
AlertDialogComponent.prototype.ngOnInit = function () {
|
|
5026
|
+
};
|
|
5563
5027
|
return AlertDialogComponent;
|
|
5564
|
-
}(
|
|
5028
|
+
}(Activity));
|
|
5565
5029
|
AlertDialogComponent.decorators = [
|
|
5566
5030
|
{ type: i0.Component, args: [{
|
|
5567
5031
|
selector: 'aup-alert-dialog',
|
|
5568
|
-
template: "<aup-activity-title *ngIf=\"title\"
|
|
5569
|
-
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}"]
|
|
5570
5034
|
},] }
|
|
5571
5035
|
];
|
|
5572
5036
|
AlertDialogComponent.ctorParameters = function () { return [
|
|
5573
|
-
{ type:
|
|
5037
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
5574
5038
|
]; };
|
|
5575
5039
|
|
|
5576
5040
|
var ConfirmThenDialogComponent = /** @class */ (function (_super) {
|
|
5577
5041
|
__extends(ConfirmThenDialogComponent, _super);
|
|
5578
5042
|
function ConfirmThenDialogComponent(config) {
|
|
5579
|
-
var _this = _super.call(this
|
|
5043
|
+
var _this = _super.call(this) || this;
|
|
5044
|
+
_this.config = config;
|
|
5045
|
+
pectin.assert.notNil(config);
|
|
5580
5046
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5581
|
-
_this.interactionContext.startActivity(config.activityType, config.data)
|
|
5047
|
+
_this.interactionContext.startActivity(_this.config.activityType, _this.config.data)
|
|
5582
5048
|
.then(function (result) { return _this.done(result); })
|
|
5583
5049
|
.catch(function (error) { return _this.cancel(error); });
|
|
5584
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
|
+
};
|
|
5585
5062
|
return _this;
|
|
5586
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
|
+
};
|
|
5587
5083
|
return ConfirmThenDialogComponent;
|
|
5588
|
-
}(
|
|
5084
|
+
}(Activity));
|
|
5589
5085
|
ConfirmThenDialogComponent.decorators = [
|
|
5590
5086
|
{ type: i0.Component, args: [{
|
|
5591
5087
|
selector: 'aup-confirmation-dialog',
|
|
5592
|
-
template: "<aup-activity-title *ngIf=\"title\" [color]=\"
|
|
5593
|
-
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}"]
|
|
5594
5090
|
},] }
|
|
5595
5091
|
];
|
|
5596
5092
|
ConfirmThenDialogComponent.ctorParameters = function () { return [
|
|
5597
5093
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
5598
5094
|
]; };
|
|
5599
5095
|
|
|
5600
|
-
var ConfirmThenExecuteDialogComponent = /** @class */ (function (_super) {
|
|
5601
|
-
__extends(ConfirmThenExecuteDialogComponent, _super);
|
|
5602
|
-
function ConfirmThenExecuteDialogComponent(data) {
|
|
5603
|
-
var _this = _super.call(this, data.confirm) || this;
|
|
5604
|
-
_this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5605
|
-
var result, e_1;
|
|
5606
|
-
return __generator(this, function (_a) {
|
|
5607
|
-
switch (_a.label) {
|
|
5608
|
-
case 0:
|
|
5609
|
-
_a.trys.push([0, 2, , 3]);
|
|
5610
|
-
return [4 /*yield*/, data.operation(this.interactionContext)];
|
|
5611
|
-
case 1:
|
|
5612
|
-
result = _a.sent();
|
|
5613
|
-
this.done(result);
|
|
5614
|
-
return [3 /*break*/, 3];
|
|
5615
|
-
case 2:
|
|
5616
|
-
e_1 = _a.sent();
|
|
5617
|
-
this.cancel(e_1);
|
|
5618
|
-
return [3 /*break*/, 3];
|
|
5619
|
-
case 3: return [2 /*return*/];
|
|
5620
|
-
}
|
|
5621
|
-
});
|
|
5622
|
-
}); });
|
|
5623
|
-
return _this;
|
|
5624
|
-
}
|
|
5625
|
-
return ConfirmThenExecuteDialogComponent;
|
|
5626
|
-
}(AbstractConfirmDialogComponent));
|
|
5627
|
-
ConfirmThenExecuteDialogComponent.decorators = [
|
|
5628
|
-
{ type: i0.Component, args: [{
|
|
5629
|
-
selector: 'aup-confirmation-execute-dialog',
|
|
5630
|
-
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",
|
|
5631
|
-
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"]
|
|
5632
|
-
},] }
|
|
5633
|
-
];
|
|
5634
|
-
ConfirmThenExecuteDialogComponent.ctorParameters = function () { return [
|
|
5635
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
5636
|
-
]; };
|
|
5637
|
-
|
|
5638
5096
|
var ConfirmationDialogComponent = /** @class */ (function (_super) {
|
|
5639
5097
|
__extends(ConfirmationDialogComponent, _super);
|
|
5640
5098
|
function ConfirmationDialogComponent(confirm) {
|
|
5641
|
-
var _this = _super.call(this
|
|
5099
|
+
var _this = _super.call(this) || this;
|
|
5642
5100
|
_this.confirm = confirm;
|
|
5101
|
+
pectin.assert.notNil(confirm);
|
|
5643
5102
|
_this.confirmCommand = pectin.Command.create(function () {
|
|
5644
5103
|
return _this.done();
|
|
5645
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
|
+
};
|
|
5646
5116
|
return _this;
|
|
5647
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
|
+
};
|
|
5648
5130
|
return ConfirmationDialogComponent;
|
|
5649
|
-
}(
|
|
5131
|
+
}(Activity));
|
|
5650
5132
|
ConfirmationDialogComponent.decorators = [
|
|
5651
5133
|
{ type: i0.Component, args: [{
|
|
5652
5134
|
selector: 'aup-confirmation-dialog',
|
|
5653
|
-
template: "<aup-activity-title *ngIf=\"title\" [color]=\"
|
|
5654
|
-
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}"]
|
|
5655
5137
|
},] }
|
|
5656
5138
|
];
|
|
5657
5139
|
ConfirmationDialogComponent.ctorParameters = function () { return [
|
|
@@ -5690,12 +5172,6 @@
|
|
|
5690
5172
|
data: data
|
|
5691
5173
|
}, true);
|
|
5692
5174
|
};
|
|
5693
|
-
AbstractInteractionContext.prototype.confirmThenExecute = function (confirm, operation) {
|
|
5694
|
-
return this.createAndLaunchActivity(ConfirmThenExecuteDialogComponent, {
|
|
5695
|
-
confirm: confirm,
|
|
5696
|
-
operation: operation
|
|
5697
|
-
}, true);
|
|
5698
|
-
};
|
|
5699
5175
|
return AbstractInteractionContext;
|
|
5700
5176
|
}());
|
|
5701
5177
|
|
|
@@ -5828,7 +5304,7 @@
|
|
|
5828
5304
|
{ type: i0.Component, args: [{
|
|
5829
5305
|
selector: 'aup-activity-outlet',
|
|
5830
5306
|
template: '',
|
|
5831
|
-
styles: [":host{display:block}
|
|
5307
|
+
styles: [":host{display:block}"]
|
|
5832
5308
|
},] }
|
|
5833
5309
|
];
|
|
5834
5310
|
ActivityOutletComponent.ctorParameters = function () { return [
|
|
@@ -5849,7 +5325,7 @@
|
|
|
5849
5325
|
_this.activityRefs = [];
|
|
5850
5326
|
_this.garbage = new pectin.GarbageCollector();
|
|
5851
5327
|
_this.inAnimation = new pectin.MutableValueModel(false);
|
|
5852
|
-
_this.busy =
|
|
5328
|
+
_this.busy = new pectin.DelegatingValueModel().withDefault(false);
|
|
5853
5329
|
_this.registerDisposable(_this.busy);
|
|
5854
5330
|
return _this;
|
|
5855
5331
|
}
|
|
@@ -5899,7 +5375,7 @@
|
|
|
5899
5375
|
if (!this.isActive()) {
|
|
5900
5376
|
typescriptUtilities.lang.illegalState('no activity in progress');
|
|
5901
5377
|
}
|
|
5902
|
-
return ___default[
|
|
5378
|
+
return ___default['default'].findLast(this.activityRefs, function (tab) { return !tab.isComplete(); });
|
|
5903
5379
|
};
|
|
5904
5380
|
/**
|
|
5905
5381
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
@@ -6042,8 +5518,8 @@
|
|
|
6042
5518
|
ActivityContainerComponent.decorators = [
|
|
6043
5519
|
{ type: i0.Component, args: [{
|
|
6044
5520
|
selector: 'aup-activity-container',
|
|
6045
|
-
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\"
|
|
6046
|
-
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}"]
|
|
6047
5523
|
},] }
|
|
6048
5524
|
];
|
|
6049
5525
|
ActivityContainerComponent.ctorParameters = function () { return []; };
|
|
@@ -6082,7 +5558,7 @@
|
|
|
6082
5558
|
}
|
|
6083
5559
|
Object.defineProperty(ActivityTitleComponent.prototype, "hasTransparentBackground", {
|
|
6084
5560
|
get: function () {
|
|
6085
|
-
return ___default[
|
|
5561
|
+
return ___default['default'].isNil(this._hasUserTransparentBackground) ? !this._color : this._hasUserTransparentBackground;
|
|
6086
5562
|
},
|
|
6087
5563
|
/**
|
|
6088
5564
|
* Adjusts layout to ensure the title and body are cleanly separated with even
|
|
@@ -6112,7 +5588,7 @@
|
|
|
6112
5588
|
{ type: i0.Component, args: [{
|
|
6113
5589
|
selector: 'aup-activity-title',
|
|
6114
5590
|
template: "<ng-content></ng-content>\n",
|
|
6115
|
-
styles: [":host{display:block}
|
|
5591
|
+
styles: [":host{display:block}"]
|
|
6116
5592
|
},] }
|
|
6117
5593
|
];
|
|
6118
5594
|
ActivityTitleComponent.propDecorators = {
|
|
@@ -6139,13 +5615,6 @@
|
|
|
6139
5615
|
});
|
|
6140
5616
|
return _this;
|
|
6141
5617
|
}
|
|
6142
|
-
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
|
|
6143
|
-
get: function () {
|
|
6144
|
-
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
6145
|
-
},
|
|
6146
|
-
enumerable: false,
|
|
6147
|
-
configurable: true
|
|
6148
|
-
});
|
|
6149
5618
|
AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
|
|
6150
5619
|
};
|
|
6151
5620
|
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
|
|
@@ -6323,7 +5792,7 @@
|
|
|
6323
5792
|
function ContextRegistry() {
|
|
6324
5793
|
var _this = _super.call(this) || this;
|
|
6325
5794
|
_this._interactions = new pectin.MutableListModel();
|
|
6326
|
-
_this._disabledDelegate =
|
|
5795
|
+
_this._disabledDelegate = new pectin.DelegatingValueModel().withDefault(false);
|
|
6327
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;
|
|
6328
5797
|
_this.active = chain(_this._interactions).isNotEmpty();
|
|
6329
5798
|
_this.interactionContextIds = chain(_this._interactions).pluck("identifier");
|
|
@@ -6387,23 +5856,16 @@
|
|
|
6387
5856
|
__extends(ModalActivityTriggerComponent, _super);
|
|
6388
5857
|
function ModalActivityTriggerComponent(interactionService) {
|
|
6389
5858
|
var _this = _super.call(this) || this;
|
|
6390
|
-
_this.
|
|
5859
|
+
_this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6391
5860
|
return _this;
|
|
6392
5861
|
}
|
|
6393
|
-
Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
|
|
6394
|
-
get: function () {
|
|
6395
|
-
return this._interactionContext;
|
|
6396
|
-
},
|
|
6397
|
-
enumerable: false,
|
|
6398
|
-
configurable: true
|
|
6399
|
-
});
|
|
6400
5862
|
return ModalActivityTriggerComponent;
|
|
6401
5863
|
}(AbstractActivityTriggerComponent));
|
|
6402
5864
|
ModalActivityTriggerComponent.decorators = [
|
|
6403
5865
|
{ type: i0.Component, args: [{
|
|
6404
5866
|
selector: 'aup-modal-activity-trigger',
|
|
6405
5867
|
template: "<aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n",
|
|
6406
|
-
styles: [":host{display:inline-block}
|
|
5868
|
+
styles: [":host{display:inline-block}"]
|
|
6407
5869
|
},] }
|
|
6408
5870
|
];
|
|
6409
5871
|
ModalActivityTriggerComponent.ctorParameters = function () { return [
|
|
@@ -6442,13 +5904,6 @@
|
|
|
6442
5904
|
enumerable: false,
|
|
6443
5905
|
configurable: true
|
|
6444
5906
|
});
|
|
6445
|
-
Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
|
|
6446
|
-
get: function () {
|
|
6447
|
-
return this.isActive();
|
|
6448
|
-
},
|
|
6449
|
-
enumerable: false,
|
|
6450
|
-
configurable: true
|
|
6451
|
-
});
|
|
6452
5907
|
InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
|
|
6453
5908
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
6454
5909
|
};
|
|
@@ -6477,9 +5932,6 @@
|
|
|
6477
5932
|
InPlaceInteractionContextComponent.prototype.confirmThen = function (confirm, activityType, data) {
|
|
6478
5933
|
return this.activityContainerComponent.confirmThen(confirm, activityType);
|
|
6479
5934
|
};
|
|
6480
|
-
InPlaceInteractionContextComponent.prototype.confirmThenExecute = function (confirm, operation) {
|
|
6481
|
-
return this.activityContainerComponent.confirmThenExecute(confirm, operation);
|
|
6482
|
-
};
|
|
6483
5935
|
InPlaceInteractionContextComponent.prototype.isActive = function () {
|
|
6484
5936
|
return this.activityContainerComponent.isActive();
|
|
6485
5937
|
};
|
|
@@ -6492,7 +5944,7 @@
|
|
|
6492
5944
|
{ type: i0.Component, args: [{
|
|
6493
5945
|
selector: 'aup-in-place-interaction-context',
|
|
6494
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",
|
|
6495
|
-
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}"]
|
|
6496
5948
|
},] }
|
|
6497
5949
|
];
|
|
6498
5950
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6501,96 +5953,9 @@
|
|
|
6501
5953
|
]; };
|
|
6502
5954
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
6503
5955
|
activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
|
|
6504
|
-
animateFirstActivity: [{ type: i0.Input }]
|
|
6505
|
-
active: [{ type: i0.HostBinding, args: ["class.active",] }]
|
|
5956
|
+
animateFirstActivity: [{ type: i0.Input }]
|
|
6506
5957
|
};
|
|
6507
5958
|
|
|
6508
|
-
/**
|
|
6509
|
-
*
|
|
6510
|
-
*/
|
|
6511
|
-
exports.AddCardActivityComponent = /** @class */ (function (_super) {
|
|
6512
|
-
__extends(AddCardActivityComponent, _super);
|
|
6513
|
-
function AddCardActivityComponent(interactionService) {
|
|
6514
|
-
var _this = _super.call(this) || this;
|
|
6515
|
-
_this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
|
|
6516
|
-
_this.renderAs = AddCardActivityComponent.RenderAs.CARD;
|
|
6517
|
-
_this.notCard = true;
|
|
6518
|
-
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
6519
|
-
_this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6520
|
-
_this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
|
|
6521
|
-
return _this;
|
|
6522
|
-
}
|
|
6523
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
|
|
6524
|
-
get: function () {
|
|
6525
|
-
return "render-as-" + this.renderAs;
|
|
6526
|
-
},
|
|
6527
|
-
enumerable: false,
|
|
6528
|
-
configurable: true
|
|
6529
|
-
});
|
|
6530
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
|
|
6531
|
-
get: function () {
|
|
6532
|
-
return this.interactionStyle + "-activity";
|
|
6533
|
-
},
|
|
6534
|
-
enumerable: false,
|
|
6535
|
-
configurable: true
|
|
6536
|
-
});
|
|
6537
|
-
AddCardActivityComponent.prototype.isRenderAsCard = function () {
|
|
6538
|
-
return this.renderAs === 'card';
|
|
6539
|
-
};
|
|
6540
|
-
AddCardActivityComponent.prototype.isRenderAsButton = function () {
|
|
6541
|
-
return this.renderAs === 'button';
|
|
6542
|
-
};
|
|
6543
|
-
AddCardActivityComponent.prototype.ngOnInit = function () {
|
|
6544
|
-
};
|
|
6545
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
|
|
6546
|
-
get: function () {
|
|
6547
|
-
switch (this.interactionStyle) {
|
|
6548
|
-
case 'inline':
|
|
6549
|
-
return this.inlineInteractionContext;
|
|
6550
|
-
default:
|
|
6551
|
-
return this.modalInteractionContext;
|
|
6552
|
-
}
|
|
6553
|
-
},
|
|
6554
|
-
enumerable: false,
|
|
6555
|
-
configurable: true
|
|
6556
|
-
});
|
|
6557
|
-
AddCardActivityComponent.prototype.isModal = function () {
|
|
6558
|
-
return this.interactionStyle === 'modal';
|
|
6559
|
-
};
|
|
6560
|
-
AddCardActivityComponent.prototype.isInline = function () {
|
|
6561
|
-
return this.interactionStyle === 'inline';
|
|
6562
|
-
};
|
|
6563
|
-
return AddCardActivityComponent;
|
|
6564
|
-
}(AbstractActivityTriggerComponent));
|
|
6565
|
-
exports.AddCardActivityComponent.decorators = [
|
|
6566
|
-
{ type: i0.Component, args: [{
|
|
6567
|
-
selector: 'aup-add-card-activity',
|
|
6568
|
-
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",
|
|
6569
|
-
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"]
|
|
6570
|
-
},] }
|
|
6571
|
-
];
|
|
6572
|
-
exports.AddCardActivityComponent.ctorParameters = function () { return [
|
|
6573
|
-
{ type: exports.InteractionService }
|
|
6574
|
-
]; };
|
|
6575
|
-
exports.AddCardActivityComponent.propDecorators = {
|
|
6576
|
-
inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
6577
|
-
interactionStyle: [{ type: i0.Input }],
|
|
6578
|
-
renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
|
|
6579
|
-
notCard: [{ type: i0.HostBinding, args: ['class.not-card',] }],
|
|
6580
|
-
renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
6581
|
-
activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6582
|
-
};
|
|
6583
|
-
(function (AddCardActivityComponent) {
|
|
6584
|
-
AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
|
|
6585
|
-
MODAL: 'modal',
|
|
6586
|
-
INLINE: 'inline'
|
|
6587
|
-
});
|
|
6588
|
-
AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
|
|
6589
|
-
CARD: 'card',
|
|
6590
|
-
BUTTON: 'button'
|
|
6591
|
-
});
|
|
6592
|
-
})(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
|
|
6593
|
-
|
|
6594
5959
|
/**
|
|
6595
5960
|
* Css Vars.
|
|
6596
5961
|
* --link-color
|
|
@@ -6636,7 +6001,7 @@
|
|
|
6636
6001
|
{ type: i0.Component, args: [{
|
|
6637
6002
|
selector: 'aup-add-item-interaction-context',
|
|
6638
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",
|
|
6639
|
-
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}"]
|
|
6640
6005
|
},] }
|
|
6641
6006
|
];
|
|
6642
6007
|
AddItemInteractionContextComponent.ctorParameters = function () { return []; };
|
|
@@ -6660,25 +6025,18 @@
|
|
|
6660
6025
|
function InlineActivityTriggerComponent() {
|
|
6661
6026
|
return _super.call(this) || this;
|
|
6662
6027
|
}
|
|
6663
|
-
Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
|
|
6664
|
-
get: function () {
|
|
6665
|
-
return this._interactionContext;
|
|
6666
|
-
},
|
|
6667
|
-
enumerable: false,
|
|
6668
|
-
configurable: true
|
|
6669
|
-
});
|
|
6670
6028
|
return InlineActivityTriggerComponent;
|
|
6671
6029
|
}(AbstractActivityTriggerComponent));
|
|
6672
6030
|
InlineActivityTriggerComponent.decorators = [
|
|
6673
6031
|
{ type: i0.Component, args: [{
|
|
6674
6032
|
selector: 'aup-inline-activity-trigger',
|
|
6675
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",
|
|
6676
|
-
styles: [":host{display:inline-block}
|
|
6034
|
+
styles: [":host{display:inline-block}"]
|
|
6677
6035
|
},] }
|
|
6678
6036
|
];
|
|
6679
6037
|
InlineActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6680
6038
|
InlineActivityTriggerComponent.propDecorators = {
|
|
6681
|
-
|
|
6039
|
+
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
6682
6040
|
};
|
|
6683
6041
|
|
|
6684
6042
|
/**
|
|
@@ -6716,7 +6074,6 @@
|
|
|
6716
6074
|
var self = this;
|
|
6717
6075
|
var overlayRef = this._overlay.create({
|
|
6718
6076
|
hasBackdrop: false,
|
|
6719
|
-
disposeOnNavigation: true,
|
|
6720
6077
|
panelClass: 'aup-popup-interaction-panel',
|
|
6721
6078
|
positionStrategy: this._overlay.position()
|
|
6722
6079
|
.flexibleConnectedTo(this._element)
|
|
@@ -6772,7 +6129,7 @@
|
|
|
6772
6129
|
{ type: i0.Component, args: [{
|
|
6773
6130
|
selector: 'aup-popup-interaction-context',
|
|
6774
6131
|
template: "<ng-content></ng-content>\n",
|
|
6775
|
-
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)}"]
|
|
6776
6133
|
},] }
|
|
6777
6134
|
];
|
|
6778
6135
|
PopupInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6828,7 +6185,7 @@
|
|
|
6828
6185
|
});
|
|
6829
6186
|
};
|
|
6830
6187
|
InteractionContextTriggerFor.prototype.prepareActivityData = function () {
|
|
6831
|
-
return ___default[
|
|
6188
|
+
return ___default['default'].isFunction(this.activityDataFactory()) ? this.activityDataFactory() : this.activityData;
|
|
6832
6189
|
};
|
|
6833
6190
|
return InteractionContextTriggerFor;
|
|
6834
6191
|
}(pectin.GarbageCollector));
|
|
@@ -6852,114 +6209,45 @@
|
|
|
6852
6209
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
6853
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)
|
|
6854
6211
|
// @dynamic
|
|
6855
|
-
|
|
6856
|
-
__extends(
|
|
6857
|
-
function
|
|
6858
|
-
var _this = this;
|
|
6859
|
-
var _a, _b;
|
|
6860
|
-
_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;
|
|
6861
6216
|
_this.data = data;
|
|
6862
6217
|
_this.class = 'aup-input-activity';
|
|
6863
6218
|
var form = new pectin.DirtyTrackingForm();
|
|
6864
6219
|
_this.valueModel = form.valueModel(_this.data.initialValue);
|
|
6865
6220
|
_this.valueModel.validateUsing(data.validators || []);
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
icon: function () { return 'mat:clear'; }
|
|
6872
|
-
};
|
|
6873
|
-
_this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6874
|
-
var self_1, allGood_1, result, e_1;
|
|
6875
|
-
return __generator(this, function (_c) {
|
|
6876
|
-
switch (_c.label) {
|
|
6877
|
-
case 0:
|
|
6878
|
-
if (!this.valueModel.validate()) return [3 /*break*/, 6];
|
|
6879
|
-
if (!data.save) return [3 /*break*/, 5];
|
|
6880
|
-
self_1 = this;
|
|
6881
|
-
_c.label = 1;
|
|
6882
|
-
case 1:
|
|
6883
|
-
_c.trys.push([1, 3, , 4]);
|
|
6884
|
-
allGood_1 = true;
|
|
6885
|
-
return [4 /*yield*/, data.save(this.valueModel.value, {
|
|
6886
|
-
injectError: function (error) {
|
|
6887
|
-
allGood_1 = false;
|
|
6888
|
-
self_1.valueModel.injectErrors([error]);
|
|
6889
|
-
}
|
|
6890
|
-
})];
|
|
6891
|
-
case 2:
|
|
6892
|
-
result = _c.sent();
|
|
6893
|
-
if (allGood_1) {
|
|
6894
|
-
this.done(this.valueModel.value);
|
|
6895
|
-
}
|
|
6896
|
-
return [3 /*break*/, 4];
|
|
6897
|
-
case 3:
|
|
6898
|
-
e_1 = _c.sent();
|
|
6899
|
-
console.error(e_1);
|
|
6900
|
-
return [3 /*break*/, 4];
|
|
6901
|
-
case 4: return [3 /*break*/, 6];
|
|
6902
|
-
case 5:
|
|
6903
|
-
this.done(this.valueModel.value);
|
|
6904
|
-
_c.label = 6;
|
|
6905
|
-
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(); });
|
|
6906
6226
|
}
|
|
6907
|
-
|
|
6908
|
-
|
|
6227
|
+
else {
|
|
6228
|
+
_this.done(_this.valueModel.value);
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
});
|
|
6909
6232
|
_this.cancelCommand = pectin.Command.create(function () {
|
|
6910
6233
|
_this.cancel();
|
|
6911
6234
|
});
|
|
6912
|
-
_this.busyWhile(_this.confirmCommand.busy);
|
|
6913
6235
|
return _this;
|
|
6914
6236
|
}
|
|
6915
|
-
|
|
6916
|
-
get: function () {
|
|
6917
|
-
var _a, _b;
|
|
6918
|
-
return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
|
|
6919
|
-
},
|
|
6920
|
-
enumerable: false,
|
|
6921
|
-
configurable: true
|
|
6922
|
-
});
|
|
6923
|
-
InputActivity.prototype.onActivityReady = function () {
|
|
6237
|
+
AbstractInputActivity.prototype.onActivityReady = function () {
|
|
6924
6238
|
this.valueModel.focusContext.requestFocus();
|
|
6925
6239
|
};
|
|
6926
|
-
|
|
6927
|
-
get: function () {
|
|
6928
|
-
var _a;
|
|
6929
|
-
return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
|
|
6930
|
-
},
|
|
6931
|
-
enumerable: false,
|
|
6932
|
-
configurable: true
|
|
6933
|
-
});
|
|
6934
|
-
InputActivity.prototype.onEscape = function () {
|
|
6935
|
-
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
|
|
6936
|
-
this.cancelCommand.execute();
|
|
6937
|
-
}
|
|
6938
|
-
};
|
|
6939
|
-
InputActivity.prototype.shouldCancelOnEscape = function () {
|
|
6940
|
-
return ___namespace.isNil(this.data.cancelOnEscape) // we default to true..
|
|
6941
|
-
|| this.data.cancelOnEscape;
|
|
6942
|
-
};
|
|
6943
|
-
return InputActivity;
|
|
6240
|
+
return AbstractInputActivity;
|
|
6944
6241
|
}(Activity));
|
|
6945
|
-
|
|
6242
|
+
AbstractInputActivity.decorators = [
|
|
6946
6243
|
{ type: i0.Component, args: [{ template: "" },] }
|
|
6947
6244
|
];
|
|
6948
|
-
|
|
6245
|
+
AbstractInputActivity.ctorParameters = function () { return [
|
|
6949
6246
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
6950
6247
|
]; };
|
|
6951
|
-
|
|
6952
|
-
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6953
|
-
layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
|
|
6954
|
-
additionalCssClassName: [{ type: i0.HostBinding, args: ["class",] }],
|
|
6955
|
-
onEscape: [{ type: i0.HostListener, args: ['keydown.escape',] }]
|
|
6248
|
+
AbstractInputActivity.propDecorators = {
|
|
6249
|
+
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6956
6250
|
};
|
|
6957
|
-
(function (InputActivity) {
|
|
6958
|
-
InputActivity.Layout = typescriptStringEnums.Enum({
|
|
6959
|
-
INLINE: 'inline',
|
|
6960
|
-
BLOCK: 'block'
|
|
6961
|
-
});
|
|
6962
|
-
})(exports.InputActivity || (exports.InputActivity = {}));
|
|
6963
6251
|
|
|
6964
6252
|
var StringInputActivity = /** @class */ (function (_super) {
|
|
6965
6253
|
__extends(StringInputActivity, _super);
|
|
@@ -6967,11 +6255,11 @@
|
|
|
6967
6255
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6968
6256
|
}
|
|
6969
6257
|
return StringInputActivity;
|
|
6970
|
-
}(
|
|
6258
|
+
}(AbstractInputActivity));
|
|
6971
6259
|
StringInputActivity.decorators = [
|
|
6972
6260
|
{ type: i0.Component, args: [{
|
|
6973
6261
|
selector: 'aup-string-input-activity',
|
|
6974
|
-
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 "
|
|
6975
6263
|
},] }
|
|
6976
6264
|
];
|
|
6977
6265
|
|
|
@@ -7001,11 +6289,11 @@
|
|
|
7001
6289
|
configurable: true
|
|
7002
6290
|
});
|
|
7003
6291
|
return SelectInputActivity;
|
|
7004
|
-
}(
|
|
6292
|
+
}(AbstractInputActivity));
|
|
7005
6293
|
SelectInputActivity.decorators = [
|
|
7006
6294
|
{ type: i0.Component, args: [{
|
|
7007
6295
|
selector: 'aup-select-input-activity',
|
|
7008
|
-
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 "
|
|
7009
6297
|
},] }
|
|
7010
6298
|
];
|
|
7011
6299
|
|
|
@@ -7112,6 +6400,36 @@
|
|
|
7112
6400
|
return TableModel;
|
|
7113
6401
|
}(AbstractTableModel));
|
|
7114
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
|
+
|
|
7115
6433
|
/**
|
|
7116
6434
|
* @file Automatically generated by barrelsby.
|
|
7117
6435
|
*/
|
|
@@ -7124,261 +6442,22 @@
|
|
|
7124
6442
|
_this.anchorY = 'bottom';
|
|
7125
6443
|
return _this;
|
|
7126
6444
|
}
|
|
7127
|
-
Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
|
|
7128
|
-
get: function () {
|
|
7129
|
-
return this._interactionContext;
|
|
7130
|
-
},
|
|
7131
|
-
enumerable: false,
|
|
7132
|
-
configurable: true
|
|
7133
|
-
});
|
|
7134
6445
|
return PopupActivityTriggerComponent;
|
|
7135
6446
|
}(AbstractActivityTriggerComponent));
|
|
7136
6447
|
PopupActivityTriggerComponent.decorators = [
|
|
7137
6448
|
{ type: i0.Component, args: [{
|
|
7138
6449
|
selector: 'aup-popup-activity-trigger',
|
|
7139
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",
|
|
7140
|
-
styles: [":host{display:inline-block}
|
|
6451
|
+
styles: [":host{display:inline-block}"]
|
|
7141
6452
|
},] }
|
|
7142
6453
|
];
|
|
7143
6454
|
PopupActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
7144
6455
|
PopupActivityTriggerComponent.propDecorators = {
|
|
7145
6456
|
anchorX: [{ type: i0.Input }],
|
|
7146
6457
|
anchorY: [{ type: i0.Input }],
|
|
7147
|
-
|
|
6458
|
+
interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
7148
6459
|
};
|
|
7149
6460
|
|
|
7150
|
-
exports.InlineEditorModel = /** @class */ (function (_super) {
|
|
7151
|
-
__extends(InlineEditorModel, _super);
|
|
7152
|
-
function InlineEditorModel(valueModel, saveCallback) {
|
|
7153
|
-
var _this = _super.call(this) || this;
|
|
7154
|
-
_this.valueModel = valueModel;
|
|
7155
|
-
_this.saveCallback = saveCallback;
|
|
7156
|
-
_this.editing = new pectin.MutableValueModel(false);
|
|
7157
|
-
_this._validators = new pectin.MutableListModel();
|
|
7158
|
-
_this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
|
|
7159
|
-
pectin.assert.notNil(valueModel);
|
|
7160
|
-
var when = pectin.Dsl.disposeWith(_this).when;
|
|
7161
|
-
when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
7162
|
-
return _this;
|
|
7163
|
-
}
|
|
7164
|
-
Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
|
|
7165
|
-
get: function () {
|
|
7166
|
-
return this._editingEnabled.readonly;
|
|
7167
|
-
},
|
|
7168
|
-
enumerable: false,
|
|
7169
|
-
configurable: true
|
|
7170
|
-
});
|
|
7171
|
-
InlineEditorModel.prototype.disableWhile = function (condition) {
|
|
7172
|
-
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
7173
|
-
this.enableWhile(chain(condition).isFalsey());
|
|
7174
|
-
return this;
|
|
7175
|
-
};
|
|
7176
|
-
InlineEditorModel.prototype.enableWhile = function (condition) {
|
|
7177
|
-
this._editingEnabled.setDelegate(condition);
|
|
7178
|
-
return this;
|
|
7179
|
-
};
|
|
7180
|
-
Object.defineProperty(InlineEditorModel.prototype, "validators", {
|
|
7181
|
-
get: function () {
|
|
7182
|
-
return this._validators.readonly;
|
|
7183
|
-
},
|
|
7184
|
-
enumerable: false,
|
|
7185
|
-
configurable: true
|
|
7186
|
-
});
|
|
7187
|
-
InlineEditorModel.prototype.validateUsing = function (validator) {
|
|
7188
|
-
this._validators.push(validator);
|
|
7189
|
-
return this;
|
|
7190
|
-
};
|
|
7191
|
-
InlineEditorModel.prototype.isEditing = function () {
|
|
7192
|
-
return this.editing.value;
|
|
7193
|
-
};
|
|
7194
|
-
InlineEditorModel.prototype.cancelEdit = function () {
|
|
7195
|
-
this.editing.value = false;
|
|
7196
|
-
};
|
|
7197
|
-
InlineEditorModel.prototype.startEditing = function () {
|
|
7198
|
-
this.editing.value = true;
|
|
7199
|
-
};
|
|
7200
|
-
return InlineEditorModel;
|
|
7201
|
-
}(pectin.GarbageCollector));
|
|
7202
|
-
(function (InlineEditorModel) {
|
|
7203
|
-
function create(valueModel, options) {
|
|
7204
|
-
return new InlineEditorModel(valueModel, options.save);
|
|
7205
|
-
}
|
|
7206
|
-
InlineEditorModel.create = create;
|
|
7207
|
-
})(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
|
|
7208
|
-
pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
|
|
7209
|
-
|
|
7210
|
-
/**
|
|
7211
|
-
* @example
|
|
7212
|
-
* const source: ValueModel<string> = ...;
|
|
7213
|
-
* const model = InlineEditorModel.create(source, {
|
|
7214
|
-
* save(updated:string, context: EditContext) => {
|
|
7215
|
-
* try {
|
|
7216
|
-
* try and save the thing...
|
|
7217
|
-
* } catch(error) {
|
|
7218
|
-
* context.injectError(error)
|
|
7219
|
-
* }
|
|
7220
|
-
* }).validateUsing(Validator.present("We'll need a value");
|
|
7221
|
-
*
|
|
7222
|
-
* # in the view
|
|
7223
|
-
* <aup-inline-string-editor
|
|
7224
|
-
* label="My field"
|
|
7225
|
-
* placeHolder="I'm ready for a string..."
|
|
7226
|
-
* [editorModel]="model"></aup-inline-string-editor>
|
|
7227
|
-
*/
|
|
7228
|
-
exports.InlineStringEditorComponent = /** @class */ (function (_super) {
|
|
7229
|
-
__extends(InlineStringEditorComponent, _super);
|
|
7230
|
-
function InlineStringEditorComponent(interactionService) {
|
|
7231
|
-
var _this = _super.call(this) || this;
|
|
7232
|
-
_this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
7233
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
7234
|
-
var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
7235
|
-
var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
|
|
7236
|
-
return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
|
|
7237
|
-
}, { allowNil: true });
|
|
7238
|
-
_this.editFaceModel = resolvedFacesModel.pluck('edit');
|
|
7239
|
-
_this.saveFace = resolvedFacesModel.pluck('save');
|
|
7240
|
-
_this.cancelFace = resolvedFacesModel.pluck('cancel');
|
|
7241
|
-
var self = _this;
|
|
7242
|
-
_this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
7243
|
-
var e_1;
|
|
7244
|
-
return __generator(this, function (_a) {
|
|
7245
|
-
switch (_a.label) {
|
|
7246
|
-
case 0:
|
|
7247
|
-
this.editorModel.editing.value = true;
|
|
7248
|
-
_a.label = 1;
|
|
7249
|
-
case 1:
|
|
7250
|
-
_a.trys.push([1, 3, 4, 5]);
|
|
7251
|
-
return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
|
|
7252
|
-
case 2:
|
|
7253
|
-
_a.sent();
|
|
7254
|
-
return [3 /*break*/, 5];
|
|
7255
|
-
case 3:
|
|
7256
|
-
e_1 = _a.sent();
|
|
7257
|
-
return [3 /*break*/, 5];
|
|
7258
|
-
case 4:
|
|
7259
|
-
this.editorModel.editing.value = false;
|
|
7260
|
-
return [7 /*endfinally*/];
|
|
7261
|
-
case 5: return [2 /*return*/];
|
|
7262
|
-
}
|
|
7263
|
-
});
|
|
7264
|
-
}); }).enableWhile(_this.editingEnabled);
|
|
7265
|
-
_this.onDispose(function () { return _this.cancelEdit(); });
|
|
7266
|
-
return _this;
|
|
7267
|
-
}
|
|
7268
|
-
InlineStringEditorComponent.prototype.ngOnInit = function () {
|
|
7269
|
-
var _this = this;
|
|
7270
|
-
// our editor model is a one time binding without delegates so we can only
|
|
7271
|
-
// use it once we've been initialised
|
|
7272
|
-
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
7273
|
-
if (!this.editorModel) {
|
|
7274
|
-
typescriptUtilities.lang.illegalState('editorModel is required');
|
|
7275
|
-
}
|
|
7276
|
-
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
7277
|
-
when(this.editorModel.editing).becomesTruthy(function () {
|
|
7278
|
-
_this.editCommand.execute();
|
|
7279
|
-
}, { asLongAs: this.editCommand.enabled });
|
|
7280
|
-
when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
7281
|
-
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
7282
|
-
// deviceDescription.isNil()
|
|
7283
|
-
).areTruthy();
|
|
7284
|
-
this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
|
|
7285
|
-
return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
|
|
7286
|
-
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
7287
|
-
};
|
|
7288
|
-
InlineStringEditorComponent.prototype.createInputActivityData = function () {
|
|
7289
|
-
var self = this;
|
|
7290
|
-
return {
|
|
7291
|
-
initialValue: self.editorModel.valueModel.value,
|
|
7292
|
-
confirmFace: self.saveFace.value,
|
|
7293
|
-
cancelFace: self.cancelFace.value,
|
|
7294
|
-
placeholder: self.placeHolderModel.value,
|
|
7295
|
-
label: self.label,
|
|
7296
|
-
layout: exports.InputActivity.Layout.INLINE,
|
|
7297
|
-
validators: self.editorModel.validators.value,
|
|
7298
|
-
save: function (value, inputContext) {
|
|
7299
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7300
|
-
return __generator(this, function (_a) {
|
|
7301
|
-
switch (_a.label) {
|
|
7302
|
-
case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
|
|
7303
|
-
case 1:
|
|
7304
|
-
_a.sent();
|
|
7305
|
-
return [2 /*return*/];
|
|
7306
|
-
}
|
|
7307
|
-
});
|
|
7308
|
-
});
|
|
7309
|
-
}
|
|
7310
|
-
};
|
|
7311
|
-
};
|
|
7312
|
-
InlineStringEditorComponent.prototype.cancelEdit = function () {
|
|
7313
|
-
if (this.isEditing()) {
|
|
7314
|
-
this.interactionContext.cancelActiveActivity();
|
|
7315
|
-
}
|
|
7316
|
-
};
|
|
7317
|
-
InlineStringEditorComponent.prototype.startEdit = function () {
|
|
7318
|
-
if (!this.isEditing() && this.editCommand.enabled.value) {
|
|
7319
|
-
this.editCommand.execute();
|
|
7320
|
-
}
|
|
7321
|
-
};
|
|
7322
|
-
InlineStringEditorComponent.prototype.isEditing = function () {
|
|
7323
|
-
return this.interactionContext.isActive();
|
|
7324
|
-
};
|
|
7325
|
-
InlineStringEditorComponent.prototype.isEmpty = function () {
|
|
7326
|
-
return this.empty.value;
|
|
7327
|
-
};
|
|
7328
|
-
return InlineStringEditorComponent;
|
|
7329
|
-
}(DisposableComponent));
|
|
7330
|
-
exports.InlineStringEditorComponent.decorators = [
|
|
7331
|
-
{ type: i0.Component, args: [{
|
|
7332
|
-
selector: 'aup-inline-string-editor',
|
|
7333
|
-
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"
|
|
7334
|
-
},] }
|
|
7335
|
-
];
|
|
7336
|
-
exports.InlineStringEditorComponent.ctorParameters = function () { return [
|
|
7337
|
-
{ type: exports.InteractionService }
|
|
7338
|
-
]; };
|
|
7339
|
-
exports.InlineStringEditorComponent.propDecorators = {
|
|
7340
|
-
editorModel: [{ type: i0.Input }],
|
|
7341
|
-
facesModel: [{ type: i0.Input }],
|
|
7342
|
-
faces: [{ type: i0.Input }],
|
|
7343
|
-
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
|
|
7344
|
-
label: [{ type: i0.Input }],
|
|
7345
|
-
placeHolder: [{ type: i0.Input }],
|
|
7346
|
-
placeHolderModel: [{ type: i0.Input }]
|
|
7347
|
-
};
|
|
7348
|
-
__decorate([
|
|
7349
|
-
pectin.TrackExternal(),
|
|
7350
|
-
__metadata("design:type", exports.InlineEditorModel)
|
|
7351
|
-
], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
|
|
7352
|
-
__decorate([
|
|
7353
|
-
pectin.TrackExternal(),
|
|
7354
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7355
|
-
], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
|
|
7356
|
-
__decorate([
|
|
7357
|
-
pectin.StoreInValueModel('facesModel'),
|
|
7358
|
-
__metadata("design:type", Object)
|
|
7359
|
-
], exports.InlineStringEditorComponent.prototype, "faces", void 0);
|
|
7360
|
-
__decorate([
|
|
7361
|
-
pectin.StoreInValueModel('placeHolderModel'),
|
|
7362
|
-
__metadata("design:type", String)
|
|
7363
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
|
|
7364
|
-
__decorate([
|
|
7365
|
-
pectin.TrackExternal(),
|
|
7366
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7367
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
7368
|
-
(function (InlineStringEditorComponent) {
|
|
7369
|
-
InlineStringEditorComponent.DEFAULT_FACES = {
|
|
7370
|
-
edit: {
|
|
7371
|
-
icon: function () { return 'mat:edit'; }
|
|
7372
|
-
},
|
|
7373
|
-
save: {
|
|
7374
|
-
icon: function () { return 'mat:check'; }
|
|
7375
|
-
},
|
|
7376
|
-
cancel: {
|
|
7377
|
-
icon: function () { return 'mat:clear'; }
|
|
7378
|
-
}
|
|
7379
|
-
};
|
|
7380
|
-
})(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
|
|
7381
|
-
|
|
7382
6461
|
var InteractionModule = /** @class */ (function () {
|
|
7383
6462
|
function InteractionModule() {
|
|
7384
6463
|
}
|
|
@@ -7397,39 +6476,30 @@
|
|
|
7397
6476
|
DirectivesModule,
|
|
7398
6477
|
flexLayout.FlexModule,
|
|
7399
6478
|
flexLayout.GridModule,
|
|
7400
|
-
ComponentsModule
|
|
7401
|
-
forms.FormsModule,
|
|
7402
|
-
input.MatInputModule,
|
|
7403
|
-
formField.MatFormFieldModule,
|
|
7404
|
-
a11y.A11yModule
|
|
6479
|
+
ComponentsModule
|
|
7405
6480
|
],
|
|
7406
6481
|
declarations: [
|
|
7407
6482
|
ActivityContainerComponent,
|
|
7408
6483
|
ConfirmationDialogComponent,
|
|
7409
6484
|
ConfirmThenDialogComponent,
|
|
7410
|
-
ConfirmThenExecuteDialogComponent,
|
|
7411
6485
|
AlertDialogComponent,
|
|
7412
6486
|
ActivityOutletComponent,
|
|
7413
6487
|
InPlaceInteractionContextComponent,
|
|
7414
6488
|
AddItemInteractionContextComponent,
|
|
7415
|
-
|
|
6489
|
+
ActivityActionsComponent,
|
|
7416
6490
|
PopupInteractionContextComponent,
|
|
7417
6491
|
StringInputActivity,
|
|
7418
6492
|
SelectInputActivity,
|
|
7419
|
-
|
|
6493
|
+
AbstractInputActivity,
|
|
7420
6494
|
InteractionContextTriggerFor,
|
|
7421
6495
|
Activity,
|
|
7422
6496
|
ActivityTitleComponent,
|
|
7423
6497
|
ActivityBodyComponent,
|
|
7424
|
-
|
|
6498
|
+
ActivityActionsComponent,
|
|
7425
6499
|
AbstractActivityTriggerComponent,
|
|
7426
6500
|
PopupActivityTriggerComponent,
|
|
7427
6501
|
InlineActivityTriggerComponent,
|
|
7428
|
-
ModalActivityTriggerComponent
|
|
7429
|
-
exports.AddCardActivityComponent,
|
|
7430
|
-
exports.InlineStringEditorComponent,
|
|
7431
|
-
AbstractDialogComponent,
|
|
7432
|
-
AbstractConfirmDialogComponent,
|
|
6502
|
+
ModalActivityTriggerComponent
|
|
7433
6503
|
],
|
|
7434
6504
|
exports: [
|
|
7435
6505
|
ActivityContainerComponent,
|
|
@@ -7437,7 +6507,7 @@
|
|
|
7437
6507
|
ActivityTitleComponent,
|
|
7438
6508
|
InPlaceInteractionContextComponent,
|
|
7439
6509
|
AddItemInteractionContextComponent,
|
|
7440
|
-
|
|
6510
|
+
ActivityActionsComponent,
|
|
7441
6511
|
PopupInteractionContextComponent,
|
|
7442
6512
|
InteractionContextTriggerFor,
|
|
7443
6513
|
StringInputActivity,
|
|
@@ -7445,15 +6515,13 @@
|
|
|
7445
6515
|
ActivityBodyComponent,
|
|
7446
6516
|
PopupActivityTriggerComponent,
|
|
7447
6517
|
InlineActivityTriggerComponent,
|
|
7448
|
-
ModalActivityTriggerComponent
|
|
7449
|
-
exports.AddCardActivityComponent,
|
|
7450
|
-
exports.InlineStringEditorComponent,
|
|
6518
|
+
ModalActivityTriggerComponent
|
|
7451
6519
|
],
|
|
7452
6520
|
entryComponents: [
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
6521
|
+
ActivityContainerComponent,
|
|
6522
|
+
ConfirmationDialogComponent,
|
|
6523
|
+
ConfirmThenDialogComponent,
|
|
6524
|
+
AlertDialogComponent
|
|
7457
6525
|
],
|
|
7458
6526
|
providers: [
|
|
7459
6527
|
exports.InteractionService
|
|
@@ -7532,7 +6600,7 @@
|
|
|
7532
6600
|
return _this;
|
|
7533
6601
|
}
|
|
7534
6602
|
RouteId.prototype.isEmptyValue = function (value) {
|
|
7535
|
-
return ___default[
|
|
6603
|
+
return ___default['default'].isNil(value);
|
|
7536
6604
|
};
|
|
7537
6605
|
RouteId.prototype.hasChanged = function (a, b) {
|
|
7538
6606
|
return a !== b;
|
|
@@ -7550,7 +6618,7 @@
|
|
|
7550
6618
|
return _this;
|
|
7551
6619
|
}
|
|
7552
6620
|
ValueParameter.prototype.isEmptyValue = function (value) {
|
|
7553
|
-
return ___default[
|
|
6621
|
+
return ___default['default'].isNil(value);
|
|
7554
6622
|
};
|
|
7555
6623
|
ValueParameter.prototype.hasChanged = function (a, b) {
|
|
7556
6624
|
return a !== b;
|
|
@@ -7568,10 +6636,10 @@
|
|
|
7568
6636
|
return _this;
|
|
7569
6637
|
}
|
|
7570
6638
|
ArrayParameter.prototype.isEmptyValue = function (value) {
|
|
7571
|
-
return ___default[
|
|
6639
|
+
return ___default['default'].isNil(value) || value.length < 1;
|
|
7572
6640
|
};
|
|
7573
6641
|
ArrayParameter.prototype.hasChanged = function (a, b) {
|
|
7574
|
-
return !___default[
|
|
6642
|
+
return !___default['default'].isEqual(a, b);
|
|
7575
6643
|
};
|
|
7576
6644
|
return ArrayParameter;
|
|
7577
6645
|
}(ParameterDefinition));
|
|
@@ -7620,13 +6688,13 @@
|
|
|
7620
6688
|
};
|
|
7621
6689
|
PlaceDefinition.prototype.getPlaceData = function (key, defaultValue) {
|
|
7622
6690
|
return this.data ?
|
|
7623
|
-
___default[
|
|
6691
|
+
___default['default'].isNil(this.data[key]) ? defaultValue : this.data[key] :
|
|
7624
6692
|
defaultValue;
|
|
7625
6693
|
};
|
|
7626
6694
|
PlaceDefinition.prototype.searchPlaceData = function (keys, defaultValue) {
|
|
7627
6695
|
var _this = this;
|
|
7628
6696
|
if (this.data) {
|
|
7629
|
-
var found = keys.find(function (key) { return !___default[
|
|
6697
|
+
var found = keys.find(function (key) { return !___default['default'].isNil(_this.data[key]); });
|
|
7630
6698
|
return found ? this.data[found] : defaultValue;
|
|
7631
6699
|
}
|
|
7632
6700
|
else {
|
|
@@ -7696,7 +6764,7 @@
|
|
|
7696
6764
|
// because our id routes redirect if the id isn't present we always have a id
|
|
7697
6765
|
// parameter in our params. This will bugger our remember and defaultvalue sanitisation
|
|
7698
6766
|
// as it'll see that the id is present (event thought its a blank string).
|
|
7699
|
-
if (!___default[
|
|
6767
|
+
if (!___default['default'].isEmpty(value)) {
|
|
7700
6768
|
result[def.name] = def.urlFormat.parse(value);
|
|
7701
6769
|
}
|
|
7702
6770
|
}
|
|
@@ -7759,28 +6827,17 @@
|
|
|
7759
6827
|
_this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
|
|
7760
6828
|
return _this;
|
|
7761
6829
|
}
|
|
6830
|
+
// @Trace()
|
|
7762
6831
|
PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
|
|
7763
6832
|
var _this = this;
|
|
7764
6833
|
pectin.assert.isNil(this.visitModel.value);
|
|
7765
6834
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
7766
6835
|
this.visitModel.value = visit;
|
|
7767
6836
|
pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
7768
|
-
|
|
7769
|
-
// route in one go at the end.
|
|
7770
|
-
this.placeDefinition
|
|
7771
|
-
.getVisitParameterDefs()
|
|
7772
|
-
.forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
|
|
6837
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
7773
6838
|
when(this.visitModel).changes(function (current, previous) {
|
|
7774
6839
|
notifyVisitChanged(current, previous);
|
|
7775
6840
|
}, { unless: this._inVisitUpdate });
|
|
7776
|
-
// TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
|
|
7777
|
-
// now we're not doing it as it's a fair bit of effort and will only affect people if they're
|
|
7778
|
-
// cutting and pasting urls to each other.
|
|
7779
|
-
// // the binding process can update the visit (e.g. if a selection model has already selected during
|
|
7780
|
-
// // component construction) and there was no value specified in the route
|
|
7781
|
-
// if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
|
|
7782
|
-
// notifyVisitChanged(this.visitModel.value, visit)
|
|
7783
|
-
// }
|
|
7784
6841
|
};
|
|
7785
6842
|
PlaceComponent.prototype.updateVisit = function (visit) {
|
|
7786
6843
|
var _this = this;
|
|
@@ -7794,12 +6851,7 @@
|
|
|
7794
6851
|
return !!this.visitModel.value;
|
|
7795
6852
|
};
|
|
7796
6853
|
// @Trace()
|
|
7797
|
-
|
|
7798
|
-
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
7799
|
-
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
7800
|
-
* method will return ture to nofiy the the visit has changed.
|
|
7801
|
-
*/
|
|
7802
|
-
PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
|
|
6854
|
+
PlaceComponent.prototype.installBinding = function (parameterDef) {
|
|
7803
6855
|
var model = this[parameterDef.propertyName];
|
|
7804
6856
|
pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
|
|
7805
6857
|
var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
|
|
@@ -7813,17 +6865,7 @@
|
|
|
7813
6865
|
return currentVisit.replace(parameterDef, value);
|
|
7814
6866
|
}
|
|
7815
6867
|
}));
|
|
7816
|
-
|
|
7817
|
-
// 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
|
|
7818
|
-
// component constructor) then we should push that to the route.
|
|
7819
|
-
var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
|
|
7820
|
-
var isInModel = !___namespace.isNil(model.value);
|
|
7821
|
-
if (!isInVisit && isInModel) {
|
|
7822
|
-
binding.writeLeft(); // push it to the route
|
|
7823
|
-
}
|
|
7824
|
-
else {
|
|
7825
|
-
binding.writeRight(); // push it to the model
|
|
7826
|
-
}
|
|
6868
|
+
binding.writeRight();
|
|
7827
6869
|
};
|
|
7828
6870
|
Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
|
|
7829
6871
|
get: function () {
|
|
@@ -8374,7 +7416,7 @@
|
|
|
8374
7416
|
var currentIds = this.interactionServiceAdapter.getActiveInteractionContextIds();
|
|
8375
7417
|
var previousIds = this.urlService.getCurrentLocationUrlSnapshot().getInteractionIds();
|
|
8376
7418
|
// console.log(`---> synchroniseInteractionIds`, { is: currentIds.join(','), was: previousIds.join(',') });
|
|
8377
|
-
if (___default[
|
|
7419
|
+
if (___default['default'].isEqual(currentIds, previousIds)) {
|
|
8378
7420
|
// console.log('### Activity context ids were the same, skipping');
|
|
8379
7421
|
this.context.finishRoutingSession();
|
|
8380
7422
|
}
|
|
@@ -8854,7 +7896,7 @@
|
|
|
8854
7896
|
return !!((_a = this._previousVisits) === null || _a === void 0 ? void 0 : _a.getVisitFor(placeDef));
|
|
8855
7897
|
};
|
|
8856
7898
|
PlaceHistory.prototype.getMostRecentVisitFor = function (placeDef) {
|
|
8857
|
-
return ___default[
|
|
7899
|
+
return ___default['default'].first(this.getHistory(placeDef));
|
|
8858
7900
|
};
|
|
8859
7901
|
PlaceHistory.prototype.getHistory = function (placeDef) {
|
|
8860
7902
|
var history = this._archive.get(placeDef);
|
|
@@ -8871,7 +7913,7 @@
|
|
|
8871
7913
|
var _this = this;
|
|
8872
7914
|
visits.forEach(function (state) {
|
|
8873
7915
|
var history = _this.getHistory(state.placeDefinition);
|
|
8874
|
-
var previousState = ___default[
|
|
7916
|
+
var previousState = ___default['default'].first(history);
|
|
8875
7917
|
if (!previousState || state.hasChangedFrom(previousState)) {
|
|
8876
7918
|
history.unshift(state); // LIFO
|
|
8877
7919
|
_this.setHistory(state.placeDefinition, history.slice(0, _this.placeHistoryDepth));
|
|
@@ -8995,7 +8037,7 @@
|
|
|
8995
8037
|
};
|
|
8996
8038
|
Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
|
|
8997
8039
|
get: function () {
|
|
8998
|
-
return
|
|
8040
|
+
return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
|
|
8999
8041
|
},
|
|
9000
8042
|
enumerable: false,
|
|
9001
8043
|
configurable: true
|
|
@@ -9084,13 +8126,9 @@
|
|
|
9084
8126
|
});
|
|
9085
8127
|
return new Visit(this.placeDefinition, params);
|
|
9086
8128
|
};
|
|
9087
|
-
// @Trace()
|
|
9088
8129
|
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
9089
8130
|
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
9090
|
-
var
|
|
9091
|
-
var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
|
|
9092
|
-
// console.log({currentParams, otherParams});
|
|
9093
|
-
var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
|
|
8131
|
+
var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
9094
8132
|
return !samePlace || !sameRouteParameters;
|
|
9095
8133
|
};
|
|
9096
8134
|
Visit.prototype.hasChangedFrom = function (other) {
|
|
@@ -9166,7 +8204,7 @@
|
|
|
9166
8204
|
return this.getInteractionIds().length > 0;
|
|
9167
8205
|
};
|
|
9168
8206
|
UrlSnapshot.prototype.hasInteractionIds = function (ids) {
|
|
9169
|
-
return ___default[
|
|
8207
|
+
return ___default['default'].isEqual(this.getInteractionIds(), ids);
|
|
9170
8208
|
};
|
|
9171
8209
|
// @Trace()
|
|
9172
8210
|
UrlSnapshot.prototype.updateInteractionIds = function (ids) {
|
|
@@ -9278,9 +8316,6 @@
|
|
|
9278
8316
|
{ type: i1$1.UrlSerializer }
|
|
9279
8317
|
]; };
|
|
9280
8318
|
|
|
9281
|
-
function asArray(item) {
|
|
9282
|
-
return Array.isArray(item) ? item : [item];
|
|
9283
|
-
}
|
|
9284
8319
|
exports.PlaceRouter = /** @class */ (function (_super) {
|
|
9285
8320
|
__extends(PlaceRouter, _super);
|
|
9286
8321
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -9297,7 +8332,7 @@
|
|
|
9297
8332
|
* An observable model containing the authoriser function. This allows places to react to changes
|
|
9298
8333
|
* in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
|
|
9299
8334
|
*/
|
|
9300
|
-
_this._accessGuard =
|
|
8335
|
+
_this._accessGuard = new pectin.DelegatingValueModel().withDefault(new exports.PlaceAccessGuard.NoAuth());
|
|
9301
8336
|
if (window['Cypress']) {
|
|
9302
8337
|
window['aup.PlaceRouter'] = _this;
|
|
9303
8338
|
}
|
|
@@ -9460,15 +8495,17 @@
|
|
|
9460
8495
|
};
|
|
9461
8496
|
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
9462
8497
|
var _this = this;
|
|
9463
|
-
var commands = asArray(visit).reduce(function (result, v) {
|
|
9464
|
-
return __spreadArray(__spreadArray(__spreadArray([], __read(result)), [v.placeDefinition.path]), __read(_this.createRouteParameters(v)));
|
|
9465
|
-
}, []);
|
|
9466
8498
|
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
8499
|
+
var commands;
|
|
9467
8500
|
return __generator(this, function (_a) {
|
|
9468
8501
|
switch (_a.label) {
|
|
9469
|
-
case 0:
|
|
9470
|
-
|
|
9471
|
-
|
|
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
|
+
})];
|
|
9472
8509
|
case 1:
|
|
9473
8510
|
_a.sent();
|
|
9474
8511
|
return [2 /*return*/];
|
|
@@ -9487,7 +8524,7 @@
|
|
|
9487
8524
|
pectin.lang.illegalState('Navigation already in progress');
|
|
9488
8525
|
}
|
|
9489
8526
|
navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
9490
|
-
|
|
8527
|
+
navigation.storeVisit(visit);
|
|
9491
8528
|
this.transitionTo(navigation);
|
|
9492
8529
|
_a.label = 1;
|
|
9493
8530
|
case 1:
|
|
@@ -9583,7 +8620,6 @@
|
|
|
9583
8620
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
9584
8621
|
* the app directly and we don't get to ask.
|
|
9585
8622
|
*/
|
|
9586
|
-
// @Trace()
|
|
9587
8623
|
PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
|
|
9588
8624
|
var _this = this;
|
|
9589
8625
|
if (this.navigationSession) {
|
|
@@ -9627,6 +8663,12 @@
|
|
|
9627
8663
|
{ type: UrlService },
|
|
9628
8664
|
{ type: exports.PlaceHistory }
|
|
9629
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);
|
|
9630
8672
|
(function (PlaceRouter) {
|
|
9631
8673
|
var State = /** @class */ (function () {
|
|
9632
8674
|
function State(activeVisits) {
|
|
@@ -9654,7 +8696,7 @@
|
|
|
9654
8696
|
{ type: i0.Component, args: [{
|
|
9655
8697
|
selector: 'aup-not-authorised-notice',
|
|
9656
8698
|
template: "<p>You are not authorised to access this page</p>\n",
|
|
9657
|
-
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}"]
|
|
9658
8700
|
},] }
|
|
9659
8701
|
];
|
|
9660
8702
|
NotAuthorisedNoticeComponent.ctorParameters = function () { return []; };
|
|
@@ -9905,7 +8947,7 @@
|
|
|
9905
8947
|
selector: 'aup-place-outlet',
|
|
9906
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",
|
|
9907
8949
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
9908
|
-
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}"]
|
|
9909
8951
|
},] }
|
|
9910
8952
|
];
|
|
9911
8953
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
@@ -9947,7 +8989,7 @@
|
|
|
9947
8989
|
function AbstractPlaceNavigationComponent(placeRouter) {
|
|
9948
8990
|
var _this = _super.call(this) || this;
|
|
9949
8991
|
_this.placeRouter = placeRouter;
|
|
9950
|
-
_this._activePlaceComponent =
|
|
8992
|
+
_this._activePlaceComponent = new pectin.DelegatingValueModel();
|
|
9951
8993
|
_this.trackByPlaceDef = function (data) { return data.place; };
|
|
9952
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;
|
|
9953
8995
|
_this.placeDefinitions = chain(_this.placesModel)
|
|
@@ -10040,7 +9082,7 @@
|
|
|
10040
9082
|
{ type: i0.Component, args: [{
|
|
10041
9083
|
selector: 'aup-list-place-nav',
|
|
10042
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",
|
|
10043
|
-
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)}"]
|
|
10044
9086
|
},] }
|
|
10045
9087
|
];
|
|
10046
9088
|
ListPlaceNavComponent.ctorParameters = function () { return [
|
|
@@ -10111,7 +9153,7 @@
|
|
|
10111
9153
|
{ type: i0.Component, args: [{
|
|
10112
9154
|
selector: 'aup-side-place-navigation',
|
|
10113
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",
|
|
10114
|
-
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)}"]
|
|
10115
9157
|
},] }
|
|
10116
9158
|
];
|
|
10117
9159
|
SidePlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -10133,7 +9175,7 @@
|
|
|
10133
9175
|
{ type: i0.Component, args: [{
|
|
10134
9176
|
selector: 'aup-tabbed-place-navigation',
|
|
10135
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",
|
|
10136
|
-
styles: [":host{display:block}div.place-holder{border:1px solid green}
|
|
9178
|
+
styles: [":host{display:block}div.place-holder{border:1px solid green}"]
|
|
10137
9179
|
},] }
|
|
10138
9180
|
];
|
|
10139
9181
|
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -10244,6 +9286,9 @@
|
|
|
10244
9286
|
* @file Automatically generated by barrelsby.
|
|
10245
9287
|
*/
|
|
10246
9288
|
|
|
9289
|
+
// const r:Result<string, number> = null;
|
|
9290
|
+
// r.catch(e => {}).then();
|
|
9291
|
+
|
|
10247
9292
|
var DialogInteractionContext = /** @class */ (function (_super) {
|
|
10248
9293
|
__extends(DialogInteractionContext, _super);
|
|
10249
9294
|
function DialogInteractionContext(identifier, api, dialogService, config) {
|
|
@@ -10462,13 +9507,13 @@
|
|
|
10462
9507
|
}
|
|
10463
9508
|
_a.label = 2;
|
|
10464
9509
|
case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10465
|
-
var
|
|
9510
|
+
var params, parsedParams, navigationSession, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
|
|
10466
9511
|
return __generator(this, function (_a) {
|
|
10467
9512
|
switch (_a.label) {
|
|
10468
9513
|
case 0:
|
|
10469
|
-
navigationSession = this.placeRouter.navigationSession;
|
|
10470
9514
|
params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
|
|
10471
9515
|
parsedParams = placeDefinition_1.parseRouteParams(params);
|
|
9516
|
+
navigationSession = this.placeRouter.navigationSession;
|
|
10472
9517
|
initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
|
|
10473
9518
|
sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
|
|
10474
9519
|
return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
|
|
@@ -10577,11 +9622,11 @@
|
|
|
10577
9622
|
function NumberType() {
|
|
10578
9623
|
}
|
|
10579
9624
|
NumberType.prototype.format = function (value) {
|
|
10580
|
-
return ___default[
|
|
9625
|
+
return ___default['default'].isNumber(value) && !___default['default'].isNaN(value) ? "" + value : null;
|
|
10581
9626
|
};
|
|
10582
9627
|
NumberType.prototype.parse = function (value) {
|
|
10583
9628
|
var parsed = Number.parseFloat(value);
|
|
10584
|
-
return ___default[
|
|
9629
|
+
return ___default['default'].isNaN(parsed) ? null : parsed;
|
|
10585
9630
|
};
|
|
10586
9631
|
return NumberType;
|
|
10587
9632
|
}());
|
|
@@ -10754,13 +9799,10 @@
|
|
|
10754
9799
|
*/
|
|
10755
9800
|
|
|
10756
9801
|
exports.ACTIVITY_DATA = ACTIVITY_DATA;
|
|
10757
|
-
exports.ALERT_CONFIG = ALERT_CONFIG;
|
|
10758
9802
|
exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
|
|
10759
9803
|
exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
|
|
10760
9804
|
exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
|
|
10761
|
-
exports.
|
|
10762
|
-
exports.AbstractConfirmDialogComponent = AbstractConfirmDialogComponent;
|
|
10763
|
-
exports.AbstractDialogComponent = AbstractDialogComponent;
|
|
9805
|
+
exports.AbstractInputActivity = AbstractInputActivity;
|
|
10764
9806
|
exports.AbstractInputComponent = AbstractInputComponent;
|
|
10765
9807
|
exports.AbstractInteractionContext = AbstractInteractionContext;
|
|
10766
9808
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
@@ -10771,6 +9813,7 @@
|
|
|
10771
9813
|
exports.AbstractTableModel = AbstractTableModel;
|
|
10772
9814
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
10773
9815
|
exports.Activity = Activity;
|
|
9816
|
+
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
10774
9817
|
exports.ActivityBodyComponent = ActivityBodyComponent;
|
|
10775
9818
|
exports.ActivityContainerComponent = ActivityContainerComponent;
|
|
10776
9819
|
exports.ActivityOutletComponent = ActivityOutletComponent;
|
|
@@ -10784,7 +9827,6 @@
|
|
|
10784
9827
|
exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
|
|
10785
9828
|
exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
|
|
10786
9829
|
exports.CardContainerComponent = CardContainerComponent;
|
|
10787
|
-
exports.CardStackComponent = CardStackComponent;
|
|
10788
9830
|
exports.CellEditorPortalRef = CellEditorPortalRef;
|
|
10789
9831
|
exports.CellHeaderPortalRef = CellHeaderPortalRef;
|
|
10790
9832
|
exports.CellPortalRef = CellPortalRef;
|
|
@@ -10799,7 +9841,6 @@
|
|
|
10799
9841
|
exports.ComponentCellRendererPortalRef = ComponentCellRendererPortalRef;
|
|
10800
9842
|
exports.ComponentsModule = ComponentsModule;
|
|
10801
9843
|
exports.ConfirmThenDialogComponent = ConfirmThenDialogComponent;
|
|
10802
|
-
exports.ConfirmThenExecuteDialogComponent = ConfirmThenExecuteDialogComponent;
|
|
10803
9844
|
exports.ConfirmationDialogComponent = ConfirmationDialogComponent;
|
|
10804
9845
|
exports.ConsolidatedParameterMap = ConsolidatedParameterMap;
|
|
10805
9846
|
exports.CustomTemplateColumnModel = CustomTemplateColumnModel;
|
|
@@ -10835,12 +9876,8 @@
|
|
|
10835
9876
|
exports.InteractionModule = InteractionModule;
|
|
10836
9877
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
10837
9878
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
10838
|
-
exports.LabelledValueComponent = LabelledValueComponent;
|
|
10839
9879
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
10840
9880
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
10841
|
-
exports.LoadingContainerComponent = LoadingContainerComponent;
|
|
10842
|
-
exports.MarkdownComponent = MarkdownComponent;
|
|
10843
|
-
exports.MarkdownService = MarkdownService;
|
|
10844
9881
|
exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;
|
|
10845
9882
|
exports.ModalInteractionContextFactory = ModalInteractionContextFactory;
|
|
10846
9883
|
exports.MoreMenuComponent = MoreMenuComponent;
|
|
@@ -10916,14 +9953,12 @@
|
|
|
10916
9953
|
exports.WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined = WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined;
|
|
10917
9954
|
exports.WaitUntilPopStateDuringCanDeactivateInteractionFinishes = WaitUntilPopStateDuringCanDeactivateInteractionFinishes;
|
|
10918
9955
|
exports.leftRightPlaceAnimation = leftRightPlaceAnimation;
|
|
10919
|
-
exports.markdownPillExtension = markdownPillExtension;
|
|
10920
9956
|
exports.slideDownOnEnterAnimation = slideDownOnEnterAnimation;
|
|
10921
9957
|
exports.slideRightOnEnterAnimation = slideRightOnEnterAnimation;
|
|
10922
9958
|
exports.treeNodeDecorator = treeNodeDecorator;
|
|
10923
|
-
exports
|
|
10924
|
-
exports["ɵ1"] = ɵ1;
|
|
9959
|
+
exports.ɵ0 = ɵ0;
|
|
10925
9960
|
|
|
10926
9961
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
10927
9962
|
|
|
10928
|
-
}));
|
|
9963
|
+
})));
|
|
10929
9964
|
//# sourceMappingURL=coolon-angular-ui-powerups.umd.js.map
|