@quidgest/ui 0.14.0 → 0.14.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.
Files changed (121) hide show
  1. package/dist/ui.css +4 -0
  2. package/dist/ui.esm.js +752 -739
  3. package/dist/ui.js +4 -4
  4. package/dist/ui.min.js +51 -51
  5. package/dist/ui.scss +1053 -1049
  6. package/esm/components/QBadge/QBadge.d.ts +14 -41
  7. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  8. package/esm/components/QBadge/QBadge.vue.js +33 -33
  9. package/esm/components/QBadge/index.d.ts +0 -1
  10. package/esm/components/QBadge/types.d.ts +6 -7
  11. package/esm/components/QBadge/types.d.ts.map +1 -1
  12. package/esm/components/QButton/QButton.d.ts +12 -35
  13. package/esm/components/QButton/QButton.d.ts.map +1 -1
  14. package/esm/components/QButton/index.d.ts +0 -1
  15. package/esm/components/QButtonGroup/QButtonGroup.d.ts +9 -26
  16. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  17. package/esm/components/QButtonGroup/index.d.ts +0 -1
  18. package/esm/components/QButtonToggle/QButtonToggle.d.ts +17 -47
  19. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  20. package/esm/components/QButtonToggle/QButtonToggle.vue.js +26 -23
  21. package/esm/components/QButtonToggle/index.d.ts +0 -1
  22. package/esm/components/QCombobox/QCombobox.d.ts +373 -485
  23. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  24. package/esm/components/QCombobox/QCombobox.vue.js +92 -87
  25. package/esm/components/QCombobox/index.d.ts +0 -1
  26. package/esm/components/QCombobox/types.d.ts +9 -8
  27. package/esm/components/QCombobox/types.d.ts.map +1 -1
  28. package/esm/components/QCombobox/types.js +3 -1
  29. package/esm/components/QDialog/QDialog.d.ts +21 -109
  30. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  31. package/esm/components/QDialog/QDialog.vue.js +16 -16
  32. package/esm/components/QDialog/index.d.ts +0 -1
  33. package/esm/components/QDialog/types.d.ts +6 -8
  34. package/esm/components/QDialog/types.d.ts.map +1 -1
  35. package/esm/components/QField/QField.d.ts +18 -41
  36. package/esm/components/QField/QField.d.ts.map +1 -1
  37. package/esm/components/QField/index.d.ts +0 -1
  38. package/esm/components/QIcon/InlineSvg.d.ts +6 -6
  39. package/esm/components/QIcon/QIcon.d.ts +2 -28
  40. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  41. package/esm/components/QIcon/QIconFont.d.ts +2 -30
  42. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  43. package/esm/components/QIcon/QIconImg.d.ts +1 -11
  44. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  45. package/esm/components/QIcon/QIconSvg.d.ts +6 -32
  46. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  47. package/esm/components/QIcon/index.d.ts +0 -1
  48. package/esm/components/QInputGroup/QInputGroup.d.ts +12 -39
  49. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  50. package/esm/components/QInputGroup/index.d.ts +0 -1
  51. package/esm/components/QInputGroup/types.d.ts +0 -1
  52. package/esm/components/QLineLoader/QLineLoader.d.ts +2 -24
  53. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  54. package/esm/components/QLineLoader/index.d.ts +0 -1
  55. package/esm/components/QList/QList.d.ts +22 -72
  56. package/esm/components/QList/QList.d.ts.map +1 -1
  57. package/esm/components/QList/QListItem.d.ts +14 -39
  58. package/esm/components/QList/QListItem.d.ts.map +1 -1
  59. package/esm/components/QList/QListItem.vue.js +5 -5
  60. package/esm/components/QList/QListItemGroup.d.ts +9 -26
  61. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  62. package/esm/components/QList/index.d.ts +0 -1
  63. package/esm/components/QList/types.d.ts +5 -7
  64. package/esm/components/QList/types.d.ts.map +1 -1
  65. package/esm/components/QOverlay/QOverlay.d.ts +23 -141
  66. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  67. package/esm/components/QOverlay/index.d.ts +0 -1
  68. package/esm/components/QOverlay/types.d.ts +0 -1
  69. package/esm/components/QPopover/QPopover.d.ts +19 -77
  70. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  71. package/esm/components/QPopover/index.d.ts +0 -1
  72. package/esm/components/QPopover/types.d.ts +0 -1
  73. package/esm/components/QPropertyList/QPropertyList.d.ts +28 -56
  74. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  75. package/esm/components/QPropertyList/QPropertyList.vue.js +61 -62
  76. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +7 -44
  77. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  78. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +22 -26
  79. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +11 -43
  80. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  81. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +14 -16
  82. package/esm/components/QPropertyList/QPropertyListRow.d.ts +12 -17
  83. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  84. package/esm/components/QPropertyList/QPropertyListRow.vue.js +28 -25
  85. package/esm/components/QPropertyList/index.d.ts +0 -1
  86. package/esm/components/QPropertyList/types.d.ts +66 -34
  87. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  88. package/esm/components/QSelect/QSelect.d.ts +199 -147
  89. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  90. package/esm/components/QSelect/QSelect.vue.js +130 -125
  91. package/esm/components/QSelect/index.d.ts +0 -1
  92. package/esm/components/QSelect/types.d.ts +9 -8
  93. package/esm/components/QSelect/types.d.ts.map +1 -1
  94. package/esm/components/QSelect/types.js +5 -3
  95. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -28
  96. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  97. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
  98. package/esm/components/QSkeletonLoader/index.d.ts +0 -1
  99. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +2 -26
  100. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  101. package/esm/components/QSpinnerLoader/index.d.ts +0 -1
  102. package/esm/components/QTextField/QTextField.d.ts +100 -96
  103. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  104. package/esm/components/QTextField/index.d.ts +0 -1
  105. package/esm/components/QTextField/types.d.ts +0 -1
  106. package/esm/components/QThemeProvider/QThemeProvider.d.ts +8 -13
  107. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  108. package/esm/components/QThemeProvider/index.d.ts +0 -1
  109. package/esm/components/QTooltip/QTooltip.d.ts +24 -121
  110. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  111. package/esm/components/QTooltip/QTooltip.vue.js +1 -1
  112. package/esm/components/QTooltip/index.d.ts +0 -1
  113. package/esm/components/QTooltip/types.d.ts +1 -2
  114. package/esm/components/QTooltip/types.d.ts.map +1 -1
  115. package/esm/composables/defaults.d.ts +0 -1
  116. package/esm/composables/theme.d.ts +0 -1
  117. package/esm/framework.d.ts +0 -1
  118. package/esm/templates/theme.d.ts +0 -1
  119. package/esm/utils/setupPropsProxy.d.ts +0 -1
  120. package/esm/utils/theme.d.ts +0 -1
  121. package/package.json +35 -33
