@natec/mef-dev-ui-kit 20.1.249 → 20.1.257

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.
@@ -1,14 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Input, ViewEncapsulation, Component, EventEmitter, Output, HostBinding, ContentChild, Host, NgModule, Injectable, ChangeDetectionStrategy, ViewChild, InjectionToken, inject, TemplateRef, Directive, ViewContainerRef, DOCUMENT, NgZone, ElementRef, Renderer2, booleanAttribute, ChangeDetectorRef, HostAttributeToken, numberAttribute, QueryList, ContentChildren, Injector, Optional, SkipSelf, signal, ViewChildren, ApplicationRef, afterNextRender, input, computed, forwardRef, HostListener, EnvironmentInjector, HOST_TAG_NAME, contentChildren, viewChildren } from '@angular/core';
3
- import { trigger, state, transition, style, animate } from '@angular/animations';
2
+ import { ContentChild, Input, ChangeDetectionStrategy, Component, NgModule, InjectionToken, inject, TemplateRef, Directive, ViewContainerRef, DOCUMENT, NgZone, ElementRef, Renderer2, EventEmitter, booleanAttribute, ViewChild, Output, ViewEncapsulation, ChangeDetectorRef, HostAttributeToken, numberAttribute, QueryList, ContentChildren, Injector, Injectable, Optional, SkipSelf, signal, ViewChildren, ApplicationRef, afterNextRender, input, computed, forwardRef, HostListener, EnvironmentInjector, HOST_TAG_NAME, Host, contentChildren, viewChildren } from '@angular/core';
4
3
  import * as i1 from '@angular/common';
5
4
  import { CommonModule, NgTemplateOutlet, NgClass } from '@angular/common';
6
- 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';
7
- import { FormsModule, NgControl, Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS, NgForm, FormGroupDirective } from '@angular/forms';
8
5
  import { CdkAccordionItem, CdkAccordion } from '@angular/cdk/accordion';
9
6
  import { _IdGenerator, FocusMonitor, FocusKeyManager, isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader, ActiveDescendantKeyManager, CdkMonitorFocus, removeAriaReferencedId, addAriaReferencedId } from '@angular/cdk/a11y';
10
7
  import { startWith, filter, take, switchMap, map, takeUntil, debounceTime, skip, skipWhile, tap, delay } from 'rxjs/operators';
11
8
  import { ENTER, hasModifierKey, SPACE, ESCAPE, UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, A, TAB, BACKSPACE, DELETE } from '@angular/cdk/keycodes';
9
+ 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';
12
10
  import { UniqueSelectionDispatcher, SelectionModel } from '@angular/cdk/collections';
13
11
  import { TemplatePortal, CdkPortalOutlet, PortalModule, DomPortalOutlet, CdkPortal } from '@angular/cdk/portal';
14
12
  import { createBlockScrollStrategy, createGlobalPositionStrategy, OverlayModule, createRepositionScrollStrategy, createOverlayRef, OverlayConfig, createFlexibleConnectedPositionStrategy, ViewportRuler, ScrollDispatcher, Overlay, CdkOverlayOrigin, CdkConnectedOverlay } from '@angular/cdk/overlay';
