@webilix/ngx-helper-m3 0.0.16 → 0.0.18

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,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, makeEnvironmentProviders, Injector, Component, HostBinding, Input, Pipe, Injectable, Optional, Inject, EventEmitter, Output, inject, HostListener, createComponent, Directive } from '@angular/core';
2
+ import { InjectionToken, makeEnvironmentProviders, Injector, Component, HostBinding, Input, Pipe, Injectable, Optional, Inject, EventEmitter, Output, inject, createComponent, HostListener, Directive } from '@angular/core';
3
3
  import { NgComponentOutlet, NgClass } from '@angular/common';
4
4
  import * as i1$1 from '@angular/material/button';
5
5
  import { MatButton, MatIconButton, MatButtonModule } from '@angular/material/button';
@@ -17,10 +17,20 @@ import * as i2$1 from '@angular/material/dialog';
17
17
  import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
18
18
  import * as i1$2 from '@angular/material/bottom-sheet';
19
19
  import { MAT_BOTTOM_SHEET_DATA } from '@angular/material/bottom-sheet';
20
+ import * as i1$3 from '@angular/forms';
21
+ import { FormsModule } from '@angular/forms';
22
+ import { provideNgxMask, NgxMaskDirective } from 'ngx-mask';
23
+ import { Map, View, Feature } from 'ol';
24
+ import { Point } from 'ol/geom';
25
+ import interactionDoubleClickZoom from 'ol/interaction/DoubleClickZoom';
26
+ import TileLayer from 'ol/layer/Tile';
27
+ import VectorLayer from 'ol/layer/Vector';
28
+ import OSM from 'ol/source/OSM';
29
+ import VectorSource from 'ol/source/Vector';
20
30
  import { trigger, transition, style, animate } from '@angular/animations';
21
- import * as i1$4 from '@angular/common/http';
31
+ import * as i1$5 from '@angular/common/http';
22
32
  import { HttpHeaders, HttpEventType } from '@angular/common/http';
23
- import * as i1$3 from '@angular/platform-browser';
33
+ import * as i1$4 from '@angular/platform-browser';
24
34
 
25
35
  const NGX_HELPER_CONFIG = new InjectionToken('NGX-HELPER-CONFIG');
26
36
  const provideNgxHelperConfig = (config) => {
@@ -1273,6 +1283,194 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
1273
1283
  args: [{ providedIn: 'root' }]
1274
1284
  }], ctorParameters: () => [{ type: i1$2.MatBottomSheet }, { type: i2$1.MatDialog }] });
1275
1285
 
