@coolon/angular-ui-powerups 2.0.2 → 3.0.0
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/CHANGELOG.md +11 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +2192 -2390
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -16
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/angular-ui-powerups.module.js +27 -29
- package/esm2015/lib/angular-ui-powerups.module.js.map +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/animations/index.js.map +1 -1
- package/esm2015/lib/animations/slide-animations.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +13 -15
- package/esm2015/lib/components/card-container/card-container.component.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.js +21 -17
- package/esm2015/lib/components/commands/command/command.component.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js +19 -34
- 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/command-face/command-face.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -1
- package/esm2015/lib/components/commands/command-face.js.map +1 -1
- package/esm2015/lib/components/commands/flex.component.js +8 -11
- package/esm2015/lib/components/commands/flex.component.js.map +1 -1
- package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js +20 -26
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +16 -25
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +16 -17
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group.js.map +1 -1
- package/esm2015/lib/components/commands/group/more-menu.component.js +15 -19
- package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.js +19 -32
- package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/group/registration.js.map +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +13 -32
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/commands/group/view-data.js.map +1 -1
- package/esm2015/lib/components/commands/separator.component.js +9 -13
- package/esm2015/lib/components/commands/separator.component.js.map +1 -1
- package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/components.module.js +107 -110
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/disposable-component.js +5 -7
- package/esm2015/lib/components/disposable-component.js.map +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.js +16 -21
- package/esm2015/lib/components/focus-container/focus-container.component.js.map +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/focusable.component.js +10 -25
- package/esm2015/lib/components/focusable.component.js.map +1 -1
- package/esm2015/lib/components/focusable.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.js +25 -86
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.js +12 -17
- package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.js +12 -17
- package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +19 -28
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +14 -20
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +18 -24
- 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.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js +14 -20
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js +11 -13
- package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +20 -32
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +15 -12
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +14 -20
- package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/icon/icon.component.js +13 -18
- package/esm2015/lib/components/icon/icon.component.js.map +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/icon/icon.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/index.js +5 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/noop/noop.component.js +10 -12
- package/esm2015/lib/components/noop/noop.component.js.map +1 -1
- package/esm2015/lib/components/noop/noop.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/noop/noop.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/resize-aware.component.js +6 -9
- package/esm2015/lib/components/resize-aware.component.js.map +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.js +10 -12
- package/esm2015/lib/components/scroll-container/scroll-container.component.js.map +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/section-header/section-header.component.js +12 -16
- 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/section-header/section-header.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/section-header/section-header.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.js +36 -43
- package/esm2015/lib/components/switch-case/switch-case.component.js.map +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/table/cell-editors.js +1 -0
- package/esm2015/lib/components/table/cell-editors.js.map +1 -1
- package/esm2015/lib/components/table/cell-portal-ref.js.map +1 -1
- package/esm2015/lib/components/table/cell-renderer.js +1 -0
- package/esm2015/lib/components/table/cell-renderer.js.map +1 -1
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-template/column-template.directive.js +14 -29
- package/esm2015/lib/components/table/column-template/column-template.directive.js.map +1 -1
- package/esm2015/lib/components/table/column-template/column-template.directive.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/column-text-properties.js +1 -0
- package/esm2015/lib/components/table/column-text-properties.js.map +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +12 -16
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js +12 -15
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js +14 -19
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/table/edit-session.js.map +1 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js +1 -0
- package/esm2015/lib/components/table/mutable-cell-renderer.js.map +1 -1
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.js +12 -15
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js +10 -12
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +18 -39
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/table/table-def.js +1 -0
- package/esm2015/lib/components/table/table-def.js.map +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +13 -19
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/table/table-model.js +1 -4
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +14 -20
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/table.component.js +12 -11
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/table.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/components/track-by.js.map +1 -1
- package/esm2015/lib/components/types/bounds.class.js.map +1 -1
- package/esm2015/lib/components/types/dimension.class.js.map +1 -1
- package/esm2015/lib/components/types/point.class.js.map +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +21 -42
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.js.map +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/directives/command.directive.js +14 -29
- package/esm2015/lib/directives/command.directive.js.map +1 -1
- package/esm2015/lib/directives/command.directive.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/directives.module.js +23 -25
- package/esm2015/lib/directives/directives.module.js.map +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/focus-binding-factory.js +9 -13
- package/esm2015/lib/directives/focus-binding-factory.js.map +1 -1
- package/esm2015/lib/directives/focus-binding-factory.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/focus-binding.directive.js +15 -34
- package/esm2015/lib/directives/focus-binding.directive.js.map +1 -1
- package/esm2015/lib/directives/focus-binding.directive.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/focus-binding.js +8 -10
- package/esm2015/lib/directives/focus-binding.js.map +1 -1
- package/esm2015/lib/directives/index.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/activity-ref.js.map +1 -1
- package/esm2015/lib/interaction/activity.js +10 -11
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/activity.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/alert.js +1 -0
- package/esm2015/lib/interaction/alert.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -33
- 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-actions/activity-actions.component.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +15 -23
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +14 -24
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +19 -40
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +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/add-item-interaction-context/add-item-interaction-context.component.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +9 -13
- 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/alert-dialog/alert-dialog.component.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +9 -13
- 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-dialog/confirm-then-dialog.component.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +9 -13
- 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/confirmation-dialog/confirmation-dialog.component.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +13 -21
- 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.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +8 -13
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +1 -0
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +1 -0
- package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +8 -10
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/select-input-activity.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +8 -10
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/string-input-activity.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +16 -28
- 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.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/interaction/confirm.js +1 -0
- package/esm2015/lib/interaction/confirm.js.map +1 -1
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js +17 -45
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +1 -1
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/index.js +7 -0
- package/esm2015/lib/interaction/index.js.map +1 -1
- package/esm2015/lib/interaction/interaction-context.js +1 -0
- package/esm2015/lib/interaction/interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.js +59 -59
- 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 +1 -0
- package/esm2015/lib/interaction/result.js.map +1 -1
- package/esm2015/lib/interaction/route-synchronisation-adapter.js +1 -0
- package/esm2015/lib/interaction/route-synchronisation-adapter.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js +14 -18
- package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction.service.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +8 -15
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +17 -13
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js +15 -12
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/place/components/empty-state/empty-state.component.js +10 -12
- package/esm2015/lib/place/components/empty-state/empty-state.component.js.map +1 -1
- package/esm2015/lib/place/components/empty-state/empty-state.component.metadata.json +1 -1
- package/esm2015/lib/place/components/empty-state/empty-state.component.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/empty-state/empty-state.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +9 -12
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +24 -29
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/route-animations.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +13 -20
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +9 -12
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.scss.shim.ngstyle.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm2015/lib/place/guards/noop-auth-guard.service.js +9 -10
- package/esm2015/lib/place/guards/noop-auth-guard.service.js.map +1 -1
- package/esm2015/lib/place/guards/noop-auth-guard.service.ngfactory.js.map +1 -1
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/index.js +5 -1
- package/esm2015/lib/place/index.js.map +1 -1
- package/esm2015/lib/place/index.metadata.json +1 -1
- package/esm2015/lib/place/nav-item.js +1 -0
- package/esm2015/lib/place/nav-item.js.map +1 -1
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
- package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.js +171 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.js.map +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigating.js +2 -2
- package/esm2015/lib/place/navigation/session/navigating.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigation-context.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigation-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/pop-state-navigation.js.map +1 -1
- package/esm2015/lib/place/navigation/session/pop-state-navigation.metadata.json +1 -1
- package/esm2015/lib/place/place-component.js +7 -9
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-config.js.map +1 -1
- package/esm2015/lib/place/place-definition.js.map +1 -1
- package/esm2015/lib/place/place-history.js +9 -12
- package/esm2015/lib/place/place-history.js.map +1 -1
- package/esm2015/lib/place/place-history.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place-router.js +10 -16
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place.decorator.js.map +1 -1
- package/esm2015/lib/place/place.module.js +41 -43
- package/esm2015/lib/place/place.module.js.map +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/route/formatter.js.map +1 -1
- package/esm2015/lib/place/route/json-types.js +1 -0
- package/esm2015/lib/place/route/json-types.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm2015/lib/place/route/parameter-definition.class.js.map +1 -1
- package/esm2015/lib/place/route/parameter-sanitiser.js +1 -0
- package/esm2015/lib/place/route/parameter-sanitiser.js.map +1 -1
- package/esm2015/lib/place/route/parameter-snapshot.js +1 -0
- package/esm2015/lib/place/route/parameter-snapshot.js.map +1 -1
- package/esm2015/lib/place/route/visit-sanitiser.js.map +1 -1
- package/esm2015/lib/place/url-service.js +8 -11
- package/esm2015/lib/place/url-service.js.map +1 -1
- package/esm2015/lib/place/url-service.ngfactory.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/public_api.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +1446 -1754
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-list-input.component.d.ts +3 -3
- package/lib/components/forms/abstract-value-input.component.d.ts +3 -3
- package/lib/components/table/cell-editors.d.ts +3 -3
- package/lib/interaction/activity.d.ts +1 -1
- package/lib/place/index.d.ts +1 -1
- package/lib/place/navigation/session/event-cleanup/{wait-until-link-triggered-interaction-cancelation-finishes.d.ts → wait-until-link-triggered-navigation-interaction-cancelation-type-determined.d.ts} +8 -24
- package/package.json +5 -7
- package/schematics/bootstrap-app/index.js +1 -0
- package/schematics/bootstrap-app/index.js.map +1 -1
- package/schematics/ng-add/index.js +1 -0
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/package-util.js +1 -0
- package/schematics/package-util.js.map +1 -1
- package/schematics/place-add/index.js +1 -0
- package/schematics/place-add/index.js.map +1 -1
- package/schematics/place-routes/index.js +1 -0
- package/schematics/place-routes/index.js.map +1 -1
- package/schematics/place-routes/place-builder.js +1 -0
- package/schematics/place-routes/place-builder.js.map +1 -1
- package/schematics/place-routes/place-class-scanner.js +1 -0
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/place-routes/place-def.js +1 -0
- package/schematics/place-routes/place-def.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +0 -80
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +0 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.metadata.json +0 -1
- package/esm5/coolon-angular-ui-powerups.js +0 -84
- package/esm5/coolon-angular-ui-powerups.js.map +0 -1
- package/esm5/index.js +0 -2
- package/esm5/index.js.map +0 -1
- package/esm5/lib/angular-ui-powerups.module.js +0 -46
- package/esm5/lib/angular-ui-powerups.module.js.map +0 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +0 -1
- package/esm5/lib/animations/index.js +0 -5
- package/esm5/lib/animations/index.js.map +0 -1
- package/esm5/lib/animations/slide-animations.js +0 -23
- package/esm5/lib/animations/slide-animations.js.map +0 -1
- package/esm5/lib/components/card-container/card-container.component.js +0 -50
- package/esm5/lib/components/card-container/card-container.component.js.map +0 -1
- package/esm5/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/command/command.component.js +0 -64
- package/esm5/lib/components/commands/command/command.component.js.map +0 -1
- package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.js +0 -123
- package/esm5/lib/components/commands/command-face/command-face.component.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/command-face.js +0 -145
- package/esm5/lib/components/commands/command-face.js.map +0 -1
- package/esm5/lib/components/commands/flex.component.js +0 -33
- package/esm5/lib/components/commands/flex.component.js.map +0 -1
- package/esm5/lib/components/commands/flex.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group/command-group.component.js +0 -51
- package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -59
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -42
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group.js +0 -122
- package/esm5/lib/components/commands/group/command-group.js.map +0 -1
- package/esm5/lib/components/commands/group/more-menu.component.js +0 -58
- package/esm5/lib/components/commands/group/more-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/popup-menu.component.js +0 -68
- package/esm5/lib/components/commands/group/popup-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/registration.js +0 -80
- package/esm5/lib/components/commands/group/registration.js.map +0 -1
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +0 -58
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +0 -1
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/group/view-data.js +0 -131
- package/esm5/lib/components/commands/group/view-data.js.map +0 -1
- package/esm5/lib/components/commands/separator.component.js +0 -37
- package/esm5/lib/components/commands/separator.component.js.map +0 -1
- package/esm5/lib/components/commands/separator.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/components.module.js +0 -180
- package/esm5/lib/components/components.module.js.map +0 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +0 -1
- package/esm5/lib/components/disposable-component.js +0 -18
- package/esm5/lib/components/disposable-component.js.map +0 -1
- package/esm5/lib/components/focus-container/focus-container.component.js +0 -44
- package/esm5/lib/components/focus-container/focus-container.component.js.map +0 -1
- package/esm5/lib/components/focus-container/focus-container.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/focus-container/focus-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/focusable.component.js +0 -71
- package/esm5/lib/components/focusable.component.js.map +0 -1
- package/esm5/lib/components/focusable.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/abstract-input.component.js +0 -197
- package/esm5/lib/components/forms/abstract-input.component.js.map +0 -1
- package/esm5/lib/components/forms/abstract-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/abstract-list-input.component.js +0 -80
- package/esm5/lib/components/forms/abstract-list-input.component.js.map +0 -1
- package/esm5/lib/components/forms/abstract-list-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +0 -80
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +0 -1
- package/esm5/lib/components/forms/abstract-value-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -73
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +0 -35
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +0 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js +0 -52
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +0 -1
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js +0 -35
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +0 -1
- package/esm5/lib/components/forms/number-input/number-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/number-input/number-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +0 -24
- package/esm5/lib/components/forms/password-input/password-input.component.js.map +0 -1
- package/esm5/lib/components/forms/password-input/password-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/password-input/password-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +0 -60
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +0 -1
- package/esm5/lib/components/forms/select-input/select-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/select-input/select-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +0 -37
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +0 -1
- package/esm5/lib/components/forms/string-input/string-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/string-input/string-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js +0 -35
- package/esm5/lib/components/forms/text-input/text-input.component.js.map +0 -1
- package/esm5/lib/components/forms/text-input/text-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/text-input/text-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/icon/icon.component.js +0 -57
- package/esm5/lib/components/icon/icon.component.js.map +0 -1
- package/esm5/lib/components/icon/icon.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/icon/icon.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/index.js +0 -59
- package/esm5/lib/components/index.js.map +0 -1
- package/esm5/lib/components/noop/noop.component.js +0 -17
- package/esm5/lib/components/noop/noop.component.js.map +0 -1
- package/esm5/lib/components/noop/noop.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/noop/noop.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/resize-aware.component.js +0 -65
- package/esm5/lib/components/resize-aware.component.js.map +0 -1
- package/esm5/lib/components/scroll-container/scroll-container.component.js +0 -19
- package/esm5/lib/components/scroll-container/scroll-container.component.js.map +0 -1
- package/esm5/lib/components/scroll-container/scroll-container.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/scroll-container/scroll-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/section-header/section-header.component.js +0 -25
- package/esm5/lib/components/section-header/section-header.component.js.map +0 -1
- package/esm5/lib/components/section-header/section-header.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/section-header/section-header.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/switch-case/switch-case.component.js +0 -144
- package/esm5/lib/components/switch-case/switch-case.component.js.map +0 -1
- package/esm5/lib/components/switch-case/switch-case.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/switch-case/switch-case.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/cell-editors.js +0 -1
- package/esm5/lib/components/table/cell-editors.js.map +0 -1
- package/esm5/lib/components/table/cell-portal-ref.js +0 -117
- package/esm5/lib/components/table/cell-portal-ref.js.map +0 -1
- package/esm5/lib/components/table/cell-renderer.js +0 -1
- package/esm5/lib/components/table/cell-renderer.js.map +0 -1
- package/esm5/lib/components/table/column-model.js +0 -346
- package/esm5/lib/components/table/column-model.js.map +0 -1
- package/esm5/lib/components/table/column-template/column-template.directive.js +0 -50
- package/esm5/lib/components/table/column-template/column-template.directive.js.map +0 -1
- package/esm5/lib/components/table/column-template/column-template.directive.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/column-text-properties.js +0 -1
- package/esm5/lib/components/table/column-text-properties.js.map +0 -1
- package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +0 -32
- package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +0 -1
- package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js +0 -21
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +0 -1
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js +0 -57
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +0 -1
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/edit-session.js +0 -28
- package/esm5/lib/components/table/edit-session.js.map +0 -1
- package/esm5/lib/components/table/mutable-cell-renderer.js +0 -1
- package/esm5/lib/components/table/mutable-cell-renderer.js.map +0 -1
- package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.js +0 -32
- package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.js.map +0 -1
- package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js +0 -33
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +0 -1
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +0 -106
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +0 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/table-def.js +0 -1
- package/esm5/lib/components/table/table-def.js.map +0 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +0 -38
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +0 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/table-model.js +0 -243
- package/esm5/lib/components/table/table-model.js.map +0 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +0 -63
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/table.component.js +0 -75
- package/esm5/lib/components/table/table.component.js.map +0 -1
- package/esm5/lib/components/table/table.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/table/table.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/track-by.js +0 -5
- package/esm5/lib/components/track-by.js.map +0 -1
- package/esm5/lib/components/types/bounds.class.js +0 -32
- package/esm5/lib/components/types/bounds.class.js.map +0 -1
- package/esm5/lib/components/types/dimension.class.js +0 -9
- package/esm5/lib/components/types/dimension.class.js.map +0 -1
- package/esm5/lib/components/types/point.class.js +0 -15
- package/esm5/lib/components/types/point.class.js.map +0 -1
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js +0 -90
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +0 -1
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/directives/command.directive.js +0 -116
- package/esm5/lib/directives/command.directive.js.map +0 -1
- package/esm5/lib/directives/command.directive.ngfactory.js.map +0 -1
- package/esm5/lib/directives/directives.module.js +0 -39
- package/esm5/lib/directives/directives.module.js.map +0 -1
- package/esm5/lib/directives/directives.module.ngfactory.js.map +0 -1
- package/esm5/lib/directives/focus-binding-factory.js +0 -32
- package/esm5/lib/directives/focus-binding-factory.js.map +0 -1
- package/esm5/lib/directives/focus-binding-factory.ngfactory.js.map +0 -1
- package/esm5/lib/directives/focus-binding.directive.js +0 -80
- package/esm5/lib/directives/focus-binding.directive.js.map +0 -1
- package/esm5/lib/directives/focus-binding.directive.ngfactory.js.map +0 -1
- package/esm5/lib/directives/focus-binding.js +0 -88
- package/esm5/lib/directives/focus-binding.js.map +0 -1
- package/esm5/lib/directives/index.js +0 -9
- package/esm5/lib/directives/index.js.map +0 -1
- package/esm5/lib/interaction/abstract-interaction-context.js +0 -40
- package/esm5/lib/interaction/abstract-interaction-context.js.map +0 -1
- package/esm5/lib/interaction/activity-ref.js +0 -68
- package/esm5/lib/interaction/activity-ref.js.map +0 -1
- package/esm5/lib/interaction/activity.js +0 -86
- package/esm5/lib/interaction/activity.js.map +0 -1
- package/esm5/lib/interaction/alert.js +0 -1
- package/esm5/lib/interaction/alert.js.map +0 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +0 -83
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js.map +0 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +0 -226
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +0 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +0 -80
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +0 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +0 -90
- package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +0 -1
- package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +0 -28
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +0 -1
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +0 -46
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +0 -1
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +0 -33
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +0 -1
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +0 -86
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +0 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js +0 -51
- package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
- package/esm5/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/input-activities/input-activity-data.js +0 -1
- package/esm5/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
- package/esm5/lib/interaction/components/input-activities/select-input-activity-data.js +0 -1
- package/esm5/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
- package/esm5/lib/interaction/components/input-activities/select-input-activity.js +0 -38
- package/esm5/lib/interaction/components/input-activities/select-input-activity.js.map +0 -1
- package/esm5/lib/interaction/components/input-activities/select-input-activity.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/input-activities/string-input-activity.js +0 -18
- package/esm5/lib/interaction/components/input-activities/string-input-activity.js.map +0 -1
- package/esm5/lib/interaction/components/input-activities/string-input-activity.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +0 -111
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +0 -1
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/confirm.js +0 -1
- package/esm5/lib/interaction/confirm.js.map +0 -1
- package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.js +0 -94
- package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +0 -1
- package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/index.js +0 -26
- package/esm5/lib/interaction/index.js.map +0 -1
- package/esm5/lib/interaction/interaction-context.js +0 -1
- package/esm5/lib/interaction/interaction-context.js.map +0 -1
- package/esm5/lib/interaction/interaction.module.js +0 -88
- package/esm5/lib/interaction/interaction.module.js.map +0 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/result.js +0 -3
- package/esm5/lib/interaction/result.js.map +0 -1
- package/esm5/lib/interaction/route-synchronisation-adapter.js +0 -1
- package/esm5/lib/interaction/route-synchronisation-adapter.js.map +0 -1
- package/esm5/lib/interaction/services/interaction-service-routing-adapter.js +0 -31
- package/esm5/lib/interaction/services/interaction-service-routing-adapter.js.map +0 -1
- package/esm5/lib/interaction/services/interaction.service.js +0 -157
- package/esm5/lib/interaction/services/interaction.service.js.map +0 -1
- package/esm5/lib/interaction/services/interaction.service.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +0 -44
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +0 -1
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +0 -64
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +0 -1
- package/esm5/lib/interaction/services/modal-interaction-context.factory.js +0 -7
- package/esm5/lib/interaction/services/modal-interaction-context.factory.js.map +0 -1
- package/esm5/lib/place/components/abstract-place-navigation.component.js +0 -78
- package/esm5/lib/place/components/abstract-place-navigation.component.js.map +0 -1
- package/esm5/lib/place/components/abstract-place-navigation.component.ngfactory.js.map +0 -1
- package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js +0 -28
- package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js.map +0 -1
- package/esm5/lib/place/components/busy-overlay/busy-overlay.component.ngfactory.js.map +0 -1
- package/esm5/lib/place/components/busy-overlay/busy-overlay.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/place/components/empty-state/empty-state.component.js +0 -19
- package/esm5/lib/place/components/empty-state/empty-state.component.js.map +0 -1
- package/esm5/lib/place/components/empty-state/empty-state.component.ngfactory.js.map +0 -1
- package/esm5/lib/place/components/empty-state/empty-state.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +0 -24
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +0 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.ngfactory.js.map +0 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +0 -246
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +0 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.ngfactory.js.map +0 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/place/components/place-outlet/route-animations.js +0 -45
- package/esm5/lib/place/components/place-outlet/route-animations.js.map +0 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +0 -88
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +0 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.ngfactory.js.map +0 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +0 -24
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +0 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.ngfactory.js.map +0 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/place/guards/consolidated-param-map.js +0 -61
- package/esm5/lib/place/guards/consolidated-param-map.js.map +0 -1
- package/esm5/lib/place/guards/noop-auth-guard.service.js +0 -24
- package/esm5/lib/place/guards/noop-auth-guard.service.js.map +0 -1
- package/esm5/lib/place/guards/noop-auth-guard.service.ngfactory.js.map +0 -1
- package/esm5/lib/place/guards/place.guard.js +0 -157
- package/esm5/lib/place/guards/place.guard.js.map +0 -1
- package/esm5/lib/place/index.js +0 -43
- package/esm5/lib/place/index.js.map +0 -1
- package/esm5/lib/place/nav-item.js +0 -1
- package/esm5/lib/place/nav-item.js.map +0 -1
- package/esm5/lib/place/navigation/place-component-deactivation-handler.js +0 -98
- package/esm5/lib/place/navigation/place-component-deactivation-handler.js.map +0 -1
- package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js +0 -19
- package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js.map +0 -1
- package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +0 -15
- package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +0 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +0 -52
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +0 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +0 -86
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +0 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +0 -71
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +0 -1
- package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js +0 -43
- package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +0 -1
- package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +0 -34
- package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +0 -1
- package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +0 -58
- package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +0 -1
- package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +0 -92
- package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +0 -1
- package/esm5/lib/place/navigation/session/navigating.js +0 -28
- package/esm5/lib/place/navigation/session/navigating.js.map +0 -1
- package/esm5/lib/place/navigation/session/navigation-context.js +0 -15
- package/esm5/lib/place/navigation/session/navigation-context.js.map +0 -1
- package/esm5/lib/place/navigation/session/navigation-session.js +0 -183
- package/esm5/lib/place/navigation/session/navigation-session.js.map +0 -1
- package/esm5/lib/place/navigation/session/pop-state-navigation.js +0 -22
- package/esm5/lib/place/navigation/session/pop-state-navigation.js.map +0 -1
- package/esm5/lib/place/place-component.js +0 -125
- package/esm5/lib/place/place-component.js.map +0 -1
- package/esm5/lib/place/place-config.js +0 -3
- package/esm5/lib/place/place-config.js.map +0 -1
- package/esm5/lib/place/place-definition.js +0 -148
- package/esm5/lib/place/place-definition.js.map +0 -1
- package/esm5/lib/place/place-history.js +0 -145
- package/esm5/lib/place/place-history.js.map +0 -1
- package/esm5/lib/place/place-history.ngfactory.js.map +0 -1
- package/esm5/lib/place/place-router.js +0 -330
- package/esm5/lib/place/place-router.js.map +0 -1
- package/esm5/lib/place/place-router.ngfactory.js.map +0 -1
- package/esm5/lib/place/place.decorator.js +0 -15
- package/esm5/lib/place/place.decorator.js.map +0 -1
- package/esm5/lib/place/place.module.js +0 -66
- package/esm5/lib/place/place.module.js.map +0 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +0 -1
- package/esm5/lib/place/route/formatter.js +0 -42
- package/esm5/lib/place/route/formatter.js.map +0 -1
- package/esm5/lib/place/route/json-types.js +0 -1
- package/esm5/lib/place/route/json-types.js.map +0 -1
- package/esm5/lib/place/route/parameter-decorators.js +0 -64
- package/esm5/lib/place/route/parameter-decorators.js.map +0 -1
- package/esm5/lib/place/route/parameter-definition.class.js +0 -109
- package/esm5/lib/place/route/parameter-definition.class.js.map +0 -1
- package/esm5/lib/place/route/parameter-sanitiser.js +0 -1
- package/esm5/lib/place/route/parameter-sanitiser.js.map +0 -1
- package/esm5/lib/place/route/parameter-snapshot.js +0 -1
- package/esm5/lib/place/route/parameter-snapshot.js.map +0 -1
- package/esm5/lib/place/route/visit-sanitiser.js +0 -62
- package/esm5/lib/place/route/visit-sanitiser.js.map +0 -1
- package/esm5/lib/place/url-service.js +0 -77
- package/esm5/lib/place/url-service.js.map +0 -1
- package/esm5/lib/place/url-service.ngfactory.js.map +0 -1
- package/esm5/lib/place/url-snapshot.js +0 -98
- package/esm5/lib/place/url-snapshot.js.map +0 -1
- package/esm5/lib/place/visit.js +0 -72
- package/esm5/lib/place/visit.js.map +0 -1
- package/esm5/public_api.js +0 -7
- package/esm5/public_api.js.map +0 -1
- package/fesm5/coolon-angular-ui-powerups.js +0 -8132
- package/fesm5/coolon-angular-ui-powerups.js.map +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Binding, DebugContext, Functions, MutableListModel, MutableValueModel } from '@coolon/pectin';
|
|
2
|
-
import { Klass, Opts } from '@coolon/typescript-utilities';
|
|
3
|
-
import { ROUTE_PARAMETER_LIST_KEY } from '../place-component';
|
|
4
|
-
import { ParameterDefinition } from './parameter-definition.class';
|
|
5
|
-
function installMechanics(prototype, propertyKey, backingModel, tagPrefix, isEmpty) {
|
|
6
|
-
var mechanics = {
|
|
7
|
-
backingModel: backingModel,
|
|
8
|
-
binding: null
|
|
9
|
-
};
|
|
10
|
-
var tag = tagPrefix + "(" + prototype.constructor.name + "." + propertyKey.toString() + ")";
|
|
11
|
-
DebugContext.getOrCreate(mechanics.backingModel).tag(tag);
|
|
12
|
-
Object.defineProperty(prototype, propertyKey, {
|
|
13
|
-
get: function () {
|
|
14
|
-
return mechanics.backingModel;
|
|
15
|
-
},
|
|
16
|
-
set: function (userModel) {
|
|
17
|
-
// This handles the scenario where we want to push an existing value model (such as a form model)
|
|
18
|
-
// to and from the route.
|
|
19
|
-
if (mechanics.binding) {
|
|
20
|
-
mechanics.binding.dispose();
|
|
21
|
-
}
|
|
22
|
-
if (userModel) {
|
|
23
|
-
mechanics.binding = new Binding(mechanics.backingModel, userModel, {
|
|
24
|
-
toLeft: Functions.identity,
|
|
25
|
-
toRight: Functions.identity
|
|
26
|
-
});
|
|
27
|
-
if (isEmpty(userModel)) {
|
|
28
|
-
// console.log(`Push visit to model for ${tag}`, {value: mechanics.backingModel.value});
|
|
29
|
-
mechanics.binding.writeRight(); // push the visit into the user model;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
if (!isEmpty(mechanics.backingModel)) {
|
|
33
|
-
console.warn('Assigning a visit model with an existing value to a visit parameter with an existing value. Visit parameter will be overridden');
|
|
34
|
-
}
|
|
35
|
-
mechanics.binding.writeLeft(); // push the user model into the visit
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
export function RouteId(type, options) {
|
|
42
|
-
return function (prototype, propertyKey) {
|
|
43
|
-
var param = new ParameterDefinition.RouteId(propertyKey.toString(), options, type);
|
|
44
|
-
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
45
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(), '@RouteId', function (m) { return m.query().isNil(); });
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export function VisitParameter(options) {
|
|
49
|
-
var opts = Opts.get(options);
|
|
50
|
-
return function (prototype, propertyKey) {
|
|
51
|
-
var param = new ParameterDefinition.ValueParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
52
|
-
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
53
|
-
installMechanics(prototype, propertyKey, new MutableValueModel(), '@VisitParameter', function (m) { return m.query().isNil(); });
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export function VisitParameterList(options) {
|
|
57
|
-
var opts = Opts.get(options);
|
|
58
|
-
return function (prototype, propertyKey) {
|
|
59
|
-
var param = new ParameterDefinition.ArrayParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
60
|
-
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);
|
|
61
|
-
installMechanics(prototype, propertyKey, new MutableListModel(), '@VisitParameterList', function (m) { return m.query().isEmpty(); });
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=parameter-decorators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-decorators.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/route/parameter-decorators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,YAAY,EACZ,SAAS,EAGT,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AA8BnE,SAAS,gBAAgB,CAA0B,SAAiB,EAAE,WAA4B,EAAE,YAAe,EAAE,SAAiB,EAAE,OAA6B;IACnK,IAAM,SAAS,GAAG;QAChB,YAAY,EAAE,YAAY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W,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;QAC5H,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;QAC3E,gBAAgB,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,gBAAgB,EAAK,EAAE,qBAAqB,EAAE,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,EAAnB,CAAmB,CAAC,CAAC;IACvH,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import {\n Binding,\n DebugContext,\n Functions,\n HasValue,\n Logger,\n MutableListModel,\n MutableValueModel\n} from '@coolon/pectin';\nimport { Klass, Opts } from '@coolon/typescript-utilities';\nimport { ROUTE_PARAMETER_LIST_KEY } from '../place-component';\nimport { Formatter } from './formatter';\nimport { ParameterDefinition } from './parameter-definition.class';\n\n\nexport interface RouteIdOptions<T> {\n as?: string;\n optional?: boolean;\n remember?: boolean;\n defaultValue?: T;\n // sanitiser?: Constructable<ParameterSanitiser<T>> | ParameterSanitiser<T>;\n}\n\nexport interface RouteParameterOptions<T> {\n as?: string;\n optional?: boolean;\n remember?: boolean;\n defaultValue?: T;\n storeInUrl?: Formatter<T>\n // sanitiser?: Constructable<ParameterSanitiser<T>> | ParameterSanitiser<T>;\n}\n\nexport interface RouteListParameterOptions<T> {\n as?: string;\n optional?: boolean;\n remember?: boolean;\n defaultValue?: T[];\n storeInUrl?: Formatter<T>\n // sanitiser?: Constructable<ParameterSanitiser<T[]>> | ParameterSanitiser<T[]>;\n}\n\n\nfunction installMechanics<M extends HasValue<any>>(prototype: Object, propertyKey: string | symbol, backingModel: M, tagPrefix: string, isEmpty: (mode: M) => boolean) {\n const mechanics = {\n backingModel: backingModel,\n binding: null as Binding<any, any>\n };\n const tag = `${tagPrefix}(${prototype.constructor.name}.${propertyKey.toString()})`;\n DebugContext.getOrCreate(mechanics.backingModel).tag(tag);\n Object.defineProperty(prototype, propertyKey, {\n get: function() {\n return mechanics.backingModel;\n },\n set: function(userModel: M) {\n // This handles the scenario where we want to push an existing value model (such as a form model)\n // to and from the route.\n if (mechanics.binding) {\n mechanics.binding.dispose();\n }\n if (userModel) {\n mechanics.binding = new Binding(mechanics.backingModel, userModel, {\n toLeft: Functions.identity,\n toRight: Functions.identity\n });\n if (isEmpty(userModel)) {\n // console.log(`Push visit to model for ${tag}`, {value: mechanics.backingModel.value});\n mechanics.binding.writeRight(); // push the visit into the user model;\n } else {\n if (!isEmpty(mechanics.backingModel)) {\n console.warn('Assigning a visit model with an existing value to a visit parameter with an existing value. Visit parameter will be overridden');\n }\n mechanics.binding.writeLeft(); // push the user model into the visit\n }\n }\n }\n });\n}\n\nexport function RouteId<T extends string | number>(type: Formatter<T>, options?: RouteIdOptions<T>): PropertyDecorator {\n return (prototype: Object, propertyKey: string | symbol) => {\n const param = new ParameterDefinition.RouteId(propertyKey.toString(), options, type);\n Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);\n installMechanics(prototype, propertyKey, new MutableValueModel<T>(), '@RouteId', m => m.query().isNil());\n };\n}\n\nexport function VisitParameter<T>(options?: RouteParameterOptions<T>): PropertyDecorator {\n const opts = Opts.get(options);\n return (prototype: Object, propertyKey: string | symbol) => {\n const param = new ParameterDefinition.ValueParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));\n Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);\n installMechanics(prototype, propertyKey, new MutableValueModel<T>(), '@VisitParameter', m => m.query().isNil());\n };\n}\n\nexport function VisitParameterList<E>(options?: RouteListParameterOptions<E>): PropertyDecorator {\n const opts = Opts.get(options);\n return (prototype: Object, propertyKey: string | symbol) => {\n const param = new ParameterDefinition.ArrayParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));\n Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, param);\n installMechanics(prototype, propertyKey, new MutableListModel<E>(), '@VisitParameterList', m => m.query().isEmpty());\n };\n}\n"]}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __extends, __generator } from "tslib";
|
|
2
|
-
import { Opts } from '@coolon/typescript-utilities';
|
|
3
|
-
import _ from 'lodash';
|
|
4
|
-
var ParameterDefinition = /** @class */ (function () {
|
|
5
|
-
function ParameterDefinition(propertyName, options, urlFormat) {
|
|
6
|
-
this.propertyName = propertyName;
|
|
7
|
-
this.urlFormat = urlFormat;
|
|
8
|
-
this.options = Opts.get(options);
|
|
9
|
-
this.remember = this.options.getOptional('remember', false);
|
|
10
|
-
this.defaultValue = this.options.getOptional('defaultValue', null);
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(ParameterDefinition.prototype, "name", {
|
|
13
|
-
get: function () {
|
|
14
|
-
return this.options.getOptional('as', this.propertyName);
|
|
15
|
-
},
|
|
16
|
-
enumerable: true,
|
|
17
|
-
configurable: true
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(ParameterDefinition.prototype, "isRouteParameter", {
|
|
20
|
-
// @Trace()
|
|
21
|
-
get: function () {
|
|
22
|
-
return !!this.urlFormat;
|
|
23
|
-
},
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true
|
|
26
|
-
});
|
|
27
|
-
ParameterDefinition.prototype.getOptionValue = function (key) {
|
|
28
|
-
return this.options.getOptional(key, null);
|
|
29
|
-
};
|
|
30
|
-
// @Trace()
|
|
31
|
-
ParameterDefinition.prototype.sanitise = function (value, visit, placeHistory, injector, isPopState) {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
33
|
-
var returningFromSomewhereElse, lastKnownVisit;
|
|
34
|
-
return __generator(this, function (_a) {
|
|
35
|
-
if (this.isMissingFrom(visit)) {
|
|
36
|
-
returningFromSomewhereElse = !placeHistory.lastVisitIncluded(visit.placeDefinition);
|
|
37
|
-
if (returningFromSomewhereElse) {
|
|
38
|
-
lastKnownVisit = placeHistory.getMostRecentVisitFor(visit.placeDefinition);
|
|
39
|
-
if (this.remember && lastKnownVisit) {
|
|
40
|
-
value = lastKnownVisit.getParameter(this.name);
|
|
41
|
-
}
|
|
42
|
-
return [2 /*return*/, this.isEmptyValue(value) ? this.defaultValue : value];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
// todo: add custom sanitiser
|
|
46
|
-
return [2 /*return*/, value];
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
ParameterDefinition.prototype.isMissingFrom = function (visit) {
|
|
51
|
-
return !visit.hasParameter(this.name);
|
|
52
|
-
};
|
|
53
|
-
return ParameterDefinition;
|
|
54
|
-
}());
|
|
55
|
-
export { ParameterDefinition };
|
|
56
|
-
(function (ParameterDefinition) {
|
|
57
|
-
var RouteId = /** @class */ (function (_super) {
|
|
58
|
-
__extends(RouteId, _super);
|
|
59
|
-
function RouteId() {
|
|
60
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
-
_this.isRouteId = true;
|
|
62
|
-
_this.isArray = false;
|
|
63
|
-
return _this;
|
|
64
|
-
}
|
|
65
|
-
RouteId.prototype.isEmptyValue = function (value) {
|
|
66
|
-
return _.isNil(value);
|
|
67
|
-
};
|
|
68
|
-
RouteId.prototype.hasChanged = function (a, b) {
|
|
69
|
-
return a !== b;
|
|
70
|
-
};
|
|
71
|
-
return RouteId;
|
|
72
|
-
}(ParameterDefinition));
|
|
73
|
-
ParameterDefinition.RouteId = RouteId;
|
|
74
|
-
var ValueParameter = /** @class */ (function (_super) {
|
|
75
|
-
__extends(ValueParameter, _super);
|
|
76
|
-
function ValueParameter() {
|
|
77
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78
|
-
_this.isRouteId = false;
|
|
79
|
-
_this.isArray = false;
|
|
80
|
-
return _this;
|
|
81
|
-
}
|
|
82
|
-
ValueParameter.prototype.isEmptyValue = function (value) {
|
|
83
|
-
return _.isNil(value);
|
|
84
|
-
};
|
|
85
|
-
ValueParameter.prototype.hasChanged = function (a, b) {
|
|
86
|
-
return a !== b;
|
|
87
|
-
};
|
|
88
|
-
return ValueParameter;
|
|
89
|
-
}(ParameterDefinition));
|
|
90
|
-
ParameterDefinition.ValueParameter = ValueParameter;
|
|
91
|
-
var ArrayParameter = /** @class */ (function (_super) {
|
|
92
|
-
__extends(ArrayParameter, _super);
|
|
93
|
-
function ArrayParameter(parameterName, options, urlFormat) {
|
|
94
|
-
var _this = _super.call(this, parameterName, options, urlFormat) || this;
|
|
95
|
-
_this.isRouteId = false;
|
|
96
|
-
_this.isArray = true;
|
|
97
|
-
return _this;
|
|
98
|
-
}
|
|
99
|
-
ArrayParameter.prototype.isEmptyValue = function (value) {
|
|
100
|
-
return _.isNil(value) || value.length < 1;
|
|
101
|
-
};
|
|
102
|
-
ArrayParameter.prototype.hasChanged = function (a, b) {
|
|
103
|
-
return !_.isEqual(a, b);
|
|
104
|
-
};
|
|
105
|
-
return ArrayParameter;
|
|
106
|
-
}(ParameterDefinition));
|
|
107
|
-
ParameterDefinition.ArrayParameter = ArrayParameter;
|
|
108
|
-
})(ParameterDefinition || (ParameterDefinition = {}));
|
|
109
|
-
//# sourceMappingURL=parameter-definition.class.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-definition.class.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/route/parameter-definition.class.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,CAAC,MAAM,QAAQ,CAAC;AAKvB;IASE,6BAAqB,YAAoB,EAAE,OAAuC,EAAW,SAAwB;QAAhG,iBAAY,GAAZ,YAAY,CAAQ;QAAoD,cAAS,GAAT,SAAS,CAAe;QACnH,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,WA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mCAAU,GAAV,UAAW,CAAM,EAAE,CAAM;YACvB,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1B,CAAC;QAEH,qBAAC;IAAD,CAAC,AAhBD,CAAuC,mBAAmB,GAgBzD;IAhBY,kCAAc,iBAgB1B,CAAA;AACH,CAAC,EArDgB,mBAAmB,KAAnB,mBAAmB,QAqDnC","sourcesContent":["import { Injector } from '@angular/core';\nimport { Trace } from '@coolon/pectin';\nimport { Opts } from '@coolon/typescript-utilities';\nimport _ from 'lodash';\nimport { PlaceHistory } from '../place-history';\nimport { Visit } from '../visit';\nimport { Formatter } from './formatter';\n\nexport abstract class ParameterDefinition<T, E = T> {\n\n abstract readonly isRouteId: boolean;\n abstract readonly isArray: boolean;\n\n readonly remember: boolean;\n readonly defaultValue: T;\n private options: Opts<ParameterDefinition.Options<T>>;\n\n constructor(readonly propertyName: string, options: ParameterDefinition.Options<T>, readonly urlFormat?: Formatter<E>) {\n this.options = Opts.get(options);\n this.remember = this.options.getOptional('remember', false);\n this.defaultValue = this.options.getOptional('defaultValue', null);\n }\n\n get name() {\n return this.options.getOptional('as', this.propertyName);\n }\n\n // @Trace()\n get isRouteParameter(): boolean {\n return !!this.urlFormat;\n }\n\n abstract isEmptyValue(value: T): boolean;\n\n abstract hasChanged(a: any, b: any): boolean;\n\n protected getOptionValue<K extends keyof ParameterDefinition.Options<T>>(key: K): ParameterDefinition.Options<T>[K] {\n return this.options.getOptional(key, null);\n }\n\n // @Trace()\n async sanitise(value:T, visit: Visit, placeHistory: PlaceHistory, injector: Injector, isPopState: boolean) {\n if (this.isMissingFrom(visit)) {\n const returningFromSomewhereElse = !placeHistory.lastVisitIncluded(visit.placeDefinition);\n if (returningFromSomewhereElse) {\n const lastKnownVisit = placeHistory.getMostRecentVisitFor(visit.placeDefinition);\n if (this.remember && lastKnownVisit) {\n value = lastKnownVisit.getParameter(this.name);\n }\n return this.isEmptyValue(value) ? this.defaultValue : value;\n }\n }\n // todo: add custom sanitiser\n return value;\n }\n\n private isMissingFrom(visit: Visit) {\n return !visit.hasParameter(this.name);\n }\n}\n\nexport namespace ParameterDefinition {\n\n export interface Options<T> {\n as?: string;\n optional?: boolean;\n remember?: boolean;\n defaultValue?: T;\n // sanitiser?: Constructable<ParameterSanitiser<T>> | ParameterSanitiser.Options<T>;\n }\n\n export class RouteId<T> extends ParameterDefinition<T> {\n readonly isRouteId = true;\n readonly isArray = false;\n\n isEmptyValue(value: T): boolean {\n return _.isNil(value);\n }\n\n hasChanged(a: any, b: any): boolean {\n return a !== b;\n }\n }\n\n export class ValueParameter<T> extends ParameterDefinition<T> {\n readonly isRouteId = false;\n readonly isArray = false;\n\n isEmptyValue(value: T): boolean {\n return _.isNil(value);\n }\n\n hasChanged(a: any, b: any): boolean {\n return a !== b;\n }\n }\n\n export class ArrayParameter<T> extends ParameterDefinition<T[], T> {\n readonly isRouteId = false;\n readonly isArray = true;\n\n constructor(parameterName: string, options: Options<T[]>, urlFormat: Formatter<T>) {\n super(parameterName, options, urlFormat);\n }\n\n isEmptyValue(value: T[]): boolean {\n return _.isNil(value) || value.length < 1;\n }\n\n hasChanged(a: T[], b: T[]): boolean {\n return !_.isEqual(a, b);\n }\n\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=parameter-sanitiser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-sanitiser.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/route/parameter-sanitiser.ts"],"names":[],"mappings":"","sourcesContent":["import { Injector } from '@angular/core';\nimport { Visit } from '../visit';\nimport { ParameterSnapshot } from './parameter-snapshot';\n\nexport interface ParameterSanitiser<S> {\n sanitise(parameterValue: ParameterSnapshot<S>, visit?: Visit, injector?: Injector): Promise<S> | S;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=parameter-snapshot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-snapshot.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/route/parameter-snapshot.ts"],"names":[],"mappings":"","sourcesContent":["import { ParameterDefinition } from './parameter-definition.class';\n\nexport interface ParameterSnapshot<T> {\n definition: ParameterDefinition<T, any>\n readonly value: T;\n isMissing(): boolean;\n}\n"]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __generator } from "tslib";
|
|
2
|
-
var VisitSanitiser = /** @class */ (function () {
|
|
3
|
-
function VisitSanitiser(navigationSession, activatedRoute, router, placeHistory, injector) {
|
|
4
|
-
this.navigationSession = navigationSession;
|
|
5
|
-
this.activatedRoute = activatedRoute;
|
|
6
|
-
this.router = router;
|
|
7
|
-
this.placeHistory = placeHistory;
|
|
8
|
-
this.injector = injector;
|
|
9
|
-
}
|
|
10
|
-
// @Trace()
|
|
11
|
-
VisitSanitiser.prototype.sanitise = function (visit) {
|
|
12
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
13
|
-
var placeDef, routeIdDef, routeId, sanitisedValue, parameterDefs, sanitisedVisit, i, def, value, sanitisedValue;
|
|
14
|
-
return __generator(this, function (_a) {
|
|
15
|
-
switch (_a.label) {
|
|
16
|
-
case 0:
|
|
17
|
-
placeDef = visit.placeDefinition;
|
|
18
|
-
if (!placeDef.hasRouteId()) return [3 /*break*/, 2];
|
|
19
|
-
routeIdDef = placeDef.getRouteIdParameterDef();
|
|
20
|
-
routeId = visit.getRouteId();
|
|
21
|
-
return [4 /*yield*/, routeIdDef.sanitise(routeId, visit, this.placeHistory, this.injector, this.navigationSession.isPopState)];
|
|
22
|
-
case 1:
|
|
23
|
-
sanitisedValue = _a.sent();
|
|
24
|
-
console.log({ routeId: routeId, sanitisedValue: sanitisedValue });
|
|
25
|
-
// ###------- EARLY EXIT --------###
|
|
26
|
-
if (routeIdDef.hasChanged(routeId, sanitisedValue)) {
|
|
27
|
-
// if the route id has changed we redirect immediately as other
|
|
28
|
-
// parameter sanitisers might use it.
|
|
29
|
-
return [2 /*return*/, visit.replace(routeIdDef, sanitisedValue)];
|
|
30
|
-
}
|
|
31
|
-
_a.label = 2;
|
|
32
|
-
case 2:
|
|
33
|
-
parameterDefs = placeDef.getVisitParameterDefs({
|
|
34
|
-
includeRouteParameters: true,
|
|
35
|
-
includeNonRouteParameters: true
|
|
36
|
-
});
|
|
37
|
-
sanitisedVisit = visit;
|
|
38
|
-
i = 0;
|
|
39
|
-
_a.label = 3;
|
|
40
|
-
case 3:
|
|
41
|
-
if (!(i < parameterDefs.length)) return [3 /*break*/, 6];
|
|
42
|
-
def = parameterDefs[i];
|
|
43
|
-
value = visit.getParameter(def.name);
|
|
44
|
-
return [4 /*yield*/, def.sanitise(value, sanitisedVisit, this.placeHistory, this.injector, this.navigationSession.isPopState)];
|
|
45
|
-
case 4:
|
|
46
|
-
sanitisedValue = _a.sent();
|
|
47
|
-
if (def.hasChanged(value, sanitisedValue)) {
|
|
48
|
-
sanitisedVisit = sanitisedVisit.replace(def, sanitisedValue);
|
|
49
|
-
}
|
|
50
|
-
_a.label = 5;
|
|
51
|
-
case 5:
|
|
52
|
-
i++;
|
|
53
|
-
return [3 /*break*/, 3];
|
|
54
|
-
case 6: return [2 /*return*/, sanitisedVisit.hasChangedFrom(visit) ? sanitisedVisit : visit];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
return VisitSanitiser;
|
|
60
|
-
}());
|
|
61
|
-
export { VisitSanitiser };
|
|
62
|
-
//# sourceMappingURL=visit-sanitiser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visit-sanitiser.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/route/visit-sanitiser.ts"],"names":[],"mappings":";AAOA;IACE,wBAAoB,iBAAoC,EAAU,cAAsC,EAAU,MAAc,EAAU,YAA0B,EAAU,QAAkB;Q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AC,CAAC;wBACpB,qBAAM,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAA;;wBAA/H,cAAc,GAAG,SAA8G;wBACrI,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,EAAE;4BACzC,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;yBAC9D;;;wBANuC,CAAC,EAAE,CAAA;;4BAS7C,sBAAO,cAAc,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,EAAC;;;;KACtE;IAEH,qBAAC;AAAD,CAAC,AAvCD,IAuCC","sourcesContent":["import { Injector } from '@angular/core';\nimport { ActivatedRouteSnapshot, Router } from '@angular/router';\nimport { Trace } from '@coolon/pectin';\nimport { NavigationSession } from '../navigation/session/navigation-session';\nimport { PlaceHistory } from '../place-history';\nimport { Visit } from '../visit';\n\nexport class VisitSanitiser {\n constructor(private navigationSession: NavigationSession, private activatedRoute: ActivatedRouteSnapshot, private router: Router, private placeHistory: PlaceHistory, private injector: Injector) {\n\n }\n\n // @Trace()\n async sanitise(visit: Visit): Promise<Visit> {\n const placeDef = visit.placeDefinition;\n if (placeDef.hasRouteId()) {\n const routeIdDef = placeDef.getRouteIdParameterDef();\n const routeId = visit.getRouteId();\n const sanitisedValue = await routeIdDef.sanitise(routeId, visit, this.placeHistory, this.injector, this.navigationSession.isPopState);\n console.log({routeId, sanitisedValue});\n // ###------- EARLY EXIT --------###\n if (routeIdDef.hasChanged(routeId, sanitisedValue)) {\n // if the route id has changed we redirect immediately as other\n // parameter sanitisers might use it.\n return visit.replace(routeIdDef, sanitisedValue);\n }\n }\n\n // if we didn't replace the routeId we continue the url present parameters.\n const parameterDefs = placeDef.getVisitParameterDefs({\n includeRouteParameters: true,\n includeNonRouteParameters: true\n });\n let sanitisedVisit: Visit = visit;\n for (let i = 0; i < parameterDefs.length; i++) {\n const def = parameterDefs[i];\n const value = visit.getParameter(def.name);\n const sanitisedValue = await def.sanitise(value, sanitisedVisit, this.placeHistory, this.injector, this.navigationSession.isPopState);\n if (def.hasChanged(value, sanitisedValue)) {\n sanitisedVisit = sanitisedVisit.replace(def, sanitisedValue);\n }\n }\n\n return sanitisedVisit.hasChangedFrom(visit) ? sanitisedVisit : visit;\n }\n\n}\n"]}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Location } from '@angular/common';
|
|
3
|
-
import { Injectable } from '@angular/core';
|
|
4
|
-
import { Router, UrlSerializer } from '@angular/router';
|
|
5
|
-
import { UrlSnapshot } from './url-snapshot';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/router";
|
|
8
|
-
import * as i2 from "@angular/common";
|
|
9
|
-
var UrlService = /** @class */ (function () {
|
|
10
|
-
function UrlService(angularRouter, angularLocation, urlSerializer) {
|
|
11
|
-
this.angularRouter = angularRouter;
|
|
12
|
-
this.angularLocation = angularLocation;
|
|
13
|
-
this.urlSerializer = urlSerializer;
|
|
14
|
-
}
|
|
15
|
-
UrlService.prototype.parseUrl = function (url) {
|
|
16
|
-
return new UrlSnapshot(this.urlSerializer, url);
|
|
17
|
-
};
|
|
18
|
-
UrlService.prototype.createUrlSnapshot = function () {
|
|
19
|
-
var _this = this;
|
|
20
|
-
var visits = [];
|
|
21
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
22
|
-
visits[_i] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
var bits = [];
|
|
25
|
-
visits.forEach(function (v) {
|
|
26
|
-
bits.push(_this.parseUrl("" + v.placeDefinition.path).updateVisitSegments(v).url);
|
|
27
|
-
});
|
|
28
|
-
return this.parseUrl(bits.join(''));
|
|
29
|
-
};
|
|
30
|
-
UrlService.prototype.getCurrentRouterUrl = function () {
|
|
31
|
-
return this.angularRouter.routerState ? this.angularRouter.routerState.snapshot.url : null;
|
|
32
|
-
};
|
|
33
|
-
UrlService.prototype.getCurrentLocationUrl = function () {
|
|
34
|
-
return this.angularLocation.path();
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Return the a UrlSnapshot using the browsers current location. Note this may not be the same
|
|
38
|
-
* as the routers current url.
|
|
39
|
-
*/
|
|
40
|
-
UrlService.prototype.getCurrentLocationUrlSnapshot = function () {
|
|
41
|
-
return this.parseUrl(this.getCurrentLocationUrl());
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Return the a UrlSnapshot using the routers current state. This may not be the same as
|
|
45
|
-
* the browsers actual url.
|
|
46
|
-
*/
|
|
47
|
-
UrlService.prototype.getCurrentRouterSnapshot = function () {
|
|
48
|
-
return this.parseUrl(this.getCurrentRouterUrl());
|
|
49
|
-
};
|
|
50
|
-
UrlService.prototype.getActiveInteractionIdsFromUrl = function (url) {
|
|
51
|
-
return this.parseUrl(url).getInteractionIds();
|
|
52
|
-
};
|
|
53
|
-
UrlService.prototype.hasActiveInteractions = function (url) {
|
|
54
|
-
return this.getActiveInteractionIdsFromUrl(url).length > 0;
|
|
55
|
-
};
|
|
56
|
-
UrlService.prototype.resetBrowserLocation = function (url, options) {
|
|
57
|
-
options.replaceCurrent ? this.angularLocation.replaceState(url) : this.angularLocation.go(url);
|
|
58
|
-
};
|
|
59
|
-
UrlService.prototype.back = function () {
|
|
60
|
-
this.angularLocation.back();
|
|
61
|
-
};
|
|
62
|
-
UrlService.ctorParameters = function () { return [
|
|
63
|
-
{ type: Router },
|
|
64
|
-
{ type: Location },
|
|
65
|
-
{ type: UrlSerializer }
|
|
66
|
-
]; };
|
|
67
|
-
UrlService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UrlService_Factory() { return new UrlService(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i2.Location), i0.ɵɵinject(i1.UrlSerializer)); }, token: UrlService, providedIn: "root" });
|
|
68
|
-
UrlService = __decorate([
|
|
69
|
-
Injectable({
|
|
70
|
-
providedIn: 'root'
|
|
71
|
-
}),
|
|
72
|
-
__metadata("design:paramtypes", [Router, Location, UrlSerializer])
|
|
73
|
-
], UrlService);
|
|
74
|
-
return UrlService;
|
|
75
|
-
}());
|
|
76
|
-
export { UrlService };
|
|
77
|
-
//# sourceMappingURL=url-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-service.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/url-service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;;;AAM7C;IACE,oBAA6B,aAAqB,EAAW,eAAyB,EAAW,aAA4B;QAAhG,kBAAa,GAAb,aAAa,CAAQ;QAAW,oBAAe,GAAf,eAAe,CAAU;QAAW,kBAAa,GAAb,aAAa,CAAe;IAC7H,CAAC;IAED,6BAAQ,GAAR,UAAS,GAAW;QAClB,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IAClD,CAAC;IAED,sCAAiB,GAAjB;QAAA,iBAMC;QANiB,gBAAkB;aAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;YAAlB,2BAAkB;;QAClC,IAAM,IAAI,GAAG,EAAE,CAAC;QAChB,MAAM,CAAC,OAAO,CAAC,UAAA,CAAC;YACd,IAAI,CAAC,IAAI,CAAC,KAAI,CAAC,QAAQ,CAAC,KAAG,CAAC,CAAC,eAAe,CAAC,IAAM,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,GA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;;;IADlH,UAAU;QAHtB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAE4C,MAAM,EAA4B,QAAQ,EAA0B,aAAa;OADlH,UAAU,CAyDtB;qBAlED;CAkEC,AAzDD,IAyDC;SAzDY,UAAU","sourcesContent":["import { Location } from '@angular/common';\nimport { Injectable } from '@angular/core';\nimport { Router, UrlSerializer } from '@angular/router';\nimport { UrlSnapshot } from './url-snapshot';\nimport { Visit } from './visit';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UrlService {\n constructor(private readonly angularRouter: Router, readonly angularLocation: Location, readonly urlSerializer: UrlSerializer) {\n }\n\n parseUrl(url: string): UrlSnapshot {\n return new UrlSnapshot(this.urlSerializer, url);\n }\n\n createUrlSnapshot(...visits: Visit[]): UrlSnapshot {\n const bits = [];\n visits.forEach(v => {\n bits.push(this.parseUrl(`${v.placeDefinition.path}`).updateVisitSegments(v).url);\n });\n return this.parseUrl(bits.join(''));\n }\n\n getCurrentRouterUrl(): string {\n return this.angularRouter.routerState ? this.angularRouter.routerState.snapshot.url : null;\n }\n\n getCurrentLocationUrl(): string {\n return this.angularLocation.path();\n }\n\n /**\n * Return the a UrlSnapshot using the browsers current location. Note this may not be the same\n * as the routers current url.\n */\n getCurrentLocationUrlSnapshot(): UrlSnapshot {\n return this.parseUrl(this.getCurrentLocationUrl());\n }\n\n /**\n * Return the a UrlSnapshot using the routers current state. This may not be the same as\n * the browsers actual url.\n */\n getCurrentRouterSnapshot(): UrlSnapshot {\n return this.parseUrl(this.getCurrentRouterUrl());\n }\n\n getActiveInteractionIdsFromUrl(url: string): string[] {\n return this.parseUrl(url).getInteractionIds();\n }\n\n hasActiveInteractions(url: string) {\n return this.getActiveInteractionIdsFromUrl(url).length > 0;\n }\n\n resetBrowserLocation(url: string, options: { replaceCurrent: boolean }) {\n options.replaceCurrent ? this.angularLocation.replaceState(url) : this.angularLocation.go(url);\n }\n\n back() {\n this.angularLocation.back();\n }\n\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-service.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/url-service.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { __read, __spread } from "tslib";
|
|
2
|
-
import { UrlSegment } from '@angular/router';
|
|
3
|
-
import _ from 'lodash';
|
|
4
|
-
var UrlSnapshot = /** @class */ (function () {
|
|
5
|
-
// TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
|
|
6
|
-
function UrlSnapshot(urlSerializer, url) {
|
|
7
|
-
this.urlSerializer = urlSerializer;
|
|
8
|
-
this.url = url;
|
|
9
|
-
this.urlTree = urlSerializer.parse(url);
|
|
10
|
-
}
|
|
11
|
-
UrlSnapshot.prototype.updateVisitSegments = function (visit) {
|
|
12
|
-
var urlTree = this.urlSerializer.parse(this.url);
|
|
13
|
-
// Ugly, but it works for now.
|
|
14
|
-
var segments = __spread(this.getPrimarySegments(urlTree));
|
|
15
|
-
var visitSegments = this.getSegmentsFor(visit);
|
|
16
|
-
var replaceAt = segments.findIndex(function (segment) { return segment.path === visitSegments[0].path; });
|
|
17
|
-
// do not use the return value, it's the items that were removed!
|
|
18
|
-
segments.splice.apply(segments, __spread([replaceAt, visitSegments.length], visitSegments));
|
|
19
|
-
urlTree.root.children.primary.segments = segments;
|
|
20
|
-
return new UrlSnapshot(this.urlSerializer, urlTree.toString());
|
|
21
|
-
};
|
|
22
|
-
UrlSnapshot.prototype.getPrimarySegments = function (urlTree) {
|
|
23
|
-
return this.urlTree.root.children.primary.segments;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Converts the visit into segments. Please not that these segments are not e
|
|
27
|
-
* @param visit
|
|
28
|
-
*/
|
|
29
|
-
UrlSnapshot.prototype.getSegmentsFor = function (visit) {
|
|
30
|
-
return visit.placeDefinition.hasRouteId() ?
|
|
31
|
-
[
|
|
32
|
-
// NOTE:
|
|
33
|
-
// It's important to attach the params to the root path and not the id. If we attach them
|
|
34
|
-
// to an empty id then the angular router won't match the pattern.
|
|
35
|
-
new UrlSegment(visit.placeDefinition.path, visit.placeDefinition.getFormattedRouteParameters(visit)),
|
|
36
|
-
new UrlSegment(visit.placeDefinition.getFormattedRouteId(visit), {})
|
|
37
|
-
]
|
|
38
|
-
:
|
|
39
|
-
[
|
|
40
|
-
new UrlSegment(visit.placeDefinition.path, visit.placeDefinition.getFormattedRouteParameters(visit))
|
|
41
|
-
];
|
|
42
|
-
};
|
|
43
|
-
UrlSnapshot.prototype.includesPathOf = function (placeDef) {
|
|
44
|
-
return this.getPrimarySegments(this.urlTree).find(function (s) { return s.path === placeDef.path; });
|
|
45
|
-
};
|
|
46
|
-
UrlSnapshot.prototype.getInteractionIds = function () {
|
|
47
|
-
var queryParam = this.urlTree.queryParams[UrlSnapshot.INTERACTION_QUERY_PARAM];
|
|
48
|
-
if (queryParam) {
|
|
49
|
-
return UrlSnapshot.parseInteractionIds(queryParam);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return [];
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
UrlSnapshot.prototype.hasInteractions = function () {
|
|
56
|
-
return this.getInteractionIds().length > 0;
|
|
57
|
-
};
|
|
58
|
-
UrlSnapshot.prototype.hasInteractionIds = function (ids) {
|
|
59
|
-
return _.isEqual(this.getInteractionIds(), ids);
|
|
60
|
-
};
|
|
61
|
-
// @Trace()
|
|
62
|
-
UrlSnapshot.prototype.updateInteractionIds = function (ids) {
|
|
63
|
-
if (ids.length === 0) {
|
|
64
|
-
return this.removeInteractionIds();
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
var urlTree = this.urlSerializer.parse(this.url);
|
|
68
|
-
urlTree.queryParams[UrlSnapshot.INTERACTION_QUERY_PARAM] = UrlSnapshot.createPathIdFor(ids);
|
|
69
|
-
return new UrlSnapshot(this.urlSerializer, urlTree.toString());
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
// @Trace()
|
|
73
|
-
UrlSnapshot.prototype.removeInteractionIds = function () {
|
|
74
|
-
var urlTree = this.urlSerializer.parse(this.url);
|
|
75
|
-
if (urlTree.queryParams && urlTree.queryParams[UrlSnapshot.INTERACTION_QUERY_PARAM]) {
|
|
76
|
-
urlTree.queryParams = {}; //[UrlSnapshot.INTERACTION_ROUTER_OUTLET]
|
|
77
|
-
}
|
|
78
|
-
return new UrlSnapshot(this.urlSerializer, urlTree.toString());
|
|
79
|
-
};
|
|
80
|
-
UrlSnapshot.prototype.toString = function () {
|
|
81
|
-
return "UrlSnapshot(" + this.url + ")";
|
|
82
|
-
};
|
|
83
|
-
return UrlSnapshot;
|
|
84
|
-
}());
|
|
85
|
-
export { UrlSnapshot };
|
|
86
|
-
(function (UrlSnapshot) {
|
|
87
|
-
UrlSnapshot.INTERACTION_QUERY_PARAM = 'aup-interactions';
|
|
88
|
-
UrlSnapshot.INTERACTION_ID_SEPARATOR = '--';
|
|
89
|
-
function parseInteractionIds(path) {
|
|
90
|
-
return path.split(UrlSnapshot.INTERACTION_ID_SEPARATOR);
|
|
91
|
-
}
|
|
92
|
-
UrlSnapshot.parseInteractionIds = parseInteractionIds;
|
|
93
|
-
function createPathIdFor(interactionIds) {
|
|
94
|
-
return interactionIds.join(UrlSnapshot.INTERACTION_ID_SEPARATOR);
|
|
95
|
-
}
|
|
96
|
-
UrlSnapshot.createPathIdFor = createPathIdFor;
|
|
97
|
-
})(UrlSnapshot || (UrlSnapshot = {}));
|
|
98
|
-
//# sourceMappingURL=url-snapshot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-snapshot.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/url-snapshot.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA0B,MAAM,iBAAiB,CAAC;A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Content":["import { UrlSegment, UrlSerializer, UrlTree } from '@angular/router';\nimport _ from 'lodash';\nimport { PlaceDefinition } from './place-definition';\nimport { Visit } from './visit';\n\nexport class UrlSnapshot {\n\n readonly urlTree: UrlTree;\n\n // TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.\n constructor(readonly urlSerializer: UrlSerializer, readonly url: string) {\n this.urlTree = urlSerializer.parse(url);\n }\n\n public updateVisitSegments(visit: Visit): UrlSnapshot {\n const urlTree = this.urlSerializer.parse(this.url);\n // Ugly, but it works for now.\n const segments = [...this.getPrimarySegments(urlTree)];\n const visitSegments = this.getSegmentsFor(visit);\n const replaceAt = segments.findIndex(segment => segment.path === visitSegments[0].path);\n // do not use the return value, it's the items that were removed!\n segments.splice(replaceAt, visitSegments.length, ...visitSegments);\n urlTree.root.children.primary.segments = segments;\n return new UrlSnapshot(this.urlSerializer, urlTree.toString());\n }\n\n private getPrimarySegments(urlTree: UrlTree) {\n return this.urlTree.root.children.primary.segments;\n }\n\n /**\n * Converts the visit into segments. Please not that these segments are not e\n * @param visit\n */\n protected getSegmentsFor(visit: Visit): UrlSegment[] {\n return visit.placeDefinition.hasRouteId() ?\n [\n // NOTE:\n // It's important to attach the params to the root path and not the id. If we attach them\n // to an empty id then the angular router won't match the pattern.\n new UrlSegment(visit.placeDefinition.path, visit.placeDefinition.getFormattedRouteParameters(visit)),\n new UrlSegment(visit.placeDefinition.getFormattedRouteId(visit), {})]\n :\n [\n new UrlSegment(visit.placeDefinition.path, visit.placeDefinition.getFormattedRouteParameters(visit))\n ];\n }\n\n includesPathOf(placeDef: PlaceDefinition) {\n return this.getPrimarySegments(this.urlTree).find(s => s.path === placeDef.path);\n }\n\n getInteractionIds() {\n const queryParam = this.urlTree.queryParams[UrlSnapshot.INTERACTION_QUERY_PARAM];\n if (queryParam) {\n return UrlSnapshot.parseInteractionIds(queryParam);\n } else {\n return [];\n }\n }\n\n hasInteractions() {\n return this.getInteractionIds().length > 0;\n }\n\n hasInteractionIds(ids: string[]): boolean {\n return _.isEqual(this.getInteractionIds(), ids);\n }\n\n // @Trace()\n updateInteractionIds(ids: string[]): UrlSnapshot {\n if (ids.length === 0) {\n return this.removeInteractionIds();\n } else {\n const urlTree = this.urlSerializer.parse(this.url);\n urlTree.queryParams[UrlSnapshot.INTERACTION_QUERY_PARAM] = UrlSnapshot.createPathIdFor(ids);\n return new UrlSnapshot(this.urlSerializer, urlTree.toString());\n }\n }\n\n // @Trace()\n removeInteractionIds(): UrlSnapshot {\n const urlTree = this.urlSerializer.parse(this.url);\n if (urlTree.queryParams && urlTree.queryParams[UrlSnapshot.INTERACTION_QUERY_PARAM]) {\n urlTree.queryParams = {};//[UrlSnapshot.INTERACTION_ROUTER_OUTLET]\n }\n return new UrlSnapshot(this.urlSerializer, urlTree.toString());\n }\n\n toString(): string {\n return `UrlSnapshot(${this.url})`;\n }\n\n // withOptions(options: NavigationExtras) {\n // return new UrlSnapshot(this.urlSerializer, this.url, options);\n // }\n //\n // @Trace()\n // getNavigationExtras(): NavigationExtras {\n // return this.options;\n // }\n\n}\n\nexport namespace UrlSnapshot {\n\n export const INTERACTION_QUERY_PARAM = 'aup-interactions';\n export const INTERACTION_ID_SEPARATOR = '--';\n\n export function parseInteractionIds(path: string) {\n return path.split(INTERACTION_ID_SEPARATOR);\n }\n\n export function createPathIdFor(interactionIds: string[]) {\n return interactionIds.join(INTERACTION_ID_SEPARATOR);\n }\n\n export interface NavigationOptions {\n replaceUrl?: boolean;\n }\n}\n"]}
|
package/esm5/lib/place/visit.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
|
-
import * as _ from 'lodash';
|
|
3
|
-
var Visit = /** @class */ (function () {
|
|
4
|
-
function Visit(placeDefinition, visitParameters) {
|
|
5
|
-
if (visitParameters === void 0) { visitParameters = {}; }
|
|
6
|
-
this.placeDefinition = placeDefinition;
|
|
7
|
-
this.visitParameters = visitParameters;
|
|
8
|
-
}
|
|
9
|
-
// @Trace()
|
|
10
|
-
Visit.prototype.getRouteId = function () {
|
|
11
|
-
return this.placeDefinition.getRouteIdFrom(this);
|
|
12
|
-
};
|
|
13
|
-
// @Trace()
|
|
14
|
-
Visit.prototype.hasRouteId = function () {
|
|
15
|
-
return !_.isNil(this.getRouteId());
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Returns the value of the place parameter with the specified name. The parameter
|
|
19
|
-
* name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
|
|
20
|
-
* same as the the ValueModel property name.
|
|
21
|
-
* @param parameterName the field name of the property model or the `as` option if specified.
|
|
22
|
-
*/
|
|
23
|
-
Visit.prototype.getParameter = function (parameterName) {
|
|
24
|
-
return this.visitParameters[parameterName];
|
|
25
|
-
};
|
|
26
|
-
// @Trace()
|
|
27
|
-
Visit.prototype.hasParameter = function (parameterName) {
|
|
28
|
-
return Object.keys(this.visitParameters).includes(parameterName);
|
|
29
|
-
};
|
|
30
|
-
Visit.prototype.replace = function (parameter, value) {
|
|
31
|
-
var _a;
|
|
32
|
-
return new Visit(this.placeDefinition, __assign(__assign({}, this.visitParameters), (_a = {}, _a[parameter.name] = value, _a)));
|
|
33
|
-
};
|
|
34
|
-
Visit.prototype.mergeRouteParameters = function (routeParams) {
|
|
35
|
-
var _this = this;
|
|
36
|
-
// todo: whitelist parameters.
|
|
37
|
-
var routeParameterKeys = Object.keys(routeParams);
|
|
38
|
-
var params = {};
|
|
39
|
-
this.placeDefinition.getVisitParameterDefs().forEach(function (def) {
|
|
40
|
-
if (def.isRouteId || def.isRouteParameter) {
|
|
41
|
-
if (routeParameterKeys.includes(def.name)) {
|
|
42
|
-
params[def.name] = routeParams[def.name];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
// copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the
|
|
47
|
-
// defaults and remember sanitisation process.
|
|
48
|
-
var value = _this.getParameter(def.name);
|
|
49
|
-
if (_this.hasParameter(def.name)) {
|
|
50
|
-
params[def.name] = value;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
return new Visit(this.placeDefinition, params);
|
|
55
|
-
};
|
|
56
|
-
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
57
|
-
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
58
|
-
var sameRouteParameters = _.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
59
|
-
return !samePlace || !sameRouteParameters;
|
|
60
|
-
};
|
|
61
|
-
Visit.prototype.hasChangedFrom = function (other) {
|
|
62
|
-
var sameNonRouteParameters = _.isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
|
|
63
|
-
return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
|
|
64
|
-
};
|
|
65
|
-
Visit.prototype.toDebugString = function () {
|
|
66
|
-
var _this = this;
|
|
67
|
-
return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(",");
|
|
68
|
-
};
|
|
69
|
-
return Visit;
|
|
70
|
-
}());
|
|
71
|
-
export { Visit };
|
|
72
|
-
//# sourceMappingURL=visit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visit.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/visit.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAS5B;IAEE,eAAqB,eAAgC,EAAmB,eAA4B;QAA5B,gCAAA,EAAA,oBAA4B;QAA/E,oBAAe,GAAf,eAAe,CAAiB;QAAmB,oBAAe,GAAf,eAAe,CAAa;IACpG,CAAC;IAED,WAAW;IACX,0BAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAED,WAAW;IACX,0BAAU,GAAV;QACE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,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;iBAC1B;aACF;QACH,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,qCAAqB,GAArB,UAAsB,KAAY;QAChC,IAAM,SAAS,GAAG,KAAK,CAAC,eAAe,KAAK,IAAI,CAAC,eAAe,CAAC;QACjE,IAAM,mBAAmB,GAAG,CAAC,CAAC,OAAO,CACnC,IAAI,CAAC,eAAe,CAAC,2BAA2B,CAAC,IAAI,EAAE,IAAI,CAAC,EAC5D,IAAI,CAAC,eAAe,CAAC,2BAA2B,CAAC,KAAK,EAAE,IAAI,CAAC,CAC9D,CAAC;QACF,OAAO,CAAC,SAAS,IAAI,CAAC,mBAAmB,CAAC;IAC5C,CAAC;IAED,8BAAc,GAAd,UAAe,KAAY;QACzB,IAAM,sBAAsB,GAAG,CAAC,CAAC,OAAO,CACtC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAChD,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAClD,CAAC;QACF,OAAO,CAAC,sBAAsB,IAAI,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;IACtE,CAAC;IAED,6BAAa,GAAb;QAAA,iBAEC;QADC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAG,CAAC,SAAI,KAAI,CAAC,eAAe,CAAC,CAAC,CAAG,EAAjC,CAAiC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjG,CAAC;IAEH,YAAC;AAAD,CAAC,AA5ED,IA4EC","sourcesContent":["import { UrlSegment } from '@angular/router';\nimport * as _ from 'lodash';\nimport { PlaceDefinition } from './place-definition';\nimport { ParameterDefinition } from './route/parameter-definition.class';\n\ninterface Params {\n [p: string]: any\n}\n\n\nexport class Visit {\n\n constructor(readonly placeDefinition: PlaceDefinition, private readonly visitParameters: Params = {}) {\n }\n\n // @Trace()\n getRouteId(): any {\n return this.placeDefinition.getRouteIdFrom(this);\n }\n\n // @Trace()\n hasRouteId(): boolean {\n return !_.isNil(this.getRouteId());\n }\n\n /**\n * Returns the value of the place parameter with the specified name. The parameter\n * name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the\n * same as the the ValueModel property name.\n * @param parameterName the field name of the property model or the `as` option if specified.\n */\n getParameter(parameterName: string): any {\n return this.visitParameters[parameterName];\n }\n\n // @Trace()\n hasParameter(parameterName: string) {\n return Object.keys(this.visitParameters).includes(parameterName);\n }\n\n replace<S>(parameter: ParameterDefinition<any, S>, value: S): Visit {\n return new Visit(this.placeDefinition, { ...this.visitParameters, [parameter.name]: value });\n }\n\n mergeRouteParameters<S>(routeParams: { [p: string]: any }): Visit {\n // todo: whitelist parameters.\n const routeParameterKeys = Object.keys(routeParams);\n const params = {};\n this.placeDefinition.getVisitParameterDefs().forEach(def => {\n if (def.isRouteId || def.isRouteParameter) {\n if (routeParameterKeys.includes(def.name)) {\n params[def.name] = routeParams[def.name];\n }\n } else {\n // copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the\n // defaults and remember sanitisation process.\n const value = this.getParameter(def.name);\n if (this.hasParameter(def.name)) {\n params[def.name] = value;\n }\n }\n });\n return new Visit(this.placeDefinition, params);\n }\n\n hasRoutingChangedFrom(other: Visit): boolean {\n const samePlace = other.placeDefinition === this.placeDefinition;\n const sameRouteParameters = _.isEqual(\n this.placeDefinition.getFormattedRouteParameters(this, true),\n this.placeDefinition.getFormattedRouteParameters(other, true)\n );\n return !samePlace || !sameRouteParameters;\n }\n\n hasChangedFrom(other: Visit) {\n const sameNonRouteParameters = _.isEqual(\n this.placeDefinition.getNonRouteParameters(this),\n this.placeDefinition.getNonRouteParameters(other)\n );\n return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);\n }\n\n toDebugString() {\n return Object.keys(this.visitParameters).map(k => `${k}=${this.visitParameters[k]}`).join(\",\");\n }\n\n}\n"]}
|
package/esm5/public_api.js
DELETED
package/esm5/public_api.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["public_api.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC","sourcesContent":["export * from './lib/angular-ui-powerups.module';\nexport * from './lib/animations';\nexport * from './lib/components';\nexport * from './lib/directives';\nexport * from './lib/interaction';\nexport * from './lib/place';\n"]}
|