@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
|
@@ -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,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Command } from '@coolon/pectin';
|
|
3
|
-
import { CommandFace } from '../commands/command-face';
|
|
4
|
-
import { DisposableComponent } from '../disposable-component';
|
|
1
|
+
import { AbstractCardContainerComponent } from '../abstract-card-container.component';
|
|
5
2
|
/**
|
|
6
3
|
* @example
|
|
7
4
|
* // basic usage
|
|
@@ -19,6 +16,13 @@ import { DisposableComponent } from '../disposable-component';
|
|
|
19
16
|
* <my-card *ngFor="..."></my-card>
|
|
20
17
|
* </aup-card-container>
|
|
21
18
|
*
|
|
19
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
20
|
+
* // the activity inside teh card
|
|
21
|
+
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
22
|
+
* <my-card *ngFor="..."></my-card>
|
|
23
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
24
|
+
* </aup-card-container>
|
|
25
|
+
*
|
|
22
26
|
* // adds an add card component using the specified template. The template
|
|
23
27
|
* // will fill it's container in the grid.
|
|
24
28
|
* <aup-card-container>
|
|
@@ -56,10 +60,5 @@ import { DisposableComponent } from '../disposable-component';
|
|
|
56
60
|
* --card-background: var(--card-background, #fcfcfb);
|
|
57
61
|
* }
|
|
58
62
|
*/
|
|
59
|
-
export declare class CardContainerComponent extends
|
|
60
|
-
addCardCommand: Command<any>;
|
|
61
|
-
addCardFace: CommandFace;
|
|
62
|
-
addCardTemplate: TemplateRef<any>;
|
|
63
|
-
constructor();
|
|
64
|
-
ngOnInit(): void;
|
|
63
|
+
export declare class CardContainerComponent extends AbstractCardContainerComponent {
|
|
65
64
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { AbstractCardContainerComponent } from '../abstract-card-container.component';
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* // basic usage
|
|
5
|
+
* <aup-card-stack>
|
|
6
|
+
* <my-card *ngFor="..."></my-card>
|
|
7
|
+
* </aup-card-stack>
|
|
8
|
+
*
|
|
9
|
+
* // adds an add button with a the '+' icon to the end of the card list.
|
|
10
|
+
* <aup-card-stack [addCardCommand]="addCard">
|
|
11
|
+
* <my-card *ngFor="..."></my-card>
|
|
12
|
+
* </aup-card-stack>
|
|
13
|
+
*
|
|
14
|
+
* // adds an add button with the specified face
|
|
15
|
+
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
16
|
+
* <my-card *ngFor="..."></my-card>
|
|
17
|
+
* </aup-card-stack>
|
|
18
|
+
*
|
|
19
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
20
|
+
* // the activity inside teh card
|
|
21
|
+
* <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
22
|
+
* <my-card *ngFor="..."></my-card>
|
|
23
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
24
|
+
* </aup-card-stack>
|
|
25
|
+
*
|
|
26
|
+
* // adds an add card component using the specified template. The template
|
|
27
|
+
* // will fill it's container in the grid.
|
|
28
|
+
* <aup-card-stack>
|
|
29
|
+
* <my-card *ngFor="..."></my-card>
|
|
30
|
+
* <ng-template #addCardTemplate>
|
|
31
|
+
* <div>This is a new card template, it will the the size of the other cards.</div>
|
|
32
|
+
* </ng-template>
|
|
33
|
+
* </aup-card-stack>
|
|
34
|
+
*
|
|
35
|
+
* // sing the default new card styles for your template
|
|
36
|
+
* @import "../../../../assets/styles";
|
|
37
|
+
* .my-new-card {
|
|
38
|
+
* @include aup-card-stack-new-card-style();
|
|
39
|
+
* // OR
|
|
40
|
+
* @include aup-card-stack-new-card-style(
|
|
41
|
+
* $color: rgba(0,0,0,0.54),
|
|
42
|
+
* $background-color: rgba(255,255,255,0.8),
|
|
43
|
+
* $hover-color: $color,
|
|
44
|
+
* $background-hover-color: white
|
|
45
|
+
* )
|
|
46
|
+
* }
|
|
47
|
+
* <aup-card-stack>
|
|
48
|
+
* <my-card *ngFor="..."></my-card>
|
|
49
|
+
* <ng-template #addCardTemplate>
|
|
50
|
+
* <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
|
|
51
|
+
* </ng-template>
|
|
52
|
+
* </aup-card-stack>
|
|
53
|
+
*
|
|
54
|
+
* // CSS Vars
|
|
55
|
+
* aup-card-stack {
|
|
56
|
+
* --card-gap: var(--card-gap, 16px);
|
|
57
|
+
* --card-height: var(--card-height, auto);
|
|
58
|
+
* --card-min-height: var(--card-min-height, auto);
|
|
59
|
+
* --card-background: var(--card-background, #fcfcfb);
|
|
60
|
+
* }
|
|
61
|
+
*/
|
|
62
|
+
export declare class CardStackComponent extends AbstractCardContainerComponent {
|
|
63
|
+
}
|
|
@@ -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,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,38 @@
|
|
|
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
|
+
readonly faceList: ListModelChain<CommandFace>;
|
|
17
|
+
get renderAsClass(): string;
|
|
18
|
+
get activityTypeClass(): string;
|
|
19
|
+
isRenderAsCard(): boolean;
|
|
20
|
+
isRenderAsButton(): boolean;
|
|
21
|
+
constructor(interactionService: InteractionService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
get interactionContext(): InteractionContext;
|
|
24
|
+
isModal(): boolean;
|
|
25
|
+
isInline(): boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace AddCardActivityComponent {
|
|
28
|
+
const InteractionType: {
|
|
29
|
+
MODAL: "modal";
|
|
30
|
+
INLINE: "inline";
|
|
31
|
+
};
|
|
32
|
+
type InteractionType = Enum<typeof InteractionType>;
|
|
33
|
+
const RenderAs: {
|
|
34
|
+
CARD: "card";
|
|
35
|
+
BUTTON: "button";
|
|
36
|
+
};
|
|
37
|
+
type RenderAs = Enum<typeof RenderAs>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ListModel, MutableValueModel, Validator, ValueModel } from '@coolon/pectin';
|
|
2
|
+
import { EditContext } from '../edit-context';
|
|
3
|
+
export declare class InlineEditorModel<T> {
|
|
4
|
+
readonly valueModel: ValueModel<T>;
|
|
5
|
+
readonly saveCallback: InlineEditorModel.SaveCallback<T>;
|
|
6
|
+
readonly editing: MutableValueModel<boolean>;
|
|
7
|
+
private readonly _validators;
|
|
8
|
+
constructor(valueModel: ValueModel<T>, saveCallback: InlineEditorModel.SaveCallback<T>);
|
|
9
|
+
get validators(): ListModel<Validator<T>>;
|
|
10
|
+
validateUsing(validator: Validator<T>): this;
|
|
11
|
+
isEditing(): boolean;
|
|
12
|
+
cancelEdit(): void;
|
|
13
|
+
startEditing(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace InlineEditorModel {
|
|
16
|
+
type SaveCallback<T> = (value: T, context: EditContext<T>) => void | Promise<void>;
|
|
17
|
+
function create<T>(valueModel: ValueModel<T>, options: {
|
|
18
|
+
save: SaveCallback<T>;
|
|
19
|
+
}): InlineEditorModel<T>;
|
|
20
|
+
}
|
package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BooleanValueModelChain, Command, 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
|
+
constructor(interactionService: InteractionService);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
private createInputActivityData;
|
|
44
|
+
cancelEdit(): void;
|
|
45
|
+
startEdit(): void;
|
|
46
|
+
private isEditing;
|
|
47
|
+
isEmpty(): boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace InlineStringEditorComponent {
|
|
50
|
+
interface Faces {
|
|
51
|
+
edit?: CommandFace;
|
|
52
|
+
save?: CommandFace;
|
|
53
|
+
cancel?: CommandFace;
|
|
54
|
+
}
|
|
55
|
+
const DEFAULT_FACES: Faces;
|
|
56
|
+
}
|
|
@@ -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";
|
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;
|
package/cypress/section.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
import { Constructable } from '@coolon/pectin';
|
|
3
|
-
import { AupCommand } from './components/aup-command';
|
|
4
|
-
import { AupInput } from './components/aup-input';
|
|
5
|
-
import { AupNavigation } from './components/aup-navigation';
|
|
6
|
-
import { AupTable } from './components/aup-table';
|
|
7
|
-
import { Button } from './components/button';
|
|
8
|
-
import { Types } from './components/types';
|
|
9
|
-
import { PageElement } from './page-element';
|
|
10
|
-
export interface Section {
|
|
11
|
-
section<T extends object>(selector: string, section: (section: Section) => T): T & PageElement;
|
|
12
|
-
find(selector: string): PageElement;
|
|
13
|
-
contains(text: string): PageElement;
|
|
14
|
-
button(text: string): Button;
|
|
15
|
-
aupStringInput(selector?: string): AupInput<string>;
|
|
16
|
-
aupTextInput(selector?: string): AupInput<string>;
|
|
17
|
-
aupPasswordInput(selector?: string): AupInput<string>;
|
|
18
|
-
aupNumberInput(selector?: string): AupInput<number>;
|
|
19
|
-
aupCommand(face: Types.CommandFace): AupCommand;
|
|
20
|
-
aupTabbedNavigation<T extends object>(): AupNavigation;
|
|
21
|
-
aupSideNavigation<T extends object>(): AupNavigation;
|
|
22
|
-
aupTable(selector?: string): AupTable;
|
|
23
|
-
}
|
|
24
|
-
export declare namespace Section {
|
|
25
|
-
function Mixin<BC extends Constructable<PageElement>>(Base: BC): {
|
|
26
|
-
new (...args: any[]): {
|
|
27
|
-
section<T extends object>(selector: string, section: (section: Section) => T): T & PageElement;
|
|
28
|
-
find(selector: string): PageElement;
|
|
29
|
-
contains(text: string): PageElement;
|
|
30
|
-
button(text: string): Button;
|
|
31
|
-
aupStringInput(selector?: string): AupInput<string>;
|
|
32
|
-
aupTextInput(selector?: string): AupInput<string>;
|
|
33
|
-
aupPasswordInput(selector?: string): AupInput<string>;
|
|
34
|
-
aupNumberInput(selector?: string): AupInput<number>;
|
|
35
|
-
aupCommand(face: Types.CommandFace): AupCommand;
|
|
36
|
-
aupTabbedNavigation<T_2 extends object>(): AupNavigation;
|
|
37
|
-
aupSideNavigation<T_3 extends object>(): AupNavigation;
|
|
38
|
-
aupTable(selector?: string): AupTable;
|
|
39
|
-
readonly elementAccessStrategy: PageElement.Accessor;
|
|
40
|
-
readonly parentElementAccessor: () => Cypress.Chainable<JQuery<HTMLElement>>;
|
|
41
|
-
element(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
42
|
-
getParentElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
43
|
-
click(text?: string): void;
|
|
44
|
-
readonly should: any;
|
|
45
|
-
getShoulder(element: Cypress.Chainable<JQuery<HTMLElement>>): any;
|
|
46
|
-
getShouldElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
47
|
-
shouldBeVisible(): void;
|
|
48
|
-
shouldNotBeVisible(): void;
|
|
49
|
-
};
|
|
50
|
-
} & BC;
|
|
51
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aup-more-menu.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/cypress/src/components/aup-more-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,OAAO,WAAY,SAAQ,WAAW;IAE1C,MAAM,CAAC,MAAM,CAAC,MAAmB;QAC/B,OAAO,IAAI,WAAW,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAClD,CAAC;CACF","sourcesContent":["import { PageElement } from '../page-element';\n\nexport class AupMoreMenu extends PageElement {\n\n static create(parent: PageElement) {\n return new AupMoreMenu(parent, 'aup-more-menu');\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"AupMoreMenu":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../page-element","name":"PageElement","line":2,"character":33},"statics":{"create":{"__symbolic":"function","parameters":["parent"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"AupMoreMenu"},"arguments":[{"__symbolic":"reference","name":"parent"},"aup-more-menu"]}}}}}}]
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PageElement } from '../page-element';
|
|
2
|
-
import { AupCommandFace } from './aup-command-face';
|
|
3
|
-
export class AupPopupMenu extends PageElement {
|
|
4
|
-
constructor(parentElementAccessor, face) {
|
|
5
|
-
const accessor = AupCommandFace.createAccessor(face);
|
|
6
|
-
super(parentElementAccessor, {
|
|
7
|
-
findIn(parent) {
|
|
8
|
-
return accessor.findIn(parent).closest('button');
|
|
9
|
-
},
|
|
10
|
-
shouldNotExist(parent) {
|
|
11
|
-
accessor.shouldNotExist(parent);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
static create(parent, face) {
|
|
16
|
-
return new AupPopupMenu(parent, face);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=aup-popup-menu.js.map
|