@sixbell-telco/sdk 2.0.1 → 3.0.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.
- package/CHANGELOG.md +134 -1
- package/README.md +360 -87
- package/_index.css +0 -3
- package/components/accordion/accordion-item/accordion-item.component.d.ts +3 -4
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +28 -1
- package/components/audio-player/src/audio-player.component.d.ts +7 -3
- package/components/audio-player/volume-control/volume-control.component.d.ts +28 -1
- package/components/button/src/button.component.d.ts +46 -1
- package/components/card/card-actions/card-actions.component.d.ts +4 -4
- package/components/card/card-body/card-body.component.d.ts +5 -0
- package/components/card/card-context.d.ts +8 -0
- package/components/card/card-footer/card-footer.component.d.ts +7 -0
- package/components/card/card-header/card-header.component.d.ts +5 -0
- package/components/card/card-header-aside/card-header-aside.component.d.ts +5 -0
- package/components/card/card-section/card-section.component.d.ts +5 -0
- package/components/card/card-section-body/card-section-body.component.d.ts +5 -0
- package/components/card/card-section-footer/card-section-footer.component.d.ts +5 -0
- package/components/card/card-section-group/card-section-group.component.d.ts +16 -0
- package/components/card/card-section-header/card-section-header.component.d.ts +5 -0
- package/components/card/card-section-header-aside/card-section-header-aside.component.d.ts +5 -0
- package/components/card/card-subtitle/card-subtitle.component.d.ts +34 -0
- package/components/card/card-title/card-title.component.d.ts +23 -14
- package/components/card/public-api.d.ts +12 -1
- package/components/card/src/card.component.d.ts +5 -1
- package/components/data-table/actions/actions.component.d.ts +67 -0
- package/components/data-table/actions/actions.types.d.ts +38 -0
- package/components/data-table/data-table-empty-actions/data-table-empty-actions.component.d.ts +5 -0
- package/components/data-table/public-api.d.ts +3 -0
- package/components/data-table/sortable-header/sortable-header.component.d.ts +2 -0
- package/components/data-table/src/data-table.component.d.ts +24 -7
- package/components/dialog/src/dialog.component.d.ts +51 -5
- package/{directives/typography → components/divider}/index.d.ts +1 -1
- package/components/divider/public-api.d.ts +1 -0
- package/components/divider/src/divider.component.d.ts +13 -0
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +2 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +37 -1
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +33 -1
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +33 -1
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +53 -2
- package/components/dropdown/src/dropdown.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +2 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +33 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +33 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +33 -1
- package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +1 -3
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +33 -1
- package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -1
- package/components/dual-list/src/dual-list.component.d.ts +3 -2
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +46 -1
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +33 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +46 -2
- package/components/forms/combobox/src/combobox.component.d.ts +40 -5
- package/components/forms/date-picker/src/date-picker.component.d.ts +14 -1
- package/components/forms/form-error/src/form-error.component.d.ts +8 -1
- package/components/forms/form-group/README.md +114 -0
- package/components/forms/form-group/index.d.ts +5 -0
- package/components/forms/form-group/public-api.d.ts +1 -0
- package/components/forms/form-group/src/form-group.component.d.ts +150 -0
- package/components/forms/form-item/README.md +17 -0
- package/components/forms/form-item/index.d.ts +5 -0
- package/components/forms/form-item/public-api.d.ts +1 -0
- package/components/forms/form-item/src/form-item.component.d.ts +5 -0
- package/components/forms/input/src/input.component.d.ts +32 -10
- package/components/forms/radio/src/radio.component.d.ts +46 -2
- package/components/forms/range/src/range.component.d.ts +38 -1
- package/components/forms/select/src/select.component.d.ts +40 -5
- package/components/forms/switch/src/switch.component.d.ts +46 -2
- package/components/forms/textarea/src/textarea.component.d.ts +49 -4
- package/components/forms/toggle/src/toggle.component.d.ts +46 -1
- package/components/overlay/overlay-content/overlay-content.component.d.ts +2 -1
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +37 -5
- package/components/overlay/src/overlay.component.d.ts +4 -5
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +46 -1
- package/components/paginator/src/paginator.component.d.ts +7 -1
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +3 -4
- package/components/table/public-api.d.ts +2 -0
- package/components/table/src/table.component.d.ts +72 -7
- package/components/table/table-action/table-action.component.d.ts +2 -6
- package/components/table/table-actions/table-actions.component.d.ts +52 -6
- package/components/table/table-actions/table-actions.types.d.ts +28 -0
- package/components/table/table-empty-actions/table-empty-actions.component.d.ts +5 -0
- package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +5 -11
- package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +5 -11
- package/components/{toast → text}/index.d.ts +1 -1
- package/components/text/public-api.d.ts +2 -0
- package/components/text/src/text.component.d.ts +38 -0
- package/components/tooltip/src/tooltip.component.d.ts +10 -1
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -3
- package/directives/auto-focus/src/auto-focus.directive.d.ts +5 -9
- package/directives/click-outside/src/click-outside.directive.d.ts +1 -3
- package/directives/only-numbers/public-api.d.ts +0 -5
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -14
- package/directives/text/index.d.ts +5 -0
- package/directives/text/public-api.d.ts +1 -0
- package/directives/text/src/text.directive.d.ts +87 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +9 -12
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +130 -50
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +10 -11
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +79 -5
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +414 -47
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +236 -59
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +87 -17
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +44 -0
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +166 -13
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +69 -21
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +283 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +8 -6
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +148 -9
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +69 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +96 -19
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +32 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +12 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +159 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +20 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +48 -14
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +69 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +57 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +89 -18
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +80 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +112 -11
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +71 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +94 -42
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +113 -24
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +5 -9
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +565 -89
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-text.mjs +308 -0
- package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +15 -3
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +16 -19
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +7 -10
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +11 -31
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +160 -0
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +490 -0
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +7 -12
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +55 -12
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +90 -74
- package/utils/formatting/README.md +100 -0
- package/utils/formatting/index.d.ts +5 -0
- package/utils/formatting/public-api.d.ts +9 -0
- package/utils/formatting/src/constants/constants.d.ts +18 -0
- package/utils/formatting/src/models/formatting.d.ts +33 -0
- package/utils/formatting/src/pipes/currency/st-currency.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/date/st-date.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/decimal/st-decimal.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/percent/st-percent.pipe.d.ts +9 -0
- package/utils/formatting/src/service/formatting.service.d.ts +13 -0
- package/utils/formatting/src/utils/date-format/date-format.d.ts +9 -0
- package/utils/formatting/src/utils/number-format/number-format.d.ts +12 -0
- package/utils/logger/README.md +8 -19
- package/utils/runtime-config/README.md +1 -1
- package/utils/theme/README.md +21 -2
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +2 -3
- package/utils/translation/README.md +40 -10
- package/utils/translation/public-api.d.ts +1 -1
- package/utils/translation/src/constants.d.ts +9 -2
- package/utils/translation/src/models/translation.d.ts +11 -0
- package/utils/translation/src/providers/translation.provider.d.ts +1 -1
- package/utils/translation/src/translation-dom/translation-dom.service.d.ts +2 -3
- package/utils/translation/src/translation.service.d.ts +6 -1
- package/assets/styles/toast.css +0 -63
- package/components/card/card-content/card-content.component.d.ts +0 -30
- package/components/toast/public-api.d.ts +0 -12
- package/components/toast/services/toast.service.d.ts +0 -35
- package/components/toast/toast-message/toast-message.component.d.ts +0 -29
- package/components/toast/toasts-container/toasts-container.component.d.ts +0 -21
- package/directives/typography/public-api.d.ts +0 -1
- package/directives/typography/src/typography.directive.d.ts +0 -68
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +0 -185
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +0 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +0 -126
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +0 -1
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, computed, Injectable, Pipe } from '@angular/core';
|
|
3
|
+
import { TranslationService } from '@sixbell-telco/sdk/utils/translation';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Source for ISO 4217 currency codes: SIX Group list-one.xml (published 2026-01-01).
|
|
9
|
+
* Codes are deduplicated and checked in to keep the SDK self-contained at runtime.
|
|
10
|
+
*/
|
|
11
|
+
const CURRENCY_CODES = [
|
|
12
|
+
'AED',
|
|
13
|
+
'AFN',
|
|
14
|
+
'ALL',
|
|
15
|
+
'AMD',
|
|
16
|
+
'AOA',
|
|
17
|
+
'ARS',
|
|
18
|
+
'AUD',
|
|
19
|
+
'AWG',
|
|
20
|
+
'AZN',
|
|
21
|
+
'BAM',
|
|
22
|
+
'BBD',
|
|
23
|
+
'BDT',
|
|
24
|
+
'BHD',
|
|
25
|
+
'BIF',
|
|
26
|
+
'BMD',
|
|
27
|
+
'BND',
|
|
28
|
+
'BOB',
|
|
29
|
+
'BOV',
|
|
30
|
+
'BRL',
|
|
31
|
+
'BSD',
|
|
32
|
+
'BTN',
|
|
33
|
+
'BWP',
|
|
34
|
+
'BYN',
|
|
35
|
+
'BZD',
|
|
36
|
+
'CAD',
|
|
37
|
+
'CDF',
|
|
38
|
+
'CHE',
|
|
39
|
+
'CHF',
|
|
40
|
+
'CHW',
|
|
41
|
+
'CLF',
|
|
42
|
+
'CLP',
|
|
43
|
+
'CNY',
|
|
44
|
+
'COP',
|
|
45
|
+
'COU',
|
|
46
|
+
'CRC',
|
|
47
|
+
'CUP',
|
|
48
|
+
'CVE',
|
|
49
|
+
'CZK',
|
|
50
|
+
'DJF',
|
|
51
|
+
'DKK',
|
|
52
|
+
'DOP',
|
|
53
|
+
'DZD',
|
|
54
|
+
'EGP',
|
|
55
|
+
'ERN',
|
|
56
|
+
'ETB',
|
|
57
|
+
'EUR',
|
|
58
|
+
'FJD',
|
|
59
|
+
'FKP',
|
|
60
|
+
'GBP',
|
|
61
|
+
'GEL',
|
|
62
|
+
'GHS',
|
|
63
|
+
'GIP',
|
|
64
|
+
'GMD',
|
|
65
|
+
'GNF',
|
|
66
|
+
'GTQ',
|
|
67
|
+
'GYD',
|
|
68
|
+
'HKD',
|
|
69
|
+
'HNL',
|
|
70
|
+
'HTG',
|
|
71
|
+
'HUF',
|
|
72
|
+
'IDR',
|
|
73
|
+
'ILS',
|
|
74
|
+
'INR',
|
|
75
|
+
'IQD',
|
|
76
|
+
'IRR',
|
|
77
|
+
'ISK',
|
|
78
|
+
'JMD',
|
|
79
|
+
'JOD',
|
|
80
|
+
'JPY',
|
|
81
|
+
'KES',
|
|
82
|
+
'KGS',
|
|
83
|
+
'KHR',
|
|
84
|
+
'KMF',
|
|
85
|
+
'KPW',
|
|
86
|
+
'KRW',
|
|
87
|
+
'KWD',
|
|
88
|
+
'KYD',
|
|
89
|
+
'KZT',
|
|
90
|
+
'LAK',
|
|
91
|
+
'LBP',
|
|
92
|
+
'LKR',
|
|
93
|
+
'LRD',
|
|
94
|
+
'LSL',
|
|
95
|
+
'LYD',
|
|
96
|
+
'MAD',
|
|
97
|
+
'MDL',
|
|
98
|
+
'MGA',
|
|
99
|
+
'MKD',
|
|
100
|
+
'MMK',
|
|
101
|
+
'MNT',
|
|
102
|
+
'MOP',
|
|
103
|
+
'MRU',
|
|
104
|
+
'MUR',
|
|
105
|
+
'MVR',
|
|
106
|
+
'MWK',
|
|
107
|
+
'MXN',
|
|
108
|
+
'MXV',
|
|
109
|
+
'MYR',
|
|
110
|
+
'MZN',
|
|
111
|
+
'NAD',
|
|
112
|
+
'NGN',
|
|
113
|
+
'NIO',
|
|
114
|
+
'NOK',
|
|
115
|
+
'NPR',
|
|
116
|
+
'NZD',
|
|
117
|
+
'OMR',
|
|
118
|
+
'PAB',
|
|
119
|
+
'PEN',
|
|
120
|
+
'PGK',
|
|
121
|
+
'PHP',
|
|
122
|
+
'PKR',
|
|
123
|
+
'PLN',
|
|
124
|
+
'PYG',
|
|
125
|
+
'QAR',
|
|
126
|
+
'RON',
|
|
127
|
+
'RSD',
|
|
128
|
+
'RUB',
|
|
129
|
+
'RWF',
|
|
130
|
+
'SAR',
|
|
131
|
+
'SBD',
|
|
132
|
+
'SCR',
|
|
133
|
+
'SDG',
|
|
134
|
+
'SEK',
|
|
135
|
+
'SGD',
|
|
136
|
+
'SHP',
|
|
137
|
+
'SLE',
|
|
138
|
+
'SOS',
|
|
139
|
+
'SRD',
|
|
140
|
+
'SSP',
|
|
141
|
+
'STN',
|
|
142
|
+
'SVC',
|
|
143
|
+
'SYP',
|
|
144
|
+
'SZL',
|
|
145
|
+
'THB',
|
|
146
|
+
'TJS',
|
|
147
|
+
'TMT',
|
|
148
|
+
'TND',
|
|
149
|
+
'TOP',
|
|
150
|
+
'TRY',
|
|
151
|
+
'TTD',
|
|
152
|
+
'TWD',
|
|
153
|
+
'TZS',
|
|
154
|
+
'UAH',
|
|
155
|
+
'UGX',
|
|
156
|
+
'USD',
|
|
157
|
+
'USN',
|
|
158
|
+
'UYI',
|
|
159
|
+
'UYU',
|
|
160
|
+
'UYW',
|
|
161
|
+
'UZS',
|
|
162
|
+
'VED',
|
|
163
|
+
'VES',
|
|
164
|
+
'VND',
|
|
165
|
+
'VUV',
|
|
166
|
+
'WST',
|
|
167
|
+
'XAD',
|
|
168
|
+
'XAF',
|
|
169
|
+
'XAG',
|
|
170
|
+
'XAU',
|
|
171
|
+
'XBA',
|
|
172
|
+
'XBB',
|
|
173
|
+
'XBC',
|
|
174
|
+
'XBD',
|
|
175
|
+
'XCD',
|
|
176
|
+
'XCG',
|
|
177
|
+
'XDR',
|
|
178
|
+
'XOF',
|
|
179
|
+
'XPD',
|
|
180
|
+
'XPF',
|
|
181
|
+
'XPT',
|
|
182
|
+
'XSU',
|
|
183
|
+
'XTS',
|
|
184
|
+
'XUA',
|
|
185
|
+
'XXX',
|
|
186
|
+
'YER',
|
|
187
|
+
'ZAR',
|
|
188
|
+
'ZMW',
|
|
189
|
+
'ZWG',
|
|
190
|
+
];
|
|
191
|
+
const CURRENCY_DISPLAYS = ['symbol', 'code', 'name', 'narrowSymbol'];
|
|
192
|
+
const DATE_LOCALE_PRESETS = ['locale-short', 'locale-medium', 'locale-long', 'locale-full'];
|
|
193
|
+
const DATE_COMMON_FORMATS = ['YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YYYY HH:mm:ss', 'MMMM D, YYYY', 'dddd, D [de] MMMM [de] YYYY'];
|
|
194
|
+
const DATE_FORMAT_OPTIONS = [...DATE_COMMON_FORMATS, ...DATE_LOCALE_PRESETS];
|
|
195
|
+
const CURRENCY_DIGITS_PRESETS = ['1.0-0', '1.2-2', '1.2-4'];
|
|
196
|
+
const DECIMAL_DIGITS_PRESETS = ['1.0-0', '1.2-2', '1.2-4'];
|
|
197
|
+
const PERCENT_DIGITS_PRESETS = ['1.0-0', '1.1-1', '1.2-2'];
|
|
198
|
+
const DIGITS_INFO_PRESETS = ['1.0-0', '1.0-2', '1.1-1', '1.2-2', '1.2-4'];
|
|
199
|
+
const DEFAULT_DATE_FORMAT = 'locale-medium';
|
|
200
|
+
const DEFAULT_DATE_FALLBACK = '';
|
|
201
|
+
const DEFAULT_CURRENCY_DIGITS = '1.2-2';
|
|
202
|
+
const DEFAULT_DECIMAL_DIGITS = '1.0-3';
|
|
203
|
+
const DEFAULT_PERCENT_DIGITS = '1.0-2';
|
|
204
|
+
|
|
205
|
+
dayjs.extend(customParseFormat);
|
|
206
|
+
const DATE_ONLY_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
207
|
+
function isDateInstance(value) {
|
|
208
|
+
return value instanceof Date && !Number.isNaN(value.getTime());
|
|
209
|
+
}
|
|
210
|
+
function parseDateOnly(value) {
|
|
211
|
+
const match = DATE_ONLY_PATTERN.exec(value);
|
|
212
|
+
if (!match) {
|
|
213
|
+
return null;
|
|
214
|
+
}
|
|
215
|
+
const [, year, month, day] = match;
|
|
216
|
+
return new Date(Number(year), Number(month) - 1, Number(day));
|
|
217
|
+
}
|
|
218
|
+
function isLocaleDatePreset(value) {
|
|
219
|
+
return typeof value === 'string' && DATE_LOCALE_PRESETS.includes(value);
|
|
220
|
+
}
|
|
221
|
+
function isDatePreset(value) {
|
|
222
|
+
return DATE_LOCALE_PRESETS.includes(value);
|
|
223
|
+
}
|
|
224
|
+
function normalizeDateForIntl(value) {
|
|
225
|
+
if (value === null || value === undefined || value === '') {
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
if (isDateInstance(value)) {
|
|
229
|
+
return value;
|
|
230
|
+
}
|
|
231
|
+
if (typeof value === 'number') {
|
|
232
|
+
const date = new Date(value);
|
|
233
|
+
return Number.isNaN(date.getTime()) ? null : date;
|
|
234
|
+
}
|
|
235
|
+
if (typeof value === 'string') {
|
|
236
|
+
const dateOnly = parseDateOnly(value);
|
|
237
|
+
if (dateOnly) {
|
|
238
|
+
return dateOnly;
|
|
239
|
+
}
|
|
240
|
+
const date = new Date(value);
|
|
241
|
+
return Number.isNaN(date.getTime()) ? null : date;
|
|
242
|
+
}
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
function normalizeDateForPattern(value) {
|
|
246
|
+
if (value === null || value === undefined || value === '') {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
if (typeof value === 'string') {
|
|
250
|
+
const dateOnly = parseDateOnly(value);
|
|
251
|
+
if (dateOnly) {
|
|
252
|
+
return dayjs(dateOnly);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
const parsed = dayjs(value);
|
|
256
|
+
return parsed.isValid() ? parsed : null;
|
|
257
|
+
}
|
|
258
|
+
function resolveIntlDateOptions(format) {
|
|
259
|
+
switch (format) {
|
|
260
|
+
case 'locale-short':
|
|
261
|
+
return { dateStyle: 'short' };
|
|
262
|
+
case 'locale-long':
|
|
263
|
+
return { dateStyle: 'long' };
|
|
264
|
+
case 'locale-full':
|
|
265
|
+
return { dateStyle: 'full' };
|
|
266
|
+
case 'locale-medium':
|
|
267
|
+
default:
|
|
268
|
+
return { dateStyle: 'medium' };
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
function formatDateWithIntl(value, format, locale, fallback = DEFAULT_DATE_FALLBACK) {
|
|
272
|
+
const normalized = normalizeDateForIntl(value);
|
|
273
|
+
if (!normalized) {
|
|
274
|
+
return fallback;
|
|
275
|
+
}
|
|
276
|
+
return new Intl.DateTimeFormat(locale, resolveIntlDateOptions(format)).format(normalized);
|
|
277
|
+
}
|
|
278
|
+
function formatDateWithPattern(value, format, locale, fallback = DEFAULT_DATE_FALLBACK) {
|
|
279
|
+
const normalized = normalizeDateForPattern(value);
|
|
280
|
+
if (!normalized) {
|
|
281
|
+
return fallback;
|
|
282
|
+
}
|
|
283
|
+
const date = normalized.toDate();
|
|
284
|
+
const hour24 = date.getHours();
|
|
285
|
+
const hour12 = hour24 % 12 || 12;
|
|
286
|
+
const monthLong = new Intl.DateTimeFormat(locale, { month: 'long' }).format(date);
|
|
287
|
+
const monthShort = new Intl.DateTimeFormat(locale, { month: 'short' }).format(date);
|
|
288
|
+
const weekdayLong = new Intl.DateTimeFormat(locale, { weekday: 'long' }).format(date);
|
|
289
|
+
const weekdayShort = new Intl.DateTimeFormat(locale, { weekday: 'short' }).format(date);
|
|
290
|
+
const replacements = [
|
|
291
|
+
['YYYY', String(date.getFullYear()).padStart(4, '0')],
|
|
292
|
+
['YY', String(date.getFullYear()).slice(-2)],
|
|
293
|
+
['MMMM', monthLong],
|
|
294
|
+
['MMM', monthShort],
|
|
295
|
+
['MM', String(date.getMonth() + 1).padStart(2, '0')],
|
|
296
|
+
['M', String(date.getMonth() + 1)],
|
|
297
|
+
['DD', String(date.getDate()).padStart(2, '0')],
|
|
298
|
+
['D', String(date.getDate())],
|
|
299
|
+
['dddd', weekdayLong],
|
|
300
|
+
['ddd', weekdayShort],
|
|
301
|
+
['HH', String(hour24).padStart(2, '0')],
|
|
302
|
+
['H', String(hour24)],
|
|
303
|
+
['hh', String(hour12).padStart(2, '0')],
|
|
304
|
+
['h', String(hour12)],
|
|
305
|
+
['mm', String(date.getMinutes()).padStart(2, '0')],
|
|
306
|
+
['m', String(date.getMinutes())],
|
|
307
|
+
['ss', String(date.getSeconds()).padStart(2, '0')],
|
|
308
|
+
['s', String(date.getSeconds())],
|
|
309
|
+
['A', hour24 >= 12 ? 'PM' : 'AM'],
|
|
310
|
+
['a', hour24 >= 12 ? 'pm' : 'am'],
|
|
311
|
+
];
|
|
312
|
+
const replacementMap = new Map(replacements);
|
|
313
|
+
const tokenPattern = /(YYYY|MMMM|dddd|MMM|ddd|YY|MM|DD|HH|hh|mm|ss|M|D|H|h|m|s|A|a)/g;
|
|
314
|
+
return format.replace(tokenPattern, (token) => replacementMap.get(token) ?? token);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
const DIGITS_INFO_PATTERN = /^(\d+)?\.((\d+)(-(\d+))?)$/;
|
|
318
|
+
const currencyCodeSet = new Set(CURRENCY_CODES);
|
|
319
|
+
const currencyDisplaySet = new Set(CURRENCY_DISPLAYS);
|
|
320
|
+
function isDigitsInfo(value) {
|
|
321
|
+
return DIGITS_INFO_PATTERN.test(value.trim());
|
|
322
|
+
}
|
|
323
|
+
function isCurrencyDisplay(value) {
|
|
324
|
+
return currencyDisplaySet.has(value);
|
|
325
|
+
}
|
|
326
|
+
function isIso4217CurrencyCode(value) {
|
|
327
|
+
return currencyCodeSet.has(value.toUpperCase());
|
|
328
|
+
}
|
|
329
|
+
function parseDigitsInfo(digitsInfo) {
|
|
330
|
+
if (!digitsInfo) {
|
|
331
|
+
return {};
|
|
332
|
+
}
|
|
333
|
+
const match = DIGITS_INFO_PATTERN.exec(digitsInfo.trim());
|
|
334
|
+
if (!match) {
|
|
335
|
+
return {};
|
|
336
|
+
}
|
|
337
|
+
const minimumIntegerDigits = Number(match[1] ?? '1');
|
|
338
|
+
const minimumFractionDigits = Number(match[3] ?? '0');
|
|
339
|
+
const maximumFractionDigits = Number(match[5] ?? match[3] ?? '0');
|
|
340
|
+
return {
|
|
341
|
+
minimumIntegerDigits,
|
|
342
|
+
minimumFractionDigits,
|
|
343
|
+
maximumFractionDigits: Math.max(minimumFractionDigits, maximumFractionDigits),
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
function toNumericValue(value) {
|
|
347
|
+
if (value === null || value === undefined || value === '') {
|
|
348
|
+
return null;
|
|
349
|
+
}
|
|
350
|
+
const numericValue = typeof value === 'number' ? value : Number(value);
|
|
351
|
+
return Number.isFinite(numericValue) ? numericValue : null;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
class FormattingService {
|
|
355
|
+
translationService = inject(TranslationService);
|
|
356
|
+
currentLocale = computed(() => this.translationService.currentLocale());
|
|
357
|
+
getCurrentLocale() {
|
|
358
|
+
return this.currentLocale();
|
|
359
|
+
}
|
|
360
|
+
formatDate(value, format = DEFAULT_DATE_FORMAT, options) {
|
|
361
|
+
const locale = options?.locale ?? this.getCurrentLocale();
|
|
362
|
+
const fallback = options?.fallback ?? DEFAULT_DATE_FALLBACK;
|
|
363
|
+
if (isLocaleDatePreset(format)) {
|
|
364
|
+
return formatDateWithIntl(value, format, locale, fallback);
|
|
365
|
+
}
|
|
366
|
+
return formatDateWithPattern(value, format, locale, fallback);
|
|
367
|
+
}
|
|
368
|
+
formatCurrency(value, currencyCode, options) {
|
|
369
|
+
const numericValue = toNumericValue(value);
|
|
370
|
+
if (numericValue === null) {
|
|
371
|
+
return options?.fallback ?? DEFAULT_DATE_FALLBACK;
|
|
372
|
+
}
|
|
373
|
+
try {
|
|
374
|
+
return new Intl.NumberFormat(options?.locale ?? this.getCurrentLocale(), {
|
|
375
|
+
style: 'currency',
|
|
376
|
+
currency: currencyCode,
|
|
377
|
+
currencyDisplay: options?.display ?? 'symbol',
|
|
378
|
+
...parseDigitsInfo(options?.digitsInfo),
|
|
379
|
+
}).format(numericValue);
|
|
380
|
+
}
|
|
381
|
+
catch {
|
|
382
|
+
const formattedNumber = new Intl.NumberFormat(options?.locale ?? this.getCurrentLocale(), {
|
|
383
|
+
style: 'decimal',
|
|
384
|
+
...parseDigitsInfo(options?.digitsInfo ?? DEFAULT_DECIMAL_DIGITS),
|
|
385
|
+
}).format(numericValue);
|
|
386
|
+
return `${currencyCode} ${formattedNumber}`;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
formatDecimal(value, options) {
|
|
390
|
+
const numericValue = toNumericValue(value);
|
|
391
|
+
if (numericValue === null) {
|
|
392
|
+
return options?.fallback ?? DEFAULT_DATE_FALLBACK;
|
|
393
|
+
}
|
|
394
|
+
return new Intl.NumberFormat(options?.locale ?? this.getCurrentLocale(), {
|
|
395
|
+
style: 'decimal',
|
|
396
|
+
...parseDigitsInfo(options?.digitsInfo ?? DEFAULT_DECIMAL_DIGITS),
|
|
397
|
+
}).format(numericValue);
|
|
398
|
+
}
|
|
399
|
+
formatPercent(value, options) {
|
|
400
|
+
const numericValue = toNumericValue(value);
|
|
401
|
+
if (numericValue === null) {
|
|
402
|
+
return options?.fallback ?? DEFAULT_DATE_FALLBACK;
|
|
403
|
+
}
|
|
404
|
+
return new Intl.NumberFormat(options?.locale ?? this.getCurrentLocale(), {
|
|
405
|
+
style: 'percent',
|
|
406
|
+
...parseDigitsInfo(options?.digitsInfo ?? DEFAULT_PERCENT_DIGITS),
|
|
407
|
+
}).format(numericValue);
|
|
408
|
+
}
|
|
409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: FormattingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
410
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: FormattingService, providedIn: 'root' });
|
|
411
|
+
}
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: FormattingService, decorators: [{
|
|
413
|
+
type: Injectable,
|
|
414
|
+
args: [{ providedIn: 'root' }]
|
|
415
|
+
}] });
|
|
416
|
+
|
|
417
|
+
class StCurrencyPipe {
|
|
418
|
+
formattingService = inject(FormattingService);
|
|
419
|
+
transform(value, currencyCode, display = 'symbol', digitsInfo, fallback = '') {
|
|
420
|
+
return this.formattingService.formatCurrency(value, currencyCode, { display, digitsInfo, fallback });
|
|
421
|
+
}
|
|
422
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: StCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
423
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: StCurrencyPipe, isStandalone: true, name: "stCurrency", pure: false });
|
|
424
|
+
}
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: StCurrencyPipe, decorators: [{
|
|
426
|
+
type: Pipe,
|
|
427
|
+
args: [{
|
|
428
|
+
name: 'stCurrency',
|
|
429
|
+
standalone: true,
|
|
430
|
+
pure: false,
|
|
431
|
+
}]
|
|
432
|
+
}] });
|
|
433
|
+
|
|
434
|
+
class StDatePipe {
|
|
435
|
+
formattingService = inject(FormattingService);
|
|
436
|
+
transform(value, format = DEFAULT_DATE_FORMAT, fallback = '') {
|
|
437
|
+
return this.formattingService.formatDate(value, format, { fallback });
|
|
438
|
+
}
|
|
439
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: StDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
440
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: StDatePipe, isStandalone: true, name: "stDate", pure: false });
|
|
441
|
+
}
|
|
442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: StDatePipe, decorators: [{
|
|
443
|
+
type: Pipe,
|
|
444
|
+
args: [{
|
|
445
|
+
name: 'stDate',
|
|
446
|
+
standalone: true,
|
|
447
|
+
pure: false,
|
|
448
|
+
}]
|
|
449
|
+
}] });
|
|
450
|
+
|
|
451
|
+
class StDecimalPipe {
|
|
452
|
+
formattingService = inject(FormattingService);
|
|
453
|
+
transform(value, digitsInfo, fallback = '') {
|
|
454
|
+
return this.formattingService.formatDecimal(value, { digitsInfo, fallback });
|
|
455
|
+
}
|
|
456
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: StDecimalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
457
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: StDecimalPipe, isStandalone: true, name: "stDecimal", pure: false });
|
|
458
|
+
}
|
|
459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: StDecimalPipe, decorators: [{
|
|
460
|
+
type: Pipe,
|
|
461
|
+
args: [{
|
|
462
|
+
name: 'stDecimal',
|
|
463
|
+
standalone: true,
|
|
464
|
+
pure: false,
|
|
465
|
+
}]
|
|
466
|
+
}] });
|
|
467
|
+
|
|
468
|
+
class StPercentPipe {
|
|
469
|
+
formattingService = inject(FormattingService);
|
|
470
|
+
transform(value, digitsInfo, fallback = '') {
|
|
471
|
+
return this.formattingService.formatPercent(value, { digitsInfo, fallback });
|
|
472
|
+
}
|
|
473
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: StPercentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
474
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: StPercentPipe, isStandalone: true, name: "stPercent", pure: false });
|
|
475
|
+
}
|
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: StPercentPipe, decorators: [{
|
|
477
|
+
type: Pipe,
|
|
478
|
+
args: [{
|
|
479
|
+
name: 'stPercent',
|
|
480
|
+
standalone: true,
|
|
481
|
+
pure: false,
|
|
482
|
+
}]
|
|
483
|
+
}] });
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Generated bundle index. Do not edit.
|
|
487
|
+
*/
|
|
488
|
+
|
|
489
|
+
export { CURRENCY_CODES, CURRENCY_DIGITS_PRESETS, CURRENCY_DISPLAYS, DATE_COMMON_FORMATS, DATE_FORMAT_OPTIONS, DATE_LOCALE_PRESETS, DECIMAL_DIGITS_PRESETS, DEFAULT_CURRENCY_DIGITS, DEFAULT_DATE_FALLBACK, DEFAULT_DATE_FORMAT, DEFAULT_DECIMAL_DIGITS, DEFAULT_PERCENT_DIGITS, DIGITS_INFO_PATTERN, DIGITS_INFO_PRESETS, FormattingService, PERCENT_DIGITS_PRESETS, StCurrencyPipe, StDatePipe, StDecimalPipe, StPercentPipe, isCurrencyDisplay, isDatePreset, isDigitsInfo, isIso4217CurrencyCode, isLocaleDatePreset, parseDigitsInfo };
|
|
490
|
+
//# sourceMappingURL=sixbell-telco-sdk-utils-formatting.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-utils-formatting.mjs","sources":["../../../projects/sdk/utils/formatting/src/constants/constants.ts","../../../projects/sdk/utils/formatting/src/utils/date-format/date-format.ts","../../../projects/sdk/utils/formatting/src/utils/number-format/number-format.ts","../../../projects/sdk/utils/formatting/src/service/formatting.service.ts","../../../projects/sdk/utils/formatting/src/pipes/currency/st-currency.pipe.ts","../../../projects/sdk/utils/formatting/src/pipes/date/st-date.pipe.ts","../../../projects/sdk/utils/formatting/src/pipes/decimal/st-decimal.pipe.ts","../../../projects/sdk/utils/formatting/src/pipes/percent/st-percent.pipe.ts","../../../projects/sdk/utils/formatting/sixbell-telco-sdk-utils-formatting.ts"],"sourcesContent":["/**\n * Source for ISO 4217 currency codes: SIX Group list-one.xml (published 2026-01-01).\n * Codes are deduplicated and checked in to keep the SDK self-contained at runtime.\n */\nexport const CURRENCY_CODES = [\n\t'AED',\n\t'AFN',\n\t'ALL',\n\t'AMD',\n\t'AOA',\n\t'ARS',\n\t'AUD',\n\t'AWG',\n\t'AZN',\n\t'BAM',\n\t'BBD',\n\t'BDT',\n\t'BHD',\n\t'BIF',\n\t'BMD',\n\t'BND',\n\t'BOB',\n\t'BOV',\n\t'BRL',\n\t'BSD',\n\t'BTN',\n\t'BWP',\n\t'BYN',\n\t'BZD',\n\t'CAD',\n\t'CDF',\n\t'CHE',\n\t'CHF',\n\t'CHW',\n\t'CLF',\n\t'CLP',\n\t'CNY',\n\t'COP',\n\t'COU',\n\t'CRC',\n\t'CUP',\n\t'CVE',\n\t'CZK',\n\t'DJF',\n\t'DKK',\n\t'DOP',\n\t'DZD',\n\t'EGP',\n\t'ERN',\n\t'ETB',\n\t'EUR',\n\t'FJD',\n\t'FKP',\n\t'GBP',\n\t'GEL',\n\t'GHS',\n\t'GIP',\n\t'GMD',\n\t'GNF',\n\t'GTQ',\n\t'GYD',\n\t'HKD',\n\t'HNL',\n\t'HTG',\n\t'HUF',\n\t'IDR',\n\t'ILS',\n\t'INR',\n\t'IQD',\n\t'IRR',\n\t'ISK',\n\t'JMD',\n\t'JOD',\n\t'JPY',\n\t'KES',\n\t'KGS',\n\t'KHR',\n\t'KMF',\n\t'KPW',\n\t'KRW',\n\t'KWD',\n\t'KYD',\n\t'KZT',\n\t'LAK',\n\t'LBP',\n\t'LKR',\n\t'LRD',\n\t'LSL',\n\t'LYD',\n\t'MAD',\n\t'MDL',\n\t'MGA',\n\t'MKD',\n\t'MMK',\n\t'MNT',\n\t'MOP',\n\t'MRU',\n\t'MUR',\n\t'MVR',\n\t'MWK',\n\t'MXN',\n\t'MXV',\n\t'MYR',\n\t'MZN',\n\t'NAD',\n\t'NGN',\n\t'NIO',\n\t'NOK',\n\t'NPR',\n\t'NZD',\n\t'OMR',\n\t'PAB',\n\t'PEN',\n\t'PGK',\n\t'PHP',\n\t'PKR',\n\t'PLN',\n\t'PYG',\n\t'QAR',\n\t'RON',\n\t'RSD',\n\t'RUB',\n\t'RWF',\n\t'SAR',\n\t'SBD',\n\t'SCR',\n\t'SDG',\n\t'SEK',\n\t'SGD',\n\t'SHP',\n\t'SLE',\n\t'SOS',\n\t'SRD',\n\t'SSP',\n\t'STN',\n\t'SVC',\n\t'SYP',\n\t'SZL',\n\t'THB',\n\t'TJS',\n\t'TMT',\n\t'TND',\n\t'TOP',\n\t'TRY',\n\t'TTD',\n\t'TWD',\n\t'TZS',\n\t'UAH',\n\t'UGX',\n\t'USD',\n\t'USN',\n\t'UYI',\n\t'UYU',\n\t'UYW',\n\t'UZS',\n\t'VED',\n\t'VES',\n\t'VND',\n\t'VUV',\n\t'WST',\n\t'XAD',\n\t'XAF',\n\t'XAG',\n\t'XAU',\n\t'XBA',\n\t'XBB',\n\t'XBC',\n\t'XBD',\n\t'XCD',\n\t'XCG',\n\t'XDR',\n\t'XOF',\n\t'XPD',\n\t'XPF',\n\t'XPT',\n\t'XSU',\n\t'XTS',\n\t'XUA',\n\t'XXX',\n\t'YER',\n\t'ZAR',\n\t'ZMW',\n\t'ZWG',\n] as const;\n\nexport const CURRENCY_DISPLAYS = ['symbol', 'code', 'name', 'narrowSymbol'] as const;\n\nexport const DATE_LOCALE_PRESETS = ['locale-short', 'locale-medium', 'locale-long', 'locale-full'] as const;\n\nexport const DATE_COMMON_FORMATS = ['YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YYYY HH:mm:ss', 'MMMM D, YYYY', 'dddd, D [de] MMMM [de] YYYY'] as const;\n\nexport const DATE_FORMAT_OPTIONS = [...DATE_COMMON_FORMATS, ...DATE_LOCALE_PRESETS] as const;\n\nexport const CURRENCY_DIGITS_PRESETS = ['1.0-0', '1.2-2', '1.2-4'] as const;\n\nexport const DECIMAL_DIGITS_PRESETS = ['1.0-0', '1.2-2', '1.2-4'] as const;\n\nexport const PERCENT_DIGITS_PRESETS = ['1.0-0', '1.1-1', '1.2-2'] as const;\n\nexport const DIGITS_INFO_PRESETS = ['1.0-0', '1.0-2', '1.1-1', '1.2-2', '1.2-4'] as const;\n\nexport const DEFAULT_DATE_FORMAT = 'locale-medium' as const;\nexport const DEFAULT_DATE_FALLBACK = '' as const;\nexport const DEFAULT_CURRENCY_DIGITS = '1.2-2' as const;\nexport const DEFAULT_DECIMAL_DIGITS = '1.0-3' as const;\nexport const DEFAULT_PERCENT_DIGITS = '1.0-2' as const;\n","import dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport { DATE_LOCALE_PRESETS, DEFAULT_DATE_FALLBACK } from '../../constants/constants';\nimport { DateFormat, DatePreset, DateValue } from '../../models/formatting';\n\ndayjs.extend(customParseFormat);\n\nconst DATE_ONLY_PATTERN = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\n\nfunction isDateInstance(value: unknown): value is Date {\n\treturn value instanceof Date && !Number.isNaN(value.getTime());\n}\n\nfunction parseDateOnly(value: string): Date | null {\n\tconst match = DATE_ONLY_PATTERN.exec(value);\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [, year, month, day] = match;\n\treturn new Date(Number(year), Number(month) - 1, Number(day));\n}\n\nexport function isLocaleDatePreset(value: DateFormat): value is DatePreset {\n\treturn typeof value === 'string' && (DATE_LOCALE_PRESETS as readonly string[]).includes(value);\n}\n\nexport function isDatePreset(value: string): value is DatePreset {\n\treturn (DATE_LOCALE_PRESETS as readonly string[]).includes(value);\n}\n\nexport function normalizeDateForIntl(value: DateValue): Date | null {\n\tif (value === null || value === undefined || value === '') {\n\t\treturn null;\n\t}\n\n\tif (isDateInstance(value)) {\n\t\treturn value;\n\t}\n\n\tif (typeof value === 'number') {\n\t\tconst date = new Date(value);\n\t\treturn Number.isNaN(date.getTime()) ? null : date;\n\t}\n\n\tif (typeof value === 'string') {\n\t\tconst dateOnly = parseDateOnly(value);\n\t\tif (dateOnly) {\n\t\t\treturn dateOnly;\n\t\t}\n\n\t\tconst date = new Date(value);\n\t\treturn Number.isNaN(date.getTime()) ? null : date;\n\t}\n\n\treturn null;\n}\n\nexport function normalizeDateForPattern(value: DateValue) {\n\tif (value === null || value === undefined || value === '') {\n\t\treturn null;\n\t}\n\n\tif (typeof value === 'string') {\n\t\tconst dateOnly = parseDateOnly(value);\n\t\tif (dateOnly) {\n\t\t\treturn dayjs(dateOnly);\n\t\t}\n\t}\n\n\tconst parsed = dayjs(value);\n\treturn parsed.isValid() ? parsed : null;\n}\n\nexport function resolveIntlDateOptions(format: DatePreset): Intl.DateTimeFormatOptions {\n\tswitch (format) {\n\t\tcase 'locale-short':\n\t\t\treturn { dateStyle: 'short' };\n\t\tcase 'locale-long':\n\t\t\treturn { dateStyle: 'long' };\n\t\tcase 'locale-full':\n\t\t\treturn { dateStyle: 'full' };\n\t\tcase 'locale-medium':\n\t\tdefault:\n\t\t\treturn { dateStyle: 'medium' };\n\t}\n}\n\nexport function formatDateWithIntl(value: DateValue, format: DatePreset, locale: string, fallback: string = DEFAULT_DATE_FALLBACK): string {\n\tconst normalized = normalizeDateForIntl(value);\n\tif (!normalized) {\n\t\treturn fallback;\n\t}\n\n\treturn new Intl.DateTimeFormat(locale, resolveIntlDateOptions(format)).format(normalized);\n}\n\nexport function formatDateWithPattern(value: DateValue, format: string, locale: string, fallback: string = DEFAULT_DATE_FALLBACK): string {\n\tconst normalized = normalizeDateForPattern(value);\n\tif (!normalized) {\n\t\treturn fallback;\n\t}\n\n\tconst date = normalized.toDate();\n\tconst hour24 = date.getHours();\n\tconst hour12 = hour24 % 12 || 12;\n\tconst monthLong = new Intl.DateTimeFormat(locale, { month: 'long' }).format(date);\n\tconst monthShort = new Intl.DateTimeFormat(locale, { month: 'short' }).format(date);\n\tconst weekdayLong = new Intl.DateTimeFormat(locale, { weekday: 'long' }).format(date);\n\tconst weekdayShort = new Intl.DateTimeFormat(locale, { weekday: 'short' }).format(date);\n\n\tconst replacements: Array<[string, string]> = [\n\t\t['YYYY', String(date.getFullYear()).padStart(4, '0')],\n\t\t['YY', String(date.getFullYear()).slice(-2)],\n\t\t['MMMM', monthLong],\n\t\t['MMM', monthShort],\n\t\t['MM', String(date.getMonth() + 1).padStart(2, '0')],\n\t\t['M', String(date.getMonth() + 1)],\n\t\t['DD', String(date.getDate()).padStart(2, '0')],\n\t\t['D', String(date.getDate())],\n\t\t['dddd', weekdayLong],\n\t\t['ddd', weekdayShort],\n\t\t['HH', String(hour24).padStart(2, '0')],\n\t\t['H', String(hour24)],\n\t\t['hh', String(hour12).padStart(2, '0')],\n\t\t['h', String(hour12)],\n\t\t['mm', String(date.getMinutes()).padStart(2, '0')],\n\t\t['m', String(date.getMinutes())],\n\t\t['ss', String(date.getSeconds()).padStart(2, '0')],\n\t\t['s', String(date.getSeconds())],\n\t\t['A', hour24 >= 12 ? 'PM' : 'AM'],\n\t\t['a', hour24 >= 12 ? 'pm' : 'am'],\n\t];\n\n\tconst replacementMap = new Map(replacements);\n\tconst tokenPattern = /(YYYY|MMMM|dddd|MMM|ddd|YY|MM|DD|HH|hh|mm|ss|M|D|H|h|m|s|A|a)/g;\n\n\treturn format.replace(tokenPattern, (token) => replacementMap.get(token) ?? token);\n}\n","import { CURRENCY_CODES, CURRENCY_DISPLAYS } from '../../constants/constants';\nimport { CurrencyDisplay } from '../../models/formatting';\n\nexport interface ParsedDigitsInfo {\n\tminimumIntegerDigits?: number;\n\tminimumFractionDigits?: number;\n\tmaximumFractionDigits?: number;\n}\n\nexport const DIGITS_INFO_PATTERN = /^(\\d+)?\\.((\\d+)(-(\\d+))?)$/;\n\nconst currencyCodeSet = new Set<string>(CURRENCY_CODES);\nconst currencyDisplaySet = new Set<string>(CURRENCY_DISPLAYS);\n\nexport function isDigitsInfo(value: string): boolean {\n\treturn DIGITS_INFO_PATTERN.test(value.trim());\n}\n\nexport function isCurrencyDisplay(value: string): value is CurrencyDisplay {\n\treturn currencyDisplaySet.has(value);\n}\n\nexport function isIso4217CurrencyCode(value: string): boolean {\n\treturn currencyCodeSet.has(value.toUpperCase());\n}\n\nexport function parseDigitsInfo(digitsInfo?: string): ParsedDigitsInfo {\n\tif (!digitsInfo) {\n\t\treturn {};\n\t}\n\n\tconst match = DIGITS_INFO_PATTERN.exec(digitsInfo.trim());\n\tif (!match) {\n\t\treturn {};\n\t}\n\n\tconst minimumIntegerDigits = Number(match[1] ?? '1');\n\tconst minimumFractionDigits = Number(match[3] ?? '0');\n\tconst maximumFractionDigits = Number(match[5] ?? match[3] ?? '0');\n\n\treturn {\n\t\tminimumIntegerDigits,\n\t\tminimumFractionDigits,\n\t\tmaximumFractionDigits: Math.max(minimumFractionDigits, maximumFractionDigits),\n\t};\n}\n\nexport function toNumericValue(value: number | string | null | undefined): number | null {\n\tif (value === null || value === undefined || value === '') {\n\t\treturn null;\n\t}\n\n\tconst numericValue = typeof value === 'number' ? value : Number(value);\n\treturn Number.isFinite(numericValue) ? numericValue : null;\n}\n","import { computed, inject, Injectable } from '@angular/core';\nimport { TranslationService } from '@sixbell-telco/sdk/utils/translation';\nimport { DEFAULT_DATE_FALLBACK, DEFAULT_DATE_FORMAT, DEFAULT_DECIMAL_DIGITS, DEFAULT_PERCENT_DIGITS } from '../constants/constants';\nimport {\n\tCurrencyCode,\n\tCurrencyFormatOptions,\n\tDateFormat,\n\tDateFormatOptions,\n\tDateValue,\n\tDecimalFormatOptions,\n\tNumberValue,\n\tPercentFormatOptions,\n} from '../models/formatting';\nimport { formatDateWithIntl, formatDateWithPattern, isLocaleDatePreset } from '../utils/date-format/date-format';\nimport { parseDigitsInfo, toNumericValue } from '../utils/number-format/number-format';\n\n@Injectable({ providedIn: 'root' })\nexport class FormattingService {\n\tprivate readonly translationService = inject(TranslationService);\n\n\tpublic readonly currentLocale = computed(() => this.translationService.currentLocale());\n\n\tpublic getCurrentLocale(): string {\n\t\treturn this.currentLocale();\n\t}\n\n\tpublic formatDate(value: DateValue, format: DateFormat = DEFAULT_DATE_FORMAT, options?: DateFormatOptions): string {\n\t\tconst locale = options?.locale ?? this.getCurrentLocale();\n\t\tconst fallback = options?.fallback ?? DEFAULT_DATE_FALLBACK;\n\n\t\tif (isLocaleDatePreset(format)) {\n\t\t\treturn formatDateWithIntl(value, format, locale, fallback);\n\t\t}\n\n\t\treturn formatDateWithPattern(value, format, locale, fallback);\n\t}\n\n\tpublic formatCurrency(value: NumberValue, currencyCode: CurrencyCode, options?: CurrencyFormatOptions): string {\n\t\tconst numericValue = toNumericValue(value);\n\t\tif (numericValue === null) {\n\t\t\treturn options?.fallback ?? DEFAULT_DATE_FALLBACK;\n\t\t}\n\n\t\ttry {\n\t\t\treturn new Intl.NumberFormat(options?.locale ?? this.getCurrentLocale(), {\n\t\t\t\tstyle: 'currency',\n\t\t\t\tcurrency: currencyCode,\n\t\t\t\tcurrencyDisplay: options?.display ?? 'symbol',\n\t\t\t\t...parseDigitsInfo(options?.digitsInfo),\n\t\t\t}).format(numericValue);\n\t\t} catch {\n\t\t\tconst formattedNumber = new Intl.NumberFormat(options?.locale ?? this.getCurrentLocale(), {\n\t\t\t\tstyle: 'decimal',\n\t\t\t\t...parseDigitsInfo(options?.digitsInfo ?? DEFAULT_DECIMAL_DIGITS),\n\t\t\t}).format(numericValue);\n\n\t\t\treturn `${currencyCode} ${formattedNumber}`;\n\t\t}\n\t}\n\n\tpublic formatDecimal(value: NumberValue, options?: DecimalFormatOptions): string {\n\t\tconst numericValue = toNumericValue(value);\n\t\tif (numericValue === null) {\n\t\t\treturn options?.fallback ?? DEFAULT_DATE_FALLBACK;\n\t\t}\n\n\t\treturn new Intl.NumberFormat(options?.locale ?? this.getCurrentLocale(), {\n\t\t\tstyle: 'decimal',\n\t\t\t...parseDigitsInfo(options?.digitsInfo ?? DEFAULT_DECIMAL_DIGITS),\n\t\t}).format(numericValue);\n\t}\n\n\tpublic formatPercent(value: NumberValue, options?: PercentFormatOptions): string {\n\t\tconst numericValue = toNumericValue(value);\n\t\tif (numericValue === null) {\n\t\t\treturn options?.fallback ?? DEFAULT_DATE_FALLBACK;\n\t\t}\n\n\t\treturn new Intl.NumberFormat(options?.locale ?? this.getCurrentLocale(), {\n\t\t\tstyle: 'percent',\n\t\t\t...parseDigitsInfo(options?.digitsInfo ?? DEFAULT_PERCENT_DIGITS),\n\t\t}).format(numericValue);\n\t}\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { CurrencyCode, CurrencyDisplay, DigitsInfo, NumberValue } from '../../models/formatting';\nimport { FormattingService } from '../../service/formatting.service';\n\n@Pipe({\n\tname: 'stCurrency',\n\tstandalone: true,\n\tpure: false,\n})\nexport class StCurrencyPipe implements PipeTransform {\n\tprivate readonly formattingService = inject(FormattingService);\n\n\ttransform(value: NumberValue, currencyCode: CurrencyCode, display: CurrencyDisplay = 'symbol', digitsInfo?: DigitsInfo, fallback = ''): string {\n\t\treturn this.formattingService.formatCurrency(value, currencyCode, { display, digitsInfo, fallback });\n\t}\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DEFAULT_DATE_FORMAT } from '../../constants/constants';\nimport { DateFormat, DateValue } from '../../models/formatting';\nimport { FormattingService } from '../../service/formatting.service';\n\n@Pipe({\n\tname: 'stDate',\n\tstandalone: true,\n\tpure: false,\n})\nexport class StDatePipe implements PipeTransform {\n\tprivate readonly formattingService = inject(FormattingService);\n\n\ttransform(value: DateValue, format: DateFormat = DEFAULT_DATE_FORMAT, fallback = ''): string {\n\t\treturn this.formattingService.formatDate(value, format, { fallback });\n\t}\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DigitsInfo, NumberValue } from '../../models/formatting';\nimport { FormattingService } from '../../service/formatting.service';\n\n@Pipe({\n\tname: 'stDecimal',\n\tstandalone: true,\n\tpure: false,\n})\nexport class StDecimalPipe implements PipeTransform {\n\tprivate readonly formattingService = inject(FormattingService);\n\n\ttransform(value: NumberValue, digitsInfo?: DigitsInfo, fallback = ''): string {\n\t\treturn this.formattingService.formatDecimal(value, { digitsInfo, fallback });\n\t}\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DigitsInfo, NumberValue } from '../../models/formatting';\nimport { FormattingService } from '../../service/formatting.service';\n\n@Pipe({\n\tname: 'stPercent',\n\tstandalone: true,\n\tpure: false,\n})\nexport class StPercentPipe implements PipeTransform {\n\tprivate readonly formattingService = inject(FormattingService);\n\n\ttransform(value: NumberValue, digitsInfo?: DigitsInfo, fallback = ''): string {\n\t\treturn this.formattingService.formatPercent(value, { digitsInfo, fallback });\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AACU,MAAA,cAAc,GAAG;IAC7B,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;I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AA,CAAA;kBALzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,WAAW;AACjB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,KAAK;AACX,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable, signal,
|
|
2
|
+
import { inject, Injectable, signal, RendererFactory2, computed, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';
|
|
3
3
|
import { LoggerService } from '@sixbell-telco/sdk/utils/logger';
|
|
4
4
|
import { RuntimeConfigStore, RuntimeConfigLoader, RuntimeUpdateAdapter } from '@sixbell-telco/sdk/utils/runtime-config';
|
|
5
5
|
import { TranslationService } from '@sixbell-telco/sdk/utils/translation';
|
|
@@ -961,12 +961,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
961
961
|
* Decouples DOM operations from business logic
|
|
962
962
|
*/
|
|
963
963
|
class ThemeDomService {
|
|
964
|
-
rendererFactory;
|
|
965
|
-
document;
|
|
966
964
|
renderer;
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
965
|
+
rendererFactory = inject(RendererFactory2);
|
|
966
|
+
document = inject(DOCUMENT);
|
|
967
|
+
constructor() {
|
|
970
968
|
this.renderer = this.rendererFactory.createRenderer(null, null);
|
|
971
969
|
}
|
|
972
970
|
/**
|
|
@@ -1131,16 +1129,13 @@ ${declarations}
|
|
|
1131
1129
|
style.setAttribute('data-theme-style', themeName);
|
|
1132
1130
|
this.renderer.appendChild(this.document.head, style);
|
|
1133
1131
|
}
|
|
1134
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ThemeDomService, deps: [
|
|
1132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ThemeDomService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1135
1133
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ThemeDomService, providedIn: 'root' });
|
|
1136
1134
|
}
|
|
1137
1135
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ThemeDomService, decorators: [{
|
|
1138
1136
|
type: Injectable,
|
|
1139
1137
|
args: [{ providedIn: 'root' }]
|
|
1140
|
-
}], ctorParameters: () => [
|
|
1141
|
-
type: Inject,
|
|
1142
|
-
args: [DOCUMENT]
|
|
1143
|
-
}] }] });
|
|
1138
|
+
}], ctorParameters: () => [] });
|
|
1144
1139
|
|
|
1145
1140
|
/**
|
|
1146
1141
|
* Theme Scheme Resolver Service
|
|
@@ -1347,7 +1342,7 @@ class ThemeService {
|
|
|
1347
1342
|
return formatSchemeName(scheme);
|
|
1348
1343
|
}
|
|
1349
1344
|
getLocalizedThemeName(theme) {
|
|
1350
|
-
const translationKey = `sdk.theme.
|
|
1345
|
+
const translationKey = `sdk.theme.catalog.${theme}`;
|
|
1351
1346
|
const translatedName = this.translationService.instant(translationKey);
|
|
1352
1347
|
if (translatedName && translatedName !== translationKey) {
|
|
1353
1348
|
return translatedName;
|