@natec/mef-dev-ui-kit 15.1.1 → 15.1.3

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.
@@ -10,10 +10,9 @@ import { CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';
10
10
  import * as i2 from '@angular/forms';
11
11
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
12
12
  import { TAB, DOWN_ARROW, ENTER } from '@angular/cdk/keycodes';
13
- import * as i1$2 from 'ngx-bootstrap/modal';
14
13
  import { ModalModule } from 'ngx-bootstrap/modal';
15
14
  import { auditTime, startWith, map } from 'rxjs/operators';
16
- import * as i1$3 from '@angular/cdk/bidi';
15
+ import * as i1$2 from '@angular/cdk/bidi';
17
16
 
18
17
  /**
19
18
  * Component representing a set of collapsible panels.
@@ -2202,9 +2201,6 @@ class FillComponent {
2202
2201
  * Input parameter that determines whether to show the modal window.
2203
2202
  */
2204
2203
  set show(val) {
2205
- if (!this.fadInModal) {
2206
- return;
2207
- }
2208
2204
  if (val) {
2209
2205
  this.showModal();
2210
2206
  }
@@ -2214,54 +2210,80 @@ class FillComponent {
2214
2210
  }
2215
2211
  ;
2216
2212
  constructor() {
2213
+ this.visible = false;
2217
2214
  /**
2218
- * Event emitter triggered when the modal window is closed.
2219
- * Emits a boolean value indicating whether the modal window is closed.
2215
+ * Event emitted when the modal is change state.
2216
+ * Emits a boolean value indicating if the modal is closed(false), or open(true).
2220
2217
  * Example:
2221
2218
  * ```
2222
- * <mefdev-fill-modal (isClouse)="onModalClosed($event)"></mefdev-fill-modal>
2219
+ * <mefdev-fill-modal (visibleChange)="onModalClosed($event)"></mefdev-fill-modal>
2223
2220
  * ```
2224
2221
  */
2225
- this.isClouse = new EventEmitter();
2222
+ this.visibleChange = new EventEmitter();
2226
2223
  }
2227
2224
  ngOnInit() {
2228
2225
  }
2229
2226
  /**
2230
- * Event emitter for when the modal is closed.
2231
- */
2232
- modalIsCloused() {
2233
- this.isClouse.emit(true);
2227
+ * Shows the modal state.
2228
+ * Return a boolean value indicating if the modal is closed(false), or open(true)
2229
+ */
2230
+ getModalState() {
2231
+ return this.visible;
2234
2232
  }
2235
2233
  /**
2236
- * Shows the modal window.
2237
- */
2234
+ * Shows the modal.
2235
+ * Call this method to open the modal window.
2236
+ */
2238
2237
  showModal() {
2239
- this.fadInModal?.show();
2238
+ this.visible = true;
2239
+ this.visibleChange.emit(this.visible);
2240
2240
  }
2241
2241
  /**
2242
- * Hides the modal window.
2242
+ * Hides the modal.
2243
+ * Call this method to close the modal window.
2243
2244
  */
2244
2245
  hideModal() {
2245
- this.fadInModal?.hide();
2246
+ this.visible = false;
2247
+ this.visibleChange.emit(this.visible);
2246
2248
  }
2247
2249
  }
2248
2250
  FillComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FillComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2249
- FillComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FillComponent, selector: "mefdev-fill-modal", inputs: { show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "fadInModal", first: true, predicate: ["fadInModal"], descendants: true }], ngImport: i0, template: " <div bsModal #fadInModal=\"bs-modal\" class=\"modal fade fill-in\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <button type=\"button\" class=\"close\" (click)=\"fadInModal.hide()\" aria-hidden=\"true\">\r\n <i class=\"pg pg-close\"></i>\r\n </button>\r\n <div class=\"modal-dialog \">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\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>", styles: [""], dependencies: [{ kind: "directive", type: i1$2.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
2251
+ FillComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FillComponent, 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-width:280px;max-width:720px;background-color:#ffffffd9;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}\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: [
2252
+ trigger('dialog', [
2253
+ transition('void => *', [
2254
+ style({ transform: 'scale3d(.3, .3, .3)' }),
2255
+ animate(100)
2256
+ ]),
2257
+ transition('* => void', [
2258
+ animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
2259
+ ])
2260
+ ])
2261
+ ] });
2250
2262
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FillComponent, decorators: [{
2251
2263
  type: Component,
2252
- args: [{ selector: 'mefdev-fill-modal', template: " <div bsModal #fadInModal=\"bs-modal\" class=\"modal fade fill-in\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <button type=\"button\" class=\"close\" (click)=\"fadInModal.hide()\" aria-hidden=\"true\">\r\n <i class=\"pg pg-close\"></i>\r\n </button>\r\n <div class=\"modal-dialog \">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\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>" }]
2253
- }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
2264
+ args: [{ selector: 'mefdev-fill-modal', animations: [
2265
+ trigger('dialog', [
2266
+ transition('void => *', [
2267
+ style({ transform: 'scale3d(.3, .3, .3)' }),
2268
+ animate(100)
2269
+ ]),
2270
+ transition('* => void', [
2271
+ animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
2272
+ ])
2273
+ ])
2274
+ ], 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-width:280px;max-width:720px;background-color:#ffffffd9;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}\n"] }]
2275
+ }], ctorParameters: function () { return []; }, propDecorators: { dialog: [{
2276
+ type: ViewChild,
2277
+ args: ['dialog', { static: false }]
2278
+ }], modal_header: [{
2254
2279
  type: ContentChild,
2255
2280
  args: ["modal_header"]
2256
2281
  }], modal_footer: [{
2257
2282
  type: ContentChild,
2258
2283
  args: ["modal_footer"]
2259
- }], fadInModal: [{
2260
- type: ViewChild,
2261
- args: ['fadInModal', { static: false }]
2262
2284
  }], show: [{
2263
2285
  type: Input
2264
- }], isClouse: [{
2286
+ }], visibleChange: [{
2265
2287
  type: Output
2266
2288
  }] } });
