@quidgest/ui 0.31.0 → 0.31.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AA8TA;AAm8BC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAGrC,OAAO,EAEN,QAAQ,EAQR,MAAM,KAAK,CAAA;AAIZ,KAAK,WAAW,GAAG,YAAY,CAAC;AA4dhC;;GAEG;AACH,iBAAS,SAAS,SAEjB;AAwHF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAmsBT,OAAO,IAA6B;;yBA5BpB,GAAG;;;;;YACL,GAAG;wBACF,GAAG;wBACF,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDArzCvC,GAtEU,8CAsEV,GArEmC,yBAqEnC,GApEQ,6DAoER,GAnEW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmEX,GAtEU,8CAsEV,GArEmC,yBAqEnC,GApEQ,6DAoER,GAnEW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmEX,GAtEU,8CAsEV,GArEmC,yBAqEnC,GApEQ,6DAoER,GAnEW;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA0ErC,GA3EM,8CA2EN,GA3EuD,yBA2EvD,GA1ED,6DA0EC,GA1EqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA0ErC,GA3EM,8CA2EN,GA3EuD,yBA2EvD,GA1ED,6DA0EC,GA1EqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA0ErC,GA3EM,8CA2EN,GA3EuD,yBA2EvD,GA1ED,6DA0EC,GA1EqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAs+CpC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -103,20 +103,20 @@ var ve = {
103
103
  "hide"
104
104
  ], ["update:modelValue", "update:open"]),
