@rxap/ngx-material-localize 19.2.0 → 21.0.1-dev.1

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 (59) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/compodoc/changelog.html +30 -0
  3. package/compodoc/components/LanguageSelectorComponent.html +18 -8
  4. package/compodoc/dependencies.html +8 -8
  5. package/compodoc/js/search/search_index.js +2 -2
  6. package/compodoc/properties.html +1 -1
  7. package/docs/documentation.json +76 -76
  8. package/docs/html/classes/I18nMatDatepickerIntl.html +18 -18
  9. package/docs/html/classes/I18nMatPaginatorIntl.html +8 -8
  10. package/docs/html/classes/I18nMatStepperIntl.html +5 -5
  11. package/docs/html/classes/LanguageSelectorComponent.html +2 -2
  12. package/docs/html/classes/LanguageSelectorMenuItemComponent.html +2 -2
  13. package/docs/html/functions/ProvideI18nMatDatepickerIntl.html +1 -1
  14. package/docs/html/functions/ProvideI18nMatIntl.html +1 -1
  15. package/docs/html/functions/ProvideI18nMatPaginatorIntl.html +1 -1
  16. package/docs/html/functions/ProvideI18nMatStepperIntl.html +1 -1
  17. package/docs/html/index.html +2 -2
  18. package/docs/html/modules.html +1 -1
  19. package/docs/html/variables/I18N_MAT_DATEPICKER_INTL_PROVIDER.html +1 -1
  20. package/docs/html/variables/I18N_MAT_PAGINATOR_INTL_PROVIDER.html +1 -1
  21. package/docs/html/variables/I18N_MAT_STEPPER_INTL_PROVIDER.html +1 -1
  22. package/docs/markdown/README.md +1 -1
  23. package/docs/markdown/classes/I18nMatDatepickerIntl.md +19 -19
  24. package/docs/markdown/classes/I18nMatPaginatorIntl.md +9 -9
  25. package/docs/markdown/classes/I18nMatStepperIntl.md +6 -6
  26. package/docs/markdown/classes/LanguageSelectorComponent.md +7 -7
  27. package/docs/markdown/classes/LanguageSelectorMenuItemComponent.md +2 -2
  28. package/docs/markdown/functions/ProvideI18nMatDatepickerIntl.md +2 -2
  29. package/docs/markdown/functions/ProvideI18nMatIntl.md +2 -2
  30. package/docs/markdown/functions/ProvideI18nMatPaginatorIntl.md +2 -2
  31. package/docs/markdown/functions/ProvideI18nMatStepperIntl.md +2 -2
  32. package/docs/markdown/globals.md +2 -2
  33. package/docs/markdown/variables/I18N_MAT_DATEPICKER_INTL_PROVIDER.md +2 -2
  34. package/docs/markdown/variables/I18N_MAT_PAGINATOR_INTL_PROVIDER.md +2 -2
  35. package/docs/markdown/variables/I18N_MAT_STEPPER_INTL_PROVIDER.md +2 -2
  36. package/docs/wiki/Class.I18nMatDatepickerIntl.md +18 -18
  37. package/docs/wiki/Class.I18nMatPaginatorIntl.md +8 -8
  38. package/docs/wiki/Class.I18nMatStepperIntl.md +5 -5
  39. package/docs/wiki/Class.LanguageSelectorComponent.md +6 -6
  40. package/docs/wiki/Class.LanguageSelectorMenuItemComponent.md +1 -1
  41. package/docs/wiki/Function.ProvideI18nMatDatepickerIntl.md +1 -1
  42. package/docs/wiki/Function.ProvideI18nMatIntl.md +1 -1
  43. package/docs/wiki/Function.ProvideI18nMatPaginatorIntl.md +1 -1
  44. package/docs/wiki/Function.ProvideI18nMatStepperIntl.md +1 -1
  45. package/docs/wiki/Variable.I18N_MAT_DATEPICKER_INTL_PROVIDER.md +1 -1
  46. package/docs/wiki/Variable.I18N_MAT_PAGINATOR_INTL_PROVIDER.md +1 -1
  47. package/docs/wiki/Variable.I18N_MAT_STEPPER_INTL_PROVIDER.md +1 -1
  48. package/docs/wiki/globals.md +1 -1
  49. package/fesm2022/rxap-ngx-material-localize.mjs +24 -33
  50. package/fesm2022/rxap-ngx-material-localize.mjs.map +1 -1
  51. package/package.json +36 -35
  52. package/types/rxap-ngx-material-localize.d.ts +116 -0
  53. package/index.d.ts +0 -6
  54. package/lib/datepicker.d.ts +0 -54
  55. package/lib/language-selector/language-selector.component.d.ts +0 -11
  56. package/lib/language-selector-menu-item/language-selector-menu-item.component.d.ts +0 -5
  57. package/lib/paginator.d.ts +0 -23
  58. package/lib/provide.d.ts +0 -1
  59. package/lib/stepper.d.ts +0 -21