2267
2289
 
@@ -2291,9 +2313,6 @@ class SlideUpComponent {
2291
2313
  * Set it to `true` to show the modal and `false` to hide it.
2292
2314
  */
2293
2315
  set show(val) {
2294
- if (!this.mdSlideUp) {
2295
- return;
2296
- }
2297
2316
  if (val) {
2298
2317
  this.showModal();
2299
2318
  }
@@ -2303,61 +2322,73 @@ class SlideUpComponent {
2303
2322
  }
2304
2323
  ;
2305
2324
  constructor() {
2325
+ this.visible = false;
2306
2326
  /**
2307
- * Size of the modal.
2308
- * Defaults to `ModalSize.md`.
2309
- * Possible values: `ModalSize.sm`, `ModalSize.md`, `ModalSize.lg`, `ModalSize.xl`.
2327
+ * Event emitted when the modal is change state.
2328
+ * Emits a boolean value indicating if the modal is closed(false), or open(true).
2310
2329
  */
2311
- this.size = "md" /* ModalSize.md */;
2312
- /**
2313
- * Event emitted when the modal is closed.
2314
- * Emits a boolean value indicating if the modal is closed.
2315
- */
2316
- this.isClouse = new EventEmitter();
2330
+ this.visibleChange = new EventEmitter();
2317
2331
  }
2318
2332
  ngOnInit() {
2319
2333
  }
2320
2334
  /**
2321
- * Event handler for when the modal is closed.
2322
- * Emits the `isClosed` event with a value of `true`.
2323
- */
2324
- modalIsCloused() {
2325
- this.isClouse.emit(true);
2335
+ * Shows the modal state.
2336
+ * Return a boolean value indicating if the modal is closed(false), or open(true)
2337
+ */
2338
+ getModalState() {
2339
+ return this.visible;
2326
2340
  }
2327
2341
  /**
2328
- * Shows the modal.
2329
- * Call this method to open the modal window.
2330
- */
2342
+ * Shows the modal.
2343
+ * Call this method to open the modal window.
2344
+ */
2331
2345
  showModal() {
2332
- this.mdSlideUp.show();
2346
+ this.visible = true;
2347
+ this.visibleChange.emit(this.visible);
2333
2348
  }
2334
2349
  /**
2335
2350
  * Hides the modal.
2336
2351
  * Call this method to close the modal window.
2337
2352
  */
2338
2353
  hideModal() {
2339
- this.mdSlideUp.hide();
2354
+ this.visible = false;
2355
+ this.visibleChange.emit(this.visible);
2340
2356
  }
2341
2357
  }
2342
2358
  SlideUpComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlideUpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2343
- SlideUpComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SlideUpComponent, selector: "mefdev-slide-up-modal", inputs: { size: "size", show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "mdSlideUp", first: true, predicate: ["mdSlideUp"], descendants: true }], ngImport: i0, template: "<div bsModal #mdSlideUp=\"bs-modal\" class=\"modal fade slide-up disable-scroll\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"false\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <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>", styles: [""], dependencies: [{ kind: "directive", type: i1$2.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
2359
+ SlideUpComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SlideUpComponent, 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;right:0;left:0;top:40px;margin:auto;min-height:200px;width:90%;max-width:520px;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;top:8px;right:8px;font-size:1.2em}\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: [
2360
+ trigger('dialog', [
2361
+ transition('void => *', [
2362
+ style({ transform: 'scale3d(.3, .3, .3)' }),
2363
+ animate(100)
2364
+ ]),
2365
+ transition('* => void', [
2366
+ animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
2367
+ ])
2368
+ ])
2369
+ ] });
2344
2370
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlideUpComponent, decorators: [{
2345
2371
  type: Component,
2346
- args: [{ selector: 'mefdev-slide-up-modal', template: "<div bsModal #mdSlideUp=\"bs-modal\" class=\"modal fade slide-up disable-scroll\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"false\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <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>" }]
2372
+ args: [{ selector: 'mefdev-slide-up-modal', animations: [
2373
+ trigger('dialog', [
2374
+ transition('void => *', [
2375
+ style({ transform: 'scale3d(.3, .3, .3)' }),
2376
+ animate(100)
2377
+ ]),
2378
+ transition('* => void', [
2379
+ animate(100, style({ transform: 'scale3d(.0, .0, .0)' }))
2380
+ ])
2381
+ ])
2382
+ ], 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;right:0;left:0;top:40px;margin:auto;min-height:200px;width:90%;max-width:520px;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;top:8px;right:8px;font-size:1.2em}\n"] }]
2347
2383
  }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
2348
2384
  type: ContentChild,
2349
2385
  args: ["modal_header"]
2350
2386
  }], modal_footer: [{
2351
2387
  type: ContentChild,
2352
2388
  args: ["modal_footer"]
2353
- }], mdSlideUp: [{
2354
- type: ViewChild,
2355
- args: ['mdSlideUp', { static: false }]
2356
- }], size: [{
2357
- type: Input
2358
2389
  }], show: [{
2359
2390
  type: Input
2360
- }], isClouse: [{
2391
+ }], visibleChange: [{
2361
2392
  type: Output
2362
2393
  }] } });