@@ -20,487 +18,11 @@ import { CdkStepLabel, CdkStepHeader, CdkStep, CdkStepper, CdkStepperNext, CdkSt
20
18
  import { Platform, _getEventTarget, _getShadowRoot, _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
21
19
  import { SharedResizeObserver } from '@angular/cdk/observers/private';
22
20
  import { Directionality, BidiModule } from '@angular/cdk/bidi';
21
+ import { NgControl, Validators, FormsModule, NG_VALUE_ACCESSOR, NG_VALIDATORS, NgForm, FormGroupDirective } from '@angular/forms';
23
22
  import { CdkObserveContent } from '@angular/cdk/observers';
24
23
  import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
25
24
  import { toObservable } from '@angular/core/rxjs-interop';
26
25
 
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
- class FilteredFieldService {
292
- newFilterItem = new Subject();
293
- openFilter = new Subject();
294
- constructor() { }
295
- /**
296
- * Returns an observable that emits the open filter events.
297
- */
298
- getOpenFilter() {
299
- return this.openFilter;
300
- }
301
- /**
302
- * Sends an open filter event with the specified item.
303
- * @param item The filtered item model.
304
- */
305
- sendOpenFilter(item) {
306
- this.openFilter.next(item);
307
- }
308
- /**
309
- * Returns an observable that emits the new filter item events.
310
- */
311
- getNewFilterItem() {
312
- return this.newFilterItem;
313
- }
314
- /**
315
- * Sends a new filter item event with the specified item.
316
- * @param item The filtered item model.
317
- */
318
- sendNewFilterItem(item) {
319
- this.newFilterItem.next(item);
320
- }
321
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FilteredFieldService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
322
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FilteredFieldService, providedIn: 'root' });
323
- }
324
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FilteredFieldService, decorators: [{
325
- type: Injectable,
326
- args: [{
327
- providedIn: 'root'
328
- }]
329
- }], ctorParameters: () => [] });
330
-
331
- /**
332
- * Component representing a filtered field item.
333
- *
334
- * Example of usage:
335
- * ```
336
- * <mefdev-filtered-field-item [item]="filterItem" (discard)="onDiscardFilter($event)" (openFilter)="onOpenFilter()">
337
- * </mefdev-filtered-field-item>
338
- *```
339
- *
340
- */
341
- class FilteredFieldItemComponent {
342
- /**
343
- * The filtered item model.
344
- * ```
345
- * <mefdev-filtered-field-item [item]="filterItem">
346
- * Content goes here...
347
- * </mefdev-filtered-field-item>
348
- * ```
349
- */
350
- item;
351
- /**
352
- * Event emitted when the filter is discarded.
353
- * ```
354
- * <mefdev-filtered-field-item (discard)="onDiscardFilter($event)">
355
- * Content goes here...
356
- * </mefdev-filtered-field-item>
357
- * ```
358
- */
359
- discard = new EventEmitter();
360
- /**
361
- * Event emitted when the filter is opened.
362
- * ```
363
- * <mefdev-filtered-field-item (openFilter)="onOpenFilter()">
364
- * Content goes here...
365
- * </mefdev-filtered-field-item>
366
- * ```
367
- */
368
- openFilter = new EventEmitter();
369
- constructor() { }
370
- ngOnInit() {
371
- }
372
- /**
373
- * Event handler for opening the filter.
374
- * Emits the `openFilter` event.
375
- */
376
- onOpenFilter() {
377
- this.openFilter.next({});
378
- }
379
- /**
380
- * Event handler for discarding the filter.
381
- * Emits the `discard` event with the `item` as the payload.
382
- */
383
- onDiscard() {
384
- this.discard.next(this.item);
385
- }
386
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FilteredFieldItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
387
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: FilteredFieldItemComponent, isStandalone: false, selector: "mefdev-filtered-field-item", inputs: { item: "item" }, outputs: { discard: "discard", openFilter: "openFilter" }, ngImport: i0, template: "<div class=\"item\">\r\n <i class=\"fa fa-times\" (click)=\"onDiscard()\" style=\"margin-right: 3px; cursor: pointer;\"></i> \r\n <span (click)=\"onOpenFilter()\">{{item.newValue}}</span>\r\n</div>\r\n", styles: [".item{background-color:#4d4d4d;color:#fff;border-radius:5px;margin-right:7px;padding:3px 7px}\n"] });
388
- }
389
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FilteredFieldItemComponent, decorators: [{
390
- type: Component,
391
- args: [{ selector: 'mefdev-filtered-field-item', standalone: false, template: "<div class=\"item\">\r\n <i class=\"fa fa-times\" (click)=\"onDiscard()\" style=\"margin-right: 3px; cursor: pointer;\"></i> \r\n <span (click)=\"onOpenFilter()\">{{item.newValue}}</span>\r\n</div>\r\n", styles: [".item{background-color:#4d4d4d;color:#fff;border-radius:5px;margin-right:7px;padding:3px 7px}\n"] }]
392
- }], ctorParameters: () => [], propDecorators: { item: [{
393
- type: Input
394
- }], discard: [{
395
- type: Output
396
- }], openFilter: [{
397
- type: Output
398
- }] } });
399
-
400
- /**
401
- * A container component for filtered fields.
402
- *
403
- * Example of usage:
404
- * ```
405
- * <mefdev-filtered-field-container>
406
- *
407
- * <mefdev-filtered-field-item [item]="filterItem" (discard)="onDiscardFilter($event)" (openFilter)="onOpenFilter()">
408
- * </mefdev-filtered-field-item>
409
- *
410
- * </mefdev-filtered-field-container>
411
- * ```
412
- * Example of usage:
413
- * <example-url>https://platform.mef.dev/ui_kit_demo/view/utils/filtered_field</example-url>
414
- */
415
- class FilteredFieldContainerComponent {
416
- service;
417
- /**
418
- * An array of filtered item models.
419
- */
420
- items = [];
421
- constructor(service) {
422
- this.service = service;
423
- }
424
- /**
425
- * Event handler for opening the filter.
426
- *
427
- * @param item The filtered item model.
428
- */
429
- onOpenFilter(item) {
430
- this.service.sendOpenFilter(item);
431
- }
432
- /**
433
- * Event handler for discarding the filter.
434
- *
435
- * @param item The filtered item model.
436
- */
437
- onDiscard(item) {
438
- item.discard(item.standartValue);
439
- this.items.splice(this.items.findIndex(x => x.id == item.id), 1);
440
- }
441
- ngOnInit() {
442
- this.service.getNewFilterItem().subscribe(item => {
443
- let i = this.items.findIndex(x => x.id == item.id);
444
- if (i != -1 && item.newValue == item.standartValue) {
445
- this.items[i] = item;
446
- this.items.splice(i, 1);
447
- return;
448
- }
449
- if (i == -1 && (item.newValue == item.standartValue || item.newValue == '')) {
450
- return;
451
- }
452
- if (i != -1) {
453
- this.items[i] = item;
454
- return;
455
- }
456
- this.items.push(item);
457
- });
458
- }
459
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FilteredFieldContainerComponent, deps: [{ token: FilteredFieldService }], target: i0.ɵɵFactoryTarget.Component });
460
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: FilteredFieldContainerComponent, isStandalone: false, selector: "mefdev-filtered-field-container", ngImport: i0, template: "<div class=\"item-container\">\r\n <mefdev-filtered-field-item *ngFor=\"let item of items\" [item]=\"item\" (discard)=\"onDiscard(item)\" (openFilter)=\"onOpenFilter(item)\"></mefdev-filtered-field-item>\r\n</div>\r\n", styles: [".item-container{display:flex;cursor:context-menu}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: FilteredFieldItemComponent, selector: "mefdev-filtered-field-item", inputs: ["item"], outputs: ["discard", "openFilter"] }] });
461
- }
462
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FilteredFieldContainerComponent, decorators: [{
463
- type: Component,
464
- args: [{ selector: 'mefdev-filtered-field-container', standalone: false, template: "<div class=\"item-container\">\r\n <mefdev-filtered-field-item *ngFor=\"let item of items\" [item]=\"item\" (discard)=\"onDiscard(item)\" (openFilter)=\"onOpenFilter(item)\"></mefdev-filtered-field-item>\r\n</div>\r\n", styles: [".item-container{display:flex;cursor:context-menu}\n"] }]
465
- }], ctorParameters: () => [{ type: FilteredFieldService }] });
466
-
467
- class MefDevFilteredFieldModule {
468
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevFilteredFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
469
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevFilteredFieldModule, declarations: [FilteredFieldContainerComponent,
470
- FilteredFieldItemComponent], imports: [CommonModule], exports: [FilteredFieldItemComponent,
471
- FilteredFieldContainerComponent] });
472
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevFilteredFieldModule, imports: [CommonModule] });
473
- }
474
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevFilteredFieldModule, decorators: [{
475
- type: NgModule,
476
- args: [{
477
- declarations: [
478
- FilteredFieldContainerComponent,
479
- FilteredFieldItemComponent,
480
- ],
481
- exports: [
482
- FilteredFieldItemComponent,
483
- FilteredFieldContainerComponent
484
- ],
485
- imports: [
486
- CommonModule
487
- ]
488
- }]
489
- }] });
490
-
491
- class FiltredItemModel {
492
- constructor(id, newValue, standartValue, discard) {
493
- this.id = id;
494
- this.newValue = newValue;
495
- this.standartValue = standartValue;
496
- this.discard = discard;
497
- }
498
- id;
499
- newValue;
500
- standartValue;
501
- discard;
502
- }
503
-
504
26
  /**
505
27
  * Component for displaying a simple card with a title.
506
28
  *
@@ -530,489 +52,38 @@ class CardSimpleComponent {
530
52
  * </mefdev-card-simple>
531
53
  *```
532
54
  */
