smoothly 0.1.67 → 0.1.71

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.
Files changed (83) hide show
  1. package/dist/cjs/{Trigger-ea33b682.js → Trigger-74bd1ee8.js} +16 -0
  2. package/dist/cjs/{generate-5e7cd3f7.js → generate-7f7f7d99.js} +3 -2
  3. package/dist/cjs/{index-896ac706.js → index-7c9d0102.js} +806 -638
  4. package/dist/cjs/{index-2a5f8661.js → index-c973259c.js} +16 -0
  5. package/dist/cjs/{index-b8688617.js → index-e37f73fe.js} +89 -19
  6. package/dist/cjs/index.cjs.js +1 -1
  7. package/dist/cjs/smoothly-accordion_43.cjs.entry.js +917 -694
  8. package/dist/cjs/smoothly-calendar.cjs.entry.js +7 -7
  9. package/dist/cjs/smoothly-dialog.cjs.entry.js +1 -1
  10. package/dist/cjs/smoothly-display-amount.cjs.entry.js +2 -4
  11. package/dist/cjs/smoothly-display-demo.cjs.entry.js +1 -1
  12. package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
  13. package/dist/cjs/smoothly-frame.cjs.entry.js +1 -1
  14. package/dist/cjs/smoothly-input-date-range.cjs.entry.js +1 -1
  15. package/dist/cjs/smoothly-input-date.cjs.entry.js +1 -1
  16. package/dist/cjs/smoothly-input-month.cjs.entry.js +11 -11
  17. package/dist/cjs/smoothly-input.cjs.entry.js +2 -2
  18. package/dist/cjs/smoothly-picker.cjs.entry.js +12 -17
  19. package/dist/cjs/smoothly-select.cjs.entry.js +1 -1
  20. package/dist/cjs/smoothly-table-header.cjs.entry.js +1 -1
  21. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  22. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  23. package/dist/collection/components/calendar/generate.js +2 -1
  24. package/dist/collection/components/calendar/index.js +4 -4
  25. package/dist/collection/components/calendar/style.css +29 -11
  26. package/dist/collection/components/display-amount/index.js +1 -3
  27. package/dist/collection/components/input/index.js +1 -1
  28. package/dist/collection/components/input-month/index.js +8 -8
  29. package/dist/collection/components/input-month/style.css +0 -6
  30. package/dist/collection/components/picker/index.js +12 -17
  31. package/dist/collection/components/select/index.js +1 -1
  32. package/dist/collection/components/table/header/index.js +1 -1
  33. package/dist/custom-elements/index.js +943 -695
  34. package/dist/esm/{Trigger-c637fedf.js → Trigger-d7b181ec.js} +16 -0
  35. package/dist/esm/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
  36. package/dist/{smoothly/index-a7e44b28.js → esm/index-01fedb5b.js} +806 -638
  37. package/dist/esm/{index-046ba252.js → index-13251390.js} +89 -19
  38. package/dist/{smoothly/index-71e3ce99.js → esm/index-531e2f06.js} +16 -0
  39. package/dist/esm/index.js +1 -1
  40. package/dist/esm/smoothly-accordion_43.entry.js +917 -694
  41. package/dist/esm/smoothly-calendar.entry.js +7 -7
  42. package/dist/esm/smoothly-dialog.entry.js +1 -1
  43. package/dist/esm/smoothly-display-amount.entry.js +2 -4
  44. package/dist/esm/smoothly-display-demo.entry.js +1 -1
  45. package/dist/esm/smoothly-display.entry.js +1 -1
  46. package/dist/esm/smoothly-frame.entry.js +1 -1
  47. package/dist/esm/smoothly-input-date-range.entry.js +1 -1
  48. package/dist/esm/smoothly-input-date.entry.js +1 -1
  49. package/dist/esm/smoothly-input-month.entry.js +11 -11
  50. package/dist/esm/smoothly-input.entry.js +2 -2
  51. package/dist/esm/smoothly-picker.entry.js +12 -17
  52. package/dist/esm/smoothly-select.entry.js +1 -1
  53. package/dist/esm/smoothly-table-header.entry.js +1 -1
  54. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  55. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  56. package/dist/smoothly/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
  57. package/dist/{esm/index-a7e44b28.js → smoothly/index-01fedb5b.js} +806 -638
  58. package/dist/smoothly/{index-046ba252.js → index-13251390.js} +89 -19
  59. package/dist/{esm/index-71e3ce99.js → smoothly/index-531e2f06.js} +16 -0
  60. package/dist/smoothly/index.esm.js +1 -1
  61. package/dist/smoothly/p-2cda1784.js +1 -0
  62. package/dist/smoothly/{p-24d838b1.entry.js → p-89fe12b0.entry.js} +1 -1
  63. package/dist/smoothly/p-c107b623.entry.js +1 -0
  64. package/dist/smoothly/{p-77f6d4bf.entry.js → p-e79800d9.entry.js} +1 -1
  65. package/dist/smoothly/smoothly-calendar.entry.js +7 -7
  66. package/dist/smoothly/smoothly-dialog.entry.js +1 -1
  67. package/dist/smoothly/smoothly-display-amount.entry.js +2 -4
  68. package/dist/smoothly/smoothly-display-demo.entry.js +1 -1
  69. package/dist/smoothly/smoothly-display.entry.js +1 -1
  70. package/dist/smoothly/smoothly-frame.entry.js +1 -1
  71. package/dist/smoothly/smoothly-input-date-range.entry.js +1 -1
  72. package/dist/smoothly/smoothly-input-date.entry.js +1 -1
  73. package/dist/smoothly/smoothly-input-month.entry.js +11 -11
  74. package/dist/smoothly/smoothly-input.entry.js +2 -2
  75. package/dist/smoothly/smoothly-picker.entry.js +12 -17
  76. package/dist/smoothly/smoothly-select.entry.js +1 -1
  77. package/dist/smoothly/smoothly-table-header.entry.js +1 -1
  78. package/dist/smoothly/smoothly-trigger-sink.entry.js +1 -1
  79. package/dist/smoothly/smoothly-trigger-source.entry.js +1 -1
  80. package/dist/types/components/input-month/index.d.ts +1 -1
  81. package/package.json +5 -5
  82. package/dist/smoothly/p-08ef34d4.js +0 -1
  83. package/dist/smoothly/p-bee6330e.entry.js +0 -1
