@coolon/angular-ui-powerups 12.4.0-alpha.59 → 12.4.0-alpha.6
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 -5
- package/assets/interaction.scss +7 -10
- package/assets/mixins.scss +7 -5
- package/assets/styles.scss +15 -8
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +324 -745
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +220 -905
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/components/aup-command-face.d.ts +8 -2
- package/cypress/components/aup-command.d.ts +1 -2
- package/cypress/components/aup-input.d.ts +5 -11
- package/cypress/components/aup-more-menu.d.ts +4 -0
- package/cypress/components/aup-popup-menu.d.ts +7 -0
- package/cypress/components/aup-table.d.ts +18 -5
- package/cypress/components/button-mixin.d.ts +19 -0
- package/cypress/components/button.d.ts +7 -11
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/exports.d.ts +4 -25
- package/cypress/package.json +1 -1
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +33 -8
- package/cypress/section.d.ts +52 -0
- package/esm2015/cypress/components/aup-command-face.js +22 -11
- package/esm2015/cypress/components/aup-command-face.js.map +1 -1
- package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
- package/esm2015/cypress/components/aup-command.js +6 -12
- package/esm2015/cypress/components/aup-command.js.map +1 -1
- package/esm2015/cypress/components/aup-command.metadata.json +1 -1
- package/esm2015/cypress/components/aup-input.js +5 -17
- package/esm2015/cypress/components/aup-input.js.map +1 -1
- package/esm2015/cypress/components/aup-input.metadata.json +1 -1
- package/esm2015/cypress/components/aup-more-menu.js +7 -0
- package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-navigation.js +1 -1
- package/esm2015/cypress/components/aup-navigation.js.map +1 -1
- package/esm2015/cypress/components/aup-popup-menu.js +19 -0
- package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-table.js +33 -5
- package/esm2015/cypress/components/aup-table.js.map +1 -1
- package/esm2015/cypress/components/aup-table.metadata.json +1 -1
- package/esm2015/cypress/components/button-mixin.js +15 -0
- package/esm2015/cypress/components/button-mixin.js.map +1 -0
- package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
- package/esm2015/cypress/components/button.js +10 -4
- package/esm2015/cypress/components/button.js.map +1 -1
- package/esm2015/cypress/components/button.metadata.json +1 -1
- package/esm2015/cypress/exports.js +4 -25
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-element.js +19 -26
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +19 -31
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/cypress/path.js +1 -3
- package/esm2015/cypress/path.js.map +1 -1
- package/esm2015/cypress/section.js +72 -0
- package/esm2015/cypress/section.js.map +1 -0
- package/esm2015/cypress/section.metadata.json +1 -0
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.js +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +84 -0
- package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{labelled-value/labelled-value.component.scss.shim.ngstyle.js.map → card-container/card-container.component.scss.shim.ngstyle.js.map} +1 -1
- package/esm2015/lib/components/commands/command/command.component.js +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +24 -37
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
- package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
- package/esm2015/lib/components/exports.js +3 -5
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.js +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.js +0 -1
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.js +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/noop/noop.component.js +1 -1
- package/esm2015/lib/components/noop/noop.component.metadata.json +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.js +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
- package/esm2015/lib/components/section-header/section-header.component.js +5 -12
- package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
- package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.js +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
- 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/edit-row-controls/edit-row-controls.component.js +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table.component.js +1 -1
- package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +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-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 +0 -1
- 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/directives.module.ngfactory.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 +2 -2
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +2 -5
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +2 -5
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +2 -5
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +3 -7
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -6
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +1 -2
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/exports.js +3 -5
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +5 -19
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/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 +13 -10
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.js +7 -1
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
- package/esm2015/lib/place/visit.js +1 -5
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +237 -550
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +173 -755
- 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/exports.d.ts +3 -5
- package/lib/components/section-header/section-header.component.d.ts +2 -5
- package/lib/components/tables/abstract-table-model.d.ts +2 -2
- package/lib/components/tables/table/column-model.d.ts +1 -1
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
- package/lib/components/tables/tree-table/tree-node.d.ts +3 -0
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
- package/lib/components/tables/tree-table/visitable.class.d.ts +22 -0
- package/lib/components/track-by.d.ts +0 -9
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
- package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -1
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
- package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
- package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
- package/lib/interaction/exports.d.ts +3 -5
- package/lib/place/place-component.d.ts +1 -6
- package/lib/place/place-router.d.ts +2 -2
- package/package.json +16 -16
- package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
- 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 -100
- package/cypress/component-builder.d.ts +0 -71
- package/cypress/components/aup-abstract-activity.d.ts +0 -31
- package/cypress/components/aup-abstract-table.d.ts +0 -18
- package/cypress/components/aup-activity.d.ts +0 -9
- package/cypress/components/aup-alert-dialog.d.ts +0 -27
- package/cypress/components/aup-alert.d.ts +0 -9
- package/cypress/components/aup-confirm-dialog.d.ts +0 -27
- package/cypress/components/aup-confirm.d.ts +0 -11
- package/cypress/components/aup-empty-state.d.ts +0 -4
- package/cypress/components/aup-modal-activity.d.ts +0 -24
- package/cypress/components/aup-modal-mixin.d.ts +0 -23
- package/cypress/components/aup-tree-table.d.ts +0 -16
- package/cypress/components/form-element-mixin.d.ts +0 -22
- package/cypress/components/mat-checkbox.d.ts +0 -31
- package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
- package/cypress/components/popup/aup-more-menu.d.ts +0 -5
- package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
- package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
- package/cypress/components/table/aup-table-cell.d.ts +0 -9
- package/cypress/components/table/aup-table-column.d.ts +0 -10
- package/cypress/components/table/aup-table-row.d.ts +0 -17
- package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
- package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
- package/cypress/element-locator.d.ts +0 -8
- package/cypress/page-builder.d.ts +0 -9
- package/esm2015/cypress/component-builder.js +0 -92
- package/esm2015/cypress/component-builder.js.map +0 -1
- package/esm2015/cypress/component-builder.metadata.json +0 -1
- package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
- package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-abstract-table.js +0 -50
- package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
- package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
- package/esm2015/cypress/components/aup-activity.js +0 -13
- package/esm2015/cypress/components/aup-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
- package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
- package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
- package/esm2015/cypress/components/aup-alert.js +0 -13
- package/esm2015/cypress/components/aup-alert.js.map +0 -1
- package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
- package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
- package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
- package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
- package/esm2015/cypress/components/aup-confirm.js +0 -19
- package/esm2015/cypress/components/aup-confirm.js.map +0 -1
- package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
- package/esm2015/cypress/components/aup-empty-state.js +0 -7
- package/esm2015/cypress/components/aup-empty-state.js.map +0 -1
- package/esm2015/cypress/components/aup-empty-state.metadata.json +0 -1
- package/esm2015/cypress/components/aup-modal-activity.js +0 -5
- package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
- package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
- package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
- package/esm2015/cypress/components/aup-tree-table.js +0 -34
- package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
- package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
- package/esm2015/cypress/components/form-element-mixin.js +0 -11
- package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
- package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
- package/esm2015/cypress/components/mat-checkbox.js +0 -34
- package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
- package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
- package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
- package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
- package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-column.js +0 -19
- package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-row.js +0 -28
- package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
- package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
- package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
- package/esm2015/cypress/element-locator.js +0 -16
- package/esm2015/cypress/element-locator.js.map +0 -1
- package/esm2015/cypress/element-locator.metadata.json +0 -1
- package/esm2015/cypress/page-builder.js +0 -16
- package/esm2015/cypress/page-builder.js.map +0 -1
- package/esm2015/cypress/page-builder.metadata.json +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
- package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
- package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
- package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
- package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
- package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
- package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
- package/lib/components/loading-container/loading-container.component.d.ts +0 -11
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
- package/lib/interaction/components/editors/edit-context.d.ts +0 -3
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
- package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/progress-
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/progress-
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon['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.
|
|
5
|
-
}(this, (function (exports, i2, i0, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu,
|
|
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
|
|
|
@@ -262,16 +262,10 @@
|
|
|
262
262
|
r[k] = a[j];
|
|
263
263
|
return r;
|
|
264
264
|
}
|
|
265
|
-
function __spreadArray(to, from
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
if (!ar)
|
|
270
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
271
|
-
ar[i] = from[i];
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return to.concat(ar || 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;
|
|
275
269
|
}
|
|
276
270
|
function __await(v) {
|
|
277
271
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -757,7 +751,7 @@
|
|
|
757
751
|
{ type: i0.Component, args: [{
|
|
758
752
|
selector: 'aup-busy-overlay',
|
|
759
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",
|
|
760
|
-
styles: [":host{position:relative}div.busy-overlay-backdrop{position:absolute;background-color
|
|
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}"]
|
|
761
755
|
},] }
|
|
762
756
|
];
|
|
763
757
|
BusyOverlayComponent.ctorParameters = function () { return []; };
|
|
@@ -774,32 +768,6 @@
|
|
|
774
768
|
__metadata("design:type", Boolean)
|
|
775
769
|
], BusyOverlayComponent.prototype, "busy", void 0);
|
|
776
770
|
|
|
777
|
-
var AbstractCardContainerComponent = /** @class */ (function (_super) {
|
|
778
|
-
__extends(AbstractCardContainerComponent, _super);
|
|
779
|
-
function AbstractCardContainerComponent() {
|
|
780
|
-
return _super.call(this) || this;
|
|
781
|
-
}
|
|
782
|
-
AbstractCardContainerComponent.prototype.ngOnInit = function () {
|
|
783
|
-
};
|
|
784
|
-
return AbstractCardContainerComponent;
|
|
785
|
-
}(DisposableComponent));
|
|
786
|
-
AbstractCardContainerComponent.decorators = [
|
|
787
|
-
{ type: i0.Component, args: [{
|
|
788
|
-
selector: 'aup-abstract-card-container',
|
|
789
|
-
template: ''
|
|
790
|
-
},] }
|
|
791
|
-
];
|
|
792
|
-
AbstractCardContainerComponent.ctorParameters = function () { return []; };
|
|
793
|
-
AbstractCardContainerComponent.propDecorators = {
|
|
794
|
-
addCardCommand: [{ type: i0.Input }],
|
|
795
|
-
addCardFace: [{ type: i0.Input }],
|
|
796
|
-
addCardTemplate: [{ type: i0.ContentChild, args: ['addCardTemplate',] }]
|
|
797
|
-
};
|
|
798
|
-
__decorate([
|
|
799
|
-
pectin.TrackExternal(),
|
|
800
|
-
__metadata("design:type", pectin.Command)
|
|
801
|
-
], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
|
|
802
|
-
|
|
803
771
|
/**
|
|
804
772
|
* @example
|
|
805
773
|
* // basic usage
|
|
@@ -817,13 +785,6 @@
|
|
|
817
785
|
* <my-card *ngFor="..."></my-card>
|
|
818
786
|
* </aup-card-container>
|
|
819
787
|
*
|
|
820
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
821
|
-
* // the activity inside teh card
|
|
822
|
-
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
823
|
-
* <my-card *ngFor="..."></my-card>
|
|
824
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
825
|
-
* </aup-card-container>
|
|
826
|
-
*
|
|
827
788
|
* // adds an add card component using the specified template. The template
|
|
828
789
|
* // will fill it's container in the grid.
|
|
829
790
|
* <aup-card-container>
|
|
@@ -856,7 +817,6 @@
|
|
|
856
817
|
* aup-card-container {
|
|
857
818
|
* --card-gap: var(--card-gap, 16px);
|
|
858
819
|
* --card-width: var(--card-width, 300px);
|
|
859
|
-
* --card-max-width: auto;
|
|
860
820
|
* --card-height: var(--card-height, auto);
|
|
861
821
|
* --card-min-height: var(--card-min-height, auto);
|
|
862
822
|
* --card-background: var(--card-background, #fcfcfb);
|
|
@@ -864,154 +824,30 @@
|
|
|
864
824
|
*/
|
|
865
825
|
var CardContainerComponent = /** @class */ (function (_super) {
|
|
866
826
|
__extends(CardContainerComponent, _super);
|
|
867
|
-
function CardContainerComponent(
|
|
868
|
-
|
|
869
|
-
_this.elementRef = elementRef;
|
|
870
|
-
/**
|
|
871
|
-
* Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
|
|
872
|
-
* or place in a layout that will stretch it such as a grid or flex layout.
|
|
873
|
-
*/
|
|
874
|
-
_this.enabledScroll = false;
|
|
875
|
-
return _this;
|
|
827
|
+
function CardContainerComponent() {
|
|
828
|
+
return _super.call(this) || this;
|
|
876
829
|
}
|
|
877
|
-
Object.defineProperty(CardContainerComponent.prototype, "columnCount", {
|
|
878
|
-
get: function () {
|
|
879
|
-
return this._columnCount;
|
|
880
|
-
},
|
|
881
|
-
set: function (count) {
|
|
882
|
-
if (!___namespace.isNil(count) && (!___namespace.isInteger(count) || count < 1)) {
|
|
883
|
-
typescriptUtilities.lang.illegalState('columnCount must be a positive integer or nil');
|
|
884
|
-
}
|
|
885
|
-
this._columnCount = count;
|
|
886
|
-
this.updateColumnCountStyles();
|
|
887
|
-
},
|
|
888
|
-
enumerable: false,
|
|
889
|
-
configurable: true
|
|
890
|
-
});
|
|
891
830
|
CardContainerComponent.prototype.ngOnInit = function () {
|
|
892
|
-
_super.prototype.ngOnInit.call(this);
|
|
893
|
-
this.updateColumnCountStyles();
|
|
894
|
-
};
|
|
895
|
-
Object.defineProperty(CardContainerComponent.prototype, "isAutoColumns", {
|
|
896
|
-
get: function () {
|
|
897
|
-
return ___namespace.isNil(this._columnCount);
|
|
898
|
-
},
|
|
899
|
-
enumerable: false,
|
|
900
|
-
configurable: true
|
|
901
|
-
});
|
|
902
|
-
Object.defineProperty(CardContainerComponent.prototype, "isSingleColumn", {
|
|
903
|
-
get: function () {
|
|
904
|
-
return this._columnCount === 1;
|
|
905
|
-
},
|
|
906
|
-
enumerable: false,
|
|
907
|
-
configurable: true
|
|
908
|
-
});
|
|
909
|
-
CardContainerComponent.prototype.updateColumnCountStyles = function () {
|
|
910
|
-
var el = this.elementRef.nativeElement;
|
|
911
|
-
if (___namespace.isNil(this._columnCount)) {
|
|
912
|
-
el.style.setProperty('--aup-card-container-column-count', '');
|
|
913
|
-
}
|
|
914
|
-
else {
|
|
915
|
-
el.style.setProperty('--aup-card-container-column-count', this._columnCount);
|
|
916
|
-
}
|
|
917
831
|
};
|
|
918
832
|
return CardContainerComponent;
|
|
919
|
-
}(
|
|
833
|
+
}(DisposableComponent));
|
|
920
834
|
CardContainerComponent.decorators = [
|
|
921
835
|
{ type: i0.Component, args: [{
|
|
922
836
|
selector: 'aup-card-container',
|
|
923
|
-
template: "<div class=\"
|
|
924
|
-
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}"]
|
|
925
839
|
},] }
|
|
926
840
|
];
|
|
927
|
-
CardContainerComponent.ctorParameters = function () { return [
|
|
928
|
-
{ type: i0.ElementRef }
|
|
929
|
-
]; };
|
|
841
|
+
CardContainerComponent.ctorParameters = function () { return []; };
|
|
930
842
|
CardContainerComponent.propDecorators = {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
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",] }]
|
|
935
846
|
};
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
* // basic usage
|
|
941
|
-
* <aup-card-stack>
|
|
942
|
-
* <my-card *ngFor="..."></my-card>
|
|
943
|
-
* </aup-card-stack>
|
|
944
|
-
*
|
|
945
|
-
* // adds an add button with a the '+' icon to the end of the card list.
|
|
946
|
-
* <aup-card-stack [addCardCommand]="addCard">
|
|
947
|
-
* <my-card *ngFor="..."></my-card>
|
|
948
|
-
* </aup-card-stack>
|
|
949
|
-
*
|
|
950
|
-
* // adds an add button with the specified face
|
|
951
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
952
|
-
* <my-card *ngFor="..."></my-card>
|
|
953
|
-
* </aup-card-stack>
|
|
954
|
-
*
|
|
955
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
956
|
-
* // the activity inside teh card
|
|
957
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
958
|
-
* <my-card *ngFor="..."></my-card>
|
|
959
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
960
|
-
* </aup-card-stack>
|
|
961
|
-
*
|
|
962
|
-
* // adds an add card component using the specified template. The template
|
|
963
|
-
* // will fill it's container in the grid.
|
|
964
|
-
* <aup-card-stack>
|
|
965
|
-
* <my-card *ngFor="..."></my-card>
|
|
966
|
-
* <ng-template #addCardTemplate>
|
|
967
|
-
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
968
|
-
* </ng-template>
|
|
969
|
-
* </aup-card-stack>
|
|
970
|
-
*
|
|
971
|
-
* // sing the default new card styles for your template
|
|
972
|
-
* @import "../../../../assets/styles";
|
|
973
|
-
* .my-new-card {
|
|
974
|
-
* @include aup-card-stack-new-card-style();
|
|
975
|
-
* // OR
|
|
976
|
-
* @include aup-card-stack-new-card-style(
|
|
977
|
-
* $color: rgba(0,0,0,0.54),
|
|
978
|
-
* $background-color: rgba(255,255,255,0.8),
|
|
979
|
-
* $hover-color: $color,
|
|
980
|
-
* $background-hover-color: white
|
|
981
|
-
* )
|
|
982
|
-
* }
|
|
983
|
-
* <aup-card-stack>
|
|
984
|
-
* <my-card *ngFor="..."></my-card>
|
|
985
|
-
* <ng-template #addCardTemplate>
|
|
986
|
-
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
987
|
-
* </ng-template>
|
|
988
|
-
* </aup-card-stack>
|
|
989
|
-
*
|
|
990
|
-
* // CSS Vars
|
|
991
|
-
* aup-card-stack {
|
|
992
|
-
* --card-gap: var(--card-gap, 16px);
|
|
993
|
-
* --card-height: var(--card-height, auto);
|
|
994
|
-
* --card-min-height: var(--card-min-height, auto);
|
|
995
|
-
* --card-background: var(--card-background, #fcfcfb);
|
|
996
|
-
* }
|
|
997
|
-
*/
|
|
998
|
-
var CardStackComponent = /** @class */ (function (_super) {
|
|
999
|
-
__extends(CardStackComponent, _super);
|
|
1000
|
-
function CardStackComponent() {
|
|
1001
|
-
var _this = _super.call(this) || this;
|
|
1002
|
-
console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
|
|
1003
|
-
return _this;
|
|
1004
|
-
}
|
|
1005
|
-
return CardStackComponent;
|
|
1006
|
-
}(AbstractCardContainerComponent));
|
|
1007
|
-
CardStackComponent.decorators = [
|
|
1008
|
-
{ type: i0.Component, args: [{
|
|
1009
|
-
selector: 'aup-card-stack',
|
|
1010
|
-
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",
|
|
1011
|
-
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"]
|
|
1012
|
-
},] }
|
|
1013
|
-
];
|
|
1014
|
-
CardStackComponent.ctorParameters = function () { return []; };
|
|
847
|
+
__decorate([
|
|
848
|
+
pectin.TrackExternal(),
|
|
849
|
+
__metadata("design:type", pectin.Command)
|
|
850
|
+
], CardContainerComponent.prototype, "addCardCommand", void 0);
|
|
1015
851
|
|
|
1016
852
|
exports.CommandFace = void 0;
|
|
1017
853
|
(function (CommandFace) {
|
|
@@ -1211,7 +1047,7 @@
|
|
|
1211
1047
|
selector: 'aup-command-face',
|
|
1212
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",
|
|
1213
1049
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1214
|
-
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}"]
|
|
1215
1051
|
},] }
|
|
1216
1052
|
];
|
|
1217
1053
|
CommandFaceComponent.ctorParameters = function () { return []; };
|
|
@@ -1310,7 +1146,7 @@
|
|
|
1310
1146
|
{ type: i0.Component, args: [{
|
|
1311
1147
|
selector: 'aup-command',
|
|
1312
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",
|
|
1313
|
-
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}"]
|
|
1314
1150
|
},] }
|
|
1315
1151
|
];
|
|
1316
1152
|
CommandComponent.ctorParameters = function () { return [
|
|
@@ -1499,22 +1335,10 @@
|
|
|
1499
1335
|
exports.TrackBy = void 0;
|
|
1500
1336
|
(function (TrackBy) {
|
|
1501
1337
|
TrackBy.byIndex = function (index, item) { return index; };
|
|
1502
|
-
/**
|
|
1503
|
-
* @deprecated use #track(MyType).by("property") instead.
|
|
1504
|
-
* @param property
|
|
1505
|
-
*/
|
|
1506
1338
|
function trackByProperty(property) {
|
|
1507
1339
|
return function (index, item) { return item[property]; };
|
|
1508
1340
|
}
|
|
1509
1341
|
TrackBy.trackByProperty = trackByProperty;
|
|
1510
|
-
function track(type) {
|
|
1511
|
-
return {
|
|
1512
|
-
by: function (property) {
|
|
1513
|
-
return function (index, item) { return item[property]; };
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
TrackBy.track = track;
|
|
1518
1342
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1519
1343
|
|
|
1520
1344
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -1579,7 +1403,7 @@
|
|
|
1579
1403
|
selector: 'aup-tool-bar',
|
|
1580
1404
|
template: '<div class="toolbar-content"><ng-content></ng-content></div>',
|
|
1581
1405
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1582
|
-
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}"]
|
|
1583
1407
|
},] }
|
|
1584
1408
|
];
|
|
1585
1409
|
ToolBarComponent.ctorParameters = function () { return []; };
|
|
@@ -1605,7 +1429,8 @@
|
|
|
1605
1429
|
{ type: i0.Component, args: [{
|
|
1606
1430
|
selector: 'aup-separator',
|
|
1607
1431
|
template: "\n <mat-divider [vertical]=\"!isHorizontalContainer()\"></mat-divider>",
|
|
1608
|
-
styles: [":host {\n }",
|
|
1432
|
+
styles: [":host {\n }",
|
|
1433
|
+
":host(.horizontal-container) {\n display: inline-flex;\n flex-direction: row;\n align-items: stretch;\n }"]
|
|
1609
1434
|
},] }
|
|
1610
1435
|
];
|
|
1611
1436
|
SeparatorComponent.ctorParameters = function () { return [
|
|
@@ -1762,7 +1587,7 @@
|
|
|
1762
1587
|
{ type: i0.Component, args: [{
|
|
1763
1588
|
selector: 'aup-empty-state',
|
|
1764
1589
|
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
1765
|
-
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}"]
|
|
1766
1591
|
},] }
|
|
1767
1592
|
];
|
|
1768
1593
|
EmptyStateComponent.ctorParameters = function () { return []; };
|
|
@@ -1793,7 +1618,7 @@
|
|
|
1793
1618
|
providers: [
|
|
1794
1619
|
{ provide: pectin.FocusManager }
|
|
1795
1620
|
],
|
|
1796
|
-
styles: [":host{display:block}
|
|
1621
|
+
styles: [":host{display:block}"]
|
|
1797
1622
|
},] }
|
|
1798
1623
|
];
|
|
1799
1624
|
FocusContainerComponent.ctorParameters = function () { return [
|
|
@@ -1860,7 +1685,6 @@
|
|
|
1860
1685
|
function AbstractInputComponent() {
|
|
1861
1686
|
var _this = _super.call(this) || this;
|
|
1862
1687
|
_this.onValueEditedListeners = new pectin.EventListenerList();
|
|
1863
|
-
_this.userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1864
1688
|
_this.dense = false;
|
|
1865
1689
|
// TODO: fix this.
|
|
1866
1690
|
// tslint:disable-next-line:no-output-native
|
|
@@ -2166,7 +1990,7 @@
|
|
|
2166
1990
|
{ type: i0.Component, args: [{
|
|
2167
1991
|
selector: 'aup-autocomplete-input',
|
|
2168
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",
|
|
2169
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
1993
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2170
1994
|
},] }
|
|
2171
1995
|
];
|
|
2172
1996
|
AutocompleteInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2205,7 +2029,7 @@
|
|
|
2205
2029
|
{ type: i0.Component, args: [{
|
|
2206
2030
|
selector: 'aup-checkbox-input',
|
|
2207
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",
|
|
2208
|
-
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}"]
|
|
2209
2033
|
},] }
|
|
2210
2034
|
];
|
|
2211
2035
|
CheckboxInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2236,7 +2060,7 @@
|
|
|
2236
2060
|
{ type: i0.Component, args: [{
|
|
2237
2061
|
selector: 'aup-multiple-select-input',
|
|
2238
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",
|
|
2239
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
2063
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2240
2064
|
},] }
|
|
2241
2065
|
];
|
|
2242
2066
|
MultipleSelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2326,7 +2150,7 @@
|
|
|
2326
2150
|
{ type: i0.Component, args: [{
|
|
2327
2151
|
selector: 'aup-select-input',
|
|
2328
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",
|
|
2329
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}
|
|
2153
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2330
2154
|
},] }
|
|
2331
2155
|
];
|
|
2332
2156
|
SelectInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2367,7 +2191,7 @@
|
|
|
2367
2191
|
{ type: i0.Component, args: [{
|
|
2368
2192
|
selector: 'aup-string-input',
|
|
2369
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",
|
|
2370
|
-
styles: ["button[disabled]{visibility:hidden}
|
|
2194
|
+
styles: ["button[disabled]{visibility:hidden}"]
|
|
2371
2195
|
},] }
|
|
2372
2196
|
];
|
|
2373
2197
|
StringInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2404,7 +2228,7 @@
|
|
|
2404
2228
|
{ type: i0.Component, args: [{
|
|
2405
2229
|
selector: 'aup-text-input',
|
|
2406
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",
|
|
2407
|
-
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}
|
|
2231
|
+
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
2408
2232
|
},] }
|
|
2409
2233
|
];
|
|
2410
2234
|
TextInputComponent.ctorParameters = function () { return []; };
|
|
@@ -2448,7 +2272,7 @@
|
|
|
2448
2272
|
{ type: i0.Component, args: [{
|
|
2449
2273
|
selector: 'aup-icon',
|
|
2450
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",
|
|
2451
|
-
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}"]
|
|
2452
2276
|
},] }
|
|
2453
2277
|
];
|
|
2454
2278
|
exports.IconComponent.propDecorators = {
|
|
@@ -2462,54 +2286,6 @@
|
|
|
2462
2286
|
});
|
|
2463
2287
|
})(exports.IconComponent || (exports.IconComponent = {}));
|
|
2464
2288
|
|
|
2465
|
-
var LoadingContainerComponent = /** @class */ (function (_super) {
|
|
2466
|
-
__extends(LoadingContainerComponent, _super);
|
|
2467
|
-
function LoadingContainerComponent() {
|
|
2468
|
-
return _super.call(this) || this;
|
|
2469
|
-
}
|
|
2470
|
-
Object.defineProperty(LoadingContainerComponent.prototype, "state", {
|
|
2471
|
-
get: function () {
|
|
2472
|
-
return this.loadingModel.value ? "loaded" : "loading";
|
|
2473
|
-
},
|
|
2474
|
-
enumerable: false,
|
|
2475
|
-
configurable: true
|
|
2476
|
-
});
|
|
2477
|
-
LoadingContainerComponent.prototype.ngOnInit = function () {
|
|
2478
|
-
};
|
|
2479
|
-
return LoadingContainerComponent;
|
|
2480
|
-
}(pectin.GarbageCollector));
|
|
2481
|
-
LoadingContainerComponent.decorators = [
|
|
2482
|
-
{ type: i0.Component, args: [{
|
|
2483
|
-
selector: 'aup-loading-container',
|
|
2484
|
-
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",
|
|
2485
|
-
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"]
|
|
2486
|
-
},] }
|
|
2487
|
-
];
|
|
2488
|
-
LoadingContainerComponent.ctorParameters = function () { return []; };
|
|
2489
|
-
LoadingContainerComponent.propDecorators = {
|
|
2490
|
-
loadingModel: [{ type: i0.Input }],
|
|
2491
|
-
loading: [{ type: i0.Input }],
|
|
2492
|
-
messageModel: [{ type: i0.Input }],
|
|
2493
|
-
message: [{ type: i0.Input }],
|
|
2494
|
-
state: [{ type: i0.HostBinding, args: ["class",] }]
|
|
2495
|
-
};
|
|
2496
|
-
__decorate([
|
|
2497
|
-
pectin.TrackExternal(),
|
|
2498
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2499
|
-
], LoadingContainerComponent.prototype, "loadingModel", void 0);
|
|
2500
|
-
__decorate([
|
|
2501
|
-
pectin.StoreInValueModel("loadingModel"),
|
|
2502
|
-
__metadata("design:type", Boolean)
|
|
2503
|
-
], LoadingContainerComponent.prototype, "loading", void 0);
|
|
2504
|
-
__decorate([
|
|
2505
|
-
pectin.TrackExternal(),
|
|
2506
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2507
|
-
], LoadingContainerComponent.prototype, "messageModel", void 0);
|
|
2508
|
-
__decorate([
|
|
2509
|
-
pectin.StoreInValueModel("messageModel"),
|
|
2510
|
-
__metadata("design:type", String)
|
|
2511
|
-
], LoadingContainerComponent.prototype, "message", void 0);
|
|
2512
|
-
|
|
2513
2289
|
var NoopComponent = /** @class */ (function () {
|
|
2514
2290
|
function NoopComponent() {
|
|
2515
2291
|
}
|
|
@@ -2519,7 +2295,7 @@
|
|
|
2519
2295
|
{ type: i0.Component, args: [{
|
|
2520
2296
|
selector: 'aup-noop',
|
|
2521
2297
|
template: "",
|
|
2522
|
-
styles: [":host{display:block}
|
|
2298
|
+
styles: [":host{display:block}"]
|
|
2523
2299
|
},] }
|
|
2524
2300
|
];
|
|
2525
2301
|
NoopComponent.ctorParameters = function () { return []; };
|
|
@@ -2535,37 +2311,29 @@
|
|
|
2535
2311
|
{ type: i0.Component, args: [{
|
|
2536
2312
|
selector: 'aup-scroll-container',
|
|
2537
2313
|
template: "<div class=\"container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n",
|
|
2538
|
-
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}"]
|
|
2539
2315
|
},] }
|
|
2540
2316
|
];
|
|
2541
2317
|
ScrollContainerComponent.ctorParameters = function () { return []; };
|
|
2542
2318
|
|
|
2543
|
-
var SectionHeaderComponent = /** @class */ (function (
|
|
2544
|
-
__extends(SectionHeaderComponent, _super);
|
|
2319
|
+
var SectionHeaderComponent = /** @class */ (function () {
|
|
2545
2320
|
function SectionHeaderComponent() {
|
|
2546
|
-
|
|
2547
|
-
// readonly i18n = I18nMarsUi.components.layout.header;
|
|
2548
|
-
_this.size = 'medium';
|
|
2549
|
-
_this.borderTop = false;
|
|
2550
|
-
_this.borderBottom = false;
|
|
2551
|
-
return _this;
|
|
2321
|
+
this.underline = false;
|
|
2552
2322
|
}
|
|
2553
2323
|
SectionHeaderComponent.prototype.ngOnInit = function () {
|
|
2554
2324
|
};
|
|
2555
2325
|
return SectionHeaderComponent;
|
|
2556
|
-
}(
|
|
2326
|
+
}());
|
|
2557
2327
|
SectionHeaderComponent.decorators = [
|
|
2558
2328
|
{ type: i0.Component, args: [{
|
|
2559
2329
|
selector: 'aup-section-header',
|
|
2560
|
-
template: "<
|
|
2561
|
-
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)}"]
|
|
2562
2332
|
},] }
|
|
2563
2333
|
];
|
|
2564
2334
|
SectionHeaderComponent.ctorParameters = function () { return []; };
|
|
2565
2335
|
SectionHeaderComponent.propDecorators = {
|
|
2566
|
-
|
|
2567
|
-
borderTop: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-top',] }],
|
|
2568
|
-
borderBottom: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-bottom',] }]
|
|
2336
|
+
underline: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.underline',] }]
|
|
2569
2337
|
};
|
|
2570
2338
|
|
|
2571
2339
|
var SwitchCaseOption = /** @class */ (function () {
|
|
@@ -2686,7 +2454,7 @@
|
|
|
2686
2454
|
{ type: i0.Component, args: [{
|
|
2687
2455
|
selector: 'aup-switch-case',
|
|
2688
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",
|
|
2689
|
-
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}"]
|
|
2690
2458
|
},] }
|
|
2691
2459
|
];
|
|
2692
2460
|
SwitchCaseComponent.ctorParameters = function () { return [
|
|
@@ -2998,7 +2766,7 @@
|
|
|
2998
2766
|
{ type: i0.Component, args: [{
|
|
2999
2767
|
selector: 'aup-row-editor-controls',
|
|
3000
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",
|
|
3001
|
-
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}"]
|
|
3002
2770
|
},] }
|
|
3003
2771
|
];
|
|
3004
2772
|
EditRowControls.ctorParameters = function () { return []; };
|
|
@@ -3729,7 +3497,7 @@
|
|
|
3729
3497
|
{ type: i0.Component, args: [{
|
|
3730
3498
|
selector: 'aup-table-header-cell-renderer',
|
|
3731
3499
|
template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event.instance)\"></ng-container>\n",
|
|
3732
|
-
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%}"]
|
|
3733
3501
|
},] }
|
|
3734
3502
|
];
|
|
3735
3503
|
TableHeaderCellRendererComponent.ctorParameters = function () { return []; };
|
|
@@ -4129,7 +3897,7 @@
|
|
|
4129
3897
|
providers: [
|
|
4130
3898
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
4131
3899
|
],
|
|
4132
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}
|
|
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}"]
|
|
4133
3901
|
},] }
|
|
4134
3902
|
];
|
|
4135
3903
|
TableComponent.ctorParameters = function () { return [
|
|
@@ -4182,7 +3950,7 @@
|
|
|
4182
3950
|
{ type: i0.Component, args: [{
|
|
4183
3951
|
selector: 'aup-tree-inheritance-icon',
|
|
4184
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",
|
|
4185
|
-
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}"]
|
|
4186
3954
|
},] }
|
|
4187
3955
|
];
|
|
4188
3956
|
exports.TreeInheritanceIconComponent.ctorParameters = function () { return []; };
|
|
@@ -4467,7 +4235,7 @@
|
|
|
4467
4235
|
{ type: i0.Component, args: [{
|
|
4468
4236
|
selector: 'aup-tree-label-cell-renderer',
|
|
4469
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",
|
|
4470
|
-
styles: [":host{--line-color
|
|
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}"]
|
|
4471
4239
|
},] }
|
|
4472
4240
|
];
|
|
4473
4241
|
exports.TreeLabelCellRendererComponent.ctorParameters = function () { return []; };
|
|
@@ -4490,16 +4258,16 @@
|
|
|
4490
4258
|
var FlattenedTreeListModel = /** @class */ (function (_super) {
|
|
4491
4259
|
__extends(FlattenedTreeListModel, _super);
|
|
4492
4260
|
function FlattenedTreeListModel(source, childRef, expansionModel) {
|
|
4493
|
-
var _this = _super.call(this, source
|
|
4494
|
-
initialValue: [],
|
|
4495
|
-
identifiedWith: function (row) { return source.identityOf(row); }
|
|
4496
|
-
}) || this;
|
|
4261
|
+
var _this = _super.call(this, source) || this;
|
|
4497
4262
|
_this.source = source;
|
|
4498
4263
|
_this.childRef = childRef;
|
|
4499
4264
|
_this.expansionModel = expansionModel;
|
|
4500
4265
|
_this.trackSource(expansionModel.isExpandedPredicate);
|
|
4501
4266
|
return _this;
|
|
4502
4267
|
}
|
|
4268
|
+
FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
|
|
4269
|
+
return this.source.identityOf(item);
|
|
4270
|
+
};
|
|
4503
4271
|
FlattenedTreeListModel.prototype.compute = function (values) {
|
|
4504
4272
|
var _this = this;
|
|
4505
4273
|
var result = [];
|
|
@@ -4632,7 +4400,6 @@
|
|
|
4632
4400
|
var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
|
|
4633
4401
|
_this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
|
|
4634
4402
|
_this.setDataSource(_this.flattenedDataSource);
|
|
4635
|
-
_this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
|
|
4636
4403
|
return _this;
|
|
4637
4404
|
}
|
|
4638
4405
|
TreeTableModel.prototype.treeControlColumn = function (builder) {
|
|
@@ -4782,7 +4549,7 @@
|
|
|
4782
4549
|
providers: [
|
|
4783
4550
|
{ provide: AbstractTableComponent, useExisting: TreeTableComponent }
|
|
4784
4551
|
],
|
|
4785
|
-
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}"]
|
|
4786
4553
|
},] }
|
|
4787
4554
|
];
|
|
4788
4555
|
TreeTableComponent.ctorParameters = function () { return [
|
|
@@ -4839,7 +4606,7 @@
|
|
|
4839
4606
|
providers: [
|
|
4840
4607
|
{ provide: pectin.FocusManager }
|
|
4841
4608
|
],
|
|
4842
|
-
styles: [":host{display:block}
|
|
4609
|
+
styles: [":host{display:block}"]
|
|
4843
4610
|
},] }
|
|
4844
4611
|
];
|
|
4845
4612
|
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
@@ -4903,7 +4670,7 @@
|
|
|
4903
4670
|
{ type: i0.Component, args: [{
|
|
4904
4671
|
selector: 'aup-paginator',
|
|
4905
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",
|
|
4906
|
-
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}"]
|
|
4907
4674
|
},] }
|
|
4908
4675
|
];
|
|
4909
4676
|
PaginatorComponent.ctorParameters = function () { return []; };
|
|
@@ -4915,28 +4682,6 @@
|
|
|
4915
4682
|
__metadata("design:type", pectin.PageController)
|
|
4916
4683
|
], PaginatorComponent.prototype, "pageController", void 0);
|
|
4917
4684
|
|
|
4918
|
-
var LabelledValueComponent = /** @class */ (function (_super) {
|
|
4919
|
-
__extends(LabelledValueComponent, _super);
|
|
4920
|
-
function LabelledValueComponent() {
|
|
4921
|
-
return _super.call(this) || this;
|
|
4922
|
-
// const {chain} = Dsl.disposeWith(this);
|
|
4923
|
-
}
|
|
4924
|
-
LabelledValueComponent.prototype.ngOnInit = function () {
|
|
4925
|
-
};
|
|
4926
|
-
return LabelledValueComponent;
|
|
4927
|
-
}(DisposableComponent));
|
|
4928
|
-
LabelledValueComponent.decorators = [
|
|
4929
|
-
{ type: i0.Component, args: [{
|
|
4930
|
-
selector: 'aup-labelled-value',
|
|
4931
|
-
template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
|
|
4932
|
-
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"]
|
|
4933
|
-
},] }
|
|
4934
|
-
];
|
|
4935
|
-
LabelledValueComponent.ctorParameters = function () { return []; };
|
|
4936
|
-
LabelledValueComponent.propDecorators = {
|
|
4937
|
-
label: [{ type: i0.Input }]
|
|
4938
|
-
};
|
|
4939
|
-
|
|
4940
4685
|
var ComponentsModule = /** @class */ (function () {
|
|
4941
4686
|
function ComponentsModule(faIconLibrary) {
|
|
4942
4687
|
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
@@ -4945,29 +4690,6 @@
|
|
|
4945
4690
|
}());
|
|
4946
4691
|
ComponentsModule.decorators = [
|
|
4947
4692
|
{ type: i0.NgModule, args: [{
|
|
4948
|
-
imports: [
|
|
4949
|
-
i2.CommonModule,
|
|
4950
|
-
animations.BrowserAnimationsModule,
|
|
4951
|
-
forms.FormsModule,
|
|
4952
|
-
input.MatInputModule,
|
|
4953
|
-
formField.MatFormFieldModule,
|
|
4954
|
-
select.MatSelectModule,
|
|
4955
|
-
tabs.MatTabsModule,
|
|
4956
|
-
DirectivesModule,
|
|
4957
|
-
icon.MatIconModule,
|
|
4958
|
-
button.MatButtonModule,
|
|
4959
|
-
checkbox.MatCheckboxModule,
|
|
4960
|
-
table.MatTableModule,
|
|
4961
|
-
portal.PortalModule,
|
|
4962
|
-
scrolling.CdkScrollableModule,
|
|
4963
|
-
angularFontawesome.FontAwesomeModule,
|
|
4964
|
-
tooltip.MatTooltipModule,
|
|
4965
|
-
autocomplete.MatAutocompleteModule,
|
|
4966
|
-
menu.MatMenuModule,
|
|
4967
|
-
divider.MatDividerModule,
|
|
4968
|
-
progressSpinner.MatProgressSpinnerModule,
|
|
4969
|
-
progressBar.MatProgressBarModule
|
|
4970
|
-
],
|
|
4971
4693
|
declarations: [
|
|
4972
4694
|
AbstractInputComponent,
|
|
4973
4695
|
AbstractValueInputComponent,
|
|
@@ -5016,11 +4738,29 @@
|
|
|
5016
4738
|
BusyOverlayComponent,
|
|
5017
4739
|
EmptyStateComponent,
|
|
5018
4740
|
PaginatorComponent,
|
|
5019
|
-
AbstractTableComponent
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
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
|
|
5024
4764
|
],
|
|
5025
4765
|
exports: [
|
|
5026
4766
|
NumberInputComponent,
|
|
@@ -5057,9 +4797,6 @@
|
|
|
5057
4797
|
BusyOverlayComponent,
|
|
5058
4798
|
EmptyStateComponent,
|
|
5059
4799
|
PaginatorComponent,
|
|
5060
|
-
CardStackComponent,
|
|
5061
|
-
LabelledValueComponent,
|
|
5062
|
-
LoadingContainerComponent,
|
|
5063
4800
|
],
|
|
5064
4801
|
providers: [
|
|
5065
4802
|
FocusBindingFactory
|
|
@@ -5091,13 +4828,12 @@
|
|
|
5091
4828
|
* <span>This content will be between the two commands</span>
|
|
5092
4829
|
* </aup-activity-actions>
|
|
5093
4830
|
*/
|
|
5094
|
-
|
|
4831
|
+
var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
5095
4832
|
__extends(ActivityActionsComponent, _super);
|
|
5096
4833
|
function ActivityActionsComponent(cdr) {
|
|
5097
4834
|
var _this = _super.call(this) || this;
|
|
5098
4835
|
_this.cdr = cdr;
|
|
5099
|
-
_this.
|
|
5100
|
-
_this.align = ActivityActionsComponent.Align.STRETCH;
|
|
4836
|
+
_this.align = 'stretch';
|
|
5101
4837
|
return _this;
|
|
5102
4838
|
}
|
|
5103
4839
|
Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
|
|
@@ -5118,6 +4854,20 @@
|
|
|
5118
4854
|
enumerable: false,
|
|
5119
4855
|
configurable: true
|
|
5120
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
|
+
});
|
|
5121
4871
|
ActivityActionsComponent.prototype.ngOnInit = function () {
|
|
5122
4872
|
};
|
|
5123
4873
|
ActivityActionsComponent.prototype.hasConfirmFace = function () {
|
|
@@ -5133,45 +4883,35 @@
|
|
|
5133
4883
|
};
|
|
5134
4884
|
return ActivityActionsComponent;
|
|
5135
4885
|
}(DisposableComponent));
|
|
5136
|
-
|
|
4886
|
+
ActivityActionsComponent.decorators = [
|
|
5137
4887
|
{ type: i0.Component, args: [{
|
|
5138
4888
|
selector: 'aup-activity-actions',
|
|
5139
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",
|
|
5140
|
-
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}"]
|
|
5141
4891
|
},] }
|
|
5142
4892
|
];
|
|
5143
|
-
|
|
4893
|
+
ActivityActionsComponent.ctorParameters = function () { return [
|
|
5144
4894
|
{ type: i0.ChangeDetectorRef }
|
|
5145
4895
|
]; };
|
|
5146
|
-
|
|
4896
|
+
ActivityActionsComponent.propDecorators = {
|
|
5147
4897
|
confirmCommand: [{ type: i0.Input }],
|
|
5148
4898
|
cancelCommand: [{ type: i0.Input }],
|
|
5149
4899
|
faces: [{ type: i0.Input }],
|
|
5150
4900
|
confirmFace: [{ type: i0.Input }],
|
|
5151
4901
|
cancelFace: [{ type: i0.Input }],
|
|
5152
4902
|
style: [{ type: i0.Input }],
|
|
5153
|
-
|
|
5154
|
-
|
|
4903
|
+
align: [{ type: i0.Input }],
|
|
4904
|
+
alignEnd: [{ type: i0.HostBinding, args: ['class.align-end',] }],
|
|
4905
|
+
alignStretch: [{ type: i0.HostBinding, args: ['class.align-stretch',] }]
|
|
5155
4906
|
};
|
|
5156
4907
|
__decorate([
|
|
5157
4908
|
pectin.TrackExternal(),
|
|
5158
4909
|
__metadata("design:type", pectin.Command)
|
|
5159
|
-
],
|
|
4910
|
+
], ActivityActionsComponent.prototype, "confirmCommand", void 0);
|
|
5160
4911
|
__decorate([
|
|
5161
4912
|
pectin.TrackExternal(),
|
|
5162
4913
|
__metadata("design:type", pectin.Command)
|
|
5163
|
-
],
|
|
5164
|
-
(function (ActivityActionsComponent) {
|
|
5165
|
-
ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
|
|
5166
|
-
INLINE: 'inline',
|
|
5167
|
-
BLOCK: 'block'
|
|
5168
|
-
});
|
|
5169
|
-
ActivityActionsComponent.Align = typescriptStringEnums.Enum({
|
|
5170
|
-
START: 'start',
|
|
5171
|
-
END: 'end',
|
|
5172
|
-
STRETCH: 'stretch'
|
|
5173
|
-
});
|
|
5174
|
-
})(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
|
|
4914
|
+
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
5175
4915
|
|
|
5176
4916
|
var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
|
|
5177
4917
|
var Activity = /** @class */ (function (_super) {
|
|
@@ -5254,7 +4994,7 @@
|
|
|
5254
4994
|
];
|
|
5255
4995
|
Activity.ctorParameters = function () { return []; };
|
|
5256
4996
|
Activity.propDecorators = {
|
|
5257
|
-
activityActions: [{ type: i0.ViewChild, args: [
|
|
4997
|
+
activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
|
|
5258
4998
|
class: [{ type: i0.HostBinding, args: ['class',] }],
|
|
5259
4999
|
isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
|
|
5260
5000
|
};
|
|
@@ -5290,7 +5030,7 @@
|
|
|
5290
5030
|
{ type: i0.Component, args: [{
|
|
5291
5031
|
selector: 'aup-alert-dialog',
|
|
5292
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",
|
|
5293
|
-
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}
|
|
5033
|
+
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
|
|
5294
5034
|
},] }
|
|
5295
5035
|
];
|
|
5296
5036
|
AlertDialogComponent.ctorParameters = function () { return [
|
|
@@ -5346,7 +5086,7 @@
|
|
|
5346
5086
|
{ type: i0.Component, args: [{
|
|
5347
5087
|
selector: 'aup-confirmation-dialog',
|
|
5348
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",
|
|
5349
|
-
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}
|
|
5089
|
+
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
|
|
5350
5090
|
},] }
|
|
5351
5091
|
];
|
|
5352
5092
|
ConfirmThenDialogComponent.ctorParameters = function () { return [
|
|
@@ -5393,7 +5133,7 @@
|
|
|
5393
5133
|
{ type: i0.Component, args: [{
|
|
5394
5134
|
selector: 'aup-confirmation-dialog',
|
|
5395
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",
|
|
5396
|
-
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}
|
|
5136
|
+
styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
|
|
5397
5137
|
},] }
|
|
5398
5138
|
];
|
|
5399
5139
|
ConfirmationDialogComponent.ctorParameters = function () { return [
|
|
@@ -5564,7 +5304,7 @@
|
|
|
5564
5304
|
{ type: i0.Component, args: [{
|
|
5565
5305
|
selector: 'aup-activity-outlet',
|
|
5566
5306
|
template: '',
|
|
5567
|
-
styles: [":host{display:block}
|
|
5307
|
+
styles: [":host{display:block}"]
|
|
5568
5308
|
},] }
|
|
5569
5309
|
];
|
|
5570
5310
|
ActivityOutletComponent.ctorParameters = function () { return [
|
|
@@ -5778,8 +5518,8 @@
|
|
|
5778
5518
|
ActivityContainerComponent.decorators = [
|
|
5779
5519
|
{ type: i0.Component, args: [{
|
|
5780
5520
|
selector: 'aup-activity-container',
|
|
5781
|
-
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\"
|
|
5782
|
-
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}"]
|
|
5783
5523
|
},] }
|
|
5784
5524
|
];
|
|
5785
5525
|
ActivityContainerComponent.ctorParameters = function () { return []; };
|
|
@@ -5848,7 +5588,7 @@
|
|
|
5848
5588
|
{ type: i0.Component, args: [{
|
|
5849
5589
|
selector: 'aup-activity-title',
|
|
5850
5590
|
template: "<ng-content></ng-content>\n",
|
|
5851
|
-
styles: [":host{display:block}
|
|
5591
|
+
styles: [":host{display:block}"]
|
|
5852
5592
|
},] }
|
|
5853
5593
|
];
|
|
5854
5594
|
ActivityTitleComponent.propDecorators = {
|
|
@@ -5875,13 +5615,6 @@
|
|
|
5875
5615
|
});
|
|
5876
5616
|
return _this;
|
|
5877
5617
|
}
|
|
5878
|
-
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
|
|
5879
|
-
get: function () {
|
|
5880
|
-
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
5881
|
-
},
|
|
5882
|
-
enumerable: false,
|
|
5883
|
-
configurable: true
|
|
5884
|
-
});
|
|
5885
5618
|
AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
|
|
5886
5619
|
};
|
|
5887
5620
|
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
|
|
@@ -6123,23 +5856,16 @@
|
|
|
6123
5856
|
__extends(ModalActivityTriggerComponent, _super);
|
|
6124
5857
|
function ModalActivityTriggerComponent(interactionService) {
|
|
6125
5858
|
var _this = _super.call(this) || this;
|
|
6126
|
-
_this.
|
|
5859
|
+
_this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6127
5860
|
return _this;
|
|
6128
5861
|
}
|
|
6129
|
-
Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
|
|
6130
|
-
get: function () {
|
|
6131
|
-
return this._interactionContext;
|
|
6132
|
-
},
|
|
6133
|
-
enumerable: false,
|
|
6134
|
-
configurable: true
|
|
6135
|
-
});
|
|
6136
5862
|
return ModalActivityTriggerComponent;
|
|
6137
5863
|
}(AbstractActivityTriggerComponent));
|
|
6138
5864
|
ModalActivityTriggerComponent.decorators = [
|
|
6139
5865
|
{ type: i0.Component, args: [{
|
|
6140
5866
|
selector: 'aup-modal-activity-trigger',
|
|
6141
5867
|
template: "<aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n",
|
|
6142
|
-
styles: [":host{display:inline-block}
|
|
5868
|
+
styles: [":host{display:inline-block}"]
|
|
6143
5869
|
},] }
|
|
6144
5870
|
];
|
|
6145
5871
|
ModalActivityTriggerComponent.ctorParameters = function () { return [
|
|
@@ -6178,13 +5904,6 @@
|
|
|
6178
5904
|
enumerable: false,
|
|
6179
5905
|
configurable: true
|
|
6180
5906
|
});
|
|
6181
|
-
Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
|
|
6182
|
-
get: function () {
|
|
6183
|
-
return this.isActive();
|
|
6184
|
-
},
|
|
6185
|
-
enumerable: false,
|
|
6186
|
-
configurable: true
|
|
6187
|
-
});
|
|
6188
5907
|
InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
|
|
6189
5908
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
6190
5909
|
};
|
|
@@ -6225,7 +5944,7 @@
|
|
|
6225
5944
|
{ type: i0.Component, args: [{
|
|
6226
5945
|
selector: 'aup-in-place-interaction-context',
|
|
6227
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",
|
|
6228
|
-
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}"]
|
|
6229
5948
|
},] }
|
|
6230
5949
|
];
|
|
6231
5950
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6234,95 +5953,8 @@
|
|
|
6234
5953
|
]; };
|
|
6235
5954
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
6236
5955
|
activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
|
|
6237
|
-
animateFirstActivity: [{ type: i0.Input }]
|
|
6238
|
-
active: [{ type: i0.HostBinding, args: ["class.active",] }]
|
|
6239
|
-
};
|
|
6240
|
-
|
|
6241
|
-
/**
|
|
6242
|
-
*
|
|
6243
|
-
*/
|
|
6244
|
-
exports.AddCardActivityComponent = /** @class */ (function (_super) {
|
|
6245
|
-
__extends(AddCardActivityComponent, _super);
|
|
6246
|
-
function AddCardActivityComponent(interactionService) {
|
|
6247
|
-
var _this = _super.call(this) || this;
|
|
6248
|
-
_this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
|
|
6249
|
-
_this.renderAs = AddCardActivityComponent.RenderAs.CARD;
|
|
6250
|
-
_this.notCard = true;
|
|
6251
|
-
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
6252
|
-
_this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6253
|
-
_this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
|
|
6254
|
-
return _this;
|
|
6255
|
-
}
|
|
6256
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
|
|
6257
|
-
get: function () {
|
|
6258
|
-
return "render-as-" + this.renderAs;
|
|
6259
|
-
},
|
|
6260
|
-
enumerable: false,
|
|
6261
|
-
configurable: true
|
|
6262
|
-
});
|
|
6263
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
|
|
6264
|
-
get: function () {
|
|
6265
|
-
return this.interactionStyle + "-activity";
|
|
6266
|
-
},
|
|
6267
|
-
enumerable: false,
|
|
6268
|
-
configurable: true
|
|
6269
|
-
});
|
|
6270
|
-
AddCardActivityComponent.prototype.isRenderAsCard = function () {
|
|
6271
|
-
return this.renderAs === 'card';
|
|
6272
|
-
};
|
|
6273
|
-
AddCardActivityComponent.prototype.isRenderAsButton = function () {
|
|
6274
|
-
return this.renderAs === 'button';
|
|
6275
|
-
};
|
|
6276
|
-
AddCardActivityComponent.prototype.ngOnInit = function () {
|
|
6277
|
-
};
|
|
6278
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
|
|
6279
|
-
get: function () {
|
|
6280
|
-
switch (this.interactionStyle) {
|
|
6281
|
-
case 'inline':
|
|
6282
|
-
return this.inlineInteractionContext;
|
|
6283
|
-
default:
|
|
6284
|
-
return this.modalInteractionContext;
|
|
6285
|
-
}
|
|
6286
|
-
},
|
|
6287
|
-
enumerable: false,
|
|
6288
|
-
configurable: true
|
|
6289
|
-
});
|
|
6290
|
-
AddCardActivityComponent.prototype.isModal = function () {
|
|
6291
|
-
return this.interactionStyle === 'modal';
|
|
6292
|
-
};
|
|
6293
|
-
AddCardActivityComponent.prototype.isInline = function () {
|
|
6294
|
-
return this.interactionStyle === 'inline';
|
|
6295
|
-
};
|
|
6296
|
-
return AddCardActivityComponent;
|
|
6297
|
-
}(AbstractActivityTriggerComponent));
|
|
6298
|
-
exports.AddCardActivityComponent.decorators = [
|
|
6299
|
-
{ type: i0.Component, args: [{
|
|
6300
|
-
selector: 'aup-add-card-activity',
|
|
6301
|
-
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",
|
|
6302
|
-
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"]
|
|
6303
|
-
},] }
|
|
6304
|
-
];
|
|
6305
|
-
exports.AddCardActivityComponent.ctorParameters = function () { return [
|
|
6306
|
-
{ type: exports.InteractionService }
|
|
6307
|
-
]; };
|
|
6308
|
-
exports.AddCardActivityComponent.propDecorators = {
|
|
6309
|
-
inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
6310
|
-
interactionStyle: [{ type: i0.Input }],
|
|
6311
|
-
renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
|
|
6312
|
-
notCard: [{ type: i0.HostBinding, args: ['class.not-card',] }],
|
|
6313
|
-
renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
6314
|
-
activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
5956
|
+
animateFirstActivity: [{ type: i0.Input }]
|
|
6315
5957
|
};
|
|
6316
|
-
(function (AddCardActivityComponent) {
|
|
6317
|
-
AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
|
|
6318
|
-
MODAL: 'modal',
|
|
6319
|
-
INLINE: 'inline'
|
|
6320
|
-
});
|
|
6321
|
-
AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
|
|
6322
|
-
CARD: 'card',
|
|
6323
|
-
BUTTON: 'button'
|
|
6324
|
-
});
|
|
6325
|
-
})(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
|
|
6326
5958
|
|
|
6327
5959
|
/**
|
|
6328
5960
|
* Css Vars.
|
|
@@ -6369,7 +6001,7 @@
|
|
|
6369
6001
|
{ type: i0.Component, args: [{
|
|
6370
6002
|
selector: 'aup-add-item-interaction-context',
|
|
6371
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",
|
|
6372
|
-
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}"]
|
|
6373
6005
|
},] }
|
|
6374
6006
|
];
|
|
6375
6007
|
AddItemInteractionContextComponent.ctorParameters = function () { return []; };
|
|
@@ -6393,25 +6025,18 @@
|
|
|
6393
6025
|
function InlineActivityTriggerComponent() {
|
|
6394
6026
|
return _super.call(this) || this;
|
|
6395
6027
|
}
|
|
6396
|
-
Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
|
|
6397
|
-
get: function () {
|
|
6398
|
-
return this._interactionContext;
|
|
6399
|
-
},
|
|
6400
|
-
enumerable: false,
|
|
6401
|
-
configurable: true
|
|
6402
|
-
});
|
|
6403
6028
|
return InlineActivityTriggerComponent;
|
|
6404
6029
|
}(AbstractActivityTriggerComponent));
|
|
6405
6030
|
InlineActivityTriggerComponent.decorators = [
|
|
6406
6031
|
{ type: i0.Component, args: [{
|
|
6407
6032
|
selector: 'aup-inline-activity-trigger',
|
|
6408
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",
|
|
6409
|
-
styles: [":host{display:inline-block}
|
|
6034
|
+
styles: [":host{display:inline-block}"]
|
|
6410
6035
|
},] }
|
|
6411
6036
|
];
|
|
6412
6037
|
InlineActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6413
6038
|
InlineActivityTriggerComponent.propDecorators = {
|
|
6414
|
-
|
|
6039
|
+
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
6415
6040
|
};
|
|
6416
6041
|
|
|
6417
6042
|
/**
|
|
@@ -6449,7 +6074,6 @@
|
|
|
6449
6074
|
var self = this;
|
|
6450
6075
|
var overlayRef = this._overlay.create({
|
|
6451
6076
|
hasBackdrop: false,
|
|
6452
|
-
disposeOnNavigation: true,
|
|
6453
6077
|
panelClass: 'aup-popup-interaction-panel',
|
|
6454
6078
|
positionStrategy: this._overlay.position()
|
|
6455
6079
|
.flexibleConnectedTo(this._element)
|
|
@@ -6505,7 +6129,7 @@
|
|
|
6505
6129
|
{ type: i0.Component, args: [{
|
|
6506
6130
|
selector: 'aup-popup-interaction-context',
|
|
6507
6131
|
template: "<ng-content></ng-content>\n",
|
|
6508
|
-
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)}"]
|
|
6509
6133
|
},] }
|
|
6510
6134
|
];
|
|
6511
6135
|
PopupInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6585,114 +6209,45 @@
|
|
|
6585
6209
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
6586
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)
|
|
6587
6211
|
// @dynamic
|
|
6588
|
-
|
|
6589
|
-
__extends(
|
|
6590
|
-
function
|
|
6591
|
-
var _this = this;
|
|
6592
|
-
var _a, _b;
|
|
6593
|
-
_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;
|
|
6594
6216
|
_this.data = data;
|
|
6595
6217
|
_this.class = 'aup-input-activity';
|
|
6596
6218
|
var form = new pectin.DirtyTrackingForm();
|
|
6597
6219
|
_this.valueModel = form.valueModel(_this.data.initialValue);
|
|
6598
6220
|
_this.valueModel.validateUsing(data.validators || []);
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
icon: function () { return 'mat:clear'; }
|
|
6605
|
-
};
|
|
6606
|
-
_this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6607
|
-
var self_1, allGood_1, result, e_1;
|
|
6608
|
-
return __generator(this, function (_c) {
|
|
6609
|
-
switch (_c.label) {
|
|
6610
|
-
case 0:
|
|
6611
|
-
if (!this.valueModel.validate()) return [3 /*break*/, 6];
|
|
6612
|
-
if (!data.save) return [3 /*break*/, 5];
|
|
6613
|
-
self_1 = this;
|
|
6614
|
-
_c.label = 1;
|
|
6615
|
-
case 1:
|
|
6616
|
-
_c.trys.push([1, 3, , 4]);
|
|
6617
|
-
allGood_1 = true;
|
|
6618
|
-
return [4 /*yield*/, data.save(this.valueModel.value, {
|
|
6619
|
-
injectError: function (error) {
|
|
6620
|
-
allGood_1 = false;
|
|
6621
|
-
self_1.valueModel.injectErrors([error]);
|
|
6622
|
-
}
|
|
6623
|
-
})];
|
|
6624
|
-
case 2:
|
|
6625
|
-
result = _c.sent();
|
|
6626
|
-
if (allGood_1) {
|
|
6627
|
-
this.done(this.valueModel.value);
|
|
6628
|
-
}
|
|
6629
|
-
return [3 /*break*/, 4];
|
|
6630
|
-
case 3:
|
|
6631
|
-
e_1 = _c.sent();
|
|
6632
|
-
console.error(e_1);
|
|
6633
|
-
return [3 /*break*/, 4];
|
|
6634
|
-
case 4: return [3 /*break*/, 6];
|
|
6635
|
-
case 5:
|
|
6636
|
-
this.done(this.valueModel.value);
|
|
6637
|
-
_c.label = 6;
|
|
6638
|
-
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(); });
|
|
6639
6226
|
}
|
|
6640
|
-
|
|
6641
|
-
|
|
6227
|
+
else {
|
|
6228
|
+
_this.done(_this.valueModel.value);
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
});
|
|
6642
6232
|
_this.cancelCommand = pectin.Command.create(function () {
|
|
6643
6233
|
_this.cancel();
|
|
6644
6234
|
});
|
|
6645
|
-
_this.busyWhile(_this.confirmCommand.busy);
|
|
6646
6235
|
return _this;
|
|
6647
6236
|
}
|
|
6648
|
-
|
|
6649
|
-
get: function () {
|
|
6650
|
-
var _a, _b;
|
|
6651
|
-
return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
|
|
6652
|
-
},
|
|
6653
|
-
enumerable: false,
|
|
6654
|
-
configurable: true
|
|
6655
|
-
});
|
|
6656
|
-
InputActivity.prototype.onActivityReady = function () {
|
|
6237
|
+
AbstractInputActivity.prototype.onActivityReady = function () {
|
|
6657
6238
|
this.valueModel.focusContext.requestFocus();
|
|
6658
6239
|
};
|
|
6659
|
-
|
|
6660
|
-
get: function () {
|
|
6661
|
-
var _a;
|
|
6662
|
-
return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
|
|
6663
|
-
},
|
|
6664
|
-
enumerable: false,
|
|
6665
|
-
configurable: true
|
|
6666
|
-
});
|
|
6667
|
-
InputActivity.prototype.onEscape = function () {
|
|
6668
|
-
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
|
|
6669
|
-
this.cancelCommand.execute();
|
|
6670
|
-
}
|
|
6671
|
-
};
|
|
6672
|
-
InputActivity.prototype.shouldCancelOnEscape = function () {
|
|
6673
|
-
return ___namespace.isNil(this.data.cancelOnEscape) // we default to true..
|
|
6674
|
-
|| this.data.cancelOnEscape;
|
|
6675
|
-
};
|
|
6676
|
-
return InputActivity;
|
|
6240
|
+
return AbstractInputActivity;
|
|
6677
6241
|
}(Activity));
|
|
6678
|
-
|
|
6242
|
+
AbstractInputActivity.decorators = [
|
|
6679
6243
|
{ type: i0.Component, args: [{ template: "" },] }
|
|
6680
6244
|
];
|
|
6681
|
-
|
|
6245
|
+
AbstractInputActivity.ctorParameters = function () { return [
|
|
6682
6246
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
6683
6247
|
]; };
|
|
6684
|
-
|
|
6685
|
-
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6686
|
-
layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
|
|
6687
|
-
additionalCssClassName: [{ type: i0.HostBinding, args: ["class",] }],
|
|
6688
|
-
onEscape: [{ type: i0.HostListener, args: ['keydown.escape',] }]
|
|
6248
|
+
AbstractInputActivity.propDecorators = {
|
|
6249
|
+
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6689
6250
|
};
|
|
6690
|
-
(function (InputActivity) {
|
|
6691
|
-
InputActivity.Layout = typescriptStringEnums.Enum({
|
|
6692
|
-
INLINE: 'inline',
|
|
6693
|
-
BLOCK: 'block'
|
|
6694
|
-
});
|
|
6695
|
-
})(exports.InputActivity || (exports.InputActivity = {}));
|
|
6696
6251
|
|
|
6697
6252
|
var StringInputActivity = /** @class */ (function (_super) {
|
|
6698
6253
|
__extends(StringInputActivity, _super);
|
|
@@ -6700,11 +6255,11 @@
|
|
|
6700
6255
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6701
6256
|
}
|
|
6702
6257
|
return StringInputActivity;
|
|
6703
|
-
}(
|
|
6258
|
+
}(AbstractInputActivity));
|
|
6704
6259
|
StringInputActivity.decorators = [
|
|
6705
6260
|
{ type: i0.Component, args: [{
|
|
6706
6261
|
selector: 'aup-string-input-activity',
|
|
6707
|
-
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 "
|
|
6708
6263
|
},] }
|
|
6709
6264
|
];
|
|
6710
6265
|
|
|
@@ -6734,11 +6289,11 @@
|
|
|
6734
6289
|
configurable: true
|
|
6735
6290
|
});
|
|
6736
6291
|
return SelectInputActivity;
|
|
6737
|
-
}(
|
|
6292
|
+
}(AbstractInputActivity));
|
|
6738
6293
|
SelectInputActivity.decorators = [
|
|
6739
6294
|
{ type: i0.Component, args: [{
|
|
6740
6295
|
selector: 'aup-select-input-activity',
|
|
6741
|
-
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 "
|
|
6742
6297
|
},] }
|
|
6743
6298
|
];
|
|
6744
6299
|
|
|
@@ -6845,6 +6400,36 @@
|
|
|
6845
6400
|
return TableModel;
|
|
6846
6401
|
}(AbstractTableModel));
|
|
6847
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
|
+
|
|
6848
6433
|
/**
|
|
6849
6434
|
* @file Automatically generated by barrelsby.
|
|
6850
6435
|
*/
|
|
@@ -6857,260 +6442,21 @@
|
|
|
6857
6442
|
_this.anchorY = 'bottom';
|
|
6858
6443
|
return _this;
|
|
6859
6444
|
}
|
|
6860
|
-
Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
|
|
6861
|
-
get: function () {
|
|
6862
|
-
return this._interactionContext;
|
|
6863
|
-
},
|
|
6864
|
-
enumerable: false,
|
|
6865
|
-
configurable: true
|
|
6866
|
-
});
|
|
6867
6445
|
return PopupActivityTriggerComponent;
|
|
6868
6446
|
}(AbstractActivityTriggerComponent));
|
|
6869
6447
|
PopupActivityTriggerComponent.decorators = [
|
|
6870
6448
|
{ type: i0.Component, args: [{
|
|
6871
6449
|
selector: 'aup-popup-activity-trigger',
|
|
6872
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",
|
|
6873
|
-
styles: [":host{display:inline-block}
|
|
6451
|
+
styles: [":host{display:inline-block}"]
|
|
6874
6452
|
},] }
|
|
6875
6453
|
];
|
|
6876
6454
|
PopupActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6877
6455
|
PopupActivityTriggerComponent.propDecorators = {
|
|
6878
6456
|
anchorX: [{ type: i0.Input }],
|
|
6879
6457
|
anchorY: [{ type: i0.Input }],
|
|
6880
|
-
|
|
6881
|
-
};
|
|
6882
|
-
|
|
6883
|
-
exports.InlineEditorModel = /** @class */ (function (_super) {
|
|
6884
|
-
__extends(InlineEditorModel, _super);
|
|
6885
|
-
function InlineEditorModel(valueModel, saveCallback) {
|
|
6886
|
-
var _this = _super.call(this) || this;
|
|
6887
|
-
_this.valueModel = valueModel;
|
|
6888
|
-
_this.saveCallback = saveCallback;
|
|
6889
|
-
_this.editing = new pectin.MutableValueModel(false);
|
|
6890
|
-
_this._validators = new pectin.MutableListModel();
|
|
6891
|
-
_this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
|
|
6892
|
-
pectin.assert.notNil(valueModel);
|
|
6893
|
-
var when = pectin.Dsl.disposeWith(_this).when;
|
|
6894
|
-
when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
6895
|
-
return _this;
|
|
6896
|
-
}
|
|
6897
|
-
Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
|
|
6898
|
-
get: function () {
|
|
6899
|
-
return this._editingEnabled.readonly;
|
|
6900
|
-
},
|
|
6901
|
-
enumerable: false,
|
|
6902
|
-
configurable: true
|
|
6903
|
-
});
|
|
6904
|
-
InlineEditorModel.prototype.disableWhile = function (condition) {
|
|
6905
|
-
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
6906
|
-
this.enableWhile(chain(condition).isFalsey());
|
|
6907
|
-
return this;
|
|
6908
|
-
};
|
|
6909
|
-
InlineEditorModel.prototype.enableWhile = function (condition) {
|
|
6910
|
-
this._editingEnabled.setDelegate(condition);
|
|
6911
|
-
return this;
|
|
6912
|
-
};
|
|
6913
|
-
Object.defineProperty(InlineEditorModel.prototype, "validators", {
|
|
6914
|
-
get: function () {
|
|
6915
|
-
return this._validators.readonly;
|
|
6916
|
-
},
|
|
6917
|
-
enumerable: false,
|
|
6918
|
-
configurable: true
|
|
6919
|
-
});
|
|
6920
|
-
InlineEditorModel.prototype.validateUsing = function (validator) {
|
|
6921
|
-
this._validators.push(validator);
|
|
6922
|
-
return this;
|
|
6923
|
-
};
|
|
6924
|
-
InlineEditorModel.prototype.isEditing = function () {
|
|
6925
|
-
return this.editing.value;
|
|
6926
|
-
};
|
|
6927
|
-
InlineEditorModel.prototype.cancelEdit = function () {
|
|
6928
|
-
this.editing.value = false;
|
|
6929
|
-
};
|
|
6930
|
-
InlineEditorModel.prototype.startEditing = function () {
|
|
6931
|
-
this.editing.value = true;
|
|
6932
|
-
};
|
|
6933
|
-
return InlineEditorModel;
|
|
6934
|
-
}(pectin.GarbageCollector));
|
|
6935
|
-
(function (InlineEditorModel) {
|
|
6936
|
-
function create(valueModel, options) {
|
|
6937
|
-
return new InlineEditorModel(valueModel, options.save);
|
|
6938
|
-
}
|
|
6939
|
-
InlineEditorModel.create = create;
|
|
6940
|
-
})(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
|
|
6941
|
-
pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
|
|
6942
|
-
|
|
6943
|
-
/**
|
|
6944
|
-
* @example
|
|
6945
|
-
* const source: ValueModel<string> = ...;
|
|
6946
|
-
* const model = InlineEditorModel.create(source, {
|
|
6947
|
-
* save(updated:string, context: EditContext) => {
|
|
6948
|
-
* try {
|
|
6949
|
-
* try and save the thing...
|
|
6950
|
-
* } catch(error) {
|
|
6951
|
-
* context.injectError(error)
|
|
6952
|
-
* }
|
|
6953
|
-
* }).validateUsing(Validator.present("We'll need a value");
|
|
6954
|
-
*
|
|
6955
|
-
* # in the view
|
|
6956
|
-
* <aup-inline-string-editor
|
|
6957
|
-
* label="My field"
|
|
6958
|
-
* placeHolder="I'm ready for a string..."
|
|
6959
|
-
* [editorModel]="model"></aup-inline-string-editor>
|
|
6960
|
-
*/
|
|
6961
|
-
exports.InlineStringEditorComponent = /** @class */ (function (_super) {
|
|
6962
|
-
__extends(InlineStringEditorComponent, _super);
|
|
6963
|
-
function InlineStringEditorComponent(interactionService) {
|
|
6964
|
-
var _this = _super.call(this) || this;
|
|
6965
|
-
_this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
6966
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
6967
|
-
var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6968
|
-
var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
|
|
6969
|
-
return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
|
|
6970
|
-
}, { allowNil: true });
|
|
6971
|
-
_this.editFaceModel = resolvedFacesModel.pluck('edit');
|
|
6972
|
-
_this.saveFace = resolvedFacesModel.pluck('save');
|
|
6973
|
-
_this.cancelFace = resolvedFacesModel.pluck('cancel');
|
|
6974
|
-
var self = _this;
|
|
6975
|
-
_this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6976
|
-
var e_1;
|
|
6977
|
-
return __generator(this, function (_a) {
|
|
6978
|
-
switch (_a.label) {
|
|
6979
|
-
case 0:
|
|
6980
|
-
this.editorModel.editing.value = true;
|
|
6981
|
-
_a.label = 1;
|
|
6982
|
-
case 1:
|
|
6983
|
-
_a.trys.push([1, 3, 4, 5]);
|
|
6984
|
-
return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
|
|
6985
|
-
case 2:
|
|
6986
|
-
_a.sent();
|
|
6987
|
-
return [3 /*break*/, 5];
|
|
6988
|
-
case 3:
|
|
6989
|
-
e_1 = _a.sent();
|
|
6990
|
-
return [3 /*break*/, 5];
|
|
6991
|
-
case 4:
|
|
6992
|
-
this.editorModel.editing.value = false;
|
|
6993
|
-
return [7 /*endfinally*/];
|
|
6994
|
-
case 5: return [2 /*return*/];
|
|
6995
|
-
}
|
|
6996
|
-
});
|
|
6997
|
-
}); }).enableWhile(_this.editingEnabled);
|
|
6998
|
-
_this.onDispose(function () { return _this.cancelEdit(); });
|
|
6999
|
-
return _this;
|
|
7000
|
-
}
|
|
7001
|
-
InlineStringEditorComponent.prototype.ngOnInit = function () {
|
|
7002
|
-
var _this = this;
|
|
7003
|
-
// our editor model is a one time binding without delegates so we can only
|
|
7004
|
-
// use it once we've been initialised
|
|
7005
|
-
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
7006
|
-
if (!this.editorModel) {
|
|
7007
|
-
typescriptUtilities.lang.illegalState('editorModel is required');
|
|
7008
|
-
}
|
|
7009
|
-
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
7010
|
-
when(this.editorModel.editing).becomesTruthy(function () {
|
|
7011
|
-
_this.editCommand.execute();
|
|
7012
|
-
}, { asLongAs: this.editCommand.enabled });
|
|
7013
|
-
when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
7014
|
-
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
7015
|
-
// deviceDescription.isNil()
|
|
7016
|
-
).areTruthy();
|
|
7017
|
-
this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
|
|
7018
|
-
return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
|
|
7019
|
-
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
7020
|
-
};
|
|
7021
|
-
InlineStringEditorComponent.prototype.createInputActivityData = function () {
|
|
7022
|
-
var self = this;
|
|
7023
|
-
return {
|
|
7024
|
-
initialValue: self.editorModel.valueModel.value,
|
|
7025
|
-
confirmFace: self.saveFace.value,
|
|
7026
|
-
cancelFace: self.cancelFace.value,
|
|
7027
|
-
placeholder: self.placeHolderModel.value,
|
|
7028
|
-
label: self.label,
|
|
7029
|
-
layout: exports.InputActivity.Layout.INLINE,
|
|
7030
|
-
validators: self.editorModel.validators.value,
|
|
7031
|
-
save: function (value, inputContext) {
|
|
7032
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7033
|
-
return __generator(this, function (_a) {
|
|
7034
|
-
switch (_a.label) {
|
|
7035
|
-
case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
|
|
7036
|
-
case 1:
|
|
7037
|
-
_a.sent();
|
|
7038
|
-
return [2 /*return*/];
|
|
7039
|
-
}
|
|
7040
|
-
});
|
|
7041
|
-
});
|
|
7042
|
-
}
|
|
7043
|
-
};
|
|
7044
|
-
};
|
|
7045
|
-
InlineStringEditorComponent.prototype.cancelEdit = function () {
|
|
7046
|
-
if (this.isEditing()) {
|
|
7047
|
-
this.interactionContext.cancelActiveActivity();
|
|
7048
|
-
}
|
|
7049
|
-
};
|
|
7050
|
-
InlineStringEditorComponent.prototype.startEdit = function () {
|
|
7051
|
-
if (!this.isEditing() && this.editCommand.enabled.value) {
|
|
7052
|
-
this.editCommand.execute();
|
|
7053
|
-
}
|
|
7054
|
-
};
|
|
7055
|
-
InlineStringEditorComponent.prototype.isEditing = function () {
|
|
7056
|
-
return this.interactionContext.isActive();
|
|
7057
|
-
};
|
|
7058
|
-
InlineStringEditorComponent.prototype.isEmpty = function () {
|
|
7059
|
-
return this.empty.value;
|
|
7060
|
-
};
|
|
7061
|
-
return InlineStringEditorComponent;
|
|
7062
|
-
}(DisposableComponent));
|
|
7063
|
-
exports.InlineStringEditorComponent.decorators = [
|
|
7064
|
-
{ type: i0.Component, args: [{
|
|
7065
|
-
selector: 'aup-inline-string-editor',
|
|
7066
|
-
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"
|
|
7067
|
-
},] }
|
|
7068
|
-
];
|
|
7069
|
-
exports.InlineStringEditorComponent.ctorParameters = function () { return [
|
|
7070
|
-
{ type: exports.InteractionService }
|
|
7071
|
-
]; };
|
|
7072
|
-
exports.InlineStringEditorComponent.propDecorators = {
|
|
7073
|
-
editorModel: [{ type: i0.Input }],
|
|
7074
|
-
facesModel: [{ type: i0.Input }],
|
|
7075
|
-
faces: [{ type: i0.Input }],
|
|
7076
|
-
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
|
|
7077
|
-
label: [{ type: i0.Input }],
|
|
7078
|
-
placeHolder: [{ type: i0.Input }],
|
|
7079
|
-
placeHolderModel: [{ type: i0.Input }]
|
|
6458
|
+
interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
7080
6459
|
};
|
|
7081
|
-
__decorate([
|
|
7082
|
-
pectin.TrackExternal(),
|
|
7083
|
-
__metadata("design:type", exports.InlineEditorModel)
|
|
7084
|
-
], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
|
|
7085
|
-
__decorate([
|
|
7086
|
-
pectin.TrackExternal(),
|
|
7087
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7088
|
-
], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
|
|
7089
|
-
__decorate([
|
|
7090
|
-
pectin.StoreInValueModel('facesModel'),
|
|
7091
|
-
__metadata("design:type", Object)
|
|
7092
|
-
], exports.InlineStringEditorComponent.prototype, "faces", void 0);
|
|
7093
|
-
__decorate([
|
|
7094
|
-
pectin.StoreInValueModel('placeHolderModel'),
|
|
7095
|
-
__metadata("design:type", String)
|
|
7096
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
|
|
7097
|
-
__decorate([
|
|
7098
|
-
pectin.TrackExternal(),
|
|
7099
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7100
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
7101
|
-
(function (InlineStringEditorComponent) {
|
|
7102
|
-
InlineStringEditorComponent.DEFAULT_FACES = {
|
|
7103
|
-
edit: {
|
|
7104
|
-
icon: function () { return 'mat:edit'; }
|
|
7105
|
-
},
|
|
7106
|
-
save: {
|
|
7107
|
-
icon: function () { return 'mat:check'; }
|
|
7108
|
-
},
|
|
7109
|
-
cancel: {
|
|
7110
|
-
icon: function () { return 'mat:clear'; }
|
|
7111
|
-
}
|
|
7112
|
-
};
|
|
7113
|
-
})(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
|
|
7114
6460
|
|
|
7115
6461
|
var InteractionModule = /** @class */ (function () {
|
|
7116
6462
|
function InteractionModule() {
|
|
@@ -7130,11 +6476,7 @@
|
|
|
7130
6476
|
DirectivesModule,
|
|
7131
6477
|
flexLayout.FlexModule,
|
|
7132
6478
|
flexLayout.GridModule,
|
|
7133
|
-
ComponentsModule
|
|
7134
|
-
forms.FormsModule,
|
|
7135
|
-
input.MatInputModule,
|
|
7136
|
-
formField.MatFormFieldModule,
|
|
7137
|
-
a11y.A11yModule
|
|
6479
|
+
ComponentsModule
|
|
7138
6480
|
],
|
|
7139
6481
|
declarations: [
|
|
7140
6482
|
ActivityContainerComponent,
|
|
@@ -7144,22 +6486,20 @@
|
|
|
7144
6486
|
ActivityOutletComponent,
|
|
7145
6487
|
InPlaceInteractionContextComponent,
|
|
7146
6488
|
AddItemInteractionContextComponent,
|
|
7147
|
-
|
|
6489
|
+
ActivityActionsComponent,
|
|
7148
6490
|
PopupInteractionContextComponent,
|
|
7149
6491
|
StringInputActivity,
|
|
7150
6492
|
SelectInputActivity,
|
|
7151
|
-
|
|
6493
|
+
AbstractInputActivity,
|
|
7152
6494
|
InteractionContextTriggerFor,
|
|
7153
6495
|
Activity,
|
|
7154
6496
|
ActivityTitleComponent,
|
|
7155
6497
|
ActivityBodyComponent,
|
|
7156
|
-
|
|
6498
|
+
ActivityActionsComponent,
|
|
7157
6499
|
AbstractActivityTriggerComponent,
|
|
7158
6500
|
PopupActivityTriggerComponent,
|
|
7159
6501
|
InlineActivityTriggerComponent,
|
|
7160
|
-
ModalActivityTriggerComponent
|
|
7161
|
-
exports.AddCardActivityComponent,
|
|
7162
|
-
exports.InlineStringEditorComponent,
|
|
6502
|
+
ModalActivityTriggerComponent
|
|
7163
6503
|
],
|
|
7164
6504
|
exports: [
|
|
7165
6505
|
ActivityContainerComponent,
|
|
@@ -7167,7 +6507,7 @@
|
|
|
7167
6507
|
ActivityTitleComponent,
|
|
7168
6508
|
InPlaceInteractionContextComponent,
|
|
7169
6509
|
AddItemInteractionContextComponent,
|
|
7170
|
-
|
|
6510
|
+
ActivityActionsComponent,
|
|
7171
6511
|
PopupInteractionContextComponent,
|
|
7172
6512
|
InteractionContextTriggerFor,
|
|
7173
6513
|
StringInputActivity,
|
|
@@ -7175,9 +6515,7 @@
|
|
|
7175
6515
|
ActivityBodyComponent,
|
|
7176
6516
|
PopupActivityTriggerComponent,
|
|
7177
6517
|
InlineActivityTriggerComponent,
|
|
7178
|
-
ModalActivityTriggerComponent
|
|
7179
|
-
exports.AddCardActivityComponent,
|
|
7180
|
-
exports.InlineStringEditorComponent,
|
|
6518
|
+
ModalActivityTriggerComponent
|
|
7181
6519
|
],
|
|
7182
6520
|
entryComponents: [
|
|
7183
6521
|
ActivityContainerComponent,
|
|
@@ -7489,28 +6827,17 @@
|
|
|
7489
6827
|
_this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
|
|
7490
6828
|
return _this;
|
|
7491
6829
|
}
|
|
6830
|
+
// @Trace()
|
|
7492
6831
|
PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
|
|
7493
6832
|
var _this = this;
|
|
7494
6833
|
pectin.assert.isNil(this.visitModel.value);
|
|
7495
6834
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
7496
6835
|
this.visitModel.value = visit;
|
|
7497
6836
|
pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
7498
|
-
|
|
7499
|
-
// route in one go at the end.
|
|
7500
|
-
this.placeDefinition
|
|
7501
|
-
.getVisitParameterDefs()
|
|
7502
|
-
.forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
|
|
6837
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
7503
6838
|
when(this.visitModel).changes(function (current, previous) {
|
|
7504
6839
|
notifyVisitChanged(current, previous);
|
|
7505
6840
|
}, { unless: this._inVisitUpdate });
|
|
7506
|
-
// TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
|
|
7507
|
-
// now we're not doing it as it's a fair bit of effort and will only affect people if they're
|
|
7508
|
-
// cutting and pasting urls to each other.
|
|
7509
|
-
// // the binding process can update the visit (e.g. if a selection model has already selected during
|
|
7510
|
-
// // component construction) and there was no value specified in the route
|
|
7511
|
-
// if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
|
|
7512
|
-
// notifyVisitChanged(this.visitModel.value, visit)
|
|
7513
|
-
// }
|
|
7514
6841
|
};
|
|
7515
6842
|
PlaceComponent.prototype.updateVisit = function (visit) {
|
|
7516
6843
|
var _this = this;
|
|
@@ -7524,12 +6851,7 @@
|
|
|
7524
6851
|
return !!this.visitModel.value;
|
|
7525
6852
|
};
|
|
7526
6853
|
// @Trace()
|
|
7527
|
-
|
|
7528
|
-
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
7529
|
-
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
7530
|
-
* method will return ture to nofiy the the visit has changed.
|
|
7531
|
-
*/
|
|
7532
|
-
PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
|
|
6854
|
+
PlaceComponent.prototype.installBinding = function (parameterDef) {
|
|
7533
6855
|
var model = this[parameterDef.propertyName];
|
|
7534
6856
|
pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
|
|
7535
6857
|
var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
|
|
@@ -7543,17 +6865,7 @@
|
|
|
7543
6865
|
return currentVisit.replace(parameterDef, value);
|
|
7544
6866
|
}
|
|
7545
6867
|
}));
|
|
7546
|
-
|
|
7547
|
-
// 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
|
|
7548
|
-
// component constructor) then we should push that to the route.
|
|
7549
|
-
var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
|
|
7550
|
-
var isInModel = !___namespace.isNil(model.value);
|
|
7551
|
-
if (!isInVisit && isInModel) {
|
|
7552
|
-
binding.writeLeft(); // push it to the route
|
|
7553
|
-
}
|
|
7554
|
-
else {
|
|
7555
|
-
binding.writeRight(); // push it to the model
|
|
7556
|
-
}
|
|
6868
|
+
binding.writeRight();
|
|
7557
6869
|
};
|
|
7558
6870
|
Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
|
|
7559
6871
|
get: function () {
|
|
@@ -8725,7 +8037,7 @@
|
|
|
8725
8037
|
};
|
|
8726
8038
|
Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
|
|
8727
8039
|
get: function () {
|
|
8728
|
-
return
|
|
8040
|
+
return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
|
|
8729
8041
|
},
|
|
8730
8042
|
enumerable: false,
|
|
8731
8043
|
configurable: true
|
|
@@ -8814,13 +8126,9 @@
|
|
|
8814
8126
|
});
|
|
8815
8127
|
return new Visit(this.placeDefinition, params);
|
|
8816
8128
|
};
|
|
8817
|
-
// @Trace()
|
|
8818
8129
|
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
8819
8130
|
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
8820
|
-
var
|
|
8821
|
-
var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
|
|
8822
|
-
// console.log({currentParams, otherParams});
|
|
8823
|
-
var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
|
|
8131
|
+
var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
8824
8132
|
return !samePlace || !sameRouteParameters;
|
|
8825
8133
|
};
|
|
8826
8134
|
Visit.prototype.hasChangedFrom = function (other) {
|
|
@@ -8844,7 +8152,6 @@
|
|
|
8844
8152
|
this.url = url;
|
|
8845
8153
|
this.urlTree = urlSerializer.parse(url);
|
|
8846
8154
|
}
|
|
8847
|
-
// @Trace()
|
|
8848
8155
|
UrlSnapshot.prototype.updateVisitSegments = function (visit) {
|
|
8849
8156
|
var newUrlTree = this.urlSerializer.parse(this.url);
|
|
8850
8157
|
// Ugly, but it works for now.
|
|
@@ -8922,6 +8229,12 @@
|
|
|
8922
8229
|
};
|
|
8923
8230
|
return UrlSnapshot;
|
|
8924
8231
|
}());
|
|
8232
|
+
__decorate([
|
|
8233
|
+
pectin.Trace(),
|
|
8234
|
+
__metadata("design:type", Function),
|
|
8235
|
+
__metadata("design:paramtypes", [Visit]),
|
|
8236
|
+
__metadata("design:returntype", exports.UrlSnapshot)
|
|
8237
|
+
], exports.UrlSnapshot.prototype, "updateVisitSegments", null);
|
|
8925
8238
|
__decorate([
|
|
8926
8239
|
src.Memoize(),
|
|
8927
8240
|
__metadata("design:type", Function),
|
|
@@ -9008,9 +8321,6 @@
|
|
|
9008
8321
|
{ type: i1$1.UrlSerializer }
|
|
9009
8322
|
]; };
|
|
9010
8323
|
|
|
9011
|
-
function asArray(item) {
|
|
9012
|
-
return Array.isArray(item) ? item : [item];
|
|
9013
|
-
}
|
|
9014
8324
|
exports.PlaceRouter = /** @class */ (function (_super) {
|
|
9015
8325
|
__extends(PlaceRouter, _super);
|
|
9016
8326
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -9190,15 +8500,17 @@
|
|
|
9190
8500
|
};
|
|
9191
8501
|
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
9192
8502
|
var _this = this;
|
|
9193
|
-
var commands = asArray(visit).reduce(function (result, v) {
|
|
9194
|
-
return __spreadArray(__spreadArray(__spreadArray([], __read(result)), [v.placeDefinition.path]), __read(_this.createRouteParameters(v)));
|
|
9195
|
-
}, []);
|
|
9196
8503
|
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
8504
|
+
var commands;
|
|
9197
8505
|
return __generator(this, function (_a) {
|
|
9198
8506
|
switch (_a.label) {
|
|
9199
|
-
case 0:
|
|
9200
|
-
|
|
9201
|
-
|
|
8507
|
+
case 0:
|
|
8508
|
+
commands = __spreadArray([
|
|
8509
|
+
visit.placeDefinition.path
|
|
8510
|
+
], __read(this.createRouteParameters(visit)));
|
|
8511
|
+
return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
8512
|
+
relativeTo: options ? options.relativeTo : null
|
|
8513
|
+
})];
|
|
9202
8514
|
case 1:
|
|
9203
8515
|
_a.sent();
|
|
9204
8516
|
return [2 /*return*/];
|
|
@@ -9217,7 +8529,7 @@
|
|
|
9217
8529
|
pectin.lang.illegalState('Navigation already in progress');
|
|
9218
8530
|
}
|
|
9219
8531
|
navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
9220
|
-
|
|
8532
|
+
navigation.storeVisit(visit);
|
|
9221
8533
|
this.transitionTo(navigation);
|
|
9222
8534
|
_a.label = 1;
|
|
9223
8535
|
case 1:
|
|
@@ -9313,7 +8625,6 @@
|
|
|
9313
8625
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
9314
8626
|
* the app directly and we don't get to ask.
|
|
9315
8627
|
*/
|
|
9316
|
-
// @Trace()
|
|
9317
8628
|
PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
|
|
9318
8629
|
var _this = this;
|
|
9319
8630
|
if (this.navigationSession) {
|
|
@@ -9357,6 +8668,12 @@
|
|
|
9357
8668
|
{ type: UrlService },
|
|
9358
8669
|
{ type: exports.PlaceHistory }
|
|
9359
8670
|
]; };
|
|
8671
|
+
__decorate([
|
|
8672
|
+
pectin.Trace(),
|
|
8673
|
+
__metadata("design:type", Function),
|
|
8674
|
+
__metadata("design:paramtypes", []),
|
|
8675
|
+
__metadata("design:returntype", Promise)
|
|
8676
|
+
], exports.PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
|
|
9360
8677
|
(function (PlaceRouter) {
|
|
9361
8678
|
var State = /** @class */ (function () {
|
|
9362
8679
|
function State(activeVisits) {
|
|
@@ -9384,7 +8701,7 @@
|
|
|
9384
8701
|
{ type: i0.Component, args: [{
|
|
9385
8702
|
selector: 'aup-not-authorised-notice',
|
|
9386
8703
|
template: "<p>You are not authorised to access this page</p>\n",
|
|
9387
|
-
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}
|
|
8704
|
+
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}"]
|
|
9388
8705
|
},] }
|
|
9389
8706
|
];
|
|
9390
8707
|
NotAuthorisedNoticeComponent.ctorParameters = function () { return []; };
|
|
@@ -9635,7 +8952,7 @@
|
|
|
9635
8952
|
selector: 'aup-place-outlet',
|
|
9636
8953
|
template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n",
|
|
9637
8954
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
9638
|
-
styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}
|
|
8955
|
+
styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}"]
|
|
9639
8956
|
},] }
|
|
9640
8957
|
];
|
|
9641
8958
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
@@ -9770,7 +9087,7 @@
|
|
|
9770
9087
|
{ type: i0.Component, args: [{
|
|
9771
9088
|
selector: 'aup-list-place-nav',
|
|
9772
9089
|
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n",
|
|
9773
|
-
styles: [":host{display:flex;flex-direction:column;--selected-border-color
|
|
9090
|
+
styles: [":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]
|
|
9774
9091
|
},] }
|
|
9775
9092
|
];
|
|
9776
9093
|
ListPlaceNavComponent.ctorParameters = function () { return [
|
|
@@ -9841,7 +9158,7 @@
|
|
|
9841
9158
|
{ type: i0.Component, args: [{
|
|
9842
9159
|
selector: 'aup-side-place-navigation',
|
|
9843
9160
|
template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-icon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
|
|
9844
|
-
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:
|
|
9161
|
+
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width,56px);--resolved-nav-item-height:var(--nav-item-height,var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width,235px);--resolved-color:var(--nav-color,hsla(0,0%,100%,0.9));--resolved-background-color:var(--nav-background-color,#555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}"]
|
|
9845
9162
|
},] }
|
|
9846
9163
|
];
|
|
9847
9164
|
SidePlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -9863,7 +9180,7 @@
|
|
|
9863
9180
|
{ type: i0.Component, args: [{
|
|
9864
9181
|
selector: 'aup-tabbed-place-navigation',
|
|
9865
9182
|
template: "<nav mat-tab-nav-bar>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n",
|
|
9866
|
-
styles: [":host{display:block}div.place-holder{border:1px solid green}
|
|
9183
|
+
styles: [":host{display:block}div.place-holder{border:1px solid green}"]
|
|
9867
9184
|
},] }
|
|
9868
9185
|
];
|
|
9869
9186
|
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
@@ -10195,13 +9512,13 @@
|
|
|
10195
9512
|
}
|
|
10196
9513
|
_a.label = 2;
|
|
10197
9514
|
case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10198
|
-
var
|
|
9515
|
+
var params, parsedParams, navigationSession, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
|
|
10199
9516
|
return __generator(this, function (_a) {
|
|
10200
9517
|
switch (_a.label) {
|
|
10201
9518
|
case 0:
|
|
10202
|
-
navigationSession = this.placeRouter.navigationSession;
|
|
10203
9519
|
params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
|
|
10204
9520
|
parsedParams = placeDefinition_1.parseRouteParams(params);
|
|
9521
|
+
navigationSession = this.placeRouter.navigationSession;
|
|
10205
9522
|
initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
|
|
10206
9523
|
sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
|
|
10207
9524
|
return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
|
|
@@ -10490,7 +9807,7 @@
|
|
|
10490
9807
|
exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
|
|
10491
9808
|
exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
|
|
10492
9809
|
exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
|
|
10493
|
-
exports.
|
|
9810
|
+
exports.AbstractInputActivity = AbstractInputActivity;
|
|
10494
9811
|
exports.AbstractInputComponent = AbstractInputComponent;
|
|
10495
9812
|
exports.AbstractInteractionContext = AbstractInteractionContext;
|
|
10496
9813
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
@@ -10501,6 +9818,7 @@
|
|
|
10501
9818
|
exports.AbstractTableModel = AbstractTableModel;
|
|
10502
9819
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
10503
9820
|
exports.Activity = Activity;
|
|
9821
|
+
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
10504
9822
|
exports.ActivityBodyComponent = ActivityBodyComponent;
|
|
10505
9823
|
exports.ActivityContainerComponent = ActivityContainerComponent;
|
|
10506
9824
|
exports.ActivityOutletComponent = ActivityOutletComponent;
|
|
@@ -10514,7 +9832,6 @@
|
|
|
10514
9832
|
exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
|
|
10515
9833
|
exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
|
|
10516
9834
|
exports.CardContainerComponent = CardContainerComponent;
|
|
10517
|
-
exports.CardStackComponent = CardStackComponent;
|
|
10518
9835
|
exports.CellEditorPortalRef = CellEditorPortalRef;
|
|
10519
9836
|
exports.CellHeaderPortalRef = CellHeaderPortalRef;
|
|
10520
9837
|
exports.CellPortalRef = CellPortalRef;
|
|
@@ -10564,10 +9881,8 @@
|
|
|
10564
9881
|
exports.InteractionModule = InteractionModule;
|
|
10565
9882
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
10566
9883
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
10567
|
-
exports.LabelledValueComponent = LabelledValueComponent;
|
|
10568
9884
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
10569
9885
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
10570
|
-
exports.LoadingContainerComponent = LoadingContainerComponent;
|
|
10571
9886
|
exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;
|
|
10572
9887
|
exports.ModalInteractionContextFactory = ModalInteractionContextFactory;
|
|
10573
9888
|
exports.MoreMenuComponent = MoreMenuComponent;
|