@coolon/angular-ui-powerups 2.0.0-alpha.26 → 2.0.0-alpha.28

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.
Files changed (119) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/assets/commands.scss +3 -0
  3. package/assets/icons.scss +30 -0
  4. package/assets/styles.scss +2 -0
  5. package/bundles/coolon-angular-ui-powerups.umd.js +574 -149
  6. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  7. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  8. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  9. package/coolon-angular-ui-powerups.d.ts +42 -34
  10. package/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/coolon-angular-ui-powerups.js +40 -32
  12. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  13. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  14. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  15. package/esm2015/lib/components/card-container/card-container.component.js +1 -1
  16. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
  17. package/esm2015/lib/components/commands/command-bar.component.js +51 -0
  18. package/esm2015/lib/components/commands/command-bar.component.js.map +1 -0
  19. package/esm2015/lib/components/commands/command-bar.component.metadata.json +1 -0
  20. package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +1 -0
  21. package/esm2015/lib/components/commands/command-container.js +20 -0
  22. package/esm2015/lib/components/commands/command-container.js.map +1 -0
  23. package/esm2015/lib/components/commands/command-container.metadata.json +1 -0
  24. package/esm2015/lib/components/commands/command-face/command-face.component.js +91 -0
  25. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -0
  26. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -0
  27. package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
  28. package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
  29. package/esm2015/lib/components/commands/command-face.js +9 -1
  30. package/esm2015/lib/components/commands/command-face.js.map +1 -1
  31. package/esm2015/lib/components/commands/command.component.js +38 -0
  32. package/esm2015/lib/components/commands/command.component.js.map +1 -0
  33. package/esm2015/lib/components/commands/command.component.metadata.json +1 -0
  34. package/esm2015/lib/components/commands/command.component.ngfactory.js.map +1 -0
  35. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +50 -0
  36. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +1 -0
  37. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +1 -0
  38. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
  39. package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +35 -0
  40. package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +1 -0
  41. package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +1 -0
  42. package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +1 -0
  43. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +46 -0
  44. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +1 -0
  45. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +1 -0
  46. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
  47. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +62 -0
  48. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
  49. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +1 -0
  50. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
  51. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +1 -0
  52. package/esm2015/lib/components/components.module.js +23 -2
  53. package/esm2015/lib/components/components.module.js.map +1 -1
  54. package/esm2015/lib/components/components.module.metadata.json +1 -1
  55. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  56. package/esm2015/lib/components/icon/icon.component.js +17 -4
  57. package/esm2015/lib/components/icon/icon.component.js.map +1 -1
  58. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  59. package/esm2015/lib/components/index.js +8 -0
  60. package/esm2015/lib/components/index.js.map +1 -1
  61. package/esm2015/lib/components/index.metadata.json +1 -1
  62. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  63. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  64. package/esm5/coolon-angular-ui-powerups.js +40 -32
  65. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  66. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  67. package/esm5/lib/components/card-container/card-container.component.js +1 -1
  68. package/esm5/lib/components/commands/command-bar.component.js +31 -0
  69. package/esm5/lib/components/commands/command-bar.component.js.map +1 -0
  70. package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +1 -0
  71. package/esm5/lib/components/commands/command-container.js +30 -0
  72. package/esm5/lib/components/commands/command-container.js.map +1 -0
  73. package/esm5/lib/components/commands/command-face/command-face.component.js +122 -0
  74. package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -0
  75. package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
  76. package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
  77. package/esm5/lib/components/commands/command-face.js +13 -1
  78. package/esm5/lib/components/commands/command-face.js.map +1 -1
  79. package/esm5/lib/components/commands/command.component.js +41 -0
  80. package/esm5/lib/components/commands/command.component.js.map +1 -0
  81. package/esm5/lib/components/commands/command.component.ngfactory.js.map +1 -0
  82. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +57 -0
  83. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +1 -0
  84. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
  85. package/esm5/lib/components/commands/popup-menu/more-menu.component.js +30 -0
  86. package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +1 -0
  87. package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +1 -0
  88. package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +42 -0
  89. package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +1 -0
  90. package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
  91. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +66 -0
  92. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
  93. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
  94. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +1 -0
  95. package/esm5/lib/components/components.module.js +23 -2
  96. package/esm5/lib/components/components.module.js.map +1 -1
  97. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  98. package/esm5/lib/components/icon/icon.component.js +15 -3
  99. package/esm5/lib/components/icon/icon.component.js.map +1 -1
  100. package/esm5/lib/components/index.js +8 -0
  101. package/esm5/lib/components/index.js.map +1 -1
  102. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  103. package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
  104. package/fesm2015/coolon-angular-ui-powerups.js +459 -75
  105. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  106. package/fesm5/coolon-angular-ui-powerups.js +510 -99
  107. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  108. package/lib/components/commands/command-bar.component.d.ts +10 -0
  109. package/lib/components/commands/command-container.d.ts +15 -0
  110. package/lib/components/commands/command-face/command-face.component.d.ts +29 -0
  111. package/lib/components/commands/command-face.d.ts +4 -2
  112. package/lib/components/commands/command.component.d.ts +15 -0
  113. package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +15 -0
  114. package/lib/components/commands/popup-menu/more-menu.component.d.ts +8 -0
  115. package/lib/components/commands/popup-menu/popup-menu.component.d.ts +14 -0
  116. package/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.d.ts +21 -0
  117. package/lib/components/icon/icon.component.d.ts +15 -0
  118. package/lib/components/index.d.ts +8 -0
  119. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { __extends, __decorate, __metadata, __param, __assign, __awaiter, __generator, __spread } from 'tslib';
