ngx-st-tables 17.0.32 → 17.0.33
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/esm2022/lib/components/material-table/material-table-caption/material-table-caption.component.mjs +18 -16
- package/esm2022/lib/components/material-table/material-table-caption/material-table-filter-dialog/material-table-filter-dialog.component.mjs +17 -15
- package/esm2022/lib/components/material-table/material-table-caption/material-table-order-column-dialog/material-table-order-column-dialog.component.mjs +12 -9
- package/esm2022/lib/components/material-table/material-table.component.mjs +21 -19
- package/esm2022/lib/constants/default-translations.mjs +25 -0
- package/esm2022/lib/models/st-tables-translations.model.mjs +2 -0
- package/esm2022/lib/ngx-st-tables.module.mjs +12 -1
- package/esm2022/lib/services/st-tables-translations.service.mjs +28 -0
- package/fesm2022/ngx-st-tables.mjs +106 -41
- package/fesm2022/ngx-st-tables.mjs.map +1 -1
- package/lib/components/material-table/material-table-caption/material-table-caption.component.d.ts +3 -1
- package/lib/components/material-table/material-table-caption/material-table-filter-dialog/material-table-filter-dialog.component.d.ts +3 -1
- package/lib/components/material-table/material-table-caption/material-table-order-column-dialog/material-table-order-column-dialog.component.d.ts +3 -1
- package/lib/components/material-table/material-table.component.d.ts +3 -1
- package/lib/constants/default-translations.d.ts +2 -0
- package/lib/models/st-tables-translations.model.d.ts +24 -0
- package/lib/ngx-st-tables.module.d.ts +5 -0
- package/lib/services/st-tables-translations.service.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { DEFAULT_TRANSLATIONS } from '../constants/default-translations';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class StTablesTranslationsService {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.translations = new BehaviorSubject(DEFAULT_TRANSLATIONS);
|
|
8
|
+
this.translations$ = this.translations.asObservable();
|
|
9
|
+
}
|
|
10
|
+
setTranslations(translations) {
|
|
11
|
+
this.translations.next({
|
|
12
|
+
...DEFAULT_TRANSLATIONS,
|
|
13
|
+
...translations,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
getTranslations() {
|
|
17
|
+
return this.translations.value;
|
|
18
|
+
}
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StTablesTranslationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
20
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StTablesTranslationsService, providedIn: 'root' }); }
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StTablesTranslationsService, decorators: [{
|
|
23
|
+
type: Injectable,
|
|
24
|
+
args: [{
|
|
25
|
+
providedIn: 'root',
|
|
26
|
+
}]
|
|
27
|
+
}] });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3QtdGFibGVzLXRyYW5zbGF0aW9ucy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LXRhYmxlcy9zcmMvbGliL3NlcnZpY2VzL3N0LXRhYmxlcy10cmFuc2xhdGlvbnMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDdkMsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7O0FBS3pFLE1BQU0sT0FBTywyQkFBMkI7SUFIeEM7UUFJVSxpQ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