bitboss-ui 3.0.0-beta.72 → 3.0.0-beta.74
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/README.md +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +34 -7
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbCalendar.md +4 -3
- package/dist/ai/BbColorPalette.md +8 -9
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +4 -3
- package/dist/ai/BbDialog.md +17 -4
- package/dist/ai/BbDropdown.md +23 -10
- package/dist/ai/BbDropdownButton.md +2 -2
- package/dist/ai/BbForm.md +11 -7
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +5 -3
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbTable.md +43 -19
- package/dist/ai/BbTimePicker.md +4 -3
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/changelog.json +60 -4
- package/dist/ai/components.json +56 -20
- package/dist/ai/guides/design-tokens.md +20 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/use-confirm.md +4 -1
- package/dist/ai/guides/migration/v2-to-v3.md +24 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +3 -0
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbColorPalette.json +3 -3
- package/dist/ai/manifest/components/BbConfirm.removed.json +4 -4
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -3
- package/dist/ai/manifest/components/BbDialog.tree.json +5 -1
- package/dist/ai/manifest/components/BbDropdown.json +3 -3
- package/dist/ai/manifest/components/BbDropdown.tree.json +3 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -1
- package/dist/ai/manifest/components/BbTable.tree.json +12 -6
- package/dist/ai/manifest/components/BbTimePicker.json +3 -3
- package/dist/ai/manifest/components/BbToast.removed.json +1 -1
- package/dist/ai/manifest/components/BbToastPortal.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +36 -0
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +66 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +2 -0
- package/dist/ai/source/BbBreadcrumbs.md +4 -1
- package/dist/ai/source/BbCalendar.md +22 -12
- package/dist/ai/source/BbColorPalette.md +41 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +53 -22
- package/dist/ai/source/BbDatePickerInput.md +32 -8
- package/dist/ai/source/BbDialog.md +31 -1
- package/dist/ai/source/BbDropdown.md +52 -24
- package/dist/ai/source/BbDropdownGroup.md +17 -21
- package/dist/ai/source/BbForm.md +80 -6
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +5 -6
- package/dist/ai/source/BbOffCanvas.md +34 -1
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +7 -5
- package/dist/ai/source/BbTable.md +54 -6
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +50 -15
- package/dist/ai/source/BbTimePickerInput.md +30 -7
- package/dist/ai/source/BbToast.md +14 -0
- package/dist/ai/source/BbToastPortal.md +16 -4
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +4 -1
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +197 -192
- package/dist/components/BbColorPalette/types.d.ts +1 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +145 -139
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +337 -335
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +253 -245
- package/dist/components/BbDialog/leaveGhost.js +33 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +11 -3
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +119 -120
- package/dist/components/BbDropdown/types.d.ts +8 -17
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -0
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +385 -377
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +10 -12
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +231 -231
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +214 -213
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +5 -0
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- package/dist/composables/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- package/dist/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/index.d.ts +34 -30
- package/dist/llms-full.txt +874 -136
- package/dist/llms.txt +3 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +3 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/utilities/functions/hash.js +123 -3
- package/dist/utilities/functions/isEqual.js +69 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +2 -1
- package/dist/vite.js +8 -5
- package/llms.txt +3 -1
- package/package.json +2 -3
- package/scripts/README.md +43 -43
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +54 -6
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +153 -6
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- package/scripts/lib/validate-bb-markup.mjs +17 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// src/i18n/currencyDigits.ts
|
|
2
|
+
var e = {
|
|
3
|
+
ADP: 0,
|
|
4
|
+
AFN: 0,
|
|
5
|
+
ALL: 0,
|
|
6
|
+
BHD: 3,
|
|
7
|
+
BIF: 0,
|
|
8
|
+
BYR: 0,
|
|
9
|
+
CLF: 4,
|
|
10
|
+
CLP: 0,
|
|
11
|
+
COP: 0,
|
|
12
|
+
DJF: 0,
|
|
13
|
+
ESP: 0,
|
|
14
|
+
GNF: 0,
|
|
15
|
+
HUF: 0,
|
|
16
|
+
IDR: 0,
|
|
17
|
+
IQD: 0,
|
|
18
|
+
IRR: 0,
|
|
19
|
+
ISK: 0,
|
|
20
|
+
ITL: 0,
|
|
21
|
+
JOD: 3,
|
|
22
|
+
JPY: 0,
|
|
23
|
+
KMF: 0,
|
|
24
|
+
KPW: 0,
|
|
25
|
+
KRW: 0,
|
|
26
|
+
KWD: 3,
|
|
27
|
+
LAK: 0,
|
|
28
|
+
LBP: 0,
|
|
29
|
+
LUF: 0,
|
|
30
|
+
LYD: 3,
|
|
31
|
+
MGA: 0,
|
|
32
|
+
MGF: 0,
|
|
33
|
+
MMK: 0,
|
|
34
|
+
MRO: 0,
|
|
35
|
+
OMR: 3,
|
|
36
|
+
PKR: 0,
|
|
37
|
+
PYG: 0,
|
|
38
|
+
RWF: 0,
|
|
39
|
+
SLL: 0,
|
|
40
|
+
SOS: 0,
|
|
41
|
+
STD: 0,
|
|
42
|
+
SYP: 0,
|
|
43
|
+
TMM: 0,
|
|
44
|
+
TND: 3,
|
|
45
|
+
TRL: 0,
|
|
46
|
+
UGX: 0,
|
|
47
|
+
UYI: 0,
|
|
48
|
+
UYW: 4,
|
|
49
|
+
VND: 0,
|
|
50
|
+
VUV: 0,
|
|
51
|
+
XAF: 0,
|
|
52
|
+
XOF: 0,
|
|
53
|
+
XPF: 0,
|
|
54
|
+
YER: 0,
|
|
55
|
+
ZMK: 0,
|
|
56
|
+
ZWD: 0
|
|
57
|
+
};
|
|
58
|
+
export { e as CURRENCY_DIGITS };
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
// src/i18n/regionDates.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"ar-EG": {
|
|
4
|
+
date: "D/M/Y",
|
|
5
|
+
month: "M/Y",
|
|
6
|
+
am: "ص",
|
|
7
|
+
pm: "م"
|
|
8
|
+
},
|
|
9
|
+
"cs-CZ": {
|
|
10
|
+
date: "D.M.Y",
|
|
11
|
+
month: "M/Y",
|
|
12
|
+
am: "dop.",
|
|
13
|
+
pm: "odp."
|
|
14
|
+
},
|
|
15
|
+
"da-DK": {
|
|
16
|
+
date: "D.M.Y",
|
|
17
|
+
month: "M.Y",
|
|
18
|
+
am: "AM",
|
|
19
|
+
pm: "PM"
|
|
20
|
+
},
|
|
21
|
+
"de-AT": {
|
|
22
|
+
date: "D.M.Y",
|
|
23
|
+
month: "M/Y",
|
|
24
|
+
am: "AM",
|
|
25
|
+
pm: "PM"
|
|
26
|
+
},
|
|
27
|
+
"de-CH": {
|
|
28
|
+
date: "D.M.Y",
|
|
29
|
+
month: "M/Y",
|
|
30
|
+
am: "AM",
|
|
31
|
+
pm: "PM"
|
|
32
|
+
},
|
|
33
|
+
"de-DE": {
|
|
34
|
+
date: "D.M.Y",
|
|
35
|
+
month: "M/Y",
|
|
36
|
+
am: "AM",
|
|
37
|
+
pm: "PM"
|
|
38
|
+
},
|
|
39
|
+
"el-GR": {
|
|
40
|
+
date: "D/M/Y",
|
|
41
|
+
month: "M/Y",
|
|
42
|
+
am: "π.μ.",
|
|
43
|
+
pm: "μ.μ."
|
|
44
|
+
},
|
|
45
|
+
"en-AU": {
|
|
46
|
+
date: "D/M/Y",
|
|
47
|
+
month: "M/Y",
|
|
48
|
+
am: "am",
|
|
49
|
+
pm: "pm"
|
|
50
|
+
},
|
|
51
|
+
"en-CA": {
|
|
52
|
+
date: "Y-M-D",
|
|
53
|
+
month: "Y-M",
|
|
54
|
+
am: "a.m.",
|
|
55
|
+
pm: "p.m."
|
|
56
|
+
},
|
|
57
|
+
"en-GB": {
|
|
58
|
+
date: "D/M/Y",
|
|
59
|
+
month: "M/Y",
|
|
60
|
+
am: "am",
|
|
61
|
+
pm: "pm"
|
|
62
|
+
},
|
|
63
|
+
"en-IE": {
|
|
64
|
+
date: "D/M/Y",
|
|
65
|
+
month: "M/Y",
|
|
66
|
+
am: "am",
|
|
67
|
+
pm: "pm"
|
|
68
|
+
},
|
|
69
|
+
"en-US": {
|
|
70
|
+
date: "M/D/Y",
|
|
71
|
+
month: "M/Y",
|
|
72
|
+
am: "AM",
|
|
73
|
+
pm: "PM"
|
|
74
|
+
},
|
|
75
|
+
"es-ES": {
|
|
76
|
+
date: "D/M/Y",
|
|
77
|
+
month: "M/Y",
|
|
78
|
+
am: "a. m.",
|
|
79
|
+
pm: "p. m."
|
|
80
|
+
},
|
|
81
|
+
"es-MX": {
|
|
82
|
+
date: "D/M/Y",
|
|
83
|
+
month: "M/Y",
|
|
84
|
+
am: "a.m.",
|
|
85
|
+
pm: "p.m."
|
|
86
|
+
},
|
|
87
|
+
"fa-IR": {
|
|
88
|
+
date: "Y/M/D",
|
|
89
|
+
month: "Y/M",
|
|
90
|
+
am: "ق.ظ.",
|
|
91
|
+
pm: "ب.ظ."
|
|
92
|
+
},
|
|
93
|
+
"fi-FI": {
|
|
94
|
+
date: "D.M.Y",
|
|
95
|
+
month: "M.Y",
|
|
96
|
+
am: "ap.",
|
|
97
|
+
pm: "ip."
|
|
98
|
+
},
|
|
99
|
+
"fr-BE": {
|
|
100
|
+
date: "D/M/Y",
|
|
101
|
+
month: "M/Y",
|
|
102
|
+
am: "AM",
|
|
103
|
+
pm: "PM"
|
|
104
|
+
},
|
|
105
|
+
"fr-CA": {
|
|
106
|
+
date: "Y-M-D",
|
|
107
|
+
month: "Y-M",
|
|
108
|
+
am: "a.m.",
|
|
109
|
+
pm: "p.m."
|
|
110
|
+
},
|
|
111
|
+
"fr-CH": {
|
|
112
|
+
date: "D.M.Y",
|
|
113
|
+
month: "M.Y",
|
|
114
|
+
am: "AM",
|
|
115
|
+
pm: "PM"
|
|
116
|
+
},
|
|
117
|
+
"fr-FR": {
|
|
118
|
+
date: "D/M/Y",
|
|
119
|
+
month: "M/Y",
|
|
120
|
+
am: "AM",
|
|
121
|
+
pm: "PM"
|
|
122
|
+
},
|
|
123
|
+
"he-IL": {
|
|
124
|
+
date: "D.M.Y",
|
|
125
|
+
month: "M.Y",
|
|
126
|
+
am: "AM",
|
|
127
|
+
pm: "PM"
|
|
128
|
+
},
|
|
129
|
+
"hu-HU": {
|
|
130
|
+
date: "Y.M.D",
|
|
131
|
+
month: "Y.M",
|
|
132
|
+
am: "de.",
|
|
133
|
+
pm: "du."
|
|
134
|
+
},
|
|
135
|
+
"it-CH": {
|
|
136
|
+
date: "D.M.Y",
|
|
137
|
+
month: "M/Y",
|
|
138
|
+
am: "AM",
|
|
139
|
+
pm: "PM"
|
|
140
|
+
},
|
|
141
|
+
"it-IT": {
|
|
142
|
+
date: "D/M/Y",
|
|
143
|
+
month: "M/Y",
|
|
144
|
+
am: "AM",
|
|
145
|
+
pm: "PM"
|
|
146
|
+
},
|
|
147
|
+
"ja-JP": {
|
|
148
|
+
date: "Y/M/D",
|
|
149
|
+
month: "Y/M",
|
|
150
|
+
am: "午前",
|
|
151
|
+
pm: "午後"
|
|
152
|
+
},
|
|
153
|
+
"ko-KR": {
|
|
154
|
+
date: "Y.M.D",
|
|
155
|
+
month: "Y.M",
|
|
156
|
+
am: "오전",
|
|
157
|
+
pm: "오후"
|
|
158
|
+
},
|
|
159
|
+
"nb-NO": {
|
|
160
|
+
date: "D.M.Y",
|
|
161
|
+
month: "M.Y",
|
|
162
|
+
am: "a.m.",
|
|
163
|
+
pm: "p.m."
|
|
164
|
+
},
|
|
165
|
+
"nl-BE": {
|
|
166
|
+
date: "D/M/Y",
|
|
167
|
+
month: "M/Y",
|
|
168
|
+
am: "a.m.",
|
|
169
|
+
pm: "p.m."
|
|
170
|
+
},
|
|
171
|
+
"nl-NL": {
|
|
172
|
+
date: "D-M-Y",
|
|
173
|
+
month: "M-Y",
|
|
174
|
+
am: "a.m.",
|
|
175
|
+
pm: "p.m."
|
|
176
|
+
},
|
|
177
|
+
"pl-PL": {
|
|
178
|
+
date: "D.M.Y",
|
|
179
|
+
month: "M.Y",
|
|
180
|
+
am: "AM",
|
|
181
|
+
pm: "PM"
|
|
182
|
+
},
|
|
183
|
+
"pt-BR": {
|
|
184
|
+
date: "D/M/Y",
|
|
185
|
+
month: "M/Y",
|
|
186
|
+
am: "AM",
|
|
187
|
+
pm: "PM"
|
|
188
|
+
},
|
|
189
|
+
"pt-PT": {
|
|
190
|
+
date: "D/M/Y",
|
|
191
|
+
month: "M/Y",
|
|
192
|
+
am: "a.m.",
|
|
193
|
+
pm: "p.m."
|
|
194
|
+
},
|
|
195
|
+
"ro-RO": {
|
|
196
|
+
date: "D.M.Y",
|
|
197
|
+
month: "M.Y",
|
|
198
|
+
am: "a.m.",
|
|
199
|
+
pm: "p.m."
|
|
200
|
+
},
|
|
201
|
+
"ru-RU": {
|
|
202
|
+
date: "D.M.Y",
|
|
203
|
+
month: "M.Y",
|
|
204
|
+
am: "AM",
|
|
205
|
+
pm: "PM"
|
|
206
|
+
},
|
|
207
|
+
"sv-FI": {
|
|
208
|
+
date: "D.M.Y",
|
|
209
|
+
month: "M.Y",
|
|
210
|
+
am: "fm",
|
|
211
|
+
pm: "em"
|
|
212
|
+
},
|
|
213
|
+
"sv-SE": {
|
|
214
|
+
date: "Y-M-D",
|
|
215
|
+
month: "Y-M",
|
|
216
|
+
am: "fm",
|
|
217
|
+
pm: "em"
|
|
218
|
+
},
|
|
219
|
+
"tr-TR": {
|
|
220
|
+
date: "D.M.Y",
|
|
221
|
+
month: "M.Y",
|
|
222
|
+
am: "ÖÖ",
|
|
223
|
+
pm: "ÖS"
|
|
224
|
+
},
|
|
225
|
+
"uk-UA": {
|
|
226
|
+
date: "D.M.Y",
|
|
227
|
+
month: "M.Y",
|
|
228
|
+
am: "дп",
|
|
229
|
+
pm: "пп"
|
|
230
|
+
},
|
|
231
|
+
"zh-CN": {
|
|
232
|
+
date: "Y/M/D",
|
|
233
|
+
month: "Y年M",
|
|
234
|
+
am: "上午",
|
|
235
|
+
pm: "下午"
|
|
236
|
+
},
|
|
237
|
+
"zh-HK": {
|
|
238
|
+
date: "D/M/Y",
|
|
239
|
+
month: "M/Y",
|
|
240
|
+
am: "上午",
|
|
241
|
+
pm: "下午"
|
|
242
|
+
},
|
|
243
|
+
"zh-TW": {
|
|
244
|
+
date: "Y/M/D",
|
|
245
|
+
month: "Y/M",
|
|
246
|
+
am: "上午",
|
|
247
|
+
pm: "下午"
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
export { e as REGION_DATES };
|
package/dist/i18n/regionHints.js
CHANGED
|
@@ -1,48 +1,37 @@
|
|
|
1
1
|
import { dateLayoutFromHint as e, monthLayoutFromHint as t } from "../components/BbDatePickerInput/dateFieldLayout.js";
|
|
2
|
+
import { REGION_DATES as n } from "./regionDates.js";
|
|
2
3
|
// src/i18n/regionHints.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
month: "2-digit",
|
|
25
|
-
year: "numeric"
|
|
26
|
-
}), m = i(s, {
|
|
27
|
-
month: "2-digit",
|
|
28
|
-
year: "numeric"
|
|
29
|
-
});
|
|
30
|
-
if (!p || p.order.length !== 3 || !m || m.order.length !== 2) return null;
|
|
31
|
-
let h = p.order.map((e) => f(e, u, c.order)).join(p.separator), g = m.order.map((e) => f(e, d, l.order)).join(m.separator), _ = a(s, 3), v = a(s, 15), y = {
|
|
32
|
-
..._ && v && (_ !== r.meridiemAm || v !== r.meridiemPm) ? {
|
|
33
|
-
meridiemField: `${_}/${v}`,
|
|
34
|
-
meridiemAm: _,
|
|
35
|
-
meridiemPm: v
|
|
4
|
+
var r = /\p{L}+/gu, i = {
|
|
5
|
+
D: "day",
|
|
6
|
+
M: "month",
|
|
7
|
+
Y: "year"
|
|
8
|
+
}, a = (e) => ({
|
|
9
|
+
order: [...e.matchAll(/[DMY]/g)].map(([e]) => i[e]),
|
|
10
|
+
separator: e.split(/[DMY]/)[1]
|
|
11
|
+
}), o = (e, t, n) => `${n}${t.startsWith(e) && t.endsWith(e) ? t.slice(e.length, t.length - e.length) : " – "}${n}`;
|
|
12
|
+
function s(i, s, c) {
|
|
13
|
+
let l = n[s], u = n[c];
|
|
14
|
+
if (!l || !u) return null;
|
|
15
|
+
let d = e(i.dateFormatSingle, i.monthFormatSingle), f = t(i.monthFormatSingle);
|
|
16
|
+
if (!d || !f) return null;
|
|
17
|
+
let p = i.dateFormatSingle.match(r) ?? [], m = i.monthFormatSingle.match(r) ?? [], h = (e, t, n) => {
|
|
18
|
+
let { order: r, separator: i } = a(e);
|
|
19
|
+
return r.map((e) => t[n.indexOf(e)]).join(i);
|
|
20
|
+
}, g = l.date === u.date ? i.dateFormatSingle : h(l.date, p, d.order), _ = l.month === u.month ? i.monthFormatSingle : h(l.month, m, f.order), v = {
|
|
21
|
+
...l.am !== u.am || l.pm !== u.pm ? {
|
|
22
|
+
meridiemField: `${l.am}/${l.pm}`,
|
|
23
|
+
meridiemAm: l.am,
|
|
24
|
+
meridiemPm: l.pm
|
|
36
25
|
} : {
|
|
37
|
-
meridiemField:
|
|
38
|
-
meridiemAm:
|
|
39
|
-
meridiemPm:
|
|
26
|
+
meridiemField: i.meridiemField,
|
|
27
|
+
meridiemAm: i.meridiemAm,
|
|
28
|
+
meridiemPm: i.meridiemPm
|
|
40
29
|
},
|
|
41
|
-
dateFormatSingle:
|
|
42
|
-
dateFormatRange: o(
|
|
43
|
-
monthFormatSingle:
|
|
44
|
-
monthFormatRange: o(
|
|
30
|
+
dateFormatSingle: g,
|
|
31
|
+
dateFormatRange: o(i.dateFormatSingle, i.dateFormatRange, g),
|
|
32
|
+
monthFormatSingle: _,
|
|
33
|
+
monthFormatRange: o(i.monthFormatSingle, i.monthFormatRange, _)
|
|
45
34
|
};
|
|
46
|
-
return Object.keys(
|
|
35
|
+
return Object.keys(v).every((e) => v[e] === i[e]) ? null : v;
|
|
47
36
|
}
|
|
48
37
|
export { s as regionHints };
|
package/dist/index.d.ts
CHANGED
|
@@ -80,10 +80,12 @@ export { default as BbBaseButton } from './components/BbBaseButton/BbBaseButton.
|
|
|
80
80
|
export { default as BbBreadcrumbs } from './components/BbBreadcrumbs/BbBreadcrumbs.vue.js';
|
|
81
81
|
export { default as BbButton } from './components/BbButton/BbButton.vue.js';
|
|
82
82
|
export { default as BbCheckbox } from './components/BbCheckbox/BbCheckbox.vue.js';
|
|
83
|
+
export type { BbCheckboxSlots } from './components/BbCheckbox/types.js';
|
|
83
84
|
export { default as BbCheckboxGroup } from './components/BbCheckboxGroup/BbCheckboxGroup.vue.js';
|
|
84
85
|
export { default as BbBaseCheckboxIcon } from './components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.js';
|
|
85
86
|
export { default as BbCollapsible } from './components/BbCollapsible/BbCollapsible.vue.js';
|
|
86
87
|
export { default as BbColorInput } from './components/BbColorInput/BbColorInput.vue.js';
|
|
88
|
+
export type { BbColorInputSlots } from './components/BbColorInput/types.js';
|
|
87
89
|
export { default as BbColorPalette } from './components/BbColorPalette/BbColorPalette.vue.js';
|
|
88
90
|
export { vBbColor, BbColorDirectivePlugin } from './directives/bbColor.js';
|
|
89
91
|
export type { BbColorDirectiveValue } from './directives/bbColor.js';
|
|
@@ -160,55 +162,56 @@ export type { BbDropdownDirectiveValue } from './directives/bbDropdown.js';
|
|
|
160
162
|
* `PtMap` and the other pt building blocks are NOT exported, on purpose. See
|
|
161
163
|
* dist/ai/guides/passthrough.md § Typing `pt` in `<script>`.
|
|
162
164
|
*/
|
|
163
|
-
export type { BbBaseButtonProps } from './components/BbBaseButton/types.js';
|
|
165
|
+
export type { BbBaseButtonProps, BbBaseButtonSlots, } from './components/BbBaseButton/types.js';
|
|
164
166
|
export type { BbDialogProps, BbDialogEvents, BbDialogSlots, } from './components/BbDialog/types.js';
|
|
165
|
-
export type { BbAccordionProps, BbAccordionEvents, } from './components/BbAccordion/types.js';
|
|
166
|
-
export type { BbAlertProps, BbAlertEvents } from './components/BbAlert/types.js';
|
|
167
|
+
export type { BbAccordionProps, BbAccordionEvents, BbAccordionSlots, } from './components/BbAccordion/types.js';
|
|
168
|
+
export type { BbAlertProps, BbAlertEvents, BbAlertSlots, } from './components/BbAlert/types.js';
|
|
167
169
|
export type { BbAvatarProps } from './components/BbAvatar/BbAvatar.vue.js';
|
|
168
|
-
export type {
|
|
170
|
+
export type { BbAvatarSlots } from './components/BbAvatar/types.js';
|
|
171
|
+
export type { BbBadgeProps, BbBadgeEvents, BbBadgeButtonProps, BbBadgeSlots, BbBadgeButtonSlots, } from './components/BbBadge/types.js';
|
|
169
172
|
export type { BbAsteriskProps } from './components/BbAsterisk/types.js';
|
|
170
|
-
export type { BbConfirmPortalSlotProps } from './components/BbConfirm/types.js';
|
|
173
|
+
export type { BbConfirmPortalSlotProps, BbConfirmPortalSlots, } from './components/BbConfirm/types.js';
|
|
171
174
|
export type { BbHostProps } from './components/BbHost/types.js';
|
|
172
175
|
export type { BbIndicatorProps, BbIndicatorSlots, } from './components/BbIndicator/types.js';
|
|
173
|
-
export type { BbBreadcrumbsProps, Item as BbBreadcrumbsItem, } from './components/BbBreadcrumbs/types.js';
|
|
174
|
-
export type { BbButtonProps } from './components/BbButton/types.js';
|
|
175
|
-
export type { BbCheckboxGroupProps, BbCheckboxGroupEvents, } from './components/BbCheckboxGroup/types.js';
|
|
176
|
+
export type { BbBreadcrumbsProps, Item as BbBreadcrumbsItem, BbBreadcrumbsSlots, } from './components/BbBreadcrumbs/types.js';
|
|
177
|
+
export type { BbButtonProps, BbButtonSlots } from './components/BbButton/types.js';
|
|
178
|
+
export type { BbCheckboxGroupProps, BbCheckboxGroupEvents, BbCheckboxGroupSlots, } from './components/BbCheckboxGroup/types.js';
|
|
176
179
|
export type { BbBaseCheckboxIconProps } from './components/BbBaseCheckboxIcon/types.js';
|
|
177
180
|
export type { BbBaseRadioIconProps } from './components/BbBaseRadioIcon/types.js';
|
|
178
181
|
export type { BbBaseSwitchIconProps } from './components/BbBaseSwitchIcon/types.js';
|
|
179
182
|
export type { BbColorInputProps, BbColorInputEvents, } from './components/BbColorInput/BbColorInput.vue.js';
|
|
180
183
|
export type { BbColorPaletteProps, BbColorPaletteEvents, BbColorPaletteSlots, } from './components/BbColorPalette/BbColorPalette.vue.js';
|
|
181
184
|
export type { BbCheckboxProps, BbCheckboxEvents, } from './components/BbCheckbox/BbCheckbox.vue.js';
|
|
182
|
-
export type { BbCollapsibleProps } from './components/BbCollapsible/types.js';
|
|
185
|
+
export type { BbCollapsibleProps, BbCollapsibleSlots, } from './components/BbCollapsible/types.js';
|
|
183
186
|
export type { BbCalendarProps, BbCalendarEvents, BbDateValue, BbCalendarSlots, BbCalendarSegment, } from './components/BbCalendar/types.js';
|
|
184
187
|
export type { BbCarouselImage, BbCarouselProps, BbCarouselEvents, BbCarouselSlots, BbCarouselSlotProps, } from './components/BbCarousel/types.js';
|
|
185
188
|
export type { BbDatePickerProps, BbDatePickerEvents, BbDatePickerSlots, BbDatePickerSegment, } from './components/BbDatePicker/types.js';
|
|
186
|
-
export type { BbDatePickerInputProps, BbDatePickerInputEvents, DatePickerInputError, } from './components/BbDatePickerInput/types.js';
|
|
189
|
+
export type { BbDatePickerInputProps, BbDatePickerInputEvents, DatePickerInputError, BbDatePickerInputSlots, } from './components/BbDatePickerInput/types.js';
|
|
187
190
|
export type { BbTimePickerInputProps, BbTimePickerInputEvents, BbTimePickerInputSlots, TimePickerInputError, } from './components/BbTimePickerInput/types.js';
|
|
188
191
|
export type { BbTimePickerProps, BbTimePickerEvents, BbTimeValue, BbTimePickerSlots, BbTimePickerSegment, } from './components/BbTimePicker/types.js';
|
|
189
192
|
export type { Sizes as BbDialogSizes } from './components/BbDialog/types.js';
|
|
190
|
-
export type { BbDropdownButtonEvents, BbDropdownButtonProps, } from './components/BbDropdownButton/types.js';
|
|
191
|
-
export type { BbDropdownGroupModel, BbDropdownGroupProps, BbDropdownProps, BbDropdownEvents, DropdownGroupItemsGetter, Item as BbDropdownItem, BbDropdownItemProps, BbDropdownItemSlotProps, BbDropdownSlotGroup, } from './components/BbDropdown/types.js';
|
|
192
|
-
export type { BbDropzoneProps, DropZoneError, BbDropzoneEvents, BbDropzoneValue, } from './components/BbDropzone/types.js';
|
|
193
|
+
export type { BbDropdownButtonEvents, BbDropdownButtonProps, BbDropdownButtonSlots, } from './components/BbDropdownButton/types.js';
|
|
194
|
+
export type { BbDropdownGroupModel, BbDropdownGroupProps, BbDropdownProps, BbDropdownEvents, DropdownGroupItemsGetter, Item as BbDropdownItem, BbDropdownItemProps, BbDropdownItemSlotProps, BbDropdownSlotGroup, BbDropdownSlots, } from './components/BbDropdown/types.js';
|
|
195
|
+
export type { BbDropzoneProps, DropZoneError, BbDropzoneEvents, BbDropzoneValue, BbDropzoneSlots, } from './components/BbDropzone/types.js';
|
|
193
196
|
export type { BbIconProps, BbIconSize } from './components/BbIcon/types.js';
|
|
194
|
-
export type { BbNumberInputProps, BbNumberInputEvents, BbNumberSimpleUnit, BbNumberUnit, } from './components/BbNumberInput/types.js';
|
|
195
|
-
export type { BbOffCanvasProps, BbOffCanvasEvents, BbSnapPoint, } from './components/BbOffCanvas/types.js';
|
|
196
|
-
export type { BbPaginationProps, BbPaginationEvents, } from './components/BbPagination/types.js';
|
|
197
|
-
export type { BbPopoverProps, BbPopoverEvents, BbPopoverPortalSlotProps, } from './components/BbPopover/types.js';
|
|
198
|
-
export type { BbHoverCardProps, BbHoverCardEvents, BbHoverCardSlots, BbHoverCardPortalSlotProps, } from './components/BbHoverCard/types.js';
|
|
199
|
-
export type { BbGalleryItem, BbGalleryProps, } from './components/BbGallery/types.js';
|
|
197
|
+
export type { BbNumberInputProps, BbNumberInputEvents, BbNumberSimpleUnit, BbNumberUnit, BbNumberInputSlots, } from './components/BbNumberInput/types.js';
|
|
198
|
+
export type { BbOffCanvasProps, BbOffCanvasEvents, BbSnapPoint, BbOffCanvasSlots, } from './components/BbOffCanvas/types.js';
|
|
199
|
+
export type { BbPaginationProps, BbPaginationEvents, BbPaginationSlots, } from './components/BbPagination/types.js';
|
|
200
|
+
export type { BbPopoverProps, BbPopoverEvents, BbPopoverPortalSlotProps, BbPopoverSlots, BbPopoverPortalSlots, } from './components/BbPopover/types.js';
|
|
201
|
+
export type { BbHoverCardProps, BbHoverCardEvents, BbHoverCardSlots, BbHoverCardPortalSlotProps, BbHoverCardPortalSlots, } from './components/BbHoverCard/types.js';
|
|
202
|
+
export type { BbGalleryItem, BbGalleryProps, BbGallerySlots, } from './components/BbGallery/types.js';
|
|
200
203
|
export type { BbProgressProps } from './components/BbProgress/BbProgress.vue.js';
|
|
201
204
|
export type { BbComponentsMap, BbConfigScopeName, BbConfigScopeProps, BbConfigScopeSlots, } from './components/BbConfigScope/types.js';
|
|
202
|
-
export type { BbRadioGroupEvents, BbRadioGroupProps, } from './components/BbRadioGroup/types.js';
|
|
203
|
-
export type { BbRadioProps, BbRadioEvents } from './components/BbRadio/types.js';
|
|
204
|
-
export type { BbRatingProps, BbRatingEvents, } from './components/BbRating/types.js';
|
|
205
|
+
export type { BbRadioGroupEvents, BbRadioGroupProps, BbRadioGroupSlots, } from './components/BbRadioGroup/types.js';
|
|
206
|
+
export type { BbRadioProps, BbRadioEvents, BbRadioSlots, } from './components/BbRadio/types.js';
|
|
207
|
+
export type { BbRatingProps, BbRatingEvents, BbRatingSlots, } from './components/BbRating/types.js';
|
|
205
208
|
export type { BbSelectProps, BbSelectEvents, BbSelectKnownItem, BbSelectSlotRow, BbSelectSlots, } from './components/BbSelect/types.js';
|
|
206
|
-
export type { BbSliderProps, BbSliderEvents, BbSliderValue, } from './components/BbSlider/types.js';
|
|
209
|
+
export type { BbSliderProps, BbSliderEvents, BbSliderValue, BbSliderSlots, } from './components/BbSlider/types.js';
|
|
207
210
|
export type { BbSelectPopoverProps, BbSelectPopoverEvents, BbSelectPopoverSlots, BbSelectResolvedOption, } from './components/BbSelectPopover/types.js';
|
|
208
211
|
export type { BbSmoothHeightProps, BbSmoothHeightSlots, } from './components/BbSmoothHeight/types.js';
|
|
209
212
|
export type { BbSpinnerProps, Size as BbSpinnerSizes, } from './components/BbSpinner/types.js';
|
|
210
|
-
export type { BbSwitchGroupEvents, BbSwitchGroupProps, } from './components/BbSwitchGroup/types.js';
|
|
211
|
-
export type { BbSwitchProps, BbSwitchEvents, } from './components/BbSwitch/types.js';
|
|
213
|
+
export type { BbSwitchGroupEvents, BbSwitchGroupProps, BbSwitchGroupSlots, } from './components/BbSwitchGroup/types.js';
|
|
214
|
+
export type { BbSwitchProps, BbSwitchEvents, BbSwitchSlots, } from './components/BbSwitch/types.js';
|
|
212
215
|
export type { BbTableProps,
|
|
213
216
|
/**
|
|
214
217
|
* @deprecated
|
|
@@ -227,13 +230,14 @@ BbTabsEvents as BbTabEvents,
|
|
|
227
230
|
* @deprecated Renamed to `BbTabsItem`.
|
|
228
231
|
*/
|
|
229
232
|
BbTabsItem as BbTabItem, } from './components/BbTabs/types.js';
|
|
230
|
-
export type { BbTagProps, BbTagEvents } from './components/BbTag/types.js';
|
|
231
|
-
export type { BbTextareaProps, BbTextareaEvents, } from './components/BbTextarea/types.js';
|
|
232
|
-
export type { BbTextInputProps, BbTextInputEvents, } from './components/BbTextInput/types.js';
|
|
233
|
-
export type { BbToastOptions, BbToastPosition, BbToastPortalContext, BbToastUpdate, } from './components/BbToast/types.js';
|
|
234
|
-
export type { BbTooltipProps, BbTooltipVariant, } from './components/BbTooltip/types.js';
|
|
233
|
+
export type { BbTagProps, BbTagEvents, BbTagSlots, } from './components/BbTag/types.js';
|
|
234
|
+
export type { BbTextareaProps, BbTextareaEvents, BbTextareaSlots, } from './components/BbTextarea/types.js';
|
|
235
|
+
export type { BbTextInputProps, BbTextInputEvents, BbTextInputSlots, } from './components/BbTextInput/types.js';
|
|
236
|
+
export type { BbToastOptions, BbToastPosition, BbToastPortalContext, BbToastUpdate, BbToastPortalSlots, } from './components/BbToast/types.js';
|
|
237
|
+
export type { BbTooltipProps, BbTooltipVariant, BbTooltipSlots, } from './components/BbTooltip/types.js';
|
|
235
238
|
export type { BbTreeProps, BbTreeItem, BbTreeEvents, BbTreeSlots, } from './components/BbTree/types.js';
|
|
236
239
|
export { default as BbForm } from './components/BbForm/BbForm.vue.js';
|
|
240
|
+
export type { BbFormSlots } from './components/BbForm/types.js';
|
|
237
241
|
export { BbValidationError } from './components/BbForm/validationError.js';
|
|
238
242
|
export type { BbIsValidationError } from './components/BbForm/recognizeValidation.js';
|
|
239
243
|
export type { BbFormInvalidPayload, BbFormSubmitMeta, } from './components/BbForm/formSchema.js';
|