@quidgest/ui 0.14.5 → 0.14.7

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 (141) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +162 -25
  3. package/dist/ui.esm.js +1363 -1103
  4. package/dist/ui.js +44 -7
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +143 -119
  7. package/dist/ui.scss +175 -26
  8. package/esm/components/QAccordion/QAccordion.d.ts +27 -0
  9. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -0
  10. package/esm/components/QAccordion/QAccordion.vue.js +27 -0
  11. package/esm/components/QAccordion/QAccordion.vue2.js +4 -0
  12. package/esm/components/QAccordion/index.d.ts +4 -0
  13. package/esm/components/QAccordion/index.d.ts.map +1 -0
  14. package/esm/components/QAccordion/index.js +6 -0
  15. package/esm/components/QAccordion/types.d.ts +7 -0
  16. package/esm/components/QAccordion/types.d.ts.map +1 -0
  17. package/esm/components/QBadge/QBadge.d.ts +3 -2
  18. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  19. package/esm/components/QBadge/QBadge.vue.js +11 -11
  20. package/esm/components/QButton/QButton.d.ts +3 -2
  21. package/esm/components/QButton/QButton.d.ts.map +1 -1
  22. package/esm/components/QButton/QButton.vue.js +14 -14
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts +3 -2
  24. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  25. package/esm/components/QButtonGroup/QButtonGroup.vue.js +3 -3
  26. package/esm/components/QButtonToggle/QButtonToggle.d.ts +7 -6
  27. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  28. package/esm/components/QButtonToggle/QButtonToggle.vue.js +6 -6
  29. package/esm/components/QCard/QCard.d.ts +3 -2
  30. package/esm/components/QCard/QCard.d.ts.map +1 -1
  31. package/esm/components/QCard/QCard.vue.js +30 -30
  32. package/esm/components/QCheckbox/QCheckbox.d.ts +4 -4
  33. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  34. package/esm/components/QCheckbox/QCheckbox.vue.js +4 -4
  35. package/esm/components/QCollapsible/QCollapsible.d.ts +36 -0
  36. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -0
  37. package/esm/components/QCollapsible/QCollapsible.vue.js +143 -0
  38. package/esm/components/QCollapsible/QCollapsible.vue2.js +4 -0
  39. package/esm/components/QCollapsible/index.d.ts +6 -0
  40. package/esm/components/QCollapsible/index.d.ts.map +1 -0
  41. package/esm/components/QCollapsible/index.js +6 -0
  42. package/esm/components/QCollapsible/types.d.ts +43 -0
  43. package/esm/components/QCollapsible/types.d.ts.map +1 -0
  44. package/esm/components/QCollapsible/types.js +8 -0
  45. package/esm/components/QCombobox/QCombobox.d.ts +40 -39
  46. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  47. package/esm/components/QCombobox/QCombobox.vue.js +80 -80
  48. package/esm/components/QDialog/QDialog.d.ts +6 -5
  49. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  50. package/esm/components/QDialog/QDialog.vue.js +7 -7
  51. package/esm/components/QField/QField.d.ts +2 -1
  52. package/esm/components/QField/QField.d.ts.map +1 -1
  53. package/esm/components/QField/QField.vue.js +9 -9
  54. package/esm/components/QIcon/InlineSvg.d.ts +1 -1
  55. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  56. package/esm/components/QIcon/QIcon.vue.js +9 -9
  57. package/esm/components/QIcon/QIconFont.d.ts +2 -2
  58. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  59. package/esm/components/QIcon/QIconFont.vue.js +5 -5
  60. package/esm/components/QIcon/QIconImg.d.ts +1 -1
  61. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  62. package/esm/components/QIcon/QIconImg.vue.js +5 -5
  63. package/esm/components/QIcon/QIconSvg.d.ts +2 -2
  64. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  65. package/esm/components/QIcon/QIconSvg.vue.js +17 -17
  66. package/esm/components/QInputGroup/QInputGroup.d.ts +2 -1
  67. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  68. package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
  69. package/esm/components/QLineLoader/QLineLoader.d.ts +1 -1
  70. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  71. package/esm/components/QLineLoader/QLineLoader.vue.js +4 -4
  72. package/esm/components/QList/QList.d.ts +6 -5
  73. package/esm/components/QList/QList.d.ts.map +1 -1
  74. package/esm/components/QList/QList.vue.js +1 -1
  75. package/esm/components/QList/QListItem.d.ts +3 -2
  76. package/esm/components/QList/QListItem.d.ts.map +1 -1
  77. package/esm/components/QList/QListItem.vue.js +18 -18
  78. package/esm/components/QList/QListItemGroup.d.ts +3 -2
  79. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  80. package/esm/components/QOverlay/QOverlay.d.ts +6 -5
  81. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  82. package/esm/components/QOverlay/QOverlay.vue.js +148 -138
  83. package/esm/components/QPopover/QPopover.d.ts +6 -5
  84. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  85. package/esm/components/QPropertyList/QPropertyList.d.ts +3 -2
  86. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  87. package/esm/components/QPropertyList/QPropertyList.vue.js +22 -22
  88. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
  89. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  90. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +3 -2
  91. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  92. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +4 -4
  93. package/esm/components/QPropertyList/QPropertyListRow.d.ts +3 -2
  94. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  95. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +24 -0
  96. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -0
  97. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +72 -0
  98. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue2.js +4 -0
  99. package/esm/components/QRemoveScrollBar/constants.d.ts +10 -0
  100. package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -0
  101. package/esm/components/QRemoveScrollBar/constants.js +8 -0
  102. package/esm/components/QRemoveScrollBar/index.d.ts +4 -0
  103. package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -0
  104. package/esm/components/QRemoveScrollBar/index.js +6 -0
  105. package/esm/components/QRemoveScrollBar/types.d.ts +18 -0
  106. package/esm/components/QRemoveScrollBar/types.d.ts.map +1 -0
  107. package/esm/components/QRemoveScrollBar/utils/gap.d.ts +15 -0
  108. package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -0
  109. package/esm/components/QRemoveScrollBar/utils/gap.js +23 -0
  110. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +5 -0
  111. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -0
  112. package/esm/components/QRemoveScrollBar/utils/stylesheet.js +24 -0
  113. package/esm/components/QSelect/QSelect.d.ts +11 -10
  114. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  115. package/esm/components/QSelect/QSelect.vue.js +33 -33
  116. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -1
  117. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  118. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +11 -11
  119. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +1 -1
  120. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  121. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  122. package/esm/components/QTextField/QTextField.d.ts +7 -6
  123. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  124. package/esm/components/QTextField/QTextField.vue.js +15 -15
  125. package/esm/components/QThemeProvider/QThemeProvider.d.ts +3 -2
  126. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  127. package/esm/components/QTooltip/QTooltip.d.ts +7 -6
  128. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  129. package/esm/components/QTooltip/QTooltip.vue.js +15 -15
  130. package/esm/components/index.d.ts +2 -0
  131. package/esm/components/index.d.ts.map +1 -1
  132. package/esm/components/index.js +56 -52
  133. package/esm/composables/defaults.js +5 -5
  134. package/esm/composables/group.d.ts +16 -0
  135. package/esm/composables/group.d.ts.map +1 -0
  136. package/esm/composables/group.js +34 -0
  137. package/esm/composables/overlay.js +11 -11
  138. package/esm/framework.js +2 -2
  139. package/esm/index.d.ts +2 -0
  140. package/esm/utils/color.js +6 -6
  141. package/package.json +34 -30