105
105
  setup(l, { expose: ie, emit: oe }) {
106
- let v = l, k = oe, A = ge(l, "modelValue"), j = e(me(v, "id")), M = he(), Oe = d(() => `${j.value}_input`), ke = d(() => `${j.value}_listbox`), N = ge(l, "open"), P = d(() => !!(N.value && !v.loading && v.items?.length)), Ae = d(() => !N.value || P.value ? "" : v.loading ? v.texts.loading : v.texts.noData), je = d(() => v.overflow === "fit-content" ? "auto" : "anchor"), F = de(0), I = !0, L = !1, R = T("trigger"), Me = d(() => typeof M["aria-describedby"] == "string" ? M["aria-describedby"] : void 0), z = T("input"), Ne = d(() => v.readonly && !v.disabled ? { click: () => void 0 } : {}), Pe = d(() => {
107
- let e = Be.value?.$el;
106
+ let v = l, k = oe, A = ge(l, "modelValue"), j = e(me(v, "id")), M = he(), Oe = d(() => `${j.value}_input`), ke = d(() => `${j.value}_listbox`), N = ge(l, "open"), P = d(() => !!(N.value && !v.loading && v.items?.length)), Ae = d(() => !N.value || P.value ? "" : v.loading ? v.texts.loading : v.texts.noData), je = d(() => v.overflow === "fit-content" ? "auto" : "anchor"), Me = d(() => v.overflow === "truncate" || v.overflow === "wrap-on-focus" || v.overflow === "scroll-on-focus"), F = de(0), I = !0, L = !1, R = T("trigger"), Ne = d(() => typeof M["aria-describedby"] == "string" ? M["aria-describedby"] : void 0), z = T("input"), Pe = d(() => v.readonly && !v.disabled ? { click: () => void 0 } : {}), Fe = d(() => {
107
+ let e = Ve.value?.$el;
108
108
  return e?.querySelector("button") ?? e;
109
109
  });
110
- function Fe() {
110
+ function Ie() {
111
111
  return typeof M["aria-label"] == "string" ? M["aria-label"] : Array.from(z.value?.labels ?? []).map((e) => e.textContent?.trim()).filter(Boolean).join(" ") || void 0;
112
112
  }
113
- let Ie = T("list"), B = T("content"), Le = T("valueContainer"), Re = T("allBadges"), ze = T("allPlainTexts"), Be = T("hiddenItemsCountBadge"), V = T("counterMeasure"), Ve = T("separatorMeasure"), H = null, U = /* @__PURE__ */ new Set(), W = null;
114
- function He() {
113
+ let Le = T("list"), B = T("content"), Re = T("valueContainer"), ze = T("allBadges"), Be = T("allPlainTexts"), Ve = T("hiddenItemsCountBadge"), V = T("counterMeasure"), He = T("separatorMeasure"), H = null, U = /* @__PURE__ */ new Set(), W = null;
114
+ function Ue() {
115
115
  W && clearTimeout(W), W = setTimeout(() => {
116
116
  $();
117
117
  }, 120);
118
118
  }
119
- function Ue(e) {
119
+ function We(e) {
120
120
  if (!H) return;
121
121
  let t = new Set(e);
122
122
  for (let e of U) t.has(e) || (H.unobserve(e), U.delete(e));
@@ -126,57 +126,57 @@ var ve = {
126
126
  $();
127
127
  let e = R.value?.fieldRef;
128
128
  e && (H = new ResizeObserver(() => {
129
- He();
129
+ Ue();
130
130
  }), H.observe(e));
131
131
  }), le(() => {
132
132
  H?.disconnect(), U.clear(), W && clearTimeout(W);
133
133
  });
134
134
  let G = d(() => K.value.length === 0), K = d(() => {
135
- if (v.multiple) return (A.value ?? []).map((e) => Ge(e)).filter((e) => !!e);
136
- let e = A.value === void 0 ? void 0 : Ge(A.value);
135
+ if (v.multiple) return (A.value ?? []).map((e) => Ke(e)).filter((e) => !!e);
136
+ let e = A.value === void 0 ? void 0 : Ke(A.value);
137
137
  return e ? [e] : [];
138
- }), We = d(() => {
138
+ }), Ge = d(() => {
139
139
  let e = /* @__PURE__ */ new Map();
140
140
  return v.items?.forEach((t, n) => {
141
141
  e.set(t.key, n);
142
142
  }), e;
143
143
  }), q = d(() => K.value?.map(Y).filter(Boolean).join(", ")), J = d(() => v.clearable && !v.readonly && !v.disabled && !v.loading && !G.value);
144
- function Ge(e) {
144
+ function Ke(e) {
145
145
  return v.items?.find((t) => t[v.itemValue] === e);
146
146
  }
147
- function Ke(e) {
147
+ function qe(e) {
148
148
  let t = K.value[e]?.[v.itemValue];
149
149
  X(A.value.filter((e) => e !== t));
150
150
  }
151
151
  function Y(e) {
152
152
  return e?.[v.itemLabel] ?? "";
153
153
  }
154
- function qe(e) {
154
+ function Je(e) {
155
155
  return e + 1 < K.value.length - F.value ? O : "";
156
156
  }
157
157
  function X(e) {
158
- Array.isArray(e) ? A.value = e.sort((e, t) => We.value.get(e) - We.value.get(t)) : (A.value = e, Q(!L));
158
+ Array.isArray(e) ? A.value = e.sort((e, t) => Ge.value.get(e) - Ge.value.get(t)) : (A.value = e, Q(!L));
159
159
  }
160
160
  function Z() {
161
- X(v.emptyValue), it();
161
+ X(v.emptyValue), at();
162
162
  }
163
- function Je(e) {
163
+ function Ye(e) {
164
164
  let t = e.relatedTarget;
165
165
  !B.value?.contains(t) && !R.value?.fieldRef?.contains(t) && Q(!1);
166
166
  }
167
- function Ye() {
167
+ function Xe() {
168
168
  N.value || v.readonly || v.disabled || (I = !0, k("before-show"), N.value = !0);
169
169
  }
170
170
  function Q(e = !0) {
171
171
  N.value &&= (I = e, k("before-hide"), !1);
172
172
  }
173
- function Xe(e) {
173
+ function Ze(e) {
174
174
  N.value && (e.target?.closest("input, button, a, [tabindex]") || e.preventDefault());
175
175
  }
176
- function Ze() {
177
- v.readonly || v.disabled || (N.value ? Q() : Ye());
176
+ function Qe() {
177
+ v.readonly || v.disabled || (N.value ? Q() : Xe());
178
178
  }
179
- function Qe(e) {
179
+ function $e(e) {
180
180
  if (!e.key || v.readonly || v.disabled) return;
181
181
  let t = e.altKey && e.key === "ArrowDown" && !N.value;
182
182
  (e.altKey || e.ctrlKey || e.metaKey) && !t || ([
@@ -191,11 +191,11 @@ var ve = {
191
191
  "Enter",
192
192
  " ",
193
193
  "ArrowDown"
194
- ].includes(e.key) && Ye(), ["Escape", "Tab"].includes(e.key) && (N.value ? Q(e.key !== "Tab") : J.value && e.key === "Escape" && Z()), J.value && e.key === "Delete" && Z());
194
+ ].includes(e.key) && Xe(), ["Escape", "Tab"].includes(e.key) && (N.value ? Q(e.key !== "Tab") : J.value && e.key === "Escape" && Z()), J.value && e.key === "Delete" && Z());
195
195
  }
196
- function $e(e) {
196
+ function et(e) {
197
197
  if (e.key !== "Tab") {
198
- Qe(e);
198
+ $e(e);
199
199
  return;
200
200
  }
201
201
  e.preventDefault(), L = !0;
@@ -206,31 +206,31 @@ var ve = {
206
206
  ((t && e ? n(e, r) : void 0) ?? z.value)?.focus();
207
207
  });
208
208
  }
209
- function et(e) {
209
+ function tt(e) {
210
210
  e.preventDefault();
211
211
  }
212
- function tt() {
212
+ function nt() {
213
213
  Q(!1);
214
214
  }
215
- async function nt() {
216
- await b(), v.loading ? B.value?.focus() : at(), k("show");
217
- }
218
- function rt() {
219
- I && it(), I = !0, k("hide");
215
+ async function rt() {
216
+ await b(), v.loading ? B.value?.focus() : ot(), k("show");
220
217
  }
221
218
  function it() {
222
- z.value?.focus();
219
+ I && at(), I = !0, k("hide");
223
220
  }
224
221
  function at() {
225
- Ie.value?.$el.focus();
222
+ z.value?.focus();
223
+ }
224
+ function ot() {
225
+ Le.value?.$el.focus();
226
226
  }
227
227
  async function $() {
228
- if (await b(), await b(), !v.multiple || !Le.value || G.value) {
228
+ if (await b(), await b(), !v.multiple || !Re.value || G.value) {
229
229
  F.value = 0;
230
230
  return;
231
231
  }
232
- let e = Le.value, t = e.getBoundingClientRect().width, n = parseFloat(getComputedStyle(e).columnGap) || 0, r = V.value?.$el.getBoundingClientRect().width ?? 0, i = v.badges ? (Re.value ?? []).map((e) => e.$el) : ze.value ?? [], a = i.map((e) => e.getBoundingClientRect().width), o = Ve.value?.getBoundingClientRect().width ?? 0;
233
- if (Ue(V.value ? [...i, V.value.$el] : i), a.reduce((e, t) => e + t, 0) + n * (a.length - 1) - o <= t) {
232
+ let e = Re.value, t = e.getBoundingClientRect().width, n = parseFloat(getComputedStyle(e).columnGap) || 0, r = V.value?.$el.getBoundingClientRect().width ?? 0, i = v.badges ? (ze.value ?? []).map((e) => e.$el) : Be.value ?? [], a = i.map((e) => e.getBoundingClientRect().width), o = He.value?.getBoundingClientRect().width ?? 0;
233
+ if (We(V.value ? [...i, V.value.$el] : i), a.reduce((e, t) => e + t, 0) + n * (a.length - 1) - o <= t) {
234
234
  F.value = 0;
235
235
  return;
236
236
  }
@@ -242,7 +242,7 @@ var ve = {
242
242
  F.value = a.length - s;
243
243
  }
244
244
  return E(() => v.loading, (e) => {
245
- !e && N.value && b(at);
245
+ !e && N.value && b(ot);
246
246
  }), E(() => v.badges, $), E(K, $, { deep: !0 }), E(() => v.clearable, $), E([
247
247
  N,
248
248
  () => v.readonly,
@@ -252,7 +252,7 @@ var ve = {
252
252
  }, {
253
253
  flush: "sync",
254
254
  immediate: !0
255
- }), ie({ focusList: at }), (e, n) => (x(), m(u, null, [
255
+ }), ie({ focusList: ot }), (e, n) => (x(), m(u, null, [
256
256
  _(w(ne), {
257
257
  id: w(j),
258
258
  ref: "trigger",
@@ -277,9 +277,9 @@ var ve = {
277
277
  "help-display": v.helpDisplay,
278
278
  icons: v.icons,
279
279
  texts: v.texts,
280
- onMousedown: Xe,
281
- onClick: Ze,
282
- onKeydown: Qe
280
+ onMousedown: Ze,
281
+ onClick: Qe,
282
+ onKeydown: $e
283
283
  }, ae({
284
284
  default: D(({ describedBy: n, invalid: r }) => [S(e.$slots, "value", {
285
285
  empty: G.value,
@@ -296,7 +296,7 @@ var ve = {
296
296
  removable: !v.readonly && !v.disabled && (!v.required || K.value.length > 1),
297
297
  icons: v.icons,
298
298
  texts: v.texts,
299
- "onClick:remove": () => Ke(n)
299
+ "onClick:remove": () => qe(n)
300
300
  }, {
301
301
  default: D(() => [e?.icon ? (x(), f(w(t), y({
302
302
  key: 0,
@@ -310,7 +310,7 @@ var ve = {
310
310
  "icons",
311
311
  "texts",
312
312
  "onClick:remove"
313
- ])) : v.multiple ? (x(), m("span", ye, C(Y(e) + qe(n)), 1)) : p("v-if", !0)], 64)) : p("v-if", !0)], 64))), 128)),
313
+ ])) : v.multiple ? (x(), m("span", ye, C(Y(e) + Je(n)), 1)) : p("v-if", !0)], 64)) : p("v-if", !0)], 64))), 128)),
314
314
  F.value > 0 ? (x(), m(u, { key: 0 }, [_(w(c), y({
315
315
  ref: "hiddenItemsCountBadge",
316
316
  pill: "",
@@ -319,7 +319,7 @@ var ve = {
319
319
  icons: v.icons,
320
320
  texts: v.texts,
321
321
  class: ["q-select__badge-count", { "q-select__badge-count--clickable": v.readonly || v.disabled }]
322
- }, pe(Ne.value)), {
322
+ }, pe(Pe.value)), {
323
323
  default: D(() => [g(" +" + C(F.value), 1)]),
324
324
  _: 1
325
325
  }, 16, [
@@ -329,7 +329,7 @@ var ve = {
329
329
  "class"
330
330
  ]), v.readonly || v.disabled ? (x(), f(w(i), {
331
331
  key: 0,
332
- anchor: Pe.value,
332
+ anchor: Fe.value,
333
333
  text: q.value,
334
334
  placement: "bottom-start"
335
335
  }, {
@@ -404,7 +404,7 @@ var ve = {
404
404
  value: q.value,
405
405
  "aria-invalid": r || void 0
406
406
  }, e.$attrs, {
407
- "aria-describedby": w(o)(n, Me.value),
407
+ "aria-describedby": w(o)(n, Ne.value),
408
408
  class: "q-select__input",
409
409
  inputmode: "none",
410
410
  type: "text",
@@ -419,7 +419,7 @@ var ve = {
419
419
  "aria-disabled": v.disabled || void 0,
420
420
  "aria-busy": v.loading || void 0,
421
421
  "aria-keyshortcuts": J.value ? "Delete" : void 0,
422
- onBeforeinput: et
422
+ onBeforeinput: tt
423
423
  }), null, 16, Ce)]),
424
424
  append: D(() => [
425
425
  S(e.$slots, "append"),
@@ -438,7 +438,7 @@ var ve = {
438
438
  borderless: "",
439
439
  tabindex: -1,
440
440
  disabled: v.disabled,
441
- onClick: Ze
441
+ onClick: Qe
442
442
  }, {
443
443
  default: D(() => [_(w(s), {
444
444
  "model-value": N.value,
@@ -493,9 +493,9 @@ var ve = {
493
493
  inline: v.inline,
494
494
  anchor: v.overlayAnchor ?? R.value?.fieldRef,
495
495
  offset: 2,
496
- "onUpdate:modelValue": tt,
497
- onEnter: nt,
498
- onLeave: rt
496
+ "onUpdate:modelValue": nt,
497
+ onEnter: rt,
498
+ onLeave: it
499
499
  }, {
500
500
  default: D(() => [p(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -- Takes the keys and focus of the list inside it "), h("div", {
501
501
  ref: "content",
@@ -503,8 +503,8 @@ var ve = {
503
503
  "data-key": w(j),
504
504
  class: "q-select__body",
505
505
  tabindex: "-1",
506
- onFocusout: Je,
507
- onKeydown: _e($e, ["stop"])
506
+ onFocusout: Ye,
507
+ onKeydown: _e(et, ["stop"])
508
508
  }, [
509
509
  S(e.$slots, "body.prepend"),
510
510
  v.loading ? (x(), m("div", Ee, [_(w(a), { size: 24 })])) : v.items?.length ? (x(), f(w(te), {
@@ -512,7 +512,7 @@ var ve = {
512
512
  id: ke.value,
513
513
  ref: "list",
514
514
  class: se(["q-select__items", `q-select__items--${v.overflow}`]),
515
- label: Fe(),
515
+ label: Ie(),
516
516
  "aria-labelledby": w(M)["aria-labelledby"],
517
517
  selectable: "",
518
518
  icons: v.icons,
@@ -523,7 +523,7 @@ var ve = {
523
523
  groups: l.groups,
524
524
  "item-label": v.itemLabel,
525
525
  "item-value": v.itemValue,
526
- "item-title": v.overflow === "truncate",
526
+ "item-title": Me.value,
527
527
  "select-on-tab": v.selectOnTab,
528
528
  "onUpdate:modelValue": X
529
529
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/templates/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,eAAO,MAAM,uBAAuB,EAAE,YAgDrC,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAgDpC,CAAA"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/templates/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,eAAO,MAAM,uBAAuB,EAAE,YAsDrC,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAsDpC,CAAA"}
@@ -3,6 +3,9 @@ var e = {
3
3
  primary: "#185fa5",
4
4
  primaryLight: "#b9d7f5",
5
5
  primaryDark: "#0e3963",
6
+ secondary: "#593b57",
7
+ secondaryLight: "#dbc9da",
8
+ secondaryDark: "#352334",
6
9
  highlight: "#ae5700",
7
10
  highlightLight: "#ffd5ab",
8
11
  highlightDark: "#683400",
@@ -26,6 +29,9 @@ var e = {
26
29
  onPrimary: "#fff",
27
30
  onPrimaryLight: "#000",
28
31
  onPrimaryDark: "#fff",
32
+ onSecondary: "#fff",
33
+ onSecondaryLight: "#000",
34
+ onSecondaryDark: "#fff",
29
35
  onHighlight: "#fff",
30
36
  onHighlightLight: "#000",
31
37
  onHighlightDark: "#fff",
@@ -50,18 +56,21 @@ var e = {
50
56
  primary: "#4796e5",
51
57
  primaryLight: "#1a2632",
52
58
  primaryDark: "#91c0ef",
59
+ secondary: "#a584a1",
60
+ secondaryLight: "#282327",
61
+ secondaryDark: "#c8b5c6",
53
62
  highlight: "#d16900",
54
63
  highlightLight: "#2f1f0f",
55
64
  highlightDark: "#ffa54a",
56
- info: "#4cb8d1",
57
- infoLight: "#1b2b2f",
58
- infoDark: "#237688",
59
- success: "#5cb85c",
60
- successLight: "#1d2b1d",
61
- successDark: "#327332",
62
- warning: "#ffcc4d",
63
- warningLight: "#362e1b",
64
- warningDark: "#c78f00",
65
+ info: "#18afc3",
66
+ infoLight: "#132a2d",
67
+ infoDark: "#64dcec",
68
+ success: "#3caf51",
69
+ successLight: "#182a1b",
70
+ successDark: "#84d593",
71
+ warning: "#d6ab00",
72
+ warningLight: "#2f290f",
73
+ warningDark: "#ffdc4e",
65
74
  danger: "#e75241",
66
75
  dangerLight: "#321c19",
67
76
  dangerDark: "#f1978d",
@@ -73,15 +82,18 @@ var e = {
73
82
  onPrimary: "#000",
74
83
  onPrimaryLight: "#fff",
75
84
  onPrimaryDark: "#000",
85
+ onSecondary: "#000",
86
+ onSecondaryLight: "#fff",
87
+ onSecondaryDark: "#000",
76
88
  onHighlight: "#000",
77
89
  onHighlightLight: "#fff",
78
90
  onHighlightDark: "#000",
79
91
  onInfo: "#000",
80
92
  onInfoLight: "#fff",
81
- onInfoDark: "#fff",
93
+ onInfoDark: "#000",
82
94
  onSuccess: "#000",
83
95
  onSuccessLight: "#fff",
84
- onSuccessDark: "#fff",
96
+ onSuccessDark: "#000",
85
97
  onWarning: "#000",
86
98
  onWarningLight: "#fff",
87
99
  onWarningDark: "#000",
@@ -54,7 +54,9 @@ export type QLive = 'assertive' | 'polite' | 'off';
54
54
  * - `wrap`: menu matches the field; labels wrap onto multiple lines.
55
55
  * - `truncate`: menu matches the field; labels ellipsize. A cut-off label shows its full text in a native `title` on hover (accessible name unchanged).
56
56
  * - `fit-content`: menu grows to the longest option, even when wider than the field.
57
+ * - `wrap-on-focus`: like `truncate` until the option is focused (or highlighted, while focus stays in a combobox field); that option then wraps like `wrap`.
58
+ * - `scroll-on-focus`: like `truncate` until the option is focused or highlighted; that option then scrolls its label to the end and back. The trip stays under five seconds. With reduced motion, that option wraps instead.
57
59
  * Shared by `QSelect` and `QCombobox`.
58
60
  */
59
- export type QOptionOverflow = 'truncate' | 'wrap' | 'fit-content';
61
+ export type QOptionOverflow = 'truncate' | 'wrap' | 'fit-content' | 'wrap-on-focus' | 'scroll-on-focus';
60
62
  //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,KAAK,CAAA;AAEtD;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAA;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,MAAM,GAAG,aAAa,CAAA"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,KAAK,CAAA;AAEtD;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAA;AAElD;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GACxB,UAAU,GACV,MAAM,GACN,aAAa,GACb,eAAe,GACf,iBAAiB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/utils/color/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ7D,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AAkCpF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CA4CzF"}
1
+ {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/utils/color/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ7D,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AAmCpF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CA4CzF"}
@@ -5,6 +5,7 @@ import { deriveHighlight as r, deriveHover as i, deriveTint as a } from "./varia
5
5
  //#region src/utils/color/merge.ts
6
6
  var o = [
7
7
  "primary",
8
+ "secondary",
8
9
  "highlight",
9
10
  "info",
10
11
  "success",
@@ -8,7 +8,7 @@
8
8
  * hand-written `--background` modifier (and skip inline vars for that color).
9
9
  * `container` is omitted (scheme resolve only).
10
10
  */
11
- export declare const THEME_COLOR_KEYS: readonly ["primary", "highlight", "info", "success", "warning", "danger", "neutral", "background"];
11
+ export declare const THEME_COLOR_KEYS: readonly ["primary", "secondary", "highlight", "info", "success", "warning", "danger", "neutral", "background"];
12
12
  /**
13
13
  * A theme utility color key that resolves against the active color scheme.
14
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"theme-colors.d.ts","sourceRoot":"","sources":["../../../src/utils/color/theme-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,oGASnB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAI9D;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAEnE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAIzD"}
1
+ {"version":3,"file":"theme-colors.d.ts","sourceRoot":"","sources":["../../../src/utils/color/theme-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,iHAUnB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAI9D;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAEnE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAIzD"}
@@ -1,6 +1,7 @@
1
1
  //#region src/utils/color/theme-colors.ts
2
2
  var e = [
3
3
  "primary",
4
+ "secondary",
4
5
  "highlight",
5
6
  "info",
6
7
  "success",
@@ -2,6 +2,9 @@ export type QBaseColorScheme = {
2
2
  primary: string;
3
3
  primaryLight: string;
4
4
  primaryDark: string;
5
+ secondary: string;
6
+ secondaryLight: string;
7
+ secondaryDark: string;
5
8
  highlight: string;
6
9
  highlightLight: string;
7
10
  highlightDark: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/color/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,gBAAgB,GAAG;IAE9B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IAGrB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAEhB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAGlB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IAGjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;CACnB,CAAA;AAGD,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,GAAG,G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M,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAGlB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IAGjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;CACnB,CAAA;AAGD,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAA;AAGhG,KAAK,UAAU,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,MAAM;CACvD,CAAA;AAGD,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAA;AAE1E;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.31.0",
4
+ "version": "0.31.2",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",