533
- card_title;
534
- constructor() { }
535
- ngOnInit() {
536
- }
537
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: CardSimpleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
538
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: CardSimpleComponent, isStandalone: false, selector: "mefdev-card-simple", inputs: { isDisabled: ["disabled", "isDisabled"] }, queries: [{ propertyName: "card_title", first: true, predicate: ["card_title"], descendants: true }], ngImport: i0, template: "<div class=\"md-card-simple\" [class.md-card-simple--disabled]=\"isDisabled\">\r\n <div class=\"md-card-simple__section md-card-simple__section--header\" *ngIf=\"card_title as tpl\">\r\n <ng-template [ngTemplateOutlet]=\"tpl\"></ng-template>\r\n </div>\r\n\r\n <div class=\"md-card-simple__section md-card-simple__section--content\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <!-- optional named slot for actions -->\r\n <div class=\"md-card-simple__section md-card-simple__section--actions\">\r\n <ng-content select=\"[card-actions]\"></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,.md-card-simple__section--header,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{display:block;box-sizing:border-box}.md-card-simple{background-color:#f3f3f3;border-radius:5px;padding:.5rem}.md-card-simple__section{margin:.5rem}.md-card-simple__section--actions{display:flex;gap:.5rem;justify-content:flex-end;flex-wrap:wrap}.md-card-simple__section--actions:empty{display:none}.md-card-simple--disabled{opacity:.6;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
539
- }
540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: CardSimpleComponent, decorators: [{
541
- type: Component,
542
- args: [{ selector: 'mefdev-card-simple', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"md-card-simple\" [class.md-card-simple--disabled]=\"isDisabled\">\r\n <div class=\"md-card-simple__section md-card-simple__section--header\" *ngIf=\"card_title as tpl\">\r\n <ng-template [ngTemplateOutlet]=\"tpl\"></ng-template>\r\n </div>\r\n\r\n <div class=\"md-card-simple__section md-card-simple__section--content\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <!-- optional named slot for actions -->\r\n <div class=\"md-card-simple__section md-card-simple__section--actions\">\r\n <ng-content select=\"[card-actions]\"></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,.md-card-simple__section--header,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{display:block;box-sizing:border-box}.md-card-simple{background-color:#f3f3f3;border-radius:5px;padding:.5rem}.md-card-simple__section{margin:.5rem}.md-card-simple__section--actions{display:flex;gap:.5rem;justify-content:flex-end;flex-wrap:wrap}.md-card-simple__section--actions:empty{display:none}.md-card-simple--disabled{opacity:.6;pointer-events:none}\n"] }]
543
- }], ctorParameters: () => [], propDecorators: { isDisabled: [{
544
- type: Input,
545
- args: ["disabled"]
546
- }], card_title: [{
547
- type: ContentChild,
548
- args: ["card_title"]
549
- }] } });
550
-
551
- const mefDevCardComponents = [CardSimpleComponent];
552
- class MefDevCardModule {
553
- 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
- MefDevCollapseModule], exports: [CardSimpleComponent] });
556
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, imports: [CommonModule,
557
- MefDevCollapseModule] });
558
- }
559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, decorators: [{
560
- type: NgModule,
561
- args: [{
562
- declarations: mefDevCardComponents,
563
- exports: mefDevCardComponents,
564
- imports: [
565
- CommonModule,
566
- MefDevCollapseModule,
567
- ]
568
- }]
569
- }] });
570
-
571
- /**
572
- * Fill Component for a modal window.
573
- *
574
- * Example of usage:
575
- * ```
576
- * <mefdev-fill-modal #pin_modal>
577
- * <!-- Modal header content -->
578
- * <ng-template #modal_header>
579
- * <!-- Header content goes here -->
580
- * </ng-template>
581
- *
582
- * <!-- Modal footer content -->
583
- * <ng-template #modal_footer>
584
- * <!-- Footer content goes here -->
585
- * </ng-template>
586
- * </mefdev-fill-modal>
587
- * ```
588
- *
589
- * <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/modals/fill</example-url>
590
- */
591
- class FillComponent {
592
- visible = false;
593
- dialog;
594
- /**
595
- * The header template of the modal window.
596
- * ```
597
- * <mefdev-fill-modal #pin_modal>
598
- * <ng-template #modal_header>
599
- * <!-- Header content goes here -->
600
- * </ng-template>
601
- * </mefdev-fill-modal>
602
- * ```
603
- */
604
- modal_header;
605
- /**
606
- * The footer template of the modal window.
607
- * ```
608
- * <mefdev-fill-modal #pin_modal>
609
- * <ng-template #modal_footer>
610
- * <!-- Footer content goes here -->
611
- * </ng-template>
612
- * </mefdev-fill-modal>
613
- * ```
614
- */
615
- modal_footer;
616
- /**
617
- * Input parameter that determines whether to show the modal window.
618
- */
619
- set show(val) {
620
- if (val) {
621
- this.showModal();
622
- }
623
- else {
624
- this.hideModal();
625
- }
626
- }
627
- ;
628
- /**
629
- * Event emitted when the modal is change state.
630
- * Emits a boolean value indicating if the modal is closed(false), or open(true).
631
- * Example:
632
- * ```
633
- * <mefdev-fill-modal (visibleChange)="onModalClosed($event)"></mefdev-fill-modal>
634
- * ```
635
- */
636
- visibleChange = new EventEmitter();
637
- constructor() { }
638
- ngOnInit() {
639
- }
640
- /**
641
- * Shows the modal state.
642
- * Return a boolean value indicating if the modal is closed(false), or open(true)
643
- */
644
- getModalState() {
645
- return this.visible;
646
- }
647
- /**
648
- * Shows the modal.
649
- * Call this method to open the modal window.
650
- */
651
- showModal() {
652
- this.visible = true;
653
- this.visibleChange.emit(this.visible);
654
- }
655
- /**
656
- * Hides the modal.
657
- * Call this method to close the modal window.
658
- */
659
- hideModal() {
660
- this.visible = false;
661
- this.visibleChange.emit(this.visible);
662
- }
663
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FillComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
664
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: FillComponent, isStandalone: false, selector: "mefdev-fill-modal", inputs: { show: "show" }, outputs: { visibleChange: "visibleChange" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: "<button *ngIf=\"visible\" (click)=\"hideModal()\" aria-label=\"Close\" class=\"dialog__close-btn\">X</button>\r\n<div [@dialog] *ngIf=\"visible\" class=\"dialog\" #dialog>\r\n\t<div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"visible\" class=\"overlay\" (click)=\"hideModal()\"></div>\r\n", styles: [".overlay{position:fixed;inset:0;background-color:#ffffffd9;z-index:999}.dialog{z-index:1000;position:fixed;right:0;left:0;top:0;margin-left:auto;margin-right:auto;height:100%;min-height:200px;min-width:520px;max-width:90%;width:fit-content;padding:12px;overflow-y:auto;display:flex;align-items:center}.dialog__close-btn{border:0;background:none;color:#2d2d2d;position:absolute;top:8px;right:8px;font-size:1.2em;z-index:1001}.modal-footer{padding-top:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
665
- trigger('dialog', [
666
- transition('void => *', [
667
- style({ transform: 'scale3d(.3, .3, .3)' }),
668
- animate(100)
669
- ]),
670
- transition('* => void', [
671
- animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
672
- ])
673
- ])
674
- ] });
675
- }
676
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: FillComponent, decorators: [{
677
- type: Component,
678
- args: [{ selector: 'mefdev-fill-modal', animations: [
679
- trigger('dialog', [
680
- transition('void => *', [
681
- style({ transform: 'scale3d(.3, .3, .3)' }),
682
- animate(100)
683
- ]),
684
- transition('* => void', [
685
- animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
686
- ])
687
- ])
688
- ], standalone: false, template: "<button *ngIf=\"visible\" (click)=\"hideModal()\" aria-label=\"Close\" class=\"dialog__close-btn\">X</button>\r\n<div [@dialog] *ngIf=\"visible\" class=\"dialog\" #dialog>\r\n\t<div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"visible\" class=\"overlay\" (click)=\"hideModal()\"></div>\r\n", styles: [".overlay{position:fixed;inset:0;background-color:#ffffffd9;z-index:999}.dialog{z-index:1000;position:fixed;right:0;left:0;top:0;margin-left:auto;margin-right:auto;height:100%;min-height:200px;min-width:520px;max-width:90%;width:fit-content;padding:12px;overflow-y:auto;display:flex;align-items:center}.dialog__close-btn{border:0;background:none;color:#2d2d2d;position:absolute;top:8px;right:8px;font-size:1.2em;z-index:1001}.modal-footer{padding-top:10px}\n"] }]
689
- }], ctorParameters: () => [], propDecorators: { dialog: [{
690
- type: ViewChild,
691
- args: ['dialog', { static: false }]
692
- }], modal_header: [{
693
- type: ContentChild,
694
- args: ["modal_header"]
695
- }], modal_footer: [{
696
- type: ContentChild,
697
- args: ["modal_footer"]
698
- }], show: [{
699
- type: Input
700
- }], visibleChange: [{
701
- type: Output
702
- }] } });
703
-
704
- /**
705
- * A component representing a slide-up modal window.
706
- *
707
- * Example of usage:
708
- *
709
- * ```
710
- * <mefdev-slide-up-modal [show]="showModal">
711
- * <ng-template #modal_header>
712
- * <h4>Modal Header</h4>
713
- * </ng-template>
714
- * <ng-template #modal_footer>
715
- * <button (click)="closeModal()">Close</button>
716
- * </ng-template>
717
- * <div class="modal-body">
718
- * Content goes here...
719
- * </div>
720
- * </mefdev-slide-up-modal>
721
- * ```
722
- * <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/modals/slide_up</example-url>
723
- */
724
- class SlideUpComponent {
725
- visible = false;
726
- /**
727
- * Reference to the template for the modal header.
728
- * Use this template to customize the header of the modal.
729
- */
730
- modal_header;
731
- /**
732
- * Reference to the template for the modal footer.
733
- * Use this template to customize the footer of the modal.
734
- */
735
- modal_footer;
736
- /**
737
- * Flag indicating whether the modal should be shown or hidden.
738
- * Set it to `true` to show the modal and `false` to hide it.
739
- */
740
- set show(val) {
741
- if (val) {
742
- this.showModal();
743
- }
744
- else {
745
- this.hideModal();
746
- }
747
- }
748
- ;
749
- /**
750
- * Event emitted when the modal is change state.
751
- * Emits a boolean value indicating if the modal is closed(false), or open(true).
752
- */
753
- visibleChange = new EventEmitter();
754
- constructor() { }
755
- ngOnInit() {
756
- }
757
- /**
758
- * Shows the modal state.
759
- * Return a boolean value indicating if the modal is closed(false), or open(true)
760
- */
761
- getModalState() {
762
- return this.visible;
763
- }
764
- /**
765
- * Shows the modal.
766
- * Call this method to open the modal window.
767
- */
768
- showModal() {
769
- this.visible = true;
770
- this.visibleChange.emit(this.visible);
771
- }
772
- /**
773
- * Hides the modal.
774
- * Call this method to close the modal window.
775
- */
776
- hideModal() {
777
- this.visible = false;
778
- this.visibleChange.emit(this.visible);
779
- }
780
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: SlideUpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
781
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: SlideUpComponent, isStandalone: false, selector: "mefdev-slide-up-modal", inputs: { show: "show" }, outputs: { visibleChange: "visibleChange" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], ngImport: i0, template: "<div [@dialog] *ngIf=\"visible\" class=\"dialog\">\r\n\t<button (click)=\"hideModal()\" aria-label=\"Close\" class=\"dialog__close-btn\">X</button>\r\n\t<div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"visible\" class=\"overlay\" (click)=\"hideModal()\"></div>\r\n", styles: [".overlay{position:fixed;inset:0;background-color:#00000080;z-index:999}.dialog{z-index:1000;position:fixed;inset:50% 0;margin:auto;min-height:200px;max-height:90%;min-width:520px;max-width:90%;width:fit-content;height:fit-content;overflow:auto;background-color:#fff;padding:12px;box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.dialog__close-btn{border:0;background:none;color:#2d2d2d;position:absolute;z-index:10002;top:8px;right:8px;font-size:1.2em}.modal-content .modal-body{min-height:120px;padding-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
782
- trigger('dialog', [
783
- transition('void => *', [
784
- style({ transform: 'scale3d(.3, .3, .3)' }),
785
- animate(100)
786
- ]),
787
- transition('* => void', [
788
- animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
789
- ])
790
- ])
791
- ] });
792
- }
793
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: SlideUpComponent, decorators: [{
794
- type: Component,
795
- args: [{ selector: 'mefdev-slide-up-modal', animations: [
796
- trigger('dialog', [
797
- transition('void => *', [
798
- style({ transform: 'scale3d(.3, .3, .3)' }),
799
- animate(100)
800
- ]),
801
- transition('* => void', [
802
- animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
803
- ])
804
- ])
805
- ], standalone: false, template: "<div [@dialog] *ngIf=\"visible\" class=\"dialog\">\r\n\t<button (click)=\"hideModal()\" aria-label=\"Close\" class=\"dialog__close-btn\">X</button>\r\n\t<div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"visible\" class=\"overlay\" (click)=\"hideModal()\"></div>\r\n", styles: [".overlay{position:fixed;inset:0;background-color:#00000080;z-index:999}.dialog{z-index:1000;position:fixed;inset:50% 0;margin:auto;min-height:200px;max-height:90%;min-width:520px;max-width:90%;width:fit-content;height:fit-content;overflow:auto;background-color:#fff;padding:12px;box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.dialog__close-btn{border:0;background:none;color:#2d2d2d;position:absolute;z-index:10002;top:8px;right:8px;font-size:1.2em}.modal-content .modal-body{min-height:120px;padding-bottom:10px}\n"] }]
806
- }], ctorParameters: () => [], propDecorators: { modal_header: [{
807
- type: ContentChild,
808
- args: ["modal_header"]
809
- }], modal_footer: [{
810
- type: ContentChild,
811
- args: ["modal_footer"]
812
- }], show: [{
813
- type: Input
814
- }], visibleChange: [{
815
- type: Output
816
- }] } });
817
-
818
- /**
819
- * A component representing a slide-right modal window.
820
- *
821
- * Example of usage:
822
- *
823
- * ```
824
- * <mefdev-slide-right-modal [size]="ModalSize.lg" [show]="showModal">
825
- * <ng-template #modal_header>
826
- * <h4>Modal Header</h4>
827
- * </ng-template>
828
- * <ng-template #modal_footer>
829
- * <button (click)="closeModal()">Close</button>
830
- * </ng-template>
831
- * <div class="modal-body">
832
- * Content goes here...
833
- * </div>
834
- * </mefdev-slide-right-modal>
835
- * ```
836
- * <example-url>https://platform.mef.dev/ui_kit_demo/view/page_components/modals/slide_right</example-url>
837
- */
838
- class SlideRightComponent {
839
- visible = false;
840
- dialog;
841
- /**
842
- * Reference to the template for the modal header.
843
- * Use this template to customize the header of the modal.
844
- */
845
- modal_header;
846
- /**
847
- * Reference to the template for the modal footer.
848
- * Use this template to customize the footer of the modal.
849
- */
850
- modal_footer;
851
- /**
852
- * Size of the modal.
853
- * Defaults to `ModalSize.md`.
854
- * Possible values: `ModalSize.sm`, `ModalSize.md`, `ModalSize.lg`, `ModalSize.xl`.
855
- */
856
- size = "md" /* ModalSize.md */;
857
- /**
858
- * Flag indicating whether the modal should be shown or hidden.
859
- * Set it to `true` to show the modal and `false` to hide it.
860
- */
861
- set show(val) {
862
- if (val) {
863
- this.showModal();
864
- }
865
- else {
866
- this.hideModal();
867
- }
868
- }
869
- ;
870
- /**
871
- * Event emitted when the modal is change state.
872
- * Emits a boolean value indicating if the modal is closed(false), or open(true).
873
- * Example:
874
- * ```
875
- * <mefdev-fill-modal (visibleChange)="onModalClosed($event)"></mefdev-fill-modal>
876
- * ```
877
- */
878
- visibleChange = new EventEmitter();
55
+ card_title;
879
56
  constructor() { }
880
57
  ngOnInit() {
881
58
  }
882
- /**
883
- * Shows the modal state.
884
- * Return a boolean value indicating if the modal is closed(false), or open(true)
885
- */
886
- getModalState() {
887
- return this.visible;
888
- }
889
- /**
890
- * Shows the modal.
891
- * Call this method to open the modal window.
892
- */
893
- showModal() {
894
- this.visible = true;
895
- this.visibleChange.emit(this.visible);
896
- }
897
- /**
898
- * Hides the modal.
899
- * Call this method to close the modal window.
900
- */
901
- hideModal() {
902
- this.visible = false;
903
- this.visibleChange.emit(this.visible);
904
- }
905
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: SlideRightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
906
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: SlideRightComponent, isStandalone: false, selector: "mefdev-slide-right-modal", inputs: { size: "size", show: "show" }, outputs: { visibleChange: "visibleChange" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: "<div [@dialog] *ngIf=\"visible\" class=\"dialog\" #dialog>\r\n\r\n <div *ngIf=\"modal_header\" class=\"header\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div *ngIf=\"modal_footer\" class=\"footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n</div>\r\n\r\n<div *ngIf=\"visible\" class=\"overlay\" (click)=\"hideModal()\"></div>\r\n", styles: [".overlay{position:fixed;inset:0;background-color:#0003;z-index:999}.dialog{z-index:1000;position:fixed;right:0;top:0;height:100%;width:500px;background-color:#fff;padding:16px;overflow-y:auto}@media (max-width: 768px){.dialog{width:300px}}.dialog__close-btn{border:0;background:none;color:#2d2d2d;position:absolute;top:8px;right:8px;font-size:1.2em;z-index:1001}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
907
- trigger('dialog', [
908
- transition('void => *', [
909
- style({ transform: 'translate3d(100%,0,0)' }),
910
- animate(100)
911
- ]),
912
- transition('* => void', [
913
- animate(100, style({ transform: 'translate3d(100%, 0, 0)' }))
914
- ])
915
- ])
916
- ] });
59
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: CardSimpleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: CardSimpleComponent, isStandalone: false, selector: "mefdev-card-simple", inputs: { isDisabled: ["disabled", "isDisabled"] }, queries: [{ propertyName: "card_title", first: true, predicate: ["card_title"], descendants: true }], ngImport: i0, template: "<div class=\"md-card-simple\" [class.md-card-simple--disabled]=\"isDisabled\">\r\n <div class=\"md-card-simple__section md-card-simple__section--header\" *ngIf=\"card_title as tpl\">\r\n <ng-template [ngTemplateOutlet]=\"tpl\"></ng-template>\r\n </div>\r\n\r\n <div class=\"md-card-simple__section md-card-simple__section--content\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <!-- optional named slot for actions -->\r\n <div class=\"md-card-simple__section md-card-simple__section--actions\">\r\n <ng-content select=\"[card-actions]\"></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,.md-card-simple__section--header,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{display:block;box-sizing:border-box}.md-card-simple{background-color:#f3f3f3;border-radius:5px;padding:.5rem}.md-card-simple__section{margin:.5rem}.md-card-simple__section--actions{display:flex;gap:.5rem;justify-content:flex-end;flex-wrap:wrap}.md-card-simple__section--actions:empty{display:none}.md-card-simple--disabled{opacity:.6;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
917
61
  }
