@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,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/
|
|
4
|
-
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.
|
|
5
|
-
}(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, portal, scrolling,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@angular/material/table'), require('@coolon/pectin'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('lodash'), require('immer'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@angular/material/tooltip'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('resize-observer-polyfill'), require('@angular/material/progress-spinner'), require('@angular/material/list'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/button', '@angular/material/checkbox', '@angular/material/icon', '@angular/material/table', '@coolon/pectin', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator/dist/src', 'lodash', 'immer', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@angular/material/tooltip', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', 'resize-observer-polyfill', '@angular/material/progress-spinner', '@angular/material/list', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'rxjs'], factory) :
|
|
4
|
+
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.button, global.ng.material.checkbox, global.ng.material.icon, global.ng.material.table, global.pectin, global.typescriptUtilities, global.src, global.___default, global.produce, global.angularFontawesome, global.freeSolidSvgIcons, global.ng.material.tooltip, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ResizeObserver, global.ng.material.progressSpinner, global.ng.material.list, global.fastMemoizeDecorator, null, global.ng.animations, global.rxjs));
|
|
5
|
+
}(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, portal, scrolling, button, checkbox, icon, table, pectin, typescriptUtilities, src, ___default, produce, angularFontawesome, freeSolidSvgIcons, tooltip, flexLayout, dialog, router, overlay, ResizeObserver, progressSpinner, list, fastMemoizeDecorator, reflectMetadata, animations$1, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var ___default__default = 'default' in ___default ? ___default['default'] : ___default;
|
|
8
8
|
produce = produce && Object.prototype.hasOwnProperty.call(produce, 'default') ? produce['default'] : produce;
|
|
@@ -578,1005 +578,13 @@
|
|
|
578
578
|
core.Component({
|
|
579
579
|
selector: 'aup-card-container',
|
|
580
580
|
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",
|
|
581
|
-
styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white
|
|
581
|
+
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}"]
|
|
582
582
|
}),
|
|
583
583
|
__metadata("design:paramtypes", [])
|
|
584
584
|
], CardContainerComponent);
|
|
585
585
|
return CardContainerComponent;
|
|
586
586
|
}(DisposableComponent));
|
|
587
587
|
|
|
588
|
-
|
|
589
|
-
(function (TrackBy) {
|
|
590
|
-
TrackBy.byIndex = function (data, index) { return index; };
|
|
591
|
-
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
(function (CommandFace) {
|
|
595
|
-
var Position;
|
|
596
|
-
(function (Position) {
|
|
597
|
-
Position["START"] = "start";
|
|
598
|
-
Position["END"] = "end";
|
|
599
|
-
})(Position = CommandFace.Position || (CommandFace.Position = {}));
|
|
600
|
-
CommandFace.Style = typescriptStringEnums.Enum({
|
|
601
|
-
FLAT: 'flat',
|
|
602
|
-
STROKED: 'stroked',
|
|
603
|
-
RAISED: 'raised'
|
|
604
|
-
});
|
|
605
|
-
function getColorOf(face) {
|
|
606
|
-
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
|
|
607
|
-
}
|
|
608
|
-
CommandFace.getColorOf = getColorOf;
|
|
609
|
-
function getStyleOf(face) {
|
|
610
|
-
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
|
|
611
|
-
}
|
|
612
|
-
CommandFace.getStyleOf = getStyleOf;
|
|
613
|
-
function getIconOf(face) {
|
|
614
|
-
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
|
|
615
|
-
}
|
|
616
|
-
CommandFace.getIconOf = getIconOf;
|
|
617
|
-
function getIconPositionOf(face) {
|
|
618
|
-
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
|
|
619
|
-
}
|
|
620
|
-
CommandFace.getIconPositionOf = getIconPositionOf;
|
|
621
|
-
function getTooltipOf(face) {
|
|
622
|
-
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
|
|
623
|
-
}
|
|
624
|
-
CommandFace.getTooltipOf = getTooltipOf;
|
|
625
|
-
function getTextOf(face) {
|
|
626
|
-
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
|
|
627
|
-
}
|
|
628
|
-
CommandFace.getTextOf = getTextOf;
|
|
629
|
-
var Adapter = /** @class */ (function () {
|
|
630
|
-
function Adapter(face) {
|
|
631
|
-
this.face = face;
|
|
632
|
-
}
|
|
633
|
-
Object.defineProperty(Adapter.prototype, "text", {
|
|
634
|
-
get: function () {
|
|
635
|
-
return CommandFace.getTextOf(this.face);
|
|
636
|
-
},
|
|
637
|
-
enumerable: true,
|
|
638
|
-
configurable: true
|
|
639
|
-
});
|
|
640
|
-
Object.defineProperty(Adapter.prototype, "icon", {
|
|
641
|
-
get: function () {
|
|
642
|
-
return CommandFace.getIconOf(this.face);
|
|
643
|
-
},
|
|
644
|
-
enumerable: true,
|
|
645
|
-
configurable: true
|
|
646
|
-
});
|
|
647
|
-
Object.defineProperty(Adapter.prototype, "iconPosition", {
|
|
648
|
-
get: function () {
|
|
649
|
-
return CommandFace.getIconPositionOf(this.face);
|
|
650
|
-
},
|
|
651
|
-
enumerable: true,
|
|
652
|
-
configurable: true
|
|
653
|
-
});
|
|
654
|
-
Object.defineProperty(Adapter.prototype, "tooltip", {
|
|
655
|
-
get: function () {
|
|
656
|
-
return CommandFace.getTooltipOf(this.face);
|
|
657
|
-
},
|
|
658
|
-
enumerable: true,
|
|
659
|
-
configurable: true
|
|
660
|
-
});
|
|
661
|
-
Object.defineProperty(Adapter.prototype, "iconPositionStart", {
|
|
662
|
-
get: function () {
|
|
663
|
-
return this.iconPosition === CommandFace.Position.START;
|
|
664
|
-
},
|
|
665
|
-
enumerable: true,
|
|
666
|
-
configurable: true
|
|
667
|
-
});
|
|
668
|
-
Object.defineProperty(Adapter.prototype, "iconPositionEnd", {
|
|
669
|
-
get: function () {
|
|
670
|
-
return this.iconPosition === CommandFace.Position.END;
|
|
671
|
-
},
|
|
672
|
-
enumerable: true,
|
|
673
|
-
configurable: true
|
|
674
|
-
});
|
|
675
|
-
Object.defineProperty(Adapter.prototype, "color", {
|
|
676
|
-
get: function () {
|
|
677
|
-
return CommandFace.getColorOf(this.face);
|
|
678
|
-
},
|
|
679
|
-
enumerable: true,
|
|
680
|
-
configurable: true
|
|
681
|
-
});
|
|
682
|
-
Object.defineProperty(Adapter.prototype, "style", {
|
|
683
|
-
get: function () {
|
|
684
|
-
return CommandFace.getStyleOf(this.face);
|
|
685
|
-
},
|
|
686
|
-
enumerable: true,
|
|
687
|
-
configurable: true
|
|
688
|
-
});
|
|
689
|
-
__decorate([
|
|
690
|
-
src.Memoize(),
|
|
691
|
-
__metadata("design:type", Object),
|
|
692
|
-
__metadata("design:paramtypes", [])
|
|
693
|
-
], Adapter.prototype, "text", null);
|
|
694
|
-
__decorate([
|
|
695
|
-
src.Memoize(),
|
|
696
|
-
__metadata("design:type", Object),
|
|
697
|
-
__metadata("design:paramtypes", [])
|
|
698
|
-
], Adapter.prototype, "icon", null);
|
|
699
|
-
__decorate([
|
|
700
|
-
src.Memoize(),
|
|
701
|
-
__metadata("design:type", Object),
|
|
702
|
-
__metadata("design:paramtypes", [])
|
|
703
|
-
], Adapter.prototype, "iconPosition", null);
|
|
704
|
-
__decorate([
|
|
705
|
-
src.Memoize(),
|
|
706
|
-
__metadata("design:type", Object),
|
|
707
|
-
__metadata("design:paramtypes", [])
|
|
708
|
-
], Adapter.prototype, "tooltip", null);
|
|
709
|
-
__decorate([
|
|
710
|
-
src.Memoize(),
|
|
711
|
-
__metadata("design:type", Boolean),
|
|
712
|
-
__metadata("design:paramtypes", [])
|
|
713
|
-
], Adapter.prototype, "iconPositionStart", null);
|
|
714
|
-
__decorate([
|
|
715
|
-
src.Memoize(),
|
|
716
|
-
__metadata("design:type", Boolean),
|
|
717
|
-
__metadata("design:paramtypes", [])
|
|
718
|
-
], Adapter.prototype, "iconPositionEnd", null);
|
|
719
|
-
__decorate([
|
|
720
|
-
src.Memoize(),
|
|
721
|
-
__metadata("design:type", String),
|
|
722
|
-
__metadata("design:paramtypes", [])
|
|
723
|
-
], Adapter.prototype, "color", null);
|
|
724
|
-
__decorate([
|
|
725
|
-
src.Memoize(),
|
|
726
|
-
__metadata("design:type", String),
|
|
727
|
-
__metadata("design:paramtypes", [])
|
|
728
|
-
], Adapter.prototype, "style", null);
|
|
729
|
-
return Adapter;
|
|
730
|
-
}());
|
|
731
|
-
CommandFace.Adapter = Adapter;
|
|
732
|
-
})(exports.CommandFace || (exports.CommandFace = {}));
|
|
733
|
-
|
|
734
|
-
exports.ViewData = /** @class */ (function () {
|
|
735
|
-
function ViewData() {
|
|
736
|
-
}
|
|
737
|
-
return ViewData;
|
|
738
|
-
}());
|
|
739
|
-
(function (ViewData) {
|
|
740
|
-
var FaceData = /** @class */ (function (_super) {
|
|
741
|
-
__extends(FaceData, _super);
|
|
742
|
-
function FaceData(face) {
|
|
743
|
-
var _this = _super.call(this) || this;
|
|
744
|
-
_this.faceAdapter = new exports.CommandFace.Adapter(face);
|
|
745
|
-
return _this;
|
|
746
|
-
}
|
|
747
|
-
return FaceData;
|
|
748
|
-
}(ViewData));
|
|
749
|
-
ViewData.FaceData = FaceData;
|
|
750
|
-
var GroupData = /** @class */ (function (_super) {
|
|
751
|
-
__extends(GroupData, _super);
|
|
752
|
-
function GroupData(face, xPosition, yPosition, children) {
|
|
753
|
-
var _this = _super.call(this, face) || this;
|
|
754
|
-
_this.xPosition = xPosition;
|
|
755
|
-
_this.yPosition = yPosition;
|
|
756
|
-
_this.children = children;
|
|
757
|
-
return _this;
|
|
758
|
-
}
|
|
759
|
-
Object.defineProperty(GroupData.prototype, "hasMixedIcons", {
|
|
760
|
-
get: function () {
|
|
761
|
-
var hasFaces = this.children.filter(function (c) { return ViewData.hasFace(c); });
|
|
762
|
-
var iconCount = hasFaces.filter(function (c) { return !!c.faceAdapter.icon; }).length;
|
|
763
|
-
return iconCount > 0 && hasFaces.length !== iconCount;
|
|
764
|
-
},
|
|
765
|
-
enumerable: true,
|
|
766
|
-
configurable: true
|
|
767
|
-
});
|
|
768
|
-
__decorate([
|
|
769
|
-
src.Memoize(),
|
|
770
|
-
__metadata("design:type", Boolean),
|
|
771
|
-
__metadata("design:paramtypes", [])
|
|
772
|
-
], GroupData.prototype, "hasMixedIcons", null);
|
|
773
|
-
return GroupData;
|
|
774
|
-
}(FaceData));
|
|
775
|
-
ViewData.GroupData = GroupData;
|
|
776
|
-
var CommandData = /** @class */ (function (_super) {
|
|
777
|
-
__extends(CommandData, _super);
|
|
778
|
-
function CommandData(face, command) {
|
|
779
|
-
var _this = _super.call(this, face) || this;
|
|
780
|
-
_this.command = command;
|
|
781
|
-
return _this;
|
|
782
|
-
}
|
|
783
|
-
return CommandData;
|
|
784
|
-
}(FaceData));
|
|
785
|
-
ViewData.CommandData = CommandData;
|
|
786
|
-
var SeparatorData = /** @class */ (function (_super) {
|
|
787
|
-
__extends(SeparatorData, _super);
|
|
788
|
-
function SeparatorData() {
|
|
789
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
790
|
-
}
|
|
791
|
-
return SeparatorData;
|
|
792
|
-
}(ViewData));
|
|
793
|
-
ViewData.SeparatorData = SeparatorData;
|
|
794
|
-
var FlexData = /** @class */ (function (_super) {
|
|
795
|
-
__extends(FlexData, _super);
|
|
796
|
-
function FlexData() {
|
|
797
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
798
|
-
}
|
|
799
|
-
return FlexData;
|
|
800
|
-
}(ViewData));
|
|
801
|
-
ViewData.FlexData = FlexData;
|
|
802
|
-
function as(type, viewData) {
|
|
803
|
-
return viewData instanceof type ? viewData : pectin.lang.illegalState("expected instance of " + type.name + ", got " + viewData.constructor.name);
|
|
804
|
-
}
|
|
805
|
-
ViewData.as = as;
|
|
806
|
-
function getCommand(data) {
|
|
807
|
-
return as(CommandData, data).command;
|
|
808
|
-
}
|
|
809
|
-
ViewData.getCommand = getCommand;
|
|
810
|
-
function getTooltip(data) {
|
|
811
|
-
return as(FaceData, data).faceAdapter.tooltip;
|
|
812
|
-
}
|
|
813
|
-
ViewData.getTooltip = getTooltip;
|
|
814
|
-
function getStyle(data) {
|
|
815
|
-
return as(FaceData, data).faceAdapter.style;
|
|
816
|
-
}
|
|
817
|
-
ViewData.getStyle = getStyle;
|
|
818
|
-
function getColor(data) {
|
|
819
|
-
return as(FaceData, data).faceAdapter.color;
|
|
820
|
-
}
|
|
821
|
-
ViewData.getColor = getColor;
|
|
822
|
-
function hasText(data) {
|
|
823
|
-
return !!as(FaceData, data).faceAdapter.text;
|
|
824
|
-
}
|
|
825
|
-
ViewData.hasText = hasText;
|
|
826
|
-
function getFace(data) {
|
|
827
|
-
return as(FaceData, data).faceAdapter.face;
|
|
828
|
-
}
|
|
829
|
-
ViewData.getFace = getFace;
|
|
830
|
-
function asGroup(viewData) {
|
|
831
|
-
return as(GroupData, viewData);
|
|
832
|
-
}
|
|
833
|
-
ViewData.asGroup = asGroup;
|
|
834
|
-
function hasMixedIcons(data) {
|
|
835
|
-
return as(GroupData, data).hasMixedIcons;
|
|
836
|
-
}
|
|
837
|
-
ViewData.hasMixedIcons = hasMixedIcons;
|
|
838
|
-
function isGroup(data) {
|
|
839
|
-
return data instanceof GroupData;
|
|
840
|
-
}
|
|
841
|
-
ViewData.isGroup = isGroup;
|
|
842
|
-
function hasFace(data) {
|
|
843
|
-
return data instanceof FaceData;
|
|
844
|
-
}
|
|
845
|
-
ViewData.hasFace = hasFace;
|
|
846
|
-
function isCommand(data) {
|
|
847
|
-
return data instanceof CommandData;
|
|
848
|
-
}
|
|
849
|
-
ViewData.isCommand = isCommand;
|
|
850
|
-
function isSeparator(data) {
|
|
851
|
-
return data instanceof SeparatorData;
|
|
852
|
-
}
|
|
853
|
-
ViewData.isSeparator = isSeparator;
|
|
854
|
-
function isFlex(data) {
|
|
855
|
-
return data instanceof FlexData;
|
|
856
|
-
}
|
|
857
|
-
ViewData.isFlex = isFlex;
|
|
858
|
-
})(exports.ViewData || (exports.ViewData = {}));
|
|
859
|
-
|
|
860
|
-
var CommandGroupMenuRendererComponent = /** @class */ (function (_super) {
|
|
861
|
-
__extends(CommandGroupMenuRendererComponent, _super);
|
|
862
|
-
function CommandGroupMenuRendererComponent(parent) {
|
|
863
|
-
var _this = _super.call(this) || this;
|
|
864
|
-
_this.parent = parent;
|
|
865
|
-
_this.groupViewDataModel = new pectin.MutableValueModel();
|
|
866
|
-
_this.commandFired = new core.EventEmitter();
|
|
867
|
-
_this.ViewData = exports.ViewData;
|
|
868
|
-
_this.TrackBy = exports.TrackBy;
|
|
869
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
870
|
-
_this.children = chain(_this.groupViewDataModel).pluckList('children');
|
|
871
|
-
_this.hasMixedIcons = chain(_this.groupViewDataModel).pluck('hasMixedIcons');
|
|
872
|
-
return _this;
|
|
873
|
-
}
|
|
874
|
-
CommandGroupMenuRendererComponent.prototype.getCommand = function (data) {
|
|
875
|
-
var _this = this;
|
|
876
|
-
var command = exports.ViewData.getCommand(data);
|
|
877
|
-
var when = pectin.Dsl.disposeWith(this).when;
|
|
878
|
-
when(command.busy).becomesFalsey(function () { return _this.commandFired.emit(); });
|
|
879
|
-
return command;
|
|
880
|
-
};
|
|
881
|
-
CommandGroupMenuRendererComponent.ctorParameters = function () { return [
|
|
882
|
-
{ type: CommandGroupMenuRendererComponent, decorators: [{ type: core.Optional }, { type: core.SkipSelf }] }
|
|
883
|
-
]; };
|
|
884
|
-
__decorate([
|
|
885
|
-
core.ViewChild('menu', { static: true }),
|
|
886
|
-
__metadata("design:type", menu.MatMenu)
|
|
887
|
-
], CommandGroupMenuRendererComponent.prototype, "menuComponent", void 0);
|
|
888
|
-
__decorate([
|
|
889
|
-
core.Input(), pectin.StoreInValueModel('groupViewDataModel'),
|
|
890
|
-
__metadata("design:type", exports.ViewData.GroupData)
|
|
891
|
-
], CommandGroupMenuRendererComponent.prototype, "groupViewData", void 0);
|
|
892
|
-
__decorate([
|
|
893
|
-
core.Output(),
|
|
894
|
-
__metadata("design:type", Object)
|
|
895
|
-
], CommandGroupMenuRendererComponent.prototype, "commandFired", void 0);
|
|
896
|
-
__decorate([
|
|
897
|
-
core.ViewChildren(menu.MatMenuTrigger),
|
|
898
|
-
__metadata("design:type", core.QueryList)
|
|
899
|
-
], CommandGroupMenuRendererComponent.prototype, "triggers", void 0);
|
|
900
|
-
CommandGroupMenuRendererComponent = __decorate([
|
|
901
|
-
core.Component({
|
|
902
|
-
selector: 'aup-command-group-menu',
|
|
903
|
-
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"
|
|
904
|
-
}),
|
|
905
|
-
__param(0, core.Optional()), __param(0, core.SkipSelf()),
|
|
906
|
-
__metadata("design:paramtypes", [CommandGroupMenuRendererComponent])
|
|
907
|
-
], CommandGroupMenuRendererComponent);
|
|
908
|
-
return CommandGroupMenuRendererComponent;
|
|
909
|
-
}(DisposableComponent));
|
|
910
|
-
|
|
911
|
-
var CommandGroupRendererComponent = /** @class */ (function (_super) {
|
|
912
|
-
__extends(CommandGroupRendererComponent, _super);
|
|
913
|
-
function CommandGroupRendererComponent() {
|
|
914
|
-
var _this = _super.call(this) || this;
|
|
915
|
-
_this.renderRootNode = true;
|
|
916
|
-
_this.ViewData = exports.ViewData;
|
|
917
|
-
_this.TrackBy = exports.TrackBy;
|
|
918
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
919
|
-
_this.childViewDataModels = chain(_this.groupViewDataModel).pluckList('children');
|
|
920
|
-
return _this;
|
|
921
|
-
}
|
|
922
|
-
__decorate([
|
|
923
|
-
core.Input(), pectin.TrackExternal(),
|
|
924
|
-
__metadata("design:type", pectin.ValueModel)
|
|
925
|
-
], CommandGroupRendererComponent.prototype, "groupViewDataModel", void 0);
|
|
926
|
-
__decorate([
|
|
927
|
-
core.Input(), pectin.StoreInValueModel('groupViewDataModel'),
|
|
928
|
-
__metadata("design:type", exports.ViewData.GroupData)
|
|
929
|
-
], CommandGroupRendererComponent.prototype, "groupViewData", void 0);
|
|
930
|
-
__decorate([
|
|
931
|
-
core.Input(),
|
|
932
|
-
core.HostBinding('class.render-root'),
|
|
933
|
-
__metadata("design:type", Object)
|
|
934
|
-
], CommandGroupRendererComponent.prototype, "renderRootNode", void 0);
|
|
935
|
-
CommandGroupRendererComponent = __decorate([
|
|
936
|
-
core.Component({
|
|
937
|
-
selector: 'aup-command-group-renderer',
|
|
938
|
-
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",
|
|
939
|
-
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}"]
|
|
940
|
-
}),
|
|
941
|
-
__metadata("design:paramtypes", [])
|
|
942
|
-
], CommandGroupRendererComponent);
|
|
943
|
-
return CommandGroupRendererComponent;
|
|
944
|
-
}(DisposableComponent));
|
|
945
|
-
|
|
946
|
-
exports.Registration = /** @class */ (function (_super) {
|
|
947
|
-
__extends(Registration, _super);
|
|
948
|
-
function Registration() {
|
|
949
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
950
|
-
}
|
|
951
|
-
return Registration;
|
|
952
|
-
}(pectin.GarbageCollector));
|
|
953
|
-
(function (Registration) {
|
|
954
|
-
var FaceRegistration = /** @class */ (function (_super) {
|
|
955
|
-
__extends(FaceRegistration, _super);
|
|
956
|
-
function FaceRegistration(faceModel) {
|
|
957
|
-
var _this = _super.call(this) || this;
|
|
958
|
-
_this.faceModel = faceModel;
|
|
959
|
-
return _this;
|
|
960
|
-
}
|
|
961
|
-
return FaceRegistration;
|
|
962
|
-
}(Registration));
|
|
963
|
-
Registration.FaceRegistration = FaceRegistration;
|
|
964
|
-
var CommandRegistration = /** @class */ (function (_super) {
|
|
965
|
-
__extends(CommandRegistration, _super);
|
|
966
|
-
function CommandRegistration(faceModel, command) {
|
|
967
|
-
var _this = _super.call(this, faceModel) || this;
|
|
968
|
-
_this.command = command;
|
|
969
|
-
return _this;
|
|
970
|
-
}
|
|
971
|
-
CommandRegistration.prototype.toTemplate = function () {
|
|
972
|
-
return new exports.ViewData.CommandData(this.faceModel.value, this.command);
|
|
973
|
-
};
|
|
974
|
-
return CommandRegistration;
|
|
975
|
-
}(FaceRegistration));
|
|
976
|
-
Registration.CommandRegistration = CommandRegistration;
|
|
977
|
-
var GroupRegistration = /** @class */ (function (_super) {
|
|
978
|
-
__extends(GroupRegistration, _super);
|
|
979
|
-
function GroupRegistration(faceModel, group) {
|
|
980
|
-
var _this = _super.call(this, faceModel) || this;
|
|
981
|
-
_this.group = group;
|
|
982
|
-
return _this;
|
|
983
|
-
}
|
|
984
|
-
GroupRegistration.prototype.toTemplate = function () {
|
|
985
|
-
return new exports.ViewData.GroupData(this.faceModel.value, this.group.xPosition, this.group.yPosition, this.group.registrations.value.map(function (r) { return r.toTemplate(); }));
|
|
986
|
-
};
|
|
987
|
-
return GroupRegistration;
|
|
988
|
-
}(FaceRegistration));
|
|
989
|
-
Registration.GroupRegistration = GroupRegistration;
|
|
990
|
-
var SeparatorRegistration = /** @class */ (function (_super) {
|
|
991
|
-
__extends(SeparatorRegistration, _super);
|
|
992
|
-
function SeparatorRegistration() {
|
|
993
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
994
|
-
_this.template = new exports.ViewData.SeparatorData();
|
|
995
|
-
return _this;
|
|
996
|
-
}
|
|
997
|
-
SeparatorRegistration.prototype.toTemplate = function () {
|
|
998
|
-
return this.template;
|
|
999
|
-
};
|
|
1000
|
-
return SeparatorRegistration;
|
|
1001
|
-
}(Registration));
|
|
1002
|
-
Registration.SeparatorRegistration = SeparatorRegistration;
|
|
1003
|
-
var FlexRegistration = /** @class */ (function (_super) {
|
|
1004
|
-
__extends(FlexRegistration, _super);
|
|
1005
|
-
function FlexRegistration() {
|
|
1006
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1007
|
-
_this.template = new exports.ViewData.FlexData();
|
|
1008
|
-
return _this;
|
|
1009
|
-
}
|
|
1010
|
-
FlexRegistration.prototype.toTemplate = function () {
|
|
1011
|
-
return this.template;
|
|
1012
|
-
};
|
|
1013
|
-
return FlexRegistration;
|
|
1014
|
-
}(Registration));
|
|
1015
|
-
Registration.FlexRegistration = FlexRegistration;
|
|
1016
|
-
function hasFace(entry) {
|
|
1017
|
-
return entry instanceof CommandRegistration || entry instanceof GroupRegistration;
|
|
1018
|
-
}
|
|
1019
|
-
Registration.hasFace = hasFace;
|
|
1020
|
-
})(exports.Registration || (exports.Registration = {}));
|
|
1021
|
-
|
|
1022
|
-
exports.ɵbo = /** @class */ (function (_super) {
|
|
1023
|
-
__extends(CommandGroup, _super);
|
|
1024
|
-
function CommandGroup(parent) {
|
|
1025
|
-
var _this = _super.call(this) || this;
|
|
1026
|
-
_this.parent = parent;
|
|
1027
|
-
_this._rootTemplate = new pectin.MutableValueModel();
|
|
1028
|
-
_this._registrations = new pectin.MutableListModel();
|
|
1029
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1030
|
-
_this.childTemplates = chain(_this._rootTemplate).pluckList('children');
|
|
1031
|
-
_this.initialised = chain(_this._rootTemplate).isNotNil();
|
|
1032
|
-
return _this;
|
|
1033
|
-
}
|
|
1034
|
-
CommandGroup.prototype.initialise = function () {
|
|
1035
|
-
this.rebuildTemplates();
|
|
1036
|
-
};
|
|
1037
|
-
Object.defineProperty(CommandGroup.prototype, "rootTemplate", {
|
|
1038
|
-
get: function () {
|
|
1039
|
-
return this._rootTemplate.readonly;
|
|
1040
|
-
},
|
|
1041
|
-
enumerable: true,
|
|
1042
|
-
configurable: true
|
|
1043
|
-
});
|
|
1044
|
-
Object.defineProperty(CommandGroup.prototype, "registrations", {
|
|
1045
|
-
get: function () {
|
|
1046
|
-
return this._registrations.readonly;
|
|
1047
|
-
},
|
|
1048
|
-
enumerable: true,
|
|
1049
|
-
configurable: true
|
|
1050
|
-
});
|
|
1051
|
-
CommandGroup.prototype.notifyChanged = function () {
|
|
1052
|
-
if (this.parent) {
|
|
1053
|
-
this.parent.notifyChanged();
|
|
1054
|
-
}
|
|
1055
|
-
else {
|
|
1056
|
-
this.rebuildTemplates();
|
|
1057
|
-
}
|
|
1058
|
-
};
|
|
1059
|
-
CommandGroup.prototype.notifyChildFaceChanged = function (is, was) {
|
|
1060
|
-
this.notifyChanged();
|
|
1061
|
-
};
|
|
1062
|
-
CommandGroup.prototype.rebuildTemplates = function () {
|
|
1063
|
-
this._rootTemplate.value = new exports.ViewData.GroupData(this.faceModel.value, this.xPosition, this.yPosition, this.registrations.value.map(function (r) { return r.toTemplate(); }));
|
|
1064
|
-
};
|
|
1065
|
-
Object.defineProperty(CommandGroup.prototype, "depth", {
|
|
1066
|
-
get: function () {
|
|
1067
|
-
return this.isRoot() ? 0 : this.parent.depth + 1;
|
|
1068
|
-
},
|
|
1069
|
-
enumerable: true,
|
|
1070
|
-
configurable: true
|
|
1071
|
-
});
|
|
1072
|
-
CommandGroup.prototype.isRoot = function () {
|
|
1073
|
-
return false;
|
|
1074
|
-
};
|
|
1075
|
-
CommandGroup.prototype.registerCommand = function (command, faceModel) {
|
|
1076
|
-
return this.register(new exports.Registration.CommandRegistration(faceModel, command));
|
|
1077
|
-
};
|
|
1078
|
-
CommandGroup.prototype.registerGroup = function (group, faceModel) {
|
|
1079
|
-
return this.register(new exports.Registration.GroupRegistration(faceModel, group));
|
|
1080
|
-
};
|
|
1081
|
-
CommandGroup.prototype.registerFlex = function (component) {
|
|
1082
|
-
return this.register(new exports.Registration.FlexRegistration());
|
|
1083
|
-
};
|
|
1084
|
-
CommandGroup.prototype.registerSeparator = function (component) {
|
|
1085
|
-
return this.register(new exports.Registration.SeparatorRegistration());
|
|
1086
|
-
};
|
|
1087
|
-
CommandGroup.prototype.register = function (registration) {
|
|
1088
|
-
var _this = this;
|
|
1089
|
-
this._registrations.push(registration);
|
|
1090
|
-
if (registration instanceof exports.Registration.FaceRegistration) {
|
|
1091
|
-
var when = pectin.Dsl.disposeWith(registration).when;
|
|
1092
|
-
when(registration.faceModel).changes(function (is, was) {
|
|
1093
|
-
_this.notifyChildFaceChanged(is, was);
|
|
1094
|
-
}, { asLongAs: this.initialised });
|
|
1095
|
-
}
|
|
1096
|
-
registration.onDispose(function () { return _this._registrations.remove(registration); });
|
|
1097
|
-
return registration;
|
|
1098
|
-
};
|
|
1099
|
-
return CommandGroup;
|
|
1100
|
-
}(pectin.GarbageCollector));
|
|
1101
|
-
(function (CommandGroup) {
|
|
1102
|
-
var Root = /** @class */ (function (_super) {
|
|
1103
|
-
__extends(Root, _super);
|
|
1104
|
-
function Root() {
|
|
1105
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1106
|
-
}
|
|
1107
|
-
Root.prototype.isRoot = function () {
|
|
1108
|
-
return true;
|
|
1109
|
-
};
|
|
1110
|
-
__decorate([
|
|
1111
|
-
pectin.TrackExternal(),
|
|
1112
|
-
__metadata("design:type", pectin.ValueModel)
|
|
1113
|
-
], Root.prototype, "faceModel", void 0);
|
|
1114
|
-
__decorate([
|
|
1115
|
-
pectin.TrackExternal({ defaultValue: 'after' }),
|
|
1116
|
-
__metadata("design:type", pectin.ValueModel)
|
|
1117
|
-
], Root.prototype, "xPositionModel", void 0);
|
|
1118
|
-
__decorate([
|
|
1119
|
-
pectin.StoreInValueModel('xPositionModel'),
|
|
1120
|
-
__metadata("design:type", String)
|
|
1121
|
-
], Root.prototype, "xPosition", void 0);
|
|
1122
|
-
__decorate([
|
|
1123
|
-
pectin.TrackExternal({ defaultValue: 'below' }),
|
|
1124
|
-
__metadata("design:type", pectin.ValueModel)
|
|
1125
|
-
], Root.prototype, "yPositionModel", void 0);
|
|
1126
|
-
__decorate([
|
|
1127
|
-
pectin.StoreInValueModel('yPositionModel'),
|
|
1128
|
-
__metadata("design:type", String)
|
|
1129
|
-
], Root.prototype, "yPosition", void 0);
|
|
1130
|
-
return Root;
|
|
1131
|
-
}(CommandGroup));
|
|
1132
|
-
CommandGroup.Root = Root;
|
|
1133
|
-
function factory() {
|
|
1134
|
-
return new Root();
|
|
1135
|
-
}
|
|
1136
|
-
CommandGroup.factory = factory;
|
|
1137
|
-
})(exports.ɵbo || (exports.ɵbo = {}));
|
|
1138
|
-
|
|
1139
|
-
var CommandGroupComponent = /** @class */ (function (_super) {
|
|
1140
|
-
__extends(CommandGroupComponent, _super);
|
|
1141
|
-
function CommandGroupComponent(parent) {
|
|
1142
|
-
var _this = _super.call(this, parent) || this;
|
|
1143
|
-
_this.parent = parent;
|
|
1144
|
-
_this.xPosition = 'after';
|
|
1145
|
-
_this.yPosition = 'below';
|
|
1146
|
-
_this.parent.registerGroup(_this, _this.faceModel);
|
|
1147
|
-
return _this;
|
|
1148
|
-
}
|
|
1149
|
-
CommandGroupComponent_1 = CommandGroupComponent;
|
|
1150
|
-
var CommandGroupComponent_1;
|
|
1151
|
-
CommandGroupComponent.ctorParameters = function () { return [
|
|
1152
|
-
{ type: exports.ɵbo, decorators: [{ type: core.SkipSelf }] }
|
|
1153
|
-
]; };
|
|
1154
|
-
__decorate([
|
|
1155
|
-
core.Input(), pectin.TrackExternal(),
|
|
1156
|
-
__metadata("design:type", pectin.ValueModel)
|
|
1157
|
-
], CommandGroupComponent.prototype, "faceModel", void 0);
|
|
1158
|
-
__decorate([
|
|
1159
|
-
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
1160
|
-
__metadata("design:type", Object)
|
|
1161
|
-
], CommandGroupComponent.prototype, "face", void 0);
|
|
1162
|
-
__decorate([
|
|
1163
|
-
core.Input(),
|
|
1164
|
-
__metadata("design:type", String)
|
|
1165
|
-
], CommandGroupComponent.prototype, "xPosition", void 0);
|
|
1166
|
-
__decorate([
|
|
1167
|
-
core.Input(),
|
|
1168
|
-
__metadata("design:type", String)
|
|
1169
|
-
], CommandGroupComponent.prototype, "yPosition", void 0);
|
|
1170
|
-
CommandGroupComponent = CommandGroupComponent_1 = __decorate([
|
|
1171
|
-
core.Component({
|
|
1172
|
-
selector: 'aup-command-group',
|
|
1173
|
-
template: '',
|
|
1174
|
-
providers: [
|
|
1175
|
-
{ provide: exports.ɵbo, useExisting: CommandGroupComponent_1 }
|
|
1176
|
-
]
|
|
1177
|
-
}),
|
|
1178
|
-
__param(0, core.SkipSelf()),
|
|
1179
|
-
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1180
|
-
], CommandGroupComponent);
|
|
1181
|
-
return CommandGroupComponent;
|
|
1182
|
-
}(exports.ɵbo));
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* Custom CSS:
|
|
1186
|
-
* @example
|
|
1187
|
-
* root: { // globally
|
|
1188
|
-
* --aup-command-face-icon-gap: 8px;
|
|
1189
|
-
* }
|
|
1190
|
-
* aup-command-face { // per instance
|
|
1191
|
-
* --icon-gap: 4px;
|
|
1192
|
-
* }
|
|
1193
|
-
*/
|
|
1194
|
-
var CommandFaceComponent = /** @class */ (function (_super) {
|
|
1195
|
-
__extends(CommandFaceComponent, _super);
|
|
1196
|
-
function CommandFaceComponent() {
|
|
1197
|
-
var _this = _super.call(this) || this;
|
|
1198
|
-
_this.faceModel = new pectin.MutableValueModel();
|
|
1199
|
-
_this.ignoreIcon = false;
|
|
1200
|
-
_this.ignoreText = false;
|
|
1201
|
-
_this.includeMissingIconInLayout = false;
|
|
1202
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1203
|
-
// overkill /c: when all you have is a hammer...
|
|
1204
|
-
var faceAdapter = chain(_this.faceModel).map(function (face) { return new exports.CommandFace.Adapter(face); });
|
|
1205
|
-
_this.iconModel = faceAdapter.pluck('icon');
|
|
1206
|
-
_this.textModel = faceAdapter.pluck('text');
|
|
1207
|
-
_this.positionModel = faceAdapter.pluck('iconPosition');
|
|
1208
|
-
_this.colorModel = faceAdapter.pluck('color');
|
|
1209
|
-
return _this;
|
|
1210
|
-
}
|
|
1211
|
-
Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
|
|
1212
|
-
get: function () {
|
|
1213
|
-
return this.includeMissingIconInLayout && !this.iconModel.value;
|
|
1214
|
-
},
|
|
1215
|
-
enumerable: true,
|
|
1216
|
-
configurable: true
|
|
1217
|
-
});
|
|
1218
|
-
CommandFaceComponent.prototype.ngOnInit = function () {
|
|
1219
|
-
};
|
|
1220
|
-
Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
|
|
1221
|
-
get: function () {
|
|
1222
|
-
var _a;
|
|
1223
|
-
return (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : exports.CommandFace.Position.START;
|
|
1224
|
-
},
|
|
1225
|
-
enumerable: true,
|
|
1226
|
-
configurable: true
|
|
1227
|
-
});
|
|
1228
|
-
Object.defineProperty(CommandFaceComponent.prototype, "shouldIncludeIcon", {
|
|
1229
|
-
get: function () {
|
|
1230
|
-
return (!this.ignoreIcon && this.iconModel.value) || this.includeMissingIconInLayout;
|
|
1231
|
-
},
|
|
1232
|
-
enumerable: true,
|
|
1233
|
-
configurable: true
|
|
1234
|
-
});
|
|
1235
|
-
Object.defineProperty(CommandFaceComponent.prototype, "iconStart", {
|
|
1236
|
-
get: function () {
|
|
1237
|
-
return this.shouldIncludeIcon && this.iconPosition === exports.CommandFace.Position.START;
|
|
1238
|
-
},
|
|
1239
|
-
enumerable: true,
|
|
1240
|
-
configurable: true
|
|
1241
|
-
});
|
|
1242
|
-
Object.defineProperty(CommandFaceComponent.prototype, "iconEnd", {
|
|
1243
|
-
get: function () {
|
|
1244
|
-
return this.shouldIncludeIcon && this.iconPosition === exports.CommandFace.Position.END;
|
|
1245
|
-
},
|
|
1246
|
-
enumerable: true,
|
|
1247
|
-
configurable: true
|
|
1248
|
-
});
|
|
1249
|
-
Object.defineProperty(CommandFaceComponent.prototype, "text", {
|
|
1250
|
-
get: function () {
|
|
1251
|
-
return this.ignoreText ? undefined : this.textModel.value;
|
|
1252
|
-
},
|
|
1253
|
-
enumerable: true,
|
|
1254
|
-
configurable: true
|
|
1255
|
-
});
|
|
1256
|
-
Object.defineProperty(CommandFaceComponent.prototype, "color", {
|
|
1257
|
-
get: function () {
|
|
1258
|
-
return this.colorModel.value;
|
|
1259
|
-
},
|
|
1260
|
-
enumerable: true,
|
|
1261
|
-
configurable: true
|
|
1262
|
-
});
|
|
1263
|
-
__decorate([
|
|
1264
|
-
core.Input('face'), pectin.StoreInValueModel('faceModel'),
|
|
1265
|
-
__metadata("design:type", Object)
|
|
1266
|
-
], CommandFaceComponent.prototype, "_rawFace", void 0);
|
|
1267
|
-
__decorate([
|
|
1268
|
-
core.Input(),
|
|
1269
|
-
__metadata("design:type", Object)
|
|
1270
|
-
], CommandFaceComponent.prototype, "ignoreIcon", void 0);
|
|
1271
|
-
__decorate([
|
|
1272
|
-
core.Input(),
|
|
1273
|
-
__metadata("design:type", Object)
|
|
1274
|
-
], CommandFaceComponent.prototype, "ignoreText", void 0);
|
|
1275
|
-
__decorate([
|
|
1276
|
-
core.Input(),
|
|
1277
|
-
__metadata("design:type", Object)
|
|
1278
|
-
], CommandFaceComponent.prototype, "includeMissingIconInLayout", void 0);
|
|
1279
|
-
__decorate([
|
|
1280
|
-
core.HostBinding('class.hide-icon'),
|
|
1281
|
-
__metadata("design:type", Object),
|
|
1282
|
-
__metadata("design:paramtypes", [])
|
|
1283
|
-
], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
|
|
1284
|
-
__decorate([
|
|
1285
|
-
core.HostBinding('attr.color'),
|
|
1286
|
-
__metadata("design:type", String),
|
|
1287
|
-
__metadata("design:paramtypes", [])
|
|
1288
|
-
], CommandFaceComponent.prototype, "color", null);
|
|
1289
|
-
CommandFaceComponent = __decorate([
|
|
1290
|
-
core.Component({
|
|
1291
|
-
selector: 'aup-command-face',
|
|
1292
|
-
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",
|
|
1293
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
1294
|
-
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}"]
|
|
1295
|
-
}),
|
|
1296
|
-
__metadata("design:paramtypes", [])
|
|
1297
|
-
], CommandFaceComponent);
|
|
1298
|
-
return CommandFaceComponent;
|
|
1299
|
-
}(DisposableComponent));
|
|
1300
|
-
|
|
1301
|
-
/**
|
|
1302
|
-
*
|
|
1303
|
-
*/
|
|
1304
|
-
var CommandComponent = /** @class */ (function (_super) {
|
|
1305
|
-
__extends(CommandComponent, _super);
|
|
1306
|
-
function CommandComponent(parent) {
|
|
1307
|
-
var _this = _super.call(this) || this;
|
|
1308
|
-
_this.parent = parent;
|
|
1309
|
-
_this.CommandFace = exports.CommandFace;
|
|
1310
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, switchOn = _a.switchOn;
|
|
1311
|
-
_this.activeFaceModel = switchOn(_this.command.busy).toValue(function (when) {
|
|
1312
|
-
when.equalTo(true, _this.busyFaceModel);
|
|
1313
|
-
when.otherwise(_this.faceModel);
|
|
1314
|
-
}).otherwise(_this.faceModel);
|
|
1315
|
-
_this.buttonStyle = chain(_this.activeFaceModel).map(function (f) { return exports.CommandFace.getStyleOf(f); });
|
|
1316
|
-
_this.colorModel = chain(_this.activeFaceModel).map(function (f) { return exports.CommandFace.getColorOf(f); });
|
|
1317
|
-
if (parent) {
|
|
1318
|
-
_this.registerDisposable(_this.parent.registerCommand(_this.command, _this.activeFaceModel));
|
|
1319
|
-
}
|
|
1320
|
-
return _this;
|
|
1321
|
-
}
|
|
1322
|
-
CommandComponent.prototype.ngOnInit = function () {
|
|
1323
|
-
};
|
|
1324
|
-
CommandComponent.ctorParameters = function () { return [
|
|
1325
|
-
{ type: exports.ɵbo, decorators: [{ type: core.Optional }] }
|
|
1326
|
-
]; };
|
|
1327
|
-
__decorate([
|
|
1328
|
-
core.Input(), pectin.TrackExternal(),
|
|
1329
|
-
__metadata("design:type", pectin.Command)
|
|
1330
|
-
], CommandComponent.prototype, "command", void 0);
|
|
1331
|
-
__decorate([
|
|
1332
|
-
core.Input(), pectin.TrackExternal(),
|
|
1333
|
-
__metadata("design:type", pectin.ValueModel)
|
|
1334
|
-
], CommandComponent.prototype, "faceModel", void 0);
|
|
1335
|
-
__decorate([
|
|
1336
|
-
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
1337
|
-
__metadata("design:type", Object)
|
|
1338
|
-
], CommandComponent.prototype, "face", void 0);
|
|
1339
|
-
__decorate([
|
|
1340
|
-
core.Input(), pectin.TrackExternal(),
|
|
1341
|
-
__metadata("design:type", pectin.ValueModel)
|
|
1342
|
-
], CommandComponent.prototype, "busyFaceModel", void 0);
|
|
1343
|
-
__decorate([
|
|
1344
|
-
core.Input(), pectin.StoreInValueModel('busyFaceModel'),
|
|
1345
|
-
__metadata("design:type", Object)
|
|
1346
|
-
], CommandComponent.prototype, "busyFace", void 0);
|
|
1347
|
-
CommandComponent = __decorate([
|
|
1348
|
-
core.Component({
|
|
1349
|
-
selector: 'aup-command',
|
|
1350
|
-
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"
|
|
1351
|
-
}),
|
|
1352
|
-
__param(0, core.Optional()),
|
|
1353
|
-
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1354
|
-
], CommandComponent);
|
|
1355
|
-
return CommandComponent;
|
|
1356
|
-
}(DisposableComponent));
|
|
1357
|
-
|
|
1358
|
-
/**
|
|
1359
|
-
*
|
|
1360
|
-
*/
|
|
1361
|
-
var FlexComponent = /** @class */ (function (_super) {
|
|
1362
|
-
__extends(FlexComponent, _super);
|
|
1363
|
-
function FlexComponent(parent) {
|
|
1364
|
-
var _this = _super.call(this) || this;
|
|
1365
|
-
_this.parent = parent;
|
|
1366
|
-
if (parent) {
|
|
1367
|
-
parent.registerFlex(_this);
|
|
1368
|
-
}
|
|
1369
|
-
return _this;
|
|
1370
|
-
}
|
|
1371
|
-
FlexComponent.prototype.ngOnInit = function () {
|
|
1372
|
-
};
|
|
1373
|
-
FlexComponent.ctorParameters = function () { return [
|
|
1374
|
-
{ type: exports.ɵbo }
|
|
1375
|
-
]; };
|
|
1376
|
-
FlexComponent = __decorate([
|
|
1377
|
-
core.Component({
|
|
1378
|
-
selector: 'aup-flex',
|
|
1379
|
-
template: ""
|
|
1380
|
-
}),
|
|
1381
|
-
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1382
|
-
], FlexComponent);
|
|
1383
|
-
return FlexComponent;
|
|
1384
|
-
}(DisposableComponent));
|
|
1385
|
-
|
|
1386
|
-
var ɵ0 = exports.ɵbo.factory;
|
|
1387
|
-
/**
|
|
1388
|
-
*
|
|
1389
|
-
*/
|
|
1390
|
-
var MoreMenuComponent = /** @class */ (function (_super) {
|
|
1391
|
-
__extends(MoreMenuComponent, _super);
|
|
1392
|
-
function MoreMenuComponent(group) {
|
|
1393
|
-
var _this = _super.call(this) || this;
|
|
1394
|
-
_this.group = group;
|
|
1395
|
-
_this.tooltipModel = new pectin.MutableValueModel();
|
|
1396
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1397
|
-
group.xPosition = 'before'; // this should be the default unless overridden by the user.
|
|
1398
|
-
group.faceModel = chain(_this.tooltipModel).map(function (tooltip) {
|
|
1399
|
-
return {
|
|
1400
|
-
icon: function () { return 'mat:more_vert'; },
|
|
1401
|
-
tooltip: function () {
|
|
1402
|
-
return tooltip;
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
|
-
}, { allowNil: true });
|
|
1406
|
-
return _this;
|
|
1407
|
-
}
|
|
1408
|
-
MoreMenuComponent.prototype.ngOnInit = function () {
|
|
1409
|
-
};
|
|
1410
|
-
MoreMenuComponent.prototype.ngAfterContentInit = function () {
|
|
1411
|
-
this.group.initialise();
|
|
1412
|
-
};
|
|
1413
|
-
MoreMenuComponent.ctorParameters = function () { return [
|
|
1414
|
-
{ type: exports.ɵbo }
|
|
1415
|
-
]; };
|
|
1416
|
-
__decorate([
|
|
1417
|
-
core.Input(), pectin.StoreInValueModel('tooltipModel'),
|
|
1418
|
-
__metadata("design:type", String)
|
|
1419
|
-
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
1420
|
-
__decorate([
|
|
1421
|
-
pectin.Trace(),
|
|
1422
|
-
__metadata("design:type", Function),
|
|
1423
|
-
__metadata("design:paramtypes", []),
|
|
1424
|
-
__metadata("design:returntype", void 0)
|
|
1425
|
-
], MoreMenuComponent.prototype, "ngAfterContentInit", null);
|
|
1426
|
-
MoreMenuComponent = __decorate([
|
|
1427
|
-
core.Component({
|
|
1428
|
-
selector: 'aup-more-menu',
|
|
1429
|
-
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1430
|
-
providers: [{ provide: exports.ɵbo, useFactory: ɵ0 }]
|
|
1431
|
-
}),
|
|
1432
|
-
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1433
|
-
], MoreMenuComponent);
|
|
1434
|
-
return MoreMenuComponent;
|
|
1435
|
-
}(DisposableComponent));
|
|
1436
|
-
|
|
1437
|
-
var ɵ0$1 = exports.ɵbo.factory;
|
|
1438
|
-
/**
|
|
1439
|
-
*
|
|
1440
|
-
*/
|
|
1441
|
-
var PopupMenuComponent = /** @class */ (function (_super) {
|
|
1442
|
-
__extends(PopupMenuComponent, _super);
|
|
1443
|
-
function PopupMenuComponent(group) {
|
|
1444
|
-
var _this = _super.call(this) || this;
|
|
1445
|
-
_this.group = group;
|
|
1446
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1447
|
-
group.faceModel = _this.faceModel;
|
|
1448
|
-
return _this;
|
|
1449
|
-
}
|
|
1450
|
-
PopupMenuComponent.prototype.ngOnInit = function () {
|
|
1451
|
-
};
|
|
1452
|
-
PopupMenuComponent.prototype.ngAfterContentInit = function () {
|
|
1453
|
-
this.group.initialise();
|
|
1454
|
-
};
|
|
1455
|
-
PopupMenuComponent.prototype.ngAfterViewInit = function () {
|
|
1456
|
-
};
|
|
1457
|
-
PopupMenuComponent.ctorParameters = function () { return [
|
|
1458
|
-
{ type: exports.ɵbo }
|
|
1459
|
-
]; };
|
|
1460
|
-
__decorate([
|
|
1461
|
-
core.Input(), pectin.TrackExternal(),
|
|
1462
|
-
__metadata("design:type", pectin.ValueModel)
|
|
1463
|
-
], PopupMenuComponent.prototype, "faceModel", void 0);
|
|
1464
|
-
__decorate([
|
|
1465
|
-
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
1466
|
-
__metadata("design:type", Object)
|
|
1467
|
-
], PopupMenuComponent.prototype, "face", void 0);
|
|
1468
|
-
__decorate([
|
|
1469
|
-
pectin.Trace(),
|
|
1470
|
-
__metadata("design:type", Function),
|
|
1471
|
-
__metadata("design:paramtypes", []),
|
|
1472
|
-
__metadata("design:returntype", void 0)
|
|
1473
|
-
], PopupMenuComponent.prototype, "ngOnInit", null);
|
|
1474
|
-
__decorate([
|
|
1475
|
-
pectin.Trace(),
|
|
1476
|
-
__metadata("design:type", Function),
|
|
1477
|
-
__metadata("design:paramtypes", []),
|
|
1478
|
-
__metadata("design:returntype", void 0)
|
|
1479
|
-
], PopupMenuComponent.prototype, "ngAfterContentInit", null);
|
|
1480
|
-
__decorate([
|
|
1481
|
-
pectin.Trace(),
|
|
1482
|
-
__metadata("design:type", Function),
|
|
1483
|
-
__metadata("design:paramtypes", []),
|
|
1484
|
-
__metadata("design:returntype", void 0)
|
|
1485
|
-
], PopupMenuComponent.prototype, "ngAfterViewInit", null);
|
|
1486
|
-
PopupMenuComponent = __decorate([
|
|
1487
|
-
core.Component({
|
|
1488
|
-
selector: 'aup-popup-menu',
|
|
1489
|
-
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1490
|
-
providers: [{ provide: exports.ɵbo, useFactory: ɵ0$1 }]
|
|
1491
|
-
}),
|
|
1492
|
-
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1493
|
-
], PopupMenuComponent);
|
|
1494
|
-
return PopupMenuComponent;
|
|
1495
|
-
}(DisposableComponent));
|
|
1496
|
-
|
|
1497
|
-
/**
|
|
1498
|
-
*
|
|
1499
|
-
*/
|
|
1500
|
-
var SeparatorComponent = /** @class */ (function (_super) {
|
|
1501
|
-
__extends(SeparatorComponent, _super);
|
|
1502
|
-
function SeparatorComponent(parent) {
|
|
1503
|
-
var _this = _super.call(this) || this;
|
|
1504
|
-
_this.parent = parent;
|
|
1505
|
-
if (parent) {
|
|
1506
|
-
parent.registerSeparator(_this);
|
|
1507
|
-
}
|
|
1508
|
-
return _this;
|
|
1509
|
-
}
|
|
1510
|
-
SeparatorComponent.prototype.isVertical = function () {
|
|
1511
|
-
return this === null || this === void 0 ? void 0 : this.parent.isRoot();
|
|
1512
|
-
};
|
|
1513
|
-
SeparatorComponent.prototype.ngOnInit = function () {
|
|
1514
|
-
};
|
|
1515
|
-
SeparatorComponent.ctorParameters = function () { return [
|
|
1516
|
-
{ type: exports.ɵbo, decorators: [{ type: core.Optional }] }
|
|
1517
|
-
]; };
|
|
1518
|
-
SeparatorComponent = __decorate([
|
|
1519
|
-
core.Component({
|
|
1520
|
-
selector: 'aup-separator',
|
|
1521
|
-
template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
|
|
1522
|
-
}),
|
|
1523
|
-
__param(0, core.Optional()),
|
|
1524
|
-
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1525
|
-
], SeparatorComponent);
|
|
1526
|
-
return SeparatorComponent;
|
|
1527
|
-
}(DisposableComponent));
|
|
1528
|
-
|
|
1529
|
-
var ɵ0$2 = exports.ɵbo.factory;
|
|
1530
|
-
/**
|
|
1531
|
-
*
|
|
1532
|
-
*/
|
|
1533
|
-
var ToolBarComponent = /** @class */ (function (_super) {
|
|
1534
|
-
__extends(ToolBarComponent, _super);
|
|
1535
|
-
function ToolBarComponent(group) {
|
|
1536
|
-
var _this = _super.call(this) || this;
|
|
1537
|
-
_this.group = group;
|
|
1538
|
-
return _this;
|
|
1539
|
-
}
|
|
1540
|
-
ToolBarComponent.prototype.ngOnInit = function () {
|
|
1541
|
-
};
|
|
1542
|
-
ToolBarComponent.prototype.ngAfterContentInit = function () {
|
|
1543
|
-
this.group.initialise();
|
|
1544
|
-
};
|
|
1545
|
-
ToolBarComponent.prototype.ngAfterViewInit = function () {
|
|
1546
|
-
};
|
|
1547
|
-
ToolBarComponent.ctorParameters = function () { return [
|
|
1548
|
-
{ type: exports.ɵbo }
|
|
1549
|
-
]; };
|
|
1550
|
-
__decorate([
|
|
1551
|
-
pectin.Trace(),
|
|
1552
|
-
__metadata("design:type", Function),
|
|
1553
|
-
__metadata("design:paramtypes", []),
|
|
1554
|
-
__metadata("design:returntype", void 0)
|
|
1555
|
-
], ToolBarComponent.prototype, "ngOnInit", null);
|
|
1556
|
-
__decorate([
|
|
1557
|
-
pectin.Trace(),
|
|
1558
|
-
__metadata("design:type", Function),
|
|
1559
|
-
__metadata("design:paramtypes", []),
|
|
1560
|
-
__metadata("design:returntype", void 0)
|
|
1561
|
-
], ToolBarComponent.prototype, "ngAfterContentInit", null);
|
|
1562
|
-
__decorate([
|
|
1563
|
-
pectin.Trace(),
|
|
1564
|
-
__metadata("design:type", Function),
|
|
1565
|
-
__metadata("design:paramtypes", []),
|
|
1566
|
-
__metadata("design:returntype", void 0)
|
|
1567
|
-
], ToolBarComponent.prototype, "ngAfterViewInit", null);
|
|
1568
|
-
ToolBarComponent = __decorate([
|
|
1569
|
-
core.Component({
|
|
1570
|
-
selector: 'aup-tool-bar',
|
|
1571
|
-
template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1572
|
-
providers: [{ provide: exports.ɵbo, useFactory: ɵ0$2 }],
|
|
1573
|
-
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}"]
|
|
1574
|
-
}),
|
|
1575
|
-
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1576
|
-
], ToolBarComponent);
|
|
1577
|
-
return ToolBarComponent;
|
|
1578
|
-
}(DisposableComponent));
|
|
1579
|
-
|
|
1580
588
|
var FocusContainerComponent = /** @class */ (function (_super) {
|
|
1581
589
|
__extends(FocusContainerComponent, _super);
|
|
1582
590
|
function FocusContainerComponent(focusManager) {
|
|
@@ -1685,7 +693,6 @@
|
|
|
1685
693
|
__extends(AbstractInputComponent, _super);
|
|
1686
694
|
function AbstractInputComponent() {
|
|
1687
695
|
var _this = _super.call(this) || this;
|
|
1688
|
-
_this.onValueEditedListeners = new pectin.EventListenerList();
|
|
1689
696
|
_this.dense = false;
|
|
1690
697
|
// TODO: fix this.
|
|
1691
698
|
// tslint:disable-next-line:no-output-native
|
|
@@ -1736,7 +743,7 @@
|
|
|
1736
743
|
};
|
|
1737
744
|
Object.defineProperty(AbstractInputComponent.prototype, "enabled", {
|
|
1738
745
|
get: function () {
|
|
1739
|
-
return this.
|
|
746
|
+
return this.inputModel.enabled;
|
|
1740
747
|
},
|
|
1741
748
|
enumerable: true,
|
|
1742
749
|
configurable: true
|
|
@@ -1746,7 +753,7 @@
|
|
|
1746
753
|
};
|
|
1747
754
|
Object.defineProperty(AbstractInputComponent.prototype, "errorList", {
|
|
1748
755
|
get: function () {
|
|
1749
|
-
return this.
|
|
756
|
+
return this.inputModel.errorList;
|
|
1750
757
|
},
|
|
1751
758
|
enumerable: true,
|
|
1752
759
|
configurable: true
|
|
@@ -1760,7 +767,7 @@
|
|
|
1760
767
|
});
|
|
1761
768
|
Object.defineProperty(AbstractInputComponent.prototype, "focusContext", {
|
|
1762
769
|
get: function () {
|
|
1763
|
-
return this.
|
|
770
|
+
return this.inputModel.focusContext;
|
|
1764
771
|
},
|
|
1765
772
|
enumerable: true,
|
|
1766
773
|
configurable: true
|
|
@@ -1779,13 +786,6 @@
|
|
|
1779
786
|
enumerable: true,
|
|
1780
787
|
configurable: true
|
|
1781
788
|
});
|
|
1782
|
-
/**
|
|
1783
|
-
* Invokes the callback when this components value is changed by a user edit.
|
|
1784
|
-
* @param callback
|
|
1785
|
-
*/
|
|
1786
|
-
AbstractInputComponent.prototype.onValueEdited = function (callback) {
|
|
1787
|
-
return this.onValueEditedListeners.add(callback);
|
|
1788
|
-
};
|
|
1789
789
|
__decorate([
|
|
1790
790
|
core.Input(),
|
|
1791
791
|
__metadata("design:type", String)
|
|
@@ -1887,47 +887,34 @@
|
|
|
1887
887
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1888
888
|
*/
|
|
1889
889
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1890
|
-
_this.
|
|
1891
|
-
_this.
|
|
1892
|
-
_this.setValueIsInProgress = new pectin.Guard();
|
|
890
|
+
_this.inputModel = _this.registerDisposable(new pectin.Form.DelegatingListModel());
|
|
891
|
+
_this.setValueIsInitialising = new pectin.Guard();
|
|
1893
892
|
_this.valueChange = new core.EventEmitter();
|
|
1894
|
-
var
|
|
1895
|
-
|
|
1896
|
-
var inExternalChange = valueOf.any(_this.setValueIsInProgress, chain(binding.direction).equals(pectin.Binding.Direction.RIGHT)).areTruthy();
|
|
1897
|
-
when(_this.componentListModel).changes(function (is, was) {
|
|
1898
|
-
_this.valueChange.emit(is);
|
|
1899
|
-
_this.onValueEditedListeners.fire(function (l) { return l(is, was); });
|
|
1900
|
-
}, {
|
|
893
|
+
var when = pectin.Dsl.disposeWith(_this).when;
|
|
894
|
+
when(_this.inputModel).changes(function (value) { return _this.valueChange.emit(value); }, {
|
|
1901
895
|
initialValue: 'ignore',
|
|
1902
|
-
|
|
1903
|
-
// the component to behave when used in the conventional angular
|
|
1904
|
-
// fashion, i.e. [(value)]="..."
|
|
1905
|
-
unless: inExternalChange
|
|
896
|
+
unless: _this.setValueIsInitialising
|
|
1906
897
|
});
|
|
1907
|
-
pectin.DebugContext.tag(_this.formValueModel, _this.constructor.name + ".formValueModel");
|
|
1908
898
|
return _this;
|
|
1909
899
|
}
|
|
1910
900
|
Object.defineProperty(AbstractListInputComponent.prototype, "value", {
|
|
1911
|
-
// We add support for simple direct display of values by allowing components to be used
|
|
1912
|
-
// by `component.value = ...` This use of the component without a value model in tables
|
|
1913
|
-
// and the like.
|
|
1914
901
|
set: function (value) {
|
|
1915
902
|
var _this = this;
|
|
1916
|
-
this.
|
|
1917
|
-
|
|
903
|
+
if (!this.listHolder) {
|
|
904
|
+
this.setValueIsInitialising.whileTrue(function () {
|
|
1918
905
|
_this.listHolder = new pectin.MutableListModel(value);
|
|
1919
906
|
_this.listModel = _this.listHolder;
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
}
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
else {
|
|
910
|
+
this.listHolder.value = value;
|
|
911
|
+
}
|
|
1925
912
|
},
|
|
1926
913
|
enumerable: true,
|
|
1927
914
|
configurable: true
|
|
1928
915
|
});
|
|
1929
916
|
__decorate([
|
|
1930
|
-
core.Input(), pectin.TrackExternal({ delegateTo: '
|
|
917
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
1931
918
|
__metadata("design:type", Object)
|
|
1932
919
|
], AbstractListInputComponent.prototype, "listModel", void 0);
|
|
1933
920
|
__decorate([
|
|
@@ -1961,131 +948,48 @@
|
|
|
1961
948
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1962
949
|
*/
|
|
1963
950
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1964
|
-
_this.
|
|
1965
|
-
_this.
|
|
1966
|
-
_this.componentValueModel = new pectin.MutableValueModel();
|
|
951
|
+
_this.inputModel = _this.registerDisposable(new pectin.Form.DelegatingValueModel());
|
|
952
|
+
_this.setValueIsInitialising = new pectin.Guard();
|
|
1967
953
|
_this.valueChange = new core.EventEmitter();
|
|
1968
|
-
var
|
|
1969
|
-
|
|
1970
|
-
var inExternalChange = valueOf.any(_this.setValueInProgress, chain(binding.direction).equals(pectin.Binding.Direction.RIGHT)).areTruthy();
|
|
1971
|
-
when(_this.componentValueModel).changes(function (is, was) {
|
|
1972
|
-
_this.valueChange.emit(is);
|
|
1973
|
-
_this.onValueEditedListeners.fire(function (l) { return l(is, was); });
|
|
1974
|
-
}, {
|
|
1975
|
-
initialValue: 'ignore',
|
|
1976
|
-
// we never fire events during an external set value operation. This allows
|
|
1977
|
-
// the component to behave when used in the conventional angular
|
|
1978
|
-
// fashion, i.e. [(value)]="..."
|
|
1979
|
-
unless: inExternalChange
|
|
1980
|
-
});
|
|
1981
|
-
pectin.DebugContext.tag(_this.formValueModel, _this.constructor.name + ".formValueModel");
|
|
1982
|
-
return _this;
|
|
1983
|
-
}
|
|
1984
|
-
Object.defineProperty(AbstractValueInputComponent.prototype, "value", {
|
|
1985
|
-
// We add support for simple direct display of values by allowing components to be used
|
|
1986
|
-
// by `component.value = ...` This use of the component without a value model in tables
|
|
1987
|
-
// and the like.
|
|
1988
|
-
set: function (value) {
|
|
1989
|
-
var _this = this;
|
|
1990
|
-
this.setValueInProgress.whileTrue(function () {
|
|
1991
|
-
if (!_this.plainValueHolder) {
|
|
1992
|
-
_this.plainValueHolder = new pectin.MutableValueModel(value);
|
|
1993
|
-
_this.valueModel = _this.plainValueHolder;
|
|
1994
|
-
}
|
|
1995
|
-
else {
|
|
1996
|
-
_this.plainValueHolder.value = value;
|
|
1997
|
-
}
|
|
1998
|
-
});
|
|
1999
|
-
},
|
|
2000
|
-
enumerable: true,
|
|
2001
|
-
configurable: true
|
|
2002
|
-
});
|
|
2003
|
-
__decorate([
|
|
2004
|
-
core.Input(), pectin.TrackExternal({ delegateTo: 'formValueModel' }),
|
|
2005
|
-
__metadata("design:type", Object)
|
|
2006
|
-
], AbstractValueInputComponent.prototype, "valueModel", void 0);
|
|
2007
|
-
__decorate([
|
|
2008
|
-
core.Input(),
|
|
2009
|
-
__metadata("design:type", Object),
|
|
2010
|
-
__metadata("design:paramtypes", [Object])
|
|
2011
|
-
], AbstractValueInputComponent.prototype, "value", null);
|
|
2012
|
-
__decorate([
|
|
2013
|
-
core.Output(),
|
|
2014
|
-
__metadata("design:type", Object)
|
|
2015
|
-
], AbstractValueInputComponent.prototype, "valueChange", void 0);
|
|
2016
|
-
AbstractValueInputComponent = __decorate([
|
|
2017
|
-
core.Component({ template: '' }),
|
|
2018
|
-
__metadata("design:paramtypes", [])
|
|
2019
|
-
], AbstractValueInputComponent);
|
|
2020
|
-
return AbstractValueInputComponent;
|
|
2021
|
-
}(AbstractInputComponent));
|
|
2022
|
-
|
|
2023
|
-
/**
|
|
2024
|
-
* Using templates (not only supported for nil values:
|
|
2025
|
-
* <aup-autocomplete-input [valueModel]="myModel" [options]="myOptions">
|
|
2026
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2027
|
-
* </aup-autocomplete-input>
|
|
2028
|
-
*/
|
|
2029
|
-
var AutocompleteInputComponent = /** @class */ (function (_super) {
|
|
2030
|
-
__extends(AutocompleteInputComponent, _super);
|
|
2031
|
-
function AutocompleteInputComponent() {
|
|
2032
|
-
var _this = _super.call(this) || this;
|
|
2033
|
-
_this.filterValue = new pectin.MutableValueModel();
|
|
2034
|
-
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2035
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
2036
|
-
var lowerCaseFilterValue = chain(_this.filterValue)
|
|
2037
|
-
.map(function (v) { return ___default__default.isString(v) ? v.toLowerCase() : ''; });
|
|
2038
|
-
_this.filteredOptions = chain(_this.optionsModel)
|
|
2039
|
-
.select(function (option) {
|
|
2040
|
-
return ___default__default.isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
|
|
2041
|
-
}, { dependsOn: lowerCaseFilterValue });
|
|
954
|
+
var when = pectin.Dsl.disposeWith(_this).when;
|
|
955
|
+
when(_this.inputModel).changes(function (value) { return _this.valueChange.emit(value); }, { initialValue: 'ignore', unless: _this.setValueIsInitialising });
|
|
2042
956
|
return _this;
|
|
2043
957
|
}
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
core.Input(), pectin.StoreInListModel('optionsModel'),
|
|
2061
|
-
__metadata("design:type", Array)
|
|
2062
|
-
], AutocompleteInputComponent.prototype, "options", void 0);
|
|
958
|
+
Object.defineProperty(AbstractValueInputComponent.prototype, "value", {
|
|
959
|
+
set: function (value) {
|
|
960
|
+
var _this = this;
|
|
961
|
+
if (!this.valueHolder) {
|
|
962
|
+
this.setValueIsInitialising.whileTrue(function () {
|
|
963
|
+
_this.valueHolder = new pectin.MutableValueModel(value);
|
|
964
|
+
_this.valueModel = _this.valueHolder;
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
else {
|
|
968
|
+
this.valueHolder.value = value;
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
enumerable: true,
|
|
972
|
+
configurable: true
|
|
973
|
+
});
|
|
2063
974
|
__decorate([
|
|
2064
|
-
core.Input(),
|
|
975
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
2065
976
|
__metadata("design:type", Object)
|
|
2066
|
-
],
|
|
977
|
+
], AbstractValueInputComponent.prototype, "valueModel", void 0);
|
|
2067
978
|
__decorate([
|
|
2068
979
|
core.Input(),
|
|
2069
|
-
__metadata("design:type",
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
core.ContentChild('nilOptionTemplate'),
|
|
2073
|
-
__metadata("design:type", core.TemplateRef)
|
|
2074
|
-
], AutocompleteInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
980
|
+
__metadata("design:type", Object),
|
|
981
|
+
__metadata("design:paramtypes", [Object])
|
|
982
|
+
], AbstractValueInputComponent.prototype, "value", null);
|
|
2075
983
|
__decorate([
|
|
2076
|
-
core.
|
|
2077
|
-
__metadata("design:type",
|
|
2078
|
-
],
|
|
2079
|
-
|
|
2080
|
-
core.Component({
|
|
2081
|
-
selector: 'aup-autocomplete-input',
|
|
2082
|
-
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",
|
|
2083
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2084
|
-
}),
|
|
984
|
+
core.Output(),
|
|
985
|
+
__metadata("design:type", Object)
|
|
986
|
+
], AbstractValueInputComponent.prototype, "valueChange", void 0);
|
|
987
|
+
AbstractValueInputComponent = __decorate([
|
|
988
|
+
core.Component({ template: '' }),
|
|
2085
989
|
__metadata("design:paramtypes", [])
|
|
2086
|
-
],
|
|
2087
|
-
return
|
|
2088
|
-
}(
|
|
990
|
+
], AbstractValueInputComponent);
|
|
991
|
+
return AbstractValueInputComponent;
|
|
992
|
+
}(AbstractInputComponent));
|
|
2089
993
|
|
|
2090
994
|
var CheckboxInputComponent = /** @class */ (function (_super) {
|
|
2091
995
|
__extends(CheckboxInputComponent, _super);
|
|
@@ -2110,7 +1014,7 @@
|
|
|
2110
1014
|
CheckboxInputComponent = __decorate([
|
|
2111
1015
|
core.Component({
|
|
2112
1016
|
selector: 'aup-checkbox-input',
|
|
2113
|
-
template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"
|
|
1017
|
+
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",
|
|
2114
1018
|
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}"]
|
|
2115
1019
|
}),
|
|
2116
1020
|
__metadata("design:paramtypes", [])
|
|
@@ -2118,53 +1022,6 @@
|
|
|
2118
1022
|
return CheckboxInputComponent;
|
|
2119
1023
|
}(AbstractValueInputComponent));
|
|
2120
1024
|
|
|
2121
|
-
/**
|
|
2122
|
-
* Using templates:
|
|
2123
|
-
* <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
|
|
2124
|
-
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2125
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2126
|
-
* </aup-multiple-select_input>
|
|
2127
|
-
*/
|
|
2128
|
-
var MultipleSelectInputComponent = /** @class */ (function (_super) {
|
|
2129
|
-
__extends(MultipleSelectInputComponent, _super);
|
|
2130
|
-
function MultipleSelectInputComponent() {
|
|
2131
|
-
var _this = _super.call(this) || this;
|
|
2132
|
-
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2133
|
-
return _this;
|
|
2134
|
-
}
|
|
2135
|
-
MultipleSelectInputComponent.prototype.ngOnInit = function () {
|
|
2136
|
-
};
|
|
2137
|
-
__decorate([
|
|
2138
|
-
core.Input(), pectin.TrackExternal(),
|
|
2139
|
-
__metadata("design:type", pectin.ListModel)
|
|
2140
|
-
], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
|
|
2141
|
-
__decorate([
|
|
2142
|
-
core.Input(), pectin.StoreInListModel('optionsModel'),
|
|
2143
|
-
__metadata("design:type", Array)
|
|
2144
|
-
], MultipleSelectInputComponent.prototype, "options", void 0);
|
|
2145
|
-
__decorate([
|
|
2146
|
-
core.Input(),
|
|
2147
|
-
__metadata("design:type", Object)
|
|
2148
|
-
], MultipleSelectInputComponent.prototype, "optionLabel", void 0);
|
|
2149
|
-
__decorate([
|
|
2150
|
-
core.ContentChild('optionTemplate'),
|
|
2151
|
-
__metadata("design:type", core.TemplateRef)
|
|
2152
|
-
], MultipleSelectInputComponent.prototype, "optionTemplateRef", void 0);
|
|
2153
|
-
__decorate([
|
|
2154
|
-
core.Input(),
|
|
2155
|
-
__metadata("design:type", Function)
|
|
2156
|
-
], MultipleSelectInputComponent.prototype, "optionLabelFormat", void 0);
|
|
2157
|
-
MultipleSelectInputComponent = __decorate([
|
|
2158
|
-
core.Component({
|
|
2159
|
-
selector: 'aup-multiple-select-input',
|
|
2160
|
-
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",
|
|
2161
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2162
|
-
}),
|
|
2163
|
-
__metadata("design:paramtypes", [])
|
|
2164
|
-
], MultipleSelectInputComponent);
|
|
2165
|
-
return MultipleSelectInputComponent;
|
|
2166
|
-
}(AbstractListInputComponent));
|
|
2167
|
-
|
|
2168
1025
|
var NumberInputComponent = /** @class */ (function (_super) {
|
|
2169
1026
|
__extends(NumberInputComponent, _super);
|
|
2170
1027
|
function NumberInputComponent() {
|
|
@@ -2188,7 +1045,7 @@
|
|
|
2188
1045
|
NumberInputComponent = __decorate([
|
|
2189
1046
|
core.Component({
|
|
2190
1047
|
selector: 'aup-number-input',
|
|
2191
|
-
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)]=\"
|
|
1048
|
+
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",
|
|
2192
1049
|
styles: [""]
|
|
2193
1050
|
}),
|
|
2194
1051
|
__metadata("design:paramtypes", [])
|
|
@@ -2208,7 +1065,7 @@
|
|
|
2208
1065
|
PasswordInputComponent = __decorate([
|
|
2209
1066
|
core.Component({
|
|
2210
1067
|
selector: 'aup-password-input',
|
|
2211
|
-
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)]=\"
|
|
1068
|
+
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",
|
|
2212
1069
|
styles: [""]
|
|
2213
1070
|
}),
|
|
2214
1071
|
__metadata("design:paramtypes", [])
|
|
@@ -2220,7 +1077,6 @@
|
|
|
2220
1077
|
* Using templates:
|
|
2221
1078
|
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
2222
1079
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2223
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2224
1080
|
* </aup-select_input>
|
|
2225
1081
|
*/
|
|
2226
1082
|
var SelectInputComponent = /** @class */ (function (_super) {
|
|
@@ -2263,7 +1119,7 @@
|
|
|
2263
1119
|
SelectInputComponent = __decorate([
|
|
2264
1120
|
core.Component({
|
|
2265
1121
|
selector: 'aup-select-input',
|
|
2266
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
1122
|
+
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",
|
|
2267
1123
|
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2268
1124
|
}),
|
|
2269
1125
|
__metadata("design:paramtypes", [])
|
|
@@ -2277,9 +1133,9 @@
|
|
|
2277
1133
|
var _this = _super.call(this) || this;
|
|
2278
1134
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
2279
1135
|
_this.clearCommand = pectin.Command.create(function () {
|
|
2280
|
-
_this.
|
|
1136
|
+
_this.valueModel.value = null;
|
|
2281
1137
|
});
|
|
2282
|
-
_this.clearCommand.disableWhile(chain.stringValue(_this.
|
|
1138
|
+
_this.clearCommand.disableWhile(chain.stringValue(_this.valueModel).isBlank());
|
|
2283
1139
|
return _this;
|
|
2284
1140
|
}
|
|
2285
1141
|
StringInputComponent.prototype.ngOnInit = function () {
|
|
@@ -2295,7 +1151,7 @@
|
|
|
2295
1151
|
StringInputComponent = __decorate([
|
|
2296
1152
|
core.Component({
|
|
2297
1153
|
selector: 'aup-string-input',
|
|
2298
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
1154
|
+
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",
|
|
2299
1155
|
styles: ["button[disabled]{visibility:hidden}"]
|
|
2300
1156
|
}),
|
|
2301
1157
|
__metadata("design:paramtypes", [])
|
|
@@ -2326,7 +1182,7 @@
|
|
|
2326
1182
|
TextInputComponent = __decorate([
|
|
2327
1183
|
core.Component({
|
|
2328
1184
|
selector: 'aup-text-input',
|
|
2329
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
1185
|
+
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",
|
|
2330
1186
|
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
2331
1187
|
}),
|
|
2332
1188
|
__metadata("design:paramtypes", [])
|
|
@@ -2334,59 +1190,6 @@
|
|
|
2334
1190
|
return TextInputComponent;
|
|
2335
1191
|
}(AbstractValueInputComponent));
|
|
2336
1192
|
|
|
2337
|
-
exports.ɵbk = /** @class */ (function () {
|
|
2338
|
-
function IconComponent() {
|
|
2339
|
-
this.allowedPrefixes = typescriptStringEnums.Enum.values(IconComponent_1.IconPrefix).map(function (p) { return p + ":"; });
|
|
2340
|
-
this.iconPrefix = IconComponent_1.IconPrefix;
|
|
2341
|
-
}
|
|
2342
|
-
IconComponent_1 = IconComponent;
|
|
2343
|
-
Object.defineProperty(IconComponent.prototype, "icon", {
|
|
2344
|
-
get: function () {
|
|
2345
|
-
return this._icon;
|
|
2346
|
-
},
|
|
2347
|
-
set: function (iconName) {
|
|
2348
|
-
this._icon = iconName;
|
|
2349
|
-
if (!iconName) {
|
|
2350
|
-
this.errorMessage = 'icon is nil';
|
|
2351
|
-
this.prefix = undefined;
|
|
2352
|
-
return;
|
|
2353
|
-
}
|
|
2354
|
-
var colonIndex = iconName.indexOf(':');
|
|
2355
|
-
if (colonIndex > 0) {
|
|
2356
|
-
this.prefix = this.icon.slice(0, colonIndex);
|
|
2357
|
-
this.suffix = this.icon.slice(colonIndex + 1);
|
|
2358
|
-
}
|
|
2359
|
-
if (this.prefix) {
|
|
2360
|
-
this.errorMessage = "Unknown icon \"" + iconName + "\"";
|
|
2361
|
-
}
|
|
2362
|
-
this.errorMessage = "Unknown icon prefix, expected one of [" + this.allowedPrefixes.join(',') + "] got \"" + this.prefix + ":\"";
|
|
2363
|
-
},
|
|
2364
|
-
enumerable: true,
|
|
2365
|
-
configurable: true
|
|
2366
|
-
});
|
|
2367
|
-
var IconComponent_1;
|
|
2368
|
-
__decorate([
|
|
2369
|
-
core.Input(),
|
|
2370
|
-
__metadata("design:type", String),
|
|
2371
|
-
__metadata("design:paramtypes", [String])
|
|
2372
|
-
], IconComponent.prototype, "icon", null);
|
|
2373
|
-
IconComponent = IconComponent_1 = __decorate([
|
|
2374
|
-
core.Component({
|
|
2375
|
-
selector: 'aup-icon',
|
|
2376
|
-
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",
|
|
2377
|
-
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}"]
|
|
2378
|
-
})
|
|
2379
|
-
], IconComponent);
|
|
2380
|
-
return IconComponent;
|
|
2381
|
-
}());
|
|
2382
|
-
(function (IconComponent) {
|
|
2383
|
-
IconComponent.IconPrefix = typescriptStringEnums.Enum({
|
|
2384
|
-
SVG: 'svg',
|
|
2385
|
-
FONT_AWESOME: 'fa',
|
|
2386
|
-
MATERIAL: 'mat'
|
|
2387
|
-
});
|
|
2388
|
-
})(exports.ɵbk || (exports.ɵbk = {}));
|
|
2389
|
-
|
|
2390
1193
|
var NoopComponent = /** @class */ (function () {
|
|
2391
1194
|
function NoopComponent() {
|
|
2392
1195
|
}
|
|
@@ -2597,7 +1400,6 @@
|
|
|
2597
1400
|
typescriptUtilities.assert.isTruthy(host);
|
|
2598
1401
|
host[HEADER_CELL_RENDERER_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2599
1402
|
};
|
|
2600
|
-
// @Trace()
|
|
2601
1403
|
CellHeaderPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2602
1404
|
this.initialiseHeader(portalComponent, host.column);
|
|
2603
1405
|
};
|
|
@@ -2621,15 +1423,13 @@
|
|
|
2621
1423
|
ComponentCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2622
1424
|
host[CELL_RENDERER_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2623
1425
|
};
|
|
2624
|
-
// @Trace()
|
|
2625
1426
|
ComponentCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2626
1427
|
host[PORTAL_RENDERER_COMPONENT] = portalComponent;
|
|
2627
|
-
this.updateComponent(portalComponent, host.getRowData()
|
|
1428
|
+
this.updateComponent(portalComponent, host.getRowData());
|
|
2628
1429
|
};
|
|
2629
|
-
// @Trace()
|
|
2630
1430
|
ComponentCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2631
1431
|
if (host[PORTAL_RENDERER_COMPONENT]) {
|
|
2632
|
-
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData()
|
|
1432
|
+
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData());
|
|
2633
1433
|
}
|
|
2634
1434
|
};
|
|
2635
1435
|
return ComponentCellRendererPortalRef;
|
|
@@ -2671,7 +1471,6 @@
|
|
|
2671
1471
|
TemplateCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2672
1472
|
// don't care
|
|
2673
1473
|
};
|
|
2674
|
-
// @Trace()
|
|
2675
1474
|
TemplateCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2676
1475
|
host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());
|
|
2677
1476
|
host.fillCell = this.fillCell;
|
|
@@ -2862,8 +1661,7 @@
|
|
|
2862
1661
|
|
|
2863
1662
|
var noop = function () {
|
|
2864
1663
|
};
|
|
2865
|
-
var ɵ0
|
|
2866
|
-
var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol("aup-cell-renderer:row-data-cache");
|
|
1664
|
+
var ɵ0 = noop;
|
|
2867
1665
|
var ColumnModel = /** @class */ (function () {
|
|
2868
1666
|
function ColumnModel(columnId, defaults) {
|
|
2869
1667
|
this.columnId = columnId;
|
|
@@ -2954,66 +1752,24 @@
|
|
|
2954
1752
|
}());
|
|
2955
1753
|
var PropertyColumnModel = /** @class */ (function (_super) {
|
|
2956
1754
|
__extends(PropertyColumnModel, _super);
|
|
2957
|
-
function PropertyColumnModel(
|
|
2958
|
-
var _this = _super.call(this,
|
|
1755
|
+
function PropertyColumnModel(property, defaults) {
|
|
1756
|
+
var _this = _super.call(this, property.toString(), defaults) || this;
|
|
2959
1757
|
_this.property = property;
|
|
2960
1758
|
_this._format = function (value) { return value; };
|
|
2961
1759
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
2962
1760
|
return _this;
|
|
2963
1761
|
}
|
|
2964
|
-
PropertyColumnModel.prototype.cellRenderer = function (componentType
|
|
1762
|
+
PropertyColumnModel.prototype.cellRenderer = function (componentType) {
|
|
2965
1763
|
var _this = this;
|
|
2966
|
-
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData
|
|
2967
|
-
if (firstTime) {
|
|
2968
|
-
if (___default__default.isFunction(onComponentInitOrOptions)) {
|
|
2969
|
-
onComponentInitOrOptions(component);
|
|
2970
|
-
}
|
|
2971
|
-
else {
|
|
2972
|
-
if (___default__default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
2973
|
-
onComponentInitOrOptions.onComponentInit(component);
|
|
2974
|
-
}
|
|
2975
|
-
}
|
|
2976
|
-
}
|
|
1764
|
+
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData) {
|
|
2977
1765
|
component.value = _this._format(rowData.row[_this.property]);
|
|
2978
|
-
if (!___default__default.isFunction(onComponentInitOrOptions) && ___default__default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
2979
|
-
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
2980
|
-
}
|
|
2981
|
-
}));
|
|
2982
|
-
return this;
|
|
2983
|
-
};
|
|
2984
|
-
PropertyColumnModel.prototype.mutableCellRenderer = function (componentType, options) {
|
|
2985
|
-
var _this = this;
|
|
2986
|
-
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
2987
|
-
// keep a local copy most recent row value so it's available to teh
|
|
2988
|
-
// edit callback without having to add/remove subscribers all the time.
|
|
2989
|
-
component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
|
|
2990
|
-
var disableEditCallback = false;
|
|
2991
|
-
if (firstTime) {
|
|
2992
|
-
if (___default__default.isFunction(options === null || options === void 0 ? void 0 : options.onComponentInit)) {
|
|
2993
|
-
options.onComponentInit(component);
|
|
2994
|
-
}
|
|
2995
|
-
// install our edit callback
|
|
2996
|
-
component.onValueEdited(function (is, was) {
|
|
2997
|
-
if (!disableEditCallback) {
|
|
2998
|
-
options.onValueEdit(component[CELL_RENDERER_COMPONENT_ROW_CACHE], is, was);
|
|
2999
|
-
}
|
|
3000
|
-
});
|
|
3001
|
-
}
|
|
3002
|
-
// now push the value the component and disable the callback just incase the component misbehaves
|
|
3003
|
-
// and fires a value change during the operation.
|
|
3004
|
-
disableEditCallback = true;
|
|
3005
|
-
component.value = rowData.row[_this.property];
|
|
3006
|
-
disableEditCallback = false;
|
|
3007
|
-
if (!___default__default.isFunction(options) && ___default__default.isFunction(options === null || options === void 0 ? void 0 : options.onRowUpdate)) {
|
|
3008
|
-
options.onRowUpdate(component, rowData.row);
|
|
3009
|
-
}
|
|
3010
1766
|
}));
|
|
3011
1767
|
return this;
|
|
3012
1768
|
};
|
|
3013
|
-
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser,
|
|
1769
|
+
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
|
|
3014
1770
|
var _this = this;
|
|
3015
1771
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3016
|
-
var initialiser = ___default__default.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser :
|
|
1772
|
+
var initialiser = ___default__default.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3017
1773
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3018
1774
|
var formValueModel = editSession.form.pluck(_this.property);
|
|
3019
1775
|
if (validators) {
|
|
@@ -3038,8 +1794,8 @@
|
|
|
3038
1794
|
}(ColumnModel));
|
|
3039
1795
|
var ListPropertyColumnModel = /** @class */ (function (_super) {
|
|
3040
1796
|
__extends(ListPropertyColumnModel, _super);
|
|
3041
|
-
function ListPropertyColumnModel(
|
|
3042
|
-
var _this = _super.call(this,
|
|
1797
|
+
function ListPropertyColumnModel(property, defaults) {
|
|
1798
|
+
var _this = _super.call(this, property.toString(), defaults) || this;
|
|
3043
1799
|
_this.property = property;
|
|
3044
1800
|
_this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
|
|
3045
1801
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
@@ -3086,23 +1842,10 @@
|
|
|
3086
1842
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
3087
1843
|
return _this;
|
|
3088
1844
|
}
|
|
3089
|
-
CustomValueColumnModel.prototype.cellRenderer = function (componentType
|
|
1845
|
+
CustomValueColumnModel.prototype.cellRenderer = function (componentType) {
|
|
3090
1846
|
var _this = this;
|
|
3091
|
-
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData
|
|
3092
|
-
if (firstTime) {
|
|
3093
|
-
if (___default__default.isFunction(onComponentInitOrOptions)) {
|
|
3094
|
-
onComponentInitOrOptions(component);
|
|
3095
|
-
}
|
|
3096
|
-
else {
|
|
3097
|
-
if (___default__default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3098
|
-
onComponentInitOrOptions.onComponentInit(component);
|
|
3099
|
-
}
|
|
3100
|
-
}
|
|
3101
|
-
}
|
|
1847
|
+
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData) {
|
|
3102
1848
|
component.value = _this.getValue(rowData.row);
|
|
3103
|
-
if (!___default__default.isFunction(onComponentInitOrOptions) && ___default__default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
3104
|
-
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
3105
|
-
}
|
|
3106
1849
|
}));
|
|
3107
1850
|
return this;
|
|
3108
1851
|
};
|
|
@@ -3275,9 +2018,6 @@
|
|
|
3275
2018
|
this._editorSessions = new pectin.MutableListModel();
|
|
3276
2019
|
this.rowClassNamePredicates = [];
|
|
3277
2020
|
this._createForm = function (row) { return new pectin.DirtyTrackingForm(); };
|
|
3278
|
-
this.trackBy = function (index, item) {
|
|
3279
|
-
return _this.identityOf ? _this.identityOf(item) : index;
|
|
3280
|
-
};
|
|
3281
2021
|
this.identityOf = sourceOfTruth.identityOf;
|
|
3282
2022
|
var _a = pectin.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;
|
|
3283
2023
|
this._columnsById = chain(this._columns).indexBy('columnId');
|
|
@@ -3289,7 +2029,7 @@
|
|
|
3289
2029
|
this.dataSource = chain(this.sourceOfTruth).replaceAll(this.rowsBeingEdited);
|
|
3290
2030
|
this.firstEditableColumn = chain(this.columns).select(function (c) { return c.hasEditorPortal(); }).first();
|
|
3291
2031
|
this.hasColumnsWithRowSelectionExplicitlyEnabled = chain(this._columns).findIndex(function (column) { return column.isRowSelectionExplicitlyEnabled(); }).isGreaterThanOrEqualTo(0);
|
|
3292
|
-
this.addRowClass(
|
|
2032
|
+
this.addRowClass("enable-hover", function () { return _this.isRowSelectionEnabled(); });
|
|
3293
2033
|
}
|
|
3294
2034
|
TableModel_1 = TableModel;
|
|
3295
2035
|
TableModel.fromList = function (sourceOfTruth, builder) {
|
|
@@ -3304,6 +2044,12 @@
|
|
|
3304
2044
|
enumerable: true,
|
|
3305
2045
|
configurable: true
|
|
3306
2046
|
});
|
|
2047
|
+
TableModel.prototype.getTrackByFunction = function () {
|
|
2048
|
+
var _this = this;
|
|
2049
|
+
return function (index, item) {
|
|
2050
|
+
return _this.identityOf ? _this.identityOf(item) : index;
|
|
2051
|
+
};
|
|
2052
|
+
};
|
|
3307
2053
|
Object.defineProperty(TableModel.prototype, "columns", {
|
|
3308
2054
|
get: function () {
|
|
3309
2055
|
return this._columns.readonly;
|
|
@@ -3311,11 +2057,11 @@
|
|
|
3311
2057
|
enumerable: true,
|
|
3312
2058
|
configurable: true
|
|
3313
2059
|
});
|
|
3314
|
-
TableModel.prototype.pluck = function (property
|
|
3315
|
-
return this.addColumn(new PropertyColumnModel(
|
|
2060
|
+
TableModel.prototype.pluck = function (property) {
|
|
2061
|
+
return this.addColumn(new PropertyColumnModel(property, this));
|
|
3316
2062
|
};
|
|
3317
|
-
TableModel.prototype.pluckList = function (property
|
|
3318
|
-
return this.addColumn(new ListPropertyColumnModel(
|
|
2063
|
+
TableModel.prototype.pluckList = function (property) {
|
|
2064
|
+
return this.addColumn(new ListPropertyColumnModel(property, this));
|
|
3319
2065
|
};
|
|
3320
2066
|
TableModel.prototype.addSelectionColumn = function (selectionModel) {
|
|
3321
2067
|
pectin.assert.isNil(this.selectionColumnModel);
|
|
@@ -3329,9 +2075,6 @@
|
|
|
3329
2075
|
TableModel.prototype.addCustomColumn = function (columnId, dataAccessor) {
|
|
3330
2076
|
return this.addColumn(new CustomValueColumnModel(columnId, this, dataAccessor));
|
|
3331
2077
|
};
|
|
3332
|
-
TableModel.prototype.addComponentColumn = function (columnId, component, onComponentInitOrOptions) {
|
|
3333
|
-
return this.addColumn(new CustomValueColumnModel(columnId, this, function (row) { return row; })).cellRenderer(component, onComponentInitOrOptions);
|
|
3334
|
-
};
|
|
3335
2078
|
TableModel.prototype.addTemplateColumn = function (columnId) {
|
|
3336
2079
|
return this.addColumn(new CustomTemplateColumnModel(columnId, this));
|
|
3337
2080
|
};
|
|
@@ -3360,14 +2103,12 @@
|
|
|
3360
2103
|
}
|
|
3361
2104
|
return column;
|
|
3362
2105
|
};
|
|
3363
|
-
// removeColumn(column: ColumnModel<Row>) {
|
|
3364
|
-
//
|
|
3365
|
-
// }
|
|
3366
2106
|
TableModel.prototype.columnTextProperties = function (columnTextProperties) {
|
|
3367
2107
|
this._columnTextPropertiesLookup = columnTextProperties;
|
|
3368
2108
|
};
|
|
3369
2109
|
TableModel.prototype.getColumnTextProperties = function (column) {
|
|
3370
|
-
|
|
2110
|
+
var factory = this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
|
|
2111
|
+
return factory ? factory() : undefined;
|
|
3371
2112
|
};
|
|
3372
2113
|
TableModel.prototype.startEditSession = function (row) {
|
|
3373
2114
|
var _this = this;
|
|
@@ -3485,7 +2226,7 @@
|
|
|
3485
2226
|
TableComponent = __decorate([
|
|
3486
2227
|
core.Component({
|
|
3487
2228
|
selector: 'aup-table',
|
|
3488
|
-
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.
|
|
2229
|
+
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",
|
|
3489
2230
|
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]
|
|
3490
2231
|
}),
|
|
3491
2232
|
__metadata("design:paramtypes", [])
|
|
@@ -3668,63 +2409,6 @@
|
|
|
3668
2409
|
return TableHeaderCellRendererComponent;
|
|
3669
2410
|
}());
|
|
3670
2411
|
|
|
3671
|
-
var MenuItemData = /** @class */ (function () {
|
|
3672
|
-
function MenuItemData(factory, face) {
|
|
3673
|
-
this.factory = factory;
|
|
3674
|
-
this.face = face;
|
|
3675
|
-
}
|
|
3676
|
-
return MenuItemData;
|
|
3677
|
-
}());
|
|
3678
|
-
/**
|
|
3679
|
-
*
|
|
3680
|
-
*/
|
|
3681
|
-
var TableRowMenuComponent = /** @class */ (function (_super) {
|
|
3682
|
-
__extends(TableRowMenuComponent, _super);
|
|
3683
|
-
function TableRowMenuComponent() {
|
|
3684
|
-
var _this = _super.call(this) || this;
|
|
3685
|
-
_this.actions = [];
|
|
3686
|
-
_this.moreActions = [];
|
|
3687
|
-
return _this;
|
|
3688
|
-
}
|
|
3689
|
-
TableRowMenuComponent.prototype.registerAction = function (commandFactory, properties) {
|
|
3690
|
-
this.actions.push(new MenuItemData(commandFactory, properties));
|
|
3691
|
-
};
|
|
3692
|
-
TableRowMenuComponent.prototype.registerMoreAction = function (commandFactory, properties) {
|
|
3693
|
-
this.moreActions.push(new MenuItemData(commandFactory, properties));
|
|
3694
|
-
};
|
|
3695
|
-
TableRowMenuComponent.prototype.ngOnInit = function () {
|
|
3696
|
-
};
|
|
3697
|
-
TableRowMenuComponent.prototype.createMoreMenuCommand = function (item, value) {
|
|
3698
|
-
var _this = this;
|
|
3699
|
-
var when = pectin.Dsl.disposeWith(this).when;
|
|
3700
|
-
var command = item.factory.create(value);
|
|
3701
|
-
when(command.busy).becomesFalsey(function () {
|
|
3702
|
-
_this.closeMoreMenu();
|
|
3703
|
-
});
|
|
3704
|
-
return command;
|
|
3705
|
-
};
|
|
3706
|
-
TableRowMenuComponent.prototype.closeMoreMenu = function () {
|
|
3707
|
-
this.menu.closeMenu();
|
|
3708
|
-
};
|
|
3709
|
-
__decorate([
|
|
3710
|
-
core.Input(),
|
|
3711
|
-
__metadata("design:type", Object)
|
|
3712
|
-
], TableRowMenuComponent.prototype, "value", void 0);
|
|
3713
|
-
__decorate([
|
|
3714
|
-
core.ViewChild(menu.MatMenuTrigger),
|
|
3715
|
-
__metadata("design:type", menu.MatMenuTrigger)
|
|
3716
|
-
], TableRowMenuComponent.prototype, "menu", void 0);
|
|
3717
|
-
TableRowMenuComponent = __decorate([
|
|
3718
|
-
core.Component({
|
|
3719
|
-
selector: 'aup-table-row-menu',
|
|
3720
|
-
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 ",
|
|
3721
|
-
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
3722
|
-
}),
|
|
3723
|
-
__metadata("design:paramtypes", [])
|
|
3724
|
-
], TableRowMenuComponent);
|
|
3725
|
-
return TableRowMenuComponent;
|
|
3726
|
-
}(DisposableComponent));
|
|
3727
|
-
|
|
3728
2412
|
var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
3729
2413
|
__extends(VerticalFocusContainerComponent, _super);
|
|
3730
2414
|
function VerticalFocusContainerComponent(focusManager) {
|
|
@@ -3810,6 +2494,96 @@
|
|
|
3810
2494
|
return VerticalFocusContainerComponent;
|
|
3811
2495
|
}(FocusContainerComponent));
|
|
3812
2496
|
|
|
2497
|
+
var MultipleSelectInputComponent = /** @class */ (function (_super) {
|
|
2498
|
+
__extends(MultipleSelectInputComponent, _super);
|
|
2499
|
+
function MultipleSelectInputComponent() {
|
|
2500
|
+
var _this = _super.call(this) || this;
|
|
2501
|
+
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2502
|
+
return _this;
|
|
2503
|
+
}
|
|
2504
|
+
MultipleSelectInputComponent.prototype.ngOnInit = function () {
|
|
2505
|
+
};
|
|
2506
|
+
__decorate([
|
|
2507
|
+
core.Input(), pectin.TrackExternal(),
|
|
2508
|
+
__metadata("design:type", pectin.ListModel)
|
|
2509
|
+
], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
|
|
2510
|
+
__decorate([
|
|
2511
|
+
core.Input(), pectin.StoreInListModel('optionsModel'),
|
|
2512
|
+
__metadata("design:type", Array)
|
|
2513
|
+
], MultipleSelectInputComponent.prototype, "options", void 0);
|
|
2514
|
+
__decorate([
|
|
2515
|
+
core.Input(),
|
|
2516
|
+
__metadata("design:type", Object)
|
|
2517
|
+
], MultipleSelectInputComponent.prototype, "optionLabel", void 0);
|
|
2518
|
+
__decorate([
|
|
2519
|
+
core.Input(),
|
|
2520
|
+
__metadata("design:type", Boolean)
|
|
2521
|
+
], MultipleSelectInputComponent.prototype, "allowNil", void 0);
|
|
2522
|
+
__decorate([
|
|
2523
|
+
core.ContentChild('optionTemplate'),
|
|
2524
|
+
__metadata("design:type", core.TemplateRef)
|
|
2525
|
+
], MultipleSelectInputComponent.prototype, "optionTemplateRef", void 0);
|
|
2526
|
+
__decorate([
|
|
2527
|
+
core.ContentChild('nilOptionTemplate'),
|
|
2528
|
+
__metadata("design:type", core.TemplateRef)
|
|
2529
|
+
], MultipleSelectInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
2530
|
+
__decorate([
|
|
2531
|
+
core.Input(),
|
|
2532
|
+
__metadata("design:type", Function)
|
|
2533
|
+
], MultipleSelectInputComponent.prototype, "optionLabelFormat", void 0);
|
|
2534
|
+
MultipleSelectInputComponent = __decorate([
|
|
2535
|
+
core.Component({
|
|
2536
|
+
selector: 'aup-multiple-select-input',
|
|
2537
|
+
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",
|
|
2538
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2539
|
+
}),
|
|
2540
|
+
__metadata("design:paramtypes", [])
|
|
2541
|
+
], MultipleSelectInputComponent);
|
|
2542
|
+
return MultipleSelectInputComponent;
|
|
2543
|
+
}(AbstractListInputComponent));
|
|
2544
|
+
|
|
2545
|
+
var IconComponent = /** @class */ (function () {
|
|
2546
|
+
function IconComponent() {
|
|
2547
|
+
}
|
|
2548
|
+
Object.defineProperty(IconComponent.prototype, "icon", {
|
|
2549
|
+
get: function () {
|
|
2550
|
+
return this._icon;
|
|
2551
|
+
},
|
|
2552
|
+
set: function (iconName) {
|
|
2553
|
+
this._icon = iconName;
|
|
2554
|
+
if (!iconName) {
|
|
2555
|
+
this.errorMessage = 'icon is nil';
|
|
2556
|
+
this.prefix = undefined;
|
|
2557
|
+
return;
|
|
2558
|
+
}
|
|
2559
|
+
var colonIndex = iconName.indexOf(':');
|
|
2560
|
+
if (colonIndex > 0) {
|
|
2561
|
+
this.prefix = this.icon.slice(0, colonIndex);
|
|
2562
|
+
this.suffix = this.icon.slice(colonIndex + 1);
|
|
2563
|
+
}
|
|
2564
|
+
if (this.prefix) {
|
|
2565
|
+
this.errorMessage = "Unknown icon \"" + iconName + "\"";
|
|
2566
|
+
}
|
|
2567
|
+
this.errorMessage = "Unknown icon prefix \"" + this.prefix + "\"";
|
|
2568
|
+
},
|
|
2569
|
+
enumerable: true,
|
|
2570
|
+
configurable: true
|
|
2571
|
+
});
|
|
2572
|
+
__decorate([
|
|
2573
|
+
core.Input(),
|
|
2574
|
+
__metadata("design:type", String),
|
|
2575
|
+
__metadata("design:paramtypes", [String])
|
|
2576
|
+
], IconComponent.prototype, "icon", null);
|
|
2577
|
+
IconComponent = __decorate([
|
|
2578
|
+
core.Component({
|
|
2579
|
+
selector: 'aup-icon',
|
|
2580
|
+
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",
|
|
2581
|
+
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}"]
|
|
2582
|
+
})
|
|
2583
|
+
], IconComponent);
|
|
2584
|
+
return IconComponent;
|
|
2585
|
+
}());
|
|
2586
|
+
|
|
3813
2587
|
var ComponentsModule = /** @class */ (function () {
|
|
3814
2588
|
function ComponentsModule(faIconLibrary) {
|
|
3815
2589
|
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
@@ -3828,8 +2602,6 @@
|
|
|
3828
2602
|
TextInputComponent,
|
|
3829
2603
|
PasswordInputComponent,
|
|
3830
2604
|
SelectInputComponent,
|
|
3831
|
-
MultipleSelectInputComponent,
|
|
3832
|
-
AutocompleteInputComponent,
|
|
3833
2605
|
CheckboxInputComponent,
|
|
3834
2606
|
ScrollContainerComponent,
|
|
3835
2607
|
NoopComponent,
|
|
@@ -3849,19 +2621,9 @@
|
|
|
3849
2621
|
SelectHeaderCellRendererComponent,
|
|
3850
2622
|
DefaultHeaderCellRendererComponent,
|
|
3851
2623
|
TableHeaderCellRendererComponent,
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
ToolBarComponent,
|
|
3856
|
-
CommandComponent,
|
|
3857
|
-
PopupMenuComponent,
|
|
3858
|
-
CommandGroupComponent,
|
|
3859
|
-
CommandFaceComponent,
|
|
3860
|
-
MoreMenuComponent,
|
|
3861
|
-
SeparatorComponent,
|
|
3862
|
-
FlexComponent,
|
|
3863
|
-
CommandGroupMenuRendererComponent,
|
|
3864
|
-
CommandGroupRendererComponent
|
|
2624
|
+
MultipleSelectInputComponent,
|
|
2625
|
+
IconComponent,
|
|
2626
|
+
SectionHeaderComponent
|
|
3865
2627
|
],
|
|
3866
2628
|
imports: [
|
|
3867
2629
|
common.CommonModule,
|
|
@@ -3879,10 +2641,7 @@
|
|
|
3879
2641
|
portal.PortalModule,
|
|
3880
2642
|
scrolling.CdkScrollableModule,
|
|
3881
2643
|
angularFontawesome.FontAwesomeModule,
|
|
3882
|
-
tooltip.MatTooltipModule
|
|
3883
|
-
autocomplete.MatAutocompleteModule,
|
|
3884
|
-
menu.MatMenuModule,
|
|
3885
|
-
divider.MatDividerModule
|
|
2644
|
+
tooltip.MatTooltipModule
|
|
3886
2645
|
],
|
|
3887
2646
|
exports: [
|
|
3888
2647
|
NumberInputComponent,
|
|
@@ -3891,8 +2650,6 @@
|
|
|
3891
2650
|
PasswordInputComponent,
|
|
3892
2651
|
CheckboxInputComponent,
|
|
3893
2652
|
SelectInputComponent,
|
|
3894
|
-
MultipleSelectInputComponent,
|
|
3895
|
-
AutocompleteInputComponent,
|
|
3896
2653
|
ScrollContainerComponent,
|
|
3897
2654
|
NoopComponent,
|
|
3898
2655
|
SwitchCaseComponent,
|
|
@@ -3905,20 +2662,12 @@
|
|
|
3905
2662
|
TableComponent,
|
|
3906
2663
|
EditRowControls,
|
|
3907
2664
|
ColumnTemplateDirective,
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
CommandGroupComponent,
|
|
3912
|
-
ToolBarComponent,
|
|
3913
|
-
CommandComponent,
|
|
3914
|
-
PopupMenuComponent,
|
|
3915
|
-
CommandFaceComponent,
|
|
3916
|
-
MoreMenuComponent,
|
|
3917
|
-
SeparatorComponent,
|
|
3918
|
-
FlexComponent
|
|
2665
|
+
MultipleSelectInputComponent,
|
|
2666
|
+
IconComponent,
|
|
2667
|
+
SectionHeaderComponent
|
|
3919
2668
|
],
|
|
3920
2669
|
providers: [
|
|
3921
|
-
FocusBindingFactory
|
|
2670
|
+
FocusBindingFactory,
|
|
3922
2671
|
]
|
|
3923
2672
|
}),
|
|
3924
2673
|
__metadata("design:paramtypes", [angularFontawesome.FaIconLibrary])
|
|
@@ -3997,7 +2746,7 @@
|
|
|
3997
2746
|
core.Component({
|
|
3998
2747
|
selector: 'aup-activity-actions',
|
|
3999
2748
|
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",
|
|
4000
|
-
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}.
|
|
2749
|
+
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}"]
|
|
4001
2750
|
})
|
|
4002
2751
|
], ActivityActionsComponent);
|
|
4003
2752
|
return ActivityActionsComponent;
|
|
@@ -4009,27 +2758,13 @@
|
|
|
4009
2758
|
function Activity() {
|
|
4010
2759
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
4011
2760
|
_this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
|
|
4012
|
-
_this._focusedModel = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
4013
2761
|
_this.class = 'aup-activity';
|
|
4014
2762
|
return _this;
|
|
4015
2763
|
}
|
|
4016
|
-
Object.defineProperty(Activity.prototype, "isFocused", {
|
|
4017
|
-
get: function () {
|
|
4018
|
-
return this._focusedModel.value;
|
|
4019
|
-
},
|
|
4020
|
-
enumerable: true,
|
|
4021
|
-
configurable: true
|
|
4022
|
-
});
|
|
4023
2764
|
Activity.prototype.initialise = function (nestedInteractionContext, activityContext) {
|
|
4024
|
-
var _this = this;
|
|
4025
|
-
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when;
|
|
4026
2765
|
typescriptUtilities.assert.isNil(this._activityContext);
|
|
4027
2766
|
this._activityContext = activityContext;
|
|
4028
2767
|
this._interactionContext = nestedInteractionContext;
|
|
4029
|
-
this._focusedModel.setDelegate(activityContext.focused);
|
|
4030
|
-
when(this._focusedModel).becomesTruthy(function () {
|
|
4031
|
-
_this.onActivityReady();
|
|
4032
|
-
});
|
|
4033
2768
|
};
|
|
4034
2769
|
Object.defineProperty(Activity.prototype, "interactionContext", {
|
|
4035
2770
|
get: function () {
|
|
@@ -4055,13 +2790,6 @@
|
|
|
4055
2790
|
enumerable: true,
|
|
4056
2791
|
configurable: true
|
|
4057
2792
|
});
|
|
4058
|
-
Object.defineProperty(Activity.prototype, "focused", {
|
|
4059
|
-
get: function () {
|
|
4060
|
-
return this._focusedModel.readonly;
|
|
4061
|
-
},
|
|
4062
|
-
enumerable: true,
|
|
4063
|
-
configurable: true
|
|
4064
|
-
});
|
|
4065
2793
|
Activity.prototype.busyWhile = function (busyModel) {
|
|
4066
2794
|
this._busyModel.setDelegate(busyModel);
|
|
4067
2795
|
};
|
|
@@ -4075,11 +2803,6 @@
|
|
|
4075
2803
|
core.HostBinding('class'),
|
|
4076
2804
|
__metadata("design:type", Object)
|
|
4077
2805
|
], Activity.prototype, "class", void 0);
|
|
4078
|
-
__decorate([
|
|
4079
|
-
core.HostBinding('attr.focused'),
|
|
4080
|
-
__metadata("design:type", Object),
|
|
4081
|
-
__metadata("design:paramtypes", [])
|
|
4082
|
-
], Activity.prototype, "isFocused", null);
|
|
4083
2806
|
return Activity;
|
|
4084
2807
|
}(DisposableComponent));
|
|
4085
2808
|
|
|
@@ -4218,7 +2941,6 @@
|
|
|
4218
2941
|
this.onComplete = onComplete;
|
|
4219
2942
|
this._complete = false;
|
|
4220
2943
|
this.deferredResult = pectin.Deferred.defer();
|
|
4221
|
-
this.focusedModel = new pectin.MutableValueModel();
|
|
4222
2944
|
}
|
|
4223
2945
|
ActivityRef.prototype.isActivityRealised = function () {
|
|
4224
2946
|
return !!this._activity;
|
|
@@ -4234,16 +2956,6 @@
|
|
|
4234
2956
|
enumerable: true,
|
|
4235
2957
|
configurable: true
|
|
4236
2958
|
});
|
|
4237
|
-
ActivityRef.prototype.setFocused = function (focused) {
|
|
4238
|
-
this.focusedModel.value = focused;
|
|
4239
|
-
};
|
|
4240
|
-
Object.defineProperty(ActivityRef.prototype, "focused", {
|
|
4241
|
-
get: function () {
|
|
4242
|
-
return this.focusedModel.value;
|
|
4243
|
-
},
|
|
4244
|
-
enumerable: true,
|
|
4245
|
-
configurable: true
|
|
4246
|
-
});
|
|
4247
2959
|
ActivityRef.prototype.notifyActivityCreated = function (activity, nestedInteractionContext) {
|
|
4248
2960
|
pectin.assert.isNil(this._activity);
|
|
4249
2961
|
this._activity = activity;
|
|
@@ -4254,8 +2966,7 @@
|
|
|
4254
2966
|
},
|
|
4255
2967
|
onCancel: function (error) {
|
|
4256
2968
|
self.finishActivity(function (deferred) { return deferred.reject(error); });
|
|
4257
|
-
}
|
|
4258
|
-
focused: this.focusedModel.readonly
|
|
2969
|
+
}
|
|
4259
2970
|
});
|
|
4260
2971
|
};
|
|
4261
2972
|
ActivityRef.prototype.finishActivity = function (resolveOrReject) {
|
|
@@ -4293,7 +3004,7 @@
|
|
|
4293
3004
|
},
|
|
4294
3005
|
set: function (activityRef) {
|
|
4295
3006
|
if (this.activityRef && !this.activityRef.isComplete()) {
|
|
4296
|
-
typescriptUtilities.lang.illegalState(
|
|
3007
|
+
typescriptUtilities.lang.illegalState("changing activity before previous one has completed");
|
|
4297
3008
|
}
|
|
4298
3009
|
this._activityRef = activityRef;
|
|
4299
3010
|
this.loadActivity(activityRef);
|
|
@@ -4356,9 +3067,8 @@
|
|
|
4356
3067
|
function ActivityContainerComponent() {
|
|
4357
3068
|
var _this = _super.call(this) || this;
|
|
4358
3069
|
_this.dynamicHeight = false;
|
|
4359
|
-
_this.
|
|
3070
|
+
_this.activityTabs = [];
|
|
4360
3071
|
_this.garbage = new pectin.GarbageCollector();
|
|
4361
|
-
_this.inAnimation = new pectin.MutableValueModel(false);
|
|
4362
3072
|
return _this;
|
|
4363
3073
|
}
|
|
4364
3074
|
ActivityContainerComponent.prototype.ngOnInit = function () {
|
|
@@ -4396,7 +3106,6 @@
|
|
|
4396
3106
|
ActivityContainerComponent.prototype.registerDisposable = function (disposable) {
|
|
4397
3107
|
return this.garbage.registerDisposable(disposable);
|
|
4398
3108
|
};
|
|
4399
|
-
// @Trace()
|
|
4400
3109
|
ActivityContainerComponent.prototype.dispose = function () {
|
|
4401
3110
|
// TODO: think about auto cancelling any outstanding activity on dispose.
|
|
4402
3111
|
// See NavigationState.Navigating for a use-case.
|
|
@@ -4407,7 +3116,7 @@
|
|
|
4407
3116
|
if (!this.isActive()) {
|
|
4408
3117
|
typescriptUtilities.lang.illegalState('no activity in progress');
|
|
4409
3118
|
}
|
|
4410
|
-
return ___default__default.findLast(this.
|
|
3119
|
+
return ___default__default.findLast(this.activityTabs, function (tab) { return !tab.isComplete(); });
|
|
4411
3120
|
};
|
|
4412
3121
|
/**
|
|
4413
3122
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
@@ -4446,14 +3155,14 @@
|
|
|
4446
3155
|
});
|
|
4447
3156
|
this.launchActivity(activityRef);
|
|
4448
3157
|
// if this is the first activity let the interaction service know.
|
|
4449
|
-
if (this.
|
|
3158
|
+
if (this.activityTabs.length === 1) {
|
|
4450
3159
|
// console.log('Now active!!!');
|
|
4451
3160
|
this.interactionServiceApi.notifyActive(this);
|
|
4452
3161
|
}
|
|
4453
3162
|
return activityRef.activityResult;
|
|
4454
3163
|
};
|
|
4455
3164
|
ActivityContainerComponent.prototype.getActiveActivityCount = function () {
|
|
4456
|
-
return this.
|
|
3165
|
+
return this.activityTabs.filter(function (ref) { return !ref.isComplete(); }).length;
|
|
4457
3166
|
};
|
|
4458
3167
|
/**
|
|
4459
3168
|
* Checks if this interaction context has finished an is in the process of waiting
|
|
@@ -4480,7 +3189,7 @@
|
|
|
4480
3189
|
// Without this our animation done wasn't called when a single
|
|
4481
3190
|
// new activity followed a single tab activity (since we're tracking
|
|
4482
3191
|
// by activity index)
|
|
4483
|
-
this.
|
|
3192
|
+
this.activityTabs = [];
|
|
4484
3193
|
var promise = this.interactionServiceApi.notifyFinished(this);
|
|
4485
3194
|
this._deferredCleanUp = promise
|
|
4486
3195
|
.finally(function () {
|
|
@@ -4490,15 +3199,14 @@
|
|
|
4490
3199
|
};
|
|
4491
3200
|
// @Trace()
|
|
4492
3201
|
ActivityContainerComponent.prototype.launchActivity = function (activityRef) {
|
|
4493
|
-
var cleanedTabs = this.
|
|
4494
|
-
this.
|
|
3202
|
+
var cleanedTabs = this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
|
|
3203
|
+
this.activityTabs = cleanedTabs.concat(activityRef);
|
|
4495
3204
|
this.synchroniseSelectedTabIndex();
|
|
4496
3205
|
};
|
|
4497
3206
|
ActivityContainerComponent.prototype.activityIndex = function (index, activityRef) {
|
|
4498
3207
|
return index;
|
|
4499
3208
|
};
|
|
4500
3209
|
;
|
|
4501
|
-
// @Trace()
|
|
4502
3210
|
ActivityContainerComponent.prototype.onAnimationFinished = function () {
|
|
4503
3211
|
if (this.onAnimationFinishedJob) {
|
|
4504
3212
|
this.onAnimationFinishedJob();
|
|
@@ -4508,21 +3216,15 @@
|
|
|
4508
3216
|
/**
|
|
4509
3217
|
* Synchronises the selected tab index.
|
|
4510
3218
|
*/
|
|
4511
|
-
// @Trace()
|
|
4512
3219
|
ActivityContainerComponent.prototype.synchroniseSelectedTabIndex = function () {
|
|
4513
3220
|
var _this = this;
|
|
4514
3221
|
var previousIndex = this.tabs.selectedIndex;
|
|
4515
3222
|
var newIndex = this.getActiveActivityCount() - 1;
|
|
4516
3223
|
if (previousIndex !== newIndex) {
|
|
4517
|
-
this.inAnimation.value = true;
|
|
4518
|
-
this.activityRefs[newIndex].setFocused(false);
|
|
4519
3224
|
this.tabs.selectedIndex = newIndex;
|
|
4520
3225
|
this.onAnimationFinishedJob = function () {
|
|
4521
|
-
_this.
|
|
4522
|
-
_this.
|
|
4523
|
-
_this.activityRefs.forEach(function (ref, index) {
|
|
4524
|
-
ref.setFocused(index === newIndex);
|
|
4525
|
-
});
|
|
3226
|
+
_this.getSelectedOutlet().component.onActivityReady();
|
|
3227
|
+
_this.activityTabs = _this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
|
|
4526
3228
|
};
|
|
4527
3229
|
}
|
|
4528
3230
|
};
|
|
@@ -4530,10 +3232,6 @@
|
|
|
4530
3232
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
4531
3233
|
};
|
|
4532
3234
|
// @Trace()
|
|
4533
|
-
ActivityContainerComponent.prototype.getSelectedTabIndex = function () {
|
|
4534
|
-
return this.tabs.selectedIndex;
|
|
4535
|
-
};
|
|
4536
|
-
// @Trace()
|
|
4537
3235
|
ActivityContainerComponent.prototype.triggerTabSynchronisation = function () {
|
|
4538
3236
|
var _this = this;
|
|
4539
3237
|
if (this.syncSelectedTabTimeout) {
|
|
@@ -4556,10 +3254,16 @@
|
|
|
4556
3254
|
core.ViewChildren(ActivityOutletComponent),
|
|
4557
3255
|
__metadata("design:type", core.QueryList)
|
|
4558
3256
|
], ActivityContainerComponent.prototype, "activityOutlets", void 0);
|
|
3257
|
+
__decorate([
|
|
3258
|
+
pectin.Trace(),
|
|
3259
|
+
__metadata("design:type", Function),
|
|
3260
|
+
__metadata("design:paramtypes", []),
|
|
3261
|
+
__metadata("design:returntype", void 0)
|
|
3262
|
+
], ActivityContainerComponent.prototype, "dispose", null);
|
|
4559
3263
|
ActivityContainerComponent = __decorate([
|
|
4560
3264
|
core.Component({
|
|
4561
3265
|
selector: 'aup-activity-container',
|
|
4562
|
-
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let
|
|
3266
|
+
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",
|
|
4563
3267
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4564
3268
|
}),
|
|
4565
3269
|
__metadata("design:paramtypes", [])
|
|
@@ -4604,7 +3308,7 @@
|
|
|
4604
3308
|
}());
|
|
4605
3309
|
|
|
4606
3310
|
var inplaceMonitorCount = 0;
|
|
4607
|
-
exports.ɵ
|
|
3311
|
+
exports.ɵbv = /** @class */ (function () {
|
|
4608
3312
|
function InteractionService(modelInteractionContextFactory) {
|
|
4609
3313
|
this.modelInteractionContextFactory = modelInteractionContextFactory;
|
|
4610
3314
|
this.garbage = new pectin.GarbageCollector();
|
|
@@ -4749,7 +3453,7 @@
|
|
|
4749
3453
|
return ApiAdapter;
|
|
4750
3454
|
}());
|
|
4751
3455
|
InteractionService.ApiAdapter = ApiAdapter;
|
|
4752
|
-
})(exports.ɵ
|
|
3456
|
+
})(exports.ɵbv || (exports.ɵbv = {}));
|
|
4753
3457
|
|
|
4754
3458
|
var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
|
|
4755
3459
|
__extends(InPlaceInteractionContextComponent, _super);
|
|
@@ -4807,7 +3511,7 @@
|
|
|
4807
3511
|
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
4808
3512
|
};
|
|
4809
3513
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
4810
|
-
{ type: exports.ɵ
|
|
3514
|
+
{ type: exports.ɵbv },
|
|
4811
3515
|
{ type: undefined, decorators: [{ type: core.Inject, args: [tabs.MAT_TABS_CONFIG,] }, { type: core.Optional }] }
|
|
4812
3516
|
]; };
|
|
4813
3517
|
__decorate([
|
|
@@ -4825,7 +3529,7 @@
|
|
|
4825
3529
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4826
3530
|
}),
|
|
4827
3531
|
__param(1, core.Inject(tabs.MAT_TABS_CONFIG)), __param(1, core.Optional()),
|
|
4828
|
-
__metadata("design:paramtypes", [exports.ɵ
|
|
3532
|
+
__metadata("design:paramtypes", [exports.ɵbv, Object])
|
|
4829
3533
|
], InPlaceInteractionContextComponent);
|
|
4830
3534
|
return InPlaceInteractionContextComponent;
|
|
4831
3535
|
}(DisposableComponent));
|
|
@@ -5364,7 +4068,7 @@
|
|
|
5364
4068
|
AlertDialogComponent
|
|
5365
4069
|
],
|
|
5366
4070
|
providers: [
|
|
5367
|
-
exports.ɵ
|
|
4071
|
+
exports.ɵbv
|
|
5368
4072
|
// {
|
|
5369
4073
|
// provide: MAT_TABS_CONFIG, useValue: { animationDuration: "2s" }
|
|
5370
4074
|
// }
|
|
@@ -5630,9 +4334,6 @@
|
|
|
5630
4334
|
var _this = _super.call(this) || this;
|
|
5631
4335
|
_this.visitModel = new pectin.MutableValueModel();
|
|
5632
4336
|
_this._inVisitUpdate = new pectin.Guard();
|
|
5633
|
-
_this._active = new pectin.MutableValueModel(false);
|
|
5634
|
-
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
5635
|
-
when(_this._active).becomesTruthy(function () { return _this.onPlaceReady(); });
|
|
5636
4337
|
return _this;
|
|
5637
4338
|
}
|
|
5638
4339
|
PlaceComponent_1 = PlaceComponent;
|
|
@@ -5642,7 +4343,7 @@
|
|
|
5642
4343
|
pectin.assert.isNil(this.visitModel.value);
|
|
5643
4344
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
5644
4345
|
this.visitModel.value = visit;
|
|
5645
|
-
pectin.DebugContext.
|
|
4346
|
+
pectin.DebugContext.get(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
5646
4347
|
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
5647
4348
|
when.valueOf(this.visitModel).changes(function (current, previous) {
|
|
5648
4349
|
notifyVisitChanged(current, previous);
|
|
@@ -5690,19 +4391,6 @@
|
|
|
5690
4391
|
enumerable: true,
|
|
5691
4392
|
configurable: true
|
|
5692
4393
|
});
|
|
5693
|
-
Object.defineProperty(PlaceComponent.prototype, "active", {
|
|
5694
|
-
get: function () {
|
|
5695
|
-
return this._active.readonly;
|
|
5696
|
-
},
|
|
5697
|
-
enumerable: true,
|
|
5698
|
-
configurable: true
|
|
5699
|
-
});
|
|
5700
|
-
/**
|
|
5701
|
-
* Called by the router when the place is ready to interact after any animations have run.
|
|
5702
|
-
*/
|
|
5703
|
-
PlaceComponent.prototype._notifyActive = function (active) {
|
|
5704
|
-
this._active.value = active;
|
|
5705
|
-
};
|
|
5706
4394
|
PlaceComponent.prototype.onPlaceReady = function () {
|
|
5707
4395
|
};
|
|
5708
4396
|
var PlaceComponent_1;
|
|
@@ -6502,7 +5190,7 @@
|
|
|
6502
5190
|
return PopStateNavigation;
|
|
6503
5191
|
}(AbstractPopStateNavigation));
|
|
6504
5192
|
|
|
6505
|
-
exports.ɵ
|
|
5193
|
+
exports.ɵby = /** @class */ (function () {
|
|
6506
5194
|
function PlaceHistory() {
|
|
6507
5195
|
this._archive = new Map();
|
|
6508
5196
|
this.placeHistoryDepth = 4;
|
|
@@ -6639,7 +5327,7 @@
|
|
|
6639
5327
|
// }
|
|
6640
5328
|
//
|
|
6641
5329
|
// }
|
|
6642
|
-
})(exports.ɵ
|
|
5330
|
+
})(exports.ɵby || (exports.ɵby = {}));
|
|
6643
5331
|
|
|
6644
5332
|
exports.UrlSnapshot = /** @class */ (function () {
|
|
6645
5333
|
// TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
|
|
@@ -6803,6 +5491,75 @@
|
|
|
6803
5491
|
return UrlService;
|
|
6804
5492
|
}());
|
|
6805
5493
|
|
|
5494
|
+
var Visit = /** @class */ (function () {
|
|
5495
|
+
function Visit(placeDefinition, visitParameters) {
|
|
5496
|
+
if (visitParameters === void 0) { visitParameters = {}; }
|
|
5497
|
+
this.placeDefinition = placeDefinition;
|
|
5498
|
+
this.visitParameters = visitParameters;
|
|
5499
|
+
}
|
|
5500
|
+
// @Trace()
|
|
5501
|
+
Visit.prototype.getRouteId = function () {
|
|
5502
|
+
return this.placeDefinition.getRouteIdFrom(this);
|
|
5503
|
+
};
|
|
5504
|
+
// @Trace()
|
|
5505
|
+
Visit.prototype.hasRouteId = function () {
|
|
5506
|
+
return !___default.isNil(this.getRouteId());
|
|
5507
|
+
};
|
|
5508
|
+
/**
|
|
5509
|
+
* Returns the value of the place parameter with the specified name. The parameter
|
|
5510
|
+
* name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
|
|
5511
|
+
* same as the the ValueModel property name.
|
|
5512
|
+
* @param parameterName the field name of the property model or the `as` option if specified.
|
|
5513
|
+
*/
|
|
5514
|
+
Visit.prototype.getParameter = function (parameterName) {
|
|
5515
|
+
return this.visitParameters[parameterName];
|
|
5516
|
+
};
|
|
5517
|
+
// @Trace()
|
|
5518
|
+
Visit.prototype.hasParameter = function (parameterName) {
|
|
5519
|
+
return Object.keys(this.visitParameters).includes(parameterName);
|
|
5520
|
+
};
|
|
5521
|
+
Visit.prototype.replace = function (parameter, value) {
|
|
5522
|
+
var _a;
|
|
5523
|
+
return new Visit(this.placeDefinition, __assign(__assign({}, this.visitParameters), (_a = {}, _a[parameter.name] = value, _a)));
|
|
5524
|
+
};
|
|
5525
|
+
Visit.prototype.mergeRouteParameters = function (routeParams) {
|
|
5526
|
+
var _this = this;
|
|
5527
|
+
// todo: whitelist parameters.
|
|
5528
|
+
var routeParameterKeys = Object.keys(routeParams);
|
|
5529
|
+
var params = {};
|
|
5530
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (def) {
|
|
5531
|
+
if (def.isRouteId || def.isRouteParameter) {
|
|
5532
|
+
if (routeParameterKeys.includes(def.name)) {
|
|
5533
|
+
params[def.name] = routeParams[def.name];
|
|
5534
|
+
}
|
|
5535
|
+
}
|
|
5536
|
+
else {
|
|
5537
|
+
// copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the
|
|
5538
|
+
// defaults and remember sanitisation process.
|
|
5539
|
+
var value = _this.getParameter(def.name);
|
|
5540
|
+
if (_this.hasParameter(def.name)) {
|
|
5541
|
+
params[def.name] = value;
|
|
5542
|
+
}
|
|
5543
|
+
}
|
|
5544
|
+
});
|
|
5545
|
+
return new Visit(this.placeDefinition, params);
|
|
5546
|
+
};
|
|
5547
|
+
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
5548
|
+
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
5549
|
+
var sameRouteParameters = ___default.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
5550
|
+
return !samePlace || !sameRouteParameters;
|
|
5551
|
+
};
|
|
5552
|
+
Visit.prototype.hasChangedFrom = function (other) {
|
|
5553
|
+
var sameNonRouteParameters = ___default.isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
|
|
5554
|
+
return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
|
|
5555
|
+
};
|
|
5556
|
+
Visit.prototype.toDebugString = function () {
|
|
5557
|
+
var _this = this;
|
|
5558
|
+
return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(",");
|
|
5559
|
+
};
|
|
5560
|
+
return Visit;
|
|
5561
|
+
}());
|
|
5562
|
+
|
|
6806
5563
|
var PlaceRouter = /** @class */ (function (_super) {
|
|
6807
5564
|
__extends(PlaceRouter, _super);
|
|
6808
5565
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -6998,7 +5755,6 @@
|
|
|
6998
5755
|
enumerable: true,
|
|
6999
5756
|
configurable: true
|
|
7000
5757
|
});
|
|
7001
|
-
// @Trace()
|
|
7002
5758
|
PlaceRouter.prototype.pushVisitChangesToRoute = function (previous, next) {
|
|
7003
5759
|
return __awaiter(this, void 0, void 0, function () {
|
|
7004
5760
|
var _this = this;
|
|
@@ -7094,93 +5850,30 @@
|
|
|
7094
5850
|
PlaceRouter.ctorParameters = function () { return [
|
|
7095
5851
|
{ type: router.Router },
|
|
7096
5852
|
{ type: common.Location },
|
|
7097
|
-
{ type: exports.ɵ
|
|
5853
|
+
{ type: exports.ɵbv },
|
|
7098
5854
|
{ type: UrlService },
|
|
7099
|
-
{ type: exports.ɵ
|
|
5855
|
+
{ type: exports.ɵby }
|
|
7100
5856
|
]; };
|
|
7101
|
-
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵ
|
|
5857
|
+
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵbv), core.ɵɵinject(UrlService), core.ɵɵinject(exports.ɵby)); }, token: PlaceRouter, providedIn: "root" });
|
|
5858
|
+
__decorate([
|
|
5859
|
+
pectin.Trace(),
|
|
5860
|
+
__metadata("design:type", Function),
|
|
5861
|
+
__metadata("design:paramtypes", [Visit, Visit]),
|
|
5862
|
+
__metadata("design:returntype", Promise)
|
|
5863
|
+
], PlaceRouter.prototype, "pushVisitChangesToRoute", null);
|
|
7102
5864
|
PlaceRouter = __decorate([
|
|
7103
5865
|
core.Injectable({
|
|
7104
5866
|
providedIn: 'root'
|
|
7105
5867
|
}),
|
|
7106
5868
|
__metadata("design:paramtypes", [router.Router,
|
|
7107
5869
|
common.Location,
|
|
7108
|
-
exports.ɵ
|
|
5870
|
+
exports.ɵbv,
|
|
7109
5871
|
UrlService,
|
|
7110
|
-
exports.ɵ
|
|
5872
|
+
exports.ɵby])
|
|
7111
5873
|
], PlaceRouter);
|
|
7112
5874
|
return PlaceRouter;
|
|
7113
5875
|
}(pectin.GarbageCollector));
|
|
7114
5876
|
|
|
7115
|
-
var Visit = /** @class */ (function () {
|
|
7116
|
-
function Visit(placeDefinition, visitParameters) {
|
|
7117
|
-
if (visitParameters === void 0) { visitParameters = {}; }
|
|
7118
|
-
this.placeDefinition = placeDefinition;
|
|
7119
|
-
this.visitParameters = visitParameters;
|
|
7120
|
-
}
|
|
7121
|
-
// @Trace()
|
|
7122
|
-
Visit.prototype.getRouteId = function () {
|
|
7123
|
-
return this.placeDefinition.getRouteIdFrom(this);
|
|
7124
|
-
};
|
|
7125
|
-
// @Trace()
|
|
7126
|
-
Visit.prototype.hasRouteId = function () {
|
|
7127
|
-
return !___default.isNil(this.getRouteId());
|
|
7128
|
-
};
|
|
7129
|
-
/**
|
|
7130
|
-
* Returns the value of the place parameter with the specified name. The parameter
|
|
7131
|
-
* name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
|
|
7132
|
-
* same as the the ValueModel property name.
|
|
7133
|
-
* @param parameterName the field name of the property model or the `as` option if specified.
|
|
7134
|
-
*/
|
|
7135
|
-
Visit.prototype.getParameter = function (parameterName) {
|
|
7136
|
-
return this.visitParameters[parameterName];
|
|
7137
|
-
};
|
|
7138
|
-
// @Trace()
|
|
7139
|
-
Visit.prototype.hasParameter = function (parameterName) {
|
|
7140
|
-
return Object.keys(this.visitParameters).includes(parameterName);
|
|
7141
|
-
};
|
|
7142
|
-
Visit.prototype.replace = function (parameter, value) {
|
|
7143
|
-
var _a;
|
|
7144
|
-
return new Visit(this.placeDefinition, __assign(__assign({}, this.visitParameters), (_a = {}, _a[parameter.name] = value, _a)));
|
|
7145
|
-
};
|
|
7146
|
-
Visit.prototype.mergeRouteParameters = function (routeParams) {
|
|
7147
|
-
var _this = this;
|
|
7148
|
-
// todo: whitelist parameters.
|
|
7149
|
-
var routeParameterKeys = Object.keys(routeParams);
|
|
7150
|
-
var params = {};
|
|
7151
|
-
this.placeDefinition.getVisitParameterDefs().forEach(function (def) {
|
|
7152
|
-
if (def.isRouteId || def.isRouteParameter) {
|
|
7153
|
-
if (routeParameterKeys.includes(def.name)) {
|
|
7154
|
-
params[def.name] = routeParams[def.name];
|
|
7155
|
-
}
|
|
7156
|
-
}
|
|
7157
|
-
else {
|
|
7158
|
-
// copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the
|
|
7159
|
-
// defaults and remember sanitisation process.
|
|
7160
|
-
var value = _this.getParameter(def.name);
|
|
7161
|
-
if (_this.hasParameter(def.name)) {
|
|
7162
|
-
params[def.name] = value;
|
|
7163
|
-
}
|
|
7164
|
-
}
|
|
7165
|
-
});
|
|
7166
|
-
return new Visit(this.placeDefinition, params);
|
|
7167
|
-
};
|
|
7168
|
-
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
7169
|
-
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
7170
|
-
var sameRouteParameters = ___default.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
7171
|
-
return !samePlace || !sameRouteParameters;
|
|
7172
|
-
};
|
|
7173
|
-
Visit.prototype.hasChangedFrom = function (other) {
|
|
7174
|
-
var sameNonRouteParameters = ___default.isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
|
|
7175
|
-
return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
|
|
7176
|
-
};
|
|
7177
|
-
Visit.prototype.toDebugString = function () {
|
|
7178
|
-
var _this = this;
|
|
7179
|
-
return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(",");
|
|
7180
|
-
};
|
|
7181
|
-
return Visit;
|
|
7182
|
-
}());
|
|
7183
|
-
|
|
7184
5877
|
var AUP_PLACE_CONFIG = new core.InjectionToken('AUP_PLACE_CONFIG');
|
|
7185
5878
|
|
|
7186
5879
|
// Freezes the state of the components at the start of the animation.
|
|
@@ -7240,7 +5933,6 @@
|
|
|
7240
5933
|
_this._activePlaceModel = new pectin.MutableValueModel();
|
|
7241
5934
|
_this.initialPlaceIndex = null;
|
|
7242
5935
|
_this._isPushingVisitToRoute = new pectin.MutableValueModel(false);
|
|
7243
|
-
_this.isVeryFirstLoad = true;
|
|
7244
5936
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
7245
5937
|
_this.parentOutletModel = new pectin.MutableValueModel(parentOutlet);
|
|
7246
5938
|
var defaultPlaceAnimationOrder = chain(_this.parentOutletModel)
|
|
@@ -7249,9 +5941,8 @@
|
|
|
7249
5941
|
.pluckList('children')
|
|
7250
5942
|
.pluck('component');
|
|
7251
5943
|
var activatePlaceType = chain(_this.activePlaceModel).map(function (p) { return p.constructor; });
|
|
7252
|
-
_this.
|
|
7253
|
-
.otherwise(defaultPlaceAnimationOrder)
|
|
7254
|
-
_this.activePlaceAnimationPosition = _this.placesInAnimationOrder
|
|
5944
|
+
_this.placeAnimationOrder = chain(_this.customPlaceAnimationOrderModel)
|
|
5945
|
+
.otherwise(defaultPlaceAnimationOrder)
|
|
7255
5946
|
.reduce(function (placesInOrder) {
|
|
7256
5947
|
var placeIndex = 0;
|
|
7257
5948
|
if (activatePlaceType.value) {
|
|
@@ -7262,16 +5953,14 @@
|
|
|
7262
5953
|
}
|
|
7263
5954
|
return ___default.isNil(_this.initialPlaceIndex) ? 0 : placeIndex - _this.initialPlaceIndex;
|
|
7264
5955
|
}, { dependsOn: activatePlaceType });
|
|
7265
|
-
_this.animationSupported = _this.placesInAnimationOrder.count().isGreaterThan(0);
|
|
7266
|
-
_this.animationEnabled = valueOf.all(_this.animateModel, _this.animationSupported).areTruthy();
|
|
7267
5956
|
// Extract our visit model from the place router.
|
|
7268
5957
|
_this._activePlaceDefinition = chain(_this._activePlaceModel).pluck('placeDefinition');
|
|
7269
5958
|
_this.routerVisitModel = _this._activePlaceDefinition.findIn(chain(placeRouter.activeVisitsByPlaceDefinition));
|
|
7270
5959
|
_this.navigationInProgress = chain(_this.placeRouter.navigationInProgress);
|
|
7271
|
-
when(_this.navigationInProgress).becomesFalsey(function () {
|
|
5960
|
+
when.valueOf(_this.navigationInProgress).becomesFalsey(function () {
|
|
7272
5961
|
_this.checkStateAndInitialise();
|
|
7273
5962
|
});
|
|
7274
|
-
when(_this.outletActivated).becomesTruthy(function () {
|
|
5963
|
+
when.valueOf(_this.outletActivated).becomesTruthy(function () {
|
|
7275
5964
|
_this.checkStateAndInitialise();
|
|
7276
5965
|
});
|
|
7277
5966
|
chain(_this._activePlaceModel)
|
|
@@ -7284,7 +5973,7 @@
|
|
|
7284
5973
|
};
|
|
7285
5974
|
// @Trace()
|
|
7286
5975
|
PlaceOutletComponent.prototype.getAnimationOrder = function () {
|
|
7287
|
-
return this.
|
|
5976
|
+
return this.placeAnimationOrder.value;
|
|
7288
5977
|
};
|
|
7289
5978
|
Object.defineProperty(PlaceOutletComponent.prototype, "animationDuration", {
|
|
7290
5979
|
get: function () {
|
|
@@ -7295,10 +5984,7 @@
|
|
|
7295
5984
|
});
|
|
7296
5985
|
// @Trace()
|
|
7297
5986
|
PlaceOutletComponent.prototype.navigate = function (visit) {
|
|
7298
|
-
//
|
|
7299
|
-
// if (!place) {
|
|
7300
|
-
// lang.illegalState()
|
|
7301
|
-
// }
|
|
5987
|
+
// console.log({ activatedRoute: this._activatedRouteModel.value });
|
|
7302
5988
|
this.placeRouter.navigate(visit, {
|
|
7303
5989
|
relativeTo: this.parentOutlet ? this.parentOutlet.activatedRouteModel.value : null
|
|
7304
5990
|
});
|
|
@@ -7324,25 +6010,14 @@
|
|
|
7324
6010
|
enumerable: true,
|
|
7325
6011
|
configurable: true
|
|
7326
6012
|
});
|
|
6013
|
+
// @Trace()
|
|
7327
6014
|
PlaceOutletComponent.prototype.onOutletActivated = function (routerOutlet, place) {
|
|
7328
6015
|
this._activatedRouteModel.value = routerOutlet.activatedRoute;
|
|
7329
6016
|
this._activePlaceModel.value = place;
|
|
7330
|
-
this.validateAnimationState(place);
|
|
7331
6017
|
this.outletActivated.value = true;
|
|
7332
6018
|
this.checkStateAndInitialise();
|
|
7333
6019
|
};
|
|
7334
|
-
|
|
7335
|
-
if (this.animateModel.value) {
|
|
7336
|
-
if (this.placesInAnimationOrder.length < 1) {
|
|
7337
|
-
console.error('PlaceOutlet.animate === true but placeAnimationOrder has not been set. Animation is disabled.');
|
|
7338
|
-
}
|
|
7339
|
-
else {
|
|
7340
|
-
if (!this.placesInAnimationOrder.query().includes(place.placeDefinition.component)) {
|
|
7341
|
-
console.error("PlaceOutlet.animate === true but placeAnimationOrder doesn't contain " + place.placeDefinition.component.name + ".");
|
|
7342
|
-
}
|
|
7343
|
-
}
|
|
7344
|
-
}
|
|
7345
|
-
};
|
|
6020
|
+
// @Trace()
|
|
7346
6021
|
PlaceOutletComponent.prototype.onOutletDeactivated = function () {
|
|
7347
6022
|
this.outletActivated.value = false;
|
|
7348
6023
|
this._activePlaceModel.value = null;
|
|
@@ -7359,6 +6034,7 @@
|
|
|
7359
6034
|
this.initialisePlace(routerVisit, activePlace);
|
|
7360
6035
|
}
|
|
7361
6036
|
};
|
|
6037
|
+
// @Trace()
|
|
7362
6038
|
PlaceOutletComponent.prototype.initialisePlace = function (routerVisit, activePlace) {
|
|
7363
6039
|
var _this = this;
|
|
7364
6040
|
var visitModel = new pectin.MutableValueModel(routerVisit);
|
|
@@ -7366,18 +6042,9 @@
|
|
|
7366
6042
|
activePlace.initialiseVisit(routerVisit, function (current, previous) {
|
|
7367
6043
|
_this.pushVisitChangeToRoute(previous, current);
|
|
7368
6044
|
});
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
if (!this.animationEnabled.value || this.isVeryFirstLoad) {
|
|
7373
|
-
// if animation is disabled or this is the very first load then
|
|
7374
|
-
// we won't get our animation done callback so we finish the
|
|
7375
|
-
// process here and now.
|
|
7376
|
-
this.isVeryFirstLoad = false;
|
|
7377
|
-
finishPlaceLoad();
|
|
7378
|
-
}
|
|
7379
|
-
else {
|
|
7380
|
-
this.onAnimationFinishedJob = finishPlaceLoad;
|
|
6045
|
+
if (!this.animateModel.value) {
|
|
6046
|
+
// we're not animating so trigger any post animation callbacks now.
|
|
6047
|
+
this.animationDone();
|
|
7381
6048
|
}
|
|
7382
6049
|
var _a = pectin.Dsl.disposeWith(activePlace), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
|
|
7383
6050
|
when.valueOf(this.routerVisitModel)
|
|
@@ -7400,9 +6067,8 @@
|
|
|
7400
6067
|
};
|
|
7401
6068
|
// @Trace()
|
|
7402
6069
|
PlaceOutletComponent.prototype.animationDone = function () {
|
|
7403
|
-
if (this.
|
|
7404
|
-
this.
|
|
7405
|
-
this.onAnimationFinishedJob = undefined;
|
|
6070
|
+
if (this._activePlaceModel.value) {
|
|
6071
|
+
this._activePlaceModel.value.onPlaceReady();
|
|
7406
6072
|
}
|
|
7407
6073
|
};
|
|
7408
6074
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
@@ -7435,22 +6101,10 @@
|
|
|
7435
6101
|
core.ViewChild('routeOutlet', { static: true }),
|
|
7436
6102
|
__metadata("design:type", router.RouterOutlet)
|
|
7437
6103
|
], PlaceOutletComponent.prototype, "routerOut", void 0);
|
|
7438
|
-
__decorate([
|
|
7439
|
-
pectin.Trace(),
|
|
7440
|
-
__metadata("design:type", Function),
|
|
7441
|
-
__metadata("design:paramtypes", [router.RouterOutlet, exports.PlaceComponent]),
|
|
7442
|
-
__metadata("design:returntype", void 0)
|
|
7443
|
-
], PlaceOutletComponent.prototype, "onOutletActivated", null);
|
|
7444
|
-
__decorate([
|
|
7445
|
-
pectin.Trace(),
|
|
7446
|
-
__metadata("design:type", Function),
|
|
7447
|
-
__metadata("design:paramtypes", []),
|
|
7448
|
-
__metadata("design:returntype", void 0)
|
|
7449
|
-
], PlaceOutletComponent.prototype, "onOutletDeactivated", null);
|
|
7450
6104
|
PlaceOutletComponent = __decorate([
|
|
7451
6105
|
core.Component({
|
|
7452
6106
|
selector: 'aup-place-outlet',
|
|
7453
|
-
template: "<ng-container *ngIf=\"
|
|
6107
|
+
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",
|
|
7454
6108
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
7455
6109
|
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}"]
|
|
7456
6110
|
}),
|
|
@@ -7481,10 +6135,10 @@
|
|
|
7481
6135
|
_this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
|
|
7482
6136
|
return _this;
|
|
7483
6137
|
}
|
|
7484
|
-
AbstractPlaceNavigationComponent.prototype.
|
|
6138
|
+
AbstractPlaceNavigationComponent.prototype.getNav = function (placeDef) {
|
|
7485
6139
|
var navItem = placeDef.getPlaceData('nav');
|
|
7486
6140
|
return {
|
|
7487
|
-
|
|
6141
|
+
title: function () { return navItem ? navItem.title() : placeDef.searchPlaceData(['navTitle', 'title']); },
|
|
7488
6142
|
tooltip: function () { return navItem && navItem.tooltip ? navItem.tooltip() : placeDef.getPlaceData('navTooltip', null); },
|
|
7489
6143
|
icon: function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); }
|
|
7490
6144
|
};
|
|
@@ -7518,7 +6172,7 @@
|
|
|
7518
6172
|
__metadata("design:type", Function),
|
|
7519
6173
|
__metadata("design:paramtypes", [PlaceDefinition]),
|
|
7520
6174
|
__metadata("design:returntype", Object)
|
|
7521
|
-
], AbstractPlaceNavigationComponent.prototype, "
|
|
6175
|
+
], AbstractPlaceNavigationComponent.prototype, "getNav", null);
|
|
7522
6176
|
AbstractPlaceNavigationComponent = __decorate([
|
|
7523
6177
|
core.Component({
|
|
7524
6178
|
template: ''
|
|
@@ -7579,7 +6233,7 @@
|
|
|
7579
6233
|
ListPlaceNavComponent = __decorate([
|
|
7580
6234
|
core.Component({
|
|
7581
6235
|
selector: 'aup-list-place-nav',
|
|
7582
|
-
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]=\"
|
|
6236
|
+
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",
|
|
7583
6237
|
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)}"]
|
|
7584
6238
|
}),
|
|
7585
6239
|
__metadata("design:paramtypes", [PlaceRouter])
|
|
@@ -7587,6 +6241,25 @@
|
|
|
7587
6241
|
return ListPlaceNavComponent;
|
|
7588
6242
|
}(AbstractPlaceNavigationComponent));
|
|
7589
6243
|
|
|
6244
|
+
var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
6245
|
+
__extends(TabbedPlaceNavigationComponent, _super);
|
|
6246
|
+
function TabbedPlaceNavigationComponent(placeRouter) {
|
|
6247
|
+
return _super.call(this, placeRouter) || this;
|
|
6248
|
+
}
|
|
6249
|
+
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
6250
|
+
{ type: PlaceRouter }
|
|
6251
|
+
]; };
|
|
6252
|
+
TabbedPlaceNavigationComponent = __decorate([
|
|
6253
|
+
core.Component({
|
|
6254
|
+
selector: 'aup-tabbed-place-navigation',
|
|
6255
|
+
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",
|
|
6256
|
+
styles: [""]
|
|
6257
|
+
}),
|
|
6258
|
+
__metadata("design:paramtypes", [PlaceRouter])
|
|
6259
|
+
], TabbedPlaceNavigationComponent);
|
|
6260
|
+
return TabbedPlaceNavigationComponent;
|
|
6261
|
+
}(AbstractPlaceNavigationComponent));
|
|
6262
|
+
|
|
7590
6263
|
/**
|
|
7591
6264
|
* @example
|
|
7592
6265
|
* // Usage
|
|
@@ -7625,7 +6298,7 @@
|
|
|
7625
6298
|
* (at)Place({
|
|
7626
6299
|
* path: 'myPlace',
|
|
7627
6300
|
* data: {
|
|
7628
|
-
* nav: I18n.places.myPlace.nav
|
|
6301
|
+
* nav: I18n.places.myPlace.nav()
|
|
7629
6302
|
* }
|
|
7630
6303
|
* })
|
|
7631
6304
|
*/
|
|
@@ -7661,7 +6334,7 @@
|
|
|
7661
6334
|
SidePlaceNavigationComponent = __decorate([
|
|
7662
6335
|
core.Component({
|
|
7663
6336
|
selector: 'aup-side-place-navigation',
|
|
7664
|
-
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]=\"
|
|
6337
|
+
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",
|
|
7665
6338
|
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)}"]
|
|
7666
6339
|
}),
|
|
7667
6340
|
__metadata("design:paramtypes", [router.Router, PlaceRouter])
|
|
@@ -7669,25 +6342,6 @@
|
|
|
7669
6342
|
return SidePlaceNavigationComponent;
|
|
7670
6343
|
}(AbstractPlaceNavigationComponent));
|
|
7671
6344
|
|
|
7672
|
-
var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
7673
|
-
__extends(TabbedPlaceNavigationComponent, _super);
|
|
7674
|
-
function TabbedPlaceNavigationComponent(placeRouter) {
|
|
7675
|
-
return _super.call(this, placeRouter) || this;
|
|
7676
|
-
}
|
|
7677
|
-
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
7678
|
-
{ type: PlaceRouter }
|
|
7679
|
-
]; };
|
|
7680
|
-
TabbedPlaceNavigationComponent = __decorate([
|
|
7681
|
-
core.Component({
|
|
7682
|
-
selector: 'aup-tabbed-place-navigation',
|
|
7683
|
-
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",
|
|
7684
|
-
styles: [""]
|
|
7685
|
-
}),
|
|
7686
|
-
__metadata("design:paramtypes", [PlaceRouter])
|
|
7687
|
-
], TabbedPlaceNavigationComponent);
|
|
7688
|
-
return TabbedPlaceNavigationComponent;
|
|
7689
|
-
}(AbstractPlaceNavigationComponent));
|
|
7690
|
-
|
|
7691
6345
|
var PlaceModule = /** @class */ (function () {
|
|
7692
6346
|
function PlaceModule() {
|
|
7693
6347
|
}
|
|
@@ -8234,7 +6888,8 @@
|
|
|
8234
6888
|
binding: null
|
|
8235
6889
|
};
|
|
8236
6890
|
var tag = tagPrefix + "(" + prototype.constructor.name + "." + propertyKey.toString() + ")";
|
|
8237
|
-
pectin.DebugContext.
|
|
6891
|
+
pectin.DebugContext.get(mechanics.backingModel).tag(tag);
|
|
6892
|
+
pectin.Logger.get(mechanics.backingModel).tag(tag);
|
|
8238
6893
|
Object.defineProperty(prototype, propertyKey, {
|
|
8239
6894
|
get: function () {
|
|
8240
6895
|
return mechanics.backingModel;
|
|
@@ -8305,7 +6960,6 @@
|
|
|
8305
6960
|
exports.AddItemInteractionContextComponent = AddItemInteractionContextComponent;
|
|
8306
6961
|
exports.AlertDialogComponent = AlertDialogComponent;
|
|
8307
6962
|
exports.AngularUiPowerupsModule = AngularUiPowerupsModule;
|
|
8308
|
-
exports.AutocompleteInputComponent = AutocompleteInputComponent;
|
|
8309
6963
|
exports.BusyOverlayComponent = BusyOverlayComponent;
|
|
8310
6964
|
exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
|
|
8311
6965
|
exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
|
|
@@ -8317,13 +6971,7 @@
|
|
|
8317
6971
|
exports.CheckboxInputComponent = CheckboxInputComponent;
|
|
8318
6972
|
exports.ColumnModel = ColumnModel;
|
|
8319
6973
|
exports.ColumnTemplateDirective = ColumnTemplateDirective;
|
|
8320
|
-
exports.CommandComponent = CommandComponent;
|
|
8321
6974
|
exports.CommandDirective = CommandDirective;
|
|
8322
|
-
exports.CommandFaceComponent = CommandFaceComponent;
|
|
8323
|
-
exports.CommandGroup = exports.ɵbo;
|
|
8324
|
-
exports.CommandGroupComponent = CommandGroupComponent;
|
|
8325
|
-
exports.CommandGroupMenuRendererComponent = CommandGroupMenuRendererComponent;
|
|
8326
|
-
exports.CommandGroupRendererComponent = CommandGroupRendererComponent;
|
|
8327
6975
|
exports.ComponentCellRendererPortalRef = ComponentCellRendererPortalRef;
|
|
8328
6976
|
exports.ComponentsModule = ComponentsModule;
|
|
8329
6977
|
exports.ConfirmThenDialogComponent = ConfirmThenDialogComponent;
|
|
@@ -8345,24 +6993,22 @@
|
|
|
8345
6993
|
exports.EditorControlColumnModel = EditorControlColumnModel;
|
|
8346
6994
|
exports.EmptyStateComponent = EmptyStateComponent;
|
|
8347
6995
|
exports.EventCleanUpSession = EventCleanUpSession;
|
|
8348
|
-
exports.FlexComponent = FlexComponent;
|
|
8349
6996
|
exports.FocusBinding = FocusBinding;
|
|
8350
6997
|
exports.FocusBindingDirective = FocusBindingDirective;
|
|
8351
6998
|
exports.FocusBindingFactory = FocusBindingFactory;
|
|
8352
6999
|
exports.FocusContainerComponent = FocusContainerComponent;
|
|
8353
7000
|
exports.FocusableComponent = FocusableComponent;
|
|
8354
7001
|
exports.HEADER_CELL_RENDERER_PORTAL = HEADER_CELL_RENDERER_PORTAL;
|
|
8355
|
-
exports.IconComponent =
|
|
7002
|
+
exports.IconComponent = IconComponent;
|
|
8356
7003
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
8357
7004
|
exports.InteractionContextTriggerFor = InteractionContextTriggerFor;
|
|
8358
7005
|
exports.InteractionModule = InteractionModule;
|
|
8359
|
-
exports.InteractionService = exports.ɵ
|
|
7006
|
+
exports.InteractionService = exports.ɵbv;
|
|
8360
7007
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
8361
7008
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
8362
7009
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
8363
7010
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
8364
7011
|
exports.ModalInteractionContextFactory = ModalInteractionContextFactory;
|
|
8365
|
-
exports.MoreMenuComponent = MoreMenuComponent;
|
|
8366
7012
|
exports.MultipleSelectInputComponent = MultipleSelectInputComponent;
|
|
8367
7013
|
exports.Navigating = Navigating;
|
|
8368
7014
|
exports.NavigatingDuringInteraction = NavigatingDuringInteraction;
|
|
@@ -8377,7 +7023,7 @@
|
|
|
8377
7023
|
exports.PlaceComponentDeactivationHandler = PlaceComponentDeactivationHandler;
|
|
8378
7024
|
exports.PlaceDefinition = PlaceDefinition;
|
|
8379
7025
|
exports.PlaceGuard = PlaceGuard;
|
|
8380
|
-
exports.PlaceHistory = exports.ɵ
|
|
7026
|
+
exports.PlaceHistory = exports.ɵby;
|
|
8381
7027
|
exports.PlaceModule = PlaceModule;
|
|
8382
7028
|
exports.PlaceOutletComponent = PlaceOutletComponent;
|
|
8383
7029
|
exports.PlaceRouter = PlaceRouter;
|
|
@@ -8385,7 +7031,6 @@
|
|
|
8385
7031
|
exports.PopStateDuringInteractionNavigation = PopStateDuringInteractionNavigation;
|
|
8386
7032
|
exports.PopStateNavigation = PopStateNavigation;
|
|
8387
7033
|
exports.PopupInteractionContextComponent = PopupInteractionContextComponent;
|
|
8388
|
-
exports.PopupMenuComponent = PopupMenuComponent;
|
|
8389
7034
|
exports.PropertyColumnModel = PropertyColumnModel;
|
|
8390
7035
|
exports.ROUTE_PARAMETER_LIST_KEY = ROUTE_PARAMETER_LIST_KEY;
|
|
8391
7036
|
exports.RemoveLastInteractionFromUrlNavigationSession = RemoveLastInteractionFromUrlNavigationSession;
|
|
@@ -8398,7 +7043,6 @@
|
|
|
8398
7043
|
exports.SelectInputActivity = SelectInputActivity;
|
|
8399
7044
|
exports.SelectInputComponent = SelectInputComponent;
|
|
8400
7045
|
exports.SelectionColumnModel = SelectionColumnModel;
|
|
8401
|
-
exports.SeparatorComponent = SeparatorComponent;
|
|
8402
7046
|
exports.SidePlaceNavigationComponent = SidePlaceNavigationComponent;
|
|
8403
7047
|
exports.StringInputActivity = StringInputActivity;
|
|
8404
7048
|
exports.StringInputComponent = StringInputComponent;
|
|
@@ -8412,10 +7056,8 @@
|
|
|
8412
7056
|
exports.TableComponent = TableComponent;
|
|
8413
7057
|
exports.TableHeaderCellRendererComponent = TableHeaderCellRendererComponent;
|
|
8414
7058
|
exports.TableModel = TableModel;
|
|
8415
|
-
exports.TableRowMenuComponent = TableRowMenuComponent;
|
|
8416
7059
|
exports.TemplateCellRendererPortalRef = TemplateCellRendererPortalRef;
|
|
8417
7060
|
exports.TextInputComponent = TextInputComponent;
|
|
8418
|
-
exports.ToolBarComponent = ToolBarComponent;
|
|
8419
7061
|
exports.UrlService = UrlService;
|
|
8420
7062
|
exports.VerticalFocusContainerComponent = VerticalFocusContainerComponent;
|
|
8421
7063
|
exports.Visit = Visit;
|
|
@@ -8431,62 +7073,51 @@
|
|
|
8431
7073
|
exports.ɵ0 = ɵ0;
|
|
8432
7074
|
exports.ɵa = DirectivesModule;
|
|
8433
7075
|
exports.ɵb = CommandDirective;
|
|
8434
|
-
exports.ɵba =
|
|
8435
|
-
exports.ɵbb =
|
|
8436
|
-
exports.ɵbc =
|
|
8437
|
-
exports.ɵbd =
|
|
8438
|
-
exports.ɵbe =
|
|
8439
|
-
exports.ɵbf =
|
|
8440
|
-
exports.ɵbg =
|
|
8441
|
-
exports.ɵbh =
|
|
8442
|
-
exports.ɵbi =
|
|
8443
|
-
exports.ɵbj =
|
|
8444
|
-
exports.ɵ
|
|
8445
|
-
exports.ɵ
|
|
8446
|
-
exports.ɵ
|
|
8447
|
-
exports.ɵ
|
|
8448
|
-
exports.ɵ
|
|
8449
|
-
exports.ɵ
|
|
8450
|
-
exports.ɵ
|
|
8451
|
-
exports.ɵ
|
|
8452
|
-
exports.ɵ
|
|
8453
|
-
exports.ɵ
|
|
8454
|
-
exports.ɵbw =
|
|
8455
|
-
exports.ɵbx =
|
|
8456
|
-
exports.ɵ
|
|
8457
|
-
exports.ɵbz = ComponentsModule;
|
|
7076
|
+
exports.ɵba = EditRowControls;
|
|
7077
|
+
exports.ɵbb = ColumnTemplateDirective;
|
|
7078
|
+
exports.ɵbc = DefaultCellRendererComponent;
|
|
7079
|
+
exports.ɵbd = TableCellRendererComponent;
|
|
7080
|
+
exports.ɵbe = SelectCellRendererComponent;
|
|
7081
|
+
exports.ɵbf = SelectHeaderCellRendererComponent;
|
|
7082
|
+
exports.ɵbg = DefaultHeaderCellRendererComponent;
|
|
7083
|
+
exports.ɵbh = TableHeaderCellRendererComponent;
|
|
7084
|
+
exports.ɵbi = MultipleSelectInputComponent;
|
|
7085
|
+
exports.ɵbj = IconComponent;
|
|
7086
|
+
exports.ɵbk = SectionHeaderComponent;
|
|
7087
|
+
exports.ɵbl = PlaceModule;
|
|
7088
|
+
exports.ɵbm = ComponentsModule;
|
|
7089
|
+
exports.ɵbn = EmptyStateComponent;
|
|
7090
|
+
exports.ɵbo = BusyOverlayComponent;
|
|
7091
|
+
exports.ɵbp = PlaceOutletComponent;
|
|
7092
|
+
exports.ɵbq = leftRightPlaceAnimation;
|
|
7093
|
+
exports.ɵbr = LEFT_RIGHT_PLACE_ANIMATION;
|
|
7094
|
+
exports.ɵbs = AUP_PLACE_CONFIG;
|
|
7095
|
+
exports.ɵbu = PlaceRouter;
|
|
7096
|
+
exports.ɵbw = ModalInteractionContextFactory;
|
|
7097
|
+
exports.ɵbx = UrlService;
|
|
7098
|
+
exports.ɵbz = TabbedPlaceNavigationComponent;
|
|
8458
7099
|
exports.ɵc = FocusBindingDirective;
|
|
8459
|
-
exports.ɵca =
|
|
8460
|
-
exports.ɵcb =
|
|
8461
|
-
exports.ɵcc =
|
|
8462
|
-
exports.ɵcd =
|
|
8463
|
-
exports.ɵce =
|
|
8464
|
-
exports.ɵcf =
|
|
8465
|
-
exports.ɵ
|
|
8466
|
-
exports.ɵ
|
|
8467
|
-
exports.ɵ
|
|
8468
|
-
exports.ɵ
|
|
8469
|
-
exports.ɵ
|
|
8470
|
-
exports.ɵ
|
|
8471
|
-
exports.ɵ
|
|
8472
|
-
exports.ɵ
|
|
8473
|
-
exports.ɵ
|
|
8474
|
-
exports.ɵ
|
|
8475
|
-
exports.ɵ
|
|
8476
|
-
exports.ɵ
|
|
8477
|
-
exports.ɵ
|
|
8478
|
-
exports.ɵ
|
|
8479
|
-
exports.ɵcy = ConfirmThenDialogComponent;
|
|
8480
|
-
exports.ɵcz = AlertDialogComponent;
|
|
7100
|
+
exports.ɵca = AbstractPlaceNavigationComponent;
|
|
7101
|
+
exports.ɵcb = ListPlaceNavComponent;
|
|
7102
|
+
exports.ɵcc = SidePlaceNavigationComponent;
|
|
7103
|
+
exports.ɵcd = InteractionModule;
|
|
7104
|
+
exports.ɵce = ActivityContainerComponent;
|
|
7105
|
+
exports.ɵcf = AbstractInteractionContext;
|
|
7106
|
+
exports.ɵcg = ActivityOutletComponent;
|
|
7107
|
+
exports.ɵch = ConfirmationDialogComponent;
|
|
7108
|
+
exports.ɵci = ACTIVITY_DATA;
|
|
7109
|
+
exports.ɵcj = Activity;
|
|
7110
|
+
exports.ɵcl = ConfirmThenDialogComponent;
|
|
7111
|
+
exports.ɵcm = AlertDialogComponent;
|
|
7112
|
+
exports.ɵco = InPlaceInteractionContextComponent;
|
|
7113
|
+
exports.ɵcp = AddItemInteractionContextComponent;
|
|
7114
|
+
exports.ɵcq = ActivityActionsComponent;
|
|
7115
|
+
exports.ɵcr = PopupInteractionContextComponent;
|
|
7116
|
+
exports.ɵcs = StringInputActivity;
|
|
7117
|
+
exports.ɵct = AbstractInputActivity;
|
|
7118
|
+
exports.ɵcu = SelectInputActivity;
|
|
7119
|
+
exports.ɵcv = InteractionContextTriggerFor;
|
|
8481
7120
|
exports.ɵd = DisposableComponent;
|
|
8482
|
-
exports.ɵdb = InPlaceInteractionContextComponent;
|
|
8483
|
-
exports.ɵdc = AddItemInteractionContextComponent;
|
|
8484
|
-
exports.ɵdd = ActivityActionsComponent;
|
|
8485
|
-
exports.ɵde = PopupInteractionContextComponent;
|
|
8486
|
-
exports.ɵdf = StringInputActivity;
|
|
8487
|
-
exports.ɵdg = AbstractInputActivity;
|
|
8488
|
-
exports.ɵdh = SelectInputActivity;
|
|
8489
|
-
exports.ɵdi = InteractionContextTriggerFor;
|
|
8490
7121
|
exports.ɵe = FocusBindingFactory;
|
|
8491
7122
|
exports.ɵf = ComponentsModule;
|
|
8492
7123
|
exports.ɵg = AbstractInputComponent;
|
|
@@ -8497,18 +7128,18 @@
|
|
|
8497
7128
|
exports.ɵl = TextInputComponent;
|
|
8498
7129
|
exports.ɵm = PasswordInputComponent;
|
|
8499
7130
|
exports.ɵn = SelectInputComponent;
|
|
8500
|
-
exports.ɵo =
|
|
8501
|
-
exports.ɵp =
|
|
8502
|
-
exports.ɵq =
|
|
8503
|
-
exports.ɵr =
|
|
8504
|
-
exports.ɵs =
|
|
8505
|
-
exports.ɵt =
|
|
8506
|
-
exports.ɵu =
|
|
8507
|
-
exports.ɵv =
|
|
8508
|
-
exports.ɵw =
|
|
8509
|
-
exports.ɵx =
|
|
8510
|
-
exports.ɵy =
|
|
8511
|
-
exports.ɵz =
|
|
7131
|
+
exports.ɵo = CheckboxInputComponent;
|
|
7132
|
+
exports.ɵp = ScrollContainerComponent;
|
|
7133
|
+
exports.ɵq = NoopComponent;
|
|
7134
|
+
exports.ɵr = SwitchCaseOption;
|
|
7135
|
+
exports.ɵs = SwitchCaseWhenDirective;
|
|
7136
|
+
exports.ɵt = SwitchCaseDefaultDirective;
|
|
7137
|
+
exports.ɵu = SwitchCaseComponent;
|
|
7138
|
+
exports.ɵv = FocusContainerComponent;
|
|
7139
|
+
exports.ɵw = VerticalFocusContainerComponent;
|
|
7140
|
+
exports.ɵx = FocusableComponent;
|
|
7141
|
+
exports.ɵy = CardContainerComponent;
|
|
7142
|
+
exports.ɵz = TableComponent;
|
|
8512
7143
|
|
|
8513
7144
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8514
7145
|
|