smoothly 0.1.66 → 0.1.70

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 (73) 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-2a5f8661.js → index-c973259c.js} +16 -0
  4. package/dist/cjs/{index-b8688617.js → index-e37f73fe.js} +89 -19
  5. package/dist/cjs/index.cjs.js +1 -1
  6. package/dist/cjs/smoothly-accordion_43.cjs.entry.js +120 -54
  7. package/dist/cjs/smoothly-calendar.cjs.entry.js +7 -7
  8. package/dist/cjs/smoothly-dialog.cjs.entry.js +1 -1
  9. package/dist/cjs/smoothly-display-amount.cjs.entry.js +1 -1
  10. package/dist/cjs/smoothly-display-demo.cjs.entry.js +1 -1
  11. package/dist/cjs/smoothly-frame.cjs.entry.js +1 -1
  12. package/dist/cjs/smoothly-input-date-range.cjs.entry.js +1 -1
  13. package/dist/cjs/smoothly-input-date.cjs.entry.js +1 -1
  14. package/dist/cjs/smoothly-input-month.cjs.entry.js +11 -11
  15. package/dist/cjs/smoothly-input.cjs.entry.js +1 -1
  16. package/dist/cjs/smoothly-picker.cjs.entry.js +12 -17
  17. package/dist/cjs/smoothly-table-expandable-cell.cjs.entry.js +2 -2
  18. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  19. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  20. package/dist/collection/components/calendar/generate.js +2 -1
  21. package/dist/collection/components/calendar/index.js +4 -4
  22. package/dist/collection/components/calendar/style.css +29 -11
  23. package/dist/collection/components/input/index.js +1 -1
  24. package/dist/collection/components/input-month/index.js +8 -8
  25. package/dist/collection/components/input-month/style.css +0 -6
  26. package/dist/collection/components/picker/index.js +12 -17
  27. package/dist/collection/components/table/exandable/cell/index.js +3 -2
  28. package/dist/collection/components/table/exandable/cell/style.css +1 -1
  29. package/dist/custom-elements/index.js +136 -54
  30. package/dist/esm/{Trigger-c637fedf.js → Trigger-d7b181ec.js} +16 -0
  31. package/dist/esm/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
  32. package/dist/esm/{index-046ba252.js → index-13251390.js} +89 -19
  33. package/dist/{smoothly/index-71e3ce99.js → esm/index-531e2f06.js} +16 -0
  34. package/dist/esm/index.js +1 -1
  35. package/dist/esm/smoothly-accordion_43.entry.js +120 -54
  36. package/dist/esm/smoothly-calendar.entry.js +7 -7
  37. package/dist/esm/smoothly-dialog.entry.js +1 -1
  38. package/dist/esm/smoothly-display-amount.entry.js +1 -1
  39. package/dist/esm/smoothly-display-demo.entry.js +1 -1
  40. package/dist/esm/smoothly-frame.entry.js +1 -1
  41. package/dist/esm/smoothly-input-date-range.entry.js +1 -1
  42. package/dist/esm/smoothly-input-date.entry.js +1 -1
  43. package/dist/esm/smoothly-input-month.entry.js +11 -11
  44. package/dist/esm/smoothly-input.entry.js +1 -1
  45. package/dist/esm/smoothly-picker.entry.js +12 -17
  46. package/dist/esm/smoothly-table-expandable-cell.entry.js +2 -2
  47. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  48. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  49. package/dist/smoothly/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
  50. package/dist/smoothly/{index-046ba252.js → index-13251390.js} +89 -19
  51. package/dist/{esm/index-71e3ce99.js → smoothly/index-531e2f06.js} +16 -0
  52. package/dist/smoothly/index.esm.js +1 -1
  53. package/dist/smoothly/p-2cda1784.js +1 -0
  54. package/dist/smoothly/p-2e35abfc.entry.js +1 -0
  55. package/dist/smoothly/{p-24d838b1.entry.js → p-89fe12b0.entry.js} +1 -1
  56. package/dist/smoothly/{p-77f6d4bf.entry.js → p-e79800d9.entry.js} +1 -1
  57. package/dist/smoothly/smoothly-calendar.entry.js +7 -7
  58. package/dist/smoothly/smoothly-dialog.entry.js +1 -1
  59. package/dist/smoothly/smoothly-display-amount.entry.js +1 -1
  60. package/dist/smoothly/smoothly-display-demo.entry.js +1 -1
  61. package/dist/smoothly/smoothly-frame.entry.js +1 -1
  62. package/dist/smoothly/smoothly-input-date-range.entry.js +1 -1
  63. package/dist/smoothly/smoothly-input-date.entry.js +1 -1
  64. package/dist/smoothly/smoothly-input-month.entry.js +11 -11
  65. package/dist/smoothly/smoothly-input.entry.js +1 -1
  66. package/dist/smoothly/smoothly-picker.entry.js +12 -17
  67. package/dist/smoothly/smoothly-table-expandable-cell.entry.js +2 -2
  68. package/dist/smoothly/smoothly-trigger-sink.entry.js +1 -1
  69. package/dist/smoothly/smoothly-trigger-source.entry.js +1 -1
  70. package/dist/types/components/input-month/index.d.ts +1 -1
  71. package/package.json +2 -2
  72. package/dist/smoothly/p-08ef34d4.js +0 -1
  73. package/dist/smoothly/p-8ff541af.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, a as getElement, c as createEvent, H as Host } from './index-9d550804.js';