@@ -851,6 +851,22 @@ var Identifier;
851
851
  Array.from(value).every(c => (c >= "0" && c <= "9") || (c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || c == "-" || c == "_"));
852
852
  }
853
853
  Identifier.is = is;
854
+ function fromUint24(value) {
855
+ return fromHexadecimal(value.toString(16).padStart(6, "0"));
856
+ }
857
+ Identifier.fromUint24 = fromUint24;
858
+ function toUint24(identifier) {
859
+ return Number.parseInt(toHexadecimal(identifier, 6), 16);
860
+ }
861
+ Identifier.toUint24 = toUint24;
862
+ function fromUint48(value) {
863
+ return fromHexadecimal(value.toString(16).padStart(12, "0"));
864
+ }
865
+ Identifier.fromUint48 = fromUint48;
866
+ function toUint48(identifier) {
867
+ return Number.parseInt(toHexadecimal(identifier, 12), 16);
868
+ }
869
+ Identifier.toUint48 = toUint48;
854
870
  function fromBinary(identifier) {
855
871
  return encode$1(identifier, "url");
856
872
  }
@@ -18986,28 +19002,28 @@ const CurrencyCode$2 = /*@__PURE__*/getDefaultExportFromCjs(CurrencyCode_1$2);
18986
19002
  var _Date$2 = createCommonjsModule(function (module, exports) {
18987
19003
  "use strict";
18988
19004
  Object.defineProperty(exports, "__esModule", { value: true });
18989
- exports.IsoDate = void 0;
18990
- var IsoDate;
18991
- (function (IsoDate) {
19005
+ exports.Date = void 0;
19006
+ var Date;
19007
+ (function (Date) {
18992
19008
  function is(value) {
18993
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));
18994
19010
  }
18995
- IsoDate.is = is;
19011
+ Date.is = is;
18996
19012
  function parse(value, time) {
18997
- 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"));
18998
19014
  }
18999
- IsoDate.parse = parse;
19015
+ Date.parse = parse;
19000
19016
  function create(value) {
19001
19017
  return value.toISOString().substring(0, 10);
19002
19018
  }
19003
- IsoDate.create = create;
19019
+ Date.create = create;
19004
19020
  function now() {
19005
- return create(new Date());
19021
+ return create(new globalThis.Date());
19006
19022
  }
19007
- IsoDate.now = now;
19023
+ Date.now = now;
19008
19024
  function localize(value, locale) {
19009
- const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
19010
- const localeOptions = {
19025
+ return (is(value) ? parse(value) : value)
19026
+ .toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
19011
19027
  year: "numeric",
19012
19028
  month: "2-digit",
19013
19029
  day: "2-digit",
@@ -19015,11 +19031,82 @@ var IsoDate;
19015
19031
  minute: "2-digit",
19016
19032
  second: "2-digit",
19017
19033
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
19018
- };
19019
- return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions).substring(0, 10);
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;
19020
19074
  }
19021
- IsoDate.localize = localize;
19022
- })(IsoDate = exports.IsoDate || (exports.IsoDate = {}));
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 = {}));
19023
19110
  //# sourceMappingURL=Date.js.map
19024
19111
  });
19025
19112
 
@@ -19050,7 +19137,7 @@ var DateTime;
19050
19137
  DateTime.now = now;
19051
19138
  function localize(value, locale) {
19052
19139
  const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
19053
- const localeOptions = {
19140
+ return (is(value) ? parse(value) : value).toLocaleString(localeString, {
19054
19141
  year: "numeric",
19055
19142
  month: "2-digit",
19056
19143
  day: "2-digit",
@@ -19058,8 +19145,7 @@ var DateTime;
19058
19145
  minute: "2-digit",
19059
19146
  second: "2-digit",
19060
19147
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
19061
- };
19062
- return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
19148
+ });
19063
19149
  }
19064
19150
  DateTime.localize = localize;
19065
19151
  })(DateTime = exports.DateTime || (exports.DateTime = {}));
@@ -20834,7 +20920,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
20834
20920
 
20835
20921
  Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1$2.CurrencyCode; } });
20836
20922
 
20837
- Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$2.IsoDate; } });
20923
+ Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$2.Date; } });
20838
20924
 
20839
20925
  Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1$2.DateTime; } });
20840
20926
 
@@ -20860,7 +20946,8 @@ function month(date) {
20860
20946
  d.setDate(day++);
20861
20947
  r.push(dist$4.Date.create(d));
20862
20948
  }
20863
- result.push(r);
20949
+ if (row < 5 || dist$4.Date.firstOfMonth(r[0]) == dist$4.Date.firstOfMonth(date))
20950
+ result.push(r);
20864
20951
  }
20865
20952
  return result;
20866
20953
  }
@@ -20905,7 +20992,7 @@ function years(current) {
20905
20992
  return result;
20906
20993
  }
20907
20994
 
20908
- const styleCss$B = ".sc-smoothly-calendar-h{display:block}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:.5em .5em 0 .5em}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-light-shade))}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))}";
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))}";
20909
20996
 
20910
20997
  const Calendar = class extends HTMLElement {
20911
20998
  constructor() {
@@ -20931,7 +21018,7 @@ const Calendar = class extends HTMLElement {
20931
21018
  event.stopPropagation();
20932
21019
  } }),
