@quidgest/ui 0.14.6 → 0.14.8

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 (126) hide show
  1. package/dist/ui.css +1 -6
  2. package/dist/ui.esm.js +1202 -1060
  3. package/dist/ui.js +43 -6
  4. package/dist/ui.min.css +1 -1
  5. package/dist/ui.min.js +186 -174
  6. package/dist/ui.scss +2 -6
  7. package/esm/components/QAccordion/QAccordion.d.ts +7 -6
  8. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  9. package/esm/components/QBadge/QBadge.d.ts +3 -2
  10. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  11. package/esm/components/QBadge/QBadge.vue.js +11 -11
  12. package/esm/components/QButton/QButton.d.ts +3 -2
  13. package/esm/components/QButton/QButton.d.ts.map +1 -1
  14. package/esm/components/QButton/QButton.vue.js +14 -14
  15. package/esm/components/QButtonGroup/QButtonGroup.d.ts +3 -2
  16. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  17. package/esm/components/QButtonGroup/QButtonGroup.vue.js +3 -3
  18. package/esm/components/QButtonToggle/QButtonToggle.d.ts +7 -6
  19. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  20. package/esm/components/QButtonToggle/QButtonToggle.vue.js +6 -6
  21. package/esm/components/QCard/QCard.d.ts +2 -1
  22. package/esm/components/QCard/QCard.d.ts.map +1 -1
  23. package/esm/components/QCard/QCard.vue.js +30 -30
  24. package/esm/components/QCheckbox/QCheckbox.d.ts +21 -5
  25. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  26. package/esm/components/QCheckbox/QCheckbox.vue.js +62 -45
  27. package/esm/components/QCheckbox/QCheckboxLabel.d.ts +21 -0
  28. package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -0
  29. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +31 -0
  30. package/esm/components/QCheckbox/QCheckboxLabel.vue2.js +4 -0
  31. package/esm/components/QCheckbox/types.d.ts +7 -5
  32. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  33. package/esm/components/QCollapsible/QCollapsible.d.ts +6 -5
  34. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  35. package/esm/components/QCollapsible/QCollapsible.vue.js +25 -25
  36. package/esm/components/QCombobox/QCombobox.d.ts +31 -30
  37. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  38. package/esm/components/QCombobox/QCombobox.vue.js +80 -80
  39. package/esm/components/QDialog/QDialog.d.ts +6 -5
  40. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  41. package/esm/components/QDialog/QDialog.vue.js +7 -7
  42. package/esm/components/QField/QField.d.ts +2 -1
  43. package/esm/components/QField/QField.d.ts.map +1 -1
  44. package/esm/components/QField/QField.vue.js +9 -9
  45. package/esm/components/QIcon/InlineSvg.d.ts +1 -1
  46. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  47. package/esm/components/QIcon/QIcon.vue.js +9 -9
  48. package/esm/components/QIcon/QIconFont.d.ts +1 -1
  49. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  50. package/esm/components/QIcon/QIconFont.vue.js +5 -5
  51. package/esm/components/QIcon/QIconImg.d.ts +1 -1
  52. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  53. package/esm/components/QIcon/QIconImg.vue.js +5 -5
  54. package/esm/components/QIcon/QIconSvg.d.ts +2 -2
  55. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  56. package/esm/components/QIcon/QIconSvg.vue.js +17 -17
  57. package/esm/components/QInputGroup/QInputGroup.d.ts +2 -1
  58. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  59. package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
  60. package/esm/components/QLineLoader/QLineLoader.d.ts +1 -1
  61. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  62. package/esm/components/QLineLoader/QLineLoader.vue.js +4 -4
  63. package/esm/components/QList/QList.d.ts +6 -5
  64. package/esm/components/QList/QList.d.ts.map +1 -1
  65. package/esm/components/QList/QList.vue.js +1 -1
  66. package/esm/components/QList/QListItem.d.ts +3 -2
  67. package/esm/components/QList/QListItem.d.ts.map +1 -1
  68. package/esm/components/QList/QListItem.vue.js +18 -18
  69. package/esm/components/QList/QListItemGroup.d.ts +3 -2
  70. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  71. package/esm/components/QOverlay/QOverlay.d.ts +6 -5
  72. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  73. package/esm/components/QOverlay/QOverlay.vue.js +148 -138
  74. package/esm/components/QPopover/QPopover.d.ts +6 -5
  75. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  76. package/esm/components/QPropertyList/QPropertyList.d.ts +3 -2
  77. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  78. package/esm/components/QPropertyList/QPropertyList.vue.js +22 -22
  79. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
  80. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  81. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +3 -2
  82. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  83. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +4 -4
  84. package/esm/components/QPropertyList/QPropertyListRow.d.ts +3 -2
  85. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  86. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +24 -0
  87. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -0
  88. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +72 -0
  89. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue2.js +4 -0
  90. package/esm/components/QRemoveScrollBar/constants.d.ts +10 -0
  91. package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -0
  92. package/esm/components/QRemoveScrollBar/constants.js +8 -0
  93. package/esm/components/QRemoveScrollBar/index.d.ts +4 -0
  94. package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -0
  95. package/esm/components/QRemoveScrollBar/index.js +6 -0
  96. package/esm/components/QRemoveScrollBar/types.d.ts +18 -0
  97. package/esm/components/QRemoveScrollBar/types.d.ts.map +1 -0
  98. package/esm/components/QRemoveScrollBar/utils/gap.d.ts +15 -0
  99. package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -0
  100. package/esm/components/QRemoveScrollBar/utils/gap.js +23 -0
  101. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +5 -0
  102. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -0
  103. package/esm/components/QRemoveScrollBar/utils/stylesheet.js +24 -0
  104. package/esm/components/QSelect/QSelect.d.ts +11 -10
  105. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  106. package/esm/components/QSelect/QSelect.vue.js +33 -33
  107. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -1
  108. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  109. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +11 -11
  110. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +1 -1
  111. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  112. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  113. package/esm/components/QTextField/QTextField.d.ts +6 -5
  114. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  115. package/esm/components/QTextField/QTextField.vue.js +15 -15
  116. package/esm/components/QThemeProvider/QThemeProvider.d.ts +3 -2
  117. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  118. package/esm/components/QTooltip/QTooltip.d.ts +6 -5
  119. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  120. package/esm/components/QTooltip/QTooltip.vue.js +15 -15
  121. package/esm/composables/defaults.js +5 -5
  122. package/esm/composables/group.js +8 -8
  123. package/esm/composables/overlay.js +11 -11
  124. package/esm/framework.js +2 -2
  125. package/esm/utils/color.js +6 -6
  126. package/package.json +31 -30
