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
|
@@ -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/loader.cjs.js
CHANGED
|
@@ -30,7 +30,7 @@ const defineCustomElements = (win, options) => {
|
|
|
30
30
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
31
31
|
return patchEsm().then(() => {
|
|
32
32
|
appGlobals.globalScripts();
|
|
33
|
-
return index.bootstrapLazy([["smoothly-app-demo.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-
|
|
33
|
+
return index.bootstrapLazy([["smoothly-app-demo.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo.cjs",[[0,"smoothly-input-demo"]]],["smoothly-select-demo.cjs",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo.cjs",[[2,"smoothly-table-demo"]]],["smoothly-display-demo.cjs",[[0,"smoothly-display-demo"]]],["smoothly-app.cjs",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo.cjs",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo.cjs",[[2,"smoothly-icon-demo"]]],["smoothly-room.cjs",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range.cjs",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker.cjs",[[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.cjs",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit.cjs",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-tuple.cjs",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame.cjs",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup.cjs",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select.cjs",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-table.cjs",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell.cjs",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell.cjs",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row.cjs",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header.cjs",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row.cjs",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon.cjs",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-selector.cjs",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-input-date.cjs",[[6,"smoothly-input-date",{"value":[1025],"open":[1028]}]]],["smoothly-notification.cjs",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-menu-options.cjs",[[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.cjs",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time.cjs",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-spinner.cjs",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-option.cjs",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537]}]]],["smoothly-item.cjs",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-input-month.cjs",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-calendar.cjs",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"doubleInput":[516,"double-input"]}]]],["smoothly-input.cjs",[[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.cjs",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
|