@quidgest/ui 0.13.3 → 0.14.1

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 (187) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +81 -0
  3. package/dist/ui.esm.js +1163 -935
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +110 -101
  7. package/dist/ui.scss +1059 -973
  8. package/esm/components/QBadge/QBadge.d.ts +16 -68
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +29 -32
  11. package/esm/components/QBadge/index.d.ts +2 -139
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +29 -0
  14. package/esm/components/QBadge/types.d.ts.map +1 -0
  15. package/esm/components/QBadge/types.js +8 -0
  16. package/esm/components/QButton/QButton.d.ts +15 -80
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/index.d.ts +3 -198
  19. package/esm/components/QButton/index.d.ts.map +1 -1
  20. package/esm/components/QButton/types.d.ts +47 -0
  21. package/esm/components/QButton/types.d.ts.map +1 -0
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +11 -42
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/index.d.ts +2 -79
  25. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  26. package/esm/components/QButtonGroup/types.d.ts +19 -0
  27. package/esm/components/QButtonGroup/types.d.ts.map +1 -0
  28. package/esm/components/QButtonToggle/QButtonToggle.d.ts +16 -73
  29. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  30. package/esm/components/QButtonToggle/index.d.ts +2 -115
  31. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  32. package/esm/components/QButtonToggle/types.d.ts +32 -0
  33. package/esm/components/QButtonToggle/types.d.ts.map +1 -0
  34. package/esm/components/QCombobox/QCombobox.d.ts +445 -435
  35. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.vue.js +121 -126
  37. package/esm/components/QCombobox/index.d.ts +2 -1075
  38. package/esm/components/QCombobox/index.d.ts.map +1 -1
  39. package/esm/components/QCombobox/types.d.ts +93 -0
  40. package/esm/components/QCombobox/types.d.ts.map +1 -0
  41. package/esm/components/QCombobox/types.js +16 -0
  42. package/esm/components/QDialog/QDialog.d.ts +23 -186
  43. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  44. package/esm/components/QDialog/QDialog.vue.js +48 -64
  45. package/esm/components/QDialog/index.d.ts +3 -268
  46. package/esm/components/QDialog/index.d.ts.map +1 -1
  47. package/esm/components/QDialog/types.d.ts +80 -0
  48. package/esm/components/QDialog/types.d.ts.map +1 -0
  49. package/esm/components/QDialog/types.js +23 -0
  50. package/esm/components/QField/QField.d.ts +22 -77
  51. package/esm/components/QField/QField.d.ts.map +1 -1
  52. package/esm/components/QField/index.d.ts +3 -169
  53. package/esm/components/QField/index.d.ts.map +1 -1
  54. package/esm/components/QField/types.d.ts +37 -0
  55. package/esm/components/QField/types.d.ts.map +1 -0
  56. package/esm/components/QIcon/InlineSvg.d.ts +6 -6
  57. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
  58. package/esm/components/QIcon/InlineSvg.js +6 -13
  59. package/esm/components/QIcon/QIcon.d.ts +4 -46
  60. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  61. package/esm/components/QIcon/QIcon.vue.js +2 -2
  62. package/esm/components/QIcon/QIconFont.d.ts +3 -51
  63. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  64. package/esm/components/QIcon/QIconFont.vue.js +9 -9
  65. package/esm/components/QIcon/QIconImg.d.ts +2 -36
  66. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  67. package/esm/components/QIcon/QIconImg.vue.js +3 -3
  68. package/esm/components/QIcon/QIconSvg.d.ts +7 -65
  69. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  70. package/esm/components/QIcon/QIconSvg.vue.js +9 -9
  71. package/esm/components/QIcon/index.d.ts +9 -157
  72. package/esm/components/QIcon/index.d.ts.map +1 -1
  73. package/esm/components/QIcon/types.d.ts +40 -0
  74. package/esm/components/QIcon/types.d.ts.map +1 -0
  75. package/esm/components/QInputGroup/QInputGroup.d.ts +17 -74
  76. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  77. package/esm/components/QInputGroup/index.d.ts +2 -153
  78. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  79. package/esm/components/QInputGroup/types.d.ts +34 -0
  80. package/esm/components/QInputGroup/types.d.ts.map +1 -0
  81. package/esm/components/QLineLoader/QLineLoader.d.ts +3 -29
  82. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  83. package/esm/components/QLineLoader/index.d.ts +2 -13
  84. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  85. package/esm/components/QLineLoader/types.d.ts +7 -0
  86. package/esm/components/QLineLoader/types.d.ts.map +1 -0
  87. package/esm/components/QList/QList.d.ts +25 -116
  88. package/esm/components/QList/QList.d.ts.map +1 -1
  89. package/esm/components/QList/QListItem.d.ts +16 -84
  90. package/esm/components/QList/QListItem.d.ts.map +1 -1
  91. package/esm/components/QList/QListItem.vue.js +25 -31
  92. package/esm/components/QList/QListItemGroup.d.ts +11 -34
  93. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  94. package/esm/components/QList/index.d.ts +7 -453
  95. package/esm/components/QList/index.d.ts.map +1 -1
  96. package/esm/components/QList/types.d.ts +100 -0
  97. package/esm/components/QList/types.d.ts.map +1 -0
  98. package/esm/components/QList/types.js +11 -0
  99. package/esm/components/QOverlay/QOverlay.d.ts +31 -234
  100. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  101. package/esm/components/QOverlay/QOverlay.vue.js +1 -2
  102. package/esm/components/QOverlay/index.d.ts +2 -339
  103. package/esm/components/QOverlay/index.d.ts.map +1 -1
  104. package/esm/components/QOverlay/types.d.ts +87 -0
  105. package/esm/components/QOverlay/types.d.ts.map +1 -0
  106. package/esm/components/QPopover/QPopover.d.ts +21 -120
  107. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  108. package/esm/components/QPopover/index.d.ts +2 -180
  109. package/esm/components/QPopover/index.d.ts.map +1 -1
  110. package/esm/components/QPopover/types.d.ts +43 -0
  111. package/esm/components/QPopover/types.d.ts.map +1 -0
  112. package/esm/components/QPropertyList/QPropertyList.d.ts +42 -0
  113. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
  114. package/esm/components/QPropertyList/QPropertyList.vue.js +145 -0
  115. package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
  116. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +11 -0
  117. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
  118. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +68 -0
  119. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
  120. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +21 -0
  121. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
  122. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +43 -0
  123. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
  124. package/esm/components/QPropertyList/QPropertyListRow.d.ts +24 -0
  125. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
  126. package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
  127. package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
  128. package/esm/components/QPropertyList/index.d.ts +12 -0
  129. package/esm/components/QPropertyList/index.d.ts.map +1 -0
  130. package/esm/components/QPropertyList/index.js +12 -0
  131. package/esm/components/QPropertyList/types.d.ts +137 -0
  132. package/esm/components/QPropertyList/types.d.ts.map +1 -0
  133. package/esm/components/QPropertyList/types.js +14 -0
  134. package/esm/components/QSelect/QSelect.d.ts +202 -227
  135. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  136. package/esm/components/QSelect/QSelect.vue.js +140 -146
  137. package/esm/components/QSelect/index.d.ts +2 -369
  138. package/esm/components/QSelect/index.d.ts.map +1 -1
  139. package/esm/components/QSelect/types.d.ts +81 -0
  140. package/esm/components/QSelect/types.d.ts.map +1 -0
  141. package/esm/components/QSelect/types.js +16 -0
  142. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +3 -41
  143. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  144. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
  145. package/esm/components/QSkeletonLoader/index.d.ts +2 -31
  146. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  147. package/esm/components/QSkeletonLoader/types.d.ts +15 -0
  148. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
  149. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +3 -35
  150. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  151. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  152. package/esm/components/QSpinnerLoader/index.d.ts +2 -22
  153. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  154. package/esm/components/QSpinnerLoader/types.d.ts +11 -0
  155. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
  156. package/esm/components/QTextField/QTextField.d.ts +103 -147
  157. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  158. package/esm/components/QTextField/index.d.ts +2 -229
  159. package/esm/components/QTextField/index.d.ts.map +1 -1
  160. package/esm/components/QTextField/types.d.ts +50 -0
  161. package/esm/components/QTextField/types.d.ts.map +1 -0
  162. package/esm/components/QThemeProvider/QThemeProvider.d.ts +10 -17
  163. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  164. package/esm/components/QThemeProvider/index.d.ts +2 -37
  165. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  166. package/esm/components/QThemeProvider/types.d.ts +7 -0
  167. package/esm/components/QThemeProvider/types.d.ts.map +1 -0
  168. package/esm/components/QTooltip/QTooltip.d.ts +28 -190
  169. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  170. package/esm/components/QTooltip/index.d.ts +2 -279
  171. package/esm/components/QTooltip/index.d.ts.map +1 -1
  172. package/esm/components/QTooltip/types.d.ts +66 -0
  173. package/esm/components/QTooltip/types.d.ts.map +1 -0
  174. package/esm/components/index.d.ts +1 -0
  175. package/esm/components/index.d.ts.map +1 -1
  176. package/esm/components/index.js +42 -37
  177. package/esm/composables/defaults.d.ts +0 -1
  178. package/esm/composables/defaults.js +3 -6
  179. package/esm/composables/theme.d.ts +0 -1
  180. package/esm/framework.d.ts +0 -1
  181. package/esm/index.d.ts +4 -0
  182. package/esm/templates/theme.d.ts +0 -1
  183. package/esm/utils/color.js +1 -2
  184. package/esm/utils/setupPropsProxy.d.ts +0 -1
  185. package/esm/utils/setupPropsProxy.js +2 -4
  186. package/esm/utils/theme.d.ts +0 -1
  187. package/package.json +40 -41
