@bagelink/vue 0.0.927 → 0.0.929
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/components/Card.vue.d.ts.map +1 -1
- package/dist/index.cjs +28 -134
- package/dist/index.mjs +28 -134
- package/dist/plugins/ripple.d.ts +1 -1
- package/dist/plugins/ripple.d.ts.map +1 -1
- package/dist/style.css +273 -242
- package/package.json +1 -1
- package/src/components/Card.vue +1 -0
- package/src/plugins/ripple.ts +24 -10
package/dist/index.mjs
CHANGED
|
@@ -533,7 +533,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
533
533
|
const props2 = __props;
|
|
534
534
|
const is4 = computed(() => props2.to ? "router-link" : "div");
|
|
535
535
|
return (_ctx, _cache) => {
|
|
536
|
-
|
|
536
|
+
const _directive_ripple = resolveDirective("ripple");
|
|
537
|
+
return withDirectives((openBlock(), createBlock(resolveDynamicComponent(is4.value), {
|
|
537
538
|
to: _ctx.to,
|
|
538
539
|
class: normalizeClass(["bgl_card", {
|
|
539
540
|
thin: _ctx.thin,
|
|
@@ -549,7 +550,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
549
550
|
renderSlot(_ctx.$slots, "default")
|
|
550
551
|
]),
|
|
551
552
|
_: 3
|
|
552
|
-
}, 8, ["to", "class"])
|
|
553
|
+
}, 8, ["to", "class"])), [
|
|
554
|
+
[_directive_ripple, !!_ctx.to]
|
|
555
|
+
]);
|
|
553
556
|
};
|
|
554
557
|
}
|
|
555
558
|
});
|
|
@@ -1360,7 +1363,6 @@ function _indexOf(list, a2, idx) {
|
|
|
1360
1363
|
return -1;
|
|
1361
1364
|
}
|
|
1362
1365
|
return list.indexOf(a2, idx);
|
|
1363
|
-
// all these types can utilise Set
|
|
1364
1366
|
case "string":
|
|
1365
1367
|
case "boolean":
|
|
1366
1368
|
case "function":
|
|
@@ -3275,7 +3277,6 @@ Linear.prototype = {
|
|
|
3275
3277
|
break;
|
|
3276
3278
|
case 1:
|
|
3277
3279
|
this._point = 2;
|
|
3278
|
-
// falls through
|
|
3279
3280
|
default:
|
|
3280
3281
|
this._context.lineTo(x2, y2);
|
|
3281
3282
|
break;
|
|
@@ -3624,7 +3625,6 @@ Step$1.prototype = {
|
|
|
3624
3625
|
break;
|
|
3625
3626
|
case 1:
|
|
3626
3627
|
this._point = 2;
|
|
3627
|
-
// falls through
|
|
3628
3628
|
default: {
|
|
3629
3629
|
if (this._t <= 0) {
|
|
3630
3630
|
this._context.lineTo(this._x, y2);
|
|
@@ -10966,15 +10966,12 @@ const formatters = {
|
|
|
10966
10966
|
G: function(date2, token, localize2) {
|
|
10967
10967
|
const era = date2.getFullYear() > 0 ? 1 : 0;
|
|
10968
10968
|
switch (token) {
|
|
10969
|
-
// AD, BC
|
|
10970
10969
|
case "G":
|
|
10971
10970
|
case "GG":
|
|
10972
10971
|
case "GGG":
|
|
10973
10972
|
return localize2.era(era, { width: "abbreviated" });
|
|
10974
|
-
// A, B
|
|
10975
10973
|
case "GGGGG":
|
|
10976
10974
|
return localize2.era(era, { width: "narrow" });
|
|
10977
|
-
// Anno Domini, Before Christ
|
|
10978
10975
|
case "GGGG":
|
|
10979
10976
|
default:
|
|
10980
10977
|
return localize2.era(era, { width: "wide" });
|
|
@@ -11024,28 +11021,22 @@ const formatters = {
|
|
|
11024
11021
|
Q: function(date2, token, localize2) {
|
|
11025
11022
|
const quarter = Math.ceil((date2.getMonth() + 1) / 3);
|
|
11026
11023
|
switch (token) {
|
|
11027
|
-
// 1, 2, 3, 4
|
|
11028
11024
|
case "Q":
|
|
11029
11025
|
return String(quarter);
|
|
11030
|
-
// 01, 02, 03, 04
|
|
11031
11026
|
case "QQ":
|
|
11032
11027
|
return addLeadingZeros(quarter, 2);
|
|
11033
|
-
// 1st, 2nd, 3rd, 4th
|
|
11034
11028
|
case "Qo":
|
|
11035
11029
|
return localize2.ordinalNumber(quarter, { unit: "quarter" });
|
|
11036
|
-
// Q1, Q2, Q3, Q4
|
|
11037
11030
|
case "QQQ":
|
|
11038
11031
|
return localize2.quarter(quarter, {
|
|
11039
11032
|
width: "abbreviated",
|
|
11040
11033
|
context: "formatting"
|
|
11041
11034
|
});
|
|
11042
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
11043
11035
|
case "QQQQQ":
|
|
11044
11036
|
return localize2.quarter(quarter, {
|
|
11045
11037
|
width: "narrow",
|
|
11046
11038
|
context: "formatting"
|
|
11047
11039
|
});
|
|
11048
|
-
// 1st quarter, 2nd quarter, ...
|
|
11049
11040
|
case "QQQQ":
|
|
11050
11041
|
default:
|
|
11051
11042
|
return localize2.quarter(quarter, {
|
|
@@ -11058,28 +11049,22 @@ const formatters = {
|
|
|
11058
11049
|
q: function(date2, token, localize2) {
|
|
11059
11050
|
const quarter = Math.ceil((date2.getMonth() + 1) / 3);
|
|
11060
11051
|
switch (token) {
|
|
11061
|
-
// 1, 2, 3, 4
|
|
11062
11052
|
case "q":
|
|
11063
11053
|
return String(quarter);
|
|
11064
|
-
// 01, 02, 03, 04
|
|
11065
11054
|
case "qq":
|
|
11066
11055
|
return addLeadingZeros(quarter, 2);
|
|
11067
|
-
// 1st, 2nd, 3rd, 4th
|
|
11068
11056
|
case "qo":
|
|
11069
11057
|
return localize2.ordinalNumber(quarter, { unit: "quarter" });
|
|
11070
|
-
// Q1, Q2, Q3, Q4
|
|
11071
11058
|
case "qqq":
|
|
11072
11059
|
return localize2.quarter(quarter, {
|
|
11073
11060
|
width: "abbreviated",
|
|
11074
11061
|
context: "standalone"
|
|
11075
11062
|
});
|
|
11076
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
11077
11063
|
case "qqqqq":
|
|
11078
11064
|
return localize2.quarter(quarter, {
|
|
11079
11065
|
width: "narrow",
|
|
11080
11066
|
context: "standalone"
|
|
11081
11067
|
});
|
|
11082
|
-
// 1st quarter, 2nd quarter, ...
|
|
11083
11068
|
case "qqqq":
|
|
11084
11069
|
default:
|
|
11085
11070
|
return localize2.quarter(quarter, {
|
|
@@ -11095,22 +11080,18 @@ const formatters = {
|
|
|
11095
11080
|
case "M":
|
|
11096
11081
|
case "MM":
|
|
11097
11082
|
return lightFormatters.M(date2, token);
|
|
11098
|
-
// 1st, 2nd, ..., 12th
|
|
11099
11083
|
case "Mo":
|
|
11100
11084
|
return localize2.ordinalNumber(month + 1, { unit: "month" });
|
|
11101
|
-
// Jan, Feb, ..., Dec
|
|
11102
11085
|
case "MMM":
|
|
11103
11086
|
return localize2.month(month, {
|
|
11104
11087
|
width: "abbreviated",
|
|
11105
11088
|
context: "formatting"
|
|
11106
11089
|
});
|
|
11107
|
-
// J, F, ..., D
|
|
11108
11090
|
case "MMMMM":
|
|
11109
11091
|
return localize2.month(month, {
|
|
11110
11092
|
width: "narrow",
|
|
11111
11093
|
context: "formatting"
|
|
11112
11094
|
});
|
|
11113
|
-
// January, February, ..., December
|
|
11114
11095
|
case "MMMM":
|
|
11115
11096
|
default:
|
|
11116
11097
|
return localize2.month(month, { width: "wide", context: "formatting" });
|
|
@@ -11120,28 +11101,22 @@ const formatters = {
|
|
|
11120
11101
|
L: function(date2, token, localize2) {
|
|
11121
11102
|
const month = date2.getMonth();
|
|
11122
11103
|
switch (token) {
|
|
11123
|
-
// 1, 2, ..., 12
|
|
11124
11104
|
case "L":
|
|
11125
11105
|
return String(month + 1);
|
|
11126
|
-
// 01, 02, ..., 12
|
|
11127
11106
|
case "LL":
|
|
11128
11107
|
return addLeadingZeros(month + 1, 2);
|
|
11129
|
-
// 1st, 2nd, ..., 12th
|
|
11130
11108
|
case "Lo":
|
|
11131
11109
|
return localize2.ordinalNumber(month + 1, { unit: "month" });
|
|
11132
|
-
// Jan, Feb, ..., Dec
|
|
11133
11110
|
case "LLL":
|
|
11134
11111
|
return localize2.month(month, {
|
|
11135
11112
|
width: "abbreviated",
|
|
11136
11113
|
context: "standalone"
|
|
11137
11114
|
});
|
|
11138
|
-
// J, F, ..., D
|
|
11139
11115
|
case "LLLLL":
|
|
11140
11116
|
return localize2.month(month, {
|
|
11141
11117
|
width: "narrow",
|
|
11142
11118
|
context: "standalone"
|
|
11143
11119
|
});
|
|
11144
|
-
// January, February, ..., December
|
|
11145
11120
|
case "LLLL":
|
|
11146
11121
|
default:
|
|
11147
11122
|
return localize2.month(month, { width: "wide", context: "standalone" });
|
|
@@ -11182,7 +11157,6 @@ const formatters = {
|
|
|
11182
11157
|
E: function(date2, token, localize2) {
|
|
11183
11158
|
const dayOfWeek = date2.getDay();
|
|
11184
11159
|
switch (token) {
|
|
11185
|
-
// Tue
|
|
11186
11160
|
case "E":
|
|
11187
11161
|
case "EE":
|
|
11188
11162
|
case "EEE":
|
|
@@ -11190,19 +11164,16 @@ const formatters = {
|
|
|
11190
11164
|
width: "abbreviated",
|
|
11191
11165
|
context: "formatting"
|
|
11192
11166
|
});
|
|
11193
|
-
// T
|
|
11194
11167
|
case "EEEEE":
|
|
11195
11168
|
return localize2.day(dayOfWeek, {
|
|
11196
11169
|
width: "narrow",
|
|
11197
11170
|
context: "formatting"
|
|
11198
11171
|
});
|
|
11199
|
-
// Tu
|
|
11200
11172
|
case "EEEEEE":
|
|
11201
11173
|
return localize2.day(dayOfWeek, {
|
|
11202
11174
|
width: "short",
|
|
11203
11175
|
context: "formatting"
|
|
11204
11176
|
});
|
|
11205
|
-
// Tuesday
|
|
11206
11177
|
case "EEEE":
|
|
11207
11178
|
default:
|
|
11208
11179
|
return localize2.day(dayOfWeek, {
|
|
@@ -11216,13 +11187,10 @@ const formatters = {
|
|
|
11216
11187
|
const dayOfWeek = date2.getDay();
|
|
11217
11188
|
const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
11218
11189
|
switch (token) {
|
|
11219
|
-
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
11220
11190
|
case "e":
|
|
11221
11191
|
return String(localDayOfWeek);
|
|
11222
|
-
// Padded numerical value
|
|
11223
11192
|
case "ee":
|
|
11224
11193
|
return addLeadingZeros(localDayOfWeek, 2);
|
|
11225
|
-
// 1st, 2nd, ..., 7th
|
|
11226
11194
|
case "eo":
|
|
11227
11195
|
return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
|
|
11228
11196
|
case "eee":
|
|
@@ -11230,19 +11198,16 @@ const formatters = {
|
|
|
11230
11198
|
width: "abbreviated",
|
|
11231
11199
|
context: "formatting"
|
|
11232
11200
|
});
|
|
11233
|
-
// T
|
|
11234
11201
|
case "eeeee":
|
|
11235
11202
|
return localize2.day(dayOfWeek, {
|
|
11236
11203
|
width: "narrow",
|
|
11237
11204
|
context: "formatting"
|
|
11238
11205
|
});
|
|
11239
|
-
// Tu
|
|
11240
11206
|
case "eeeeee":
|
|
11241
11207
|
return localize2.day(dayOfWeek, {
|
|
11242
11208
|
width: "short",
|
|
11243
11209
|
context: "formatting"
|
|
11244
11210
|
});
|
|
11245
|
-
// Tuesday
|
|
11246
11211
|
case "eeee":
|
|
11247
11212
|
default:
|
|
11248
11213
|
return localize2.day(dayOfWeek, {
|
|
@@ -11256,13 +11221,10 @@ const formatters = {
|
|
|
11256
11221
|
const dayOfWeek = date2.getDay();
|
|
11257
11222
|
const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
11258
11223
|
switch (token) {
|
|
11259
|
-
// Numerical value (same as in `e`)
|
|
11260
11224
|
case "c":
|
|
11261
11225
|
return String(localDayOfWeek);
|
|
11262
|
-
// Padded numerical value
|
|
11263
11226
|
case "cc":
|
|
11264
11227
|
return addLeadingZeros(localDayOfWeek, token.length);
|
|
11265
|
-
// 1st, 2nd, ..., 7th
|
|
11266
11228
|
case "co":
|
|
11267
11229
|
return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
|
|
11268
11230
|
case "ccc":
|
|
@@ -11270,19 +11232,16 @@ const formatters = {
|
|
|
11270
11232
|
width: "abbreviated",
|
|
11271
11233
|
context: "standalone"
|
|
11272
11234
|
});
|
|
11273
|
-
// T
|
|
11274
11235
|
case "ccccc":
|
|
11275
11236
|
return localize2.day(dayOfWeek, {
|
|
11276
11237
|
width: "narrow",
|
|
11277
11238
|
context: "standalone"
|
|
11278
11239
|
});
|
|
11279
|
-
// Tu
|
|
11280
11240
|
case "cccccc":
|
|
11281
11241
|
return localize2.day(dayOfWeek, {
|
|
11282
11242
|
width: "short",
|
|
11283
11243
|
context: "standalone"
|
|
11284
11244
|
});
|
|
11285
|
-
// Tuesday
|
|
11286
11245
|
case "cccc":
|
|
11287
11246
|
default:
|
|
11288
11247
|
return localize2.day(dayOfWeek, {
|
|
@@ -11296,34 +11255,27 @@ const formatters = {
|
|
|
11296
11255
|
const dayOfWeek = date2.getDay();
|
|
11297
11256
|
const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
|
|
11298
11257
|
switch (token) {
|
|
11299
|
-
// 2
|
|
11300
11258
|
case "i":
|
|
11301
11259
|
return String(isoDayOfWeek);
|
|
11302
|
-
// 02
|
|
11303
11260
|
case "ii":
|
|
11304
11261
|
return addLeadingZeros(isoDayOfWeek, token.length);
|
|
11305
|
-
// 2nd
|
|
11306
11262
|
case "io":
|
|
11307
11263
|
return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" });
|
|
11308
|
-
// Tue
|
|
11309
11264
|
case "iii":
|
|
11310
11265
|
return localize2.day(dayOfWeek, {
|
|
11311
11266
|
width: "abbreviated",
|
|
11312
11267
|
context: "formatting"
|
|
11313
11268
|
});
|
|
11314
|
-
// T
|
|
11315
11269
|
case "iiiii":
|
|
11316
11270
|
return localize2.day(dayOfWeek, {
|
|
11317
11271
|
width: "narrow",
|
|
11318
11272
|
context: "formatting"
|
|
11319
11273
|
});
|
|
11320
|
-
// Tu
|
|
11321
11274
|
case "iiiiii":
|
|
11322
11275
|
return localize2.day(dayOfWeek, {
|
|
11323
11276
|
width: "short",
|
|
11324
11277
|
context: "formatting"
|
|
11325
11278
|
});
|
|
11326
|
-
// Tuesday
|
|
11327
11279
|
case "iiii":
|
|
11328
11280
|
default:
|
|
11329
11281
|
return localize2.day(dayOfWeek, {
|
|
@@ -11489,21 +11441,13 @@ const formatters = {
|
|
|
11489
11441
|
return "Z";
|
|
11490
11442
|
}
|
|
11491
11443
|
switch (token) {
|
|
11492
|
-
// Hours and optional minutes
|
|
11493
11444
|
case "X":
|
|
11494
11445
|
return formatTimezoneWithOptionalMinutes(timezoneOffset);
|
|
11495
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
11496
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
11497
|
-
// so this token always has the same output as `XX`
|
|
11498
11446
|
case "XXXX":
|
|
11499
11447
|
case "XX":
|
|
11500
11448
|
return formatTimezone(timezoneOffset);
|
|
11501
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
11502
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
11503
|
-
// so this token always has the same output as `XXX`
|
|
11504
11449
|
case "XXXXX":
|
|
11505
11450
|
case "XXX":
|
|
11506
|
-
// Hours and minutes with `:` delimiter
|
|
11507
11451
|
default:
|
|
11508
11452
|
return formatTimezone(timezoneOffset, ":");
|
|
11509
11453
|
}
|
|
@@ -11512,21 +11456,13 @@ const formatters = {
|
|
|
11512
11456
|
x: function(date2, token, _localize) {
|
|
11513
11457
|
const timezoneOffset = date2.getTimezoneOffset();
|
|
11514
11458
|
switch (token) {
|
|
11515
|
-
// Hours and optional minutes
|
|
11516
11459
|
case "x":
|
|
11517
11460
|
return formatTimezoneWithOptionalMinutes(timezoneOffset);
|
|
11518
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
11519
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
11520
|
-
// so this token always has the same output as `xx`
|
|
11521
11461
|
case "xxxx":
|
|
11522
11462
|
case "xx":
|
|
11523
11463
|
return formatTimezone(timezoneOffset);
|
|
11524
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
11525
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
11526
|
-
// so this token always has the same output as `xxx`
|
|
11527
11464
|
case "xxxxx":
|
|
11528
11465
|
case "xxx":
|
|
11529
|
-
// Hours and minutes with `:` delimiter
|
|
11530
11466
|
default:
|
|
11531
11467
|
return formatTimezone(timezoneOffset, ":");
|
|
11532
11468
|
}
|
|
@@ -11535,12 +11471,10 @@ const formatters = {
|
|
|
11535
11471
|
O: function(date2, token, _localize) {
|
|
11536
11472
|
const timezoneOffset = date2.getTimezoneOffset();
|
|
11537
11473
|
switch (token) {
|
|
11538
|
-
// Short
|
|
11539
11474
|
case "O":
|
|
11540
11475
|
case "OO":
|
|
11541
11476
|
case "OOO":
|
|
11542
11477
|
return "GMT" + formatTimezoneShort(timezoneOffset, ":");
|
|
11543
|
-
// Long
|
|
11544
11478
|
case "OOOO":
|
|
11545
11479
|
default:
|
|
11546
11480
|
return "GMT" + formatTimezone(timezoneOffset, ":");
|
|
@@ -11550,12 +11484,10 @@ const formatters = {
|
|
|
11550
11484
|
z: function(date2, token, _localize) {
|
|
11551
11485
|
const timezoneOffset = date2.getTimezoneOffset();
|
|
11552
11486
|
switch (token) {
|
|
11553
|
-
// Short
|
|
11554
11487
|
case "z":
|
|
11555
11488
|
case "zz":
|
|
11556
11489
|
case "zzz":
|
|
11557
11490
|
return "GMT" + formatTimezoneShort(timezoneOffset, ":");
|
|
11558
|
-
// Long
|
|
11559
11491
|
case "zzzz":
|
|
11560
11492
|
default:
|
|
11561
11493
|
return "GMT" + formatTimezone(timezoneOffset, ":");
|
|
@@ -11879,15 +11811,12 @@ class EraParser extends Parser {
|
|
|
11879
11811
|
}
|
|
11880
11812
|
parse(dateString, token, match2) {
|
|
11881
11813
|
switch (token) {
|
|
11882
|
-
// AD, BC
|
|
11883
11814
|
case "G":
|
|
11884
11815
|
case "GG":
|
|
11885
11816
|
case "GGG":
|
|
11886
11817
|
return match2.era(dateString, { width: "abbreviated" }) || match2.era(dateString, { width: "narrow" });
|
|
11887
|
-
// A, B
|
|
11888
11818
|
case "GGGGG":
|
|
11889
11819
|
return match2.era(dateString, { width: "narrow" });
|
|
11890
|
-
// Anno Domini, Before Christ
|
|
11891
11820
|
case "GGGG":
|
|
11892
11821
|
default:
|
|
11893
11822
|
return match2.era(dateString, { width: "wide" }) || match2.era(dateString, { width: "abbreviated" }) || match2.era(dateString, { width: "narrow" });
|
|
@@ -12234,14 +12163,11 @@ class QuarterParser extends Parser {
|
|
|
12234
12163
|
}
|
|
12235
12164
|
parse(dateString, token, match2) {
|
|
12236
12165
|
switch (token) {
|
|
12237
|
-
// 1, 2, 3, 4
|
|
12238
12166
|
case "Q":
|
|
12239
12167
|
case "QQ":
|
|
12240
12168
|
return parseNDigits(token.length, dateString);
|
|
12241
|
-
// 1st, 2nd, 3rd, 4th
|
|
12242
12169
|
case "Qo":
|
|
12243
12170
|
return match2.ordinalNumber(dateString, { unit: "quarter" });
|
|
12244
|
-
// Q1, Q2, Q3, Q4
|
|
12245
12171
|
case "QQQ":
|
|
12246
12172
|
return match2.quarter(dateString, {
|
|
12247
12173
|
width: "abbreviated",
|
|
@@ -12250,13 +12176,11 @@ class QuarterParser extends Parser {
|
|
|
12250
12176
|
width: "narrow",
|
|
12251
12177
|
context: "formatting"
|
|
12252
12178
|
});
|
|
12253
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
12254
12179
|
case "QQQQQ":
|
|
12255
12180
|
return match2.quarter(dateString, {
|
|
12256
12181
|
width: "narrow",
|
|
12257
12182
|
context: "formatting"
|
|
12258
12183
|
});
|
|
12259
|
-
// 1st quarter, 2nd quarter, ...
|
|
12260
12184
|
case "QQQQ":
|
|
12261
12185
|
default:
|
|
12262
12186
|
return match2.quarter(dateString, {
|
|
@@ -12303,14 +12227,11 @@ class StandAloneQuarterParser extends Parser {
|
|
|
12303
12227
|
}
|
|
12304
12228
|
parse(dateString, token, match2) {
|
|
12305
12229
|
switch (token) {
|
|
12306
|
-
// 1, 2, 3, 4
|
|
12307
12230
|
case "q":
|
|
12308
12231
|
case "qq":
|
|
12309
12232
|
return parseNDigits(token.length, dateString);
|
|
12310
|
-
// 1st, 2nd, 3rd, 4th
|
|
12311
12233
|
case "qo":
|
|
12312
12234
|
return match2.ordinalNumber(dateString, { unit: "quarter" });
|
|
12313
|
-
// Q1, Q2, Q3, Q4
|
|
12314
12235
|
case "qqq":
|
|
12315
12236
|
return match2.quarter(dateString, {
|
|
12316
12237
|
width: "abbreviated",
|
|
@@ -12319,13 +12240,11 @@ class StandAloneQuarterParser extends Parser {
|
|
|
12319
12240
|
width: "narrow",
|
|
12320
12241
|
context: "standalone"
|
|
12321
12242
|
});
|
|
12322
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
12323
12243
|
case "qqqqq":
|
|
12324
12244
|
return match2.quarter(dateString, {
|
|
12325
12245
|
width: "narrow",
|
|
12326
12246
|
context: "standalone"
|
|
12327
12247
|
});
|
|
12328
|
-
// 1st quarter, 2nd quarter, ...
|
|
12329
12248
|
case "qqqq":
|
|
12330
12249
|
default:
|
|
12331
12250
|
return match2.quarter(dateString, {
|
|
@@ -12372,16 +12291,13 @@ class MonthParser extends Parser {
|
|
|
12372
12291
|
parse(dateString, token, match2) {
|
|
12373
12292
|
const valueCallback = (value) => value - 1;
|
|
12374
12293
|
switch (token) {
|
|
12375
|
-
// 1, 2, ..., 12
|
|
12376
12294
|
case "M":
|
|
12377
12295
|
return mapValue(
|
|
12378
12296
|
parseNumericPattern(numericPatterns.month, dateString),
|
|
12379
12297
|
valueCallback
|
|
12380
12298
|
);
|
|
12381
|
-
// 01, 02, ..., 12
|
|
12382
12299
|
case "MM":
|
|
12383
12300
|
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
12384
|
-
// 1st, 2nd, ..., 12th
|
|
12385
12301
|
case "Mo":
|
|
12386
12302
|
return mapValue(
|
|
12387
12303
|
match2.ordinalNumber(dateString, {
|
|
@@ -12389,19 +12305,16 @@ class MonthParser extends Parser {
|
|
|
12389
12305
|
}),
|
|
12390
12306
|
valueCallback
|
|
12391
12307
|
);
|
|
12392
|
-
// Jan, Feb, ..., Dec
|
|
12393
12308
|
case "MMM":
|
|
12394
12309
|
return match2.month(dateString, {
|
|
12395
12310
|
width: "abbreviated",
|
|
12396
12311
|
context: "formatting"
|
|
12397
12312
|
}) || match2.month(dateString, { width: "narrow", context: "formatting" });
|
|
12398
|
-
// J, F, ..., D
|
|
12399
12313
|
case "MMMMM":
|
|
12400
12314
|
return match2.month(dateString, {
|
|
12401
12315
|
width: "narrow",
|
|
12402
12316
|
context: "formatting"
|
|
12403
12317
|
});
|
|
12404
|
-
// January, February, ..., December
|
|
12405
12318
|
case "MMMM":
|
|
12406
12319
|
default:
|
|
12407
12320
|
return match2.month(dateString, { width: "wide", context: "formatting" }) || match2.month(dateString, {
|
|
@@ -12442,16 +12355,13 @@ class StandAloneMonthParser extends Parser {
|
|
|
12442
12355
|
parse(dateString, token, match2) {
|
|
12443
12356
|
const valueCallback = (value) => value - 1;
|
|
12444
12357
|
switch (token) {
|
|
12445
|
-
// 1, 2, ..., 12
|
|
12446
12358
|
case "L":
|
|
12447
12359
|
return mapValue(
|
|
12448
12360
|
parseNumericPattern(numericPatterns.month, dateString),
|
|
12449
12361
|
valueCallback
|
|
12450
12362
|
);
|
|
12451
|
-
// 01, 02, ..., 12
|
|
12452
12363
|
case "LL":
|
|
12453
12364
|
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
12454
|
-
// 1st, 2nd, ..., 12th
|
|
12455
12365
|
case "Lo":
|
|
12456
12366
|
return mapValue(
|
|
12457
12367
|
match2.ordinalNumber(dateString, {
|
|
@@ -12459,19 +12369,16 @@ class StandAloneMonthParser extends Parser {
|
|
|
12459
12369
|
}),
|
|
12460
12370
|
valueCallback
|
|
12461
12371
|
);
|
|
12462
|
-
// Jan, Feb, ..., Dec
|
|
12463
12372
|
case "LLL":
|
|
12464
12373
|
return match2.month(dateString, {
|
|
12465
12374
|
width: "abbreviated",
|
|
12466
12375
|
context: "standalone"
|
|
12467
12376
|
}) || match2.month(dateString, { width: "narrow", context: "standalone" });
|
|
12468
|
-
// J, F, ..., D
|
|
12469
12377
|
case "LLLLL":
|
|
12470
12378
|
return match2.month(dateString, {
|
|
12471
12379
|
width: "narrow",
|
|
12472
12380
|
context: "standalone"
|
|
12473
12381
|
});
|
|
12474
|
-
// January, February, ..., December
|
|
12475
12382
|
case "LLLL":
|
|
12476
12383
|
default:
|
|
12477
12384
|
return match2.month(dateString, { width: "wide", context: "standalone" }) || match2.month(dateString, {
|
|
@@ -12706,7 +12613,6 @@ class DayParser extends Parser {
|
|
|
12706
12613
|
}
|
|
12707
12614
|
parse(dateString, token, match2) {
|
|
12708
12615
|
switch (token) {
|
|
12709
|
-
// Tue
|
|
12710
12616
|
case "E":
|
|
12711
12617
|
case "EE":
|
|
12712
12618
|
case "EEE":
|
|
@@ -12714,16 +12620,13 @@ class DayParser extends Parser {
|
|
|
12714
12620
|
width: "abbreviated",
|
|
12715
12621
|
context: "formatting"
|
|
12716
12622
|
}) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
|
|
12717
|
-
// T
|
|
12718
12623
|
case "EEEEE":
|
|
12719
12624
|
return match2.day(dateString, {
|
|
12720
12625
|
width: "narrow",
|
|
12721
12626
|
context: "formatting"
|
|
12722
12627
|
});
|
|
12723
|
-
// Tu
|
|
12724
12628
|
case "EEEEEE":
|
|
12725
12629
|
return match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
|
|
12726
|
-
// Tuesday
|
|
12727
12630
|
case "EEEE":
|
|
12728
12631
|
default:
|
|
12729
12632
|
return match2.day(dateString, { width: "wide", context: "formatting" }) || match2.day(dateString, {
|
|
@@ -12769,11 +12672,9 @@ class LocalDayParser extends Parser {
|
|
|
12769
12672
|
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
12770
12673
|
};
|
|
12771
12674
|
switch (token) {
|
|
12772
|
-
// 3
|
|
12773
12675
|
case "e":
|
|
12774
12676
|
case "ee":
|
|
12775
12677
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
12776
|
-
// 3rd
|
|
12777
12678
|
case "eo":
|
|
12778
12679
|
return mapValue(
|
|
12779
12680
|
match2.ordinalNumber(dateString, {
|
|
@@ -12781,22 +12682,18 @@ class LocalDayParser extends Parser {
|
|
|
12781
12682
|
}),
|
|
12782
12683
|
valueCallback
|
|
12783
12684
|
);
|
|
12784
|
-
// Tue
|
|
12785
12685
|
case "eee":
|
|
12786
12686
|
return match2.day(dateString, {
|
|
12787
12687
|
width: "abbreviated",
|
|
12788
12688
|
context: "formatting"
|
|
12789
12689
|
}) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
|
|
12790
|
-
// T
|
|
12791
12690
|
case "eeeee":
|
|
12792
12691
|
return match2.day(dateString, {
|
|
12793
12692
|
width: "narrow",
|
|
12794
12693
|
context: "formatting"
|
|
12795
12694
|
});
|
|
12796
|
-
// Tu
|
|
12797
12695
|
case "eeeeee":
|
|
12798
12696
|
return match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
|
|
12799
|
-
// Tuesday
|
|
12800
12697
|
case "eeee":
|
|
12801
12698
|
default:
|
|
12802
12699
|
return match2.day(dateString, { width: "wide", context: "formatting" }) || match2.day(dateString, {
|
|
@@ -12842,11 +12739,9 @@ class StandAloneLocalDayParser extends Parser {
|
|
|
12842
12739
|
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
12843
12740
|
};
|
|
12844
12741
|
switch (token) {
|
|
12845
|
-
// 3
|
|
12846
12742
|
case "c":
|
|
12847
12743
|
case "cc":
|
|
12848
12744
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
12849
|
-
// 3rd
|
|
12850
12745
|
case "co":
|
|
12851
12746
|
return mapValue(
|
|
12852
12747
|
match2.ordinalNumber(dateString, {
|
|
@@ -12854,22 +12749,18 @@ class StandAloneLocalDayParser extends Parser {
|
|
|
12854
12749
|
}),
|
|
12855
12750
|
valueCallback
|
|
12856
12751
|
);
|
|
12857
|
-
// Tue
|
|
12858
12752
|
case "ccc":
|
|
12859
12753
|
return match2.day(dateString, {
|
|
12860
12754
|
width: "abbreviated",
|
|
12861
12755
|
context: "standalone"
|
|
12862
12756
|
}) || match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" });
|
|
12863
|
-
// T
|
|
12864
12757
|
case "ccccc":
|
|
12865
12758
|
return match2.day(dateString, {
|
|
12866
12759
|
width: "narrow",
|
|
12867
12760
|
context: "standalone"
|
|
12868
12761
|
});
|
|
12869
|
-
// Tu
|
|
12870
12762
|
case "cccccc":
|
|
12871
12763
|
return match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" });
|
|
12872
|
-
// Tuesday
|
|
12873
12764
|
case "cccc":
|
|
12874
12765
|
default:
|
|
12875
12766
|
return match2.day(dateString, { width: "wide", context: "standalone" }) || match2.day(dateString, {
|
|
@@ -12923,14 +12814,11 @@ class ISODayParser extends Parser {
|
|
|
12923
12814
|
return value;
|
|
12924
12815
|
};
|
|
12925
12816
|
switch (token) {
|
|
12926
|
-
// 2
|
|
12927
12817
|
case "i":
|
|
12928
12818
|
case "ii":
|
|
12929
12819
|
return parseNDigits(token.length, dateString);
|
|
12930
|
-
// 2nd
|
|
12931
12820
|
case "io":
|
|
12932
12821
|
return match2.ordinalNumber(dateString, { unit: "day" });
|
|
12933
|
-
// Tue
|
|
12934
12822
|
case "iii":
|
|
12935
12823
|
return mapValue(
|
|
12936
12824
|
match2.day(dateString, {
|
|
@@ -12945,7 +12833,6 @@ class ISODayParser extends Parser {
|
|
|
12945
12833
|
}),
|
|
12946
12834
|
valueCallback
|
|
12947
12835
|
);
|
|
12948
|
-
// T
|
|
12949
12836
|
case "iiiii":
|
|
12950
12837
|
return mapValue(
|
|
12951
12838
|
match2.day(dateString, {
|
|
@@ -12954,7 +12841,6 @@ class ISODayParser extends Parser {
|
|
|
12954
12841
|
}),
|
|
12955
12842
|
valueCallback
|
|
12956
12843
|
);
|
|
12957
|
-
// Tu
|
|
12958
12844
|
case "iiiiii":
|
|
12959
12845
|
return mapValue(
|
|
12960
12846
|
match2.day(dateString, {
|
|
@@ -12966,7 +12852,6 @@ class ISODayParser extends Parser {
|
|
|
12966
12852
|
}),
|
|
12967
12853
|
valueCallback
|
|
12968
12854
|
);
|
|
12969
|
-
// Tuesday
|
|
12970
12855
|
case "iiii":
|
|
12971
12856
|
default:
|
|
12972
12857
|
return mapValue(
|
|
@@ -51289,10 +51174,6 @@ function isPossibleNumber(nationalNumber, metadata2) {
|
|
|
51289
51174
|
switch (checkNumberLength(nationalNumber, metadata2)) {
|
|
51290
51175
|
case "IS_POSSIBLE":
|
|
51291
51176
|
return true;
|
|
51292
|
-
// This library ignores "local-only" phone numbers (for simplicity).
|
|
51293
|
-
// See the readme for more info on what are "local-only" phone numbers.
|
|
51294
|
-
// case 'IS_POSSIBLE_LOCAL_ONLY':
|
|
51295
|
-
// return !isInternational
|
|
51296
51177
|
default:
|
|
51297
51178
|
return false;
|
|
51298
51179
|
}
|
|
@@ -51547,10 +51428,6 @@ function formatNumber(input, format2, options, metadata2) {
|
|
|
51547
51428
|
number: "+".concat(countryCallingCode).concat(nationalNumber),
|
|
51548
51429
|
ext: input.ext
|
|
51549
51430
|
});
|
|
51550
|
-
// For reference, here's Google's IDD formatter:
|
|
51551
|
-
// https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
|
|
51552
|
-
// Not saying that this IDD formatter replicates it 1:1, but it seems to work.
|
|
51553
|
-
// Who would even need to format phone numbers in IDD format anyway?
|
|
51554
51431
|
case "IDD":
|
|
51555
51432
|
if (!options.fromCountry) {
|
|
51556
51433
|
return;
|
|
@@ -56080,11 +55957,7 @@ const clickOutside = {
|
|
|
56080
55957
|
}
|
|
56081
55958
|
};
|
|
56082
55959
|
const ripple = {
|
|
56083
|
-
mounted(el) {
|
|
56084
|
-
if (getComputedStyle(el).position === "static") {
|
|
56085
|
-
el.style.position = "relative";
|
|
56086
|
-
}
|
|
56087
|
-
el.style.overflow = "hidden";
|
|
55960
|
+
mounted(el, binding) {
|
|
56088
55961
|
const clickHandler2 = (e) => {
|
|
56089
55962
|
const rect = el.getBoundingClientRect();
|
|
56090
55963
|
const size2 = Math.max(rect.width, rect.height);
|
|
@@ -56103,9 +55976,30 @@ const ripple = {
|
|
|
56103
55976
|
animation: "rippleEffect 0.6s ease-out"
|
|
56104
55977
|
});
|
|
56105
55978
|
el.appendChild(ripple2);
|
|
55979
|
+
setTimeout(() => {
|
|
55980
|
+
ripple2.remove();
|
|
55981
|
+
}, 600);
|
|
56106
55982
|
};
|
|
56107
55983
|
el.__rippleClickHandler = clickHandler2;
|
|
56108
|
-
|
|
55984
|
+
if (binding.value !== false) {
|
|
55985
|
+
if (getComputedStyle(el).position === "static") {
|
|
55986
|
+
el.style.position = "relative";
|
|
55987
|
+
}
|
|
55988
|
+
el.style.overflow = "hidden";
|
|
55989
|
+
el.addEventListener("mousedown", clickHandler2);
|
|
55990
|
+
}
|
|
55991
|
+
},
|
|
55992
|
+
updated(el, binding) {
|
|
55993
|
+
const clickHandler2 = el.__rippleClickHandler;
|
|
55994
|
+
if (binding.value === false) {
|
|
55995
|
+
el.removeEventListener("mousedown", clickHandler2);
|
|
55996
|
+
} else {
|
|
55997
|
+
if (getComputedStyle(el).position === "static") {
|
|
55998
|
+
el.style.position = "relative";
|
|
55999
|
+
}
|
|
56000
|
+
el.style.overflow = "hidden";
|
|
56001
|
+
el.addEventListener("mousedown", clickHandler2);
|
|
56002
|
+
}
|
|
56109
56003
|
},
|
|
56110
56004
|
unmounted(el) {
|
|
56111
56005
|
const clickHandler2 = el.__rippleClickHandler;
|