lew-ui 2.7.32 → 2.7.35

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 lew
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 lew
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, shallowRef, onMounted, nextTick, onBeforeUnmount, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, normalizeStyle, createCommentVNode, createVNode, createApp, h, defineAsyncComponent } from "vue";
2
- import { c as contextMenuProps, g as getUniqueId, L as LewFlex, C as CommonIcon, _ as _sfc_main$1, a as LewEmpty, i as isFunction, b as initLewContextMenu, t as tippy, d as _export_sfc } from "./index-Cue9CPcJ.js";
2
+ import { c as contextMenuProps, g as getUniqueId, L as LewFlex, C as CommonIcon, _ as _sfc_main$1, a as LewEmpty, i as isFunction, b as initLewContextMenu, t as tippy, d as _export_sfc } from "./index-CdEIRJoH.js";
3
3
  const contextMenuEmits = {
4
4
  change: (item) => item
5
5
  };
@@ -35,7 +35,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  return proxy;
36
36
  }
37
37
  function clickItem(item) {
38
- if (item.disabled) return;
38
+ if (item.disabled)
39
+ return;
39
40
  const instance = props.dropdownInstance || window.LewContextMenu?.instance || null;
40
41
  if (isFunction(item.onClick)) {
41
42
  try {
@@ -208,7 +209,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
208
209
  };
209
210
  }
210
211
  });
211
- const LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8caf1ded"]]);
212
+ const LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-07a78cb9"]]);
212
213
  const LewContextMenu$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
213
214
  __proto__: null,
214
215
  default: LewContextMenu
@@ -321,10 +321,7 @@ declare function __VLS_template(): {
321
321
  type: PropType<() => Promise<void>>;
322
322
  validator: (value: any) => boolean;
323
323
  };
324
- }>> & Readonly<{}>, {
325
- focus: () => void;
326
- blur: () => void;
327
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
324
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
328
325
  loading: boolean;
329
326
  type: import('../../../..').LewButtonType;
330
327
  color: LewColor;
@@ -418,10 +415,7 @@ declare function __VLS_template(): {
418
415
  type: PropType<() => Promise<void>>;
419
416
  validator: (value: any) => boolean;
420
417
  };
421
- }>> & Readonly<{}>, "blur" | "focus" | ("loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed")> & import('vue').ShallowUnwrapRef<{
422
- focus: () => void;
423
- blur: () => void;
424
- }> & {} & import('vue').ComponentCustomProperties & {} & {
418
+ }>> & Readonly<{}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
425
419
  $slots: {
426
420
  default?(_: {}): any;
427
421
  };
@@ -877,10 +871,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
877
871
  type: PropType<() => Promise<void>>;
878
872
  validator: (value: any) => boolean;
879
873
  };
880
- }>> & Readonly<{}>, {
881
- focus: () => void;
882
- blur: () => void;
883
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
874
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
884
875
  loading: boolean;
885
876
  type: import('../../../..').LewButtonType;
886
877
  color: LewColor;
@@ -974,10 +965,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
974
965
  type: PropType<() => Promise<void>>;
975
966
  validator: (value: any) => boolean;
976
967
  };
977
- }>> & Readonly<{}>, "blur" | "focus" | ("loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed")> & import('vue').ShallowUnwrapRef<{
978
- focus: () => void;
979
- blur: () => void;
980
- }> & {} & import('vue').ComponentCustomProperties & {} & {
968
+ }>> & Readonly<{}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
981
969
  $slots: {
982
970
  default?(_: {}): any;
983
971
  };
@@ -1,5 +1,3 @@
1
- declare function focus(): void;
2
- declare function blur(): void;
3
1
  declare function __VLS_template(): {
4
2
  attrs: Partial<{}>;
5
3
  slots: {
@@ -67,10 +65,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
67
65
  type: PropType<() => Promise<void>>;
68
66
  validator: (value: any) => boolean;
69
67
  };
70
- }>, {
71
- focus: typeof focus;
72
- blur: typeof blur;
73
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
68
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
74
69
  text: {
75
70
  type: StringConstructor;
76
71
  validator: (value: any) => boolean;
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
8
8
  right?(_: {}): any;
9
9
  };
10
10
  refs: {};
11
- rootEl: any;
11
+ rootEl: HTMLDivElement;
12
12
  };
13
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
14
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
@@ -49,12 +49,20 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
49
49
  default: boolean;
50
50
  validator: (value: any) => boolean;
51
51
  };
52
+ closeable: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ validator: (value: any) => boolean;
56
+ };
52
57
  close: {
53
58
  type: PropType<() => Promise<boolean>>;
54
59
  default: undefined;
55
60
  validator: (value: any) => boolean;
56
61
  };
57
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
62
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
63
+ click: (event: MouseEvent) => void;
64
+ close: () => void;
65
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
58
66
  text: {
59
67
  type: StringConstructor;
60
68
  validator: (value: any) => boolean;
@@ -92,20 +100,29 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
92
100
  default: boolean;
93
101
  validator: (value: any) => boolean;
94
102
  };
103
+ closeable: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ validator: (value: any) => boolean;
107
+ };
95
108
  close: {
96
109
  type: PropType<() => Promise<boolean>>;
97
110
  default: undefined;
98
111
  validator: (value: any) => boolean;
99
112
  };
100
- }>> & Readonly<{}>, {
113
+ }>> & Readonly<{
114
+ onClick?: ((event: MouseEvent) => any) | undefined;
115
+ onClose?: (() => any) | undefined;
116
+ }>, {
101
117
  type: LewTagType;
102
118
  color: string;
103
119
  size: LewSize;
104
120
  round: boolean;
105
121
  oversize: boolean;
106
122
  disabled: boolean;
123
+ closeable: boolean;
107
124
  close: () => Promise<boolean>;
108
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
125
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
109
126
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
110
127
  export default _default;
111
128
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -39,6 +39,11 @@ export declare const tagProps: {
39
39
  default: boolean;
40
40
  validator: (value: any) => boolean;
41
41
  };
42
+ closeable: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ validator: (value: any) => boolean;
46
+ };
42
47
  close: {
43
48
  type: PropType<() => Promise<boolean>>;
44
49
  default: undefined;