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
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, a as getElement, c as createEvent, H as Host
|
|
|
2
2
|
import { A as App, N as Notice } from './Notice-966edc54.js';
|
|
3
3
|
import { T as Trigger, M as Message } from './Trigger-d7b181ec.js';
|
|
4
4
|
|
|
5
|
-
const styleCss$
|
|
5
|
+
const styleCss$A = "smoothly-accordion-item.sc-smoothly-accordion{border:1px solid rgb(var(--smoothly-dark-color));border-bottom:none}smoothly-accordion-item.sc-smoothly-accordion:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px;margin-top:0.4em}smoothly-accordion-item.sc-smoothly-accordion:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:1px solid rgb(var(--smoothly-dark-color));margin-bottom:0.6em}smoothly-accordion-item[open].sc-smoothly-accordion{border-color:rgb(var(--smoothly-primary-color));border-bottom:1px solid rgb(var(--smoothly-primary-color))}smoothly-accordion-item[open].sc-smoothly-accordion+smoothly-accordion-item.sc-smoothly-accordion{border-top:none}";
|
|
6
6
|
|
|
7
7
|
const SmoothlyAccordion = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -48,9 +48,9 @@ const SmoothlyAccordion = class {
|
|
|
48
48
|
"value": ["valueChanged"]
|
|
49
49
|
}; }
|
|
50
50
|
};
|
|
51
|
-
SmoothlyAccordion.style = styleCss$
|
|
51
|
+
SmoothlyAccordion.style = styleCss$A;
|
|
52
52
|
|
|
53
|
-
const styleCss$
|
|
53
|
+
const styleCss$z = ".sc-smoothly-accordion-item-h{display:block}[hidden].sc-smoothly-accordion-item-h{display:none}details.sc-smoothly-accordion-item{padding:0}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>span.sc-smoothly-accordion-item{float:right;margin:0.2em;font-size:60%}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{font-size:120%;list-style-type:none;cursor:pointer;padding:0.4em;color:rgb(var(--smoothly-text-tint))}details.sc-smoothly-accordion-item>fieldset.sc-smoothly-accordion-item{border:none;margin:0;padding:0}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item::-webkit-details-marker{display:none}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{width:1em;height:auto;margin-bottom:-0.2em;margin-right:0.4em}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-accordion-item-h:not([open])>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-text-tint))}";
|
|
54
54
|
|
|
55
55
|
const SmoothlyAccordionItem = class {
|
|
56
56
|
constructor(hostRef) {
|
|
@@ -95,9 +95,9 @@ const SmoothlyAccordionItem = class {
|
|
|
95
95
|
"open": ["openChanged"]
|
|
96
96
|
}; }
|
|
97
97
|
};
|
|
98
|
-
SmoothlyAccordionItem.style = styleCss$
|
|
98
|
+
SmoothlyAccordionItem.style = styleCss$z;
|
|
99
99
|
|
|
100
|
-
const styleCss$
|
|
100
|
+
const styleCss$y = "smoothly-app{display:block;scrollbar-width:none}smoothly-app[hidden]{display:none}smoothly-app[color=default],smoothly-app:not([color]){--smoothly-app-background:var(--smoothly-default-shade);--smoothly-app-color:var(--smoothly-default-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-default-shadow)}smoothly-app[color=primary]{--smoothly-app-background:var(--smoothly-primary-shade);--smoothly-app-color:var(--smoothly-primary-contrast);--smoothly-app-hover-background:var(--smoothly-secondary-color);--smoothly-app-hover-color:var(--smoothly-secondary-contrast);--smoothly-app-shadow:var(--smoothly-primary-shadow)}smoothly-app[color=secondary]{--smoothly-app-background:var(--smoothly-secondary-shade);--smoothly-app-color:var(--smoothly-secondary-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-secondary-shadow)}smoothly-app[color=tertiary],smoothly-app[color=success],smoothly-app[color=warning],smoothly-app[color=danger]{--smoothly-app-background:var(--smoothly-color-shade);--smoothly-app-color:var(--smoothly-color-contrast);--smoothly-app-hover-background:var(--smoothly-default-shade);--smoothly-app-hover-color:var(--smoothly-default-contrast);--smoothly-app-shadow:var(--smoothly-color-shadow)}smoothly-app>smoothly-notifier>header{position:fixed;top:0;left:0;width:100%;z-index:5;height:1.6cm;background-color:rgb(var(--smoothly-app-background));color:rgb(var(--smoothly-app-color));fill:rgb(var(--smoothly-app-color));stroke:rgb(var(--smoothly-app-color));display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 5px 0 rgba(var(--smoothly-app-shadow))}smoothly-app>smoothly-notifier>header a{color:inherit;text-decoration:inherit}smoothly-app>smoothly-notifier>header>nav{flex-shrink:0}smoothly-app>smoothly-notifier>header>h1,smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul,smoothly-app>smoothly-notifier>header>nav>ul>li,smoothly-app>smoothly-notifier>header>nav>ul>li>*:not(a){display:inline-block;height:100%;margin:0}smoothly-app>smoothly-notifier>header>h1 a,smoothly-app>smoothly-notifier>header>nav>ul>li a{display:inline-block;line-height:1.6cm;height:100%;padding:0 0.4cm;text-decoration:none;font-weight:bold}smoothly-app>smoothly-notifier>header>nav>ul>li smoothly-trigger.sc-smoothly-trigger-h{border:0}smoothly-app>smoothly-notifier>header>nav>ul>li a>smoothly-icon{position:relative;top:0.2cm}smoothly-app>smoothly-notifier>header>nav>ul>li>a:hover>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li>a.active>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li>smoothly-trigger.active a>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li>smoothly-trigger:hover a>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li a:hover,smoothly-app>smoothly-notifier>header>nav>ul>li a.active{background-color:rgb(var(--smoothly-app-hover-background));color:rgb(var(--smoothly-app-hover-color));stroke:rgb(var(--smoothly-app-hover-color));fill:rgb(var(--smoothly-app-hover-color))}smoothly-app>smoothly-notifier>content{position:relative;top:1.6cm}";
|
|
101
101
|
|
|
102
102
|
const SmoothlyApp = class {
|
|
103
103
|
constructor(hostRef) {
|
|
@@ -107,7 +107,7 @@ const SmoothlyApp = class {
|
|
|
107
107
|
return (h("smoothly-notifier", null, h("slot", null)));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
SmoothlyApp.style = styleCss$
|
|
110
|
+
SmoothlyApp.style = styleCss$y;
|
|
111
111
|
|
|
112
112
|
const SmoothlyAppDemo = class {
|
|
113
113
|
constructor(hostRef) {
|
|
@@ -16543,27 +16543,27 @@ exports.CurrencyCode = void 0;
|
|
|
16543
16543
|
|
|
16544
16544
|
var _Date$1 = createCommonjsModule(function (module, exports) {
|
|
16545
16545
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16546
|
-
exports.
|
|
16547
|
-
(function (
|
|
16546
|
+
exports.Date = void 0;
|
|
16547
|
+
(function (Date) {
|
|
16548
16548
|
function is(value) {
|
|
16549
16549
|
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));
|
|
16550
16550
|
}
|
|
16551
|
-
|
|
16551
|
+
Date.is = is;
|
|
16552
16552
|
function parse(value, time) {
|
|
16553
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16553
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16554
16554
|
}
|
|
16555
|
-
|
|
16555
|
+
Date.parse = parse;
|
|
16556
16556
|
function create(value) {
|
|
16557
16557
|
return value.toISOString().substring(0, 10);
|
|
16558
16558
|
}
|
|
16559
|
-
|
|
16559
|
+
Date.create = create;
|
|
16560
16560
|
function now() {
|
|
16561
|
-
return create(new Date());
|
|
16561
|
+
return create(new globalThis.Date());
|
|
16562
16562
|
}
|
|
16563
|
-
|
|
16563
|
+
Date.now = now;
|
|
16564
16564
|
function localize(value, locale) {
|
|
16565
|
-
|
|
16566
|
-
|
|
16565
|
+
return (is(value) ? parse(value) : value)
|
|
16566
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
16567
16567
|
year: "numeric",
|
|
16568
16568
|
month: "2-digit",
|
|
16569
16569
|
day: "2-digit",
|
|
@@ -16571,11 +16571,82 @@ exports.IsoDate = void 0;
|
|
|
16571
16571
|
minute: "2-digit",
|
|
16572
16572
|
second: "2-digit",
|
|
16573
16573
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16574
|
-
}
|
|
16575
|
-
|
|
16574
|
+
})
|
|
16575
|
+
.substring(0, 10);
|
|
16576
|
+
}
|
|
16577
|
+
Date.localize = localize;
|
|
16578
|
+
function next(date, days = 1) {
|
|
16579
|
+
let result;
|
|
16580
|
+
if (typeof days == "number") {
|
|
16581
|
+
const r = parse(date);
|
|
16582
|
+
r.setDate(r.getDate() + days);
|
|
16583
|
+
result = Date.create(r);
|
|
16584
|
+
}
|
|
16585
|
+
else {
|
|
16586
|
+
result = date;
|
|
16587
|
+
if (days.years)
|
|
16588
|
+
result = nextYear(result, days.years);
|
|
16589
|
+
if (days.months)
|
|
16590
|
+
result = nextMonth(result, days.months);
|
|
16591
|
+
if (days.days)
|
|
16592
|
+
result = next(result, days.days);
|
|
16593
|
+
}
|
|
16594
|
+
return result;
|
|
16595
|
+
}
|
|
16596
|
+
Date.next = next;
|
|
16597
|
+
function previous(date, days = 1) {
|
|
16598
|
+
let result;
|
|
16599
|
+
if (typeof days == "number") {
|
|
16600
|
+
const r = parse(date);
|
|
16601
|
+
r.setDate(r.getDate() - days);
|
|
16602
|
+
result = Date.create(r);
|
|
16603
|
+
}
|
|
16604
|
+
else {
|
|
16605
|
+
result = date;
|
|
16606
|
+
if (days.years)
|
|
16607
|
+
result = previousYear(result, days.years);
|
|
16608
|
+
if (days.months)
|
|
16609
|
+
result = previousMonth(result, days.months);
|
|
16610
|
+
if (days.days)
|
|
16611
|
+
result = previous(result, days.days);
|
|
16612
|
+
}
|
|
16613
|
+
return result;
|
|
16576
16614
|
}
|
|
16577
|
-
|
|
16578
|
-
|
|
16615
|
+
Date.previous = previous;
|
|
16616
|
+
function nextMonth(date, months = 1) {
|
|
16617
|
+
const result = parse(date);
|
|
16618
|
+
result.setMonth(result.getMonth() + months);
|
|
16619
|
+
return Date.create(result);
|
|
16620
|
+
}
|
|
16621
|
+
Date.nextMonth = nextMonth;
|
|
16622
|
+
function previousMonth(date, months = 1) {
|
|
16623
|
+
return nextMonth(date, -months);
|
|
16624
|
+
}
|
|
16625
|
+
Date.previousMonth = previousMonth;
|
|
16626
|
+
function nextYear(date, years = 1) {
|
|
16627
|
+
const result = parse(date);
|
|
16628
|
+
result.setFullYear(result.getFullYear() + years);
|
|
16629
|
+
return Date.create(result);
|
|
16630
|
+
}
|
|
16631
|
+
Date.nextYear = nextYear;
|
|
16632
|
+
function previousYear(date, years = 1) {
|
|
16633
|
+
return nextYear(date, -years);
|
|
16634
|
+
}
|
|
16635
|
+
Date.previousYear = previousYear;
|
|
16636
|
+
function firstOfMonth(date) {
|
|
16637
|
+
const result = parse(date);
|
|
16638
|
+
result.setDate(1);
|
|
16639
|
+
return Date.create(result);
|
|
16640
|
+
}
|
|
16641
|
+
Date.firstOfMonth = firstOfMonth;
|
|
16642
|
+
function lastOfMonth(date) {
|
|
16643
|
+
const result = parse(date);
|
|
16644
|
+
result.setMonth(result.getMonth() + 1);
|
|
16645
|
+
result.setDate(-1);
|
|
16646
|
+
return Date.create(result);
|
|
16647
|
+
}
|
|
16648
|
+
Date.lastOfMonth = lastOfMonth;
|
|
16649
|
+
})(exports.Date || (exports.Date = {}));
|
|
16579
16650
|
//# sourceMappingURL=Date.js.map
|
|
16580
16651
|
});
|
|
16581
16652
|
|
|
@@ -16602,7 +16673,7 @@ exports.DateTime = void 0;
|
|
|
16602
16673
|
DateTime.now = now;
|
|
16603
16674
|
function localize(value, locale) {
|
|
16604
16675
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
16605
|
-
|
|
16676
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
16606
16677
|
year: "numeric",
|
|
16607
16678
|
month: "2-digit",
|
|
16608
16679
|
day: "2-digit",
|
|
@@ -16610,8 +16681,7 @@ exports.DateTime = void 0;
|
|
|
16610
16681
|
minute: "2-digit",
|
|
16611
16682
|
second: "2-digit",
|
|
16612
16683
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16613
|
-
};
|
|
16614
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
16684
|
+
});
|
|
16615
16685
|
}
|
|
16616
16686
|
DateTime.localize = localize;
|
|
16617
16687
|
})(exports.DateTime || (exports.DateTime = {}));
|
|
@@ -18358,7 +18428,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
18358
18428
|
|
|
18359
18429
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1$2.CurrencyCode; } });
|
|
18360
18430
|
|
|
18361
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$1.
|
|
18431
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$1.Date; } });
|
|
18362
18432
|
|
|
18363
18433
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1$2.DateTime; } });
|
|
18364
18434
|
|
|
@@ -18382,7 +18452,8 @@ function month(date) {
|
|
|
18382
18452
|
d.setDate(day++);
|
|
18383
18453
|
r.push(dist$4.Date.create(d));
|
|
18384
18454
|
}
|
|
18385
|
-
|
|
18455
|
+
if (row < 5 || dist$4.Date.firstOfMonth(r[0]) == dist$4.Date.firstOfMonth(date))
|
|
18456
|
+
result.push(r);
|
|
18386
18457
|
}
|
|
18387
18458
|
return result;
|
|
18388
18459
|
}
|
|
@@ -18427,7 +18498,7 @@ function years(current) {
|
|
|
18427
18498
|
return result;
|
|
18428
18499
|
}
|
|
18429
18500
|
|
|
18430
|
-
const styleCss$
|
|
18501
|
+
const styleCss$x = ".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:0.5em 0.5em 0 0.5em}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade));cursor:pointer;user-select:none}td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-tint))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-tint), var(--other-month-opacity))}td.sc-smoothly-calendar:not(.selected):hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-dark-tint));color:rgb(var(--smoothly-dark-contrast))}td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}";
|
|
18431
18502
|
|
|
18432
18503
|
const Calendar = class {
|
|
18433
18504
|
constructor(hostRef) {
|
|
@@ -18452,7 +18523,7 @@ const Calendar = class {
|
|
|
18452
18523
|
event.stopPropagation();
|
|
18453
18524
|
} }),
|
|
18454
18525
|
h("table", null, h("thead", null, h("tr", null, weekdays().map(day => (h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
|
|
18455
|
-
var _a, _b;
|
|
18526
|
+
var _a, _b, _c;
|
|
18456
18527
|
return (h("td", { tabindex: 1, onClick: () => {
|
|
18457
18528
|
this.valueChanged.emit((this.value = date));
|
|
18458
18529
|
this.clickCounter += 1;
|
|
@@ -18465,9 +18536,9 @@ const Calendar = class {
|
|
|
18465
18536
|
this.start = date;
|
|
18466
18537
|
}
|
|
18467
18538
|
}, class: (date == this.value ? ["selected"] : [])
|
|
18468
|
-
.concat(...(date == dist$4.Date.now() ? ["today"] : []),
|
|
18469
|
-
? dist$4.Date.parse(date) >= dist$4.Date.parse((
|
|
18470
|
-
dist$4.Date.parse(date) <= dist$4.Date.parse((
|
|
18539
|
+
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
18540
|
+
? dist$4.Date.parse(date) >= dist$4.Date.parse((_b = this.start) !== null && _b !== void 0 ? _b : "") &&
|
|
18541
|
+
dist$4.Date.parse(date) <= dist$4.Date.parse((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
18471
18542
|
? ["dateRange"]
|
|
18472
18543
|
: []
|
|
18473
18544
|
: "")
|
|
@@ -18481,7 +18552,7 @@ const Calendar = class {
|
|
|
18481
18552
|
"end": ["onEnd"]
|
|
18482
18553
|
}; }
|
|
18483
18554
|
};
|
|
18484
|
-
Calendar.style = styleCss$
|
|
18555
|
+
Calendar.style = styleCss$x;
|
|
18485
18556
|
|
|
18486
18557
|
var Alpha2_1$1 = createCommonjsModule(function (module, exports) {
|
|
18487
18558
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -31724,7 +31795,7 @@ function create(language) {
|
|
|
31724
31795
|
}, language);
|
|
31725
31796
|
}
|
|
31726
31797
|
|
|
31727
|
-
const styleCss$
|
|
31798
|
+
const styleCss$w = ".sc-smoothly-checkbox-h{display:block}[hidden].sc-smoothly-checkbox-h{display:none}smoothly-icon.sc-smoothly-checkbox{cursor:pointer}[disabled].sc-smoothly-checkbox-h smoothly-icon.sc-smoothly-checkbox{stroke:rgba(var(--smoothly-color-contrast), 0.3)}";
|
|
31728
31799
|
|
|
31729
31800
|
const SmoothlyCheckbox = class {
|
|
31730
31801
|
constructor(hostRef) {
|
|
@@ -31749,9 +31820,9 @@ const SmoothlyCheckbox = class {
|
|
|
31749
31820
|
}
|
|
31750
31821
|
get element() { return getElement(this); }
|
|
31751
31822
|
};
|
|
31752
|
-
SmoothlyCheckbox.style = styleCss$
|
|
31823
|
+
SmoothlyCheckbox.style = styleCss$w;
|
|
31753
31824
|
|
|
31754
|
-
const styleCss$
|
|
31825
|
+
const styleCss$v = ".sc-smoothly-dialog-h{display:block;position:fixed;left:0;top:0;width:100%;height:100%;z-index:1;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent)) !important}[hidden].sc-smoothly-dialog-h{display:none}.sc-smoothly-dialog-h>header.sc-smoothly-dialog{border-top-left-radius:8px;border-top-right-radius:8px;margin-top:2em;color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color));border-color:rgb(var(--smoothly-primary-color))}.sc-smoothly-dialog-h:not([header]) header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>*.sc-smoothly-dialog{position:relative;color:rgb(var(--smoothly-default-contrast));background-color:rgb(var(--smoothly-default-color));border-color:rgb(var(--smoothly-color));border-width:1px;border-style:solid;max-width:40em;width:calc(100vw - 4em - 2px);max-height:calc(100vh - 6em - 2px);height:auto;margin-left:auto;margin-right:auto;border-collapse:collapse}.sc-smoothly-dialog-h>main.sc-smoothly-dialog{border-bottom-left-radius:8px;border-bottom-right-radius:8px;margin-bottom:2em;border:1px solid rgb(var(--smoothly-default-contrast));box-sizing:border-box;overflow:hidden}.sc-smoothly-dialog-h:not([header]) main.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";
|
|
31755
31826
|
|
|
31756
31827
|
const SmoothlyDialog = class {
|
|
31757
31828
|
constructor(hostRef) {
|
|
@@ -31778,7 +31849,7 @@ const SmoothlyDialog = class {
|
|
|
31778
31849
|
}
|
|
31779
31850
|
render() { return h(Host, this.hostData(), this.__stencil_render()); }
|
|
31780
31851
|
};
|
|
31781
|
-
SmoothlyDialog.style = styleCss$
|
|
31852
|
+
SmoothlyDialog.style = styleCss$v;
|
|
31782
31853
|
|
|
31783
31854
|
const SmoothlyDialogDemo = class {
|
|
31784
31855
|
constructor(hostRef) {
|
|
@@ -32357,7 +32428,7 @@ exports.CallingCode = void 0;
|
|
|
32357
32428
|
value == "+44" ||
|
|
32358
32429
|
value == "+224" ||
|
|
32359
32430
|
value == "+245" ||
|
|
32360
|
-
value == "+
|
|
32431
|
+
value == "+592" ||
|
|
32361
32432
|
value == "+509" ||
|
|
32362
32433
|
value == "+379" ||
|
|
32363
32434
|
value == "+504" ||
|
|
@@ -32536,7 +32607,7 @@ exports.CallingCode = void 0;
|
|
|
32536
32607
|
})(exports.CallingCode || (exports.CallingCode = {}));
|
|
32537
32608
|
const callingCodetoAlpha2 = {
|
|
32538
32609
|
"+93": "AF",
|
|
32539
|
-
"+358": ["
|
|
32610
|
+
"+358": ["FI", "AX"],
|
|
32540
32611
|
"+355": "AL",
|
|
32541
32612
|
"+213": "DZ",
|
|
32542
32613
|
"+1684": "AS",
|
|
@@ -32573,7 +32644,7 @@ const callingCodetoAlpha2 = {
|
|
|
32573
32644
|
"+257": "BI",
|
|
32574
32645
|
"+855": "KH",
|
|
32575
32646
|
"+237": "CM",
|
|
32576
|
-
"+1": ["
|
|
32647
|
+
"+1": ["US", "CA"],
|
|
32577
32648
|
"+238": "CV",
|
|
32578
32649
|
"+345": "KY",
|
|
32579
32650
|
"+236": "CF",
|
|
@@ -32620,10 +32691,11 @@ const callingCodetoAlpha2 = {
|
|
|
32620
32691
|
"+590": ["GP", "BL", "MF"],
|
|
32621
32692
|
"+1671": "GU",
|
|
32622
32693
|
"+502": "GT",
|
|
32623
|
-
"+44": ["
|
|
32694
|
+
"+44": ["GB", "JE", "IM", "GG"],
|
|
32624
32695
|
"+224": "GN",
|
|
32625
32696
|
"+245": "GW",
|
|
32626
|
-
"+
|
|
32697
|
+
"+592": "GY",
|
|
32698
|
+
"+595": "PY",
|
|
32627
32699
|
"+509": "HT",
|
|
32628
32700
|
"+379": "VA",
|
|
32629
32701
|
"+504": "HN",
|
|
@@ -32668,7 +32740,7 @@ const callingCodetoAlpha2 = {
|
|
|
32668
32740
|
"+596": "MQ",
|
|
32669
32741
|
"+222": "MR",
|
|
32670
32742
|
"+230": "MU",
|
|
32671
|
-
"+262": ["
|
|
32743
|
+
"+262": ["RE", "YT"],
|
|
32672
32744
|
"+52": "MX",
|
|
32673
32745
|
"+691": "FM",
|
|
32674
32746
|
"+373": "MD",
|
|
@@ -32856,7 +32928,7 @@ const alpha2toCallingCode = {
|
|
|
32856
32928
|
GG: "+44",
|
|
32857
32929
|
GN: "+224",
|
|
32858
32930
|
GW: "+245",
|
|
32859
|
-
GY: "+
|
|
32931
|
+
GY: "+592",
|
|
32860
32932
|
HT: "+509",
|
|
32861
32933
|
VA: "+379",
|
|
32862
32934
|
HN: "+504",
|
|
@@ -33015,264 +33087,302 @@ var Alpha2_1 = createCommonjsModule(function (module, exports) {
|
|
|
33015
33087
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33016
33088
|
exports.Alpha2 = void 0;
|
|
33017
33089
|
(function (Alpha2) {
|
|
33090
|
+
Alpha2.types = [
|
|
33091
|
+
"AF",
|
|
33092
|
+
"AX",
|
|
33093
|
+
"AL",
|
|
33094
|
+
"DZ",
|
|
33095
|
+
"AS",
|
|
33096
|
+
"AD",
|
|
33097
|
+
"AO",
|
|
33098
|
+
"AI",
|
|
33099
|
+
"AQ",
|
|
33100
|
+
"AG",
|
|
33101
|
+
"AR",
|
|
33102
|
+
"AM",
|
|
33103
|
+
"AW",
|
|
33104
|
+
"AU",
|
|
33105
|
+
"AT",
|
|
33106
|
+
"AZ",
|
|
33107
|
+
"BS",
|
|
33108
|
+
"BH",
|
|
33109
|
+
"BD",
|
|
33110
|
+
"BB",
|
|
33111
|
+
"BY",
|
|
33112
|
+
"BE",
|
|
33113
|
+
"BZ",
|
|
33114
|
+
"BJ",
|
|
33115
|
+
"BM",
|
|
33116
|
+
"BT",
|
|
33117
|
+
"BO",
|
|
33118
|
+
"BQ",
|
|
33119
|
+
"BA",
|
|
33120
|
+
"BW",
|
|
33121
|
+
"BV",
|
|
33122
|
+
"BR",
|
|
33123
|
+
"IO",
|
|
33124
|
+
"BN",
|
|
33125
|
+
"BG",
|
|
33126
|
+
"BF",
|
|
33127
|
+
"BI",
|
|
33128
|
+
"CV",
|
|
33129
|
+
"KH",
|
|
33130
|
+
"CM",
|
|
33131
|
+
"CA",
|
|
33132
|
+
"KY",
|
|
33133
|
+
"CF",
|
|
33134
|
+
"TD",
|
|
33135
|
+
"CL",
|
|
33136
|
+
"CN",
|
|
33137
|
+
"CX",
|
|
33138
|
+
"CC",
|
|
33139
|
+
"CO",
|
|
33140
|
+
"KM",
|
|
33141
|
+
"CG",
|
|
33142
|
+
"CD",
|
|
33143
|
+
"CK",
|
|
33144
|
+
"CR",
|
|
33145
|
+
"CI",
|
|
33146
|
+
"HR",
|
|
33147
|
+
"CU",
|
|
33148
|
+
"CW",
|
|
33149
|
+
"CY",
|
|
33150
|
+
"CZ",
|
|
33151
|
+
"DK",
|
|
33152
|
+
"DJ",
|
|
33153
|
+
"DM",
|
|
33154
|
+
"DO",
|
|
33155
|
+
"EC",
|
|
33156
|
+
"EG",
|
|
33157
|
+
"SV",
|
|
33158
|
+
"GQ",
|
|
33159
|
+
"ER",
|
|
33160
|
+
"EE",
|
|
33161
|
+
"SZ",
|
|
33162
|
+
"ET",
|
|
33163
|
+
"FK",
|
|
33164
|
+
"FO",
|
|
33165
|
+
"FJ",
|
|
33166
|
+
"FI",
|
|
33167
|
+
"FR",
|
|
33168
|
+
"GF",
|
|
33169
|
+
"PF",
|
|
33170
|
+
"TF",
|
|
33171
|
+
"GA",
|
|
33172
|
+
"GM",
|
|
33173
|
+
"GE",
|
|
33174
|
+
"DE",
|
|
33175
|
+
"GH",
|
|
33176
|
+
"GI",
|
|
33177
|
+
"GR",
|
|
33178
|
+
"GL",
|
|
33179
|
+
"GD",
|
|
33180
|
+
"GP",
|
|
33181
|
+
"GU",
|
|
33182
|
+
"GT",
|
|
33183
|
+
"GG",
|
|
33184
|
+
"GN",
|
|
33185
|
+
"GW",
|
|
33186
|
+
"GY",
|
|
33187
|
+
"HT",
|
|
33188
|
+
"HM",
|
|
33189
|
+
"VA",
|
|
33190
|
+
"HN",
|
|
33191
|
+
"HK",
|
|
33192
|
+
"HU",
|
|
33193
|
+
"IS",
|
|
33194
|
+
"IN",
|
|
33195
|
+
"ID",
|
|
33196
|
+
"IR",
|
|
33197
|
+
"IQ",
|
|
33198
|
+
"IE",
|
|
33199
|
+
"IM",
|
|
33200
|
+
"IL",
|
|
33201
|
+
"IT",
|
|
33202
|
+
"JM",
|
|
33203
|
+
"JP",
|
|
33204
|
+
"JE",
|
|
33205
|
+
"JO",
|
|
33206
|
+
"KZ",
|
|
33207
|
+
"KE",
|
|
33208
|
+
"KI",
|
|
33209
|
+
"KP",
|
|
33210
|
+
"KR",
|
|
33211
|
+
"KW",
|
|
33212
|
+
"KG",
|
|
33213
|
+
"LA",
|
|
33214
|
+
"LV",
|
|
33215
|
+
"LB",
|
|
33216
|
+
"LS",
|
|
33217
|
+
"LR",
|
|
33218
|
+
"LY",
|
|
33219
|
+
"LI",
|
|
33220
|
+
"LT",
|
|
33221
|
+
"LU",
|
|
33222
|
+
"MO",
|
|
33223
|
+
"MG",
|
|
33224
|
+
"MW",
|
|
33225
|
+
"MY",
|
|
33226
|
+
"MV",
|
|
33227
|
+
"ML",
|
|
33228
|
+
"MT",
|
|
33229
|
+
"MH",
|
|
33230
|
+
"MQ",
|
|
33231
|
+
"MR",
|
|
33232
|
+
"MU",
|
|
33233
|
+
"YT",
|
|
33234
|
+
"MX",
|
|
33235
|
+
"FM",
|
|
33236
|
+
"MD",
|
|
33237
|
+
"MC",
|
|
33238
|
+
"MN",
|
|
33239
|
+
"ME",
|
|
33240
|
+
"MS",
|
|
33241
|
+
"MA",
|
|
33242
|
+
"MZ",
|
|
33243
|
+
"MM",
|
|
33244
|
+
"NA",
|
|
33245
|
+
"NR",
|
|
33246
|
+
"NP",
|
|
33247
|
+
"NL",
|
|
33248
|
+
"NC",
|
|
33249
|
+
"NZ",
|
|
33250
|
+
"NI",
|
|
33251
|
+
"NE",
|
|
33252
|
+
"NG",
|
|
33253
|
+
"NU",
|
|
33254
|
+
"NF",
|
|
33255
|
+
"MK",
|
|
33256
|
+
"MP",
|
|
33257
|
+
"NO",
|
|
33258
|
+
"OM",
|
|
33259
|
+
"PK",
|
|
33260
|
+
"PW",
|
|
33261
|
+
"PS",
|
|
33262
|
+
"PA",
|
|
33263
|
+
"PG",
|
|
33264
|
+
"PY",
|
|
33265
|
+
"PE",
|
|
33266
|
+
"PH",
|
|
33267
|
+
"PN",
|
|
33268
|
+
"PL",
|
|
33269
|
+
"PT",
|
|
33270
|
+
"PR",
|
|
33271
|
+
"QA",
|
|
33272
|
+
"RE",
|
|
33273
|
+
"RO",
|
|
33274
|
+
"RU",
|
|
33275
|
+
"RW",
|
|
33276
|
+
"BL",
|
|
33277
|
+
"SH",
|
|
33278
|
+
"KN",
|
|
33279
|
+
"LC",
|
|
33280
|
+
"MF",
|
|
33281
|
+
"PM",
|
|
33282
|
+
"VC",
|
|
33283
|
+
"WS",
|
|
33284
|
+
"SM",
|
|
33285
|
+
"ST",
|
|
33286
|
+
"SA",
|
|
33287
|
+
"SN",
|
|
33288
|
+
"RS",
|
|
33289
|
+
"SC",
|
|
33290
|
+
"SL",
|
|
33291
|
+
"SG",
|
|
33292
|
+
"SX",
|
|
33293
|
+
"SK",
|
|
33294
|
+
"SI",
|
|
33295
|
+
"SB",
|
|
33296
|
+
"SO",
|
|
33297
|
+
"ZA",
|
|
33298
|
+
"GS",
|
|
33299
|
+
"SS",
|
|
33300
|
+
"ES",
|
|
33301
|
+
"LK",
|
|
33302
|
+
"SD",
|
|
33303
|
+
"SR",
|
|
33304
|
+
"SJ",
|
|
33305
|
+
"SE",
|
|
33306
|
+
"CH",
|
|
33307
|
+
"SY",
|
|
33308
|
+
"TW",
|
|
33309
|
+
"TJ",
|
|
33310
|
+
"TZ",
|
|
33311
|
+
"TH",
|
|
33312
|
+
"TL",
|
|
33313
|
+
"TG",
|
|
33314
|
+
"TK",
|
|
33315
|
+
"TO",
|
|
33316
|
+
"TT",
|
|
33317
|
+
"TN",
|
|
33318
|
+
"TR",
|
|
33319
|
+
"TM",
|
|
33320
|
+
"TC",
|
|
33321
|
+
"TV",
|
|
33322
|
+
"UG",
|
|
33323
|
+
"UA",
|
|
33324
|
+
"AE",
|
|
33325
|
+
"GB",
|
|
33326
|
+
"US",
|
|
33327
|
+
"UM",
|
|
33328
|
+
"UY",
|
|
33329
|
+
"UZ",
|
|
33330
|
+
"VU",
|
|
33331
|
+
"VE",
|
|
33332
|
+
"VN",
|
|
33333
|
+
"VG",
|
|
33334
|
+
"VI",
|
|
33335
|
+
"WF",
|
|
33336
|
+
"EH",
|
|
33337
|
+
"YE",
|
|
33338
|
+
"ZM",
|
|
33339
|
+
"ZW",
|
|
33340
|
+
];
|
|
33018
33341
|
function is(value) {
|
|
33019
|
-
return (
|
|
33020
|
-
value.length == 2 &&
|
|
33021
|
-
(value == "AF" ||
|
|
33022
|
-
value == "AX" ||
|
|
33023
|
-
value == "AL" ||
|
|
33024
|
-
value == "DZ" ||
|
|
33025
|
-
value == "AS" ||
|
|
33026
|
-
value == "AD" ||
|
|
33027
|
-
value == "AO" ||
|
|
33028
|
-
value == "AI" ||
|
|
33029
|
-
value == "AQ" ||
|
|
33030
|
-
value == "AG" ||
|
|
33031
|
-
value == "AR" ||
|
|
33032
|
-
value == "AM" ||
|
|
33033
|
-
value == "AW" ||
|
|
33034
|
-
value == "AU" ||
|
|
33035
|
-
value == "AT" ||
|
|
33036
|
-
value == "AZ" ||
|
|
33037
|
-
value == "BS" ||
|
|
33038
|
-
value == "BH" ||
|
|
33039
|
-
value == "BD" ||
|
|
33040
|
-
value == "BB" ||
|
|
33041
|
-
value == "BY" ||
|
|
33042
|
-
value == "BE" ||
|
|
33043
|
-
value == "BZ" ||
|
|
33044
|
-
value == "BJ" ||
|
|
33045
|
-
value == "BM" ||
|
|
33046
|
-
value == "BT" ||
|
|
33047
|
-
value == "BO" ||
|
|
33048
|
-
value == "BQ" ||
|
|
33049
|
-
value == "BA" ||
|
|
33050
|
-
value == "BW" ||
|
|
33051
|
-
value == "BV" ||
|
|
33052
|
-
value == "BR" ||
|
|
33053
|
-
value == "IO" ||
|
|
33054
|
-
value == "BN" ||
|
|
33055
|
-
value == "BG" ||
|
|
33056
|
-
value == "BF" ||
|
|
33057
|
-
value == "BI" ||
|
|
33058
|
-
value == "CV" ||
|
|
33059
|
-
value == "KH" ||
|
|
33060
|
-
value == "CM" ||
|
|
33061
|
-
value == "CA" ||
|
|
33062
|
-
value == "KY" ||
|
|
33063
|
-
value == "CF" ||
|
|
33064
|
-
value == "TD" ||
|
|
33065
|
-
value == "CL" ||
|
|
33066
|
-
value == "CN" ||
|
|
33067
|
-
value == "CX" ||
|
|
33068
|
-
value == "CC" ||
|
|
33069
|
-
value == "CO" ||
|
|
33070
|
-
value == "KM" ||
|
|
33071
|
-
value == "CG" ||
|
|
33072
|
-
value == "CD" ||
|
|
33073
|
-
value == "CK" ||
|
|
33074
|
-
value == "CR" ||
|
|
33075
|
-
value == "CI" ||
|
|
33076
|
-
value == "HR" ||
|
|
33077
|
-
value == "CU" ||
|
|
33078
|
-
value == "CW" ||
|
|
33079
|
-
value == "CY" ||
|
|
33080
|
-
value == "CZ" ||
|
|
33081
|
-
value == "DK" ||
|
|
33082
|
-
value == "DJ" ||
|
|
33083
|
-
value == "DM" ||
|
|
33084
|
-
value == "DO" ||
|
|
33085
|
-
value == "EC" ||
|
|
33086
|
-
value == "EG" ||
|
|
33087
|
-
value == "SV" ||
|
|
33088
|
-
value == "GQ" ||
|
|
33089
|
-
value == "ER" ||
|
|
33090
|
-
value == "EE" ||
|
|
33091
|
-
value == "SZ" ||
|
|
33092
|
-
value == "ET" ||
|
|
33093
|
-
value == "FK" ||
|
|
33094
|
-
value == "FO" ||
|
|
33095
|
-
value == "FJ" ||
|
|
33096
|
-
value == "FI" ||
|
|
33097
|
-
value == "FR" ||
|
|
33098
|
-
value == "GF" ||
|
|
33099
|
-
value == "PF" ||
|
|
33100
|
-
value == "TF" ||
|
|
33101
|
-
value == "GA" ||
|
|
33102
|
-
value == "GM" ||
|
|
33103
|
-
value == "GE" ||
|
|
33104
|
-
value == "DE" ||
|
|
33105
|
-
value == "GH" ||
|
|
33106
|
-
value == "GI" ||
|
|
33107
|
-
value == "GR" ||
|
|
33108
|
-
value == "GL" ||
|
|
33109
|
-
value == "GD" ||
|
|
33110
|
-
value == "GP" ||
|
|
33111
|
-
value == "GU" ||
|
|
33112
|
-
value == "GT" ||
|
|
33113
|
-
value == "GG" ||
|
|
33114
|
-
value == "GN" ||
|
|
33115
|
-
value == "GW" ||
|
|
33116
|
-
value == "GY" ||
|
|
33117
|
-
value == "HT" ||
|
|
33118
|
-
value == "HM" ||
|
|
33119
|
-
value == "VA" ||
|
|
33120
|
-
value == "HN" ||
|
|
33121
|
-
value == "HK" ||
|
|
33122
|
-
value == "HU" ||
|
|
33123
|
-
value == "IS" ||
|
|
33124
|
-
value == "IN" ||
|
|
33125
|
-
value == "ID" ||
|
|
33126
|
-
value == "IR" ||
|
|
33127
|
-
value == "IQ" ||
|
|
33128
|
-
value == "IE" ||
|
|
33129
|
-
value == "IM" ||
|
|
33130
|
-
value == "IL" ||
|
|
33131
|
-
value == "IT" ||
|
|
33132
|
-
value == "JM" ||
|
|
33133
|
-
value == "JP" ||
|
|
33134
|
-
value == "JE" ||
|
|
33135
|
-
value == "JO" ||
|
|
33136
|
-
value == "KZ" ||
|
|
33137
|
-
value == "KE" ||
|
|
33138
|
-
value == "KI" ||
|
|
33139
|
-
value == "KP" ||
|
|
33140
|
-
value == "KR" ||
|
|
33141
|
-
value == "KW" ||
|
|
33142
|
-
value == "KG" ||
|
|
33143
|
-
value == "LA" ||
|
|
33144
|
-
value == "LV" ||
|
|
33145
|
-
value == "LB" ||
|
|
33146
|
-
value == "LS" ||
|
|
33147
|
-
value == "LR" ||
|
|
33148
|
-
value == "LY" ||
|
|
33149
|
-
value == "LI" ||
|
|
33150
|
-
value == "LT" ||
|
|
33151
|
-
value == "LU" ||
|
|
33152
|
-
value == "MO" ||
|
|
33153
|
-
value == "MG" ||
|
|
33154
|
-
value == "MW" ||
|
|
33155
|
-
value == "MY" ||
|
|
33156
|
-
value == "MV" ||
|
|
33157
|
-
value == "ML" ||
|
|
33158
|
-
value == "MT" ||
|
|
33159
|
-
value == "MH" ||
|
|
33160
|
-
value == "MQ" ||
|
|
33161
|
-
value == "MR" ||
|
|
33162
|
-
value == "MU" ||
|
|
33163
|
-
value == "YT" ||
|
|
33164
|
-
value == "MX" ||
|
|
33165
|
-
value == "FM" ||
|
|
33166
|
-
value == "MD" ||
|
|
33167
|
-
value == "MC" ||
|
|
33168
|
-
value == "MN" ||
|
|
33169
|
-
value == "ME" ||
|
|
33170
|
-
value == "MS" ||
|
|
33171
|
-
value == "MA" ||
|
|
33172
|
-
value == "MZ" ||
|
|
33173
|
-
value == "MM" ||
|
|
33174
|
-
value == "NA" ||
|
|
33175
|
-
value == "NR" ||
|
|
33176
|
-
value == "NP" ||
|
|
33177
|
-
value == "NL" ||
|
|
33178
|
-
value == "NC" ||
|
|
33179
|
-
value == "NZ" ||
|
|
33180
|
-
value == "NI" ||
|
|
33181
|
-
value == "NE" ||
|
|
33182
|
-
value == "NG" ||
|
|
33183
|
-
value == "NU" ||
|
|
33184
|
-
value == "NF" ||
|
|
33185
|
-
value == "MK" ||
|
|
33186
|
-
value == "MP" ||
|
|
33187
|
-
value == "NO" ||
|
|
33188
|
-
value == "OM" ||
|
|
33189
|
-
value == "PK" ||
|
|
33190
|
-
value == "PW" ||
|
|
33191
|
-
value == "PS" ||
|
|
33192
|
-
value == "PA" ||
|
|
33193
|
-
value == "PG" ||
|
|
33194
|
-
value == "PY" ||
|
|
33195
|
-
value == "PE" ||
|
|
33196
|
-
value == "PH" ||
|
|
33197
|
-
value == "PN" ||
|
|
33198
|
-
value == "PL" ||
|
|
33199
|
-
value == "PT" ||
|
|
33200
|
-
value == "PR" ||
|
|
33201
|
-
value == "QA" ||
|
|
33202
|
-
value == "RE" ||
|
|
33203
|
-
value == "RO" ||
|
|
33204
|
-
value == "RU" ||
|
|
33205
|
-
value == "RW" ||
|
|
33206
|
-
value == "BL" ||
|
|
33207
|
-
value == "SH" ||
|
|
33208
|
-
value == "KN" ||
|
|
33209
|
-
value == "LC" ||
|
|
33210
|
-
value == "MF" ||
|
|
33211
|
-
value == "PM" ||
|
|
33212
|
-
value == "VC" ||
|
|
33213
|
-
value == "WS" ||
|
|
33214
|
-
value == "SM" ||
|
|
33215
|
-
value == "ST" ||
|
|
33216
|
-
value == "SA" ||
|
|
33217
|
-
value == "SN" ||
|
|
33218
|
-
value == "RS" ||
|
|
33219
|
-
value == "SC" ||
|
|
33220
|
-
value == "SL" ||
|
|
33221
|
-
value == "SG" ||
|
|
33222
|
-
value == "SX" ||
|
|
33223
|
-
value == "SK" ||
|
|
33224
|
-
value == "SI" ||
|
|
33225
|
-
value == "SB" ||
|
|
33226
|
-
value == "SO" ||
|
|
33227
|
-
value == "ZA" ||
|
|
33228
|
-
value == "GS" ||
|
|
33229
|
-
value == "SS" ||
|
|
33230
|
-
value == "ES" ||
|
|
33231
|
-
value == "LK" ||
|
|
33232
|
-
value == "SD" ||
|
|
33233
|
-
value == "SR" ||
|
|
33234
|
-
value == "SJ" ||
|
|
33235
|
-
value == "SE" ||
|
|
33236
|
-
value == "CH" ||
|
|
33237
|
-
value == "SY" ||
|
|
33238
|
-
value == "TW" ||
|
|
33239
|
-
value == "TJ" ||
|
|
33240
|
-
value == "TZ" ||
|
|
33241
|
-
value == "TH" ||
|
|
33242
|
-
value == "TL" ||
|
|
33243
|
-
value == "TG" ||
|
|
33244
|
-
value == "TK" ||
|
|
33245
|
-
value == "TO" ||
|
|
33246
|
-
value == "TT" ||
|
|
33247
|
-
value == "TN" ||
|
|
33248
|
-
value == "TR" ||
|
|
33249
|
-
value == "TM" ||
|
|
33250
|
-
value == "TC" ||
|
|
33251
|
-
value == "TV" ||
|
|
33252
|
-
value == "UG" ||
|
|
33253
|
-
value == "UA" ||
|
|
33254
|
-
value == "AE" ||
|
|
33255
|
-
value == "GB" ||
|
|
33256
|
-
value == "US" ||
|
|
33257
|
-
value == "UM" ||
|
|
33258
|
-
value == "UY" ||
|
|
33259
|
-
value == "UZ" ||
|
|
33260
|
-
value == "VU" ||
|
|
33261
|
-
value == "VE" ||
|
|
33262
|
-
value == "VN" ||
|
|
33263
|
-
value == "VG" ||
|
|
33264
|
-
value == "VI" ||
|
|
33265
|
-
value == "WF" ||
|
|
33266
|
-
value == "EH" ||
|
|
33267
|
-
value == "YE" ||
|
|
33268
|
-
value == "ZM" ||
|
|
33269
|
-
value == "ZW"));
|
|
33342
|
+
return Alpha2.types.includes(value);
|
|
33270
33343
|
}
|
|
33271
33344
|
Alpha2.is = is;
|
|
33272
33345
|
function from(country) {
|
|
33273
33346
|
return typeof country == "number" ? numericToAlpha2[country.toString()] : alpha3ToAlpha2[country];
|
|
33274
33347
|
}
|
|
33275
33348
|
Alpha2.from = from;
|
|
33349
|
+
function isEEA(country) {
|
|
33350
|
+
return [
|
|
33351
|
+
"AL",
|
|
33352
|
+
"AT",
|
|
33353
|
+
"BA",
|
|
33354
|
+
"BE",
|
|
33355
|
+
"BG",
|
|
33356
|
+
"CH",
|
|
33357
|
+
"CY",
|
|
33358
|
+
"DE",
|
|
33359
|
+
"DK",
|
|
33360
|
+
"EE",
|
|
33361
|
+
"ES",
|
|
33362
|
+
"FI",
|
|
33363
|
+
"FR",
|
|
33364
|
+
"GB",
|
|
33365
|
+
"GR",
|
|
33366
|
+
"HR",
|
|
33367
|
+
"HU",
|
|
33368
|
+
"IE",
|
|
33369
|
+
"IS",
|
|
33370
|
+
"IT",
|
|
33371
|
+
"LT",
|
|
33372
|
+
"LV",
|
|
33373
|
+
"MK",
|
|
33374
|
+
"MT",
|
|
33375
|
+
"NL",
|
|
33376
|
+
"NO",
|
|
33377
|
+
"PL",
|
|
33378
|
+
"PT",
|
|
33379
|
+
"RO",
|
|
33380
|
+
"RS",
|
|
33381
|
+
"SE",
|
|
33382
|
+
"SI",
|
|
33383
|
+
].includes(country);
|
|
33384
|
+
}
|
|
33385
|
+
Alpha2.isEEA = isEEA;
|
|
33276
33386
|
})(exports.Alpha2 || (exports.Alpha2 = {}));
|
|
33277
33387
|
const numericToAlpha2 = {
|
|
33278
33388
|
"4": "AF",
|
|
@@ -47492,187 +47602,189 @@ var Currency_1 = createCommonjsModule(function (module, exports) {
|
|
|
47492
47602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47493
47603
|
exports.Currency = void 0;
|
|
47494
47604
|
(function (Currency) {
|
|
47605
|
+
Currency.types = [
|
|
47606
|
+
"AED",
|
|
47607
|
+
"AFN",
|
|
47608
|
+
"ALL",
|
|
47609
|
+
"AMD",
|
|
47610
|
+
"ANG",
|
|
47611
|
+
"AOA",
|
|
47612
|
+
"ARS",
|
|
47613
|
+
"AUD",
|
|
47614
|
+
"AWG",
|
|
47615
|
+
"AZN",
|
|
47616
|
+
"BAM",
|
|
47617
|
+
"BBD",
|
|
47618
|
+
"BDT",
|
|
47619
|
+
"BGN",
|
|
47620
|
+
"BHD",
|
|
47621
|
+
"BIF",
|
|
47622
|
+
"BMD",
|
|
47623
|
+
"BND",
|
|
47624
|
+
"BOB",
|
|
47625
|
+
"BOV",
|
|
47626
|
+
"BRL",
|
|
47627
|
+
"BSD",
|
|
47628
|
+
"BTN",
|
|
47629
|
+
"BWP",
|
|
47630
|
+
"BYN",
|
|
47631
|
+
"BZD",
|
|
47632
|
+
"CAD",
|
|
47633
|
+
"CDF",
|
|
47634
|
+
"CHE",
|
|
47635
|
+
"CHF",
|
|
47636
|
+
"CHW",
|
|
47637
|
+
"CLF",
|
|
47638
|
+
"CLP",
|
|
47639
|
+
"CNY",
|
|
47640
|
+
"COP",
|
|
47641
|
+
"COU",
|
|
47642
|
+
"CRC",
|
|
47643
|
+
"CUC",
|
|
47644
|
+
"CUP",
|
|
47645
|
+
"CVE",
|
|
47646
|
+
"CZK",
|
|
47647
|
+
"DJF",
|
|
47648
|
+
"DKK",
|
|
47649
|
+
"DOP",
|
|
47650
|
+
"DZD",
|
|
47651
|
+
"EGP",
|
|
47652
|
+
"ERN",
|
|
47653
|
+
"ETB",
|
|
47654
|
+
"EUR",
|
|
47655
|
+
"FJD",
|
|
47656
|
+
"FKP",
|
|
47657
|
+
"GBP",
|
|
47658
|
+
"GEL",
|
|
47659
|
+
"GHS",
|
|
47660
|
+
"GIP",
|
|
47661
|
+
"GMD",
|
|
47662
|
+
"GNF",
|
|
47663
|
+
"GTQ",
|
|
47664
|
+
"GYD",
|
|
47665
|
+
"HKD",
|
|
47666
|
+
"HNL",
|
|
47667
|
+
"HRK",
|
|
47668
|
+
"HTG",
|
|
47669
|
+
"HUF",
|
|
47670
|
+
"IDR",
|
|
47671
|
+
"ILS",
|
|
47672
|
+
"INR",
|
|
47673
|
+
"IQD",
|
|
47674
|
+
"IRR",
|
|
47675
|
+
"ISK",
|
|
47676
|
+
"JMD",
|
|
47677
|
+
"JOD",
|
|
47678
|
+
"JPY",
|
|
47679
|
+
"KES",
|
|
47680
|
+
"KGS",
|
|
47681
|
+
"KHR",
|
|
47682
|
+
"KMF",
|
|
47683
|
+
"KPW",
|
|
47684
|
+
"KRW",
|
|
47685
|
+
"KWD",
|
|
47686
|
+
"KYD",
|
|
47687
|
+
"KZT",
|
|
47688
|
+
"LAK",
|
|
47689
|
+
"LBP",
|
|
47690
|
+
"LKR",
|
|
47691
|
+
"LRD",
|
|
47692
|
+
"LSL",
|
|
47693
|
+
"LYD",
|
|
47694
|
+
"MAD",
|
|
47695
|
+
"MDL",
|
|
47696
|
+
"MGA",
|
|
47697
|
+
"MKD",
|
|
47698
|
+
"MMK",
|
|
47699
|
+
"MNT",
|
|
47700
|
+
"MOP",
|
|
47701
|
+
"MRU",
|
|
47702
|
+
"MUR",
|
|
47703
|
+
"MVR",
|
|
47704
|
+
"MWK",
|
|
47705
|
+
"MXN",
|
|
47706
|
+
"MXV",
|
|
47707
|
+
"MYR",
|
|
47708
|
+
"MZN",
|
|
47709
|
+
"NAD",
|
|
47710
|
+
"NGN",
|
|
47711
|
+
"NIO",
|
|
47712
|
+
"NOK",
|
|
47713
|
+
"NPR",
|
|
47714
|
+
"NZD",
|
|
47715
|
+
"OMR",
|
|
47716
|
+
"PAB",
|
|
47717
|
+
"PEN",
|
|
47718
|
+
"PGK",
|
|
47719
|
+
"PHP",
|
|
47720
|
+
"PKR",
|
|
47721
|
+
"PLN",
|
|
47722
|
+
"PYG",
|
|
47723
|
+
"QAR",
|
|
47724
|
+
"RON",
|
|
47725
|
+
"RSD",
|
|
47726
|
+
"RUB",
|
|
47727
|
+
"RWF",
|
|
47728
|
+
"SAR",
|
|
47729
|
+
"SBD",
|
|
47730
|
+
"SCR",
|
|
47731
|
+
"SDG",
|
|
47732
|
+
"SEK",
|
|
47733
|
+
"SGD",
|
|
47734
|
+
"SHP",
|
|
47735
|
+
"SLL",
|
|
47736
|
+
"SOS",
|
|
47737
|
+
"SRD",
|
|
47738
|
+
"SSP",
|
|
47739
|
+
"STN",
|
|
47740
|
+
"SVC",
|
|
47741
|
+
"SYP",
|
|
47742
|
+
"SZL",
|
|
47743
|
+
"THB",
|
|
47744
|
+
"TJS",
|
|
47745
|
+
"TMT",
|
|
47746
|
+
"TND",
|
|
47747
|
+
"TOP",
|
|
47748
|
+
"TRY",
|
|
47749
|
+
"TTD",
|
|
47750
|
+
"TWD",
|
|
47751
|
+
"TZS",
|
|
47752
|
+
"UAH",
|
|
47753
|
+
"UGX",
|
|
47754
|
+
"USD",
|
|
47755
|
+
"USN",
|
|
47756
|
+
"UYI",
|
|
47757
|
+
"UYU",
|
|
47758
|
+
"UYW",
|
|
47759
|
+
"UZS",
|
|
47760
|
+
"VES",
|
|
47761
|
+
"VND",
|
|
47762
|
+
"VUV",
|
|
47763
|
+
"WST",
|
|
47764
|
+
"XAF",
|
|
47765
|
+
"XAG",
|
|
47766
|
+
"XAU",
|
|
47767
|
+
"XBA",
|
|
47768
|
+
"XBB",
|
|
47769
|
+
"XBC",
|
|
47770
|
+
"XBD",
|
|
47771
|
+
"XCD",
|
|
47772
|
+
"XDR",
|
|
47773
|
+
"XOF",
|
|
47774
|
+
"XPD",
|
|
47775
|
+
"XPF",
|
|
47776
|
+
"XPT",
|
|
47777
|
+
"XSU",
|
|
47778
|
+
"XTS",
|
|
47779
|
+
"XUA",
|
|
47780
|
+
"XXX",
|
|
47781
|
+
"YER",
|
|
47782
|
+
"ZAR",
|
|
47783
|
+
"ZMW",
|
|
47784
|
+
"ZWL",
|
|
47785
|
+
];
|
|
47495
47786
|
function is(currency) {
|
|
47496
|
-
return (
|
|
47497
|
-
(currency == "AED" ||
|
|
47498
|
-
currency == "AFN" ||
|
|
47499
|
-
currency == "ALL" ||
|
|
47500
|
-
currency == "AMD" ||
|
|
47501
|
-
currency == "ANG" ||
|
|
47502
|
-
currency == "AOA" ||
|
|
47503
|
-
currency == "ARS" ||
|
|
47504
|
-
currency == "AUD" ||
|
|
47505
|
-
currency == "AWG" ||
|
|
47506
|
-
currency == "AZN" ||
|
|
47507
|
-
currency == "BAM" ||
|
|
47508
|
-
currency == "BBD" ||
|
|
47509
|
-
currency == "BDT" ||
|
|
47510
|
-
currency == "BGN" ||
|
|
47511
|
-
currency == "BHD" ||
|
|
47512
|
-
currency == "BIF" ||
|
|
47513
|
-
currency == "BMD" ||
|
|
47514
|
-
currency == "BND" ||
|
|
47515
|
-
currency == "BOB" ||
|
|
47516
|
-
currency == "BOV" ||
|
|
47517
|
-
currency == "BRL" ||
|
|
47518
|
-
currency == "BSD" ||
|
|
47519
|
-
currency == "BTN" ||
|
|
47520
|
-
currency == "BWP" ||
|
|
47521
|
-
currency == "BYN" ||
|
|
47522
|
-
currency == "BZD" ||
|
|
47523
|
-
currency == "CAD" ||
|
|
47524
|
-
currency == "CDF" ||
|
|
47525
|
-
currency == "CHE" ||
|
|
47526
|
-
currency == "CHF" ||
|
|
47527
|
-
currency == "CHW" ||
|
|
47528
|
-
currency == "CLF" ||
|
|
47529
|
-
currency == "CLP" ||
|
|
47530
|
-
currency == "CNY" ||
|
|
47531
|
-
currency == "COP" ||
|
|
47532
|
-
currency == "COU" ||
|
|
47533
|
-
currency == "CRC" ||
|
|
47534
|
-
currency == "CUC" ||
|
|
47535
|
-
currency == "CUP" ||
|
|
47536
|
-
currency == "CVE" ||
|
|
47537
|
-
currency == "CZK" ||
|
|
47538
|
-
currency == "DJF" ||
|
|
47539
|
-
currency == "DKK" ||
|
|
47540
|
-
currency == "DOP" ||
|
|
47541
|
-
currency == "DZD" ||
|
|
47542
|
-
currency == "EGP" ||
|
|
47543
|
-
currency == "ERN" ||
|
|
47544
|
-
currency == "ETB" ||
|
|
47545
|
-
currency == "EUR" ||
|
|
47546
|
-
currency == "FJD" ||
|
|
47547
|
-
currency == "FKP" ||
|
|
47548
|
-
currency == "GBP" ||
|
|
47549
|
-
currency == "GEL" ||
|
|
47550
|
-
currency == "GHS" ||
|
|
47551
|
-
currency == "GIP" ||
|
|
47552
|
-
currency == "GMD" ||
|
|
47553
|
-
currency == "GNF" ||
|
|
47554
|
-
currency == "GTQ" ||
|
|
47555
|
-
currency == "GYD" ||
|
|
47556
|
-
currency == "HKD" ||
|
|
47557
|
-
currency == "HNL" ||
|
|
47558
|
-
currency == "HRK" ||
|
|
47559
|
-
currency == "HTG" ||
|
|
47560
|
-
currency == "HUF" ||
|
|
47561
|
-
currency == "IDR" ||
|
|
47562
|
-
currency == "ILS" ||
|
|
47563
|
-
currency == "INR" ||
|
|
47564
|
-
currency == "IQD" ||
|
|
47565
|
-
currency == "IRR" ||
|
|
47566
|
-
currency == "ISK" ||
|
|
47567
|
-
currency == "JMD" ||
|
|
47568
|
-
currency == "JOD" ||
|
|
47569
|
-
currency == "JPY" ||
|
|
47570
|
-
currency == "KES" ||
|
|
47571
|
-
currency == "KGS" ||
|
|
47572
|
-
currency == "KHR" ||
|
|
47573
|
-
currency == "KMF" ||
|
|
47574
|
-
currency == "KPW" ||
|
|
47575
|
-
currency == "KRW" ||
|
|
47576
|
-
currency == "KWD" ||
|
|
47577
|
-
currency == "KYD" ||
|
|
47578
|
-
currency == "KZT" ||
|
|
47579
|
-
currency == "LAK" ||
|
|
47580
|
-
currency == "LBP" ||
|
|
47581
|
-
currency == "LKR" ||
|
|
47582
|
-
currency == "LRD" ||
|
|
47583
|
-
currency == "LSL" ||
|
|
47584
|
-
currency == "LYD" ||
|
|
47585
|
-
currency == "MAD" ||
|
|
47586
|
-
currency == "MDL" ||
|
|
47587
|
-
currency == "MGA" ||
|
|
47588
|
-
currency == "MKD" ||
|
|
47589
|
-
currency == "MMK" ||
|
|
47590
|
-
currency == "MNT" ||
|
|
47591
|
-
currency == "MOP" ||
|
|
47592
|
-
currency == "MRU" ||
|
|
47593
|
-
currency == "MUR" ||
|
|
47594
|
-
currency == "MVR" ||
|
|
47595
|
-
currency == "MWK" ||
|
|
47596
|
-
currency == "MXN" ||
|
|
47597
|
-
currency == "MXV" ||
|
|
47598
|
-
currency == "MYR" ||
|
|
47599
|
-
currency == "MZN" ||
|
|
47600
|
-
currency == "NAD" ||
|
|
47601
|
-
currency == "NGN" ||
|
|
47602
|
-
currency == "NIO" ||
|
|
47603
|
-
currency == "NOK" ||
|
|
47604
|
-
currency == "NPR" ||
|
|
47605
|
-
currency == "NZD" ||
|
|
47606
|
-
currency == "OMR" ||
|
|
47607
|
-
currency == "PAB" ||
|
|
47608
|
-
currency == "PEN" ||
|
|
47609
|
-
currency == "PGK" ||
|
|
47610
|
-
currency == "PHP" ||
|
|
47611
|
-
currency == "PKR" ||
|
|
47612
|
-
currency == "PLN" ||
|
|
47613
|
-
currency == "PYG" ||
|
|
47614
|
-
currency == "QAR" ||
|
|
47615
|
-
currency == "RON" ||
|
|
47616
|
-
currency == "RSD" ||
|
|
47617
|
-
currency == "RUB" ||
|
|
47618
|
-
currency == "RWF" ||
|
|
47619
|
-
currency == "SAR" ||
|
|
47620
|
-
currency == "SBD" ||
|
|
47621
|
-
currency == "SCR" ||
|
|
47622
|
-
currency == "SDG" ||
|
|
47623
|
-
currency == "SEK" ||
|
|
47624
|
-
currency == "SGD" ||
|
|
47625
|
-
currency == "SHP" ||
|
|
47626
|
-
currency == "SLL" ||
|
|
47627
|
-
currency == "SOS" ||
|
|
47628
|
-
currency == "SRD" ||
|
|
47629
|
-
currency == "SSP" ||
|
|
47630
|
-
currency == "STN" ||
|
|
47631
|
-
currency == "SVC" ||
|
|
47632
|
-
currency == "SYP" ||
|
|
47633
|
-
currency == "SZL" ||
|
|
47634
|
-
currency == "THB" ||
|
|
47635
|
-
currency == "TJS" ||
|
|
47636
|
-
currency == "TMT" ||
|
|
47637
|
-
currency == "TND" ||
|
|
47638
|
-
currency == "TOP" ||
|
|
47639
|
-
currency == "TRY" ||
|
|
47640
|
-
currency == "TTD" ||
|
|
47641
|
-
currency == "TWD" ||
|
|
47642
|
-
currency == "TZS" ||
|
|
47643
|
-
currency == "UAH" ||
|
|
47644
|
-
currency == "UGX" ||
|
|
47645
|
-
currency == "USD" ||
|
|
47646
|
-
currency == "USN" ||
|
|
47647
|
-
currency == "UYI" ||
|
|
47648
|
-
currency == "UYU" ||
|
|
47649
|
-
currency == "UYW" ||
|
|
47650
|
-
currency == "UZS" ||
|
|
47651
|
-
currency == "VES" ||
|
|
47652
|
-
currency == "VND" ||
|
|
47653
|
-
currency == "VUV" ||
|
|
47654
|
-
currency == "WST" ||
|
|
47655
|
-
currency == "XAF" ||
|
|
47656
|
-
currency == "XAG" ||
|
|
47657
|
-
currency == "XAU" ||
|
|
47658
|
-
currency == "XBA" ||
|
|
47659
|
-
currency == "XBB" ||
|
|
47660
|
-
currency == "XBC" ||
|
|
47661
|
-
currency == "XBD" ||
|
|
47662
|
-
currency == "XCD" ||
|
|
47663
|
-
currency == "XDR" ||
|
|
47664
|
-
currency == "XOF" ||
|
|
47665
|
-
currency == "XPD" ||
|
|
47666
|
-
currency == "XPF" ||
|
|
47667
|
-
currency == "XPT" ||
|
|
47668
|
-
currency == "XSU" ||
|
|
47669
|
-
currency == "XTS" ||
|
|
47670
|
-
currency == "XUA" ||
|
|
47671
|
-
currency == "XXX" ||
|
|
47672
|
-
currency == "YER" ||
|
|
47673
|
-
currency == "ZAR" ||
|
|
47674
|
-
currency == "ZMW" ||
|
|
47675
|
-
currency == "ZWL"));
|
|
47787
|
+
return Currency.types.includes(currency);
|
|
47676
47788
|
}
|
|
47677
47789
|
Currency.is = is;
|
|
47678
47790
|
function from(currencyCode) {
|
|
@@ -47859,6 +47971,12 @@ exports.Currency = void 0;
|
|
|
47859
47971
|
}[currencyCode];
|
|
47860
47972
|
}
|
|
47861
47973
|
Currency.from = from;
|
|
47974
|
+
function round(value, currency) {
|
|
47975
|
+
var _a;
|
|
47976
|
+
const factor = Math.pow(10, (_a = decimalDigits(currency)) !== null && _a !== void 0 ? _a : 2);
|
|
47977
|
+
return Math.round((value + Number.EPSILON) * factor) / factor;
|
|
47978
|
+
}
|
|
47979
|
+
Currency.round = round;
|
|
47862
47980
|
function decimalDigits(currency) {
|
|
47863
47981
|
return {
|
|
47864
47982
|
AED: 2,
|
|
@@ -48051,187 +48169,189 @@ var CurrencyCode_1 = createCommonjsModule(function (module, exports) {
|
|
|
48051
48169
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48052
48170
|
exports.CurrencyCode = void 0;
|
|
48053
48171
|
(function (CurrencyCode) {
|
|
48172
|
+
CurrencyCode.types = [
|
|
48173
|
+
"008",
|
|
48174
|
+
"012",
|
|
48175
|
+
"032",
|
|
48176
|
+
"036",
|
|
48177
|
+
"044",
|
|
48178
|
+
"048",
|
|
48179
|
+
"050",
|
|
48180
|
+
"051",
|
|
48181
|
+
"052",
|
|
48182
|
+
"060",
|
|
48183
|
+
"064",
|
|
48184
|
+
"068",
|
|
48185
|
+
"072",
|
|
48186
|
+
"084",
|
|
48187
|
+
"090",
|
|
48188
|
+
"096",
|
|
48189
|
+
"104",
|
|
48190
|
+
"108",
|
|
48191
|
+
"116",
|
|
48192
|
+
"124",
|
|
48193
|
+
"132",
|
|
48194
|
+
"136",
|
|
48195
|
+
"144",
|
|
48196
|
+
"152",
|
|
48197
|
+
"156",
|
|
48198
|
+
"170",
|
|
48199
|
+
"174",
|
|
48200
|
+
"188",
|
|
48201
|
+
"191",
|
|
48202
|
+
"192",
|
|
48203
|
+
"203",
|
|
48204
|
+
"208",
|
|
48205
|
+
"214",
|
|
48206
|
+
"222",
|
|
48207
|
+
"230",
|
|
48208
|
+
"232",
|
|
48209
|
+
"238",
|
|
48210
|
+
"242",
|
|
48211
|
+
"262",
|
|
48212
|
+
"270",
|
|
48213
|
+
"292",
|
|
48214
|
+
"320",
|
|
48215
|
+
"324",
|
|
48216
|
+
"328",
|
|
48217
|
+
"332",
|
|
48218
|
+
"340",
|
|
48219
|
+
"344",
|
|
48220
|
+
"348",
|
|
48221
|
+
"352",
|
|
48222
|
+
"356",
|
|
48223
|
+
"360",
|
|
48224
|
+
"364",
|
|
48225
|
+
"368",
|
|
48226
|
+
"376",
|
|
48227
|
+
"388",
|
|
48228
|
+
"392",
|
|
48229
|
+
"398",
|
|
48230
|
+
"400",
|
|
48231
|
+
"404",
|
|
48232
|
+
"408",
|
|
48233
|
+
"410",
|
|
48234
|
+
"414",
|
|
48235
|
+
"417",
|
|
48236
|
+
"418",
|
|
48237
|
+
"422",
|
|
48238
|
+
"426",
|
|
48239
|
+
"430",
|
|
48240
|
+
"434",
|
|
48241
|
+
"446",
|
|
48242
|
+
"454",
|
|
48243
|
+
"458",
|
|
48244
|
+
"462",
|
|
48245
|
+
"480",
|
|
48246
|
+
"484",
|
|
48247
|
+
"496",
|
|
48248
|
+
"498",
|
|
48249
|
+
"504",
|
|
48250
|
+
"512",
|
|
48251
|
+
"516",
|
|
48252
|
+
"524",
|
|
48253
|
+
"532",
|
|
48254
|
+
"533",
|
|
48255
|
+
"548",
|
|
48256
|
+
"554",
|
|
48257
|
+
"558",
|
|
48258
|
+
"566",
|
|
48259
|
+
"578",
|
|
48260
|
+
"586",
|
|
48261
|
+
"590",
|
|
48262
|
+
"598",
|
|
48263
|
+
"600",
|
|
48264
|
+
"604",
|
|
48265
|
+
"608",
|
|
48266
|
+
"634",
|
|
48267
|
+
"643",
|
|
48268
|
+
"646",
|
|
48269
|
+
"654",
|
|
48270
|
+
"682",
|
|
48271
|
+
"690",
|
|
48272
|
+
"694",
|
|
48273
|
+
"702",
|
|
48274
|
+
"704",
|
|
48275
|
+
"706",
|
|
48276
|
+
"710",
|
|
48277
|
+
"728",
|
|
48278
|
+
"748",
|
|
48279
|
+
"752",
|
|
48280
|
+
"756",
|
|
48281
|
+
"760",
|
|
48282
|
+
"764",
|
|
48283
|
+
"776",
|
|
48284
|
+
"780",
|
|
48285
|
+
"784",
|
|
48286
|
+
"788",
|
|
48287
|
+
"800",
|
|
48288
|
+
"807",
|
|
48289
|
+
"818",
|
|
48290
|
+
"826",
|
|
48291
|
+
"834",
|
|
48292
|
+
"840",
|
|
48293
|
+
"858",
|
|
48294
|
+
"860",
|
|
48295
|
+
"882",
|
|
48296
|
+
"886",
|
|
48297
|
+
"901",
|
|
48298
|
+
"927",
|
|
48299
|
+
"928",
|
|
48300
|
+
"929",
|
|
48301
|
+
"930",
|
|
48302
|
+
"931",
|
|
48303
|
+
"932",
|
|
48304
|
+
"933",
|
|
48305
|
+
"934",
|
|
48306
|
+
"936",
|
|
48307
|
+
"938",
|
|
48308
|
+
"940",
|
|
48309
|
+
"941",
|
|
48310
|
+
"943",
|
|
48311
|
+
"944",
|
|
48312
|
+
"946",
|
|
48313
|
+
"947",
|
|
48314
|
+
"948",
|
|
48315
|
+
"949",
|
|
48316
|
+
"950",
|
|
48317
|
+
"951",
|
|
48318
|
+
"952",
|
|
48319
|
+
"953",
|
|
48320
|
+
"955",
|
|
48321
|
+
"956",
|
|
48322
|
+
"957",
|
|
48323
|
+
"958",
|
|
48324
|
+
"959",
|
|
48325
|
+
"960",
|
|
48326
|
+
"961",
|
|
48327
|
+
"962",
|
|
48328
|
+
"963",
|
|
48329
|
+
"964",
|
|
48330
|
+
"965",
|
|
48331
|
+
"967",
|
|
48332
|
+
"968",
|
|
48333
|
+
"969",
|
|
48334
|
+
"970",
|
|
48335
|
+
"971",
|
|
48336
|
+
"972",
|
|
48337
|
+
"973",
|
|
48338
|
+
"975",
|
|
48339
|
+
"976",
|
|
48340
|
+
"977",
|
|
48341
|
+
"978",
|
|
48342
|
+
"979",
|
|
48343
|
+
"980",
|
|
48344
|
+
"981",
|
|
48345
|
+
"984",
|
|
48346
|
+
"985",
|
|
48347
|
+
"986",
|
|
48348
|
+
"990",
|
|
48349
|
+
"994",
|
|
48350
|
+
"997",
|
|
48351
|
+
"999",
|
|
48352
|
+
];
|
|
48054
48353
|
function is(value) {
|
|
48055
|
-
return (
|
|
48056
|
-
(value == "008" ||
|
|
48057
|
-
value == "012" ||
|
|
48058
|
-
value == "032" ||
|
|
48059
|
-
value == "036" ||
|
|
48060
|
-
value == "044" ||
|
|
48061
|
-
value == "048" ||
|
|
48062
|
-
value == "050" ||
|
|
48063
|
-
value == "051" ||
|
|
48064
|
-
value == "052" ||
|
|
48065
|
-
value == "060" ||
|
|
48066
|
-
value == "064" ||
|
|
48067
|
-
value == "068" ||
|
|
48068
|
-
value == "072" ||
|
|
48069
|
-
value == "084" ||
|
|
48070
|
-
value == "090" ||
|
|
48071
|
-
value == "096" ||
|
|
48072
|
-
value == "104" ||
|
|
48073
|
-
value == "108" ||
|
|
48074
|
-
value == "116" ||
|
|
48075
|
-
value == "124" ||
|
|
48076
|
-
value == "132" ||
|
|
48077
|
-
value == "136" ||
|
|
48078
|
-
value == "144" ||
|
|
48079
|
-
value == "152" ||
|
|
48080
|
-
value == "156" ||
|
|
48081
|
-
value == "170" ||
|
|
48082
|
-
value == "174" ||
|
|
48083
|
-
value == "188" ||
|
|
48084
|
-
value == "191" ||
|
|
48085
|
-
value == "192" ||
|
|
48086
|
-
value == "203" ||
|
|
48087
|
-
value == "208" ||
|
|
48088
|
-
value == "214" ||
|
|
48089
|
-
value == "222" ||
|
|
48090
|
-
value == "230" ||
|
|
48091
|
-
value == "232" ||
|
|
48092
|
-
value == "238" ||
|
|
48093
|
-
value == "242" ||
|
|
48094
|
-
value == "262" ||
|
|
48095
|
-
value == "270" ||
|
|
48096
|
-
value == "292" ||
|
|
48097
|
-
value == "320" ||
|
|
48098
|
-
value == "324" ||
|
|
48099
|
-
value == "328" ||
|
|
48100
|
-
value == "332" ||
|
|
48101
|
-
value == "340" ||
|
|
48102
|
-
value == "344" ||
|
|
48103
|
-
value == "348" ||
|
|
48104
|
-
value == "352" ||
|
|
48105
|
-
value == "356" ||
|
|
48106
|
-
value == "360" ||
|
|
48107
|
-
value == "364" ||
|
|
48108
|
-
value == "368" ||
|
|
48109
|
-
value == "376" ||
|
|
48110
|
-
value == "388" ||
|
|
48111
|
-
value == "392" ||
|
|
48112
|
-
value == "398" ||
|
|
48113
|
-
value == "400" ||
|
|
48114
|
-
value == "404" ||
|
|
48115
|
-
value == "408" ||
|
|
48116
|
-
value == "410" ||
|
|
48117
|
-
value == "414" ||
|
|
48118
|
-
value == "417" ||
|
|
48119
|
-
value == "418" ||
|
|
48120
|
-
value == "422" ||
|
|
48121
|
-
value == "426" ||
|
|
48122
|
-
value == "430" ||
|
|
48123
|
-
value == "434" ||
|
|
48124
|
-
value == "446" ||
|
|
48125
|
-
value == "454" ||
|
|
48126
|
-
value == "458" ||
|
|
48127
|
-
value == "462" ||
|
|
48128
|
-
value == "480" ||
|
|
48129
|
-
value == "484" ||
|
|
48130
|
-
value == "496" ||
|
|
48131
|
-
value == "498" ||
|
|
48132
|
-
value == "504" ||
|
|
48133
|
-
value == "512" ||
|
|
48134
|
-
value == "516" ||
|
|
48135
|
-
value == "524" ||
|
|
48136
|
-
value == "532" ||
|
|
48137
|
-
value == "533" ||
|
|
48138
|
-
value == "548" ||
|
|
48139
|
-
value == "554" ||
|
|
48140
|
-
value == "558" ||
|
|
48141
|
-
value == "566" ||
|
|
48142
|
-
value == "578" ||
|
|
48143
|
-
value == "586" ||
|
|
48144
|
-
value == "590" ||
|
|
48145
|
-
value == "598" ||
|
|
48146
|
-
value == "600" ||
|
|
48147
|
-
value == "604" ||
|
|
48148
|
-
value == "608" ||
|
|
48149
|
-
value == "634" ||
|
|
48150
|
-
value == "643" ||
|
|
48151
|
-
value == "646" ||
|
|
48152
|
-
value == "654" ||
|
|
48153
|
-
value == "682" ||
|
|
48154
|
-
value == "690" ||
|
|
48155
|
-
value == "694" ||
|
|
48156
|
-
value == "702" ||
|
|
48157
|
-
value == "704" ||
|
|
48158
|
-
value == "706" ||
|
|
48159
|
-
value == "710" ||
|
|
48160
|
-
value == "728" ||
|
|
48161
|
-
value == "748" ||
|
|
48162
|
-
value == "752" ||
|
|
48163
|
-
value == "756" ||
|
|
48164
|
-
value == "760" ||
|
|
48165
|
-
value == "764" ||
|
|
48166
|
-
value == "776" ||
|
|
48167
|
-
value == "780" ||
|
|
48168
|
-
value == "784" ||
|
|
48169
|
-
value == "788" ||
|
|
48170
|
-
value == "800" ||
|
|
48171
|
-
value == "807" ||
|
|
48172
|
-
value == "818" ||
|
|
48173
|
-
value == "826" ||
|
|
48174
|
-
value == "834" ||
|
|
48175
|
-
value == "840" ||
|
|
48176
|
-
value == "858" ||
|
|
48177
|
-
value == "860" ||
|
|
48178
|
-
value == "882" ||
|
|
48179
|
-
value == "886" ||
|
|
48180
|
-
value == "901" ||
|
|
48181
|
-
value == "927" ||
|
|
48182
|
-
value == "928" ||
|
|
48183
|
-
value == "929" ||
|
|
48184
|
-
value == "930" ||
|
|
48185
|
-
value == "931" ||
|
|
48186
|
-
value == "932" ||
|
|
48187
|
-
value == "933" ||
|
|
48188
|
-
value == "934" ||
|
|
48189
|
-
value == "936" ||
|
|
48190
|
-
value == "938" ||
|
|
48191
|
-
value == "940" ||
|
|
48192
|
-
value == "941" ||
|
|
48193
|
-
value == "943" ||
|
|
48194
|
-
value == "944" ||
|
|
48195
|
-
value == "946" ||
|
|
48196
|
-
value == "947" ||
|
|
48197
|
-
value == "948" ||
|
|
48198
|
-
value == "949" ||
|
|
48199
|
-
value == "950" ||
|
|
48200
|
-
value == "951" ||
|
|
48201
|
-
value == "952" ||
|
|
48202
|
-
value == "953" ||
|
|
48203
|
-
value == "955" ||
|
|
48204
|
-
value == "956" ||
|
|
48205
|
-
value == "957" ||
|
|
48206
|
-
value == "958" ||
|
|
48207
|
-
value == "959" ||
|
|
48208
|
-
value == "960" ||
|
|
48209
|
-
value == "961" ||
|
|
48210
|
-
value == "962" ||
|
|
48211
|
-
value == "963" ||
|
|
48212
|
-
value == "964" ||
|
|
48213
|
-
value == "965" ||
|
|
48214
|
-
value == "967" ||
|
|
48215
|
-
value == "968" ||
|
|
48216
|
-
value == "969" ||
|
|
48217
|
-
value == "970" ||
|
|
48218
|
-
value == "971" ||
|
|
48219
|
-
value == "972" ||
|
|
48220
|
-
value == "973" ||
|
|
48221
|
-
value == "975" ||
|
|
48222
|
-
value == "976" ||
|
|
48223
|
-
value == "977" ||
|
|
48224
|
-
value == "978" ||
|
|
48225
|
-
value == "979" ||
|
|
48226
|
-
value == "980" ||
|
|
48227
|
-
value == "981" ||
|
|
48228
|
-
value == "984" ||
|
|
48229
|
-
value == "985" ||
|
|
48230
|
-
value == "986" ||
|
|
48231
|
-
value == "990" ||
|
|
48232
|
-
value == "994" ||
|
|
48233
|
-
value == "997" ||
|
|
48234
|
-
value == "999"));
|
|
48354
|
+
return CurrencyCode.types.includes(value);
|
|
48235
48355
|
}
|
|
48236
48356
|
CurrencyCode.is = is;
|
|
48237
48357
|
function from(currency) {
|
|
@@ -48608,27 +48728,27 @@ exports.CurrencyCode = void 0;
|
|
|
48608
48728
|
|
|
48609
48729
|
var _Date = createCommonjsModule(function (module, exports) {
|
|
48610
48730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48611
|
-
exports.
|
|
48612
|
-
(function (
|
|
48731
|
+
exports.Date = void 0;
|
|
48732
|
+
(function (Date) {
|
|
48613
48733
|
function is(value) {
|
|
48614
48734
|
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));
|
|
48615
48735
|
}
|
|
48616
|
-
|
|
48736
|
+
Date.is = is;
|
|
48617
48737
|
function parse(value, time) {
|
|
48618
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
48738
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
48619
48739
|
}
|
|
48620
|
-
|
|
48740
|
+
Date.parse = parse;
|
|
48621
48741
|
function create(value) {
|
|
48622
48742
|
return value.toISOString().substring(0, 10);
|
|
48623
48743
|
}
|
|
48624
|
-
|
|
48744
|
+
Date.create = create;
|
|
48625
48745
|
function now() {
|
|
48626
|
-
return create(new Date());
|
|
48746
|
+
return create(new globalThis.Date());
|
|
48627
48747
|
}
|
|
48628
|
-
|
|
48748
|
+
Date.now = now;
|
|
48629
48749
|
function localize(value, locale) {
|
|
48630
|
-
|
|
48631
|
-
|
|
48750
|
+
return (is(value) ? parse(value) : value)
|
|
48751
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
48632
48752
|
year: "numeric",
|
|
48633
48753
|
month: "2-digit",
|
|
48634
48754
|
day: "2-digit",
|
|
@@ -48636,14 +48756,121 @@ exports.IsoDate = void 0;
|
|
|
48636
48756
|
minute: "2-digit",
|
|
48637
48757
|
second: "2-digit",
|
|
48638
48758
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
48639
|
-
}
|
|
48640
|
-
|
|
48759
|
+
})
|
|
48760
|
+
.substring(0, 10);
|
|
48761
|
+
}
|
|
48762
|
+
Date.localize = localize;
|
|
48763
|
+
function next(date, days = 1) {
|
|
48764
|
+
let result;
|
|
48765
|
+
if (typeof days == "number") {
|
|
48766
|
+
const r = parse(date);
|
|
48767
|
+
r.setDate(r.getDate() + days);
|
|
48768
|
+
result = Date.create(r);
|
|
48769
|
+
}
|
|
48770
|
+
else {
|
|
48771
|
+
result = date;
|
|
48772
|
+
if (days.years)
|
|
48773
|
+
result = nextYear(result, days.years);
|
|
48774
|
+
if (days.months)
|
|
48775
|
+
result = nextMonth(result, days.months);
|
|
48776
|
+
if (days.days)
|
|
48777
|
+
result = next(result, days.days);
|
|
48778
|
+
}
|
|
48779
|
+
return result;
|
|
48780
|
+
}
|
|
48781
|
+
Date.next = next;
|
|
48782
|
+
function previous(date, days = 1) {
|
|
48783
|
+
let result;
|
|
48784
|
+
if (typeof days == "number") {
|
|
48785
|
+
const r = parse(date);
|
|
48786
|
+
r.setDate(r.getDate() - days);
|
|
48787
|
+
result = Date.create(r);
|
|
48788
|
+
}
|
|
48789
|
+
else {
|
|
48790
|
+
result = date;
|
|
48791
|
+
if (days.years)
|
|
48792
|
+
result = previousYear(result, days.years);
|
|
48793
|
+
if (days.months)
|
|
48794
|
+
result = previousMonth(result, days.months);
|
|
48795
|
+
if (days.days)
|
|
48796
|
+
result = previous(result, days.days);
|
|
48797
|
+
}
|
|
48798
|
+
return result;
|
|
48799
|
+
}
|
|
48800
|
+
Date.previous = previous;
|
|
48801
|
+
function nextMonth(date, months = 1) {
|
|
48802
|
+
const result = parse(date);
|
|
48803
|
+
result.setMonth(result.getMonth() + months);
|
|
48804
|
+
return Date.create(result);
|
|
48805
|
+
}
|
|
48806
|
+
Date.nextMonth = nextMonth;
|
|
48807
|
+
function previousMonth(date, months = 1) {
|
|
48808
|
+
return nextMonth(date, -months);
|
|
48809
|
+
}
|
|
48810
|
+
Date.previousMonth = previousMonth;
|
|
48811
|
+
function nextYear(date, years = 1) {
|
|
48812
|
+
const result = parse(date);
|
|
48813
|
+
result.setFullYear(result.getFullYear() + years);
|
|
48814
|
+
return Date.create(result);
|
|
48815
|
+
}
|
|
48816
|
+
Date.nextYear = nextYear;
|
|
48817
|
+
function previousYear(date, years = 1) {
|
|
48818
|
+
return nextYear(date, -years);
|
|
48819
|
+
}
|
|
48820
|
+
Date.previousYear = previousYear;
|
|
48821
|
+
function firstOfMonth(date) {
|
|
48822
|
+
const result = parse(date);
|
|
48823
|
+
result.setDate(1);
|
|
48824
|
+
return Date.create(result);
|
|
48825
|
+
}
|
|
48826
|
+
Date.firstOfMonth = firstOfMonth;
|
|
48827
|
+
function lastOfMonth(date) {
|
|
48828
|
+
const result = parse(date);
|
|
48829
|
+
result.setMonth(result.getMonth() + 1);
|
|
48830
|
+
result.setDate(-1);
|
|
48831
|
+
return Date.create(result);
|
|
48641
48832
|
}
|
|
48642
|
-
|
|
48643
|
-
})(exports.
|
|
48833
|
+
Date.lastOfMonth = lastOfMonth;
|
|
48834
|
+
})(exports.Date || (exports.Date = {}));
|
|
48644
48835
|
//# sourceMappingURL=Date.js.map
|
|
48645
48836
|
});
|
|
48646
48837
|
|
|
48838
|
+
var DateRange_1 = createCommonjsModule(function (module, exports) {
|
|
48839
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48840
|
+
exports.DateRange = void 0;
|
|
48841
|
+
(function (DateRange) {
|
|
48842
|
+
function is(value) {
|
|
48843
|
+
return typeof value == "object" && _Date.Date.is(value.start) && _Date.Date.is(value.end);
|
|
48844
|
+
}
|
|
48845
|
+
DateRange.is = is;
|
|
48846
|
+
function create(start, end) {
|
|
48847
|
+
return !_Date.Date.is(end)
|
|
48848
|
+
? create(start, _Date.Date.next(start, end))
|
|
48849
|
+
: start <= end
|
|
48850
|
+
? { start, end }
|
|
48851
|
+
: { start: end, end: start };
|
|
48852
|
+
}
|
|
48853
|
+
DateRange.create = create;
|
|
48854
|
+
})(exports.DateRange || (exports.DateRange = {}));
|
|
48855
|
+
//# sourceMappingURL=DateRange.js.map
|
|
48856
|
+
});
|
|
48857
|
+
|
|
48858
|
+
var DateSpan_1 = createCommonjsModule(function (module, exports) {
|
|
48859
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48860
|
+
exports.DateSpan = void 0;
|
|
48861
|
+
(function (DateSpan) {
|
|
48862
|
+
function is(value) {
|
|
48863
|
+
return (typeof value == "object" &&
|
|
48864
|
+
(typeof value.years == "number" || value.years == undefined) &&
|
|
48865
|
+
(typeof value.months == "number" || value.months == undefined) &&
|
|
48866
|
+
(typeof value.days == "number" || value.days == undefined) &&
|
|
48867
|
+
(typeof value.years == "number" || typeof value.months == "number" || typeof value.days == "number"));
|
|
48868
|
+
}
|
|
48869
|
+
DateSpan.is = is;
|
|
48870
|
+
})(exports.DateSpan || (exports.DateSpan = {}));
|
|
48871
|
+
//# sourceMappingURL=DateSpan.js.map
|
|
48872
|
+
});
|
|
48873
|
+
|
|
48647
48874
|
var DateTime_1 = createCommonjsModule(function (module, exports) {
|
|
48648
48875
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48649
48876
|
exports.DateTime = void 0;
|
|
@@ -48667,7 +48894,7 @@ exports.DateTime = void 0;
|
|
|
48667
48894
|
DateTime.now = now;
|
|
48668
48895
|
function localize(value, locale) {
|
|
48669
48896
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
48670
|
-
|
|
48897
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
48671
48898
|
year: "numeric",
|
|
48672
48899
|
month: "2-digit",
|
|
48673
48900
|
day: "2-digit",
|
|
@@ -48675,8 +48902,7 @@ exports.DateTime = void 0;
|
|
|
48675
48902
|
minute: "2-digit",
|
|
48676
48903
|
second: "2-digit",
|
|
48677
48904
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
48678
|
-
};
|
|
48679
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
48905
|
+
});
|
|
48680
48906
|
}
|
|
48681
48907
|
DateTime.localize = localize;
|
|
48682
48908
|
})(exports.DateTime || (exports.DateTime = {}));
|
|
@@ -50413,7 +50639,7 @@ var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
|
50413
50639
|
return result;
|
|
50414
50640
|
};
|
|
50415
50641
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50416
|
-
exports.Locale = exports.Language = exports.Encoding = exports.DateTime = exports.Date = exports.CurrencyCode = exports.Currency = exports.CountryCode = exports.CallingCode = void 0;
|
|
50642
|
+
exports.Locale = exports.Language = exports.Encoding = exports.DateTime = exports.Date = exports.DateSpan = exports.DateRange = exports.CurrencyCode = exports.Currency = exports.CountryCode = exports.CallingCode = void 0;
|
|
50417
50643
|
|
|
50418
50644
|
Object.defineProperty(exports, "CallingCode", { enumerable: true, get: function () { return CallingCode_1.CallingCode; } });
|
|
50419
50645
|
const CountryCode$1 = __importStar(CountryCode);
|
|
@@ -50423,7 +50649,11 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
50423
50649
|
|
|
50424
50650
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1.CurrencyCode; } });
|
|
50425
50651
|
|
|
50426
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.
|
|
50652
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.Date; } });
|
|
50653
|
+
|
|
50654
|
+
Object.defineProperty(exports, "DateRange", { enumerable: true, get: function () { return DateRange_1.DateRange; } });
|
|
50655
|
+
|
|
50656
|
+
Object.defineProperty(exports, "DateSpan", { enumerable: true, get: function () { return DateSpan_1.DateSpan; } });
|
|
50427
50657
|
|
|
50428
50658
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1.DateTime; } });
|
|
50429
50659
|
|
|
@@ -51266,7 +51496,7 @@ Object.defineProperty(exports, "StateEditor", { enumerable: true, get: function
|
|
|
51266
51496
|
//# sourceMappingURL=index.js.map
|
|
51267
51497
|
});
|
|
51268
51498
|
|
|
51269
|
-
const styleCss$
|
|
51499
|
+
const styleCss$u = ".sc-smoothly-display-h{display:block}[hidden].sc-smoothly-display-h{display:none}";
|
|
51270
51500
|
|
|
51271
51501
|
const SmoothlyDisplay = class {
|
|
51272
51502
|
constructor(hostRef) {
|
|
@@ -51295,9 +51525,9 @@ const SmoothlyDisplay = class {
|
|
|
51295
51525
|
return result;
|
|
51296
51526
|
}
|
|
51297
51527
|
};
|
|
51298
|
-
SmoothlyDisplay.style = styleCss$
|
|
51528
|
+
SmoothlyDisplay.style = styleCss$u;
|
|
51299
51529
|
|
|
51300
|
-
const styleCss$
|
|
51530
|
+
const styleCss$t = ".sc-smoothly-display-amount-h{display:block}[hidden].sc-smoothly-display-amount-h{display:none}";
|
|
51301
51531
|
|
|
51302
51532
|
const SmoothlyDisplayAmount = class {
|
|
51303
51533
|
constructor(hostRef) {
|
|
@@ -51306,9 +51536,7 @@ const SmoothlyDisplayAmount = class {
|
|
|
51306
51536
|
format(amount) {
|
|
51307
51537
|
const digitsPerGroup = 3;
|
|
51308
51538
|
const defaultDecimals = 2;
|
|
51309
|
-
const maxDecimals = (dist$4.Currency.decimalDigits(this.currency)
|
|
51310
|
-
? dist$4.Currency.decimalDigits(this.currency)
|
|
51311
|
-
: defaultDecimals);
|
|
51539
|
+
const maxDecimals = (dist$4.Currency.decimalDigits(this.currency) ? dist$4.Currency.decimalDigits(this.currency) : defaultDecimals);
|
|
51312
51540
|
let beforeSeparator = amount.length;
|
|
51313
51541
|
let separator;
|
|
51314
51542
|
let result = amount;
|
|
@@ -51347,9 +51575,9 @@ const SmoothlyDisplayAmount = class {
|
|
|
51347
51575
|
];
|
|
51348
51576
|
}
|
|
51349
51577
|
};
|
|
51350
|
-
SmoothlyDisplayAmount.style = styleCss$
|
|
51578
|
+
SmoothlyDisplayAmount.style = styleCss$t;
|
|
51351
51579
|
|
|
51352
|
-
const styleCss$
|
|
51580
|
+
const styleCss$s = ".sc-smoothly-display-date-time-h{display:block}[hidden].sc-smoothly-display-date-time-h{display:none}";
|
|
51353
51581
|
|
|
51354
51582
|
const SmoothlyDisplayDateTime = class {
|
|
51355
51583
|
constructor(hostRef) {
|
|
@@ -51360,7 +51588,7 @@ const SmoothlyDisplayDateTime = class {
|
|
|
51360
51588
|
return [datetime[0], " ", datetime[1]];
|
|
51361
51589
|
}
|
|
51362
51590
|
};
|
|
51363
|
-
SmoothlyDisplayDateTime.style = styleCss$
|
|
51591
|
+
SmoothlyDisplayDateTime.style = styleCss$s;
|
|
51364
51592
|
|
|
51365
51593
|
const SmoothlyDisplayDemo = class {
|
|
51366
51594
|
constructor(hostRef) {
|
|
@@ -51378,7 +51606,7 @@ const SmoothlyDisplayDemo = class {
|
|
|
51378
51606
|
}
|
|
51379
51607
|
};
|
|
51380
51608
|
|
|
51381
|
-
const styleCss$
|
|
51609
|
+
const styleCss$r = ".sc-smoothly-frame-h{display:block;width:100%;height:100%}[hidden].sc-smoothly-frame-h{display:none}.sc-smoothly-frame-h>iframe.sc-smoothly-frame{border:none;padding:none;margin:none}";
|
|
51382
51610
|
|
|
51383
51611
|
const SmoothlyFrame = class {
|
|
51384
51612
|
constructor(hostRef) {
|
|
@@ -51417,9 +51645,9 @@ const SmoothlyFrame = class {
|
|
|
51417
51645
|
}
|
|
51418
51646
|
get element() { return getElement(this); }
|
|
51419
51647
|
};
|
|
51420
|
-
SmoothlyFrame.style = styleCss$
|
|
51648
|
+
SmoothlyFrame.style = styleCss$r;
|
|
51421
51649
|
|
|
51422
|
-
const styleCss$
|
|
51650
|
+
const styleCss$q = "[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:block}[hidden].sc-smoothly-icon-h{display:none}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}";
|
|
51423
51651
|
|
|
51424
51652
|
const SmoothlyIcon = class {
|
|
51425
51653
|
constructor(hostRef) {
|
|
@@ -51462,9 +51690,9 @@ const SmoothlyIcon = class {
|
|
|
51462
51690
|
render() { return h(Host, this.hostData(), this.__stencil_render()); }
|
|
51463
51691
|
};
|
|
51464
51692
|
SmoothlyIcon.cache = {};
|
|
51465
|
-
SmoothlyIcon.style = styleCss$
|
|
51693
|
+
SmoothlyIcon.style = styleCss$q;
|
|
51466
51694
|
|
|
51467
|
-
const styleCss$
|
|
51695
|
+
const styleCss$p = "icon-demo.sc-smoothly-icon-demo{display:block}icon-demo[hidden].sc-smoothly-icon-demo{display:none}icon-demo.sc-smoothly-icon-demo>content.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}icon-demo.sc-smoothly-icon-demo>content.sc-smoothly-icon-demo>*.sc-smoothly-icon-demo{margin:1cm}";
|
|
51468
51696
|
|
|
51469
51697
|
const SmoothlyIconDemo = class {
|
|
51470
51698
|
constructor(hostRef) {
|
|
@@ -51946,9 +52174,9 @@ const SmoothlyIconDemo = class {
|
|
|
51946
52174
|
];
|
|
51947
52175
|
}
|
|
51948
52176
|
};
|
|
51949
|
-
SmoothlyIconDemo.style = styleCss$
|
|
52177
|
+
SmoothlyIconDemo.style = styleCss$p;
|
|
51950
52178
|
|
|
51951
|
-
const styleCss$
|
|
52179
|
+
const styleCss$o = ".sc-smoothly-input-h{display:block;position:relative}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-text-tint));opacity:0.8;user-select:none;cursor:inherit;transition:font-size 0.1s;transition-timing-function:ease}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;width:calc(100% - 0.4em);background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+smoothly-icon.sc-smoothly-input{display:block}.has-value.sc-smoothly-input-h>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}.sc-smoothly-input-h:focus-within>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 30px unset inset !important;-webkit-box-shadow:0 0 0 30px unset inset !important}input.sc-smoothly-input:-webkit-autofill{-webkit-text-fill-color:unset !important}input.sc-smoothly-input:-internal-autofill-previewed,input.sc-smoothly-input:-internal-autofill-selected,textarea.sc-smoothly-input:-internal-autofill-previewed,textarea.sc-smoothly-input:-internal-autofill-selected,select.sc-smoothly-input:-internal-autofill-previewed,select.sc-smoothly-input:-internal-autofill-selected{background-color:none !important;background-image:none !important;color:unset !important}";
|
|
51952
52180
|
|
|
51953
52181
|
const SmoothlyInput = class {
|
|
51954
52182
|
constructor(hostRef) {
|
|
@@ -52030,7 +52258,7 @@ const SmoothlyInput = class {
|
|
|
52030
52258
|
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
|
|
52031
52259
|
direction: backend.selectionDirection ? backend.selectionDirection : "none",
|
|
52032
52260
|
} });
|
|
52033
|
-
if ((!(event.ctrlKey && event.key == "v") && event.key.length == 1) ||
|
|
52261
|
+
if ((!((event.ctrlKey || event.metaKey) && event.key == "v") && event.key.length == 1) ||
|
|
52034
52262
|
event.key == "ArrowLeft" ||
|
|
52035
52263
|
event.key == "ArrowRight" ||
|
|
52036
52264
|
event.key == "Delete" ||
|
|
@@ -52098,9 +52326,9 @@ const SmoothlyInput = class {
|
|
|
52098
52326
|
"value": ["valueWatcher"]
|
|
52099
52327
|
}; }
|
|
52100
52328
|
};
|
|
52101
|
-
SmoothlyInput.style = styleCss$
|
|
52329
|
+
SmoothlyInput.style = styleCss$o;
|
|
52102
52330
|
|
|
52103
|
-
const styleCss$
|
|
52331
|
+
const styleCss$n = ".sc-smoothly-input-date-h{position:relative}nav.sc-smoothly-input-date{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--smoothly-default-shade));max-width:22em}.sc-smoothly-input-date-h>div.sc-smoothly-input-date{position:fixed;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>.arrow.sc-smoothly-input-date{position:absolute;z-index:9;transform:translate(2em, -.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-default-shade))}";
|
|
52104
52332
|
|
|
52105
52333
|
const InputDate = class {
|
|
52106
52334
|
constructor(hostRef) {
|
|
@@ -52125,9 +52353,9 @@ const InputDate = class {
|
|
|
52125
52353
|
"value": ["onStart"]
|
|
52126
52354
|
}; }
|
|
52127
52355
|
};
|
|
52128
|
-
InputDate.style = styleCss$
|
|
52356
|
+
InputDate.style = styleCss$n;
|
|
52129
52357
|
|
|
52130
|
-
const styleCss$
|
|
52358
|
+
const styleCss$m = ".sc-smoothly-input-date-range-h{position:relative;display:block}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--smoothly-default-shade));max-width:22em}.sc-smoothly-input-date-range-h>div.sc-smoothly-input-date-range{position:fixed;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>.arrow.sc-smoothly-input-date-range{position:absolute;z-index:9;transform:translate(10em, -.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-default-shade))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-date-range-h>smoothly-input.sc-smoothly-input-date-range{padding:0}";
|
|
52131
52359
|
|
|
52132
52360
|
const InputDateRange = class {
|
|
52133
52361
|
constructor(hostRef) {
|
|
@@ -52158,7 +52386,7 @@ const InputDateRange = class {
|
|
|
52158
52386
|
"value": ["onValue"]
|
|
52159
52387
|
}; }
|
|
52160
52388
|
};
|
|
52161
|
-
InputDateRange.style = styleCss$
|
|
52389
|
+
InputDateRange.style = styleCss$m;
|
|
52162
52390
|
|
|
52163
52391
|
const SmoothlyInputDemo = class {
|
|
52164
52392
|
constructor(hostRef) {
|
|
@@ -52169,7 +52397,7 @@ const SmoothlyInputDemo = class {
|
|
|
52169
52397
|
}
|
|
52170
52398
|
};
|
|
52171
52399
|
|
|
52172
|
-
const styleCss$
|
|
52400
|
+
const styleCss$l = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
|
|
52173
52401
|
|
|
52174
52402
|
const MonthSelector = class {
|
|
52175
52403
|
constructor(hostRef) {
|
|
@@ -52179,28 +52407,28 @@ const MonthSelector = class {
|
|
|
52179
52407
|
onValueChanged(next) {
|
|
52180
52408
|
this.valueChanged.emit(next);
|
|
52181
52409
|
}
|
|
52410
|
+
adjustMonth(delta) {
|
|
52411
|
+
var _a;
|
|
52412
|
+
const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
|
|
52413
|
+
date.setMonth(date.getMonth() + delta);
|
|
52414
|
+
this.value = dist$4.Date.create(date);
|
|
52415
|
+
}
|
|
52182
52416
|
render() {
|
|
52183
52417
|
var _a, _b;
|
|
52184
52418
|
return [
|
|
52185
|
-
h("
|
|
52419
|
+
h("div", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
|
|
52186
52420
|
h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, years((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now()).map(year => (h("smoothly-item", { value: year.date, selected: year.selected }, year.name)))),
|
|
52187
52421
|
h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, months((_b = this.value) !== null && _b !== void 0 ? _b : dist$4.Date.now()).map(month => (h("smoothly-item", { value: month.date, selected: month.selected }, month.name)))),
|
|
52188
|
-
h("
|
|
52422
|
+
h("div", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
|
|
52189
52423
|
];
|
|
52190
52424
|
}
|
|
52191
|
-
adjustMonth(delta) {
|
|
52192
|
-
var _a;
|
|
52193
|
-
const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
|
|
52194
|
-
date.setMonth(date.getMonth() + delta);
|
|
52195
|
-
this.value = dist$4.Date.create(date);
|
|
52196
|
-
}
|
|
52197
52425
|
static get watchers() { return {
|
|
52198
52426
|
"value": ["onValueChanged"]
|
|
52199
52427
|
}; }
|
|
52200
52428
|
};
|
|
52201
|
-
MonthSelector.style = styleCss$
|
|
52429
|
+
MonthSelector.style = styleCss$l;
|
|
52202
52430
|
|
|
52203
|
-
const styleCss$
|
|
52431
|
+
const styleCss$k = "[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-item-h{padding:.5em;cursor:pointer;background-color:rgb(var(--smoothly-default-shade));color:rgb(var(--smoothly-default-contrast));border:rgb(var(--smoothly-default-shade) solid 1px)}.sc-smoothly-item-h:hover{background-color:rgb(var(--smoothly-primary-color));color:rgb(var(--smoothly-primary-contrast))}";
|
|
52204
52432
|
|
|
52205
52433
|
const Item = class {
|
|
52206
52434
|
constructor(hostRef) {
|
|
@@ -52234,9 +52462,9 @@ const Item = class {
|
|
|
52234
52462
|
"selected": ["onSelectedChanged"]
|
|
52235
52463
|
}; }
|
|
52236
52464
|
};
|
|
52237
|
-
Item.style = styleCss$
|
|
52465
|
+
Item.style = styleCss$k;
|
|
52238
52466
|
|
|
52239
|
-
const styleCss$
|
|
52467
|
+
const styleCss$j = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);border:1px solid black;box-sizing:border-box;background-color:rgb(var(--smoothly-default-shade));overflow-y:auto;cursor:pointer}div:last-child:not(:empty){padding:0.5em 1em;font-style:italic}";
|
|
52240
52468
|
|
|
52241
52469
|
const SmoothlyMenuOptions = class {
|
|
52242
52470
|
constructor(hostRef) {
|
|
@@ -52335,9 +52563,9 @@ const SmoothlyMenuOptions = class {
|
|
|
52335
52563
|
"options": ["optionsChangeHandler"]
|
|
52336
52564
|
}; }
|
|
52337
52565
|
};
|
|
52338
|
-
SmoothlyMenuOptions.style = styleCss$
|
|
52566
|
+
SmoothlyMenuOptions.style = styleCss$j;
|
|
52339
52567
|
|
|
52340
|
-
const styleCss$
|
|
52568
|
+
const styleCss$i = ".sc-smoothly-notification-h{display:block;min-width:32.6%;min-height:3em;border-radius:5px;margin:0.5em}[hidden].sc-smoothly-notification-h{display:none}smoothly-trigger.sc-smoothly-notification{float:right;text-align:right;margin-right:0.2em}";
|
|
52341
52569
|
|
|
52342
52570
|
const Notification = class {
|
|
52343
52571
|
constructor(hostRef) {
|
|
@@ -52395,9 +52623,9 @@ const Notification = class {
|
|
|
52395
52623
|
"notice": ["onUpdatedNotice"]
|
|
52396
52624
|
}; }
|
|
52397
52625
|
};
|
|
52398
|
-
Notification.style = styleCss$
|
|
52626
|
+
Notification.style = styleCss$i;
|
|
52399
52627
|
|
|
52400
|
-
const styleCss$
|
|
52628
|
+
const styleCss$h = ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;justify-content:flex-start;position:fixed;bottom:3em;left:0;text-align:center;width:100%;z-index:3}";
|
|
52401
52629
|
|
|
52402
52630
|
const Notifier = class {
|
|
52403
52631
|
constructor(hostRef) {
|
|
@@ -52417,9 +52645,9 @@ const Notifier = class {
|
|
|
52417
52645
|
];
|
|
52418
52646
|
}
|
|
52419
52647
|
};
|
|
52420
|
-
Notifier.style = styleCss$
|
|
52648
|
+
Notifier.style = styleCss$h;
|
|
52421
52649
|
|
|
52422
|
-
const styleCss$
|
|
52650
|
+
const styleCss$g = ":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0.5em 1em}:host([data-highlight]){background-color:rgb(var(--smoothly-primary-color));color:rgb(var(--smoothly-primary-contrast));stroke:rgb(var(--smoothly-primary-contrast));fill:rgb(var(--smoothly-primary-contrast))}:host([data-highlight]) div:last-child{color:rgba(var(--smoothly-primary-contrast), 0.8)}:host div:last-child{color:rgba(var(--smoothly-default-contrast), 0.8);font-style:italic}";
|
|
52423
52651
|
|
|
52424
52652
|
const SmoothlyOption = class {
|
|
52425
52653
|
constructor(hostRef) {
|
|
@@ -52442,9 +52670,9 @@ const SmoothlyOption = class {
|
|
|
52442
52670
|
}
|
|
52443
52671
|
get element() { return getElement(this); }
|
|
52444
52672
|
};
|
|
52445
|
-
SmoothlyOption.style = styleCss$
|
|
52673
|
+
SmoothlyOption.style = styleCss$g;
|
|
52446
52674
|
|
|
52447
|
-
const styleCss$
|
|
52675
|
+
const styleCss$f = ":host{--background-color:var(--smoothly-secondary-tint), 1;--color:var(--smoothly-secondary-contrast);--border-color:var(--smoothly-secondary-contrast), 1;--border-highlight-color:var(--smoothly-secondary-contrast), 1;--label-color:var(--smoothly-secondary-contrast), 0.8;--selected-item-border-radius:0.25rem;--selected-item-background-color:var(--smoothly-secondary-color), 1;--selected-item-color:255, 255, 255, 1}:host{display:block;position:relative;width:100%;cursor:pointer;--intergiro-transition:all 200ms cubic-bezier(0.645, 0.045, 0.355, 1);transition:var(--intergiro-transition)}:host>div{display:flex;min-height:3em;background-color:rgba(var(--background-color));align-items:center;border:none;max-height:var(--max-height)}:host>div .icons>smoothly-icon{flex-shrink:0;padding-left:0.6em;stroke:rgba(var(--color), 0.4);fill:rgba(var(--color), 0.4);width:1.5em !important;height:1.5em !important}:host>div .icons>smoothly-icon:hover{fill:rgba(var(--color), 1)}:host>div input{width:100%;background-color:transparent;outline:none;border:none;cursor:pointer;color:rgb(var(--color));padding:0 1em;font-family:var(--smoothly-font-family);font-size:1.05em}:host>div input::placeholder{opacity:1;text-overflow:ellipsis}:host(:not(:focus-within)[multiple]) ul>li:last-child{position:absolute;pointer-events:none}:host([label=\"\"]) ul,:host:not([label]) ul,:host([label-setting=hide]) ul{padding-top:0.1em;padding-bottom:0.1em}label{position:absolute;top:1em;left:1em;color:rgba(var(--label-color));transition:var(--intergiro-transition);font-family:var(--smoothly-font-family);pointer-events:none;transform-origin:left}:host([has-selection]) label{display:var(--label-display)}:host([has-selection]) label,:host(:focus-within) label{transform:translateY(-1.2em) scale(0.7)}:host(:hover) smoothly-icon[data-arrow],:host(:focus-within) smoothly-icon[data-arrow]{stroke:rgba(var(--color), 1)}:host smoothly-icon[data-arrow]{pointer-events:none}:host(:not([is-open])) smoothly-icon[data-arrow=up]{display:none}:host([is-open]) smoothly-icon[data-arrow=down]{display:none}:host(:not([has-selection])) smoothly-icon:not([data-arrow]){display:none}:host smoothly-menu-options{position:absolute;z-index:1}:host(:not([is-open]))>smoothly-menu-options{display:none}";
|
|
52448
52676
|
|
|
52449
52677
|
const SmoothlyPicker = class {
|
|
52450
52678
|
constructor(hostRef) {
|
|
@@ -52580,9 +52808,9 @@ const SmoothlyPicker = class {
|
|
|
52580
52808
|
"isOpen": ["isOpenChangeHander"]
|
|
52581
52809
|
}; }
|
|
52582
52810
|
};
|
|
52583
|
-
SmoothlyPicker.style = styleCss$
|
|
52811
|
+
SmoothlyPicker.style = styleCss$f;
|
|
52584
52812
|
|
|
52585
|
-
const styleCss$
|
|
52813
|
+
const styleCss$e = ".sc-smoothly-popup-h{display:inline-flex;position:relative}[hidden].sc-smoothly-popup-h{display:none}.sc-smoothly-popup-h:not([visible]) aside.sc-smoothly-popup{display:none}.sc-smoothly-popup-h aside.sc-smoothly-popup{display:inline;position:absolute;padding:0.3em;left:var(--left);right:var(--right);background-color:rgb(238, 238, 238);border-color:rgb(238, 238, 238);border-style:solid;border-width:0.1em;border-radius:0.6em;z-index:3}[direction=down].sc-smoothly-popup-h aside.sc-smoothly-popup{top:2.2em;box-shadow:6px 5px 9px -9px black, 5px 6px 9px -9px black}[direction=up].sc-smoothly-popup-h aside.sc-smoothly-popup{bottom:2.2em;box-shadow:-6px -5px 9px -9px black, -5px -6px 9px -9px black}.sc-smoothly-popup-h:not([visible]) .background.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .background.sc-smoothly-popup{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:2}.sc-smoothly-popup-h:not([visible]) .arrow.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .arrow.sc-smoothly-popup{background-color:rgb(238, 238, 238);border-color:rgb(238, 238, 238);z-index:2;content:\"\";position:absolute;width:12px;height:12px;transform:rotate(45deg);left:calc(var(--left) + 1em);right:calc(var(--right) + 1em)}[direction=down].sc-smoothly-popup-h .arrow.sc-smoothly-popup{top:2em;border-top-style:solid;border-top-width:1px;border-left-style:solid;border-left-width:1px}[direction=up].sc-smoothly-popup-h .arrow.sc-smoothly-popup{bottom:2em;border-bottom-style:solid;border-bottom-width:1px;border-right-style:solid;border-right-width:1px}.sc-smoothly-popup-h .pointer.sc-smoothly-popup{cursor:pointer}";
|
|
52586
52814
|
|
|
52587
52815
|
const SmoothlyPopup = class {
|
|
52588
52816
|
constructor(hostRef) {
|
|
@@ -52611,9 +52839,9 @@ const SmoothlyPopup = class {
|
|
|
52611
52839
|
return (h(Host, { style: Object.assign({}, this.cssVariables) }, h("content", { class: "pointer", onClick: () => this.onClick() }, h("slot", null)), h("div", { class: "background", onClick: () => this.onClick() }), h("div", { class: "arrow", onClick: () => this.onClick() }), h("aside", { ref: el => (this.aside = el) }, h("slot", { name: "popup" }))));
|
|
52612
52840
|
}
|
|
52613
52841
|
};
|
|
52614
|
-
SmoothlyPopup.style = styleCss$
|
|
52842
|
+
SmoothlyPopup.style = styleCss$e;
|
|
52615
52843
|
|
|
52616
|
-
const styleCss$
|
|
52844
|
+
const styleCss$d = ".sc-smoothly-radio-h{display:block;position:relative}[hidden].sc-smoothly-radio-h{display:none}label.sc-smoothly-radio{display:block;width:calc(100% - 2 * 0.4em);padding:0.2em 0.4em 0.2em 0.4em}input[type=radio].sc-smoothly-radio{position:absolute;left:0;top:0;width:calc(100%);height:100%;margin:0;appearance:none;-webkit-appearance:none}input[type=radio].sc-smoothly-radio~label.sc-smoothly-radio{border:1px solid rgb(var(--smoothly-default-color));color:rgba(var(--smoothly-default-contrast), 0.5);background:rgb(var(--smoothly-default-color))}input[type=radio].sc-smoothly-radio:checked~label.sc-smoothly-radio{background-color:rgb(var(--smoothly-default-shade));color:rgb(var(--smoothly-default-contrast))}";
|
|
52617
52845
|
|
|
52618
52846
|
const SmoothlyRadio = class {
|
|
52619
52847
|
constructor(hostRef) {
|
|
@@ -52632,7 +52860,7 @@ const SmoothlyRadio = class {
|
|
|
52632
52860
|
];
|
|
52633
52861
|
}
|
|
52634
52862
|
};
|
|
52635
|
-
SmoothlyRadio.style = styleCss$
|
|
52863
|
+
SmoothlyRadio.style = styleCss$d;
|
|
52636
52864
|
|
|
52637
52865
|
const SmoothlyRoom = class {
|
|
52638
52866
|
constructor(hostRef) {
|
|
@@ -52643,7 +52871,7 @@ const SmoothlyRoom = class {
|
|
|
52643
52871
|
}
|
|
52644
52872
|
};
|
|
52645
52873
|
|
|
52646
|
-
const styleCss$
|
|
52874
|
+
const styleCss$c = ".sc-smoothly-select-h{display:block}[hidden].sc-smoothly-select-h{display:none}select.sc-smoothly-select{min-width:1.5em;padding-top:0.5em;border:none;-webkit-appearance:none;background-color:rgb(var(--smoothly-color));padding:0.3em}select.sc-smoothly-select>option.sc-smoothly-select{background-color:inherit}select.sc-smoothly-select:focus{outline:none}";
|
|
52647
52875
|
|
|
52648
52876
|
const SmoothlySelect = class {
|
|
52649
52877
|
constructor(hostRef) {
|
|
@@ -52652,7 +52880,7 @@ const SmoothlySelect = class {
|
|
|
52652
52880
|
}
|
|
52653
52881
|
optionSelected() {
|
|
52654
52882
|
if (this.selectElement)
|
|
52655
|
-
this.selectionChanged.emit({ identifier: this.identifier, value: this.value = this.selectElement.value });
|
|
52883
|
+
this.selectionChanged.emit({ identifier: this.identifier, value: (this.value = this.selectElement.value) });
|
|
52656
52884
|
}
|
|
52657
52885
|
componentDidLoad() {
|
|
52658
52886
|
var _a;
|
|
@@ -52665,9 +52893,9 @@ const SmoothlySelect = class {
|
|
|
52665
52893
|
];
|
|
52666
52894
|
}
|
|
52667
52895
|
};
|
|
52668
|
-
SmoothlySelect.style = styleCss$
|
|
52896
|
+
SmoothlySelect.style = styleCss$c;
|
|
52669
52897
|
|
|
52670
|
-
const styleCss$
|
|
52898
|
+
const styleCss$b = ".sc-smoothly-select-demo-h{display:block}[hidden].sc-smoothly-select-demo-h{display:none}button.sc-smoothly-select-demo:focus{outline:none}smoothly-selector.sc-smoothly-select-demo{outline:none}";
|
|
52671
52899
|
|
|
52672
52900
|
const SmoothlySelectDemo = class {
|
|
52673
52901
|
constructor(hostRef) {
|
|
@@ -52736,9 +52964,9 @@ const SmoothlySelectDemo = class {
|
|
|
52736
52964
|
];
|
|
52737
52965
|
}
|
|
52738
52966
|
};
|
|
52739
|
-
SmoothlySelectDemo.style = styleCss$
|
|
52967
|
+
SmoothlySelectDemo.style = styleCss$b;
|
|
52740
52968
|
|
|
52741
|
-
const styleCss$
|
|
52969
|
+
const styleCss$a = ".sc-smoothly-selector-h{position:relative;height:100%}.sc-smoothly-selector-h>main.sc-smoothly-selector,.sc-smoothly-selector-h>main.sc-smoothly-selector>*.sc-smoothly-selector{height:100%;display:flex;align-items:center}.sc-smoothly-selector-h>div.sc-smoothly-selector>nav.sc-smoothly-selector{display:flex;flex-direction:column;position:absolute;z-index:10}.sc-smoothly-selector-h>aside.sc-smoothly-selector{position:absolute;top:0;left:5em;z-index:10;background-color:rgb(var(--smoothly-tertiary-color));color:rgb(var(--smoothly-tertiary-contrast));height:20px;border-radius:5px;padding:5px;display:flex;align-items:center}.missing.sc-smoothly-selector-h>aside.sc-smoothly-selector{background-color:rgb(var(--smoothly-warning-color));color:rgb(var(--smoothly-warning-contast))}.hidden.sc-smoothly-selector{display:none}.sc-smoothly-selector-h>section.sc-smoothly-selector{position:fixed;top:0px;left:0px;width:100vw;height:100vh;z-index:10}";
|
|
52742
52970
|
|
|
52743
52971
|
const Selector = class {
|
|
52744
52972
|
constructor(hostRef) {
|
|
@@ -52844,9 +53072,9 @@ function isItem(value) {
|
|
|
52844
53072
|
(typeof value.selected == "boolean" || value.selected == undefined) &&
|
|
52845
53073
|
typeof value.filter == "function");
|
|
52846
53074
|
}
|
|
52847
|
-
Selector.style = styleCss$
|
|
53075
|
+
Selector.style = styleCss$a;
|
|
52848
53076
|
|
|
52849
|
-
const styleCss$
|
|
53077
|
+
const styleCss$9 = ".sc-smoothly-spinner-h{display:block;position:relative}[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h:not([active]){display:none}.sc-smoothly-spinner-h{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent))}.sc-smoothly-spinner-h>div.sc-smoothly-spinner{opacity:1;position:absolute;left:calc(50% - 5em + 1.1em);top:calc(50% - 5em + 1.1em)}.sc-smoothly-spinner-h>div.sc-smoothly-spinner,.sc-smoothly-spinner-h>div.sc-smoothly-spinner::after{border-radius:50%;width:5em;height:5em}.sc-smoothly-spinner-h>div.sc-smoothly-spinner{content:\"\";color:transparent;position:relative;border-top:1.1em solid rgb(var(--smoothly-primary-tint));border-right:1.1em solid rgb(var(--smoothly-primary-tint));border-bottom:1.1em solid rgb(var(--smoothly-primary-tint));border-left:1.1em solid rgb(var(--smoothly-primary-color));-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";
|
|
52850
53078
|
|
|
52851
53079
|
const SmoothlySpinner = class {
|
|
52852
53080
|
constructor(hostRef) {
|
|
@@ -52856,9 +53084,9 @@ const SmoothlySpinner = class {
|
|
|
52856
53084
|
return h("div", null, "Loading...");
|
|
52857
53085
|
}
|
|
52858
53086
|
};
|
|
52859
|
-
SmoothlySpinner.style = styleCss$
|
|
53087
|
+
SmoothlySpinner.style = styleCss$9;
|
|
52860
53088
|
|
|
52861
|
-
const styleCss$
|
|
53089
|
+
const styleCss$8 = ".sc-smoothly-submit-h{display:block;border-width:1px;border-style:solid;border-radius:3px}[hidden].sc-smoothly-submit-h{display:none}[disabled].sc-smoothly-submit-h{opacity:0.5}button.sc-smoothly-submit{padding:0.2em 0.3em;font-size:110%;font-weight:400}[processing].sc-smoothly-submit-h{border-color:rgb(var(--smoothly-light-color))}[processing].sc-smoothly-submit-h>button.sc-smoothly-submit{color:rgb(var(--smoothly-light-contrast));background:rgb(var(--smoothly-light-color))}.sc-smoothly-submit-h:not([processing]):not([disabled]):hover,.sc-smoothly-submit-h:not([processing]):not([disabled]):focus,.sc-smoothly-submit-h:not([processing]):not([disabled]):active{border-color:rgb(var(--smoothly-submit-border))}[expand=fill].sc-smoothly-submit-h>button.sc-smoothly-submit,[expand=block].sc-smoothly-submit-h>button.sc-smoothly-submit{width:100%}[expand=fill].sc-smoothly-submit-h{border-left:none;border-right:none}";
|
|
52862
53090
|
|
|
52863
53091
|
const SmoothlySubmit = class {
|
|
52864
53092
|
constructor(hostRef) {
|
|
@@ -52910,9 +53138,9 @@ const SmoothlySubmit = class {
|
|
|
52910
53138
|
function hasNameAndValue(element) {
|
|
52911
53139
|
return (typeof element.name == "string" && typeof element.value == "string");
|
|
52912
53140
|
}
|
|
52913
|
-
SmoothlySubmit.style = styleCss$
|
|
53141
|
+
SmoothlySubmit.style = styleCss$8;
|
|
52914
53142
|
|
|
52915
|
-
const styleCss$
|
|
53143
|
+
const styleCss$7 = ".sc-smoothly-table-h{display:table;text-align:left;border-collapse:collapse;border:3px solid rgb(var(--smoothly-dark-color), 0.5);width:100%;box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}";
|
|
52916
53144
|
|
|
52917
53145
|
const Table = class {
|
|
52918
53146
|
constructor(hostRef) {
|
|
@@ -52929,7 +53157,19 @@ const Table = class {
|
|
|
52929
53157
|
}
|
|
52930
53158
|
get element() { return getElement(this); }
|
|
52931
53159
|
};
|
|
52932
|
-
Table.style = styleCss$
|
|
53160
|
+
Table.style = styleCss$7;
|
|
53161
|
+
|
|
53162
|
+
const styleCss$6 = ".sc-smoothly-table-cell-h{display:table-cell;padding:0.5em}";
|
|
53163
|
+
|
|
53164
|
+
const TableCell = class {
|
|
53165
|
+
constructor(hostRef) {
|
|
53166
|
+
registerInstance(this, hostRef);
|
|
53167
|
+
}
|
|
53168
|
+
render() {
|
|
53169
|
+
return (h(Host, null, h("slot", null)));
|
|
53170
|
+
}
|
|
53171
|
+
};
|
|
53172
|
+
TableCell.style = styleCss$6;
|
|
52933
53173
|
|
|
52934
53174
|
const styleCss$5 = "";
|
|
52935
53175
|
|
|
@@ -52938,7 +53178,10 @@ const TableDemo = class {
|
|
|
52938
53178
|
registerInstance(this, hostRef);
|
|
52939
53179
|
}
|
|
52940
53180
|
render() {
|
|
52941
|
-
return
|
|
53181
|
+
return [
|
|
53182
|
+
h("smoothly-table", null, h("smoothly-table-row", null, h("smoothly-table-header", null, "Header A"), h("smoothly-table-header", null, "Header B"), h("smoothly-table-header", null, "Header C")), h("smoothly-table-expandable-row", null, h("smoothly-table-expandable-cell", null, "Value 1A", h("div", { slot: "detail" }, "1A details")), h("smoothly-table-expandable-cell", null, h("smoothly-display", { type: "price", value: 20, currency: "EUR" }), h("div", { slot: "detail" }, "Budget details.")), h("smoothly-table-expandable-cell", null, h("smoothly-display", { type: "price", value: 18, currency: "EUR" }), h("div", { slot: "detail" }, "Cost details."))), h("smoothly-table-expandable-row", null, h("smoothly-table-expandable-cell", null, "Value 1A", h("div", { slot: "detail" }, "2A details")), h("smoothly-table-expandable-cell", null, h("smoothly-display", { type: "price", value: 30, currency: "EUR" }), h("div", { slot: "detail" }, "Budget details.")), h("smoothly-table-expandable-cell", null, h("smoothly-display", { type: "price", value: 38, currency: "EUR" }), h("div", { slot: "detail" }, "Cost details.")))),
|
|
53183
|
+
h("smoothly-table", null, h("smoothly-table-row", null, h("smoothly-table-header", null, "Header D"), h("smoothly-table-header", null, "Header E"), h("smoothly-table-header", null, "Header F")), h("smoothly-table-row", null, h("smoothly-table-cell", null, "Value 1A"), h("smoothly-table-cell", null, h("smoothly-display", { type: "price", value: 20, currency: "EUR" })), h("smoothly-table-cell", null, h("smoothly-display", { type: "price", value: 18, currency: "EUR" })), h("div", { slot: "detail" }, "Cost details.")), h("smoothly-table-row", null, h("smoothly-table-cell", null, "Value 1A"), h("smoothly-table-cell", null, h("smoothly-display", { type: "price", value: 20, currency: "EUR" })), h("smoothly-table-cell", null, h("smoothly-display", { type: "price", value: 18, currency: "EUR" })), h("div", { slot: "detail" }, "Cost details."))),
|
|
53184
|
+
];
|
|
52942
53185
|
}
|
|
52943
53186
|
};
|
|
52944
53187
|
TableDemo.style = styleCss$5;
|
|
@@ -53016,7 +53259,7 @@ const TableHeader = class {
|
|
|
53016
53259
|
onClick(event) {
|
|
53017
53260
|
this.sort.emit({
|
|
53018
53261
|
property: this.name,
|
|
53019
|
-
direction: this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending",
|
|
53262
|
+
direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
|
|
53020
53263
|
});
|
|
53021
53264
|
console.log("sort", this.name, this.sortDirection);
|
|
53022
53265
|
event.preventDefault();
|
|
@@ -53040,15 +53283,34 @@ const TableHeader = class {
|
|
|
53040
53283
|
};
|
|
53041
53284
|
TableHeader.style = styleCss$2;
|
|
53042
53285
|
|
|
53043
|
-
const styleCss$1 = ".sc-smoothly-table-row-h{display:table-row;border:1px solid rgb(var(--smoothly-dark-color), 0.5);cursor:pointer}.sc-smoothly-table-row-h:nth-child(even){background-color:rgb(var(--smoothly-default-color))}.sc-smoothly-table-row-h:hover{background-color:rgb(var(--smoothly-default-color))}";
|
|
53286
|
+
const styleCss$1 = ".sc-smoothly-table-row-h{display:table-row;border:1px solid rgb(var(--smoothly-dark-color), 0.5);cursor:pointer}.sc-smoothly-table-row-h:nth-child(even){background-color:rgb(var(--smoothly-default-color))}.sc-smoothly-table-row-h:hover{background-color:rgb(var(--smoothly-default-color))}.hide.sc-smoothly-table-row{display:none}";
|
|
53044
53287
|
|
|
53045
53288
|
const TableRow = class {
|
|
53046
53289
|
constructor(hostRef) {
|
|
53047
53290
|
registerInstance(this, hostRef);
|
|
53291
|
+
this.expansionOpen = createEvent(this, "expansionOpen", 7);
|
|
53292
|
+
this.align = "left";
|
|
53293
|
+
}
|
|
53294
|
+
openChanged(value) {
|
|
53295
|
+
if (this.expansionElement)
|
|
53296
|
+
this.element.after(this.expansionElement);
|
|
53297
|
+
}
|
|
53298
|
+
onClick(e) {
|
|
53299
|
+
this.open = !this.open;
|
|
53300
|
+
e.stopPropagation();
|
|
53301
|
+
}
|
|
53302
|
+
componentDidRender() {
|
|
53303
|
+
this.expansionOpen.emit(this.expansionElement);
|
|
53304
|
+
if (this.expansionElement && this.open)
|
|
53305
|
+
this.element.after(this.expansionElement);
|
|
53048
53306
|
}
|
|
53049
53307
|
render() {
|
|
53050
|
-
return (h(Host,
|
|
53308
|
+
return (h(Host, { style: { textAlign: this.align } }, h("slot", null), h("tr", { ref: e => (this.expansionElement = e) }, h("td", { colSpan: 500, class: !this.open ? "hide" : "" }, h("slot", { name: "detail" })))));
|
|
53051
53309
|
}
|
|
53310
|
+
get element() { return getElement(this); }
|
|
53311
|
+
static get watchers() { return {
|
|
53312
|
+
"open": ["openChanged"]
|
|
53313
|
+
}; }
|
|
53052
53314
|
};
|
|
53053
53315
|
TableRow.style = styleCss$1;
|
|
53054
53316
|
|
|
@@ -53102,4 +53364,4 @@ const Urlencoded = class {
|
|
|
53102
53364
|
}
|
|
53103
53365
|
};
|
|
53104
53366
|
|
|
53105
|
-
export { SmoothlyAccordion as smoothly_accordion, SmoothlyAccordionItem as smoothly_accordion_item, SmoothlyApp as smoothly_app, SmoothlyAppDemo as smoothly_app_demo, Calendar as smoothly_calendar, SmoothlyCheckbox as smoothly_checkbox, SmoothlyDialog as smoothly_dialog, SmoothlyDialogDemo as smoothly_dialog_demo, SmoothlyDisplay as smoothly_display, SmoothlyDisplayAmount as smoothly_display_amount, SmoothlyDisplayDateTime as smoothly_display_date_time, SmoothlyDisplayDemo as smoothly_display_demo, SmoothlyFrame as smoothly_frame, SmoothlyIcon as smoothly_icon, SmoothlyIconDemo as smoothly_icon_demo, SmoothlyInput as smoothly_input, InputDate as smoothly_input_date, InputDateRange as smoothly_input_date_range, SmoothlyInputDemo as smoothly_input_demo, MonthSelector as smoothly_input_month, Item as smoothly_item, SmoothlyMenuOptions as smoothly_menu_options, Notification as smoothly_notification, Notifier as smoothly_notifier, SmoothlyOption as smoothly_option, SmoothlyPicker as smoothly_picker, SmoothlyPopup as smoothly_popup, SmoothlyRadio as smoothly_radio, SmoothlyRoom as smoothly_room, SmoothlySelect as smoothly_select, SmoothlySelectDemo as smoothly_select_demo, Selector as smoothly_selector, SmoothlySpinner as smoothly_spinner, SmoothlySubmit as smoothly_submit, Table as smoothly_table, TableDemo as smoothly_table_demo, TableExpandableCell as smoothly_table_expandable_cell, TableExpandableRow as smoothly_table_expandable_row, TableHeader as smoothly_table_header, TableRow as smoothly_table_row, SmoothlyTrigger as smoothly_trigger, SmoothlyTuple as smoothly_tuple, Urlencoded as smoothly_urlencoded };
|
|
53367
|
+
export { SmoothlyAccordion as smoothly_accordion, SmoothlyAccordionItem as smoothly_accordion_item, SmoothlyApp as smoothly_app, SmoothlyAppDemo as smoothly_app_demo, Calendar as smoothly_calendar, SmoothlyCheckbox as smoothly_checkbox, SmoothlyDialog as smoothly_dialog, SmoothlyDialogDemo as smoothly_dialog_demo, SmoothlyDisplay as smoothly_display, SmoothlyDisplayAmount as smoothly_display_amount, SmoothlyDisplayDateTime as smoothly_display_date_time, SmoothlyDisplayDemo as smoothly_display_demo, SmoothlyFrame as smoothly_frame, SmoothlyIcon as smoothly_icon, SmoothlyIconDemo as smoothly_icon_demo, SmoothlyInput as smoothly_input, InputDate as smoothly_input_date, InputDateRange as smoothly_input_date_range, SmoothlyInputDemo as smoothly_input_demo, MonthSelector as smoothly_input_month, Item as smoothly_item, SmoothlyMenuOptions as smoothly_menu_options, Notification as smoothly_notification, Notifier as smoothly_notifier, SmoothlyOption as smoothly_option, SmoothlyPicker as smoothly_picker, SmoothlyPopup as smoothly_popup, SmoothlyRadio as smoothly_radio, SmoothlyRoom as smoothly_room, SmoothlySelect as smoothly_select, SmoothlySelectDemo as smoothly_select_demo, Selector as smoothly_selector, SmoothlySpinner as smoothly_spinner, SmoothlySubmit as smoothly_submit, Table as smoothly_table, TableCell as smoothly_table_cell, TableDemo as smoothly_table_demo, TableExpandableCell as smoothly_table_expandable_cell, TableExpandableRow as smoothly_table_expandable_row, TableHeader as smoothly_table_header, TableRow as smoothly_table_row, SmoothlyTrigger as smoothly_trigger, SmoothlyTuple as smoothly_tuple, Urlencoded as smoothly_urlencoded };
|