@coolon/angular-ui-powerups 2.0.0-alpha.35 → 2.0.0-alpha.37
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 +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +776 -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 +61 -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 +100 -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 +64 -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 +122 -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 +629 -255
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +715 -229
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command/command.component.d.ts +22 -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 +41 -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,468 @@
|
|
|
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) {
|
|
859
|
+
var _this = _super.call(this) || 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');
|
|
868
|
+
return _this;
|
|
869
|
+
}
|
|
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() {
|
|
691
910
|
var _this = _super.call(this) || this;
|
|
692
|
-
_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');
|
|
693
916
|
return _this;
|
|
694
917
|
}
|
|
695
|
-
|
|
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
|
+
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;
|
|
1026
|
+
_this.childTemplates = chain(_this._rootTemplate).pluckList('children');
|
|
1027
|
+
_this.initialised = chain(_this._rootTemplate).isNotNil();
|
|
1028
|
+
return _this;
|
|
1029
|
+
}
|
|
1030
|
+
CommandGroup.prototype.initialise = function () {
|
|
1031
|
+
this.rebuildTemplates();
|
|
1032
|
+
};
|
|
1033
|
+
Object.defineProperty(CommandGroup.prototype, "rootTemplate", {
|
|
696
1034
|
get: function () {
|
|
697
|
-
return this.
|
|
1035
|
+
return this._rootTemplate.readonly;
|
|
698
1036
|
},
|
|
699
1037
|
enumerable: true,
|
|
700
1038
|
configurable: true
|
|
701
1039
|
});
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
1040
|
+
Object.defineProperty(CommandGroup.prototype, "registrations", {
|
|
1041
|
+
get: function () {
|
|
1042
|
+
return this._registrations.readonly;
|
|
1043
|
+
},
|
|
1044
|
+
enumerable: true,
|
|
1045
|
+
configurable: true
|
|
1046
|
+
});
|
|
1047
|
+
CommandGroup.prototype.notifyChanged = function () {
|
|
1048
|
+
if (this.parent) {
|
|
1049
|
+
this.parent.notifyChanged();
|
|
1050
|
+
}
|
|
1051
|
+
else {
|
|
1052
|
+
this.rebuildTemplates();
|
|
1053
|
+
}
|
|
707
1054
|
};
|
|
708
|
-
|
|
709
|
-
|
|
1055
|
+
CommandGroup.prototype.notifyChildFaceChanged = function (is, was) {
|
|
1056
|
+
this.notifyChanged();
|
|
710
1057
|
};
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
1058
|
+
CommandGroup.prototype.rebuildTemplates = function () {
|
|
1059
|
+
this._rootTemplate.value = new exports.ViewData.GroupData(this.faceModel.value, this.xPosition, this.yPosition, this.registrations.value.map(function (r) { return r.toTemplate(); }));
|
|
1060
|
+
};
|
|
1061
|
+
Object.defineProperty(CommandGroup.prototype, "depth", {
|
|
1062
|
+
get: function () {
|
|
1063
|
+
return this.isRoot() ? 0 : this.parent.depth + 1;
|
|
1064
|
+
},
|
|
1065
|
+
enumerable: true,
|
|
1066
|
+
configurable: true
|
|
1067
|
+
});
|
|
1068
|
+
CommandGroup.prototype.isRoot = function () {
|
|
1069
|
+
return false;
|
|
1070
|
+
};
|
|
1071
|
+
CommandGroup.prototype.registerCommand = function (command, faceModel) {
|
|
1072
|
+
return this.register(new exports.Registration.CommandRegistration(faceModel, command));
|
|
724
1073
|
};
|
|
725
|
-
|
|
726
|
-
return
|
|
1074
|
+
CommandGroup.prototype.registerGroup = function (group, faceModel) {
|
|
1075
|
+
return this.register(new exports.Registration.GroupRegistration(faceModel, group));
|
|
727
1076
|
};
|
|
728
|
-
|
|
729
|
-
|
|
1077
|
+
CommandGroup.prototype.registerFlex = function (component) {
|
|
1078
|
+
return this.register(new exports.Registration.FlexRegistration());
|
|
1079
|
+
};
|
|
1080
|
+
CommandGroup.prototype.registerSeparator = function (component) {
|
|
1081
|
+
return this.register(new exports.Registration.SeparatorRegistration());
|
|
1082
|
+
};
|
|
1083
|
+
CommandGroup.prototype.register = function (registration) {
|
|
1084
|
+
var _this = this;
|
|
1085
|
+
this._registrations.push(registration);
|
|
1086
|
+
if (registration instanceof exports.Registration.FaceRegistration) {
|
|
1087
|
+
var when = pectin.Dsl.disposeWith(registration).when;
|
|
1088
|
+
when(registration.faceModel).changes(function (is, was) {
|
|
1089
|
+
_this.notifyChildFaceChanged(is, was);
|
|
1090
|
+
}, { asLongAs: this.initialised });
|
|
1091
|
+
}
|
|
1092
|
+
registration.onDispose(function () { return _this._registrations.remove(registration); });
|
|
1093
|
+
return registration;
|
|
1094
|
+
};
|
|
1095
|
+
return CommandGroup;
|
|
1096
|
+
}(pectin.GarbageCollector));
|
|
1097
|
+
(function (CommandGroup) {
|
|
1098
|
+
var Root = /** @class */ (function (_super) {
|
|
1099
|
+
__extends(Root, _super);
|
|
1100
|
+
function Root() {
|
|
1101
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1102
|
+
}
|
|
1103
|
+
Root.prototype.isRoot = function () {
|
|
1104
|
+
return true;
|
|
1105
|
+
};
|
|
1106
|
+
__decorate([
|
|
1107
|
+
pectin.TrackExternal(),
|
|
1108
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1109
|
+
], Root.prototype, "faceModel", void 0);
|
|
1110
|
+
__decorate([
|
|
1111
|
+
pectin.TrackExternal({ defaultValue: 'after' }),
|
|
1112
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1113
|
+
], Root.prototype, "xPositionModel", void 0);
|
|
1114
|
+
__decorate([
|
|
1115
|
+
pectin.StoreInValueModel('xPositionModel'),
|
|
1116
|
+
__metadata("design:type", String)
|
|
1117
|
+
], Root.prototype, "xPosition", void 0);
|
|
1118
|
+
__decorate([
|
|
1119
|
+
pectin.TrackExternal({ defaultValue: 'below' }),
|
|
1120
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1121
|
+
], Root.prototype, "yPositionModel", void 0);
|
|
1122
|
+
__decorate([
|
|
1123
|
+
pectin.StoreInValueModel('yPositionModel'),
|
|
1124
|
+
__metadata("design:type", String)
|
|
1125
|
+
], Root.prototype, "yPosition", void 0);
|
|
1126
|
+
return Root;
|
|
1127
|
+
}(CommandGroup));
|
|
1128
|
+
CommandGroup.Root = Root;
|
|
1129
|
+
function factory() {
|
|
1130
|
+
return new Root();
|
|
1131
|
+
}
|
|
1132
|
+
CommandGroup.factory = factory;
|
|
1133
|
+
})(exports.ɵbo || (exports.ɵbo = {}));
|
|
1134
|
+
|
|
1135
|
+
var CommandGroupComponent = /** @class */ (function (_super) {
|
|
1136
|
+
__extends(CommandGroupComponent, _super);
|
|
1137
|
+
function CommandGroupComponent(parent) {
|
|
1138
|
+
var _this = _super.call(this, parent) || this;
|
|
1139
|
+
_this.parent = parent;
|
|
1140
|
+
_this.xPosition = 'after';
|
|
1141
|
+
_this.yPosition = 'below';
|
|
1142
|
+
_this.parent.registerGroup(_this, _this.faceModel);
|
|
1143
|
+
return _this;
|
|
1144
|
+
}
|
|
1145
|
+
CommandGroupComponent_1 = CommandGroupComponent;
|
|
1146
|
+
var CommandGroupComponent_1;
|
|
1147
|
+
CommandGroupComponent.ctorParameters = function () { return [
|
|
1148
|
+
{ type: exports.ɵbo, decorators: [{ type: core.SkipSelf }] }
|
|
1149
|
+
]; };
|
|
1150
|
+
__decorate([
|
|
1151
|
+
core.Input(), pectin.TrackExternal(),
|
|
1152
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1153
|
+
], CommandGroupComponent.prototype, "faceModel", void 0);
|
|
1154
|
+
__decorate([
|
|
1155
|
+
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
1156
|
+
__metadata("design:type", Object)
|
|
1157
|
+
], CommandGroupComponent.prototype, "face", void 0);
|
|
1158
|
+
__decorate([
|
|
1159
|
+
core.Input(),
|
|
1160
|
+
__metadata("design:type", String)
|
|
1161
|
+
], CommandGroupComponent.prototype, "xPosition", void 0);
|
|
1162
|
+
__decorate([
|
|
1163
|
+
core.Input(),
|
|
1164
|
+
__metadata("design:type", String)
|
|
1165
|
+
], CommandGroupComponent.prototype, "yPosition", void 0);
|
|
1166
|
+
CommandGroupComponent = CommandGroupComponent_1 = __decorate([
|
|
730
1167
|
core.Component({
|
|
731
|
-
selector: 'aup-command-
|
|
732
|
-
template:
|
|
733
|
-
providers: [
|
|
734
|
-
|
|
1168
|
+
selector: 'aup-command-group',
|
|
1169
|
+
template: '',
|
|
1170
|
+
providers: [
|
|
1171
|
+
{ provide: exports.ɵbo, useExisting: CommandGroupComponent_1 }
|
|
1172
|
+
]
|
|
735
1173
|
}),
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
1174
|
+
__param(0, core.SkipSelf()),
|
|
1175
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1176
|
+
], CommandGroupComponent);
|
|
1177
|
+
return CommandGroupComponent;
|
|
1178
|
+
}(exports.ɵbo));
|
|
740
1179
|
|
|
741
1180
|
/**
|
|
742
1181
|
* Custom CSS:
|
|
@@ -750,9 +1189,8 @@
|
|
|
750
1189
|
*/
|
|
751
1190
|
var CommandFaceComponent = /** @class */ (function (_super) {
|
|
752
1191
|
__extends(CommandFaceComponent, _super);
|
|
753
|
-
function CommandFaceComponent(
|
|
1192
|
+
function CommandFaceComponent() {
|
|
754
1193
|
var _this = _super.call(this) || this;
|
|
755
|
-
_this.commandContainer = commandContainer;
|
|
756
1194
|
_this.faceModel = new pectin.MutableValueModel();
|
|
757
1195
|
_this.ignoreIcon = false;
|
|
758
1196
|
_this.ignoreText = false;
|
|
@@ -763,7 +1201,7 @@
|
|
|
763
1201
|
_this.iconModel = faceAdapter.pluck('icon');
|
|
764
1202
|
_this.textModel = faceAdapter.pluck('text');
|
|
765
1203
|
_this.positionModel = faceAdapter.pluck('iconPosition');
|
|
766
|
-
_this.
|
|
1204
|
+
_this.colorModel = faceAdapter.pluck('color');
|
|
767
1205
|
return _this;
|
|
768
1206
|
}
|
|
769
1207
|
Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
|
|
@@ -777,8 +1215,8 @@
|
|
|
777
1215
|
};
|
|
778
1216
|
Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
|
|
779
1217
|
get: function () {
|
|
780
|
-
var _a
|
|
781
|
-
return (
|
|
1218
|
+
var _a;
|
|
1219
|
+
return (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : exports.CommandFace.Position.START;
|
|
782
1220
|
},
|
|
783
1221
|
enumerable: true,
|
|
784
1222
|
configurable: true
|
|
@@ -811,16 +1249,13 @@
|
|
|
811
1249
|
enumerable: true,
|
|
812
1250
|
configurable: true
|
|
813
1251
|
});
|
|
814
|
-
Object.defineProperty(CommandFaceComponent.prototype, "
|
|
1252
|
+
Object.defineProperty(CommandFaceComponent.prototype, "color", {
|
|
815
1253
|
get: function () {
|
|
816
|
-
return this.
|
|
1254
|
+
return this.colorModel.value;
|
|
817
1255
|
},
|
|
818
1256
|
enumerable: true,
|
|
819
1257
|
configurable: true
|
|
820
1258
|
});
|
|
821
|
-
CommandFaceComponent.ctorParameters = function () { return [
|
|
822
|
-
{ type: CommandContainer, decorators: [{ type: core.Optional }] }
|
|
823
|
-
]; };
|
|
824
1259
|
__decorate([
|
|
825
1260
|
core.Input('face'), pectin.StoreInValueModel('faceModel'),
|
|
826
1261
|
__metadata("design:type", Object)
|
|
@@ -843,10 +1278,10 @@
|
|
|
843
1278
|
__metadata("design:paramtypes", [])
|
|
844
1279
|
], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
|
|
845
1280
|
__decorate([
|
|
846
|
-
core.HostBinding('
|
|
847
|
-
__metadata("design:type",
|
|
1281
|
+
core.HostBinding('attr.color'),
|
|
1282
|
+
__metadata("design:type", String),
|
|
848
1283
|
__metadata("design:paramtypes", [])
|
|
849
|
-
], CommandFaceComponent.prototype, "
|
|
1284
|
+
], CommandFaceComponent.prototype, "color", null);
|
|
850
1285
|
CommandFaceComponent = __decorate([
|
|
851
1286
|
core.Component({
|
|
852
1287
|
selector: 'aup-command-face',
|
|
@@ -854,8 +1289,7 @@
|
|
|
854
1289
|
encapsulation: core.ViewEncapsulation.None,
|
|
855
1290
|
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
1291
|
}),
|
|
857
|
-
|
|
858
|
-
__metadata("design:paramtypes", [CommandContainer])
|
|
1292
|
+
__metadata("design:paramtypes", [])
|
|
859
1293
|
], CommandFaceComponent);
|
|
860
1294
|
return CommandFaceComponent;
|
|
861
1295
|
}(DisposableComponent));
|
|
@@ -865,31 +1299,54 @@
|
|
|
865
1299
|
*/
|
|
866
1300
|
var CommandComponent = /** @class */ (function (_super) {
|
|
867
1301
|
__extends(CommandComponent, _super);
|
|
868
|
-
function CommandComponent(
|
|
1302
|
+
function CommandComponent(parent) {
|
|
869
1303
|
var _this = _super.call(this) || this;
|
|
870
|
-
_this.
|
|
1304
|
+
_this.parent = parent;
|
|
1305
|
+
_this.CommandFace = exports.CommandFace;
|
|
1306
|
+
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, switchOn = _a.switchOn;
|
|
1307
|
+
_this.activeFaceModel = switchOn(_this.command.busy).toValue(function (when) {
|
|
1308
|
+
when.equalTo(true, _this.busyFaceModel);
|
|
1309
|
+
when.otherwise(_this.faceModel);
|
|
1310
|
+
}).otherwise(_this.faceModel);
|
|
1311
|
+
_this.buttonStyle = chain(_this.activeFaceModel).map(function (f) { return exports.CommandFace.getStyleOf(f); });
|
|
1312
|
+
_this.colorModel = chain(_this.activeFaceModel).map(function (f) { return exports.CommandFace.getColorOf(f); });
|
|
1313
|
+
if (parent) {
|
|
1314
|
+
_this.registerDisposable(_this.parent.registerCommand(_this.command, _this.activeFaceModel));
|
|
1315
|
+
}
|
|
871
1316
|
return _this;
|
|
872
1317
|
}
|
|
873
1318
|
CommandComponent.prototype.ngOnInit = function () {
|
|
874
|
-
this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
|
|
875
1319
|
};
|
|
876
1320
|
CommandComponent.ctorParameters = function () { return [
|
|
877
|
-
{ type:
|
|
1321
|
+
{ type: exports.ɵbo, decorators: [{ type: core.Optional }] }
|
|
878
1322
|
]; };
|
|
879
1323
|
__decorate([
|
|
880
1324
|
core.Input(), pectin.TrackExternal(),
|
|
881
1325
|
__metadata("design:type", pectin.Command)
|
|
882
1326
|
], CommandComponent.prototype, "command", void 0);
|
|
883
1327
|
__decorate([
|
|
884
|
-
core.Input(),
|
|
1328
|
+
core.Input(), pectin.TrackExternal(),
|
|
1329
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1330
|
+
], CommandComponent.prototype, "faceModel", void 0);
|
|
1331
|
+
__decorate([
|
|
1332
|
+
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
885
1333
|
__metadata("design:type", Object)
|
|
886
1334
|
], CommandComponent.prototype, "face", void 0);
|
|
1335
|
+
__decorate([
|
|
1336
|
+
core.Input(), pectin.TrackExternal(),
|
|
1337
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1338
|
+
], CommandComponent.prototype, "busyFaceModel", void 0);
|
|
1339
|
+
__decorate([
|
|
1340
|
+
core.Input(), pectin.StoreInValueModel('busyFaceModel'),
|
|
1341
|
+
__metadata("design:type", Object)
|
|
1342
|
+
], CommandComponent.prototype, "busyFace", void 0);
|
|
887
1343
|
CommandComponent = __decorate([
|
|
888
1344
|
core.Component({
|
|
889
1345
|
selector: 'aup-command',
|
|
890
|
-
template: ""
|
|
1346
|
+
template: "<ng-container *ngIf=\"!parent\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <button *ngSwitchCase=\"CommandFace.Style.STROKED\" mat-stroked-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"CommandFace.Style.RAISED\" mat-raised-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchDefault mat-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n </ng-container>\n</ng-container>\n"
|
|
891
1347
|
}),
|
|
892
|
-
|
|
1348
|
+
__param(0, core.Optional()),
|
|
1349
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
893
1350
|
], CommandComponent);
|
|
894
1351
|
return CommandComponent;
|
|
895
1352
|
}(DisposableComponent));
|
|
@@ -897,188 +1354,224 @@
|
|
|
897
1354
|
/**
|
|
898
1355
|
*
|
|
899
1356
|
*/
|
|
900
|
-
var
|
|
901
|
-
__extends(
|
|
902
|
-
function
|
|
1357
|
+
var FlexComponent = /** @class */ (function (_super) {
|
|
1358
|
+
__extends(FlexComponent, _super);
|
|
1359
|
+
function FlexComponent(parent) {
|
|
903
1360
|
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();
|
|
1361
|
+
_this.parent = parent;
|
|
1362
|
+
if (parent) {
|
|
1363
|
+
parent.registerFlex(_this);
|
|
1364
|
+
}
|
|
911
1365
|
return _this;
|
|
912
1366
|
}
|
|
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;
|
|
1367
|
+
FlexComponent.prototype.ngOnInit = function () {
|
|
922
1368
|
};
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
};
|
|
926
|
-
__decorate([
|
|
927
|
-
core.Input(), pectin.TrackExternal(),
|
|
928
|
-
__metadata("design:type", pectin.ListModel)
|
|
929
|
-
], PopupMenuRendererComponent.prototype, "commandRegistrations", void 0);
|
|
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([
|
|
1369
|
+
FlexComponent.ctorParameters = function () { return [
|
|
1370
|
+
{ type: exports.ɵbo }
|
|
1371
|
+
]; };
|
|
1372
|
+
FlexComponent = __decorate([
|
|
947
1373
|
core.Component({
|
|
948
|
-
selector: 'aup-
|
|
949
|
-
template: "
|
|
950
|
-
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
|
|
1374
|
+
selector: 'aup-flex',
|
|
1375
|
+
template: ""
|
|
951
1376
|
}),
|
|
952
|
-
__metadata("design:paramtypes", [])
|
|
953
|
-
],
|
|
954
|
-
return
|
|
1377
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1378
|
+
], FlexComponent);
|
|
1379
|
+
return FlexComponent;
|
|
955
1380
|
}(DisposableComponent));
|
|
956
1381
|
|
|
1382
|
+
var ɵ0 = exports.ɵbo.factory;
|
|
957
1383
|
/**
|
|
958
1384
|
*
|
|
959
1385
|
*/
|
|
960
|
-
var
|
|
961
|
-
__extends(
|
|
962
|
-
function
|
|
1386
|
+
var MoreMenuComponent = /** @class */ (function (_super) {
|
|
1387
|
+
__extends(MoreMenuComponent, _super);
|
|
1388
|
+
function MoreMenuComponent(group) {
|
|
963
1389
|
var _this = _super.call(this) || this;
|
|
964
|
-
_this.
|
|
965
|
-
_this.
|
|
966
|
-
_this.
|
|
1390
|
+
_this.group = group;
|
|
1391
|
+
_this.tooltipModel = new pectin.MutableValueModel();
|
|
1392
|
+
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;
|
|
1393
|
+
group.xPosition = 'before'; // this should be the default unless overridden by the user.
|
|
1394
|
+
group.faceModel = chain(_this.tooltipModel).map(function (tooltip) {
|
|
1395
|
+
return {
|
|
1396
|
+
icon: function () { return 'mat:more_vert'; },
|
|
1397
|
+
tooltip: function () {
|
|
1398
|
+
return tooltip;
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
}, { allowNil: true });
|
|
967
1402
|
return _this;
|
|
968
1403
|
}
|
|
969
|
-
|
|
970
|
-
this.cdr.detectChanges();
|
|
1404
|
+
MoreMenuComponent.prototype.ngOnInit = function () {
|
|
971
1405
|
};
|
|
972
|
-
|
|
973
|
-
|
|
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();
|
|
982
|
-
};
|
|
983
|
-
AbstractPopupMenuComponent.prototype.getButtonColor = function (registration) {
|
|
984
|
-
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
1406
|
+
MoreMenuComponent.prototype.ngAfterContentInit = function () {
|
|
1407
|
+
this.group.initialise();
|
|
985
1408
|
};
|
|
986
|
-
|
|
987
|
-
{ type:
|
|
1409
|
+
MoreMenuComponent.ctorParameters = function () { return [
|
|
1410
|
+
{ type: exports.ɵbo }
|
|
988
1411
|
]; };
|
|
989
1412
|
__decorate([
|
|
990
|
-
core.Input(),
|
|
991
|
-
__metadata("design:type", String)
|
|
992
|
-
], AbstractPopupMenuComponent.prototype, "xPosition", void 0);
|
|
993
|
-
__decorate([
|
|
994
|
-
core.Input(),
|
|
1413
|
+
core.Input(), pectin.StoreInValueModel('tooltipModel'),
|
|
995
1414
|
__metadata("design:type", String)
|
|
996
|
-
],
|
|
997
|
-
__decorate([
|
|
998
|
-
core.ViewChild(PopupMenuRendererComponent),
|
|
999
|
-
__metadata("design:type", PopupMenuRendererComponent)
|
|
1000
|
-
], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
|
|
1415
|
+
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
1001
1416
|
__decorate([
|
|
1002
|
-
|
|
1003
|
-
__metadata("design:type",
|
|
1004
|
-
|
|
1005
|
-
|
|
1417
|
+
pectin.Trace(),
|
|
1418
|
+
__metadata("design:type", Function),
|
|
1419
|
+
__metadata("design:paramtypes", []),
|
|
1420
|
+
__metadata("design:returntype", void 0)
|
|
1421
|
+
], MoreMenuComponent.prototype, "ngAfterContentInit", null);
|
|
1422
|
+
MoreMenuComponent = __decorate([
|
|
1006
1423
|
core.Component({
|
|
1007
|
-
selector: 'aup-
|
|
1008
|
-
template: ''
|
|
1424
|
+
selector: 'aup-more-menu',
|
|
1425
|
+
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1426
|
+
providers: [{ provide: exports.ɵbo, useFactory: ɵ0 }]
|
|
1009
1427
|
}),
|
|
1010
|
-
__metadata("design:paramtypes", [
|
|
1011
|
-
],
|
|
1012
|
-
return
|
|
1013
|
-
}(
|
|
1428
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1429
|
+
], MoreMenuComponent);
|
|
1430
|
+
return MoreMenuComponent;
|
|
1431
|
+
}(DisposableComponent));
|
|
1014
1432
|
|
|
1433
|
+
var ɵ0$1 = exports.ɵbo.factory;
|
|
1015
1434
|
/**
|
|
1016
1435
|
*
|
|
1017
1436
|
*/
|
|
1018
1437
|
var PopupMenuComponent = /** @class */ (function (_super) {
|
|
1019
1438
|
__extends(PopupMenuComponent, _super);
|
|
1020
|
-
function PopupMenuComponent(
|
|
1021
|
-
var _this = _super.call(this
|
|
1022
|
-
_this.
|
|
1439
|
+
function PopupMenuComponent(group) {
|
|
1440
|
+
var _this = _super.call(this) || this;
|
|
1441
|
+
_this.group = group;
|
|
1023
1442
|
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');
|
|
1443
|
+
group.faceModel = _this.faceModel;
|
|
1026
1444
|
return _this;
|
|
1027
1445
|
}
|
|
1028
|
-
PopupMenuComponent_1 = PopupMenuComponent;
|
|
1029
|
-
PopupMenuComponent.prototype.getTooltip = function () {
|
|
1030
|
-
return this.faceTooltipModel.value;
|
|
1031
|
-
};
|
|
1032
1446
|
PopupMenuComponent.prototype.ngOnInit = function () {
|
|
1033
1447
|
};
|
|
1034
|
-
|
|
1448
|
+
PopupMenuComponent.prototype.ngAfterContentInit = function () {
|
|
1449
|
+
this.group.initialise();
|
|
1450
|
+
};
|
|
1451
|
+
PopupMenuComponent.prototype.ngAfterViewInit = function () {
|
|
1452
|
+
};
|
|
1035
1453
|
PopupMenuComponent.ctorParameters = function () { return [
|
|
1036
|
-
{ type:
|
|
1454
|
+
{ type: exports.ɵbo }
|
|
1037
1455
|
]; };
|
|
1456
|
+
__decorate([
|
|
1457
|
+
core.Input(), pectin.TrackExternal(),
|
|
1458
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1459
|
+
], PopupMenuComponent.prototype, "faceModel", void 0);
|
|
1038
1460
|
__decorate([
|
|
1039
1461
|
core.Input(), pectin.StoreInValueModel('faceModel'),
|
|
1040
1462
|
__metadata("design:type", Object)
|
|
1041
1463
|
], PopupMenuComponent.prototype, "face", void 0);
|
|
1042
|
-
|
|
1464
|
+
__decorate([
|
|
1465
|
+
pectin.Trace(),
|
|
1466
|
+
__metadata("design:type", Function),
|
|
1467
|
+
__metadata("design:paramtypes", []),
|
|
1468
|
+
__metadata("design:returntype", void 0)
|
|
1469
|
+
], PopupMenuComponent.prototype, "ngOnInit", null);
|
|
1470
|
+
__decorate([
|
|
1471
|
+
pectin.Trace(),
|
|
1472
|
+
__metadata("design:type", Function),
|
|
1473
|
+
__metadata("design:paramtypes", []),
|
|
1474
|
+
__metadata("design:returntype", void 0)
|
|
1475
|
+
], PopupMenuComponent.prototype, "ngAfterContentInit", null);
|
|
1476
|
+
__decorate([
|
|
1477
|
+
pectin.Trace(),
|
|
1478
|
+
__metadata("design:type", Function),
|
|
1479
|
+
__metadata("design:paramtypes", []),
|
|
1480
|
+
__metadata("design:returntype", void 0)
|
|
1481
|
+
], PopupMenuComponent.prototype, "ngAfterViewInit", null);
|
|
1482
|
+
PopupMenuComponent = __decorate([
|
|
1043
1483
|
core.Component({
|
|
1044
1484
|
selector: 'aup-popup-menu',
|
|
1045
|
-
template:
|
|
1046
|
-
providers: [{ provide:
|
|
1485
|
+
template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1486
|
+
providers: [{ provide: exports.ɵbo, useFactory: ɵ0$1 }]
|
|
1047
1487
|
}),
|
|
1048
|
-
__metadata("design:paramtypes", [
|
|
1488
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1049
1489
|
], PopupMenuComponent);
|
|
1050
1490
|
return PopupMenuComponent;
|
|
1051
|
-
}(
|
|
1491
|
+
}(DisposableComponent));
|
|
1052
1492
|
|
|
1053
1493
|
/**
|
|
1054
1494
|
*
|
|
1055
1495
|
*/
|
|
1056
|
-
var
|
|
1057
|
-
__extends(
|
|
1058
|
-
function
|
|
1059
|
-
var _this = _super.call(this
|
|
1060
|
-
_this.
|
|
1496
|
+
var SeparatorComponent = /** @class */ (function (_super) {
|
|
1497
|
+
__extends(SeparatorComponent, _super);
|
|
1498
|
+
function SeparatorComponent(parent) {
|
|
1499
|
+
var _this = _super.call(this) || this;
|
|
1500
|
+
_this.parent = parent;
|
|
1501
|
+
if (parent) {
|
|
1502
|
+
parent.registerSeparator(_this);
|
|
1503
|
+
}
|
|
1061
1504
|
return _this;
|
|
1062
1505
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1506
|
+
SeparatorComponent.prototype.isVertical = function () {
|
|
1507
|
+
return this === null || this === void 0 ? void 0 : this.parent.isRoot();
|
|
1508
|
+
};
|
|
1509
|
+
SeparatorComponent.prototype.ngOnInit = function () {
|
|
1510
|
+
};
|
|
1511
|
+
SeparatorComponent.ctorParameters = function () { return [
|
|
1512
|
+
{ type: exports.ɵbo, decorators: [{ type: core.Optional }] }
|
|
1513
|
+
]; };
|
|
1514
|
+
SeparatorComponent = __decorate([
|
|
1515
|
+
core.Component({
|
|
1516
|
+
selector: 'aup-separator',
|
|
1517
|
+
template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
|
|
1518
|
+
}),
|
|
1519
|
+
__param(0, core.Optional()),
|
|
1520
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1521
|
+
], SeparatorComponent);
|
|
1522
|
+
return SeparatorComponent;
|
|
1523
|
+
}(DisposableComponent));
|
|
1524
|
+
|
|
1525
|
+
var ɵ0$2 = exports.ɵbo.factory;
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
*/
|
|
1529
|
+
var ToolBarComponent = /** @class */ (function (_super) {
|
|
1530
|
+
__extends(ToolBarComponent, _super);
|
|
1531
|
+
function ToolBarComponent(group) {
|
|
1532
|
+
var _this = _super.call(this) || this;
|
|
1533
|
+
_this.group = group;
|
|
1534
|
+
return _this;
|
|
1535
|
+
}
|
|
1536
|
+
ToolBarComponent.prototype.ngOnInit = function () {
|
|
1537
|
+
};
|
|
1538
|
+
ToolBarComponent.prototype.ngAfterContentInit = function () {
|
|
1539
|
+
this.group.initialise();
|
|
1540
|
+
};
|
|
1541
|
+
ToolBarComponent.prototype.ngAfterViewInit = function () {
|
|
1542
|
+
};
|
|
1543
|
+
ToolBarComponent.ctorParameters = function () { return [
|
|
1544
|
+
{ type: exports.ɵbo }
|
|
1067
1545
|
]; };
|
|
1068
1546
|
__decorate([
|
|
1069
|
-
|
|
1070
|
-
__metadata("design:type",
|
|
1071
|
-
|
|
1072
|
-
|
|
1547
|
+
pectin.Trace(),
|
|
1548
|
+
__metadata("design:type", Function),
|
|
1549
|
+
__metadata("design:paramtypes", []),
|
|
1550
|
+
__metadata("design:returntype", void 0)
|
|
1551
|
+
], ToolBarComponent.prototype, "ngOnInit", null);
|
|
1552
|
+
__decorate([
|
|
1553
|
+
pectin.Trace(),
|
|
1554
|
+
__metadata("design:type", Function),
|
|
1555
|
+
__metadata("design:paramtypes", []),
|
|
1556
|
+
__metadata("design:returntype", void 0)
|
|
1557
|
+
], ToolBarComponent.prototype, "ngAfterContentInit", null);
|
|
1558
|
+
__decorate([
|
|
1559
|
+
pectin.Trace(),
|
|
1560
|
+
__metadata("design:type", Function),
|
|
1561
|
+
__metadata("design:paramtypes", []),
|
|
1562
|
+
__metadata("design:returntype", void 0)
|
|
1563
|
+
], ToolBarComponent.prototype, "ngAfterViewInit", null);
|
|
1564
|
+
ToolBarComponent = __decorate([
|
|
1073
1565
|
core.Component({
|
|
1074
|
-
selector: 'aup-
|
|
1075
|
-
template:
|
|
1076
|
-
providers: [{ provide:
|
|
1566
|
+
selector: 'aup-tool-bar',
|
|
1567
|
+
template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
|
|
1568
|
+
providers: [{ provide: exports.ɵbo, useFactory: ɵ0$2 }],
|
|
1569
|
+
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
1570
|
}),
|
|
1078
|
-
__metadata("design:paramtypes", [
|
|
1079
|
-
],
|
|
1080
|
-
return
|
|
1081
|
-
}(
|
|
1571
|
+
__metadata("design:paramtypes", [exports.ɵbo])
|
|
1572
|
+
], ToolBarComponent);
|
|
1573
|
+
return ToolBarComponent;
|
|
1574
|
+
}(DisposableComponent));
|
|
1082
1575
|
|
|
1083
1576
|
var FocusContainerComponent = /** @class */ (function (_super) {
|
|
1084
1577
|
__extends(FocusContainerComponent, _super);
|
|
@@ -2365,7 +2858,7 @@
|
|
|
2365
2858
|
|
|
2366
2859
|
var noop = function () {
|
|
2367
2860
|
};
|
|
2368
|
-
var ɵ0 = noop;
|
|
2861
|
+
var ɵ0$3 = noop;
|
|
2369
2862
|
var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol("aup-cell-renderer:row-data-cache");
|
|
2370
2863
|
var ColumnModel = /** @class */ (function () {
|
|
2371
2864
|
function ColumnModel(columnId, defaults) {
|
|
@@ -2863,12 +3356,14 @@
|
|
|
2863
3356
|
}
|
|
2864
3357
|
return column;
|
|
2865
3358
|
};
|
|
3359
|
+
// removeColumn(column: ColumnModel<Row>) {
|
|
3360
|
+
//
|
|
3361
|
+
// }
|
|
2866
3362
|
TableModel.prototype.columnTextProperties = function (columnTextProperties) {
|
|
2867
3363
|
this._columnTextPropertiesLookup = columnTextProperties;
|
|
2868
3364
|
};
|
|
2869
3365
|
TableModel.prototype.getColumnTextProperties = function (column) {
|
|
2870
|
-
|
|
2871
|
-
return factory ? factory() : undefined;
|
|
3366
|
+
return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
|
|
2872
3367
|
};
|
|
2873
3368
|
TableModel.prototype.startEditSession = function (row) {
|
|
2874
3369
|
var _this = this;
|
|
@@ -3169,15 +3664,13 @@
|
|
|
3169
3664
|
return TableHeaderCellRendererComponent;
|
|
3170
3665
|
}());
|
|
3171
3666
|
|
|
3172
|
-
var MenuItemData = /** @class */ (function (
|
|
3173
|
-
__extends(MenuItemData, _super);
|
|
3667
|
+
var MenuItemData = /** @class */ (function () {
|
|
3174
3668
|
function MenuItemData(factory, face) {
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
return _this;
|
|
3669
|
+
this.factory = factory;
|
|
3670
|
+
this.face = face;
|
|
3178
3671
|
}
|
|
3179
3672
|
return MenuItemData;
|
|
3180
|
-
}(
|
|
3673
|
+
}());
|
|
3181
3674
|
/**
|
|
3182
3675
|
*
|
|
3183
3676
|
*/
|
|
@@ -3220,7 +3713,7 @@
|
|
|
3220
3713
|
TableRowMenuComponent = __decorate([
|
|
3221
3714
|
core.Component({
|
|
3222
3715
|
selector: 'aup-table-row-menu',
|
|
3223
|
-
template: "\n
|
|
3716
|
+
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
3717
|
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
3225
3718
|
}),
|
|
3226
3719
|
__metadata("design:paramtypes", [])
|
|
@@ -3355,13 +3848,16 @@
|
|
|
3355
3848
|
exports.ɵbk,
|
|
3356
3849
|
SectionHeaderComponent,
|
|
3357
3850
|
TableRowMenuComponent,
|
|
3358
|
-
|
|
3851
|
+
ToolBarComponent,
|
|
3359
3852
|
CommandComponent,
|
|
3360
3853
|
PopupMenuComponent,
|
|
3854
|
+
CommandGroupComponent,
|
|
3361
3855
|
CommandFaceComponent,
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3856
|
+
MoreMenuComponent,
|
|
3857
|
+
SeparatorComponent,
|
|
3858
|
+
FlexComponent,
|
|
3859
|
+
CommandGroupMenuRendererComponent,
|
|
3860
|
+
CommandGroupRendererComponent
|
|
3365
3861
|
],
|
|
3366
3862
|
imports: [
|
|
3367
3863
|
common.CommonModule,
|
|
@@ -3381,8 +3877,8 @@
|
|
|
3381
3877
|
angularFontawesome.FontAwesomeModule,
|
|
3382
3878
|
tooltip.MatTooltipModule,
|
|
3383
3879
|
autocomplete.MatAutocompleteModule,
|
|
3384
|
-
menu.
|
|
3385
|
-
|
|
3880
|
+
menu.MatMenuModule,
|
|
3881
|
+
divider.MatDividerModule
|
|
3386
3882
|
],
|
|
3387
3883
|
exports: [
|
|
3388
3884
|
NumberInputComponent,
|
|
@@ -3408,28 +3904,17 @@
|
|
|
3408
3904
|
exports.ɵbk,
|
|
3409
3905
|
SectionHeaderComponent,
|
|
3410
3906
|
TableRowMenuComponent,
|
|
3411
|
-
|
|
3907
|
+
CommandGroupComponent,
|
|
3908
|
+
ToolBarComponent,
|
|
3412
3909
|
CommandComponent,
|
|
3413
|
-
AbstractPopupMenuComponent,
|
|
3414
3910
|
PopupMenuComponent,
|
|
3415
3911
|
CommandFaceComponent,
|
|
3416
|
-
|
|
3417
|
-
|
|
3912
|
+
MoreMenuComponent,
|
|
3913
|
+
SeparatorComponent,
|
|
3914
|
+
FlexComponent
|
|
3418
3915
|
],
|
|
3419
3916
|
providers: [
|
|
3420
3917
|
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
3918
|
]
|
|
3434
3919
|
}),
|
|
3435
3920
|
__metadata("design:paramtypes", [angularFontawesome.FaIconLibrary])
|
|
@@ -4115,7 +4600,7 @@
|
|
|
4115
4600
|
}());
|
|
4116
4601
|
|
|
4117
4602
|
var inplaceMonitorCount = 0;
|
|
4118
|
-
exports.ɵ
|
|
4603
|
+
exports.ɵci = /** @class */ (function () {
|
|
4119
4604
|
function InteractionService(modelInteractionContextFactory) {
|
|
4120
4605
|
this.modelInteractionContextFactory = modelInteractionContextFactory;
|
|
4121
4606
|
this.garbage = new pectin.GarbageCollector();
|
|
@@ -4260,7 +4745,7 @@
|
|
|
4260
4745
|
return ApiAdapter;
|
|
4261
4746
|
}());
|
|
4262
4747
|
InteractionService.ApiAdapter = ApiAdapter;
|
|
4263
|
-
})(exports.ɵ
|
|
4748
|
+
})(exports.ɵci || (exports.ɵci = {}));
|
|
4264
4749
|
|
|
4265
4750
|
var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
|
|
4266
4751
|
__extends(InPlaceInteractionContextComponent, _super);
|
|
@@ -4318,7 +4803,7 @@
|
|
|
4318
4803
|
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
4319
4804
|
};
|
|
4320
4805
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
4321
|
-
{ type: exports.ɵ
|
|
4806
|
+
{ type: exports.ɵci },
|
|
4322
4807
|
{ type: undefined, decorators: [{ type: core.Inject, args: [tabs.MAT_TABS_CONFIG,] }, { type: core.Optional }] }
|
|
4323
4808
|
]; };
|
|
4324
4809
|
__decorate([
|
|
@@ -4336,7 +4821,7 @@
|
|
|
4336
4821
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4337
4822
|
}),
|
|
4338
4823
|
__param(1, core.Inject(tabs.MAT_TABS_CONFIG)), __param(1, core.Optional()),
|
|
4339
|
-
__metadata("design:paramtypes", [exports.ɵ
|
|
4824
|
+
__metadata("design:paramtypes", [exports.ɵci, Object])
|
|
4340
4825
|
], InPlaceInteractionContextComponent);
|
|
4341
4826
|
return InPlaceInteractionContextComponent;
|
|
4342
4827
|
}(DisposableComponent));
|
|
@@ -4875,7 +5360,7 @@
|
|
|
4875
5360
|
AlertDialogComponent
|
|
4876
5361
|
],
|
|
4877
5362
|
providers: [
|
|
4878
|
-
exports.ɵ
|
|
5363
|
+
exports.ɵci
|
|
4879
5364
|
// {
|
|
4880
5365
|
// provide: MAT_TABS_CONFIG, useValue: { animationDuration: "2s" }
|
|
4881
5366
|
// }
|
|
@@ -6013,7 +6498,7 @@
|
|
|
6013
6498
|
return PopStateNavigation;
|
|
6014
6499
|
}(AbstractPopStateNavigation));
|
|
6015
6500
|
|
|
6016
|
-
exports.ɵ
|
|
6501
|
+
exports.ɵcl = /** @class */ (function () {
|
|
6017
6502
|
function PlaceHistory() {
|
|
6018
6503
|
this._archive = new Map();
|
|
6019
6504
|
this.placeHistoryDepth = 4;
|
|
@@ -6150,7 +6635,7 @@
|
|
|
6150
6635
|
// }
|
|
6151
6636
|
//
|
|
6152
6637
|
// }
|
|
6153
|
-
})(exports.ɵ
|
|
6638
|
+
})(exports.ɵcl || (exports.ɵcl = {}));
|
|
6154
6639
|
|
|
6155
6640
|
exports.UrlSnapshot = /** @class */ (function () {
|
|
6156
6641
|
// TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
|
|
@@ -6605,20 +7090,20 @@
|
|
|
6605
7090
|
PlaceRouter.ctorParameters = function () { return [
|
|
6606
7091
|
{ type: router.Router },
|
|
6607
7092
|
{ type: common.Location },
|
|
6608
|
-
{ type: exports.ɵ
|
|
7093
|
+
{ type: exports.ɵci },
|
|
6609
7094
|
{ type: UrlService },
|
|
6610
|
-
{ type: exports.ɵ
|
|
7095
|
+
{ type: exports.ɵcl }
|
|
6611
7096
|
]; };
|
|
6612
|
-
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵ
|
|
7097
|
+
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
7098
|
PlaceRouter = __decorate([
|
|
6614
7099
|
core.Injectable({
|
|
6615
7100
|
providedIn: 'root'
|
|
6616
7101
|
}),
|
|
6617
7102
|
__metadata("design:paramtypes", [router.Router,
|
|
6618
7103
|
common.Location,
|
|
6619
|
-
exports.ɵ
|
|
7104
|
+
exports.ɵci,
|
|
6620
7105
|
UrlService,
|
|
6621
|
-
exports.ɵ
|
|
7106
|
+
exports.ɵcl])
|
|
6622
7107
|
], PlaceRouter);
|
|
6623
7108
|
return PlaceRouter;
|
|
6624
7109
|
}(pectin.GarbageCollector));
|
|
@@ -7136,7 +7621,7 @@
|
|
|
7136
7621
|
* (at)Place({
|
|
7137
7622
|
* path: 'myPlace',
|
|
7138
7623
|
* data: {
|
|
7139
|
-
* nav: I18n.places.myPlace.nav
|
|
7624
|
+
* nav: I18n.places.myPlace.nav
|
|
7140
7625
|
* }
|
|
7141
7626
|
* })
|
|
7142
7627
|
*/
|
|
@@ -7807,7 +8292,6 @@
|
|
|
7807
8292
|
exports.AbstractListInputComponent = AbstractListInputComponent;
|
|
7808
8293
|
exports.AbstractPlaceNavigationComponent = AbstractPlaceNavigationComponent;
|
|
7809
8294
|
exports.AbstractPopStateNavigation = AbstractPopStateNavigation;
|
|
7810
|
-
exports.AbstractPopupMenuComponent = AbstractPopupMenuComponent;
|
|
7811
8295
|
exports.AbstractValueInputComponent = AbstractValueInputComponent;
|
|
7812
8296
|
exports.Activity = Activity;
|
|
7813
8297
|
exports.ActivityActionsComponent = ActivityActionsComponent;
|
|
@@ -7829,11 +8313,13 @@
|
|
|
7829
8313
|
exports.CheckboxInputComponent = CheckboxInputComponent;
|
|
7830
8314
|
exports.ColumnModel = ColumnModel;
|
|
7831
8315
|
exports.ColumnTemplateDirective = ColumnTemplateDirective;
|
|
7832
|
-
exports.CommandBarComponent = CommandBarComponent;
|
|
7833
8316
|
exports.CommandComponent = CommandComponent;
|
|
7834
|
-
exports.CommandContainer = CommandContainer;
|
|
7835
8317
|
exports.CommandDirective = CommandDirective;
|
|
7836
8318
|
exports.CommandFaceComponent = CommandFaceComponent;
|
|
8319
|
+
exports.CommandGroup = exports.ɵbo;
|
|
8320
|
+
exports.CommandGroupComponent = CommandGroupComponent;
|
|
8321
|
+
exports.CommandGroupMenuRendererComponent = CommandGroupMenuRendererComponent;
|
|
8322
|
+
exports.CommandGroupRendererComponent = CommandGroupRendererComponent;
|
|
7837
8323
|
exports.ComponentCellRendererPortalRef = ComponentCellRendererPortalRef;
|
|
7838
8324
|
exports.ComponentsModule = ComponentsModule;
|
|
7839
8325
|
exports.ConfirmThenDialogComponent = ConfirmThenDialogComponent;
|
|
@@ -7855,6 +8341,7 @@
|
|
|
7855
8341
|
exports.EditorControlColumnModel = EditorControlColumnModel;
|
|
7856
8342
|
exports.EmptyStateComponent = EmptyStateComponent;
|
|
7857
8343
|
exports.EventCleanUpSession = EventCleanUpSession;
|
|
8344
|
+
exports.FlexComponent = FlexComponent;
|
|
7858
8345
|
exports.FocusBinding = FocusBinding;
|
|
7859
8346
|
exports.FocusBindingDirective = FocusBindingDirective;
|
|
7860
8347
|
exports.FocusBindingFactory = FocusBindingFactory;
|
|
@@ -7865,7 +8352,7 @@
|
|
|
7865
8352
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
7866
8353
|
exports.InteractionContextTriggerFor = InteractionContextTriggerFor;
|
|
7867
8354
|
exports.InteractionModule = InteractionModule;
|
|
7868
|
-
exports.InteractionService = exports.ɵ
|
|
8355
|
+
exports.InteractionService = exports.ɵci;
|
|
7869
8356
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
7870
8357
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
7871
8358
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
@@ -7886,7 +8373,7 @@
|
|
|
7886
8373
|
exports.PlaceComponentDeactivationHandler = PlaceComponentDeactivationHandler;
|
|
7887
8374
|
exports.PlaceDefinition = PlaceDefinition;
|
|
7888
8375
|
exports.PlaceGuard = PlaceGuard;
|
|
7889
|
-
exports.PlaceHistory = exports.ɵ
|
|
8376
|
+
exports.PlaceHistory = exports.ɵcl;
|
|
7890
8377
|
exports.PlaceModule = PlaceModule;
|
|
7891
8378
|
exports.PlaceOutletComponent = PlaceOutletComponent;
|
|
7892
8379
|
exports.PlaceRouter = PlaceRouter;
|
|
@@ -7895,7 +8382,6 @@
|
|
|
7895
8382
|
exports.PopStateNavigation = PopStateNavigation;
|
|
7896
8383
|
exports.PopupInteractionContextComponent = PopupInteractionContextComponent;
|
|
7897
8384
|
exports.PopupMenuComponent = PopupMenuComponent;
|
|
7898
|
-
exports.PopupMenuRendererComponent = PopupMenuRendererComponent;
|
|
7899
8385
|
exports.PropertyColumnModel = PropertyColumnModel;
|
|
7900
8386
|
exports.ROUTE_PARAMETER_LIST_KEY = ROUTE_PARAMETER_LIST_KEY;
|
|
7901
8387
|
exports.RemoveLastInteractionFromUrlNavigationSession = RemoveLastInteractionFromUrlNavigationSession;
|
|
@@ -7908,6 +8394,7 @@
|
|
|
7908
8394
|
exports.SelectInputActivity = SelectInputActivity;
|
|
7909
8395
|
exports.SelectInputComponent = SelectInputComponent;
|
|
7910
8396
|
exports.SelectionColumnModel = SelectionColumnModel;
|
|
8397
|
+
exports.SeparatorComponent = SeparatorComponent;
|
|
7911
8398
|
exports.SidePlaceNavigationComponent = SidePlaceNavigationComponent;
|
|
7912
8399
|
exports.StringInputActivity = StringInputActivity;
|
|
7913
8400
|
exports.StringInputComponent = StringInputComponent;
|
|
@@ -7924,6 +8411,7 @@
|
|
|
7924
8411
|
exports.TableRowMenuComponent = TableRowMenuComponent;
|
|
7925
8412
|
exports.TemplateCellRendererPortalRef = TemplateCellRendererPortalRef;
|
|
7926
8413
|
exports.TextInputComponent = TextInputComponent;
|
|
8414
|
+
exports.ToolBarComponent = ToolBarComponent;
|
|
7927
8415
|
exports.UrlService = UrlService;
|
|
7928
8416
|
exports.VerticalFocusContainerComponent = VerticalFocusContainerComponent;
|
|
7929
8417
|
exports.Visit = Visit;
|
|
@@ -7951,48 +8439,50 @@
|
|
|
7951
8439
|
exports.ɵbj = TableHeaderCellRendererComponent;
|
|
7952
8440
|
exports.ɵbl = SectionHeaderComponent;
|
|
7953
8441
|
exports.ɵbm = TableRowMenuComponent;
|
|
7954
|
-
exports.ɵbn =
|
|
7955
|
-
exports.ɵbo = CommandContainer;
|
|
8442
|
+
exports.ɵbn = ToolBarComponent;
|
|
7956
8443
|
exports.ɵbp = CommandComponent;
|
|
7957
8444
|
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 =
|
|
8445
|
+
exports.ɵbr = CommandGroupComponent;
|
|
8446
|
+
exports.ɵbs = CommandFaceComponent;
|
|
8447
|
+
exports.ɵbt = MoreMenuComponent;
|
|
8448
|
+
exports.ɵbu = SeparatorComponent;
|
|
8449
|
+
exports.ɵbv = FlexComponent;
|
|
8450
|
+
exports.ɵbw = CommandGroupMenuRendererComponent;
|
|
8451
|
+
exports.ɵbx = CommandGroupRendererComponent;
|
|
8452
|
+
exports.ɵby = PlaceModule;
|
|
8453
|
+
exports.ɵbz = ComponentsModule;
|
|
7967
8454
|
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.ɵ
|
|
8455
|
+
exports.ɵca = EmptyStateComponent;
|
|
8456
|
+
exports.ɵcb = BusyOverlayComponent;
|
|
8457
|
+
exports.ɵcc = PlaceOutletComponent;
|
|
8458
|
+
exports.ɵcd = leftRightPlaceAnimation;
|
|
8459
|
+
exports.ɵce = LEFT_RIGHT_PLACE_ANIMATION;
|
|
8460
|
+
exports.ɵcf = AUP_PLACE_CONFIG;
|
|
8461
|
+
exports.ɵch = PlaceRouter;
|
|
8462
|
+
exports.ɵcj = ModalInteractionContextFactory;
|
|
8463
|
+
exports.ɵck = UrlService;
|
|
8464
|
+
exports.ɵcm = TabbedPlaceNavigationComponent;
|
|
8465
|
+
exports.ɵcn = AbstractPlaceNavigationComponent;
|
|
8466
|
+
exports.ɵco = ListPlaceNavComponent;
|
|
8467
|
+
exports.ɵcp = SidePlaceNavigationComponent;
|
|
8468
|
+
exports.ɵcq = InteractionModule;
|
|
8469
|
+
exports.ɵcr = ActivityContainerComponent;
|
|
8470
|
+
exports.ɵcs = AbstractInteractionContext;
|
|
8471
|
+
exports.ɵct = ActivityOutletComponent;
|
|
8472
|
+
exports.ɵcu = ConfirmationDialogComponent;
|
|
8473
|
+
exports.ɵcv = ACTIVITY_DATA;
|
|
8474
|
+
exports.ɵcw = Activity;
|
|
8475
|
+
exports.ɵcy = ConfirmThenDialogComponent;
|
|
8476
|
+
exports.ɵcz = AlertDialogComponent;
|
|
7989
8477
|
exports.ɵd = DisposableComponent;
|
|
7990
|
-
exports.ɵ
|
|
7991
|
-
exports.ɵ
|
|
7992
|
-
exports.ɵ
|
|
7993
|
-
exports.ɵ
|
|
7994
|
-
exports.ɵ
|
|
7995
|
-
exports.ɵ
|
|
8478
|
+
exports.ɵdb = InPlaceInteractionContextComponent;
|
|
8479
|
+
exports.ɵdc = AddItemInteractionContextComponent;
|
|
8480
|
+
exports.ɵdd = ActivityActionsComponent;
|
|
8481
|
+
exports.ɵde = PopupInteractionContextComponent;
|
|
8482
|
+
exports.ɵdf = StringInputActivity;
|
|
8483
|
+
exports.ɵdg = AbstractInputActivity;
|
|
8484
|
+
exports.ɵdh = SelectInputActivity;
|
|
8485
|
+
exports.ɵdi = InteractionContextTriggerFor;
|
|
7996
8486
|
exports.ɵe = FocusBindingFactory;
|
|
7997
8487
|
exports.ɵf = ComponentsModule;
|
|
7998
8488
|
exports.ɵg = AbstractInputComponent;
|