smoothly 0.1.67 → 0.1.71
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/cjs/{Trigger-ea33b682.js → Trigger-74bd1ee8.js} +16 -0
- package/dist/cjs/{generate-5e7cd3f7.js → generate-7f7f7d99.js} +3 -2
- package/dist/cjs/{index-896ac706.js → index-7c9d0102.js} +806 -638
- package/dist/cjs/{index-2a5f8661.js → index-c973259c.js} +16 -0
- package/dist/cjs/{index-b8688617.js → index-e37f73fe.js} +89 -19
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/smoothly-accordion_43.cjs.entry.js +917 -694
- package/dist/cjs/smoothly-calendar.cjs.entry.js +7 -7
- package/dist/cjs/smoothly-dialog.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +2 -4
- package/dist/cjs/smoothly-display-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-frame.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-date-range.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-date.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-month.cjs.entry.js +11 -11
- package/dist/cjs/smoothly-input.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-picker.cjs.entry.js +12 -17
- package/dist/cjs/smoothly-select.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-table-header.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/collection/components/calendar/generate.js +2 -1
- package/dist/collection/components/calendar/index.js +4 -4
- package/dist/collection/components/calendar/style.css +29 -11
- package/dist/collection/components/display-amount/index.js +1 -3
- package/dist/collection/components/input/index.js +1 -1
- package/dist/collection/components/input-month/index.js +8 -8
- package/dist/collection/components/input-month/style.css +0 -6
- package/dist/collection/components/picker/index.js +12 -17
- package/dist/collection/components/select/index.js +1 -1
- package/dist/collection/components/table/header/index.js +1 -1
- package/dist/custom-elements/index.js +943 -695
- package/dist/esm/{Trigger-c637fedf.js → Trigger-d7b181ec.js} +16 -0
- package/dist/esm/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
- package/dist/{smoothly/index-a7e44b28.js → esm/index-01fedb5b.js} +806 -638
- package/dist/esm/{index-046ba252.js → index-13251390.js} +89 -19
- package/dist/{smoothly/index-71e3ce99.js → esm/index-531e2f06.js} +16 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/smoothly-accordion_43.entry.js +917 -694
- package/dist/esm/smoothly-calendar.entry.js +7 -7
- package/dist/esm/smoothly-dialog.entry.js +1 -1
- package/dist/esm/smoothly-display-amount.entry.js +2 -4
- package/dist/esm/smoothly-display-demo.entry.js +1 -1
- package/dist/esm/smoothly-display.entry.js +1 -1
- package/dist/esm/smoothly-frame.entry.js +1 -1
- package/dist/esm/smoothly-input-date-range.entry.js +1 -1
- package/dist/esm/smoothly-input-date.entry.js +1 -1
- package/dist/esm/smoothly-input-month.entry.js +11 -11
- package/dist/esm/smoothly-input.entry.js +2 -2
- package/dist/esm/smoothly-picker.entry.js +12 -17
- package/dist/esm/smoothly-select.entry.js +1 -1
- package/dist/esm/smoothly-table-header.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/smoothly/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
- package/dist/{esm/index-a7e44b28.js → smoothly/index-01fedb5b.js} +806 -638
- package/dist/smoothly/{index-046ba252.js → index-13251390.js} +89 -19
- package/dist/{esm/index-71e3ce99.js → smoothly/index-531e2f06.js} +16 -0
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/p-2cda1784.js +1 -0
- package/dist/smoothly/{p-24d838b1.entry.js → p-89fe12b0.entry.js} +1 -1
- package/dist/smoothly/p-c107b623.entry.js +1 -0
- package/dist/smoothly/{p-77f6d4bf.entry.js → p-e79800d9.entry.js} +1 -1
- package/dist/smoothly/smoothly-calendar.entry.js +7 -7
- package/dist/smoothly/smoothly-dialog.entry.js +1 -1
- package/dist/smoothly/smoothly-display-amount.entry.js +2 -4
- package/dist/smoothly/smoothly-display-demo.entry.js +1 -1
- package/dist/smoothly/smoothly-display.entry.js +1 -1
- package/dist/smoothly/smoothly-frame.entry.js +1 -1
- package/dist/smoothly/smoothly-input-date-range.entry.js +1 -1
- package/dist/smoothly/smoothly-input-date.entry.js +1 -1
- package/dist/smoothly/smoothly-input-month.entry.js +11 -11
- package/dist/smoothly/smoothly-input.entry.js +2 -2
- package/dist/smoothly/smoothly-picker.entry.js +12 -17
- package/dist/smoothly/smoothly-select.entry.js +1 -1
- package/dist/smoothly/smoothly-table-header.entry.js +1 -1
- package/dist/smoothly/smoothly-trigger-sink.entry.js +1 -1
- package/dist/smoothly/smoothly-trigger-source.entry.js +1 -1
- package/dist/types/components/input-month/index.d.ts +1 -1
- package/package.json +5 -5
- package/dist/smoothly/p-08ef34d4.js +0 -1
- package/dist/smoothly/p-bee6330e.entry.js +0 -1
|
@@ -208,6 +208,22 @@ var Identifier;
|
|
|
208
208
|
Array.from(value).every(c => (c >= "0" && c <= "9") || (c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || c == "-" || c == "_"));
|
|
209
209
|
}
|
|
210
210
|
Identifier.is = is;
|
|
211
|
+
function fromUint24(value) {
|
|
212
|
+
return fromHexadecimal(value.toString(16).padStart(6, "0"));
|
|
213
|
+
}
|
|
214
|
+
Identifier.fromUint24 = fromUint24;
|
|
215
|
+
function toUint24(identifier) {
|
|
216
|
+
return Number.parseInt(toHexadecimal(identifier, 6), 16);
|
|
217
|
+
}
|
|
218
|
+
Identifier.toUint24 = toUint24;
|
|
219
|
+
function fromUint48(value) {
|
|
220
|
+
return fromHexadecimal(value.toString(16).padStart(12, "0"));
|
|
221
|
+
}
|
|
222
|
+
Identifier.fromUint48 = fromUint48;
|
|
223
|
+
function toUint48(identifier) {
|
|
224
|
+
return Number.parseInt(toHexadecimal(identifier, 12), 16);
|
|
225
|
+
}
|
|
226
|
+
Identifier.toUint48 = toUint48;
|
|
211
227
|
function fromBinary(identifier) {
|
|
212
228
|
return encode$1(identifier, "url");
|
|
213
229
|
}
|
|
@@ -16570,28 +16570,28 @@ const CurrencyCode = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(Curre
|
|
|
16570
16570
|
var _Date = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
16571
16571
|
"use strict";
|
|
16572
16572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16573
|
-
exports.
|
|
16574
|
-
var
|
|
16575
|
-
(function (
|
|
16573
|
+
exports.Date = void 0;
|
|
16574
|
+
var Date;
|
|
16575
|
+
(function (Date) {
|
|
16576
16576
|
function is(value) {
|
|
16577
16577
|
return (typeof value == "string" && /^(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)$/.test(value));
|
|
16578
16578
|
}
|
|
16579
|
-
|
|
16579
|
+
Date.is = is;
|
|
16580
16580
|
function parse(value, time) {
|
|
16581
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16581
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16582
16582
|
}
|
|
16583
|
-
|
|
16583
|
+
Date.parse = parse;
|
|
16584
16584
|
function create(value) {
|
|
16585
16585
|
return value.toISOString().substring(0, 10);
|
|
16586
16586
|
}
|
|
16587
|
-
|
|
16587
|
+
Date.create = create;
|
|
16588
16588
|
function now() {
|
|
16589
|
-
return create(new Date());
|
|
16589
|
+
return create(new globalThis.Date());
|
|
16590
16590
|
}
|
|
16591
|
-
|
|
16591
|
+
Date.now = now;
|
|
16592
16592
|
function localize(value, locale) {
|
|
16593
|
-
|
|
16594
|
-
|
|
16593
|
+
return (is(value) ? parse(value) : value)
|
|
16594
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
16595
16595
|
year: "numeric",
|
|
16596
16596
|
month: "2-digit",
|
|
16597
16597
|
day: "2-digit",
|
|
@@ -16599,11 +16599,82 @@ var IsoDate;
|
|
|
16599
16599
|
minute: "2-digit",
|
|
16600
16600
|
second: "2-digit",
|
|
16601
16601
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16602
|
-
}
|
|
16603
|
-
|
|
16602
|
+
})
|
|
16603
|
+
.substring(0, 10);
|
|
16604
|
+
}
|
|
16605
|
+
Date.localize = localize;
|
|
16606
|
+
function next(date, days = 1) {
|
|
16607
|
+
let result;
|
|
16608
|
+
if (typeof days == "number") {
|
|
16609
|
+
const r = parse(date);
|
|
16610
|
+
r.setDate(r.getDate() + days);
|
|
16611
|
+
result = Date.create(r);
|
|
16612
|
+
}
|
|
16613
|
+
else {
|
|
16614
|
+
result = date;
|
|
16615
|
+
if (days.years)
|
|
16616
|
+
result = nextYear(result, days.years);
|
|
16617
|
+
if (days.months)
|
|
16618
|
+
result = nextMonth(result, days.months);
|
|
16619
|
+
if (days.days)
|
|
16620
|
+
result = next(result, days.days);
|
|
16621
|
+
}
|
|
16622
|
+
return result;
|
|
16623
|
+
}
|
|
16624
|
+
Date.next = next;
|
|
16625
|
+
function previous(date, days = 1) {
|
|
16626
|
+
let result;
|
|
16627
|
+
if (typeof days == "number") {
|
|
16628
|
+
const r = parse(date);
|
|
16629
|
+
r.setDate(r.getDate() - days);
|
|
16630
|
+
result = Date.create(r);
|
|
16631
|
+
}
|
|
16632
|
+
else {
|
|
16633
|
+
result = date;
|
|
16634
|
+
if (days.years)
|
|
16635
|
+
result = previousYear(result, days.years);
|
|
16636
|
+
if (days.months)
|
|
16637
|
+
result = previousMonth(result, days.months);
|
|
16638
|
+
if (days.days)
|
|
16639
|
+
result = previous(result, days.days);
|
|
16640
|
+
}
|
|
16641
|
+
return result;
|
|
16642
|
+
}
|
|
16643
|
+
Date.previous = previous;
|
|
16644
|
+
function nextMonth(date, months = 1) {
|
|
16645
|
+
const result = parse(date);
|
|
16646
|
+
result.setMonth(result.getMonth() + months);
|
|
16647
|
+
return Date.create(result);
|
|
16648
|
+
}
|
|
16649
|
+
Date.nextMonth = nextMonth;
|
|
16650
|
+
function previousMonth(date, months = 1) {
|
|
16651
|
+
return nextMonth(date, -months);
|
|
16652
|
+
}
|
|
16653
|
+
Date.previousMonth = previousMonth;
|
|
16654
|
+
function nextYear(date, years = 1) {
|
|
16655
|
+
const result = parse(date);
|
|
16656
|
+
result.setFullYear(result.getFullYear() + years);
|
|
16657
|
+
return Date.create(result);
|
|
16658
|
+
}
|
|
16659
|
+
Date.nextYear = nextYear;
|
|
16660
|
+
function previousYear(date, years = 1) {
|
|
16661
|
+
return nextYear(date, -years);
|
|
16662
|
+
}
|
|
16663
|
+
Date.previousYear = previousYear;
|
|
16664
|
+
function firstOfMonth(date) {
|
|
16665
|
+
const result = parse(date);
|
|
16666
|
+
result.setDate(1);
|
|
16667
|
+
return Date.create(result);
|
|
16668
|
+
}
|
|
16669
|
+
Date.firstOfMonth = firstOfMonth;
|
|
16670
|
+
function lastOfMonth(date) {
|
|
16671
|
+
const result = parse(date);
|
|
16672
|
+
result.setMonth(result.getMonth() + 1);
|
|
16673
|
+
result.setDate(-1);
|
|
16674
|
+
return Date.create(result);
|
|
16604
16675
|
}
|
|
16605
|
-
|
|
16606
|
-
})(
|
|
16676
|
+
Date.lastOfMonth = lastOfMonth;
|
|
16677
|
+
})(Date = exports.Date || (exports.Date = {}));
|
|
16607
16678
|
//# sourceMappingURL=Date.js.map
|
|
16608
16679
|
});
|
|
16609
16680
|
|
|
@@ -16634,7 +16705,7 @@ var DateTime;
|
|
|
16634
16705
|
DateTime.now = now;
|
|
16635
16706
|
function localize(value, locale) {
|
|
16636
16707
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
16637
|
-
|
|
16708
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
16638
16709
|
year: "numeric",
|
|
16639
16710
|
month: "2-digit",
|
|
16640
16711
|
day: "2-digit",
|
|
@@ -16642,8 +16713,7 @@ var DateTime;
|
|
|
16642
16713
|
minute: "2-digit",
|
|
16643
16714
|
second: "2-digit",
|
|
16644
16715
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16645
|
-
};
|
|
16646
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
16716
|
+
});
|
|
16647
16717
|
}
|
|
16648
16718
|
DateTime.localize = localize;
|
|
16649
16719
|
})(DateTime = exports.DateTime || (exports.DateTime = {}));
|
|
@@ -18418,7 +18488,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
18418
18488
|
|
|
18419
18489
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1.CurrencyCode; } });
|
|
18420
18490
|
|
|
18421
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.
|
|
18491
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.Date; } });
|
|
18422
18492
|
|
|
18423
18493
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1.DateTime; } });
|
|
18424
18494
|
|
package/dist/cjs/index.cjs.js
CHANGED