@rxap/ngx-material-localize 21.0.1 → 22.0.0-dev.0

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/compodoc/changelog.html +6 -0
  3. package/compodoc/dependencies.html +7 -7
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +55 -55
  7. package/docs/html/classes/I18nMatDatepickerIntl.html +18 -18
  8. package/docs/html/classes/I18nMatPaginatorIntl.html +8 -8
  9. package/docs/html/classes/I18nMatStepperIntl.html +5 -5
  10. package/docs/html/classes/LanguageSelectorComponent.html +2 -2
  11. package/docs/html/classes/LanguageSelectorMenuItemComponent.html +2 -2
  12. package/docs/html/functions/ProvideI18nMatDatepickerIntl.html +1 -1
  13. package/docs/html/functions/ProvideI18nMatIntl.html +1 -1
  14. package/docs/html/functions/ProvideI18nMatPaginatorIntl.html +1 -1
  15. package/docs/html/functions/ProvideI18nMatStepperIntl.html +1 -1
  16. package/docs/html/index.html +2 -2
  17. package/docs/html/modules.html +1 -1
  18. package/docs/html/variables/I18N_MAT_DATEPICKER_INTL_PROVIDER.html +1 -1
  19. package/docs/html/variables/I18N_MAT_PAGINATOR_INTL_PROVIDER.html +1 -1
  20. package/docs/html/variables/I18N_MAT_STEPPER_INTL_PROVIDER.html +1 -1
  21. package/docs/markdown/README.md +1 -1
  22. package/docs/markdown/classes/I18nMatDatepickerIntl.md +19 -19
  23. package/docs/markdown/classes/I18nMatPaginatorIntl.md +9 -9
  24. package/docs/markdown/classes/I18nMatStepperIntl.md +6 -6
  25. package/docs/markdown/classes/LanguageSelectorComponent.md +7 -7
  26. package/docs/markdown/classes/LanguageSelectorMenuItemComponent.md +2 -2
  27. package/docs/markdown/functions/ProvideI18nMatDatepickerIntl.md +2 -2
  28. package/docs/markdown/functions/ProvideI18nMatIntl.md +2 -2
  29. package/docs/markdown/functions/ProvideI18nMatPaginatorIntl.md +2 -2
  30. package/docs/markdown/functions/ProvideI18nMatStepperIntl.md +2 -2
  31. package/docs/markdown/globals.md +2 -2
  32. package/docs/markdown/variables/I18N_MAT_DATEPICKER_INTL_PROVIDER.md +2 -2
  33. package/docs/markdown/variables/I18N_MAT_PAGINATOR_INTL_PROVIDER.md +2 -2
  34. package/docs/markdown/variables/I18N_MAT_STEPPER_INTL_PROVIDER.md +2 -2
  35. package/docs/wiki/Class.I18nMatDatepickerIntl.md +18 -18
  36. package/docs/wiki/Class.I18nMatPaginatorIntl.md +8 -8
  37. package/docs/wiki/Class.I18nMatStepperIntl.md +5 -5
  38. package/docs/wiki/Class.LanguageSelectorComponent.md +6 -6
  39. package/docs/wiki/Class.LanguageSelectorMenuItemComponent.md +1 -1
  40. package/docs/wiki/Function.ProvideI18nMatDatepickerIntl.md +1 -1
  41. package/docs/wiki/Function.ProvideI18nMatIntl.md +1 -1
  42. package/docs/wiki/Function.ProvideI18nMatPaginatorIntl.md +1 -1
  43. package/docs/wiki/Function.ProvideI18nMatStepperIntl.md +1 -1
  44. package/docs/wiki/Variable.I18N_MAT_DATEPICKER_INTL_PROVIDER.md +1 -1
  45. package/docs/wiki/Variable.I18N_MAT_PAGINATOR_INTL_PROVIDER.md +1 -1
  46. package/docs/wiki/Variable.I18N_MAT_STEPPER_INTL_PROVIDER.md +1 -1
  47. package/docs/wiki/globals.md +1 -1
  48. package/fesm2022/rxap-ngx-material-localize.mjs +322 -106
  49. package/fesm2022/rxap-ngx-material-localize.mjs.map +1 -1
  50. package/package.json +25 -25
  51. package/types/rxap-ngx-material-localize.d.ts +111 -111