2
2
  import { A as App, N as Notice } from './Notice-966edc54.js';
3
- import { T as Trigger, M as Message } from './Trigger-c637fedf.js';
3
+ import { T as Trigger, M as Message } from './Trigger-d7b181ec.js';
4
4
 
5
5
  const styleCss$z = "smoothly-accordion-item.sc-smoothly-accordion{border:1px solid rgb(var(--smoothly-dark-color));border-bottom:none}smoothly-accordion-item.sc-smoothly-accordion:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px;margin-top:0.4em}smoothly-accordion-item.sc-smoothly-accordion:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:1px solid rgb(var(--smoothly-dark-color));margin-bottom:0.6em}smoothly-accordion-item[open].sc-smoothly-accordion{border-color:rgb(var(--smoothly-primary-color));border-bottom:1px solid rgb(var(--smoothly-primary-color))}smoothly-accordion-item[open].sc-smoothly-accordion+smoothly-accordion-item.sc-smoothly-accordion{border-top:none}";
6
6
 
@@ -16543,27 +16543,27 @@ exports.CurrencyCode = void 0;
16543
16543
 
16544
16544
  var _Date$1 = createCommonjsModule(function (module, exports) {
16545
16545
  Object.defineProperty(exports, "__esModule", { value: true });
16546
- exports.IsoDate = void 0;
16547
- (function (IsoDate) {
16546
+ exports.Date = void 0;
16547
+ (function (Date) {
16548
16548
  function is(value) {
16549
16549
  return (typeof value == "string" && /^(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)$/.test(value));
16550
16550
  }
16551
- IsoDate.is = is;
16551
+ Date.is = is;
16552
16552
  function parse(value, time) {
16553
- return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
16553
+ return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
16554
16554
  }
16555
- IsoDate.parse = parse;
16555
+ Date.parse = parse;
16556
16556
  function create(value) {
16557
16557
  return value.toISOString().substring(0, 10);
16558
16558
  }
16559
- IsoDate.create = create;
16559
+ Date.create = create;
16560
16560
  function now() {
16561
- return create(new Date());
16561
+ return create(new globalThis.Date());
16562
16562
  }
16563
- IsoDate.now = now;
16563
+ Date.now = now;
16564
16564
  function localize(value, locale) {
16565
- const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
16566
- const localeOptions = {
16565
+ return (is(value) ? parse(value) : value)
16566
+ .toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
16567
16567
  year: "numeric",
16568
16568
  month: "2-digit",
16569
16569
  day: "2-digit",
@@ -16571,11 +16571,82 @@ exports.IsoDate = void 0;
16571
16571
  minute: "2-digit",
16572
16572
  second: "2-digit",
16573
16573
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
16574
- };
16575
- return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions).substring(0, 10);
16574
+ })
16575
+ .substring(0, 10);
16576
16576
  }
16577
- IsoDate.localize = localize;
16578
- })(exports.IsoDate || (exports.IsoDate = {}));
16577
+ Date.localize = localize;
16578
+ function next(date, days = 1) {
16579
+ let result;
16580
+ if (typeof days == "number") {
16581
+ const r = parse(date);
16582
+ r.setDate(r.getDate() + days);
16583
+ result = Date.create(r);
16584
+ }
16585
+ else {
16586
+ result = date;
16587
+ if (days.years)
16588
+ result = nextYear(result, days.years);
16589
+ if (days.months)
16590
+ result = nextMonth(result, days.months);
16591
+ if (days.days)
16592
+ result = next(result, days.days);
16593
+ }
16594
+ return result;
16595
+ }
16596
+ Date.next = next;
16597
+ function previous(date, days = 1) {
16598
+ let result;
16599
+ if (typeof days == "number") {
16600
+ const r = parse(date);
16601
+ r.setDate(r.getDate() - days);
16602
+ result = Date.create(r);
16603
+ }
16604
+ else {
16605
+ result = date;
16606
+ if (days.years)
16607
+ result = previousYear(result, days.years);
16608
+ if (days.months)
16609
+ result = previousMonth(result, days.months);
16610
+ if (days.days)
16611
+ result = previous(result, days.days);
16612
+ }
16613
+ return result;
16614
+ }
16615
+ Date.previous = previous;
16616
+ function nextMonth(date, months = 1) {
16617
+ const result = parse(date);
16618
+ result.setMonth(result.getMonth() + months);
16619
+ return Date.create(result);
16620
+ }
16621
+ Date.nextMonth = nextMonth;
16622
+ function previousMonth(date, months = 1) {
16623
+ return nextMonth(date, -months);
16624
+ }
16625
+ Date.previousMonth = previousMonth;
16626
+ function nextYear(date, years = 1) {
16627
+ const result = parse(date);
16628
+ result.setFullYear(result.getFullYear() + years);
16629
+ return Date.create(result);
16630
+ }
16631
+ Date.nextYear = nextYear;
16632
+ function previousYear(date, years = 1) {
16633
+ return nextYear(date, -years);
16634
+ }
16635
+ Date.previousYear = previousYear;
16636
+ function firstOfMonth(date) {
16637
+ const result = parse(date);
16638
+ result.setDate(1);
16639
+ return Date.create(result);
16640
+ }
16641
+ Date.firstOfMonth = firstOfMonth;
16642
+ function lastOfMonth(date) {
16643
+ const result = parse(date);
16644
+ result.setMonth(result.getMonth() + 1);
16645
+ result.setDate(-1);
16646
+ return Date.create(result);
16647
+ }
16648
+ Date.lastOfMonth = lastOfMonth;
16649
+ })(exports.Date || (exports.Date = {}));
16579
16650
  //# sourceMappingURL=Date.js.map
