@aham.ro/ui-designer 0.1.4 → 0.1.7
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/README.md +4 -4
- package/dist/Designer.vue.d.ts +9 -1
- package/dist/index.d.ts +7 -1
- package/dist/stores/checklist.d.ts +11 -0
- package/dist/stores/screens.d.ts +26 -0
- package/dist/ui-designer.css +2 -0
- package/dist/ui-designer.js +2667 -0
- package/dist/widgets/ComponenList.vue.d.ts +7 -0
- package/dist/widgets/Properties.vue.d.ts +3 -0
- package/dist/widgets/SideInfo.vue.d.ts +9 -0
- package/dist/widgets/TemplateList.vue.d.ts +16 -0
- package/dist/widgets/TextScroller.vue.d.ts +24 -0
- package/dist/widgets/components/Alert.vue.d.ts +10 -0
- package/dist/widgets/components/Card.vue.d.ts +29 -0
- package/dist/widgets/components/Checkbox.vue.d.ts +11 -0
- package/dist/widgets/components/ConsentCard.vue.d.ts +10 -0
- package/dist/widgets/components/Container.vue.d.ts +25 -0
- package/dist/widgets/components/Content.vue.d.ts +18 -0
- package/dist/widgets/components/Divider.vue.d.ts +8 -0
- package/dist/widgets/components/EmailInput.vue.d.ts +13 -0
- package/dist/widgets/components/Heading.vue.d.ts +10 -0
- package/dist/widgets/components/Image.vue.d.ts +20 -0
- package/dist/widgets/components/Layout.vue.d.ts +22 -0
- package/dist/widgets/components/LayoutRef.vue.d.ts +20 -0
- package/dist/widgets/components/OtpInput.vue.d.ts +10 -0
- package/dist/widgets/components/PasswordInput.vue.d.ts +15 -0
- package/dist/widgets/components/ScopeList.vue.d.ts +8 -0
- package/dist/widgets/components/SocialButton.vue.d.ts +11 -0
- package/dist/widgets/components/Spacer.vue.d.ts +8 -0
- package/dist/widgets/components/SubmitButton.vue.d.ts +10 -0
- package/dist/widgets/components/Text.vue.d.ts +8 -0
- package/dist/widgets/components/TextInput.vue.d.ts +13 -0
- package/dist/widgets/components/TextLink.vue.d.ts +12 -0
- package/dist/widgets/components/index.d.ts +21 -0
- package/dist/widgets/components/types.d.ts +25 -0
- package/dist/widgets/header/IconButton.vue.d.ts +1 -1
- package/dist/widgets/header/types.d.ts +14 -0
- package/package.json +14 -9
- package/dist/iam-designer.css +0 -2
- package/dist/iam-designer.js +0 -225
package/dist/iam-designer.js
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, getCurrentInstance as c, nextTick as l, normalizeStyle as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, watch as y, withModifiers as b } from "vue";
|
|
2
|
-
//#region src/composables/useTranslation.ts
|
|
3
|
-
function x() {
|
|
4
|
-
let e = c()?.appContext.config.globalProperties, t = e?.$t, n = typeof t == "function" ? t.bind(e) : void 0;
|
|
5
|
-
return (e, t) => {
|
|
6
|
-
let r = n?.(e);
|
|
7
|
-
return r && r !== e ? r : t;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/widgets/header/IconButton.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var S = [
|
|
13
|
-
"title",
|
|
14
|
-
"aria-label",
|
|
15
|
-
"disabled"
|
|
16
|
-
], C = {
|
|
17
|
-
class: "icon",
|
|
18
|
-
"aria-hidden": "true"
|
|
19
|
-
}, w = /*@__PURE__*/ s({
|
|
20
|
-
__name: "IconButton",
|
|
21
|
-
props: {
|
|
22
|
-
icon: { default: "settings" },
|
|
23
|
-
title: { default: "Settings" },
|
|
24
|
-
disabled: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !1
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
setup(e) {
|
|
30
|
-
return (t, n) => (p(), i("button", {
|
|
31
|
-
class: "icon-button",
|
|
32
|
-
type: "button",
|
|
33
|
-
title: e.title,
|
|
34
|
-
"aria-label": e.title,
|
|
35
|
-
disabled: e.disabled
|
|
36
|
-
}, [a("span", C, _(e.icon), 1)], 8, S));
|
|
37
|
-
}
|
|
38
|
-
}), T = (e, t) => {
|
|
39
|
-
let n = e.__vccOpts || e;
|
|
40
|
-
for (let [e, r] of t) n[e] = r;
|
|
41
|
-
return n;
|
|
42
|
-
}, E = /*#__PURE__*/ T(w, [["__scopeId", "data-v-b3b6390f"]]), D = [
|
|
43
|
-
"title",
|
|
44
|
-
"aria-label",
|
|
45
|
-
"aria-expanded"
|
|
46
|
-
], O = ["disabled", "onClick"], k = {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: "icon",
|
|
49
|
-
"aria-hidden": "true"
|
|
50
|
-
}, A = /*#__PURE__*/ T(/* @__PURE__ */ s({
|
|
51
|
-
__name: "MoreButton",
|
|
52
|
-
props: { items: {} },
|
|
53
|
-
emits: ["select"],
|
|
54
|
-
setup(o, { emit: s }) {
|
|
55
|
-
let c = s, S = m(!1), C = m(), w = m(), T = m(), E = m({
|
|
56
|
-
top: 0,
|
|
57
|
-
right: 0
|
|
58
|
-
}), A = x()("tooltip-sidebar-more", "More");
|
|
59
|
-
function j() {
|
|
60
|
-
if (!w.value) return;
|
|
61
|
-
let e = w.value.getBoundingClientRect();
|
|
62
|
-
E.value = {
|
|
63
|
-
top: e.bottom + 6,
|
|
64
|
-
right: Math.max(8, window.innerWidth - e.right)
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
function M() {
|
|
68
|
-
S.value = !S.value;
|
|
69
|
-
}
|
|
70
|
-
function N(e) {
|
|
71
|
-
e.disabled || (c("select", e.id), S.value = !1);
|
|
72
|
-
}
|
|
73
|
-
function P(e) {
|
|
74
|
-
let t = e.target;
|
|
75
|
-
C.value && !C.value.contains(t) && !T.value?.contains(t) && (S.value = !1);
|
|
76
|
-
}
|
|
77
|
-
function F(e) {
|
|
78
|
-
e.key === "Escape" && (S.value = !1);
|
|
79
|
-
}
|
|
80
|
-
return f(() => {
|
|
81
|
-
document.addEventListener("click", P), document.addEventListener("keydown", F), window.addEventListener("resize", j), window.addEventListener("scroll", j, !0);
|
|
82
|
-
}), d(() => {
|
|
83
|
-
document.removeEventListener("click", P), document.removeEventListener("keydown", F), window.removeEventListener("resize", j), window.removeEventListener("scroll", j, !0);
|
|
84
|
-
}), y(S, async (e) => {
|
|
85
|
-
e && (await l(), j());
|
|
86
|
-
}), (s, c) => (p(), i("div", {
|
|
87
|
-
ref_key: "root",
|
|
88
|
-
ref: C,
|
|
89
|
-
class: "more-menu"
|
|
90
|
-
}, [a("button", {
|
|
91
|
-
ref_key: "button",
|
|
92
|
-
ref: w,
|
|
93
|
-
class: "more-button",
|
|
94
|
-
type: "button",
|
|
95
|
-
title: v(A),
|
|
96
|
-
"aria-label": v(A),
|
|
97
|
-
"aria-expanded": S.value,
|
|
98
|
-
"aria-haspopup": "menu",
|
|
99
|
-
onClick: b(M, ["stop"])
|
|
100
|
-
}, [...c[0] ||= [a("span", {
|
|
101
|
-
class: "icon",
|
|
102
|
-
"aria-hidden": "true"
|
|
103
|
-
}, "more_vert", -1)]], 8, D), (p(), n(t, { to: "body" }, [S.value ? (p(), i("div", {
|
|
104
|
-
key: 0,
|
|
105
|
-
ref_key: "dropdown",
|
|
106
|
-
ref: T,
|
|
107
|
-
class: "dropdown",
|
|
108
|
-
role: "menu",
|
|
109
|
-
style: u({
|
|
110
|
-
top: `${E.value.top}px`,
|
|
111
|
-
right: `${E.value.right}px`
|
|
112
|
-
})
|
|
113
|
-
}, [o.items?.length ? (p(!0), i(e, { key: 0 }, h(o.items, (e) => (p(), i("button", {
|
|
114
|
-
key: e.id,
|
|
115
|
-
class: "menu-item",
|
|
116
|
-
type: "button",
|
|
117
|
-
role: "menuitem",
|
|
118
|
-
disabled: e.disabled,
|
|
119
|
-
onClick: (t) => N(e)
|
|
120
|
-
}, [e.icon ? (p(), i("span", k, _(e.icon), 1)) : r("", !0), a("span", null, _(e.label), 1)], 8, O))), 128)) : g(s.$slots, "menu", { close: () => S.value = !1 }, void 0, !0, 1)], 4)) : r("", !0)]))], 512));
|
|
121
|
-
}
|
|
122
|
-
}), [["__scopeId", "data-v-923fea1e"]]), j = ["disabled", "aria-busy"], M = {
|
|
123
|
-
key: 0,
|
|
124
|
-
class: "spinner",
|
|
125
|
-
"aria-hidden": "true"
|
|
126
|
-
}, N = /*#__PURE__*/ T(/* @__PURE__ */ s({
|
|
127
|
-
__name: "SaveButton",
|
|
128
|
-
props: {
|
|
129
|
-
disabled: {
|
|
130
|
-
type: Boolean,
|
|
131
|
-
default: !1
|
|
132
|
-
},
|
|
133
|
-
working: {
|
|
134
|
-
type: Boolean,
|
|
135
|
-
default: !1
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
setup(e) {
|
|
139
|
-
let t = x();
|
|
140
|
-
return (n, o) => (p(), i("button", {
|
|
141
|
-
class: "save-button",
|
|
142
|
-
type: "button",
|
|
143
|
-
disabled: e.disabled || e.working,
|
|
144
|
-
"aria-busy": e.working
|
|
145
|
-
}, [e.working ? (p(), i("span", M)) : r("", !0), a("span", null, _(v(t)("save-changes", "Save changes")), 1)], 8, j));
|
|
146
|
-
}
|
|
147
|
-
}), [["__scopeId", "data-v-4a359870"]]), P = { class: "branding" }, F = { class: "title" }, I = { class: "subject" }, L = { class: "document-name" }, R = ["title"], z = { class: "actions" }, B = /*#__PURE__*/ T(/* @__PURE__ */ s({
|
|
148
|
-
__name: "Header",
|
|
149
|
-
props: {
|
|
150
|
-
subject: {},
|
|
151
|
-
shared: { type: Boolean },
|
|
152
|
-
themeChangeable: { type: Boolean },
|
|
153
|
-
moreItems: {}
|
|
154
|
-
},
|
|
155
|
-
emits: ["moreSelect"],
|
|
156
|
-
setup(e, { emit: t }) {
|
|
157
|
-
let s = e, c = t, l = x();
|
|
158
|
-
return (t, u) => (p(), i("header", null, [
|
|
159
|
-
a("div", P, [u[1] ||= a("span", { class: "icon" }, "design_services", -1), a("span", F, _(v(l)("designer", "Designer")), 1)]),
|
|
160
|
-
a("div", I, [a("span", L, _(e.subject), 1), e.shared ? (p(), i("span", {
|
|
161
|
-
key: 0,
|
|
162
|
-
class: "shared icon",
|
|
163
|
-
title: v(l)("shared", "Shared")
|
|
164
|
-
}, "groups", 8, R)) : r("", !0)]),
|
|
165
|
-
a("div", z, [
|
|
166
|
-
o(E, {
|
|
167
|
-
icon: "translate",
|
|
168
|
-
title: v(l)("translations", "Translations")
|
|
169
|
-
}, null, 8, ["title"]),
|
|
170
|
-
o(E, {
|
|
171
|
-
icon: "palette",
|
|
172
|
-
title: v(l)("change-theme", "Change theme")
|
|
173
|
-
}, null, 8, ["title"]),
|
|
174
|
-
s.themeChangeable === !1 ? r("", !0) : (p(), n(E, {
|
|
175
|
-
key: 0,
|
|
176
|
-
icon: "dark_mode",
|
|
177
|
-
title: v(l)("toggle-theme", "Toggle theme")
|
|
178
|
-
}, null, 8, ["title"])),
|
|
179
|
-
o(E, {
|
|
180
|
-
icon: "visibility",
|
|
181
|
-
title: v(l)("preview", "Preview")
|
|
182
|
-
}, null, 8, ["title"]),
|
|
183
|
-
o(N, {
|
|
184
|
-
disabled: !1,
|
|
185
|
-
working: !1
|
|
186
|
-
}),
|
|
187
|
-
o(A, {
|
|
188
|
-
items: s.moreItems,
|
|
189
|
-
onSelect: u[0] ||= (e) => c("moreSelect", e)
|
|
190
|
-
}, null, 8, ["items"])
|
|
191
|
-
])
|
|
192
|
-
]));
|
|
193
|
-
}
|
|
194
|
-
}), [["__scopeId", "data-v-b6ce5e30"]]), V = { class: "iam-designer" }, H = /*#__PURE__*/ T(/* @__PURE__ */ s({
|
|
195
|
-
__name: "Designer",
|
|
196
|
-
props: {
|
|
197
|
-
value: {},
|
|
198
|
-
options: {}
|
|
199
|
-
},
|
|
200
|
-
emits: ["moreSelect"],
|
|
201
|
-
setup(e, { emit: t }) {
|
|
202
|
-
let n = t;
|
|
203
|
-
function r(e) {
|
|
204
|
-
n("moreSelect", e);
|
|
205
|
-
}
|
|
206
|
-
return (t, n) => (p(), i("section", V, [
|
|
207
|
-
o(B, {
|
|
208
|
-
subject: e.options?.subject ?? "",
|
|
209
|
-
shared: e.options?.shared,
|
|
210
|
-
"theme-changeable": e.options?.theme?.changeable,
|
|
211
|
-
"more-items": e.options?.moreItems,
|
|
212
|
-
onMoreSelect: r
|
|
213
|
-
}, null, 8, [
|
|
214
|
-
"subject",
|
|
215
|
-
"shared",
|
|
216
|
-
"theme-changeable",
|
|
217
|
-
"more-items"
|
|
218
|
-
]),
|
|
219
|
-
n[0] ||= a("h2", null, "UI Designer", -1),
|
|
220
|
-
a("p", null, "Value: " + _(e.value), 1)
|
|
221
|
-
]));
|
|
222
|
-
}
|
|
223
|
-
}), [["__scopeId", "data-v-6baee9bc"]]);
|
|
224
|
-
//#endregion
|
|
225
|
-
export { H as Designer };
|