2363
2394
 
@@ -2387,9 +2418,6 @@ class SlideRightComponent {
2387
2418
  * Set it to `true` to show the modal and `false` to hide it.
2388
2419
  */
2389
2420
  set show(val) {
2390
- if (!this.slideRight) {
2391
- return;
2392
- }
2393
2421
  if (val) {
2394
2422
  this.showModal();
2395
2423
  }
@@ -2399,6 +2427,7 @@ class SlideRightComponent {
2399
2427
  }
2400
2428
  ;
2401
2429
  constructor() {
2430
+ this.visible = false;
2402
2431
  /**
2403
2432
  * Size of the modal.
2404
2433
  * Defaults to `ModalSize.md`.
@@ -2406,54 +2435,80 @@ class SlideRightComponent {
2406
2435
  */
2407
2436
  this.size = "md" /* ModalSize.md */;
2408
2437
  /**
2409
- * Event emitted when the modal is closed.
2410
- * Emits a boolean value indicating if the modal is closed.
2438
+ * Event emitted when the modal is change state.
2439
+ * Emits a boolean value indicating if the modal is closed(false), or open(true).
2440
+ * Example:
2441
+ * ```
2442
+ * <mefdev-fill-modal (visibleChange)="onModalClosed($event)"></mefdev-fill-modal>
2443
+ * ```
2411
2444
  */
2412
- this.isClouse = new EventEmitter();
2445
+ this.visibleChange = new EventEmitter();
2413
2446
  }
2414
2447
  ngOnInit() {
2415
2448
  }
2416
2449
  /**
2417
- * Event handler for when the modal is closed.
2418
- * Emits the `isClosed` event with a value of `true`.
2419
- */
2420
- modalIsCloused() {
2421
- this.isClouse.emit(true);
2450
+ * Shows the modal state.
2451
+ * Return a boolean value indicating if the modal is closed(false), or open(true)
2452
+ */
2453
+ getModalState() {
2454
+ return this.visible;
2422
2455
  }
2423
2456
  /**
2424
- * Shows the modal.
2425
- * Call this method to open the modal window.
2426
- */
2457
+ * Shows the modal.
2458
+ * Call this method to open the modal window.
2459
+ */
2427
2460
  showModal() {
2428
- this.slideRight.show();
2461
+ this.visible = true;
2462
+ this.visibleChange.emit(this.visible);
2429
2463
  }
2430
2464
  /**
2431
- * Hides the modal.
2432
- * Call this method to close the modal window.
2433
- */
2465
+ * Hides the modal.
2466
+ * Call this method to close the modal window.
2467
+ */
2434
2468
  hideModal() {
2435
- this.slideRight.hide();
2469
+ this.visible = false;
2470
+ this.visibleChange.emit(this.visible);
2436
2471
  }
2437
2472
  }
2438
2473
  SlideRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlideRightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2439
- SlideRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: { size: "size", show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "slideRight", first: true, predicate: ["slideRight"], descendants: true }], ngImport: i0, template: "<div bsModal #slideRight=\"bs-modal\" class=\"modal fade slide-right\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <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>", styles: [""], dependencies: [{ kind: "directive", type: i1$2.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
2474
+ SlideRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SlideRightComponent, 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: "<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\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: [
2475
+ trigger('dialog', [
2476
+ transition('void => *', [
2477
+ style({ transform: 'translate3d(100%,0,0)' }),
2478
+ animate(100)
2479
+ ]),
2480
+ transition('* => void', [
2481
+ animate(100, style({ transform: 'translate3d(100%, 0, 0)' }))
2482
+ ])
2483
+ ])
2484
+ ] });
2440
2485
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlideRightComponent, decorators: [{
2441
2486
  type: Component,
2442
- args: [{ selector: 'mefdev-slide-right-modal', template: "<div bsModal #slideRight=\"bs-modal\" class=\"modal fade slide-right\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <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>" }]
2443
- }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
2487
+ args: [{ selector: 'mefdev-slide-right-modal', animations: [
2488
+ trigger('dialog', [
2489
+ transition('void => *', [
2490
+ style({ transform: 'translate3d(100%,0,0)' }),
2491
+ animate(100)
2492
+ ]),
2493
+ transition('* => void', [
2494
+ animate(100, style({ transform: 'translate3d(100%, 0, 0)' }))
2495
+ ])
2496
+ ])
2497
+ ], 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\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"] }]
2498
+ }], ctorParameters: function () { return []; }, propDecorators: { dialog: [{
2499
+ type: ViewChild,
2500
+ args: ['dialog']
2501
+ }], modal_header: [{
2444
2502
  type: ContentChild,
2445
2503
  args: ["modal_header"]
2446
2504
  }], modal_footer: [{
2447
2505
  type: ContentChild,
2448
2506
  args: ["modal_footer"]
2449
- }], slideRight: [{
2450
- type: ViewChild,
2451
- args: ['slideRight', { static: false }]
2452
2507
  }], size: [{
2453
2508
  type: Input
2454
2509
  }], show: [{
2455
2510
  type: Input
2456
- }], isClouse: [{
2511
+ }], visibleChange: [{
2457
2512
  type: Output
2458
2513
  }] } });