@@ -1,50 +1,23 @@
1
- import { QBadgeProps } from './types';
2
-
1
+ import { QBadgeProps, DEFAULT_ICONS } from './types';
3
2
  declare function __VLS_template(): {
4
- default?(_: {}): any;
5
- };
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QBadgeProps>, {
7
- text: string;
8
- color: string;
9
- variant: string;
10
- internals: () => {
11
- icons: Record<string, import('../QIcon').Icon>;
12
- };
13
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- "click:remove": () => void;
15
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QBadgeProps>, {
16
- text: string;
17
- color: string;
18
- variant: string;
19
- internals: () => {
20
- icons: Record<string, import('../QIcon').Icon>;
3
+ slots: {
4
+ default?(_: {}): any;
21
5
  };
22
- }>>> & {
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<QBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ "click:remove": () => any;
12
+ }, string, import('vue').PublicProps, Readonly<QBadgeProps> & Readonly<{
23
13
  "onClick:remove"?: (() => any) | undefined;
24
- }, {
14
+ }>, {
25
15
  variant: "tonal" | "bold" | "outlined";
26
16
  color: string;
27
- internals: import('./types').Internals;
28
- }, {}>;
29
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
+ icons: typeof DEFAULT_ICONS;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
20
  export default _default;
31
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
- type __VLS_TypePropsToRuntimeProps<T> = {
33
- [K in keyof T]-?: {} extends Pick<T, K> ? {
34
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
- } : {
36
- type: import('vue').PropType<T[K]>;
37
- required: true;
38
- };
39
- };
40
- type __VLS_WithDefaults<P, D> = {
41
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
- default: D[K];
43
- }> : P[K];
44
- };
45
- type __VLS_Prettify<T> = {
46
- [K in keyof T]: T[K];
47
- } & {};
48
21
  type __VLS_WithTemplateSlots<T, S> = T & {
49
22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AC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAsFC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAkExC,iBAAS,cAAc;;yBA6DM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EAUnB,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,69 +1,69 @@
1
- import { defineComponent as g, computed as r, openBlock as a, createElementBlock as _, normalizeClass as b, normalizeStyle as C, createElementVNode as s, renderSlot as y, createBlock as q, unref as n, withCtx as k, createVNode as B, normalizeProps as h, guardReactiveProps as x, createCommentVNode as N } from "vue";
2
- import { QButton as z } from "../QButton/index.js";
3
- import { QIcon as E } from "../QIcon/index.js";
4
- import { DEFAULT_ICONS as Q } from "./types.js";
5
- import { parseColor as S, rgbToHsl as V, getContrastingColor as $ } from "../../utils/color.js";
6
- const w = /* @__PURE__ */ s(
7
- "div",
8
- { class: "q-badge__underlay" },
9
- null,
10
- -1
11
- /* HOISTED */
12
- ), I = { class: "q-badge__content" }, D = /* @__PURE__ */ g({
1
+ import { defineComponent as g, computed as l, openBlock as a, createElementBlock as b, normalizeClass as C, normalizeStyle as _, createElementVNode as n, renderSlot as y, createBlock as q, unref as s, withCtx as k, createVNode as B, normalizeProps as x, guardReactiveProps as N, createCommentVNode as z } from "vue";
2
+ import { QButton as E } from "../QButton/index.js";
3
+ import { QIcon as Q } from "../QIcon/index.js";
4
+ import { DEFAULT_ICONS as S } from "./types.js";
5
+ import { parseColor as V, rgbToHsl as $, getContrastingColor as h } from "../../utils/color.js";
6
+ const w = { class: "q-badge__content" }, A = /* @__PURE__ */ g({
13
7
  __name: "QBadge",
14
8
  props: {
15
9
  color: { default: "primary" },
16
10
  variant: { default: "tonal" },
17
11
  removable: { type: Boolean },
18
12
  pill: { type: Boolean },
19
- internals: { default: () => ({ icons: Q }) }
13
+ icons: { default: () => S }
20
14
  },
21
15
  emits: ["click:remove"],
22
- setup(c, { emit: i }) {
23
- const e = c, d = i, l = r(
16
+ setup(i, { emit: c }) {
17
+ const e = i, d = c, r = l(
24
18
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
25
- ), m = r(() => {
26
- const o = l.value ? `q-badge--${e.color}` : void 0;
19
+ ), m = l(() => {
20
+ const o = r.value ? `q-badge--${e.color}` : void 0;
27
21
  return ["q-badge", `q-badge--${e.variant}`, o, { "q-badge--pill": e.pill }];
28
- }), u = r(() => {
22
+ }), p = l(() => {
29
23
  let o, t;
30
- if (!l.value)
24
+ if (!r.value)
31
25
  if (o = e.color, e.variant === "tonal")
32
26
  t = e.color;
33
27
  else {
34
- const v = S(o), f = V(v);
35
- t = $(f.l);
28
+ const v = V(o), f = $(v);
29
+ t = h(f.l);
36
30
  }
37
31
  return {
38
32
  "--q-badge-color": o,
39
33
  "--q-badge-text-color": t
40
34
  };
41
35
  });
42
- function p() {
36
+ function u() {
43
37
  d("click:remove");
44
38
  }
45
- return (o, t) => (a(), _(
39
+ return (o, t) => (a(), b(
46
40
  "span",
47
41
  {
48
- class: b(m.value),
42
+ class: C(m.value),
49
43
  role: "presentation",
50
- style: C(u.value)
44
+ style: _(p.value)
51
45
  },
52
46
  [
53
- w,
54
- s("div", I, [
47
+ t[0] || (t[0] = n(
48
+ "div",
49
+ { class: "q-badge__underlay" },
50
+ null,
51
+ -1
52
+ /* HOISTED */
53
+ )),
54
+ n("div", w, [
55
55
  y(o.$slots, "default"),
56
- e.removable ? (a(), q(n(z), {
56
+ e.removable ? (a(), q(s(E), {
57
57
  key: 0,
58
58
  class: "q-badge__remove",
59
59
  borderless: "",
60
60
  tabindex: "0",
61
- onClick: p
61
+ onClick: u
62
62
  }, {
63
63
  default: k(() => [
64
64
  B(
65
- n(E),
66
- h(x(e.internals.icons.remove)),
65
+ s(Q),
66
+ x(N(e.icons.remove)),
67
67
  null,
68
68
  16
69
69
  /* FULL_PROPS */
@@ -71,7 +71,7 @@ const w = /* @__PURE__ */ s(
71
71
  ]),
72
72
  _: 1
73
73
  /* STABLE */
74
- })) : N("v-if", !0)
74
+ })) : z("v-if", !0)
75
75
  ])
76
76
  ],
77
77
  6
@@ -80,5 +80,5 @@ const w = /* @__PURE__ */ s(
80
80
  }
81
81
  });
82
82
  export {
83
- D as default
83
+ A as default
84
84
  };
@@ -1,5 +1,4 @@
1
1
  import { default as _QBadge } from './QBadge';
2
-
3
2
  declare const QBadge: typeof _QBadge;
4
3
  export { QBadge };
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,3 @@
1
- import { Icon } from '../QIcon';
2
-
3
1
  export type QBadgeProps = {
4
2
  /**
5
3
  * The color of the badge.
@@ -19,12 +17,13 @@ export type QBadgeProps = {
19
17
  */
20
18
  pill?: boolean;
21
19
  /**
22
- * The internal elements of the component.
20
+ * Custom icon configurations.
23
21
  */
24
- internals?: Internals;
22
+ icons?: typeof DEFAULT_ICONS;
25
23
  };
26
- export declare const DEFAULT_ICONS: Record<string, Icon>;
27
- export type Internals = {
28
- icons: typeof DEFAULT_ICONS;
24
+ export declare const DEFAULT_ICONS: {
25
+ remove: {
26
+ icon: string;
27
+ };
29
28
  };
30
29
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,WAAW,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAI9C,CAAA;AAGD,MAAM,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,OAAO,aAAa,CAAA;CAC3B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIzB,CAAA"}
@@ -1,47 +1,24 @@
1
1
  import { QButtonProps } from './types';
2
-
3
2
  declare function __VLS_template(): {
4
- default?(_: {}): any;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
5
8
  };
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonProps>, {
7
- bStyle: string;
8
- label: string;
9
- size: string;
10
- class: undefined;
11
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
- click: (event: Event) => void;
13
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonProps>, {
14
- bStyle: string;
15
- label: string;
16
- size: string;
17
- class: undefined;
18
- }>>> & {
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<QButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ click: (event: Event) => any;
12
+ }, string, import('vue').PublicProps, Readonly<QButtonProps> & Readonly<{
19
13
  onClick?: ((event: Event) => any) | undefined;
20
- }, {
14
+ }>, {
21
15
  size: "regular" | "small";
22
16
  class: string | unknown[];
23
17
  label: string;
24
18
  bStyle: "primary" | "secondary" | "tertiary" | "danger" | "plain";
25
- }, {}>;
26
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
21
  export default _default;
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToRuntimeProps<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };
37
- type __VLS_WithDefaults<P, D> = {
38
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
39
- default: D[K];
40
- }> : P[K];
41
- };
42
- type __VLS_Prettify<T> = {
43
- [K in keyof T]: T[K];
44
- } & {};
45
22
  type __VLS_WithTemplateSlots<T, S> = T & {
46
23
  new (): {
47
24
  $slots: S;
@@ -1 +1 @@
1
- {"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAwBA;AAMC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAmD5C,iBAAS,cAAc;qBAqFO,GAAG;EAGhC;AAaD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;MAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AA4EC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAwD5C,iBAAS,cAAc;;yBA4CM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAUnB,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,5 @@
1
1
  import { default as _QButton } from './QButton';
2
2
  import { QButtonProps } from './types';
3
-
4
3
  declare const QButton: typeof _QButton;
5
4
  export { QButton };
6
5
  export type { QButtonProps };
@@ -1,34 +1,17 @@
1
1
  import { QButtonGroupProps } from './types';
2
-
3
2
  declare function __VLS_template(): {
4
- default?(_: {}): any;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
5
8
  };
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonGroupProps>, {
7
- class: undefined;
8
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonGroupProps>, {
9
- class: undefined;
10
- }>>>, {
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<QButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QButtonGroupProps> & Readonly<{}>, {
11
11
  class: string | unknown[];
12
- }, {}>;
13
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
14
  export default _default;
15
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
- type __VLS_TypePropsToRuntimeProps<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
22
- };
23
- };
24
- type __VLS_WithDefaults<P, D> = {
25
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
- default: D[K];
27
- }> : P[K];
28
- };
29
- type __VLS_Prettify<T> = {
30
- [K in keyof T]: T[K];
31
- } & {};
32
15
  type __VLS_WithTemplateSlots<T, S> = T & {
33
16
  new (): {
34
17
  $slots: S;
@@ -1 +1 @@
1
- {"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAYA;AAMC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AA0BjD,iBAAS,cAAc;qBAgDM,G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/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AA0CC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AA4BjD,iBAAS,cAAc;;yBAkCM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;6EAOnB,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,5 +1,4 @@
1
1
  import { default as _QButtonGroup } from './QButtonGroup';
2
-
3
2
  declare const QButtonGroup: typeof _QButtonGroup;
4
3
  export { QButtonGroup };
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,50 +1,20 @@
1
- import { Option } from './types';
2
-
3
- declare function __VLS_template(): Partial<Record<string, (_: {}) => any>>;
4
- declare const __VLS_component: import('vue').DefineComponent<{
5
- modelValue: import('vue').PropType<string>;
6
- options: {
7
- type: import('vue').PropType<Option[]>;
8
- required: true;
9
- };
10
- disabled: {
11
- type: import('vue').PropType<boolean>;
12
- };
13
- borderless: {
14
- type: import('vue').PropType<boolean>;
15
- };
16
- elevated: {
17
- type: import('vue').PropType<boolean>;
18
- };
19
- required: {
20
- type: import('vue').PropType<boolean>;
21
- };
22
- class: {
23
- type: import('vue').PropType<string | unknown[]>;
24
- };
25
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
- modelValue: import('vue').PropType<string>;
27
- options: {
28
- type: import('vue').PropType<Option[]>;
29
- required: true;
30
- };
31
- disabled: {
32
- type: import('vue').PropType<boolean>;
33
- };
34
- borderless: {
35
- type: import('vue').PropType<boolean>;
36
- };
37
- elevated: {
38
- type: import('vue').PropType<boolean>;
39
- };
40
- required: {
41
- type: import('vue').PropType<boolean>;
42
- };
43
- class: {
44
- type: import('vue').PropType<string | unknown[]>;
45
- };
46
- }>>, {}, {}>;
47
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
1
+ import { QButtonToggleProps } from './types';
2
+ declare let __VLS_typeProps: QButtonToggleProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string;
5
+ } & typeof __VLS_typeProps;
6
+ declare function __VLS_template(): {
7
+ slots: Partial<Record<string, (_: {}) => any>>;
8
+ refs: {};
9
+ attrs: Partial<{}>;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "update:modelValue": (modelValue: string) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
18
  export default _default;
49
19
  type __VLS_WithTemplateSlots<T, S> = T & {
50
20
  new (): {
@@ -1 +1 @@
1
- {"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"AAkBA;AAOC,OAAO,KAAK,EAAE,MAAM,EAAsB,MAAM,SAAS,CAAA;AAmB1D,iBAAS,cAAc,sCA+D+D,GAAG,GAIxF;AAeD,QAAA,MAAM,eAAe;gBAxFT,OAAO,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC;;;kBAoG2J,IAAI;;;;;;;;;;;;;;;;;;gBApG7L,OAAO,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC;;;kBAoG2J,IAAI;;;;;;;;;;;;;;;;;YAHvM,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"AA8CC,OAAO,KAAK,EAAU,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI1D,QAAA,IAAI,eAAe,EAAG,kBAAkB,CAAC;AAgBzC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,eAAe,CAAC;AAI3B,iBAAS,cAAc;6CAyD+D,GAAG;;WAU3E,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
- import { defineComponent as i, mergeModels as c, useModel as m, openBlock as a, createBlock as r, unref as d, normalizeClass as b, withCtx as n, createElementBlock as f, Fragment as y, renderList as k, renderSlot as p } from "vue";
2
- import { QButton as v } from "../QButton/index.js";
1
+ import { defineComponent as i, mergeModels as c, useModel as m, openBlock as o, createBlock as s, unref as d, normalizeClass as b, withCtx as n, createElementBlock as y, Fragment as f, renderList as k, renderSlot as v } from "vue";
2
+ import { QButton as p } from "../QButton/index.js";
3
3
  import { QButtonGroup as B } from "../QButtonGroup/index.js";
4
- const Q = /* @__PURE__ */ i({
4
+ const M = /* @__PURE__ */ i({
5
5
  __name: "QButtonToggle",
6
6
  props: /* @__PURE__ */ c({
7
7
  options: {},
@@ -15,35 +15,38 @@ const Q = /* @__PURE__ */ i({
15
15
  modelModifiers: {}
16
16
  }),
17
17
  emits: ["update:modelValue"],
18
- setup(s) {
19
- const e = s, t = m(s, "modelValue");
20
- function u(o) {
21
- t.value === o.key && !e.required ? t.value = void 0 : t.value = o.key;
18
+ setup(r) {
19
+ const l = r, t = m(r, "modelValue");
20
+ function u(a) {
21
+ t.value === a.key && !l.required ? t.value = void 0 : t.value = a.key;
22
22
  }
23
- return (o, g) => (a(), r(d(B), {
23
+ return (a, g) => (o(), s(d(B), {
24
24
  "b-style": "secondary",
25
- class: b(e.class),
26
- disabled: e.disabled,
27
- borderless: e.borderless,
28
- elevated: e.elevated
25
+ class: b(l.class),
26
+ disabled: l.disabled,
27
+ borderless: l.borderless,
28
+ elevated: l.elevated,
29
+ role: "listbox"
29
30
  }, {
30
31
  default: n(() => [
31
- (a(!0), f(
32
- y,
32
+ (o(!0), y(
33
+ f,
33
34
  null,
34
- k(e.options, (l) => (a(), r(d(v), {
35
- key: l.key,
36
- title: l.title,
37
- label: l.label,
38
- active: t.value === l.key,
39
- onClick: () => u(l)
35
+ k(l.options, (e) => (o(), s(d(p), {
36
+ key: e.key,
37
+ title: e.title,
38
+ label: e.label,
39
+ active: t.value === e.key,
40
+ role: "option",
41
+ "aria-selected": t.value === e.key,
42
+ onClick: () => u(e)
40
43
  }, {
41
44
  default: n(() => [
42
- p(o.$slots, l.key)
45
+ v(a.$slots, e.key)
43
46
  ]),
44
47
  _: 2
45
48
  /* DYNAMIC */
46
- }, 1032, ["title", "label", "active", "onClick"]))),
49
+ }, 1032, ["title", "label", "active", "aria-selected", "onClick"]))),
47
50
  128
48
51
  /* KEYED_FRAGMENT */
49
52
  ))
@@ -54,5 +57,5 @@ const Q = /* @__PURE__ */ i({
54
57
  }
55
58
  });
56
59
  export {
57
- Q as default
60
+ M as default
58
61
  };
@@ -1,5 +1,4 @@
1
1
  import { default as _QButtonToggle } from './QButtonToggle';
2
-
3
2
  declare const QButtonToggle: typeof _QButtonToggle;
4
3
  export { QButtonToggle };
5
4
  //# sourceMappingURL=index.d.ts.map