16580
16651
  });
16581
16652
 
@@ -16602,7 +16673,7 @@ exports.DateTime = void 0;
16602
16673
  DateTime.now = now;
16603
16674
  function localize(value, locale) {
16604
16675
  const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
16605
- const localeOptions = {
16676
+ return (is(value) ? parse(value) : value).toLocaleString(localeString, {
16606
16677
  year: "numeric",
16607
16678
  month: "2-digit",
16608
16679
  day: "2-digit",
@@ -16610,8 +16681,7 @@ exports.DateTime = void 0;
16610
16681
  minute: "2-digit",
16611
16682
  second: "2-digit",
16612
16683
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
16613
- };
16614
- return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
16684
+ });
16615
16685
  }
16616
16686
  DateTime.localize = localize;
16617
16687
  })(exports.DateTime || (exports.DateTime = {}));
@@ -18358,7 +18428,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
18358
18428
 
18359
18429
  Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1$2.CurrencyCode; } });
18360
18430
 
18361
- Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$1.IsoDate; } });
18431
+ Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$1.Date; } });
18362
18432
 
18363
18433
  Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1$2.DateTime; } });
18364
18434
 
@@ -18382,7 +18452,8 @@ function month(date) {
18382
18452
  d.setDate(day++);
18383
18453
  r.push(dist$4.Date.create(d));
18384
18454
  }
18385
- result.push(r);
18455
+ if (row < 5 || dist$4.Date.firstOfMonth(r[0]) == dist$4.Date.firstOfMonth(date))
18456
+ result.push(r);
18386
18457
  }
18387
18458
  return result;
18388
18459
  }
@@ -18427,7 +18498,7 @@ function years(current) {
18427
18498
  return result;
18428
18499
  }
18429
18500
 
