@coolon/angular-ui-powerups 2.0.0-alpha.38 → 2.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -226
- package/assets/interaction.scss +0 -5
- package/assets/styles.scss +0 -2
- package/assets/tabs.scss +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +394 -1763
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +54 -67
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +52 -65
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +14 -54
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.js +4 -12
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.js +14 -27
- package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.js +15 -31
- package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +9 -8
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +1 -2
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +3 -3
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.js +4 -17
- package/esm2015/lib/components/icon/icon.component.js.map +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/index.js +1 -18
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/{cell-portal-ref.js → cell-protal-ref.js} +3 -7
- package/esm2015/lib/components/table/cell-protal-ref.js.map +1 -0
- package/esm2015/lib/components/table/{cell-portal-ref.metadata.json → cell-protal-ref.metadata.json} +1 -1
- package/esm2015/lib/components/table/column-model.js +11 -66
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-model.js +12 -15
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.js +1 -1
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/esm2015/lib/interaction/activity-ref.js +2 -10
- package/esm2015/lib/interaction/activity-ref.js.map +1 -1
- package/esm2015/lib/interaction/activity-ref.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.js +1 -18
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +17 -24
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +3 -4
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +16 -56
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/place-component.js +1 -13
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +8 -2
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.module.js +3 -3
- package/esm2015/lib/place/place.module.js.map +1 -1
- package/esm2015/lib/place/place.module.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.js +3 -2
- package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
- package/esm5/coolon-angular-ui-powerups.js +52 -65
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/card-container/card-container.component.js +1 -1
- package/esm5/lib/components/components.module.js +14 -54
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/forms/abstract-input.component.js +4 -12
- package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-list-input.component.js +14 -27
- package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +15 -31
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js +9 -8
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +1 -2
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +3 -3
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm5/lib/components/icon/icon.component.js +3 -15
- package/esm5/lib/components/icon/icon.component.js.map +1 -1
- package/esm5/lib/components/index.js +1 -18
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/{cell-portal-ref.js → cell-protal-ref.js} +3 -7
- package/esm5/lib/components/table/cell-protal-ref.js.map +1 -0
- package/esm5/lib/components/table/column-model.js +11 -67
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +13 -15
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table.component.js +1 -1
- package/esm5/lib/components/table/table.component.js.map +1 -1
- package/esm5/lib/interaction/activity-ref.js +2 -14
- package/esm5/lib/interaction/activity-ref.js.map +1 -1
- package/esm5/lib/interaction/activity.js +1 -27
- package/esm5/lib/interaction/activity.js.map +1 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +17 -24
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/components/abstract-place-navigation.component.js +3 -4
- package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +16 -56
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/place-component.js +1 -17
- package/esm5/lib/place/place-component.js.map +1 -1
- package/esm5/lib/place/place-router.js +8 -2
- package/esm5/lib/place/place-router.js.map +1 -1
- package/esm5/lib/place/place.module.js +3 -3
- package/esm5/lib/place/place.module.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/route/parameter-decorators.js +3 -2
- package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +307 -1488
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +324 -1673
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +2 -8
- package/lib/components/forms/abstract-list-input.component.d.ts +3 -4
- package/lib/components/forms/abstract-value-input.component.d.ts +4 -5
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +2 -7
- package/lib/components/forms/select-input/select-input.component.d.ts +0 -1
- package/lib/components/icon/icon.component.d.ts +0 -15
- package/lib/components/index.d.ts +1 -19
- package/lib/components/table/{cell-portal-ref.d.ts → cell-protal-ref.d.ts} +4 -4
- package/lib/components/table/column-model.d.ts +12 -18
- package/lib/components/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
- package/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.d.ts +1 -1
- package/lib/components/table/table-model.d.ts +5 -13
- package/lib/interaction/activity-ref.d.ts +0 -3
- package/lib/interaction/activity.d.ts +2 -6
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -4
- package/lib/place/components/abstract-place-navigation.component.d.ts +2 -2
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +2 -8
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
- package/lib/place/place-component.d.ts +0 -6
- package/package.json +4 -4
- package/assets/commands.scss +0 -3
- package/assets/icons.scss +0 -30
- package/esm2015/lib/components/commands/command/command.component.js +0 -61
- package/esm2015/lib/components/commands/command/command.component.js.map +0 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js +0 -92
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/command-face.js +0 -112
- package/esm2015/lib/components/commands/command-face.js.map +0 -1
- package/esm2015/lib/components/commands/command-face.metadata.json +0 -1
- package/esm2015/lib/components/commands/flex.component.js +0 -30
- package/esm2015/lib/components/commands/flex.component.js.map +0 -1
- package/esm2015/lib/components/commands/flex.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js +0 -47
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -55
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -39
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group.js +0 -100
- package/esm2015/lib/components/commands/group/command-group.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.js +0 -55
- package/esm2015/lib/components/commands/group/more-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.js +0 -65
- package/esm2015/lib/components/commands/group/popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/registration.js +0 -58
- package/esm2015/lib/components/commands/group/registration.js.map +0 -1
- package/esm2015/lib/components/commands/group/registration.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +0 -55
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/group/view-data.js +0 -104
- package/esm2015/lib/components/commands/group/view-data.js.map +0 -1
- package/esm2015/lib/components/commands/group/view-data.metadata.json +0 -1
- package/esm2015/lib/components/commands/separator.component.js +0 -35
- package/esm2015/lib/components/commands/separator.component.js.map +0 -1
- package/esm2015/lib/components/commands/separator.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -70
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/cell-portal-ref.js.map +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js.map +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.metadata.json +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +0 -73
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/track-by.js +0 -5
- package/esm2015/lib/components/track-by.js.map +0 -1
- package/esm5/lib/components/commands/command/command.component.js +0 -64
- package/esm5/lib/components/commands/command/command.component.js.map +0 -1
- package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.js +0 -123
- package/esm5/lib/components/commands/command-face/command-face.component.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/command-face.js +0 -145
- package/esm5/lib/components/commands/command-face.js.map +0 -1
- package/esm5/lib/components/commands/flex.component.js +0 -33
- package/esm5/lib/components/commands/flex.component.js.map +0 -1
- package/esm5/lib/components/commands/flex.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group/command-group.component.js +0 -51
- package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -59
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -42
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/group/command-group.js +0 -122
- package/esm5/lib/components/commands/group/command-group.js.map +0 -1
- package/esm5/lib/components/commands/group/more-menu.component.js +0 -58
- package/esm5/lib/components/commands/group/more-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/popup-menu.component.js +0 -68
- package/esm5/lib/components/commands/group/popup-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/registration.js +0 -80
- package/esm5/lib/components/commands/group/registration.js.map +0 -1
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +0 -58
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +0 -1
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/group/view-data.js +0 -131
- package/esm5/lib/components/commands/group/view-data.js.map +0 -1
- package/esm5/lib/components/commands/separator.component.js +0 -37
- package/esm5/lib/components/commands/separator.component.js.map +0 -1
- package/esm5/lib/components/commands/separator.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -73
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/cell-portal-ref.js.map +0 -1
- package/esm5/lib/components/table/mutable-cell-renderer.js +0 -1
- package/esm5/lib/components/table/mutable-cell-renderer.js.map +0 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +0 -63
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/track-by.js +0 -5
- package/esm5/lib/components/track-by.js.map +0 -1
- package/lib/components/commands/command/command.component.d.ts +0 -22
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -34
- package/lib/components/commands/command-face.d.ts +0 -40
- package/lib/components/commands/flex.component.d.ts +0 -11
- package/lib/components/commands/group/command-group/command-group.component.d.ts +0 -11
- package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +0 -21
- package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +0 -13
- package/lib/components/commands/group/command-group.d.ts +0 -41
- package/lib/components/commands/group/more-menu.component.d.ts +0 -14
- package/lib/components/commands/group/popup-menu.component.d.ts +0 -17
- package/lib/components/commands/group/registration.d.ts +0 -32
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +0 -13
- package/lib/components/commands/group/view-data.d.ts +0 -40
- package/lib/components/commands/separator.component.d.ts +0 -12
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +0 -25
- package/lib/components/table/mutable-cell-renderer.d.ts +0 -6
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +0 -26
- package/lib/components/track-by.d.ts +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
3
|
-
import { Command,
|
|
3
|
+
import { Command, FocusManager, ListModel, ValueModel } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../disposable-component';
|
|
5
5
|
interface InputModel<T> {
|
|
6
6
|
value: T;
|
|
@@ -9,8 +9,7 @@ interface InputModel<T> {
|
|
|
9
9
|
focusContext: FocusManager.Context;
|
|
10
10
|
}
|
|
11
11
|
export declare class AbstractInputComponent<T> extends DisposableComponent implements OnInit {
|
|
12
|
-
protected
|
|
13
|
-
protected formValueModel: InputModel<T>;
|
|
12
|
+
protected inputModel: InputModel<T>;
|
|
14
13
|
label: string;
|
|
15
14
|
userFloatLabel: 'auto' | 'always' | 'never';
|
|
16
15
|
hint: string;
|
|
@@ -43,10 +42,5 @@ export declare class AbstractInputComponent<T> extends DisposableComponent imple
|
|
|
43
42
|
get focusContext(): FocusManager.Context;
|
|
44
43
|
get floatLabel(): 'auto' | 'always' | 'never';
|
|
45
44
|
get showHint(): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Invokes the callback when this components value is changed by a user edit.
|
|
48
|
-
* @param callback
|
|
49
|
-
*/
|
|
50
|
-
onValueEdited(callback: (is: T, was: T) => void): Disposable;
|
|
51
45
|
}
|
|
52
46
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Form, IMutableListModel
|
|
2
|
+
import { Form, IMutableListModel } from '@coolon/pectin';
|
|
3
3
|
import { AbstractInputComponent } from './abstract-input.component';
|
|
4
4
|
export declare class AbstractListInputComponent<T> extends AbstractInputComponent<T[]> implements OnInit {
|
|
5
5
|
listModel: Form.ListModelBase<T> | IMutableListModel<T>;
|
|
@@ -13,9 +13,8 @@ export declare class AbstractListInputComponent<T> extends AbstractInputComponen
|
|
|
13
13
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
14
14
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
private setValueIsInProgress;
|
|
16
|
+
readonly inputModel: Form.DelegatingListModel<T>;
|
|
17
|
+
private setValueIsInitialising;
|
|
19
18
|
private listHolder;
|
|
20
19
|
set value(value: T[]);
|
|
21
20
|
readonly valueChange: EventEmitter<T[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Form,
|
|
2
|
+
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
3
3
|
import { AbstractInputComponent } from './abstract-input.component';
|
|
4
4
|
export declare class AbstractValueInputComponent<T> extends AbstractInputComponent<T> implements OnInit {
|
|
5
5
|
valueModel: Form.ValueModelBase<T> | IMutableValueModel<T>;
|
|
@@ -13,10 +13,9 @@ export declare class AbstractValueInputComponent<T> extends AbstractInputCompone
|
|
|
13
13
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
14
14
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
private plainValueHolder;
|
|
16
|
+
readonly inputModel: Form.DelegatingValueModel<T>;
|
|
17
|
+
private setValueIsInitialising;
|
|
18
|
+
private valueHolder;
|
|
20
19
|
set value(value: T);
|
|
21
20
|
readonly valueChange: EventEmitter<T>;
|
|
22
21
|
constructor();
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ListModel } from '@coolon/pectin';
|
|
3
3
|
import { AbstractListInputComponent } from '../abstract-list-input.component';
|
|
4
|
-
/**
|
|
5
|
-
* Using templates:
|
|
6
|
-
* <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
|
|
7
|
-
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
8
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
9
|
-
* </aup-multiple-select_input>
|
|
10
|
-
*/
|
|
11
4
|
export declare class MultipleSelectInputComponent<T = any> extends AbstractListInputComponent<T> implements OnInit {
|
|
12
5
|
optionsModel: ListModel<T>;
|
|
13
6
|
options: T[];
|
|
14
7
|
optionLabel: keyof T;
|
|
8
|
+
allowNil: boolean;
|
|
15
9
|
optionTemplateRef: TemplateRef<any>;
|
|
10
|
+
nilOptionTemplateRef: TemplateRef<any>;
|
|
16
11
|
optionLabelFormat: (option: T) => any;
|
|
17
12
|
constructor();
|
|
18
13
|
ngOnInit(): void;
|
|
@@ -5,7 +5,6 @@ import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
|
5
5
|
* Using templates:
|
|
6
6
|
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
7
7
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
8
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
9
8
|
* </aup-select_input>
|
|
10
9
|
*/
|
|
11
10
|
export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import { Enum } from 'typescript-string-enums';
|
|
2
1
|
export declare class IconComponent {
|
|
3
2
|
_icon: string;
|
|
4
3
|
prefix: string;
|
|
5
4
|
suffix: string;
|
|
6
5
|
errorMessage: string;
|
|
7
|
-
allowedPrefixes: string[];
|
|
8
|
-
iconPrefix: {
|
|
9
|
-
SVG: "svg";
|
|
10
|
-
FONT_AWESOME: "fa";
|
|
11
|
-
MATERIAL: "mat";
|
|
12
|
-
};
|
|
13
6
|
set icon(iconName: string);
|
|
14
7
|
get icon(): string;
|
|
15
8
|
}
|
|
16
|
-
export declare namespace IconComponent {
|
|
17
|
-
const IconPrefix: {
|
|
18
|
-
SVG: "svg";
|
|
19
|
-
FONT_AWESOME: "fa";
|
|
20
|
-
MATERIAL: "mat";
|
|
21
|
-
};
|
|
22
|
-
type IconPrefix = Enum<typeof IconPrefix>;
|
|
23
|
-
}
|
|
@@ -5,27 +5,11 @@ export * from "./components.module";
|
|
|
5
5
|
export * from "./disposable-component";
|
|
6
6
|
export * from "./focusable.component";
|
|
7
7
|
export * from "./resize-aware.component";
|
|
8
|
-
export * from "./track-by";
|
|
9
8
|
export * from "./card-container/card-container.component";
|
|
10
|
-
export * from "./commands/command-face";
|
|
11
|
-
export * from "./commands/flex.component";
|
|
12
|
-
export * from "./commands/separator.component";
|
|
13
|
-
export * from "./commands/command/command.component";
|
|
14
|
-
export * from "./commands/command-face/command-face.component";
|
|
15
|
-
export * from "./commands/group/command-group";
|
|
16
|
-
export * from "./commands/group/more-menu.component";
|
|
17
|
-
export * from "./commands/group/popup-menu.component";
|
|
18
|
-
export * from "./commands/group/registration";
|
|
19
|
-
export * from "./commands/group/view-data";
|
|
20
|
-
export * from "./commands/group/command-group/command-group.component";
|
|
21
|
-
export * from "./commands/group/command-group-menu-renderer/command-group-menu-renderer.component";
|
|
22
|
-
export * from "./commands/group/command-group-renderer/command-group-renderer.component";
|
|
23
|
-
export * from "./commands/group/tool-bar/tool-bar.component";
|
|
24
9
|
export * from "./focus-container/focus-container.component";
|
|
25
10
|
export * from "./forms/abstract-input.component";
|
|
26
11
|
export * from "./forms/abstract-list-input.component";
|
|
27
12
|
export * from "./forms/abstract-value-input.component";
|
|
28
|
-
export * from "./forms/autocomplete-input/autocomplete-input.component";
|
|
29
13
|
export * from "./forms/checkbox-input/checkbox-input.component";
|
|
30
14
|
export * from "./forms/multiple-select-input/multiple-select-input.component";
|
|
31
15
|
export * from "./forms/number-input/number-input.component";
|
|
@@ -39,12 +23,11 @@ export * from "./scroll-container/scroll-container.component";
|
|
|
39
23
|
export * from "./section-header/section-header.component";
|
|
40
24
|
export * from "./switch-case/switch-case.component";
|
|
41
25
|
export * from "./table/cell-editors";
|
|
42
|
-
export * from "./table/cell-
|
|
26
|
+
export * from "./table/cell-protal-ref";
|
|
43
27
|
export * from "./table/cell-renderer";
|
|
44
28
|
export * from "./table/column-model";
|
|
45
29
|
export * from "./table/column-text-properties";
|
|
46
30
|
export * from "./table/edit-session";
|
|
47
|
-
export * from "./table/mutable-cell-renderer";
|
|
48
31
|
export * from "./table/table-def";
|
|
49
32
|
export * from "./table/table-model";
|
|
50
33
|
export * from "./table/table.component";
|
|
@@ -56,7 +39,6 @@ export * from "./table/select-cell-renderer/select-cell-renderer.component";
|
|
|
56
39
|
export * from "./table/select-header-cell-renderer/select-header-cell-renderer.component";
|
|
57
40
|
export * from "./table/table-cell-renderer/table-cell-renderer.component";
|
|
58
41
|
export * from "./table/table-header-cell-renderer/table-header-cell-renderer.component";
|
|
59
|
-
export * from "./table/table-row-menu/table-row-menu.component";
|
|
60
42
|
export * from "./types/bounds.class";
|
|
61
43
|
export * from "./types/dimension.class";
|
|
62
44
|
export * from "./types/point.class";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
2
|
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { ColumnModel, RowData } from './column-model';
|
|
4
|
-
import { EditSession } from './edit-session';
|
|
5
|
-
import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
|
|
6
4
|
import { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';
|
|
5
|
+
import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
|
|
6
|
+
import { EditSession } from './edit-session';
|
|
7
7
|
export declare const HEADER_CELL_RENDERER_PORTAL: unique symbol;
|
|
8
8
|
export declare const CELL_RENDERER_PORTAL: unique symbol;
|
|
9
9
|
export declare const CELL_EDITOR_PORTAL: unique symbol;
|
|
@@ -26,8 +26,8 @@ export declare abstract class CellRendererPortalRef<Row, Portal> extends CellPor
|
|
|
26
26
|
}
|
|
27
27
|
export declare class ComponentCellRendererPortalRef<Row, Portal> extends CellRendererPortalRef<Row, Portal> {
|
|
28
28
|
readonly componentType: ComponentType<Portal>;
|
|
29
|
-
readonly updateComponent: (component: Portal, rowData: RowData<Row
|
|
30
|
-
constructor(componentType: ComponentType<Portal>, updateComponent: (component: Portal, rowData: RowData<Row
|
|
29
|
+
readonly updateComponent: (component: Portal, rowData: RowData<Row>) => void;
|
|
30
|
+
constructor(componentType: ComponentType<Portal>, updateComponent: (component: Portal, rowData: RowData<Row>) => void);
|
|
31
31
|
initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>): void;
|
|
32
32
|
onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: Portal): void;
|
|
33
33
|
pushState(host: TableCellRendererComponent<Row>): void;
|
|
@@ -2,11 +2,9 @@ import { ComponentType } from '@angular/cdk/overlay';
|
|
|
2
2
|
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Command, DirtyTrackingForm, SelectionModel, Types, UnaryCommand, Validator } from '@coolon/pectin';
|
|
4
4
|
import { CellEditorComponent, CellListEditorComponent } from './cell-editors';
|
|
5
|
-
import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from './cell-
|
|
6
|
-
import { CellRenderer } from './cell-renderer';
|
|
5
|
+
import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from './cell-protal-ref';
|
|
7
6
|
import { ColumnTextProperties } from './column-text-properties';
|
|
8
7
|
import { EditSession } from './edit-session';
|
|
9
|
-
import { MutableCellRenderer } from './mutable-cell-renderer';
|
|
10
8
|
import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
|
|
11
9
|
import { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';
|
|
12
10
|
export interface RowData<Row> {
|
|
@@ -14,14 +12,6 @@ export interface RowData<Row> {
|
|
|
14
12
|
editSession?: EditSession<Row>;
|
|
15
13
|
editRowCommand: Command<void>;
|
|
16
14
|
}
|
|
17
|
-
export declare type OnComponentInit<C> = (component: C) => void;
|
|
18
|
-
export interface CellRendererOptions<Row, E> {
|
|
19
|
-
onComponentInit?: (component: E) => void;
|
|
20
|
-
onRowUpdate?: (component: E, row: Row) => void;
|
|
21
|
-
}
|
|
22
|
-
export interface MutableCellRendererOptions<Row, E, P extends keyof Row> extends CellRendererOptions<Row, E> {
|
|
23
|
-
onValueEdit: (row: Row, is: Row[P], was: Row[P]) => void;
|
|
24
|
-
}
|
|
25
15
|
export declare class ColumnModel<Row> {
|
|
26
16
|
readonly columnId: string;
|
|
27
17
|
private defaults;
|
|
@@ -56,13 +46,17 @@ export declare namespace ColumnModel {
|
|
|
56
46
|
getColumnTextProperties(columnModel: ColumnModel<any>): ColumnTextProperties;
|
|
57
47
|
}
|
|
58
48
|
}
|
|
49
|
+
export interface CellEditorOptions<V, C> {
|
|
50
|
+
validators?: Validator<V>[];
|
|
51
|
+
initialiseComponent?(component: C): any;
|
|
52
|
+
}
|
|
59
53
|
export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
60
54
|
readonly property: P;
|
|
61
55
|
private _format;
|
|
62
|
-
constructor(
|
|
63
|
-
cellRenderer
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
constructor(property: P, defaults: ColumnModel.Defaults);
|
|
57
|
+
cellRenderer(componentType: ComponentType<{
|
|
58
|
+
value: Row[P];
|
|
59
|
+
}>): this;
|
|
66
60
|
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, validators?: Validator<Row[P]>[], initialiseComponent?: (component: E) => void): this;
|
|
67
61
|
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, initialiseComponent?: (component: E) => void): this;
|
|
68
62
|
format(formatter: (value: Row[P]) => any): this;
|
|
@@ -71,7 +65,7 @@ export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<
|
|
|
71
65
|
export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {
|
|
72
66
|
readonly property: P;
|
|
73
67
|
private _format;
|
|
74
|
-
constructor(
|
|
68
|
+
constructor(property: P, defaults: ColumnModel.Defaults);
|
|
75
69
|
cellRenderer(componentType: ComponentType<{
|
|
76
70
|
value: Types.ArrayElementType<Row, P>[];
|
|
77
71
|
}>): this;
|
|
@@ -83,9 +77,9 @@ export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertie
|
|
|
83
77
|
export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
|
|
84
78
|
private getValue;
|
|
85
79
|
constructor(columnId: string, defaults: ColumnModel.Defaults, getValue: (row: Row) => V);
|
|
86
|
-
cellRenderer<
|
|
80
|
+
cellRenderer(componentType: ComponentType<{
|
|
87
81
|
value: V;
|
|
88
|
-
}>
|
|
82
|
+
}>): this;
|
|
89
83
|
selectRowOnClick(selectOnRowClick: boolean): this;
|
|
90
84
|
}
|
|
91
85
|
export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
|
|
@@ -5,7 +5,7 @@ import { CellEditorComponent, CellListEditorComponent } from '../cell-editors';
|
|
|
5
5
|
import { ColumnModel, RowData } from '../column-model';
|
|
6
6
|
import { EditSession } from '../edit-session';
|
|
7
7
|
import { TableModel } from '../table-model';
|
|
8
|
-
import { CELL_RENDERER_PORTAL, CELL_EDITOR_PORTAL } from '../cell-
|
|
8
|
+
import { CELL_RENDERER_PORTAL, CELL_EDITOR_PORTAL } from '../cell-protal-ref';
|
|
9
9
|
export declare class TableCellRendererComponent<Row> extends DisposableComponent implements OnInit, OnChanges {
|
|
10
10
|
row: Row;
|
|
11
11
|
column: ColumnModel<Row>;
|
package/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Portal } from '@angular/cdk/portal';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { ColumnModel } from '../column-model';
|
|
4
|
-
import { HEADER_CELL_RENDERER_PORTAL } from '../cell-
|
|
4
|
+
import { HEADER_CELL_RENDERER_PORTAL } from '../cell-protal-ref';
|
|
5
5
|
export declare class TableHeaderCellRendererComponent implements OnInit {
|
|
6
6
|
column: ColumnModel<any>;
|
|
7
7
|
defaultClassNames: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
1
|
import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
|
|
3
|
-
import {
|
|
4
|
-
import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
|
|
2
|
+
import { ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, PropertyColumnModel, SelectionColumnModel } from './column-model';
|
|
5
3
|
import { ColumnTextProperties } from './column-text-properties';
|
|
6
4
|
import { EditSession } from './edit-session';
|
|
7
5
|
/**
|
|
@@ -95,26 +93,20 @@ export declare class TableModel<Row> {
|
|
|
95
93
|
private _createForm;
|
|
96
94
|
protected constructor(sourceOfTruth: ListModel<Row>);
|
|
97
95
|
get rowsBeingEdited(): ListModel<Row>;
|
|
98
|
-
|
|
96
|
+
getTrackByFunction(): (index: number, item: Row) => any;
|
|
99
97
|
get columns(): ListModel<ColumnModel<Row>>;
|
|
100
|
-
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P,
|
|
101
|
-
|
|
102
|
-
}): PropertyColumnModel<Row, P>;
|
|
103
|
-
pluckList<P extends Types.ArrayPropertiesOf<Row>>(property: P, options?: {
|
|
104
|
-
columnId: string;
|
|
105
|
-
}): ListPropertyColumnModel<Row, P>;
|
|
98
|
+
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P): PropertyColumnModel<Row, P>;
|
|
99
|
+
pluckList<P extends Types.ArrayPropertiesOf<Row>>(property: P): ListPropertyColumnModel<Row, P>;
|
|
106
100
|
addSelectionColumn(selectionModel: SelectionModel<Row>): SelectionColumnModel<Row>;
|
|
107
101
|
addEditControls(saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>): EditorControlColumnModel<Row>;
|
|
108
102
|
addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
|
|
109
|
-
addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
|
|
110
|
-
addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
|
|
111
103
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
112
104
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
113
105
|
getRowClasses(row: Row): string[];
|
|
114
106
|
useFormFactory(factory: (row: Row) => DirtyTrackingForm<Row>): this;
|
|
115
107
|
protected addColumn<C extends ColumnModel<Row>>(column: C): C;
|
|
116
108
|
columnTextProperties(columnTextProperties: {
|
|
117
|
-
[columnName: string]: ColumnTextProperties;
|
|
109
|
+
[columnName: string]: () => ColumnTextProperties;
|
|
118
110
|
}): void;
|
|
119
111
|
getColumnTextProperties(column: ColumnModel<Row>): ColumnTextProperties;
|
|
120
112
|
startEditSession(row: Row): EditSession<Row>;
|
|
@@ -8,13 +8,10 @@ export declare class ActivityRef<D, R, E> {
|
|
|
8
8
|
private _complete;
|
|
9
9
|
private _activity;
|
|
10
10
|
private deferredResult;
|
|
11
|
-
private readonly focusedModel;
|
|
12
11
|
constructor(activityClass: Constructable<Activity<D, R, E>>, activityData: D, onComplete: (activityRef: ActivityRef<D, R, E>) => void);
|
|
13
12
|
isActivityRealised(): boolean;
|
|
14
13
|
isComplete(): boolean;
|
|
15
14
|
get activity(): Activity<D, R, E>;
|
|
16
|
-
setFocused(focused: boolean): void;
|
|
17
|
-
get focused(): boolean;
|
|
18
15
|
notifyActivityCreated(activity: Activity<D, R, E>, nestedInteractionContext: InteractionContext): void;
|
|
19
16
|
protected finishActivity(resolveOrReject: (deferred: Deferred<R>) => void): void;
|
|
20
17
|
cancel(): void;
|
|
@@ -5,26 +5,22 @@ import { InteractionContext } from './interaction-context';
|
|
|
5
5
|
export declare const ACTIVITY_DATA: InjectionToken<any>;
|
|
6
6
|
export declare abstract class Activity<D, R, E = any> extends DisposableComponent {
|
|
7
7
|
private readonly _busyModel;
|
|
8
|
-
private _focusedModel;
|
|
9
8
|
private _activityContext;
|
|
10
9
|
private _interactionContext;
|
|
11
10
|
class: string;
|
|
12
|
-
|
|
13
|
-
initialise(nestedInteractionContext: InteractionContext, activityContext: Activity.Context<R, E>): void;
|
|
11
|
+
initialise(nestedInteractionContext: InteractionContext, activityContext: Activity.Callbacks<R, E>): void;
|
|
14
12
|
get interactionContext(): InteractionContext;
|
|
15
13
|
done(result?: R): void;
|
|
16
14
|
cancel(error?: E): void;
|
|
17
15
|
onActivityReady(): void;
|
|
18
16
|
get busy(): ValueModel<boolean>;
|
|
19
|
-
get focused(): ValueModel<boolean>;
|
|
20
17
|
busyWhile(busyModel: ValueModel<boolean>): void;
|
|
21
18
|
isBusy(): boolean;
|
|
22
19
|
isInitialised(): boolean;
|
|
23
20
|
}
|
|
24
21
|
export declare namespace Activity {
|
|
25
|
-
interface
|
|
22
|
+
interface Callbacks<R, E> {
|
|
26
23
|
onDone: (result: R) => void;
|
|
27
24
|
onCancel: (error: E) => void;
|
|
28
|
-
focused: ValueModel<boolean>;
|
|
29
25
|
}
|
|
30
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { MatTabGroup } from '@angular/material/tabs';
|
|
3
|
-
import { Constructable, Disposable
|
|
3
|
+
import { Constructable, Disposable } from '@coolon/pectin';
|
|
4
4
|
import { AbstractInteractionContext } from '../../abstract-interaction-context';
|
|
5
5
|
import { Activity } from '../../activity';
|
|
6
6
|
import { ActivityRef } from '../../activity-ref';
|
|
@@ -10,14 +10,13 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
|
|
|
10
10
|
dynamicHeight: boolean;
|
|
11
11
|
tabs: MatTabGroup;
|
|
12
12
|
activityOutlets: QueryList<ActivityOutletComponent<any, any, any>>;
|
|
13
|
-
|
|
13
|
+
activityTabs: ActivityRef<any, any, any>[];
|
|
14
14
|
private _identifier;
|
|
15
15
|
private _deferredCleanUp;
|
|
16
16
|
private interactionServiceApi;
|
|
17
17
|
private garbage;
|
|
18
18
|
private syncSelectedTabTimeout;
|
|
19
19
|
private onAnimationFinishedJob;
|
|
20
|
-
readonly inAnimation: MutableValueModel<boolean>;
|
|
21
20
|
constructor();
|
|
22
21
|
ngOnInit(): void;
|
|
23
22
|
ngAfterViewInit(): void;
|
|
@@ -53,6 +52,5 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
|
|
|
53
52
|
*/
|
|
54
53
|
private synchroniseSelectedTabIndex;
|
|
55
54
|
private getSelectedOutlet;
|
|
56
|
-
getSelectedTabIndex(): number;
|
|
57
55
|
private triggerTabSynchronisation;
|
|
58
56
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Command, Constructable, DelegatingValueModel, ListModel, ListModelChain, ValueModel } from '@coolon/pectin';
|
|
3
|
-
import { CommandFace } from '../../components/commands/command-face';
|
|
4
3
|
import { DisposableComponent } from '../../components/disposable-component';
|
|
4
|
+
import { NavItem } from '../nav-item';
|
|
5
5
|
import { PlaceComponent } from '../place-component';
|
|
6
6
|
import { PlaceDefinition } from '../place-definition';
|
|
7
7
|
import { PlaceRouter } from '../place-router';
|
|
@@ -16,7 +16,7 @@ export declare class AbstractPlaceNavigationComponent extends DisposableComponen
|
|
|
16
16
|
readonly _activePlaceComponent: DelegatingValueModel<PlaceComponent>;
|
|
17
17
|
private activePlaceDefinition;
|
|
18
18
|
constructor(placeRouter: PlaceRouter);
|
|
19
|
-
|
|
19
|
+
getNav(placeDef: PlaceDefinition): NavItem;
|
|
20
20
|
isActive(place: PlaceDefinition): boolean;
|
|
21
21
|
ngOnInit(): void;
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
|
|
3
|
-
import {
|
|
3
|
+
import { Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
5
5
|
import { PlaceComponent } from '../../place-component';
|
|
6
6
|
import { PlaceConfig } from '../../place-config';
|
|
@@ -16,21 +16,16 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
16
16
|
customPlaceAnimationOrder: Constructable<PlaceComponent>[];
|
|
17
17
|
readonly placeChanged: EventEmitter<PlaceComponent>;
|
|
18
18
|
routerOut: RouterOutlet;
|
|
19
|
-
private onAnimationFinishedJob;
|
|
20
19
|
private outletActivated;
|
|
21
20
|
private readonly _activatedRouteModel;
|
|
22
21
|
private readonly _activePlaceModel;
|
|
23
22
|
private readonly _activePlaceDefinition;
|
|
24
23
|
private parentOutletModel;
|
|
25
|
-
readonly
|
|
24
|
+
readonly placeAnimationOrder: ValueModelChain<number>;
|
|
26
25
|
private initialPlaceIndex;
|
|
27
26
|
private routerVisitModel;
|
|
28
27
|
private _isPushingVisitToRoute;
|
|
29
28
|
private navigationInProgress;
|
|
30
|
-
private isVeryFirstLoad;
|
|
31
|
-
private placesInAnimationOrder;
|
|
32
|
-
private animationSupported;
|
|
33
|
-
readonly animationEnabled: BooleanValueModelChain;
|
|
34
29
|
constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, parentOutlet: PlaceOutletComponent);
|
|
35
30
|
ngOnInit(): void;
|
|
36
31
|
getAnimationOrder(): number;
|
|
@@ -40,7 +35,6 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
40
35
|
get activePlaceModel(): ValueModel<PlaceComponent>;
|
|
41
36
|
get activatedRouteModel(): ValueModel<ActivatedRoute>;
|
|
42
37
|
onOutletActivated(routerOutlet: RouterOutlet, place: PlaceComponent): void;
|
|
43
|
-
private validateAnimationState;
|
|
44
38
|
onOutletDeactivated(): void;
|
|
45
39
|
private checkStateAndInitialise;
|
|
46
40
|
private initialisePlace;
|
|
@@ -10,7 +10,6 @@ export declare const ROUTE_PARAMETER_LIST_KEY: unique symbol;
|
|
|
10
10
|
export declare class PlaceComponent extends DisposableComponent {
|
|
11
11
|
private visitModel;
|
|
12
12
|
private _inVisitUpdate;
|
|
13
|
-
private _active;
|
|
14
13
|
interactionContext?: InteractionContext;
|
|
15
14
|
canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
|
|
16
15
|
constructor();
|
|
@@ -20,11 +19,6 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
20
19
|
private installBinding;
|
|
21
20
|
get placeDefinition(): PlaceDefinition;
|
|
22
21
|
get childPlaces(): Constructable<PlaceComponent>[];
|
|
23
|
-
get active(): import("@coolon/pectin").ValueModel<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* Called by the router when the place is ready to interact after any animations have run.
|
|
26
|
-
*/
|
|
27
|
-
_notifyActive(active: boolean): void;
|
|
28
22
|
onPlaceReady(): void;
|
|
29
23
|
}
|
|
30
24
|
export declare namespace PlaceComponent {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.5",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@coolon/typescript-utilities": "^2.0.0",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"@angular/platform-browser": "^9.1.9",
|
|
12
12
|
"factory.ts": "^0.5.1",
|
|
13
13
|
"faker": "^4.1.0",
|
|
14
|
+
"immer": "^6.0.5",
|
|
14
15
|
"@angular/platform-browser-dynamic": "^9.1.9",
|
|
15
16
|
"@angular/flex-layout": "^9.0.0-beta.31",
|
|
16
17
|
"@angular/router": "^9.1.9",
|
|
17
18
|
"rxjs": "~6.5.5",
|
|
18
|
-
"reflect-metadata": "^0.1.13"
|
|
19
|
-
"zone.js": "~0.10.2"
|
|
19
|
+
"reflect-metadata": "^0.1.13"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@angular/common": "^9.1.9",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@angular/material": "^9.2.4",
|
|
25
25
|
"@angular/animations": "^9.1.9",
|
|
26
26
|
"@angular/cdk": "^9.2.4",
|
|
27
|
-
"@coolon/pectin": ">=
|
|
27
|
+
"@coolon/pectin": ">=2.9.0",
|
|
28
28
|
"resize-observer-polyfill": "^1.5.1",
|
|
29
29
|
"@fortawesome/angular-fontawesome": "^0.6.1",
|
|
30
30
|
"@fortawesome/fontawesome-svg-core": "^1.2.28",
|
package/assets/commands.scss
DELETED
package/assets/icons.scss
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--aup-icon-width: 24px;
|
|
3
|
-
--aup-fa-icon-width: 18px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
aup-icon {
|
|
8
|
-
// egregious hackery to get the font awesome icons positioning correctly
|
|
9
|
-
--fa-icon-offset: calc((var(--aup-icon-width) - var(--aup-fa-icon-width)) / 2);
|
|
10
|
-
|
|
11
|
-
position: relative;
|
|
12
|
-
fa-icon {
|
|
13
|
-
.svg-inline--fa {
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: var(--fa-icon-offset);
|
|
16
|
-
left: var(--fa-icon-offset);
|
|
17
|
-
width: var(--aup-fa-icon-width) !important;
|
|
18
|
-
height: var(--aup-fa-icon-width) !important;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// egregious hackery to get the icon to display the same as a mat-icon inside a mat-menu
|
|
24
|
-
.mat-menu-panel {
|
|
25
|
-
aup-icon {
|
|
26
|
-
.svg-inline--fa {
|
|
27
|
-
opacity: 0.54;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata, __param } from "tslib";
|
|
2
|
-
import { Component, Input, Optional } from '@angular/core';
|
|
3
|
-
import { Command, Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
5
|
-
import { CommandFace } from '../command-face';
|
|
6
|
-
import { CommandGroup } from '../group/command-group';
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
let CommandComponent = class CommandComponent extends DisposableComponent {
|
|
11
|
-
constructor(parent) {
|
|
12
|
-
super();
|
|
13
|
-
this.parent = parent;
|
|
14
|
-
this.CommandFace = CommandFace;
|
|
15
|
-
const { chain, switchOn } = Dsl.disposeWith(this);
|
|
16
|
-
this.activeFaceModel = switchOn(this.command.busy).toValue(when => {
|
|
17
|
-
when.equalTo(true, this.busyFaceModel);
|
|
18
|
-
when.otherwise(this.faceModel);
|
|
19
|
-
}).otherwise(this.faceModel);
|
|
20
|
-
this.buttonStyle = chain(this.activeFaceModel).map(f => CommandFace.getStyleOf(f));
|
|
21
|
-
this.colorModel = chain(this.activeFaceModel).map(f => CommandFace.getColorOf(f));
|
|
22
|
-
if (parent) {
|
|
23
|
-
this.registerDisposable(this.parent.registerCommand(this.command, this.activeFaceModel));
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
ngOnInit() {
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
CommandComponent.ctorParameters = () => [
|
|
30
|
-
{ type: CommandGroup, decorators: [{ type: Optional }] }
|
|
31
|
-
];
|
|
32
|
-
__decorate([
|
|
33
|
-
Input(), TrackExternal(),
|
|
34
|
-
__metadata("design:type", Command)
|
|
35
|
-
], CommandComponent.prototype, "command", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
Input(), TrackExternal(),
|
|
38
|
-
__metadata("design:type", ValueModel)
|
|
39
|
-
], CommandComponent.prototype, "faceModel", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
Input(), StoreInValueModel('faceModel'),
|
|
42
|
-
__metadata("design:type", Object)
|
|
43
|
-
], CommandComponent.prototype, "face", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
Input(), TrackExternal(),
|
|
46
|
-
__metadata("design:type", ValueModel)
|
|
47
|
-
], CommandComponent.prototype, "busyFaceModel", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
Input(), StoreInValueModel('busyFaceModel'),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], CommandComponent.prototype, "busyFace", void 0);
|
|
52
|
-
CommandComponent = __decorate([
|
|
53
|
-
Component({
|
|
54
|
-
selector: 'aup-command',
|
|
55
|
-
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"
|
|
56
|
-
}),
|
|
57
|
-
__param(0, Optional()),
|
|
58
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
59
|
-
], CommandComponent);
|
|
60
|
-
export { CommandComponent };
|
|
61
|
-
//# sourceMappingURL=command.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command/command.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,EACL,OAAO,EACP,GAAG,EACH,iBAAiB,EACjB,aAAa,EAEb,UAAU,EAEX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;GAEG;AAMH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,mBAAmB;IAuBvD,YAAiC,MAAqB;QACpD,KAAK,EAAE,CAAC;QADuB,WAAM,GAAN,MAAM,CAAe;QANtD,gBAAW,GAAG,WAAW,CAAC;QAQxB,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAChE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YACvC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAChC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC5B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QACnF,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QAClF,IAAI,MAAM,EAAE;YACV,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;SAC1F;IACH,CAAC;IAGD,QAAQ;IACR,CAAC;CACF,CAAA;;YAjB2C,YAAY,uBAAzC,QAAQ;;AApBrB;IADC,KAAK,EAAE,EAAE,aAAa,EAAE;8BAChB,OAAO;iDAAU;AAG1B;IADC,KAAK,EAAE,EAAE,aAAa,EAAE;8BACd,UAAU;mDAAc;AAGnC;IADC,KAAK,EAAE,EAAE,iBAAiB,CAAC,WAAW,CAAC;;8CACtB;AAGlB;IADC,KAAK,EAAE,EAAE,aAAa,EAAE;8BACV,UAAU;uDAAc;AAGvC;IADC,KAAK,EAAE,EAAE,iBAAiB,CAAC,eAAe,CAAC;;kDACtB;AAfX,gBAAgB;IAL5B,SAAS,CAAC;QACT,QAAQ,EAAE,aAAa;QACvB,ywBAAuC;KAExC,CAAC;IAwBa,WAAA,QAAQ,EAAE,CAAA;qCAAmB,YAAY;GAvB3C,gBAAgB,CAwC5B;SAxCY,gBAAgB","sourcesContent":["import { Component, Input, OnInit, Optional } from '@angular/core';\n\nimport {\n Command,\n Dsl,\n StoreInValueModel,\n TrackExternal,\n TransactionObserver,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandFace } from '../command-face';\nimport { CommandGroup } from '../group/command-group';\n\n/**\n *\n */\n@Component({\n selector: 'aup-command',\n templateUrl: './command.component.html',\n styles: []\n})\nexport class CommandComponent extends DisposableComponent implements OnInit {\n\n @Input() @TrackExternal()\n command: Command<unknown>;\n\n @Input() @TrackExternal()\n faceModel: ValueModel<CommandFace>;\n\n @Input() @StoreInValueModel('faceModel')\n face: CommandFace;\n\n @Input() @TrackExternal()\n busyFaceModel: ValueModel<CommandFace>;\n\n @Input() @StoreInValueModel('busyFaceModel')\n busyFace: CommandFace;\n\n CommandFace = CommandFace;\n\n readonly activeFaceModel: ValueModelChain<CommandFace>;\n readonly buttonStyle: ValueModelChain<string>;\n readonly colorModel: ValueModelChain<'primary' | 'accent' | 'warn' | undefined>;\n\n constructor(@Optional() readonly parent?: CommandGroup) {\n super();\n const { chain, switchOn } = Dsl.disposeWith(this);\n this.activeFaceModel = switchOn(this.command.busy).toValue(when => {\n when.equalTo(true, this.busyFaceModel);\n when.otherwise(this.faceModel)\n }).otherwise(this.faceModel)\n this.buttonStyle = chain(this.activeFaceModel).map(f => CommandFace.getStyleOf(f));\n this.colorModel = chain(this.activeFaceModel).map(f => CommandFace.getColorOf(f));\n if (parent) {\n this.registerDisposable(this.parent.registerCommand(this.command, this.activeFaceModel));\n }\n }\n\n\n ngOnInit() {\n }\n}\n\n"]}
|