@coolon/angular-ui-powerups 2.0.0-alpha.38 → 2.0.0-alpha.4
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 -233
- 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 +399 -1818
- 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 +6 -51
- 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 +3 -47
- 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 +6 -3
- 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 +13 -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 +6 -3
- 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 +7 -4
- 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 +5 -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 +7 -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 +6 -3
- 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-editors.js.map +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 +6 -56
- package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +3 -52
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +6 -3
- 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 +13 -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 +6 -3
- 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 +7 -4
- 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 +5 -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 +7 -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 +6 -3
- 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-editors.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 +322 -1543
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +403 -1802
- 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 -10
- package/lib/components/forms/abstract-value-input.component.d.ts +3 -9
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +2 -0
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +4 -8
- package/lib/components/forms/number-input/number-input.component.d.ts +2 -0
- package/lib/components/forms/password-input/password-input.component.d.ts +2 -0
- package/lib/components/forms/select-input/select-input.component.d.ts +2 -2
- package/lib/components/forms/string-input/string-input.component.d.ts +2 -1
- package/lib/components/forms/text-input/text-input.component.d.ts +2 -0
- package/lib/components/icon/icon.component.d.ts +0 -15
- package/lib/components/index.d.ts +1 -19
- package/lib/components/table/cell-editors.d.ts +3 -3
- 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)
|
|
@@ -1875,7 +875,7 @@
|
|
|
1875
875
|
var AbstractListInputComponent = /** @class */ (function (_super) {
|
|
1876
876
|
__extends(AbstractListInputComponent, _super);
|
|
1877
877
|
function AbstractListInputComponent() {
|
|
1878
|
-
var _this = _super.
|
|
878
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1879
879
|
/**
|
|
1880
880
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
1881
881
|
*
|
|
@@ -1887,61 +887,11 @@
|
|
|
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.componentListModel = new pectin.MutableListModel();
|
|
1892
|
-
_this.setValueIsInProgress = new pectin.Guard();
|
|
1893
|
-
_this.valueChange = new core.EventEmitter();
|
|
1894
|
-
var _a = pectin.Dsl.disposeWith(_this), when = _a.when, valueOf = _a.valueOf, chain = _a.chain;
|
|
1895
|
-
var binding = new pectin.Binding.Identity(_this.formValueModel, _this.componentListModel).writeRight();
|
|
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
|
-
}, {
|
|
1901
|
-
initialValue: 'ignore',
|
|
1902
|
-
// we never fire events during an external changes to the value. This allows
|
|
1903
|
-
// the component to behave when used in the conventional angular
|
|
1904
|
-
// fashion, i.e. [(value)]="..."
|
|
1905
|
-
unless: inExternalChange
|
|
1906
|
-
});
|
|
1907
|
-
pectin.DebugContext.tag(_this.formValueModel, _this.constructor.name + ".formValueModel");
|
|
890
|
+
_this.inputModel = _this.registerDisposable(new pectin.Form.DelegatingListModel());
|
|
1908
891
|
return _this;
|
|
1909
892
|
}
|
|
1910
|
-
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
|
-
set: function (value) {
|
|
1915
|
-
var _this = this;
|
|
1916
|
-
this.setValueIsInProgress.whileTrue(function () {
|
|
1917
|
-
if (!_this.listHolder) {
|
|
1918
|
-
_this.listHolder = new pectin.MutableListModel(value);
|
|
1919
|
-
_this.listModel = _this.listHolder;
|
|
1920
|
-
}
|
|
1921
|
-
else {
|
|
1922
|
-
_this.listHolder.value = value;
|
|
1923
|
-
}
|
|
1924
|
-
});
|
|
1925
|
-
},
|
|
1926
|
-
enumerable: true,
|
|
1927
|
-
configurable: true
|
|
1928
|
-
});
|
|
1929
|
-
__decorate([
|
|
1930
|
-
core.Input(), pectin.TrackExternal({ delegateTo: 'formValueModel' }),
|
|
1931
|
-
__metadata("design:type", Object)
|
|
1932
|
-
], AbstractListInputComponent.prototype, "listModel", void 0);
|
|
1933
|
-
__decorate([
|
|
1934
|
-
core.Input(),
|
|
1935
|
-
__metadata("design:type", Array),
|
|
1936
|
-
__metadata("design:paramtypes", [Array])
|
|
1937
|
-
], AbstractListInputComponent.prototype, "value", null);
|
|
1938
|
-
__decorate([
|
|
1939
|
-
core.Output(),
|
|
1940
|
-
__metadata("design:type", Object)
|
|
1941
|
-
], AbstractListInputComponent.prototype, "valueChange", void 0);
|
|
1942
893
|
AbstractListInputComponent = __decorate([
|
|
1943
|
-
core.Component({ template: '' })
|
|
1944
|
-
__metadata("design:paramtypes", [])
|
|
894
|
+
core.Component({ template: '' })
|
|
1945
895
|
], AbstractListInputComponent);
|
|
1946
896
|
return AbstractListInputComponent;
|
|
1947
897
|
}(AbstractInputComponent));
|
|
@@ -1949,156 +899,42 @@
|
|
|
1949
899
|
var AbstractValueInputComponent = /** @class */ (function (_super) {
|
|
1950
900
|
__extends(AbstractValueInputComponent, _super);
|
|
1951
901
|
function AbstractValueInputComponent() {
|
|
1952
|
-
var _this = _super.call(this) || this;
|
|
1953
|
-
/**
|
|
1954
|
-
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
1955
|
-
*
|
|
1956
|
-
* @Input() @TrackExternal({useExisting: "inputModel"})
|
|
1957
|
-
* valueModel: DirtyTrackingForm.ValueModel<string> | IMutableValueModel<string>;
|
|
1958
|
-
*
|
|
1959
|
-
* This approach allows the input to accept plain or form models but all backed by a form
|
|
1960
|
-
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
1961
|
-
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1962
|
-
*/
|
|
1963
|
-
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1964
|
-
_this.
|
|
1965
|
-
_this
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
var binding = new pectin.Binding.Identity(_this.formValueModel, _this.componentValueModel).writeRight();
|
|
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 });
|
|
2042
|
-
return _this;
|
|
2043
|
-
}
|
|
2044
|
-
AutocompleteInputComponent.prototype.ngOnInit = function () {
|
|
2045
|
-
};
|
|
2046
|
-
AutocompleteInputComponent.prototype.formatOption = function (option) {
|
|
2047
|
-
return this.optionLabelFormat(option);
|
|
2048
|
-
};
|
|
2049
|
-
AutocompleteInputComponent.prototype.updateFilter = function ($event) {
|
|
2050
|
-
this.filterValue.value = $event;
|
|
2051
|
-
};
|
|
2052
|
-
AutocompleteInputComponent.prototype.onSelect = function ($event) {
|
|
2053
|
-
this.valueModel.value = $event.option.value;
|
|
2054
|
-
};
|
|
2055
|
-
__decorate([
|
|
2056
|
-
core.Input(), pectin.TrackExternal(),
|
|
2057
|
-
__metadata("design:type", pectin.ListModel)
|
|
2058
|
-
], AutocompleteInputComponent.prototype, "optionsModel", void 0);
|
|
2059
|
-
__decorate([
|
|
2060
|
-
core.Input(), pectin.StoreInListModel('optionsModel'),
|
|
2061
|
-
__metadata("design:type", Array)
|
|
2062
|
-
], AutocompleteInputComponent.prototype, "options", void 0);
|
|
2063
|
-
__decorate([
|
|
2064
|
-
core.Input(),
|
|
2065
|
-
__metadata("design:type", Object)
|
|
2066
|
-
], AutocompleteInputComponent.prototype, "optionLabel", void 0);
|
|
2067
|
-
__decorate([
|
|
2068
|
-
core.Input(),
|
|
2069
|
-
__metadata("design:type", Boolean)
|
|
2070
|
-
], AutocompleteInputComponent.prototype, "allowNil", void 0);
|
|
2071
|
-
__decorate([
|
|
2072
|
-
core.ContentChild('nilOptionTemplate'),
|
|
2073
|
-
__metadata("design:type", core.TemplateRef)
|
|
2074
|
-
], AutocompleteInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
2075
|
-
__decorate([
|
|
2076
|
-
core.Input(),
|
|
2077
|
-
__metadata("design:type", Function)
|
|
2078
|
-
], AutocompleteInputComponent.prototype, "optionLabelFormat", void 0);
|
|
2079
|
-
AutocompleteInputComponent = __decorate([
|
|
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
|
-
}),
|
|
902
|
+
var _this = _super.call(this) || this;
|
|
903
|
+
/**
|
|
904
|
+
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
905
|
+
*
|
|
906
|
+
* @Input() @TrackExternal({useExisting: "inputModel"})
|
|
907
|
+
* valueModel: DirtyTrackingForm.ValueModel<string> | IMutableValueModel<string>;
|
|
908
|
+
*
|
|
909
|
+
* This approach allows the input to accept plain or form models but all backed by a form
|
|
910
|
+
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
911
|
+
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
912
|
+
*/
|
|
913
|
+
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
914
|
+
_this.inputModel = _this.registerDisposable(new pectin.Form.DelegatingValueModel());
|
|
915
|
+
return _this;
|
|
916
|
+
}
|
|
917
|
+
AbstractValueInputComponent = __decorate([
|
|
918
|
+
core.Component({ template: '' }),
|
|
2085
919
|
__metadata("design:paramtypes", [])
|
|
2086
|
-
],
|
|
2087
|
-
return
|
|
2088
|
-
}(
|
|
920
|
+
], AbstractValueInputComponent);
|
|
921
|
+
return AbstractValueInputComponent;
|
|
922
|
+
}(AbstractInputComponent));
|
|
2089
923
|
|
|
2090
924
|
var CheckboxInputComponent = /** @class */ (function (_super) {
|
|
2091
925
|
__extends(CheckboxInputComponent, _super);
|
|
2092
926
|
function CheckboxInputComponent() {
|
|
2093
927
|
var _this = _super.call(this) || this;
|
|
2094
|
-
// @Input() @TrackExternal({ delegateTo: 'inputModel' })
|
|
2095
|
-
// valueModel: Form.ValueModelBase<boolean> | IMutableValueModel<boolean>;
|
|
2096
928
|
_this.color = 'accent';
|
|
2097
929
|
_this.labelPosition = 'after';
|
|
2098
930
|
return _this;
|
|
2099
931
|
}
|
|
2100
932
|
CheckboxInputComponent.prototype.ngOnInit = function () {
|
|
2101
933
|
};
|
|
934
|
+
__decorate([
|
|
935
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
936
|
+
__metadata("design:type", Object)
|
|
937
|
+
], CheckboxInputComponent.prototype, "valueModel", void 0);
|
|
2102
938
|
__decorate([
|
|
2103
939
|
core.Input(),
|
|
2104
940
|
__metadata("design:type", String)
|
|
@@ -2110,7 +946,7 @@
|
|
|
2110
946
|
CheckboxInputComponent = __decorate([
|
|
2111
947
|
core.Component({
|
|
2112
948
|
selector: 'aup-checkbox-input',
|
|
2113
|
-
template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"
|
|
949
|
+
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
950
|
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
951
|
}),
|
|
2116
952
|
__metadata("design:paramtypes", [])
|
|
@@ -2118,65 +954,20 @@
|
|
|
2118
954
|
return CheckboxInputComponent;
|
|
2119
955
|
}(AbstractValueInputComponent));
|
|
2120
956
|
|
|
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
957
|
var NumberInputComponent = /** @class */ (function (_super) {
|
|
2169
958
|
__extends(NumberInputComponent, _super);
|
|
2170
959
|
function NumberInputComponent() {
|
|
2171
960
|
var _this = _super.call(this) || this;
|
|
2172
|
-
// @Input() @TrackExternal({ delegateTo: 'inputModel' })
|
|
2173
|
-
// valueModel: Form.ValueModelBase<number> | IMutableValueModel<number>;
|
|
2174
961
|
_this.min = Number.MIN_SAFE_INTEGER;
|
|
2175
962
|
_this.max = Number.MAX_SAFE_INTEGER;
|
|
2176
963
|
return _this;
|
|
2177
964
|
}
|
|
2178
965
|
NumberInputComponent.prototype.ngOnInit = function () {
|
|
2179
966
|
};
|
|
967
|
+
__decorate([
|
|
968
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
969
|
+
__metadata("design:type", Object)
|
|
970
|
+
], NumberInputComponent.prototype, "valueModel", void 0);
|
|
2180
971
|
__decorate([
|
|
2181
972
|
core.Input(),
|
|
2182
973
|
__metadata("design:type", Object)
|
|
@@ -2188,7 +979,7 @@
|
|
|
2188
979
|
NumberInputComponent = __decorate([
|
|
2189
980
|
core.Component({
|
|
2190
981
|
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)]=\"
|
|
982
|
+
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
983
|
styles: [""]
|
|
2193
984
|
}),
|
|
2194
985
|
__metadata("design:paramtypes", [])
|
|
@@ -2198,17 +989,19 @@
|
|
|
2198
989
|
|
|
2199
990
|
var PasswordInputComponent = /** @class */ (function (_super) {
|
|
2200
991
|
__extends(PasswordInputComponent, _super);
|
|
2201
|
-
// @Input() @TrackExternal({ delegateTo: 'inputModel' })
|
|
2202
|
-
// valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
|
|
2203
992
|
function PasswordInputComponent() {
|
|
2204
993
|
return _super.call(this) || this;
|
|
2205
994
|
}
|
|
2206
995
|
PasswordInputComponent.prototype.ngOnInit = function () {
|
|
2207
996
|
};
|
|
997
|
+
__decorate([
|
|
998
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
999
|
+
__metadata("design:type", Object)
|
|
1000
|
+
], PasswordInputComponent.prototype, "valueModel", void 0);
|
|
2208
1001
|
PasswordInputComponent = __decorate([
|
|
2209
1002
|
core.Component({
|
|
2210
1003
|
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)]=\"
|
|
1004
|
+
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
1005
|
styles: [""]
|
|
2213
1006
|
}),
|
|
2214
1007
|
__metadata("design:paramtypes", [])
|
|
@@ -2220,7 +1013,6 @@
|
|
|
2220
1013
|
* Using templates:
|
|
2221
1014
|
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
2222
1015
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2223
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2224
1016
|
* </aup-select_input>
|
|
2225
1017
|
*/
|
|
2226
1018
|
var SelectInputComponent = /** @class */ (function (_super) {
|
|
@@ -2232,6 +1024,10 @@
|
|
|
2232
1024
|
}
|
|
2233
1025
|
SelectInputComponent.prototype.ngOnInit = function () {
|
|
2234
1026
|
};
|
|
1027
|
+
__decorate([
|
|
1028
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
1029
|
+
__metadata("design:type", Object)
|
|
1030
|
+
], SelectInputComponent.prototype, "valueModel", void 0);
|
|
2235
1031
|
__decorate([
|
|
2236
1032
|
core.Input(), pectin.TrackExternal(),
|
|
2237
1033
|
__metadata("design:type", pectin.ListModel)
|
|
@@ -2263,7 +1059,7 @@
|
|
|
2263
1059
|
SelectInputComponent = __decorate([
|
|
2264
1060
|
core.Component({
|
|
2265
1061
|
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)]=\"
|
|
1062
|
+
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
1063
|
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2268
1064
|
}),
|
|
2269
1065
|
__metadata("design:paramtypes", [])
|
|
@@ -2277,13 +1073,17 @@
|
|
|
2277
1073
|
var _this = _super.call(this) || this;
|
|
2278
1074
|
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
1075
|
_this.clearCommand = pectin.Command.create(function () {
|
|
2280
|
-
_this.
|
|
1076
|
+
_this.valueModel.value = null;
|
|
2281
1077
|
});
|
|
2282
|
-
_this.clearCommand.disableWhile(chain.stringValue(_this.
|
|
1078
|
+
_this.clearCommand.disableWhile(chain.stringValue(_this.valueModel).isBlank());
|
|
2283
1079
|
return _this;
|
|
2284
1080
|
}
|
|
2285
1081
|
StringInputComponent.prototype.ngOnInit = function () {
|
|
2286
1082
|
};
|
|
1083
|
+
__decorate([
|
|
1084
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
1085
|
+
__metadata("design:type", Object)
|
|
1086
|
+
], StringInputComponent.prototype, "valueModel", void 0);
|
|
2287
1087
|
__decorate([
|
|
2288
1088
|
core.Input(), pectin.TrackExternal({ defaultValue: false }),
|
|
2289
1089
|
__metadata("design:type", pectin.ValueModel)
|
|
@@ -2295,7 +1095,7 @@
|
|
|
2295
1095
|
StringInputComponent = __decorate([
|
|
2296
1096
|
core.Component({
|
|
2297
1097
|
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)]=\"
|
|
1098
|
+
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
1099
|
styles: ["button[disabled]{visibility:hidden}"]
|
|
2300
1100
|
}),
|
|
2301
1101
|
__metadata("design:paramtypes", [])
|
|
@@ -2307,14 +1107,16 @@
|
|
|
2307
1107
|
__extends(TextInputComponent, _super);
|
|
2308
1108
|
function TextInputComponent() {
|
|
2309
1109
|
var _this = _super.call(this) || this;
|
|
2310
|
-
// @Input() @TrackExternal({ delegateTo: 'inputModel' })
|
|
2311
|
-
// valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
|
|
2312
1110
|
_this.rows = 2;
|
|
2313
1111
|
return _this;
|
|
2314
1112
|
// const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
2315
1113
|
}
|
|
2316
1114
|
TextInputComponent.prototype.ngOnInit = function () {
|
|
2317
1115
|
};
|
|
1116
|
+
__decorate([
|
|
1117
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
1118
|
+
__metadata("design:type", Object)
|
|
1119
|
+
], TextInputComponent.prototype, "valueModel", void 0);
|
|
2318
1120
|
__decorate([
|
|
2319
1121
|
core.Input(),
|
|
2320
1122
|
__metadata("design:type", Object)
|
|
@@ -2326,7 +1128,7 @@
|
|
|
2326
1128
|
TextInputComponent = __decorate([
|
|
2327
1129
|
core.Component({
|
|
2328
1130
|
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)]=\"
|
|
1131
|
+
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
1132
|
styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
2331
1133
|
}),
|
|
2332
1134
|
__metadata("design:paramtypes", [])
|
|
@@ -2334,59 +1136,6 @@
|
|
|
2334
1136
|
return TextInputComponent;
|
|
2335
1137
|
}(AbstractValueInputComponent));
|
|
2336
1138
|
|
|
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
1139
|
var NoopComponent = /** @class */ (function () {
|
|
2391
1140
|
function NoopComponent() {
|
|
2392
1141
|
}
|
|
@@ -2597,7 +1346,6 @@
|
|
|
2597
1346
|
typescriptUtilities.assert.isTruthy(host);
|
|
2598
1347
|
host[HEADER_CELL_RENDERER_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2599
1348
|
};
|
|
2600
|
-
// @Trace()
|
|
2601
1349
|
CellHeaderPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2602
1350
|
this.initialiseHeader(portalComponent, host.column);
|
|
2603
1351
|
};
|
|
@@ -2621,15 +1369,13 @@
|
|
|
2621
1369
|
ComponentCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2622
1370
|
host[CELL_RENDERER_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2623
1371
|
};
|
|
2624
|
-
// @Trace()
|
|
2625
1372
|
ComponentCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2626
1373
|
host[PORTAL_RENDERER_COMPONENT] = portalComponent;
|
|
2627
|
-
this.updateComponent(portalComponent, host.getRowData()
|
|
1374
|
+
this.updateComponent(portalComponent, host.getRowData());
|
|
2628
1375
|
};
|
|
2629
|
-
// @Trace()
|
|
2630
1376
|
ComponentCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2631
1377
|
if (host[PORTAL_RENDERER_COMPONENT]) {
|
|
2632
|
-
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData()
|
|
1378
|
+
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData());
|
|
2633
1379
|
}
|
|
2634
1380
|
};
|
|
2635
1381
|
return ComponentCellRendererPortalRef;
|
|
@@ -2671,7 +1417,6 @@
|
|
|
2671
1417
|
TemplateCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2672
1418
|
// don't care
|
|
2673
1419
|
};
|
|
2674
|
-
// @Trace()
|
|
2675
1420
|
TemplateCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2676
1421
|
host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());
|
|
2677
1422
|
host.fillCell = this.fillCell;
|
|
@@ -2862,8 +1607,7 @@
|
|
|
2862
1607
|
|
|
2863
1608
|
var noop = function () {
|
|
2864
1609
|
};
|
|
2865
|
-
var ɵ0
|
|
2866
|
-
var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol("aup-cell-renderer:row-data-cache");
|
|
1610
|
+
var ɵ0 = noop;
|
|
2867
1611
|
var ColumnModel = /** @class */ (function () {
|
|
2868
1612
|
function ColumnModel(columnId, defaults) {
|
|
2869
1613
|
this.columnId = columnId;
|
|
@@ -2954,66 +1698,24 @@
|
|
|
2954
1698
|
}());
|
|
2955
1699
|
var PropertyColumnModel = /** @class */ (function (_super) {
|
|
2956
1700
|
__extends(PropertyColumnModel, _super);
|
|
2957
|
-
function PropertyColumnModel(
|
|
2958
|
-
var _this = _super.call(this,
|
|
1701
|
+
function PropertyColumnModel(property, defaults) {
|
|
1702
|
+
var _this = _super.call(this, property.toString(), defaults) || this;
|
|
2959
1703
|
_this.property = property;
|
|
2960
1704
|
_this._format = function (value) { return value; };
|
|
2961
1705
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
2962
1706
|
return _this;
|
|
2963
1707
|
}
|
|
2964
|
-
PropertyColumnModel.prototype.cellRenderer = function (componentType
|
|
1708
|
+
PropertyColumnModel.prototype.cellRenderer = function (componentType) {
|
|
2965
1709
|
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
|
-
}
|
|
1710
|
+
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData) {
|
|
2977
1711
|
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
1712
|
}));
|
|
3011
1713
|
return this;
|
|
3012
1714
|
};
|
|
3013
|
-
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser,
|
|
1715
|
+
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
|
|
3014
1716
|
var _this = this;
|
|
3015
1717
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3016
|
-
var initialiser = ___default__default.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser :
|
|
1718
|
+
var initialiser = ___default__default.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3017
1719
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3018
1720
|
var formValueModel = editSession.form.pluck(_this.property);
|
|
3019
1721
|
if (validators) {
|
|
@@ -3038,8 +1740,8 @@
|
|
|
3038
1740
|
}(ColumnModel));
|
|
3039
1741
|
var ListPropertyColumnModel = /** @class */ (function (_super) {
|
|
3040
1742
|
__extends(ListPropertyColumnModel, _super);
|
|
3041
|
-
function ListPropertyColumnModel(
|
|
3042
|
-
var _this = _super.call(this,
|
|
1743
|
+
function ListPropertyColumnModel(property, defaults) {
|
|
1744
|
+
var _this = _super.call(this, property.toString(), defaults) || this;
|
|
3043
1745
|
_this.property = property;
|
|
3044
1746
|
_this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
|
|
3045
1747
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
@@ -3086,23 +1788,10 @@
|
|
|
3086
1788
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
3087
1789
|
return _this;
|
|
3088
1790
|
}
|
|
3089
|
-
CustomValueColumnModel.prototype.cellRenderer = function (componentType
|
|
1791
|
+
CustomValueColumnModel.prototype.cellRenderer = function (componentType) {
|
|
3090
1792
|
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
|
-
}
|
|
1793
|
+
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData) {
|
|
3102
1794
|
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
1795
|
}));
|
|
3107
1796
|
return this;
|
|
3108
1797
|
};
|
|
@@ -3275,9 +1964,6 @@
|
|
|
3275
1964
|
this._editorSessions = new pectin.MutableListModel();
|
|
3276
1965
|
this.rowClassNamePredicates = [];
|
|
3277
1966
|
this._createForm = function (row) { return new pectin.DirtyTrackingForm(); };
|
|
3278
|
-
this.trackBy = function (index, item) {
|
|
3279
|
-
return _this.identityOf ? _this.identityOf(item) : index;
|
|
3280
|
-
};
|
|
3281
1967
|
this.identityOf = sourceOfTruth.identityOf;
|
|
3282
1968
|
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
1969
|
this._columnsById = chain(this._columns).indexBy('columnId');
|
|
@@ -3289,7 +1975,7 @@
|
|
|
3289
1975
|
this.dataSource = chain(this.sourceOfTruth).replaceAll(this.rowsBeingEdited);
|
|
3290
1976
|
this.firstEditableColumn = chain(this.columns).select(function (c) { return c.hasEditorPortal(); }).first();
|
|
3291
1977
|
this.hasColumnsWithRowSelectionExplicitlyEnabled = chain(this._columns).findIndex(function (column) { return column.isRowSelectionExplicitlyEnabled(); }).isGreaterThanOrEqualTo(0);
|
|
3292
|
-
this.addRowClass(
|
|
1978
|
+
this.addRowClass("enable-hover", function () { return _this.isRowSelectionEnabled(); });
|
|
3293
1979
|
}
|
|
3294
1980
|
TableModel_1 = TableModel;
|
|
3295
1981
|
TableModel.fromList = function (sourceOfTruth, builder) {
|
|
@@ -3304,6 +1990,12 @@
|
|
|
3304
1990
|
enumerable: true,
|
|
3305
1991
|
configurable: true
|
|
3306
1992
|
});
|
|
1993
|
+
TableModel.prototype.getTrackByFunction = function () {
|
|
1994
|
+
var _this = this;
|
|
1995
|
+
return function (index, item) {
|
|
1996
|
+
return _this.identityOf ? _this.identityOf(item) : index;
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
3307
1999
|
Object.defineProperty(TableModel.prototype, "columns", {
|
|
3308
2000
|
get: function () {
|
|
3309
2001
|
return this._columns.readonly;
|
|
@@ -3311,11 +2003,11 @@
|
|
|
3311
2003
|
enumerable: true,
|
|
3312
2004
|
configurable: true
|
|
3313
2005
|
});
|
|
3314
|
-
TableModel.prototype.pluck = function (property
|
|
3315
|
-
return this.addColumn(new PropertyColumnModel(
|
|
2006
|
+
TableModel.prototype.pluck = function (property) {
|
|
2007
|
+
return this.addColumn(new PropertyColumnModel(property, this));
|
|
3316
2008
|
};
|
|
3317
|
-
TableModel.prototype.pluckList = function (property
|
|
3318
|
-
return this.addColumn(new ListPropertyColumnModel(
|
|
2009
|
+
TableModel.prototype.pluckList = function (property) {
|
|
2010
|
+
return this.addColumn(new ListPropertyColumnModel(property, this));
|
|
3319
2011
|
};
|
|
3320
2012
|
TableModel.prototype.addSelectionColumn = function (selectionModel) {
|
|
3321
2013
|
pectin.assert.isNil(this.selectionColumnModel);
|
|
@@ -3329,9 +2021,6 @@
|
|
|
3329
2021
|
TableModel.prototype.addCustomColumn = function (columnId, dataAccessor) {
|
|
3330
2022
|
return this.addColumn(new CustomValueColumnModel(columnId, this, dataAccessor));
|
|
3331
2023
|
};
|
|
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
2024
|
TableModel.prototype.addTemplateColumn = function (columnId) {
|
|
3336
2025
|
return this.addColumn(new CustomTemplateColumnModel(columnId, this));
|
|
3337
2026
|
};
|
|
@@ -3360,14 +2049,12 @@
|
|
|
3360
2049
|
}
|
|
3361
2050
|
return column;
|
|
3362
2051
|
};
|
|
3363
|
-
// removeColumn(column: ColumnModel<Row>) {
|
|
3364
|
-
//
|
|
3365
|
-
// }
|
|
3366
2052
|
TableModel.prototype.columnTextProperties = function (columnTextProperties) {
|
|
3367
2053
|
this._columnTextPropertiesLookup = columnTextProperties;
|
|
3368
2054
|
};
|
|
3369
2055
|
TableModel.prototype.getColumnTextProperties = function (column) {
|
|
3370
|
-
|
|
2056
|
+
var factory = this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
|
|
2057
|
+
return factory ? factory() : undefined;
|
|
3371
2058
|
};
|
|
3372
2059
|
TableModel.prototype.startEditSession = function (row) {
|
|
3373
2060
|
var _this = this;
|
|
@@ -3485,7 +2172,7 @@
|
|
|
3485
2172
|
TableComponent = __decorate([
|
|
3486
2173
|
core.Component({
|
|
3487
2174
|
selector: 'aup-table',
|
|
3488
|
-
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.
|
|
2175
|
+
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
2176
|
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]
|
|
3490
2177
|
}),
|
|
3491
2178
|
__metadata("design:paramtypes", [])
|
|
@@ -3668,63 +2355,6 @@
|
|
|
3668
2355
|
return TableHeaderCellRendererComponent;
|
|
3669
2356
|
}());
|
|
3670
2357
|
|
|
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
2358
|
var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
3729
2359
|
__extends(VerticalFocusContainerComponent, _super);
|
|
3730
2360
|
function VerticalFocusContainerComponent(focusManager) {
|
|
@@ -3810,6 +2440,100 @@
|
|
|
3810
2440
|
return VerticalFocusContainerComponent;
|
|
3811
2441
|
}(FocusContainerComponent));
|
|
3812
2442
|
|
|
2443
|
+
var MultipleSelectInputComponent = /** @class */ (function (_super) {
|
|
2444
|
+
__extends(MultipleSelectInputComponent, _super);
|
|
2445
|
+
function MultipleSelectInputComponent() {
|
|
2446
|
+
var _this = _super.call(this) || this;
|
|
2447
|
+
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2448
|
+
return _this;
|
|
2449
|
+
}
|
|
2450
|
+
MultipleSelectInputComponent.prototype.ngOnInit = function () {
|
|
2451
|
+
};
|
|
2452
|
+
__decorate([
|
|
2453
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
2454
|
+
__metadata("design:type", Object)
|
|
2455
|
+
], MultipleSelectInputComponent.prototype, "listModel", void 0);
|
|
2456
|
+
__decorate([
|
|
2457
|
+
core.Input(), pectin.TrackExternal(),
|
|
2458
|
+
__metadata("design:type", pectin.ListModel)
|
|
2459
|
+
], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
|
|
2460
|
+
__decorate([
|
|
2461
|
+
core.Input(), pectin.StoreInListModel('optionsModel'),
|
|
2462
|
+
__metadata("design:type", Array)
|
|
2463
|
+
], MultipleSelectInputComponent.prototype, "options", void 0);
|
|
2464
|
+
__decorate([
|
|
2465
|
+
core.Input(),
|
|
2466
|
+
__metadata("design:type", Object)
|
|
2467
|
+
], MultipleSelectInputComponent.prototype, "optionLabel", void 0);
|
|
2468
|
+
__decorate([
|
|
2469
|
+
core.Input(),
|
|
2470
|
+
__metadata("design:type", Boolean)
|
|
2471
|
+
], MultipleSelectInputComponent.prototype, "allowNil", void 0);
|
|
2472
|
+
__decorate([
|
|
2473
|
+
core.ContentChild('optionTemplate'),
|
|
2474
|
+
__metadata("design:type", core.TemplateRef)
|
|
2475
|
+
], MultipleSelectInputComponent.prototype, "optionTemplateRef", void 0);
|
|
2476
|
+
__decorate([
|
|
2477
|
+
core.ContentChild('nilOptionTemplate'),
|
|
2478
|
+
__metadata("design:type", core.TemplateRef)
|
|
2479
|
+
], MultipleSelectInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
2480
|
+
__decorate([
|
|
2481
|
+
core.Input(),
|
|
2482
|
+
__metadata("design:type", Function)
|
|
2483
|
+
], MultipleSelectInputComponent.prototype, "optionLabelFormat", void 0);
|
|
2484
|
+
MultipleSelectInputComponent = __decorate([
|
|
2485
|
+
core.Component({
|
|
2486
|
+
selector: 'aup-multiple-select-input',
|
|
2487
|
+
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",
|
|
2488
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
2489
|
+
}),
|
|
2490
|
+
__metadata("design:paramtypes", [])
|
|
2491
|
+
], MultipleSelectInputComponent);
|
|
2492
|
+
return MultipleSelectInputComponent;
|
|
2493
|
+
}(AbstractListInputComponent));
|
|
2494
|
+
|
|
2495
|
+
var IconComponent = /** @class */ (function () {
|
|
2496
|
+
function IconComponent() {
|
|
2497
|
+
}
|
|
2498
|
+
Object.defineProperty(IconComponent.prototype, "icon", {
|
|
2499
|
+
get: function () {
|
|
2500
|
+
return this._icon;
|
|
2501
|
+
},
|
|
2502
|
+
set: function (iconName) {
|
|
2503
|
+
this._icon = iconName;
|
|
2504
|
+
if (!iconName) {
|
|
2505
|
+
this.errorMessage = 'icon is nil';
|
|
2506
|
+
this.prefix = undefined;
|
|
2507
|
+
return;
|
|
2508
|
+
}
|
|
2509
|
+
var colonIndex = iconName.indexOf(':');
|
|
2510
|
+
if (colonIndex > 0) {
|
|
2511
|
+
this.prefix = this.icon.slice(0, colonIndex);
|
|
2512
|
+
this.suffix = this.icon.slice(colonIndex + 1);
|
|
2513
|
+
}
|
|
2514
|
+
if (this.prefix) {
|
|
2515
|
+
this.errorMessage = "Unknown icon \"" + iconName + "\"";
|
|
2516
|
+
}
|
|
2517
|
+
this.errorMessage = "Unknown icon prefix \"" + this.prefix + "\"";
|
|
2518
|
+
},
|
|
2519
|
+
enumerable: true,
|
|
2520
|
+
configurable: true
|
|
2521
|
+
});
|
|
2522
|
+
__decorate([
|
|
2523
|
+
core.Input(),
|
|
2524
|
+
__metadata("design:type", String),
|
|
2525
|
+
__metadata("design:paramtypes", [String])
|
|
2526
|
+
], IconComponent.prototype, "icon", null);
|
|
2527
|
+
IconComponent = __decorate([
|
|
2528
|
+
core.Component({
|
|
2529
|
+
selector: 'aup-icon',
|
|
2530
|
+
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",
|
|
2531
|
+
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}"]
|
|
2532
|
+
})
|
|
2533
|
+
], IconComponent);
|
|
2534
|
+
return IconComponent;
|
|
2535
|
+
}());
|
|
2536
|
+
|
|
3813
2537
|
var ComponentsModule = /** @class */ (function () {
|
|
3814
2538
|
function ComponentsModule(faIconLibrary) {
|
|
3815
2539
|
faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
|
|
@@ -3828,8 +2552,6 @@
|
|
|
3828
2552
|
TextInputComponent,
|
|
3829
2553
|
PasswordInputComponent,
|
|
3830
2554
|
SelectInputComponent,
|
|
3831
|
-
MultipleSelectInputComponent,
|
|
3832
|
-
AutocompleteInputComponent,
|
|
3833
2555
|
CheckboxInputComponent,
|
|
3834
2556
|
ScrollContainerComponent,
|
|
3835
2557
|
NoopComponent,
|
|
@@ -3849,19 +2571,9 @@
|
|
|
3849
2571
|
SelectHeaderCellRendererComponent,
|
|
3850
2572
|
DefaultHeaderCellRendererComponent,
|
|
3851
2573
|
TableHeaderCellRendererComponent,
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
ToolBarComponent,
|
|
3856
|
-
CommandComponent,
|
|
3857
|
-
PopupMenuComponent,
|
|
3858
|
-
CommandGroupComponent,
|
|
3859
|
-
CommandFaceComponent,
|
|
3860
|
-
MoreMenuComponent,
|
|
3861
|
-
SeparatorComponent,
|
|
3862
|
-
FlexComponent,
|
|
3863
|
-
CommandGroupMenuRendererComponent,
|
|
3864
|
-
CommandGroupRendererComponent
|
|
2574
|
+
MultipleSelectInputComponent,
|
|
2575
|
+
IconComponent,
|
|
2576
|
+
SectionHeaderComponent
|
|
3865
2577
|
],
|
|
3866
2578
|
imports: [
|
|
3867
2579
|
common.CommonModule,
|
|
@@ -3879,10 +2591,7 @@
|
|
|
3879
2591
|
portal.PortalModule,
|
|
3880
2592
|
scrolling.CdkScrollableModule,
|
|
3881
2593
|
angularFontawesome.FontAwesomeModule,
|
|
3882
|
-
tooltip.MatTooltipModule
|
|
3883
|
-
autocomplete.MatAutocompleteModule,
|
|
3884
|
-
menu.MatMenuModule,
|
|
3885
|
-
divider.MatDividerModule
|
|
2594
|
+
tooltip.MatTooltipModule
|
|
3886
2595
|
],
|
|
3887
2596
|
exports: [
|
|
3888
2597
|
NumberInputComponent,
|
|
@@ -3891,8 +2600,6 @@
|
|
|
3891
2600
|
PasswordInputComponent,
|
|
3892
2601
|
CheckboxInputComponent,
|
|
3893
2602
|
SelectInputComponent,
|
|
3894
|
-
MultipleSelectInputComponent,
|
|
3895
|
-
AutocompleteInputComponent,
|
|
3896
2603
|
ScrollContainerComponent,
|
|
3897
2604
|
NoopComponent,
|
|
3898
2605
|
SwitchCaseComponent,
|
|
@@ -3905,20 +2612,12 @@
|
|
|
3905
2612
|
TableComponent,
|
|
3906
2613
|
EditRowControls,
|
|
3907
2614
|
ColumnTemplateDirective,
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
CommandGroupComponent,
|
|
3912
|
-
ToolBarComponent,
|
|
3913
|
-
CommandComponent,
|
|
3914
|
-
PopupMenuComponent,
|
|
3915
|
-
CommandFaceComponent,
|
|
3916
|
-
MoreMenuComponent,
|
|
3917
|
-
SeparatorComponent,
|
|
3918
|
-
FlexComponent
|
|
2615
|
+
MultipleSelectInputComponent,
|
|
2616
|
+
IconComponent,
|
|
2617
|
+
SectionHeaderComponent
|
|
3919
2618
|
],
|
|
3920
2619
|
providers: [
|
|
3921
|
-
FocusBindingFactory
|
|
2620
|
+
FocusBindingFactory,
|
|
3922
2621
|
]
|
|
3923
2622
|
}),
|
|
3924
2623
|
__metadata("design:paramtypes", [angularFontawesome.FaIconLibrary])
|
|
@@ -3997,7 +2696,7 @@
|
|
|
3997
2696
|
core.Component({
|
|
3998
2697
|
selector: 'aup-activity-actions',
|
|
3999
2698
|
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}.
|
|
2699
|
+
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
2700
|
})
|
|
4002
2701
|
], ActivityActionsComponent);
|
|
4003
2702
|
return ActivityActionsComponent;
|
|
@@ -4009,27 +2708,13 @@
|
|
|
4009
2708
|
function Activity() {
|
|
4010
2709
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
4011
2710
|
_this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
|
|
4012
|
-
_this._focusedModel = _this.registerDisposable(new pectin.DelegatingValueModel());
|
|
4013
2711
|
_this.class = 'aup-activity';
|
|
4014
2712
|
return _this;
|
|
4015
2713
|
}
|
|
4016
|
-
Object.defineProperty(Activity.prototype, "isFocused", {
|
|
4017
|
-
get: function () {
|
|
4018
|
-
return this._focusedModel.value;
|
|
4019
|
-
},
|
|
4020
|
-
enumerable: true,
|
|
4021
|
-
configurable: true
|
|
4022
|
-
});
|
|
4023
2714
|
Activity.prototype.initialise = function (nestedInteractionContext, activityContext) {
|
|
4024
|
-
var _this = this;
|
|
4025
|
-
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when;
|
|
4026
2715
|
typescriptUtilities.assert.isNil(this._activityContext);
|
|
4027
2716
|
this._activityContext = activityContext;
|
|
4028
2717
|
this._interactionContext = nestedInteractionContext;
|
|
4029
|
-
this._focusedModel.setDelegate(activityContext.focused);
|
|
4030
|
-
when(this._focusedModel).becomesTruthy(function () {
|
|
4031
|
-
_this.onActivityReady();
|
|
4032
|
-
});
|
|
4033
2718
|
};
|
|
4034
2719
|
Object.defineProperty(Activity.prototype, "interactionContext", {
|
|
4035
2720
|
get: function () {
|
|
@@ -4055,13 +2740,6 @@
|
|
|
4055
2740
|
enumerable: true,
|
|
4056
2741
|
configurable: true
|
|
4057
2742
|
});
|
|
4058
|
-
Object.defineProperty(Activity.prototype, "focused", {
|
|
4059
|
-
get: function () {
|
|
4060
|
-
return this._focusedModel.readonly;
|
|
4061
|
-
},
|
|
4062
|
-
enumerable: true,
|
|
4063
|
-
configurable: true
|
|
4064
|
-
});
|
|
4065
2743
|
Activity.prototype.busyWhile = function (busyModel) {
|
|
4066
2744
|
this._busyModel.setDelegate(busyModel);
|
|
4067
2745
|
};
|
|
@@ -4075,11 +2753,6 @@
|
|
|
4075
2753
|
core.HostBinding('class'),
|
|
4076
2754
|
__metadata("design:type", Object)
|
|
4077
2755
|
], 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
2756
|
return Activity;
|
|
4084
2757
|
}(DisposableComponent));
|
|
4085
2758
|
|
|
@@ -4218,7 +2891,6 @@
|
|
|
4218
2891
|
this.onComplete = onComplete;
|
|
4219
2892
|
this._complete = false;
|
|
4220
2893
|
this.deferredResult = pectin.Deferred.defer();
|
|
4221
|
-
this.focusedModel = new pectin.MutableValueModel();
|
|
4222
2894
|
}
|
|
4223
2895
|
ActivityRef.prototype.isActivityRealised = function () {
|
|
4224
2896
|
return !!this._activity;
|
|
@@ -4234,16 +2906,6 @@
|
|
|
4234
2906
|
enumerable: true,
|
|
4235
2907
|
configurable: true
|
|
4236
2908
|
});
|
|
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
2909
|
ActivityRef.prototype.notifyActivityCreated = function (activity, nestedInteractionContext) {
|
|
4248
2910
|
pectin.assert.isNil(this._activity);
|
|
4249
2911
|
this._activity = activity;
|
|
@@ -4254,8 +2916,7 @@
|
|
|
4254
2916
|
},
|
|
4255
2917
|
onCancel: function (error) {
|
|
4256
2918
|
self.finishActivity(function (deferred) { return deferred.reject(error); });
|
|
4257
|
-
}
|
|
4258
|
-
focused: this.focusedModel.readonly
|
|
2919
|
+
}
|
|
4259
2920
|
});
|
|
4260
2921
|
};
|
|
4261
2922
|
ActivityRef.prototype.finishActivity = function (resolveOrReject) {
|
|
@@ -4293,7 +2954,7 @@
|
|
|
4293
2954
|
},
|
|
4294
2955
|
set: function (activityRef) {
|
|
4295
2956
|
if (this.activityRef && !this.activityRef.isComplete()) {
|
|
4296
|
-
typescriptUtilities.lang.illegalState(
|
|
2957
|
+
typescriptUtilities.lang.illegalState("changing activity before previous one has completed");
|
|
4297
2958
|
}
|
|
4298
2959
|
this._activityRef = activityRef;
|
|
4299
2960
|
this.loadActivity(activityRef);
|
|
@@ -4356,9 +3017,8 @@
|
|
|
4356
3017
|
function ActivityContainerComponent() {
|
|
4357
3018
|
var _this = _super.call(this) || this;
|
|
4358
3019
|
_this.dynamicHeight = false;
|
|
4359
|
-
_this.
|
|
3020
|
+
_this.activityTabs = [];
|
|
4360
3021
|
_this.garbage = new pectin.GarbageCollector();
|
|
4361
|
-
_this.inAnimation = new pectin.MutableValueModel(false);
|
|
4362
3022
|
return _this;
|
|
4363
3023
|
}
|
|
4364
3024
|
ActivityContainerComponent.prototype.ngOnInit = function () {
|
|
@@ -4396,7 +3056,6 @@
|
|
|
4396
3056
|
ActivityContainerComponent.prototype.registerDisposable = function (disposable) {
|
|
4397
3057
|
return this.garbage.registerDisposable(disposable);
|
|
4398
3058
|
};
|
|
4399
|
-
// @Trace()
|
|
4400
3059
|
ActivityContainerComponent.prototype.dispose = function () {
|
|
4401
3060
|
// TODO: think about auto cancelling any outstanding activity on dispose.
|
|
4402
3061
|
// See NavigationState.Navigating for a use-case.
|
|
@@ -4407,7 +3066,7 @@
|
|
|
4407
3066
|
if (!this.isActive()) {
|
|
4408
3067
|
typescriptUtilities.lang.illegalState('no activity in progress');
|
|
4409
3068
|
}
|
|
4410
|
-
return ___default__default.findLast(this.
|
|
3069
|
+
return ___default__default.findLast(this.activityTabs, function (tab) { return !tab.isComplete(); });
|
|
4411
3070
|
};
|
|
4412
3071
|
/**
|
|
4413
3072
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
@@ -4446,14 +3105,14 @@
|
|
|
4446
3105
|
});
|
|
4447
3106
|
this.launchActivity(activityRef);
|
|
4448
3107
|
// if this is the first activity let the interaction service know.
|
|
4449
|
-
if (this.
|
|
3108
|
+
if (this.activityTabs.length === 1) {
|
|
4450
3109
|
// console.log('Now active!!!');
|
|
4451
3110
|
this.interactionServiceApi.notifyActive(this);
|
|
4452
3111
|
}
|
|
4453
3112
|
return activityRef.activityResult;
|
|
4454
3113
|
};
|
|
4455
3114
|
ActivityContainerComponent.prototype.getActiveActivityCount = function () {
|
|
4456
|
-
return this.
|
|
3115
|
+
return this.activityTabs.filter(function (ref) { return !ref.isComplete(); }).length;
|
|
4457
3116
|
};
|
|
4458
3117
|
/**
|
|
4459
3118
|
* Checks if this interaction context has finished an is in the process of waiting
|
|
@@ -4480,7 +3139,7 @@
|
|
|
4480
3139
|
// Without this our animation done wasn't called when a single
|
|
4481
3140
|
// new activity followed a single tab activity (since we're tracking
|
|
4482
3141
|
// by activity index)
|
|
4483
|
-
this.
|
|
3142
|
+
this.activityTabs = [];
|
|
4484
3143
|
var promise = this.interactionServiceApi.notifyFinished(this);
|
|
4485
3144
|
this._deferredCleanUp = promise
|
|
4486
3145
|
.finally(function () {
|
|
@@ -4490,15 +3149,14 @@
|
|
|
4490
3149
|
};
|
|
4491
3150
|
// @Trace()
|
|
4492
3151
|
ActivityContainerComponent.prototype.launchActivity = function (activityRef) {
|
|
4493
|
-
var cleanedTabs = this.
|
|
4494
|
-
this.
|
|
3152
|
+
var cleanedTabs = this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
|
|
3153
|
+
this.activityTabs = cleanedTabs.concat(activityRef);
|
|
4495
3154
|
this.synchroniseSelectedTabIndex();
|
|
4496
3155
|
};
|
|
4497
3156
|
ActivityContainerComponent.prototype.activityIndex = function (index, activityRef) {
|
|
4498
3157
|
return index;
|
|
4499
3158
|
};
|
|
4500
3159
|
;
|
|
4501
|
-
// @Trace()
|
|
4502
3160
|
ActivityContainerComponent.prototype.onAnimationFinished = function () {
|
|
4503
3161
|
if (this.onAnimationFinishedJob) {
|
|
4504
3162
|
this.onAnimationFinishedJob();
|
|
@@ -4508,21 +3166,15 @@
|
|
|
4508
3166
|
/**
|
|
4509
3167
|
* Synchronises the selected tab index.
|
|
4510
3168
|
*/
|
|
4511
|
-
// @Trace()
|
|
4512
3169
|
ActivityContainerComponent.prototype.synchroniseSelectedTabIndex = function () {
|
|
4513
3170
|
var _this = this;
|
|
4514
3171
|
var previousIndex = this.tabs.selectedIndex;
|
|
4515
3172
|
var newIndex = this.getActiveActivityCount() - 1;
|
|
4516
3173
|
if (previousIndex !== newIndex) {
|
|
4517
|
-
this.inAnimation.value = true;
|
|
4518
|
-
this.activityRefs[newIndex].setFocused(false);
|
|
4519
3174
|
this.tabs.selectedIndex = newIndex;
|
|
4520
3175
|
this.onAnimationFinishedJob = function () {
|
|
4521
|
-
_this.
|
|
4522
|
-
_this.
|
|
4523
|
-
_this.activityRefs.forEach(function (ref, index) {
|
|
4524
|
-
ref.setFocused(index === newIndex);
|
|
4525
|
-
});
|
|
3176
|
+
_this.getSelectedOutlet().component.onActivityReady();
|
|
3177
|
+
_this.activityTabs = _this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
|
|
4526
3178
|
};
|
|
4527
3179
|
}
|
|
4528
3180
|
};
|
|
@@ -4530,10 +3182,6 @@
|
|
|
4530
3182
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
4531
3183
|
};
|
|
4532
3184
|
// @Trace()
|
|
4533
|
-
ActivityContainerComponent.prototype.getSelectedTabIndex = function () {
|
|
4534
|
-
return this.tabs.selectedIndex;
|
|
4535
|
-
};
|
|
4536
|
-
// @Trace()
|
|
4537
3185
|
ActivityContainerComponent.prototype.triggerTabSynchronisation = function () {
|
|
4538
3186
|
var _this = this;
|
|
4539
3187
|
if (this.syncSelectedTabTimeout) {
|
|
@@ -4556,10 +3204,16 @@
|
|
|
4556
3204
|
core.ViewChildren(ActivityOutletComponent),
|
|
4557
3205
|
__metadata("design:type", core.QueryList)
|
|
4558
3206
|
], ActivityContainerComponent.prototype, "activityOutlets", void 0);
|
|
3207
|
+
__decorate([
|
|
3208
|
+
pectin.Trace(),
|
|
3209
|
+
__metadata("design:type", Function),
|
|
3210
|
+
__metadata("design:paramtypes", []),
|
|
3211
|
+
__metadata("design:returntype", void 0)
|
|
3212
|
+
], ActivityContainerComponent.prototype, "dispose", null);
|
|
4559
3213
|
ActivityContainerComponent = __decorate([
|
|
4560
3214
|
core.Component({
|
|
4561
3215
|
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
|
|
3216
|
+
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
3217
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4564
3218
|
}),
|
|
4565
3219
|
__metadata("design:paramtypes", [])
|
|
@@ -4604,7 +3258,7 @@
|
|
|
4604
3258
|
}());
|
|
4605
3259
|
|
|
4606
3260
|
var inplaceMonitorCount = 0;
|
|
4607
|
-
exports.ɵ
|
|
3261
|
+
exports.ɵbv = /** @class */ (function () {
|
|
4608
3262
|
function InteractionService(modelInteractionContextFactory) {
|
|
4609
3263
|
this.modelInteractionContextFactory = modelInteractionContextFactory;
|
|
4610
3264
|
this.garbage = new pectin.GarbageCollector();
|
|
@@ -4749,7 +3403,7 @@
|
|
|
4749
3403
|
return ApiAdapter;
|
|
4750
3404
|
}());
|
|
4751
3405
|
InteractionService.ApiAdapter = ApiAdapter;
|
|
4752
|
-
})(exports.ɵ
|
|
3406
|
+
})(exports.ɵbv || (exports.ɵbv = {}));
|
|
4753
3407
|
|
|
4754
3408
|
var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
|
|
4755
3409
|
__extends(InPlaceInteractionContextComponent, _super);
|
|
@@ -4807,7 +3461,7 @@
|
|
|
4807
3461
|
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
4808
3462
|
};
|
|
4809
3463
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
4810
|
-
{ type: exports.ɵ
|
|
3464
|
+
{ type: exports.ɵbv },
|
|
4811
3465
|
{ type: undefined, decorators: [{ type: core.Inject, args: [tabs.MAT_TABS_CONFIG,] }, { type: core.Optional }] }
|
|
4812
3466
|
]; };
|
|
4813
3467
|
__decorate([
|
|
@@ -4825,7 +3479,7 @@
|
|
|
4825
3479
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4826
3480
|
}),
|
|
4827
3481
|
__param(1, core.Inject(tabs.MAT_TABS_CONFIG)), __param(1, core.Optional()),
|
|
4828
|
-
__metadata("design:paramtypes", [exports.ɵ
|
|
3482
|
+
__metadata("design:paramtypes", [exports.ɵbv, Object])
|
|
4829
3483
|
], InPlaceInteractionContextComponent);
|
|
4830
3484
|
return InPlaceInteractionContextComponent;
|
|
4831
3485
|
}(DisposableComponent));
|
|
@@ -5364,7 +4018,7 @@
|
|
|
5364
4018
|
AlertDialogComponent
|
|
5365
4019
|
],
|
|
5366
4020
|
providers: [
|
|
5367
|
-
exports.ɵ
|
|
4021
|
+
exports.ɵbv
|
|
5368
4022
|
// {
|
|
5369
4023
|
// provide: MAT_TABS_CONFIG, useValue: { animationDuration: "2s" }
|
|
5370
4024
|
// }
|
|
@@ -5630,9 +4284,6 @@
|
|
|
5630
4284
|
var _this = _super.call(this) || this;
|
|
5631
4285
|
_this.visitModel = new pectin.MutableValueModel();
|
|
5632
4286
|
_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
4287
|
return _this;
|
|
5637
4288
|
}
|
|
5638
4289
|
PlaceComponent_1 = PlaceComponent;
|
|
@@ -5642,7 +4293,7 @@
|
|
|
5642
4293
|
pectin.assert.isNil(this.visitModel.value);
|
|
5643
4294
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
5644
4295
|
this.visitModel.value = visit;
|
|
5645
|
-
pectin.DebugContext.
|
|
4296
|
+
pectin.DebugContext.get(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
|
|
5646
4297
|
this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
|
|
5647
4298
|
when.valueOf(this.visitModel).changes(function (current, previous) {
|
|
5648
4299
|
notifyVisitChanged(current, previous);
|
|
@@ -5690,19 +4341,6 @@
|
|
|
5690
4341
|
enumerable: true,
|
|
5691
4342
|
configurable: true
|
|
5692
4343
|
});
|
|
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
4344
|
PlaceComponent.prototype.onPlaceReady = function () {
|
|
5707
4345
|
};
|
|
5708
4346
|
var PlaceComponent_1;
|
|
@@ -6502,7 +5140,7 @@
|
|
|
6502
5140
|
return PopStateNavigation;
|
|
6503
5141
|
}(AbstractPopStateNavigation));
|
|
6504
5142
|
|
|
6505
|
-
exports.ɵ
|
|
5143
|
+
exports.ɵby = /** @class */ (function () {
|
|
6506
5144
|
function PlaceHistory() {
|
|
6507
5145
|
this._archive = new Map();
|
|
6508
5146
|
this.placeHistoryDepth = 4;
|
|
@@ -6639,7 +5277,7 @@
|
|
|
6639
5277
|
// }
|
|
6640
5278
|
//
|
|
6641
5279
|
// }
|
|
6642
|
-
})(exports.ɵ
|
|
5280
|
+
})(exports.ɵby || (exports.ɵby = {}));
|
|
6643
5281
|
|
|
6644
5282
|
exports.UrlSnapshot = /** @class */ (function () {
|
|
6645
5283
|
// TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
|
|
@@ -6803,6 +5441,75 @@
|
|
|
6803
5441
|
return UrlService;
|
|
6804
5442
|
}());
|
|
6805
5443
|
|
|
5444
|
+
var Visit = /** @class */ (function () {
|
|
5445
|
+
function Visit(placeDefinition, visitParameters) {
|
|
5446
|
+
if (visitParameters === void 0) { visitParameters = {}; }
|
|
5447
|
+
this.placeDefinition = placeDefinition;
|
|
5448
|
+
this.visitParameters = visitParameters;
|
|
5449
|
+
}
|
|
5450
|
+
// @Trace()
|
|
5451
|
+
Visit.prototype.getRouteId = function () {
|
|
5452
|
+
return this.placeDefinition.getRouteIdFrom(this);
|
|
5453
|
+
};
|
|
5454
|
+
// @Trace()
|
|
5455
|
+
Visit.prototype.hasRouteId = function () {
|
|
5456
|
+
return !___default.isNil(this.getRouteId());
|
|
5457
|
+
};
|
|
5458
|
+
/**
|
|
5459
|
+
* Returns the value of the place parameter with the specified name. The parameter
|
|
5460
|
+
* name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
|
|
5461
|
+
* same as the the ValueModel property name.
|
|
5462
|
+
* @param parameterName the field name of the property model or the `as` option if specified.
|
|
5463
|
+
*/
|
|
5464
|
+
Visit.prototype.getParameter = function (parameterName) {
|
|
5465
|
+
return this.visitParameters[parameterName];
|
|
5466
|
+
};
|
|
5467
|
+
// @Trace()
|
|
5468
|
+
Visit.prototype.hasParameter = function (parameterName) {
|
|
5469
|
+
return Object.keys(this.visitParameters).includes(parameterName);
|
|
5470
|
+
};
|
|
5471
|
+
Visit.prototype.replace = function (parameter, value) {
|
|
5472
|
+
var _a;
|
|
5473
|
+
return new Visit(this.placeDefinition, __assign(__assign({}, this.visitParameters), (_a = {}, _a[parameter.name] = value, _a)));
|
|
5474
|
+
};
|
|
5475
|
+
Visit.prototype.mergeRouteParameters = function (routeParams) {
|
|
5476
|
+
var _this = this;
|
|
5477
|
+
// todo: whitelist parameters.
|
|
5478
|
+
var routeParameterKeys = Object.keys(routeParams);
|
|
5479
|
+
var params = {};
|
|
5480
|
+
this.placeDefinition.getVisitParameterDefs().forEach(function (def) {
|
|
5481
|
+
if (def.isRouteId || def.isRouteParameter) {
|
|
5482
|
+
if (routeParameterKeys.includes(def.name)) {
|
|
5483
|
+
params[def.name] = routeParams[def.name];
|
|
5484
|
+
}
|
|
5485
|
+
}
|
|
5486
|
+
else {
|
|
5487
|
+
// copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the
|
|
5488
|
+
// defaults and remember sanitisation process.
|
|
5489
|
+
var value = _this.getParameter(def.name);
|
|
5490
|
+
if (_this.hasParameter(def.name)) {
|
|
5491
|
+
params[def.name] = value;
|
|
5492
|
+
}
|
|
5493
|
+
}
|
|
5494
|
+
});
|
|
5495
|
+
return new Visit(this.placeDefinition, params);
|
|
5496
|
+
};
|
|
5497
|
+
Visit.prototype.hasRoutingChangedFrom = function (other) {
|
|
5498
|
+
var samePlace = other.placeDefinition === this.placeDefinition;
|
|
5499
|
+
var sameRouteParameters = ___default.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
|
|
5500
|
+
return !samePlace || !sameRouteParameters;
|
|
5501
|
+
};
|
|
5502
|
+
Visit.prototype.hasChangedFrom = function (other) {
|
|
5503
|
+
var sameNonRouteParameters = ___default.isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
|
|
5504
|
+
return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
|
|
5505
|
+
};
|
|
5506
|
+
Visit.prototype.toDebugString = function () {
|
|
5507
|
+
var _this = this;
|
|
5508
|
+
return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(",");
|
|
5509
|
+
};
|
|
5510
|
+
return Visit;
|
|
5511
|
+
}());
|
|
5512
|
+
|
|
6806
5513
|
var PlaceRouter = /** @class */ (function (_super) {
|
|
6807
5514
|
__extends(PlaceRouter, _super);
|
|
6808
5515
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -6998,7 +5705,6 @@
|
|
|
6998
5705
|
enumerable: true,
|
|
6999
5706
|
configurable: true
|
|
7000
5707
|
});
|
|
7001
|
-
// @Trace()
|
|
7002
5708
|
PlaceRouter.prototype.pushVisitChangesToRoute = function (previous, next) {
|
|
7003
5709
|
return __awaiter(this, void 0, void 0, function () {
|
|
7004
5710
|
var _this = this;
|
|
@@ -7094,93 +5800,30 @@
|
|
|
7094
5800
|
PlaceRouter.ctorParameters = function () { return [
|
|
7095
5801
|
{ type: router.Router },
|
|
7096
5802
|
{ type: common.Location },
|
|
7097
|
-
{ type: exports.ɵ
|
|
5803
|
+
{ type: exports.ɵbv },
|
|
7098
5804
|
{ type: UrlService },
|
|
7099
|
-
{ type: exports.ɵ
|
|
5805
|
+
{ type: exports.ɵby }
|
|
7100
5806
|
]; };
|
|
7101
|
-
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵ
|
|
5807
|
+
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" });
|
|
5808
|
+
__decorate([
|
|
5809
|
+
pectin.Trace(),
|
|
5810
|
+
__metadata("design:type", Function),
|
|
5811
|
+
__metadata("design:paramtypes", [Visit, Visit]),
|
|
5812
|
+
__metadata("design:returntype", Promise)
|
|
5813
|
+
], PlaceRouter.prototype, "pushVisitChangesToRoute", null);
|
|
7102
5814
|
PlaceRouter = __decorate([
|
|
7103
5815
|
core.Injectable({
|
|
7104
5816
|
providedIn: 'root'
|
|
7105
5817
|
}),
|
|
7106
5818
|
__metadata("design:paramtypes", [router.Router,
|
|
7107
5819
|
common.Location,
|
|
7108
|
-
exports.ɵ
|
|
5820
|
+
exports.ɵbv,
|
|
7109
5821
|
UrlService,
|
|
7110
|
-
exports.ɵ
|
|
5822
|
+
exports.ɵby])
|
|
7111
5823
|
], PlaceRouter);
|
|
7112
5824
|
return PlaceRouter;
|
|
7113
5825
|
}(pectin.GarbageCollector));
|
|
7114
5826
|
|
|
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
5827
|
var AUP_PLACE_CONFIG = new core.InjectionToken('AUP_PLACE_CONFIG');
|
|
7185
5828
|
|
|
7186
5829
|
// Freezes the state of the components at the start of the animation.
|
|
@@ -7240,7 +5883,6 @@
|
|
|
7240
5883
|
_this._activePlaceModel = new pectin.MutableValueModel();
|
|
7241
5884
|
_this.initialPlaceIndex = null;
|
|
7242
5885
|
_this._isPushingVisitToRoute = new pectin.MutableValueModel(false);
|
|
7243
|
-
_this.isVeryFirstLoad = true;
|
|
7244
5886
|
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
5887
|
_this.parentOutletModel = new pectin.MutableValueModel(parentOutlet);
|
|
7246
5888
|
var defaultPlaceAnimationOrder = chain(_this.parentOutletModel)
|
|
@@ -7249,9 +5891,8 @@
|
|
|
7249
5891
|
.pluckList('children')
|
|
7250
5892
|
.pluck('component');
|
|
7251
5893
|
var activatePlaceType = chain(_this.activePlaceModel).map(function (p) { return p.constructor; });
|
|
7252
|
-
_this.
|
|
7253
|
-
.otherwise(defaultPlaceAnimationOrder)
|
|
7254
|
-
_this.activePlaceAnimationPosition = _this.placesInAnimationOrder
|
|
5894
|
+
_this.placeAnimationOrder = chain(_this.customPlaceAnimationOrderModel)
|
|
5895
|
+
.otherwise(defaultPlaceAnimationOrder)
|
|
7255
5896
|
.reduce(function (placesInOrder) {
|
|
7256
5897
|
var placeIndex = 0;
|
|
7257
5898
|
if (activatePlaceType.value) {
|
|
@@ -7262,16 +5903,14 @@
|
|
|
7262
5903
|
}
|
|
7263
5904
|
return ___default.isNil(_this.initialPlaceIndex) ? 0 : placeIndex - _this.initialPlaceIndex;
|
|
7264
5905
|
}, { dependsOn: activatePlaceType });
|
|
7265
|
-
_this.animationSupported = _this.placesInAnimationOrder.count().isGreaterThan(0);
|
|
7266
|
-
_this.animationEnabled = valueOf.all(_this.animateModel, _this.animationSupported).areTruthy();
|
|
7267
5906
|
// Extract our visit model from the place router.
|
|
7268
5907
|
_this._activePlaceDefinition = chain(_this._activePlaceModel).pluck('placeDefinition');
|
|
7269
5908
|
_this.routerVisitModel = _this._activePlaceDefinition.findIn(chain(placeRouter.activeVisitsByPlaceDefinition));
|
|
7270
5909
|
_this.navigationInProgress = chain(_this.placeRouter.navigationInProgress);
|
|
7271
|
-
when(_this.navigationInProgress).becomesFalsey(function () {
|
|
5910
|
+
when.valueOf(_this.navigationInProgress).becomesFalsey(function () {
|
|
7272
5911
|
_this.checkStateAndInitialise();
|
|
7273
5912
|
});
|
|
7274
|
-
when(_this.outletActivated).becomesTruthy(function () {
|
|
5913
|
+
when.valueOf(_this.outletActivated).becomesTruthy(function () {
|
|
7275
5914
|
_this.checkStateAndInitialise();
|
|
7276
5915
|
});
|
|
7277
5916
|
chain(_this._activePlaceModel)
|
|
@@ -7284,7 +5923,7 @@
|
|
|
7284
5923
|
};
|
|
7285
5924
|
// @Trace()
|
|
7286
5925
|
PlaceOutletComponent.prototype.getAnimationOrder = function () {
|
|
7287
|
-
return this.
|
|
5926
|
+
return this.placeAnimationOrder.value;
|
|
7288
5927
|
};
|
|
7289
5928
|
Object.defineProperty(PlaceOutletComponent.prototype, "animationDuration", {
|
|
7290
5929
|
get: function () {
|
|
@@ -7295,10 +5934,7 @@
|
|
|
7295
5934
|
});
|
|
7296
5935
|
// @Trace()
|
|
7297
5936
|
PlaceOutletComponent.prototype.navigate = function (visit) {
|
|
7298
|
-
//
|
|
7299
|
-
// if (!place) {
|
|
7300
|
-
// lang.illegalState()
|
|
7301
|
-
// }
|
|
5937
|
+
// console.log({ activatedRoute: this._activatedRouteModel.value });
|
|
7302
5938
|
this.placeRouter.navigate(visit, {
|
|
7303
5939
|
relativeTo: this.parentOutlet ? this.parentOutlet.activatedRouteModel.value : null
|
|
7304
5940
|
});
|
|
@@ -7324,25 +5960,14 @@
|
|
|
7324
5960
|
enumerable: true,
|
|
7325
5961
|
configurable: true
|
|
7326
5962
|
});
|
|
5963
|
+
// @Trace()
|
|
7327
5964
|
PlaceOutletComponent.prototype.onOutletActivated = function (routerOutlet, place) {
|
|
7328
5965
|
this._activatedRouteModel.value = routerOutlet.activatedRoute;
|
|
7329
5966
|
this._activePlaceModel.value = place;
|
|
7330
|
-
this.validateAnimationState(place);
|
|
7331
5967
|
this.outletActivated.value = true;
|
|
7332
5968
|
this.checkStateAndInitialise();
|
|
7333
5969
|
};
|
|
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
|
-
};
|
|
5970
|
+
// @Trace()
|
|
7346
5971
|
PlaceOutletComponent.prototype.onOutletDeactivated = function () {
|
|
7347
5972
|
this.outletActivated.value = false;
|
|
7348
5973
|
this._activePlaceModel.value = null;
|
|
@@ -7359,6 +5984,7 @@
|
|
|
7359
5984
|
this.initialisePlace(routerVisit, activePlace);
|
|
7360
5985
|
}
|
|
7361
5986
|
};
|
|
5987
|
+
// @Trace()
|
|
7362
5988
|
PlaceOutletComponent.prototype.initialisePlace = function (routerVisit, activePlace) {
|
|
7363
5989
|
var _this = this;
|
|
7364
5990
|
var visitModel = new pectin.MutableValueModel(routerVisit);
|
|
@@ -7366,18 +5992,9 @@
|
|
|
7366
5992
|
activePlace.initialiseVisit(routerVisit, function (current, previous) {
|
|
7367
5993
|
_this.pushVisitChangeToRoute(previous, current);
|
|
7368
5994
|
});
|
|
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;
|
|
5995
|
+
if (!this.animateModel.value) {
|
|
5996
|
+
// we're not animating so trigger any post animation callbacks now.
|
|
5997
|
+
this.animationDone();
|
|
7381
5998
|
}
|
|
7382
5999
|
var _a = pectin.Dsl.disposeWith(activePlace), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
|
|
7383
6000
|
when.valueOf(this.routerVisitModel)
|
|
@@ -7400,9 +6017,8 @@
|
|
|
7400
6017
|
};
|
|
7401
6018
|
// @Trace()
|
|
7402
6019
|
PlaceOutletComponent.prototype.animationDone = function () {
|
|
7403
|
-
if (this.
|
|
7404
|
-
this.
|
|
7405
|
-
this.onAnimationFinishedJob = undefined;
|
|
6020
|
+
if (this._activePlaceModel.value) {
|
|
6021
|
+
this._activePlaceModel.value.onPlaceReady();
|
|
7406
6022
|
}
|
|
7407
6023
|
};
|
|
7408
6024
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
@@ -7435,22 +6051,10 @@
|
|
|
7435
6051
|
core.ViewChild('routeOutlet', { static: true }),
|
|
7436
6052
|
__metadata("design:type", router.RouterOutlet)
|
|
7437
6053
|
], 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
6054
|
PlaceOutletComponent = __decorate([
|
|
7451
6055
|
core.Component({
|
|
7452
6056
|
selector: 'aup-place-outlet',
|
|
7453
|
-
template: "<ng-container *ngIf=\"
|
|
6057
|
+
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
6058
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
7455
6059
|
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
6060
|
}),
|
|
@@ -7481,10 +6085,10 @@
|
|
|
7481
6085
|
_this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
|
|
7482
6086
|
return _this;
|
|
7483
6087
|
}
|
|
7484
|
-
AbstractPlaceNavigationComponent.prototype.
|
|
6088
|
+
AbstractPlaceNavigationComponent.prototype.getNav = function (placeDef) {
|
|
7485
6089
|
var navItem = placeDef.getPlaceData('nav');
|
|
7486
6090
|
return {
|
|
7487
|
-
|
|
6091
|
+
title: function () { return navItem ? navItem.title() : placeDef.searchPlaceData(['navTitle', 'title']); },
|
|
7488
6092
|
tooltip: function () { return navItem && navItem.tooltip ? navItem.tooltip() : placeDef.getPlaceData('navTooltip', null); },
|
|
7489
6093
|
icon: function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); }
|
|
7490
6094
|
};
|
|
@@ -7518,7 +6122,7 @@
|
|
|
7518
6122
|
__metadata("design:type", Function),
|
|
7519
6123
|
__metadata("design:paramtypes", [PlaceDefinition]),
|
|
7520
6124
|
__metadata("design:returntype", Object)
|
|
7521
|
-
], AbstractPlaceNavigationComponent.prototype, "
|
|
6125
|
+
], AbstractPlaceNavigationComponent.prototype, "getNav", null);
|
|
7522
6126
|
AbstractPlaceNavigationComponent = __decorate([
|
|
7523
6127
|
core.Component({
|
|
7524
6128
|
template: ''
|
|
@@ -7579,7 +6183,7 @@
|
|
|
7579
6183
|
ListPlaceNavComponent = __decorate([
|
|
7580
6184
|
core.Component({
|
|
7581
6185
|
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]=\"
|
|
6186
|
+
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
6187
|
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
6188
|
}),
|
|
7585
6189
|
__metadata("design:paramtypes", [PlaceRouter])
|
|
@@ -7587,6 +6191,25 @@
|
|
|
7587
6191
|
return ListPlaceNavComponent;
|
|
7588
6192
|
}(AbstractPlaceNavigationComponent));
|
|
7589
6193
|
|
|
6194
|
+
var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
6195
|
+
__extends(TabbedPlaceNavigationComponent, _super);
|
|
6196
|
+
function TabbedPlaceNavigationComponent(placeRouter) {
|
|
6197
|
+
return _super.call(this, placeRouter) || this;
|
|
6198
|
+
}
|
|
6199
|
+
TabbedPlaceNavigationComponent.ctorParameters = function () { return [
|
|
6200
|
+
{ type: PlaceRouter }
|
|
6201
|
+
]; };
|
|
6202
|
+
TabbedPlaceNavigationComponent = __decorate([
|
|
6203
|
+
core.Component({
|
|
6204
|
+
selector: 'aup-tabbed-place-navigation',
|
|
6205
|
+
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",
|
|
6206
|
+
styles: [""]
|
|
6207
|
+
}),
|
|
6208
|
+
__metadata("design:paramtypes", [PlaceRouter])
|
|
6209
|
+
], TabbedPlaceNavigationComponent);
|
|
6210
|
+
return TabbedPlaceNavigationComponent;
|
|
6211
|
+
}(AbstractPlaceNavigationComponent));
|
|
6212
|
+
|
|
7590
6213
|
/**
|
|
7591
6214
|
* @example
|
|
7592
6215
|
* // Usage
|
|
@@ -7625,7 +6248,7 @@
|
|
|
7625
6248
|
* (at)Place({
|
|
7626
6249
|
* path: 'myPlace',
|
|
7627
6250
|
* data: {
|
|
7628
|
-
* nav: I18n.places.myPlace.nav
|
|
6251
|
+
* nav: I18n.places.myPlace.nav()
|
|
7629
6252
|
* }
|
|
7630
6253
|
* })
|
|
7631
6254
|
*/
|
|
@@ -7661,7 +6284,7 @@
|
|
|
7661
6284
|
SidePlaceNavigationComponent = __decorate([
|
|
7662
6285
|
core.Component({
|
|
7663
6286
|
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]=\"
|
|
6287
|
+
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
6288
|
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
6289
|
}),
|
|
7667
6290
|
__metadata("design:paramtypes", [router.Router, PlaceRouter])
|
|
@@ -7669,25 +6292,6 @@
|
|
|
7669
6292
|
return SidePlaceNavigationComponent;
|
|
7670
6293
|
}(AbstractPlaceNavigationComponent));
|
|
7671
6294
|
|
|
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
6295
|
var PlaceModule = /** @class */ (function () {
|
|
7692
6296
|
function PlaceModule() {
|
|
7693
6297
|
}
|
|
@@ -8234,7 +6838,8 @@
|
|
|
8234
6838
|
binding: null
|
|
8235
6839
|
};
|
|
8236
6840
|
var tag = tagPrefix + "(" + prototype.constructor.name + "." + propertyKey.toString() + ")";
|
|
8237
|
-
pectin.DebugContext.
|
|
6841
|
+
pectin.DebugContext.get(mechanics.backingModel).tag(tag);
|
|
6842
|
+
pectin.Logger.get(mechanics.backingModel).tag(tag);
|
|
8238
6843
|
Object.defineProperty(prototype, propertyKey, {
|
|
8239
6844
|
get: function () {
|
|
8240
6845
|
return mechanics.backingModel;
|
|
@@ -8305,7 +6910,6 @@
|
|
|
8305
6910
|
exports.AddItemInteractionContextComponent = AddItemInteractionContextComponent;
|
|
8306
6911
|
exports.AlertDialogComponent = AlertDialogComponent;
|
|
8307
6912
|
exports.AngularUiPowerupsModule = AngularUiPowerupsModule;
|
|
8308
|
-
exports.AutocompleteInputComponent = AutocompleteInputComponent;
|
|
8309
6913
|
exports.BusyOverlayComponent = BusyOverlayComponent;
|
|
8310
6914
|
exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
|
|
8311
6915
|
exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
|
|
@@ -8317,13 +6921,7 @@
|
|
|
8317
6921
|
exports.CheckboxInputComponent = CheckboxInputComponent;
|
|
8318
6922
|
exports.ColumnModel = ColumnModel;
|
|
8319
6923
|
exports.ColumnTemplateDirective = ColumnTemplateDirective;
|
|
8320
|
-
exports.CommandComponent = CommandComponent;
|
|
8321
6924
|
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
6925
|
exports.ComponentCellRendererPortalRef = ComponentCellRendererPortalRef;
|
|
8328
6926
|
exports.ComponentsModule = ComponentsModule;
|
|
8329
6927
|
exports.ConfirmThenDialogComponent = ConfirmThenDialogComponent;
|
|
@@ -8345,24 +6943,22 @@
|
|
|
8345
6943
|
exports.EditorControlColumnModel = EditorControlColumnModel;
|
|
8346
6944
|
exports.EmptyStateComponent = EmptyStateComponent;
|
|
8347
6945
|
exports.EventCleanUpSession = EventCleanUpSession;
|
|
8348
|
-
exports.FlexComponent = FlexComponent;
|
|
8349
6946
|
exports.FocusBinding = FocusBinding;
|
|
8350
6947
|
exports.FocusBindingDirective = FocusBindingDirective;
|
|
8351
6948
|
exports.FocusBindingFactory = FocusBindingFactory;
|
|
8352
6949
|
exports.FocusContainerComponent = FocusContainerComponent;
|
|
8353
6950
|
exports.FocusableComponent = FocusableComponent;
|
|
8354
6951
|
exports.HEADER_CELL_RENDERER_PORTAL = HEADER_CELL_RENDERER_PORTAL;
|
|
8355
|
-
exports.IconComponent =
|
|
6952
|
+
exports.IconComponent = IconComponent;
|
|
8356
6953
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
8357
6954
|
exports.InteractionContextTriggerFor = InteractionContextTriggerFor;
|
|
8358
6955
|
exports.InteractionModule = InteractionModule;
|
|
8359
|
-
exports.InteractionService = exports.ɵ
|
|
6956
|
+
exports.InteractionService = exports.ɵbv;
|
|
8360
6957
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
8361
6958
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
8362
6959
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
8363
6960
|
exports.ListPropertyColumnModel = ListPropertyColumnModel;
|
|
8364
6961
|
exports.ModalInteractionContextFactory = ModalInteractionContextFactory;
|
|
8365
|
-
exports.MoreMenuComponent = MoreMenuComponent;
|
|
8366
6962
|
exports.MultipleSelectInputComponent = MultipleSelectInputComponent;
|
|
8367
6963
|
exports.Navigating = Navigating;
|
|
8368
6964
|
exports.NavigatingDuringInteraction = NavigatingDuringInteraction;
|
|
@@ -8377,7 +6973,7 @@
|
|
|
8377
6973
|
exports.PlaceComponentDeactivationHandler = PlaceComponentDeactivationHandler;
|
|
8378
6974
|
exports.PlaceDefinition = PlaceDefinition;
|
|
8379
6975
|
exports.PlaceGuard = PlaceGuard;
|
|
8380
|
-
exports.PlaceHistory = exports.ɵ
|
|
6976
|
+
exports.PlaceHistory = exports.ɵby;
|
|
8381
6977
|
exports.PlaceModule = PlaceModule;
|
|
8382
6978
|
exports.PlaceOutletComponent = PlaceOutletComponent;
|
|
8383
6979
|
exports.PlaceRouter = PlaceRouter;
|
|
@@ -8385,7 +6981,6 @@
|
|
|
8385
6981
|
exports.PopStateDuringInteractionNavigation = PopStateDuringInteractionNavigation;
|
|
8386
6982
|
exports.PopStateNavigation = PopStateNavigation;
|
|
8387
6983
|
exports.PopupInteractionContextComponent = PopupInteractionContextComponent;
|
|
8388
|
-
exports.PopupMenuComponent = PopupMenuComponent;
|
|
8389
6984
|
exports.PropertyColumnModel = PropertyColumnModel;
|
|
8390
6985
|
exports.ROUTE_PARAMETER_LIST_KEY = ROUTE_PARAMETER_LIST_KEY;
|
|
8391
6986
|
exports.RemoveLastInteractionFromUrlNavigationSession = RemoveLastInteractionFromUrlNavigationSession;
|
|
@@ -8398,7 +6993,6 @@
|
|
|
8398
6993
|
exports.SelectInputActivity = SelectInputActivity;
|
|
8399
6994
|
exports.SelectInputComponent = SelectInputComponent;
|
|
8400
6995
|
exports.SelectionColumnModel = SelectionColumnModel;
|
|
8401
|
-
exports.SeparatorComponent = SeparatorComponent;
|
|
8402
6996
|
exports.SidePlaceNavigationComponent = SidePlaceNavigationComponent;
|
|
8403
6997
|
exports.StringInputActivity = StringInputActivity;
|
|
8404
6998
|
exports.StringInputComponent = StringInputComponent;
|
|
@@ -8412,10 +7006,8 @@
|
|
|
8412
7006
|
exports.TableComponent = TableComponent;
|
|
8413
7007
|
exports.TableHeaderCellRendererComponent = TableHeaderCellRendererComponent;
|
|
8414
7008
|
exports.TableModel = TableModel;
|
|
8415
|
-
exports.TableRowMenuComponent = TableRowMenuComponent;
|
|
8416
7009
|
exports.TemplateCellRendererPortalRef = TemplateCellRendererPortalRef;
|
|
8417
7010
|
exports.TextInputComponent = TextInputComponent;
|
|
8418
|
-
exports.ToolBarComponent = ToolBarComponent;
|
|
8419
7011
|
exports.UrlService = UrlService;
|
|
8420
7012
|
exports.VerticalFocusContainerComponent = VerticalFocusContainerComponent;
|
|
8421
7013
|
exports.Visit = Visit;
|
|
@@ -8431,62 +7023,51 @@
|
|
|
8431
7023
|
exports.ɵ0 = ɵ0;
|
|
8432
7024
|
exports.ɵa = DirectivesModule;
|
|
8433
7025
|
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;
|
|
7026
|
+
exports.ɵba = EditRowControls;
|
|
7027
|
+
exports.ɵbb = ColumnTemplateDirective;
|
|
7028
|
+
exports.ɵbc = DefaultCellRendererComponent;
|
|
7029
|
+
exports.ɵbd = TableCellRendererComponent;
|
|
7030
|
+
exports.ɵbe = SelectCellRendererComponent;
|
|
7031
|
+
exports.ɵbf = SelectHeaderCellRendererComponent;
|
|
7032
|
+
exports.ɵbg = DefaultHeaderCellRendererComponent;
|
|
7033
|
+
exports.ɵbh = TableHeaderCellRendererComponent;
|
|
7034
|
+
exports.ɵbi = MultipleSelectInputComponent;
|
|
7035
|
+
exports.ɵbj = IconComponent;
|
|
7036
|
+
exports.ɵbk = SectionHeaderComponent;
|
|
7037
|
+
exports.ɵbl = PlaceModule;
|
|
7038
|
+
exports.ɵbm = ComponentsModule;
|
|
7039
|
+
exports.ɵbn = EmptyStateComponent;
|
|
7040
|
+
exports.ɵbo = BusyOverlayComponent;
|
|
7041
|
+
exports.ɵbp = PlaceOutletComponent;
|
|
7042
|
+
exports.ɵbq = leftRightPlaceAnimation;
|
|
7043
|
+
exports.ɵbr = LEFT_RIGHT_PLACE_ANIMATION;
|
|
7044
|
+
exports.ɵbs = AUP_PLACE_CONFIG;
|
|
7045
|
+
exports.ɵbu = PlaceRouter;
|
|
7046
|
+
exports.ɵbw = ModalInteractionContextFactory;
|
|
7047
|
+
exports.ɵbx = UrlService;
|
|
7048
|
+
exports.ɵbz = TabbedPlaceNavigationComponent;
|
|
8458
7049
|
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;
|
|
7050
|
+
exports.ɵca = AbstractPlaceNavigationComponent;
|
|
7051
|
+
exports.ɵcb = ListPlaceNavComponent;
|
|
7052
|
+
exports.ɵcc = SidePlaceNavigationComponent;
|
|
7053
|
+
exports.ɵcd = InteractionModule;
|
|
7054
|
+
exports.ɵce = ActivityContainerComponent;
|
|
7055
|
+
exports.ɵcf = AbstractInteractionContext;
|
|
7056
|
+
exports.ɵcg = ActivityOutletComponent;
|
|
7057
|
+
exports.ɵch = ConfirmationDialogComponent;
|
|
7058
|
+
exports.ɵci = ACTIVITY_DATA;
|
|
7059
|
+
exports.ɵcj = Activity;
|
|
7060
|
+
exports.ɵcl = ConfirmThenDialogComponent;
|
|
7061
|
+
exports.ɵcm = AlertDialogComponent;
|
|
7062
|
+
exports.ɵco = InPlaceInteractionContextComponent;
|
|
7063
|
+
exports.ɵcp = AddItemInteractionContextComponent;
|
|
7064
|
+
exports.ɵcq = ActivityActionsComponent;
|
|
7065
|
+
exports.ɵcr = PopupInteractionContextComponent;
|
|
7066
|
+
exports.ɵcs = StringInputActivity;
|
|
7067
|
+
exports.ɵct = AbstractInputActivity;
|
|
7068
|
+
exports.ɵcu = SelectInputActivity;
|
|
7069
|
+
exports.ɵcv = InteractionContextTriggerFor;
|
|
8481
7070
|
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
7071
|
exports.ɵe = FocusBindingFactory;
|
|
8491
7072
|
exports.ɵf = ComponentsModule;
|
|
8492
7073
|
exports.ɵg = AbstractInputComponent;
|
|
@@ -8497,18 +7078,18 @@
|
|
|
8497
7078
|
exports.ɵl = TextInputComponent;
|
|
8498
7079
|
exports.ɵm = PasswordInputComponent;
|
|
8499
7080
|
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 =
|
|
7081
|
+
exports.ɵo = CheckboxInputComponent;
|
|
7082
|
+
exports.ɵp = ScrollContainerComponent;
|
|
7083
|
+
exports.ɵq = NoopComponent;
|
|
7084
|
+
exports.ɵr = SwitchCaseOption;
|
|
7085
|
+
exports.ɵs = SwitchCaseWhenDirective;
|
|
7086
|
+
exports.ɵt = SwitchCaseDefaultDirective;
|
|
7087
|
+
exports.ɵu = SwitchCaseComponent;
|
|
7088
|
+
exports.ɵv = FocusContainerComponent;
|
|
7089
|
+
exports.ɵw = VerticalFocusContainerComponent;
|
|
7090
|
+
exports.ɵx = FocusableComponent;
|
|
7091
|
+
exports.ɵy = CardContainerComponent;
|
|
7092
|
+
exports.ɵz = TableComponent;
|
|
8512
7093
|
|
|
8513
7094
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8514
7095
|
|