smoothly 0.1.68 → 0.1.72
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/{generate-5e7cd3f7.js → generate-7f7f7d99.js} +3 -2
- package/dist/cjs/{index-896ac706.js → index-7c9d0102.js} +806 -638
- package/dist/cjs/{index-b8688617.js → index-e37f73fe.js} +89 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-accordion_43.cjs.entry.js → smoothly-accordion_44.cjs.entry.js} +1000 -737
- package/dist/cjs/smoothly-calendar.cjs.entry.js +7 -7
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +2 -4
- package/dist/cjs/smoothly-display.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-select.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-table-demo.cjs.entry.js +4 -1
- package/dist/cjs/smoothly-table-header.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-table-row.cjs.entry.js +21 -2
- package/dist/cjs/smoothly.cjs.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/select/index.js +1 -1
- package/dist/collection/components/table/demo/index.js +45 -24
- package/dist/collection/components/table/exandable/row/style.css +1 -0
- package/dist/collection/components/table/header/index.js +1 -1
- package/dist/collection/components/table/row/index.js +94 -3
- package/dist/collection/components/table/row/style.css +3 -0
- package/dist/custom-elements/index.js +941 -682
- 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/esm/loader.js +1 -1
- package/dist/esm/{smoothly-accordion_43.entry.js → smoothly-accordion_44.entry.js} +1000 -738
- package/dist/esm/smoothly-calendar.entry.js +7 -7
- package/dist/esm/smoothly-display-amount.entry.js +2 -4
- package/dist/esm/smoothly-display.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-select.entry.js +1 -1
- package/dist/esm/smoothly-table-demo.entry.js +4 -1
- package/dist/esm/smoothly-table-header.entry.js +1 -1
- package/dist/esm/smoothly-table-row.entry.js +22 -3
- package/dist/esm/smoothly.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/smoothly/p-485244c2.entry.js +1 -0
- package/dist/smoothly/smoothly-calendar.entry.js +7 -7
- package/dist/smoothly/smoothly-display-amount.entry.js +2 -4
- package/dist/smoothly/smoothly-display.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-select.entry.js +1 -1
- package/dist/smoothly/smoothly-table-demo.entry.js +4 -1
- package/dist/smoothly/smoothly-table-header.entry.js +1 -1
- package/dist/smoothly/smoothly-table-row.entry.js +22 -3
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input-month/index.d.ts +1 -1
- package/dist/types/components/table/demo/index.d.ts +1 -1
- package/dist/types/components/table/row/index.d.ts +10 -0
- package/dist/types/components.d.ts +5 -0
- package/package.json +5 -5
- package/dist/smoothly/p-07627dfe.entry.js +0 -1
- package/dist/smoothly/p-f2ed989e.entry.js +0 -1
|
@@ -16568,28 +16568,28 @@ const CurrencyCode = /*@__PURE__*/getDefaultExportFromCjs(CurrencyCode_1);
|
|
|
16568
16568
|
var _Date = createCommonjsModule(function (module, exports) {
|
|
16569
16569
|
"use strict";
|
|
16570
16570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16571
|
-
exports.
|
|
16572
|
-
var
|
|
16573
|
-
(function (
|
|
16571
|
+
exports.Date = void 0;
|
|
16572
|
+
var Date;
|
|
16573
|
+
(function (Date) {
|
|
16574
16574
|
function is(value) {
|
|
16575
16575
|
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));
|
|
16576
16576
|
}
|
|
16577
|
-
|
|
16577
|
+
Date.is = is;
|
|
16578
16578
|
function parse(value, time) {
|
|
16579
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16579
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16580
16580
|
}
|
|
16581
|
-
|
|
16581
|
+
Date.parse = parse;
|
|
16582
16582
|
function create(value) {
|
|
16583
16583
|
return value.toISOString().substring(0, 10);
|
|
16584
16584
|
}
|
|
16585
|
-
|
|
16585
|
+
Date.create = create;
|
|
16586
16586
|
function now() {
|
|
16587
|
-
return create(new Date());
|
|
16587
|
+
return create(new globalThis.Date());
|
|
16588
16588
|
}
|
|
16589
|
-
|
|
16589
|
+
Date.now = now;
|
|
16590
16590
|
function localize(value, locale) {
|
|
16591
|
-
|
|
16592
|
-
|
|
16591
|
+
return (is(value) ? parse(value) : value)
|
|
16592
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
16593
16593
|
year: "numeric",
|
|
16594
16594
|
month: "2-digit",
|
|
16595
16595
|
day: "2-digit",
|
|
@@ -16597,11 +16597,82 @@ var IsoDate;
|
|
|
16597
16597
|
minute: "2-digit",
|
|
16598
16598
|
second: "2-digit",
|
|
16599
16599
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16600
|
-
}
|
|
16601
|
-
|
|
16600
|
+
})
|
|
16601
|
+
.substring(0, 10);
|
|
16602
|
+
}
|
|
16603
|
+
Date.localize = localize;
|
|
16604
|
+
function next(date, days = 1) {
|
|
16605
|
+
let result;
|
|
16606
|
+
if (typeof days == "number") {
|
|
16607
|
+
const r = parse(date);
|
|
16608
|
+
r.setDate(r.getDate() + days);
|
|
16609
|
+
result = Date.create(r);
|
|
16610
|
+
}
|
|
16611
|
+
else {
|
|
16612
|
+
result = date;
|
|
16613
|
+
if (days.years)
|
|
16614
|
+
result = nextYear(result, days.years);
|
|
16615
|
+
if (days.months)
|
|
16616
|
+
result = nextMonth(result, days.months);
|
|
16617
|
+
if (days.days)
|
|
16618
|
+
result = next(result, days.days);
|
|
16619
|
+
}
|
|
16620
|
+
return result;
|
|
16621
|
+
}
|
|
16622
|
+
Date.next = next;
|
|
16623
|
+
function previous(date, days = 1) {
|
|
16624
|
+
let result;
|
|
16625
|
+
if (typeof days == "number") {
|
|
16626
|
+
const r = parse(date);
|
|
16627
|
+
r.setDate(r.getDate() - days);
|
|
16628
|
+
result = Date.create(r);
|
|
16629
|
+
}
|
|
16630
|
+
else {
|
|
16631
|
+
result = date;
|
|
16632
|
+
if (days.years)
|
|
16633
|
+
result = previousYear(result, days.years);
|
|
16634
|
+
if (days.months)
|
|
16635
|
+
result = previousMonth(result, days.months);
|
|
16636
|
+
if (days.days)
|
|
16637
|
+
result = previous(result, days.days);
|
|
16638
|
+
}
|
|
16639
|
+
return result;
|
|
16640
|
+
}
|
|
16641
|
+
Date.previous = previous;
|
|
16642
|
+
function nextMonth(date, months = 1) {
|
|
16643
|
+
const result = parse(date);
|
|
16644
|
+
result.setMonth(result.getMonth() + months);
|
|
16645
|
+
return Date.create(result);
|
|
16646
|
+
}
|
|
16647
|
+
Date.nextMonth = nextMonth;
|
|
16648
|
+
function previousMonth(date, months = 1) {
|
|
16649
|
+
return nextMonth(date, -months);
|
|
16650
|
+
}
|
|
16651
|
+
Date.previousMonth = previousMonth;
|
|
16652
|
+
function nextYear(date, years = 1) {
|
|
16653
|
+
const result = parse(date);
|
|
16654
|
+
result.setFullYear(result.getFullYear() + years);
|
|
16655
|
+
return Date.create(result);
|
|
16656
|
+
}
|
|
16657
|
+
Date.nextYear = nextYear;
|
|
16658
|
+
function previousYear(date, years = 1) {
|
|
16659
|
+
return nextYear(date, -years);
|
|
16660
|
+
}
|
|
16661
|
+
Date.previousYear = previousYear;
|
|
16662
|
+
function firstOfMonth(date) {
|
|
16663
|
+
const result = parse(date);
|
|
16664
|
+
result.setDate(1);
|
|
16665
|
+
return Date.create(result);
|
|
16666
|
+
}
|
|
16667
|
+
Date.firstOfMonth = firstOfMonth;
|
|
16668
|
+
function lastOfMonth(date) {
|
|
16669
|
+
const result = parse(date);
|
|
16670
|
+
result.setMonth(result.getMonth() + 1);
|
|
16671
|
+
result.setDate(-1);
|
|
16672
|
+
return Date.create(result);
|
|
16602
16673
|
}
|
|
16603
|
-
|
|
16604
|
-
})(
|
|
16674
|
+
Date.lastOfMonth = lastOfMonth;
|
|
16675
|
+
})(Date = exports.Date || (exports.Date = {}));
|
|
16605
16676
|
//# sourceMappingURL=Date.js.map
|
|
16606
16677
|
});
|
|
16607
16678
|
|
|
@@ -16632,7 +16703,7 @@ var DateTime;
|
|
|
16632
16703
|
DateTime.now = now;
|
|
16633
16704
|
function localize(value, locale) {
|
|
16634
16705
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
16635
|
-
|
|
16706
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
16636
16707
|
year: "numeric",
|
|
16637
16708
|
month: "2-digit",
|
|
16638
16709
|
day: "2-digit",
|
|
@@ -16640,8 +16711,7 @@ var DateTime;
|
|
|
16640
16711
|
minute: "2-digit",
|
|
16641
16712
|
second: "2-digit",
|
|
16642
16713
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16643
|
-
};
|
|
16644
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
16714
|
+
});
|
|
16645
16715
|
}
|
|
16646
16716
|
DateTime.localize = localize;
|
|
16647
16717
|
})(DateTime = exports.DateTime || (exports.DateTime = {}));
|
|
@@ -18416,7 +18486,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
18416
18486
|
|
|
18417
18487
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1.CurrencyCode; } });
|
|
18418
18488
|
|
|
18419
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.
|
|
18489
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.Date; } });
|
|
18420
18490
|
|
|
18421
18491
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1.DateTime; } });
|
|
18422
18492
|
|