1286
+ class GetComponent {
1287
+ className = 'ngx-helper-m3-coordinates';
1288
+ coordinates;
1289
+ config;
1290
+ close;
1291
+ map;
1292
+ coordinate = [];
1293
+ inputTransformFn = (value) => Helper.STRING.changeNumbers(value.toString(), 'EN');
1294
+ ngOnInit() {
1295
+ this.coordinate = this.coordinates
1296
+ ? [this.coordinates.longitude, this.coordinates.latitude]
1297
+ : this.config?.view
1298
+ ? [this.config.view.longitude, this.config.view.latitude]
1299
+ : [51.3380603, 35.6997382];
1300
+ const zoom = this.config?.zoom || 15;
1301
+ this.map = new Map({
1302
+ view: new View({ center: this.coordinate, zoom, projection: 'EPSG:4326' }),
1303
+ layers: [new TileLayer({ source: new OSM() })],
1304
+ target: 'ngx-helper-m3-coordinates-map',
1305
+ });
1306
+ this.map
1307
+ .getInteractions()
1308
+ .getArray()
1309
+ .forEach((interaction) => {
1310
+ if (interaction instanceof interactionDoubleClickZoom)
1311
+ this.map.removeInteraction(interaction);
1312
+ });
1313
+ this.addLayer();
1314
+ }
1315
+ addLayer() {
1316
+ this.map
1317
+ .getLayers()
1318
+ .getArray()
1319
+ .forEach((layer) => {
1320
+ if (layer instanceof VectorLayer)
1321
+ this.map.removeLayer(layer);
1322
+ });
1323
+ if (this.coordinates) {
1324
+ const size = this.config?.size || 8;
1325
+ const color = this.config?.color || 'rgb(42, 101, 126)';
1326
+ const point = new Point(this.coordinate);
1327
+ const layer = new VectorLayer({
1328
+ source: new VectorSource({ features: [new Feature(point)] }),
1329
+ style: {
1330
+ 'circle-fill-color': color,
1331
+ 'circle-radius': size,
1332
+ 'circle-stroke-color': '#FFF',
1333
+ 'circle-stroke-width': 1,
1334
+ },
1335
+ });
1336
+ this.map.addLayer(layer);
1337
+ }
1338
+ }
1339
+ checkInputs(latitude, longitude) {
1340
+ this.coordinates = undefined;
1341
+ this.addLayer();
1342
+ latitude = latitude.toString().trim();
1343
+ if (latitude === '' || isNaN(+latitude) || +latitude < -180 || +latitude > 180)
1344
+ return;
1345
+ longitude = longitude.toString().trim();
1346
+ if (longitude === '' || isNaN(+longitude) || +longitude < -180 || +longitude > 180)
1347
+ return;
1348
+ const center = [+longitude, +latitude];
1349
+ this.map.getView().animate({ center, duration: 1000 });
1350
+ this.coordinate = [+longitude, +latitude];
1351
+ this.coordinates = { latitude: +latitude, longitude: +longitude };
1352
+ this.addLayer();
1353
+ }
1354
+ selectCoordinates() {
1355
+ if (!this.coordinates)
1356
+ return;
1357
+ this.close(this.coordinates);
1358
+ }
1359
+ setCoordinates(event) {
1360
+ event.preventDefault();
1361
+ this.coordinate = this.map.getEventCoordinate(event).map((c) => +c.toFixed(7));
1362
+ this.coordinates = { latitude: this.coordinate[1], longitude: this.coordinate[0] };
1363
+ this.addLayer();
1364
+ }
1365
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: GetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1366
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: GetComponent, isStandalone: true, selector: "ng-component", host: { attributes: { "selector": "get" }, properties: { "className": "this.className" } }, providers: [provideNgxMask()], ngImport: i0, template: "<div\n id=\"ngx-helper-m3-coordinates-map\"\n class=\"map\"\n (dblclick)=\"setCoordinates($event)\"\n (contextmenu)=\"setCoordinates($event)\"\n></div>\n\n<div class=\"coordinates\">\n <div class=\"header\">\n <div class=\"title\">COORDINATES</div>\n <mat-icon (click)=\"close()\">close</mat-icon>\n </div>\n <div class=\"item\">\n <div class=\"title\">LATITUDE</div>\n <input\n type=\"text\"\n maxlength=\"15\"\n inputmode=\"numeric\"\n [ngModel]=\"coordinates?.latitude\"\n mask=\"separator.12\"\n thousandSeparator=\"\"\n decimalMarker=\".\"\n [allowNegativeNumbers]=\"true\"\n [inputTransformFn]=\"inputTransformFn\"\n (keyup.enter)=\"checkInputs(latitudeInput.value, longitudeInput.value)\"\n (blur)=\"checkInputs(latitudeInput.value, longitudeInput.value)\"\n #latitudeInput\n />\n </div>\n <div class=\"item\">\n <div class=\"title\">LONGITUDE</div>\n <input\n type=\"text\"\n maxlength=\"15\"\n inputmode=\"numeric\"\n [ngModel]=\"coordinates?.longitude\"\n mask=\"separator.12\"\n thousandSeparator=\"\"\n decimalMarker=\".\"\n [allowNegativeNumbers]=\"true\"\n [inputTransformFn]=\"inputTransformFn\"\n (keyup.enter)=\"checkInputs(latitudeInput.value, longitudeInput.value)\"\n (blur)=\"checkInputs(latitudeInput.value, longitudeInput.value)\"\n #longitudeInput\n />\n </div>\n <div class=\"buttons\">\n <mat-icon [class.disabled]=\"!coordinates\" (click)=\"selectCoordinates()\">done_all</mat-icon>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix"], outputs: ["maskFilled"], exportAs: ["mask", "ngxMask"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
1367
+ }
1368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: GetComponent, decorators: [{
1369
+ type: Component,
1370
+ args: [{ host: { selector: 'get' }, imports: [FormsModule, NgxMaskDirective, MatIcon], providers: [provideNgxMask()], template: "<div\n id=\"ngx-helper-m3-coordinates-map\"\n class=\"map\"\n (dblclick)=\"setCoordinates($event)\"\n (contextmenu)=\"setCoordinates($event)\"\n></div>\n\n<div class=\"coordinates\">\n <div class=\"header\">\n <div class=\"title\">COORDINATES</div>\n <mat-icon (click)=\"close()\">close</mat-icon>\n </div>\n <div class=\"item\">\n <div class=\"title\">LATITUDE</div>\n <input\n type=\"text\"\n maxlength=\"15\"\n inputmode=\"numeric\"\n [ngModel]=\"coordinates?.latitude\"\n mask=\"separator.12\"\n thousandSeparator=\"\"\n decimalMarker=\".\"\n [allowNegativeNumbers]=\"true\"\n [inputTransformFn]=\"inputTransformFn\"\n (keyup.enter)=\"checkInputs(latitudeInput.value, longitudeInput.value)\"\n (blur)=\"checkInputs(latitudeInput.value, longitudeInput.value)\"\n #latitudeInput\n />\n </div>\n <div class=\"item\">\n <div class=\"title\">LONGITUDE</div>\n <input\n type=\"text\"\n maxlength=\"15\"\n inputmode=\"numeric\"\n [ngModel]=\"coordinates?.longitude\"\n mask=\"separator.12\"\n thousandSeparator=\"\"\n decimalMarker=\".\"\n [allowNegativeNumbers]=\"true\"\n [inputTransformFn]=\"inputTransformFn\"\n (keyup.enter)=\"checkInputs(latitudeInput.value, longitudeInput.value)\"\n (blur)=\"checkInputs(latitudeInput.value, longitudeInput.value)\"\n #longitudeInput\n />\n </div>\n <div class=\"buttons\">\n <mat-icon [class.disabled]=\"!coordinates\" (click)=\"selectCoordinates()\">done_all</mat-icon>\n </div>\n</div>\n" }]
1371
+ }], propDecorators: { className: [{
1372
+ type: HostBinding,
1373
+ args: ['className']
1374
+ }] } });
1375
+
1376
+ class ShowComponent {
1377
+ className = 'ngx-helper-m3-coordinates';
1378
+ coordinates;
1379
+ config;
1380
+ close;
1381
+ map;
1382
+ copied;
1383
+ copyTimeout;
1384
+ ngOnInit() {
1385
+ const coordinate = [this.coordinates.longitude, this.coordinates.latitude];
1386
+ const point = new Point(coordinate);
1387
+ const zoom = this.config?.zoom || 15;
1388
+ const size = this.config?.size || 8;
1389
+ const color = this.config?.color || 'rgb(42, 101, 126)';
1390
+ this.map = new Map({
1391
+ view: new View({ center: coordinate, zoom, projection: 'EPSG:4326' }),
1392
+ layers: [
1393
+ new TileLayer({ source: new OSM() }),
1394
+ new VectorLayer({
1395
+ source: new VectorSource({ features: [new Feature(point)] }),
1396
+ style: {
1397
+ 'circle-fill-color': color,
1398
+ 'circle-radius': size,
1399
+ 'circle-stroke-color': '#FFF',
1400
+ 'circle-stroke-width': 1,
1401
+ },
1402
+ }),
1403
+ ],
1404
+ target: 'ngx-helper-m3-coordinates-map',
1405
+ });
1406
+ }
1407
+ setCopy(type) {
1408
+ if (this.copyTimeout)
1409
+ clearTimeout(this.copyTimeout);
1410
+ this.copied = type;
1411
+ this.copyTimeout = setTimeout(() => (this.copied = undefined), 1000);
1412
+ }
1413
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: ShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1414
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: ShowComponent, isStandalone: true, selector: "ng-component", host: { attributes: { "selector": "show" }, properties: { "className": "this.className" } }, ngImport: i0, template: "<div id=\"ngx-helper-m3-coordinates-map\" class=\"map\"></div>\n\n<div class=\"coordinates\">\n <div class=\"header\">\n <div class=\"title\">COORDINATES</div>\n <mat-icon (click)=\"close()\">close</mat-icon>\n </div>\n <div class=\"item\">\n <div class=\"title\">LATITUDE</div>\n <div class=\"value\">{{ coordinates.latitude.toFixed(7) }}</div>\n <mat-icon [cdkCopyToClipboard]=\"coordinates.latitude.toString()\" (click)=\"setCopy('LATITUDE')\">\n {{ copied === 'LATITUDE' ? 'done_all' : 'copy' }}\n </mat-icon>\n </div>\n <div class=\"item\">\n <div class=\"title\">LONGITUDE</div>\n <div class=\"value\">{{ coordinates.longitude.toFixed(7) }}</div>\n <mat-icon [cdkCopyToClipboard]=\"coordinates.longitude.toString()\" (click)=\"setCopy('LONGITUDE')\">\n {{ copied === 'LONGITUDE' ? 'done_all' : 'copy' }}\n </mat-icon>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i3.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
1415
+ }
1416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: ShowComponent, decorators: [{
1417
+ type: Component,
1418
+ args: [{ host: { selector: 'show' }, imports: [ClipboardModule, MatIcon], template: "<div id=\"ngx-helper-m3-coordinates-map\" class=\"map\"></div>\n\n<div class=\"coordinates\">\n <div class=\"header\">\n <div class=\"title\">COORDINATES</div>\n <mat-icon (click)=\"close()\">close</mat-icon>\n </div>\n <div class=\"item\">\n <div class=\"title\">LATITUDE</div>\n <div class=\"value\">{{ coordinates.latitude.toFixed(7) }}</div>\n <mat-icon [cdkCopyToClipboard]=\"coordinates.latitude.toString()\" (click)=\"setCopy('LATITUDE')\">\n {{ copied === 'LATITUDE' ? 'done_all' : 'copy' }}\n </mat-icon>\n </div>\n <div class=\"item\">\n <div class=\"title\">LONGITUDE</div>\n <div class=\"value\">{{ coordinates.longitude.toFixed(7) }}</div>\n <mat-icon [cdkCopyToClipboard]=\"coordinates.longitude.toString()\" (click)=\"setCopy('LONGITUDE')\">\n {{ copied === 'LONGITUDE' ? 'done_all' : 'copy' }}\n </mat-icon>\n </div>\n</div>\n" }]
1419
+ }], propDecorators: { className: [{
1420
+ type: HostBinding,
1421
+ args: ['className']
1422
+ }] } });
1423
+
1424
+ class NgxHelperCoordinatesService {
1425
+ applicationRef;
1426
+ injector;
1427
+ constructor(applicationRef, injector) {
1428
+ this.applicationRef = applicationRef;
1429
+ this.injector = injector;
1430
+ }
1431
+ get(arg1, arg2) {
1432
+ const coordinates = arg1 ? ('latitude' in arg1 ? arg1 : undefined) : undefined;
1433
+ const config = arg2 || (arg1 && !coordinates ? arg1 : undefined);
1434
+ return new Promise((resolve, reject) => {
1435
+ const componentRef = createComponent(GetComponent, {
1436
+ environmentInjector: this.applicationRef.injector,
1437
+ elementInjector: this.injector,
1438
+ });
1439
+ componentRef.instance.coordinates = coordinates;
1440
+ componentRef.instance.config = config;
1441
+ componentRef.instance.close = (coordinates) => {
1442
+ this.applicationRef.detachView(componentRef.hostView);
1443
+ componentRef.destroy();
1444
+ coordinates ? resolve(coordinates) : reject();
1445
+ };
1446
+ const htmlElement = componentRef.hostView.rootNodes[0];
1447
+ this.applicationRef.attachView(componentRef.hostView);
1448
+ document.body.appendChild(htmlElement);
1449
+ });
1450
+ }
1451
+ show(coordinates, config) {
1452
+ const componentRef = createComponent(ShowComponent, {
1453
+ environmentInjector: this.applicationRef.injector,
1454
+ elementInjector: this.injector,
1455
+ });
1456
+ componentRef.instance.coordinates = coordinates;
1457
+ componentRef.instance.config = config;
1458
+ componentRef.instance.close = () => {
1459
+ this.applicationRef.detachView(componentRef.hostView);
1460
+ componentRef.destroy();
1461
+ };
1462
+ const htmlElement = componentRef.hostView.rootNodes[0];
1463
+ this.applicationRef.attachView(componentRef.hostView);
1464
+ document.body.appendChild(htmlElement);
1465
+ }
1466
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperCoordinatesService, deps: [{ token: i0.ApplicationRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1467
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperCoordinatesService, providedIn: 'root' });
1468
+ }
1469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperCoordinatesService, decorators: [{
1470
+ type: Injectable,
1471
+ args: [{ providedIn: 'root' }]
1472
+ }], ctorParameters: () => [{ type: i0.ApplicationRef }, { type: i0.Injector }] });
1473
+
1276
1474
  class NgxHelperMultiLinePipe {
1277
1475
  domSanitizer;
1278
1476
  constructor(domSanitizer) {
@@ -1285,13 +1483,13 @@ class NgxHelperMultiLinePipe {
1285
1483
  ? this.domSanitizer.bypassSecurityTrustHtml(value.replace(/(?:\r\n|\r|\n)/g, '<br />'))
1286
1484
  : Helper.STRING.escapeHTML(value).replace(/(?:\r\n|\r|\n)/g, '<br />');
1287
1485
  }
1288
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperMultiLinePipe, deps: [{ token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1486
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperMultiLinePipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1289
1487
  static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperMultiLinePipe, isStandalone: true, name: "ngxHelperMultiLine" });
1290
1488
  }
1291
1489
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperMultiLinePipe, decorators: [{
1292
1490
  type: Pipe,
1293
1491
  args: [{ name: 'ngxHelperMultiLine' }]
1294
- }], ctorParameters: () => [{ type: i1$3.DomSanitizer }] });
1492
+ }], ctorParameters: () => [{ type: i1$4.DomSanitizer }] });
1295
1493
 