2
2
  import { DOCUMENT, CommonModule, Location } from '@angular/common';
3
- import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, ContentChild, TemplateRef, Component, Self, HostBinding, EventEmitter, Output, ChangeDetectorRef, ContentChildren, QueryList, ViewContainerRef, ViewChild, InjectionToken, Injector, ComponentFactoryResolver, ViewChildren, Optional, SkipSelf } from '@angular/core';
3
+ import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, ContentChild, TemplateRef, Component, forwardRef, Optional, HostBinding, ViewEncapsulation, EventEmitter, Output, ViewChild, Self, ChangeDetectorRef, ContentChildren, QueryList, ViewContainerRef, InjectionToken, Injector, ComponentFactoryResolver, ViewChildren, SkipSelf } from '@angular/core';
4
4
  import { FormsModule } from '@angular/forms';
5
5
  import { MatFormFieldModule } from '@angular/material/form-field';
6
6
  import { MatInputModule } from '@angular/material/input';
@@ -13,15 +13,16 @@ import { MatAutocompleteModule } from '@angular/material/autocomplete';
13
13
  import { MatButtonModule } from '@angular/material/button';
14
14
  import { MatCheckboxModule } from '@angular/material/checkbox';
15
15
  import { MatIconModule } from '@angular/material/icon';
16
- import { MatMenuTrigger, _MatMenuDirectivesModule, MatMenuModule } from '@angular/material/menu';
16
+ import { MatMenu, MatMenuTrigger, _MatMenuDirectivesModule, MatMenuModule } from '@angular/material/menu';
17
17
  import { MatTableModule } from '@angular/material/table';
18
18
  import { MatTooltipModule } from '@angular/material/tooltip';
19
19
  import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
20
20
  import { fas } from '@fortawesome/free-solid-svg-icons';
21
- import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, FocusManager, EventListenerList, Form, MutableListModel, Guard, Binding, DebugContext, MutableValueModel, ListModel, StoreInListModel, ValueModel, StoreInValueModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Functions } from '@coolon/pectin';
21
+ import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, MutableListModel, Disposable, MutableValueModel, StoreInValueModel, ListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, StoreInListModel, ValueModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Functions } from '@coolon/pectin';
22
+ import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
22
23
  import ___default, { isEqual, isNil } from 'lodash';
24
+ import { Enum } from 'typescript-string-enums';
23
25
  import { assert as assert$1, Opts, lang as lang$1, Klass } from '@coolon/typescript-utilities';
24
- import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
25
26
  import produce from 'immer';
26
27
  import { FlexModule, GridModule } from '@angular/flex-layout';
27
28
  import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
@@ -408,13 +409,486 @@ var CardContainerComponent = /** @class */ (function (_super) {
408
409
  Component({
409
410
  selector: 'aup-card-container',
410
411
  template: "<div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-icon icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n\n</div>\n",
411
- styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
412
+ styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white;--command-face-icon-gap:8px;--aup-icon-width:24px;--aup-fa-icon-width:18px}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}aup-icon{--fa-icon-offset:calc((var(--aup-icon-width) - var(--aup-fa-icon-width)) / 2);position:relative}aup-icon fa-icon .svg-inline--fa{position:absolute;top:var(--fa-icon-offset);left:var(--fa-icon-offset);width:var(--aup-fa-icon-width)!important;height:var(--aup-fa-icon-width)!important}.mat-menu-panel aup-icon .svg-inline--fa{opacity:.54}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
412
413
  }),
413
414
  __metadata("design:paramtypes", [])
414
415
  ], CardContainerComponent);
415
416
  return CardContainerComponent;
416
417
  }(DisposableComponent));
417
418
 