@@ -1,19 +1,20 @@
1
1
  import { QButtonToggleProps } from './types';
2
- declare let __VLS_typeProps: QButtonToggleProps;
2
+ type __VLS_Props = QButtonToggleProps;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: string;
5
- } & typeof __VLS_typeProps;
5
+ } & __VLS_Props;
6
6
  declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
7
8
  slots: Partial<Record<string, (_: {}) => any>>;
8
9
  refs: {};
9
- attrs: Partial<{}>;
10
+ rootEl: HTMLDivElement;
10
11
  };
11
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
13
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- "update:modelValue": (modelValue: string) => any;
14
+ "update:modelValue": (value: string) => any;
14
15
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
- "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
19
  export default _default;
19
20
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
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
+ {"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"AAqBA;AA8CC,OAAO,KAAK,EAAU,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI1D,KAAK,WAAW,GAAG,kBAAkB,CAAC;AAiBtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmET,OAAO,IAA6B;6CAToC,GAAG;;;EAcxF;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,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,5 +1,5 @@
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";
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 f, Fragment as y, renderList as k, renderSlot as p } from "vue";
2
+ import { QButton as v } from "../QButton/index.js";
3
3
  import { QButtonGroup as B } from "../QButtonGroup/index.js";
4
4
  const M = /* @__PURE__ */ i({
5
5
  __name: "QButtonToggle",
@@ -29,10 +29,10 @@ const M = /* @__PURE__ */ i({
29
29
  role: "listbox"
30
30
  }, {
31
31
  default: n(() => [
32
- (o(!0), y(
33
- f,
32
+ (o(!0), f(
33
+ y,
34
34
  null,
35
- k(l.options, (e) => (o(), s(d(p), {
35
+ k(l.options, (e) => (o(), s(d(v), {
36
36
  key: e.key,
37
37
  title: e.title,
38
38
  label: e.label,
@@ -42,7 +42,7 @@ const M = /* @__PURE__ */ i({
42
42
  onClick: () => u(e)
43
43
  }, {
44
44
  default: n(() => [
45
- v(a.$slots, e.key)
45
+ p(a.$slots, e.key)
46
46
  ]),
47
47
  _: 2
48
48
  /* DYNAMIC */
@@ -1,5 +1,6 @@
1
1
  import { QCardProps } from './types';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  header?(_: {}): any;
5
6
  "header.prepend"?(_: {}): any;
@@ -12,12 +13,12 @@ declare function __VLS_template(): {
12
13
  footer?(_: {}): any;
13
14
  };
14
15
  refs: {};
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<QCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QCardProps> & Readonly<{}>, {
19
- title: string;
20
20
  variant: "default" | "background" | "title-background" | "minor";
21
+ title: string;
21
22
  id: string;
22
23
  subtitle: string;
23
24
  href: string;
@@ -1 +1 @@
1
- {"version":3,"file":"QCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/QCard.vue"],"names":[],"mappings":"AAsIC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAiE1C,iBAAS,cAAc;;wBAwGM,GAAG;kCACO,GAAG;0CACK,GAAG;uBACtB,GAAG;0BACA,GAAG;yCACY,GAAG;iCACX,GAAG;yBACX,GAAG;wBACJ,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAcD,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
+ {"version":3,"file":"QCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/QCard.vue"],"names":[],"mappings":"AAyEA;AAsIC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAkE1C,iBAAS,cAAc;WAyHT,OAAO,IAA6B;;wBAhBrB,GAAG;kCACO,GAAG;0CACK,GAAG;uBACtB,GAAG;0BACA,GAAG;yCACY,GAAG;iCACX,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;EAa/B;AAcD,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,4 +1,4 @@
1
- import { defineComponent as q, useAttrs as y, computed as d, openBlock as o, createBlock as u, resolveDynamicComponent as C, unref as v, normalizeClass as T, withCtx as D, createElementBlock as l, Fragment as i, createCommentVNode as s, createElementVNode as r, renderSlot as a, createTextVNode as p, toDisplayString as f } from "vue";
1
+ import { defineComponent as q, useAttrs as y, computed as l, openBlock as o, createBlock as u, resolveDynamicComponent as C, unref as f, normalizeClass as T, withCtx as D, createElementBlock as a, Fragment as n, createCommentVNode as s, createElementVNode as i, renderSlot as d, createTextVNode as p, toDisplayString as h } from "vue";
2
2
  import { QSpinnerLoader as N } from "../QSpinnerLoader/index.js";
3
3
  import { useId as g } from "../../composables/uid.js";
4
4
  const B = { class: "q-card__header" }, A = {
@@ -29,8 +29,8 @@ const B = { class: "q-card__header" }, A = {
29
29
  elevation: { default: "none" },
30
30
  width: { default: void 0 }
31
31
  },
32
- setup(h) {
33
- const e = h, $ = y(), m = g(e.id), b = d(() => {
32
+ setup(v) {
33
+ const e = v, $ = y(), m = g(e.id), b = l(() => {
34
34
  const t = e.width ? `q-card--${e.width}` : void 0, c = e.variant && e.variant !== "default" ? `q-card--${e.variant}` : void 0, _ = e.elevation && e.elevation !== "none" ? `q-card--elevation-${e.elevation}` : void 0;
35
35
  return [
36
36
  "q-card",
@@ -44,40 +44,40 @@ const B = { class: "q-card__header" }, A = {
44
44
  "q-card--disabled": e.disabled
45
45
  }
46
46
  ];
47
- }), E = d(() => !!$.onClick || e.href), n = d(() => e.disabled || e.loading), k = (t) => {
48
- n.value && t.stopImmediatePropagation();
47
+ }), E = l(() => !!$.onClick || e.href), r = l(() => e.disabled || e.loading), k = (t) => {
48
+ r.value && t.stopImmediatePropagation();
49
49
  };
50
50
  return (t, c) => (o(), u(C(e.href ? "a" : "div"), {
51
- id: v(m),
51
+ id: f(m),
52
52
  class: T([...b.value, t.$attrs.class]),
53
- href: e.href && !n.value ? e.href : void 0,
53
+ href: e.href && !r.value ? e.href : void 0,
54
54
  onClick: k
55
55
  }, {
56
56
  default: D(() => [
57
- e.loading ? (o(), u(v(N), {
57
+ e.loading ? (o(), u(f(N), {
58
58
  key: 0,
59
59
  size: 36
60
- })) : (o(), l(
61
- i,
60
+ })) : (o(), a(
61
+ n,
62
62
  { key: 1 },
63
63
  [
64
64
  s(" HEADER "),
65
- r("div", B, [
66
- a(t.$slots, "header", {}, () => [
65
+ i("div", B, [
66
+ d(t.$slots, "header", {}, () => [
67
67
  s(" HEADER: PREPEND "),
68
- a(t.$slots, "header.prepend"),
68
+ d(t.$slots, "header.prepend"),
69
69
  s(" HEADER CONTENT "),
70
- t.$slots.title || e.title || t.$slots.subtitle || e.subtitle ? (o(), l("div", A, [
71
- a(t.$slots, "header.content.prepend"),
72
- r("div", R, [
70
+ t.$slots.title || e.title || t.$slots.subtitle || e.subtitle ? (o(), a("div", A, [
71
+ d(t.$slots, "header.content.prepend"),
72
+ i("div", R, [
73
73
  s(" TITLE "),
74
- t.$slots.title || e.title ? (o(), l("p", w, [
75
- t.$slots.title ? a(t.$slots, "title", { key: 0 }) : (o(), l(
76
- i,
74
+ t.$slots.title || e.title ? (o(), a("p", w, [
75
+ t.$slots.title ? d(t.$slots, "title", { key: 0 }) : (o(), a(
76
+ n,
77
77
  { key: 1 },
78
78
  [
79
79
  p(
80
- f(t.$props.title),
80
+ h(t.$props.title),
81
81
  1
82
82
  /* TEXT */
83
83
  )
@@ -87,13 +87,13 @@ const B = { class: "q-card__header" }, A = {
87
87
  ))
88
88
  ])) : s("v-if", !0),
89
89
  s(" SUBTITLE "),
90
- t.$slots.subtitle || e.subtitle ? (o(), l("p", P, [
91
- t.$slots.subtitle ? a(t.$slots, "subtitle", { key: 0 }) : (o(), l(
92
- i,
90
+ t.$slots.subtitle || e.subtitle ? (o(), a("p", P, [
91
+ t.$slots.subtitle ? d(t.$slots, "subtitle", { key: 0 }) : (o(), a(
92
+ n,
93
93
  { key: 1 },
94
94
  [
95
95
  p(
96
- f(t.$props.subtitle),
96
+ h(t.$props.subtitle),
97
97
  1
98
98
  /* TEXT */
99
99
  )
@@ -103,19 +103,19 @@ const B = { class: "q-card__header" }, A = {
103
103
  ))
104
104
  ])) : s("v-if", !0)
105
105
  ]),
106
- a(t.$slots, "header.content.append")
106
+ d(t.$slots, "header.content.append")
107
107
  ])) : s("v-if", !0),
108
108
  s(" HEADER: APPEND "),
109
- a(t.$slots, "header.append")
109
+ d(t.$slots, "header.append")
110
110
  ])
111
111
  ]),
112
112
  s(" CONTENT "),
113
- r("div", H, [
114
- a(t.$slots, "default")
113
+ i("div", H, [
114
+ d(t.$slots, "default")
115
115
  ]),
116
116
  s(" FOOTER "),
117
- t.$slots.footer ? (o(), l("div", I, [
118
- a(t.$slots, "footer")
117
+ t.$slots.footer ? (o(), a("div", I, [
118
+ d(t.$slots, "footer")
119
119
  ])) : s("v-if", !0)
120
120
  ],
121
121
  64
@@ -1,12 +1,12 @@
1
1
  import { QCheckboxProps, DEFAULT_ICONS } from './types';
2
- declare let __VLS_typeProps: QCheckboxProps;
2
+ type __VLS_Props = QCheckboxProps;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: boolean;
5
- } & typeof __VLS_typeProps;
5
+ } & __VLS_Props;
6
6
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (modelValue: boolean) => any;
7
+ "update:modelValue": (value: boolean) => any;
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
- "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
9
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
10
  }>, {
11
11
  size: "regular" | "small" | "large";
12
12
  class: string | unknown[];
@@ -1 +1 @@
1
- {"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAyFC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAIxC,QAAA,IAAI,eAAe,EAAG,cAAc,CAAC;AAmDrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,eAAe,CAAC;;;;;;;;;;;;;;AA2E3B,wBAQG"}
1
+ {"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAmCA;AAyFC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAIxC,KAAK,WAAW,GAAG,cAAc,CAAC;AAoDlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;AA8EhB,wBAQG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, mergeModels as f, useModel as y, computed as v, openBlock as l, createElementBlock as t, Fragment as x, createElementVNode as a, normalizeClass as _, toDisplayString as s, createCommentVNode as n, unref as u, withModifiers as d, withKeys as m, createBlock as g, mergeProps as q } from "vue";
1
+ import { defineComponent as k, mergeModels as f, useModel as y, computed as x, openBlock as l, createElementBlock as t, Fragment as _, createElementVNode as a, normalizeClass as v, toDisplayString as s, createCommentVNode as n, unref as u, withModifiers as d, withKeys as m, createBlock as g, mergeProps as q } from "vue";
2
2
  import { QIcon as B } from "../QIcon/index.js";
3
3
  import { useId as C } from "../../composables/uid.js";
4
4
  import { DEFAULT_ICONS as V } from "./types.js";
@@ -21,7 +21,7 @@ const w = { key: 0 }, M = ["id", "aria-checked", "disabled", "onKeydown"], P = {
21
21
  }),
22
22
  emits: ["update:modelValue"],
23
23
  setup(i) {
24
- const e = i, o = y(i, "modelValue"), b = C(e.id), p = v(() => [
24
+ const e = i, o = y(i, "modelValue"), b = C(e.id), p = x(() => [
25
25
  "q-checkbox",
26
26
  `q-checkbox--${e.size}`,
27
27
  `q-checkbox--${e.color}`,
@@ -37,13 +37,13 @@ const w = { key: 0 }, M = ["id", "aria-checked", "disabled", "onKeydown"], P = {
37
37
  !e.disabled && !e.readonly && (o.value = !o.value);
38
38
  }
39
39
  return (h, r) => (l(), t(
40
- x,
40
+ _,
41
41
  null,
42
42
  [
43
43
  a(
44
44
  "label",
45
45
  {
46
- class: _(p.value)
46
+ class: v(p.value)
47
47
  },
48
48
  [
49
49
  e.labelPlacement !== "right" ? (l(), t(
@@ -0,0 +1,36 @@
1
+ import { QCollapsibleProps, DEFAULT_ICONS } from './types';
2
+ type __VLS_Props = QCollapsibleProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ icon?(_: {}): any;
10
+ icon?(_: {}): any;
11
+ "title.prepend"?(_: {}): any;
12
+ "title.append"?(_: {}): any;
13
+ subtitle?(_: {}): any;
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: any;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ "update:modelValue": (value: boolean) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
24
+ }>, {
25
+ icons: typeof DEFAULT_ICONS;
26
+ id: string;
27
+ width: "fit-content" | "block";
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
36
+ //# sourceMappingURL=QCollapsible.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"AAsEA;AAqJC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAOxC,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAoErC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+HT,OAAO,IAA6B;;sBAbvB,GAAG;sBAGH,GAAG;iCAFQ,GAAG;gCACJ,GAAG;0BAET,GAAG;yBACJ,GAAG;;;;EAahC;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EASnB,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"}
@@ -0,0 +1,143 @@
1
+ import { defineComponent as T, mergeModels as w, useModel as I, computed as r, watch as N, openBlock as c, createBlock as $, unref as a, normalizeClass as f, withCtx as d, createElementBlock as u, createVNode as p, createCommentVNode as o, createElementVNode as n, renderSlot as s, mergeProps as h, toDisplayString as m, createTextVNode as B } from "vue";
2
+ import { QCard as E } from "../QCard/index.js";
3
+ import { QButton as V } from "../QButton/index.js";
4
+ import { QIcon as q } from "../QIcon/index.js";
5
+ import { DEFAULT_ICONS as O } from "./types.js";
6
+ import { useGroupItem as R } from "../../composables/group.js";
7
+ import { useId as L } from "../../composables/uid.js";
8
+ const Q = {
9
+ key: 0,
10
+ class: "q-collapsible__header"
11
+ }, S = { class: "q-collapsible__title" }, A = { class: "q-collapsible__title-text" }, H = {
12
+ key: 1,
13
+ class: "q-collapsible--required"
14
+ }, M = {
15
+ key: 0,
16
+ class: "q-collapsible__subtitle"
17
+ }, D = { class: "q-collapsible__content-inner" }, F = { class: "q-collapsible__content" }, W = /* @__PURE__ */ T({
18
+ __name: "QCollapsible",
19
+ props: /* @__PURE__ */ w({
20
+ id: { default: void 0 },
21
+ title: {},
22
+ subtitle: {},
23
+ width: { default: "fit-content" },
24
+ required: { type: Boolean },
25
+ spacing: {},
26
+ variant: {},
27
+ iconRight: { type: Boolean },
28
+ icons: { default: () => O }
29
+ }, {
30
+ modelValue: { type: Boolean },
31
+ modelModifiers: {}
32
+ }),
33
+ emits: ["update:modelValue"],
34
+ setup(v) {
35
+ const l = v, i = I(v, "modelValue"), _ = L(l.id), t = R(_), g = r(() => l.width === "block" ? "block" : void 0), k = r(() => {
36
+ const e = l.spacing && l.spacing !== "comfortable" ? `q-collapsible--${l.spacing}` : void 0, b = l.variant && l.variant !== "default" ? `q-collapsible--${l.variant}` : void 0;
37
+ return [
38
+ "q-collapsible",
39
+ e,
40
+ b,
41
+ {
42
+ "q-collapsible--icon-right": l.iconRight,
43
+ "q-collapsible--expanded": i.value
44
+ }
45
+ ];
46
+ }), y = r(() => [
47
+ "q-collapsible__content-wrapper",
48
+ {
49
+ "q-collapsible__content-show": i.value
50
+ }
51
+ ]), C = () => {
52
+ i.value = !i.value, t == null || t.toggle();
53
+ };
54
+ return N(
55
+ () => t == null ? void 0 : t.isActive.value,
56
+ () => i.value = t == null ? void 0 : t.isActive.value
57
+ ), (e, b) => (c(), $(a(E), {
58
+ id: a(_),
59
+ class: f(k.value),
60
+ width: g.value
61
+ }, {
62
+ header: d(() => [
63
+ e.title ? (c(), u("div", Q, [
64
+ p(a(V), {
65
+ "b-style": "tertiary",
66
+ class: "q-collapsible__btn",
67
+ onClick: C
68
+ }, {
69
+ default: d(() => [
70
+ o(" TITLE "),
71
+ n("div", S, [
72
+ o(" ICON ON THE LEFT "),
73
+ e.iconRight ? o("v-if", !0) : s(e.$slots, "icon", { key: 0 }, () => [
74
+ p(
75
+ a(q),
76
+ h({ class: "q-collapsible__chevron" }, l.icons.chevron),
77
+ null,
78
+ 16
79
+ /* FULL_PROPS */
80
+ )
81
+ ]),
82
+ s(e.$slots, "title.prepend"),
83
+ n(
84
+ "h4",
85
+ A,
86
+ m(e.title),
87
+ 1
88
+ /* TEXT */
89
+ ),
90
+ l.required ? (c(), u("span", H, " * ")) : o("v-if", !0),
91
+ s(e.$slots, "title.append"),
92
+ o(" ICON ON THE RIGHT "),
93
+ e.iconRight ? s(e.$slots, "icon", { key: 2 }, () => [
94
+ p(
95
+ a(q),
96
+ h({ class: "q-collapsible__chevron q-collapsible__chevron-right" }, l.icons.chevron),
97
+ null,
98
+ 16
99
+ /* FULL_PROPS */
100
+ )
101
+ ]) : o("v-if", !0)
102
+ ]),
103
+ o(" SUBTITLE "),
104
+ e.$slots.subtitle || e.subtitle ? (c(), u("div", M, [
105
+ s(e.$slots, "subtitle", {}, () => [
106
+ B(
107
+ m(e.subtitle),
108
+ 1
109
+ /* TEXT */
110
+ )
111
+ ])
112
+ ])) : o("v-if", !0)
113
+ ]),
114
+ _: 3
115
+ /* FORWARDED */
116
+ })
117
+ ])) : o("v-if", !0)
118
+ ]),
119
+ default: d(() => [
120
+ n(
121
+ "div",
122
+ {
123
+ class: f(y.value)
124
+ },
125
+ [
126
+ n("div", D, [
127
+ n("div", F, [
128
+ s(e.$slots, "default")
129
+ ])
130
+ ])
131
+ ],
132
+ 2
133
+ /* CLASS */
134
+ )
135
+ ]),
136
+ _: 3
137
+ /* FORWARDED */
138
+ }, 8, ["id", "class", "width"]));
139
+ }
140
+ });
141
+ export {
142
+ W as default
143
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QCollapsible.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import { default as _QCollapsible } from './QCollapsible';
2
+ import { QCollapsibleProps } from './types';
3
+ declare const QCollapsible: typeof _QCollapsible;
4
+ export { QCollapsible };
5
+ export type { QCollapsibleProps };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAG9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,QAAA,MAAM,YAAY,EAAqC,OAAO,aAAa,CAAA;AAG3E,OAAO,EAAE,YAAY,EAAE,CAAA;AAGvB,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import o from "./QCollapsible.vue.js";
2
+ import { setupPropsProxy as r } from "../../utils/setupPropsProxy.js";
3
+ const s = r(o);
4
+ export {
5
+ s as QCollapsible
6
+ };
@@ -0,0 +1,43 @@
1
+ import { Icon } from '../QIcon';
2
+ export type QCollapsibleProps = {
3
+ /**
4
+ * The collapsible unique identifier.
5
+ */
6
+ id?: string;
7
+ /**
8
+ * The title of the collapsible.
9
+ */
10
+ title?: string;
11
+ /**
12
+ * The subtitle of the collapsible
13
+ */
14
+ subtitle?: string;
15
+ /**
16
+ * The width of the container
17
+ */
18
+ width?: 'fit-content' | 'block';
19
+ /**
20
+ * Show an indicator that there are required elements inside the group
21
+ */
22
+ required?: boolean;
23
+ /**
24
+ * Controls the spacing in the collapsible
25
+ */
26
+ spacing?: 'compact' | 'comfortable' | 'loose';
27
+ /**
28
+ * The variant of the collapsible.
29
+ */
30
+ variant?: 'default' | 'border-bottom';
31
+ /**
32
+ * If true, the expand/collapse icon shows on the right
33
+ */
34
+ iconRight?: boolean;
35
+ /**
36
+ * Custom icon configurations.
37
+ */
38
+ icons?: typeof DEFAULT_ICONS;
39
+ };
40
+ type IconKeys = 'chevron';
41
+ export declare const DEFAULT_ICONS: Record<IconKeys, Icon>;
42
+ export {};
43
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,GAAG,OAAO,CAAA;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,OAAO,CAAA;IAE7C;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,eAAe,CAAA;IAErC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,KAAK,QAAQ,GAAG,SAAS,CAAA;AAGzB,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,CAIhD,CAAA"}
@@ -0,0 +1,8 @@
1
+ const o = {
2
+ chevron: {
3
+ icon: "chevron-down"
4
+ }
5
+ };
6
+ export {
7
+ o as DEFAULT_ICONS
8
+ };