@natec/mef-dev-ui-kit 20.1.249 → 20.1.254
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/fesm2022/natec-mef-dev-ui-kit.mjs +7 -787
- package/fesm2022/natec-mef-dev-ui-kit.mjs.map +1 -1
- package/index.d.ts +7 -454
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Injectable, EventEmitter, Output, Input, Component, NgModule, ContentChild, ChangeDetectionStrategy, ViewChild, InjectionToken, inject, TemplateRef, Directive, ViewContainerRef, DOCUMENT, NgZone, ElementRef, Renderer2, booleanAttribute, ViewEncapsulation, ChangeDetectorRef, HostAttributeToken, numberAttribute, QueryList, ContentChildren, Injector, Optional, SkipSelf, signal, ViewChildren, ApplicationRef, afterNextRender, input, computed, forwardRef, HostListener, EnvironmentInjector, HOST_TAG_NAME, Host, contentChildren, viewChildren } from '@angular/core';
|
|
3
|
+
import { Subject, Subscription, EMPTY, merge, defer, timer, Observable, of, filter as filter$1, map as map$1, startWith as startWith$1, switchMap as switchMap$1, takeUntil as takeUntil$1, take as take$1, BehaviorSubject } from 'rxjs';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule, NgTemplateOutlet, NgClass } from '@angular/common';
|
|
6
|
-
import {
|
|
7
|
-
import { FormsModule, NgControl, Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS, NgForm, FormGroupDirective } from '@angular/forms';
|
|
6
|
+
import { trigger, transition, style, animate } from '@angular/animations';
|
|
8
7
|
import { CdkAccordionItem, CdkAccordion } from '@angular/cdk/accordion';
|
|
9
8
|
import { _IdGenerator, FocusMonitor, FocusKeyManager, isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader, ActiveDescendantKeyManager, CdkMonitorFocus, removeAriaReferencedId, addAriaReferencedId } from '@angular/cdk/a11y';
|
|
10
9
|
import { startWith, filter, take, switchMap, map, takeUntil, debounceTime, skip, skipWhile, tap, delay } from 'rxjs/operators';
|
|
@@ -20,274 +19,11 @@ import { CdkStepLabel, CdkStepHeader, CdkStep, CdkStepper, CdkStepperNext, CdkSt
|
|
|
20
19
|
import { Platform, _getEventTarget, _getShadowRoot, _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
21
20
|
import { SharedResizeObserver } from '@angular/cdk/observers/private';
|
|
22
21
|
import { Directionality, BidiModule } from '@angular/cdk/bidi';
|
|
22
|
+
import { NgControl, Validators, FormsModule, NG_VALUE_ACCESSOR, NG_VALIDATORS, NgForm, FormGroupDirective } from '@angular/forms';
|
|
23
23
|
import { CdkObserveContent } from '@angular/cdk/observers';
|
|
24
24
|
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
25
25
|
import { toObservable } from '@angular/core/rxjs-interop';
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
* Component representing a set of collapsible panels.
|
|
29
|
-
*
|
|
30
|
-
* Example of usage:
|
|
31
|
-
*
|
|
32
|
-
*```
|
|
33
|
-
* <mefdev-collapse-set [Accordion]="true" [Horizontal]="true" [expandAny]="false">
|
|
34
|
-
* <mefdev-collapse [Disabled]="false" [Active]="true">
|
|
35
|
-
* <!-- Content for the collapse panel -->
|
|
36
|
-
* <h3>Panel 1</h3>
|
|
37
|
-
* <p>Panel 1 content...</p>
|
|
38
|
-
* </mefdev-collapse>
|
|
39
|
-
|
|
40
|
-
* <mefdev-collapse [Disabled]="false" [Active]="false">
|
|
41
|
-
* <!-- Content for the collapse panel -->
|
|
42
|
-
* <h3>Panel 2</h3>
|
|
43
|
-
* <p>Panel 2 content...</p>
|
|
44
|
-
* </mefdev-collapse>
|
|
45
|
-
|
|
46
|
-
* <mefdev-collapse [Disabled]="false" [Active]="false">
|
|
47
|
-
* <!-- Content for the collapse panel -->
|
|
48
|
-
* <h3>Panel 3</h3>
|
|
49
|
-
* <p>Panel 3 content...</p>
|
|
50
|
-
* </mefdev-collapse>
|
|
51
|
-
* </mefdev-collapse-set>
|
|
52
|
-
*```
|
|
53
|
-
*/
|
|
54
|
-
class CollapseSetComponent {
|
|
55
|
-
_accordion = false;
|
|
56
|
-
_horizontal = true;
|
|
57
|
-
_expandAny = true;
|
|
58
|
-
panels = [];
|
|
59
|
-
/**
|
|
60
|
-
* Indicates whether multiple panels can be expanded simultaneously.
|
|
61
|
-
* Set this to `true` to allow multiple panels to be expanded. Defaults to `false`.
|
|
62
|
-
*/
|
|
63
|
-
set expandAny(value) {
|
|
64
|
-
this._accordion = value;
|
|
65
|
-
}
|
|
66
|
-
get expandAny() {
|
|
67
|
-
return this._accordion;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Indicates whether the collapse set operates as an accordion.
|
|
71
|
-
* Set this to `true` to enable accordion behavior. Defaults to `false`.
|
|
72
|
-
*/
|
|
73
|
-
set Accordion(value) {
|
|
74
|
-
this._accordion = value;
|
|
75
|
-
}
|
|
76
|
-
get Accordion() {
|
|
77
|
-
return this._accordion;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Indicates whether the collapse set is displayed horizontally or vertically.
|
|
81
|
-
* Set this to `true` for horizontal display and `false` for vertical display. Defaults to `true`.
|
|
82
|
-
*/
|
|
83
|
-
set Horizontal(value) {
|
|
84
|
-
this._horizontal = value;
|
|
85
|
-
}
|
|
86
|
-
get Horizontal() {
|
|
87
|
-
return this._horizontal;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Event handler for the click event on a collapse panel.
|
|
91
|
-
* Closes other panels if the collapse set is an accordion and does not allow multiple expansions.
|
|
92
|
-
*
|
|
93
|
-
* @param collapse The clicked collapse component.
|
|
94
|
-
*/
|
|
95
|
-
pgClick(collapse) {
|
|
96
|
-
if (this.Accordion && !this.expandAny) {
|
|
97
|
-
this.panels.map((item, index) => {
|
|
98
|
-
const curIndex = this.panels.indexOf(collapse);
|
|
99
|
-
if (index !== curIndex) {
|
|
100
|
-
item.Active = false;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Adds a collapse panel to the collapse set.
|
|
107
|
-
*
|
|
108
|
-
* @param collapse The collapse component to be added.
|
|
109
|
-
*/
|
|
110
|
-
addTab(collapse) {
|
|
111
|
-
this.panels.push(collapse);
|
|
112
|
-
}
|
|
113
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: CollapseSetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
114
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: CollapseSetComponent, isStandalone: false, selector: "mefdev-collapse-set", inputs: { expandAny: "expandAny", Accordion: "Accordion", Horizontal: "Horizontal" }, ngImport: i0, template: "<div class=\"card-group\" [class.horizontal]=\"Horizontal\">\r\n <ng-content></ng-content>\r\n</div>", styles: [""], encapsulation: i0.ViewEncapsulation.None });
|
|
115
|
-
}
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: CollapseSetComponent, decorators: [{
|
|
117
|
-
type: Component,
|
|
118
|
-
args: [{ selector: 'mefdev-collapse-set', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"card-group\" [class.horizontal]=\"Horizontal\">\r\n <ng-content></ng-content>\r\n</div>" }]
|
|
119
|
-
}], propDecorators: { expandAny: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], Accordion: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], Horizontal: [{
|
|
124
|
-
type: Input
|
|
125
|
-
}] } });
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Component for displaying a collapsible content.
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* Example of usage:
|
|
132
|
-
*```
|
|
133
|
-
* <mefdev-collapse [Disabled]="false" [Active]="true" (stateChange)="onStateChange($event)">
|
|
134
|
-
* <ng-template #CardTitle>
|
|
135
|
-
* <!-- Content for the card title -->
|
|
136
|
-
* <h3>Card Title</h3>
|
|
137
|
-
* </ng-template>
|
|
138
|
-
*
|
|
139
|
-
* <!-- Content for the collapsible section -->
|
|
140
|
-
* <div>
|
|
141
|
-
Content inside collapse
|
|
142
|
-
* </div>
|
|
143
|
-
* </mefdev-collapse>
|
|
144
|
-
*
|
|
145
|
-
*```
|
|
146
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/collapse</example-url>
|
|
147
|
-
|
|
148
|
-
*/
|
|
149
|
-
class CollapseComponent {
|
|
150
|
-
_collapseSet;
|
|
151
|
-
_elementRef;
|
|
152
|
-
_disabled = false;
|
|
153
|
-
_active = false;
|
|
154
|
-
_el;
|
|
155
|
-
/**
|
|
156
|
-
* ContentChild for the template of the card title.
|
|
157
|
-
*
|
|
158
|
-
* Example:
|
|
159
|
-
* ```
|
|
160
|
-
* <ng-template #CardTitle>
|
|
161
|
-
* <h3>Card Title</h3>
|
|
162
|
-
* </ng-template>
|
|
163
|
-
* ```
|
|
164
|
-
*/
|
|
165
|
-
CardTitle;
|
|
166
|
-
/**
|
|
167
|
-
* Indicates whether the collapse is disabled.
|
|
168
|
-
* Set this to `true` to disable the collapse. Defaults to `false`.
|
|
169
|
-
*/
|
|
170
|
-
set Disabled(value) {
|
|
171
|
-
this._disabled = value;
|
|
172
|
-
}
|
|
173
|
-
get Disabled() {
|
|
174
|
-
return this._disabled;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Indicates whether the collapse is active or not.
|
|
178
|
-
*/
|
|
179
|
-
set Active(value) {
|
|
180
|
-
const active = value;
|
|
181
|
-
if (this._active === active) {
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
if (!this.Disabled) {
|
|
185
|
-
this._active = active;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
get Active() {
|
|
189
|
-
return this._active;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Event emitter for the state change of the collapse.
|
|
193
|
-
* Emits a boolean value indicating whether the collapse is active or not.
|
|
194
|
-
*
|
|
195
|
-
* Example:
|
|
196
|
-
* ```
|
|
197
|
-
* <mefdev-collapse (stateChange)="onStateChange($event)"></mefdev-collapse>
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
stateChange = new EventEmitter();
|
|
201
|
-
/**
|
|
202
|
-
* Event handler for the header click event.
|
|
203
|
-
* Toggles the active state of the collapse and emits the state change event.
|
|
204
|
-
*
|
|
205
|
-
* @param $event The mouse event object.
|
|
206
|
-
*/
|
|
207
|
-
clickHeader($event) {
|
|
208
|
-
this.Active = !this.Active;
|
|
209
|
-
this.stateChange.next(this.Active);
|
|
210
|
-
/** trigger host collapseSet click event */
|
|
211
|
-
this._collapseSet.pgClick(this);
|
|
212
|
-
}
|
|
213
|
-
constructor(_collapseSet, _elementRef) {
|
|
214
|
-
this._collapseSet = _collapseSet;
|
|
215
|
-
this._elementRef = _elementRef;
|
|
216
|
-
this._el = this._elementRef.nativeElement;
|
|
217
|
-
this._collapseSet.addTab(this);
|
|
218
|
-
}
|
|
219
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: CollapseComponent, deps: [{ token: CollapseSetComponent, host: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
220
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: CollapseComponent, isStandalone: false, selector: "mefdev-collapse", inputs: { Disabled: "Disabled", Active: "Active" }, outputs: { stateChange: "stateChange" }, host: { properties: { "class.card": "true", "class.card-default": "true", "class.m-b-0": "true", "class.disabled": "this.Disabled" } }, queries: [{ propertyName: "CardTitle", first: true, predicate: ["CardTitle"], descendants: true }], ngImport: i0, template: "<div class=\"row w-100 mt-2 card-title\" [attr.aria-expanded]=\"_active\" (click)=\"clickHeader($event)\" role=\"tab\"\r\nhref=\"javascript:;\" [ngClass]=\"{'collapsed':!_active}\">\r\n <div class=\"col\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"col\">\r\n <i class=\"fa fa-angle-down float-end \" aria-hidden=\"true\" *ngIf=\"!_active\"></i>\r\n <i class=\"fa fa-angle-up float-end \" aria-hidden=\"true\" *ngIf=\"_active\"></i>\r\n </div>\r\n</div>\r\n\r\n<div class=\"collapse\" [ngClass]=\"{'show':true,'active':_active,'inactive':!_active}\" [@collapseState]=\"_active?'active':'inactive'\">\r\n <div *ngIf=\"_active\"\r\n class=\"card-body mb-3\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".h1,h1{font-family:Montserrat,Arial,sans-serif;font-size:32px;line-height:40px;font-weight:700;text-transform:none;color:#000;margin-bottom:16px}.h2,h2{font-family:Montserrat,Arial,sans-serif;font-size:24px;line-height:30px;font-weight:700;text-transform:none;color:#000;margin-bottom:12px}.h3,.card-title,h3{font-family:Montserrat,Arial,sans-serif;font-size:18px;line-height:24px;font-weight:600;text-transform:none;color:#000;margin-bottom:10px}.h4,h4{font-family:Montserrat,Arial,sans-serif;font-size:16px;line-height:22px;font-weight:600;text-transform:none;letter-spacing:.5px;color:#000;margin-bottom:8px}.h5,h5{font-family:Montserrat,Arial,sans-serif;font-size:14px;line-height:20px;font-weight:500;text-transform:none;color:#000;margin-bottom:6px}.h6,h6{font-family:Montserrat,Arial,sans-serif;font-size:13px;line-height:18px;font-weight:500;text-transform:none;color:#000;margin-bottom:4px}.body-1,body-1{font-family:Open Sans,Arial,sans-serif;font-size:18px;line-height:27px;font-weight:700;color:#000}.body-2,body-2{font-family:Open Sans,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color:#000}.body-3,body-3{font-family:Open Sans,Arial,sans-serif;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Open Sans,Arial,sans-serif;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Open Sans,Arial,sans-serif;font-size:13px;line-height:18px;font-weight:600;color:#000}.body-6,body-6{font-family:Open Sans,Arial,sans-serif;font-size:13px;line-height:16px;font-weight:400;color:#000}:host{background-color:transparent}.card-title{background-color:#f3f3f3;padding:17px;margin:0;color:#000}.collapse{background-color:#f3f3f3}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
|
|
221
|
-
trigger('collapseState', [
|
|
222
|
-
state('inactive', style({
|
|
223
|
-
opacity: '0',
|
|
224
|
-
height: 0
|
|
225
|
-
})),
|
|
226
|
-
state('active', style({
|
|
227
|
-
opacity: '1',
|
|
228
|
-
height: '*'
|
|
229
|
-
})),
|
|
230
|
-
transition('inactive => active', animate('125ms ease-in')),
|
|
231
|
-
transition('active => inactive', animate('125ms ease-out'))
|
|
232
|
-
])
|
|
233
|
-
] });
|
|
234
|
-
}
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: CollapseComponent, decorators: [{
|
|
236
|
-
type: Component,
|
|
237
|
-
args: [{ selector: 'mefdev-collapse', animations: [
|
|
238
|
-
trigger('collapseState', [
|
|
239
|
-
state('inactive', style({
|
|
240
|
-
opacity: '0',
|
|
241
|
-
height: 0
|
|
242
|
-
})),
|
|
243
|
-
state('active', style({
|
|
244
|
-
opacity: '1',
|
|
245
|
-
height: '*'
|
|
246
|
-
})),
|
|
247
|
-
transition('inactive => active', animate('125ms ease-in')),
|
|
248
|
-
transition('active => inactive', animate('125ms ease-out'))
|
|
249
|
-
])
|
|
250
|
-
], host: {
|
|
251
|
-
'[class.card]': 'true',
|
|
252
|
-
'[class.card-default]': 'true',
|
|
253
|
-
'[class.m-b-0]': 'true'
|
|
254
|
-
}, standalone: false, template: "<div class=\"row w-100 mt-2 card-title\" [attr.aria-expanded]=\"_active\" (click)=\"clickHeader($event)\" role=\"tab\"\r\nhref=\"javascript:;\" [ngClass]=\"{'collapsed':!_active}\">\r\n <div class=\"col\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"col\">\r\n <i class=\"fa fa-angle-down float-end \" aria-hidden=\"true\" *ngIf=\"!_active\"></i>\r\n <i class=\"fa fa-angle-up float-end \" aria-hidden=\"true\" *ngIf=\"_active\"></i>\r\n </div>\r\n</div>\r\n\r\n<div class=\"collapse\" [ngClass]=\"{'show':true,'active':_active,'inactive':!_active}\" [@collapseState]=\"_active?'active':'inactive'\">\r\n <div *ngIf=\"_active\"\r\n class=\"card-body mb-3\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".h1,h1{font-family:Montserrat,Arial,sans-serif;font-size:32px;line-height:40px;font-weight:700;text-transform:none;color:#000;margin-bottom:16px}.h2,h2{font-family:Montserrat,Arial,sans-serif;font-size:24px;line-height:30px;font-weight:700;text-transform:none;color:#000;margin-bottom:12px}.h3,.card-title,h3{font-family:Montserrat,Arial,sans-serif;font-size:18px;line-height:24px;font-weight:600;text-transform:none;color:#000;margin-bottom:10px}.h4,h4{font-family:Montserrat,Arial,sans-serif;font-size:16px;line-height:22px;font-weight:600;text-transform:none;letter-spacing:.5px;color:#000;margin-bottom:8px}.h5,h5{font-family:Montserrat,Arial,sans-serif;font-size:14px;line-height:20px;font-weight:500;text-transform:none;color:#000;margin-bottom:6px}.h6,h6{font-family:Montserrat,Arial,sans-serif;font-size:13px;line-height:18px;font-weight:500;text-transform:none;color:#000;margin-bottom:4px}.body-1,body-1{font-family:Open Sans,Arial,sans-serif;font-size:18px;line-height:27px;font-weight:700;color:#000}.body-2,body-2{font-family:Open Sans,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color:#000}.body-3,body-3{font-family:Open Sans,Arial,sans-serif;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Open Sans,Arial,sans-serif;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Open Sans,Arial,sans-serif;font-size:13px;line-height:18px;font-weight:600;color:#000}.body-6,body-6{font-family:Open Sans,Arial,sans-serif;font-size:13px;line-height:16px;font-weight:400;color:#000}:host{background-color:transparent}.card-title{background-color:#f3f3f3;padding:17px;margin:0;color:#000}.collapse{background-color:#f3f3f3}\n"] }]
|
|
255
|
-
}], ctorParameters: () => [{ type: CollapseSetComponent, decorators: [{
|
|
256
|
-
type: Host
|
|
257
|
-
}] }, { type: i0.ElementRef }], propDecorators: { CardTitle: [{
|
|
258
|
-
type: ContentChild,
|
|
259
|
-
args: ["CardTitle"]
|
|
260
|
-
}], Disabled: [{
|
|
261
|
-
type: Input
|
|
262
|
-
}, {
|
|
263
|
-
type: HostBinding,
|
|
264
|
-
args: ['class.disabled']
|
|
265
|
-
}], Active: [{
|
|
266
|
-
type: Input
|
|
267
|
-
}], stateChange: [{
|
|
268
|
-
type: Output
|
|
269
|
-
}] } });
|
|
270
|
-
|
|
271
|
-
const mefDevCollapseModuleComponents = [CollapseSetComponent, CollapseComponent];
|
|
272
|
-
class MefDevCollapseModule {
|
|
273
|
-
static forRoot() {
|
|
274
|
-
return {
|
|
275
|
-
ngModule: MefDevCollapseModule
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
279
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevCollapseModule, declarations: [CollapseSetComponent, CollapseComponent], imports: [CommonModule], exports: [CollapseSetComponent, CollapseComponent] });
|
|
280
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCollapseModule, imports: [CommonModule] });
|
|
281
|
-
}
|
|
282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCollapseModule, decorators: [{
|
|
283
|
-
type: NgModule,
|
|
284
|
-
args: [{
|
|
285
|
-
declarations: mefDevCollapseModuleComponents,
|
|
286
|
-
exports: mefDevCollapseModuleComponents,
|
|
287
|
-
imports: [CommonModule]
|
|
288
|
-
}]
|
|
289
|
-
}] });
|
|
290
|
-
|
|
291
27
|
class FilteredFieldService {
|
|
292
28
|
newFilterItem = new Subject();
|
|
293
29
|
openFilter = new Subject();
|
|
@@ -551,10 +287,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
551
287
|
const mefDevCardComponents = [CardSimpleComponent];
|
|
552
288
|
class MefDevCardModule {
|
|
553
289
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
554
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, declarations: [CardSimpleComponent], imports: [CommonModule,
|
|
555
|
-
|
|
556
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, imports: [CommonModule,
|
|
557
|
-
MefDevCollapseModule] });
|
|
290
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, declarations: [CardSimpleComponent], imports: [CommonModule], exports: [CardSimpleComponent] });
|
|
291
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, imports: [CommonModule] });
|
|
558
292
|
}
|
|
559
293
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, decorators: [{
|
|
560
294
|
type: NgModule,
|
|
@@ -563,7 +297,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
563
297
|
exports: mefDevCardComponents,
|
|
564
298
|
imports: [
|
|
565
299
|
CommonModule,
|
|
566
|
-
MefDevCollapseModule,
|
|
567
300
|
]
|
|
568
301
|
}]
|
|
569
302
|
}] });
|
|
@@ -1234,519 +967,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
1234
967
|
}]
|
|
1235
968
|
}] });
|
|
1236
969
|
|
|
1237
|
-
/**
|
|
1238
|
-
* @ignore
|
|
1239
|
-
*/
|
|
1240
|
-
class StageComponent {
|
|
1241
|
-
currentExecutorStep;
|
|
1242
|
-
isRightModal;
|
|
1243
|
-
isCompleted;
|
|
1244
|
-
title;
|
|
1245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: StageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1246
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: StageComponent, isStandalone: false, selector: "mefdev-stage", inputs: { currentExecutorStep: "currentExecutorStep", isRightModal: "isRightModal", isCompleted: "isCompleted", title: "title" }, ngImport: i0, template: "<div class=\"step\">\r\n <ng-container *ngIf=\"!isCompleted else done\">\r\n <svg width=\"36\" height=\"36\" viewBox=\"0 0 36 36\" [ngStyle]=\"isRightModal ? { 'fill': '#FFFFFF' } : { 'fill': '#F3F3F3' }\">\r\n <rect width=\"36\" height=\"36\" rx=\"18\" />\r\n <text class=\"body-3\" x=\"50%\" y=\"50%\" dominant-baseline=\"middle\" text-anchor=\"middle\" font-size=\"16\" fill=\"black\">\r\n {{ currentExecutorStep }}\r\n </text>\r\n </svg>\r\n <div class=\"body-6 descriptionStepText\" *ngIf=\"!isRightModal\">\r\n {{ title }}\r\n </div>\r\n </ng-container>\r\n</div>\r\n<ng-template #done>\r\n <svg width=\"36\" height=\"36\" viewBox=\"0 0 36 36\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"0.5\" y=\"0.5\" width=\"35\" height=\"35\" rx=\"17.5\" stroke=\"#929292\"/>\r\n <path d=\"M24.7373 10L14.5466 20.3769L11.2415 17.0114L8 20.3122L11.3051 23.6777L14.5678 27L17.8093 23.6992L28 13.3224L24.7373 10Z\"\r\n fill=\"#28B446\"/>\r\n </svg>\r\n <span class=\"body-6 descriptionStepText\" *ngIf=\"!isRightModal\">\r\n {{ title }}\r\n </span>\r\n</ng-template>\r\n", styles: [".step{display:flex;align-items:center;column-gap:11px}.step .descriptionStepText{width:77px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
1247
|
-
}
|
|
1248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: StageComponent, decorators: [{
|
|
1249
|
-
type: Component,
|
|
1250
|
-
args: [{ selector: 'mefdev-stage', standalone: false, template: "<div class=\"step\">\r\n <ng-container *ngIf=\"!isCompleted else done\">\r\n <svg width=\"36\" height=\"36\" viewBox=\"0 0 36 36\" [ngStyle]=\"isRightModal ? { 'fill': '#FFFFFF' } : { 'fill': '#F3F3F3' }\">\r\n <rect width=\"36\" height=\"36\" rx=\"18\" />\r\n <text class=\"body-3\" x=\"50%\" y=\"50%\" dominant-baseline=\"middle\" text-anchor=\"middle\" font-size=\"16\" fill=\"black\">\r\n {{ currentExecutorStep }}\r\n </text>\r\n </svg>\r\n <div class=\"body-6 descriptionStepText\" *ngIf=\"!isRightModal\">\r\n {{ title }}\r\n </div>\r\n </ng-container>\r\n</div>\r\n<ng-template #done>\r\n <svg width=\"36\" height=\"36\" viewBox=\"0 0 36 36\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"0.5\" y=\"0.5\" width=\"35\" height=\"35\" rx=\"17.5\" stroke=\"#929292\"/>\r\n <path d=\"M24.7373 10L14.5466 20.3769L11.2415 17.0114L8 20.3122L11.3051 23.6777L14.5678 27L17.8093 23.6992L28 13.3224L24.7373 10Z\"\r\n fill=\"#28B446\"/>\r\n </svg>\r\n <span class=\"body-6 descriptionStepText\" *ngIf=\"!isRightModal\">\r\n {{ title }}\r\n </span>\r\n</ng-template>\r\n", styles: [".step{display:flex;align-items:center;column-gap:11px}.step .descriptionStepText{width:77px}\n"] }]
|
|
1251
|
-
}], propDecorators: { currentExecutorStep: [{
|
|
1252
|
-
type: Input
|
|
1253
|
-
}], isRightModal: [{
|
|
1254
|
-
type: Input
|
|
1255
|
-
}], isCompleted: [{
|
|
1256
|
-
type: Input
|
|
1257
|
-
}], title: [{
|
|
1258
|
-
type: Input
|
|
1259
|
-
}] } });
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* Wrapper component that represents a specific encapsulated executor.
|
|
1263
|
-
*
|
|
1264
|
-
* Example of usage:
|
|
1265
|
-
*```
|
|
1266
|
-
* <mefdev-step-executor #mainExecutor [view]="'regular'">
|
|
1267
|
-
*
|
|
1268
|
-
* <ng-template #title>
|
|
1269
|
-
* <!-- Content for the executor title -->
|
|
1270
|
-
* </ng-template>
|
|
1271
|
-
* <ng-template #description>
|
|
1272
|
-
* <!-- Content for the executor description -->
|
|
1273
|
-
* </ng-template>
|
|
1274
|
-
*
|
|
1275
|
-
* <mefdev-executor-page
|
|
1276
|
-
* [title]="'Description of situation 1'"
|
|
1277
|
-
* [isActive]="mainExecutor.activePageInd === 0"
|
|
1278
|
-
* [isCompleted]="mainExecutor.activePageInd >= 0">
|
|
1279
|
-
* <!-- Content of the first executor step -->
|
|
1280
|
-
* </mefdev-executor-page>
|
|
1281
|
-
* <mefdev-executor-page
|
|
1282
|
-
* [title]="'Description of situation 2'"
|
|
1283
|
-
* [isActive]="mainExecutor.activePageInd === 1"
|
|
1284
|
-
* [isCompleted]="mainExecutor.activePageInd >= 1">
|
|
1285
|
-
* <!-- Content of the second executor step -->
|
|
1286
|
-
* </mefdev-executor-page>
|
|
1287
|
-
* <mefdev-executor-page
|
|
1288
|
-
* [title]="'Description of situation 3'"
|
|
1289
|
-
* [isActive]="mainExecutor.activePageInd === 2"
|
|
1290
|
-
* [isCompleted]="mainExecutor.activePageInd >= 2">
|
|
1291
|
-
* <!-- Content of the third executor step -->
|
|
1292
|
-
* </mefdev-executor-page>
|
|
1293
|
-
*
|
|
1294
|
-
* <ng-template #footer>
|
|
1295
|
-
* <!-- Content for the executor footer -->
|
|
1296
|
-
* <ng-template>
|
|
1297
|
-
*
|
|
1298
|
-
* </mefdev-step-executor>
|
|
1299
|
-
*
|
|
1300
|
-
*```
|
|
1301
|
-
* <example-url>https://platform.mef.dev/ui_kit_demo/view/utils/main_executor</example-url>
|
|
1302
|
-
*/
|
|
1303
|
-
class StepExecutorComponent {
|
|
1304
|
-
renderer;
|
|
1305
|
-
changeDetectorRef;
|
|
1306
|
-
/**
|
|
1307
|
-
* Mandatory input parameter that specifies the type of the step-by-step wizard.
|
|
1308
|
-
* It can have three options: regular, modal, right.
|
|
1309
|
-
*
|
|
1310
|
-
* @usageNotes
|
|
1311
|
-
* ```
|
|
1312
|
-
* <mefdev-step-executor #mainExecutor [view]="'regular'"></mefdev-step-executor>
|
|
1313
|
-
* ```
|
|
1314
|
-
*/
|
|
1315
|
-
view;
|
|
1316
|
-
/**
|
|
1317
|
-
* An optional input parameter that specifies whether to show your executor.
|
|
1318
|
-
* Usually used when you have a slideup or right executor view
|
|
1319
|
-
*
|
|
1320
|
-
* @usageNotes
|
|
1321
|
-
* ```
|
|
1322
|
-
* <mefdev-step-executor [show]="true" [view]="'right'" #mainExecutor></mefdev-step-executor>
|
|
1323
|
-
* ```
|
|
1324
|
-
*/
|
|
1325
|
-
show;
|
|
1326
|
-
/**
|
|
1327
|
-
* ViewChild reference to the host executor content.
|
|
1328
|
-
*/
|
|
1329
|
-
container;
|
|
1330
|
-
/**
|
|
1331
|
-
* Template for displaying the content of the executor title.
|
|
1332
|
-
*
|
|
1333
|
-
* @usageNotes
|
|
1334
|
-
* ```
|
|
1335
|
-
* <ng-template #title>
|
|
1336
|
-
* <!-- Content for the executor title -->
|
|
1337
|
-
* </ng-template>
|
|
1338
|
-
* ```
|
|
1339
|
-
*/
|
|
1340
|
-
title;
|
|
1341
|
-
/**
|
|
1342
|
-
* Template for displaying the content of the executor description.
|
|
1343
|
-
*
|
|
1344
|
-
* @usageNotes
|
|
1345
|
-
* ```
|
|
1346
|
-
* <ng-template #description>
|
|
1347
|
-
* <!-- Content for the executor description -->
|
|
1348
|
-
* </ng-template>
|
|
1349
|
-
* ```
|
|
1350
|
-
*/
|
|
1351
|
-
description;
|
|
1352
|
-
/**
|
|
1353
|
-
* Template for displaying the content of the executor footer.
|
|
1354
|
-
*
|
|
1355
|
-
* @usageNotes
|
|
1356
|
-
* ```
|
|
1357
|
-
* <ng-template #footer>
|
|
1358
|
-
* <!-- Content for the executor footer -->
|
|
1359
|
-
* </ng-template>
|
|
1360
|
-
* ```
|
|
1361
|
-
*/
|
|
1362
|
-
footer;
|
|
1363
|
-
/**
|
|
1364
|
-
* The output parameter that emits the class of the active page - active step.
|
|
1365
|
-
*
|
|
1366
|
-
* @usageNotes
|
|
1367
|
-
* ```
|
|
1368
|
-
* <mefdev-step-executor #mainExecutor (onActivePageChange)="getActiveStep($event)"></mefdev-step-executor>
|
|
1369
|
-
* ```
|
|
1370
|
-
*/
|
|
1371
|
-
onActivePageChange = new EventEmitter();
|
|
1372
|
-
/**
|
|
1373
|
-
* An output parameter that conveys the current state of the stepper in modal view
|
|
1374
|
-
*
|
|
1375
|
-
* @usageNotes
|
|
1376
|
-
* ```
|
|
1377
|
-
* <mefdev-step-executor [view]="'modal'" (modalStepExecutorStateChange)="getModalExecutorStateValue($event)" #modalExecutor></mefdev-step-executor>
|
|
1378
|
-
* ```
|
|
1379
|
-
*/
|
|
1380
|
-
modalStepExecutorStateChange = new EventEmitter();
|
|
1381
|
-
/**
|
|
1382
|
-
* An output parameter that conveys the current state of the stepper in right view
|
|
1383
|
-
*
|
|
1384
|
-
* @usageNotes
|
|
1385
|
-
* ```
|
|
1386
|
-
* <mefdev-step-executor [view]="'right'" (modalStepExecutorStateChange)="getModalExecutorStateValue($event)" #rightExecutor></mefdev-step-executor>
|
|
1387
|
-
* ```
|
|
1388
|
-
*/
|
|
1389
|
-
rightStepExecutorStateChange = new EventEmitter();
|
|
1390
|
-
_activePageInd = 0;
|
|
1391
|
-
pages = [];
|
|
1392
|
-
constructor(renderer, changeDetectorRef) {
|
|
1393
|
-
this.renderer = renderer;
|
|
1394
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
1395
|
-
}
|
|
1396
|
-
set activePageInd(activePageNumber) {
|
|
1397
|
-
this._activePageInd = activePageNumber;
|
|
1398
|
-
if (activePageNumber >= 0 && this.container) {
|
|
1399
|
-
if (this.container.nativeElement.innerHTML != '') {
|
|
1400
|
-
this.container.nativeElement.innerHTML = '';
|
|
1401
|
-
}
|
|
1402
|
-
this.renderer.appendChild(this.container.nativeElement, this.activePage?.elRef.nativeElement);
|
|
1403
|
-
this.onActivePageChange.emit(this.pages.find((el) => el.isActive));
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
get activePageInd() {
|
|
1407
|
-
return this._activePageInd;
|
|
1408
|
-
}
|
|
1409
|
-
get activePage() {
|
|
1410
|
-
return this.activePageInd == -1 ? null : this.pages[this.activePageInd];
|
|
1411
|
-
}
|
|
1412
|
-
ngAfterViewInit() {
|
|
1413
|
-
this.renderer?.appendChild(this.container.nativeElement, this.activePage?.elRef.nativeElement);
|
|
1414
|
-
this.onActivePageChange.emit(this.pages.find((el) => el.isActive));
|
|
1415
|
-
}
|
|
1416
|
-
/**
|
|
1417
|
-
* A function that is allows to track the status of your executor in the modal view
|
|
1418
|
-
*/
|
|
1419
|
-
modalStepExecutorVisibleChange(value) {
|
|
1420
|
-
if (this.view === 'modal') {
|
|
1421
|
-
this.show = value;
|
|
1422
|
-
this.modalStepExecutorStateChange.emit(value);
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
/**
|
|
1426
|
-
* A function that is allows to track the status of your executor in the right view
|
|
1427
|
-
*/
|
|
1428
|
-
rightStepExecutorVisibleChange(value) {
|
|
1429
|
-
if (this.view === 'right') {
|
|
1430
|
-
this.show = value;
|
|
1431
|
-
this.rightStepExecutorStateChange.emit(value);
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
/**
|
|
1435
|
-
* A function that allows you to close your executor
|
|
1436
|
-
*/
|
|
1437
|
-
closeExecutor() {
|
|
1438
|
-
this.show = false;
|
|
1439
|
-
this.changeDetectorRef.detectChanges();
|
|
1440
|
-
}
|
|
1441
|
-
/**
|
|
1442
|
-
* Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
|
|
1443
|
-
*/
|
|
1444
|
-
nextBtnIsDisabled() {
|
|
1445
|
-
return this._activePageInd === this.pages.length - 1;
|
|
1446
|
-
}
|
|
1447
|
-
/**
|
|
1448
|
-
* Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
|
|
1449
|
-
*/
|
|
1450
|
-
prev() {
|
|
1451
|
-
const newPageInd = this.activePageInd - 1;
|
|
1452
|
-
if (newPageInd >= 0) {
|
|
1453
|
-
this.activePageInd = newPageInd;
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
/**
|
|
1457
|
-
* Go back to the previous step
|
|
1458
|
-
*/
|
|
1459
|
-
cancel() {
|
|
1460
|
-
this.activePageInd = 0;
|
|
1461
|
-
const newPageInd = this.activePageInd - 1;
|
|
1462
|
-
if (newPageInd >= 0) {
|
|
1463
|
-
this.activePageInd = newPageInd;
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
/**
|
|
1467
|
-
* Go to the next step
|
|
1468
|
-
*/
|
|
1469
|
-
next() {
|
|
1470
|
-
const newPageInd = this.activePageInd + 1;
|
|
1471
|
-
if (newPageInd < this.pages.length) {
|
|
1472
|
-
this.activePageInd = newPageInd;
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
/**
|
|
1476
|
-
* Set a specific active page
|
|
1477
|
-
*/
|
|
1478
|
-
setActivePage(pageNumber) {
|
|
1479
|
-
pageNumber -= 1;
|
|
1480
|
-
if (pageNumber < this.pages.length && pageNumber >= 0) {
|
|
1481
|
-
this.activePageInd = pageNumber;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
/**
|
|
1485
|
-
* Add new page
|
|
1486
|
-
*/
|
|
1487
|
-
addPage(page) {
|
|
1488
|
-
this.pages.push(page);
|
|
1489
|
-
}
|
|
1490
|
-
/**
|
|
1491
|
-
* Delete a specific page
|
|
1492
|
-
*/
|
|
1493
|
-
removeSpecificPage(page) {
|
|
1494
|
-
const index = this.pages.indexOf(page);
|
|
1495
|
-
if (index !== -1) {
|
|
1496
|
-
this.pages.splice(index, 1);
|
|
1497
|
-
if (index === this.activePageInd) {
|
|
1498
|
-
this.prev();
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
/**
|
|
1503
|
-
* Delete a page by its index
|
|
1504
|
-
*/
|
|
1505
|
-
removePageByIndex(index) {
|
|
1506
|
-
if (index >= 0 && index < this.pages.length) {
|
|
1507
|
-
this.pages.splice(index, 1);
|
|
1508
|
-
if (index === this.activePageInd) {
|
|
1509
|
-
this.prev();
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: StepExecutorComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1514
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: StepExecutorComponent, isStandalone: false, selector: "mefdev-step-executor", inputs: { view: "view", show: "show" }, outputs: { onActivePageChange: "onActivePageChange", modalStepExecutorStateChange: "modalStepExecutorStateChange", rightStepExecutorStateChange: "rightStepExecutorStateChange" }, queries: [{ propertyName: "title", first: true, predicate: ["title"], descendants: true }, { propertyName: "description", first: true, predicate: ["description"], descendants: true }, { propertyName: "footer", first: true, predicate: ["footer"], descendants: true }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<!--view == regular-->\r\n\r\n<div class=\"stepExecutorBlock\" *ngIf=\"view === 'regular'\">\r\n <header class=\"stepExecutorHeader\">\r\n <div class=\"stepExecutorHeaderText\">\r\n <h1 class=\"title\">\r\n <ng-container [ngTemplateOutlet]=\"title\"></ng-container>\r\n </h1>\r\n <p class=\"body-5\">\r\n <ng-container [ngTemplateOutlet]=\"description\"></ng-container>\r\n </p>\r\n </div>\r\n <div class=\"steps\">\r\n <mefdev-stage *ngFor=\"let page of pages; let pageIndex = index\"\r\n [isRightModal]=\"false\"\r\n [title]=\"page.title\"\r\n [currentExecutorStep]=\"pageIndex + 1\"\r\n [isCompleted]=\"page.isCompleted\">\r\n </mefdev-stage>\r\n </div>\r\n </header>\r\n\r\n <div *ngIf=\"activePage\" class=\"executorChangeContent\">\r\n <div #container></div>\r\n </div>\r\n\r\n <div class=\"footerButtons\">\r\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\r\n </div>\r\n</div>\r\n\r\n\r\n<!--view == modal-->\r\n\r\n<mefdev-slide-up-modal [show]=\"show\" (visibleChange)=\"modalStepExecutorVisibleChange($event)\" *ngIf=\"view === 'modal'\">\r\n <div class=\"modalStepExecutor\">\r\n\r\n <header class=\"modalHeader\">\r\n <div class=\"headerModalText\">\r\n <div class=\"textAndCloseButton\">\r\n <h1 class=\"title\">\r\n <ng-container [ngTemplateOutlet]=\"title\"></ng-container>\r\n </h1>\r\n <p class=\"body-5\">\r\n <ng-container [ngTemplateOutlet]=\"description\"></ng-container>\r\n </p>\r\n </div>\r\n <article class=\"closeBtn\" (click)=\"closeExecutor()\">\r\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\r\n d=\"M6.26735 7.68135L0.610352 2.02435L2.02435 0.610352L7.68135 6.26735L13.3384 0.610352L14.7524 2.02435L9.09535 7.68135L14.7524 13.3384L13.3384 14.7524L7.68135 9.09535L2.02435 14.7524L0.610352 13.3384L6.26735 7.68135Z\"\r\n fill=\"#4D4D4D\"/>\r\n </svg>\r\n </article>\r\n </div>\r\n <div class=\"modalSteps\">\r\n <mefdev-stage *ngFor=\"let page of pages; let pageIndex = index\"\r\n [isRightModal]=\"false\"\r\n [title]=\"page.title\"\r\n [currentExecutorStep]=\"pageIndex + 1\"\r\n [isCompleted]=\"page.isCompleted\">\r\n </mefdev-stage>\r\n </div>\r\n </header>\r\n\r\n <main *ngIf=\"activePage\" class=\"modalExecutorMainContent\">\r\n <div #container></div>\r\n </main>\r\n\r\n <footer class=\"modalFooter\">\r\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\r\n </footer>\r\n\r\n </div>\r\n</mefdev-slide-up-modal>\r\n\r\n<!--view == right-->\r\n\r\n<mefdev-slide-right-modal [show]=\"show\" (visibleChange)=\"rightStepExecutorVisibleChange($event)\" *ngIf=\"view === 'right'\">\r\n <div class=\"rightExecutorBlock\">\r\n\r\n <header class=\"rightExecutorHeader\">\r\n <div class=\"rightExecutorTextAndCloseButton\">\r\n <span class=\"body-1\">\r\n <ng-container [ngTemplateOutlet]=\"title\"></ng-container>\r\n </span>\r\n <p class=\"body-5\">\r\n <ng-container [ngTemplateOutlet]=\"description\"></ng-container>\r\n </p>\r\n </div>\r\n <div class=\"closeButton\" (click)=\"closeExecutor()\">\r\n <svg width=\"17\" height=\"17\" viewBox=\"0 0 17 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\r\n d=\"M16.0566 1.59971L14.6566 0.199707L8.05664 6.79971L1.45664 0.199707L0.0566406 1.59971L6.65664 8.19971L0.0566406 14.7997L1.45664 16.1997L8.05664 9.59971L14.6566 16.1997L16.0566 14.7997L9.45664 8.19971L16.0566 1.59971Z\"\r\n fill=\"#525252\"/>\r\n </svg>\r\n </div>\r\n </header>\r\n\r\n <div class=\"line\">\r\n <svg width=\"100%\" height=\"1\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect width=\"100%\" height=\"1\" fill=\"#4D4D4D\"></rect>\r\n </svg>\r\n </div>\r\n\r\n <div class=\"contentExecutor\">\r\n <div class=\"rightChangeContent\">\r\n <div *ngIf=\"activePage\" class=\"executorChangeContent\">\r\n <div #container></div>\r\n </div>\r\n <div class=\"rightSteps\">\r\n <mefdev-stage *ngFor=\"let page of pages; let pageIndex = index\"\r\n [isRightModal]=\"true\"\r\n [title]=\"page.title\"\r\n [currentExecutorStep]=\"pageIndex + 1\"\r\n [isCompleted]=\"page.isCompleted\">\r\n </mefdev-stage>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <footer class=\"rightFooter\">\r\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\r\n </footer>\r\n\r\n </div>\r\n</mefdev-slide-right-modal>\r\n", styles: [".stepExecutorBlock{height:auto;display:flex;flex-direction:column}.stepExecutorBlock .stepExecutorHeader{padding:49px 71px 40px 154px;display:flex;flex-direction:column;row-gap:23px}.stepExecutorBlock .stepExecutorHeader .stepExecutorHeaderText{display:flex;flex-direction:column;row-gap:8px}.stepExecutorBlock .stepExecutorHeader .stepExecutorHeaderText .title{color:#4d4d4d}.stepExecutorBlock .stepExecutorHeader .stepExecutorHeaderText p{display:block;width:234px;height:auto;color:#4d4d4d}.stepExecutorBlock .stepExecutorHeader .steps{display:flex;flex-wrap:wrap;column-gap:23px;row-gap:17px}.stepExecutorBlock .executorChangeContent{padding:46px 31px 57px 154px;width:100%;min-height:359px;height:auto;background-color:#f3f3f3}.stepExecutorBlock .footerButtons{margin-top:46px;padding-left:154px;padding-bottom:74px}.modalStepExecutor{min-width:898px;max-width:898px;width:auto;box-shadow:0 0 10px #0000001c}.modalStepExecutor .modalHeader{height:auto;padding:36px 25px 32px 33px;display:flex;flex-direction:column;row-gap:13px}.modalStepExecutor .modalHeader .headerModalText{display:flex;justify-content:space-between}.modalStepExecutor .modalHeader .headerModalText .textAndCloseButton{display:flex;column-gap:23px}.modalStepExecutor .modalHeader .headerModalText .closeBtn{width:33px;height:33px;border-radius:5px;background-color:#f3f3f3;display:flex;justify-content:center;align-items:center;cursor:pointer}.modalStepExecutor .modalHeader .headerModalText .closeBtn:hover svg path{fill:#cf0106}.modalStepExecutor .modalHeader .headerModalText p{width:235px;color:#4d4d4d}.modalStepExecutor .modalHeader .modalSteps{max-width:724px;width:auto;display:flex;flex-wrap:wrap;column-gap:23px}.modalStepExecutor .modalExecutorMainContent{padding:29px 45px 31px 33px;background-color:#f3f3f3;min-height:345px;height:auto}.modalStepExecutor .modalFooter{padding:32px 0 35px 33px;display:flex;column-gap:17px}.rightExecutorBlock{position:relative;padding:25px 19px 43px;width:100%;min-height:100vh;height:auto;background-color:#f3f3f3;border-radius:5px}.rightExecutorBlock .rightExecutorHeader{display:flex;justify-content:space-between}.rightExecutorBlock .rightExecutorHeader .rightExecutorTextAndCloseButton{display:flex;flex-direction:column;row-gap:8px}.rightExecutorBlock .rightExecutorHeader .rightExecutorTextAndCloseButton span,.rightExecutorBlock .rightExecutorHeader .rightExecutorTextAndCloseButton p{height:auto;width:225px}.rightExecutorBlock .rightExecutorHeader .rightExecutorTextAndCloseButton p{color:#4d4d4d}.rightExecutorBlock .rightExecutorHeader .closeButton svg{cursor:pointer}.rightExecutorBlock .rightExecutorHeader .closeButton svg:hover path{fill:#cf0106}.rightExecutorBlock .line{margin-top:9px;margin-bottom:37px}.rightExecutorBlock .contentExecutor .rightChangeContent{display:flex;justify-content:space-between;margin-bottom:25px}.rightExecutorBlock .contentExecutor .rightChangeContent .executorChangeContent{width:100%;max-width:75%;height:auto}.rightExecutorBlock .contentExecutor .rightChangeContent .rightSteps{display:flex;flex-direction:column;row-gap:22px}.rightExecutorBlock .rightFooter{margin-top:15px;position:absolute;bottom:15px;right:15px;display:flex;column-gap:16px}@media screen and (max-width: 768px){.stepExecutorBlock .stepExecutorHeader{padding:21px 41px}.stepExecutorBlock .executorChangeContent{padding:46px 31px 57px 54px}.stepExecutorBlock .footerButtons{padding:41px}.modalStepExecutor .modalHeader .headerModalText .textAndCloseButton{display:flex;flex-direction:column}.modalStepExecutor .modalHeader .modalSteps{row-gap:21px}}\n"], dependencies: [{ kind: "component", type: SlideUpComponent, selector: "mefdev-slide-up-modal", inputs: ["show"], outputs: ["visibleChange"] }, { kind: "component", type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: ["size", "show"], outputs: ["visibleChange"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: StageComponent, selector: "mefdev-stage", inputs: ["currentExecutorStep", "isRightModal", "isCompleted", "title"] }] });
|
|
1515
|
-
}
|
|
1516
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: StepExecutorComponent, decorators: [{
|
|
1517
|
-
type: Component,
|
|
1518
|
-
args: [{ selector: 'mefdev-step-executor', standalone: false, template: "<!--view == regular-->\r\n\r\n<div class=\"stepExecutorBlock\" *ngIf=\"view === 'regular'\">\r\n <header class=\"stepExecutorHeader\">\r\n <div class=\"stepExecutorHeaderText\">\r\n <h1 class=\"title\">\r\n <ng-container [ngTemplateOutlet]=\"title\"></ng-container>\r\n </h1>\r\n <p class=\"body-5\">\r\n <ng-container [ngTemplateOutlet]=\"description\"></ng-container>\r\n </p>\r\n </div>\r\n <div class=\"steps\">\r\n <mefdev-stage *ngFor=\"let page of pages; let pageIndex = index\"\r\n [isRightModal]=\"false\"\r\n [title]=\"page.title\"\r\n [currentExecutorStep]=\"pageIndex + 1\"\r\n [isCompleted]=\"page.isCompleted\">\r\n </mefdev-stage>\r\n </div>\r\n </header>\r\n\r\n <div *ngIf=\"activePage\" class=\"executorChangeContent\">\r\n <div #container></div>\r\n </div>\r\n\r\n <div class=\"footerButtons\">\r\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\r\n </div>\r\n</div>\r\n\r\n\r\n<!--view == modal-->\r\n\r\n<mefdev-slide-up-modal [show]=\"show\" (visibleChange)=\"modalStepExecutorVisibleChange($event)\" *ngIf=\"view === 'modal'\">\r\n <div class=\"modalStepExecutor\">\r\n\r\n <header class=\"modalHeader\">\r\n <div class=\"headerModalText\">\r\n <div class=\"textAndCloseButton\">\r\n <h1 class=\"title\">\r\n <ng-container [ngTemplateOutlet]=\"title\"></ng-container>\r\n </h1>\r\n <p class=\"body-5\">\r\n <ng-container [ngTemplateOutlet]=\"description\"></ng-container>\r\n </p>\r\n </div>\r\n <article class=\"closeBtn\" (click)=\"closeExecutor()\">\r\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\r\n d=\"M6.26735 7.68135L0.610352 2.02435L2.02435 0.610352L7.68135 6.26735L13.3384 0.610352L14.7524 2.02435L9.09535 7.68135L14.7524 13.3384L13.3384 14.7524L7.68135 9.09535L2.02435 14.7524L0.610352 13.3384L6.26735 7.68135Z\"\r\n fill=\"#4D4D4D\"/>\r\n </svg>\r\n </article>\r\n </div>\r\n <div class=\"modalSteps\">\r\n <mefdev-stage *ngFor=\"let page of pages; let pageIndex = index\"\r\n [isRightModal]=\"false\"\r\n [title]=\"page.title\"\r\n [currentExecutorStep]=\"pageIndex + 1\"\r\n [isCompleted]=\"page.isCompleted\">\r\n </mefdev-stage>\r\n </div>\r\n </header>\r\n\r\n <main *ngIf=\"activePage\" class=\"modalExecutorMainContent\">\r\n <div #container></div>\r\n </main>\r\n\r\n <footer class=\"modalFooter\">\r\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\r\n </footer>\r\n\r\n </div>\r\n</mefdev-slide-up-modal>\r\n\r\n<!--view == right-->\r\n\r\n<mefdev-slide-right-modal [show]=\"show\" (visibleChange)=\"rightStepExecutorVisibleChange($event)\" *ngIf=\"view === 'right'\">\r\n <div class=\"rightExecutorBlock\">\r\n\r\n <header class=\"rightExecutorHeader\">\r\n <div class=\"rightExecutorTextAndCloseButton\">\r\n <span class=\"body-1\">\r\n <ng-container [ngTemplateOutlet]=\"title\"></ng-container>\r\n </span>\r\n <p class=\"body-5\">\r\n <ng-container [ngTemplateOutlet]=\"description\"></ng-container>\r\n </p>\r\n </div>\r\n <div class=\"closeButton\" (click)=\"closeExecutor()\">\r\n <svg width=\"17\" height=\"17\" viewBox=\"0 0 17 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\r\n d=\"M16.0566 1.59971L14.6566 0.199707L8.05664 6.79971L1.45664 0.199707L0.0566406 1.59971L6.65664 8.19971L0.0566406 14.7997L1.45664 16.1997L8.05664 9.59971L14.6566 16.1997L16.0566 14.7997L9.45664 8.19971L16.0566 1.59971Z\"\r\n fill=\"#525252\"/>\r\n </svg>\r\n </div>\r\n </header>\r\n\r\n <div class=\"line\">\r\n <svg width=\"100%\" height=\"1\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect width=\"100%\" height=\"1\" fill=\"#4D4D4D\"></rect>\r\n </svg>\r\n </div>\r\n\r\n <div class=\"contentExecutor\">\r\n <div class=\"rightChangeContent\">\r\n <div *ngIf=\"activePage\" class=\"executorChangeContent\">\r\n <div #container></div>\r\n </div>\r\n <div class=\"rightSteps\">\r\n <mefdev-stage *ngFor=\"let page of pages; let pageIndex = index\"\r\n [isRightModal]=\"true\"\r\n [title]=\"page.title\"\r\n [currentExecutorStep]=\"pageIndex + 1\"\r\n [isCompleted]=\"page.isCompleted\">\r\n </mefdev-stage>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <footer class=\"rightFooter\">\r\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\r\n </footer>\r\n\r\n </div>\r\n</mefdev-slide-right-modal>\r\n", styles: [".stepExecutorBlock{height:auto;display:flex;flex-direction:column}.stepExecutorBlock .stepExecutorHeader{padding:49px 71px 40px 154px;display:flex;flex-direction:column;row-gap:23px}.stepExecutorBlock .stepExecutorHeader .stepExecutorHeaderText{display:flex;flex-direction:column;row-gap:8px}.stepExecutorBlock .stepExecutorHeader .stepExecutorHeaderText .title{color:#4d4d4d}.stepExecutorBlock .stepExecutorHeader .stepExecutorHeaderText p{display:block;width:234px;height:auto;color:#4d4d4d}.stepExecutorBlock .stepExecutorHeader .steps{display:flex;flex-wrap:wrap;column-gap:23px;row-gap:17px}.stepExecutorBlock .executorChangeContent{padding:46px 31px 57px 154px;width:100%;min-height:359px;height:auto;background-color:#f3f3f3}.stepExecutorBlock .footerButtons{margin-top:46px;padding-left:154px;padding-bottom:74px}.modalStepExecutor{min-width:898px;max-width:898px;width:auto;box-shadow:0 0 10px #0000001c}.modalStepExecutor .modalHeader{height:auto;padding:36px 25px 32px 33px;display:flex;flex-direction:column;row-gap:13px}.modalStepExecutor .modalHeader .headerModalText{display:flex;justify-content:space-between}.modalStepExecutor .modalHeader .headerModalText .textAndCloseButton{display:flex;column-gap:23px}.modalStepExecutor .modalHeader .headerModalText .closeBtn{width:33px;height:33px;border-radius:5px;background-color:#f3f3f3;display:flex;justify-content:center;align-items:center;cursor:pointer}.modalStepExecutor .modalHeader .headerModalText .closeBtn:hover svg path{fill:#cf0106}.modalStepExecutor .modalHeader .headerModalText p{width:235px;color:#4d4d4d}.modalStepExecutor .modalHeader .modalSteps{max-width:724px;width:auto;display:flex;flex-wrap:wrap;column-gap:23px}.modalStepExecutor .modalExecutorMainContent{padding:29px 45px 31px 33px;background-color:#f3f3f3;min-height:345px;height:auto}.modalStepExecutor .modalFooter{padding:32px 0 35px 33px;display:flex;column-gap:17px}.rightExecutorBlock{position:relative;padding:25px 19px 43px;width:100%;min-height:100vh;height:auto;background-color:#f3f3f3;border-radius:5px}.rightExecutorBlock .rightExecutorHeader{display:flex;justify-content:space-between}.rightExecutorBlock .rightExecutorHeader .rightExecutorTextAndCloseButton{display:flex;flex-direction:column;row-gap:8px}.rightExecutorBlock .rightExecutorHeader .rightExecutorTextAndCloseButton span,.rightExecutorBlock .rightExecutorHeader .rightExecutorTextAndCloseButton p{height:auto;width:225px}.rightExecutorBlock .rightExecutorHeader .rightExecutorTextAndCloseButton p{color:#4d4d4d}.rightExecutorBlock .rightExecutorHeader .closeButton svg{cursor:pointer}.rightExecutorBlock .rightExecutorHeader .closeButton svg:hover path{fill:#cf0106}.rightExecutorBlock .line{margin-top:9px;margin-bottom:37px}.rightExecutorBlock .contentExecutor .rightChangeContent{display:flex;justify-content:space-between;margin-bottom:25px}.rightExecutorBlock .contentExecutor .rightChangeContent .executorChangeContent{width:100%;max-width:75%;height:auto}.rightExecutorBlock .contentExecutor .rightChangeContent .rightSteps{display:flex;flex-direction:column;row-gap:22px}.rightExecutorBlock .rightFooter{margin-top:15px;position:absolute;bottom:15px;right:15px;display:flex;column-gap:16px}@media screen and (max-width: 768px){.stepExecutorBlock .stepExecutorHeader{padding:21px 41px}.stepExecutorBlock .executorChangeContent{padding:46px 31px 57px 54px}.stepExecutorBlock .footerButtons{padding:41px}.modalStepExecutor .modalHeader .headerModalText .textAndCloseButton{display:flex;flex-direction:column}.modalStepExecutor .modalHeader .modalSteps{row-gap:21px}}\n"] }]
|
|
1519
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], propDecorators: { view: [{
|
|
1520
|
-
type: Input,
|
|
1521
|
-
args: [{ required: true }]
|
|
1522
|
-
}], show: [{
|
|
1523
|
-
type: Input
|
|
1524
|
-
}], container: [{
|
|
1525
|
-
type: ViewChild,
|
|
1526
|
-
args: ['container']
|
|
1527
|
-
}], title: [{
|
|
1528
|
-
type: ContentChild,
|
|
1529
|
-
args: ['title']
|
|
1530
|
-
}], description: [{
|
|
1531
|
-
type: ContentChild,
|
|
1532
|
-
args: ['description']
|
|
1533
|
-
}], footer: [{
|
|
1534
|
-
type: ContentChild,
|
|
1535
|
-
args: ['footer']
|
|
1536
|
-
}], onActivePageChange: [{
|
|
1537
|
-
type: Output
|
|
1538
|
-
}], modalStepExecutorStateChange: [{
|
|
1539
|
-
type: Output
|
|
1540
|
-
}], rightStepExecutorStateChange: [{
|
|
1541
|
-
type: Output
|
|
1542
|
-
}] } });
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* A component that allows us to create a content page - a step in our executor.
|
|
1546
|
-
* Each individual step can have different styles, content and settings.
|
|
1547
|
-
*
|
|
1548
|
-
* Example of usage:
|
|
1549
|
-
*
|
|
1550
|
-
* ```
|
|
1551
|
-
* <mefdev-executor-page
|
|
1552
|
-
* [title]="'Executor title 1'"
|
|
1553
|
-
* [isActive]="mainExecutor.activePageInd === 0"
|
|
1554
|
-
* [isCompleted]="mainExecutor.activePageInd >= 0"
|
|
1555
|
-
* class="yourClass">
|
|
1556
|
-
* <!-- Content of the first executor step -->
|
|
1557
|
-
* </mefdev-executor-page>
|
|
1558
|
-
* <mefdev-executor-page
|
|
1559
|
-
* [title]="'Executor title 2'"
|
|
1560
|
-
* [isActive]="mainExecutor.activePageInd === 1"
|
|
1561
|
-
* [isCompleted]="mainExecutor.activePageInd >= 1"
|
|
1562
|
-
* class="yourClass">
|
|
1563
|
-
* <!-- Content of the second executor step -->
|
|
1564
|
-
* </mefdev-executor-page>
|
|
1565
|
-
* <mefdev-executor-page
|
|
1566
|
-
* [title]="'Executor title 3'"
|
|
1567
|
-
* [isActive]="mainExecutor.activePageInd === 2"
|
|
1568
|
-
* [isCompleted]="mainExecutor.activePageInd >= 2"
|
|
1569
|
-
* class="yourClass">
|
|
1570
|
-
* <!-- Content of the third executor step -->
|
|
1571
|
-
* </mefdev-executor-page>
|
|
1572
|
-
* ```
|
|
1573
|
-
*
|
|
1574
|
-
*/
|
|
1575
|
-
class MefdevExecutorPageComponent {
|
|
1576
|
-
_mainExecutor;
|
|
1577
|
-
_elementRef;
|
|
1578
|
-
/**
|
|
1579
|
-
* The title of the step
|
|
1580
|
-
* @usageNotes
|
|
1581
|
-
* ```
|
|
1582
|
-
* <mefdev-executor-page [title]="'Description of situation 1'"></mefdev-executor-page>
|
|
1583
|
-
* ```
|
|
1584
|
-
*/
|
|
1585
|
-
title;
|
|
1586
|
-
/**
|
|
1587
|
-
* The input parameter that corresponds to whether the current step matches the respective page.
|
|
1588
|
-
* The value of the active page is passed by reference from the specific component StepExecutorComponent.
|
|
1589
|
-
*
|
|
1590
|
-
* @usageNotes
|
|
1591
|
-
* ```
|
|
1592
|
-
* <mefdev-step-executor #mainExecutor>
|
|
1593
|
-
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 0">
|
|
1594
|
-
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 1">
|
|
1595
|
-
* <mefdev-executor-page [isActive]="mainExecutor.activePageInd === 2">
|
|
1596
|
-
* </<mefdev-step-executor>
|
|
1597
|
-
*
|
|
1598
|
-
* ```
|
|
1599
|
-
*/
|
|
1600
|
-
isActive = false;
|
|
1601
|
-
/**
|
|
1602
|
-
* The input parameter that checks whether the step is completed.
|
|
1603
|
-
*
|
|
1604
|
-
* @usageNotes
|
|
1605
|
-
* ```
|
|
1606
|
-
* <mefdev-executor-page [isCompleted]="mainExecutor.activePageInd >= 0"></mefdev-executor-page>
|
|
1607
|
-
* ```
|
|
1608
|
-
*/
|
|
1609
|
-
isCompleted = false;
|
|
1610
|
-
/**
|
|
1611
|
-
* The output parameter that emits a boolean value indicating whether our completed step has changed.
|
|
1612
|
-
*
|
|
1613
|
-
* @usageNotes
|
|
1614
|
-
* ```
|
|
1615
|
-
* <mefdev-executor-page (isCompletedChange)="onStepChanged($event)"></mefdev-executor-page>
|
|
1616
|
-
* ```
|
|
1617
|
-
*/
|
|
1618
|
-
isCompletedChange = new EventEmitter();
|
|
1619
|
-
elRef;
|
|
1620
|
-
constructor(_mainExecutor, _elementRef) {
|
|
1621
|
-
this._mainExecutor = _mainExecutor;
|
|
1622
|
-
this._elementRef = _elementRef;
|
|
1623
|
-
this.elRef = _elementRef;
|
|
1624
|
-
_mainExecutor.pages.push(this);
|
|
1625
|
-
if (_mainExecutor.activePageInd == -1) {
|
|
1626
|
-
_mainExecutor.activePageInd = 0;
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
ngOnChanges(changes) {
|
|
1630
|
-
this.isCompletedChange.emit(changes['isCompleted']?.currentValue);
|
|
1631
|
-
}
|
|
1632
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefdevExecutorPageComponent, deps: [{ token: StepExecutorComponent, host: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1633
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: MefdevExecutorPageComponent, isStandalone: false, selector: "mefdev-executor-page", inputs: { title: "title", isActive: "isActive", isCompleted: "isCompleted" }, outputs: { isCompletedChange: "isCompletedChange" }, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
1634
|
-
}
|
|
1635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefdevExecutorPageComponent, decorators: [{
|
|
1636
|
-
type: Component,
|
|
1637
|
-
args: [{
|
|
1638
|
-
selector: 'mefdev-executor-page',
|
|
1639
|
-
template: '<ng-content></ng-content>',
|
|
1640
|
-
standalone: false
|
|
1641
|
-
}]
|
|
1642
|
-
}], ctorParameters: () => [{ type: StepExecutorComponent, decorators: [{
|
|
1643
|
-
type: Host
|
|
1644
|
-
}] }, { type: i0.ElementRef }], propDecorators: { title: [{
|
|
1645
|
-
type: Input
|
|
1646
|
-
}], isActive: [{
|
|
1647
|
-
type: Input
|
|
1648
|
-
}], isCompleted: [{
|
|
1649
|
-
type: Input
|
|
1650
|
-
}], isCompletedChange: [{
|
|
1651
|
-
type: Output
|
|
1652
|
-
}] } });
|
|
1653
|
-
|
|
1654
|
-
class MefDevStepExecutorModule {
|
|
1655
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevStepExecutorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1656
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevStepExecutorModule, declarations: [StepExecutorComponent,
|
|
1657
|
-
MefdevExecutorPageComponent,
|
|
1658
|
-
StageComponent], imports: [MefDevModalModule,
|
|
1659
|
-
CommonModule,
|
|
1660
|
-
FormsModule], exports: [StepExecutorComponent,
|
|
1661
|
-
MefdevExecutorPageComponent,
|
|
1662
|
-
StageComponent] });
|
|
1663
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevStepExecutorModule, imports: [MefDevModalModule,
|
|
1664
|
-
CommonModule,
|
|
1665
|
-
FormsModule] });
|
|
1666
|
-
}
|
|
1667
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevStepExecutorModule, decorators: [{
|
|
1668
|
-
type: NgModule,
|
|
1669
|
-
args: [{
|
|
1670
|
-
declarations: [
|
|
1671
|
-
StepExecutorComponent,
|
|
1672
|
-
MefdevExecutorPageComponent,
|
|
1673
|
-
StageComponent
|
|
1674
|
-
],
|
|
1675
|
-
exports: [
|
|
1676
|
-
StepExecutorComponent,
|
|
1677
|
-
MefdevExecutorPageComponent,
|
|
1678
|
-
StageComponent,
|
|
1679
|
-
],
|
|
1680
|
-
imports: [
|
|
1681
|
-
MefDevModalModule,
|
|
1682
|
-
CommonModule,
|
|
1683
|
-
FormsModule,
|
|
1684
|
-
]
|
|
1685
|
-
}]
|
|
1686
|
-
}] });
|
|
1687
|
-
|
|
1688
|
-
/*
|
|
1689
|
-
example
|
|
1690
|
-
<mefdev-dropdown-menu>
|
|
1691
|
-
<ng-template #label>
|
|
1692
|
-
<i class="fa fa-ellipsis-v"></i>
|
|
1693
|
-
</ng-template>
|
|
1694
|
-
|
|
1695
|
-
<a class="dropdown-item" (click)="openModalAction('update', row)">
|
|
1696
|
-
<span> {{ 'Update' | translate }} </span>
|
|
1697
|
-
</a>
|
|
1698
|
-
|
|
1699
|
-
<a class="dropdown-item" (click)="openModalAction('delete', row)">
|
|
1700
|
-
<span> {{ 'Delete' | translate }} </span>
|
|
1701
|
-
</a>
|
|
1702
|
-
</mefdev-dropdown-menu>
|
|
1703
|
-
*/
|
|
1704
|
-
class MefdevDropdownMenuComponent {
|
|
1705
|
-
_eref;
|
|
1706
|
-
label;
|
|
1707
|
-
isOpen = false;
|
|
1708
|
-
constructor(_eref) {
|
|
1709
|
-
this._eref = _eref;
|
|
1710
|
-
}
|
|
1711
|
-
onClick($event) {
|
|
1712
|
-
const isClickInDdl = this._eref.nativeElement.contains($event.target);
|
|
1713
|
-
if (isClickInDdl || (this.isOpen && !isClickInDdl)) {
|
|
1714
|
-
this.isOpen = !this.isOpen;
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefdevDropdownMenuComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1718
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: MefdevDropdownMenuComponent, isStandalone: false, selector: "mefdev-dropdown-menu", host: { listeners: { "document:click": "onClick($event)" } }, queries: [{ propertyName: "label", first: true, predicate: ["label"], descendants: true }], ngImport: i0, template: "<div class=\"label-container\">\r\n <ng-template [ngTemplateOutlet]=\"label\"></ng-template>\r\n</div>\r\n\r\n<div *ngIf=\"isOpen\" class=\"_dropdown\">\r\n <div class=\"_menu\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [":host{display:block;position:relative;width:fit-content}.label-container{cursor:pointer;margin:4px;padding:4px}._dropdown{position:relative;z-index:10001}._menu{right:7px;top:-20px;position:absolute;z-index:10001;background-color:#fff;border:solid rgba(0,0,0,.176) 1px;border-radius:4px;cursor:pointer}._dropdown ._menu{min-width:auto;top:-5px;padding:4px;box-shadow:0 1px 3px 1px #00000026}._dropdown ._menu a{height:26px;font-family:Open Sans,Arial,sans-serif;font-size:14px;font-weight:400;line-height:22px;color:#000!important;display:flex;align-items:center}._dropdown ._menu a:hover{background-color:#f3f3f3}._dropdown ._menu a:hover *{color:#000!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
1719
|
-
}
|
|
1720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefdevDropdownMenuComponent, decorators: [{
|
|
1721
|
-
type: Component,
|
|
1722
|
-
args: [{ selector: 'mefdev-dropdown-menu', host: {
|
|
1723
|
-
'(document:click)': 'onClick($event)',
|
|
1724
|
-
}, standalone: false, template: "<div class=\"label-container\">\r\n <ng-template [ngTemplateOutlet]=\"label\"></ng-template>\r\n</div>\r\n\r\n<div *ngIf=\"isOpen\" class=\"_dropdown\">\r\n <div class=\"_menu\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [":host{display:block;position:relative;width:fit-content}.label-container{cursor:pointer;margin:4px;padding:4px}._dropdown{position:relative;z-index:10001}._menu{right:7px;top:-20px;position:absolute;z-index:10001;background-color:#fff;border:solid rgba(0,0,0,.176) 1px;border-radius:4px;cursor:pointer}._dropdown ._menu{min-width:auto;top:-5px;padding:4px;box-shadow:0 1px 3px 1px #00000026}._dropdown ._menu a{height:26px;font-family:Open Sans,Arial,sans-serif;font-size:14px;font-weight:400;line-height:22px;color:#000!important;display:flex;align-items:center}._dropdown ._menu a:hover{background-color:#f3f3f3}._dropdown ._menu a:hover *{color:#000!important}\n"] }]
|
|
1725
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { label: [{
|
|
1726
|
-
type: ContentChild,
|
|
1727
|
-
args: ["label"]
|
|
1728
|
-
}] } });
|
|
1729
|
-
|
|
1730
|
-
class MefDevDropDownMenuModule {
|
|
1731
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevDropDownMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1732
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevDropDownMenuModule, declarations: [MefdevDropdownMenuComponent], imports: [CommonModule], exports: [MefdevDropdownMenuComponent] });
|
|
1733
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevDropDownMenuModule, imports: [CommonModule] });
|
|
1734
|
-
}
|
|
1735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevDropDownMenuModule, decorators: [{
|
|
1736
|
-
type: NgModule,
|
|
1737
|
-
args: [{
|
|
1738
|
-
exports: [
|
|
1739
|
-
MefdevDropdownMenuComponent
|
|
1740
|
-
],
|
|
1741
|
-
declarations: [
|
|
1742
|
-
MefdevDropdownMenuComponent
|
|
1743
|
-
],
|
|
1744
|
-
imports: [
|
|
1745
|
-
CommonModule
|
|
1746
|
-
]
|
|
1747
|
-
}]
|
|
1748
|
-
}] });
|
|
1749
|
-
|
|
1750
970
|
const ACCORDION = new InjectionToken('ACCORDION');
|
|
1751
971
|
|
|
1752
972
|
const MD_EXPANSION_PANEL = new InjectionToken('MD_EXPANSION_PANEL');
|
|
@@ -14191,5 +13411,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
14191
13411
|
* Generated bundle index. Do not edit.
|
|
14192
13412
|
*/
|
|
14193
13413
|
|
|
14194
|
-
export { ACCORDION, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent,
|
|
13414
|
+
export { ACCORDION, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, DIALOG_SCROLL_STRATEGY, DialogState, EXPANSION_PANEL_DEFAULT_OPTIONS, ErrorStateMatcher, ExpansionPanelActionRow, ExpansionPanelDescription, ExpansionPanelTitle, FillComponent, FilteredFieldContainerComponent, FilteredFieldItemComponent, FilteredFieldService, FiltredItemModel, INK_BAR_POSITIONER, INK_BAR_POSITIONER_FACTORY, InkBar, MDAccordion, MDAutocomplete, MDAutocompleteModule, MDAutocompleteOrigin, MDAutocompleteSelectedEvent, MDAutocompleteTrigger, MDCard, MDCardActions, MDCardAvatar, MDCardContent, MDCardFooter, MDCardHeader, MDCardImage, MDCardLgImage, MDCardMdImage, MDCardModule, MDCardSmImage, MDCardSubtitle, MDCardTitle, MDCardTitleGroup, MDCardXlImage, MDCheckBox, MDCheckBoxModule, MDCheckboxChange, MDChip, MDChipAvatar, MDChipEdit, MDChipEditInput, MDChipGrid, MDChipGridChange, MDChipInput, MDChipListbox, MDChipListboxChange, MDChipOption, MDChipRemove, MDChipRow, MDChipSelectionChange, MDChipSet, MDChipTrailingIcon, MDChipsModule, MDCollapseModule, MDContextMenuTrigger, MDDialog, MDDialogActions, MDDialogClose, MDDialogContainer, MDDialogContent, MDDialogTitle, MDExpansionPanel, MDExpansionPanelContent, MDExpansionPanelHeader, MDGridActionsColumnDirective, MDGridAutoSizeDirective, MDGridCellTemplateDirective, MDGridColumnDirective, MDGridComponent, MDGridEditTemplateDirective, MDGridHeaderTemplateDirective, MDGridIdColumnDirective, MDGridModule, MDGridResetFlexSizingDirective, MDGridToolbarTemplateDirective, MDHeaderCardComponent, MDHeaderCardModule, MDHeaderCardSetComponent, MDMenu, MDMenuContent, MDMenuItem, MDMenuModule, MDMenuTrigger, MDModalModule, MDOption, MDOptionGroup, MDOptionModule, MDOptionSelectionChange, MDPaginatorComponent, MDPaginatorModule, MDPseudoCheckboxModule, MDRadioButton, MDRadioGroup, MDRadioModule, MDSelect, MDSelectModule, MDSelectTrigger, MDStep, MDStepContent, MDStepExecutorModule, MDStepFooter, MDStepHeader, MDStepLabel, MDStepper, MDStepperIcon, MDStepperNext, MDStepperPrevious, MDSwitch, MDSwitchModule, MDTab, MDTabBody, MDTabChangeEvent, MDTabContent, MDTabGroup, MDTabHeader, MDTabLabel, MDTabLabelWrapper, MDTabLink, MDTabNav, MDTabNavPanel, MDTabsModule, MD_AUTOCOMPLETE_DEFAULT_OPTIONS, MD_AUTOCOMPLETE_SCROLL_STRATEGY, MD_AUTOCOMPLETE_VALUE_ACCESSOR, MD_CHIP, MD_CHIPS_DEFAULT_OPTIONS, MD_CHIP_AVATAR, MD_CHIP_EDIT, MD_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR, MD_CHIP_REMOVE, MD_CHIP_TRAILING_ICON, MD_EXPANSION_PANEL, MD_MENU_CONTENT, MD_MENU_DEFAULT_OPTIONS, MD_MENU_PANEL, MD_MENU_SCROLL_STRATEGY, MD_OPTION_PARENT_COMPONENT, MD_RADIO_GROUP, MD_SELECT_TRIGGER, MD_TAB, MD_TAB_LABEL, MENU_PANEL_TOP_PADDING, ManagePageComponent, MefDevCardModule, MefDevDialogConfig, MefDevDialogRef, MefDevFilteredFieldModule, MefDevModalModule, MefDevPageLayoutsModule, PaginatedTabHeader, PseudoCheckbox, RADIO_GROUP_CONTROL_VALUE_ACCESSOR, RadioChange, RightFilterComponent, STEPPER_INTL_PROVIDER, STEPPER_INTL_PROVIDER_FACTORY, SelectChange, ShowOnDirtyErrorStateMatcher, SlideRightComponent, SlideUpComponent, SortDirection, SortType, StepperErrorStateMatcher, StepperIntl, TABS_CONFIG, TAB_CONTENT, TAB_GROUP, TabBodyPortal, TablePageComponent, TransitionCheckState, _ErrorStateTracker, _closeDialogVia, _countGroupLabelsBeforeOption, _getOptionScrollPosition, components, getMDAutocompleteMissingPanelError, getMDSelectDynamicMultipleError, getMDSelectNonArrayValueError, getMDSelectNonFunctionValueError, groupRowsByProperty, mefDevCardComponents, sortRows };
|
|
14195
13415
|
//# sourceMappingURL=natec-mef-dev-ui-kit.mjs.map
|