@@ -1 +1 @@
1
- {"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"AAwlBC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAIlD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAY,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAIhE,QAAA,IAAI,eAAe,EAAG,cAAc,CAAC;AA4drC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,eAAe,CAAC;AAM3B,iBAAS,cAAc;;iCAoSe,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAlZO,GAAG,8CAK/C,GAAG,yBAAyB,GAAG,6DAE7B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAPuC,GAAG,8CAK/C,GAAG,yBAAyB,GAAG,6DAE7B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAPuC,GAAG,8CAK/C,GAAG,yBAAyB,GAAG,6DAE7B,GAAG;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oG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as ce, computed as m, watch as k, nextTick as x, openBlock as y, createElementBlock as _, Fragment as fe, createVNode as w, unref as c, mergeProps as ve, withModifiers as K, createSlots as me, withCtx as r, renderSlot as f, createBlock as A, normalizeProps as j, guardReactiveProps as W, createCommentVNode as X, createElementVNode as pe, toDisplayString as be } from "vue";
1
+ import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as fe, computed as p, watch as k, nextTick as x, openBlock as y, createElementBlock as _, Fragment as ce, createVNode as w, unref as f, mergeProps as me, withModifiers as K, createSlots as pe, withCtx as r, renderSlot as c, createBlock as A, normalizeProps as j, guardReactiveProps as W, createCommentVNode as X, createElementVNode as ve, toDisplayString as be } from "vue";
2
2
  import { QButton as G } from "../QButton/index.js";
3
3
  import { QIcon as J } from "../QIcon/index.js";
4
4
  import { QList as ye } from "../QList/index.js";
@@ -47,32 +47,32 @@ const we = ["data-key"], Ve = {
47
47
  }),
48
48
  emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
