ngx-st-tables 17.0.32 → 17.0.34
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 +11 -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 +26 -0
- package/fesm2022/ngx-st-tables.mjs +106 -43
- 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 +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Injectable, signal } from '@angular/core';
|
|
2
|
+
import { DEFAULT_TRANSLATIONS } from '../constants/default-translations';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class StTablesTranslationsService {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.translations = signal(DEFAULT_TRANSLATIONS);
|
|
7
|
+
}
|
|
8
|
+
setTranslations(translations) {
|
|
9
|
+
this.translations.set({
|
|
10
|
+
...DEFAULT_TRANSLATIONS,
|
|
11
|
+
...translations,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
getTranslations() {
|
|
15
|
+
return this.translations;
|
|
16
|
+
}
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StTablesTranslationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StTablesTranslationsService, providedIn: 'root' }); }
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StTablesTranslationsService, decorators: [{
|
|
21
|
+
type: Injectable,
|
|
22
|
+
args: [{
|
|
23
|
+
providedIn: 'root',
|
|
24
|
+
}]
|
|
25
|
+
}] });
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3QtdGFibGVzLXRyYW5zbGF0aW9ucy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LXRhYmxlcy9zcmMvbGliL3NlcnZpY2VzL3N0LXRhYmxlcy10cmFuc2xhdGlvbnMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVuRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQzs7QUFLekUsTUFBTSxPQUFPLDJCQUEyQjtJQUh4QztRQUltQixpQkFBWSxHQUMzQixNQUFNLENBQTRCLG9CQUFvQixDQUFDLENBQUM7S0FZM0Q7SUFWQyxlQUFlLENBQUMsWUFBZ0Q7UUFDOUQsSUFBSSxDQ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