@@ -1,35 +1,177 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, computed, input, ChangeDetectionStrategy, Component, Injectable } from '@angular/core';
3
- import { MatMenuItem } from '@angular/material/menu';
4
- import { __decorate } from 'tslib';
5
- import { KeyValuePipe } from '@angular/common';
6
- import * as i1 from '@angular/forms';
7
- import { FormsModule } from '@angular/forms';
8
- import { MatFormField, MatLabel, MatHint } from '@angular/material/form-field';
9
- import { MatSelect, MatOption } from '@angular/material/select';
10
- import { StopPropagationDirective } from '@rxap/directives';
11
- import { LanguageSelectorService } from '@rxap/ngx-localize';
12
- import { MatDatepickerIntl } from '@angular/material/datepicker';
13
- import { Subject } from 'rxjs';
14
- import { MatPaginatorIntl } from '@angular/material/paginator';
15
- import { MatStepperIntl } from '@angular/material/stepper';
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Injectable, computed, inject, input } from "@angular/core";
3
+ import { MatMenuItem } from "@angular/material/menu";
4
+ import { __decorate } from "tslib";
5
+ import { KeyValuePipe } from "@angular/common";
6
+ import * as i1 from "@angular/forms";
7
+ import { FormsModule } from "@angular/forms";
8
+ import { MatFormField, MatHint, MatLabel } from "@angular/material/form-field";
9
+ import { MatOption, MatSelect } from "@angular/material/select";
10
+ import { StopPropagationDirective } from "@rxap/directives";
11
+ import { LanguageSelectorService } from "@rxap/ngx-localize";
12
+ import { MatDatepickerIntl } from "@angular/material/datepicker";
13
+ import { Subject } from "rxjs";
14
+ import { MatPaginatorIntl } from "@angular/material/paginator";
15
+ import { MatStepperIntl } from "@angular/material/stepper";
16
16
  let LanguageSelectorComponent = class LanguageSelectorComponent {
17
17
  constructor() {
18
18
  this.language = inject(LanguageSelectorService);
19
- this.hasLanguages = computed(() => this.language.hasLanguages(), ...(ngDevMode ? [{ debugName: "hasLanguages" }] : /* istanbul ignore next */ []));
20
- this.languages = computed(() => this.language.languages(), ...(ngDevMode ? [{ debugName: "languages" }] : /* istanbul ignore next */ []));
21
- this.selectedLanguage = computed(() => this.language.selectedLanguage(), ...(ngDevMode ? [{ debugName: "selectedLanguage" }] : /* istanbul ignore next */ []));
22
- this.autoReload = input(true, ...(ngDevMode ? [{ debugName: "autoReload" }] : /* istanbul ignore next */ []));
19
+ this.hasLanguages = computed(() => this.language.hasLanguages(), ...ngDevMode ? [{ debugName: "hasLanguages" }] : /* istanbul ignore next */ []);
20
+ this.languages = computed(() => this.language.languages(), ...ngDevMode ? [{ debugName: "languages" }] : /* istanbul ignore next */ []);
21
+ this.selectedLanguage = computed(() => this.language.selectedLanguage(), ...ngDevMode ? [{ debugName: "selectedLanguage" }] : /* istanbul ignore next */ []);
22
+ this.autoReload = input(true, ...ngDevMode ? [{ debugName: "autoReload" }] : /* istanbul ignore next */ []);
23
23
  }
24
24
  selectLanguage(language) {
25
25
  return this.language.setLanguage(language, this.autoReload());
26
26
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LanguageSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
28
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: LanguageSelectorComponent, isStandalone: true, selector: "rxap-language-selector", inputs: { autoReload: { classPropertyName: "autoReload", publicName: "autoReload", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (hasLanguages()) {\n <mat-form-field class=\"w-full\" rxapStopPropagation>\n <mat-label i18n>Select Language</mat-label>\n <mat-select (ngModelChange)=\"selectLanguage($event)\" [ngModel]=\"selectedLanguage()\">\n @for (item of languages() | keyvalue; track item.key) {\n <mat-option [value]=\"item.key\">{{ item.value }}</mat-option>\n }\n </mat-select>\n <mat-hint i18n>Change the language</mat-hint>\n </mat-form-field>\n} @else {\n <span i18n>No languages available</span>\n}\n", styles: [".language-selector{width:calc(100% - 32px);margin:0 16px}.language-selector ::ng-deep .mat-form-field-wrapper{padding-bottom:0}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}\n"], dependencies: [{ kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "directive", type: MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27
+ static {
28
+ this.ɵfac = i0.ɵɵngDeclareFactory({
29
+ minVersion: "12.0.0",
30
+ version: "22.3.0",
31
+ ngImport: i0,
32
+ type: LanguageSelectorComponent,
33
+ deps: [],
34
+ target: i0.ɵɵFactoryTarget.Component
35
+ });
36
+ }
37
+ static {
38
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
39
+ minVersion: "17.0.0",
40
+ version: "22.3.0",
41
+ type: LanguageSelectorComponent,
42
+ isStandalone: true,
43
+ selector: "rxap-language-selector",
44
+ inputs: { autoReload: {
45
+ classPropertyName: "autoReload",
46
+ publicName: "autoReload",
47
+ isSignal: true,
48
+ isRequired: false,
49
+ transformFunction: null
50
+ } },
51
+ ngImport: i0,
52
+ template: "@if (hasLanguages()) {\n <mat-form-field class=\"w-full\" rxapStopPropagation>\n <mat-label i18n>Select Language</mat-label>\n <mat-select (ngModelChange)=\"selectLanguage($event)\" [ngModel]=\"selectedLanguage()\">\n @for (item of languages() | keyvalue; track item.key) {\n <mat-option [value]=\"item.key\">{{ item.value }}</mat-option>\n }\n </mat-select>\n <mat-hint i18n>Change the language</mat-hint>\n </mat-form-field>\n} @else {\n <span i18n>No languages available</span>\n}\n",
53
+ styles: [".language-selector{width:calc(100% - 32px);margin:0 16px}.language-selector ::ng-deep .mat-form-field-wrapper{padding-bottom:0}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}\n"],
54
+ dependencies: [
55
+ {
56
+ kind: "component",
57
+ type: MatFormField,
58
+ selector: "mat-form-field",
59
+ inputs: [
60
+ "hideRequiredMarker",
61
+ "color",
62
+ "floatLabel",
63
+ "appearance",
64
+ "subscriptSizing",
65
+ "hintLabel"
66
+ ],
67
+ exportAs: ["matFormField"]
68
+ },
69
+ {
70
+ kind: "directive",
71
+ type: StopPropagationDirective,
72
+ selector: "[rxapStopPropagation]"
73
+ },
74
+ {
75
+ kind: "component",
76
+ type: MatSelect,
77
+ selector: "mat-select",
78
+ inputs: [
79
+ "aria-describedby",
80
+ "panelClass",
81
+ "disabled",
82
+ "disableRipple",
83
+ "tabIndex",
84
+ "hideSingleSelectionIndicator",
85
+ "placeholder",
86
+ "required",
87
+ "multiple",
88
+ "disableOptionCentering",
89
+ "compareWith",
90
+ "value",
91
+ "aria-label",
92
+ "aria-labelledby",
93
+ "errorStateMatcher",
94
+ "typeaheadDebounceInterval",
95
+ "sortComparator",
96
+ "id",
97
+ "panelWidth",
98
+ "canSelectNullableOptions"
99
+ ],
100
+ outputs: [
101
+ "openedChange",
102
+ "opened",
103
+ "closed",
104
+ "selectionChange",
105
+ "valueChange"
106
+ ],
107
+ exportAs: ["matSelect"]
108
+ },
109
+ {
110
+ kind: "ngmodule",
111
+ type: FormsModule
112
+ },
113
+ {
114
+ kind: "directive",
115
+ type: i1.NgControlStatus,
116
+ selector: "[formControlName],[ngModel],[formControl]"
117
+ },
118
+ {
119
+ kind: "directive",
120
+ type: i1.NgModel,
121
+ selector: "[ngModel]:not([formControlName]):not([formControl])",
122
+ inputs: [
123
+ "name",
124
+ "disabled",
125
+ "ngModel",
126
+ "ngModelOptions"
127
+ ],
128
+ outputs: ["ngModelChange"],
129
+ exportAs: ["ngModel"]
130
+ },
131
+ {
132
+ kind: "component",
133
+ type: MatOption,
134
+ selector: "mat-option",
135
+ inputs: [
136
+ "value",
137
+ "id",
138
+ "disabled"
139
+ ],
140
+ outputs: ["onSelectionChange"],
141
+ exportAs: ["matOption"]
142
+ },
143
+ {
144
+ kind: "directive",
145
+ type: MatLabel,
146
+ selector: "mat-label"
147
+ },
148
+ {
149
+ kind: "directive",
150
+ type: MatHint,
151
+ selector: "mat-hint",
152
+ inputs: ["align", "id"]
153
+ },
154
+ {
155
+ kind: "pipe",
156
+ type: KeyValuePipe,
157
+ name: "keyvalue"
158
+ }
159
+ ],
160
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
161
+ });
162
+ }
29
163
  };
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LanguageSelectorComponent, decorators: [{
164
+ i0.ɵɵngDeclareClassMetadata({
165
+ minVersion: "12.0.0",
166
+ version: "22.3.0",
167
+ ngImport: i0,
168
+ type: LanguageSelectorComponent,
169
+ decorators: [{
31
170
  type: Component,
32
- args: [{ selector: 'rxap-language-selector', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
171
+ args: [{
172
+ selector: "rxap-language-selector",
173
+ changeDetection: ChangeDetectionStrategy.OnPush,
174
+ imports: [
33
175
  MatFormField,
34
176
  StopPropagationDirective,
35
177
  MatSelect,
@@ -37,142 +179,221 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
37
179
  MatOption,
38
180
  KeyValuePipe,
39
181
  MatLabel,
40
- MatHint,
41
- ], template: "@if (hasLanguages()) {\n <mat-form-field class=\"w-full\" rxapStopPropagation>\n <mat-label i18n>Select Language</mat-label>\n <mat-select (ngModelChange)=\"selectLanguage($event)\" [ngModel]=\"selectedLanguage()\">\n @for (item of languages() | keyvalue; track item.key) {\n <mat-option [value]=\"item.key\">{{ item.value }}</mat-option>\n }\n </mat-select>\n <mat-hint i18n>Change the language</mat-hint>\n </mat-form-field>\n} @else {\n <span i18n>No languages available</span>\n}\n", styles: [".language-selector{width:calc(100% - 32px);margin:0 16px}.language-selector ::ng-deep .mat-form-field-wrapper{padding-bottom:0}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}\n"] }]
42
- }], propDecorators: { autoReload: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoReload", required: false }] }] } });
43
- class LanguageSelectorMenuItemComponent {
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LanguageSelectorMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
45
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: LanguageSelectorMenuItemComponent, isStandalone: true, selector: "rxap-language-selector-menu-item", ngImport: i0, template: "<div mat-menu-item class=\"py-1\">\n <rxap-language-selector></rxap-language-selector>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "component", type: LanguageSelectorComponent, selector: "rxap-language-selector", inputs: ["autoReload"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
46
- }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LanguageSelectorMenuItemComponent, decorators: [{
182
+ MatHint
183
+ ],
184
+ template: "@if (hasLanguages()) {\n <mat-form-field class=\"w-full\" rxapStopPropagation>\n <mat-label i18n>Select Language</mat-label>\n <mat-select (ngModelChange)=\"selectLanguage($event)\" [ngModel]=\"selectedLanguage()\">\n @for (item of languages() | keyvalue; track item.key) {\n <mat-option [value]=\"item.key\">{{ item.value }}</mat-option>\n }\n </mat-select>\n <mat-hint i18n>Change the language</mat-hint>\n </mat-form-field>\n} @else {\n <span i18n>No languages available</span>\n}\n",
185
+ styles: [".language-selector{width:calc(100% - 32px);margin:0 16px}.language-selector ::ng-deep .mat-form-field-wrapper{padding-bottom:0}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}\n"]
186
+ }]
187
+ }],
188
+ propDecorators: { autoReload: [{
189
+ type: i0.Input,
190
+ args: [{
191
+ isSignal: true,
192
+ alias: "autoReload",
193
+ required: false
194
+ }]
195
+ }] }
196
+ });
197
+ var LanguageSelectorMenuItemComponent = class LanguageSelectorMenuItemComponent {
198
+ static {
199
+ this.ɵfac = i0.ɵɵngDeclareFactory({
200
+ minVersion: "12.0.0",
201
+ version: "22.3.0",
202
+ ngImport: i0,
203
+ type: LanguageSelectorMenuItemComponent,
204
+ deps: [],
205
+ target: i0.ɵɵFactoryTarget.Component
206
+ });
207
+ }
208
+ static {
209
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
210
+ minVersion: "14.0.0",
211
+ version: "22.3.0",
212
+ type: LanguageSelectorMenuItemComponent,
213
+ isStandalone: true,
214
+ selector: "rxap-language-selector-menu-item",
215
+ ngImport: i0,
216
+ template: "<div mat-menu-item class=\"py-1\">\n <rxap-language-selector></rxap-language-selector>\n</div>\n",
217
+ styles: [""],
218
+ dependencies: [{
219
+ kind: "component",
220
+ type: MatMenuItem,
221
+ selector: "[mat-menu-item]",
222
+ inputs: [
223
+ "role",
224
+ "disabled",
225
+ "disabledInteractive",
226
+ "disableRipple"
227
+ ],
228
+ exportAs: ["matMenuItem"]
229
+ }, {
230
+ kind: "component",
231
+ type: LanguageSelectorComponent,
232
+ selector: "rxap-language-selector",
233
+ inputs: ["autoReload"]
234
+ }],
235
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
236
+ });
237
+ }
238
+ };
239
+ i0.ɵɵngDeclareClassMetadata({
240
+ minVersion: "12.0.0",
241
+ version: "22.3.0",
242
+ ngImport: i0,
243
+ type: LanguageSelectorMenuItemComponent,
244
+ decorators: [{
48
245
  type: Component,
49
- args: [{ selector: 'rxap-language-selector-menu-item', imports: [MatMenuItem, LanguageSelectorComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div mat-menu-item class=\"py-1\">\n <rxap-language-selector></rxap-language-selector>\n</div>\n" }]
50
- }] });
51
- class I18nMatDatepickerIntl {
246
+ args: [{
247
+ selector: "rxap-language-selector-menu-item",
248
+ imports: [MatMenuItem, LanguageSelectorComponent],
249
+ changeDetection: ChangeDetectionStrategy.OnPush,
250
+ template: "<div mat-menu-item class=\"py-1\">\n <rxap-language-selector></rxap-language-selector>\n</div>\n"
251
+ }]
252
+ }]
253
+ });
254
+ var I18nMatDatepickerIntl = class I18nMatDatepickerIntl {
52
255
  constructor() {
53
256
  this.comparisonDateLabel = $localize `:@@comparisonDateLabelMatDatepicker:Comparison date`;
54
- /**
55
- * Stream that emits whenever the labels here are changed. Use this to notify
56
- * components if the labels have changed after initialization.
57
- */
58
257
  this.changes = new Subject();
59
- /** A label for the calendar popup (used by screen readers). */
60
258
  this.calendarLabel = $localize `:@@calendarLabelMatDatepicker:Calendar`;
61
- /** A label for the button used to open the calendar popup (used by screen readers). */
62
259
  this.openCalendarLabel = $localize `:@@openCalendarLabelMatDatepicker:Open calendar`;
63
- /** Label for the button used to close the calendar popup. */
64
260
  this.closeCalendarLabel = $localize `:@@closeCalendarLabelMatDatepicker:Close calendar`;
65
- /** A label for the previous month button (used by screen readers). */
66
261
  this.prevMonthLabel = $localize `:@@prevMonthLabelMatDatepicker:Previous month`;
67
- /** A label for the next month button (used by screen readers). */
68
262
  this.nextMonthLabel = $localize `:@@nextMonthLabelMatDatepicker:Next month`;
69
- /** A label for the previous year button (used by screen readers). */
70
263
  this.prevYearLabel = $localize `:@@prevYearLabelMatDatepicker:Previous year`;
71
- /** A label for the next year button (used by screen readers). */
72
264
  this.nextYearLabel = $localize `:@@nextYearLabelMatDatepicker:Next year`;
73
- /** A label for the previous multi-year button (used by screen readers). */
74
265
  this.prevMultiYearLabel = $localize `:@@prevMultiYearLabelMatDatepicker:Previous 24 years`;
75
- /** A label for the next multi-year button (used by screen readers). */
76
266
  this.nextMultiYearLabel = $localize `:@@nextMultiYearLabelMatDatepicker:Next 24 years`;
77
- /** A label for the 'switch to month view' button (used by screen readers). */
78
267
  this.switchToMonthViewLabel = $localize `:@@switchToMonthViewLabelMatDatepicker:Choose date`;
79
- /** A label for the 'switch to year view' button (used by screen readers). */
80
268
  this.switchToMultiYearViewLabel = $localize `:@@switchToMultiYearViewLabelMatDatepicker:Choose month and year`;
81
- /**
82
- * A label for the first date of a range of dates (used by screen readers).
83
- * @deprecated Provide your own internationalization string.
84
- * @breaking-change 17.0.0
85
- */
86
269
  this.startDateLabel = $localize `:@@startDateLabelMatDatepicker:Start date`;
87
- /**
88
- * A label for the last date of a range of dates (used by screen readers).
89
- * @deprecated Provide your own internationalization string.
90
- * @breaking-change 17.0.0
91
- */
92
270
  this.endDateLabel = $localize `:@@endDateLabelMatDatepicker:End date`;
93
271
  }
94
- /** Formats a range of years (used for visuals). */
95
272
  formatYearRange(start, end) {
96
273
  return $localize `:@@formatYearRangeMatDatepicker:${start} \u2013 ${end}`;
97
274
  }
98
- /** Formats a label for a range of years (used by screen readers). */
99
275
  formatYearRangeLabel(start, end) {
100
276
  return $localize `:@@formatYearRangeLabelMatDatepicker:${start} to ${end}`;
101
277
  }
102
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatDatepickerIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
103
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatDatepickerIntl }); }
104
- }
105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatDatepickerIntl, decorators: [{
106
- type: Injectable
107
- }] });
278
+ static {
279
+ this.ɵfac = i0.ɵɵngDeclareFactory({
280
+ minVersion: "12.0.0",
281
+ version: "22.3.0",
282
+ ngImport: i0,
283
+ type: I18nMatDatepickerIntl,
284
+ deps: [],
285
+ target: i0.ɵɵFactoryTarget.Injectable
286
+ });
287
+ }
288
+ static {
289
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
290
+ minVersion: "12.0.0",
291
+ version: "22.3.0",
292
+ ngImport: i0,
293
+ type: I18nMatDatepickerIntl
294
+ });
295
+ }
296
+ };
297
+ i0.ɵɵngDeclareClassMetadata({
298
+ minVersion: "12.0.0",
299
+ version: "22.3.0",
300
+ ngImport: i0,
301
+ type: I18nMatDatepickerIntl,
302
+ decorators: [{ type: Injectable }]
303
+ });
108
304
  const I18N_MAT_DATEPICKER_INTL_PROVIDER = {
109
305
  provide: MatDatepickerIntl,
110
- useClass: I18nMatDatepickerIntl,
306
+ useClass: I18nMatDatepickerIntl
111
307
  };
