@coolon/angular-ui-powerups 2.0.0-alpha.37 → 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 -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 +399 -1814
- 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 -1539
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +403 -1798
- 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 -108
- 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 -141
- 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 -39
- 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,68 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
3
|
-
import { Dsl, StoreInValueModel, Trace, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
5
|
-
import { CommandFace } from '../command-face';
|
|
6
|
-
import { CommandGroup } from './command-group';
|
|
7
|
-
var ɵ0 = CommandGroup.factory;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
var PopupMenuComponent = /** @class */ (function (_super) {
|
|
12
|
-
__extends(PopupMenuComponent, _super);
|
|
13
|
-
function PopupMenuComponent(group) {
|
|
14
|
-
var _this = _super.call(this) || this;
|
|
15
|
-
_this.group = group;
|
|
16
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
17
|
-
group.faceModel = _this.faceModel;
|
|
18
|
-
return _this;
|
|
19
|
-
}
|
|
20
|
-
PopupMenuComponent.prototype.ngOnInit = function () {
|
|
21
|
-
};
|
|
22
|
-
PopupMenuComponent.prototype.ngAfterContentInit = function () {
|
|
23
|
-
this.group.initialise();
|
|
24
|
-
};
|
|
25
|
-
PopupMenuComponent.prototype.ngAfterViewInit = function () {
|
|
26
|
-
};
|
|
27
|
-
PopupMenuComponent.ctorParameters = function () { return [
|
|
28
|
-
{ type: CommandGroup }
|
|
29
|
-
]; };
|
|
30
|
-
__decorate([
|
|
31
|
-
Input(), TrackExternal(),
|
|
32
|
-
__metadata("design:type", ValueModel)
|
|
33
|
-
], PopupMenuComponent.prototype, "faceModel", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
Input(), StoreInValueModel('faceModel'),
|
|
36
|
-
__metadata("design:type", Object)
|
|
37
|
-
], PopupMenuComponent.prototype, "face", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
Trace(),
|
|
40
|
-
__metadata("design:type", Function),
|
|
41
|
-
__metadata("design:paramtypes", []),
|
|
42
|
-
__metadata("design:returntype", void 0)
|
|
43
|
-
], PopupMenuComponent.prototype, "ngOnInit", null);
|
|
44
|
-
__decorate([
|
|
45
|
-
Trace(),
|
|
46
|
-
__metadata("design:type", Function),
|
|
47
|
-
__metadata("design:paramtypes", []),
|
|
48
|
-
__metadata("design:returntype", void 0)
|
|
49
|
-
], PopupMenuComponent.prototype, "ngAfterContentInit", null);
|
|
50
|
-
__decorate([
|
|
51
|
-
Trace(),
|
|
52
|
-
__metadata("design:type", Function),
|
|
53
|
-
__metadata("design:paramtypes", []),
|
|
54
|
-
__metadata("design:returntype", void 0)
|
|
55
|
-
], PopupMenuComponent.prototype, "ngAfterViewInit", null);
|
|
56
|
-
PopupMenuComponent = __decorate([
|
|
57
|
-
Component({
|
|
58
|
-
selector: 'aup-popup-menu',
|
|
59
|
-
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
60
|
-
providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
|
|
61
|
-
}),
|
|
62
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
63
|
-
], PopupMenuComponent);
|
|
64
|
-
return PopupMenuComponent;
|
|
65
|
-
}(DisposableComponent));
|
|
66
|
-
export { PopupMenuComponent };
|
|
67
|
-
export { ɵ0 };
|
|
68
|
-
//# sourceMappingURL=popup-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/popup-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAmC,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;SASI,YAAY,CAAC,OAAO;AAPvE;;GAEG;AAOH;IAAwC,sCAAmB;IAQzD,4BAAqB,KAAmB;QAAxC,YACE,iBAAO,SAGR;QAJoB,WAAK,GAAL,KAAK,CAAc;QAEhC,IAAA,2BAAkF,EAAhF,gBAAK,EAAE,oBAAO,EAAE,kBAAM,EAAE,cAAI,EAAE,gBAAK,EAAE,oBAAO,EAAE,sBAAkC,CAAC;QACzF,KAAK,CAAC,SAAS,GAAG,KAAI,CAAC,SAAS,CAAC;;IACnC,CAAC;IAGD,qCAAQ,GAAR;IACA,CAAC;IAGD,+CAAkB,GAAlB;QACE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAC1B,CAAC;IAGD,4CAAe,GAAf;IACA,CAAC;;gBAjB2B,YAAY;;IALxC;QADC,KAAK,EAAE,EAAE,aAAa,EAAE;kCACd,UAAU;yDAAc;IAGnC;QADC,KAAK,EAAE,EAAE,iBAAiB,CAAC,WAAW,CAAC;;oDACtB;IASlB;QADC,KAAK,EAAE;;;;sDAEP;IAGD;QADC,KAAK,EAAE;;;;gEAGP;IAGD;QADC,KAAK,EAAE;;;;6DAEP;IAzBU,kBAAkB;QAN9B,SAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,6HAA6H;YAEvI,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,IAAsB,EAAC,CAAC;SACxE,CAAC;yCAS4B,YAAY;OAR7B,kBAAkB,CA4B9B;IAAD,yBAAC;CAAA,AA5BD,CAAwC,mBAAmB,GA4B1D;SA5BY,kBAAkB","sourcesContent":["import { AfterContentInit, AfterViewInit, Component, Input, OnInit } from '@angular/core';\n\nimport { Dsl, StoreInValueModel, Trace, TrackExternal, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandFace } from '../command-face';\nimport { CommandGroup } from './command-group';\n\n/**\n *\n */\n@Component({\n selector: 'aup-popup-menu',\n template: '<aup-command-group-renderer [renderRootNode]=\"true\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>',\n styleUrls: [],\n providers: [{ provide: CommandGroup, useFactory: CommandGroup.factory}]\n})\nexport class PopupMenuComponent extends DisposableComponent implements OnInit, AfterContentInit, AfterViewInit {\n\n @Input() @TrackExternal()\n faceModel: ValueModel<CommandFace>;\n\n @Input() @StoreInValueModel('faceModel')\n face: CommandFace;\n\n constructor(readonly group: CommandGroup) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n group.faceModel = this.faceModel;\n }\n\n @Trace()\n ngOnInit(): void {\n }\n\n @Trace()\n ngAfterContentInit(): void {\n this.group.initialise();\n }\n\n @Trace()\n ngAfterViewInit(): void {\n }\n\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/popup-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { GarbageCollector } from '@coolon/pectin';
|
|
3
|
-
import { ViewData } from './view-data';
|
|
4
|
-
var Registration = /** @class */ (function (_super) {
|
|
5
|
-
__extends(Registration, _super);
|
|
6
|
-
function Registration() {
|
|
7
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
|
-
}
|
|
9
|
-
return Registration;
|
|
10
|
-
}(GarbageCollector));
|
|
11
|
-
export { Registration };
|
|
12
|
-
(function (Registration) {
|
|
13
|
-
var FaceRegistration = /** @class */ (function (_super) {
|
|
14
|
-
__extends(FaceRegistration, _super);
|
|
15
|
-
function FaceRegistration(faceModel) {
|
|
16
|
-
var _this = _super.call(this) || this;
|
|
17
|
-
_this.faceModel = faceModel;
|
|
18
|
-
return _this;
|
|
19
|
-
}
|
|
20
|
-
return FaceRegistration;
|
|
21
|
-
}(Registration));
|
|
22
|
-
Registration.FaceRegistration = FaceRegistration;
|
|
23
|
-
var CommandRegistration = /** @class */ (function (_super) {
|
|
24
|
-
__extends(CommandRegistration, _super);
|
|
25
|
-
function CommandRegistration(faceModel, command) {
|
|
26
|
-
var _this = _super.call(this, faceModel) || this;
|
|
27
|
-
_this.command = command;
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
30
|
-
CommandRegistration.prototype.toTemplate = function () {
|
|
31
|
-
return new ViewData.CommandData(this.faceModel.value, this.command);
|
|
32
|
-
};
|
|
33
|
-
return CommandRegistration;
|
|
34
|
-
}(FaceRegistration));
|
|
35
|
-
Registration.CommandRegistration = CommandRegistration;
|
|
36
|
-
var GroupRegistration = /** @class */ (function (_super) {
|
|
37
|
-
__extends(GroupRegistration, _super);
|
|
38
|
-
function GroupRegistration(faceModel, group) {
|
|
39
|
-
var _this = _super.call(this, faceModel) || this;
|
|
40
|
-
_this.group = group;
|
|
41
|
-
return _this;
|
|
42
|
-
}
|
|
43
|
-
GroupRegistration.prototype.toTemplate = function () {
|
|
44
|
-
return new ViewData.GroupData(this.faceModel.value, this.group.xPosition, this.group.yPosition, this.group.registrations.value.map(function (r) { return r.toTemplate(); }));
|
|
45
|
-
};
|
|
46
|
-
return GroupRegistration;
|
|
47
|
-
}(FaceRegistration));
|
|
48
|
-
Registration.GroupRegistration = GroupRegistration;
|
|
49
|
-
var SeparatorRegistration = /** @class */ (function (_super) {
|
|
50
|
-
__extends(SeparatorRegistration, _super);
|
|
51
|
-
function SeparatorRegistration() {
|
|
52
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
-
_this.template = new ViewData.SeparatorData();
|
|
54
|
-
return _this;
|
|
55
|
-
}
|
|
56
|
-
SeparatorRegistration.prototype.toTemplate = function () {
|
|
57
|
-
return this.template;
|
|
58
|
-
};
|
|
59
|
-
return SeparatorRegistration;
|
|
60
|
-
}(Registration));
|
|
61
|
-
Registration.SeparatorRegistration = SeparatorRegistration;
|
|
62
|
-
var FlexRegistration = /** @class */ (function (_super) {
|
|
63
|
-
__extends(FlexRegistration, _super);
|
|
64
|
-
function FlexRegistration() {
|
|
65
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
66
|
-
_this.template = new ViewData.FlexData();
|
|
67
|
-
return _this;
|
|
68
|
-
}
|
|
69
|
-
FlexRegistration.prototype.toTemplate = function () {
|
|
70
|
-
return this.template;
|
|
71
|
-
};
|
|
72
|
-
return FlexRegistration;
|
|
73
|
-
}(Registration));
|
|
74
|
-
Registration.FlexRegistration = FlexRegistration;
|
|
75
|
-
function hasFace(entry) {
|
|
76
|
-
return entry instanceof CommandRegistration || entry instanceof GroupRegistration;
|
|
77
|
-
}
|
|
78
|
-
Registration.hasFace = hasFace;
|
|
79
|
-
})(Registration || (Registration = {}));
|
|
80
|
-
//# sourceMappingURL=registration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registration.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/registration.ts"],"names":[],"mappings":";AACA,OAAO,EAAW,gBAAgB,EAAc,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGv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,qEAMC;YALkB,cAAQ,GAAG,IAAI,QAAQ,CAAC,aAAa,EAAE,CAAC;;QAK3D,CAAC;QAHC,0CAAU,GAAV;YACE,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;QACH,4BAAC;IAAD,CAAC,AAND,CAA2C,YAAY,GAMtD;IANY,kCAAqB,wBAMjC,CAAA;IAED;QAAsC,oCAAY;QAAlD;YAAA,qEAMC;YALkB,cAAQ,GAAG,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;;QAKtD,CAAC;QAHC,qCAAU,GAAV;YACE,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;QACH,uBAAC;IAAD,CAAC,AAND,CAAsC,YAAY,GAMjD;IANY,6BAAgB,mBAM5B,CAAA;IAED,SAAgB,OAAO,CAAC,KAAmB;QACzC,OAAO,KAAK,YAAY,mBAAmB,IAAI,KAAK,YAAY,iBAAiB,CAAC;IACpF,CAAC;IAFe,oBAAO,UAEtB,CAAA;AAEH,CAAC,EArDgB,YAAY,KAAZ,YAAY,QAqD5B","sourcesContent":["\nimport { Command, GarbageCollector, ValueModel } from '@coolon/pectin';\nimport { CommandGroup } from './command-group';\nimport { ViewData } from './view-data';\nimport { CommandFace } from '../command-face';\n\nexport abstract class Registration extends GarbageCollector {\n abstract toTemplate(): ViewData;\n}\n\nexport namespace Registration {\n\n export abstract class FaceRegistration extends Registration {\n protected constructor(readonly faceModel: ValueModel<CommandFace>) {\n super();\n }\n }\n\n export class CommandRegistration extends FaceRegistration {\n constructor(faceModel: ValueModel<CommandFace>, readonly command: Command<unknown>) {\n super(faceModel);\n }\n\n toTemplate(): ViewData.CommandData {\n return new ViewData.CommandData(this.faceModel.value, this.command);\n }\n }\n\n export class GroupRegistration extends FaceRegistration {\n constructor(faceModel: ValueModel<CommandFace>, readonly group: CommandGroup) {\n super(faceModel);\n }\n\n toTemplate(): ViewData.GroupData {\n return new ViewData.GroupData(this.faceModel.value,\n this.group.xPosition,\n this.group.yPosition,\n this.group.registrations.value.map(r => r.toTemplate())\n );\n }\n\n }\n\n export class SeparatorRegistration extends Registration {\n private readonly template = new ViewData.SeparatorData();\n\n toTemplate(): ViewData.SeparatorData {\n return this.template;\n }\n }\n\n export class FlexRegistration extends Registration {\n private readonly template = new ViewData.FlexData();\n\n toTemplate(): ViewData.FlexData {\n return this.template;\n }\n }\n\n export function hasFace(entry: Registration): entry is FaceRegistration {\n return entry instanceof CommandRegistration || entry instanceof GroupRegistration;\n }\n\n}\n\n\n"]}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
import { Trace } from '@coolon/pectin';
|
|
4
|
-
import { DisposableComponent } from '../../../disposable-component';
|
|
5
|
-
import { CommandGroup } from '../command-group';
|
|
6
|
-
var ɵ0 = CommandGroup.factory;
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var ToolBarComponent = /** @class */ (function (_super) {
|
|
11
|
-
__extends(ToolBarComponent, _super);
|
|
12
|
-
function ToolBarComponent(group) {
|
|
13
|
-
var _this = _super.call(this) || this;
|
|
14
|
-
_this.group = group;
|
|
15
|
-
return _this;
|
|
16
|
-
}
|
|
17
|
-
ToolBarComponent.prototype.ngOnInit = function () {
|
|
18
|
-
};
|
|
19
|
-
ToolBarComponent.prototype.ngAfterContentInit = function () {
|
|
20
|
-
this.group.initialise();
|
|
21
|
-
};
|
|
22
|
-
ToolBarComponent.prototype.ngAfterViewInit = function () {
|
|
23
|
-
};
|
|
24
|
-
ToolBarComponent.ctorParameters = function () { return [
|
|
25
|
-
{ type: CommandGroup }
|
|
26
|
-
]; };
|
|
27
|
-
__decorate([
|
|
28
|
-
Trace(),
|
|
29
|
-
__metadata("design:type", Function),
|
|
30
|
-
__metadata("design:paramtypes", []),
|
|
31
|
-
__metadata("design:returntype", void 0)
|
|
32
|
-
], ToolBarComponent.prototype, "ngOnInit", null);
|
|
33
|
-
__decorate([
|
|
34
|
-
Trace(),
|
|
35
|
-
__metadata("design:type", Function),
|
|
36
|
-
__metadata("design:paramtypes", []),
|
|
37
|
-
__metadata("design:returntype", void 0)
|
|
38
|
-
], ToolBarComponent.prototype, "ngAfterContentInit", null);
|
|
39
|
-
__decorate([
|
|
40
|
-
Trace(),
|
|
41
|
-
__metadata("design:type", Function),
|
|
42
|
-
__metadata("design:paramtypes", []),
|
|
43
|
-
__metadata("design:returntype", void 0)
|
|
44
|
-
], ToolBarComponent.prototype, "ngAfterViewInit", null);
|
|
45
|
-
ToolBarComponent = __decorate([
|
|
46
|
-
Component({
|
|
47
|
-
selector: 'aup-tool-bar',
|
|
48
|
-
template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
49
|
-
providers: [{ provide: CommandGroup, useFactory: ɵ0 }],
|
|
50
|
-
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}"]
|
|
51
|
-
}),
|
|
52
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
53
|
-
], ToolBarComponent);
|
|
54
|
-
return ToolBarComponent;
|
|
55
|
-
}(DisposableComponent));
|
|
56
|
-
export { ToolBarComponent };
|
|
57
|
-
export { ɵ0 };
|
|
58
|
-
//# sourceMappingURL=tool-bar.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-bar.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/tool-bar/tool-bar.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAmC,SAAS,EAAU,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;SAUG,YAAY,CAAC,OAAO;AAPvE;;GAEG;AAOH;IAAsC,oCAAmB;IAEvD,0BAAqB,KAAmB;QAAxC,YACE,iBAAO,SACR;QAFoB,WAAK,GAAL,KAAK,CAAc;;IAExC,CAAC;IAGD,mCAAQ,GAAR;IACA,CAAC;IAGD,6CAAkB,GAAlB;QACE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAC1B,CAAC;IAGD,0CAAe,GAAf;IACA,CAAC;;gBAf2B,YAAY;;IAKxC;QADC,KAAK,EAAE;;;;oDAEP;IAGD;QADC,KAAK,EAAE;;;;8DAGP;IAGD;QADC,KAAK,EAAE;;;;2DAEP;IAjBU,gBAAgB;QAN5B,SAAS,CAAC;YACT,QAAQ,EAAE,cAAc;YACxB,QAAQ,EAAE,8HAA8H;YAExI,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,IAAsB,EAAE,CAAC;;SACzE,CAAC;yCAG4B,YAAY;OAF7B,gBAAgB,CAmB5B;IAAD,uBAAC;CAAA,AAnBD,CAAsC,mBAAmB,GAmBxD;SAnBY,gBAAgB","sourcesContent":["import { AfterContentInit, AfterViewInit, Component, OnInit } from '@angular/core';\nimport { Trace } from '@coolon/pectin';\nimport { DisposableComponent } from '../../../disposable-component';\nimport { CommandGroup } from '../command-group';\n\n\n/**\n *\n */\n@Component({\n selector: 'aup-tool-bar',\n template: '<aup-command-group-renderer [renderRootNode]=\"false\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>',\n styleUrls: ['./tool-bar.component.scss'],\n providers: [{ provide: CommandGroup, useFactory: CommandGroup.factory }]\n})\nexport class ToolBarComponent extends DisposableComponent implements OnInit, AfterContentInit, AfterViewInit {\n\n constructor(readonly group: CommandGroup) {\n super();\n }\n\n @Trace()\n ngOnInit() {\n }\n\n @Trace()\n ngAfterContentInit(): void {\n this.group.initialise();\n }\n\n @Trace()\n ngAfterViewInit(): void {\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-bar.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-bar.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { lang } from '@coolon/pectin';
|
|
3
|
-
import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
|
|
4
|
-
import { CommandFace } from '../command-face';
|
|
5
|
-
var ViewData = /** @class */ (function () {
|
|
6
|
-
function ViewData() {
|
|
7
|
-
}
|
|
8
|
-
return ViewData;
|
|
9
|
-
}());
|
|
10
|
-
export { ViewData };
|
|
11
|
-
(function (ViewData) {
|
|
12
|
-
var FaceData = /** @class */ (function (_super) {
|
|
13
|
-
__extends(FaceData, _super);
|
|
14
|
-
function FaceData(face) {
|
|
15
|
-
var _this = _super.call(this) || this;
|
|
16
|
-
_this.faceAdapter = new CommandFace.Adapter(face);
|
|
17
|
-
return _this;
|
|
18
|
-
}
|
|
19
|
-
return FaceData;
|
|
20
|
-
}(ViewData));
|
|
21
|
-
ViewData.FaceData = FaceData;
|
|
22
|
-
var GroupData = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GroupData, _super);
|
|
24
|
-
function GroupData(face, xPosition, yPosition, children) {
|
|
25
|
-
var _this = _super.call(this, face) || this;
|
|
26
|
-
_this.xPosition = xPosition;
|
|
27
|
-
_this.yPosition = yPosition;
|
|
28
|
-
_this.children = children;
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
Object.defineProperty(GroupData.prototype, "hasMixedIcons", {
|
|
32
|
-
get: function () {
|
|
33
|
-
var hasFaces = this.children.filter(function (c) { return ViewData.hasFace(c); });
|
|
34
|
-
var iconCount = hasFaces.filter(function (c) { return !!c.faceAdapter.icon; }).length;
|
|
35
|
-
return iconCount > 0 && hasFaces.length !== iconCount;
|
|
36
|
-
},
|
|
37
|
-
enumerable: true,
|
|
38
|
-
configurable: true
|
|
39
|
-
});
|
|
40
|
-
__decorate([
|
|
41
|
-
Memoize(),
|
|
42
|
-
__metadata("design:type", Boolean),
|
|
43
|
-
__metadata("design:paramtypes", [])
|
|
44
|
-
], GroupData.prototype, "hasMixedIcons", null);
|
|
45
|
-
return GroupData;
|
|
46
|
-
}(FaceData));
|
|
47
|
-
ViewData.GroupData = GroupData;
|
|
48
|
-
var CommandData = /** @class */ (function (_super) {
|
|
49
|
-
__extends(CommandData, _super);
|
|
50
|
-
function CommandData(face, command) {
|
|
51
|
-
var _this = _super.call(this, face) || this;
|
|
52
|
-
_this.command = command;
|
|
53
|
-
return _this;
|
|
54
|
-
}
|
|
55
|
-
return CommandData;
|
|
56
|
-
}(FaceData));
|
|
57
|
-
ViewData.CommandData = CommandData;
|
|
58
|
-
var SeparatorData = /** @class */ (function (_super) {
|
|
59
|
-
__extends(SeparatorData, _super);
|
|
60
|
-
function SeparatorData() {
|
|
61
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
62
|
-
}
|
|
63
|
-
return SeparatorData;
|
|
64
|
-
}(ViewData));
|
|
65
|
-
ViewData.SeparatorData = SeparatorData;
|
|
66
|
-
var FlexData = /** @class */ (function (_super) {
|
|
67
|
-
__extends(FlexData, _super);
|
|
68
|
-
function FlexData() {
|
|
69
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
70
|
-
}
|
|
71
|
-
return FlexData;
|
|
72
|
-
}(ViewData));
|
|
73
|
-
ViewData.FlexData = FlexData;
|
|
74
|
-
function as(type, viewData) {
|
|
75
|
-
return viewData instanceof type ? viewData : lang.illegalState("expected instance of " + type.name + ", got " + viewData.constructor.name);
|
|
76
|
-
}
|
|
77
|
-
ViewData.as = as;
|
|
78
|
-
function getCommand(data) {
|
|
79
|
-
return as(CommandData, data).command;
|
|
80
|
-
}
|
|
81
|
-
ViewData.getCommand = getCommand;
|
|
82
|
-
function getTooltip(data) {
|
|
83
|
-
return as(FaceData, data).faceAdapter.tooltip;
|
|
84
|
-
}
|
|
85
|
-
ViewData.getTooltip = getTooltip;
|
|
86
|
-
function getStyle(data) {
|
|
87
|
-
return as(FaceData, data).faceAdapter.style;
|
|
88
|
-
}
|
|
89
|
-
ViewData.getStyle = getStyle;
|
|
90
|
-
function getColor(data) {
|
|
91
|
-
return as(FaceData, data).faceAdapter.color;
|
|
92
|
-
}
|
|
93
|
-
ViewData.getColor = getColor;
|
|
94
|
-
function hasText(data) {
|
|
95
|
-
return !!as(FaceData, data).faceAdapter.text;
|
|
96
|
-
}
|
|
97
|
-
ViewData.hasText = hasText;
|
|
98
|
-
function getFace(data) {
|
|
99
|
-
return as(FaceData, data).faceAdapter.face;
|
|
100
|
-
}
|
|
101
|
-
ViewData.getFace = getFace;
|
|
102
|
-
function asGroup(viewData) {
|
|
103
|
-
return as(GroupData, viewData);
|
|
104
|
-
}
|
|
105
|
-
ViewData.asGroup = asGroup;
|
|
106
|
-
function hasMixedIcons(data) {
|
|
107
|
-
return as(GroupData, data).hasMixedIcons;
|
|
108
|
-
}
|
|
109
|
-
ViewData.hasMixedIcons = hasMixedIcons;
|
|
110
|
-
function isGroup(data) {
|
|
111
|
-
return data instanceof GroupData;
|
|
112
|
-
}
|
|
113
|
-
ViewData.isGroup = isGroup;
|
|
114
|
-
function hasFace(data) {
|
|
115
|
-
return data instanceof FaceData;
|
|
116
|
-
}
|
|
117
|
-
ViewData.hasFace = hasFace;
|
|
118
|
-
function isCommand(data) {
|
|
119
|
-
return data instanceof CommandData;
|
|
120
|
-
}
|
|
121
|
-
ViewData.isCommand = isCommand;
|
|
122
|
-
function isSeparator(data) {
|
|
123
|
-
return data instanceof SeparatorData;
|
|
124
|
-
}
|
|
125
|
-
ViewData.isSeparator = isSeparator;
|
|
126
|
-
function isFlex(data) {
|
|
127
|
-
return data instanceof FlexData;
|
|
128
|
-
}
|
|
129
|
-
ViewData.isFlex = isFlex;
|
|
130
|
-
})(ViewData || (ViewData = {}));
|
|
131
|
-
//# sourceMappingURL=view-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"view-data.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/view-data.ts"],"names":[],"mappings":";AACA,OAAO,EAA0B,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C;IAAA;IACA,CAAC;IAAD,eAAC;AAAD,CAAC,AADD,IACC;;AAED,WAAiB,QAAQ;IAEvB;QAA8B,4BAAQ;QAGpC,kBAAY,IAAiB;YAA7B,YACE,iBAAO,SAER;YADC,KAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;;QACnD,CAAC;QACH,eAAC;IAAD,CAAC,AAPD,CAA8B,QAAQ,GAOrC;IAPY,iBAAQ,WAOpB,CAAA;IAED;QAA+B,6BAAQ;QACrC,mBAAY,IAAiB,EACR,SAAS,EACT,SAAS,EACT,QAAoB;YAHzC,YAIE,kBAAM,IAAI,CAAC,SACZ;YAJoB,eAAS,GAAT,SAAS,CAAA;YACT,eAAS,GAAT,SAAS,CAAA;YACT,cAAQ,GAAR,QAAQ,CAAY;;QAEzC,CAAC;QAGD,sBAAI,oCAAa;i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BAAO,UAEtB,CAAA;IAED,SAAgB,OAAO,CAAC,IAAc;QACpC,OAAO,IAAI,YAAY,QAAQ,CAAC;IAClC,CAAC;IAFe,gBAAO,UAEtB,CAAA;IAED,SAAgB,SAAS,CAAC,IAAc;QACtC,OAAO,IAAI,YAAY,WAAW,CAAC;IACrC,CAAC;IAFe,kBAAS,YAExB,CAAA;IAED,SAAgB,WAAW,CAAC,IAAc;QACxC,OAAO,IAAI,YAAY,aAAa,CAAC;IACvC,CAAC;IAFe,oBAAW,cAE1B,CAAA;IAED,SAAgB,MAAM,CAAC,IAAc;QACnC,OAAO,IAAI,YAAY,QAAQ,CAAC;IAClC,CAAC;IAFe,eAAM,SAErB,CAAA;AAGH,CAAC,EAjGgB,QAAQ,KAAR,QAAQ,QAiGxB","sourcesContent":["import { ThemePalette } from '@angular/material/core';\nimport { Command, Constructable, lang } from '@coolon/pectin';\nimport { icon } from '@fortawesome/fontawesome-svg-core';\nimport { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\nimport { CommandFace } from '../command-face';\n\n\nexport class ViewData {\n}\n\nexport namespace ViewData {\n\n export class FaceData extends ViewData {\n readonly faceAdapter: CommandFace.Adapter;\n\n constructor(face: CommandFace) {\n super();\n this.faceAdapter = new CommandFace.Adapter(face);\n }\n }\n\n export class GroupData extends FaceData {\n constructor(face: CommandFace,\n readonly xPosition,\n readonly yPosition,\n readonly children: ViewData[]) {\n super(face);\n }\n\n @Memoize()\n get hasMixedIcons(): boolean {\n const hasFaces = this.children.filter(c => ViewData.hasFace(c)) as ViewData.FaceData[]\n const iconCount = hasFaces.filter(c => !!c.faceAdapter.icon).length;\n return iconCount > 0 && hasFaces.length !== iconCount;\n }\n }\n\n export class CommandData extends FaceData {\n constructor(face: CommandFace, readonly command: Command<unknown>) {\n super(face);\n }\n }\n\n export class SeparatorData extends ViewData {\n }\n\n export class FlexData extends ViewData {\n }\n\n\n export function as<T extends ViewData>(type: Constructable<T>, viewData: ViewData): T {\n return viewData instanceof type ? viewData : lang.illegalState(`expected instance of ${type.name}, got ${viewData.constructor.name}`);\n }\n\n export function getCommand(data: ViewData): Command<unknown> {\n return as(CommandData, data).command;\n }\n\n export function getTooltip(data: ViewData): string {\n return as(FaceData, data).faceAdapter.tooltip;\n }\n\n export function getStyle(data: ViewData): string {\n return as(FaceData, data).faceAdapter.style;\n }\n\n export function getColor(data: ViewData): ThemePalette {\n return as(FaceData, data).faceAdapter.color as ThemePalette;\n }\n\n export function hasText(data: ViewData): boolean {\n return !!as(FaceData, data).faceAdapter.text;\n }\n\n export function getFace(data: ViewData): CommandFace {\n return as(FaceData, data).faceAdapter.face;\n }\n\n export function asGroup(viewData: ViewData): ViewData.GroupData {\n return as(GroupData, viewData);\n }\n\n export function hasMixedIcons(data: ViewData): boolean {\n return as(GroupData, data).hasMixedIcons;\n }\n\n export function isGroup(data: ViewData): data is GroupData {\n return data instanceof GroupData;\n }\n\n export function hasFace(data: ViewData): data is FaceData {\n return data instanceof FaceData;\n }\n\n export function isCommand(data: ViewData): data is CommandData {\n return data instanceof CommandData;\n }\n\n export function isSeparator(data: ViewData): data is SeparatorData {\n return data instanceof SeparatorData;\n }\n\n export function isFlex(data: ViewData): data is FlexData {\n return data instanceof FlexData;\n }\n\n\n}\n"]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata, __param } from "tslib";
|
|
2
|
-
import { Component, Optional } from '@angular/core';
|
|
3
|
-
import { DisposableComponent } from '../disposable-component';
|
|
4
|
-
import { CommandGroup } from './group/command-group';
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
var SeparatorComponent = /** @class */ (function (_super) {
|
|
9
|
-
__extends(SeparatorComponent, _super);
|
|
10
|
-
function SeparatorComponent(parent) {
|
|
11
|
-
var _this = _super.call(this) || this;
|
|
12
|
-
_this.parent = parent;
|
|
13
|
-
if (parent) {
|
|
14
|
-
parent.registerSeparator(_this);
|
|
15
|
-
}
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
SeparatorComponent.prototype.isVertical = function () {
|
|
19
|
-
return this === null || this === void 0 ? void 0 : this.parent.isRoot();
|
|
20
|
-
};
|
|
21
|
-
SeparatorComponent.prototype.ngOnInit = function () {
|
|
22
|
-
};
|
|
23
|
-
SeparatorComponent.ctorParameters = function () { return [
|
|
24
|
-
{ type: CommandGroup, decorators: [{ type: Optional }] }
|
|
25
|
-
]; };
|
|
26
|
-
SeparatorComponent = __decorate([
|
|
27
|
-
Component({
|
|
28
|
-
selector: 'aup-separator',
|
|
29
|
-
template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
|
|
30
|
-
}),
|
|
31
|
-
__param(0, Optional()),
|
|
32
|
-
__metadata("design:paramtypes", [CommandGroup])
|
|
33
|
-
], SeparatorComponent);
|
|
34
|
-
return SeparatorComponent;
|
|
35
|
-
}(DisposableComponent));
|
|
36
|
-
export { SeparatorComponent };
|
|
37
|
-
//# sourceMappingURL=separator.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"separator.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/separator.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAU,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD;;GAEG;AAOH;IAAwC,sCAAmB;IAEzD,4BAAiC,MAAqB;QAAtD,YACE,iBAAO,SAIR;QALgC,YAAM,GAAN,MAAM,CAAe;QAEpD,IAAI,MAAM,EAAE;YACV,MAAM,CAAC,iBAAiB,CAAC,KAAI,CAAC,CAAC;SAChC;;IACH,CAAC;IAED,uCAAU,GAAV;QACE,OAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAC,MAAM,GAAG;IAC/B,CAAC;IAED,qCAAQ,GAAR;IACA,CAAC;;gBAZyC,YAAY,uBAAzC,QAAQ;;IAFV,kBAAkB;QAN9B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,+DAC8C;SAEzD,CAAC;QAGa,WAAA,QAAQ,EAAE,CAAA;yCAAmB,YAAY;OAF3C,kBAAkB,CAgB9B;IAAD,yBAAC;CAAA,AAhBD,CAAwC,mBAAmB,GAgB1D;SAhBY,kBAAkB","sourcesContent":["import { Component, OnInit, Optional } from '@angular/core';\nimport { DisposableComponent } from '../disposable-component';\nimport { CommandGroup } from './group/command-group';\nimport { CommandGroupComponent } from './group/command-group/command-group.component';\n\n/**\n *\n */\n@Component({\n selector: 'aup-separator',\n template: `\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>`,\n styles: []\n})\nexport class SeparatorComponent extends DisposableComponent implements OnInit {\n\n constructor(@Optional() readonly parent?: CommandGroup) {\n super();\n if (parent) {\n parent.registerSeparator(this);\n }\n }\n\n isVertical() {\n return this?.parent.isRoot();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"separator.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/separator.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
|
|
3
|
-
import { Dsl, ListModel, MutableValueModel, StoreInListModel, TrackExternal } from '@coolon/pectin';
|
|
4
|
-
import _ from 'lodash';
|
|
5
|
-
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
6
|
-
/**
|
|
7
|
-
* Using templates (not only supported for nil values:
|
|
8
|
-
* <aup-autocomplete-input [valueModel]="myModel" [options]="myOptions">
|
|
9
|
-
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
10
|
-
* </aup-autocomplete-input>
|
|
11
|
-
*/
|
|
12
|
-
var AutocompleteInputComponent = /** @class */ (function (_super) {
|
|
13
|
-
__extends(AutocompleteInputComponent, _super);
|
|
14
|
-
function AutocompleteInputComponent() {
|
|
15
|
-
var _this = _super.call(this) || this;
|
|
16
|
-
_this.filterValue = new MutableValueModel();
|
|
17
|
-
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
18
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
19
|
-
var lowerCaseFilterValue = chain(_this.filterValue)
|
|
20
|
-
.map(function (v) { return _.isString(v) ? v.toLowerCase() : ''; });
|
|
21
|
-
_this.filteredOptions = chain(_this.optionsModel)
|
|
22
|
-
.select(function (option) {
|
|
23
|
-
return _.isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
|
|
24
|
-
}, { dependsOn: lowerCaseFilterValue });
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
AutocompleteInputComponent.prototype.ngOnInit = function () {
|
|
28
|
-
};
|
|
29
|
-
AutocompleteInputComponent.prototype.formatOption = function (option) {
|
|
30
|
-
return this.optionLabelFormat(option);
|
|
31
|
-
};
|
|
32
|
-
AutocompleteInputComponent.prototype.updateFilter = function ($event) {
|
|
33
|
-
this.filterValue.value = $event;
|
|
34
|
-
};
|
|
35
|
-
AutocompleteInputComponent.prototype.onSelect = function ($event) {
|
|
36
|
-
this.valueModel.value = $event.option.value;
|
|
37
|
-
};
|
|
38
|
-
__decorate([
|
|
39
|
-
Input(), TrackExternal(),
|
|
40
|
-
__metadata("design:type", ListModel)
|
|
41
|
-
], AutocompleteInputComponent.prototype, "optionsModel", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
Input(), StoreInListModel('optionsModel'),
|
|
44
|
-
__metadata("design:type", Array)
|
|
45
|
-
], AutocompleteInputComponent.prototype, "options", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
Input(),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], AutocompleteInputComponent.prototype, "optionLabel", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
Input(),
|
|
52
|
-
__metadata("design:type", Boolean)
|
|
53
|
-
], AutocompleteInputComponent.prototype, "allowNil", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
ContentChild('nilOptionTemplate'),
|
|
56
|
-
__metadata("design:type", TemplateRef)
|
|
57
|
-
], AutocompleteInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
Input(),
|
|
60
|
-
__metadata("design:type", Function)
|
|
61
|
-
], AutocompleteInputComponent.prototype, "optionLabelFormat", void 0);
|
|
62
|
-
AutocompleteInputComponent = __decorate([
|
|
63
|
-
Component({
|
|
64
|
-
selector: 'aup-autocomplete-input',
|
|
65
|
-
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",
|
|
66
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:paramtypes", [])
|
|
69
|
-
], AutocompleteInputComponent);
|
|
70
|
-
return AutocompleteInputComponent;
|
|
71
|
-
}(AbstractValueInputComponent));
|
|
72
|
-
export { AutocompleteInputComponent };
|
|
73
|
-
//# sourceMappingURL=autocomplete-input.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/autocomplete-input/autocomplete-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAEpF,OAAO,EACL,GAAG,EACH,SAAS,EAET,iBAAiB,EACjB,gBAAgB,EAEhB,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF;;;;;GAKG;AAMH;IAAyD,8CAA8B;IAuBrF;QAAA,YACE,iBAAO,SASR;QAhBO,iBAAW,GAAG,IAAI,iBAAiB,EAAU,CAAC;QAItD,uBAAiB,GAAuB,UAAC,MAAM,IAAK,OAAA,CAAC,MAAM,IAAI,KAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,EAAhE,CAAgE,CAAC;QAI7G,IAAA,2BAAkF,EAAhF,gBAAK,EAAE,oBAAO,EAAE,kBAAM,EAAE,cAAI,EAAE,gBAAK,EAAE,oBAAO,EAAE,sBAAkC,CAAC;Q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EAAE;;yEAC6G;IArB1G,0BAA0B;QALtC,SAAS,CAAC;YACT,QAAQ,EAAE,wBAAwB;YAClC,gnCAAkD;;SAEnD,CAAC;;OACW,0BAA0B,CAiDtC;IAAD,iCAAC;CAAA,AAjDD,CAAyD,2BAA2B,GAiDnF;SAjDY,0BAA0B","sourcesContent":["import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';\nimport { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';\nimport {\n Dsl,\n ListModel,\n ListModelChain,\n MutableValueModel,\n StoreInListModel,\n Trace,\n TrackExternal, TransactionObserver\n} from '@coolon/pectin';\nimport _ from 'lodash';\nimport { AbstractValueInputComponent } from '../abstract-value-input.component';\n\n/**\n * Using templates (not only supported for nil values:\n * <aup-autocomplete-input [valueModel]=\"myModel\" [options]=\"myOptions\">\n * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>\n * </aup-autocomplete-input>\n */\n@Component({\n selector: 'aup-autocomplete-input',\n templateUrl: './autocomplete-input.component.html',\n styleUrls: ['./autocomplete-input.component.scss']\n})\nexport class AutocompleteInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {\n\n @Input() @TrackExternal()\n optionsModel: ListModel<T>;\n\n @Input() @StoreInListModel('optionsModel')\n options: T[];\n\n @Input()\n optionLabel: keyof T;\n\n @Input()\n allowNil: boolean;\n\n @ContentChild('nilOptionTemplate')\n nilOptionTemplateRef: TemplateRef<any>;\n\n private filterValue = new MutableValueModel<string>();\n readonly filteredOptions: ListModelChain<T>;\n\n @Input()\n optionLabelFormat: (option: T) => any = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n const lowerCaseFilterValue = chain(this.filterValue)\n .map(v => _.isString(v) ? v.toLowerCase() : '');\n\n this.filteredOptions = chain(this.optionsModel)\n .select(option => {\n return _.isEmpty(this.filterValue.value) || this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);\n }, { dependsOn: lowerCaseFilterValue });\n }\n\n ngOnInit() {\n }\n\n formatOption(option: T) {\n return this.optionLabelFormat(option);\n }\n\n updateFilter($event: string) {\n this.filterValue.value = $event;\n }\n\n onSelect($event: MatAutocompleteSelectedEvent) {\n this.valueModel.value = $event.option.value;\n }\n}\n"]}
|
package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-input.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-input.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell-portal-ref.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/cell-portal-ref.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAMtD,MAAM,CAAC,IAAM,2BAA2B,GAAG,MAAM,CAAC,wCAAwC,CAAC,CAAC;AAC5F,MAAM,CAAC,IAAM,oBAAoB,GAAG,MAAM,CAAC,iCAAiC,CAAC,CAAC;AAC9E,MAAM,CAAC,IAAM,kBAAkB,GAAG,MAAM,CAAC,+BAA+B,CAAC,CAAC;AAC1E,MAAM,CAAC,IAAM,yBAAyB,G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AG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,sDAAc,GAAd,UAAe,IAAqC,EAAE,WAA6B;QACjF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,WAAW;IACX,wDAAgB,GAAhB,UAAiB,IAAqC,EAAE,eAA0B;QAChF,cAAc;IAChB,CAAC;IAED,WAAW;IACX,iDAAS,GAAT,UAAU,IAAqC;QAC7C,IAAI,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAClE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAChC,CAAC;IAEO,oDAAY,GAApB,UAAqB,IAAkB;QACrC,OAAO,IAAI,cAAc,CAAM,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,aAAa,wBAAO,CAAC,IAAI,CAAC,KAAE,SAAS,EAAE,IAAI,CAAC,GAAG,IAAG,CAAC;IAC3G,CAAC;IACH,oCAAC;AAAD,CAAC,AArCD,CAAwD,qBAAqB,GAqC5E","sourcesContent":["import { ComponentType } from '@angular/cdk/overlay';\nimport { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';\nimport { TemplateRef, ViewContainerRef } from '@angular/core';\nimport { Trace } from '@coolon/pectin';\nimport { assert } from '@coolon/typescript-utilities';\nimport { ColumnModel, RowData } from './column-model';\nimport { EditSession } from './edit-session';\nimport { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';\nimport { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';\n\nexport const HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');\nexport const CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');\nexport const CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');\nexport const PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');\nexport const PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');\n\n\nexport abstract class CellPortalRef<Row, Host, Portal> {\n constructor() {\n }\n\n abstract initialiseHost(host: Host, columnModel: ColumnModel<Row>)\n\n abstract onPortalAttached(host: Host, portalComponent: Portal);\n}\n\nexport class CellHeaderPortalRef<Row, C> extends CellPortalRef<Row, TableHeaderCellRendererComponent, C> {\n constructor(readonly componentType: ComponentType<C>, readonly initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void) {\n super();\n }\n\n initialiseHost(host: TableHeaderCellRendererComponent, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n host[HEADER_CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableHeaderCellRendererComponent, portalComponent: C) {\n this.initialiseHeader(portalComponent, host.column);\n }\n\n}\n\nexport abstract class CellRendererPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellRendererComponent<Row>, Portal> {\n abstract pushState(host: TableCellRendererComponent<Row>): void;\n}\n\nexport class ComponentCellRendererPortalRef<Row, Portal> extends CellRendererPortalRef<Row, Portal> {\n\n\n constructor(readonly componentType: ComponentType<Portal>, readonly updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void) {\n super();\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n host[CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: Portal) {\n host[PORTAL_RENDERER_COMPONENT] = portalComponent;\n this.updateComponent(portalComponent, host.getRowData(), true);\n }\n\n // @Trace()\n pushState(host: TableCellRendererComponent<Row>): void {\n if (host[PORTAL_RENDERER_COMPONENT]) {\n this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData(), false);\n }\n }\n\n}\n\nexport class CellEditorPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellRendererComponent<Row>, Portal> {\n\n constructor(readonly componentType: ComponentType<Portal>, readonly initialiseEditorSession: (component: Portal, editSession: EditSession<Row>) => void) {\n super();\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n host[CELL_EDITOR_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: Portal) {\n host[PORTAL_EDITOR_COMPONENT] = portalComponent;\n this.initialiseEditorSession(portalComponent, host.editSession);\n }\n\n}\n\nexport class TemplateCellRendererPortalRef<Row> extends CellRendererPortalRef<Row, undefined> {\n\n private templateRef: TemplateRef<any>;\n private viewContainer: ViewContainerRef;\n private fillCell: boolean;\n private padChild: boolean;\n\n constructor() {\n super();\n }\n\n public registerPortal(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean) {\n this.templateRef = templateRef;\n this.viewContainer = viewContainer;\n this.fillCell = fillCell;\n this.padChild = padChild;\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: undefined) {\n // don't care\n }\n\n // @Trace()\n pushState(host: TableCellRendererComponent<Row>): void {\n host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());\n host.fillCell = this.fillCell;\n host.padChild = this.padChild;\n }\n\n private createPortal(data: RowData<Row>) {\n return new TemplatePortal<any>(this.templateRef, this.viewContainer, { ...(data), $implicit: data.row });\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=mutable-cell-renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutable-cell-renderer.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/mutable-cell-renderer.ts"],"names":[],"mappings":"","sourcesContent":["import { CellRenderer } from './cell-renderer';\nimport { Disposable } from '@coolon/pectin';\n\nexport interface MutableCellRenderer<T> extends CellRenderer<T> {\n value: T;\n\n onValueEdited(callback: (is: T, was: T) => void): Disposable;\n}\n"]}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
|
3
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
-
import { Dsl } from '@coolon/pectin';
|
|
5
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
6
|
-
var MenuItemData = /** @class */ (function () {
|
|
7
|
-
function MenuItemData(factory, face) {
|
|
8
|
-
this.factory = factory;
|
|
9
|
-
this.face = face;
|
|
10
|
-
}
|
|
11
|
-
return MenuItemData;
|
|
12
|
-
}());
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
var TableRowMenuComponent = /** @class */ (function (_super) {
|
|
17
|
-
__extends(TableRowMenuComponent, _super);
|
|
18
|
-
function TableRowMenuComponent() {
|
|
19
|
-
var _this = _super.call(this) || this;
|
|
20
|
-
_this.actions = [];
|
|
21
|
-
_this.moreActions = [];
|
|
22
|
-
return _this;
|
|
23
|
-
}
|
|
24
|
-
TableRowMenuComponent.prototype.registerAction = function (commandFactory, properties) {
|
|
25
|
-
this.actions.push(new MenuItemData(commandFactory, properties));
|
|
26
|
-
};
|
|
27
|
-
TableRowMenuComponent.prototype.registerMoreAction = function (commandFactory, properties) {
|
|
28
|
-
this.moreActions.push(new MenuItemData(commandFactory, properties));
|
|
29
|
-
};
|
|
30
|
-
TableRowMenuComponent.prototype.ngOnInit = function () {
|
|
31
|
-
};
|
|
32
|
-
TableRowMenuComponent.prototype.createMoreMenuCommand = function (item, value) {
|
|
33
|
-
var _this = this;
|
|
34
|
-
var when = Dsl.disposeWith(this).when;
|
|
35
|
-
var command = item.factory.create(value);
|
|
36
|
-
when(command.busy).becomesFalsey(function () {
|
|
37
|
-
_this.closeMoreMenu();
|
|
38
|
-
});
|
|
39
|
-
return command;
|
|
40
|
-
};
|
|
41
|
-
TableRowMenuComponent.prototype.closeMoreMenu = function () {
|
|
42
|
-
this.menu.closeMenu();
|
|
43
|
-
};
|
|
44
|
-
__decorate([
|
|
45
|
-
Input(),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], TableRowMenuComponent.prototype, "value", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
ViewChild(MatMenuTrigger),
|
|
50
|
-
__metadata("design:type", MatMenuTrigger)
|
|
51
|
-
], TableRowMenuComponent.prototype, "menu", void 0);
|
|
52
|
-
TableRowMenuComponent = __decorate([
|
|
53
|
-
Component({
|
|
54
|
-
selector: 'aup-table-row-menu',
|
|
55
|
-
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 ",
|
|
56
|
-
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
57
|
-
}),
|
|
58
|
-
__metadata("design:paramtypes", [])
|
|
59
|
-
], TableRowMenuComponent);
|
|
60
|
-
return TableRowMenuComponent;
|
|
61
|
-
}(DisposableComponent));
|
|
62
|
-
export { TableRowMenuComponent };
|
|
63
|
-
//# sourceMappingURL=table-row-menu.component.js.map
|