@dejwcake/craftable 0.1.9 → 2.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/README.md +117 -3
- package/dist/buildMatchPatternFn-BV4I8r8j.js +63 -0
- package/dist/buildMatchPatternFn-T5KjFTBQ.cjs +1 -0
- package/dist/craftable.css +2 -0
- package/dist/cs-B5QMxFrl.js +682 -0
- package/dist/cs-MAoetkhe.cjs +1 -0
- package/dist/de-BlQ2ZKmc.js +526 -0
- package/dist/de-BoVLAn6U.cjs +1 -0
- package/dist/en-US-BLvEnhs4.js +443 -0
- package/dist/en-US-Dz8vkDZ_.cjs +1 -0
- package/dist/en-US-X9gX759i.cjs +1 -0
- package/dist/es-DBHDeXHI.cjs +1 -0
- package/dist/es-YEqfkBY2.js +437 -0
- package/dist/fr-B7MHC2AN.js +407 -0
- package/dist/fr-DLs3QoNB.cjs +1 -0
- package/dist/hu-BKZPI9jH.cjs +1 -0
- package/dist/hu-reoJgNxD.js +425 -0
- package/dist/index.cjs +1 -0
- package/dist/index.mjs +3866 -0
- package/dist/isSameWeek-CC6GX_zp.js +40 -0
- package/dist/isSameWeek-Mctj6Tdj.cjs +1 -0
- package/dist/pl-B5A0Rjp7.js +628 -0
- package/dist/pl-BMyrOO-Q.cjs +1 -0
- package/dist/sk-B7JF2MoV.cjs +1 -0
- package/dist/sk-Btro3W4S.js +602 -0
- package/package.json +68 -40
- package/scripts/publish-components.js +118 -0
- package/scss/_images.scss +1 -1
- package/scss/_variables.scss +13 -6
- package/scss/app.scss +4 -4
- package/scss/overrides/_alerts.scss +0 -2
- package/scss/overrides/_badges.scss +1 -17
- package/scss/overrides/_buttons.scss +64 -7
- package/scss/overrides/_cards.scss +4 -51
- package/scss/overrides/_checkboxes.scss +54 -59
- package/scss/overrides/_forms.scss +270 -176
- package/scss/overrides/_index.scss +18 -18
- package/scss/overrides/_keyframes.scss +6 -4
- package/scss/overrides/_layout.scss +24 -30
- package/scss/overrides/_media-wysiwyg.scss +9 -111
- package/scss/overrides/_modal.scss +0 -18
- package/scss/overrides/_multiselect.scss +63 -7
- package/scss/overrides/_nav.scss +55 -33
- package/scss/overrides/_notifications.scss +6 -1
- package/scss/overrides/_pagination.scss +3 -3
- package/scss/overrides/_sidebar.scss +84 -0
- package/scss/overrides/_tables.scss +52 -37
- package/scss/overrides/_text.scss +1 -3
- package/scss/overrides/_wysiwyg.scss +151 -48
- package/scss/styles/_auth.scss +32 -37
- package/scss/styles/_custom.scss +44 -1
- package/scss/styles/_index.scss +4 -4
- package/scss/styles/_legacy.scss +5 -81
- package/scss/styles/_others.scss +232 -337
- package/scss/vendor/_index.scss +5 -4
- package/src/auth/ActivationError.vue +23 -0
- package/src/auth/ActivationForm.vue +69 -0
- package/src/auth/ForgotPasswordForm.vue +74 -0
- package/src/auth/LoginForm.vue +107 -0
- package/src/auth/ResetPasswordForm.vue +122 -0
- package/src/components/ConfirmModal.vue +65 -0
- package/src/components/UserDetailTooltip.vue +88 -0
- package/src/components/form/CkeditorEditor.vue +205 -0
- package/src/components/form/FormCheckbox.vue +29 -0
- package/src/components/form/FormDatePicker.vue +52 -0
- package/src/components/form/FormEmail.vue +17 -0
- package/src/components/form/FormInput.vue +31 -0
- package/src/components/form/FormLocalizedInput.vue +47 -0
- package/src/components/form/FormLocalizedWysiwyg.vue +55 -0
- package/src/components/form/FormLocalizedWysiwygSimple.vue +55 -0
- package/src/components/form/FormMultiSelect.vue +36 -0
- package/src/components/form/FormPasswordConfirm.vue +49 -0
- package/src/components/form/FormSelect.vue +35 -0
- package/src/components/form/FormSubmit.vue +13 -0
- package/src/components/form/FormTextarea.vue +31 -0
- package/src/components/form/FormWysiwyg.vue +31 -0
- package/src/components/form/FormWysiwygSimple.vue +31 -0
- package/src/components/form/LocalizationBar.vue +90 -0
- package/src/components/form/MediaUpload.vue +317 -0
- package/src/components/form/TiptapEditor.vue +238 -0
- package/src/components/listing/BulkCheckboxHeader.vue +18 -0
- package/src/components/listing/BulkCheckboxRow.vue +21 -0
- package/src/components/listing/BulkOperationsBar.vue +41 -0
- package/src/components/listing/DeleteButton.vue +46 -0
- package/src/components/listing/EditButton.vue +17 -0
- package/src/components/listing/EmptyState.vue +25 -0
- package/src/components/listing/ListingHeader.vue +24 -0
- package/src/components/listing/Pagination.vue +158 -0
- package/src/components/listing/PerPage.vue +15 -0
- package/src/components/listing/PublishedAtColumn.vue +226 -0
- package/src/components/listing/Search.vue +81 -0
- package/src/components/listing/Sortable.vue +28 -0
- package/src/components/listing/ToggleSwitch.vue +47 -0
- package/src/composables/useAdmin.js +39 -0
- package/src/composables/useBaseAuth.js +81 -0
- package/src/composables/useBaseForm.js +265 -0
- package/src/composables/useBaseListing.js +316 -0
- package/src/composables/useResponsiveColumns.js +62 -0
- package/src/index.js +62 -0
- package/src/translation/TranslationListing.vue +230 -0
- package/src/translation/modals/TranslationEditModal.vue +86 -0
- package/src/translation/modals/TranslationExportModal.vue +74 -0
- package/src/translation/modals/TranslationImportModal.vue +255 -0
- package/src/ui/index.js +99 -0
- package/src/utils/ckeditorHelpers.js +36 -0
- package/src/utils/dateFnsLocale.js +24 -0
- package/src/utils/dateFormatters.js +30 -0
- package/src/utils/mediaProps.js +14 -0
- package/src/utils/notify.js +22 -0
- package/dist/admin/Admin.js +0 -42
- package/dist/auth/Form.js +0 -15
- package/dist/base-components/Form/BaseForm.js +0 -392
- package/dist/base-components/Form/BaseUpload.js +0 -188
- package/dist/base-components/Form/bootstrap.js +0 -21
- package/dist/base-components/Listing/BaseListing.js +0 -454
- package/dist/base-components/Listing/components/Pagination.js +0 -105
- package/dist/base-components/Listing/components/Sortable.js +0 -48
- package/dist/base-components/Listing/components/UserDetailTooltip.js +0 -55
- package/dist/index.js +0 -70
- package/dist/overrides/trumbowyg.edit-embed-template.js +0 -72
- package/dist/overrides/trumbowyg.reupload.js +0 -146
- package/dist/overrides/trumbowyg.template.js +0 -67
- package/dist/translation/Form.js +0 -15
- package/dist/translation/Listing.js +0 -283
- package/dist/ui/index.js +0 -33
- package/scss/overrides/_switches.scss +0 -25
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./buildMatchPatternFn-BV4I8r8j.js";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var i = Object.defineProperty, a = (e, t) => {
|
|
4
|
+
let n = {};
|
|
5
|
+
for (var r in e) i(n, r, {
|
|
6
|
+
get: e[r],
|
|
7
|
+
enumerable: !0
|
|
8
|
+
});
|
|
9
|
+
return t || i(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
10
|
+
}, o = {
|
|
11
|
+
lessThanXSeconds: {
|
|
12
|
+
one: "less than a second",
|
|
13
|
+
other: "less than {{count}} seconds"
|
|
14
|
+
},
|
|
15
|
+
xSeconds: {
|
|
16
|
+
one: "1 second",
|
|
17
|
+
other: "{{count}} seconds"
|
|
18
|
+
},
|
|
19
|
+
halfAMinute: "half a minute",
|
|
20
|
+
lessThanXMinutes: {
|
|
21
|
+
one: "less than a minute",
|
|
22
|
+
other: "less than {{count}} minutes"
|
|
23
|
+
},
|
|
24
|
+
xMinutes: {
|
|
25
|
+
one: "1 minute",
|
|
26
|
+
other: "{{count}} minutes"
|
|
27
|
+
},
|
|
28
|
+
aboutXHours: {
|
|
29
|
+
one: "about 1 hour",
|
|
30
|
+
other: "about {{count}} hours"
|
|
31
|
+
},
|
|
32
|
+
xHours: {
|
|
33
|
+
one: "1 hour",
|
|
34
|
+
other: "{{count}} hours"
|
|
35
|
+
},
|
|
36
|
+
xDays: {
|
|
37
|
+
one: "1 day",
|
|
38
|
+
other: "{{count}} days"
|
|
39
|
+
},
|
|
40
|
+
aboutXWeeks: {
|
|
41
|
+
one: "about 1 week",
|
|
42
|
+
other: "about {{count}} weeks"
|
|
43
|
+
},
|
|
44
|
+
xWeeks: {
|
|
45
|
+
one: "1 week",
|
|
46
|
+
other: "{{count}} weeks"
|
|
47
|
+
},
|
|
48
|
+
aboutXMonths: {
|
|
49
|
+
one: "about 1 month",
|
|
50
|
+
other: "about {{count}} months"
|
|
51
|
+
},
|
|
52
|
+
xMonths: {
|
|
53
|
+
one: "1 month",
|
|
54
|
+
other: "{{count}} months"
|
|
55
|
+
},
|
|
56
|
+
aboutXYears: {
|
|
57
|
+
one: "about 1 year",
|
|
58
|
+
other: "about {{count}} years"
|
|
59
|
+
},
|
|
60
|
+
xYears: {
|
|
61
|
+
one: "1 year",
|
|
62
|
+
other: "{{count}} years"
|
|
63
|
+
},
|
|
64
|
+
overXYears: {
|
|
65
|
+
one: "over 1 year",
|
|
66
|
+
other: "over {{count}} years"
|
|
67
|
+
},
|
|
68
|
+
almostXYears: {
|
|
69
|
+
one: "almost 1 year",
|
|
70
|
+
other: "almost {{count}} years"
|
|
71
|
+
}
|
|
72
|
+
}, s = (e, t, n) => {
|
|
73
|
+
let r, i = o[e];
|
|
74
|
+
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
75
|
+
}, c = {
|
|
76
|
+
date: e({
|
|
77
|
+
formats: {
|
|
78
|
+
full: "EEEE, MMMM do, y",
|
|
79
|
+
long: "MMMM do, y",
|
|
80
|
+
medium: "MMM d, y",
|
|
81
|
+
short: "MM/dd/yyyy"
|
|
82
|
+
},
|
|
83
|
+
defaultWidth: "full"
|
|
84
|
+
}),
|
|
85
|
+
time: e({
|
|
86
|
+
formats: {
|
|
87
|
+
full: "h:mm:ss a zzzz",
|
|
88
|
+
long: "h:mm:ss a z",
|
|
89
|
+
medium: "h:mm:ss a",
|
|
90
|
+
short: "h:mm a"
|
|
91
|
+
},
|
|
92
|
+
defaultWidth: "full"
|
|
93
|
+
}),
|
|
94
|
+
dateTime: e({
|
|
95
|
+
formats: {
|
|
96
|
+
full: "{{date}} 'at' {{time}}",
|
|
97
|
+
long: "{{date}} 'at' {{time}}",
|
|
98
|
+
medium: "{{date}}, {{time}}",
|
|
99
|
+
short: "{{date}}, {{time}}"
|
|
100
|
+
},
|
|
101
|
+
defaultWidth: "full"
|
|
102
|
+
})
|
|
103
|
+
}, l = {
|
|
104
|
+
lastWeek: "'last' eeee 'at' p",
|
|
105
|
+
yesterday: "'yesterday at' p",
|
|
106
|
+
today: "'today at' p",
|
|
107
|
+
tomorrow: "'tomorrow at' p",
|
|
108
|
+
nextWeek: "eeee 'at' p",
|
|
109
|
+
other: "P"
|
|
110
|
+
}, u = (e, t, n, r) => l[e], d = {
|
|
111
|
+
ordinalNumber: (e, t) => {
|
|
112
|
+
let n = Number(e), r = n % 100;
|
|
113
|
+
if (r > 20 || r < 10) switch (r % 10) {
|
|
114
|
+
case 1: return n + "st";
|
|
115
|
+
case 2: return n + "nd";
|
|
116
|
+
case 3: return n + "rd";
|
|
117
|
+
}
|
|
118
|
+
return n + "th";
|
|
119
|
+
},
|
|
120
|
+
era: n({
|
|
121
|
+
values: {
|
|
122
|
+
narrow: ["B", "A"],
|
|
123
|
+
abbreviated: ["BC", "AD"],
|
|
124
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
125
|
+
},
|
|
126
|
+
defaultWidth: "wide"
|
|
127
|
+
}),
|
|
128
|
+
quarter: n({
|
|
129
|
+
values: {
|
|
130
|
+
narrow: [
|
|
131
|
+
"1",
|
|
132
|
+
"2",
|
|
133
|
+
"3",
|
|
134
|
+
"4"
|
|
135
|
+
],
|
|
136
|
+
abbreviated: [
|
|
137
|
+
"Q1",
|
|
138
|
+
"Q2",
|
|
139
|
+
"Q3",
|
|
140
|
+
"Q4"
|
|
141
|
+
],
|
|
142
|
+
wide: [
|
|
143
|
+
"1st quarter",
|
|
144
|
+
"2nd quarter",
|
|
145
|
+
"3rd quarter",
|
|
146
|
+
"4th quarter"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
defaultWidth: "wide",
|
|
150
|
+
argumentCallback: (e) => e - 1
|
|
151
|
+
}),
|
|
152
|
+
month: n({
|
|
153
|
+
values: {
|
|
154
|
+
narrow: [
|
|
155
|
+
"J",
|
|
156
|
+
"F",
|
|
157
|
+
"M",
|
|
158
|
+
"A",
|
|
159
|
+
"M",
|
|
160
|
+
"J",
|
|
161
|
+
"J",
|
|
162
|
+
"A",
|
|
163
|
+
"S",
|
|
164
|
+
"O",
|
|
165
|
+
"N",
|
|
166
|
+
"D"
|
|
167
|
+
],
|
|
168
|
+
abbreviated: [
|
|
169
|
+
"Jan",
|
|
170
|
+
"Feb",
|
|
171
|
+
"Mar",
|
|
172
|
+
"Apr",
|
|
173
|
+
"May",
|
|
174
|
+
"Jun",
|
|
175
|
+
"Jul",
|
|
176
|
+
"Aug",
|
|
177
|
+
"Sep",
|
|
178
|
+
"Oct",
|
|
179
|
+
"Nov",
|
|
180
|
+
"Dec"
|
|
181
|
+
],
|
|
182
|
+
wide: [
|
|
183
|
+
"January",
|
|
184
|
+
"February",
|
|
185
|
+
"March",
|
|
186
|
+
"April",
|
|
187
|
+
"May",
|
|
188
|
+
"June",
|
|
189
|
+
"July",
|
|
190
|
+
"August",
|
|
191
|
+
"September",
|
|
192
|
+
"October",
|
|
193
|
+
"November",
|
|
194
|
+
"December"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
defaultWidth: "wide"
|
|
198
|
+
}),
|
|
199
|
+
day: n({
|
|
200
|
+
values: {
|
|
201
|
+
narrow: [
|
|
202
|
+
"S",
|
|
203
|
+
"M",
|
|
204
|
+
"T",
|
|
205
|
+
"W",
|
|
206
|
+
"T",
|
|
207
|
+
"F",
|
|
208
|
+
"S"
|
|
209
|
+
],
|
|
210
|
+
short: [
|
|
211
|
+
"Su",
|
|
212
|
+
"Mo",
|
|
213
|
+
"Tu",
|
|
214
|
+
"We",
|
|
215
|
+
"Th",
|
|
216
|
+
"Fr",
|
|
217
|
+
"Sa"
|
|
218
|
+
],
|
|
219
|
+
abbreviated: [
|
|
220
|
+
"Sun",
|
|
221
|
+
"Mon",
|
|
222
|
+
"Tue",
|
|
223
|
+
"Wed",
|
|
224
|
+
"Thu",
|
|
225
|
+
"Fri",
|
|
226
|
+
"Sat"
|
|
227
|
+
],
|
|
228
|
+
wide: [
|
|
229
|
+
"Sunday",
|
|
230
|
+
"Monday",
|
|
231
|
+
"Tuesday",
|
|
232
|
+
"Wednesday",
|
|
233
|
+
"Thursday",
|
|
234
|
+
"Friday",
|
|
235
|
+
"Saturday"
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
defaultWidth: "wide"
|
|
239
|
+
}),
|
|
240
|
+
dayPeriod: n({
|
|
241
|
+
values: {
|
|
242
|
+
narrow: {
|
|
243
|
+
am: "a",
|
|
244
|
+
pm: "p",
|
|
245
|
+
midnight: "mi",
|
|
246
|
+
noon: "n",
|
|
247
|
+
morning: "morning",
|
|
248
|
+
afternoon: "afternoon",
|
|
249
|
+
evening: "evening",
|
|
250
|
+
night: "night"
|
|
251
|
+
},
|
|
252
|
+
abbreviated: {
|
|
253
|
+
am: "AM",
|
|
254
|
+
pm: "PM",
|
|
255
|
+
midnight: "midnight",
|
|
256
|
+
noon: "noon",
|
|
257
|
+
morning: "morning",
|
|
258
|
+
afternoon: "afternoon",
|
|
259
|
+
evening: "evening",
|
|
260
|
+
night: "night"
|
|
261
|
+
},
|
|
262
|
+
wide: {
|
|
263
|
+
am: "a.m.",
|
|
264
|
+
pm: "p.m.",
|
|
265
|
+
midnight: "midnight",
|
|
266
|
+
noon: "noon",
|
|
267
|
+
morning: "morning",
|
|
268
|
+
afternoon: "afternoon",
|
|
269
|
+
evening: "evening",
|
|
270
|
+
night: "night"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
defaultWidth: "wide",
|
|
274
|
+
formattingValues: {
|
|
275
|
+
narrow: {
|
|
276
|
+
am: "a",
|
|
277
|
+
pm: "p",
|
|
278
|
+
midnight: "mi",
|
|
279
|
+
noon: "n",
|
|
280
|
+
morning: "in the morning",
|
|
281
|
+
afternoon: "in the afternoon",
|
|
282
|
+
evening: "in the evening",
|
|
283
|
+
night: "at night"
|
|
284
|
+
},
|
|
285
|
+
abbreviated: {
|
|
286
|
+
am: "AM",
|
|
287
|
+
pm: "PM",
|
|
288
|
+
midnight: "midnight",
|
|
289
|
+
noon: "noon",
|
|
290
|
+
morning: "in the morning",
|
|
291
|
+
afternoon: "in the afternoon",
|
|
292
|
+
evening: "in the evening",
|
|
293
|
+
night: "at night"
|
|
294
|
+
},
|
|
295
|
+
wide: {
|
|
296
|
+
am: "a.m.",
|
|
297
|
+
pm: "p.m.",
|
|
298
|
+
midnight: "midnight",
|
|
299
|
+
noon: "noon",
|
|
300
|
+
morning: "in the morning",
|
|
301
|
+
afternoon: "in the afternoon",
|
|
302
|
+
evening: "in the evening",
|
|
303
|
+
night: "at night"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
defaultFormattingWidth: "wide"
|
|
307
|
+
})
|
|
308
|
+
}, f = {
|
|
309
|
+
ordinalNumber: r({
|
|
310
|
+
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
311
|
+
parsePattern: /\d+/i,
|
|
312
|
+
valueCallback: (e) => parseInt(e, 10)
|
|
313
|
+
}),
|
|
314
|
+
era: t({
|
|
315
|
+
matchPatterns: {
|
|
316
|
+
narrow: /^(b|a)/i,
|
|
317
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
318
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
319
|
+
},
|
|
320
|
+
defaultMatchWidth: "wide",
|
|
321
|
+
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
322
|
+
defaultParseWidth: "any"
|
|
323
|
+
}),
|
|
324
|
+
quarter: t({
|
|
325
|
+
matchPatterns: {
|
|
326
|
+
narrow: /^[1234]/i,
|
|
327
|
+
abbreviated: /^q[1234]/i,
|
|
328
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
329
|
+
},
|
|
330
|
+
defaultMatchWidth: "wide",
|
|
331
|
+
parsePatterns: { any: [
|
|
332
|
+
/1/i,
|
|
333
|
+
/2/i,
|
|
334
|
+
/3/i,
|
|
335
|
+
/4/i
|
|
336
|
+
] },
|
|
337
|
+
defaultParseWidth: "any",
|
|
338
|
+
valueCallback: (e) => e + 1
|
|
339
|
+
}),
|
|
340
|
+
month: t({
|
|
341
|
+
matchPatterns: {
|
|
342
|
+
narrow: /^[jfmasond]/i,
|
|
343
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
344
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
345
|
+
},
|
|
346
|
+
defaultMatchWidth: "wide",
|
|
347
|
+
parsePatterns: {
|
|
348
|
+
narrow: [
|
|
349
|
+
/^j/i,
|
|
350
|
+
/^f/i,
|
|
351
|
+
/^m/i,
|
|
352
|
+
/^a/i,
|
|
353
|
+
/^m/i,
|
|
354
|
+
/^j/i,
|
|
355
|
+
/^j/i,
|
|
356
|
+
/^a/i,
|
|
357
|
+
/^s/i,
|
|
358
|
+
/^o/i,
|
|
359
|
+
/^n/i,
|
|
360
|
+
/^d/i
|
|
361
|
+
],
|
|
362
|
+
any: [
|
|
363
|
+
/^ja/i,
|
|
364
|
+
/^f/i,
|
|
365
|
+
/^mar/i,
|
|
366
|
+
/^ap/i,
|
|
367
|
+
/^may/i,
|
|
368
|
+
/^jun/i,
|
|
369
|
+
/^jul/i,
|
|
370
|
+
/^au/i,
|
|
371
|
+
/^s/i,
|
|
372
|
+
/^o/i,
|
|
373
|
+
/^n/i,
|
|
374
|
+
/^d/i
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
defaultParseWidth: "any"
|
|
378
|
+
}),
|
|
379
|
+
day: t({
|
|
380
|
+
matchPatterns: {
|
|
381
|
+
narrow: /^[smtwf]/i,
|
|
382
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
383
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
384
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
385
|
+
},
|
|
386
|
+
defaultMatchWidth: "wide",
|
|
387
|
+
parsePatterns: {
|
|
388
|
+
narrow: [
|
|
389
|
+
/^s/i,
|
|
390
|
+
/^m/i,
|
|
391
|
+
/^t/i,
|
|
392
|
+
/^w/i,
|
|
393
|
+
/^t/i,
|
|
394
|
+
/^f/i,
|
|
395
|
+
/^s/i
|
|
396
|
+
],
|
|
397
|
+
any: [
|
|
398
|
+
/^su/i,
|
|
399
|
+
/^m/i,
|
|
400
|
+
/^tu/i,
|
|
401
|
+
/^w/i,
|
|
402
|
+
/^th/i,
|
|
403
|
+
/^f/i,
|
|
404
|
+
/^sa/i
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
defaultParseWidth: "any"
|
|
408
|
+
}),
|
|
409
|
+
dayPeriod: t({
|
|
410
|
+
matchPatterns: {
|
|
411
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
412
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
413
|
+
},
|
|
414
|
+
defaultMatchWidth: "any",
|
|
415
|
+
parsePatterns: { any: {
|
|
416
|
+
am: /^a/i,
|
|
417
|
+
pm: /^p/i,
|
|
418
|
+
midnight: /^mi/i,
|
|
419
|
+
noon: /^no/i,
|
|
420
|
+
morning: /morning/i,
|
|
421
|
+
afternoon: /afternoon/i,
|
|
422
|
+
evening: /evening/i,
|
|
423
|
+
night: /night/i
|
|
424
|
+
} },
|
|
425
|
+
defaultParseWidth: "any"
|
|
426
|
+
})
|
|
427
|
+
}, p = /* @__PURE__ */ a({
|
|
428
|
+
default: () => m,
|
|
429
|
+
enUS: () => m
|
|
430
|
+
}), m = {
|
|
431
|
+
code: "en-US",
|
|
432
|
+
formatDistance: s,
|
|
433
|
+
formatLong: c,
|
|
434
|
+
formatRelative: u,
|
|
435
|
+
localize: d,
|
|
436
|
+
match: f,
|
|
437
|
+
options: {
|
|
438
|
+
weekStartsOn: 0,
|
|
439
|
+
firstWeekContainsDate: 1
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
//#endregion
|
|
443
|
+
export { p as n, m as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./buildMatchPatternFn-T5KjFTBQ.cjs`);var t={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},n=(e,n,r)=>{let i,a=t[e];return i=typeof a==`string`?a:n===1?a.one:a.other.replace(`{{count}}`,n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?`in `+i:i+` ago`:i},r={date:e.i({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:e.i({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:e.i({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},i={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},a={code:`en-US`,formatDistance:n,formatLong:r,formatRelative:(e,t,n,r)=>i[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:e.r({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:e.r({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:e.r({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:e.r({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:e.r({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:e.t({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:e.n({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:e.n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.n({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:e.n({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:e.n({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./en-US-Dz8vkDZ_.cjs`);exports.default=e.t,exports.enUS=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./buildMatchPatternFn-T5KjFTBQ.cjs`);var t={lessThanXSeconds:{one:`menos de un segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`medio minuto`,lessThanXMinutes:{one:`menos de un minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`alrededor de 1 hora`,other:`alrededor de {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 día`,other:`{{count}} días`},aboutXWeeks:{one:`alrededor de 1 semana`,other:`alrededor de {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`alrededor de 1 mes`,other:`alrededor de {{count}} meses`},xMonths:{one:`1 mes`,other:`{{count}} meses`},aboutXYears:{one:`alrededor de 1 año`,other:`alrededor de {{count}} años`},xYears:{one:`1 año`,other:`{{count}} años`},overXYears:{one:`más de 1 año`,other:`más de {{count}} años`},almostXYears:{one:`casi 1 año`,other:`casi {{count}} años`}},n=(e,n,r)=>{let i,a=t[e];return i=typeof a==`string`?a:n===1?a.one:a.other.replace(`{{count}}`,n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?`en `+i:`hace `+i:i},r={date:e.i({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:e.i({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:e.i({formats:{full:`{{date}} 'a las' {{time}}`,long:`{{date}} 'a las' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},i={lastWeek:`'el' eeee 'pasado a la' p`,yesterday:`'ayer a la' p`,today:`'hoy a la' p`,tomorrow:`'mañana a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},a={lastWeek:`'el' eeee 'pasado a las' p`,yesterday:`'ayer a las' p`,today:`'hoy a las' p`,tomorrow:`'mañana a las' p`,nextWeek:`eeee 'a las' p`,other:`P`},o={code:`es`,formatDistance:n,formatLong:r,formatRelative:(e,t,n,r)=>t.getHours()===1?i[e]:a[e],localize:{ordinalNumber:(e,t)=>Number(e)+`º`,era:e.r({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`después de cristo`]},defaultWidth:`wide`}),quarter:e.r({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:e=>Number(e)-1}),month:e.r({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`ene`,`feb`,`mar`,`abr`,`may`,`jun`,`jul`,`ago`,`sep`,`oct`,`nov`,`dic`],wide:[`enero`,`febrero`,`marzo`,`abril`,`mayo`,`junio`,`julio`,`agosto`,`septiembre`,`octubre`,`noviembre`,`diciembre`]},defaultWidth:`wide`}),day:e.r({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`mi`,`ju`,`vi`,`sá`],abbreviated:[`dom`,`lun`,`mar`,`mié`,`jue`,`vie`,`sáb`],wide:[`domingo`,`lunes`,`martes`,`miércoles`,`jueves`,`viernes`,`sábado`]},defaultWidth:`wide`}),dayPeriod:e.r({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:e.t({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:e.n({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:`any`}),quarter:e.n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.n({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:`any`}),day:e.n({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:e.n({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};exports.default=o,exports.es=o;
|