cmat 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/adapter/index.d.ts +8 -9
- package/components/breadcrumb/index.d.ts +2 -4
- package/components/carousel/index.d.ts +3 -5
- package/components/cascade/index.d.ts +6 -7
- package/components/chip-input/index.d.ts +2 -2
- package/components/custom-formly/index.d.ts +41 -49
- package/components/date-range/index.d.ts +5 -6
- package/components/drawer/index.d.ts +30 -34
- package/components/fullscreen/index.d.ts +1 -2
- package/components/highlight/index.d.ts +12 -14
- package/components/image-viewer/index.d.ts +4 -5
- package/components/json-editor/index.d.ts +2 -3
- package/components/knob-input/index.d.ts +8 -8
- package/components/material-color-picker/index.d.ts +3 -3
- package/components/material-datetimepicker/index.d.ts +89 -93
- package/components/navigation/index.d.ts +82 -88
- package/components/opt-input/index.d.ts +6 -6
- package/components/pagination/index.d.ts +6 -9
- package/components/popover/index.d.ts +13 -16
- package/components/progress-bar/index.d.ts +3 -5
- package/components/rating/index.d.ts +5 -5
- package/components/select-search/index.d.ts +16 -17
- package/components/select-table/index.d.ts +6 -6
- package/components/select-tree/index.d.ts +7 -6
- package/components/speed-dial/index.d.ts +2 -3
- package/components/timeline/index.d.ts +2 -3
- package/components/toast/index.d.ts +14 -16
- package/components/transfer-picker/index.d.ts +43 -44
- package/components/treetable/index.d.ts +2 -3
- package/components/upload/index.d.ts +23 -27
- package/directives/animate-on-scroll/index.d.ts +4 -19
- package/directives/arrow-cursor/index.d.ts +2 -4
- package/directives/autofocus/index.d.ts +2 -2
- package/directives/data-exporter/index.d.ts +2 -15
- package/directives/digit-only/index.d.ts +4 -4
- package/directives/equal-validator/index.d.ts +1 -2
- package/fesm2022/cmat-components-adapter.mjs +22 -39
- package/fesm2022/cmat-components-adapter.mjs.map +1 -1
- package/fesm2022/cmat-components-breadcrumb.mjs +19 -21
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cmat-components-card.mjs +3 -3
- package/fesm2022/cmat-components-carousel.mjs +112 -127
- package/fesm2022/cmat-components-carousel.mjs.map +1 -1
- package/fesm2022/cmat-components-cascade.mjs +61 -73
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs +14 -18
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +167 -169
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs +17 -17
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +17 -19
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-fullscreen.mjs +7 -10
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
- package/fesm2022/cmat-components-highlight.mjs +14 -14
- package/fesm2022/cmat-components-highlight.mjs.map +1 -1
- package/fesm2022/cmat-components-image-viewer.mjs +9 -12
- package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
- package/fesm2022/cmat-components-json-editor.mjs +7 -7
- package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-knob-input.mjs +12 -19
- package/fesm2022/cmat-components-knob-input.mjs.map +1 -1
- package/fesm2022/cmat-components-masonry.mjs +3 -3
- package/fesm2022/cmat-components-material-color-picker.mjs +8 -7
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +166 -216
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +108 -112
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-opt-input.mjs +13 -20
- package/fesm2022/cmat-components-opt-input.mjs.map +1 -1
- package/fesm2022/cmat-components-org-chart.mjs +9 -9
- package/fesm2022/cmat-components-pagination.mjs +32 -34
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +9 -9
- package/fesm2022/cmat-components-popover.mjs +27 -32
- package/fesm2022/cmat-components-popover.mjs.map +1 -1
- package/fesm2022/cmat-components-progress-bar.mjs +10 -10
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
- package/fesm2022/cmat-components-rating.mjs +10 -14
- package/fesm2022/cmat-components-rating.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs +30 -53
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-table.mjs +28 -33
- package/fesm2022/cmat-components-select-table.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs +55 -61
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-speed-dial.mjs +13 -13
- package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
- package/fesm2022/cmat-components-timeline.mjs +18 -20
- package/fesm2022/cmat-components-timeline.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +16 -16
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +47 -47
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-treetable.mjs +11 -12
- package/fesm2022/cmat-components-treetable.mjs.map +1 -1
- package/fesm2022/cmat-components-upload.mjs +32 -33
- package/fesm2022/cmat-components-upload.mjs.map +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +13 -14
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/cmat-directives-arrow-cursor.mjs +11 -14
- package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -1
- package/fesm2022/cmat-directives-autofocus.mjs +8 -9
- package/fesm2022/cmat-directives-autofocus.mjs.map +1 -1
- package/fesm2022/cmat-directives-data-exporter.mjs +28 -28
- package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -1
- package/fesm2022/cmat-directives-debounce.mjs +11 -13
- package/fesm2022/cmat-directives-debounce.mjs.map +1 -1
- package/fesm2022/cmat-directives-digit-only.mjs +17 -17
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
- package/fesm2022/cmat-directives-equal-validator.mjs +9 -16
- package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -1
- package/fesm2022/cmat-lib-mock-api.mjs +11 -14
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
- package/fesm2022/cmat-pipes-bytes.mjs +4 -5
- package/fesm2022/cmat-pipes-bytes.mjs.map +1 -1
- package/fesm2022/cmat-pipes-date-format.mjs +4 -5
- package/fesm2022/cmat-pipes-date-format.mjs.map +1 -1
- package/fesm2022/cmat-pipes-find-by-key.mjs +4 -5
- package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -1
- package/fesm2022/cmat-pipes-group-by.mjs +4 -5
- package/fesm2022/cmat-pipes-group-by.mjs.map +1 -1
- package/fesm2022/cmat-pipes-keys.mjs +4 -5
- package/fesm2022/cmat-pipes-keys.mjs.map +1 -1
- package/fesm2022/cmat-pipes-secure.mjs +13 -14
- package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
- package/fesm2022/cmat-pipes-uppercase.mjs +4 -5
- package/fesm2022/cmat-pipes-uppercase.mjs.map +1 -1
- package/fesm2022/cmat-services-alert.mjs +3 -3
- package/fesm2022/cmat-services-config.mjs +10 -12
- package/fesm2022/cmat-services-config.mjs.map +1 -1
- package/fesm2022/cmat-services-confirmation.mjs +17 -20
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
- package/fesm2022/cmat-services-data.mjs +10 -11
- package/fesm2022/cmat-services-data.mjs.map +1 -1
- package/fesm2022/cmat-services-export-as.mjs +3 -3
- package/fesm2022/cmat-services-loading.mjs +14 -14
- package/fesm2022/cmat-services-loading.mjs.map +1 -1
- package/fesm2022/cmat-services-local-storage.mjs +3 -3
- package/fesm2022/cmat-services-media-watcher.mjs +10 -10
- package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
- package/fesm2022/cmat-services-platform.mjs +8 -8
- package/fesm2022/cmat-services-platform.mjs.map +1 -1
- package/fesm2022/cmat-services-splash-screen.mjs +9 -13
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
- package/fesm2022/cmat-services-title.mjs +10 -11
- package/fesm2022/cmat-services-title.mjs.map +1 -1
- package/fesm2022/cmat-services-translation.mjs +8 -8
- package/fesm2022/cmat-services-translation.mjs.map +1 -1
- package/fesm2022/cmat-services-utils.mjs +3 -3
- package/lib/mock-api/index.d.ts +0 -1
- package/package.json +52 -52
- package/pipes/secure/index.d.ts +2 -4
- package/services/config/index.d.ts +1 -1
- package/services/confirmation/index.d.ts +2 -4
- package/services/data/index.d.ts +1 -3
- package/services/loading/index.d.ts +3 -4
- package/services/media-watcher/index.d.ts +2 -3
- package/services/platform/index.d.ts +2 -3
- package/services/splash-screen/index.d.ts +1 -2
- package/services/title/index.d.ts +3 -5
- package/services/translation/index.d.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmat-services-media-watcher.mjs","sources":["../../../projects/cmat/services/media-watcher/media-watcher.service.ts","../../../projects/cmat/services/media-watcher/cmat-services-media-watcher.ts"],"sourcesContent":["import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';\r\nimport { Injectable, OnDestroy } from '@angular/core';\r\nimport { fromPairs } from 'lodash-es';\r\nimport { Observable, ReplaySubject, Subject } from 'rxjs';\r\nimport { map, switchMap, takeUntil } from 'rxjs/operators';\r\nimport { CmatConfigService } from 'cmat/services/config';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatMediaWatcherService implements OnDestroy {\r\n private _onMediaChange: ReplaySubject<{ matchingAliases: string[]; matchingQueries: any }> = new ReplaySubject<{ matchingAliases: string[]; matchingQueries: any }>(1);\r\n private _unsubscribeAll: Subject<void> = new Subject<void>();\r\n\r\n
|
|
1
|
+
{"version":3,"file":"cmat-services-media-watcher.mjs","sources":["../../../projects/cmat/services/media-watcher/media-watcher.service.ts","../../../projects/cmat/services/media-watcher/cmat-services-media-watcher.ts"],"sourcesContent":["import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';\r\nimport { Injectable, OnDestroy, inject } from '@angular/core';\r\nimport { fromPairs } from 'lodash-es';\r\nimport { Observable, ReplaySubject, Subject } from 'rxjs';\r\nimport { map, switchMap, takeUntil } from 'rxjs/operators';\r\nimport { CmatConfigService } from 'cmat/services/config';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatMediaWatcherService implements OnDestroy {\r\n private _breakpointObserver = inject(BreakpointObserver);\r\n private _cmatConfigService = inject(CmatConfigService);\r\n\r\n private _onMediaChange: ReplaySubject<{ matchingAliases: string[]; matchingQueries: any }> = new ReplaySubject<{ matchingAliases: string[]; matchingQueries: any }>(1);\r\n private _unsubscribeAll: Subject<void> = new Subject<void>();\r\n\r\n \r\n\r\n constructor() {\r\n this._cmatConfigService.config$.pipe(\r\n takeUntil(this._unsubscribeAll),\r\n map(config => fromPairs(Object.entries(config.screens).map(([alias, screen]) => ([alias, `(min-width: ${screen as string})`])))),\r\n switchMap(screens => this._breakpointObserver.observe(Object.values(screens)).pipe(\r\n map((state) => {\r\n // Prepare the observable values and set their defaults\r\n const matchingAliases: string[] = [];\r\n const matchingQueries: any = {};\r\n\r\n // Get the matching breakpoints and use them to fill the subject\r\n const matchingBreakpoints = Object.entries(state.breakpoints).filter(([, matches]) => matches) ?? [];\r\n for (const [query] of matchingBreakpoints) {\r\n // Find the alias of the matching query\r\n const matchingAlias = Object.entries(screens).find(([, q]) => q === query)?.[0];\r\n\r\n // Add the matching query to the observable values\r\n if (matchingAlias) {\r\n matchingAliases.push(matchingAlias);\r\n matchingQueries[matchingAlias] = query;\r\n }\r\n }\r\n\r\n // Execute the observable\r\n this._onMediaChange.next({\r\n matchingAliases,\r\n matchingQueries\r\n });\r\n })\r\n ))\r\n ).subscribe();\r\n }\r\n\r\n get onMediaChange$(): Observable<{ matchingAliases: string[]; matchingQueries: any }> {\r\n return this._onMediaChange.asObservable();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unsubscribeAll.next(void 0);\r\n this._unsubscribeAll.complete();\r\n }\r\n\r\n onMediaQueryChange$(query: string | string[]): Observable<BreakpointState> {\r\n return this._breakpointObserver.observe(query);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAUa,uBAAuB,CAAA;AAShC,IAAA,WAAA,GAAA;AARQ,QAAA,IAAA,CAAA,mBAAmB,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAChD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAE9C,QAAA,IAAA,CAAA,cAAc,GAAuE,IAAI,aAAa,CAAsD,CAAC,CAAC;AAC9J,QAAA,IAAA,CAAA,eAAe,GAAkB,IAAI,OAAO,EAAQ;AAKxD,QAAA,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAChC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,EAC/B,GAAG,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAe,YAAA,EAAA,MAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAChI,SAAS,CAAC,OAAO,IAAI,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAC9E,GAAG,CAAC,CAAC,KAAK,KAAI;;YAEV,MAAM,eAAe,GAAa,EAAE;YACpC,MAAM,eAAe,GAAQ,EAAE;;YAG/B,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE;AACpG,YAAA,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI,mBAAmB,EAAE;;gBAEvC,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC;;gBAG/E,IAAI,aAAa,EAAE;AACf,oBAAA,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC;AACnC,oBAAA,eAAe,CAAC,aAAa,CAAC,GAAG,KAAK;;;;AAK9C,YAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;gBACrB,eAAe;gBACf;AACH,aAAA,CAAC;AACN,SAAC,CAAC,CACL,CAAC,CACL,CAAC,SAAS,EAAE;;AAGjB,IAAA,IAAI,cAAc,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE;;IAG7C,WAAW,GAAA;QACP,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjC,QAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE;;AAGnC,IAAA,mBAAmB,CAAC,KAAwB,EAAA;QACxC,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC;;8GApDzC,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFpB,MAAM,EAAA,CAAA,CAAA;;2FAET,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { Platform } from '@angular/cdk/platform';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/cdk/platform';
|
|
3
|
+
import { inject, Injectable } from '@angular/core';
|
|
4
4
|
|
|
5
5
|
class CmatPlatformService {
|
|
6
|
-
constructor(
|
|
7
|
-
this._platform = _platform;
|
|
6
|
+
constructor() {
|
|
8
7
|
this.osName = 'os-unknown';
|
|
8
|
+
this._platform = inject(Platform);
|
|
9
9
|
// If the platform is not a browser, return immediately
|
|
10
10
|
if (!this._platform.isBrowser) {
|
|
11
11
|
return;
|
|
@@ -35,15 +35,15 @@ class CmatPlatformService {
|
|
|
35
35
|
this.osName = 'os-android';
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.
|
|
39
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPlatformService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
39
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPlatformService, providedIn: 'root' }); }
|
|
40
40
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPlatformService, decorators: [{
|
|
42
42
|
type: Injectable,
|
|
43
43
|
args: [{
|
|
44
44
|
providedIn: 'root'
|
|
45
45
|
}]
|
|
46
|
-
}], ctorParameters: () => [
|
|
46
|
+
}], ctorParameters: () => [] });
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmat-services-platform.mjs","sources":["../../../projects/cmat/services/platform/platform.service.ts","../../../projects/cmat/services/platform/cmat-services-platform.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatPlatformService {\r\n osName = 'os-unknown';\r\n\r\n
|
|
1
|
+
{"version":3,"file":"cmat-services-platform.mjs","sources":["../../../projects/cmat/services/platform/platform.service.ts","../../../projects/cmat/services/platform/cmat-services-platform.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\r\nimport { Injectable, inject } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatPlatformService {\r\n\r\n osName = 'os-unknown';\r\n\r\n private _platform = inject(Platform);\r\n constructor() {\r\n // If the platform is not a browser, return immediately\r\n if (!this._platform.isBrowser) {\r\n return;\r\n }\r\n\r\n // Windows\r\n if (navigator.userAgent.includes('Win')) {\r\n this.osName = 'os-windows';\r\n }\r\n\r\n // Mac OS\r\n if (navigator.userAgent.includes('Mac')) {\r\n this.osName = 'os-mac';\r\n }\r\n\r\n // Unix\r\n if (navigator.userAgent.includes('X11')) {\r\n this.osName = 'os-unix';\r\n }\r\n\r\n // Linux\r\n if (navigator.userAgent.includes('Linux')) {\r\n this.osName = 'os-linux';\r\n }\r\n\r\n // iOS\r\n if (this._platform.IOS) {\r\n this.osName = 'os-ios';\r\n }\r\n\r\n // Android\r\n if (this._platform.ANDROID) {\r\n this.osName = 'os-android';\r\n }\r\n }\r\n\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAMa,mBAAmB,CAAA;AAK5B,IAAA,WAAA,GAAA;QAHA,IAAM,CAAA,MAAA,GAAG,YAAY;AAEb,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;;AAGhC,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;YAC3B;;;QAIJ,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,YAAA,IAAI,CAAC,MAAM,GAAG,YAAY;;;QAI9B,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,YAAA,IAAI,CAAC,MAAM,GAAG,QAAQ;;;QAI1B,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,YAAA,IAAI,CAAC,MAAM,GAAG,SAAS;;;QAI3B,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;AACvC,YAAA,IAAI,CAAC,MAAM,GAAG,UAAU;;;AAI5B,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE;AACpB,YAAA,IAAI,CAAC,MAAM,GAAG,QAAQ;;;AAI1B,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;AACxB,YAAA,IAAI,CAAC,MAAM,GAAG,YAAY;;;8GAtCzB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cAFhB,MAAM,EAAA,CAAA,CAAA;;2FAET,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { NavigationEnd } from '@angular/router';
|
|
2
|
+
import { inject, DOCUMENT, Injectable } from '@angular/core';
|
|
3
|
+
import { Router, NavigationEnd } from '@angular/router';
|
|
5
4
|
import { Subject } from 'rxjs';
|
|
6
5
|
import { takeUntil, filter, take } from 'rxjs/operators';
|
|
7
6
|
|
|
8
7
|
class CmatSplashScreenService {
|
|
9
|
-
constructor(
|
|
10
|
-
this._document =
|
|
11
|
-
this._router =
|
|
8
|
+
constructor() {
|
|
9
|
+
this._document = inject(DOCUMENT);
|
|
10
|
+
this._router = inject(Router);
|
|
12
11
|
this._unsubscribeAll = new Subject();
|
|
13
12
|
// Hide it on the first NavigationEnd event
|
|
14
13
|
this._router.events
|
|
@@ -27,18 +26,15 @@ class CmatSplashScreenService {
|
|
|
27
26
|
hide() {
|
|
28
27
|
this._document.body.classList.add('cmat-splash-screen-hidden');
|
|
29
28
|
}
|
|
30
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.
|
|
31
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatSplashScreenService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
30
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatSplashScreenService, providedIn: 'root' }); }
|
|
32
31
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatSplashScreenService, decorators: [{
|
|
34
33
|
type: Injectable,
|
|
35
34
|
args: [{
|
|
36
35
|
providedIn: 'root'
|
|
37
36
|
}]
|
|
38
|
-
}], ctorParameters: () => [
|
|
39
|
-
type: Inject,
|
|
40
|
-
args: [DOCUMENT]
|
|
41
|
-
}] }, { type: i1.Router }] });
|
|
37
|
+
}], ctorParameters: () => [] });
|
|
42
38
|
|
|
43
39
|
/**
|
|
44
40
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmat-services-splash-screen.mjs","sources":["../../../projects/cmat/services/splash-screen/splash-screen.service.ts","../../../projects/cmat/services/splash-screen/cmat-services-splash-screen.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"cmat-services-splash-screen.mjs","sources":["../../../projects/cmat/services/splash-screen/splash-screen.service.ts","../../../projects/cmat/services/splash-screen/cmat-services-splash-screen.ts"],"sourcesContent":["import { Injectable, OnDestroy, DOCUMENT, inject } from '@angular/core';\r\nimport { NavigationEnd, Router } from '@angular/router';\r\nimport { Subject } from 'rxjs';\r\nimport { filter, take, takeUntil } from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatSplashScreenService implements OnDestroy {\r\n private _document = inject(DOCUMENT);\r\n private _router = inject(Router);\r\n\r\n private _unsubscribeAll: Subject<void> = new Subject<void>();\r\n\r\n \r\n\r\n constructor() {\r\n // Hide it on the first NavigationEnd event\r\n this._router.events\r\n .pipe(\r\n takeUntil(this._unsubscribeAll),\r\n filter(event => event instanceof NavigationEnd),\r\n take(1)\r\n )\r\n .subscribe(() => {\r\n this.hide();\r\n });\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unsubscribeAll.next(void 0);\r\n this._unsubscribeAll.complete();\r\n }\r\n\r\n show(): void {\r\n this._document.body.classList.remove('cmat-splash-screen-hidden');\r\n }\r\n\r\n hide(): void {\r\n this._document.body.classList.add('cmat-splash-screen-hidden');\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAQa,uBAAuB,CAAA;AAQhC,IAAA,WAAA,GAAA;AAPQ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;AAExB,QAAA,IAAA,CAAA,eAAe,GAAkB,IAAI,OAAO,EAAQ;;QAMxD,IAAI,CAAC,OAAO,CAAC;aACR,IAAI,CACD,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,EAC/B,MAAM,CAAC,KAAK,IAAI,KAAK,YAAY,aAAa,CAAC,EAC/C,IAAI,CAAC,CAAC,CAAC;aAEV,SAAS,CAAC,MAAK;YACZ,IAAI,CAAC,IAAI,EAAE;AACf,SAAC,CAAC;;IAGV,WAAW,GAAA;QACP,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjC,QAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE;;IAGnC,IAAI,GAAA;QACA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,2BAA2B,CAAC;;IAGrE,IAAI,GAAA;QACA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,2BAA2B,CAAC;;8GA/BzD,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFpB,MAAM,EAAA,CAAA,CAAA;;2FAET,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import { NavigationEnd } from '@angular/router';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { Title } from '@angular/platform-browser';
|
|
4
|
+
import { Router, NavigationEnd } from '@angular/router';
|
|
5
5
|
import { filter, map, mergeMap } from 'rxjs/operators';
|
|
6
6
|
import { CmatUtilsService } from 'cmat/services/utils';
|
|
7
|
-
import * as i1 from '@angular/platform-browser';
|
|
8
7
|
|
|
9
8
|
class CmatTitleService {
|
|
10
|
-
constructor(
|
|
11
|
-
this._titleService =
|
|
12
|
-
this._router =
|
|
9
|
+
constructor() {
|
|
10
|
+
this._titleService = inject(Title);
|
|
11
|
+
this._router = inject(Router);
|
|
13
12
|
this.sub = this._router.events.pipe(filter((event) => event instanceof NavigationEnd), map(() => this._router.routerState.root), map((route) => {
|
|
14
13
|
while (route.firstChild) {
|
|
15
14
|
route = route.firstChild;
|
|
@@ -35,15 +34,15 @@ class CmatTitleService {
|
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.
|
|
39
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatTitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
38
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatTitleService, providedIn: 'root' }); }
|
|
40
39
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatTitleService, decorators: [{
|
|
42
41
|
type: Injectable,
|
|
43
42
|
args: [{
|
|
44
43
|
providedIn: 'root'
|
|
45
44
|
}]
|
|
46
|
-
}], ctorParameters: () => [
|
|
45
|
+
}], ctorParameters: () => [] });
|
|
47
46
|
|
|
48
47
|
/**
|
|
49
48
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmat-services-title.mjs","sources":["../../../projects/cmat/services/title/title.service.ts","../../../projects/cmat/services/title/cmat-services-title.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { NavigationEnd, Router } from '@angular/router';\r\nimport { Subscription } from 'rxjs';\r\nimport { filter, map, mergeMap } from 'rxjs/operators';\r\nimport { CmatUtilsService } from 'cmat/services/utils';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatTitleService {\r\n sub: Subscription;\r\n appName: string;\r\n\r\n
|
|
1
|
+
{"version":3,"file":"cmat-services-title.mjs","sources":["../../../projects/cmat/services/title/title.service.ts","../../../projects/cmat/services/title/cmat-services-title.ts"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { NavigationEnd, Router } from '@angular/router';\r\nimport { Subscription } from 'rxjs';\r\nimport { filter, map, mergeMap } from 'rxjs/operators';\r\nimport { CmatUtilsService } from 'cmat/services/utils';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatTitleService {\r\n sub: Subscription;\r\n appName: string;\r\n\r\n\r\n private _titleService = inject(Title);\r\n private _router = inject(Router);\r\n\r\n constructor() {\r\n this.sub = this._router.events.pipe(\r\n filter((event: any) => event instanceof NavigationEnd),\r\n map(() => this._router.routerState.root),\r\n map((route) => {\r\n\r\n while (route.firstChild) {\r\n route = route.firstChild;\r\n }\r\n\r\n return route;\r\n }),\r\n\r\n mergeMap(route => route.data))\r\n .subscribe((data: Record<string, any>) => {\r\n let title = data['title'];\r\n\r\n if (title) {\r\n const fragment = this._router.url.split('#')[1];\r\n\r\n if (fragment) {\r\n title += ' | ' + CmatUtilsService.toTitleCase(fragment);\r\n }\r\n }\r\n\r\n if (title && this.appName) {\r\n title += ' - ' + this.appName;\r\n } else if (this.appName) {\r\n title = this.appName;\r\n }\r\n\r\n if (title) {\r\n this._titleService.setTitle(title);\r\n }\r\n });\r\n }\r\n\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAUa,gBAAgB,CAAA;AAQzB,IAAA,WAAA,GAAA;AAHQ,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC;AAC7B,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;AAG5B,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAC/B,MAAM,CAAC,CAAC,KAAU,KAAK,KAAK,YAAY,aAAa,CAAC,EACtD,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EACxC,GAAG,CAAC,CAAC,KAAK,KAAI;AAEV,YAAA,OAAO,KAAK,CAAC,UAAU,EAAE;AACrB,gBAAA,KAAK,GAAG,KAAK,CAAC,UAAU;;AAG5B,YAAA,OAAO,KAAK;AAChB,SAAC,CAAC,EAEF,QAAQ,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC;AAC5B,aAAA,SAAS,CAAC,CAAC,IAAyB,KAAI;AACrC,YAAA,IAAI,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;YAEzB,IAAI,KAAK,EAAE;AACP,gBAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAE/C,IAAI,QAAQ,EAAE;oBACV,KAAK,IAAI,KAAK,GAAG,gBAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC;;;AAI/D,YAAA,IAAI,KAAK,IAAI,IAAI,CAAC,OAAO,EAAE;AACvB,gBAAA,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,OAAO;;AAC1B,iBAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AACrB,gBAAA,KAAK,GAAG,IAAI,CAAC,OAAO;;YAGxB,IAAI,KAAK,EAAE;AACP,gBAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC;;AAE1C,SAAC,CAAC;;8GA1CD,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFb,MAAM,EAAA,CAAA,CAAA;;2FAET,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
4
|
import { Subject } from 'rxjs';
|
|
4
|
-
import * as i1 from '@ngx-translate/core';
|
|
5
5
|
|
|
6
6
|
class CmatTranslationService {
|
|
7
|
-
constructor(
|
|
8
|
-
this._translate =
|
|
7
|
+
constructor() {
|
|
8
|
+
this._translate = inject(TranslateService);
|
|
9
9
|
this._defaultLanguage = 'zh';
|
|
10
10
|
this._onLanguageChanged = new Subject();
|
|
11
11
|
this.setDefaultLanguage(this._defaultLanguage);
|
|
@@ -51,15 +51,15 @@ class CmatTranslationService {
|
|
|
51
51
|
getTranslationAsync(key, interpolateParams) {
|
|
52
52
|
return this._translate.get(key, interpolateParams);
|
|
53
53
|
}
|
|
54
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.
|
|
55
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.
|
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatTranslationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
55
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatTranslationService, providedIn: 'root' }); }
|
|
56
56
|
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatTranslationService, decorators: [{
|
|
58
58
|
type: Injectable,
|
|
59
59
|
args: [{
|
|
60
60
|
providedIn: 'root'
|
|
61
61
|
}]
|
|
62
|
-
}], ctorParameters: () => [
|
|
62
|
+
}], ctorParameters: () => [] });
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmat-services-translation.mjs","sources":["../../../projects/cmat/services/translation/translation.service.ts","../../../projects/cmat/services/translation/cmat-services-translation.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Observable, Subject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatTranslationService {\r\n\r\n private readonly _defaultLanguage = 'zh';\r\n\r\n private _onLanguageChanged = new Subject<string>();\r\n\r\n constructor(
|
|
1
|
+
{"version":3,"file":"cmat-services-translation.mjs","sources":["../../../projects/cmat/services/translation/translation.service.ts","../../../projects/cmat/services/translation/cmat-services-translation.ts"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Observable, Subject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatTranslationService {\r\n private _translate = inject(TranslateService);\r\n\r\n\r\n private readonly _defaultLanguage = 'zh';\r\n\r\n private _onLanguageChanged = new Subject<string>();\r\n\r\n \r\n\r\n constructor() {\r\n this.setDefaultLanguage(this._defaultLanguage);\r\n }\r\n\r\n get languageChanged$(): Observable<string> {\r\n return this._onLanguageChanged.asObservable();\r\n }\r\n\r\n addLanguages(lang: string[]): void {\r\n this._translate.addLangs(lang);\r\n }\r\n\r\n\r\n setDefaultLanguage(lang: string): void {\r\n this._translate.setDefaultLang(lang);\r\n }\r\n\r\n getDefaultLanguage(): string {\r\n return this._translate.defaultLang;\r\n }\r\n\r\n getBrowserLanguage(): string | void {\r\n return this._translate.getBrowserLang();\r\n }\r\n\r\n\r\n useBrowserLanguage(): string | void {\r\n const browserLang = this.getBrowserLanguage();\r\n\r\n if (browserLang && (/en|zh/.exec(browserLang))) {\r\n this.changeLanguage(browserLang);\r\n return browserLang;\r\n }\r\n return browserLang;\r\n }\r\n\r\n changeLanguage(language: string = 'zh'): string {\r\n if (!language) {\r\n language = this._translate.defaultLang;\r\n }\r\n\r\n if (language !== this._translate.currentLang) {\r\n setTimeout(() => {\r\n this._translate.use(language);\r\n this._onLanguageChanged.next(language);\r\n });\r\n }\r\n return language;\r\n }\r\n\r\n\r\n getTranslation(key: string | string[], interpolateParams?: object): any {\r\n return this._translate.instant(key, interpolateParams);\r\n }\r\n\r\n\r\n getTranslationAsync(key: string | string[], interpolateParams?: object): Observable<any> {\r\n return this._translate.get(key, interpolateParams);\r\n }\r\n}\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAOa,sBAAsB,CAAA;AAU/B,IAAA,WAAA,GAAA;AATQ,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAG5B,IAAgB,CAAA,gBAAA,GAAG,IAAI;AAEhC,QAAA,IAAA,CAAA,kBAAkB,GAAG,IAAI,OAAO,EAAU;AAK9C,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC;;AAGlD,IAAA,IAAI,gBAAgB,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE;;AAGjD,IAAA,YAAY,CAAC,IAAc,EAAA;AACvB,QAAA,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;;AAIlC,IAAA,kBAAkB,CAAC,IAAY,EAAA;AAC3B,QAAA,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC;;IAGxC,kBAAkB,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW;;IAGtC,kBAAkB,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE;;IAI3C,kBAAkB,GAAA;AACd,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE;QAE7C,IAAI,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE;AAC5C,YAAA,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;AAChC,YAAA,OAAO,WAAW;;AAEtB,QAAA,OAAO,WAAW;;IAGtB,cAAc,CAAC,WAAmB,IAAI,EAAA;QAClC,IAAI,CAAC,QAAQ,EAAE;AACX,YAAA,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW;;QAG1C,IAAI,QAAQ,KAAK,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE;YAC1C,UAAU,CAAC,MAAK;AACZ,gBAAA,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC7B,gBAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC1C,aAAC,CAAC;;AAEN,QAAA,OAAO,QAAQ;;IAInB,cAAc,CAAC,GAAsB,EAAE,iBAA0B,EAAA;QAC7D,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,iBAAiB,CAAC;;IAI1D,mBAAmB,CAAC,GAAsB,EAAE,iBAA0B,EAAA;QAClE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,iBAAiB,CAAC;;8GAnE7C,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cAFnB,MAAM,EAAA,CAAA,CAAA;;2FAET,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACND;;AAEG;;;;"}
|
|
@@ -456,10 +456,10 @@ class CmatUtilsService {
|
|
|
456
456
|
}
|
|
457
457
|
return id;
|
|
458
458
|
}
|
|
459
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.
|
|
460
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.
|
|
459
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
460
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatUtilsService, providedIn: 'root' }); }
|
|
461
461
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatUtilsService, decorators: [{
|
|
463
463
|
type: Injectable,
|
|
464
464
|
args: [{
|
|
465
465
|
providedIn: 'root'
|
package/lib/mock-api/index.d.ts
CHANGED
|
@@ -51,7 +51,6 @@ declare class CmatMockApiUtils {
|
|
|
51
51
|
declare class CmatMockApiInterceptor implements HttpInterceptor {
|
|
52
52
|
private _defaultDelay;
|
|
53
53
|
private _cmatMockApiService;
|
|
54
|
-
constructor(_defaultDelay: number, _cmatMockApiService: CmatMockApiService);
|
|
55
54
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
56
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatMockApiInterceptor, never>;
|
|
57
56
|
static ɵprov: i0.ɵɵInjectableDeclaration<CmatMockApiInterceptor>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Yu Tao",
|
|
6
6
|
"email": "916426364@qq.com"
|
|
@@ -61,6 +61,10 @@
|
|
|
61
61
|
"types": "./components/adapter/index.d.ts",
|
|
62
62
|
"default": "./fesm2022/cmat-components-adapter.mjs"
|
|
63
63
|
},
|
|
64
|
+
"./components/card": {
|
|
65
|
+
"types": "./components/card/index.d.ts",
|
|
66
|
+
"default": "./fesm2022/cmat-components-card.mjs"
|
|
67
|
+
},
|
|
64
68
|
"./components/breadcrumb": {
|
|
65
69
|
"types": "./components/breadcrumb/index.d.ts",
|
|
66
70
|
"default": "./fesm2022/cmat-components-breadcrumb.mjs"
|
|
@@ -69,14 +73,14 @@
|
|
|
69
73
|
"types": "./components/carousel/index.d.ts",
|
|
70
74
|
"default": "./fesm2022/cmat-components-carousel.mjs"
|
|
71
75
|
},
|
|
72
|
-
"./components/card": {
|
|
73
|
-
"types": "./components/card/index.d.ts",
|
|
74
|
-
"default": "./fesm2022/cmat-components-card.mjs"
|
|
75
|
-
},
|
|
76
76
|
"./components/cascade": {
|
|
77
77
|
"types": "./components/cascade/index.d.ts",
|
|
78
78
|
"default": "./fesm2022/cmat-components-cascade.mjs"
|
|
79
79
|
},
|
|
80
|
+
"./components/date-range": {
|
|
81
|
+
"types": "./components/date-range/index.d.ts",
|
|
82
|
+
"default": "./fesm2022/cmat-components-date-range.mjs"
|
|
83
|
+
},
|
|
80
84
|
"./components/chip-input": {
|
|
81
85
|
"types": "./components/chip-input/index.d.ts",
|
|
82
86
|
"default": "./fesm2022/cmat-components-chip-input.mjs"
|
|
@@ -85,10 +89,6 @@
|
|
|
85
89
|
"types": "./components/custom-formly/index.d.ts",
|
|
86
90
|
"default": "./fesm2022/cmat-components-custom-formly.mjs"
|
|
87
91
|
},
|
|
88
|
-
"./components/date-range": {
|
|
89
|
-
"types": "./components/date-range/index.d.ts",
|
|
90
|
-
"default": "./fesm2022/cmat-components-date-range.mjs"
|
|
91
|
-
},
|
|
92
92
|
"./components/drawer": {
|
|
93
93
|
"types": "./components/drawer/index.d.ts",
|
|
94
94
|
"default": "./fesm2022/cmat-components-drawer.mjs"
|
|
@@ -117,22 +117,18 @@
|
|
|
117
117
|
"types": "./components/masonry/index.d.ts",
|
|
118
118
|
"default": "./fesm2022/cmat-components-masonry.mjs"
|
|
119
119
|
},
|
|
120
|
-
"./components/material-color-picker": {
|
|
121
|
-
"types": "./components/material-color-picker/index.d.ts",
|
|
122
|
-
"default": "./fesm2022/cmat-components-material-color-picker.mjs"
|
|
123
|
-
},
|
|
124
120
|
"./components/material-datetimepicker": {
|
|
125
121
|
"types": "./components/material-datetimepicker/index.d.ts",
|
|
126
122
|
"default": "./fesm2022/cmat-components-material-datetimepicker.mjs"
|
|
127
123
|
},
|
|
124
|
+
"./components/material-color-picker": {
|
|
125
|
+
"types": "./components/material-color-picker/index.d.ts",
|
|
126
|
+
"default": "./fesm2022/cmat-components-material-color-picker.mjs"
|
|
127
|
+
},
|
|
128
128
|
"./components/navigation": {
|
|
129
129
|
"types": "./components/navigation/index.d.ts",
|
|
130
130
|
"default": "./fesm2022/cmat-components-navigation.mjs"
|
|
131
131
|
},
|
|
132
|
-
"./components/opt-input": {
|
|
133
|
-
"types": "./components/opt-input/index.d.ts",
|
|
134
|
-
"default": "./fesm2022/cmat-components-opt-input.mjs"
|
|
135
|
-
},
|
|
136
132
|
"./components/org-chart": {
|
|
137
133
|
"types": "./components/org-chart/index.d.ts",
|
|
138
134
|
"default": "./fesm2022/cmat-components-org-chart.mjs"
|
|
@@ -145,18 +141,22 @@
|
|
|
145
141
|
"types": "./components/password-strength/index.d.ts",
|
|
146
142
|
"default": "./fesm2022/cmat-components-password-strength.mjs"
|
|
147
143
|
},
|
|
144
|
+
"./components/opt-input": {
|
|
145
|
+
"types": "./components/opt-input/index.d.ts",
|
|
146
|
+
"default": "./fesm2022/cmat-components-opt-input.mjs"
|
|
147
|
+
},
|
|
148
148
|
"./components/popover": {
|
|
149
149
|
"types": "./components/popover/index.d.ts",
|
|
150
150
|
"default": "./fesm2022/cmat-components-popover.mjs"
|
|
151
151
|
},
|
|
152
|
-
"./components/progress-bar": {
|
|
153
|
-
"types": "./components/progress-bar/index.d.ts",
|
|
154
|
-
"default": "./fesm2022/cmat-components-progress-bar.mjs"
|
|
155
|
-
},
|
|
156
152
|
"./components/rating": {
|
|
157
153
|
"types": "./components/rating/index.d.ts",
|
|
158
154
|
"default": "./fesm2022/cmat-components-rating.mjs"
|
|
159
155
|
},
|
|
156
|
+
"./components/progress-bar": {
|
|
157
|
+
"types": "./components/progress-bar/index.d.ts",
|
|
158
|
+
"default": "./fesm2022/cmat-components-progress-bar.mjs"
|
|
159
|
+
},
|
|
160
160
|
"./components/select-search": {
|
|
161
161
|
"types": "./components/select-search/index.d.ts",
|
|
162
162
|
"default": "./fesm2022/cmat-components-select-search.mjs"
|
|
@@ -189,6 +189,10 @@
|
|
|
189
189
|
"types": "./components/treetable/index.d.ts",
|
|
190
190
|
"default": "./fesm2022/cmat-components-treetable.mjs"
|
|
191
191
|
},
|
|
192
|
+
"./directives/animate-on-scroll": {
|
|
193
|
+
"types": "./directives/animate-on-scroll/index.d.ts",
|
|
194
|
+
"default": "./fesm2022/cmat-directives-animate-on-scroll.mjs"
|
|
195
|
+
},
|
|
192
196
|
"./components/upload": {
|
|
193
197
|
"types": "./components/upload/index.d.ts",
|
|
194
198
|
"default": "./fesm2022/cmat-components-upload.mjs"
|
|
@@ -197,10 +201,6 @@
|
|
|
197
201
|
"types": "./components/x6-angular-shape/index.d.ts",
|
|
198
202
|
"default": "./fesm2022/cmat-components-x6-angular-shape.mjs"
|
|
199
203
|
},
|
|
200
|
-
"./directives/animate-on-scroll": {
|
|
201
|
-
"types": "./directives/animate-on-scroll/index.d.ts",
|
|
202
|
-
"default": "./fesm2022/cmat-directives-animate-on-scroll.mjs"
|
|
203
|
-
},
|
|
204
204
|
"./directives/arrow-cursor": {
|
|
205
205
|
"types": "./directives/arrow-cursor/index.d.ts",
|
|
206
206
|
"default": "./fesm2022/cmat-directives-arrow-cursor.mjs"
|
|
@@ -209,38 +209,38 @@
|
|
|
209
209
|
"types": "./directives/autofocus/index.d.ts",
|
|
210
210
|
"default": "./fesm2022/cmat-directives-autofocus.mjs"
|
|
211
211
|
},
|
|
212
|
-
"./directives/data-exporter": {
|
|
213
|
-
"types": "./directives/data-exporter/index.d.ts",
|
|
214
|
-
"default": "./fesm2022/cmat-directives-data-exporter.mjs"
|
|
215
|
-
},
|
|
216
212
|
"./directives/debounce": {
|
|
217
213
|
"types": "./directives/debounce/index.d.ts",
|
|
218
214
|
"default": "./fesm2022/cmat-directives-debounce.mjs"
|
|
219
215
|
},
|
|
216
|
+
"./directives/data-exporter": {
|
|
217
|
+
"types": "./directives/data-exporter/index.d.ts",
|
|
218
|
+
"default": "./fesm2022/cmat-directives-data-exporter.mjs"
|
|
219
|
+
},
|
|
220
220
|
"./directives/digit-only": {
|
|
221
221
|
"types": "./directives/digit-only/index.d.ts",
|
|
222
222
|
"default": "./fesm2022/cmat-directives-digit-only.mjs"
|
|
223
223
|
},
|
|
224
|
-
"./lib/mock-api": {
|
|
225
|
-
"types": "./lib/mock-api/index.d.ts",
|
|
226
|
-
"default": "./fesm2022/cmat-lib-mock-api.mjs"
|
|
227
|
-
},
|
|
228
224
|
"./directives/equal-validator": {
|
|
229
225
|
"types": "./directives/equal-validator/index.d.ts",
|
|
230
226
|
"default": "./fesm2022/cmat-directives-equal-validator.mjs"
|
|
231
227
|
},
|
|
228
|
+
"./lib/mock-api": {
|
|
229
|
+
"types": "./lib/mock-api/index.d.ts",
|
|
230
|
+
"default": "./fesm2022/cmat-lib-mock-api.mjs"
|
|
231
|
+
},
|
|
232
232
|
"./pipes/bytes": {
|
|
233
233
|
"types": "./pipes/bytes/index.d.ts",
|
|
234
234
|
"default": "./fesm2022/cmat-pipes-bytes.mjs"
|
|
235
235
|
},
|
|
236
|
-
"./pipes/find-by-key": {
|
|
237
|
-
"types": "./pipes/find-by-key/index.d.ts",
|
|
238
|
-
"default": "./fesm2022/cmat-pipes-find-by-key.mjs"
|
|
239
|
-
},
|
|
240
236
|
"./pipes/date-format": {
|
|
241
237
|
"types": "./pipes/date-format/index.d.ts",
|
|
242
238
|
"default": "./fesm2022/cmat-pipes-date-format.mjs"
|
|
243
239
|
},
|
|
240
|
+
"./pipes/find-by-key": {
|
|
241
|
+
"types": "./pipes/find-by-key/index.d.ts",
|
|
242
|
+
"default": "./fesm2022/cmat-pipes-find-by-key.mjs"
|
|
243
|
+
},
|
|
244
244
|
"./pipes/group-by": {
|
|
245
245
|
"types": "./pipes/group-by/index.d.ts",
|
|
246
246
|
"default": "./fesm2022/cmat-pipes-group-by.mjs"
|
|
@@ -249,26 +249,26 @@
|
|
|
249
249
|
"types": "./pipes/keys/index.d.ts",
|
|
250
250
|
"default": "./fesm2022/cmat-pipes-keys.mjs"
|
|
251
251
|
},
|
|
252
|
-
"./pipes/secure": {
|
|
253
|
-
"types": "./pipes/secure/index.d.ts",
|
|
254
|
-
"default": "./fesm2022/cmat-pipes-secure.mjs"
|
|
255
|
-
},
|
|
256
252
|
"./services/alert": {
|
|
257
253
|
"types": "./services/alert/index.d.ts",
|
|
258
254
|
"default": "./fesm2022/cmat-services-alert.mjs"
|
|
259
255
|
},
|
|
256
|
+
"./pipes/secure": {
|
|
257
|
+
"types": "./pipes/secure/index.d.ts",
|
|
258
|
+
"default": "./fesm2022/cmat-pipes-secure.mjs"
|
|
259
|
+
},
|
|
260
260
|
"./pipes/uppercase": {
|
|
261
261
|
"types": "./pipes/uppercase/index.d.ts",
|
|
262
262
|
"default": "./fesm2022/cmat-pipes-uppercase.mjs"
|
|
263
263
|
},
|
|
264
|
-
"./services/config": {
|
|
265
|
-
"types": "./services/config/index.d.ts",
|
|
266
|
-
"default": "./fesm2022/cmat-services-config.mjs"
|
|
267
|
-
},
|
|
268
264
|
"./services/confirmation": {
|
|
269
265
|
"types": "./services/confirmation/index.d.ts",
|
|
270
266
|
"default": "./fesm2022/cmat-services-confirmation.mjs"
|
|
271
267
|
},
|
|
268
|
+
"./services/config": {
|
|
269
|
+
"types": "./services/config/index.d.ts",
|
|
270
|
+
"default": "./fesm2022/cmat-services-config.mjs"
|
|
271
|
+
},
|
|
272
272
|
"./services/data": {
|
|
273
273
|
"types": "./services/data/index.d.ts",
|
|
274
274
|
"default": "./fesm2022/cmat-services-data.mjs"
|
|
@@ -289,22 +289,22 @@
|
|
|
289
289
|
"types": "./services/media-watcher/index.d.ts",
|
|
290
290
|
"default": "./fesm2022/cmat-services-media-watcher.mjs"
|
|
291
291
|
},
|
|
292
|
-
"./services/platform": {
|
|
293
|
-
"types": "./services/platform/index.d.ts",
|
|
294
|
-
"default": "./fesm2022/cmat-services-platform.mjs"
|
|
295
|
-
},
|
|
296
292
|
"./services/splash-screen": {
|
|
297
293
|
"types": "./services/splash-screen/index.d.ts",
|
|
298
294
|
"default": "./fesm2022/cmat-services-splash-screen.mjs"
|
|
299
295
|
},
|
|
300
|
-
"./services/
|
|
301
|
-
"types": "./services/
|
|
302
|
-
"default": "./fesm2022/cmat-services-
|
|
296
|
+
"./services/platform": {
|
|
297
|
+
"types": "./services/platform/index.d.ts",
|
|
298
|
+
"default": "./fesm2022/cmat-services-platform.mjs"
|
|
303
299
|
},
|
|
304
300
|
"./services/translation": {
|
|
305
301
|
"types": "./services/translation/index.d.ts",
|
|
306
302
|
"default": "./fesm2022/cmat-services-translation.mjs"
|
|
307
303
|
},
|
|
304
|
+
"./services/title": {
|
|
305
|
+
"types": "./services/title/index.d.ts",
|
|
306
|
+
"default": "./fesm2022/cmat-services-title.mjs"
|
|
307
|
+
},
|
|
308
308
|
"./services/utils": {
|
|
309
309
|
"types": "./services/utils/index.d.ts",
|
|
310
310
|
"default": "./fesm2022/cmat-services-utils.mjs"
|
package/pipes/secure/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
2
|
import { PipeTransform, OnDestroy } from '@angular/core';
|
|
4
|
-
import {
|
|
3
|
+
import { SafeUrl } from '@angular/platform-browser';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
|
-
import { CmatUrlStateConfigService } from 'cmat/services/config';
|
|
7
5
|
|
|
8
6
|
declare class CmatSecurePipe implements PipeTransform, OnDestroy {
|
|
9
7
|
private _http;
|
|
@@ -11,7 +9,7 @@ declare class CmatSecurePipe implements PipeTransform, OnDestroy {
|
|
|
11
9
|
private _urlStateConfigService;
|
|
12
10
|
private _config;
|
|
13
11
|
private _unsubscribeAll;
|
|
14
|
-
constructor(
|
|
12
|
+
constructor();
|
|
15
13
|
ngOnDestroy(): void;
|
|
16
14
|
transform(fileId: string): Observable<SafeUrl>;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSecurePipe, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MatDialogRef
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
|
|
4
4
|
interface CmatConfirmationConfig {
|
|
@@ -25,8 +25,7 @@ interface CmatConfirmationConfig {
|
|
|
25
25
|
|
|
26
26
|
declare class CmatConfirmationDialogComponent {
|
|
27
27
|
data: CmatConfirmationConfig;
|
|
28
|
-
matDialogRef: MatDialogRef<CmatConfirmationDialogComponent>;
|
|
29
|
-
constructor(data: CmatConfirmationConfig, matDialogRef: MatDialogRef<CmatConfirmationDialogComponent>);
|
|
28
|
+
matDialogRef: MatDialogRef<CmatConfirmationDialogComponent, any>;
|
|
30
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatConfirmationDialogComponent, never>;
|
|
31
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatConfirmationDialogComponent, "cmat-confirmation-dialog", never, {}, {}, never, never, true, never>;
|
|
32
31
|
}
|
|
@@ -34,7 +33,6 @@ declare class CmatConfirmationDialogComponent {
|
|
|
34
33
|
declare class CmatConfirmationService {
|
|
35
34
|
private _matDialog;
|
|
36
35
|
private _defaultConfig;
|
|
37
|
-
constructor(_matDialog: MatDialog);
|
|
38
36
|
open(config?: CmatConfirmationConfig): MatDialogRef<CmatConfirmationDialogComponent>;
|
|
39
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatConfirmationService, never>;
|
|
40
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<CmatConfirmationService>;
|
package/services/data/index.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
2
|
import { OnDestroy } from '@angular/core';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { CmatUrlStateConfigService } from 'cmat/services/config';
|
|
6
4
|
|
|
7
5
|
declare class CmatDataService implements OnDestroy {
|
|
8
6
|
private _http;
|
|
9
7
|
private _urlStateConfigService;
|
|
10
8
|
private _enableDataProtect;
|
|
11
9
|
private _unsubscribeAll;
|
|
12
|
-
constructor(
|
|
10
|
+
constructor();
|
|
13
11
|
ngOnDestroy(): void;
|
|
14
12
|
get<T>(url: string, params?: {}, auth?: boolean): Observable<T>;
|
|
15
13
|
post<T>(url: string, data: any, params?: {}, auth?: boolean, idempotent?: boolean): Observable<T>;
|