@appmax_npm/ds-prime 1.0.0-alpha.141 → 1.0.0-alpha.143
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.
|
@@ -8,4 +8,3 @@ export interface AmInternationalizationModalSlots {
|
|
|
8
8
|
declare const AmInternationalizationModal: DefineComponent<AmInternationalizationModalProps, {}, AmInternationalizationModalEmits>;
|
|
9
9
|
|
|
10
10
|
export default AmInternationalizationModal;
|
|
11
|
-
export * from './aminternationalizationmodal.types';
|
|
@@ -1,161 +1,167 @@
|
|
|
1
|
-
import { getCurrentScope as
|
|
1
|
+
import { getCurrentScope as L, onScopeDispose as E, unref as b, ref as w, watchEffect as W, computed as P, getCurrentInstance as R, onMounted as A, defineComponent as $, openBlock as p, createElementBlock as S, createElementVNode as c, createVNode as d, withCtx as f, createTextVNode as h, toDisplayString as _, normalizeClass as j, createCommentVNode as C, createBlock as y, createSlots as D, renderList as G, renderSlot as I, watch as k, mergeProps as O } from "vue";
|
|
2
2
|
import Q from "primevue/dialog";
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
function
|
|
9
|
-
return
|
|
3
|
+
import z from "../ambutton/index.js";
|
|
4
|
+
import { _ as g } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
|
|
5
|
+
import { _ as V } from "../AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
6
|
+
import { _ as T } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
import H from "../amslider/index.js";
|
|
8
|
+
function U(o) {
|
|
9
|
+
return L() ? (E(o), !0) : !1;
|
|
10
10
|
}
|
|
11
|
-
function q(
|
|
12
|
-
return typeof
|
|
11
|
+
function q(o) {
|
|
12
|
+
return typeof o == "function" ? o() : b(o);
|
|
13
13
|
}
|
|
14
14
|
const F = typeof window < "u" && typeof document < "u";
|
|
15
15
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
16
16
|
const J = F ? window : void 0;
|
|
17
17
|
function K() {
|
|
18
|
-
const
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
},
|
|
18
|
+
const o = w(!1), i = R();
|
|
19
|
+
return i && A(() => {
|
|
20
|
+
o.value = !0;
|
|
21
|
+
}, i), o;
|
|
22
22
|
}
|
|
23
|
-
function X(
|
|
24
|
-
const
|
|
25
|
-
return
|
|
23
|
+
function X(o) {
|
|
24
|
+
const i = K();
|
|
25
|
+
return P(() => (i.value, !!o()));
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const { window: t = J } =
|
|
27
|
+
function M(o, i = {}) {
|
|
28
|
+
const { window: t = J } = i, n = X(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
29
29
|
let e;
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
e && ("removeEventListener" in e ? e.removeEventListener("change",
|
|
34
|
-
},
|
|
35
|
-
|
|
30
|
+
const l = w(!1), a = (v) => {
|
|
31
|
+
l.value = v.matches;
|
|
32
|
+
}, m = () => {
|
|
33
|
+
e && ("removeEventListener" in e ? e.removeEventListener("change", a) : e.removeListener(a));
|
|
34
|
+
}, x = W(() => {
|
|
35
|
+
n.value && (m(), e = t.matchMedia(q(o)), "addEventListener" in e ? e.addEventListener("change", a) : e.addListener(a), l.value = e.matches);
|
|
36
36
|
});
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
}),
|
|
37
|
+
return U(() => {
|
|
38
|
+
x(), m(), e = void 0;
|
|
39
|
+
}), l;
|
|
40
40
|
}
|
|
41
|
-
const Y = { class: "briefing-modal" }, Z = { class: "briefing-modal-title" }, ee = { class: "child-body" }, te = { class: "child-body-button-container" }, ne = { class: "child-body" }, oe = ["src"],
|
|
42
|
-
...
|
|
41
|
+
const Y = { class: "briefing-modal" }, Z = { class: "briefing-modal-title" }, ee = { class: "child-body" }, te = { class: "child-body-button-container" }, ne = { class: "child-body" }, oe = ["src"], ie = { name: "Briefing" }, se = /* @__PURE__ */ $({
|
|
42
|
+
...ie,
|
|
43
43
|
props: {
|
|
44
44
|
title: {},
|
|
45
45
|
subtitle: {},
|
|
46
46
|
description: {},
|
|
47
47
|
buttonTitle: {},
|
|
48
|
-
buttonLabel: {}
|
|
48
|
+
buttonLabel: {},
|
|
49
|
+
image: {}
|
|
49
50
|
},
|
|
50
51
|
emits: ["nextStep", "closeModal"],
|
|
51
|
-
setup(
|
|
52
|
-
const t =
|
|
53
|
-
return (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
setup(o, { emit: i }) {
|
|
53
|
+
const t = o, n = M("(max-width: 775px)"), e = i;
|
|
54
|
+
return (l, a) => (p(), S("div", Y, [
|
|
55
|
+
c("div", Z, [
|
|
56
|
+
d(g, {
|
|
57
|
+
variant: "subtitle",
|
|
58
|
+
size: "large"
|
|
59
|
+
}, {
|
|
60
|
+
default: f(() => [
|
|
61
|
+
h(_(t.title), 1)
|
|
58
62
|
]),
|
|
59
63
|
_: 1
|
|
60
64
|
}),
|
|
61
|
-
|
|
65
|
+
d(V, {
|
|
62
66
|
icon: "close",
|
|
63
67
|
size: "md",
|
|
64
|
-
onClick:
|
|
68
|
+
onClick: a[0] || (a[0] = (m) => e("closeModal"))
|
|
65
69
|
})
|
|
66
70
|
]),
|
|
67
|
-
|
|
68
|
-
class: j(["briefing-modal-body", { "briefing-modal-body-mobile":
|
|
71
|
+
c("div", {
|
|
72
|
+
class: j(["briefing-modal-body", { "briefing-modal-body-mobile": b(n) }])
|
|
69
73
|
}, [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
c("div", ee, [
|
|
75
|
+
d(g, {
|
|
76
|
+
variant: "title",
|
|
77
|
+
isStrong: "",
|
|
78
|
+
size: "medium",
|
|
79
|
+
class: "title"
|
|
75
80
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
|
|
81
|
+
default: f(() => [
|
|
82
|
+
h(_(t.subtitle), 1)
|
|
78
83
|
]),
|
|
79
84
|
_: 1
|
|
80
85
|
}),
|
|
81
|
-
|
|
86
|
+
d(g, {
|
|
82
87
|
class: "mt-4",
|
|
83
|
-
variant: "
|
|
88
|
+
variant: "body"
|
|
84
89
|
}, {
|
|
85
|
-
default:
|
|
86
|
-
|
|
90
|
+
default: f(() => [
|
|
91
|
+
h(_(t.description), 1)
|
|
87
92
|
]),
|
|
88
93
|
_: 1
|
|
89
94
|
}),
|
|
90
|
-
|
|
95
|
+
d(g, {
|
|
91
96
|
class: "mt-4",
|
|
92
|
-
variant: "
|
|
97
|
+
variant: "body"
|
|
93
98
|
}, {
|
|
94
|
-
default:
|
|
95
|
-
|
|
99
|
+
default: f(() => [
|
|
100
|
+
h(_(t.buttonTitle), 1)
|
|
96
101
|
]),
|
|
97
102
|
_: 1
|
|
98
103
|
}),
|
|
99
|
-
|
|
100
|
-
|
|
104
|
+
c("div", te, [
|
|
105
|
+
d(z, {
|
|
101
106
|
label: t.buttonLabel,
|
|
102
|
-
|
|
103
|
-
onClick: r[1] || (r[1] = (m) => s("nextStep"))
|
|
107
|
+
onClick: a[1] || (a[1] = (m) => e("nextStep"))
|
|
104
108
|
}, null, 8, ["label"])
|
|
105
109
|
])
|
|
106
110
|
]),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
src:
|
|
111
|
+
c("div", ne, [
|
|
112
|
+
c("img", {
|
|
113
|
+
src: t.image
|
|
110
114
|
}, null, 8, oe)
|
|
111
115
|
])
|
|
112
116
|
], 2)
|
|
113
117
|
]));
|
|
114
118
|
}
|
|
115
|
-
}), le = /* @__PURE__ */
|
|
116
|
-
...
|
|
119
|
+
}), le = /* @__PURE__ */ T(se, [["__scopeId", "data-v-2607cf0e"]]), ae = { class: "whats-new" }, re = { class: "whats-new-img-container" }, de = ["src"], ue = ["href"], ce = { name: "GenericStepper" }, me = /* @__PURE__ */ $({
|
|
120
|
+
...ce,
|
|
117
121
|
props: {
|
|
118
122
|
slotObj: {}
|
|
119
123
|
},
|
|
120
|
-
setup(
|
|
121
|
-
const
|
|
122
|
-
return (
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
setup(o) {
|
|
125
|
+
const i = o, t = M("(max-width: 775px)");
|
|
126
|
+
return (n, e) => (p(), S("div", ae, [
|
|
127
|
+
c("div", re, [
|
|
128
|
+
c("img", {
|
|
125
129
|
class: "whats-new-img",
|
|
126
|
-
src:
|
|
130
|
+
src: b(t) ? i.slotObj.image.replace(/(\.webp)$/, "-mobile$1") : i.slotObj.image
|
|
127
131
|
}, null, 8, de)
|
|
128
132
|
]),
|
|
129
|
-
|
|
133
|
+
d(g, {
|
|
130
134
|
class: "whats-new-title",
|
|
131
|
-
variant: "
|
|
135
|
+
variant: "subtitle",
|
|
136
|
+
size: "medium",
|
|
132
137
|
isStrong: ""
|
|
133
138
|
}, {
|
|
134
|
-
default:
|
|
135
|
-
|
|
139
|
+
default: f(() => [
|
|
140
|
+
h(_(i.slotObj.subtitle), 1)
|
|
136
141
|
]),
|
|
137
142
|
_: 1
|
|
138
143
|
}),
|
|
139
|
-
|
|
144
|
+
d(g, {
|
|
140
145
|
class: "whats-new-description",
|
|
141
|
-
variant: "body"
|
|
146
|
+
variant: "body",
|
|
147
|
+
size: "medium"
|
|
142
148
|
}, {
|
|
143
|
-
default:
|
|
144
|
-
var
|
|
149
|
+
default: f(() => {
|
|
150
|
+
var l;
|
|
145
151
|
return [
|
|
146
|
-
|
|
147
|
-
(
|
|
152
|
+
h(_(i.slotObj.description) + " ", 1),
|
|
153
|
+
(l = i.slotObj) != null && l.url ? (p(), S("a", {
|
|
148
154
|
key: 0,
|
|
149
155
|
target: "_blank",
|
|
150
|
-
href:
|
|
151
|
-
}, _(
|
|
156
|
+
href: i.slotObj.url
|
|
157
|
+
}, _(i.slotObj.linkHint), 9, ue)) : C("", !0)
|
|
152
158
|
];
|
|
153
159
|
}),
|
|
154
160
|
_: 1
|
|
155
161
|
})
|
|
156
162
|
]));
|
|
157
163
|
}
|
|
158
|
-
}),
|
|
164
|
+
}), fe = /* @__PURE__ */ T(me, [["__scopeId", "data-v-f570da73"]]), pe = { class: "internationalization-modal" }, ve = { class: "internationalization-modal-title" }, _e = { class: "internationalization-modal-body" }, be = { name: "WhatsNew" }, he = /* @__PURE__ */ $({
|
|
159
165
|
...be,
|
|
160
166
|
props: {
|
|
161
167
|
title: {},
|
|
@@ -166,84 +172,87 @@ const Y = { class: "briefing-modal" }, Z = { class: "briefing-modal-title" }, ee
|
|
|
166
172
|
pagination: { type: Boolean, default: !0 },
|
|
167
173
|
items: {}
|
|
168
174
|
},
|
|
169
|
-
emits: ["closeModal", "returnStep"],
|
|
170
|
-
setup(
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
var
|
|
175
|
-
if (
|
|
176
|
-
|
|
175
|
+
emits: ["closeModal", "returnStep", "nextStep", "slideChange"],
|
|
176
|
+
setup(o, { expose: i, emit: t }) {
|
|
177
|
+
const n = o, e = M("(max-width: 775px)"), l = t, a = w(0), m = n.items.map((s) => s.subtitle), x = ({ slidingToIndex: s }) => {
|
|
178
|
+
a.value = s, l("slideChange", s);
|
|
179
|
+
}, v = w(), u = () => {
|
|
180
|
+
var s;
|
|
181
|
+
if (a.value === n.items.length - 1) {
|
|
182
|
+
l("nextStep"), l("closeModal");
|
|
177
183
|
return;
|
|
178
184
|
}
|
|
179
|
-
(
|
|
180
|
-
},
|
|
181
|
-
var
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
184
|
-
if (
|
|
185
|
-
return
|
|
186
|
-
(
|
|
185
|
+
(s = v.value) == null || s.nextSlide();
|
|
186
|
+
}, r = () => {
|
|
187
|
+
var s;
|
|
188
|
+
if (a.value === 0)
|
|
189
|
+
return l("returnStep");
|
|
190
|
+
if (a.value === n.items.length - 1)
|
|
191
|
+
return l("closeModal");
|
|
192
|
+
(s = v.value) == null || s.prevSlide();
|
|
187
193
|
};
|
|
188
|
-
return
|
|
189
|
-
nextSlide:
|
|
190
|
-
prevSlide:
|
|
191
|
-
}), (
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
variant: "
|
|
194
|
+
return i({
|
|
195
|
+
nextSlide: u,
|
|
196
|
+
prevSlide: r
|
|
197
|
+
}), (s, N) => (p(), S("div", pe, [
|
|
198
|
+
c("div", ve, [
|
|
199
|
+
d(g, {
|
|
200
|
+
variant: "title",
|
|
201
|
+
size: "small",
|
|
195
202
|
isStrong: ""
|
|
196
203
|
}, {
|
|
197
|
-
default:
|
|
198
|
-
|
|
204
|
+
default: f(() => [
|
|
205
|
+
h(_(n.title), 1)
|
|
199
206
|
]),
|
|
200
207
|
_: 1
|
|
201
208
|
}),
|
|
202
|
-
|
|
209
|
+
d(V, {
|
|
203
210
|
icon: "close",
|
|
204
211
|
size: "md",
|
|
205
|
-
onClick: N[0] || (N[0] = (
|
|
212
|
+
onClick: N[0] || (N[0] = (B) => l("closeModal"))
|
|
206
213
|
})
|
|
207
214
|
]),
|
|
208
|
-
|
|
215
|
+
b(m).length > 0 ? (p(), y(H, {
|
|
209
216
|
key: 0,
|
|
210
217
|
ref_key: "sliderRef",
|
|
211
|
-
ref:
|
|
212
|
-
"slot-names":
|
|
218
|
+
ref: v,
|
|
219
|
+
"slot-names": b(m),
|
|
213
220
|
"slides-per-view": 1,
|
|
214
221
|
pagination: !0,
|
|
215
222
|
navigation: !1,
|
|
216
223
|
infinite: !1,
|
|
217
224
|
"centered-slides": !0,
|
|
218
|
-
onOnChange:
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
name:
|
|
222
|
-
fn:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
+
onOnChange: x
|
|
226
|
+
}, D({ _: 2 }, [
|
|
227
|
+
G(n.items, (B, Se) => ({
|
|
228
|
+
name: B.subtitle,
|
|
229
|
+
fn: f(() => [
|
|
230
|
+
c("div", _e, [
|
|
231
|
+
d(fe, { "slot-obj": B }, null, 8, ["slot-obj"])
|
|
225
232
|
])
|
|
226
233
|
])
|
|
227
234
|
}))
|
|
228
|
-
]), 1032, ["slot-names"])) :
|
|
229
|
-
|
|
230
|
-
class: j(["internationalization-modal-button-container", { "mobile-alignment":
|
|
235
|
+
]), 1032, ["slot-names"])) : C("", !0),
|
|
236
|
+
c("div", {
|
|
237
|
+
class: j(["internationalization-modal-button-container", { "mobile-alignment": b(e) }])
|
|
231
238
|
}, [
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
I(s.$slots, "buttons", {}, () => [
|
|
240
|
+
a.value !== n.items.length - 1 || n.finishButtonText ? (p(), y(z, {
|
|
241
|
+
key: 0,
|
|
242
|
+
label: a.value === n.items.length - 1 ? n.finishButtonText : n.backButtonText,
|
|
243
|
+
severity: "secondary",
|
|
244
|
+
outlined: "",
|
|
245
|
+
onClick: r
|
|
246
|
+
}, null, 8, ["label"])) : C("", !0),
|
|
247
|
+
d(z, {
|
|
248
|
+
label: a.value === n.items.length - 1 ? n.integrationMenuButtonText : n.nextButtonText,
|
|
249
|
+
onClick: u
|
|
250
|
+
}, null, 8, ["label"])
|
|
251
|
+
], !0)
|
|
243
252
|
], 2)
|
|
244
253
|
]));
|
|
245
254
|
}
|
|
246
|
-
}), ge = /* @__PURE__ */
|
|
255
|
+
}), ge = /* @__PURE__ */ T(he, [["__scopeId", "data-v-921d30a3"]]), we = { key: 0 }, xe = { name: "AmInternationalizationModal" }, Te = /* @__PURE__ */ $({
|
|
247
256
|
...xe,
|
|
248
257
|
props: {
|
|
249
258
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -251,63 +260,66 @@ const Y = { class: "briefing-modal" }, Z = { class: "briefing-modal-title" }, ee
|
|
|
251
260
|
briefingProps: {},
|
|
252
261
|
whatsNewProps: {}
|
|
253
262
|
},
|
|
254
|
-
emits: ["update:modelValue"],
|
|
255
|
-
setup(
|
|
256
|
-
const t =
|
|
263
|
+
emits: ["update:modelValue", "nextStep", "slideChange"],
|
|
264
|
+
setup(o, { emit: i }) {
|
|
265
|
+
const t = o, n = i, e = w(t.modelValue), l = w(!t.showBriefing), a = w(), m = M("(max-width: 775px)"), x = () => {
|
|
257
266
|
e.value = !1, setTimeout(() => {
|
|
258
|
-
|
|
267
|
+
l.value = !t.showBriefing;
|
|
259
268
|
}, 500);
|
|
260
269
|
};
|
|
261
|
-
|
|
270
|
+
k(
|
|
262
271
|
() => t.modelValue,
|
|
263
|
-
(
|
|
264
|
-
e.value =
|
|
272
|
+
(u) => {
|
|
273
|
+
e.value = u;
|
|
265
274
|
}
|
|
266
|
-
),
|
|
275
|
+
), k(
|
|
267
276
|
() => t.showBriefing,
|
|
268
|
-
(
|
|
269
|
-
|
|
277
|
+
(u) => {
|
|
278
|
+
l.value = !u;
|
|
270
279
|
},
|
|
271
280
|
{ immediate: !0 }
|
|
272
|
-
),
|
|
281
|
+
), k(
|
|
273
282
|
() => e.value,
|
|
274
|
-
(
|
|
275
|
-
|
|
283
|
+
(u) => {
|
|
284
|
+
n("update:modelValue", u);
|
|
276
285
|
}
|
|
277
286
|
);
|
|
278
|
-
const
|
|
287
|
+
const v = (u) => {
|
|
279
288
|
e.value = !1, setTimeout(() => {
|
|
280
|
-
|
|
289
|
+
l.value = u, e.value = !0;
|
|
281
290
|
}, 300);
|
|
282
291
|
};
|
|
283
|
-
return (
|
|
292
|
+
return (u, r) => (p(), y(b(Q), {
|
|
284
293
|
visible: e.value,
|
|
285
|
-
"onUpdate:visible":
|
|
294
|
+
"onUpdate:visible": r[5] || (r[5] = (s) => e.value = s),
|
|
286
295
|
style: { width: "800px" },
|
|
287
296
|
modal: !0,
|
|
288
297
|
closable: !1,
|
|
289
|
-
|
|
290
|
-
|
|
298
|
+
maximized: b(m),
|
|
299
|
+
closeOnEscape: !0,
|
|
300
|
+
class: "p-dialog-custom internationalization-dialog"
|
|
291
301
|
}, {
|
|
292
|
-
default:
|
|
293
|
-
|
|
302
|
+
default: f(() => [
|
|
303
|
+
l.value ? (p(), y(ge, O({
|
|
294
304
|
key: 1,
|
|
295
305
|
ref_key: "whatsNewRef",
|
|
296
|
-
ref:
|
|
306
|
+
ref: a
|
|
297
307
|
}, t.whatsNewProps, {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
308
|
+
onNextStep: r[2] || (r[2] = (s) => n("nextStep", !0)),
|
|
309
|
+
onReturnStep: r[3] || (r[3] = (s) => v(!1)),
|
|
310
|
+
onCloseModal: x,
|
|
311
|
+
onSlideChange: r[4] || (r[4] = (s) => n("slideChange", s))
|
|
312
|
+
}), null, 16)) : (p(), S("div", we, [
|
|
313
|
+
d(le, O(t.briefingProps, {
|
|
314
|
+
onCloseModal: r[0] || (r[0] = (s) => e.value = !1),
|
|
315
|
+
onNextStep: r[1] || (r[1] = (s) => v(!0))
|
|
304
316
|
}), null, 16)
|
|
305
317
|
]))
|
|
306
318
|
]),
|
|
307
319
|
_: 1
|
|
308
|
-
}, 8, ["visible"]));
|
|
320
|
+
}, 8, ["visible", "maximized"]));
|
|
309
321
|
}
|
|
310
|
-
})
|
|
322
|
+
});
|
|
311
323
|
export {
|
|
312
|
-
|
|
324
|
+
Te as default
|
|
313
325
|
};
|