@kengic/vue 0.26.6-beta.107 → 0.26.6-beta.109

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/kengic-vue.js +6693 -6783
  2. package/dist/src/component/KgAppSelect/index.hooks.d.ts +3 -3
  3. package/dist/src/component/KgAppSelect/index.store.d.ts +2 -2
  4. package/dist/src/component/KgButton/index.hooks.d.ts +5 -5
  5. package/dist/src/component/KgButton/index.store.d.ts +2 -2
  6. package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +0 -3
  7. package/dist/src/component/KgCanvas/KgCanvas.d.ts +15 -0
  8. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +1 -4
  9. package/dist/src/component/KgCanvas/index.event.d.ts +225 -0
  10. package/dist/src/component/KgCanvas/index.hooks.d.ts +18 -13
  11. package/dist/src/component/KgCanvas/index.store.d.ts +0 -229
  12. package/dist/src/component/KgCanvas/index.vm.d.ts +4 -0
  13. package/dist/src/component/KgForm/index.hooks.d.ts +8 -8
  14. package/dist/src/component/KgForm/index.store.d.ts +2 -2
  15. package/dist/src/component/KgSearch/index.hooks.d.ts +4 -4
  16. package/dist/src/component/KgSearch/index.store.d.ts +2 -2
  17. package/dist/src/component/KgSubmit/index.hooks.d.ts +11 -11
  18. package/dist/src/component/KgSubmit/index.store.d.ts +1 -1
  19. package/dist/src/component/KgTable/index.hooks.d.ts +11 -11
  20. package/dist/src/component/KgTable/index.store.d.ts +2 -2
  21. package/dist/src/component/KgVar/index.hooks.d.ts +2 -2
  22. package/dist/src/component/KgVar/index.store.d.ts +2 -2
  23. package/dist/src/component/KgWarehouse/index.hooks.d.ts +2 -2
  24. package/dist/src/const/index.vm.d.ts +3 -3
  25. package/dist/src/const/injection-keys.const.d.ts +2 -0
  26. package/dist/src/util/index.d.ts +36 -0
  27. package/dist/src/util/kg.util.d.ts +6 -0
  28. package/package.json +2 -2
  29. package/dist/src/component/util.d.ts +0 -14
  30. /package/dist/{close-outlined-DMcSQWxQ.f4169f3c.mjs → close-outlined-DMcSQWxQ.28ef3d50.mjs} +0 -0
  31. /package/dist/{fullscreen-exit-outlined-X1iYkFc4.509a6c28.mjs → fullscreen-exit-outlined-X1iYkFc4.769dc9a7.mjs} +0 -0
  32. /package/dist/{fullscreen-outlined-DDBrsRcy.b948f373.mjs → fullscreen-outlined-DDBrsRcy.472a314c.mjs} +0 -0
@@ -1,4 +1,40 @@
1
+ import { IKgEventListener, IRemoveEventListener } from '../const';
1
2
  export * from './kg-auth.util';
2
3
  export * from './kg.util';
3
4
  export * from './kg-route.util';
4
5
  export * from './kg-var.util';
6
+ /**
7
+ * 构造事件监听.
8
+ * @param formID 界面标识.
9
+ * @param store 状态管理.
10
+ * @param event 事件名称.
11
+ */
12
+ export declare function onEventFactory<S extends {
13
+ addEventListener(formID: string, event: E, listener: L): void;
14
+ removeEventListener(formID: string, event: E, listener?: L): void;
15
+ } | {
16
+ addEventListener(event: E, listener: L): void;
17
+ removeEventListener(event: E, listener?: L): void;
18
+ } = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (listener: L, isOnce?: boolean) => IRemoveEventListener;
19
+ /**
20
+ * 构造事件监听.
21
+ *
22
+ * @param param.addEventListener 添加事件监听.
23
+ * @param param.event 事件名称.
24
+ * @param param.id 唯一标识.
25
+ * @param param.removeEventListener 移除事件监听.
26
+ */
27
+ export declare function onEventFactory2<E = any, L extends IKgEventListener = any>(param: {
28
+ addEventListener: (param: {
29
+ event: E;
30
+ id?: string | undefined;
31
+ listener: L;
32
+ }) => void;
33
+ event: E;
34
+ id?: string | undefined;
35
+ removeEventListener: (param: {
36
+ event: E;
37
+ id?: string | undefined;
38
+ listener: L;
39
+ }) => void;
40
+ }): (listener: L, isOnce?: boolean) => IRemoveEventListener;
@@ -141,6 +141,12 @@ export declare class KgUtil {
141
141
  * @return UUID.
142
142
  */
143
143
  static uuid(): string;
144
+ /**
145
+ * 获取一个 UUID.
146
+ *
147
+ * @return UUID.
148
+ */
149
+ static id(): string;
144
150
  }
145
151
  export declare type ModalFunc = {
146
152
  destroy: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.6-beta.107",
3
+ "version": "0.26.6-beta.109",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
@@ -39,7 +39,7 @@
39
39
  "@iconify-icons/mdi": "1.2.48",
40
40
  "@iconify-icons/ph": "1.2.5",
41
41
  "@iconify/vue": "4.1.2",
42
- "@kengic/core": "6.0.1-beta.120",
42
+ "@kengic/core": "6.0.1-beta.122",
43
43
  "@kengic/pont": "1.2.17-beta.1",
44
44
  "@rys-fe/vite-plugin-theme": "0.8.6",
45
45
  "@thymine/xunee": "0.4.9-beta.8",
@@ -1,14 +0,0 @@
1
- import { IKgEventListener, IRemoveEventListenerHandler } from '../const';
2
- /**
3
- * 构造事件监听.
4
- * @param formID 界面标识.
5
- * @param store 状态管理.
6
- * @param event 事件名称.
7
- */
8
- export declare function onEventFactory<S extends {
9
- addEventListener(formID: string, event: E, listener: L): void;
10
- removeEventListener(formID: string, event: E, listener?: L): void;
11
- } | {
12
- addEventListener(event: E, listener: L): void;
13
- removeEventListener(event: E, listener?: L): void;
14
- } = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (listener: L, isOnce?: boolean) => IRemoveEventListenerHandler;