@coolon/angular-ui-powerups 12.4.0-alpha.39 → 12.4.0-alpha.4
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/form.scss +2 -5
- package/assets/interaction.scss +7 -11
- package/assets/styles.scss +12 -5
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +307 -738
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +125 -679
- 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 +51 -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 +58 -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/{cards/card-container → card-container}/card-container.component.js +22 -11
- 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 -32
- 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 -4
- 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/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-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 -3
- 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 -3
- 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/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 -17
- 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 +8 -3
- 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 +228 -555
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +99 -565
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +10 -9
- package/lib/components/exports.d.ts +1 -4
- 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 -2
- package/lib/interaction/exports.d.ts +3 -5
- package/lib/place/place-component.d.ts +1 -6
- 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/assets/cards.scss +0 -13
- package/assets/empty-state.scss +0 -11
- package/assets/forms/mixins.scss +0 -6
- package/assets/interaction/editor/inline-string-editor.scss +0 -88
- package/assets/interaction/input-activity.scss +0 -12
- 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.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 -72
- 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/interaction/components/add-card-activity/add-card-activity.component.js +0 -75
- 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 -160
- 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 -71
- 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 -63
- package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -38
- 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 -33
|
@@ -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>
|
|
@@ -858,92 +825,29 @@
|
|
|
858
825
|
var CardContainerComponent = /** @class */ (function (_super) {
|
|
859
826
|
__extends(CardContainerComponent, _super);
|
|
860
827
|
function CardContainerComponent() {
|
|
861
|
-
return _super
|
|
828
|
+
return _super.call(this) || this;
|
|
862
829
|
}
|
|
830
|
+
CardContainerComponent.prototype.ngOnInit = function () {
|
|
831
|
+
};
|
|
863
832
|
return CardContainerComponent;
|
|
864
|
-
}(
|
|
833
|
+
}(DisposableComponent));
|
|
865
834
|
CardContainerComponent.decorators = [
|
|
866
835
|
{ type: i0.Component, args: [{
|
|
867
836
|
selector: 'aup-card-container',
|
|
868
|
-
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</div>\n",
|
|
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",
|
|
869
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}"]
|
|
870
839
|
},] }
|
|
871
840
|
];
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
* <my-card *ngFor="..."></my-card>
|
|
883
|
-
* </aup-card-stack>
|
|
884
|
-
*
|
|
885
|
-
* // adds an add button with the specified face
|
|
886
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
887
|
-
* <my-card *ngFor="..."></my-card>
|
|
888
|
-
* </aup-card-stack>
|
|
889
|
-
*
|
|
890
|
-
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
891
|
-
* // the activity inside teh card
|
|
892
|
-
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
893
|
-
* <my-card *ngFor="..."></my-card>
|
|
894
|
-
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
895
|
-
* </aup-card-stack>
|
|
896
|
-
*
|
|
897
|
-
* // adds an add card component using the specified template. The template
|
|
898
|
-
* // will fill it's container in the grid.
|
|
899
|
-
* <aup-card-stack>
|
|
900
|
-
* <my-card *ngFor="..."></my-card>
|
|
901
|
-
* <ng-template #addCardTemplate>
|
|
902
|
-
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
903
|
-
* </ng-template>
|
|
904
|
-
* </aup-card-stack>
|
|
905
|
-
*
|
|
906
|
-
* // sing the default new card styles for your template
|
|
907
|
-
* @import "../../../../assets/styles";
|
|
908
|
-
* .my-new-card {
|
|
909
|
-
* @include aup-card-stack-new-card-style();
|
|
910
|
-
* // OR
|
|
911
|
-
* @include aup-card-stack-new-card-style(
|
|
912
|
-
* $color: rgba(0,0,0,0.54),
|
|
913
|
-
* $background-color: rgba(255,255,255,0.8),
|
|
914
|
-
* $hover-color: $color,
|
|
915
|
-
* $background-hover-color: white
|
|
916
|
-
* )
|
|
917
|
-
* }
|
|
918
|
-
* <aup-card-stack>
|
|
919
|
-
* <my-card *ngFor="..."></my-card>
|
|
920
|
-
* <ng-template #addCardTemplate>
|
|
921
|
-
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
922
|
-
* </ng-template>
|
|
923
|
-
* </aup-card-stack>
|
|
924
|
-
*
|
|
925
|
-
* // CSS Vars
|
|
926
|
-
* aup-card-stack {
|
|
927
|
-
* --card-gap: var(--card-gap, 16px);
|
|
928
|
-
* --card-height: var(--card-height, auto);
|
|
929
|
-
* --card-min-height: var(--card-min-height, auto);
|
|
930
|
-
* --card-background: var(--card-background, #fcfcfb);
|
|
931
|
-
* }
|
|
932
|
-
*/
|
|
933
|
-
var CardStackComponent = /** @class */ (function (_super) {
|
|
934
|
-
__extends(CardStackComponent, _super);
|
|
935
|
-
function CardStackComponent() {
|
|
936
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
937
|
-
}
|
|
938
|
-
return CardStackComponent;
|
|
939
|
-
}(AbstractCardContainerComponent));
|
|
940
|
-
CardStackComponent.decorators = [
|
|
941
|
-
{ type: i0.Component, args: [{
|
|
942
|
-
selector: 'aup-card-stack',
|
|
943
|
-
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",
|
|
944
|
-
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;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}"]
|
|
945
|
-
},] }
|
|
946
|
-
];
|
|
841
|
+
CardContainerComponent.ctorParameters = function () { return []; };
|
|
842
|
+
CardContainerComponent.propDecorators = {
|
|
843
|
+
addCardCommand: [{ type: i0.Input }],
|
|
844
|
+
addCardFace: [{ type: i0.Input }],
|
|
845
|
+
addCardTemplate: [{ type: i0.ContentChild, args: ["addCardTemplate",] }]
|
|
846
|
+
};
|
|
847
|
+
__decorate([
|
|
848
|
+
pectin.TrackExternal(),
|
|
849
|
+
__metadata("design:type", pectin.Command)
|
|
850
|
+
], CardContainerComponent.prototype, "addCardCommand", void 0);
|
|
947
851
|
|
|
948
852
|
exports.CommandFace = void 0;
|
|
949
853
|
(function (CommandFace) {
|
|
@@ -1431,22 +1335,10 @@
|
|
|
1431
1335
|
exports.TrackBy = void 0;
|
|
1432
1336
|
(function (TrackBy) {
|
|
1433
1337
|
TrackBy.byIndex = function (index, item) { return index; };
|
|
1434
|
-
/**
|
|
1435
|
-
* @deprecated use #track(MyType).by("property") instead.
|
|
1436
|
-
* @param property
|
|
1437
|
-
*/
|
|
1438
1338
|
function trackByProperty(property) {
|
|
1439
1339
|
return function (index, item) { return item[property]; };
|
|
1440
1340
|
}
|
|
1441
1341
|
TrackBy.trackByProperty = trackByProperty;
|
|
1442
|
-
function track(type) {
|
|
1443
|
-
return {
|
|
1444
|
-
by: function (property) {
|
|
1445
|
-
return function (index, item) { return item[property]; };
|
|
1446
|
-
}
|
|
1447
|
-
};
|
|
1448
|
-
}
|
|
1449
|
-
TrackBy.track = track;
|
|
1450
1342
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1451
1343
|
|
|
1452
1344
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -1695,7 +1587,7 @@
|
|
|
1695
1587
|
{ type: i0.Component, args: [{
|
|
1696
1588
|
selector: 'aup-empty-state',
|
|
1697
1589
|
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
1698
|
-
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}"]
|
|
1699
1591
|
},] }
|
|
1700
1592
|
];
|
|
1701
1593
|
EmptyStateComponent.ctorParameters = function () { return []; };
|
|
@@ -1793,7 +1685,6 @@
|
|
|
1793
1685
|
function AbstractInputComponent() {
|
|
1794
1686
|
var _this = _super.call(this) || this;
|
|
1795
1687
|
_this.onValueEditedListeners = new pectin.EventListenerList();
|
|
1796
|
-
_this.userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1797
1688
|
_this.dense = false;
|
|
1798
1689
|
// TODO: fix this.
|
|
1799
1690
|
// tslint:disable-next-line:no-output-native
|
|
@@ -4367,16 +4258,16 @@
|
|
|
4367
4258
|
var FlattenedTreeListModel = /** @class */ (function (_super) {
|
|
4368
4259
|
__extends(FlattenedTreeListModel, _super);
|
|
4369
4260
|
function FlattenedTreeListModel(source, childRef, expansionModel) {
|
|
4370
|
-
var _this = _super.call(this, source
|
|
4371
|
-
initialValue: [],
|
|
4372
|
-
identifiedWith: function (row) { return source.identityOf(row); }
|
|
4373
|
-
}) || this;
|
|
4261
|
+
var _this = _super.call(this, source) || this;
|
|
4374
4262
|
_this.source = source;
|
|
4375
4263
|
_this.childRef = childRef;
|
|
4376
4264
|
_this.expansionModel = expansionModel;
|
|
4377
4265
|
_this.trackSource(expansionModel.isExpandedPredicate);
|
|
4378
4266
|
return _this;
|
|
4379
4267
|
}
|
|
4268
|
+
FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
|
|
4269
|
+
return this.source.identityOf(item);
|
|
4270
|
+
};
|
|
4380
4271
|
FlattenedTreeListModel.prototype.compute = function (values) {
|
|
4381
4272
|
var _this = this;
|
|
4382
4273
|
var result = [];
|
|
@@ -4509,7 +4400,6 @@
|
|
|
4509
4400
|
var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
|
|
4510
4401
|
_this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
|
|
4511
4402
|
_this.setDataSource(_this.flattenedDataSource);
|
|
4512
|
-
_this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
|
|
4513
4403
|
return _this;
|
|
4514
4404
|
}
|
|
4515
4405
|
TreeTableModel.prototype.treeControlColumn = function (builder) {
|
|
@@ -4792,28 +4682,6 @@
|
|
|
4792
4682
|
__metadata("design:type", pectin.PageController)
|
|
4793
4683
|
], PaginatorComponent.prototype, "pageController", void 0);
|
|
4794
4684
|
|
|
4795
|
-
var LabelledValueComponent = /** @class */ (function (_super) {
|
|
4796
|
-
__extends(LabelledValueComponent, _super);
|
|
4797
|
-
function LabelledValueComponent() {
|
|
4798
|
-
return _super.call(this) || this;
|
|
4799
|
-
// const {chain} = Dsl.disposeWith(this);
|
|
4800
|
-
}
|
|
4801
|
-
LabelledValueComponent.prototype.ngOnInit = function () {
|
|
4802
|
-
};
|
|
4803
|
-
return LabelledValueComponent;
|
|
4804
|
-
}(DisposableComponent));
|
|
4805
|
-
LabelledValueComponent.decorators = [
|
|
4806
|
-
{ type: i0.Component, args: [{
|
|
4807
|
-
selector: 'aup-labelled-value',
|
|
4808
|
-
template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
|
|
4809
|
-
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}"]
|
|
4810
|
-
},] }
|
|
4811
|
-
];
|
|
4812
|
-
LabelledValueComponent.ctorParameters = function () { return []; };
|
|
4813
|
-
LabelledValueComponent.propDecorators = {
|
|
4814
|
-
label: [{ type: i0.Input }]
|
|
4815
|
-
};
|
|
4816
|
-
|
|
4817
4685
|
var ComponentsModule = /** @class */ (function () {
|
|
4818
4686
|
function ComponentsModule(faIconLibrary) {
|
|
4819
4687
|
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
@@ -4822,28 +4690,6 @@
|
|
|
4822
4690
|
}());
|
|
4823
4691
|
ComponentsModule.decorators = [
|
|
4824
4692
|
{ type: i0.NgModule, args: [{
|
|
4825
|
-
imports: [
|
|
4826
|
-
i2.CommonModule,
|
|
4827
|
-
animations.BrowserAnimationsModule,
|
|
4828
|
-
forms.FormsModule,
|
|
4829
|
-
input.MatInputModule,
|
|
4830
|
-
formField.MatFormFieldModule,
|
|
4831
|
-
select.MatSelectModule,
|
|
4832
|
-
tabs.MatTabsModule,
|
|
4833
|
-
DirectivesModule,
|
|
4834
|
-
icon.MatIconModule,
|
|
4835
|
-
button.MatButtonModule,
|
|
4836
|
-
checkbox.MatCheckboxModule,
|
|
4837
|
-
table.MatTableModule,
|
|
4838
|
-
portal.PortalModule,
|
|
4839
|
-
scrolling.CdkScrollableModule,
|
|
4840
|
-
angularFontawesome.FontAwesomeModule,
|
|
4841
|
-
tooltip.MatTooltipModule,
|
|
4842
|
-
autocomplete.MatAutocompleteModule,
|
|
4843
|
-
menu.MatMenuModule,
|
|
4844
|
-
divider.MatDividerModule,
|
|
4845
|
-
progressSpinner.MatProgressSpinnerModule
|
|
4846
|
-
],
|
|
4847
4693
|
declarations: [
|
|
4848
4694
|
AbstractInputComponent,
|
|
4849
4695
|
AbstractValueInputComponent,
|
|
@@ -4892,10 +4738,29 @@
|
|
|
4892
4738
|
BusyOverlayComponent,
|
|
4893
4739
|
EmptyStateComponent,
|
|
4894
4740
|
PaginatorComponent,
|
|
4895
|
-
AbstractTableComponent
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
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
|
|
4899
4764
|
],
|
|
4900
4765
|
exports: [
|
|
4901
4766
|
NumberInputComponent,
|
|
@@ -4932,8 +4797,6 @@
|
|
|
4932
4797
|
BusyOverlayComponent,
|
|
4933
4798
|
EmptyStateComponent,
|
|
4934
4799
|
PaginatorComponent,
|
|
4935
|
-
CardStackComponent,
|
|
4936
|
-
LabelledValueComponent,
|
|
4937
4800
|
],
|
|
4938
4801
|
providers: [
|
|
4939
4802
|
FocusBindingFactory
|
|
@@ -4965,13 +4828,12 @@
|
|
|
4965
4828
|
* <span>This content will be between the two commands</span>
|
|
4966
4829
|
* </aup-activity-actions>
|
|
4967
4830
|
*/
|
|
4968
|
-
|
|
4831
|
+
var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
4969
4832
|
__extends(ActivityActionsComponent, _super);
|
|
4970
4833
|
function ActivityActionsComponent(cdr) {
|
|
4971
4834
|
var _this = _super.call(this) || this;
|
|
4972
4835
|
_this.cdr = cdr;
|
|
4973
|
-
_this.
|
|
4974
|
-
_this.align = ActivityActionsComponent.Align.STRETCH;
|
|
4836
|
+
_this.align = 'stretch';
|
|
4975
4837
|
return _this;
|
|
4976
4838
|
}
|
|
4977
4839
|
Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
|
|
@@ -4992,6 +4854,20 @@
|
|
|
4992
4854
|
enumerable: false,
|
|
4993
4855
|
configurable: true
|
|
4994
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
|
+
});
|
|
4995
4871
|
ActivityActionsComponent.prototype.ngOnInit = function () {
|
|
4996
4872
|
};
|
|
4997
4873
|
ActivityActionsComponent.prototype.hasConfirmFace = function () {
|
|
@@ -5007,45 +4883,35 @@
|
|
|
5007
4883
|
};
|
|
5008
4884
|
return ActivityActionsComponent;
|
|
5009
4885
|
}(DisposableComponent));
|
|
5010
|
-
|
|
4886
|
+
ActivityActionsComponent.decorators = [
|
|
5011
4887
|
{ type: i0.Component, args: [{
|
|
5012
4888
|
selector: 'aup-activity-actions',
|
|
5013
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",
|
|
5014
|
-
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}"]
|
|
5015
4891
|
},] }
|
|
5016
4892
|
];
|
|
5017
|
-
|
|
4893
|
+
ActivityActionsComponent.ctorParameters = function () { return [
|
|
5018
4894
|
{ type: i0.ChangeDetectorRef }
|
|
5019
4895
|
]; };
|
|
5020
|
-
|
|
4896
|
+
ActivityActionsComponent.propDecorators = {
|
|
5021
4897
|
confirmCommand: [{ type: i0.Input }],
|
|
5022
4898
|
cancelCommand: [{ type: i0.Input }],
|
|
5023
4899
|
faces: [{ type: i0.Input }],
|
|
5024
4900
|
confirmFace: [{ type: i0.Input }],
|
|
5025
4901
|
cancelFace: [{ type: i0.Input }],
|
|
5026
4902
|
style: [{ type: i0.Input }],
|
|
5027
|
-
|
|
5028
|
-
|
|
4903
|
+
align: [{ type: i0.Input }],
|
|
4904
|
+
alignEnd: [{ type: i0.HostBinding, args: ['class.align-end',] }],
|
|
4905
|
+
alignStretch: [{ type: i0.HostBinding, args: ['class.align-stretch',] }]
|
|
5029
4906
|
};
|
|
5030
4907
|
__decorate([
|
|
5031
4908
|
pectin.TrackExternal(),
|
|
5032
4909
|
__metadata("design:type", pectin.Command)
|
|
5033
|
-
],
|
|
4910
|
+
], ActivityActionsComponent.prototype, "confirmCommand", void 0);
|
|
5034
4911
|
__decorate([
|
|
5035
4912
|
pectin.TrackExternal(),
|
|
5036
4913
|
__metadata("design:type", pectin.Command)
|
|
5037
|
-
],
|
|
5038
|
-
(function (ActivityActionsComponent) {
|
|
5039
|
-
ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
|
|
5040
|
-
INLINE: 'inline',
|
|
5041
|
-
BLOCK: 'block'
|
|
5042
|
-
});
|
|
5043
|
-
ActivityActionsComponent.Align = typescriptStringEnums.Enum({
|
|
5044
|
-
START: 'start',
|
|
5045
|
-
END: 'end',
|
|
5046
|
-
STRETCH: 'stretch'
|
|
5047
|
-
});
|
|
5048
|
-
})(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
|
|
4914
|
+
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
5049
4915
|
|
|
5050
4916
|
var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
|
|
5051
4917
|
var Activity = /** @class */ (function (_super) {
|
|
@@ -5128,7 +4994,7 @@
|
|
|
5128
4994
|
];
|
|
5129
4995
|
Activity.ctorParameters = function () { return []; };
|
|
5130
4996
|
Activity.propDecorators = {
|
|
5131
|
-
activityActions: [{ type: i0.ViewChild, args: [
|
|
4997
|
+
activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
|
|
5132
4998
|
class: [{ type: i0.HostBinding, args: ['class',] }],
|
|
5133
4999
|
isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
|
|
5134
5000
|
};
|
|
@@ -5749,13 +5615,6 @@
|
|
|
5749
5615
|
});
|
|
5750
5616
|
return _this;
|
|
5751
5617
|
}
|
|
5752
|
-
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
|
|
5753
|
-
get: function () {
|
|
5754
|
-
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
5755
|
-
},
|
|
5756
|
-
enumerable: false,
|
|
5757
|
-
configurable: true
|
|
5758
|
-
});
|
|
5759
5618
|
AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
|
|
5760
5619
|
};
|
|
5761
5620
|
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
|
|
@@ -5997,16 +5856,9 @@
|
|
|
5997
5856
|
__extends(ModalActivityTriggerComponent, _super);
|
|
5998
5857
|
function ModalActivityTriggerComponent(interactionService) {
|
|
5999
5858
|
var _this = _super.call(this) || this;
|
|
6000
|
-
_this.
|
|
5859
|
+
_this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6001
5860
|
return _this;
|
|
6002
5861
|
}
|
|
6003
|
-
Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
|
|
6004
|
-
get: function () {
|
|
6005
|
-
return this._interactionContext;
|
|
6006
|
-
},
|
|
6007
|
-
enumerable: false,
|
|
6008
|
-
configurable: true
|
|
6009
|
-
});
|
|
6010
5862
|
return ModalActivityTriggerComponent;
|
|
6011
5863
|
}(AbstractActivityTriggerComponent));
|
|
6012
5864
|
ModalActivityTriggerComponent.decorators = [
|
|
@@ -6052,13 +5904,6 @@
|
|
|
6052
5904
|
enumerable: false,
|
|
6053
5905
|
configurable: true
|
|
6054
5906
|
});
|
|
6055
|
-
Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
|
|
6056
|
-
get: function () {
|
|
6057
|
-
return this.isActive();
|
|
6058
|
-
},
|
|
6059
|
-
enumerable: false,
|
|
6060
|
-
configurable: true
|
|
6061
|
-
});
|
|
6062
5907
|
InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
|
|
6063
5908
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
6064
5909
|
};
|
|
@@ -6108,93 +5953,8 @@
|
|
|
6108
5953
|
]; };
|
|
6109
5954
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
6110
5955
|
activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
|
|
6111
|
-
animateFirstActivity: [{ type: i0.Input }]
|
|
6112
|
-
active: [{ type: i0.HostBinding, args: ["class.active",] }]
|
|
6113
|
-
};
|
|
6114
|
-
|
|
6115
|
-
/**
|
|
6116
|
-
*
|
|
6117
|
-
*/
|
|
6118
|
-
exports.AddCardActivityComponent = /** @class */ (function (_super) {
|
|
6119
|
-
__extends(AddCardActivityComponent, _super);
|
|
6120
|
-
function AddCardActivityComponent(interactionService) {
|
|
6121
|
-
var _this = _super.call(this) || this;
|
|
6122
|
-
_this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
|
|
6123
|
-
_this.renderAs = AddCardActivityComponent.RenderAs.CARD;
|
|
6124
|
-
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
6125
|
-
_this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6126
|
-
_this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
|
|
6127
|
-
return _this;
|
|
6128
|
-
}
|
|
6129
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
|
|
6130
|
-
get: function () {
|
|
6131
|
-
return "render-as-" + this.renderAs;
|
|
6132
|
-
},
|
|
6133
|
-
enumerable: false,
|
|
6134
|
-
configurable: true
|
|
6135
|
-
});
|
|
6136
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
|
|
6137
|
-
get: function () {
|
|
6138
|
-
return this.interactionStyle + "-activity";
|
|
6139
|
-
},
|
|
6140
|
-
enumerable: false,
|
|
6141
|
-
configurable: true
|
|
6142
|
-
});
|
|
6143
|
-
AddCardActivityComponent.prototype.isRenderAsCard = function () {
|
|
6144
|
-
return this.renderAs === 'card';
|
|
6145
|
-
};
|
|
6146
|
-
AddCardActivityComponent.prototype.isRenderAsButton = function () {
|
|
6147
|
-
return this.renderAs === 'button';
|
|
6148
|
-
};
|
|
6149
|
-
AddCardActivityComponent.prototype.ngOnInit = function () {
|
|
6150
|
-
};
|
|
6151
|
-
Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
|
|
6152
|
-
get: function () {
|
|
6153
|
-
switch (this.interactionStyle) {
|
|
6154
|
-
case 'inline':
|
|
6155
|
-
return this.inlineInteractionContext;
|
|
6156
|
-
default:
|
|
6157
|
-
return this.modalInteractionContext;
|
|
6158
|
-
}
|
|
6159
|
-
},
|
|
6160
|
-
enumerable: false,
|
|
6161
|
-
configurable: true
|
|
6162
|
-
});
|
|
6163
|
-
AddCardActivityComponent.prototype.isModal = function () {
|
|
6164
|
-
return this.interactionStyle === 'modal';
|
|
6165
|
-
};
|
|
6166
|
-
AddCardActivityComponent.prototype.isInline = function () {
|
|
6167
|
-
return this.interactionStyle === 'inline';
|
|
6168
|
-
};
|
|
6169
|
-
return AddCardActivityComponent;
|
|
6170
|
-
}(AbstractActivityTriggerComponent));
|
|
6171
|
-
exports.AddCardActivityComponent.decorators = [
|
|
6172
|
-
{ type: i0.Component, args: [{
|
|
6173
|
-
selector: 'aup-add-card-activity',
|
|
6174
|
-
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",
|
|
6175
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){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)}:host[interactionStyle=inline][renderas=card]:not(.active):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)}:host[interactionStyle=inline][renderas=card]:not(.active):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)}:host[interactionStyle=modal][renderas=card]{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)}:host[interactionStyle=modal][renderas=card]: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)}:host[interactionStyle=modal][renderas=card]: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)}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}"]
|
|
6176
|
-
},] }
|
|
6177
|
-
];
|
|
6178
|
-
exports.AddCardActivityComponent.ctorParameters = function () { return [
|
|
6179
|
-
{ type: exports.InteractionService }
|
|
6180
|
-
]; };
|
|
6181
|
-
exports.AddCardActivityComponent.propDecorators = {
|
|
6182
|
-
inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
6183
|
-
interactionStyle: [{ type: i0.Input }],
|
|
6184
|
-
renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
|
|
6185
|
-
renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
6186
|
-
activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
5956
|
+
animateFirstActivity: [{ type: i0.Input }]
|
|
6187
5957
|
};
|
|
6188
|
-
(function (AddCardActivityComponent) {
|
|
6189
|
-
AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
|
|
6190
|
-
MODAL: 'modal',
|
|
6191
|
-
INLINE: 'inline'
|
|
6192
|
-
});
|
|
6193
|
-
AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
|
|
6194
|
-
CARD: 'card',
|
|
6195
|
-
BUTTON: 'button'
|
|
6196
|
-
});
|
|
6197
|
-
})(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
|
|
6198
5958
|
|
|
6199
5959
|
/**
|
|
6200
5960
|
* Css Vars.
|
|
@@ -6265,13 +6025,6 @@
|
|
|
6265
6025
|
function InlineActivityTriggerComponent() {
|
|
6266
6026
|
return _super.call(this) || this;
|
|
6267
6027
|
}
|
|
6268
|
-
Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
|
|
6269
|
-
get: function () {
|
|
6270
|
-
return this._interactionContext;
|
|
6271
|
-
},
|
|
6272
|
-
enumerable: false,
|
|
6273
|
-
configurable: true
|
|
6274
|
-
});
|
|
6275
6028
|
return InlineActivityTriggerComponent;
|
|
6276
6029
|
}(AbstractActivityTriggerComponent));
|
|
6277
6030
|
InlineActivityTriggerComponent.decorators = [
|
|
@@ -6283,7 +6036,7 @@
|
|
|
6283
6036
|
];
|
|
6284
6037
|
InlineActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6285
6038
|
InlineActivityTriggerComponent.propDecorators = {
|
|
6286
|
-
|
|
6039
|
+
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
6287
6040
|
};
|
|
6288
6041
|
|
|
6289
6042
|
/**
|
|
@@ -6456,86 +6209,45 @@
|
|
|
6456
6209
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
6457
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)
|
|
6458
6211
|
// @dynamic
|
|
6459
|
-
|
|
6460
|
-
__extends(
|
|
6461
|
-
function
|
|
6212
|
+
var AbstractInputActivity = /** @class */ (function (_super) {
|
|
6213
|
+
__extends(AbstractInputActivity, _super);
|
|
6214
|
+
function AbstractInputActivity(data) {
|
|
6462
6215
|
var _this = _super.call(this) || this;
|
|
6463
6216
|
_this.data = data;
|
|
6464
6217
|
_this.class = 'aup-input-activity';
|
|
6465
6218
|
var form = new pectin.DirtyTrackingForm();
|
|
6466
6219
|
_this.valueModel = form.valueModel(_this.data.initialValue);
|
|
6467
6220
|
_this.valueModel.validateUsing(data.validators || []);
|
|
6468
|
-
_this.confirmCommand = pectin.Command.create(function () {
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
if (!this.valueModel.validate()) return [3 /*break*/, 6];
|
|
6474
|
-
if (!data.save) return [3 /*break*/, 5];
|
|
6475
|
-
self_1 = this;
|
|
6476
|
-
_c.label = 1;
|
|
6477
|
-
case 1:
|
|
6478
|
-
_c.trys.push([1, 3, , 4]);
|
|
6479
|
-
allGood_1 = true;
|
|
6480
|
-
return [4 /*yield*/, data.save(this.valueModel.value, {
|
|
6481
|
-
injectError: function (error) {
|
|
6482
|
-
allGood_1 = false;
|
|
6483
|
-
self_1.valueModel.injectErrors([error]);
|
|
6484
|
-
}
|
|
6485
|
-
})];
|
|
6486
|
-
case 2:
|
|
6487
|
-
result = _c.sent();
|
|
6488
|
-
if (allGood_1) {
|
|
6489
|
-
this.done(this.valueModel.value);
|
|
6490
|
-
}
|
|
6491
|
-
return [3 /*break*/, 4];
|
|
6492
|
-
case 3:
|
|
6493
|
-
e_1 = _c.sent();
|
|
6494
|
-
console.error(e_1);
|
|
6495
|
-
return [3 /*break*/, 4];
|
|
6496
|
-
case 4: return [3 /*break*/, 6];
|
|
6497
|
-
case 5:
|
|
6498
|
-
this.done(this.valueModel.value);
|
|
6499
|
-
_c.label = 6;
|
|
6500
|
-
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(); });
|
|
6501
6226
|
}
|
|
6502
|
-
|
|
6503
|
-
|
|
6227
|
+
else {
|
|
6228
|
+
_this.done(_this.valueModel.value);
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
});
|
|
6504
6232
|
_this.cancelCommand = pectin.Command.create(function () {
|
|
6505
6233
|
_this.cancel();
|
|
6506
6234
|
});
|
|
6507
|
-
_this.busyWhile(_this.confirmCommand.busy);
|
|
6508
6235
|
return _this;
|
|
6509
6236
|
}
|
|
6510
|
-
|
|
6511
|
-
get: function () {
|
|
6512
|
-
var _a, _b;
|
|
6513
|
-
return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
|
|
6514
|
-
},
|
|
6515
|
-
enumerable: false,
|
|
6516
|
-
configurable: true
|
|
6517
|
-
});
|
|
6518
|
-
InputActivity.prototype.onActivityReady = function () {
|
|
6237
|
+
AbstractInputActivity.prototype.onActivityReady = function () {
|
|
6519
6238
|
this.valueModel.focusContext.requestFocus();
|
|
6520
6239
|
};
|
|
6521
|
-
return
|
|
6240
|
+
return AbstractInputActivity;
|
|
6522
6241
|
}(Activity));
|
|
6523
|
-
|
|
6242
|
+
AbstractInputActivity.decorators = [
|
|
6524
6243
|
{ type: i0.Component, args: [{ template: "" },] }
|
|
6525
6244
|
];
|
|
6526
|
-
|
|
6245
|
+
AbstractInputActivity.ctorParameters = function () { return [
|
|
6527
6246
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
|
|
6528
6247
|
]; };
|
|
6529
|
-
|
|
6530
|
-
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6531
|
-
layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }]
|
|
6248
|
+
AbstractInputActivity.propDecorators = {
|
|
6249
|
+
class: [{ type: i0.HostBinding, args: ['class',] }]
|
|
6532
6250
|
};
|
|
6533
|
-
(function (InputActivity) {
|
|
6534
|
-
InputActivity.Layout = typescriptStringEnums.Enum({
|
|
6535
|
-
INLINE: 'inline',
|
|
6536
|
-
BLOCK: 'block'
|
|
6537
|
-
});
|
|
6538
|
-
})(exports.InputActivity || (exports.InputActivity = {}));
|
|
6539
6251
|
|
|
6540
6252
|
var StringInputActivity = /** @class */ (function (_super) {
|
|
6541
6253
|
__extends(StringInputActivity, _super);
|
|
@@ -6543,11 +6255,11 @@
|
|
|
6543
6255
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6544
6256
|
}
|
|
6545
6257
|
return StringInputActivity;
|
|
6546
|
-
}(
|
|
6258
|
+
}(AbstractInputActivity));
|
|
6547
6259
|
StringInputActivity.decorators = [
|
|
6548
6260
|
{ type: i0.Component, args: [{
|
|
6549
6261
|
selector: 'aup-string-input-activity',
|
|
6550
|
-
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 "
|
|
6551
6263
|
},] }
|
|
6552
6264
|
];
|
|
6553
6265
|
|
|
@@ -6577,11 +6289,11 @@
|
|
|
6577
6289
|
configurable: true
|
|
6578
6290
|
});
|
|
6579
6291
|
return SelectInputActivity;
|
|
6580
|
-
}(
|
|
6292
|
+
}(AbstractInputActivity));
|
|
6581
6293
|
SelectInputActivity.decorators = [
|
|
6582
6294
|
{ type: i0.Component, args: [{
|
|
6583
6295
|
selector: 'aup-select-input-activity',
|
|
6584
|
-
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 "
|
|
6585
6297
|
},] }
|
|
6586
6298
|
];
|
|
6587
6299
|
|
|
@@ -6730,13 +6442,6 @@
|
|
|
6730
6442
|
_this.anchorY = 'bottom';
|
|
6731
6443
|
return _this;
|
|
6732
6444
|
}
|
|
6733
|
-
Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
|
|
6734
|
-
get: function () {
|
|
6735
|
-
return this._interactionContext;
|
|
6736
|
-
},
|
|
6737
|
-
enumerable: false,
|
|
6738
|
-
configurable: true
|
|
6739
|
-
});
|
|
6740
6445
|
return PopupActivityTriggerComponent;
|
|
6741
6446
|
}(AbstractActivityTriggerComponent));
|
|
6742
6447
|
PopupActivityTriggerComponent.decorators = [
|
|
@@ -6750,239 +6455,8 @@
|
|
|
6750
6455
|
PopupActivityTriggerComponent.propDecorators = {
|
|
6751
6456
|
anchorX: [{ type: i0.Input }],
|
|
6752
6457
|
anchorY: [{ type: i0.Input }],
|
|
6753
|
-
|
|
6754
|
-
};
|
|
6755
|
-
|
|
6756
|
-
exports.InlineEditorModel = /** @class */ (function (_super) {
|
|
6757
|
-
__extends(InlineEditorModel, _super);
|
|
6758
|
-
function InlineEditorModel(valueModel, saveCallback) {
|
|
6759
|
-
var _this = _super.call(this) || this;
|
|
6760
|
-
_this.valueModel = valueModel;
|
|
6761
|
-
_this.saveCallback = saveCallback;
|
|
6762
|
-
_this.editing = new pectin.MutableValueModel(false);
|
|
6763
|
-
_this._validators = new pectin.MutableListModel();
|
|
6764
|
-
_this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
|
|
6765
|
-
var when = pectin.Dsl.disposeWith(_this).when;
|
|
6766
|
-
when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
6767
|
-
return _this;
|
|
6768
|
-
}
|
|
6769
|
-
Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
|
|
6770
|
-
get: function () {
|
|
6771
|
-
return this._editingEnabled.readonly;
|
|
6772
|
-
},
|
|
6773
|
-
enumerable: false,
|
|
6774
|
-
configurable: true
|
|
6775
|
-
});
|
|
6776
|
-
InlineEditorModel.prototype.disableWhile = function (condition) {
|
|
6777
|
-
var chain = pectin.Dsl.disposeWith(this).chain;
|
|
6778
|
-
this.enableWhile(chain(condition).isFalsey());
|
|
6779
|
-
return this;
|
|
6780
|
-
};
|
|
6781
|
-
InlineEditorModel.prototype.enableWhile = function (condition) {
|
|
6782
|
-
this._editingEnabled.setDelegate(condition);
|
|
6783
|
-
return this;
|
|
6784
|
-
};
|
|
6785
|
-
Object.defineProperty(InlineEditorModel.prototype, "validators", {
|
|
6786
|
-
get: function () {
|
|
6787
|
-
return this._validators.readonly;
|
|
6788
|
-
},
|
|
6789
|
-
enumerable: false,
|
|
6790
|
-
configurable: true
|
|
6791
|
-
});
|
|
6792
|
-
InlineEditorModel.prototype.validateUsing = function (validator) {
|
|
6793
|
-
this._validators.push(validator);
|
|
6794
|
-
return this;
|
|
6795
|
-
};
|
|
6796
|
-
;
|
|
6797
|
-
InlineEditorModel.prototype.isEditing = function () {
|
|
6798
|
-
return this.editing.value;
|
|
6799
|
-
};
|
|
6800
|
-
InlineEditorModel.prototype.cancelEdit = function () {
|
|
6801
|
-
this.editing.value = false;
|
|
6802
|
-
};
|
|
6803
|
-
InlineEditorModel.prototype.startEditing = function () {
|
|
6804
|
-
this.editing.value = true;
|
|
6805
|
-
};
|
|
6806
|
-
return InlineEditorModel;
|
|
6807
|
-
}(pectin.GarbageCollector));
|
|
6808
|
-
(function (InlineEditorModel) {
|
|
6809
|
-
function create(valueModel, options) {
|
|
6810
|
-
return new InlineEditorModel(valueModel, options.save);
|
|
6811
|
-
}
|
|
6812
|
-
InlineEditorModel.create = create;
|
|
6813
|
-
})(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
|
|
6814
|
-
pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
|
|
6815
|
-
|
|
6816
|
-
/**
|
|
6817
|
-
* @example
|
|
6818
|
-
* const source: ValueModel<string> = ...;
|
|
6819
|
-
* const model = InlineEditorModel.create(source, {
|
|
6820
|
-
* save(updated:string, context: EditContext) => {
|
|
6821
|
-
* try {
|
|
6822
|
-
* try and save the thing...
|
|
6823
|
-
* } catch(error) {
|
|
6824
|
-
* context.injectError(error)
|
|
6825
|
-
* }
|
|
6826
|
-
* }).validateUsing(Validator.present("We'll need a value");
|
|
6827
|
-
*
|
|
6828
|
-
* # in the view
|
|
6829
|
-
* <aup-inline-string-editor
|
|
6830
|
-
* label="My field"
|
|
6831
|
-
* placeHolder="I'm ready for a string..."
|
|
6832
|
-
* [editorModel]="model"></aup-inline-string-editor>
|
|
6833
|
-
*/
|
|
6834
|
-
exports.InlineStringEditorComponent = /** @class */ (function (_super) {
|
|
6835
|
-
__extends(InlineStringEditorComponent, _super);
|
|
6836
|
-
function InlineStringEditorComponent(interactionService) {
|
|
6837
|
-
var _this = _super.call(this) || this;
|
|
6838
|
-
_this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
6839
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
6840
|
-
var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6841
|
-
var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
|
|
6842
|
-
return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
|
|
6843
|
-
}, { allowNil: true });
|
|
6844
|
-
_this.editFaceModel = resolvedFacesModel.pluck('edit');
|
|
6845
|
-
_this.saveFace = resolvedFacesModel.pluck('save');
|
|
6846
|
-
_this.cancelFace = resolvedFacesModel.pluck('cancel');
|
|
6847
|
-
var self = _this;
|
|
6848
|
-
_this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6849
|
-
var e_1;
|
|
6850
|
-
return __generator(this, function (_a) {
|
|
6851
|
-
switch (_a.label) {
|
|
6852
|
-
case 0:
|
|
6853
|
-
this.editorModel.editing.value = true;
|
|
6854
|
-
_a.label = 1;
|
|
6855
|
-
case 1:
|
|
6856
|
-
_a.trys.push([1, 3, 4, 5]);
|
|
6857
|
-
return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
|
|
6858
|
-
case 2:
|
|
6859
|
-
_a.sent();
|
|
6860
|
-
return [3 /*break*/, 5];
|
|
6861
|
-
case 3:
|
|
6862
|
-
e_1 = _a.sent();
|
|
6863
|
-
return [3 /*break*/, 5];
|
|
6864
|
-
case 4:
|
|
6865
|
-
this.editorModel.editing.value = false;
|
|
6866
|
-
return [7 /*endfinally*/];
|
|
6867
|
-
case 5: return [2 /*return*/];
|
|
6868
|
-
}
|
|
6869
|
-
});
|
|
6870
|
-
}); }).enableWhile(_this.editingEnabled);
|
|
6871
|
-
_this.onDispose(function () { return _this.cancelEdit(); });
|
|
6872
|
-
return _this;
|
|
6873
|
-
}
|
|
6874
|
-
InlineStringEditorComponent.prototype.ngOnInit = function () {
|
|
6875
|
-
var _this = this;
|
|
6876
|
-
// our editor model is a one time binding without delegates so we can only
|
|
6877
|
-
// use it once we've been initialised
|
|
6878
|
-
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
|
|
6879
|
-
if (!this.editorModel) {
|
|
6880
|
-
typescriptUtilities.lang.illegalState('editorModel is required');
|
|
6881
|
-
}
|
|
6882
|
-
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
6883
|
-
when(this.editorModel.editing).becomesTruthy(function () {
|
|
6884
|
-
_this.editCommand.execute();
|
|
6885
|
-
}, { asLongAs: this.editCommand.enabled });
|
|
6886
|
-
when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
|
|
6887
|
-
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
6888
|
-
// deviceDescription.isNil()
|
|
6889
|
-
).areTruthy();
|
|
6890
|
-
this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
|
|
6891
|
-
return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
|
|
6892
|
-
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
6893
|
-
};
|
|
6894
|
-
InlineStringEditorComponent.prototype.createInputActivityData = function () {
|
|
6895
|
-
var self = this;
|
|
6896
|
-
return {
|
|
6897
|
-
initialValue: self.editorModel.valueModel.value,
|
|
6898
|
-
buttonStyle: { confirm: self.saveFace.value, cancel: self.cancelFace.value },
|
|
6899
|
-
placeholder: self.placeHolderModel.value,
|
|
6900
|
-
label: self.label,
|
|
6901
|
-
layout: exports.InputActivity.Layout.INLINE,
|
|
6902
|
-
validators: self.editorModel.validators.value,
|
|
6903
|
-
save: function (value, inputContext) {
|
|
6904
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
6905
|
-
return __generator(this, function (_a) {
|
|
6906
|
-
switch (_a.label) {
|
|
6907
|
-
case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
|
|
6908
|
-
case 1:
|
|
6909
|
-
_a.sent();
|
|
6910
|
-
return [2 /*return*/];
|
|
6911
|
-
}
|
|
6912
|
-
});
|
|
6913
|
-
});
|
|
6914
|
-
}
|
|
6915
|
-
};
|
|
6916
|
-
};
|
|
6917
|
-
InlineStringEditorComponent.prototype.cancelEdit = function () {
|
|
6918
|
-
if (this.isEditing()) {
|
|
6919
|
-
this.interactionContext.cancelActiveActivity();
|
|
6920
|
-
}
|
|
6921
|
-
};
|
|
6922
|
-
InlineStringEditorComponent.prototype.startEdit = function () {
|
|
6923
|
-
if (!this.isEditing() && this.editCommand.enabled.value) {
|
|
6924
|
-
this.editCommand.execute();
|
|
6925
|
-
}
|
|
6926
|
-
};
|
|
6927
|
-
InlineStringEditorComponent.prototype.isEditing = function () {
|
|
6928
|
-
return this.interactionContext.isActive();
|
|
6929
|
-
};
|
|
6930
|
-
InlineStringEditorComponent.prototype.isEmpty = function () {
|
|
6931
|
-
return this.empty.value;
|
|
6932
|
-
};
|
|
6933
|
-
return InlineStringEditorComponent;
|
|
6934
|
-
}(DisposableComponent));
|
|
6935
|
-
exports.InlineStringEditorComponent.decorators = [
|
|
6936
|
-
{ type: i0.Component, args: [{
|
|
6937
|
-
selector: 'aup-inline-string-editor',
|
|
6938
|
-
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"
|
|
6939
|
-
},] }
|
|
6940
|
-
];
|
|
6941
|
-
exports.InlineStringEditorComponent.ctorParameters = function () { return [
|
|
6942
|
-
{ type: exports.InteractionService }
|
|
6943
|
-
]; };
|
|
6944
|
-
exports.InlineStringEditorComponent.propDecorators = {
|
|
6945
|
-
editorModel: [{ type: i0.Input }],
|
|
6946
|
-
facesModel: [{ type: i0.Input }],
|
|
6947
|
-
faces: [{ type: i0.Input }],
|
|
6948
|
-
interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
|
|
6949
|
-
label: [{ type: i0.Input }],
|
|
6950
|
-
placeHolder: [{ type: i0.Input }],
|
|
6951
|
-
placeHolderModel: [{ type: i0.Input }]
|
|
6458
|
+
interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
6952
6459
|
};
|
|
6953
|
-
__decorate([
|
|
6954
|
-
pectin.TrackExternal(),
|
|
6955
|
-
__metadata("design:type", exports.InlineEditorModel)
|
|
6956
|
-
], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
|
|
6957
|
-
__decorate([
|
|
6958
|
-
pectin.TrackExternal(),
|
|
6959
|
-
__metadata("design:type", pectin.ValueModel)
|
|
6960
|
-
], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
|
|
6961
|
-
__decorate([
|
|
6962
|
-
pectin.StoreInValueModel('facesModel'),
|
|
6963
|
-
__metadata("design:type", Object)
|
|
6964
|
-
], exports.InlineStringEditorComponent.prototype, "faces", void 0);
|
|
6965
|
-
__decorate([
|
|
6966
|
-
pectin.StoreInValueModel('placeHolderModel'),
|
|
6967
|
-
__metadata("design:type", String)
|
|
6968
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
|
|
6969
|
-
__decorate([
|
|
6970
|
-
pectin.TrackExternal(),
|
|
6971
|
-
__metadata("design:type", pectin.ValueModel)
|
|
6972
|
-
], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
6973
|
-
(function (InlineStringEditorComponent) {
|
|
6974
|
-
InlineStringEditorComponent.DEFAULT_FACES = {
|
|
6975
|
-
edit: {
|
|
6976
|
-
icon: function () { return 'mat:edit'; }
|
|
6977
|
-
},
|
|
6978
|
-
save: {
|
|
6979
|
-
icon: function () { return 'mat:check'; }
|
|
6980
|
-
},
|
|
6981
|
-
cancel: {
|
|
6982
|
-
icon: function () { return 'mat:clear'; }
|
|
6983
|
-
}
|
|
6984
|
-
};
|
|
6985
|
-
})(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
|
|
6986
6460
|
|
|
6987
6461
|
var InteractionModule = /** @class */ (function () {
|
|
6988
6462
|
function InteractionModule() {
|
|
@@ -7002,10 +6476,7 @@
|
|
|
7002
6476
|
DirectivesModule,
|
|
7003
6477
|
flexLayout.FlexModule,
|
|
7004
6478
|
flexLayout.GridModule,
|
|
7005
|
-
ComponentsModule
|
|
7006
|
-
forms.FormsModule,
|
|
7007
|
-
input.MatInputModule,
|
|
7008
|
-
formField.MatFormFieldModule,
|
|
6479
|
+
ComponentsModule
|
|
7009
6480
|
],
|
|
7010
6481
|
declarations: [
|
|
7011
6482
|
ActivityContainerComponent,
|
|
@@ -7015,22 +6486,20 @@
|
|
|
7015
6486
|
ActivityOutletComponent,
|
|
7016
6487
|
InPlaceInteractionContextComponent,
|
|
7017
6488
|
AddItemInteractionContextComponent,
|
|
7018
|
-
|
|
6489
|
+
ActivityActionsComponent,
|
|
7019
6490
|
PopupInteractionContextComponent,
|
|
7020
6491
|
StringInputActivity,
|
|
7021
6492
|
SelectInputActivity,
|
|
7022
|
-
|
|
6493
|
+
AbstractInputActivity,
|
|
7023
6494
|
InteractionContextTriggerFor,
|
|
7024
6495
|
Activity,
|
|
7025
6496
|
ActivityTitleComponent,
|
|
7026
6497
|
ActivityBodyComponent,
|
|
7027
|
-
|
|
6498
|
+
ActivityActionsComponent,
|
|
7028
6499
|
AbstractActivityTriggerComponent,
|
|
7029
6500
|
PopupActivityTriggerComponent,
|
|
7030
6501
|
InlineActivityTriggerComponent,
|
|
7031
|
-
ModalActivityTriggerComponent
|
|
7032
|
-
exports.AddCardActivityComponent,
|
|
7033
|
-
exports.InlineStringEditorComponent,
|
|
6502
|
+
ModalActivityTriggerComponent
|
|
7034
6503
|
],
|
|
7035
6504
|
exports: [
|
|
7036
6505
|
ActivityContainerComponent,
|
|
@@ -7038,7 +6507,7 @@
|
|
|
7038
6507
|
ActivityTitleComponent,
|
|
7039
6508
|
InPlaceInteractionContextComponent,
|
|
7040
6509
|
AddItemInteractionContextComponent,
|
|
7041
|
-
|
|
6510
|
+
ActivityActionsComponent,
|
|
7042
6511
|
PopupInteractionContextComponent,
|
|
7043
6512
|
InteractionContextTriggerFor,
|
|
7044
6513
|
StringInputActivity,
|
|
@@ -7046,9 +6515,7 @@
|
|
|
7046
6515
|
ActivityBodyComponent,
|
|
7047
6516
|
PopupActivityTriggerComponent,
|
|
7048
6517
|
InlineActivityTriggerComponent,
|
|
7049
|
-
ModalActivityTriggerComponent
|
|
7050
|
-
exports.AddCardActivityComponent,
|
|
7051
|
-
exports.InlineStringEditorComponent,
|
|
6518
|
+
ModalActivityTriggerComponent
|
|
7052
6519
|
],
|
|
7053
6520
|
entryComponents: [
|
|
7054
6521
|
ActivityContainerComponent,
|
|
@@ -7360,28 +6827,17 @@
|
|
|
7360
6827
|
_this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
|
|
7361
6828
|
return _this;
|
|
7362
6829
|
}
|
|
6830
|
+
// @Trace()
|
|
7363
6831
|
PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
|
|
7364
6832
|
var _this = this;
|
|
7365
6833
|
pectin.assert.isNil(this.visitModel.value);
|
|
7366
6834
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
7367
6835
|
this.visitModel.value = visit;
|
|
7368
6836
|
pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
7369
|
-
|
|
7370
|
-
// route in one go at the end.
|
|
7371
|
-
this.placeDefinition
|
|
7372
|
-
.getVisitParameterDefs()
|
|
7373
|
-
.forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
|
|
6837
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
7374
6838
|
when(this.visitModel).changes(function (current, previous) {
|
|
7375
6839
|
notifyVisitChanged(current, previous);
|
|
7376
6840
|
}, { unless: this._inVisitUpdate });
|
|
7377
|
-
// TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
|
|
7378
|
-
// now we're not doing it as it's a fair bit of effort and will only affect people if they're
|
|
7379
|
-
// cutting and pasting urls to each other.
|
|
7380
|
-
// // the binding process can update the visit (e.g. if a selection model has already selected during
|
|
7381
|
-
// // component construction) and there was no value specified in the route
|
|
7382
|
-
// if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
|
|
7383
|
-
// notifyVisitChanged(this.visitModel.value, visit)
|
|
7384
|
-
// }
|
|
7385
6841
|
};
|
|
7386
6842
|
PlaceComponent.prototype.updateVisit = function (visit) {
|
|
7387
6843
|
var _this = this;
|
|
@@ -7395,12 +6851,7 @@
|
|
|
7395
6851
|
return !!this.visitModel.value;
|
|
7396
6852
|
};
|
|
7397
6853
|
// @Trace()
|
|
7398
|
-
|
|
7399
|
-
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
7400
|
-
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
7401
|
-
* method will return ture to nofiy the the visit has changed.
|
|
7402
|
-
*/
|
|
7403
|
-
PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
|
|
6854
|
+
PlaceComponent.prototype.installBinding = function (parameterDef) {
|
|
7404
6855
|
var model = this[parameterDef.propertyName];
|
|
7405
6856
|
pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
|
|
7406
6857
|
var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
|
|
@@ -7414,17 +6865,7 @@
|
|
|
7414
6865
|
return currentVisit.replace(parameterDef, value);
|
|
7415
6866
|
}
|
|
7416
6867
|
}));
|
|
7417
|
-
|
|
7418
|
-
// 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
|
|
7419
|
-
// component constructor) then we should push that to the route.
|
|
7420
|
-
var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
|
|
7421
|
-
var isInModel = !___namespace.isNil(model.value);
|
|
7422
|
-
if (!isInVisit && isInModel) {
|
|
7423
|
-
binding.writeLeft(); // push it to the route
|
|
7424
|
-
}
|
|
7425
|
-
else {
|
|
7426
|
-
binding.writeRight(); // push it to the model
|
|
7427
|
-
}
|
|
6868
|
+
binding.writeRight();
|
|
7428
6869
|
};
|
|
7429
6870
|
Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
|
|
7430
6871
|
get: function () {
|
|
@@ -8596,7 +8037,7 @@
|
|
|
8596
8037
|
};
|
|
8597
8038
|
Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
|
|
8598
8039
|
get: function () {
|
|
8599
|
-
return
|
|
8040
|
+
return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
|
|
8600
8041
|
},
|
|
8601
8042
|
enumerable: false,
|
|
8602
8043
|
configurable: true
|
|
@@ -8685,13 +8126,9 @@
|
|
|
8685
8126
|
});
|
|
8686
8127
|
return new Visit(this.placeDefinition, params);
|
|
8687
8128
|
};
|
|
8688
|
-
// @Trace()
|
|
8689
8129
|
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
8690
8130
|
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
8691
|
-
var
|
|
8692
|
-
var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
|
|
8693
|
-
// console.log({currentParams, otherParams});
|
|
8694
|
-
var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
|
|
8131
|
+
var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
8695
8132
|
return !samePlace || !sameRouteParameters;
|
|
8696
8133
|
};
|
|
8697
8134
|
Visit.prototype.hasChangedFrom = function (other) {
|
|
@@ -8715,7 +8152,6 @@
|
|
|
8715
8152
|
this.url = url;
|
|
8716
8153
|
this.urlTree = urlSerializer.parse(url);
|
|
8717
8154
|
}
|
|
8718
|
-
// @Trace()
|
|
8719
8155
|
UrlSnapshot.prototype.updateVisitSegments = function (visit) {
|
|
8720
8156
|
var newUrlTree = this.urlSerializer.parse(this.url);
|
|
8721
8157
|
// Ugly, but it works for now.
|
|
@@ -8793,6 +8229,12 @@
|
|
|
8793
8229
|
};
|
|
8794
8230
|
return UrlSnapshot;
|
|
8795
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);
|
|
8796
8238
|
__decorate([
|
|
8797
8239
|
src.Memoize(),
|
|
8798
8240
|
__metadata("design:type", Function),
|
|
@@ -9183,7 +8625,6 @@
|
|
|
9183
8625
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
9184
8626
|
* the app directly and we don't get to ask.
|
|
9185
8627
|
*/
|
|
9186
|
-
// @Trace()
|
|
9187
8628
|
PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
|
|
9188
8629
|
var _this = this;
|
|
9189
8630
|
if (this.navigationSession) {
|
|
@@ -9227,6 +8668,12 @@
|
|
|
9227
8668
|
{ type: UrlService },
|
|
9228
8669
|
{ type: exports.PlaceHistory }
|
|
9229
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);
|
|
9230
8677
|
(function (PlaceRouter) {
|
|
9231
8678
|
var State = /** @class */ (function () {
|
|
9232
8679
|
function State(activeVisits) {
|
|
@@ -10065,13 +9512,13 @@
|
|
|
10065
9512
|
}
|
|
10066
9513
|
_a.label = 2;
|
|
10067
9514
|
case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10068
|
-
var
|
|
9515
|
+
var params, parsedParams, navigationSession, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
|
|
10069
9516
|
return __generator(this, function (_a) {
|
|
10070
9517
|
switch (_a.label) {
|
|
10071
9518
|
case 0:
|
|
10072
|
-
navigationSession = this.placeRouter.navigationSession;
|
|
10073
9519
|
params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
|
|
10074
9520
|
parsedParams = placeDefinition_1.parseRouteParams(params);
|
|
9521
|
+
navigationSession = this.placeRouter.navigationSession;
|
|
10075
9522
|
initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
|
|
10076
9523
|
sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
|
|
10077
9524
|
return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
|
|
@@ -10360,7 +9807,7 @@
|
|
|
10360
9807
|
exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
|
|
10361
9808
|
exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
|
|
10362
9809
|
exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
|
|
10363
|
-
exports.
|
|
9810
|
+
exports.AbstractInputActivity = AbstractInputActivity;
|
|
10364
9811
|
exports.AbstractInputComponent = AbstractInputComponent;
|
|
10365
9812
|
exports.AbstractInteractionContext = AbstractInteractionContext;
|
|
10366
9813
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
@@ -10371,6 +9818,7 @@
|
|
|
10371
9818
|
exports.AbstractTableModel = AbstractTableModel;
|
|
10372
9819
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
10373
9820
|
exports.Activity = Activity;
|
|
9821
|
+
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
10374
9822
|
exports.ActivityBodyComponent = ActivityBodyComponent;
|
|
10375
9823
|
exports.ActivityContainerComponent = ActivityContainerComponent;
|
|
10376
9824
|
exports.ActivityOutletComponent = ActivityOutletComponent;
|
|
@@ -10384,7 +9832,6 @@
|
|
|
10384
9832
|
exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
|
|
10385
9833
|
exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
|
|
10386
9834
|
exports.CardContainerComponent = CardContainerComponent;
|
|
10387
|
-
exports.CardStackComponent = CardStackComponent;
|
|
10388
9835
|
exports.CellEditorPortalRef = CellEditorPortalRef;
|
|
10389
9836
|
exports.CellHeaderPortalRef = CellHeaderPortalRef;
|
|
10390
9837
|
exports.CellPortalRef = CellPortalRef;
|
|
@@ -10434,7 +9881,6 @@
|
|
|
10434
9881
|
exports.InteractionModule = InteractionModule;
|
|
10435
9882
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
10436
9883
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
10437
|
-
exports.LabelledValueComponent = LabelledValueComponent;
|
|
10438
9884
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
10439
9885
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
10440
9886
|
exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;
|