112
308
  function ProvideI18nMatDatepickerIntl() {
113
309
  return I18N_MAT_DATEPICKER_INTL_PROVIDER;
114
310
  }
115
- class I18nMatPaginatorIntl {
311
+ var I18nMatPaginatorIntl = class I18nMatPaginatorIntl {
116
312
  constructor() {
117
313
  this.changes = new Subject();
118
- /** A label for the page size selector. */
119
314
  this.itemsPerPageLabel = $localize `:@@itemsPerPageLabelMatPaginator:Items per page`;
120
- /** A label for the button that increments the current page. */
121
315
  this.nextPageLabel = $localize `:@@nextPageLabelMatPaginator:Next page`;
122
- /** A label for the button that decrements the current page. */
123
316
  this.previousPageLabel = $localize `:@@previousPageLabelMatPaginator:Previous page`;
124
- /** A label for the button that moves to the first page. */
125
317
  this.firstPageLabel = $localize `:@@firstPageLabelMatPaginator:First page`;
126
- /** A label for the button that moves to the last page. */
127
318
  this.lastPageLabel = $localize `:@@lastPageLabelMatPaginator:Last page`;
128
- /** A label for the range of items within the current page and the length of the whole list. */
129
319
  this.getRangeLabel = (page, pageSize, length) => {
130
- if (length == 0 || pageSize == 0) {
320
+ if (length == 0 || pageSize == 0)
131
321
  return $localize `:@@emptyPageRangeLabelMatPaginator:0 of ${length}`;
132
- }
133
322
  length = Math.max(length, 0);
134
323
  const startIndex = page * pageSize;
135
- // If the start index exceeds the list length, do not try and fix the end index to the end.
136
324
  const endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;
137
325
  return $localize `:@@pageRangeLabelMatPaginator:${startIndex + 1} – ${endIndex} of ${length}`;
138
326
  };
139
327
  }
140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatPaginatorIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
141
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatPaginatorIntl }); }
142
- }
143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatPaginatorIntl, decorators: [{
144
- type: Injectable
145
- }] });
328
+ static {
329
+ this.ɵfac = i0.ɵɵngDeclareFactory({
330
+ minVersion: "12.0.0",
331
+ version: "22.3.0",
332
+ ngImport: i0,
333
+ type: I18nMatPaginatorIntl,
334
+ deps: [],
335
+ target: i0.ɵɵFactoryTarget.Injectable
336
+ });
337
+ }
338
+ static {
339
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
340
+ minVersion: "12.0.0",
341
+ version: "22.3.0",
342
+ ngImport: i0,
343
+ type: I18nMatPaginatorIntl
344
+ });
345
+ }
346
+ };
347
+ i0.ɵɵngDeclareClassMetadata({
348
+ minVersion: "12.0.0",
349
+ version: "22.3.0",
350
+ ngImport: i0,
351
+ type: I18nMatPaginatorIntl,
352
+ decorators: [{ type: Injectable }]
353
+ });
146
354
  const I18N_MAT_PAGINATOR_INTL_PROVIDER = {
147
355
  provide: MatPaginatorIntl,
148
- useClass: I18nMatPaginatorIntl,
356
+ useClass: I18nMatPaginatorIntl
149
357
  };
