@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.
- package/dist/manifest/components.json +7 -0
- package/dist/ui.css +810 -32
- package/dist/ui.esm.js +5731 -5219
- package/dist/ui.js +18 -18
- package/dist/ui.min.css +2 -1
- package/dist/ui.min.js +1042 -1006
- package/dist/ui.scss +463 -40
- package/esm/_virtual/_plugin-vue_export-helper.js +9 -0
- package/esm/components/QCombobox/QCombobox.d.ts +14 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +9 -8
- package/esm/components/QCombobox/index.d.ts +7 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +9 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +125 -97
- package/esm/components/QDialog/QDialogProvider.d.ts +3 -0
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -0
- package/esm/components/QDialog/QDialogProvider.vue.js +26 -0
- package/esm/components/QDialog/QDialogProvider.vue2.js +4 -0
- package/esm/components/QDialog/index.d.ts +26 -2
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/index.js +6 -4
- package/esm/components/QDialog/types.d.ts +9 -0
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -1
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +26 -24
- package/esm/components/QDivider/QDivider.d.ts +21 -0
- package/esm/components/QDivider/QDivider.d.ts.map +1 -0
- package/esm/components/QDivider/QDivider.vue.js +57 -0
- package/esm/components/QDivider/QDivider.vue2.js +4 -0
- package/esm/components/QDivider/index.d.ts +25 -0
- package/esm/components/QDivider/index.d.ts.map +1 -0
- package/esm/components/QDivider/index.js +6 -0
- package/esm/components/QDivider/types.d.ts +11 -0
- package/esm/components/QDivider/types.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +14 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QGrid/QCol.d.ts +19 -0
- package/esm/components/QGrid/QCol.d.ts.map +1 -0
- package/esm/components/QGrid/QCol.vue.js +46 -0
- package/esm/components/QGrid/QCol.vue2.js +4 -0
- package/esm/components/QGrid/QContainer.d.ts +19 -0
- package/esm/components/QGrid/QContainer.d.ts.map +1 -0
- package/esm/components/QGrid/QContainer.vue.js +24 -0
- package/esm/components/QGrid/QContainer.vue2.js +4 -0
- package/esm/components/QGrid/QRow.d.ts +23 -0
- package/esm/components/QGrid/QRow.d.ts.map +1 -0
- package/esm/components/QGrid/QRow.vue.js +36 -0
- package/esm/components/QGrid/QRow.vue2.js +4 -0
- package/esm/components/QGrid/QSpacer.d.ts +3 -0
- package/esm/components/QGrid/QSpacer.d.ts.map +1 -0
- package/esm/components/QGrid/QSpacer.vue.js +10 -0
- package/esm/components/QGrid/index.d.ts +66 -0
- package/esm/components/QGrid/index.d.ts.map +1 -0
- package/esm/components/QGrid/index.js +12 -0
- package/esm/components/QGrid/types.d.ts +47 -0
- package/esm/components/QGrid/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts +1 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +130 -120
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +57 -43
- package/esm/components/QList/index.d.ts +7 -0
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +8 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +29 -27
- package/esm/components/QOverlay/index.d.ts +3 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +4 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +8 -7
- package/esm/components/QSelect/QSelect.d.ts +14 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +1 -0
- package/esm/components/QSelect/index.d.ts +7 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts +39 -0
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -0
- package/esm/components/QSidebar/QSidebar.vue.js +155 -0
- package/esm/components/QSidebar/QSidebar.vue2.js +4 -0
- package/esm/components/QSidebar/QSidebarAnchor.d.ts +219 -0
- package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -0
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +110 -0
- package/esm/components/QSidebar/QSidebarAnchor.vue2.js +4 -0
- package/esm/components/QSidebar/QSidebarPanel.d.ts +41 -0
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -0
- package/esm/components/QSidebar/QSidebarPanel.vue.js +90 -0
- package/esm/components/QSidebar/QSidebarPanel.vue2.js +4 -0
- package/esm/components/QSidebar/index.d.ts +72 -0
- package/esm/components/QSidebar/index.d.ts.map +1 -0
- package/esm/components/QSidebar/index.js +6 -0
- package/esm/components/QSidebar/types.d.ts +63 -0
- package/esm/components/QSidebar/types.d.ts.map +1 -0
- package/esm/components/QToggleGroup/types.d.ts +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +47 -46
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +78 -68
- package/esm/composables/index.d.ts +2 -1
- package/esm/composables/index.d.ts.map +1 -1
- package/esm/composables/theme.js +3 -3
- package/esm/composables/useDialog/index.d.ts +69 -0
- package/esm/composables/useDialog/index.d.ts.map +1 -0
- package/esm/composables/useDialog/index.js +21 -0
- package/esm/composables/useDialog/types.d.ts +25 -0
- package/esm/composables/useDialog/types.d.ts.map +1 -0
- package/esm/composables/useDismissibleLayerStack/index.d.ts +14 -0
- package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -0
- package/esm/composables/useDismissibleLayerStack/index.js +32 -0
- package/esm/framework.d.ts.map +1 -1
- package/esm/framework.js +35 -31
- package/esm/index.d.ts +7 -0
- package/esm/index.js +4 -2
- package/esm/symbols/dismissibleLayer.d.ts +4 -0
- package/esm/symbols/dismissibleLayer.d.ts.map +1 -0
- package/esm/symbols/dismissibleLayer.js +4 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QIcon as
|
|
3
|
-
import { QOverlay as
|
|
4
|
-
import { useId as
|
|
5
|
-
import { getElement as
|
|
6
|
-
const
|
|
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__ */
|
|
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(
|
|
29
|
-
const e =
|
|
30
|
-
function
|
|
31
|
-
|
|
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
|
|
35
|
-
|
|
33
|
+
function m() {
|
|
34
|
+
var t;
|
|
35
|
+
(t = s()) == null || t.setAttribute("aria-describedby", l);
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
|
43
|
-
e.anchor &&
|
|
41
|
+
function f() {
|
|
42
|
+
e.anchor && i();
|
|
44
43
|
}
|
|
45
|
-
|
|
46
|
-
function h(
|
|
47
|
-
|
|
44
|
+
V(f);
|
|
45
|
+
function h(t, o) {
|
|
46
|
+
o && i(), t && r && m();
|
|
48
47
|
}
|
|
49
|
-
return
|
|
50
|
-
|
|
48
|
+
return B(() => e.anchor, h), (t, o) => (a(), d(
|
|
49
|
+
u,
|
|
51
50
|
null,
|
|
52
51
|
[
|
|
53
|
-
p(
|
|
54
|
-
props: { "aria-describedby": n(
|
|
52
|
+
p(t.$slots, "anchor", {
|
|
53
|
+
props: { "aria-describedby": n(l) }
|
|
55
54
|
}),
|
|
56
|
-
|
|
57
|
-
id: n(
|
|
58
|
-
modelValue:
|
|
59
|
-
"onUpdate:modelValue":
|
|
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:
|
|
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:
|
|
74
|
-
|
|
75
|
-
p(
|
|
76
|
-
e.icon ? (a(),
|
|
77
|
-
n(
|
|
78
|
-
|
|
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
|
-
)) :
|
|
83
|
-
e.html ? (a(),
|
|
83
|
+
)) : C("v-if", !0),
|
|
84
|
+
e.html ? (a(), d("span", {
|
|
84
85
|
key: 1,
|
|
85
86
|
innerHTML: e.text
|
|
86
|
-
}, null, 8,
|
|
87
|
-
|
|
87
|
+
}, null, 8, H)) : (a(), d(
|
|
88
|
+
u,
|
|
88
89
|
{ key: 2 },
|
|
89
90
|
[
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
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"}
|
package/esm/components/index.js
CHANGED
|
@@ -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
|
|
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
|
|
11
|
-
import { QDateTimePicker as
|
|
12
|
-
import { QDialog as
|
|
13
|
-
import { QDismissibleLayer as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
D as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
wo as
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
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"}
|
package/esm/composables/theme.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
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 =
|
|
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
|
|
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
|
+
};
|
package/esm/framework.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"
|
|
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
|
|
2
|
-
import { ThemeSymbol as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
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
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
if (!
|
|
19
|
-
|
|
20
|
-
name:
|
|
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:
|
|
26
|
+
scheme: a
|
|
23
27
|
});
|
|
24
28
|
else
|
|
25
|
-
for (const e of
|
|
26
|
-
const
|
|
27
|
-
|
|
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:
|
|
31
|
-
}), e.name ===
|
|
34
|
+
scheme: n
|
|
35
|
+
}), e.name === o.defaultTheme && (s = e.name);
|
|
32
36
|
}
|
|
33
|
-
if (
|
|
34
|
-
const e =
|
|
35
|
-
|
|
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
|
|
39
|
-
const
|
|
40
|
-
|
|
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
|
-
|
|
47
|
+
q as createFramework
|
|
44
48
|
};
|