@coolon/angular-ui-powerups 12.4.0-alpha.8 → 12.4.0-alpha.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/activities/activities.scss +77 -0
- package/assets/activities/input-activities.scss +36 -0
- package/assets/cards.scss +17 -0
- package/assets/empty-state.scss +11 -0
- package/assets/form.scss +10 -2
- package/assets/forms/mixins.scss +6 -0
- package/assets/interaction/editor/inline-string-editor.scss +54 -0
- package/assets/interaction.scss +10 -7
- package/assets/markdown.scss +10 -0
- package/assets/mixins.scss +5 -7
- package/assets/pills.scss +45 -0
- package/assets/styles.scss +11 -15
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +741 -336
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +1435 -448
- 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 +1 -2
- 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 +24 -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 -34
- 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 +2 -2
- package/esm2015/cypress/components/aup-empty-state.js.map +1 -1
- package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -1
- 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 +24 -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/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.js +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +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 +123 -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/commands/command/command.component.js +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js +5 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +43 -25
- 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 +8 -4
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.js +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.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/forms/autocomplete-input/autocomplete-input.component.js +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.js +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +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/loading-container/loading-container.component.js +45 -0
- package/esm2015/lib/components/loading-container/loading-container.component.js.map +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/noop/noop.component.js +1 -1
- package/esm2015/lib/components/noop/noop.component.metadata.json +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.js +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
- package/esm2015/lib/components/section-header/section-header.component.js +12 -5
- package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
- package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.js +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.js +34 -20
- package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/edit-session.js.map +1 -0
- package/esm2015/lib/components/tables/{table/edit-session.metadata.json → edit-session.metadata.json} +1 -1
- package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -1
- package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.js +35 -10
- package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js +19 -12
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js +0 -2
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/table.component.js +14 -13
- package/esm2015/lib/components/tables/table/table.component.js.map +1 -1
- package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/text-search-predicate.js +2 -0
- package/esm2015/lib/components/tables/table/text-search-predicate.js.map +1 -0
- package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +1 -0
- 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-inheritance-icon/tree-inheritance-icon.component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +21 -13
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js +3 -2
- 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/text/markdown/markdown.component.js +76 -0
- package/esm2015/lib/components/text/markdown/markdown.component.js.map +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/track-by.js +12 -0
- package/esm2015/lib/components/track-by.js.map +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
- package/esm2015/lib/directives/command.directive.js +1 -1
- package/esm2015/lib/directives/command.directive.js.map +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.js +7 -0
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.js +2 -1
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/alert.js +17 -1
- package/esm2015/lib/interaction/alert.js.map +1 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +23 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.js +52 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +1 -0
- 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-container/activity-container.component.js +3 -3
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.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 +5 -2
- 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 +5 -2
- 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 +5 -2
- 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/add-item-interaction-context/add-item-interaction-context.component.js +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +8 -14
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +8 -31
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +30 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +7 -26
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- 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 +161 -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 +10 -3
- 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 +95 -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 +5 -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 +6 -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/components/popup-interaction-context/popup-interaction-context.component.js +2 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/exports.js +8 -4
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.js +29 -9
- 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/interaction/services/interaction.service.js +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js +1 -1
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +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 +11 -14
- 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/visit.js +5 -1
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/esm2015/lib/services/exports.js +2 -0
- package/esm2015/lib/services/exports.js.map +1 -1
- package/esm2015/lib/services/exports.metadata.json +1 -1
- package/esm2015/lib/services/markdown/markdown.service.js +25 -0
- package/esm2015/lib/services/markdown/markdown.service.js.map +1 -0
- package/esm2015/lib/services/markdown/markdown.service.metadata.json +1 -0
- package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +1 -0
- package/esm2015/lib/services/markdown/pill-plugin.js +38 -0
- package/esm2015/lib/services/markdown/pill-plugin.js.map +1 -0
- package/esm2015/lib/services/markdown/pill-plugin.metadata.json +1 -0
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +546 -244
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +1198 -353
- 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 +30 -9
- package/lib/components/cards/card-stack/card-stack.component.d.ts +65 -0
- package/lib/components/commands/command-face/command-face.component.d.ts +1 -0
- package/lib/components/exports.d.ts +8 -4
- package/lib/components/labelled-value/labelled-value.component.d.ts +7 -0
- package/lib/components/loading-container/loading-container.component.d.ts +11 -0
- package/lib/components/section-header/section-header.component.d.ts +5 -2
- package/lib/components/tables/abstract-table-model.d.ts +10 -7
- package/lib/components/tables/{table/edit-session.d.ts → edit-session.d.ts} +3 -3
- package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
- package/lib/components/tables/table/cell-renderer.d.ts +2 -0
- package/lib/components/tables/table/column-model.d.ts +14 -5
- package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +2 -1
- package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +4 -2
- package/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +2 -3
- package/lib/components/tables/table/table.component.d.ts +13 -12
- package/lib/components/tables/table/text-search-predicate.d.ts +1 -0
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
- package/lib/components/text/markdown/markdown.component.d.ts +28 -0
- package/lib/components/track-by.d.ts +9 -0
- package/lib/interaction/abstract-interaction-context.d.ts +1 -0
- package/lib/interaction/alert.d.ts +7 -1
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +7 -0
- package/lib/interaction/components/abstract-dialog.component.d.ts +17 -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/alert-dialog/alert-dialog.component.d.ts +2 -7
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +2 -10
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +12 -0
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +2 -9
- 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 +2 -0
- package/lib/interaction/components/input-activities/input-activity.d.ts +41 -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 +6 -2
- package/lib/interaction/exports.d.ts +8 -4
- package/lib/interaction/interaction-context.d.ts +1 -0
- package/lib/place/place-component.d.ts +6 -1
- package/lib/place/place-router.d.ts +2 -2
- package/lib/services/exports.d.ts +2 -0
- package/lib/services/markdown/markdown.service.d.ts +6 -0
- package/lib/services/markdown/pill-plugin.d.ts +15 -0
- package/package.json +17 -16
- package/schematics/activity/index.js +1 -1
- package/schematics/activity/index.js.map +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/schematics/aup-i18n/index.js +1 -1
- package/schematics/aup-i18n/index.js.map +1 -1
- package/schematics/component/index.js +1 -1
- package/schematics/component/index.js.map +1 -1
- package/schematics/component/templates/component/__name@dasherize__.component.ts.template +1 -1
- package/schematics/place-routes/place-class-scanner.js +3 -1
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/utils/build-context.d.ts +6 -3
- package/schematics/utils/build-context.js +3 -3
- package/schematics/utils/build-context.js.map +1 -1
- package/schematics/utils/workspace.d.ts +1 -0
- package/schematics/utils/workspace.js +11 -3
- package/schematics/utils/workspace.js.map +1 -1
- package/assets/activities.scss +0 -70
- 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 -55
- 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 -76
- 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/components/tables/table/edit-session.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.js +0 -2
- package/esm2015/lib/components/tables/tree-table/tree-node.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +0 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.js +0 -26
- package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +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/esm2015/lib/interaction/result.js +0 -4
- package/esm2015/lib/interaction/result.js.map +0 -1
- package/esm2015/lib/interaction/result.metadata.json +0 -1
- package/lib/components/tables/tree-table/tree-node.d.ts +0 -3
- package/lib/components/tables/tree-table/visitable.class.d.ts +0 -22
- 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
- package/lib/interaction/result.d.ts +0 -8
- /package/esm2015/lib/components/tables/{table/edit-session.js → edit-session.js} +0 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export interface Alert {
|
|
2
2
|
title?(): string;
|
|
3
|
-
|
|
3
|
+
color?(): 'primary' | 'accent' | 'warn';
|
|
4
|
+
content(): string | string[];
|
|
4
5
|
ok(): string;
|
|
5
6
|
}
|
|
7
|
+
export declare namespace Alert {
|
|
8
|
+
function getContent(alert: Alert): string[];
|
|
9
|
+
function getTitle(alert: Alert): string;
|
|
10
|
+
function getColor(alert: Alert): 'primary' | 'accent' | 'warn';
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CommandFace } from '../../components/commands/command-face';
|
|
2
|
+
import { Confirm } from '../confirm';
|
|
3
|
+
import { AbstractDialogComponent } from './abstract-dialog.component';
|
|
4
|
+
export declare class AbstractConfirmDialogComponent<D, R, E = any> extends AbstractDialogComponent<D, R, E> {
|
|
5
|
+
readonly cancelFace: CommandFace;
|
|
6
|
+
constructor(config: Confirm);
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { CommandFace } from '../../components/commands/command-face';
|
|
3
|
+
import { Activity } from '../activity';
|
|
4
|
+
import { Alert } from '../alert';
|
|
5
|
+
import { Confirm } from '../confirm';
|
|
6
|
+
export declare const ALERT_CONFIG: InjectionToken<any>;
|
|
7
|
+
export declare class AbstractDialogComponent<D, R, E = any> extends Activity<D, R, E> {
|
|
8
|
+
protected readonly config: Alert | Confirm;
|
|
9
|
+
readonly confirmFace: CommandFace;
|
|
10
|
+
readonly title: string;
|
|
11
|
+
readonly content: string[];
|
|
12
|
+
readonly color?: 'primary' | 'accent' | 'warn';
|
|
13
|
+
constructor(config: Alert | Confirm);
|
|
14
|
+
getConfig(): Alert | Confirm;
|
|
15
|
+
protected checkColor(rawColor: string): 'primary' | 'accent' | 'warn';
|
|
16
|
+
isDestructive(): boolean;
|
|
17
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { CommandFace } from '../../../components/commands/command-face';
|
|
3
|
-
import { Activity } from '../../activity';
|
|
4
1
|
import { Alert } from '../../alert';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
readonly confirmFace: CommandFace;
|
|
2
|
+
import { AbstractDialogComponent } from '../abstract-dialog.component';
|
|
3
|
+
export declare class AlertDialogComponent extends AbstractDialogComponent<Alert, void> {
|
|
8
4
|
constructor(alert: Alert);
|
|
9
|
-
ngOnInit(): void;
|
|
10
5
|
}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { Constructable } from '@coolon/pectin';
|
|
3
|
-
import { CommandFace } from '../../../components/commands/command-face';
|
|
4
2
|
import { Activity } from '../../activity';
|
|
5
3
|
import { Confirm } from '../../confirm';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly confirmFace: CommandFace;
|
|
9
|
-
readonly cancelFace: CommandFace;
|
|
4
|
+
import { AbstractConfirmDialogComponent } from '../abstract-confirm-dialog.component';
|
|
5
|
+
export declare class ConfirmThenDialogComponent<D, R, E> extends AbstractConfirmDialogComponent<ConfirmThenDialogComponent.Data<D, R, E>, R, E> {
|
|
10
6
|
constructor(config: ConfirmThenDialogComponent.Data<D, R, E>);
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
get confirm(): Confirm;
|
|
13
|
-
get titleColor(): string;
|
|
14
|
-
isDestructive(): boolean;
|
|
15
7
|
}
|
|
16
8
|
export declare namespace ConfirmThenDialogComponent {
|
|
17
9
|
interface Data<D, R, E> {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Confirm } from '../../confirm';
|
|
2
|
+
import { InteractionContext } from '../../interaction-context';
|
|
3
|
+
import { AbstractConfirmDialogComponent } from '../abstract-confirm-dialog.component';
|
|
4
|
+
export declare class ConfirmThenExecuteDialogComponent<R, E> extends AbstractConfirmDialogComponent<ConfirmThenExecuteDialogComponent.Data<R, E>, R, E> {
|
|
5
|
+
constructor(data: ConfirmThenExecuteDialogComponent.Data<R, E>);
|
|
6
|
+
}
|
|
7
|
+
export declare namespace ConfirmThenExecuteDialogComponent {
|
|
8
|
+
interface Data<R, E> {
|
|
9
|
+
confirm: Confirm;
|
|
10
|
+
operation: (interactionContext: InteractionContext) => R | Promise<R>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { CommandFace } from '../../../components/commands/command-face';
|
|
3
|
-
import { Activity } from '../../activity';
|
|
4
1
|
import { Confirm } from '../../confirm';
|
|
5
|
-
|
|
2
|
+
import { AbstractConfirmDialogComponent } from '../abstract-confirm-dialog.component';
|
|
3
|
+
export declare class ConfirmationDialogComponent extends AbstractConfirmDialogComponent<Confirm, void> {
|
|
6
4
|
readonly confirm: Confirm;
|
|
7
|
-
readonly confirmFace: CommandFace;
|
|
8
|
-
readonly cancelFace: CommandFace;
|
|
9
5
|
constructor(confirm: Confirm);
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
get titleColor(): string;
|
|
12
|
-
isDestructive(): boolean;
|
|
13
6
|
}
|
|
@@ -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;
|
|
@@ -38,6 +39,7 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
|
|
|
38
39
|
confirm(confirm: Confirm): Promise<boolean>;
|
|
39
40
|
confirmOrReject(confirm: Confirm): Promise<void>;
|
|
40
41
|
confirmThen<D1, R1, E1>(confirm: Confirm, activityType: Constructable<Activity<D1, R1, E1>>, data?: D1): Promise<R1>;
|
|
42
|
+
confirmThenExecute<R1>(confirm: Confirm, operation: (interactionContext: InteractionContext) => (Promise<R1> | R1)): Promise<R1>;
|
|
41
43
|
isActive(): boolean;
|
|
42
44
|
startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1, options?: InteractionContext.Options): Promise<R1>;
|
|
43
45
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Command, Form, Validator } from '@coolon/pectin';
|
|
2
|
+
import { Enum } from 'typescript-string-enums';
|
|
3
|
+
import { CommandFace } from '../../../components/commands/command-face';
|
|
4
|
+
import { Activity } from '../../activity';
|
|
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
|
+
readonly confirmFace: CommandFace;
|
|
12
|
+
readonly cancelFace: CommandFace;
|
|
13
|
+
get layout(): InputActivity.Layout;
|
|
14
|
+
constructor(data: D);
|
|
15
|
+
onActivityReady(): void;
|
|
16
|
+
get additionalCssClassName(): string;
|
|
17
|
+
onEscape(): void;
|
|
18
|
+
shouldCancelOnEscape(): boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace InputActivity {
|
|
21
|
+
const Layout: {
|
|
22
|
+
INLINE: "inline";
|
|
23
|
+
BLOCK: "block";
|
|
24
|
+
};
|
|
25
|
+
type Layout = Enum<typeof Layout>;
|
|
26
|
+
interface Context {
|
|
27
|
+
injectError(error: string): any;
|
|
28
|
+
}
|
|
29
|
+
interface Data<T> {
|
|
30
|
+
initialValue: T;
|
|
31
|
+
label?: string;
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
layout?: InputActivity.Layout;
|
|
34
|
+
confirmFace?: CommandFace;
|
|
35
|
+
cancelFace?: CommandFace;
|
|
36
|
+
validators?: Validator<T>[];
|
|
37
|
+
cancelOnEscape?: boolean;
|
|
38
|
+
cssClassName?: string;
|
|
39
|
+
save?(valueModel: T, interactionContext?: Context): void | Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -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,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class StringInputActivity extends
|
|
1
|
+
import { InputActivity } from './input-activity';
|
|
2
|
+
export declare class StringInputActivity extends InputActivity<string> {
|
|
3
|
+
}
|
|
4
|
+
export declare namespace StringInputActivity {
|
|
5
|
+
interface Data extends InputActivity.Data<String> {
|
|
6
|
+
}
|
|
3
7
|
}
|
|
@@ -8,8 +8,9 @@ export * from "./alert";
|
|
|
8
8
|
export * from "./confirm";
|
|
9
9
|
export * from "./interaction-context";
|
|
10
10
|
export * from "./interaction.module";
|
|
11
|
-
export * from "./result";
|
|
12
11
|
export * from "./route-synchronisation-adapter";
|
|
12
|
+
export * from "./components/abstract-confirm-dialog.component";
|
|
13
|
+
export * from "./components/abstract-dialog.component";
|
|
13
14
|
export * from "./components/activity-actions/activity-actions.component";
|
|
14
15
|
export * from "./components/activity-body/activity-body.component";
|
|
15
16
|
export * from "./components/activity-container/activity-container.component";
|
|
@@ -19,14 +20,17 @@ export * from "./components/activity-triggers/abstract-activity-trigger.componen
|
|
|
19
20
|
export * from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
|
|
20
21
|
export * from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
|
|
21
22
|
export * from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
|
|
23
|
+
export * from "./components/add-card-activity/add-card-activity.component";
|
|
22
24
|
export * from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
23
25
|
export * from "./components/alert-dialog/alert-dialog.component";
|
|
24
26
|
export * from "./components/confirm-then-dialog/confirm-then-dialog.component";
|
|
27
|
+
export * from "./components/confirm-then-execute-dialog/confirm-then-execute-dialog.component";
|
|
25
28
|
export * from "./components/confirmation-dialog/confirmation-dialog.component";
|
|
29
|
+
export * from "./components/editors/edit-context";
|
|
30
|
+
export * from "./components/editors/inline-string-editor/inline-editor-model";
|
|
31
|
+
export * from "./components/editors/inline-string-editor/inline-string-editor.component";
|
|
26
32
|
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";
|
|
33
|
+
export * from "./components/input-activities/input-activity";
|
|
30
34
|
export * from "./components/input-activities/select-input-activity";
|
|
31
35
|
export * from "./components/input-activities/string-input-activity";
|
|
32
36
|
export * from "./components/popup-interaction-context/popup-interaction-context.component";
|
|
@@ -11,6 +11,7 @@ export interface InteractionContext extends Disposable, Disposable.Collector {
|
|
|
11
11
|
alert(alert: Alert): Promise<void>;
|
|
12
12
|
confirmOrReject(confirm: Confirm): Promise<void>;
|
|
13
13
|
confirmThen<D, R, E>(confirm: Confirm, activityType: Constructable<Activity<D, R, E>>, data?: D): Promise<R>;
|
|
14
|
+
confirmThenExecute<R>(confirm: Confirm, operation: (interactionContext: InteractionContext) => R | Promise<R>): Promise<R>;
|
|
14
15
|
}
|
|
15
16
|
export declare namespace InteractionContext {
|
|
16
17
|
interface Options {
|
|
@@ -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
|
/**
|
|
@@ -43,10 +43,10 @@ export declare class PlaceRouter extends GarbageCollector {
|
|
|
43
43
|
onRouterCancelled(event: NavigationCancel): void;
|
|
44
44
|
onRouterError(event: NavigationError): void;
|
|
45
45
|
onRouterEnd(event: NavigationEnd): void;
|
|
46
|
-
navigate(visit: Visit, options?: {
|
|
46
|
+
navigate(visit: Visit | Visit[], options?: {
|
|
47
47
|
relativeTo: ActivatedRoute;
|
|
48
48
|
}): Promise<void>;
|
|
49
|
-
doNavigation(visit: Visit, runNavigationCommands: (router: Router) => any): Promise<void>;
|
|
49
|
+
doNavigation(visit: Visit | Visit[], runNavigationCommands: (router: Router) => any): Promise<void>;
|
|
50
50
|
navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
51
51
|
get activeVisits(): ListModel<Visit>;
|
|
52
52
|
pushVisitChangesToRoute(previous: Visit, next: Visit): Promise<void>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { marked } from 'marked';
|
|
2
|
+
import RendererThis = marked.RendererThis;
|
|
3
|
+
import TokenizerThis = marked.TokenizerThis;
|
|
4
|
+
import Tokens = marked.Tokens;
|
|
5
|
+
export declare const markdownPillExtension: (renderPill: (text: string) => string) => {
|
|
6
|
+
name: string;
|
|
7
|
+
level: string;
|
|
8
|
+
start: (src: string) => number;
|
|
9
|
+
tokenizer: (this: TokenizerThis, src: string) => {
|
|
10
|
+
type: string;
|
|
11
|
+
raw: string;
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
renderer: (this: RendererThis, token: Tokens.Generic) => string;
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "12.4.0-alpha.
|
|
3
|
+
"version": "12.4.0-alpha.80",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@coolon/typescript-utilities": "^2.
|
|
6
|
+
"@coolon/typescript-utilities": "^2.3.0",
|
|
7
7
|
"typescript-string-enums": "^1.0.0",
|
|
8
8
|
"@typescript-plus/fast-memoize-decorator": "^0.1.0",
|
|
9
9
|
"json5": "^2.1.0",
|
|
@@ -14,25 +14,26 @@
|
|
|
14
14
|
"@fortawesome/free-solid-svg-icons": "^5.15.2",
|
|
15
15
|
"@fortawesome/fontawesome-free": "5.15.3",
|
|
16
16
|
"resize-observer-polyfill": "^1.5.1",
|
|
17
|
-
"
|
|
17
|
+
"marked": "4.0.2",
|
|
18
|
+
"tslib": "^2.2.0"
|
|
18
19
|
},
|
|
19
20
|
"peerDependencies": {
|
|
20
|
-
"@angular/animations": "^12.
|
|
21
|
-
"@angular/cdk": "^12.
|
|
22
|
-
"@angular/common": "^12.
|
|
23
|
-
"@angular/compiler": "^12.
|
|
24
|
-
"@angular/core": "^12.
|
|
25
|
-
"@angular/flex-layout": "^12.0.0-beta.
|
|
26
|
-
"@angular/forms": "^12.
|
|
27
|
-
"@angular/material": "^12.
|
|
28
|
-
"@angular/material-moment-adapter": "^12.
|
|
29
|
-
"@angular/platform-browser": "^12.
|
|
30
|
-
"@angular/platform-browser-dynamic": "^12.
|
|
31
|
-
"@angular/router": "^12.
|
|
21
|
+
"@angular/animations": "^12.2.9",
|
|
22
|
+
"@angular/cdk": "^12.2.9",
|
|
23
|
+
"@angular/common": "^12.2.9",
|
|
24
|
+
"@angular/compiler": "^12.2.9",
|
|
25
|
+
"@angular/core": "^12.2.9",
|
|
26
|
+
"@angular/flex-layout": "^12.0.0-beta.35",
|
|
27
|
+
"@angular/forms": "^12.2.9",
|
|
28
|
+
"@angular/material": "^12.2.9",
|
|
29
|
+
"@angular/material-moment-adapter": "^12.2.9",
|
|
30
|
+
"@angular/platform-browser": "^12.2.9",
|
|
31
|
+
"@angular/platform-browser-dynamic": "^12.2.9",
|
|
32
|
+
"@angular/router": "^12.2.9",
|
|
32
33
|
"rxjs": "~6.6.3",
|
|
33
34
|
"reflect-metadata": "^0.1.13",
|
|
34
35
|
"zone.js": "~0.11.4",
|
|
35
|
-
"@coolon/pectin": ">=3.
|
|
36
|
+
"@coolon/pectin": ">=3.16.1"
|
|
36
37
|
},
|
|
37
38
|
"main": "bundles/coolon-angular-ui-powerups.umd.js",
|
|
38
39
|
"module": "fesm2015/coolon-angular-ui-powerups.js",
|
|
@@ -8,7 +8,7 @@ const workspace_1 = require("../utils/workspace");
|
|
|
8
8
|
function addActivity(_options) {
|
|
9
9
|
return (tree, context) => {
|
|
10
10
|
const workspace = workspace_1.Workspace.load(tree, context);
|
|
11
|
-
const buildContext = workspace.
|
|
11
|
+
const buildContext = workspace.getProject(_options.project);
|
|
12
12
|
const nameParts = _options.name.split('/');
|
|
13
13
|
const componentName = nameParts[nameParts.length - 1];
|
|
14
14
|
const componentPathParts = nameParts.slice(0, nameParts.length - 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/activity/index.ts"],"names":[],"mappings":";;;AAAA,2DAAoG;AACpG,uEAAuD;AACvD,oEAA0E;AAC1E,kDAA+C;AAI/C,SAAgB,WAAW,CAAC,QAAgB;IAE1C,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAE/C,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/activity/index.ts"],"names":[],"mappings":";;;AAAA,2DAAoG;AACpG,uEAAuD;AACvD,oEAA0E;AAC1E,kDAA+C;AAI/C,SAAgB,WAAW,CAAC,QAAgB;IAE1C,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAE/C,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhD,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE5D,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACtD,MAAM,kBAAkB,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACpE,MAAM,gBAAgB,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAElF,kHAAkH;QAClH,MAAM,YAAY,GAAG,8BAAiB,CAAC,qBAAqB,EAAE,WAAW,EAAE;YACzE,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB,CAAC,CAAC;QAEH,MAAM,aAAa,GAAG,QAAQ,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,8BAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QAExI,MAAM,cAAc,GAAG,gDAA2B,CAChD,IAAI,EACJ,qBAAqB,EACrB;YACE,IAAI,EAAE,aAAa;YACnB,cAAc,EAAE,YAAY,CAAC,cAAc;YAC3C,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YACrD,aAAa;SACd,EACD,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,aAAa,EAAE,CACnD,CAAC;QAGF,OAAO,kBAAK,CAAC,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE9D,CAAC,CAAC;AAEJ,CAAC;AAtCD,kCAsCC"}
|
|
@@ -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
|
}
|
|
@@ -9,7 +9,7 @@ const package_util_1 = require("../package-util");
|
|
|
9
9
|
function run(_options) {
|
|
10
10
|
return (tree, _context) => {
|
|
11
11
|
const workspace = workspace_1.Workspace.load(tree, _context);
|
|
12
|
-
const buildContext = workspace.
|
|
12
|
+
const buildContext = workspace.getProject(_options.project);
|
|
13
13
|
const templateSource = applyWithOverwrite(schematics_1.url('./templates'), [
|
|
14
14
|
schematics_1.applyTemplates(Object.assign(Object.assign({}, _options), core_1.strings)),
|
|
15
15
|
schematics_1.move(buildContext.sourceRoot)
|