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
|
@@ -19002,28 +19002,28 @@ const CurrencyCode$2 = /*@__PURE__*/getDefaultExportFromCjs(CurrencyCode_1$2);
|
|
|
19002
19002
|
var _Date$2 = createCommonjsModule(function (module, exports) {
|
|
19003
19003
|
"use strict";
|
|
19004
19004
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19005
|
-
exports.
|
|
19006
|
-
var
|
|
19007
|
-
(function (
|
|
19005
|
+
exports.Date = void 0;
|
|
19006
|
+
var Date;
|
|
19007
|
+
(function (Date) {
|
|
19008
19008
|
function is(value) {
|
|
19009
19009
|
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));
|
|
19010
19010
|
}
|
|
19011
|
-
|
|
19011
|
+
Date.is = is;
|
|
19012
19012
|
function parse(value, time) {
|
|
19013
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
19013
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
19014
19014
|
}
|
|
19015
|
-
|
|
19015
|
+
Date.parse = parse;
|
|
19016
19016
|
function create(value) {
|
|
19017
19017
|
return value.toISOString().substring(0, 10);
|
|
19018
19018
|
}
|
|
19019
|
-
|
|
19019
|
+
Date.create = create;
|
|
19020
19020
|
function now() {
|
|
19021
|
-
return create(new Date());
|
|
19021
|
+
return create(new globalThis.Date());
|
|
19022
19022
|
}
|
|
19023
|
-
|
|
19023
|
+
Date.now = now;
|
|
19024
19024
|
function localize(value, locale) {
|
|
19025
|
-
|
|
19026
|
-
|
|
19025
|
+
return (is(value) ? parse(value) : value)
|
|
19026
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
19027
19027
|
year: "numeric",
|
|
19028
19028
|
month: "2-digit",
|
|
19029
19029
|
day: "2-digit",
|
|
@@ -19031,11 +19031,82 @@ var IsoDate;
|
|
|
19031
19031
|
minute: "2-digit",
|
|
19032
19032
|
second: "2-digit",
|
|
19033
19033
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
19034
|
-
}
|
|
19035
|
-
|
|
19034
|
+
})
|
|
19035
|
+
.substring(0, 10);
|
|
19036
|
+
}
|
|
19037
|
+
Date.localize = localize;
|
|
19038
|
+
function next(date, days = 1) {
|
|
19039
|
+
let result;
|
|
19040
|
+
if (typeof days == "number") {
|
|
19041
|
+
const r = parse(date);
|
|
19042
|
+
r.setDate(r.getDate() + days);
|
|
19043
|
+
result = Date.create(r);
|
|
19044
|
+
}
|
|
19045
|
+
else {
|
|
19046
|
+
result = date;
|
|
19047
|
+
if (days.years)
|
|
19048
|
+
result = nextYear(result, days.years);
|
|
19049
|
+
if (days.months)
|
|
19050
|
+
result = nextMonth(result, days.months);
|
|
19051
|
+
if (days.days)
|
|
19052
|
+
result = next(result, days.days);
|
|
19053
|
+
}
|
|
19054
|
+
return result;
|
|
19055
|
+
}
|
|
19056
|
+
Date.next = next;
|
|
19057
|
+
function previous(date, days = 1) {
|
|
19058
|
+
let result;
|
|
19059
|
+
if (typeof days == "number") {
|
|
19060
|
+
const r = parse(date);
|
|
19061
|
+
r.setDate(r.getDate() - days);
|
|
19062
|
+
result = Date.create(r);
|
|
19063
|
+
}
|
|
19064
|
+
else {
|
|
19065
|
+
result = date;
|
|
19066
|
+
if (days.years)
|
|
19067
|
+
result = previousYear(result, days.years);
|
|
19068
|
+
if (days.months)
|
|
19069
|
+
result = previousMonth(result, days.months);
|
|
19070
|
+
if (days.days)
|
|
19071
|
+
result = previous(result, days.days);
|
|
19072
|
+
}
|
|
19073
|
+
return result;
|
|
19036
19074
|
}
|
|
19037
|
-
|
|
19038
|
-
|
|
19075
|
+
Date.previous = previous;
|
|
19076
|
+
function nextMonth(date, months = 1) {
|
|
19077
|
+
const result = parse(date);
|
|
19078
|
+
result.setMonth(result.getMonth() + months);
|
|
19079
|
+
return Date.create(result);
|
|
19080
|
+
}
|
|
19081
|
+
Date.nextMonth = nextMonth;
|
|
19082
|
+
function previousMonth(date, months = 1) {
|
|
19083
|
+
return nextMonth(date, -months);
|
|
19084
|
+
}
|
|
19085
|
+
Date.previousMonth = previousMonth;
|
|
19086
|
+
function nextYear(date, years = 1) {
|
|
19087
|
+
const result = parse(date);
|
|
19088
|
+
result.setFullYear(result.getFullYear() + years);
|
|
19089
|
+
return Date.create(result);
|
|
19090
|
+
}
|
|
19091
|
+
Date.nextYear = nextYear;
|
|
19092
|
+
function previousYear(date, years = 1) {
|
|
19093
|
+
return nextYear(date, -years);
|
|
19094
|
+
}
|
|
19095
|
+
Date.previousYear = previousYear;
|
|
19096
|
+
function firstOfMonth(date) {
|
|
19097
|
+
const result = parse(date);
|
|
19098
|
+
result.setDate(1);
|
|
19099
|
+
return Date.create(result);
|
|
19100
|
+
}
|
|
19101
|
+
Date.firstOfMonth = firstOfMonth;
|
|
19102
|
+
function lastOfMonth(date) {
|
|
19103
|
+
const result = parse(date);
|
|
19104
|
+
result.setMonth(result.getMonth() + 1);
|
|
19105
|
+
result.setDate(-1);
|
|
19106
|
+
return Date.create(result);
|
|
19107
|
+
}
|
|
19108
|
+
Date.lastOfMonth = lastOfMonth;
|
|
19109
|
+
})(Date = exports.Date || (exports.Date = {}));
|
|
19039
19110
|
//# sourceMappingURL=Date.js.map
|
|
19040
19111
|
});
|
|
19041
19112
|
|
|
@@ -19066,7 +19137,7 @@ var DateTime;
|
|
|
19066
19137
|
DateTime.now = now;
|
|
19067
19138
|
function localize(value, locale) {
|
|
19068
19139
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
19069
|
-
|
|
19140
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
19070
19141
|
year: "numeric",
|
|
19071
19142
|
month: "2-digit",
|
|
19072
19143
|
day: "2-digit",
|
|
@@ -19074,8 +19145,7 @@ var DateTime;
|
|
|
19074
19145
|
minute: "2-digit",
|
|
19075
19146
|
second: "2-digit",
|
|
19076
19147
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
19077
|
-
};
|
|
19078
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
19148
|
+
});
|
|
19079
19149
|
}
|
|
19080
19150
|
DateTime.localize = localize;
|
|
19081
19151
|
})(DateTime = exports.DateTime || (exports.DateTime = {}));
|
|
@@ -20850,7 +20920,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
20850
20920
|
|
|
20851
20921
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1$2.CurrencyCode; } });
|
|
20852
20922
|
|
|
20853
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$2.
|
|
20923
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$2.Date; } });
|
|
20854
20924
|
|
|
20855
20925
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1$2.DateTime; } });
|
|
20856
20926
|
|
|
@@ -20876,7 +20946,8 @@ function month(date) {
|
|
|
20876
20946
|
d.setDate(day++);
|
|
20877
20947
|
r.push(dist$4.Date.create(d));
|
|
20878
20948
|
}
|
|
20879
|
-
|
|
20949
|
+
if (row < 5 || dist$4.Date.firstOfMonth(r[0]) == dist$4.Date.firstOfMonth(date))
|
|
20950
|
+
result.push(r);
|
|
20880
20951
|
}
|
|
20881
20952
|
return result;
|
|
20882
20953
|
}
|
|
@@ -20921,7 +20992,7 @@ function years(current) {
|
|
|
20921
20992
|
return result;
|
|
20922
20993
|
}
|
|
20923
20994
|
|
|
20924
|
-
const styleCss$B = ".sc-smoothly-calendar-h{display:block}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding
|
|
20995
|
+
const styleCss$B = ".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))}";
|
|
20925
20996
|
|
|
20926
20997
|
const Calendar = class extends HTMLElement {
|
|
20927
20998
|
constructor() {
|
|
@@ -20947,7 +21018,7 @@ const Calendar = class extends HTMLElement {
|
|
|
20947
21018
|
event.stopPropagation();
|
|
20948
21019
|
} }),
|
|
20949
21020
|
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 => {
|
|
20950
|
-
var _a, _b;
|
|
21021
|
+
var _a, _b, _c;
|
|
20951
21022
|
return (h("td", { tabindex: 1, onClick: () => {
|
|
20952
21023
|
this.valueChanged.emit((this.value = date));
|
|
20953
21024
|
this.clickCounter += 1;
|
|
@@ -20960,9 +21031,9 @@ const Calendar = class extends HTMLElement {
|
|
|
20960
21031
|
this.start = date;
|
|
20961
21032
|
}
|
|
20962
21033
|
}, class: (date == this.value ? ["selected"] : [])
|
|
20963
|
-
.concat(...(date == dist$4.Date.now() ? ["today"] : []),
|
|
20964
|
-
? dist$4.Date.parse(date) >= dist$4.Date.parse((
|
|
20965
|
-
dist$4.Date.parse(date) <= dist$4.Date.parse((
|
|
21034
|
+
.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
|
|
21035
|
+
? dist$4.Date.parse(date) >= dist$4.Date.parse((_b = this.start) !== null && _b !== void 0 ? _b : "") &&
|
|
21036
|
+
dist$4.Date.parse(date) <= dist$4.Date.parse((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
20966
21037
|
? ["dateRange"]
|
|
20967
21038
|
: []
|
|
20968
21039
|
: "")
|
|
@@ -35081,7 +35152,7 @@ var CallingCode;
|
|
|
35081
35152
|
value == "+44" ||
|
|
35082
35153
|
value == "+224" ||
|
|
35083
35154
|
value == "+245" ||
|
|
35084
|
-
value == "+
|
|
35155
|
+
value == "+592" ||
|
|
35085
35156
|
value == "+509" ||
|
|
35086
35157
|
value == "+379" ||
|
|
35087
35158
|
value == "+504" ||
|
|
@@ -35260,7 +35331,7 @@ var CallingCode;
|
|
|
35260
35331
|
})(CallingCode = exports.CallingCode || (exports.CallingCode = {}));
|
|
35261
35332
|
const callingCodetoAlpha2 = {
|
|
35262
35333
|
"+93": "AF",
|
|
35263
|
-
"+358": ["
|
|
35334
|
+
"+358": ["FI", "AX"],
|
|
35264
35335
|
"+355": "AL",
|
|
35265
35336
|
"+213": "DZ",
|
|
35266
35337
|
"+1684": "AS",
|
|
@@ -35297,7 +35368,7 @@ const callingCodetoAlpha2 = {
|
|
|
35297
35368
|
"+257": "BI",
|
|
35298
35369
|
"+855": "KH",
|
|
35299
35370
|
"+237": "CM",
|
|
35300
|
-
"+1": ["
|
|
35371
|
+
"+1": ["US", "CA"],
|
|
35301
35372
|
"+238": "CV",
|
|
35302
35373
|
"+345": "KY",
|
|
35303
35374
|
"+236": "CF",
|
|
@@ -35344,10 +35415,11 @@ const callingCodetoAlpha2 = {
|
|
|
35344
35415
|
"+590": ["GP", "BL", "MF"],
|
|
35345
35416
|
"+1671": "GU",
|
|
35346
35417
|
"+502": "GT",
|
|
35347
|
-
"+44": ["
|
|
35418
|
+
"+44": ["GB", "JE", "IM", "GG"],
|
|
35348
35419
|
"+224": "GN",
|
|
35349
35420
|
"+245": "GW",
|
|
35350
|
-
"+
|
|
35421
|
+
"+592": "GY",
|
|
35422
|
+
"+595": "PY",
|
|
35351
35423
|
"+509": "HT",
|
|
35352
35424
|
"+379": "VA",
|
|
35353
35425
|
"+504": "HN",
|
|
@@ -35392,7 +35464,7 @@ const callingCodetoAlpha2 = {
|
|
|
35392
35464
|
"+596": "MQ",
|
|
35393
35465
|
"+222": "MR",
|
|
35394
35466
|
"+230": "MU",
|
|
35395
|
-
"+262": ["
|
|
35467
|
+
"+262": ["RE", "YT"],
|
|
35396
35468
|
"+52": "MX",
|
|
35397
35469
|
"+691": "FM",
|
|
35398
35470
|
"+373": "MD",
|
|
@@ -35580,7 +35652,7 @@ const alpha2toCallingCode = {
|
|
|
35580
35652
|
GG: "+44",
|
|
35581
35653
|
GN: "+224",
|
|
35582
35654
|
GW: "+245",
|
|
35583
|
-
GY: "+
|
|
35655
|
+
GY: "+592",
|
|
35584
35656
|
HT: "+509",
|
|
35585
35657
|
VA: "+379",
|
|
35586
35658
|
HN: "+504",
|
|
@@ -35743,264 +35815,302 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
35743
35815
|
exports.Alpha2 = void 0;
|
|
35744
35816
|
var Alpha2;
|
|
35745
35817
|
(function (Alpha2) {
|
|
35818
|
+
Alpha2.types = [
|
|
35819
|
+
"AF",
|
|
35820
|
+
"AX",
|
|
35821
|
+
"AL",
|
|
35822
|
+
"DZ",
|
|
35823
|
+
"AS",
|
|
35824
|
+
"AD",
|
|
35825
|
+
"AO",
|
|
35826
|
+
"AI",
|
|
35827
|
+
"AQ",
|
|
35828
|
+
"AG",
|
|
35829
|
+
"AR",
|
|
35830
|
+
"AM",
|
|
35831
|
+
"AW",
|
|
35832
|
+
"AU",
|
|
35833
|
+
"AT",
|
|
35834
|
+
"AZ",
|
|
35835
|
+
"BS",
|
|
35836
|
+
"BH",
|
|
35837
|
+
"BD",
|
|
35838
|
+
"BB",
|
|
35839
|
+
"BY",
|
|
35840
|
+
"BE",
|
|
35841
|
+
"BZ",
|
|
35842
|
+
"BJ",
|
|
35843
|
+
"BM",
|
|
35844
|
+
"BT",
|
|
35845
|
+
"BO",
|
|
35846
|
+
"BQ",
|
|
35847
|
+
"BA",
|
|
35848
|
+
"BW",
|
|
35849
|
+
"BV",
|
|
35850
|
+
"BR",
|
|
35851
|
+
"IO",
|
|
35852
|
+
"BN",
|
|
35853
|
+
"BG",
|
|
35854
|
+
"BF",
|
|
35855
|
+
"BI",
|
|
35856
|
+
"CV",
|
|
35857
|
+
"KH",
|
|
35858
|
+
"CM",
|
|
35859
|
+
"CA",
|
|
35860
|
+
"KY",
|
|
35861
|
+
"CF",
|
|
35862
|
+
"TD",
|
|
35863
|
+
"CL",
|
|
35864
|
+
"CN",
|
|
35865
|
+
"CX",
|
|
35866
|
+
"CC",
|
|
35867
|
+
"CO",
|
|
35868
|
+
"KM",
|
|
35869
|
+
"CG",
|
|
35870
|
+
"CD",
|
|
35871
|
+
"CK",
|
|
35872
|
+
"CR",
|
|
35873
|
+
"CI",
|
|
35874
|
+
"HR",
|
|
35875
|
+
"CU",
|
|
35876
|
+
"CW",
|
|
35877
|
+
"CY",
|
|
35878
|
+
"CZ",
|
|
35879
|
+
"DK",
|
|
35880
|
+
"DJ",
|
|
35881
|
+
"DM",
|
|
35882
|
+
"DO",
|
|
35883
|
+
"EC",
|
|
35884
|
+
"EG",
|
|
35885
|
+
"SV",
|
|
35886
|
+
"GQ",
|
|
35887
|
+
"ER",
|
|
35888
|
+
"EE",
|
|
35889
|
+
"SZ",
|
|
35890
|
+
"ET",
|
|
35891
|
+
"FK",
|
|
35892
|
+
"FO",
|
|
35893
|
+
"FJ",
|
|
35894
|
+
"FI",
|
|
35895
|
+
"FR",
|
|
35896
|
+
"GF",
|
|
35897
|
+
"PF",
|
|
35898
|
+
"TF",
|
|
35899
|
+
"GA",
|
|
35900
|
+
"GM",
|
|
35901
|
+
"GE",
|
|
35902
|
+
"DE",
|
|
35903
|
+
"GH",
|
|
35904
|
+
"GI",
|
|
35905
|
+
"GR",
|
|
35906
|
+
"GL",
|
|
35907
|
+
"GD",
|
|
35908
|
+
"GP",
|
|
35909
|
+
"GU",
|
|
35910
|
+
"GT",
|
|
35911
|
+
"GG",
|
|
35912
|
+
"GN",
|
|
35913
|
+
"GW",
|
|
35914
|
+
"GY",
|
|
35915
|
+
"HT",
|
|
35916
|
+
"HM",
|
|
35917
|
+
"VA",
|
|
35918
|
+
"HN",
|
|
35919
|
+
"HK",
|
|
35920
|
+
"HU",
|
|
35921
|
+
"IS",
|
|
35922
|
+
"IN",
|
|
35923
|
+
"ID",
|
|
35924
|
+
"IR",
|
|
35925
|
+
"IQ",
|
|
35926
|
+
"IE",
|
|
35927
|
+
"IM",
|
|
35928
|
+
"IL",
|
|
35929
|
+
"IT",
|
|
35930
|
+
"JM",
|
|
35931
|
+
"JP",
|
|
35932
|
+
"JE",
|
|
35933
|
+
"JO",
|
|
35934
|
+
"KZ",
|
|
35935
|
+
"KE",
|
|
35936
|
+
"KI",
|
|
35937
|
+
"KP",
|
|
35938
|
+
"KR",
|
|
35939
|
+
"KW",
|
|
35940
|
+
"KG",
|
|
35941
|
+
"LA",
|
|
35942
|
+
"LV",
|
|
35943
|
+
"LB",
|
|
35944
|
+
"LS",
|
|
35945
|
+
"LR",
|
|
35946
|
+
"LY",
|
|
35947
|
+
"LI",
|
|
35948
|
+
"LT",
|
|
35949
|
+
"LU",
|
|
35950
|
+
"MO",
|
|
35951
|
+
"MG",
|
|
35952
|
+
"MW",
|
|
35953
|
+
"MY",
|
|
35954
|
+
"MV",
|
|
35955
|
+
"ML",
|
|
35956
|
+
"MT",
|
|
35957
|
+
"MH",
|
|
35958
|
+
"MQ",
|
|
35959
|
+
"MR",
|
|
35960
|
+
"MU",
|
|
35961
|
+
"YT",
|
|
35962
|
+
"MX",
|
|
35963
|
+
"FM",
|
|
35964
|
+
"MD",
|
|
35965
|
+
"MC",
|
|
35966
|
+
"MN",
|
|
35967
|
+
"ME",
|
|
35968
|
+
"MS",
|
|
35969
|
+
"MA",
|
|
35970
|
+
"MZ",
|
|
35971
|
+
"MM",
|
|
35972
|
+
"NA",
|
|
35973
|
+
"NR",
|
|
35974
|
+
"NP",
|
|
35975
|
+
"NL",
|
|
35976
|
+
"NC",
|
|
35977
|
+
"NZ",
|
|
35978
|
+
"NI",
|
|
35979
|
+
"NE",
|
|
35980
|
+
"NG",
|
|
35981
|
+
"NU",
|
|
35982
|
+
"NF",
|
|
35983
|
+
"MK",
|
|
35984
|
+
"MP",
|
|
35985
|
+
"NO",
|
|
35986
|
+
"OM",
|
|
35987
|
+
"PK",
|
|
35988
|
+
"PW",
|
|
35989
|
+
"PS",
|
|
35990
|
+
"PA",
|
|
35991
|
+
"PG",
|
|
35992
|
+
"PY",
|
|
35993
|
+
"PE",
|
|
35994
|
+
"PH",
|
|
35995
|
+
"PN",
|
|
35996
|
+
"PL",
|
|
35997
|
+
"PT",
|
|
35998
|
+
"PR",
|
|
35999
|
+
"QA",
|
|
36000
|
+
"RE",
|
|
36001
|
+
"RO",
|
|
36002
|
+
"RU",
|
|
36003
|
+
"RW",
|
|
36004
|
+
"BL",
|
|
36005
|
+
"SH",
|
|
36006
|
+
"KN",
|
|
36007
|
+
"LC",
|
|
36008
|
+
"MF",
|
|
36009
|
+
"PM",
|
|
36010
|
+
"VC",
|
|
36011
|
+
"WS",
|
|
36012
|
+
"SM",
|
|
36013
|
+
"ST",
|
|
36014
|
+
"SA",
|
|
36015
|
+
"SN",
|
|
36016
|
+
"RS",
|
|
36017
|
+
"SC",
|
|
36018
|
+
"SL",
|
|
36019
|
+
"SG",
|
|
36020
|
+
"SX",
|
|
36021
|
+
"SK",
|
|
36022
|
+
"SI",
|
|
36023
|
+
"SB",
|
|
36024
|
+
"SO",
|
|
36025
|
+
"ZA",
|
|
36026
|
+
"GS",
|
|
36027
|
+
"SS",
|
|
36028
|
+
"ES",
|
|
36029
|
+
"LK",
|
|
36030
|
+
"SD",
|
|
36031
|
+
"SR",
|
|
36032
|
+
"SJ",
|
|
36033
|
+
"SE",
|
|
36034
|
+
"CH",
|
|
36035
|
+
"SY",
|
|
36036
|
+
"TW",
|
|
36037
|
+
"TJ",
|
|
36038
|
+
"TZ",
|
|
36039
|
+
"TH",
|
|
36040
|
+
"TL",
|
|
36041
|
+
"TG",
|
|
36042
|
+
"TK",
|
|
36043
|
+
"TO",
|
|
36044
|
+
"TT",
|
|
36045
|
+
"TN",
|
|
36046
|
+
"TR",
|
|
36047
|
+
"TM",
|
|
36048
|
+
"TC",
|
|
36049
|
+
"TV",
|
|
36050
|
+
"UG",
|
|
36051
|
+
"UA",
|
|
36052
|
+
"AE",
|
|
36053
|
+
"GB",
|
|
36054
|
+
"US",
|
|
36055
|
+
"UM",
|
|
36056
|
+
"UY",
|
|
36057
|
+
"UZ",
|
|
36058
|
+
"VU",
|
|
36059
|
+
"VE",
|
|
36060
|
+
"VN",
|
|
36061
|
+
"VG",
|
|
36062
|
+
"VI",
|
|
36063
|
+
"WF",
|
|
36064
|
+
"EH",
|
|
36065
|
+
"YE",
|
|
36066
|
+
"ZM",
|
|
36067
|
+
"ZW",
|
|
36068
|
+
];
|
|
35746
36069
|
function is(value) {
|
|
35747
|
-
return (
|
|
35748
|
-
value.length == 2 &&
|
|
35749
|
-
(value == "AF" ||
|
|
35750
|
-
value == "AX" ||
|
|
35751
|
-
value == "AL" ||
|
|
35752
|
-
value == "DZ" ||
|
|
35753
|
-
value == "AS" ||
|
|
35754
|
-
value == "AD" ||
|
|
35755
|
-
value == "AO" ||
|
|
35756
|
-
value == "AI" ||
|
|
35757
|
-
value == "AQ" ||
|
|
35758
|
-
value == "AG" ||
|
|
35759
|
-
value == "AR" ||
|
|
35760
|
-
value == "AM" ||
|
|
35761
|
-
value == "AW" ||
|
|
35762
|
-
value == "AU" ||
|
|
35763
|
-
value == "AT" ||
|
|
35764
|
-
value == "AZ" ||
|
|
35765
|
-
value == "BS" ||
|
|
35766
|
-
value == "BH" ||
|
|
35767
|
-
value == "BD" ||
|
|
35768
|
-
value == "BB" ||
|
|
35769
|
-
value == "BY" ||
|
|
35770
|
-
value == "BE" ||
|
|
35771
|
-
value == "BZ" ||
|
|
35772
|
-
value == "BJ" ||
|
|
35773
|
-
value == "BM" ||
|
|
35774
|
-
value == "BT" ||
|
|
35775
|
-
value == "BO" ||
|
|
35776
|
-
value == "BQ" ||
|
|
35777
|
-
value == "BA" ||
|
|
35778
|
-
value == "BW" ||
|
|
35779
|
-
value == "BV" ||
|
|
35780
|
-
value == "BR" ||
|
|
35781
|
-
value == "IO" ||
|
|
35782
|
-
value == "BN" ||
|
|
35783
|
-
value == "BG" ||
|
|
35784
|
-
value == "BF" ||
|
|
35785
|
-
value == "BI" ||
|
|
35786
|
-
value == "CV" ||
|
|
35787
|
-
value == "KH" ||
|
|
35788
|
-
value == "CM" ||
|
|
35789
|
-
value == "CA" ||
|
|
35790
|
-
value == "KY" ||
|
|
35791
|
-
value == "CF" ||
|
|
35792
|
-
value == "TD" ||
|
|
35793
|
-
value == "CL" ||
|
|
35794
|
-
value == "CN" ||
|
|
35795
|
-
value == "CX" ||
|
|
35796
|
-
value == "CC" ||
|
|
35797
|
-
value == "CO" ||
|
|
35798
|
-
value == "KM" ||
|
|
35799
|
-
value == "CG" ||
|
|
35800
|
-
value == "CD" ||
|
|
35801
|
-
value == "CK" ||
|
|
35802
|
-
value == "CR" ||
|
|
35803
|
-
value == "CI" ||
|
|
35804
|
-
value == "HR" ||
|
|
35805
|
-
value == "CU" ||
|
|
35806
|
-
value == "CW" ||
|
|
35807
|
-
value == "CY" ||
|
|
35808
|
-
value == "CZ" ||
|
|
35809
|
-
value == "DK" ||
|
|
35810
|
-
value == "DJ" ||
|
|
35811
|
-
value == "DM" ||
|
|
35812
|
-
value == "DO" ||
|
|
35813
|
-
value == "EC" ||
|
|
35814
|
-
value == "EG" ||
|
|
35815
|
-
value == "SV" ||
|
|
35816
|
-
value == "GQ" ||
|
|
35817
|
-
value == "ER" ||
|
|
35818
|
-
value == "EE" ||
|
|
35819
|
-
value == "SZ" ||
|
|
35820
|
-
value == "ET" ||
|
|
35821
|
-
value == "FK" ||
|
|
35822
|
-
value == "FO" ||
|
|
35823
|
-
value == "FJ" ||
|
|
35824
|
-
value == "FI" ||
|
|
35825
|
-
value == "FR" ||
|
|
35826
|
-
value == "GF" ||
|
|
35827
|
-
value == "PF" ||
|
|
35828
|
-
value == "TF" ||
|
|
35829
|
-
value == "GA" ||
|
|
35830
|
-
value == "GM" ||
|
|
35831
|
-
value == "GE" ||
|
|
35832
|
-
value == "DE" ||
|
|
35833
|
-
value == "GH" ||
|
|
35834
|
-
value == "GI" ||
|
|
35835
|
-
value == "GR" ||
|
|
35836
|
-
value == "GL" ||
|
|
35837
|
-
value == "GD" ||
|
|
35838
|
-
value == "GP" ||
|
|
35839
|
-
value == "GU" ||
|
|
35840
|
-
value == "GT" ||
|
|
35841
|
-
value == "GG" ||
|
|
35842
|
-
value == "GN" ||
|
|
35843
|
-
value == "GW" ||
|
|
35844
|
-
value == "GY" ||
|
|
35845
|
-
value == "HT" ||
|
|
35846
|
-
value == "HM" ||
|
|
35847
|
-
value == "VA" ||
|
|
35848
|
-
value == "HN" ||
|
|
35849
|
-
value == "HK" ||
|
|
35850
|
-
value == "HU" ||
|
|
35851
|
-
value == "IS" ||
|
|
35852
|
-
value == "IN" ||
|
|
35853
|
-
value == "ID" ||
|
|
35854
|
-
value == "IR" ||
|
|
35855
|
-
value == "IQ" ||
|
|
35856
|
-
value == "IE" ||
|
|
35857
|
-
value == "IM" ||
|
|
35858
|
-
value == "IL" ||
|
|
35859
|
-
value == "IT" ||
|
|
35860
|
-
value == "JM" ||
|
|
35861
|
-
value == "JP" ||
|
|
35862
|
-
value == "JE" ||
|
|
35863
|
-
value == "JO" ||
|
|
35864
|
-
value == "KZ" ||
|
|
35865
|
-
value == "KE" ||
|
|
35866
|
-
value == "KI" ||
|
|
35867
|
-
value == "KP" ||
|
|
35868
|
-
value == "KR" ||
|
|
35869
|
-
value == "KW" ||
|
|
35870
|
-
value == "KG" ||
|
|
35871
|
-
value == "LA" ||
|
|
35872
|
-
value == "LV" ||
|
|
35873
|
-
value == "LB" ||
|
|
35874
|
-
value == "LS" ||
|
|
35875
|
-
value == "LR" ||
|
|
35876
|
-
value == "LY" ||
|
|
35877
|
-
value == "LI" ||
|
|
35878
|
-
value == "LT" ||
|
|
35879
|
-
value == "LU" ||
|
|
35880
|
-
value == "MO" ||
|
|
35881
|
-
value == "MG" ||
|
|
35882
|
-
value == "MW" ||
|
|
35883
|
-
value == "MY" ||
|
|
35884
|
-
value == "MV" ||
|
|
35885
|
-
value == "ML" ||
|
|
35886
|
-
value == "MT" ||
|
|
35887
|
-
value == "MH" ||
|
|
35888
|
-
value == "MQ" ||
|
|
35889
|
-
value == "MR" ||
|
|
35890
|
-
value == "MU" ||
|
|
35891
|
-
value == "YT" ||
|
|
35892
|
-
value == "MX" ||
|
|
35893
|
-
value == "FM" ||
|
|
35894
|
-
value == "MD" ||
|
|
35895
|
-
value == "MC" ||
|
|
35896
|
-
value == "MN" ||
|
|
35897
|
-
value == "ME" ||
|
|
35898
|
-
value == "MS" ||
|
|
35899
|
-
value == "MA" ||
|
|
35900
|
-
value == "MZ" ||
|
|
35901
|
-
value == "MM" ||
|
|
35902
|
-
value == "NA" ||
|
|
35903
|
-
value == "NR" ||
|
|
35904
|
-
value == "NP" ||
|
|
35905
|
-
value == "NL" ||
|
|
35906
|
-
value == "NC" ||
|
|
35907
|
-
value == "NZ" ||
|
|
35908
|
-
value == "NI" ||
|
|
35909
|
-
value == "NE" ||
|
|
35910
|
-
value == "NG" ||
|
|
35911
|
-
value == "NU" ||
|
|
35912
|
-
value == "NF" ||
|
|
35913
|
-
value == "MK" ||
|
|
35914
|
-
value == "MP" ||
|
|
35915
|
-
value == "NO" ||
|
|
35916
|
-
value == "OM" ||
|
|
35917
|
-
value == "PK" ||
|
|
35918
|
-
value == "PW" ||
|
|
35919
|
-
value == "PS" ||
|
|
35920
|
-
value == "PA" ||
|
|
35921
|
-
value == "PG" ||
|
|
35922
|
-
value == "PY" ||
|
|
35923
|
-
value == "PE" ||
|
|
35924
|
-
value == "PH" ||
|
|
35925
|
-
value == "PN" ||
|
|
35926
|
-
value == "PL" ||
|
|
35927
|
-
value == "PT" ||
|
|
35928
|
-
value == "PR" ||
|
|
35929
|
-
value == "QA" ||
|
|
35930
|
-
value == "RE" ||
|
|
35931
|
-
value == "RO" ||
|
|
35932
|
-
value == "RU" ||
|
|
35933
|
-
value == "RW" ||
|
|
35934
|
-
value == "BL" ||
|
|
35935
|
-
value == "SH" ||
|
|
35936
|
-
value == "KN" ||
|
|
35937
|
-
value == "LC" ||
|
|
35938
|
-
value == "MF" ||
|
|
35939
|
-
value == "PM" ||
|
|
35940
|
-
value == "VC" ||
|
|
35941
|
-
value == "WS" ||
|
|
35942
|
-
value == "SM" ||
|
|
35943
|
-
value == "ST" ||
|
|
35944
|
-
value == "SA" ||
|
|
35945
|
-
value == "SN" ||
|
|
35946
|
-
value == "RS" ||
|
|
35947
|
-
value == "SC" ||
|
|
35948
|
-
value == "SL" ||
|
|
35949
|
-
value == "SG" ||
|
|
35950
|
-
value == "SX" ||
|
|
35951
|
-
value == "SK" ||
|
|
35952
|
-
value == "SI" ||
|
|
35953
|
-
value == "SB" ||
|
|
35954
|
-
value == "SO" ||
|
|
35955
|
-
value == "ZA" ||
|
|
35956
|
-
value == "GS" ||
|
|
35957
|
-
value == "SS" ||
|
|
35958
|
-
value == "ES" ||
|
|
35959
|
-
value == "LK" ||
|
|
35960
|
-
value == "SD" ||
|
|
35961
|
-
value == "SR" ||
|
|
35962
|
-
value == "SJ" ||
|
|
35963
|
-
value == "SE" ||
|
|
35964
|
-
value == "CH" ||
|
|
35965
|
-
value == "SY" ||
|
|
35966
|
-
value == "TW" ||
|
|
35967
|
-
value == "TJ" ||
|
|
35968
|
-
value == "TZ" ||
|
|
35969
|
-
value == "TH" ||
|
|
35970
|
-
value == "TL" ||
|
|
35971
|
-
value == "TG" ||
|
|
35972
|
-
value == "TK" ||
|
|
35973
|
-
value == "TO" ||
|
|
35974
|
-
value == "TT" ||
|
|
35975
|
-
value == "TN" ||
|
|
35976
|
-
value == "TR" ||
|
|
35977
|
-
value == "TM" ||
|
|
35978
|
-
value == "TC" ||
|
|
35979
|
-
value == "TV" ||
|
|
35980
|
-
value == "UG" ||
|
|
35981
|
-
value == "UA" ||
|
|
35982
|
-
value == "AE" ||
|
|
35983
|
-
value == "GB" ||
|
|
35984
|
-
value == "US" ||
|
|
35985
|
-
value == "UM" ||
|
|
35986
|
-
value == "UY" ||
|
|
35987
|
-
value == "UZ" ||
|
|
35988
|
-
value == "VU" ||
|
|
35989
|
-
value == "VE" ||
|
|
35990
|
-
value == "VN" ||
|
|
35991
|
-
value == "VG" ||
|
|
35992
|
-
value == "VI" ||
|
|
35993
|
-
value == "WF" ||
|
|
35994
|
-
value == "EH" ||
|
|
35995
|
-
value == "YE" ||
|
|
35996
|
-
value == "ZM" ||
|
|
35997
|
-
value == "ZW"));
|
|
36070
|
+
return Alpha2.types.includes(value);
|
|
35998
36071
|
}
|
|
35999
36072
|
Alpha2.is = is;
|
|
36000
36073
|
function from(country) {
|
|
36001
36074
|
return typeof country == "number" ? numericToAlpha2[country.toString()] : alpha3ToAlpha2[country];
|
|
36002
36075
|
}
|
|
36003
36076
|
Alpha2.from = from;
|
|
36077
|
+
function isEEA(country) {
|
|
36078
|
+
return [
|
|
36079
|
+
"AL",
|
|
36080
|
+
"AT",
|
|
36081
|
+
"BA",
|
|
36082
|
+
"BE",
|
|
36083
|
+
"BG",
|
|
36084
|
+
"CH",
|
|
36085
|
+
"CY",
|
|
36086
|
+
"DE",
|
|
36087
|
+
"DK",
|
|
36088
|
+
"EE",
|
|
36089
|
+
"ES",
|
|
36090
|
+
"FI",
|
|
36091
|
+
"FR",
|
|
36092
|
+
"GB",
|
|
36093
|
+
"GR",
|
|
36094
|
+
"HR",
|
|
36095
|
+
"HU",
|
|
36096
|
+
"IE",
|
|
36097
|
+
"IS",
|
|
36098
|
+
"IT",
|
|
36099
|
+
"LT",
|
|
36100
|
+
"LV",
|
|
36101
|
+
"MK",
|
|
36102
|
+
"MT",
|
|
36103
|
+
"NL",
|
|
36104
|
+
"NO",
|
|
36105
|
+
"PL",
|
|
36106
|
+
"PT",
|
|
36107
|
+
"RO",
|
|
36108
|
+
"RS",
|
|
36109
|
+
"SE",
|
|
36110
|
+
"SI",
|
|
36111
|
+
].includes(country);
|
|
36112
|
+
}
|
|
36113
|
+
Alpha2.isEEA = isEEA;
|
|
36004
36114
|
})(Alpha2 = exports.Alpha2 || (exports.Alpha2 = {}));
|
|
36005
36115
|
const numericToAlpha2 = {
|
|
36006
36116
|
"4": "AF",
|
|
@@ -50378,187 +50488,189 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
50378
50488
|
exports.Currency = void 0;
|
|
50379
50489
|
var Currency;
|
|
50380
50490
|
(function (Currency) {
|
|
50491
|
+
Currency.types = [
|
|
50492
|
+
"AED",
|
|
50493
|
+
"AFN",
|
|
50494
|
+
"ALL",
|
|
50495
|
+
"AMD",
|
|
50496
|
+
"ANG",
|
|
50497
|
+
"AOA",
|
|
50498
|
+
"ARS",
|
|
50499
|
+
"AUD",
|
|
50500
|
+
"AWG",
|
|
50501
|
+
"AZN",
|
|
50502
|
+
"BAM",
|
|
50503
|
+
"BBD",
|
|
50504
|
+
"BDT",
|
|
50505
|
+
"BGN",
|
|
50506
|
+
"BHD",
|
|
50507
|
+
"BIF",
|
|
50508
|
+
"BMD",
|
|
50509
|
+
"BND",
|
|
50510
|
+
"BOB",
|
|
50511
|
+
"BOV",
|
|
50512
|
+
"BRL",
|
|
50513
|
+
"BSD",
|
|
50514
|
+
"BTN",
|
|
50515
|
+
"BWP",
|
|
50516
|
+
"BYN",
|
|
50517
|
+
"BZD",
|
|
50518
|
+
"CAD",
|
|
50519
|
+
"CDF",
|
|
50520
|
+
"CHE",
|
|
50521
|
+
"CHF",
|
|
50522
|
+
"CHW",
|
|
50523
|
+
"CLF",
|
|
50524
|
+
"CLP",
|
|
50525
|
+
"CNY",
|
|
50526
|
+
"COP",
|
|
50527
|
+
"COU",
|
|
50528
|
+
"CRC",
|
|
50529
|
+
"CUC",
|
|
50530
|
+
"CUP",
|
|
50531
|
+
"CVE",
|
|
50532
|
+
"CZK",
|
|
50533
|
+
"DJF",
|
|
50534
|
+
"DKK",
|
|
50535
|
+
"DOP",
|
|
50536
|
+
"DZD",
|
|
50537
|
+
"EGP",
|
|
50538
|
+
"ERN",
|
|
50539
|
+
"ETB",
|
|
50540
|
+
"EUR",
|
|
50541
|
+
"FJD",
|
|
50542
|
+
"FKP",
|
|
50543
|
+
"GBP",
|
|
50544
|
+
"GEL",
|
|
50545
|
+
"GHS",
|
|
50546
|
+
"GIP",
|
|
50547
|
+
"GMD",
|
|
50548
|
+
"GNF",
|
|
50549
|
+
"GTQ",
|
|
50550
|
+
"GYD",
|
|
50551
|
+
"HKD",
|
|
50552
|
+
"HNL",
|
|
50553
|
+
"HRK",
|
|
50554
|
+
"HTG",
|
|
50555
|
+
"HUF",
|
|
50556
|
+
"IDR",
|
|
50557
|
+
"ILS",
|
|
50558
|
+
"INR",
|
|
50559
|
+
"IQD",
|
|
50560
|
+
"IRR",
|
|
50561
|
+
"ISK",
|
|
50562
|
+
"JMD",
|
|
50563
|
+
"JOD",
|
|
50564
|
+
"JPY",
|
|
50565
|
+
"KES",
|
|
50566
|
+
"KGS",
|
|
50567
|
+
"KHR",
|
|
50568
|
+
"KMF",
|
|
50569
|
+
"KPW",
|
|
50570
|
+
"KRW",
|
|
50571
|
+
"KWD",
|
|
50572
|
+
"KYD",
|
|
50573
|
+
"KZT",
|
|
50574
|
+
"LAK",
|
|
50575
|
+
"LBP",
|
|
50576
|
+
"LKR",
|
|
50577
|
+
"LRD",
|
|
50578
|
+
"LSL",
|
|
50579
|
+
"LYD",
|
|
50580
|
+
"MAD",
|
|
50581
|
+
"MDL",
|
|
50582
|
+
"MGA",
|
|
50583
|
+
"MKD",
|
|
50584
|
+
"MMK",
|
|
50585
|
+
"MNT",
|
|
50586
|
+
"MOP",
|
|
50587
|
+
"MRU",
|
|
50588
|
+
"MUR",
|
|
50589
|
+
"MVR",
|
|
50590
|
+
"MWK",
|
|
50591
|
+
"MXN",
|
|
50592
|
+
"MXV",
|
|
50593
|
+
"MYR",
|
|
50594
|
+
"MZN",
|
|
50595
|
+
"NAD",
|
|
50596
|
+
"NGN",
|
|
50597
|
+
"NIO",
|
|
50598
|
+
"NOK",
|
|
50599
|
+
"NPR",
|
|
50600
|
+
"NZD",
|
|
50601
|
+
"OMR",
|
|
50602
|
+
"PAB",
|
|
50603
|
+
"PEN",
|
|
50604
|
+
"PGK",
|
|
50605
|
+
"PHP",
|
|
50606
|
+
"PKR",
|
|
50607
|
+
"PLN",
|
|
50608
|
+
"PYG",
|
|
50609
|
+
"QAR",
|
|
50610
|
+
"RON",
|
|
50611
|
+
"RSD",
|
|
50612
|
+
"RUB",
|
|
50613
|
+
"RWF",
|
|
50614
|
+
"SAR",
|
|
50615
|
+
"SBD",
|
|
50616
|
+
"SCR",
|
|
50617
|
+
"SDG",
|
|
50618
|
+
"SEK",
|
|
50619
|
+
"SGD",
|
|
50620
|
+
"SHP",
|
|
50621
|
+
"SLL",
|
|
50622
|
+
"SOS",
|
|
50623
|
+
"SRD",
|
|
50624
|
+
"SSP",
|
|
50625
|
+
"STN",
|
|
50626
|
+
"SVC",
|
|
50627
|
+
"SYP",
|
|
50628
|
+
"SZL",
|
|
50629
|
+
"THB",
|
|
50630
|
+
"TJS",
|
|
50631
|
+
"TMT",
|
|
50632
|
+
"TND",
|
|
50633
|
+
"TOP",
|
|
50634
|
+
"TRY",
|
|
50635
|
+
"TTD",
|
|
50636
|
+
"TWD",
|
|
50637
|
+
"TZS",
|
|
50638
|
+
"UAH",
|
|
50639
|
+
"UGX",
|
|
50640
|
+
"USD",
|
|
50641
|
+
"USN",
|
|
50642
|
+
"UYI",
|
|
50643
|
+
"UYU",
|
|
50644
|
+
"UYW",
|
|
50645
|
+
"UZS",
|
|
50646
|
+
"VES",
|
|
50647
|
+
"VND",
|
|
50648
|
+
"VUV",
|
|
50649
|
+
"WST",
|
|
50650
|
+
"XAF",
|
|
50651
|
+
"XAG",
|
|
50652
|
+
"XAU",
|
|
50653
|
+
"XBA",
|
|
50654
|
+
"XBB",
|
|
50655
|
+
"XBC",
|
|
50656
|
+
"XBD",
|
|
50657
|
+
"XCD",
|
|
50658
|
+
"XDR",
|
|
50659
|
+
"XOF",
|
|
50660
|
+
"XPD",
|
|
50661
|
+
"XPF",
|
|
50662
|
+
"XPT",
|
|
50663
|
+
"XSU",
|
|
50664
|
+
"XTS",
|
|
50665
|
+
"XUA",
|
|
50666
|
+
"XXX",
|
|
50667
|
+
"YER",
|
|
50668
|
+
"ZAR",
|
|
50669
|
+
"ZMW",
|
|
50670
|
+
"ZWL",
|
|
50671
|
+
];
|
|
50381
50672
|
function is(currency) {
|
|
50382
|
-
return (
|
|
50383
|
-
(currency == "AED" ||
|
|
50384
|
-
currency == "AFN" ||
|
|
50385
|
-
currency == "ALL" ||
|
|
50386
|
-
currency == "AMD" ||
|
|
50387
|
-
currency == "ANG" ||
|
|
50388
|
-
currency == "AOA" ||
|
|
50389
|
-
currency == "ARS" ||
|
|
50390
|
-
currency == "AUD" ||
|
|
50391
|
-
currency == "AWG" ||
|
|
50392
|
-
currency == "AZN" ||
|
|
50393
|
-
currency == "BAM" ||
|
|
50394
|
-
currency == "BBD" ||
|
|
50395
|
-
currency == "BDT" ||
|
|
50396
|
-
currency == "BGN" ||
|
|
50397
|
-
currency == "BHD" ||
|
|
50398
|
-
currency == "BIF" ||
|
|
50399
|
-
currency == "BMD" ||
|
|
50400
|
-
currency == "BND" ||
|
|
50401
|
-
currency == "BOB" ||
|
|
50402
|
-
currency == "BOV" ||
|
|
50403
|
-
currency == "BRL" ||
|
|
50404
|
-
currency == "BSD" ||
|
|
50405
|
-
currency == "BTN" ||
|
|
50406
|
-
currency == "BWP" ||
|
|
50407
|
-
currency == "BYN" ||
|
|
50408
|
-
currency == "BZD" ||
|
|
50409
|
-
currency == "CAD" ||
|
|
50410
|
-
currency == "CDF" ||
|
|
50411
|
-
currency == "CHE" ||
|
|
50412
|
-
currency == "CHF" ||
|
|
50413
|
-
currency == "CHW" ||
|
|
50414
|
-
currency == "CLF" ||
|
|
50415
|
-
currency == "CLP" ||
|
|
50416
|
-
currency == "CNY" ||
|
|
50417
|
-
currency == "COP" ||
|
|
50418
|
-
currency == "COU" ||
|
|
50419
|
-
currency == "CRC" ||
|
|
50420
|
-
currency == "CUC" ||
|
|
50421
|
-
currency == "CUP" ||
|
|
50422
|
-
currency == "CVE" ||
|
|
50423
|
-
currency == "CZK" ||
|
|
50424
|
-
currency == "DJF" ||
|
|
50425
|
-
currency == "DKK" ||
|
|
50426
|
-
currency == "DOP" ||
|
|
50427
|
-
currency == "DZD" ||
|
|
50428
|
-
currency == "EGP" ||
|
|
50429
|
-
currency == "ERN" ||
|
|
50430
|
-
currency == "ETB" ||
|
|
50431
|
-
currency == "EUR" ||
|
|
50432
|
-
currency == "FJD" ||
|
|
50433
|
-
currency == "FKP" ||
|
|
50434
|
-
currency == "GBP" ||
|
|
50435
|
-
currency == "GEL" ||
|
|
50436
|
-
currency == "GHS" ||
|
|
50437
|
-
currency == "GIP" ||
|
|
50438
|
-
currency == "GMD" ||
|
|
50439
|
-
currency == "GNF" ||
|
|
50440
|
-
currency == "GTQ" ||
|
|
50441
|
-
currency == "GYD" ||
|
|
50442
|
-
currency == "HKD" ||
|
|
50443
|
-
currency == "HNL" ||
|
|
50444
|
-
currency == "HRK" ||
|
|
50445
|
-
currency == "HTG" ||
|
|
50446
|
-
currency == "HUF" ||
|
|
50447
|
-
currency == "IDR" ||
|
|
50448
|
-
currency == "ILS" ||
|
|
50449
|
-
currency == "INR" ||
|
|
50450
|
-
currency == "IQD" ||
|
|
50451
|
-
currency == "IRR" ||
|
|
50452
|
-
currency == "ISK" ||
|
|
50453
|
-
currency == "JMD" ||
|
|
50454
|
-
currency == "JOD" ||
|
|
50455
|
-
currency == "JPY" ||
|
|
50456
|
-
currency == "KES" ||
|
|
50457
|
-
currency == "KGS" ||
|
|
50458
|
-
currency == "KHR" ||
|
|
50459
|
-
currency == "KMF" ||
|
|
50460
|
-
currency == "KPW" ||
|
|
50461
|
-
currency == "KRW" ||
|
|
50462
|
-
currency == "KWD" ||
|
|
50463
|
-
currency == "KYD" ||
|
|
50464
|
-
currency == "KZT" ||
|
|
50465
|
-
currency == "LAK" ||
|
|
50466
|
-
currency == "LBP" ||
|
|
50467
|
-
currency == "LKR" ||
|
|
50468
|
-
currency == "LRD" ||
|
|
50469
|
-
currency == "LSL" ||
|
|
50470
|
-
currency == "LYD" ||
|
|
50471
|
-
currency == "MAD" ||
|
|
50472
|
-
currency == "MDL" ||
|
|
50473
|
-
currency == "MGA" ||
|
|
50474
|
-
currency == "MKD" ||
|
|
50475
|
-
currency == "MMK" ||
|
|
50476
|
-
currency == "MNT" ||
|
|
50477
|
-
currency == "MOP" ||
|
|
50478
|
-
currency == "MRU" ||
|
|
50479
|
-
currency == "MUR" ||
|
|
50480
|
-
currency == "MVR" ||
|
|
50481
|
-
currency == "MWK" ||
|
|
50482
|
-
currency == "MXN" ||
|
|
50483
|
-
currency == "MXV" ||
|
|
50484
|
-
currency == "MYR" ||
|
|
50485
|
-
currency == "MZN" ||
|
|
50486
|
-
currency == "NAD" ||
|
|
50487
|
-
currency == "NGN" ||
|
|
50488
|
-
currency == "NIO" ||
|
|
50489
|
-
currency == "NOK" ||
|
|
50490
|
-
currency == "NPR" ||
|
|
50491
|
-
currency == "NZD" ||
|
|
50492
|
-
currency == "OMR" ||
|
|
50493
|
-
currency == "PAB" ||
|
|
50494
|
-
currency == "PEN" ||
|
|
50495
|
-
currency == "PGK" ||
|
|
50496
|
-
currency == "PHP" ||
|
|
50497
|
-
currency == "PKR" ||
|
|
50498
|
-
currency == "PLN" ||
|
|
50499
|
-
currency == "PYG" ||
|
|
50500
|
-
currency == "QAR" ||
|
|
50501
|
-
currency == "RON" ||
|
|
50502
|
-
currency == "RSD" ||
|
|
50503
|
-
currency == "RUB" ||
|
|
50504
|
-
currency == "RWF" ||
|
|
50505
|
-
currency == "SAR" ||
|
|
50506
|
-
currency == "SBD" ||
|
|
50507
|
-
currency == "SCR" ||
|
|
50508
|
-
currency == "SDG" ||
|
|
50509
|
-
currency == "SEK" ||
|
|
50510
|
-
currency == "SGD" ||
|
|
50511
|
-
currency == "SHP" ||
|
|
50512
|
-
currency == "SLL" ||
|
|
50513
|
-
currency == "SOS" ||
|
|
50514
|
-
currency == "SRD" ||
|
|
50515
|
-
currency == "SSP" ||
|
|
50516
|
-
currency == "STN" ||
|
|
50517
|
-
currency == "SVC" ||
|
|
50518
|
-
currency == "SYP" ||
|
|
50519
|
-
currency == "SZL" ||
|
|
50520
|
-
currency == "THB" ||
|
|
50521
|
-
currency == "TJS" ||
|
|
50522
|
-
currency == "TMT" ||
|
|
50523
|
-
currency == "TND" ||
|
|
50524
|
-
currency == "TOP" ||
|
|
50525
|
-
currency == "TRY" ||
|
|
50526
|
-
currency == "TTD" ||
|
|
50527
|
-
currency == "TWD" ||
|
|
50528
|
-
currency == "TZS" ||
|
|
50529
|
-
currency == "UAH" ||
|
|
50530
|
-
currency == "UGX" ||
|
|
50531
|
-
currency == "USD" ||
|
|
50532
|
-
currency == "USN" ||
|
|
50533
|
-
currency == "UYI" ||
|
|
50534
|
-
currency == "UYU" ||
|
|
50535
|
-
currency == "UYW" ||
|
|
50536
|
-
currency == "UZS" ||
|
|
50537
|
-
currency == "VES" ||
|
|
50538
|
-
currency == "VND" ||
|
|
50539
|
-
currency == "VUV" ||
|
|
50540
|
-
currency == "WST" ||
|
|
50541
|
-
currency == "XAF" ||
|
|
50542
|
-
currency == "XAG" ||
|
|
50543
|
-
currency == "XAU" ||
|
|
50544
|
-
currency == "XBA" ||
|
|
50545
|
-
currency == "XBB" ||
|
|
50546
|
-
currency == "XBC" ||
|
|
50547
|
-
currency == "XBD" ||
|
|
50548
|
-
currency == "XCD" ||
|
|
50549
|
-
currency == "XDR" ||
|
|
50550
|
-
currency == "XOF" ||
|
|
50551
|
-
currency == "XPD" ||
|
|
50552
|
-
currency == "XPF" ||
|
|
50553
|
-
currency == "XPT" ||
|
|
50554
|
-
currency == "XSU" ||
|
|
50555
|
-
currency == "XTS" ||
|
|
50556
|
-
currency == "XUA" ||
|
|
50557
|
-
currency == "XXX" ||
|
|
50558
|
-
currency == "YER" ||
|
|
50559
|
-
currency == "ZAR" ||
|
|
50560
|
-
currency == "ZMW" ||
|
|
50561
|
-
currency == "ZWL"));
|
|
50673
|
+
return Currency.types.includes(currency);
|
|
50562
50674
|
}
|
|
50563
50675
|
Currency.is = is;
|
|
50564
50676
|
function from(currencyCode) {
|
|
@@ -50745,6 +50857,12 @@ var Currency;
|
|
|
50745
50857
|
}[currencyCode];
|
|
50746
50858
|
}
|
|
50747
50859
|
Currency.from = from;
|
|
50860
|
+
function round(value, currency) {
|
|
50861
|
+
var _a;
|
|
50862
|
+
const factor = Math.pow(10, (_a = decimalDigits(currency)) !== null && _a !== void 0 ? _a : 2);
|
|
50863
|
+
return Math.round((value + Number.EPSILON) * factor) / factor;
|
|
50864
|
+
}
|
|
50865
|
+
Currency.round = round;
|
|
50748
50866
|
function decimalDigits(currency) {
|
|
50749
50867
|
return {
|
|
50750
50868
|
AED: 2,
|
|
@@ -50941,187 +51059,189 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
50941
51059
|
exports.CurrencyCode = void 0;
|
|
50942
51060
|
var CurrencyCode;
|
|
50943
51061
|
(function (CurrencyCode) {
|
|
51062
|
+
CurrencyCode.types = [
|
|
51063
|
+
"008",
|
|
51064
|
+
"012",
|
|
51065
|
+
"032",
|
|
51066
|
+
"036",
|
|
51067
|
+
"044",
|
|
51068
|
+
"048",
|
|
51069
|
+
"050",
|
|
51070
|
+
"051",
|
|
51071
|
+
"052",
|
|
51072
|
+
"060",
|
|
51073
|
+
"064",
|
|
51074
|
+
"068",
|
|
51075
|
+
"072",
|
|
51076
|
+
"084",
|
|
51077
|
+
"090",
|
|
51078
|
+
"096",
|
|
51079
|
+
"104",
|
|
51080
|
+
"108",
|
|
51081
|
+
"116",
|
|
51082
|
+
"124",
|
|
51083
|
+
"132",
|
|
51084
|
+
"136",
|
|
51085
|
+
"144",
|
|
51086
|
+
"152",
|
|
51087
|
+
"156",
|
|
51088
|
+
"170",
|
|
51089
|
+
"174",
|
|
51090
|
+
"188",
|
|
51091
|
+
"191",
|
|
51092
|
+
"192",
|
|
51093
|
+
"203",
|
|
51094
|
+
"208",
|
|
51095
|
+
"214",
|
|
51096
|
+
"222",
|
|
51097
|
+
"230",
|
|
51098
|
+
"232",
|
|
51099
|
+
"238",
|
|
51100
|
+
"242",
|
|
51101
|
+
"262",
|
|
51102
|
+
"270",
|
|
51103
|
+
"292",
|
|
51104
|
+
"320",
|
|
51105
|
+
"324",
|
|
51106
|
+
"328",
|
|
51107
|
+
"332",
|
|
51108
|
+
"340",
|
|
51109
|
+
"344",
|
|
51110
|
+
"348",
|
|
51111
|
+
"352",
|
|
51112
|
+
"356",
|
|
51113
|
+
"360",
|
|
51114
|
+
"364",
|
|
51115
|
+
"368",
|
|
51116
|
+
"376",
|
|
51117
|
+
"388",
|
|
51118
|
+
"392",
|
|
51119
|
+
"398",
|
|
51120
|
+
"400",
|
|
51121
|
+
"404",
|
|
51122
|
+
"408",
|
|
51123
|
+
"410",
|
|
51124
|
+
"414",
|
|
51125
|
+
"417",
|
|
51126
|
+
"418",
|
|
51127
|
+
"422",
|
|
51128
|
+
"426",
|
|
51129
|
+
"430",
|
|
51130
|
+
"434",
|
|
51131
|
+
"446",
|
|
51132
|
+
"454",
|
|
51133
|
+
"458",
|
|
51134
|
+
"462",
|
|
51135
|
+
"480",
|
|
51136
|
+
"484",
|
|
51137
|
+
"496",
|
|
51138
|
+
"498",
|
|
51139
|
+
"504",
|
|
51140
|
+
"512",
|
|
51141
|
+
"516",
|
|
51142
|
+
"524",
|
|
51143
|
+
"532",
|
|
51144
|
+
"533",
|
|
51145
|
+
"548",
|
|
51146
|
+
"554",
|
|
51147
|
+
"558",
|
|
51148
|
+
"566",
|
|
51149
|
+
"578",
|
|
51150
|
+
"586",
|
|
51151
|
+
"590",
|
|
51152
|
+
"598",
|
|
51153
|
+
"600",
|
|
51154
|
+
"604",
|
|
51155
|
+
"608",
|
|
51156
|
+
"634",
|
|
51157
|
+
"643",
|
|
51158
|
+
"646",
|
|
51159
|
+
"654",
|
|
51160
|
+
"682",
|
|
51161
|
+
"690",
|
|
51162
|
+
"694",
|
|
51163
|
+
"702",
|
|
51164
|
+
"704",
|
|
51165
|
+
"706",
|
|
51166
|
+
"710",
|
|
51167
|
+
"728",
|
|
51168
|
+
"748",
|
|
51169
|
+
"752",
|
|
51170
|
+
"756",
|
|
51171
|
+
"760",
|
|
51172
|
+
"764",
|
|
51173
|
+
"776",
|
|
51174
|
+
"780",
|
|
51175
|
+
"784",
|
|
51176
|
+
"788",
|
|
51177
|
+
"800",
|
|
51178
|
+
"807",
|
|
51179
|
+
"818",
|
|
51180
|
+
"826",
|
|
51181
|
+
"834",
|
|
51182
|
+
"840",
|
|
51183
|
+
"858",
|
|
51184
|
+
"860",
|
|
51185
|
+
"882",
|
|
51186
|
+
"886",
|
|
51187
|
+
"901",
|
|
51188
|
+
"927",
|
|
51189
|
+
"928",
|
|
51190
|
+
"929",
|
|
51191
|
+
"930",
|
|
51192
|
+
"931",
|
|
51193
|
+
"932",
|
|
51194
|
+
"933",
|
|
51195
|
+
"934",
|
|
51196
|
+
"936",
|
|
51197
|
+
"938",
|
|
51198
|
+
"940",
|
|
51199
|
+
"941",
|
|
51200
|
+
"943",
|
|
51201
|
+
"944",
|
|
51202
|
+
"946",
|
|
51203
|
+
"947",
|
|
51204
|
+
"948",
|
|
51205
|
+
"949",
|
|
51206
|
+
"950",
|
|
51207
|
+
"951",
|
|
51208
|
+
"952",
|
|
51209
|
+
"953",
|
|
51210
|
+
"955",
|
|
51211
|
+
"956",
|
|
51212
|
+
"957",
|
|
51213
|
+
"958",
|
|
51214
|
+
"959",
|
|
51215
|
+
"960",
|
|
51216
|
+
"961",
|
|
51217
|
+
"962",
|
|
51218
|
+
"963",
|
|
51219
|
+
"964",
|
|
51220
|
+
"965",
|
|
51221
|
+
"967",
|
|
51222
|
+
"968",
|
|
51223
|
+
"969",
|
|
51224
|
+
"970",
|
|
51225
|
+
"971",
|
|
51226
|
+
"972",
|
|
51227
|
+
"973",
|
|
51228
|
+
"975",
|
|
51229
|
+
"976",
|
|
51230
|
+
"977",
|
|
51231
|
+
"978",
|
|
51232
|
+
"979",
|
|
51233
|
+
"980",
|
|
51234
|
+
"981",
|
|
51235
|
+
"984",
|
|
51236
|
+
"985",
|
|
51237
|
+
"986",
|
|
51238
|
+
"990",
|
|
51239
|
+
"994",
|
|
51240
|
+
"997",
|
|
51241
|
+
"999",
|
|
51242
|
+
];
|
|
50944
51243
|
function is(value) {
|
|
50945
|
-
return (
|
|
50946
|
-
(value == "008" ||
|
|
50947
|
-
value == "012" ||
|
|
50948
|
-
value == "032" ||
|
|
50949
|
-
value == "036" ||
|
|
50950
|
-
value == "044" ||
|
|
50951
|
-
value == "048" ||
|
|
50952
|
-
value == "050" ||
|
|
50953
|
-
value == "051" ||
|
|
50954
|
-
value == "052" ||
|
|
50955
|
-
value == "060" ||
|
|
50956
|
-
value == "064" ||
|
|
50957
|
-
value == "068" ||
|
|
50958
|
-
value == "072" ||
|
|
50959
|
-
value == "084" ||
|
|
50960
|
-
value == "090" ||
|
|
50961
|
-
value == "096" ||
|
|
50962
|
-
value == "104" ||
|
|
50963
|
-
value == "108" ||
|
|
50964
|
-
value == "116" ||
|
|
50965
|
-
value == "124" ||
|
|
50966
|
-
value == "132" ||
|
|
50967
|
-
value == "136" ||
|
|
50968
|
-
value == "144" ||
|
|
50969
|
-
value == "152" ||
|
|
50970
|
-
value == "156" ||
|
|
50971
|
-
value == "170" ||
|
|
50972
|
-
value == "174" ||
|
|
50973
|
-
value == "188" ||
|
|
50974
|
-
value == "191" ||
|
|
50975
|
-
value == "192" ||
|
|
50976
|
-
value == "203" ||
|
|
50977
|
-
value == "208" ||
|
|
50978
|
-
value == "214" ||
|
|
50979
|
-
value == "222" ||
|
|
50980
|
-
value == "230" ||
|
|
50981
|
-
value == "232" ||
|
|
50982
|
-
value == "238" ||
|
|
50983
|
-
value == "242" ||
|
|
50984
|
-
value == "262" ||
|
|
50985
|
-
value == "270" ||
|
|
50986
|
-
value == "292" ||
|
|
50987
|
-
value == "320" ||
|
|
50988
|
-
value == "324" ||
|
|
50989
|
-
value == "328" ||
|
|
50990
|
-
value == "332" ||
|
|
50991
|
-
value == "340" ||
|
|
50992
|
-
value == "344" ||
|
|
50993
|
-
value == "348" ||
|
|
50994
|
-
value == "352" ||
|
|
50995
|
-
value == "356" ||
|
|
50996
|
-
value == "360" ||
|
|
50997
|
-
value == "364" ||
|
|
50998
|
-
value == "368" ||
|
|
50999
|
-
value == "376" ||
|
|
51000
|
-
value == "388" ||
|
|
51001
|
-
value == "392" ||
|
|
51002
|
-
value == "398" ||
|
|
51003
|
-
value == "400" ||
|
|
51004
|
-
value == "404" ||
|
|
51005
|
-
value == "408" ||
|
|
51006
|
-
value == "410" ||
|
|
51007
|
-
value == "414" ||
|
|
51008
|
-
value == "417" ||
|
|
51009
|
-
value == "418" ||
|
|
51010
|
-
value == "422" ||
|
|
51011
|
-
value == "426" ||
|
|
51012
|
-
value == "430" ||
|
|
51013
|
-
value == "434" ||
|
|
51014
|
-
value == "446" ||
|
|
51015
|
-
value == "454" ||
|
|
51016
|
-
value == "458" ||
|
|
51017
|
-
value == "462" ||
|
|
51018
|
-
value == "480" ||
|
|
51019
|
-
value == "484" ||
|
|
51020
|
-
value == "496" ||
|
|
51021
|
-
value == "498" ||
|
|
51022
|
-
value == "504" ||
|
|
51023
|
-
value == "512" ||
|
|
51024
|
-
value == "516" ||
|
|
51025
|
-
value == "524" ||
|
|
51026
|
-
value == "532" ||
|
|
51027
|
-
value == "533" ||
|
|
51028
|
-
value == "548" ||
|
|
51029
|
-
value == "554" ||
|
|
51030
|
-
value == "558" ||
|
|
51031
|
-
value == "566" ||
|
|
51032
|
-
value == "578" ||
|
|
51033
|
-
value == "586" ||
|
|
51034
|
-
value == "590" ||
|
|
51035
|
-
value == "598" ||
|
|
51036
|
-
value == "600" ||
|
|
51037
|
-
value == "604" ||
|
|
51038
|
-
value == "608" ||
|
|
51039
|
-
value == "634" ||
|
|
51040
|
-
value == "643" ||
|
|
51041
|
-
value == "646" ||
|
|
51042
|
-
value == "654" ||
|
|
51043
|
-
value == "682" ||
|
|
51044
|
-
value == "690" ||
|
|
51045
|
-
value == "694" ||
|
|
51046
|
-
value == "702" ||
|
|
51047
|
-
value == "704" ||
|
|
51048
|
-
value == "706" ||
|
|
51049
|
-
value == "710" ||
|
|
51050
|
-
value == "728" ||
|
|
51051
|
-
value == "748" ||
|
|
51052
|
-
value == "752" ||
|
|
51053
|
-
value == "756" ||
|
|
51054
|
-
value == "760" ||
|
|
51055
|
-
value == "764" ||
|
|
51056
|
-
value == "776" ||
|
|
51057
|
-
value == "780" ||
|
|
51058
|
-
value == "784" ||
|
|
51059
|
-
value == "788" ||
|
|
51060
|
-
value == "800" ||
|
|
51061
|
-
value == "807" ||
|
|
51062
|
-
value == "818" ||
|
|
51063
|
-
value == "826" ||
|
|
51064
|
-
value == "834" ||
|
|
51065
|
-
value == "840" ||
|
|
51066
|
-
value == "858" ||
|
|
51067
|
-
value == "860" ||
|
|
51068
|
-
value == "882" ||
|
|
51069
|
-
value == "886" ||
|
|
51070
|
-
value == "901" ||
|
|
51071
|
-
value == "927" ||
|
|
51072
|
-
value == "928" ||
|
|
51073
|
-
value == "929" ||
|
|
51074
|
-
value == "930" ||
|
|
51075
|
-
value == "931" ||
|
|
51076
|
-
value == "932" ||
|
|
51077
|
-
value == "933" ||
|
|
51078
|
-
value == "934" ||
|
|
51079
|
-
value == "936" ||
|
|
51080
|
-
value == "938" ||
|
|
51081
|
-
value == "940" ||
|
|
51082
|
-
value == "941" ||
|
|
51083
|
-
value == "943" ||
|
|
51084
|
-
value == "944" ||
|
|
51085
|
-
value == "946" ||
|
|
51086
|
-
value == "947" ||
|
|
51087
|
-
value == "948" ||
|
|
51088
|
-
value == "949" ||
|
|
51089
|
-
value == "950" ||
|
|
51090
|
-
value == "951" ||
|
|
51091
|
-
value == "952" ||
|
|
51092
|
-
value == "953" ||
|
|
51093
|
-
value == "955" ||
|
|
51094
|
-
value == "956" ||
|
|
51095
|
-
value == "957" ||
|
|
51096
|
-
value == "958" ||
|
|
51097
|
-
value == "959" ||
|
|
51098
|
-
value == "960" ||
|
|
51099
|
-
value == "961" ||
|
|
51100
|
-
value == "962" ||
|
|
51101
|
-
value == "963" ||
|
|
51102
|
-
value == "964" ||
|
|
51103
|
-
value == "965" ||
|
|
51104
|
-
value == "967" ||
|
|
51105
|
-
value == "968" ||
|
|
51106
|
-
value == "969" ||
|
|
51107
|
-
value == "970" ||
|
|
51108
|
-
value == "971" ||
|
|
51109
|
-
value == "972" ||
|
|
51110
|
-
value == "973" ||
|
|
51111
|
-
value == "975" ||
|
|
51112
|
-
value == "976" ||
|
|
51113
|
-
value == "977" ||
|
|
51114
|
-
value == "978" ||
|
|
51115
|
-
value == "979" ||
|
|
51116
|
-
value == "980" ||
|
|
51117
|
-
value == "981" ||
|
|
51118
|
-
value == "984" ||
|
|
51119
|
-
value == "985" ||
|
|
51120
|
-
value == "986" ||
|
|
51121
|
-
value == "990" ||
|
|
51122
|
-
value == "994" ||
|
|
51123
|
-
value == "997" ||
|
|
51124
|
-
value == "999"));
|
|
51244
|
+
return CurrencyCode.types.includes(value);
|
|
51125
51245
|
}
|
|
51126
51246
|
CurrencyCode.is = is;
|
|
51127
51247
|
function from(currency) {
|
|
@@ -51501,28 +51621,28 @@ const CurrencyCode = /*@__PURE__*/getDefaultExportFromCjs(CurrencyCode_1);
|
|
|
51501
51621
|
var _Date = createCommonjsModule(function (module, exports) {
|
|
51502
51622
|
"use strict";
|
|
51503
51623
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51504
|
-
exports.
|
|
51505
|
-
var
|
|
51506
|
-
(function (
|
|
51624
|
+
exports.Date = void 0;
|
|
51625
|
+
var Date;
|
|
51626
|
+
(function (Date) {
|
|
51507
51627
|
function is(value) {
|
|
51508
51628
|
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));
|
|
51509
51629
|
}
|
|
51510
|
-
|
|
51630
|
+
Date.is = is;
|
|
51511
51631
|
function parse(value, time) {
|
|
51512
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
51632
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
51513
51633
|
}
|
|
51514
|
-
|
|
51634
|
+
Date.parse = parse;
|
|
51515
51635
|
function create(value) {
|
|
51516
51636
|
return value.toISOString().substring(0, 10);
|
|
51517
51637
|
}
|
|
51518
|
-
|
|
51638
|
+
Date.create = create;
|
|
51519
51639
|
function now() {
|
|
51520
|
-
return create(new Date());
|
|
51640
|
+
return create(new globalThis.Date());
|
|
51521
51641
|
}
|
|
51522
|
-
|
|
51642
|
+
Date.now = now;
|
|
51523
51643
|
function localize(value, locale) {
|
|
51524
|
-
|
|
51525
|
-
|
|
51644
|
+
return (is(value) ? parse(value) : value)
|
|
51645
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
51526
51646
|
year: "numeric",
|
|
51527
51647
|
month: "2-digit",
|
|
51528
51648
|
day: "2-digit",
|
|
@@ -51530,16 +51650,132 @@ var IsoDate;
|
|
|
51530
51650
|
minute: "2-digit",
|
|
51531
51651
|
second: "2-digit",
|
|
51532
51652
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
51533
|
-
}
|
|
51534
|
-
|
|
51653
|
+
})
|
|
51654
|
+
.substring(0, 10);
|
|
51655
|
+
}
|
|
51656
|
+
Date.localize = localize;
|
|
51657
|
+
function next(date, days = 1) {
|
|
51658
|
+
let result;
|
|
51659
|
+
if (typeof days == "number") {
|
|
51660
|
+
const r = parse(date);
|
|
51661
|
+
r.setDate(r.getDate() + days);
|
|
51662
|
+
result = Date.create(r);
|
|
51663
|
+
}
|
|
51664
|
+
else {
|
|
51665
|
+
result = date;
|
|
51666
|
+
if (days.years)
|
|
51667
|
+
result = nextYear(result, days.years);
|
|
51668
|
+
if (days.months)
|
|
51669
|
+
result = nextMonth(result, days.months);
|
|
51670
|
+
if (days.days)
|
|
51671
|
+
result = next(result, days.days);
|
|
51672
|
+
}
|
|
51673
|
+
return result;
|
|
51674
|
+
}
|
|
51675
|
+
Date.next = next;
|
|
51676
|
+
function previous(date, days = 1) {
|
|
51677
|
+
let result;
|
|
51678
|
+
if (typeof days == "number") {
|
|
51679
|
+
const r = parse(date);
|
|
51680
|
+
r.setDate(r.getDate() - days);
|
|
51681
|
+
result = Date.create(r);
|
|
51682
|
+
}
|
|
51683
|
+
else {
|
|
51684
|
+
result = date;
|
|
51685
|
+
if (days.years)
|
|
51686
|
+
result = previousYear(result, days.years);
|
|
51687
|
+
if (days.months)
|
|
51688
|
+
result = previousMonth(result, days.months);
|
|
51689
|
+
if (days.days)
|
|
51690
|
+
result = previous(result, days.days);
|
|
51691
|
+
}
|
|
51692
|
+
return result;
|
|
51535
51693
|
}
|
|
51536
|
-
|
|
51537
|
-
|
|
51694
|
+
Date.previous = previous;
|
|
51695
|
+
function nextMonth(date, months = 1) {
|
|
51696
|
+
const result = parse(date);
|
|
51697
|
+
result.setMonth(result.getMonth() + months);
|
|
51698
|
+
return Date.create(result);
|
|
51699
|
+
}
|
|
51700
|
+
Date.nextMonth = nextMonth;
|
|
51701
|
+
function previousMonth(date, months = 1) {
|
|
51702
|
+
return nextMonth(date, -months);
|
|
51703
|
+
}
|
|
51704
|
+
Date.previousMonth = previousMonth;
|
|
51705
|
+
function nextYear(date, years = 1) {
|
|
51706
|
+
const result = parse(date);
|
|
51707
|
+
result.setFullYear(result.getFullYear() + years);
|
|
51708
|
+
return Date.create(result);
|
|
51709
|
+
}
|
|
51710
|
+
Date.nextYear = nextYear;
|
|
51711
|
+
function previousYear(date, years = 1) {
|
|
51712
|
+
return nextYear(date, -years);
|
|
51713
|
+
}
|
|
51714
|
+
Date.previousYear = previousYear;
|
|
51715
|
+
function firstOfMonth(date) {
|
|
51716
|
+
const result = parse(date);
|
|
51717
|
+
result.setDate(1);
|
|
51718
|
+
return Date.create(result);
|
|
51719
|
+
}
|
|
51720
|
+
Date.firstOfMonth = firstOfMonth;
|
|
51721
|
+
function lastOfMonth(date) {
|
|
51722
|
+
const result = parse(date);
|
|
51723
|
+
result.setMonth(result.getMonth() + 1);
|
|
51724
|
+
result.setDate(-1);
|
|
51725
|
+
return Date.create(result);
|
|
51726
|
+
}
|
|
51727
|
+
Date.lastOfMonth = lastOfMonth;
|
|
51728
|
+
})(Date = exports.Date || (exports.Date = {}));
|
|
51538
51729
|
//# sourceMappingURL=Date.js.map
|
|
51539
51730
|
});
|
|
51540
51731
|
|
|
51541
51732
|
const _Date$1 = /*@__PURE__*/getDefaultExportFromCjs(_Date);
|
|
51542
51733
|
|
|
51734
|
+
var DateRange_1 = createCommonjsModule(function (module, exports) {
|
|
51735
|
+
"use strict";
|
|
51736
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51737
|
+
exports.DateRange = void 0;
|
|
51738
|
+
|
|
51739
|
+
var DateRange;
|
|
51740
|
+
(function (DateRange) {
|
|
51741
|
+
function is(value) {
|
|
51742
|
+
return typeof value == "object" && _Date.Date.is(value.start) && _Date.Date.is(value.end);
|
|
51743
|
+
}
|
|
51744
|
+
DateRange.is = is;
|
|
51745
|
+
function create(start, end) {
|
|
51746
|
+
return !_Date.Date.is(end)
|
|
51747
|
+
? create(start, _Date.Date.next(start, end))
|
|
51748
|
+
: start <= end
|
|
51749
|
+
? { start, end }
|
|
51750
|
+
: { start: end, end: start };
|
|
51751
|
+
}
|
|
51752
|
+
DateRange.create = create;
|
|
51753
|
+
})(DateRange = exports.DateRange || (exports.DateRange = {}));
|
|
51754
|
+
//# sourceMappingURL=DateRange.js.map
|
|
51755
|
+
});
|
|
51756
|
+
|
|
51757
|
+
const DateRange = /*@__PURE__*/getDefaultExportFromCjs(DateRange_1);
|
|
51758
|
+
|
|
51759
|
+
var DateSpan_1 = createCommonjsModule(function (module, exports) {
|
|
51760
|
+
"use strict";
|
|
51761
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51762
|
+
exports.DateSpan = void 0;
|
|
51763
|
+
var DateSpan;
|
|
51764
|
+
(function (DateSpan) {
|
|
51765
|
+
function is(value) {
|
|
51766
|
+
return (typeof value == "object" &&
|
|
51767
|
+
(typeof value.years == "number" || value.years == undefined) &&
|
|
51768
|
+
(typeof value.months == "number" || value.months == undefined) &&
|
|
51769
|
+
(typeof value.days == "number" || value.days == undefined) &&
|
|
51770
|
+
(typeof value.years == "number" || typeof value.months == "number" || typeof value.days == "number"));
|
|
51771
|
+
}
|
|
51772
|
+
DateSpan.is = is;
|
|
51773
|
+
})(DateSpan = exports.DateSpan || (exports.DateSpan = {}));
|
|
51774
|
+
//# sourceMappingURL=DateSpan.js.map
|
|
51775
|
+
});
|
|
51776
|
+
|
|
51777
|
+
const DateSpan = /*@__PURE__*/getDefaultExportFromCjs(DateSpan_1);
|
|
51778
|
+
|
|
51543
51779
|
var DateTime_1 = createCommonjsModule(function (module, exports) {
|
|
51544
51780
|
"use strict";
|
|
51545
51781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -51565,7 +51801,7 @@ var DateTime;
|
|
|
51565
51801
|
DateTime.now = now;
|
|
51566
51802
|
function localize(value, locale) {
|
|
51567
51803
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
51568
|
-
|
|
51804
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
51569
51805
|
year: "numeric",
|
|
51570
51806
|
month: "2-digit",
|
|
51571
51807
|
day: "2-digit",
|
|
@@ -51573,8 +51809,7 @@ var DateTime;
|
|
|
51573
51809
|
minute: "2-digit",
|
|
51574
51810
|
second: "2-digit",
|
|
51575
51811
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
51576
|
-
};
|
|
51577
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
51812
|
+
});
|
|
51578
51813
|
}
|
|
51579
51814
|
DateTime.localize = localize;
|
|
51580
51815
|
})(DateTime = exports.DateTime || (exports.DateTime = {}));
|
|
@@ -53339,7 +53574,7 @@ var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
|
53339
53574
|
return result;
|
|
53340
53575
|
};
|
|
53341
53576
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53342
|
-
exports.Locale = exports.Language = exports.Encoding = exports.DateTime = exports.Date = exports.CurrencyCode = exports.Currency = exports.CountryCode = exports.CallingCode = void 0;
|
|
53577
|
+
exports.Locale = exports.Language = exports.Encoding = exports.DateTime = exports.Date = exports.DateSpan = exports.DateRange = exports.CurrencyCode = exports.Currency = exports.CountryCode = exports.CallingCode = void 0;
|
|
53343
53578
|
|
|
53344
53579
|
Object.defineProperty(exports, "CallingCode", { enumerable: true, get: function () { return CallingCode_1.CallingCode; } });
|
|
53345
53580
|
const CountryCode$1 = __importStar(CountryCode);
|
|
@@ -53349,7 +53584,11 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
53349
53584
|
|
|
53350
53585
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1.CurrencyCode; } });
|
|
53351
53586
|
|
|
53352
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.
|
|
53587
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.Date; } });
|
|
53588
|
+
|
|
53589
|
+
Object.defineProperty(exports, "DateRange", { enumerable: true, get: function () { return DateRange_1.DateRange; } });
|
|
53590
|
+
|
|
53591
|
+
Object.defineProperty(exports, "DateSpan", { enumerable: true, get: function () { return DateSpan_1.DateSpan; } });
|
|
53353
53592
|
|
|
53354
53593
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1.DateTime; } });
|
|
53355
53594
|
|
|
@@ -54277,9 +54516,7 @@ const SmoothlyDisplayAmount$1 = class extends HTMLElement {
|
|
|
54277
54516
|
format(amount) {
|
|
54278
54517
|
const digitsPerGroup = 3;
|
|
54279
54518
|
const defaultDecimals = 2;
|
|
54280
|
-
const maxDecimals = (dist$4.Currency.decimalDigits(this.currency)
|
|
54281
|
-
? dist$4.Currency.decimalDigits(this.currency)
|
|
54282
|
-
: defaultDecimals);
|
|
54519
|
+
const maxDecimals = (dist$4.Currency.decimalDigits(this.currency) ? dist$4.Currency.decimalDigits(this.currency) : defaultDecimals);
|
|
54283
54520
|
let beforeSeparator = amount.length;
|
|
54284
54521
|
let separator;
|
|
54285
54522
|
let result = amount;
|
|
@@ -55007,7 +55244,7 @@ const SmoothlyInput$1 = class extends HTMLElement {
|
|
|
55007
55244
|
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
|
|
55008
55245
|
direction: backend.selectionDirection ? backend.selectionDirection : "none",
|
|
55009
55246
|
} });
|
|
55010
|
-
if ((!(event.ctrlKey && event.key == "v") && event.key.length == 1) ||
|
|
55247
|
+
if ((!((event.ctrlKey || event.metaKey) && event.key == "v") && event.key.length == 1) ||
|
|
55011
55248
|
event.key == "ArrowLeft" ||
|
|
55012
55249
|
event.key == "ArrowRight" ||
|
|
55013
55250
|
event.key == "Delete" ||
|
|
@@ -55149,7 +55386,7 @@ const SmoothlyInputDemo$1 = class extends HTMLElement {
|
|
|
55149
55386
|
}
|
|
55150
55387
|
};
|
|
55151
55388
|
|
|
55152
|
-
const styleCss$p = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}
|
|
55389
|
+
const styleCss$p = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
|
|
55153
55390
|
|
|
55154
55391
|
const MonthSelector = class extends HTMLElement {
|
|
55155
55392
|
constructor() {
|
|
@@ -55160,21 +55397,21 @@ const MonthSelector = class extends HTMLElement {
|
|
|
55160
55397
|
onValueChanged(next) {
|
|
55161
55398
|
this.valueChanged.emit(next);
|
|
55162
55399
|
}
|
|
55400
|
+
adjustMonth(delta) {
|
|
55401
|
+
var _a;
|
|
55402
|
+
const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
|
|
55403
|
+
date.setMonth(date.getMonth() + delta);
|
|
55404
|
+
this.value = dist$4.Date.create(date);
|
|
55405
|
+
}
|
|
55163
55406
|
render() {
|
|
55164
55407
|
var _a, _b;
|
|
55165
55408
|
return [
|
|
55166
|
-
h("
|
|
55409
|
+
h("div", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
|
|
55167
55410
|
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)))),
|
|
55168
55411
|
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)))),
|
|
55169
|
-
h("
|
|
55412
|
+
h("div", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
|
|
55170
55413
|
];
|
|
55171
55414
|
}
|
|
55172
|
-
adjustMonth(delta) {
|
|
55173
|
-
var _a;
|
|
55174
|
-
const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
|
|
55175
|
-
date.setMonth(date.getMonth() + delta);
|
|
55176
|
-
this.value = dist$4.Date.create(date);
|
|
55177
|
-
}
|
|
55178
55415
|
static get watchers() { return {
|
|
55179
55416
|
"value": ["onValueChanged"]
|
|
55180
55417
|
}; }
|
|
@@ -55757,7 +55994,7 @@ const SmoothlySelect$1 = class extends HTMLElement {
|
|
|
55757
55994
|
}
|
|
55758
55995
|
optionSelected() {
|
|
55759
55996
|
if (this.selectElement)
|
|
55760
|
-
this.selectionChanged.emit({ identifier: this.identifier, value: this.value = this.selectElement.value });
|
|
55997
|
+
this.selectionChanged.emit({ identifier: this.identifier, value: (this.value = this.selectElement.value) });
|
|
55761
55998
|
}
|
|
55762
55999
|
componentDidLoad() {
|
|
55763
56000
|
var _a;
|
|
@@ -56062,7 +56299,10 @@ const TableDemo = class extends HTMLElement {
|
|
|
56062
56299
|
this.__registerHost();
|
|
56063
56300
|
}
|
|
56064
56301
|
render() {
|
|
56065
|
-
return
|
|
56302
|
+
return [
|
|
56303
|
+
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.")))),
|
|
56304
|
+
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."))),
|
|
56305
|
+
];
|
|
56066
56306
|
}
|
|
56067
56307
|
static get style() { return styleCss$7; }
|
|
56068
56308
|
};
|
|
@@ -56143,7 +56383,7 @@ const TableHeader = class extends HTMLElement {
|
|
|
56143
56383
|
onClick(event) {
|
|
56144
56384
|
this.sort.emit({
|
|
56145
56385
|
property: this.name,
|
|
56146
|
-
direction: this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending",
|
|
56386
|
+
direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
|
|
56147
56387
|
});
|
|
56148
56388
|
console.log("sort", this.name, this.sortDirection);
|
|
56149
56389
|
event.preventDefault();
|
|
@@ -56167,16 +56407,35 @@ const TableHeader = class extends HTMLElement {
|
|
|
56167
56407
|
static get style() { return styleCss$4; }
|
|
56168
56408
|
};
|
|
56169
56409
|
|
|
56170
|
-
const styleCss$3 = ".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))}";
|
|
56410
|
+
const styleCss$3 = ".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}";
|
|
56171
56411
|
|
|
56172
56412
|
const TableRow = class extends HTMLElement {
|
|
56173
56413
|
constructor() {
|
|
56174
56414
|
super();
|
|
56175
56415
|
this.__registerHost();
|
|
56416
|
+
this.expansionOpen = createEvent(this, "expansionOpen", 7);
|
|
56417
|
+
this.align = "left";
|
|
56418
|
+
}
|
|
56419
|
+
openChanged(value) {
|
|
56420
|
+
if (this.expansionElement)
|
|
56421
|
+
this.element.after(this.expansionElement);
|
|
56422
|
+
}
|
|
56423
|
+
onClick(e) {
|
|
56424
|
+
this.open = !this.open;
|
|
56425
|
+
e.stopPropagation();
|
|
56426
|
+
}
|
|
56427
|
+
componentDidRender() {
|
|
56428
|
+
this.expansionOpen.emit(this.expansionElement);
|
|
56429
|
+
if (this.expansionElement && this.open)
|
|
56430
|
+
this.element.after(this.expansionElement);
|
|
56176
56431
|
}
|
|
56177
56432
|
render() {
|
|
56178
|
-
return (h(Host,
|
|
56433
|
+
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" })))));
|
|
56179
56434
|
}
|
|
56435
|
+
get element() { return this; }
|
|
56436
|
+
static get watchers() { return {
|
|
56437
|
+
"open": ["openChanged"]
|
|
56438
|
+
}; }
|
|
56180
56439
|
static get style() { return styleCss$3; }
|
|
56181
56440
|
};
|
|
56182
56441
|
|
|
@@ -56325,7 +56584,7 @@ const SmoothlyTableDemo = /*@__PURE__*/proxyCustomElement(TableDemo, [2,"smoothl
|
|
|
56325
56584
|
const SmoothlyTableExpandableCell = /*@__PURE__*/proxyCustomElement(TableExpandableCell, [6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]);
|
|
56326
56585
|
const SmoothlyTableExpandableRow = /*@__PURE__*/proxyCustomElement(TableExpandableRow, [6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]);
|
|
56327
56586
|
const SmoothlyTableHeader = /*@__PURE__*/proxyCustomElement(TableHeader, [6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]);
|
|
56328
|
-
const SmoothlyTableRow = /*@__PURE__*/proxyCustomElement(TableRow, [6,"smoothly-table-row"]);
|
|
56587
|
+
const SmoothlyTableRow = /*@__PURE__*/proxyCustomElement(TableRow, [6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]);
|
|
56329
56588
|
const SmoothlyTrigger = /*@__PURE__*/proxyCustomElement(SmoothlyTrigger$1, [6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]);
|
|
56330
56589
|
const SmoothlyTriggerSink = /*@__PURE__*/proxyCustomElement(SmoothlyTriggerSink$1, [6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]);
|
|
56331
56590
|
const SmoothlyTriggerSource = /*@__PURE__*/proxyCustomElement(SmoothlyTriggerSource$1, [6,"smoothly-trigger-source",{"listen":[1]}]);
|