monobill-mintui 0.3.34 → 0.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -869,10 +869,17 @@ class tt extends HTMLElement {
869
869
  }
870
870
  }
871
871
  get checked() {
872
- return this._checked;
872
+ try {
873
+ return this._checked || !1;
874
+ } catch {
875
+ return !1;
876
+ }
873
877
  }
874
878
  set checked(t) {
875
- t ? this.setAttribute("checked", "") : this.removeAttribute("checked"), this._checked = !!t, this.render();
879
+ try {
880
+ t ? this.setAttribute("checked", "") : this.removeAttribute("checked"), this._checked = !!t, this.render();
881
+ } catch {
882
+ }
876
883
  }
877
884
  isDisabled() {
878
885
  return this.hasAttribute("disabled");
@@ -1935,10 +1942,17 @@ class ht extends HTMLElement {
1935
1942
  }
1936
1943
  }
1937
1944
  get checked() {
1938
- return this._checked;
1945
+ try {
1946
+ return this._checked || !1;
1947
+ } catch {
1948
+ return !1;
1949
+ }
1939
1950
  }
1940
1951
  set checked(t) {
1941
- t ? this.setAttribute("checked", "") : this.removeAttribute("checked"), this._checked = !!t, this._checkbox && (this._checkbox.checked = this._checked), this.updateVisualState();
1952
+ try {
1953
+ t ? this.setAttribute("checked", "") : this.removeAttribute("checked"), this._checked = !!t, this._checkbox && (this._checkbox.checked = this._checked), this.updateVisualState();
1954
+ } catch {
1955
+ }
1942
1956
  }
1943
1957
  isDisabled() {
1944
1958
  return this.hasAttribute("disabled");
@@ -2166,12 +2180,19 @@ class dt extends HTMLElement {
2166
2180
  }
2167
2181
  }
2168
2182
  get checked() {
2169
- return this._checked;
2183
+ try {
2184
+ return this._checked || !1;
2185
+ } catch {
2186
+ return !1;
2187
+ }
2170
2188
  }
2171
2189
  set checked(t) {
2172
- this._checked = !!t, t ? this.setAttribute("checked", "") : this.removeAttribute("checked"), this._radio && (this._radio.checked = this._checked), this.isConnected ? requestAnimationFrame(() => {
2173
- this._updateVisualState();
2174
- }) : this._updateVisualState();
2190
+ try {
2191
+ this._checked = !!t, t ? this.setAttribute("checked", "") : this.removeAttribute("checked"), this._radio && (this._radio.checked = this._checked), this.isConnected ? requestAnimationFrame(() => {
2192
+ this._updateVisualState();
2193
+ }) : this._updateVisualState();
2194
+ } catch {
2195
+ }
2175
2196
  }
2176
2197
  getValue() {
2177
2198
  return this.getAttribute("value") || "";
@@ -2477,10 +2498,17 @@ class ut extends HTMLElement {
2477
2498
  // Define value property for v-model and framework compatibility
2478
2499
  // Vue and other frameworks bind to the value property, not just methods
2479
2500
  get value() {
2480
- return this.getValue();
2501
+ try {
2502
+ return this.getValue() || "";
2503
+ } catch {
2504
+ return "";
2505
+ }
2481
2506
  }
2482
2507
  set value(t) {
2483
- this.setValue(t || "");
2508
+ try {
2509
+ this.setValue(t || "");
2510
+ } catch {
2511
+ }
2484
2512
  }
2485
2513
  render() {
2486
2514
  const t = this.isLoading(), e = this.getLabel(), i = this.getInfo(), s = this.getId() || `mint-choice-${Math.random().toString(36).substr(2, 9)}`;
@@ -2587,10 +2615,17 @@ class pt extends HTMLElement {
2587
2615
  return this._isColor() ? ((t = this._colorPicker) == null ? void 0 : t.value) || ((e = this._colorTextInput) == null ? void 0 : e.value) || this.getAttribute("value") || "#000000" : ((i = this._element) == null ? void 0 : i.value) || this.getAttribute("value") || "";
2588
2616
  }
2589
2617
  set value(t) {
2590
- this._isColor() ? (this._colorPicker && (this._colorPicker.value = t || "#000000"), this._colorTextInput && (this._colorTextInput.value = t || "#000000")) : this._element && (this._element.value = t), t ? this.setAttribute("value", t) : this.removeAttribute("value");
2618
+ try {
2619
+ this._isColor() ? (this._colorPicker && (this._colorPicker.value = t || "#000000"), this._colorTextInput && (this._colorTextInput.value = t || "#000000")) : this._element && (this._element.value = t), t ? this.setAttribute("value", t) : this.removeAttribute("value");
2620
+ } catch {
2621
+ }
2591
2622
  }
2592
2623
  get value() {
2593
- return this.getValue();
2624
+ try {
2625
+ return this.getValue() || "";
2626
+ } catch {
2627
+ return "";
2628
+ }
2594
2629
  }
2595
2630
  isDisabled() {
2596
2631
  return this.hasAttribute("disabled");
@@ -2871,10 +2906,17 @@ class ft extends HTMLElement {
2871
2906
  // Define value property for v-model and framework compatibility
2872
2907
  // Vue and other frameworks bind to the value property, not just methods
2873
2908
  get value() {
2874
- return this.getValue();
2909
+ try {
2910
+ return this.getValue() || "";
2911
+ } catch {
2912
+ return "";
2913
+ }
2875
2914
  }
2876
2915
  set value(t) {
2877
- this.setValue(t || "");
2916
+ try {
2917
+ this.setValue(t || "");
2918
+ } catch {
2919
+ }
2878
2920
  }
2879
2921
  getFormat() {
2880
2922
  return this.getAttribute("format") || "mm/dd/yyyy";
@@ -3825,15 +3867,22 @@ class mt extends HTMLElement {
3825
3867
  // Define value property for v-model and framework compatibility
3826
3868
  // Vue and other frameworks bind to the value property, not just the attribute
3827
3869
  get value() {
3828
- return this.getValue();
3870
+ try {
3871
+ return this.getValue() || "";
3872
+ } catch {
3873
+ return "";
3874
+ }
3829
3875
  }
3830
3876
  set value(t) {
3831
- const e = t || "";
3832
- (this.getAttribute("value") || "") !== e && this.setAttribute("value", e), this._select && requestAnimationFrame(() => {
3833
- this._select && (e === "" || Array.from(this._select.options).some(
3834
- (n) => n.value === e
3835
- )) && this._select.value !== e && (this._select.value = e);
3836
- });
3877
+ try {
3878
+ const e = t || "";
3879
+ (this.getAttribute("value") || "") !== e && this.setAttribute("value", e), this._select && requestAnimationFrame(() => {
3880
+ this._select && (e === "" || Array.from(this._select.options).some(
3881
+ (n) => n.value === e
3882
+ )) && this._select.value !== e && (this._select.value = e);
3883
+ });
3884
+ } catch {
3885
+ }
3837
3886
  }
3838
3887
  isDisabled() {
3839
3888
  return this.hasAttribute("disabled");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monobill-mintui",
3
- "version": "0.3.34",
3
+ "version": "0.3.35",
4
4
  "description": "A modern framework-agnostic UI kit built as Web Components. Requires Tailwind CSS.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",