18430
- const styleCss$w = ".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))}";
18501
+ const styleCss$w = ".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:0.5em 0.5em 0 0.5em}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade));cursor:pointer;user-select:none}td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-tint))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-tint), var(--other-month-opacity))}td.sc-smoothly-calendar:not(.selected):hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-dark-tint));color:rgb(var(--smoothly-dark-contrast))}td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}";
18431
18502
 
18432
18503
  const Calendar = class {
18433
18504
  constructor(hostRef) {
@@ -18452,7 +18523,7 @@ const Calendar = class {
18452
18523
  event.stopPropagation();
18453
18524
  } }),
18454
18525
  h("table", null, h("thead", null, h("tr", null, weekdays().map(day => (h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
18455
- var _a, _b;
18526
+ var _a, _b, _c;
18456
18527
  return (h("td", { tabindex: 1, onClick: () => {
18457
18528
  this.valueChanged.emit((this.value = date));
18458
18529
  this.clickCounter += 1;
@@ -18465,9 +18536,9 @@ const Calendar = class {
18465
18536
  this.start = date;
18466
18537
  }
18467
18538
  }, class: (date == this.value ? ["selected"] : [])
18468
- .concat(...(date == dist$4.Date.now() ? ["today"] : []), date == this.value ? ["selected"] : [], this.doubleInput
18469
- ? dist$4.Date.parse(date) >= dist$4.Date.parse((_a = this.start) !== null && _a !== void 0 ? _a : "") &&
18470
- dist$4.Date.parse(date) <= dist$4.Date.parse((_b = this.end) !== null && _b !== void 0 ? _b : "")
18539
+ .concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
18540
+ ? dist$4.Date.parse(date) >= dist$4.Date.parse((_b = this.start) !== null && _b !== void 0 ? _b : "") &&
18541
+ dist$4.Date.parse(date) <= dist$4.Date.parse((_c = this.end) !== null && _c !== void 0 ? _c : "")
18471
18542
  ? ["dateRange"]
18472
18543
  : []
18473
18544
  : "")
@@ -52030,7 +52101,7 @@ const SmoothlyInput = class {
52030
52101
  end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
52031
52102
  direction: backend.selectionDirection ? backend.selectionDirection : "none",
52032
52103
  } });
52033
- if ((!(event.ctrlKey && event.key == "v") && event.key.length == 1) ||
52104
+ if ((!((event.ctrlKey || event.metaKey) && event.key == "v") && event.key.length == 1) ||
52034
52105
  event.key == "ArrowLeft" ||
52035
52106
  event.key == "ArrowRight" ||
52036
52107
  event.key == "Delete" ||
@@ -52169,7 +52240,7 @@ const SmoothlyInputDemo = class {
52169
52240
  }
52170
52241
  };
52171
52242
 
52172
- const styleCss$k = ".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}";
52243
+ const styleCss$k = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
52173
52244
 
52174
52245
  const MonthSelector = class {
52175
52246
  constructor(hostRef) {
@@ -52179,21 +52250,21 @@ const MonthSelector = class {
52179
52250
  onValueChanged(next) {
52180
52251
  this.valueChanged.emit(next);
52181
52252
  }
52253
+ adjustMonth(delta) {
52254
+ var _a;
52255
+ const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
52256
+ date.setMonth(date.getMonth() + delta);
52257
+ this.value = dist$4.Date.create(date);
52258
+ }
52182
52259
  render() {
52183
52260
  var _a, _b;
52184
52261
  return [
52185
- h("button", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
52262
+ h("div", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
52186
52263
  h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, years((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now()).map(year => (h("smoothly-item", { value: year.date, selected: year.selected }, year.name)))),
52187
52264
  h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, months((_b = this.value) !== null && _b !== void 0 ? _b : dist$4.Date.now()).map(month => (h("smoothly-item", { value: month.date, selected: month.selected }, month.name)))),
52188
- h("button", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
52265
+ h("div", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
52189
52266
  ];
52190
52267
  }
52191
- adjustMonth(delta) {
52192
- var _a;
52193
- const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
52194
- date.setMonth(date.getMonth() + delta);
52195
- this.value = dist$4.Date.create(date);
52196
- }
52197
52268
  static get watchers() { return {
52198
52269
  "value": ["onValueChanged"]
52199
52270
  }; }
@@ -52480,14 +52551,11 @@ const SmoothlyPicker = class {
52480
52551
  : this.select(option);
52481
52552
  }
52482
52553
  clearSelection() {
52483
- var _a;
52484
52554
  this.selections = [];
52485
52555
  this.inputElement.focus();
52486
52556
  this.keepFocusOnReRender = true;
52487
- (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(option => (option.description = ""));
52488
52557
  }
52489
52558
  unselect(selection) {
52490
- var _a;
52491
52559
  const index = this.selections.map(selection => selection.value).indexOf(selection.value);
52492
52560
  if (index != -1) {
52493
52561
  this.selections = [
@@ -52496,12 +52564,8 @@ const SmoothlyPicker = class {
52496
52564
  ];
52497
52565
  this.keepFocusOnReRender = true;
52498
52566
  }
52499
- const optionIndex = (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(s => s.value).indexOf(selection.value);
52500
- if (optionIndex != -1)
52501
- this.options[optionIndex].description = "";
52502
52567
  }
52503
52568
  select(selection) {
52504
- var _a;
52505
52569
  const isNewSelection = this.selections.reduce((acc, current) => acc && current.value != selection.value, true);
52506
52570
  if (isNewSelection)
52507
52571
  this.selections = this.multiple ? [...this.selections, selection] : [selection];
@@ -52509,8 +52573,6 @@ const SmoothlyPicker = class {
52509
52573
  this.filterOptions();
52510
52574
  this.keepFocusOnReRender = true;
52511
52575
  this.isOpen = this.multiple;
52512
- (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(option => (option.description =
52513
- option.value == selection.value ? this.getCheckHtml() : this.multiple ? option.description : ""));
52514
52576
  }
52515
52577
  toggleHighlighted() {
52516
52578
  var _a;
@@ -52570,14 +52632,18 @@ const SmoothlyPicker = class {
52570
52632
  "--max-height": (_a = this.maxHeight) !== null && _a !== void 0 ? _a : "inherit",
52571
52633
  "--label-display": this.labelSetting == "hide" ? "none" : "absolute",
52572
52634
  };
52573
- 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: [
52574
- {
52575
- value: "select-none",
52576
- name: this.selectNoneName,
52577
- description: this.selections.length == 0 ? this.getCheckHtml() : "",
52578
- },
52579
- ...((_b = this.options) !== null && _b !== void 0 ? _b : []),
52580
- ] })));
52635
+ this.options.forEach(o => {
52636
+ o.description = this.selections.map(s => s.value).includes(o.value) ? this.getCheckHtml() : "";
52637
+ });
52638
+ const options = [
52639
+ {
52640
+ value: "select-none",
52641
+ name: this.selectNoneName,
52642
+ description: this.selections.length == 0 ? this.getCheckHtml() : "",
52643
+ },
52644
+ ...((_b = this.options) !== null && _b !== void 0 ? _b : []),
52645
+ ];
52646
+ 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 })));
52581
52647
  }
52582
52648
  get element() { return getElement(this); }
52583
52649
  static get watchers() { return {
@@ -52948,7 +53014,7 @@ const TableDemo = class {
52948
53014
  };
52949
53015
  TableDemo.style = styleCss$5;
52950
53016
 
52951
- const styleCss$4 = ".sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.5em}.sc-smoothly-table-expandable-cell-h>tr.sc-smoothly-table-expandable-cell{display:none}";
53017
+ const styleCss$4 = ".sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.5em}.hide.sc-smoothly-table-expandable-cell{display:none}";
52952
53018
 
52953
53019
  const TableExpandableCell = class {
52954
53020
  constructor(hostRef) {
@@ -52977,7 +53043,7 @@ const TableExpandableCell = class {
52977
53043
  }
52978
53044
  }
52979
53045
  render() {
52980
- return (h(Host, { style: { textAlign: this.align } }, h("slot", null), h("tr", { ref: e => (this.expansionElement = e) }, this.open ? (h("td", { colSpan: 500 }, h("slot", { name: "detail" }))) : ([]))));
53046
+ 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" })))));
52981
53047
  }
52982
53048
  get element() { return getElement(this); }
52983
53049
  static get watchers() { return {
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, i as createEvent, h, j as getElement } from './index-0dd5f791.js';
2
- import { d as dist } from './index-046ba252.js';
3
- import { w as weekdays, m as month } from './generate-fc812e0f.js';
2
+ import { d as dist } from './index-13251390.js';
3
+ import { w as weekdays, m as month } from './generate-7090dc14.js';
4
4
  import './_commonjsHelpers-8fe71198.js';
5
5
 
6
- const styleCss = ".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))}";
6
+ const styleCss = ".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))}";
7
7
 
8
8
  const Calendar = class {
9
9
  constructor(hostRef) {
@@ -28,7 +28,7 @@ const Calendar = class {
28
28
  event.stopPropagation();
29
29
  } }),
30
30
  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 => {
31
- var _a, _b;
31
+ var _a, _b, _c;
32
32
  return (h("td", { tabindex: 1, onClick: () => {
33
33
  this.valueChanged.emit((this.value = date));
34
34
  this.clickCounter += 1;
@@ -41,9 +41,9 @@ const Calendar = class {
41
41
  this.start = date;
42
42
  }
43
43
  }, class: (date == this.value ? ["selected"] : [])
44
- .concat(...(date == dist.Date.now() ? ["today"] : []), date == this.value ? ["selected"] : [], this.doubleInput
45
- ? dist.Date.parse(date) >= dist.Date.parse((_a = this.start) !== null && _a !== void 0 ? _a : "") &&
46
- dist.Date.parse(date) <= dist.Date.parse((_b = this.end) !== null && _b !== void 0 ? _b : "")
44
+ .concat(...(date == dist.Date.now() ? ["today"] : []), dist.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
45
+ ? dist.Date.parse(date) >= dist.Date.parse((_b = this.start) !== null && _b !== void 0 ? _b : "") &&
46
+ dist.Date.parse(date) <= dist.Date.parse((_c = this.end) !== null && _c !== void 0 ? _c : "")
47
47
  ? ["dateRange"]
48
48
  : []
49
49
  : "")
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, k as Host } from './index-0dd5f791.js';
2
- import { T as Trigger } from './index-71e3ce99.js';
2
+ import { T as Trigger } from './index-531e2f06.js';
3
3
 
4
4
  const styleCss = ".sc-smoothly-dialog-h{display:block;position:fixed;left:0;top:0;width:100%;height:100%;z-index:1;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent)) !important}[hidden].sc-smoothly-dialog-h{display:none}.sc-smoothly-dialog-h>header.sc-smoothly-dialog{border-top-left-radius:8px;border-top-right-radius:8px;margin-top:2em;color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color));border-color:rgb(var(--smoothly-primary-color))}.sc-smoothly-dialog-h:not([header]) header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>*.sc-smoothly-dialog{position:relative;color:rgb(var(--smoothly-default-contrast));background-color:rgb(var(--smoothly-default-color));border-color:rgb(var(--smoothly-color));border-width:1px;border-style:solid;max-width:40em;width:calc(100vw - 4em - 2px);max-height:calc(100vh - 6em - 2px);height:auto;margin-left:auto;margin-right:auto;border-collapse:collapse}.sc-smoothly-dialog-h>main.sc-smoothly-dialog{border-bottom-left-radius:8px;border-bottom-right-radius:8px;margin-bottom:2em;border:1px solid rgb(var(--smoothly-default-contrast));box-sizing:border-box;overflow:hidden}.sc-smoothly-dialog-h:not([header]) main.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance } from './index-0dd5f791.js';
2
- import { d as dist } from './index-046ba252.js';
2
+ import { d as dist } from './index-13251390.js';
3
3
  import './_commonjsHelpers-8fe71198.js';
4
4
 
5
5
  const styleCss = ".sc-smoothly-display-amount-h{display:block}[hidden].sc-smoothly-display-amount-h{display:none}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, i as createEvent, h } from './index-0dd5f791.js';
2
- import { N as Notice } from './index-71e3ce99.js';
2
+ import { N as Notice } from './index-531e2f06.js';
3
3
 
4
4
  const SmoothlyDisplayDemo = class {
5
5
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, i as createEvent, h, j as getElement } from './index-0dd5f791.js';
2
- import { M as Message, T as Trigger } from './index-71e3ce99.js';
2
+ import { M as Message, T as Trigger } from './index-531e2f06.js';
3
3
 
4
4
  const styleCss = ".sc-smoothly-frame-h{display:block;width:100%;height:100%}[hidden].sc-smoothly-frame-h{display:none}.sc-smoothly-frame-h>iframe.sc-smoothly-frame{border:none;padding:none;margin:none}";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, i as createEvent, h } from './index-0dd5f791.js';
2
- import { d as dist } from './index-046ba252.js';
2
+ import { d as dist } from './index-13251390.js';
3
3
  import './_commonjsHelpers-8fe71198.js';
4
4
 
5
5
  const styleCss = ".sc-smoothly-input-date-range-h{position:relative;display:block}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--smoothly-default-shade));max-width:22em}.sc-smoothly-input-date-range-h>div.sc-smoothly-input-date-range{position:fixed;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>.arrow.sc-smoothly-input-date-range{position:absolute;z-index:9;transform:translate(10em, -.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-default-shade))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-date-range-h>smoothly-input.sc-smoothly-input-date-range{padding:0}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, i as createEvent, h } from './index-0dd5f791.js';
2
- import { d as dist } from './index-046ba252.js';
2
+ import { d as dist } from './index-13251390.js';
3
3
  import './_commonjsHelpers-8fe71198.js';
4
4
 
5
5
  const styleCss = ".sc-smoothly-input-date-h{position:relative}nav.sc-smoothly-input-date{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--smoothly-default-shade));max-width:22em}.sc-smoothly-input-date-h>div.sc-smoothly-input-date{position:fixed;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>.arrow.sc-smoothly-input-date{position:absolute;z-index:9;transform:translate(2em, -.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-default-shade))}";
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, i as createEvent, h } from './index-0dd5f791.js';
2
- import { d as dist } from './index-046ba252.js';
3
- import { y as years, a as months } from './generate-fc812e0f.js';
2
+ import { d as dist } from './index-13251390.js';
3
+ import { y as years, a as months } from './generate-7090dc14.js';
4
4
  import './_commonjsHelpers-8fe71198.js';
5
5
 
6
- const styleCss = ".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}";
6
+ const styleCss = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
7
7
 
8
8
  const MonthSelector = class {
9
9
  constructor(hostRef) {
@@ -13,21 +13,21 @@ const MonthSelector = class {
13
13
  onValueChanged(next) {
14
14
  this.valueChanged.emit(next);
15
15
  }
16
+ adjustMonth(delta) {
17
+ var _a;
18
+ const date = dist.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist.Date.now());
19
+ date.setMonth(date.getMonth() + delta);
20
+ this.value = dist.Date.create(date);
21
+ }
16
22
  render() {
17
23
  var _a, _b;
18
24
  return [
19
- h("button", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
25
+ h("div", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
20
26
  h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, years((_a = this.value) !== null && _a !== void 0 ? _a : dist.Date.now()).map(year => (h("smoothly-item", { value: year.date, selected: year.selected }, year.name)))),
21
27
  h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, months((_b = this.value) !== null && _b !== void 0 ? _b : dist.Date.now()).map(month => (h("smoothly-item", { value: month.date, selected: month.selected }, month.name)))),
22
- h("button", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
28
+ h("div", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
23
29
  ];
24
30
  }
25
- adjustMonth(delta) {
26
- var _a;
27
- const date = dist.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist.Date.now());
28
- date.setMonth(date.getMonth() + delta);
29
- this.value = dist.Date.create(date);
30
- }
31
31
  static get watchers() { return {
32
32
  "value": ["onValueChanged"]
33
33
  }; }
@@ -84,7 +84,7 @@ const SmoothlyInput = class {
84
84
  end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
85
85
  direction: backend.selectionDirection ? backend.selectionDirection : "none",
86
86
  } });
87
- if ((!(event.ctrlKey && event.key == "v") && event.key.length == 1) ||
87
+ if ((!((event.ctrlKey || event.metaKey) && event.key == "v") && event.key.length == 1) ||
88
88
  event.key == "ArrowLeft" ||
89
89
  event.key == "ArrowRight" ||
90
90
  event.key == "Delete" ||
@@ -36,14 +36,11 @@ const SmoothlyPicker = class {
36
36
  : this.select(option);
37
37
  }
38
38
  clearSelection() {
39
- var _a;
40
39
  this.selections = [];
41
40
  this.inputElement.focus();
42
41
  this.keepFocusOnReRender = true;
43
- (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(option => (option.description = ""));
44
42
  }
45
43
  unselect(selection) {
46
- var _a;
47
44
  const index = this.selections.map(selection => selection.value).indexOf(selection.value);
48
45
  if (index != -1) {
49
46
  this.selections = [
@@ -52,12 +49,8 @@ const SmoothlyPicker = class {
52
49
  ];
53
50
  this.keepFocusOnReRender = true;
54
51
  }
55
- const optionIndex = (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(s => s.value).indexOf(selection.value);
56
- if (optionIndex != -1)
57
- this.options[optionIndex].description = "";
58
52
  }
59
53
  select(selection) {
60
- var _a;
61
54
  const isNewSelection = this.selections.reduce((acc, current) => acc && current.value != selection.value, true);
62
55
  if (isNewSelection)
63
56
  this.selections = this.multiple ? [...this.selections, selection] : [selection];
@@ -65,8 +58,6 @@ const SmoothlyPicker = class {
65
58
  this.filterOptions();
66
59
  this.keepFocusOnReRender = true;
67
60
  this.isOpen = this.multiple;
68
- (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(option => (option.description =
69
- option.value == selection.value ? this.getCheckHtml() : this.multiple ? option.description : ""));
70
61
  }
71
62
  toggleHighlighted() {
72
63
  var _a;
@@ -126,14 +117,18 @@ const SmoothlyPicker = class {
126
117
  "--max-height": (_a = this.maxHeight) !== null && _a !== void 0 ? _a : "inherit",
127
118
  "--label-display": this.labelSetting == "hide" ? "none" : "absolute",
128
119
  };
129
- 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: [
130
- {
131
- value: "select-none",
132
- name: this.selectNoneName,
133
- description: this.selections.length == 0 ? this.getCheckHtml() : "",
134
- },
135
- ...((_b = this.options) !== null && _b !== void 0 ? _b : []),
136
- ] })));
120
+ this.options.forEach(o => {
121
+ o.description = this.selections.map(s => s.value).includes(o.value) ? this.getCheckHtml() : "";
122
+ });
123
+ const options = [
124
+ {
125
+ value: "select-none",
126
+ name: this.selectNoneName,
127
+ description: this.selections.length == 0 ? this.getCheckHtml() : "",
128
+ },
129
+ ...((_b = this.options) !== null && _b !== void 0 ? _b : []),
130
+ ];
131
+ 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 })));
137
132
  }
138
133
  get element() { return getElement(this); }
139
134
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, i as createEvent, h, k as Host, j as getElement } from './index-0dd5f791.js';
2
2
 
3
- const styleCss = ".sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.5em}.sc-smoothly-table-expandable-cell-h>tr.sc-smoothly-table-expandable-cell{display:none}";
3
+ const styleCss = ".sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.5em}.hide.sc-smoothly-table-expandable-cell{display:none}";
4
4
 
5
5
  const TableExpandableCell = class {
6
6
  constructor(hostRef) {
@@ -29,7 +29,7 @@ const TableExpandableCell = class {
29
29
  }
30
30
  }
31
31
  render() {
32
- return (h(Host, { style: { textAlign: this.align } }, h("slot", null), h("tr", { ref: e => (this.expansionElement = e) }, this.open ? (h("td", { colSpan: 500 }, h("slot", { name: "detail" }))) : ([]))));
32
+ 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" })))));
33
33
  }
34
34
  get element() { return getElement(this); }
35
35
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-0dd5f791.js';
2
- import { T as Trigger, M as Message } from './index-71e3ce99.js';
2
+ import { T as Trigger, M as Message } from './index-531e2f06.js';
3
3
 
4
4
  const styleCss = ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, i as createEvent, h, j as getElement } from './index-0dd5f791.js';
2
- import { M as Message, T as Trigger } from './index-71e3ce99.js';
2
+ import { M as Message, T as Trigger } from './index-531e2f06.js';
3
3
 
4
4
  const styleCss = ".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";
5
5
 
@@ -1,4 +1,4 @@
1
- import { d as dist } from './index-046ba252.js';
1
+ import { d as dist } from './index-13251390.js';
2
2
 
3
3
  function month(date) {
4
4
  const d = new Date(date);
@@ -12,7 +12,8 @@ function month(date) {
12
12
  d.setDate(day++);
13
13
  r.push(dist.Date.create(d));
14
14
  }
15
- result.push(r);
15
+ if (row < 5 || dist.Date.firstOfMonth(r[0]) == dist.Date.firstOfMonth(date))
16
+ result.push(r);
16
17
  }
17
18
  return result;
18
19
  }