@quidgest/ui 0.16.52 → 0.16.53
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/json/api.json +23 -31
- package/dist/ui.esm.js +5095 -5104
- package/dist/ui.js +7 -7
- package/dist/ui.min.js +26 -26
- package/dist/ui.scss +1 -1
- package/esm/components/QDialog/QDialog.d.ts +4 -13
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +71 -78
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/QDialogProvider.vue.js +16 -17
- package/esm/components/QDialog/index.d.ts +10 -85
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +6 -0
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +4 -9
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +156 -158
- package/esm/components/QOverlay/index.d.ts +10 -93
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +6 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +14 -13
- package/esm/composables/useDialog/index.d.ts +1 -0
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/composables/useDialog/index.js +11 -11
- package/package.json +1 -1
|
@@ -1,38 +1,10 @@
|
|
|
1
1
|
declare const QOverlay: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
-
modelValue?: boolean;
|
|
4
|
-
} & import('../../types/component').QBaseComponentProps & {
|
|
5
|
-
anchor?: import('../../utils/getElement').Selector | null;
|
|
6
|
-
appearance?: import('./types').QOverlayAppearance;
|
|
7
|
-
arrow?: boolean;
|
|
8
|
-
backdropBlur?: boolean;
|
|
9
|
-
backdropClass?: string | unknown[];
|
|
10
|
-
offset?: number;
|
|
11
|
-
crossOffset?: number;
|
|
12
|
-
placement?: import('./types').QOverlayPlacement;
|
|
13
|
-
transition?: string;
|
|
14
|
-
width?: "auto" | "anchor";
|
|
15
|
-
centerVertically?: boolean;
|
|
16
|
-
attach?: string;
|
|
17
|
-
inline?: boolean;
|
|
18
|
-
delay?: number;
|
|
19
|
-
nonModal?: boolean;
|
|
20
|
-
scrollLock?: boolean;
|
|
21
|
-
persistent?: boolean;
|
|
22
|
-
spy?: boolean;
|
|
23
|
-
trigger?: import('./types').QOverlayTrigger;
|
|
24
|
-
focusWrap?: boolean;
|
|
25
|
-
initialFocus?: HTMLElement | string | null;
|
|
26
|
-
focusWithinOnActivate?: boolean;
|
|
27
|
-
closingFocus?: HTMLElement | string;
|
|
28
|
-
returnFocusOnDeactivate?: boolean;
|
|
29
|
-
}> & Readonly<{
|
|
30
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QOverlayProps> & Readonly<{
|
|
3
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
31
4
|
onEnter?: (() => any) | undefined;
|
|
32
5
|
onLeave?: (() => any) | undefined;
|
|
33
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
-
"update:modelValue": (
|
|
35
|
-
} & {
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:modelValue": (val: boolean) => any;
|
|
36
8
|
enter: () => any;
|
|
37
9
|
leave: () => any;
|
|
38
10
|
}, import('vue').PublicProps, {
|
|
@@ -58,35 +30,8 @@ declare const QOverlay: {
|
|
|
58
30
|
C: {};
|
|
59
31
|
M: {};
|
|
60
32
|
Defaults: {};
|
|
61
|
-
}, Readonly<{
|
|
62
|
-
modelValue?: boolean;
|
|
63
|
-
} & import('../../types/component').QBaseComponentProps & {
|
|
64
|
-
anchor?: import('../../utils/getElement').Selector | null;
|
|
65
|
-
appearance?: import('./types').QOverlayAppearance;
|
|
66
|
-
arrow?: boolean;
|
|
67
|
-
backdropBlur?: boolean;
|
|
68
|
-
backdropClass?: string | unknown[];
|
|
69
|
-
offset?: number;
|
|
70
|
-
crossOffset?: number;
|
|
71
|
-
placement?: import('./types').QOverlayPlacement;
|
|
72
|
-
transition?: string;
|
|
73
|
-
width?: "auto" | "anchor";
|
|
74
|
-
centerVertically?: boolean;
|
|
75
|
-
attach?: string;
|
|
76
|
-
inline?: boolean;
|
|
77
|
-
delay?: number;
|
|
78
|
-
nonModal?: boolean;
|
|
79
|
-
scrollLock?: boolean;
|
|
80
|
-
persistent?: boolean;
|
|
81
|
-
spy?: boolean;
|
|
82
|
-
trigger?: import('./types').QOverlayTrigger;
|
|
83
|
-
focusWrap?: boolean;
|
|
84
|
-
initialFocus?: HTMLElement | string | null;
|
|
85
|
-
focusWithinOnActivate?: boolean;
|
|
86
|
-
closingFocus?: HTMLElement | string;
|
|
87
|
-
returnFocusOnDeactivate?: boolean;
|
|
88
|
-
}> & Readonly<{
|
|
89
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
33
|
+
}, Readonly<import('./types').QOverlayProps> & Readonly<{
|
|
34
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
90
35
|
onEnter?: (() => any) | undefined;
|
|
91
36
|
onLeave?: (() => any) | undefined;
|
|
92
37
|
}>, {}, {}, {}, {}, {
|
|
@@ -105,40 +50,12 @@ declare const QOverlay: {
|
|
|
105
50
|
__isFragment?: never;
|
|
106
51
|
__isTeleport?: never;
|
|
107
52
|
__isSuspense?: never;
|
|
108
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
109
|
-
modelValue?: boolean;
|
|
110
|
-
} & import('../../types/component').QBaseComponentProps & {
|
|
111
|
-
anchor?: import('../../utils/getElement').Selector | null;
|
|
112
|
-
appearance?: import('./types').QOverlayAppearance;
|
|
113
|
-
arrow?: boolean;
|
|
114
|
-
backdropBlur?: boolean;
|
|
115
|
-
backdropClass?: string | unknown[];
|
|
116
|
-
offset?: number;
|
|
117
|
-
crossOffset?: number;
|
|
118
|
-
placement?: import('./types').QOverlayPlacement;
|
|
119
|
-
transition?: string;
|
|
120
|
-
width?: "auto" | "anchor";
|
|
121
|
-
centerVertically?: boolean;
|
|
122
|
-
attach?: string;
|
|
123
|
-
inline?: boolean;
|
|
124
|
-
delay?: number;
|
|
125
|
-
nonModal?: boolean;
|
|
126
|
-
scrollLock?: boolean;
|
|
127
|
-
persistent?: boolean;
|
|
128
|
-
spy?: boolean;
|
|
129
|
-
trigger?: import('./types').QOverlayTrigger;
|
|
130
|
-
focusWrap?: boolean;
|
|
131
|
-
initialFocus?: HTMLElement | string | null;
|
|
132
|
-
focusWithinOnActivate?: boolean;
|
|
133
|
-
closingFocus?: HTMLElement | string;
|
|
134
|
-
returnFocusOnDeactivate?: boolean;
|
|
135
|
-
}> & Readonly<{
|
|
136
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
53
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QOverlayProps> & Readonly<{
|
|
54
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
137
55
|
onEnter?: (() => any) | undefined;
|
|
138
56
|
onLeave?: (() => any) | undefined;
|
|
139
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
140
|
-
"update:modelValue": (
|
|
141
|
-
} & {
|
|
57
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
58
|
+
"update:modelValue": (val: boolean) => any;
|
|
142
59
|
enter: () => any;
|
|
143
60
|
leave: () => any;
|
|
144
61
|
}, string, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,cAAc,SAAS,CAAA"}
|
|
@@ -3,6 +3,12 @@ import { Appearance, Placement, Trigger } from '../../composables/overlay';
|
|
|
3
3
|
import { Selector } from '../../utils/getElement';
|
|
4
4
|
export type { Appearance as QOverlayAppearance, Trigger as QOverlayTrigger, Axis as QOverlayAxis, Side as QOverlaySide, Alignment as QOverlayAlignment, Placement as QOverlayPlacement } from '../../composables/overlay';
|
|
5
5
|
export type QOverlayProps = QBaseComponentProps & {
|
|
6
|
+
/**
|
|
7
|
+
* The value of the selected item.
|
|
8
|
+
*
|
|
9
|
+
* @category Content
|
|
10
|
+
*/
|
|
11
|
+
modelValue?: boolean;
|
|
6
12
|
/**
|
|
7
13
|
* The DOM element the overlay should be anchored to.
|
|
8
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEtD,YAAY,EACX,UAAU,IAAI,kBAAkB,EAChC,OAAO,IAAI,eAAe,EAC1B,IAAI,IAAI,YAAY,EACpB,IAAI,IA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;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAEzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAE1B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAA;IAE1C;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAEnC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as p, mergeModels as u, useModel as f, computed as y, createBlock as i, openBlock as
|
|
2
|
-
import { QMeter as
|
|
3
|
-
import { QOverlay as
|
|
1
|
+
import { defineComponent as p, mergeModels as u, useModel as f, computed as y, createBlock as i, openBlock as s, unref as c, withCtx as h, createElementVNode as d, createElementBlock as v, createCommentVNode as m, createVNode as B, toDisplayString as g } from "vue";
|
|
2
|
+
import { QMeter as V } from "../QMeter/index.js";
|
|
3
|
+
import { QOverlay as _ } from "../QOverlay/index.js";
|
|
4
4
|
import k from "./QPasswordFieldMessages.vue.js";
|
|
5
5
|
const w = { class: "q-password-field__meter" }, M = {
|
|
6
6
|
key: 0,
|
|
@@ -11,6 +11,7 @@ const w = { class: "q-password-field__meter" }, M = {
|
|
|
11
11
|
props: /* @__PURE__ */ u({
|
|
12
12
|
id: {},
|
|
13
13
|
class: {},
|
|
14
|
+
modelValue: { type: Boolean },
|
|
14
15
|
anchor: {},
|
|
15
16
|
appearance: {},
|
|
16
17
|
arrow: { type: Boolean },
|
|
@@ -43,8 +44,8 @@ const w = { class: "q-password-field__meter" }, M = {
|
|
|
43
44
|
modelModifiers: {}
|
|
44
45
|
}),
|
|
45
46
|
emits: ["update:modelValue"],
|
|
46
|
-
setup(
|
|
47
|
-
const o =
|
|
47
|
+
setup(n) {
|
|
48
|
+
const o = n, r = f(n, "modelValue"), a = y(() => {
|
|
48
49
|
if (!o.levels.length) {
|
|
49
50
|
console.warn("Levels array is empty.");
|
|
50
51
|
return;
|
|
@@ -59,9 +60,9 @@ const w = { class: "q-password-field__meter" }, M = {
|
|
|
59
60
|
}
|
|
60
61
|
return o.levels[o.levels.length - 1];
|
|
61
62
|
});
|
|
62
|
-
return (t, l) => (
|
|
63
|
-
modelValue:
|
|
64
|
-
"onUpdate:modelValue": l[0] || (l[0] = (e) =>
|
|
63
|
+
return (t, l) => (s(), i(c(_), {
|
|
64
|
+
modelValue: r.value,
|
|
65
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => r.value = e),
|
|
65
66
|
trigger: "manual",
|
|
66
67
|
anchor: o.anchor,
|
|
67
68
|
width: "anchor",
|
|
@@ -72,21 +73,21 @@ const w = { class: "q-password-field__meter" }, M = {
|
|
|
72
73
|
var e;
|
|
73
74
|
return [
|
|
74
75
|
d("div", w, [
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
a.value ? (s(), v("div", M, [
|
|
77
|
+
B(c(V), {
|
|
77
78
|
"model-value": o.score,
|
|
78
79
|
max: 1,
|
|
79
|
-
color:
|
|
80
|
+
color: a.value.color
|
|
80
81
|
}, null, 8, ["model-value", "color"]),
|
|
81
82
|
d(
|
|
82
83
|
"span",
|
|
83
84
|
null,
|
|
84
|
-
|
|
85
|
+
g(a.value.label),
|
|
85
86
|
1
|
|
86
87
|
/* TEXT */
|
|
87
88
|
)
|
|
88
89
|
])) : m("v-if", !0),
|
|
89
|
-
(e = t.messages) != null && e.length ? (
|
|
90
|
+
(e = t.messages) != null && e.length ? (s(), i(k, {
|
|
90
91
|
key: 1,
|
|
91
92
|
messages: t.messages
|
|
92
93
|
}, null, 8, ["messages"])) : m("v-if", !0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AASrF;;;;GAIG;AACH,wBAAgB,SAAS;uBASE,YAAY,OAAO,MAAM,YAAY,cAAc;uBAgBnD,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AASrF;;;;GAIG;AACH,wBAAgB,SAAS;uBASE,YAAY,OAAO,MAAM,YAAY,cAAc;uBAgBnD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAaq4C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADt6C"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { useId as
|
|
3
|
-
const
|
|
1
|
+
import { reactive as r } from "vue";
|
|
2
|
+
import { useId as s } from "../uid.js";
|
|
3
|
+
const i = r({ dialogs: [] });
|
|
4
4
|
function c() {
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
return
|
|
5
|
+
function n(e, o, d) {
|
|
6
|
+
const t = s(o).value;
|
|
7
|
+
return i.dialogs.push({ id: t, props: { ...e, modelValue: !0 }, options: d }), t;
|
|
8
8
|
}
|
|
9
|
-
function a(
|
|
10
|
-
const
|
|
11
|
-
|
|
9
|
+
function a(e) {
|
|
10
|
+
const o = i.dialogs.findIndex((d) => d.id === e);
|
|
11
|
+
o !== -1 && i.dialogs.splice(o, 1);
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
14
|
-
...
|
|
15
|
-
addDialog:
|
|
14
|
+
...i,
|
|
15
|
+
addDialog: n,
|
|
16
16
|
removeDialog: a
|
|
17
17
|
};
|
|
18
18
|
}
|