@coolon/angular-ui-powerups 2.0.0-alpha.26 → 2.0.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/assets/commands.scss +3 -0
- package/assets/icons.scss +30 -0
- package/assets/styles.scss +2 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +479 -149
- 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 +39 -34
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +37 -32
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-bar.component.js +55 -0
- package/esm2015/lib/components/commands/command-bar.component.js.map +1 -0
- package/esm2015/lib/components/commands/command-bar.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-container.js +39 -0
- package/esm2015/lib/components/commands/command-container.js.map +1 -0
- package/esm2015/lib/components/commands/command-container.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-container.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.js +91 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/command-face.js +9 -1
- package/esm2015/lib/components/commands/command-face.js.map +1 -1
- package/esm2015/lib/components/commands/command-menu/command-menu.component.js +65 -0
- package/esm2015/lib/components/commands/command-menu/command-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/command-menu/command-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-menu/command-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-menu/command-menu.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/command.component.js +38 -0
- package/esm2015/lib/components/commands/command.component.js.map +1 -0
- package/esm2015/lib/components/commands/command.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/components.module.js +17 -2
- 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/icon/icon.component.js +17 -4
- package/esm2015/lib/components/icon/icon.component.js.map +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/index.js +5 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +37 -32
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/card-container/card-container.component.js +1 -1
- package/esm5/lib/components/commands/command-bar.component.js +35 -0
- package/esm5/lib/components/commands/command-bar.component.js.map +1 -0
- package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-container.js +51 -0
- package/esm5/lib/components/commands/command-container.js.map +1 -0
- package/esm5/lib/components/commands/command-container.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.js +122 -0
- package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
- package/esm5/lib/components/commands/command-face.js +13 -1
- package/esm5/lib/components/commands/command-face.js.map +1 -1
- package/esm5/lib/components/commands/command-menu/command-menu.component.js +70 -0
- package/esm5/lib/components/commands/command-menu/command-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/command-menu/command-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-menu/command-menu.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/commands/command.component.js +41 -0
- package/esm5/lib/components/commands/command.component.js.map +1 -0
- package/esm5/lib/components/commands/command.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/components.module.js +17 -2
- 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/icon/icon.component.js +15 -3
- package/esm5/lib/components/icon/icon.component.js.map +1 -1
- package/esm5/lib/components/index.js +5 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +363 -74
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +421 -98
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command-bar.component.d.ts +11 -0
- package/lib/components/commands/command-container.d.ts +15 -0
- package/lib/components/commands/command-face/command-face.component.d.ts +29 -0
- package/lib/components/commands/command-face.d.ts +4 -2
- package/lib/components/commands/command-menu/command-menu.component.d.ts +22 -0
- package/lib/components/commands/command.component.d.ts +15 -0
- package/lib/components/icon/icon.component.d.ts +15 -0
- package/lib/components/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param, __awaiter } 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,
|
|
3
|
+
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, ContentChild, TemplateRef, Component, forwardRef, Optional, HostBinding, ViewEncapsulation, ViewChild, Self, EventEmitter, Output, 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';
|
|
@@ -18,10 +18,11 @@ 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 { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, Command, FocusManager, EventListenerList, Form,
|
|
21
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, Command, MutableListModel, Disposable, MutableValueModel, StoreInValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, 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';
|
|
@@ -371,11 +372,340 @@ CardContainerComponent = __decorate([
|
|
|
371
372
|
Component({
|
|
372
373
|
selector: 'aup-card-container',
|
|
373
374
|
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",
|
|
374
|
-
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}"]
|
|
375
|
+
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}"]
|
|
375
376
|
}),
|
|
376
377
|
__metadata("design:paramtypes", [])
|
|
377
378
|
], CardContainerComponent);
|
|
378
379
|
|
|
380
|
+
var CommandFace;
|
|
381
|
+
(function (CommandFace) {
|
|
382
|
+
let Position;
|
|
383
|
+
(function (Position) {
|
|
384
|
+
Position["START"] = "start";
|
|
385
|
+
Position["END"] = "end";
|
|
386
|
+
})(Position = CommandFace.Position || (CommandFace.Position = {}));
|
|
387
|
+
class Adapter {
|
|
388
|
+
constructor(face) {
|
|
389
|
+
this.face = face;
|
|
390
|
+
}
|
|
391
|
+
get text() {
|
|
392
|
+
return ___default.isFunction(this.face.text) ? this.face.text() : undefined;
|
|
393
|
+
}
|
|
394
|
+
get icon() {
|
|
395
|
+
return ___default.isFunction(this.face.icon) ? this.face.icon() : undefined;
|
|
396
|
+
}
|
|
397
|
+
get iconPosition() {
|
|
398
|
+
return ___default.isFunction(this.face.iconPosition) ? this.face.iconPosition() : undefined;
|
|
399
|
+
}
|
|
400
|
+
get tooltip() {
|
|
401
|
+
return ___default.isFunction(this.face.tooltip) ? this.face.tooltip() : undefined;
|
|
402
|
+
}
|
|
403
|
+
get iconPositionStart() {
|
|
404
|
+
return this.iconPosition === CommandFace.Position.START;
|
|
405
|
+
}
|
|
406
|
+
get iconPositionEnd() {
|
|
407
|
+
return this.iconPosition === CommandFace.Position.END;
|
|
408
|
+
}
|
|
409
|
+
get destructive() {
|
|
410
|
+
return ___default.isFunction(this.face.destructive) ? this.face.destructive() : false;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
__decorate([
|
|
414
|
+
Memoize(),
|
|
415
|
+
__metadata("design:type", Object),
|
|
416
|
+
__metadata("design:paramtypes", [])
|
|
417
|
+
], Adapter.prototype, "text", null);
|
|
418
|
+
__decorate([
|
|
419
|
+
Memoize(),
|
|
420
|
+
__metadata("design:type", Object),
|
|
421
|
+
__metadata("design:paramtypes", [])
|
|
422
|
+
], Adapter.prototype, "icon", null);
|
|
423
|
+
__decorate([
|
|
424
|
+
Memoize(),
|
|
425
|
+
__metadata("design:type", Object),
|
|
426
|
+
__metadata("design:paramtypes", [])
|
|
427
|
+
], Adapter.prototype, "iconPosition", null);
|
|
428
|
+
__decorate([
|
|
429
|
+
Memoize(),
|
|
430
|
+
__metadata("design:type", Object),
|
|
431
|
+
__metadata("design:paramtypes", [])
|
|
432
|
+
], Adapter.prototype, "tooltip", null);
|
|
433
|
+
__decorate([
|
|
434
|
+
Memoize(),
|
|
435
|
+
__metadata("design:type", Boolean),
|
|
436
|
+
__metadata("design:paramtypes", [])
|
|
437
|
+
], Adapter.prototype, "iconPositionStart", null);
|
|
438
|
+
__decorate([
|
|
439
|
+
Memoize(),
|
|
440
|
+
__metadata("design:type", Boolean),
|
|
441
|
+
__metadata("design:paramtypes", [])
|
|
442
|
+
], Adapter.prototype, "iconPositionEnd", null);
|
|
443
|
+
__decorate([
|
|
444
|
+
Memoize(),
|
|
445
|
+
__metadata("design:type", Boolean),
|
|
446
|
+
__metadata("design:paramtypes", [])
|
|
447
|
+
], Adapter.prototype, "destructive", null);
|
|
448
|
+
CommandFace.Adapter = Adapter;
|
|
449
|
+
})(CommandFace || (CommandFace = {}));
|
|
450
|
+
|
|
451
|
+
var CommandContainer_1;
|
|
452
|
+
let CommandContainer = CommandContainer_1 = class CommandContainer extends GarbageCollector {
|
|
453
|
+
constructor() {
|
|
454
|
+
super();
|
|
455
|
+
this._commandRegistrations = new MutableListModel();
|
|
456
|
+
}
|
|
457
|
+
get commandRegistrations() {
|
|
458
|
+
return this._commandRegistrations.readonly;
|
|
459
|
+
}
|
|
460
|
+
registerCommand(command, face) {
|
|
461
|
+
const registration = new CommandContainer_1.Registration(command, face);
|
|
462
|
+
this._commandRegistrations.push(registration);
|
|
463
|
+
return Disposable.disposableThatRuns(() => this._commandRegistrations.remove(registration));
|
|
464
|
+
}
|
|
465
|
+
getDefaultIconPosition() {
|
|
466
|
+
return CommandFace.Position.START;
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
CommandContainer = CommandContainer_1 = __decorate([
|
|
470
|
+
Component({
|
|
471
|
+
template: ''
|
|
472
|
+
}),
|
|
473
|
+
__metadata("design:paramtypes", [])
|
|
474
|
+
], CommandContainer);
|
|
475
|
+
(function (CommandContainer) {
|
|
476
|
+
class Registration extends CommandFace.Adapter {
|
|
477
|
+
constructor(command, face) {
|
|
478
|
+
super(face);
|
|
479
|
+
this.command = command;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
CommandContainer.Registration = Registration;
|
|
483
|
+
})(CommandContainer || (CommandContainer = {}));
|
|
484
|
+
|
|
485
|
+
var CommandBarComponent_1;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
*/
|
|
489
|
+
let CommandBarComponent = CommandBarComponent_1 = class CommandBarComponent extends CommandContainer {
|
|
490
|
+
constructor() {
|
|
491
|
+
super();
|
|
492
|
+
}
|
|
493
|
+
ngOnInit() {
|
|
494
|
+
}
|
|
495
|
+
getButtonColor(registration) {
|
|
496
|
+
return registration.destructive ? 'warn' : undefined;
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
__decorate([
|
|
500
|
+
ContentChild('moreMenu'),
|
|
501
|
+
__metadata("design:type", TemplateRef)
|
|
502
|
+
], CommandBarComponent.prototype, "moreMenuTemplateRef", void 0);
|
|
503
|
+
CommandBarComponent = CommandBarComponent_1 = __decorate([
|
|
504
|
+
Component({
|
|
505
|
+
selector: 'aup-command-bar',
|
|
506
|
+
template: `
|
|
507
|
+
<ng-container *ngFor="let registration of commandRegistrations.value">
|
|
508
|
+
<button *ngIf="registration.icon && !registration.text"
|
|
509
|
+
mat-icon-button
|
|
510
|
+
[color]="getButtonColor(registration)"
|
|
511
|
+
[pectinCommand]="registration.command"
|
|
512
|
+
[matTooltip]="registration.tooltip"
|
|
513
|
+
>
|
|
514
|
+
<aup-command-face [face]="registration.face"></aup-command-face>
|
|
515
|
+
</button>
|
|
516
|
+
<button *ngIf="registration.text"
|
|
517
|
+
[color]="getButtonColor(registration)"
|
|
518
|
+
mat-button
|
|
519
|
+
[pectinCommand]="registration.command"
|
|
520
|
+
[matTooltip]="registration.tooltip"
|
|
521
|
+
>
|
|
522
|
+
<aup-command-face [face]="registration.face"></aup-command-face>
|
|
523
|
+
</button>
|
|
524
|
+
</ng-container>
|
|
525
|
+
`,
|
|
526
|
+
providers: [{ provide: CommandContainer, useExisting: forwardRef(() => CommandBarComponent_1) }],
|
|
527
|
+
styles: [`:host {
|
|
528
|
+
display: inline-flex;
|
|
529
|
+
flex-direction: row;
|
|
530
|
+
align-items: center;
|
|
531
|
+
}`]
|
|
532
|
+
}),
|
|
533
|
+
__metadata("design:paramtypes", [])
|
|
534
|
+
], CommandBarComponent);
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
*/
|
|
539
|
+
let CommandFaceComponent = class CommandFaceComponent extends DisposableComponent {
|
|
540
|
+
constructor(commandContainer) {
|
|
541
|
+
super();
|
|
542
|
+
this.commandContainer = commandContainer;
|
|
543
|
+
this.faceModel = new MutableValueModel();
|
|
544
|
+
this.ignoreIcon = false;
|
|
545
|
+
this.ignoreText = false;
|
|
546
|
+
this.includeMissingIconInLayout = false;
|
|
547
|
+
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
548
|
+
// overkill /c: when all you have is a hammer...
|
|
549
|
+
const faceAdapter = chain(this.faceModel).map(face => new CommandFace.Adapter(face));
|
|
550
|
+
this.iconModel = faceAdapter.pluck('icon');
|
|
551
|
+
this.textModel = faceAdapter.pluck('text');
|
|
552
|
+
this.positionModel = faceAdapter.pluck('iconPosition');
|
|
553
|
+
this.destructiveModel = faceAdapter.pluck('destructive');
|
|
554
|
+
}
|
|
555
|
+
get requiresMissingIconInLayout() {
|
|
556
|
+
return this.includeMissingIconInLayout && !this.iconModel.value;
|
|
557
|
+
}
|
|
558
|
+
ngOnInit() {
|
|
559
|
+
}
|
|
560
|
+
get iconPosition() {
|
|
561
|
+
var _a, _b, _c;
|
|
562
|
+
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;
|
|
563
|
+
}
|
|
564
|
+
get shouldIncludeIcon() {
|
|
565
|
+
return (!this.ignoreIcon && this.iconModel.value) || this.includeMissingIconInLayout;
|
|
566
|
+
}
|
|
567
|
+
get iconStart() {
|
|
568
|
+
return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.START;
|
|
569
|
+
}
|
|
570
|
+
get iconEnd() {
|
|
571
|
+
return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.END;
|
|
572
|
+
}
|
|
573
|
+
get text() {
|
|
574
|
+
return this.ignoreText ? undefined : this.textModel.value;
|
|
575
|
+
}
|
|
576
|
+
get destructive() {
|
|
577
|
+
return this.destructiveModel.value;
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
CommandFaceComponent.ctorParameters = () => [
|
|
581
|
+
{ type: CommandContainer, decorators: [{ type: Optional }] }
|
|
582
|
+
];
|
|
583
|
+
__decorate([
|
|
584
|
+
Input('face'), StoreInValueModel('faceModel'),
|
|
585
|
+
__metadata("design:type", Object)
|
|
586
|
+
], CommandFaceComponent.prototype, "_rawFace", void 0);
|
|
587
|
+
__decorate([
|
|
588
|
+
Input(),
|
|
589
|
+
__metadata("design:type", Object)
|
|
590
|
+
], CommandFaceComponent.prototype, "ignoreIcon", void 0);
|
|
591
|
+
__decorate([
|
|
592
|
+
Input(),
|
|
593
|
+
__metadata("design:type", Object)
|
|
594
|
+
], CommandFaceComponent.prototype, "ignoreText", void 0);
|
|
595
|
+
__decorate([
|
|
596
|
+
Input(),
|
|
597
|
+
__metadata("design:type", Object)
|
|
598
|
+
], CommandFaceComponent.prototype, "includeMissingIconInLayout", void 0);
|
|
599
|
+
__decorate([
|
|
600
|
+
HostBinding('class.hide-icon'),
|
|
601
|
+
__metadata("design:type", Object),
|
|
602
|
+
__metadata("design:paramtypes", [])
|
|
603
|
+
], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
|
|
604
|
+
__decorate([
|
|
605
|
+
HostBinding('class.destructive'),
|
|
606
|
+
__metadata("design:type", Boolean),
|
|
607
|
+
__metadata("design:paramtypes", [])
|
|
608
|
+
], CommandFaceComponent.prototype, "destructive", null);
|
|
609
|
+
CommandFaceComponent = __decorate([
|
|
610
|
+
Component({
|
|
611
|
+
selector: 'aup-command-face',
|
|
612
|
+
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",
|
|
613
|
+
encapsulation: ViewEncapsulation.None,
|
|
614
|
+
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}"]
|
|
615
|
+
}),
|
|
616
|
+
__param(0, Optional()),
|
|
617
|
+
__metadata("design:paramtypes", [CommandContainer])
|
|
618
|
+
], CommandFaceComponent);
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
*/
|
|
623
|
+
let CommandComponent = class CommandComponent extends DisposableComponent {
|
|
624
|
+
constructor(commandContainer) {
|
|
625
|
+
super();
|
|
626
|
+
this.commandContainer = commandContainer;
|
|
627
|
+
}
|
|
628
|
+
ngOnInit() {
|
|
629
|
+
this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
|
|
630
|
+
}
|
|
631
|
+
};
|
|
632
|
+
CommandComponent.ctorParameters = () => [
|
|
633
|
+
{ type: CommandContainer }
|
|
634
|
+
];
|
|
635
|
+
__decorate([
|
|
636
|
+
Input(), TrackExternal(),
|
|
637
|
+
__metadata("design:type", Command)
|
|
638
|
+
], CommandComponent.prototype, "command", void 0);
|
|
639
|
+
__decorate([
|
|
640
|
+
Input(),
|
|
641
|
+
__metadata("design:type", Object)
|
|
642
|
+
], CommandComponent.prototype, "face", void 0);
|
|
643
|
+
CommandComponent = __decorate([
|
|
644
|
+
Component({
|
|
645
|
+
selector: 'aup-command',
|
|
646
|
+
template: ``
|
|
647
|
+
}),
|
|
648
|
+
__metadata("design:paramtypes", [CommandContainer])
|
|
649
|
+
], CommandComponent);
|
|
650
|
+
|
|
651
|
+
var CommandMenuComponent_1;
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
*/
|
|
655
|
+
let CommandMenuComponent = CommandMenuComponent_1 = class CommandMenuComponent extends CommandContainer {
|
|
656
|
+
constructor() {
|
|
657
|
+
super();
|
|
658
|
+
this.faceModel = new MutableValueModel();
|
|
659
|
+
this.xPosition = 'after';
|
|
660
|
+
this.yPosition = 'below';
|
|
661
|
+
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
662
|
+
this.tooltip = chain(this.faceModel).map(face => new CommandFace.Adapter(face)).pluck('tooltip');
|
|
663
|
+
const registrations = chain(this.commandRegistrations);
|
|
664
|
+
const iconCount = registrations.select(r => !!r.icon).count();
|
|
665
|
+
this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(registrations.length)).areTruthy();
|
|
666
|
+
}
|
|
667
|
+
ngOnInit() {
|
|
668
|
+
}
|
|
669
|
+
createMoreMenuCommand(item) {
|
|
670
|
+
const { when } = Dsl.disposeWith(this);
|
|
671
|
+
when(item.command.busy).becomesFalsey(() => {
|
|
672
|
+
this.closeMoreMenu();
|
|
673
|
+
});
|
|
674
|
+
return item.command;
|
|
675
|
+
}
|
|
676
|
+
closeMoreMenu() {
|
|
677
|
+
this.menu.closeMenu();
|
|
678
|
+
}
|
|
679
|
+
getButtonColor(registration) {
|
|
680
|
+
return registration.destructive ? 'warn' : undefined;
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
__decorate([
|
|
684
|
+
Input(), StoreInValueModel('faceModel'),
|
|
685
|
+
__metadata("design:type", Object)
|
|
686
|
+
], CommandMenuComponent.prototype, "face", void 0);
|
|
687
|
+
__decorate([
|
|
688
|
+
Input(),
|
|
689
|
+
__metadata("design:type", String)
|
|
690
|
+
], CommandMenuComponent.prototype, "xPosition", void 0);
|
|
691
|
+
__decorate([
|
|
692
|
+
Input(),
|
|
693
|
+
__metadata("design:type", String)
|
|
694
|
+
], CommandMenuComponent.prototype, "yPosition", void 0);
|
|
695
|
+
__decorate([
|
|
696
|
+
ViewChild(MatMenuTrigger),
|
|
697
|
+
__metadata("design:type", MatMenuTrigger)
|
|
698
|
+
], CommandMenuComponent.prototype, "menu", void 0);
|
|
699
|
+
CommandMenuComponent = CommandMenuComponent_1 = __decorate([
|
|
700
|
+
Component({
|
|
701
|
+
selector: 'aup-command-menu',
|
|
702
|
+
template: "<button #trigger mat-icon-button [matMenuTriggerFor]=\"menu\" [matTooltip]=\"tooltip.value\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n</button>\n<mat-menu #menu=\"matMenu\" [xPosition]=\"xPosition\" [yPosition]=\"yPosition\">\n <button *ngFor=\"let registration of commandRegistrations.value\"\n mat-menu-item\n [pectinCommand]=\"createMoreMenuCommand(registration)\"\n >\n <aup-command-face [face]=\"registration.face\" [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n</mat-menu>\n",
|
|
703
|
+
providers: [{ provide: CommandContainer, useExisting: forwardRef(() => CommandMenuComponent_1) }],
|
|
704
|
+
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
|
|
705
|
+
}),
|
|
706
|
+
__metadata("design:paramtypes", [])
|
|
707
|
+
], CommandMenuComponent);
|
|
708
|
+
|
|
379
709
|
let FocusContainerComponent = class FocusContainerComponent extends DisposableComponent {
|
|
380
710
|
constructor(focusManager) {
|
|
381
711
|
super();
|
|
@@ -1053,7 +1383,12 @@ TextInputComponent = __decorate([
|
|
|
1053
1383
|
__metadata("design:paramtypes", [])
|
|
1054
1384
|
], TextInputComponent);
|
|
1055
1385
|
|
|
1056
|
-
|
|
1386
|
+
var IconComponent_1;
|
|
1387
|
+
let IconComponent = IconComponent_1 = class IconComponent {
|
|
1388
|
+
constructor() {
|
|
1389
|
+
this.allowedPrefixes = Enum.values(IconComponent_1.IconPrefix).map(p => `${p}:`);
|
|
1390
|
+
this.iconPrefix = IconComponent_1.IconPrefix;
|
|
1391
|
+
}
|
|
1057
1392
|
set icon(iconName) {
|
|
1058
1393
|
this._icon = iconName;
|
|
1059
1394
|
if (!iconName) {
|
|
@@ -1069,7 +1404,7 @@ let IconComponent = class IconComponent {
|
|
|
1069
1404
|
if (this.prefix) {
|
|
1070
1405
|
this.errorMessage = `Unknown icon "${iconName}"`;
|
|
1071
1406
|
}
|
|
1072
|
-
this.errorMessage = `Unknown icon prefix "${this.prefix}"`;
|
|
1407
|
+
this.errorMessage = `Unknown icon prefix, expected one of [${this.allowedPrefixes.join(',')}] got "${this.prefix}:"`;
|
|
1073
1408
|
}
|
|
1074
1409
|
get icon() {
|
|
1075
1410
|
return this._icon;
|
|
@@ -1080,13 +1415,20 @@ __decorate([
|
|
|
1080
1415
|
__metadata("design:type", String),
|
|
1081
1416
|
__metadata("design:paramtypes", [String])
|
|
1082
1417
|
], IconComponent.prototype, "icon", null);
|
|
1083
|
-
IconComponent = __decorate([
|
|
1418
|
+
IconComponent = IconComponent_1 = __decorate([
|
|
1084
1419
|
Component({
|
|
1085
1420
|
selector: 'aup-icon',
|
|
1086
|
-
template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"
|
|
1421
|
+
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",
|
|
1087
1422
|
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}"]
|
|
1088
1423
|
})
|
|
1089
1424
|
], IconComponent);
|
|
1425
|
+
(function (IconComponent) {
|
|
1426
|
+
IconComponent.IconPrefix = Enum({
|
|
1427
|
+
SVG: 'svg',
|
|
1428
|
+
FONT_AWESOME: 'fa',
|
|
1429
|
+
MATERIAL: 'mat'
|
|
1430
|
+
});
|
|
1431
|
+
})(IconComponent || (IconComponent = {}));
|
|
1090
1432
|
|
|
1091
1433
|
let NoopComponent = class NoopComponent {
|
|
1092
1434
|
constructor() {
|
|
@@ -2258,69 +2600,6 @@ TableHeaderCellRendererComponent = __decorate([
|
|
|
2258
2600
|
__metadata("design:paramtypes", [])
|
|
2259
2601
|
], TableHeaderCellRendererComponent);
|
|
2260
2602
|
|
|
2261
|
-
var CommandFace;
|
|
2262
|
-
(function (CommandFace) {
|
|
2263
|
-
let Position;
|
|
2264
|
-
(function (Position) {
|
|
2265
|
-
Position["START"] = "start";
|
|
2266
|
-
Position["END"] = "end";
|
|
2267
|
-
})(Position = CommandFace.Position || (CommandFace.Position = {}));
|
|
2268
|
-
class Adapter {
|
|
2269
|
-
constructor(face) {
|
|
2270
|
-
this.face = face;
|
|
2271
|
-
}
|
|
2272
|
-
get text() {
|
|
2273
|
-
return ___default.isFunction(this.face.text) ? this.face.text() : undefined;
|
|
2274
|
-
}
|
|
2275
|
-
get icon() {
|
|
2276
|
-
return ___default.isFunction(this.face.icon) ? this.face.icon() : undefined;
|
|
2277
|
-
}
|
|
2278
|
-
get iconPosition() {
|
|
2279
|
-
return ___default.isFunction(this.face.iconPosition) ? this.face.iconPosition() : CommandFace.Position.START;
|
|
2280
|
-
}
|
|
2281
|
-
get tooltip() {
|
|
2282
|
-
return ___default.isFunction(this.face.tooltip) ? this.face.tooltip() : undefined;
|
|
2283
|
-
}
|
|
2284
|
-
get iconPositionStart() {
|
|
2285
|
-
return this.iconPosition === CommandFace.Position.START;
|
|
2286
|
-
}
|
|
2287
|
-
get iconPositionEnd() {
|
|
2288
|
-
return this.iconPosition === CommandFace.Position.END;
|
|
2289
|
-
}
|
|
2290
|
-
}
|
|
2291
|
-
__decorate([
|
|
2292
|
-
Memoize(),
|
|
2293
|
-
__metadata("design:type", Object),
|
|
2294
|
-
__metadata("design:paramtypes", [])
|
|
2295
|
-
], Adapter.prototype, "text", null);
|
|
2296
|
-
__decorate([
|
|
2297
|
-
Memoize(),
|
|
2298
|
-
__metadata("design:type", Object),
|
|
2299
|
-
__metadata("design:paramtypes", [])
|
|
2300
|
-
], Adapter.prototype, "icon", null);
|
|
2301
|
-
__decorate([
|
|
2302
|
-
Memoize(),
|
|
2303
|
-
__metadata("design:type", Object),
|
|
2304
|
-
__metadata("design:paramtypes", [])
|
|
2305
|
-
], Adapter.prototype, "iconPosition", null);
|
|
2306
|
-
__decorate([
|
|
2307
|
-
Memoize(),
|
|
2308
|
-
__metadata("design:type", Object),
|
|
2309
|
-
__metadata("design:paramtypes", [])
|
|
2310
|
-
], Adapter.prototype, "tooltip", null);
|
|
2311
|
-
__decorate([
|
|
2312
|
-
Memoize(),
|
|
2313
|
-
__metadata("design:type", Boolean),
|
|
2314
|
-
__metadata("design:paramtypes", [])
|
|
2315
|
-
], Adapter.prototype, "iconPositionStart", null);
|
|
2316
|
-
__decorate([
|
|
2317
|
-
Memoize(),
|
|
2318
|
-
__metadata("design:type", Boolean),
|
|
2319
|
-
__metadata("design:paramtypes", [])
|
|
2320
|
-
], Adapter.prototype, "iconPositionEnd", null);
|
|
2321
|
-
CommandFace.Adapter = Adapter;
|
|
2322
|
-
})(CommandFace || (CommandFace = {}));
|
|
2323
|
-
|
|
2324
2603
|
class MenuItemData extends CommandFace.Adapter {
|
|
2325
2604
|
constructor(factory, face) {
|
|
2326
2605
|
super(face);
|
|
@@ -2520,7 +2799,12 @@ ComponentsModule = __decorate([
|
|
|
2520
2799
|
TableHeaderCellRendererComponent,
|
|
2521
2800
|
IconComponent,
|
|
2522
2801
|
SectionHeaderComponent,
|
|
2523
|
-
TableRowMenuComponent
|
|
2802
|
+
TableRowMenuComponent,
|
|
2803
|
+
CommandBarComponent,
|
|
2804
|
+
CommandComponent,
|
|
2805
|
+
CommandMenuComponent,
|
|
2806
|
+
CommandFaceComponent,
|
|
2807
|
+
CommandContainer
|
|
2524
2808
|
],
|
|
2525
2809
|
imports: [
|
|
2526
2810
|
CommonModule,
|
|
@@ -2566,7 +2850,12 @@ ComponentsModule = __decorate([
|
|
|
2566
2850
|
ColumnTemplateDirective,
|
|
2567
2851
|
IconComponent,
|
|
2568
2852
|
SectionHeaderComponent,
|
|
2569
|
-
TableRowMenuComponent
|
|
2853
|
+
TableRowMenuComponent,
|
|
2854
|
+
CommandBarComponent,
|
|
2855
|
+
CommandComponent,
|
|
2856
|
+
CommandMenuComponent,
|
|
2857
|
+
CommandFaceComponent,
|
|
2858
|
+
CommandContainer
|
|
2570
2859
|
],
|
|
2571
2860
|
providers: [
|
|
2572
2861
|
FocusBindingFactory
|
|
@@ -6400,5 +6689,5 @@ function VisitParameterList(options) {
|
|
|
6400
6689
|
* Generated bundle index. Do not edit.
|
|
6401
6690
|
*/
|
|
6402
6691
|
|
|
6403
|
-
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,
|
|
6692
|
+
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, CommandBarComponent, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, CommandMenuComponent, 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, CommandBarComponent as ɵbn, CommandContainer as ɵbo, CommandComponent as ɵbp, CommandMenuComponent as ɵbq, CommandFaceComponent as ɵbr, PlaceModule as ɵbs, ComponentsModule as ɵbt, EmptyStateComponent as ɵbu, BusyOverlayComponent as ɵbv, PlaceOutletComponent as ɵbw, leftRightPlaceAnimation as ɵbx, LEFT_RIGHT_PLACE_ANIMATION as ɵby, AUP_PLACE_CONFIG as ɵbz, FocusBindingDirective as ɵc, PlaceRouter as ɵcb, InteractionService as ɵcc, ModalInteractionContextFactory as ɵcd, UrlService as ɵce, PlaceHistory as ɵcf, TabbedPlaceNavigationComponent as ɵcg, AbstractPlaceNavigationComponent as ɵch, ListPlaceNavComponent as ɵci, SidePlaceNavigationComponent as ɵcj, InteractionModule as ɵck, ActivityContainerComponent as ɵcl, AbstractInteractionContext as ɵcm, ActivityOutletComponent as ɵcn, ConfirmationDialogComponent as ɵco, ACTIVITY_DATA as ɵcp, Activity as ɵcq, ConfirmThenDialogComponent as ɵcs, AlertDialogComponent as ɵct, InPlaceInteractionContextComponent as ɵcv, AddItemInteractionContextComponent as ɵcw, ActivityActionsComponent as ɵcx, PopupInteractionContextComponent as ɵcy, StringInputActivity as ɵcz, DisposableComponent as ɵd, AbstractInputActivity as ɵda, SelectInputActivity as ɵdb, InteractionContextTriggerFor as ɵdc, 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 };
|
|
6404
6693
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|