@coolon/angular-ui-powerups 12.4.0-alpha.49 → 12.4.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{activities/activities.scss → activities.scss} +11 -15
- 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 +320 -735
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +144 -854
- 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/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/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 +1 -5
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.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/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/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-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/track-by.js +0 -12
- package/esm2015/lib/components/track-by.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 +1 -1
- 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-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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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/inplace-interaction-context/in-place-interaction-context.component.js +2 -6
- 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 +0 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +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/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 +107 -715
- 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 +1 -5
- package/lib/components/section-header/section-header.component.d.ts +2 -5
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
- package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
- 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 +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
- package/schematics/place-routes/place-class-scanner.js +1 -3
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/assets/activities/input-activities.scss +0 -20
- 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 -94
- 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
|
|
|
@@ -768,32 +768,6 @@
|
|
|
768
768
|
__metadata("design:type", Boolean)
|
|
769
769
|
], BusyOverlayComponent.prototype, "busy", void 0);
|
|
770
770
|
|
|
771
|
-
var AbstractCardContainerComponent = /** @class */ (function (_super) {
|
|
772
|
-
__extends(AbstractCardContainerComponent, _super);
|
|
773
|
-
function AbstractCardContainerComponent() {
|
|
774
|
-
return _super.call(this) || this;
|
|
775
|
-
}
|
|
776
|
-
AbstractCardContainerComponent.prototype.ngOnInit = function () {
|
|
777
|
-
};
|
|
778
|
-
return AbstractCardContainerComponent;
|
|
779
|
-
}(DisposableComponent));
|
|
780
|
-
AbstractCardContainerComponent.decorators = [
|
|
781
|
-
{ type: i0.Component, args: [{
|
|
782
|
-
selector: 'aup-abstract-card-container',
|
|
783
|
-
template: ''
|
|
784
|
-
},] }
|
|
785
|
-
];
|
|
786
|
-
AbstractCardContainerComponent.ctorParameters = function () { return []; };
|
|
787
|
-
AbstractCardContainerComponent.propDecorators = {
|
|
788
|
-
addCardCommand: [{ type: i0.Input }],
|
|
789
|
-
addCardFace: [{ type: i0.Input }],
|
|
790
|
-
addCardTemplate: [{ type: i0.ContentChild, args: ['addCardTemplate',] }]
|
|
791
|
-
};
|
|
792
|
-
__decorate([
|
|
793
|
-
pectin.TrackExternal(),
|
|
794
|
-
__metadata("design:type", pectin.Command)
|
|
795
|
-
], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
|
|
796
|
-
|
|
797
771
|
/**
|
|
798
772
|
* @example
|
|
799
773
|
* // basic usage
|
|
@@ -811,13 +785,6 @@
|
|
|
811
785
|
* <my-card *ngFor="..."></my-card>
|
|
812
786
|
* </aup-card-container>
|
|
813
787
|
*
|
|
814
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
815
|
-
* // the activity inside teh card
|
|
816
|
-
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
817
|
-
* <my-card *ngFor="..."></my-card>
|
|
818
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
819
|
-
* </aup-card-container>
|
|
820
|
-
*
|
|
821
788
|
* // adds an add card component using the specified template. The template
|
|
822
789
|
* // will fill it's container in the grid.
|
|
823
790
|
* <aup-card-container>
|
|
@@ -850,7 +817,6 @@
|
|
|
850
817
|
* aup-card-container {
|
|
851
818
|
* --card-gap: var(--card-gap, 16px);
|
|
852
819
|
* --card-width: var(--card-width, 300px);
|
|
853
|
-
* --card-max-width: auto;
|
|
854
820
|
* --card-height: var(--card-height, auto);
|
|
855
821
|
* --card-min-height: var(--card-min-height, auto);
|
|
856
822
|
* --card-background: var(--card-background, #fcfcfb);
|
|
@@ -858,154 +824,30 @@
|
|
|
858
824
|
*/
|
|
859
825
|
var CardContainerComponent = /** @class */ (function (_super) {
|
|
860
826
|
__extends(CardContainerComponent, _super);
|
|
861
|
-
function CardContainerComponent(
|
|
862
|
-
|
|
863
|
-
_this.elementRef = elementRef;
|
|
864
|
-
/**
|
|
865
|
-
* Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
|
|
866
|
-
* or place in a layout that will stretch it such as a grid or flex layout.
|
|
867
|
-
*/
|
|
868
|
-
_this.enabledScroll = false;
|
|
869
|
-
return _this;
|
|
827
|
+
function CardContainerComponent() {
|
|
828
|
+
return _super.call(this) || this;
|
|
870
829
|
}
|
|
871
|
-
Object.defineProperty(CardContainerComponent.prototype, "columnCount", {
|
|
872
|
-
get: function () {
|
|
873
|
-
return this._columnCount;
|
|
874
|
-
},
|
|
875
|
-
set: function (count) {
|
|
876
|
-
if (!___namespace.isNil(count) && (!___namespace.isInteger(count) || count < 1)) {
|
|
877
|
-
typescriptUtilities.lang.illegalState('columnCount must be a positive integer or nil');
|
|
878
|
-
}
|
|
879
|
-
this._columnCount = count;
|
|
880
|
-
this.updateColumnCountStyles();
|
|
881
|
-
},
|
|
882
|
-
enumerable: false,
|
|
883
|
-
configurable: true
|
|
884
|
-
});
|
|
885
830
|
CardContainerComponent.prototype.ngOnInit = function () {
|
|
886
|
-
_super.prototype.ngOnInit.call(this);
|
|
887
|
-
this.updateColumnCountStyles();
|
|
888
|
-
};
|
|
889
|
-
Object.defineProperty(CardContainerComponent.prototype, "isAutoColumns", {
|
|
890
|
-
get: function () {
|
|
891
|
-
return ___namespace.isNil(this._columnCount);
|
|
892
|
-
},
|
|
893
|
-
enumerable: false,
|
|
894
|
-
configurable: true
|
|
895
|
-
});
|
|
896
|
-
Object.defineProperty(CardContainerComponent.prototype, "isSingleColumn", {
|
|
897
|
-
get: function () {
|
|
898
|
-
return this._columnCount === 1;
|
|
899
|
-
},
|
|
900
|
-
enumerable: false,
|
|
901
|
-
configurable: true
|
|
902
|
-
});
|
|
903
|
-
CardContainerComponent.prototype.updateColumnCountStyles = function () {
|
|
904
|
-
var el = this.elementRef.nativeElement;
|
|
905
|
-
if (___namespace.isNil(this._columnCount)) {
|
|
906
|
-
el.style.setProperty('--aup-card-container-column-count', '');
|
|
907
|
-
}
|
|
908
|
-
else {
|
|
909
|
-
el.style.setProperty('--aup-card-container-column-count', this._columnCount);
|
|
910
|
-
}
|
|
911
831
|
};
|
|
912
832
|
return CardContainerComponent;
|
|
913
|
-
}(
|
|
833
|
+
}(DisposableComponent));
|
|
914
834
|
CardContainerComponent.decorators = [
|
|
915
835
|
{ type: i0.Component, args: [{
|
|
916
836
|
selector: 'aup-card-container',
|
|
917
|
-
template: "<div class=\"
|
|
918
|
-
styles: [":host{--resolved-card-gap:var(--card-gap,16px);--resolved-card-width:var(--card-width,300px);--resolved-card-
|
|
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}"]
|
|
919
839
|
},] }
|
|
920
840
|
];
|
|
921
|
-
CardContainerComponent.ctorParameters = function () { return [
|
|
922
|
-
{ type: i0.ElementRef }
|
|
923
|
-
]; };
|
|
841
|
+
CardContainerComponent.ctorParameters = function () { return []; };
|
|
924
842
|
CardContainerComponent.propDecorators = {
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
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",] }]
|
|
929
846
|
};
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
* // basic usage
|
|
935
|
-
* <aup-card-stack>
|
|
936
|
-
* <my-card *ngFor="..."></my-card>
|
|
937
|
-
* </aup-card-stack>
|
|
938
|
-
*
|
|
939
|
-
* // adds an add button with a the '+' icon to the end of the card list.
|
|
940
|
-
* <aup-card-stack [addCardCommand]="addCard">
|
|
941
|
-
* <my-card *ngFor="..."></my-card>
|
|
942
|
-
* </aup-card-stack>
|
|
943
|
-
*
|
|
944
|
-
* // adds an add button with the specified face
|
|
945
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
946
|
-
* <my-card *ngFor="..."></my-card>
|
|
947
|
-
* </aup-card-stack>
|
|
948
|
-
*
|
|
949
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
950
|
-
* // the activity inside teh card
|
|
951
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
952
|
-
* <my-card *ngFor="..."></my-card>
|
|
953
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
954
|
-
* </aup-card-stack>
|
|
955
|
-
*
|
|
956
|
-
* // adds an add card component using the specified template. The template
|
|
957
|
-
* // will fill it's container in the grid.
|
|
958
|
-
* <aup-card-stack>
|
|
959
|
-
* <my-card *ngFor="..."></my-card>
|
|
960
|
-
* <ng-template #addCardTemplate>
|
|
961
|
-
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
962
|
-
* </ng-template>
|
|
963
|
-
* </aup-card-stack>
|
|
964
|
-
*
|
|
965
|
-
* // sing the default new card styles for your template
|
|
966
|
-
* @import "../../../../assets/styles";
|
|
967
|
-
* .my-new-card {
|
|
968
|
-
* @include aup-card-stack-new-card-style();
|
|
969
|
-
* // OR
|
|
970
|
-
* @include aup-card-stack-new-card-style(
|
|
971
|
-
* $color: rgba(0,0,0,0.54),
|
|
972
|
-
* $background-color: rgba(255,255,255,0.8),
|
|
973
|
-
* $hover-color: $color,
|
|
974
|
-
* $background-hover-color: white
|
|
975
|
-
* )
|
|
976
|
-
* }
|
|
977
|
-
* <aup-card-stack>
|
|
978
|
-
* <my-card *ngFor="..."></my-card>
|
|
979
|
-
* <ng-template #addCardTemplate>
|
|
980
|
-
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
981
|
-
* </ng-template>
|
|
982
|
-
* </aup-card-stack>
|
|
983
|
-
*
|
|
984
|
-
* // CSS Vars
|
|
985
|
-
* aup-card-stack {
|
|
986
|
-
* --card-gap: var(--card-gap, 16px);
|
|
987
|
-
* --card-height: var(--card-height, auto);
|
|
988
|
-
* --card-min-height: var(--card-min-height, auto);
|
|
989
|
-
* --card-background: var(--card-background, #fcfcfb);
|
|
990
|
-
* }
|
|
991
|
-
*/
|
|
992
|
-
var CardStackComponent = /** @class */ (function (_super) {
|
|
993
|
-
__extends(CardStackComponent, _super);
|
|
994
|
-
function CardStackComponent() {
|
|
995
|
-
var _this = _super.call(this) || this;
|
|
996
|
-
console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
|
|
997
|
-
return _this;
|
|
998
|
-
}
|
|
999
|
-
return CardStackComponent;
|
|
1000
|
-
}(AbstractCardContainerComponent));
|
|
1001
|
-
CardStackComponent.decorators = [
|
|
1002
|
-
{ type: i0.Component, args: [{
|
|
1003
|
-
selector: 'aup-card-stack',
|
|
1004
|
-
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",
|
|
1005
|
-
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{align-items:stretch;padding:0 var(--resolved-card-gap) var(--resolved-card-gap)}.add-card-container,.footer{display:flex;flex-direction:column}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);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:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.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}"]
|
|
1006
|
-
},] }
|
|
1007
|
-
];
|
|
1008
|
-
CardStackComponent.ctorParameters = function () { return []; };
|
|
847
|
+
__decorate([
|
|
848
|
+
pectin.TrackExternal(),
|
|
849
|
+
__metadata("design:type", pectin.Command)
|
|
850
|
+
], CardContainerComponent.prototype, "addCardCommand", void 0);
|
|
1009
851
|
|
|
1010
852
|
exports.CommandFace = void 0;
|
|
1011
853
|
(function (CommandFace) {
|
|
@@ -1493,22 +1335,10 @@
|
|
|
1493
1335
|
exports.TrackBy = void 0;
|
|
1494
1336
|
(function (TrackBy) {
|
|
1495
1337
|
TrackBy.byIndex = function (index, item) { return index; };
|
|
1496
|
-
/**
|
|
1497
|
-
* @deprecated use #track(MyType).by("property") instead.
|
|
1498
|
-
* @param property
|
|
1499
|
-
*/
|
|
1500
1338
|
function trackByProperty(property) {
|
|
1501
1339
|
return function (index, item) { return item[property]; };
|
|
1502
1340
|
}
|
|
1503
1341
|
TrackBy.trackByProperty = trackByProperty;
|
|
1504
|
-
function track(type) {
|
|
1505
|
-
return {
|
|
1506
|
-
by: function (property) {
|
|
1507
|
-
return function (index, item) { return item[property]; };
|
|
1508
|
-
}
|
|
1509
|
-
};
|
|
1510
|
-
}
|
|
1511
|
-
TrackBy.track = track;
|
|
1512
1342
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1513
1343
|
|
|
1514
1344
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -1757,7 +1587,7 @@
|
|
|
1757
1587
|
{ type: i0.Component, args: [{
|
|
1758
1588
|
selector: 'aup-empty-state',
|
|
1759
1589
|
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
1760
|
-
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}"]
|
|
1761
1591
|
},] }
|
|
1762
1592
|
];
|
|
1763
1593
|
EmptyStateComponent.ctorParameters = function () { return []; };
|
|
@@ -1855,7 +1685,6 @@
|
|
|
1855
1685
|
function AbstractInputComponent() {
|
|
1856
1686
|
var _this = _super.call(this) || this;
|
|
1857
1687
|
_this.onValueEditedListeners = new pectin.EventListenerList();
|
|
1858
|
-
_this.userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1859
1688
|
_this.dense = false;
|
|
1860
1689
|
// TODO: fix this.
|
|
1861
1690
|
// tslint:disable-next-line:no-output-native
|
|
@@ -2457,54 +2286,6 @@
|
|
|
2457
2286
|
});
|
|
2458
2287
|
})(exports.IconComponent || (exports.IconComponent = {}));
|
|
2459
2288
|
|
|
2460
|
-
var LoadingContainerComponent = /** @class */ (function (_super) {
|
|
2461
|
-
__extends(LoadingContainerComponent, _super);
|
|
2462
|
-
function LoadingContainerComponent() {
|
|
2463
|
-
return _super.call(this) || this;
|
|
2464
|
-
}
|
|
2465
|
-
Object.defineProperty(LoadingContainerComponent.prototype, "state", {
|
|
2466
|
-
get: function () {
|
|
2467
|
-
return this.loadingModel.value ? "loaded" : "loading";
|
|
2468
|
-
},
|
|
2469
|
-
enumerable: false,
|
|
2470
|
-
configurable: true
|
|
2471
|
-
});
|
|
2472
|
-
LoadingContainerComponent.prototype.ngOnInit = function () {
|
|
2473
|
-
};
|
|
2474
|
-
return LoadingContainerComponent;
|
|
2475
|
-
}(pectin.GarbageCollector));
|
|
2476
|
-
LoadingContainerComponent.decorators = [
|
|
2477
|
-
{ type: i0.Component, args: [{
|
|
2478
|
-
selector: 'aup-loading-container',
|
|
2479
|
-
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",
|
|
2480
|
-
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}"]
|
|
2481
|
-
},] }
|
|
2482
|
-
];
|
|
2483
|
-
LoadingContainerComponent.ctorParameters = function () { return []; };
|
|
2484
|
-
LoadingContainerComponent.propDecorators = {
|
|
2485
|
-
loadingModel: [{ type: i0.Input }],
|
|
2486
|
-
loading: [{ type: i0.Input }],
|
|
2487
|
-
messageModel: [{ type: i0.Input }],
|
|
2488
|
-
message: [{ type: i0.Input }],
|
|
2489
|
-
state: [{ type: i0.HostBinding, args: ["class",] }]
|
|
2490
|
-
};
|
|
2491
|
-
__decorate([
|
|
2492
|
-
pectin.TrackExternal(),
|
|
2493
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2494
|
-
], LoadingContainerComponent.prototype, "loadingModel", void 0);
|
|
2495
|
-
__decorate([
|
|
2496
|
-
pectin.StoreInValueModel("loadingModel"),
|
|
2497
|
-
__metadata("design:type", Boolean)
|
|
2498
|
-
], LoadingContainerComponent.prototype, "loading", void 0);
|
|
2499
|
-
__decorate([
|
|
2500
|
-
pectin.TrackExternal(),
|
|
2501
|
-
__metadata("design:type", pectin.ValueModel)
|
|
2502
|
-
], LoadingContainerComponent.prototype, "messageModel", void 0);
|
|
2503
|
-
__decorate([
|
|
2504
|
-
pectin.StoreInValueModel("messageModel"),
|
|
2505
|
-
__metadata("design:type", String)
|
|
2506
|
-
], LoadingContainerComponent.prototype, "message", void 0);
|
|
2507
|
-
|
|
2508
2289
|
var NoopComponent = /** @class */ (function () {
|
|
2509
2290
|
function NoopComponent() {
|
|
2510
2291
|
}
|
|
@@ -2535,32 +2316,24 @@
|
|
|
2535
2316
|
];
|
|
2536
2317
|
ScrollContainerComponent.ctorParameters = function () { return []; };
|
|
2537
2318
|
|
|
2538
|
-
var SectionHeaderComponent = /** @class */ (function (
|
|
2539
|
-
__extends(SectionHeaderComponent, _super);
|
|
2319
|
+
var SectionHeaderComponent = /** @class */ (function () {
|
|
2540
2320
|
function SectionHeaderComponent() {
|
|
2541
|
-
|
|
2542
|
-
// readonly i18n = I18nMarsUi.components.layout.header;
|
|
2543
|
-
_this.size = 'medium';
|
|
2544
|
-
_this.borderTop = false;
|
|
2545
|
-
_this.borderBottom = false;
|
|
2546
|
-
return _this;
|
|
2321
|
+
this.underline = false;
|
|
2547
2322
|
}
|
|
2548
2323
|
SectionHeaderComponent.prototype.ngOnInit = function () {
|
|
2549
2324
|
};
|
|
2550
2325
|
return SectionHeaderComponent;
|
|
2551
|
-
}(
|
|
2326
|
+
}());
|
|
2552
2327
|
SectionHeaderComponent.decorators = [
|
|
2553
2328
|
{ type: i0.Component, args: [{
|
|
2554
2329
|
selector: 'aup-section-header',
|
|
2555
|
-
template: "<
|
|
2556
|
-
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)}"]
|
|
2557
2332
|
},] }
|
|
2558
2333
|
];
|
|
2559
2334
|
SectionHeaderComponent.ctorParameters = function () { return []; };
|
|
2560
2335
|
SectionHeaderComponent.propDecorators = {
|
|
2561
|
-
|
|
2562
|
-
borderTop: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-top',] }],
|
|
2563
|
-
borderBottom: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-bottom',] }]
|
|
2336
|
+
underline: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.underline',] }]
|
|
2564
2337
|
};
|
|
2565
2338
|
|
|
2566
2339
|
var SwitchCaseOption = /** @class */ (function () {
|
|
@@ -4485,16 +4258,16 @@
|
|
|
4485
4258
|
var FlattenedTreeListModel = /** @class */ (function (_super) {
|
|
4486
4259
|
__extends(FlattenedTreeListModel, _super);
|
|
4487
4260
|
function FlattenedTreeListModel(source, childRef, expansionModel) {
|
|
4488
|
-
var _this = _super.call(this, source
|
|
4489
|
-
initialValue: [],
|
|
4490
|
-
identifiedWith: function (row) { return source.identityOf(row); }
|
|
4491
|
-
}) || this;
|
|
4261
|
+
var _this = _super.call(this, source) || this;
|
|
4492
4262
|
_this.source = source;
|
|
4493
4263
|
_this.childRef = childRef;
|
|
4494
4264
|
_this.expansionModel = expansionModel;
|
|
4495
4265
|
_this.trackSource(expansionModel.isExpandedPredicate);
|
|
4496
4266
|
return _this;
|
|
4497
4267
|
}
|
|
4268
|
+
FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
|
|
4269
|
+
return this.source.identityOf(item);
|
|
4270
|
+
};
|
|
4498
4271
|
FlattenedTreeListModel.prototype.compute = function (values) {
|
|
4499
4272
|
var _this = this;
|
|
4500
4273
|
var result = [];
|
|
@@ -4627,7 +4400,6 @@
|
|
|
4627
4400
|
var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
|
|
4628
4401
|
_this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
|
|
4629
4402
|
_this.setDataSource(_this.flattenedDataSource);
|
|
4630
|
-
_this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
|
|
4631
4403
|
return _this;
|
|
4632
4404
|
}
|
|
4633
4405
|
TreeTableModel.prototype.treeControlColumn = function (builder) {
|
|
@@ -4910,28 +4682,6 @@
|
|
|
4910
4682
|
__metadata("design:type", pectin.PageController)
|
|
4911
4683
|
], PaginatorComponent.prototype, "pageController", void 0);
|
|
4912
4684
|
|
|
4913
|
-
var LabelledValueComponent = /** @class */ (function (_super) {
|
|
4914
|
-
__extends(LabelledValueComponent, _super);
|
|
4915
|
-
function LabelledValueComponent() {
|
|
4916
|
-
return _super.call(this) || this;
|
|
4917
|
-
// const {chain} = Dsl.disposeWith(this);
|
|
4918
|
-
}
|
|
4919
|
-
LabelledValueComponent.prototype.ngOnInit = function () {
|
|
4920
|
-
};
|
|
4921
|
-
return LabelledValueComponent;
|
|
4922
|
-
}(DisposableComponent));
|
|
4923
|
-
LabelledValueComponent.decorators = [
|
|
4924
|
-
{ type: i0.Component, args: [{
|
|
4925
|
-
selector: 'aup-labelled-value',
|
|
4926
|
-
template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
|
|
4927
|
-
styles: [":host{display:inline-flex;flex-direction:column;align-items:flex-start}label{font-weight:400;font-size:12px;color:rgba(0,0,0,.57);margin-bottom:6px;white-space:nowrap}"]
|
|
4928
|
-
},] }
|
|
4929
|
-
];
|
|
4930
|
-
LabelledValueComponent.ctorParameters = function () { return []; };
|
|
4931
|
-
LabelledValueComponent.propDecorators = {
|
|
4932
|
-
label: [{ type: i0.Input }]
|
|
4933
|
-
};
|
|
4934
|
-
|
|
4935
4685
|
var ComponentsModule = /** @class */ (function () {
|
|
4936
4686
|
function ComponentsModule(faIconLibrary) {
|
|
4937
4687
|
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
@@ -4940,29 +4690,6 @@
|
|
|
4940
4690
|
}());
|
|
4941
4691
|
ComponentsModule.decorators = [
|
|
4942
4692
|
{ type: i0.NgModule, args: [{
|
|
4943
|
-
imports: [
|
|
4944
|
-
i2.CommonModule,
|
|
4945
|
-
animations.BrowserAnimationsModule,
|
|
4946
|
-
forms.FormsModule,
|
|
4947
|
-
input.MatInputModule,
|
|
4948
|
-
formField.MatFormFieldModule,
|
|
4949
|
-
select.MatSelectModule,
|
|
4950
|
-
tabs.MatTabsModule,
|
|
4951
|
-
DirectivesModule,
|
|
4952
|
-
icon.MatIconModule,
|
|
4953
|
-
button.MatButtonModule,
|
|
4954
|
-
checkbox.MatCheckboxModule,
|
|
4955
|
-
table.MatTableModule,
|
|
4956
|
-
portal.PortalModule,
|
|
4957
|
-
scrolling.CdkScrollableModule,
|
|
4958
|
-
angularFontawesome.FontAwesomeModule,
|
|
4959
|
-
tooltip.MatTooltipModule,
|
|
4960
|
-
autocomplete.MatAutocompleteModule,
|
|
4961
|
-
menu.MatMenuModule,
|
|
4962
|
-
divider.MatDividerModule,
|
|
4963
|
-
progressSpinner.MatProgressSpinnerModule,
|
|
4964
|
-
progressBar.MatProgressBarModule
|
|
4965
|
-
],
|
|
4966
4693
|
declarations: [
|
|
4967
4694
|
AbstractInputComponent,
|
|
4968
4695
|
AbstractValueInputComponent,
|
|
@@ -5011,11 +4738,29 @@
|
|
|
5011
4738
|
BusyOverlayComponent,
|
|
5012
4739
|
EmptyStateComponent,
|
|
5013
4740
|
PaginatorComponent,
|
|
5014
|
-
AbstractTableComponent
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
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
|
|
5019
4764
|
],
|
|
5020
4765
|
exports: [
|
|
5021
4766
|
NumberInputComponent,
|
|
@@ -5052,9 +4797,6 @@
|
|
|
5052
4797
|
BusyOverlayComponent,
|
|
5053
4798
|
EmptyStateComponent,
|
|
5054
4799
|
PaginatorComponent,
|
|
5055
|
-
CardStackComponent,
|
|
5056
|
-
LabelledValueComponent,
|
|
5057
|
-
LoadingContainerComponent,
|
|
5058
4800
|
],
|
|
5059
4801
|
providers: [
|
|
5060
4802
|
FocusBindingFactory
|
|
@@ -5086,13 +4828,12 @@
|
|
|
5086
4828
|
* <span>This content will be between the two commands</span>
|
|
5087
4829
|
* </aup-activity-actions>
|
|
5088
4830
|
*/
|
|
5089
|
-
|
|
4831
|
+
var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
5090
4832
|
__extends(ActivityActionsComponent, _super);
|
|
5091
4833
|
function ActivityActionsComponent(cdr) {
|
|
5092
4834
|
var _this = _super.call(this) || this;
|
|
5093
4835
|
_this.cdr = cdr;
|
|
5094
|
-
_this.
|
|
5095
|
-
_this.align = ActivityActionsComponent.Align.STRETCH;
|
|
4836
|
+
_this.align = 'stretch';
|
|
5096
4837
|
return _this;
|
|
5097
4838
|
}
|
|
5098
4839
|
Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
|
|
@@ -5113,6 +4854,20 @@
|
|
|
5113
4854
|
enumerable: false,
|
|
5114
4855
|
configurable: true
|
|
5115
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
|
+
});
|
|
5116
4871
|
ActivityActionsComponent.prototype.ngOnInit = function () {
|
|
5117
4872
|
};
|
|
5118
4873
|
ActivityActionsComponent.prototype.hasConfirmFace = function () {
|
|
@@ -5128,45 +4883,35 @@
|
|
|
5128
4883
|
};
|
|
5129
4884
|
return ActivityActionsComponent;
|
|
5130
4885
|
}(DisposableComponent));
|
|
5131
|
-
|
|
4886
|
+
ActivityActionsComponent.decorators = [
|
|
5132
4887
|
{ type: i0.Component, args: [{
|
|
5133
4888
|
selector: 'aup-activity-actions',
|
|
5134
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",
|
|
5135
|
-
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}"]
|
|
5136
4891
|
},] }
|
|
5137
4892
|
];
|
|
5138
|
-
|
|
4893
|
+
ActivityActionsComponent.ctorParameters = function () { return [
|
|
5139
4894
|
{ type: i0.ChangeDetectorRef }
|
|
5140
4895
|
]; };
|
|
5141
|
-
|
|
4896
|
+
ActivityActionsComponent.propDecorators = {
|
|
5142
4897
|
confirmCommand: [{ type: i0.Input }],
|
|
5143
4898
|
cancelCommand: [{ type: i0.Input }],
|
|
5144
4899
|
faces: [{ type: i0.Input }],
|
|
5145
4900
|
confirmFace: [{ type: i0.Input }],
|
|
5146
4901
|
cancelFace: [{ type: i0.Input }],
|
|
5147
4902
|
style: [{ type: i0.Input }],
|
|
5148
|
-
|
|
5149
|
-
|
|
4903
|
+
align: [{ type: i0.Input }],
|
|
4904
|
+
alignEnd: [{ type: i0.HostBinding, args: ['class.align-end',] }],
|
|
4905
|
+
alignStretch: [{ type: i0.HostBinding, args: ['class.align-stretch',] }]
|
|
5150
4906
|
};
|
|
5151
4907
|
__decorate([
|
|
5152
4908
|
pectin.TrackExternal(),
|
|
5153
4909
|
__metadata("design:type", pectin.Command)
|
|
5154
|
-
],
|
|
4910
|
+
], ActivityActionsComponent.prototype, "confirmCommand", void 0);
|
|
5155
4911
|
__decorate([
|
|
5156
4912
|
pectin.TrackExternal(),
|
|
5157
4913
|
__metadata("design:type", pectin.Command)
|
|
5158
|
-
],
|
|
5159
|
-
(function (ActivityActionsComponent) {
|
|
5160
|
-
ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
|
|
5161
|
-
INLINE: 'inline',
|
|
5162
|
-
BLOCK: 'block'
|
|
5163
|
-
});
|
|
5164
|
-
ActivityActionsComponent.Align = typescriptStringEnums.Enum({
|
|
5165
|
-
START: 'start',
|
|
5166
|
-
END: 'end',
|
|
5167
|
-
STRETCH: 'stretch'
|
|
5168
|
-
});
|
|
5169
|
-
})(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
|
|
4914
|
+
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
5170
4915
|
|
|
5171
4916
|
var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
|
|
5172
4917
|
var Activity = /** @class */ (function (_super) {
|
|
@@ -5249,7 +4994,7 @@
|
|
|
5249
4994
|
];
|
|
5250
4995
|
Activity.ctorParameters = function () { return []; };
|
|
5251
4996
|
Activity.propDecorators = {
|
|
5252
|
-
activityActions: [{ type: i0.ViewChild, args: [
|
|
4997
|
+
activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
|
|
5253
4998
|
class: [{ type: i0.HostBinding, args: ['class',] }],
|
|
5254
4999
|
isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
|
|
5255
5000
|
};
|
|
@@ -5773,7 +5518,7 @@
|
|
|
5773
5518
|
ActivityContainerComponent.decorators = [
|
|
5774
5519
|
{ type: i0.Component, args: [{
|
|
5775
5520
|
selector: 'aup-activity-container',
|
|
5776
|
-
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\"
|
|
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",
|
|
5777
5522
|
styles: [":host{display:flex;flex-direction:column}aup-busy-overlay,mat-tab-group{flex:1}"]
|
|
5778
5523
|
},] }
|
|
5779
5524
|
];
|
|
@@ -5870,13 +5615,6 @@
|
|
|
5870
5615
|
});
|
|
5871
5616
|
return _this;
|
|
5872
5617
|
}
|
|
5873
|
-
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
|
|
5874
|
-
get: function () {
|
|
5875
|
-
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
5876
|
-
},
|
|
5877
|
-
enumerable: false,
|
|
5878
|
-
configurable: true
|
|
5879
|
-
});
|
|
5880
5618
|
AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
|
|
5881
5619
|
};
|
|
5882
5620
|
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
|
|
@@ -6118,16 +5856,9 @@
|
|
|
6118
5856
|
__extends(ModalActivityTriggerComponent, _super);
|
|
6119
5857
|
function ModalActivityTriggerComponent(interactionService) {
|
|
6120
5858
|
var _this = _super.call(this) || this;
|
|
6121
|
-
_this.
|
|
5859
|
+
_this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6122
5860
|
return _this;
|
|
6123
5861
|
}
|
|
6124
|
-
Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
|
|
6125
|
-
get: function () {
|
|
6126
|
-
return this._interactionContext;
|
|
6127
|
-
},
|
|
6128
|
-
enumerable: false,
|
|
6129
|
-
configurable: true
|
|
6130
|
-
});
|
|
6131
5862
|
return ModalActivityTriggerComponent;
|
|
6132
5863
|
}(AbstractActivityTriggerComponent));
|
|
6133
5864
|
ModalActivityTriggerComponent.decorators = [
|
|
@@ -6173,13 +5904,6 @@
|
|
|
6173
5904
|
enumerable: false,
|
|
6174
5905
|
configurable: true
|
|
6175
5906
|
});
|
|
6176
|
-
Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
|
|
6177
|
-
get: function () {
|
|
6178
|
-
return this.isActive();
|
|
6179
|
-
},
|
|
6180
|
-
enumerable: false,
|
|
6181
|
-
configurable: true
|
|
6182
|
-
});
|
|
6183
5907
|
InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
|
|
6184
5908
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
6185
5909
|
};
|
|
@@ -6229,96 +5953,9 @@
|
|
|
6229
5953
|
]; };
|
|
6230
5954
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
6231
5955
|
activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
|
|
6232
|
-
animateFirstActivity: [{ type: i0.Input }]
|
|
6233
|
-
active: [{ type: i0.HostBinding, args: ["class.active",] }]
|
|
5956
|
+
animateFirstActivity: [{ type: i0.Input }]
|
|
6234
5957
|
};
|
|
6235
5958
|
|
|
6236
|
-
/**
|
|
6237
|
-
*
|
|
6238
|
-
*/
|
|
6239
|
-
exports.AddCardActivityComponent = /** @class */ (function (_super) {
|
|
6240
|
-
__extends(AddCardActivityComponent, _super);
|
|
6241
|
-
function AddCardActivityComponent(interactionService) {
|
|
6242
|
-
var _this = _super.call(this) || this;
|
|
6243
|
-
_this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
|
|
6244
|
-
_this.renderAs = AddCardActivityComponent.RenderAs.CARD;
|
|
6245
|
-
_this.notCard = true;
|
|
6246
|
-
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
6247
|
-
_this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6248
|
-
_this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
|
|
6249
|
-
return _this;
|
|
6250
|
-
}
|
|
6251
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
|
|
6252
|
-
get: function () {
|
|
6253
|
-
return "render-as-" + this.renderAs;
|
|
6254
|
-
},
|
|
6255
|
-
enumerable: false,
|
|
6256
|
-
configurable: true
|
|
6257
|
-
});
|
|
6258
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
|
|
6259
|
-
get: function () {
|
|
6260
|
-
return this.interactionStyle + "-activity";
|
|
6261
|
-
},
|
|
6262
|
-
enumerable: false,
|
|
6263
|
-
configurable: true
|
|
6264
|
-
});
|
|
6265
|
-
AddCardActivityComponent.prototype.isRenderAsCard = function () {
|
|
6266
|
-
return this.renderAs === 'card';
|
|
6267
|
-
};
|
|
6268
|
-
AddCardActivityComponent.prototype.isRenderAsButton = function () {
|
|
6269
|
-
return this.renderAs === 'button';
|
|
6270
|
-
};
|
|
6271
|
-
AddCardActivityComponent.prototype.ngOnInit = function () {
|
|
6272
|
-
};
|
|
6273
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
|
|
6274
|
-
get: function () {
|
|
6275
|
-
switch (this.interactionStyle) {
|
|
6276
|
-
case 'inline':
|
|
6277
|
-
return this.inlineInteractionContext;
|
|
6278
|
-
default:
|
|
6279
|
-
return this.modalInteractionContext;
|
|
6280
|
-
}
|
|
6281
|
-
},
|
|
6282
|
-
enumerable: false,
|
|
6283
|
-
configurable: true
|
|
6284
|
-
});
|
|
6285
|
-
AddCardActivityComponent.prototype.isModal = function () {
|
|
6286
|
-
return this.interactionStyle === 'modal';
|
|
6287
|
-
};
|
|
6288
|
-
AddCardActivityComponent.prototype.isInline = function () {
|
|
6289
|
-
return this.interactionStyle === 'inline';
|
|
6290
|
-
};
|
|
6291
|
-
return AddCardActivityComponent;
|
|
6292
|
-
}(AbstractActivityTriggerComponent));
|
|
6293
|
-
exports.AddCardActivityComponent.decorators = [
|
|
6294
|
-
{ type: i0.Component, args: [{
|
|
6295
|
-
selector: 'aup-add-card-activity',
|
|
6296
|
-
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",
|
|
6297
|
-
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:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8)}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}: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:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8)}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}: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}"]
|
|
6298
|
-
},] }
|
|
6299
|
-
];
|
|
6300
|
-
exports.AddCardActivityComponent.ctorParameters = function () { return [
|
|
6301
|
-
{ type: exports.InteractionService }
|
|
6302
|
-
]; };
|
|
6303
|
-
exports.AddCardActivityComponent.propDecorators = {
|
|
6304
|
-
inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
6305
|
-
interactionStyle: [{ type: i0.Input }],
|
|
6306
|
-
renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
|
|
6307
|
-
notCard: [{ type: i0.HostBinding, args: ['class.not-card',] }],
|
|
6308
|
-
renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
6309
|
-
activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6310
|
-
};
|
|
6311
|
-
(function (AddCardActivityComponent) {
|
|
6312
|
-
AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
|
|
6313
|
-
MODAL: 'modal',
|
|
6314
|
-
INLINE: 'inline'
|
|
6315
|
-
});
|
|
6316
|
-
AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
|
|
6317
|
-
CARD: 'card',
|
|
6318
|
-
BUTTON: 'button'
|
|
6319
|
-
});
|
|
6320
|
-
})(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
|
|
6321
|
-
|
|
6322
5959
|
/**
|
|
6323
5960
|
* Css Vars.
|
|
6324
5961
|
* --link-color
|
|
@@ -6388,13 +6025,6 @@
|
|
|
6388
6025
|
function InlineActivityTriggerComponent() {
|
|
6389
6026
|
return _super.call(this) || this;
|
|
6390
6027
|
}
|
|
6391
|
-
Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
|
|
6392
|
-
get: function () {
|
|
6393
|
-
return this._interactionContext;
|
|
6394
|
-
},
|
|
6395
|
-
enumerable: false,
|
|
6396
|
-
configurable: true
|
|
6397
|
-
});
|
|
6398
6028
|
return InlineActivityTriggerComponent;
|
|
6399
6029
|
}(AbstractActivityTriggerComponent));
|
|
6400
6030
|
InlineActivityTriggerComponent.decorators = [
|
|
@@ -6406,7 +6036,7 @@
|
|
|
6406
6036
|
];
|
|
6407
6037
|
InlineActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6408
6038
|
InlineActivityTriggerComponent.propDecorators = {
|
|
6409
|
-
|
|
6039
|
+
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
6410
6040
|
};
|
|
6411
6041
|
|
|
6412
6042
|
/**
|
|
@@ -6444,7 +6074,6 @@
|
|
|
6444
6074
|
var self = this;
|
|
6445
6075
|
var overlayRef = this._overlay.create({
|
|
6446
6076
|
hasBackdrop: false,
|
|
6447
|
-
disposeOnNavigation: true,
|
|
6448
6077
|
panelClass: 'aup-popup-interaction-panel',
|
|
6449
6078
|
positionStrategy: this._overlay.position()
|
|
6450
6079
|
.flexibleConnectedTo(this._element)
|
|
@@ -6580,114 +6209,45 @@
|
|
|
6580
6209
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
6581
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)
|
|
6582
6211
|
// @dynamic
|
|
6583
|
-
|
|
6584
|
-
__extends(
|
|
6585
|
-
function
|
|
6586
|
-
var _this = this;
|
|
6587
|
-
var _a, _b;
|
|
6588
|
-
_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;
|
|
6589
6216
|
_this.data = data;
|
|
6590
6217
|
_this.class = 'aup-input-activity';
|
|
6591
6218
|
var form = new pectin.DirtyTrackingForm();
|
|
6592
6219
|
_this.valueModel = form.valueModel(_this.data.initialValue);
|
|
6593
6220
|
_this.valueModel.validateUsing(data.validators || []);
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
icon: function () { return 'mat:clear'; }
|
|
6600
|
-
};
|
|
6601
|
-
_this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6602
|
-
var self_1, allGood_1, result, e_1;
|
|
6603
|
-
return __generator(this, function (_c) {
|
|
6604
|
-
switch (_c.label) {
|
|
6605
|
-
case 0:
|
|
6606
|
-
if (!this.valueModel.validate()) return [3 /*break*/, 6];
|
|
6607
|
-
if (!data.save) return [3 /*break*/, 5];
|
|
6608
|
-
self_1 = this;
|
|
6609
|
-
_c.label = 1;
|
|
6610
|
-
case 1:
|
|
6611
|
-
_c.trys.push([1, 3, , 4]);
|
|
6612
|
-
allGood_1 = true;
|
|
6613
|
-
return [4 /*yield*/, data.save(this.valueModel.value, {
|
|
6614
|
-
injectError: function (error) {
|
|
6615
|
-
allGood_1 = false;
|
|
6616
|
-
self_1.valueModel.injectErrors([error]);
|
|
6617
|
-
}
|
|
6618
|
-
})];
|
|
6619
|
-
case 2:
|
|
6620
|
-
result = _c.sent();
|
|
6621
|
-
if (allGood_1) {
|
|
6622
|
-
this.done(this.valueModel.value);
|
|
6623
|
-
}
|
|
6624
|
-
return [3 /*break*/, 4];
|
|
6625
|
-
case 3:
|
|
6626
|
-
e_1 = _c.sent();
|
|
6627
|
-
console.error(e_1);
|
|
6628
|
-
return [3 /*break*/, 4];
|
|
6629
|
-
case 4: return [3 /*break*/, 6];
|
|
6630
|
-
case 5:
|
|
6631
|
-
this.done(this.valueModel.value);
|
|
6632
|
-
_c.label = 6;
|
|
6633
|
-
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(); });
|
|
6634
6226
|
}
|
|
6635
|
-
|
|
6636
|
-
|
|
6227
|
+
else {
|
|
6228
|
+
_this.done(_this.valueModel.value);
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
});
|
|
6637
6232
|
_this.cancelCommand = pectin.Command.create(function () {
|
|
6638
6233
|
_this.cancel();
|
|
6639
6234
|
});
|
|
6640
|
-
_this.busyWhile(_this.confirmCommand.busy);
|
|
6641
6235
|
return _this;
|
|
6642
6236
|
}
|
|
6643
|
-
|
|
6644
|
-
get: function () {
|
|
6645
|
-
var _a, _b;
|
|
6646
|
-
return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
|
|
6647
|
-
},
|
|
6648
|
-
enumerable: false,
|
|
6649
|
-
configurable: true
|
|
6650
|
-
});
|
|
6651
|
-
InputActivity.prototype.onActivityReady = function () {
|
|
6237
|
+
AbstractInputActivity.prototype.onActivityReady = function () {
|
|
6652
6238
|
this.valueModel.focusContext.requestFocus();
|
|
6653
6239
|
};
|
|
6654
|
-
|
|
6655
|
-
get: function () {
|
|
6656
|
-
var _a;
|
|
6657
|
-
return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
|
|
6658
|
-
},
|
|
6659
|
-
enumerable: false,
|
|
6660
|
-
configurable: true
|
|
6661
|
-
});
|
|
6662
|
-
InputActivity.prototype.onEscape = function () {
|
|
6663
|
-
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
|
|
6664
|
-
this.cancelCommand.execute();
|
|
6665
|
-
}
|
|
6666
|
-
};
|
|
6667
|
-
InputActivity.prototype.shouldCancelOnEscape = function () {
|
|
6668
|
-
return ___namespace.isNil(this.data.cancelOnEscape) // we default to true..
|
|
6669
|
-
|| this.data.cancelOnEscape;
|
|
6670
|
-
};
|
|
6671
|
-
return InputActivity;
|
|
6240
|
+
return AbstractInputActivity;
|
|
6672
6241
|
}(Activity));
|
|
6673
|
-
|
|
6242
|
+
AbstractInputActivity.decorators = [
|
|
6674
6243
|
{ type: i0.Component, args: [{ template: "" },] }
|
|
6675
6244
|
];
|
|
6676
|
-
|
|
6245
|
+
AbstractInputActivity.ctorParameters = function () { return [
|
|
6677
6246
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
6678
6247
|
]; };
|
|
6679
|
-
|
|
6680
|
-
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6681
|
-
layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
|
|
6682
|
-
additionalCssClassName: [{ type: i0.HostBinding, args: ["class",] }],
|
|
6683
|
-
onEscape: [{ type: i0.HostListener, args: ['keydown.escape',] }]
|
|
6248
|
+
AbstractInputActivity.propDecorators = {
|
|
6249
|
+
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6684
6250
|
};
|
|
6685
|
-
(function (InputActivity) {
|
|
6686
|
-
InputActivity.Layout = typescriptStringEnums.Enum({
|
|
6687
|
-
INLINE: 'inline',
|
|
6688
|
-
BLOCK: 'block'
|
|
6689
|
-
});
|
|
6690
|
-
})(exports.InputActivity || (exports.InputActivity = {}));
|
|
6691
6251
|
|
|
6692
6252
|
var StringInputActivity = /** @class */ (function (_super) {
|
|
6693
6253
|
__extends(StringInputActivity, _super);
|
|
@@ -6695,11 +6255,11 @@
|
|
|
6695
6255
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6696
6256
|
}
|
|
6697
6257
|
return StringInputActivity;
|
|
6698
|
-
}(
|
|
6258
|
+
}(AbstractInputActivity));
|
|
6699
6259
|
StringInputActivity.decorators = [
|
|
6700
6260
|
{ type: i0.Component, args: [{
|
|
6701
6261
|
selector: 'aup-string-input-activity',
|
|
6702
|
-
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 "
|
|
6703
6263
|
},] }
|
|
6704
6264
|
];
|
|
6705
6265
|
|
|
@@ -6729,11 +6289,11 @@
|
|
|
6729
6289
|
configurable: true
|
|
6730
6290
|
});
|
|
6731
6291
|
return SelectInputActivity;
|
|
6732
|
-
}(
|
|
6292
|
+
}(AbstractInputActivity));
|
|
6733
6293
|
SelectInputActivity.decorators = [
|
|
6734
6294
|
{ type: i0.Component, args: [{
|
|
6735
6295
|
selector: 'aup-select-input-activity',
|
|
6736
|
-
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 "
|
|
6737
6297
|
},] }
|
|
6738
6298
|
];
|
|
6739
6299
|
|
|
@@ -6882,13 +6442,6 @@
|
|
|
6882
6442
|
_this.anchorY = 'bottom';
|
|
6883
6443
|
return _this;
|
|
6884
6444
|
}
|
|
6885
|
-
Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
|
|
6886
|
-
get: function () {
|
|
6887
|
-
return this._interactionContext;
|
|
6888
|
-
},
|
|
6889
|
-
enumerable: false,
|
|
6890
|
-
configurable: true
|
|
6891
|
-
});
|
|
6892
6445
|
return PopupActivityTriggerComponent;
|
|
6893
6446
|
}(AbstractActivityTriggerComponent));
|
|
6894
6447
|
PopupActivityTriggerComponent.decorators = [
|
|
@@ -6902,240 +6455,8 @@
|
|
|
6902
6455
|
PopupActivityTriggerComponent.propDecorators = {
|
|
6903
6456
|
anchorX: [{ type: i0.Input }],
|
|
6904
6457
|
anchorY: [{ type: i0.Input }],
|
|
6905
|
-
|
|
6906
|
-
};
|
|
6907
|
-
|
|
6908
|
-
exports.InlineEditorModel = /** @class */ (function (_super) {
|
|
6909
|
-
__extends(InlineEditorModel, _super);
|
|
6910
|
-
function InlineEditorModel(valueModel, saveCallback) {
|
|
6911
|
-
var _this = _super.call(this) || this;
|
|
6912
|
-
_this.valueModel = valueModel;
|
|
6913
|
-
_this.saveCallback = saveCallback;
|
|
6914
|
-
_this.editing = new pectin.MutableValueModel(false);
|
|
6915
|
-
_this._validators = new pectin.MutableListModel();
|
|
6916
|
-
_this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
|
|
6917
|
-
pectin.assert.notNil(valueModel);
|
|
6918
|
-
var when = pectin.Dsl.disposeWith(_this).when;
|
|
6919
|
-
when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
6920
|
-
return _this;
|
|
6921
|
-
}
|
|
6922
|
-
Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
|
|
6923
|
-
get: function () {
|
|
6924
|
-
return this._editingEnabled.readonly;
|
|
6925
|
-
},
|
|
6926
|
-
enumerable: false,
|
|
6927
|
-
configurable: true
|
|
6928
|
-
});
|
|
6929
|
-
InlineEditorModel.prototype.disableWhile = function (condition) {
|
|
6930
|
-
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
6931
|
-
this.enableWhile(chain(condition).isFalsey());
|
|
6932
|
-
return this;
|
|
6933
|
-
};
|
|
6934
|
-
InlineEditorModel.prototype.enableWhile = function (condition) {
|
|
6935
|
-
this._editingEnabled.setDelegate(condition);
|
|
6936
|
-
return this;
|
|
6937
|
-
};
|
|
6938
|
-
Object.defineProperty(InlineEditorModel.prototype, "validators", {
|
|
6939
|
-
get: function () {
|
|
6940
|
-
return this._validators.readonly;
|
|
6941
|
-
},
|
|
6942
|
-
enumerable: false,
|
|
6943
|
-
configurable: true
|
|
6944
|
-
});
|
|
6945
|
-
InlineEditorModel.prototype.validateUsing = function (validator) {
|
|
6946
|
-
this._validators.push(validator);
|
|
6947
|
-
return this;
|
|
6948
|
-
};
|
|
6949
|
-
InlineEditorModel.prototype.isEditing = function () {
|
|
6950
|
-
return this.editing.value;
|
|
6951
|
-
};
|
|
6952
|
-
InlineEditorModel.prototype.cancelEdit = function () {
|
|
6953
|
-
this.editing.value = false;
|
|
6954
|
-
};
|
|
6955
|
-
InlineEditorModel.prototype.startEditing = function () {
|
|
6956
|
-
this.editing.value = true;
|
|
6957
|
-
};
|
|
6958
|
-
return InlineEditorModel;
|
|
6959
|
-
}(pectin.GarbageCollector));
|
|
6960
|
-
(function (InlineEditorModel) {
|
|
6961
|
-
function create(valueModel, options) {
|
|
6962
|
-
return new InlineEditorModel(valueModel, options.save);
|
|
6963
|
-
}
|
|
6964
|
-
InlineEditorModel.create = create;
|
|
6965
|
-
})(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
|
|
6966
|
-
pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
|
|
6967
|
-
|
|
6968
|
-
/**
|
|
6969
|
-
* @example
|
|
6970
|
-
* const source: ValueModel<string> = ...;
|
|
6971
|
-
* const model = InlineEditorModel.create(source, {
|
|
6972
|
-
* save(updated:string, context: EditContext) => {
|
|
6973
|
-
* try {
|
|
6974
|
-
* try and save the thing...
|
|
6975
|
-
* } catch(error) {
|
|
6976
|
-
* context.injectError(error)
|
|
6977
|
-
* }
|
|
6978
|
-
* }).validateUsing(Validator.present("We'll need a value");
|
|
6979
|
-
*
|
|
6980
|
-
* # in the view
|
|
6981
|
-
* <aup-inline-string-editor
|
|
6982
|
-
* label="My field"
|
|
6983
|
-
* placeHolder="I'm ready for a string..."
|
|
6984
|
-
* [editorModel]="model"></aup-inline-string-editor>
|
|
6985
|
-
*/
|
|
6986
|
-
exports.InlineStringEditorComponent = /** @class */ (function (_super) {
|
|
6987
|
-
__extends(InlineStringEditorComponent, _super);
|
|
6988
|
-
function InlineStringEditorComponent(interactionService) {
|
|
6989
|
-
var _this = _super.call(this) || this;
|
|
6990
|
-
_this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
6991
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
6992
|
-
var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6993
|
-
var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
|
|
6994
|
-
return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
|
|
6995
|
-
}, { allowNil: true });
|
|
6996
|
-
_this.editFaceModel = resolvedFacesModel.pluck('edit');
|
|
6997
|
-
_this.saveFace = resolvedFacesModel.pluck('save');
|
|
6998
|
-
_this.cancelFace = resolvedFacesModel.pluck('cancel');
|
|
6999
|
-
var self = _this;
|
|
7000
|
-
_this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
7001
|
-
var e_1;
|
|
7002
|
-
return __generator(this, function (_a) {
|
|
7003
|
-
switch (_a.label) {
|
|
7004
|
-
case 0:
|
|
7005
|
-
this.editorModel.editing.value = true;
|
|
7006
|
-
_a.label = 1;
|
|
7007
|
-
case 1:
|
|
7008
|
-
_a.trys.push([1, 3, 4, 5]);
|
|
7009
|
-
return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
|
|
7010
|
-
case 2:
|
|
7011
|
-
_a.sent();
|
|
7012
|
-
return [3 /*break*/, 5];
|
|
7013
|
-
case 3:
|
|
7014
|
-
e_1 = _a.sent();
|
|
7015
|
-
return [3 /*break*/, 5];
|
|
7016
|
-
case 4:
|
|
7017
|
-
this.editorModel.editing.value = false;
|
|
7018
|
-
return [7 /*endfinally*/];
|
|
7019
|
-
case 5: return [2 /*return*/];
|
|
7020
|
-
}
|
|
7021
|
-
});
|
|
7022
|
-
}); }).enableWhile(_this.editingEnabled);
|
|
7023
|
-
_this.onDispose(function () { return _this.cancelEdit(); });
|
|
7024
|
-
return _this;
|
|
7025
|
-
}
|
|
7026
|
-
InlineStringEditorComponent.prototype.ngOnInit = function () {
|
|
7027
|
-
var _this = this;
|
|
7028
|
-
// our editor model is a one time binding without delegates so we can only
|
|
7029
|
-
// use it once we've been initialised
|
|
7030
|
-
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
7031
|
-
if (!this.editorModel) {
|
|
7032
|
-
typescriptUtilities.lang.illegalState('editorModel is required');
|
|
7033
|
-
}
|
|
7034
|
-
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
7035
|
-
when(this.editorModel.editing).becomesTruthy(function () {
|
|
7036
|
-
_this.editCommand.execute();
|
|
7037
|
-
}, { asLongAs: this.editCommand.enabled });
|
|
7038
|
-
when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
7039
|
-
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
7040
|
-
// deviceDescription.isNil()
|
|
7041
|
-
).areTruthy();
|
|
7042
|
-
this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
|
|
7043
|
-
return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
|
|
7044
|
-
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
7045
|
-
};
|
|
7046
|
-
InlineStringEditorComponent.prototype.createInputActivityData = function () {
|
|
7047
|
-
var self = this;
|
|
7048
|
-
return {
|
|
7049
|
-
initialValue: self.editorModel.valueModel.value,
|
|
7050
|
-
confirmFace: self.saveFace.value,
|
|
7051
|
-
cancelFace: self.cancelFace.value,
|
|
7052
|
-
placeholder: self.placeHolderModel.value,
|
|
7053
|
-
label: self.label,
|
|
7054
|
-
layout: exports.InputActivity.Layout.INLINE,
|
|
7055
|
-
validators: self.editorModel.validators.value,
|
|
7056
|
-
save: function (value, inputContext) {
|
|
7057
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7058
|
-
return __generator(this, function (_a) {
|
|
7059
|
-
switch (_a.label) {
|
|
7060
|
-
case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
|
|
7061
|
-
case 1:
|
|
7062
|
-
_a.sent();
|
|
7063
|
-
return [2 /*return*/];
|
|
7064
|
-
}
|
|
7065
|
-
});
|
|
7066
|
-
});
|
|
7067
|
-
}
|
|
7068
|
-
};
|
|
7069
|
-
};
|
|
7070
|
-
InlineStringEditorComponent.prototype.cancelEdit = function () {
|
|
7071
|
-
if (this.isEditing()) {
|
|
7072
|
-
this.interactionContext.cancelActiveActivity();
|
|
7073
|
-
}
|
|
7074
|
-
};
|
|
7075
|
-
InlineStringEditorComponent.prototype.startEdit = function () {
|
|
7076
|
-
if (!this.isEditing() && this.editCommand.enabled.value) {
|
|
7077
|
-
this.editCommand.execute();
|
|
7078
|
-
}
|
|
7079
|
-
};
|
|
7080
|
-
InlineStringEditorComponent.prototype.isEditing = function () {
|
|
7081
|
-
return this.interactionContext.isActive();
|
|
7082
|
-
};
|
|
7083
|
-
InlineStringEditorComponent.prototype.isEmpty = function () {
|
|
7084
|
-
return this.empty.value;
|
|
7085
|
-
};
|
|
7086
|
-
return InlineStringEditorComponent;
|
|
7087
|
-
}(DisposableComponent));
|
|
7088
|
-
exports.InlineStringEditorComponent.decorators = [
|
|
7089
|
-
{ type: i0.Component, args: [{
|
|
7090
|
-
selector: 'aup-inline-string-editor',
|
|
7091
|
-
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"
|
|
7092
|
-
},] }
|
|
7093
|
-
];
|
|
7094
|
-
exports.InlineStringEditorComponent.ctorParameters = function () { return [
|
|
7095
|
-
{ type: exports.InteractionService }
|
|
7096
|
-
]; };
|
|
7097
|
-
exports.InlineStringEditorComponent.propDecorators = {
|
|
7098
|
-
editorModel: [{ type: i0.Input }],
|
|
7099
|
-
facesModel: [{ type: i0.Input }],
|
|
7100
|
-
faces: [{ type: i0.Input }],
|
|
7101
|
-
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
|
|
7102
|
-
label: [{ type: i0.Input }],
|
|
7103
|
-
placeHolder: [{ type: i0.Input }],
|
|
7104
|
-
placeHolderModel: [{ type: i0.Input }]
|
|
6458
|
+
interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
7105
6459
|
};
|
|
7106
|
-
__decorate([
|
|
7107
|
-
pectin.TrackExternal(),
|
|
7108
|
-
__metadata("design:type", exports.InlineEditorModel)
|
|
7109
|
-
], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
|
|
7110
|
-
__decorate([
|
|
7111
|
-
pectin.TrackExternal(),
|
|
7112
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7113
|
-
], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
|
|
7114
|
-
__decorate([
|
|
7115
|
-
pectin.StoreInValueModel('facesModel'),
|
|
7116
|
-
__metadata("design:type", Object)
|
|
7117
|
-
], exports.InlineStringEditorComponent.prototype, "faces", void 0);
|
|
7118
|
-
__decorate([
|
|
7119
|
-
pectin.StoreInValueModel('placeHolderModel'),
|
|
7120
|
-
__metadata("design:type", String)
|
|
7121
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
|
|
7122
|
-
__decorate([
|
|
7123
|
-
pectin.TrackExternal(),
|
|
7124
|
-
__metadata("design:type", pectin.ValueModel)
|
|
7125
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
7126
|
-
(function (InlineStringEditorComponent) {
|
|
7127
|
-
InlineStringEditorComponent.DEFAULT_FACES = {
|
|
7128
|
-
edit: {
|
|
7129
|
-
icon: function () { return 'mat:edit'; }
|
|
7130
|
-
},
|
|
7131
|
-
save: {
|
|
7132
|
-
icon: function () { return 'mat:check'; }
|
|
7133
|
-
},
|
|
7134
|
-
cancel: {
|
|
7135
|
-
icon: function () { return 'mat:clear'; }
|
|
7136
|
-
}
|
|
7137
|
-
};
|
|
7138
|
-
})(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
|
|
7139
6460
|
|
|
7140
6461
|
var InteractionModule = /** @class */ (function () {
|
|
7141
6462
|
function InteractionModule() {
|
|
@@ -7155,11 +6476,7 @@
|
|
|
7155
6476
|
DirectivesModule,
|
|
7156
6477
|
flexLayout.FlexModule,
|
|
7157
6478
|
flexLayout.GridModule,
|
|
7158
|
-
ComponentsModule
|
|
7159
|
-
forms.FormsModule,
|
|
7160
|
-
input.MatInputModule,
|
|
7161
|
-
formField.MatFormFieldModule,
|
|
7162
|
-
a11y.A11yModule
|
|
6479
|
+
ComponentsModule
|
|
7163
6480
|
],
|
|
7164
6481
|
declarations: [
|
|
7165
6482
|
ActivityContainerComponent,
|
|
@@ -7169,22 +6486,20 @@
|
|
|
7169
6486
|
ActivityOutletComponent,
|
|
7170
6487
|
InPlaceInteractionContextComponent,
|
|
7171
6488
|
AddItemInteractionContextComponent,
|
|
7172
|
-
|
|
6489
|
+
ActivityActionsComponent,
|
|
7173
6490
|
PopupInteractionContextComponent,
|
|
7174
6491
|
StringInputActivity,
|
|
7175
6492
|
SelectInputActivity,
|
|
7176
|
-
|
|
6493
|
+
AbstractInputActivity,
|
|
7177
6494
|
InteractionContextTriggerFor,
|
|
7178
6495
|
Activity,
|
|
7179
6496
|
ActivityTitleComponent,
|
|
7180
6497
|
ActivityBodyComponent,
|
|
7181
|
-
|
|
6498
|
+
ActivityActionsComponent,
|
|
7182
6499
|
AbstractActivityTriggerComponent,
|
|
7183
6500
|
PopupActivityTriggerComponent,
|
|
7184
6501
|
InlineActivityTriggerComponent,
|
|
7185
|
-
ModalActivityTriggerComponent
|
|
7186
|
-
exports.AddCardActivityComponent,
|
|
7187
|
-
exports.InlineStringEditorComponent,
|
|
6502
|
+
ModalActivityTriggerComponent
|
|
7188
6503
|
],
|
|
7189
6504
|
exports: [
|
|
7190
6505
|
ActivityContainerComponent,
|
|
@@ -7192,7 +6507,7 @@
|
|
|
7192
6507
|
ActivityTitleComponent,
|
|
7193
6508
|
InPlaceInteractionContextComponent,
|
|
7194
6509
|
AddItemInteractionContextComponent,
|
|
7195
|
-
|
|
6510
|
+
ActivityActionsComponent,
|
|
7196
6511
|
PopupInteractionContextComponent,
|
|
7197
6512
|
InteractionContextTriggerFor,
|
|
7198
6513
|
StringInputActivity,
|
|
@@ -7200,9 +6515,7 @@
|
|
|
7200
6515
|
ActivityBodyComponent,
|
|
7201
6516
|
PopupActivityTriggerComponent,
|
|
7202
6517
|
InlineActivityTriggerComponent,
|
|
7203
|
-
ModalActivityTriggerComponent
|
|
7204
|
-
exports.AddCardActivityComponent,
|
|
7205
|
-
exports.InlineStringEditorComponent,
|
|
6518
|
+
ModalActivityTriggerComponent
|
|
7206
6519
|
],
|
|
7207
6520
|
entryComponents: [
|
|
7208
6521
|
ActivityContainerComponent,
|
|
@@ -7514,28 +6827,17 @@
|
|
|
7514
6827
|
_this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
|
|
7515
6828
|
return _this;
|
|
7516
6829
|
}
|
|
6830
|
+
// @Trace()
|
|
7517
6831
|
PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
|
|
7518
6832
|
var _this = this;
|
|
7519
6833
|
pectin.assert.isNil(this.visitModel.value);
|
|
7520
6834
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
7521
6835
|
this.visitModel.value = visit;
|
|
7522
6836
|
pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
7523
|
-
|
|
7524
|
-
// route in one go at the end.
|
|
7525
|
-
this.placeDefinition
|
|
7526
|
-
.getVisitParameterDefs()
|
|
7527
|
-
.forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
|
|
6837
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
7528
6838
|
when(this.visitModel).changes(function (current, previous) {
|
|
7529
6839
|
notifyVisitChanged(current, previous);
|
|
7530
6840
|
}, { unless: this._inVisitUpdate });
|
|
7531
|
-
// TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
|
|
7532
|
-
// now we're not doing it as it's a fair bit of effort and will only affect people if they're
|
|
7533
|
-
// cutting and pasting urls to each other.
|
|
7534
|
-
// // the binding process can update the visit (e.g. if a selection model has already selected during
|
|
7535
|
-
// // component construction) and there was no value specified in the route
|
|
7536
|
-
// if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
|
|
7537
|
-
// notifyVisitChanged(this.visitModel.value, visit)
|
|
7538
|
-
// }
|
|
7539
6841
|
};
|
|
7540
6842
|
PlaceComponent.prototype.updateVisit = function (visit) {
|
|
7541
6843
|
var _this = this;
|
|
@@ -7549,12 +6851,7 @@
|
|
|
7549
6851
|
return !!this.visitModel.value;
|
|
7550
6852
|
};
|
|
7551
6853
|
// @Trace()
|
|
7552
|
-
|
|
7553
|
-
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
7554
|
-
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
7555
|
-
* method will return ture to nofiy the the visit has changed.
|
|
7556
|
-
*/
|
|
7557
|
-
PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
|
|
6854
|
+
PlaceComponent.prototype.installBinding = function (parameterDef) {
|
|
7558
6855
|
var model = this[parameterDef.propertyName];
|
|
7559
6856
|
pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
|
|
7560
6857
|
var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
|
|
@@ -7568,17 +6865,7 @@
|
|
|
7568
6865
|
return currentVisit.replace(parameterDef, value);
|
|
7569
6866
|
}
|
|
7570
6867
|
}));
|
|
7571
|
-
|
|
7572
|
-
// 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
|
|
7573
|
-
// component constructor) then we should push that to the route.
|
|
7574
|
-
var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
|
|
7575
|
-
var isInModel = !___namespace.isNil(model.value);
|
|
7576
|
-
if (!isInVisit && isInModel) {
|
|
7577
|
-
binding.writeLeft(); // push it to the route
|
|
7578
|
-
}
|
|
7579
|
-
else {
|
|
7580
|
-
binding.writeRight(); // push it to the model
|
|
7581
|
-
}
|
|
6868
|
+
binding.writeRight();
|
|
7582
6869
|
};
|
|
7583
6870
|
Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
|
|
7584
6871
|
get: function () {
|
|
@@ -8750,7 +8037,7 @@
|
|
|
8750
8037
|
};
|
|
8751
8038
|
Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
|
|
8752
8039
|
get: function () {
|
|
8753
|
-
return
|
|
8040
|
+
return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
|
|
8754
8041
|
},
|
|
8755
8042
|
enumerable: false,
|
|
8756
8043
|
configurable: true
|
|
@@ -8839,13 +8126,9 @@
|
|
|
8839
8126
|
});
|
|
8840
8127
|
return new Visit(this.placeDefinition, params);
|
|
8841
8128
|
};
|
|
8842
|
-
// @Trace()
|
|
8843
8129
|
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
8844
8130
|
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
8845
|
-
var
|
|
8846
|
-
var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
|
|
8847
|
-
// console.log({currentParams, otherParams});
|
|
8848
|
-
var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
|
|
8131
|
+
var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
8849
8132
|
return !samePlace || !sameRouteParameters;
|
|
8850
8133
|
};
|
|
8851
8134
|
Visit.prototype.hasChangedFrom = function (other) {
|
|
@@ -8869,7 +8152,6 @@
|
|
|
8869
8152
|
this.url = url;
|
|
8870
8153
|
this.urlTree = urlSerializer.parse(url);
|
|
8871
8154
|
}
|
|
8872
|
-
// @Trace()
|
|
8873
8155
|
UrlSnapshot.prototype.updateVisitSegments = function (visit) {
|
|
8874
8156
|
var newUrlTree = this.urlSerializer.parse(this.url);
|
|
8875
8157
|
// Ugly, but it works for now.
|
|
@@ -8947,6 +8229,12 @@
|
|
|
8947
8229
|
};
|
|
8948
8230
|
return UrlSnapshot;
|
|
8949
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);
|
|
8950
8238
|
__decorate([
|
|
8951
8239
|
src.Memoize(),
|
|
8952
8240
|
__metadata("design:type", Function),
|
|
@@ -9033,9 +8321,6 @@
|
|
|
9033
8321
|
{ type: i1$1.UrlSerializer }
|
|
9034
8322
|
]; };
|
|
9035
8323
|
|
|
9036
|
-
function asArray(item) {
|
|
9037
|
-
return Array.isArray(item) ? item : [item];
|
|
9038
|
-
}
|
|
9039
8324
|
exports.PlaceRouter = /** @class */ (function (_super) {
|
|
9040
8325
|
__extends(PlaceRouter, _super);
|
|
9041
8326
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -9215,15 +8500,17 @@
|
|
|
9215
8500
|
};
|
|
9216
8501
|
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
9217
8502
|
var _this = this;
|
|
9218
|
-
var commands = asArray(visit).reduce(function (result, v) {
|
|
9219
|
-
return __spreadArray(__spreadArray(__spreadArray([], __read(result)), [v.placeDefinition.path]), __read(_this.createRouteParameters(v)));
|
|
9220
|
-
}, []);
|
|
9221
8503
|
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
8504
|
+
var commands;
|
|
9222
8505
|
return __generator(this, function (_a) {
|
|
9223
8506
|
switch (_a.label) {
|
|
9224
|
-
case 0:
|
|
9225
|
-
|
|
9226
|
-
|
|
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
|
+
})];
|
|
9227
8514
|
case 1:
|
|
9228
8515
|
_a.sent();
|
|
9229
8516
|
return [2 /*return*/];
|
|
@@ -9242,7 +8529,7 @@
|
|
|
9242
8529
|
pectin.lang.illegalState('Navigation already in progress');
|
|
9243
8530
|
}
|
|
9244
8531
|
navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
9245
|
-
|
|
8532
|
+
navigation.storeVisit(visit);
|
|
9246
8533
|
this.transitionTo(navigation);
|
|
9247
8534
|
_a.label = 1;
|
|
9248
8535
|
case 1:
|
|
@@ -9338,7 +8625,6 @@
|
|
|
9338
8625
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
9339
8626
|
* the app directly and we don't get to ask.
|
|
9340
8627
|
*/
|
|
9341
|
-
// @Trace()
|
|
9342
8628
|
PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
|
|
9343
8629
|
var _this = this;
|
|
9344
8630
|
if (this.navigationSession) {
|
|
@@ -9382,6 +8668,12 @@
|
|
|
9382
8668
|
{ type: UrlService },
|
|
9383
8669
|
{ type: exports.PlaceHistory }
|
|
9384
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);
|
|
9385
8677
|
(function (PlaceRouter) {
|
|
9386
8678
|
var State = /** @class */ (function () {
|
|
9387
8679
|
function State(activeVisits) {
|
|
@@ -10220,13 +9512,13 @@
|
|
|
10220
9512
|
}
|
|
10221
9513
|
_a.label = 2;
|
|
10222
9514
|
case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10223
|
-
var
|
|
9515
|
+
var params, parsedParams, navigationSession, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
|
|
10224
9516
|
return __generator(this, function (_a) {
|
|
10225
9517
|
switch (_a.label) {
|
|
10226
9518
|
case 0:
|
|
10227
|
-
navigationSession = this.placeRouter.navigationSession;
|
|
10228
9519
|
params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
|
|
10229
9520
|
parsedParams = placeDefinition_1.parseRouteParams(params);
|
|
9521
|
+
navigationSession = this.placeRouter.navigationSession;
|
|
10230
9522
|
initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
|
|
10231
9523
|
sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
|
|
10232
9524
|
return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
|
|
@@ -10515,7 +9807,7 @@
|
|
|
10515
9807
|
exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
|
|
10516
9808
|
exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
|
|
10517
9809
|
exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
|
|
10518
|
-
exports.
|
|
9810
|
+
exports.AbstractInputActivity = AbstractInputActivity;
|
|
10519
9811
|
exports.AbstractInputComponent = AbstractInputComponent;
|
|
10520
9812
|
exports.AbstractInteractionContext = AbstractInteractionContext;
|
|
10521
9813
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
@@ -10526,6 +9818,7 @@
|
|
|
10526
9818
|
exports.AbstractTableModel = AbstractTableModel;
|
|
10527
9819
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
10528
9820
|
exports.Activity = Activity;
|
|
9821
|
+
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
10529
9822
|
exports.ActivityBodyComponent = ActivityBodyComponent;
|
|
10530
9823
|
exports.ActivityContainerComponent = ActivityContainerComponent;
|
|
10531
9824
|
exports.ActivityOutletComponent = ActivityOutletComponent;
|
|
@@ -10539,7 +9832,6 @@
|
|
|
10539
9832
|
exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
|
|
10540
9833
|
exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
|
|
10541
9834
|
exports.CardContainerComponent = CardContainerComponent;
|
|
10542
|
-
exports.CardStackComponent = CardStackComponent;
|
|
10543
9835
|
exports.CellEditorPortalRef = CellEditorPortalRef;
|
|
10544
9836
|
exports.CellHeaderPortalRef = CellHeaderPortalRef;
|
|
10545
9837
|
exports.CellPortalRef = CellPortalRef;
|
|
@@ -10589,10 +9881,8 @@
|
|
|
10589
9881
|
exports.InteractionModule = InteractionModule;
|
|
10590
9882
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
10591
9883
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
10592
|
-
exports.LabelledValueComponent = LabelledValueComponent;
|
|
10593
9884
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
10594
9885
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
10595
|
-
exports.LoadingContainerComponent = LoadingContainerComponent;
|
|
10596
9886
|
exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;
|
|
10597
9887
|
exports.ModalInteractionContextFactory = ModalInteractionContextFactory;
|
|
10598
9888
|
exports.MoreMenuComponent = MoreMenuComponent;
|