@quidgest/ui 0.17.8 → 0.18.0

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 (109) hide show
  1. package/dist/json/api.json +490 -20
  2. package/dist/manifest/components.json +3 -0
  3. package/dist/ui.css +3426 -3165
  4. package/dist/ui.esm.js +582 -614
  5. package/dist/ui.js +526 -560
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.min.js +526 -560
  8. package/dist/ui.scss +389 -135
  9. package/esm/components/QAccordion/QAccordionItem.vue.js +1 -0
  10. package/esm/components/QCarousel/QCarousel.vue.js +1 -1
  11. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  12. package/esm/components/QCheckbox/QCheckbox.vue.js +2 -0
  13. package/esm/components/QCollapsible/QCollapsible.d.ts +2 -1
  14. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  15. package/esm/components/QCollapsible/QCollapsible.vue.js +50 -47
  16. package/esm/components/QCollapsible/constants.d.ts +6 -0
  17. package/esm/components/QCollapsible/constants.d.ts.map +1 -1
  18. package/esm/components/QCollapsible/constants.js +3 -2
  19. package/esm/components/QCollapsible/index.d.ts +6 -0
  20. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  21. package/esm/components/QCollapsible/types.d.ts +11 -1
  22. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  23. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  24. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +505 -597
  25. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +32 -16
  26. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  27. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +179 -86
  28. package/esm/components/QDropdownMenu/types.d.ts +6 -0
  29. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  30. package/esm/components/QField/types.d.ts +3 -0
  31. package/esm/components/QField/types.d.ts.map +1 -1
  32. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  33. package/esm/components/QLabel/QLabel.vue.js +19 -17
  34. package/esm/components/QLabel/types.d.ts +3 -0
  35. package/esm/components/QLabel/types.d.ts.map +1 -1
  36. package/esm/components/QObfuscation/QObfuscation.d.ts +74 -0
  37. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -0
  38. package/esm/components/QObfuscation/QObfuscation.vue.js +183 -0
  39. package/esm/components/QObfuscation/QObfuscation2.vue.js +5 -0
  40. package/esm/components/QObfuscation/constants.d.ts +17 -0
  41. package/esm/components/QObfuscation/constants.d.ts.map +1 -0
  42. package/esm/components/QObfuscation/constants.js +12 -0
  43. package/esm/components/QObfuscation/index.d.ts +162 -0
  44. package/esm/components/QObfuscation/index.d.ts.map +1 -0
  45. package/esm/components/QObfuscation/index.js +6 -0
  46. package/esm/components/QObfuscation/types.d.ts +44 -0
  47. package/esm/components/QObfuscation/types.d.ts.map +1 -0
  48. package/esm/components/QTabs/QTab.d.ts +172 -0
  49. package/esm/components/QTabs/QTab.d.ts.map +1 -0
  50. package/esm/components/QTabs/QTab.vue.js +122 -0
  51. package/esm/components/QTabs/QTab2.vue.js +5 -0
  52. package/esm/components/QTabs/QTabs.d.ts +35 -0
  53. package/esm/components/QTabs/QTabs.d.ts.map +1 -0
  54. package/esm/components/QTabs/QTabs.vue.js +83 -0
  55. package/esm/components/QTabs/QTabs2.vue.js +5 -0
  56. package/esm/components/QTabs/constants.d.ts +5 -0
  57. package/esm/components/QTabs/constants.d.ts.map +1 -0
  58. package/esm/components/QTabs/context.d.ts +78 -0
  59. package/esm/components/QTabs/context.d.ts.map +1 -0
  60. package/esm/components/QTabs/context.js +4 -0
  61. package/esm/components/QTabs/index.d.ts +164 -0
  62. package/esm/components/QTabs/index.d.ts.map +1 -0
  63. package/esm/components/QTabs/index.js +7 -0
  64. package/esm/components/QTabs/types.d.ts +106 -0
  65. package/esm/components/QTabs/types.d.ts.map +1 -0
  66. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts +7 -0
  67. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts.map +1 -0
  68. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +24 -0
  69. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator2.vue.js +5 -0
  70. package/esm/components/__internal__/QRequiredIndicator/constants.d.ts +7 -0
  71. package/esm/components/__internal__/QRequiredIndicator/constants.d.ts.map +1 -0
  72. package/esm/components/__internal__/QRequiredIndicator/constants.js +4 -0
  73. package/esm/components/__internal__/QRequiredIndicator/index.d.ts +6 -0
  74. package/esm/components/__internal__/QRequiredIndicator/index.d.ts.map +1 -0
  75. package/esm/components/__internal__/QRequiredIndicator/index.js +6 -0
  76. package/esm/components/__internal__/QRequiredIndicator/types.d.ts +18 -0
  77. package/esm/components/__internal__/QRequiredIndicator/types.d.ts.map +1 -0
  78. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +10 -0
  79. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts.map +1 -0
  80. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +31 -0
  81. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle2.vue.js +5 -0
  82. package/esm/components/__internal__/QSafeTriangle/index.d.ts +10 -0
  83. package/esm/components/__internal__/QSafeTriangle/index.d.ts.map +1 -0
  84. package/esm/components/__internal__/QSafeTriangle/index.js +6 -0
  85. package/esm/components/__internal__/QSafeTriangle/types.d.ts +33 -0
  86. package/esm/components/__internal__/QSafeTriangle/types.d.ts.map +1 -0
  87. package/esm/components/index.d.ts +2 -0
  88. package/esm/components/index.d.ts.map +1 -1
  89. package/esm/components/index.js +37 -32
  90. package/esm/composables/useSafeTriangle/index.d.ts +31 -0
  91. package/esm/composables/useSafeTriangle/index.d.ts.map +1 -0
  92. package/esm/composables/useSafeTriangle/index.js +87 -0
  93. package/esm/index.d.ts +3 -0
  94. package/esm/utils/date.d.ts +36 -1
  95. package/esm/utils/date.d.ts.map +1 -1
  96. package/esm/utils/date.js +90 -1
  97. package/esm/utils/index.d.ts +1 -0
  98. package/esm/utils/index.d.ts.map +1 -1
  99. package/esm/utils/index.js +30 -24
  100. package/esm/utils/mask.d.ts +17 -0
  101. package/esm/utils/mask.d.ts.map +1 -0
  102. package/esm/utils/mask.js +154 -0
  103. package/esm/utils/safeTriangle.d.ts +68 -0
  104. package/esm/utils/safeTriangle.d.ts.map +1 -0
  105. package/esm/utils/safeTriangle.js +83 -0
  106. package/package.json +6 -6
  107. package/esm/composables/useInputMask/index.d.ts +0 -50
  108. package/esm/composables/useInputMask/index.d.ts.map +0 -1
  109. package/esm/composables/useInputMask/index.js +0 -408
