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