918
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: SlideRightComponent, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: CardSimpleComponent, decorators: [{
919
63
  type: Component,
920
- args: [{ selector: 'mefdev-slide-right-modal', animations: [
921
- trigger('dialog', [
922
- transition('void => *', [
923
- style({ transform: 'translate3d(100%,0,0)' }),
924
- animate(100)
925
- ]),
926
- transition('* => void', [
927
- animate(100, style({ transform: 'translate3d(100%, 0, 0)' }))
928
- ])
929
- ])
930
- ], standalone: false, template: "<div [@dialog] *ngIf=\"visible\" class=\"dialog\" #dialog>\r\n\r\n <div *ngIf=\"modal_header\" class=\"header\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div *ngIf=\"modal_footer\" class=\"footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n</div>\r\n\r\n<div *ngIf=\"visible\" class=\"overlay\" (click)=\"hideModal()\"></div>\r\n", styles: [".overlay{position:fixed;inset:0;background-color:#0003;z-index:999}.dialog{z-index:1000;position:fixed;right:0;top:0;height:100%;width:500px;background-color:#fff;padding:16px;overflow-y:auto}@media (max-width: 768px){.dialog{width:300px}}.dialog__close-btn{border:0;background:none;color:#2d2d2d;position:absolute;top:8px;right:8px;font-size:1.2em;z-index:1001}\n"] }]
931
- }], ctorParameters: () => [], propDecorators: { dialog: [{
932
- type: ViewChild,
933
- args: ['dialog']
934
- }], modal_header: [{
935
- type: ContentChild,
936
- args: ["modal_header"]
937
- }], modal_footer: [{
64
+ args: [{ selector: 'mefdev-card-simple', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"md-card-simple\" [class.md-card-simple--disabled]=\"isDisabled\">\r\n <div class=\"md-card-simple__section md-card-simple__section--header\" *ngIf=\"card_title as tpl\">\r\n <ng-template [ngTemplateOutlet]=\"tpl\"></ng-template>\r\n </div>\r\n\r\n <div class=\"md-card-simple__section md-card-simple__section--content\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <!-- optional named slot for actions -->\r\n <div class=\"md-card-simple__section md-card-simple__section--actions\">\r\n <ng-content select=\"[card-actions]\"></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,.md-card-simple__section--header,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{display:block;box-sizing:border-box}.md-card-simple{background-color:#f3f3f3;border-radius:5px;padding:.5rem}.md-card-simple__section{margin:.5rem}.md-card-simple__section--actions{display:flex;gap:.5rem;justify-content:flex-end;flex-wrap:wrap}.md-card-simple__section--actions:empty{display:none}.md-card-simple--disabled{opacity:.6;pointer-events:none}\n"] }]
65
+ }], ctorParameters: () => [], propDecorators: { isDisabled: [{
66
+ type: Input,
67
+ args: ["disabled"]
68
+ }], card_title: [{
938
69
  type: ContentChild,
939
- args: ["modal_footer"]
940
- }], size: [{
941
- type: Input
942
- }], show: [{
943
- type: Input
944
- }], visibleChange: [{
945
- type: Output
70
+ args: ["card_title"]
946
71
  }] } });
