@coolon/angular-ui-powerups 12.4.0-alpha.4 → 12.4.0-alpha.40
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 +17 -0
- package/assets/empty-state.scss +11 -0
- package/assets/form.scss +5 -2
- package/assets/forms/mixins.scss +6 -0
- package/assets/interaction/editor/inline-string-editor.scss +88 -0
- package/assets/interaction/input-activity.scss +12 -0
- package/assets/interaction.scss +11 -7
- package/assets/styles.scss +5 -12
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +738 -307
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +739 -127
- 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/package.json +1 -1
- package/cypress/page-builder.d.ts +9 -0
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +8 -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 +31 -19
- 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/cards/card-container/card-container.component.js +117 -0
- 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 +78 -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/components/track-by.js +12 -0
- package/esm2015/lib/components/track-by.js.map +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 +77 -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 +50 -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 +160 -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 +17 -5
- 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 +2 -1
- 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 +2 -1
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/place-component.js +31 -4
- 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 +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/esm2015/lib/place/visit.js +5 -1
- 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 +555 -228
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +612 -96
- 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 +25 -9
- package/lib/components/cards/card-stack/card-stack.component.d.ts +65 -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/components/track-by.d.ts +9 -0
- 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 +39 -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 +24 -0
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +57 -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/lib/place/place-component.d.ts +6 -1
- 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 +0 -84
- 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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Command } from '@coolon/pectin';
|
|
3
|
+
import { CommandFace } from '../commands/command-face';
|
|
4
|
+
import { DisposableComponent } from '../disposable-component';
|
|
5
|
+
export declare class AbstractCardContainerComponent extends DisposableComponent implements OnInit {
|
|
6
|
+
addCardCommand: Command<any>;
|
|
7
|
+
addCardFace: CommandFace;
|
|
8
|
+
addCardTemplate: TemplateRef<any>;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
}
|
package/lib/components/{card-container → cards/card-container}/card-container.component.d.ts
RENAMED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { CommandFace } from '../commands/command-face';
|
|
4
|
-
import { DisposableComponent } from '../disposable-component';
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractCardContainerComponent } from '../abstract-card-container.component';
|
|
5
3
|
/**
|
|
6
4
|
* @example
|
|
7
5
|
* // basic usage
|
|
@@ -19,6 +17,13 @@ import { DisposableComponent } from '../disposable-component';
|
|
|
19
17
|
* <my-card *ngFor="..."></my-card>
|
|
20
18
|
* </aup-card-container>
|
|
21
19
|
*
|
|
20
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
21
|
+
* // the activity inside teh card
|
|
22
|
+
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
23
|
+
* <my-card *ngFor="..."></my-card>
|
|
24
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
25
|
+
* </aup-card-container>
|
|
26
|
+
*
|
|
22
27
|
* // adds an add card component using the specified template. The template
|
|
23
28
|
* // will fill it's container in the grid.
|
|
24
29
|
* <aup-card-container>
|
|
@@ -51,15 +56,26 @@ import { DisposableComponent } from '../disposable-component';
|
|
|
51
56
|
* aup-card-container {
|
|
52
57
|
* --card-gap: var(--card-gap, 16px);
|
|
53
58
|
* --card-width: var(--card-width, 300px);
|
|
59
|
+
* --card-width-max: auto;
|
|
54
60
|
* --card-height: var(--card-height, auto);
|
|
55
61
|
* --card-min-height: var(--card-min-height, auto);
|
|
56
62
|
* --card-background: var(--card-background, #fcfcfb);
|
|
57
63
|
* }
|
|
58
64
|
*/
|
|
59
|
-
export declare class CardContainerComponent extends
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
export declare class CardContainerComponent extends AbstractCardContainerComponent implements OnInit {
|
|
66
|
+
private readonly elementRef;
|
|
67
|
+
private _columnCount;
|
|
68
|
+
set columnCount(count: number | undefined);
|
|
69
|
+
get columnCount(): number | undefined;
|
|
70
|
+
constructor(elementRef: ElementRef);
|
|
64
71
|
ngOnInit(): void;
|
|
72
|
+
get isAutoColumns(): boolean;
|
|
73
|
+
get isSingleColumn(): boolean;
|
|
74
|
+
protected updateColumnCountStyles(): void;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace CardContainerComponent {
|
|
77
|
+
interface ColumnConfiguration {
|
|
78
|
+
count: number;
|
|
79
|
+
stretchToFill: boolean;
|
|
80
|
+
}
|
|
65
81
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AbstractCardContainerComponent } from '../abstract-card-container.component';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated deprecated, use `aup-card-container [columnCount]="1"` instead.
|
|
4
|
+
* @example
|
|
5
|
+
* // basic usage
|
|
6
|
+
* <aup-card-stack>
|
|
7
|
+
* <my-card *ngFor="..."></my-card>
|
|
8
|
+
* </aup-card-stack>
|
|
9
|
+
*
|
|
10
|
+
* // adds an add button with a the '+' icon to the end of the card list.
|
|
11
|
+
* <aup-card-stack [addCardCommand]="addCard">
|
|
12
|
+
* <my-card *ngFor="..."></my-card>
|
|
13
|
+
* </aup-card-stack>
|
|
14
|
+
*
|
|
15
|
+
* // adds an add button with the specified face
|
|
16
|
+
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
17
|
+
* <my-card *ngFor="..."></my-card>
|
|
18
|
+
* </aup-card-stack>
|
|
19
|
+
*
|
|
20
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
21
|
+
* // the activity inside teh card
|
|
22
|
+
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
23
|
+
* <my-card *ngFor="..."></my-card>
|
|
24
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
25
|
+
* </aup-card-stack>
|
|
26
|
+
*
|
|
27
|
+
* // adds an add card component using the specified template. The template
|
|
28
|
+
* // will fill it's container in the grid.
|
|
29
|
+
* <aup-card-stack>
|
|
30
|
+
* <my-card *ngFor="..."></my-card>
|
|
31
|
+
* <ng-template #addCardTemplate>
|
|
32
|
+
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
33
|
+
* </ng-template>
|
|
34
|
+
* </aup-card-stack>
|
|
35
|
+
*
|
|
36
|
+
* // sing the default new card styles for your template
|
|
37
|
+
* @import "../../../../assets/styles";
|
|
38
|
+
* .my-new-card {
|
|
39
|
+
* @include aup-card-stack-new-card-style();
|
|
40
|
+
* // OR
|
|
41
|
+
* @include aup-card-stack-new-card-style(
|
|
42
|
+
* $color: rgba(0,0,0,0.54),
|
|
43
|
+
* $background-color: rgba(255,255,255,0.8),
|
|
44
|
+
* $hover-color: $color,
|
|
45
|
+
* $background-hover-color: white
|
|
46
|
+
* )
|
|
47
|
+
* }
|
|
48
|
+
* <aup-card-stack>
|
|
49
|
+
* <my-card *ngFor="..."></my-card>
|
|
50
|
+
* <ng-template #addCardTemplate>
|
|
51
|
+
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
52
|
+
* </ng-template>
|
|
53
|
+
* </aup-card-stack>
|
|
54
|
+
*
|
|
55
|
+
* // CSS Vars
|
|
56
|
+
* aup-card-stack {
|
|
57
|
+
* --card-gap: var(--card-gap, 16px);
|
|
58
|
+
* --card-height: var(--card-height, auto);
|
|
59
|
+
* --card-min-height: var(--card-min-height, auto);
|
|
60
|
+
* --card-background: var(--card-background, #fcfcfb);
|
|
61
|
+
* }
|
|
62
|
+
*/
|
|
63
|
+
export declare class CardStackComponent extends AbstractCardContainerComponent {
|
|
64
|
+
constructor();
|
|
65
|
+
}
|
|
@@ -8,7 +8,9 @@ export * from "./focusable.component";
|
|
|
8
8
|
export * from "./resize-aware.component";
|
|
9
9
|
export * from "./track-by";
|
|
10
10
|
export * from "./busy-overlay/busy-overlay.component";
|
|
11
|
-
export * from "./
|
|
11
|
+
export * from "./cards/abstract-card-container.component";
|
|
12
|
+
export * from "./cards/card-container/card-container.component";
|
|
13
|
+
export * from "./cards/card-stack/card-stack.component";
|
|
12
14
|
export * from "./commands/command-face";
|
|
13
15
|
export * from "./commands/flex.component";
|
|
14
16
|
export * from "./commands/separator.component";
|
|
@@ -36,6 +38,7 @@ export * from "./forms/select-input/select-input.component";
|
|
|
36
38
|
export * from "./forms/string-input/string-input.component";
|
|
37
39
|
export * from "./forms/text-input/text-input.component";
|
|
38
40
|
export * from "./icon/icon.component";
|
|
41
|
+
export * from "./labelled-value/labelled-value.component";
|
|
39
42
|
export * from "./noop/noop.component";
|
|
40
43
|
export * from "./scroll-container/scroll-container.component";
|
|
41
44
|
export * from "./section-header/section-header.component";
|
|
@@ -6,7 +6,6 @@ export declare class FlattenedTreeListModel<T> extends ComputedListModel<Decorat
|
|
|
6
6
|
private readonly childRef;
|
|
7
7
|
readonly expansionModel: TreeExpansionModel<DecoratedTreeNode<T>>;
|
|
8
8
|
constructor(source: ListModel<T>, childRef: (node: T) => T[], expansionModel: TreeExpansionModel<DecoratedTreeNode<T>>);
|
|
9
|
-
getIdentityOf(item: DecoratedTreeNode<T>): any;
|
|
10
9
|
compute(values: T[]): DecoratedTreeNode<T>[];
|
|
11
10
|
private addNodeAndVisibleChildren;
|
|
12
11
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ListModel, MutableValueModel, SelectionModel, ValueModel } from '@coolon/pectin';
|
|
2
2
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
3
3
|
import { SelectionColumnModel } from '../table/column-model';
|
|
4
|
-
import { DecoratedTreeNode } from './decorated-tree-node';
|
|
5
4
|
import { TreeExpansionModel } from './tree-expansion-model';
|
|
6
5
|
import { TreeLabelColumnModel } from './tree-label-column-model';
|
|
7
6
|
export declare type ChildArrayPropertiesOf<T> = {
|
|
@@ -12,10 +11,10 @@ export declare class TreeTableModel<Row> extends AbstractTableModel<Row> {
|
|
|
12
11
|
private readonly flattenedDataSource;
|
|
13
12
|
constructor(source: ListModel<Row>, childAccessor: ChildArrayPropertiesOf<Row> | ((node: Row) => Row[]), builder?: (model: TreeTableModel<Row>) => void);
|
|
14
13
|
treeControlColumn(builder: (column: TreeLabelColumnModel<Row>) => void): void;
|
|
15
|
-
expand(node:
|
|
16
|
-
collapse(node:
|
|
17
|
-
isCollapsed(node:
|
|
18
|
-
ensureAncestorsAndSelfVisible(node:
|
|
14
|
+
expand(node: Row): void;
|
|
15
|
+
collapse(node: Row): void;
|
|
16
|
+
isCollapsed(node: Row): boolean;
|
|
17
|
+
ensureAncestorsAndSelfVisible(node: Row): void;
|
|
19
18
|
addSelectionColumn(selectionModel?: SelectionModel<Row>, showSelectionColumn?: ValueModel<boolean> | boolean): SelectionColumnModel<Row>;
|
|
20
19
|
}
|
|
21
20
|
export declare namespace TreeTableModel {
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { TrackByFunction } from '@angular/core';
|
|
2
|
+
import { Constructable } from '@coolon/pectin';
|
|
3
|
+
import { ValuePropertiesOf } from '@coolon/typescript-utilities';
|
|
2
4
|
export declare namespace TrackBy {
|
|
3
5
|
const byIndex: TrackByFunction<any>;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated use #track(MyType).by("property") instead.
|
|
8
|
+
* @param property
|
|
9
|
+
*/
|
|
4
10
|
function trackByProperty<T, P extends keyof T>(property: P): TrackByFunction<T>;
|
|
11
|
+
function track<T>(type: Constructable<T>): {
|
|
12
|
+
by<P extends ValuePropertiesOf<T>>(property: P): (index: number, item: T) => T[P];
|
|
13
|
+
};
|
|
5
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { Command } from '@coolon/pectin';
|
|
3
|
+
import { Enum } from 'typescript-string-enums';
|
|
3
4
|
import { CommandFace } from '../../../components/commands/command-face';
|
|
4
5
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
5
6
|
/**
|
|
@@ -40,9 +41,8 @@ export declare class ActivityActionsComponent extends DisposableComponent implem
|
|
|
40
41
|
* @deprecated use #faces instead.
|
|
41
42
|
*/
|
|
42
43
|
set style(style: ActivityActionsComponent.Style);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
get alignStretch(): boolean;
|
|
44
|
+
layout: ActivityActionsComponent.Layout;
|
|
45
|
+
align: ActivityActionsComponent.Align;
|
|
46
46
|
constructor(cdr: ChangeDetectorRef);
|
|
47
47
|
ngOnInit(): void;
|
|
48
48
|
hasConfirmFace(): boolean;
|
|
@@ -53,6 +53,17 @@ export declare class ActivityActionsComponent extends DisposableComponent implem
|
|
|
53
53
|
}): void;
|
|
54
54
|
}
|
|
55
55
|
export declare namespace ActivityActionsComponent {
|
|
56
|
+
const Layout: {
|
|
57
|
+
INLINE: "inline";
|
|
58
|
+
BLOCK: "block";
|
|
59
|
+
};
|
|
60
|
+
type Layout = Enum<typeof Layout>;
|
|
61
|
+
const Align: {
|
|
62
|
+
START: "start";
|
|
63
|
+
END: "end";
|
|
64
|
+
STRETCH: "stretch";
|
|
65
|
+
};
|
|
66
|
+
type Align = Enum<typeof Align>;
|
|
56
67
|
interface Style {
|
|
57
68
|
confirm: CommandFace;
|
|
58
69
|
cancel: CommandFace;
|
package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class AbstractActivityTriggerComponent<D = any, R = any, E = any>
|
|
|
14
14
|
faceModel: ValueModel<CommandFace>;
|
|
15
15
|
alignFace: HorizontalAlignment;
|
|
16
16
|
readonly startActivityCommand: Command<unknown>;
|
|
17
|
-
interactionContext: InteractionContext;
|
|
17
|
+
get interactionContext(): InteractionContext;
|
|
18
18
|
confirmEvent: EventEmitter<R>;
|
|
19
19
|
cancelEvent: EventEmitter<E>;
|
|
20
20
|
constructor();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InteractionContext } from '../../../interaction-context';
|
|
2
2
|
import { AbstractActivityTriggerComponent } from '../abstract-activity-trigger.component';
|
|
3
3
|
export declare class InlineActivityTriggerComponent<D = any, R = any, E = any> extends AbstractActivityTriggerComponent<D, R, E> {
|
|
4
|
-
|
|
4
|
+
_interactionContext: InteractionContext;
|
|
5
|
+
get interactionContext(): InteractionContext;
|
|
5
6
|
constructor();
|
|
6
7
|
}
|
|
@@ -2,6 +2,7 @@ import { InteractionContext } from '../../../interaction-context';
|
|
|
2
2
|
import { InteractionService } from '../../../services/interaction.service';
|
|
3
3
|
import { AbstractActivityTriggerComponent } from '../abstract-activity-trigger.component';
|
|
4
4
|
export declare class ModalActivityTriggerComponent<D = any, R = any, E = any> extends AbstractActivityTriggerComponent<D, R, E> {
|
|
5
|
-
|
|
5
|
+
_interactionContext: InteractionContext;
|
|
6
|
+
get interactionContext(): InteractionContext;
|
|
6
7
|
constructor(interactionService: InteractionService);
|
|
7
8
|
}
|
|
@@ -3,6 +3,7 @@ import { AbstractActivityTriggerComponent } from '../abstract-activity-trigger.c
|
|
|
3
3
|
export declare class PopupActivityTriggerComponent<D = any, R = any, E = any> extends AbstractActivityTriggerComponent<D, R, E> {
|
|
4
4
|
anchorX: 'start' | 'end';
|
|
5
5
|
anchorY: 'top' | 'bottom';
|
|
6
|
-
|
|
6
|
+
_interactionContext: InteractionContext;
|
|
7
7
|
constructor();
|
|
8
|
+
get interactionContext(): InteractionContext;
|
|
8
9
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ListModelChain } from '@coolon/pectin';
|
|
3
|
+
import { Enum } from 'typescript-string-enums';
|
|
4
|
+
import { CommandFace } from '../../../components/commands/command-face';
|
|
5
|
+
import { InteractionContext } from '../../interaction-context';
|
|
6
|
+
import { InteractionService } from '../../services/interaction.service';
|
|
7
|
+
import { AbstractActivityTriggerComponent } from '../activity-triggers/abstract-activity-trigger.component';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare class AddCardActivityComponent extends AbstractActivityTriggerComponent implements OnInit {
|
|
12
|
+
private modalInteractionContext;
|
|
13
|
+
inlineInteractionContext: InteractionContext;
|
|
14
|
+
interactionStyle: AddCardActivityComponent.InteractionType;
|
|
15
|
+
renderAs: AddCardActivityComponent.RenderAs;
|
|
16
|
+
notCard: boolean;
|
|
17
|
+
readonly faceList: ListModelChain<CommandFace>;
|
|
18
|
+
get renderAsClass(): string;
|
|
19
|
+
get activityTypeClass(): string;
|
|
20
|
+
isRenderAsCard(): boolean;
|
|
21
|
+
isRenderAsButton(): boolean;
|
|
22
|
+
constructor(interactionService: InteractionService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
get interactionContext(): InteractionContext;
|
|
25
|
+
isModal(): boolean;
|
|
26
|
+
isInline(): boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace AddCardActivityComponent {
|
|
29
|
+
const InteractionType: {
|
|
30
|
+
MODAL: "modal";
|
|
31
|
+
INLINE: "inline";
|
|
32
|
+
};
|
|
33
|
+
type InteractionType = Enum<typeof InteractionType>;
|
|
34
|
+
const RenderAs: {
|
|
35
|
+
CARD: "card";
|
|
36
|
+
BUTTON: "button";
|
|
37
|
+
};
|
|
38
|
+
type RenderAs = Enum<typeof RenderAs>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GarbageCollector, ListModel, MutableValueModel, Validator, ValueModel } from '@coolon/pectin';
|
|
2
|
+
import { EditContext } from '../edit-context';
|
|
3
|
+
export declare class InlineEditorModel<T> extends GarbageCollector {
|
|
4
|
+
readonly valueModel: ValueModel<T>;
|
|
5
|
+
readonly saveCallback: InlineEditorModel.SaveCallback<T>;
|
|
6
|
+
readonly editing: MutableValueModel<boolean>;
|
|
7
|
+
private readonly _validators;
|
|
8
|
+
private _editingEnabled;
|
|
9
|
+
constructor(valueModel: ValueModel<T>, saveCallback: InlineEditorModel.SaveCallback<T>);
|
|
10
|
+
get editingEnabled(): ValueModel<boolean>;
|
|
11
|
+
disableWhile(condition: ValueModel<boolean>): this;
|
|
12
|
+
enableWhile(condition: ValueModel<boolean>): this;
|
|
13
|
+
get validators(): ListModel<Validator<T>>;
|
|
14
|
+
validateUsing(validator: Validator<T>): this;
|
|
15
|
+
isEditing(): boolean;
|
|
16
|
+
cancelEdit(): void;
|
|
17
|
+
startEditing(): void;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace InlineEditorModel {
|
|
20
|
+
type SaveCallback<T> = (value: T, context: EditContext<T>) => void | Promise<void>;
|
|
21
|
+
function create<T>(valueModel: ValueModel<T>, options: {
|
|
22
|
+
save: SaveCallback<T>;
|
|
23
|
+
}): InlineEditorModel<T>;
|
|
24
|
+
}
|
package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BooleanValueModelChain, Command, DelegatingValueModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
3
|
+
import { CommandFace } from '../../../../components/commands/command-face';
|
|
4
|
+
import { DisposableComponent } from '../../../../components/disposable-component';
|
|
5
|
+
import { InteractionService } from '../../../services/interaction.service';
|
|
6
|
+
import { InPlaceInteractionContextComponent } from '../../inplace-interaction-context/in-place-interaction-context.component';
|
|
7
|
+
import { InlineEditorModel } from './inline-editor-model';
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* const source: ValueModel<string> = ...;
|
|
11
|
+
* const model = InlineEditorModel.create(source, {
|
|
12
|
+
* save(updated:string, context: EditContext) => {
|
|
13
|
+
* try {
|
|
14
|
+
* try and save the thing...
|
|
15
|
+
* } catch(error) {
|
|
16
|
+
* context.injectError(error)
|
|
17
|
+
* }
|
|
18
|
+
* }).validateUsing(Validator.present("We'll need a value");
|
|
19
|
+
*
|
|
20
|
+
* # in the view
|
|
21
|
+
* <aup-inline-string-editor
|
|
22
|
+
* label="My field"
|
|
23
|
+
* placeHolder="I'm ready for a string..."
|
|
24
|
+
* [editorModel]="model"></aup-inline-string-editor>
|
|
25
|
+
*/
|
|
26
|
+
export declare class InlineStringEditorComponent extends DisposableComponent implements OnInit {
|
|
27
|
+
editorModel: InlineEditorModel<string>;
|
|
28
|
+
facesModel: ValueModel<InlineStringEditorComponent.Faces>;
|
|
29
|
+
faces: InlineStringEditorComponent.Faces;
|
|
30
|
+
interactionContext: InPlaceInteractionContextComponent<any, any, any>;
|
|
31
|
+
label: string;
|
|
32
|
+
placeHolder: string;
|
|
33
|
+
placeHolderModel: ValueModel<string>;
|
|
34
|
+
readonly description: ValueModelChain<string>;
|
|
35
|
+
empty: BooleanValueModelChain;
|
|
36
|
+
readonly editCommand: Command<void>;
|
|
37
|
+
displayValue: ValueModelChain<string>;
|
|
38
|
+
readonly editFaceModel: ValueModelChain<CommandFace>;
|
|
39
|
+
readonly saveFace: ValueModelChain<CommandFace>;
|
|
40
|
+
readonly cancelFace: ValueModelChain<CommandFace>;
|
|
41
|
+
readonly editingEnabled: DelegatingValueModel<boolean>;
|
|
42
|
+
constructor(interactionService: InteractionService);
|
|
43
|
+
ngOnInit(): void;
|
|
44
|
+
private createInputActivityData;
|
|
45
|
+
cancelEdit(): void;
|
|
46
|
+
startEdit(): void;
|
|
47
|
+
private isEditing;
|
|
48
|
+
isEmpty(): boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace InlineStringEditorComponent {
|
|
51
|
+
interface Faces {
|
|
52
|
+
edit?: CommandFace;
|
|
53
|
+
save?: CommandFace;
|
|
54
|
+
cancel?: CommandFace;
|
|
55
|
+
}
|
|
56
|
+
const DEFAULT_FACES: Faces;
|
|
57
|
+
}
|
|
@@ -29,6 +29,7 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
|
|
|
29
29
|
*/
|
|
30
30
|
animateFirstActivity: boolean;
|
|
31
31
|
get animationDuration(): string;
|
|
32
|
+
get active(): boolean;
|
|
32
33
|
constructor(interactionService: InteractionService, tabConfig: MatTabsConfig);
|
|
33
34
|
ngAfterViewInit(): void;
|
|
34
35
|
initialise(id: string, api: InteractionService.Api): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Command, Form, Validator } from '@coolon/pectin';
|
|
2
|
+
import { Enum } from 'typescript-string-enums';
|
|
3
|
+
import { Activity } from '../../activity';
|
|
4
|
+
import { ActivityActionsComponent } from '../activity-actions/activity-actions.component';
|
|
5
|
+
export declare class InputActivity<T, D extends InputActivity.Data<T> = InputActivity.Data<T>> extends Activity<D, T> {
|
|
6
|
+
readonly data: D;
|
|
7
|
+
readonly confirmCommand: Command<void>;
|
|
8
|
+
readonly cancelCommand: Command<void>;
|
|
9
|
+
readonly valueModel: Form.ValueModelBase<T>;
|
|
10
|
+
class: string;
|
|
11
|
+
get layout(): InputActivity.Layout;
|
|
12
|
+
constructor(data: D);
|
|
13
|
+
onActivityReady(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace InputActivity {
|
|
16
|
+
const Layout: {
|
|
17
|
+
INLINE: "inline";
|
|
18
|
+
BLOCK: "block";
|
|
19
|
+
};
|
|
20
|
+
type Layout = Enum<typeof Layout>;
|
|
21
|
+
interface Context {
|
|
22
|
+
injectError(error: string): any;
|
|
23
|
+
}
|
|
24
|
+
interface Data<T> {
|
|
25
|
+
initialValue: T;
|
|
26
|
+
label?: string;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
layout?: InputActivity.Layout;
|
|
29
|
+
buttonStyle?: ActivityActionsComponent.Style;
|
|
30
|
+
validators?: Validator<T>[];
|
|
31
|
+
save?(valueModel: T, interactionContext?: Context): void | Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare class SelectInputActivity<T> extends
|
|
1
|
+
import { ListModel } from '@coolon/pectin';
|
|
2
|
+
import { InputActivity } from './input-activity';
|
|
3
|
+
export declare class SelectInputActivity<T> extends InputActivity<T, SelectInputActivity.Data<T>> {
|
|
4
4
|
readonly defaultOptionLabelFormat: (option: T) => T | T[keyof T];
|
|
5
5
|
get optionLabelFormat(): (option: T) => any;
|
|
6
6
|
get options(): T[];
|
|
7
7
|
}
|
|
8
|
+
export declare namespace SelectInputActivity {
|
|
9
|
+
interface Data<T> extends InputActivity.Data<T> {
|
|
10
|
+
options?: T[];
|
|
11
|
+
optionsModel?: ListModel<T>;
|
|
12
|
+
optionLabel?: keyof T;
|
|
13
|
+
optionLabelFormat?: (option: T) => any;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class StringInputActivity extends
|
|
1
|
+
import { InputActivity } from './input-activity';
|
|
2
|
+
export declare class StringInputActivity extends InputActivity<string> {
|
|
3
3
|
}
|
|
@@ -19,14 +19,16 @@ export * from "./components/activity-triggers/abstract-activity-trigger.componen
|
|
|
19
19
|
export * from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
|
|
20
20
|
export * from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
|
|
21
21
|
export * from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
|
|
22
|
+
export * from "./components/add-card-activity/add-card-activity.component";
|
|
22
23
|
export * from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
23
24
|
export * from "./components/alert-dialog/alert-dialog.component";
|
|
24
25
|
export * from "./components/confirm-then-dialog/confirm-then-dialog.component";
|
|
25
26
|
export * from "./components/confirmation-dialog/confirmation-dialog.component";
|
|
27
|
+
export * from "./components/editors/edit-context";
|
|
28
|
+
export * from "./components/editors/inline-string-editor/inline-editor-model";
|
|
29
|
+
export * from "./components/editors/inline-string-editor/inline-string-editor.component";
|
|
26
30
|
export * from "./components/inplace-interaction-context/in-place-interaction-context.component";
|
|
27
|
-
export * from "./components/input-activities/
|
|
28
|
-
export * from "./components/input-activities/input-activity-data";
|
|
29
|
-
export * from "./components/input-activities/select-input-activity-data";
|
|
31
|
+
export * from "./components/input-activities/input-activity";
|
|
30
32
|
export * from "./components/input-activities/select-input-activity";
|
|
31
33
|
export * from "./components/input-activities/string-input-activity";
|
|
32
34
|
export * from "./components/popup-interaction-context/popup-interaction-context.component";
|
|
@@ -22,7 +22,12 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
22
22
|
initialiseVisit(visit: Visit, notifyVisitChanged: (current: Visit, previous: Visit) => void): void;
|
|
23
23
|
updateVisit(visit: Visit): void;
|
|
24
24
|
isInitialised(): boolean;
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
27
|
+
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
28
|
+
* method will return ture to nofiy the the visit has changed.
|
|
29
|
+
*/
|
|
30
|
+
private installAndInitialiseBinding;
|
|
26
31
|
get placeDefinition(): PlaceDefinition;
|
|
27
32
|
get active(): ValueModel<boolean>;
|
|
28
33
|
/**
|
package/package.json
CHANGED
|
@@ -8,11 +8,11 @@ import { I18n } from '<%=pathToRoot%>/i18n';
|
|
|
8
8
|
templateUrl: './<%=dasherize(name)%>.component.html',
|
|
9
9
|
styleUrls: ['./<%=dasherize(name)%>.component.scss'],
|
|
10
10
|
})
|
|
11
|
-
export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))
|
|
11
|
+
export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>Component.Data, void> implements OnInit {
|
|
12
12
|
|
|
13
13
|
readonly i18n = <%=i18nNamespace%>;
|
|
14
14
|
|
|
15
|
-
constructor(@Inject(ACTIVITY_DATA) private readonly data: <%=capitalize(camelize(name))
|
|
15
|
+
constructor(@Inject(ACTIVITY_DATA) private readonly data: <%=capitalize(camelize(name))%>Component.Data) {
|
|
16
16
|
super();
|
|
17
17
|
const {chain} = Dsl.disposeWith(this);
|
|
18
18
|
|
|
@@ -22,6 +22,8 @@ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capita
|
|
|
22
22
|
this.cancelCommand = Command.create(() => {
|
|
23
23
|
this.cancel();
|
|
24
24
|
});
|
|
25
|
+
|
|
26
|
+
this.busyWhile(this.confirmCommand.busy);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
ngOnInit() {
|
|
@@ -29,7 +31,7 @@ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capita
|
|
|
29
31
|
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
export namespace <%=capitalize(camelize(name))%> {
|
|
34
|
+
export namespace <%=capitalize(camelize(name))%>Component {
|
|
33
35
|
export interface Data {
|
|
34
36
|
}
|
|
35
37
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
import { PageElement } from '../page-element';
|
|
3
|
-
import { Types } from './types';
|
|
4
|
-
export declare class AupPopupMenu extends PageElement {
|
|
5
|
-
constructor(parentElementAccessor: PageElement | (() => Cypress.Chainable<JQuery>), face: Types.CommandFace);
|
|
6
|
-
static create(parent: PageElement, face: Types.CommandFace): AupPopupMenu;
|
|
7
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
import { Constructable } from '@coolon/typescript-utilities';
|
|
3
|
-
import { PageElement } from '../page-element';
|
|
4
|
-
export declare function ButtonMixin<T, BC extends Constructable<PageElement>>(Base: BC): {
|
|
5
|
-
new (...args: any[]): {
|
|
6
|
-
click(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
7
|
-
shouldBeDisabled(): void;
|
|
8
|
-
readonly elementAccessStrategy: PageElement.Accessor;
|
|
9
|
-
readonly parentElementAccessor: () => Cypress.Chainable<JQuery<HTMLElement>>;
|
|
10
|
-
element(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
11
|
-
getParentElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
12
|
-
find(selector: string): PageElement;
|
|
13
|
-
readonly should: any;
|
|
14
|
-
getShoulder(element: Cypress.Chainable<JQuery<HTMLElement>>): any;
|
|
15
|
-
getShouldElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
16
|
-
shouldBeVisible(): void;
|
|
17
|
-
shouldNotBeVisible(): void;
|
|
18
|
-
};
|
|
19
|
-
} & BC;
|