@datarailsshared/datarailsshared 1.6.361 → 1.6.365
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/datarailsshared-datarailsshared-1.6.365.tgz +0 -0
- package/esm2022/lib/dr-cron-field/dr-cron-field.component.mjs +548 -0
- package/esm2022/lib/dr-cron-field/dr-cron-field.editor.mjs +303 -0
- package/esm2022/lib/dr-cron-field/public-api.mjs +3 -0
- package/esm2022/lib/dr-dialog/dialog.module.mjs +2 -1
- package/esm2022/lib/dr-dialog/services/dialog.service.mjs +8 -1
- package/esm2022/lib/dr-inputs/button/button.component.mjs +7 -4
- package/esm2022/lib/dr-modal/components/dr-confirm-modal/dr-confirm-modal.component.mjs +210 -0
- package/esm2022/lib/dr-modal/components/dr-modal/dr-modal.component.mjs +73 -0
- package/esm2022/lib/dr-modal/components/dr-modal-container/dr-modal-container.component.mjs +72 -0
- package/esm2022/lib/dr-modal/directives/dr-modal-close.directive.mjs +39 -0
- package/esm2022/lib/dr-modal/dr-modal-config.mjs +3 -0
- package/esm2022/lib/dr-modal/dr-modal-config.provider.mjs +14 -0
- package/esm2022/lib/dr-modal/dr-modal-form.types.mjs +2 -0
- package/esm2022/lib/dr-modal/dr-modal-form.utils.mjs +18 -0
- package/esm2022/lib/dr-modal/dr-modal-ref.mjs +42 -0
- package/esm2022/lib/dr-modal/dr-modal.mjs +9 -0
- package/esm2022/lib/dr-modal/dr-modal.module.mjs +34 -0
- package/esm2022/lib/dr-modal/dr-modal.service.mjs +89 -0
- package/esm2022/lib/dr-modal/dr-modal.slots.mjs +91 -0
- package/esm2022/lib/dr-modal/dr-modal.types.mjs +2 -0
- package/esm2022/lib/dr-modal/public-api.mjs +15 -0
- package/esm2022/lib/utils/async-utils.mjs +32 -0
- package/esm2022/local-api.mjs +4 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +2271 -760
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-cron-field/dr-cron-field.component.d.ts +72 -0
- package/lib/dr-cron-field/dr-cron-field.editor.d.ts +82 -0
- package/lib/dr-cron-field/public-api.d.ts +2 -0
- package/lib/dr-dialog/dialog.module.d.ts +1 -0
- package/lib/dr-dialog/services/dialog.service.d.ts +7 -0
- package/lib/dr-inputs/button/button.component.d.ts +2 -1
- package/lib/dr-modal/components/dr-confirm-modal/dr-confirm-modal.component.d.ts +19 -0
- package/lib/dr-modal/components/dr-modal/dr-modal.component.d.ts +14 -0
- package/lib/dr-modal/components/dr-modal-container/dr-modal-container.component.d.ts +23 -0
- package/lib/dr-modal/directives/dr-modal-close.directive.d.ts +17 -0
- package/lib/dr-modal/dr-modal-config.d.ts +17 -0
- package/lib/dr-modal/dr-modal-config.provider.d.ts +3 -0
- package/lib/dr-modal/dr-modal-form.types.d.ts +42 -0
- package/lib/dr-modal/dr-modal-form.utils.d.ts +9 -0
- package/lib/dr-modal/dr-modal-ref.d.ts +19 -0
- package/lib/dr-modal/dr-modal.d.ts +5 -0
- package/lib/dr-modal/dr-modal.module.d.ts +9 -0
- package/lib/dr-modal/dr-modal.service.d.ts +20 -0
- package/lib/dr-modal/dr-modal.slots.d.ts +25 -0
- package/lib/dr-modal/dr-modal.types.d.ts +63 -0
- package/lib/dr-modal/public-api.d.ts +14 -0
- package/lib/utils/async-utils.d.ts +18 -0
- package/local-api.d.ts +3 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.361.tgz +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, HostBinding, inject, ElementRef, booleanAttribute, Directive, ChangeDetectionStrategy, Injector, EnvironmentInjector, ViewContainerRef, ViewChild, TemplateRef, HostListener, NgModule, EventEmitter, Output, forwardRef, ContentChild, PLATFORM_ID, Inject, ContentChildren, ChangeDetectorRef, ViewEncapsulation, Injectable, DestroyRef, signal, Pipe, ComponentFactoryResolver, Optional, SkipSelf, Host, ViewChildren, InjectionToken, Renderer2, numberAttribute } from '@angular/core';
|
|
2
|
+
import { Component, Input, HostBinding, inject, ElementRef, booleanAttribute, Directive, ChangeDetectionStrategy, Injector, EnvironmentInjector, ViewContainerRef, ViewChild, TemplateRef, HostListener, NgModule, EventEmitter, Output, forwardRef, ContentChild, PLATFORM_ID, Inject, ContentChildren, ChangeDetectorRef, ViewEncapsulation, Injectable, DestroyRef, signal, Pipe, ComponentFactoryResolver, Optional, SkipSelf, Host, ViewChildren, ANIMATION_MODULE_TYPE, computed, InjectionToken, Renderer2, numberAttribute } from '@angular/core';
|
|
3
3
|
import * as _ from 'lodash';
|
|
4
|
-
import { reduce, uniqueId as uniqueId$1, isNil, isObject, isEqual, cloneDeep, indexOf, find, map as map$2, isNumber, merge as merge$1, forEach, some, orderBy, filter as filter$1, includes, pull, concat, isString, isBoolean, keys, get, has, isArray } from 'lodash';
|
|
4
|
+
import { reduce, uniqueId as uniqueId$1, isNil, isObject, isEqual, cloneDeep, indexOf, find, map as map$2, isNumber, merge as merge$1, forEach, some, orderBy, filter as filter$1, includes, pull, concat, isString, isBoolean, keys, sortBy, capitalize, get, has, isArray } from 'lodash';
|
|
5
5
|
import * as i1 from '@angular/common';
|
|
6
6
|
import { CommonModule, isPlatformBrowser, DOCUMENT, NgIf, AsyncPipe, NgTemplateOutlet } from '@angular/common';
|
|
7
7
|
import * as i2 from '@angular/forms';
|
|
8
8
|
import { NG_VALUE_ACCESSOR, FormsModule, FormBuilder, ReactiveFormsModule, FormGroup, FormControl } from '@angular/forms';
|
|
9
9
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
10
10
|
import { OverlayConfig, CdkOverlayOrigin, CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
11
|
-
import * as
|
|
12
|
-
import { ComponentPortal,
|
|
11
|
+
import * as i1$6 from '@angular/cdk/portal';
|
|
12
|
+
import { ComponentPortal, PortalModule, CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal';
|
|
13
13
|
import { transition, style, animate, trigger, state } from '@angular/animations';
|
|
14
|
-
import { BehaviorSubject, noop as noop$3, Subject, from, merge, fromEvent, Observable, distinctUntilChanged as distinctUntilChanged$1, startWith as startWith$1, delay, combineLatest, map as map$1, takeUntil as takeUntil$1, filter as filter$2, switchMap as switchMap$1, observeOn, asyncScheduler, withLatestFrom, first as first$1, interval, throwError, tap as tap$1, finalize as finalize$1, EMPTY, defer,
|
|
15
|
-
import { skip, debounceTime, filter, distinctUntilChanged, startWith, switchMap, takeUntil, map, tap, shareReplay, first, catchError, finalize, take } from 'rxjs/operators';
|
|
14
|
+
import { BehaviorSubject, noop as noop$3, Subject, from, merge, fromEvent, Observable, distinctUntilChanged as distinctUntilChanged$1, startWith as startWith$1, delay, combineLatest, map as map$1, takeUntil as takeUntil$1, filter as filter$2, switchMap as switchMap$1, observeOn, asyncScheduler, withLatestFrom, first as first$1, interval, throwError, firstValueFrom, take, tap as tap$1, finalize as finalize$1, EMPTY, defer, throttleTime } from 'rxjs';
|
|
15
|
+
import { skip, debounceTime, filter, distinctUntilChanged, startWith, switchMap, takeUntil, map, tap, shareReplay, first, catchError, finalize, take as take$1 } from 'rxjs/operators';
|
|
16
16
|
import { provideNgxMask, NgxMaskDirective } from 'ngx-mask';
|
|
17
17
|
import * as i3 from '@ng-select/ng-select';
|
|
18
18
|
import { NgSelectComponent, NgSelectModule } from '@ng-select/ng-select';
|
|
@@ -36,13 +36,14 @@ import 'codemirror/mode/javascript/javascript';
|
|
|
36
36
|
import 'codemirror/addon/edit/matchbrackets';
|
|
37
37
|
import 'codemirror/addon/hint/show-hint';
|
|
38
38
|
import '@codemirror/autocomplete';
|
|
39
|
-
import * as i1$6 from '@angular/cdk/a11y';
|
|
40
|
-
import { CdkDialogContainer, DialogModule, Dialog, DialogConfig } from '@angular/cdk/dialog';
|
|
41
39
|
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
40
|
+
import * as i1$7 from '@angular/cdk/dialog';
|
|
41
|
+
import { CdkDialogContainer, DialogModule, Dialog, DialogConfig } from '@angular/cdk/dialog';
|
|
42
|
+
import * as i1$8 from '@angular/cdk/a11y';
|
|
42
43
|
import { coerceCssPixelValue } from '@angular/cdk/coercion';
|
|
43
|
-
import * as i1$
|
|
44
|
+
import * as i1$a from 'ag-grid-angular';
|
|
44
45
|
import { AgGridModule } from 'ag-grid-angular';
|
|
45
|
-
import * as i1$
|
|
46
|
+
import * as i1$9 from '@angular/router';
|
|
46
47
|
import { Router, NavigationEnd } from '@angular/router';
|
|
47
48
|
|
|
48
49
|
// instead of getting this from the server each time
|
|
@@ -89,7 +90,7 @@ function DrButtonComponent_i_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
89
90
|
i0.ɵɵclassMap(ctx_r2.iconAfter);
|
|
90
91
|
i0.ɵɵstyleProp("font-size", ctx_r2.iconAfterSize)("color", ctx_r2.iconAfterColor || "inherit");
|
|
91
92
|
} }
|
|
92
|
-
const _c0$
|
|
93
|
+
const _c0$15 = ["*"];
|
|
93
94
|
class DrButtonComponent {
|
|
94
95
|
constructor() {
|
|
95
96
|
this.theme = 'primary';
|
|
@@ -98,12 +99,13 @@ class DrButtonComponent {
|
|
|
98
99
|
this.disabled = false;
|
|
99
100
|
this.isLoading = false;
|
|
100
101
|
this.isActive = false;
|
|
102
|
+
this.type = 'submit'; // default HTML button type
|
|
101
103
|
}
|
|
102
104
|
/** @nocollapse */ static { this.ɵfac = function DrButtonComponent_Factory(t) { return new (t || DrButtonComponent)(); }; }
|
|
103
105
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrButtonComponent, selectors: [["dr-button"]], hostVars: 12, hostBindings: function DrButtonComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
104
106
|
i0.ɵɵclassMap(ctx.theme);
|
|
105
107
|
i0.ɵɵclassProp("with-icon", ctx.icon)("with-icon-after", ctx.iconAfter)("disabled", ctx.disabled)("loading", ctx.isLoading)("active", ctx.isActive);
|
|
106
|
-
} }, inputs: { theme: "theme", icon: "icon", iconColor: "iconColor", iconSize: "iconSize", iconAfter: "iconAfter", iconAfterColor: "iconAfterColor", iconAfterSize: "iconAfterSize", disabled: "disabled", isLoading: "isLoading", isActive: "isActive" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$
|
|
108
|
+
} }, inputs: { theme: "theme", icon: "icon", iconColor: "iconColor", iconSize: "iconSize", iconAfter: "iconAfter", iconAfterColor: "iconAfterColor", iconAfterSize: "iconAfterSize", disabled: "disabled", isLoading: "isLoading", isActive: "isActive", type: "type" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$15, decls: 5, vars: 5, consts: [[3, "disabled", "type"], ["class", "dr-button__icon", 3, "class", "font-size", "color", 4, "ngIf"], ["class", "dr-button__spinner", 4, "ngIf"], ["class", "dr-button__icon dr-button__icon--after", 3, "class", "font-size", "color", 4, "ngIf"], [1, "dr-button__icon"], [1, "dr-button__spinner"], [1, "dr-icon-load"], [1, "dr-button__icon", "dr-button__icon--after"]], template: function DrButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
107
109
|
i0.ɵɵprojectionDef();
|
|
108
110
|
i0.ɵɵelementStart(0, "button", 0);
|
|
109
111
|
i0.ɵɵtemplate(1, DrButtonComponent_i_1_Template, 1, 6, "i", 1);
|
|
@@ -112,7 +114,7 @@ class DrButtonComponent {
|
|
|
112
114
|
i0.ɵɵtemplate(4, DrButtonComponent_i_4_Template, 1, 6, "i", 3);
|
|
113
115
|
i0.ɵɵelementEnd();
|
|
114
116
|
} if (rf & 2) {
|
|
115
|
-
i0.ɵɵproperty("disabled", ctx.disabled);
|
|
117
|
+
i0.ɵɵproperty("disabled", ctx.disabled)("type", ctx.type);
|
|
116
118
|
i0.ɵɵadvance(1);
|
|
117
119
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
118
120
|
i0.ɵɵadvance(2);
|
|
@@ -123,7 +125,7 @@ class DrButtonComponent {
|
|
|
123
125
|
}
|
|
124
126
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrButtonComponent, [{
|
|
125
127
|
type: Component,
|
|
126
|
-
args: [{ selector: 'dr-button', standalone: true, imports: [CommonModule], template: "<button [disabled]=\"disabled\">\n <i *ngIf=\"icon\" class=\"dr-button__icon\" [class]=\"icon\" [style.font-size]=\"iconSize\" [style.color]=\"iconColor || 'inherit'\">\n </i>\n <ng-content></ng-content>\n <div *ngIf=\"isLoading\" class=\"dr-button__spinner\">\n <i [style.font-size]=\"iconSize\" class=\"dr-icon-load\"></i>\n </div>\n <i\n *ngIf=\"iconAfter\"\n class=\"dr-button__icon dr-button__icon--after\"\n [class]=\"iconAfter\"\n [style.font-size]=\"iconAfterSize\"\n [style.color]=\"iconAfterColor || 'inherit'\">\n </i>\n</button>\n", styles: [":host{display:inline-block}:host.disabled,:host.loading{pointer-events:none}:host button{font-size:14px;line-height:24px;font-weight:400;position:relative;display:flex;align-items:center;flex-wrap:nowrap;cursor:pointer;border-radius:16px;padding:4px 16px;height:32px;border:1px solid}:host button .dr-button__spinner{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;background:inherit;border-radius:inherit}:host button .dr-button__spinner i{animation-name:rotate;animation-iteration-count:infinite;animation-duration:1s}:host.with-icon button{padding-left:8px}:host.with-icon button i:first-child{margin-right:4px}:host.with-icon-after button{padding-right:8px}:host.with-icon-after button i:last-child{margin-left:4px}:host.split-primary-first button,:host.split-secondary-first button{border-bottom-right-radius:0;border-top-right-radius:0;padding-right:8px}:host.help button{padding:4px 16px 4px 8px;color:#333;height:28px;border:none;min-width:84px}:host.help button i{min-width:4px}:host.split-primary-last button,:host.split-secondary-last button{border-bottom-left-radius:0;border-top-left-radius:0;padding-right:8px;padding-left:4px;border-left:none}:host.split-primary-last button i,:host.split-secondary-last button i{margin:0!important}:host.primary button,:host.split-primary-first button,:host.split-primary-last button{color:#fff;background:#4646ce;border-color:#4646ce}:host.primary button:hover,:host.split-primary-first button:hover,:host.split-primary-last button:hover{background:linear-gradient(96.89deg,#25258c,#4646ce);border-color:linear-gradient(96.89deg,#25258c 0%,#4646ce 100%)}:host.primary.active button,:host.primary button:active,:host.split-primary-first.active button,:host.split-primary-first button:active,:host.split-primary-last.active button,:host.split-primary-last button:active{background:#25258c;border-color:#25258c}:host.primary.disabled button,:host.split-primary-first.disabled button,:host.split-primary-last.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.split-primary-first button{border-right-color:#dfe0e3}:host.split-primary-first.disabled button{border-right-color:#aeabac}:host.secondary button,:host.split-secondary-first button,:host.split-secondary-last button{color:#4646ce;background:#fff;border-color:#4646ce}:host.secondary button:hover,:host.split-secondary-first button:hover,:host.split-secondary-last button:hover{background:#f5f5f5;box-shadow:0 4px 14px #0000001a}:host.secondary.active button,:host.secondary button:active,:host.split-secondary-first.active button,:host.split-secondary-first button:active,:host.split-secondary-last.active button,:host.split-secondary-last button:active{background:#eaeaff;box-shadow:none}:host.secondary.disabled button,:host.split-secondary-first.disabled button,:host.split-secondary-last.disabled button{color:#aeabac;border-color:#aeabac}:host.secondary-white button{color:#fff;background:transparent;border-color:#fff}:host.secondary-white button:hover{background:#ffffff1a;box-shadow:0 4px 14px #0000001a}:host.secondary-white.active button,:host.secondary-white button:active{background:transparent;box-shadow:none}:host.secondary-white.disabled button{color:#aeabac;border-color:#aeabac}:host.split-secondary-first button{border-right-color:#4646ce}:host.split-secondary-first.disabled button{border-right-color:#aeabac}:host.icon button,:host.icon-primary button,:host.icon-secondary button{width:28px;height:28px;padding:0;justify-content:center}:host.icon button i,:host.icon-primary button i,:host.icon-secondary button i{margin:0!important}:host.icon button{background:transparent;border-color:transparent;color:#6d6e6f}:host.icon button:hover{color:#333;background:#dfe0e3;border-color:#dfe0e3}:host.icon.active button,:host.icon button:active{color:#4646ce;background:#eaeaff;border-color:#eaeaff}:host.icon.disabled button{color:#aeabac;background:transparent;border-color:transparent}:host.icon-primary button{color:#fff;background:#4646ce;border-color:#4646ce}:host.icon-primary button:hover{color:#fff;background:linear-gradient(96.89deg,#25258c,#4646ce);border-color:linear-gradient(96.89deg,#25258c 0%,#4646ce 100%)}:host.icon-primary.active button,:host.icon-primary button:active{color:#fff;background:#25258c;border-color:#25258c}:host.icon-primary.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.icon-secondary button{color:#4646ce;background:#fff;border-color:#4646ce}:host.icon-secondary button:hover{color:#4646ce;background:#f5f5f5;border-color:#4646ce}:host.icon-secondary.active button,:host.icon-secondary button:active{color:#4646ce;background:#eaeaff;border-color:#4646ce}:host.icon-secondary.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.ghost button{border-radius:4px;padding:4px;background:transparent;border-color:transparent;color:#6d6e6f}:host.ghost button .dr-button__spinner{color:#4646ce;background:#fff}:host.ghost button:hover{color:#333;background:#f5f5f5;border-color:#f5f5f5}:host.ghost.active button,:host.ghost button:active{color:#4646ce;background:#eaeaff;border-color:#eaeaff}:host.ghost.disabled button{color:#aeabac;background:transparent;border-color:transparent}:host.highlight button{border:none;background:none;color:#4646ce;padding:0 4px;text-decoration:none}:host.highlight button:hover,:host.highlight.active button,:host.highlight button:active{text-decoration:underline}:host.highlight.disabled button{color:#aeabac}:host.dropdown button,:host.selection button{font-size:12px;line-height:16px;font-weight:400;border:1px solid #dfe0e3;border-radius:6px;padding:6px 8px;color:#6d6e6f;background-color:#fff}:host.dropdown button:hover,:host.selection button:hover{background-color:#f5f5f5;border-color:#4e566c}:host.dropdown.active button,:host.selection.active button{color:#4646ce}:host.dropdown.active button i:last-child,:host.selection.active button i:last-child{color:#333}:host.dropdown button:active,:host.selection button:active{border-color:#4646ce}:host.dropdown.disabled button,:host.selection.disabled button{background-color:#f0f1f4;color:#aeabac}:host.dropdown.disabled button i:last-child,:host.selection.disabled button i:last-child{color:#aeabac}:host.danger button{color:#fff;background:#bf1d30;border-color:#bf1d30}:host.danger button:hover{background:#981440;border-color:#981440}:host.danger.active button,:host.danger button:active{background:#680325;border-color:#680325}:host.danger.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.ai-primary button{color:#fff;border:none;background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%)}:host.ai-primary button:hover{background:linear-gradient(0deg,#4d4dcd66 0% 100%),linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%)}:host.ai-primary.active button,:host.ai-primary button:active{background:linear-gradient(0deg,#4d4dcd66 0% 100%),linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%)}:host.ai-primary.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.ai-secondary button{color:#4646ce;border:none!important;z-index:1;background:linear-gradient(269.57deg,#6969ff -4.23%,#4eb7df 103.6%)!important}:host.ai-secondary button:before{content:\"\";position:absolute;inset:1px;border-radius:15px;background-color:#fff;z-index:-1}:host.ai-secondary button:hover{box-shadow:0 4px 14px #0000001a}:host.ai-secondary.active button,:host.ai-secondary button:active{box-shadow:none}:host.ai-secondary.active button:before,:host.ai-secondary button:active:before{background:linear-gradient(270deg,#6969ff33 -4.23%,#4eb7df33 103.6%),#fff}:host.ai-secondary.disabled button{color:#aeabac;background:#f0f1f4!important;border:1px solid #aeabac!important}:host.ai-secondary.disabled button:before{display:none}:host.marketing button{color:#fff;background:#f93576;border-color:#f93576}:host.marketing button:hover,:host.marketing.active button,:host.marketing button:active{background:#c9245b;border-color:#c9245b}:host.marketing.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
128
|
+
args: [{ selector: 'dr-button', standalone: true, imports: [CommonModule], template: "<button [disabled]=\"disabled\" [type]=\"type\">\n <i *ngIf=\"icon\" class=\"dr-button__icon\" [class]=\"icon\" [style.font-size]=\"iconSize\" [style.color]=\"iconColor || 'inherit'\">\n </i>\n <ng-content></ng-content>\n <div *ngIf=\"isLoading\" class=\"dr-button__spinner\">\n <i [style.font-size]=\"iconSize\" class=\"dr-icon-load\"></i>\n </div>\n <i\n *ngIf=\"iconAfter\"\n class=\"dr-button__icon dr-button__icon--after\"\n [class]=\"iconAfter\"\n [style.font-size]=\"iconAfterSize\"\n [style.color]=\"iconAfterColor || 'inherit'\">\n </i>\n</button>\n", styles: [":host{display:inline-block}:host.disabled,:host.loading{pointer-events:none}:host button{font-size:14px;line-height:24px;font-weight:400;position:relative;display:flex;align-items:center;flex-wrap:nowrap;cursor:pointer;border-radius:16px;padding:4px 16px;height:32px;border:1px solid}:host button .dr-button__spinner{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;background:inherit;border-radius:inherit}:host button .dr-button__spinner i{animation-name:rotate;animation-iteration-count:infinite;animation-duration:1s}:host.with-icon button{padding-left:8px}:host.with-icon button i:first-child{margin-right:4px}:host.with-icon-after button{padding-right:8px}:host.with-icon-after button i:last-child{margin-left:4px}:host.split-primary-first button,:host.split-secondary-first button{border-bottom-right-radius:0;border-top-right-radius:0;padding-right:8px}:host.help button{padding:4px 16px 4px 8px;color:#333;height:28px;border:none;min-width:84px}:host.help button i{min-width:4px}:host.split-primary-last button,:host.split-secondary-last button{border-bottom-left-radius:0;border-top-left-radius:0;padding-right:8px;padding-left:4px;border-left:none}:host.split-primary-last button i,:host.split-secondary-last button i{margin:0!important}:host.primary button,:host.split-primary-first button,:host.split-primary-last button{color:#fff;background:#4646ce;border-color:#4646ce}:host.primary button:hover,:host.split-primary-first button:hover,:host.split-primary-last button:hover{background:linear-gradient(96.89deg,#25258c,#4646ce);border-color:linear-gradient(96.89deg,#25258c 0%,#4646ce 100%)}:host.primary.active button,:host.primary button:active,:host.split-primary-first.active button,:host.split-primary-first button:active,:host.split-primary-last.active button,:host.split-primary-last button:active{background:#25258c;border-color:#25258c}:host.primary.disabled button,:host.split-primary-first.disabled button,:host.split-primary-last.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.split-primary-first button{border-right-color:#dfe0e3}:host.split-primary-first.disabled button{border-right-color:#aeabac}:host.secondary button,:host.split-secondary-first button,:host.split-secondary-last button{color:#4646ce;background:#fff;border-color:#4646ce}:host.secondary button:hover,:host.split-secondary-first button:hover,:host.split-secondary-last button:hover{background:#f5f5f5;box-shadow:0 4px 14px #0000001a}:host.secondary.active button,:host.secondary button:active,:host.split-secondary-first.active button,:host.split-secondary-first button:active,:host.split-secondary-last.active button,:host.split-secondary-last button:active{background:#eaeaff;box-shadow:none}:host.secondary.disabled button,:host.split-secondary-first.disabled button,:host.split-secondary-last.disabled button{color:#aeabac;border-color:#aeabac}:host.secondary-white button{color:#fff;background:transparent;border-color:#fff}:host.secondary-white button:hover{background:#ffffff1a;box-shadow:0 4px 14px #0000001a}:host.secondary-white.active button,:host.secondary-white button:active{background:transparent;box-shadow:none}:host.secondary-white.disabled button{color:#aeabac;border-color:#aeabac}:host.split-secondary-first button{border-right-color:#4646ce}:host.split-secondary-first.disabled button{border-right-color:#aeabac}:host.icon button,:host.icon-primary button,:host.icon-secondary button{width:28px;height:28px;padding:0;justify-content:center}:host.icon button i,:host.icon-primary button i,:host.icon-secondary button i{margin:0!important}:host.icon button{background:transparent;border-color:transparent;color:#6d6e6f}:host.icon button:hover{color:#333;background:#dfe0e3;border-color:#dfe0e3}:host.icon.active button,:host.icon button:active{color:#4646ce;background:#eaeaff;border-color:#eaeaff}:host.icon.disabled button{color:#aeabac;background:transparent;border-color:transparent}:host.icon-primary button{color:#fff;background:#4646ce;border-color:#4646ce}:host.icon-primary button:hover{color:#fff;background:linear-gradient(96.89deg,#25258c,#4646ce);border-color:linear-gradient(96.89deg,#25258c 0%,#4646ce 100%)}:host.icon-primary.active button,:host.icon-primary button:active{color:#fff;background:#25258c;border-color:#25258c}:host.icon-primary.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.icon-secondary button{color:#4646ce;background:#fff;border-color:#4646ce}:host.icon-secondary button:hover{color:#4646ce;background:#f5f5f5;border-color:#4646ce}:host.icon-secondary.active button,:host.icon-secondary button:active{color:#4646ce;background:#eaeaff;border-color:#4646ce}:host.icon-secondary.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.ghost button{border-radius:4px;padding:4px;background:transparent;border-color:transparent;color:#6d6e6f}:host.ghost button .dr-button__spinner{color:#4646ce;background:#fff}:host.ghost button:hover{color:#333;background:#f5f5f5;border-color:#f5f5f5}:host.ghost.active button,:host.ghost button:active{color:#4646ce;background:#eaeaff;border-color:#eaeaff}:host.ghost.disabled button{color:#aeabac;background:transparent;border-color:transparent}:host.highlight button{border:none;background:none;color:#4646ce;padding:0 4px;text-decoration:none}:host.highlight button:hover,:host.highlight.active button,:host.highlight button:active{text-decoration:underline}:host.highlight.disabled button{color:#aeabac}:host.dropdown button,:host.selection button{font-size:12px;line-height:16px;font-weight:400;border:1px solid #dfe0e3;border-radius:6px;padding:6px 8px;color:#6d6e6f;background-color:#fff}:host.dropdown button:hover,:host.selection button:hover{background-color:#f5f5f5;border-color:#4e566c}:host.dropdown.active button,:host.selection.active button{color:#4646ce}:host.dropdown.active button i:last-child,:host.selection.active button i:last-child{color:#333}:host.dropdown button:active,:host.selection button:active{border-color:#4646ce}:host.dropdown.disabled button,:host.selection.disabled button{background-color:#f0f1f4;color:#aeabac}:host.dropdown.disabled button i:last-child,:host.selection.disabled button i:last-child{color:#aeabac}:host.danger button{color:#fff;background:#bf1d30;border-color:#bf1d30}:host.danger button:hover{background:#981440;border-color:#981440}:host.danger.active button,:host.danger button:active{background:#680325;border-color:#680325}:host.danger.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.ai-primary button{color:#fff;border:none;background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%)}:host.ai-primary button:hover{background:linear-gradient(0deg,#4d4dcd66 0% 100%),linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%)}:host.ai-primary.active button,:host.ai-primary button:active{background:linear-gradient(0deg,#4d4dcd66 0% 100%),linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%)}:host.ai-primary.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}:host.ai-secondary button{color:#4646ce;border:none!important;z-index:1;background:linear-gradient(269.57deg,#6969ff -4.23%,#4eb7df 103.6%)!important}:host.ai-secondary button:before{content:\"\";position:absolute;inset:1px;border-radius:15px;background-color:#fff;z-index:-1}:host.ai-secondary button:hover{box-shadow:0 4px 14px #0000001a}:host.ai-secondary.active button,:host.ai-secondary button:active{box-shadow:none}:host.ai-secondary.active button:before,:host.ai-secondary button:active:before{background:linear-gradient(270deg,#6969ff33 -4.23%,#4eb7df33 103.6%),#fff}:host.ai-secondary.disabled button{color:#aeabac;background:#f0f1f4!important;border:1px solid #aeabac!important}:host.ai-secondary.disabled button:before{display:none}:host.marketing button{color:#fff;background:#f93576;border-color:#f93576}:host.marketing button:hover,:host.marketing.active button,:host.marketing button:active{background:#c9245b;border-color:#c9245b}:host.marketing.disabled button{color:#aeabac;background:#f0f1f4;border-color:#f0f1f4}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
127
129
|
}], null, { theme: [{
|
|
128
130
|
type: Input
|
|
129
131
|
}, {
|
|
@@ -162,6 +164,8 @@ class DrButtonComponent {
|
|
|
162
164
|
}, {
|
|
163
165
|
type: HostBinding,
|
|
164
166
|
args: ['class.active']
|
|
167
|
+
}], type: [{
|
|
168
|
+
type: Input
|
|
165
169
|
}] }); })();
|
|
166
170
|
|
|
167
171
|
class DrButtonLinkDirective {
|
|
@@ -376,7 +380,7 @@ var TooltipTheme;
|
|
|
376
380
|
TooltipTheme["DARK"] = "dark";
|
|
377
381
|
})(TooltipTheme || (TooltipTheme = {}));
|
|
378
382
|
|
|
379
|
-
const _c0$
|
|
383
|
+
const _c0$14 = ["*"];
|
|
380
384
|
class TooltipDefaultComponent {
|
|
381
385
|
constructor() {
|
|
382
386
|
this.theme = TooltipTheme.LIGHT;
|
|
@@ -384,7 +388,7 @@ class TooltipDefaultComponent {
|
|
|
384
388
|
/** @nocollapse */ static { this.ɵfac = function TooltipDefaultComponent_Factory(t) { return new (t || TooltipDefaultComponent)(); }; }
|
|
385
389
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TooltipDefaultComponent, selectors: [["dr-tooltip-default"]], hostVars: 2, hostBindings: function TooltipDefaultComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
386
390
|
i0.ɵɵclassMap(ctx.theme);
|
|
387
|
-
} }, inputs: { content: "content", theme: "theme" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$
|
|
391
|
+
} }, inputs: { content: "content", theme: "theme" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$14, decls: 2, vars: 1, consts: [[1, "content", 3, "innerHTML"]], template: function TooltipDefaultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
388
392
|
i0.ɵɵprojectionDef();
|
|
389
393
|
i0.ɵɵelement(0, "span", 0);
|
|
390
394
|
i0.ɵɵprojection(1);
|
|
@@ -404,7 +408,7 @@ class TooltipDefaultComponent {
|
|
|
404
408
|
args: ['class']
|
|
405
409
|
}] }); })();
|
|
406
410
|
|
|
407
|
-
const _c0$
|
|
411
|
+
const _c0$13 = ["container"];
|
|
408
412
|
class TooltipCustomComponent {
|
|
409
413
|
constructor() {
|
|
410
414
|
this.injector = inject(Injector);
|
|
@@ -435,7 +439,7 @@ class TooltipCustomComponent {
|
|
|
435
439
|
}
|
|
436
440
|
/** @nocollapse */ static { this.ɵfac = function TooltipCustomComponent_Factory(t) { return new (t || TooltipCustomComponent)(); }; }
|
|
437
441
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TooltipCustomComponent, selectors: [["dr-tooltip-custom"]], viewQuery: function TooltipCustomComponent_Query(rf, ctx) { if (rf & 1) {
|
|
438
|
-
i0.ɵɵviewQuery(_c0$
|
|
442
|
+
i0.ɵɵviewQuery(_c0$13, 7, ViewContainerRef);
|
|
439
443
|
} if (rf & 2) {
|
|
440
444
|
let _t;
|
|
441
445
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
@@ -496,7 +500,7 @@ function TooltipComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
496
500
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
497
501
|
i0.ɵɵproperty("content", ctx_r5.content)("theme", ctx_r5.theme);
|
|
498
502
|
} }
|
|
499
|
-
const _c0$
|
|
503
|
+
const _c0$12 = function (a0) { return { "dr-tooltip": a0 }; };
|
|
500
504
|
class TooltipComponent {
|
|
501
505
|
constructor() {
|
|
502
506
|
this.isContentTemplate = false;
|
|
@@ -529,7 +533,7 @@ class TooltipComponent {
|
|
|
529
533
|
} if (rf & 2) {
|
|
530
534
|
const _r2 = i0.ɵɵreference(4);
|
|
531
535
|
i0.ɵɵclassMap(ctx.position + " " + ctx.class + " " + ctx.theme);
|
|
532
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
536
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$12, !(ctx.options == null ? null : ctx.options.withoutContainerStyles)));
|
|
533
537
|
i0.ɵɵadvance(1);
|
|
534
538
|
i0.ɵɵproperty("ngIf", !(ctx.options == null ? null : ctx.options.withoutArrow));
|
|
535
539
|
i0.ɵɵadvance(1);
|
|
@@ -872,8 +876,8 @@ class DrTooltipModule {
|
|
|
872
876
|
TooltipComponent,
|
|
873
877
|
DrTooltipDirective] }); })();
|
|
874
878
|
|
|
875
|
-
const _c0$
|
|
876
|
-
const _c1$
|
|
879
|
+
const _c0$11 = ["checkboxContent"];
|
|
880
|
+
const _c1$r = ["*"];
|
|
877
881
|
class CheckboxComponent {
|
|
878
882
|
get indeterminate() {
|
|
879
883
|
return this._indeterminate;
|
|
@@ -923,7 +927,7 @@ class CheckboxComponent {
|
|
|
923
927
|
}
|
|
924
928
|
/** @nocollapse */ static { this.ɵfac = function CheckboxComponent_Factory(t) { return new (t || CheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
925
929
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CheckboxComponent, selectors: [["dr-checkbox"]], viewQuery: function CheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
926
|
-
i0.ɵɵviewQuery(_c0$
|
|
930
|
+
i0.ɵɵviewQuery(_c0$11, 5);
|
|
927
931
|
} if (rf & 2) {
|
|
928
932
|
let _t;
|
|
929
933
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxContent = _t.first);
|
|
@@ -931,7 +935,7 @@ class CheckboxComponent {
|
|
|
931
935
|
i0.ɵɵattribute("id", ctx.hostId);
|
|
932
936
|
i0.ɵɵclassMap(ctx.theme);
|
|
933
937
|
i0.ɵɵclassProp("disabled", ctx.disabled)("text-nowrap", ctx.textNowrap);
|
|
934
|
-
} }, inputs: { id: "id", checkedStatus: "checkedStatus", disabled: "disabled", icon: "icon", theme: "theme", indeterminate: "indeterminate", textNowrap: "textNowrap" }, outputs: { checkedChange: "checkedChange" }, standalone: true, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$
|
|
938
|
+
} }, inputs: { id: "id", checkedStatus: "checkedStatus", disabled: "disabled", icon: "icon", theme: "theme", indeterminate: "indeterminate", textNowrap: "textNowrap" }, outputs: { checkedChange: "checkedChange" }, standalone: true, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$r, decls: 5, vars: 9, consts: [["type", "checkbox", 3, "checked", "disabled", "change", "click"], [3, "drTooltip"], ["checkboxContent", ""]], template: function CheckboxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
935
939
|
i0.ɵɵprojectionDef();
|
|
936
940
|
i0.ɵɵelementStart(0, "label")(1, "input", 0);
|
|
937
941
|
i0.ɵɵlistener("change", function CheckboxComponent_Template_input_change_1_listener($event) { return ctx.setValue($event); })("click", function CheckboxComponent_Template_input_click_1_listener($event) { return $event.stopPropagation(); });
|
|
@@ -1018,8 +1022,8 @@ class DrModelDebounceChangeDirective {
|
|
|
1018
1022
|
type: Output
|
|
1019
1023
|
}] }); })();
|
|
1020
1024
|
|
|
1021
|
-
const _c0
|
|
1022
|
-
const _c1$
|
|
1025
|
+
const _c0$10 = ["prefix"];
|
|
1026
|
+
const _c1$q = ["suffix"];
|
|
1023
1027
|
const _c2$d = ["inputRef"];
|
|
1024
1028
|
function DrInputComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1025
1029
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -1244,8 +1248,8 @@ class DrInputComponent {
|
|
|
1244
1248
|
}
|
|
1245
1249
|
/** @nocollapse */ static { this.ɵfac = function DrInputComponent_Factory(t) { return new (t || DrInputComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
1246
1250
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrInputComponent, selectors: [["dr-input"]], contentQueries: function DrInputComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1247
|
-
i0.ɵɵcontentQuery(dirIndex, _c0
|
|
1248
|
-
i0.ɵɵcontentQuery(dirIndex, _c1$
|
|
1251
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$10, 5);
|
|
1252
|
+
i0.ɵɵcontentQuery(dirIndex, _c1$q, 5);
|
|
1249
1253
|
} if (rf & 2) {
|
|
1250
1254
|
let _t;
|
|
1251
1255
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prefixIcon = _t.first);
|
|
@@ -1491,8 +1495,8 @@ class DrSpinnerModule {
|
|
|
1491
1495
|
}], null, null); })();
|
|
1492
1496
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrSpinnerModule, { declarations: [DrSpinnerComponent, DrSpinnerDirective], imports: [CommonModule], exports: [DrSpinnerComponent, DrSpinnerDirective] }); })();
|
|
1493
1497
|
|
|
1494
|
-
const _c0
|
|
1495
|
-
const _c1$
|
|
1498
|
+
const _c0$$ = ["labelTemplate"];
|
|
1499
|
+
const _c1$p = ["multiLabelTemplate"];
|
|
1496
1500
|
const _c2$c = ["optionTemplate"];
|
|
1497
1501
|
const _c3$7 = ["optionHeaderTemplate"];
|
|
1498
1502
|
const _c4$4 = ["optionFooterTemplate"];
|
|
@@ -1753,8 +1757,8 @@ class DrSelectComponent {
|
|
|
1753
1757
|
}
|
|
1754
1758
|
/** @nocollapse */ static { this.ɵfac = function DrSelectComponent_Factory(t) { return new (t || DrSelectComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); }; }
|
|
1755
1759
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectComponent, selectors: [["dr-select"]], contentQueries: function DrSelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1756
|
-
i0.ɵɵcontentQuery(dirIndex, _c0
|
|
1757
|
-
i0.ɵɵcontentQuery(dirIndex, _c1$
|
|
1760
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$$, 5);
|
|
1761
|
+
i0.ɵɵcontentQuery(dirIndex, _c1$p, 5);
|
|
1758
1762
|
i0.ɵɵcontentQuery(dirIndex, _c2$c, 5);
|
|
1759
1763
|
i0.ɵɵcontentQuery(dirIndex, _c3$7, 5);
|
|
1760
1764
|
i0.ɵɵcontentQuery(dirIndex, _c4$4, 5);
|
|
@@ -1949,7 +1953,7 @@ class DrSelectComponent {
|
|
|
1949
1953
|
args: ['class.textView']
|
|
1950
1954
|
}] }); })();
|
|
1951
1955
|
|
|
1952
|
-
const _c0$
|
|
1956
|
+
const _c0$_ = ["dynamicInputRef"];
|
|
1953
1957
|
function DrSelectAddItemComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
1954
1958
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
1955
1959
|
i0.ɵɵelementStart(0, "div", 3);
|
|
@@ -2057,7 +2061,7 @@ class DrSelectAddItemComponent {
|
|
|
2057
2061
|
}
|
|
2058
2062
|
/** @nocollapse */ static { this.ɵfac = function DrSelectAddItemComponent_Factory(t) { return new (t || DrSelectAddItemComponent)(i0.ɵɵdirectiveInject(DrSelectComponent)); }; }
|
|
2059
2063
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectAddItemComponent, selectors: [["dr-select-add-item"]], viewQuery: function DrSelectAddItemComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2060
|
-
i0.ɵɵviewQuery(_c0$
|
|
2064
|
+
i0.ɵɵviewQuery(_c0$_, 5);
|
|
2061
2065
|
} if (rf & 2) {
|
|
2062
2066
|
let _t;
|
|
2063
2067
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputRef = _t.first);
|
|
@@ -2167,7 +2171,7 @@ function DrToggleComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
2167
2171
|
i0.ɵɵadvance(1);
|
|
2168
2172
|
i0.ɵɵtextInterpolate(ctx_r1.toggleTitle);
|
|
2169
2173
|
} }
|
|
2170
|
-
const _c0$
|
|
2174
|
+
const _c0$Z = ["*"];
|
|
2171
2175
|
class DrToggleComponent {
|
|
2172
2176
|
set disabled(value) {
|
|
2173
2177
|
this.setDisabledState(value);
|
|
@@ -2217,7 +2221,7 @@ class DrToggleComponent {
|
|
|
2217
2221
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleComponent, selectors: [["dr-toggle"]], hostVars: 3, hostBindings: function DrToggleComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
2218
2222
|
i0.ɵɵattribute("id", ctx.hostId);
|
|
2219
2223
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
2220
|
-
} }, inputs: { id: "id", toggleTitle: "toggleTitle", toggleTitleRight: "toggleTitleRight", successType: "successType", checkedStatus: "checkedStatus", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, standalone: true, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$
|
|
2224
|
+
} }, inputs: { id: "id", toggleTitle: "toggleTitle", toggleTitleRight: "toggleTitleRight", successType: "successType", checkedStatus: "checkedStatus", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, standalone: true, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$Z, decls: 7, vars: 10, consts: [["class", "toggle-title mr-3", 3, "click", 4, "ngIf"], [1, "toggle-container"], ["type", "checkbox", 3, "checked", "disabled", "click"], [1, "toggle-body"], ["class", "toggle-title ml-3", 3, "click", 4, "ngIf"], [1, "toggle-title", "mr-3", 3, "click"], [1, "toggle-title", "ml-3", 3, "click"]], template: function DrToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2221
2225
|
i0.ɵɵprojectionDef();
|
|
2222
2226
|
i0.ɵɵtemplate(0, DrToggleComponent_span_0_Template, 2, 1, "span", 0);
|
|
2223
2227
|
i0.ɵɵelementStart(1, "label", 1)(2, "input", 2);
|
|
@@ -2411,7 +2415,7 @@ class DrToggleButtonComponent {
|
|
|
2411
2415
|
type: Input
|
|
2412
2416
|
}] }); })();
|
|
2413
2417
|
|
|
2414
|
-
const _c0$
|
|
2418
|
+
const _c0$Y = ["*"];
|
|
2415
2419
|
class RadioButtonComponent {
|
|
2416
2420
|
get disabled() {
|
|
2417
2421
|
return this._disabled;
|
|
@@ -2465,7 +2469,7 @@ class RadioButtonComponent {
|
|
|
2465
2469
|
useExisting: RadioButtonComponent,
|
|
2466
2470
|
multi: true,
|
|
2467
2471
|
},
|
|
2468
|
-
]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$
|
|
2472
|
+
]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$Y, decls: 4, vars: 5, consts: [["type", "radio", 3, "name", "value", "ngModel", "disabled", "change", "ngModelChange", "click"]], template: function RadioButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2469
2473
|
i0.ɵɵprojectionDef();
|
|
2470
2474
|
i0.ɵɵelementStart(0, "label")(1, "input", 0);
|
|
2471
2475
|
i0.ɵɵlistener("change", function RadioButtonComponent_Template_input_change_1_listener() { return ctx.valueChanged(ctx.value); })("ngModelChange", function RadioButtonComponent_Template_input_ngModelChange_1_listener($event) { return ctx.modelValue = $event; })("click", function RadioButtonComponent_Template_input_click_1_listener($event) { return ctx.toggleChange($event); });
|
|
@@ -2504,8 +2508,8 @@ class RadioButtonComponent {
|
|
|
2504
2508
|
type: Input
|
|
2505
2509
|
}] }); })();
|
|
2506
2510
|
|
|
2507
|
-
const _c0$
|
|
2508
|
-
const _c1$
|
|
2511
|
+
const _c0$X = [[["dr-radio-button"]]];
|
|
2512
|
+
const _c1$o = ["dr-radio-button"];
|
|
2509
2513
|
class RadioGroupComponent {
|
|
2510
2514
|
get value() {
|
|
2511
2515
|
return this._value;
|
|
@@ -2644,8 +2648,8 @@ class RadioGroupComponent {
|
|
|
2644
2648
|
useExisting: forwardRef((() => RadioGroupComponent)),
|
|
2645
2649
|
multi: true,
|
|
2646
2650
|
},
|
|
2647
|
-
]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$
|
|
2648
|
-
i0.ɵɵprojectionDef(_c0$
|
|
2651
|
+
]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$o, decls: 1, vars: 0, template: function RadioGroupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2652
|
+
i0.ɵɵprojectionDef(_c0$X);
|
|
2649
2653
|
i0.ɵɵprojection(0);
|
|
2650
2654
|
} }, encapsulation: 2, changeDetection: 0 }); }
|
|
2651
2655
|
}
|
|
@@ -3341,8 +3345,8 @@ class DrShowTimeframePipe {
|
|
|
3341
3345
|
}]
|
|
3342
3346
|
}], null, null); })();
|
|
3343
3347
|
|
|
3344
|
-
const _c0$
|
|
3345
|
-
const _c1$
|
|
3348
|
+
const _c0$W = ["class", "component"];
|
|
3349
|
+
const _c1$n = function (a0) { return { "dr-datepicker-preset-date__tags__tag--selected": a0 }; };
|
|
3346
3350
|
function DrDatePickerCustomHeaderComponent_div_0_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
3347
3351
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
3348
3352
|
i0.ɵɵelementStart(0, "div", 14);
|
|
@@ -3352,7 +3356,7 @@ function DrDatePickerCustomHeaderComponent_div_0_div_1_div_2_Template(rf, ctx) {
|
|
|
3352
3356
|
} if (rf & 2) {
|
|
3353
3357
|
const tag_r5 = ctx.$implicit;
|
|
3354
3358
|
const ctx_r4 = i0.ɵɵnextContext(3);
|
|
3355
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$
|
|
3359
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$n, tag_r5.key === ctx_r4.selectedPresetTag))("drTooltip", ctx_r4.selectedPresetTag === tag_r5.key ? "Unselect preset" : "")("drTooltipPosition", "top");
|
|
3356
3360
|
i0.ɵɵadvance(1);
|
|
3357
3361
|
i0.ɵɵtextInterpolate1(" ", tag_r5.label, " ");
|
|
3358
3362
|
} }
|
|
@@ -3637,7 +3641,7 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
3637
3641
|
return selector;
|
|
3638
3642
|
}
|
|
3639
3643
|
/** @nocollapse */ static { this.ɵfac = function DrDatePickerCustomHeaderComponent_Factory(t) { return new (t || DrDatePickerCustomHeaderComponent)(i0.ɵɵdirectiveInject(i5.MatCalendar), i0.ɵɵdirectiveInject(i1$2.DateAdapter), i0.ɵɵdirectiveInject(MAT_DATE_FORMATS), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ApplicationRef), i0.ɵɵdirectiveInject(DrDatePickerService)); }; }
|
|
3640
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDatePickerCustomHeaderComponent, selectors: [["dr-date-picker_custom-header", 8, "component"]], standalone: true, features: [i0.ɵɵStandaloneFeature], attrs: _c0$
|
|
3644
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDatePickerCustomHeaderComponent, selectors: [["dr-date-picker_custom-header", 8, "component"]], standalone: true, features: [i0.ɵɵStandaloneFeature], attrs: _c0$W, decls: 12, vars: 4, consts: [["class", "dr-datepicker__timeframe-select__wrapper", 4, "ngIf"], [1, "dr-date-paging"], [1, "dr-date-paging", "flip-page-button", 3, "click"], [1, "dr-icon-arrow-left", "presentation_buttons-navigate_input"], [1, "example-header-label"], [3, "click"], [1, "dr-icon-arrow-right", "presentation_buttons-navigate_input"], ["class", "dr-quarterly-datepicker", 4, "ngIf"], [1, "dr-datepicker__timeframe-select__wrapper"], ["class", "dr-datepicker-preset-date", 4, "ngIf"], ["class", "dr-datepicker__timeframe-select", "bindLabel", "title", "bindValue", "value", 3, "ngModel", "items", "ngModelChange", 4, "ngIf"], [1, "dr-datepicker-preset-date"], [1, "dr-datepicker-preset-date__tags", 3, "ngClass"], ["id", "preset_tag", "class", "dr-datepicker-preset-date__tags__tag", 3, "ngClass", "drTooltip", "drTooltipPosition", "click", 4, "ngFor", "ngForOf"], ["id", "preset_tag", 1, "dr-datepicker-preset-date__tags__tag", 3, "ngClass", "drTooltip", "drTooltipPosition", "click"], ["bindLabel", "title", "bindValue", "value", 1, "dr-datepicker__timeframe-select", 3, "ngModel", "items", "ngModelChange"], [1, "dr-quarterly-datepicker"], ["quarterlyDatePicker", ""], ["class", "quarter-selector quarter-selector--select-current-quarter", 3, "class", "quarter-selector--disabled", "click", 4, "ngFor", "ngForOf"], [1, "quarter-selector", "quarter-selector--select-current-quarter", 3, "click"]], template: function DrDatePickerCustomHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3641
3645
|
i0.ɵɵtemplate(0, DrDatePickerCustomHeaderComponent_div_0_Template, 3, 2, "div", 0);
|
|
3642
3646
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
|
|
3643
3647
|
i0.ɵɵlistener("click", function DrDatePickerCustomHeaderComponent_Template_div_click_2_listener() { return ctx.pagingClicked(false); });
|
|
@@ -3751,7 +3755,7 @@ class DrDatePickerFormatDirective {
|
|
|
3751
3755
|
args: ['drDatePickerFormat']
|
|
3752
3756
|
}] }); })();
|
|
3753
3757
|
|
|
3754
|
-
const _c0$
|
|
3758
|
+
const _c0$V = ["datePicker"];
|
|
3755
3759
|
function DrDatePickerComponent_i_0_Template(rf, ctx) { if (rf & 1) {
|
|
3756
3760
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
3757
3761
|
i0.ɵɵelementStart(0, "i", 2);
|
|
@@ -4129,7 +4133,7 @@ class DrDatePickerComponent {
|
|
|
4129
4133
|
}
|
|
4130
4134
|
/** @nocollapse */ static { this.ɵfac = function DrDatePickerComponent_Factory(t) { return new (t || DrDatePickerComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$2.DateAdapter), i0.ɵɵdirectiveInject(DrDatePickerService)); }; }
|
|
4131
4135
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDatePickerComponent, selectors: [["dr-date-picker"]], viewQuery: function DrDatePickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
4132
|
-
i0.ɵɵviewQuery(_c0$
|
|
4136
|
+
i0.ɵɵviewQuery(_c0$V, 5);
|
|
4133
4137
|
} if (rf & 2) {
|
|
4134
4138
|
let _t;
|
|
4135
4139
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datePicker = _t.first);
|
|
@@ -4555,7 +4559,7 @@ function DrDatePickerWithTimeframeComponent_dr_button_11_Template(rf, ctx) { if
|
|
|
4555
4559
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
4556
4560
|
i0.ɵɵproperty("disabled", ctx_r4.isNextDateDisabled);
|
|
4557
4561
|
} }
|
|
4558
|
-
const _c0$
|
|
4562
|
+
const _c0$U = function (a0) { return { formattedValue: a0 }; };
|
|
4559
4563
|
class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
4560
4564
|
set dateFormatConfig(value) {
|
|
4561
4565
|
if (value) {
|
|
@@ -4754,7 +4758,7 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
4754
4758
|
i0.ɵɵadvance(1);
|
|
4755
4759
|
i0.ɵɵproperty("drTooltip", ctx.datepickerTooltip)("drTooltipPosition", ctx.datepickerTooltipPosition)("drTooltipMousleaveTimeout", ctx.datepickerTooltipTimeout);
|
|
4756
4760
|
i0.ɵɵadvance(3);
|
|
4757
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c0$
|
|
4761
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c0$U, i0.ɵɵpipeBind1(5, 14, ctx.displayedFormattedValue$)));
|
|
4758
4762
|
i0.ɵɵadvance(4);
|
|
4759
4763
|
i0.ɵɵproperty("ngModel", i0.ɵɵpipeBind1(10, 16, ctx.displayValue$))("matDatepicker", _r5)("readonly", ctx.readonly)("min", ctx._min)("max", ctx._max);
|
|
4760
4764
|
i0.ɵɵadvance(3);
|
|
@@ -4804,8 +4808,8 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
4804
4808
|
type: Output
|
|
4805
4809
|
}] }); })();
|
|
4806
4810
|
|
|
4807
|
-
const _c0$
|
|
4808
|
-
const _c1$
|
|
4811
|
+
const _c0$T = ["class", "component"];
|
|
4812
|
+
const _c1$m = function (a0) { return { "dr-datepicker-preset-date__tags__tag--selected": a0 }; };
|
|
4809
4813
|
function DrFiscalMonthCalendarHeaderComponent_div_0_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
4810
4814
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
4811
4815
|
i0.ɵɵelementStart(0, "div", 14);
|
|
@@ -4815,7 +4819,7 @@ function DrFiscalMonthCalendarHeaderComponent_div_0_div_1_div_2_Template(rf, ctx
|
|
|
4815
4819
|
} if (rf & 2) {
|
|
4816
4820
|
const tag_r5 = ctx.$implicit;
|
|
4817
4821
|
const ctx_r4 = i0.ɵɵnextContext(3);
|
|
4818
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$
|
|
4822
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$m, tag_r5.key === ctx_r4.selectedPresetTag))("drTooltip", ctx_r4.selectedPresetTag === tag_r5.key ? "Unselect preset" : "")("drTooltipPosition", "top");
|
|
4819
4823
|
i0.ɵɵadvance(1);
|
|
4820
4824
|
i0.ɵɵtextInterpolate1(" ", tag_r5.label, " ");
|
|
4821
4825
|
} }
|
|
@@ -4907,7 +4911,7 @@ class DrFiscalMonthCalendarHeaderComponent extends DrDatePickerCustomHeaderCompo
|
|
|
4907
4911
|
});
|
|
4908
4912
|
}
|
|
4909
4913
|
/** @nocollapse */ static { this.ɵfac = /** @pureOrBreakMyCode */ function () { let ɵDrFiscalMonthCalendarHeaderComponent_BaseFactory; return function DrFiscalMonthCalendarHeaderComponent_Factory(t) { return (ɵDrFiscalMonthCalendarHeaderComponent_BaseFactory || (ɵDrFiscalMonthCalendarHeaderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DrFiscalMonthCalendarHeaderComponent)))(t || DrFiscalMonthCalendarHeaderComponent); }; }(); }
|
|
4910
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrFiscalMonthCalendarHeaderComponent, selectors: [["dr-fiscal-month-calendar-header", 8, "component"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c0$
|
|
4914
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrFiscalMonthCalendarHeaderComponent, selectors: [["dr-fiscal-month-calendar-header", 8, "component"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c0$T, decls: 12, vars: 4, consts: [["class", "dr-datepicker__timeframe-select__wrapper", 4, "ngIf"], [1, "dr-date-paging"], [1, "dr-date-paging", "flip-page-button", 3, "click"], [1, "dr-icon-arrow-left", "presentation_buttons-navigate_input"], [1, "example-header-label"], [3, "click"], [1, "dr-icon-arrow-right", "presentation_buttons-navigate_input"], ["class", "dr-quarterly-datepicker", 4, "ngIf"], [1, "dr-datepicker__timeframe-select__wrapper"], ["class", "dr-datepicker-preset-date", 4, "ngIf"], ["class", "dr-datepicker__timeframe-select", "bindLabel", "title", "bindValue", "value", 3, "ngModel", "items", "ngModelChange", 4, "ngIf"], [1, "dr-datepicker-preset-date"], [1, "dr-datepicker-preset-date__tags", 3, "ngClass"], ["id", "preset_tag", "class", "dr-datepicker-preset-date__tags__tag", 3, "ngClass", "drTooltip", "drTooltipPosition", "click", 4, "ngFor", "ngForOf"], ["id", "preset_tag", 1, "dr-datepicker-preset-date__tags__tag", 3, "ngClass", "drTooltip", "drTooltipPosition", "click"], ["bindLabel", "title", "bindValue", "value", 1, "dr-datepicker__timeframe-select", 3, "ngModel", "items", "ngModelChange"], [1, "dr-quarterly-datepicker"], ["quarterlyDatePicker", ""], ["class", "quarter-selector quarter-selector--select-current-quarter", 3, "class", "quarter-selector--disabled", "click", 4, "ngFor", "ngForOf"], [1, "quarter-selector", "quarter-selector--select-current-quarter", 3, "click"]], template: function DrFiscalMonthCalendarHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4911
4915
|
i0.ɵɵtemplate(0, DrFiscalMonthCalendarHeaderComponent_div_0_Template, 3, 2, "div", 0);
|
|
4912
4916
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
|
|
4913
4917
|
i0.ɵɵlistener("click", function DrFiscalMonthCalendarHeaderComponent_Template_div_click_2_listener() { return ctx.pagingClicked(false); });
|
|
@@ -7359,8 +7363,8 @@ class DrTagsAndScenarioConstructorComponent {
|
|
|
7359
7363
|
type: Output
|
|
7360
7364
|
}] }); })();
|
|
7361
7365
|
|
|
7362
|
-
const _c0$
|
|
7363
|
-
const _c1$
|
|
7366
|
+
const _c0$S = ["stepTextLabel"];
|
|
7367
|
+
const _c1$l = ["stepper"];
|
|
7364
7368
|
function StepperComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
7365
7369
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
7366
7370
|
i0.ɵɵelementStart(0, "div", 7);
|
|
@@ -7585,12 +7589,12 @@ class StepperComponent {
|
|
|
7585
7589
|
}
|
|
7586
7590
|
/** @nocollapse */ static { this.ɵfac = function StepperComponent_Factory(t) { return new (t || StepperComponent)(); }; }
|
|
7587
7591
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: StepperComponent, selectors: [["dr-stepper"]], contentQueries: function StepperComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
7588
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
7592
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$S, 5);
|
|
7589
7593
|
} if (rf & 2) {
|
|
7590
7594
|
let _t;
|
|
7591
7595
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepTextLabelTemplate = _t.first);
|
|
7592
7596
|
} }, viewQuery: function StepperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7593
|
-
i0.ɵɵviewQuery(_c1$
|
|
7597
|
+
i0.ɵɵviewQuery(_c1$l, 5, ElementRef);
|
|
7594
7598
|
} if (rf & 2) {
|
|
7595
7599
|
let _t;
|
|
7596
7600
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepper = _t.first);
|
|
@@ -7760,7 +7764,7 @@ function DrChatFormComponent_dr_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
7760
7764
|
i0.ɵɵtext(1, "Stop generating");
|
|
7761
7765
|
i0.ɵɵelementEnd();
|
|
7762
7766
|
} }
|
|
7763
|
-
const _c0$
|
|
7767
|
+
const _c0$R = function (a0, a1) { return { "message-row__input--focused": a0, "message-row__input--filled": a1 }; };
|
|
7764
7768
|
class DrChatFormComponent {
|
|
7765
7769
|
constructor(cdr, domSanitizer) {
|
|
7766
7770
|
this.cdr = cdr;
|
|
@@ -7916,7 +7920,7 @@ class DrChatFormComponent {
|
|
|
7916
7920
|
const _r1 = i0.ɵɵreference(4);
|
|
7917
7921
|
i0.ɵɵproperty("ngIf", ctx.droppedFiles == null ? null : ctx.droppedFiles.length);
|
|
7918
7922
|
i0.ɵɵadvance(2);
|
|
7919
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(11, _c0$
|
|
7923
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(11, _c0$R, ctx.inputFocus, !!(ctx.message == null ? null : ctx.message.length)));
|
|
7920
7924
|
i0.ɵɵadvance(1);
|
|
7921
7925
|
i0.ɵɵstyleMap(ctx.getTextAreaHeight(_r1));
|
|
7922
7926
|
i0.ɵɵpropertyInterpolate("placeholder", ctx.fileOver ? ctx.dropFilePlaceholder : ctx.messagePlaceholder);
|
|
@@ -8031,7 +8035,7 @@ function DrAvatarComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
8031
8035
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
8032
8036
|
i0.ɵɵstyleProp("width", ctx_r0.drAvatarSize || null)("height", ctx_r0.drAvatarSize || null);
|
|
8033
8037
|
} }
|
|
8034
|
-
const _c0$
|
|
8038
|
+
const _c0$Q = function (a0, a1) { return { "users-section__default": a0, "users-section__user--clickable": a1 }; };
|
|
8035
8039
|
function DrAvatarComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
8036
8040
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
8037
8041
|
i0.ɵɵelementStart(0, "div", 5);
|
|
@@ -8045,7 +8049,7 @@ function DrAvatarComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
8045
8049
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
8046
8050
|
i0.ɵɵclassMap(user_r5.status);
|
|
8047
8051
|
i0.ɵɵstyleProp("width", ctx_r1.drAvatarSize || null)("height", ctx_r1.drAvatarSize || null)("background-color", ctx_r1.getAvatarColor(user_r5));
|
|
8048
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(18, _c0$
|
|
8052
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(18, _c0$Q, ctx_r1.showUnassigned && !user_r5.email, ctx_r1.drAvatarIsClickable))("drTooltip", i0.ɵɵpipeBind1(1, 13, user_r5))("drTooltipClass", ctx_r1.drAvatarTooltipClass)("drTooltipPosition", ctx_r1.drAvatarTooltipPosition);
|
|
8049
8053
|
i0.ɵɵadvance(2);
|
|
8050
8054
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 15, user_r5, "initials"), "\n");
|
|
8051
8055
|
} }
|
|
@@ -8321,7 +8325,7 @@ class DrChatMessageFileComponent {
|
|
|
8321
8325
|
type: Input
|
|
8322
8326
|
}] }); })();
|
|
8323
8327
|
|
|
8324
|
-
const _c0$
|
|
8328
|
+
const _c0$P = ["drChatMessageActions"];
|
|
8325
8329
|
function DrChatMessageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
8326
8330
|
i0.ɵɵelementContainerStart(0);
|
|
8327
8331
|
i0.ɵɵelement(1, "div", 8);
|
|
@@ -8423,7 +8427,7 @@ class DrChatMessageComponent {
|
|
|
8423
8427
|
}
|
|
8424
8428
|
/** @nocollapse */ static { this.ɵfac = function DrChatMessageComponent_Factory(t) { return new (t || DrChatMessageComponent)(i0.ɵɵdirectiveInject(DrChatCustomMessageService)); }; }
|
|
8425
8429
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatMessageComponent, selectors: [["dr-chat-message"]], contentQueries: function DrChatMessageComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
8426
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
8430
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$P, 5);
|
|
8427
8431
|
} if (rf & 2) {
|
|
8428
8432
|
let _t;
|
|
8429
8433
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.drChatMessageActions = _t.first);
|
|
@@ -8494,7 +8498,7 @@ class DrChatMessageComponent {
|
|
|
8494
8498
|
args: ['drChatMessageActions']
|
|
8495
8499
|
}] }); })();
|
|
8496
8500
|
|
|
8497
|
-
const _c0$
|
|
8501
|
+
const _c0$O = ["suggestionsContainer"];
|
|
8498
8502
|
function DrChatSuggestionsComponent_ng_container_2_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
8499
8503
|
i0.ɵɵelementContainer(0);
|
|
8500
8504
|
} }
|
|
@@ -8533,14 +8537,14 @@ function DrChatSuggestionsComponent_ng_template_3_div_1_Template(rf, ctx) { if (
|
|
|
8533
8537
|
i0.ɵɵadvance(1);
|
|
8534
8538
|
i0.ɵɵtextInterpolate1(" ", item_r9, " ");
|
|
8535
8539
|
} }
|
|
8536
|
-
const _c1$
|
|
8540
|
+
const _c1$k = function (a0, a1, a2) { return { "chat-suggestions__items--three-cols": a0, "chat-suggestions__items--two-cols": a1, "chat-suggestions__items--one-col": a2 }; };
|
|
8537
8541
|
function DrChatSuggestionsComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
8538
8542
|
i0.ɵɵelementStart(0, "div", 8);
|
|
8539
8543
|
i0.ɵɵtemplate(1, DrChatSuggestionsComponent_ng_template_3_div_1_Template, 2, 1, "div", 9);
|
|
8540
8544
|
i0.ɵɵelementEnd();
|
|
8541
8545
|
} if (rf & 2) {
|
|
8542
8546
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
8543
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(2, _c1$
|
|
8547
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(2, _c1$k, ctx_r3.colsCount === 3, ctx_r3.colsCount === 2, ctx_r3.colsCount === 1));
|
|
8544
8548
|
i0.ɵɵadvance(1);
|
|
8545
8549
|
i0.ɵɵproperty("ngForOf", ctx_r3.visibleValues);
|
|
8546
8550
|
} }
|
|
@@ -8639,7 +8643,7 @@ class DrChatSuggestionsComponent {
|
|
|
8639
8643
|
}
|
|
8640
8644
|
/** @nocollapse */ static { this.ɵfac = function DrChatSuggestionsComponent_Factory(t) { return new (t || DrChatSuggestionsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
8641
8645
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatSuggestionsComponent, selectors: [["dr-chat-suggestions"]], viewQuery: function DrChatSuggestionsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
8642
|
-
i0.ɵɵviewQuery(_c0$
|
|
8646
|
+
i0.ɵɵviewQuery(_c0$O, 5);
|
|
8643
8647
|
} if (rf & 2) {
|
|
8644
8648
|
let _t;
|
|
8645
8649
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suggestionContainer = _t.first);
|
|
@@ -8673,8 +8677,8 @@ class DrChatSuggestionsComponent {
|
|
|
8673
8677
|
args: ['suggestionsContainer', { static: false }]
|
|
8674
8678
|
}] }); })();
|
|
8675
8679
|
|
|
8676
|
-
const _c0$
|
|
8677
|
-
const _c1$
|
|
8680
|
+
const _c0$N = ["drChatHeader"];
|
|
8681
|
+
const _c1$j = ["drChatLoader"];
|
|
8678
8682
|
const _c2$7 = ["drChatContent"];
|
|
8679
8683
|
const _c3$5 = ["messagesContainer"];
|
|
8680
8684
|
function DrChatComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -8810,8 +8814,8 @@ class DrChatComponent {
|
|
|
8810
8814
|
/** @nocollapse */ static { this.ɵfac = function DrChatComponent_Factory(t) { return new (t || DrChatComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
8811
8815
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatComponent, selectors: [["dr-chat"]], contentQueries: function DrChatComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
8812
8816
|
i0.ɵɵcontentQuery(dirIndex, DrChatFormComponent, 5);
|
|
8813
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
8814
|
-
i0.ɵɵcontentQuery(dirIndex, _c1$
|
|
8817
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$N, 5);
|
|
8818
|
+
i0.ɵɵcontentQuery(dirIndex, _c1$j, 5);
|
|
8815
8819
|
i0.ɵɵcontentQuery(dirIndex, _c2$7, 5);
|
|
8816
8820
|
i0.ɵɵcontentQuery(dirIndex, DrChatMessageComponent, 4);
|
|
8817
8821
|
} if (rf & 2) {
|
|
@@ -8899,8 +8903,8 @@ class DrChatComponent {
|
|
|
8899
8903
|
args: [DrChatSuggestionsComponent]
|
|
8900
8904
|
}] }); })();
|
|
8901
8905
|
|
|
8902
|
-
const _c0$
|
|
8903
|
-
const _c1$
|
|
8906
|
+
const _c0$M = ["textAreaElement"];
|
|
8907
|
+
const _c1$i = ["fileInput"];
|
|
8904
8908
|
function DrChatFormDropdownComponent_dr_chat_dropped_files_3_Template(rf, ctx) { if (rf & 1) {
|
|
8905
8909
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
8906
8910
|
i0.ɵɵelementStart(0, "dr-chat-dropped-files", 12);
|
|
@@ -9132,8 +9136,8 @@ class DrChatFormDropdownComponent {
|
|
|
9132
9136
|
}
|
|
9133
9137
|
/** @nocollapse */ static { this.ɵfac = function DrChatFormDropdownComponent_Factory(t) { return new (t || DrChatFormDropdownComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$3.DomSanitizer)); }; }
|
|
9134
9138
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatFormDropdownComponent, selectors: [["dr-chat-form-dropdown"]], viewQuery: function DrChatFormDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9135
|
-
i0.ɵɵviewQuery(_c0$
|
|
9136
|
-
i0.ɵɵviewQuery(_c1$
|
|
9139
|
+
i0.ɵɵviewQuery(_c0$M, 5);
|
|
9140
|
+
i0.ɵɵviewQuery(_c1$i, 5);
|
|
9137
9141
|
} if (rf & 2) {
|
|
9138
9142
|
let _t;
|
|
9139
9143
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.textAreaElementRef = _t.first);
|
|
@@ -9281,14 +9285,14 @@ class DrChatCustomMessageDirective {
|
|
|
9281
9285
|
type: Input
|
|
9282
9286
|
}] }); })();
|
|
9283
9287
|
|
|
9284
|
-
const _c0$
|
|
9288
|
+
const _c0$L = ["*"];
|
|
9285
9289
|
class DrChatAlertComponent {
|
|
9286
9290
|
constructor() {
|
|
9287
9291
|
this.iconClass = 'dr-icon-info';
|
|
9288
9292
|
this.close = new EventEmitter();
|
|
9289
9293
|
}
|
|
9290
9294
|
/** @nocollapse */ static { this.ɵfac = function DrChatAlertComponent_Factory(t) { return new (t || DrChatAlertComponent)(); }; }
|
|
9291
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatAlertComponent, selectors: [["dr-chat-alert"]], inputs: { iconClass: "iconClass" }, outputs: { close: "close" }, ngContentSelectors: _c0$
|
|
9295
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatAlertComponent, selectors: [["dr-chat-alert"]], inputs: { iconClass: "iconClass" }, outputs: { close: "close" }, ngContentSelectors: _c0$L, decls: 3, vars: 2, consts: [["theme", "icon", "icon", "dr-icon-exit", "drTooltip", "Close", 1, "chat-alert-close-btn", 3, "click"]], template: function DrChatAlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9292
9296
|
i0.ɵɵprojectionDef();
|
|
9293
9297
|
i0.ɵɵelement(0, "i");
|
|
9294
9298
|
i0.ɵɵprojection(1);
|
|
@@ -9334,7 +9338,7 @@ function DrBadgeStatusComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
9334
9338
|
i0.ɵɵadvance(1);
|
|
9335
9339
|
i0.ɵɵtextInterpolate(ctx_r1.label);
|
|
9336
9340
|
} }
|
|
9337
|
-
const _c0$
|
|
9341
|
+
const _c0$K = function (a0, a1) { return [a0, a1]; };
|
|
9338
9342
|
class DrBadgeStatusComponent {
|
|
9339
9343
|
constructor() {
|
|
9340
9344
|
this.theme = BadgeStatus.REGULAR;
|
|
@@ -9347,7 +9351,7 @@ class DrBadgeStatusComponent {
|
|
|
9347
9351
|
i0.ɵɵtemplate(2, DrBadgeStatusComponent_span_2_Template, 2, 1, "span", 2);
|
|
9348
9352
|
i0.ɵɵelementEnd();
|
|
9349
9353
|
} if (rf & 2) {
|
|
9350
|
-
i0.ɵɵproperty("drTooltip", ctx.tooltip)("drTooltipClass", ctx.tooltipClass)("ngClass", i0.ɵɵpureFunction2(5, _c0$
|
|
9354
|
+
i0.ɵɵproperty("drTooltip", ctx.tooltip)("drTooltipClass", ctx.tooltipClass)("ngClass", i0.ɵɵpureFunction2(5, _c0$K, "badge-status--" + ctx.theme, !ctx.showBackground ? "badge-status--no-background" : ""));
|
|
9351
9355
|
i0.ɵɵadvance(1);
|
|
9352
9356
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
9353
9357
|
i0.ɵɵadvance(1);
|
|
@@ -9425,7 +9429,7 @@ function DrAlertComponent_i_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
9425
9429
|
i0.ɵɵlistener("click", function DrAlertComponent_i_6_Template_i_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.hidden = true); });
|
|
9426
9430
|
i0.ɵɵelementEnd();
|
|
9427
9431
|
} }
|
|
9428
|
-
const _c0$
|
|
9432
|
+
const _c0$J = ["*"];
|
|
9429
9433
|
const ALERT_THEME_ICONS = {
|
|
9430
9434
|
[DrAlertTheme.SUCCESS]: 'dr-icon-uploaded-success',
|
|
9431
9435
|
[DrAlertTheme.BOLD_ERROR]: 'dr-icon-error',
|
|
@@ -9449,7 +9453,7 @@ class DrAlertComponent {
|
|
|
9449
9453
|
/** @nocollapse */ static { this.ɵfac = function DrAlertComponent_Factory(t) { return new (t || DrAlertComponent)(); }; }
|
|
9450
9454
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAlertComponent, selectors: [["dr-alert"]], hostVars: 2, hostBindings: function DrAlertComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
9451
9455
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
9452
|
-
} }, inputs: { theme: "theme", customIconClass: "customIconClass", title: "title", text: "text", showClose: "showClose" }, ngContentSelectors: _c0$
|
|
9456
|
+
} }, inputs: { theme: "theme", customIconClass: "customIconClass", title: "title", text: "text", showClose: "showClose" }, ngContentSelectors: _c0$J, decls: 7, vars: 4, consts: [[1, "dr-alert__content-wrapper"], [4, "ngIf"], [1, "dr-alert__custom-content"], ["contentRef", ""], ["class", "dr-alert__close-icon dr-icon-exit", 3, "click", 4, "ngIf"], ["class", "dr-alert__title", 4, "ngIf"], ["class", "dr-alert__text", 4, "ngIf"], [1, "dr-alert__title"], [1, "dr-alert__text"], [1, "dr-alert__close-icon", "dr-icon-exit", 3, "click"]], template: function DrAlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9453
9457
|
i0.ɵɵprojectionDef();
|
|
9454
9458
|
i0.ɵɵelement(0, "i");
|
|
9455
9459
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -9501,7 +9505,7 @@ class CodeEditorHintWrapperComponent {
|
|
|
9501
9505
|
}]
|
|
9502
9506
|
}], null, null); })();
|
|
9503
9507
|
|
|
9504
|
-
const _c0$
|
|
9508
|
+
const _c0$I = ["ref"];
|
|
9505
9509
|
class DrCodemirrorComponent {
|
|
9506
9510
|
set options(value) {
|
|
9507
9511
|
this._options = value;
|
|
@@ -9631,7 +9635,7 @@ class DrCodemirrorComponent {
|
|
|
9631
9635
|
}
|
|
9632
9636
|
/** @nocollapse */ static { this.ɵfac = function DrCodemirrorComponent_Factory(t) { return new (t || DrCodemirrorComponent)(i0.ɵɵdirectiveInject(i0.KeyValueDiffers), i0.ɵɵdirectiveInject(i0.NgZone)); }; }
|
|
9633
9637
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCodemirrorComponent, selectors: [["dr-codemirror"]], viewQuery: function DrCodemirrorComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9634
|
-
i0.ɵɵviewQuery(_c0$
|
|
9638
|
+
i0.ɵɵviewQuery(_c0$I, 5);
|
|
9635
9639
|
} if (rf & 2) {
|
|
9636
9640
|
let _t;
|
|
9637
9641
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ref = _t.first);
|
|
@@ -9783,7 +9787,7 @@ class DrErrorComponent {
|
|
|
9783
9787
|
args: ['class.no-icon']
|
|
9784
9788
|
}] }); })();
|
|
9785
9789
|
|
|
9786
|
-
const _c0$
|
|
9790
|
+
const _c0$H = ["codeEditor"];
|
|
9787
9791
|
function DrCodeEditorComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
9788
9792
|
i0.ɵɵelementStart(0, "span", 4);
|
|
9789
9793
|
i0.ɵɵtext(1);
|
|
@@ -10062,7 +10066,7 @@ class DrCodeEditorComponent {
|
|
|
10062
10066
|
}
|
|
10063
10067
|
/** @nocollapse */ static { this.ɵfac = function DrCodeEditorComponent_Factory(t) { return new (t || DrCodeEditorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
10064
10068
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCodeEditorComponent, selectors: [["dr-code-editor"]], viewQuery: function DrCodeEditorComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10065
|
-
i0.ɵɵviewQuery(_c0$
|
|
10069
|
+
i0.ɵɵviewQuery(_c0$H, 5);
|
|
10066
10070
|
} if (rf & 2) {
|
|
10067
10071
|
let _t;
|
|
10068
10072
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.codeEditor = _t.first);
|
|
@@ -10146,7 +10150,7 @@ const getAlignmentDimension = (position) => {
|
|
|
10146
10150
|
return DrPopoverAlignmentDimension.Width;
|
|
10147
10151
|
};
|
|
10148
10152
|
|
|
10149
|
-
const _c0$
|
|
10153
|
+
const _c0$G = ["popoverContainer"];
|
|
10150
10154
|
function DrPopoverComponent_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
10151
10155
|
i0.ɵɵelementContainer(0);
|
|
10152
10156
|
} }
|
|
@@ -10236,7 +10240,7 @@ class DrPopoverComponent {
|
|
|
10236
10240
|
}
|
|
10237
10241
|
/** @nocollapse */ static { this.ɵfac = function DrPopoverComponent_Factory(t) { return new (t || DrPopoverComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(DrPopoverRef)); }; }
|
|
10238
10242
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrPopoverComponent, selectors: [["dr-popover"]], viewQuery: function DrPopoverComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10239
|
-
i0.ɵɵviewQuery(_c0$
|
|
10243
|
+
i0.ɵɵviewQuery(_c0$G, 7, ElementRef);
|
|
10240
10244
|
} if (rf & 2) {
|
|
10241
10245
|
let _t;
|
|
10242
10246
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popoverContainer = _t.first);
|
|
@@ -10560,7 +10564,7 @@ var __decorate$1 = (this && this.__decorate) || function (decorators, target, ke
|
|
|
10560
10564
|
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
10561
10565
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10562
10566
|
};
|
|
10563
|
-
const _c0$
|
|
10567
|
+
const _c0$F = ["menuContainer"];
|
|
10564
10568
|
function DrDropdownComponent_dr_dropdown_item_4_ng_container_1_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
10565
10569
|
i0.ɵɵelement(0, "i", 11);
|
|
10566
10570
|
} if (rf & 2) {
|
|
@@ -10610,12 +10614,12 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_2_Template(rf, ctx)
|
|
|
10610
10614
|
i0.ɵɵadvance(1);
|
|
10611
10615
|
i0.ɵɵproperty("ngIf", ctx_r5.hasChildren(act_r2));
|
|
10612
10616
|
} }
|
|
10613
|
-
const _c1$
|
|
10617
|
+
const _c1$h = function (a0) { return { $implicit: a0 }; };
|
|
10614
10618
|
function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
10615
10619
|
i0.ɵɵelementContainer(0, 17);
|
|
10616
10620
|
} if (rf & 2) {
|
|
10617
10621
|
const act_r2 = i0.ɵɵnextContext().$implicit;
|
|
10618
|
-
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$
|
|
10622
|
+
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$h, act_r2));
|
|
10619
10623
|
} }
|
|
10620
10624
|
function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
|
|
10621
10625
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
@@ -10791,7 +10795,7 @@ class DrDropdownComponent {
|
|
|
10791
10795
|
}
|
|
10792
10796
|
/** @nocollapse */ static { this.ɵfac = function DrDropdownComponent_Factory(t) { return new (t || DrDropdownComponent)(); }; }
|
|
10793
10797
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownComponent, selectors: [["dr-dropdown"]], viewQuery: function DrDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10794
|
-
i0.ɵɵviewQuery(_c0$
|
|
10798
|
+
i0.ɵɵviewQuery(_c0$F, 7);
|
|
10795
10799
|
} if (rf & 2) {
|
|
10796
10800
|
let _t;
|
|
10797
10801
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
|
|
@@ -11030,8 +11034,8 @@ class DrDropdownChildDirective {
|
|
|
11030
11034
|
}]
|
|
11031
11035
|
}], null, null); })();
|
|
11032
11036
|
|
|
11033
|
-
const _c0$
|
|
11034
|
-
const _c1$
|
|
11037
|
+
const _c0$E = [[["", "dropdownItemContent", ""]], [["", "dropdownItemActions", ""]]];
|
|
11038
|
+
const _c1$g = ["[dropdownItemContent]", "[dropdownItemActions]"];
|
|
11035
11039
|
class DrDropdownItemComponent {
|
|
11036
11040
|
constructor() {
|
|
11037
11041
|
this.role = 'option';
|
|
@@ -11039,8 +11043,8 @@ class DrDropdownItemComponent {
|
|
|
11039
11043
|
/** @nocollapse */ static { this.ɵfac = function DrDropdownItemComponent_Factory(t) { return new (t || DrDropdownItemComponent)(); }; }
|
|
11040
11044
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownItemComponent, selectors: [["dr-dropdown-item"]], hostVars: 1, hostBindings: function DrDropdownItemComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
11041
11045
|
i0.ɵɵattribute("role", ctx.role);
|
|
11042
|
-
} }, inputs: { selected: "selected", disabled: "disabled", divider: "divider" }, ngContentSelectors: _c1$
|
|
11043
|
-
i0.ɵɵprojectionDef(_c0$
|
|
11046
|
+
} }, inputs: { selected: "selected", disabled: "disabled", divider: "divider" }, ngContentSelectors: _c1$g, decls: 5, vars: 6, consts: [[1, "dr-dropdown-item"], [1, "dr-dropdown-text"], [1, "dr-dropdown-actions"]], template: function DrDropdownItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11047
|
+
i0.ɵɵprojectionDef(_c0$E);
|
|
11044
11048
|
i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
|
|
11045
11049
|
i0.ɵɵprojection(2);
|
|
11046
11050
|
i0.ɵɵelementEnd();
|
|
@@ -11082,7 +11086,7 @@ class DrDropdownItemShowPipe {
|
|
|
11082
11086
|
function DrTabComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
11083
11087
|
i0.ɵɵprojection(0);
|
|
11084
11088
|
} }
|
|
11085
|
-
const _c0$
|
|
11089
|
+
const _c0$D = ["*"];
|
|
11086
11090
|
class DrTabComponent {
|
|
11087
11091
|
constructor() { }
|
|
11088
11092
|
ngOnInit() { }
|
|
@@ -11092,7 +11096,7 @@ class DrTabComponent {
|
|
|
11092
11096
|
} if (rf & 2) {
|
|
11093
11097
|
let _t;
|
|
11094
11098
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
|
|
11095
|
-
} }, inputs: { id: "id", label: "label", icon: "icon", disabled: "disabled", tooltip: "tooltip", customLabelTemplate: "customLabelTemplate" }, ngContentSelectors: _c0$
|
|
11099
|
+
} }, inputs: { id: "id", label: "label", icon: "icon", disabled: "disabled", tooltip: "tooltip", customLabelTemplate: "customLabelTemplate" }, ngContentSelectors: _c0$D, decls: 1, vars: 0, template: function DrTabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11096
11100
|
i0.ɵɵprojectionDef();
|
|
11097
11101
|
i0.ɵɵtemplate(0, DrTabComponent_ng_template_0_Template, 1, 0, "ng-template");
|
|
11098
11102
|
} }, encapsulation: 2 }); }
|
|
@@ -11367,8 +11371,8 @@ class DrTabsComponent {
|
|
|
11367
11371
|
args: [DrTabComponent]
|
|
11368
11372
|
}] }); })();
|
|
11369
11373
|
|
|
11370
|
-
const _c0$
|
|
11371
|
-
const _c1$
|
|
11374
|
+
const _c0$C = [[["dr-accordion-item"]]];
|
|
11375
|
+
const _c1$f = ["dr-accordion-item"];
|
|
11372
11376
|
class DrAccordionComponent {
|
|
11373
11377
|
constructor() {
|
|
11374
11378
|
this.openCloseItems = new Subject();
|
|
@@ -11401,8 +11405,8 @@ class DrAccordionComponent {
|
|
|
11401
11405
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionComponent_Factory(t) { return new (t || DrAccordionComponent)(); }; }
|
|
11402
11406
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionComponent, selectors: [["dr-accordion"]], hostVars: 2, hostBindings: function DrAccordionComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
11403
11407
|
i0.ɵɵclassMap(ctx.theme);
|
|
11404
|
-
} }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$
|
|
11405
|
-
i0.ɵɵprojectionDef(_c0$
|
|
11408
|
+
} }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$f, decls: 1, vars: 0, template: function DrAccordionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11409
|
+
i0.ɵɵprojectionDef(_c0$C);
|
|
11406
11410
|
i0.ɵɵprojection(0);
|
|
11407
11411
|
} }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}.borderless[_nghost-%COMP%]{box-shadow:none}"], changeDetection: 0 }); }
|
|
11408
11412
|
}
|
|
@@ -11419,8 +11423,8 @@ class DrAccordionComponent {
|
|
|
11419
11423
|
args: ['class']
|
|
11420
11424
|
}] }); })();
|
|
11421
11425
|
|
|
11422
|
-
const _c0$
|
|
11423
|
-
const _c1$
|
|
11426
|
+
const _c0$B = [[["dr-accordion-item-header"]], [["dr-accordion-item-body"]]];
|
|
11427
|
+
const _c1$e = ["dr-accordion-item-header", "dr-accordion-item-body"];
|
|
11424
11428
|
class DrAccordionItemComponent {
|
|
11425
11429
|
/**
|
|
11426
11430
|
* Item is collapse (`true` by default)
|
|
@@ -11520,8 +11524,8 @@ class DrAccordionItemComponent {
|
|
|
11520
11524
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionItemComponent_Factory(t) { return new (t || DrAccordionItemComponent)(i0.ɵɵdirectiveInject(DrAccordionComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
11521
11525
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemComponent, selectors: [["dr-accordion-item"]], hostVars: 6, hostBindings: function DrAccordionItemComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
11522
11526
|
i0.ɵɵclassProp("collapsed", ctx.collapsed)("expanded", ctx.expanded)("disabled", ctx.disabled);
|
|
11523
|
-
} }, inputs: { collapsed: "collapsed", expanded: "expanded", disabled: "disabled" }, outputs: { collapsedChange: "collapsedChange" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$
|
|
11524
|
-
i0.ɵɵprojectionDef(_c0$
|
|
11527
|
+
} }, inputs: { collapsed: "collapsed", expanded: "expanded", disabled: "disabled" }, outputs: { collapsedChange: "collapsedChange" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$e, decls: 2, vars: 0, template: function DrAccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11528
|
+
i0.ɵɵprojectionDef(_c0$B);
|
|
11525
11529
|
i0.ɵɵprojection(0);
|
|
11526
11530
|
i0.ɵɵprojection(1, 1);
|
|
11527
11531
|
} }, styles: ["[_nghost-%COMP%]{background-color:#fff;color:#222b45;font-family:Poppins,sans-serif;font-size:16px;font-weight:400;line-height:1.25rem;display:flex;flex-direction:column}"], changeDetection: 0 }); }
|
|
@@ -11563,8 +11567,8 @@ function DrAccordionItemHeaderComponent_i_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11563
11567
|
i0.ɵɵclassMap("dr-accordion-item-header-icon " + ctx_r0.icon);
|
|
11564
11568
|
i0.ɵɵclassProp("dr-accordion-item-header-icon--additional-padding", ctx_r0.chevronPosition === "left");
|
|
11565
11569
|
} }
|
|
11566
|
-
const _c0$
|
|
11567
|
-
const _c1$
|
|
11570
|
+
const _c0$A = function (a0) { return { rotationDegree: a0 }; };
|
|
11571
|
+
const _c1$d = function (a0, a1) { return { value: a0, params: a1 }; };
|
|
11568
11572
|
function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
11569
11573
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
11570
11574
|
i0.ɵɵelementStart(0, "i", 2);
|
|
@@ -11573,7 +11577,7 @@ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
11573
11577
|
} if (rf & 2) {
|
|
11574
11578
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
11575
11579
|
i0.ɵɵclassMap(ctx_r1.chevronIconClass);
|
|
11576
|
-
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$
|
|
11580
|
+
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$d, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$A, ctx_r1.chevronRotationDegree)));
|
|
11577
11581
|
} }
|
|
11578
11582
|
const _c2$4 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
|
|
11579
11583
|
const _c3$2 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
|
|
@@ -11702,8 +11706,8 @@ class DrAccordionItemHeaderComponent {
|
|
|
11702
11706
|
args: ['keydown.enter']
|
|
11703
11707
|
}] }); })();
|
|
11704
11708
|
|
|
11705
|
-
const _c0$
|
|
11706
|
-
const _c1$
|
|
11709
|
+
const _c0$z = function (a0) { return { value: a0 }; };
|
|
11710
|
+
const _c1$c = ["*"];
|
|
11707
11711
|
const accordionItemBodyTrigger = trigger('accordionItemBody', [
|
|
11708
11712
|
state('collapsed', style({
|
|
11709
11713
|
overflow: 'hidden',
|
|
@@ -11734,13 +11738,13 @@ class DrAccordionItemBodyComponent {
|
|
|
11734
11738
|
this.destroy$.complete();
|
|
11735
11739
|
}
|
|
11736
11740
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionItemBodyComponent_Factory(t) { return new (t || DrAccordionItemBodyComponent)(i0.ɵɵdirectiveInject(DrAccordionItemComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
11737
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemBodyComponent, selectors: [["dr-accordion-item-body"]], ngContentSelectors: _c1$
|
|
11741
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemBodyComponent, selectors: [["dr-accordion-item-body"]], ngContentSelectors: _c1$c, decls: 3, vars: 3, consts: [[1, "item-body"]], template: function DrAccordionItemBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11738
11742
|
i0.ɵɵprojectionDef();
|
|
11739
11743
|
i0.ɵɵelementStart(0, "div")(1, "div", 0);
|
|
11740
11744
|
i0.ɵɵprojection(2);
|
|
11741
11745
|
i0.ɵɵelementEnd()();
|
|
11742
11746
|
} if (rf & 2) {
|
|
11743
|
-
i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$
|
|
11747
|
+
i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$z, ctx.state));
|
|
11744
11748
|
} }, styles: [".item-body[_ngcontent-%COMP%]{flex:1;-ms-flex:1 1 auto;overflow:auto;position:relative}"], data: { animation: [accordionItemBodyTrigger] }, changeDetection: 0 }); }
|
|
11745
11749
|
}
|
|
11746
11750
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionItemBodyComponent, [{
|
|
@@ -11756,13 +11760,13 @@ class DrAccordionItemBodyComponent {
|
|
|
11756
11760
|
type: Host
|
|
11757
11761
|
}] }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
11758
11762
|
|
|
11759
|
-
const _c0$
|
|
11760
|
-
const _c1$
|
|
11763
|
+
const _c0$y = [[["dr-layout-header"]], [["dr-layout-body"]]];
|
|
11764
|
+
const _c1$b = ["dr-layout-header", "dr-layout-body"];
|
|
11761
11765
|
class DrLayoutComponent {
|
|
11762
11766
|
constructor() { }
|
|
11763
11767
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutComponent_Factory(t) { return new (t || DrLayoutComponent)(); }; }
|
|
11764
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutComponent, selectors: [["dr-layout"]], ngContentSelectors: _c1$
|
|
11765
|
-
i0.ɵɵprojectionDef(_c0$
|
|
11768
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutComponent, selectors: [["dr-layout"]], ngContentSelectors: _c1$b, decls: 6, vars: 0, consts: [[1, "dr-layout"], [1, "dr-layout__container"], [1, "content"], [1, "columns"]], template: function DrLayoutComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11769
|
+
i0.ɵɵprojectionDef(_c0$y);
|
|
11766
11770
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11767
11771
|
i0.ɵɵprojection(1);
|
|
11768
11772
|
i0.ɵɵelementStart(2, "div", 1)(3, "div", 2)(4, "div", 3);
|
|
@@ -11775,11 +11779,11 @@ class DrLayoutComponent {
|
|
|
11775
11779
|
args: [{ selector: 'dr-layout', template: "<div class=\"dr-layout\">\n <ng-content select=\"dr-layout-header\"></ng-content>\n <div class=\"dr-layout__container\">\n <div class=\"content\">\n <div class=\"columns\">\n <ng-content select=\"dr-layout-body\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{font-size:16px;font-weight:400;font-family:Poppins,sans-serif;line-height:1.25rem;-webkit-font-smoothing:antialiased}:host .dr-layout{display:flex;flex-direction:column;min-height:100vh;font-size:16px;font-weight:400;line-height:1.4rem}:host .dr-layout ::ng-deep dr-layout-header{display:block;position:fixed;top:0;left:0;right:0;z-index:1040}:host .dr-layout ::ng-deep dr-layout-header nav{align-items:center;justify-content:flex-start;display:flex}:host .dr-layout__container{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row}:host .dr-layout__container .content{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:column;min-width:0}:host .dr-layout__container .content .columns{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row;width:100%}:host .dr-layout__container .content .columns ::ng-deep dr-layout-body{flex:1 0;min-width:0}\n"] }]
|
|
11776
11780
|
}], function () { return []; }, null); })();
|
|
11777
11781
|
|
|
11778
|
-
const _c0$
|
|
11782
|
+
const _c0$x = ["*"];
|
|
11779
11783
|
class DrLayoutHeaderComponent {
|
|
11780
11784
|
constructor() { }
|
|
11781
11785
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutHeaderComponent_Factory(t) { return new (t || DrLayoutHeaderComponent)(); }; }
|
|
11782
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutHeaderComponent, selectors: [["dr-layout-header"]], ngContentSelectors: _c0$
|
|
11786
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutHeaderComponent, selectors: [["dr-layout-header"]], ngContentSelectors: _c0$x, decls: 2, vars: 0, template: function DrLayoutHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11783
11787
|
i0.ɵɵprojectionDef();
|
|
11784
11788
|
i0.ɵɵelementStart(0, "nav");
|
|
11785
11789
|
i0.ɵɵprojection(1);
|
|
@@ -11798,11 +11802,11 @@ class DrLayoutHeaderComponent {
|
|
|
11798
11802
|
}]
|
|
11799
11803
|
}], function () { return []; }, null); })();
|
|
11800
11804
|
|
|
11801
|
-
const _c0$
|
|
11805
|
+
const _c0$w = ["*"];
|
|
11802
11806
|
class DrLayoutBodyComponent {
|
|
11803
11807
|
constructor() { }
|
|
11804
11808
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutBodyComponent_Factory(t) { return new (t || DrLayoutBodyComponent)(); }; }
|
|
11805
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutBodyComponent, selectors: [["dr-layout-body"]], ngContentSelectors: _c0$
|
|
11809
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutBodyComponent, selectors: [["dr-layout-body"]], ngContentSelectors: _c0$w, decls: 1, vars: 0, template: function DrLayoutBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11806
11810
|
i0.ɵɵprojectionDef();
|
|
11807
11811
|
i0.ɵɵprojection(0);
|
|
11808
11812
|
} }, encapsulation: 2 }); }
|
|
@@ -11888,8 +11892,8 @@ function DrEmptyStateComponent_p_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
11888
11892
|
i0.ɵɵadvance(1);
|
|
11889
11893
|
i0.ɵɵtextInterpolate(ctx_r2.description);
|
|
11890
11894
|
} }
|
|
11891
|
-
const _c0$
|
|
11892
|
-
const _c1$
|
|
11895
|
+
const _c0$v = [[["dr-empty-state-media"], ["", "dr-empty-state-media", ""], ["", "drEmptyStateMedia", ""]], [["dr-empty-state-title"], ["", "dr-empty-state-title", ""], ["", "drEmptyStateTitle", ""]], [["dr-empty-state-description"], ["", "dr-empty-state-description", ""], ["", "drEmptyStateDescription", ""]]];
|
|
11896
|
+
const _c1$a = ["dr-empty-state-media, [dr-empty-state-media], [drEmptyStateMedia]", "dr-empty-state-title, [dr-empty-state-title], [drEmptyStateTitle]", "dr-empty-state-description, [dr-empty-state-description], [drEmptyStateDescription]"];
|
|
11893
11897
|
class DrEmptyStateComponent {
|
|
11894
11898
|
constructor() {
|
|
11895
11899
|
this.title = '';
|
|
@@ -11927,8 +11931,8 @@ class DrEmptyStateComponent {
|
|
|
11927
11931
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.projectedMedia = _t.first);
|
|
11928
11932
|
} }, hostAttrs: [1, "dr-empty-state"], hostVars: 4, hostBindings: function DrEmptyStateComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
11929
11933
|
i0.ɵɵattribute("role", ctx.role)("aria-live", ctx.ariaLive)("aria-atomic", ctx.ariaAtomic)("aria-label", ctx.ariaLabelAttr);
|
|
11930
|
-
} }, inputs: { title: "title", description: "description", illustrationUrl: "illustrationUrl", illustrationAlt: "illustrationAlt", ariaLabel: "ariaLabel" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$
|
|
11931
|
-
i0.ɵɵprojectionDef(_c0$
|
|
11934
|
+
} }, inputs: { title: "title", description: "description", illustrationUrl: "illustrationUrl", illustrationAlt: "illustrationAlt", ariaLabel: "ariaLabel" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$a, decls: 6, vars: 3, consts: [["class", "dr-empty-state__illustration", 3, "src", 4, "ngIf"], ["class", "dr-empty-state__title", 4, "ngIf"], ["class", "dr-empty-state__description", 4, "ngIf"], [1, "dr-empty-state__illustration", 3, "src"], [1, "dr-empty-state__title"], [1, "dr-empty-state__description"]], template: function DrEmptyStateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11935
|
+
i0.ɵɵprojectionDef(_c0$v);
|
|
11932
11936
|
i0.ɵɵprojection(0);
|
|
11933
11937
|
i0.ɵɵtemplate(1, DrEmptyStateComponent_img_1_Template, 1, 3, "img", 0);
|
|
11934
11938
|
i0.ɵɵprojection(2, 1);
|
|
@@ -12017,7 +12021,7 @@ function DrDetailsListComponent_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
12017
12021
|
i0.ɵɵadvance(1);
|
|
12018
12022
|
i0.ɵɵtextInterpolate(item_r1);
|
|
12019
12023
|
} }
|
|
12020
|
-
const _c0$
|
|
12024
|
+
const _c0$u = function (a0) { return { value: a0 }; };
|
|
12021
12025
|
class DrDetailsListComponent {
|
|
12022
12026
|
set items(val) {
|
|
12023
12027
|
if (!val) {
|
|
@@ -12064,7 +12068,7 @@ class DrDetailsListComponent {
|
|
|
12064
12068
|
i0.ɵɵadvance(1);
|
|
12065
12069
|
i0.ɵɵtextInterpolate1(" ", ctx.title, " ");
|
|
12066
12070
|
i0.ɵɵadvance(1);
|
|
12067
|
-
i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$
|
|
12071
|
+
i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$u, ctx.state));
|
|
12068
12072
|
i0.ɵɵadvance(1);
|
|
12069
12073
|
i0.ɵɵproperty("ngForOf", ctx.list);
|
|
12070
12074
|
} }, dependencies: [i1.NgForOf], styles: ["[_nghost-%COMP%]{font-family:Poppins,sans-serif;font-size:14px;line-height:22px;color:#6d6e6f;font-weight:400}[_nghost-%COMP%] .details[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .details__header[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}[_nghost-%COMP%] .details__header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4px}[_nghost-%COMP%] .details__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:28px;margin:8px 0}[_nghost-%COMP%] .details__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:disc}"], data: { animation: [
|
|
@@ -12108,8 +12112,8 @@ class DrDetailsListComponent {
|
|
|
12108
12112
|
type: Input
|
|
12109
12113
|
}] }); })();
|
|
12110
12114
|
|
|
12111
|
-
const _c0$
|
|
12112
|
-
const _c1$
|
|
12115
|
+
const _c0$t = ["content"];
|
|
12116
|
+
const _c1$9 = function (a0, a1) { return { "dr-icon-maximize": a0, "dr-icon-minimize": a1 }; };
|
|
12113
12117
|
function DialogWrapperComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
12114
12118
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
12115
12119
|
i0.ɵɵelementStart(0, "i", 11);
|
|
@@ -12117,7 +12121,7 @@ function DialogWrapperComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
12117
12121
|
i0.ɵɵelementEnd();
|
|
12118
12122
|
} if (rf & 2) {
|
|
12119
12123
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
12120
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c1$
|
|
12124
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c1$9, !ctx_r0.isMaximized, ctx_r0.isMaximized));
|
|
12121
12125
|
} }
|
|
12122
12126
|
function DialogWrapperComponent_i_2_Template(rf, ctx) { if (rf & 1) {
|
|
12123
12127
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -12303,7 +12307,7 @@ class DialogWrapperComponent {
|
|
|
12303
12307
|
}
|
|
12304
12308
|
/** @nocollapse */ static { this.ɵfac = function DialogWrapperComponent_Factory(t) { return new (t || DialogWrapperComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(MAT_LEGACY_DIALOG_DATA)); }; }
|
|
12305
12309
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DialogWrapperComponent, selectors: [["dr-dialog-wrapper"]], viewQuery: function DialogWrapperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12306
|
-
i0.ɵɵviewQuery(_c0$
|
|
12310
|
+
i0.ɵɵviewQuery(_c0$t, 5, ViewContainerRef);
|
|
12307
12311
|
} if (rf & 2) {
|
|
12308
12312
|
let _t;
|
|
12309
12313
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
|
|
@@ -12507,8 +12511,8 @@ function DialogModalWrapperComponent_form_7_div_2_label_9_Template(rf, ctx) { if
|
|
|
12507
12511
|
i0.ɵɵadvance(1);
|
|
12508
12512
|
i0.ɵɵtextInterpolate1(" ", ctx_r19.dialogData.serverErrorMessage, " ");
|
|
12509
12513
|
} }
|
|
12510
|
-
const _c0$
|
|
12511
|
-
const _c1$
|
|
12514
|
+
const _c0$s = function (a0) { return { display: a0 }; };
|
|
12515
|
+
const _c1$8 = function (a0, a1) { return { "col-md-10": a0, "col-md-12": a1 }; };
|
|
12512
12516
|
function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
12513
12517
|
i0.ɵɵelementStart(0, "div", 16);
|
|
12514
12518
|
i0.ɵɵtemplate(1, DialogModalWrapperComponent_form_7_div_2_label_1_Template, 2, 2, "label", 17);
|
|
@@ -12525,11 +12529,11 @@ function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1
|
|
|
12525
12529
|
const field_r11 = ctx.$implicit;
|
|
12526
12530
|
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
12527
12531
|
i0.ɵɵclassMap(field_r11.formGroupClass);
|
|
12528
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$
|
|
12532
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$s, field_r11.isLabelFullWidth ? "block" : "flex"));
|
|
12529
12533
|
i0.ɵɵadvance(1);
|
|
12530
12534
|
i0.ɵɵproperty("ngIf", field_r11.label && field_r11.type !== ctx_r10.dialogFieldType.CHECKBOX);
|
|
12531
12535
|
i0.ɵɵadvance(1);
|
|
12532
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c1$
|
|
12536
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c1$8, field_r11.label && !field_r11.isLabelFullWidth, !field_r11.label || field_r11.isLabelFullWidth));
|
|
12533
12537
|
i0.ɵɵadvance(1);
|
|
12534
12538
|
i0.ɵɵproperty("ngIf", field_r11.type === ctx_r10.dialogFieldType.SELECT);
|
|
12535
12539
|
i0.ɵɵadvance(1);
|
|
@@ -12723,12 +12727,15 @@ class DialogModalWrapperComponent {
|
|
|
12723
12727
|
|
|
12724
12728
|
const DEFAULT_PANE_CLASS_NAME = 'wrapper-dialog';
|
|
12725
12729
|
const DEFAULT_CONFIRM_THEME = { themeSize: 'small-modal' };
|
|
12730
|
+
/** @deprecated use DrModalService instead */
|
|
12726
12731
|
class DialogService {
|
|
12727
12732
|
constructor(dialog) {
|
|
12728
12733
|
this.dialog = dialog;
|
|
12729
12734
|
}
|
|
12730
12735
|
/**
|
|
12731
12736
|
* Function to open modal with custom form
|
|
12737
|
+
*
|
|
12738
|
+
* @deprecated use DrModalService.open instead
|
|
12732
12739
|
*/
|
|
12733
12740
|
openDialogWrapper(componentTypeChild, dialogData, componentTypeWrapper) {
|
|
12734
12741
|
if (!componentTypeWrapper)
|
|
@@ -12745,6 +12752,8 @@ class DialogService {
|
|
|
12745
12752
|
}
|
|
12746
12753
|
/**
|
|
12747
12754
|
* Function to open confirmation modal
|
|
12755
|
+
*
|
|
12756
|
+
* @deprecated use DrModalService.confirm instead
|
|
12748
12757
|
*/
|
|
12749
12758
|
openConfirmDialog(confirmDialogData) {
|
|
12750
12759
|
const dialogData = {
|
|
@@ -12760,6 +12769,8 @@ class DialogService {
|
|
|
12760
12769
|
}
|
|
12761
12770
|
/**
|
|
12762
12771
|
* Function to open confirmation modal with inputs
|
|
12772
|
+
*
|
|
12773
|
+
* @deprecated use DrModalService.confirm instead
|
|
12763
12774
|
*/
|
|
12764
12775
|
openConfirmDialogModal(confirmDialogData) {
|
|
12765
12776
|
const dialogData = {
|
|
@@ -13233,7 +13244,7 @@ function TreeviewItemComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
13233
13244
|
i0.ɵɵadvance(1);
|
|
13234
13245
|
i0.ɵɵproperty("ngForOf", ctx_r2.item.children);
|
|
13235
13246
|
} }
|
|
13236
|
-
const _c0$
|
|
13247
|
+
const _c0$r = function (a0, a1, a2) { return { item: a0, onCollapseExpand: a1, onCheckedChange: a2 }; };
|
|
13237
13248
|
function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
13238
13249
|
i0.ɵɵelementStart(0, "div", 1);
|
|
13239
13250
|
i0.ɵɵtemplate(1, TreeviewItemComponent_div_0_ng_template_1_Template, 0, 0, "ng-template", 2);
|
|
@@ -13242,7 +13253,7 @@ function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
13242
13253
|
} if (rf & 2) {
|
|
13243
13254
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
13244
13255
|
i0.ɵɵadvance(1);
|
|
13245
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c0$
|
|
13256
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c0$r, ctx_r0.item, ctx_r0.onCollapseExpand, ctx_r0.onCheckedChange));
|
|
13246
13257
|
i0.ɵɵadvance(1);
|
|
13247
13258
|
i0.ɵɵproperty("ngIf", !ctx_r0.item.collapsed);
|
|
13248
13259
|
} }
|
|
@@ -13840,6 +13851,37 @@ class DataAnalyticsService {
|
|
|
13840
13851
|
}]
|
|
13841
13852
|
}], function () { return []; }, null); })();
|
|
13842
13853
|
|
|
13854
|
+
/**
|
|
13855
|
+
* A utility function to handle asynchronous operations with a try-catch mechanism.
|
|
13856
|
+
* It wraps a promise and returns a tuple containing either the resolved value or the caught error.
|
|
13857
|
+
*
|
|
13858
|
+
* @example
|
|
13859
|
+
* ```typescript
|
|
13860
|
+
* const [data, error] = await withResult(someAsyncFunction());
|
|
13861
|
+
* if (error != null) {
|
|
13862
|
+
* console.log('Success:', data);
|
|
13863
|
+
* } else {
|
|
13864
|
+
* console.error('Error:', error);
|
|
13865
|
+
* }
|
|
13866
|
+
* ```
|
|
13867
|
+
*/
|
|
13868
|
+
const withResult = async (value) => {
|
|
13869
|
+
if (!(value instanceof Promise) && !(value instanceof Observable)) {
|
|
13870
|
+
throw new TypeError('The provided argument is not a Promise or Observable.');
|
|
13871
|
+
}
|
|
13872
|
+
if (value instanceof Observable) {
|
|
13873
|
+
value = firstValueFrom(value);
|
|
13874
|
+
}
|
|
13875
|
+
try {
|
|
13876
|
+
const data = await value;
|
|
13877
|
+
return [data, null];
|
|
13878
|
+
}
|
|
13879
|
+
catch (error) {
|
|
13880
|
+
return [null, error];
|
|
13881
|
+
}
|
|
13882
|
+
};
|
|
13883
|
+
const fromPromise = (promise) => from(promise).pipe(take(1));
|
|
13884
|
+
|
|
13843
13885
|
/**
|
|
13844
13886
|
* This file is auto-generated from colors.scss
|
|
13845
13887
|
* Do not edit this file manually. Edit colors.scss instead.
|
|
@@ -14631,7 +14673,7 @@ class DrImageCropperCanvasService {
|
|
|
14631
14673
|
type: Injectable
|
|
14632
14674
|
}], null, null); })();
|
|
14633
14675
|
|
|
14634
|
-
const _c0$
|
|
14676
|
+
const _c0$q = ["imageCanvas"];
|
|
14635
14677
|
class DrImageCropperComponent {
|
|
14636
14678
|
constructor(canvasService) {
|
|
14637
14679
|
this.canvasService = canvasService;
|
|
@@ -14689,7 +14731,7 @@ class DrImageCropperComponent {
|
|
|
14689
14731
|
}
|
|
14690
14732
|
/** @nocollapse */ static { this.ɵfac = function DrImageCropperComponent_Factory(t) { return new (t || DrImageCropperComponent)(i0.ɵɵdirectiveInject(DrImageCropperCanvasService)); }; }
|
|
14691
14733
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrImageCropperComponent, selectors: [["dr-image-cropper"]], viewQuery: function DrImageCropperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
14692
|
-
i0.ɵɵviewQuery(_c0$
|
|
14734
|
+
i0.ɵɵviewQuery(_c0$q, 7);
|
|
14693
14735
|
} if (rf & 2) {
|
|
14694
14736
|
let _t;
|
|
14695
14737
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.canvasElement = _t.first);
|
|
@@ -14890,6 +14932,7 @@ class DrDetailsListModule {
|
|
|
14890
14932
|
}], null, null); })();
|
|
14891
14933
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrDetailsListModule, { declarations: [DrDetailsListComponent], imports: [CommonModule], exports: [DrDetailsListComponent] }); })();
|
|
14892
14934
|
|
|
14935
|
+
/** @deprecated use DrModalModule instead */
|
|
14893
14936
|
class DrDialogModule {
|
|
14894
14937
|
/** @nocollapse */ static { this.ɵfac = function DrDialogModule_Factory(t) { return new (t || DrDialogModule)(); }; }
|
|
14895
14938
|
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrDialogModule }); }
|
|
@@ -15105,7 +15148,7 @@ function DrChipComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15105
15148
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
15106
15149
|
i0.ɵɵattribute("aria-label", ctx_r2.removeAriaLabel);
|
|
15107
15150
|
} }
|
|
15108
|
-
const _c0$
|
|
15151
|
+
const _c0$p = ["*"];
|
|
15109
15152
|
class DrChipComponent {
|
|
15110
15153
|
constructor() {
|
|
15111
15154
|
this.removeAriaLabel = 'Remove';
|
|
@@ -15119,7 +15162,7 @@ class DrChipComponent {
|
|
|
15119
15162
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChipComponent, selectors: [["dr-chip"]], hostVars: 3, hostBindings: function DrChipComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
15120
15163
|
i0.ɵɵattribute("aria-label", ctx.label);
|
|
15121
15164
|
i0.ɵɵclassProp("--compact", ctx.compact);
|
|
15122
|
-
} }, inputs: { label: "label", icon: "icon", removable: ["removable", "removable", booleanAttribute], removeAriaLabel: "removeAriaLabel", compact: ["compact", "compact", booleanAttribute] }, outputs: { remove: "remove" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$
|
|
15165
|
+
} }, inputs: { label: "label", icon: "icon", removable: ["removable", "removable", booleanAttribute], removeAriaLabel: "removeAriaLabel", compact: ["compact", "compact", booleanAttribute] }, outputs: { remove: "remove" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$p, decls: 5, vars: 4, consts: [["class", "chip__icon", "aria-hidden", "true", 3, "class", 4, "ngIf"], [1, "chip__label"], [4, "ngIf"], ["type", "button", "class", "chip__remove", 3, "click", 4, "ngIf"], ["aria-hidden", "true", 1, "chip__icon"], ["type", "button", 1, "chip__remove", 3, "click"], ["aria-hidden", "true", 1, "dr-icon-exit"]], template: function DrChipComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15123
15166
|
i0.ɵɵprojectionDef();
|
|
15124
15167
|
i0.ɵɵtemplate(0, DrChipComponent_i_0_Template, 1, 2, "i", 0);
|
|
15125
15168
|
i0.ɵɵelementStart(1, "span", 1);
|
|
@@ -15161,8 +15204,8 @@ class DrChipComponent {
|
|
|
15161
15204
|
args: ['class.--compact']
|
|
15162
15205
|
}] }); })();
|
|
15163
15206
|
|
|
15164
|
-
const _c0$
|
|
15165
|
-
const _c1$
|
|
15207
|
+
const _c0$o = ["carouselContainer"];
|
|
15208
|
+
const _c1$7 = ["carouselItem"];
|
|
15166
15209
|
function DrGalleryComponent_dr_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
15167
15210
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
15168
15211
|
i0.ɵɵelementStart(0, "dr-button", 5);
|
|
@@ -15387,8 +15430,8 @@ class DrGalleryComponent {
|
|
|
15387
15430
|
let _t;
|
|
15388
15431
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
15389
15432
|
} }, viewQuery: function DrGalleryComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15390
|
-
i0.ɵɵviewQuery(_c0$
|
|
15391
|
-
i0.ɵɵviewQuery(_c1$
|
|
15433
|
+
i0.ɵɵviewQuery(_c0$o, 5);
|
|
15434
|
+
i0.ɵɵviewQuery(_c1$7, 5);
|
|
15392
15435
|
} if (rf & 2) {
|
|
15393
15436
|
let _t;
|
|
15394
15437
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerRef = _t.first);
|
|
@@ -15460,7 +15503,7 @@ function DrProgressBarComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
15460
15503
|
const progressPercent_r4 = ctx.progressPercent;
|
|
15461
15504
|
i0.ɵɵtextInterpolate1("", progressPercent_r4, "%");
|
|
15462
15505
|
} }
|
|
15463
|
-
const _c0$
|
|
15506
|
+
const _c0$n = ["*"];
|
|
15464
15507
|
class DrProgressBarComponent {
|
|
15465
15508
|
constructor() {
|
|
15466
15509
|
this.roundProgress = false;
|
|
@@ -15540,7 +15583,7 @@ class DrProgressBarComponent {
|
|
|
15540
15583
|
} }, hostVars: 7, hostBindings: function DrProgressBarComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
15541
15584
|
i0.ɵɵattribute("role", ctx.role)("aria-valuemin", ctx.ariaValueMin)("aria-valuemax", ctx.ariaValueMax)("aria-valuenow", ctx.ariaValueNow)("aria-label", ctx.ariaLabel);
|
|
15542
15585
|
i0.ɵɵclassMap(ctx.theme);
|
|
15543
|
-
} }, inputs: { progress: "progress", total: "total", roundProgress: "roundProgress", showValue: "showValue", theme: "theme", customAriaLabel: ["aria-label", "customAriaLabel"] }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$
|
|
15586
|
+
} }, inputs: { progress: "progress", total: "total", roundProgress: "roundProgress", showValue: "showValue", theme: "theme", customAriaLabel: ["aria-label", "customAriaLabel"] }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$n, decls: 7, vars: 3, consts: [["aria-hidden", "true", 1, "progress-bar__background"], [1, "progress-bar__background__fill"], ["aria-hidden", "true", 1, "progress-bar__value"], [4, "ngIf"], ["defaultValueTemplate", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DrProgressBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15544
15587
|
i0.ɵɵprojectionDef();
|
|
15545
15588
|
i0.ɵɵelementStart(0, "div", 0);
|
|
15546
15589
|
i0.ɵɵelement(1, "div", 1);
|
|
@@ -15596,7 +15639,7 @@ class DrProgressBarComponent {
|
|
|
15596
15639
|
args: ['attr.aria-label']
|
|
15597
15640
|
}] }); })();
|
|
15598
15641
|
|
|
15599
|
-
const _c0$
|
|
15642
|
+
const _c0$m = ["*"];
|
|
15600
15643
|
class DrBadgeComponent {
|
|
15601
15644
|
constructor() {
|
|
15602
15645
|
this.color = 'stone';
|
|
@@ -15608,7 +15651,7 @@ class DrBadgeComponent {
|
|
|
15608
15651
|
/** @nocollapse */ static { this.ɵfac = function DrBadgeComponent_Factory(t) { return new (t || DrBadgeComponent)(); }; }
|
|
15609
15652
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrBadgeComponent, selectors: [["dr-badge"]], hostVars: 2, hostBindings: function DrBadgeComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
15610
15653
|
i0.ɵɵclassMap(ctx.elementClasses);
|
|
15611
|
-
} }, inputs: { color: "color", size: "size" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$
|
|
15654
|
+
} }, inputs: { color: "color", size: "size" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$m, decls: 1, vars: 0, template: function DrBadgeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15612
15655
|
i0.ɵɵprojectionDef();
|
|
15613
15656
|
i0.ɵɵprojection(0);
|
|
15614
15657
|
} }, styles: ["[_nghost-%COMP%]{display:inline-flex;align-items:center;color:#333;border-radius:4px;box-sizing:border-box;font-size:12px;line-height:16px;font-weight:500}.small[_nghost-%COMP%]{gap:2px;padding:2px 4px}.medium[_nghost-%COMP%]{gap:4px;padding:4px 8px}.light-purple[_nghost-%COMP%]{background-color:#dfd9ff}.purple[_nghost-%COMP%]{color:#fff;background-color:#7b61ff}.water[_nghost-%COMP%]{background-color:#d9f2ff}.baby-blue[_nghost-%COMP%]{background-color:#d9e6ff}.baby-pink[_nghost-%COMP%]{background-color:#ffdbf1}.light-turquoise[_nghost-%COMP%]{background-color:#d6fcf9}.bright-green[_nghost-%COMP%]{background-color:#d9ffea}.stone[_nghost-%COMP%]{background-color:#f6f4f4}.peach[_nghost-%COMP%]{background-color:#ffe5b4}.soft-coral[_nghost-%COMP%]{background-color:#ffd2c2}.pale-yellow[_nghost-%COMP%]{background-color:#fffacd}.pastel-olive[_nghost-%COMP%]{background-color:#dce2b9}.powder-blue-grey[_nghost-%COMP%]{background-color:#d3dbe3}.muted-plum[_nghost-%COMP%]{background-color:#e7c7db}"], changeDetection: 0 }); }
|
|
@@ -15704,662 +15747,2130 @@ class DrSystemMessageComponent {
|
|
|
15704
15747
|
args: ['class']
|
|
15705
15748
|
}] }); })();
|
|
15706
15749
|
|
|
15707
|
-
|
|
15708
|
-
* Configuration used when opening a drawer.
|
|
15709
|
-
*/
|
|
15710
|
-
class DrawerConfig {
|
|
15711
|
-
constructor() {
|
|
15712
|
-
/** Data being injected into the child component. */
|
|
15713
|
-
this.data = null;
|
|
15714
|
-
/** Whether the drawer has a backdrop. */
|
|
15715
|
-
this.hasBackdrop = false;
|
|
15716
|
-
/** Whether the user can use escape or clicking outside to close the drawer. */
|
|
15717
|
-
this.disableClose = false;
|
|
15718
|
-
/** Aria label to assign to the drawer element. */
|
|
15719
|
-
this.ariaLabel = null;
|
|
15720
|
-
/** Aria role for the drawer container */
|
|
15721
|
-
this.role = 'dialog';
|
|
15722
|
-
/** Whether the drawer should be treated as a modal dialog */
|
|
15723
|
-
this.isModal = true;
|
|
15724
|
-
/**
|
|
15725
|
-
* Whether the drawer should close when the user goes backwards/forwards in history.
|
|
15726
|
-
* Note that this usually doesn't include clicking on links (unless the user is using
|
|
15727
|
-
* the `HashLocationStrategy`).
|
|
15728
|
-
*/
|
|
15729
|
-
this.closeOnNavigation = true;
|
|
15730
|
-
/**
|
|
15731
|
-
* Where the drawer should focus on open.
|
|
15732
|
-
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
15733
|
-
* AutoFocusTarget instead.
|
|
15734
|
-
*/
|
|
15735
|
-
this.autoFocus = 'first-tabbable';
|
|
15736
|
-
/**
|
|
15737
|
-
* Whether the drawer should restore focus to the
|
|
15738
|
-
* previously-focused element, after it's closed.
|
|
15739
|
-
*/
|
|
15740
|
-
this.restoreFocus = true;
|
|
15741
|
-
/** Position of the drawer. */
|
|
15742
|
-
this.position = 'bottom';
|
|
15743
|
-
/** Whether to render the drawer without default container styles and handle. */
|
|
15744
|
-
this.unstyled = false;
|
|
15745
|
-
/** Drag behavior for bottom drawer. */
|
|
15746
|
-
this.dragMode = 'dismiss';
|
|
15747
|
-
}
|
|
15750
|
+
class DrModalConfig {
|
|
15748
15751
|
}
|
|
15749
15752
|
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
drawerState: trigger('state', [
|
|
15754
|
-
state('void, hidden', style({
|
|
15755
|
-
'box-shadow': 'none',
|
|
15756
|
-
visibility: 'hidden',
|
|
15757
|
-
})),
|
|
15758
|
-
state('visible', style({
|
|
15759
|
-
transform: 'none',
|
|
15760
|
-
visibility: 'visible',
|
|
15761
|
-
})),
|
|
15762
|
-
transition('visible => void, visible => hidden', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')),
|
|
15763
|
-
transition('void => visible', animate('150ms cubic-bezier(0, 0, 0.2, 1)')),
|
|
15764
|
-
]),
|
|
15765
|
-
};
|
|
15766
|
-
|
|
15767
|
-
class BottomDismissPositionStrategy {
|
|
15768
|
-
constructor() {
|
|
15769
|
-
this.startMouseY = null;
|
|
15770
|
-
this.deltaY = 0;
|
|
15771
|
-
}
|
|
15772
|
-
extractMousePosition(event) {
|
|
15773
|
-
return event.clientY;
|
|
15774
|
-
}
|
|
15775
|
-
onDragStart(container) {
|
|
15776
|
-
this.startMouseY = null;
|
|
15777
|
-
this.deltaY = 0;
|
|
15778
|
-
}
|
|
15779
|
-
onDragMove(mouseY, container) {
|
|
15780
|
-
if (this.startMouseY === null) {
|
|
15781
|
-
this.startMouseY = mouseY;
|
|
15782
|
-
return;
|
|
15783
|
-
}
|
|
15784
|
-
this.deltaY = mouseY - this.startMouseY;
|
|
15785
|
-
if (this.deltaY < 0) {
|
|
15786
|
-
this.deltaY = 0;
|
|
15787
|
-
}
|
|
15788
|
-
container.style.transition = 'none';
|
|
15789
|
-
container.style.transform = `translate3d(0px, ${this.deltaY}px, 0px)`;
|
|
15790
|
-
}
|
|
15791
|
-
onDragEnd(container) {
|
|
15792
|
-
const containerHeight = container.getBoundingClientRect().height;
|
|
15793
|
-
const shouldClose = this.deltaY > containerHeight / 2;
|
|
15794
|
-
if (!shouldClose) {
|
|
15795
|
-
container.style.transition = 'transform 0.5s cubic-bezier(0.32, 0.72, 0, 1)';
|
|
15796
|
-
container.style.transform = `translate3d(0px, 0px, 0px)`;
|
|
15797
|
-
}
|
|
15798
|
-
return { shouldClose };
|
|
15799
|
-
}
|
|
15800
|
-
}
|
|
15801
|
-
class BottomResizePositionStrategy {
|
|
15802
|
-
constructor(config) {
|
|
15753
|
+
class DrModalRef {
|
|
15754
|
+
constructor(innerRef, config) {
|
|
15755
|
+
this.innerRef = innerRef;
|
|
15803
15756
|
this.config = config;
|
|
15804
|
-
this.
|
|
15805
|
-
this.
|
|
15806
|
-
this.
|
|
15807
|
-
|
|
15808
|
-
this.
|
|
15809
|
-
this.
|
|
15810
|
-
this.
|
|
15811
|
-
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15817
|
-
|
|
15818
|
-
|
|
15819
|
-
|
|
15820
|
-
|
|
15821
|
-
|
|
15822
|
-
overlayElement.style.height = `${this.startHeightPx}px`;
|
|
15823
|
-
overlayElement.style.maxHeight = 'none';
|
|
15824
|
-
container.style.height = '100%';
|
|
15757
|
+
this.id = this.innerRef.id;
|
|
15758
|
+
this.ref = this.innerRef.componentInstance;
|
|
15759
|
+
this.data = this.config.data;
|
|
15760
|
+
this.afterClosed$ = this.innerRef.closed;
|
|
15761
|
+
this.container = this.innerRef.containerInstance;
|
|
15762
|
+
this.disableClose = this.config.disableClose;
|
|
15763
|
+
this.isClosing = false;
|
|
15764
|
+
const escapeKeydownEvents$ = this.innerRef.keydownEvents.pipe(filter((event) => event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)));
|
|
15765
|
+
merge(this.innerRef.backdropClick, escapeKeydownEvents$).subscribe((event) => {
|
|
15766
|
+
if (!this.disableClose) {
|
|
15767
|
+
event.preventDefault();
|
|
15768
|
+
this.close(null);
|
|
15769
|
+
}
|
|
15770
|
+
});
|
|
15771
|
+
this.innerRef.overlayRef.detachments().subscribe(() => {
|
|
15772
|
+
this.isClosing = true;
|
|
15773
|
+
this.cdkClose(this.result);
|
|
15774
|
+
});
|
|
15825
15775
|
}
|
|
15826
|
-
|
|
15827
|
-
if (this.
|
|
15828
|
-
this.startMouseY = mouseY;
|
|
15776
|
+
close(result) {
|
|
15777
|
+
if (this.isClosing) {
|
|
15829
15778
|
return;
|
|
15830
15779
|
}
|
|
15831
|
-
|
|
15832
|
-
|
|
15833
|
-
|
|
15834
|
-
this.
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
onDragEnd(container, overlayElement) {
|
|
15838
|
-
let height = this.currentHeightPx || overlayElement.getBoundingClientRect().height;
|
|
15839
|
-
height = Math.max(this.minHeightPx, Math.min(this.maxHeightPx, height));
|
|
15840
|
-
overlayElement.style.transition = 'height 200ms cubic-bezier(0.32, 0.72, 0, 1)';
|
|
15841
|
-
overlayElement.style.height = `${height}px`;
|
|
15842
|
-
this.startMouseY = NaN;
|
|
15843
|
-
this.currentHeightPx = height;
|
|
15844
|
-
return { shouldClose: false, height };
|
|
15780
|
+
this.result = result;
|
|
15781
|
+
// init closing
|
|
15782
|
+
this.isClosing = true;
|
|
15783
|
+
this.innerRef.overlayRef.detachBackdrop(); // disable other backdrop clicks
|
|
15784
|
+
this.container.animateClose();
|
|
15785
|
+
setTimeout(() => this.cdkClose(result), this.container.animationTime());
|
|
15845
15786
|
}
|
|
15846
|
-
|
|
15847
|
-
|
|
15848
|
-
return value;
|
|
15849
|
-
}
|
|
15850
|
-
const raw = String(value).trim();
|
|
15851
|
-
if (!raw) {
|
|
15852
|
-
return 0;
|
|
15853
|
-
}
|
|
15854
|
-
if (raw.endsWith('vh')) {
|
|
15855
|
-
const n = parseFloat(raw);
|
|
15856
|
-
return Number.isFinite(n) ? (n / 100) * viewportH : 0;
|
|
15857
|
-
}
|
|
15858
|
-
if (raw.endsWith('px')) {
|
|
15859
|
-
const n = parseFloat(raw);
|
|
15860
|
-
return Number.isFinite(n) ? n : 0;
|
|
15861
|
-
}
|
|
15862
|
-
const asNumber = parseFloat(raw);
|
|
15863
|
-
return Number.isFinite(asNumber) ? asNumber : 0;
|
|
15787
|
+
cdkClose(result) {
|
|
15788
|
+
this.innerRef.close(result);
|
|
15864
15789
|
}
|
|
15865
15790
|
}
|
|
15866
15791
|
|
|
15867
|
-
|
|
15868
|
-
function
|
|
15869
|
-
i0.ɵɵ
|
|
15792
|
+
class DrModalHeaderDirective {
|
|
15793
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalHeaderDirective_Factory(t) { return new (t || DrModalHeaderDirective)(); }; }
|
|
15794
|
+
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrModalHeaderDirective, selectors: [["dr-modal-header"], ["", "dr-modal-header", ""], ["", "drModalHeader", ""]], hostAttrs: [1, "dr-modal-header"], standalone: true }); }
|
|
15795
|
+
}
|
|
15796
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalHeaderDirective, [{
|
|
15797
|
+
type: Directive,
|
|
15798
|
+
args: [{
|
|
15799
|
+
standalone: true,
|
|
15800
|
+
selector: 'dr-modal-header, [dr-modal-header], [drModalHeader]',
|
|
15801
|
+
host: { class: 'dr-modal-header' },
|
|
15802
|
+
}]
|
|
15803
|
+
}], null, null); })();
|
|
15804
|
+
class DrModalTitleDirective {
|
|
15805
|
+
constructor() {
|
|
15806
|
+
this.id = inject(DrModalConfig).id;
|
|
15807
|
+
const modalRef = inject(DrModalRef);
|
|
15808
|
+
setTimeout(() => modalRef.container.hasTitle.set(true));
|
|
15809
|
+
}
|
|
15810
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalTitleDirective_Factory(t) { return new (t || DrModalTitleDirective)(); }; }
|
|
15811
|
+
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrModalTitleDirective, selectors: [["dr-modal-title"], ["", "dr-modal-title", ""], ["", "drModalTitle", ""]], hostAttrs: ["role", "heading", "aria-level", "1", "data-test", "dialogTitle", 1, "dr-modal-title"], hostVars: 1, hostBindings: function DrModalTitleDirective_HostBindings(rf, ctx) { if (rf & 2) {
|
|
15812
|
+
i0.ɵɵhostProperty("id", "modal-" + ctx.id + "-title");
|
|
15813
|
+
} }, standalone: true }); }
|
|
15814
|
+
}
|
|
15815
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalTitleDirective, [{
|
|
15816
|
+
type: Directive,
|
|
15817
|
+
args: [{
|
|
15818
|
+
standalone: true,
|
|
15819
|
+
selector: 'dr-modal-title, [dr-modal-title], [drModalTitle]',
|
|
15820
|
+
host: {
|
|
15821
|
+
'[id]': "'modal-' + id + '-title'",
|
|
15822
|
+
class: 'dr-modal-title',
|
|
15823
|
+
role: 'heading',
|
|
15824
|
+
'aria-level': '1',
|
|
15825
|
+
'data-test': 'dialogTitle',
|
|
15826
|
+
},
|
|
15827
|
+
}]
|
|
15828
|
+
}], function () { return []; }, null); })();
|
|
15829
|
+
class DrModalSubtitleDirective {
|
|
15830
|
+
constructor() {
|
|
15831
|
+
this.id = inject(DrModalConfig).id;
|
|
15832
|
+
const modalRef = inject(DrModalRef);
|
|
15833
|
+
setTimeout(() => modalRef.container.hasSubtitle.set(true));
|
|
15834
|
+
}
|
|
15835
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalSubtitleDirective_Factory(t) { return new (t || DrModalSubtitleDirective)(); }; }
|
|
15836
|
+
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrModalSubtitleDirective, selectors: [["dr-modal-subtitle"], ["", "dr-modal-subtitle", ""], ["", "drModalSubtitle", ""]], hostAttrs: ["role", "heading", "aria-level", "2", "data-test", "dialogSubtitle", 1, "dr-modal-subtitle"], hostVars: 1, hostBindings: function DrModalSubtitleDirective_HostBindings(rf, ctx) { if (rf & 2) {
|
|
15837
|
+
i0.ɵɵhostProperty("id", "modal-" + ctx.id + "-subtitle");
|
|
15838
|
+
} }, standalone: true }); }
|
|
15839
|
+
}
|
|
15840
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalSubtitleDirective, [{
|
|
15841
|
+
type: Directive,
|
|
15842
|
+
args: [{
|
|
15843
|
+
standalone: true,
|
|
15844
|
+
selector: 'dr-modal-subtitle, [dr-modal-subtitle], [drModalSubtitle]',
|
|
15845
|
+
host: {
|
|
15846
|
+
'[id]': "'modal-' + id + '-subtitle'",
|
|
15847
|
+
class: 'dr-modal-subtitle',
|
|
15848
|
+
role: 'heading',
|
|
15849
|
+
'aria-level': '2',
|
|
15850
|
+
'data-test': 'dialogSubtitle',
|
|
15851
|
+
},
|
|
15852
|
+
}]
|
|
15853
|
+
}], function () { return []; }, null); })();
|
|
15854
|
+
class DrModalBodyDirective {
|
|
15855
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalBodyDirective_Factory(t) { return new (t || DrModalBodyDirective)(); }; }
|
|
15856
|
+
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrModalBodyDirective, selectors: [["dr-modal-body"], ["", "dr-modal-body", ""], ["", "drModalBody", ""]], hostAttrs: ["data-test", "modalBody", 1, "dr-modal-body"], standalone: true }); }
|
|
15857
|
+
}
|
|
15858
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalBodyDirective, [{
|
|
15859
|
+
type: Directive,
|
|
15860
|
+
args: [{
|
|
15861
|
+
standalone: true,
|
|
15862
|
+
selector: 'dr-modal-body, [dr-modal-body], [drModalBody]',
|
|
15863
|
+
host: { class: 'dr-modal-body', 'data-test': 'modalBody' },
|
|
15864
|
+
}]
|
|
15865
|
+
}], null, null); })();
|
|
15866
|
+
class DrModalFooterDirective {
|
|
15867
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalFooterDirective_Factory(t) { return new (t || DrModalFooterDirective)(); }; }
|
|
15868
|
+
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrModalFooterDirective, selectors: [["dr-modal-footer"], ["", "dr-modal-footer", ""], ["", "drModalFooter", ""]], hostAttrs: [1, "dr-modal-footer"], standalone: true }); }
|
|
15869
|
+
}
|
|
15870
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalFooterDirective, [{
|
|
15871
|
+
type: Directive,
|
|
15872
|
+
args: [{
|
|
15873
|
+
standalone: true,
|
|
15874
|
+
selector: 'dr-modal-footer, [dr-modal-footer], [drModalFooter]',
|
|
15875
|
+
host: { class: 'dr-modal-footer' },
|
|
15876
|
+
}]
|
|
15877
|
+
}], null, null); })();
|
|
15878
|
+
|
|
15879
|
+
class DrModalCloseDirective {
|
|
15880
|
+
constructor() {
|
|
15881
|
+
this.modalRef = inject(DrModalRef);
|
|
15882
|
+
/**
|
|
15883
|
+
* By default, Angular would assign '' in <button drModalClose>, which is not ideal as we use null for backdrop click and ESC press
|
|
15884
|
+
* To understand if drModalClose used without value (<button drModalClose>) we get its attribute.
|
|
15885
|
+
* '' attribute means we used drModalClose without any value, null means we used [drModalClose]="''" with binding
|
|
15886
|
+
*
|
|
15887
|
+
* NOTE: @Attribute will not work as Angular always sets @Attribute null value if it matches any @Input
|
|
15888
|
+
*/
|
|
15889
|
+
this.resultAttr = inject(ElementRef).nativeElement.getAttribute('drModalClose');
|
|
15890
|
+
const hostButton = inject(DrButtonComponent, { optional: true, self: true });
|
|
15891
|
+
// Set closeModal as buttons if they have no result (<dr-button drModalClose>)
|
|
15892
|
+
hostButton && this.resultAttr === '' && (hostButton.type = 'button');
|
|
15893
|
+
}
|
|
15894
|
+
onHostClick() {
|
|
15895
|
+
this.modalRef.close(this.resultAttr === '' ? null : this.result);
|
|
15896
|
+
}
|
|
15897
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalCloseDirective_Factory(t) { return new (t || DrModalCloseDirective)(); }; }
|
|
15898
|
+
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrModalCloseDirective, selectors: [["", "drModalClose", ""]], hostBindings: function DrModalCloseDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
15899
|
+
i0.ɵɵlistener("click", function DrModalCloseDirective_click_HostBindingHandler() { return ctx.onHostClick(); });
|
|
15900
|
+
} }, inputs: { result: ["drModalClose", "result"] }, standalone: true }); }
|
|
15901
|
+
}
|
|
15902
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalCloseDirective, [{
|
|
15903
|
+
type: Directive,
|
|
15904
|
+
args: [{
|
|
15905
|
+
standalone: true,
|
|
15906
|
+
selector: '[drModalClose]',
|
|
15907
|
+
host: { '(click)': 'onHostClick()' },
|
|
15908
|
+
}]
|
|
15909
|
+
}], function () { return []; }, { result: [{
|
|
15910
|
+
type: Input,
|
|
15911
|
+
args: ['drModalClose']
|
|
15912
|
+
}] }); })();
|
|
15913
|
+
|
|
15914
|
+
function DrModalComponent_ng_container_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
15915
|
+
i0.ɵɵelementContainerStart(0);
|
|
15916
|
+
i0.ɵɵelementStart(1, "button", 1);
|
|
15917
|
+
i0.ɵɵelement(2, "i", 2);
|
|
15918
|
+
i0.ɵɵelementEnd();
|
|
15919
|
+
i0.ɵɵelementContainerEnd();
|
|
15920
|
+
} }
|
|
15921
|
+
function DrModalComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15922
|
+
i0.ɵɵelementContainerStart(0);
|
|
15923
|
+
i0.ɵɵelementStart(1, "dr-modal-header");
|
|
15924
|
+
i0.ɵɵprojection(2, 3);
|
|
15925
|
+
i0.ɵɵprojection(3, 4);
|
|
15926
|
+
i0.ɵɵtemplate(4, DrModalComponent_ng_container_1_ng_container_4_Template, 3, 0, "ng-container", 0);
|
|
15927
|
+
i0.ɵɵelementEnd();
|
|
15928
|
+
i0.ɵɵelementContainerEnd();
|
|
15870
15929
|
} if (rf & 2) {
|
|
15871
15930
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15872
|
-
i0.ɵɵ
|
|
15931
|
+
i0.ɵɵadvance(4);
|
|
15932
|
+
i0.ɵɵproperty("ngIf", ctx_r0.withCloseBtn);
|
|
15873
15933
|
} }
|
|
15874
|
-
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
|
|
15880
|
-
|
|
15881
|
-
|
|
15882
|
-
}
|
|
15883
|
-
|
|
15884
|
-
|
|
15885
|
-
|
|
15886
|
-
|
|
15887
|
-
|
|
15888
|
-
|
|
15889
|
-
|
|
15890
|
-
|
|
15891
|
-
|
|
15892
|
-
|
|
15893
|
-
|
|
15894
|
-
|
|
15895
|
-
|
|
15934
|
+
const _c0$l = [[["dr-modal-header"], ["", "dr-modal-header", ""], ["", "drModalHeader", ""]], [["dr-modal-body"], ["", "dr-modal-body", ""], ["", "drModalBody", ""]], [["dr-modal-footer"], ["", "dr-modal-footer", ""], ["", "drModalFooter", ""]], [["dr-modal-title"], ["", "dr-modal-title", ""], ["", "drModalTitle", ""]], [["dr-modal-subtitle"], ["", "dr-modal-subtitle", ""], ["", "drModalSubtitle", ""]]];
|
|
15935
|
+
const _c1$6 = ["dr-modal-header, [dr-modal-header], [drModalHeader]", "dr-modal-body, [dr-modal-body], [drModalBody]", "dr-modal-footer, [dr-modal-footer], [drModalFooter]", "dr-modal-title, [dr-modal-title], [drModalTitle]", "dr-modal-subtitle, [dr-modal-subtitle], [drModalSubtitle]"];
|
|
15936
|
+
class DrModalComponent {
|
|
15937
|
+
constructor() {
|
|
15938
|
+
this.size = 'md'; // null for custom size
|
|
15939
|
+
this.maxHeight = 'size';
|
|
15940
|
+
this.withHeader = true;
|
|
15941
|
+
this.withCloseBtn = true;
|
|
15942
|
+
}
|
|
15943
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalComponent_Factory(t) { return new (t || DrModalComponent)(); }; }
|
|
15944
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrModalComponent, selectors: [["dr-modal"], ["form", "dr-modal", ""]], contentQueries: function DrModalComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
15945
|
+
i0.ɵɵcontentQuery(dirIndex, DrModalHeaderDirective, 5);
|
|
15946
|
+
} if (rf & 2) {
|
|
15947
|
+
let _t;
|
|
15948
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customHeader = _t.first);
|
|
15949
|
+
} }, hostAttrs: [1, "dr-modal"], hostVars: 4, hostBindings: function DrModalComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
15950
|
+
i0.ɵɵclassMap(ctx.size);
|
|
15951
|
+
i0.ɵɵclassProp("max-height", ctx.maxHeight === "max");
|
|
15952
|
+
} }, inputs: { size: "size", maxHeight: "maxHeight", withHeader: ["withHeader", "withHeader", booleanAttribute], withCloseBtn: ["withCloseBtn", "withCloseBtn", booleanAttribute] }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$6, decls: 4, vars: 1, consts: [[4, "ngIf"], ["aria-label", "Close modal", "drModalClose", "", "type", "button", "data-test", "xBtn", 1, "dr-modal-close-icon"], ["aria-hidden", "true", 1, "dr-icon-exit"]], template: function DrModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15953
|
+
i0.ɵɵprojectionDef(_c0$l);
|
|
15954
|
+
i0.ɵɵprojection(0);
|
|
15955
|
+
i0.ɵɵtemplate(1, DrModalComponent_ng_container_1_Template, 5, 1, "ng-container", 0);
|
|
15956
|
+
i0.ɵɵprojection(2, 1);
|
|
15957
|
+
i0.ɵɵprojection(3, 2);
|
|
15958
|
+
} if (rf & 2) {
|
|
15959
|
+
i0.ɵɵadvance(1);
|
|
15960
|
+
i0.ɵɵproperty("ngIf", ctx.withHeader && !ctx.customHeader);
|
|
15961
|
+
} }, dependencies: [CommonModule, i1.NgIf, DrModalHeaderDirective, DrModalCloseDirective], styles: ["[_nghost-%COMP%]{display:grid;grid-template-rows:auto 1fr auto;min-height:188px;font-family:Poppins,sans-serif;background:#fff;box-shadow:0 2px 36px #00000026;border-radius:12px}[_nghost-%COMP%] .dr-modal-header{position:relative;display:flex;flex-direction:column;min-height:56px;padding:16px 56px 16px 32px;border-bottom:1px solid #dfe0e3}[_nghost-%COMP%] .dr-modal-close-icon{position:absolute;top:16px;right:32px;display:flex;padding:0;background:none;border:none;cursor:pointer;color:#6d6e6f;transition:opacity .1s ease-in-out}[_nghost-%COMP%] .dr-modal-close-icon:hover{opacity:.7}[_nghost-%COMP%] .dr-modal-title{font-size:16px;line-height:24px;font-weight:600;display:flex;align-items:center;gap:8px;margin-top:0;margin-bottom:0;color:#333;font-weight:700}[_nghost-%COMP%] .dr-modal-title [class^=dr-icon]{font-size:32px;line-height:24px;color:#6d6e6f}[_nghost-%COMP%] .dr-modal-subtitle{font-size:14px;line-height:24px;font-weight:400;color:#333;margin:4px 0 0}[_nghost-%COMP%] .dr-modal-body{font-weight:400;font-size:14px;padding:16px 32px 5px;white-space:pre-line;overflow:auto}[_nghost-%COMP%] .dr-modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:10px 32px 11px;border-top:1px solid #dfe0e3}.xs[_nghost-%COMP%]{width:min(400px,95vw);max-height:min(467px,85vh)}.sm[_nghost-%COMP%]{width:min(460px,95vw);max-height:min(345px,85vh)}.md[_nghost-%COMP%]{width:min(632px,95vw);max-height:min(467px,85vh)}.lg[_nghost-%COMP%]{width:min(750px,95vw);max-height:min(800px,85vh)}.xl[_nghost-%COMP%]{width:min(1100px,95vw);max-height:min(800px,85vh)}.max-height[_nghost-%COMP%]{max-height:85vh}"], changeDetection: 0 }); }
|
|
15962
|
+
}
|
|
15963
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalComponent, [{
|
|
15964
|
+
type: Component,
|
|
15965
|
+
args: [{ standalone: true, selector: 'dr-modal, form[dr-modal]', host: { class: 'dr-modal', '[class]': 'size', '[class.max-height]': 'maxHeight === "max"' }, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, DrModalHeaderDirective, DrModalCloseDirective], template: "<ng-content select=\"dr-modal-header, [dr-modal-header], [drModalHeader]\"></ng-content>\n\n<ng-container *ngIf=\"withHeader && !customHeader\">\n <dr-modal-header>\n <ng-content select=\"dr-modal-title, [dr-modal-title], [drModalTitle]\"></ng-content>\n <ng-content select=\"dr-modal-subtitle, [dr-modal-subtitle], [drModalSubtitle]\"></ng-content>\n\n <ng-container *ngIf=\"withCloseBtn\">\n <button class=\"dr-modal-close-icon\" aria-label=\"Close modal\" drModalClose type=\"button\" data-test=\"xBtn\">\n <i class=\"dr-icon-exit\" aria-hidden=\"true\"></i>\n </button>\n </ng-container>\n </dr-modal-header>\n</ng-container>\n\n<ng-content select=\"dr-modal-body, [dr-modal-body], [drModalBody]\"></ng-content>\n\n<ng-content select=\"dr-modal-footer, [dr-modal-footer], [drModalFooter]\"></ng-content>\n", styles: [":host{display:grid;grid-template-rows:auto 1fr auto;min-height:188px;font-family:Poppins,sans-serif;background:#fff;box-shadow:0 2px 36px #00000026;border-radius:12px}:host ::ng-deep .dr-modal-header{position:relative;display:flex;flex-direction:column;min-height:56px;padding:16px 56px 16px 32px;border-bottom:1px solid #dfe0e3}:host ::ng-deep .dr-modal-close-icon{position:absolute;top:16px;right:32px;display:flex;padding:0;background:none;border:none;cursor:pointer;color:#6d6e6f;transition:opacity .1s ease-in-out}:host ::ng-deep .dr-modal-close-icon:hover{opacity:.7}:host ::ng-deep .dr-modal-title{font-size:16px;line-height:24px;font-weight:600;display:flex;align-items:center;gap:8px;margin-top:0;margin-bottom:0;color:#333;font-weight:700}:host ::ng-deep .dr-modal-title [class^=dr-icon]{font-size:32px;line-height:24px;color:#6d6e6f}:host ::ng-deep .dr-modal-subtitle{font-size:14px;line-height:24px;font-weight:400;color:#333;margin:4px 0 0}:host ::ng-deep .dr-modal-body{font-weight:400;font-size:14px;padding:16px 32px 5px;white-space:pre-line;overflow:auto}:host ::ng-deep .dr-modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:10px 32px 11px;border-top:1px solid #dfe0e3}:host.xs{width:min(400px,95vw);max-height:min(467px,85vh)}:host.sm{width:min(460px,95vw);max-height:min(345px,85vh)}:host.md{width:min(632px,95vw);max-height:min(467px,85vh)}:host.lg{width:min(750px,95vw);max-height:min(800px,85vh)}:host.xl{width:min(1100px,95vw);max-height:min(800px,85vh)}:host.max-height{max-height:85vh}\n"] }]
|
|
15966
|
+
}], null, { size: [{
|
|
15967
|
+
type: Input
|
|
15968
|
+
}], maxHeight: [{
|
|
15969
|
+
type: Input
|
|
15970
|
+
}], withHeader: [{
|
|
15971
|
+
type: Input,
|
|
15972
|
+
args: [{ transform: booleanAttribute }]
|
|
15973
|
+
}], withCloseBtn: [{
|
|
15974
|
+
type: Input,
|
|
15975
|
+
args: [{ transform: booleanAttribute }]
|
|
15976
|
+
}], customHeader: [{
|
|
15977
|
+
type: ContentChild,
|
|
15978
|
+
args: [DrModalHeaderDirective]
|
|
15979
|
+
}] }); })();
|
|
15980
|
+
|
|
15981
|
+
function DrModalContainerComponent_ng_template_0_Template(rf, ctx) { }
|
|
15982
|
+
class DrModalContainerComponent extends CdkDialogContainer {
|
|
15983
|
+
constructor() {
|
|
15984
|
+
super(...arguments);
|
|
15985
|
+
this.config = inject(DrModalConfig);
|
|
15986
|
+
this.id = this.config.id;
|
|
15987
|
+
this.animationNoop = inject(ANIMATION_MODULE_TYPE, { optional: true }) === 'NoopAnimations';
|
|
15988
|
+
this.animationClasses = this.getAnimationClasses(this.config.animation);
|
|
15989
|
+
this.animationDuration = this.getAnimationDuration(this.config.animation);
|
|
15990
|
+
this.animationState = signal(null);
|
|
15991
|
+
this.animationClass = computed(() => (this.animationState() ? this.animationClasses[this.animationState()] : ''));
|
|
15992
|
+
this.animationTime = computed(() => this.animationNoop ? 0 : this.animationDuration[this.animationState() ?? 'enter']);
|
|
15993
|
+
this.hasTitle = signal(false); // updated from title directive
|
|
15994
|
+
this.hasSubtitle = signal(false); // updated from subtitle directive
|
|
15995
|
+
this.elementRef = inject(ElementRef);
|
|
15896
15996
|
}
|
|
15897
15997
|
_contentAttached() {
|
|
15998
|
+
// Set the anchor class immediately after creation so "enter" animation would be properly applied
|
|
15999
|
+
this.elementRef.nativeElement.classList.add(this.animationClasses.anchor);
|
|
15898
16000
|
// Delegate to the original dialog-container initialization (i.e. saving the
|
|
15899
16001
|
// previous element, setting up the focus trap and moving focus to the container).
|
|
15900
16002
|
super._contentAttached();
|
|
15901
|
-
this.enter
|
|
15902
|
-
|
|
15903
|
-
|
|
15904
|
-
|
|
15905
|
-
|
|
15906
|
-
|
|
15907
|
-
|
|
15908
|
-
|
|
15909
|
-
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
|
|
15914
|
-
|
|
15915
|
-
|
|
15916
|
-
|
|
15917
|
-
|
|
15918
|
-
}
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
|
|
15928
|
-
|
|
15929
|
-
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
|
|
16003
|
+
this.animationState.set('enter'); // triggers open animation
|
|
16004
|
+
// Wait for the opening animation to finish before trapping focus
|
|
16005
|
+
setTimeout(() => this._trapFocus(), this.animationDuration.enter);
|
|
16006
|
+
}
|
|
16007
|
+
animateClose() {
|
|
16008
|
+
this.animationState.set('leave');
|
|
16009
|
+
// Claim focus from any clickable elements to avoid double submits on fast click/enter press
|
|
16010
|
+
this.elementRef.nativeElement.focus();
|
|
16011
|
+
}
|
|
16012
|
+
getAnimationDuration(animation) {
|
|
16013
|
+
const { enter = 150, leave = 150 } = animation?.duration ?? {};
|
|
16014
|
+
return { enter, leave };
|
|
16015
|
+
}
|
|
16016
|
+
getAnimationClasses(animation) {
|
|
16017
|
+
const { enter = 'mat-enter', leave = 'mat-leave', anchor = 'mat-anchor' } = animation?.class ?? {};
|
|
16018
|
+
return { enter, leave, anchor };
|
|
16019
|
+
}
|
|
16020
|
+
/** @nocollapse */ static { this.ɵfac = /** @pureOrBreakMyCode */ function () { let ɵDrModalContainerComponent_BaseFactory; return function DrModalContainerComponent_Factory(t) { return (ɵDrModalContainerComponent_BaseFactory || (ɵDrModalContainerComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DrModalContainerComponent)))(t || DrModalContainerComponent); }; }(); }
|
|
16021
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrModalContainerComponent, selectors: [["dr-modal-container"]], hostAttrs: [1, "dr-modal-container"], hostVars: 12, hostBindings: function DrModalContainerComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
16022
|
+
i0.ɵɵhostProperty("id", "modal-" + ctx.id);
|
|
16023
|
+
i0.ɵɵattribute("tabindex", -1)("role", "dialog")("aria-modal", true)("aria-labelledby", ctx.hasTitle() ? "modal-" + ctx.id + "-title" : null)("aria-describedby", ctx.hasSubtitle() ? "modal-" + ctx.id + "-subtitle" : null);
|
|
16024
|
+
i0.ɵɵclassMap(ctx.animationClass());
|
|
16025
|
+
i0.ɵɵstyleProp("--dr-modal-animation-time", ctx.animationTime() + "ms");
|
|
16026
|
+
i0.ɵɵclassProp("animation-noop", ctx.animationNoop);
|
|
16027
|
+
} }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 1, vars: 0, consts: [["cdkPortalOutlet", ""]], template: function DrModalContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16028
|
+
i0.ɵɵtemplate(0, DrModalContainerComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
16029
|
+
} }, dependencies: [PortalModule, i1$6.CdkPortalOutlet], styles: ["[_nghost-%COMP%]{position:relative;display:grid;margin:auto;transition:all var(--dr-modal-animation-time, 0ms) ease-in-out}.animation-noop[_nghost-%COMP%]{transition:none!important}.animation-noop[_nghost-%COMP%] .dr-modal{transition:none!important}.mat-anchor[_nghost-%COMP%]{opacity:0}.mat-anchor[_nghost-%COMP%] .dr-modal{transform:scale(.8);transition:transform var(--dr-modal-animation-time, 0ms) cubic-bezier(0,0,.2,1)}.mat-anchor.mat-enter[_nghost-%COMP%]{opacity:1}.mat-anchor.mat-enter[_nghost-%COMP%] .dr-modal{transform:none}.mat-anchor.mat-leave[_nghost-%COMP%]{opacity:0}.mat-anchor.mat-leave[_nghost-%COMP%] .dr-modal{transform:none}"], changeDetection: 0 }); }
|
|
16030
|
+
}
|
|
16031
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalContainerComponent, [{
|
|
16032
|
+
type: Component,
|
|
16033
|
+
args: [{ standalone: true, selector: 'dr-modal-container', template: `<ng-template cdkPortalOutlet></ng-template>`, host: {
|
|
16034
|
+
class: 'dr-modal-container',
|
|
16035
|
+
'[class]': 'animationClass()',
|
|
16036
|
+
'[class.animation-noop]': 'animationNoop',
|
|
16037
|
+
'[style.--dr-modal-animation-time]': 'animationTime() + "ms"',
|
|
16038
|
+
'[id]': '"modal-" + id',
|
|
16039
|
+
'[attr.tabindex]': '-1',
|
|
16040
|
+
'[attr.role]': '"dialog"',
|
|
16041
|
+
'[attr.aria-modal]': 'true',
|
|
16042
|
+
'[attr.aria-labelledby]': 'hasTitle() ? "modal-" + id + "-title" : null',
|
|
16043
|
+
'[attr.aria-describedby]': 'hasSubtitle() ? "modal-" + id + "-subtitle" : null',
|
|
16044
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, imports: [PortalModule], styles: [":host{position:relative;display:grid;margin:auto;transition:all var(--dr-modal-animation-time, 0ms) ease-in-out}:host.animation-noop{transition:none!important}:host.animation-noop ::ng-deep .dr-modal{transition:none!important}:host.mat-anchor{opacity:0}:host.mat-anchor ::ng-deep .dr-modal{transform:scale(.8);transition:transform var(--dr-modal-animation-time, 0ms) cubic-bezier(0,0,.2,1)}:host.mat-anchor.mat-enter{opacity:1}:host.mat-anchor.mat-enter ::ng-deep .dr-modal{transform:none}:host.mat-anchor.mat-leave{opacity:0}:host.mat-anchor.mat-leave ::ng-deep .dr-modal{transform:none}\n"] }]
|
|
16045
|
+
}], null, null); })();
|
|
16046
|
+
|
|
16047
|
+
const slots = [
|
|
16048
|
+
DrModalHeaderDirective,
|
|
16049
|
+
DrModalTitleDirective,
|
|
16050
|
+
DrModalSubtitleDirective,
|
|
16051
|
+
DrModalBodyDirective,
|
|
16052
|
+
DrModalFooterDirective,
|
|
16053
|
+
];
|
|
16054
|
+
class DrModalModule {
|
|
16055
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalModule_Factory(t) { return new (t || DrModalModule)(); }; }
|
|
16056
|
+
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrModalModule }); }
|
|
16057
|
+
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [DrModalComponent] }); }
|
|
16058
|
+
}
|
|
16059
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalModule, [{
|
|
16060
|
+
type: NgModule,
|
|
16061
|
+
args: [{
|
|
16062
|
+
imports: [DrModalComponent, slots, DrModalCloseDirective],
|
|
16063
|
+
exports: [DrModalComponent, slots, DrModalCloseDirective],
|
|
16064
|
+
}]
|
|
16065
|
+
}], null, null); })();
|
|
16066
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrModalModule, { imports: [DrModalComponent, DrModalHeaderDirective,
|
|
16067
|
+
DrModalTitleDirective,
|
|
16068
|
+
DrModalSubtitleDirective,
|
|
16069
|
+
DrModalBodyDirective,
|
|
16070
|
+
DrModalFooterDirective, DrModalCloseDirective], exports: [DrModalComponent, DrModalHeaderDirective,
|
|
16071
|
+
DrModalTitleDirective,
|
|
16072
|
+
DrModalSubtitleDirective,
|
|
16073
|
+
DrModalBodyDirective,
|
|
16074
|
+
DrModalFooterDirective, DrModalCloseDirective] }); })();
|
|
16075
|
+
|
|
16076
|
+
class DrModal {
|
|
16077
|
+
constructor() {
|
|
16078
|
+
this.modalRef = inject(DrModalRef);
|
|
16079
|
+
this.data = this.modalRef.data;
|
|
15934
16080
|
}
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
|
|
16081
|
+
}
|
|
16082
|
+
|
|
16083
|
+
function DrConfirmModalComponent_dr_modal_title_1_Template(rf, ctx) { if (rf & 1) {
|
|
16084
|
+
i0.ɵɵelementStart(0, "dr-modal-title");
|
|
16085
|
+
i0.ɵɵtext(1);
|
|
16086
|
+
i0.ɵɵelementEnd();
|
|
16087
|
+
} if (rf & 2) {
|
|
16088
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16089
|
+
i0.ɵɵadvance(1);
|
|
16090
|
+
i0.ɵɵtextInterpolate(ctx_r0.data.title);
|
|
16091
|
+
} }
|
|
16092
|
+
function DrConfirmModalComponent_div_4_div_1_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
16093
|
+
i0.ɵɵelementStart(0, "label", 17);
|
|
16094
|
+
i0.ɵɵtext(1);
|
|
16095
|
+
i0.ɵɵelementEnd();
|
|
16096
|
+
} if (rf & 2) {
|
|
16097
|
+
const field_r5 = i0.ɵɵnextContext().$implicit;
|
|
16098
|
+
i0.ɵɵclassMap(field_r5.isLabelFullWidth ? "col-md-12 mb-2" : "col-md-2");
|
|
16099
|
+
i0.ɵɵadvance(1);
|
|
16100
|
+
i0.ɵɵtextInterpolate(field_r5.label);
|
|
16101
|
+
} }
|
|
16102
|
+
function DrConfirmModalComponent_div_4_div_1_dr_select_3_Template(rf, ctx) { if (rf & 1) {
|
|
16103
|
+
i0.ɵɵelement(0, "dr-select", 18);
|
|
16104
|
+
i0.ɵɵpipe(1, "async");
|
|
16105
|
+
} if (rf & 2) {
|
|
16106
|
+
const field_r5 = i0.ɵɵnextContext().$implicit;
|
|
16107
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
16108
|
+
i0.ɵɵproperty("searchable", field_r5.searchable)("clearable", field_r5.clearable)("formControlName", field_r5.name)("addTag", field_r5.addTag)("bindLabel", "label")("bindValue", "value")("items", i0.ɵɵpipeBind1(1, 10, field_r5.items$))("loading", ctx_r7.selectLoadings[field_r5.name] == null ? null : ctx_r7.selectLoadings[field_r5.name]())("required", !field_r5.isOptional)("placeholder", field_r5.placeholder);
|
|
16109
|
+
} }
|
|
16110
|
+
function DrConfirmModalComponent_div_4_div_1_dr_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
16111
|
+
i0.ɵɵelement(0, "dr-input", 19);
|
|
16112
|
+
} if (rf & 2) {
|
|
16113
|
+
const field_r5 = i0.ɵɵnextContext().$implicit;
|
|
16114
|
+
i0.ɵɵproperty("formControlName", field_r5.name)("placeholder", field_r5.placeholder);
|
|
16115
|
+
} }
|
|
16116
|
+
function DrConfirmModalComponent_div_4_div_1_dr_date_picker_5_Template(rf, ctx) { if (rf & 1) {
|
|
16117
|
+
i0.ɵɵelement(0, "dr-date-picker", 20);
|
|
16118
|
+
} if (rf & 2) {
|
|
16119
|
+
const field_r5 = i0.ɵɵnextContext().$implicit;
|
|
16120
|
+
i0.ɵɵproperty("formControlName", field_r5.name)("format", field_r5.datePickerFormat)("placeholder", field_r5.placeholder);
|
|
16121
|
+
} }
|
|
16122
|
+
function DrConfirmModalComponent_div_4_div_1_dr_checkbox_6_Template(rf, ctx) { if (rf & 1) {
|
|
16123
|
+
i0.ɵɵelementStart(0, "dr-checkbox", 21);
|
|
16124
|
+
i0.ɵɵtext(1);
|
|
16125
|
+
i0.ɵɵelementEnd();
|
|
16126
|
+
} if (rf & 2) {
|
|
16127
|
+
const field_r5 = i0.ɵɵnextContext().$implicit;
|
|
16128
|
+
i0.ɵɵproperty("formControlName", field_r5.name);
|
|
16129
|
+
i0.ɵɵadvance(1);
|
|
16130
|
+
i0.ɵɵtextInterpolate1(" ", field_r5.label, " ");
|
|
16131
|
+
} }
|
|
16132
|
+
function DrConfirmModalComponent_div_4_div_1_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
16133
|
+
i0.ɵɵelementStart(0, "span", 22);
|
|
16134
|
+
i0.ɵɵtext(1);
|
|
16135
|
+
i0.ɵɵelementEnd();
|
|
16136
|
+
} if (rf & 2) {
|
|
16137
|
+
const ctx_r11 = i0.ɵɵnextContext(3);
|
|
16138
|
+
i0.ɵɵadvance(1);
|
|
16139
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r11.data.errorMessage, " ");
|
|
16140
|
+
} }
|
|
16141
|
+
function DrConfirmModalComponent_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
16142
|
+
i0.ɵɵelementStart(0, "div", 8);
|
|
16143
|
+
i0.ɵɵtemplate(1, DrConfirmModalComponent_div_4_div_1_label_1_Template, 2, 3, "label", 9);
|
|
16144
|
+
i0.ɵɵelementStart(2, "div", 10);
|
|
16145
|
+
i0.ɵɵtemplate(3, DrConfirmModalComponent_div_4_div_1_dr_select_3_Template, 2, 12, "dr-select", 11);
|
|
16146
|
+
i0.ɵɵtemplate(4, DrConfirmModalComponent_div_4_div_1_dr_input_4_Template, 1, 2, "dr-input", 12);
|
|
16147
|
+
i0.ɵɵtemplate(5, DrConfirmModalComponent_div_4_div_1_dr_date_picker_5_Template, 1, 3, "dr-date-picker", 13);
|
|
16148
|
+
i0.ɵɵtemplate(6, DrConfirmModalComponent_div_4_div_1_dr_checkbox_6_Template, 2, 2, "dr-checkbox", 14);
|
|
16149
|
+
i0.ɵɵelement(7, "dr-error", 15);
|
|
16150
|
+
i0.ɵɵtemplate(8, DrConfirmModalComponent_div_4_div_1_span_8_Template, 2, 1, "span", 16);
|
|
16151
|
+
i0.ɵɵelementEnd()();
|
|
16152
|
+
} if (rf & 2) {
|
|
16153
|
+
const field_r5 = ctx.$implicit;
|
|
16154
|
+
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
16155
|
+
i0.ɵɵclassMap(field_r5.fieldClass);
|
|
16156
|
+
i0.ɵɵstyleProp("display", field_r5.isLabelFullWidth ? "block" : "flex");
|
|
16157
|
+
i0.ɵɵadvance(1);
|
|
16158
|
+
i0.ɵɵproperty("ngIf", field_r5.label && field_r5.type !== "checkbox");
|
|
16159
|
+
i0.ɵɵadvance(1);
|
|
16160
|
+
i0.ɵɵclassProp("col-md-10", field_r5.label && !field_r5.isLabelFullWidth)("col-md-12", !field_r5.label || field_r5.isLabelFullWidth);
|
|
16161
|
+
i0.ɵɵadvance(1);
|
|
16162
|
+
i0.ɵɵproperty("ngIf", field_r5.type === "select");
|
|
16163
|
+
i0.ɵɵadvance(1);
|
|
16164
|
+
i0.ɵɵproperty("ngIf", field_r5.type === "input");
|
|
16165
|
+
i0.ɵɵadvance(1);
|
|
16166
|
+
i0.ɵɵproperty("ngIf", field_r5.type === "date_picker");
|
|
16167
|
+
i0.ɵɵadvance(1);
|
|
16168
|
+
i0.ɵɵproperty("ngIf", field_r5.type === "checkbox");
|
|
16169
|
+
i0.ɵɵadvance(1);
|
|
16170
|
+
i0.ɵɵproperty("controlName", field_r5.name)("noIcon", true)("displayAsLabel", true);
|
|
16171
|
+
i0.ɵɵadvance(1);
|
|
16172
|
+
i0.ɵɵproperty("ngIf", ctx_r4.data.errorMessage && !ctx_r4.form.pristine && ctx_r4.form.invalid);
|
|
16173
|
+
} }
|
|
16174
|
+
function DrConfirmModalComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
16175
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
16176
|
+
i0.ɵɵtemplate(1, DrConfirmModalComponent_div_4_div_1_Template, 9, 17, "div", 7);
|
|
16177
|
+
i0.ɵɵelementEnd();
|
|
16178
|
+
} if (rf & 2) {
|
|
16179
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
16180
|
+
let tmp_0_0;
|
|
16181
|
+
i0.ɵɵclassMap((tmp_0_0 = ctx_r1.data.formWrapperClass) !== null && tmp_0_0 !== undefined ? tmp_0_0 : "dr-smart-form_wrapper");
|
|
16182
|
+
i0.ɵɵadvance(1);
|
|
16183
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.data.fields);
|
|
16184
|
+
} }
|
|
16185
|
+
function DrConfirmModalComponent_dr_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
16186
|
+
i0.ɵɵelementStart(0, "dr-button", 23);
|
|
16187
|
+
i0.ɵɵtext(1);
|
|
16188
|
+
i0.ɵɵelementEnd();
|
|
16189
|
+
} if (rf & 2) {
|
|
16190
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
16191
|
+
i0.ɵɵproperty("theme", ctx_r2.cancelBtn.theme);
|
|
16192
|
+
i0.ɵɵadvance(1);
|
|
16193
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.cancelBtn.label, " ");
|
|
16194
|
+
} }
|
|
16195
|
+
function DrConfirmModalComponent_dr_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
16196
|
+
i0.ɵɵelementStart(0, "dr-button", 24);
|
|
16197
|
+
i0.ɵɵtext(1);
|
|
16198
|
+
i0.ɵɵelementEnd();
|
|
16199
|
+
} if (rf & 2) {
|
|
16200
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
16201
|
+
i0.ɵɵproperty("theme", ctx_r3.acceptBtn.theme)("disabled", ctx_r3.form.invalid)("isLoading", ctx_r3.isLoading());
|
|
16202
|
+
i0.ɵɵadvance(1);
|
|
16203
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r3.acceptBtn.label, " ");
|
|
16204
|
+
} }
|
|
16205
|
+
class DrConfirmModalComponent extends DrModal {
|
|
16206
|
+
constructor() {
|
|
16207
|
+
super(...arguments);
|
|
16208
|
+
this.cancelBtn = this.data.cancelBtn;
|
|
16209
|
+
this.acceptBtn = this.data.acceptBtn;
|
|
16210
|
+
this.fields = this.data.fields ?? [];
|
|
16211
|
+
this.form = new FormGroup(this.fields.reduce((acc, field) => this.setItemControl(acc, field), {}));
|
|
16212
|
+
this.selectLoadings = this.fields
|
|
16213
|
+
.filter((field) => field.type === 'select')
|
|
16214
|
+
.reduce((acc, field) => this.setItemSelectLoading(acc, field), {});
|
|
16215
|
+
this.isLoading = signal(false);
|
|
16216
|
+
}
|
|
16217
|
+
async onSubmit() {
|
|
16218
|
+
if (this.isLoading())
|
|
15938
16219
|
return;
|
|
15939
|
-
const
|
|
15940
|
-
|
|
15941
|
-
const
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
|
|
15951
|
-
|
|
15952
|
-
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
}
|
|
15967
|
-
this._animationStateChanged.emit(event);
|
|
15968
|
-
}
|
|
15969
|
-
_onAnimationStart(event) {
|
|
15970
|
-
this._animationStateChanged.emit(event);
|
|
15971
|
-
}
|
|
15972
|
-
_captureInitialFocus() { }
|
|
15973
|
-
/** @nocollapse */ static { this.ɵfac = function DrawerContainer_Factory(t) { return new (t || DrawerContainer)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$6.FocusTrapFactory), i0.ɵɵdirectiveInject(DOCUMENT, 8), i0.ɵɵdirectiveInject(DrawerConfig), i0.ɵɵdirectiveInject(i1$6.InteractivityChecker), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.OverlayRef), i0.ɵɵdirectiveInject(i1$6.FocusMonitor)); }; }
|
|
15974
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrawerContainer, selectors: [["dr-drawer-container"]], viewQuery: function DrawerContainer_Query(rf, ctx) { if (rf & 1) {
|
|
15975
|
-
i0.ɵɵviewQuery(CdkPortalOutlet, 7);
|
|
15976
|
-
i0.ɵɵviewQuery(_c0$k, 5);
|
|
15977
|
-
} if (rf & 2) {
|
|
15978
|
-
let _t;
|
|
15979
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._portalOutlet = _t.first);
|
|
15980
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._handleRef = _t.first);
|
|
15981
|
-
} }, hostAttrs: ["tabindex", "-1"], hostVars: 9, hostBindings: function DrawerContainer_HostBindings(rf, ctx) { if (rf & 1) {
|
|
15982
|
-
i0.ɵɵsyntheticHostListener("@state.start", function DrawerContainer_animation_state_start_HostBindingHandler($event) { return ctx._onAnimationStart($event); })("@state.done", function DrawerContainer_animation_state_done_HostBindingHandler($event) { return ctx._onAnimationDone($event); });
|
|
15983
|
-
} if (rf & 2) {
|
|
15984
|
-
i0.ɵɵhostProperty("id", ctx._config.id);
|
|
15985
|
-
i0.ɵɵattribute("role", ctx._config.role)("aria-modal", ctx._config.isModal)("aria-label", ctx._config.ariaLabel);
|
|
15986
|
-
i0.ɵɵsyntheticHostProperty("@state", ctx._animationState);
|
|
15987
|
-
i0.ɵɵclassMap(ctx._drawerPosition);
|
|
15988
|
-
i0.ɵɵclassProp("dr-drawer-container", !ctx._config.unstyled);
|
|
15989
|
-
} }, outputs: { afterResized: "afterResized" }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 3, consts: [["class", "handle", 3, "handle--resize", "handle--dismiss", 4, "ngIf"], [1, "dr-drawer-container__wrapper"], ["cdkPortalOutlet", ""], [1, "handle"], ["handleRef", ""]], template: function DrawerContainer_Template(rf, ctx) { if (rf & 1) {
|
|
15990
|
-
i0.ɵɵtemplate(0, DrawerContainer_div_0_Template, 2, 4, "div", 0);
|
|
15991
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
15992
|
-
i0.ɵɵtemplate(2, DrawerContainer_ng_template_2_Template, 0, 0, "ng-template", 2);
|
|
16220
|
+
const value = this.form.value;
|
|
16221
|
+
this.data.confirmFn && this.isLoading.set(true);
|
|
16222
|
+
const [, error] = this.data.confirmFn ? await withResult(this.data.confirmFn(value)) : [true, null];
|
|
16223
|
+
this.data.confirmFn && this.isLoading.set(false);
|
|
16224
|
+
!error && this.modalRef.close(true);
|
|
16225
|
+
}
|
|
16226
|
+
setItemControl(map, field) {
|
|
16227
|
+
map[field.name] = new FormControl(field.value, {
|
|
16228
|
+
validators: field.validators ?? [],
|
|
16229
|
+
asyncValidators: field.asyncValidators ?? [],
|
|
16230
|
+
});
|
|
16231
|
+
return map;
|
|
16232
|
+
}
|
|
16233
|
+
setItemSelectLoading(map, field) {
|
|
16234
|
+
const isLoading = signal(true);
|
|
16235
|
+
map[field.name] = isLoading;
|
|
16236
|
+
field.items$ = field.items$.pipe(finalize(() => isLoading.set(false)));
|
|
16237
|
+
return map;
|
|
16238
|
+
}
|
|
16239
|
+
/** @nocollapse */ static { this.ɵfac = /** @pureOrBreakMyCode */ function () { let ɵDrConfirmModalComponent_BaseFactory; return function DrConfirmModalComponent_Factory(t) { return (ɵDrConfirmModalComponent_BaseFactory || (ɵDrConfirmModalComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DrConfirmModalComponent)))(t || DrConfirmModalComponent); }; }(); }
|
|
16240
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrConfirmModalComponent, selectors: [["dr-confirm-modal"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 8, vars: 9, consts: [["dr-modal", "", 3, "formGroup", "withCloseBtn", "size", "maxHeight", "ngSubmit"], [4, "ngIf"], [3, "innerHTML"], ["class", "dr-smart-form", 3, "class", 4, "ngIf"], ["drModalClose", "", "type", "button", "data-test", "modalCloseBtn", 3, "theme", 4, "ngIf"], ["type", "submit", "data-test", "modalAddBtn", 3, "theme", "disabled", "isLoading", 4, "ngIf"], [1, "dr-smart-form"], ["class", "dr-smart-form_group", 3, "class", "display", 4, "ngFor", "ngForOf"], [1, "dr-smart-form_group"], ["class", "label p-0 d-flex align-items-center", 3, "class", 4, "ngIf"], [1, "input-group", "p-0"], [3, "searchable", "clearable", "formControlName", "addTag", "bindLabel", "bindValue", "items", "loading", "required", "placeholder", 4, "ngIf"], ["data-test", "modalInput", "class", "form-control", 3, "formControlName", "placeholder", 4, "ngIf"], [3, "formControlName", "format", "placeholder", 4, "ngIf"], [3, "formControlName", 4, "ngIf"], [3, "controlName", "noIcon", "displayAsLabel"], ["class", "form-error-alert", 4, "ngIf"], [1, "label", "p-0", "d-flex", "align-items-center"], [3, "searchable", "clearable", "formControlName", "addTag", "bindLabel", "bindValue", "items", "loading", "required", "placeholder"], ["data-test", "modalInput", 1, "form-control", 3, "formControlName", "placeholder"], [3, "formControlName", "format", "placeholder"], [3, "formControlName"], [1, "form-error-alert"], ["drModalClose", "", "type", "button", "data-test", "modalCloseBtn", 3, "theme"], ["type", "submit", "data-test", "modalAddBtn", 3, "theme", "disabled", "isLoading"]], template: function DrConfirmModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16241
|
+
i0.ɵɵelementStart(0, "form", 0);
|
|
16242
|
+
i0.ɵɵlistener("ngSubmit", function DrConfirmModalComponent_Template_form_ngSubmit_0_listener() { return ctx.onSubmit(); });
|
|
16243
|
+
i0.ɵɵtemplate(1, DrConfirmModalComponent_dr_modal_title_1_Template, 2, 1, "dr-modal-title", 1);
|
|
16244
|
+
i0.ɵɵelementStart(2, "dr-modal-body");
|
|
16245
|
+
i0.ɵɵelement(3, "div", 2);
|
|
16246
|
+
i0.ɵɵtemplate(4, DrConfirmModalComponent_div_4_Template, 2, 3, "div", 3);
|
|
15993
16247
|
i0.ɵɵelementEnd();
|
|
16248
|
+
i0.ɵɵelementStart(5, "dr-modal-footer");
|
|
16249
|
+
i0.ɵɵtemplate(6, DrConfirmModalComponent_dr_button_6_Template, 2, 2, "dr-button", 4);
|
|
16250
|
+
i0.ɵɵtemplate(7, DrConfirmModalComponent_dr_button_7_Template, 2, 4, "dr-button", 5);
|
|
16251
|
+
i0.ɵɵelementEnd()();
|
|
15994
16252
|
} if (rf & 2) {
|
|
15995
|
-
i0.ɵɵproperty("
|
|
16253
|
+
i0.ɵɵproperty("formGroup", ctx.form)("withCloseBtn", ctx.data.withCloseBtn)("size", ctx.data.size)("maxHeight", ctx.data.maxHeight);
|
|
15996
16254
|
i0.ɵɵadvance(1);
|
|
15997
|
-
i0.ɵɵ
|
|
15998
|
-
|
|
16255
|
+
i0.ɵɵproperty("ngIf", ctx.data.title);
|
|
16256
|
+
i0.ɵɵadvance(2);
|
|
16257
|
+
i0.ɵɵproperty("innerHTML", ctx.data.content, i0.ɵɵsanitizeHtml);
|
|
16258
|
+
i0.ɵɵadvance(1);
|
|
16259
|
+
i0.ɵɵproperty("ngIf", ctx.fields.length);
|
|
16260
|
+
i0.ɵɵadvance(2);
|
|
16261
|
+
i0.ɵɵproperty("ngIf", ctx.cancelBtn);
|
|
16262
|
+
i0.ɵɵadvance(1);
|
|
16263
|
+
i0.ɵɵproperty("ngIf", ctx.acceptBtn);
|
|
16264
|
+
} }, dependencies: [CommonModule, i1.NgForOf, i1.NgIf, i1.AsyncPipe, DrModalModule, DrModalComponent, DrModalTitleDirective, DrModalBodyDirective, DrModalFooterDirective, DrModalCloseDirective, FormsModule, i2.ɵNgNoValidate, i2.NgControlStatus, i2.NgControlStatusGroup, i2.RequiredValidator, ReactiveFormsModule, i2.FormGroupDirective, i2.FormControlName, DrInputsModule, DrButtonComponent, CheckboxComponent, DrInputComponent, DrSelectComponent, DrDatePickerComponent, DrErrorModule, DrErrorComponent], styles: [".dr-smart-form[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:22px}.dr-smart-form[_ngcontent-%COMP%] dr-checkbox[_ngcontent-%COMP%]{font-weight:400}.form-error-alert[_ngcontent-%COMP%]{position:absolute;margin-top:5px;font-size:12px;color:#bf1d30}"], changeDetection: 0 }); }
|
|
15999
16265
|
}
|
|
16000
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
16266
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrConfirmModalComponent, [{
|
|
16001
16267
|
type: Component,
|
|
16002
|
-
args: [{ selector: 'dr-
|
|
16003
|
-
|
|
16004
|
-
'[class]': '_drawerPosition',
|
|
16005
|
-
tabindex: '-1',
|
|
16006
|
-
'[id]': '_config.id',
|
|
16007
|
-
'[attr.role]': '_config.role',
|
|
16008
|
-
'[attr.aria-modal]': '_config.isModal',
|
|
16009
|
-
'[attr.aria-label]': '_config.ariaLabel',
|
|
16010
|
-
'[@state]': '_animationState',
|
|
16011
|
-
'(@state.start)': '_onAnimationStart($event)',
|
|
16012
|
-
'(@state.done)': '_onAnimationDone($event)',
|
|
16013
|
-
}, standalone: true, imports: [PortalModule, DialogModule, MatCommonModule, CommonModule], template: "<div\n *ngIf=\"_config.position === 'bottom' && !_config.unstyled\"\n #handleRef\n class=\"handle\"\n [class.handle--resize]=\"_config.dragMode === 'resize'\"\n [class.handle--dismiss]=\"_config.dragMode === 'dismiss'\"></div>\n<div class=\"dr-drawer-container__wrapper\" [class.unstyled-wrapper]=\"_config.unstyled\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n", styles: [".dr-drawer-container{display:flex;flex-direction:column;width:100%;height:100%;overflow:auto;outline:0;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 14px #d8d9de80}.dr-drawer-container__wrapper{flex:1;overflow:auto}.dr-drawer-container__wrapper.unstyled-wrapper{flex:unset;overflow:unset}.cdk-high-contrast-active .dr-drawer-container{outline:1px solid}.handle{position:relative;height:24px;user-select:none;-webkit-user-select:none;flex-shrink:0}.handle--resize{cursor:ns-resize}.handle--dismiss{cursor:pointer}.handle:after{content:\"\";position:absolute;top:16px;left:50%;transform:translate(-50%,-50%);background-color:#dfe0e3;height:4px;width:64px;border-radius:16px;transition:background-color .2s ease}.handle:hover:after{background-color:#b6b8bf}.handle:active:after{background-color:#9b9ea8}.dr-drawer-right{transform:translate(100%);border-top-left-radius:16px;border-bottom-left-radius:16px}.dr-drawer-left{transform:translate(-100%);border-top-right-radius:16px;border-bottom-right-radius:16px}.dr-drawer-bottom{transform:translateY(100%);border-top-left-radius:16px;border-top-right-radius:16px}.dr-drawer-top{transform:translateY(-100%);border-bottom-left-radius:16px;border-bottom-right-radius:16px}\n"] }]
|
|
16014
|
-
}], function () { return [{ type: i0.ElementRef }, { type: i1$6.FocusTrapFactory }, { type: Document, decorators: [{
|
|
16015
|
-
type: Optional
|
|
16016
|
-
}, {
|
|
16017
|
-
type: Inject,
|
|
16018
|
-
args: [DOCUMENT]
|
|
16019
|
-
}] }, { type: DrawerConfig }, { type: i1$6.InteractivityChecker }, { type: i0.NgZone }, { type: i1$1.OverlayRef }, { type: i1$6.FocusMonitor }]; }, { _portalOutlet: [{
|
|
16020
|
-
type: ViewChild,
|
|
16021
|
-
args: [CdkPortalOutlet, { static: true }]
|
|
16022
|
-
}], _handleRef: [{
|
|
16023
|
-
type: ViewChild,
|
|
16024
|
-
args: ['handleRef']
|
|
16025
|
-
}], afterResized: [{
|
|
16026
|
-
type: Output
|
|
16027
|
-
}] }); })();
|
|
16268
|
+
args: [{ standalone: true, selector: 'dr-confirm-modal', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, DrModalModule, FormsModule, ReactiveFormsModule, DrInputsModule, DrErrorModule, DrButtonComponent], template: "<form\n dr-modal\n [formGroup]=\"form\"\n [withCloseBtn]=\"data.withCloseBtn\"\n [size]=\"data.size\"\n [maxHeight]=\"data.maxHeight\"\n (ngSubmit)=\"onSubmit()\">\n <dr-modal-title *ngIf=\"data.title\">{{ data.title }}</dr-modal-title>\n\n <dr-modal-body>\n <div [innerHTML]=\"data.content\"></div>\n\n <div *ngIf=\"fields.length\" class=\"dr-smart-form\" [class]=\"data.formWrapperClass ?? 'dr-smart-form_wrapper'\">\n <div\n *ngFor=\"let field of data.fields\"\n class=\"dr-smart-form_group\"\n [class]=\"field.fieldClass\"\n [style.display]=\"field.isLabelFullWidth ? 'block' : 'flex'\">\n <label\n *ngIf=\"field.label && field.type !== 'checkbox'\"\n class=\"label p-0 d-flex align-items-center\"\n [class]=\"field.isLabelFullWidth ? 'col-md-12 mb-2' : 'col-md-2'\"\n >{{ field.label }}</label\n >\n <div\n class=\"input-group p-0\"\n [class.col-md-10]=\"field.label && !field.isLabelFullWidth\"\n [class.col-md-12]=\"!field.label || field.isLabelFullWidth\">\n <dr-select\n *ngIf=\"field.type === 'select'\"\n [searchable]=\"field.searchable\"\n [clearable]=\"field.clearable\"\n [formControlName]=\"field.name\"\n [addTag]=\"field.addTag\"\n [bindLabel]=\"'label'\"\n [bindValue]=\"'value'\"\n [items]=\"field.items$ | async\"\n [loading]=\"selectLoadings[field.name]?.()\"\n [required]=\"!field.isOptional\"\n [placeholder]=\"field.placeholder\">\n </dr-select>\n\n <dr-input\n *ngIf=\"field.type === 'input'\"\n data-test=\"modalInput\"\n class=\"form-control\"\n [formControlName]=\"field.name\"\n [placeholder]=\"field.placeholder\"></dr-input>\n\n <dr-date-picker\n *ngIf=\"field.type === 'date_picker'\"\n [formControlName]=\"field.name\"\n [format]=\"field.datePickerFormat\"\n [placeholder]=\"field.placeholder\"></dr-date-picker>\n\n <dr-checkbox *ngIf=\"field.type === 'checkbox'\" [formControlName]=\"field.name\">\n {{ field.label }}\n </dr-checkbox>\n\n <dr-error [controlName]=\"field.name\" [noIcon]=\"true\" [displayAsLabel]=\"true\"></dr-error>\n\n <span *ngIf=\"data.errorMessage && !form.pristine && form.invalid\" class=\"form-error-alert\">\n {{ data.errorMessage }}\n </span>\n </div>\n </div>\n </div>\n </dr-modal-body>\n\n <dr-modal-footer>\n <dr-button *ngIf=\"cancelBtn\" drModalClose type=\"button\" [theme]=\"cancelBtn.theme\" data-test=\"modalCloseBtn\">\n {{ cancelBtn.label }}\n </dr-button>\n\n <dr-button\n *ngIf=\"acceptBtn\"\n type=\"submit\"\n [theme]=\"acceptBtn.theme\"\n [disabled]=\"form.invalid\"\n [isLoading]=\"isLoading()\"\n data-test=\"modalAddBtn\">\n {{ acceptBtn.label }}\n </dr-button>\n </dr-modal-footer>\n</form>\n", styles: [".dr-smart-form{font-size:14px;font-weight:400;line-height:22px}.dr-smart-form dr-checkbox{font-weight:400}.form-error-alert{position:absolute;margin-top:5px;font-size:12px;color:#bf1d30}\n"] }]
|
|
16269
|
+
}], null, null); })();
|
|
16028
16270
|
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16271
|
+
var drConfirmModal_component = /*#__PURE__*/Object.freeze({
|
|
16272
|
+
__proto__: null,
|
|
16273
|
+
DrConfirmModalComponent: DrConfirmModalComponent
|
|
16274
|
+
});
|
|
16275
|
+
|
|
16276
|
+
const DR_MODAL_DEFAULT_CONFIG = new InjectionToken('DR_MODAL_DEFAULT_CONFIG', {
|
|
16277
|
+
providedIn: 'root',
|
|
16278
|
+
factory: () => ({
|
|
16279
|
+
autoFocus: 'input, button[type="submit"], dr-modal-container',
|
|
16280
|
+
hasBackdrop: true,
|
|
16281
|
+
closeOnNavigation: false,
|
|
16282
|
+
width: 'auto',
|
|
16283
|
+
height: 'auto',
|
|
16284
|
+
minHeight: 'auto',
|
|
16285
|
+
backdropClass: 'cdk-overlay-dark-backdrop',
|
|
16286
|
+
}),
|
|
16287
|
+
});
|
|
16288
|
+
|
|
16289
|
+
class DrModalService {
|
|
16290
|
+
constructor(dialog) {
|
|
16291
|
+
this.dialog = dialog;
|
|
16292
|
+
this._modals = [];
|
|
16293
|
+
this.defaultConfig = inject(DR_MODAL_DEFAULT_CONFIG);
|
|
16294
|
+
// start lazy loading of confirmation modal on creation
|
|
16295
|
+
this.confirmComponentPromise = Promise.resolve().then(function () { return drConfirmModal_component; }).then((m) => m.DrConfirmModalComponent);
|
|
16296
|
+
}
|
|
16297
|
+
get modals() {
|
|
16298
|
+
return this._modals;
|
|
16299
|
+
}
|
|
16300
|
+
open(component, config) {
|
|
16301
|
+
// Prevent from opening modal with same id
|
|
16302
|
+
const existingModal = config?.id ? this.modals.find((modal) => modal.config.id === config.id) : null;
|
|
16303
|
+
if (existingModal) {
|
|
16304
|
+
return existingModal;
|
|
16305
|
+
}
|
|
16306
|
+
let modalRef;
|
|
16307
|
+
let drModalConfig;
|
|
16308
|
+
const id = config.id ?? uniqueId$1();
|
|
16309
|
+
const newConfig = {
|
|
16310
|
+
...this.defaultConfig,
|
|
16311
|
+
...config,
|
|
16312
|
+
id,
|
|
16313
|
+
// Disable closing since we need to sync it up to the animation ourselves.
|
|
16314
|
+
disableClose: true,
|
|
16315
|
+
// Disable closing on destroy, because this service cleans up its open modals as well.
|
|
16316
|
+
// We want to do the cleanup here, rather than the CDK service, because the CDK destroys
|
|
16317
|
+
// the dialogs immediately whereas we want it to wait for the animations to finish.
|
|
16318
|
+
closeOnDestroy: false,
|
|
16319
|
+
// Disable closing on detachments so that we can sync up the animation
|
|
16320
|
+
closeOnOverlayDetachments: false,
|
|
16321
|
+
providers: (dialogRef, _config) => {
|
|
16322
|
+
modalRef = new DrModalRef(dialogRef, drModalConfig);
|
|
16323
|
+
return [
|
|
16324
|
+
{ provide: DrModalRef, useValue: modalRef },
|
|
16325
|
+
{ provide: DrModalConfig, useValue: drModalConfig },
|
|
16326
|
+
];
|
|
16327
|
+
},
|
|
16328
|
+
container: {
|
|
16329
|
+
type: DrModalContainerComponent,
|
|
16330
|
+
providers: (_config) => {
|
|
16331
|
+
drModalConfig = { ...config, id };
|
|
16332
|
+
return [{ provide: DrModalConfig, useValue: drModalConfig }];
|
|
16333
|
+
},
|
|
16334
|
+
},
|
|
16335
|
+
};
|
|
16336
|
+
this.dialog.open(component, newConfig);
|
|
16337
|
+
this._modals[modalRef.id] = modalRef;
|
|
16338
|
+
modalRef.afterClosed$.subscribe(() => delete this._modals[modalRef.id]);
|
|
16339
|
+
return modalRef;
|
|
16043
16340
|
}
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
return
|
|
16341
|
+
async confirm(data = {}) {
|
|
16342
|
+
const modalRef = this.open(await this.confirmComponentPromise, { data: this.getConfirmData(data) });
|
|
16343
|
+
return (await firstValueFrom(modalRef.afterClosed$)) || false;
|
|
16047
16344
|
}
|
|
16048
|
-
|
|
16049
|
-
this.
|
|
16050
|
-
/** Subject for notifying the user that the drawer has been dismissed. */
|
|
16051
|
-
this._afterDismissed = new Subject();
|
|
16052
|
-
/** Subject for notifying the user that the drawer has opened and appeared. */
|
|
16053
|
-
this._afterOpened = new Subject();
|
|
16054
|
-
this.containerInstance = containerInstance;
|
|
16055
|
-
this.disableClose = config.disableClose;
|
|
16056
|
-
this.id = _ref.id;
|
|
16057
|
-
// Emit when opening animation completes
|
|
16058
|
-
containerInstance._animationStateChanged
|
|
16059
|
-
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'visible'), take(1))
|
|
16060
|
-
.subscribe(() => {
|
|
16061
|
-
this._afterOpened.next();
|
|
16062
|
-
this._afterOpened.complete();
|
|
16063
|
-
});
|
|
16064
|
-
// Dispose overlay when closing animation is complete
|
|
16065
|
-
containerInstance._animationStateChanged
|
|
16066
|
-
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'hidden'), take(1))
|
|
16067
|
-
.subscribe(() => {
|
|
16068
|
-
clearTimeout(this._closeFallbackTimeout);
|
|
16069
|
-
this._ref.close(this._result);
|
|
16070
|
-
});
|
|
16071
|
-
_ref.overlayRef.detachments().subscribe(() => {
|
|
16072
|
-
this._ref.close(this._result);
|
|
16073
|
-
this._afterDismissed.next(this._result);
|
|
16074
|
-
this._afterDismissed.complete();
|
|
16075
|
-
});
|
|
16076
|
-
merge(this.backdropClick(), this.keydownEvents().pipe(filter((event) => event.keyCode === ESCAPE))).subscribe((event) => {
|
|
16077
|
-
if (!this.disableClose && (event.type !== 'keydown' || !hasModifierKey(event))) {
|
|
16078
|
-
event.preventDefault();
|
|
16079
|
-
this.dismiss();
|
|
16080
|
-
}
|
|
16081
|
-
});
|
|
16082
|
-
this._afterResized$ = containerInstance?.afterResized?.asObservable() ?? EMPTY;
|
|
16345
|
+
closeAll() {
|
|
16346
|
+
[...this.modals].reverse().forEach((modal) => modal.close());
|
|
16083
16347
|
}
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
16092
|
-
|
|
16093
|
-
this.containerInstance._animationStateChanged
|
|
16094
|
-
.pipe(filter((event) => event.phaseName === 'start'), take(1))
|
|
16095
|
-
.subscribe((event) => {
|
|
16096
|
-
// The logic that disposes of the overlay depends on the exit animation completing, however
|
|
16097
|
-
// it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback
|
|
16098
|
-
// timeout which will clean everything up if the animation hasn't fired within the specified
|
|
16099
|
-
// amount of time plus 100ms. We don't need to run this outside the NgZone, because for the
|
|
16100
|
-
// vast majority of cases the timeout will have been cleared before it has fired.
|
|
16101
|
-
this._closeFallbackTimeout = setTimeout(() => {
|
|
16102
|
-
this._ref.close(this._result);
|
|
16103
|
-
}, event.totalTime + 100);
|
|
16104
|
-
this._ref.overlayRef.detachBackdrop();
|
|
16105
|
-
});
|
|
16106
|
-
this._result = result;
|
|
16107
|
-
this.containerInstance.exit();
|
|
16108
|
-
this.containerInstance = null;
|
|
16109
|
-
}
|
|
16348
|
+
getConfirmData(data) {
|
|
16349
|
+
return {
|
|
16350
|
+
size: 'xs',
|
|
16351
|
+
maxHeight: 'size',
|
|
16352
|
+
withCloseBtn: true,
|
|
16353
|
+
cancelBtn: { theme: 'secondary', label: 'Cancel' },
|
|
16354
|
+
acceptBtn: { theme: 'primary', label: 'Confirm' },
|
|
16355
|
+
...data,
|
|
16356
|
+
};
|
|
16110
16357
|
}
|
|
16111
|
-
/**
|
|
16112
|
-
|
|
16113
|
-
|
|
16358
|
+
/** @nocollapse */ static { this.ɵfac = function DrModalService_Factory(t) { return new (t || DrModalService)(i0.ɵɵinject(i1$7.Dialog)); }; }
|
|
16359
|
+
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: DrModalService, factory: DrModalService.ɵfac, providedIn: 'root' }); }
|
|
16360
|
+
}
|
|
16361
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrModalService, [{
|
|
16362
|
+
type: Injectable,
|
|
16363
|
+
args: [{
|
|
16364
|
+
providedIn: 'root',
|
|
16365
|
+
}]
|
|
16366
|
+
}], function () { return [{ type: i1$7.Dialog }]; }, null); })();
|
|
16367
|
+
|
|
16368
|
+
const modalFormInput = (config) => ({
|
|
16369
|
+
...config,
|
|
16370
|
+
type: 'input',
|
|
16371
|
+
});
|
|
16372
|
+
const modalFormCheckbox = (config) => ({
|
|
16373
|
+
...config,
|
|
16374
|
+
type: 'checkbox',
|
|
16375
|
+
});
|
|
16376
|
+
const modalFormDatepicker = (config) => ({
|
|
16377
|
+
...config,
|
|
16378
|
+
type: 'date_picker',
|
|
16379
|
+
});
|
|
16380
|
+
const modalFormSelect = (config, items$) => ({
|
|
16381
|
+
...config,
|
|
16382
|
+
items$,
|
|
16383
|
+
type: 'select',
|
|
16384
|
+
});
|
|
16385
|
+
|
|
16386
|
+
/**
|
|
16387
|
+
* Configuration used when opening a drawer.
|
|
16388
|
+
*/
|
|
16389
|
+
class DrawerConfig {
|
|
16390
|
+
constructor() {
|
|
16391
|
+
/** Data being injected into the child component. */
|
|
16392
|
+
this.data = null;
|
|
16393
|
+
/** Whether the drawer has a backdrop. */
|
|
16394
|
+
this.hasBackdrop = false;
|
|
16395
|
+
/** Whether the user can use escape or clicking outside to close the drawer. */
|
|
16396
|
+
this.disableClose = false;
|
|
16397
|
+
/** Aria label to assign to the drawer element. */
|
|
16398
|
+
this.ariaLabel = null;
|
|
16399
|
+
/** Aria role for the drawer container */
|
|
16400
|
+
this.role = 'dialog';
|
|
16401
|
+
/** Whether the drawer should be treated as a modal dialog */
|
|
16402
|
+
this.isModal = true;
|
|
16403
|
+
/**
|
|
16404
|
+
* Whether the drawer should close when the user goes backwards/forwards in history.
|
|
16405
|
+
* Note that this usually doesn't include clicking on links (unless the user is using
|
|
16406
|
+
* the `HashLocationStrategy`).
|
|
16407
|
+
*/
|
|
16408
|
+
this.closeOnNavigation = true;
|
|
16409
|
+
/**
|
|
16410
|
+
* Where the drawer should focus on open.
|
|
16411
|
+
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
16412
|
+
* AutoFocusTarget instead.
|
|
16413
|
+
*/
|
|
16414
|
+
this.autoFocus = 'first-tabbable';
|
|
16415
|
+
/**
|
|
16416
|
+
* Whether the drawer should restore focus to the
|
|
16417
|
+
* previously-focused element, after it's closed.
|
|
16418
|
+
*/
|
|
16419
|
+
this.restoreFocus = true;
|
|
16420
|
+
/** Position of the drawer. */
|
|
16421
|
+
this.position = 'bottom';
|
|
16422
|
+
/** Whether to render the drawer without default container styles and handle. */
|
|
16423
|
+
this.unstyled = false;
|
|
16424
|
+
/** Drag behavior for bottom drawer. */
|
|
16425
|
+
this.dragMode = 'dismiss';
|
|
16114
16426
|
}
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16427
|
+
}
|
|
16428
|
+
|
|
16429
|
+
/** Animations used by the drawer. */
|
|
16430
|
+
const drDrawerAnimations = {
|
|
16431
|
+
/** Animation that shows and hides a drawer. */
|
|
16432
|
+
drawerState: trigger('state', [
|
|
16433
|
+
state('void, hidden', style({
|
|
16434
|
+
'box-shadow': 'none',
|
|
16435
|
+
visibility: 'hidden',
|
|
16436
|
+
})),
|
|
16437
|
+
state('visible', style({
|
|
16438
|
+
transform: 'none',
|
|
16439
|
+
visibility: 'visible',
|
|
16440
|
+
})),
|
|
16441
|
+
transition('visible => void, visible => hidden', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')),
|
|
16442
|
+
transition('void => visible', animate('150ms cubic-bezier(0, 0, 0.2, 1)')),
|
|
16443
|
+
]),
|
|
16444
|
+
};
|
|
16445
|
+
|
|
16446
|
+
class BottomDismissPositionStrategy {
|
|
16447
|
+
constructor() {
|
|
16448
|
+
this.startMouseY = null;
|
|
16449
|
+
this.deltaY = 0;
|
|
16118
16450
|
}
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
return this._afterOpened;
|
|
16451
|
+
extractMousePosition(event) {
|
|
16452
|
+
return event.clientY;
|
|
16122
16453
|
}
|
|
16123
|
-
|
|
16124
|
-
|
|
16125
|
-
|
|
16454
|
+
onDragStart(container) {
|
|
16455
|
+
this.startMouseY = null;
|
|
16456
|
+
this.deltaY = 0;
|
|
16126
16457
|
}
|
|
16127
|
-
|
|
16128
|
-
|
|
16129
|
-
|
|
16130
|
-
|
|
16131
|
-
|
|
16458
|
+
onDragMove(mouseY, container) {
|
|
16459
|
+
if (this.startMouseY === null) {
|
|
16460
|
+
this.startMouseY = mouseY;
|
|
16461
|
+
return;
|
|
16462
|
+
}
|
|
16463
|
+
this.deltaY = mouseY - this.startMouseY;
|
|
16464
|
+
if (this.deltaY < 0) {
|
|
16465
|
+
this.deltaY = 0;
|
|
16466
|
+
}
|
|
16467
|
+
container.style.transition = 'none';
|
|
16468
|
+
container.style.transform = `translate3d(0px, ${this.deltaY}px, 0px)`;
|
|
16132
16469
|
}
|
|
16133
|
-
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16470
|
+
onDragEnd(container) {
|
|
16471
|
+
const containerHeight = container.getBoundingClientRect().height;
|
|
16472
|
+
const shouldClose = this.deltaY > containerHeight / 2;
|
|
16473
|
+
if (!shouldClose) {
|
|
16474
|
+
container.style.transition = 'transform 0.5s cubic-bezier(0.32, 0.72, 0, 1)';
|
|
16475
|
+
container.style.transform = `translate3d(0px, 0px, 0px)`;
|
|
16476
|
+
}
|
|
16477
|
+
return { shouldClose };
|
|
16138
16478
|
}
|
|
16139
16479
|
}
|
|
16140
|
-
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
|
|
16147
|
-
|
|
16148
|
-
|
|
16149
|
-
|
|
16150
|
-
|
|
16151
|
-
|
|
16152
|
-
|
|
16153
|
-
return
|
|
16480
|
+
class BottomResizePositionStrategy {
|
|
16481
|
+
constructor(config) {
|
|
16482
|
+
this.config = config;
|
|
16483
|
+
this.startMouseY = null;
|
|
16484
|
+
this.startHeightPx = 0;
|
|
16485
|
+
this.currentHeightPx = 0;
|
|
16486
|
+
const viewportH = window.innerHeight;
|
|
16487
|
+
this.minHeightPx = this.toPx(config.minHeight ?? '10vh', viewportH);
|
|
16488
|
+
this.maxHeightPx = this.toPx(config.maxHeight ?? '90vh', viewportH);
|
|
16489
|
+
this.minHeightPx = Math.max(0, this.minHeightPx);
|
|
16490
|
+
this.maxHeightPx = Math.max(this.minHeightPx, this.maxHeightPx);
|
|
16491
|
+
}
|
|
16492
|
+
extractMousePosition(event) {
|
|
16493
|
+
return event.clientY;
|
|
16494
|
+
}
|
|
16495
|
+
onDragStart(container, overlayElement) {
|
|
16496
|
+
this.startMouseY = null;
|
|
16497
|
+
const rect = overlayElement.getBoundingClientRect();
|
|
16498
|
+
this.startHeightPx = rect.height;
|
|
16499
|
+
this.currentHeightPx = this.startHeightPx;
|
|
16500
|
+
overlayElement.style.transition = 'none';
|
|
16501
|
+
overlayElement.style.height = `${this.startHeightPx}px`;
|
|
16502
|
+
overlayElement.style.maxHeight = 'none';
|
|
16503
|
+
container.style.height = '100%';
|
|
16504
|
+
}
|
|
16505
|
+
onDragMove(mouseY, container, overlayElement) {
|
|
16506
|
+
if (this.startMouseY === null) {
|
|
16507
|
+
this.startMouseY = mouseY;
|
|
16508
|
+
return;
|
|
16509
|
+
}
|
|
16510
|
+
const delta = this.startMouseY - mouseY;
|
|
16511
|
+
let nextHeight = this.startHeightPx + delta;
|
|
16512
|
+
nextHeight = Math.max(this.minHeightPx, Math.min(this.maxHeightPx, nextHeight));
|
|
16513
|
+
this.currentHeightPx = nextHeight;
|
|
16514
|
+
overlayElement.style.height = `${nextHeight}px`;
|
|
16515
|
+
}
|
|
16516
|
+
onDragEnd(container, overlayElement) {
|
|
16517
|
+
let height = this.currentHeightPx || overlayElement.getBoundingClientRect().height;
|
|
16518
|
+
height = Math.max(this.minHeightPx, Math.min(this.maxHeightPx, height));
|
|
16519
|
+
overlayElement.style.transition = 'height 200ms cubic-bezier(0.32, 0.72, 0, 1)';
|
|
16520
|
+
overlayElement.style.height = `${height}px`;
|
|
16521
|
+
this.startMouseY = NaN;
|
|
16522
|
+
this.currentHeightPx = height;
|
|
16523
|
+
return { shouldClose: false, height };
|
|
16524
|
+
}
|
|
16525
|
+
toPx(value, viewportH) {
|
|
16526
|
+
if (typeof value === 'number') {
|
|
16527
|
+
return value;
|
|
16528
|
+
}
|
|
16529
|
+
const raw = String(value).trim();
|
|
16530
|
+
if (!raw) {
|
|
16531
|
+
return 0;
|
|
16532
|
+
}
|
|
16533
|
+
if (raw.endsWith('vh')) {
|
|
16534
|
+
const n = parseFloat(raw);
|
|
16535
|
+
return Number.isFinite(n) ? (n / 100) * viewportH : 0;
|
|
16536
|
+
}
|
|
16537
|
+
if (raw.endsWith('px')) {
|
|
16538
|
+
const n = parseFloat(raw);
|
|
16539
|
+
return Number.isFinite(n) ? n : 0;
|
|
16540
|
+
}
|
|
16541
|
+
const asNumber = parseFloat(raw);
|
|
16542
|
+
return Number.isFinite(asNumber) ? asNumber : 0;
|
|
16543
|
+
}
|
|
16544
|
+
}
|
|
16545
|
+
|
|
16546
|
+
const _c0$k = ["handleRef"];
|
|
16547
|
+
function DrawerContainer_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
16548
|
+
i0.ɵɵelement(0, "div", 3, 4);
|
|
16549
|
+
} if (rf & 2) {
|
|
16550
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16551
|
+
i0.ɵɵclassProp("handle--resize", ctx_r0._config.dragMode === "resize")("handle--dismiss", ctx_r0._config.dragMode === "dismiss");
|
|
16552
|
+
} }
|
|
16553
|
+
function DrawerContainer_ng_template_2_Template(rf, ctx) { }
|
|
16554
|
+
/**
|
|
16555
|
+
* Internal component that wraps user-provided drawer content.
|
|
16556
|
+
* @docs-private
|
|
16557
|
+
*/
|
|
16558
|
+
class DrawerContainer extends CdkDialogContainer {
|
|
16559
|
+
get _drawerPosition() {
|
|
16560
|
+
return this._config.unstyled ? '' : `dr-drawer-${this._config.position}`;
|
|
16561
|
+
}
|
|
16562
|
+
constructor(elementRef, focusTrapFactory, document, config, checker, ngZone, overlayRef, focusMonitor) {
|
|
16563
|
+
super(elementRef, focusTrapFactory, document, config, checker, ngZone, overlayRef, focusMonitor);
|
|
16564
|
+
this.overlayRef = overlayRef;
|
|
16565
|
+
/** Emits final height (px) after resize. Available only in resize mode. */
|
|
16566
|
+
this.afterResized = new EventEmitter();
|
|
16567
|
+
/** The state of the drawer animations. */
|
|
16568
|
+
this._animationState = 'void';
|
|
16569
|
+
/** Emits whenever the state of the animation changes. */
|
|
16570
|
+
this._animationStateChanged = new EventEmitter();
|
|
16571
|
+
/** Whether the component has been destroyed. */
|
|
16572
|
+
this._destroyed = false;
|
|
16573
|
+
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
16574
|
+
this.destroy$ = new Subject();
|
|
16575
|
+
}
|
|
16576
|
+
_contentAttached() {
|
|
16577
|
+
// Delegate to the original dialog-container initialization (i.e. saving the
|
|
16578
|
+
// previous element, setting up the focus trap and moving focus to the container).
|
|
16579
|
+
super._contentAttached();
|
|
16580
|
+
this.enter();
|
|
16581
|
+
}
|
|
16582
|
+
/** Begin animation of bottom sheet entrance into view. */
|
|
16583
|
+
enter() {
|
|
16584
|
+
if (!this._destroyed) {
|
|
16585
|
+
this._animationState = 'visible';
|
|
16586
|
+
this._changeDetectorRef.markForCheck();
|
|
16587
|
+
this._changeDetectorRef.detectChanges();
|
|
16588
|
+
}
|
|
16589
|
+
}
|
|
16590
|
+
/** Begin animation of the bottom sheet exiting from view. */
|
|
16591
|
+
exit() {
|
|
16592
|
+
this._elementRef.nativeElement.style.transition = undefined;
|
|
16593
|
+
if (!this._destroyed) {
|
|
16594
|
+
this._animationState = 'hidden';
|
|
16595
|
+
this._changeDetectorRef.markForCheck();
|
|
16596
|
+
}
|
|
16597
|
+
}
|
|
16598
|
+
ngAfterViewInit() {
|
|
16599
|
+
this.positionStrategy = this.resolvePositionStrategy();
|
|
16600
|
+
if (this.positionStrategy && !this._config.unstyled && this._handleRef) {
|
|
16601
|
+
this.setupDragListener();
|
|
16602
|
+
}
|
|
16603
|
+
}
|
|
16604
|
+
resolvePositionStrategy() {
|
|
16605
|
+
switch (this._config.position) {
|
|
16606
|
+
case 'bottom':
|
|
16607
|
+
return this._config.dragMode === 'resize'
|
|
16608
|
+
? new BottomResizePositionStrategy(this._config)
|
|
16609
|
+
: new BottomDismissPositionStrategy();
|
|
16610
|
+
default:
|
|
16611
|
+
return undefined;
|
|
16612
|
+
}
|
|
16613
|
+
}
|
|
16614
|
+
setupDragListener() {
|
|
16615
|
+
const strategy = this.positionStrategy;
|
|
16616
|
+
if (!strategy)
|
|
16617
|
+
return;
|
|
16618
|
+
const mousedown$ = fromEvent(this._handleRef.nativeElement, 'mousedown');
|
|
16619
|
+
const mousemove$ = fromEvent(document, 'mousemove');
|
|
16620
|
+
const mouseup$ = fromEvent(document, 'mouseup');
|
|
16621
|
+
const container = this._elementRef.nativeElement;
|
|
16622
|
+
const overlayElement = this.overlayRef.overlayElement;
|
|
16623
|
+
mousedown$
|
|
16624
|
+
.pipe(tap$1(() => strategy.onDragStart(container, overlayElement)), switchMap$1(() => mousemove$.pipe(takeUntil$1(mouseup$), finalize$1(() => {
|
|
16625
|
+
const result = strategy.onDragEnd(container, overlayElement);
|
|
16626
|
+
if (result.shouldClose) {
|
|
16627
|
+
this.overlayRef.dispose();
|
|
16628
|
+
return;
|
|
16629
|
+
}
|
|
16630
|
+
if (result.height !== undefined) {
|
|
16631
|
+
this.afterResized.emit(result.height);
|
|
16632
|
+
}
|
|
16633
|
+
}))), map$1((event) => strategy.extractMousePosition(event)), distinctUntilChanged$1(), tap$1((position) => strategy.onDragMove(position, container, overlayElement)), takeUntil$1(this.destroy$))
|
|
16634
|
+
.subscribe();
|
|
16635
|
+
}
|
|
16636
|
+
ngOnDestroy() {
|
|
16637
|
+
super.ngOnDestroy();
|
|
16638
|
+
this.destroy$.next();
|
|
16639
|
+
this.destroy$.complete();
|
|
16640
|
+
this._destroyed = true;
|
|
16641
|
+
}
|
|
16642
|
+
_onAnimationDone(event) {
|
|
16643
|
+
if (event.toState === 'visible') {
|
|
16644
|
+
this._trapFocus();
|
|
16645
|
+
}
|
|
16646
|
+
this._animationStateChanged.emit(event);
|
|
16647
|
+
}
|
|
16648
|
+
_onAnimationStart(event) {
|
|
16649
|
+
this._animationStateChanged.emit(event);
|
|
16650
|
+
}
|
|
16651
|
+
_captureInitialFocus() { }
|
|
16652
|
+
/** @nocollapse */ static { this.ɵfac = function DrawerContainer_Factory(t) { return new (t || DrawerContainer)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$8.FocusTrapFactory), i0.ɵɵdirectiveInject(DOCUMENT, 8), i0.ɵɵdirectiveInject(DrawerConfig), i0.ɵɵdirectiveInject(i1$8.InteractivityChecker), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.OverlayRef), i0.ɵɵdirectiveInject(i1$8.FocusMonitor)); }; }
|
|
16653
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrawerContainer, selectors: [["dr-drawer-container"]], viewQuery: function DrawerContainer_Query(rf, ctx) { if (rf & 1) {
|
|
16654
|
+
i0.ɵɵviewQuery(CdkPortalOutlet, 7);
|
|
16655
|
+
i0.ɵɵviewQuery(_c0$k, 5);
|
|
16656
|
+
} if (rf & 2) {
|
|
16657
|
+
let _t;
|
|
16658
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._portalOutlet = _t.first);
|
|
16659
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._handleRef = _t.first);
|
|
16660
|
+
} }, hostAttrs: ["tabindex", "-1"], hostVars: 9, hostBindings: function DrawerContainer_HostBindings(rf, ctx) { if (rf & 1) {
|
|
16661
|
+
i0.ɵɵsyntheticHostListener("@state.start", function DrawerContainer_animation_state_start_HostBindingHandler($event) { return ctx._onAnimationStart($event); })("@state.done", function DrawerContainer_animation_state_done_HostBindingHandler($event) { return ctx._onAnimationDone($event); });
|
|
16662
|
+
} if (rf & 2) {
|
|
16663
|
+
i0.ɵɵhostProperty("id", ctx._config.id);
|
|
16664
|
+
i0.ɵɵattribute("role", ctx._config.role)("aria-modal", ctx._config.isModal)("aria-label", ctx._config.ariaLabel);
|
|
16665
|
+
i0.ɵɵsyntheticHostProperty("@state", ctx._animationState);
|
|
16666
|
+
i0.ɵɵclassMap(ctx._drawerPosition);
|
|
16667
|
+
i0.ɵɵclassProp("dr-drawer-container", !ctx._config.unstyled);
|
|
16668
|
+
} }, outputs: { afterResized: "afterResized" }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 3, consts: [["class", "handle", 3, "handle--resize", "handle--dismiss", 4, "ngIf"], [1, "dr-drawer-container__wrapper"], ["cdkPortalOutlet", ""], [1, "handle"], ["handleRef", ""]], template: function DrawerContainer_Template(rf, ctx) { if (rf & 1) {
|
|
16669
|
+
i0.ɵɵtemplate(0, DrawerContainer_div_0_Template, 2, 4, "div", 0);
|
|
16670
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
16671
|
+
i0.ɵɵtemplate(2, DrawerContainer_ng_template_2_Template, 0, 0, "ng-template", 2);
|
|
16672
|
+
i0.ɵɵelementEnd();
|
|
16673
|
+
} if (rf & 2) {
|
|
16674
|
+
i0.ɵɵproperty("ngIf", ctx._config.position === "bottom" && !ctx._config.unstyled);
|
|
16675
|
+
i0.ɵɵadvance(1);
|
|
16676
|
+
i0.ɵɵclassProp("unstyled-wrapper", ctx._config.unstyled);
|
|
16677
|
+
} }, dependencies: [PortalModule, i1$6.CdkPortalOutlet, DialogModule, MatCommonModule, CommonModule, i1.NgIf], styles: [".dr-drawer-container{display:flex;flex-direction:column;width:100%;height:100%;overflow:auto;outline:0;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 14px #d8d9de80}.dr-drawer-container__wrapper{flex:1;overflow:auto}.dr-drawer-container__wrapper.unstyled-wrapper{flex:unset;overflow:unset}.cdk-high-contrast-active .dr-drawer-container{outline:1px solid}.handle{position:relative;height:24px;user-select:none;-webkit-user-select:none;flex-shrink:0}.handle--resize{cursor:ns-resize}.handle--dismiss{cursor:pointer}.handle:after{content:\"\";position:absolute;top:16px;left:50%;transform:translate(-50%,-50%);background-color:#dfe0e3;height:4px;width:64px;border-radius:16px;transition:background-color .2s ease}.handle:hover:after{background-color:#b6b8bf}.handle:active:after{background-color:#9b9ea8}.dr-drawer-right{transform:translate(100%);border-top-left-radius:16px;border-bottom-left-radius:16px}.dr-drawer-left{transform:translate(-100%);border-top-right-radius:16px;border-bottom-right-radius:16px}.dr-drawer-bottom{transform:translateY(100%);border-top-left-radius:16px;border-top-right-radius:16px}.dr-drawer-top{transform:translateY(-100%);border-bottom-left-radius:16px;border-bottom-right-radius:16px}\n"], encapsulation: 2, data: { animation: [drDrawerAnimations.drawerState] } }); }
|
|
16678
|
+
}
|
|
16679
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawerContainer, [{
|
|
16680
|
+
type: Component,
|
|
16681
|
+
args: [{ selector: 'dr-drawer-container', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, animations: [drDrawerAnimations.drawerState], host: {
|
|
16682
|
+
'[class.dr-drawer-container]': '!_config.unstyled',
|
|
16683
|
+
'[class]': '_drawerPosition',
|
|
16684
|
+
tabindex: '-1',
|
|
16685
|
+
'[id]': '_config.id',
|
|
16686
|
+
'[attr.role]': '_config.role',
|
|
16687
|
+
'[attr.aria-modal]': '_config.isModal',
|
|
16688
|
+
'[attr.aria-label]': '_config.ariaLabel',
|
|
16689
|
+
'[@state]': '_animationState',
|
|
16690
|
+
'(@state.start)': '_onAnimationStart($event)',
|
|
16691
|
+
'(@state.done)': '_onAnimationDone($event)',
|
|
16692
|
+
}, standalone: true, imports: [PortalModule, DialogModule, MatCommonModule, CommonModule], template: "<div\n *ngIf=\"_config.position === 'bottom' && !_config.unstyled\"\n #handleRef\n class=\"handle\"\n [class.handle--resize]=\"_config.dragMode === 'resize'\"\n [class.handle--dismiss]=\"_config.dragMode === 'dismiss'\"></div>\n<div class=\"dr-drawer-container__wrapper\" [class.unstyled-wrapper]=\"_config.unstyled\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n", styles: [".dr-drawer-container{display:flex;flex-direction:column;width:100%;height:100%;overflow:auto;outline:0;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 14px #d8d9de80}.dr-drawer-container__wrapper{flex:1;overflow:auto}.dr-drawer-container__wrapper.unstyled-wrapper{flex:unset;overflow:unset}.cdk-high-contrast-active .dr-drawer-container{outline:1px solid}.handle{position:relative;height:24px;user-select:none;-webkit-user-select:none;flex-shrink:0}.handle--resize{cursor:ns-resize}.handle--dismiss{cursor:pointer}.handle:after{content:\"\";position:absolute;top:16px;left:50%;transform:translate(-50%,-50%);background-color:#dfe0e3;height:4px;width:64px;border-radius:16px;transition:background-color .2s ease}.handle:hover:after{background-color:#b6b8bf}.handle:active:after{background-color:#9b9ea8}.dr-drawer-right{transform:translate(100%);border-top-left-radius:16px;border-bottom-left-radius:16px}.dr-drawer-left{transform:translate(-100%);border-top-right-radius:16px;border-bottom-right-radius:16px}.dr-drawer-bottom{transform:translateY(100%);border-top-left-radius:16px;border-top-right-radius:16px}.dr-drawer-top{transform:translateY(-100%);border-bottom-left-radius:16px;border-bottom-right-radius:16px}\n"] }]
|
|
16693
|
+
}], function () { return [{ type: i0.ElementRef }, { type: i1$8.FocusTrapFactory }, { type: Document, decorators: [{
|
|
16694
|
+
type: Optional
|
|
16695
|
+
}, {
|
|
16696
|
+
type: Inject,
|
|
16697
|
+
args: [DOCUMENT]
|
|
16698
|
+
}] }, { type: DrawerConfig }, { type: i1$8.InteractivityChecker }, { type: i0.NgZone }, { type: i1$1.OverlayRef }, { type: i1$8.FocusMonitor }]; }, { _portalOutlet: [{
|
|
16699
|
+
type: ViewChild,
|
|
16700
|
+
args: [CdkPortalOutlet, { static: true }]
|
|
16701
|
+
}], _handleRef: [{
|
|
16702
|
+
type: ViewChild,
|
|
16703
|
+
args: ['handleRef']
|
|
16704
|
+
}], afterResized: [{
|
|
16705
|
+
type: Output
|
|
16706
|
+
}] }); })();
|
|
16707
|
+
|
|
16708
|
+
/**
|
|
16709
|
+
* Reference to a drawer dispatched from the drawer service.
|
|
16710
|
+
*/
|
|
16711
|
+
class DrawerRef {
|
|
16712
|
+
/** Instance of the component making up the content of the drawer. */
|
|
16713
|
+
get instance() {
|
|
16714
|
+
return this._ref.componentInstance;
|
|
16715
|
+
}
|
|
16716
|
+
/**
|
|
16717
|
+
* `ComponentRef` of the component opened into the drawer. Will be
|
|
16718
|
+
* null when the drawer is opened using a `TemplateRef`.
|
|
16719
|
+
*/
|
|
16720
|
+
get componentRef() {
|
|
16721
|
+
return this._ref.componentRef;
|
|
16722
|
+
}
|
|
16723
|
+
/** Gets the overlay element for the drawer. */
|
|
16724
|
+
get overlayElement() {
|
|
16725
|
+
return this._ref.overlayRef.overlayElement;
|
|
16726
|
+
}
|
|
16727
|
+
constructor(_ref, config, containerInstance) {
|
|
16728
|
+
this._ref = _ref;
|
|
16729
|
+
/** Subject for notifying the user that the drawer has been dismissed. */
|
|
16730
|
+
this._afterDismissed = new Subject();
|
|
16731
|
+
/** Subject for notifying the user that the drawer has opened and appeared. */
|
|
16732
|
+
this._afterOpened = new Subject();
|
|
16733
|
+
this.containerInstance = containerInstance;
|
|
16734
|
+
this.disableClose = config.disableClose;
|
|
16735
|
+
this.id = _ref.id;
|
|
16736
|
+
// Emit when opening animation completes
|
|
16737
|
+
containerInstance._animationStateChanged
|
|
16738
|
+
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'visible'), take$1(1))
|
|
16739
|
+
.subscribe(() => {
|
|
16740
|
+
this._afterOpened.next();
|
|
16741
|
+
this._afterOpened.complete();
|
|
16742
|
+
});
|
|
16743
|
+
// Dispose overlay when closing animation is complete
|
|
16744
|
+
containerInstance._animationStateChanged
|
|
16745
|
+
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'hidden'), take$1(1))
|
|
16746
|
+
.subscribe(() => {
|
|
16747
|
+
clearTimeout(this._closeFallbackTimeout);
|
|
16748
|
+
this._ref.close(this._result);
|
|
16749
|
+
});
|
|
16750
|
+
_ref.overlayRef.detachments().subscribe(() => {
|
|
16751
|
+
this._ref.close(this._result);
|
|
16752
|
+
this._afterDismissed.next(this._result);
|
|
16753
|
+
this._afterDismissed.complete();
|
|
16754
|
+
});
|
|
16755
|
+
merge(this.backdropClick(), this.keydownEvents().pipe(filter((event) => event.keyCode === ESCAPE))).subscribe((event) => {
|
|
16756
|
+
if (!this.disableClose && (event.type !== 'keydown' || !hasModifierKey(event))) {
|
|
16757
|
+
event.preventDefault();
|
|
16758
|
+
this.dismiss();
|
|
16759
|
+
}
|
|
16760
|
+
});
|
|
16761
|
+
this._afterResized$ = containerInstance?.afterResized?.asObservable() ?? EMPTY;
|
|
16762
|
+
}
|
|
16763
|
+
/**
|
|
16764
|
+
* Dismisses the drawer.
|
|
16765
|
+
* @param result Data to be passed back to the drawer opener.
|
|
16766
|
+
*/
|
|
16767
|
+
dismiss(result) {
|
|
16768
|
+
this._afterDismissed.next(result);
|
|
16769
|
+
this._afterDismissed.complete();
|
|
16770
|
+
if (this.containerInstance && !this._afterDismissed.closed) {
|
|
16771
|
+
// Transition the backdrop in parallel to the drawer.
|
|
16772
|
+
this.containerInstance._animationStateChanged
|
|
16773
|
+
.pipe(filter((event) => event.phaseName === 'start'), take$1(1))
|
|
16774
|
+
.subscribe((event) => {
|
|
16775
|
+
// The logic that disposes of the overlay depends on the exit animation completing, however
|
|
16776
|
+
// it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback
|
|
16777
|
+
// timeout which will clean everything up if the animation hasn't fired within the specified
|
|
16778
|
+
// amount of time plus 100ms. We don't need to run this outside the NgZone, because for the
|
|
16779
|
+
// vast majority of cases the timeout will have been cleared before it has fired.
|
|
16780
|
+
this._closeFallbackTimeout = setTimeout(() => {
|
|
16781
|
+
this._ref.close(this._result);
|
|
16782
|
+
}, event.totalTime + 100);
|
|
16783
|
+
this._ref.overlayRef.detachBackdrop();
|
|
16784
|
+
});
|
|
16785
|
+
this._result = result;
|
|
16786
|
+
this.containerInstance.exit();
|
|
16787
|
+
this.containerInstance = null;
|
|
16788
|
+
}
|
|
16789
|
+
}
|
|
16790
|
+
/** Gets an observable that is notified when the drawer is dismissed. */
|
|
16791
|
+
afterDismissed() {
|
|
16792
|
+
return this._afterDismissed;
|
|
16793
|
+
}
|
|
16794
|
+
/** Gets an observable that is notified when the drawer is finished closing. */
|
|
16795
|
+
afterClosed() {
|
|
16796
|
+
return this._ref.closed;
|
|
16797
|
+
}
|
|
16798
|
+
/** Gets an observable that is notified when the drawer has opened and appeared. */
|
|
16799
|
+
afterOpened() {
|
|
16800
|
+
return this._afterOpened;
|
|
16801
|
+
}
|
|
16802
|
+
/** Gets an observable that emits the final height (px) after resize. Available only in resize mode. */
|
|
16803
|
+
afterResized() {
|
|
16804
|
+
return this._afterResized$;
|
|
16805
|
+
}
|
|
16806
|
+
/**
|
|
16807
|
+
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
16808
|
+
*/
|
|
16809
|
+
backdropClick() {
|
|
16810
|
+
return this._ref.backdropClick;
|
|
16811
|
+
}
|
|
16812
|
+
/**
|
|
16813
|
+
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
16814
|
+
*/
|
|
16815
|
+
keydownEvents() {
|
|
16816
|
+
return this._ref.keydownEvents;
|
|
16817
|
+
}
|
|
16818
|
+
}
|
|
16819
|
+
|
|
16820
|
+
/** Injection token that can be used to access the data that was passed in to a drawer. */
|
|
16821
|
+
const DR_DRAWER_DATA = new InjectionToken('DrDrawerData');
|
|
16822
|
+
/** Injection token that can be used to specify default drawer options. */
|
|
16823
|
+
const DR_DRAWER_DEFAULT_OPTIONS = new InjectionToken('dr-drawer-default-options');
|
|
16824
|
+
// Counter for unique drawer ids.
|
|
16825
|
+
let uniqueId = 0;
|
|
16826
|
+
/**
|
|
16827
|
+
* Service to trigger Material Design bottom sheets.
|
|
16828
|
+
*/
|
|
16829
|
+
class Drawer {
|
|
16830
|
+
/** Keeps track of the currently-open dialogs. */
|
|
16831
|
+
get openDrawers() {
|
|
16832
|
+
return this._parentDrawer ? this._parentDrawer.openDrawers : this._openDrawersAtThisLevel;
|
|
16833
|
+
}
|
|
16834
|
+
/** Stream that emits when a drawer has been opened. */
|
|
16835
|
+
get afterOpened() {
|
|
16836
|
+
return this._parentDrawer ? this._parentDrawer.afterOpened : this._afterOpenedAtThisLevel;
|
|
16837
|
+
}
|
|
16838
|
+
_getAfterAllDismissed() {
|
|
16839
|
+
const parent = this._parentDrawer;
|
|
16840
|
+
return parent ? parent._getAfterAllDismissed() : this._afterAllDismissedAtThisLevel;
|
|
16841
|
+
}
|
|
16842
|
+
constructor(_overlay, _injector, _parentDrawer, _defaultOptions) {
|
|
16843
|
+
this._overlay = _overlay;
|
|
16844
|
+
this._injector = _injector;
|
|
16845
|
+
this._parentDrawer = _parentDrawer;
|
|
16846
|
+
this._defaultOptions = _defaultOptions;
|
|
16847
|
+
this._openDrawersAtThisLevel = [];
|
|
16848
|
+
this._afterAllDismissedAtThisLevel = new Subject();
|
|
16849
|
+
this._afterOpenedAtThisLevel = new Subject();
|
|
16850
|
+
this._resizeSubscriptions = new Map();
|
|
16851
|
+
/**
|
|
16852
|
+
* Stream that emits when all open drawer have finished closing.
|
|
16853
|
+
* Will emit on subscribe if there are no open drawers to begin with.
|
|
16854
|
+
*/
|
|
16855
|
+
this.afterAllDismissed = defer(() => this.openDrawers.length ? this._getAfterAllDismissed() : this._getAfterAllDismissed().pipe(startWith(undefined)));
|
|
16856
|
+
this._dialog = _injector.get(Dialog);
|
|
16857
|
+
}
|
|
16858
|
+
open(componentOrTemplateRef, config) {
|
|
16859
|
+
let drawerRef;
|
|
16860
|
+
const _config = { ...(this._defaultOptions || new DrawerConfig()), ...config };
|
|
16861
|
+
_config.id = _config.id || `dr-drawer-${uniqueId++}`;
|
|
16862
|
+
_config.width =
|
|
16863
|
+
_config.position === 'left' || _config.position === 'right' ? coerceCssPixelValue(_config.width) : '100vw';
|
|
16864
|
+
_config.height =
|
|
16865
|
+
_config.position === 'top' || _config.position === 'bottom' ? coerceCssPixelValue(_config.height) : '100vh';
|
|
16866
|
+
this._dialog.open(componentOrTemplateRef, {
|
|
16867
|
+
..._config,
|
|
16868
|
+
// Disable closing since we need to sync it up to the animation ourselves.
|
|
16869
|
+
disableClose: true,
|
|
16870
|
+
// Disable closing on detachments so that we can sync up the animation.
|
|
16871
|
+
closeOnOverlayDetachments: false,
|
|
16872
|
+
container: {
|
|
16873
|
+
type: DrawerContainer,
|
|
16874
|
+
providers: () => [
|
|
16875
|
+
// Provide our config as the CDK config as well since it has the same interface as the
|
|
16876
|
+
// CDK one, but it contains the actual values passed in by the user for things like
|
|
16877
|
+
// `disableClose` which we disable for the CDK dialog since we handle it ourselves.
|
|
16878
|
+
{ provide: DrawerConfig, useValue: _config },
|
|
16879
|
+
{ provide: DialogConfig, useValue: _config },
|
|
16880
|
+
],
|
|
16881
|
+
},
|
|
16882
|
+
scrollStrategy: _config.scrollStrategy || this._overlay.scrollStrategies.block(),
|
|
16883
|
+
positionStrategy: this._overlay.position().global()[_config.position]('0'),
|
|
16884
|
+
templateContext: () => ({ drawerRef }),
|
|
16885
|
+
providers: (cdkRef, _cdkConfig, container) => {
|
|
16886
|
+
drawerRef = new DrawerRef(cdkRef, _config, container);
|
|
16887
|
+
return [
|
|
16888
|
+
{ provide: DrawerRef, useValue: drawerRef },
|
|
16889
|
+
{ provide: DR_DRAWER_DATA, useValue: _config.data },
|
|
16890
|
+
];
|
|
16891
|
+
},
|
|
16892
|
+
});
|
|
16893
|
+
this.openDrawers.push(drawerRef);
|
|
16894
|
+
this.afterOpened.next(drawerRef);
|
|
16895
|
+
if (_config.observedElement) {
|
|
16896
|
+
this._setupResizeObservation(drawerRef, _config);
|
|
16897
|
+
}
|
|
16898
|
+
drawerRef.afterDismissed().subscribe(() => {
|
|
16899
|
+
const index = this.openDrawers.indexOf(drawerRef);
|
|
16900
|
+
if (index > -1) {
|
|
16901
|
+
this.openDrawers.splice(index, 1);
|
|
16902
|
+
if (drawerRef.id && this._resizeSubscriptions.has(drawerRef.id)) {
|
|
16903
|
+
this._resizeSubscriptions.get(drawerRef.id).unsubscribe();
|
|
16904
|
+
this._resizeSubscriptions.delete(drawerRef.id);
|
|
16905
|
+
}
|
|
16906
|
+
if (!this.openDrawers.length) {
|
|
16907
|
+
this._getAfterAllDismissed().next();
|
|
16908
|
+
}
|
|
16909
|
+
}
|
|
16910
|
+
});
|
|
16911
|
+
return drawerRef;
|
|
16912
|
+
}
|
|
16913
|
+
/**
|
|
16914
|
+
* Dismisses all of the currently-open drawers.
|
|
16915
|
+
*/
|
|
16916
|
+
dismissAll() {
|
|
16917
|
+
this._dismissDrawers(this.openDrawers);
|
|
16918
|
+
}
|
|
16919
|
+
/**
|
|
16920
|
+
* Finds an open drawer by its id.
|
|
16921
|
+
* @param id ID to use when looking up the drawer.
|
|
16922
|
+
*/
|
|
16923
|
+
getDrawerById(id) {
|
|
16924
|
+
return this.openDrawers.find((drawer) => drawer.id === id);
|
|
16925
|
+
}
|
|
16926
|
+
ngOnDestroy() {
|
|
16927
|
+
// Only dismiss the drawers at this level on destroy
|
|
16928
|
+
// since the parent service may still be active.
|
|
16929
|
+
this._dismissDrawers(this._openDrawersAtThisLevel);
|
|
16930
|
+
this._resizeSubscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
16931
|
+
this._resizeSubscriptions.clear();
|
|
16932
|
+
this._afterAllDismissedAtThisLevel.complete();
|
|
16933
|
+
this._afterOpenedAtThisLevel.complete();
|
|
16934
|
+
}
|
|
16935
|
+
/**
|
|
16936
|
+
* Sets up resize observation for the specified element and updates drawer positioning.
|
|
16937
|
+
*/
|
|
16938
|
+
_setupResizeObservation(drawerRef, config) {
|
|
16939
|
+
if (!config.observedElement || !drawerRef.id) {
|
|
16940
|
+
return;
|
|
16941
|
+
}
|
|
16942
|
+
const resizeSubscription = DrSharedUtils.fromResizeObserver(config.observedElement).subscribe(() => {
|
|
16943
|
+
this._updateDrawerPosition(drawerRef, config);
|
|
16944
|
+
});
|
|
16945
|
+
this._resizeSubscriptions.set(drawerRef.id, resizeSubscription);
|
|
16946
|
+
// Defer initial position update to avoid conflicts with drawer initialization
|
|
16947
|
+
setTimeout(() => {
|
|
16948
|
+
this._updateDrawerPosition(drawerRef, config);
|
|
16949
|
+
}, 0);
|
|
16950
|
+
}
|
|
16951
|
+
/**
|
|
16952
|
+
* Calculates and applies margins to the drawer to fit within the observed element's boundaries.
|
|
16953
|
+
*/
|
|
16954
|
+
_updateDrawerPosition(drawerRef, config) {
|
|
16955
|
+
if (!config.observedElement || !config.position) {
|
|
16956
|
+
return;
|
|
16957
|
+
}
|
|
16958
|
+
const elementRect = config.observedElement.getBoundingClientRect();
|
|
16959
|
+
const margins = this._calculateMarginsToFitWithinElement(config.position, elementRect);
|
|
16960
|
+
const overlayElement = drawerRef.overlayElement;
|
|
16961
|
+
if (overlayElement) {
|
|
16962
|
+
this._applyMarginsToOverlay(overlayElement, margins);
|
|
16963
|
+
}
|
|
16964
|
+
}
|
|
16965
|
+
/**
|
|
16966
|
+
* Calculates margins to position drawer within the observed element's boundaries.
|
|
16967
|
+
*/
|
|
16968
|
+
_calculateMarginsToFitWithinElement(position, elementRect) {
|
|
16969
|
+
const margins = { top: 0, right: 0, bottom: 0, left: 0 };
|
|
16970
|
+
const viewportWidth = window.innerWidth;
|
|
16971
|
+
const viewportHeight = window.innerHeight;
|
|
16972
|
+
switch (position) {
|
|
16973
|
+
case 'left':
|
|
16974
|
+
margins.left = elementRect.left;
|
|
16975
|
+
margins.top = elementRect.top;
|
|
16976
|
+
margins.bottom = viewportHeight - elementRect.bottom;
|
|
16977
|
+
break;
|
|
16978
|
+
case 'right':
|
|
16979
|
+
margins.right = viewportWidth - elementRect.right;
|
|
16980
|
+
margins.top = elementRect.top;
|
|
16981
|
+
margins.bottom = viewportHeight - elementRect.bottom;
|
|
16982
|
+
break;
|
|
16983
|
+
case 'top':
|
|
16984
|
+
margins.top = elementRect.top;
|
|
16985
|
+
margins.left = elementRect.left;
|
|
16986
|
+
margins.right = viewportWidth - elementRect.right;
|
|
16987
|
+
break;
|
|
16988
|
+
case 'bottom':
|
|
16989
|
+
margins.bottom = viewportHeight - elementRect.bottom;
|
|
16990
|
+
margins.left = elementRect.left;
|
|
16991
|
+
margins.right = viewportWidth - elementRect.right;
|
|
16992
|
+
break;
|
|
16993
|
+
}
|
|
16994
|
+
return margins;
|
|
16995
|
+
}
|
|
16996
|
+
/**
|
|
16997
|
+
* Applies calculated margins to the overlay element.
|
|
16998
|
+
*/
|
|
16999
|
+
_applyMarginsToOverlay(overlayElement, margins) {
|
|
17000
|
+
overlayElement.style.marginTop = `${margins.top}px`;
|
|
17001
|
+
overlayElement.style.marginRight = `${margins.right}px`;
|
|
17002
|
+
overlayElement.style.marginBottom = `${margins.bottom}px`;
|
|
17003
|
+
overlayElement.style.marginLeft = `${margins.left}px`;
|
|
17004
|
+
}
|
|
17005
|
+
_dismissDrawers(drawers) {
|
|
17006
|
+
let i = drawers.length;
|
|
17007
|
+
while (i--) {
|
|
17008
|
+
drawers[i].dismiss();
|
|
17009
|
+
}
|
|
17010
|
+
}
|
|
17011
|
+
/** @nocollapse */ static { this.ɵfac = function Drawer_Factory(t) { return new (t || Drawer)(i0.ɵɵinject(i1$1.Overlay), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(Drawer, 12), i0.ɵɵinject(DR_DRAWER_DEFAULT_OPTIONS, 8)); }; }
|
|
17012
|
+
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: Drawer, factory: Drawer.ɵfac, providedIn: 'root' }); }
|
|
17013
|
+
}
|
|
17014
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Drawer, [{
|
|
17015
|
+
type: Injectable,
|
|
17016
|
+
args: [{ providedIn: 'root' }]
|
|
17017
|
+
}], function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: Drawer, decorators: [{
|
|
17018
|
+
type: Optional
|
|
17019
|
+
}, {
|
|
17020
|
+
type: SkipSelf
|
|
17021
|
+
}] }, { type: DrawerConfig, decorators: [{
|
|
17022
|
+
type: Optional
|
|
17023
|
+
}, {
|
|
17024
|
+
type: Inject,
|
|
17025
|
+
args: [DR_DRAWER_DEFAULT_OPTIONS]
|
|
17026
|
+
}] }]; }, null); })();
|
|
17027
|
+
|
|
17028
|
+
class DrawerModule {
|
|
17029
|
+
/** @nocollapse */ static { this.ɵfac = function DrawerModule_Factory(t) { return new (t || DrawerModule)(); }; }
|
|
17030
|
+
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrawerModule }); }
|
|
17031
|
+
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [Drawer], imports: [DrawerContainer] }); }
|
|
17032
|
+
}
|
|
17033
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawerModule, [{
|
|
17034
|
+
type: NgModule,
|
|
17035
|
+
args: [{
|
|
17036
|
+
imports: [DrawerContainer],
|
|
17037
|
+
exports: [DrawerContainer],
|
|
17038
|
+
providers: [Drawer],
|
|
17039
|
+
}]
|
|
17040
|
+
}], null, null); })();
|
|
17041
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrawerModule, { imports: [DrawerContainer], exports: [DrawerContainer] }); })();
|
|
17042
|
+
|
|
17043
|
+
var CronEditorPeriod;
|
|
17044
|
+
(function (CronEditorPeriod) {
|
|
17045
|
+
CronEditorPeriod["HOUR"] = "hour";
|
|
17046
|
+
CronEditorPeriod["DAY"] = "day";
|
|
17047
|
+
CronEditorPeriod["WEEK"] = "week";
|
|
17048
|
+
CronEditorPeriod["MONTH"] = "month";
|
|
17049
|
+
CronEditorPeriod["QUARTER"] = "quarter";
|
|
17050
|
+
CronEditorPeriod["YEAR"] = "year";
|
|
17051
|
+
})(CronEditorPeriod || (CronEditorPeriod = {}));
|
|
17052
|
+
const dateFormatToCronPeriod = (format) => {
|
|
17053
|
+
const upperFormat = format.toUpperCase();
|
|
17054
|
+
if (upperFormat.includes('H')) {
|
|
17055
|
+
return CronEditorPeriod.HOUR;
|
|
17056
|
+
}
|
|
17057
|
+
if (upperFormat.includes('D') && !upperFormat.includes('W')) {
|
|
17058
|
+
return CronEditorPeriod.DAY;
|
|
17059
|
+
}
|
|
17060
|
+
if (upperFormat.includes('W')) {
|
|
17061
|
+
return CronEditorPeriod.WEEK;
|
|
17062
|
+
}
|
|
17063
|
+
if (upperFormat.includes('M') && upperFormat !== 'YYYY') {
|
|
17064
|
+
return CronEditorPeriod.MONTH;
|
|
17065
|
+
}
|
|
17066
|
+
if (upperFormat.includes('Q')) {
|
|
17067
|
+
return CronEditorPeriod.QUARTER;
|
|
17068
|
+
}
|
|
17069
|
+
return CronEditorPeriod.YEAR;
|
|
17070
|
+
};
|
|
17071
|
+
const getInitialQuarterArray = (fiscalYear = 1, monthArr = [1, 4, 7, 10]) => {
|
|
17072
|
+
const fiscalOffset = fiscalYear - 1;
|
|
17073
|
+
if (fiscalOffset) {
|
|
17074
|
+
monthArr = map$2(monthArr, (month) => {
|
|
17075
|
+
const val = month + fiscalOffset;
|
|
17076
|
+
return val > 12 ? val - 12 : val;
|
|
17077
|
+
});
|
|
17078
|
+
monthArr = sortBy(monthArr);
|
|
17079
|
+
}
|
|
17080
|
+
return monthArr;
|
|
17081
|
+
};
|
|
17082
|
+
const getStartMonthInQuarter = (fiscalYear = 1, monthArr = [1, 4, 7, 10]) => {
|
|
17083
|
+
const fiscalOffset = fiscalYear - 1;
|
|
17084
|
+
let quarterMonth = monthArr[0] || 1;
|
|
17085
|
+
// By default select first value in array since it can be only 1-3
|
|
17086
|
+
// Value must be recalculated if fiscal year doesn't start from first month
|
|
17087
|
+
// In month[] we have UTC values, we need to show fiscal month in selection.
|
|
17088
|
+
// Example: We want to start task in 3rd month on each fiscal quarter.
|
|
17089
|
+
// If fiscal_year_starts_from = 3 Then month should be [2,5,8,11].
|
|
17090
|
+
// First fiscal quarter will be finished in month 5, 2-8, 3-11, 4-2(next year).
|
|
17091
|
+
// Fiscal month = [12,3,6,9]. Presented value for user: 3.
|
|
17092
|
+
if (fiscalOffset) {
|
|
17093
|
+
monthArr = map$2(monthArr, (item) => {
|
|
17094
|
+
const val = item - fiscalOffset;
|
|
17095
|
+
return val < 1 ? val + 12 : val;
|
|
17096
|
+
});
|
|
17097
|
+
monthArr = sortBy(monthArr);
|
|
17098
|
+
quarterMonth = monthArr[0];
|
|
17099
|
+
}
|
|
17100
|
+
return quarterMonth;
|
|
17101
|
+
};
|
|
17102
|
+
const getQuarterStringByMonthInQuarter = (fiscalYear = 1, month) => {
|
|
17103
|
+
if (!month) {
|
|
17104
|
+
return '*';
|
|
17105
|
+
}
|
|
17106
|
+
let monthArr = [month, month + 3, month + 6, month + 9];
|
|
17107
|
+
const fiscalOffset = fiscalYear - 1;
|
|
17108
|
+
if (fiscalOffset) {
|
|
17109
|
+
monthArr = map$2(monthArr, (month) => {
|
|
17110
|
+
const val = month + fiscalOffset;
|
|
17111
|
+
return val > 12 ? val - 12 : val;
|
|
17112
|
+
});
|
|
17113
|
+
monthArr = sortBy(monthArr);
|
|
17114
|
+
}
|
|
17115
|
+
return monthArr.join(',');
|
|
17116
|
+
};
|
|
17117
|
+
const CronEditorDefaultConfigByPeriod = {
|
|
17118
|
+
[CronEditorPeriod.HOUR]: (fY) => `0 12/1 * * * ${LOCAL_TIME_ZONE_OFFSET}`,
|
|
17119
|
+
[CronEditorPeriod.DAY]: (fY) => `0 12 * * * ${LOCAL_TIME_ZONE_OFFSET}`,
|
|
17120
|
+
[CronEditorPeriod.WEEK]: (fY) => `0 12 * * 0 ${LOCAL_TIME_ZONE_OFFSET}`,
|
|
17121
|
+
[CronEditorPeriod.MONTH]: (fY) => `0 12 1 * * ${LOCAL_TIME_ZONE_OFFSET}`,
|
|
17122
|
+
[CronEditorPeriod.QUARTER]: (fY) => `0 12 1 ${getInitialQuarterArray(fY).join(',')} * ${LOCAL_TIME_ZONE_OFFSET}`,
|
|
17123
|
+
[CronEditorPeriod.YEAR]: (fY) => `0 12 1 1 * ${LOCAL_TIME_ZONE_OFFSET}`,
|
|
17124
|
+
};
|
|
17125
|
+
const getCronTypeAsPeriodLabel = (type) => type === CronEditorPeriod.DAY ? 'Daily' : type + 'ly';
|
|
17126
|
+
var CronTimePeriod;
|
|
17127
|
+
(function (CronTimePeriod) {
|
|
17128
|
+
CronTimePeriod["AM"] = "AM";
|
|
17129
|
+
CronTimePeriod["PM"] = "PM";
|
|
17130
|
+
})(CronTimePeriod || (CronTimePeriod = {}));
|
|
17131
|
+
const HOURS_DIVISIBLE_INTO_DAY = [
|
|
17132
|
+
{ label: '1', value: 1 },
|
|
17133
|
+
{ label: '2', value: 2 },
|
|
17134
|
+
{ label: '3', value: 3 },
|
|
17135
|
+
{ label: '4', value: 4 },
|
|
17136
|
+
{ label: '6', value: 6 },
|
|
17137
|
+
{ label: '8', value: 8 },
|
|
17138
|
+
{ label: '12', value: 12 },
|
|
17139
|
+
];
|
|
17140
|
+
const MONTH_OF_YEAR_ARRAY = [
|
|
17141
|
+
{ label: 'January', value: 1 },
|
|
17142
|
+
{ label: 'February', value: 2 },
|
|
17143
|
+
{ label: 'March', value: 3 },
|
|
17144
|
+
{ label: 'April', value: 4 },
|
|
17145
|
+
{ label: 'May', value: 5 },
|
|
17146
|
+
{ label: 'June', value: 6 },
|
|
17147
|
+
{ label: 'July', value: 7 },
|
|
17148
|
+
{ label: 'August', value: 8 },
|
|
17149
|
+
{ label: 'September', value: 9 },
|
|
17150
|
+
{ label: 'October', value: 10 },
|
|
17151
|
+
{ label: 'November', value: 11 },
|
|
17152
|
+
{ label: 'December', value: 12 },
|
|
17153
|
+
];
|
|
17154
|
+
const DAY_OF_WEEK_ARRAY = [
|
|
17155
|
+
{ label: 'Sunday', value: 0 },
|
|
17156
|
+
{ label: 'Monday', value: 1 },
|
|
17157
|
+
{ label: 'Tuesday', value: 2 },
|
|
17158
|
+
{ label: 'Wednesday', value: 3 },
|
|
17159
|
+
{ label: 'Thursday', value: 4 },
|
|
17160
|
+
{ label: 'Friday', value: 5 },
|
|
17161
|
+
{ label: 'Saturday', value: 6 },
|
|
17162
|
+
];
|
|
17163
|
+
const MONTH_OF_QUARTER_ARRAY = [
|
|
17164
|
+
{ label: '1st', value: 1 },
|
|
17165
|
+
{ label: '2nd', value: 2 },
|
|
17166
|
+
{ label: '3rd', value: 3 },
|
|
17167
|
+
];
|
|
17168
|
+
const ALLOWED_PERIODS = Object.values(CronEditorPeriod);
|
|
17169
|
+
const addOrdinalSuffix = (num) => {
|
|
17170
|
+
const suffixes = ['th', 'st', 'nd', 'rd'];
|
|
17171
|
+
const v = num % 100;
|
|
17172
|
+
return num + (suffixes[(v - 20) % 10] || suffixes[v] || suffixes[0]);
|
|
17173
|
+
};
|
|
17174
|
+
const DAY_OF_MONTH_ARRAY = new Array(28).fill(null).map((v, i) => ({
|
|
17175
|
+
label: addOrdinalSuffix(i + 1),
|
|
17176
|
+
value: i + 1,
|
|
17177
|
+
}));
|
|
17178
|
+
class CronEditor {
|
|
17179
|
+
set value(value) {
|
|
17180
|
+
this.parseCronString(value);
|
|
17181
|
+
}
|
|
17182
|
+
get value() {
|
|
17183
|
+
return this.cronEditorObjectToString();
|
|
17184
|
+
}
|
|
17185
|
+
set valueObject(valueObject) {
|
|
17186
|
+
if (!valueObject) {
|
|
17187
|
+
return;
|
|
17188
|
+
}
|
|
17189
|
+
this.every = valueObject.every;
|
|
17190
|
+
this.minute = valueObject.minute;
|
|
17191
|
+
this.hour = valueObject.hour;
|
|
17192
|
+
this.dayOfMonth = valueObject.dayOfMonth;
|
|
17193
|
+
this.month = valueObject.month;
|
|
17194
|
+
this.dayOfWeek = valueObject.dayOfWeek;
|
|
17195
|
+
this.timePeriod = valueObject.timePeriod;
|
|
17196
|
+
this.timeZone = valueObject.timeZone;
|
|
17197
|
+
this.everyXHours = valueObject.everyXHours;
|
|
17198
|
+
}
|
|
17199
|
+
get valueObject() {
|
|
17200
|
+
return {
|
|
17201
|
+
every: this.every,
|
|
17202
|
+
minute: this.minute,
|
|
17203
|
+
hour: this.hour,
|
|
17204
|
+
dayOfMonth: this.dayOfMonth,
|
|
17205
|
+
month: this.month,
|
|
17206
|
+
dayOfWeek: this.dayOfWeek,
|
|
17207
|
+
timePeriod: this.timePeriod,
|
|
17208
|
+
timeZone: this.timeZone,
|
|
17209
|
+
everyXHours: this.everyXHours,
|
|
17210
|
+
};
|
|
17211
|
+
}
|
|
17212
|
+
constructor(value, fiscalYearStart = 1, period) {
|
|
17213
|
+
this._fiscalYearStart = 1;
|
|
17214
|
+
this.everyXHours = 1;
|
|
17215
|
+
this.dayOfMonth = 1;
|
|
17216
|
+
this.dayOfWeek = 1;
|
|
17217
|
+
this.every = CronEditorPeriod.YEAR;
|
|
17218
|
+
this.hour = 12;
|
|
17219
|
+
this.minute = 0;
|
|
17220
|
+
this.month = 1;
|
|
17221
|
+
this.timePeriod = CronTimePeriod.PM;
|
|
17222
|
+
this.timeZone = LOCAL_TIME_ZONE_OFFSET;
|
|
17223
|
+
this._fiscalYearStart = fiscalYearStart;
|
|
17224
|
+
this._period = period;
|
|
17225
|
+
if (value) {
|
|
17226
|
+
this.value = value;
|
|
17227
|
+
}
|
|
17228
|
+
}
|
|
17229
|
+
parseCronString(value) {
|
|
17230
|
+
let [minute, hour, dayOfMonth, month, dayOfWeek, timeZone] = value.split(' ');
|
|
17231
|
+
minute = minute !== '*' ? Number(minute.split(',')[0]) : 0;
|
|
17232
|
+
let everyXHours;
|
|
17233
|
+
if (typeof hour === 'string' && hour.includes('/')) {
|
|
17234
|
+
// Case 1: If `hour` includes / to indicate step change
|
|
17235
|
+
everyXHours = Number(hour.split('/')[1]);
|
|
17236
|
+
hour = [Number(hour.split('/')[0])];
|
|
17237
|
+
}
|
|
17238
|
+
else if (hour !== '*') {
|
|
17239
|
+
// Case 2: If `hour` is a single number (but not "*"), ensure it's a number
|
|
17240
|
+
hour = [Number(hour.split(',')[0])];
|
|
17241
|
+
}
|
|
17242
|
+
else {
|
|
17243
|
+
// Case 3: If `hour` is "*", set it to 0
|
|
17244
|
+
hour = [0];
|
|
17245
|
+
}
|
|
17246
|
+
dayOfMonth = this.parseCronArray(dayOfMonth);
|
|
17247
|
+
month = this.parseCronArray(month);
|
|
17248
|
+
dayOfWeek = this.parseCronArray(dayOfWeek);
|
|
17249
|
+
timeZone = timeZone ? Number(timeZone) : 0;
|
|
17250
|
+
let type;
|
|
17251
|
+
if (this._period) {
|
|
17252
|
+
type = this._period;
|
|
17253
|
+
}
|
|
17254
|
+
else if (month?.length > 1) {
|
|
17255
|
+
type = CronEditorPeriod.QUARTER;
|
|
17256
|
+
}
|
|
17257
|
+
else if (month?.length) {
|
|
17258
|
+
type = CronEditorPeriod.YEAR;
|
|
17259
|
+
}
|
|
17260
|
+
else if (dayOfMonth?.length) {
|
|
17261
|
+
type = CronEditorPeriod.MONTH;
|
|
17262
|
+
}
|
|
17263
|
+
else if (dayOfWeek?.length) {
|
|
17264
|
+
type = CronEditorPeriod.WEEK;
|
|
17265
|
+
}
|
|
17266
|
+
else if (everyXHours) {
|
|
17267
|
+
type = CronEditorPeriod.HOUR;
|
|
17268
|
+
}
|
|
17269
|
+
else {
|
|
17270
|
+
type = CronEditorPeriod.DAY;
|
|
17271
|
+
}
|
|
17272
|
+
this.every = type;
|
|
17273
|
+
this.everyXHours = everyXHours ? everyXHours : 1;
|
|
17274
|
+
this.minute = minute;
|
|
17275
|
+
this.hour = hour[0] % 12 || 12;
|
|
17276
|
+
this.dayOfMonth = dayOfMonth?.[0] || null;
|
|
17277
|
+
this.month =
|
|
17278
|
+
type === CronEditorPeriod.QUARTER ? getStartMonthInQuarter(this._fiscalYearStart, month) : month?.[0] || null;
|
|
17279
|
+
this.dayOfWeek = typeof dayOfWeek?.[0] === 'number' ? dayOfWeek[0] : null;
|
|
17280
|
+
this.timePeriod = hour[0] >= 12 ? CronTimePeriod.PM : CronTimePeriod.AM;
|
|
17281
|
+
this.timeZone = timeZone;
|
|
17282
|
+
}
|
|
17283
|
+
parseCronArray(str) {
|
|
17284
|
+
return str !== '*' ? str.split(',').map((v) => Number(v)) : null;
|
|
17285
|
+
}
|
|
17286
|
+
cronEditorObjectToString(excludeTimezone = false) {
|
|
17287
|
+
const minute = this.minute || 0;
|
|
17288
|
+
let hour = this.hour || 0;
|
|
17289
|
+
hour = this.hoursTo24Format(hour);
|
|
17290
|
+
let hourOrHours = hour;
|
|
17291
|
+
const dayOfMonth = this.dayOfMonth || '*';
|
|
17292
|
+
const month = this._period === CronEditorPeriod.QUARTER || this.every === CronEditorPeriod.QUARTER
|
|
17293
|
+
? getQuarterStringByMonthInQuarter(this._fiscalYearStart, this.month)
|
|
17294
|
+
: this.month || '*';
|
|
17295
|
+
const dayOfWeek = typeof this.dayOfWeek === 'number' ? this.dayOfWeek : '*';
|
|
17296
|
+
if (this.every === CronEditorPeriod.HOUR) {
|
|
17297
|
+
hourOrHours = `${hour}/${this.everyXHours}`;
|
|
17298
|
+
}
|
|
17299
|
+
return `${minute} ${hourOrHours} ${dayOfMonth} ${month} ${dayOfWeek}${!excludeTimezone ? ` ${this.timeZone}` : ''}`;
|
|
17300
|
+
}
|
|
17301
|
+
hoursTo24Format(hour) {
|
|
17302
|
+
if (this.timePeriod === CronTimePeriod.PM && hour < 12) {
|
|
17303
|
+
hour += 12;
|
|
17304
|
+
}
|
|
17305
|
+
else if (this.timePeriod === CronTimePeriod.AM && hour === 12) {
|
|
17306
|
+
hour = 0;
|
|
17307
|
+
}
|
|
17308
|
+
return hour;
|
|
17309
|
+
}
|
|
17310
|
+
getReadableString() {
|
|
17311
|
+
let visibleString = 'Every ';
|
|
17312
|
+
switch (this.every) {
|
|
17313
|
+
case CronEditorPeriod.YEAR:
|
|
17314
|
+
visibleString += `${MONTH_OF_YEAR_ARRAY[this.month - 1].label} ${DAY_OF_MONTH_ARRAY[this.dayOfMonth - 1].label} `;
|
|
17315
|
+
break;
|
|
17316
|
+
case CronEditorPeriod.QUARTER:
|
|
17317
|
+
const month = MONTH_OF_QUARTER_ARRAY[this.month - 1].label;
|
|
17318
|
+
const day = DAY_OF_MONTH_ARRAY[this.dayOfMonth - 1].label;
|
|
17319
|
+
visibleString += `quarter on the ${month} month of the quarter on ${day} day `;
|
|
17320
|
+
break;
|
|
17321
|
+
case CronEditorPeriod.MONTH:
|
|
17322
|
+
visibleString += `month on day ${this.dayOfMonth} `;
|
|
17323
|
+
break;
|
|
17324
|
+
case CronEditorPeriod.WEEK:
|
|
17325
|
+
const dow = typeof this.dayOfWeek === 'number' ? this.dayOfWeek : 0;
|
|
17326
|
+
const dayIndex = dow >= 7 ? 0 : dow;
|
|
17327
|
+
visibleString += `${DAY_OF_WEEK_ARRAY[dayIndex].label} `;
|
|
17328
|
+
break;
|
|
17329
|
+
case CronEditorPeriod.DAY:
|
|
17330
|
+
visibleString += `day `;
|
|
17331
|
+
break;
|
|
17332
|
+
case CronEditorPeriod.HOUR:
|
|
17333
|
+
visibleString += `${this.everyXHours} hour${this.everyXHours > 1 ? 's' : ''} `;
|
|
17334
|
+
break;
|
|
17335
|
+
}
|
|
17336
|
+
const minutePrefix = this.minute < 10 ? '0' : '';
|
|
17337
|
+
const hourPrefix = this.hour < 10 ? '0' : '';
|
|
17338
|
+
visibleString += `at ${hourPrefix + this.hour}:${minutePrefix + this.minute}${this.timePeriod}`;
|
|
17339
|
+
visibleString += ` (${LOCAL_TIME_ZONE_OFFSET === this.timeZone ? 'Local Time' : getGMTLabel(-this.timeZone)})`;
|
|
17340
|
+
return visibleString;
|
|
17341
|
+
}
|
|
17342
|
+
}
|
|
17343
|
+
|
|
17344
|
+
function DrCronFieldComponent_dr_input_0_Template(rf, ctx) { if (rf & 1) {
|
|
17345
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
17346
|
+
i0.ɵɵelementStart(0, "dr-input", 3);
|
|
17347
|
+
i0.ɵɵlistener("click", function DrCronFieldComponent_dr_input_0_Template_dr_input_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!ctx_r5.disabled ? ctx_r5.openPopover() : null); })("ngModelChange", function DrCronFieldComponent_dr_input_0_Template_dr_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.visibleString = $event); });
|
|
17348
|
+
i0.ɵɵelement(1, "i", 4)(2, "i", 5);
|
|
17349
|
+
i0.ɵɵelementEnd();
|
|
17350
|
+
} if (rf & 2) {
|
|
17351
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
17352
|
+
const _r1 = i0.ɵɵreference(2);
|
|
17353
|
+
i0.ɵɵproperty("id", ctx_r0.id)("ngModel", ctx_r0.visibleString)("drPopover", !ctx_r0.disabled ? _r1 : null)("drPopoverPosition", ctx_r0.popoverPosition)("disabled", ctx_r0.disabled)("readonly", true);
|
|
17354
|
+
} }
|
|
17355
|
+
function DrCronFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
17356
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
17357
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7);
|
|
17358
|
+
i0.ɵɵelementContainer(2, 8);
|
|
17359
|
+
i0.ɵɵelementEnd();
|
|
17360
|
+
i0.ɵɵelementStart(3, "div", 9)(4, "dr-button", 10);
|
|
17361
|
+
i0.ɵɵlistener("click", function DrCronFieldComponent_ng_template_1_Template_dr_button_click_4_listener() { const restoredCtx = i0.ɵɵrestoreView(_r10); const closePopover_r8 = restoredCtx.closePopover; return i0.ɵɵresetView(closePopover_r8()); });
|
|
17362
|
+
i0.ɵɵtext(5, "Cancel");
|
|
17363
|
+
i0.ɵɵelementEnd();
|
|
17364
|
+
i0.ɵɵelementStart(6, "dr-button", 11);
|
|
17365
|
+
i0.ɵɵlistener("click", function DrCronFieldComponent_ng_template_1_Template_dr_button_click_6_listener() { const restoredCtx = i0.ɵɵrestoreView(_r10); const closePopover_r8 = restoredCtx.closePopover; const ctx_r11 = i0.ɵɵnextContext(); ctx_r11.update(); return i0.ɵɵresetView(closePopover_r8()); });
|
|
17366
|
+
i0.ɵɵtext(7, "Save");
|
|
17367
|
+
i0.ɵɵelementEnd()()();
|
|
17368
|
+
} if (rf & 2) {
|
|
17369
|
+
i0.ɵɵnextContext();
|
|
17370
|
+
const _r3 = i0.ɵɵreference(4);
|
|
17371
|
+
i0.ɵɵadvance(2);
|
|
17372
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r3);
|
|
17373
|
+
} }
|
|
17374
|
+
function DrCronFieldComponent_ng_template_3_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
17375
|
+
const _r27 = i0.ɵɵgetCurrentView();
|
|
17376
|
+
i0.ɵɵelementStart(0, "span");
|
|
17377
|
+
i0.ɵɵtext(1, "Repeat every quarter on");
|
|
17378
|
+
i0.ɵɵelementEnd();
|
|
17379
|
+
i0.ɵɵelementStart(2, "dr-select", 21);
|
|
17380
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_0_Template_dr_select_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r26 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r26.cronModel.month = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_0_Template_dr_select_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r27); const ctx_r28 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r28.onSelectionChange()); });
|
|
17381
|
+
i0.ɵɵelementEnd();
|
|
17382
|
+
i0.ɵɵelementStart(3, "span");
|
|
17383
|
+
i0.ɵɵtext(4, "month of the quarter");
|
|
17384
|
+
i0.ɵɵelementEnd();
|
|
17385
|
+
} if (rf & 2) {
|
|
17386
|
+
const ctx_r13 = i0.ɵɵnextContext(2);
|
|
17387
|
+
i0.ɵɵadvance(2);
|
|
17388
|
+
i0.ɵɵproperty("ngModel", ctx_r13.cronModel.month)("items", ctx_r13.MONTH_OF_QUARTER_ARRAY);
|
|
17389
|
+
} }
|
|
17390
|
+
function DrCronFieldComponent_ng_template_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
17391
|
+
const _r30 = i0.ɵɵgetCurrentView();
|
|
17392
|
+
i0.ɵɵelementStart(0, "span");
|
|
17393
|
+
i0.ɵɵtext(1, "Repeat every");
|
|
17394
|
+
i0.ɵɵelementEnd();
|
|
17395
|
+
i0.ɵɵelementStart(2, "dr-select", 22);
|
|
17396
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_2_Template_dr_select_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r29.cronModel.everyXHours = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_2_Template_dr_select_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r30); const ctx_r31 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r31.onSelectionChange()); });
|
|
17397
|
+
i0.ɵɵelementEnd();
|
|
17398
|
+
i0.ɵɵelementStart(3, "span");
|
|
17399
|
+
i0.ɵɵtext(4, "hour(s)");
|
|
17400
|
+
i0.ɵɵelementEnd();
|
|
17401
|
+
} if (rf & 2) {
|
|
17402
|
+
const ctx_r15 = i0.ɵɵnextContext(2);
|
|
17403
|
+
i0.ɵɵadvance(2);
|
|
17404
|
+
i0.ɵɵproperty("ngModel", ctx_r15.cronModel.everyXHours)("items", ctx_r15.HOURS_DIVISIBLE_INTO_DAY);
|
|
17405
|
+
} }
|
|
17406
|
+
function DrCronFieldComponent_ng_template_3_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
17407
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
17408
|
+
i0.ɵɵelementStart(0, "span");
|
|
17409
|
+
i0.ɵɵtext(1, "Repeat every");
|
|
17410
|
+
i0.ɵɵelementEnd();
|
|
17411
|
+
i0.ɵɵelementStart(2, "dr-select", 23);
|
|
17412
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_4_Template_dr_select_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r32 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r32.cronModel.dayOfWeek = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_4_Template_dr_select_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r33); const ctx_r34 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r34.onSelectionChange()); });
|
|
17413
|
+
i0.ɵɵelementEnd();
|
|
17414
|
+
} if (rf & 2) {
|
|
17415
|
+
const ctx_r17 = i0.ɵɵnextContext(2);
|
|
17416
|
+
i0.ɵɵadvance(2);
|
|
17417
|
+
i0.ɵɵproperty("ngModel", ctx_r17.cronModel.dayOfWeek)("items", ctx_r17.DAY_OF_WEEK_ARRAY);
|
|
17418
|
+
} }
|
|
17419
|
+
function DrCronFieldComponent_ng_template_3_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
17420
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
17421
|
+
i0.ɵɵelementStart(0, "dr-select", 24);
|
|
17422
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_6_Template_dr_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r35 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r35.cronModel.dayOfMonth = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_6_Template_dr_select_ngModelChange_0_listener() { i0.ɵɵrestoreView(_r36); const ctx_r37 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r37.onSelectionChange()); });
|
|
17423
|
+
i0.ɵɵelementEnd();
|
|
17424
|
+
} if (rf & 2) {
|
|
17425
|
+
const ctx_r19 = i0.ɵɵnextContext(2);
|
|
17426
|
+
i0.ɵɵproperty("ngModel", ctx_r19.cronModel.dayOfMonth)("items", ctx_r19.DAY_OF_MONTH_ARRAY)("searchable", true);
|
|
17427
|
+
} }
|
|
17428
|
+
function DrCronFieldComponent_ng_template_3_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
17429
|
+
const _r39 = i0.ɵɵgetCurrentView();
|
|
17430
|
+
i0.ɵɵelementStart(0, "span");
|
|
17431
|
+
i0.ɵɵtext(1, "Repeat every");
|
|
17432
|
+
i0.ɵɵelementEnd();
|
|
17433
|
+
i0.ɵɵelementStart(2, "dr-select", 25);
|
|
17434
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_8_Template_dr_select_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r38 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r38.cronModel.month = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_8_Template_dr_select_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r39); const ctx_r40 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r40.onSelectionChange()); });
|
|
17435
|
+
i0.ɵɵelementEnd();
|
|
17436
|
+
} if (rf & 2) {
|
|
17437
|
+
const ctx_r21 = i0.ɵɵnextContext(2);
|
|
17438
|
+
i0.ɵɵadvance(2);
|
|
17439
|
+
i0.ɵɵproperty("ngModel", ctx_r21.cronModel.month)("items", ctx_r21.MONTH_OF_YEAR_ARRAY);
|
|
17440
|
+
} }
|
|
17441
|
+
function DrCronFieldComponent_ng_template_3_dr_radio_group_11_dr_radio_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
17442
|
+
i0.ɵɵelementStart(0, "dr-radio-button", 28);
|
|
17443
|
+
i0.ɵɵtext(1);
|
|
17444
|
+
i0.ɵɵelementEnd();
|
|
17445
|
+
} if (rf & 2) {
|
|
17446
|
+
const option_r42 = ctx.$implicit;
|
|
17447
|
+
i0.ɵɵproperty("value", option_r42.value);
|
|
17448
|
+
i0.ɵɵattribute("data-analytics", "dr-cron-field_radio-button-" + option_r42.value);
|
|
17449
|
+
i0.ɵɵadvance(1);
|
|
17450
|
+
i0.ɵɵtextInterpolate1(" ", option_r42.label, " ");
|
|
17451
|
+
} }
|
|
17452
|
+
function DrCronFieldComponent_ng_template_3_dr_radio_group_11_Template(rf, ctx) { if (rf & 1) {
|
|
17453
|
+
const _r44 = i0.ɵɵgetCurrentView();
|
|
17454
|
+
i0.ɵɵelementStart(0, "dr-radio-group", 26);
|
|
17455
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_dr_radio_group_11_Template_dr_radio_group_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r43 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r43.cronModel.every = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_dr_radio_group_11_Template_dr_radio_group_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r45 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r45.onEveryChange($event)); });
|
|
17456
|
+
i0.ɵɵtemplate(1, DrCronFieldComponent_ng_template_3_dr_radio_group_11_dr_radio_button_1_Template, 2, 3, "dr-radio-button", 27);
|
|
17457
|
+
i0.ɵɵelementEnd();
|
|
17458
|
+
} if (rf & 2) {
|
|
17459
|
+
const ctx_r22 = i0.ɵɵnextContext(2);
|
|
17460
|
+
i0.ɵɵproperty("ngModel", ctx_r22.cronModel.every);
|
|
17461
|
+
i0.ɵɵadvance(1);
|
|
17462
|
+
i0.ɵɵproperty("ngForOf", ctx_r22.cronEditorPeriodArray);
|
|
17463
|
+
} }
|
|
17464
|
+
function DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
17465
|
+
i0.ɵɵelementContainer(0, 8);
|
|
17466
|
+
} if (rf & 2) {
|
|
17467
|
+
i0.ɵɵnextContext(2);
|
|
17468
|
+
const _r12 = i0.ɵɵreference(1);
|
|
17469
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r12);
|
|
17470
|
+
} }
|
|
17471
|
+
function DrCronFieldComponent_ng_template_3_ng_container_12_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
17472
|
+
i0.ɵɵelementStart(0, "span");
|
|
17473
|
+
i0.ɵɵtext(1, "Repeat every day");
|
|
17474
|
+
i0.ɵɵelementEnd();
|
|
17475
|
+
} }
|
|
17476
|
+
function DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
17477
|
+
i0.ɵɵelementContainer(0, 8);
|
|
17478
|
+
} if (rf & 2) {
|
|
17479
|
+
i0.ɵɵnextContext(2);
|
|
17480
|
+
const _r14 = i0.ɵɵreference(3);
|
|
17481
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r14);
|
|
17482
|
+
} }
|
|
17483
|
+
function DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
17484
|
+
i0.ɵɵelementContainer(0, 8);
|
|
17485
|
+
} if (rf & 2) {
|
|
17486
|
+
i0.ɵɵnextContext(2);
|
|
17487
|
+
const _r16 = i0.ɵɵreference(5);
|
|
17488
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r16);
|
|
17489
|
+
} }
|
|
17490
|
+
function DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
17491
|
+
i0.ɵɵelementContainerStart(0);
|
|
17492
|
+
i0.ɵɵelementContainer(1, 8)(2, 8);
|
|
17493
|
+
i0.ɵɵelementContainerEnd();
|
|
17494
|
+
} if (rf & 2) {
|
|
17495
|
+
i0.ɵɵnextContext(2);
|
|
17496
|
+
const _r20 = i0.ɵɵreference(9);
|
|
17497
|
+
const _r18 = i0.ɵɵreference(7);
|
|
17498
|
+
i0.ɵɵadvance(1);
|
|
17499
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r20);
|
|
17500
|
+
i0.ɵɵadvance(1);
|
|
17501
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r18);
|
|
17502
|
+
} }
|
|
17503
|
+
function DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
17504
|
+
i0.ɵɵelementContainerStart(0);
|
|
17505
|
+
i0.ɵɵelementStart(1, "span");
|
|
17506
|
+
i0.ɵɵtext(2, "Repeat on");
|
|
17507
|
+
i0.ɵɵelementEnd();
|
|
17508
|
+
i0.ɵɵelementContainer(3, 8);
|
|
17509
|
+
i0.ɵɵelementStart(4, "span");
|
|
17510
|
+
i0.ɵɵtext(5, "day of every month");
|
|
17511
|
+
i0.ɵɵelementEnd();
|
|
17512
|
+
i0.ɵɵelementContainerEnd();
|
|
17513
|
+
} if (rf & 2) {
|
|
17514
|
+
i0.ɵɵnextContext(2);
|
|
17515
|
+
const _r18 = i0.ɵɵreference(7);
|
|
17516
|
+
i0.ɵɵadvance(3);
|
|
17517
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r18);
|
|
17518
|
+
} }
|
|
17519
|
+
function DrCronFieldComponent_ng_template_3_ng_container_12_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
17520
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "span");
|
|
17521
|
+
i0.ɵɵtext(2, "on");
|
|
17522
|
+
i0.ɵɵelementEnd();
|
|
17523
|
+
i0.ɵɵelementContainer(3, 8);
|
|
17524
|
+
i0.ɵɵelementStart(4, "span");
|
|
17525
|
+
i0.ɵɵtext(5, "day of the month");
|
|
17526
|
+
i0.ɵɵelementEnd()();
|
|
17527
|
+
} if (rf & 2) {
|
|
17528
|
+
i0.ɵɵnextContext(2);
|
|
17529
|
+
const _r18 = i0.ɵɵreference(7);
|
|
17530
|
+
i0.ɵɵadvance(3);
|
|
17531
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r18);
|
|
17532
|
+
} }
|
|
17533
|
+
function DrCronFieldComponent_ng_template_3_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
17534
|
+
const _r54 = i0.ɵɵgetCurrentView();
|
|
17535
|
+
i0.ɵɵelementContainerStart(0);
|
|
17536
|
+
i0.ɵɵelementStart(1, "div", 29);
|
|
17537
|
+
i0.ɵɵtemplate(2, DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_2_Template, 1, 1, "ng-container", 30);
|
|
17538
|
+
i0.ɵɵtemplate(3, DrCronFieldComponent_ng_template_3_ng_container_12_span_3_Template, 2, 0, "span", 31);
|
|
17539
|
+
i0.ɵɵtemplate(4, DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_4_Template, 1, 1, "ng-container", 30);
|
|
17540
|
+
i0.ɵɵtemplate(5, DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_5_Template, 1, 1, "ng-container", 30);
|
|
17541
|
+
i0.ɵɵtemplate(6, DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_6_Template, 3, 2, "ng-container", 31);
|
|
17542
|
+
i0.ɵɵtemplate(7, DrCronFieldComponent_ng_template_3_ng_container_12_ng_container_7_Template, 6, 1, "ng-container", 31);
|
|
17543
|
+
i0.ɵɵelementEnd();
|
|
17544
|
+
i0.ɵɵtemplate(8, DrCronFieldComponent_ng_template_3_ng_container_12_div_8_Template, 6, 1, "div", 32);
|
|
17545
|
+
i0.ɵɵelementStart(9, "div", 33)(10, "span", 34);
|
|
17546
|
+
i0.ɵɵtext(11, "at");
|
|
17547
|
+
i0.ɵɵelementEnd();
|
|
17548
|
+
i0.ɵɵelementStart(12, "dr-time-picker", 35);
|
|
17549
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_container_12_Template_dr_time_picker_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r54); const ctx_r53 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r53.onTimePickerChange($event)); });
|
|
17550
|
+
i0.ɵɵelementEnd()();
|
|
17551
|
+
i0.ɵɵelementContainerEnd();
|
|
17552
|
+
} if (rf & 2) {
|
|
17553
|
+
const ctx_r23 = i0.ɵɵnextContext(2);
|
|
17554
|
+
i0.ɵɵadvance(2);
|
|
17555
|
+
i0.ɵɵproperty("ngIf", ctx_r23.cronModel.every === ctx_r23.cronEditorPeriod.QUARTER);
|
|
17556
|
+
i0.ɵɵadvance(1);
|
|
17557
|
+
i0.ɵɵproperty("ngIf", ctx_r23.cronModel.every === ctx_r23.cronEditorPeriod.DAY);
|
|
17558
|
+
i0.ɵɵadvance(1);
|
|
17559
|
+
i0.ɵɵproperty("ngIf", ctx_r23.cronModel.every === ctx_r23.cronEditorPeriod.HOUR);
|
|
17560
|
+
i0.ɵɵadvance(1);
|
|
17561
|
+
i0.ɵɵproperty("ngIf", ctx_r23.cronModel.every === ctx_r23.cronEditorPeriod.WEEK);
|
|
17562
|
+
i0.ɵɵadvance(1);
|
|
17563
|
+
i0.ɵɵproperty("ngIf", ctx_r23.cronModel.every === ctx_r23.cronEditorPeriod.YEAR);
|
|
17564
|
+
i0.ɵɵadvance(1);
|
|
17565
|
+
i0.ɵɵproperty("ngIf", ctx_r23.cronModel.every === ctx_r23.cronEditorPeriod.MONTH);
|
|
17566
|
+
i0.ɵɵadvance(1);
|
|
17567
|
+
i0.ɵɵproperty("ngIf", ctx_r23.cronModel.every === ctx_r23.cronEditorPeriod.QUARTER);
|
|
17568
|
+
i0.ɵɵadvance(4);
|
|
17569
|
+
i0.ɵɵproperty("ngModel", ctx_r23.cronModel);
|
|
17570
|
+
} }
|
|
17571
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
17572
|
+
i0.ɵɵelementStart(0, "div", 37);
|
|
17573
|
+
i0.ɵɵelementContainer(1, 8);
|
|
17574
|
+
i0.ɵɵelementEnd();
|
|
17575
|
+
} if (rf & 2) {
|
|
17576
|
+
i0.ɵɵnextContext(2);
|
|
17577
|
+
const _r12 = i0.ɵɵreference(1);
|
|
17578
|
+
i0.ɵɵadvance(1);
|
|
17579
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r12);
|
|
17580
|
+
} }
|
|
17581
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
17582
|
+
i0.ɵɵelementStart(0, "span");
|
|
17583
|
+
i0.ɵɵtext(1, " Repeat every day ");
|
|
17584
|
+
i0.ɵɵelementEnd();
|
|
17585
|
+
} }
|
|
17586
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
17587
|
+
i0.ɵɵelementContainer(0, 8);
|
|
17588
|
+
} if (rf & 2) {
|
|
17589
|
+
i0.ɵɵnextContext(2);
|
|
17590
|
+
const _r14 = i0.ɵɵreference(3);
|
|
17591
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r14);
|
|
17592
|
+
} }
|
|
17593
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
17594
|
+
i0.ɵɵelementContainer(0, 8);
|
|
17595
|
+
} if (rf & 2) {
|
|
17596
|
+
i0.ɵɵnextContext(2);
|
|
17597
|
+
const _r16 = i0.ɵɵreference(5);
|
|
17598
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r16);
|
|
17599
|
+
} }
|
|
17600
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
17601
|
+
i0.ɵɵelementStart(0, "span");
|
|
17602
|
+
i0.ɵɵtext(1, "Repeat on ");
|
|
17603
|
+
i0.ɵɵelementEnd();
|
|
17604
|
+
} }
|
|
17605
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
17606
|
+
i0.ɵɵelementStart(0, "span");
|
|
17607
|
+
i0.ɵɵtext(1, "on ");
|
|
17608
|
+
i0.ɵɵelementEnd();
|
|
17609
|
+
} }
|
|
17610
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
17611
|
+
i0.ɵɵelementContainer(0, 8);
|
|
17612
|
+
} if (rf & 2) {
|
|
17613
|
+
i0.ɵɵnextContext(3);
|
|
17614
|
+
const _r20 = i0.ɵɵreference(9);
|
|
17615
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r20);
|
|
17616
|
+
} }
|
|
17617
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
17618
|
+
i0.ɵɵelementStart(0, "span");
|
|
17619
|
+
i0.ɵɵtext(1, "day of every month ");
|
|
17620
|
+
i0.ɵɵelementEnd();
|
|
17621
|
+
} }
|
|
17622
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
17623
|
+
i0.ɵɵelementStart(0, "span");
|
|
17624
|
+
i0.ɵɵtext(1, "day of the month ");
|
|
17625
|
+
i0.ɵɵelementEnd();
|
|
17626
|
+
} }
|
|
17627
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
17628
|
+
i0.ɵɵelementContainerStart(0);
|
|
17629
|
+
i0.ɵɵtemplate(1, DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_span_1_Template, 2, 0, "span", 31);
|
|
17630
|
+
i0.ɵɵtemplate(2, DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_span_2_Template, 2, 0, "span", 31);
|
|
17631
|
+
i0.ɵɵtemplate(3, DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_ng_container_3_Template, 1, 1, "ng-container", 30);
|
|
17632
|
+
i0.ɵɵelementContainer(4, 8);
|
|
17633
|
+
i0.ɵɵtemplate(5, DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_span_5_Template, 2, 0, "span", 31);
|
|
17634
|
+
i0.ɵɵtemplate(6, DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_span_6_Template, 2, 0, "span", 31);
|
|
17635
|
+
i0.ɵɵelementContainerEnd();
|
|
17636
|
+
} if (rf & 2) {
|
|
17637
|
+
i0.ɵɵnextContext(2);
|
|
17638
|
+
const _r18 = i0.ɵɵreference(7);
|
|
17639
|
+
const ctx_r59 = i0.ɵɵnextContext();
|
|
17640
|
+
i0.ɵɵadvance(1);
|
|
17641
|
+
i0.ɵɵproperty("ngIf", ctx_r59.cronModel.every === ctx_r59.cronEditorPeriod.MONTH);
|
|
17642
|
+
i0.ɵɵadvance(1);
|
|
17643
|
+
i0.ɵɵproperty("ngIf", ctx_r59.cronModel.every === ctx_r59.cronEditorPeriod.QUARTER);
|
|
17644
|
+
i0.ɵɵadvance(1);
|
|
17645
|
+
i0.ɵɵproperty("ngIf", ctx_r59.cronModel.every === ctx_r59.cronEditorPeriod.YEAR);
|
|
17646
|
+
i0.ɵɵadvance(1);
|
|
17647
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r18);
|
|
17648
|
+
i0.ɵɵadvance(1);
|
|
17649
|
+
i0.ɵɵproperty("ngIf", ctx_r59.cronModel.every === ctx_r59.cronEditorPeriod.MONTH);
|
|
17650
|
+
i0.ɵɵadvance(1);
|
|
17651
|
+
i0.ɵɵproperty("ngIf", ctx_r59.cronModel.every === ctx_r59.cronEditorPeriod.QUARTER);
|
|
17652
|
+
} }
|
|
17653
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
17654
|
+
i0.ɵɵtext(0);
|
|
17655
|
+
} if (rf & 2) {
|
|
17656
|
+
const item_r67 = ctx.item;
|
|
17657
|
+
const ctx_r61 = i0.ɵɵnextContext(3);
|
|
17658
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r61.LOCAL_TIME_ZONE_OFFSET !== ctx_r61.cronModel.timeZone ? item_r67.label : "Local Time", " ");
|
|
17659
|
+
} }
|
|
17660
|
+
function DrCronFieldComponent_ng_template_3_ng_template_13_Template(rf, ctx) { if (rf & 1) {
|
|
17661
|
+
const _r69 = i0.ɵɵgetCurrentView();
|
|
17662
|
+
i0.ɵɵtemplate(0, DrCronFieldComponent_ng_template_3_ng_template_13_div_0_Template, 2, 1, "div", 36);
|
|
17663
|
+
i0.ɵɵelementStart(1, "div", 37);
|
|
17664
|
+
i0.ɵɵtemplate(2, DrCronFieldComponent_ng_template_3_ng_template_13_span_2_Template, 2, 0, "span", 31);
|
|
17665
|
+
i0.ɵɵtemplate(3, DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_3_Template, 1, 1, "ng-container", 30);
|
|
17666
|
+
i0.ɵɵtemplate(4, DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_4_Template, 1, 1, "ng-container", 30);
|
|
17667
|
+
i0.ɵɵtemplate(5, DrCronFieldComponent_ng_template_3_ng_template_13_ng_container_5_Template, 7, 6, "ng-container", 31);
|
|
17668
|
+
i0.ɵɵelementStart(6, "span", 34);
|
|
17669
|
+
i0.ɵɵtext(7, "at");
|
|
17670
|
+
i0.ɵɵelementEnd();
|
|
17671
|
+
i0.ɵɵelementStart(8, "dr-input", 38);
|
|
17672
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_13_Template_dr_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r69); const ctx_r68 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r68.cronModel.hour = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_13_Template_dr_input_ngModelChange_8_listener() { i0.ɵɵrestoreView(_r69); const ctx_r70 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r70.onSelectionChange()); });
|
|
17673
|
+
i0.ɵɵelementEnd();
|
|
17674
|
+
i0.ɵɵelementStart(9, "span", 39);
|
|
17675
|
+
i0.ɵɵtext(10, ":");
|
|
17676
|
+
i0.ɵɵelementEnd();
|
|
17677
|
+
i0.ɵɵelementStart(11, "dr-input", 40);
|
|
17678
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_13_Template_dr_input_ngModelChange_11_listener($event) { i0.ɵɵrestoreView(_r69); const ctx_r71 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r71.cronModel.minute = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_13_Template_dr_input_ngModelChange_11_listener() { i0.ɵɵrestoreView(_r69); const ctx_r72 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r72.onSelectionChange()); });
|
|
17679
|
+
i0.ɵɵelementEnd();
|
|
17680
|
+
i0.ɵɵelementStart(12, "dr-select", 41);
|
|
17681
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_13_Template_dr_select_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r69); const ctx_r73 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r73.cronModel.timePeriod = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_13_Template_dr_select_ngModelChange_12_listener() { i0.ɵɵrestoreView(_r69); const ctx_r74 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r74.onSelectionChange()); });
|
|
17682
|
+
i0.ɵɵelementEnd();
|
|
17683
|
+
i0.ɵɵelementStart(13, "dr-select", 42);
|
|
17684
|
+
i0.ɵɵlistener("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_13_Template_dr_select_ngModelChange_13_listener($event) { i0.ɵɵrestoreView(_r69); const ctx_r75 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r75.cronModel.timeZone = $event); })("ngModelChange", function DrCronFieldComponent_ng_template_3_ng_template_13_Template_dr_select_ngModelChange_13_listener() { i0.ɵɵrestoreView(_r69); const ctx_r76 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r76.onSelectionChange()); });
|
|
17685
|
+
i0.ɵɵtemplate(14, DrCronFieldComponent_ng_template_3_ng_template_13_ng_template_14_Template, 1, 1, "ng-template", null, 43, i0.ɵɵtemplateRefExtractor);
|
|
17686
|
+
i0.ɵɵelementEnd()();
|
|
17687
|
+
} if (rf & 2) {
|
|
17688
|
+
const ctx_r25 = i0.ɵɵnextContext(2);
|
|
17689
|
+
i0.ɵɵproperty("ngIf", ctx_r25.cronModel.every === ctx_r25.cronEditorPeriod.QUARTER);
|
|
17690
|
+
i0.ɵɵadvance(2);
|
|
17691
|
+
i0.ɵɵproperty("ngIf", ctx_r25.cronModel.every === ctx_r25.cronEditorPeriod.DAY);
|
|
17692
|
+
i0.ɵɵadvance(1);
|
|
17693
|
+
i0.ɵɵproperty("ngIf", ctx_r25.cronModel.every === ctx_r25.cronEditorPeriod.HOUR);
|
|
17694
|
+
i0.ɵɵadvance(1);
|
|
17695
|
+
i0.ɵɵproperty("ngIf", ctx_r25.cronModel.every === ctx_r25.cronEditorPeriod.WEEK);
|
|
17696
|
+
i0.ɵɵadvance(1);
|
|
17697
|
+
i0.ɵɵproperty("ngIf", ctx_r25.cronModel.every !== ctx_r25.cronEditorPeriod.WEEK && ctx_r25.cronModel.every !== ctx_r25.cronEditorPeriod.HOUR && ctx_r25.cronModel.every !== ctx_r25.cronEditorPeriod.DAY);
|
|
17698
|
+
i0.ɵɵadvance(3);
|
|
17699
|
+
i0.ɵɵproperty("ngModel", ctx_r25.cronModel.hour)("mask", "00")("min", 1)("max", 12);
|
|
17700
|
+
i0.ɵɵadvance(3);
|
|
17701
|
+
i0.ɵɵproperty("ngModel", ctx_r25.cronModel.minute)("mask", "00")("min", 0)("max", 59);
|
|
17702
|
+
i0.ɵɵadvance(1);
|
|
17703
|
+
i0.ɵɵproperty("ngModel", ctx_r25.cronModel.timePeriod)("items", ctx_r25.CRON_TIME_PERIOD_ARRAY);
|
|
17704
|
+
i0.ɵɵadvance(1);
|
|
17705
|
+
i0.ɵɵproperty("ngModel", ctx_r25.cronModel.timeZone)("items", ctx_r25.GMT_OFFSETS)("textView", true);
|
|
17706
|
+
} }
|
|
17707
|
+
function DrCronFieldComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
17708
|
+
i0.ɵɵtemplate(0, DrCronFieldComponent_ng_template_3_ng_template_0_Template, 5, 2, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
|
|
17709
|
+
i0.ɵɵtemplate(2, DrCronFieldComponent_ng_template_3_ng_template_2_Template, 5, 2, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor);
|
|
17710
|
+
i0.ɵɵtemplate(4, DrCronFieldComponent_ng_template_3_ng_template_4_Template, 3, 2, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
17711
|
+
i0.ɵɵtemplate(6, DrCronFieldComponent_ng_template_3_ng_template_6_Template, 1, 3, "ng-template", null, 15, i0.ɵɵtemplateRefExtractor);
|
|
17712
|
+
i0.ɵɵtemplate(8, DrCronFieldComponent_ng_template_3_ng_template_8_Template, 3, 2, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
|
|
17713
|
+
i0.ɵɵelementStart(10, "div", 17);
|
|
17714
|
+
i0.ɵɵtemplate(11, DrCronFieldComponent_ng_template_3_dr_radio_group_11_Template, 2, 2, "dr-radio-group", 18);
|
|
17715
|
+
i0.ɵɵtemplate(12, DrCronFieldComponent_ng_template_3_ng_container_12_Template, 13, 8, "ng-container", 19);
|
|
17716
|
+
i0.ɵɵtemplate(13, DrCronFieldComponent_ng_template_3_ng_template_13_Template, 16, 18, "ng-template", null, 20, i0.ɵɵtemplateRefExtractor);
|
|
17717
|
+
i0.ɵɵelementEnd();
|
|
17718
|
+
} if (rf & 2) {
|
|
17719
|
+
const _r24 = i0.ɵɵreference(14);
|
|
17720
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
17721
|
+
i0.ɵɵadvance(10);
|
|
17722
|
+
i0.ɵɵclassProp("cron-configuration--multi-row", ctx_r4.multiRowMode);
|
|
17723
|
+
i0.ɵɵadvance(1);
|
|
17724
|
+
i0.ɵɵproperty("ngIf", !ctx_r4.hidePeriodSelector);
|
|
17725
|
+
i0.ɵɵadvance(1);
|
|
17726
|
+
i0.ɵɵproperty("ngIf", ctx_r4.multiRowMode)("ngIfElse", _r24);
|
|
17727
|
+
} }
|
|
17728
|
+
class DrCronFieldComponent {
|
|
17729
|
+
set value(value) {
|
|
17730
|
+
if (!value) {
|
|
17731
|
+
this.visibleString = '';
|
|
17732
|
+
this.cdr.markForCheck();
|
|
17733
|
+
return;
|
|
17734
|
+
}
|
|
17735
|
+
this.valueObject.value = value;
|
|
17736
|
+
this.visibleString = this.valueObject.getReadableString();
|
|
17737
|
+
if (this.flatMode && !this.cronModel) {
|
|
17738
|
+
this.cronModel = this.valueObject.valueObject;
|
|
17739
|
+
}
|
|
17740
|
+
this.cdr.markForCheck();
|
|
16154
17741
|
}
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
return this._parentDrawer ? this._parentDrawer.afterOpened : this._afterOpenedAtThisLevel;
|
|
17742
|
+
get value() {
|
|
17743
|
+
return this.valueObject.value;
|
|
16158
17744
|
}
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
17745
|
+
constructor(cdr) {
|
|
17746
|
+
this.cdr = cdr;
|
|
17747
|
+
this.hostId = null;
|
|
17748
|
+
this.disabled = false;
|
|
17749
|
+
this.allowedPeriods = ALLOWED_PERIODS;
|
|
17750
|
+
this.fiscalYearStart = 1;
|
|
17751
|
+
this.popoverPosition = 'bottom-left';
|
|
17752
|
+
this.hidePeriodSelector = false;
|
|
17753
|
+
this.flatMode = false;
|
|
17754
|
+
this.multiRowMode = false;
|
|
17755
|
+
this.DAY_OF_MONTH_ARRAY = DAY_OF_MONTH_ARRAY;
|
|
17756
|
+
this.MONTH_OF_QUARTER_ARRAY = MONTH_OF_QUARTER_ARRAY;
|
|
17757
|
+
this.MONTH_OF_YEAR_ARRAY = MONTH_OF_YEAR_ARRAY;
|
|
17758
|
+
this.DAY_OF_WEEK_ARRAY = DAY_OF_WEEK_ARRAY;
|
|
17759
|
+
this.HOURS_DIVISIBLE_INTO_DAY = HOURS_DIVISIBLE_INTO_DAY;
|
|
17760
|
+
this.CRON_TIME_PERIOD_ARRAY = [CronTimePeriod.AM, CronTimePeriod.PM];
|
|
17761
|
+
this.LOCAL_TIME_ZONE_OFFSET = LOCAL_TIME_ZONE_OFFSET;
|
|
17762
|
+
this.GMT_OFFSETS = GMT_OFFSETS;
|
|
17763
|
+
this.cronEditorPeriod = CronEditorPeriod;
|
|
17764
|
+
this.onChange = () => { };
|
|
17765
|
+
this.onTouched = () => { };
|
|
16162
17766
|
}
|
|
16163
|
-
|
|
16164
|
-
this.
|
|
16165
|
-
this.
|
|
16166
|
-
this.
|
|
16167
|
-
this.
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16171
|
-
this._resizeSubscriptions = new Map();
|
|
16172
|
-
/**
|
|
16173
|
-
* Stream that emits when all open drawer have finished closing.
|
|
16174
|
-
* Will emit on subscribe if there are no open drawers to begin with.
|
|
16175
|
-
*/
|
|
16176
|
-
this.afterAllDismissed = defer(() => this.openDrawers.length ? this._getAfterAllDismissed() : this._getAfterAllDismissed().pipe(startWith(undefined)));
|
|
16177
|
-
this._dialog = _injector.get(Dialog);
|
|
17767
|
+
ngOnInit() {
|
|
17768
|
+
this.valueObject = new CronEditor(null, this.fiscalYearStart);
|
|
17769
|
+
this.valueObject.every = this.allowedPeriods[this.allowedPeriods.length - 1] ?? CronEditorPeriod.YEAR;
|
|
17770
|
+
this.cronModel = this.valueObject.valueObject;
|
|
17771
|
+
this.cronEditorPeriodArray = this.allowedPeriods.map((period) => ({
|
|
17772
|
+
value: period,
|
|
17773
|
+
label: capitalize(getCronTypeAsPeriodLabel(period)),
|
|
17774
|
+
}));
|
|
16178
17775
|
}
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
const _config = { ...(this._defaultOptions || new DrawerConfig()), ...config };
|
|
16182
|
-
_config.id = _config.id || `dr-drawer-${uniqueId++}`;
|
|
16183
|
-
_config.width =
|
|
16184
|
-
_config.position === 'left' || _config.position === 'right' ? coerceCssPixelValue(_config.width) : '100vw';
|
|
16185
|
-
_config.height =
|
|
16186
|
-
_config.position === 'top' || _config.position === 'bottom' ? coerceCssPixelValue(_config.height) : '100vh';
|
|
16187
|
-
this._dialog.open(componentOrTemplateRef, {
|
|
16188
|
-
..._config,
|
|
16189
|
-
// Disable closing since we need to sync it up to the animation ourselves.
|
|
16190
|
-
disableClose: true,
|
|
16191
|
-
// Disable closing on detachments so that we can sync up the animation.
|
|
16192
|
-
closeOnOverlayDetachments: false,
|
|
16193
|
-
container: {
|
|
16194
|
-
type: DrawerContainer,
|
|
16195
|
-
providers: () => [
|
|
16196
|
-
// Provide our config as the CDK config as well since it has the same interface as the
|
|
16197
|
-
// CDK one, but it contains the actual values passed in by the user for things like
|
|
16198
|
-
// `disableClose` which we disable for the CDK dialog since we handle it ourselves.
|
|
16199
|
-
{ provide: DrawerConfig, useValue: _config },
|
|
16200
|
-
{ provide: DialogConfig, useValue: _config },
|
|
16201
|
-
],
|
|
16202
|
-
},
|
|
16203
|
-
scrollStrategy: _config.scrollStrategy || this._overlay.scrollStrategies.block(),
|
|
16204
|
-
positionStrategy: this._overlay.position().global()[_config.position]('0'),
|
|
16205
|
-
templateContext: () => ({ drawerRef }),
|
|
16206
|
-
providers: (cdkRef, _cdkConfig, container) => {
|
|
16207
|
-
drawerRef = new DrawerRef(cdkRef, _config, container);
|
|
16208
|
-
return [
|
|
16209
|
-
{ provide: DrawerRef, useValue: drawerRef },
|
|
16210
|
-
{ provide: DR_DRAWER_DATA, useValue: _config.data },
|
|
16211
|
-
];
|
|
16212
|
-
},
|
|
16213
|
-
});
|
|
16214
|
-
this.openDrawers.push(drawerRef);
|
|
16215
|
-
this.afterOpened.next(drawerRef);
|
|
16216
|
-
if (_config.observedElement) {
|
|
16217
|
-
this._setupResizeObservation(drawerRef, _config);
|
|
16218
|
-
}
|
|
16219
|
-
drawerRef.afterDismissed().subscribe(() => {
|
|
16220
|
-
const index = this.openDrawers.indexOf(drawerRef);
|
|
16221
|
-
if (index > -1) {
|
|
16222
|
-
this.openDrawers.splice(index, 1);
|
|
16223
|
-
if (drawerRef.id && this._resizeSubscriptions.has(drawerRef.id)) {
|
|
16224
|
-
this._resizeSubscriptions.get(drawerRef.id).unsubscribe();
|
|
16225
|
-
this._resizeSubscriptions.delete(drawerRef.id);
|
|
16226
|
-
}
|
|
16227
|
-
if (!this.openDrawers.length) {
|
|
16228
|
-
this._getAfterAllDismissed().next();
|
|
16229
|
-
}
|
|
16230
|
-
}
|
|
16231
|
-
});
|
|
16232
|
-
return drawerRef;
|
|
17776
|
+
registerOnChange(fn) {
|
|
17777
|
+
this.onChange = fn;
|
|
16233
17778
|
}
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
*/
|
|
16237
|
-
dismissAll() {
|
|
16238
|
-
this._dismissDrawers(this.openDrawers);
|
|
17779
|
+
registerOnTouched(fn) {
|
|
17780
|
+
this.onTouched = fn;
|
|
16239
17781
|
}
|
|
16240
|
-
|
|
16241
|
-
|
|
16242
|
-
|
|
16243
|
-
|
|
16244
|
-
|
|
16245
|
-
|
|
17782
|
+
writeValue(value) {
|
|
17783
|
+
this.value = value;
|
|
17784
|
+
if (this.flatMode && value) {
|
|
17785
|
+
this.cronModel = this.valueObject.valueObject;
|
|
17786
|
+
this.visibleString = this.valueObject.getReadableString();
|
|
17787
|
+
}
|
|
16246
17788
|
}
|
|
16247
|
-
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
this._dismissDrawers(this._openDrawersAtThisLevel);
|
|
16251
|
-
this._resizeSubscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
16252
|
-
this._resizeSubscriptions.clear();
|
|
16253
|
-
this._afterAllDismissedAtThisLevel.complete();
|
|
16254
|
-
this._afterOpenedAtThisLevel.complete();
|
|
17789
|
+
setDisabledState(isDisabled) {
|
|
17790
|
+
this.disabled = isDisabled;
|
|
17791
|
+
this.cdr.markForCheck();
|
|
16255
17792
|
}
|
|
16256
|
-
|
|
16257
|
-
|
|
16258
|
-
|
|
16259
|
-
|
|
16260
|
-
|
|
16261
|
-
|
|
16262
|
-
}
|
|
16263
|
-
const resizeSubscription = DrSharedUtils.fromResizeObserver(config.observedElement).subscribe(() => {
|
|
16264
|
-
this._updateDrawerPosition(drawerRef, config);
|
|
16265
|
-
});
|
|
16266
|
-
this._resizeSubscriptions.set(drawerRef.id, resizeSubscription);
|
|
16267
|
-
// Defer initial position update to avoid conflicts with drawer initialization
|
|
16268
|
-
setTimeout(() => {
|
|
16269
|
-
this._updateDrawerPosition(drawerRef, config);
|
|
16270
|
-
}, 0);
|
|
17793
|
+
update() {
|
|
17794
|
+
this.valueObject.valueObject = this.cronModel;
|
|
17795
|
+
this.visibleString = this.valueObject.getReadableString();
|
|
17796
|
+
this.cdr.markForCheck();
|
|
17797
|
+
this.onTouched();
|
|
17798
|
+
this.onChange(this.valueObject.value);
|
|
16271
17799
|
}
|
|
16272
|
-
|
|
16273
|
-
|
|
16274
|
-
*/
|
|
16275
|
-
_updateDrawerPosition(drawerRef, config) {
|
|
16276
|
-
if (!config.observedElement || !config.position) {
|
|
16277
|
-
return;
|
|
16278
|
-
}
|
|
16279
|
-
const elementRect = config.observedElement.getBoundingClientRect();
|
|
16280
|
-
const margins = this._calculateMarginsToFitWithinElement(config.position, elementRect);
|
|
16281
|
-
const overlayElement = drawerRef.overlayElement;
|
|
16282
|
-
if (overlayElement) {
|
|
16283
|
-
this._applyMarginsToOverlay(overlayElement, margins);
|
|
16284
|
-
}
|
|
17800
|
+
openPopover() {
|
|
17801
|
+
this.cronModel = this.valueObject.valueObject;
|
|
16285
17802
|
}
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
|
|
16289
|
-
|
|
16290
|
-
const margins = { top: 0, right: 0, bottom: 0, left: 0 };
|
|
16291
|
-
const viewportWidth = window.innerWidth;
|
|
16292
|
-
const viewportHeight = window.innerHeight;
|
|
16293
|
-
switch (position) {
|
|
16294
|
-
case 'left':
|
|
16295
|
-
margins.left = elementRect.left;
|
|
16296
|
-
margins.top = elementRect.top;
|
|
16297
|
-
margins.bottom = viewportHeight - elementRect.bottom;
|
|
16298
|
-
break;
|
|
16299
|
-
case 'right':
|
|
16300
|
-
margins.right = viewportWidth - elementRect.right;
|
|
16301
|
-
margins.top = elementRect.top;
|
|
16302
|
-
margins.bottom = viewportHeight - elementRect.bottom;
|
|
16303
|
-
break;
|
|
16304
|
-
case 'top':
|
|
16305
|
-
margins.top = elementRect.top;
|
|
16306
|
-
margins.left = elementRect.left;
|
|
16307
|
-
margins.right = viewportWidth - elementRect.right;
|
|
16308
|
-
break;
|
|
16309
|
-
case 'bottom':
|
|
16310
|
-
margins.bottom = viewportHeight - elementRect.bottom;
|
|
16311
|
-
margins.left = elementRect.left;
|
|
16312
|
-
margins.right = viewportWidth - elementRect.right;
|
|
16313
|
-
break;
|
|
16314
|
-
}
|
|
16315
|
-
return margins;
|
|
17803
|
+
onEveryChange($event) {
|
|
17804
|
+
const tempValueObject = new CronEditor(CronEditorDefaultConfigByPeriod[$event](this.fiscalYearStart), this.fiscalYearStart);
|
|
17805
|
+
this.cronModel = tempValueObject.valueObject;
|
|
17806
|
+
this.onSelectionChange();
|
|
16316
17807
|
}
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
overlayElement.style.marginBottom = `${margins.bottom}px`;
|
|
16324
|
-
overlayElement.style.marginLeft = `${margins.left}px`;
|
|
17808
|
+
onTimePickerChange(time) {
|
|
17809
|
+
this.cronModel.hour = time.hour;
|
|
17810
|
+
this.cronModel.minute = time.minute;
|
|
17811
|
+
this.cronModel.timePeriod = time.timePeriod;
|
|
17812
|
+
this.cronModel.timeZone = time.timeZone;
|
|
17813
|
+
this.onSelectionChange();
|
|
16325
17814
|
}
|
|
16326
|
-
|
|
16327
|
-
|
|
16328
|
-
|
|
16329
|
-
drawers[i].dismiss();
|
|
17815
|
+
onSelectionChange() {
|
|
17816
|
+
if (this.flatMode) {
|
|
17817
|
+
this.update();
|
|
16330
17818
|
}
|
|
16331
17819
|
}
|
|
16332
|
-
/** @nocollapse */ static { this.ɵfac = function
|
|
16333
|
-
/** @nocollapse */ static { this.ɵ
|
|
16334
|
-
|
|
16335
|
-
(
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
|
|
16339
|
-
|
|
16340
|
-
|
|
16341
|
-
|
|
16342
|
-
|
|
16343
|
-
|
|
16344
|
-
|
|
16345
|
-
|
|
16346
|
-
|
|
16347
|
-
|
|
16348
|
-
|
|
16349
|
-
|
|
16350
|
-
/** @nocollapse */ static { this.ɵfac = function DrawerModule_Factory(t) { return new (t || DrawerModule)(); }; }
|
|
16351
|
-
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrawerModule }); }
|
|
16352
|
-
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [Drawer], imports: [DrawerContainer] }); }
|
|
17820
|
+
/** @nocollapse */ static { this.ɵfac = function DrCronFieldComponent_Factory(t) { return new (t || DrCronFieldComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
17821
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCronFieldComponent, selectors: [["dr-cron-field"]], hostVars: 3, hostBindings: function DrCronFieldComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
17822
|
+
i0.ɵɵattribute("id", ctx.hostId);
|
|
17823
|
+
i0.ɵɵclassProp("disabled", ctx.disabled);
|
|
17824
|
+
} }, inputs: { id: "id", disabled: "disabled", allowedPeriods: "allowedPeriods", fiscalYearStart: "fiscalYearStart", popoverPosition: "popoverPosition", hidePeriodSelector: ["hidePeriodSelector", "hidePeriodSelector", booleanAttribute], flatMode: ["flatMode", "flatMode", booleanAttribute], multiRowMode: ["multiRowMode", "multiRowMode", booleanAttribute] }, standalone: true, features: [i0.ɵɵProvidersFeature([
|
|
17825
|
+
{
|
|
17826
|
+
provide: NG_VALUE_ACCESSOR,
|
|
17827
|
+
useExisting: forwardRef((() => DrCronFieldComponent)),
|
|
17828
|
+
multi: true,
|
|
17829
|
+
},
|
|
17830
|
+
]), i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 2, consts: [["data-analytics", "dr-cron-field_input-main", "aria-label", "Schedule", "placeholder", "Select...", 3, "id", "ngModel", "drPopover", "drPopoverPosition", "disabled", "readonly", "click", "ngModelChange", 4, "ngIf", "ngIfElse"], ["recurrencePopover", ""], ["cronConfiguration", ""], ["data-analytics", "dr-cron-field_input-main", "aria-label", "Schedule", "placeholder", "Select...", 3, "id", "ngModel", "drPopover", "drPopoverPosition", "disabled", "readonly", "click", "ngModelChange"], ["prefixIcon", "", 1, "dr-icon-date"], ["suffixIcon", "", 1, "dr-icon-arrow-down"], [1, "recurrence-popup"], [1, "recurrence-popup__body"], [3, "ngTemplateOutlet"], [1, "recurrence-popup__footer"], ["data-analytics", "dr-cron-field_button-cancel", "theme", "secondary", 3, "click"], ["data-analytics", "dr-cron-field_button-save", 3, "click"], ["quarterConfig", ""], ["hourConfig", ""], ["weekConfig", ""], ["dayOfMonthSelector", ""], ["yearMonthSelector", ""], [1, "cron-configuration"], ["data-analytics", "dr-cron-field_radio-group-period", "class", "cron-configuration__every", "name", "every", 3, "ngModel", "ngModelChange", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["singleRowMode", ""], ["data-analytics", "dr-cron-field_select-quarter-month", "aria-label", "Quarter month", "bindLabel", "label", "bindValue", "value", 1, "month-of-quarter", 3, "ngModel", "items", "ngModelChange"], ["data-analytics", "dr-cron-field_select-every-x-hours", "aria-label", "Hour interval", "bindLabel", "label", "bindValue", "value", 1, "day-of-month", 3, "ngModel", "items", "ngModelChange"], ["data-analytics", "dr-cron-field_select-day-of-week", "aria-label", "Day of week", "bindLabel", "label", "bindValue", "value", 1, "day-of-week", 3, "ngModel", "items", "ngModelChange"], ["data-analytics", "dr-cron-field_select-day-of-month", "aria-label", "Day of month", "bindLabel", "label", "bindValue", "value", 1, "day-of-month", 3, "ngModel", "items", "searchable", "ngModelChange"], ["data-analytics", "dr-cron-field_select-month", "aria-label", "Month", "bindLabel", "label", "bindValue", "value", 1, "month-of-year", 3, "ngModel", "items", "ngModelChange"], ["data-analytics", "dr-cron-field_radio-group-period", "name", "every", 1, "cron-configuration__every", 3, "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "cron-configuration__section", "cron-configuration__row"], [3, "ngTemplateOutlet", 4, "ngIf"], [4, "ngIf"], ["class", "cron-configuration__section cron-configuration__row", 4, "ngIf"], [1, "cron-configuration__section", "cron-configuration__row", "cron-configuration__row--time"], [1, "time-prefix"], [3, "ngModel", "ngModelChange"], ["class", "cron-configuration__section", 4, "ngIf"], [1, "cron-configuration__section"], ["data-analytics", "dr-cron-field_input-hour", "aria-label", "Hour", "type", "number", 1, "hours-input", 3, "ngModel", "mask", "min", "max", "ngModelChange"], [1, "time-dots"], ["data-analytics", "dr-cron-field_input-minute", "aria-label", "Minute", "type", "number", 1, "minutes-input", 3, "ngModel", "mask", "min", "max", "ngModelChange"], ["data-analytics", "dr-cron-field_select-time-period", "aria-label", "Time period", 1, "time-period-selector", 3, "ngModel", "items", "ngModelChange"], ["data-analytics", "dr-cron-field_select-timezone", "aria-label", "Time zone", "bindLabel", "label", "bindValue", "value", 1, "gmt-offsets", 3, "ngModel", "items", "textView", "ngModelChange"], ["labelTemplate", ""]], template: function DrCronFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17831
|
+
i0.ɵɵtemplate(0, DrCronFieldComponent_dr_input_0_Template, 3, 6, "dr-input", 0);
|
|
17832
|
+
i0.ɵɵtemplate(1, DrCronFieldComponent_ng_template_1_Template, 8, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
17833
|
+
i0.ɵɵtemplate(3, DrCronFieldComponent_ng_template_3_Template, 15, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
17834
|
+
} if (rf & 2) {
|
|
17835
|
+
const _r3 = i0.ɵɵreference(4);
|
|
17836
|
+
i0.ɵɵproperty("ngIf", !ctx.flatMode)("ngIfElse", _r3);
|
|
17837
|
+
} }, dependencies: [CommonModule, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, FormsModule, i2.NgControlStatus, i2.NgModel, DrTooltipModule, DrInputsModule, DrButtonComponent, RadioButtonComponent, RadioGroupComponent, DrInputComponent, DrSelectComponent, DrPopoverModule, DrPopoverDirective, TimePickerComponent], styles: ["[_nghost-%COMP%] dr-input[_ngcontent-%COMP%] , [_nghost-%COMP%] dr-input[_ngcontent-%COMP%] input{cursor:pointer;text-overflow:ellipsis}.recurrence-popup__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;padding:16px 32px}.recurrence-popup__footer[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 16px;border-top:1px solid #dfe0e3;justify-content:flex-end}.recurrence-popup__footer[_ngcontent-%COMP%] dr-button[_ngcontent-%COMP%]{margin-left:12px}.cron-configuration[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:640px;height:auto;font-size:14px;line-height:24px;font-weight:400}.cron-configuration__every[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;margin:16px 0;gap:24px}.cron-configuration__section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:nowrap;margin-bottom:8px}.cron-configuration__section[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex-shrink:0}.cron-configuration[_ngcontent-%COMP%] .month-of-quarter[_ngcontent-%COMP%]{width:65px;flex-shrink:0;margin:0 8px}.cron-configuration[_ngcontent-%COMP%] .day-of-week[_ngcontent-%COMP%]{width:132px;flex-shrink:0;margin:0 8px}.cron-configuration[_ngcontent-%COMP%] .month-of-year[_ngcontent-%COMP%]{width:125px;flex-shrink:0;margin:0 0 0 8px}.cron-configuration[_ngcontent-%COMP%] .day-of-month[_ngcontent-%COMP%]{width:75px;flex-shrink:0;margin:0 8px}.cron-configuration[_ngcontent-%COMP%] .hours-input[_ngcontent-%COMP%]{width:62px;flex-shrink:0;margin-left:8px}.cron-configuration[_ngcontent-%COMP%] .minutes-input[_ngcontent-%COMP%]{width:62px;flex-shrink:0}.cron-configuration[_ngcontent-%COMP%] .time-period-selector[_ngcontent-%COMP%]{width:64px;flex-shrink:0;margin-left:8px}.cron-configuration[_ngcontent-%COMP%] .time-prefix[_ngcontent-%COMP%]{margin-left:4px}.cron-configuration[_ngcontent-%COMP%] .time-dots[_ngcontent-%COMP%]{margin:0 4px}.cron-configuration[_ngcontent-%COMP%] .gmt-offsets[_ngcontent-%COMP%]{margin-left:16px}.cron-configuration--multi-row[_ngcontent-%COMP%]{width:auto}.cron-configuration--multi-row[_ngcontent-%COMP%] .cron-configuration__row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.cron-configuration--multi-row[_ngcontent-%COMP%] .cron-configuration__row--time[_ngcontent-%COMP%]{margin-top:8px}.cron-configuration--multi-row[_ngcontent-%COMP%] .time-prefix[_ngcontent-%COMP%]{margin-left:0}"], changeDetection: 0 }); }
|
|
16353
17838
|
}
|
|
16354
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
16355
|
-
type:
|
|
16356
|
-
args: [{
|
|
16357
|
-
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
|
|
16362
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrawerModule, { imports: [DrawerContainer], exports: [DrawerContainer] }); })();
|
|
17839
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrCronFieldComponent, [{
|
|
17840
|
+
type: Component,
|
|
17841
|
+
args: [{ selector: 'dr-cron-field', standalone: true, providers: [
|
|
17842
|
+
{
|
|
17843
|
+
provide: NG_VALUE_ACCESSOR,
|
|
17844
|
+
useExisting: forwardRef((() => DrCronFieldComponent)),
|
|
17845
|
+
multi: true,
|
|
17846
|
+
},
|
|
17847
|
+
], imports: [CommonModule, FormsModule, DrTooltipModule, DrInputsModule, DrPopoverModule, TimePickerComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<dr-input\n [id]=\"id\"\n data-analytics=\"dr-cron-field_input-main\"\n aria-label=\"Schedule\"\n *ngIf=\"!flatMode; else cronConfiguration\"\n placeholder=\"Select...\"\n (click)=\"!disabled ? openPopover() : null\"\n [(ngModel)]=\"visibleString\"\n [drPopover]=\"!disabled ? recurrencePopover : null\"\n [drPopoverPosition]=\"popoverPosition\"\n [disabled]=\"disabled\"\n [readonly]=\"true\">\n <i class=\"dr-icon-date\" prefixIcon></i>\n <i class=\"dr-icon-arrow-down\" suffixIcon></i>\n</dr-input>\n\n<ng-template #recurrencePopover let-closePopover=\"closePopover\">\n <div class=\"recurrence-popup\">\n <div class=\"recurrence-popup__body\">\n <ng-container [ngTemplateOutlet]=\"cronConfiguration\"></ng-container>\n </div>\n <div class=\"recurrence-popup__footer\">\n <dr-button data-analytics=\"dr-cron-field_button-cancel\" theme=\"secondary\" (click)=\"closePopover()\">Cancel</dr-button>\n <dr-button data-analytics=\"dr-cron-field_button-save\" (click)=\"update(); closePopover()\">Save</dr-button>\n </div>\n </div>\n</ng-template>\n\n<ng-template #cronConfiguration>\n <ng-template #quarterConfig>\n <span>Repeat every quarter on</span>\n <dr-select\n data-analytics=\"dr-cron-field_select-quarter-month\"\n aria-label=\"Quarter month\"\n [(ngModel)]=\"cronModel.month\"\n (ngModelChange)=\"onSelectionChange()\"\n [items]=\"MONTH_OF_QUARTER_ARRAY\"\n bindLabel=\"label\"\n bindValue=\"value\"\n class=\"month-of-quarter\"></dr-select>\n <span>month of the quarter</span>\n </ng-template>\n\n <ng-template #hourConfig>\n <span>Repeat every</span>\n <dr-select\n data-analytics=\"dr-cron-field_select-every-x-hours\"\n aria-label=\"Hour interval\"\n [(ngModel)]=\"cronModel.everyXHours\"\n (ngModelChange)=\"onSelectionChange()\"\n [items]=\"HOURS_DIVISIBLE_INTO_DAY\"\n bindLabel=\"label\"\n bindValue=\"value\"\n class=\"day-of-month\">\n </dr-select>\n <span>hour(s)</span>\n </ng-template>\n\n <ng-template #weekConfig>\n <span>Repeat every</span>\n <dr-select\n data-analytics=\"dr-cron-field_select-day-of-week\"\n aria-label=\"Day of week\"\n [(ngModel)]=\"cronModel.dayOfWeek\"\n (ngModelChange)=\"onSelectionChange()\"\n [items]=\"DAY_OF_WEEK_ARRAY\"\n bindLabel=\"label\"\n bindValue=\"value\"\n class=\"day-of-week\">\n </dr-select>\n </ng-template>\n\n <ng-template #dayOfMonthSelector>\n <dr-select\n data-analytics=\"dr-cron-field_select-day-of-month\"\n aria-label=\"Day of month\"\n [(ngModel)]=\"cronModel.dayOfMonth\"\n (ngModelChange)=\"onSelectionChange()\"\n [items]=\"DAY_OF_MONTH_ARRAY\"\n [searchable]=\"true\"\n bindLabel=\"label\"\n bindValue=\"value\"\n class=\"day-of-month\">\n </dr-select>\n </ng-template>\n\n <ng-template #yearMonthSelector>\n <span>Repeat every</span>\n <dr-select\n data-analytics=\"dr-cron-field_select-month\"\n aria-label=\"Month\"\n [(ngModel)]=\"cronModel.month\"\n (ngModelChange)=\"onSelectionChange()\"\n [items]=\"MONTH_OF_YEAR_ARRAY\"\n bindLabel=\"label\"\n bindValue=\"value\"\n class=\"month-of-year\">\n </dr-select>\n </ng-template>\n\n <div class=\"cron-configuration\" [class.cron-configuration--multi-row]=\"multiRowMode\">\n <dr-radio-group\n data-analytics=\"dr-cron-field_radio-group-period\"\n *ngIf=\"!hidePeriodSelector\"\n class=\"cron-configuration__every\"\n [(ngModel)]=\"cronModel.every\"\n (ngModelChange)=\"onEveryChange($event)\"\n name=\"every\">\n <dr-radio-button\n *ngFor=\"let option of cronEditorPeriodArray\"\n [value]=\"option.value\"\n [attr.data-analytics]=\"'dr-cron-field_radio-button-' + option.value\">\n {{ option.label }}\n </dr-radio-button>\n </dr-radio-group>\n\n <ng-container *ngIf=\"multiRowMode; else singleRowMode\">\n <div class=\"cron-configuration__section cron-configuration__row\">\n <ng-container\n *ngIf=\"cronModel.every === cronEditorPeriod.QUARTER\"\n [ngTemplateOutlet]=\"quarterConfig\"></ng-container>\n <span *ngIf=\"cronModel.every === cronEditorPeriod.DAY\">Repeat every day</span>\n <ng-container *ngIf=\"cronModel.every === cronEditorPeriod.HOUR\" [ngTemplateOutlet]=\"hourConfig\"></ng-container>\n <ng-container *ngIf=\"cronModel.every === cronEditorPeriod.WEEK\" [ngTemplateOutlet]=\"weekConfig\"></ng-container>\n <ng-container *ngIf=\"cronModel.every === cronEditorPeriod.YEAR\">\n <ng-container [ngTemplateOutlet]=\"yearMonthSelector\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"dayOfMonthSelector\"></ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"cronModel.every === cronEditorPeriod.MONTH\">\n <span>Repeat on</span>\n <ng-container [ngTemplateOutlet]=\"dayOfMonthSelector\"></ng-container>\n <span>day of every month</span>\n </ng-container>\n </div>\n\n <div class=\"cron-configuration__section cron-configuration__row\" *ngIf=\"cronModel.every === cronEditorPeriod.QUARTER\">\n <span>on</span>\n <ng-container [ngTemplateOutlet]=\"dayOfMonthSelector\"></ng-container>\n <span>day of the month</span>\n </div>\n\n <div class=\"cron-configuration__section cron-configuration__row cron-configuration__row--time\">\n <span class=\"time-prefix\">at</span>\n <dr-time-picker [ngModel]=\"cronModel\" (ngModelChange)=\"onTimePickerChange($event)\"> </dr-time-picker>\n </div>\n </ng-container>\n\n <ng-template #singleRowMode>\n <div *ngIf=\"cronModel.every === cronEditorPeriod.QUARTER\" class=\"cron-configuration__section\">\n <ng-container [ngTemplateOutlet]=\"quarterConfig\"></ng-container>\n </div>\n <div class=\"cron-configuration__section\">\n <span *ngIf=\"cronModel.every === cronEditorPeriod.DAY\"> Repeat every day </span>\n <ng-container *ngIf=\"cronModel.every === cronEditorPeriod.HOUR\" [ngTemplateOutlet]=\"hourConfig\"></ng-container>\n <ng-container *ngIf=\"cronModel.every === cronEditorPeriod.WEEK\" [ngTemplateOutlet]=\"weekConfig\"></ng-container>\n\n <ng-container\n *ngIf=\"\n cronModel.every !== cronEditorPeriod.WEEK &&\n cronModel.every !== cronEditorPeriod.HOUR &&\n cronModel.every !== cronEditorPeriod.DAY\n \">\n <span *ngIf=\"cronModel.every === cronEditorPeriod.MONTH\">Repeat on </span>\n <span *ngIf=\"cronModel.every === cronEditorPeriod.QUARTER\">on </span>\n <ng-container\n *ngIf=\"cronModel.every === cronEditorPeriod.YEAR\"\n [ngTemplateOutlet]=\"yearMonthSelector\"></ng-container>\n\n <ng-container [ngTemplateOutlet]=\"dayOfMonthSelector\"></ng-container>\n\n <span *ngIf=\"cronModel.every === cronEditorPeriod.MONTH\">day of every month </span>\n <span *ngIf=\"cronModel.every === cronEditorPeriod.QUARTER\">day of the month </span>\n </ng-container>\n <span class=\"time-prefix\">at</span>\n <dr-input\n data-analytics=\"dr-cron-field_input-hour\"\n aria-label=\"Hour\"\n [(ngModel)]=\"cronModel.hour\"\n (ngModelChange)=\"onSelectionChange()\"\n [mask]=\"'00'\"\n [min]=\"1\"\n [max]=\"12\"\n type=\"number\"\n class=\"hours-input\">\n </dr-input>\n <span class=\"time-dots\">:</span>\n <dr-input\n data-analytics=\"dr-cron-field_input-minute\"\n aria-label=\"Minute\"\n [(ngModel)]=\"cronModel.minute\"\n (ngModelChange)=\"onSelectionChange()\"\n [mask]=\"'00'\"\n [min]=\"0\"\n [max]=\"59\"\n type=\"number\"\n class=\"minutes-input\">\n </dr-input>\n <dr-select\n data-analytics=\"dr-cron-field_select-time-period\"\n aria-label=\"Time period\"\n [(ngModel)]=\"cronModel.timePeriod\"\n (ngModelChange)=\"onSelectionChange()\"\n [items]=\"CRON_TIME_PERIOD_ARRAY\"\n class=\"time-period-selector\"></dr-select>\n <dr-select\n data-analytics=\"dr-cron-field_select-timezone\"\n aria-label=\"Time zone\"\n [(ngModel)]=\"cronModel.timeZone\"\n (ngModelChange)=\"onSelectionChange()\"\n [items]=\"GMT_OFFSETS\"\n [textView]=\"true\"\n bindLabel=\"label\"\n bindValue=\"value\"\n class=\"gmt-offsets\">\n <ng-template #labelTemplate let-item=\"item\">\n {{ LOCAL_TIME_ZONE_OFFSET !== cronModel.timeZone ? item.label : 'Local Time' }}\n </ng-template>\n </dr-select>\n </div>\n </ng-template>\n </div>\n</ng-template>\n", styles: [":host dr-input::ng-deep,:host dr-input::ng-deep input{cursor:pointer;text-overflow:ellipsis}.recurrence-popup__body{display:flex;flex-direction:column;flex-grow:1;padding:16px 32px}.recurrence-popup__footer{display:flex;align-items:center;padding:8px 16px;border-top:1px solid #dfe0e3;justify-content:flex-end}.recurrence-popup__footer dr-button{margin-left:12px}.cron-configuration{display:flex;flex-direction:column;width:640px;height:auto;font-size:14px;line-height:24px;font-weight:400}.cron-configuration__every{display:flex;align-items:center;width:100%;margin:16px 0;gap:24px}.cron-configuration__section{display:flex;align-items:center;flex-wrap:nowrap;margin-bottom:8px}.cron-configuration__section span{flex-shrink:0}.cron-configuration .month-of-quarter{width:65px;flex-shrink:0;margin:0 8px}.cron-configuration .day-of-week{width:132px;flex-shrink:0;margin:0 8px}.cron-configuration .month-of-year{width:125px;flex-shrink:0;margin:0 0 0 8px}.cron-configuration .day-of-month{width:75px;flex-shrink:0;margin:0 8px}.cron-configuration .hours-input{width:62px;flex-shrink:0;margin-left:8px}.cron-configuration .minutes-input{width:62px;flex-shrink:0}.cron-configuration .time-period-selector{width:64px;flex-shrink:0;margin-left:8px}.cron-configuration .time-prefix{margin-left:4px}.cron-configuration .time-dots{margin:0 4px}.cron-configuration .gmt-offsets{margin-left:16px}.cron-configuration--multi-row{width:auto}.cron-configuration--multi-row .cron-configuration__row{display:flex;align-items:center;gap:8px}.cron-configuration--multi-row .cron-configuration__row--time{margin-top:8px}.cron-configuration--multi-row .time-prefix{margin-left:0}\n"] }]
|
|
17848
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { id: [{
|
|
17849
|
+
type: Input
|
|
17850
|
+
}], hostId: [{
|
|
17851
|
+
type: HostBinding,
|
|
17852
|
+
args: ['attr.id']
|
|
17853
|
+
}], disabled: [{
|
|
17854
|
+
type: Input
|
|
17855
|
+
}, {
|
|
17856
|
+
type: HostBinding,
|
|
17857
|
+
args: ['class.disabled']
|
|
17858
|
+
}], allowedPeriods: [{
|
|
17859
|
+
type: Input
|
|
17860
|
+
}], fiscalYearStart: [{
|
|
17861
|
+
type: Input
|
|
17862
|
+
}], popoverPosition: [{
|
|
17863
|
+
type: Input
|
|
17864
|
+
}], hidePeriodSelector: [{
|
|
17865
|
+
type: Input,
|
|
17866
|
+
args: [{ transform: booleanAttribute }]
|
|
17867
|
+
}], flatMode: [{
|
|
17868
|
+
type: Input,
|
|
17869
|
+
args: [{ transform: booleanAttribute }]
|
|
17870
|
+
}], multiRowMode: [{
|
|
17871
|
+
type: Input,
|
|
17872
|
+
args: [{ transform: booleanAttribute }]
|
|
17873
|
+
}] }); })();
|
|
16363
17874
|
|
|
16364
17875
|
class StepWizardDirective {
|
|
16365
17876
|
/** @nocollapse */ static { this.ɵfac = function StepWizardDirective_Factory(t) { return new (t || StepWizardDirective)(); }; }
|
|
@@ -16451,7 +17962,7 @@ class StepperWizardComponent {
|
|
|
16451
17962
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.outlet = _t.first);
|
|
16452
17963
|
} }, inputs: { currentStep: "currentStep" }, outputs: { currentStepChange: "currentStepChange" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 1, vars: 0, consts: [["cdkPortalOutlet", ""]], template: function StepperWizardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16453
17964
|
i0.ɵɵelementContainer(0, 0);
|
|
16454
|
-
} }, dependencies: [PortalModule,
|
|
17965
|
+
} }, dependencies: [PortalModule, i1$6.CdkPortalOutlet], encapsulation: 2, changeDetection: 0 }); }
|
|
16455
17966
|
}
|
|
16456
17967
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StepperWizardComponent, [{
|
|
16457
17968
|
type: Component,
|
|
@@ -17605,7 +19116,7 @@ class CellLinkComponent {
|
|
|
17605
19116
|
}
|
|
17606
19117
|
}
|
|
17607
19118
|
}
|
|
17608
|
-
/** @nocollapse */ static { this.ɵfac = function CellLinkComponent_Factory(t) { return new (t || CellLinkComponent)(i0.ɵɵdirectiveInject(i1$
|
|
19119
|
+
/** @nocollapse */ static { this.ɵfac = function CellLinkComponent_Factory(t) { return new (t || CellLinkComponent)(i0.ɵɵdirectiveInject(i1$9.Router)); }; }
|
|
17609
19120
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CellLinkComponent, selectors: [["dr-cell-link"]], hostVars: 2, hostBindings: function CellLinkComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
17610
19121
|
i0.ɵɵlistener("click", function CellLinkComponent_click_HostBindingHandler() { return ctx.goTo(); });
|
|
17611
19122
|
} if (rf & 2) {
|
|
@@ -17624,7 +19135,7 @@ class CellLinkComponent {
|
|
|
17624
19135
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CellLinkComponent, [{
|
|
17625
19136
|
type: Component,
|
|
17626
19137
|
args: [{ selector: 'dr-cell-link', standalone: true, imports: [CommonModule, DrTooltipModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<a [class.disabled]=\"isCellDisabled\" [drTooltip]=\"tooltip\">\n {{ templates[query.field] }}\n</a>\n", styles: [":host{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}:host a{color:#4646ce;text-decoration:none}:host:hover:not(.disabled) a{text-decoration:underline!important}:host.disabled a{color:#aeabac!important}\n"] }]
|
|
17627
|
-
}], function () { return [{ type: i1$
|
|
19138
|
+
}], function () { return [{ type: i1$9.Router }]; }, { isCellDisabled: [{
|
|
17628
19139
|
type: HostBinding,
|
|
17629
19140
|
args: ['class.disabled']
|
|
17630
19141
|
}], goTo: [{
|
|
@@ -18819,7 +20330,7 @@ class DrGridComponent {
|
|
|
18819
20330
|
i0.ɵɵproperty("domLayout", ctx.domLayout)("gridOptions", ctx.gridOptions)("columnDefs", ctx.columnDefs)("rowData", ctx.rowData)("pinnedTopRowData", ctx.pinnedTopRowData)("pinnedBottomRowData", ctx.pinnedBottomRowData)("components", ctx._cellComponents)("rowBuffer", 0)("undoRedoCellEditing", true)("suppressNoRowsOverlay", !(ctx.gridOptions == null ? null : ctx.gridOptions.noRowsOverlayComponent))("suppressLoadingOverlay", true);
|
|
18820
20331
|
i0.ɵɵadvance(2);
|
|
18821
20332
|
i0.ɵɵproperty("ngIf", ctx.theme === "dr-grid-borderless");
|
|
18822
|
-
} }, dependencies: [AgGridModule, i1$8.AgGridAngular, CommonModule, i1.NgIf, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative;overflow:hidden}.grid-full-height[_nghost-%COMP%]{height:100%}.grid-with-row-selection[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-row-hover{cursor:pointer}[_nghost-%COMP%]:not(.grid-empty-with-template) ag-grid-angular[_ngcontent-%COMP%] .ag-center-cols-viewport{min-height:40px}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-cell-widget-spacing: 16px;flex:1 1 0;width:100%;height:100%;font-family:Poppins,sans-serif}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-wrapper{height:100%}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-wrapper .ag-icon-grip{height:24px}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-wrapper .ag-icon-grip:before{font-family:DataRails!important;content:var(--dr-icon-drag, \"\\ea5f\");font-size:24px}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-value{display:flex;align-items:center;font-family:Poppins,sans-serif;font-size:14px;font-weight:400;color:#333}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-value>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .dr-cell-content-on-hover{visibility:hidden}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-row-hover .dr-cell-content-on-hover{visibility:visible}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-row, [_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-cell-text{font-size:14px;line-height:24px;font-weight:600;text-align:left;color:#333}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-checkbox-input-wrapper.ag-checked:after, [_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-checkbox-input-wrapper.ag-indeterminate:after{color:#4646ce}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .dr-header-cell-no-border{border:none!important}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-value:not(.action-fb), [_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-cell{padding-right:4px}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] , .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] , .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-header-background-color: #f2f2fb;--ag-background-color: #ffffff;--ag-odd-row-background-color: #ffffff;--ag-row-hover-color: #f5f5f5;--ag-selected-row-background-color: #eaeaff;--ag-row-border-color: #dfe0e3;--ag-border-color: #dfe0e3;--ag-header-column-resize-handle-height: 40%;--ag-header-column-resize-handle-color: #dfe0e3;--ag-cell-horizontal-padding: 16px}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper{border-radius:12px}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header{border-bottom:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header{border:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header .ag-header-row-column, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header .ag-header-row-column, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header .ag-header-row-column{border-left:1px solid #9ea1aa}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top{border-top:1px solid var(--ag-border-color)}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action{border-bottom:none;cursor:pointer}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action .ag-cell-value, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action .ag-cell-value, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action .ag-cell-value{font-size:14px;line-height:24px;font-weight:400;color:#6d6e6f}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover .ag-cell{color:#333}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active:before, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active:before, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active:before, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active:before, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active:before, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active:before{background-color:#eaeaff!important}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active .ag-cell{color:#4646ce}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total{background:#f6f7f8;border-bottom:0}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total .ag-cell-value, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total .ag-cell-value, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total .ag-cell-value{font-size:14px;line-height:24px;font-weight:400;color:#333}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-horizontal-scroll, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-horizontal-scroll, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-horizontal-scroll{border-top:1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-vertical-scroll, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-vertical-scroll, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-vertical-scroll{border-left:1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner), .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty){border-right:1px solid #9ea1aa}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty) .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty) .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty) .ag-cell{border:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer.ag-scroller-corner, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer.ag-scroller-corner, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer.ag-scroller-corner{min-width:8px!important}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner), .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty){border-left:1px solid #9ea1aa}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty) .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty) .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty) .ag-cell{border:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header{overflow:visible}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header:before, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header:before, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header:before{content:\"\";position:absolute;bottom:0;left:0;border-left:1px solid #9ea1aa;height:1px}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-row-last, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-row-last, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-row-last{border-bottom:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-secondary, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-secondary, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-secondary{background-color:#fbfbfe}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child{background-color:#fbfbfe}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded:not(.dr-row-child-last-in-tree), .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child:not(.dr-row-child-last-in-tree), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded:not(.dr-row-child-last-in-tree), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child:not(.dr-row-child-last-in-tree), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded:not(.dr-row-child-last-in-tree), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child:not(.dr-row-child-last-in-tree){border-bottom:transparent}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-cell-horizontal-border: 1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header{border-bottom:1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-header-cell{padding:0 4px 0 16px;border-right:1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-header-cell .title{max-width:unset!important;font-size:14px;line-height:24px;font-weight:400}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body .ag-cell-focus{border:1px solid #4646ce}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container .ag-row{background:#fbfbfe}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-center-cols-container .ag-cell:hover:not(.ag-cell-focus){cursor:pointer;border:1px solid #9ea1aa}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-border-color: transparent;--ag-row-border-color: #dfe0e3;--ag-header-background-color: #ffffff}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper{border:none;border-top-left-radius:0;border-top-right-radius:0}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header{border-bottom:1px solid var(--ag-row-border-color)}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-header-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-header-cell-text{font-size:14px;line-height:24px;font-weight:500;color:#6d6e6f}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom{border-top:1px solid #dfe0e3}.dr-grid-borderless[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-header-background-color: transparent;--ag-background-color: transparent;--ag-odd-row-background-color: transparent;--ag-row-hover-color: #f5f5f5;--ag-selected-row-background-color: transparent;--ag-row-border-color: transparent;--ag-border-color: transparent}.dr-grid-borderless[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-cell, .dr-grid-borderless[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-cell-text{font-size:14px;line-height:24px;font-weight:500;color:#6d6e6f}.dr-grid-borderless[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-value{font-size:14px;color:#333}.table-blur[_ngcontent-%COMP%]{background:linear-gradient(180deg,#fff0,#fff);position:absolute;height:80px;pointer-events:none;bottom:0;left:0;right:10px;width:100%;transition:.2s opacity}.table-blur.--hidden[_ngcontent-%COMP%]{opacity:0;transition:.2s opacity}"] }); }
|
|
20333
|
+
} }, dependencies: [AgGridModule, i1$a.AgGridAngular, CommonModule, i1.NgIf, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative;overflow:hidden}.grid-full-height[_nghost-%COMP%]{height:100%}.grid-with-row-selection[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-row-hover{cursor:pointer}[_nghost-%COMP%]:not(.grid-empty-with-template) ag-grid-angular[_ngcontent-%COMP%] .ag-center-cols-viewport{min-height:40px}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-cell-widget-spacing: 16px;flex:1 1 0;width:100%;height:100%;font-family:Poppins,sans-serif}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-wrapper{height:100%}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-wrapper .ag-icon-grip{height:24px}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-wrapper .ag-icon-grip:before{font-family:DataRails!important;content:var(--dr-icon-drag, \"\\ea5f\");font-size:24px}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-value{display:flex;align-items:center;font-family:Poppins,sans-serif;font-size:14px;font-weight:400;color:#333}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-value>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .dr-cell-content-on-hover{visibility:hidden}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-row-hover .dr-cell-content-on-hover{visibility:visible}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-row, [_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-cell-text{font-size:14px;line-height:24px;font-weight:600;text-align:left;color:#333}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-checkbox-input-wrapper.ag-checked:after, [_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-checkbox-input-wrapper.ag-indeterminate:after{color:#4646ce}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .dr-header-cell-no-border{border:none!important}[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-value:not(.action-fb), [_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-cell{padding-right:4px}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] , .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] , .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-header-background-color: #f2f2fb;--ag-background-color: #ffffff;--ag-odd-row-background-color: #ffffff;--ag-row-hover-color: #f5f5f5;--ag-selected-row-background-color: #eaeaff;--ag-row-border-color: #dfe0e3;--ag-border-color: #dfe0e3;--ag-header-column-resize-handle-height: 40%;--ag-header-column-resize-handle-color: #dfe0e3;--ag-cell-horizontal-padding: 16px}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper{border-radius:12px}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header{border-bottom:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header{border:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header .ag-header-row-column, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header .ag-header-row-column, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-pinned-right-header .ag-header-row-column{border-left:1px solid #9ea1aa}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top{border-top:1px solid var(--ag-border-color)}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action{border-bottom:none;cursor:pointer}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action .ag-cell-value, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action .ag-cell-value, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action .ag-cell-value{font-size:14px;line-height:24px;font-weight:400;color:#6d6e6f}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover .ag-cell{color:#333}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active:before, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active:before, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active:before, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active:before, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active:before, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active:before{background-color:#eaeaff!important}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action:active .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-top .dr-row-top-action.ag-row-hover:active .ag-cell{color:#4646ce}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total{background:#f6f7f8;border-bottom:0}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total .ag-cell-value, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total .ag-cell-value, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom .dr-row-total .ag-cell-value{font-size:14px;line-height:24px;font-weight:400;color:#333}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-horizontal-scroll, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-horizontal-scroll, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-horizontal-scroll{border-top:1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-vertical-scroll, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-vertical-scroll, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body-vertical-scroll{border-left:1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner), .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty){border-right:1px solid #9ea1aa}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty) .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty) .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-header .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container:not(:empty) .ag-cell{border:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer.ag-scroller-corner, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer.ag-scroller-corner, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-left-spacer.ag-scroller-corner{min-width:8px!important}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner), .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty){border-left:1px solid #9ea1aa}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty) .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty) .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-horizontal-right-spacer:not(.ag-scroller-corner) .ag-cell, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-cols-container:not(:empty) .ag-cell{border:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header{overflow:visible}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header:before, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header:before, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-right-header:before{content:\"\";position:absolute;bottom:0;left:0;border-left:1px solid #9ea1aa;height:1px}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-row-last, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-row-last, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-row-last{border-bottom:none}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-secondary, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-secondary, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-secondary{background-color:#fbfbfe}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded, .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded, .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child{background-color:#fbfbfe}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded:not(.dr-row-child-last-in-tree), .dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child:not(.dr-row-child-last-in-tree), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded:not(.dr-row-child-last-in-tree), .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child:not(.dr-row-child-last-in-tree), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-parent-expanded:not(.dr-row-child-last-in-tree), .dr-grid-default[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .dr-row-child:not(.dr-row-child-last-in-tree){border-bottom:transparent}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-cell-horizontal-border: 1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header{border-bottom:1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-header-cell{padding:0 4px 0 16px;border-right:1px solid #dfe0e3}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-header-cell .title{max-width:unset!important;font-size:14px;line-height:24px;font-weight:400}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-body .ag-cell-focus{border:1px solid #4646ce}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-pinned-left-cols-container .ag-row{background:#fbfbfe}.dr-grid-editable[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-center-cols-container .ag-cell:hover:not(.ag-cell-focus){cursor:pointer;border:1px solid #9ea1aa}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-border-color: transparent;--ag-row-border-color: #dfe0e3;--ag-header-background-color: #ffffff}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper{border:none;border-top-left-radius:0;border-top-right-radius:0}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header{border-bottom:1px solid var(--ag-row-border-color)}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-header-cell, .dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-header .ag-header-cell-text{font-size:14px;line-height:24px;font-weight:500;color:#6d6e6f}.dr-grid-inside-card[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-root-wrapper .ag-floating-bottom{border-top:1px solid #dfe0e3}.dr-grid-borderless[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] {--ag-header-background-color: transparent;--ag-background-color: transparent;--ag-odd-row-background-color: transparent;--ag-row-hover-color: #f5f5f5;--ag-selected-row-background-color: transparent;--ag-row-border-color: transparent;--ag-border-color: transparent}.dr-grid-borderless[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-cell, .dr-grid-borderless[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-header-cell-text{font-size:14px;line-height:24px;font-weight:500;color:#6d6e6f}.dr-grid-borderless[_nghost-%COMP%] ag-grid-angular[_ngcontent-%COMP%] .ag-cell-value{font-size:14px;color:#333}.table-blur[_ngcontent-%COMP%]{background:linear-gradient(180deg,#fff0,#fff);position:absolute;height:80px;pointer-events:none;bottom:0;left:0;right:10px;width:100%;transition:.2s opacity}.table-blur.--hidden[_ngcontent-%COMP%]{opacity:0;transition:.2s opacity}"] }); }
|
|
18823
20334
|
}
|
|
18824
20335
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrGridComponent, [{
|
|
18825
20336
|
type: Component,
|
|
@@ -19304,7 +20815,7 @@ class DrGridToolbarComponent {
|
|
|
19304
20815
|
this.destroy$.next();
|
|
19305
20816
|
this.destroy$.complete();
|
|
19306
20817
|
}
|
|
19307
|
-
/** @nocollapse */ static { this.ɵfac = function DrGridToolbarComponent_Factory(t) { return new (t || DrGridToolbarComponent)(i0.ɵɵdirectiveInject(i1$
|
|
20818
|
+
/** @nocollapse */ static { this.ɵfac = function DrGridToolbarComponent_Factory(t) { return new (t || DrGridToolbarComponent)(i0.ɵɵdirectiveInject(i1$9.Router), i0.ɵɵdirectiveInject(i1$9.ActivatedRoute)); }; }
|
|
19308
20819
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrGridToolbarComponent, selectors: [["dr-grid-toolbar"]], inputs: { gridApi: "gridApi", gridColumnApi: "gridColumnApi", title: "title", showSearch: "showSearch", searchMini: "searchMini", reactiveSearch: "reactiveSearch", showColumnSettings: "showColumnSettings", menuActions: "menuActions", menuActionsTooltip: "menuActionsTooltip", showRefresh: "showRefresh", csvParams: "csvParams" }, outputs: { search: "search", menuActionsClick: "menuActionsClick", refresh: "refresh" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$3, decls: 9, vars: 6, consts: [["data-test", "table_title", 1, "dr-grid-toolbar__title"], [1, "dr-grid-toolbar__actions"], ["class", "dr-grid-toolbar__actions__search", "data-analytics", "admin_admin-table-header_input-0", "type", "search", 3, "ngModel", "searchMini", "clearable", "ngModelChange", "search", "blur", "searchHandler", "clearHandler", "keyup.enter", 4, "ngIf"], ["class", "dr-grid-toolbar__actions__columns-settings", "data-analytics", "admin_admin-table-header_button-1", "theme", "icon-primary", "drTooltip", "Columns Menu", "drTooltipPosition", "top", "icon", "dr-icon-bars", 3, "drPopover", "drPopoverPosition", "drPopoverContext", 4, "ngIf"], ["class", "dr-grid-toolbar__actions__more-actions", "drTooltipPosition", "top", "data-analytics", "admin_admin-table-header_button-3", "theme", "icon-primary", "drDropdownPosition", "bottom-right", "icon", "dr-icon-more", 3, "drTooltip", "drDropdown", "click", 4, "ngIf"], ["class", "dr-grid-toolbar__actions__refresh", "data-analytics", "admin_admin-table-header_button-5", "theme", "icon-secondary", "icon", "dr-icon-refresh", "drTooltip", "Refresh", "drTooltipPosition", "top", 3, "click", 4, "ngIf"], ["class", "dr-grid-toolbar__actions__export", "drTooltip", "Export table to csv file", "drTooltipPosition", "top-right", "data-analytics", "admin_admin-table-header_button-6", "theme", "icon-secondary", "icon", "dr-icon-export-excel", 3, "click", 4, "ngIf"], ["data-analytics", "admin_admin-table-header_input-0", "type", "search", 1, "dr-grid-toolbar__actions__search", 3, "ngModel", "searchMini", "clearable", "ngModelChange", "search", "blur", "searchHandler", "clearHandler", "keyup.enter"], ["data-analytics", "admin_admin-table-header_button-1", "theme", "icon-primary", "drTooltip", "Columns Menu", "drTooltipPosition", "top", "icon", "dr-icon-bars", 1, "dr-grid-toolbar__actions__columns-settings", 3, "drPopover", "drPopoverPosition", "drPopoverContext"], ["drTooltipPosition", "top", "data-analytics", "admin_admin-table-header_button-3", "theme", "icon-primary", "drDropdownPosition", "bottom-right", "icon", "dr-icon-more", 1, "dr-grid-toolbar__actions__more-actions", 3, "drTooltip", "drDropdown", "click"], ["data-analytics", "admin_admin-table-header_button-5", "theme", "icon-secondary", "icon", "dr-icon-refresh", "drTooltip", "Refresh", "drTooltipPosition", "top", 1, "dr-grid-toolbar__actions__refresh", 3, "click"], ["drTooltip", "Export table to csv file", "drTooltipPosition", "top-right", "data-analytics", "admin_admin-table-header_button-6", "theme", "icon-secondary", "icon", "dr-icon-export-excel", 1, "dr-grid-toolbar__actions__export", 3, "click"]], template: function DrGridToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19309
20820
|
i0.ɵɵprojectionDef();
|
|
19310
20821
|
i0.ɵɵelementStart(0, "div", 0);
|
|
@@ -19350,7 +20861,7 @@ __decorate([
|
|
|
19350
20861
|
DrPopoverModule,
|
|
19351
20862
|
DrGridColumnsFilterPopoverComponent,
|
|
19352
20863
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dr-grid-toolbar__title\" data-test=\"table_title\">{{ title }}</div>\n<div class=\"dr-grid-toolbar__actions\">\n <dr-input\n class=\"dr-grid-toolbar__actions__search\"\n data-analytics=\"admin_admin-table-header_input-0\"\n *ngIf=\"showSearch\"\n [(ngModel)]=\"searchInput\"\n (ngModelChange)=\"searchDone = false; reactiveSearch && onSearch(this.searchInput)\"\n type=\"search\"\n (search)=\"$event.stopPropagation(); $event.preventDefault()\"\n (blur)=\"searchDone ? null : onSearch(this.searchInput)\"\n (searchHandler)=\"onSearch(this.searchInput)\"\n (clearHandler)=\"onSearch(null)\"\n (keyup.enter)=\"searchDone ? null : onSearch(this.searchInput)\"\n [searchMini]=\"searchMini\"\n [clearable]=\"true\">\n </dr-input>\n <dr-button\n *ngIf=\"showColumnSettings\"\n class=\"dr-grid-toolbar__actions__columns-settings\"\n data-analytics=\"admin_admin-table-header_button-1\"\n theme=\"icon-primary\"\n drTooltip=\"Columns Menu\"\n drTooltipPosition=\"top\"\n [drPopover]=\"ColumnsFilterPopover\"\n [drPopoverPosition]=\"'bottom-right'\"\n [drPopoverContext]=\"{ gridApi, gridColumnApi }\"\n icon=\"dr-icon-bars\">\n </dr-button>\n <dr-button\n *ngIf=\"menuActions\"\n class=\"dr-grid-toolbar__actions__more-actions\"\n [drTooltip]=\"menuActionsTooltip\"\n drTooltipPosition=\"top\"\n data-analytics=\"admin_admin-table-header_button-3\"\n theme=\"icon-primary\"\n (click)=\"onContextMenuClick($event)\"\n [drDropdown]=\"menuActions\"\n drDropdownPosition=\"bottom-right\"\n icon=\"dr-icon-more\">\n </dr-button>\n <ng-content></ng-content>\n <dr-button\n *ngIf=\"showRefresh\"\n class=\"dr-grid-toolbar__actions__refresh\"\n data-analytics=\"admin_admin-table-header_button-5\"\n theme=\"icon-secondary\"\n icon=\"dr-icon-refresh\"\n drTooltip=\"Refresh\"\n drTooltipPosition=\"top\"\n (click)=\"refresh.emit()\">\n </dr-button>\n <dr-button\n *ngIf=\"csvParams\"\n class=\"dr-grid-toolbar__actions__export\"\n drTooltip=\"Export table to csv file\"\n drTooltipPosition=\"top-right\"\n data-analytics=\"admin_admin-table-header_button-6\"\n theme=\"icon-secondary\"\n icon=\"dr-icon-export-excel\"\n (click)=\"onExport()\">\n </dr-button>\n</div>\n", styles: [":host{display:flex;align-items:center}:host .dr-grid-toolbar__title{flex-grow:1;font-size:16px;line-height:24px;font-weight:500}:host .dr-grid-toolbar__actions{display:flex;align-items:center;gap:8px;flex-shrink:0}:host .dr-grid-toolbar__actions__columns-settings{order:20}:host .dr-grid-toolbar__actions__more-actions{order:30}:host .dr-grid-toolbar__actions__refresh{order:40}:host .dr-grid-toolbar__actions__export{order:50}:host ::ng-deep .table-view-form__add-new-integration-btn.icon-primary button{width:unset!important;padding:4px 16px 4px 8px!important}\n"] }]
|
|
19353
|
-
}], function () { return [{ type: i1$
|
|
20864
|
+
}], function () { return [{ type: i1$9.Router }, { type: i1$9.ActivatedRoute }]; }, { gridApi: [{
|
|
19354
20865
|
type: Input,
|
|
19355
20866
|
args: [{ required: true }]
|
|
19356
20867
|
}], gridColumnApi: [{
|
|
@@ -20711,5 +22222,5 @@ class EmojiPickerComponent {
|
|
|
20711
22222
|
* Generated bundle index. Do not edit.
|
|
20712
22223
|
*/
|
|
20713
22224
|
|
|
20714
|
-
export { ASSETS_URL, AbstractSingleGridComponent, AllCheckedPipe, AutofocusDirective, BadgeStatus, CHAT_MESSAGE_TYPE, CROP_IMAGE_MODES, CalendarView, CellActionComponent, CellBadgeStatusComponent, CellButtonComponent, CellCheckboxComponent, CellChildrenListComponent, CellCustomTemplateComponent, CellIconActionsComponent, CellIconTextEditComponent, CellLinkComponent, CellSelectComponent, CellSetAsDefaultComponent, CellSplitRowsComponent, CellToggleComponent, ChatMessage, ChatRole, CheckboxComponent, ClickOutsideDirective, ClickOutsideModule, CodeEditorHintWrapperComponent, Colors, CustomDateAdapter, CustomDateFormat, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DR_COLOR_ADDITIONAL_BLUE, DR_COLOR_ADDITIONAL_BRIGHT_GREEN, DR_COLOR_ADDITIONAL_BRIGHT_PINK, DR_COLOR_ADDITIONAL_BRIGHT_PURPLE, DR_COLOR_ADDITIONAL_COOL_LAGOON, DR_COLOR_ADDITIONAL_DARK_BLUE, DR_COLOR_ADDITIONAL_DARK_GREEN, DR_COLOR_ADDITIONAL_DEEP_MOCHA, DR_COLOR_ADDITIONAL_FRESH_LIME, DR_COLOR_ADDITIONAL_GRAPE, DR_COLOR_ADDITIONAL_HONEY, DR_COLOR_ADDITIONAL_LAVENDER, DR_COLOR_ADDITIONAL_LIGHT_BLUE, DR_COLOR_ADDITIONAL_LIGHT_PINK, DR_COLOR_ADDITIONAL_MEDIUM_GREEN, DR_COLOR_ADDITIONAL_MOUSE, DR_COLOR_ADDITIONAL_NAVY_BLUE, DR_COLOR_ADDITIONAL_ORANGE, DR_COLOR_ADDITIONAL_ROYAL_PURPLE, DR_COLOR_ADDITIONAL_SKY_BREEZE, DR_COLOR_ADDITIONAL_SOFT_CORAL, DR_COLOR_ADDITIONAL_SPACE, DR_COLOR_AI_BACKGROUND_MAIN_GRADIENT, DR_COLOR_AI_BACKGROUND_MAIN_HOVER_GRADIENT, DR_COLOR_AI_BACKGROUND_SECONDARY_HOVER_GRADIENT, DR_COLOR_AI_BORDER_SECONDARY_GRADIENT, DR_COLOR_AI_GRADIENT, DR_COLOR_AI_LIGHT_GRADIENT, DR_COLOR_AI_PURPLE_GRADIENT, DR_COLOR_BACKGROUND_DISABLED, DR_COLOR_BACKGROUND_HEADER, DR_COLOR_BACKGROUND_HOVER, DR_COLOR_BACKGROUND_MAIN, DR_COLOR_BACKGROUND_MAIN_HEADER, DR_COLOR_BACKGROUND_SECONDARY, DR_COLOR_BACKGROUND_SELECTED, DR_COLOR_BACKGROUND_STATUS_ERROR, DR_COLOR_BACKGROUND_STATUS_INFO, DR_COLOR_BACKGROUND_STATUS_PROGRESS, DR_COLOR_BACKGROUND_STATUS_REGULAR, DR_COLOR_BACKGROUND_STATUS_SUCCESS, DR_COLOR_BACKGROUND_STATUS_WARNING, DR_COLOR_BACKGROUND_WHITE, DR_COLOR_BADGE_BABY_BLUE, DR_COLOR_BADGE_BABY_PINK, DR_COLOR_BADGE_BRIGHT_GREEN, DR_COLOR_BADGE_LIGHT_PURPLE, DR_COLOR_BADGE_LIGHT_TURQUOISE, DR_COLOR_BADGE_MUTED_PLUM, DR_COLOR_BADGE_PALE_YELLOW, DR_COLOR_BADGE_PASTEL_OLIVE, DR_COLOR_BADGE_PEACH, DR_COLOR_BADGE_POWDER_BLUE_GREY, DR_COLOR_BADGE_PURPLE, DR_COLOR_BADGE_SOFT_CORAL, DR_COLOR_BADGE_STONE, DR_COLOR_BADGE_WATER, DR_COLOR_BORDER_ACTIVE, DR_COLOR_BORDER_DISABLED, DR_COLOR_BORDER_DIVIDER, DR_COLOR_BORDER_ERROR, DR_COLOR_BORDER_HOVER, DR_COLOR_BORDER_INPUT, DR_COLOR_GRAY, DR_COLOR_GRAY_DARK, DR_COLOR_GRAY_DARKER, DR_COLOR_GRAY_LIGHT, DR_COLOR_GRAY_MEDIUM_DARK, DR_COLOR_GRAY_MEDIUM_LIGHT, DR_COLOR_PINK, DR_COLOR_PINK_DARK, DR_COLOR_PINK_DARKER, DR_COLOR_PINK_LIGHT, DR_COLOR_PINK_LIGHTER, DR_COLOR_PINK_SUPER_LIGHT, DR_COLOR_PINK_ULTRA_LIGHTER, DR_COLOR_PRIMARY, DR_COLOR_PRIMARY_DARK, DR_COLOR_PRIMARY_DARKER, DR_COLOR_PRIMARY_GRADIENT, DR_COLOR_PRIMARY_LIGHT, DR_COLOR_PRIMARY_LIGHTER, DR_COLOR_PRIMARY_SUPER_LIGHT, DR_COLOR_PRIMARY_ULTRA_LIGHT, DR_COLOR_STATUS_ERROR, DR_COLOR_STATUS_INFO, DR_COLOR_STATUS_PROGRESS, DR_COLOR_STATUS_REGULAR, DR_COLOR_STATUS_SUCCESS, DR_COLOR_STATUS_WARNING, DR_COLOR_TEXT_ACTIVE, DR_COLOR_TEXT_DISABLED, DR_COLOR_TEXT_ERROR, DR_COLOR_TEXT_INFO, DR_COLOR_TEXT_MAIN, DR_COLOR_TEXT_SECONDARY, DR_COLOR_TEXT_SUCCESS, DR_COLOR_TEXT_WARNING, DR_COLOR_TEXT_WHITE, DR_COLOR_WATERMARKS_BLUE, DR_COLOR_WATERMARKS_DARK_GRAY, DR_COLOR_WATERMARKS_DARK_GREEN, DR_COLOR_WATERMARKS_DARK_PURPLE, DR_COLOR_WATERMARKS_GRAY, DR_COLOR_WATERMARKS_GREEN, DR_COLOR_WATERMARKS_MEDIUM_GREEN, DR_COLOR_WATERMARKS_MEDIUM_PURPLE, DR_COLOR_WATERMARKS_ORANGE, DR_COLOR_WATERMARKS_PINK, DR_COLOR_WATERMARKS_PURPLE, DR_COLOR_WATERMARKS_YELLOW, DR_COLOR_YELLOW, DR_COLOR_YELLOW_DARK, DR_COLOR_YELLOW_DARKER, DR_COLOR_YELLOW_LIGHT, DR_COLOR_YELLOW_LIGHTER, DR_COLOR_YELLOW_SUPER_LIGHT, DR_COLOR_YELLOW_ULTRA_LIGHT, DR_DRAWER_DATA, DR_DRAWER_DEFAULT_OPTIONS, DR_SHINE_ANIMATION_CLASS, DataAnalyticsService, DateFromats, DatePickerPeriodPosition, DateTags, DateTimePickerComponent, Debounce, DefaultToastrComponent, DefaultTreeviewEventParser, DefaultTreeviewI18n, DialogModalWrapperComponent, DialogService, DialogWrapperComponent, DownlineTreeviewEventParser, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAlertComponent, DrAlertModule, DrAlertTheme, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrAvatarService, DrBadgeComponent, DrBadgeStatusComponent, DrBadgeStatusModule, DrButtonComponent, DrButtonLinkDirective, DrCardComponent, DrCardContentComponent, DrCardHeaderActionsComponent, DrCardHeaderComponent, DrCardModule, DrCardSubtitleComponent, DrCardTitleComponent, DrChatAlertComponent, DrChatComponent, DrChatCustomMessageDirective, DrChatDroppedFilesComponent, DrChatFormComponent, DrChatFormDropdownComponent, DrChatMessageComponent, DrChatMessageFileComponent, DrChatMessageTextComponent, DrChatModule, DrChatSuggestionsComponent, DrChipComponent, DrCodeEditorComponent, DrCodeEditorModule, DrCodemirrorComponent, DrDatePickerComponent, DrDatePickerCustomHeaderComponent, DrDatePickerFormatDirective, DrDatePickerRangeComponent, DrDatePickerWithTimeframeComponent, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDividerComponent, DrDotFlashingComponent, DrDropdownChildDirective, DrDropdownComponent, DrDropdownDirective, DrDropdownItemComponent, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownService, DrEmptyStateComponent, DrEmptyStateDescriptionDirective, DrEmptyStateMediaDirective, DrEmptyStateModule, DrEmptyStateTitleDirective, DrErrorComponent, DrErrorModule, DrFileUploadComponent, DrFileUploadImageTemplateComponent, DrFileUploadItemComponent, DrFiscalMonthCalendarHeaderComponent, DrFiscalMonthCalendarPickerComponent, DrGalleryComponent, DrGridColumnsFilterPopoverComponent, DrGridComponent, DrGridNoRowsComponent, DrGridPaginationComponent, DrGridToolbarComponent, DrImageCropperComponent, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrListOverflowComponent, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrProgressBarComponent, DrSelectAddItemComponent, DrSelectComponent, DrSharedUtils, DrShineAnimationDirective, DrShowTimeframePipe, DrSliderComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrSystemMessageComponent, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagDateComponent, DrTagDayComponent, DrTagForecastComponent, DrTagListComponent, DrTagMonthComponent, DrTagQuarterComponent, DrTagWeekComponent, DrTagYearComponent, DrTagsAndScenarioComponent, DrTagsAndScenarioConstructorComponent, DrTagsConstructorComponent, DrToastrModule, DrToastrService, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, Drawer, DrawerConfig, DrawerContainer, DrawerModule, DrawerRef, DropdownInstanceService, ElementOverflowDirective, EmojiPickerComponent, FeedbackSentiment, FileUploadValidationService, FilterDropdownComponent, FilterPipe, FiscalMonthAdapter, ForecastTagService, GMT_OFFSETS, GRID_THEME_OPTIONS, GridDrEventType, GridSortDirections, ICodeEditorHintIcon, IMAGE_TYPES, ImgPipe, IndeterminatePipe, LOCAL_TIME_ZONE_OFFSET, LetContext, LetDirective, OrderDownlineTreeviewEventParser, RadioButtonComponent, RadioGroupComponent, Scenario, ScenarioService, SearchPipe, SeparateTableColumnDirective, SeparateTableComponent, StepWizardDirective, StepperComponent, StepperWizardComponent, TagTypes, TagsConfigSubType, TagsConstructorService, TblHeaderComponent, TblToggleButtonHeaderComponent, TextOverflowComponent, Throttle, TimePickerComponent, TimeframeOption, ToastrStatus, ToastrStatusIcon, ToggleButtonMode, TooltipComponent, TooltipCustomComponent, TooltipDefaultComponent, TooltipInfoComponent, TooltipInfoIconTheme, TooltipInfoWidth, TooltipTheme, TrackByPropertyDirective, TreeviewComponent, TreeviewConfig, TreeviewEventParser, TreeviewHelper, TreeviewI18n, TreeviewItem, TreeviewModule, TreeviewPipe, TruncateTextDirective, getColumnSortingBySortType, getGMTLabel, getSortTypeByColumnSorting, gridSortArrayByLength, gridSortArrayWithSystem, gridSortDate, gridSortNumber, gridSortWithFormatter, gridSortWithSystem, gridSortWithSystemAndFormatter, gridSumAggregation };
|
|
22225
|
+
export { ALLOWED_PERIODS, ASSETS_URL, AbstractSingleGridComponent, AllCheckedPipe, AutofocusDirective, BadgeStatus, CHAT_MESSAGE_TYPE, CROP_IMAGE_MODES, CalendarView, CellActionComponent, CellBadgeStatusComponent, CellButtonComponent, CellCheckboxComponent, CellChildrenListComponent, CellCustomTemplateComponent, CellIconActionsComponent, CellIconTextEditComponent, CellLinkComponent, CellSelectComponent, CellSetAsDefaultComponent, CellSplitRowsComponent, CellToggleComponent, ChatMessage, ChatRole, CheckboxComponent, ClickOutsideDirective, ClickOutsideModule, CodeEditorHintWrapperComponent, Colors, CronEditor, CronEditorDefaultConfigByPeriod, CronEditorPeriod, CronTimePeriod, CustomDateAdapter, CustomDateFormat, DAY_OF_MONTH_ARRAY, DAY_OF_WEEK_ARRAY, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DR_COLOR_ADDITIONAL_BLUE, DR_COLOR_ADDITIONAL_BRIGHT_GREEN, DR_COLOR_ADDITIONAL_BRIGHT_PINK, DR_COLOR_ADDITIONAL_BRIGHT_PURPLE, DR_COLOR_ADDITIONAL_COOL_LAGOON, DR_COLOR_ADDITIONAL_DARK_BLUE, DR_COLOR_ADDITIONAL_DARK_GREEN, DR_COLOR_ADDITIONAL_DEEP_MOCHA, DR_COLOR_ADDITIONAL_FRESH_LIME, DR_COLOR_ADDITIONAL_GRAPE, DR_COLOR_ADDITIONAL_HONEY, DR_COLOR_ADDITIONAL_LAVENDER, DR_COLOR_ADDITIONAL_LIGHT_BLUE, DR_COLOR_ADDITIONAL_LIGHT_PINK, DR_COLOR_ADDITIONAL_MEDIUM_GREEN, DR_COLOR_ADDITIONAL_MOUSE, DR_COLOR_ADDITIONAL_NAVY_BLUE, DR_COLOR_ADDITIONAL_ORANGE, DR_COLOR_ADDITIONAL_ROYAL_PURPLE, DR_COLOR_ADDITIONAL_SKY_BREEZE, DR_COLOR_ADDITIONAL_SOFT_CORAL, DR_COLOR_ADDITIONAL_SPACE, DR_COLOR_AI_BACKGROUND_MAIN_GRADIENT, DR_COLOR_AI_BACKGROUND_MAIN_HOVER_GRADIENT, DR_COLOR_AI_BACKGROUND_SECONDARY_HOVER_GRADIENT, DR_COLOR_AI_BORDER_SECONDARY_GRADIENT, DR_COLOR_AI_GRADIENT, DR_COLOR_AI_LIGHT_GRADIENT, DR_COLOR_AI_PURPLE_GRADIENT, DR_COLOR_BACKGROUND_DISABLED, DR_COLOR_BACKGROUND_HEADER, DR_COLOR_BACKGROUND_HOVER, DR_COLOR_BACKGROUND_MAIN, DR_COLOR_BACKGROUND_MAIN_HEADER, DR_COLOR_BACKGROUND_SECONDARY, DR_COLOR_BACKGROUND_SELECTED, DR_COLOR_BACKGROUND_STATUS_ERROR, DR_COLOR_BACKGROUND_STATUS_INFO, DR_COLOR_BACKGROUND_STATUS_PROGRESS, DR_COLOR_BACKGROUND_STATUS_REGULAR, DR_COLOR_BACKGROUND_STATUS_SUCCESS, DR_COLOR_BACKGROUND_STATUS_WARNING, DR_COLOR_BACKGROUND_WHITE, DR_COLOR_BADGE_BABY_BLUE, DR_COLOR_BADGE_BABY_PINK, DR_COLOR_BADGE_BRIGHT_GREEN, DR_COLOR_BADGE_LIGHT_PURPLE, DR_COLOR_BADGE_LIGHT_TURQUOISE, DR_COLOR_BADGE_MUTED_PLUM, DR_COLOR_BADGE_PALE_YELLOW, DR_COLOR_BADGE_PASTEL_OLIVE, DR_COLOR_BADGE_PEACH, DR_COLOR_BADGE_POWDER_BLUE_GREY, DR_COLOR_BADGE_PURPLE, DR_COLOR_BADGE_SOFT_CORAL, DR_COLOR_BADGE_STONE, DR_COLOR_BADGE_WATER, DR_COLOR_BORDER_ACTIVE, DR_COLOR_BORDER_DISABLED, DR_COLOR_BORDER_DIVIDER, DR_COLOR_BORDER_ERROR, DR_COLOR_BORDER_HOVER, DR_COLOR_BORDER_INPUT, DR_COLOR_GRAY, DR_COLOR_GRAY_DARK, DR_COLOR_GRAY_DARKER, DR_COLOR_GRAY_LIGHT, DR_COLOR_GRAY_MEDIUM_DARK, DR_COLOR_GRAY_MEDIUM_LIGHT, DR_COLOR_PINK, DR_COLOR_PINK_DARK, DR_COLOR_PINK_DARKER, DR_COLOR_PINK_LIGHT, DR_COLOR_PINK_LIGHTER, DR_COLOR_PINK_SUPER_LIGHT, DR_COLOR_PINK_ULTRA_LIGHTER, DR_COLOR_PRIMARY, DR_COLOR_PRIMARY_DARK, DR_COLOR_PRIMARY_DARKER, DR_COLOR_PRIMARY_GRADIENT, DR_COLOR_PRIMARY_LIGHT, DR_COLOR_PRIMARY_LIGHTER, DR_COLOR_PRIMARY_SUPER_LIGHT, DR_COLOR_PRIMARY_ULTRA_LIGHT, DR_COLOR_STATUS_ERROR, DR_COLOR_STATUS_INFO, DR_COLOR_STATUS_PROGRESS, DR_COLOR_STATUS_REGULAR, DR_COLOR_STATUS_SUCCESS, DR_COLOR_STATUS_WARNING, DR_COLOR_TEXT_ACTIVE, DR_COLOR_TEXT_DISABLED, DR_COLOR_TEXT_ERROR, DR_COLOR_TEXT_INFO, DR_COLOR_TEXT_MAIN, DR_COLOR_TEXT_SECONDARY, DR_COLOR_TEXT_SUCCESS, DR_COLOR_TEXT_WARNING, DR_COLOR_TEXT_WHITE, DR_COLOR_WATERMARKS_BLUE, DR_COLOR_WATERMARKS_DARK_GRAY, DR_COLOR_WATERMARKS_DARK_GREEN, DR_COLOR_WATERMARKS_DARK_PURPLE, DR_COLOR_WATERMARKS_GRAY, DR_COLOR_WATERMARKS_GREEN, DR_COLOR_WATERMARKS_MEDIUM_GREEN, DR_COLOR_WATERMARKS_MEDIUM_PURPLE, DR_COLOR_WATERMARKS_ORANGE, DR_COLOR_WATERMARKS_PINK, DR_COLOR_WATERMARKS_PURPLE, DR_COLOR_WATERMARKS_YELLOW, DR_COLOR_YELLOW, DR_COLOR_YELLOW_DARK, DR_COLOR_YELLOW_DARKER, DR_COLOR_YELLOW_LIGHT, DR_COLOR_YELLOW_LIGHTER, DR_COLOR_YELLOW_SUPER_LIGHT, DR_COLOR_YELLOW_ULTRA_LIGHT, DR_DRAWER_DATA, DR_DRAWER_DEFAULT_OPTIONS, DR_MODAL_DEFAULT_CONFIG, DR_SHINE_ANIMATION_CLASS, DataAnalyticsService, DateFromats, DatePickerPeriodPosition, DateTags, DateTimePickerComponent, Debounce, DefaultToastrComponent, DefaultTreeviewEventParser, DefaultTreeviewI18n, DialogModalWrapperComponent, DialogService, DialogWrapperComponent, DownlineTreeviewEventParser, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAlertComponent, DrAlertModule, DrAlertTheme, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrAvatarService, DrBadgeComponent, DrBadgeStatusComponent, DrBadgeStatusModule, DrButtonComponent, DrButtonLinkDirective, DrCardComponent, DrCardContentComponent, DrCardHeaderActionsComponent, DrCardHeaderComponent, DrCardModule, DrCardSubtitleComponent, DrCardTitleComponent, DrChatAlertComponent, DrChatComponent, DrChatCustomMessageDirective, DrChatDroppedFilesComponent, DrChatFormComponent, DrChatFormDropdownComponent, DrChatMessageComponent, DrChatMessageFileComponent, DrChatMessageTextComponent, DrChatModule, DrChatSuggestionsComponent, DrChipComponent, DrCodeEditorComponent, DrCodeEditorModule, DrCodemirrorComponent, DrConfirmModalComponent, DrCronFieldComponent, DrDatePickerComponent, DrDatePickerCustomHeaderComponent, DrDatePickerFormatDirective, DrDatePickerRangeComponent, DrDatePickerWithTimeframeComponent, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDividerComponent, DrDotFlashingComponent, DrDropdownChildDirective, DrDropdownComponent, DrDropdownDirective, DrDropdownItemComponent, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownService, DrEmptyStateComponent, DrEmptyStateDescriptionDirective, DrEmptyStateMediaDirective, DrEmptyStateModule, DrEmptyStateTitleDirective, DrErrorComponent, DrErrorModule, DrFileUploadComponent, DrFileUploadImageTemplateComponent, DrFileUploadItemComponent, DrFiscalMonthCalendarHeaderComponent, DrFiscalMonthCalendarPickerComponent, DrGalleryComponent, DrGridColumnsFilterPopoverComponent, DrGridComponent, DrGridNoRowsComponent, DrGridPaginationComponent, DrGridToolbarComponent, DrImageCropperComponent, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrListOverflowComponent, DrModal, DrModalBodyDirective, DrModalCloseDirective, DrModalComponent, DrModalConfig, DrModalContainerComponent, DrModalFooterDirective, DrModalHeaderDirective, DrModalModule, DrModalRef, DrModalService, DrModalSubtitleDirective, DrModalTitleDirective, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrProgressBarComponent, DrSelectAddItemComponent, DrSelectComponent, DrSharedUtils, DrShineAnimationDirective, DrShowTimeframePipe, DrSliderComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrSystemMessageComponent, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagDateComponent, DrTagDayComponent, DrTagForecastComponent, DrTagListComponent, DrTagMonthComponent, DrTagQuarterComponent, DrTagWeekComponent, DrTagYearComponent, DrTagsAndScenarioComponent, DrTagsAndScenarioConstructorComponent, DrTagsConstructorComponent, DrToastrModule, DrToastrService, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, Drawer, DrawerConfig, DrawerContainer, DrawerModule, DrawerRef, DropdownInstanceService, ElementOverflowDirective, EmojiPickerComponent, FeedbackSentiment, FileUploadValidationService, FilterDropdownComponent, FilterPipe, FiscalMonthAdapter, ForecastTagService, GMT_OFFSETS, GRID_THEME_OPTIONS, GridDrEventType, GridSortDirections, HOURS_DIVISIBLE_INTO_DAY, ICodeEditorHintIcon, IMAGE_TYPES, ImgPipe, IndeterminatePipe, LOCAL_TIME_ZONE_OFFSET, LetContext, LetDirective, MONTH_OF_QUARTER_ARRAY, MONTH_OF_YEAR_ARRAY, OrderDownlineTreeviewEventParser, RadioButtonComponent, RadioGroupComponent, Scenario, ScenarioService, SearchPipe, SeparateTableColumnDirective, SeparateTableComponent, StepWizardDirective, StepperComponent, StepperWizardComponent, TagTypes, TagsConfigSubType, TagsConstructorService, TblHeaderComponent, TblToggleButtonHeaderComponent, TextOverflowComponent, Throttle, TimePickerComponent, TimeframeOption, ToastrStatus, ToastrStatusIcon, ToggleButtonMode, TooltipComponent, TooltipCustomComponent, TooltipDefaultComponent, TooltipInfoComponent, TooltipInfoIconTheme, TooltipInfoWidth, TooltipTheme, TrackByPropertyDirective, TreeviewComponent, TreeviewConfig, TreeviewEventParser, TreeviewHelper, TreeviewI18n, TreeviewItem, TreeviewModule, TreeviewPipe, TruncateTextDirective, addOrdinalSuffix, dateFormatToCronPeriod, fromPromise, getColumnSortingBySortType, getCronTypeAsPeriodLabel, getGMTLabel, getInitialQuarterArray, getQuarterStringByMonthInQuarter, getSortTypeByColumnSorting, getStartMonthInQuarter, gridSortArrayByLength, gridSortArrayWithSystem, gridSortDate, gridSortNumber, gridSortWithFormatter, gridSortWithSystem, gridSortWithSystemAndFormatter, gridSumAggregation, modalFormCheckbox, modalFormDatepicker, modalFormInput, modalFormSelect, withResult };
|
|
20715
22226
|
//# sourceMappingURL=datarailsshared-datarailsshared.mjs.map
|