@bagelink/vue 0.0.965 → 0.0.968
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/dist/index.cjs +130 -3
- package/dist/index.mjs +130 -3
- package/dist/style.css +46 -46
- package/dist/styles.css +14073 -0
- package/dist/vue.css +576 -317
- package/package.json +2 -1
- package/src/components/TableSchema.vue +2 -2
- package/vite.config.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -1365,6 +1365,7 @@ function _indexOf(list, a2, idx) {
|
|
|
1365
1365
|
return -1;
|
|
1366
1366
|
}
|
|
1367
1367
|
return list.indexOf(a2, idx);
|
|
1368
|
+
// all these types can utilise Set
|
|
1368
1369
|
case "string":
|
|
1369
1370
|
case "boolean":
|
|
1370
1371
|
case "function":
|
|
@@ -3279,6 +3280,7 @@ Linear.prototype = {
|
|
|
3279
3280
|
break;
|
|
3280
3281
|
case 1:
|
|
3281
3282
|
this._point = 2;
|
|
3283
|
+
// falls through
|
|
3282
3284
|
default:
|
|
3283
3285
|
this._context.lineTo(x2, y2);
|
|
3284
3286
|
break;
|
|
@@ -3627,6 +3629,7 @@ Step$1.prototype = {
|
|
|
3627
3629
|
break;
|
|
3628
3630
|
case 1:
|
|
3629
3631
|
this._point = 2;
|
|
3632
|
+
// falls through
|
|
3630
3633
|
default: {
|
|
3631
3634
|
if (this._t <= 0) {
|
|
3632
3635
|
this._context.lineTo(this._x, y2);
|
|
@@ -10993,12 +10996,15 @@ const formatters = {
|
|
|
10993
10996
|
G: function(date2, token, localize2) {
|
|
10994
10997
|
const era = date2.getFullYear() > 0 ? 1 : 0;
|
|
10995
10998
|
switch (token) {
|
|
10999
|
+
// AD, BC
|
|
10996
11000
|
case "G":
|
|
10997
11001
|
case "GG":
|
|
10998
11002
|
case "GGG":
|
|
10999
11003
|
return localize2.era(era, { width: "abbreviated" });
|
|
11004
|
+
// A, B
|
|
11000
11005
|
case "GGGGG":
|
|
11001
11006
|
return localize2.era(era, { width: "narrow" });
|
|
11007
|
+
// Anno Domini, Before Christ
|
|
11002
11008
|
case "GGGG":
|
|
11003
11009
|
default:
|
|
11004
11010
|
return localize2.era(era, { width: "wide" });
|
|
@@ -11048,22 +11054,28 @@ const formatters = {
|
|
|
11048
11054
|
Q: function(date2, token, localize2) {
|
|
11049
11055
|
const quarter = Math.ceil((date2.getMonth() + 1) / 3);
|
|
11050
11056
|
switch (token) {
|
|
11057
|
+
// 1, 2, 3, 4
|
|
11051
11058
|
case "Q":
|
|
11052
11059
|
return String(quarter);
|
|
11060
|
+
// 01, 02, 03, 04
|
|
11053
11061
|
case "QQ":
|
|
11054
11062
|
return addLeadingZeros(quarter, 2);
|
|
11063
|
+
// 1st, 2nd, 3rd, 4th
|
|
11055
11064
|
case "Qo":
|
|
11056
11065
|
return localize2.ordinalNumber(quarter, { unit: "quarter" });
|
|
11066
|
+
// Q1, Q2, Q3, Q4
|
|
11057
11067
|
case "QQQ":
|
|
11058
11068
|
return localize2.quarter(quarter, {
|
|
11059
11069
|
width: "abbreviated",
|
|
11060
11070
|
context: "formatting"
|
|
11061
11071
|
});
|
|
11072
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
11062
11073
|
case "QQQQQ":
|
|
11063
11074
|
return localize2.quarter(quarter, {
|
|
11064
11075
|
width: "narrow",
|
|
11065
11076
|
context: "formatting"
|
|
11066
11077
|
});
|
|
11078
|
+
// 1st quarter, 2nd quarter, ...
|
|
11067
11079
|
case "QQQQ":
|
|
11068
11080
|
default:
|
|
11069
11081
|
return localize2.quarter(quarter, {
|
|
@@ -11076,22 +11088,28 @@ const formatters = {
|
|
|
11076
11088
|
q: function(date2, token, localize2) {
|
|
11077
11089
|
const quarter = Math.ceil((date2.getMonth() + 1) / 3);
|
|
11078
11090
|
switch (token) {
|
|
11091
|
+
// 1, 2, 3, 4
|
|
11079
11092
|
case "q":
|
|
11080
11093
|
return String(quarter);
|
|
11094
|
+
// 01, 02, 03, 04
|
|
11081
11095
|
case "qq":
|
|
11082
11096
|
return addLeadingZeros(quarter, 2);
|
|
11097
|
+
// 1st, 2nd, 3rd, 4th
|
|
11083
11098
|
case "qo":
|
|
11084
11099
|
return localize2.ordinalNumber(quarter, { unit: "quarter" });
|
|
11100
|
+
// Q1, Q2, Q3, Q4
|
|
11085
11101
|
case "qqq":
|
|
11086
11102
|
return localize2.quarter(quarter, {
|
|
11087
11103
|
width: "abbreviated",
|
|
11088
11104
|
context: "standalone"
|
|
11089
11105
|
});
|
|
11106
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
11090
11107
|
case "qqqqq":
|
|
11091
11108
|
return localize2.quarter(quarter, {
|
|
11092
11109
|
width: "narrow",
|
|
11093
11110
|
context: "standalone"
|
|
11094
11111
|
});
|
|
11112
|
+
// 1st quarter, 2nd quarter, ...
|
|
11095
11113
|
case "qqqq":
|
|
11096
11114
|
default:
|
|
11097
11115
|
return localize2.quarter(quarter, {
|
|
@@ -11107,18 +11125,22 @@ const formatters = {
|
|
|
11107
11125
|
case "M":
|
|
11108
11126
|
case "MM":
|
|
11109
11127
|
return lightFormatters.M(date2, token);
|
|
11128
|
+
// 1st, 2nd, ..., 12th
|
|
11110
11129
|
case "Mo":
|
|
11111
11130
|
return localize2.ordinalNumber(month + 1, { unit: "month" });
|
|
11131
|
+
// Jan, Feb, ..., Dec
|
|
11112
11132
|
case "MMM":
|
|
11113
11133
|
return localize2.month(month, {
|
|
11114
11134
|
width: "abbreviated",
|
|
11115
11135
|
context: "formatting"
|
|
11116
11136
|
});
|
|
11137
|
+
// J, F, ..., D
|
|
11117
11138
|
case "MMMMM":
|
|
11118
11139
|
return localize2.month(month, {
|
|
11119
11140
|
width: "narrow",
|
|
11120
11141
|
context: "formatting"
|
|
11121
11142
|
});
|
|
11143
|
+
// January, February, ..., December
|
|
11122
11144
|
case "MMMM":
|
|
11123
11145
|
default:
|
|
11124
11146
|
return localize2.month(month, { width: "wide", context: "formatting" });
|
|
@@ -11128,22 +11150,28 @@ const formatters = {
|
|
|
11128
11150
|
L: function(date2, token, localize2) {
|
|
11129
11151
|
const month = date2.getMonth();
|
|
11130
11152
|
switch (token) {
|
|
11153
|
+
// 1, 2, ..., 12
|
|
11131
11154
|
case "L":
|
|
11132
11155
|
return String(month + 1);
|
|
11156
|
+
// 01, 02, ..., 12
|
|
11133
11157
|
case "LL":
|
|
11134
11158
|
return addLeadingZeros(month + 1, 2);
|
|
11159
|
+
// 1st, 2nd, ..., 12th
|
|
11135
11160
|
case "Lo":
|
|
11136
11161
|
return localize2.ordinalNumber(month + 1, { unit: "month" });
|
|
11162
|
+
// Jan, Feb, ..., Dec
|
|
11137
11163
|
case "LLL":
|
|
11138
11164
|
return localize2.month(month, {
|
|
11139
11165
|
width: "abbreviated",
|
|
11140
11166
|
context: "standalone"
|
|
11141
11167
|
});
|
|
11168
|
+
// J, F, ..., D
|
|
11142
11169
|
case "LLLLL":
|
|
11143
11170
|
return localize2.month(month, {
|
|
11144
11171
|
width: "narrow",
|
|
11145
11172
|
context: "standalone"
|
|
11146
11173
|
});
|
|
11174
|
+
// January, February, ..., December
|
|
11147
11175
|
case "LLLL":
|
|
11148
11176
|
default:
|
|
11149
11177
|
return localize2.month(month, { width: "wide", context: "standalone" });
|
|
@@ -11184,6 +11212,7 @@ const formatters = {
|
|
|
11184
11212
|
E: function(date2, token, localize2) {
|
|
11185
11213
|
const dayOfWeek = date2.getDay();
|
|
11186
11214
|
switch (token) {
|
|
11215
|
+
// Tue
|
|
11187
11216
|
case "E":
|
|
11188
11217
|
case "EE":
|
|
11189
11218
|
case "EEE":
|
|
@@ -11191,16 +11220,19 @@ const formatters = {
|
|
|
11191
11220
|
width: "abbreviated",
|
|
11192
11221
|
context: "formatting"
|
|
11193
11222
|
});
|
|
11223
|
+
// T
|
|
11194
11224
|
case "EEEEE":
|
|
11195
11225
|
return localize2.day(dayOfWeek, {
|
|
11196
11226
|
width: "narrow",
|
|
11197
11227
|
context: "formatting"
|
|
11198
11228
|
});
|
|
11229
|
+
// Tu
|
|
11199
11230
|
case "EEEEEE":
|
|
11200
11231
|
return localize2.day(dayOfWeek, {
|
|
11201
11232
|
width: "short",
|
|
11202
11233
|
context: "formatting"
|
|
11203
11234
|
});
|
|
11235
|
+
// Tuesday
|
|
11204
11236
|
case "EEEE":
|
|
11205
11237
|
default:
|
|
11206
11238
|
return localize2.day(dayOfWeek, {
|
|
@@ -11214,10 +11246,13 @@ const formatters = {
|
|
|
11214
11246
|
const dayOfWeek = date2.getDay();
|
|
11215
11247
|
const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
11216
11248
|
switch (token) {
|
|
11249
|
+
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
11217
11250
|
case "e":
|
|
11218
11251
|
return String(localDayOfWeek);
|
|
11252
|
+
// Padded numerical value
|
|
11219
11253
|
case "ee":
|
|
11220
11254
|
return addLeadingZeros(localDayOfWeek, 2);
|
|
11255
|
+
// 1st, 2nd, ..., 7th
|
|
11221
11256
|
case "eo":
|
|
11222
11257
|
return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
|
|
11223
11258
|
case "eee":
|
|
@@ -11225,16 +11260,19 @@ const formatters = {
|
|
|
11225
11260
|
width: "abbreviated",
|
|
11226
11261
|
context: "formatting"
|
|
11227
11262
|
});
|
|
11263
|
+
// T
|
|
11228
11264
|
case "eeeee":
|
|
11229
11265
|
return localize2.day(dayOfWeek, {
|
|
11230
11266
|
width: "narrow",
|
|
11231
11267
|
context: "formatting"
|
|
11232
11268
|
});
|
|
11269
|
+
// Tu
|
|
11233
11270
|
case "eeeeee":
|
|
11234
11271
|
return localize2.day(dayOfWeek, {
|
|
11235
11272
|
width: "short",
|
|
11236
11273
|
context: "formatting"
|
|
11237
11274
|
});
|
|
11275
|
+
// Tuesday
|
|
11238
11276
|
case "eeee":
|
|
11239
11277
|
default:
|
|
11240
11278
|
return localize2.day(dayOfWeek, {
|
|
@@ -11248,10 +11286,13 @@ const formatters = {
|
|
|
11248
11286
|
const dayOfWeek = date2.getDay();
|
|
11249
11287
|
const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
11250
11288
|
switch (token) {
|
|
11289
|
+
// Numerical value (same as in `e`)
|
|
11251
11290
|
case "c":
|
|
11252
11291
|
return String(localDayOfWeek);
|
|
11292
|
+
// Padded numerical value
|
|
11253
11293
|
case "cc":
|
|
11254
11294
|
return addLeadingZeros(localDayOfWeek, token.length);
|
|
11295
|
+
// 1st, 2nd, ..., 7th
|
|
11255
11296
|
case "co":
|
|
11256
11297
|
return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
|
|
11257
11298
|
case "ccc":
|
|
@@ -11259,16 +11300,19 @@ const formatters = {
|
|
|
11259
11300
|
width: "abbreviated",
|
|
11260
11301
|
context: "standalone"
|
|
11261
11302
|
});
|
|
11303
|
+
// T
|
|
11262
11304
|
case "ccccc":
|
|
11263
11305
|
return localize2.day(dayOfWeek, {
|
|
11264
11306
|
width: "narrow",
|
|
11265
11307
|
context: "standalone"
|
|
11266
11308
|
});
|
|
11309
|
+
// Tu
|
|
11267
11310
|
case "cccccc":
|
|
11268
11311
|
return localize2.day(dayOfWeek, {
|
|
11269
11312
|
width: "short",
|
|
11270
11313
|
context: "standalone"
|
|
11271
11314
|
});
|
|
11315
|
+
// Tuesday
|
|
11272
11316
|
case "cccc":
|
|
11273
11317
|
default:
|
|
11274
11318
|
return localize2.day(dayOfWeek, {
|
|
@@ -11282,27 +11326,34 @@ const formatters = {
|
|
|
11282
11326
|
const dayOfWeek = date2.getDay();
|
|
11283
11327
|
const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
|
|
11284
11328
|
switch (token) {
|
|
11329
|
+
// 2
|
|
11285
11330
|
case "i":
|
|
11286
11331
|
return String(isoDayOfWeek);
|
|
11332
|
+
// 02
|
|
11287
11333
|
case "ii":
|
|
11288
11334
|
return addLeadingZeros(isoDayOfWeek, token.length);
|
|
11335
|
+
// 2nd
|
|
11289
11336
|
case "io":
|
|
11290
11337
|
return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" });
|
|
11338
|
+
// Tue
|
|
11291
11339
|
case "iii":
|
|
11292
11340
|
return localize2.day(dayOfWeek, {
|
|
11293
11341
|
width: "abbreviated",
|
|
11294
11342
|
context: "formatting"
|
|
11295
11343
|
});
|
|
11344
|
+
// T
|
|
11296
11345
|
case "iiiii":
|
|
11297
11346
|
return localize2.day(dayOfWeek, {
|
|
11298
11347
|
width: "narrow",
|
|
11299
11348
|
context: "formatting"
|
|
11300
11349
|
});
|
|
11350
|
+
// Tu
|
|
11301
11351
|
case "iiiiii":
|
|
11302
11352
|
return localize2.day(dayOfWeek, {
|
|
11303
11353
|
width: "short",
|
|
11304
11354
|
context: "formatting"
|
|
11305
11355
|
});
|
|
11356
|
+
// Tuesday
|
|
11306
11357
|
case "iiii":
|
|
11307
11358
|
default:
|
|
11308
11359
|
return localize2.day(dayOfWeek, {
|
|
@@ -11468,13 +11519,21 @@ const formatters = {
|
|
|
11468
11519
|
return "Z";
|
|
11469
11520
|
}
|
|
11470
11521
|
switch (token) {
|
|
11522
|
+
// Hours and optional minutes
|
|
11471
11523
|
case "X":
|
|
11472
11524
|
return formatTimezoneWithOptionalMinutes(timezoneOffset);
|
|
11525
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
11526
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
11527
|
+
// so this token always has the same output as `XX`
|
|
11473
11528
|
case "XXXX":
|
|
11474
11529
|
case "XX":
|
|
11475
11530
|
return formatTimezone(timezoneOffset);
|
|
11531
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
11532
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
11533
|
+
// so this token always has the same output as `XXX`
|
|
11476
11534
|
case "XXXXX":
|
|
11477
11535
|
case "XXX":
|
|
11536
|
+
// Hours and minutes with `:` delimiter
|
|
11478
11537
|
default:
|
|
11479
11538
|
return formatTimezone(timezoneOffset, ":");
|
|
11480
11539
|
}
|
|
@@ -11483,13 +11542,21 @@ const formatters = {
|
|
|
11483
11542
|
x: function(date2, token, _localize) {
|
|
11484
11543
|
const timezoneOffset = date2.getTimezoneOffset();
|
|
11485
11544
|
switch (token) {
|
|
11545
|
+
// Hours and optional minutes
|
|
11486
11546
|
case "x":
|
|
11487
11547
|
return formatTimezoneWithOptionalMinutes(timezoneOffset);
|
|
11548
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
11549
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
11550
|
+
// so this token always has the same output as `xx`
|
|
11488
11551
|
case "xxxx":
|
|
11489
11552
|
case "xx":
|
|
11490
11553
|
return formatTimezone(timezoneOffset);
|
|
11554
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
11555
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
11556
|
+
// so this token always has the same output as `xxx`
|
|
11491
11557
|
case "xxxxx":
|
|
11492
11558
|
case "xxx":
|
|
11559
|
+
// Hours and minutes with `:` delimiter
|
|
11493
11560
|
default:
|
|
11494
11561
|
return formatTimezone(timezoneOffset, ":");
|
|
11495
11562
|
}
|
|
@@ -11498,10 +11565,12 @@ const formatters = {
|
|
|
11498
11565
|
O: function(date2, token, _localize) {
|
|
11499
11566
|
const timezoneOffset = date2.getTimezoneOffset();
|
|
11500
11567
|
switch (token) {
|
|
11568
|
+
// Short
|
|
11501
11569
|
case "O":
|
|
11502
11570
|
case "OO":
|
|
11503
11571
|
case "OOO":
|
|
11504
11572
|
return "GMT" + formatTimezoneShort(timezoneOffset, ":");
|
|
11573
|
+
// Long
|
|
11505
11574
|
case "OOOO":
|
|
11506
11575
|
default:
|
|
11507
11576
|
return "GMT" + formatTimezone(timezoneOffset, ":");
|
|
@@ -11511,10 +11580,12 @@ const formatters = {
|
|
|
11511
11580
|
z: function(date2, token, _localize) {
|
|
11512
11581
|
const timezoneOffset = date2.getTimezoneOffset();
|
|
11513
11582
|
switch (token) {
|
|
11583
|
+
// Short
|
|
11514
11584
|
case "z":
|
|
11515
11585
|
case "zz":
|
|
11516
11586
|
case "zzz":
|
|
11517
11587
|
return "GMT" + formatTimezoneShort(timezoneOffset, ":");
|
|
11588
|
+
// Long
|
|
11518
11589
|
case "zzzz":
|
|
11519
11590
|
default:
|
|
11520
11591
|
return "GMT" + formatTimezone(timezoneOffset, ":");
|
|
@@ -11838,12 +11909,15 @@ class EraParser extends Parser {
|
|
|
11838
11909
|
}
|
|
11839
11910
|
parse(dateString, token, match2) {
|
|
11840
11911
|
switch (token) {
|
|
11912
|
+
// AD, BC
|
|
11841
11913
|
case "G":
|
|
11842
11914
|
case "GG":
|
|
11843
11915
|
case "GGG":
|
|
11844
11916
|
return match2.era(dateString, { width: "abbreviated" }) || match2.era(dateString, { width: "narrow" });
|
|
11917
|
+
// A, B
|
|
11845
11918
|
case "GGGGG":
|
|
11846
11919
|
return match2.era(dateString, { width: "narrow" });
|
|
11920
|
+
// Anno Domini, Before Christ
|
|
11847
11921
|
case "GGGG":
|
|
11848
11922
|
default:
|
|
11849
11923
|
return match2.era(dateString, { width: "wide" }) || match2.era(dateString, { width: "abbreviated" }) || match2.era(dateString, { width: "narrow" });
|
|
@@ -12190,11 +12264,14 @@ class QuarterParser extends Parser {
|
|
|
12190
12264
|
}
|
|
12191
12265
|
parse(dateString, token, match2) {
|
|
12192
12266
|
switch (token) {
|
|
12267
|
+
// 1, 2, 3, 4
|
|
12193
12268
|
case "Q":
|
|
12194
12269
|
case "QQ":
|
|
12195
12270
|
return parseNDigits(token.length, dateString);
|
|
12271
|
+
// 1st, 2nd, 3rd, 4th
|
|
12196
12272
|
case "Qo":
|
|
12197
12273
|
return match2.ordinalNumber(dateString, { unit: "quarter" });
|
|
12274
|
+
// Q1, Q2, Q3, Q4
|
|
12198
12275
|
case "QQQ":
|
|
12199
12276
|
return match2.quarter(dateString, {
|
|
12200
12277
|
width: "abbreviated",
|
|
@@ -12203,11 +12280,13 @@ class QuarterParser extends Parser {
|
|
|
12203
12280
|
width: "narrow",
|
|
12204
12281
|
context: "formatting"
|
|
12205
12282
|
});
|
|
12283
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
12206
12284
|
case "QQQQQ":
|
|
12207
12285
|
return match2.quarter(dateString, {
|
|
12208
12286
|
width: "narrow",
|
|
12209
12287
|
context: "formatting"
|
|
12210
12288
|
});
|
|
12289
|
+
// 1st quarter, 2nd quarter, ...
|
|
12211
12290
|
case "QQQQ":
|
|
12212
12291
|
default:
|
|
12213
12292
|
return match2.quarter(dateString, {
|
|
@@ -12254,11 +12333,14 @@ class StandAloneQuarterParser extends Parser {
|
|
|
12254
12333
|
}
|
|
12255
12334
|
parse(dateString, token, match2) {
|
|
12256
12335
|
switch (token) {
|
|
12336
|
+
// 1, 2, 3, 4
|
|
12257
12337
|
case "q":
|
|
12258
12338
|
case "qq":
|
|
12259
12339
|
return parseNDigits(token.length, dateString);
|
|
12340
|
+
// 1st, 2nd, 3rd, 4th
|
|
12260
12341
|
case "qo":
|
|
12261
12342
|
return match2.ordinalNumber(dateString, { unit: "quarter" });
|
|
12343
|
+
// Q1, Q2, Q3, Q4
|
|
12262
12344
|
case "qqq":
|
|
12263
12345
|
return match2.quarter(dateString, {
|
|
12264
12346
|
width: "abbreviated",
|
|
@@ -12267,11 +12349,13 @@ class StandAloneQuarterParser extends Parser {
|
|
|
12267
12349
|
width: "narrow",
|
|
12268
12350
|
context: "standalone"
|
|
12269
12351
|
});
|
|
12352
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
12270
12353
|
case "qqqqq":
|
|
12271
12354
|
return match2.quarter(dateString, {
|
|
12272
12355
|
width: "narrow",
|
|
12273
12356
|
context: "standalone"
|
|
12274
12357
|
});
|
|
12358
|
+
// 1st quarter, 2nd quarter, ...
|
|
12275
12359
|
case "qqqq":
|
|
12276
12360
|
default:
|
|
12277
12361
|
return match2.quarter(dateString, {
|
|
@@ -12318,13 +12402,16 @@ class MonthParser extends Parser {
|
|
|
12318
12402
|
parse(dateString, token, match2) {
|
|
12319
12403
|
const valueCallback = (value) => value - 1;
|
|
12320
12404
|
switch (token) {
|
|
12405
|
+
// 1, 2, ..., 12
|
|
12321
12406
|
case "M":
|
|
12322
12407
|
return mapValue(
|
|
12323
12408
|
parseNumericPattern(numericPatterns.month, dateString),
|
|
12324
12409
|
valueCallback
|
|
12325
12410
|
);
|
|
12411
|
+
// 01, 02, ..., 12
|
|
12326
12412
|
case "MM":
|
|
12327
12413
|
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
12414
|
+
// 1st, 2nd, ..., 12th
|
|
12328
12415
|
case "Mo":
|
|
12329
12416
|
return mapValue(
|
|
12330
12417
|
match2.ordinalNumber(dateString, {
|
|
@@ -12332,16 +12419,19 @@ class MonthParser extends Parser {
|
|
|
12332
12419
|
}),
|
|
12333
12420
|
valueCallback
|
|
12334
12421
|
);
|
|
12422
|
+
// Jan, Feb, ..., Dec
|
|
12335
12423
|
case "MMM":
|
|
12336
12424
|
return match2.month(dateString, {
|
|
12337
12425
|
width: "abbreviated",
|
|
12338
12426
|
context: "formatting"
|
|
12339
12427
|
}) || match2.month(dateString, { width: "narrow", context: "formatting" });
|
|
12428
|
+
// J, F, ..., D
|
|
12340
12429
|
case "MMMMM":
|
|
12341
12430
|
return match2.month(dateString, {
|
|
12342
12431
|
width: "narrow",
|
|
12343
12432
|
context: "formatting"
|
|
12344
12433
|
});
|
|
12434
|
+
// January, February, ..., December
|
|
12345
12435
|
case "MMMM":
|
|
12346
12436
|
default:
|
|
12347
12437
|
return match2.month(dateString, { width: "wide", context: "formatting" }) || match2.month(dateString, {
|
|
@@ -12382,13 +12472,16 @@ class StandAloneMonthParser extends Parser {
|
|
|
12382
12472
|
parse(dateString, token, match2) {
|
|
12383
12473
|
const valueCallback = (value) => value - 1;
|
|
12384
12474
|
switch (token) {
|
|
12475
|
+
// 1, 2, ..., 12
|
|
12385
12476
|
case "L":
|
|
12386
12477
|
return mapValue(
|
|
12387
12478
|
parseNumericPattern(numericPatterns.month, dateString),
|
|
12388
12479
|
valueCallback
|
|
12389
12480
|
);
|
|
12481
|
+
// 01, 02, ..., 12
|
|
12390
12482
|
case "LL":
|
|
12391
12483
|
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
12484
|
+
// 1st, 2nd, ..., 12th
|
|
12392
12485
|
case "Lo":
|
|
12393
12486
|
return mapValue(
|
|
12394
12487
|
match2.ordinalNumber(dateString, {
|
|
@@ -12396,16 +12489,19 @@ class StandAloneMonthParser extends Parser {
|
|
|
12396
12489
|
}),
|
|
12397
12490
|
valueCallback
|
|
12398
12491
|
);
|
|
12492
|
+
// Jan, Feb, ..., Dec
|
|
12399
12493
|
case "LLL":
|
|
12400
12494
|
return match2.month(dateString, {
|
|
12401
12495
|
width: "abbreviated",
|
|
12402
12496
|
context: "standalone"
|
|
12403
12497
|
}) || match2.month(dateString, { width: "narrow", context: "standalone" });
|
|
12498
|
+
// J, F, ..., D
|
|
12404
12499
|
case "LLLLL":
|
|
12405
12500
|
return match2.month(dateString, {
|
|
12406
12501
|
width: "narrow",
|
|
12407
12502
|
context: "standalone"
|
|
12408
12503
|
});
|
|
12504
|
+
// January, February, ..., December
|
|
12409
12505
|
case "LLLL":
|
|
12410
12506
|
default:
|
|
12411
12507
|
return match2.month(dateString, { width: "wide", context: "standalone" }) || match2.month(dateString, {
|
|
@@ -12640,6 +12736,7 @@ class DayParser extends Parser {
|
|
|
12640
12736
|
}
|
|
12641
12737
|
parse(dateString, token, match2) {
|
|
12642
12738
|
switch (token) {
|
|
12739
|
+
// Tue
|
|
12643
12740
|
case "E":
|
|
12644
12741
|
case "EE":
|
|
12645
12742
|
case "EEE":
|
|
@@ -12647,13 +12744,16 @@ class DayParser extends Parser {
|
|
|
12647
12744
|
width: "abbreviated",
|
|
12648
12745
|
context: "formatting"
|
|
12649
12746
|
}) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
|
|
12747
|
+
// T
|
|
12650
12748
|
case "EEEEE":
|
|
12651
12749
|
return match2.day(dateString, {
|
|
12652
12750
|
width: "narrow",
|
|
12653
12751
|
context: "formatting"
|
|
12654
12752
|
});
|
|
12753
|
+
// Tu
|
|
12655
12754
|
case "EEEEEE":
|
|
12656
12755
|
return match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
|
|
12756
|
+
// Tuesday
|
|
12657
12757
|
case "EEEE":
|
|
12658
12758
|
default:
|
|
12659
12759
|
return match2.day(dateString, { width: "wide", context: "formatting" }) || match2.day(dateString, {
|
|
@@ -12699,9 +12799,11 @@ class LocalDayParser extends Parser {
|
|
|
12699
12799
|
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
12700
12800
|
};
|
|
12701
12801
|
switch (token) {
|
|
12802
|
+
// 3
|
|
12702
12803
|
case "e":
|
|
12703
12804
|
case "ee":
|
|
12704
12805
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
12806
|
+
// 3rd
|
|
12705
12807
|
case "eo":
|
|
12706
12808
|
return mapValue(
|
|
12707
12809
|
match2.ordinalNumber(dateString, {
|
|
@@ -12709,18 +12811,22 @@ class LocalDayParser extends Parser {
|
|
|
12709
12811
|
}),
|
|
12710
12812
|
valueCallback
|
|
12711
12813
|
);
|
|
12814
|
+
// Tue
|
|
12712
12815
|
case "eee":
|
|
12713
12816
|
return match2.day(dateString, {
|
|
12714
12817
|
width: "abbreviated",
|
|
12715
12818
|
context: "formatting"
|
|
12716
12819
|
}) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
|
|
12820
|
+
// T
|
|
12717
12821
|
case "eeeee":
|
|
12718
12822
|
return match2.day(dateString, {
|
|
12719
12823
|
width: "narrow",
|
|
12720
12824
|
context: "formatting"
|
|
12721
12825
|
});
|
|
12826
|
+
// Tu
|
|
12722
12827
|
case "eeeeee":
|
|
12723
12828
|
return match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
|
|
12829
|
+
// Tuesday
|
|
12724
12830
|
case "eeee":
|
|
12725
12831
|
default:
|
|
12726
12832
|
return match2.day(dateString, { width: "wide", context: "formatting" }) || match2.day(dateString, {
|
|
@@ -12766,9 +12872,11 @@ class StandAloneLocalDayParser extends Parser {
|
|
|
12766
12872
|
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
12767
12873
|
};
|
|
12768
12874
|
switch (token) {
|
|
12875
|
+
// 3
|
|
12769
12876
|
case "c":
|
|
12770
12877
|
case "cc":
|
|
12771
12878
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
12879
|
+
// 3rd
|
|
12772
12880
|
case "co":
|
|
12773
12881
|
return mapValue(
|
|
12774
12882
|
match2.ordinalNumber(dateString, {
|
|
@@ -12776,18 +12884,22 @@ class StandAloneLocalDayParser extends Parser {
|
|
|
12776
12884
|
}),
|
|
12777
12885
|
valueCallback
|
|
12778
12886
|
);
|
|
12887
|
+
// Tue
|
|
12779
12888
|
case "ccc":
|
|
12780
12889
|
return match2.day(dateString, {
|
|
12781
12890
|
width: "abbreviated",
|
|
12782
12891
|
context: "standalone"
|
|
12783
12892
|
}) || match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" });
|
|
12893
|
+
// T
|
|
12784
12894
|
case "ccccc":
|
|
12785
12895
|
return match2.day(dateString, {
|
|
12786
12896
|
width: "narrow",
|
|
12787
12897
|
context: "standalone"
|
|
12788
12898
|
});
|
|
12899
|
+
// Tu
|
|
12789
12900
|
case "cccccc":
|
|
12790
12901
|
return match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" });
|
|
12902
|
+
// Tuesday
|
|
12791
12903
|
case "cccc":
|
|
12792
12904
|
default:
|
|
12793
12905
|
return match2.day(dateString, { width: "wide", context: "standalone" }) || match2.day(dateString, {
|
|
@@ -12841,11 +12953,14 @@ class ISODayParser extends Parser {
|
|
|
12841
12953
|
return value;
|
|
12842
12954
|
};
|
|
12843
12955
|
switch (token) {
|
|
12956
|
+
// 2
|
|
12844
12957
|
case "i":
|
|
12845
12958
|
case "ii":
|
|
12846
12959
|
return parseNDigits(token.length, dateString);
|
|
12960
|
+
// 2nd
|
|
12847
12961
|
case "io":
|
|
12848
12962
|
return match2.ordinalNumber(dateString, { unit: "day" });
|
|
12963
|
+
// Tue
|
|
12849
12964
|
case "iii":
|
|
12850
12965
|
return mapValue(
|
|
12851
12966
|
match2.day(dateString, {
|
|
@@ -12860,6 +12975,7 @@ class ISODayParser extends Parser {
|
|
|
12860
12975
|
}),
|
|
12861
12976
|
valueCallback
|
|
12862
12977
|
);
|
|
12978
|
+
// T
|
|
12863
12979
|
case "iiiii":
|
|
12864
12980
|
return mapValue(
|
|
12865
12981
|
match2.day(dateString, {
|
|
@@ -12868,6 +12984,7 @@ class ISODayParser extends Parser {
|
|
|
12868
12984
|
}),
|
|
12869
12985
|
valueCallback
|
|
12870
12986
|
);
|
|
12987
|
+
// Tu
|
|
12871
12988
|
case "iiiiii":
|
|
12872
12989
|
return mapValue(
|
|
12873
12990
|
match2.day(dateString, {
|
|
@@ -12879,6 +12996,7 @@ class ISODayParser extends Parser {
|
|
|
12879
12996
|
}),
|
|
12880
12997
|
valueCallback
|
|
12881
12998
|
);
|
|
12999
|
+
// Tuesday
|
|
12882
13000
|
case "iiii":
|
|
12883
13001
|
default:
|
|
12884
13002
|
return mapValue(
|
|
@@ -51287,6 +51405,10 @@ function isPossibleNumber(nationalNumber, metadata2) {
|
|
|
51287
51405
|
switch (checkNumberLength(nationalNumber, metadata2)) {
|
|
51288
51406
|
case "IS_POSSIBLE":
|
|
51289
51407
|
return true;
|
|
51408
|
+
// This library ignores "local-only" phone numbers (for simplicity).
|
|
51409
|
+
// See the readme for more info on what are "local-only" phone numbers.
|
|
51410
|
+
// case 'IS_POSSIBLE_LOCAL_ONLY':
|
|
51411
|
+
// return !isInternational
|
|
51290
51412
|
default:
|
|
51291
51413
|
return false;
|
|
51292
51414
|
}
|
|
@@ -51541,6 +51663,10 @@ function formatNumber(input, format2, options, metadata2) {
|
|
|
51541
51663
|
number: "+".concat(countryCallingCode).concat(nationalNumber),
|
|
51542
51664
|
ext: input.ext
|
|
51543
51665
|
});
|
|
51666
|
+
// For reference, here's Google's IDD formatter:
|
|
51667
|
+
// https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
|
|
51668
|
+
// Not saying that this IDD formatter replicates it 1:1, but it seems to work.
|
|
51669
|
+
// Who would even need to format phone numbers in IDD format anyway?
|
|
51544
51670
|
case "IDD":
|
|
51545
51671
|
if (!options.fromCountry) {
|
|
51546
51672
|
return;
|
|
@@ -54742,7 +54868,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54742
54868
|
emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
54743
54869
|
setup(__props, { emit: __emit }) {
|
|
54744
54870
|
vue.useCssVars((_ctx) => ({
|
|
54745
|
-
"
|
|
54871
|
+
"40493826": vue.unref(computedItemHeight)
|
|
54746
54872
|
}));
|
|
54747
54873
|
const emit2 = __emit;
|
|
54748
54874
|
const slots = vue.useSlots();
|
|
@@ -54864,8 +54990,9 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54864
54990
|
async function registerLastItemObserver() {
|
|
54865
54991
|
await until(() => lastItem.value).toBeTruthy();
|
|
54866
54992
|
useIntersectionObserver(lastItem.value, ([entry]) => {
|
|
54993
|
+
var _a2;
|
|
54867
54994
|
if (entry.isIntersecting && computedData.value.length) {
|
|
54868
|
-
|
|
54995
|
+
void ((_a2 = __props.onLastItemVisible) == null ? void 0 : _a2.call(__props));
|
|
54869
54996
|
}
|
|
54870
54997
|
}, { threshold: 0.5 });
|
|
54871
54998
|
}
|
|
@@ -54972,7 +55099,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54972
55099
|
};
|
|
54973
55100
|
}
|
|
54974
55101
|
});
|
|
54975
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55102
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-d9f879cc"]]);
|
|
54976
55103
|
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
54977
55104
|
__name: "Title",
|
|
54978
55105
|
props: {
|