947
72
 
948
- /**
949
- * Component representing the right filter.
950
- */
951
- class RightFilterComponent {
952
- filteredFieldService;
953
- /**
954
- * Flag indicating whether the right filter is open or closed.
955
- */
956
- isOpen = false;
957
- showStandartOpenButton = true;
958
- constructor(filteredFieldService) {
959
- this.filteredFieldService = filteredFieldService;
960
- }
961
- ngOnInit() {
962
- // Subscribe to the open filter event from the FilteredFieldService
963
- // and update the isOpen flag accordingly.
964
- this.filteredFieldService.getOpenFilter().subscribe(() => {
965
- this.isOpen = true;
966
- });
967
- }
968
- /**
969
- * Opens or closes the right filter modal.
970
- */
971
- openModal() {
972
- this.isOpen = !this.isOpen;
973
- }
974
- /**
975
- * Event handler for when the modal is closed.
976
- * Sets the isOpen flag to false.
977
- */
978
- modalIsCloused() {
979
- this.isOpen = false;
980
- }
981
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: RightFilterComponent, deps: [{ token: FilteredFieldService }], target: i0.ɵɵFactoryTarget.Component });
982
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: RightFilterComponent, isStandalone: false, selector: "mefdev-right-filter", inputs: { showStandartOpenButton: "showStandartOpenButton" }, ngImport: i0, template: "<div \r\n*ngIf=\"showStandartOpenButton\"\r\nclass=\"filter-btn\" \r\n(click)=\"openModal()\"\r\n>\r\n <i class=\"fa fa-filter\" aria-hidden=\"true\"></i>\r\n</div>\r\n\r\n<mefdev-slide-right-modal [show]=\"isOpen\" (isClouse)=\"modalIsCloused()\">\r\n <ng-content></ng-content>\r\n</mefdev-slide-right-modal>", styles: [".filter-btn{box-shadow:1px 1px 2px 2px #0000001a;border-radius:3px;width:36px;height:26px;display:flex;justify-content:center;align-items:center;position:fixed;z-index:2;background-color:#fff;right:30px;top:52px;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: ["size", "show"], outputs: ["visibleChange"] }] });
73
+ const mefDevCardComponents = [CardSimpleComponent];
74
+ class MefDevCardModule {
75
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
76
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, declarations: [CardSimpleComponent], imports: [CommonModule], exports: [CardSimpleComponent] });
77
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, imports: [CommonModule] });
983
78
  }
