@pksep/yui 0.1.240 → 0.1.241

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,6 +7,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
7
7
  dataTestid: string;
8
8
  position: string;
9
9
  disableCloseOnOutsideClick: boolean;
10
+ isResetFocus: boolean;
10
11
  }>>, {
11
12
  closeDialog: () => void;
12
13
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -16,6 +17,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
16
17
  dataTestid: string;
17
18
  position: string;
18
19
  disableCloseOnOutsideClick: boolean;
20
+ isResetFocus: boolean;
19
21
  }>>> & Readonly<{
20
22
  onClose?: ((...args: any[]) => any) | undefined;
21
23
  onUnmounted?: ((...args: any[]) => any) | undefined;
@@ -23,6 +25,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
23
25
  dataTestid: string;
24
26
  position: "right" | "center" | "bottom";
25
27
  disableCloseOnOutsideClick: boolean;
28
+ isResetFocus: boolean;
26
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
31
  export default _default;
@@ -7,6 +7,7 @@ export interface IDialogProps extends IDataTestIdProp {
7
7
  width?: string;
8
8
  height?: string;
9
9
  disableCloseOnOutsideClick?: boolean;
10
+ isResetFocus?: boolean;
10
11
  }
11
12
  export interface IModalProps extends IDialogProps {
12
13
  animateType?: ModalAnimateEnum;
@@ -75836,6 +75836,7 @@ const h6g = () => {
75836
75836
  width: {},
75837
75837
  height: {},
75838
75838
  disableCloseOnOutsideClick: { type: Boolean, default: !1 },
75839
+ isResetFocus: { type: Boolean, default: !0 },
75839
75840
  dataTestid: { default: "Modal" }
75840
75841
  },
75841
75842
  emits: ["close", "unmounted"],
@@ -75882,7 +75883,7 @@ const h6g = () => {
75882
75883
  closeDialog: b
75883
75884
  }), nI(() => {
75884
75885
  Ze(() => {
75885
- A.open !== l.value && (u(), l.value = A.open, n.value && n.value.focus());
75886
+ A.open !== l.value && (u(), l.value = A.open, n.value && A.isResetFocus && n.value.focus());
75886
75887
  }), n.value && n.value.addEventListener("cancel", (M) => {
75887
75888
  M.preventDefault();
75888
75889
  });
@@ -75913,7 +75914,7 @@ const h6g = () => {
75913
75914
  ], 12, Z6g)
75914
75915
  ], 16, b6g));
75915
75916
  }
75916
- }), hv = /* @__PURE__ */ jg(G6g, [["__scopeId", "data-v-c8dd59d1"]]), w6g = /* @__PURE__ */ lg({
75917
+ }), hv = /* @__PURE__ */ jg(G6g, [["__scopeId", "data-v-25d7cce5"]]), w6g = /* @__PURE__ */ lg({
75917
75918
  __name: "ModalAnimated",
75918
75919
  props: {
75919
75920
  animateType: {},
@@ -75922,6 +75923,7 @@ const h6g = () => {
75922
75923
  width: {},
75923
75924
  height: {},
75924
75925
  disableCloseOnOutsideClick: { type: Boolean, default: !1 },
75926
+ isResetFocus: { type: Boolean },
75925
75927
  dataTestid: { default: "Modal" }
75926
75928
  },
75927
75929
  emits: ["close", "unmounted", "end-animation"],
@@ -75959,6 +75961,7 @@ const h6g = () => {
75959
75961
  width: I.width,
75960
75962
  height: I.height,
75961
75963
  "data-testid": I.dataTestid,
75964
+ "is-reset-focus": I.isResetFocus,
75962
75965
  onClose: r,
75963
75966
  onUnmounted: s,
75964
75967
  "disable-close-on-outside-click": I.disableCloseOnOutsideClick
@@ -75967,12 +75970,12 @@ const h6g = () => {
75967
75970
  Eg(u.$slots, "default", {}, void 0, !0)
75968
75971
  ]),
75969
75972
  _: 3
75970
- }, 8, ["open", "position", "width", "height", "data-testid", "disable-close-on-outside-click"])) : pg("", !0)
75973
+ }, 8, ["open", "position", "width", "height", "data-testid", "is-reset-focus", "disable-close-on-outside-click"])) : pg("", !0)
75971
75974
  ]),
75972
75975
  _: 3
75973
75976
  }, 8, ["name"]));
75974
75977
  }
75975
- }), iy = /* @__PURE__ */ jg(w6g, [["__scopeId", "data-v-75405c48"]]), sS = (C, g = window) => {
75978
+ }), iy = /* @__PURE__ */ jg(w6g, [["__scopeId", "data-v-728b0160"]]), sS = (C, g = window) => {
75976
75979
  const I = C.getBoundingClientRect();
75977
75980
  if (g instanceof Window) {
75978
75981
  const e = window.innerWidth, t = window.innerHeight;
@@ -77256,6 +77259,7 @@ const v6g = {
77256
77259
  width: {},
77257
77260
  height: {},
77258
77261
  disableCloseOnOutsideClick: { type: Boolean },
77262
+ isResetFocus: { type: Boolean },
77259
77263
  items: {},
77260
77264
  defaultIndex: { default: 0 }
77261
77265
  },
@@ -111499,6 +111503,7 @@ const RsI = /* @__PURE__ */ lg({
111499
111503
  width: { default: "650px" },
111500
111504
  height: { default: "auto" },
111501
111505
  disableCloseOnOutsideClick: { type: Boolean },
111506
+ isResetFocus: { type: Boolean },
111502
111507
  dataTestid: {}
111503
111508
  },
111504
111509
  emits: ["unmount-close", "unmount-save"],