@coolon/angular-ui-powerups 12.4.0-alpha.3 → 12.4.0-alpha.31
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/cards.scss +13 -0
- package/assets/empty-state.scss +11 -0
- package/assets/form.scss +5 -2
- package/assets/interaction.scss +6 -7
- package/assets/styles.scss +3 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +715 -298
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +601 -116
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/component-builder.d.ts +71 -0
- package/cypress/components/aup-abstract-activity.d.ts +31 -0
- package/cypress/components/aup-abstract-table.d.ts +18 -0
- package/cypress/components/aup-activity.d.ts +9 -0
- package/cypress/components/aup-alert-dialog.d.ts +27 -0
- package/cypress/components/aup-alert.d.ts +9 -0
- package/cypress/components/aup-command-face.d.ts +2 -8
- package/cypress/components/aup-command.d.ts +2 -1
- package/cypress/components/aup-confirm-dialog.d.ts +27 -0
- package/cypress/components/aup-confirm.d.ts +11 -0
- package/cypress/components/aup-empty-state.d.ts +4 -0
- package/cypress/components/aup-input.d.ts +11 -5
- package/cypress/components/aup-modal-activity.d.ts +24 -0
- package/cypress/components/aup-modal-mixin.d.ts +23 -0
- package/cypress/components/aup-table.d.ts +5 -18
- package/cypress/components/aup-tree-table.d.ts +16 -0
- package/cypress/components/button.d.ts +11 -7
- package/cypress/components/form-element-mixin.d.ts +22 -0
- package/cypress/components/mat-checkbox.d.ts +31 -0
- package/cypress/components/popup/aup-abstract-popup-menu.d.ts +15 -0
- package/cypress/components/popup/aup-more-menu.d.ts +5 -0
- package/cypress/components/popup/aup-popup-menu-panel.d.ts +3 -0
- package/cypress/components/popup/aup-popup-menu.d.ts +7 -0
- package/cypress/components/table/aup-table-cell.d.ts +9 -0
- package/cypress/components/table/aup-table-column.d.ts +10 -0
- package/cypress/components/table/aup-table-row.d.ts +17 -0
- package/cypress/components/table/aup-table-selection-cell.d.ts +5 -0
- package/cypress/components/table/aup-table-selection-column.d.ts +5 -0
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/element-locator.d.ts +8 -0
- package/cypress/exports.d.ts +25 -4
- package/cypress/page-builder.d.ts +9 -0
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +5 -33
- package/esm2015/cypress/component-builder.js +92 -0
- package/esm2015/cypress/component-builder.js.map +1 -0
- package/esm2015/cypress/component-builder.metadata.json +1 -0
- package/esm2015/cypress/components/aup-abstract-activity.js +12 -0
- package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-abstract-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-abstract-table.js +50 -0
- package/esm2015/cypress/components/aup-abstract-table.js.map +1 -0
- package/esm2015/cypress/components/aup-abstract-table.metadata.json +1 -0
- package/esm2015/cypress/components/aup-activity.js +13 -0
- package/esm2015/cypress/components/aup-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-alert-dialog.js +8 -0
- package/esm2015/cypress/components/aup-alert-dialog.js.map +1 -0
- package/esm2015/cypress/components/aup-alert-dialog.metadata.json +1 -0
- package/esm2015/cypress/components/aup-alert.js +13 -0
- package/esm2015/cypress/components/aup-alert.js.map +1 -0
- package/esm2015/cypress/components/aup-alert.metadata.json +1 -0
- package/esm2015/cypress/components/aup-command-face.js +11 -22
- 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 +12 -6
- 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-confirm-dialog.js +8 -0
- package/esm2015/cypress/components/aup-confirm-dialog.js.map +1 -0
- package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +1 -0
- package/esm2015/cypress/components/aup-confirm.js +19 -0
- package/esm2015/cypress/components/aup-confirm.js.map +1 -0
- package/esm2015/cypress/components/aup-confirm.metadata.json +1 -0
- package/esm2015/cypress/components/aup-empty-state.js +7 -0
- package/esm2015/cypress/components/aup-empty-state.js.map +1 -0
- package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -0
- package/esm2015/cypress/components/aup-input.js +17 -5
- 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-modal-activity.js +5 -0
- package/esm2015/cypress/components/aup-modal-activity.js.map +1 -0
- package/esm2015/cypress/components/aup-modal-activity.metadata.json +1 -0
- package/esm2015/cypress/components/aup-modal-mixin.js +18 -0
- package/esm2015/cypress/components/aup-modal-mixin.js.map +1 -0
- package/esm2015/cypress/components/aup-modal-mixin.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-table.js +5 -33
- package/esm2015/cypress/components/aup-table.js.map +1 -1
- package/esm2015/cypress/components/aup-table.metadata.json +1 -1
- package/esm2015/cypress/components/aup-tree-table.js +34 -0
- package/esm2015/cypress/components/aup-tree-table.js.map +1 -0
- package/esm2015/cypress/components/aup-tree-table.metadata.json +1 -0
- package/esm2015/cypress/components/button.js +4 -10
- package/esm2015/cypress/components/button.js.map +1 -1
- package/esm2015/cypress/components/button.metadata.json +1 -1
- package/esm2015/cypress/components/form-element-mixin.js +11 -0
- package/esm2015/cypress/components/form-element-mixin.js.map +1 -0
- package/esm2015/cypress/components/form-element-mixin.metadata.json +1 -0
- package/esm2015/cypress/components/mat-checkbox.js +34 -0
- package/esm2015/cypress/components/mat-checkbox.js.map +1 -0
- package/esm2015/cypress/components/mat-checkbox.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +33 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-more-menu.js +8 -0
- package/esm2015/cypress/components/popup/aup-more-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +4 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.js +12 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-cell.js +14 -0
- package/esm2015/cypress/components/table/aup-table-cell.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-cell.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-column.js +19 -0
- package/esm2015/cypress/components/table/aup-table-column.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-column.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-row.js +28 -0
- package/esm2015/cypress/components/table/aup-table-row.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-row.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.js +6 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.js +6 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.js.map +1 -0
- package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +1 -0
- package/esm2015/cypress/element-locator.js +16 -0
- package/esm2015/cypress/element-locator.js.map +1 -0
- package/esm2015/cypress/element-locator.metadata.json +1 -0
- package/esm2015/cypress/exports.js +25 -4
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-builder.js +16 -0
- package/esm2015/cypress/page-builder.js.map +1 -0
- package/esm2015/cypress/page-builder.metadata.json +1 -0
- package/esm2015/cypress/page-element.js +26 -19
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +8 -10
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/cypress/path.js +3 -1
- package/esm2015/cypress/path.js.map +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.js +29 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.js.map +1 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{card-container → cards/card-container}/card-container.component.js +11 -22
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js +72 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/components.module.js +32 -24
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
- package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
- package/esm2015/lib/components/exports.js +4 -1
- 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 +1 -0
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.js +22 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +1 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +1 -0
- package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{card-container/card-container.component.scss.shim.ngstyle.js.map → labelled-value/labelled-value.component.scss.shim.ngstyle.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 +1 -0
- 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/interaction/components/activity-actions/activity-actions.component.js +17 -11
- 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 +4 -0
- 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 +4 -1
- 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 +4 -1
- 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 +4 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +75 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/edit-context.js +2 -0
- package/esm2015/lib/interaction/components/editors/edit-context.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +34 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +158 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +6 -2
- 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/input-activity.js +71 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +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 +3 -4
- 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 +5 -3
- 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 +10 -4
- 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/place-router.js +3 -8
- 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 +1 -7
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +532 -219
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +493 -91
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +11 -0
- package/lib/components/{card-container → cards/card-container}/card-container.component.d.ts +9 -10
- package/lib/components/cards/card-stack/card-stack.component.d.ts +63 -0
- package/lib/components/exports.d.ts +4 -1
- package/lib/components/labelled-value/labelled-value.component.d.ts +7 -0
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +14 -3
- 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 +2 -1
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +38 -0
- package/lib/interaction/components/editors/edit-context.d.ts +3 -0
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +20 -0
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +56 -0
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -0
- package/lib/interaction/components/input-activities/input-activity.d.ts +33 -0
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +11 -3
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -2
- package/lib/interaction/exports.d.ts +5 -3
- 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 +5 -3
- package/cypress/components/aup-more-menu.d.ts +0 -4
- package/cypress/components/aup-popup-menu.d.ts +0 -7
- package/cypress/components/button-mixin.d.ts +0 -19
- package/cypress/section.d.ts +0 -51
- package/esm2015/cypress/components/aup-more-menu.js +0 -7
- package/esm2015/cypress/components/aup-more-menu.js.map +0 -1
- package/esm2015/cypress/components/aup-more-menu.metadata.json +0 -1
- package/esm2015/cypress/components/aup-popup-menu.js +0 -19
- package/esm2015/cypress/components/aup-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/aup-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/button-mixin.js +0 -15
- package/esm2015/cypress/components/button-mixin.js.map +0 -1
- package/esm2015/cypress/components/button-mixin.metadata.json +0 -1
- package/esm2015/cypress/section.js +0 -58
- package/esm2015/cypress/section.js.map +0 -1
- package/esm2015/cypress/section.metadata.json +0 -1
- package/esm2015/lib/components/card-container/card-container.component.js.map +0 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +0 -43
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +0 -2
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +0 -2
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +0 -1
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +0 -12
- package/lib/interaction/components/input-activities/input-activity-data.d.ts +0 -11
- package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +0 -8
|
@@ -21,7 +21,7 @@ import { MatTableModule } from '@angular/material/table';
|
|
|
21
21
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
22
22
|
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
|
23
23
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
24
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DelegatingSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ComputedListModel, PageController, Deferred,
|
|
24
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DelegatingSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ComputedListModel, PageController, Deferred, Functions } from '@coolon/pectin';
|
|
25
25
|
import { __decorate, __metadata, __awaiter } from 'tslib';
|
|
26
26
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
27
27
|
import * as _ from 'lodash';
|
|
@@ -526,6 +526,30 @@ var CommandFace;
|
|
|
526
526
|
CommandFace.Adapter = Adapter;
|
|
527
527
|
})(CommandFace || (CommandFace = {}));
|
|
528
528
|
|
|
529
|
+
class AbstractCardContainerComponent extends DisposableComponent {
|
|
530
|
+
constructor() {
|
|
531
|
+
super();
|
|
532
|
+
}
|
|
533
|
+
ngOnInit() {
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
AbstractCardContainerComponent.decorators = [
|
|
537
|
+
{ type: Component, args: [{
|
|
538
|
+
selector: 'aup-abstract-card-container',
|
|
539
|
+
template: ''
|
|
540
|
+
},] }
|
|
541
|
+
];
|
|
542
|
+
AbstractCardContainerComponent.ctorParameters = () => [];
|
|
543
|
+
AbstractCardContainerComponent.propDecorators = {
|
|
544
|
+
addCardCommand: [{ type: Input }],
|
|
545
|
+
addCardFace: [{ type: Input }],
|
|
546
|
+
addCardTemplate: [{ type: ContentChild, args: ['addCardTemplate',] }]
|
|
547
|
+
};
|
|
548
|
+
__decorate([
|
|
549
|
+
TrackExternal(),
|
|
550
|
+
__metadata("design:type", Command)
|
|
551
|
+
], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
|
|
552
|
+
|
|
529
553
|
/**
|
|
530
554
|
* @example
|
|
531
555
|
* // basic usage
|
|
@@ -543,6 +567,13 @@ var CommandFace;
|
|
|
543
567
|
* <my-card *ngFor="..."></my-card>
|
|
544
568
|
* </aup-card-container>
|
|
545
569
|
*
|
|
570
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
571
|
+
* // the activity inside teh card
|
|
572
|
+
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
573
|
+
* <my-card *ngFor="..."></my-card>
|
|
574
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
575
|
+
* </aup-card-container>
|
|
576
|
+
*
|
|
546
577
|
* // adds an add card component using the specified template. The template
|
|
547
578
|
* // will fill it's container in the grid.
|
|
548
579
|
* <aup-card-container>
|
|
@@ -580,30 +611,85 @@ var CommandFace;
|
|
|
580
611
|
* --card-background: var(--card-background, #fcfcfb);
|
|
581
612
|
* }
|
|
582
613
|
*/
|
|
583
|
-
class CardContainerComponent extends
|
|
584
|
-
constructor() {
|
|
585
|
-
super();
|
|
586
|
-
}
|
|
587
|
-
ngOnInit() {
|
|
588
|
-
}
|
|
614
|
+
class CardContainerComponent extends AbstractCardContainerComponent {
|
|
589
615
|
}
|
|
590
616
|
CardContainerComponent.decorators = [
|
|
591
617
|
{ type: Component, args: [{
|
|
592
618
|
selector: 'aup-card-container',
|
|
593
|
-
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
|
|
619
|
+
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",
|
|
594
620
|
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}"]
|
|
595
621
|
},] }
|
|
596
622
|
];
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* @example
|
|
626
|
+
* // basic usage
|
|
627
|
+
* <aup-card-stack>
|
|
628
|
+
* <my-card *ngFor="..."></my-card>
|
|
629
|
+
* </aup-card-stack>
|
|
630
|
+
*
|
|
631
|
+
* // adds an add button with a the '+' icon to the end of the card list.
|
|
632
|
+
* <aup-card-stack [addCardCommand]="addCard">
|
|
633
|
+
* <my-card *ngFor="..."></my-card>
|
|
634
|
+
* </aup-card-stack>
|
|
635
|
+
*
|
|
636
|
+
* // adds an add button with the specified face
|
|
637
|
+
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
638
|
+
* <my-card *ngFor="..."></my-card>
|
|
639
|
+
* </aup-card-stack>
|
|
640
|
+
*
|
|
641
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
642
|
+
* // the activity inside teh card
|
|
643
|
+
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
644
|
+
* <my-card *ngFor="..."></my-card>
|
|
645
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
646
|
+
* </aup-card-stack>
|
|
647
|
+
*
|
|
648
|
+
* // adds an add card component using the specified template. The template
|
|
649
|
+
* // will fill it's container in the grid.
|
|
650
|
+
* <aup-card-stack>
|
|
651
|
+
* <my-card *ngFor="..."></my-card>
|
|
652
|
+
* <ng-template #addCardTemplate>
|
|
653
|
+
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
654
|
+
* </ng-template>
|
|
655
|
+
* </aup-card-stack>
|
|
656
|
+
*
|
|
657
|
+
* // sing the default new card styles for your template
|
|
658
|
+
* @import "../../../../assets/styles";
|
|
659
|
+
* .my-new-card {
|
|
660
|
+
* @include aup-card-stack-new-card-style();
|
|
661
|
+
* // OR
|
|
662
|
+
* @include aup-card-stack-new-card-style(
|
|
663
|
+
* $color: rgba(0,0,0,0.54),
|
|
664
|
+
* $background-color: rgba(255,255,255,0.8),
|
|
665
|
+
* $hover-color: $color,
|
|
666
|
+
* $background-hover-color: white
|
|
667
|
+
* )
|
|
668
|
+
* }
|
|
669
|
+
* <aup-card-stack>
|
|
670
|
+
* <my-card *ngFor="..."></my-card>
|
|
671
|
+
* <ng-template #addCardTemplate>
|
|
672
|
+
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
673
|
+
* </ng-template>
|
|
674
|
+
* </aup-card-stack>
|
|
675
|
+
*
|
|
676
|
+
* // CSS Vars
|
|
677
|
+
* aup-card-stack {
|
|
678
|
+
* --card-gap: var(--card-gap, 16px);
|
|
679
|
+
* --card-height: var(--card-height, auto);
|
|
680
|
+
* --card-min-height: var(--card-min-height, auto);
|
|
681
|
+
* --card-background: var(--card-background, #fcfcfb);
|
|
682
|
+
* }
|
|
683
|
+
*/
|
|
684
|
+
class CardStackComponent extends AbstractCardContainerComponent {
|
|
685
|
+
}
|
|
686
|
+
CardStackComponent.decorators = [
|
|
687
|
+
{ type: Component, args: [{
|
|
688
|
+
selector: 'aup-card-stack',
|
|
689
|
+
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",
|
|
690
|
+
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}"]
|
|
691
|
+
},] }
|
|
692
|
+
];
|
|
607
693
|
|
|
608
694
|
/**
|
|
609
695
|
* Custom CSS:
|
|
@@ -1138,7 +1224,7 @@ EmptyStateComponent.decorators = [
|
|
|
1138
1224
|
<ng-content></ng-content>
|
|
1139
1225
|
</div>
|
|
1140
1226
|
`,
|
|
1141
|
-
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}"]
|
|
1227
|
+
styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{display:flex;flex-direction:column;align-items:stretch;padding:var(--aup-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]
|
|
1142
1228
|
},] }
|
|
1143
1229
|
];
|
|
1144
1230
|
EmptyStateComponent.ctorParameters = () => [];
|
|
@@ -1222,6 +1308,7 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1222
1308
|
constructor() {
|
|
1223
1309
|
super();
|
|
1224
1310
|
this.onValueEditedListeners = new EventListenerList();
|
|
1311
|
+
this.userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1225
1312
|
this.dense = false;
|
|
1226
1313
|
// TODO: fix this.
|
|
1227
1314
|
// tslint:disable-next-line:no-output-native
|
|
@@ -3514,15 +3601,15 @@ class TreeExpansionModel {
|
|
|
3514
3601
|
|
|
3515
3602
|
class FlattenedTreeListModel extends ComputedListModel {
|
|
3516
3603
|
constructor(source, childRef, expansionModel) {
|
|
3517
|
-
super(source
|
|
3604
|
+
super(source, {
|
|
3605
|
+
initialValue: [],
|
|
3606
|
+
identifiedWith: row => source.identityOf(row)
|
|
3607
|
+
});
|
|
3518
3608
|
this.source = source;
|
|
3519
3609
|
this.childRef = childRef;
|
|
3520
3610
|
this.expansionModel = expansionModel;
|
|
3521
3611
|
this.trackSource(expansionModel.isExpandedPredicate);
|
|
3522
3612
|
}
|
|
3523
|
-
getIdentityOf(item) {
|
|
3524
|
-
return this.source.identityOf(item);
|
|
3525
|
-
}
|
|
3526
3613
|
compute(values) {
|
|
3527
3614
|
const result = [];
|
|
3528
3615
|
values.forEach(rootNode => {
|
|
@@ -3593,6 +3680,7 @@ class TreeTableModel extends AbstractTableModel {
|
|
|
3593
3680
|
const childExtractor = _.isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
|
|
3594
3681
|
this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
|
|
3595
3682
|
this.setDataSource(this.flattenedDataSource);
|
|
3683
|
+
this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
|
|
3596
3684
|
}
|
|
3597
3685
|
treeControlColumn(builder) {
|
|
3598
3686
|
const columnId = 'tree-label';
|
|
@@ -3918,6 +4006,26 @@ __decorate([
|
|
|
3918
4006
|
__metadata("design:type", PageController)
|
|
3919
4007
|
], PaginatorComponent.prototype, "pageController", void 0);
|
|
3920
4008
|
|
|
4009
|
+
class LabelledValueComponent extends DisposableComponent {
|
|
4010
|
+
constructor() {
|
|
4011
|
+
super();
|
|
4012
|
+
// const {chain} = Dsl.disposeWith(this);
|
|
4013
|
+
}
|
|
4014
|
+
ngOnInit() {
|
|
4015
|
+
}
|
|
4016
|
+
}
|
|
4017
|
+
LabelledValueComponent.decorators = [
|
|
4018
|
+
{ type: Component, args: [{
|
|
4019
|
+
selector: 'aup-labelled-value',
|
|
4020
|
+
template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
|
|
4021
|
+
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}"]
|
|
4022
|
+
},] }
|
|
4023
|
+
];
|
|
4024
|
+
LabelledValueComponent.ctorParameters = () => [];
|
|
4025
|
+
LabelledValueComponent.propDecorators = {
|
|
4026
|
+
label: [{ type: Input }]
|
|
4027
|
+
};
|
|
4028
|
+
|
|
3921
4029
|
class ComponentsModule {
|
|
3922
4030
|
constructor(faIconLibrary) {
|
|
3923
4031
|
faIconLibrary.addIconPacks(fas);
|
|
@@ -3925,6 +4033,28 @@ class ComponentsModule {
|
|
|
3925
4033
|
}
|
|
3926
4034
|
ComponentsModule.decorators = [
|
|
3927
4035
|
{ type: NgModule, args: [{
|
|
4036
|
+
imports: [
|
|
4037
|
+
CommonModule,
|
|
4038
|
+
BrowserAnimationsModule,
|
|
4039
|
+
FormsModule,
|
|
4040
|
+
MatInputModule,
|
|
4041
|
+
MatFormFieldModule,
|
|
4042
|
+
MatSelectModule,
|
|
4043
|
+
MatTabsModule,
|
|
4044
|
+
DirectivesModule,
|
|
4045
|
+
MatIconModule,
|
|
4046
|
+
MatButtonModule,
|
|
4047
|
+
MatCheckboxModule,
|
|
4048
|
+
MatTableModule,
|
|
4049
|
+
PortalModule,
|
|
4050
|
+
CdkScrollableModule,
|
|
4051
|
+
FontAwesomeModule,
|
|
4052
|
+
MatTooltipModule,
|
|
4053
|
+
MatAutocompleteModule,
|
|
4054
|
+
MatMenuModule,
|
|
4055
|
+
MatDividerModule,
|
|
4056
|
+
MatProgressSpinnerModule
|
|
4057
|
+
],
|
|
3928
4058
|
declarations: [
|
|
3929
4059
|
AbstractInputComponent,
|
|
3930
4060
|
AbstractValueInputComponent,
|
|
@@ -3973,29 +4103,10 @@ ComponentsModule.decorators = [
|
|
|
3973
4103
|
BusyOverlayComponent,
|
|
3974
4104
|
EmptyStateComponent,
|
|
3975
4105
|
PaginatorComponent,
|
|
3976
|
-
AbstractTableComponent
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
BrowserAnimationsModule,
|
|
3981
|
-
FormsModule,
|
|
3982
|
-
MatInputModule,
|
|
3983
|
-
MatFormFieldModule,
|
|
3984
|
-
MatSelectModule,
|
|
3985
|
-
MatTabsModule,
|
|
3986
|
-
DirectivesModule,
|
|
3987
|
-
MatIconModule,
|
|
3988
|
-
MatButtonModule,
|
|
3989
|
-
MatCheckboxModule,
|
|
3990
|
-
MatTableModule,
|
|
3991
|
-
PortalModule,
|
|
3992
|
-
CdkScrollableModule,
|
|
3993
|
-
FontAwesomeModule,
|
|
3994
|
-
MatTooltipModule,
|
|
3995
|
-
MatAutocompleteModule,
|
|
3996
|
-
MatMenuModule,
|
|
3997
|
-
MatDividerModule,
|
|
3998
|
-
MatProgressSpinnerModule
|
|
4106
|
+
AbstractTableComponent,
|
|
4107
|
+
AbstractCardContainerComponent,
|
|
4108
|
+
CardStackComponent,
|
|
4109
|
+
LabelledValueComponent
|
|
3999
4110
|
],
|
|
4000
4111
|
exports: [
|
|
4001
4112
|
NumberInputComponent,
|
|
@@ -4032,6 +4143,8 @@ ComponentsModule.decorators = [
|
|
|
4032
4143
|
BusyOverlayComponent,
|
|
4033
4144
|
EmptyStateComponent,
|
|
4034
4145
|
PaginatorComponent,
|
|
4146
|
+
CardStackComponent,
|
|
4147
|
+
LabelledValueComponent,
|
|
4035
4148
|
],
|
|
4036
4149
|
providers: [
|
|
4037
4150
|
FocusBindingFactory
|
|
@@ -4067,7 +4180,8 @@ class ActivityActionsComponent extends DisposableComponent {
|
|
|
4067
4180
|
constructor(cdr) {
|
|
4068
4181
|
super();
|
|
4069
4182
|
this.cdr = cdr;
|
|
4070
|
-
this.
|
|
4183
|
+
this.layout = ActivityActionsComponent.Layout.BLOCK;
|
|
4184
|
+
this.align = ActivityActionsComponent.Align.STRETCH;
|
|
4071
4185
|
}
|
|
4072
4186
|
set faces(faces) {
|
|
4073
4187
|
this.confirmFace = faces.confirm;
|
|
@@ -4079,12 +4193,6 @@ class ActivityActionsComponent extends DisposableComponent {
|
|
|
4079
4193
|
set style(style) {
|
|
4080
4194
|
this.faces = style;
|
|
4081
4195
|
}
|
|
4082
|
-
get alignEnd() {
|
|
4083
|
-
return this.align === 'end';
|
|
4084
|
-
}
|
|
4085
|
-
get alignStretch() {
|
|
4086
|
-
return this.align === 'stretch';
|
|
4087
|
-
}
|
|
4088
4196
|
ngOnInit() {
|
|
4089
4197
|
}
|
|
4090
4198
|
hasConfirmFace() {
|
|
@@ -4103,7 +4211,7 @@ ActivityActionsComponent.decorators = [
|
|
|
4103
4211
|
{ type: Component, args: [{
|
|
4104
4212
|
selector: 'aup-activity-actions',
|
|
4105
4213
|
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",
|
|
4106
|
-
styles: [":host{display:grid;grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr
|
|
4214
|
+
styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr;padding:0}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}"]
|
|
4107
4215
|
},] }
|
|
4108
4216
|
];
|
|
4109
4217
|
ActivityActionsComponent.ctorParameters = () => [
|
|
@@ -4116,9 +4224,8 @@ ActivityActionsComponent.propDecorators = {
|
|
|
4116
4224
|
confirmFace: [{ type: Input }],
|
|
4117
4225
|
cancelFace: [{ type: Input }],
|
|
4118
4226
|
style: [{ type: Input }],
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
alignStretch: [{ type: HostBinding, args: ['class.align-stretch',] }]
|
|
4227
|
+
layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
|
|
4228
|
+
align: [{ type: Input }, { type: HostBinding, args: ['attr.align',] }]
|
|
4122
4229
|
};
|
|
4123
4230
|
__decorate([
|
|
4124
4231
|
TrackExternal(),
|
|
@@ -4128,6 +4235,17 @@ __decorate([
|
|
|
4128
4235
|
TrackExternal(),
|
|
4129
4236
|
__metadata("design:type", Command)
|
|
4130
4237
|
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
4238
|
+
(function (ActivityActionsComponent) {
|
|
4239
|
+
ActivityActionsComponent.Layout = Enum({
|
|
4240
|
+
INLINE: 'inline',
|
|
4241
|
+
BLOCK: 'block'
|
|
4242
|
+
});
|
|
4243
|
+
ActivityActionsComponent.Align = Enum({
|
|
4244
|
+
START: 'start',
|
|
4245
|
+
END: 'end',
|
|
4246
|
+
STRETCH: 'stretch'
|
|
4247
|
+
});
|
|
4248
|
+
})(ActivityActionsComponent || (ActivityActionsComponent = {}));
|
|
4131
4249
|
|
|
4132
4250
|
const ACTIVITY_DATA = new InjectionToken('InteractionActivityData');
|
|
4133
4251
|
class Activity extends DisposableComponent {
|
|
@@ -4725,6 +4843,9 @@ class AbstractActivityTriggerComponent extends DisposableComponent {
|
|
|
4725
4843
|
});
|
|
4726
4844
|
});
|
|
4727
4845
|
}
|
|
4846
|
+
get interactionContext() {
|
|
4847
|
+
return lang$1.abstractMethod(this.constructor);
|
|
4848
|
+
}
|
|
4728
4849
|
ngOnInit() {
|
|
4729
4850
|
}
|
|
4730
4851
|
get isActive() {
|
|
@@ -4946,7 +5067,10 @@ InteractionService.ctorParameters = () => [
|
|
|
4946
5067
|
class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
4947
5068
|
constructor(interactionService) {
|
|
4948
5069
|
super();
|
|
4949
|
-
this.
|
|
5070
|
+
this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
|
|
5071
|
+
}
|
|
5072
|
+
get interactionContext() {
|
|
5073
|
+
return this._interactionContext;
|
|
4950
5074
|
}
|
|
4951
5075
|
}
|
|
4952
5076
|
ModalActivityTriggerComponent.decorators = [
|
|
@@ -4986,6 +5110,9 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
|
|
|
4986
5110
|
var _a;
|
|
4987
5111
|
return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : '0ms';
|
|
4988
5112
|
}
|
|
5113
|
+
get active() {
|
|
5114
|
+
return this.isActive();
|
|
5115
|
+
}
|
|
4989
5116
|
ngAfterViewInit() {
|
|
4990
5117
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
4991
5118
|
}
|
|
@@ -5030,8 +5157,78 @@ InPlaceInteractionContextComponent.ctorParameters = () => [
|
|
|
5030
5157
|
];
|
|
5031
5158
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
5032
5159
|
activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }],
|
|
5033
|
-
animateFirstActivity: [{ type: Input }]
|
|
5160
|
+
animateFirstActivity: [{ type: Input }],
|
|
5161
|
+
active: [{ type: HostBinding, args: ["class.active",] }]
|
|
5162
|
+
};
|
|
5163
|
+
|
|
5164
|
+
/**
|
|
5165
|
+
*
|
|
5166
|
+
*/
|
|
5167
|
+
class AddCardActivityComponent extends AbstractActivityTriggerComponent {
|
|
5168
|
+
constructor(interactionService) {
|
|
5169
|
+
super();
|
|
5170
|
+
this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
|
|
5171
|
+
this.renderAs = AddCardActivityComponent.RenderAs.CARD;
|
|
5172
|
+
const { chain } = Dsl.disposeWith(this);
|
|
5173
|
+
this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(this);
|
|
5174
|
+
this.faceList = chain(this.faceModel).mapToList(face => [face]);
|
|
5175
|
+
}
|
|
5176
|
+
get renderAsClass() {
|
|
5177
|
+
return `render-as-${this.renderAs}`;
|
|
5178
|
+
}
|
|
5179
|
+
get activityTypeClass() {
|
|
5180
|
+
return `${this.interactionStyle}-activity`;
|
|
5181
|
+
}
|
|
5182
|
+
isRenderAsCard() {
|
|
5183
|
+
return this.renderAs === 'card';
|
|
5184
|
+
}
|
|
5185
|
+
isRenderAsButton() {
|
|
5186
|
+
return this.renderAs === 'button';
|
|
5187
|
+
}
|
|
5188
|
+
ngOnInit() {
|
|
5189
|
+
}
|
|
5190
|
+
get interactionContext() {
|
|
5191
|
+
switch (this.interactionStyle) {
|
|
5192
|
+
case 'inline':
|
|
5193
|
+
return this.inlineInteractionContext;
|
|
5194
|
+
default:
|
|
5195
|
+
return this.modalInteractionContext;
|
|
5196
|
+
}
|
|
5197
|
+
}
|
|
5198
|
+
isModal() {
|
|
5199
|
+
return this.interactionStyle === 'modal';
|
|
5200
|
+
}
|
|
5201
|
+
isInline() {
|
|
5202
|
+
return this.interactionStyle === 'inline';
|
|
5203
|
+
}
|
|
5204
|
+
}
|
|
5205
|
+
AddCardActivityComponent.decorators = [
|
|
5206
|
+
{ type: Component, args: [{
|
|
5207
|
+
selector: 'aup-add-card-activity',
|
|
5208
|
+
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",
|
|
5209
|
+
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}"]
|
|
5210
|
+
},] }
|
|
5211
|
+
];
|
|
5212
|
+
AddCardActivityComponent.ctorParameters = () => [
|
|
5213
|
+
{ type: InteractionService }
|
|
5214
|
+
];
|
|
5215
|
+
AddCardActivityComponent.propDecorators = {
|
|
5216
|
+
inlineInteractionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
5217
|
+
interactionStyle: [{ type: Input }],
|
|
5218
|
+
renderAs: [{ type: Input }, { type: HostBinding, args: ['class',] }],
|
|
5219
|
+
renderAsClass: [{ type: HostBinding, args: ['class',] }],
|
|
5220
|
+
activityTypeClass: [{ type: HostBinding, args: ['class',] }]
|
|
5034
5221
|
};
|
|
5222
|
+
(function (AddCardActivityComponent) {
|
|
5223
|
+
AddCardActivityComponent.InteractionType = Enum({
|
|
5224
|
+
MODAL: 'modal',
|
|
5225
|
+
INLINE: 'inline'
|
|
5226
|
+
});
|
|
5227
|
+
AddCardActivityComponent.RenderAs = Enum({
|
|
5228
|
+
CARD: 'card',
|
|
5229
|
+
BUTTON: 'button'
|
|
5230
|
+
});
|
|
5231
|
+
})(AddCardActivityComponent || (AddCardActivityComponent = {}));
|
|
5035
5232
|
|
|
5036
5233
|
/**
|
|
5037
5234
|
* Css Vars.
|
|
@@ -5094,6 +5291,9 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
|
5094
5291
|
constructor() {
|
|
5095
5292
|
super();
|
|
5096
5293
|
}
|
|
5294
|
+
get interactionContext() {
|
|
5295
|
+
return this._interactionContext;
|
|
5296
|
+
}
|
|
5097
5297
|
}
|
|
5098
5298
|
InlineActivityTriggerComponent.decorators = [
|
|
5099
5299
|
{ type: Component, args: [{
|
|
@@ -5104,7 +5304,7 @@ InlineActivityTriggerComponent.decorators = [
|
|
|
5104
5304
|
];
|
|
5105
5305
|
InlineActivityTriggerComponent.ctorParameters = () => [];
|
|
5106
5306
|
InlineActivityTriggerComponent.propDecorators = {
|
|
5107
|
-
|
|
5307
|
+
_interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
5108
5308
|
};
|
|
5109
5309
|
|
|
5110
5310
|
/**
|
|
@@ -5265,7 +5465,7 @@ InteractionContextTriggerFor.propDecorators = {
|
|
|
5265
5465
|
// @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
|
|
5266
5466
|
// we're getting a metadata error for D for no reason that I can find and only during the build (ng serve works fine)
|
|
5267
5467
|
// @dynamic
|
|
5268
|
-
class
|
|
5468
|
+
class InputActivity extends Activity {
|
|
5269
5469
|
constructor(data) {
|
|
5270
5470
|
super();
|
|
5271
5471
|
this.data = data;
|
|
@@ -5273,36 +5473,62 @@ class AbstractInputActivity extends Activity {
|
|
|
5273
5473
|
const form = new DirtyTrackingForm();
|
|
5274
5474
|
this.valueModel = form.valueModel(this.data.initialValue);
|
|
5275
5475
|
this.valueModel.validateUsing(data.validators || []);
|
|
5276
|
-
this.confirmCommand = Command.create(() => {
|
|
5476
|
+
this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
|
|
5277
5477
|
if (this.valueModel.validate()) {
|
|
5278
5478
|
if (data.save) {
|
|
5279
|
-
|
|
5280
|
-
|
|
5479
|
+
const self = this;
|
|
5480
|
+
try {
|
|
5481
|
+
let allGood = true;
|
|
5482
|
+
const result = yield data.save(this.valueModel.value, {
|
|
5483
|
+
injectError(error) {
|
|
5484
|
+
allGood = false;
|
|
5485
|
+
self.valueModel.injectErrors([error]);
|
|
5486
|
+
}
|
|
5487
|
+
});
|
|
5488
|
+
if (allGood) {
|
|
5489
|
+
this.done(this.valueModel.value);
|
|
5490
|
+
}
|
|
5491
|
+
}
|
|
5492
|
+
catch (e) {
|
|
5493
|
+
console.error(e);
|
|
5494
|
+
}
|
|
5281
5495
|
}
|
|
5282
5496
|
else {
|
|
5283
5497
|
this.done(this.valueModel.value);
|
|
5284
5498
|
}
|
|
5285
5499
|
}
|
|
5286
|
-
});
|
|
5500
|
+
}));
|
|
5287
5501
|
this.cancelCommand = Command.create(() => {
|
|
5288
5502
|
this.cancel();
|
|
5289
5503
|
});
|
|
5504
|
+
this.busyWhile(this.confirmCommand.busy);
|
|
5505
|
+
}
|
|
5506
|
+
get layout() {
|
|
5507
|
+
var _a, _b;
|
|
5508
|
+
return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
|
|
5290
5509
|
}
|
|
5291
5510
|
onActivityReady() {
|
|
5292
5511
|
this.valueModel.focusContext.requestFocus();
|
|
5293
5512
|
}
|
|
5294
5513
|
}
|
|
5295
|
-
|
|
5514
|
+
InputActivity.decorators = [
|
|
5296
5515
|
{ type: Component, args: [{ template: `` },] }
|
|
5297
5516
|
];
|
|
5298
|
-
|
|
5517
|
+
InputActivity.ctorParameters = () => [
|
|
5299
5518
|
{ type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
|
|
5300
5519
|
];
|
|
5301
|
-
|
|
5302
|
-
class: [{ type: HostBinding, args: ['class',] }]
|
|
5520
|
+
InputActivity.propDecorators = {
|
|
5521
|
+
class: [{ type: HostBinding, args: ['class',] }],
|
|
5522
|
+
layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }]
|
|
5303
5523
|
};
|
|
5524
|
+
(function (InputActivity) {
|
|
5525
|
+
InputActivity.Layout = Enum({
|
|
5526
|
+
INLINE: 'inline',
|
|
5527
|
+
BLOCK: 'block'
|
|
5528
|
+
});
|
|
5529
|
+
})(InputActivity || (InputActivity = {}));
|
|
5304
5530
|
|
|
5305
|
-
class StringInputActivity extends
|
|
5531
|
+
class StringInputActivity extends InputActivity {
|
|
5306
5532
|
}
|
|
5307
5533
|
StringInputActivity.decorators = [
|
|
5308
5534
|
{ type: Component, args: [{
|
|
@@ -5313,13 +5539,12 @@ StringInputActivity.decorators = [
|
|
|
5313
5539
|
[placeholder]="data.placeholder"
|
|
5314
5540
|
[command.enter]="confirmCommand"
|
|
5315
5541
|
[command.escape]="cancelCommand"></aup-string-input>
|
|
5316
|
-
<aup-activity-actions align="end"
|
|
5317
|
-
[faces]="data.buttonStyle"></aup-activity-actions>
|
|
5542
|
+
<aup-activity-actions [layout]="layout" align="end" [faces]="data.buttonStyle"></aup-activity-actions>
|
|
5318
5543
|
`
|
|
5319
5544
|
},] }
|
|
5320
5545
|
];
|
|
5321
5546
|
|
|
5322
|
-
class SelectInputActivity extends
|
|
5547
|
+
class SelectInputActivity extends InputActivity {
|
|
5323
5548
|
constructor() {
|
|
5324
5549
|
super(...arguments);
|
|
5325
5550
|
this.defaultOptionLabelFormat = (option) => {
|
|
@@ -5347,7 +5572,7 @@ SelectInputActivity.decorators = [
|
|
|
5347
5572
|
[options]="options"
|
|
5348
5573
|
[optionLabelFormat]="optionLabelFormat"
|
|
5349
5574
|
></aup-select-input>
|
|
5350
|
-
<aup-activity-actions align="end" [faces]="data.buttonStyle"
|
|
5575
|
+
<aup-activity-actions [layout]="layout" align="end" [faces]="data.buttonStyle"
|
|
5351
5576
|
></aup-activity-actions>
|
|
5352
5577
|
`
|
|
5353
5578
|
},] }
|
|
@@ -5489,6 +5714,9 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
|
5489
5714
|
this.anchorX = 'start';
|
|
5490
5715
|
this.anchorY = 'bottom';
|
|
5491
5716
|
}
|
|
5717
|
+
get interactionContext() {
|
|
5718
|
+
return this._interactionContext;
|
|
5719
|
+
}
|
|
5492
5720
|
}
|
|
5493
5721
|
PopupActivityTriggerComponent.decorators = [
|
|
5494
5722
|
{ type: Component, args: [{
|
|
@@ -5501,8 +5729,188 @@ PopupActivityTriggerComponent.ctorParameters = () => [];
|
|
|
5501
5729
|
PopupActivityTriggerComponent.propDecorators = {
|
|
5502
5730
|
anchorX: [{ type: Input }],
|
|
5503
5731
|
anchorY: [{ type: Input }],
|
|
5504
|
-
|
|
5732
|
+
_interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
5733
|
+
};
|
|
5734
|
+
|
|
5735
|
+
class InlineEditorModel {
|
|
5736
|
+
constructor(valueModel, saveCallback) {
|
|
5737
|
+
this.valueModel = valueModel;
|
|
5738
|
+
this.saveCallback = saveCallback;
|
|
5739
|
+
this.editing = new MutableValueModel(false);
|
|
5740
|
+
this._validators = new MutableListModel();
|
|
5741
|
+
}
|
|
5742
|
+
get validators() {
|
|
5743
|
+
return this._validators.readonly;
|
|
5744
|
+
}
|
|
5745
|
+
validateUsing(validator) {
|
|
5746
|
+
this._validators.push(validator);
|
|
5747
|
+
return this;
|
|
5748
|
+
}
|
|
5749
|
+
;
|
|
5750
|
+
isEditing() {
|
|
5751
|
+
return this.editing.value;
|
|
5752
|
+
}
|
|
5753
|
+
cancelEdit() {
|
|
5754
|
+
this.editing.value = false;
|
|
5755
|
+
}
|
|
5756
|
+
startEditing() {
|
|
5757
|
+
this.editing.value = true;
|
|
5758
|
+
}
|
|
5759
|
+
}
|
|
5760
|
+
(function (InlineEditorModel) {
|
|
5761
|
+
function create(valueModel, options) {
|
|
5762
|
+
return new InlineEditorModel(valueModel, options.save);
|
|
5763
|
+
}
|
|
5764
|
+
InlineEditorModel.create = create;
|
|
5765
|
+
})(InlineEditorModel || (InlineEditorModel = {}));
|
|
5766
|
+
TrackExternal.oneTimeBinding(InlineEditorModel);
|
|
5767
|
+
|
|
5768
|
+
/**
|
|
5769
|
+
* @example
|
|
5770
|
+
* const source: ValueModel<string> = ...;
|
|
5771
|
+
* const model = InlineEditorModel.create(source, {
|
|
5772
|
+
* save(updated:string, context: EditContext) => {
|
|
5773
|
+
* try {
|
|
5774
|
+
* try and save the thing...
|
|
5775
|
+
* } catch(error) {
|
|
5776
|
+
* context.injectError(error)
|
|
5777
|
+
* }
|
|
5778
|
+
* }).validateUsing(Validator.present("We'll need a value");
|
|
5779
|
+
*
|
|
5780
|
+
* # in the view
|
|
5781
|
+
* <aup-inline-string-editor
|
|
5782
|
+
* label="My field"
|
|
5783
|
+
* placeHolder="I'm ready for a string..."
|
|
5784
|
+
* [editorModel]="model"></aup-inline-string-editor>
|
|
5785
|
+
*/
|
|
5786
|
+
class InlineStringEditorComponent extends DisposableComponent {
|
|
5787
|
+
constructor(interactionService) {
|
|
5788
|
+
super();
|
|
5789
|
+
const { chain, when, valueOf } = Dsl.disposeWith(this);
|
|
5790
|
+
const modalIC = interactionService.createModalInteractionContextDisposedWith(this);
|
|
5791
|
+
const resolvedFacesModel = chain(this.facesModel).map(userFaces => {
|
|
5792
|
+
return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
|
|
5793
|
+
}, { allowNil: true });
|
|
5794
|
+
this.editFaceModel = resolvedFacesModel.pluck('edit');
|
|
5795
|
+
this.saveFace = resolvedFacesModel.pluck('save');
|
|
5796
|
+
this.cancelFace = resolvedFacesModel.pluck('cancel');
|
|
5797
|
+
const self = this;
|
|
5798
|
+
this.editCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
|
|
5799
|
+
this.editorModel.editing.value = true;
|
|
5800
|
+
try {
|
|
5801
|
+
yield this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData());
|
|
5802
|
+
}
|
|
5803
|
+
catch (e) {
|
|
5804
|
+
// don't care, just hiding the console errors
|
|
5805
|
+
}
|
|
5806
|
+
finally {
|
|
5807
|
+
this.editorModel.editing.value = false;
|
|
5808
|
+
}
|
|
5809
|
+
}));
|
|
5810
|
+
this.onDispose(() => this.cancelEdit());
|
|
5811
|
+
}
|
|
5812
|
+
ngOnInit() {
|
|
5813
|
+
// our editor model is a one time binding without delegates so we can only
|
|
5814
|
+
// use it once we've been initialised
|
|
5815
|
+
const { chain, when, valueOf } = Dsl.disposeWith(this);
|
|
5816
|
+
if (!this.editorModel) {
|
|
5817
|
+
lang$1.illegalState('editorModel is required');
|
|
5818
|
+
}
|
|
5819
|
+
when(this.editorModel.editing).becomesTruthy(() => {
|
|
5820
|
+
this.editCommand.execute();
|
|
5821
|
+
}, { asLongAs: this.editCommand.enabled });
|
|
5822
|
+
when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
|
|
5823
|
+
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
5824
|
+
// deviceDescription.isNil()
|
|
5825
|
+
).areTruthy();
|
|
5826
|
+
this.displayValue = chain(this.editorModel.valueModel).map(v => {
|
|
5827
|
+
return _.isEmpty(v) ? this.placeHolderModel.value : v;
|
|
5828
|
+
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
5829
|
+
}
|
|
5830
|
+
createInputActivityData() {
|
|
5831
|
+
const self = this;
|
|
5832
|
+
return {
|
|
5833
|
+
initialValue: self.editorModel.valueModel.value,
|
|
5834
|
+
buttonStyle: { confirm: self.saveFace.value, cancel: self.cancelFace.value },
|
|
5835
|
+
placeholder: self.placeHolderModel.value,
|
|
5836
|
+
label: self.label,
|
|
5837
|
+
layout: InputActivity.Layout.INLINE,
|
|
5838
|
+
validators: self.editorModel.validators.value,
|
|
5839
|
+
save(value, inputContext) {
|
|
5840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5841
|
+
yield self.editorModel.saveCallback(value, inputContext);
|
|
5842
|
+
});
|
|
5843
|
+
}
|
|
5844
|
+
};
|
|
5845
|
+
}
|
|
5846
|
+
cancelEdit() {
|
|
5847
|
+
if (this.isEditing()) {
|
|
5848
|
+
this.interactionContext.cancelActiveActivity();
|
|
5849
|
+
}
|
|
5850
|
+
}
|
|
5851
|
+
startEdit() {
|
|
5852
|
+
if (!this.isEditing() && this.editCommand.enabled.value) {
|
|
5853
|
+
this.editCommand.execute();
|
|
5854
|
+
}
|
|
5855
|
+
}
|
|
5856
|
+
isEditing() {
|
|
5857
|
+
return this.interactionContext.isActive();
|
|
5858
|
+
}
|
|
5859
|
+
isEmpty() {
|
|
5860
|
+
return this.empty.value;
|
|
5861
|
+
}
|
|
5862
|
+
}
|
|
5863
|
+
InlineStringEditorComponent.decorators = [
|
|
5864
|
+
{ type: Component, args: [{
|
|
5865
|
+
selector: 'aup-inline-string-editor',
|
|
5866
|
+
template: "<ng-container *ngIf=\"!editorModel.isEditing()\">\n <div class=\"content\" [class.editable]=\"editCommand.enabled.value\">\n <label>{{label}}</label>\n <p [class.place-holder]=\"empty.value\" (click)=\"editCommand.execute()\">{{displayValue.value}}</p>\n <aup-command *ngIf=\"editCommand.enabled.value\" [command]=\"editCommand\" [faceModel]=\"editFaceModel\"></aup-command>\n </div>\n</ng-container>\n<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n\n"
|
|
5867
|
+
},] }
|
|
5868
|
+
];
|
|
5869
|
+
InlineStringEditorComponent.ctorParameters = () => [
|
|
5870
|
+
{ type: InteractionService }
|
|
5871
|
+
];
|
|
5872
|
+
InlineStringEditorComponent.propDecorators = {
|
|
5873
|
+
editorModel: [{ type: Input }],
|
|
5874
|
+
facesModel: [{ type: Input }],
|
|
5875
|
+
faces: [{ type: Input }],
|
|
5876
|
+
interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent,] }],
|
|
5877
|
+
label: [{ type: Input }],
|
|
5878
|
+
placeHolder: [{ type: Input }],
|
|
5879
|
+
placeHolderModel: [{ type: Input }]
|
|
5505
5880
|
};
|
|
5881
|
+
__decorate([
|
|
5882
|
+
TrackExternal(),
|
|
5883
|
+
__metadata("design:type", InlineEditorModel)
|
|
5884
|
+
], InlineStringEditorComponent.prototype, "editorModel", void 0);
|
|
5885
|
+
__decorate([
|
|
5886
|
+
TrackExternal(),
|
|
5887
|
+
__metadata("design:type", ValueModel)
|
|
5888
|
+
], InlineStringEditorComponent.prototype, "facesModel", void 0);
|
|
5889
|
+
__decorate([
|
|
5890
|
+
StoreInValueModel('facesModel'),
|
|
5891
|
+
__metadata("design:type", Object)
|
|
5892
|
+
], InlineStringEditorComponent.prototype, "faces", void 0);
|
|
5893
|
+
__decorate([
|
|
5894
|
+
StoreInValueModel('placeHolderModel'),
|
|
5895
|
+
__metadata("design:type", String)
|
|
5896
|
+
], InlineStringEditorComponent.prototype, "placeHolder", void 0);
|
|
5897
|
+
__decorate([
|
|
5898
|
+
TrackExternal(),
|
|
5899
|
+
__metadata("design:type", ValueModel)
|
|
5900
|
+
], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
5901
|
+
(function (InlineStringEditorComponent) {
|
|
5902
|
+
InlineStringEditorComponent.DEFAULT_FACES = {
|
|
5903
|
+
edit: {
|
|
5904
|
+
icon: () => 'mat:edit'
|
|
5905
|
+
},
|
|
5906
|
+
save: {
|
|
5907
|
+
icon: () => 'mat:check'
|
|
5908
|
+
},
|
|
5909
|
+
cancel: {
|
|
5910
|
+
icon: () => 'mat:clear'
|
|
5911
|
+
}
|
|
5912
|
+
};
|
|
5913
|
+
})(InlineStringEditorComponent || (InlineStringEditorComponent = {}));
|
|
5506
5914
|
|
|
5507
5915
|
class InteractionModule {
|
|
5508
5916
|
}
|
|
@@ -5533,7 +5941,7 @@ InteractionModule.decorators = [
|
|
|
5533
5941
|
PopupInteractionContextComponent,
|
|
5534
5942
|
StringInputActivity,
|
|
5535
5943
|
SelectInputActivity,
|
|
5536
|
-
|
|
5944
|
+
InputActivity,
|
|
5537
5945
|
InteractionContextTriggerFor,
|
|
5538
5946
|
Activity,
|
|
5539
5947
|
ActivityTitleComponent,
|
|
@@ -5542,7 +5950,9 @@ InteractionModule.decorators = [
|
|
|
5542
5950
|
AbstractActivityTriggerComponent,
|
|
5543
5951
|
PopupActivityTriggerComponent,
|
|
5544
5952
|
InlineActivityTriggerComponent,
|
|
5545
|
-
ModalActivityTriggerComponent
|
|
5953
|
+
ModalActivityTriggerComponent,
|
|
5954
|
+
AddCardActivityComponent,
|
|
5955
|
+
InlineStringEditorComponent,
|
|
5546
5956
|
],
|
|
5547
5957
|
exports: [
|
|
5548
5958
|
ActivityContainerComponent,
|
|
@@ -5558,7 +5968,9 @@ InteractionModule.decorators = [
|
|
|
5558
5968
|
ActivityBodyComponent,
|
|
5559
5969
|
PopupActivityTriggerComponent,
|
|
5560
5970
|
InlineActivityTriggerComponent,
|
|
5561
|
-
ModalActivityTriggerComponent
|
|
5971
|
+
ModalActivityTriggerComponent,
|
|
5972
|
+
AddCardActivityComponent,
|
|
5973
|
+
InlineStringEditorComponent,
|
|
5562
5974
|
],
|
|
5563
5975
|
entryComponents: [
|
|
5564
5976
|
ActivityContainerComponent,
|
|
@@ -7019,6 +7431,7 @@ class UrlSnapshot {
|
|
|
7019
7431
|
this.url = url;
|
|
7020
7432
|
this.urlTree = urlSerializer.parse(url);
|
|
7021
7433
|
}
|
|
7434
|
+
// @Trace()
|
|
7022
7435
|
updateVisitSegments(visit) {
|
|
7023
7436
|
const newUrlTree = this.urlSerializer.parse(this.url);
|
|
7024
7437
|
// Ugly, but it works for now.
|
|
@@ -7095,12 +7508,6 @@ class UrlSnapshot {
|
|
|
7095
7508
|
return `UrlSnapshot(${this.url})`;
|
|
7096
7509
|
}
|
|
7097
7510
|
}
|
|
7098
|
-
__decorate([
|
|
7099
|
-
Trace(),
|
|
7100
|
-
__metadata("design:type", Function),
|
|
7101
|
-
__metadata("design:paramtypes", [Visit]),
|
|
7102
|
-
__metadata("design:returntype", UrlSnapshot)
|
|
7103
|
-
], UrlSnapshot.prototype, "updateVisitSegments", null);
|
|
7104
7511
|
__decorate([
|
|
7105
7512
|
Memoize(),
|
|
7106
7513
|
__metadata("design:type", Function),
|
|
@@ -7442,6 +7849,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
7442
7849
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
7443
7850
|
* the app directly and we don't get to ask.
|
|
7444
7851
|
*/
|
|
7852
|
+
// @Trace()
|
|
7445
7853
|
syncInteractionContextIdsWithRouter() {
|
|
7446
7854
|
if (this.navigationSession) {
|
|
7447
7855
|
// console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
|
|
@@ -7483,12 +7891,6 @@ PlaceRouter.ctorParameters = () => [
|
|
|
7483
7891
|
{ type: UrlService },
|
|
7484
7892
|
{ type: PlaceHistory }
|
|
7485
7893
|
];
|
|
7486
|
-
__decorate([
|
|
7487
|
-
Trace(),
|
|
7488
|
-
__metadata("design:type", Function),
|
|
7489
|
-
__metadata("design:paramtypes", []),
|
|
7490
|
-
__metadata("design:returntype", Promise)
|
|
7491
|
-
], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
|
|
7492
7894
|
(function (PlaceRouter) {
|
|
7493
7895
|
class State {
|
|
7494
7896
|
constructor(activeVisits) {
|
|
@@ -8505,5 +8907,5 @@ VisibilityService.ctorParameters = () => [
|
|
|
8505
8907
|
* Generated bundle index. Do not edit.
|
|
8506
8908
|
*/
|
|
8507
8909
|
|
|
8508
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent,
|
|
8910
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CardStackComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SelfAndDescendantsVisitor, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator, ɵ0 };
|
|
8509
8911
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|