@@ -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';\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":";;;;;;;;;;;;;;;MAqCa,yBAAyB,CAAA;AAhBtC,IAAA,WAAA,GAAA;AAkBmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAE3C,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;AAC3D,QAAA,IAAA,CAAA,SAAS,GAAG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AAoB,EAAA,CAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;AA2CY,MAAA,gCAAgC,GAAmB;AAC9D,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,QAAQ,EAAE,oBAAoB;;SAGhB,2BAA2B,GAAA;AACzC,IAAA,OAAO,gCAAgC;AACzC;;MCjDa,kBAAkB,CAAA;AAD/B,IAAA,WAAA,GAAA;AAEE;;;AAGG;AACM,QAAA,IAAA,CAAA,OAAO,GAAkB,IAAI,OAAO,EAAQ;;AAGrD,QAAA,IAAA,CAAA,aAAa,GAAW,SAAS,CAAA,CAAA,mCAAA,CAAqC;;AAGtE,QAAA,IAAA,CAAA,cAAc,GAAW,SAAS,CAAA,CAAA,qCAAA,CAAuC;;AAGzE,QAAA,IAAA,CAAA,aAAa,GAAW,SAAS,CAAA,CAAA,mCAAA,CAAqC;AACvE;+GAfY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAlB,kBAAkB,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B;;AAkBY,MAAA,8BAA8B,GAAmB;AAC5D,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,QAAQ,EAAE,kBAAkB;;SAGd,yBAAyB,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","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,CAAC,YAAY,EAAE,mFAAC;AAC3D,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,gFAAC;AACrD,QAAA,I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;;ACbA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
- "version": "19.2.0",
2
+ "version": "21.0.1-dev.1",
3
3
  "name": "@rxap/ngx-material-localize",
4
4
  "description": "Provides components and services to simplify internationalization (i18n) in Angular Material applications. It offers components for language selection and utilities to localize Material components like Datepicker, Paginator and Stepper. This package aims to streamline the process of adapting your Angular Material UI to different languages.\n",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "dependencies": {
7
- "@nx/devkit": "20.5.0",
7
+ "@nx/devkit": "22.7.5",
8
8
  "tslib": "2.6.2"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^19.2.1",
12
- "@angular/core": "^19.2.1",
13
- "@angular/forms": "^19.2.1",
14
- "@angular/material": "^19.1.1",
15
- "@rxap/directives": "^19.2.0",
16
- "@rxap/ngx-localize": "^19.2.0",
17
- "rxjs": "^7.8.1"
11
+ "@angular/common": "^21.2.9",
12
+ "@angular/core": "^21.2.9",
13
+ "@angular/forms": "^21.2.9",
14
+ "@angular/material": "^21.2.9",
15
+ "@rxap/directives": "^21.0.1-dev.1",
16
+ "@rxap/ngx-localize": "^21.0.1-dev.1",
17
+ "rxjs": "^7.8.2"
18
18
  },
