@coolon/angular-ui-powerups 2.0.0-alpha.38 → 2.0.0-alpha.5
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 +0 -226
- package/assets/interaction.scss +0 -5
- package/assets/styles.scss +0 -2
- package/assets/tabs.scss +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +394 -1763
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +54 -67
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +52 -65
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +14 -54
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.js +4 -12
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.js +14 -27
- 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-value-input.component.js +15 -31
- 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/checkbox-input/checkbox-input.component.js +1 -1
- 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/multiple-select-input/multiple-select-input.component.js +9 -8
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js +1 -1
- 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/password-input/password-input.component.js +1 -1
- 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/select-input/select-input.component.js +1 -2
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +3 -3
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.js +4 -17
- 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/index.js +1 -18
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/{cell-portal-ref.js → cell-protal-ref.js} +3 -7
- package/esm2015/lib/components/table/cell-protal-ref.js.map +1 -0
- package/esm2015/lib/components/table/{cell-portal-ref.metadata.json → cell-protal-ref.metadata.json} +1 -1
- package/esm2015/lib/components/table/column-model.js +11 -66
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-model.js +12 -15
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.js +1 -1
- 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/interaction/activity-ref.js +2 -10
- package/esm2015/lib/interaction/activity-ref.js.map +1 -1
- package/esm2015/lib/interaction/activity-ref.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.js +1 -18
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +17 -24
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +3 -4
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.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/place-outlet/place-outlet.component.js +16 -56
- 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/side-place-navigation/side-place-navigation.component.js +2 -2
- 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/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- 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.metadata.json +1 -1
- package/esm2015/lib/place/place-component.js +1 -13
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +8 -2
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.module.js +3 -3
- package/esm2015/lib/place/place.module.js.map +1 -1
- package/esm2015/lib/place/place.module.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.js +3 -2
- package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
- package/esm5/coolon-angular-ui-powerups.js +52 -65
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/card-container/card-container.component.js +1 -1
- package/esm5/lib/components/components.module.js +14 -54
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/forms/abstract-input.component.js +4 -12
- package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-list-input.component.js +14 -27
- package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +15 -31
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js +9 -8
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +1 -2
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +3 -3
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm5/lib/components/icon/icon.component.js +3 -15
- package/esm5/lib/components/icon/icon.component.js.map +1 -1
- package/esm5/lib/components/index.js +1 -18
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/{cell-portal-ref.js → cell-protal-ref.js} +3 -7
- package/esm5/lib/components/table/cell-protal-ref.js.map +1 -0
- package/esm5/lib/components/table/column-model.js +11 -67
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +13 -15
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table.component.js +1 -1
- package/esm5/lib/components/table/table.component.js.map +1 -1
- package/esm5/lib/interaction/activity-ref.js +2 -14
- package/esm5/lib/interaction/activity-ref.js.map +1 -1
- package/esm5/lib/interaction/activity.js +1 -27
- package/esm5/lib/interaction/activity.js.map +1 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +17 -24
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/components/abstract-place-navigation.component.js +3 -4
- package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +16 -56
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/place-component.js +1 -17
- package/esm5/lib/place/place-component.js.map +1 -1
- package/esm5/lib/place/place-router.js +8 -2
- package/esm5/lib/place/place-router.js.map +1 -1
- package/esm5/lib/place/place.module.js +3 -3
- package/esm5/lib/place/place.module.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/route/parameter-decorators.js +3 -2
- package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +307 -1488
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +324 -1673
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +2 -8
- package/lib/components/forms/abstract-list-input.component.d.ts +3 -4
- package/lib/components/forms/abstract-value-input.component.d.ts +4 -5
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +2 -7
- package/lib/components/forms/select-input/select-input.component.d.ts +0 -1
- package/lib/components/icon/icon.component.d.ts +0 -15
- package/lib/components/index.d.ts +1 -19
- package/lib/components/table/{cell-portal-ref.d.ts → cell-protal-ref.d.ts} +4 -4
- package/lib/components/table/column-model.d.ts +12 -18
- package/lib/components/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
- package/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.d.ts +1 -1
- package/lib/components/table/table-model.d.ts +5 -13
- package/lib/interaction/activity-ref.d.ts +0 -3
- package/lib/interaction/activity.d.ts +2 -6
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -4
- package/lib/place/components/abstract-place-navigation.component.d.ts +2 -2
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +2 -8
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
- package/lib/place/place-component.d.ts +0 -6
- package/package.json +4 -4
- package/assets/commands.scss +0 -3
- package/assets/icons.scss +0 -30
- package/esm2015/lib/components/commands/command/command.component.js +0 -61
- package/esm2015/lib/components/commands/command/command.component.js.map +0 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js +0 -92
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/command-face.js +0 -112
- package/esm2015/lib/components/commands/command-face.js.map +0 -1
- package/esm2015/lib/components/commands/command-face.metadata.json +0 -1
- package/esm2015/lib/components/commands/flex.component.js +0 -30
- package/esm2015/lib/components/commands/flex.component.js.map +0 -1
- package/esm2015/lib/components/commands/flex.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js +0 -47
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -55
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -39
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group.js +0 -100
- package/esm2015/lib/components/commands/group/command-group.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.js +0 -55
- package/esm2015/lib/components/commands/group/more-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.js +0 -65
- package/esm2015/lib/components/commands/group/popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/registration.js +0 -58
- package/esm2015/lib/components/commands/group/registration.js.map +0 -1
- package/esm2015/lib/components/commands/group/registration.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +0 -55
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/group/view-data.js +0 -104
- package/esm2015/lib/components/commands/group/view-data.js.map +0 -1
- package/esm2015/lib/components/commands/group/view-data.metadata.json +0 -1
- package/esm2015/lib/components/commands/separator.component.js +0 -35
- package/esm2015/lib/components/commands/separator.component.js.map +0 -1
- package/esm2015/lib/components/commands/separator.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -70
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/cell-portal-ref.js.map +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js.map +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.metadata.json +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +0 -73
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/track-by.js +0 -5
- package/esm2015/lib/components/track-by.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/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/table/cell-portal-ref.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/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/track-by.js +0 -5
- package/esm5/lib/components/track-by.js.map +0 -1
- package/lib/components/commands/command/command.component.d.ts +0 -22
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -34
- package/lib/components/commands/command-face.d.ts +0 -40
- package/lib/components/commands/flex.component.d.ts +0 -11
- package/lib/components/commands/group/command-group/command-group.component.d.ts +0 -11
- package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +0 -21
- package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +0 -13
- package/lib/components/commands/group/command-group.d.ts +0 -41
- package/lib/components/commands/group/more-menu.component.d.ts +0 -14
- package/lib/components/commands/group/popup-menu.component.d.ts +0 -17
- package/lib/components/commands/group/registration.d.ts +0 -32
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +0 -13
- package/lib/components/commands/group/view-data.d.ts +0 -40
- package/lib/components/commands/separator.component.d.ts +0 -12
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +0 -25
- package/lib/components/table/mutable-cell-renderer.d.ts +0 -6
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +0 -26
- package/lib/components/track-by.d.ts +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __extends, __decorate, __metadata, __param, __assign, __awaiter, __generator, __spread } from 'tslib';
|
|
2
2
|
import { DOCUMENT, CommonModule, Location } from '@angular/common';
|
|
3
|
-
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, ContentChild, TemplateRef, Component,
|
|
3
|
+
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, ContentChild, TemplateRef, Component, Self, HostBinding, EventEmitter, Output, ChangeDetectorRef, ContentChildren, QueryList, ViewContainerRef, InjectionToken, Injector, ComponentFactoryResolver, ViewChild, ViewChildren, Optional, SkipSelf } from '@angular/core';
|
|
4
4
|
import { FormsModule } from '@angular/forms';
|
|
5
5
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
6
|
import { MatInputModule } from '@angular/material/input';
|
|
@@ -9,29 +9,25 @@ import { MatTabsModule, MatTabGroup, MAT_TABS_CONFIG } from '@angular/material/t
|
|
|
9
9
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
10
10
|
import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
11
11
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
12
|
-
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
13
12
|
import { MatButtonModule } from '@angular/material/button';
|
|
14
13
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
15
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
16
14
|
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
-
import { MatMenu, MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
|
|
18
15
|
import { MatTableModule } from '@angular/material/table';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
22
|
-
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, MutableValueModel, StoreInValueModel, ValueModel, MutableListModel, Trace, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, StoreInListModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Functions } from '@coolon/pectin';
|
|
16
|
+
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, FocusManager, Form, Guard, MutableListModel, MutableValueModel, ListModel, StoreInListModel, ValueModel, StoreInValueModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Trace, DebugContext, Binding, Functions } from '@coolon/pectin';
|
|
17
|
+
import { assert as assert$1, Opts, lang as lang$1, Klass } from '@coolon/typescript-utilities';
|
|
23
18
|
import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
|
|
24
19
|
import ___default, { isEqual, isNil } from 'lodash';
|
|
25
|
-
import { Enum } from 'typescript-string-enums';
|
|
26
|
-
import { assert as assert$1, Opts, lang as lang$1, Klass } from '@coolon/typescript-utilities';
|
|
27
20
|
import produce from 'immer';
|
|
21
|
+
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
22
|
+
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
23
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
28
24
|
import { FlexModule, GridModule } from '@angular/flex-layout';
|
|
29
25
|
import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
30
26
|
import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
|
|
31
27
|
import { Overlay, CdkScrollable } from '@angular/cdk/overlay';
|
|
32
28
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
33
|
-
import { MatListModule } from '@angular/material/list';
|
|
34
29
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
30
|
+
import { MatListModule } from '@angular/material/list';
|
|
35
31
|
import { Memoize as Memoize$1 } from '@typescript-plus/fast-memoize-decorator';
|
|
36
32
|
import 'reflect-metadata';
|
|
37
33
|
import { style, query, group, animate, trigger, transition } from '@angular/animations';
|
|
@@ -410,1005 +406,13 @@ var CardContainerComponent = /** @class */ (function (_super) {
|
|
|
410
406
|
Component({
|
|
411
407
|
selector: 'aup-card-container',
|
|
412
408
|
template: "<div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-icon icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n\n</div>\n",
|
|
413
|
-
styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white
|
|
409
|
+
styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
|
|
414
410
|
}),
|
|
415
411
|
__metadata("design:paramtypes", [])
|
|
416
412
|
], CardContainerComponent);
|
|
417
413
|
return CardContainerComponent;
|
|
418
414
|
}(DisposableComponent));
|
|
419
415
|
|
|
420
|
-
var TrackBy;
|
|
421
|
-
(function (TrackBy) {
|
|
422
|
-
TrackBy.byIndex = function (data, index) { return index; };
|
|
423
|
-
})(TrackBy || (TrackBy = {}));
|
|
424
|
-
|
|
425
|
-
var CommandFace;
|
|
426
|
-
(function (CommandFace) {
|
|
427
|
-
var Position;
|
|
428
|
-
(function (Position) {
|
|
429
|
-
Position["START"] = "start";
|
|
430
|
-
Position["END"] = "end";
|
|
431
|
-
})(Position = CommandFace.Position || (CommandFace.Position = {}));
|
|
432
|
-
CommandFace.Style = Enum({
|
|
433
|
-
FLAT: 'flat',
|
|
434
|
-
STROKED: 'stroked',
|
|
435
|
-
RAISED: 'raised'
|
|
436
|
-
});
|
|
437
|
-
function getColorOf(face) {
|
|
438
|
-
return ___default.isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
|
|
439
|
-
}
|
|
440
|
-
CommandFace.getColorOf = getColorOf;
|
|
441
|
-
function getStyleOf(face) {
|
|
442
|
-
return ___default.isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
|
|
443
|
-
}
|
|
444
|
-
CommandFace.getStyleOf = getStyleOf;
|
|
445
|
-
function getIconOf(face) {
|
|
446
|
-
return ___default.isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
|
|
447
|
-
}
|
|
448
|
-
CommandFace.getIconOf = getIconOf;
|
|
449
|
-
function getIconPositionOf(face) {
|
|
450
|
-
return ___default.isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
|
|
451
|
-
}
|
|
452
|
-
CommandFace.getIconPositionOf = getIconPositionOf;
|
|
453
|
-
function getTooltipOf(face) {
|
|
454
|
-
return ___default.isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
|
|
455
|
-
}
|
|
456
|
-
CommandFace.getTooltipOf = getTooltipOf;
|
|
457
|
-
function getTextOf(face) {
|
|
458
|
-
return ___default.isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
|
|
459
|
-
}
|
|
460
|
-
CommandFace.getTextOf = getTextOf;
|
|
461
|
-
var Adapter = /** @class */ (function () {
|
|
462
|
-
function Adapter(face) {
|
|
463
|
-
this.face = face;
|
|
464
|
-
}
|
|
465
|
-
Object.defineProperty(Adapter.prototype, "text", {
|
|
466
|
-
get: function () {
|
|
467
|
-
return CommandFace.getTextOf(this.face);
|
|
468
|
-
},
|
|
469
|
-
enumerable: true,
|
|
470
|
-
configurable: true
|
|
471
|
-
});
|
|
472
|
-
Object.defineProperty(Adapter.prototype, "icon", {
|
|
473
|
-
get: function () {
|
|
474
|
-
return CommandFace.getIconOf(this.face);
|
|
475
|
-
},
|
|
476
|
-
enumerable: true,
|
|
477
|
-
configurable: true
|
|
478
|
-
});
|
|
479
|
-
Object.defineProperty(Adapter.prototype, "iconPosition", {
|
|
480
|
-
get: function () {
|
|
481
|
-
return CommandFace.getIconPositionOf(this.face);
|
|
482
|
-
},
|
|
483
|
-
enumerable: true,
|
|
484
|
-
configurable: true
|
|
485
|
-
});
|
|
486
|
-
Object.defineProperty(Adapter.prototype, "tooltip", {
|
|
487
|
-
get: function () {
|
|
488
|
-
return CommandFace.getTooltipOf(this.face);
|
|
489
|
-
},
|
|
490
|
-
enumerable: true,
|
|
491
|
-
configurable: true
|
|
492
|
-
});
|
|
493
|
-
Object.defineProperty(Adapter.prototype, "iconPositionStart", {
|
|
494
|
-
get: function () {
|
|
495
|
-
return this.iconPosition === CommandFace.Position.START;
|
|
496
|
-
},
|
|
497
|
-
enumerable: true,
|
|
498
|
-
configurable: true
|
|
499
|
-
});
|
|
500
|
-
Object.defineProperty(Adapter.prototype, "iconPositionEnd", {
|
|
501
|
-
get: function () {
|
|
502
|
-
return this.iconPosition === CommandFace.Position.END;
|
|
503
|
-
},
|
|
504
|
-
enumerable: true,
|
|
505
|
-
configurable: true
|
|
506
|
-
});
|
|
507
|
-
Object.defineProperty(Adapter.prototype, "color", {
|
|
508
|
-
get: function () {
|
|
509
|
-
return CommandFace.getColorOf(this.face);
|
|
510
|
-
},
|
|
511
|
-
enumerable: true,
|
|
512
|
-
configurable: true
|
|
513
|
-
});
|
|
514
|
-
Object.defineProperty(Adapter.prototype, "style", {
|
|
515
|
-
get: function () {
|
|
516
|
-
return CommandFace.getStyleOf(this.face);
|
|
517
|
-
},
|
|
518
|
-
enumerable: true,
|
|
519
|
-
configurable: true
|
|
520
|
-
});
|
|
521
|
-
__decorate([
|
|
522
|
-
Memoize(),
|
|
523
|
-
__metadata("design:type", Object),
|
|
524
|
-
__metadata("design:paramtypes", [])
|
|
525
|
-
], Adapter.prototype, "text", null);
|
|
526
|
-
__decorate([
|
|
527
|
-
Memoize(),
|
|
528
|
-
__metadata("design:type", Object),
|
|
529
|
-
__metadata("design:paramtypes", [])
|
|
530
|
-
], Adapter.prototype, "icon", null);
|
|
531
|
-
__decorate([
|
|
532
|
-
Memoize(),
|
|
533
|
-
__metadata("design:type", Object),
|
|
534
|
-
__metadata("design:paramtypes", [])
|
|
535
|
-
], Adapter.prototype, "iconPosition", null);
|
|
536
|
-
__decorate([
|
|
537
|
-
Memoize(),
|
|
538
|
-
__metadata("design:type", Object),
|
|
539
|
-
__metadata("design:paramtypes", [])
|
|
540
|
-
], Adapter.prototype, "tooltip", null);
|
|
541
|
-
__decorate([
|
|
542
|
-
Memoize(),
|
|
543
|
-
__metadata("design:type", Boolean),
|
|
544
|
-
__metadata("design:paramtypes", [])
|
|
545
|
-
], Adapter.prototype, "iconPositionStart", null);
|
|
546
|
-
__decorate([
|
|
547
|
-
Memoize(),
|
|
548
|
-
__metadata("design:type", Boolean),
|
|
549
|
-
__metadata("design:paramtypes", [])
|
|
550
|
-
], Adapter.prototype, "iconPositionEnd", null);
|
|
551
|
-
__decorate([
|
|
552
|
-
Memoize(),
|
|
553
|
-
__metadata("design:type", String),
|
|
554
|
-
__metadata("design:paramtypes", [])
|
|
555
|
-
], Adapter.prototype, "color", null);
|
|
556
|
-
__decorate([
|
|
557
|
-
Memoize(),
|
|
558
|
-
__metadata("design:type", String),
|
|
559
|
-
__metadata("design:paramtypes", [])
|
|
560
|
-
], Adapter.prototype, "style", null);
|
|
561
|
-
return Adapter;
|
|
562
|
-
}());
|
|
563
|
-
CommandFace.Adapter = Adapter;
|
|
564
|
-
})(CommandFace || (CommandFace = {}));
|
|
565
|
-
|
|
566
|
-
var ViewData = /** @class */ (function () {
|
|
567
|
-
function ViewData() {
|
|
568
|
-
}
|
|
569
|
-
return ViewData;
|
|
570
|
-
}());
|
|
571
|
-
(function (ViewData) {
|
|
572
|
-
var FaceData = /** @class */ (function (_super) {
|
|
573
|
-
__extends(FaceData, _super);
|
|
574
|
-
function FaceData(face) {
|
|
575
|
-
var _this = _super.call(this) || this;
|
|
576
|
-
_this.faceAdapter = new CommandFace.Adapter(face);
|
|
577
|
-
return _this;
|
|
578
|
-
}
|
|
579
|
-
return FaceData;
|
|
580
|
-
}(ViewData));
|
|
581
|
-
ViewData.FaceData = FaceData;
|
|
582
|
-
var GroupData = /** @class */ (function (_super) {
|
|
583
|
-
__extends(GroupData, _super);
|
|
584
|
-
function GroupData(face, xPosition, yPosition, children) {
|
|
585
|
-
var _this = _super.call(this, face) || this;
|
|
586
|
-
_this.xPosition = xPosition;
|
|
587
|
-
_this.yPosition = yPosition;
|
|
588
|
-
_this.children = children;
|
|
589
|
-
return _this;
|
|
590
|
-
}
|
|
591
|
-
Object.defineProperty(GroupData.prototype, "hasMixedIcons", {
|
|
592
|
-
get: function () {
|
|
593
|
-
var hasFaces = this.children.filter(function (c) { return ViewData.hasFace(c); });
|
|
594
|
-
var iconCount = hasFaces.filter(function (c) { return !!c.faceAdapter.icon; }).length;
|
|
595
|
-
return iconCount > 0 && hasFaces.length !== iconCount;
|
|
596
|
-
},
|
|
597
|
-
enumerable: true,
|
|
598
|
-
configurable: true
|
|
599
|
-
});
|
|
600
|
-
__decorate([
|
|
601
|
-
Memoize(),
|
|
602
|
-
__metadata("design:type", Boolean),
|
|
603
|
-
__metadata("design:paramtypes", [])
|
|
604
|
-
], GroupData.prototype, "hasMixedIcons", null);
|
|
605
|
-
return GroupData;
|
|
606
|
-
}(FaceData));
|
|
607
|
-
ViewData.GroupData = GroupData;
|
|
608
|
-
var CommandData = /** @class */ (function (_super) {
|
|
609
|
-
__extends(CommandData, _super);
|
|
610
|
-
function CommandData(face, command) {
|
|
611
|
-
var _this = _super.call(this, face) || this;
|
|
612
|
-
_this.command = command;
|
|
613
|
-
return _this;
|
|
614
|
-
}
|
|
615
|
-
return CommandData;
|
|
616
|
-
}(FaceData));
|
|
617
|
-
ViewData.CommandData = CommandData;
|
|
618
|
-
var SeparatorData = /** @class */ (function (_super) {
|
|
619
|
-
__extends(SeparatorData, _super);
|
|
620
|
-
function SeparatorData() {
|
|
621
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
622
|
-
}
|
|
623
|
-
return SeparatorData;
|
|
624
|
-
}(ViewData));
|
|
625
|
-
ViewData.SeparatorData = SeparatorData;
|
|
626
|
-
var FlexData = /** @class */ (function (_super) {
|
|
627
|
-
__extends(FlexData, _super);
|
|
628
|
-
function FlexData() {
|
|
629
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
630
|
-
}
|
|
631
|
-
return FlexData;
|
|
632
|
-
}(ViewData));
|
|
633
|
-
ViewData.FlexData = FlexData;
|
|
634
|
-
function as(type, viewData) {
|
|
635
|
-
return viewData instanceof type ? viewData : lang.illegalState("expected instance of " + type.name + ", got " + viewData.constructor.name);
|
|
636
|
-
}
|
|
637
|
-
ViewData.as = as;
|
|
638
|
-
function getCommand(data) {
|
|
639
|
-
return as(CommandData, data).command;
|
|
640
|
-
}
|
|
641
|
-
ViewData.getCommand = getCommand;
|
|
642
|
-
function getTooltip(data) {
|
|
643
|
-
return as(FaceData, data).faceAdapter.tooltip;
|
|
644
|
-
}
|
|
645
|
-
ViewData.getTooltip = getTooltip;
|
|
646
|
-
function getStyle(data) {
|
|
647
|
-
return as(FaceData, data).faceAdapter.style;
|
|
648
|
-
}
|
|
649
|
-
ViewData.getStyle = getStyle;
|
|
650
|
-
function getColor(data) {
|
|
651
|
-
return as(FaceData, data).faceAdapter.color;
|
|
652
|
-
}
|
|
653
|
-
ViewData.getColor = getColor;
|
|
654
|
-
function hasText(data) {
|
|
655
|
-
return !!as(FaceData, data).faceAdapter.text;
|
|
656
|
-
}
|
|
657
|
-
ViewData.hasText = hasText;
|
|
658
|
-
function getFace(data) {
|
|
659
|
-
return as(FaceData, data).faceAdapter.face;
|
|
660
|
-
}
|
|
661
|
-
ViewData.getFace = getFace;
|
|
662
|
-
function asGroup(viewData) {
|
|
663
|
-
return as(GroupData, viewData);
|
|
664
|
-
}
|
|
665
|
-
ViewData.asGroup = asGroup;
|
|
666
|
-
function hasMixedIcons(data) {
|
|
667
|
-
return as(GroupData, data).hasMixedIcons;
|
|
668
|
-
}
|
|
669
|
-
ViewData.hasMixedIcons = hasMixedIcons;
|
|
670
|
-
function isGroup(data) {
|
|
671
|
-
return data instanceof GroupData;
|
|
672
|
-
}
|
|
673
|
-
ViewData.isGroup = isGroup;
|
|
674
|
-
function hasFace(data) {
|
|
675
|
-
return data instanceof FaceData;
|
|
676
|
-
}
|
|
677
|
-
ViewData.hasFace = hasFace;
|
|
678
|
-
function isCommand(data) {
|
|
679
|
-
return data instanceof CommandData;
|
|
680
|
-
}
|
|
681
|
-
ViewData.isCommand = isCommand;
|
|
682
|
-
function isSeparator(data) {
|
|
683
|
-
return data instanceof SeparatorData;
|
|
684
|
-
}
|
|
685
|
-
ViewData.isSeparator = isSeparator;
|
|
686
|
-
function isFlex(data) {
|
|
687
|
-
return data instanceof FlexData;
|
|
688
|
-
}
|
|
689
|
-
ViewData.isFlex = isFlex;
|
|
690
|
-
})(ViewData || (ViewData = {}));
|
|
691
|
-
|
|
692
|
-
var CommandGroupMenuRendererComponent = /** @class */ (function (_super) {
|
|
693
|
-
__extends(CommandGroupMenuRendererComponent, _super);
|
|
694
|
-
function CommandGroupMenuRendererComponent(parent) {
|
|
695
|
-
var _this = _super.call(this) || this;
|
|
696
|
-
_this.parent = parent;
|
|
697
|
-
_this.groupViewDataModel = new MutableValueModel();
|
|
698
|
-
_this.commandFired = new EventEmitter();
|
|
699
|
-
_this.ViewData = ViewData;
|
|
700
|
-
_this.TrackBy = TrackBy;
|
|
701
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
702
|
-
_this.children = chain(_this.groupViewDataModel).pluckList('children');
|
|
703
|
-
_this.hasMixedIcons = chain(_this.groupViewDataModel).pluck('hasMixedIcons');
|
|
704
|
-
return _this;
|
|
705
|
-
}
|
|
706
|
-
CommandGroupMenuRendererComponent.prototype.getCommand = function (data) {
|
|
707
|
-
var _this = this;
|
|
708
|
-
var command = ViewData.getCommand(data);
|
|
709
|
-
var when = Dsl.disposeWith(this).when;
|
|
710
|
-
when(command.busy).becomesFalsey(function () { return _this.commandFired.emit(); });
|
|
711
|
-
return command;
|
|
712
|
-
};
|
|
713
|
-
CommandGroupMenuRendererComponent.ctorParameters = function () { return [
|
|
714
|
-
{ type: CommandGroupMenuRendererComponent, decorators: [{ type: Optional }, { type: SkipSelf }] }
|
|
715
|
-
]; };
|
|
716
|
-
__decorate([
|
|
717
|
-
ViewChild('menu', { static: true }),
|
|
718
|
-
__metadata("design:type", MatMenu)
|
|
719
|
-
], CommandGroupMenuRendererComponent.prototype, "menuComponent", void 0);
|
|
720
|
-
__decorate([
|
|
721
|
-
Input(), StoreInValueModel('groupViewDataModel'),
|
|
722
|
-
__metadata("design:type", ViewData.GroupData)
|
|
723
|
-
], CommandGroupMenuRendererComponent.prototype, "groupViewData", void 0);
|
|
724
|
-
__decorate([
|
|
725
|
-
Output(),
|
|
726
|
-
__metadata("design:type", Object)
|
|
727
|
-
], CommandGroupMenuRendererComponent.prototype, "commandFired", void 0);
|
|
728
|
-
__decorate([
|
|
729
|
-
ViewChildren(MatMenuTrigger),
|
|
730
|
-
__metadata("design:type", QueryList)
|
|
731
|
-
], CommandGroupMenuRendererComponent.prototype, "triggers", void 0);
|
|
732
|
-
CommandGroupMenuRendererComponent = __decorate([
|
|
733
|
-
Component({
|
|
734
|
-
selector: 'aup-command-group-menu',
|
|
735
|
-
template: "<mat-menu #menu [xPosition]=\"groupViewData.xPosition\" [yPosition]=\"groupViewData.yPosition\">\n <ng-container *ngFor=\"let data of children.value; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"ViewData.isCommand(data)\"\n [pectinCommand]=\"getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n mat-menu-item>\n <aup-command-face [face]=\"ViewData.getFace(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"ViewData.isGroup(data)\">\n <button mat-menu-item\n #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [face]=\"ViewData.getFace(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-command-group-menu #innerPanel\n [groupViewData]=\"ViewData.asGroup(data)\"\n (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\"></mat-divider>\n\n </ng-container>\n</mat-menu>\n"
|
|
736
|
-
}),
|
|
737
|
-
__param(0, Optional()), __param(0, SkipSelf()),
|
|
738
|
-
__metadata("design:paramtypes", [CommandGroupMenuRendererComponent])
|
|
739
|
-
], CommandGroupMenuRendererComponent);
|
|
740
|
-
return CommandGroupMenuRendererComponent;
|
|
741
|
-
}(DisposableComponent));
|
|
742
|
-
|
|
743
|
-
var CommandGroupRendererComponent = /** @class */ (function (_super) {
|
|
744
|
-
__extends(CommandGroupRendererComponent, _super);
|
|
745
|
-
function CommandGroupRendererComponent() {
|
|
746
|
-
var _this = _super.call(this) || this;
|
|
747
|
-
_this.renderRootNode = true;
|
|
748
|
-
_this.ViewData = ViewData;
|
|
749
|
-
_this.TrackBy = TrackBy;
|
|
750
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
751
|
-
_this.childViewDataModels = chain(_this.groupViewDataModel).pluckList('children');
|
|
752
|
-
return _this;
|
|
753
|
-
}
|
|
754
|
-
__decorate([
|
|
755
|
-
Input(), TrackExternal(),
|
|
756
|
-
__metadata("design:type", ValueModel)
|
|
757
|
-
], CommandGroupRendererComponent.prototype, "groupViewDataModel", void 0);
|
|
758
|
-
__decorate([
|
|
759
|
-
Input(), StoreInValueModel('groupViewDataModel'),
|
|
760
|
-
__metadata("design:type", ViewData.GroupData)
|
|
761
|
-
], CommandGroupRendererComponent.prototype, "groupViewData", void 0);
|
|
762
|
-
__decorate([
|
|
763
|
-
Input(),
|
|
764
|
-
HostBinding('class.render-root'),
|
|
765
|
-
__metadata("design:type", Object)
|
|
766
|
-
], CommandGroupRendererComponent.prototype, "renderRootNode", void 0);
|
|
767
|
-
CommandGroupRendererComponent = __decorate([
|
|
768
|
-
Component({
|
|
769
|
-
selector: 'aup-command-group-renderer',
|
|
770
|
-
template: "<ng-template #groupTemplate let-group>\n\n <ng-container *ngIf=\"ViewData.hasText(group)\" [ngSwitch]=\"ViewData.getStyle(group)\">\n <ng-container *ngSwitchCase=\"'stroked'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-stroked-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'raised'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-raised-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"!ViewData.hasText(group)\">\n <button #trigger=\"matMenuTrigger\"\n mat-icon-button\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n >\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #commandTemplate let-data>\n\n <ng-container *ngIf=\"ViewData.hasText(data)\" [ngSwitch]=\"ViewData.getStyle(data)\">\n <button *ngSwitchCase=\"'raised'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-raised-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"'stroked'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-stroked-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n <button *ngSwitchDefault\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n </ng-container>\n\n <button *ngIf=\"!ViewData.hasText(data)\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-icon-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n\n</ng-template>\n\n\n<ng-template *ngIf=\"renderRootNode\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: groupViewDataModel.value }\">\n</ng-template>\n\n<ng-container *ngIf=\"!renderRootNode\">\n <ng-container *ngFor=\"let data of this.childViewDataModels.value; trackBy: TrackBy.byIndex\">\n <ng-template *ngIf=\"ViewData.isGroup(data)\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n <ng-template *ngIf=\"ViewData.isCommand(data)\"\n [ngTemplateOutlet]=\"commandTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\" [vertical]=\"true\"></mat-divider>\n </ng-container>\n\n</ng-container>\n",
|
|
771
|
-
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}:host:not(.render-root) mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host:not(.render-root)>*+*{margin-left:8px}:host span.flex{flex:1}"]
|
|
772
|
-
}),
|
|
773
|
-
__metadata("design:paramtypes", [])
|
|
774
|
-
], CommandGroupRendererComponent);
|
|
775
|
-
return CommandGroupRendererComponent;
|
|
776
|
-
}(DisposableComponent));
|
|
777
|
-
|
|
778
|
-
var Registration = /** @class */ (function (_super) {
|
|
779
|
-
__extends(Registration, _super);
|
|
780
|
-
function Registration() {
|
|
781
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
782
|
-
}
|
|
783
|
-
return Registration;
|
|
784
|
-
}(GarbageCollector));
|
|
785
|
-
(function (Registration) {
|
|
786
|
-
var FaceRegistration = /** @class */ (function (_super) {
|
|
787
|
-
__extends(FaceRegistration, _super);
|
|
788
|
-
function FaceRegistration(faceModel) {
|
|
789
|
-
var _this = _super.call(this) || this;
|
|
790
|
-
_this.faceModel = faceModel;
|
|
791
|
-
return _this;
|
|
792
|
-
}
|
|
793
|
-
return FaceRegistration;
|
|
794
|
-
}(Registration));
|
|
795
|
-
Registration.FaceRegistration = FaceRegistration;
|
|
796
|
-
var CommandRegistration = /** @class */ (function (_super) {
|
|
797
|
-
__extends(CommandRegistration, _super);
|
|
798
|
-
function CommandRegistration(faceModel, command) {
|
|
799
|
-
var _this = _super.call(this, faceModel) || this;
|
|
800
|
-
_this.command = command;
|
|
801
|
-
return _this;
|
|
802
|
-
}
|
|
803
|
-
CommandRegistration.prototype.toTemplate = function () {
|
|
804
|
-
return new ViewData.CommandData(this.faceModel.value, this.command);
|
|
805
|
-
};
|
|
806
|
-
return CommandRegistration;
|
|
807
|
-
}(FaceRegistration));
|
|
808
|
-
Registration.CommandRegistration = CommandRegistration;
|
|
809
|
-
var GroupRegistration = /** @class */ (function (_super) {
|
|
810
|
-
__extends(GroupRegistration, _super);
|
|
811
|
-
function GroupRegistration(faceModel, group) {
|
|
812
|
-
var _this = _super.call(this, faceModel) || this;
|
|
813
|
-
_this.group = group;
|
|
814
|
-
return _this;
|
|
815
|
-
}
|
|
816
|
-
GroupRegistration.prototype.toTemplate = function () {
|
|
817
|
-
return new ViewData.GroupData(this.faceModel.value, this.group.xPosition, this.group.yPosition, this.group.registrations.value.map(function (r) { return r.toTemplate(); }));
|
|
818
|
-
};
|
|
819
|
-
return GroupRegistration;
|
|
820
|
-
}(FaceRegistration));
|
|
821
|
-
Registration.GroupRegistration = GroupRegistration;
|
|
822
|
-
var SeparatorRegistration = /** @class */ (function (_super) {
|
|
823
|
-
__extends(SeparatorRegistration, _super);
|
|
824
|
-
function SeparatorRegistration() {
|
|
825
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
826
|
-
_this.template = new ViewData.SeparatorData();
|
|
827
|
-
return _this;
|
|
828
|
-
}
|
|
829
|
-
SeparatorRegistration.prototype.toTemplate = function () {
|
|
830
|
-
return this.template;
|
|
831
|
-
};
|
|
832
|
-
return SeparatorRegistration;
|
|
833
|
-
}(Registration));
|
|
834
|
-
Registration.SeparatorRegistration = SeparatorRegistration;
|
|
835
|
-
var FlexRegistration = /** @class */ (function (_super) {
|
|
836
|
-
__extends(FlexRegistration, _super);
|
|
837
|
-
function FlexRegistration() {
|
|
838
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
839
|
-
_this.template = new ViewData.FlexData();
|
|
840
|
-
return _this;
|
|
841
|
-
}
|
|
842
|
-
FlexRegistration.prototype.toTemplate = function () {
|
|
843
|
-
return this.template;
|
|
844
|
-
};
|
|
845
|
-
return FlexRegistration;
|
|
846
|
-
}(Registration));
|
|
847
|
-
Registration.FlexRegistration = FlexRegistration;
|
|
848
|
-
function hasFace(entry) {
|
|
849
|
-
return entry instanceof CommandRegistration || entry instanceof GroupRegistration;
|
|
850
|
-
}
|
|
851
|
-
Registration.hasFace = hasFace;
|
|
852
|
-
})(Registration || (Registration = {}));
|
|
853
|
-
|
|
854
|
-
var CommandGroup = /** @class */ (function (_super) {
|
|
855
|
-
__extends(CommandGroup, _super);
|
|
856
|
-
function CommandGroup(parent) {
|
|
857
|
-
var _this = _super.call(this) || this;
|
|
858
|
-
_this.parent = parent;
|
|
859
|
-
_this._rootTemplate = new MutableValueModel();
|
|
860
|
-
_this._registrations = new MutableListModel();
|
|
861
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
862
|
-
_this.childTemplates = chain(_this._rootTemplate).pluckList('children');
|
|
863
|
-
_this.initialised = chain(_this._rootTemplate).isNotNil();
|
|
864
|
-
return _this;
|
|
865
|
-
}
|
|
866
|
-
CommandGroup.prototype.initialise = function () {
|
|
867
|
-
this.rebuildTemplates();
|
|
868
|
-
};
|
|
869
|
-
Object.defineProperty(CommandGroup.prototype, "rootTemplate", {
|
|
870
|
-
get: function () {
|
|
871
|
-
return this._rootTemplate.readonly;
|
|
872
|
-
},
|
|
873
|
-
enumerable: true,
|
|
874
|
-
configurable: true
|
|
875
|
-
});
|
|
876
|
-
Object.defineProperty(CommandGroup.prototype, "registrations", {
|
|
877
|
-
get: function () {
|
|
878
|
-
return this._registrations.readonly;
|
|
879
|
-
},
|
|
880
|
-
enumerable: true,
|
|
881
|
-
configurable: true
|
|
882
|
-
});
|
|
883
|
-
CommandGroup.prototype.notifyChanged = function () {
|
|
884
|
-
if (this.parent) {
|
|
885
|
-
this.parent.notifyChanged();
|
|
886
|
-
}
|
|
887
|
-
else {
|
|
888
|
-
this.rebuildTemplates();
|
|
889
|
-
}
|
|
890
|
-
};
|
|
891
|
-
CommandGroup.prototype.notifyChildFaceChanged = function (is, was) {
|
|
892
|
-
this.notifyChanged();
|
|
893
|
-
};
|
|
894
|
-
CommandGroup.prototype.rebuildTemplates = function () {
|
|
895
|
-
this._rootTemplate.value = new ViewData.GroupData(this.faceModel.value, this.xPosition, this.yPosition, this.registrations.value.map(function (r) { return r.toTemplate(); }));
|
|
896
|
-
};
|
|
897
|
-
Object.defineProperty(CommandGroup.prototype, "depth", {
|
|
898
|
-
get: function () {
|
|
899
|
-
return this.isRoot() ? 0 : this.parent.depth + 1;
|
|
900
|
-
},
|
|
901
|
-
enumerable: true,
|
|
902
|
-
configurable: true
|
|
903
|
-
});
|
|
904
|
-
CommandGroup.prototype.isRoot = function () {
|
|
905
|
-
return false;
|
|
906
|
-
};
|
|
907
|
-
CommandGroup.prototype.registerCommand = function (command, faceModel) {
|
|
908
|
-
return this.register(new Registration.CommandRegistration(faceModel, command));
|
|
909
|
-
};
|
|
910
|
-
CommandGroup.prototype.registerGroup = function (group, faceModel) {
|
|
911
|
-
return this.register(new Registration.GroupRegistration(faceModel, group));
|
|
912
|
-
};
|
|
913
|
-
CommandGroup.prototype.registerFlex = function (component) {
|
|
914
|
-
return this.register(new Registration.FlexRegistration());
|
|
915
|
-
};
|
|
916
|
-
CommandGroup.prototype.registerSeparator = function (component) {
|
|
917
|
-
return this.register(new Registration.SeparatorRegistration());
|
|
918
|
-
};
|
|
919
|
-
CommandGroup.prototype.register = function (registration) {
|
|
920
|
-
var _this = this;
|
|
921
|
-
this._registrations.push(registration);
|
|
922
|
-
if (registration instanceof Registration.FaceRegistration) {
|
|
923
|
-
var when = Dsl.disposeWith(registration).when;
|
|
924
|
-
when(registration.faceModel).changes(function (is, was) {
|
|
925
|
-
_this.notifyChildFaceChanged(is, was);
|
|
926
|
-
}, { asLongAs: this.initialised });
|
|
927
|
-
}
|
|
928
|
-
registration.onDispose(function () { return _this._registrations.remove(registration); });
|
|
929
|
-
return registration;
|
|
930
|
-
};
|
|
931
|
-
return CommandGroup;
|
|
932
|
-
}(GarbageCollector));
|
|
933
|
-
(function (CommandGroup) {
|
|
934
|
-
var Root = /** @class */ (function (_super) {
|
|
935
|
-
__extends(Root, _super);
|
|
936
|
-
function Root() {
|
|
937
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
938
|
-
}
|
|
939
|
-
Root.prototype.isRoot = function () {
|
|
940
|
-
return true;
|
|
941
|
-
};
|
|
942
|
-
__decorate([
|
|
943
|
-
TrackExternal(),
|
|
944
|
-
__metadata("design:type", ValueModel)
|
|
945
|
-
], Root.prototype, "faceModel", void 0);
|
|
946
|
-
__decorate([
|
|
947
|
-
TrackExternal({ defaultValue: 'after' }),
|
|
948
|
-
__metadata("design:type", ValueModel)
|
|
949
|
-
], Root.prototype, "xPositionModel", void 0);
|
|
950
|
-
__decorate([
|
|
951
|
-
StoreInValueModel('xPositionModel'),
|
|
952
|
-
__metadata("design:type", String)
|
|
953
|
-
], Root.prototype, "xPosition", void 0);
|
|
954
|
-
__decorate([
|
|
955
|
-
TrackExternal({ defaultValue: 'below' }),
|
|
956
|
-
__metadata("design:type", ValueModel)
|
|
957
|
-
], Root.prototype, "yPositionModel", void 0);
|
|
958
|
-
__decorate([
|
|
959
|
-
StoreInValueModel('yPositionModel'),
|
|
960
|
-
__metadata("design:type", String)
|
|
961
|
-
], Root.prototype, "yPosition", void 0);
|
|
962
|
-
return Root;
|
|
963
|
-
}(CommandGroup));
|
|
964
|
-
CommandGroup.Root = Root;
|
|
965
|
-
function factory() {
|
|
966
|
-
return new Root();
|
|
967
|
-
}
|
|
968
|
-
CommandGroup.factory = factory;
|
|
969
|
-
})(CommandGroup || (CommandGroup = {}));
|
|
970
|
-
|
|
971
|
-
var CommandGroupComponent = /** @class */ (function (_super) {
|
|
972
|
-
__extends(CommandGroupComponent, _super);
|
|
973
|
-
function CommandGroupComponent(parent) {
|
|
974
|
-
var _this = _super.call(this, parent) || this;
|
|
975
|
-
_this.parent = parent;
|
|
976
|
-
_this.xPosition = 'after';
|
|
977
|
-
_this.yPosition = 'below';
|
|
978
|
-
_this.parent.registerGroup(_this, _this.faceModel);
|
|
979
|
-
return _this;
|
|
980
|
-
}
|
|
981
|
-
CommandGroupComponent_1 = CommandGroupComponent;
|
|
982
|
-
var CommandGroupComponent_1;
|
|
983
|
-
CommandGroupComponent.ctorParameters = function () { return [
|
|
984
|
-
{ type: CommandGroup, decorators: [{ type: SkipSelf }] }
|
|
985
|
-
]; };
|
|
986
|
-
__decorate([
|
|
987
|
-
Input(), TrackExternal(),
|
|
988
|
-
__metadata("design:type", ValueModel)
|
|
989
|
-
], CommandGroupComponent.prototype, "faceModel", void 0);
|
|
990
|
-
__decorate([
|
|
991
|
-
Input(), StoreInValueModel('faceModel'),
|
|
992
|
-
__metadata("design:type", Object)
|
|
993
|
-
], CommandGroupComponent.prototype, "face", void 0);
|
|
994
|
-
__decorate([
|
|
995
|
-
Input(),
|
|
996
|
-
__metadata("design:type", String)
|
|
997
|
-
], CommandGroupComponent.prototype, "xPosition", void 0);
|
|
998
|
-
__decorate([
|
|
999
|
-
Input(),
|
|
1000
|
-
__metadata("design:type", String)
|
|
1001
|
-
], CommandGroupComponent.prototype, "yPosition", void 0);
|
|
1002
|
-
CommandGroupComponent = CommandGroupComponent_1 = __decorate([
|
|
1003
|
-
Component({
|
|
1004
|
-
selector: 'aup-command-group',
|
|
1005
|
-
template: '',
|
|
1006
|
-
providers: [
|
|
1007
|
-
{ provide: CommandGroup, useExisting: CommandGroupComponent_1 }
|
|
1008
|
-
]
|
|
1009
|
-
}),
|
|
1010
|
-
__param(0, SkipSelf()),
|
|
1011
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
1012
|
-
], CommandGroupComponent);
|
|
1013
|
-
return CommandGroupComponent;
|
|
1014
|
-
}(CommandGroup));
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* Custom CSS:
|
|
1018
|
-
* @example
|
|
1019
|
-
* root: { // globally
|
|
1020
|
-
* --aup-command-face-icon-gap: 8px;
|
|
1021
|
-
* }
|
|
1022
|
-
* aup-command-face { // per instance
|
|
1023
|
-
* --icon-gap: 4px;
|
|
1024
|
-
* }
|
|
1025
|
-
*/
|
|
1026
|
-
var CommandFaceComponent = /** @class */ (function (_super) {
|
|
1027
|
-
__extends(CommandFaceComponent, _super);
|
|
1028
|
-
function CommandFaceComponent() {
|
|
1029
|
-
var _this = _super.call(this) || this;
|
|
1030
|
-
_this.faceModel = new MutableValueModel();
|
|
1031
|
-
_this.ignoreIcon = false;
|
|
1032
|
-
_this.ignoreText = false;
|
|
1033
|
-
_this.includeMissingIconInLayout = false;
|
|
1034
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1035
|
-
// overkill /c: when all you have is a hammer...
|
|
1036
|
-
var faceAdapter = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); });
|
|
1037
|
-
_this.iconModel = faceAdapter.pluck('icon');
|
|
1038
|
-
_this.textModel = faceAdapter.pluck('text');
|
|
1039
|
-
_this.positionModel = faceAdapter.pluck('iconPosition');
|
|
1040
|
-
_this.colorModel = faceAdapter.pluck('color');
|
|
1041
|
-
return _this;
|
|
1042
|
-
}
|
|
1043
|
-
Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
|
|
1044
|
-
get: function () {
|
|
1045
|
-
return this.includeMissingIconInLayout && !this.iconModel.value;
|
|
1046
|
-
},
|
|
1047
|
-
enumerable: true,
|
|
1048
|
-
configurable: true
|
|
1049
|
-
});
|
|
1050
|
-
CommandFaceComponent.prototype.ngOnInit = function () {
|
|
1051
|
-
};
|
|
1052
|
-
Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
|
|
1053
|
-
get: function () {
|
|
1054
|
-
var _a;
|
|
1055
|
-
return (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : CommandFace.Position.START;
|
|
1056
|
-
},
|
|
1057
|
-
enumerable: true,
|
|
1058
|
-
configurable: true
|
|
1059
|
-
});
|
|
1060
|
-
Object.defineProperty(CommandFaceComponent.prototype, "shouldIncludeIcon", {
|
|
1061
|
-
get: function () {
|
|
1062
|
-
return (!this.ignoreIcon && this.iconModel.value) || this.includeMissingIconInLayout;
|
|
1063
|
-
},
|
|
1064
|
-
enumerable: true,
|
|
1065
|
-
configurable: true
|
|
1066
|
-
});
|
|
1067
|
-
Object.defineProperty(CommandFaceComponent.prototype, "iconStart", {
|
|
1068
|
-
get: function () {
|
|
1069
|
-
return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.START;
|
|
1070
|
-
},
|
|
1071
|
-
enumerable: true,
|
|
1072
|
-
configurable: true
|
|
1073
|
-
});
|
|
1074
|
-
Object.defineProperty(CommandFaceComponent.prototype, "iconEnd", {
|
|
1075
|
-
get: function () {
|
|
1076
|
-
return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.END;
|
|
1077
|
-
},
|
|
1078
|
-
enumerable: true,
|
|
1079
|
-
configurable: true
|
|
1080
|
-
});
|
|
1081
|
-
Object.defineProperty(CommandFaceComponent.prototype, "text", {
|
|
1082
|
-
get: function () {
|
|
1083
|
-
return this.ignoreText ? undefined : this.textModel.value;
|
|
1084
|
-
},
|
|
1085
|
-
enumerable: true,
|
|
1086
|
-
configurable: true
|
|
1087
|
-
});
|
|
1088
|
-
Object.defineProperty(CommandFaceComponent.prototype, "color", {
|
|
1089
|
-
get: function () {
|
|
1090
|
-
return this.colorModel.value;
|
|
1091
|
-
},
|
|
1092
|
-
enumerable: true,
|
|
1093
|
-
configurable: true
|
|
1094
|
-
});
|
|
1095
|
-
__decorate([
|
|
1096
|
-
Input('face'), StoreInValueModel('faceModel'),
|
|
1097
|
-
__metadata("design:type", Object)
|
|
1098
|
-
], CommandFaceComponent.prototype, "_rawFace", void 0);
|
|
1099
|
-
__decorate([
|
|
1100
|
-
Input(),
|
|
1101
|
-
__metadata("design:type", Object)
|
|
1102
|
-
], CommandFaceComponent.prototype, "ignoreIcon", void 0);
|
|
1103
|
-
__decorate([
|
|
1104
|
-
Input(),
|
|
1105
|
-
__metadata("design:type", Object)
|
|
1106
|
-
], CommandFaceComponent.prototype, "ignoreText", void 0);
|
|
1107
|
-
__decorate([
|
|
1108
|
-
Input(),
|
|
1109
|
-
__metadata("design:type", Object)
|
|
1110
|
-
], CommandFaceComponent.prototype, "includeMissingIconInLayout", void 0);
|
|
1111
|
-
__decorate([
|
|
1112
|
-
HostBinding('class.hide-icon'),
|
|
1113
|
-
__metadata("design:type", Object),
|
|
1114
|
-
__metadata("design:paramtypes", [])
|
|
1115
|
-
], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
|
|
1116
|
-
__decorate([
|
|
1117
|
-
HostBinding('attr.color'),
|
|
1118
|
-
__metadata("design:type", String),
|
|
1119
|
-
__metadata("design:paramtypes", [])
|
|
1120
|
-
], CommandFaceComponent.prototype, "color", null);
|
|
1121
|
-
CommandFaceComponent = __decorate([
|
|
1122
|
-
Component({
|
|
1123
|
-
selector: 'aup-command-face',
|
|
1124
|
-
template: "<aup-icon *ngIf=\"iconStart\" [icon]=\"iconModel.value\"></aup-icon>\n<span *ngIf=\"this.text\">{{this.text}}</span>\n<aup-icon *ngIf=\"iconEnd\" [icon]=\"iconModel.value\"></aup-icon>\n",
|
|
1125
|
-
encapsulation: ViewEncapsulation.None,
|
|
1126
|
-
styles: ["aup-command-face{--icon-gap:var(--aup-command-face-icon-gap);display:inline-flex;flex-direction:row;align-items:center}aup-command-face *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}"]
|
|
1127
|
-
}),
|
|
1128
|
-
__metadata("design:paramtypes", [])
|
|
1129
|
-
], CommandFaceComponent);
|
|
1130
|
-
return CommandFaceComponent;
|
|
1131
|
-
}(DisposableComponent));
|
|
1132
|
-
|
|
1133
|
-
/**
|
|
1134
|
-
*
|
|
1135
|
-
*/
|
|
1136
|
-
var CommandComponent = /** @class */ (function (_super) {
|
|
1137
|
-
__extends(CommandComponent, _super);
|
|
1138
|
-
function CommandComponent(parent) {
|
|
1139
|
-
var _this = _super.call(this) || this;
|
|
1140
|
-
_this.parent = parent;
|
|
1141
|
-
_this.CommandFace = CommandFace;
|
|
1142
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, switchOn = _a.switchOn;
|
|
1143
|
-
_this.activeFaceModel = switchOn(_this.command.busy).toValue(function (when) {
|
|
1144
|
-
when.equalTo(true, _this.busyFaceModel);
|
|
1145
|
-
when.otherwise(_this.faceModel);
|
|
1146
|
-
}).otherwise(_this.faceModel);
|
|
1147
|
-
_this.buttonStyle = chain(_this.activeFaceModel).map(function (f) { return CommandFace.getStyleOf(f); });
|
|
1148
|
-
_this.colorModel = chain(_this.activeFaceModel).map(function (f) { return CommandFace.getColorOf(f); });
|
|
1149
|
-
if (parent) {
|
|
1150
|
-
_this.registerDisposable(_this.parent.registerCommand(_this.command, _this.activeFaceModel));
|
|
1151
|
-
}
|
|
1152
|
-
return _this;
|
|
1153
|
-
}
|
|
1154
|
-
CommandComponent.prototype.ngOnInit = function () {
|
|
1155
|
-
};
|
|
1156
|
-
CommandComponent.ctorParameters = function () { return [
|
|
1157
|
-
{ type: CommandGroup, decorators: [{ type: Optional }] }
|
|
1158
|
-
]; };
|
|
1159
|
-
__decorate([
|
|
1160
|
-
Input(), TrackExternal(),
|
|
1161
|
-
__metadata("design:type", Command)
|
|
1162
|
-
], CommandComponent.prototype, "command", void 0);
|
|
1163
|
-
__decorate([
|
|
1164
|
-
Input(), TrackExternal(),
|
|
1165
|
-
__metadata("design:type", ValueModel)
|
|
1166
|
-
], CommandComponent.prototype, "faceModel", void 0);
|
|
1167
|
-
__decorate([
|
|
1168
|
-
Input(), StoreInValueModel('faceModel'),
|
|
1169
|
-
__metadata("design:type", Object)
|
|
1170
|
-
], CommandComponent.prototype, "face", void 0);
|
|
1171
|
-
__decorate([
|
|
1172
|
-
Input(), TrackExternal(),
|
|
1173
|
-
__metadata("design:type", ValueModel)
|
|
1174
|
-
], CommandComponent.prototype, "busyFaceModel", void 0);
|
|
1175
|
-
__decorate([
|
|
1176
|
-
Input(), StoreInValueModel('busyFaceModel'),
|
|
1177
|
-
__metadata("design:type", Object)
|
|
1178
|
-
], CommandComponent.prototype, "busyFace", void 0);
|
|
1179
|
-
CommandComponent = __decorate([
|
|
1180
|
-
Component({
|
|
1181
|
-
selector: 'aup-command',
|
|
1182
|
-
template: "<ng-container *ngIf=\"!parent\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <button *ngSwitchCase=\"CommandFace.Style.STROKED\" mat-stroked-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"CommandFace.Style.RAISED\" mat-raised-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchDefault mat-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n </ng-container>\n</ng-container>\n"
|
|
1183
|
-
}),
|
|
1184
|
-
__param(0, Optional()),
|
|
1185
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
1186
|
-
], CommandComponent);
|
|
1187
|
-
return CommandComponent;
|
|
1188
|
-
}(DisposableComponent));
|
|
1189
|
-
|
|
1190
|
-
/**
|
|
1191
|
-
*
|
|
1192
|
-
*/
|
|
1193
|
-
var FlexComponent = /** @class */ (function (_super) {
|
|
1194
|
-
__extends(FlexComponent, _super);
|
|
1195
|
-
function FlexComponent(parent) {
|
|
1196
|
-
var _this = _super.call(this) || this;
|
|
1197
|
-
_this.parent = parent;
|
|
1198
|
-
if (parent) {
|
|
1199
|
-
parent.registerFlex(_this);
|
|
1200
|
-
}
|
|
1201
|
-
return _this;
|
|
1202
|
-
}
|
|
1203
|
-
FlexComponent.prototype.ngOnInit = function () {
|
|
1204
|
-
};
|
|
1205
|
-
FlexComponent.ctorParameters = function () { return [
|
|
1206
|
-
{ type: CommandGroup }
|
|
1207
|
-
]; };
|
|
1208
|
-
FlexComponent = __decorate([
|
|
1209
|
-
Component({
|
|
1210
|
-
selector: 'aup-flex',
|
|
1211
|
-
template: ""
|
|
1212
|
-
}),
|
|
1213
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
1214
|
-
], FlexComponent);
|
|
1215
|
-
return FlexComponent;
|
|
1216
|
-
}(DisposableComponent));
|
|
1217
|
-
|
|
1218
|
-
var ɵ0 = CommandGroup.factory;
|
|
1219
|
-
/**
|
|
1220
|
-
*
|
|
1221
|
-
*/
|
|
1222
|
-
var MoreMenuComponent = /** @class */ (function (_super) {
|
|
1223
|
-
__extends(MoreMenuComponent, _super);
|
|
1224
|
-
function MoreMenuComponent(group) {
|
|
1225
|
-
var _this = _super.call(this) || this;
|
|
1226
|
-
_this.group = group;
|
|
1227
|
-
_this.tooltipModel = new MutableValueModel();
|
|
1228
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1229
|
-
group.xPosition = 'before'; // this should be the default unless overridden by the user.
|
|
1230
|
-
group.faceModel = chain(_this.tooltipModel).map(function (tooltip) {
|
|
1231
|
-
return {
|
|
1232
|
-
icon: function () { return 'mat:more_vert'; },
|
|
1233
|
-
tooltip: function () {
|
|
1234
|
-
return tooltip;
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
1237
|
-
}, { allowNil: true });
|
|
1238
|
-
return _this;
|
|
1239
|
-
}
|
|
1240
|
-
MoreMenuComponent.prototype.ngOnInit = function () {
|
|
1241
|
-
};
|
|
1242
|
-
MoreMenuComponent.prototype.ngAfterContentInit = function () {
|
|
1243
|
-
this.group.initialise();
|
|
1244
|
-
};
|
|
1245
|
-
MoreMenuComponent.ctorParameters = function () { return [
|
|
1246
|
-
{ type: CommandGroup }
|
|
1247
|
-
]; };
|
|
1248
|
-
__decorate([
|
|
1249
|
-
Input(), StoreInValueModel('tooltipModel'),
|
|
1250
|
-
__metadata("design:type", String)
|
|
1251
|
-
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
1252
|
-
__decorate([
|
|
1253
|
-
Trace(),
|
|
1254
|
-
__metadata("design:type", Function),
|
|
1255
|
-
__metadata("design:paramtypes", []),
|
|
1256
|
-
__metadata("design:returntype", void 0)
|
|
1257
|
-
], MoreMenuComponent.prototype, "ngAfterContentInit", null);
|
|
1258
|
-
MoreMenuComponent = __decorate([
|
|
1259
|
-
Component({
|
|
1260
|
-
selector: 'aup-more-menu',
|
|
1261
|
-
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1262
|
-
providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
|
|
1263
|
-
}),
|
|
1264
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
1265
|
-
], MoreMenuComponent);
|
|
1266
|
-
return MoreMenuComponent;
|
|
1267
|
-
}(DisposableComponent));
|
|
1268
|
-
|
|
1269
|
-
var ɵ0$1 = CommandGroup.factory;
|
|
1270
|
-
/**
|
|
1271
|
-
*
|
|
1272
|
-
*/
|
|
1273
|
-
var PopupMenuComponent = /** @class */ (function (_super) {
|
|
1274
|
-
__extends(PopupMenuComponent, _super);
|
|
1275
|
-
function PopupMenuComponent(group) {
|
|
1276
|
-
var _this = _super.call(this) || this;
|
|
1277
|
-
_this.group = group;
|
|
1278
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1279
|
-
group.faceModel = _this.faceModel;
|
|
1280
|
-
return _this;
|
|
1281
|
-
}
|
|
1282
|
-
PopupMenuComponent.prototype.ngOnInit = function () {
|
|
1283
|
-
};
|
|
1284
|
-
PopupMenuComponent.prototype.ngAfterContentInit = function () {
|
|
1285
|
-
this.group.initialise();
|
|
1286
|
-
};
|
|
1287
|
-
PopupMenuComponent.prototype.ngAfterViewInit = function () {
|
|
1288
|
-
};
|
|
1289
|
-
PopupMenuComponent.ctorParameters = function () { return [
|
|
1290
|
-
{ type: CommandGroup }
|
|
1291
|
-
]; };
|
|
1292
|
-
__decorate([
|
|
1293
|
-
Input(), TrackExternal(),
|
|
1294
|
-
__metadata("design:type", ValueModel)
|
|
1295
|
-
], PopupMenuComponent.prototype, "faceModel", void 0);
|
|
1296
|
-
__decorate([
|
|
1297
|
-
Input(), StoreInValueModel('faceModel'),
|
|
1298
|
-
__metadata("design:type", Object)
|
|
1299
|
-
], PopupMenuComponent.prototype, "face", void 0);
|
|
1300
|
-
__decorate([
|
|
1301
|
-
Trace(),
|
|
1302
|
-
__metadata("design:type", Function),
|
|
1303
|
-
__metadata("design:paramtypes", []),
|
|
1304
|
-
__metadata("design:returntype", void 0)
|
|
1305
|
-
], PopupMenuComponent.prototype, "ngOnInit", null);
|
|
1306
|
-
__decorate([
|
|
1307
|
-
Trace(),
|
|
1308
|
-
__metadata("design:type", Function),
|
|
1309
|
-
__metadata("design:paramtypes", []),
|
|
1310
|
-
__metadata("design:returntype", void 0)
|
|
1311
|
-
], PopupMenuComponent.prototype, "ngAfterContentInit", null);
|
|
1312
|
-
__decorate([
|
|
1313
|
-
Trace(),
|
|
1314
|
-
__metadata("design:type", Function),
|
|
1315
|
-
__metadata("design:paramtypes", []),
|
|
1316
|
-
__metadata("design:returntype", void 0)
|
|
1317
|
-
], PopupMenuComponent.prototype, "ngAfterViewInit", null);
|
|
1318
|
-
PopupMenuComponent = __decorate([
|
|
1319
|
-
Component({
|
|
1320
|
-
selector: 'aup-popup-menu',
|
|
1321
|
-
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1322
|
-
providers: [{ provide: CommandGroup, useFactory: ɵ0$1 }]
|
|
1323
|
-
}),
|
|
1324
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
1325
|
-
], PopupMenuComponent);
|
|
1326
|
-
return PopupMenuComponent;
|
|
1327
|
-
}(DisposableComponent));
|
|
1328
|
-
|
|
1329
|
-
/**
|
|
1330
|
-
*
|
|
1331
|
-
*/
|
|
1332
|
-
var SeparatorComponent = /** @class */ (function (_super) {
|
|
1333
|
-
__extends(SeparatorComponent, _super);
|
|
1334
|
-
function SeparatorComponent(parent) {
|
|
1335
|
-
var _this = _super.call(this) || this;
|
|
1336
|
-
_this.parent = parent;
|
|
1337
|
-
if (parent) {
|
|
1338
|
-
parent.registerSeparator(_this);
|
|
1339
|
-
}
|
|
1340
|
-
return _this;
|
|
1341
|
-
}
|
|
1342
|
-
SeparatorComponent.prototype.isVertical = function () {
|
|
1343
|
-
return this === null || this === void 0 ? void 0 : this.parent.isRoot();
|
|
1344
|
-
};
|
|
1345
|
-
SeparatorComponent.prototype.ngOnInit = function () {
|
|
1346
|
-
};
|
|
1347
|
-
SeparatorComponent.ctorParameters = function () { return [
|
|
1348
|
-
{ type: CommandGroup, decorators: [{ type: Optional }] }
|
|
1349
|
-
]; };
|
|
1350
|
-
SeparatorComponent = __decorate([
|
|
1351
|
-
Component({
|
|
1352
|
-
selector: 'aup-separator',
|
|
1353
|
-
template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
|
|
1354
|
-
}),
|
|
1355
|
-
__param(0, Optional()),
|
|
1356
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
1357
|
-
], SeparatorComponent);
|
|
1358
|
-
return SeparatorComponent;
|
|
1359
|
-
}(DisposableComponent));
|
|
1360
|
-
|
|
1361
|
-
var ɵ0$2 = CommandGroup.factory;
|
|
1362
|
-
/**
|
|
1363
|
-
*
|
|
1364
|
-
*/
|
|
1365
|
-
var ToolBarComponent = /** @class */ (function (_super) {
|
|
1366
|
-
__extends(ToolBarComponent, _super);
|
|
1367
|
-
function ToolBarComponent(group) {
|
|
1368
|
-
var _this = _super.call(this) || this;
|
|
1369
|
-
_this.group = group;
|
|
1370
|
-
return _this;
|
|
1371
|
-
}
|
|
1372
|
-
ToolBarComponent.prototype.ngOnInit = function () {
|
|
1373
|
-
};
|
|
1374
|
-
ToolBarComponent.prototype.ngAfterContentInit = function () {
|
|
1375
|
-
this.group.initialise();
|
|
1376
|
-
};
|
|
1377
|
-
ToolBarComponent.prototype.ngAfterViewInit = function () {
|
|
1378
|
-
};
|
|
1379
|
-
ToolBarComponent.ctorParameters = function () { return [
|
|
1380
|
-
{ type: CommandGroup }
|
|
1381
|
-
]; };
|
|
1382
|
-
__decorate([
|
|
1383
|
-
Trace(),
|
|
1384
|
-
__metadata("design:type", Function),
|
|
1385
|
-
__metadata("design:paramtypes", []),
|
|
1386
|
-
__metadata("design:returntype", void 0)
|
|
1387
|
-
], ToolBarComponent.prototype, "ngOnInit", null);
|
|
1388
|
-
__decorate([
|
|
1389
|
-
Trace(),
|
|
1390
|
-
__metadata("design:type", Function),
|
|
1391
|
-
__metadata("design:paramtypes", []),
|
|
1392
|
-
__metadata("design:returntype", void 0)
|
|
1393
|
-
], ToolBarComponent.prototype, "ngAfterContentInit", null);
|
|
1394
|
-
__decorate([
|
|
1395
|
-
Trace(),
|
|
1396
|
-
__metadata("design:type", Function),
|
|
1397
|
-
__metadata("design:paramtypes", []),
|
|
1398
|
-
__metadata("design:returntype", void 0)
|
|
1399
|
-
], ToolBarComponent.prototype, "ngAfterViewInit", null);
|
|
1400
|
-
ToolBarComponent = __decorate([
|
|
1401
|
-
Component({
|
|
1402
|
-
selector: 'aup-tool-bar',
|
|
1403
|
-
template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1404
|
-
providers: [{ provide: CommandGroup, useFactory: ɵ0$2 }],
|
|
1405
|
-
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}:host mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host span.flex{flex:1}:host>*+*{margin-left:8px}"]
|
|
1406
|
-
}),
|
|
1407
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
1408
|
-
], ToolBarComponent);
|
|
1409
|
-
return ToolBarComponent;
|
|
1410
|
-
}(DisposableComponent));
|
|
1411
|
-
|
|
1412
416
|
var FocusContainerComponent = /** @class */ (function (_super) {
|
|
1413
417
|
__extends(FocusContainerComponent, _super);
|
|
1414
418
|
function FocusContainerComponent(focusManager) {
|
|
@@ -1517,7 +521,6 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
1517
521
|
__extends(AbstractInputComponent, _super);
|
|
1518
522
|
function AbstractInputComponent() {
|
|
1519
523
|
var _this = _super.call(this) || this;
|
|
1520
|
-
_this.onValueEditedListeners = new EventListenerList();
|
|
1521
524
|
_this.dense = false;
|
|
1522
525
|
// TODO: fix this.
|
|
1523
526
|
// tslint:disable-next-line:no-output-native
|
|
@@ -1568,7 +571,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
1568
571
|
};
|
|
1569
572
|
Object.defineProperty(AbstractInputComponent.prototype, "enabled", {
|
|
1570
573
|
get: function () {
|
|
1571
|
-
return this.
|
|
574
|
+
return this.inputModel.enabled;
|
|
1572
575
|
},
|
|
1573
576
|
enumerable: true,
|
|
1574
577
|
configurable: true
|
|
@@ -1578,7 +581,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
1578
581
|
};
|
|
1579
582
|
Object.defineProperty(AbstractInputComponent.prototype, "errorList", {
|
|
1580
583
|
get: function () {
|
|
1581
|
-
return this.
|
|
584
|
+
return this.inputModel.errorList;
|
|
1582
585
|
},
|
|
1583
586
|
enumerable: true,
|
|
1584
587
|
configurable: true
|
|
@@ -1592,7 +595,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
1592
595
|
});
|
|
1593
596
|
Object.defineProperty(AbstractInputComponent.prototype, "focusContext", {
|
|
1594
597
|
get: function () {
|
|
1595
|
-
return this.
|
|
598
|
+
return this.inputModel.focusContext;
|
|
1596
599
|
},
|
|
1597
600
|
enumerable: true,
|
|
1598
601
|
configurable: true
|
|
@@ -1611,13 +614,6 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
1611
614
|
enumerable: true,
|
|
1612
615
|
configurable: true
|
|
1613
616
|
});
|
|
1614
|
-
/**
|
|
1615
|
-
* Invokes the callback when this components value is changed by a user edit.
|
|
1616
|
-
* @param callback
|
|
1617
|
-
*/
|
|
1618
|
-
AbstractInputComponent.prototype.onValueEdited = function (callback) {
|
|
1619
|
-
return this.onValueEditedListeners.add(callback);
|
|
1620
|
-
};
|
|
1621
617
|
__decorate([
|
|
1622
618
|
Input(),
|
|
1623
619
|
__metadata("design:type", String)
|
|
@@ -1719,47 +715,34 @@ var AbstractListInputComponent = /** @class */ (function (_super) {
|
|
|
1719
715
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1720
716
|
*/
|
|
1721
717
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1722
|
-
_this.
|
|
1723
|
-
_this.
|
|
1724
|
-
_this.setValueIsInProgress = new Guard();
|
|
718
|
+
_this.inputModel = _this.registerDisposable(new Form.DelegatingListModel());
|
|
719
|
+
_this.setValueIsInitialising = new Guard();
|
|
1725
720
|
_this.valueChange = new EventEmitter();
|
|
1726
|
-
var
|
|
1727
|
-
|
|
1728
|
-
var inExternalChange = valueOf.any(_this.setValueIsInProgress, chain(binding.direction).equals(Binding.Direction.RIGHT)).areTruthy();
|
|
1729
|
-
when(_this.componentListModel).changes(function (is, was) {
|
|
1730
|
-
_this.valueChange.emit(is);
|
|
1731
|
-
_this.onValueEditedListeners.fire(function (l) { return l(is, was); });
|
|
1732
|
-
}, {
|
|
721
|
+
var when = Dsl.disposeWith(_this).when;
|
|
722
|
+
when(_this.inputModel).changes(function (value) { return _this.valueChange.emit(value); }, {
|
|
1733
723
|
initialValue: 'ignore',
|
|
1734
|
-
|
|
1735
|
-
// the component to behave when used in the conventional angular
|
|
1736
|
-
// fashion, i.e. [(value)]="..."
|
|
1737
|
-
unless: inExternalChange
|
|
724
|
+
unless: _this.setValueIsInitialising
|
|
1738
725
|
});
|
|
1739
|
-
DebugContext.tag(_this.formValueModel, _this.constructor.name + ".formValueModel");
|
|
1740
726
|
return _this;
|
|
1741
727
|
}
|
|
1742
728
|
Object.defineProperty(AbstractListInputComponent.prototype, "value", {
|
|
1743
|
-
// We add support for simple direct display of values by allowing components to be used
|
|
1744
|
-
// by `component.value = ...` This use of the component without a value model in tables
|
|
1745
|
-
// and the like.
|
|
1746
729
|
set: function (value) {
|
|
1747
730
|
var _this = this;
|
|
1748
|
-
this.
|
|
1749
|
-
|
|
731
|
+
if (!this.listHolder) {
|
|
732
|
+
this.setValueIsInitialising.whileTrue(function () {
|
|
1750
733
|
_this.listHolder = new MutableListModel(value);
|
|
1751
734
|
_this.listModel = _this.listHolder;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
}
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
else {
|
|
738
|
+
this.listHolder.value = value;
|
|
739
|
+
}
|
|
1757
740
|
},
|
|
1758
741
|
enumerable: true,
|
|
1759
742
|
configurable: true
|
|
1760
743
|
});
|
|
1761
744
|
__decorate([
|
|
1762
|
-
Input(), TrackExternal({ delegateTo: '
|
|
745
|
+
Input(), TrackExternal({ delegateTo: 'inputModel' }),
|
|
1763
746
|
__metadata("design:type", Object)
|
|
1764
747
|
], AbstractListInputComponent.prototype, "listModel", void 0);
|
|
1765
748
|
__decorate([
|
|
@@ -1793,131 +776,48 @@ var AbstractValueInputComponent = /** @class */ (function (_super) {
|
|
|
1793
776
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1794
777
|
*/
|
|
1795
778
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1796
|
-
_this.
|
|
1797
|
-
_this.
|
|
1798
|
-
_this.componentValueModel = new MutableValueModel();
|
|
779
|
+
_this.inputModel = _this.registerDisposable(new Form.DelegatingValueModel());
|
|
780
|
+
_this.setValueIsInitialising = new Guard();
|
|
1799
781
|
_this.valueChange = new EventEmitter();
|
|
1800
|
-
var
|
|
1801
|
-
|
|
1802
|
-
var inExternalChange = valueOf.any(_this.setValueInProgress, chain(binding.direction).equals(Binding.Direction.RIGHT)).areTruthy();
|
|
1803
|
-
when(_this.componentValueModel).changes(function (is, was) {
|
|
1804
|
-
_this.valueChange.emit(is);
|
|
1805
|
-
_this.onValueEditedListeners.fire(function (l) { return l(is, was); });
|
|
1806
|
-
}, {
|
|
1807
|
-
initialValue: 'ignore',
|
|
1808
|
-
// we never fire events during an external set value operation. This allows
|
|
1809
|
-
// the component to behave when used in the conventional angular
|
|
1810
|
-
// fashion, i.e. [(value)]="..."
|
|
1811
|
-
unless: inExternalChange
|
|
1812
|
-
});
|
|
1813
|
-
DebugContext.tag(_this.formValueModel, _this.constructor.name + ".formValueModel");
|
|
782
|
+
var when = Dsl.disposeWith(_this).when;
|
|
783
|
+
when(_this.inputModel).changes(function (value) { return _this.valueChange.emit(value); }, { initialValue: 'ignore', unless: _this.setValueIsInitialising });
|
|
1814
784
|
return _this;
|
|
1815
785
|
}
|
|
1816
786
|
Object.defineProperty(AbstractValueInputComponent.prototype, "value", {
|
|
1817
|
-
// We add support for simple direct display of values by allowing components to be used
|
|
1818
|
-
// by `component.value = ...` This use of the component without a value model in tables
|
|
1819
|
-
// and the like.
|
|
1820
787
|
set: function (value) {
|
|
1821
|
-
var _this = this;
|
|
1822
|
-
this.
|
|
1823
|
-
|
|
1824
|
-
_this.
|
|
1825
|
-
_this.valueModel = _this.
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
}
|
|
1831
|
-
},
|
|
1832
|
-
enumerable: true,
|
|
1833
|
-
configurable: true
|
|
1834
|
-
});
|
|
1835
|
-
__decorate([
|
|
1836
|
-
Input(), TrackExternal({ delegateTo: 'formValueModel' }),
|
|
1837
|
-
__metadata("design:type", Object)
|
|
1838
|
-
], AbstractValueInputComponent.prototype, "valueModel", void 0);
|
|
1839
|
-
__decorate([
|
|
1840
|
-
Input(),
|
|
1841
|
-
__metadata("design:type", Object),
|
|
1842
|
-
__metadata("design:paramtypes", [Object])
|
|
1843
|
-
], AbstractValueInputComponent.prototype, "value", null);
|
|
1844
|
-
__decorate([
|
|
1845
|
-
Output(),
|
|
1846
|
-
__metadata("design:type", Object)
|
|
1847
|
-
], AbstractValueInputComponent.prototype, "valueChange", void 0);
|
|
1848
|
-
AbstractValueInputComponent = __decorate([
|
|
1849
|
-
Component({ template: '' }),
|
|
1850
|
-
__metadata("design:paramtypes", [])
|
|
1851
|
-
], AbstractValueInputComponent);
|
|
1852
|
-
return AbstractValueInputComponent;
|
|
1853
|
-
}(AbstractInputComponent));
|
|
1854
|
-
|
|
1855
|
-
/**
|
|
1856
|
-
* Using templates (not only supported for nil values:
|
|
1857
|
-
* <aup-autocomplete-input [valueModel]="myModel" [options]="myOptions">
|
|
1858
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
1859
|
-
* </aup-autocomplete-input>
|
|
1860
|
-
*/
|
|
1861
|
-
var AutocompleteInputComponent = /** @class */ (function (_super) {
|
|
1862
|
-
__extends(AutocompleteInputComponent, _super);
|
|
1863
|
-
function AutocompleteInputComponent() {
|
|
1864
|
-
var _this = _super.call(this) || this;
|
|
1865
|
-
_this.filterValue = new MutableValueModel();
|
|
1866
|
-
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
1867
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1868
|
-
var lowerCaseFilterValue = chain(_this.filterValue)
|
|
1869
|
-
.map(function (v) { return ___default.isString(v) ? v.toLowerCase() : ''; });
|
|
1870
|
-
_this.filteredOptions = chain(_this.optionsModel)
|
|
1871
|
-
.select(function (option) {
|
|
1872
|
-
return ___default.isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
|
|
1873
|
-
}, { dependsOn: lowerCaseFilterValue });
|
|
1874
|
-
return _this;
|
|
1875
|
-
}
|
|
1876
|
-
AutocompleteInputComponent.prototype.ngOnInit = function () {
|
|
1877
|
-
};
|
|
1878
|
-
AutocompleteInputComponent.prototype.formatOption = function (option) {
|
|
1879
|
-
return this.optionLabelFormat(option);
|
|
1880
|
-
};
|
|
1881
|
-
AutocompleteInputComponent.prototype.updateFilter = function ($event) {
|
|
1882
|
-
this.filterValue.value = $event;
|
|
1883
|
-
};
|
|
1884
|
-
AutocompleteInputComponent.prototype.onSelect = function ($event) {
|
|
1885
|
-
this.valueModel.value = $event.option.value;
|
|
1886
|
-
};
|
|
1887
|
-
__decorate([
|
|
1888
|
-
Input(), TrackExternal(),
|
|
1889
|
-
__metadata("design:type", ListModel)
|
|
1890
|
-
], AutocompleteInputComponent.prototype, "optionsModel", void 0);
|
|
1891
|
-
__decorate([
|
|
1892
|
-
Input(), StoreInListModel('optionsModel'),
|
|
1893
|
-
__metadata("design:type", Array)
|
|
1894
|
-
], AutocompleteInputComponent.prototype, "options", void 0);
|
|
788
|
+
var _this = this;
|
|
789
|
+
if (!this.valueHolder) {
|
|
790
|
+
this.setValueIsInitialising.whileTrue(function () {
|
|
791
|
+
_this.valueHolder = new MutableValueModel(value);
|
|
792
|
+
_this.valueModel = _this.valueHolder;
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
else {
|
|
796
|
+
this.valueHolder.value = value;
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
enumerable: true,
|
|
800
|
+
configurable: true
|
|
801
|
+
});
|
|
1895
802
|
__decorate([
|
|
1896
|
-
Input(),
|
|
803
|
+
Input(), TrackExternal({ delegateTo: 'inputModel' }),
|
|
1897
804
|
__metadata("design:type", Object)
|
|
1898
|
-
],
|
|
805
|
+
], AbstractValueInputComponent.prototype, "valueModel", void 0);
|
|
1899
806
|
__decorate([
|
|
1900
807
|
Input(),
|
|
1901
|
-
__metadata("design:type",
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
ContentChild('nilOptionTemplate'),
|
|
1905
|
-
__metadata("design:type", TemplateRef)
|
|
1906
|
-
], AutocompleteInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
808
|
+
__metadata("design:type", Object),
|
|
809
|
+
__metadata("design:paramtypes", [Object])
|
|
810
|
+
], AbstractValueInputComponent.prototype, "value", null);
|
|
1907
811
|
__decorate([
|
|
1908
|
-
|
|
1909
|
-
__metadata("design:type",
|
|
1910
|
-
],
|
|
1911
|
-
|
|
1912
|
-
Component({
|
|
1913
|
-
selector: 'aup-autocomplete-input',
|
|
1914
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValueModel.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\" [autoActiveFirstOption]=\"true\" (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\"\n >{{formatOption(option)}}</mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
1915
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
1916
|
-
}),
|
|
812
|
+
Output(),
|
|
813
|
+
__metadata("design:type", Object)
|
|
814
|
+
], AbstractValueInputComponent.prototype, "valueChange", void 0);
|
|
815
|
+
AbstractValueInputComponent = __decorate([
|
|
816
|
+
Component({ template: '' }),
|
|
1917
817
|
__metadata("design:paramtypes", [])
|
|
1918
|
-
],
|
|
1919
|
-
return
|
|
1920
|
-
}(
|
|
818
|
+
], AbstractValueInputComponent);
|
|
819
|
+
return AbstractValueInputComponent;
|
|
820
|
+
}(AbstractInputComponent));
|
|
1921
821
|
|
|
1922
822
|
var CheckboxInputComponent = /** @class */ (function (_super) {
|
|
1923
823
|
__extends(CheckboxInputComponent, _super);
|
|
@@ -1942,7 +842,7 @@ var CheckboxInputComponent = /** @class */ (function (_super) {
|
|
|
1942
842
|
CheckboxInputComponent = __decorate([
|
|
1943
843
|
Component({
|
|
1944
844
|
selector: 'aup-checkbox-input',
|
|
1945
|
-
template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"
|
|
845
|
+
template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"valueModel.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n",
|
|
1946
846
|
styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-error,mat-hint{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}"]
|
|
1947
847
|
}),
|
|
1948
848
|
__metadata("design:paramtypes", [])
|
|
@@ -1950,53 +850,6 @@ var CheckboxInputComponent = /** @class */ (function (_super) {
|
|
|
1950
850
|
return CheckboxInputComponent;
|
|
1951
851
|
}(AbstractValueInputComponent));
|
|
1952
852
|
|
|
1953
|
-
/**
|
|
1954
|
-
* Using templates:
|
|
1955
|
-
* <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
|
|
1956
|
-
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
1957
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
1958
|
-
* </aup-multiple-select_input>
|
|
1959
|
-
*/
|
|
1960
|
-
var MultipleSelectInputComponent = /** @class */ (function (_super) {
|
|
1961
|
-
__extends(MultipleSelectInputComponent, _super);
|
|
1962
|
-
function MultipleSelectInputComponent() {
|
|
1963
|
-
var _this = _super.call(this) || this;
|
|
1964
|
-
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
1965
|
-
return _this;
|
|
1966
|
-
}
|
|
1967
|
-
MultipleSelectInputComponent.prototype.ngOnInit = function () {
|
|
1968
|
-
};
|
|
1969
|
-
__decorate([
|
|
1970
|
-
Input(), TrackExternal(),
|
|
1971
|
-
__metadata("design:type", ListModel)
|
|
1972
|
-
], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
|
|
1973
|
-
__decorate([
|
|
1974
|
-
Input(), StoreInListModel('optionsModel'),
|
|
1975
|
-
__metadata("design:type", Array)
|
|
1976
|
-
], MultipleSelectInputComponent.prototype, "options", void 0);
|
|
1977
|
-
__decorate([
|
|
1978
|
-
Input(),
|
|
1979
|
-
__metadata("design:type", Object)
|
|
1980
|
-
], MultipleSelectInputComponent.prototype, "optionLabel", void 0);
|
|
1981
|
-
__decorate([
|
|
1982
|
-
ContentChild('optionTemplate'),
|
|
1983
|
-
__metadata("design:type", TemplateRef)
|
|
1984
|
-
], MultipleSelectInputComponent.prototype, "optionTemplateRef", void 0);
|
|
1985
|
-
__decorate([
|
|
1986
|
-
Input(),
|
|
1987
|
-
__metadata("design:type", Function)
|
|
1988
|
-
], MultipleSelectInputComponent.prototype, "optionLabelFormat", void 0);
|
|
1989
|
-
MultipleSelectInputComponent = __decorate([
|
|
1990
|
-
Component({
|
|
1991
|
-
selector: 'aup-multiple-select-input',
|
|
1992
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"componentListModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
1993
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
1994
|
-
}),
|
|
1995
|
-
__metadata("design:paramtypes", [])
|
|
1996
|
-
], MultipleSelectInputComponent);
|
|
1997
|
-
return MultipleSelectInputComponent;
|
|
1998
|
-
}(AbstractListInputComponent));
|
|
1999
|
-
|
|
2000
853
|
var NumberInputComponent = /** @class */ (function (_super) {
|
|
2001
854
|
__extends(NumberInputComponent, _super);
|
|
2002
855
|
function NumberInputComponent() {
|
|
@@ -2020,7 +873,7 @@ var NumberInputComponent = /** @class */ (function (_super) {
|
|
|
2020
873
|
NumberInputComponent = __decorate([
|
|
2021
874
|
Component({
|
|
2022
875
|
selector: 'aup-number-input',
|
|
2023
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
876
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
2024
877
|
styles: [""]
|
|
2025
878
|
}),
|
|
2026
879
|
__metadata("design:paramtypes", [])
|
|
@@ -2040,7 +893,7 @@ var PasswordInputComponent = /** @class */ (function (_super) {
|
|
|
2040
893
|
PasswordInputComponent = __decorate([
|
|
2041
894
|
Component({
|
|
2042
895
|
selector: 'aup-password-input',
|
|
2043
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
896
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
|
|
2044
897
|
styles: [""]
|
|
2045
898
|
}),
|
|
2046
899
|
__metadata("design:paramtypes", [])
|
|
@@ -2052,7 +905,6 @@ var PasswordInputComponent = /** @class */ (function (_super) {
|
|
|
2052
905
|
* Using templates:
|
|
2053
906
|
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
2054
907
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2055
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2056
908
|
* </aup-select_input>
|
|
2057
909
|
*/
|
|
2058
910
|
var SelectInputComponent = /** @class */ (function (_super) {
|
|
@@ -2095,7 +947,7 @@ var SelectInputComponent = /** @class */ (function (_super) {
|
|
|
2095
947
|
SelectInputComponent = __decorate([
|
|
2096
948
|
Component({
|
|
2097
949
|
selector: 'aup-select-input',
|
|
2098
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
950
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
2099
951
|
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2100
952
|
}),
|
|
2101
953
|
__metadata("design:paramtypes", [])
|
|
@@ -2109,9 +961,9 @@ var StringInputComponent = /** @class */ (function (_super) {
|
|
|
2109
961
|
var _this = _super.call(this) || this;
|
|
2110
962
|
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
2111
963
|
_this.clearCommand = Command.create(function () {
|
|
2112
|
-
_this.
|
|
964
|
+
_this.valueModel.value = null;
|
|
2113
965
|
});
|
|
2114
|
-
_this.clearCommand.disableWhile(chain.stringValue(_this.
|
|
966
|
+
_this.clearCommand.disableWhile(chain.stringValue(_this.valueModel).isBlank());
|
|
2115
967
|
return _this;
|
|
2116
968
|
}
|
|
2117
969
|
StringInputComponent.prototype.ngOnInit = function () {
|
|
@@ -2127,7 +979,7 @@ var StringInputComponent = /** @class */ (function (_super) {
|
|
|
2127
979
|
StringInputComponent = __decorate([
|
|
2128
980
|
Component({
|
|
2129
981
|
selector: 'aup-string-input',
|
|
2130
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
982
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n",
|
|
2131
983
|
styles: ["button[disabled]{visibility:hidden}"]
|
|
2132
984
|
}),
|
|
2133
985
|
__metadata("design:paramtypes", [])
|
|
@@ -2158,7 +1010,7 @@ var TextInputComponent = /** @class */ (function (_super) {
|
|
|
2158
1010
|
TextInputComponent = __decorate([
|
|
2159
1011
|
Component({
|
|
2160
1012
|
selector: 'aup-text-input',
|
|
2161
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
1013
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
|
|
2162
1014
|
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
2163
1015
|
}),
|
|
2164
1016
|
__metadata("design:paramtypes", [])
|
|
@@ -2166,59 +1018,6 @@ var TextInputComponent = /** @class */ (function (_super) {
|
|
|
2166
1018
|
return TextInputComponent;
|
|
2167
1019
|
}(AbstractValueInputComponent));
|
|
2168
1020
|
|
|
2169
|
-
var IconComponent = /** @class */ (function () {
|
|
2170
|
-
function IconComponent() {
|
|
2171
|
-
this.allowedPrefixes = Enum.values(IconComponent_1.IconPrefix).map(function (p) { return p + ":"; });
|
|
2172
|
-
this.iconPrefix = IconComponent_1.IconPrefix;
|
|
2173
|
-
}
|
|
2174
|
-
IconComponent_1 = IconComponent;
|
|
2175
|
-
Object.defineProperty(IconComponent.prototype, "icon", {
|
|
2176
|
-
get: function () {
|
|
2177
|
-
return this._icon;
|
|
2178
|
-
},
|
|
2179
|
-
set: function (iconName) {
|
|
2180
|
-
this._icon = iconName;
|
|
2181
|
-
if (!iconName) {
|
|
2182
|
-
this.errorMessage = 'icon is nil';
|
|
2183
|
-
this.prefix = undefined;
|
|
2184
|
-
return;
|
|
2185
|
-
}
|
|
2186
|
-
var colonIndex = iconName.indexOf(':');
|
|
2187
|
-
if (colonIndex > 0) {
|
|
2188
|
-
this.prefix = this.icon.slice(0, colonIndex);
|
|
2189
|
-
this.suffix = this.icon.slice(colonIndex + 1);
|
|
2190
|
-
}
|
|
2191
|
-
if (this.prefix) {
|
|
2192
|
-
this.errorMessage = "Unknown icon \"" + iconName + "\"";
|
|
2193
|
-
}
|
|
2194
|
-
this.errorMessage = "Unknown icon prefix, expected one of [" + this.allowedPrefixes.join(',') + "] got \"" + this.prefix + ":\"";
|
|
2195
|
-
},
|
|
2196
|
-
enumerable: true,
|
|
2197
|
-
configurable: true
|
|
2198
|
-
});
|
|
2199
|
-
var IconComponent_1;
|
|
2200
|
-
__decorate([
|
|
2201
|
-
Input(),
|
|
2202
|
-
__metadata("design:type", String),
|
|
2203
|
-
__metadata("design:paramtypes", [String])
|
|
2204
|
-
], IconComponent.prototype, "icon", null);
|
|
2205
|
-
IconComponent = IconComponent_1 = __decorate([
|
|
2206
|
-
Component({
|
|
2207
|
-
selector: 'aup-icon',
|
|
2208
|
-
template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"iconPrefix.SVG\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"iconPrefix.MATERIAL\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"iconPrefix.FONT_AWESOME\"\n class=\"faIconWrapper\">\n <fa-icon [icon]=\"suffix\">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n",
|
|
2209
|
-
styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center;width:24px;height:24px}.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]
|
|
2210
|
-
})
|
|
2211
|
-
], IconComponent);
|
|
2212
|
-
return IconComponent;
|
|
2213
|
-
}());
|
|
2214
|
-
(function (IconComponent) {
|
|
2215
|
-
IconComponent.IconPrefix = Enum({
|
|
2216
|
-
SVG: 'svg',
|
|
2217
|
-
FONT_AWESOME: 'fa',
|
|
2218
|
-
MATERIAL: 'mat'
|
|
2219
|
-
});
|
|
2220
|
-
})(IconComponent || (IconComponent = {}));
|
|
2221
|
-
|
|
2222
1021
|
var NoopComponent = /** @class */ (function () {
|
|
2223
1022
|
function NoopComponent() {
|
|
2224
1023
|
}
|
|
@@ -2429,7 +1228,6 @@ var CellHeaderPortalRef = /** @class */ (function (_super) {
|
|
|
2429
1228
|
assert$1.isTruthy(host);
|
|
2430
1229
|
host[HEADER_CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
|
|
2431
1230
|
};
|
|
2432
|
-
// @Trace()
|
|
2433
1231
|
CellHeaderPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2434
1232
|
this.initialiseHeader(portalComponent, host.column);
|
|
2435
1233
|
};
|
|
@@ -2453,15 +1251,13 @@ var ComponentCellRendererPortalRef = /** @class */ (function (_super) {
|
|
|
2453
1251
|
ComponentCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2454
1252
|
host[CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
|
|
2455
1253
|
};
|
|
2456
|
-
// @Trace()
|
|
2457
1254
|
ComponentCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2458
1255
|
host[PORTAL_RENDERER_COMPONENT] = portalComponent;
|
|
2459
|
-
this.updateComponent(portalComponent, host.getRowData()
|
|
1256
|
+
this.updateComponent(portalComponent, host.getRowData());
|
|
2460
1257
|
};
|
|
2461
|
-
// @Trace()
|
|
2462
1258
|
ComponentCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2463
1259
|
if (host[PORTAL_RENDERER_COMPONENT]) {
|
|
2464
|
-
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData()
|
|
1260
|
+
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData());
|
|
2465
1261
|
}
|
|
2466
1262
|
};
|
|
2467
1263
|
return ComponentCellRendererPortalRef;
|
|
@@ -2503,7 +1299,6 @@ var TemplateCellRendererPortalRef = /** @class */ (function (_super) {
|
|
|
2503
1299
|
TemplateCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2504
1300
|
// don't care
|
|
2505
1301
|
};
|
|
2506
|
-
// @Trace()
|
|
2507
1302
|
TemplateCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2508
1303
|
host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());
|
|
2509
1304
|
host.fillCell = this.fillCell;
|
|
@@ -2694,8 +1489,7 @@ var SelectHeaderCellRendererComponent = /** @class */ (function (_super) {
|
|
|
2694
1489
|
|
|
2695
1490
|
var noop = function () {
|
|
2696
1491
|
};
|
|
2697
|
-
var ɵ0
|
|
2698
|
-
var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol("aup-cell-renderer:row-data-cache");
|
|
1492
|
+
var ɵ0 = noop;
|
|
2699
1493
|
var ColumnModel = /** @class */ (function () {
|
|
2700
1494
|
function ColumnModel(columnId, defaults) {
|
|
2701
1495
|
this.columnId = columnId;
|
|
@@ -2786,66 +1580,24 @@ var ColumnModel = /** @class */ (function () {
|
|
|
2786
1580
|
}());
|
|
2787
1581
|
var PropertyColumnModel = /** @class */ (function (_super) {
|
|
2788
1582
|
__extends(PropertyColumnModel, _super);
|
|
2789
|
-
function PropertyColumnModel(
|
|
2790
|
-
var _this = _super.call(this,
|
|
1583
|
+
function PropertyColumnModel(property, defaults) {
|
|
1584
|
+
var _this = _super.call(this, property.toString(), defaults) || this;
|
|
2791
1585
|
_this.property = property;
|
|
2792
1586
|
_this._format = function (value) { return value; };
|
|
2793
1587
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
2794
1588
|
return _this;
|
|
2795
1589
|
}
|
|
2796
|
-
PropertyColumnModel.prototype.cellRenderer = function (componentType
|
|
1590
|
+
PropertyColumnModel.prototype.cellRenderer = function (componentType) {
|
|
2797
1591
|
var _this = this;
|
|
2798
|
-
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData
|
|
2799
|
-
if (firstTime) {
|
|
2800
|
-
if (___default.isFunction(onComponentInitOrOptions)) {
|
|
2801
|
-
onComponentInitOrOptions(component);
|
|
2802
|
-
}
|
|
2803
|
-
else {
|
|
2804
|
-
if (___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
2805
|
-
onComponentInitOrOptions.onComponentInit(component);
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
}
|
|
1592
|
+
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData) {
|
|
2809
1593
|
component.value = _this._format(rowData.row[_this.property]);
|
|
2810
|
-
if (!___default.isFunction(onComponentInitOrOptions) && ___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
2811
|
-
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
2812
|
-
}
|
|
2813
|
-
}));
|
|
2814
|
-
return this;
|
|
2815
|
-
};
|
|
2816
|
-
PropertyColumnModel.prototype.mutableCellRenderer = function (componentType, options) {
|
|
2817
|
-
var _this = this;
|
|
2818
|
-
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
2819
|
-
// keep a local copy most recent row value so it's available to teh
|
|
2820
|
-
// edit callback without having to add/remove subscribers all the time.
|
|
2821
|
-
component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
|
|
2822
|
-
var disableEditCallback = false;
|
|
2823
|
-
if (firstTime) {
|
|
2824
|
-
if (___default.isFunction(options === null || options === void 0 ? void 0 : options.onComponentInit)) {
|
|
2825
|
-
options.onComponentInit(component);
|
|
2826
|
-
}
|
|
2827
|
-
// install our edit callback
|
|
2828
|
-
component.onValueEdited(function (is, was) {
|
|
2829
|
-
if (!disableEditCallback) {
|
|
2830
|
-
options.onValueEdit(component[CELL_RENDERER_COMPONENT_ROW_CACHE], is, was);
|
|
2831
|
-
}
|
|
2832
|
-
});
|
|
2833
|
-
}
|
|
2834
|
-
// now push the value the component and disable the callback just incase the component misbehaves
|
|
2835
|
-
// and fires a value change during the operation.
|
|
2836
|
-
disableEditCallback = true;
|
|
2837
|
-
component.value = rowData.row[_this.property];
|
|
2838
|
-
disableEditCallback = false;
|
|
2839
|
-
if (!___default.isFunction(options) && ___default.isFunction(options === null || options === void 0 ? void 0 : options.onRowUpdate)) {
|
|
2840
|
-
options.onRowUpdate(component, rowData.row);
|
|
2841
|
-
}
|
|
2842
1594
|
}));
|
|
2843
1595
|
return this;
|
|
2844
1596
|
};
|
|
2845
|
-
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser,
|
|
1597
|
+
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
|
|
2846
1598
|
var _this = this;
|
|
2847
1599
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
2848
|
-
var initialiser = ___default.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser :
|
|
1600
|
+
var initialiser = ___default.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
2849
1601
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
2850
1602
|
var formValueModel = editSession.form.pluck(_this.property);
|
|
2851
1603
|
if (validators) {
|
|
@@ -2870,8 +1622,8 @@ var PropertyColumnModel = /** @class */ (function (_super) {
|
|
|
2870
1622
|
}(ColumnModel));
|
|
2871
1623
|
var ListPropertyColumnModel = /** @class */ (function (_super) {
|
|
2872
1624
|
__extends(ListPropertyColumnModel, _super);
|
|
2873
|
-
function ListPropertyColumnModel(
|
|
2874
|
-
var _this = _super.call(this,
|
|
1625
|
+
function ListPropertyColumnModel(property, defaults) {
|
|
1626
|
+
var _this = _super.call(this, property.toString(), defaults) || this;
|
|
2875
1627
|
_this.property = property;
|
|
2876
1628
|
_this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
|
|
2877
1629
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
@@ -2918,23 +1670,10 @@ var CustomValueColumnModel = /** @class */ (function (_super) {
|
|
|
2918
1670
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
2919
1671
|
return _this;
|
|
2920
1672
|
}
|
|
2921
|
-
CustomValueColumnModel.prototype.cellRenderer = function (componentType
|
|
1673
|
+
CustomValueColumnModel.prototype.cellRenderer = function (componentType) {
|
|
2922
1674
|
var _this = this;
|
|
2923
|
-
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData
|
|
2924
|
-
if (firstTime) {
|
|
2925
|
-
if (___default.isFunction(onComponentInitOrOptions)) {
|
|
2926
|
-
onComponentInitOrOptions(component);
|
|
2927
|
-
}
|
|
2928
|
-
else {
|
|
2929
|
-
if (___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
2930
|
-
onComponentInitOrOptions.onComponentInit(component);
|
|
2931
|
-
}
|
|
2932
|
-
}
|
|
2933
|
-
}
|
|
1675
|
+
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData) {
|
|
2934
1676
|
component.value = _this.getValue(rowData.row);
|
|
2935
|
-
if (!___default.isFunction(onComponentInitOrOptions) && ___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
2936
|
-
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
2937
|
-
}
|
|
2938
1677
|
}));
|
|
2939
1678
|
return this;
|
|
2940
1679
|
};
|
|
@@ -3107,9 +1846,6 @@ var TableModel = /** @class */ (function () {
|
|
|
3107
1846
|
this._editorSessions = new MutableListModel();
|
|
3108
1847
|
this.rowClassNamePredicates = [];
|
|
3109
1848
|
this._createForm = function (row) { return new DirtyTrackingForm(); };
|
|
3110
|
-
this.trackBy = function (index, item) {
|
|
3111
|
-
return _this.identityOf ? _this.identityOf(item) : index;
|
|
3112
|
-
};
|
|
3113
1849
|
this.identityOf = sourceOfTruth.identityOf;
|
|
3114
1850
|
var _a = Dsl.disposeWith(this._garbage), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
3115
1851
|
this._columnsById = chain(this._columns).indexBy('columnId');
|
|
@@ -3121,7 +1857,7 @@ var TableModel = /** @class */ (function () {
|
|
|
3121
1857
|
this.dataSource = chain(this.sourceOfTruth).replaceAll(this.rowsBeingEdited);
|
|
3122
1858
|
this.firstEditableColumn = chain(this.columns).select(function (c) { return c.hasEditorPortal(); }).first();
|
|
3123
1859
|
this.hasColumnsWithRowSelectionExplicitlyEnabled = chain(this._columns).findIndex(function (column) { return column.isRowSelectionExplicitlyEnabled(); }).isGreaterThanOrEqualTo(0);
|
|
3124
|
-
this.addRowClass(
|
|
1860
|
+
this.addRowClass("enable-hover", function () { return _this.isRowSelectionEnabled(); });
|
|
3125
1861
|
}
|
|
3126
1862
|
TableModel_1 = TableModel;
|
|
3127
1863
|
TableModel.fromList = function (sourceOfTruth, builder) {
|
|
@@ -3136,6 +1872,12 @@ var TableModel = /** @class */ (function () {
|
|
|
3136
1872
|
enumerable: true,
|
|
3137
1873
|
configurable: true
|
|
3138
1874
|
});
|
|
1875
|
+
TableModel.prototype.getTrackByFunction = function () {
|
|
1876
|
+
var _this = this;
|
|
1877
|
+
return function (index, item) {
|
|
1878
|
+
return _this.identityOf ? _this.identityOf(item) : index;
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
3139
1881
|
Object.defineProperty(TableModel.prototype, "columns", {
|
|
3140
1882
|
get: function () {
|
|
3141
1883
|
return this._columns.readonly;
|
|
@@ -3143,11 +1885,11 @@ var TableModel = /** @class */ (function () {
|
|
|
3143
1885
|
enumerable: true,
|
|
3144
1886
|
configurable: true
|
|
3145
1887
|
});
|
|
3146
|
-
TableModel.prototype.pluck = function (property
|
|
3147
|
-
return this.addColumn(new PropertyColumnModel(
|
|
1888
|
+
TableModel.prototype.pluck = function (property) {
|
|
1889
|
+
return this.addColumn(new PropertyColumnModel(property, this));
|
|
3148
1890
|
};
|
|
3149
|
-
TableModel.prototype.pluckList = function (property
|
|
3150
|
-
return this.addColumn(new ListPropertyColumnModel(
|
|
1891
|
+
TableModel.prototype.pluckList = function (property) {
|
|
1892
|
+
return this.addColumn(new ListPropertyColumnModel(property, this));
|
|
3151
1893
|
};
|
|
3152
1894
|
TableModel.prototype.addSelectionColumn = function (selectionModel) {
|
|
3153
1895
|
assert.isNil(this.selectionColumnModel);
|
|
@@ -3161,9 +1903,6 @@ var TableModel = /** @class */ (function () {
|
|
|
3161
1903
|
TableModel.prototype.addCustomColumn = function (columnId, dataAccessor) {
|
|
3162
1904
|
return this.addColumn(new CustomValueColumnModel(columnId, this, dataAccessor));
|
|
3163
1905
|
};
|
|
3164
|
-
TableModel.prototype.addComponentColumn = function (columnId, component, onComponentInitOrOptions) {
|
|
3165
|
-
return this.addColumn(new CustomValueColumnModel(columnId, this, function (row) { return row; })).cellRenderer(component, onComponentInitOrOptions);
|
|
3166
|
-
};
|
|
3167
1906
|
TableModel.prototype.addTemplateColumn = function (columnId) {
|
|
3168
1907
|
return this.addColumn(new CustomTemplateColumnModel(columnId, this));
|
|
3169
1908
|
};
|
|
@@ -3192,14 +1931,12 @@ var TableModel = /** @class */ (function () {
|
|
|
3192
1931
|
}
|
|
3193
1932
|
return column;
|
|
3194
1933
|
};
|
|
3195
|
-
// removeColumn(column: ColumnModel<Row>) {
|
|
3196
|
-
//
|
|
3197
|
-
// }
|
|
3198
1934
|
TableModel.prototype.columnTextProperties = function (columnTextProperties) {
|
|
3199
1935
|
this._columnTextPropertiesLookup = columnTextProperties;
|
|
3200
1936
|
};
|
|
3201
1937
|
TableModel.prototype.getColumnTextProperties = function (column) {
|
|
3202
|
-
|
|
1938
|
+
var factory = this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
|
|
1939
|
+
return factory ? factory() : undefined;
|
|
3203
1940
|
};
|
|
3204
1941
|
TableModel.prototype.startEditSession = function (row) {
|
|
3205
1942
|
var _this = this;
|
|
@@ -3317,7 +2054,7 @@ var TableComponent = /** @class */ (function (_super) {
|
|
|
3317
2054
|
TableComponent = __decorate([
|
|
3318
2055
|
Component({
|
|
3319
2056
|
selector: 'aup-table',
|
|
3320
|
-
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.
|
|
2057
|
+
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.getTrackByFunction()\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"onCellClicked(column, row)\" [class.enable-cursor]=\"tableModel.isRowSelectionEnabledFor(column)\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value;\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n ></tr>\n\n</table>\n",
|
|
3321
2058
|
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]
|
|
3322
2059
|
}),
|
|
3323
2060
|
__metadata("design:paramtypes", [])
|
|
@@ -3500,63 +2237,6 @@ var TableHeaderCellRendererComponent = /** @class */ (function () {
|
|
|
3500
2237
|
return TableHeaderCellRendererComponent;
|
|
3501
2238
|
}());
|
|
3502
2239
|
|
|
3503
|
-
var MenuItemData = /** @class */ (function () {
|
|
3504
|
-
function MenuItemData(factory, face) {
|
|
3505
|
-
this.factory = factory;
|
|
3506
|
-
this.face = face;
|
|
3507
|
-
}
|
|
3508
|
-
return MenuItemData;
|
|
3509
|
-
}());
|
|
3510
|
-
/**
|
|
3511
|
-
*
|
|
3512
|
-
*/
|
|
3513
|
-
var TableRowMenuComponent = /** @class */ (function (_super) {
|
|
3514
|
-
__extends(TableRowMenuComponent, _super);
|
|
3515
|
-
function TableRowMenuComponent() {
|
|
3516
|
-
var _this = _super.call(this) || this;
|
|
3517
|
-
_this.actions = [];
|
|
3518
|
-
_this.moreActions = [];
|
|
3519
|
-
return _this;
|
|
3520
|
-
}
|
|
3521
|
-
TableRowMenuComponent.prototype.registerAction = function (commandFactory, properties) {
|
|
3522
|
-
this.actions.push(new MenuItemData(commandFactory, properties));
|
|
3523
|
-
};
|
|
3524
|
-
TableRowMenuComponent.prototype.registerMoreAction = function (commandFactory, properties) {
|
|
3525
|
-
this.moreActions.push(new MenuItemData(commandFactory, properties));
|
|
3526
|
-
};
|
|
3527
|
-
TableRowMenuComponent.prototype.ngOnInit = function () {
|
|
3528
|
-
};
|
|
3529
|
-
TableRowMenuComponent.prototype.createMoreMenuCommand = function (item, value) {
|
|
3530
|
-
var _this = this;
|
|
3531
|
-
var when = Dsl.disposeWith(this).when;
|
|
3532
|
-
var command = item.factory.create(value);
|
|
3533
|
-
when(command.busy).becomesFalsey(function () {
|
|
3534
|
-
_this.closeMoreMenu();
|
|
3535
|
-
});
|
|
3536
|
-
return command;
|
|
3537
|
-
};
|
|
3538
|
-
TableRowMenuComponent.prototype.closeMoreMenu = function () {
|
|
3539
|
-
this.menu.closeMenu();
|
|
3540
|
-
};
|
|
3541
|
-
__decorate([
|
|
3542
|
-
Input(),
|
|
3543
|
-
__metadata("design:type", Object)
|
|
3544
|
-
], TableRowMenuComponent.prototype, "value", void 0);
|
|
3545
|
-
__decorate([
|
|
3546
|
-
ViewChild(MatMenuTrigger),
|
|
3547
|
-
__metadata("design:type", MatMenuTrigger)
|
|
3548
|
-
], TableRowMenuComponent.prototype, "menu", void 0);
|
|
3549
|
-
TableRowMenuComponent = __decorate([
|
|
3550
|
-
Component({
|
|
3551
|
-
selector: 'aup-table-row-menu',
|
|
3552
|
-
template: "\n <aup-tool-bar>\n <aup-command *ngFor=\"let action of actions\" [command]=\"action.factory.create(value)\"\n [face]=\"action.faceModel\"></aup-command>\n </aup-tool-bar>\n <ng-container *ngIf=\"moreActions.length > 0\">\n <aup-more-menu>\n <aup-command *ngFor=\"let action of moreActions\" [command]=\"action.factory.create(value)\"\n [face]=\"action.faceModel\"></aup-command>\n </aup-more-menu>\n </ng-container>\n ",
|
|
3553
|
-
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
3554
|
-
}),
|
|
3555
|
-
__metadata("design:paramtypes", [])
|
|
3556
|
-
], TableRowMenuComponent);
|
|
3557
|
-
return TableRowMenuComponent;
|
|
3558
|
-
}(DisposableComponent));
|
|
3559
|
-
|
|
3560
2240
|
var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
3561
2241
|
__extends(VerticalFocusContainerComponent, _super);
|
|
3562
2242
|
function VerticalFocusContainerComponent(focusManager) {
|
|
@@ -3642,6 +2322,96 @@ var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
|
3642
2322
|
return VerticalFocusContainerComponent;
|
|
3643
2323
|
}(FocusContainerComponent));
|
|
3644
2324
|
|
|
2325
|
+
var MultipleSelectInputComponent = /** @class */ (function (_super) {
|
|
2326
|
+
__extends(MultipleSelectInputComponent, _super);
|
|
2327
|
+
function MultipleSelectInputComponent() {
|
|
2328
|
+
var _this = _super.call(this) || this;
|
|
2329
|
+
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2330
|
+
return _this;
|
|
2331
|
+
}
|
|
2332
|
+
MultipleSelectInputComponent.prototype.ngOnInit = function () {
|
|
2333
|
+
};
|
|
2334
|
+
__decorate([
|
|
2335
|
+
Input(), TrackExternal(),
|
|
2336
|
+
__metadata("design:type", ListModel)
|
|
2337
|
+
], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
|
|
2338
|
+
__decorate([
|
|
2339
|
+
Input(), StoreInListModel('optionsModel'),
|
|
2340
|
+
__metadata("design:type", Array)
|
|
2341
|
+
], MultipleSelectInputComponent.prototype, "options", void 0);
|
|
2342
|
+
__decorate([
|
|
2343
|
+
Input(),
|
|
2344
|
+
__metadata("design:type", Object)
|
|
2345
|
+
], MultipleSelectInputComponent.prototype, "optionLabel", void 0);
|
|
2346
|
+
__decorate([
|
|
2347
|
+
Input(),
|
|
2348
|
+
__metadata("design:type", Boolean)
|
|
2349
|
+
], MultipleSelectInputComponent.prototype, "allowNil", void 0);
|
|
2350
|
+
__decorate([
|
|
2351
|
+
ContentChild('optionTemplate'),
|
|
2352
|
+
__metadata("design:type", TemplateRef)
|
|
2353
|
+
], MultipleSelectInputComponent.prototype, "optionTemplateRef", void 0);
|
|
2354
|
+
__decorate([
|
|
2355
|
+
ContentChild('nilOptionTemplate'),
|
|
2356
|
+
__metadata("design:type", TemplateRef)
|
|
2357
|
+
], MultipleSelectInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
2358
|
+
__decorate([
|
|
2359
|
+
Input(),
|
|
2360
|
+
__metadata("design:type", Function)
|
|
2361
|
+
], MultipleSelectInputComponent.prototype, "optionLabelFormat", void 0);
|
|
2362
|
+
MultipleSelectInputComponent = __decorate([
|
|
2363
|
+
Component({
|
|
2364
|
+
selector: 'aup-multiple-select-input',
|
|
2365
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"listModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
2366
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2367
|
+
}),
|
|
2368
|
+
__metadata("design:paramtypes", [])
|
|
2369
|
+
], MultipleSelectInputComponent);
|
|
2370
|
+
return MultipleSelectInputComponent;
|
|
2371
|
+
}(AbstractListInputComponent));
|
|
2372
|
+
|
|
2373
|
+
var IconComponent = /** @class */ (function () {
|
|
2374
|
+
function IconComponent() {
|
|
2375
|
+
}
|
|
2376
|
+
Object.defineProperty(IconComponent.prototype, "icon", {
|
|
2377
|
+
get: function () {
|
|
2378
|
+
return this._icon;
|
|
2379
|
+
},
|
|
2380
|
+
set: function (iconName) {
|
|
2381
|
+
this._icon = iconName;
|
|
2382
|
+
if (!iconName) {
|
|
2383
|
+
this.errorMessage = 'icon is nil';
|
|
2384
|
+
this.prefix = undefined;
|
|
2385
|
+
return;
|
|
2386
|
+
}
|
|
2387
|
+
var colonIndex = iconName.indexOf(':');
|
|
2388
|
+
if (colonIndex > 0) {
|
|
2389
|
+
this.prefix = this.icon.slice(0, colonIndex);
|
|
2390
|
+
this.suffix = this.icon.slice(colonIndex + 1);
|
|
2391
|
+
}
|
|
2392
|
+
if (this.prefix) {
|
|
2393
|
+
this.errorMessage = "Unknown icon \"" + iconName + "\"";
|
|
2394
|
+
}
|
|
2395
|
+
this.errorMessage = "Unknown icon prefix \"" + this.prefix + "\"";
|
|
2396
|
+
},
|
|
2397
|
+
enumerable: true,
|
|
2398
|
+
configurable: true
|
|
2399
|
+
});
|
|
2400
|
+
__decorate([
|
|
2401
|
+
Input(),
|
|
2402
|
+
__metadata("design:type", String),
|
|
2403
|
+
__metadata("design:paramtypes", [String])
|
|
2404
|
+
], IconComponent.prototype, "icon", null);
|
|
2405
|
+
IconComponent = __decorate([
|
|
2406
|
+
Component({
|
|
2407
|
+
selector: 'aup-icon',
|
|
2408
|
+
template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"'svg'\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"'mat'\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"'fab'\"\n class=\"faIconWrapper\">\n <fa-icon [icon]=\"suffix\">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n",
|
|
2409
|
+
styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center;width:24px;height:24px}.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]
|
|
2410
|
+
})
|
|
2411
|
+
], IconComponent);
|
|
2412
|
+
return IconComponent;
|
|
2413
|
+
}());
|
|
2414
|
+
|
|
3645
2415
|
var ComponentsModule = /** @class */ (function () {
|
|
3646
2416
|
function ComponentsModule(faIconLibrary) {
|
|
3647
2417
|
faIconLibrary.addIconPacks(fas);
|
|
@@ -3660,8 +2430,6 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
3660
2430
|
TextInputComponent,
|
|
3661
2431
|
PasswordInputComponent,
|
|
3662
2432
|
SelectInputComponent,
|
|
3663
|
-
MultipleSelectInputComponent,
|
|
3664
|
-
AutocompleteInputComponent,
|
|
3665
2433
|
CheckboxInputComponent,
|
|
3666
2434
|
ScrollContainerComponent,
|
|
3667
2435
|
NoopComponent,
|
|
@@ -3681,19 +2449,9 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
3681
2449
|
SelectHeaderCellRendererComponent,
|
|
3682
2450
|
DefaultHeaderCellRendererComponent,
|
|
3683
2451
|
TableHeaderCellRendererComponent,
|
|
2452
|
+
MultipleSelectInputComponent,
|
|
3684
2453
|
IconComponent,
|
|
3685
|
-
SectionHeaderComponent
|
|
3686
|
-
TableRowMenuComponent,
|
|
3687
|
-
ToolBarComponent,
|
|
3688
|
-
CommandComponent,
|
|
3689
|
-
PopupMenuComponent,
|
|
3690
|
-
CommandGroupComponent,
|
|
3691
|
-
CommandFaceComponent,
|
|
3692
|
-
MoreMenuComponent,
|
|
3693
|
-
SeparatorComponent,
|
|
3694
|
-
FlexComponent,
|
|
3695
|
-
CommandGroupMenuRendererComponent,
|
|
3696
|
-
CommandGroupRendererComponent
|
|
2454
|
+
SectionHeaderComponent
|
|
3697
2455
|
],
|
|
3698
2456
|
imports: [
|
|
3699
2457
|
CommonModule,
|
|
@@ -3711,10 +2469,7 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
3711
2469
|
PortalModule,
|
|
3712
2470
|
CdkScrollableModule,
|
|
3713
2471
|
FontAwesomeModule,
|
|
3714
|
-
MatTooltipModule
|
|
3715
|
-
MatAutocompleteModule,
|
|
3716
|
-
MatMenuModule,
|
|
3717
|
-
MatDividerModule
|
|
2472
|
+
MatTooltipModule
|
|
3718
2473
|
],
|
|
3719
2474
|
exports: [
|
|
3720
2475
|
NumberInputComponent,
|
|
@@ -3723,8 +2478,6 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
3723
2478
|
PasswordInputComponent,
|
|
3724
2479
|
CheckboxInputComponent,
|
|
3725
2480
|
SelectInputComponent,
|
|
3726
|
-
MultipleSelectInputComponent,
|
|
3727
|
-
AutocompleteInputComponent,
|
|
3728
2481
|
ScrollContainerComponent,
|
|
3729
2482
|
NoopComponent,
|
|
3730
2483
|
SwitchCaseComponent,
|
|
@@ -3737,20 +2490,12 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
3737
2490
|
TableComponent,
|
|
3738
2491
|
EditRowControls,
|
|
3739
2492
|
ColumnTemplateDirective,
|
|
2493
|
+
MultipleSelectInputComponent,
|
|
3740
2494
|
IconComponent,
|
|
3741
|
-
SectionHeaderComponent
|
|
3742
|
-
TableRowMenuComponent,
|
|
3743
|
-
CommandGroupComponent,
|
|
3744
|
-
ToolBarComponent,
|
|
3745
|
-
CommandComponent,
|
|
3746
|
-
PopupMenuComponent,
|
|
3747
|
-
CommandFaceComponent,
|
|
3748
|
-
MoreMenuComponent,
|
|
3749
|
-
SeparatorComponent,
|
|
3750
|
-
FlexComponent
|
|
2495
|
+
SectionHeaderComponent
|
|
3751
2496
|
],
|
|
3752
2497
|
providers: [
|
|
3753
|
-
FocusBindingFactory
|
|
2498
|
+
FocusBindingFactory,
|
|
3754
2499
|
]
|
|
3755
2500
|
}),
|
|
3756
2501
|
__metadata("design:paramtypes", [FaIconLibrary])
|
|
@@ -3829,7 +2574,7 @@ var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
|
3829
2574
|
Component({
|
|
3830
2575
|
selector: 'aup-activity-actions',
|
|
3831
2576
|
template: "<ng-container *ngIf=\"hasCancelCommand()\">\n <button class=\"cancel\" *ngIf=\"!hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <aup-icon icon=\"mat:clear\"></aup-icon>\n </button>\n <button class=\"cancel\" *ngIf=\"hasCancelText()\" mat-button [pectinCommand]=\"cancelCommand\">{{cancelText}}</button>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmCommand()\">\n <button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <aup-icon icon=\"mat:done\"></aup-icon>\n </button>\n <button class=\"confirm\" *ngIf=\"hasConfirmText()\" mat-button [pectinCommand]=\"confirmCommand\">{{confirmText}}</button>\n</ng-container>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n",
|
|
3832
|
-
styles: [":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.confirm{-ms-grid-row:1;-ms-grid-column:3}.
|
|
2577
|
+
styles: [":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}:host.align-stretch>.content{-ms-grid-row:1;-ms-grid-column:2}"]
|
|
3833
2578
|
})
|
|
3834
2579
|
], ActivityActionsComponent);
|
|
3835
2580
|
return ActivityActionsComponent;
|
|
@@ -3841,27 +2586,13 @@ var Activity = /** @class */ (function (_super) {
|
|
|
3841
2586
|
function Activity() {
|
|
3842
2587
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3843
2588
|
_this._busyModel = new DelegatingValueModel().withDefault(false);
|
|
3844
|
-
_this._focusedModel = _this.registerDisposable(new DelegatingValueModel());
|
|
3845
2589
|
_this.class = 'aup-activity';
|
|
3846
2590
|
return _this;
|
|
3847
2591
|
}
|
|
3848
|
-
Object.defineProperty(Activity.prototype, "isFocused", {
|
|
3849
|
-
get: function () {
|
|
3850
|
-
return this._focusedModel.value;
|
|
3851
|
-
},
|
|
3852
|
-
enumerable: true,
|
|
3853
|
-
configurable: true
|
|
3854
|
-
});
|
|
3855
2592
|
Activity.prototype.initialise = function (nestedInteractionContext, activityContext) {
|
|
3856
|
-
var _this = this;
|
|
3857
|
-
var _a = Dsl.disposeWith(this), chain = _a.chain, when = _a.when;
|
|
3858
2593
|
assert$1.isNil(this._activityContext);
|
|
3859
2594
|
this._activityContext = activityContext;
|
|
3860
2595
|
this._interactionContext = nestedInteractionContext;
|
|
3861
|
-
this._focusedModel.setDelegate(activityContext.focused);
|
|
3862
|
-
when(this._focusedModel).becomesTruthy(function () {
|
|
3863
|
-
_this.onActivityReady();
|
|
3864
|
-
});
|
|
3865
2596
|
};
|
|
3866
2597
|
Object.defineProperty(Activity.prototype, "interactionContext", {
|
|
3867
2598
|
get: function () {
|
|
@@ -3887,13 +2618,6 @@ var Activity = /** @class */ (function (_super) {
|
|
|
3887
2618
|
enumerable: true,
|
|
3888
2619
|
configurable: true
|
|
3889
2620
|
});
|
|
3890
|
-
Object.defineProperty(Activity.prototype, "focused", {
|
|
3891
|
-
get: function () {
|
|
3892
|
-
return this._focusedModel.readonly;
|
|
3893
|
-
},
|
|
3894
|
-
enumerable: true,
|
|
3895
|
-
configurable: true
|
|
3896
|
-
});
|
|
3897
2621
|
Activity.prototype.busyWhile = function (busyModel) {
|
|
3898
2622
|
this._busyModel.setDelegate(busyModel);
|
|
3899
2623
|
};
|
|
@@ -3907,11 +2631,6 @@ var Activity = /** @class */ (function (_super) {
|
|
|
3907
2631
|
HostBinding('class'),
|
|
3908
2632
|
__metadata("design:type", Object)
|
|
3909
2633
|
], Activity.prototype, "class", void 0);
|
|
3910
|
-
__decorate([
|
|
3911
|
-
HostBinding('attr.focused'),
|
|
3912
|
-
__metadata("design:type", Object),
|
|
3913
|
-
__metadata("design:paramtypes", [])
|
|
3914
|
-
], Activity.prototype, "isFocused", null);
|
|
3915
2634
|
return Activity;
|
|
3916
2635
|
}(DisposableComponent));
|
|
3917
2636
|
|
|
@@ -4050,7 +2769,6 @@ var ActivityRef = /** @class */ (function () {
|
|
|
4050
2769
|
this.onComplete = onComplete;
|
|
4051
2770
|
this._complete = false;
|
|
4052
2771
|
this.deferredResult = Deferred.defer();
|
|
4053
|
-
this.focusedModel = new MutableValueModel();
|
|
4054
2772
|
}
|
|
4055
2773
|
ActivityRef.prototype.isActivityRealised = function () {
|
|
4056
2774
|
return !!this._activity;
|
|
@@ -4066,16 +2784,6 @@ var ActivityRef = /** @class */ (function () {
|
|
|
4066
2784
|
enumerable: true,
|
|
4067
2785
|
configurable: true
|
|
4068
2786
|
});
|
|
4069
|
-
ActivityRef.prototype.setFocused = function (focused) {
|
|
4070
|
-
this.focusedModel.value = focused;
|
|
4071
|
-
};
|
|
4072
|
-
Object.defineProperty(ActivityRef.prototype, "focused", {
|
|
4073
|
-
get: function () {
|
|
4074
|
-
return this.focusedModel.value;
|
|
4075
|
-
},
|
|
4076
|
-
enumerable: true,
|
|
4077
|
-
configurable: true
|
|
4078
|
-
});
|
|
4079
2787
|
ActivityRef.prototype.notifyActivityCreated = function (activity, nestedInteractionContext) {
|
|
4080
2788
|
assert.isNil(this._activity);
|
|
4081
2789
|
this._activity = activity;
|
|
@@ -4086,8 +2794,7 @@ var ActivityRef = /** @class */ (function () {
|
|
|
4086
2794
|
},
|
|
4087
2795
|
onCancel: function (error) {
|
|
4088
2796
|
self.finishActivity(function (deferred) { return deferred.reject(error); });
|
|
4089
|
-
}
|
|
4090
|
-
focused: this.focusedModel.readonly
|
|
2797
|
+
}
|
|
4091
2798
|
});
|
|
4092
2799
|
};
|
|
4093
2800
|
ActivityRef.prototype.finishActivity = function (resolveOrReject) {
|
|
@@ -4125,7 +2832,7 @@ var ActivityOutletComponent = /** @class */ (function () {
|
|
|
4125
2832
|
},
|
|
4126
2833
|
set: function (activityRef) {
|
|
4127
2834
|
if (this.activityRef && !this.activityRef.isComplete()) {
|
|
4128
|
-
lang$1.illegalState(
|
|
2835
|
+
lang$1.illegalState("changing activity before previous one has completed");
|
|
4129
2836
|
}
|
|
4130
2837
|
this._activityRef = activityRef;
|
|
4131
2838
|
this.loadActivity(activityRef);
|
|
@@ -4188,9 +2895,8 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4188
2895
|
function ActivityContainerComponent() {
|
|
4189
2896
|
var _this = _super.call(this) || this;
|
|
4190
2897
|
_this.dynamicHeight = false;
|
|
4191
|
-
_this.
|
|
2898
|
+
_this.activityTabs = [];
|
|
4192
2899
|
_this.garbage = new GarbageCollector();
|
|
4193
|
-
_this.inAnimation = new MutableValueModel(false);
|
|
4194
2900
|
return _this;
|
|
4195
2901
|
}
|
|
4196
2902
|
ActivityContainerComponent.prototype.ngOnInit = function () {
|
|
@@ -4228,7 +2934,6 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4228
2934
|
ActivityContainerComponent.prototype.registerDisposable = function (disposable) {
|
|
4229
2935
|
return this.garbage.registerDisposable(disposable);
|
|
4230
2936
|
};
|
|
4231
|
-
// @Trace()
|
|
4232
2937
|
ActivityContainerComponent.prototype.dispose = function () {
|
|
4233
2938
|
// TODO: think about auto cancelling any outstanding activity on dispose.
|
|
4234
2939
|
// See NavigationState.Navigating for a use-case.
|
|
@@ -4239,7 +2944,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4239
2944
|
if (!this.isActive()) {
|
|
4240
2945
|
lang$1.illegalState('no activity in progress');
|
|
4241
2946
|
}
|
|
4242
|
-
return ___default.findLast(this.
|
|
2947
|
+
return ___default.findLast(this.activityTabs, function (tab) { return !tab.isComplete(); });
|
|
4243
2948
|
};
|
|
4244
2949
|
/**
|
|
4245
2950
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
@@ -4278,14 +2983,14 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4278
2983
|
});
|
|
4279
2984
|
this.launchActivity(activityRef);
|
|
4280
2985
|
// if this is the first activity let the interaction service know.
|
|
4281
|
-
if (this.
|
|
2986
|
+
if (this.activityTabs.length === 1) {
|
|
4282
2987
|
// console.log('Now active!!!');
|
|
4283
2988
|
this.interactionServiceApi.notifyActive(this);
|
|
4284
2989
|
}
|
|
4285
2990
|
return activityRef.activityResult;
|
|
4286
2991
|
};
|
|
4287
2992
|
ActivityContainerComponent.prototype.getActiveActivityCount = function () {
|
|
4288
|
-
return this.
|
|
2993
|
+
return this.activityTabs.filter(function (ref) { return !ref.isComplete(); }).length;
|
|
4289
2994
|
};
|
|
4290
2995
|
/**
|
|
4291
2996
|
* Checks if this interaction context has finished an is in the process of waiting
|
|
@@ -4312,7 +3017,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4312
3017
|
// Without this our animation done wasn't called when a single
|
|
4313
3018
|
// new activity followed a single tab activity (since we're tracking
|
|
4314
3019
|
// by activity index)
|
|
4315
|
-
this.
|
|
3020
|
+
this.activityTabs = [];
|
|
4316
3021
|
var promise = this.interactionServiceApi.notifyFinished(this);
|
|
4317
3022
|
this._deferredCleanUp = promise
|
|
4318
3023
|
.finally(function () {
|
|
@@ -4322,15 +3027,14 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4322
3027
|
};
|
|
4323
3028
|
// @Trace()
|
|
4324
3029
|
ActivityContainerComponent.prototype.launchActivity = function (activityRef) {
|
|
4325
|
-
var cleanedTabs = this.
|
|
4326
|
-
this.
|
|
3030
|
+
var cleanedTabs = this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
|
|
3031
|
+
this.activityTabs = cleanedTabs.concat(activityRef);
|
|
4327
3032
|
this.synchroniseSelectedTabIndex();
|
|
4328
3033
|
};
|
|
4329
3034
|
ActivityContainerComponent.prototype.activityIndex = function (index, activityRef) {
|
|
4330
3035
|
return index;
|
|
4331
3036
|
};
|
|
4332
3037
|
;
|
|
4333
|
-
// @Trace()
|
|
4334
3038
|
ActivityContainerComponent.prototype.onAnimationFinished = function () {
|
|
4335
3039
|
if (this.onAnimationFinishedJob) {
|
|
4336
3040
|
this.onAnimationFinishedJob();
|
|
@@ -4340,21 +3044,15 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4340
3044
|
/**
|
|
4341
3045
|
* Synchronises the selected tab index.
|
|
4342
3046
|
*/
|
|
4343
|
-
// @Trace()
|
|
4344
3047
|
ActivityContainerComponent.prototype.synchroniseSelectedTabIndex = function () {
|
|
4345
3048
|
var _this = this;
|
|
4346
3049
|
var previousIndex = this.tabs.selectedIndex;
|
|
4347
3050
|
var newIndex = this.getActiveActivityCount() - 1;
|
|
4348
3051
|
if (previousIndex !== newIndex) {
|
|
4349
|
-
this.inAnimation.value = true;
|
|
4350
|
-
this.activityRefs[newIndex].setFocused(false);
|
|
4351
3052
|
this.tabs.selectedIndex = newIndex;
|
|
4352
3053
|
this.onAnimationFinishedJob = function () {
|
|
4353
|
-
_this.
|
|
4354
|
-
_this.
|
|
4355
|
-
_this.activityRefs.forEach(function (ref, index) {
|
|
4356
|
-
ref.setFocused(index === newIndex);
|
|
4357
|
-
});
|
|
3054
|
+
_this.getSelectedOutlet().component.onActivityReady();
|
|
3055
|
+
_this.activityTabs = _this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
|
|
4358
3056
|
};
|
|
4359
3057
|
}
|
|
4360
3058
|
};
|
|
@@ -4362,10 +3060,6 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4362
3060
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
4363
3061
|
};
|
|
4364
3062
|
// @Trace()
|
|
4365
|
-
ActivityContainerComponent.prototype.getSelectedTabIndex = function () {
|
|
4366
|
-
return this.tabs.selectedIndex;
|
|
4367
|
-
};
|
|
4368
|
-
// @Trace()
|
|
4369
3063
|
ActivityContainerComponent.prototype.triggerTabSynchronisation = function () {
|
|
4370
3064
|
var _this = this;
|
|
4371
3065
|
if (this.syncSelectedTabTimeout) {
|
|
@@ -4388,10 +3082,16 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
4388
3082
|
ViewChildren(ActivityOutletComponent),
|
|
4389
3083
|
__metadata("design:type", QueryList)
|
|
4390
3084
|
], ActivityContainerComponent.prototype, "activityOutlets", void 0);
|
|
3085
|
+
__decorate([
|
|
3086
|
+
Trace(),
|
|
3087
|
+
__metadata("design:type", Function),
|
|
3088
|
+
__metadata("design:paramtypes", []),
|
|
3089
|
+
__metadata("design:returntype", void 0)
|
|
3090
|
+
], ActivityContainerComponent.prototype, "dispose", null);
|
|
4391
3091
|
ActivityContainerComponent = __decorate([
|
|
4392
3092
|
Component({
|
|
4393
3093
|
selector: 'aup-activity-container',
|
|
4394
|
-
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let
|
|
3094
|
+
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; trackBy: activityIndex\" >\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
|
|
4395
3095
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4396
3096
|
}),
|
|
4397
3097
|
__metadata("design:paramtypes", [])
|
|
@@ -5462,9 +4162,6 @@ var PlaceComponent = /** @class */ (function (_super) {
|
|
|
5462
4162
|
var _this = _super.call(this) || this;
|
|
5463
4163
|
_this.visitModel = new MutableValueModel();
|
|
5464
4164
|
_this._inVisitUpdate = new Guard();
|
|
5465
|
-
_this._active = new MutableValueModel(false);
|
|
5466
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
5467
|
-
when(_this._active).becomesTruthy(function () { return _this.onPlaceReady(); });
|
|
5468
4165
|
return _this;
|
|
5469
4166
|
}
|
|
5470
4167
|
PlaceComponent_1 = PlaceComponent;
|
|
@@ -5474,7 +4171,7 @@ var PlaceComponent = /** @class */ (function (_super) {
|
|
|
5474
4171
|
assert.isNil(this.visitModel.value);
|
|
5475
4172
|
var when = Dsl.disposeWith(this).when;
|
|
5476
4173
|
this.visitModel.value = visit;
|
|
5477
|
-
DebugContext.
|
|
4174
|
+
DebugContext.get(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
5478
4175
|
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
5479
4176
|
when.valueOf(this.visitModel).changes(function (current, previous) {
|
|
5480
4177
|
notifyVisitChanged(current, previous);
|
|
@@ -5522,19 +4219,6 @@ var PlaceComponent = /** @class */ (function (_super) {
|
|
|
5522
4219
|
enumerable: true,
|
|
5523
4220
|
configurable: true
|
|
5524
4221
|
});
|
|
5525
|
-
Object.defineProperty(PlaceComponent.prototype, "active", {
|
|
5526
|
-
get: function () {
|
|
5527
|
-
return this._active.readonly;
|
|
5528
|
-
},
|
|
5529
|
-
enumerable: true,
|
|
5530
|
-
configurable: true
|
|
5531
|
-
});
|
|
5532
|
-
/**
|
|
5533
|
-
* Called by the router when the place is ready to interact after any animations have run.
|
|
5534
|
-
*/
|
|
5535
|
-
PlaceComponent.prototype._notifyActive = function (active) {
|
|
5536
|
-
this._active.value = active;
|
|
5537
|
-
};
|
|
5538
4222
|
PlaceComponent.prototype.onPlaceReady = function () {
|
|
5539
4223
|
};
|
|
5540
4224
|
var PlaceComponent_1;
|
|
@@ -6635,6 +5319,75 @@ var UrlService = /** @class */ (function () {
|
|
|
6635
5319
|
return UrlService;
|
|
6636
5320
|
}());
|
|
6637
5321
|
|
|
5322
|
+
var Visit = /** @class */ (function () {
|
|
5323
|
+
function Visit(placeDefinition, visitParameters) {
|
|
5324
|
+
if (visitParameters === void 0) { visitParameters = {}; }
|
|
5325
|
+
this.placeDefinition = placeDefinition;
|
|
5326
|
+
this.visitParameters = visitParameters;
|
|
5327
|
+
}
|
|
5328
|
+
// @Trace()
|
|
5329
|
+
Visit.prototype.getRouteId = function () {
|
|
5330
|
+
return this.placeDefinition.getRouteIdFrom(this);
|
|
5331
|
+
};
|
|
5332
|
+
// @Trace()
|
|
5333
|
+
Visit.prototype.hasRouteId = function () {
|
|
5334
|
+
return !isNil(this.getRouteId());
|
|
5335
|
+
};
|
|
5336
|
+
/**
|
|
5337
|
+
* Returns the value of the place parameter with the specified name. The parameter
|
|
5338
|
+
* name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
|
|
5339
|
+
* same as the the ValueModel property name.
|
|
5340
|
+
* @param parameterName the field name of the property model or the `as` option if specified.
|
|
5341
|
+
*/
|
|
5342
|
+
Visit.prototype.getParameter = function (parameterName) {
|
|
5343
|
+
return this.visitParameters[parameterName];
|
|
5344
|
+
};
|
|
5345
|
+
// @Trace()
|
|
5346
|
+
Visit.prototype.hasParameter = function (parameterName) {
|
|
5347
|
+
return Object.keys(this.visitParameters).includes(parameterName);
|
|
5348
|
+
};
|
|
5349
|
+
Visit.prototype.replace = function (parameter, value) {
|
|
5350
|
+
var _a;
|
|
5351
|
+
return new Visit(this.placeDefinition, __assign(__assign({}, this.visitParameters), (_a = {}, _a[parameter.name] = value, _a)));
|
|
5352
|
+
};
|
|
5353
|
+
Visit.prototype.mergeRouteParameters = function (routeParams) {
|
|
5354
|
+
var _this = this;
|
|
5355
|
+
// todo: whitelist parameters.
|
|
5356
|
+
var routeParameterKeys = Object.keys(routeParams);
|
|
5357
|
+
var params = {};
|
|
5358
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (def) {
|
|
5359
|
+
if (def.isRouteId || def.isRouteParameter) {
|
|
5360
|
+
if (routeParameterKeys.includes(def.name)) {
|
|
5361
|
+
params[def.name] = routeParams[def.name];
|
|
5362
|
+
}
|
|
5363
|
+
}
|
|
5364
|
+
else {
|
|
5365
|
+
// copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the
|
|
5366
|
+
// defaults and remember sanitisation process.
|
|
5367
|
+
var value = _this.getParameter(def.name);
|
|
5368
|
+
if (_this.hasParameter(def.name)) {
|
|
5369
|
+
params[def.name] = value;
|
|
5370
|
+
}
|
|
5371
|
+
}
|
|
5372
|
+
});
|
|
5373
|
+
return new Visit(this.placeDefinition, params);
|
|
5374
|
+
};
|
|
5375
|
+
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
5376
|
+
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
5377
|
+
var sameRouteParameters = isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
5378
|
+
return !samePlace || !sameRouteParameters;
|
|
5379
|
+
};
|
|
5380
|
+
Visit.prototype.hasChangedFrom = function (other) {
|
|
5381
|
+
var sameNonRouteParameters = isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
|
|
5382
|
+
return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
|
|
5383
|
+
};
|
|
5384
|
+
Visit.prototype.toDebugString = function () {
|
|
5385
|
+
var _this = this;
|
|
5386
|
+
return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(",");
|
|
5387
|
+
};
|
|
5388
|
+
return Visit;
|
|
5389
|
+
}());
|
|
5390
|
+
|
|
6638
5391
|
var PlaceRouter = /** @class */ (function (_super) {
|
|
6639
5392
|
__extends(PlaceRouter, _super);
|
|
6640
5393
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -6830,7 +5583,6 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
6830
5583
|
enumerable: true,
|
|
6831
5584
|
configurable: true
|
|
6832
5585
|
});
|
|
6833
|
-
// @Trace()
|
|
6834
5586
|
PlaceRouter.prototype.pushVisitChangesToRoute = function (previous, next) {
|
|
6835
5587
|
return __awaiter(this, void 0, void 0, function () {
|
|
6836
5588
|
var _this = this;
|
|
@@ -6931,6 +5683,12 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
6931
5683
|
{ type: PlaceHistory }
|
|
6932
5684
|
]; };
|
|
6933
5685
|
PlaceRouter.ɵprov = ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(ɵɵinject(Router), ɵɵinject(Location), ɵɵinject(InteractionService), ɵɵinject(UrlService), ɵɵinject(PlaceHistory)); }, token: PlaceRouter, providedIn: "root" });
|
|
5686
|
+
__decorate([
|
|
5687
|
+
Trace(),
|
|
5688
|
+
__metadata("design:type", Function),
|
|
5689
|
+
__metadata("design:paramtypes", [Visit, Visit]),
|
|
5690
|
+
__metadata("design:returntype", Promise)
|
|
5691
|
+
], PlaceRouter.prototype, "pushVisitChangesToRoute", null);
|
|
6934
5692
|
PlaceRouter = __decorate([
|
|
6935
5693
|
Injectable({
|
|
6936
5694
|
providedIn: 'root'
|
|
@@ -6944,75 +5702,6 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
6944
5702
|
return PlaceRouter;
|
|
6945
5703
|
}(GarbageCollector));
|
|
6946
5704
|
|
|
6947
|
-
var Visit = /** @class */ (function () {
|
|
6948
|
-
function Visit(placeDefinition, visitParameters) {
|
|
6949
|
-
if (visitParameters === void 0) { visitParameters = {}; }
|
|
6950
|
-
this.placeDefinition = placeDefinition;
|
|
6951
|
-
this.visitParameters = visitParameters;
|
|
6952
|
-
}
|
|
6953
|
-
// @Trace()
|
|
6954
|
-
Visit.prototype.getRouteId = function () {
|
|
6955
|
-
return this.placeDefinition.getRouteIdFrom(this);
|
|
6956
|
-
};
|
|
6957
|
-
// @Trace()
|
|
6958
|
-
Visit.prototype.hasRouteId = function () {
|
|
6959
|
-
return !isNil(this.getRouteId());
|
|
6960
|
-
};
|
|
6961
|
-
/**
|
|
6962
|
-
* Returns the value of the place parameter with the specified name. The parameter
|
|
6963
|
-
* name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
|
|
6964
|
-
* same as the the ValueModel property name.
|
|
6965
|
-
* @param parameterName the field name of the property model or the `as` option if specified.
|
|
6966
|
-
*/
|
|
6967
|
-
Visit.prototype.getParameter = function (parameterName) {
|
|
6968
|
-
return this.visitParameters[parameterName];
|
|
6969
|
-
};
|
|
6970
|
-
// @Trace()
|
|
6971
|
-
Visit.prototype.hasParameter = function (parameterName) {
|
|
6972
|
-
return Object.keys(this.visitParameters).includes(parameterName);
|
|
6973
|
-
};
|
|
6974
|
-
Visit.prototype.replace = function (parameter, value) {
|
|
6975
|
-
var _a;
|
|
6976
|
-
return new Visit(this.placeDefinition, __assign(__assign({}, this.visitParameters), (_a = {}, _a[parameter.name] = value, _a)));
|
|
6977
|
-
};
|
|
6978
|
-
Visit.prototype.mergeRouteParameters = function (routeParams) {
|
|
6979
|
-
var _this = this;
|
|
6980
|
-
// todo: whitelist parameters.
|
|
6981
|
-
var routeParameterKeys = Object.keys(routeParams);
|
|
6982
|
-
var params = {};
|
|
6983
|
-
this.placeDefinition.getVisitParameterDefs().forEach(function (def) {
|
|
6984
|
-
if (def.isRouteId || def.isRouteParameter) {
|
|
6985
|
-
if (routeParameterKeys.includes(def.name)) {
|
|
6986
|
-
params[def.name] = routeParams[def.name];
|
|
6987
|
-
}
|
|
6988
|
-
}
|
|
6989
|
-
else {
|
|
6990
|
-
// copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the
|
|
6991
|
-
// defaults and remember sanitisation process.
|
|
6992
|
-
var value = _this.getParameter(def.name);
|
|
6993
|
-
if (_this.hasParameter(def.name)) {
|
|
6994
|
-
params[def.name] = value;
|
|
6995
|
-
}
|
|
6996
|
-
}
|
|
6997
|
-
});
|
|
6998
|
-
return new Visit(this.placeDefinition, params);
|
|
6999
|
-
};
|
|
7000
|
-
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
7001
|
-
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
7002
|
-
var sameRouteParameters = isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
7003
|
-
return !samePlace || !sameRouteParameters;
|
|
7004
|
-
};
|
|
7005
|
-
Visit.prototype.hasChangedFrom = function (other) {
|
|
7006
|
-
var sameNonRouteParameters = isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
|
|
7007
|
-
return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
|
|
7008
|
-
};
|
|
7009
|
-
Visit.prototype.toDebugString = function () {
|
|
7010
|
-
var _this = this;
|
|
7011
|
-
return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(",");
|
|
7012
|
-
};
|
|
7013
|
-
return Visit;
|
|
7014
|
-
}());
|
|
7015
|
-
|
|
7016
5705
|
var AUP_PLACE_CONFIG = new InjectionToken('AUP_PLACE_CONFIG');
|
|
7017
5706
|
|
|
7018
5707
|
// Freezes the state of the components at the start of the animation.
|
|
@@ -7072,7 +5761,6 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7072
5761
|
_this._activePlaceModel = new MutableValueModel();
|
|
7073
5762
|
_this.initialPlaceIndex = null;
|
|
7074
5763
|
_this._isPushingVisitToRoute = new MutableValueModel(false);
|
|
7075
|
-
_this.isVeryFirstLoad = true;
|
|
7076
5764
|
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
7077
5765
|
_this.parentOutletModel = new MutableValueModel(parentOutlet);
|
|
7078
5766
|
var defaultPlaceAnimationOrder = chain(_this.parentOutletModel)
|
|
@@ -7081,9 +5769,8 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7081
5769
|
.pluckList('children')
|
|
7082
5770
|
.pluck('component');
|
|
7083
5771
|
var activatePlaceType = chain(_this.activePlaceModel).map(function (p) { return p.constructor; });
|
|
7084
|
-
_this.
|
|
7085
|
-
.otherwise(defaultPlaceAnimationOrder)
|
|
7086
|
-
_this.activePlaceAnimationPosition = _this.placesInAnimationOrder
|
|
5772
|
+
_this.placeAnimationOrder = chain(_this.customPlaceAnimationOrderModel)
|
|
5773
|
+
.otherwise(defaultPlaceAnimationOrder)
|
|
7087
5774
|
.reduce(function (placesInOrder) {
|
|
7088
5775
|
var placeIndex = 0;
|
|
7089
5776
|
if (activatePlaceType.value) {
|
|
@@ -7094,16 +5781,14 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7094
5781
|
}
|
|
7095
5782
|
return isNil(_this.initialPlaceIndex) ? 0 : placeIndex - _this.initialPlaceIndex;
|
|
7096
5783
|
}, { dependsOn: activatePlaceType });
|
|
7097
|
-
_this.animationSupported = _this.placesInAnimationOrder.count().isGreaterThan(0);
|
|
7098
|
-
_this.animationEnabled = valueOf.all(_this.animateModel, _this.animationSupported).areTruthy();
|
|
7099
5784
|
// Extract our visit model from the place router.
|
|
7100
5785
|
_this._activePlaceDefinition = chain(_this._activePlaceModel).pluck('placeDefinition');
|
|
7101
5786
|
_this.routerVisitModel = _this._activePlaceDefinition.findIn(chain(placeRouter.activeVisitsByPlaceDefinition));
|
|
7102
5787
|
_this.navigationInProgress = chain(_this.placeRouter.navigationInProgress);
|
|
7103
|
-
when(_this.navigationInProgress).becomesFalsey(function () {
|
|
5788
|
+
when.valueOf(_this.navigationInProgress).becomesFalsey(function () {
|
|
7104
5789
|
_this.checkStateAndInitialise();
|
|
7105
5790
|
});
|
|
7106
|
-
when(_this.outletActivated).becomesTruthy(function () {
|
|
5791
|
+
when.valueOf(_this.outletActivated).becomesTruthy(function () {
|
|
7107
5792
|
_this.checkStateAndInitialise();
|
|
7108
5793
|
});
|
|
7109
5794
|
chain(_this._activePlaceModel)
|
|
@@ -7116,7 +5801,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7116
5801
|
};
|
|
7117
5802
|
// @Trace()
|
|
7118
5803
|
PlaceOutletComponent.prototype.getAnimationOrder = function () {
|
|
7119
|
-
return this.
|
|
5804
|
+
return this.placeAnimationOrder.value;
|
|
7120
5805
|
};
|
|
7121
5806
|
Object.defineProperty(PlaceOutletComponent.prototype, "animationDuration", {
|
|
7122
5807
|
get: function () {
|
|
@@ -7127,10 +5812,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7127
5812
|
});
|
|
7128
5813
|
// @Trace()
|
|
7129
5814
|
PlaceOutletComponent.prototype.navigate = function (visit) {
|
|
7130
|
-
//
|
|
7131
|
-
// if (!place) {
|
|
7132
|
-
// lang.illegalState()
|
|
7133
|
-
// }
|
|
5815
|
+
// console.log({ activatedRoute: this._activatedRouteModel.value });
|
|
7134
5816
|
this.placeRouter.navigate(visit, {
|
|
7135
5817
|
relativeTo: this.parentOutlet ? this.parentOutlet.activatedRouteModel.value : null
|
|
7136
5818
|
});
|
|
@@ -7156,25 +5838,14 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7156
5838
|
enumerable: true,
|
|
7157
5839
|
configurable: true
|
|
7158
5840
|
});
|
|
5841
|
+
// @Trace()
|
|
7159
5842
|
PlaceOutletComponent.prototype.onOutletActivated = function (routerOutlet, place) {
|
|
7160
5843
|
this._activatedRouteModel.value = routerOutlet.activatedRoute;
|
|
7161
5844
|
this._activePlaceModel.value = place;
|
|
7162
|
-
this.validateAnimationState(place);
|
|
7163
5845
|
this.outletActivated.value = true;
|
|
7164
5846
|
this.checkStateAndInitialise();
|
|
7165
5847
|
};
|
|
7166
|
-
|
|
7167
|
-
if (this.animateModel.value) {
|
|
7168
|
-
if (this.placesInAnimationOrder.length < 1) {
|
|
7169
|
-
console.error('PlaceOutlet.animate === true but placeAnimationOrder has not been set. Animation is disabled.');
|
|
7170
|
-
}
|
|
7171
|
-
else {
|
|
7172
|
-
if (!this.placesInAnimationOrder.query().includes(place.placeDefinition.component)) {
|
|
7173
|
-
console.error("PlaceOutlet.animate === true but placeAnimationOrder doesn't contain " + place.placeDefinition.component.name + ".");
|
|
7174
|
-
}
|
|
7175
|
-
}
|
|
7176
|
-
}
|
|
7177
|
-
};
|
|
5848
|
+
// @Trace()
|
|
7178
5849
|
PlaceOutletComponent.prototype.onOutletDeactivated = function () {
|
|
7179
5850
|
this.outletActivated.value = false;
|
|
7180
5851
|
this._activePlaceModel.value = null;
|
|
@@ -7191,6 +5862,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7191
5862
|
this.initialisePlace(routerVisit, activePlace);
|
|
7192
5863
|
}
|
|
7193
5864
|
};
|
|
5865
|
+
// @Trace()
|
|
7194
5866
|
PlaceOutletComponent.prototype.initialisePlace = function (routerVisit, activePlace) {
|
|
7195
5867
|
var _this = this;
|
|
7196
5868
|
var visitModel = new MutableValueModel(routerVisit);
|
|
@@ -7198,18 +5870,9 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7198
5870
|
activePlace.initialiseVisit(routerVisit, function (current, previous) {
|
|
7199
5871
|
_this.pushVisitChangeToRoute(previous, current);
|
|
7200
5872
|
});
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
if (!this.animationEnabled.value || this.isVeryFirstLoad) {
|
|
7205
|
-
// if animation is disabled or this is the very first load then
|
|
7206
|
-
// we won't get our animation done callback so we finish the
|
|
7207
|
-
// process here and now.
|
|
7208
|
-
this.isVeryFirstLoad = false;
|
|
7209
|
-
finishPlaceLoad();
|
|
7210
|
-
}
|
|
7211
|
-
else {
|
|
7212
|
-
this.onAnimationFinishedJob = finishPlaceLoad;
|
|
5873
|
+
if (!this.animateModel.value) {
|
|
5874
|
+
// we're not animating so trigger any post animation callbacks now.
|
|
5875
|
+
this.animationDone();
|
|
7213
5876
|
}
|
|
7214
5877
|
var _a = Dsl.disposeWith(activePlace), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
|
|
7215
5878
|
when.valueOf(this.routerVisitModel)
|
|
@@ -7232,9 +5895,8 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7232
5895
|
};
|
|
7233
5896
|
// @Trace()
|
|
7234
5897
|
PlaceOutletComponent.prototype.animationDone = function () {
|
|
7235
|
-
if (this.
|
|
7236
|
-
this.
|
|
7237
|
-
this.onAnimationFinishedJob = undefined;
|
|
5898
|
+
if (this._activePlaceModel.value) {
|
|
5899
|
+
this._activePlaceModel.value.onPlaceReady();
|
|
7238
5900
|
}
|
|
7239
5901
|
};
|
|
7240
5902
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
@@ -7267,22 +5929,10 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
7267
5929
|
ViewChild('routeOutlet', { static: true }),
|
|
7268
5930
|
__metadata("design:type", RouterOutlet)
|
|
7269
5931
|
], PlaceOutletComponent.prototype, "routerOut", void 0);
|
|
7270
|
-
__decorate([
|
|
7271
|
-
Trace(),
|
|
7272
|
-
__metadata("design:type", Function),
|
|
7273
|
-
__metadata("design:paramtypes", [RouterOutlet, PlaceComponent]),
|
|
7274
|
-
__metadata("design:returntype", void 0)
|
|
7275
|
-
], PlaceOutletComponent.prototype, "onOutletActivated", null);
|
|
7276
|
-
__decorate([
|
|
7277
|
-
Trace(),
|
|
7278
|
-
__metadata("design:type", Function),
|
|
7279
|
-
__metadata("design:paramtypes", []),
|
|
7280
|
-
__metadata("design:returntype", void 0)
|
|
7281
|
-
], PlaceOutletComponent.prototype, "onOutletDeactivated", null);
|
|
7282
5932
|
PlaceOutletComponent = __decorate([
|
|
7283
5933
|
Component({
|
|
7284
5934
|
selector: 'aup-place-outlet',
|
|
7285
|
-
template: "<ng-container *ngIf=\"
|
|
5935
|
+
template: "<ng-container *ngIf=\"animateModel.value\">\n <div class=\"router-outlet-container\" cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animateModel.value\">\n <div class=\"router-outlet-container\" cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n",
|
|
7286
5936
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
7287
5937
|
styles: [":host{display:flex;flex-direction:column;min-height:0}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:scroll}router-outlet{display:none}"]
|
|
7288
5938
|
}),
|
|
@@ -7313,10 +5963,10 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
7313
5963
|
_this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
|
|
7314
5964
|
return _this;
|
|
7315
5965
|
}
|
|
7316
|
-
AbstractPlaceNavigationComponent.prototype.
|
|
5966
|
+
AbstractPlaceNavigationComponent.prototype.getNav = function (placeDef) {
|
|
7317
5967
|
var navItem = placeDef.getPlaceData('nav');
|
|
7318
5968
|
return {
|
|
7319
|
-
|
|
5969
|
+
title: function () { return navItem ? navItem.title() : placeDef.searchPlaceData(['navTitle', 'title']); },
|
|
7320
5970
|
tooltip: function () { return navItem && navItem.tooltip ? navItem.tooltip() : placeDef.getPlaceData('navTooltip', null); },
|
|
7321
5971
|
icon: function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); }
|
|
7322
5972
|
};
|
|
@@ -7350,7 +6000,7 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
7350
6000
|
__metadata("design:type", Function),
|
|
7351
6001
|
__metadata("design:paramtypes", [PlaceDefinition]),
|
|
7352
6002
|
__metadata("design:returntype", Object)
|
|
7353
|
-
], AbstractPlaceNavigationComponent.prototype, "
|
|
6003
|
+
], AbstractPlaceNavigationComponent.prototype, "getNav", null);
|
|
7354
6004
|
AbstractPlaceNavigationComponent = __decorate([
|
|
7355
6005
|
Component({
|
|
7356
6006
|
template: ''
|
|
@@ -7411,7 +6061,7 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
|
|
|
7411
6061
|
ListPlaceNavComponent = __decorate([
|
|
7412
6062
|
Component({
|
|
7413
6063
|
selector: 'aup-list-place-nav',
|
|
7414
|
-
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"
|
|
6064
|
+
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n",
|
|
7415
6065
|
styles: [":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]
|
|
7416
6066
|
}),
|
|
7417
6067
|
__metadata("design:paramtypes", [PlaceRouter])
|
|
@@ -7419,6 +6069,25 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
|
|
|
7419
6069
|
return ListPlaceNavComponent;
|
|
7420
6070
|
}(AbstractPlaceNavigationComponent));
|
|
7421
6071
|
|
|
6072
|
+
var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
6073
|
+
__extends(TabbedPlaceNavigationComponent, _super);
|
|
6074
|
+
function TabbedPlaceNavigationComponent(placeRouter) {
|
|
6075
|
+
return _super.call(this, placeRouter) || this;
|
|
6076
|
+
}
|
|
6077
|
+
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
6078
|
+
{ type: PlaceRouter }
|
|
6079
|
+
]; };
|
|
6080
|
+
TabbedPlaceNavigationComponent = __decorate([
|
|
6081
|
+
Component({
|
|
6082
|
+
selector: 'aup-tabbed-place-navigation',
|
|
6083
|
+
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</nav>\n",
|
|
6084
|
+
styles: [""]
|
|
6085
|
+
}),
|
|
6086
|
+
__metadata("design:paramtypes", [PlaceRouter])
|
|
6087
|
+
], TabbedPlaceNavigationComponent);
|
|
6088
|
+
return TabbedPlaceNavigationComponent;
|
|
6089
|
+
}(AbstractPlaceNavigationComponent));
|
|
6090
|
+
|
|
7422
6091
|
/**
|
|
7423
6092
|
* @example
|
|
7424
6093
|
* // Usage
|
|
@@ -7457,7 +6126,7 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
|
|
|
7457
6126
|
* (at)Place({
|
|
7458
6127
|
* path: 'myPlace',
|
|
7459
6128
|
* data: {
|
|
7460
|
-
* nav: I18n.places.myPlace.nav
|
|
6129
|
+
* nav: I18n.places.myPlace.nav()
|
|
7461
6130
|
* }
|
|
7462
6131
|
* })
|
|
7463
6132
|
*/
|
|
@@ -7493,7 +6162,7 @@ var SidePlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
7493
6162
|
SidePlaceNavigationComponent = __decorate([
|
|
7494
6163
|
Component({
|
|
7495
6164
|
selector: 'aup-side-place-navigation',
|
|
7496
|
-
template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"
|
|
6165
|
+
template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span\n class=\"expanded-only\">{{getNav(placeDefinition).title()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
|
|
7497
6166
|
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width, 56px);--resolved-nav-item-height:var(--nav-item-height, var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width, 235px);--resolved-color:var(--nav-color, rgba(255, 255, 255, 0.9));--resolved-background-color:var(--nav-background-color, #555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}"]
|
|
7498
6167
|
}),
|
|
7499
6168
|
__metadata("design:paramtypes", [Router, PlaceRouter])
|
|
@@ -7501,25 +6170,6 @@ var SidePlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
7501
6170
|
return SidePlaceNavigationComponent;
|
|
7502
6171
|
}(AbstractPlaceNavigationComponent));
|
|
7503
6172
|
|
|
7504
|
-
var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
7505
|
-
__extends(TabbedPlaceNavigationComponent, _super);
|
|
7506
|
-
function TabbedPlaceNavigationComponent(placeRouter) {
|
|
7507
|
-
return _super.call(this, placeRouter) || this;
|
|
7508
|
-
}
|
|
7509
|
-
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
7510
|
-
{ type: PlaceRouter }
|
|
7511
|
-
]; };
|
|
7512
|
-
TabbedPlaceNavigationComponent = __decorate([
|
|
7513
|
-
Component({
|
|
7514
|
-
selector: 'aup-tabbed-place-navigation',
|
|
7515
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-command-face [face]=\"getNavigationFace(placeDefinition)\"></aup-command-face>\n </a>\n</nav>\n",
|
|
7516
|
-
styles: [""]
|
|
7517
|
-
}),
|
|
7518
|
-
__metadata("design:paramtypes", [PlaceRouter])
|
|
7519
|
-
], TabbedPlaceNavigationComponent);
|
|
7520
|
-
return TabbedPlaceNavigationComponent;
|
|
7521
|
-
}(AbstractPlaceNavigationComponent));
|
|
7522
|
-
|
|
7523
6173
|
var PlaceModule = /** @class */ (function () {
|
|
7524
6174
|
function PlaceModule() {
|
|
7525
6175
|
}
|
|
@@ -8066,7 +6716,8 @@ function installMechanics(prototype, propertyKey, backingModel, tagPrefix, isEmp
|
|
|
8066
6716
|
binding: null
|
|
8067
6717
|
};
|
|
8068
6718
|
var tag = tagPrefix + "(" + prototype.constructor.name + "." + propertyKey.toString() + ")";
|
|
8069
|
-
DebugContext.
|
|
6719
|
+
DebugContext.get(mechanics.backingModel).tag(tag);
|
|
6720
|
+
Logger.get(mechanics.backingModel).tag(tag);
|
|
8070
6721
|
Object.defineProperty(prototype, propertyKey, {
|
|
8071
6722
|
get: function () {
|
|
8072
6723
|
return mechanics.backingModel;
|
|
@@ -8128,5 +6779,5 @@ function VisitParameterList(options) {
|
|
|
8128
6779
|
* Generated bundle index. Do not edit.
|
|
8129
6780
|
*/
|
|
8130
6781
|
|
|
8131
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule,
|
|
6782
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandDirective, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupInteractionContextComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TemplateCellRendererPortalRef, TextInputComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0, DirectivesModule as ɵa, CommandDirective as ɵb, EditRowControls as ɵba, ColumnTemplateDirective as ɵbb, DefaultCellRendererComponent as ɵbc, TableCellRendererComponent as ɵbd, SelectCellRendererComponent as ɵbe, SelectHeaderCellRendererComponent as ɵbf, DefaultHeaderCellRendererComponent as ɵbg, TableHeaderCellRendererComponent as ɵbh, MultipleSelectInputComponent as ɵbi, IconComponent as ɵbj, SectionHeaderComponent as ɵbk, PlaceModule as ɵbl, ComponentsModule as ɵbm, EmptyStateComponent as ɵbn, BusyOverlayComponent as ɵbo, PlaceOutletComponent as ɵbp, leftRightPlaceAnimation as ɵbq, LEFT_RIGHT_PLACE_ANIMATION as ɵbr, AUP_PLACE_CONFIG as ɵbs, PlaceRouter as ɵbu, InteractionService as ɵbv, ModalInteractionContextFactory as ɵbw, UrlService as ɵbx, PlaceHistory as ɵby, TabbedPlaceNavigationComponent as ɵbz, FocusBindingDirective as ɵc, AbstractPlaceNavigationComponent as ɵca, ListPlaceNavComponent as ɵcb, SidePlaceNavigationComponent as ɵcc, InteractionModule as ɵcd, ActivityContainerComponent as ɵce, AbstractInteractionContext as ɵcf, ActivityOutletComponent as ɵcg, ConfirmationDialogComponent as ɵch, ACTIVITY_DATA as ɵci, Activity as ɵcj, ConfirmThenDialogComponent as ɵcl, AlertDialogComponent as ɵcm, InPlaceInteractionContextComponent as ɵco, AddItemInteractionContextComponent as ɵcp, ActivityActionsComponent as ɵcq, PopupInteractionContextComponent as ɵcr, StringInputActivity as ɵcs, AbstractInputActivity as ɵct, SelectInputActivity as ɵcu, InteractionContextTriggerFor as ɵcv, DisposableComponent as ɵd, FocusBindingFactory as ɵe, ComponentsModule as ɵf, AbstractInputComponent as ɵg, AbstractValueInputComponent as ɵh, AbstractListInputComponent as ɵi, NumberInputComponent as ɵj, StringInputComponent as ɵk, TextInputComponent as ɵl, PasswordInputComponent as ɵm, SelectInputComponent as ɵn, CheckboxInputComponent as ɵo, ScrollContainerComponent as ɵp, NoopComponent as ɵq, SwitchCaseOption as ɵr, SwitchCaseWhenDirective as ɵs, SwitchCaseDefaultDirective as ɵt, SwitchCaseComponent as ɵu, FocusContainerComponent as ɵv, VerticalFocusContainerComponent as ɵw, FocusableComponent as ɵx, CardContainerComponent as ɵy, TableComponent as ɵz };
|
|
8132
6783
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|