984
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: RightFilterComponent, decorators: [{
985
- type: Component,
986
- args: [{ selector: 'mefdev-right-filter', standalone: false, template: "<div \r\n*ngIf=\"showStandartOpenButton\"\r\nclass=\"filter-btn\" \r\n(click)=\"openModal()\"\r\n>\r\n <i class=\"fa fa-filter\" aria-hidden=\"true\"></i>\r\n</div>\r\n\r\n<mefdev-slide-right-modal [show]=\"isOpen\" (isClouse)=\"modalIsCloused()\">\r\n <ng-content></ng-content>\r\n</mefdev-slide-right-modal>", styles: [".filter-btn{box-shadow:1px 1px 2px 2px #0000001a;border-radius:3px;width:36px;height:26px;display:flex;justify-content:center;align-items:center;position:fixed;z-index:2;background-color:#fff;right:30px;top:52px;cursor:pointer}\n"] }]
987
- }], ctorParameters: () => [{ type: FilteredFieldService }], propDecorators: { showStandartOpenButton: [{
988
- type: Input
989
- }] } });
990
-
991
- let mefDevModalModuleComponents = [
992
- FillComponent,
993
- SlideUpComponent,
994
- SlideRightComponent,
995
- RightFilterComponent
996
- ];
997
- class MefDevModalModule {
998
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
999
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: MefDevModalModule, declarations: [FillComponent,
1000
- SlideUpComponent,
1001
- SlideRightComponent,
1002
- RightFilterComponent], imports: [CommonModule], exports: [FillComponent,
1003
- SlideUpComponent,
1004
- SlideRightComponent,
1005
- RightFilterComponent] });
1006
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevModalModule, imports: [CommonModule] });
1007
- }
1008
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevModalModule, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: MefDevCardModule, decorators: [{
1009
80
  type: NgModule,
1010
81
  args: [{
82
+ declarations: mefDevCardComponents,
83
+ exports: mefDevCardComponents,
1011
84
  imports: [
1012
- CommonModule
1013
- ],
1014
- exports: mefDevModalModuleComponents,
1015
- declarations: mefDevModalModuleComponents
85
+ CommonModule,
86
+ ]
1016
87
  }]
1017
88
  }] });
