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