@coolon/angular-ui-powerups 2.0.0-alpha.35 → 2.0.0-alpha.36
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 +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +774 -286
- 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 +45 -42
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +43 -40
- 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/commands/command/command.component.js +48 -0
- package/esm2015/lib/components/commands/command/command.component.js.map +1 -0
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.js +12 -18
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-face.js +39 -5
- package/esm2015/lib/components/commands/command-face.js.map +1 -1
- package/esm2015/lib/components/commands/flex.component.js +30 -0
- package/esm2015/lib/components/commands/flex.component.js.map +1 -0
- package/esm2015/lib/components/commands/flex.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js +47 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +55 -0
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +39 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group.js +112 -0
- package/esm2015/lib/components/commands/group/command-group.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/more-menu.component.js +55 -0
- package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu.component.js +65 -0
- package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/registration.js +58 -0
- package/esm2015/lib/components/commands/group/registration.js.map +1 -0
- package/esm2015/lib/components/commands/group/registration.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +55 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/group/view-data.js +104 -0
- package/esm2015/lib/components/commands/group/view-data.js.map +1 -0
- package/esm2015/lib/components/commands/group/view-data.metadata.json +1 -0
- package/esm2015/lib/components/commands/separator.component.js +35 -0
- package/esm2015/lib/components/commands/separator.component.js.map +1 -0
- package/esm2015/lib/components/commands/separator.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/components.module.js +25 -29
- 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/index.js +13 -7
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +4 -2
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +12 -21
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/track-by.js +5 -0
- package/esm2015/lib/components/track-by.js.map +1 -0
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +43 -40
- 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/commands/command/command.component.js +51 -0
- package/esm5/lib/components/commands/command/command.component.js.map +1 -0
- package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.js +12 -18
- package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -1
- package/esm5/lib/components/commands/command-face.js +43 -5
- package/esm5/lib/components/commands/command-face.js.map +1 -1
- package/esm5/lib/components/commands/flex.component.js +33 -0
- package/esm5/lib/components/commands/flex.component.js.map +1 -0
- package/esm5/lib/components/commands/flex.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group/command-group.component.js +51 -0
- package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +59 -0
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +42 -0
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group.js +134 -0
- package/esm5/lib/components/commands/group/command-group.js.map +1 -0
- package/esm5/lib/components/commands/group/more-menu.component.js +58 -0
- package/esm5/lib/components/commands/group/more-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/popup-menu.component.js +68 -0
- package/esm5/lib/components/commands/group/popup-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/registration.js +80 -0
- package/esm5/lib/components/commands/group/registration.js.map +1 -0
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +58 -0
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/commands/group/view-data.js +131 -0
- package/esm5/lib/components/commands/group/view-data.js.map +1 -0
- package/esm5/lib/components/commands/separator.component.js +37 -0
- package/esm5/lib/components/commands/separator.component.js.map +1 -0
- package/esm5/lib/components/commands/separator.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/components.module.js +25 -29
- 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/index.js +13 -7
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +4 -2
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +5 -8
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm5/lib/components/track-by.js +5 -0
- package/esm5/lib/components/track-by.js.map +1 -0
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +627 -255
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +713 -229
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command/command.component.d.ts +18 -0
- package/lib/components/commands/command-face/command-face.component.d.ts +3 -5
- package/lib/components/commands/command-face.d.ts +17 -2
- package/lib/components/commands/flex.component.d.ts +11 -0
- package/lib/components/commands/group/command-group/command-group.component.d.ts +11 -0
- package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +21 -0
- package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +13 -0
- package/lib/components/commands/group/command-group.d.ts +44 -0
- package/lib/components/commands/group/more-menu.component.d.ts +14 -0
- package/lib/components/commands/group/popup-menu.component.d.ts +17 -0
- package/lib/components/commands/group/registration.d.ts +32 -0
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +13 -0
- package/lib/components/commands/group/view-data.d.ts +40 -0
- package/lib/components/commands/separator.component.d.ts +12 -0
- package/lib/components/index.d.ts +13 -7
- package/lib/components/table/table-model.d.ts +1 -1
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +2 -1
- package/lib/components/track-by.d.ts +3 -0
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/components/commands/command-bar.component.js +0 -51
- package/esm2015/lib/components/commands/command-bar.component.js.map +0 -1
- package/esm2015/lib/components/commands/command-bar.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-container.js +0 -20
- package/esm2015/lib/components/commands/command-container.js.map +0 -1
- package/esm2015/lib/components/commands/command-container.metadata.json +0 -1
- package/esm2015/lib/components/commands/command.component.js +0 -38
- package/esm2015/lib/components/commands/command.component.js.map +0 -1
- package/esm2015/lib/components/commands/command.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -57
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +0 -40
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +0 -49
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -62
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/command-bar.component.js +0 -31
- package/esm5/lib/components/commands/command-bar.component.js.map +0 -1
- package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-container.js +0 -30
- package/esm5/lib/components/commands/command-container.js.map +0 -1
- package/esm5/lib/components/commands/command.component.js +0 -41
- package/esm5/lib/components/commands/command.component.js.map +0 -1
- package/esm5/lib/components/commands/command.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -64
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js +0 -35
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +0 -45
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -66
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/lib/components/commands/command-bar.component.d.ts +0 -10
- package/lib/components/commands/command-container.d.ts +0 -15
- package/lib/components/commands/command.component.d.ts +0 -15
- package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +0 -18
- package/lib/components/commands/popup-menu/more-menu.component.d.ts +0 -9
- package/lib/components/commands/popup-menu/popup-menu.component.d.ts +0 -14
- package/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.d.ts +0 -21
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('lodash'), require('typescript-string-enums'), require('@coolon/typescript-utilities'), require('immer'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('resize-observer-polyfill'), require('@angular/material/list'), require('@angular/material/progress-spinner'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('rxjs')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/icon', '@angular/material/menu', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', '@typescript-plus/fast-memoize-decorator/dist/src', 'lodash', 'typescript-string-enums', '@coolon/typescript-utilities', 'immer', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', 'resize-observer-polyfill', '@angular/material/list', '@angular/material/progress-spinner', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'rxjs'], factory) :
|
|
4
|
-
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.icon, global.ng.material.menu, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.src, global.___default, global.typescriptStringEnums, global.typescriptUtilities, global.produce, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ResizeObserver, global.ng.material.list, global.ng.material.progressSpinner, global.fastMemoizeDecorator, null, global.ng.animations, global.rxjs));
|
|
5
|
-
}(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, icon, menu, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, src, ___default, typescriptStringEnums, typescriptUtilities, produce, flexLayout, dialog, router, overlay, ResizeObserver, list, progressSpinner, fastMemoizeDecorator, reflectMetadata, animations$1, rxjs) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('lodash'), require('typescript-string-enums'), require('@coolon/typescript-utilities'), require('immer'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('resize-observer-polyfill'), require('@angular/material/list'), require('@angular/material/progress-spinner'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', '@typescript-plus/fast-memoize-decorator/dist/src', 'lodash', 'typescript-string-enums', '@coolon/typescript-utilities', 'immer', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', 'resize-observer-polyfill', '@angular/material/list', '@angular/material/progress-spinner', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'rxjs'], factory) :
|
|
4
|
+
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.divider, global.ng.material.icon, global.ng.material.menu, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.src, global.___default, global.typescriptStringEnums, global.typescriptUtilities, global.produce, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ResizeObserver, global.ng.material.list, global.ng.material.progressSpinner, global.fastMemoizeDecorator, null, global.ng.animations, global.rxjs));
|
|
5
|
+
}(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, src, ___default, typescriptStringEnums, typescriptUtilities, produce, flexLayout, dialog, router, overlay, ResizeObserver, list, progressSpinner, fastMemoizeDecorator, reflectMetadata, animations$1, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var ___default__default = 'default' in ___default ? ___default['default'] : ___default;
|
|
8
8
|
produce = produce && Object.prototype.hasOwnProperty.call(produce, 'default') ? produce['default'] : produce;
|
|
@@ -586,12 +586,42 @@
|
|
|
586
586
|
}(DisposableComponent));
|
|
587
587
|
|
|
588
588
|
|
|
589
|
+
(function (TrackBy) {
|
|
590
|
+
TrackBy.byIndex = function (data, index) { return index; };
|
|
591
|
+
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
592
|
+
|
|
593
|
+
|
|
589
594
|
(function (CommandFace) {
|
|
590
595
|
var Position;
|
|
591
596
|
(function (Position) {
|
|
592
597
|
Position["START"] = "start";
|
|
593
598
|
Position["END"] = "end";
|
|
594
599
|
})(Position = CommandFace.Position || (CommandFace.Position = {}));
|
|
600
|
+
CommandFace.Style = typescriptStringEnums.Enum({
|
|
601
|
+
FLAT: 'flat',
|
|
602
|
+
STROKED: 'stroked',
|
|
603
|
+
RAISED: 'raised'
|
|
604
|
+
});
|
|
605
|
+
function getColorOf(face) {
|
|
606
|
+
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
|
|
607
|
+
}
|
|
608
|
+
CommandFace.getColorOf = getColorOf;
|
|
609
|
+
function getStyleOf(face) {
|
|
610
|
+
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
|
|
611
|
+
}
|
|
612
|
+
CommandFace.getStyleOf = getStyleOf;
|
|
613
|
+
function getIconOf(face) {
|
|
614
|
+
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
|
|
615
|
+
}
|
|
616
|
+
CommandFace.getIconOf = getIconOf;
|
|
617
|
+
function getTooltipOf(face) {
|
|
618
|
+
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
|
|
619
|
+
}
|
|
620
|
+
CommandFace.getTooltipOf = getTooltipOf;
|
|
621
|
+
function getTextOf(face) {
|
|
622
|
+
return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
|
|
623
|
+
}
|
|
624
|
+
CommandFace.getTextOf = getTextOf;
|
|
595
625
|
var Adapter = /** @class */ (function () {
|
|
596
626
|
function Adapter(face) {
|
|
597
627
|
this.face = face;
|
|
@@ -605,7 +635,7 @@
|
|
|
605
635
|
});
|
|
606
636
|
Object.defineProperty(Adapter.prototype, "icon", {
|
|
607
637
|
get: function () {
|
|
608
|
-
return
|
|
638
|
+
return CommandFace.getIconOf(this.face);
|
|
609
639
|
},
|
|
610
640
|
enumerable: true,
|
|
611
641
|
configurable: true
|
|
@@ -638,9 +668,16 @@
|
|
|
638
668
|
enumerable: true,
|
|
639
669
|
configurable: true
|
|
640
670
|
});
|
|
641
|
-
Object.defineProperty(Adapter.prototype, "
|
|
671
|
+
Object.defineProperty(Adapter.prototype, "color", {
|
|
672
|
+
get: function () {
|
|
673
|
+
return CommandFace.getColorOf(this.face);
|
|
674
|
+
},
|
|
675
|
+
enumerable: true,
|
|
676
|
+
configurable: true
|
|
677
|
+
});
|
|
678
|
+
Object.defineProperty(Adapter.prototype, "style", {
|
|
642
679
|
get: function () {
|
|
643
|
-
return
|
|
680
|
+
return CommandFace.getStyleOf(this.face);
|
|
644
681
|
},
|
|
645
682
|
enumerable: true,
|
|
646
683
|
configurable: true
|
|
@@ -677,66 +714,479 @@
|
|
|
677
714
|
], Adapter.prototype, "iconPositionEnd", null);
|
|
678
715
|
__decorate([
|
|
679
716
|
src.Memoize(),
|
|
680
|
-
__metadata("design:type",
|
|
717
|
+
__metadata("design:type", String),
|
|
718
|
+
__metadata("design:paramtypes", [])
|
|
719
|
+
], Adapter.prototype, "color", null);
|
|
720
|
+
__decorate([
|
|
721
|
+
src.Memoize(),
|
|
722
|
+
__metadata("design:type", String),
|
|
681
723
|
__metadata("design:paramtypes", [])
|
|
682
|
-
], Adapter.prototype, "
|
|
724
|
+
], Adapter.prototype, "style", null);
|
|
683
725
|
return Adapter;
|
|
684
726
|
}());
|
|
685
727
|
CommandFace.Adapter = Adapter;
|
|
686
728
|
})(exports.CommandFace || (exports.CommandFace = {}));
|
|
687
729
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
730
|
+
exports.ViewData = /** @class */ (function () {
|
|
731
|
+
function ViewData() {
|
|
732
|
+
}
|
|
733
|
+
return ViewData;
|
|
734
|
+
}());
|
|
735
|
+
(function (ViewData) {
|
|
736
|
+
var FaceData = /** @class */ (function (_super) {
|
|
737
|
+
__extends(FaceData, _super);
|
|
738
|
+
function FaceData(face) {
|
|
739
|
+
var _this = _super.call(this) || this;
|
|
740
|
+
_this.faceAdapter = new exports.CommandFace.Adapter(face);
|
|
741
|
+
return _this;
|
|
742
|
+
}
|
|
743
|
+
return FaceData;
|
|
744
|
+
}(ViewData));
|
|
745
|
+
ViewData.FaceData = FaceData;
|
|
746
|
+
var GroupData = /** @class */ (function (_super) {
|
|
747
|
+
__extends(GroupData, _super);
|
|
748
|
+
function GroupData(face, xPosition, yPosition, children) {
|
|
749
|
+
var _this = _super.call(this, face) || this;
|
|
750
|
+
_this.xPosition = xPosition;
|
|
751
|
+
_this.yPosition = yPosition;
|
|
752
|
+
_this.children = children;
|
|
753
|
+
return _this;
|
|
754
|
+
}
|
|
755
|
+
Object.defineProperty(GroupData.prototype, "hasMixedIcons", {
|
|
756
|
+
get: function () {
|
|
757
|
+
var hasFaces = this.children.filter(function (c) { return ViewData.hasFace(c); });
|
|
758
|
+
var iconCount = hasFaces.filter(function (c) { return !!c.faceAdapter.icon; }).length;
|
|
759
|
+
return iconCount > 0 && hasFaces.length !== iconCount;
|
|
760
|
+
},
|
|
761
|
+
enumerable: true,
|
|
762
|
+
configurable: true
|
|
763
|
+
});
|
|
764
|
+
__decorate([
|
|
765
|
+
src.Memoize(),
|
|
766
|
+
__metadata("design:type", Boolean),
|
|
767
|
+
__metadata("design:paramtypes", [])
|
|
768
|
+
], GroupData.prototype, "hasMixedIcons", null);
|
|
769
|
+
return GroupData;
|
|
770
|
+
}(FaceData));
|
|
771
|
+
ViewData.GroupData = GroupData;
|
|
772
|
+
var CommandData = /** @class */ (function (_super) {
|
|
773
|
+
__extends(CommandData, _super);
|
|
774
|
+
function CommandData(face, command) {
|
|
775
|
+
var _this = _super.call(this, face) || this;
|
|
776
|
+
_this.command = command;
|
|
777
|
+
return _this;
|
|
778
|
+
}
|
|
779
|
+
return CommandData;
|
|
780
|
+
}(FaceData));
|
|
781
|
+
ViewData.CommandData = CommandData;
|
|
782
|
+
var SeparatorData = /** @class */ (function (_super) {
|
|
783
|
+
__extends(SeparatorData, _super);
|
|
784
|
+
function SeparatorData() {
|
|
785
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
786
|
+
}
|
|
787
|
+
return SeparatorData;
|
|
788
|
+
}(ViewData));
|
|
789
|
+
ViewData.SeparatorData = SeparatorData;
|
|
790
|
+
var FlexData = /** @class */ (function (_super) {
|
|
791
|
+
__extends(FlexData, _super);
|
|
792
|
+
function FlexData() {
|
|
793
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
794
|
+
}
|
|
795
|
+
return FlexData;
|
|
796
|
+
}(ViewData));
|
|
797
|
+
ViewData.FlexData = FlexData;
|
|
798
|
+
function as(type, viewData) {
|
|
799
|
+
return viewData instanceof type ? viewData : pectin.lang.illegalState("expected instance of " + type.name + ", got " + viewData.constructor.name);
|
|
800
|
+
}
|
|
801
|
+
ViewData.as = as;
|
|
802
|
+
function getCommand(data) {
|
|
803
|
+
return as(CommandData, data).command;
|
|
804
|
+
}
|
|
805
|
+
ViewData.getCommand = getCommand;
|
|
806
|
+
function getTooltip(data) {
|
|
807
|
+
return as(FaceData, data).faceAdapter.tooltip;
|
|
808
|
+
}
|
|
809
|
+
ViewData.getTooltip = getTooltip;
|
|
810
|
+
function getStyle(data) {
|
|
811
|
+
return as(FaceData, data).faceAdapter.style;
|
|
812
|
+
}
|
|
813
|
+
ViewData.getStyle = getStyle;
|
|
814
|
+
function getColor(data) {
|
|
815
|
+
return as(FaceData, data).faceAdapter.color;
|
|
816
|
+
}
|
|
817
|
+
ViewData.getColor = getColor;
|
|
818
|
+
function hasText(data) {
|
|
819
|
+
return !!as(FaceData, data).faceAdapter.text;
|
|
820
|
+
}
|
|
821
|
+
ViewData.hasText = hasText;
|
|
822
|
+
function getFace(data) {
|
|
823
|
+
return as(FaceData, data).faceAdapter.face;
|
|
824
|
+
}
|
|
825
|
+
ViewData.getFace = getFace;
|
|
826
|
+
function asGroup(viewData) {
|
|
827
|
+
return as(GroupData, viewData);
|
|
828
|
+
}
|
|
829
|
+
ViewData.asGroup = asGroup;
|
|
830
|
+
function hasMixedIcons(data) {
|
|
831
|
+
return as(GroupData, data).hasMixedIcons;
|
|
832
|
+
}
|
|
833
|
+
ViewData.hasMixedIcons = hasMixedIcons;
|
|
834
|
+
function isGroup(data) {
|
|
835
|
+
return data instanceof GroupData;
|
|
836
|
+
}
|
|
837
|
+
ViewData.isGroup = isGroup;
|
|
838
|
+
function hasFace(data) {
|
|
839
|
+
return data instanceof FaceData;
|
|
840
|
+
}
|
|
841
|
+
ViewData.hasFace = hasFace;
|
|
842
|
+
function isCommand(data) {
|
|
843
|
+
return data instanceof CommandData;
|
|
844
|
+
}
|
|
845
|
+
ViewData.isCommand = isCommand;
|
|
846
|
+
function isSeparator(data) {
|
|
847
|
+
return data instanceof SeparatorData;
|
|
848
|
+
}
|
|
849
|
+
ViewData.isSeparator = isSeparator;
|
|
850
|
+
function isFlex(data) {
|
|
851
|
+
return data instanceof FlexData;
|
|
852
|
+
}
|
|
853
|
+
ViewData.isFlex = isFlex;
|
|
854
|
+
})(exports.ViewData || (exports.ViewData = {}));
|
|
855
|
+
|
|
856
|
+
var CommandGroupMenuRendererComponent = /** @class */ (function (_super) {
|
|
857
|
+
__extends(CommandGroupMenuRendererComponent, _super);
|
|
858
|
+
function CommandGroupMenuRendererComponent(parent) {
|
|
691
859
|
var _this = _super.call(this) || this;
|
|
692
|
-
_this.
|
|
860
|
+
_this.parent = parent;
|
|
861
|
+
_this.groupViewDataModel = new pectin.MutableValueModel();
|
|
862
|
+
_this.commandFired = new core.EventEmitter();
|
|
863
|
+
_this.ViewData = exports.ViewData;
|
|
864
|
+
_this.TrackBy = exports.TrackBy;
|
|
865
|
+
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
866
|
+
_this.children = chain(_this.groupViewDataModel).pluckList('children');
|
|
867
|
+
_this.hasMixedIcons = chain(_this.groupViewDataModel).pluck('hasMixedIcons');
|
|
693
868
|
return _this;
|
|
694
869
|
}
|
|
695
|
-
|
|
870
|
+
CommandGroupMenuRendererComponent.prototype.getCommand = function (data) {
|
|
871
|
+
var _this = this;
|
|
872
|
+
var command = exports.ViewData.getCommand(data);
|
|
873
|
+
var when = pectin.Dsl.disposeWith(this).when;
|
|
874
|
+
when(command.busy).becomesFalsey(function () { return _this.commandFired.emit(); });
|
|
875
|
+
return command;
|
|
876
|
+
};
|
|
877
|
+
CommandGroupMenuRendererComponent.ctorParameters = function () { return [
|
|
878
|
+
{ type: CommandGroupMenuRendererComponent, decorators: [{ type: core.Optional }, { type: core.SkipSelf }] }
|
|
879
|
+
]; };
|
|
880
|
+
__decorate([
|
|
881
|
+
core.ViewChild('menu', { static: true }),
|
|
882
|
+
__metadata("design:type", menu.MatMenu)
|
|
883
|
+
], CommandGroupMenuRendererComponent.prototype, "menuComponent", void 0);
|
|
884
|
+
__decorate([
|
|
885
|
+
core.Input(), pectin.StoreInValueModel('groupViewDataModel'),
|
|
886
|
+
__metadata("design:type", exports.ViewData.GroupData)
|
|
887
|
+
], CommandGroupMenuRendererComponent.prototype, "groupViewData", void 0);
|
|
888
|
+
__decorate([
|
|
889
|
+
core.Output(),
|
|
890
|
+
__metadata("design:type", Object)
|
|
891
|
+
], CommandGroupMenuRendererComponent.prototype, "commandFired", void 0);
|
|
892
|
+
__decorate([
|
|
893
|
+
core.ViewChildren(menu.MatMenuTrigger),
|
|
894
|
+
__metadata("design:type", core.QueryList)
|
|
895
|
+
], CommandGroupMenuRendererComponent.prototype, "triggers", void 0);
|
|
896
|
+
CommandGroupMenuRendererComponent = __decorate([
|
|
897
|
+
core.Component({
|
|
898
|
+
selector: 'aup-command-group-menu',
|
|
899
|
+
template: "<mat-menu #menu [xPosition]=\"groupViewData.xPosition\" [yPosition]=\"groupViewData.yPosition\">\n <ng-container *ngFor=\"let data of children.value; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"ViewData.isCommand(data)\"\n [pectinCommand]=\"getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n mat-menu-item>\n <aup-command-face [face]=\"ViewData.getFace(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"ViewData.isGroup(data)\">\n <button mat-menu-item\n #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [face]=\"ViewData.getFace(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-command-group-menu #innerPanel\n [groupViewData]=\"ViewData.asGroup(data)\"\n (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\"></mat-divider>\n\n </ng-container>\n</mat-menu>\n"
|
|
900
|
+
}),
|
|
901
|
+
__param(0, core.Optional()), __param(0, core.SkipSelf()),
|
|
902
|
+
__metadata("design:paramtypes", [CommandGroupMenuRendererComponent])
|
|
903
|
+
], CommandGroupMenuRendererComponent);
|
|
904
|
+
return CommandGroupMenuRendererComponent;
|
|
905
|
+
}(DisposableComponent));
|
|
906
|
+
|
|
907
|
+
var CommandGroupRendererComponent = /** @class */ (function (_super) {
|
|
908
|
+
__extends(CommandGroupRendererComponent, _super);
|
|
909
|
+
function CommandGroupRendererComponent() {
|
|
910
|
+
var _this = _super.call(this) || this;
|
|
911
|
+
_this.renderRootNode = true;
|
|
912
|
+
_this.ViewData = exports.ViewData;
|
|
913
|
+
_this.TrackBy = exports.TrackBy;
|
|
914
|
+
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
915
|
+
_this.childViewDataModels = chain(_this.groupViewDataModel).pluckList('children');
|
|
916
|
+
return _this;
|
|
917
|
+
}
|
|
918
|
+
__decorate([
|
|
919
|
+
core.Input(), pectin.TrackExternal(),
|
|
920
|
+
__metadata("design:type", pectin.ValueModel)
|
|
921
|
+
], CommandGroupRendererComponent.prototype, "groupViewDataModel", void 0);
|
|
922
|
+
__decorate([
|
|
923
|
+
core.Input(), pectin.StoreInValueModel('groupViewDataModel'),
|
|
924
|
+
__metadata("design:type", exports.ViewData.GroupData)
|
|
925
|
+
], CommandGroupRendererComponent.prototype, "groupViewData", void 0);
|
|
926
|
+
__decorate([
|
|
927
|
+
core.Input(),
|
|
928
|
+
core.HostBinding('class.render-root'),
|
|
929
|
+
__metadata("design:type", Object)
|
|
930
|
+
], CommandGroupRendererComponent.prototype, "renderRootNode", void 0);
|
|
931
|
+
CommandGroupRendererComponent = __decorate([
|
|
932
|
+
core.Component({
|
|
933
|
+
selector: 'aup-command-group-renderer',
|
|
934
|
+
template: "<ng-template #groupTemplate let-group>\n\n <ng-container *ngIf=\"ViewData.hasText(group)\" [ngSwitch]=\"ViewData.getStyle(group)\">\n <ng-container *ngSwitchCase=\"'stroked'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-stroked-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'raised'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-raised-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"!ViewData.hasText(group)\">\n <button #trigger=\"matMenuTrigger\"\n mat-icon-button\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n >\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #commandTemplate let-data>\n\n <ng-container *ngIf=\"ViewData.hasText(data)\" [ngSwitch]=\"ViewData.getStyle(data)\">\n <button *ngSwitchCase=\"'raised'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-raised-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"'stroked'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-stroked-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n <button *ngSwitchDefault\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n </ng-container>\n\n <button *ngIf=\"!ViewData.hasText(data)\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-icon-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n\n</ng-template>\n\n\n<ng-template *ngIf=\"renderRootNode\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: groupViewDataModel.value }\">\n</ng-template>\n\n<ng-container *ngIf=\"!renderRootNode\">\n <ng-container *ngFor=\"let data of this.childViewDataModels.value; trackBy: TrackBy.byIndex\">\n <ng-template *ngIf=\"ViewData.isGroup(data)\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n <ng-template *ngIf=\"ViewData.isCommand(data)\"\n [ngTemplateOutlet]=\"commandTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\" [vertical]=\"true\"></mat-divider>\n </ng-container>\n\n</ng-container>\n",
|
|
935
|
+
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}:host:not(.render-root) mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host:not(.render-root)>*+*{margin-left:8px}:host span.flex{flex:1}"]
|
|
936
|
+
}),
|
|
937
|
+
__metadata("design:paramtypes", [])
|
|
938
|
+
], CommandGroupRendererComponent);
|
|
939
|
+
return CommandGroupRendererComponent;
|
|
940
|
+
}(DisposableComponent));
|
|
941
|
+
|
|
942
|
+
exports.Registration = /** @class */ (function (_super) {
|
|
943
|
+
__extends(Registration, _super);
|
|
944
|
+
function Registration() {
|
|
945
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
946
|
+
}
|
|
947
|
+
return Registration;
|
|
948
|
+
}(pectin.GarbageCollector));
|
|
949
|
+
(function (Registration) {
|
|
950
|
+
var FaceRegistration = /** @class */ (function (_super) {
|
|
951
|
+
__extends(FaceRegistration, _super);
|
|
952
|
+
function FaceRegistration(faceModel) {
|
|
953
|
+
var _this = _super.call(this) || this;
|
|
954
|
+
_this.faceModel = faceModel;
|
|
955
|
+
return _this;
|
|
956
|
+
}
|
|
957
|
+
return FaceRegistration;
|
|
958
|
+
}(Registration));
|
|
959
|
+
Registration.FaceRegistration = FaceRegistration;
|
|
960
|
+
var CommandRegistration = /** @class */ (function (_super) {
|
|
961
|
+
__extends(CommandRegistration, _super);
|
|
962
|
+
function CommandRegistration(faceModel, command) {
|
|
963
|
+
var _this = _super.call(this, faceModel) || this;
|
|
964
|
+
_this.command = command;
|
|
965
|
+
return _this;
|
|
966
|
+
}
|
|
967
|
+
CommandRegistration.prototype.toTemplate = function () {
|
|
968
|
+
return new exports.ViewData.CommandData(this.faceModel.value, this.command);
|
|
969
|
+
};
|
|
970
|
+
return CommandRegistration;
|
|
971
|
+
}(FaceRegistration));
|
|
972
|
+
Registration.CommandRegistration = CommandRegistration;
|
|
973
|
+
var GroupRegistration = /** @class */ (function (_super) {
|
|
974
|
+
__extends(GroupRegistration, _super);
|
|
975
|
+
function GroupRegistration(faceModel, group) {
|
|
976
|
+
var _this = _super.call(this, faceModel) || this;
|
|
977
|
+
_this.group = group;
|
|
978
|
+
return _this;
|
|
979
|
+
}
|
|
980
|
+
GroupRegistration.prototype.toTemplate = function () {
|
|
981
|
+
return new exports.ViewData.GroupData(this.faceModel.value, this.group.xPosition, this.group.yPosition, this.group.registrations.value.map(function (r) { return r.toTemplate(); }));
|
|
982
|
+
};
|
|
983
|
+
return GroupRegistration;
|
|
984
|
+
}(FaceRegistration));
|
|
985
|
+
Registration.GroupRegistration = GroupRegistration;
|
|
986
|
+
var SeparatorRegistration = /** @class */ (function (_super) {
|
|
987
|
+
__extends(SeparatorRegistration, _super);
|
|
988
|
+
function SeparatorRegistration() {
|
|
989
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
990
|
+
_this.template = new exports.ViewData.SeparatorData();
|
|
991
|
+
return _this;
|
|
992
|
+
}
|
|
993
|
+
SeparatorRegistration.prototype.toTemplate = function () {
|
|
994
|
+
return this.template;
|
|
995
|
+
};
|
|
996
|
+
return SeparatorRegistration;
|
|
997
|
+
}(Registration));
|
|
998
|
+
Registration.SeparatorRegistration = SeparatorRegistration;
|
|
999
|
+
var FlexRegistration = /** @class */ (function (_super) {
|
|
1000
|
+
__extends(FlexRegistration, _super);
|
|
1001
|
+
function FlexRegistration() {
|
|
1002
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1003
|
+
_this.template = new exports.ViewData.FlexData();
|
|
1004
|
+
return _this;
|
|
1005
|
+
}
|
|
1006
|
+
FlexRegistration.prototype.toTemplate = function () {
|
|
1007
|
+
return this.template;
|
|
1008
|
+
};
|
|
1009
|
+
return FlexRegistration;
|
|
1010
|
+
}(Registration));
|
|
1011
|
+
Registration.FlexRegistration = FlexRegistration;
|
|
1012
|
+
function hasFace(entry) {
|
|
1013
|
+
return entry instanceof CommandRegistration || entry instanceof GroupRegistration;
|
|
1014
|
+
}
|
|
1015
|
+
Registration.hasFace = hasFace;
|
|
1016
|
+
})(exports.Registration || (exports.Registration = {}));
|
|
1017
|
+
|
|
1018
|
+
exports.ɵbo = /** @class */ (function (_super) {
|
|
1019
|
+
__extends(CommandGroup, _super);
|
|
1020
|
+
function CommandGroup(parent) {
|
|
1021
|
+
var _this = _super.call(this) || this;
|
|
1022
|
+
_this.parent = parent;
|
|
1023
|
+
_this._rootTemplate = new pectin.MutableValueModel();
|
|
1024
|
+
_this._registrations = new pectin.MutableListModel();
|
|
1025
|
+
_this._childFaceModels = new pectin.MutableListModel();
|
|
1026
|
+
_this._faceChangeCount = new pectin.MutableValueModel(0);
|
|
1027
|
+
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1028
|
+
var childFaces = chain(_this._childFaceModels)
|
|
1029
|
+
.map(function (m) { return m.value; }, { dependsOn: _this._faceChangeCount })
|
|
1030
|
+
.rejectNil();
|
|
1031
|
+
var iconCount = childFaces
|
|
1032
|
+
.select(function (face) { return !!exports.CommandFace.getIconOf(face); })
|
|
1033
|
+
.count();
|
|
1034
|
+
_this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(childFaces.length)).areTruthy();
|
|
1035
|
+
_this.childTemplates = chain(_this._rootTemplate).pluckList('children');
|
|
1036
|
+
_this.initialised = chain(_this._rootTemplate).isNotNil();
|
|
1037
|
+
return _this;
|
|
1038
|
+
}
|
|
1039
|
+
CommandGroup.prototype.initialise = function () {
|
|
1040
|
+
this.rebuildTemplates();
|
|
1041
|
+
};
|
|
1042
|
+
Object.defineProperty(CommandGroup.prototype, "rootTemplate", {
|
|
696
1043
|
get: function () {
|
|
697
|
-
return this.
|
|
1044
|
+
return this._rootTemplate.readonly;
|
|
698
1045
|
},
|
|
699
1046
|
enumerable: true,
|
|
700
1047
|
configurable: true
|
|
701
1048
|
});
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
1049
|
+
Object.defineProperty(CommandGroup.prototype, "registrations", {
|
|
1050
|
+
get: function () {
|
|
1051
|
+
return this._registrations.readonly;
|
|
1052
|
+
},
|
|
1053
|
+
enumerable: true,
|
|
1054
|
+
configurable: true
|
|
1055
|
+
});
|
|
1056
|
+
CommandGroup.prototype.notifyChanged = function () {
|
|
1057
|
+
if (this.parent) {
|
|
1058
|
+
this.parent.notifyChanged();
|
|
1059
|
+
}
|
|
1060
|
+
else {
|
|
1061
|
+
this.rebuildTemplates();
|
|
1062
|
+
}
|
|
707
1063
|
};
|
|
708
|
-
|
|
709
|
-
|
|
1064
|
+
CommandGroup.prototype.notifyChildFaceChanged = function (is, was) {
|
|
1065
|
+
this.notifyChanged();
|
|
710
1066
|
};
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
1067
|
+
CommandGroup.prototype.rebuildTemplates = function () {
|
|
1068
|
+
this._rootTemplate.value = new exports.ViewData.GroupData(this.faceModel.value, this.xPosition, this.yPosition, this.registrations.value.map(function (r) { return r.toTemplate(); }));
|
|
1069
|
+
};
|
|
1070
|
+
Object.defineProperty(CommandGroup.prototype, "depth", {
|
|
1071
|
+
get: function () {
|
|
1072
|
+
return this.isRoot() ? 0 : this.parent.depth + 1;
|
|
1073
|
+
},
|
|
1074
|
+
enumerable: true,
|
|
1075
|
+
configurable: true
|
|
1076
|
+
});
|
|
1077
|
+
CommandGroup.prototype.isRoot = function () {
|
|
1078
|
+
return false;
|
|
1079
|
+
};
|
|
1080
|
+
CommandGroup.prototype.registerCommand = function (command, faceModel) {
|
|
1081
|
+
return this.register(new exports.Registration.CommandRegistration(faceModel, command));
|
|
1082
|
+
};
|
|
1083
|
+
CommandGroup.prototype.registerGroup = function (group, faceModel) {
|
|
1084
|
+
return this.register(new exports.Registration.GroupRegistration(faceModel, group));
|
|
1085
|
+
};
|
|
1086
|
+
CommandGroup.prototype.registerFlex = function (component) {
|
|
1087
|
+
return this.register(new exports.Registration.FlexRegistration());
|
|
1088
|
+
};
|
|
1089
|
+
CommandGroup.prototype.registerSeparator = function (component) {
|
|
1090
|
+
return this.register(new exports.Registration.SeparatorRegistration());
|
|
724
1091
|
};
|
|
725
|
-
|
|
726
|
-
|
|
1092
|
+
CommandGroup.prototype.register = function (registration) {
|
|
1093
|
+
var _this = this;
|
|
1094
|
+
this._registrations.push(registration);
|
|
1095
|
+
if (registration instanceof exports.Registration.FaceRegistration) {
|
|
1096
|
+
this._childFaceModels.push(registration.faceModel);
|
|
1097
|
+
var when = pectin.Dsl.disposeWith(registration).when;
|
|
1098
|
+
when(registration.faceModel).changes(function (is, was) {
|
|
1099
|
+
_this.notifyChildFaceChanged(new exports.CommandFace.Adapter(is), new exports.CommandFace.Adapter(was));
|
|
1100
|
+
}, { asLongAs: this.initialised });
|
|
1101
|
+
registration.onDispose(function () { return _this._childFaceModels.remove(registration.faceModel); });
|
|
1102
|
+
}
|
|
1103
|
+
registration.onDispose(function () { return _this._registrations.remove(registration); });
|
|
1104
|
+
return registration;
|
|
727
1105
|
};
|
|
728
|
-
|
|
729
|
-
|
|
1106
|
+
return CommandGroup;
|
|
1107
|
+
}(pectin.GarbageCollector));
|
|
1108
|
+
(function (CommandGroup) {
|
|
1109
|
+
var Root = /** @class */ (function (_super) {
|
|
1110
|
+
__extends(Root, _super);
|
|
1111
|
+
function Root() {
|
|
1112
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1113
|
+
}
|
|
1114
|
+
Root.prototype.isRoot = function () {
|
|
1115
|
+
return true;
|
|
1116
|
+
};
|
|
1117
|
+
__decorate([
|
|
1118
|
+
pectin.TrackExternal(),
|
|
1119
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1120
|
+
], Root.prototype, "faceModel", void 0);
|
|
1121
|
+
__decorate([
|
|
1122
|
+
pectin.TrackExternal({ defaultValue: 'after' }),
|
|
1123
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1124
|
+
], Root.prototype, "xPositionModel", void 0);
|
|
1125
|
+
__decorate([
|
|
1126
|
+
pectin.StoreInValueModel('xPositionModel'),
|
|
1127
|
+
__metadata("design:type", String)
|
|
1128
|
+
], Root.prototype, "xPosition", void 0);
|
|
1129
|
+
__decorate([
|
|
1130
|
+
pectin.TrackExternal({ defaultValue: 'below' }),
|
|
1131
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1132
|
+
], Root.prototype, "yPositionModel", void 0);
|
|
1133
|
+
__decorate([
|
|
1134
|
+
pectin.StoreInValueModel('yPositionModel'),
|
|
1135
|
+
__metadata("design:type", String)
|
|
1136
|
+
], Root.prototype, "yPosition", void 0);
|
|
1137
|
+
return Root;
|
|
1138
|
+
}(CommandGroup));
|
|
1139
|
+
CommandGroup.Root = Root;
|
|
1140
|
+
function factory() {
|
|
1141
|
+
return new Root();
|
|
1142
|
+
}
|
|
1143
|
+
CommandGroup.factory = factory;
|
|
1144
|
+
})(exports.ɵbo || (exports.ɵbo = {}));
|
|
1145
|
+
|
|
1146
|
+
var CommandGroupComponent = /** @class */ (function (_super) {
|
|
1147
|
+
__extends(CommandGroupComponent, _super);
|
|
1148
|
+
function CommandGroupComponent(parent) {
|
|
1149
|
+
var _this = _super.call(this, parent) || this;
|
|
1150
|
+
_this.parent = parent;
|
|
1151
|
+
_this.xPosition = 'after';
|
|
1152
|
+
_this.yPosition = 'below';
|
|
1153
|
+
_this.parent.registerGroup(_this, _this.faceModel);
|
|
1154
|
+
return _this;
|
|
1155
|
+
}
|
|
1156
|
+
CommandGroupComponent_1 = CommandGroupComponent;
|
|
1157
|
+
var CommandGroupComponent_1;
|
|
1158
|
+
CommandGroupComponent.ctorParameters = function () { return [
|
|
1159
|
+
{ type: exports.ɵbo, decorators: [{ type: core.SkipSelf }] }
|
|
1160
|
+
]; };
|
|
1161
|
+
__decorate([
|
|
1162
|
+
core.Input(), pectin.TrackExternal(),
|
|
1163
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1164
|
+
], CommandGroupComponent.prototype, "faceModel", void 0);
|
|
1165
|
+
__decorate([
|
|
1166
|
+
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
1167
|
+
__metadata("design:type", Object)
|
|
1168
|
+
], CommandGroupComponent.prototype, "face", void 0);
|
|
1169
|
+
__decorate([
|
|
1170
|
+
core.Input(),
|
|
1171
|
+
__metadata("design:type", String)
|
|
1172
|
+
], CommandGroupComponent.prototype, "xPosition", void 0);
|
|
1173
|
+
__decorate([
|
|
1174
|
+
core.Input(),
|
|
1175
|
+
__metadata("design:type", String)
|
|
1176
|
+
], CommandGroupComponent.prototype, "yPosition", void 0);
|
|
1177
|
+
CommandGroupComponent = CommandGroupComponent_1 = __decorate([
|
|
730
1178
|
core.Component({
|
|
731
|
-
selector: 'aup-command-
|
|
732
|
-
template:
|
|
733
|
-
providers: [
|
|
734
|
-
|
|
1179
|
+
selector: 'aup-command-group',
|
|
1180
|
+
template: '',
|
|
1181
|
+
providers: [
|
|
1182
|
+
{ provide: exports.ɵbo, useExisting: CommandGroupComponent_1 }
|
|
1183
|
+
]
|
|
735
1184
|
}),
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
1185
|
+
__param(0, core.SkipSelf()),
|
|
1186
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1187
|
+
], CommandGroupComponent);
|
|
1188
|
+
return CommandGroupComponent;
|
|
1189
|
+
}(exports.ɵbo));
|
|
740
1190
|
|
|
741
1191
|
/**
|
|
742
1192
|
* Custom CSS:
|
|
@@ -750,9 +1200,8 @@
|
|
|
750
1200
|
*/
|
|
751
1201
|
var CommandFaceComponent = /** @class */ (function (_super) {
|
|
752
1202
|
__extends(CommandFaceComponent, _super);
|
|
753
|
-
function CommandFaceComponent(
|
|
1203
|
+
function CommandFaceComponent() {
|
|
754
1204
|
var _this = _super.call(this) || this;
|
|
755
|
-
_this.commandContainer = commandContainer;
|
|
756
1205
|
_this.faceModel = new pectin.MutableValueModel();
|
|
757
1206
|
_this.ignoreIcon = false;
|
|
758
1207
|
_this.ignoreText = false;
|
|
@@ -763,7 +1212,7 @@
|
|
|
763
1212
|
_this.iconModel = faceAdapter.pluck('icon');
|
|
764
1213
|
_this.textModel = faceAdapter.pluck('text');
|
|
765
1214
|
_this.positionModel = faceAdapter.pluck('iconPosition');
|
|
766
|
-
_this.
|
|
1215
|
+
_this.colorModel = faceAdapter.pluck('color');
|
|
767
1216
|
return _this;
|
|
768
1217
|
}
|
|
769
1218
|
Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
|
|
@@ -777,8 +1226,8 @@
|
|
|
777
1226
|
};
|
|
778
1227
|
Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
|
|
779
1228
|
get: function () {
|
|
780
|
-
var _a
|
|
781
|
-
return (
|
|
1229
|
+
var _a;
|
|
1230
|
+
return (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : exports.CommandFace.Position.START;
|
|
782
1231
|
},
|
|
783
1232
|
enumerable: true,
|
|
784
1233
|
configurable: true
|
|
@@ -811,16 +1260,13 @@
|
|
|
811
1260
|
enumerable: true,
|
|
812
1261
|
configurable: true
|
|
813
1262
|
});
|
|
814
|
-
Object.defineProperty(CommandFaceComponent.prototype, "
|
|
1263
|
+
Object.defineProperty(CommandFaceComponent.prototype, "color", {
|
|
815
1264
|
get: function () {
|
|
816
|
-
return this.
|
|
1265
|
+
return this.colorModel.value;
|
|
817
1266
|
},
|
|
818
1267
|
enumerable: true,
|
|
819
1268
|
configurable: true
|
|
820
1269
|
});
|
|
821
|
-
CommandFaceComponent.ctorParameters = function () { return [
|
|
822
|
-
{ type: CommandContainer, decorators: [{ type: core.Optional }] }
|
|
823
|
-
]; };
|
|
824
1270
|
__decorate([
|
|
825
1271
|
core.Input('face'), pectin.StoreInValueModel('faceModel'),
|
|
826
1272
|
__metadata("design:type", Object)
|
|
@@ -843,10 +1289,10 @@
|
|
|
843
1289
|
__metadata("design:paramtypes", [])
|
|
844
1290
|
], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
|
|
845
1291
|
__decorate([
|
|
846
|
-
core.HostBinding('
|
|
847
|
-
__metadata("design:type",
|
|
1292
|
+
core.HostBinding('attr.color'),
|
|
1293
|
+
__metadata("design:type", String),
|
|
848
1294
|
__metadata("design:paramtypes", [])
|
|
849
|
-
], CommandFaceComponent.prototype, "
|
|
1295
|
+
], CommandFaceComponent.prototype, "color", null);
|
|
850
1296
|
CommandFaceComponent = __decorate([
|
|
851
1297
|
core.Component({
|
|
852
1298
|
selector: 'aup-command-face',
|
|
@@ -854,8 +1300,7 @@
|
|
|
854
1300
|
encapsulation: core.ViewEncapsulation.None,
|
|
855
1301
|
styles: ["aup-command-face{--icon-gap:var(--aup-command-face-icon-gap);display:inline-flex;flex-direction:row;align-items:center}aup-command-face *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}"]
|
|
856
1302
|
}),
|
|
857
|
-
|
|
858
|
-
__metadata("design:paramtypes", [CommandContainer])
|
|
1303
|
+
__metadata("design:paramtypes", [])
|
|
859
1304
|
], CommandFaceComponent);
|
|
860
1305
|
return CommandFaceComponent;
|
|
861
1306
|
}(DisposableComponent));
|
|
@@ -865,31 +1310,41 @@
|
|
|
865
1310
|
*/
|
|
866
1311
|
var CommandComponent = /** @class */ (function (_super) {
|
|
867
1312
|
__extends(CommandComponent, _super);
|
|
868
|
-
function CommandComponent(
|
|
1313
|
+
function CommandComponent(parent) {
|
|
869
1314
|
var _this = _super.call(this) || this;
|
|
870
|
-
_this.
|
|
1315
|
+
_this.parent = parent;
|
|
1316
|
+
_this.CommandFace = exports.CommandFace;
|
|
1317
|
+
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1318
|
+
_this.buttonStyle = chain(_this.faceModel).map(function (f) { return exports.CommandFace.getStyleOf(f); });
|
|
1319
|
+
if (parent) {
|
|
1320
|
+
_this.registerDisposable(_this.parent.registerCommand(_this.command, _this.faceModel));
|
|
1321
|
+
}
|
|
871
1322
|
return _this;
|
|
872
1323
|
}
|
|
873
1324
|
CommandComponent.prototype.ngOnInit = function () {
|
|
874
|
-
this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
|
|
875
1325
|
};
|
|
876
1326
|
CommandComponent.ctorParameters = function () { return [
|
|
877
|
-
{ type:
|
|
1327
|
+
{ type: exports.ɵbo, decorators: [{ type: core.Optional }] }
|
|
878
1328
|
]; };
|
|
879
1329
|
__decorate([
|
|
880
1330
|
core.Input(), pectin.TrackExternal(),
|
|
881
1331
|
__metadata("design:type", pectin.Command)
|
|
882
1332
|
], CommandComponent.prototype, "command", void 0);
|
|
883
1333
|
__decorate([
|
|
884
|
-
core.Input(),
|
|
1334
|
+
core.Input(), pectin.TrackExternal(),
|
|
1335
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1336
|
+
], CommandComponent.prototype, "faceModel", void 0);
|
|
1337
|
+
__decorate([
|
|
1338
|
+
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
885
1339
|
__metadata("design:type", Object)
|
|
886
1340
|
], CommandComponent.prototype, "face", void 0);
|
|
887
1341
|
CommandComponent = __decorate([
|
|
888
1342
|
core.Component({
|
|
889
1343
|
selector: 'aup-command',
|
|
890
|
-
template: ""
|
|
1344
|
+
template: "<ng-container *ngIf=\"!parent\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <button *ngSwitchCase=\"CommandFace.Style.STROKED\" mat-stroked-button [pectinCommand]=\"command\" [color]=\"CommandFace.getColorOf(face)\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"CommandFace.Style.RAISED\" mat-raised-button [pectinCommand]=\"command\" [color]=\"CommandFace.getColorOf(face)\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <button *ngSwitchDefault mat-button [pectinCommand]=\"command\" [color]=\"CommandFace.getColorOf(face)\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n </ng-container>\n</ng-container>\n"
|
|
891
1345
|
}),
|
|
892
|
-
|
|
1346
|
+
__param(0, core.Optional()),
|
|
1347
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
893
1348
|
], CommandComponent);
|
|
894
1349
|
return CommandComponent;
|
|
895
1350
|
}(DisposableComponent));
|
|
@@ -897,188 +1352,224 @@
|
|
|
897
1352
|
/**
|
|
898
1353
|
*
|
|
899
1354
|
*/
|
|
900
|
-
var
|
|
901
|
-
__extends(
|
|
902
|
-
function
|
|
1355
|
+
var FlexComponent = /** @class */ (function (_super) {
|
|
1356
|
+
__extends(FlexComponent, _super);
|
|
1357
|
+
function FlexComponent(parent) {
|
|
903
1358
|
var _this = _super.call(this) || this;
|
|
904
|
-
_this.
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
var registrations = chain(_this.commandRegistrations);
|
|
909
|
-
var iconCount = registrations.select(function (r) { return !!r.faceAdapter.icon; }).count();
|
|
910
|
-
_this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(registrations.length)).areTruthy();
|
|
1359
|
+
_this.parent = parent;
|
|
1360
|
+
if (parent) {
|
|
1361
|
+
parent.registerFlex(_this);
|
|
1362
|
+
}
|
|
911
1363
|
return _this;
|
|
912
1364
|
}
|
|
913
|
-
|
|
914
|
-
};
|
|
915
|
-
PopupMenuRendererComponent.prototype.getPopupMenuCommandFor = function (item) {
|
|
916
|
-
var _this = this;
|
|
917
|
-
var when = pectin.Dsl.disposeWith(this).when;
|
|
918
|
-
when(item.command.busy).becomesFalsey(function () {
|
|
919
|
-
_this.commandExecuted.emit();
|
|
920
|
-
});
|
|
921
|
-
return item.command;
|
|
922
|
-
};
|
|
923
|
-
PopupMenuRendererComponent.prototype.getButtonColor = function (registration) {
|
|
924
|
-
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
1365
|
+
FlexComponent.prototype.ngOnInit = function () {
|
|
925
1366
|
};
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
__decorate([
|
|
931
|
-
core.Input(),
|
|
932
|
-
__metadata("design:type", String)
|
|
933
|
-
], PopupMenuRendererComponent.prototype, "xPosition", void 0);
|
|
934
|
-
__decorate([
|
|
935
|
-
core.Input(),
|
|
936
|
-
__metadata("design:type", String)
|
|
937
|
-
], PopupMenuRendererComponent.prototype, "yPosition", void 0);
|
|
938
|
-
__decorate([
|
|
939
|
-
core.Output(),
|
|
940
|
-
__metadata("design:type", Object)
|
|
941
|
-
], PopupMenuRendererComponent.prototype, "commandExecuted", void 0);
|
|
942
|
-
__decorate([
|
|
943
|
-
core.ViewChild(menu.MatMenu),
|
|
944
|
-
__metadata("design:type", menu.MatMenu)
|
|
945
|
-
], PopupMenuRendererComponent.prototype, "matMenu", void 0);
|
|
946
|
-
PopupMenuRendererComponent = __decorate([
|
|
1367
|
+
FlexComponent.ctorParameters = function () { return [
|
|
1368
|
+
{ type: exports.ɵbo }
|
|
1369
|
+
]; };
|
|
1370
|
+
FlexComponent = __decorate([
|
|
947
1371
|
core.Component({
|
|
948
|
-
selector: 'aup-
|
|
949
|
-
template: "
|
|
950
|
-
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
|
|
1372
|
+
selector: 'aup-flex',
|
|
1373
|
+
template: ""
|
|
951
1374
|
}),
|
|
952
|
-
__metadata("design:paramtypes", [])
|
|
953
|
-
],
|
|
954
|
-
return
|
|
1375
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1376
|
+
], FlexComponent);
|
|
1377
|
+
return FlexComponent;
|
|
955
1378
|
}(DisposableComponent));
|
|
956
1379
|
|
|
1380
|
+
var ɵ0 = exports.ɵbo.factory;
|
|
957
1381
|
/**
|
|
958
1382
|
*
|
|
959
1383
|
*/
|
|
960
|
-
var
|
|
961
|
-
__extends(
|
|
962
|
-
function
|
|
1384
|
+
var MoreMenuComponent = /** @class */ (function (_super) {
|
|
1385
|
+
__extends(MoreMenuComponent, _super);
|
|
1386
|
+
function MoreMenuComponent(group) {
|
|
963
1387
|
var _this = _super.call(this) || this;
|
|
964
|
-
_this.
|
|
965
|
-
_this.
|
|
966
|
-
_this.
|
|
1388
|
+
_this.group = group;
|
|
1389
|
+
_this.tooltipModel = new pectin.MutableValueModel();
|
|
1390
|
+
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1391
|
+
group.xPosition = 'before'; // this should be the default unless overridden by the user.
|
|
1392
|
+
group.faceModel = chain(_this.tooltipModel).map(function (tooltip) {
|
|
1393
|
+
return {
|
|
1394
|
+
icon: function () { return 'mat:more_vert'; },
|
|
1395
|
+
tooltip: function () {
|
|
1396
|
+
return tooltip;
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
}, { allowNil: true });
|
|
967
1400
|
return _this;
|
|
968
1401
|
}
|
|
969
|
-
|
|
970
|
-
this.cdr.detectChanges();
|
|
971
|
-
};
|
|
972
|
-
Object.defineProperty(AbstractPopupMenuComponent.prototype, "matMenuComponent", {
|
|
973
|
-
get: function () {
|
|
974
|
-
var _a;
|
|
975
|
-
return (_a = this.popupMenu) === null || _a === void 0 ? void 0 : _a.matMenu;
|
|
976
|
-
},
|
|
977
|
-
enumerable: true,
|
|
978
|
-
configurable: true
|
|
979
|
-
});
|
|
980
|
-
AbstractPopupMenuComponent.prototype.closeMenu = function () {
|
|
981
|
-
this.menuTrigger.closeMenu();
|
|
1402
|
+
MoreMenuComponent.prototype.ngOnInit = function () {
|
|
982
1403
|
};
|
|
983
|
-
|
|
984
|
-
|
|
1404
|
+
MoreMenuComponent.prototype.ngAfterContentInit = function () {
|
|
1405
|
+
this.group.initialise();
|
|
985
1406
|
};
|
|
986
|
-
|
|
987
|
-
{ type:
|
|
1407
|
+
MoreMenuComponent.ctorParameters = function () { return [
|
|
1408
|
+
{ type: exports.ɵbo }
|
|
988
1409
|
]; };
|
|
989
1410
|
__decorate([
|
|
990
|
-
core.Input(),
|
|
1411
|
+
core.Input(), pectin.StoreInValueModel('tooltipModel'),
|
|
991
1412
|
__metadata("design:type", String)
|
|
992
|
-
],
|
|
993
|
-
__decorate([
|
|
994
|
-
core.Input(),
|
|
995
|
-
__metadata("design:type", String)
|
|
996
|
-
], AbstractPopupMenuComponent.prototype, "yPosition", void 0);
|
|
997
|
-
__decorate([
|
|
998
|
-
core.ViewChild(PopupMenuRendererComponent),
|
|
999
|
-
__metadata("design:type", PopupMenuRendererComponent)
|
|
1000
|
-
], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
|
|
1413
|
+
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
1001
1414
|
__decorate([
|
|
1002
|
-
|
|
1003
|
-
__metadata("design:type",
|
|
1004
|
-
|
|
1005
|
-
|
|
1415
|
+
pectin.Trace(),
|
|
1416
|
+
__metadata("design:type", Function),
|
|
1417
|
+
__metadata("design:paramtypes", []),
|
|
1418
|
+
__metadata("design:returntype", void 0)
|
|
1419
|
+
], MoreMenuComponent.prototype, "ngAfterContentInit", null);
|
|
1420
|
+
MoreMenuComponent = __decorate([
|
|
1006
1421
|
core.Component({
|
|
1007
|
-
selector: 'aup-
|
|
1008
|
-
template: ''
|
|
1422
|
+
selector: 'aup-more-menu',
|
|
1423
|
+
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1424
|
+
providers: [{ provide: exports.ɵbo, useFactory: ɵ0 }]
|
|
1009
1425
|
}),
|
|
1010
|
-
__metadata("design:paramtypes", [
|
|
1011
|
-
],
|
|
1012
|
-
return
|
|
1013
|
-
}(
|
|
1426
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1427
|
+
], MoreMenuComponent);
|
|
1428
|
+
return MoreMenuComponent;
|
|
1429
|
+
}(DisposableComponent));
|
|
1014
1430
|
|
|
1431
|
+
var ɵ0$1 = exports.ɵbo.factory;
|
|
1015
1432
|
/**
|
|
1016
1433
|
*
|
|
1017
1434
|
*/
|
|
1018
1435
|
var PopupMenuComponent = /** @class */ (function (_super) {
|
|
1019
1436
|
__extends(PopupMenuComponent, _super);
|
|
1020
|
-
function PopupMenuComponent(
|
|
1021
|
-
var _this = _super.call(this
|
|
1022
|
-
_this.
|
|
1437
|
+
function PopupMenuComponent(group) {
|
|
1438
|
+
var _this = _super.call(this) || this;
|
|
1439
|
+
_this.group = group;
|
|
1023
1440
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1024
|
-
|
|
1025
|
-
_this.faceTooltipModel = faceAdapterModel.pluck('tooltip');
|
|
1441
|
+
group.faceModel = _this.faceModel;
|
|
1026
1442
|
return _this;
|
|
1027
1443
|
}
|
|
1028
|
-
PopupMenuComponent_1 = PopupMenuComponent;
|
|
1029
|
-
PopupMenuComponent.prototype.getTooltip = function () {
|
|
1030
|
-
return this.faceTooltipModel.value;
|
|
1031
|
-
};
|
|
1032
1444
|
PopupMenuComponent.prototype.ngOnInit = function () {
|
|
1033
1445
|
};
|
|
1034
|
-
|
|
1446
|
+
PopupMenuComponent.prototype.ngAfterContentInit = function () {
|
|
1447
|
+
this.group.initialise();
|
|
1448
|
+
};
|
|
1449
|
+
PopupMenuComponent.prototype.ngAfterViewInit = function () {
|
|
1450
|
+
};
|
|
1035
1451
|
PopupMenuComponent.ctorParameters = function () { return [
|
|
1036
|
-
{ type:
|
|
1452
|
+
{ type: exports.ɵbo }
|
|
1037
1453
|
]; };
|
|
1454
|
+
__decorate([
|
|
1455
|
+
core.Input(), pectin.TrackExternal(),
|
|
1456
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1457
|
+
], PopupMenuComponent.prototype, "faceModel", void 0);
|
|
1038
1458
|
__decorate([
|
|
1039
1459
|
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
1040
1460
|
__metadata("design:type", Object)
|
|
1041
1461
|
], PopupMenuComponent.prototype, "face", void 0);
|
|
1042
|
-
|
|
1462
|
+
__decorate([
|
|
1463
|
+
pectin.Trace(),
|
|
1464
|
+
__metadata("design:type", Function),
|
|
1465
|
+
__metadata("design:paramtypes", []),
|
|
1466
|
+
__metadata("design:returntype", void 0)
|
|
1467
|
+
], PopupMenuComponent.prototype, "ngOnInit", null);
|
|
1468
|
+
__decorate([
|
|
1469
|
+
pectin.Trace(),
|
|
1470
|
+
__metadata("design:type", Function),
|
|
1471
|
+
__metadata("design:paramtypes", []),
|
|
1472
|
+
__metadata("design:returntype", void 0)
|
|
1473
|
+
], PopupMenuComponent.prototype, "ngAfterContentInit", null);
|
|
1474
|
+
__decorate([
|
|
1475
|
+
pectin.Trace(),
|
|
1476
|
+
__metadata("design:type", Function),
|
|
1477
|
+
__metadata("design:paramtypes", []),
|
|
1478
|
+
__metadata("design:returntype", void 0)
|
|
1479
|
+
], PopupMenuComponent.prototype, "ngAfterViewInit", null);
|
|
1480
|
+
PopupMenuComponent = __decorate([
|
|
1043
1481
|
core.Component({
|
|
1044
1482
|
selector: 'aup-popup-menu',
|
|
1045
|
-
template:
|
|
1046
|
-
providers: [{ provide:
|
|
1483
|
+
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1484
|
+
providers: [{ provide: exports.ɵbo, useFactory: ɵ0$1 }]
|
|
1047
1485
|
}),
|
|
1048
|
-
__metadata("design:paramtypes", [
|
|
1486
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1049
1487
|
], PopupMenuComponent);
|
|
1050
1488
|
return PopupMenuComponent;
|
|
1051
|
-
}(
|
|
1489
|
+
}(DisposableComponent));
|
|
1052
1490
|
|
|
1053
1491
|
/**
|
|
1054
1492
|
*
|
|
1055
1493
|
*/
|
|
1056
|
-
var
|
|
1057
|
-
__extends(
|
|
1058
|
-
function
|
|
1059
|
-
var _this = _super.call(this
|
|
1060
|
-
_this.
|
|
1494
|
+
var SeparatorComponent = /** @class */ (function (_super) {
|
|
1495
|
+
__extends(SeparatorComponent, _super);
|
|
1496
|
+
function SeparatorComponent(parent) {
|
|
1497
|
+
var _this = _super.call(this) || this;
|
|
1498
|
+
_this.parent = parent;
|
|
1499
|
+
if (parent) {
|
|
1500
|
+
parent.registerSeparator(_this);
|
|
1501
|
+
}
|
|
1061
1502
|
return _this;
|
|
1062
1503
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1504
|
+
SeparatorComponent.prototype.isVertical = function () {
|
|
1505
|
+
return this === null || this === void 0 ? void 0 : this.parent.isRoot();
|
|
1506
|
+
};
|
|
1507
|
+
SeparatorComponent.prototype.ngOnInit = function () {
|
|
1508
|
+
};
|
|
1509
|
+
SeparatorComponent.ctorParameters = function () { return [
|
|
1510
|
+
{ type: exports.ɵbo, decorators: [{ type: core.Optional }] }
|
|
1511
|
+
]; };
|
|
1512
|
+
SeparatorComponent = __decorate([
|
|
1513
|
+
core.Component({
|
|
1514
|
+
selector: 'aup-separator',
|
|
1515
|
+
template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
|
|
1516
|
+
}),
|
|
1517
|
+
__param(0, core.Optional()),
|
|
1518
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1519
|
+
], SeparatorComponent);
|
|
1520
|
+
return SeparatorComponent;
|
|
1521
|
+
}(DisposableComponent));
|
|
1522
|
+
|
|
1523
|
+
var ɵ0$2 = exports.ɵbo.factory;
|
|
1524
|
+
/**
|
|
1525
|
+
*
|
|
1526
|
+
*/
|
|
1527
|
+
var ToolBarComponent = /** @class */ (function (_super) {
|
|
1528
|
+
__extends(ToolBarComponent, _super);
|
|
1529
|
+
function ToolBarComponent(group) {
|
|
1530
|
+
var _this = _super.call(this) || this;
|
|
1531
|
+
_this.group = group;
|
|
1532
|
+
return _this;
|
|
1533
|
+
}
|
|
1534
|
+
ToolBarComponent.prototype.ngOnInit = function () {
|
|
1535
|
+
};
|
|
1536
|
+
ToolBarComponent.prototype.ngAfterContentInit = function () {
|
|
1537
|
+
this.group.initialise();
|
|
1538
|
+
};
|
|
1539
|
+
ToolBarComponent.prototype.ngAfterViewInit = function () {
|
|
1540
|
+
};
|
|
1541
|
+
ToolBarComponent.ctorParameters = function () { return [
|
|
1542
|
+
{ type: exports.ɵbo }
|
|
1067
1543
|
]; };
|
|
1068
1544
|
__decorate([
|
|
1069
|
-
|
|
1070
|
-
__metadata("design:type",
|
|
1071
|
-
|
|
1072
|
-
|
|
1545
|
+
pectin.Trace(),
|
|
1546
|
+
__metadata("design:type", Function),
|
|
1547
|
+
__metadata("design:paramtypes", []),
|
|
1548
|
+
__metadata("design:returntype", void 0)
|
|
1549
|
+
], ToolBarComponent.prototype, "ngOnInit", null);
|
|
1550
|
+
__decorate([
|
|
1551
|
+
pectin.Trace(),
|
|
1552
|
+
__metadata("design:type", Function),
|
|
1553
|
+
__metadata("design:paramtypes", []),
|
|
1554
|
+
__metadata("design:returntype", void 0)
|
|
1555
|
+
], ToolBarComponent.prototype, "ngAfterContentInit", null);
|
|
1556
|
+
__decorate([
|
|
1557
|
+
pectin.Trace(),
|
|
1558
|
+
__metadata("design:type", Function),
|
|
1559
|
+
__metadata("design:paramtypes", []),
|
|
1560
|
+
__metadata("design:returntype", void 0)
|
|
1561
|
+
], ToolBarComponent.prototype, "ngAfterViewInit", null);
|
|
1562
|
+
ToolBarComponent = __decorate([
|
|
1073
1563
|
core.Component({
|
|
1074
|
-
selector: 'aup-
|
|
1075
|
-
template:
|
|
1076
|
-
providers: [{ provide:
|
|
1564
|
+
selector: 'aup-tool-bar',
|
|
1565
|
+
template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1566
|
+
providers: [{ provide: exports.ɵbo, useFactory: ɵ0$2 }],
|
|
1567
|
+
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}"]
|
|
1077
1568
|
}),
|
|
1078
|
-
__metadata("design:paramtypes", [
|
|
1079
|
-
],
|
|
1080
|
-
return
|
|
1081
|
-
}(
|
|
1569
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1570
|
+
], ToolBarComponent);
|
|
1571
|
+
return ToolBarComponent;
|
|
1572
|
+
}(DisposableComponent));
|
|
1082
1573
|
|
|
1083
1574
|
var FocusContainerComponent = /** @class */ (function (_super) {
|
|
1084
1575
|
__extends(FocusContainerComponent, _super);
|
|
@@ -2365,7 +2856,7 @@
|
|
|
2365
2856
|
|
|
2366
2857
|
var noop = function () {
|
|
2367
2858
|
};
|
|
2368
|
-
var ɵ0 = noop;
|
|
2859
|
+
var ɵ0$3 = noop;
|
|
2369
2860
|
var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol("aup-cell-renderer:row-data-cache");
|
|
2370
2861
|
var ColumnModel = /** @class */ (function () {
|
|
2371
2862
|
function ColumnModel(columnId, defaults) {
|
|
@@ -2863,12 +3354,14 @@
|
|
|
2863
3354
|
}
|
|
2864
3355
|
return column;
|
|
2865
3356
|
};
|
|
3357
|
+
// removeColumn(column: ColumnModel<Row>) {
|
|
3358
|
+
//
|
|
3359
|
+
// }
|
|
2866
3360
|
TableModel.prototype.columnTextProperties = function (columnTextProperties) {
|
|
2867
3361
|
this._columnTextPropertiesLookup = columnTextProperties;
|
|
2868
3362
|
};
|
|
2869
3363
|
TableModel.prototype.getColumnTextProperties = function (column) {
|
|
2870
|
-
|
|
2871
|
-
return factory ? factory() : undefined;
|
|
3364
|
+
return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
|
|
2872
3365
|
};
|
|
2873
3366
|
TableModel.prototype.startEditSession = function (row) {
|
|
2874
3367
|
var _this = this;
|
|
@@ -3169,15 +3662,13 @@
|
|
|
3169
3662
|
return TableHeaderCellRendererComponent;
|
|
3170
3663
|
}());
|
|
3171
3664
|
|
|
3172
|
-
var MenuItemData = /** @class */ (function (
|
|
3173
|
-
__extends(MenuItemData, _super);
|
|
3665
|
+
var MenuItemData = /** @class */ (function () {
|
|
3174
3666
|
function MenuItemData(factory, face) {
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
return _this;
|
|
3667
|
+
this.factory = factory;
|
|
3668
|
+
this.face = face;
|
|
3178
3669
|
}
|
|
3179
3670
|
return MenuItemData;
|
|
3180
|
-
}(
|
|
3671
|
+
}());
|
|
3181
3672
|
/**
|
|
3182
3673
|
*
|
|
3183
3674
|
*/
|
|
@@ -3220,7 +3711,7 @@
|
|
|
3220
3711
|
TableRowMenuComponent = __decorate([
|
|
3221
3712
|
core.Component({
|
|
3222
3713
|
selector: 'aup-table-row-menu',
|
|
3223
|
-
template: "\n
|
|
3714
|
+
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 ",
|
|
3224
3715
|
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
3225
3716
|
}),
|
|
3226
3717
|
__metadata("design:paramtypes", [])
|
|
@@ -3355,13 +3846,16 @@
|
|
|
3355
3846
|
exports.ɵbk,
|
|
3356
3847
|
SectionHeaderComponent,
|
|
3357
3848
|
TableRowMenuComponent,
|
|
3358
|
-
|
|
3849
|
+
ToolBarComponent,
|
|
3359
3850
|
CommandComponent,
|
|
3360
3851
|
PopupMenuComponent,
|
|
3852
|
+
CommandGroupComponent,
|
|
3361
3853
|
CommandFaceComponent,
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3854
|
+
MoreMenuComponent,
|
|
3855
|
+
SeparatorComponent,
|
|
3856
|
+
FlexComponent,
|
|
3857
|
+
CommandGroupMenuRendererComponent,
|
|
3858
|
+
CommandGroupRendererComponent
|
|
3365
3859
|
],
|
|
3366
3860
|
imports: [
|
|
3367
3861
|
common.CommonModule,
|
|
@@ -3381,8 +3875,8 @@
|
|
|
3381
3875
|
angularFontawesome.FontAwesomeModule,
|
|
3382
3876
|
tooltip.MatTooltipModule,
|
|
3383
3877
|
autocomplete.MatAutocompleteModule,
|
|
3384
|
-
menu.
|
|
3385
|
-
|
|
3878
|
+
menu.MatMenuModule,
|
|
3879
|
+
divider.MatDividerModule
|
|
3386
3880
|
],
|
|
3387
3881
|
exports: [
|
|
3388
3882
|
NumberInputComponent,
|
|
@@ -3408,28 +3902,17 @@
|
|
|
3408
3902
|
exports.ɵbk,
|
|
3409
3903
|
SectionHeaderComponent,
|
|
3410
3904
|
TableRowMenuComponent,
|
|
3411
|
-
|
|
3905
|
+
CommandGroupComponent,
|
|
3906
|
+
ToolBarComponent,
|
|
3412
3907
|
CommandComponent,
|
|
3413
|
-
AbstractPopupMenuComponent,
|
|
3414
3908
|
PopupMenuComponent,
|
|
3415
3909
|
CommandFaceComponent,
|
|
3416
|
-
|
|
3417
|
-
|
|
3910
|
+
MoreMenuComponent,
|
|
3911
|
+
SeparatorComponent,
|
|
3912
|
+
FlexComponent
|
|
3418
3913
|
],
|
|
3419
3914
|
providers: [
|
|
3420
3915
|
FocusBindingFactory
|
|
3421
|
-
// {
|
|
3422
|
-
// provide: CELL_EDITOR_REGISTRATION, useValue: {
|
|
3423
|
-
// type: 'string',
|
|
3424
|
-
// editorClass: StringInputComponent
|
|
3425
|
-
// }, multi: true
|
|
3426
|
-
// },
|
|
3427
|
-
// {
|
|
3428
|
-
// provide: CELL_EDITOR_REGISTRATION, useValue: {
|
|
3429
|
-
// type: 'number',
|
|
3430
|
-
// editorClass: NumberInputComponent
|
|
3431
|
-
// }, multi: true
|
|
3432
|
-
// }
|
|
3433
3916
|
]
|
|
3434
3917
|
}),
|
|
3435
3918
|
__metadata("design:paramtypes", [angularFontawesome.FaIconLibrary])
|
|
@@ -4115,7 +4598,7 @@
|
|
|
4115
4598
|
}());
|
|
4116
4599
|
|
|
4117
4600
|
var inplaceMonitorCount = 0;
|
|
4118
|
-
exports.ɵ
|
|
4601
|
+
exports.ɵci = /** @class */ (function () {
|
|
4119
4602
|
function InteractionService(modelInteractionContextFactory) {
|
|
4120
4603
|
this.modelInteractionContextFactory = modelInteractionContextFactory;
|
|
4121
4604
|
this.garbage = new pectin.GarbageCollector();
|
|
@@ -4260,7 +4743,7 @@
|
|
|
4260
4743
|
return ApiAdapter;
|
|
4261
4744
|
}());
|
|
4262
4745
|
InteractionService.ApiAdapter = ApiAdapter;
|
|
4263
|
-
})(exports.ɵ
|
|
4746
|
+
})(exports.ɵci || (exports.ɵci = {}));
|
|
4264
4747
|
|
|
4265
4748
|
var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
|
|
4266
4749
|
__extends(InPlaceInteractionContextComponent, _super);
|
|
@@ -4318,7 +4801,7 @@
|
|
|
4318
4801
|
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
4319
4802
|
};
|
|
4320
4803
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
4321
|
-
{ type: exports.ɵ
|
|
4804
|
+
{ type: exports.ɵci },
|
|
4322
4805
|
{ type: undefined, decorators: [{ type: core.Inject, args: [tabs.MAT_TABS_CONFIG,] }, { type: core.Optional }] }
|
|
4323
4806
|
]; };
|
|
4324
4807
|
__decorate([
|
|
@@ -4336,7 +4819,7 @@
|
|
|
4336
4819
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4337
4820
|
}),
|
|
4338
4821
|
__param(1, core.Inject(tabs.MAT_TABS_CONFIG)), __param(1, core.Optional()),
|
|
4339
|
-
__metadata("design:paramtypes", [exports.ɵ
|
|
4822
|
+
__metadata("design:paramtypes", [exports.ɵci, Object])
|
|
4340
4823
|
], InPlaceInteractionContextComponent);
|
|
4341
4824
|
return InPlaceInteractionContextComponent;
|
|
4342
4825
|
}(DisposableComponent));
|
|
@@ -4875,7 +5358,7 @@
|
|
|
4875
5358
|
AlertDialogComponent
|
|
4876
5359
|
],
|
|
4877
5360
|
providers: [
|
|
4878
|
-
exports.ɵ
|
|
5361
|
+
exports.ɵci
|
|
4879
5362
|
// {
|
|
4880
5363
|
// provide: MAT_TABS_CONFIG, useValue: { animationDuration: "2s" }
|
|
4881
5364
|
// }
|
|
@@ -6013,7 +6496,7 @@
|
|
|
6013
6496
|
return PopStateNavigation;
|
|
6014
6497
|
}(AbstractPopStateNavigation));
|
|
6015
6498
|
|
|
6016
|
-
exports.ɵ
|
|
6499
|
+
exports.ɵcl = /** @class */ (function () {
|
|
6017
6500
|
function PlaceHistory() {
|
|
6018
6501
|
this._archive = new Map();
|
|
6019
6502
|
this.placeHistoryDepth = 4;
|
|
@@ -6150,7 +6633,7 @@
|
|
|
6150
6633
|
// }
|
|
6151
6634
|
//
|
|
6152
6635
|
// }
|
|
6153
|
-
})(exports.ɵ
|
|
6636
|
+
})(exports.ɵcl || (exports.ɵcl = {}));
|
|
6154
6637
|
|
|
6155
6638
|
exports.UrlSnapshot = /** @class */ (function () {
|
|
6156
6639
|
// TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
|
|
@@ -6605,20 +7088,20 @@
|
|
|
6605
7088
|
PlaceRouter.ctorParameters = function () { return [
|
|
6606
7089
|
{ type: router.Router },
|
|
6607
7090
|
{ type: common.Location },
|
|
6608
|
-
{ type: exports.ɵ
|
|
7091
|
+
{ type: exports.ɵci },
|
|
6609
7092
|
{ type: UrlService },
|
|
6610
|
-
{ type: exports.ɵ
|
|
7093
|
+
{ type: exports.ɵcl }
|
|
6611
7094
|
]; };
|
|
6612
|
-
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵ
|
|
7095
|
+
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵci), core.ɵɵinject(UrlService), core.ɵɵinject(exports.ɵcl)); }, token: PlaceRouter, providedIn: "root" });
|
|
6613
7096
|
PlaceRouter = __decorate([
|
|
6614
7097
|
core.Injectable({
|
|
6615
7098
|
providedIn: 'root'
|
|
6616
7099
|
}),
|
|
6617
7100
|
__metadata("design:paramtypes", [router.Router,
|
|
6618
7101
|
common.Location,
|
|
6619
|
-
exports.ɵ
|
|
7102
|
+
exports.ɵci,
|
|
6620
7103
|
UrlService,
|
|
6621
|
-
exports.ɵ
|
|
7104
|
+
exports.ɵcl])
|
|
6622
7105
|
], PlaceRouter);
|
|
6623
7106
|
return PlaceRouter;
|
|
6624
7107
|
}(pectin.GarbageCollector));
|
|
@@ -7136,7 +7619,7 @@
|
|
|
7136
7619
|
* (at)Place({
|
|
7137
7620
|
* path: 'myPlace',
|
|
7138
7621
|
* data: {
|
|
7139
|
-
* nav: I18n.places.myPlace.nav
|
|
7622
|
+
* nav: I18n.places.myPlace.nav
|
|
7140
7623
|
* }
|
|
7141
7624
|
* })
|
|
7142
7625
|
*/
|
|
@@ -7807,7 +8290,6 @@
|
|
|
7807
8290
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
7808
8291
|
exports.AbstractPlaceNavigationComponent = AbstractPlaceNavigationComponent;
|
|
7809
8292
|
exports.AbstractPopStateNavigation = AbstractPopStateNavigation;
|
|
7810
|
-
exports.AbstractPopupMenuComponent = AbstractPopupMenuComponent;
|
|
7811
8293
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
7812
8294
|
exports.Activity = Activity;
|
|
7813
8295
|
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
@@ -7829,11 +8311,13 @@
|
|
|
7829
8311
|
exports.CheckboxInputComponent = CheckboxInputComponent;
|
|
7830
8312
|
exports.ColumnModel = ColumnModel;
|
|
7831
8313
|
exports.ColumnTemplateDirective = ColumnTemplateDirective;
|
|
7832
|
-
exports.CommandBarComponent = CommandBarComponent;
|
|
7833
8314
|
exports.CommandComponent = CommandComponent;
|
|
7834
|
-
exports.CommandContainer = CommandContainer;
|
|
7835
8315
|
exports.CommandDirective = CommandDirective;
|
|
7836
8316
|
exports.CommandFaceComponent = CommandFaceComponent;
|
|
8317
|
+
exports.CommandGroup = exports.ɵbo;
|
|
8318
|
+
exports.CommandGroupComponent = CommandGroupComponent;
|
|
8319
|
+
exports.CommandGroupMenuRendererComponent = CommandGroupMenuRendererComponent;
|
|
8320
|
+
exports.CommandGroupRendererComponent = CommandGroupRendererComponent;
|
|
7837
8321
|
exports.ComponentCellRendererPortalRef = ComponentCellRendererPortalRef;
|
|
7838
8322
|
exports.ComponentsModule = ComponentsModule;
|
|
7839
8323
|
exports.ConfirmThenDialogComponent = ConfirmThenDialogComponent;
|
|
@@ -7855,6 +8339,7 @@
|
|
|
7855
8339
|
exports.EditorControlColumnModel = EditorControlColumnModel;
|
|
7856
8340
|
exports.EmptyStateComponent = EmptyStateComponent;
|
|
7857
8341
|
exports.EventCleanUpSession = EventCleanUpSession;
|
|
8342
|
+
exports.FlexComponent = FlexComponent;
|
|
7858
8343
|
exports.FocusBinding = FocusBinding;
|
|
7859
8344
|
exports.FocusBindingDirective = FocusBindingDirective;
|
|
7860
8345
|
exports.FocusBindingFactory = FocusBindingFactory;
|
|
@@ -7865,7 +8350,7 @@
|
|
|
7865
8350
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
7866
8351
|
exports.InteractionContextTriggerFor = InteractionContextTriggerFor;
|
|
7867
8352
|
exports.InteractionModule = InteractionModule;
|
|
7868
|
-
exports.InteractionService = exports.ɵ
|
|
8353
|
+
exports.InteractionService = exports.ɵci;
|
|
7869
8354
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
7870
8355
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
7871
8356
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
@@ -7886,7 +8371,7 @@
|
|
|
7886
8371
|
exports.PlaceComponentDeactivationHandler = PlaceComponentDeactivationHandler;
|
|
7887
8372
|
exports.PlaceDefinition = PlaceDefinition;
|
|
7888
8373
|
exports.PlaceGuard = PlaceGuard;
|
|
7889
|
-
exports.PlaceHistory = exports.ɵ
|
|
8374
|
+
exports.PlaceHistory = exports.ɵcl;
|
|
7890
8375
|
exports.PlaceModule = PlaceModule;
|
|
7891
8376
|
exports.PlaceOutletComponent = PlaceOutletComponent;
|
|
7892
8377
|
exports.PlaceRouter = PlaceRouter;
|
|
@@ -7895,7 +8380,6 @@
|
|
|
7895
8380
|
exports.PopStateNavigation = PopStateNavigation;
|
|
7896
8381
|
exports.PopupInteractionContextComponent = PopupInteractionContextComponent;
|
|
7897
8382
|
exports.PopupMenuComponent = PopupMenuComponent;
|
|
7898
|
-
exports.PopupMenuRendererComponent = PopupMenuRendererComponent;
|
|
7899
8383
|
exports.PropertyColumnModel = PropertyColumnModel;
|
|
7900
8384
|
exports.ROUTE_PARAMETER_LIST_KEY = ROUTE_PARAMETER_LIST_KEY;
|
|
7901
8385
|
exports.RemoveLastInteractionFromUrlNavigationSession = RemoveLastInteractionFromUrlNavigationSession;
|
|
@@ -7908,6 +8392,7 @@
|
|
|
7908
8392
|
exports.SelectInputActivity = SelectInputActivity;
|
|
7909
8393
|
exports.SelectInputComponent = SelectInputComponent;
|
|
7910
8394
|
exports.SelectionColumnModel = SelectionColumnModel;
|
|
8395
|
+
exports.SeparatorComponent = SeparatorComponent;
|
|
7911
8396
|
exports.SidePlaceNavigationComponent = SidePlaceNavigationComponent;
|
|
7912
8397
|
exports.StringInputActivity = StringInputActivity;
|
|
7913
8398
|
exports.StringInputComponent = StringInputComponent;
|
|
@@ -7924,6 +8409,7 @@
|
|
|
7924
8409
|
exports.TableRowMenuComponent = TableRowMenuComponent;
|
|
7925
8410
|
exports.TemplateCellRendererPortalRef = TemplateCellRendererPortalRef;
|
|
7926
8411
|
exports.TextInputComponent = TextInputComponent;
|
|
8412
|
+
exports.ToolBarComponent = ToolBarComponent;
|
|
7927
8413
|
exports.UrlService = UrlService;
|
|
7928
8414
|
exports.VerticalFocusContainerComponent = VerticalFocusContainerComponent;
|
|
7929
8415
|
exports.Visit = Visit;
|
|
@@ -7951,48 +8437,50 @@
|
|
|
7951
8437
|
exports.ɵbj = TableHeaderCellRendererComponent;
|
|
7952
8438
|
exports.ɵbl = SectionHeaderComponent;
|
|
7953
8439
|
exports.ɵbm = TableRowMenuComponent;
|
|
7954
|
-
exports.ɵbn =
|
|
7955
|
-
exports.ɵbo = CommandContainer;
|
|
8440
|
+
exports.ɵbn = ToolBarComponent;
|
|
7956
8441
|
exports.ɵbp = CommandComponent;
|
|
7957
8442
|
exports.ɵbq = PopupMenuComponent;
|
|
7958
|
-
exports.ɵbr =
|
|
7959
|
-
exports.ɵbs =
|
|
7960
|
-
exports.ɵbt =
|
|
7961
|
-
exports.ɵbu =
|
|
7962
|
-
exports.ɵbv =
|
|
7963
|
-
exports.ɵbw =
|
|
7964
|
-
exports.ɵbx =
|
|
7965
|
-
exports.ɵby =
|
|
7966
|
-
exports.ɵbz =
|
|
8443
|
+
exports.ɵbr = CommandGroupComponent;
|
|
8444
|
+
exports.ɵbs = CommandFaceComponent;
|
|
8445
|
+
exports.ɵbt = MoreMenuComponent;
|
|
8446
|
+
exports.ɵbu = SeparatorComponent;
|
|
8447
|
+
exports.ɵbv = FlexComponent;
|
|
8448
|
+
exports.ɵbw = CommandGroupMenuRendererComponent;
|
|
8449
|
+
exports.ɵbx = CommandGroupRendererComponent;
|
|
8450
|
+
exports.ɵby = PlaceModule;
|
|
8451
|
+
exports.ɵbz = ComponentsModule;
|
|
7967
8452
|
exports.ɵc = FocusBindingDirective;
|
|
7968
|
-
exports.ɵca =
|
|
7969
|
-
exports.ɵcb =
|
|
7970
|
-
exports.ɵcc =
|
|
7971
|
-
exports.ɵ
|
|
7972
|
-
exports.ɵ
|
|
7973
|
-
exports.ɵ
|
|
7974
|
-
exports.ɵ
|
|
7975
|
-
exports.ɵ
|
|
7976
|
-
exports.ɵ
|
|
7977
|
-
exports.ɵcm =
|
|
7978
|
-
exports.ɵcn =
|
|
7979
|
-
exports.ɵco =
|
|
7980
|
-
exports.ɵcp =
|
|
7981
|
-
exports.ɵcq =
|
|
7982
|
-
exports.ɵcr =
|
|
7983
|
-
exports.ɵcs =
|
|
7984
|
-
exports.ɵct =
|
|
7985
|
-
exports.ɵ
|
|
7986
|
-
exports.ɵ
|
|
7987
|
-
exports.ɵ
|
|
7988
|
-
exports.ɵ
|
|
8453
|
+
exports.ɵca = EmptyStateComponent;
|
|
8454
|
+
exports.ɵcb = BusyOverlayComponent;
|
|
8455
|
+
exports.ɵcc = PlaceOutletComponent;
|
|
8456
|
+
exports.ɵcd = leftRightPlaceAnimation;
|
|
8457
|
+
exports.ɵce = LEFT_RIGHT_PLACE_ANIMATION;
|
|
8458
|
+
exports.ɵcf = AUP_PLACE_CONFIG;
|
|
8459
|
+
exports.ɵch = PlaceRouter;
|
|
8460
|
+
exports.ɵcj = ModalInteractionContextFactory;
|
|
8461
|
+
exports.ɵck = UrlService;
|
|
8462
|
+
exports.ɵcm = TabbedPlaceNavigationComponent;
|
|
8463
|
+
exports.ɵcn = AbstractPlaceNavigationComponent;
|
|
8464
|
+
exports.ɵco = ListPlaceNavComponent;
|
|
8465
|
+
exports.ɵcp = SidePlaceNavigationComponent;
|
|
8466
|
+
exports.ɵcq = InteractionModule;
|
|
8467
|
+
exports.ɵcr = ActivityContainerComponent;
|
|
8468
|
+
exports.ɵcs = AbstractInteractionContext;
|
|
8469
|
+
exports.ɵct = ActivityOutletComponent;
|
|
8470
|
+
exports.ɵcu = ConfirmationDialogComponent;
|
|
8471
|
+
exports.ɵcv = ACTIVITY_DATA;
|
|
8472
|
+
exports.ɵcw = Activity;
|
|
8473
|
+
exports.ɵcy = ConfirmThenDialogComponent;
|
|
8474
|
+
exports.ɵcz = AlertDialogComponent;
|
|
7989
8475
|
exports.ɵd = DisposableComponent;
|
|
7990
|
-
exports.ɵ
|
|
7991
|
-
exports.ɵ
|
|
7992
|
-
exports.ɵ
|
|
7993
|
-
exports.ɵ
|
|
7994
|
-
exports.ɵ
|
|
7995
|
-
exports.ɵ
|
|
8476
|
+
exports.ɵdb = InPlaceInteractionContextComponent;
|
|
8477
|
+
exports.ɵdc = AddItemInteractionContextComponent;
|
|
8478
|
+
exports.ɵdd = ActivityActionsComponent;
|
|
8479
|
+
exports.ɵde = PopupInteractionContextComponent;
|
|
8480
|
+
exports.ɵdf = StringInputActivity;
|
|
8481
|
+
exports.ɵdg = AbstractInputActivity;
|
|
8482
|
+
exports.ɵdh = SelectInputActivity;
|
|
8483
|
+
exports.ɵdi = InteractionContextTriggerFor;
|
|
7996
8484
|
exports.ɵe = FocusBindingFactory;
|
|
7997
8485
|
exports.ɵf = ComponentsModule;
|
|
7998
8486
|
exports.ɵg = AbstractInputComponent;
|