20933
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 => {
20934
- var _a, _b;
21021
+ var _a, _b, _c;
20935
21022
  return (h("td", { tabindex: 1, onClick: () => {
20936
21023
  this.valueChanged.emit((this.value = date));
20937
21024
  this.clickCounter += 1;
@@ -20944,9 +21031,9 @@ const Calendar = class extends HTMLElement {
20944
21031
  this.start = date;
20945
21032
  }
20946
21033
  }, class: (date == this.value ? ["selected"] : [])
20947
- .concat(...(date == dist$4.Date.now() ? ["today"] : []), date == this.value ? ["selected"] : [], this.doubleInput
20948
- ? dist$4.Date.parse(date) >= dist$4.Date.parse((_a = this.start) !== null && _a !== void 0 ? _a : "") &&
20949
- dist$4.Date.parse(date) <= dist$4.Date.parse((_b = this.end) !== null && _b !== void 0 ? _b : "")
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 : "")
20950
21037
  ? ["dateRange"]
20951
21038
  : []
20952
21039
  : "")
@@ -35065,7 +35152,7 @@ var CallingCode;
35065
35152
  value == "+44" ||
35066
35153
  value == "+224" ||
35067
35154
  value == "+245" ||
35068
- value == "+595" ||
35155
+ value == "+592" ||
35069
35156
  value == "+509" ||
35070
35157
  value == "+379" ||
35071
35158
  value == "+504" ||
@@ -35244,7 +35331,7 @@ var CallingCode;
35244
35331
  })(CallingCode = exports.CallingCode || (exports.CallingCode = {}));
35245
35332
  const callingCodetoAlpha2 = {
35246
35333
  "+93": "AF",
35247
- "+358": ["AX", "FI"],
35334
+ "+358": ["FI", "AX"],
35248
35335
  "+355": "AL",
35249
35336
  "+213": "DZ",
35250
35337
  "+1684": "AS",
@@ -35281,7 +35368,7 @@ const callingCodetoAlpha2 = {
35281
35368
  "+257": "BI",
35282
35369
  "+855": "KH",
35283
35370
  "+237": "CM",
35284
- "+1": ["CA", "US"],
35371
+ "+1": ["US", "CA"],
35285
35372
  "+238": "CV",
35286
35373
  "+345": "KY",
35287
35374
  "+236": "CF",
@@ -35328,10 +35415,11 @@ const callingCodetoAlpha2 = {
35328
35415
  "+590": ["GP", "BL", "MF"],
35329
35416
  "+1671": "GU",
35330
35417
  "+502": "GT",
35331
- "+44": ["GG", "GB", "IM", "JE"],
35418
+ "+44": ["GB", "JE", "IM", "GG"],
35332
35419
  "+224": "GN",
35333
35420
  "+245": "GW",
35334
- "+595": ["GY", "PY"],
35421
+ "+592": "GY",
35422
+ "+595": "PY",
35335
35423
  "+509": "HT",
35336
35424
  "+379": "VA",
35337
35425
  "+504": "HN",
@@ -35376,7 +35464,7 @@ const callingCodetoAlpha2 = {
35376
35464
  "+596": "MQ",
35377
35465
  "+222": "MR",
35378
35466
  "+230": "MU",
35379
- "+262": ["YT", "RE"],
35467
+ "+262": ["RE", "YT"],
35380
35468
  "+52": "MX",
35381
35469
  "+691": "FM",
35382
35470
  "+373": "MD",
@@ -35564,7 +35652,7 @@ const alpha2toCallingCode = {
35564
35652
  GG: "+44",
35565
35653
  GN: "+224",
35566
35654
  GW: "+245",
35567
- GY: "+595",
35655
+ GY: "+592",
35568
35656
  HT: "+509",
35569
35657
  VA: "+379",
35570
35658
  HN: "+504",
@@ -35727,264 +35815,302 @@ Object.defineProperty(exports, "__esModule", { value: true });
35727
35815
  exports.Alpha2 = void 0;
35728
35816
  var Alpha2;
35729
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
+ ];
35730
36069
  function is(value) {
35731
- return (typeof value == "string" &&
35732
- value.length == 2 &&
35733
- (value == "AF" ||
35734
- value == "AX" ||
35735
- value == "AL" ||
35736
- value == "DZ" ||
35737
- value == "AS" ||
35738
- value == "AD" ||
35739
- value == "AO" ||
35740
- value == "AI" ||
35741
- value == "AQ" ||
35742
- value == "AG" ||
35743
- value == "AR" ||
35744
- value == "AM" ||
35745
- value == "AW" ||
35746
- value == "AU" ||
35747
- value == "AT" ||
35748
- value == "AZ" ||
35749
- value == "BS" ||
35750
- value == "BH" ||
35751
- value == "BD" ||
35752
- value == "BB" ||
35753
- value == "BY" ||
35754
- value == "BE" ||
35755
- value == "BZ" ||
35756
- value == "BJ" ||
35757
- value == "BM" ||
35758
- value == "BT" ||
35759
- value == "BO" ||
35760
- value == "BQ" ||
35761
- value == "BA" ||
35762
- value == "BW" ||
35763
- value == "BV" ||
35764
- value == "BR" ||
35765
- value == "IO" ||
35766
- value == "BN" ||
35767
- value == "BG" ||
35768
- value == "BF" ||
35769
- value == "BI" ||
35770
- value == "CV" ||
35771
- value == "KH" ||
35772
- value == "CM" ||
35773
- value == "CA" ||
35774
- value == "KY" ||
35775
- value == "CF" ||
35776
- value == "TD" ||
35777
- value == "CL" ||
35778
- value == "CN" ||
35779
- value == "CX" ||
35780
- value == "CC" ||
35781
- value == "CO" ||
35782
- value == "KM" ||
35783
- value == "CG" ||
35784
- value == "CD" ||
35785
- value == "CK" ||
35786
- value == "CR" ||
35787
- value == "CI" ||
35788
- value == "HR" ||
35789
- value == "CU" ||
35790
- value == "CW" ||
35791
- value == "CY" ||
35792
- value == "CZ" ||
35793
- value == "DK" ||
35794
- value == "DJ" ||
35795
- value == "DM" ||
35796
- value == "DO" ||
35797
- value == "EC" ||
35798
- value == "EG" ||
35799
- value == "SV" ||
35800
- value == "GQ" ||
35801
- value == "ER" ||
35802
- value == "EE" ||
35803
- value == "SZ" ||
35804
- value == "ET" ||
35805
- value == "FK" ||
35806
- value == "FO" ||
35807
- value == "FJ" ||
35808
- value == "FI" ||
35809
- value == "FR" ||
35810
- value == "GF" ||
35811
- value == "PF" ||
35812
- value == "TF" ||
35813
- value == "GA" ||
35814
- value == "GM" ||
35815
- value == "GE" ||
35816
- value == "DE" ||
35817
- value == "GH" ||
35818
- value == "GI" ||
35819
- value == "GR" ||
35820
- value == "GL" ||
35821
- value == "GD" ||
35822
- value == "GP" ||
35823
- value == "GU" ||
35824
- value == "GT" ||
35825
- value == "GG" ||
35826
- value == "GN" ||
35827
- value == "GW" ||
35828
- value == "GY" ||
35829
- value == "HT" ||
35830
- value == "HM" ||
35831
- value == "VA" ||
35832
- value == "HN" ||
35833
- value == "HK" ||
35834
- value == "HU" ||
35835
- value == "IS" ||
35836
- value == "IN" ||
35837
- value == "ID" ||
35838
- value == "IR" ||
35839
- value == "IQ" ||
35840
- value == "IE" ||
35841
- value == "IM" ||
35842
- value == "IL" ||
35843
- value == "IT" ||
35844
- value == "JM" ||
35845
- value == "JP" ||
35846
- value == "JE" ||
35847
- value == "JO" ||
35848
- value == "KZ" ||
35849
- value == "KE" ||
35850
- value == "KI" ||
35851
- value == "KP" ||
35852
- value == "KR" ||
35853
- value == "KW" ||
35854
- value == "KG" ||
35855
- value == "LA" ||
35856
- value == "LV" ||
35857
- value == "LB" ||
35858
- value == "LS" ||
35859
- value == "LR" ||
35860
- value == "LY" ||
35861
- value == "LI" ||
35862
- value == "LT" ||
35863
- value == "LU" ||
35864
- value == "MO" ||
35865
- value == "MG" ||
35866
- value == "MW" ||
35867
- value == "MY" ||
35868
- value == "MV" ||
35869
- value == "ML" ||
35870
- value == "MT" ||
35871
- value == "MH" ||
35872
- value == "MQ" ||
35873
- value == "MR" ||
35874
- value == "MU" ||
35875
- value == "YT" ||
35876
- value == "MX" ||
35877
- value == "FM" ||
35878
- value == "MD" ||
35879
- value == "MC" ||
35880
- value == "MN" ||
35881
- value == "ME" ||
35882
- value == "MS" ||
35883
- value == "MA" ||
35884
- value == "MZ" ||
35885
- value == "MM" ||
35886
- value == "NA" ||
35887
- value == "NR" ||
35888
- value == "NP" ||
35889
- value == "NL" ||
35890
- value == "NC" ||
35891
- value == "NZ" ||
35892
- value == "NI" ||
35893
- value == "NE" ||
35894
- value == "NG" ||
35895
- value == "NU" ||
35896
- value == "NF" ||
35897
- value == "MK" ||
35898
- value == "MP" ||
35899
- value == "NO" ||
35900
- value == "OM" ||
35901
- value == "PK" ||
35902
- value == "PW" ||
35903
- value == "PS" ||
35904
- value == "PA" ||
35905
- value == "PG" ||
35906
- value == "PY" ||
35907
- value == "PE" ||
35908
- value == "PH" ||
35909
- value == "PN" ||
35910
- value == "PL" ||
35911
- value == "PT" ||
35912
- value == "PR" ||
35913
- value == "QA" ||
35914
- value == "RE" ||
35915
- value == "RO" ||
35916
- value == "RU" ||
35917
- value == "RW" ||
35918
- value == "BL" ||
35919
- value == "SH" ||
35920
- value == "KN" ||
35921
- value == "LC" ||
35922
- value == "MF" ||
35923
- value == "PM" ||
35924
- value == "VC" ||
35925
- value == "WS" ||
35926
- value == "SM" ||
35927
- value == "ST" ||
35928
- value == "SA" ||
35929
- value == "SN" ||
35930
- value == "RS" ||
35931
- value == "SC" ||
35932
- value == "SL" ||
35933
- value == "SG" ||
35934
- value == "SX" ||
35935
- value == "SK" ||
35936
- value == "SI" ||
35937
- value == "SB" ||
35938
- value == "SO" ||
35939
- value == "ZA" ||
35940
- value == "GS" ||
35941
- value == "SS" ||
35942
- value == "ES" ||
35943
- value == "LK" ||
35944
- value == "SD" ||
35945
- value == "SR" ||
35946
- value == "SJ" ||
35947
- value == "SE" ||
35948
- value == "CH" ||
35949
- value == "SY" ||
35950
- value == "TW" ||
35951
- value == "TJ" ||
35952
- value == "TZ" ||
35953
- value == "TH" ||
35954
- value == "TL" ||
35955
- value == "TG" ||
35956
- value == "TK" ||
35957
- value == "TO" ||
35958
- value == "TT" ||
35959
- value == "TN" ||
35960
- value == "TR" ||
35961
- value == "TM" ||
35962
- value == "TC" ||
35963
- value == "TV" ||
35964
- value == "UG" ||
35965
- value == "UA" ||
35966
- value == "AE" ||
35967
- value == "GB" ||
35968
- value == "US" ||
35969
- value == "UM" ||
35970
- value == "UY" ||
35971
- value == "UZ" ||
35972
- value == "VU" ||
35973
- value == "VE" ||
35974
- value == "VN" ||
35975
- value == "VG" ||
35976
- value == "VI" ||
35977
- value == "WF" ||
35978
- value == "EH" ||
35979
- value == "YE" ||
35980
- value == "ZM" ||
35981
- value == "ZW"));
36070
+ return Alpha2.types.includes(value);
35982
36071
  }
35983
36072
  Alpha2.is = is;
35984
36073
  function from(country) {
35985
36074
  return typeof country == "number" ? numericToAlpha2[country.toString()] : alpha3ToAlpha2[country];
35986
36075
  }
35987
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;
35988
36114
  })(Alpha2 = exports.Alpha2 || (exports.Alpha2 = {}));
35989
36115
  const numericToAlpha2 = {
35990
36116
  "4": "AF",
@@ -50362,187 +50488,189 @@ Object.defineProperty(exports, "__esModule", { value: true });
50362
50488
  exports.Currency = void 0;
50363
50489
  var Currency;
50364
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
+ ];
50365
50672
  function is(currency) {
50366
- return (typeof currency == "string" &&
50367
- (currency == "AED" ||
50368
- currency == "AFN" ||
50369
- currency == "ALL" ||
50370
- currency == "AMD" ||
50371
- currency == "ANG" ||
50372
- currency == "AOA" ||
50373
- currency == "ARS" ||
50374
- currency == "AUD" ||
50375
- currency == "AWG" ||
50376
- currency == "AZN" ||
50377
- currency == "BAM" ||
50378
- currency == "BBD" ||
50379
- currency == "BDT" ||
50380
- currency == "BGN" ||
50381
- currency == "BHD" ||
50382
- currency == "BIF" ||
50383
- currency == "BMD" ||
50384
- currency == "BND" ||
50385
- currency == "BOB" ||
50386
- currency == "BOV" ||
50387
- currency == "BRL" ||
50388
- currency == "BSD" ||
50389
- currency == "BTN" ||
50390
- currency == "BWP" ||
50391
- currency == "BYN" ||
50392
- currency == "BZD" ||
50393
- currency == "CAD" ||
50394
- currency == "CDF" ||
50395
- currency == "CHE" ||
50396
- currency == "CHF" ||
50397
- currency == "CHW" ||
50398
- currency == "CLF" ||
50399
- currency == "CLP" ||
50400
- currency == "CNY" ||
50401
- currency == "COP" ||
50402
- currency == "COU" ||
50403
- currency == "CRC" ||
50404
- currency == "CUC" ||
50405
- currency == "CUP" ||
50406
- currency == "CVE" ||
50407
- currency == "CZK" ||
50408
- currency == "DJF" ||
50409
- currency == "DKK" ||
50410
- currency == "DOP" ||
50411
- currency == "DZD" ||
50412
- currency == "EGP" ||
50413
- currency == "ERN" ||
50414
- currency == "ETB" ||
50415
- currency == "EUR" ||
50416
- currency == "FJD" ||
50417
- currency == "FKP" ||
50418
- currency == "GBP" ||
50419
- currency == "GEL" ||
50420
- currency == "GHS" ||
50421
- currency == "GIP" ||
50422
- currency == "GMD" ||
50423
- currency == "GNF" ||
50424
- currency == "GTQ" ||
50425
- currency == "GYD" ||
50426
- currency == "HKD" ||
50427
- currency == "HNL" ||
50428
- currency == "HRK" ||
50429
- currency == "HTG" ||
50430
- currency == "HUF" ||
50431
- currency == "IDR" ||
50432
- currency == "ILS" ||
50433
- currency == "INR" ||
50434
- currency == "IQD" ||
50435
- currency == "IRR" ||
50436
- currency == "ISK" ||
50437
- currency == "JMD" ||
50438
- currency == "JOD" ||
50439
- currency == "JPY" ||
50440
- currency == "KES" ||
50441
- currency == "KGS" ||
50442
- currency == "KHR" ||
50443
- currency == "KMF" ||
50444
- currency == "KPW" ||
50445
- currency == "KRW" ||
50446
- currency == "KWD" ||
50447
- currency == "KYD" ||
50448
- currency == "KZT" ||
50449
- currency == "LAK" ||
50450
- currency == "LBP" ||
50451
- currency == "LKR" ||
50452
- currency == "LRD" ||
50453
- currency == "LSL" ||
50454
- currency == "LYD" ||
50455
- currency == "MAD" ||
50456
- currency == "MDL" ||
50457
- currency == "MGA" ||
50458
- currency == "MKD" ||
50459
- currency == "MMK" ||
50460
- currency == "MNT" ||
50461
- currency == "MOP" ||
50462
- currency == "MRU" ||
50463
- currency == "MUR" ||
50464
- currency == "MVR" ||
50465
- currency == "MWK" ||
50466
- currency == "MXN" ||
50467
- currency == "MXV" ||
50468
- currency == "MYR" ||
50469
- currency == "MZN" ||
50470
- currency == "NAD" ||
50471
- currency == "NGN" ||
50472
- currency == "NIO" ||
50473
- currency == "NOK" ||
50474
- currency == "NPR" ||
50475
- currency == "NZD" ||
50476
- currency == "OMR" ||
50477
- currency == "PAB" ||
50478
- currency == "PEN" ||
50479
- currency == "PGK" ||
50480
- currency == "PHP" ||
50481
- currency == "PKR" ||
50482
- currency == "PLN" ||
50483
- currency == "PYG" ||
50484
- currency == "QAR" ||
50485
- currency == "RON" ||
50486
- currency == "RSD" ||
50487
- currency == "RUB" ||
50488
- currency == "RWF" ||
50489
- currency == "SAR" ||
50490
- currency == "SBD" ||
50491
- currency == "SCR" ||
50492
- currency == "SDG" ||
50493
- currency == "SEK" ||
50494
- currency == "SGD" ||
50495
- currency == "SHP" ||
50496
- currency == "SLL" ||
50497
- currency == "SOS" ||
50498
- currency == "SRD" ||
50499
- currency == "SSP" ||
50500
- currency == "STN" ||
50501
- currency == "SVC" ||
50502
- currency == "SYP" ||
50503
- currency == "SZL" ||
50504
- currency == "THB" ||
50505
- currency == "TJS" ||
50506
- currency == "TMT" ||
50507
- currency == "TND" ||
50508
- currency == "TOP" ||
50509
- currency == "TRY" ||
50510
- currency == "TTD" ||
50511
- currency == "TWD" ||
50512
- currency == "TZS" ||
50513
- currency == "UAH" ||
50514
- currency == "UGX" ||
50515
- currency == "USD" ||
50516
- currency == "USN" ||
50517
- currency == "UYI" ||
50518
- currency == "UYU" ||
50519
- currency == "UYW" ||
50520
- currency == "UZS" ||
50521
- currency == "VES" ||
50522
- currency == "VND" ||
50523
- currency == "VUV" ||
50524
- currency == "WST" ||
50525
- currency == "XAF" ||
50526
- currency == "XAG" ||
50527
- currency == "XAU" ||
50528
- currency == "XBA" ||
50529
- currency == "XBB" ||
50530
- currency == "XBC" ||
50531
- currency == "XBD" ||
50532
- currency == "XCD" ||
50533
- currency == "XDR" ||
50534
- currency == "XOF" ||
50535
- currency == "XPD" ||
50536
- currency == "XPF" ||
50537
- currency == "XPT" ||
50538
- currency == "XSU" ||
50539
- currency == "XTS" ||
50540
- currency == "XUA" ||
50541
- currency == "XXX" ||
50542
- currency == "YER" ||
50543
- currency == "ZAR" ||
50544
- currency == "ZMW" ||
50545
- currency == "ZWL"));
50673
+ return Currency.types.includes(currency);
50546
50674
  }
50547
50675
  Currency.is = is;
50548
50676
  function from(currencyCode) {
@@ -50729,6 +50857,12 @@ var Currency;
50729
50857
  }[currencyCode];
50730
50858
  }
50731
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;
50732
50866
  function decimalDigits(currency) {
50733
50867
  return {
50734
50868
  AED: 2,
@@ -50925,187 +51059,189 @@ Object.defineProperty(exports, "__esModule", { value: true });
50925
51059
  exports.CurrencyCode = void 0;
50926
51060
  var CurrencyCode;
50927
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
+ ];
50928
51243
  function is(value) {
50929
- return (typeof value == "string" &&
50930
- (value == "008" ||
50931
- value == "012" ||
50932
- value == "032" ||
50933
- value == "036" ||
50934
- value == "044" ||
50935
- value == "048" ||
50936
- value == "050" ||
50937
- value == "051" ||
50938
- value == "052" ||
50939
- value == "060" ||
50940
- value == "064" ||
50941
- value == "068" ||
50942
- value == "072" ||
50943
- value == "084" ||
50944
- value == "090" ||
50945
- value == "096" ||
50946
- value == "104" ||
50947
- value == "108" ||
50948
- value == "116" ||
50949
- value == "124" ||
50950
- value == "132" ||
50951
- value == "136" ||
50952
- value == "144" ||
50953
- value == "152" ||
50954
- value == "156" ||
50955
- value == "170" ||
50956
- value == "174" ||
50957
- value == "188" ||
50958
- value == "191" ||
50959
- value == "192" ||
50960
- value == "203" ||
50961
- value == "208" ||
50962
- value == "214" ||
50963
- value == "222" ||
50964
- value == "230" ||
50965
- value == "232" ||
50966
- value == "238" ||
50967
- value == "242" ||
50968
- value == "262" ||
50969
- value == "270" ||
50970
- value == "292" ||
50971
- value == "320" ||
50972
- value == "324" ||
50973
- value == "328" ||
50974
- value == "332" ||
50975
- value == "340" ||
50976
- value == "344" ||
50977
- value == "348" ||
50978
- value == "352" ||
50979
- value == "356" ||
50980
- value == "360" ||
50981
- value == "364" ||
50982
- value == "368" ||
50983
- value == "376" ||
50984
- value == "388" ||
50985
- value == "392" ||
50986
- value == "398" ||
50987
- value == "400" ||
50988
- value == "404" ||
50989
- value == "408" ||
50990
- value == "410" ||
50991
- value == "414" ||
50992
- value == "417" ||
50993
- value == "418" ||
50994
- value == "422" ||
50995
- value == "426" ||
50996
- value == "430" ||
50997
- value == "434" ||
50998
- value == "446" ||
50999
- value == "454" ||
51000
- value == "458" ||
51001
- value == "462" ||
51002
- value == "480" ||
51003
- value == "484" ||
51004
- value == "496" ||
51005
- value == "498" ||
51006
- value == "504" ||
51007
- value == "512" ||
51008
- value == "516" ||
51009
- value == "524" ||
51010
- value == "532" ||
51011
- value == "533" ||
51012
- value == "548" ||
51013
- value == "554" ||
51014
- value == "558" ||
51015
- value == "566" ||
51016
- value == "578" ||
51017
- value == "586" ||
51018
- value == "590" ||
51019
- value == "598" ||
51020
- value == "600" ||
51021
- value == "604" ||
51022
- value == "608" ||
51023
- value == "634" ||
51024
- value == "643" ||
51025
- value == "646" ||
51026
- value == "654" ||
51027
- value == "682" ||
51028
- value == "690" ||
51029
- value == "694" ||
51030
- value == "702" ||
51031
- value == "704" ||
51032
- value == "706" ||
51033
- value == "710" ||
51034
- value == "728" ||
51035
- value == "748" ||
51036
- value == "752" ||
51037
- value == "756" ||
51038
- value == "760" ||
51039
- value == "764" ||
51040
- value == "776" ||
51041
- value == "780" ||
51042
- value == "784" ||
51043
- value == "788" ||
51044
- value == "800" ||
51045
- value == "807" ||
51046
- value == "818" ||
51047
- value == "826" ||
51048
- value == "834" ||
51049
- value == "840" ||
51050
- value == "858" ||
51051
- value == "860" ||
51052
- value == "882" ||
51053
- value == "886" ||
51054
- value == "901" ||
51055
- value == "927" ||
51056
- value == "928" ||
51057
- value == "929" ||
51058
- value == "930" ||
51059
- value == "931" ||
51060
- value == "932" ||
51061
- value == "933" ||
51062
- value == "934" ||
51063
- value == "936" ||
51064
- value == "938" ||
51065
- value == "940" ||
51066
- value == "941" ||
51067
- value == "943" ||
51068
- value == "944" ||
51069
- value == "946" ||
51070
- value == "947" ||
51071
- value == "948" ||
51072
- value == "949" ||
51073
- value == "950" ||
51074
- value == "951" ||
51075
- value == "952" ||
51076
- value == "953" ||
51077
- value == "955" ||
51078
- value == "956" ||
51079
- value == "957" ||
51080
- value == "958" ||
51081
- value == "959" ||
51082
- value == "960" ||
51083
- value == "961" ||
51084
- value == "962" ||
51085
- value == "963" ||
51086
- value == "964" ||
51087
- value == "965" ||
51088
- value == "967" ||
51089
- value == "968" ||
51090
- value == "969" ||
51091
- value == "970" ||
51092
- value == "971" ||
51093
- value == "972" ||
51094
- value == "973" ||
51095
- value == "975" ||
51096
- value == "976" ||
51097
- value == "977" ||
51098
- value == "978" ||
51099
- value == "979" ||
51100
- value == "980" ||
51101
- value == "981" ||
51102
- value == "984" ||
51103
- value == "985" ||
51104
- value == "986" ||
51105
- value == "990" ||
51106
- value == "994" ||
51107
- value == "997" ||
51108
- value == "999"));
51244
+ return CurrencyCode.types.includes(value);
51109
51245
  }
51110
51246
  CurrencyCode.is = is;
51111
51247
  function from(currency) {
@@ -51485,28 +51621,28 @@ const CurrencyCode = /*@__PURE__*/getDefaultExportFromCjs(CurrencyCode_1);
51485
51621
  var _Date = createCommonjsModule(function (module, exports) {
51486
51622
  "use strict";
51487
51623
  Object.defineProperty(exports, "__esModule", { value: true });
51488
- exports.IsoDate = void 0;
51489
- var IsoDate;
51490
- (function (IsoDate) {
51624
+ exports.Date = void 0;
51625
+ var Date;
51626
+ (function (Date) {
51491
51627
  function is(value) {
51492
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));
51493
51629
  }
51494
- IsoDate.is = is;
51630
+ Date.is = is;
51495
51631
  function parse(value, time) {
51496
- 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"));
51497
51633
  }
51498
- IsoDate.parse = parse;
51634
+ Date.parse = parse;
51499
51635
  function create(value) {
51500
51636
  return value.toISOString().substring(0, 10);
51501
51637
  }
51502
- IsoDate.create = create;
51638
+ Date.create = create;
51503
51639
  function now() {
51504
- return create(new Date());
51640
+ return create(new globalThis.Date());
51505
51641
  }
51506
- IsoDate.now = now;
51642
+ Date.now = now;
51507
51643
  function localize(value, locale) {
51508
- const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
51509
- const localeOptions = {
51644
+ return (is(value) ? parse(value) : value)
51645
+ .toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
51510
51646
  year: "numeric",
51511
51647
  month: "2-digit",
51512
51648
  day: "2-digit",
@@ -51514,16 +51650,132 @@ var IsoDate;
51514
51650
  minute: "2-digit",
51515
51651
  second: "2-digit",
51516
51652
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
51517
- };
51518
- return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions).substring(0, 10);
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;
51519
51693
  }
51520
- IsoDate.localize = localize;
51521
- })(IsoDate = exports.IsoDate || (exports.IsoDate = {}));
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 = {}));
51522
51729
  //# sourceMappingURL=Date.js.map
51523
51730
  });
51524
51731
 
51525
51732
  const _Date$1 = /*@__PURE__*/getDefaultExportFromCjs(_Date);
51526
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
+
51527
51779
  var DateTime_1 = createCommonjsModule(function (module, exports) {
51528
51780
  "use strict";
51529
51781
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -51549,7 +51801,7 @@ var DateTime;
51549
51801
  DateTime.now = now;
51550
51802
  function localize(value, locale) {
51551
51803
  const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
51552
- const localeOptions = {
51804
+ return (is(value) ? parse(value) : value).toLocaleString(localeString, {
51553
51805
  year: "numeric",
51554
51806
  month: "2-digit",
51555
51807
  day: "2-digit",
@@ -51557,8 +51809,7 @@ var DateTime;
51557
51809
  minute: "2-digit",
51558
51810
  second: "2-digit",
51559
51811
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
51560
- };
51561
- return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
51812
+ });
51562
51813
  }
51563
51814
  DateTime.localize = localize;
51564
51815
  })(DateTime = exports.DateTime || (exports.DateTime = {}));
@@ -53323,7 +53574,7 @@ var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
53323
53574
  return result;
53324
53575
  };
