@coolon/angular-ui-powerups 12.4.0-alpha.88 → 12.4.0-alpha.9
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.scss +70 -0
- package/assets/form.scss +2 -10
- package/assets/interaction.scss +7 -10
- package/assets/mixins.scss +7 -5
- package/assets/styles.scss +15 -10
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +336 -741
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +426 -1415
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/components/aup-command-face.d.ts +8 -2
- package/cypress/components/aup-command.d.ts +1 -2
- package/cypress/components/aup-empty-state.d.ts +2 -1
- package/cypress/components/aup-input.d.ts +5 -11
- package/cypress/components/aup-more-menu.d.ts +4 -0
- package/cypress/components/aup-popup-menu.d.ts +7 -0
- package/cypress/components/aup-table.d.ts +18 -5
- package/cypress/components/button-mixin.d.ts +19 -0
- package/cypress/components/button.d.ts +7 -11
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/exports.d.ts +4 -24
- package/cypress/package.json +1 -1
- package/cypress/page-element.d.ts +12 -12
- package/cypress/page.d.ts +34 -8
- package/cypress/section.d.ts +55 -0
- package/esm2015/cypress/components/aup-command-face.js +22 -11
- package/esm2015/cypress/components/aup-command-face.js.map +1 -1
- package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
- package/esm2015/cypress/components/aup-command.js +6 -12
- package/esm2015/cypress/components/aup-command.js.map +1 -1
- package/esm2015/cypress/components/aup-command.metadata.json +1 -1
- package/esm2015/cypress/components/aup-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 +5 -17
- package/esm2015/cypress/components/aup-input.js.map +1 -1
- package/esm2015/cypress/components/aup-input.metadata.json +1 -1
- package/esm2015/cypress/components/aup-more-menu.js +7 -0
- package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-navigation.js +1 -1
- package/esm2015/cypress/components/aup-navigation.js.map +1 -1
- package/esm2015/cypress/components/aup-popup-menu.js +19 -0
- package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
- package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
- package/esm2015/cypress/components/aup-table.js +33 -5
- package/esm2015/cypress/components/aup-table.js.map +1 -1
- package/esm2015/cypress/components/aup-table.metadata.json +1 -1
- package/esm2015/cypress/components/button-mixin.js +15 -0
- package/esm2015/cypress/components/button-mixin.js.map +1 -0
- package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
- package/esm2015/cypress/components/button.js +10 -4
- package/esm2015/cypress/components/button.js.map +1 -1
- package/esm2015/cypress/components/button.metadata.json +1 -1
- package/esm2015/cypress/exports.js +4 -24
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-element.js +19 -26
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +19 -31
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/cypress/section.js +76 -0
- package/esm2015/cypress/section.js.map +1 -0
- package/esm2015/cypress/section.metadata.json +1 -0
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/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/card-container/card-container.component.js +84 -0
- package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
- package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{labelled-value/labelled-value.component.scss.shim.ngstyle.js.map → card-container/card-container.component.scss.shim.ngstyle.js.map} +1 -1
- package/esm2015/lib/components/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 +1 -5
- 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 +25 -43
- 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 -8
- 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 +0 -1
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +2 -2
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +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 +2 -2
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +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/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 +5 -12
- 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 +21 -35
- 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/column-list-model.js +1 -2
- package/esm2015/lib/components/tables/column-list-model.js.map +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 +10 -35
- 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 +12 -19
- 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/edit-session.js.map +1 -0
- package/esm2015/lib/components/tables/{edit-session.metadata.json → table/edit-session.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 +2 -0
- 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 +13 -14
- 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/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 +13 -21
- 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-node.js +2 -0
- package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +1 -0
- 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 +2 -3
- 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/tables/tree-table/visitable.class.js +26 -0
- package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +1 -0
- package/esm2015/lib/components/track-by.js +0 -12
- 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 +0 -7
- 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 +1 -2
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/alert.js +1 -17
- package/esm2015/lib/interaction/alert.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-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 +0 -4
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +2 -5
- 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 +2 -5
- 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 +2 -5
- 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-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 +14 -8
- 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 +31 -8
- 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/confirmation-dialog/confirmation-dialog.component.js +26 -7
- 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/inplace-interaction-context/in-place-interaction-context.component.js +3 -10
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -6
- 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 +1 -2
- 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 +4 -8
- 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 +9 -29
- 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/result.js +4 -0
- package/esm2015/lib/interaction/result.js.map +1 -0
- package/esm2015/lib/interaction/result.metadata.json +1 -0
- 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 +1 -2
- package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +1 -2
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/place-component.js +4 -31
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +14 -11
- 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 +1 -5
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/esm2015/lib/services/exports.js +0 -2
- package/esm2015/lib/services/exports.js.map +1 -1
- package/esm2015/lib/services/exports.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +244 -546
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +358 -1205
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +9 -30
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -1
- package/lib/components/exports.d.ts +4 -8
- package/lib/components/section-header/section-header.component.d.ts +2 -5
- package/lib/components/tables/abstract-table-model.d.ts +7 -10
- package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
- package/lib/components/tables/table/cell-renderer.d.ts +0 -2
- package/lib/components/tables/table/column-model.d.ts +5 -14
- package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +1 -2
- package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +2 -4
- package/lib/components/tables/{edit-session.d.ts → table/edit-session.d.ts} +3 -3
- 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 +3 -2
- package/lib/components/tables/table/table.component.d.ts +12 -13
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +3 -2
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
- package/lib/components/tables/tree-table/tree-node.d.ts +3 -0
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
- package/lib/components/tables/tree-table/visitable.class.d.ts +22 -0
- package/lib/components/track-by.d.ts +0 -9
- package/lib/interaction/abstract-interaction-context.d.ts +0 -1
- package/lib/interaction/alert.d.ts +1 -7
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
- package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +7 -2
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +10 -2
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +9 -2
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -2
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
- package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
- package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
- package/lib/interaction/exports.d.ts +4 -8
- package/lib/interaction/interaction-context.d.ts +0 -1
- package/lib/interaction/result.d.ts +8 -0
- package/lib/place/place-component.d.ts +1 -6
- package/lib/place/place-router.d.ts +2 -2
- package/lib/services/exports.d.ts +0 -2
- package/package.json +16 -17
- 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 +3 -5
- 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 +1 -3
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/utils/build-context.d.ts +3 -6
- package/schematics/utils/build-context.js +3 -3
- package/schematics/utils/build-context.js.map +1 -1
- package/schematics/utils/workspace.d.ts +0 -1
- package/schematics/utils/workspace.js +3 -11
- package/schematics/utils/workspace.js.map +1 -1
- package/assets/activities/activities.scss +0 -80
- package/assets/activities/input-activities.scss +0 -36
- package/assets/cards.scss +0 -17
- package/assets/forms/mixins.scss +0 -6
- package/assets/interaction/editor/inline-string-editor.scss +0 -54
- package/assets/markdown.scss +0 -10
- package/assets/pills.scss +0 -45
- package/cypress/component-builder.d.ts +0 -71
- package/cypress/components/aup-abstract-activity.d.ts +0 -31
- package/cypress/components/aup-abstract-table.d.ts +0 -18
- package/cypress/components/aup-activity.d.ts +0 -9
- package/cypress/components/aup-alert-dialog.d.ts +0 -27
- package/cypress/components/aup-alert.d.ts +0 -9
- package/cypress/components/aup-confirm-dialog.d.ts +0 -27
- package/cypress/components/aup-confirm.d.ts +0 -11
- package/cypress/components/aup-modal-activity.d.ts +0 -24
- package/cypress/components/aup-modal-mixin.d.ts +0 -23
- package/cypress/components/aup-tree-table.d.ts +0 -16
- package/cypress/components/form-element-mixin.d.ts +0 -22
- package/cypress/components/mat-checkbox.d.ts +0 -31
- package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
- package/cypress/components/popup/aup-more-menu.d.ts +0 -5
- package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
- package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
- package/cypress/components/table/aup-table-cell.d.ts +0 -9
- package/cypress/components/table/aup-table-column.d.ts +0 -10
- package/cypress/components/table/aup-table-row.d.ts +0 -17
- package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
- package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
- package/cypress/element-locator.d.ts +0 -8
- package/cypress/page-builder.d.ts +0 -9
- package/esm2015/cypress/component-builder.js +0 -92
- package/esm2015/cypress/component-builder.js.map +0 -1
- package/esm2015/cypress/component-builder.metadata.json +0 -1
- package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
- package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-abstract-table.js +0 -50
- package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
- package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
- package/esm2015/cypress/components/aup-activity.js +0 -13
- package/esm2015/cypress/components/aup-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
- package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
- package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
- package/esm2015/cypress/components/aup-alert.js +0 -13
- package/esm2015/cypress/components/aup-alert.js.map +0 -1
- package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
- package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
- package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
- package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
- package/esm2015/cypress/components/aup-confirm.js +0 -19
- package/esm2015/cypress/components/aup-confirm.js.map +0 -1
- package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
- package/esm2015/cypress/components/aup-modal-activity.js +0 -5
- package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
- package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
- package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
- package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
- package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
- package/esm2015/cypress/components/aup-tree-table.js +0 -34
- package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
- package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
- package/esm2015/cypress/components/form-element-mixin.js +0 -11
- package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
- package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
- package/esm2015/cypress/components/mat-checkbox.js +0 -34
- package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
- package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
- package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
- package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
- package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
- package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-column.js +0 -19
- package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-row.js +0 -28
- package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
- package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
- package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
- package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
- package/esm2015/cypress/element-locator.js +0 -16
- package/esm2015/cypress/element-locator.js.map +0 -1
- package/esm2015/cypress/element-locator.metadata.json +0 -1
- package/esm2015/cypress/page-builder.js +0 -16
- package/esm2015/cypress/page-builder.js.map +0 -1
- package/esm2015/cypress/page-builder.metadata.json +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
- package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
- package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
- package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
- package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
- package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/tables/edit-session.js.map +0 -1
- package/esm2015/lib/components/tables/table/text-search-predicate.js +0 -2
- package/esm2015/lib/components/tables/table/text-search-predicate.js.map +0 -1
- package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +0 -1
- package/esm2015/lib/components/text/markdown/markdown.component.js +0 -77
- package/esm2015/lib/components/text/markdown/markdown.component.js.map +0 -1
- package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +0 -1
- package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +0 -23
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +0 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/abstract-dialog.component.js +0 -52
- package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +0 -1
- package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +0 -30
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +0 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
- package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
- package/esm2015/lib/services/markdown/markdown.service.js +0 -25
- package/esm2015/lib/services/markdown/markdown.service.js.map +0 -1
- package/esm2015/lib/services/markdown/markdown.service.metadata.json +0 -1
- package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +0 -1
- package/esm2015/lib/services/markdown/pill-plugin.js +0 -38
- package/esm2015/lib/services/markdown/pill-plugin.js.map +0 -1
- package/esm2015/lib/services/markdown/pill-plugin.metadata.json +0 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
- package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
- package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
- package/lib/components/loading-container/loading-container.component.d.ts +0 -11
- package/lib/components/tables/table/text-search-predicate.d.ts +0 -1
- package/lib/components/text/markdown/markdown.component.d.ts +0 -28
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -7
- package/lib/interaction/components/abstract-dialog.component.d.ts +0 -17
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +0 -12
- package/lib/interaction/components/editors/edit-context.d.ts +0 -3
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
- package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
- package/lib/services/markdown/markdown.service.d.ts +0 -6
- package/lib/services/markdown/pill-plugin.d.ts +0 -15
- /package/esm2015/lib/components/tables/{edit-session.js → table/edit-session.js} +0 -0
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { Constructable } from '@coolon/pectin';
|
|
3
|
+
import { CommandFace } from '../../../components/commands/command-face';
|
|
2
4
|
import { Activity } from '../../activity';
|
|
3
5
|
import { Confirm } from '../../confirm';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
export declare class ConfirmThenDialogComponent<D, R, E> extends Activity<ConfirmThenDialogComponent.Data<D, R, E>, R, E> implements OnInit {
|
|
7
|
+
readonly config: ConfirmThenDialogComponent.Data<D, R, E>;
|
|
8
|
+
readonly confirmFace: CommandFace;
|
|
9
|
+
readonly cancelFace: CommandFace;
|
|
6
10
|
constructor(config: ConfirmThenDialogComponent.Data<D, R, E>);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
get confirm(): Confirm;
|
|
13
|
+
get titleColor(): string;
|
|
14
|
+
isDestructive(): boolean;
|
|
7
15
|
}
|
|
8
16
|
export declare namespace ConfirmThenDialogComponent {
|
|
9
17
|
interface Data<D, R, E> {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CommandFace } from '../../../components/commands/command-face';
|
|
3
|
+
import { Activity } from '../../activity';
|
|
1
4
|
import { Confirm } from '../../confirm';
|
|
2
|
-
|
|
3
|
-
export declare class ConfirmationDialogComponent extends AbstractConfirmDialogComponent<Confirm, void> {
|
|
5
|
+
export declare class ConfirmationDialogComponent extends Activity<Confirm, void> implements OnInit {
|
|
4
6
|
readonly confirm: Confirm;
|
|
7
|
+
readonly confirmFace: CommandFace;
|
|
8
|
+
readonly cancelFace: CommandFace;
|
|
5
9
|
constructor(confirm: Confirm);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
get titleColor(): string;
|
|
12
|
+
isDestructive(): boolean;
|
|
6
13
|
}
|
|
@@ -29,7 +29,6 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
|
|
|
29
29
|
*/
|
|
30
30
|
animateFirstActivity: boolean;
|
|
31
31
|
get animationDuration(): string;
|
|
32
|
-
get active(): boolean;
|
|
33
32
|
constructor(interactionService: InteractionService, tabConfig: MatTabsConfig);
|
|
34
33
|
ngAfterViewInit(): void;
|
|
35
34
|
initialise(id: string, api: InteractionService.Api): void;
|
|
@@ -39,7 +38,6 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
|
|
|
39
38
|
confirm(confirm: Confirm): Promise<boolean>;
|
|
40
39
|
confirmOrReject(confirm: Confirm): Promise<void>;
|
|
41
40
|
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>;
|
|
43
41
|
isActive(): boolean;
|
|
44
42
|
startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1, options?: InteractionContext.Options): Promise<R1>;
|
|
45
43
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command, Form } from '@coolon/pectin';
|
|
2
|
+
import { Activity } from '../../activity';
|
|
3
|
+
import { InputActivityData } from './input-activity-data';
|
|
4
|
+
export declare class AbstractInputActivity<T, D extends InputActivityData<T> = InputActivityData<T>> extends Activity<D, T> {
|
|
5
|
+
readonly data: D;
|
|
6
|
+
readonly confirmCommand: Command<void>;
|
|
7
|
+
readonly cancelCommand: Command<void>;
|
|
8
|
+
readonly valueModel: Form.ValueModelBase<T>;
|
|
9
|
+
class: string;
|
|
10
|
+
constructor(data: D);
|
|
11
|
+
onActivityReady(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Form, Validator } from '@coolon/pectin';
|
|
2
|
+
import { InteractionContext } from '../../interaction-context';
|
|
3
|
+
import { ActivityActionsComponent } from '../activity-actions/activity-actions.component';
|
|
4
|
+
export interface InputActivityData<T> {
|
|
5
|
+
initialValue: T;
|
|
6
|
+
buttonStyle: ActivityActionsComponent.Style;
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
validators?: Validator<T>[];
|
|
10
|
+
save?(valueModel: Form.ValueModelBase<T>, interactionContext?: InteractionContext): void | Promise<unknown>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ListModel } from '@coolon/pectin';
|
|
2
|
+
import { InputActivityData } from './input-activity-data';
|
|
3
|
+
export interface SelectInputActivityData<T> extends InputActivityData<T> {
|
|
4
|
+
options?: T[];
|
|
5
|
+
optionsModel?: ListModel<T>;
|
|
6
|
+
optionLabel?: keyof T;
|
|
7
|
+
optionLabelFormat?: (option: T) => any;
|
|
8
|
+
}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare class SelectInputActivity<T> extends
|
|
1
|
+
import { AbstractInputActivity } from './abstract-input-activity';
|
|
2
|
+
import { SelectInputActivityData } from './select-input-activity-data';
|
|
3
|
+
export declare class SelectInputActivity<T> extends AbstractInputActivity<T, SelectInputActivityData<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,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class StringInputActivity extends
|
|
3
|
-
}
|
|
4
|
-
export declare namespace StringInputActivity {
|
|
5
|
-
interface Data extends InputActivity.Data<String> {
|
|
6
|
-
}
|
|
1
|
+
import { AbstractInputActivity } from './abstract-input-activity';
|
|
2
|
+
export declare class StringInputActivity extends AbstractInputActivity<string> {
|
|
7
3
|
}
|
|
@@ -8,9 +8,8 @@ export * from "./alert";
|
|
|
8
8
|
export * from "./confirm";
|
|
9
9
|
export * from "./interaction-context";
|
|
10
10
|
export * from "./interaction.module";
|
|
11
|
+
export * from "./result";
|
|
11
12
|
export * from "./route-synchronisation-adapter";
|
|
12
|
-
export * from "./components/abstract-confirm-dialog.component";
|
|
13
|
-
export * from "./components/abstract-dialog.component";
|
|
14
13
|
export * from "./components/activity-actions/activity-actions.component";
|
|
15
14
|
export * from "./components/activity-body/activity-body.component";
|
|
16
15
|
export * from "./components/activity-container/activity-container.component";
|
|
@@ -20,17 +19,14 @@ export * from "./components/activity-triggers/abstract-activity-trigger.componen
|
|
|
20
19
|
export * from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
|
|
21
20
|
export * from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
|
|
22
21
|
export * from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
|
|
23
|
-
export * from "./components/add-card-activity/add-card-activity.component";
|
|
24
22
|
export * from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
25
23
|
export * from "./components/alert-dialog/alert-dialog.component";
|
|
26
24
|
export * from "./components/confirm-then-dialog/confirm-then-dialog.component";
|
|
27
|
-
export * from "./components/confirm-then-execute-dialog/confirm-then-execute-dialog.component";
|
|
28
25
|
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";
|
|
32
26
|
export * from "./components/inplace-interaction-context/in-place-interaction-context.component";
|
|
33
|
-
export * from "./components/input-activities/input-activity";
|
|
27
|
+
export * from "./components/input-activities/abstract-input-activity";
|
|
28
|
+
export * from "./components/input-activities/input-activity-data";
|
|
29
|
+
export * from "./components/input-activities/select-input-activity-data";
|
|
34
30
|
export * from "./components/input-activities/select-input-activity";
|
|
35
31
|
export * from "./components/input-activities/string-input-activity";
|
|
36
32
|
export * from "./components/popup-interaction-context/popup-interaction-context.component";
|
|
@@ -11,7 +11,6 @@ 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>;
|
|
15
14
|
}
|
|
16
15
|
export declare namespace InteractionContext {
|
|
17
16
|
interface Options {
|
|
@@ -22,12 +22,7 @@ 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
|
-
|
|
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;
|
|
25
|
+
private installBinding;
|
|
31
26
|
get placeDefinition(): PlaceDefinition;
|
|
32
27
|
get active(): ValueModel<boolean>;
|
|
33
28
|
/**
|
|
@@ -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
|
|
46
|
+
navigate(visit: Visit, options?: {
|
|
47
47
|
relativeTo: ActivatedRoute;
|
|
48
48
|
}): Promise<void>;
|
|
49
|
-
doNavigation(visit: Visit
|
|
49
|
+
doNavigation(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>;
|
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.9",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@coolon/typescript-utilities": "^2.
|
|
6
|
+
"@coolon/typescript-utilities": "^2.2.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,26 +14,25 @@
|
|
|
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
|
-
"
|
|
18
|
-
"tslib": "^2.2.0"
|
|
17
|
+
"tslib": "^2.1.0"
|
|
19
18
|
},
|
|
20
19
|
"peerDependencies": {
|
|
21
|
-
"@angular/animations": "^12.
|
|
22
|
-
"@angular/cdk": "^12.
|
|
23
|
-
"@angular/common": "^12.
|
|
24
|
-
"@angular/compiler": "^12.
|
|
25
|
-
"@angular/core": "^12.
|
|
26
|
-
"@angular/flex-layout": "^12.0.0-beta.
|
|
27
|
-
"@angular/forms": "^12.
|
|
28
|
-
"@angular/material": "^12.
|
|
29
|
-
"@angular/material-moment-adapter": "^12.
|
|
30
|
-
"@angular/platform-browser": "^12.
|
|
31
|
-
"@angular/platform-browser-dynamic": "^12.
|
|
32
|
-
"@angular/router": "^12.
|
|
20
|
+
"@angular/animations": "^12.0.3",
|
|
21
|
+
"@angular/cdk": "^12.0.3",
|
|
22
|
+
"@angular/common": "^12.0.3",
|
|
23
|
+
"@angular/compiler": "^12.0.3",
|
|
24
|
+
"@angular/core": "^12.0.3",
|
|
25
|
+
"@angular/flex-layout": "^12.0.0-beta.34",
|
|
26
|
+
"@angular/forms": "^12.0.3",
|
|
27
|
+
"@angular/material": "^12.0.3",
|
|
28
|
+
"@angular/material-moment-adapter": "^12.0.3",
|
|
29
|
+
"@angular/platform-browser": "^12.0.3",
|
|
30
|
+
"@angular/platform-browser-dynamic": "^12.0.3",
|
|
31
|
+
"@angular/router": "^12.0.3",
|
|
33
32
|
"rxjs": "~6.6.3",
|
|
34
33
|
"reflect-metadata": "^0.1.13",
|
|
35
34
|
"zone.js": "~0.11.4",
|
|
36
|
-
"@coolon/pectin": ">=3.
|
|
35
|
+
"@coolon/pectin": ">=3.13.2"
|
|
37
36
|
},
|
|
38
37
|
"main": "bundles/coolon-angular-ui-powerups.umd.js",
|
|
39
38
|
"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.getApplication(_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;QAChD,MAAM,YAAY,GAAG,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAEhE,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,aAAa,GAAG,SA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herize(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))%>.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))%>.Data) {
|
|
16
16
|
super();
|
|
17
17
|
const {chain} = Dsl.disposeWith(this);
|
|
18
18
|
|
|
@@ -22,8 +22,6 @@ 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);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
ngOnInit() {
|
|
@@ -31,7 +29,7 @@ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capita
|
|
|
31
29
|
|
|
32
30
|
}
|
|
33
31
|
|
|
34
|
-
export namespace <%=capitalize(camelize(name))%>
|
|
32
|
+
export namespace <%=capitalize(camelize(name))%> {
|
|
35
33
|
export interface Data {
|
|
36
34
|
}
|
|
37
35
|
}
|
|
@@ -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.getApplicationOrDefault(_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)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/aup-i18n/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6D;AAC7D,2DAaoC;AACpC,kDAA+C;AAE/C,kDAAoD;AACpD,yFAAyF;AAEzF,SAAgB,GAAG,CAAC,QAAgB;IAElC,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAEhD,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/aup-i18n/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6D;AAC7D,2DAaoC;AACpC,kDAA+C;AAE/C,kDAAoD;AACpD,yFAAyF;AAEzF,SAAgB,GAAG,CAAC,QAAgB;IAElC,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAEhD,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,SAAS,CAAC,uBAAuB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;QAExE,MAAM,cAAc,GAAG,kBAAkB,CACvC,gBAAG,CAAC,aAAa,CAAC,EAAE;YAClB,2BAAc,iCAAM,QAAQ,GAAK,cAAO,EAAG;YAC3C,iBAAI,CAAC,YAAY,CAAC,UAAU,CAAC;SAC9B,CAAC,CAAC;QAEL,gDAAgD;QAChD,MAAM,yBAAyB,GAAQ,CAAC,IAAU,EAAE,CAAmB,EAAQ,EAAE;YAC/E,OAAO,gCAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;gBACrC,KAAK,CAAC,eAAe,mCAChB,KA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AO;AACP,IAAI;AAGJ,oDAAoD;AACpD,yDAAyD;AACzD,2EAA2E;AAC3E,mBAAmB;AACnB,OAAO;AACP,IAAI;AACJ,EAAE;AACF,qDAAqD;AACrD,yDAAyD;AACzD,oEAAoE;AACpE,mBAAmB;AACnB,OAAO;AACP,IAAI"}
|
|
@@ -8,7 +8,7 @@ const workspace_1 = require("../utils/workspace");
|
|
|
8
8
|
function addComponent(_options) {
|
|
9
9
|
return (tree, context) => {
|
|
10
10
|
const workspace = workspace_1.Workspace.load(tree, context);
|
|
11
|
-
const buildContext = workspace.
|
|
11
|
+
const buildContext = workspace.getApplication(_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/component/index.ts"],"names":[],"mappings":";;;AAAA,2DAAoG;AACpG,uEAAuD;AACvD,oEAA0E;AAC1E,kDAA+C;AAI/C,SAAgB,YAAY,CAAC,QAAgB;IAE3C,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/component/index.ts"],"names":[],"mappings":";;;AAAA,2DAAoG;AACpG,uEAAuD;AACvD,oEAA0E;AAC1E,kDAA+C;AAI/C,SAAgB,YAAY,CAAC,QAAgB;IAE3C,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAE/C,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,YAAY,GAAG,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC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D,CAAC,CAAC;AAEJ,CAAC;AArCD,oCAqCC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
import {Dsl
|
|
2
|
+
import { Dsl } from '@coolon/pectin';
|
|
3
3
|
import { DisposableComponent } from '@coolon/angular-ui-powerups';
|
|
4
4
|
import { I18n } from '<%=pathToRoot%>/i18n';
|
|
5
5
|
|
|
@@ -10,7 +10,6 @@ exports.PlaceClassScanner = void 0;
|
|
|
10
10
|
const src_1 = require("@typescript-plus/fast-memoize-decorator/dist/src");
|
|
11
11
|
const ts_morph_1 = require("ts-morph");
|
|
12
12
|
const place_def_1 = require("./place-def");
|
|
13
|
-
const _ = require("lodash");
|
|
14
13
|
function isDecoratorNode(node, name) {
|
|
15
14
|
return node.getKind() === ts_morph_1.SyntaxKind.Decorator && node.getText().startsWith(`${name}(`); // NOTE: I'm only supporting the @Decorator(...) style of usage (i.e. decorator factories).
|
|
16
15
|
}
|
|
@@ -85,8 +84,7 @@ class PlaceClassScanner {
|
|
|
85
84
|
.replace(']', '')
|
|
86
85
|
.trim()
|
|
87
86
|
.split(',')
|
|
88
|
-
.map(s => s.trim())
|
|
89
|
-
.filter(s => !_.isEmpty(s)); // trailing commas on the last place in the list give us an empty string.
|
|
87
|
+
.map(s => s.trim());
|
|
90
88
|
}
|
|
91
89
|
getRouteIdParameter() {
|
|
92
90
|
const routeProperties = this.getDecoratedProperties('@RouteId');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"place-class-scanner.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/place-routes/place-class-scanner.ts"],"names":[],"mappings":";;;;;;;;;AACA,0EAA2E;AAC3E,uCAQkB;AAElB,2CAAuC;
|
|
1
|
+
{"version":3,"file":"place-class-scanner.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/place-routes/place-class-scanner.ts"],"names":[],"mappings":";;;;;;;;;AACA,0EAA2E;AAC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QADC,aAAO,EAAE;2DAGT;IAGD;QADC,aAAO,EAAE;uDAGT;IAvBU,oCAAkB,qBA4B9B,CAAA;AACH,CAAC,EAzDgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAyDjC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { logging } from '@angular-devkit/core';
|
|
1
2
|
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
3
|
import { ClassDeclaration, SourceFile } from 'ts-morph';
|
|
3
4
|
import { DecoratedSourceFile } from './decorators/decorated-source-file';
|
|
@@ -8,16 +9,11 @@ export declare abstract class BuildContext {
|
|
|
8
9
|
readonly context: SchematicContext;
|
|
9
10
|
private typescriptProject;
|
|
10
11
|
constructor(tree: Tree, projectName: string, settings: BuildContext.Settings, context: SchematicContext);
|
|
11
|
-
get logger():
|
|
12
|
-
info(message: string): void;
|
|
13
|
-
error(message: string): void;
|
|
14
|
-
fatal(message: string): void;
|
|
15
|
-
};
|
|
12
|
+
get logger(): logging.LoggerApi;
|
|
16
13
|
get tsConfigPath(): string;
|
|
17
14
|
get sourceCodeRoot(): string;
|
|
18
15
|
get sourceRoot(): any;
|
|
19
16
|
get rootDir(): any;
|
|
20
|
-
get selectorPrefix(): any;
|
|
21
17
|
private loadTypeScriptProject;
|
|
22
18
|
scanClassesInTree(tree: Tree, scanRootDirectory: string, scanClass: (sourceFile: SourceFile, classDeclaration: ClassDeclaration, path: string) => void): void;
|
|
23
19
|
findFileInAncestorPath(pathToSourceRoot: string[], fileName: string): string;
|
|
@@ -30,6 +26,7 @@ export declare namespace BuildContext {
|
|
|
30
26
|
readonly tsConfigPath: string;
|
|
31
27
|
}
|
|
32
28
|
class App extends BuildContext {
|
|
29
|
+
get selectorPrefix(): any;
|
|
33
30
|
}
|
|
34
31
|
class Lib extends BuildContext {
|
|
35
32
|
}
|
|
@@ -26,9 +26,6 @@ class BuildContext {
|
|
|
26
26
|
get rootDir() {
|
|
27
27
|
return this.settings.workspaceProject.root;
|
|
28
28
|
}
|
|
29
|
-
get selectorPrefix() {
|
|
30
|
-
return this.settings.workspaceProject['prefix'];
|
|
31
|
-
}
|
|
32
29
|
loadTypeScriptProject() {
|
|
33
30
|
// TODO: this barfs if you're not running it from teh project root directory
|
|
34
31
|
this.logger.info(`loading tsConfig from -> ${this.tsConfigPath}`);
|
|
@@ -85,6 +82,9 @@ class BuildContext {
|
|
|
85
82
|
exports.BuildContext = BuildContext;
|
|
86
83
|
(function (BuildContext) {
|
|
87
84
|
class App extends BuildContext {
|
|
85
|
+
get selectorPrefix() {
|
|
86
|
+
return this.settings.workspaceProject['prefix'];
|
|
87
|
+
}
|
|
88
88
|
}
|
|
89
89
|
BuildContext.App = App;
|
|
90
90
|
class Lib extends BuildContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-context.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/build-context.ts"],"names":[],"mappings":";;;AAEA,uCAAiE;AACjE,8EAAyE;AAEzE,MAAsB,YAAY;IAIhC,YAAqB,IAAU,EAAW,WAAmB,EAAqB,QAA+B,EAAW,OAAyB;QAAhI,SAAI,GAAJ,IAAI,CAAM;QAAW,gBAAW,GAAX,WAAW,CAAQ;QAAqB,aAAQ,GAAR,QAAQ,CAAuB;QAAW,YAAO,GAAP,OAAO,CAAkB;QACnJ,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACxD,CAAC;IAED,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"build-context.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/build-context.ts"],"names":[],"mappings":";;;AAEA,uCAAiE;AACjE,8EAAyE;AAEzE,MAAsB,YAAY;IAIhC,YAAqB,IAAU,EAAW,WAAmB,EAAqB,QAA+B,EAAW,OAAyB;QAAhI,SAAI,GAAJ,IAAI,CAAM;QAAW,gBAAW,GAAX,WAAW,CAAQ;QAAqB,aAAQ,GAAR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AI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YACnG,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;QACH,OAAO,2CAAmB,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CAEF;AAvFD,oCAuFC;AAED,WAAiB,YAAY;IAQ3B,MAAa,GAAI,SAAQ,YAAY;QACnC,IAAI,cAAc;YAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAClD,CAAC;KACF;IAJY,gBAAG,MAIf,CAAA;IAED,MAAa,GAAI,SAAQ,YAAY;KAEpC;IAFY,gBAAG,MAEf,CAAA;AAEH,CAAC,EAlBgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAkB5B"}
|
|
@@ -7,7 +7,6 @@ export declare class Workspace {
|
|
|
7
7
|
get defaultProject(): any;
|
|
8
8
|
constructor(schema: any, tree: Tree, context: SchematicContext);
|
|
9
9
|
static load(tree: Tree, _context: SchematicContext): Workspace;
|
|
10
|
-
getProject(projectName: string): BuildContext;
|
|
11
10
|
getApplication(projectName: string): BuildContext.App;
|
|
12
11
|
getApplicationOrDefault(projectName: string | undefined): BuildContext.App;
|
|
13
12
|
getLibrary(projectName: string): BuildContext.Lib;
|
|
@@ -19,12 +19,6 @@ class Workspace {
|
|
|
19
19
|
const workspaceContent = workspaceConfig.toString();
|
|
20
20
|
return new Workspace(JSON.parse(workspaceContent), tree, _context);
|
|
21
21
|
}
|
|
22
|
-
getProject(projectName) {
|
|
23
|
-
const settings = this.loadProjectSettings(projectName, this.tree);
|
|
24
|
-
return settings.projectType === 'app' ?
|
|
25
|
-
this.getApplication(projectName) :
|
|
26
|
-
this.getLibrary(projectName);
|
|
27
|
-
}
|
|
28
22
|
getApplication(projectName) {
|
|
29
23
|
const settings = this.loadProjectSettings(projectName, this.tree);
|
|
30
24
|
if (settings.projectType !== 'app') {
|
|
@@ -44,13 +38,11 @@ class Workspace {
|
|
|
44
38
|
}
|
|
45
39
|
loadProjectSettings(project, tree) {
|
|
46
40
|
const workspaceProject = this.schema.projects[project || this.schema.defaultProject];
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
workspaceProject.architect.build.options.tsConfig
|
|
50
|
-
: `${workspaceProject.root}/tsconfig.lib.json`;
|
|
41
|
+
const tsConfigPath = workspaceProject.architect.build.options.tsConfig;
|
|
42
|
+
// return new BuildContext.App(project, typescriptConfig, sourceRoot, context);
|
|
51
43
|
return {
|
|
52
44
|
workspaceProject,
|
|
53
|
-
projectType: projectType,
|
|
45
|
+
projectType: workspaceProject.projectType === 'application' ? 'app' : 'lib',
|
|
54
46
|
tsConfigPath
|
|
55
47
|
};
|
|
56
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/utils/workspace.ts"],"names":[],"mappings":";;;AAEA,mDAA+C;AAE/C,MAAa,SAAS;IAMpB,YAAqB,MAAW,EAAW,IAAU,EAAW,OAAyB;QAApE,WAAM,GAAN,MAAM,CAAK;QAAW,SAAI,GAAJ,IAAI,CAAM;QAAW,YAAO,GAAP,OAAO,CAAkB;IACzF,CAAC;IALD,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;IACpC,CAAC;IAKD,MAAM,CAAC,IAAI,CAAC,IAAU,EAAE,QAA0B;QAChD,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACnD,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;SACnE;QACD,MAAM,gBAAgB,GAAG,eAAe,CAAC,QAAQ,EAAE,CAA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