2459
2514
 
@@ -2490,7 +2545,7 @@ class RightFilterComponent {
2490
2545
  }
2491
2546
  }
2492
2547
  RightFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RightFilterComponent, deps: [{ token: FilteredFieldService }], target: i0.ɵɵFactoryTarget.Component });
2493
- RightFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: RightFilterComponent, selector: "mefdev-right-filter", ngImport: i0, template: "<div class=\"filter-btn\">\r\n <button class=\"btn btn-secondary text-danger\" (click)=\"openModal()\"><i class=\"fa fa-filter\" aria-hidden=\"true\"></i></button>\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{position:fixed;top:60px;z-index:450;right:25px}\n"], dependencies: [{ kind: "component", type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: ["size", "show"], outputs: ["isClouse"] }] });
2548
+ RightFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: RightFilterComponent, selector: "mefdev-right-filter", ngImport: i0, template: "<div class=\"filter-btn\">\r\n <button class=\"btn btn-secondary text-danger\" (click)=\"openModal()\"><i class=\"fa fa-filter\" aria-hidden=\"true\"></i></button>\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{position:fixed;top:60px;z-index:450;right:25px}\n"], dependencies: [{ kind: "component", type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: ["size", "show"], outputs: ["visibleChange"] }] });
2494
2549
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RightFilterComponent, decorators: [{
2495
2550
  type: Component,
2496
2551
  args: [{ selector: 'mefdev-right-filter', template: "<div class=\"filter-btn\">\r\n <button class=\"btn btn-secondary text-danger\" (click)=\"openModal()\"><i class=\"fa fa-filter\" aria-hidden=\"true\"></i></button>\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{position:fixed;top:60px;z-index:450;right:25px}\n"] }]
@@ -3547,12 +3602,12 @@ class MefDevTabsNavComponent {
3547
3602
  }
3548
3603
  }