419
+ var CommandFace;
420
+ (function (CommandFace) {
421
+ var Position;
422
+ (function (Position) {
423
+ Position["START"] = "start";
424
+ Position["END"] = "end";
425
+ })(Position = CommandFace.Position || (CommandFace.Position = {}));
426
+ var Adapter = /** @class */ (function () {
427
+ function Adapter(face) {
428
+ this.face = face;
429
+ }
430
+ Object.defineProperty(Adapter.prototype, "text", {
431
+ get: function () {
432
+ return ___default.isFunction(this.face.text) ? this.face.text() : undefined;
433
+ },
434
+ enumerable: true,
435
+ configurable: true
436
+ });
437
+ Object.defineProperty(Adapter.prototype, "icon", {
438
+ get: function () {
439
+ return ___default.isFunction(this.face.icon) ? this.face.icon() : undefined;
440
+ },
441
+ enumerable: true,
442
+ configurable: true
443
+ });
444
+ Object.defineProperty(Adapter.prototype, "iconPosition", {
445
+ get: function () {
446
+ return ___default.isFunction(this.face.iconPosition) ? this.face.iconPosition() : undefined;
447
+ },
448
+ enumerable: true,
449
+ configurable: true
450
+ });
451
+ Object.defineProperty(Adapter.prototype, "tooltip", {
452
+ get: function () {
453
+ return ___default.isFunction(this.face.tooltip) ? this.face.tooltip() : undefined;
454
+ },
455
+ enumerable: true,
456
+ configurable: true
457
+ });
458
+ Object.defineProperty(Adapter.prototype, "iconPositionStart", {
459
+ get: function () {
460
+ return this.iconPosition === CommandFace.Position.START;
461
+ },
462
+ enumerable: true,
463
+ configurable: true
464
+ });
465
+ Object.defineProperty(Adapter.prototype, "iconPositionEnd", {
466
+ get: function () {
467
+ return this.iconPosition === CommandFace.Position.END;
468
+ },
469
+ enumerable: true,
470
+ configurable: true
471
+ });
472
+ Object.defineProperty(Adapter.prototype, "destructive", {
473
+ get: function () {
474
+ return ___default.isFunction(this.face.destructive) ? this.face.destructive() : false;
475
+ },
476
+ enumerable: true,
477
+ configurable: true
478
+ });
479
+ __decorate([
480
+ Memoize(),
481
+ __metadata("design:type", Object),
482
+ __metadata("design:paramtypes", [])
483
+ ], Adapter.prototype, "text", null);
484
+ __decorate([
485
+ Memoize(),
486
+ __metadata("design:type", Object),
487
+ __metadata("design:paramtypes", [])
488
+ ], Adapter.prototype, "icon", null);
489
+ __decorate([
490
+ Memoize(),
491
+ __metadata("design:type", Object),
492
+ __metadata("design:paramtypes", [])
493
+ ], Adapter.prototype, "iconPosition", null);
494
+ __decorate([
495
+ Memoize(),
496
+ __metadata("design:type", Object),
497
+ __metadata("design:paramtypes", [])
498
+ ], Adapter.prototype, "tooltip", null);
499
+ __decorate([
500
+ Memoize(),
501
+ __metadata("design:type", Boolean),
502
+ __metadata("design:paramtypes", [])
503
+ ], Adapter.prototype, "iconPositionStart", null);
504
+ __decorate([
505
+ Memoize(),
506
+ __metadata("design:type", Boolean),
507
+ __metadata("design:paramtypes", [])
508
+ ], Adapter.prototype, "iconPositionEnd", null);
509
+ __decorate([
510
+ Memoize(),
511
+ __metadata("design:type", Boolean),
512
+ __metadata("design:paramtypes", [])
513
+ ], Adapter.prototype, "destructive", null);
514
+ return Adapter;
515
+ }());
516
+ CommandFace.Adapter = Adapter;
517
+ })(CommandFace || (CommandFace = {}));
518
+
519
+ var CommandContainer = /** @class */ (function (_super) {
520
+ __extends(CommandContainer, _super);
521
+ function CommandContainer() {
522
+ var _this = _super.call(this) || this;
523
+ _this._commandRegistrations = new MutableListModel();
524
+ return _this;
525
+ }
526
+ Object.defineProperty(CommandContainer.prototype, "commandRegistrations", {
527
+ get: function () {
528
+ return this._commandRegistrations.readonly;
529
+ },
530
+ enumerable: true,
531
+ configurable: true
532
+ });
533
+ CommandContainer.prototype.registerCommand = function (command, face) {
534
+ var _this = this;
535
+ var registration = { command: command, faceAdapter: new CommandFace.Adapter(face) };
536
+ this._commandRegistrations.push(registration);
537
+ return Disposable.disposableThatRuns(function () { return _this._commandRegistrations.remove(registration); });
538
+ };
539
+ CommandContainer.prototype.getDefaultIconPosition = function () {
540
+ return CommandFace.Position.START;
541
+ };
542
+ return CommandContainer;
543
+ }(GarbageCollector));
544
+
545
+ /**
546
+ *
547
+ */
548
+ var CommandBarComponent = /** @class */ (function (_super) {
549
+ __extends(CommandBarComponent, _super);
550
+ function CommandBarComponent() {
551
+ return _super.call(this) || this;
552
+ }
553
+ CommandBarComponent_1 = CommandBarComponent;
554
+ CommandBarComponent.prototype.ngOnInit = function () {
555
+ };
556
+ CommandBarComponent.prototype.getButtonColor = function (registration) {
557
+ return registration.faceAdapter.destructive ? 'warn' : undefined;
558
+ };
559
+ var CommandBarComponent_1;
560
+ CommandBarComponent = CommandBarComponent_1 = __decorate([
561
+ Component({
562
+ selector: 'aup-command-bar',
563
+ template: "\n <ng-container *ngFor=\"let registration of commandRegistrations.value\">\n <button *ngIf=\"registration.faceAdapter.icon && !registration.faceAdapter.text\"\n mat-icon-button\n [color]=\"getButtonColor(registration)\"\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.faceAdapter.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n <button *ngIf=\"registration.faceAdapter.text\"\n [color]=\"getButtonColor(registration)\"\n mat-button\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n </ng-container>\n ",
564
+ providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return CommandBarComponent_1; }) }],
565
+ styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
566
+ }),
567
+ __metadata("design:paramtypes", [])
568
+ ], CommandBarComponent);
569
+ return CommandBarComponent;
570
+ }(CommandContainer));
571
+
572
+ /**
573
+ *
574
+ */
575
+ var CommandFaceComponent = /** @class */ (function (_super) {
576
+ __extends(CommandFaceComponent, _super);
577
+ function CommandFaceComponent(commandContainer) {
578
+ var _this = _super.call(this) || this;
579
+ _this.commandContainer = commandContainer;
580
+ _this.faceModel = new MutableValueModel();
581
+ _this.ignoreIcon = false;
582
+ _this.ignoreText = false;
583
+ _this.includeMissingIconInLayout = false;
584
+ var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
585
+ // overkill /c: when all you have is a hammer...
586
+ var faceAdapter = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); });
587
+ _this.iconModel = faceAdapter.pluck('icon');
588
+ _this.textModel = faceAdapter.pluck('text');
589
+ _this.positionModel = faceAdapter.pluck('iconPosition');
590
+ _this.destructiveModel = faceAdapter.pluck('destructive');
591
+ return _this;
592
+ }
593
+ Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
594
+ get: function () {
595
+ return this.includeMissingIconInLayout && !this.iconModel.value;
596
+ },
597
+ enumerable: true,
598
+ configurable: true
599
+ });
600
+ CommandFaceComponent.prototype.ngOnInit = function () {
601
+ };
602
+ Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
603
+ get: function () {
604
+ var _a, _b, _c;
605
+ return (_c = (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : (_b = this.commandContainer) === null || _b === void 0 ? void 0 : _b.getDefaultIconPosition()) !== null && _c !== void 0 ? _c : CommandFace.Position.START;
606
+ },
607
+ enumerable: true,
608
+ configurable: true
609
+ });
610
+ Object.defineProperty(CommandFaceComponent.prototype, "shouldIncludeIcon", {
611
+ get: function () {
612
+ return (!this.ignoreIcon && this.iconModel.value) || this.includeMissingIconInLayout;
613
+ },
614
+ enumerable: true,
615
+ configurable: true
616
+ });
617
+ Object.defineProperty(CommandFaceComponent.prototype, "iconStart", {
618
+ get: function () {
619
+ return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.START;
620
+ },
621
+ enumerable: true,
622
+ configurable: true
623
+ });
624
+ Object.defineProperty(CommandFaceComponent.prototype, "iconEnd", {
625
+ get: function () {
626
+ return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.END;
627
+ },
628
+ enumerable: true,
629
+ configurable: true
630
+ });
631
+ Object.defineProperty(CommandFaceComponent.prototype, "text", {
632
+ get: function () {
633
+ return this.ignoreText ? undefined : this.textModel.value;
634
+ },
635
+ enumerable: true,
636
+ configurable: true
637
+ });
638
+ Object.defineProperty(CommandFaceComponent.prototype, "destructive", {
639
+ get: function () {
640
+ return this.destructiveModel.value;
641
+ },
642
+ enumerable: true,
643
+ configurable: true
644
+ });
645
+ CommandFaceComponent.ctorParameters = function () { return [
646
+ { type: CommandContainer, decorators: [{ type: Optional }] }
647
+ ]; };
648
+ __decorate([
649
+ Input('face'), StoreInValueModel('faceModel'),
650
+ __metadata("design:type", Object)
651
+ ], CommandFaceComponent.prototype, "_rawFace", void 0);
652
+ __decorate([
653
+ Input(),
654
+ __metadata("design:type", Object)
655
+ ], CommandFaceComponent.prototype, "ignoreIcon", void 0);
656
+ __decorate([
657
+ Input(),
658
+ __metadata("design:type", Object)
659
+ ], CommandFaceComponent.prototype, "ignoreText", void 0);
660
+ __decorate([
661
+ Input(),
662
+ __metadata("design:type", Object)
663
+ ], CommandFaceComponent.prototype, "includeMissingIconInLayout", void 0);
664
+ __decorate([
665
+ HostBinding('class.hide-icon'),
666
+ __metadata("design:type", Object),
667
+ __metadata("design:paramtypes", [])
668
+ ], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
669
+ __decorate([
670
+ HostBinding('class.destructive'),
671
+ __metadata("design:type", Boolean),
672
+ __metadata("design:paramtypes", [])
673
+ ], CommandFaceComponent.prototype, "destructive", null);
674
+ CommandFaceComponent = __decorate([
675
+ Component({
676
+ selector: 'aup-command-face',
677
+ template: "<aup-icon *ngIf=\"iconStart\" [icon]=\"iconModel.value\"></aup-icon>\n<span *ngIf=\"this.text\">{{this.text}}</span>\n<aup-icon *ngIf=\"iconEnd\" [icon]=\"iconModel.value\"></aup-icon>\n",
678
+ encapsulation: ViewEncapsulation.None,
679
+ styles: ["aup-command-face{--icon-gap:var(--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}"]
680
+ }),
681
+ __param(0, Optional()),
682
+ __metadata("design:paramtypes", [CommandContainer])
683
+ ], CommandFaceComponent);
684
+ return CommandFaceComponent;
685
+ }(DisposableComponent));
686
+
687
+ /**
688
+ *
689
+ */
690
+ var CommandComponent = /** @class */ (function (_super) {
691
+ __extends(CommandComponent, _super);
692
+ function CommandComponent(commandContainer) {
693
+ var _this = _super.call(this) || this;
694
+ _this.commandContainer = commandContainer;
695
+ return _this;
696
+ }
697
+ CommandComponent.prototype.ngOnInit = function () {
698
+ this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
699
+ };
700
+ CommandComponent.ctorParameters = function () { return [
701
+ { type: CommandContainer }
702
+ ]; };
703
+ __decorate([
704
+ Input(), TrackExternal(),
705
+ __metadata("design:type", Command)
706
+ ], CommandComponent.prototype, "command", void 0);
707
+ __decorate([
708
+ Input(),
709
+ __metadata("design:type", Object)
710
+ ], CommandComponent.prototype, "face", void 0);
711
+ CommandComponent = __decorate([
712
+ Component({
713
+ selector: 'aup-command',
714
+ template: ""
715
+ }),
716
+ __metadata("design:paramtypes", [CommandContainer])
717
+ ], CommandComponent);
718
+ return CommandComponent;
719
+ }(DisposableComponent));
720
+
721
+ /**
722
+ *
723
+ */
724
+ var PopupMenuRendererComponent = /** @class */ (function (_super) {
725
+ __extends(PopupMenuRendererComponent, _super);
726
+ function PopupMenuRendererComponent() {
727
+ var _this = _super.call(this) || this;
728
+ _this.xPosition = 'after';
729
+ _this.yPosition = 'below';
730
+ _this.commandExecuted = new EventEmitter();
731
+ var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
732
+ var registrations = chain(_this.commandRegistrations);
733
+ var iconCount = registrations.select(function (r) { return !!r.faceAdapter.icon; }).count();
734
+ _this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(registrations.length)).areTruthy();
735
+ return _this;
736
+ }
737
+ PopupMenuRendererComponent.prototype.ngOnInit = function () {
738
+ };
739
+ PopupMenuRendererComponent.prototype.getPopupMenuCommandFor = function (item) {
740
+ var _this = this;
741
+ var when = Dsl.disposeWith(this).when;
742
+ when(item.command.busy).becomesFalsey(function () {
743
+ _this.commandExecuted.emit();
744
+ });
745
+ return item.command;
746
+ };
747
+ PopupMenuRendererComponent.prototype.getButtonColor = function (registration) {
748
+ return registration.faceAdapter.destructive ? 'warn' : undefined;
749
+ };
750
+ __decorate([
751
+ Input(), TrackExternal(),
752
+ __metadata("design:type", ListModel)
753
+ ], PopupMenuRendererComponent.prototype, "commandRegistrations", void 0);
754
+ __decorate([
755
+ Input(),
756
+ __metadata("design:type", String)
757
+ ], PopupMenuRendererComponent.prototype, "xPosition", void 0);
758
+ __decorate([
759
+ Input(),
760
+ __metadata("design:type", String)
761
+ ], PopupMenuRendererComponent.prototype, "yPosition", void 0);
762
+ __decorate([
763
+ Output(),
764
+ __metadata("design:type", Object)
765
+ ], PopupMenuRendererComponent.prototype, "commandExecuted", void 0);
766
+ __decorate([
767
+ ViewChild(MatMenu),
768
+ __metadata("design:type", MatMenu)
769
+ ], PopupMenuRendererComponent.prototype, "matMenu", void 0);
770
+ PopupMenuRendererComponent = __decorate([
771
+ Component({
772
+ selector: 'aup-popup-menu-renderer',
773
+ template: "<mat-menu [xPosition]=\"xPosition\" [yPosition]=\"yPosition\" >\n <button *ngFor=\"let registration of commandRegistrations.value\"\n mat-menu-item\n [pectinCommand]=\"getPopupMenuCommandFor(registration)\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\" [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n</mat-menu>\n",
774
+ styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
775
+ }),
776
+ __metadata("design:paramtypes", [])
777
+ ], PopupMenuRendererComponent);
778
+ return PopupMenuRendererComponent;
779
+ }(DisposableComponent));
780
+
781
+ /**
782
+ *
783
+ */
784
+ var AbstractPopupMenuComponent = /** @class */ (function (_super) {
785
+ __extends(AbstractPopupMenuComponent, _super);
786
+ function AbstractPopupMenuComponent() {
787
+ var _this = _super.call(this) || this;
788
+ _this.xPosition = 'after';
789
+ _this.yPosition = 'below';
790
+ return _this;
791
+ }
792
+ Object.defineProperty(AbstractPopupMenuComponent.prototype, "matMenuComponent", {
793
+ get: function () {
794
+ var _a;
795
+ return (_a = this.popupMenu) === null || _a === void 0 ? void 0 : _a.matMenu;
796
+ },
797
+ enumerable: true,
798
+ configurable: true
799
+ });
800
+ AbstractPopupMenuComponent.prototype.closeMenu = function () {
801
+ this.menuTrigger.closeMenu();
802
+ };
803
+ AbstractPopupMenuComponent.prototype.getButtonColor = function (registration) {
804
+ return registration.faceAdapter.destructive ? 'warn' : undefined;
805
+ };
806
+ __decorate([
807
+ Input(),
808
+ __metadata("design:type", String)
809
+ ], AbstractPopupMenuComponent.prototype, "xPosition", void 0);
810
+ __decorate([
811
+ Input(),
812
+ __metadata("design:type", String)
813
+ ], AbstractPopupMenuComponent.prototype, "yPosition", void 0);
814
+ __decorate([
815
+ ViewChild(PopupMenuRendererComponent),
816
+ __metadata("design:type", PopupMenuRendererComponent)
817
+ ], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
818
+ __decorate([
819
+ ViewChild(MatMenuTrigger),
820
+ __metadata("design:type", MatMenuTrigger)
821
+ ], AbstractPopupMenuComponent.prototype, "menuTrigger", void 0);
822
+ AbstractPopupMenuComponent = __decorate([
823
+ Component({
824
+ selector: 'aup-abstract-popup-menu',
825
+ template: ''
826
+ }),
827
+ __metadata("design:paramtypes", [])
828
+ ], AbstractPopupMenuComponent);
829
+ return AbstractPopupMenuComponent;
830
+ }(CommandContainer));
831
+
832
+ /**
833
+ *
834
+ */
835
+ var PopupMenuComponent = /** @class */ (function (_super) {
836
+ __extends(PopupMenuComponent, _super);
837
+ function PopupMenuComponent() {
838
+ var _this = _super.call(this) || this;
839
+ _this.faceModel = new MutableValueModel();
840
+ var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
841
+ var faceAdapterModel = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); });
842
+ _this.faceTooltipModel = faceAdapterModel.pluck('tooltip');
843
+ return _this;
844
+ }
845
+ PopupMenuComponent_1 = PopupMenuComponent;
846
+ PopupMenuComponent.prototype.getTooltip = function () {
847
+ return this.faceTooltipModel.value;
848
+ };
849
+ PopupMenuComponent.prototype.ngOnInit = function () {
850
+ };
851
+ var PopupMenuComponent_1;
852
+ __decorate([
853
+ Input(), StoreInValueModel('faceModel'),
854
+ __metadata("design:type", Object)
855
+ ], PopupMenuComponent.prototype, "face", void 0);
856
+ PopupMenuComponent = PopupMenuComponent_1 = __decorate([
857
+ Component({
858
+ selector: 'aup-popup-menu',
859
+ template: "\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"getTooltip()\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\" [yPosition]=\"yPosition\"\n [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ",
860
+ providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return PopupMenuComponent_1; }) }]
861
+ }),
862
+ __metadata("design:paramtypes", [])
863
+ ], PopupMenuComponent);
864
+ return PopupMenuComponent;
865
+ }(AbstractPopupMenuComponent));
866
+
867
+ /**
868
+ *
869
+ */
870
+ var MoreMenuComponent = /** @class */ (function (_super) {
871
+ __extends(MoreMenuComponent, _super);
872
+ function MoreMenuComponent() {
873
+ return _super.call(this) || this;
874
+ }
875
+ MoreMenuComponent_1 = MoreMenuComponent;
876
+ var MoreMenuComponent_1;
877
+ __decorate([
878
+ Input(),
879
+ __metadata("design:type", String)
880
+ ], MoreMenuComponent.prototype, "tooltip", void 0);
881
+ MoreMenuComponent = MoreMenuComponent_1 = __decorate([
882
+ Component({
883
+ selector: 'aup-more-menu',
884
+ template: "\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"tooltip\">\n <mat-icon>more_vert</mat-icon>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\"\n [yPosition]=\"yPosition\" [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ",
885
+ providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return MoreMenuComponent_1; }) }]
886
+ }),
887
+ __metadata("design:paramtypes", [])
888
+ ], MoreMenuComponent);
889
+ return MoreMenuComponent;
890
+ }(AbstractPopupMenuComponent));
891
+
418
892
  var FocusContainerComponent = /** @class */ (function (_super) {
419
893
  __extends(FocusContainerComponent, _super);
420
894
  function FocusContainerComponent(focusManager) {
@@ -1174,7 +1648,10 @@ var TextInputComponent = /** @class */ (function (_super) {
1174
1648
 
1175
1649
  var IconComponent = /** @class */ (function () {
1176
1650
  function IconComponent() {
1651
+ this.allowedPrefixes = Enum.values(IconComponent_1.IconPrefix).map(function (p) { return p + ":"; });
1652
+ this.iconPrefix = IconComponent_1.IconPrefix;
1177
1653
  }
1654
+ IconComponent_1 = IconComponent;
1178
1655
  Object.defineProperty(IconComponent.prototype, "icon", {
1179
1656
  get: function () {
1180
1657
  return this._icon;
@@ -1194,25 +1671,33 @@ var IconComponent = /** @class */ (function () {
1194
1671
  if (this.prefix) {
1195
1672
  this.errorMessage = "Unknown icon \"" + iconName + "\"";
1196
1673
  }
1197
- this.errorMessage = "Unknown icon prefix \"" + this.prefix + "\"";
1674
+ this.errorMessage = "Unknown icon prefix, expected one of [" + this.allowedPrefixes.join(',') + "] got \"" + this.prefix + ":\"";
1198
1675
  },
1199
1676
  enumerable: true,
1200
1677
  configurable: true
1201
1678
  });
1679
+ var IconComponent_1;
1202
1680
  __decorate([
1203
1681
  Input(),
1204
1682
  __metadata("design:type", String),
1205
1683
  __metadata("design:paramtypes", [String])
1206
1684
  ], IconComponent.prototype, "icon", null);
1207
- IconComponent = __decorate([
1685
+ IconComponent = IconComponent_1 = __decorate([
1208
1686
  Component({
1209
1687
  selector: 'aup-icon',
1210
- template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"'svg'\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"'mat'\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"'fab'\"\n class=\"faIconWrapper\">\n <fa-icon [icon]=\"suffix\">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n",
1688
+ template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"iconPrefix.SVG\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"iconPrefix.MATERIAL\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"iconPrefix.FONT_AWESOME\"\n class=\"faIconWrapper\">\n <fa-icon [icon]=\"suffix\">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n",
1211
1689
  styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center;width:24px;height:24px}.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]
1212
1690
  })
1213
1691
  ], IconComponent);
1214
1692
  return IconComponent;
1215
1693
  }());
1694
+ (function (IconComponent) {
1695
+ IconComponent.IconPrefix = Enum({
1696
+ SVG: 'svg',
1697
+ FONT_AWESOME: 'fa',
1698
+ MATERIAL: 'mat'
1699
+ });
1700
+ })(IconComponent || (IconComponent = {}));
1216
1701
 
1217
1702
  var NoopComponent = /** @class */ (function () {
1218
1703
  function NoopComponent() {
@@ -2493,94 +2978,6 @@ var TableHeaderCellRendererComponent = /** @class */ (function () {
2493
2978
  return TableHeaderCellRendererComponent;
2494
2979
  }());
2495
2980
 
2496
- var CommandFace;
2497
- (function (CommandFace) {
2498
- var Position;
2499
- (function (Position) {
2500
- Position["START"] = "start";
2501
- Position["END"] = "end";
2502
- })(Position = CommandFace.Position || (CommandFace.Position = {}));
2503
- var Adapter = /** @class */ (function () {
2504
- function Adapter(face) {
2505
- this.face = face;
2506
- }
2507
- Object.defineProperty(Adapter.prototype, "text", {
2508
- get: function () {
2509
- return ___default.isFunction(this.face.text) ? this.face.text() : undefined;
2510
- },
2511
- enumerable: true,
2512
- configurable: true
2513
- });
2514
- Object.defineProperty(Adapter.prototype, "icon", {
2515
- get: function () {
2516
- return ___default.isFunction(this.face.icon) ? this.face.icon() : undefined;
2517
- },
2518
- enumerable: true,
2519
- configurable: true
2520
- });
2521
- Object.defineProperty(Adapter.prototype, "iconPosition", {
2522
- get: function () {
2523
- return ___default.isFunction(this.face.iconPosition) ? this.face.iconPosition() : CommandFace.Position.START;
2524
- },
2525
- enumerable: true,
2526
- configurable: true
2527
- });
2528
- Object.defineProperty(Adapter.prototype, "tooltip", {
2529
- get: function () {
2530
- return ___default.isFunction(this.face.tooltip) ? this.face.tooltip() : undefined;
2531
- },
2532
- enumerable: true,
2533
- configurable: true
2534
- });
2535
- Object.defineProperty(Adapter.prototype, "iconPositionStart", {
2536
- get: function () {
2537
- return this.iconPosition === CommandFace.Position.START;
2538
- },
2539
- enumerable: true,
2540
- configurable: true
2541
- });
2542
- Object.defineProperty(Adapter.prototype, "iconPositionEnd", {
2543
- get: function () {
2544
- return this.iconPosition === CommandFace.Position.END;
2545
- },
2546
- enumerable: true,
2547
- configurable: true
2548
- });
2549
- __decorate([
2550
- Memoize(),
2551
- __metadata("design:type", Object),
2552
- __metadata("design:paramtypes", [])
2553
- ], Adapter.prototype, "text", null);
2554
- __decorate([
2555
- Memoize(),
2556
- __metadata("design:type", Object),
2557
- __metadata("design:paramtypes", [])
2558
- ], Adapter.prototype, "icon", null);
2559
- __decorate([
2560
- Memoize(),
2561
- __metadata("design:type", Object),
2562
- __metadata("design:paramtypes", [])
2563
- ], Adapter.prototype, "iconPosition", null);
2564
- __decorate([
2565
- Memoize(),
2566
- __metadata("design:type", Object),
2567
- __metadata("design:paramtypes", [])
2568
- ], Adapter.prototype, "tooltip", null);
2569
- __decorate([
2570
- Memoize(),
2571
- __metadata("design:type", Boolean),
2572
- __metadata("design:paramtypes", [])
2573
- ], Adapter.prototype, "iconPositionStart", null);
2574
- __decorate([
2575
- Memoize(),
2576
- __metadata("design:type", Boolean),
2577
- __metadata("design:paramtypes", [])
2578
- ], Adapter.prototype, "iconPositionEnd", null);
2579
- return Adapter;
2580
- }());
2581
- CommandFace.Adapter = Adapter;
2582
- })(CommandFace || (CommandFace = {}));
2583
-
2584
2981
  var MenuItemData = /** @class */ (function (_super) {
2585
2982
  __extends(MenuItemData, _super);
2586
2983
  function MenuItemData(factory, face) {
@@ -2766,7 +3163,14 @@ var ComponentsModule = /** @class */ (function () {
2766
3163
  TableHeaderCellRendererComponent,
2767
3164
  IconComponent,
2768
3165
  SectionHeaderComponent,
2769
- TableRowMenuComponent
3166
+ TableRowMenuComponent,
3167
+ CommandBarComponent,
3168
+ CommandComponent,
3169
+ PopupMenuComponent,
3170
+ CommandFaceComponent,
3171
+ AbstractPopupMenuComponent,
3172
+ PopupMenuRendererComponent,
3173
+ MoreMenuComponent
2770
3174
  ],
2771
3175
  imports: [
2772
3176
  CommonModule,
@@ -2812,7 +3216,14 @@ var ComponentsModule = /** @class */ (function () {
2812
3216
  ColumnTemplateDirective,
2813
3217
  IconComponent,
2814
3218
  SectionHeaderComponent,
2815
- TableRowMenuComponent
3219
+ TableRowMenuComponent,
3220
+ CommandBarComponent,
3221
+ CommandComponent,
3222
+ AbstractPopupMenuComponent,
3223
+ PopupMenuComponent,
3224
+ CommandFaceComponent,
3225
+ PopupMenuRendererComponent,
3226
+ MoreMenuComponent
2816
3227
  ],
2817
3228
  providers: [
2818
3229
  FocusBindingFactory
@@ -7100,5 +7511,5 @@ function VisitParameterList(options) {
7100
7511
  * Generated bundle index. Do not edit.
7101
7512
  */
7102
7513
 
7103
- export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandDirective, CommandFace, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupInteractionContextComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0, DirectivesModule as ɵa, CommandDirective as ɵb, CardContainerComponent as ɵba, TableComponent as ɵbb, EditRowControls as ɵbc, ColumnTemplateDirective as ɵbd, DefaultCellRendererComponent as ɵbe, TableCellRendererComponent as ɵbf, SelectCellRendererComponent as ɵbg, SelectHeaderCellRendererComponent as ɵbh, DefaultHeaderCellRendererComponent as ɵbi, TableHeaderCellRendererComponent as ɵbj, IconComponent as ɵbk, SectionHeaderComponent as ɵbl, TableRowMenuComponent as ɵbm, PlaceModule as ɵbn, ComponentsModule as ɵbo, EmptyStateComponent as ɵbp, BusyOverlayComponent as ɵbq, PlaceOutletComponent as ɵbr, leftRightPlaceAnimation as ɵbs, LEFT_RIGHT_PLACE_ANIMATION as ɵbt, AUP_PLACE_CONFIG as ɵbu, PlaceRouter as ɵbw, InteractionService as ɵbx, ModalInteractionContextFactory as ɵby, UrlService as ɵbz, FocusBindingDirective as ɵc, PlaceHistory as ɵca, TabbedPlaceNavigationComponent as ɵcb, AbstractPlaceNavigationComponent as ɵcc, ListPlaceNavComponent as ɵcd, SidePlaceNavigationComponent as ɵce, InteractionModule as ɵcf, ActivityContainerComponent as ɵcg, AbstractInteractionContext as ɵch, ActivityOutletComponent as ɵci, ConfirmationDialogComponent as ɵcj, ACTIVITY_DATA as ɵck, Activity as ɵcl, ConfirmThenDialogComponent as ɵcn, AlertDialogComponent as ɵco, InPlaceInteractionContextComponent as ɵcq, AddItemInteractionContextComponent as ɵcr, ActivityActionsComponent as ɵcs, PopupInteractionContextComponent as ɵct, StringInputActivity as ɵcu, AbstractInputActivity as ɵcv, SelectInputActivity as ɵcw, InteractionContextTriggerFor as ɵcx, DisposableComponent as ɵd, FocusBindingFactory as ɵe, ComponentsModule as ɵf, AbstractInputComponent as ɵg, AbstractValueInputComponent as ɵh, AbstractListInputComponent as ɵi, NumberInputComponent as ɵj, StringInputComponent as ɵk, TextInputComponent as ɵl, PasswordInputComponent as ɵm, SelectInputComponent as ɵn, MultipleSelectInputComponent as ɵo, AutocompleteInputComponent as ɵp, CheckboxInputComponent as ɵq, ScrollContainerComponent as ɵr, NoopComponent as ɵs, SwitchCaseOption as ɵt, SwitchCaseWhenDirective as ɵu, SwitchCaseDefaultDirective as ɵv, SwitchCaseComponent as ɵw, FocusContainerComponent as ɵx, VerticalFocusContainerComponent as ɵy, FocusableComponent as ɵz };
7514
+ export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandBarComponent, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0, DirectivesModule as ɵa, CommandDirective as ɵb, CardContainerComponent as ɵba, TableComponent as ɵbb, EditRowControls as ɵbc, ColumnTemplateDirective as ɵbd, DefaultCellRendererComponent as ɵbe, TableCellRendererComponent as ɵbf, SelectCellRendererComponent as ɵbg, SelectHeaderCellRendererComponent as ɵbh, DefaultHeaderCellRendererComponent as ɵbi, TableHeaderCellRendererComponent as ɵbj, IconComponent as ɵbk, SectionHeaderComponent as ɵbl, TableRowMenuComponent as ɵbm, CommandBarComponent as ɵbn, CommandContainer as ɵbo, CommandComponent as ɵbp, PopupMenuComponent as ɵbq, AbstractPopupMenuComponent as ɵbr, PopupMenuRendererComponent as ɵbs, CommandFaceComponent as ɵbt, MoreMenuComponent as ɵbu, PlaceModule as ɵbv, ComponentsModule as ɵbw, EmptyStateComponent as ɵbx, BusyOverlayComponent as ɵby, PlaceOutletComponent as ɵbz, FocusBindingDirective as ɵc, leftRightPlaceAnimation as ɵca, LEFT_RIGHT_PLACE_ANIMATION as ɵcb, AUP_PLACE_CONFIG as ɵcc, PlaceRouter as ɵce, InteractionService as ɵcf, ModalInteractionContextFactory as ɵcg, UrlService as ɵch, PlaceHistory as ɵci, TabbedPlaceNavigationComponent as ɵcj, AbstractPlaceNavigationComponent as ɵck, ListPlaceNavComponent as ɵcl, SidePlaceNavigationComponent as ɵcm, InteractionModule as ɵcn, ActivityContainerComponent as ɵco, AbstractInteractionContext as ɵcp, ActivityOutletComponent as ɵcq, ConfirmationDialogComponent as ɵcr, ACTIVITY_DATA as ɵcs, Activity as ɵct, ConfirmThenDialogComponent as ɵcv, AlertDialogComponent as ɵcw, InPlaceInteractionContextComponent as ɵcy, AddItemInteractionContextComponent as ɵcz, DisposableComponent as ɵd, ActivityActionsComponent as ɵda, PopupInteractionContextComponent as ɵdb, StringInputActivity as ɵdc, AbstractInputActivity as ɵdd, SelectInputActivity as ɵde, InteractionContextTriggerFor as ɵdf, FocusBindingFactory as ɵe, ComponentsModule as ɵf, AbstractInputComponent as ɵg, AbstractValueInputComponent as ɵh, AbstractListInputComponent as ɵi, NumberInputComponent as ɵj, StringInputComponent as ɵk, TextInputComponent as ɵl, PasswordInputComponent as ɵm, SelectInputComponent as ɵn, MultipleSelectInputComponent as ɵo, AutocompleteInputComponent as ɵp, CheckboxInputComponent as ɵq, ScrollContainerComponent as ɵr, NoopComponent as ɵs, SwitchCaseOption as ɵt, SwitchCaseWhenDirective as ɵu, SwitchCaseDefaultDirective as ɵv, SwitchCaseComponent as ɵw, FocusContainerComponent as ɵx, VerticalFocusContainerComponent as ɵy, FocusableComponent as ɵz };
7104
7515
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map