@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 E, onScopeDispose as I, unref as v, ref as b, watchEffect as A, computed as W, getCurrentInstance as G, onMounted as P, defineComponent as S, openBlock as h, createElementBlock as y, createElementVNode as u, createVNode as l, withCtx as p, createTextVNode as w, toDisplayString as _, normalizeClass as j, createCommentVNode as V, createBlock as k, createSlots as R, renderList as D, watch as B, mergeProps as O } from "vue";
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 C from "../ambutton/index.js";
4
- import { _ as x } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
5
- import { _ as L } from "../AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
6
- import { _ as M } from "../_plugin-vue_export-helper-CHgC5LLL.js";
7
- import U from "../amslider/index.js";
8
- function H(n) {
9
- return E() ? (I(n), !0) : !1;
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(n) {
12
- return typeof n == "function" ? n() : v(n);
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 n = b(!1), o = G();
19
- return o && P(() => {
20
- n.value = !0;
21
- }, o), n;
18
+ const o = w(!1), i = R();
19
+ return i && A(() => {
20
+ o.value = !0;
21
+ }, i), o;
22
22
  }
23
- function X(n) {
24
- const o = K();
25
- return W(() => (o.value, !!n()));
23
+ function X(o) {
24
+ const i = K();
25
+ return P(() => (i.value, !!o()));
26
26
  }
27
- function T(n, o = {}) {
28
- const { window: t = J } = o, a = X(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
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 s = b(!1), i = (d) => {
31
- s.value = d.matches;
32
- }, r = () => {
33
- e && ("removeEventListener" in e ? e.removeEventListener("change", i) : e.removeListener(i));
34
- }, m = A(() => {
35
- a.value && (r(), e = t.matchMedia(q(n)), "addEventListener" in e ? e.addEventListener("change", i) : e.addListener(i), s.value = e.matches);
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 H(() => {
38
- m(), r(), e = void 0;
39
- }), s;
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"], se = { name: "Briefing" }, ie = /* @__PURE__ */ S({
42
- ...se,
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(n, { emit: o }) {
52
- const t = n, a = T("(max-width: 775px)"), e = "", s = o;
53
- return (i, r) => (h(), y("div", Y, [
54
- u("div", Z, [
55
- l(x, { variant: "l3" }, {
56
- default: p(() => [
57
- w(_(t.title), 1)
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
- l(L, {
65
+ d(V, {
62
66
  icon: "close",
63
67
  size: "md",
64
- onClick: r[0] || (r[0] = (m) => s("closeModal"))
68
+ onClick: a[0] || (a[0] = (m) => e("closeModal"))
65
69
  })
66
70
  ]),
67
- u("div", {
68
- class: j(["briefing-modal-body", { "briefing-modal-body-mobile": v(a) }])
71
+ c("div", {
72
+ class: j(["briefing-modal-body", { "briefing-modal-body-mobile": b(n) }])
69
73
  }, [
70
- u("div", ee, [
71
- l(x, {
72
- class: "title",
73
- variant: "l1",
74
- isStrong: ""
74
+ c("div", ee, [
75
+ d(g, {
76
+ variant: "title",
77
+ isStrong: "",
78
+ size: "medium",
79
+ class: "title"
75
80
  }, {
76
- default: p(() => [
77
- w(_(t.subtitle), 1)
81
+ default: f(() => [
82
+ h(_(t.subtitle), 1)
78
83
  ]),
79
84
  _: 1
80
85
  }),
81
- l(x, {
86
+ d(g, {
82
87
  class: "mt-4",
83
- variant: "l5"
88
+ variant: "body"
84
89
  }, {
85
- default: p(() => [
86
- w(_(t.description), 1)
90
+ default: f(() => [
91
+ h(_(t.description), 1)
87
92
  ]),
88
93
  _: 1
89
94
  }),
90
- l(x, {
95
+ d(g, {
91
96
  class: "mt-4",
92
- variant: "l5"
97
+ variant: "body"
93
98
  }, {
94
- default: p(() => [
95
- w(_(t.buttonTitle), 1)
99
+ default: f(() => [
100
+ h(_(t.buttonTitle), 1)
96
101
  ]),
97
102
  _: 1
98
103
  }),
99
- u("div", te, [
100
- l(C, {
104
+ c("div", te, [
105
+ d(z, {
101
106
  label: t.buttonLabel,
102
- size: "xlarge",
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
- u("div", ne, [
108
- u("img", {
109
- src: `${v(e)}images/internationalization-briefing.webp`
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__ */ M(ie, [["__scopeId", "data-v-356f2620"]]), ae = { class: "whats-new" }, re = { class: "whats-new-img-container" }, de = ["src"], ce = ["href"], ue = { name: "GenericStepper" }, fe = /* @__PURE__ */ S({
116
- ...ue,
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(n) {
121
- const o = n, t = T("(max-width: 775px)");
122
- return (a, e) => (h(), y("div", ae, [
123
- u("div", re, [
124
- u("img", {
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: v(t) ? o.slotObj.image.replace(/(\.webp)$/, "-mobile$1") : o.slotObj.image
130
+ src: b(t) ? i.slotObj.image.replace(/(\.webp)$/, "-mobile$1") : i.slotObj.image
127
131
  }, null, 8, de)
128
132
  ]),
129
- l(x, {
133
+ d(g, {
130
134
  class: "whats-new-title",
131
- variant: "l3",
135
+ variant: "subtitle",
136
+ size: "medium",
132
137
  isStrong: ""
133
138
  }, {
134
- default: p(() => [
135
- w(_(o.slotObj.subtitle), 1)
139
+ default: f(() => [
140
+ h(_(i.slotObj.subtitle), 1)
136
141
  ]),
137
142
  _: 1
138
143
  }),
139
- l(x, {
144
+ d(g, {
140
145
  class: "whats-new-description",
141
- variant: "body"
146
+ variant: "body",
147
+ size: "medium"
142
148
  }, {
143
- default: p(() => {
144
- var s;
149
+ default: f(() => {
150
+ var l;
145
151
  return [
146
- w(_(o.slotObj.description) + " ", 1),
147
- (s = o.slotObj) != null && s.url ? (h(), y("a", {
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: o.slotObj.url
151
- }, _(o.slotObj.linkHint), 9, ce)) : V("", !0)
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
- }), me = /* @__PURE__ */ M(fe, [["__scopeId", "data-v-e4ecbdfd"]]), pe = { class: "internationalization-modal" }, _e = { class: "internationalization-modal-title" }, ve = { class: "internationalization-modal-body" }, be = { name: "WhatsNew" }, he = /* @__PURE__ */ S({
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(n, { expose: o, emit: t }) {
171
- const a = n, e = T("(max-width: 775px)"), s = t, i = b(0), r = b(a.items), m = r.value.map((f) => f.subtitle), d = ({ slidingToIndex: f }) => {
172
- i.value = f;
173
- }, c = b(), g = () => {
174
- var f;
175
- if (i.value === 3) {
176
- s("closeModal");
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
- (f = c.value) == null || f.nextSlide();
180
- }, z = () => {
181
- var f;
182
- if (i.value === 0)
183
- return s("returnStep");
184
- if (i.value === 3)
185
- return s("closeModal");
186
- (f = c.value) == null || f.prevSlide();
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 o({
189
- nextSlide: g,
190
- prevSlide: z
191
- }), (f, N) => (h(), y("div", pe, [
192
- u("div", _e, [
193
- l(x, {
194
- variant: "l3",
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: p(() => [
198
- w(_(a.title), 1)
204
+ default: f(() => [
205
+ h(_(n.title), 1)
199
206
  ]),
200
207
  _: 1
201
208
  }),
202
- l(L, {
209
+ d(V, {
203
210
  icon: "close",
204
211
  size: "md",
205
- onClick: N[0] || (N[0] = ($) => s("closeModal"))
212
+ onClick: N[0] || (N[0] = (B) => l("closeModal"))
206
213
  })
207
214
  ]),
208
- v(m).length > 0 ? (h(), k(U, {
215
+ b(m).length > 0 ? (p(), y(H, {
209
216
  key: 0,
210
217
  ref_key: "sliderRef",
211
- ref: c,
212
- "slot-names": v(m),
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: d
219
- }, R({ _: 2 }, [
220
- D(r.value, ($, Se) => ({
221
- name: $.subtitle,
222
- fn: p(() => [
223
- u("div", ve, [
224
- l(me, { "slot-obj": $ }, null, 8, ["slot-obj"])
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"])) : V("", !0),
229
- u("div", {
230
- class: j(["internationalization-modal-button-container", { "mobile-alignment": v(e) }])
235
+ ]), 1032, ["slot-names"])) : C("", !0),
236
+ c("div", {
237
+ class: j(["internationalization-modal-button-container", { "mobile-alignment": b(e) }])
231
238
  }, [
232
- l(C, {
233
- label: i.value === 3 ? a.finishButtonText : a.backButtonText,
234
- variant: "maxGhost",
235
- size: "xlarge",
236
- onClick: z
237
- }, null, 8, ["label"]),
238
- l(C, {
239
- label: i.value === 3 ? a.integrationMenuButtonText : a.nextButtonText,
240
- size: "xlarge",
241
- onClick: g
242
- }, null, 8, ["label"])
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__ */ M(he, [["__scopeId", "data-v-deac99cd"]]), we = { key: 0 }, xe = { name: "AmInternationalizationModal" }, ye = /* @__PURE__ */ S({
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(n, { emit: o }) {
256
- const t = n, a = o, e = b(t.modelValue), s = b(!t.showBriefing), i = b(), r = () => {
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
- s.value = !t.showBriefing;
267
+ l.value = !t.showBriefing;
259
268
  }, 500);
260
269
  };
261
- B(
270
+ k(
262
271
  () => t.modelValue,
263
- (d) => {
264
- e.value = d;
272
+ (u) => {
273
+ e.value = u;
265
274
  }
266
- ), B(
275
+ ), k(
267
276
  () => t.showBriefing,
268
- (d) => {
269
- s.value = !d;
277
+ (u) => {
278
+ l.value = !u;
270
279
  },
271
280
  { immediate: !0 }
272
- ), B(
281
+ ), k(
273
282
  () => e.value,
274
- (d) => {
275
- a("update:modelValue", d);
283
+ (u) => {
284
+ n("update:modelValue", u);
276
285
  }
277
286
  );
278
- const m = (d) => {
287
+ const v = (u) => {
279
288
  e.value = !1, setTimeout(() => {
280
- s.value = d, e.value = !0;
289
+ l.value = u, e.value = !0;
281
290
  }, 300);
282
291
  };
283
- return (d, c) => (h(), k(v(Q), {
292
+ return (u, r) => (p(), y(b(Q), {
284
293
  visible: e.value,
285
- "onUpdate:visible": c[3] || (c[3] = (g) => e.value = g),
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
- closeOnEscape: !1,
290
- class: "internationalization-dialog"
298
+ maximized: b(m),
299
+ closeOnEscape: !0,
300
+ class: "p-dialog-custom internationalization-dialog"
291
301
  }, {
292
- default: p(() => [
293
- s.value ? (h(), k(ge, O({
302
+ default: f(() => [
303
+ l.value ? (p(), y(ge, O({
294
304
  key: 1,
295
305
  ref_key: "whatsNewRef",
296
- ref: i
306
+ ref: a
297
307
  }, t.whatsNewProps, {
298
- onReturnStep: c[2] || (c[2] = (g) => m(!1)),
299
- onCloseModal: r
300
- }), null, 16)) : (h(), y("div", we, [
301
- l(le, O(t.briefingProps, {
302
- onCloseModal: c[0] || (c[0] = (g) => e.value = !1),
303
- onNextStep: c[1] || (c[1] = (g) => m(!0))
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
- }), Ne = /* @__PURE__ */ M(ye, [["__scopeId", "data-v-9d06981e"]]);
322
+ });
311
323
  export {
312
- Ne as default
324
+ Te as default
313
325
  };