1018
89
 
@@ -1234,519 +305,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
1234
305
  }]
1235
306
  }] });
1236
307
 
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
308
  const ACCORDION = new InjectionToken('ACCORDION');
1751
309
 
1752
310
  const MD_EXPANSION_PANEL = new InjectionToken('MD_EXPANSION_PANEL');
@@ -14191,5 +12749,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
14191
12749
  * Generated bundle index. Do not edit.
14192
12750
  */
14193
12751
 
14194
- export { ACCORDION, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, CollapseComponent, CollapseSetComponent, 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, MefDevCollapseModule, MefDevDialogConfig, MefDevDialogRef, MefDevDropDownMenuModule, MefDevFilteredFieldModule, MefDevModalModule, MefDevPageLayoutsModule, MefDevStepExecutorModule, MefdevDropdownMenuComponent, MefdevExecutorPageComponent, PaginatedTabHeader, PseudoCheckbox, RADIO_GROUP_CONTROL_VALUE_ACCESSOR, RadioChange, RightFilterComponent, STEPPER_INTL_PROVIDER, STEPPER_INTL_PROVIDER_FACTORY, SelectChange, ShowOnDirtyErrorStateMatcher, SlideRightComponent, SlideUpComponent, SortDirection, SortType, StageComponent, StepExecutorComponent, StepperErrorStateMatcher, StepperIntl, TABS_CONFIG, TAB_CONTENT, TAB_GROUP, TabBodyPortal, TablePageComponent, TransitionCheckState, _ErrorStateTracker, _closeDialogVia, _countGroupLabelsBeforeOption, _getOptionScrollPosition, components, getMDAutocompleteMissingPanelError, getMDSelectDynamicMultipleError, getMDSelectNonArrayValueError, getMDSelectNonFunctionValueError, groupRowsByProperty, mefDevCardComponents, mefDevCollapseModuleComponents, sortRows };
12752
+ export { ACCORDION, CARD_CONFIG, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, DIALOG_SCROLL_STRATEGY, DialogState, EXPANSION_PANEL_DEFAULT_OPTIONS, ErrorStateMatcher, ExpansionPanelActionRow, ExpansionPanelDescription, ExpansionPanelTitle, 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, MefDevPageLayoutsModule, PaginatedTabHeader, PseudoCheckbox, RADIO_GROUP_CONTROL_VALUE_ACCESSOR, RadioChange, STEPPER_INTL_PROVIDER, STEPPER_INTL_PROVIDER_FACTORY, SelectChange, ShowOnDirtyErrorStateMatcher, 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
12753
  //# sourceMappingURL=natec-mef-dev-ui-kit.mjs.map