@factoringplus/pl-components-pack-v3 1.4.3-pre-01 → 1.4.3-pre-03

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.
@@ -7,25 +7,33 @@ interface IProps {
7
7
  title: string;
8
8
  placement?: 'top-right' | 'top' | 'top-left' | 'right-top' | 'right' | 'right-bottom' | 'bottom-left' | 'bottom' | 'bottom-right' | 'left-bottom' | 'left' | 'left-top';
9
9
  slides: ISlide[];
10
+ currentItem?: number;
10
11
  }
11
12
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
12
13
  show: boolean;
13
14
  placement: string;
14
15
  title: string;
16
+ currentItem: number;
15
17
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
18
  close: (...args: any[]) => void;
17
19
  "update:show": (...args: any[]) => void;
20
+ "update:currentItem": (...args: any[]) => void;
21
+ next: (...args: any[]) => void;
18
22
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
19
23
  show: boolean;
20
24
  placement: string;
21
25
  title: string;
26
+ currentItem: number;
22
27
  }>>> & {
23
28
  onClose?: (...args: any[]) => any;
24
29
  "onUpdate:show"?: (...args: any[]) => any;
30
+ "onUpdate:currentItem"?: (...args: any[]) => any;
31
+ onNext?: (...args: any[]) => any;
25
32
  }, {
26
33
  title: string;
27
34
  placement: "left" | "right" | "top-right" | "top" | "top-left" | "right-top" | "right-bottom" | "bottom-left" | "bottom" | "bottom-right" | "left-bottom" | "left-top";
28
35
  show: boolean;
36
+ currentItem: number;
29
37
  }, {}>, {
30
38
  default?(_: {}): any;
31
39
  }>;
@@ -33388,17 +33388,21 @@ const $G = ar(LG, "PlTagsChips"), PG = {
33388
33388
  show: { type: Boolean, default: !1 },
33389
33389
  title: { default: "Title" },
33390
33390
  placement: { default: "top" },
33391
- slides: {}
33391
+ slides: {},
33392
+ currentItem: { default: 0 }
33392
33393
  },
33393
- emits: ["close", "update:show"],
33394
+ emits: ["close", "update:show", "update:currentItem", "next"],
33394
33395
  setup(e, { emit: t }) {
33395
- const n = e, r = t, o = O(0), s = C({
33396
+ const n = e, r = t, o = C({
33397
+ get: () => n.currentItem,
33398
+ set: (h) => r("update:currentItem", h)
33399
+ }), s = C({
33396
33400
  get: () => n.show,
33397
33401
  set: (h) => r("update:show", h)
33398
33402
  }), i = O(null), u = O(null), c = C(() => o.value === n.slides.length - 1 ? "Понятно" : "Далее"), d = O(), g = () => {
33399
33403
  r("close"), s.value = !1;
33400
33404
  }, f = () => {
33401
- o.value === n.slides.length - 1 ? g() : o.value++;
33405
+ o.value === n.slides.length - 1 ? (g(), r("next")) : (r("update:currentItem", o.value), o.value++, r("next"));
33402
33406
  }, m = () => {
33403
33407
  if (i.value && u.value) {
33404
33408
  let h = "", y = "";
@@ -33490,7 +33494,7 @@ const $G = ar(LG, "PlTagsChips"), PG = {
33490
33494
  }),
33491
33495
  re(Qt, {
33492
33496
  class: "onboarding-close-button",
33493
- color: "var(--color-text-icons-white)",
33497
+ color: "var(--color-text-icons-tertiary)",
33494
33498
  name: "Close20",
33495
33499
  onClick: g
33496
33500
  })