150
358
  function ProvideI18nMatPaginatorIntl() {
151
359
  return I18N_MAT_PAGINATOR_INTL_PROVIDER;
152
360
  }
153
- class I18nMatStepperIntl {
361
+ var I18nMatStepperIntl = class I18nMatStepperIntl {
154
362
  constructor() {
155
- /**
156
- * Stream that emits whenever the labels here are changed. Use this to notify
157
- * components if the labels have changed after initialization.
158
- */
159
363
  this.changes = new Subject();
160
- /** Label that is rendered below optional steps. */
161
364
  this.optionalLabel = $localize `:@@optionalLabelMatStepper:Optional`;
162
- /** Label that is used to indicate step as completed to screen readers. */
163
365
  this.completedLabel = $localize `:@@completedLabelMatStepper:Completed`;
164
- /** Label that is used to indicate step as editable to screen readers. */
165
366
  this.editableLabel = $localize `:@@editableLabelMatStepper:Editable`;
166
367
  }
167
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatStepperIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
168
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatStepperIntl }); }
169
- }
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: I18nMatStepperIntl, decorators: [{
171
- type: Injectable
172
- }] });
368
+ static {
369
+ this.ɵfac = i0.ɵɵngDeclareFactory({
370
+ minVersion: "12.0.0",
371
+ version: "22.3.0",
372
+ ngImport: i0,
373
+ type: I18nMatStepperIntl,
374
+ deps: [],
375
+ target: i0.ɵɵFactoryTarget.Injectable
376
+ });
377
+ }
378
+ static {
379
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
380
+ minVersion: "12.0.0",
381
+ version: "22.3.0",
382
+ ngImport: i0,
383
+ type: I18nMatStepperIntl
384
+ });
385
+ }
386
+ };
387
+ i0.ɵɵngDeclareClassMetadata({
388
+ minVersion: "12.0.0",
389
+ version: "22.3.0",
390
+ ngImport: i0,
391
+ type: I18nMatStepperIntl,
392
+ decorators: [{ type: Injectable }]
393
+ });
173
394
  const I18N_MAT_STEPPER_INTL_PROVIDER = {
174
395
  provide: MatStepperIntl,
175
- useClass: I18nMatStepperIntl,
396
+ useClass: I18nMatStepperIntl
176
397
  };
