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
|
|
package/dist/esm/loader.js
CHANGED
|
@@ -26,7 +26,7 @@ const defineCustomElements = (win, options) => {
|
|
|
26
26
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
27
27
|
return patchEsm().then(() => {
|
|
28
28
|
globalScripts();
|
|
29
|
-
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-
|
|
29
|
+
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo",[[0,"smoothly-input-demo"]]],["smoothly-select-demo",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo",[[2,"smoothly-table-demo"]]],["smoothly-display-demo",[[0,"smoothly-display-demo"]]],["smoothly-app",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo",[[2,"smoothly-icon-demo"]]],["smoothly-room",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]]],["smoothly-notifier",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker",[[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]]]],["smoothly-dialog",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-checkbox",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-tuple",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-urlencoded",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-radio",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-table",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-selector",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-input-date",[[6,"smoothly-input-date",{"value":[1025],"open":[1028]}]]],["smoothly-notification",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-menu-options",[[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"filteredOptions":[32],"highlightIndex":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]]]],["smoothly-display",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-spinner",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-option",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537]}]]],["smoothly-item",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-input-month",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-calendar",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"doubleInput":[516,"double-input"]}]]],["smoothly-input",[[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}]]],["smoothly-trigger",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
|