@coolon/angular-ui-powerups 16.1.0-aplpha.109 → 16.1.0-aplpha.11
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/assets/activities/input-activities.scss +6 -14
- package/assets/form.scss +27 -74
- package/assets/icons.scss +0 -1
- package/assets/table.scss +23 -33
- package/assets/tabs.scss +6 -2
- package/esm2022/lib/animations/slide-animations.mjs +1 -6
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
- package/esm2022/lib/components/commands/command/command.component.mjs +10 -24
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +3 -11
- package/esm2022/lib/components/commands/command-face.mjs +11 -11
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +11 -11
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +4 -6
- package/esm2022/lib/components/components.module.mjs +8 -27
- package/esm2022/lib/components/disposable-component.mjs +37 -19
- package/esm2022/lib/components/exports.mjs +2 -8
- package/esm2022/lib/components/forms/abstract-input.component.mjs +12 -55
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +2 -2
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +6 -8
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -2
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +10 -49
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +3 -40
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +10 -11
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +9 -21
- package/esm2022/lib/components/icon/icon.component.mjs +4 -7
- package/esm2022/lib/components/resize-aware.component.mjs +24 -61
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +7 -5
- package/esm2022/lib/components/tables/abstract-table-model.mjs +25 -49
- package/esm2022/lib/components/tables/abstract-table.component.mjs +5 -19
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +3 -13
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +1 -1
- package/esm2022/lib/components/tables/editor/edit-session.mjs +2 -4
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +2 -4
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -16
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +1 -19
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +2 -3
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +40 -150
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +2 -7
- package/esm2022/lib/components/tables/table/table-model.mjs +1 -1
- package/esm2022/lib/components/tables/table/table.component.mjs +62 -41
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +4 -5
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +6 -13
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +3 -3
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
- package/esm2022/lib/directives/directives.module.mjs +1 -1
- package/esm2022/lib/directives/exports.mjs +1 -2
- package/esm2022/lib/directives/highlight.pipe.mjs +2 -2
- package/esm2022/lib/interaction/activity.mjs +4 -3
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +4 -8
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +11 -20
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +11 -28
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +3 -3
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +4 -15
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +2 -4
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +4 -8
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
- package/esm2022/lib/interaction/exports.mjs +1 -2
- package/esm2022/lib/interaction/interaction.module.mjs +9 -7
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -3
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +9 -7
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
- package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
- package/esm2022/lib/place/guards/place.guard.mjs +1 -2
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +6 -3
- package/esm2022/lib/place/place-component.mjs +7 -7
- package/esm2022/lib/place/place-definition.mjs +3 -3
- package/esm2022/lib/place/place-history.mjs +2 -2
- package/esm2022/lib/place/place-router.mjs +18 -20
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +5 -1
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/parameter-decorators.mjs +50 -54
- package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
- package/esm2022/lib/place/url-snapshot.mjs +3 -3
- package/esm2022/lib/place/visit-segment.mjs +2 -2
- package/esm2022/lib/place/visit.mjs +2 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +536 -1294
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/animations/slide-animations.d.ts +0 -1
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/commands/command/command.component.d.ts +1 -2
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
- package/lib/components/commands/command-face.d.ts +7 -5
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
- package/lib/components/components.module.d.ts +53 -56
- package/lib/components/disposable-component.d.ts +8 -11
- package/lib/components/exports.d.ts +1 -7
- package/lib/components/forms/abstract-input.component.d.ts +5 -13
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +0 -2
- package/lib/components/forms/number-input/number-input.component.d.ts +4 -8
- package/lib/components/forms/password-input/password-input.component.d.ts +1 -7
- package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -3
- package/lib/components/resize-aware.component.d.ts +5 -24
- package/lib/components/switch-case/switch-case.component.d.ts +3 -2
- package/lib/components/tables/abstract-table-model.d.ts +6 -14
- package/lib/components/tables/abstract-table.component.d.ts +3 -4
- package/lib/components/tables/column/column-list-model.d.ts +13 -0
- package/lib/components/tables/column/column-model.d.ts +3 -7
- package/lib/components/tables/column/custom-template-column-model.d.ts +2 -3
- package/lib/components/tables/column/custom-value-column-model.d.ts +2 -3
- package/lib/components/tables/column/editor-controls-column-model.d.ts +2 -3
- package/lib/components/tables/column/list-propery-column-model.d.ts +2 -3
- package/lib/components/tables/column/property-column-model.d.ts +2 -3
- package/lib/components/tables/column/selection-column-model.d.ts +2 -3
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
- package/lib/components/tables/editor/edit-session.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +0 -9
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +6 -14
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +16 -40
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +1 -2
- package/lib/components/tables/table/table-model.d.ts +1 -1
- package/lib/components/tables/table/table.component.d.ts +10 -14
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +0 -3
- package/lib/components/tables/tree-table/tree-table-model.d.ts +1 -1
- package/lib/directives/exports.d.ts +0 -1
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -1
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +5 -10
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -7
- package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
- package/lib/interaction/components/editors/edit-context.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +3 -5
- package/lib/interaction/exports.d.ts +0 -1
- package/lib/interaction/interaction.module.d.ts +28 -28
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -3
- package/lib/place/place-component.d.ts +4 -4
- package/lib/place/place-router.d.ts +0 -4
- package/lib/place/place.module.d.ts +5 -4
- package/package.json +4 -6
- package/esm2022/lib/components/forms/form-field.mjs +0 -2
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +0 -33
- package/esm2022/lib/components/loadable-component.mjs +0 -49
- package/esm2022/lib/components/tables/column/column-manager.mjs +0 -81
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
- package/esm2022/lib/components/tables/footer/footer-row-model.mjs +0 -38
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +0 -30
- package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -129
- package/lib/components/forms/form-field.d.ts +0 -5
- package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
- package/lib/components/loadable-component.d.ts +0 -17
- package/lib/components/tables/column/column-manager.d.ts +0 -19
- package/lib/components/tables/column/column-order-manager.d.ts +0 -20
- package/lib/components/tables/footer/footer-row-model.d.ts +0 -22
- package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +0 -11
- package/lib/directives/resize-observer.directive.d.ts +0 -16
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
|
@@ -2,27 +2,27 @@ import { ObserversModule } from '@angular/cdk/observers';
|
|
|
2
2
|
import * as i1$1 from '@angular/common';
|
|
3
3
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { ElementRef, Directive, Inject, Host, Optional, Input, HostListener,
|
|
5
|
+
import { ElementRef, Directive, Inject, Host, Optional, Input, HostListener, inject, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ViewEncapsulation, InjectionToken, ViewChild, ViewChildren, EventEmitter, Output, SkipSelf, Self, ContentChildren, ComponentRef, Injector, PLATFORM_ID } from '@angular/core';
|
|
6
6
|
import * as i2$4 from '@angular/forms';
|
|
7
7
|
import { FormsModule } from '@angular/forms';
|
|
8
8
|
import * as i4$2 from '@angular/material/form-field';
|
|
9
9
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
10
10
|
import * as i3 from '@angular/material/input';
|
|
11
11
|
import { MatInputModule, MatInput } from '@angular/material/input';
|
|
12
|
-
import * as i4$
|
|
12
|
+
import * as i4$4 from '@angular/material/select';
|
|
13
13
|
import { MatSelectModule } from '@angular/material/select';
|
|
14
|
-
import * as i3$
|
|
14
|
+
import * as i3$1 from '@angular/material/tabs';
|
|
15
15
|
import { MatTabsModule, MAT_TABS_CONFIG } from '@angular/material/tabs';
|
|
16
16
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i3$2 from '@angular/cdk/portal';
|
|
18
18
|
import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
19
19
|
import * as i1$2 from '@angular/cdk/scrolling';
|
|
20
|
-
import {
|
|
20
|
+
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
21
21
|
import * as i7 from '@angular/material/autocomplete';
|
|
22
22
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
23
23
|
import * as i2 from '@angular/material/button';
|
|
24
24
|
import { MatButton, MatButtonModule } from '@angular/material/button';
|
|
25
|
-
import * as
|
|
25
|
+
import * as i4$3 from '@angular/material/checkbox';
|
|
26
26
|
import { MAT_CHECKBOX_DEFAULT_OPTIONS, MatCheckboxModule } from '@angular/material/checkbox';
|
|
27
27
|
import * as i2$3 from '@angular/material/divider';
|
|
28
28
|
import { MatDividerModule } from '@angular/material/divider';
|
|
@@ -38,34 +38,35 @@ import * as i2$6 from '@angular/material/table';
|
|
|
38
38
|
import { MatTableModule } from '@angular/material/table';
|
|
39
39
|
import * as i4$1 from '@angular/material/tooltip';
|
|
40
40
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
41
|
-
import * as i4$4 from 'ng-table-virtual-scroll';
|
|
42
|
-
import { TableVirtualScrollDataSource, TableVirtualScrollModule } from 'ng-table-virtual-scroll';
|
|
43
41
|
import * as i1$3 from '@coolon/pectin';
|
|
44
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, proxify, ValueModel, Proxify, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel,
|
|
42
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, MutableValueModel, Logger, proxify, ValueModel, Proxify, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, ListModel, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ProxyRegistry, DelegatingCommand, PagedListModel, ComputedListModel, Deferred, ReducingValueModel, AndValueModel } from '@coolon/pectin';
|
|
45
43
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
46
44
|
import * as i1 from '@angular/platform-browser';
|
|
47
45
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
48
|
-
import { isEmpty, isString, isFunction, isNil, isInteger, isObject, isEqual, join,
|
|
46
|
+
import { isEmpty, isString, isFunction, isNil, isInteger, isObject, isEqual, join, first, uniq, last as last$1, isNumber, isNaN as isNaN$1 } from 'lodash';
|
|
49
47
|
import { marked } from 'marked';
|
|
50
|
-
import {
|
|
48
|
+
import { Memoize } from '@typescript-plus/fast-memoize-decorator';
|
|
51
49
|
import { Enum } from 'typescript-string-enums';
|
|
50
|
+
import { lang as lang$1, assert as assert$1, Stringy, Klass, Opts } from '@coolon/typescript-utilities';
|
|
52
51
|
import * as i5 from '@angular/material/core';
|
|
53
|
-
import
|
|
54
|
-
import { produce } from 'immer';
|
|
52
|
+
import produce from 'immer';
|
|
55
53
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
56
|
-
import {
|
|
54
|
+
import { isFunction as isFunction$1, isNil as isNil$1, isEmpty as isEmpty$1, last, findLast } from 'lodash-es';
|
|
57
55
|
import * as i5$1 from '@angular/cdk/a11y';
|
|
58
56
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
59
|
-
import * as
|
|
57
|
+
import * as i7$1 from '@angular/flex-layout';
|
|
58
|
+
import { FlexModule, GridModule } from '@angular/flex-layout';
|
|
59
|
+
import * as i1$6 from '@angular/material/dialog';
|
|
60
60
|
import { MatDialogModule, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
61
|
-
import * as i1$
|
|
61
|
+
import * as i1$4 from '@angular/router';
|
|
62
62
|
import { ActivatedRouteSnapshot, UrlSegment, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterModule } from '@angular/router';
|
|
63
|
+
import { Memoize as Memoize$1 } from 'typescript-memoize';
|
|
63
64
|
import 'reflect-metadata';
|
|
64
|
-
import * as i1$
|
|
65
|
-
import { style, trigger, transition, animate, group, query } from '@angular/animations';
|
|
65
|
+
import * as i1$5 from '@angular/cdk/overlay';
|
|
66
66
|
import { MatCardModule } from '@angular/material/card';
|
|
67
67
|
import * as i3$3 from '@angular/material/list';
|
|
68
68
|
import { MatListModule } from '@angular/material/list';
|
|
69
|
+
import { style, query, group, animate, trigger, transition } from '@angular/animations';
|
|
69
70
|
|
|
70
71
|
class CommandDirective extends GarbageCollector {
|
|
71
72
|
elementRef;
|
|
@@ -212,12 +213,11 @@ var Track;
|
|
|
212
213
|
|
|
213
214
|
class DisposableComponent extends GarbageCollector {
|
|
214
215
|
trackById = Track.byId();
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
#_loaded$ = new MutableValueModel();
|
|
217
|
+
#asyncLoadables = [];
|
|
218
|
+
#awaitedLoadables = [];
|
|
218
219
|
#initCallbacks = [];
|
|
219
220
|
#initialised = false;
|
|
220
|
-
cdr = this.inject(ChangeDetectorRef);
|
|
221
221
|
onInit(callback) {
|
|
222
222
|
if (this.#initialised) {
|
|
223
223
|
callback();
|
|
@@ -226,25 +226,44 @@ class DisposableComponent extends GarbageCollector {
|
|
|
226
226
|
this.#initCallbacks.push(callback);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
+
get loaded$() {
|
|
230
|
+
return this.#_loaded$.readonly$;
|
|
231
|
+
}
|
|
229
232
|
ngOnInit() {
|
|
230
233
|
this.#initCallbacks.forEach(it => it());
|
|
234
|
+
this.#asyncLoadables.forEach(it => it.ensureLoaded());
|
|
235
|
+
if (this.#awaitedLoadables.length > 0) {
|
|
236
|
+
Promise.all(this.#awaitedLoadables.map(it => {
|
|
237
|
+
return it.ensureLoaded(); //.then(() => console.log(`${it.constructor.name} loaded`));
|
|
238
|
+
})).then(() => {
|
|
239
|
+
this.#_loaded$.value = true;
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
this.#_loaded$.value = true;
|
|
244
|
+
}
|
|
231
245
|
this.#initialised = true;
|
|
232
246
|
}
|
|
233
|
-
ngOnDestroy() {
|
|
234
|
-
this.dispose();
|
|
235
|
-
}
|
|
236
247
|
inject(token) {
|
|
237
248
|
return inject(token);
|
|
238
249
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
250
|
+
injectLoadable(token, options) {
|
|
251
|
+
const loadable = inject(token);
|
|
252
|
+
if (this.loaded$.value) {
|
|
253
|
+
loadable.ensureLoaded();
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
if (!options || options.wait === true) {
|
|
257
|
+
this.#awaitedLoadables.push(loadable);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
this.#asyncLoadables.push(loadable);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return loadable;
|
|
264
|
+
}
|
|
265
|
+
ngOnDestroy() {
|
|
266
|
+
this.dispose();
|
|
248
267
|
}
|
|
249
268
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DisposableComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
250
269
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: DisposableComponent, usesInheritance: true, ngImport: i0 });
|
|
@@ -717,42 +736,42 @@ var CommandFace;
|
|
|
717
736
|
}
|
|
718
737
|
}
|
|
719
738
|
__decorate([
|
|
720
|
-
|
|
739
|
+
Memoize(),
|
|
721
740
|
__metadata("design:type", Object),
|
|
722
741
|
__metadata("design:paramtypes", [])
|
|
723
742
|
], Adapter.prototype, "text", null);
|
|
724
743
|
__decorate([
|
|
725
|
-
|
|
744
|
+
Memoize(),
|
|
726
745
|
__metadata("design:type", Object),
|
|
727
746
|
__metadata("design:paramtypes", [])
|
|
728
747
|
], Adapter.prototype, "icon", null);
|
|
729
748
|
__decorate([
|
|
730
|
-
|
|
749
|
+
Memoize(),
|
|
731
750
|
__metadata("design:type", Object),
|
|
732
751
|
__metadata("design:paramtypes", [])
|
|
733
752
|
], Adapter.prototype, "iconPosition", null);
|
|
734
753
|
__decorate([
|
|
735
|
-
|
|
754
|
+
Memoize(),
|
|
736
755
|
__metadata("design:type", Object),
|
|
737
756
|
__metadata("design:paramtypes", [])
|
|
738
757
|
], Adapter.prototype, "tooltip", null);
|
|
739
758
|
__decorate([
|
|
740
|
-
|
|
759
|
+
Memoize(),
|
|
741
760
|
__metadata("design:type", Boolean),
|
|
742
761
|
__metadata("design:paramtypes", [])
|
|
743
762
|
], Adapter.prototype, "iconPositionStart", null);
|
|
744
763
|
__decorate([
|
|
745
|
-
|
|
764
|
+
Memoize(),
|
|
746
765
|
__metadata("design:type", Boolean),
|
|
747
766
|
__metadata("design:paramtypes", [])
|
|
748
767
|
], Adapter.prototype, "iconPositionEnd", null);
|
|
749
768
|
__decorate([
|
|
750
|
-
|
|
769
|
+
Memoize(),
|
|
751
770
|
__metadata("design:type", String),
|
|
752
771
|
__metadata("design:paramtypes", [])
|
|
753
772
|
], Adapter.prototype, "color", null);
|
|
754
773
|
__decorate([
|
|
755
|
-
|
|
774
|
+
Memoize(),
|
|
756
775
|
__metadata("design:type", String),
|
|
757
776
|
__metadata("design:paramtypes", [])
|
|
758
777
|
], Adapter.prototype, "style", null);
|
|
@@ -823,7 +842,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
823
842
|
args: ["class.disable-scroll"]
|
|
824
843
|
}] } });
|
|
825
844
|
|
|
826
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
827
845
|
class IconComponent {
|
|
828
846
|
_icon;
|
|
829
847
|
prefix;
|
|
@@ -855,13 +873,11 @@ class IconComponent {
|
|
|
855
873
|
return `fa-${this.suffix}`;
|
|
856
874
|
}
|
|
857
875
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
858
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: IconComponent, selector: "aup-icon", inputs: { icon: "icon" }, host: { properties: { "attr.icon": "this.icon" }
|
|
876
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: IconComponent, selector: "aup-icon", inputs: { icon: "icon" }, host: { properties: { "attr.icon": "this.icon" } }, ngImport: i0, 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\" class=\"faIconWrapper\">\n <i class=\"fa-solid\" [class]=\"faIcon\"></i>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n", styles: [":host{display:inline-flex;--resolved-size: var(--aup-icon-size, 24px);width:var(--resolved-size) fa-icon;width-vertical-align:middle}:host .faIconWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:var(--resolved-size);height:var(--resolved-size)}:host .svgIcon{width:var(--resolved-size);height:var(--resolved-size)}:host :host(.mat-chip-remove){--aup-icon-size: 18px}:host mat-icon{font-size:var(--resolved-size);width:var(--resolved-size);height:var(--resolved-size);margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
859
877
|
}
|
|
860
878
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: IconComponent, decorators: [{
|
|
861
879
|
type: Component,
|
|
862
|
-
args: [{ selector: 'aup-icon',
|
|
863
|
-
class: "mat-icon" // this ensures angular form styles that target mat icon also work with us
|
|
864
|
-
}, 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\" class=\"faIconWrapper\">\n <i class=\"fa-solid\" [class]=\"faIcon\"></i>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n", styles: [":host{display:inline-flex;--resolved-size: var(--aup-icon-size, 24px);width:var(--resolved-size)!important;min-width:var(--resolved-size)!important;height:var(--resolved-size)!important;min-height:var(--resolved-size)!important}:host fa-icon{vertical-align:middle}:host .faIconWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:var(--resolved-size)!important;height:var(--resolved-size)!important}:host .svgIcon{width:var(--resolved-size)!important;height:var(--resolved-size)!important}:host :host(.mat-chip-remove){--aup-icon-size: 18px}:host mat-icon{font-size:var(--resolved-size)!important;width:var(--resolved-size)!important;height:var(--resolved-size)!important;margin-right:0!important}\n"] }]
|
|
880
|
+
args: [{ selector: 'aup-icon', 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\" class=\"faIconWrapper\">\n <i class=\"fa-solid\" [class]=\"faIcon\"></i>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n", styles: [":host{display:inline-flex;--resolved-size: var(--aup-icon-size, 24px);width:var(--resolved-size) fa-icon;width-vertical-align:middle}:host .faIconWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:var(--resolved-size);height:var(--resolved-size)}:host .svgIcon{width:var(--resolved-size);height:var(--resolved-size)}:host :host(.mat-chip-remove){--aup-icon-size: 18px}:host mat-icon{font-size:var(--resolved-size);width:var(--resolved-size);height:var(--resolved-size);margin-right:0!important}\n"] }]
|
|
865
881
|
}], propDecorators: { icon: [{
|
|
866
882
|
type: Input
|
|
867
883
|
}, {
|
|
@@ -892,7 +908,6 @@ class CommandFaceComponent extends DisposableComponent {
|
|
|
892
908
|
// tslint:disable-next-line:no-input-rename
|
|
893
909
|
get _rawFaces() { return this.#_rawFaces_accessor_storage; }
|
|
894
910
|
set _rawFaces(value) { this.#_rawFaces_accessor_storage = value; }
|
|
895
|
-
hasTextAndLeadingIcon$;
|
|
896
911
|
set face(face) {
|
|
897
912
|
this.faces$.value = [face];
|
|
898
913
|
}
|
|
@@ -912,7 +927,6 @@ class CommandFaceComponent extends DisposableComponent {
|
|
|
912
927
|
const activeFace = this.faceAdapters.first();
|
|
913
928
|
this.activeIcon = activeFace.pluck("icon");
|
|
914
929
|
this.activeColor = activeFace.pluck("color");
|
|
915
|
-
this.hasTextAndLeadingIcon$ = valueOf.all(this.activeIcon.isNotNil(), activeFace.pluckString('text').isNotBlank(), activeFace.pluck("iconPosition").doesNotEqual(CommandFace.Position.END)).areTruthy();
|
|
916
930
|
}
|
|
917
931
|
shouldIncludeIcon(face) {
|
|
918
932
|
return (!this.ignoreIcon && face.icon) || this.includeMissingIconInLayout;
|
|
@@ -926,11 +940,8 @@ class CommandFaceComponent extends DisposableComponent {
|
|
|
926
940
|
get color() {
|
|
927
941
|
return this.activeColor.value;
|
|
928
942
|
}
|
|
929
|
-
get hasTextAndIcon() {
|
|
930
|
-
return this.hasTextAndLeadingIcon$.value;
|
|
931
|
-
}
|
|
932
943
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandFaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
933
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CommandFaceComponent, selector: "aup-command-face", inputs: { _rawFaces: ["faces", "_rawFaces"], face: "face", ignoreIcon: "ignoreIcon", ignoreText: "ignoreText", includeMissingIconInLayout: "includeMissingIconInLayout" }, host: { properties: { "class.hide-icon": "this.requiresMissingIconInLayout", "attr.color": "this.color"
|
|
944
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CommandFaceComponent, selector: "aup-command-face", inputs: { _rawFaces: ["faces", "_rawFaces"], face: "face", ignoreIcon: "ignoreIcon", ignoreText: "ignoreText", includeMissingIconInLayout: "includeMissingIconInLayout" }, host: { properties: { "class.hide-icon": "this.requiresMissingIconInLayout", "attr.color": "this.color" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"face-container\" *ngFor=\"let face of faceAdapters.value\">\n <aup-icon *ngIf=\"hasIconStart(face)\" [icon]=\"face.icon\"></aup-icon>\n <span *ngIf=\"face.text\">{{face.text}}</span>\n <aup-icon *ngIf=\"hasIconEnd(face)\" [icon]=\"face.icon\"></aup-icon>\n</div>\n", styles: ["aup-command-face{--icon-gap: var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container:not(:first-child){visibility:hidden}aup-command-face>.face-container *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}aup-command-face.centered{justify-items:center}aup-command-face.start{justify-items:self-start}aup-command-face.end{justify-items:self-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
934
945
|
}
|
|
935
946
|
__decorate([
|
|
936
947
|
StoreInListModel("faces$"),
|
|
@@ -938,7 +949,7 @@ __decorate([
|
|
|
938
949
|
], CommandFaceComponent.prototype, "_rawFaces", null);
|
|
939
950
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandFaceComponent, decorators: [{
|
|
940
951
|
type: Component,
|
|
941
|
-
args: [{ selector: 'aup-command-face', encapsulation: ViewEncapsulation.None, template: "<div class=\"face-container\" *ngFor=\"let face of faceAdapters.value\">\n <aup-icon *ngIf=\"hasIconStart(face)\" [icon]=\"face.icon\"></aup-icon>\n <span *ngIf=\"face.text\">{{face.text}}</span>\n <aup-icon *ngIf=\"hasIconEnd(face)\" [icon]=\"face.icon\"></aup-icon>\n</div>\n", styles: ["aup-command-face{--icon-gap: var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container
|
|
952
|
+
args: [{ selector: 'aup-command-face', encapsulation: ViewEncapsulation.None, template: "<div class=\"face-container\" *ngFor=\"let face of faceAdapters.value\">\n <aup-icon *ngIf=\"hasIconStart(face)\" [icon]=\"face.icon\"></aup-icon>\n <span *ngIf=\"face.text\">{{face.text}}</span>\n <aup-icon *ngIf=\"hasIconEnd(face)\" [icon]=\"face.icon\"></aup-icon>\n</div>\n", styles: ["aup-command-face{--icon-gap: var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container:not(:first-child){visibility:hidden}aup-command-face>.face-container *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}aup-command-face.centered{justify-items:center}aup-command-face.start{justify-items:self-start}aup-command-face.end{justify-items:self-end}\n"] }]
|
|
942
953
|
}], ctorParameters: function () { return []; }, propDecorators: { _rawFaces: [{
|
|
943
954
|
type: Input,
|
|
944
955
|
args: ['faces']
|
|
@@ -956,9 +967,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
956
967
|
}], color: [{
|
|
957
968
|
type: HostBinding,
|
|
958
969
|
args: ['attr.color']
|
|
959
|
-
}], hasTextAndIcon: [{
|
|
960
|
-
type: HostBinding,
|
|
961
|
-
args: ['class.has-text-and-leading-icon']
|
|
962
970
|
}] } });
|
|
963
971
|
|
|
964
972
|
/**
|
|
@@ -1062,11 +1070,11 @@ class CardContainerComponent extends AbstractCardContainerComponent {
|
|
|
1062
1070
|
}
|
|
1063
1071
|
}
|
|
1064
1072
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CardContainerComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1065
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CardContainerComponent, selector: "aup-card-container", inputs: { columnCount: "columnCount", enableScroll: "enableScroll" }, host: { properties: { "class.auto-columns": "this.isAutoColumns", "class.single-column": "this.isSingleColumn" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]
|
|
1073
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CardContainerComponent, selector: "aup-card-container", inputs: { columnCount: "columnCount", enableScroll: "enableScroll" }, host: { properties: { "class.auto-columns": "this.isAutoColumns", "class.single-column": "this.isSingleColumn" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]\"></ng-content>\n</div>\n\n<ng-template #content>\n <div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled$.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" 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 </div>\n</ng-template>\n\n<div class=\"no-scroll-container\" *ngIf=\"!enableScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enableScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer]\"></ng-content>\n</div>\n\n", styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-width: var(--card-width, 300px);--resolved-card-max-width: var(--card-max-width, auto);--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns>*>.card-container{grid-template-columns:repeat(auto-fit,minmax(var(--resolved-card-width),var(--resolved-card-max-width)));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))}:host:not(.auto-columns)>*>.card-container{grid-template-columns:repeat(var(--aup-card-container-column-count),1fr)}.card-container{display:grid;box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));max-width:100%;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap)}aup-scroll-container,.no-scroll-container{flex:1}.add-card-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.add-card-container:hover{border-color:transparent;background-color:#fff;color:#0000008a}.add-card-template-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: ScrollContainerComponent, selector: "aup-scroll-container", inputs: ["disableScroll$", "disableScroll"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
1066
1074
|
}
|
|
1067
1075
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CardContainerComponent, decorators: [{
|
|
1068
1076
|
type: Component,
|
|
1069
|
-
args: [{ selector: 'aup-card-container', template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]
|
|
1077
|
+
args: [{ selector: 'aup-card-container', template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]\"></ng-content>\n</div>\n\n<ng-template #content>\n <div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled$.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" 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 </div>\n</ng-template>\n\n<div class=\"no-scroll-container\" *ngIf=\"!enableScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enableScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer]\"></ng-content>\n</div>\n\n", styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-width: var(--card-width, 300px);--resolved-card-max-width: var(--card-max-width, auto);--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns>*>.card-container{grid-template-columns:repeat(auto-fit,minmax(var(--resolved-card-width),var(--resolved-card-max-width)));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))}:host:not(.auto-columns)>*>.card-container{grid-template-columns:repeat(var(--aup-card-container-column-count),1fr)}.card-container{display:grid;box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));max-width:100%;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap)}aup-scroll-container,.no-scroll-container{flex:1}.add-card-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.add-card-container:hover{border-color:transparent;background-color:#fff;color:#0000008a}.add-card-template-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}\n"] }]
|
|
1070
1078
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { columnCount: [{
|
|
1071
1079
|
type: Input
|
|
1072
1080
|
}], enableScroll: [{
|
|
@@ -1142,24 +1150,14 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1142
1150
|
activeFace$;
|
|
1143
1151
|
iconOnly$;
|
|
1144
1152
|
tooltip$;
|
|
1145
|
-
visible$;
|
|
1146
1153
|
constructor(element, parent) {
|
|
1147
1154
|
super(element, parent);
|
|
1148
1155
|
const { chain, switchOn } = Dsl.disposeWith(this);
|
|
1149
|
-
this.faces$ = chain(this.command.busy$)
|
|
1150
|
-
.mapToList(busy => {
|
|
1156
|
+
this.faces$ = chain(this.command.busy$).mapToList(busy => {
|
|
1151
1157
|
return busy ?
|
|
1152
|
-
[this.busyFace$.value
|
|
1153
|
-
[this.face$.value
|
|
1154
|
-
}, {
|
|
1155
|
-
allowNil: true,
|
|
1156
|
-
dependsOn: [
|
|
1157
|
-
this.face$,
|
|
1158
|
-
this.busyFace$,
|
|
1159
|
-
this.command.defaultFace$,
|
|
1160
|
-
this.command.busyFace$
|
|
1161
|
-
]
|
|
1162
|
-
})
|
|
1158
|
+
[this.busyFace$.value, this.face$.value] :
|
|
1159
|
+
[this.face$.value, this.busyFace$.value];
|
|
1160
|
+
}, { allowNil: true, dependsOn: [this.face$, this.busyFace$] })
|
|
1163
1161
|
.rejectNil();
|
|
1164
1162
|
this.activeFace$ = this.faces$.first();
|
|
1165
1163
|
this.buttonStyle$ = chain(this.activeFace$).map(f => CommandFace.getStyleOf(f));
|
|
@@ -1168,19 +1166,18 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1168
1166
|
this.iconOnly$ = this.faces$.select(face => {
|
|
1169
1167
|
return isEmpty(CommandFace.getTextOf(face)) && !isEmpty(CommandFace.getIconOf(face));
|
|
1170
1168
|
}).count().equals(this.faces$.count());
|
|
1171
|
-
this.visible$ = chain(this.command.visible$);
|
|
1172
|
-
}
|
|
1173
|
-
get cssDisplayProperty() {
|
|
1174
|
-
return this.visible$.value ? undefined : 'none';
|
|
1175
1169
|
}
|
|
1176
1170
|
isActive(face) {
|
|
1177
1171
|
return this.activeFace$.query().equals(face);
|
|
1178
1172
|
}
|
|
1173
|
+
getFace() {
|
|
1174
|
+
return this.face;
|
|
1175
|
+
}
|
|
1179
1176
|
requestFocus() {
|
|
1180
1177
|
this.button.focus();
|
|
1181
1178
|
}
|
|
1182
1179
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandComponent, deps: [{ token: i0.ElementRef }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1183
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CommandComponent, selector: "aup-command", inputs: { command: "command", face$: "face$", face: "face", busyFace$: "busyFace$", busyFace: "busyFace", alignFace: "alignFace" }, host: { properties: { "class": "this.alignFace"
|
|
1180
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CommandComponent, selector: "aup-command", inputs: { command: "command", face$: "face$", face: "face", busyFace$: "busyFace$", busyFace: "busyFace", alignFace: "alignFace" }, host: { properties: { "class": "this.alignFace" } }, viewQueries: [{ propertyName: "button", first: true, predicate: MatButton, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"iconOnly$.value\">\n <button mat-icon-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n</ng-container>\n<ng-container *ngIf=\"!iconOnly$.value\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFace.Style.STROKED\">\n <button mat-stroked-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFace.Style.RAISED\">\n <button mat-raised-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button mat-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}button{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
1184
1181
|
}
|
|
1185
1182
|
__decorate([
|
|
1186
1183
|
Proxify(),
|
|
@@ -1228,9 +1225,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1228
1225
|
}], button: [{
|
|
1229
1226
|
type: ViewChild,
|
|
1230
1227
|
args: [MatButton]
|
|
1231
|
-
}], cssDisplayProperty: [{
|
|
1232
|
-
type: HostBinding,
|
|
1233
|
-
args: ["style.display"]
|
|
1234
1228
|
}] } });
|
|
1235
1229
|
|
|
1236
1230
|
/**
|
|
@@ -1258,12 +1252,12 @@ class AbstractPopupMenuComponent extends PopupAwareComponent {
|
|
|
1258
1252
|
xPosition = 'after';
|
|
1259
1253
|
yPosition = 'below';
|
|
1260
1254
|
triggers;
|
|
1255
|
+
#enabled_accessor_storage;
|
|
1256
|
+
get enabled() { return this.#enabled_accessor_storage; }
|
|
1257
|
+
set enabled(value) { this.#enabled_accessor_storage = value; }
|
|
1261
1258
|
#enabled$_accessor_storage = proxify((ValueModel));
|
|
1262
1259
|
get enabled$() { return this.#enabled$_accessor_storage; }
|
|
1263
1260
|
set enabled$(value) { this.#enabled$_accessor_storage = value; }
|
|
1264
|
-
#enabled_accessor_storage = true;
|
|
1265
|
-
get enabled() { return this.#enabled_accessor_storage; }
|
|
1266
|
-
set enabled(value) { this.#enabled_accessor_storage = value; }
|
|
1267
1261
|
children;
|
|
1268
1262
|
faces$;
|
|
1269
1263
|
constructor(element, parent) {
|
|
@@ -1305,16 +1299,16 @@ class AbstractPopupMenuComponent extends PopupAwareComponent {
|
|
|
1305
1299
|
return this.faceAdapter.face;
|
|
1306
1300
|
}
|
|
1307
1301
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractPopupMenuComponent, deps: [{ token: i0.ElementRef }, { token: POPUP_CONTAINER }], target: i0.ɵɵFactoryTarget.Component });
|
|
1308
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractPopupMenuComponent, selector: "aup-abstract-popup-menu", inputs: { xPosition: "xPosition", yPosition: "yPosition", enabled
|
|
1302
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractPopupMenuComponent, selector: "aup-abstract-popup-menu", inputs: { xPosition: "xPosition", yPosition: "yPosition", enabled: "enabled", enabled$: "enabled$" }, viewQueries: [{ propertyName: "triggers", predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
1309
1303
|
}
|
|
1304
|
+
__decorate([
|
|
1305
|
+
StoreInValueModel(),
|
|
1306
|
+
__metadata("design:type", Boolean)
|
|
1307
|
+
], AbstractPopupMenuComponent.prototype, "enabled", null);
|
|
1310
1308
|
__decorate([
|
|
1311
1309
|
Proxify(),
|
|
1312
1310
|
__metadata("design:type", Object)
|
|
1313
1311
|
], AbstractPopupMenuComponent.prototype, "enabled$", null);
|
|
1314
|
-
__decorate([
|
|
1315
|
-
StoreInValueModel(),
|
|
1316
|
-
__metadata("design:type", Object)
|
|
1317
|
-
], AbstractPopupMenuComponent.prototype, "enabled", null);
|
|
1318
1312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractPopupMenuComponent, decorators: [{
|
|
1319
1313
|
type: Component,
|
|
1320
1314
|
args: [{ selector: 'aup-abstract-popup-menu', template: '' }]
|
|
@@ -1328,10 +1322,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1328
1322
|
}], triggers: [{
|
|
1329
1323
|
type: ViewChildren,
|
|
1330
1324
|
args: [MatMenuTrigger]
|
|
1331
|
-
}], enabled$: [{
|
|
1332
|
-
type: Input
|
|
1333
1325
|
}], enabled: [{
|
|
1334
1326
|
type: Input
|
|
1327
|
+
}], enabled$: [{
|
|
1328
|
+
type: Input
|
|
1335
1329
|
}] } });
|
|
1336
1330
|
|
|
1337
1331
|
class CommandContainer extends GarbageCollector {
|
|
@@ -1364,15 +1358,13 @@ class ToolBarComponent extends CommandContainer {
|
|
|
1364
1358
|
get orientation() {
|
|
1365
1359
|
return CommandContainer.Orientation.HORIZONTAL;
|
|
1366
1360
|
}
|
|
1367
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolBarComponent, deps: [{ token: CommandContainer
|
|
1361
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolBarComponent, deps: [{ token: CommandContainer }], target: i0.ɵɵFactoryTarget.Component });
|
|
1368
1362
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ToolBarComponent, selector: "aup-tool-bar", usesInheritance: true, ngImport: i0, template: '<div class="toolbar-content"><ng-content></ng-content></div>', isInline: true, styles: [":host{display:inline-block}.toolbar-content{display:inline-flex;flex-direction:row;align-items:center}.toolbar-content>aup-separator{align-self:stretch;margin:4px 0 4px 8px}.toolbar-content>aup-flex{flex:1}.toolbar-content>*+*{margin-left:8px}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
1369
1363
|
}
|
|
1370
1364
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolBarComponent, decorators: [{
|
|
1371
1365
|
type: Component,
|
|
1372
1366
|
args: [{ selector: 'aup-tool-bar', template: '<div class="toolbar-content"><ng-content></ng-content></div>', encapsulation: ViewEncapsulation.None, styles: [":host{display:inline-block}.toolbar-content{display:inline-flex;flex-direction:row;align-items:center}.toolbar-content>aup-separator{align-self:stretch;margin:4px 0 4px 8px}.toolbar-content>aup-flex{flex:1}.toolbar-content>*+*{margin-left:8px}\n"] }]
|
|
1373
|
-
}], ctorParameters: function () { return [{ type: CommandContainer
|
|
1374
|
-
type: Optional
|
|
1375
|
-
}] }]; } });
|
|
1367
|
+
}], ctorParameters: function () { return [{ type: CommandContainer }]; } });
|
|
1376
1368
|
|
|
1377
1369
|
/**
|
|
1378
1370
|
*
|
|
@@ -1683,6 +1675,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1683
1675
|
args: ['blur']
|
|
1684
1676
|
}] } });
|
|
1685
1677
|
|
|
1678
|
+
/* tslint:disable:no-input-rename */
|
|
1686
1679
|
const INPUT_TOKEN_HACK = new InjectionToken("INPUT_TOKEN_HACK");
|
|
1687
1680
|
class AbstractInputComponent extends DisposableComponent {
|
|
1688
1681
|
onValueEditedListeners = new EventListenerList();
|
|
@@ -1697,16 +1690,11 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1697
1690
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1698
1691
|
*/
|
|
1699
1692
|
formValue$;
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
set i18n$(value) { this.#i18n$_accessor_storage = value; }
|
|
1703
|
-
#i18n_accessor_storage;
|
|
1704
|
-
get i18n() { return this.#i18n_accessor_storage; }
|
|
1705
|
-
set i18n(value) { this.#i18n_accessor_storage = value; }
|
|
1706
|
-
_label;
|
|
1693
|
+
label;
|
|
1694
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1707
1695
|
userFloatLabel = 'always'; // TODO: make this an injectable default
|
|
1708
|
-
|
|
1709
|
-
|
|
1696
|
+
hint;
|
|
1697
|
+
placeholder;
|
|
1710
1698
|
dense = false;
|
|
1711
1699
|
_enabled$ = this.registerDisposable(new DelegatingValueModel());
|
|
1712
1700
|
set enabled$(condition$) {
|
|
@@ -1773,9 +1761,6 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1773
1761
|
isEnabled() {
|
|
1774
1762
|
return this.enabled$.value;
|
|
1775
1763
|
}
|
|
1776
|
-
get disabled() {
|
|
1777
|
-
return !this.isEnabled();
|
|
1778
|
-
}
|
|
1779
1764
|
hasErrors() {
|
|
1780
1765
|
return !this.errorList$.query().isEmpty();
|
|
1781
1766
|
}
|
|
@@ -1788,15 +1773,6 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1788
1773
|
get focusContext() {
|
|
1789
1774
|
return this.formValue$.focusContext;
|
|
1790
1775
|
}
|
|
1791
|
-
get label() {
|
|
1792
|
-
return this._label ?? this.i18n?.label();
|
|
1793
|
-
}
|
|
1794
|
-
get hint() {
|
|
1795
|
-
return this._hint ?? this.hackyGetI18n("hint");
|
|
1796
|
-
}
|
|
1797
|
-
get placeholder() {
|
|
1798
|
-
return this._placeholder ?? this.hackyGetI18n("placeholder");
|
|
1799
|
-
}
|
|
1800
1776
|
get floatLabel() {
|
|
1801
1777
|
// return this.dense ? 'never' : this.userFloatLabel;
|
|
1802
1778
|
return this.userFloatLabel;
|
|
@@ -1811,45 +1787,24 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1811
1787
|
onValueEdited(callback) {
|
|
1812
1788
|
return this.onValueEditedListeners.add(callback);
|
|
1813
1789
|
}
|
|
1814
|
-
hackyGetI18n(key) {
|
|
1815
|
-
// TODO: update I18n to make it possible to get an optional value with return the missing key message.
|
|
1816
|
-
const i18nFn = this.i18n ? this.i18n[key] : undefined;
|
|
1817
|
-
const i18nValue = i18nFn && i18nFn();
|
|
1818
|
-
return i18nValue?.startsWith("missing key") ? undefined : i18nValue;
|
|
1819
|
-
}
|
|
1820
1790
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractInputComponent, deps: [{ token: INPUT_TOKEN_HACK }], target: i0.ɵɵFactoryTarget.Component });
|
|
1821
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractInputComponent, selector: "ng-component", inputs: {
|
|
1791
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractInputComponent, selector: "ng-component", inputs: { label: "label", userFloatLabel: ["floatLabel", "userFloatLabel"], hint: "hint", placeholder: "placeholder", dense: "dense", enabled$: "enabled$", focusCommand: ["command.focus", "focusCommand"], blurCommand: ["command.blur", "blurCommand"], enterCommand: ["command.enter", "enterCommand"], escapeCommand: ["command.escape", "escapeCommand"], clickCommand: ["command.click", "clickCommand"] }, outputs: { focus: "focus", blur: "blur", enterKey: "enterKey", escapeKey: "escapeKey" }, host: { listeners: { "click": "notifyClick()", "focusin": "notifyFocusIn()", "focusout": "notifyFocusOut()" }, properties: { "class.dense": "this.dense", "class": "this.baseClassName" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
1822
1792
|
}
|
|
1823
|
-
__decorate([
|
|
1824
|
-
Proxify(),
|
|
1825
|
-
__metadata("design:type", Object)
|
|
1826
|
-
], AbstractInputComponent.prototype, "i18n$", null);
|
|
1827
|
-
__decorate([
|
|
1828
|
-
StoreInValueModel(),
|
|
1829
|
-
__metadata("design:type", Object)
|
|
1830
|
-
], AbstractInputComponent.prototype, "i18n", null);
|
|
1831
1793
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractInputComponent, decorators: [{
|
|
1832
1794
|
type: Component,
|
|
1833
1795
|
args: [{ template: '' }]
|
|
1834
1796
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1835
1797
|
type: Inject,
|
|
1836
1798
|
args: [INPUT_TOKEN_HACK]
|
|
1837
|
-
}] }]; }, propDecorators: {
|
|
1838
|
-
type: Input
|
|
1839
|
-
}], i18n: [{
|
|
1799
|
+
}] }]; }, propDecorators: { label: [{
|
|
1840
1800
|
type: Input
|
|
1841
|
-
}], _label: [{
|
|
1842
|
-
type: Input,
|
|
1843
|
-
args: ["label"]
|
|
1844
1801
|
}], userFloatLabel: [{
|
|
1845
1802
|
type: Input,
|
|
1846
1803
|
args: ['floatLabel']
|
|
1847
|
-
}],
|
|
1848
|
-
type: Input
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
type: Input,
|
|
1852
|
-
args: ['placeholder']
|
|
1804
|
+
}], hint: [{
|
|
1805
|
+
type: Input
|
|
1806
|
+
}], placeholder: [{
|
|
1807
|
+
type: Input
|
|
1853
1808
|
}], dense: [{
|
|
1854
1809
|
type: HostBinding,
|
|
1855
1810
|
args: ['class.dense']
|
|
@@ -1892,9 +1847,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1892
1847
|
}], notifyFocusOut: [{
|
|
1893
1848
|
type: HostListener,
|
|
1894
1849
|
args: ['focusout']
|
|
1895
|
-
}], disabled: [{
|
|
1896
|
-
type: HostBinding,
|
|
1897
|
-
args: ["class.disabled"]
|
|
1898
1850
|
}] } });
|
|
1899
1851
|
|
|
1900
1852
|
class AbstractListInputComponent extends AbstractInputComponent {
|
|
@@ -2132,15 +2084,12 @@ class CheckboxInputComponent extends AbstractValueInputComponent {
|
|
|
2132
2084
|
constructor() {
|
|
2133
2085
|
super();
|
|
2134
2086
|
}
|
|
2135
|
-
select($event) {
|
|
2136
|
-
this.componentValue$.value = $event.checked;
|
|
2137
|
-
}
|
|
2138
2087
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2139
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n
|
|
2088
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValue$.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4$3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
2140
2089
|
}
|
|
2141
2090
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, decorators: [{
|
|
2142
2091
|
type: Component,
|
|
2143
|
-
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n
|
|
2092
|
+
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValue$.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"] }]
|
|
2144
2093
|
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
2145
2094
|
type: Input
|
|
2146
2095
|
}], labelPosition: [{
|
|
@@ -2179,7 +2128,7 @@ class MultipleSelectInputComponent extends AbstractListInputComponent {
|
|
|
2179
2128
|
const self = this;
|
|
2180
2129
|
this.registerDisposable(new Binding(this.componentList$, this.ids$, {
|
|
2181
2130
|
toLeft(selectedItems, currentLeftValue) {
|
|
2182
|
-
const newValues = selectedItems.map(it => lookup.get(it)).filter(it =>
|
|
2131
|
+
const newValues = selectedItems.map(it => lookup.get(it)).filter(it => !it);
|
|
2183
2132
|
// if our lookup didn't find anything then we return the previous values so we don't clobber selections when the options go empty
|
|
2184
2133
|
return newValues.length < 1 && selectedItems.length > 0 ? currentLeftValue : newValues;
|
|
2185
2134
|
},
|
|
@@ -2190,7 +2139,7 @@ class MultipleSelectInputComponent extends AbstractListInputComponent {
|
|
|
2190
2139
|
})).writeRight();
|
|
2191
2140
|
}
|
|
2192
2141
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: MultipleSelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2193
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4$
|
|
2142
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4$4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
2194
2143
|
}
|
|
2195
2144
|
__decorate([
|
|
2196
2145
|
Proxify(),
|
|
@@ -2218,142 +2167,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
2218
2167
|
|
|
2219
2168
|
class NumberInputComponent extends AbstractValueInputComponent {
|
|
2220
2169
|
autocomplete;
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
#min_accessor_storage = Number.MIN_SAFE_INTEGER;
|
|
2225
|
-
get min() { return this.#min_accessor_storage; }
|
|
2226
|
-
set min(value) { this.#min_accessor_storage = value; }
|
|
2227
|
-
#max$_accessor_storage = proxify((ValueModel));
|
|
2228
|
-
get max$() { return this.#max$_accessor_storage; }
|
|
2229
|
-
set max$(value) { this.#max$_accessor_storage = value; }
|
|
2230
|
-
#max_accessor_storage = Number.MAX_SAFE_INTEGER;
|
|
2231
|
-
get max() { return this.#max_accessor_storage; }
|
|
2232
|
-
set max(value) { this.#max_accessor_storage = value; }
|
|
2233
|
-
incrementCommand;
|
|
2234
|
-
decrementCommand;
|
|
2170
|
+
min = Number.MIN_SAFE_INTEGER;
|
|
2171
|
+
max = Number.MAX_SAFE_INTEGER;
|
|
2172
|
+
iconPrefix;
|
|
2235
2173
|
constructor() {
|
|
2236
2174
|
super();
|
|
2237
|
-
const { chain } = Dsl.disposeWith(this);
|
|
2238
|
-
const normalisedValue$ = chain(this.value$).otherwise(0);
|
|
2239
|
-
this.incrementCommand = Command.create(() => {
|
|
2240
|
-
this.value$.value = normalisedValue$.value + 1;
|
|
2241
|
-
}).enableWhile(chain.numericValue(normalisedValue$).isLessThan(this.max$).and(this.enabled$));
|
|
2242
|
-
this.decrementCommand = Command.create(() => {
|
|
2243
|
-
this.value$.value = normalisedValue$.value - 1;
|
|
2244
|
-
}).enableWhile(chain.numericValue(normalisedValue$).isGreaterThan(this.min$).and(this.enabled$));
|
|
2245
2175
|
}
|
|
2246
2176
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2247
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min
|
|
2177
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min: "min", max: "max", iconPrefix: "iconPrefix" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n</mat-form-field>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2$4.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2248
2178
|
}
|
|
2249
|
-
__decorate([
|
|
2250
|
-
Proxify(),
|
|
2251
|
-
__metadata("design:type", ValueModel)
|
|
2252
|
-
], NumberInputComponent.prototype, "min$", null);
|
|
2253
|
-
__decorate([
|
|
2254
|
-
StoreInValueModel(),
|
|
2255
|
-
__metadata("design:type", Object)
|
|
2256
|
-
], NumberInputComponent.prototype, "min", null);
|
|
2257
|
-
__decorate([
|
|
2258
|
-
Proxify(),
|
|
2259
|
-
__metadata("design:type", ValueModel)
|
|
2260
|
-
], NumberInputComponent.prototype, "max$", null);
|
|
2261
|
-
__decorate([
|
|
2262
|
-
StoreInValueModel(),
|
|
2263
|
-
__metadata("design:type", Object)
|
|
2264
|
-
], NumberInputComponent.prototype, "max", null);
|
|
2265
2179
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
2266
2180
|
type: Component,
|
|
2267
|
-
args: [{ selector: 'aup-number-input', template: "<mat-form-field floatLabel=\"
|
|
2181
|
+
args: [{ selector: 'aup-number-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n</mat-form-field>\n" }]
|
|
2268
2182
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2269
2183
|
type: Input
|
|
2270
|
-
}], min$: [{
|
|
2271
|
-
type: Input
|
|
2272
2184
|
}], min: [{
|
|
2273
2185
|
type: Input
|
|
2274
|
-
}], max$: [{
|
|
2275
|
-
type: Input
|
|
2276
2186
|
}], max: [{
|
|
2277
2187
|
type: Input
|
|
2188
|
+
}], iconPrefix: [{
|
|
2189
|
+
type: Input
|
|
2278
2190
|
}] } });
|
|
2279
2191
|
|
|
2280
2192
|
class PasswordInputComponent extends AbstractValueInputComponent {
|
|
2281
2193
|
autocomplete;
|
|
2282
|
-
#enableShowPassword$_accessor_storage = proxify((ValueModel));
|
|
2283
|
-
get enableShowPassword$() { return this.#enableShowPassword$_accessor_storage; }
|
|
2284
|
-
set enableShowPassword$(value) { this.#enableShowPassword$_accessor_storage = value; }
|
|
2285
|
-
#enableShowPassword_accessor_storage = false;
|
|
2286
|
-
get enableShowPassword() { return this.#enableShowPassword_accessor_storage; }
|
|
2287
|
-
set enableShowPassword(value) { this.#enableShowPassword_accessor_storage = value; }
|
|
2288
|
-
showPassword$ = new MutableValueModel(false);
|
|
2289
|
-
toggleShowPasswordCommand;
|
|
2290
2194
|
constructor() {
|
|
2291
2195
|
super();
|
|
2292
|
-
const { chain, valueOf } = Dsl.disposeWith(this);
|
|
2293
|
-
const face$ = chain(this.showPassword$).map(show => {
|
|
2294
|
-
return {
|
|
2295
|
-
icon: () => show ? "mat:visibility_off" : "mat:visibility"
|
|
2296
|
-
};
|
|
2297
|
-
});
|
|
2298
|
-
this.toggleShowPasswordCommand = Command.create(() => {
|
|
2299
|
-
this.showPassword$.value = !this.showPassword$.value;
|
|
2300
|
-
})
|
|
2301
|
-
.withFace(face$)
|
|
2302
|
-
.enableWhile(chain.stringValue(this.componentValue$).isNotBlank());
|
|
2303
|
-
}
|
|
2304
|
-
get fieldType() {
|
|
2305
|
-
return this.showPassword$.value ? "text" : "password";
|
|
2306
2196
|
}
|
|
2307
2197
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PasswordInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2308
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PasswordInputComponent, selector: "aup-password-input", inputs: { autocomplete: "autocomplete"
|
|
2198
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PasswordInputComponent, selector: "aup-password-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
2309
2199
|
}
|
|
2310
|
-
__decorate([
|
|
2311
|
-
Proxify(),
|
|
2312
|
-
__metadata("design:type", Object)
|
|
2313
|
-
], PasswordInputComponent.prototype, "enableShowPassword$", null);
|
|
2314
|
-
__decorate([
|
|
2315
|
-
StoreInValueModel(),
|
|
2316
|
-
__metadata("design:type", Object)
|
|
2317
|
-
], PasswordInputComponent.prototype, "enableShowPassword", null);
|
|
2318
2200
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PasswordInputComponent, decorators: [{
|
|
2319
2201
|
type: Component,
|
|
2320
|
-
args: [{ selector: 'aup-password-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input
|
|
2321
|
-
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2322
|
-
type: Input
|
|
2323
|
-
}], enableShowPassword$: [{
|
|
2324
|
-
type: Input
|
|
2325
|
-
}], enableShowPassword: [{
|
|
2326
|
-
type: Input
|
|
2327
|
-
}] } });
|
|
2328
|
-
|
|
2329
|
-
class SearchInputComponent extends AbstractValueInputComponent {
|
|
2330
|
-
autocomplete;
|
|
2331
|
-
clearCommand;
|
|
2332
|
-
constructor() {
|
|
2333
|
-
super();
|
|
2334
|
-
this.dense = true;
|
|
2335
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
2336
|
-
this.clearCommand = Command.create(() => {
|
|
2337
|
-
this.componentValue$.value = "";
|
|
2338
|
-
});
|
|
2339
|
-
this.clearCommand.disableWhile(chain.stringValue(this.componentValue$).isBlank());
|
|
2340
|
-
}
|
|
2341
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SearchInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2342
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SearchInputComponent, selector: "aup-search-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <aup-icon matPrefix icon=\"mat:search\"></aup-icon>\n <button mat-icon-button matSuffix [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i2$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4$2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2343
|
-
}
|
|
2344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SearchInputComponent, decorators: [{
|
|
2345
|
-
type: Component,
|
|
2346
|
-
args: [{ selector: 'aup-search-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <aup-icon matPrefix icon=\"mat:search\"></aup-icon>\n <button mat-icon-button matSuffix [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"] }]
|
|
2202
|
+
args: [{ selector: 'aup-password-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n" }]
|
|
2347
2203
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2348
2204
|
type: Input
|
|
2349
2205
|
}] } });
|
|
2350
2206
|
|
|
2351
2207
|
/**
|
|
2352
2208
|
* Using templates:
|
|
2353
|
-
* <aup-select-input [
|
|
2209
|
+
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
2354
2210
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2355
|
-
* <ng-template #
|
|
2356
|
-
* <ng-template #nilOptionTemplate>Uses the placeholder by default but you can customise it</ng-template>
|
|
2211
|
+
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
2357
2212
|
* </aup-select_input>
|
|
2358
2213
|
*/
|
|
2359
2214
|
class SelectInputComponent extends AbstractValueInputComponent {
|
|
@@ -2378,7 +2233,7 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
2378
2233
|
super();
|
|
2379
2234
|
const { chain } = Dsl.disposeWith(this);
|
|
2380
2235
|
this.cookedOptions$ = chain(this.options$)
|
|
2381
|
-
.
|
|
2236
|
+
.reduceToList(options => {
|
|
2382
2237
|
return options.length < 1 && !isNil(this.componentValue$.value) ? [this.componentValue$.value] : options;
|
|
2383
2238
|
}, {
|
|
2384
2239
|
dependsOn: this.componentValue$
|
|
@@ -2417,21 +2272,21 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
2417
2272
|
id: this.delegatedIdentityOf(value)
|
|
2418
2273
|
});
|
|
2419
2274
|
let lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
|
|
2420
|
-
|
|
2275
|
+
console.log(lastIdSnapshot);
|
|
2421
2276
|
before(this.options$).changes(() => {
|
|
2422
2277
|
lastIdSnapshot = snapshotValueAndId(this.componentValue$.value);
|
|
2423
|
-
|
|
2278
|
+
console.log(lastIdSnapshot);
|
|
2424
2279
|
});
|
|
2425
2280
|
when(this.options$).changes((is, was) => {
|
|
2426
2281
|
const newIdSnapshot = snapshotValueAndId(lastIdSnapshot.value);
|
|
2427
|
-
|
|
2282
|
+
console.log(lastIdSnapshot, newIdSnapshot);
|
|
2428
2283
|
if (newIdSnapshot !== lastIdSnapshot.id) {
|
|
2429
2284
|
this.id$.value = this.delegatedIdentityOf(this.componentValue$.value);
|
|
2430
2285
|
}
|
|
2431
2286
|
});
|
|
2432
2287
|
}
|
|
2433
2288
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2434
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "selectedOptionTemplateRef", first: true, predicate: ["selectedOptionTemplate"], descendants: true }, { propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of cookedOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n
|
|
2289
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "selectedOptionTemplateRef", first: true, predicate: ["selectedOptionTemplate"], descendants: true }, { propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of cookedOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4$4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i4$4.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
2435
2290
|
}
|
|
2436
2291
|
__decorate([
|
|
2437
2292
|
Proxify(),
|
|
@@ -2443,7 +2298,7 @@ __decorate([
|
|
|
2443
2298
|
], SelectInputComponent.prototype, "options", null);
|
|
2444
2299
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputComponent, decorators: [{
|
|
2445
2300
|
type: Component,
|
|
2446
|
-
args: [{ selector: 'aup-select-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of cookedOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n
|
|
2301
|
+
args: [{ selector: 'aup-select-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of cookedOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"] }]
|
|
2447
2302
|
}], ctorParameters: function () { return []; }, propDecorators: { options$: [{
|
|
2448
2303
|
type: Input
|
|
2449
2304
|
}], options: [{
|
|
@@ -2474,24 +2329,17 @@ class StringInputComponent extends AbstractValueInputComponent {
|
|
|
2474
2329
|
get enableClear() { return this.#enableClear_accessor_storage; }
|
|
2475
2330
|
set enableClear(value) { this.#enableClear_accessor_storage = value; }
|
|
2476
2331
|
iconPrefix;
|
|
2477
|
-
#suffixCommand_accessor_storage = proxify(Command);
|
|
2478
|
-
get suffixCommand() { return this.#suffixCommand_accessor_storage; }
|
|
2479
|
-
set suffixCommand(value) { this.#suffixCommand_accessor_storage = value; }
|
|
2480
2332
|
clearCommand;
|
|
2481
2333
|
constructor() {
|
|
2482
2334
|
super();
|
|
2483
2335
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
2484
2336
|
this.clearCommand = Command.create(() => {
|
|
2485
2337
|
this.componentValue$.value = "";
|
|
2486
|
-
})
|
|
2487
|
-
|
|
2488
|
-
.enableWhile(chain.stringValue(this.componentValue$).isNotBlank());
|
|
2489
|
-
}
|
|
2490
|
-
get hasSuffixCommand() {
|
|
2491
|
-
return Proxify.hasTarget(this.suffixCommand);
|
|
2338
|
+
});
|
|
2339
|
+
this.clearCommand.disableWhile(chain.stringValue(this.componentValue$).isBlank());
|
|
2492
2340
|
}
|
|
2493
2341
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2494
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete", enableClear$: "enableClear$", enableClear: "enableClear", iconPrefix: "iconPrefix"
|
|
2342
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete", enableClear$: "enableClear$", enableClear: "enableClear", iconPrefix: "iconPrefix" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4$2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2495
2343
|
}
|
|
2496
2344
|
__decorate([
|
|
2497
2345
|
Proxify(),
|
|
@@ -2501,13 +2349,9 @@ __decorate([
|
|
|
2501
2349
|
StoreInValueModel(),
|
|
2502
2350
|
__metadata("design:type", Object)
|
|
2503
2351
|
], StringInputComponent.prototype, "enableClear", null);
|
|
2504
|
-
__decorate([
|
|
2505
|
-
Proxify(),
|
|
2506
|
-
__metadata("design:type", Command)
|
|
2507
|
-
], StringInputComponent.prototype, "suffixCommand", null);
|
|
2508
2352
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputComponent, decorators: [{
|
|
2509
2353
|
type: Component,
|
|
2510
|
-
args: [{ selector: 'aup-string-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <
|
|
2354
|
+
args: [{ selector: 'aup-string-input', template: "<mat-form-field [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"] }]
|
|
2511
2355
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2512
2356
|
type: Input
|
|
2513
2357
|
}], enableClear$: [{
|
|
@@ -2516,8 +2360,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
2516
2360
|
type: Input
|
|
2517
2361
|
}], iconPrefix: [{
|
|
2518
2362
|
type: Input
|
|
2519
|
-
}], suffixCommand: [{
|
|
2520
|
-
type: Input
|
|
2521
2363
|
}] } });
|
|
2522
2364
|
|
|
2523
2365
|
class TextInputComponent extends AbstractValueInputComponent {
|
|
@@ -2705,6 +2547,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
2705
2547
|
* </aup-switch-case>
|
|
2706
2548
|
*/
|
|
2707
2549
|
class SwitchCaseComponent extends DisposableComponent {
|
|
2550
|
+
cdr;
|
|
2708
2551
|
#switch$_accessor_storage = proxify((ValueModel));
|
|
2709
2552
|
get switch$() { return this.#switch$_accessor_storage; }
|
|
2710
2553
|
set switch$(value) { this.#switch$_accessor_storage = value; }
|
|
@@ -2713,8 +2556,9 @@ class SwitchCaseComponent extends DisposableComponent {
|
|
|
2713
2556
|
set switch(value) { this.#switch_accessor_storage = value; }
|
|
2714
2557
|
switchCaseOptions;
|
|
2715
2558
|
selectedIndex = 0;
|
|
2716
|
-
constructor() {
|
|
2559
|
+
constructor(cdr) {
|
|
2717
2560
|
super();
|
|
2561
|
+
this.cdr = cdr;
|
|
2718
2562
|
}
|
|
2719
2563
|
ngAfterContentInit() {
|
|
2720
2564
|
const subscription = this.switchCaseOptions.changes.subscribe(change => this.updateSelection());
|
|
@@ -2751,8 +2595,8 @@ class SwitchCaseComponent extends DisposableComponent {
|
|
|
2751
2595
|
this.selectedIndex = -1;
|
|
2752
2596
|
}
|
|
2753
2597
|
}
|
|
2754
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SwitchCaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2755
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SwitchCaseComponent, selector: "aup-switch-case", inputs: { switch$: "switch$", switch: "switch" }, queries: [{ propertyName: "switchCaseOptions", predicate: SwitchCaseOption }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group class=\"content-wrapper\" no-tab-header full-height-tabs [selectedIndex]=\"selectedIndex\">\n <mat-tab *ngFor=\"let option of switchCaseOptions\">\n <ng-template [ngTemplateOutlet]=\"option.templateRef\"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$
|
|
2598
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SwitchCaseComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2599
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SwitchCaseComponent, selector: "aup-switch-case", inputs: { switch$: "switch$", switch: "switch" }, queries: [{ propertyName: "switchCaseOptions", predicate: SwitchCaseOption }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group class=\"content-wrapper\" no-tab-header full-height-tabs [selectedIndex]=\"selectedIndex\">\n <mat-tab *ngFor=\"let option of switchCaseOptions\">\n <ng-template [ngTemplateOutlet]=\"option.templateRef\"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$1.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i3$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }] });
|
|
2756
2600
|
}
|
|
2757
2601
|
__decorate([
|
|
2758
2602
|
Proxify(),
|
|
@@ -2765,7 +2609,7 @@ __decorate([
|
|
|
2765
2609
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SwitchCaseComponent, decorators: [{
|
|
2766
2610
|
type: Component,
|
|
2767
2611
|
args: [{ selector: 'aup-switch-case', template: "<mat-tab-group class=\"content-wrapper\" no-tab-header full-height-tabs [selectedIndex]=\"selectedIndex\">\n <mat-tab *ngFor=\"let option of switchCaseOptions\">\n <ng-template [ngTemplateOutlet]=\"option.templateRef\"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}\n"] }]
|
|
2768
|
-
}], ctorParameters: function () { return []; }, propDecorators: { switch$: [{
|
|
2612
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { switch$: [{
|
|
2769
2613
|
type: Input
|
|
2770
2614
|
}], switch: [{
|
|
2771
2615
|
type: Input
|
|
@@ -2775,7 +2619,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
2775
2619
|
}] } });
|
|
2776
2620
|
|
|
2777
2621
|
const HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');
|
|
2778
|
-
const FOOTER_CELL_RENDERER_PORTAL = Symbol('aup-cell-footer-renderer-component-ref');
|
|
2779
2622
|
const CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');
|
|
2780
2623
|
const CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');
|
|
2781
2624
|
const PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');
|
|
@@ -2873,23 +2716,6 @@ class TemplateCellRendererPortalRef extends CellRendererPortalRef {
|
|
|
2873
2716
|
return new TemplatePortal(this.templateRef, this.viewContainer, { ...(data), $implicit: data.row });
|
|
2874
2717
|
}
|
|
2875
2718
|
}
|
|
2876
|
-
class CellFooterPortalRef extends CellPortalRef {
|
|
2877
|
-
componentType;
|
|
2878
|
-
initialiseHeader;
|
|
2879
|
-
constructor(componentType, initialiseHeader) {
|
|
2880
|
-
super();
|
|
2881
|
-
this.componentType = componentType;
|
|
2882
|
-
this.initialiseHeader = initialiseHeader;
|
|
2883
|
-
}
|
|
2884
|
-
initialiseHost(host, columnModel) {
|
|
2885
|
-
assert$1.isTruthy(host);
|
|
2886
|
-
host[HEADER_CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
|
|
2887
|
-
}
|
|
2888
|
-
// @Trace()
|
|
2889
|
-
onPortalAttached(host, portalComponent) {
|
|
2890
|
-
this.initialiseHeader(portalComponent, host.column);
|
|
2891
|
-
}
|
|
2892
|
-
}
|
|
2893
2719
|
|
|
2894
2720
|
class ColumnTextSearchFormatter {
|
|
2895
2721
|
}
|
|
@@ -2980,7 +2806,6 @@ class ColumnTextSearchWrapper extends ColumnTextSearchFormatter.Delegate {
|
|
|
2980
2806
|
}
|
|
2981
2807
|
class ColumnModel extends GarbageCollector {
|
|
2982
2808
|
columnId;
|
|
2983
|
-
order;
|
|
2984
2809
|
textPropertiesProvider;
|
|
2985
2810
|
_columnTextProperties;
|
|
2986
2811
|
_columnHeaderPortalRef;
|
|
@@ -2994,10 +2819,9 @@ class ColumnModel extends GarbageCollector {
|
|
|
2994
2819
|
dasherisedColumnId;
|
|
2995
2820
|
textSearchDelegate = new ColumnTextSearchWrapper();
|
|
2996
2821
|
visible$;
|
|
2997
|
-
constructor(columnId,
|
|
2822
|
+
constructor(columnId, textPropertiesProvider) {
|
|
2998
2823
|
super();
|
|
2999
2824
|
this.columnId = columnId;
|
|
3000
|
-
this.order = order;
|
|
3001
2825
|
this.textPropertiesProvider = textPropertiesProvider;
|
|
3002
2826
|
const { valueOf } = Dsl.disposeWith(this);
|
|
3003
2827
|
this.installHeaderRenderer();
|
|
@@ -3042,14 +2866,6 @@ class ColumnModel extends GarbageCollector {
|
|
|
3042
2866
|
this._columnTextProperties = columnTextProperties;
|
|
3043
2867
|
return this;
|
|
3044
2868
|
}
|
|
3045
|
-
positionAfter(column) {
|
|
3046
|
-
this.order.position(this, { after: column });
|
|
3047
|
-
return this;
|
|
3048
|
-
}
|
|
3049
|
-
positionBefore(column) {
|
|
3050
|
-
this.order.position(this, { before: column });
|
|
3051
|
-
return this;
|
|
3052
|
-
}
|
|
3053
2869
|
getSearchTextFor(row) {
|
|
3054
2870
|
return this.textSearchDelegate.format(row);
|
|
3055
2871
|
}
|
|
@@ -3151,8 +2967,8 @@ __decorate([
|
|
|
3151
2967
|
|
|
3152
2968
|
class CustomTemplateColumnModel extends ColumnModel {
|
|
3153
2969
|
config = new TemplateCellRendererPortalRef();
|
|
3154
|
-
constructor(columnId,
|
|
3155
|
-
super(columnId,
|
|
2970
|
+
constructor(columnId, defaults) {
|
|
2971
|
+
super(columnId, defaults);
|
|
3156
2972
|
this.configureCellRenderer(this.config);
|
|
3157
2973
|
}
|
|
3158
2974
|
setTemplate(templateRef, viewContainer, fillCell, padChild) {
|
|
@@ -3230,17 +3046,12 @@ class AbstractTableComponent extends DisposableComponent {
|
|
|
3230
3046
|
#showHeader_accessor_storage = true;
|
|
3231
3047
|
get showHeader() { return this.#showHeader_accessor_storage; }
|
|
3232
3048
|
set showHeader(value) { this.#showHeader_accessor_storage = value; }
|
|
3233
|
-
#enableScrolling$_accessor_storage = proxify((ValueModel));
|
|
3234
3049
|
/**
|
|
3235
3050
|
* Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either
|
|
3236
3051
|
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
3237
3052
|
* containment area.
|
|
3238
3053
|
*/
|
|
3239
|
-
|
|
3240
|
-
set enableScrolling$(value) { this.#enableScrolling$_accessor_storage = value; }
|
|
3241
|
-
#enableScrolling_accessor_storage = false;
|
|
3242
|
-
get enableScrolling() { return this.#enableScrolling_accessor_storage; }
|
|
3243
|
-
set enableScrolling(value) { this.#enableScrolling_accessor_storage = value; }
|
|
3054
|
+
enableScrolling = false;
|
|
3244
3055
|
columns;
|
|
3245
3056
|
columnIds;
|
|
3246
3057
|
columnsById;
|
|
@@ -3259,6 +3070,7 @@ class AbstractTableComponent extends DisposableComponent {
|
|
|
3259
3070
|
super();
|
|
3260
3071
|
this.injector = injector;
|
|
3261
3072
|
const { chain, when } = Dsl.disposeWith(this);
|
|
3073
|
+
this._visibleRows$.setDelegate(this._dataSource$);
|
|
3262
3074
|
when(chain(this._dataSource$).first()).becomesTruthy(it => {
|
|
3263
3075
|
if (it === this.identityOf(it)) {
|
|
3264
3076
|
console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
|
|
@@ -3277,7 +3089,7 @@ class AbstractTableComponent extends DisposableComponent {
|
|
|
3277
3089
|
if (!model) {
|
|
3278
3090
|
lang$1.illegalState("aup-table tableModel is nil");
|
|
3279
3091
|
}
|
|
3280
|
-
this.columnsById = chain(model.columns
|
|
3092
|
+
this.columnsById = chain(model.columns).indexBy('columnId');
|
|
3281
3093
|
this._dataSource$.setDelegate(model.dataSource$);
|
|
3282
3094
|
model.initialise(this.injector, (row) => this.identityOf(row));
|
|
3283
3095
|
}
|
|
@@ -3294,7 +3106,7 @@ class AbstractTableComponent extends DisposableComponent {
|
|
|
3294
3106
|
}
|
|
3295
3107
|
}
|
|
3296
3108
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
3297
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractTableComponent, selector: "aup-abstract-table", inputs: { showHeader$: "showHeader$", showHeader: "showHeader", enableScrolling
|
|
3109
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractTableComponent, selector: "aup-abstract-table", inputs: { showHeader$: "showHeader$", showHeader: "showHeader", enableScrolling: "enableScrolling" }, host: { properties: { "class": "this.baseCssClass" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
3298
3110
|
}
|
|
3299
3111
|
__decorate([
|
|
3300
3112
|
Proxify(),
|
|
@@ -3304,14 +3116,6 @@ __decorate([
|
|
|
3304
3116
|
StoreInValueModel(),
|
|
3305
3117
|
__metadata("design:type", Object)
|
|
3306
3118
|
], AbstractTableComponent.prototype, "showHeader", null);
|
|
3307
|
-
__decorate([
|
|
3308
|
-
Proxify(),
|
|
3309
|
-
__metadata("design:type", ValueModel)
|
|
3310
|
-
], AbstractTableComponent.prototype, "enableScrolling$", null);
|
|
3311
|
-
__decorate([
|
|
3312
|
-
StoreInValueModel(),
|
|
3313
|
-
__metadata("design:type", Boolean)
|
|
3314
|
-
], AbstractTableComponent.prototype, "enableScrolling", null);
|
|
3315
3119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractTableComponent, decorators: [{
|
|
3316
3120
|
type: Component,
|
|
3317
3121
|
args: [{
|
|
@@ -3322,8 +3126,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3322
3126
|
type: Input
|
|
3323
3127
|
}], showHeader: [{
|
|
3324
3128
|
type: Input
|
|
3325
|
-
}], enableScrolling$: [{
|
|
3326
|
-
type: Input
|
|
3327
3129
|
}], enableScrolling: [{
|
|
3328
3130
|
type: Input
|
|
3329
3131
|
}], baseCssClass: [{
|
|
@@ -3384,8 +3186,6 @@ class EditSession extends GarbageCollector {
|
|
|
3384
3186
|
// console.warn()
|
|
3385
3187
|
// }
|
|
3386
3188
|
this._liveRowValue$.value = produce(this._liveRowValue$.value, draft => {
|
|
3387
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3388
|
-
// @ts-ignore
|
|
3389
3189
|
this.form.writeDirtyStateTo(draft);
|
|
3390
3190
|
});
|
|
3391
3191
|
});
|
|
@@ -3488,11 +3288,11 @@ class DefaultCellRendererComponent {
|
|
|
3488
3288
|
return this._value;
|
|
3489
3289
|
}
|
|
3490
3290
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DefaultCellRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3491
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: DefaultCellRendererComponent, selector: "aup-default-cell-renderer", inputs: { value: "value" }, ngImport: i0, template: "<span [innerHTML]=\"value
|
|
3291
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: DefaultCellRendererComponent, selector: "aup-default-cell-renderer", inputs: { value: "value" }, ngImport: i0, template: "<span [innerHTML]=\"value| aupHighlight\"></span>\n", styles: [""], dependencies: [{ kind: "pipe", type: HighlightPipe, name: "aupHighlight" }] });
|
|
3492
3292
|
}
|
|
3493
3293
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DefaultCellRendererComponent, decorators: [{
|
|
3494
3294
|
type: Component,
|
|
3495
|
-
args: [{ selector: "aup-default-cell-renderer", template: "<span [innerHTML]=\"value
|
|
3295
|
+
args: [{ selector: "aup-default-cell-renderer", template: "<span [innerHTML]=\"value| aupHighlight\"></span>\n" }]
|
|
3496
3296
|
}], propDecorators: { value: [{
|
|
3497
3297
|
type: Input
|
|
3498
3298
|
}] } });
|
|
@@ -3508,8 +3308,7 @@ class SelectionHeaderCellComponent extends DisposableComponent {
|
|
|
3508
3308
|
super();
|
|
3509
3309
|
this.selectCommand = Command.create(() => {
|
|
3510
3310
|
this.selectionModel.toggleAllCommand.execute();
|
|
3511
|
-
})
|
|
3512
|
-
.enableWhile(this.selectionModel.toggleAllCommand.enabled$);
|
|
3311
|
+
});
|
|
3513
3312
|
}
|
|
3514
3313
|
isSelected() {
|
|
3515
3314
|
return this.ifMultiSelectionModel(m => m.allSelected$.value, false);
|
|
@@ -3537,7 +3336,7 @@ class SelectionHeaderCellComponent extends DisposableComponent {
|
|
|
3537
3336
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectionHeaderCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3538
3337
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectionHeaderCellComponent, selector: "aup-selection-header-cell", providers: [
|
|
3539
3338
|
{ provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } }
|
|
3540
|
-
], usesInheritance: true, ngImport: i0, template: "<mat-checkbox *ngIf=\"isVisible()\"\n (click)=\"handleClick($event)\"\n [checked]=\"isSelected()\"\n [indeterminate]=\"this.isIntermediate()\"\n [color]=\"color\"\n></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type:
|
|
3339
|
+
], usesInheritance: true, ngImport: i0, template: "<mat-checkbox *ngIf=\"isVisible()\"\n (click)=\"handleClick($event)\"\n [checked]=\"isSelected()\"\n [indeterminate]=\"this.isIntermediate()\"\n [color]=\"color\"\n></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
3541
3340
|
}
|
|
3542
3341
|
__decorate([
|
|
3543
3342
|
Proxify(),
|
|
@@ -3570,7 +3369,7 @@ class SelectionCellComponent extends DisposableComponent {
|
|
|
3570
3369
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectionCellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3571
3370
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectionCellComponent, selector: "aup-selection-cell", inputs: { row: "row" }, providers: [
|
|
3572
3371
|
{ provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } }
|
|
3573
|
-
], usesInheritance: true, ngImport: i0, template: "<mat-checkbox (click)=\"select($event)\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "component", type:
|
|
3372
|
+
], usesInheritance: true, ngImport: i0, template: "<mat-checkbox (click)=\"select($event)\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "component", type: i4$3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
3574
3373
|
}
|
|
3575
3374
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectionCellComponent, decorators: [{
|
|
3576
3375
|
type: Component,
|
|
@@ -3631,14 +3430,25 @@ class Bounds extends Dimension {
|
|
|
3631
3430
|
})(Bounds || (Bounds = {}));
|
|
3632
3431
|
|
|
3633
3432
|
class ResizeAwareComponent extends DisposableComponent {
|
|
3634
|
-
elementRef
|
|
3635
|
-
ngZone
|
|
3636
|
-
|
|
3433
|
+
elementRef;
|
|
3434
|
+
ngZone;
|
|
3435
|
+
_bounds$ = new MutableValueModel(new Bounds(0, 0, 0, 0));
|
|
3436
|
+
constructor(elementRef, ngZone) {
|
|
3437
|
+
super();
|
|
3438
|
+
this.elementRef = elementRef;
|
|
3439
|
+
this.ngZone = ngZone;
|
|
3440
|
+
}
|
|
3637
3441
|
ngAfterViewInit() {
|
|
3638
|
-
this.
|
|
3442
|
+
const element = this.elementRef.nativeElement;
|
|
3443
|
+
const ro = new ResizeObserver((entries, observer) => {
|
|
3444
|
+
this.ngZone.run(() => this._updateBounds());
|
|
3445
|
+
});
|
|
3446
|
+
ro.observe(element);
|
|
3447
|
+
this.onDispose(() => ro.disconnect());
|
|
3448
|
+
setTimeout(() => this._updateBounds());
|
|
3639
3449
|
}
|
|
3640
3450
|
get bounds$() {
|
|
3641
|
-
return this.
|
|
3451
|
+
return this._bounds$.readonly$;
|
|
3642
3452
|
}
|
|
3643
3453
|
get nativeElement() {
|
|
3644
3454
|
return this.elementRef.nativeElement;
|
|
@@ -3648,160 +3458,57 @@ class ResizeAwareComponent extends DisposableComponent {
|
|
|
3648
3458
|
return this.bounds.relativePositionOf(point);
|
|
3649
3459
|
}
|
|
3650
3460
|
get bounds() {
|
|
3651
|
-
return this.
|
|
3461
|
+
return this._bounds$.value;
|
|
3462
|
+
}
|
|
3463
|
+
_updateBounds() {
|
|
3464
|
+
this._bounds$.value = Bounds.ofElement(this.nativeElement);
|
|
3652
3465
|
}
|
|
3653
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ResizeAwareComponent, deps:
|
|
3466
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ResizeAwareComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3654
3467
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: ResizeAwareComponent, usesInheritance: true, ngImport: i0 });
|
|
3655
3468
|
}
|
|
3656
3469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ResizeAwareComponent, decorators: [{
|
|
3657
3470
|
type: Directive
|
|
3658
|
-
}] });
|
|
3659
|
-
(function (ResizeAwareComponent) {
|
|
3660
|
-
class ResizeTracker extends GarbageCollector {
|
|
3661
|
-
elementRef;
|
|
3662
|
-
ngZone;
|
|
3663
|
-
_bounds$ = new MutableValueModel(new Bounds(0, 0, 0, 0));
|
|
3664
|
-
width$;
|
|
3665
|
-
height$;
|
|
3666
|
-
top$;
|
|
3667
|
-
left$;
|
|
3668
|
-
bottom$;
|
|
3669
|
-
right$;
|
|
3670
|
-
constructor(elementRef, ngZone) {
|
|
3671
|
-
super();
|
|
3672
|
-
this.elementRef = elementRef;
|
|
3673
|
-
this.ngZone = ngZone;
|
|
3674
|
-
const { chain } = Dsl.disposeWith(this);
|
|
3675
|
-
this.width$ = chain(this.bounds$).pluck("width");
|
|
3676
|
-
this.height$ = chain(this.bounds$).pluck("height");
|
|
3677
|
-
this.top$ = chain(this.bounds$).pluck("top");
|
|
3678
|
-
this.left$ = chain(this.bounds$).pluck("left");
|
|
3679
|
-
this.bottom$ = chain.numericValue(this.top$).add(this.height$);
|
|
3680
|
-
this.right$ = chain.numericValue(this.left$).add(this.width$);
|
|
3681
|
-
}
|
|
3682
|
-
notifyViewReady() {
|
|
3683
|
-
const element = this.elementRef.nativeElement;
|
|
3684
|
-
const ro = new ResizeObserver((entries, observer) => {
|
|
3685
|
-
this.ngZone.run(() => this._updateBounds());
|
|
3686
|
-
});
|
|
3687
|
-
ro.observe(element);
|
|
3688
|
-
this.onDispose(() => ro.disconnect());
|
|
3689
|
-
setTimeout(() => this._updateBounds());
|
|
3690
|
-
}
|
|
3691
|
-
get bounds$() {
|
|
3692
|
-
return this._bounds$.readonly$;
|
|
3693
|
-
}
|
|
3694
|
-
get nativeElement() {
|
|
3695
|
-
return this.elementRef.nativeElement;
|
|
3696
|
-
}
|
|
3697
|
-
// TODO: Make this handle body scroll
|
|
3698
|
-
relativePositionOf(point) {
|
|
3699
|
-
return this.bounds.relativePositionOf(point);
|
|
3700
|
-
}
|
|
3701
|
-
get bounds() {
|
|
3702
|
-
return this._bounds$.value;
|
|
3703
|
-
}
|
|
3704
|
-
_updateBounds() {
|
|
3705
|
-
this._bounds$.value = Bounds.ofElement(this.nativeElement);
|
|
3706
|
-
}
|
|
3707
|
-
}
|
|
3708
|
-
ResizeAwareComponent.ResizeTracker = ResizeTracker;
|
|
3709
|
-
})(ResizeAwareComponent || (ResizeAwareComponent = {}));
|
|
3710
|
-
|
|
3711
|
-
var ColumnOrderManager;
|
|
3712
|
-
(function (ColumnOrderManager) {
|
|
3713
|
-
function processPosition(position, callback) {
|
|
3714
|
-
if (position) {
|
|
3715
|
-
const keys = Object.keys(position);
|
|
3716
|
-
if (keys.includes("before")) {
|
|
3717
|
-
return position["before"] ? callback.before(position["before"]) : callback.first();
|
|
3718
|
-
}
|
|
3719
|
-
else {
|
|
3720
|
-
return position["after"] ? callback.after(position["after"]) : callback.last();
|
|
3721
|
-
}
|
|
3722
|
-
}
|
|
3723
|
-
else {
|
|
3724
|
-
return callback.last();
|
|
3725
|
-
}
|
|
3726
|
-
}
|
|
3727
|
-
ColumnOrderManager.processPosition = processPosition;
|
|
3728
|
-
})(ColumnOrderManager || (ColumnOrderManager = {}));
|
|
3471
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
3729
3472
|
|
|
3730
|
-
class
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
constructor(column, position) {
|
|
3734
|
-
this.column = column;
|
|
3735
|
-
this.position = position;
|
|
3736
|
-
}
|
|
3737
|
-
}
|
|
3738
|
-
class ColumnManager extends GarbageCollector {
|
|
3739
|
-
_columnRefs$ = new MutableListModel();
|
|
3740
|
-
orderedColumnRefs$;
|
|
3741
|
-
_columnsById$;
|
|
3742
|
-
allColumns$;
|
|
3743
|
-
columnVisibilities$ = new WatchList();
|
|
3744
|
-
visibleColumns$;
|
|
3473
|
+
class ColumnListModel extends AbstractComputedListModel {
|
|
3474
|
+
_allColumns$ = new MutableListModel();
|
|
3475
|
+
columnsById$;
|
|
3745
3476
|
constructor() {
|
|
3746
3477
|
super();
|
|
3747
3478
|
const { chain } = Dsl.disposeWith(this);
|
|
3748
|
-
this.
|
|
3749
|
-
this.allColumns$ = this.orderedColumnRefs$.pluck("column");
|
|
3750
|
-
this._columnsById$ = chain(this.allColumns$).indexBy('columnId');
|
|
3751
|
-
this.visibleColumns$ = chain(this.allColumns$).select(it => it.visible$.value, {
|
|
3752
|
-
dependsOn: this.columnVisibilities$
|
|
3753
|
-
});
|
|
3479
|
+
this.columnsById$ = chain(this._allColumns$).indexBy('columnId');
|
|
3754
3480
|
}
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
const position = this.computePosition(newPosition);
|
|
3758
|
-
this._columnRefs$.replace(target, { with: new ColumnRef(target.column, position) });
|
|
3481
|
+
get allColumns$() {
|
|
3482
|
+
return this._allColumns$.readonly$;
|
|
3759
3483
|
}
|
|
3760
3484
|
getColumn(id) {
|
|
3761
|
-
return this.
|
|
3485
|
+
return this.columnsById$.get(id);
|
|
3762
3486
|
}
|
|
3763
3487
|
hasColumn(id) {
|
|
3764
|
-
return !!this.
|
|
3488
|
+
return !!this.columnsById$.get(id);
|
|
3765
3489
|
}
|
|
3766
3490
|
hasMatchingColumn(row, regex) {
|
|
3767
3491
|
// only search the visible columns
|
|
3768
|
-
return !!this.
|
|
3492
|
+
return !!this.value.find(c => regex.test(c.getSearchTextFor(row)));
|
|
3769
3493
|
}
|
|
3770
|
-
addColumn(column,
|
|
3494
|
+
addColumn(column, index) {
|
|
3771
3495
|
if (this.hasColumn(column.columnId)) {
|
|
3772
3496
|
lang.illegalState(`Column with id=${column.columnId} already exists`);
|
|
3773
3497
|
}
|
|
3774
3498
|
this.registerDisposable(column);
|
|
3775
|
-
this.
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
return ColumnOrderManager.processPosition(position, {
|
|
3782
|
-
before(col) {
|
|
3783
|
-
const index = q.findIndex(ref => ref.column === col);
|
|
3784
|
-
const beforeCol = q.value[index];
|
|
3785
|
-
const afterCol = index - 1 >= 0 ? q.value[index - 1] : undefined;
|
|
3786
|
-
return generateKeyBetween(afterCol?.position, beforeCol.position);
|
|
3787
|
-
},
|
|
3788
|
-
after(col) {
|
|
3789
|
-
const index = q.findIndex(ref => ref.column === col);
|
|
3790
|
-
const afterCol = q.value[index];
|
|
3791
|
-
const beforeCol = index + 1 < q.length ? q.value[index + 1] : undefined;
|
|
3792
|
-
return generateKeyBetween(afterCol.position, beforeCol?.position);
|
|
3793
|
-
},
|
|
3794
|
-
first() {
|
|
3795
|
-
return generateKeyBetween(null, q.first()?.position);
|
|
3796
|
-
},
|
|
3797
|
-
last() {
|
|
3798
|
-
// add it to the end of the list
|
|
3799
|
-
return generateKeyBetween(q.last()?.position, null);
|
|
3499
|
+
this.runInTransaction(() => {
|
|
3500
|
+
if (!isNil(index)) {
|
|
3501
|
+
this._allColumns$.insert(index, column);
|
|
3502
|
+
}
|
|
3503
|
+
else {
|
|
3504
|
+
this._allColumns$.push(column);
|
|
3800
3505
|
}
|
|
3506
|
+
this.registerDisposable(this.trackSource(column.visible$));
|
|
3801
3507
|
});
|
|
3508
|
+
return column;
|
|
3802
3509
|
}
|
|
3803
3510
|
doComputeValue() {
|
|
3804
|
-
return this.
|
|
3511
|
+
return this._allColumns$.value.filter(c => c.visible$.value);
|
|
3805
3512
|
}
|
|
3806
3513
|
}
|
|
3807
3514
|
|
|
@@ -3835,8 +3542,8 @@ function EnableCellTextSearch(options) {
|
|
|
3835
3542
|
|
|
3836
3543
|
class CustomValueColumnModel extends ColumnModel {
|
|
3837
3544
|
getValue;
|
|
3838
|
-
constructor(columnId,
|
|
3839
|
-
super(columnId,
|
|
3545
|
+
constructor(columnId, defaults, getValue) {
|
|
3546
|
+
super(columnId, defaults);
|
|
3840
3547
|
this.getValue = getValue;
|
|
3841
3548
|
this.cellRenderer(DefaultCellRendererComponent);
|
|
3842
3549
|
}
|
|
@@ -3844,17 +3551,17 @@ class CustomValueColumnModel extends ColumnModel {
|
|
|
3844
3551
|
this.configureColumnTextSearch(EnableCellTextSearch.getFormatter(componentType, () => new ColumnTextSearchFormatter.Null()), row => this.getValue(row));
|
|
3845
3552
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
|
|
3846
3553
|
if (firstTime) {
|
|
3847
|
-
if (isFunction(onComponentInitOrOptions)) {
|
|
3554
|
+
if (isFunction$1(onComponentInitOrOptions)) {
|
|
3848
3555
|
onComponentInitOrOptions(component);
|
|
3849
3556
|
}
|
|
3850
3557
|
else {
|
|
3851
|
-
if (isFunction(onComponentInitOrOptions?.onComponentInit)) {
|
|
3558
|
+
if (isFunction$1(onComponentInitOrOptions?.onComponentInit)) {
|
|
3852
3559
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3853
3560
|
}
|
|
3854
3561
|
}
|
|
3855
3562
|
}
|
|
3856
3563
|
component.value = this.getValue(rowData.row);
|
|
3857
|
-
if (!isFunction(onComponentInitOrOptions) && isFunction(onComponentInitOrOptions?.onRowUpdate)) {
|
|
3564
|
+
if (!isFunction$1(onComponentInitOrOptions) && isFunction$1(onComponentInitOrOptions?.onRowUpdate)) {
|
|
3858
3565
|
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
3859
3566
|
}
|
|
3860
3567
|
}));
|
|
@@ -3866,8 +3573,8 @@ class CustomValueColumnModel extends ColumnModel {
|
|
|
3866
3573
|
}
|
|
3867
3574
|
|
|
3868
3575
|
class EditorControlColumnModel extends ColumnModel {
|
|
3869
|
-
constructor(columnId,
|
|
3870
|
-
super(columnId,
|
|
3576
|
+
constructor(columnId, saveCommandFactory, defaults) {
|
|
3577
|
+
super(columnId, defaults);
|
|
3871
3578
|
this.cellRenderer(EditRowControlsComponent);
|
|
3872
3579
|
}
|
|
3873
3580
|
cellRenderer(componentType) {
|
|
@@ -3892,8 +3599,8 @@ class ListPropertyColumnModel extends ColumnModel {
|
|
|
3892
3599
|
intermediate.map(v => v?.toString()).join(", ") :
|
|
3893
3600
|
intermediate?.toString();
|
|
3894
3601
|
};
|
|
3895
|
-
constructor(id,
|
|
3896
|
-
super(id,
|
|
3602
|
+
constructor(id, property, defaults) {
|
|
3603
|
+
super(id, defaults);
|
|
3897
3604
|
this.property = property;
|
|
3898
3605
|
this.cellRenderer(DefaultCellRendererComponent);
|
|
3899
3606
|
}
|
|
@@ -3909,7 +3616,7 @@ class ListPropertyColumnModel extends ColumnModel {
|
|
|
3909
3616
|
}
|
|
3910
3617
|
cellEditor(editor, validatorsOrInitialiser, initialiseComponent) {
|
|
3911
3618
|
const validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3912
|
-
const initialiser = isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3619
|
+
const initialiser = isFunction$1(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3913
3620
|
this.configureCellEditor(new CellEditorPortalRef(editor, (component, editSession) => {
|
|
3914
3621
|
const formListModel = editSession.form.pluckList(this.property);
|
|
3915
3622
|
if (validators) {
|
|
@@ -3938,8 +3645,8 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
3938
3645
|
_defaultSearchTextFormatter = (value) => {
|
|
3939
3646
|
return (this._userFormat ?? Functions.identity)(value)?.toString();
|
|
3940
3647
|
};
|
|
3941
|
-
constructor(id,
|
|
3942
|
-
super(id,
|
|
3648
|
+
constructor(id, property, defaults) {
|
|
3649
|
+
super(id, defaults);
|
|
3943
3650
|
this.property = property;
|
|
3944
3651
|
this.cellRenderer(DefaultCellRendererComponent);
|
|
3945
3652
|
}
|
|
@@ -3947,11 +3654,11 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
3947
3654
|
this.configureColumnTextSearch(EnableCellTextSearch.getFormatter(componentType, () => ColumnTextSearchFormatter.forFormatter(this._defaultSearchTextFormatter)), row => row[this.property]);
|
|
3948
3655
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
|
|
3949
3656
|
if (firstTime) {
|
|
3950
|
-
if (isFunction(onComponentInitOrOptions)) {
|
|
3657
|
+
if (isFunction$1(onComponentInitOrOptions)) {
|
|
3951
3658
|
onComponentInitOrOptions(component);
|
|
3952
3659
|
}
|
|
3953
3660
|
else {
|
|
3954
|
-
if (isFunction(onComponentInitOrOptions?.onComponentInit)) {
|
|
3661
|
+
if (isFunction$1(onComponentInitOrOptions?.onComponentInit)) {
|
|
3955
3662
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3956
3663
|
}
|
|
3957
3664
|
}
|
|
@@ -3976,7 +3683,7 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
3976
3683
|
component[ColumnModel.CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
|
|
3977
3684
|
let disableEditCallback = false;
|
|
3978
3685
|
if (firstTime) {
|
|
3979
|
-
if (isFunction(options?.onComponentInit)) {
|
|
3686
|
+
if (isFunction$1(options?.onComponentInit)) {
|
|
3980
3687
|
options.onComponentInit(component);
|
|
3981
3688
|
}
|
|
3982
3689
|
// install our edit callback
|
|
@@ -3991,7 +3698,7 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
3991
3698
|
disableEditCallback = true;
|
|
3992
3699
|
component.value = rowData.row[this.property];
|
|
3993
3700
|
disableEditCallback = false;
|
|
3994
|
-
if (!isFunction(options) && isFunction(options?.onRowUpdate)) {
|
|
3701
|
+
if (!isFunction$1(options) && isFunction$1(options?.onRowUpdate)) {
|
|
3995
3702
|
options.onRowUpdate(component, rowData.row);
|
|
3996
3703
|
}
|
|
3997
3704
|
}));
|
|
@@ -3999,7 +3706,7 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
3999
3706
|
}
|
|
4000
3707
|
cellEditor(editor, validatorsOrInitialiser, onComponentInit) {
|
|
4001
3708
|
const validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
4002
|
-
const initialiser = isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
|
|
3709
|
+
const initialiser = isFunction$1(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
|
|
4003
3710
|
this.configureCellEditor(new CellEditorPortalRef(editor, (component, editSession) => {
|
|
4004
3711
|
const formValueModel = editSession.form.pluck(this.property);
|
|
4005
3712
|
if (validators) {
|
|
@@ -4026,8 +3733,8 @@ class SelectionColumnModel extends ColumnModel {
|
|
|
4026
3733
|
selectionModel;
|
|
4027
3734
|
_enableHeaderControls = true;
|
|
4028
3735
|
_color = "accent";
|
|
4029
|
-
constructor(columnId,
|
|
4030
|
-
super(columnId,
|
|
3736
|
+
constructor(columnId, defaults, selectionModel) {
|
|
3737
|
+
super(columnId, defaults);
|
|
4031
3738
|
this.selectionModel = selectionModel;
|
|
4032
3739
|
const { chain } = Dsl.disposeWith(this);
|
|
4033
3740
|
this._selectRowOnClick(false);
|
|
@@ -4068,42 +3775,6 @@ class SelectionColumnModel extends ColumnModel {
|
|
|
4068
3775
|
}
|
|
4069
3776
|
}
|
|
4070
3777
|
|
|
4071
|
-
let RowClass$1 = class RowClass {
|
|
4072
|
-
className;
|
|
4073
|
-
matches;
|
|
4074
|
-
constructor(className, matches) {
|
|
4075
|
-
this.className = className;
|
|
4076
|
-
this.matches = matches;
|
|
4077
|
-
}
|
|
4078
|
-
};
|
|
4079
|
-
class FooterRowModel {
|
|
4080
|
-
_rowClasses = [];
|
|
4081
|
-
noPadding() {
|
|
4082
|
-
this.addClass("no-padding");
|
|
4083
|
-
}
|
|
4084
|
-
addClass(className, condition) {
|
|
4085
|
-
this._rowClasses.push(new RowClass$1(className, condition ?? (() => true)));
|
|
4086
|
-
}
|
|
4087
|
-
}
|
|
4088
|
-
(function (FooterRowModel) {
|
|
4089
|
-
class Impl extends FooterRowModel {
|
|
4090
|
-
component;
|
|
4091
|
-
onInit;
|
|
4092
|
-
portal;
|
|
4093
|
-
constructor(component, onInit) {
|
|
4094
|
-
super();
|
|
4095
|
-
this.component = component;
|
|
4096
|
-
this.onInit = onInit;
|
|
4097
|
-
this.portal = new ComponentPortal(component);
|
|
4098
|
-
}
|
|
4099
|
-
getActiveRowClasses() {
|
|
4100
|
-
return this._rowClasses.filter(c => c.matches()).map(c => c.className).join(" ");
|
|
4101
|
-
}
|
|
4102
|
-
}
|
|
4103
|
-
FooterRowModel.Impl = Impl;
|
|
4104
|
-
})(FooterRowModel || (FooterRowModel = {}));
|
|
4105
|
-
ProxyRegistry.registerOneTimeBinding(FooterRowModel);
|
|
4106
|
-
|
|
4107
3778
|
class TableMoreMenuComponent extends DisposableComponent {
|
|
4108
3779
|
value$ = new MutableValueModel();
|
|
4109
3780
|
#value_accessor_storage;
|
|
@@ -4113,15 +3784,13 @@ class TableMoreMenuComponent extends DisposableComponent {
|
|
|
4113
3784
|
popupType$ = new MutableValueModel();
|
|
4114
3785
|
popupComponentPortal$;
|
|
4115
3786
|
_visible$ = this.registerDisposable(new DelegatingValueModel());
|
|
4116
|
-
initialiseCallback;
|
|
4117
3787
|
constructor() {
|
|
4118
3788
|
super();
|
|
4119
3789
|
const { chain } = Dsl.disposeWith(this);
|
|
4120
3790
|
this.popupComponentPortal$ = chain(this.popupType$).map(type => new ComponentPortal(type));
|
|
4121
3791
|
}
|
|
4122
|
-
configurePopupComponentType(popupComponentType
|
|
3792
|
+
configurePopupComponentType(popupComponentType) {
|
|
4123
3793
|
this.popupType$.value = popupComponentType;
|
|
4124
|
-
this.initialiseCallback = configureCallback;
|
|
4125
3794
|
}
|
|
4126
3795
|
// Stops tree selection when clicking the menu button
|
|
4127
3796
|
preventDefault($event) {
|
|
@@ -4132,15 +3801,12 @@ class TableMoreMenuComponent extends DisposableComponent {
|
|
|
4132
3801
|
const component = $event.instance;
|
|
4133
3802
|
component.initialise(this.value$, Command.create(() => this.matMenuTrigger.closeMenu()));
|
|
4134
3803
|
this._visible$.setDelegate(component.visible$);
|
|
4135
|
-
if (this.initialiseCallback) {
|
|
4136
|
-
this.initialiseCallback(component);
|
|
4137
|
-
}
|
|
4138
3804
|
}
|
|
4139
3805
|
get visible$() {
|
|
4140
3806
|
return this._visible$.readonly$;
|
|
4141
3807
|
}
|
|
4142
3808
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableMoreMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4143
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableMoreMenuComponent, selector: "aup-table-more-menu", host: { listeners: { "click": "preventDefault($event)" } }, viewQueries: [{ propertyName: "matMenuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu=\"matMenu\" xPosition=\"before\">\n <ng-template matMenuContent [cdkPortalOutlet]=\"popupComponentPortal$.value\"\n (attached)=\"initialise($event)\"></ng-template>\n</mat-menu>\n\n<button mat-icon-button [matMenuTriggerFor]=\"menu\" data-cy=\"more-menu-trigger\" *ngIf=\"visible$.value\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n</button>\n", styles: [":host{display:inline;text-align:end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type:
|
|
3809
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableMoreMenuComponent, selector: "aup-table-more-menu", host: { listeners: { "click": "preventDefault($event)" } }, viewQueries: [{ propertyName: "matMenuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu=\"matMenu\" xPosition=\"before\">\n <ng-template matMenuContent [cdkPortalOutlet]=\"popupComponentPortal$.value\"\n (attached)=\"initialise($event)\"></ng-template>\n</mat-menu>\n\n<button mat-icon-button [matMenuTriggerFor]=\"menu\" data-cy=\"more-menu-trigger\" *ngIf=\"visible$.value\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n</button>\n", styles: [":host{display:inline;text-align:end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3$2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i4.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
4144
3810
|
}
|
|
4145
3811
|
__decorate([
|
|
4146
3812
|
StoreInValueModel(),
|
|
@@ -4169,25 +3835,16 @@ class RowClass {
|
|
|
4169
3835
|
this.matches = matches;
|
|
4170
3836
|
}
|
|
4171
3837
|
}
|
|
4172
|
-
class RowAttribute {
|
|
4173
|
-
attributeName;
|
|
4174
|
-
getValue;
|
|
4175
|
-
constructor(attributeName, getValue) {
|
|
4176
|
-
this.attributeName = attributeName;
|
|
4177
|
-
this.getValue = getValue;
|
|
4178
|
-
}
|
|
4179
|
-
}
|
|
4180
3838
|
class AbstractTableModel extends GarbageCollector {
|
|
4181
3839
|
_dataSource$ = this.registerDisposable(new DelegatingListModel());
|
|
4182
3840
|
_filteredRows$ = this.registerDisposable(new DelegatingListModel());
|
|
4183
3841
|
_visibleRows$ = this.registerDisposable(new DelegatingListModel());
|
|
4184
|
-
|
|
3842
|
+
_columnList = this.registerDisposable(new ColumnListModel());
|
|
4185
3843
|
_editorSessions = new MutableListModel();
|
|
4186
3844
|
_rowsBeingEdited$;
|
|
4187
3845
|
saveCommandFactory;
|
|
4188
3846
|
_editorSessionByRowId;
|
|
4189
3847
|
rowClassNamePredicates = [];
|
|
4190
|
-
rowAttributeGenerators = [];
|
|
4191
3848
|
_columnTextPropertiesLookup;
|
|
4192
3849
|
editing$;
|
|
4193
3850
|
firstEditableColumn$;
|
|
@@ -4204,7 +3861,6 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4204
3861
|
selectedItems$;
|
|
4205
3862
|
leadSelection$;
|
|
4206
3863
|
hasSelection$;
|
|
4207
|
-
footerRowModel;
|
|
4208
3864
|
constructor() {
|
|
4209
3865
|
super();
|
|
4210
3866
|
const { chain } = Dsl.disposeWith(this);
|
|
@@ -4213,15 +3869,15 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4213
3869
|
});
|
|
4214
3870
|
this._editorSessionByRowId = chain(this._editorSessions).indexBy("rowId");
|
|
4215
3871
|
this.editing$ = chain(this._editorSessions).count().isGreaterThan(0);
|
|
4216
|
-
this.textSearchPredicate$ = chain(this.visibleColumns
|
|
3872
|
+
this.textSearchPredicate$ = chain(this.visibleColumns).reduce(columns => {
|
|
4217
3873
|
return (row, regex) => {
|
|
4218
3874
|
return (!regex || !!columns.find(c => regex.test(c.getSearchTextFor(row))));
|
|
4219
3875
|
};
|
|
4220
3876
|
});
|
|
4221
|
-
this.firstEditableColumn$ = chain(this.columns
|
|
4222
|
-
this.firstVisibleColumn$ = chain(this.
|
|
4223
|
-
this.lastVisibleColumn$ = chain(this.
|
|
4224
|
-
this.rowSelectionDisabledOnAllColumns$ = chain(this.
|
|
3877
|
+
this.firstEditableColumn$ = chain(this.columns).select(c => c.hasEditorPortal()).first();
|
|
3878
|
+
this.firstVisibleColumn$ = chain(this._columnList).first();
|
|
3879
|
+
this.lastVisibleColumn$ = chain(this._columnList).last();
|
|
3880
|
+
this.rowSelectionDisabledOnAllColumns$ = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
|
|
4225
3881
|
this.dataSourceEmpty$ = chain(this.dataSource$).isEmpty();
|
|
4226
3882
|
this.selectedItems$ = this.selectionModelProxy.selectedItems$;
|
|
4227
3883
|
this.leadSelection$ = this.selectionModelProxy.leadSelection$;
|
|
@@ -4245,7 +3901,7 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4245
3901
|
],
|
|
4246
3902
|
parent: injector
|
|
4247
3903
|
});
|
|
4248
|
-
this.columns
|
|
3904
|
+
this.columns.value.forEach(c => c.initialise(customInjector));
|
|
4249
3905
|
this.identityOf = identityOf;
|
|
4250
3906
|
}
|
|
4251
3907
|
get dataSource$() {
|
|
@@ -4298,19 +3954,19 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4298
3954
|
});
|
|
4299
3955
|
});
|
|
4300
3956
|
}
|
|
4301
|
-
get columns
|
|
4302
|
-
return this.
|
|
3957
|
+
get columns() {
|
|
3958
|
+
return this._columnList.allColumns$;
|
|
4303
3959
|
}
|
|
4304
|
-
get visibleColumns
|
|
4305
|
-
return this.
|
|
3960
|
+
get visibleColumns() {
|
|
3961
|
+
return this._columnList.readonly$;
|
|
4306
3962
|
}
|
|
4307
3963
|
pluck(property, options) {
|
|
4308
3964
|
const columnId = options?.columnId || property.toString();
|
|
4309
|
-
return this.addColumn(new PropertyColumnModel(columnId,
|
|
3965
|
+
return this.addColumn(new PropertyColumnModel(columnId, property, () => this.getColumnTextProperties(columnId)));
|
|
4310
3966
|
}
|
|
4311
3967
|
pluckList(property, options) {
|
|
4312
3968
|
const columnId = options?.columnId || property.toString();
|
|
4313
|
-
return this.addColumn(new ListPropertyColumnModel(columnId,
|
|
3969
|
+
return this.addColumn(new ListPropertyColumnModel(columnId, property, () => this.getColumnTextProperties(columnId)));
|
|
4314
3970
|
}
|
|
4315
3971
|
// TODO: clean this up and assign the selection model on teh table directly.
|
|
4316
3972
|
// tableModel.useSelectionModel(model) and have the seleciton column automatically
|
|
@@ -4319,52 +3975,44 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4319
3975
|
_addSelectionColumn(selectionModel, visible) {
|
|
4320
3976
|
assert.isNil(this.selectionColumnModel);
|
|
4321
3977
|
const columnId = "selection-column";
|
|
4322
|
-
this.selectionColumnModel = new SelectionColumnModel(columnId,
|
|
3978
|
+
this.selectionColumnModel = new SelectionColumnModel(columnId, () => this.getColumnTextProperties(columnId), this.selectionModelProxy);
|
|
4323
3979
|
this.selectionColumnModel.useSelectionModel(selectionModel);
|
|
4324
3980
|
this.addRowClass("aup-row-selected", row => this.selectionColumnModel.isSelected(row));
|
|
4325
|
-
const selectionColumnModel = this.addColumn(this.selectionColumnModel,
|
|
4326
|
-
if (!isNil(visible)) {
|
|
3981
|
+
const selectionColumnModel = this.addColumn(this.selectionColumnModel, 0);
|
|
3982
|
+
if (!isNil$1(visible)) {
|
|
4327
3983
|
selectionColumnModel.visibleWhile(visible instanceof ValueModel ? visible : ValueModel.constant(visible));
|
|
4328
3984
|
}
|
|
4329
3985
|
return selectionColumnModel;
|
|
4330
3986
|
}
|
|
4331
3987
|
addEditControls(saveCommandFactory, formFactory) {
|
|
4332
3988
|
this.saveCommandFactory = saveCommandFactory;
|
|
4333
|
-
if (isFunction(formFactory)) {
|
|
3989
|
+
if (isFunction$1(formFactory)) {
|
|
4334
3990
|
this._createForm = formFactory;
|
|
4335
3991
|
}
|
|
4336
3992
|
const columnId = "editControls";
|
|
4337
|
-
return this.addColumn(new EditorControlColumnModel(columnId,
|
|
3993
|
+
return this.addColumn(new EditorControlColumnModel(columnId, saveCommandFactory, () => this.getColumnTextProperties(columnId)));
|
|
4338
3994
|
}
|
|
4339
3995
|
addCustomColumn(columnId, dataAccessor) {
|
|
4340
|
-
return this.addColumn(new CustomValueColumnModel(columnId,
|
|
3996
|
+
return this.addColumn(new CustomValueColumnModel(columnId, () => this.getColumnTextProperties(columnId), dataAccessor));
|
|
4341
3997
|
}
|
|
4342
3998
|
addComponentColumn(columnId, component, onComponentInitOrOptions) {
|
|
4343
|
-
return this.addColumn(new CustomValueColumnModel(columnId,
|
|
3999
|
+
return this.addColumn(new CustomValueColumnModel(columnId, () => this.getColumnTextProperties(columnId), row => row)).cellRenderer(component, onComponentInitOrOptions);
|
|
4344
4000
|
}
|
|
4345
|
-
addMoreMenu(componentClass
|
|
4001
|
+
addMoreMenu(componentClass) {
|
|
4346
4002
|
return this.addComponentColumn("more-menu", TableMoreMenuComponent, (component) => {
|
|
4347
|
-
component.configurePopupComponentType(componentClass
|
|
4003
|
+
component.configurePopupComponentType(componentClass);
|
|
4348
4004
|
}).columnTextProperties({
|
|
4349
4005
|
headerText() {
|
|
4350
4006
|
return "";
|
|
4351
4007
|
}
|
|
4352
4008
|
});
|
|
4353
4009
|
}
|
|
4354
|
-
addFooterRow(component, initialiseCallback) {
|
|
4355
|
-
assert.isNil(this.footerRowModel);
|
|
4356
|
-
this.footerRowModel = new FooterRowModel.Impl(component, initialiseCallback);
|
|
4357
|
-
return this.footerRowModel;
|
|
4358
|
-
}
|
|
4359
4010
|
addTemplateColumn(columnId) {
|
|
4360
|
-
return this.addColumn(new CustomTemplateColumnModel(columnId,
|
|
4011
|
+
return this.addColumn(new CustomTemplateColumnModel(columnId, () => this.getColumnTextProperties(columnId)));
|
|
4361
4012
|
}
|
|
4362
4013
|
addRowClass(className, predicate) {
|
|
4363
4014
|
this.rowClassNamePredicates.push(new RowClass(className, predicate));
|
|
4364
4015
|
}
|
|
4365
|
-
addRowAttribute(attributeName, getValue) {
|
|
4366
|
-
this.rowAttributeGenerators.push(new RowAttribute(attributeName, getValue));
|
|
4367
|
-
}
|
|
4368
4016
|
getRowClasses(row) {
|
|
4369
4017
|
const classNames = [];
|
|
4370
4018
|
this.rowClassNamePredicates.forEach(i => {
|
|
@@ -4374,13 +4022,8 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
4374
4022
|
});
|
|
4375
4023
|
return classNames;
|
|
4376
4024
|
}
|
|
4377
|
-
|
|
4378
|
-
return this.
|
|
4379
|
-
return { ...result, [generator.attributeName]: generator.getValue(row) };
|
|
4380
|
-
}, {});
|
|
4381
|
-
}
|
|
4382
|
-
addColumn(column, position) {
|
|
4383
|
-
return this.columnManager.addColumn(column, position);
|
|
4025
|
+
addColumn(column, index) {
|
|
4026
|
+
return this._columnList.addColumn(column, index);
|
|
4384
4027
|
}
|
|
4385
4028
|
columnTextProperties(columnTextProperties) {
|
|
4386
4029
|
this._columnTextPropertiesLookup = columnTextProperties;
|
|
@@ -4497,7 +4140,7 @@ class TableCellComponent extends DisposableComponent {
|
|
|
4497
4140
|
};
|
|
4498
4141
|
}
|
|
4499
4142
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4500
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCellComponent, selector: "aup-table-cell", inputs: { row: "row", column: "column", editSession: "editSession", tableModel: "tableModel" }, host: { properties: { "class": "this.defaultClassNames", "class.fillCell": "this.fillCell", "class.padChild": "this.padChild" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"!hasActiveEditor()\" [cdkPortalOutlet]=\"getRendererPortal()\" (attached)=\"initialiseRenderer($event)\"></ng-container>\n<ng-container *ngIf=\"hasActiveEditor()\" [cdkPortalOutlet]=\"getEditorPortal()\" (attached)=\"initialiseEditor($event)\"></ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
4143
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCellComponent, selector: "aup-table-cell", inputs: { row: "row", column: "column", editSession: "editSession", tableModel: "tableModel" }, host: { properties: { "class": "this.defaultClassNames", "class.fillCell": "this.fillCell", "class.padChild": "this.padChild" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"!hasActiveEditor()\" [cdkPortalOutlet]=\"getRendererPortal()\" (attached)=\"initialiseRenderer($event)\"></ng-container>\n<ng-container *ngIf=\"hasActiveEditor()\" [cdkPortalOutlet]=\"getEditorPortal()\" (attached)=\"initialiseEditor($event)\"></ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
4501
4144
|
}
|
|
4502
4145
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCellComponent, decorators: [{
|
|
4503
4146
|
type: Component,
|
|
@@ -4536,7 +4179,7 @@ class TableHeaderCellComponent {
|
|
|
4536
4179
|
return this[HEADER_CELL_RENDERER_PORTAL];
|
|
4537
4180
|
}
|
|
4538
4181
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableHeaderCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4539
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: { column: "column" }, host: { properties: { "class": "this.defaultClassNames" } }, ngImport: i0, template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event)\"></ng-container>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type:
|
|
4182
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: { column: "column" }, host: { properties: { "class": "this.defaultClassNames" } }, ngImport: i0, template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event)\"></ng-container>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i3$2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
4540
4183
|
}
|
|
4541
4184
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableHeaderCellComponent, decorators: [{
|
|
4542
4185
|
type: Component,
|
|
@@ -4548,132 +4191,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
4548
4191
|
args: ['class']
|
|
4549
4192
|
}] } });
|
|
4550
4193
|
|
|
4551
|
-
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
|
4552
|
-
class TableFooterRow {
|
|
4553
|
-
row;
|
|
4554
|
-
defaultClassNames = 'aup-footer-row-renderer';
|
|
4555
|
-
get rowClasses() {
|
|
4556
|
-
return this.row.getActiveRowClasses();
|
|
4557
|
-
}
|
|
4558
|
-
initialise($event) {
|
|
4559
|
-
this.row.onInit && this.row.onInit($event.instance);
|
|
4560
|
-
}
|
|
4561
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableFooterRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4562
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableFooterRow, selector: "aup-table-footer-row", inputs: { row: "row" }, host: { properties: { "class": "this.rowClasses" } }, ngImport: i0, template: "<ng-container [cdkPortalOutlet]=\"row.portal\" (attached)=\"initialise($event)\"></ng-container>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
4563
|
-
}
|
|
4564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableFooterRow, decorators: [{
|
|
4565
|
-
type: Component,
|
|
4566
|
-
args: [{ selector: 'aup-table-footer-row', template: "<ng-container [cdkPortalOutlet]=\"row.portal\" (attached)=\"initialise($event)\"></ng-container>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}\n"] }]
|
|
4567
|
-
}], propDecorators: { row: [{
|
|
4568
|
-
type: Input
|
|
4569
|
-
}], defaultClassNames: [{
|
|
4570
|
-
type: HostBinding,
|
|
4571
|
-
args: ['class']
|
|
4572
|
-
}], rowClasses: [{
|
|
4573
|
-
type: HostBinding,
|
|
4574
|
-
args: ['class']
|
|
4575
|
-
}] } });
|
|
4576
|
-
|
|
4577
|
-
const AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER = new InjectionToken("AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER");
|
|
4578
|
-
class TableRowAttributesDirective {
|
|
4579
|
-
elementRef;
|
|
4580
|
-
aupTableRowAttributes;
|
|
4581
|
-
constructor(elementRef) {
|
|
4582
|
-
this.elementRef = elementRef;
|
|
4583
|
-
}
|
|
4584
|
-
ngOnInit() {
|
|
4585
|
-
for (const attr in this.aupTableRowAttributes) {
|
|
4586
|
-
this.elementRef.nativeElement.setAttribute(attr, this.aupTableRowAttributes[attr]);
|
|
4587
|
-
}
|
|
4588
|
-
}
|
|
4589
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableRowAttributesDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4590
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: TableRowAttributesDirective, selector: "[aupTableRowAttributes]", inputs: { aupTableRowAttributes: "aupTableRowAttributes" }, ngImport: i0 });
|
|
4591
|
-
}
|
|
4592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableRowAttributesDirective, decorators: [{
|
|
4593
|
-
type: Directive,
|
|
4594
|
-
args: [{
|
|
4595
|
-
selector: "[aupTableRowAttributes]",
|
|
4596
|
-
}]
|
|
4597
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { aupTableRowAttributes: [{
|
|
4598
|
-
type: Input
|
|
4599
|
-
}] } });
|
|
4600
4194
|
class TableBodyComponent extends ResizeAwareComponent {
|
|
4601
|
-
bufferMultiplier;
|
|
4602
4195
|
#data$_accessor_storage = proxify((ListModel));
|
|
4603
4196
|
get data$() { return this.#data$_accessor_storage; }
|
|
4604
4197
|
set data$(value) { this.#data$_accessor_storage = value; }
|
|
4605
4198
|
#tableModel_accessor_storage = proxify((AbstractTableModel));
|
|
4606
4199
|
get tableModel() { return this.#tableModel_accessor_storage; }
|
|
4607
4200
|
set tableModel(value) { this.#tableModel_accessor_storage = value; }
|
|
4608
|
-
#footerRow_accessor_storage = proxify((FooterRowModel.Impl));
|
|
4609
|
-
get footerRow() { return this.#footerRow_accessor_storage; }
|
|
4610
|
-
set footerRow(value) { this.#footerRow_accessor_storage = value; }
|
|
4611
4201
|
#showHeader$_accessor_storage = proxify((ValueModel));
|
|
4612
4202
|
get showHeader$() { return this.#showHeader$_accessor_storage; }
|
|
4613
4203
|
set showHeader$(value) { this.#showHeader$_accessor_storage = value; }
|
|
4614
4204
|
#showHeader_accessor_storage = true;
|
|
4615
4205
|
get showHeader() { return this.#showHeader_accessor_storage; }
|
|
4616
4206
|
set showHeader(value) { this.#showHeader_accessor_storage = value; }
|
|
4207
|
+
visibleRowCount = new EventEmitter();
|
|
4617
4208
|
trackBy;
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
scrollViewport;
|
|
4209
|
+
/**
|
|
4210
|
+
* Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either
|
|
4211
|
+
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
4212
|
+
* containment area.
|
|
4213
|
+
*/
|
|
4214
|
+
enableScrolling = false;
|
|
4625
4215
|
columns$;
|
|
4626
4216
|
columnIds$;
|
|
4627
4217
|
columnsById$;
|
|
4218
|
+
_visibleRowCount$;
|
|
4628
4219
|
// TODO: support user defined header and row heights via css vars.
|
|
4629
|
-
headerHeight$ = new MutableValueModel(
|
|
4630
|
-
rowHeight$ = new MutableValueModel(
|
|
4220
|
+
headerHeight$ = new MutableValueModel(29);
|
|
4221
|
+
rowHeight$ = new MutableValueModel(40);
|
|
4631
4222
|
baseCssClass = "aup-table-component";
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
constructor(bufferMultiplier = 1) {
|
|
4636
|
-
super();
|
|
4637
|
-
this.bufferMultiplier = bufferMultiplier;
|
|
4638
|
-
const { chain, when, observe } = Dsl.disposeWith(this);
|
|
4223
|
+
constructor(elementRef, ngZone) {
|
|
4224
|
+
super(elementRef, ngZone);
|
|
4225
|
+
const { chain, when } = Dsl.disposeWith(this);
|
|
4639
4226
|
const actualHeaderHeight$ = chain(this.showHeader$).map(show => {
|
|
4640
4227
|
return show ? this.headerHeight$.value : 0;
|
|
4641
4228
|
}, { dependsOn: this.headerHeight$ });
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
this.
|
|
4648
|
-
|
|
4229
|
+
this._visibleRowCount$ = chain(this.bounds$).map(bounds => {
|
|
4230
|
+
// TODO: this doesn't take into account any css styling adjustments etc. Will investigate if it's an issue.
|
|
4231
|
+
const rawRowCount = (bounds.height - actualHeaderHeight$.value) / this.rowHeight$.value;
|
|
4232
|
+
return rawRowCount < 1 ? 0 : Math.floor(rawRowCount);
|
|
4233
|
+
}, {
|
|
4234
|
+
dependsOn: [actualHeaderHeight$, this.rowHeight$],
|
|
4235
|
+
postponeWhile: chain(this.bounds$).pluckNumeric("height").isLessThan(1)
|
|
4236
|
+
});
|
|
4237
|
+
when(this._visibleRowCount$).changes(visibleRows => {
|
|
4238
|
+
this.visibleRowCount.emit(visibleRows);
|
|
4239
|
+
}, { initialValue: "triggerChangeUnlessNil" });
|
|
4649
4240
|
this.onInit(() => {
|
|
4650
|
-
this.columns$ = chain(this.tableModel.
|
|
4241
|
+
this.columns$ = chain(this.tableModel.columns);
|
|
4651
4242
|
this.columnIds$ = chain(this.columns$).pluck("columnId");
|
|
4652
4243
|
this.columnsById$ = chain(this.columns$).indexBy('columnId');
|
|
4653
4244
|
});
|
|
4654
|
-
// const txo = new TransactionObserver({verbose: false}).onEvent(e => console.log(e.name, e.payload));
|
|
4655
|
-
// txo.observe('this.virtualScrollRowRange$', this.virtualScrollRowRange$);
|
|
4656
|
-
// txo.observe('this.virtualScrollSpacerSize$', this.virtualScrollSpacerSize$);
|
|
4657
|
-
// txo.observe('this.virtualRows$', this.virtualRows$);
|
|
4658
|
-
// txo.observe('this.tableBodyHeight$', this.tableBodyHeight$);
|
|
4659
|
-
// txo.observe('this.virtualScrollActive$', this.virtualScrollActive$);
|
|
4660
|
-
}
|
|
4661
|
-
ngAfterViewInit() {
|
|
4662
|
-
super.ngAfterViewInit();
|
|
4663
|
-
if (this.scrollViewport) {
|
|
4664
|
-
const { observe } = Dsl.disposeWith(this);
|
|
4665
|
-
this.scrollViewport.elementScrolled().subscribe(() => this.notifyScrolled());
|
|
4666
|
-
}
|
|
4667
4245
|
}
|
|
4668
4246
|
get hideHeader() {
|
|
4669
4247
|
return !this.showHeader;
|
|
4670
4248
|
}
|
|
4671
|
-
get headerHeightCssVar() {
|
|
4672
|
-
return `${this.headerHeight$.value}px`;
|
|
4673
|
-
}
|
|
4674
|
-
get rowHeightCssVar() {
|
|
4675
|
-
return `${this.rowHeight$.value}px`;
|
|
4676
|
-
}
|
|
4677
4249
|
isEditing(row) {
|
|
4678
4250
|
return !!this.tableModel.getEditSessionFor(row);
|
|
4679
4251
|
}
|
|
@@ -4698,110 +4270,51 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
4698
4270
|
}
|
|
4699
4271
|
return classes;
|
|
4700
4272
|
}
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
const tbody = this.elementRef.nativeElement.querySelector("tbody");
|
|
4704
|
-
const bodyHeight = tbody.offsetHeight;
|
|
4705
|
-
if (this.data$.length > 0 && bodyHeight < this.rowHeight$.value) {
|
|
4706
|
-
// Hacks to get our virtual scroll to repaint
|
|
4707
|
-
// Logger.get(this).log(`rowCount=${this.data$.length}, bodyHeight=${bodyHeight} -> virtual table not rendering, triggering resize to force repaint`)
|
|
4708
|
-
window.dispatchEvent(new Event('resize'));
|
|
4709
|
-
if (waitMillis < 500) {
|
|
4710
|
-
this.scheduleTableHeightCheck(waitMillis + 50);
|
|
4711
|
-
}
|
|
4712
|
-
}
|
|
4713
|
-
}, waitMillis);
|
|
4714
|
-
}
|
|
4715
|
-
notifyScrolled() {
|
|
4716
|
-
this.virtualScrollActive$.value = true;
|
|
4717
|
-
this.clearScrollTimeout();
|
|
4718
|
-
this.scrollTimeout = setTimeout(() => {
|
|
4719
|
-
return this.virtualScrollActive$.value = false;
|
|
4720
|
-
}, 200);
|
|
4721
|
-
}
|
|
4722
|
-
clearScrollTimeout() {
|
|
4723
|
-
if (this.scrollTimeout) {
|
|
4724
|
-
clearTimeout(this.scrollTimeout);
|
|
4725
|
-
}
|
|
4726
|
-
}
|
|
4727
|
-
initialiseFooter($event) {
|
|
4728
|
-
const portalRef = $event;
|
|
4729
|
-
this.footerRow.onInit(portalRef.instance);
|
|
4730
|
-
}
|
|
4731
|
-
Proxify = Proxify;
|
|
4732
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableBodyComponent, deps: [{ token: AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4733
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableBodyComponent, selector: "aup-table-body", inputs: { data$: "data$", tableModel: "tableModel", footerRow: "footerRow", showHeader$: "showHeader$", showHeader: "showHeader", trackBy: "trackBy", scrollMode$: "scrollMode$", scrollMode: "scrollMode" }, host: { properties: { "attr.scrollMode": "this.scrollMode", "class": "this.baseCssClass", "class.hide-header": "this.hideHeader", "style.--aup-table-header-height": "this.headerHeightCssVar", "style.--aup-table-row-height": "this.rowHeightCssVar" } }, viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"classic-scroll-container\" *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [editSession]=\"$any(tableModel.getEditSessionFor(row))\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabled()\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container matColumnDef=\"sticky-footer\" *ngIf=\"Proxify.hasTarget(footerRow)\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columns$.length\" [ngClass]=\"'footer-cell'\">\n <aup-table-footer-row [row]=\"$any(footerRow)\"></aup-table-footer-row>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['sticky-footer']; sticky: true\"></tr>\n </ng-container>\n\n </table>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [editSession]=\"$any(tableModel.getEditSessionFor(row))\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabled()\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n<!-- Layout doesn't work yet - probably needs fixed footer row height -->\n<!-- <ng-container matColumnDef=\"sticky-footer\" *ngIf=\"tableModel.footerRowPortalRef\">-->\n<!-- <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columns$.length\">-->\n<!-- <ng-container [cdkPortalOutlet]=\"tableModel.footerRowPortalRef.portal\" (attached)=\"initialiseFooter($event)\"></ng-container>-->\n<!-- </td>-->\n<!-- <tr mat-footer-row *matFooterRowDef=\"['sticky-footer']; sticky: true\"></tr>-->\n<!-- </ng-container>-->\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$6.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i2$6.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i2$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i2$6.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i2$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i2$6.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i1$2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i4$4.TableItemSizeDirective, selector: "cdk-virtual-scroll-viewport[tvsItemSize]", inputs: ["tvsItemSize", "headerEnabled", "headerHeight", "footerEnabled", "footerHeight", "bufferMultiplier"] }, { kind: "directive", type: TableRowAttributesDirective, selector: "[aupTableRowAttributes]", inputs: ["aupTableRowAttributes"] }, { kind: "component", type: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "editSession", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }, { kind: "component", type: TableFooterRow, selector: "aup-table-footer-row", inputs: ["row"] }] });
|
|
4273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableBodyComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
4274
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableBodyComponent, selector: "aup-table-body", inputs: { data$: "data$", tableModel: "tableModel", showHeader$: "showHeader$", showHeader: "showHeader", trackBy: "trackBy", enableScrolling: "enableScrolling" }, outputs: { visibleRowCount: "visibleRowCount" }, host: { properties: { "class.enable-scrolling": "this.enableScrolling", "class": "this.baseCssClass", "class.hide-header": "this.hideHeader" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabled()\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "editSession", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }] });
|
|
4734
4275
|
}
|
|
4735
4276
|
__decorate([
|
|
4736
4277
|
Proxify(),
|
|
4737
|
-
__metadata("design:type",
|
|
4278
|
+
__metadata("design:type", Object)
|
|
4738
4279
|
], TableBodyComponent.prototype, "data$", null);
|
|
4739
4280
|
__decorate([
|
|
4740
4281
|
Proxify(),
|
|
4741
|
-
__metadata("design:type",
|
|
4282
|
+
__metadata("design:type", Object)
|
|
4742
4283
|
], TableBodyComponent.prototype, "tableModel", null);
|
|
4743
4284
|
__decorate([
|
|
4744
4285
|
Proxify(),
|
|
4745
|
-
__metadata("design:type",
|
|
4746
|
-
], TableBodyComponent.prototype, "footerRow", null);
|
|
4747
|
-
__decorate([
|
|
4748
|
-
Proxify(),
|
|
4749
|
-
__metadata("design:type", ValueModel)
|
|
4286
|
+
__metadata("design:type", Object)
|
|
4750
4287
|
], TableBodyComponent.prototype, "showHeader$", null);
|
|
4751
4288
|
__decorate([
|
|
4752
4289
|
StoreInValueModel(),
|
|
4753
4290
|
__metadata("design:type", Object)
|
|
4754
4291
|
], TableBodyComponent.prototype, "showHeader", null);
|
|
4755
|
-
__decorate([
|
|
4756
|
-
Proxify(),
|
|
4757
|
-
__metadata("design:type", ValueModel)
|
|
4758
|
-
], TableBodyComponent.prototype, "scrollMode$", null);
|
|
4759
|
-
__decorate([
|
|
4760
|
-
StoreInValueModel(),
|
|
4761
|
-
__metadata("design:type", String)
|
|
4762
|
-
], TableBodyComponent.prototype, "scrollMode", null);
|
|
4763
4292
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableBodyComponent, decorators: [{
|
|
4764
4293
|
type: Component,
|
|
4765
|
-
args: [{ selector: "aup-table-body", template: "
|
|
4766
|
-
}], ctorParameters: function () { return [{ type:
|
|
4767
|
-
type: Inject,
|
|
4768
|
-
args: [AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER]
|
|
4769
|
-
}, {
|
|
4770
|
-
type: Optional
|
|
4771
|
-
}] }]; }, propDecorators: { data$: [{
|
|
4294
|
+
args: [{ selector: "aup-table-body", template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabled()\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"] }]
|
|
4295
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { data$: [{
|
|
4772
4296
|
type: Input
|
|
4773
4297
|
}], tableModel: [{
|
|
4774
4298
|
type: Input
|
|
4775
|
-
}], footerRow: [{
|
|
4776
|
-
type: Input
|
|
4777
4299
|
}], showHeader$: [{
|
|
4778
4300
|
type: Input
|
|
4779
4301
|
}], showHeader: [{
|
|
4780
4302
|
type: Input
|
|
4303
|
+
}], visibleRowCount: [{
|
|
4304
|
+
type: Output
|
|
4781
4305
|
}], trackBy: [{
|
|
4782
4306
|
type: Input
|
|
4783
|
-
}],
|
|
4784
|
-
type: Input
|
|
4785
|
-
}], scrollMode: [{
|
|
4307
|
+
}], enableScrolling: [{
|
|
4786
4308
|
type: Input
|
|
4787
4309
|
}, {
|
|
4788
4310
|
type: HostBinding,
|
|
4789
|
-
args: ["
|
|
4790
|
-
}], scrollViewport: [{
|
|
4791
|
-
type: ViewChild,
|
|
4792
|
-
args: [CdkVirtualScrollViewport]
|
|
4311
|
+
args: ["class.enable-scrolling"]
|
|
4793
4312
|
}], baseCssClass: [{
|
|
4794
4313
|
type: HostBinding,
|
|
4795
4314
|
args: ["class"]
|
|
4796
4315
|
}], hideHeader: [{
|
|
4797
4316
|
type: HostBinding,
|
|
4798
4317
|
args: ["class.hide-header"]
|
|
4799
|
-
}], headerHeightCssVar: [{
|
|
4800
|
-
type: HostBinding,
|
|
4801
|
-
args: ["style.--aup-table-header-height"]
|
|
4802
|
-
}], rowHeightCssVar: [{
|
|
4803
|
-
type: HostBinding,
|
|
4804
|
-
args: ["style.--aup-table-row-height"]
|
|
4805
4318
|
}] } });
|
|
4806
4319
|
|
|
4807
4320
|
class TableMoreMenuPopupComponent extends DisposableComponent {
|
|
@@ -4922,10 +4435,8 @@ class TableFilterModel extends GarbageCollector {
|
|
|
4922
4435
|
this.useSearchText(options.searchText$);
|
|
4923
4436
|
this.useRowPredicate(options.predicate$);
|
|
4924
4437
|
const { chain } = Dsl.disposeWith(this);
|
|
4925
|
-
const textSearchRegex$ = chain(this._searchText$)
|
|
4926
|
-
|
|
4927
|
-
.map(text => {
|
|
4928
|
-
return isEmpty(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
|
|
4438
|
+
const textSearchRegex$ = chain(this._searchText$).map(text => {
|
|
4439
|
+
return isEmpty$1(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
|
|
4929
4440
|
}, { allowNil: true });
|
|
4930
4441
|
this._rowPredicate = chain(this._rowPredicate$)
|
|
4931
4442
|
.map(predicate => {
|
|
@@ -5133,30 +4644,31 @@ class TableComponent extends AbstractTableComponent {
|
|
|
5133
4644
|
#filterModel_accessor_storage = proxify((TableFilterModel));
|
|
5134
4645
|
get filterModel() { return this.#filterModel_accessor_storage; }
|
|
5135
4646
|
set filterModel(value) { this.#filterModel_accessor_storage = value; }
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
4647
|
+
#enablePaging$_accessor_storage = proxify((ValueModel));
|
|
4648
|
+
get enablePaging$() { return this.#enablePaging$_accessor_storage; }
|
|
4649
|
+
set enablePaging$(value) { this.#enablePaging$_accessor_storage = value; }
|
|
4650
|
+
#enablePaging_accessor_storage = false;
|
|
4651
|
+
get enablePaging() { return this.#enablePaging_accessor_storage; }
|
|
4652
|
+
set enablePaging(value) { this.#enablePaging_accessor_storage = value; }
|
|
4653
|
+
// enablePaging() {
|
|
4654
|
+
// if (isNil(this.pageController)) {
|
|
4655
|
+
// const pagedListModel = this.registerDisposable(PagedListModel.create(this._visibleRows$.getDelegate(), this._pageSize));
|
|
4656
|
+
// this._visibleRows$.setDelegate(pagedListModel);
|
|
4657
|
+
// this._pageController = pagedListModel.pageController;
|
|
4658
|
+
// }
|
|
4659
|
+
// }
|
|
5147
4660
|
_footerContentAdded = false;
|
|
5148
4661
|
_filteredRows$ = this.registerDisposable(new DelegatingListModel());
|
|
5149
|
-
|
|
4662
|
+
_pageSize = new MutableValueModel();
|
|
4663
|
+
pagedListModel;
|
|
5150
4664
|
constructor(injector) {
|
|
5151
4665
|
super(injector);
|
|
5152
|
-
const {
|
|
5153
|
-
this.
|
|
5154
|
-
|
|
5155
|
-
}, { dependsOn: this.scrollMode$ });
|
|
4666
|
+
const { when } = Dsl.disposeWith(this);
|
|
4667
|
+
this.onDispose(() => this.disposeOfPagedListModel());
|
|
4668
|
+
when(this.enablePaging$).changes(enabled => this.configurePaging(enabled));
|
|
5156
4669
|
}
|
|
5157
4670
|
ngOnInit() {
|
|
5158
4671
|
super.ngOnInit();
|
|
5159
|
-
const { when } = Dsl.disposeWith(this);
|
|
5160
4672
|
if (CanProxy.hasTarget(this.filterModel)) {
|
|
5161
4673
|
this.registerDisposable(this.filterModel.bindToTable(this._dataSource$, this.getModel().textSearchPredicate$));
|
|
5162
4674
|
this.highlightText$.setDelegate(this.filterModel.highlightText$);
|
|
@@ -5165,28 +4677,50 @@ class TableComponent extends AbstractTableComponent {
|
|
|
5165
4677
|
else {
|
|
5166
4678
|
this._filteredRows$.setDelegate(this._dataSource$);
|
|
5167
4679
|
}
|
|
5168
|
-
this.
|
|
5169
|
-
// let users of the model know what the current visible and filtered rows are for selection models and what not
|
|
4680
|
+
this.configurePaging(this.enablePaging$.value);
|
|
5170
4681
|
this.tableModel.bindToTable(this._filteredRows$, this._visibleRows$);
|
|
5171
|
-
when(this.tableModel.filteredRows$).changes(() => {
|
|
5172
|
-
this.cdr.markForCheck();
|
|
5173
|
-
});
|
|
5174
4682
|
}
|
|
5175
4683
|
getModel() {
|
|
5176
4684
|
return this.tableModel;
|
|
5177
4685
|
}
|
|
4686
|
+
get pageController() {
|
|
4687
|
+
// TODO: need to support external page controllers if the paging occurs to our primary data source.
|
|
4688
|
+
return this.pagedListModel.pageController;
|
|
4689
|
+
}
|
|
4690
|
+
configurePaging(enable) {
|
|
4691
|
+
if (enable) {
|
|
4692
|
+
if (!this.pagedListModel) {
|
|
4693
|
+
this.pagedListModel = PagedListModel.create(this._filteredRows$, this._pageSize);
|
|
4694
|
+
}
|
|
4695
|
+
this._visibleRows$.setDelegate(this.pagedListModel);
|
|
4696
|
+
}
|
|
4697
|
+
else {
|
|
4698
|
+
this.disposeOfPagedListModel();
|
|
4699
|
+
this._visibleRows$.setDelegate(this._filteredRows$);
|
|
4700
|
+
}
|
|
4701
|
+
}
|
|
4702
|
+
disposeOfPagedListModel() {
|
|
4703
|
+
if (this.pagedListModel) {
|
|
4704
|
+
this.pagedListModel.dispose();
|
|
4705
|
+
this.pagedListModel = null;
|
|
4706
|
+
}
|
|
4707
|
+
}
|
|
5178
4708
|
footerContentChanged($event) {
|
|
5179
4709
|
// console.log($event);
|
|
5180
4710
|
this._footerContentAdded = true;
|
|
5181
4711
|
}
|
|
4712
|
+
//@Trace()
|
|
4713
|
+
updatePageSize(count) {
|
|
4714
|
+
this._pageSize.value = count;
|
|
4715
|
+
}
|
|
5182
4716
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
5183
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel",
|
|
4717
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel", enablePaging$: "enablePaging$", enablePaging: "enablePaging" }, providers: [
|
|
5184
4718
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
5185
|
-
],
|
|
4719
|
+
], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [trackBy]=\"trackBy\"\n (visibleRowCount)=\"updatePageSize($event)\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer]\"></ng-content></div>\n <aup-paginator *ngIf=\"enablePaging$.value\" [pageController]=\"pageController\"></aup-paginator>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: PaginatorComponent, selector: "aup-paginator", inputs: ["pageController"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "showHeader$", "showHeader", "trackBy", "enableScrolling"], outputs: ["visibleRowCount"] }] });
|
|
5186
4720
|
}
|
|
5187
4721
|
__decorate([
|
|
5188
4722
|
Proxify(),
|
|
5189
|
-
__metadata("design:type",
|
|
4723
|
+
__metadata("design:type", Object)
|
|
5190
4724
|
], TableComponent.prototype, "tableModel", null);
|
|
5191
4725
|
__decorate([
|
|
5192
4726
|
Proxify(),
|
|
@@ -5194,27 +4728,24 @@ __decorate([
|
|
|
5194
4728
|
], TableComponent.prototype, "filterModel", null);
|
|
5195
4729
|
__decorate([
|
|
5196
4730
|
Proxify(),
|
|
5197
|
-
__metadata("design:type",
|
|
5198
|
-
], TableComponent.prototype, "
|
|
4731
|
+
__metadata("design:type", Object)
|
|
4732
|
+
], TableComponent.prototype, "enablePaging$", null);
|
|
5199
4733
|
__decorate([
|
|
5200
4734
|
StoreInValueModel(),
|
|
5201
4735
|
__metadata("design:type", Object)
|
|
5202
|
-
], TableComponent.prototype, "
|
|
4736
|
+
], TableComponent.prototype, "enablePaging", null);
|
|
5203
4737
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableComponent, decorators: [{
|
|
5204
4738
|
type: Component,
|
|
5205
|
-
args: [{ selector: 'aup-table',
|
|
4739
|
+
args: [{ selector: 'aup-table', providers: [
|
|
5206
4740
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
5207
|
-
], template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"
|
|
4741
|
+
], template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [trackBy]=\"trackBy\"\n (visibleRowCount)=\"updatePageSize($event)\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer]\"></ng-content></div>\n <aup-paginator *ngIf=\"enablePaging$.value\" [pageController]=\"pageController\"></aup-paginator>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"] }]
|
|
5208
4742
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { tableModel: [{
|
|
5209
4743
|
type: Input
|
|
5210
4744
|
}], filterModel: [{
|
|
5211
4745
|
type: Input
|
|
5212
|
-
}],
|
|
5213
|
-
type: ViewChild,
|
|
5214
|
-
args: [TableBodyComponent]
|
|
5215
|
-
}], scrollMode$: [{
|
|
4746
|
+
}], enablePaging$: [{
|
|
5216
4747
|
type: Input
|
|
5217
|
-
}],
|
|
4748
|
+
}], enablePaging: [{
|
|
5218
4749
|
type: Input
|
|
5219
4750
|
}] } });
|
|
5220
4751
|
|
|
@@ -5396,7 +4927,7 @@ var DecoratedTreeNode;
|
|
|
5396
4927
|
}
|
|
5397
4928
|
}
|
|
5398
4929
|
__decorate([
|
|
5399
|
-
|
|
4930
|
+
Memoize(),
|
|
5400
4931
|
__metadata("design:type", Array),
|
|
5401
4932
|
__metadata("design:paramtypes", [])
|
|
5402
4933
|
], Decorator.prototype, "children", null);
|
|
@@ -5449,7 +4980,7 @@ var DecoratedTreeNode;
|
|
|
5449
4980
|
__metadata("design:returntype", Array)
|
|
5450
4981
|
], Decorator.prototype, "ancestors", null);
|
|
5451
4982
|
__decorate([
|
|
5452
|
-
|
|
4983
|
+
Memoize(),
|
|
5453
4984
|
__metadata("design:type", Number),
|
|
5454
4985
|
__metadata("design:paramtypes", [])
|
|
5455
4986
|
], Decorator.prototype, "depth", null);
|
|
@@ -5460,8 +4991,8 @@ class TreeLabelColumnModel extends ColumnModel {
|
|
|
5460
4991
|
expansionModel;
|
|
5461
4992
|
labelFactory = () => undefined;
|
|
5462
4993
|
iconFactory;
|
|
5463
|
-
constructor(columnId,
|
|
5464
|
-
super(columnId,
|
|
4994
|
+
constructor(columnId, textPropertiesProvider, expansionModel) {
|
|
4995
|
+
super(columnId, textPropertiesProvider);
|
|
5465
4996
|
this.expansionModel = expansionModel;
|
|
5466
4997
|
this.cellRenderer(TreeLabelCellRendererComponent);
|
|
5467
4998
|
}
|
|
@@ -5529,7 +5060,7 @@ class TreeTableModel extends AbstractTableModel {
|
|
|
5529
5060
|
}
|
|
5530
5061
|
treeControlColumn(builder) {
|
|
5531
5062
|
const columnId = 'tree-label';
|
|
5532
|
-
const column = new TreeLabelColumnModel(columnId,
|
|
5063
|
+
const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this);
|
|
5533
5064
|
builder(column);
|
|
5534
5065
|
this.addColumn(column);
|
|
5535
5066
|
}
|
|
@@ -5855,15 +5386,11 @@ class TreeTableComponent extends AbstractTableComponent {
|
|
|
5855
5386
|
#expansionModel_accessor_storage = proxify((TreeExpansionModel));
|
|
5856
5387
|
get expansionModel() { return this.#expansionModel_accessor_storage; }
|
|
5857
5388
|
set expansionModel(value) { this.#expansionModel_accessor_storage = value; }
|
|
5858
|
-
scrollMode$;
|
|
5859
5389
|
constructor(injector) {
|
|
5860
5390
|
super(injector);
|
|
5861
|
-
const { chain } = Dsl.disposeWith(this);
|
|
5862
|
-
this.scrollMode$ = chain(this.enableScrolling$).map(enabled => enabled ? "classic" : "none");
|
|
5863
5391
|
}
|
|
5864
5392
|
ngOnInit() {
|
|
5865
5393
|
super.ngOnInit();
|
|
5866
|
-
const { when } = Dsl.disposeWith(this);
|
|
5867
5394
|
// TODO: clean up all this tightly coupled shit, should the expansion model really be separate from the tree model?
|
|
5868
5395
|
if (!this.expansionModel) {
|
|
5869
5396
|
this.expansionModel = new TreeExpansionModel({ disposedWith: this });
|
|
@@ -5873,9 +5400,6 @@ class TreeTableComponent extends AbstractTableComponent {
|
|
|
5873
5400
|
this._visibleRows$.setDelegate(visibleRows$);
|
|
5874
5401
|
this.expansionModel.bindToTable(this._dataSource$, visibleRows$);
|
|
5875
5402
|
this.treeTableModel.bindToTable(this.expansionModel, visibleRows$, this._visibleRows$);
|
|
5876
|
-
when(this.treeTableModel.visibleRows$).changes(() => {
|
|
5877
|
-
this.cdr.markForCheck();
|
|
5878
|
-
});
|
|
5879
5403
|
}
|
|
5880
5404
|
getModel() {
|
|
5881
5405
|
return this.treeTableModel;
|
|
@@ -5883,7 +5407,7 @@ class TreeTableComponent extends AbstractTableComponent {
|
|
|
5883
5407
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TreeTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
5884
5408
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel", expansionModel: "expansionModel" }, providers: [
|
|
5885
5409
|
{ provide: AbstractTableComponent, useExisting: TreeTableComponent }
|
|
5886
|
-
], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [
|
|
5410
|
+
], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [aupHighlightTextModel]=\"highlightText$\"\n [trackBy]=\"trackBy\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-mdc-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"], dependencies: [{ kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "showHeader$", "showHeader", "trackBy", "enableScrolling"], outputs: ["visibleRowCount"] }] });
|
|
5887
5411
|
}
|
|
5888
5412
|
__decorate([
|
|
5889
5413
|
Proxify(),
|
|
@@ -5895,9 +5419,9 @@ __decorate([
|
|
|
5895
5419
|
], TreeTableComponent.prototype, "expansionModel", null);
|
|
5896
5420
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TreeTableComponent, decorators: [{
|
|
5897
5421
|
type: Component,
|
|
5898
|
-
args: [{ selector: 'aup-tree-table',
|
|
5422
|
+
args: [{ selector: 'aup-tree-table', providers: [
|
|
5899
5423
|
{ provide: AbstractTableComponent, useExisting: TreeTableComponent }
|
|
5900
|
-
], template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [
|
|
5424
|
+
], template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [aupHighlightTextModel]=\"highlightText$\"\n [trackBy]=\"trackBy\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-mdc-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"] }]
|
|
5901
5425
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { treeTableModel: [{
|
|
5902
5426
|
type: Input
|
|
5903
5427
|
}], expansionModel: [{
|
|
@@ -6079,7 +5603,6 @@ class ComponentsModule {
|
|
|
6079
5603
|
FocusableComponent,
|
|
6080
5604
|
CardContainerComponent,
|
|
6081
5605
|
TableComponent,
|
|
6082
|
-
TableRowAttributesDirective,
|
|
6083
5606
|
EditRowControlsComponent,
|
|
6084
5607
|
ColumnTemplateDirective,
|
|
6085
5608
|
DefaultCellRendererComponent,
|
|
@@ -6113,9 +5636,7 @@ class ComponentsModule {
|
|
|
6113
5636
|
MarkdownComponent,
|
|
6114
5637
|
TableBodyComponent,
|
|
6115
5638
|
TableMoreMenuComponent,
|
|
6116
|
-
TableMoreMenuPopupComponent,
|
|
6117
|
-
SearchInputComponent,
|
|
6118
|
-
TableFooterRow], imports: [CommonModule,
|
|
5639
|
+
TableMoreMenuPopupComponent], imports: [CommonModule,
|
|
6119
5640
|
BrowserAnimationsModule,
|
|
6120
5641
|
FormsModule,
|
|
6121
5642
|
MatInputModule,
|
|
@@ -6134,10 +5655,7 @@ class ComponentsModule {
|
|
|
6134
5655
|
MatMenuModule,
|
|
6135
5656
|
MatDividerModule,
|
|
6136
5657
|
MatProgressSpinnerModule,
|
|
6137
|
-
MatProgressBarModule,
|
|
6138
|
-
ScrollingModule,
|
|
6139
|
-
TableVirtualScrollModule], exports: [TableFooterRow,
|
|
6140
|
-
NumberInputComponent,
|
|
5658
|
+
MatProgressBarModule], exports: [NumberInputComponent,
|
|
6141
5659
|
StringInputComponent,
|
|
6142
5660
|
TextInputComponent,
|
|
6143
5661
|
PasswordInputComponent,
|
|
@@ -6175,8 +5693,7 @@ class ComponentsModule {
|
|
|
6175
5693
|
LoadingContainerComponent,
|
|
6176
5694
|
MarkdownComponent,
|
|
6177
5695
|
TableMoreMenuComponent,
|
|
6178
|
-
TableMoreMenuPopupComponent
|
|
6179
|
-
SearchInputComponent] });
|
|
5696
|
+
TableMoreMenuPopupComponent] });
|
|
6180
5697
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ComponentsModule, providers: [
|
|
6181
5698
|
FocusBindingFactory,
|
|
6182
5699
|
MarkdownService
|
|
@@ -6199,9 +5716,7 @@ class ComponentsModule {
|
|
|
6199
5716
|
MatMenuModule,
|
|
6200
5717
|
MatDividerModule,
|
|
6201
5718
|
MatProgressSpinnerModule,
|
|
6202
|
-
MatProgressBarModule
|
|
6203
|
-
ScrollingModule,
|
|
6204
|
-
TableVirtualScrollModule] });
|
|
5719
|
+
MatProgressBarModule] });
|
|
6205
5720
|
}
|
|
6206
5721
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ComponentsModule, decorators: [{
|
|
6207
5722
|
type: NgModule,
|
|
@@ -6226,9 +5741,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6226
5741
|
MatMenuModule,
|
|
6227
5742
|
MatDividerModule,
|
|
6228
5743
|
MatProgressSpinnerModule,
|
|
6229
|
-
MatProgressBarModule
|
|
6230
|
-
ScrollingModule,
|
|
6231
|
-
TableVirtualScrollModule
|
|
5744
|
+
MatProgressBarModule
|
|
6232
5745
|
],
|
|
6233
5746
|
declarations: [
|
|
6234
5747
|
AbstractInputComponent,
|
|
@@ -6252,7 +5765,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6252
5765
|
FocusableComponent,
|
|
6253
5766
|
CardContainerComponent,
|
|
6254
5767
|
TableComponent,
|
|
6255
|
-
TableRowAttributesDirective,
|
|
6256
5768
|
EditRowControlsComponent,
|
|
6257
5769
|
ColumnTemplateDirective,
|
|
6258
5770
|
DefaultCellRendererComponent,
|
|
@@ -6287,11 +5799,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6287
5799
|
TableBodyComponent,
|
|
6288
5800
|
TableMoreMenuComponent,
|
|
6289
5801
|
TableMoreMenuPopupComponent,
|
|
6290
|
-
SearchInputComponent,
|
|
6291
|
-
TableFooterRow
|
|
6292
5802
|
],
|
|
6293
5803
|
exports: [
|
|
6294
|
-
TableFooterRow,
|
|
6295
5804
|
NumberInputComponent,
|
|
6296
5805
|
StringInputComponent,
|
|
6297
5806
|
TextInputComponent,
|
|
@@ -6331,7 +5840,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6331
5840
|
MarkdownComponent,
|
|
6332
5841
|
TableMoreMenuComponent,
|
|
6333
5842
|
TableMoreMenuPopupComponent,
|
|
6334
|
-
SearchInputComponent
|
|
6335
5843
|
],
|
|
6336
5844
|
providers: [
|
|
6337
5845
|
FocusBindingFactory,
|
|
@@ -6340,67 +5848,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6340
5848
|
}]
|
|
6341
5849
|
}] });
|
|
6342
5850
|
|
|
6343
|
-
class LoadableComponent extends DisposableComponent {
|
|
6344
|
-
#_loaded$ = new MutableValueModel();
|
|
6345
|
-
#asyncLoadables = [];
|
|
6346
|
-
#awaitedLoadables = [];
|
|
6347
|
-
get loaded$() {
|
|
6348
|
-
return this.#_loaded$.readonly$;
|
|
6349
|
-
}
|
|
6350
|
-
ngOnInit() {
|
|
6351
|
-
super.ngOnInit();
|
|
6352
|
-
this.#asyncLoadables.forEach(it => it.ensureLoaded());
|
|
6353
|
-
if (this.#awaitedLoadables.length > 0) {
|
|
6354
|
-
Promise.all(this.#awaitedLoadables.map(it => {
|
|
6355
|
-
return it.ensureLoaded(); //.then(() => console.log(`${it.constructor.name} loaded`));
|
|
6356
|
-
})).then(() => {
|
|
6357
|
-
this.#_loaded$.value = true;
|
|
6358
|
-
});
|
|
6359
|
-
}
|
|
6360
|
-
else {
|
|
6361
|
-
this.#_loaded$.value = true;
|
|
6362
|
-
}
|
|
6363
|
-
}
|
|
6364
|
-
injectLoadable(token, options) {
|
|
6365
|
-
return this.registerLoadable(inject(token), options);
|
|
6366
|
-
}
|
|
6367
|
-
registerLoadable(loadable, options) {
|
|
6368
|
-
if (this.loaded$.value) {
|
|
6369
|
-
loadable.ensureLoaded();
|
|
6370
|
-
}
|
|
6371
|
-
else {
|
|
6372
|
-
if (!options || options.wait === true) {
|
|
6373
|
-
this.#awaitedLoadables.push(loadable);
|
|
6374
|
-
}
|
|
6375
|
-
else {
|
|
6376
|
-
this.#asyncLoadables.push(loadable);
|
|
6377
|
-
}
|
|
6378
|
-
}
|
|
6379
|
-
return loadable;
|
|
6380
|
-
}
|
|
6381
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LoadableComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6382
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: LoadableComponent, usesInheritance: true, ngImport: i0 });
|
|
6383
|
-
}
|
|
6384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LoadableComponent, decorators: [{
|
|
6385
|
-
type: Directive
|
|
6386
|
-
}] });
|
|
6387
|
-
|
|
6388
|
-
class TextSearchContext {
|
|
6389
|
-
row;
|
|
6390
|
-
searchText;
|
|
6391
|
-
searchRegex;
|
|
6392
|
-
constructor(row, searchText, searchRegex) {
|
|
6393
|
-
this.row = row;
|
|
6394
|
-
this.searchText = searchText;
|
|
6395
|
-
this.searchRegex = searchRegex;
|
|
6396
|
-
}
|
|
6397
|
-
getOrCreate(type, create) {
|
|
6398
|
-
}
|
|
6399
|
-
matchesText(text) {
|
|
6400
|
-
return this.searchRegex.test(text);
|
|
6401
|
-
}
|
|
6402
|
-
}
|
|
6403
|
-
|
|
6404
5851
|
/**
|
|
6405
5852
|
* @file Automatically generated by barrelsby.
|
|
6406
5853
|
*/
|
|
@@ -6427,6 +5874,7 @@ class TextSearchContext {
|
|
|
6427
5874
|
* </aup-activity-actions>
|
|
6428
5875
|
*/
|
|
6429
5876
|
class ActivityActionsComponent extends DisposableComponent {
|
|
5877
|
+
cdr;
|
|
6430
5878
|
confirmCommandComponent;
|
|
6431
5879
|
cancelCommandComponent;
|
|
6432
5880
|
#confirmCommand_accessor_storage = proxify((Command));
|
|
@@ -6455,9 +5903,9 @@ class ActivityActionsComponent extends DisposableComponent {
|
|
|
6455
5903
|
}
|
|
6456
5904
|
layout = ActivityActionsComponent.Layout.BLOCK;
|
|
6457
5905
|
align = ActivityActionsComponent.Align.STRETCH;
|
|
6458
|
-
|
|
6459
|
-
constructor() {
|
|
5906
|
+
constructor(cdr) {
|
|
6460
5907
|
super();
|
|
5908
|
+
this.cdr = cdr;
|
|
6461
5909
|
}
|
|
6462
5910
|
hasConfirmFace() {
|
|
6463
5911
|
return !!this.confirmFace;
|
|
@@ -6476,8 +5924,8 @@ class ActivityActionsComponent extends DisposableComponent {
|
|
|
6476
5924
|
focusCancel() {
|
|
6477
5925
|
this.cancelCommandComponent.requestFocus();
|
|
6478
5926
|
}
|
|
6479
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6480
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: { confirmCommand: "confirmCommand", cancelCommand: "cancelCommand", faces: "faces", confirmFace: "confirmFace", cancelFace: "cancelFace", style: "style", layout: "layout", align: "align"
|
|
5927
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityActionsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5928
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: { confirmCommand: "confirmCommand", cancelCommand: "cancelCommand", faces: "faces", confirmFace: "confirmFace", cancelFace: "cancelFace", style: "style", layout: "layout", align: "align" }, host: { properties: { "attr.layout": "this.layout", "attr.align": "this.align" } }, viewQueries: [{ propertyName: "confirmCommandComponent", first: true, predicate: ["confirmCommandComponent"], descendants: true }, { propertyName: "cancelCommandComponent", first: true, predicate: ["cancelCommandComponent"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command #confirmCommandComponent class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command #cancelCommandComponent class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n", styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }] });
|
|
6481
5929
|
}
|
|
6482
5930
|
__decorate([
|
|
6483
5931
|
Proxify(),
|
|
@@ -6489,8 +5937,8 @@ __decorate([
|
|
|
6489
5937
|
], ActivityActionsComponent.prototype, "cancelCommand", null);
|
|
6490
5938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityActionsComponent, decorators: [{
|
|
6491
5939
|
type: Component,
|
|
6492
|
-
args: [{ selector: 'aup-activity-actions', template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"
|
|
6493
|
-
}], ctorParameters: function () { return []; }, propDecorators: { confirmCommandComponent: [{
|
|
5940
|
+
args: [{ selector: 'aup-activity-actions', template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command #confirmCommandComponent class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command #cancelCommandComponent class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n", styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}\n"] }]
|
|
5941
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { confirmCommandComponent: [{
|
|
6494
5942
|
type: ViewChild,
|
|
6495
5943
|
args: ["confirmCommandComponent"]
|
|
6496
5944
|
}], cancelCommandComponent: [{
|
|
@@ -6518,11 +5966,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6518
5966
|
}, {
|
|
6519
5967
|
type: HostBinding,
|
|
6520
5968
|
args: ['attr.align']
|
|
6521
|
-
}], alignContent: [{
|
|
6522
|
-
type: Input
|
|
6523
|
-
}, {
|
|
6524
|
-
type: HostBinding,
|
|
6525
|
-
args: ['attr.align-content']
|
|
6526
5969
|
}] } });
|
|
6527
5970
|
(function (ActivityActionsComponent) {
|
|
6528
5971
|
ActivityActionsComponent.Layout = Enum({
|
|
@@ -6531,19 +5974,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6531
5974
|
});
|
|
6532
5975
|
ActivityActionsComponent.Align = Enum({
|
|
6533
5976
|
START: 'start',
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
});
|
|
6537
|
-
ActivityActionsComponent.AlignContent = Enum({
|
|
6538
|
-
START: 'start',
|
|
6539
|
-
CENTER: 'center',
|
|
6540
|
-
END: 'end'
|
|
5977
|
+
END: 'end',
|
|
5978
|
+
STRETCH: 'stretch'
|
|
6541
5979
|
});
|
|
6542
5980
|
})(ActivityActionsComponent || (ActivityActionsComponent = {}));
|
|
6543
5981
|
|
|
6544
5982
|
const ACTIVITY_DATA = new InjectionToken("InteractionActivityData");
|
|
6545
5983
|
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
|
6546
|
-
class Activity extends
|
|
5984
|
+
class Activity extends DisposableComponent {
|
|
6547
5985
|
activityData = inject(ACTIVITY_DATA);
|
|
6548
5986
|
activityReadyListeners = new EventListenerList();
|
|
6549
5987
|
_busy$ = this.registerDisposable(new DelegatingValueModel().withDefault(false));
|
|
@@ -6598,6 +6036,7 @@ class Activity extends LoadableComponent {
|
|
|
6598
6036
|
notifyActivityReady() {
|
|
6599
6037
|
this.activityReadyListeners.fire(l => l(this));
|
|
6600
6038
|
this._ready$.value = true;
|
|
6039
|
+
console.log("ready");
|
|
6601
6040
|
}
|
|
6602
6041
|
onActivityReady(callback) {
|
|
6603
6042
|
return this.activityReadyListeners.add(callback);
|
|
@@ -6717,7 +6156,7 @@ class AbstractDialogComponent extends Activity {
|
|
|
6717
6156
|
}
|
|
6718
6157
|
}
|
|
6719
6158
|
isDestructive() {
|
|
6720
|
-
return isFunction(this.config['destructive']) && this.config["destructive"]();
|
|
6159
|
+
return isFunction$1(this.config['destructive']) && this.config["destructive"]();
|
|
6721
6160
|
}
|
|
6722
6161
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractDialogComponent, deps: [{ token: ALERT_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
6723
6162
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractDialogComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
@@ -6734,7 +6173,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6734
6173
|
|
|
6735
6174
|
class AbstractConfirmDialogComponent extends AbstractDialogComponent {
|
|
6736
6175
|
cancelFace;
|
|
6737
|
-
confirmClass = "aup-confirm-activity";
|
|
6738
6176
|
constructor(config) {
|
|
6739
6177
|
super(config);
|
|
6740
6178
|
this.cancelFace = {
|
|
@@ -6745,7 +6183,7 @@ class AbstractConfirmDialogComponent extends AbstractDialogComponent {
|
|
|
6745
6183
|
});
|
|
6746
6184
|
}
|
|
6747
6185
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractConfirmDialogComponent, deps: [{ token: ALERT_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
6748
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractConfirmDialogComponent, selector: "ng-component",
|
|
6186
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractConfirmDialogComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
6749
6187
|
}
|
|
6750
6188
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractConfirmDialogComponent, decorators: [{
|
|
6751
6189
|
type: Component,
|
|
@@ -6755,10 +6193,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
6755
6193
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
6756
6194
|
type: Inject,
|
|
6757
6195
|
args: [ALERT_CONFIG]
|
|
6758
|
-
}] }]; }
|
|
6759
|
-
type: HostBinding,
|
|
6760
|
-
args: ["class"]
|
|
6761
|
-
}] } });
|
|
6196
|
+
}] }]; } });
|
|
6762
6197
|
|
|
6763
6198
|
class ActivityBodyComponent extends DisposableComponent {
|
|
6764
6199
|
fullWidth = false;
|
|
@@ -7297,7 +6732,7 @@ const ROUTE_PARAMETER_LIST_KEY = Symbol('place:route:parameters');
|
|
|
7297
6732
|
// return true;
|
|
7298
6733
|
// }
|
|
7299
6734
|
// }
|
|
7300
|
-
class PlaceComponent extends
|
|
6735
|
+
class PlaceComponent extends DisposableComponent {
|
|
7301
6736
|
_placeReadyCallbacks = [];
|
|
7302
6737
|
visitModel = new MutableValueModel();
|
|
7303
6738
|
_inVisitUpdate = new Guard();
|
|
@@ -7354,7 +6789,6 @@ class PlaceComponent extends LoadableComponent {
|
|
|
7354
6789
|
*/
|
|
7355
6790
|
installAndInitialiseBinding(initialVisit, parameterDef) {
|
|
7356
6791
|
const model = this[parameterDef.propertyName];
|
|
7357
|
-
assert.notNil(model);
|
|
7358
6792
|
DebugContext.tag(model, `${this.placeDefinition.component.name}.${parameterDef.propertyName}`);
|
|
7359
6793
|
const binding = this.registerDisposable(new Binding(this.visitModel, model, {
|
|
7360
6794
|
toRight(visit) {
|
|
@@ -7439,7 +6873,7 @@ class PlaceComponent extends LoadableComponent {
|
|
|
7439
6873
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: PlaceComponent, usesInheritance: true, ngImport: i0 });
|
|
7440
6874
|
}
|
|
7441
6875
|
__decorate([
|
|
7442
|
-
|
|
6876
|
+
Memoize(),
|
|
7443
6877
|
__metadata("design:type", PlaceDefinition),
|
|
7444
6878
|
__metadata("design:paramtypes", [])
|
|
7445
6879
|
], PlaceComponent.prototype, "placeDefinition", null);
|
|
@@ -7629,7 +7063,7 @@ class Visit {
|
|
|
7629
7063
|
getRouterCommands() {
|
|
7630
7064
|
return this.segments.reduce((result, v) => {
|
|
7631
7065
|
const path = v.placeDefinition.path;
|
|
7632
|
-
return isEmpty(path) ?
|
|
7066
|
+
return isEmpty$1(path) ?
|
|
7633
7067
|
[...result, path] : // Angular doesn't support route params on empty path segments
|
|
7634
7068
|
[...result, path, ...v.createRouterCommands()];
|
|
7635
7069
|
}, []);
|
|
@@ -7645,7 +7079,7 @@ class Visit {
|
|
|
7645
7079
|
}
|
|
7646
7080
|
}
|
|
7647
7081
|
__decorate([
|
|
7648
|
-
Memoize(),
|
|
7082
|
+
Memoize$1(),
|
|
7649
7083
|
__metadata("design:type", Function),
|
|
7650
7084
|
__metadata("design:paramtypes", [PlaceDefinition]),
|
|
7651
7085
|
__metadata("design:returntype", VisitSegment)
|
|
@@ -8026,7 +7460,10 @@ class SynchroniseInteractionContextIdsWithRoute extends NavigationSession {
|
|
|
8026
7460
|
return true;
|
|
8027
7461
|
}
|
|
8028
7462
|
notifyActive() {
|
|
8029
|
-
this
|
|
7463
|
+
// TODO: Do I still need this??
|
|
7464
|
+
setTimeout(() => {
|
|
7465
|
+
this.syncInteractionIdsWithRouter();
|
|
7466
|
+
});
|
|
8030
7467
|
}
|
|
8031
7468
|
// @Trace()
|
|
8032
7469
|
onRouterEnd(event) {
|
|
@@ -8769,7 +8206,7 @@ class ConsolidatedParameterMap {
|
|
|
8769
8206
|
}
|
|
8770
8207
|
}
|
|
8771
8208
|
__decorate([
|
|
8772
|
-
|
|
8209
|
+
Memoize(),
|
|
8773
8210
|
__metadata("design:type", Array),
|
|
8774
8211
|
__metadata("design:paramtypes", [])
|
|
8775
8212
|
], ConsolidatedParameterMap.prototype, "keys", null);
|
|
@@ -8847,7 +8284,7 @@ class UrlSnapshot {
|
|
|
8847
8284
|
return this.getPrimaryUrlSegments().find(s => s.path === placeDef.path);
|
|
8848
8285
|
}
|
|
8849
8286
|
isLastPlaceInUrl(placeDef) {
|
|
8850
|
-
return last(this.getPrimaryUrlSegments()).path === placeDef.path;
|
|
8287
|
+
return last$1(this.getPrimaryUrlSegments()).path === placeDef.path;
|
|
8851
8288
|
}
|
|
8852
8289
|
createVisitSegmentFor(placeDef) {
|
|
8853
8290
|
return new VisitSegment(placeDef, new ConsolidatedParameterMap(this.getPrimaryUrlSegments()));
|
|
@@ -8963,7 +8400,7 @@ class UrlService {
|
|
|
8963
8400
|
back() {
|
|
8964
8401
|
this.angularLocation.back();
|
|
8965
8402
|
}
|
|
8966
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, deps: [{ token: i1$
|
|
8403
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, deps: [{ token: i1$4.Router }, { token: i1$1.Location }, { token: i1$4.UrlSerializer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8967
8404
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, providedIn: 'root' });
|
|
8968
8405
|
}
|
|
8969
8406
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UrlService, decorators: [{
|
|
@@ -8971,7 +8408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
8971
8408
|
args: [{
|
|
8972
8409
|
providedIn: 'root'
|
|
8973
8410
|
}]
|
|
8974
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
8411
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$1.Location }, { type: i1$4.UrlSerializer }]; } });
|
|
8975
8412
|
|
|
8976
8413
|
// function asArray<T>(item: T | T[]): T[] {
|
|
8977
8414
|
// return Array.isArray(item) ? item : [item];
|
|
@@ -8991,8 +8428,6 @@ class PlaceRouter extends GarbageCollector {
|
|
|
8991
8428
|
routerInteractionAdapter;
|
|
8992
8429
|
sessionFinishedJobs = [];
|
|
8993
8430
|
authService = new PlaceAuthService();
|
|
8994
|
-
_ready$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
|
|
8995
|
-
ready$ = this._ready$.readonly$;
|
|
8996
8431
|
constructor(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
8997
8432
|
super();
|
|
8998
8433
|
this.angularRouter = angularRouter;
|
|
@@ -9014,7 +8449,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
9014
8449
|
});
|
|
9015
8450
|
const { chain } = Dsl.disposeWith(this);
|
|
9016
8451
|
this.navigationInProgress$ = chain(this.navigationSession$).isNotNil();
|
|
9017
|
-
this.interactionSyncInProgress$ = chain(this.navigationSession$).pluck("isInteractionSync")
|
|
8452
|
+
this.interactionSyncInProgress$ = chain(this.navigationSession$).pluck("isInteractionSync");
|
|
9018
8453
|
const idleStateName = chain(this.interactionService.active).map(active => active ? "IdleDuringInteraction" : "Idle");
|
|
9019
8454
|
this.navigationSessionName$ = chain(this.navigationSession$)
|
|
9020
8455
|
.pluck("name")
|
|
@@ -9058,9 +8493,6 @@ class PlaceRouter extends GarbageCollector {
|
|
|
9058
8493
|
// the back button was clicked.
|
|
9059
8494
|
angularLocation.onUrlChange(url => this.onUrlChanged(url));
|
|
9060
8495
|
}
|
|
9061
|
-
postponeRoutingUntil(condition$) {
|
|
9062
|
-
this._ready$.setDelegate(condition$);
|
|
9063
|
-
}
|
|
9064
8496
|
getAuthenticationFailureRedirect(activatedRoute, state) {
|
|
9065
8497
|
return this.authService.getAuthenticationFailureRedirect(activatedRoute, state);
|
|
9066
8498
|
}
|
|
@@ -9076,20 +8508,23 @@ class PlaceRouter extends GarbageCollector {
|
|
|
9076
8508
|
isNavigating() {
|
|
9077
8509
|
return this.navigationInProgress$.value;
|
|
9078
8510
|
}
|
|
9079
|
-
|
|
9080
|
-
const {
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
return this;
|
|
8511
|
+
waitUntilIdle() {
|
|
8512
|
+
const { when } = Dsl.disposeWith(this);
|
|
8513
|
+
return new Promise(resolve => {
|
|
8514
|
+
when(this.navigationInProgress$).becomesFalsey(() => resolve(this), {
|
|
8515
|
+
initialValue: "evaluate",
|
|
8516
|
+
once: true
|
|
8517
|
+
});
|
|
8518
|
+
});
|
|
9088
8519
|
}
|
|
9089
8520
|
async waitActivitiesSynchronised() {
|
|
9090
|
-
const {
|
|
9091
|
-
|
|
9092
|
-
|
|
8521
|
+
const { when } = Dsl.disposeWith(this);
|
|
8522
|
+
return new Promise(resolve => {
|
|
8523
|
+
when(this.interactionSyncInProgress$).becomesFalsey(() => resolve(this), {
|
|
8524
|
+
initialValue: "evaluate",
|
|
8525
|
+
once: true
|
|
8526
|
+
});
|
|
8527
|
+
});
|
|
9093
8528
|
}
|
|
9094
8529
|
// @Trace()
|
|
9095
8530
|
onPopState(event) {
|
|
@@ -9275,7 +8710,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
9275
8710
|
return Visit.goto(visitOrPlaceComponent, params);
|
|
9276
8711
|
}
|
|
9277
8712
|
}
|
|
9278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, deps: [{ token: i1$
|
|
8713
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, deps: [{ token: i1$4.Router }, { token: i1$1.Location }, { token: InteractionService }, { token: UrlService }, { token: PlaceHistory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9279
8714
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, providedIn: "root" });
|
|
9280
8715
|
}
|
|
9281
8716
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceRouter, decorators: [{
|
|
@@ -9283,7 +8718,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
9283
8718
|
args: [{
|
|
9284
8719
|
providedIn: "root"
|
|
9285
8720
|
}]
|
|
9286
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
8721
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$1.Location }, { type: InteractionService }, { type: UrlService }, { type: PlaceHistory }]; } });
|
|
9287
8722
|
|
|
9288
8723
|
class ActivityTitleComponent extends DisposableComponent {
|
|
9289
8724
|
_color;
|
|
@@ -9305,11 +8740,11 @@ class ActivityTitleComponent extends DisposableComponent {
|
|
|
9305
8740
|
return this._color;
|
|
9306
8741
|
}
|
|
9307
8742
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityTitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
9308
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: { hasTransparentBackground: "hasTransparentBackground", color: "color" }, host: { properties: { "class.transparent-background": "this.hasTransparentBackground", "attr.color": "this.color" } }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n
|
|
8743
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: { hasTransparentBackground: "hasTransparentBackground", color: "color" }, host: { properties: { "class.transparent-background": "this.hasTransparentBackground", "attr.color": "this.color" } }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] });
|
|
9309
8744
|
}
|
|
9310
8745
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityTitleComponent, decorators: [{
|
|
9311
8746
|
type: Component,
|
|
9312
|
-
args: [{ selector: 'aup-activity-title', template: "<ng-content></ng-content>\n
|
|
8747
|
+
args: [{ selector: 'aup-activity-title', template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] }]
|
|
9313
8748
|
}], propDecorators: { hasTransparentBackground: [{
|
|
9314
8749
|
type: Input
|
|
9315
8750
|
}, {
|
|
@@ -9330,7 +8765,7 @@ class AlertDialogComponent extends AbstractDialogComponent {
|
|
|
9330
8765
|
});
|
|
9331
8766
|
}
|
|
9332
8767
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AlertDialogComponent, deps: [{ token: ACTIVITY_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
9333
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AlertDialogComponent, selector: "aup-alert-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"
|
|
8768
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AlertDialogComponent, selector: "aup-alert-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
|
|
9334
8769
|
}
|
|
9335
8770
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AlertDialogComponent, decorators: [{
|
|
9336
8771
|
type: Component,
|
|
@@ -9350,7 +8785,7 @@ class ConfirmThenDialogComponent extends AbstractConfirmDialogComponent {
|
|
|
9350
8785
|
});
|
|
9351
8786
|
}
|
|
9352
8787
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmThenDialogComponent, deps: [{ token: ACTIVITY_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
9353
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmThenDialogComponent, selector: "aup-confirmation-then-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"
|
|
8788
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmThenDialogComponent, selector: "aup-confirmation-then-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
|
|
9354
8789
|
}
|
|
9355
8790
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmThenDialogComponent, decorators: [{
|
|
9356
8791
|
type: Component,
|
|
@@ -9374,7 +8809,7 @@ class ConfirmThenExecuteDialogComponent extends AbstractConfirmDialogComponent {
|
|
|
9374
8809
|
});
|
|
9375
8810
|
}
|
|
9376
8811
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmThenExecuteDialogComponent, deps: [{ token: ACTIVITY_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
9377
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmThenExecuteDialogComponent, selector: "aup-confirmation-execute-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"
|
|
8812
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmThenExecuteDialogComponent, selector: "aup-confirmation-execute-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
|
|
9378
8813
|
}
|
|
9379
8814
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmThenExecuteDialogComponent, decorators: [{
|
|
9380
8815
|
type: Component,
|
|
@@ -9394,7 +8829,7 @@ class ConfirmationDialogComponent extends AbstractConfirmDialogComponent {
|
|
|
9394
8829
|
});
|
|
9395
8830
|
}
|
|
9396
8831
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: ACTIVITY_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
9397
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmationDialogComponent, selector: "aup-confirmation-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"
|
|
8832
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmationDialogComponent, selector: "aup-confirmation-dialog", usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n", styles: [":host{display:block}.mat-mdc-dialog-content{margin:0;padding:0}.mat-mdc-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth"] }] });
|
|
9398
8833
|
}
|
|
9399
8834
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
|
|
9400
8835
|
type: Component,
|
|
@@ -9574,7 +9009,6 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
9574
9009
|
tabs;
|
|
9575
9010
|
activityOutlets;
|
|
9576
9011
|
activityRefs = [];
|
|
9577
|
-
animationDuration = "500ms";
|
|
9578
9012
|
_identifier;
|
|
9579
9013
|
_deferredCleanUp;
|
|
9580
9014
|
interactionServiceApi;
|
|
@@ -9587,7 +9021,6 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
9587
9021
|
busy = this.registerDisposable(new DelegatingValueModel().withDefault(false));
|
|
9588
9022
|
syncTabsJob = undefined;
|
|
9589
9023
|
stable$;
|
|
9590
|
-
wasActive = false;
|
|
9591
9024
|
constructor(placeRouter) {
|
|
9592
9025
|
super();
|
|
9593
9026
|
this.placeRouter = placeRouter;
|
|
@@ -9624,12 +9057,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
9624
9057
|
* Returns true if an activity is currently running.
|
|
9625
9058
|
*/
|
|
9626
9059
|
isActive() {
|
|
9627
|
-
|
|
9628
|
-
// if (this.wasActive !== isActive) {
|
|
9629
|
-
// console.log({was: this.wasActive, is: isActive});
|
|
9630
|
-
// }
|
|
9631
|
-
// this.wasActive = isActive
|
|
9632
|
-
return isActive;
|
|
9060
|
+
return this.getActiveActivityCount() > 0;
|
|
9633
9061
|
}
|
|
9634
9062
|
registerDisposable(disposable) {
|
|
9635
9063
|
return this.garbage.registerDisposable(disposable);
|
|
@@ -9712,7 +9140,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
9712
9140
|
// by activity index)
|
|
9713
9141
|
setTimeout(() => {
|
|
9714
9142
|
this.activityRefs = []; // we have to do it after the animation timeout or the activity disappears before the animatin finsihes
|
|
9715
|
-
}, this.
|
|
9143
|
+
}, this.getTabAnimationDuration());
|
|
9716
9144
|
const promise = this.interactionServiceApi.notifyFinished(this);
|
|
9717
9145
|
this._deferredCleanUp = promise
|
|
9718
9146
|
.finally(() => {
|
|
@@ -9738,6 +9166,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
9738
9166
|
/**
|
|
9739
9167
|
* Synchronises the selected tab index.
|
|
9740
9168
|
*/
|
|
9169
|
+
// @Trace()
|
|
9741
9170
|
synchroniseSelectedTabIndex() {
|
|
9742
9171
|
assert.isTruthy(this.isActive());
|
|
9743
9172
|
const previousIndex = this.tabs.selectedIndex;
|
|
@@ -9749,10 +9178,10 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
9749
9178
|
activityRef.setFocused(false);
|
|
9750
9179
|
this.busy.setDelegate(activityRef.activityBusy);
|
|
9751
9180
|
this.tabs.selectedIndex = newIndex;
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9181
|
+
if (this.ready$.value) {
|
|
9182
|
+
// Note: We're not using the animation done event as it's firing almost immeadiately.
|
|
9183
|
+
setTimeout(() => this.finaliseActivityStates(), animate ? this.getTabAnimationDuration() : 0);
|
|
9184
|
+
}
|
|
9756
9185
|
}
|
|
9757
9186
|
}
|
|
9758
9187
|
finaliseActivityStates() {
|
|
@@ -9766,12 +9195,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
9766
9195
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
9767
9196
|
}
|
|
9768
9197
|
getTabAnimationDuration() {
|
|
9769
|
-
|
|
9770
|
-
// return s
|
|
9771
|
-
return this.animationDuration;
|
|
9772
|
-
}
|
|
9773
|
-
getTabAnimationDurationInMillis() {
|
|
9774
|
-
const match = this.animationDuration.match(/(\d+)(.*)/);
|
|
9198
|
+
const match = this.tabs.animationDuration.match(/(\d+)(.*)/);
|
|
9775
9199
|
const numericValue = parseFloat(match[1]);
|
|
9776
9200
|
switch (match[2].trim()) {
|
|
9777
9201
|
case "ms":
|
|
@@ -9797,16 +9221,12 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
9797
9221
|
}
|
|
9798
9222
|
}, 75);
|
|
9799
9223
|
}
|
|
9800
|
-
onAnimationDone() {
|
|
9801
|
-
this._started$.value = true;
|
|
9802
|
-
this.finaliseActivityStates();
|
|
9803
|
-
}
|
|
9804
9224
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityContainerComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
|
|
9805
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityContainerComponent, selector: "aup-activity-container", inputs: { dynamicHeight: "dynamicHeight"
|
|
9225
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityContainerComponent, selector: "aup-activity-container", inputs: { dynamicHeight: "dynamicHeight" }, viewQueries: [{ propertyName: "tabs", first: true, predicate: ["tabs"], descendants: true, static: true }, { propertyName: "activityOutlets", predicate: ActivityOutletComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busy$]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$1.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i3$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "component", type: BusyOverlayComponent, selector: "aup-busy-overlay", inputs: ["busy$", "busy"] }, { kind: "directive", type: i5$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ActivityOutletComponent, selector: "aup-activity-outlet", inputs: ["nestedInteractionContext", "activityRef"] }] });
|
|
9806
9226
|
}
|
|
9807
9227
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityContainerComponent, decorators: [{
|
|
9808
9228
|
type: Component,
|
|
9809
|
-
args: [{ selector: "aup-activity-container", template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\"
|
|
9229
|
+
args: [{ selector: "aup-activity-container", template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busy$]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"] }]
|
|
9810
9230
|
}], ctorParameters: function () { return [{ type: PlaceRouter }]; }, propDecorators: { dynamicHeight: [{
|
|
9811
9231
|
type: Input
|
|
9812
9232
|
}], tabs: [{
|
|
@@ -9815,8 +9235,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
9815
9235
|
}], activityOutlets: [{
|
|
9816
9236
|
type: ViewChildren,
|
|
9817
9237
|
args: [ActivityOutletComponent]
|
|
9818
|
-
}], animationDuration: [{
|
|
9819
|
-
type: Input
|
|
9820
9238
|
}] } });
|
|
9821
9239
|
|
|
9822
9240
|
class AbstractActivityTriggerComponent extends DisposableComponent {
|
|
@@ -9917,14 +9335,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
9917
9335
|
args: ['class.active']
|
|
9918
9336
|
}] } });
|
|
9919
9337
|
|
|
9920
|
-
const cssDurationRegex
|
|
9338
|
+
const cssDurationRegex = /(\d+)(m?s)/;
|
|
9921
9339
|
/**
|
|
9922
9340
|
* @example
|
|
9923
9341
|
* <aup-in-place-interaction-context #inPlaceInteractionContext>
|
|
9924
9342
|
* </aup-in-place-interaction-context>
|
|
9925
9343
|
*
|
|
9926
9344
|
* in your component
|
|
9927
|
-
* @ViewChild(
|
|
9345
|
+
* @ViewChild('inPlaceInteractionContext', { static: true })
|
|
9928
9346
|
* interactionContext: InteractionContext;
|
|
9929
9347
|
*
|
|
9930
9348
|
*
|
|
@@ -9943,13 +9361,11 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
|
|
|
9943
9361
|
* active interactions.
|
|
9944
9362
|
*/
|
|
9945
9363
|
syncWithRoutes = true;
|
|
9946
|
-
started = new EventEmitter();
|
|
9947
|
-
finished = new EventEmitter();
|
|
9948
9364
|
get animationDuration() {
|
|
9949
9365
|
return this.animateFirstActivity ? (this.tabConfig?.animationDuration || "500ms") : "0ms";
|
|
9950
9366
|
}
|
|
9951
9367
|
get animationDurationMillis() {
|
|
9952
|
-
const result = cssDurationRegex
|
|
9368
|
+
const result = cssDurationRegex.exec(this.animationDuration);
|
|
9953
9369
|
if (!result) {
|
|
9954
9370
|
lang.illegalState(`unsupported css duration: ${this.animationDuration}`);
|
|
9955
9371
|
}
|
|
@@ -9971,16 +9387,11 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
|
|
|
9971
9387
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
9972
9388
|
}
|
|
9973
9389
|
else {
|
|
9974
|
-
const self = this;
|
|
9975
9390
|
this.activityContainerComponent.initialise("dont-care", {
|
|
9976
9391
|
async notifyActive(interactionContext) {
|
|
9977
|
-
self.started.emit();
|
|
9978
9392
|
return undefined;
|
|
9979
9393
|
},
|
|
9980
9394
|
async notifyFinished(interactionContext) {
|
|
9981
|
-
// I've noticed some rendering fails when returning the the transcluded content we'll fire an event
|
|
9982
|
-
// so components can do stuff if they need to.
|
|
9983
|
-
self.started.emit();
|
|
9984
9395
|
return undefined;
|
|
9985
9396
|
}
|
|
9986
9397
|
});
|
|
@@ -10027,7 +9438,7 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
|
|
|
10027
9438
|
}
|
|
10028
9439
|
}
|
|
10029
9440
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InPlaceInteractionContextComponent, deps: [{ token: MAT_TABS_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
10030
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: { animateFirstActivity: "animateFirstActivity", syncWithRoutes: "syncWithRoutes" },
|
|
9441
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: { animateFirstActivity: "animateFirstActivity", syncWithRoutes: "syncWithRoutes" }, host: { properties: { "class.active": "this.active" } }, viewQueries: [{ propertyName: "activityContainerComponent", first: true, predicate: ["activityContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs\n (selectedTabChange)=\"onTabChanged($event)\"\n [dynamicHeight]=\"false\"\n [animationDuration]=\"animationDuration\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-activity-container{flex:1}\n"], dependencies: [{ kind: "component", type: i3$1.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i3$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "component", type: ActivityContainerComponent, selector: "aup-activity-container", inputs: ["dynamicHeight"] }] });
|
|
10031
9442
|
}
|
|
10032
9443
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InPlaceInteractionContextComponent, decorators: [{
|
|
10033
9444
|
type: Component,
|
|
@@ -10044,10 +9455,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
10044
9455
|
type: Input
|
|
10045
9456
|
}], syncWithRoutes: [{
|
|
10046
9457
|
type: Input
|
|
10047
|
-
}], started: [{
|
|
10048
|
-
type: Output
|
|
10049
|
-
}], finished: [{
|
|
10050
|
-
type: Output
|
|
10051
9458
|
}], active: [{
|
|
10052
9459
|
type: HostBinding,
|
|
10053
9460
|
args: ["class.active"]
|
|
@@ -10062,7 +9469,7 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
|
10062
9469
|
super();
|
|
10063
9470
|
}
|
|
10064
9471
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InlineActivityTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10065
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineActivityTriggerComponent, selector: "aup-inline-activity-trigger", viewQueries: [{ propertyName: "_interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n</aup-in-place-interaction-context>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"]
|
|
9472
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineActivityTriggerComponent, selector: "aup-inline-activity-trigger", viewQueries: [{ propertyName: "_interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n</aup-in-place-interaction-context>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"] }] });
|
|
10066
9473
|
}
|
|
10067
9474
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InlineActivityTriggerComponent, decorators: [{
|
|
10068
9475
|
type: Component,
|
|
@@ -10186,7 +9593,7 @@ class PopupInteractionContextComponent extends DisposableComponent {
|
|
|
10186
9593
|
isActive() {
|
|
10187
9594
|
return this.interactionContext && this.interactionContext.isActive();
|
|
10188
9595
|
}
|
|
10189
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupInteractionContextComponent, deps: [{ token: i0.ElementRef }, { token: i1$
|
|
9596
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupInteractionContextComponent, deps: [{ token: i0.ElementRef }, { token: i1$5.Overlay }, { token: i1$5.CdkScrollable, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
10190
9597
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupInteractionContextComponent, selector: "aup-popup-interaction-context", inputs: { anchorX: "anchorX", anchorY: "anchorY", cancelOnEscape$: "cancelOnEscape$", cancelOnEscape: "cancelOnEscape" }, host: { properties: { "class.interaction-active": "this.active" } }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}:host::ng-deep .popup-interaction-context-backdrop{background-color:#0000}\n"] });
|
|
10191
9598
|
}
|
|
10192
9599
|
__decorate([
|
|
@@ -10200,7 +9607,7 @@ __decorate([
|
|
|
10200
9607
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupInteractionContextComponent, decorators: [{
|
|
10201
9608
|
type: Component,
|
|
10202
9609
|
args: [{ selector: 'aup-popup-interaction-context', template: "<ng-content></ng-content>\n", styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}:host::ng-deep .popup-interaction-context-backdrop{background-color:#0000}\n"] }]
|
|
10203
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$
|
|
9610
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$5.Overlay }, { type: i1$5.CdkScrollable, decorators: [{
|
|
10204
9611
|
type: Optional
|
|
10205
9612
|
}, {
|
|
10206
9613
|
type: SkipSelf
|
|
@@ -10285,7 +9692,7 @@ class AddCardActivityComponent extends AbstractActivityTriggerComponent {
|
|
|
10285
9692
|
return this.interactionStyle === 'inline';
|
|
10286
9693
|
}
|
|
10287
9694
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddCardActivityComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
10288
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddCardActivityComponent, selector: "aup-add-card-activity", inputs: { interactionStyle: "interactionStyle", renderAs: "renderAs" }, host: { properties: { "class": "this.activityTypeClass", "class.not-card": "this.notCard" } }, viewQueries: [{ propertyName: "inlineInteractionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:#0000008a}:host[interactionStyle=modal][renderas=card]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:#0000008a}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"]
|
|
9695
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddCardActivityComponent, selector: "aup-add-card-activity", inputs: { interactionStyle: "interactionStyle", renderAs: "renderAs" }, host: { properties: { "class": "this.activityTypeClass", "class.not-card": "this.notCard" } }, viewQueries: [{ propertyName: "inlineInteractionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:#0000008a}:host[interactionStyle=modal][renderas=card]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:#0000008a}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"] }] });
|
|
10289
9696
|
}
|
|
10290
9697
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddCardActivityComponent, decorators: [{
|
|
10291
9698
|
type: Component,
|
|
@@ -10361,7 +9768,7 @@ class AddItemInteractionContextComponent extends DisposableComponent {
|
|
|
10361
9768
|
return this.interactionContext.startActivity(activityType, data);
|
|
10362
9769
|
}
|
|
10363
9770
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddItemInteractionContextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10364
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddItemInteractionContextComponent, selector: "aup-add-item-interaction-context", inputs: { label: "label", icon: "icon", activityClass: "activityClass", activityData: "activityData", addCommand: "addCommand" }, host: { properties: { "class.interaction-active": "this.active", "tabindex": "this.tabindex" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><aup-icon [icon]=\"icon\"></aup-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n", styles: [":host{--def-link-color: var(--link-color, currentColor);--def-link-color-hover: var(--link-color-hover, currentColor);--def-link-background: var(--link-background, transparent);--def-link-background-hover: var(--link-background-hover, rgba(0, 0, 0, .05));--def-link-border-radius: var(--link-border-radius, 4px);--def-link-padding: var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"]
|
|
9771
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddItemInteractionContextComponent, selector: "aup-add-item-interaction-context", inputs: { label: "label", icon: "icon", activityClass: "activityClass", activityData: "activityData", addCommand: "addCommand" }, host: { properties: { "class.interaction-active": "this.active", "tabindex": "this.tabindex" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><aup-icon [icon]=\"icon\"></aup-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n", styles: [":host{--def-link-color: var(--link-color, currentColor);--def-link-color-hover: var(--link-color-hover, currentColor);--def-link-background: var(--link-background, transparent);--def-link-background-hover: var(--link-background-hover, rgba(0, 0, 0, .05));--def-link-border-radius: var(--link-border-radius, 4px);--def-link-padding: var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"] }] });
|
|
10365
9772
|
}
|
|
10366
9773
|
__decorate([
|
|
10367
9774
|
Proxify(),
|
|
@@ -10500,14 +9907,12 @@ class StringInputActivity extends InputActivity {
|
|
|
10500
9907
|
[label]="activityData.label"
|
|
10501
9908
|
[placeholder]="activityData.placeholder"
|
|
10502
9909
|
[command.enter]="confirmCommand"
|
|
10503
|
-
[command.escape]="cancelCommand"
|
|
10504
|
-
[dense]="true"
|
|
10505
|
-
></aup-string-input>
|
|
9910
|
+
[command.escape]="cancelCommand"></aup-string-input>
|
|
10506
9911
|
<aup-activity-actions [layout]="layout" align="end"
|
|
10507
9912
|
[confirmFace]="confirmFace"
|
|
10508
9913
|
[cancelFace]="cancelFace"
|
|
10509
9914
|
></aup-activity-actions>
|
|
10510
|
-
`, isInline: true, dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix"
|
|
9915
|
+
`, isInline: true, dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }] });
|
|
10511
9916
|
}
|
|
10512
9917
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputActivity, decorators: [{
|
|
10513
9918
|
type: Component,
|
|
@@ -10518,9 +9923,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
10518
9923
|
[label]="activityData.label"
|
|
10519
9924
|
[placeholder]="activityData.placeholder"
|
|
10520
9925
|
[command.enter]="confirmCommand"
|
|
10521
|
-
[command.escape]="cancelCommand"
|
|
10522
|
-
[dense]="true"
|
|
10523
|
-
></aup-string-input>
|
|
9926
|
+
[command.escape]="cancelCommand"></aup-string-input>
|
|
10524
9927
|
<aup-activity-actions [layout]="layout" align="end"
|
|
10525
9928
|
[confirmFace]="confirmFace"
|
|
10526
9929
|
[cancelFace]="cancelFace"
|
|
@@ -10703,7 +10106,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
10703
10106
|
return !this.editingEnabled$.value;
|
|
10704
10107
|
}
|
|
10705
10108
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InlineStringEditorComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
10706
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineStringEditorComponent, selector: "aup-inline-string-editor", inputs: { editorModel: "editorModel", facesModel: "facesModel", faces: "faces", label: "label", placeHolder: "placeHolder", placeHolder$: "placeHolder$" }, host: { properties: { "class.disabled": "this.isDisabled" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled$.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled$.value\" [command]=\"editCommand\" [face$]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }, { kind: "directive", type: i2$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatLabel, selector: "mat-label" }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"]
|
|
10109
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineStringEditorComponent, selector: "aup-inline-string-editor", inputs: { editorModel: "editorModel", facesModel: "facesModel", faces: "faces", label: "label", placeHolder: "placeHolder", placeHolder$: "placeHolder$" }, host: { properties: { "class.disabled": "this.isDisabled" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled$.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled$.value\" [command]=\"editCommand\" [face$]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }, { kind: "directive", type: i2$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$2.MatLabel, selector: "mat-label" }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"] }] });
|
|
10707
10110
|
}
|
|
10708
10111
|
__decorate([
|
|
10709
10112
|
Proxify(),
|
|
@@ -10786,7 +10189,6 @@ class SelectInputActivity extends InputActivity {
|
|
|
10786
10189
|
[options]="options"
|
|
10787
10190
|
[optionLabelFormat]="optionLabelFormat"
|
|
10788
10191
|
[allowNil]="activityData.allowNil"
|
|
10789
|
-
[dense]="true"
|
|
10790
10192
|
>
|
|
10791
10193
|
<ng-template #nilOptionTemplate>{{activityData.nilLabel}}</ng-template>
|
|
10792
10194
|
</aup-select-input>
|
|
@@ -10794,7 +10196,7 @@ class SelectInputActivity extends InputActivity {
|
|
|
10794
10196
|
[confirmFace]="confirmFace"
|
|
10795
10197
|
[cancelFace]="cancelFace"
|
|
10796
10198
|
></aup-activity-actions>
|
|
10797
|
-
`, isInline: true, dependencies: [{ kind: "component", type: SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "options", "optionLabel", "allowNil", "optionLabelFormat"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"
|
|
10199
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "options", "optionLabel", "allowNil", "optionLabelFormat"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }] });
|
|
10798
10200
|
}
|
|
10799
10201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputActivity, decorators: [{
|
|
10800
10202
|
type: Component,
|
|
@@ -10809,7 +10211,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
10809
10211
|
[options]="options"
|
|
10810
10212
|
[optionLabelFormat]="optionLabelFormat"
|
|
10811
10213
|
[allowNil]="activityData.allowNil"
|
|
10812
|
-
[dense]="true"
|
|
10813
10214
|
>
|
|
10814
10215
|
<ng-template #nilOptionTemplate>{{activityData.nilLabel}}</ng-template>
|
|
10815
10216
|
</aup-select-input>
|
|
@@ -10821,182 +10222,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
10821
10222
|
}]
|
|
10822
10223
|
}] });
|
|
10823
10224
|
|
|
10824
|
-
const slideDownOnEnterDef = style({
|
|
10825
|
-
opacity: 0,
|
|
10826
|
-
'height': '0',
|
|
10827
|
-
'max-height': '0',
|
|
10828
|
-
paddingTop: '0',
|
|
10829
|
-
paddingBottom: '0'
|
|
10830
|
-
});
|
|
10831
|
-
// TODO: params aren't getting customised in the view. Need to figure out the correct approach.
|
|
10832
|
-
const slideDownOnEnterAnimation = trigger('slideDownOnEnter', [
|
|
10833
|
-
transition(':enter', [slideDownOnEnterDef, animate('{{duration}}')], { params: { duration: '100ms' } }),
|
|
10834
|
-
transition(':leave', [animate('{{duration}}', slideDownOnEnterDef)], { params: { duration: '100ms' } })
|
|
10835
|
-
]);
|
|
10836
|
-
const slideDownWhenOpenAnimation = trigger('slideDownWhenOpen', [
|
|
10837
|
-
transition('closed => open', [slideDownOnEnterDef, animate('{{duration}}')], { params: { duration: '100ms' } }),
|
|
10838
|
-
transition('open => closed', [animate('{{duration}}', slideDownOnEnterDef)], { params: { duration: '100ms' } })
|
|
10839
|
-
]);
|
|
10840
|
-
const slideLeftOnEnterDef = style({
|
|
10841
|
-
opacity: 0,
|
|
10842
|
-
'width': '0',
|
|
10843
|
-
paddingLeft: '0',
|
|
10844
|
-
paddingRight: '0'
|
|
10845
|
-
});
|
|
10846
|
-
const slideRightOnEnterAnimation = trigger('slideRightOnEnter', [
|
|
10847
|
-
transition(':enter', [slideLeftOnEnterDef, animate('{{duration}}')], { params: { duration: '100ms' } }),
|
|
10848
|
-
transition(':leave', [animate('{{duration}}', slideLeftOnEnterDef)], { params: { duration: '100ms' } })
|
|
10849
|
-
]);
|
|
10850
|
-
const ZERO_WIDTH = {
|
|
10851
|
-
opacity: 0,
|
|
10852
|
-
width: '0',
|
|
10853
|
-
paddingLeft: '0',
|
|
10854
|
-
paddingRight: '0',
|
|
10855
|
-
};
|
|
10856
|
-
const ZERO_HEIGHT = {
|
|
10857
|
-
opacity: 0,
|
|
10858
|
-
height: '0',
|
|
10859
|
-
paddingTop: '0',
|
|
10860
|
-
paddingBottom: '0',
|
|
10861
|
-
};
|
|
10862
|
-
const slideDownAndRightOnEnterAnimation = trigger('slideDownAndRightOnEnter', [
|
|
10863
|
-
transition(':enter', [
|
|
10864
|
-
style({ overflow: "hidden", whiteSpace: "nowrap", ...ZERO_WIDTH, ...ZERO_HEIGHT }),
|
|
10865
|
-
animate('{{duration}}')
|
|
10866
|
-
], { params: { duration: '100ms' } }),
|
|
10867
|
-
transition(':leave', [
|
|
10868
|
-
style({ overflow: "hidden", whiteSpace: "nowrap" }),
|
|
10869
|
-
group([
|
|
10870
|
-
animate('{{duration}}', style(ZERO_HEIGHT)),
|
|
10871
|
-
// Hack: 100ms is too quick as it animates from * - 0 as we only see it animate the width is greater than the parent.
|
|
10872
|
-
// Not sure how to animate from * to natural new width of parent. This hack won't work for text that's just a little
|
|
10873
|
-
// bit wider than the parent as it'll fall within the parent bounds very early in the animation cycle.
|
|
10874
|
-
animate('300ms', style(ZERO_WIDTH)),
|
|
10875
|
-
])
|
|
10876
|
-
], { params: { duration: '100ms' } })
|
|
10877
|
-
]);
|
|
10878
|
-
|
|
10879
|
-
const cssDurationRegex = /(\d+)(m?s)/;
|
|
10880
|
-
/**
|
|
10881
|
-
* This interaction context remains hidden (height: 0) until it is active.
|
|
10882
|
-
* @example
|
|
10883
|
-
* <aup-slide-down-interaction-context #inPlaceInteractionContext>
|
|
10884
|
-
* </aup-slide-down-interaction-context>
|
|
10885
|
-
*
|
|
10886
|
-
* in your component
|
|
10887
|
-
* @ViewChild(SlideDownInteractionContextComponent)
|
|
10888
|
-
* interactionContext: InteractionContext;
|
|
10889
|
-
*
|
|
10890
|
-
*
|
|
10891
|
-
*/
|
|
10892
|
-
class SlideDownInteractionContextComponent extends DisposableComponent {
|
|
10893
|
-
tabConfig;
|
|
10894
|
-
activityContainerComponent;
|
|
10895
|
-
// NOTE: disabling this as I'm using the initialise callback to release the hacky height clamp.
|
|
10896
|
-
// The whole registration thing is a bit naf so I should really clean that up at some point.
|
|
10897
|
-
// /**
|
|
10898
|
-
// * If true the activity will sync with the router to enable back button support. This is a work around for
|
|
10899
|
-
// * deeply nested activities that can't be linked with the root place interactionContext hook for cancelling
|
|
10900
|
-
// * active interactions.
|
|
10901
|
-
// */
|
|
10902
|
-
// @Input()
|
|
10903
|
-
// syncWithRoutes = true;
|
|
10904
|
-
dynamicHeight = true;
|
|
10905
|
-
get active() {
|
|
10906
|
-
return this.isActive();
|
|
10907
|
-
}
|
|
10908
|
-
// Horrible hack to stop the div and activity container bouncing back for a bit in after closing. No idea why it's doing that.
|
|
10909
|
-
clampShut = true;
|
|
10910
|
-
interactionService = this.inject(InteractionService);
|
|
10911
|
-
constructor(tabConfig) {
|
|
10912
|
-
super();
|
|
10913
|
-
this.tabConfig = tabConfig;
|
|
10914
|
-
}
|
|
10915
|
-
ngAfterViewInit() {
|
|
10916
|
-
// NOTE: this is a temp work around to detach inplace contexts from the router until AUP-88 is implemented.
|
|
10917
|
-
// https://coolon.atlassian.net/browse/AUP-88?atlOrigin=eyJpIjoiOTg5YjEzZGUzZjRmNDg0NmExOWU3ZGJmMzJiNTRmNGYiLCJwIjoiaiJ9
|
|
10918
|
-
const self = this;
|
|
10919
|
-
this.activityContainerComponent.initialise("dont-care", {
|
|
10920
|
-
async notifyActive(interactionContext) {
|
|
10921
|
-
self.clampShut = false;
|
|
10922
|
-
return undefined;
|
|
10923
|
-
},
|
|
10924
|
-
async notifyFinished(interactionContext) {
|
|
10925
|
-
return undefined;
|
|
10926
|
-
}
|
|
10927
|
-
});
|
|
10928
|
-
// if (this.syncWithRoutes) {
|
|
10929
|
-
// this.interactionService.registerInplaceInteractionContext(this);
|
|
10930
|
-
// }
|
|
10931
|
-
}
|
|
10932
|
-
getAnimationState() {
|
|
10933
|
-
return {
|
|
10934
|
-
value: this.isActive() ? "open" : "closed",
|
|
10935
|
-
params: { duration: "200ms" }
|
|
10936
|
-
};
|
|
10937
|
-
}
|
|
10938
|
-
// this is a regsitration callback from the interaction service
|
|
10939
|
-
// @Trace() // webstorm says no usages... but I'm not sure.
|
|
10940
|
-
onInplaceInteractionContextRegistered(id, api) {
|
|
10941
|
-
this.activityContainerComponent.initialise(id, api);
|
|
10942
|
-
}
|
|
10943
|
-
get identifier() {
|
|
10944
|
-
return this.activityContainerComponent.identifier;
|
|
10945
|
-
}
|
|
10946
|
-
alert(alert) {
|
|
10947
|
-
return this.activityContainerComponent.alert(alert);
|
|
10948
|
-
}
|
|
10949
|
-
cancelActiveActivity() {
|
|
10950
|
-
return this.activityContainerComponent.cancelActiveActivity();
|
|
10951
|
-
}
|
|
10952
|
-
confirm(confirm) {
|
|
10953
|
-
return this.activityContainerComponent.confirm(confirm);
|
|
10954
|
-
}
|
|
10955
|
-
confirmOrReject(confirm) {
|
|
10956
|
-
return this.activityContainerComponent.confirmOrReject(confirm);
|
|
10957
|
-
}
|
|
10958
|
-
confirmThen(confirm, activityType, data) {
|
|
10959
|
-
return this.activityContainerComponent.confirmThen(confirm, activityType);
|
|
10960
|
-
}
|
|
10961
|
-
confirmThenExecute(confirm, operation) {
|
|
10962
|
-
return this.activityContainerComponent.confirmThenExecute(confirm, operation);
|
|
10963
|
-
}
|
|
10964
|
-
isActive() {
|
|
10965
|
-
return this.activityContainerComponent.isActive();
|
|
10966
|
-
}
|
|
10967
|
-
startActivity(activityType, data, options) {
|
|
10968
|
-
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
10969
|
-
}
|
|
10970
|
-
onAnimationDone() {
|
|
10971
|
-
if (!this.isActive()) {
|
|
10972
|
-
this.clampShut = true;
|
|
10973
|
-
}
|
|
10974
|
-
}
|
|
10975
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SlideDownInteractionContextComponent, deps: [{ token: MAT_TABS_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
10976
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SlideDownInteractionContextComponent, selector: "aup-slide-down-interaction-context", inputs: { dynamicHeight: "dynamicHeight" }, host: { properties: { "class.active": "this.active" } }, viewQueries: [{ propertyName: "activityContainerComponent", first: true, predicate: ["activityContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div [@slideDownWhenOpen]=\"getAnimationState()\" (@slideDownWhenOpen.done)=\"onAnimationDone()\" [style.max-height.px]=\"clampShut ? 0 : undefined\">\n <aup-activity-container #activityContainer [dynamicHeight]=\"dynamicHeight\"></aup-activity-container>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column}:host>div{overflow:hidden}\n"], dependencies: [{ kind: "component", type: ActivityContainerComponent, selector: "aup-activity-container", inputs: ["dynamicHeight", "animationDuration"] }], animations: [
|
|
10977
|
-
slideDownWhenOpenAnimation
|
|
10978
|
-
] });
|
|
10979
|
-
}
|
|
10980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SlideDownInteractionContextComponent, decorators: [{
|
|
10981
|
-
type: Component,
|
|
10982
|
-
args: [{ selector: "aup-slide-down-interaction-context", animations: [
|
|
10983
|
-
slideDownWhenOpenAnimation
|
|
10984
|
-
], template: "<div [@slideDownWhenOpen]=\"getAnimationState()\" (@slideDownWhenOpen.done)=\"onAnimationDone()\" [style.max-height.px]=\"clampShut ? 0 : undefined\">\n <aup-activity-container #activityContainer [dynamicHeight]=\"dynamicHeight\"></aup-activity-container>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column}:host>div{overflow:hidden}\n"] }]
|
|
10985
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
10986
|
-
type: Inject,
|
|
10987
|
-
args: [MAT_TABS_CONFIG]
|
|
10988
|
-
}, {
|
|
10989
|
-
type: Optional
|
|
10990
|
-
}] }]; }, propDecorators: { activityContainerComponent: [{
|
|
10991
|
-
type: ViewChild,
|
|
10992
|
-
args: ["activityContainer", { static: true }]
|
|
10993
|
-
}], dynamicHeight: [{
|
|
10994
|
-
type: Input
|
|
10995
|
-
}], active: [{
|
|
10996
|
-
type: HostBinding,
|
|
10997
|
-
args: ["class.active"]
|
|
10998
|
-
}] } });
|
|
10999
|
-
|
|
11000
10225
|
class InteractionContextTriggerForDirective extends GarbageCollector {
|
|
11001
10226
|
aupInteractionContextTriggerFor;
|
|
11002
10227
|
activityClass;
|
|
@@ -11079,7 +10304,6 @@ class InteractionModule {
|
|
|
11079
10304
|
AlertDialogComponent,
|
|
11080
10305
|
ActivityOutletComponent,
|
|
11081
10306
|
InPlaceInteractionContextComponent,
|
|
11082
|
-
SlideDownInteractionContextComponent,
|
|
11083
10307
|
AddItemInteractionContextComponent,
|
|
11084
10308
|
ActivityActionsComponent,
|
|
11085
10309
|
PopupInteractionContextComponent,
|
|
@@ -11106,6 +10330,8 @@ class InteractionModule {
|
|
|
11106
10330
|
RouterModule,
|
|
11107
10331
|
MatIconModule,
|
|
11108
10332
|
DirectivesModule,
|
|
10333
|
+
FlexModule,
|
|
10334
|
+
GridModule,
|
|
11109
10335
|
ComponentsModule,
|
|
11110
10336
|
FormsModule,
|
|
11111
10337
|
MatInputModule,
|
|
@@ -11125,8 +10351,7 @@ class InteractionModule {
|
|
|
11125
10351
|
InlineActivityTriggerComponent,
|
|
11126
10352
|
ModalActivityTriggerComponent,
|
|
11127
10353
|
AddCardActivityComponent,
|
|
11128
|
-
InlineStringEditorComponent
|
|
11129
|
-
SlideDownInteractionContextComponent] });
|
|
10354
|
+
InlineStringEditorComponent] });
|
|
11130
10355
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InteractionModule, providers: [
|
|
11131
10356
|
InteractionService
|
|
11132
10357
|
// {
|
|
@@ -11140,6 +10365,8 @@ class InteractionModule {
|
|
|
11140
10365
|
RouterModule,
|
|
11141
10366
|
MatIconModule,
|
|
11142
10367
|
DirectivesModule,
|
|
10368
|
+
FlexModule,
|
|
10369
|
+
GridModule,
|
|
11143
10370
|
ComponentsModule,
|
|
11144
10371
|
FormsModule,
|
|
11145
10372
|
MatInputModule,
|
|
@@ -11158,6 +10385,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
11158
10385
|
RouterModule,
|
|
11159
10386
|
MatIconModule,
|
|
11160
10387
|
DirectivesModule,
|
|
10388
|
+
FlexModule,
|
|
10389
|
+
GridModule,
|
|
11161
10390
|
ComponentsModule,
|
|
11162
10391
|
FormsModule,
|
|
11163
10392
|
MatInputModule,
|
|
@@ -11172,7 +10401,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
11172
10401
|
AlertDialogComponent,
|
|
11173
10402
|
ActivityOutletComponent,
|
|
11174
10403
|
InPlaceInteractionContextComponent,
|
|
11175
|
-
SlideDownInteractionContextComponent,
|
|
11176
10404
|
AddItemInteractionContextComponent,
|
|
11177
10405
|
ActivityActionsComponent,
|
|
11178
10406
|
PopupInteractionContextComponent,
|
|
@@ -11210,7 +10438,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
11210
10438
|
ModalActivityTriggerComponent,
|
|
11211
10439
|
AddCardActivityComponent,
|
|
11212
10440
|
InlineStringEditorComponent,
|
|
11213
|
-
SlideDownInteractionContextComponent,
|
|
11214
10441
|
],
|
|
11215
10442
|
providers: [
|
|
11216
10443
|
InteractionService
|
|
@@ -11281,6 +10508,7 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
11281
10508
|
router;
|
|
11282
10509
|
placeRouter;
|
|
11283
10510
|
placeConfig;
|
|
10511
|
+
cdr;
|
|
11284
10512
|
#animate$_accessor_storage = proxify((ValueModel));
|
|
11285
10513
|
get animate$() { return this.#animate$_accessor_storage; }
|
|
11286
10514
|
set animate$(value) { this.#animate$_accessor_storage = value; }
|
|
@@ -11314,11 +10542,12 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
11314
10542
|
animationEnabled;
|
|
11315
10543
|
authorised;
|
|
11316
10544
|
notAuthorisedNoticePortal;
|
|
11317
|
-
constructor(router, placeRouter, placeConfig, unauthorisedPlaceNotice, parentOutlet) {
|
|
10545
|
+
constructor(router, placeRouter, placeConfig, unauthorisedPlaceNotice, parentOutlet, cdr) {
|
|
11318
10546
|
super();
|
|
11319
10547
|
this.router = router;
|
|
11320
10548
|
this.placeRouter = placeRouter;
|
|
11321
10549
|
this.placeConfig = placeConfig;
|
|
10550
|
+
this.cdr = cdr;
|
|
11322
10551
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
11323
10552
|
this.parentOutletModel = new MutableValueModel(parentOutlet);
|
|
11324
10553
|
const defaultPlaceAnimationOrder = chain(this.parentOutletModel)
|
|
@@ -11330,7 +10559,7 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
11330
10559
|
this.placesInAnimationOrder = chain(this.customPlaceAnimationOrder$)
|
|
11331
10560
|
.otherwise(defaultPlaceAnimationOrder);
|
|
11332
10561
|
this.activePlaceAnimationPosition = this.placesInAnimationOrder
|
|
11333
|
-
.
|
|
10562
|
+
.reduce((placesInOrder) => {
|
|
11334
10563
|
let placeIndex = 0;
|
|
11335
10564
|
if (activatePlaceType.value) {
|
|
11336
10565
|
placeIndex = placesInOrder.indexOf(activatePlaceType.value);
|
|
@@ -11484,8 +10713,8 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
11484
10713
|
this.onAnimationFinishedJob = undefined;
|
|
11485
10714
|
}
|
|
11486
10715
|
}
|
|
11487
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, deps: [{ token: i1$
|
|
11488
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PlaceOutletComponent, selector: "aup-place-outlet", inputs: { animate$: "animate$", animate: "animate", customPlaceAnimationOrder$: ["placeAnimationOrderModel", "customPlaceAnimationOrder$"], customPlaceAnimationOrder: ["placeAnimationOrder", "customPlaceAnimationOrder"] }, outputs: { placeChanged: "placeChanged" }, host: { properties: { "class.authorised": "this.isAuthorised" } }, viewQueries: [{ propertyName: "routerOut", first: true, predicate: ["routeOutlet"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$
|
|
10716
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, deps: [{ token: i1$4.Router }, { token: PlaceRouter }, { token: AUP_PLACE_CONFIG, optional: true }, { token: AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, optional: true }, { token: PlaceOutletComponent, optional: true, skipSelf: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10717
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PlaceOutletComponent, selector: "aup-place-outlet", inputs: { animate$: "animate$", animate: "animate", customPlaceAnimationOrder$: ["placeAnimationOrderModel", "customPlaceAnimationOrder$"], customPlaceAnimationOrder: ["placeAnimationOrder", "customPlaceAnimationOrder"] }, outputs: { placeChanged: "placeChanged" }, host: { properties: { "class.authorised": "this.isAuthorised" } }, viewQueries: [{ propertyName: "routerOut", first: true, predicate: ["routeOutlet"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$2.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i3$2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [LEFT_RIGHT_PLACE_ANIMATION] });
|
|
11489
10718
|
}
|
|
11490
10719
|
__decorate([
|
|
11491
10720
|
Proxify(),
|
|
@@ -11506,7 +10735,7 @@ __decorate([
|
|
|
11506
10735
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, decorators: [{
|
|
11507
10736
|
type: Component,
|
|
11508
10737
|
args: [{ selector: 'aup-place-outlet', animations: [LEFT_RIGHT_PLACE_ANIMATION], template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"] }]
|
|
11509
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
10738
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: PlaceRouter }, { type: undefined, decorators: [{
|
|
11510
10739
|
type: Optional
|
|
11511
10740
|
}, {
|
|
11512
10741
|
type: Inject,
|
|
@@ -11520,7 +10749,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
11520
10749
|
type: SkipSelf
|
|
11521
10750
|
}, {
|
|
11522
10751
|
type: Optional
|
|
11523
|
-
}] }]; }, propDecorators: { animate$: [{
|
|
10752
|
+
}] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { animate$: [{
|
|
11524
10753
|
type: Input
|
|
11525
10754
|
}], animate: [{
|
|
11526
10755
|
type: Input
|
|
@@ -11653,7 +10882,7 @@ class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {
|
|
|
11653
10882
|
super(router);
|
|
11654
10883
|
}
|
|
11655
10884
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ListPlaceNavComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
|
|
11656
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ListPlaceNavComponent, selector: "aup-list-place-nav", usesInheritance: true, ngImport: i0, template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$3.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
10885
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ListPlaceNavComponent, selector: "aup-list-place-nav", usesInheritance: true, ngImport: i0, template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$3.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "directive", type: i7$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
11657
10886
|
}
|
|
11658
10887
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ListPlaceNavComponent, decorators: [{
|
|
11659
10888
|
type: Component,
|
|
@@ -11728,7 +10957,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
11728
10957
|
this.expanded = !this.expanded;
|
|
11729
10958
|
}
|
|
11730
10959
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
|
|
11731
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\">\n <aup-icon matListItemIcon [icon]=\"homeIcon$.value\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">Menu</span>\n </a>\n <a *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n mat-list-item\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [activated]=\"item.active\"\n aup-gc #gc=\"aup-gc\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n >\n <aup-icon matListItemIcon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 235px);--resolved-color: var(--nav-color, rgba(255, 255, 255, .9));--resolved-background-color: var(--nav-background-color, #555);color:var(--resolved-color);background-color:var(--resolved-background-color);width:var(--resolved-nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host aup-icon{margin-right:12px}:host>mat-nav-list{flex:1;display:flex;flex-direction:column;padding:0}:host .mat-mdc-list-item,:host .mat-mdc-list-item-icon,:host .mat-mdc-list-item-icon.activated,:host .mdc-list-
|
|
10960
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\">\n <aup-icon matListItemIcon [icon]=\"homeIcon$.value\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">Menu</span>\n </a>\n <a *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n mat-list-item\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [activated]=\"item.active\"\n aup-gc #gc=\"aup-gc\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n >\n <aup-icon matListItemIcon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 235px);--resolved-color: var(--nav-color, rgba(255, 255, 255, .9));--resolved-background-color: var(--nav-background-color, #555);color:var(--resolved-color);background-color:var(--resolved-background-color);width:var(--resolved-nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host aup-icon{margin-right:12px}:host>mat-nav-list{flex:1;display:flex;flex-direction:column;padding:0}:host .mat-mdc-list-item,:host .mat-mdc-list-item-icon,:host .mat-mdc-list-item-icon.activated,:host .mdc-list-item__primary-text{color:var(--resolved-color)}:host .mdc-list-item--activated .mdc-list-item__primary-text,:host .mdc-list-item--activated .mat-mdc-list-item-icon{color:var(--resolved-color)}:host .mdc-list-item--activated{background-color:#444}:host *.flip-horizontal{transform:scaleX(-1)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$3.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i3$3.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i3$3.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
11732
10961
|
}
|
|
11733
10962
|
__decorate([
|
|
11734
10963
|
Proxify(),
|
|
@@ -11740,7 +10969,7 @@ __decorate([
|
|
|
11740
10969
|
], SidePlaceNavigationComponent.prototype, "expanded", null);
|
|
11741
10970
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, decorators: [{
|
|
11742
10971
|
type: Component,
|
|
11743
|
-
args: [{ selector: 'aup-side-place-navigation', template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\">\n <aup-icon matListItemIcon [icon]=\"homeIcon$.value\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">Menu</span>\n </a>\n <a *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n mat-list-item\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [activated]=\"item.active\"\n aup-gc #gc=\"aup-gc\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n >\n <aup-icon matListItemIcon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 235px);--resolved-color: var(--nav-color, rgba(255, 255, 255, .9));--resolved-background-color: var(--nav-background-color, #555);color:var(--resolved-color);background-color:var(--resolved-background-color);width:var(--resolved-nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host aup-icon{margin-right:12px}:host>mat-nav-list{flex:1;display:flex;flex-direction:column;padding:0}:host .mat-mdc-list-item,:host .mat-mdc-list-item-icon,:host .mat-mdc-list-item-icon.activated,:host .mdc-list-
|
|
10972
|
+
args: [{ selector: 'aup-side-place-navigation', template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\">\n <aup-icon matListItemIcon [icon]=\"homeIcon$.value\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">Menu</span>\n </a>\n <a *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n mat-list-item\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [activated]=\"item.active\"\n aup-gc #gc=\"aup-gc\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n >\n <aup-icon matListItemIcon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 235px);--resolved-color: var(--nav-color, rgba(255, 255, 255, .9));--resolved-background-color: var(--nav-background-color, #555);color:var(--resolved-color);background-color:var(--resolved-background-color);width:var(--resolved-nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host aup-icon{margin-right:12px}:host>mat-nav-list{flex:1;display:flex;flex-direction:column;padding:0}:host .mat-mdc-list-item,:host .mat-mdc-list-item-icon,:host .mat-mdc-list-item-icon.activated,:host .mdc-list-item__primary-text{color:var(--resolved-color)}:host .mdc-list-item--activated .mdc-list-item__primary-text,:host .mdc-list-item--activated .mat-mdc-list-item-icon{color:var(--resolved-color)}:host .mdc-list-item--activated{background-color:#444}:host *.flip-horizontal{transform:scaleX(-1)}\n"] }]
|
|
11744
10973
|
}], ctorParameters: function () { return [{ type: PlaceRouter }]; }, propDecorators: { expanded$: [{
|
|
11745
10974
|
type: Input
|
|
11746
10975
|
}], expanded: [{
|
|
@@ -11758,7 +10987,7 @@ class TabbedPlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
11758
10987
|
super(router);
|
|
11759
10988
|
}
|
|
11760
10989
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TabbedPlaceNavigationComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
|
|
11761
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TabbedPlaceNavigationComponent, selector: "aup-tabbed-place-navigation", usesInheritance: true, ngImport: i0, template: "<nav mat-tab-nav-bar [tabPanel]=\"tabPanel\">\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n", styles: [":host{display:block}div.place-holder{border:1px solid green}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$
|
|
10990
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TabbedPlaceNavigationComponent, selector: "aup-tabbed-place-navigation", usesInheritance: true, ngImport: i0, template: "<nav mat-tab-nav-bar [tabPanel]=\"tabPanel\">\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n", styles: [":host{display:block}div.place-holder{border:1px solid green}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$1.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "animationDuration"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i3$1.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i3$1.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["disabled", "disableRipple", "tabIndex", "active", "id"], exportAs: ["matTabLink"] }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
11762
10991
|
}
|
|
11763
10992
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TabbedPlaceNavigationComponent, decorators: [{
|
|
11764
10993
|
type: Component,
|
|
@@ -11781,6 +11010,7 @@ class PlaceModule {
|
|
|
11781
11010
|
MatTooltipModule,
|
|
11782
11011
|
MatIconModule,
|
|
11783
11012
|
DirectivesModule,
|
|
11013
|
+
FlexModule,
|
|
11784
11014
|
ComponentsModule,
|
|
11785
11015
|
PortalModule,
|
|
11786
11016
|
MatCardModule], exports: [PlaceOutletComponent,
|
|
@@ -11797,6 +11027,7 @@ class PlaceModule {
|
|
|
11797
11027
|
MatTooltipModule,
|
|
11798
11028
|
MatIconModule,
|
|
11799
11029
|
DirectivesModule,
|
|
11030
|
+
FlexModule,
|
|
11800
11031
|
ComponentsModule,
|
|
11801
11032
|
PortalModule,
|
|
11802
11033
|
MatCardModule] });
|
|
@@ -11814,6 +11045,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
11814
11045
|
MatTooltipModule,
|
|
11815
11046
|
MatIconModule,
|
|
11816
11047
|
DirectivesModule,
|
|
11048
|
+
FlexModule,
|
|
11817
11049
|
ComponentsModule,
|
|
11818
11050
|
PortalModule,
|
|
11819
11051
|
MatCardModule
|
|
@@ -11903,44 +11135,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
11903
11135
|
}]
|
|
11904
11136
|
}] });
|
|
11905
11137
|
|
|
11138
|
+
const slideDownOnEnterDef = style({
|
|
11139
|
+
opacity: 0,
|
|
11140
|
+
'height': '0',
|
|
11141
|
+
paddingTop: '0',
|
|
11142
|
+
paddingBottom: '0'
|
|
11143
|
+
});
|
|
11144
|
+
// TODO: params aren't getting customised in the view. Need to figure out the correct approach.
|
|
11145
|
+
const slideDownOnEnterAnimation = trigger('slideDownOnEnter', [
|
|
11146
|
+
transition(':enter', [slideDownOnEnterDef, animate('{{duration}}')], { params: { duration: '100ms' } }),
|
|
11147
|
+
transition(':leave', [animate('{{duration}}', slideDownOnEnterDef)], { params: { duration: '100ms' } })
|
|
11148
|
+
]);
|
|
11149
|
+
const slideLeftOnEnterDef = style({
|
|
11150
|
+
opacity: 0,
|
|
11151
|
+
'width': '0',
|
|
11152
|
+
paddingLeft: '0',
|
|
11153
|
+
paddingRight: '0'
|
|
11154
|
+
});
|
|
11155
|
+
const slideRightOnEnterAnimation = trigger('slideRightOnEnter', [
|
|
11156
|
+
transition(':enter', [slideLeftOnEnterDef, animate('{{duration}}')], { params: { duration: '100ms' } }),
|
|
11157
|
+
transition(':leave', [animate('{{duration}}', slideLeftOnEnterDef)], { params: { duration: '100ms' } })
|
|
11158
|
+
]);
|
|
11159
|
+
const ZERO_WIDTH = {
|
|
11160
|
+
opacity: 0,
|
|
11161
|
+
width: '0',
|
|
11162
|
+
paddingLeft: '0',
|
|
11163
|
+
paddingRight: '0',
|
|
11164
|
+
};
|
|
11165
|
+
const ZERO_HEIGHT = {
|
|
11166
|
+
opacity: 0,
|
|
11167
|
+
height: '0',
|
|
11168
|
+
paddingTop: '0',
|
|
11169
|
+
paddingBottom: '0',
|
|
11170
|
+
};
|
|
11171
|
+
const slideDownAndRightOnEnterAnimation = trigger('slideDownAndRightOnEnter', [
|
|
11172
|
+
transition(':enter', [
|
|
11173
|
+
style({ overflow: "hidden", whiteSpace: "nowrap", ...ZERO_WIDTH, ...ZERO_HEIGHT }),
|
|
11174
|
+
animate('{{duration}}')
|
|
11175
|
+
], { params: { duration: '100ms' } }),
|
|
11176
|
+
transition(':leave', [
|
|
11177
|
+
style({ overflow: "hidden", whiteSpace: "nowrap" }),
|
|
11178
|
+
group([
|
|
11179
|
+
animate('{{duration}}', style(ZERO_HEIGHT)),
|
|
11180
|
+
// Hack: 100ms is too quick as it animates from * - 0 as we only see it animate the width is greater than the parent.
|
|
11181
|
+
// Not sure how to animate from * to natural new width of parent. This hack won't work for text that's just a little
|
|
11182
|
+
// bit wider than the parent as it'll fall within the parent bounds very early in the animation cycle.
|
|
11183
|
+
animate('300ms', style(ZERO_WIDTH)),
|
|
11184
|
+
])
|
|
11185
|
+
], { params: { duration: '100ms' } })
|
|
11186
|
+
]);
|
|
11187
|
+
|
|
11906
11188
|
/**
|
|
11907
11189
|
* @file Automatically generated by barrelsby.
|
|
11908
11190
|
*/
|
|
11909
11191
|
|
|
11910
|
-
class ResizeObserverDirective extends DisposableComponent {
|
|
11911
|
-
aupOnResize = new EventEmitter();
|
|
11912
|
-
elementRef = this.inject(ElementRef);
|
|
11913
|
-
ngZone = this.inject(NgZone);
|
|
11914
|
-
_bounds$ = new MutableValueModel();
|
|
11915
|
-
ngAfterViewInit() {
|
|
11916
|
-
const element = this.elementRef.nativeElement;
|
|
11917
|
-
const ro = new ResizeObserver((entries, observer) => {
|
|
11918
|
-
this.ngZone.run(() => this._updateBounds());
|
|
11919
|
-
});
|
|
11920
|
-
ro.observe(element);
|
|
11921
|
-
this.onDispose(() => ro.disconnect());
|
|
11922
|
-
setTimeout(() => this._updateBounds());
|
|
11923
|
-
}
|
|
11924
|
-
get bounds$() {
|
|
11925
|
-
return this._bounds$.readonly$;
|
|
11926
|
-
}
|
|
11927
|
-
_updateBounds() {
|
|
11928
|
-
this._bounds$.value = Bounds.ofElement(this.elementRef.nativeElement);
|
|
11929
|
-
this.aupOnResize.emit(this._bounds$.value);
|
|
11930
|
-
}
|
|
11931
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ResizeObserverDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
11932
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: ResizeObserverDirective, isStandalone: true, selector: "[aupOnResize]", outputs: { aupOnResize: "aupOnResize" }, usesInheritance: true, ngImport: i0 });
|
|
11933
|
-
}
|
|
11934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ResizeObserverDirective, decorators: [{
|
|
11935
|
-
type: Directive,
|
|
11936
|
-
args: [{
|
|
11937
|
-
selector: "[aupOnResize]",
|
|
11938
|
-
standalone: true
|
|
11939
|
-
}]
|
|
11940
|
-
}], propDecorators: { aupOnResize: [{
|
|
11941
|
-
type: Output
|
|
11942
|
-
}] } });
|
|
11943
|
-
|
|
11944
11192
|
/**
|
|
11945
11193
|
* @file Automatically generated by barrelsby.
|
|
11946
11194
|
*/
|
|
@@ -12031,7 +11279,7 @@ class DialogInteractionContextFactory extends ModalInteractionContextFactory {
|
|
|
12031
11279
|
};
|
|
12032
11280
|
return new DialogInteractionContext(identifier, api, this.dialogService, config);
|
|
12033
11281
|
}
|
|
12034
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, deps: [{ token: i1$
|
|
11282
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, deps: [{ token: i1$6.MatDialog }, { token: DIALOG_INTERACTION_SERVICE_DEFAULTS, optional: true }, { token: MAT_DIALOG_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12035
11283
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, providedIn: 'root' });
|
|
12036
11284
|
}
|
|
12037
11285
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DialogInteractionContextFactory, decorators: [{
|
|
@@ -12039,12 +11287,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
12039
11287
|
args: [{
|
|
12040
11288
|
providedIn: 'root'
|
|
12041
11289
|
}]
|
|
12042
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
11290
|
+
}], ctorParameters: function () { return [{ type: i1$6.MatDialog }, { type: i1$6.MatDialogConfig, decorators: [{
|
|
12043
11291
|
type: Optional
|
|
12044
11292
|
}, {
|
|
12045
11293
|
type: Inject,
|
|
12046
11294
|
args: [DIALOG_INTERACTION_SERVICE_DEFAULTS]
|
|
12047
|
-
}] }, { type: i1$
|
|
11295
|
+
}] }, { type: i1$6.MatDialogConfig, decorators: [{
|
|
12048
11296
|
type: Optional
|
|
12049
11297
|
}, {
|
|
12050
11298
|
type: Inject,
|
|
@@ -12164,7 +11412,6 @@ class PlaceGuard {
|
|
|
12164
11412
|
}
|
|
12165
11413
|
// @Trace()
|
|
12166
11414
|
async canActivate(activatedRoute, state) {
|
|
12167
|
-
await this.placeRouter.waitUntilRouterReady();
|
|
12168
11415
|
if (PlaceComponent.isPlaceComponentConstructor(activatedRoute.component)) {
|
|
12169
11416
|
const placeDefinition = PlaceComponent.getDefinition(activatedRoute.component);
|
|
12170
11417
|
if (placeDefinition.authenticate) {
|
|
@@ -12277,13 +11524,13 @@ class PlaceGuard {
|
|
|
12277
11524
|
return next();
|
|
12278
11525
|
}
|
|
12279
11526
|
}
|
|
12280
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, deps: [{ token: i1$
|
|
11527
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, deps: [{ token: i1$4.Router }, { token: UrlService }, { token: PlaceRouter }, { token: PlaceHistory }, { token: InteractionService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12281
11528
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, providedIn: 'root' });
|
|
12282
11529
|
}
|
|
12283
11530
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, decorators: [{
|
|
12284
11531
|
type: Injectable,
|
|
12285
11532
|
args: [{ providedIn: 'root' }]
|
|
12286
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
11533
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: UrlService }, { type: PlaceRouter }, { type: PlaceHistory }, { type: InteractionService }, { type: i0.Injector }]; } });
|
|
12287
11534
|
|
|
12288
11535
|
var Formatter;
|
|
12289
11536
|
(function (Formatter) {
|
|
@@ -12317,74 +11564,69 @@ var Formatter;
|
|
|
12317
11564
|
Formatter.BOOLEAN = new BooleanType();
|
|
12318
11565
|
})(Formatter || (Formatter = {}));
|
|
12319
11566
|
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
//
|
|
12342
|
-
//
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
//
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
// });
|
|
12366
|
-
// }
|
|
11567
|
+
function installMechanics(parameterDef, prototype, propertyKey, tagPrefix) {
|
|
11568
|
+
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, parameterDef);
|
|
11569
|
+
function getMechanics(instance, propertyName) {
|
|
11570
|
+
const key = `__mechanics_${propertyName.toString()}`;
|
|
11571
|
+
if (!instance[key]) {
|
|
11572
|
+
const backingModel = parameterDef.createBackingModel();
|
|
11573
|
+
instance[key] = {
|
|
11574
|
+
backingModel: backingModel,
|
|
11575
|
+
binding: null
|
|
11576
|
+
};
|
|
11577
|
+
const tag = `${tagPrefix}(${prototype.constructor.name}.${propertyKey.toString()})`;
|
|
11578
|
+
DebugContext.getOrCreate(instance[key].backingModel).tag(tag);
|
|
11579
|
+
}
|
|
11580
|
+
return instance[key];
|
|
11581
|
+
}
|
|
11582
|
+
Object.defineProperty(prototype, propertyKey, {
|
|
11583
|
+
get: function () {
|
|
11584
|
+
return getMechanics(this, propertyKey).backingModel;
|
|
11585
|
+
},
|
|
11586
|
+
set: function (userModel) {
|
|
11587
|
+
const mechanics = getMechanics(this, propertyKey);
|
|
11588
|
+
// This handles the scenario where we want to push an existing value model (such as a form model)
|
|
11589
|
+
// to and from the route.
|
|
11590
|
+
if (mechanics.binding) {
|
|
11591
|
+
mechanics.binding.dispose();
|
|
11592
|
+
}
|
|
11593
|
+
if (userModel) {
|
|
11594
|
+
mechanics.binding = new Binding(mechanics.backingModel, userModel, {
|
|
11595
|
+
toLeft: Functions.identity,
|
|
11596
|
+
toRight: Functions.identity
|
|
11597
|
+
});
|
|
11598
|
+
if (parameterDef.isEmptyValue(userModel.value)) {
|
|
11599
|
+
// console.log(`Push visit to model for ${tag}`, {value: mechanics.backingModel.value});
|
|
11600
|
+
mechanics.binding.writeRight(); // push the visit into the user model;
|
|
11601
|
+
}
|
|
11602
|
+
else {
|
|
11603
|
+
if (!parameterDef.isEmptyValue(mechanics.backingModel.value)) {
|
|
11604
|
+
console.warn('Assigning a visit model with an existing value to a visit parameter with an existing value. Visit parameter will be overridden');
|
|
11605
|
+
}
|
|
11606
|
+
mechanics.binding.writeLeft(); // push the user model into the visit
|
|
11607
|
+
}
|
|
11608
|
+
}
|
|
11609
|
+
}
|
|
11610
|
+
});
|
|
11611
|
+
}
|
|
12367
11612
|
function RouteId(formatter, options) {
|
|
12368
11613
|
return (prototype, propertyKey) => {
|
|
12369
11614
|
const parameterDef = new ParameterDefinition.RouteId(propertyKey.toString(), options, formatter);
|
|
12370
|
-
|
|
12371
|
-
Klass.get(prototype).addToOwnMetadataList(ROUTE_PARAMETER_LIST_KEY, parameterDef);
|
|
11615
|
+
installMechanics(parameterDef, prototype, propertyKey, '@RouteId');
|
|
12372
11616
|
};
|
|
12373
11617
|
}
|
|
12374
11618
|
function VisitParameter(options) {
|
|
12375
11619
|
const opts = Opts.get(options);
|
|
12376
11620
|
return (prototype, propertyKey) => {
|
|
12377
11621
|
const parameterDef = new ParameterDefinition.ValueParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
12378
|
-
|
|
12379
|
-
// installMechanics(parameterDef, prototype, propertyKey, '@VisitParameter');
|
|
11622
|
+
installMechanics(parameterDef, prototype, propertyKey, '@VisitParameter');
|
|
12380
11623
|
};
|
|
12381
11624
|
}
|
|
12382
11625
|
function VisitParameterList(options) {
|
|
12383
11626
|
const opts = Opts.get(options);
|
|
12384
11627
|
return (prototype, propertyKey) => {
|
|
12385
11628
|
const parameterDef = new ParameterDefinition.ArrayParameter(propertyKey.toString(), options, opts.getOptional('storeInUrl', null));
|
|
12386
|
-
|
|
12387
|
-
// installMechanics(parameterDef, prototype, propertyKey, '@VisitParameterList');
|
|
11629
|
+
installMechanics(parameterDef, prototype, propertyKey, '@VisitParameterList');
|
|
12388
11630
|
};
|
|
12389
11631
|
}
|
|
12390
11632
|
|
|
@@ -12478,5 +11720,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
12478
11720
|
* Generated bundle index. Do not edit.
|
|
12479
11721
|
*/
|
|
12480
11722
|
|
|
12481
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG,
|
|
11723
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControlsComponent, EditSession, EditorControlColumnModel, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableBodyComponent, TableCellComponent, TableComponent, TableFilterModel, TableHeaderCellComponent, TableModel, TableMoreMenuComponent, TableMoreMenuPopupComponent, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, markdownPillExtension, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
12482
11724
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|