1296
1494
  class ToastComponent {
1297
1495
  elementRef;
@@ -1563,7 +1761,7 @@ class DownloadComponent {
1563
1761
  },
1564
1762
  });
1565
1763
  }
1566
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: DownloadComponent, deps: [{ token: i1$4.HttpClient }, { token: NgxHelperToastService }], target: i0.ɵɵFactoryTarget.Component });
1764
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: DownloadComponent, deps: [{ token: i1$5.HttpClient }, { token: NgxHelperToastService }], target: i0.ɵɵFactoryTarget.Component });
1567
1765
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: DownloadComponent, isStandalone: true, selector: "ng-component", host: { attributes: { "selector": "download" }, properties: { "@host": "this.host", "className": "this.className", "style.bottom": "this.bottom" } }, ngImport: i0, template: "<div class=\"content\">\n <mat-icon>file_download</mat-icon>\n <div class=\"title\">{{ title }}</div>\n</div>\n\n<div class=\"progress-container\">\n <div class=\"progress-value\" [style.width]=\"progress + '%'\"></div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [
1568
1766
  trigger('host', [
1569
1767
  transition(':enter', [
@@ -1583,7 +1781,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
1583
1781
  ]),
1584
1782
  ]),
1585
1783
  ], template: "<div class=\"content\">\n <mat-icon>file_download</mat-icon>\n <div class=\"title\">{{ title }}</div>\n</div>\n\n<div class=\"progress-container\">\n <div class=\"progress-value\" [style.width]=\"progress + '%'\"></div>\n</div>\n" }]
