@golemui/gui-lit 0.16.1 → 0.17.0

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 (23) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/{abstract-calendar-YDgwwbqe.js → abstract-calendar-s67Qu3Nt.js} +32 -32
  3. package/{button.element-DxwYDdu6.js → button.element-DoQmGWze.js} +42 -37
  4. package/{calendar-P9DzVryu.js → calendar-aXb9yz-6.js} +1 -1
  5. package/{calendar.element-O2of7VBr.js → calendar.element-D7OF4QVV.js} +1 -1
  6. package/{date-input-D_Swskk4.js → date-input-5Heujc5X.js} +4 -1
  7. package/{date-picker.element-CP2_u_ZE.js → date-picker.element-DStQrD4x.js} +14 -8
  8. package/{date.element-p6aB6OGd.js → date.element-DymfLrlq.js} +1 -1
  9. package/index.js +12 -12
  10. package/index.umd.cjs +72 -78
  11. package/lib/components/date-picker.element.d.ts +1 -0
  12. package/{markdown.element-1IF3G5KX.js → markdown.element-BiAglcXP.js} +109 -105
  13. package/{number.element-zgd4L5hn.js → number.element-DlpxcOBs.js} +23 -39
  14. package/package.json +6 -6
  15. package/{pills-D0yyi-op.js → pills-B66qz_KX.js} +6 -6
  16. package/{radiogroup.element-DzHLgRh1.js → radiogroup.element-tdHrN9V5.js} +1 -1
  17. package/{range-calendar-CZGBBOzO.js → range-calendar-DUoIqmOA.js} +3 -5
  18. package/{range-calendar.element-DQZXvd-L.js → range-calendar.element-D6FO7HpL.js} +1 -1
  19. package/{range-date-input-CcPYH7P3.js → range-date-input-CoFG7Qem.js} +2 -4
  20. package/{range-date-input.element-v71P-oUp.js → range-date-input.element-Cjl1vZfr.js} +1 -1
  21. package/{range-date-picker.element-CA-KcQhA.js → range-date-picker.element-DqjOBKoT.js} +2 -2
  22. package/{select.element-CjWqp9dd.js → select.element-Y9i1tsl-.js} +4 -4
  23. package/{tags.element-ed1_51GA.js → tags.element-B3JP4m0z.js} +2 -4
@@ -5,7 +5,7 @@ import { repeat as f } from "lit-html/directives/repeat.js";
5
5
  import { property as s, customElement as v } from "lit/decorators.js";
6
6
  import { classMap as $ } from "lit/directives/class-map.js";
7
7
  import { G as C, a as D, b as w, c as E } from "./templates-Dk1jxLwS.js";
8
- import { u as S, i as F } from "./one-of-DifUsEYY.js";
8
+ import { u as F, i as S } from "./one-of-DifUsEYY.js";
9
9
  import { consume as x, provide as O } from "@lit/context";
10
10
  import "rxjs";
11
11
  var _ = Object.defineProperty, q = Object.getOwnPropertyDescriptor, l = (t, e, r, i) => {
@@ -54,7 +54,7 @@ let a = class extends m {
54
54
  labelField: this.labelField,
55
55
  valueField: this.valueField
56
56
  }, e = D("select", t);
57
- this.options = S(this.options, {
57
+ this.options = F(this.options, {
58
58
  labelField: this.labelField,
59
59
  valueField: this.valueField
60
60
  }), this.hasMatchingValue = this.options?.length ? this.options.find(({ value: i }) => i === this.value) !== void 0 : !1;
@@ -117,7 +117,7 @@ let a = class extends m {
117
117
  const e = t.target;
118
118
  this.dispatchEvent(
119
119
  new CustomEvent("change", {
120
- detail: { value: F(e.value, this.options) },
120
+ detail: { value: S(e.value, this.options) },
121
121
  bubbles: !0,
122
122
  composed: !0
123
123
  })
@@ -170,7 +170,7 @@ l([
170
170
  s({ type: String })
171
171
  ], a.prototype, "autocomplete", 2);
172
172
  l([
173
- s({ type: String })
173
+ s({ type: Array })
174
174
  ], a.prototype, "options", 2);
175
175
  l([
176
176
  s({ type: String })
@@ -4,7 +4,7 @@ import { LitElement as y, nothing as c, html as m } from "lit";
4
4
  import { property as o, customElement as v } from "lit/decorators.js";
5
5
  import { classMap as f } from "lit/directives/class-map.js";
6
6
  import { G as A, b as P, c as S } from "./templates-Dk1jxLwS.js";
7
- import "./pills-D0yyi-op.js";
7
+ import "./pills-B66qz_KX.js";
8
8
  import { styleMap as _ } from "lit-html/directives/style-map.js";
9
9
  import { consume as E, provide as O } from "@lit/context";
10
10
  import "rxjs";
@@ -172,9 +172,7 @@ let l = class extends y {
172
172
  if (this.disabled || this.readOnly) return;
173
173
  const e = t.clipboardData?.getData("text") ?? "";
174
174
  if (!e) return;
175
- const a = this.getSeparators().filter(
176
- (u) => u !== "Enter" && u !== "Tab" && u !== "blur"
177
- );
175
+ const a = this.getSeparators().filter((u) => u !== "Enter" && u !== "Tab" && u !== "blur");
178
176
  if (a.length === 0) return;
179
177
  const i = new RegExp(
180
178
  `[${a.map((u) => u.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("")}