@@ -0,0 +1,11 @@
1
+ import { QPropertyListGroupProps, DEFAULT_ICONS } from './types';
2
+ declare const _default: import('vue').DefineComponent<QPropertyListGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ "toggle-group": (id: string) => any;
4
+ }, string, import('vue').PublicProps, Readonly<QPropertyListGroupProps> & Readonly<{
5
+ "onToggle-group"?: ((id: string) => any) | undefined;
6
+ }>, {
7
+ icons: typeof DEFAULT_ICONS;
8
+ noToggle: boolean;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
11
+ //# sourceMappingURL=QPropertyListGroup.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QPropertyListGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListGroup.vue"],"names":[],"mappings":"AAyEC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;;;;;;;;AAoIxC,wBAUG"}
@@ -0,0 +1,68 @@
1
+ import { defineComponent as m, ref as g, computed as n, openBlock as i, createElementBlock as f, normalizeClass as _, unref as o, createElementVNode as s, createBlock as y, withCtx as k, createVNode as v, normalizeProps as C, guardReactiveProps as b, createCommentVNode as T, createTextVNode as h, toDisplayString as x } from "vue";
2
+ import { QButton as B } from "../QButton/index.js";
3
+ import { QIcon as N } from "../QIcon/index.js";
4
+ import { useId as V } from "../../composables/uid.js";
5
+ import { DEFAULT_ICONS as q } from "./types.js";
6
+ const E = ["data-key", "aria-labelledby"], I = ["id"], P = { class: "q-property-list-group__content" }, A = /* @__PURE__ */ m({
7
+ __name: "QPropertyListGroup",
8
+ props: {
9
+ id: {},
10
+ title: {},
11
+ noToggle: { type: Boolean, default: !1 },
12
+ icons: { default: () => q },
13
+ texts: {}
14
+ },
15
+ emits: ["toggle-group"],
16
+ setup(a, { emit: c }) {
17
+ const e = a, p = c, t = g(!0), r = V(), u = n(() => t.value ? e.icons.open : e.icons.close), d = n(() => [
18
+ "q-property-list-group",
19
+ {
20
+ "q-property-list-group--no-toggle": e.noToggle
21
+ }
22
+ ]);
23
+ function l() {
24
+ e.noToggle || (t.value = !t.value, p("toggle-group", e.id));
25
+ }
26
+ return (Q, z) => (i(), f("tr", {
27
+ class: _(d.value),
28
+ role: "group",
29
+ "data-key": e.id,
30
+ "aria-labelledby": o(r),
31
+ onClick: l
32
+ }, [
33
+ s("td", {
34
+ id: o(r),
35
+ colspan: "2"
36
+ }, [
37
+ s("div", P, [
38
+ e.noToggle ? T("v-if", !0) : (i(), y(o(B), {
39
+ key: 0,
40
+ "b-style": "tertiary",
41
+ borderless: "",
42
+ onClick: l
43
+ }, {
44
+ default: k(() => [
45
+ v(
46
+ o(N),
47
+ C(b(u.value)),
48
+ null,
49
+ 16
50
+ /* FULL_PROPS */
51
+ )
52
+ ]),
53
+ _: 1
54
+ /* STABLE */
55
+ })),
56
+ h(
57
+ " " + x(e.title),
58
+ 1
59
+ /* TEXT */
60
+ )
61
+ ])
62
+ ], 8, I)
63
+ ], 10, E));
64
+ }
65
+ });
66
+ export {
67
+ A as default
68
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QPropertyListGroup.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,21 @@
1
+ import { QPropertyListPanelProps, DEFAULT_TEXTS } from './types';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<QPropertyListPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QPropertyListPanelProps> & Readonly<{}>, {
11
+ texts: typeof DEFAULT_TEXTS;
12
+ field: import('./types').QPropertyListField;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
21
+ //# sourceMappingURL=QPropertyListPanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QPropertyListPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListPanel.vue"],"names":[],"mappings":"AA+BC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAkBxC,iBAAS,cAAc;;yBAwCM,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"}
@@ -0,0 +1,43 @@
1
+ import { defineComponent as n, openBlock as s, createElementBlock as o, renderSlot as p, createElementVNode as l, toDisplayString as t } from "vue";
2
+ import { DEFAULT_TEXTS as a } from "./types.js";
3
+ const d = { class: "q-property-list-panel__container" }, _ = { class: "q-property-list-panel__label" }, c = { class: "q-property-list-panel__description" }, f = {
4
+ key: 1,
5
+ class: "q-property-list-panel__empty"
6
+ }, h = /* @__PURE__ */ n({
7
+ __name: "QPropertyListPanel",
8
+ props: {
9
+ field: { default: void 0 },
10
+ icons: {},
11
+ texts: { default: () => a }
12
+ },
13
+ setup(i) {
14
+ const e = i;
15
+ return (r, m) => (s(), o("div", d, [
16
+ e.field ? p(r.$slots, "default", { key: 0 }, () => [
17
+ l(
18
+ "div",
19
+ _,
20
+ t(e.field.label),
21
+ 1
22
+ /* TEXT */
23
+ ),
24
+ l(
25
+ "div",
26
+ c,
27
+ t(e.field.description),
28
+ 1
29
+ /* TEXT */
30
+ )
31
+ ]) : (s(), o(
32
+ "div",
33
+ f,
34
+ t(e.texts.emptyMessage),
35
+ 1
36
+ /* TEXT */
37
+ ))
38
+ ]));
39
+ }
40
+ });
41
+ export {
42
+ h as default
43
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QPropertyListPanel.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,24 @@
1
+ import { QPropertyListField, QPropertyListRowProps } from './types';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<QPropertyListRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ focus: (field: QPropertyListField) => any;
12
+ "field-change": (field: QPropertyListField, value: unknown) => any;
13
+ }, string, import('vue').PublicProps, Readonly<QPropertyListRowProps> & Readonly<{
14
+ onFocus?: ((field: QPropertyListField) => any) | undefined;
15
+ "onField-change"?: ((field: QPropertyListField, value: unknown) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
24
+ //# sourceMappingURL=QPropertyListRow.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"AAoEC,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AA+CzE,iBAAS,cAAc;;yBAwDM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAUnB,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"}
@@ -0,0 +1,64 @@
1
+ import { defineComponent as y, computed as o, openBlock as a, createElementBlock as q, normalizeClass as c, createElementVNode as n, toDisplayString as v, renderSlot as C, createBlock as h, resolveDynamicComponent as g, mergeProps as k } from "vue";
2
+ const B = { class: "q-property-list-field__container" }, b = /* @__PURE__ */ y({
3
+ __name: "QPropertyListRow",
4
+ props: {
5
+ field: {},
6
+ class: {},
7
+ readonly: { type: Boolean }
8
+ },
9
+ emits: ["focus", "field-change"],
10
+ setup(i, { emit: p }) {
11
+ const e = i, r = p, d = o(() => ["q-property-list__row", e.class]), u = o(() => {
12
+ var t;
13
+ const l = ["q-property-list__cell", "q-property-list__cell--label"];
14
+ return (t = e.field.props) != null && t.required && l.push("q-property-list__cell--required"), l;
15
+ }), f = o(() => e.readonly || (e.field.props.readonly ?? !1));
16
+ function s() {
17
+ r("focus", e.field);
18
+ }
19
+ function m(l) {
20
+ r("field-change", e.field, l);
21
+ }
22
+ const _ = o(() => ({
23
+ ...e.field.props,
24
+ readonly: f.value
25
+ }));
26
+ return (l, t) => (a(), q(
27
+ "tr",
28
+ {
29
+ class: c(d.value),
30
+ onFocusin: s
31
+ },
32
+ [
33
+ n(
34
+ "td",
35
+ {
36
+ class: c(u.value),
37
+ onClick: s
38
+ },
39
+ v(e.field.label),
40
+ 3
41
+ /* TEXT, CLASS */
42
+ ),
43
+ n("td", {
44
+ class: "q-property-list__cell",
45
+ onClick: s
46
+ }, [
47
+ C(l.$slots, "default", {}, () => [
48
+ n("div", B, [
49
+ (a(), h(g(e.field.component), k(_.value, {
50
+ "model-value": e.field.props.modelValue,
51
+ "onUpdate:modelValue": m
52
+ }), null, 16, ["model-value"]))
53
+ ])
54
+ ])
55
+ ])
56
+ ],
57
+ 34
58
+ /* CLASS, NEED_HYDRATION */
59
+ ));
60
+ }
61
+ });
62
+ export {
63
+ b as default
64
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QPropertyListRow.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,12 @@
1
+ import { default as _QPropertyList } from './QPropertyList';
2
+ import { default as _QPropertyListRow } from './QPropertyListRow';
3
+ import { default as _QPropertyListGroup } from './QPropertyListGroup';
4
+ import { default as _QPropertyListPanel } from './QPropertyListPanel';
5
+ import { QPropertyListProps, QPropertyListRowProps, QPropertyListGroupProps, QPropertyListPanelProps } from './types';
6
+ declare const QPropertyList: typeof _QPropertyList;
7
+ declare const QPropertyListRow: typeof _QPropertyListRow;
8
+ declare const QPropertyListGroup: typeof _QPropertyListGroup;
9
+ declare const QPropertyListPanel: typeof _QPropertyListPanel;
10
+ export { QPropertyList, QPropertyListRow, QPropertyListGroup, QPropertyListPanel };
11
+ export type { QPropertyListProps, QPropertyListRowProps, QPropertyListGroupProps, QPropertyListPanelProps };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/index.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAChD,OAAO,iBAAiB,MAAM,wBAAwB,CAAA;AACtD,OAAO,mBAAmB,MAAM,0BAA0B,CAAA;AAC1D,OAAO,mBAAmB,MAAM,0BAA0B,CAAA;AAG1D,OAAO,KAAK,EACX,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,SAAS,CAAA;AAKhB,QAAA,MAAM,aAAa,EAAsC,OAAO,cAAc,CAAA;AAC9E,QAAA,MAAM,gBAAgB,EAAyC,OAAO,iBAAiB,CAAA;AACvF,QAAA,MAAM,kBAAkB,EAA2C,OAAO,mBAAmB,CAAA;AAC7F,QAAA,MAAM,kBAAkB,EAA2C,OAAO,mBAAmB,CAAA;AAG7F,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;AAGlF,YAAY,EACX,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import r from "./QPropertyList.vue.js";
2
+ import t from "./QPropertyListRow.vue.js";
3
+ import m from "./QPropertyListGroup.vue.js";
4
+ import s from "./QPropertyListPanel.vue.js";
5
+ import { setupPropsProxy as o } from "../../utils/setupPropsProxy.js";
6
+ const _ = o(r), e = o(t), P = o(m), a = o(s);
7
+ export {
8
+ _ as QPropertyList,
9
+ P as QPropertyListGroup,
10
+ a as QPropertyListPanel,
11
+ e as QPropertyListRow
12
+ };
@@ -0,0 +1,137 @@
1
+ import { Icon } from '../QIcon';
2
+ import { Component, PropType } from 'vue';
3
+ /**
4
+ * Position where the panel should be rendered relative to the main content
5
+ * @value 'bottom' - Panel appears below the main content
6
+ * @value 'right' - Panel appears to the right of the main content
7
+ */
8
+ export type PanelPosition = 'bottom' | 'right';
9
+ export type QPropertyListProps = {
10
+ /**
11
+ * Array of field configurations that define the content and behavior
12
+ * of each property list item
13
+ */
14
+ fields?: QPropertyListField[];
15
+ /**
16
+ * When true, hides the description panel that displays additional field information.
17
+ */
18
+ noPanel?: boolean;
19
+ /**
20
+ * When true, disables the ability to expand/collapse property groups.
21
+ */
22
+ noToggle?: boolean;
23
+ /**
24
+ * Determines the layout position of the description panel.
25
+ */
26
+ panelPosition?: PanelPosition;
27
+ /**
28
+ * Configuration for property groups used to organize and categorize fields.
29
+ */
30
+ groups?: QPropertyListGroupProps[];
31
+ /**
32
+ * Custom CSS classes to apply to the root element.
33
+ */
34
+ class?: string | unknown[];
35
+ /**
36
+ * When true, renders all fields in a read-only state preventing user interaction.
37
+ */
38
+ readonly?: boolean;
39
+ /**
40
+ * Custom icon configurations.
41
+ */
42
+ icons?: typeof DEFAULT_ICONS;
43
+ /**
44
+ * Custom text configurations.
45
+ */
46
+ texts?: typeof DEFAULT_TEXTS;
47
+ };
48
+ export type QPropertyListGroupProps = {
49
+ /**
50
+ * Unique identifier for the property group.
51
+ */
52
+ id: string;
53
+ /**
54
+ * Display title for the group header.
55
+ */
56
+ title: string;
57
+ /**
58
+ * When true, disables the expand/collapse functionality for this specific group,
59
+ * keeping it permanently expanded.
60
+ */
61
+ noToggle?: boolean;
62
+ /**
63
+ * Custom icon configurations.
64
+ */
65
+ icons?: typeof DEFAULT_ICONS;
66
+ /**
67
+ * Custom text configurations.
68
+ */
69
+ texts?: typeof DEFAULT_TEXTS;
70
+ };
71
+ export type QPropertyListField = {
72
+ /**
73
+ * Unique identifier for the field.
74
+ */
75
+ id: string;
76
+ /**
77
+ * Associates the field with a specific group.
78
+ */
79
+ group?: string;
80
+ /**
81
+ * Display label that appears above the field input.
82
+ */
83
+ label: string;
84
+ /**
85
+ * Additional explanatory text shown below the field.
86
+ */
87
+ description?: string;
88
+ /**
89
+ * Component responsible for rendering the field's input element.
90
+ * Can be specified as either:
91
+ * - A string identifier for a registered component
92
+ * - A direct component reference
93
+ */
94
+ component: PropType<string | Component>;
95
+ /**
96
+ * Configuration object passed as props to the rendered component.
97
+ * Supports any valid props accepted by the specified component.
98
+ * @example { placeholder: 'Enter value', disabled: false }
99
+ */
100
+ props: Record<string, unknown>;
101
+ };
102
+ export type QPropertyListRowProps = {
103
+ /**
104
+ * Configuration object for the field to be rendered within this row.
105
+ */
106
+ field: QPropertyListField;
107
+ /**
108
+ * Custom CSS classes to apply to the row element.
109
+ */
110
+ class?: string | unknown[];
111
+ /**
112
+ * When true, renders the field in a read-only state preventing user interaction.
113
+ */
114
+ readonly?: boolean;
115
+ };
116
+ export type QPropertyListPanelProps = {
117
+ /**
118
+ * Configuration object for the currently selected field to display
119
+ * in the description panel.
120
+ */
121
+ field?: QPropertyListField;
122
+ /**
123
+ * Custom icon configurations.
124
+ */
125
+ icons?: typeof DEFAULT_ICONS;
126
+ /**
127
+ * Custom text configurations.
128
+ */
129
+ texts?: typeof DEFAULT_TEXTS;
130
+ };
131
+ export declare const DEFAULT_TEXTS: {
132
+ emptyMessage: string;
133
+ };
134
+ type IconKeys = 'open' | 'close';
135
+ export declare const DEFAULT_ICONS: Record<IconKeys, Icon>;
136
+ export {};
137
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAE9C;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAE7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAA;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAA;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;;OAKG;IACH,SAAS,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAEvC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IACnC;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACrC;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,aAAa;;CAEzB,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAGhC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,CAOhD,CAAA"}
@@ -0,0 +1,14 @@
1
+ const e = {
2
+ emptyMessage: "Select a field to view details."
3
+ }, o = {
4
+ open: {
5
+ icon: "minus-box"
6
+ },
7
+ close: {
8
+ icon: "plus-box"
9
+ }
10
+ };
11
+ export {
12
+ o as DEFAULT_ICONS,
13
+ e as DEFAULT_TEXTS
14
+ };