177
398
  function ProvideI18nMatStepperIntl() {
178
399
  return I18N_MAT_STEPPER_INTL_PROVIDER;
@@ -181,12 +402,7 @@ function ProvideI18nMatIntl() {
181
402
  return [
182
403
  I18N_MAT_DATEPICKER_INTL_PROVIDER,
183
404
  I18N_MAT_PAGINATOR_INTL_PROVIDER,
184
- I18N_MAT_STEPPER_INTL_PROVIDER,
405
+ I18N_MAT_STEPPER_INTL_PROVIDER
185
406
  ];
186
407
  }
187
- // region language-selector-menu-item
188
- // endregion
189
- /**
190
- * Generated bundle index. Do not edit.
191
- */
192
408
  export { I18N_MAT_DATEPICKER_INTL_PROVIDER, I18N_MAT_PAGINATOR_INTL_PROVIDER, I18N_MAT_STEPPER_INTL_PROVIDER, I18nMatDatepickerIntl, I18nMatPaginatorIntl, I18nMatStepperIntl, LanguageSelectorComponent, LanguageSelectorMenuItemComponent, ProvideI18nMatDatepickerIntl, ProvideI18nMatIntl, ProvideI18nMatPaginatorIntl, ProvideI18nMatStepperIntl };
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-ngx-material-localize.mjs","sources":["../../../../../../packages/angular/material/localize/src/lib/language-selector/language-selector.component.ts","../../../../../../packages/angular/material/localize/src/lib/language-selector/language-selector.component.html","../../../../../../packages/angular/material/localize/src/lib/language-selector-menu-item/language-selector-menu-item.component.ts","../../../../../../packages/angular/material/localize/src/lib/language-selector-menu-item/language-selector-menu-item.component.html","../../../../../../packages/angular/material/localize/src/lib/datepicker.ts","../../../../../../packages/angular/material/localize/src/lib/paginator.ts","../../../../../../packages/angular/material/localize/src/lib/stepper.ts","../../../../../../packages/angular/material/localize/src/lib/provide.ts","../../../../../../packages/angular/material/localize/src/index.ts","../../../../../../packages/angular/material/localize/src/rxap-ngx-material-localize.ts"],"sourcesContent":["import { KeyValuePipe } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n MatFormField,\n MatHint,\n MatLabel,\n} from '@angular/material/form-field';\nimport {\n MatOption,\n MatSelect,\n} from '@angular/material/select';\nimport { StopPropagationDirective } from '@rxap/directives';\nimport { LanguageSelectorService } from '@rxap/ngx-localize';\nimport { Showcase } from '@ng-prism/core';\n\n@Showcase({\n title: 'Language Selector',\n category: 'Localize',\n description: 'Select field to switch the language of the application. It is only shown if the application has more than one language.',\n status: 'stable',\n variants: [\n { name: 'Default' },\n ],\n})\n@Component({\n selector: 'rxap-language-selector',\n templateUrl: './language-selector.component.html',\n styleUrls: ['./language-selector.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n MatFormField,\n StopPropagationDirective,\n MatSelect,\n FormsModule,\n MatOption,\n KeyValuePipe,\n MatLabel,\n MatHint,\n ]\n})\nexport class LanguageSelectorComponent {\n\n private readonly language = inject(LanguageSelectorService);\n\n public readonly hasLanguages = computed(() => this.language.hasLanguages());\n public readonly languages = computed(() => this.language.languages());\n public readonly selectedLanguage = computed(() => this.language.selectedLanguage());\n\n readonly autoReload = input(true);\n\n selectLanguage(language: string) {\n return this.language.setLanguage(language, this.autoReload());\n }\n\n}\n","@if (hasLanguages()) {\n <mat-form-field class=\"w-full\" rxapStopPropagation>\n <mat-label i18n>Select Language</mat-label>\n <mat-select (ngModelChange)=\"selectLanguage($event)\" [ngModel]=\"selectedLanguage()\">\n @for (item of languages() | keyvalue; track item.key) {\n <mat-option [value]=\"item.key\">{{ item.value }}</mat-option>\n }\n </mat-select>\n <mat-hint i18n>Change the language</mat-hint>\n </mat-form-field>\n} @else {\n <span i18n>No languages available</span>\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { MatMenuItem } from '@angular/material/menu';\nimport { LanguageSelectorComponent } from '../language-selector/language-selector.component';\n\n@Component({\n selector: 'rxap-language-selector-menu-item',\n imports: [MatMenuItem, LanguageSelectorComponent],\n templateUrl: './language-selector-menu-item.component.html',\n styleUrl: './language-selector-menu-item.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class LanguageSelectorMenuItemComponent {}\n","<div mat-menu-item class=\"py-1\">\n <rxap-language-selector></rxap-language-selector>\n</div>\n","import {\n Injectable,\n StaticProvider,\n} from '@angular/core';\nimport { MatDatepickerIntl } from '@angular/material/datepicker';\nimport { Subject } from 'rxjs';\n\ndeclare let $localize: any;\n\n@Injectable()\nexport class I18nMatDatepickerIntl implements MatDatepickerIntl {\n comparisonDateLabel: string = $localize`:@@comparisonDateLabelMatDatepicker:Comparison date`;\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n readonly changes: Subject<void> = new Subject<void>();\n\n /** A label for the calendar popup (used by screen readers). */\n calendarLabel: string = $localize`:@@calendarLabelMatDatepicker:Calendar`;\n\n /** A label for the button used to open the calendar popup (used by screen readers). */\n openCalendarLabel: string = $localize`:@@openCalendarLabelMatDatepicker:Open calendar`;\n\n /** Label for the button used to close the calendar popup. */\n closeCalendarLabel: string = $localize`:@@closeCalendarLabelMatDatepicker:Close calendar`;\n\n /** A label for the previous month button (used by screen readers). */\n prevMonthLabel: string = $localize`:@@prevMonthLabelMatDatepicker:Previous month`;\n\n /** A label for the next month button (used by screen readers). */\n nextMonthLabel: string = $localize`:@@nextMonthLabelMatDatepicker:Next month`;\n\n /** A label for the previous year button (used by screen readers). */\n prevYearLabel: string = $localize`:@@prevYearLabelMatDatepicker:Previous year`;\n\n /** A label for the next year button (used by screen readers). */\n nextYearLabel: string = $localize`:@@nextYearLabelMatDatepicker:Next year`;\n\n /** A label for the previous multi-year button (used by screen readers). */\n prevMultiYearLabel: string = $localize`:@@prevMultiYearLabelMatDatepicker:Previous 24 years`;\n\n /** A label for the next multi-year button (used by screen readers). */\n nextMultiYearLabel: string = $localize`:@@nextMultiYearLabelMatDatepicker:Next 24 years`;\n\n /** A label for the 'switch to month view' button (used by screen readers). */\n switchToMonthViewLabel: string = $localize`:@@switchToMonthViewLabelMatDatepicker:Choose date`;\n\n /** A label for the 'switch to year view' button (used by screen readers). */\n switchToMultiYearViewLabel: string = $localize`:@@switchToMultiYearViewLabelMatDatepicker:Choose month and year`;\n\n /**\n * A label for the first date of a range of dates (used by screen readers).\n * @deprecated Provide your own internationalization string.\n * @breaking-change 17.0.0\n */\n startDateLabel: string = $localize`:@@startDateLabelMatDatepicker:Start date`;\n\n /**\n * A label for the last date of a range of dates (used by screen readers).\n * @deprecated Provide your own internationalization string.\n * @breaking-change 17.0.0\n */\n endDateLabel: string = $localize`:@@endDateLabelMatDatepicker:End date`;\n\n /** Formats a range of years (used for visuals). */\n formatYearRange(start: string, end: string): string {\n return $localize`:@@formatYearRangeMatDatepicker:${ start } \\u2013 ${ end }`;\n }\n\n /** Formats a label for a range of years (used by screen readers). */\n formatYearRangeLabel(start: string, end: string): string {\n return $localize`:@@formatYearRangeLabelMatDatepicker:${ start } to ${ end }`;\n }\n}\n\nexport const I18N_MAT_DATEPICKER_INTL_PROVIDER: StaticProvider = {\n provide: MatDatepickerIntl,\n useClass: I18nMatDatepickerIntl,\n};\n\nexport function ProvideI18nMatDatepickerIntl() {\n return I18N_MAT_DATEPICKER_INTL_PROVIDER;\n}\n","import {\n Injectable,\n StaticProvider,\n} from '@angular/core';\nimport { MatPaginatorIntl } from '@angular/material/paginator';\nimport { Subject } from 'rxjs';\n\ndeclare let $localize: any;\n\n@Injectable()\nexport class I18nMatPaginatorIntl implements MatPaginatorIntl {\n\n changes = new Subject<void>();\n\n /** A label for the page size selector. */\n itemsPerPageLabel: string = $localize`:@@itemsPerPageLabelMatPaginator:Items per page`;\n\n /** A label for the button that increments the current page. */\n nextPageLabel: string = $localize`:@@nextPageLabelMatPaginator:Next page`;\n\n /** A label for the button that decrements the current page. */\n previousPageLabel: string = $localize`:@@previousPageLabelMatPaginator:Previous page`;\n\n /** A label for the button that moves to the first page. */\n firstPageLabel: string = $localize`:@@firstPageLabelMatPaginator:First page`;\n\n /** A label for the button that moves to the last page. */\n lastPageLabel: string = $localize`:@@lastPageLabelMatPaginator:Last page`;\n\n /** A label for the range of items within the current page and the length of the whole list. */\n getRangeLabel: (page: number, pageSize: number, length: number) => string = (\n page: number,\n pageSize: number,\n length: number,\n ) => {\n if (length == 0 || pageSize == 0) {\n return $localize`:@@emptyPageRangeLabelMatPaginator:0 of ${ length }`;\n }\n\n length = Math.max(length, 0);\n\n const startIndex = page * pageSize;\n\n // If the start index exceeds the list length, do not try and fix the end index to the end.\n const endIndex =\n startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\n\n return $localize`:@@pageRangeLabelMatPaginator:${ startIndex + 1 } – ${ endIndex } of ${ length }`;\n };\n\n}\n\nexport const I18N_MAT_PAGINATOR_INTL_PROVIDER: StaticProvider = {\n provide: MatPaginatorIntl,\n useClass: I18nMatPaginatorIntl,\n};\n\nexport function ProvideI18nMatPaginatorIntl() {\n return I18N_MAT_PAGINATOR_INTL_PROVIDER;\n}\n","import {\n Injectable,\n StaticProvider,\n} from '@angular/core';\nimport { MatStepperIntl } from '@angular/material/stepper';\nimport { Subject } from 'rxjs';\n\ndeclare let $localize: any;\n\n@Injectable()\nexport class I18nMatStepperIntl implements MatStepperIntl {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n readonly changes: Subject<void> = new Subject<void>();\n\n /** Label that is rendered below optional steps. */\n optionalLabel: string = $localize`:@@optionalLabelMatStepper:Optional`;\n\n /** Label that is used to indicate step as completed to screen readers. */\n completedLabel: string = $localize`:@@completedLabelMatStepper:Completed`;\n\n /** Label that is used to indicate step as editable to screen readers. */\n editableLabel: string = $localize`:@@editableLabelMatStepper:Editable`;\n}\n\nexport const I18N_MAT_STEPPER_INTL_PROVIDER: StaticProvider = {\n provide: MatStepperIntl,\n useClass: I18nMatStepperIntl,\n};\n\nexport function ProvideI18nMatStepperIntl() {\n return I18N_MAT_STEPPER_INTL_PROVIDER;\n}\n","import { I18N_MAT_DATEPICKER_INTL_PROVIDER } from './datepicker';\nimport { I18N_MAT_PAGINATOR_INTL_PROVIDER } from './paginator';\nimport { I18N_MAT_STEPPER_INTL_PROVIDER } from './stepper';\n\nexport function ProvideI18nMatIntl() {\n return [\n I18N_MAT_DATEPICKER_INTL_PROVIDER,\n I18N_MAT_PAGINATOR_INTL_PROVIDER,\n I18N_MAT_STEPPER_INTL_PROVIDER,\n ];\n}\n","// region language-selector-menu-item\nexport * from './lib/language-selector-menu-item/language-selector-menu-item.component';\n// endregion\n\n// region language-selector\nexport * from './lib/language-selector/language-selector.component';\n// endregion\n\n// region \nexport * from './lib/datepicker';\nexport * from './lib/paginator';\nexport * from './lib/provide';\nexport * from './lib/stepper';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA+CO,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB,CAAA;AAA/B,IAAA,WAAA,GAAA;AAEY,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAE3C,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,QAAQ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GAAA;AACvC,IAAA,OAAO,8BAA8B;AACvC;;SC9BgB,kBAAkB,GAAA;IAChC,OAAO;QACL,iCAAiC;QACjC,gCAAgC;QAChC,8BAA8B;KAC/B;AACH;;ACVA;AAaA;;ACbA;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-ngx-material-localize.mjs","names":[],"sources":["../../../../../../packages/angular/material/localize/src/lib/language-selector/language-selector.component.ts","../../../../../../packages/angular/material/localize/src/lib/language-selector/language-selector.component.html","../../../../../../packages/angular/material/localize/src/lib/language-selector-menu-item/language-selector-menu-item.component.ts","../../../../../../packages/angular/material/localize/src/lib/language-selector-menu-item/language-selector-menu-item.component.html","../../../../../../packages/angular/material/localize/src/lib/datepicker.ts","../../../../../../packages/angular/material/localize/src/lib/paginator.ts","../../../../../../packages/angular/material/localize/src/lib/stepper.ts","../../../../../../packages/angular/material/localize/src/lib/provide.ts"],"sourcesContent":["import { KeyValuePipe } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n MatFormField,\n MatHint,\n MatLabel,\n} from '@angular/material/form-field';\nimport {\n MatOption,\n MatSelect,\n} from '@angular/material/select';\nimport { StopPropagationDirective } from '@rxap/directives';\nimport { LanguageSelectorService } from '@rxap/ngx-localize';\nimport { Showcase } from '@ng-prism/core';\n\n@Showcase({\n title: 'Language Selector',\n category: 'Localize',\n description: 'Select field to switch the language of the application. It is only shown if the application has more than one language.',\n status: 'stable',\n variants: [\n { name: 'Default' },\n ],\n})\n@Component({\n selector: 'rxap-language-selector',\n templateUrl: './language-selector.component.html',\n styleUrls: ['./language-selector.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n MatFormField,\n StopPropagationDirective,\n MatSelect,\n FormsModule,\n MatOption,\n KeyValuePipe,\n MatLabel,\n MatHint,\n ]\n})\nexport class LanguageSelectorComponent {\n\n private readonly language = inject(LanguageSelectorService);\n\n public readonly hasLanguages = computed(() => this.language.hasLanguages());\n public readonly languages = computed(() => this.language.languages());\n public readonly selectedLanguage = computed(() => this.language.selectedLanguage());\n\n readonly autoReload = input(true);\n\n selectLanguage(language: string) {\n return this.language.setLanguage(language, this.autoReload());\n }\n\n}\n","@if (hasLanguages()) {\n <mat-form-field class=\"w-full\" rxapStopPropagation>\n <mat-label i18n>Select Language</mat-label>\n <mat-select (ngModelChange)=\"selectLanguage($event)\" [ngModel]=\"selectedLanguage()\">\n @for (item of languages() | keyvalue; track item.key) {\n <mat-option [value]=\"item.key\">{{ item.value }}</mat-option>\n }\n </mat-select>\n <mat-hint i18n>Change the language</mat-hint>\n </mat-form-field>\n} @else {\n <span i18n>No languages available</span>\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { MatMenuItem } from '@angular/material/menu';\nimport { LanguageSelectorComponent } from '../language-selector/language-selector.component';\n\n@Component({\n selector: 'rxap-language-selector-menu-item',\n imports: [MatMenuItem, LanguageSelectorComponent],\n templateUrl: './language-selector-menu-item.component.html',\n styleUrl: './language-selector-menu-item.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class LanguageSelectorMenuItemComponent {}\n","<div mat-menu-item class=\"py-1\">\n <rxap-language-selector></rxap-language-selector>\n</div>\n","import {\n Injectable,\n StaticProvider,\n} from '@angular/core';\nimport { MatDatepickerIntl } from '@angular/material/datepicker';\nimport { Subject } from 'rxjs';\n\ndeclare let $localize: any;\n\n@Injectable()\nexport class I18nMatDatepickerIntl implements MatDatepickerIntl {\n comparisonDateLabel: string = $localize`:@@comparisonDateLabelMatDatepicker:Comparison date`;\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n readonly changes: Subject<void> = new Subject<void>();\n\n /** A label for the calendar popup (used by screen readers). */\n calendarLabel: string = $localize`:@@calendarLabelMatDatepicker:Calendar`;\n\n /** A label for the button used to open the calendar popup (used by screen readers). */\n openCalendarLabel: string = $localize`:@@openCalendarLabelMatDatepicker:Open calendar`;\n\n /** Label for the button used to close the calendar popup. */\n closeCalendarLabel: string = $localize`:@@closeCalendarLabelMatDatepicker:Close calendar`;\n\n /** A label for the previous month button (used by screen readers). */\n prevMonthLabel: string = $localize`:@@prevMonthLabelMatDatepicker:Previous month`;\n\n /** A label for the next month button (used by screen readers). */\n nextMonthLabel: string = $localize`:@@nextMonthLabelMatDatepicker:Next month`;\n\n /** A label for the previous year button (used by screen readers). */\n prevYearLabel: string = $localize`:@@prevYearLabelMatDatepicker:Previous year`;\n\n /** A label for the next year button (used by screen readers). */\n nextYearLabel: string = $localize`:@@nextYearLabelMatDatepicker:Next year`;\n\n /** A label for the previous multi-year button (used by screen readers). */\n prevMultiYearLabel: string = $localize`:@@prevMultiYearLabelMatDatepicker:Previous 24 years`;\n\n /** A label for the next multi-year button (used by screen readers). */\n nextMultiYearLabel: string = $localize`:@@nextMultiYearLabelMatDatepicker:Next 24 years`;\n\n /** A label for the 'switch to month view' button (used by screen readers). */\n switchToMonthViewLabel: string = $localize`:@@switchToMonthViewLabelMatDatepicker:Choose date`;\n\n /** A label for the 'switch to year view' button (used by screen readers). */\n switchToMultiYearViewLabel: string = $localize`:@@switchToMultiYearViewLabelMatDatepicker:Choose month and year`;\n\n /**\n * A label for the first date of a range of dates (used by screen readers).\n * @deprecated Provide your own internationalization string.\n * @breaking-change 17.0.0\n */\n startDateLabel: string = $localize`:@@startDateLabelMatDatepicker:Start date`;\n\n /**\n * A label for the last date of a range of dates (used by screen readers).\n * @deprecated Provide your own internationalization string.\n * @breaking-change 17.0.0\n */\n endDateLabel: string = $localize`:@@endDateLabelMatDatepicker:End date`;\n\n /** Formats a range of years (used for visuals). */\n formatYearRange(start: string, end: string): string {\n return $localize`:@@formatYearRangeMatDatepicker:${ start } \\u2013 ${ end }`;\n }\n\n /** Formats a label for a range of years (used by screen readers). */\n formatYearRangeLabel(start: string, end: string): string {\n return $localize`:@@formatYearRangeLabelMatDatepicker:${ start } to ${ end }`;\n }\n}\n\nexport const I18N_MAT_DATEPICKER_INTL_PROVIDER: StaticProvider = {\n provide: MatDatepickerIntl,\n useClass: I18nMatDatepickerIntl,\n};\n\nexport function ProvideI18nMatDatepickerIntl() {\n return I18N_MAT_DATEPICKER_INTL_PROVIDER;\n}\n","import {\n Injectable,\n StaticProvider,\n} from '@angular/core';\nimport { MatPaginatorIntl } from '@angular/material/paginator';\nimport { Subject } from 'rxjs';\n\ndeclare let $localize: any;\n\n@Injectable()\nexport class I18nMatPaginatorIntl implements MatPaginatorIntl {\n\n changes = new Subject<void>();\n\n /** A label for the page size selector. */\n itemsPerPageLabel: string = $localize`:@@itemsPerPageLabelMatPaginator:Items per page`;\n\n /** A label for the button that increments the current page. */\n nextPageLabel: string = $localize`:@@nextPageLabelMatPaginator:Next page`;\n\n /** A label for the button that decrements the current page. */\n previousPageLabel: string = $localize`:@@previousPageLabelMatPaginator:Previous page`;\n\n /** A label for the button that moves to the first page. */\n firstPageLabel: string = $localize`:@@firstPageLabelMatPaginator:First page`;\n\n /** A label for the button that moves to the last page. */\n lastPageLabel: string = $localize`:@@lastPageLabelMatPaginator:Last page`;\n\n /** A label for the range of items within the current page and the length of the whole list. */\n getRangeLabel: (page: number, pageSize: number, length: number) => string = (\n page: number,\n pageSize: number,\n length: number,\n ) => {\n if (length == 0 || pageSize == 0) {\n return $localize`:@@emptyPageRangeLabelMatPaginator:0 of ${ length }`;\n }\n\n length = Math.max(length, 0);\n\n const startIndex = page * pageSize;\n\n // If the start index exceeds the list length, do not try and fix the end index to the end.\n const endIndex =\n startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\n\n return $localize`:@@pageRangeLabelMatPaginator:${ startIndex + 1 } – ${ endIndex } of ${ length }`;\n };\n\n}\n\nexport const I18N_MAT_PAGINATOR_INTL_PROVIDER: StaticProvider = {\n provide: MatPaginatorIntl,\n useClass: I18nMatPaginatorIntl,\n};\n\nexport function ProvideI18nMatPaginatorIntl() {\n return I18N_MAT_PAGINATOR_INTL_PROVIDER;\n}\n","import {\n Injectable,\n StaticProvider,\n} from '@angular/core';\nimport { MatStepperIntl } from '@angular/material/stepper';\nimport { Subject } from 'rxjs';\n\ndeclare let $localize: any;\n\n@Injectable()\nexport class I18nMatStepperIntl implements MatStepperIntl {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n readonly changes: Subject<void> = new Subject<void>();\n\n /** Label that is rendered below optional steps. */\n optionalLabel: string = $localize`:@@optionalLabelMatStepper:Optional`;\n\n /** Label that is used to indicate step as completed to screen readers. */\n completedLabel: string = $localize`:@@completedLabelMatStepper:Completed`;\n\n /** Label that is used to indicate step as editable to screen readers. */\n editableLabel: string = $localize`:@@editableLabelMatStepper:Editable`;\n}\n\nexport const I18N_MAT_STEPPER_INTL_PROVIDER: StaticProvider = {\n provide: MatStepperIntl,\n useClass: I18nMatStepperIntl,\n};\n\nexport function ProvideI18nMatStepperIntl() {\n return I18N_MAT_STEPPER_INTL_PROVIDER;\n}\n","import { I18N_MAT_DATEPICKER_INTL_PROVIDER } from './datepicker';\nimport { I18N_MAT_PAGINATOR_INTL_PROVIDER } from './paginator';\nimport { I18N_MAT_STEPPER_INTL_PROVIDER } from './stepper';\n\nexport function ProvideI18nMatIntl() {\n return [\n I18N_MAT_DATEPICKER_INTL_PROVIDER,\n I18N_MAT_PAGINATOR_INTL_PROVIDER,\n I18N_MAT_STEPPER_INTL_PROVIDER,\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA+CO,IAAM,4BAAN,MAAM,0BAAyB;CAA/B,cAAA;EAEY,KAAA,WAAW,OAAO,uBAAuB;EAE1C,KAAA,eAAe,eAAe,KAAK,SAAS,aAAY,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;EAC3D,KAAA,YAAY,eAAe,KAAK,SAAS,UAAS,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,C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