53325
53576
  Object.defineProperty(exports, "__esModule", { value: true });
53326
- 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;
53327
53578
 
53328
53579
  Object.defineProperty(exports, "CallingCode", { enumerable: true, get: function () { return CallingCode_1.CallingCode; } });
53329
53580
  const CountryCode$1 = __importStar(CountryCode);
@@ -53333,7 +53584,11 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
53333
53584
 
53334
53585
  Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1.CurrencyCode; } });
53335
53586
 
53336
- Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.IsoDate; } });
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; } });
53337
53592
 
53338
53593
  Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1.DateTime; } });
53339
53594
 
@@ -54261,9 +54516,7 @@ const SmoothlyDisplayAmount$1 = class extends HTMLElement {
54261
54516
  format(amount) {
54262
54517
  const digitsPerGroup = 3;
54263
54518
  const defaultDecimals = 2;
54264
- const maxDecimals = (dist$4.Currency.decimalDigits(this.currency)
54265
- ? dist$4.Currency.decimalDigits(this.currency)
54266
- : defaultDecimals);
54519
+ const maxDecimals = (dist$4.Currency.decimalDigits(this.currency) ? dist$4.Currency.decimalDigits(this.currency) : defaultDecimals);
54267
54520
  let beforeSeparator = amount.length;
54268
54521
  let separator;
54269
54522
  let result = amount;
@@ -54991,7 +55244,7 @@ const SmoothlyInput$1 = class extends HTMLElement {
54991
55244
  end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
54992
55245
  direction: backend.selectionDirection ? backend.selectionDirection : "none",
54993
55246
  } });