1586
- }], ctorParameters: () => [{ type: i1$4.HttpClient }, { type: NgxHelperToastService }], propDecorators: { host: [{
1784
+ }], ctorParameters: () => [{ type: i1$5.HttpClient }, { type: NgxHelperToastService }], propDecorators: { host: [{
1587
1785
  type: HostBinding,
1588
1786
  args: ['@host']
1589
1787
  }], className: [{
@@ -1649,7 +1847,7 @@ class UploadComponent {
1649
1847
  error: (error) => this.close('ERROR', error.error, error.status),
1650
1848
  });
1651
1849
  }
1652
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: UploadComponent, deps: [{ token: i1$4.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
1850
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: UploadComponent, deps: [{ token: i1$5.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
1653
1851
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: UploadComponent, isStandalone: true, selector: "ng-component", host: { attributes: { "selector": "upload" }, properties: { "@host": "this.host", "className": "this.className", "style.bottom": "this.bottom" } }, ngImport: i0, template: "<div class=\"content\">\n <mat-icon>file_upload</mat-icon>\n <div class=\"file\">{{ file.name }}</div>\n</div>\n\n<div class=\"progress-container\">\n <div class=\"progress-value\" [style.width]=\"progress + '%'\"></div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [
1654
1852
  trigger('host', [
1655
1853
  transition(':enter', [
@@ -1669,7 +1867,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
1669
1867
  ]),
1670
1868
  ]),
1671
1869
  ], template: "<div class=\"content\">\n <mat-icon>file_upload</mat-icon>\n <div class=\"file\">{{ file.name }}</div>\n</div>\n\n<div class=\"progress-container\">\n <div class=\"progress-value\" [style.width]=\"progress + '%'\"></div>\n</div>\n" }]
1672
- }], ctorParameters: () => [{ type: i1$4.HttpClient }], propDecorators: { host: [{
1870
+ }], ctorParameters: () => [{ type: i1$5.HttpClient }], propDecorators: { host: [{
1673
1871
  type: HostBinding,
1674
1872
  args: ['@host']
1675
1873
  }], className: [{
@@ -1922,13 +2120,13 @@ class NgxHelperSafePipe {
1922
2120
  return this.domSanitizer.bypassSecurityTrustHtml(value);
1923
2121
  }
1924
2122
  }
1925
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperSafePipe, deps: [{ token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
2123
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperSafePipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1926
2124
  static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperSafePipe, isStandalone: true, name: "ngxHelperSafe" });
1927
2125
  }
1928
2126
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgxHelperSafePipe, decorators: [{
1929
2127
  type: Pipe,
1930
2128
  args: [{ name: 'ngxHelperSafe' }]
1931
- }], ctorParameters: () => [{ type: i1$3.DomSanitizer }] });
2129
+ }], ctorParameters: () => [{ type: i1$4.DomSanitizer }] });
1932
2130
 
