@namba_one/ui-kit-2 1.0.87 → 1.0.89
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/dist/index.d.ts +4 -1
- package/dist/index.es.js +25 -19
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1352,6 +1352,7 @@ export declare type DatepickerFilterValue = FilterValueBase<Date[]>;
|
|
|
1352
1352
|
declare type DatepickerProps = {
|
|
1353
1353
|
value: Date[];
|
|
1354
1354
|
disabledDates?: VueDatePickerProps['disabledDates'];
|
|
1355
|
+
isIgnoreClickOutside?: boolean;
|
|
1355
1356
|
};
|
|
1356
1357
|
|
|
1357
1358
|
declare const _default: DefineComponent<DatepickerFilterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -2276,7 +2277,9 @@ export declare function useCopyToBuffer(options?: {
|
|
|
2276
2277
|
copy: (text: string) => void;
|
|
2277
2278
|
};
|
|
2278
2279
|
|
|
2279
|
-
export declare function useDropdown(
|
|
2280
|
+
export declare function useDropdown(params?: {
|
|
2281
|
+
ignoredElements?: HTMLElement[];
|
|
2282
|
+
}): {
|
|
2280
2283
|
isShowDropdown: Readonly<Ref<boolean, boolean>>;
|
|
2281
2284
|
setIsShowDropdown: (newState: boolean) => void;
|
|
2282
2285
|
toggleIsShowDropdown: () => void;
|
package/dist/index.es.js
CHANGED
|
@@ -9569,30 +9569,34 @@ function eg({
|
|
|
9569
9569
|
align: "center"
|
|
9570
9570
|
};
|
|
9571
9571
|
}
|
|
9572
|
-
function ds() {
|
|
9573
|
-
const [
|
|
9574
|
-
var
|
|
9575
|
-
return (
|
|
9572
|
+
function ds(a) {
|
|
9573
|
+
const [e, t] = el(!1), n = H(null), r = H(null), s = P(() => {
|
|
9574
|
+
var l;
|
|
9575
|
+
return (l = r.value) != null && l.$el ? r.value.$el : r.value;
|
|
9576
9576
|
});
|
|
9577
|
-
function
|
|
9578
|
-
|
|
9577
|
+
function i() {
|
|
9578
|
+
t(!e.value);
|
|
9579
9579
|
}
|
|
9580
9580
|
za(() => {
|
|
9581
|
-
document.removeEventListener("keydown",
|
|
9582
|
-
}), ti(
|
|
9583
|
-
ignore: [
|
|
9581
|
+
document.removeEventListener("keydown", o);
|
|
9582
|
+
}), ti(s, () => t(!1), {
|
|
9583
|
+
ignore: [
|
|
9584
|
+
"[data-ignore-click-outside]",
|
|
9585
|
+
n.value,
|
|
9586
|
+
...(a == null ? void 0 : a.ignoredElements) ?? []
|
|
9587
|
+
]
|
|
9584
9588
|
});
|
|
9585
|
-
function
|
|
9586
|
-
|
|
9589
|
+
function o(l) {
|
|
9590
|
+
l.key === "Escape" && t(!1);
|
|
9587
9591
|
}
|
|
9588
|
-
return Ke(
|
|
9589
|
-
|
|
9592
|
+
return Ke(e, (l) => {
|
|
9593
|
+
l ? document.addEventListener("keydown", o, { passive: !0 }) : document.removeEventListener("keydown", o);
|
|
9590
9594
|
}), {
|
|
9591
|
-
isShowDropdown:
|
|
9592
|
-
setIsShowDropdown:
|
|
9593
|
-
toggleIsShowDropdown:
|
|
9594
|
-
triggerElementRef:
|
|
9595
|
-
parentElementRef:
|
|
9595
|
+
isShowDropdown: e,
|
|
9596
|
+
setIsShowDropdown: t,
|
|
9597
|
+
toggleIsShowDropdown: i,
|
|
9598
|
+
triggerElementRef: r,
|
|
9599
|
+
parentElementRef: n
|
|
9596
9600
|
};
|
|
9597
9601
|
}
|
|
9598
9602
|
const yl = Symbol(), N$ = () => sr(
|
|
@@ -18221,7 +18225,8 @@ const V1 = /* @__PURE__ */ he({
|
|
|
18221
18225
|
__name: "Datepicker",
|
|
18222
18226
|
props: /* @__PURE__ */ Lt({
|
|
18223
18227
|
value: {},
|
|
18224
|
-
disabledDates: { type: [Array, Function] }
|
|
18228
|
+
disabledDates: { type: [Array, Function] },
|
|
18229
|
+
isIgnoreClickOutside: { type: Boolean }
|
|
18225
18230
|
}, {
|
|
18226
18231
|
value: {
|
|
18227
18232
|
required: !0
|
|
@@ -18552,6 +18557,7 @@ const qr = /* @__PURE__ */ Mh(j1), G1 = /* @__PURE__ */ he({
|
|
|
18552
18557
|
props: {
|
|
18553
18558
|
value: {},
|
|
18554
18559
|
disabledDates: { type: [Array, Function] },
|
|
18560
|
+
isIgnoreClickOutside: { type: Boolean },
|
|
18555
18561
|
action: { default: "clear" }
|
|
18556
18562
|
},
|
|
18557
18563
|
emits: ["update:value", "close", "clear"],
|