@quidgest/ui 0.16.3 → 0.16.5

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/manifest/components.json +7 -0
  2. package/dist/ui.css +810 -32
  3. package/dist/ui.esm.js +5731 -5219
  4. package/dist/ui.js +18 -18
  5. package/dist/ui.min.css +2 -1
  6. package/dist/ui.min.js +1042 -1006
  7. package/dist/ui.scss +463 -40
  8. package/esm/_virtual/_plugin-vue_export-helper.js +9 -0
  9. package/esm/components/QCombobox/QCombobox.d.ts +14 -0
  10. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  11. package/esm/components/QCombobox/QCombobox.vue.js +9 -8
  12. package/esm/components/QCombobox/index.d.ts +7 -0
  13. package/esm/components/QCombobox/index.d.ts.map +1 -1
  14. package/esm/components/QDialog/QDialog.d.ts +9 -1
  15. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  16. package/esm/components/QDialog/QDialog.vue.js +125 -97
  17. package/esm/components/QDialog/QDialogProvider.d.ts +3 -0
  18. package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -0
  19. package/esm/components/QDialog/QDialogProvider.vue.js +26 -0
  20. package/esm/components/QDialog/QDialogProvider.vue2.js +4 -0
  21. package/esm/components/QDialog/index.d.ts +26 -2
  22. package/esm/components/QDialog/index.d.ts.map +1 -1
  23. package/esm/components/QDialog/index.js +6 -4
  24. package/esm/components/QDialog/types.d.ts +9 -0
  25. package/esm/components/QDialog/types.d.ts.map +1 -1
  26. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -1
  27. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +26 -24
  28. package/esm/components/QDivider/QDivider.d.ts +21 -0
  29. package/esm/components/QDivider/QDivider.d.ts.map +1 -0
  30. package/esm/components/QDivider/QDivider.vue.js +57 -0
  31. package/esm/components/QDivider/QDivider.vue2.js +4 -0
  32. package/esm/components/QDivider/index.d.ts +25 -0
  33. package/esm/components/QDivider/index.d.ts.map +1 -0
  34. package/esm/components/QDivider/index.js +6 -0
  35. package/esm/components/QDivider/types.d.ts +11 -0
  36. package/esm/components/QDivider/types.d.ts.map +1 -0
  37. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +14 -0
  38. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  39. package/esm/components/QGrid/QCol.d.ts +19 -0
  40. package/esm/components/QGrid/QCol.d.ts.map +1 -0
  41. package/esm/components/QGrid/QCol.vue.js +46 -0
  42. package/esm/components/QGrid/QCol.vue2.js +4 -0
  43. package/esm/components/QGrid/QContainer.d.ts +19 -0
  44. package/esm/components/QGrid/QContainer.d.ts.map +1 -0
  45. package/esm/components/QGrid/QContainer.vue.js +24 -0
  46. package/esm/components/QGrid/QContainer.vue2.js +4 -0
  47. package/esm/components/QGrid/QRow.d.ts +23 -0
  48. package/esm/components/QGrid/QRow.d.ts.map +1 -0
  49. package/esm/components/QGrid/QRow.vue.js +36 -0
  50. package/esm/components/QGrid/QRow.vue2.js +4 -0
  51. package/esm/components/QGrid/QSpacer.d.ts +3 -0
  52. package/esm/components/QGrid/QSpacer.d.ts.map +1 -0
  53. package/esm/components/QGrid/QSpacer.vue.js +10 -0
  54. package/esm/components/QGrid/index.d.ts +66 -0
  55. package/esm/components/QGrid/index.d.ts.map +1 -0
  56. package/esm/components/QGrid/index.js +12 -0
  57. package/esm/components/QGrid/types.d.ts +47 -0
  58. package/esm/components/QGrid/types.d.ts.map +1 -0
  59. package/esm/components/QList/QList.d.ts +1 -0
  60. package/esm/components/QList/QList.d.ts.map +1 -1
  61. package/esm/components/QList/QList.vue.js +130 -120
  62. package/esm/components/QList/QListItem.d.ts.map +1 -1
  63. package/esm/components/QList/QListItem.vue.js +57 -43
  64. package/esm/components/QList/index.d.ts +7 -0
  65. package/esm/components/QList/index.d.ts.map +1 -1
  66. package/esm/components/QList/types.d.ts +8 -0
  67. package/esm/components/QList/types.d.ts.map +1 -1
  68. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  69. package/esm/components/QOverlay/QOverlay.vue.js +29 -27
  70. package/esm/components/QOverlay/index.d.ts +3 -0
  71. package/esm/components/QOverlay/index.d.ts.map +1 -1
  72. package/esm/components/QOverlay/types.d.ts +4 -0
  73. package/esm/components/QOverlay/types.d.ts.map +1 -1
  74. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +8 -7
  75. package/esm/components/QSelect/QSelect.d.ts +14 -0
  76. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  77. package/esm/components/QSelect/QSelect.vue.js +1 -0
  78. package/esm/components/QSelect/index.d.ts +7 -0
  79. package/esm/components/QSelect/index.d.ts.map +1 -1
  80. package/esm/components/QSidebar/QSidebar.d.ts +39 -0
  81. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -0
  82. package/esm/components/QSidebar/QSidebar.vue.js +155 -0
  83. package/esm/components/QSidebar/QSidebar.vue2.js +4 -0
  84. package/esm/components/QSidebar/QSidebarAnchor.d.ts +219 -0
  85. package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -0
  86. package/esm/components/QSidebar/QSidebarAnchor.vue.js +110 -0
  87. package/esm/components/QSidebar/QSidebarAnchor.vue2.js +4 -0
  88. package/esm/components/QSidebar/QSidebarPanel.d.ts +41 -0
  89. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -0
  90. package/esm/components/QSidebar/QSidebarPanel.vue.js +90 -0
  91. package/esm/components/QSidebar/QSidebarPanel.vue2.js +4 -0
  92. package/esm/components/QSidebar/index.d.ts +72 -0
  93. package/esm/components/QSidebar/index.d.ts.map +1 -0
  94. package/esm/components/QSidebar/index.js +6 -0
  95. package/esm/components/QSidebar/types.d.ts +63 -0
  96. package/esm/components/QSidebar/types.d.ts.map +1 -0
  97. package/esm/components/QToggleGroup/types.d.ts +1 -1
  98. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  99. package/esm/components/QTooltip/QTooltip.vue.js +47 -46
  100. package/esm/components/index.d.ts +3 -0
  101. package/esm/components/index.d.ts.map +1 -1
  102. package/esm/components/index.js +78 -68
  103. package/esm/composables/index.d.ts +2 -1
  104. package/esm/composables/index.d.ts.map +1 -1
  105. package/esm/composables/theme.js +3 -3
  106. package/esm/composables/useDialog/index.d.ts +69 -0
  107. package/esm/composables/useDialog/index.d.ts.map +1 -0
  108. package/esm/composables/useDialog/index.js +21 -0
  109. package/esm/composables/useDialog/types.d.ts +25 -0
  110. package/esm/composables/useDialog/types.d.ts.map +1 -0
  111. package/esm/composables/useDismissibleLayerStack/index.d.ts +14 -0
  112. package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -0
  113. package/esm/composables/useDismissibleLayerStack/index.js +32 -0
  114. package/esm/framework.d.ts.map +1 -1
  115. package/esm/framework.js +35 -31
  116. package/esm/index.d.ts +7 -0
  117. package/esm/index.js +4 -2
  118. package/esm/symbols/dismissibleLayer.d.ts +4 -0
  119. package/esm/symbols/dismissibleLayer.d.ts.map +1 -0
  120. package/esm/symbols/dismissibleLayer.js +4 -0
  121. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { defineComponent as g, mergeModels as V, useModel as v, onMounted as B, onUnmounted as _, watch as k, createElementBlock as l, openBlock as a, Fragment as m, renderSlot as p, createVNode as M, unref as n, normalizeClass as w, withCtx as x, createElementVNode as C, createBlock as N, createCommentVNode as T, normalizeProps as A, mergeProps as D, createTextVNode as Q, toDisplayString as q } from "vue";