54994
- if ((!(event.ctrlKey && event.key == "v") && event.key.length == 1) ||
55247
+ if ((!((event.ctrlKey || event.metaKey) && event.key == "v") && event.key.length == 1) ||
54995
55248
  event.key == "ArrowLeft" ||
54996
55249
  event.key == "ArrowRight" ||
54997
55250
  event.key == "Delete" ||
@@ -55133,7 +55386,7 @@ const SmoothlyInputDemo$1 = class extends HTMLElement {
55133
55386
  }
55134
55387
  };
55135
55388
 
55136
- const styleCss$p = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}button.sc-smoothly-input-month{border:none;background:none;cursor:pointer;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
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}";
55137
55390
 
55138
55391
  const MonthSelector = class extends HTMLElement {
55139
55392
  constructor() {
@@ -55144,21 +55397,21 @@ const MonthSelector = class extends HTMLElement {
55144
55397
  onValueChanged(next) {
55145
55398
  this.valueChanged.emit(next);
55146
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
+ }
55147
55406
  render() {
55148
55407
  var _a, _b;
55149
55408
  return [
55150
- h("button", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
55409
+ h("div", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
55151
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)))),
55152
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)))),
55153
- h("button", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
55412
+ h("div", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
55154
55413
  ];
55155
55414
  }