3549
3604
  }
3550
- MefDevTabsNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsNavComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$3.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3605
+ MefDevTabsNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsNavComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3551
3606
  MefDevTabsNavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevTabsNavComponent, selector: "mefdev-tabs-nav", inputs: { Size: "Size", Animated: "Animated", Position: "Position", HideBar: "HideBar", Type: "Type", ShowPagination: "ShowPagination", PositionMode: "PositionMode", selectedIndex: "selectedIndex" }, queries: [{ propertyName: "_tabBarExtraContent", first: true, predicate: ["tabBarExtraContent"], descendants: true, static: true }, { propertyName: "_labelWrappers", predicate: MefDevTabLabelDirective }], viewQueries: [{ propertyName: "_inkBar", first: true, predicate: MefDevTabsInkBarDirective, descendants: true, static: true }, { propertyName: "_tabListContainer", first: true, predicate: ["tabListContainer"], descendants: true, static: true }, { propertyName: "_tabList", first: true, predicate: ["tabList"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"nav-tabs-wrapper\" [class.scrolling]=\"_showPaginationControls\" #tabListContainer>\r\n <div class=\"nav-wrap\">\r\n <ul\r\n class=\"nav nav-tabs nav-tabs-{{ _type }} nav-tabs-{{ _tabPosition }}\"\r\n [class.tabs-nav-animated]=\"Animated\"\r\n #tabList\r\n (cdkObserveContent)=\"_onContentChanges()\"\r\n >\r\n <div\r\n class=\"active-bar\"\r\n pg-tabs-ink-bar\r\n [hidden]=\"HideBar\"\r\n [Animated]=\"Animated\"\r\n [PositionMode]=\"PositionMode\"\r\n style=\"display: block;\"\r\n ></div>\r\n <ng-content></ng-content>\r\n </ul>\r\n </div>\r\n </div>", dependencies: [{ kind: "directive", type: MefDevTabsInkBarDirective, selector: "[pg-tabs-ink-bar]", inputs: ["Animated", "PositionMode"] }], encapsulation: i0.ViewEncapsulation.None });
3552
3607
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsNavComponent, decorators: [{
3553
3608
  type: Component,
3554
3609
  args: [{ selector: 'mefdev-tabs-nav', encapsulation: ViewEncapsulation.None, template: "<div class=\"nav-tabs-wrapper\" [class.scrolling]=\"_showPaginationControls\" #tabListContainer>\r\n <div class=\"nav-wrap\">\r\n <ul\r\n class=\"nav nav-tabs nav-tabs-{{ _type }} nav-tabs-{{ _tabPosition }}\"\r\n [class.tabs-nav-animated]=\"Animated\"\r\n #tabList\r\n (cdkObserveContent)=\"_onContentChanges()\"\r\n >\r\n <div\r\n class=\"active-bar\"\r\n pg-tabs-ink-bar\r\n [hidden]=\"HideBar\"\r\n [Animated]=\"Animated\"\r\n [PositionMode]=\"PositionMode\"\r\n style=\"display: block;\"\r\n ></div>\r\n <ng-content></ng-content>\r\n </ul>\r\n </div>\r\n </div>" }]
3555
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$3.Directionality, decorators: [{
3610
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$2.Directionality, decorators: [{
3556
3611
  type: Optional
3557
3612
  }] }]; }, propDecorators: { Size: [{
3558
3613
  type: Input