@@ -0,0 +1,74 @@
1
+ import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
2
+ import { QObfuscationProps } from '.';
3
+ import { Component } from 'vue';
4
+ type __VLS_Props = QObfuscationProps;
5
+ type __VLS_PublicProps = {
6
+ 'revealed'?: boolean;
7
+ } & __VLS_Props;
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: Readonly<{
11
+ default?: (props: {
12
+ qObfuscationHideAction: Component;
13
+ toggle: () => void;
14
+ revealed: boolean;
15
+ loading: boolean;
16
+ }) => unknown;
17
+ reveal?: (props: {
18
+ revealed: boolean;
19
+ toggle: () => void;
20
+ loading: boolean;
21
+ }) => unknown;
22
+ mask?: () => unknown;
23
+ 'label.prepend'?: () => unknown;
24
+ 'label.append'?: () => unknown;
25
+ extras?: () => unknown;
26
+ }> & {
27
+ default?: (props: {
28
+ qObfuscationHideAction: Component;
29
+ toggle: () => void;
30
+ revealed: boolean;
31
+ loading: boolean;
32
+ }) => unknown;
33
+ reveal?: (props: {
34
+ revealed: boolean;
35
+ toggle: () => void;
36
+ loading: boolean;
37
+ }) => unknown;
38
+ mask?: () => unknown;
39
+ 'label.prepend'?: () => unknown;
40
+ 'label.append'?: () => unknown;
41
+ extras?: () => unknown;
42
+ };
43
+ refs: {};
44
+ rootEl: any;
45
+ };
46
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
47
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ "update:revealed": (value: boolean) => any;
49
+ } & {
50
+ hide: () => any;
51
+ reveal: () => any;
52
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
53
+ onHide?: (() => any) | undefined;
54
+ onReveal?: (() => any) | undefined;
55
+ "onUpdate:revealed"?: ((value: boolean) => any) | undefined;
56
+ }>, {
57
+ size: import('..').QFieldSize;
58
+ required: boolean;
59
+ mask: import('./types').QObfuscationMask;
60
+ loading: boolean;
61
+ icons: typeof DEFAULT_ICONS;
62
+ texts: Partial<typeof DEFAULT_TEXTS>;
63
+ labelPosition: import('..').QLabelPosition;
64
+ revealable: boolean;
65
+ bulletCount: number;
66
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
67
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
68
+ export default _default;
69
+ type __VLS_WithTemplateSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
74
+ //# sourceMappingURL=QObfuscation.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QObfuscation.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/QObfuscation.vue"],"names":[],"mappings":"AAsFA;AA+RC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAcpC,KAAK,WAAW,GAAG,iBAAiB,CAAC;AA0LtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmLT,OAAO,IAA6B;;kBA9VtC,CAAC,KAAK,EAAE;YACjB,sBAAsB,EAAE,SAAS,CAAA;YACjC,MAAM,EAAE,MAAM,IAAI,CAAA;YAClB,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,OAAO,CAAA;SAChB,KAAK,OAAO;iBACJ,CAAC,KAAK,EAAE;YAAE,QAAQ,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,MAAM,IAAI,CAAC;YAAC,OAAO,EAAE,OAAO,CAAA;SAAE,KAAK,OAAO;eACjF,MAAM,OAAO;0BACF,MAAM,OAAO;yBACd,MAAM,OAAO;iBACrB,MAAM,OAAO;;kBAVZ,CAAC,KAAK,EAAE;YACjB,sBAAsB,EAAE,SAAS,CAAA;YACjC,MAAM,EAAE,MAAM,IAAI,CAAA;YAClB,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,OAAO,CAAA;SAChB,KAAK,OAAO;iBACJ,CAAC,KAAK,EAAE;YAAE,QAAQ,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,MAAM,IAAI,CAAC;YAAC,OAAO,EAAE,OAAO,CAAA;SAAE,KAAK,OAAO;eACjF,MAAM,OAAO;0BACF,MAAM,OAAO;yBACd,MAAM,OAAO;iBACrB,MAAM,OAAO;;;;EAyVvB;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,183 @@
1
+ import { QButton as e } from "../QButton/index.js";
2
+ import { QIcon as t } from "../QIcon/index.js";
3
+ import { useId as n } from "../../composables/uid.js";
4
+ import { QField as r } from "../QField/index.js";
5
+ import { DEFAULT_ICONS as i, DEFAULT_TEXTS as a } from "./constants.js";
6
+ import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createTextVNode as p, createVNode as m, defineComponent as h, h as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, onBeforeMount as x, onBeforeUnmount as S, openBlock as C, ref as w, renderSlot as T, toDisplayString as E, unref as D, useModel as O, watch as k, withCtx as A } from "vue";
7
+ //#region src/components/QObfuscation/QObfuscation.vue?vue&type=script&setup=true&lang.ts
8
+ var j = ["id"], M = ["id"], N = {
9
+ key: 1,
10
+ class: "q-obfuscation__mask"
11
+ }, P = /*@__PURE__*/ h({
12
+ __name: "QObfuscation",
13
+ props: /*@__PURE__*/ _({
14
+ id: {},
15
+ class: {},
16
+ label: {},
17
+ required: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ for: {},
22
+ labelPosition: { default: "topleft" },
23
+ size: { default: "medium" },
24
+ readonly: { type: Boolean },
25
+ disabled: { type: Boolean },
26
+ invalid: { type: Boolean },
27
+ revealable: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ loading: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ mask: { default: "restricted" },
36
+ bulletCount: { default: 12 },
37
+ icons: { default: () => i },
38
+ texts: { default: () => a }
39
+ }, {
40
+ revealed: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ revealedModifiers: {}
45
+ }),
46
+ emits: /*@__PURE__*/ _(["reveal", "hide"], ["update:revealed"]),
47
+ setup(i, { emit: _ }) {
48
+ let P = i, F = _, I = O(i, "revealed"), L = n(), R = w(0), z = w(!1), B = s(() => ({
49
+ ...a,
50
+ ...P.texts
51
+ })), V = s(() => P.revealable && I.value && !P.loading), H = s(() => R.value > 0), U = s(() => {
52
+ if (!(V.value && (!z.value || H.value))) return P.label;
53
+ }), W = s(() => V.value && z.value && !H.value), G = s(() => P.mask === "bullets" ? "•".repeat(P.bulletCount) : B.value.restricted), K = s(() => [
54
+ "q-obfuscation",
55
+ {
56
+ "q-obfuscation--revealable": P.revealable,
57
+ "q-obfuscation--revealed": V.value,
58
+ "q-obfuscation--loading": P.loading
59
+ },
60
+ P.class
61
+ ]);
62
+ k(V, async (e) => {
63
+ if (!e) {
64
+ z.value = !1;
65
+ return;
66
+ }
67
+ z.value = !1, await y(), z.value = !0;
68
+ }, { immediate: !0 });
69
+ let q = h({
70
+ name: "QObfuscationHideAction",
71
+ props: { track: {
72
+ type: Boolean,
73
+ default: !0
74
+ } },
75
+ setup(n) {
76
+ return n.track && (x(() => {
77
+ R.value++;
78
+ }), S(() => {
79
+ R.value--;
80
+ })), () => g(e, {
81
+ variant: "text",
82
+ borderless: !0,
83
+ size: "small",
84
+ class: "q-obfuscation__label-action",
85
+ disabled: P.disabled,
86
+ title: B.value.hideData,
87
+ "aria-label": B.value.hideData,
88
+ "aria-expanded": !0,
89
+ "aria-controls": L.value,
90
+ "data-testid": "q-obfuscation__hide",
91
+ onClick: J
92
+ }, () => g(t, {
93
+ ...P.icons.hide,
94
+ class: "q-obfuscation__icon"
95
+ }));
96
+ }
97
+ });
98
+ function J() {
99
+ !P.revealable || P.loading || (I.value = !I.value, I.value ? F("reveal") : F("hide"));
100
+ }
101
+ return (n, i) => (C(), c(D(r), {
102
+ id: P.id,
103
+ class: b(K.value),
104
+ for: P.for ?? D(L),
105
+ label: U.value,
106
+ "label-position": P.labelPosition,
107
+ size: P.size,
108
+ readonly: P.readonly,
109
+ disabled: P.disabled,
110
+ required: P.required,
111
+ invalid: P.invalid
112
+ }, f({
113
+ "label.prepend": A(() => [T(n.$slots, "label.prepend")]),
114
+ "label.append": A(() => [
115
+ T(n.$slots, "label.append"),
116
+ l(" Own padlock only when the consumer did not place QObfuscationHideAction "),
117
+ W.value ? (C(), c(D(q), {
118
+ key: 0,
119
+ track: !1
120
+ })) : l("v-if", !0)
121
+ ]),
122
+ control: A(() => [l(" Revealed: slot content; place QObfuscationHideAction on the field label to own it "), V.value ? (C(), u("div", {
123
+ key: 0,
124
+ id: D(L),
125
+ class: "q-obfuscation__content"
126
+ }, [T(n.$slots, "default", {
127
+ qObfuscationHideAction: D(q),
128
+ toggle: J,
129
+ revealed: I.value,
130
+ loading: P.loading
131
+ })], 8, j)) : (C(), u(o, { key: 1 }, [l(" Masked / loading: QObfuscation label + control surface "), d("div", {
132
+ id: D(L),
133
+ class: "q-field__control q-obfuscation__value"
134
+ }, [P.revealable ? T(n.$slots, "reveal", {
135
+ key: 0,
136
+ revealed: I.value,
137
+ toggle: J,
138
+ loading: P.loading
139
+ }, () => [m(D(e), {
140
+ variant: "text",
141
+ borderless: "",
142
+ block: "",
143
+ class: "q-obfuscation__action",
144
+ disabled: P.disabled,
145
+ loading: P.loading,
146
+ label: B.value.showData,
147
+ "aria-expanded": !1,
148
+ "aria-controls": D(L),
149
+ "data-testid": "q-obfuscation__reveal",
150
+ onClick: J
151
+ }, {
152
+ default: A(() => [m(D(t), v(P.icons.show, { class: "q-obfuscation__icon" }), null, 16)]),
153
+ _: 1
154
+ }, 8, [
155
+ "disabled",
156
+ "loading",
157
+ "label",
158
+ "aria-controls"
159
+ ])]) : (C(), u("span", N, [m(D(t), v(P.icons.restricted, {
160
+ class: "q-obfuscation__icon",
161
+ "aria-hidden": "true"
162
+ }), null, 16), T(n.$slots, "mask", {}, () => [p(E(G.value), 1)])]))], 8, M)], 2112))]),
163
+ _: 2
164
+ }, [n.$slots.extras ? {
165
+ name: "extras",
166
+ fn: A(() => [T(n.$slots, "extras")]),
167
+ key: "0"
168
+ } : void 0]), 1032, [
169
+ "id",
170
+ "class",
171
+ "for",
172
+ "label",
173
+ "label-position",
174
+ "size",
175
+ "readonly",
176
+ "disabled",
177
+ "required",
178
+ "invalid"
179
+ ]));
180
+ }
181
+ });
182
+ //#endregion
183
+ export { P as default };
@@ -0,0 +1,5 @@
1
+ import e from "./QObfuscation.vue.js";
2
+ //#region src/components/QObfuscation/QObfuscation.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,17 @@
1
+ export declare const DEFAULT_ICONS: {
2
+ restricted: {
3
+ icon: string;
4
+ };
5
+ show: {
6
+ icon: string;
7
+ };
8
+ hide: {
9
+ icon: string;
10
+ };
11
+ };
12
+ export declare const DEFAULT_TEXTS: {
13
+ restricted: string;
14
+ showData: string;
15
+ hideData: string;
16
+ };
17
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;;;;CAUM,CAAA;AAEhC,eAAO,MAAM,aAAa;;;;CAIQ,CAAA"}
@@ -0,0 +1,12 @@
1
+ //#region src/components/QObfuscation/constants.ts
2
+ var e = {
3
+ restricted: { icon: "lock" },
4
+ show: { icon: "lock" },
5
+ hide: { icon: "lock-open-variant" }
6
+ }, t = {
7
+ restricted: "Restricted",
8
+ showData: "Show data",
9
+ hideData: "Hide data"
10
+ };
11
+ //#endregion
12
+ export { e as DEFAULT_ICONS, t as DEFAULT_TEXTS };
@@ -0,0 +1,162 @@
1
+ declare const QObfuscation: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
+ revealed?: boolean;
4
+ } & import('../../types/component').QBaseComponentProps & {
5
+ label?: string;
6
+ required?: boolean;
7
+ for?: string;
8
+ labelPosition?: import('..').QLabelPosition;
9
+ } & {
10
+ size?: import('..').QFieldSize;
11
+ readonly?: boolean;
12
+ disabled?: boolean;
13
+ required?: boolean;
14
+ invalid?: boolean;
15
+ } & {
16
+ revealable?: boolean;
17
+ loading?: boolean;
18
+ mask?: import('./types').QObfuscationMask;
19
+ bulletCount?: number;
20
+ icons?: typeof import('./constants').DEFAULT_ICONS;
21
+ texts?: Partial<typeof import('./constants').DEFAULT_TEXTS>;
22
+ }> & Readonly<{
23
+ onHide?: (() => any) | undefined;
24
+ onReveal?: (() => any) | undefined;
25
+ "onUpdate:revealed"?: ((value: boolean) => any) | undefined;
26
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ "update:revealed": (value: boolean) => any;
28
+ } & {
29
+ hide: () => any;
30
+ reveal: () => any;
31
+ }, import('vue').PublicProps, {
32
+ size: import('..').QFieldSize;
33
+ required: boolean;
34
+ mask: import('./types').QObfuscationMask;
35
+ loading: boolean;
36
+ icons: typeof import('./constants').DEFAULT_ICONS;
37
+ texts: Partial<typeof import('./constants').DEFAULT_TEXTS>;
38
+ labelPosition: import('..').QLabelPosition;
39
+ revealable: boolean;
40
+ bulletCount: number;
41
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
42
+ P: {};
43
+ B: {};
44
+ D: {};
45
+ C: {};
46
+ M: {};
47
+ Defaults: {};
48
+ }, Readonly<{
49
+ revealed?: boolean;
50
+ } & import('../../types/component').QBaseComponentProps & {
51
+ label?: string;
52
+ required?: boolean;
53
+ for?: string;
54
+ labelPosition?: import('..').QLabelPosition;
55
+ } & {
56
+ size?: import('..').QFieldSize;
57
+ readonly?: boolean;
58
+ disabled?: boolean;
59
+ required?: boolean;
60
+ invalid?: boolean;
61
+ } & {
62
+ revealable?: boolean;
63
+ loading?: boolean;
64
+ mask?: import('./types').QObfuscationMask;
65
+ bulletCount?: number;
66
+ icons?: typeof import('./constants').DEFAULT_ICONS;
67
+ texts?: Partial<typeof import('./constants').DEFAULT_TEXTS>;
68
+ }> & Readonly<{
69
+ onHide?: (() => any) | undefined;
70
+ onReveal?: (() => any) | undefined;
71
+ "onUpdate:revealed"?: ((value: boolean) => any) | undefined;
72
+ }>, {}, {}, {}, {}, {
73
+ size: import('..').QFieldSize;
74
+ required: boolean;
75
+ mask: import('./types').QObfuscationMask;
76
+ loading: boolean;
77
+ icons: typeof import('./constants').DEFAULT_ICONS;
78
+ texts: Partial<typeof import('./constants').DEFAULT_TEXTS>;
79
+ labelPosition: import('..').QLabelPosition;
80
+ revealable: boolean;
81
+ bulletCount: number;
82
+ }>;
83
+ __isFragment?: never;
84
+ __isTeleport?: never;
85
+ __isSuspense?: never;
86
+ } & import('vue').ComponentOptionsBase<Readonly<{
87
+ revealed?: boolean;
88
+ } & import('../../types/component').QBaseComponentProps & {
89
+ label?: string;
90
+ required?: boolean;
91
+ for?: string;
92
+ labelPosition?: import('..').QLabelPosition;
93
+ } & {
94
+ size?: import('..').QFieldSize;
95
+ readonly?: boolean;
96
+ disabled?: boolean;
97
+ required?: boolean;
98
+ invalid?: boolean;
99
+ } & {
100
+ revealable?: boolean;
101
+ loading?: boolean;
102
+ mask?: import('./types').QObfuscationMask;
103
+ bulletCount?: number;
104
+ icons?: typeof import('./constants').DEFAULT_ICONS;
105
+ texts?: Partial<typeof import('./constants').DEFAULT_TEXTS>;
106
+ }> & Readonly<{
107
+ onHide?: (() => any) | undefined;
108
+ onReveal?: (() => any) | undefined;
109
+ "onUpdate:revealed"?: ((value: boolean) => any) | undefined;
110
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
111
+ "update:revealed": (value: boolean) => any;
112
+ } & {
113
+ hide: () => any;
114
+ reveal: () => any;
115
+ }, string, {
116
+ size: import('..').QFieldSize;
117
+ required: boolean;
118
+ mask: import('./types').QObfuscationMask;
119
+ loading: boolean;
120
+ icons: typeof import('./constants').DEFAULT_ICONS;
121
+ texts: Partial<typeof import('./constants').DEFAULT_TEXTS>;
122
+ labelPosition: import('..').QLabelPosition;
123
+ revealable: boolean;
124
+ bulletCount: number;
125
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
126
+ $slots: Readonly<{
127
+ default?: (props: {
128
+ qObfuscationHideAction: import('vue').Component;
129
+ toggle: () => void;
130
+ revealed: boolean;
131
+ loading: boolean;
132
+ }) => unknown;
133
+ reveal?: (props: {
134
+ revealed: boolean;
135
+ toggle: () => void;
136
+ loading: boolean;
137
+ }) => unknown;
138
+ mask?: () => unknown;
139
+ 'label.prepend'?: () => unknown;
140
+ 'label.append'?: () => unknown;
141
+ extras?: () => unknown;
142
+ }> & {
143
+ default?: (props: {
144
+ qObfuscationHideAction: import('vue').Component;
145
+ toggle: () => void;
146
+ revealed: boolean;
147
+ loading: boolean;
148
+ }) => unknown;
149
+ reveal?: (props: {
150
+ revealed: boolean;
151
+ toggle: () => void;
152
+ loading: boolean;
153
+ }) => unknown;
154
+ mask?: () => unknown;
155
+ 'label.prepend'?: () => unknown;
156
+ 'label.append'?: () => unknown;
157
+ extras?: () => unknown;
158
+ };
159
+ });
160
+ export { QObfuscation };
161
+ export * from './types';
162
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAA;AAGnD,OAAO,EAAE,YAAY,EAAE,CAAA;AAGvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { setupPropsProxy as e } from "../../utils/setupPropsProxy.js";
2
+ import t from "./QObfuscation2.vue.js";
3
+ //#region src/components/QObfuscation/index.ts
4
+ var n = e(t);
5
+ //#endregion
6
+ export { n as QObfuscation };
@@ -0,0 +1,44 @@
1
+ import { QFieldProps } from '../QField';
2
+ import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
3
+ export type QObfuscationMask = 'restricted' | 'bullets';
4
+ export type QObfuscationProps = QFieldProps & {
5
+ /**
6
+ * When false, the value stays masked with no reveal control (PDF "Obfuscation").
7
+ * When true, the user can reveal and hide the slot content (PDF "Allow data to be revealed").
8
+ *
9
+ * @category Behavior
10
+ */
11
+ revealable?: boolean;
12
+ /**
13
+ * When true, shows the reveal button in a loading state while sensitive
14
+ * data is being fetched. Forwarded to the reveal `QButton`.
15
+ *
16
+ * @category State
17
+ */
18
+ loading?: boolean;
19
+ /**
20
+ * Mask style shown while the slot content is hidden.
21
+ *
22
+ * @category Presentation
23
+ */
24
+ mask?: QObfuscationMask;
25
+ /**
26
+ * Number of bullet characters when `mask` is `bullets`.
27
+ *
28
+ * @category Presentation
29
+ */
30
+ bulletCount?: number;
31
+ /**
32
+ * Custom icon configurations.
33
+ *
34
+ * @category Configuration
35
+ */
36
+ icons?: typeof DEFAULT_ICONS;
37
+ /**
38
+ * Custom text configurations.
39
+ *
40
+ * @category Configuration
41
+ */
42
+ texts?: Partial<typeof DEFAULT_TEXTS>;
43
+ };
44
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,CAAA;AAEvD,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG;IAC7C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAA;IAEvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,aAAa,CAAC,CAAA;CACrC,CAAA"}