19
19
  "author": {
20
20
  "name": "Merzough Münker",
@@ -40,95 +40,95 @@
40
40
  "packageGroup": [
41
41
  {
42
42
  "package": "@angular/cdk",
43
- "version": "19.2.19"
43
+ "version": "21.2.9"
44
44
  },
45
45
  {
46
46
  "package": "@angular/common",
47
- "version": "19.2.16"
47
+ "version": "21.2.9"
48
48
  },
49
49
  {
50
50
  "package": "@angular/core",
51
- "version": "19.2.16"
51
+ "version": "21.2.9"
52
52
  },
53
53
  {
54
54
  "package": "@angular/forms",
55
- "version": "19.2.16"
55
+ "version": "21.2.9"
56
56
  },
57
57
  {
58
58
  "package": "@angular/material",
59
- "version": "19.2.19"
59
+ "version": "21.2.9"
60
60
  },
61
61
  {
62
62
  "package": "@angular/platform-browser",
63
- "version": "19.2.16"
63
+ "version": "21.2.9"
64
64
  },
65
65
  {
66
66
  "package": "@rxap/config",
67
- "version": "19.3.0"
67
+ "version": "21.0.1-dev.1"
68
68
  },
69
69
  {
70
70
  "package": "@rxap/data-source",
71
- "version": "19.2.0"
71
+ "version": "21.0.1-dev.1"
72
72
  },
73
73
  {
74
74
  "package": "@rxap/data-structure-tree",
75
- "version": "1.1.18"
75
+ "version": "1.1.19-dev.1"
76
76
  },
77
77
  {
78
78
  "package": "@rxap/definition",
79
- "version": "19.0.5"
79
+ "version": "21.0.1-dev.1"
80
80
  },
81
81
  {
82
82
  "package": "@rxap/directives",
83
- "version": "19.2.0"
83
+ "version": "21.0.1-dev.1"
84
84
  },
85
85
  {
86
86
  "package": "@rxap/environment",
87
- "version": "19.2.0"
87
+ "version": "21.0.1-dev.1"
88
88
  },
89
89
  {
90
90
  "package": "@rxap/mixin",
91
- "version": "16.0.16"
91
+ "version": "16.0.17-dev.1"
92
92
  },
93
93
  {
94
94
  "package": "@rxap/ngx-localize",
95
- "version": "19.2.0"
95
+ "version": "21.0.1-dev.1"
96
96
  },
97
97
  {
98
98
  "package": "@rxap/ngx-pub-sub",
99
- "version": "19.1.0"
99
+ "version": "21.0.1-dev.1"
100
100
  },
101
101
  {
102
102
  "package": "@rxap/ngx-user",
103
- "version": "19.1.0"
103
+ "version": "21.0.1-dev.1"
104
104
  },
105
105
  {
106
106
  "package": "@rxap/open-api",
107
- "version": "19.3.0"
107
+ "version": "21.0.1-dev.1"
108
108
  },
109
109
  {
110
110
  "package": "@rxap/pattern",
111
- "version": "1.1.15"
111
+ "version": "1.1.16-dev.1"
112
112
  },
113
113
  {
114
114
  "package": "@rxap/reflect-metadata",
115
- "version": "1.0.17"
115
+ "version": "1.0.18-dev.1"
116
116
  },
117
117
  {
118
118
  "package": "@rxap/remote-method",
119
- "version": "19.2.0"
119
+ "version": "21.0.1-dev.1"
120
120
  },
121
121
  {
122
122
  "package": "@rxap/rxjs",
123
- "version": "1.1.17"
123
+ "version": "1.1.18-dev.1"
124
124
  },
125
125
  {
126
126
  "package": "@rxap/services",
127
- "version": "19.1.0"
127
+ "version": "21.0.1-dev.1"
128
128
  },
129
129
  {
130
130
  "package": "@rxap/utilities",
131
- "version": "16.5.1"
131
+ "version": "16.5.2-dev.1"
132
132
  }
133
133
  ]
134
134
  },
@@ -144,15 +144,16 @@
144
144
  "schematics": "./generators.json",
145
145
  "sideEffects": false,
146
146
  "module": "fesm2022/rxap-ngx-material-localize.mjs",