49
49
  setup(V, { expose: Y, emit: Z }) {
50
- const l = V, L = Z, d = T(V, "modelValue"), i = T(V, "open"), u = T(V, "search"), t = I(void 0), v = I(null), s = I(null), F = I(null), $ = I(null);
51
- ce(h);
52
- const B = m(() => l.clearable && !l.readonly && !l.disabled), p = m(() => {
50
+ const l = V, L = Z, s = T(V, "modelValue"), i = T(V, "open"), u = T(V, "search"), o = I(void 0), m = I(null), d = I(null), F = I(null), $ = I(null);
51
+ fe(h);
52
+ const B = p(() => l.clearable && !l.readonly && !l.disabled), v = p(() => {
53
53
  var e;
54
54
  return l.filterMode === "manual" || !le.value ? l.items : (e = l.items) == null ? void 0 : e.filter(
55
55
  (a) => a[l.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
56
56
  );
57
- }), g = m(() => {
57
+ }), g = p(() => {
58
58
  var e;
59
- return (e = l.items) == null ? void 0 : e.find((a) => a[l.itemValue] === d.value);
60
- }), C = m(() => g.value === void 0), D = m(() => {
61
- const e = t.value;
62
- if (e !== void 0 && p.value[e])
63
- return p.value[e];
64
- }), ee = m(() => {
59
+ return (e = l.items) == null ? void 0 : e.find((a) => a[l.itemValue] === s.value);
60
+ }), C = p(() => g.value === void 0), D = p(() => {
61
+ const e = o.value;
62
+ if (e !== void 0 && v.value[e])
63
+ return v.value[e];
64
+ }), ee = p(() => {
65
65
  var a;
66
- if (t.value === void 0)
66
+ if (o.value === void 0)
67
67
  return;
68
- const e = (a = s.value) == null ? void 0 : a.getItem(t.value);
68
+ const e = (a = d.value) == null ? void 0 : a.getItem(o.value);
69
69
  return e == null ? void 0 : e.id;
70
- }), le = m(() => {
70
+ }), le = p(() => {
71
71
  var e;
72
72
  return u.value.length > 0 && u.value !== ((e = g.value) == null ? void 0 : e[l.itemLabel]);
73
73
  });
74
74
  function U(e) {
75
- d.value = e, q();
75
+ s.value = e, q();
76
76
  }
77
77
  function h() {
78
78
  var a;
@@ -83,32 +83,32 @@ const we = ["data-key"], Ve = {
83
83
  i.value || l.readonly || l.disabled || (L("before-show"), i.value = !0, S());
84
84
  }
85
85
  function q() {
86
- i.value && (L("before-hide"), i.value = !1, t.value = void 0);
86
+ i.value && (L("before-hide"), i.value = !1, o.value = void 0);
87
87
  }
88
88
  function ae() {
89
89
  i.value ? q() : z();
90
90
  }
91
- function oe() {
92
- B.value && (d.value = l.emptyValue, t.value = void 0, S());
91
+ function te() {
92
+ B.value && (s.value = l.emptyValue, o.value = void 0, S());
93
93
  }
94
94
  function z() {
95
95
  if (E(), g.value !== void 0) {
96
- const e = p.value.indexOf(g.value);
96
+ const e = v.value.indexOf(g.value);
97
97
  e !== -1 && x(() => O(e));
98
98
  }
99
99
  }
100
- function te(e) {
101
- var a, o;
100
+ function oe(e) {
101
+ var a, t;
102
102
  if (!(!e.key || l.readonly || l.disabled))
103
103
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "Escape")
104
104
  h(), i.value && q();
105
105
  else if (["ArrowDown", "ArrowUp"].includes(e.key))
106
106
  i.value ? x(() => {
107
- if (t.value === void 0)
107
+ if (o.value === void 0)
108
108
  M();
109
109
  else {
110
110
  const n = e.key === "ArrowDown" ? "next" : "prev";
111
- ie(t.value, n);
111
+ ie(o.value, n);
112
112
  }
113
113
  }) : (E(), x(() => {
114
114
  e.key === "ArrowDown" ? M() : ne();
@@ -116,64 +116,64 @@ const we = ["data-key"], Ve = {
116
116
  else if (e.key === "Enter") {
117
117
  if (D.value === void 0) return;
118
118
  U(D.value[l.itemValue]);
119
- } else e.key === "Home" ? t.value = (a = s.value) == null ? void 0 : a.getFirstFocusableItemIndex() : e.key === "End" ? t.value = (o = s.value) == null ? void 0 : o.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && E();
119
+ } else e.key === "Home" ? o.value = (a = d.value) == null ? void 0 : a.getFirstFocusableItemIndex() : e.key === "End" ? o.value = (t = d.value) == null ? void 0 : t.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && E();
120
120
  }
121
121
  function M() {
122
122
  var e, a;
123
123
  if (C.value)
124
- t.value = (a = s.value) == null ? void 0 : a.getFirstFocusableItemIndex();
124
+ o.value = (a = d.value) == null ? void 0 : a.getFirstFocusableItemIndex();
125
125
  else {
126
- const o = p.value.findIndex(
127
- (n) => n[l.itemValue] === d.value
126
+ const t = v.value.findIndex(
127
+ (n) => n[l.itemValue] === s.value
128
128
  );
129
- o === -1 ? t.value = (e = s.value) == null ? void 0 : e.getFirstFocusableItemIndex() : t.value = o;
129
+ t === -1 ? o.value = (e = d.value) == null ? void 0 : e.getFirstFocusableItemIndex() : o.value = t;
130
130
  }
131
131
  }
132
132
  function ne() {
133
133
  var e;
134
- t.value = (e = s.value) == null ? void 0 : e.getLastFocusableItemIndex();
134
+ o.value = (e = d.value) == null ? void 0 : e.getLastFocusableItemIndex();
135
135
  }
136
136
  function ie(e, a) {
137
- var o;
138
- t.value = (o = s.value) == null ? void 0 : o.getAdjacentItemIndex(e, a);
137
+ var t;
138
+ o.value = (t = d.value) == null ? void 0 : t.getAdjacentItemIndex(e, a);
139
139
  }
140
140
  function N(e) {
141
141
  var b, Q, P, R;
142
- const a = ((b = F == null ? void 0 : F.value) == null ? void 0 : b.$el) === e.relatedTarget, o = (P = (Q = v == null ? void 0 : v.value) == null ? void 0 : Q.$el) == null ? void 0 : P.contains(e.relatedTarget), n = (R = $ == null ? void 0 : $.value) == null ? void 0 : R.contains(e.relatedTarget);
143
- if (a || n || o) {
142
+ const a = ((b = F == null ? void 0 : F.value) == null ? void 0 : b.$el) === e.relatedTarget, t = (P = (Q = m == null ? void 0 : m.value) == null ? void 0 : Q.$el) == null ? void 0 : P.contains(e.relatedTarget), n = (R = $ == null ? void 0 : $.value) == null ? void 0 : R.contains(e.relatedTarget);
143
+ if (a || n || t) {
144
144
  e.preventDefault(), e.stopPropagation();
145
145
  return;
146
146
  }
147
- q(), B.value && !u.value && (d.value = l.emptyValue), h();
147
+ q(), B.value && !u.value && (s.value = l.emptyValue), h();
148
148
  }
149
149
  function S() {
150
150
  var e, a;
151
- (a = (e = v.value) == null ? void 0 : e.inputRef) == null || a.focus();
151
+ (a = (e = m.value) == null ? void 0 : e.inputRef) == null || a.focus();
152
152
  }
153
153
  function ue() {
154
154
  S();
155
155
  }
156
- function se() {
156
+ function de() {
157
157
  L("show");
158
158
  }
159
- function de() {
159
+ function se() {
160
160
  L("hide");
161
161
  }
162
162
  function O(e) {
163
- var o;
164
- const a = (o = s.value) == null ? void 0 : o.getItem(e);
165
- s.value && (s.value.$el.scrollTop = a == null ? void 0 : a.offsetTop);
163
+ var t;
164
+ const a = (t = d.value) == null ? void 0 : t.getItem(e);
165
+ d.value && (d.value.$el.scrollTop = a == null ? void 0 : a.offsetTop);
166
166
  }
167
- return k(d, h), k(
167
+ return k(s, h), k(
168
168
  () => l.items,
169
169
  (e, a) => {
170
170
  if (!C.value) {
171
- const o = a.find((n) => n[l.itemValue] === d.value);
172
- u.value === (o == null ? void 0 : o[l.itemLabel]) && h();
171
+ const t = a.find((n) => n[l.itemValue] === s.value);
172
+ u.value === (t == null ? void 0 : t[l.itemLabel]) && h();
173
173
  }
174
174
  },
175
175
  { deep: !0 }
176
- ), k(t, (e) => {
176
+ ), k(o, (e) => {
177
177
  e !== void 0 && O(e);
178
178
  }), k(u, (e) => {
179
179
  e && i.value && l.selectionMode === "automatic" && x(M);
@@ -183,21 +183,21 @@ const we = ["data-key"], Ve = {
183
183
  !e && i.value && x(M);
184
184
  }
185
185
  ), Y({
186
- triggerEl: v
186
+ triggerEl: m
187
187
  }), (e, a) => {
188
- var o;
188
+ var t;
189
189
  return y(), _(
190
- fe,
190
+ ce,
191
191
  null,
192
192
  [
193
- w(c(Ie), ve({
193
+ w(f(Ie), me({
194
+ id: l.id,
195
+ ref_key: "triggerEl",
196
+ ref: m,
194
197
  modelValue: u.value,
195
198
  "onUpdate:modelValue": a[0] || (a[0] = (n) => u.value = n),
196
- id: l.id,
197
199
  label: l.label,
198
200
  required: l.required,
199
- ref_key: "triggerEl",
200
- ref: v,
201
201
  role: "combobox",
202
202
  placeholder: l.placeholder,
203
203
  class: [
@@ -221,28 +221,28 @@ const we = ["data-key"], Ve = {
221
221
  }, e.$attrs, {
222
222
  onClick: z,
223
223
  onFocusout: N,
224
- onKeydown: K(te, ["stop"])
225
- }), me({
224
+ onKeydown: K(oe, ["stop"])
225
+ }), pe({
226
226
  "label.prepend": r(() => [
227
- f(e.$slots, "label.prepend")
227
+ c(e.$slots, "label.prepend")
228
228
  ]),
229
229
  "label.append": r(() => [
230
- f(e.$slots, "label.append")
230
+ c(e.$slots, "label.append")
231
231
  ]),
232
232
  append: r(() => [
233
- f(e.$slots, "append"),
234
- B.value && u.value ? (y(), A(c(G), {
233
+ c(e.$slots, "append"),
234
+ B.value && u.value ? (y(), A(f(G), {
235
235
  key: 0,
236
236
  class: "q-combobox__clear",
237
237
  "aria-label": l.texts.clearValue,
238
238
  "b-style": "plain",
239
239
  borderless: "",
240
240
  tabindex: "-1",
241
- onClick: oe
241
+ onClick: te
242
242
  }, {
243
243
  default: r(() => [
244
244
  w(
245
- c(J),
245
+ f(J),
246
246
  j(W(l.icons.clear)),
247
247
  null,
248
248
  16
@@ -252,7 +252,7 @@ const we = ["data-key"], Ve = {
252
252
  _: 1
253
253
  /* STABLE */
254
254
  }, 8, ["aria-label"])) : X("v-if", !0),
255
- l.readonly ? X("v-if", !0) : (y(), A(c(G), {
255
+ l.readonly ? X("v-if", !0) : (y(), A(f(G), {
256
256
  key: 1,
257
257
  ref_key: "toggleRef",
258
258
  ref: F,
@@ -266,7 +266,7 @@ const we = ["data-key"], Ve = {
266
266
  }, {
267
267
  default: r(() => [
268
268
  w(
269
- c(J),
269
+ f(J),
270
270
  j(W(l.icons.chevron)),
271
271
  null,
272
272
  16
@@ -283,19 +283,19 @@ const we = ["data-key"], Ve = {
283
283
  e.$slots.prepend ? {
284
284
  name: "prepend",
285
285
  fn: r(() => [
286
- f(e.$slots, "prepend")
286
+ c(e.$slots, "prepend")
287
287
  ]),
288
288
  key: "0"
289
289
  } : void 0,
290
290
  e.$slots.extras ? {
291
291
  name: "extras",
292
292
  fn: r(() => [
293
- f(e.$slots, "extras")
293
+ c(e.$slots, "extras")
294
294
  ]),
295
295
  key: "1"
296
296
  } : void 0
297
- ]), 1040, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
298
- w(c(ge), {
297
+ ]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
298
+ w(f(ge), {
299
299
  modelValue: i.value,
300
300
  "onUpdate:modelValue": a[2] || (a[2] = (n) => i.value = n),
301
301
  spy: "",
@@ -304,14 +304,14 @@ const we = ["data-key"], Ve = {
304
304
  placement: "bottom-start",
305
305
  width: "anchor",
306
306
  offset: 4,
307
- anchor: (o = v.value) == null ? void 0 : o.$el,
308
- onEnter: se,
309
- onLeave: de
307
+ anchor: (t = m.value) == null ? void 0 : t.$el,
308
+ onEnter: de,
309
+ onLeave: se
310
310
  }, {
311
311
  default: r(() => {
312
312
  var n;
313
313
  return [
314
- pe("div", {
314
+ ve("div", {
315
315
  ref_key: "contentRef",
316
316
  ref: $,
317
317
  class: "q-select__body",
@@ -319,29 +319,29 @@ const we = ["data-key"], Ve = {
319
319
  "data-key": l.id,
320
320
  onFocusout: N
321
321
  }, [
322
- f(e.$slots, "body.prepend"),
322
+ c(e.$slots, "body.prepend"),
323
323
  l.loading ? (y(), _("div", Ve, [
324
- w(c(he), { size: 24 })
325
- ])) : p.value.length ? (y(), A(c(ye), {
324
+ w(f(he), { size: 24 })
325
+ ])) : v.value.length ? (y(), A(f(ye), {
326
326
  key: 1,
327
327
  ref_key: "listRef",
328
- ref: s,
329
- class: "q-select__items",
330
- selectable: "",
331
- modelValue: d.value,
328
+ ref: d,
329
+ modelValue: s.value,
332
330
  "onUpdate:modelValue": [
333
- a[1] || (a[1] = (b) => d.value = b),
331
+ a[1] || (a[1] = (b) => s.value = b),
334
332
  U
335
333
  ],
334
+ class: "q-select__items",
335
+ selectable: "",
336
336
  highlighted: (n = D.value) == null ? void 0 : n[l.itemValue],
337
- items: p.value,
337
+ items: v.value,
338
338
  groups: e.groups,
339
339
  "item-label": l.itemLabel,
340
340
  "item-value": l.itemValue,
341
341
  onMouseup: ue
342
342
  }, {
343
343
  item: r(({ item: b }) => [
344
- f(e.$slots, "item", { item: b })
344
+ c(e.$slots, "item", { item: b })
345
345
  ]),
346
346
  _: 3
347
347
  /* FORWARDED */
@@ -352,7 +352,7 @@ const we = ["data-key"], Ve = {
352
352
  1
353
353
  /* TEXT */
354
354
  )),
355
- f(e.$slots, "body.append")
355
+ c(e.$slots, "body.append")
356
356
  ], 40, we)
357
357
  ];
358
358
  }),
@@ -1,22 +1,23 @@
1
1
  import { DialogButton, QDialogProps, DEFAULT_ICONS } from './types';
2
- declare let __VLS_typeProps: QDialogProps;
2
+ type __VLS_Props = QDialogProps;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: boolean;
5
- } & typeof __VLS_typeProps;
5
+ } & __VLS_Props;
6
6
  declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
7
8
  slots: {
8
9
  "body.content"?(_: {}): any;
9
10
  "body.icon"?(_: {}): any;
10
11
  "body.append"?(_: {}): any;
11
12
  };
12
13
  refs: {};
13
- attrs: Partial<{}>;
14
+ rootEl: any;
14
15
  };
15
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
17
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- "update:modelValue": (modelValue: boolean) => any;
18
+ "update:modelValue": (value: boolean) => any;
18
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
- "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
20
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
21
  }>, {
21
22
  class: string | unknown[];
22
23
  html: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AA8GC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAKzD,OAAO,EAAiC,aAAa,EAAE,MAAM,SAAS,CAAA;AAIvE,QAAA,IAAI,eAAe,EAAG,YAAY,CAAC;AAiDnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,C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-1,4 +1,4 @@
1
- import { defineComponent as T, mergeModels as D, useModel as L, computed as N, openBlock as o, createBlock as s, unref as t, withCtx as r, createElementVNode as a, normalizeClass as V, toDisplayString as y, createVNode as k, normalizeProps as h, guardReactiveProps as v, createCommentVNode as c, renderSlot as u, createElementBlock as d, Fragment as E, renderList as M, mergeProps as g } from "vue";
1
+ import { defineComponent as T, mergeModels as D, useModel as L, computed as N, openBlock as o, createBlock as s, unref as t, withCtx as r, createElementVNode as a, normalizeClass as V, toDisplayString as y, createVNode as k, normalizeProps as h, guardReactiveProps as g, createCommentVNode as c, renderSlot as u, createElementBlock as d, Fragment as E, renderList as M, mergeProps as v } from "vue";
2
2
  import { QButton as b } from "../QButton/index.js";
3
3
  import { QIcon as _ } from "../QIcon/index.js";
4
4
  import { QOverlay as x } from "../QOverlay/index.js";
@@ -37,8 +37,8 @@ const Q = { class: "q-dialog__header" }, S = { class: "q-dialog__header-title" }
37
37
  (n = l.action) == null || n.call(l), f();
38
38
  }
39
39
  return (l, n) => (o(), s(t(x), {
40
- "model-value": p.value,
41
40
  id: t(B),
41
+ "model-value": p.value,
42
42
  inline: e.inline,
43
43
  attach: e.attach,
44
44
  "backdrop-blur": e.backdropBlur,
@@ -69,7 +69,7 @@ const Q = { class: "q-dialog__header" }, S = { class: "q-dialog__header-title" }
69
69
  default: r(() => [
70
70
  k(
71
71
  t(_),
72
- h(v(e.icons.close)),
72
+ h(g(e.icons.close)),
73
73
  null,
74
74
  16
75
75
  /* FULL_PROPS */
@@ -85,7 +85,7 @@ const Q = { class: "q-dialog__header" }, S = { class: "q-dialog__header-title" }
85
85
  e.icon ? (o(), d("span", P, [
86
86
  k(
87
87
  t(_),
88
- h(v(e.icon)),
88
+ h(g(e.icon)),
89
89
  null,
90
90
  16
91
91
  /* FULL_PROPS */
@@ -111,14 +111,14 @@ const Q = { class: "q-dialog__header" }, S = { class: "q-dialog__header-title" }
111
111
  (o(!0), d(
112
112
  E,
113
113
  null,
114
- M(e.buttons, (i) => (o(), s(t(b), g({ ref_for: !0 }, i.props, {
114
+ M(e.buttons, (i) => (o(), s(t(b), v({ ref_for: !0 }, i.props, {
115
115
  key: i.id,
116
116
  onClick: () => q(i)
117
117
  }), {
118
118
  default: r(() => [
119
119
  i.icon ? (o(), s(
120
120
  t(_),
121
- g({
121
+ v({
122
122
  key: 0,
123
123
  ref_for: !0
124
124
  }, i.icon),
@@ -141,7 +141,7 @@ const Q = { class: "q-dialog__header" }, S = { class: "q-dialog__header-title" }
141
141
  ]),
142
142
  _: 3
143
143
  /* FORWARDED */
144
- }, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
144
+ }, 8, ["id", "model-value", "inline", "attach", "backdrop-blur"]));
145
145
  }
146
146
  });
147
147
  export {
@@ -1,5 +1,6 @@
1
1
  import { QFieldProps } from './types';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  "label.prepend"?(_: {}): any;
5
6
  "label.append"?(_: {}): any;
@@ -12,7 +13,7 @@ declare function __VLS_template(): {
12
13
  refs: {
13
14
  fieldRef: HTMLDivElement;
14
15
  };
15
- attrs: Partial<{}>;
16
+ rootEl: any;
16
17
  };
17
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
19
  declare const __VLS_component: import('vue').DefineComponent<QFieldProps, {
@@ -1 +1 @@
1
- {"version":3,"file":"QField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QField/QField.vue"],"names":[],"mappings":"AAkFC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AA8C3C,iBAAS,cAAc;;iCAyEc,GAAG;gCACJ,GAAG;yBACV,GAAG;yBACH,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QField/QField.vue"],"names":[],"mappings":"AA+CA;AAkFC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AA+C3C,iBAAS,cAAc;WAwFT,OAAO,IAA6B;;iCAfb,GAAG;gCACJ,GAAG;yBACV,GAAG;yBACH,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;EAc9B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
- import { defineComponent as u, ref as c, computed as _, openBlock as d, createElementBlock as o, unref as m, normalizeClass as q, renderSlot as s, createElementVNode as r, toDisplayString as v, createCommentVNode as i, mergeProps as y } from "vue";
2
- import { useId as $ } from "../../composables/uid.js";
3
- const b = ["id"], h = {
1
+ import { defineComponent as u, ref as c, computed as _, openBlock as d, createElementBlock as o, unref as m, normalizeClass as q, renderSlot as s, createElementVNode as r, toDisplayString as y, createCommentVNode as i, mergeProps as $ } from "vue";
2
+ import { useId as b } from "../../composables/uid.js";
3
+ const v = ["id"], h = {
4
4
  key: 0,
5
5
  class: "q-field__label"
6
6
  }, k = ["for"], B = {
@@ -26,7 +26,7 @@ const b = ["id"], h = {
26
26
  class: { default: void 0 }
27
27
  },
28
28
  setup(a, { expose: n }) {
29
- const e = a, f = $(e.id), t = c(null), p = _(() => e.required && !e.readonly && !e.disabled);
29
+ const e = a, f = b(e.id), t = c(null), p = _(() => e.required && !e.readonly && !e.disabled);
30
30
  return n({
31
31
  fieldRef: t
32
32
  }), (l, R) => (d(), o("div", {
@@ -46,16 +46,16 @@ const b = ["id"], h = {
46
46
  s(l.$slots, "label.prepend"),
47
47
  r("label", {
48
48
  for: e.for
49
- }, v(e.label), 9, k),
49
+ }, y(e.label), 9, k),
50
50
  s(l.$slots, "label.append")
51
51
  ])) : i("v-if", !0),
52
52
  s(l.$slots, "control", {}, () => [
53
53
  r(
54
54
  "div",
55
- y({
56
- class: "q-field__control",
55
+ $({
57
56
  ref_key: "fieldRef",
58
- ref: t
57
+ ref: t,
58
+ class: "q-field__control"
59
59
  }, l.$attrs),
60
60
  [
61
61
  l.$slots.prepend ? (d(), o("div", B, [
@@ -73,7 +73,7 @@ const b = ["id"], h = {
73
73
  l.$slots.extras ? (d(), o("div", C, [
74
74
  s(l.$slots, "extras")
75
75
  ])) : i("v-if", !0)
76
- ], 10, b));
76
+ ], 10, v));
77
77
  }
78
78
  });
79
79
  export {
@@ -97,8 +97,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
97
97
  default: boolean;
98
98
  };
99
99
  }>> & Readonly<{
100
- onLoaded?: ((payload?: any) => any) | undefined;
101
100
  onUnloaded?: (() => any) | undefined;
101
+ onLoaded?: ((payload?: any) => any) | undefined;
102
102
  onError?: ((payload?: any) => any) | undefined;
103
103
  }>, {
104
104
  symbol: string;
@@ -1 +1 @@
1
- {"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"AA2CC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;;;;;;AAoFpC,wBAOG"}
1
+ {"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"AAOA;AA2CC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;;;;;;AAyFpC,wBAQG"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as c, computed as s, openBlock as t, createBlock as r, resolveDynamicComponent as a, normalizeClass as i } from "vue";
2
- import { QIconImg as l, QIconFont as p, QIconSvg as u } from "./index.js";
3
- const _ = /* @__PURE__ */ c({
2
+ import { QIconImg as u, QIconFont as l, QIconSvg as p } from "./index.js";
3
+ const g = /* @__PURE__ */ c({
4
4
  __name: "QIcon",
5
5
  props: {
6
6
  icon: {},
@@ -8,20 +8,20 @@ const _ = /* @__PURE__ */ c({
8
8
  class: { default: void 0 },
9
9
  type: { default: "svg" }
10
10
  },
11
- setup(o) {
12
- const e = o, n = s(() => {
11
+ setup(n) {
12
+ const e = n, o = s(() => {
13
13
  switch (e.type) {
14
14
  case "svg":
15
- return u;
16
- case "font":
17
15
  return p;
18
- case "img":
16
+ case "font":
19
17
  return l;
18
+ case "img":
19
+ return u;
20
20
  default:
21
21
  return;
22
22
  }
23
23
  });
24
- return (m, d) => (t(), r(a(n.value), {
24
+ return (m, d) => (t(), r(a(o.value), {
25
25
  class: i(e.class),
26
26
  icon: e.icon,
27
27
  size: e.size
@@ -29,5 +29,5 @@ const _ = /* @__PURE__ */ c({
29
29
  }
30
30
  });
31
31
  export {
32
- _ as default
32
+ g as default
33
33
  };
@@ -4,6 +4,6 @@ declare const _default: import('vue').DefineComponent<QIconFontProps, {}, {}, {}
4
4
  variant: string;
5
5
  class: string | unknown[];
6
6
  library: string;
7
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=QIconFont.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAsCC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;;;;;;AAwF9C,wBAOG"}
1
+ {"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAMA;AAsCC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;;;;;;AA2F9C,wBAQG"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as t, computed as e, openBlock as l, createElementBlock as c, normalizeClass as s, normalizeStyle as u } from "vue";
2
- const v = /* @__PURE__ */ t({
1
+ import { defineComponent as o, computed as e, openBlock as l, createElementBlock as c, normalizeClass as s, normalizeStyle as u } from "vue";
2
+ const m = /* @__PURE__ */ o({
3
3
  __name: "QIconFont",
4
4
  props: {
5
5
  icon: {},
@@ -9,14 +9,14 @@ const v = /* @__PURE__ */ t({
9
9
  variant: { default: "" }
10
10
  },
11
11
  setup(r) {
12
- const n = r, a = e(() => n.variant ? `${n.library}-${n.variant}` : n.library), i = e(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), o = e(() => ({
12
+ const n = r, a = e(() => n.variant ? `${n.library}-${n.variant}` : n.library), i = e(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), t = e(() => ({
13
13
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
14
14
  }));
15
15
  return (f, d) => (l(), c(
16
16
  "i",
17
17
  {
18
18
  class: s(["q-icon", "q-icon__font", a.value, i.value, n.class]),
19
- style: u(o.value)
19
+ style: u(t.value)
20
20
  },
21
21
  null,
22
22
  6
@@ -25,5 +25,5 @@ const v = /* @__PURE__ */ t({
25
25
  }
26
26
  });
27
27
  export {
28
- v as default
28
+ m as default
29
29
  };
@@ -1,4 +1,4 @@
1
1
  import { QIconGenericProps } from './types';
2
- declare const _default: import('vue').DefineComponent<QIconGenericProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QIconGenericProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import('vue').DefineComponent<QIconGenericProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QIconGenericProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLImageElement>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=QIconImg.vue.d.ts.map