1933
2131
  /*
1934
2132
  * Public API Surface of ngx-helper-m3
@@ -1938,5 +2136,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
1938
2136
  * Generated bundle index. Do not edit.
1939
2137
  */
1940
2138
 
1941
- export { NGX_HELPER_BOX_DATA, NGX_HELPER_CONFIG, NGX_HELPER_CONTAINER_CLOSE, NGX_HELPER_CONTAINER_DATA, NGX_HELPER_CONTAINER_TYPE, NGX_HELPER_PAGE_GROUP_DATA, NGX_HELPER_PAGE_GROUP_DATA_CHANGE, NGX_HELPER_PAGE_GROUP_ITEM, NgxHelperBankCardPipe, NgxHelperBoxComponent, NgxHelperCardComponent, NgxHelperConfirmService, NgxHelperContainerService, NgxHelperDatePipe, NgxHelperDurationPipe, NgxHelperFileSizePipe, NgxHelperHttpService, NgxHelperLoaderComponent, NgxHelperMobilePipe, NgxHelperMultiLinePipe, NgxHelperNumberPipe, NgxHelperPageGroupComponent, NgxHelperPeriodPipe, NgxHelperPricePipe, NgxHelperProgressComponent, NgxHelperSafePipe, NgxHelperSectionColumnComponent, NgxHelperSectionComponent, NgxHelperStickyDirective, NgxHelperToastService, NgxHelperValueBoxComponent, NgxHelperValueListComponent, NgxHelperValuePipe, NgxHelperVolumePipe, NgxHelperWeightPipe, provideNgxHelperConfig };
2139
+ export { NGX_HELPER_BOX_DATA, NGX_HELPER_CONFIG, NGX_HELPER_CONTAINER_CLOSE, NGX_HELPER_CONTAINER_DATA, NGX_HELPER_CONTAINER_TYPE, NGX_HELPER_PAGE_GROUP_DATA, NGX_HELPER_PAGE_GROUP_DATA_CHANGE, NGX_HELPER_PAGE_GROUP_ITEM, NgxHelperBankCardPipe, NgxHelperBoxComponent, NgxHelperCardComponent, NgxHelperConfirmService, NgxHelperContainerService, NgxHelperCoordinatesService, NgxHelperDatePipe, NgxHelperDurationPipe, NgxHelperFileSizePipe, NgxHelperHttpService, NgxHelperLoaderComponent, NgxHelperMobilePipe, NgxHelperMultiLinePipe, NgxHelperNumberPipe, NgxHelperPageGroupComponent, NgxHelperPeriodPipe, NgxHelperPricePipe, NgxHelperProgressComponent, NgxHelperSafePipe, NgxHelperSectionColumnComponent, NgxHelperSectionComponent, NgxHelperStickyDirective, NgxHelperToastService, NgxHelperValueBoxComponent, NgxHelperValueListComponent, NgxHelperValuePipe, NgxHelperVolumePipe, NgxHelperWeightPipe, provideNgxHelperConfig };
1942
2140
  //# sourceMappingURL=webilix-ngx-helper-m3.mjs.map