147
- "typings": "index.d.ts",
147
+ "typings": "types/rxap-ngx-material-localize.d.ts",
148
148
  "exports": {
149
149
  "./package.json": {
150
150
  "default": "./package.json"
151
151
  },
152
152
  ".": {
153
- "types": "./index.d.ts",
153
+ "types": "./types/rxap-ngx-material-localize.d.ts",
154
154
  "default": "./fesm2022/rxap-ngx-material-localize.mjs"
155
155
  },
156
156
  "./theme": "./theme.css"
157
- }
157
+ },
158
+ "type": "module"
158
159
  }
@@ -0,0 +1,116 @@
1
+ import * as i0 from '@angular/core';
2
+ import { StaticProvider } from '@angular/core';
3
+ import * as dist_packages_angular_config_types_rxap_config from 'dist/packages/angular/config/types/rxap-config';
4
+ import { MatDatepickerIntl } from '@angular/material/datepicker';
5
+ import { Subject } from 'rxjs';
6
+ import { MatPaginatorIntl } from '@angular/material/paginator';
7
+ import { MatStepperIntl } from '@angular/material/stepper';
8
+
9
+ declare class LanguageSelectorMenuItemComponent {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectorMenuItemComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSelectorMenuItemComponent, "rxap-language-selector-menu-item", never, {}, {}, never, never, true, never>;
12
+ }
13
+
14
+ declare class LanguageSelectorComponent {
15
+ private readonly language;
16
+ readonly hasLanguages: i0.Signal<boolean>;
17
+ readonly languages: i0.Signal<dist_packages_angular_config_types_rxap_config.LanguagesConfig>;
18
+ readonly selectedLanguage: i0.Signal<string>;
19
+ readonly autoReload: i0.InputSignal<boolean>;
20
+ selectLanguage(language: string): Promise<void>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectorComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSelectorComponent, "rxap-language-selector", never, { "autoReload": { "alias": "autoReload"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
+ }
24
+
25
+ declare class I18nMatDatepickerIntl implements MatDatepickerIntl {
26
+ comparisonDateLabel: string;
27
+ /**
28
+ * Stream that emits whenever the labels here are changed. Use this to notify
29
+ * components if the labels have changed after initialization.
30
+ */
31
+ readonly changes: Subject<void>;
32
+ /** A label for the calendar popup (used by screen readers). */
33
+ calendarLabel: string;
34
+ /** A label for the button used to open the calendar popup (used by screen readers). */
35
+ openCalendarLabel: string;
36
+ /** Label for the button used to close the calendar popup. */
37
+ closeCalendarLabel: string;
38
+ /** A label for the previous month button (used by screen readers). */
39
+ prevMonthLabel: string;
40
+ /** A label for the next month button (used by screen readers). */
41
+ nextMonthLabel: string;
42
+ /** A label for the previous year button (used by screen readers). */
43
+ prevYearLabel: string;
44
+ /** A label for the next year button (used by screen readers). */
45
+ nextYearLabel: string;
46
+ /** A label for the previous multi-year button (used by screen readers). */
47
+ prevMultiYearLabel: string;
48
+ /** A label for the next multi-year button (used by screen readers). */
49
+ nextMultiYearLabel: string;
50
+ /** A label for the 'switch to month view' button (used by screen readers). */
51
+ switchToMonthViewLabel: string;
52
+ /** A label for the 'switch to year view' button (used by screen readers). */
53
+ switchToMultiYearViewLabel: string;
54
+ /**
55
+ * A label for the first date of a range of dates (used by screen readers).
56
+ * @deprecated Provide your own internationalization string.
57
+ * @breaking-change 17.0.0
58
+ */
59
+ startDateLabel: string;
60
+ /**
61
+ * A label for the last date of a range of dates (used by screen readers).
62
+ * @deprecated Provide your own internationalization string.
63
+ * @breaking-change 17.0.0
64
+ */
65
+ endDateLabel: string;
66
+ /** Formats a range of years (used for visuals). */
67
+ formatYearRange(start: string, end: string): string;
68
+ /** Formats a label for a range of years (used by screen readers). */
69
+ formatYearRangeLabel(start: string, end: string): string;
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nMatDatepickerIntl, never>;
71
+ static ɵprov: i0.ɵɵInjectableDeclaration<I18nMatDatepickerIntl>;
72
+ }
73
+ declare const I18N_MAT_DATEPICKER_INTL_PROVIDER: StaticProvider;
74
+ declare function ProvideI18nMatDatepickerIntl(): StaticProvider;
75
+
76
+ declare class I18nMatPaginatorIntl implements MatPaginatorIntl {
77
+ changes: Subject<void>;
78
+ /** A label for the page size selector. */
79
+ itemsPerPageLabel: string;
80
+ /** A label for the button that increments the current page. */
81
+ nextPageLabel: string;
82
+ /** A label for the button that decrements the current page. */
83
+ previousPageLabel: string;
84
+ /** A label for the button that moves to the first page. */
85
+ firstPageLabel: string;
86
+ /** A label for the button that moves to the last page. */
87
+ lastPageLabel: string;
88
+ /** A label for the range of items within the current page and the length of the whole list. */
89
+ getRangeLabel: (page: number, pageSize: number, length: number) => string;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nMatPaginatorIntl, never>;
91
+ static ɵprov: i0.ɵɵInjectableDeclaration<I18nMatPaginatorIntl>;
92
+ }
93
+ declare const I18N_MAT_PAGINATOR_INTL_PROVIDER: StaticProvider;
94
+ declare function ProvideI18nMatPaginatorIntl(): StaticProvider;
95
+
96
+ declare function ProvideI18nMatIntl(): i0.StaticProvider[];
97
+
98
+ declare class I18nMatStepperIntl implements MatStepperIntl {
99
+ /**
100
+ * Stream that emits whenever the labels here are changed. Use this to notify
101
+ * components if the labels have changed after initialization.
102
+ */
103
+ readonly changes: Subject<void>;
104
+ /** Label that is rendered below optional steps. */
105
+ optionalLabel: string;
106
+ /** Label that is used to indicate step as completed to screen readers. */
107
+ completedLabel: string;
108
+ /** Label that is used to indicate step as editable to screen readers. */
109
+ editableLabel: string;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nMatStepperIntl, never>;
111
+ static ɵprov: i0.ɵɵInjectableDeclaration<I18nMatStepperIntl>;
112
+ }
113
+ declare const I18N_MAT_STEPPER_INTL_PROVIDER: StaticProvider;
114
+ declare function ProvideI18nMatStepperIntl(): StaticProvider;
115
+
116
+ 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 };
package/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './lib/language-selector-menu-item/language-selector-menu-item.component';
2
- export * from './lib/language-selector/language-selector.component';
3
- export * from './lib/datepicker';
4
- export * from './lib/paginator';
5
- export * from './lib/provide';
6
- export * from './lib/stepper';
@@ -1,54 +0,0 @@
1
- import { StaticProvider } from '@angular/core';
2
- import { MatDatepickerIntl } from '@angular/material/datepicker';
3
- import { Subject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class I18nMatDatepickerIntl implements MatDatepickerIntl {
6
- comparisonDateLabel: string;
7
- /**
8
- * Stream that emits whenever the labels here are changed. Use this to notify
9
- * components if the labels have changed after initialization.
10
- */
11
- readonly changes: Subject<void>;
12
- /** A label for the calendar popup (used by screen readers). */
13
- calendarLabel: string;
14
- /** A label for the button used to open the calendar popup (used by screen readers). */
15
- openCalendarLabel: string;
16
- /** Label for the button used to close the calendar popup. */
17
- closeCalendarLabel: string;
18
- /** A label for the previous month button (used by screen readers). */
19
- prevMonthLabel: string;
20
- /** A label for the next month button (used by screen readers). */
21
- nextMonthLabel: string;
22
- /** A label for the previous year button (used by screen readers). */
23
- prevYearLabel: string;
24
- /** A label for the next year button (used by screen readers). */
25
- nextYearLabel: string;
26
- /** A label for the previous multi-year button (used by screen readers). */
27
- prevMultiYearLabel: string;
28
- /** A label for the next multi-year button (used by screen readers). */
29
- nextMultiYearLabel: string;
30
- /** A label for the 'switch to month view' button (used by screen readers). */
31
- switchToMonthViewLabel: string;
32
- /** A label for the 'switch to year view' button (used by screen readers). */
33
- switchToMultiYearViewLabel: string;
34
- /**
35
- * A label for the first date of a range of dates (used by screen readers).
36
- * @deprecated Provide your own internationalization string.
37
- * @breaking-change 17.0.0
38
- */
39
- startDateLabel: string;
40
- /**
41
- * A label for the last date of a range of dates (used by screen readers).
42
- * @deprecated Provide your own internationalization string.
43
- * @breaking-change 17.0.0
44
- */
45
- endDateLabel: string;
46
- /** Formats a range of years (used for visuals). */
47
- formatYearRange(start: string, end: string): string;
48
- /** Formats a label for a range of years (used by screen readers). */
49
- formatYearRangeLabel(start: string, end: string): string;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<I18nMatDatepickerIntl, never>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<I18nMatDatepickerIntl>;
52
- }
53
- export declare const I18N_MAT_DATEPICKER_INTL_PROVIDER: StaticProvider;
54
- export declare function ProvideI18nMatDatepickerIntl(): StaticProvider;
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class LanguageSelectorComponent {
3
- private readonly language;
4
- readonly hasLanguages: import("@angular/core").Signal<boolean>;
5
- readonly languages: import("@angular/core").Signal<import("@rxap/config").LanguagesConfig>;
6
- readonly selectedLanguage: import("@angular/core").Signal<string>;
7
- readonly autoReload: import("@angular/core").InputSignal<boolean>;
8
- selectLanguage(language: string): Promise<void>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectorComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSelectorComponent, "rxap-language-selector", never, { "autoReload": { "alias": "autoReload"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class LanguageSelectorMenuItemComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectorMenuItemComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSelectorMenuItemComponent, "rxap-language-selector-menu-item", never, {}, {}, never, never, true, never>;
5
- }
@@ -1,23 +0,0 @@
1
- import { StaticProvider } from '@angular/core';
2
- import { MatPaginatorIntl } from '@angular/material/paginator';
3
- import { Subject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class I18nMatPaginatorIntl implements MatPaginatorIntl {
6
- changes: Subject<void>;
7
- /** A label for the page size selector. */
8
- itemsPerPageLabel: string;
9
- /** A label for the button that increments the current page. */
10
- nextPageLabel: string;
11
- /** A label for the button that decrements the current page. */
12
- previousPageLabel: string;
13
- /** A label for the button that moves to the first page. */
14
- firstPageLabel: string;
15
- /** A label for the button that moves to the last page. */
16
- lastPageLabel: string;
17
- /** A label for the range of items within the current page and the length of the whole list. */
18
- getRangeLabel: (page: number, pageSize: number, length: number) => string;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<I18nMatPaginatorIntl, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<I18nMatPaginatorIntl>;
21
- }
22
- export declare const I18N_MAT_PAGINATOR_INTL_PROVIDER: StaticProvider;
23
- export declare function ProvideI18nMatPaginatorIntl(): StaticProvider;
package/lib/provide.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function ProvideI18nMatIntl(): import("@angular/core").StaticProvider[];
package/lib/stepper.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import { StaticProvider } from '@angular/core';
2
- import { MatStepperIntl } from '@angular/material/stepper';
3
- import { Subject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class I18nMatStepperIntl implements MatStepperIntl {
6
- /**
7
- * Stream that emits whenever the labels here are changed. Use this to notify
8
- * components if the labels have changed after initialization.
9
- */
10
- readonly changes: Subject<void>;
11
- /** Label that is rendered below optional steps. */
12
- optionalLabel: string;
13
- /** Label that is used to indicate step as completed to screen readers. */
14
- completedLabel: string;
15
- /** Label that is used to indicate step as editable to screen readers. */
16
- editableLabel: string;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<I18nMatStepperIntl, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<I18nMatStepperIntl>;
19
- }
20
- export declare const I18N_MAT_STEPPER_INTL_PROVIDER: StaticProvider;
21
- export declare function ProvideI18nMatStepperIntl(): StaticProvider;