2
- import { QIcon as z } from "../QIcon/index.js";
3
- import { QOverlay as H } from "../QOverlay/index.js";
4
- import { useId as I } from "../../composables/uid.js";
5
- import { getElement as u } from "../../utils/getElement.js";
6
- const L = { class: "q-tooltip__content" }, P = ["innerHTML"], O = /* @__PURE__ */ g({
1
+ import { defineComponent as b, mergeModels as g, useModel as v, onUnmounted as V, watch as B, createElementBlock as d, openBlock as a, Fragment as u, renderSlot as p, createVNode as _, unref as n, normalizeClass as k, withCtx as w, createElementVNode as A, createBlock as x, createCommentVNode as C, normalizeProps as E, mergeProps as M, createTextVNode as N, toDisplayString as T } from "vue";
2
+ import { QIcon as D } from "../QIcon/index.js";
3
+ import { QOverlay as L } from "../QOverlay/index.js";
4
+ import { useId as Q } from "../../composables/uid.js";
5
+ import { getElement as q } from "../../utils/getElement.js";
6
+ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ */ b({
7
7
  __name: "QTooltip",
8
- props: /* @__PURE__ */ V({
8
+ props: /* @__PURE__ */ g({
9
9
  id: {},
10
10
  class: {},
11
11
  anchor: {},
@@ -25,38 +25,37 @@ const L = { class: "q-tooltip__content" }, P = ["innerHTML"], O = /* @__PURE__ *
25
25
  modelModifiers: {}
26
26
  }),
27
27
  emits: ["update:modelValue"],
28
- setup(i) {
29
- const e = i, d = v(i, "modelValue"), r = I(e.id);
30
- function c(o) {
31
- const t = u(o);
32
- t == null || t.setAttribute("aria-describedby", r);
28
+ setup(c) {
29
+ const e = c, r = v(c, "modelValue"), l = Q(e.id);
30
+ function s() {
31
+ return e.anchor ? q(e.anchor) : void 0;
33
32
  }
34
- function f() {
35
- e.anchor && c(e.anchor);
33
+ function m() {
34
+ var t;
35
+ (t = s()) == null || t.setAttribute("aria-describedby", l);
36
36
  }
37
- B(f);
38
- function s(o) {
39
- const t = u(o);
40
- t == null || t.removeAttribute("aria-describedby");
37
+ function i() {
38
+ var t;
39
+ (t = s()) == null || t.removeAttribute("aria-describedby");
41
40
  }
42
- function y() {
43
- e.anchor && s(e.anchor);
41
+ function f() {
42
+ e.anchor && i();
44
43
  }
45
- _(y);
46
- function h(o, t) {
47
- t && s(t), o && c(o);
44
+ V(f);
45
+ function h(t, o) {
46
+ o && i(), t && r && m();
48
47
  }
49
- return k(() => e.anchor, h), (o, t) => (a(), l(
50
- m,
48
+ return B(() => e.anchor, h), (t, o) => (a(), d(
49
+ u,
51
50
  null,
52
51
  [
53
- p(o.$slots, "anchor", {
54
- props: { "aria-describedby": n(r) }
52
+ p(t.$slots, "anchor", {
53
+ props: { "aria-describedby": n(l) }
55
54
  }),
56
- M(n(H), {
57
- id: n(r),
58
- modelValue: d.value,
59
- "onUpdate:modelValue": t[0] || (t[0] = (b) => d.value = b),
55
+ _(n(L), {
56
+ id: n(l),
57
+ modelValue: r.value,
58
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => r.value = y),
60
59
  anchor: e.anchor,
61
60
  role: "tooltip",
62
61
  "non-modal": "",
@@ -64,31 +63,33 @@ const L = { class: "q-tooltip__content" }, P = ["innerHTML"], O = /* @__PURE__ *
64
63
  arrow: e.arrow,
65
64
  attach: e.attach,
66
65
  inline: e.inline,
67
- class: w(["q-tooltip", e.class]),
66
+ class: k(["q-tooltip", e.class]),
68
67
  delay: e.delay,
69
68
  disabled: e.disabled,
70
69
  placement: e.placement,
71
- trigger: e.trigger
70
+ trigger: e.trigger,
71
+ onEnter: m,
72
+ onLeave: i
72
73
  }, {
73
- default: x(() => [
74
- C("div", L, [
75
- p(o.$slots, "default", {}, () => [
76
- e.icon ? (a(), N(
77
- n(z),
78
- A(D({ key: 0 }, e.icon)),
74
+ default: w(() => [
75
+ A("div", z, [
76
+ p(t.$slots, "default", {}, () => [
77
+ e.icon ? (a(), x(
78
+ n(D),
79
+ E(M({ key: 0 }, e.icon)),
79
80
  null,
80
81
  16
81
82
  /* FULL_PROPS */
82
- )) : T("v-if", !0),
83
- e.html ? (a(), l("span", {
83
+ )) : C("v-if", !0),
84
+ e.html ? (a(), d("span", {
84
85
  key: 1,
85
86
  innerHTML: e.text
86
- }, null, 8, P)) : (a(), l(
87
- m,
87
+ }, null, 8, H)) : (a(), d(
88
+ u,
88
89
  { key: 2 },
89
90
  [
90
- Q(
91
- q(e.text),
91
+ N(
92
+ T(e.text),
92
93
  1
93
94
  /* TEXT */
94
95
  )
@@ -109,5 +110,5 @@ const L = { class: "q-tooltip__content" }, P = ["innerHTML"], O = /* @__PURE__ *
109
110
  }
110
111
  });
111
112
  export {
112
- O as default
113
+ F as default
113
114
  };
@@ -11,10 +11,12 @@ export * from './QCombobox';
11
11
  export * from './QDateTimePicker';
12
12
  export * from './QDialog';
13
13
  export * from './QDismissibleLayer';
14
+ export * from './QDivider';
14
15
  export * from './QDropdownMenu';
15
16
  export * from './QField';
16
17
  export * from './QFileUpload';
17
18
  export * from './QFocusTrap';
19
+ export * from './QGrid';
18
20
  export * from './QIcon';
19
21
  export * from './QInputGroup';
20
22
  export * from './QLabel';
@@ -27,6 +29,7 @@ export * from './QPopover';
27
29
  export * from './QPropertyList';
28
30
  export * from './QRadioGroup';
29
31
  export * from './QSelect';
32
+ export * from './QSidebar';
30
33
  export * from './QSkeletonLoader';
31
34
  export * from './QSpinnerLoader';
32
35
  export * from './QTextArea';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
@@ -3,38 +3,41 @@ import { QBadge as Q } from "./QBadge/index.js";
3
3
  import { QBadgeIndicator as x } from "./QBadgeIndicator/index.js";
4
4
  import { QButton as i } from "./QButton/index.js";
5
5
  import { QButtonGroup as l } from "./QButtonGroup/index.js";
6
- import { QCard as d } from "./QCard/index.js";
6
+ import { QCard as n } from "./QCard/index.js";
7
7
  import { QCheckbox as s, QCheckboxLabel as L } from "./QCheckbox/index.js";
8
8
  import { QCollapsible as g } from "./QCollapsible/index.js";
9
9
  import { QColorPicker as P } from "./QColorPicker/index.js";
10
- import { QCombobox as b } from "./QCombobox/index.js";
11
- import { QDateTimePicker as y } from "./QDateTimePicker/index.js";
12
- import { QDialog as F } from "./QDialog/index.js";
13
- import { QDismissibleLayer as B } from "./QDismissibleLayer/index.js";
14
- import { QDropdownMenu as D } from "./QDropdownMenu/index.js";
15
- import { QField as h } from "./QField/index.js";
16
- import { QFileUpload as A } from "./QFileUpload/index.js";
17
- import { QFocusTrap as M } from "./QFocusTrap/index.js";
18
- import { QIcon as U, QIconFont as j, QIconImg as q, QIconSvg as z } from "./QIcon/index.js";
19
- import { QInputGroup as H } from "./QInputGroup/index.js";
20
- import { QLabel as K } from "./QLabel/index.js";
21
- import { QLineLoader as V } from "./QLineLoader/index.js";
22
- import { QList as X, QListItem as Y, QListItemGroup as Z } from "./QList/index.js";
23
- import { QMeter as $ } from "./QMeter/index.js";
24
- import { QOverlay as ro } from "./QOverlay/index.js";
25
- import { QPasswordField as to } from "./QPasswordField/index.js";
26
- import { QPopover as Qo } from "./QPopover/index.js";
27
- import { QPropertyList as xo, QPropertyListGroup as fo, QPropertyListPanel as io, QPropertyListRow as ao } from "./QPropertyList/index.js";
28
- import { QRadioButton as no, QRadioGroup as co } from "./QRadioGroup/index.js";
29
- import { QSelect as Lo } from "./QSelect/index.js";
30
- import { QSkeletonLoader as go } from "./QSkeletonLoader/index.js";
31
- import { QSpinnerLoader as Po } from "./QSpinnerLoader/index.js";
32
- import { QTextArea as bo } from "./QTextArea/index.js";
33
- import { QTextField as yo } from "./QTextField/index.js";
34
- import { QThemeProvider as Fo } from "./QThemeProvider/index.js";
35
- import { QToggle as Bo } from "./QToggle/index.js";
36
- import { QToggleGroup as Do, QToggleGroupItem as So } from "./QToggleGroup/index.js";
37
- import { QTooltip as wo } from "./QTooltip/index.js";
10
+ import { QCombobox as T } from "./QCombobox/index.js";
11
+ import { QDateTimePicker as G } from "./QDateTimePicker/index.js";
12
+ import { QDialog as y, QDialogProvider as D } from "./QDialog/index.js";
13
+ import { QDismissibleLayer as S } from "./QDismissibleLayer/index.js";
14
+ import { QDivider as B } from "./QDivider/index.js";
15
+ import { QDropdownMenu as R } from "./QDropdownMenu/index.js";
16
+ import { QField as A } from "./QField/index.js";
17
+ import { QFileUpload as O } from "./QFileUpload/index.js";
18
+ import { QFocusTrap as j } from "./QFocusTrap/index.js";
19
+ import { QCol as z, QContainer as E, QRow as H, QSpacer as J } from "./QGrid/index.js";
20
+ import { QIcon as N, QIconFont as V, QIconImg as W, QIconSvg as X } from "./QIcon/index.js";
21
+ import { QInputGroup as Z } from "./QInputGroup/index.js";
22
+ import { QLabel as $ } from "./QLabel/index.js";
23
+ import { QLineLoader as ro } from "./QLineLoader/index.js";
24
+ import { QList as to, QListItem as po, QListItemGroup as Qo } from "./QList/index.js";
25
+ import { QMeter as xo } from "./QMeter/index.js";
26
+ import { QOverlay as io } from "./QOverlay/index.js";
27
+ import { QPasswordField as lo } from "./QPasswordField/index.js";
28
+ import { QPopover as co } from "./QPopover/index.js";
29
+ import { QPropertyList as Lo, QPropertyListGroup as uo, QPropertyListPanel as go, QPropertyListRow as Io } from "./QPropertyList/index.js";
30
+ import { QRadioButton as bo, QRadioGroup as To } from "./QRadioGroup/index.js";
31
+ import { QSelect as Go } from "./QSelect/index.js";
32
+ import { QSidebar as yo } from "./QSidebar/index.js";
33
+ import { QSkeletonLoader as Fo } from "./QSkeletonLoader/index.js";
34
+ import { QSpinnerLoader as ko } from "./QSpinnerLoader/index.js";
35
+ import { QTextArea as wo } from "./QTextArea/index.js";
36
+ import { QTextField as ho } from "./QTextField/index.js";
37
+ import { QThemeProvider as Mo } from "./QThemeProvider/index.js";
38
+ import { QToggle as Uo } from "./QToggle/index.js";
39
+ import { QToggleGroup as qo, QToggleGroupItem as zo } from "./QToggleGroup/index.js";
40
+ import { QTooltip as Ho } from "./QTooltip/index.js";
38
41
  export {
39
42
  e as QAccordion,
40
43
  t as QAccordionItem,
@@ -42,47 +45,54 @@ export {
42
45
  x as QBadgeIndicator,
43
46
  i as QButton,
44
47
  l as QButtonGroup,
45
- d as QCard,
48
+ n as QCard,
46
49
  s as QCheckbox,
47
50
  L as QCheckboxLabel,
51
+ z as QCol,
48
52
  g as QCollapsible,
49
53
  P as QColorPicker,
50
- b as QCombobox,
51
- y as QDateTimePicker,
52
- F as QDialog,
53
- B as QDismissibleLayer,
54
- D as QDropdownMenu,
55
- h as QField,
56
- A as QFileUpload,
57
- M as QFocusTrap,
58
- U as QIcon,
59
- j as QIconFont,
60
- q as QIconImg,
61
- z as QIconSvg,
62
- H as QInputGroup,
63
- K as QLabel,
64
- V as QLineLoader,
65
- X as QList,
66
- Y as QListItem,
67
- Z as QListItemGroup,
68
- $ as QMeter,
69
- ro as QOverlay,
70
- to as QPasswordField,
71
- Qo as QPopover,
72
- xo as QPropertyList,
73
- fo as QPropertyListGroup,
74
- io as QPropertyListPanel,
75
- ao as QPropertyListRow,
76
- no as QRadioButton,
77
- co as QRadioGroup,
78
- Lo as QSelect,
79
- go as QSkeletonLoader,
80
- Po as QSpinnerLoader,
81
- bo as QTextArea,
82
- yo as QTextField,
83
- Fo as QThemeProvider,
84
- Bo as QToggle,
85
- Do as QToggleGroup,
86
- So as QToggleGroupItem,
87
- wo as QTooltip
54
+ T as QCombobox,
55
+ E as QContainer,
56
+ G as QDateTimePicker,
57
+ y as QDialog,
58
+ D as QDialogProvider,
59
+ S as QDismissibleLayer,
60
+ B as QDivider,
61
+ R as QDropdownMenu,
62
+ A as QField,
63
+ O as QFileUpload,
64
+ j as QFocusTrap,
65
+ N as QIcon,
66
+ V as QIconFont,
67
+ W as QIconImg,
68
+ X as QIconSvg,
69
+ Z as QInputGroup,
70
+ $ as QLabel,
71
+ ro as QLineLoader,
72
+ to as QList,
73
+ po as QListItem,
74
+ Qo as QListItemGroup,
75
+ xo as QMeter,
76
+ io as QOverlay,
77
+ lo as QPasswordField,
78
+ co as QPopover,
79
+ Lo as QPropertyList,
80
+ uo as QPropertyListGroup,
81
+ go as QPropertyListPanel,
82
+ Io as QPropertyListRow,
83
+ bo as QRadioButton,
84
+ To as QRadioGroup,
85
+ H as QRow,
86
+ Go as QSelect,
87
+ yo as QSidebar,
88
+ Fo as QSkeletonLoader,
89
+ J as QSpacer,
90
+ ko as QSpinnerLoader,
91
+ wo as QTextArea,
92
+ ho as QTextField,
93
+ Mo as QThemeProvider,
94
+ Uo as QToggle,
95
+ qo as QToggleGroup,
96
+ zo as QToggleGroupItem,
97
+ Ho as QTooltip
88
98
  };
@@ -1,2 +1,3 @@
1
- export { useTheme, provideTheme } from './theme';
1
+ export { provideTheme, useTheme } from './theme';
2
+ export { useDialog } from './useDialog';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -1,15 +1,15 @@
1
- import { inject as r, provide as c } from "vue";
1
+ import { provide as r, inject as c } from "vue";
2
2
  import { createThemeInstance as h } from "../utils/theme.js";
3
3
  const n = Symbol.for("q-theme");
4
4
  function s() {
5
- const e = r(n);
5
+ const e = c(n);
6
6
  if (!e)
7
7
  throw new Error("[Quidgest UI] Could not find theme instance");
8
8
  return e;
9
9
  }
10
10
  function u(e) {
11
11
  const o = s(), m = o.themes, t = h(e, m);
12
- return c(n, t), t;
12
+ return r(n, t), t;
13
13
  }
14
14
  export {
15
15
  n as ThemeSymbol,
@@ -0,0 +1,69 @@
1
+ import { QDialogProps } from '../../components/QDialog/types.ts';
2
+ /**
3
+ * Manager for dialog models
4
+ *
5
+ * @returns Dialog state and functions
6
+ */
7
+ export declare function useDialog(): {
8
+ addDialog: (props: QDialogProps, id?: string) => string;
9
+ removeDialog: (id: string) => void;
10
+ dialogs: {
11
+ id: string;
12
+ props: {
13
+ id?: string | undefined;
14
+ class?: string | unknown[] | undefined;
15
+ title?: string | undefined;
16
+ text?: string | undefined;
17
+ icon?: {
18
+ id?: string | undefined;
19
+ class?: string | unknown[] | undefined;
20
+ icon: string;
21
+ type?: "svg" | "font" | "img" | undefined;
22
+ size?: number | undefined;
23
+ color?: string | undefined;
24
+ } | undefined;
25
+ buttons?: {
26
+ id: string;
27
+ icon?: {
28
+ id?: string | undefined;
29
+ class?: string | unknown[] | undefined;
30
+ icon: string;
31
+ type?: "svg" | "font" | "img" | undefined;
32
+ size?: number | undefined;
33
+ color?: string | undefined;
34
+ } | undefined;
35
+ action?: {
36
+ (): void;
37
+ } | undefined;
38
+ props: {
39
+ id?: string | undefined;
40
+ class?: string | unknown[] | undefined;
41
+ label?: string | undefined;
42
+ variant?: import('../../components/QButton/types.ts').QButtonVariant | undefined;
43
+ color?: string | undefined;
44
+ disabled?: boolean | undefined;
45
+ borderless?: boolean | undefined;
46
+ elevated?: boolean | undefined;
47
+ block?: boolean | undefined;
48
+ loading?: boolean | undefined;
49
+ size?: import('../../components/QButton/types.ts').QButtonSize | undefined;
50
+ iconPos?: import('../../components/QButton/types.ts').QButtonIconPosition | undefined;
51
+ pill?: boolean | undefined;
52
+ };
53
+ }[] | undefined;
54
+ attach?: string | undefined;
55
+ inline?: boolean | undefined;
56
+ backdropBlur?: boolean | undefined;
57
+ dismissible?: boolean | undefined;
58
+ html?: boolean | undefined;
59
+ icons?: {
60
+ close: {
61
+ icon: string;
62
+ };
63
+ } | undefined;
64
+ size?: import('../../components/QDialog/types.ts').QDialogSize | undefined;
65
+ centerVertically?: boolean | undefined;
66
+ };
67
+ }[];
68
+ };
69
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AASrE;;;;GAIG;AACH,wBAAgB,SAAS;uBAQE,YAAY,OAAO,MAAM;uBAgBzB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhC"}
@@ -0,0 +1,21 @@
1
+ import { reactive as s } from "vue";
2
+ import { useId as a } from "../uid.js";
3
+ const d = s({ dialogs: [] });
4
+ function c() {
5
+ function t(n, i) {
6
+ const o = a(i);
7
+ return d.dialogs.push({ id: o, props: n }), o;
8
+ }
9
+ function e(n) {
10
+ const i = d.dialogs.findIndex((o) => o.id === n);
11
+ i !== -1 && d.dialogs.splice(i, 1);
12
+ }
13
+ return {
14
+ ...d,
15
+ addDialog: t,
16
+ removeDialog: e
17
+ };
18
+ }
19
+ export {
20
+ c as useDialog
21
+ };
@@ -0,0 +1,25 @@
1
+ import { QDialogProps } from '../../components/QDialog/types.ts';
2
+ /**
3
+ * Represents an instance of a dialog component.
4
+ */
5
+ type DialogInstance = {
6
+ /**
7
+ * A unique identifier for the dialog instance.
8
+ */
9
+ id: string;
10
+ /**
11
+ * The properties applied to the dialog, conforming to `QDialogProps`.
12
+ */
13
+ props: QDialogProps;
14
+ };
15
+ /**
16
+ * Represents the state for dialog management.
17
+ */
18
+ export type State = {
19
+ /**
20
+ * An array containing the currently active dialog instances.
21
+ */
22
+ dialogs: DialogInstance[];
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAErE;;GAEG;AACH,KAAK,cAAc,GAAG;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IACnB;;OAEG;IACH,OAAO,EAAE,cAAc,EAAE,CAAA;CACzB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Ref } from 'vue';
2
+ export type DismissibleLayerStack = {
3
+ layers: Ref<string[]>;
4
+ register(id: string): void;
5
+ unregister(id: string): void;
6
+ isTop(id: string): boolean;
7
+ };
8
+ export declare function useDismissibleLayerStack(): DismissibleLayerStack;
9
+ export declare function useDismissibleLayerStackItem(id: string): {
10
+ register: () => void;
11
+ unregister: () => void;
12
+ isTop: () => boolean;
13
+ };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDismissibleLayerStack/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAK9B,MAAM,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;CAC1B,CAAA;AAED,wBAAgB,wBAAwB,IAAI,qBAAqB,CAmBhE;AAED,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,MAAM;;;;EActD"}
@@ -0,0 +1,32 @@
1
+ import { DismissibleLayerKey as u } from "../../symbols/dismissibleLayer.js";
2
+ import { inject as o, ref as a } from "vue";
3
+ function m() {
4
+ const e = a([]);
5
+ function i(s) {
6
+ e.value.push(s);
7
+ }
8
+ function t(s) {
9
+ const r = e.value.indexOf(s);
10
+ r !== -1 && e.value.splice(r, 1);
11
+ }
12
+ function n(s) {
13
+ return e.value[e.value.length - 1] === s;
14
+ }
15
+ return { layers: e, register: i, unregister: t, isTop: n };
16
+ }
17
+ function f(e) {
18
+ const i = o(u);
19
+ if (!i)
20
+ throw new Error(
21
+ "useDismissibleLayerStackItem must be used within a dismissible layer stack context."
22
+ );
23
+ return {
24
+ register: () => i.register(e),
25
+ unregister: () => i.unregister(e),
26
+ isTop: () => i.isTop(e)
27
+ };
28
+ }
29
+ export {
30
+ m as useDismissibleLayerStack,
31
+ f as useDismissibleLayerStackItem
32
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAA;AAMrE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAEtC,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,eAAoB,GAAG,MAAM,CAiBpE"}
1
+ {"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAA;AAMrE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAEtC,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,eAAoB,GAAG,MAAM,CAqBpE"}
package/esm/framework.js CHANGED
@@ -1,44 +1,48 @@
1
- import { DEFAULTS_SYMBOL as c } from "./composables/defaults.js";
2
- import { ThemeSymbol as h } from "./composables/theme.js";
3
- import { defaultLightColorScheme as l, defaultDarkColorScheme as i } from "./templates/theme.js";
4
- import { ref as a, watch as f } from "vue";
5
- import { createThemeInstance as d, generateRootStyle as u } from "./utils/theme.js";
6
- function D(s = {}) {
7
- return { install: (o) => {
8
- const t = s.components || {};
9
- for (const n in t)
10
- o.component(n, t[n]);
11
- const e = s.defaults || {};
12
- o.provide(c, a(e)), p(o, s.themes);
1
+ import { DEFAULTS_SYMBOL as i } from "./composables/defaults.js";
2
+ import { ThemeSymbol as c } from "./composables/theme.js";
3
+ import { DismissibleLayerKey as h } from "./symbols/dismissibleLayer.js";
4
+ import { useDismissibleLayerStack as f } from "./composables/useDismissibleLayerStack/index.js";
5
+ import { defaultLightColorScheme as a, defaultDarkColorScheme as d } from "./templates/theme.js";
6
+ import { ref as r, watch as u } from "vue";
7
+ import { createThemeInstance as p, generateRootStyle as L } from "./utils/theme.js";
8
+ function q(m = {}) {
9
+ return { install: (t) => {
10
+ const s = m.components || {};
11
+ for (const n in s)
12
+ t.component(n, s[n]);
13
+ const e = m.defaults || {};
14
+ t.provide(i, r(e)), S(t, m.themes);
15
+ const l = f();
16
+ t.provide(h, l);
13
17
  } };
14
18
  }
15
- function p(s, m) {
16
- const o = [];
17
- let t;
18
- if (!m)
19
- t = "default", o.push({
20
- name: t,
19
+ function S(m, o) {
20
+ const t = [];
21
+ let s;
22
+ if (!o)
23
+ s = "default", t.push({
24
+ name: s,
21
25
  mode: "light",
22
- scheme: l
26
+ scheme: a
23
27
  });
24
28
  else
25
- for (const e of m.themes) {
26
- const r = { ...e.mode === "light" ? l : i, ...e.colors };
27
- o.push({
29
+ for (const e of o.themes) {
30
+ const n = { ...e.mode === "light" ? a : d, ...e.colors };
31
+ t.push({
28
32
  name: e.name,
29
33
  mode: e.mode,
30
- scheme: r
31
- }), e.name === m.defaultTheme && (t = e.name);
34
+ scheme: n
35
+ }), e.name === o.defaultTheme && (s = e.name);
32
36
  }
33
- if (t) {
34
- const e = a(t), n = d(e, o);
35
- u(o), f(n.name, S, { immediate: !0 }), s.provide(h, n);
37
+ if (s) {
38
+ const e = r(s), l = p(e, t);
39
+ L(t), u(l.name, y, { immediate: !0 }), m.provide(c, l);
36
40
  }
37
41
  }
38
- function S(s) {
39
- const m = document.documentElement, t = Array.from(m.classList).filter((e) => !e.startsWith("q-theme"));
40
- m.className = t.join(" "), m.classList.add(`q-theme--${s}`);
42
+ function y(m) {
43
+ const o = document.documentElement, s = Array.from(o.classList).filter((e) => !e.startsWith("q-theme"));
44
+ o.className = s.join(" "), o.classList.add(`q-theme--${m}`);
41
45
  }
42
46
  export {
43
- D as createFramework
47
+ q as createFramework
44
48
  };