55156
- adjustMonth(delta) {
55157
- var _a;
55158
- const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
55159
- date.setMonth(date.getMonth() + delta);
55160
- this.value = dist$4.Date.create(date);
55161
- }
55162
55415
  static get watchers() { return {
55163
55416
  "value": ["onValueChanged"]
55164
55417
  }; }
@@ -55454,14 +55707,11 @@ const SmoothlyPicker$1 = class extends HTMLElement {
55454
55707
  : this.select(option);
55455
55708
  }
55456
55709
  clearSelection() {
55457
- var _a;
55458
55710
  this.selections = [];
55459
55711
  this.inputElement.focus();
55460
55712
  this.keepFocusOnReRender = true;
55461
- (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(option => (option.description = ""));
55462
55713
  }
55463
55714
  unselect(selection) {
55464
- var _a;
55465
55715
  const index = this.selections.map(selection => selection.value).indexOf(selection.value);
55466
55716
  if (index != -1) {
55467
55717
  this.selections = [
@@ -55470,12 +55720,8 @@ const SmoothlyPicker$1 = class extends HTMLElement {
55470
55720
  ];
55471
55721
  this.keepFocusOnReRender = true;
55472
55722
  }
55473
- const optionIndex = (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(s => s.value).indexOf(selection.value);
55474
- if (optionIndex != -1)
55475
- this.options[optionIndex].description = "";
55476
55723
  }
55477
55724
  select(selection) {
55478
- var _a;
55479
55725
  const isNewSelection = this.selections.reduce((acc, current) => acc && current.value != selection.value, true);
55480
55726
  if (isNewSelection)
55481
55727
  this.selections = this.multiple ? [...this.selections, selection] : [selection];
@@ -55483,8 +55729,6 @@ const SmoothlyPicker$1 = class extends HTMLElement {
55483
55729
  this.filterOptions();
55484
55730
  this.keepFocusOnReRender = true;
55485
55731
  this.isOpen = this.multiple;
55486
- (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(option => (option.description =
55487
- option.value == selection.value ? this.getCheckHtml() : this.multiple ? option.description : ""));
55488
55732
  }
55489
55733
  toggleHighlighted() {
55490
55734
  var _a;
@@ -55544,14 +55788,18 @@ const SmoothlyPicker$1 = class extends HTMLElement {
55544
55788
  "--max-height": (_a = this.maxHeight) !== null && _a !== void 0 ? _a : "inherit",
55545
55789
  "--label-display": this.labelSetting == "hide" ? "none" : "absolute",
55546
55790
  };
55547
- return (h(Host, { style: cssVariables, "has-selection": this.selections.length > 0, "is-open": this.isOpen ? "" : undefined, onMouseDown: (e) => e.preventDefault(), onClick: () => this.onClick() }, h("div", null, h("label", null, this.label), h("input", { type: "text", ref: (el) => (this.inputElement = el ? el : this.inputElement), onFocus: () => this.highlightDefault(), onBlur: () => this.onBlur(), placeholder: this.selections.map(selection => selection.name).join(", "), onKeyDown: e => this.onKeyDown(e), onInput: (e) => this.onInput(e) })), h("smoothly-menu-options", { style: { width: "100%" }, optionStyle: Object.assign({ padding: "0 1em", height: "2.5em" }, this.optionStyle), order: false, emptyMenuLabel: this.emptyMenuLabel, "max-menu-height": this.maxMenuHeight, ref: (el) => (this.menuElement = el !== null && el !== void 0 ? el : this.menuElement), onClick: e => e.stopPropagation(), resetHighlightOnOptionsChange: false, options: [
55548
- {
55549
- value: "select-none",
55550
- name: this.selectNoneName,
55551
- description: this.selections.length == 0 ? this.getCheckHtml() : "",
55552
- },
55553
- ...((_b = this.options) !== null && _b !== void 0 ? _b : []),
55554
- ] })));
55791
+ this.options.forEach(o => {
55792
+ o.description = this.selections.map(s => s.value).includes(o.value) ? this.getCheckHtml() : "";
55793
+ });
55794
+ const options = [
55795
+ {
55796
+ value: "select-none",
55797
+ name: this.selectNoneName,
55798
+ description: this.selections.length == 0 ? this.getCheckHtml() : "",
55799
+ },
55800
+ ...((_b = this.options) !== null && _b !== void 0 ? _b : []),
55801
+ ];
55802
+ return (h(Host, { style: cssVariables, "has-selection": this.selections.length > 0, "is-open": this.isOpen ? "" : undefined, onMouseDown: (e) => e.preventDefault(), onClick: () => this.onClick() }, h("div", null, h("label", null, this.label), h("input", { type: "text", ref: (el) => (this.inputElement = el ? el : this.inputElement), onFocus: () => this.highlightDefault(), onBlur: () => this.onBlur(), placeholder: this.selections.map(selection => selection.name).join(", "), onKeyDown: e => this.onKeyDown(e), onInput: (e) => this.onInput(e) })), h("smoothly-menu-options", { style: { width: "100%" }, optionStyle: Object.assign({ padding: "0 1em", height: "2.5em" }, this.optionStyle), order: false, emptyMenuLabel: this.emptyMenuLabel, "max-menu-height": this.maxMenuHeight, ref: (el) => (this.menuElement = el !== null && el !== void 0 ? el : this.menuElement), onClick: e => e.stopPropagation(), resetHighlightOnOptionsChange: false, options: options })));
55555
55803
  }
55556
55804
  get element() { return this; }
55557
55805
  static get watchers() { return {
@@ -55746,7 +55994,7 @@ const SmoothlySelect$1 = class extends HTMLElement {
55746
55994
  }
55747
55995
  optionSelected() {
55748
55996
  if (this.selectElement)
55749
- 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) });
55750
55998
  }
55751
55999
  componentDidLoad() {
55752
56000
  var _a;
@@ -56132,7 +56380,7 @@ const TableHeader = class extends HTMLElement {
56132
56380
  onClick(event) {
56133
56381
  this.sort.emit({
56134
56382
  property: this.name,
56135
- direction: this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending",
56383
+ direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
56136
56384
  });
56137
56385
  console.log("sort", this.name, this.sortDirection);
56138
56386
  event.preventDefault();