@kengic/vue 0.26.7-beta.5 → 0.26.7-beta.51

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ const t = {
2
+ width: 1024,
3
+ height: 1024,
4
+ body: '<path fill="currentColor" d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1c-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"/>'
5
+ };
6
+ export {
7
+ t as default
8
+ };
@@ -132,7 +132,6 @@ export declare const getProps: () => {
132
132
  };
133
133
  okButtonProps: PropType<Partial<ExtractPropTypes<{
134
134
  prefixCls: StringConstructor;
135
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
136
135
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
137
136
  htmlType: {
138
137
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -175,13 +174,12 @@ export declare const getProps: () => {
175
174
  onClick: {
176
175
  type: PropType<(event: MouseEvent) => void>;
177
176
  };
178
- onMousedown: {
177
+ onMouseDown: {
179
178
  type: PropType<(event: MouseEvent) => void>;
180
179
  };
181
180
  }>>>;
182
181
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
183
182
  prefixCls: StringConstructor;
184
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
185
183
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
186
184
  htmlType: {
187
185
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -224,7 +222,7 @@ export declare const getProps: () => {
224
222
  onClick: {
225
223
  type: PropType<(event: MouseEvent) => void>;
226
224
  };
227
- onMousedown: {
225
+ onMouseDown: {
228
226
  type: PropType<(event: MouseEvent) => void>;
229
227
  };
230
228
  }>>>;
@@ -265,7 +263,7 @@ export declare const getProps: () => {
265
263
  originVNode: import("ant-design-vue/es/_util/type").VueNode;
266
264
  }) => import("ant-design-vue/es/_util/type").VueNode>;
267
265
  };
268
- export declare type IKgModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
266
+ export declare type KgModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
269
267
  declare const _default: import("vue").DefineComponent<{
270
268
  /**
271
269
  * 高度是否撑满屏幕.
@@ -398,7 +396,6 @@ declare const _default: import("vue").DefineComponent<{
398
396
  };
399
397
  okButtonProps: PropType<Partial<ExtractPropTypes<{
400
398
  prefixCls: StringConstructor;
401
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
402
399
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
403
400
  htmlType: {
404
401
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -441,13 +438,12 @@ declare const _default: import("vue").DefineComponent<{
441
438
  onClick: {
442
439
  type: PropType<(event: MouseEvent) => void>;
443
440
  };
444
- onMousedown: {
441
+ onMouseDown: {
445
442
  type: PropType<(event: MouseEvent) => void>;
446
443
  };
447
444
  }>>>;
448
445
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
449
446
  prefixCls: StringConstructor;
450
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
451
447
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
452
448
  htmlType: {
453
449
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -490,7 +486,7 @@ declare const _default: import("vue").DefineComponent<{
490
486
  onClick: {
491
487
  type: PropType<(event: MouseEvent) => void>;
492
488
  };
493
- onMousedown: {
489
+ onMouseDown: {
494
490
  type: PropType<(event: MouseEvent) => void>;
495
491
  };
496
492
  }>>>;
@@ -662,7 +658,6 @@ declare const _default: import("vue").DefineComponent<{
662
658
  };
663
659
  okButtonProps: PropType<Partial<ExtractPropTypes<{
664
660
  prefixCls: StringConstructor;
665
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
666
661
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
667
662
  htmlType: {
668
663
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -705,13 +700,12 @@ declare const _default: import("vue").DefineComponent<{
705
700
  onClick: {
706
701
  type: PropType<(event: MouseEvent) => void>;
707
702
  };
708
- onMousedown: {
703
+ onMouseDown: {
709
704
  type: PropType<(event: MouseEvent) => void>;
710
705
  };
711
706
  }>>>;
712
707
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
713
708
  prefixCls: StringConstructor;
714
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
715
709
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
716
710
  htmlType: {
717
711
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -754,7 +748,7 @@ declare const _default: import("vue").DefineComponent<{
754
748
  onClick: {
755
749
  type: PropType<(event: MouseEvent) => void>;
756
750
  };
757
- onMousedown: {
751
+ onMouseDown: {
758
752
  type: PropType<(event: MouseEvent) => void>;
759
753
  };
760
754
  }>>>;
@@ -1,5 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { IKgModalProps } from '../KgModal';
2
+ import { KgModalProps } from '../KgModal';
3
+ declare type HandleType = 'top-left' | 'top' | 'top-right' | 'right' | 'bottom-right' | 'bottom' | 'bottom-left' | 'left';
3
4
  /**
4
5
  * 拖拽改变大小.
5
6
  *
@@ -8,9 +9,8 @@ import { IKgModalProps } from '../KgModal';
8
9
  * @param param.getProps 计算后的组件参数.
9
10
  */
10
11
  export declare function useDragToResize(param: {
11
- props: IKgModalProps;
12
12
  domRef: Ref<HTMLDivElement | null>;
13
- getProps: Ref<IKgModalProps>;
13
+ getProps: Ref<KgModalProps>;
14
14
  }): {
15
15
  /**
16
16
  * 鼠标按下事件.
@@ -18,12 +18,9 @@ export declare function useDragToResize(param: {
18
18
  * @param param.event 鼠标事件对象.
19
19
  * @param param.handleType 拖拽位置.
20
20
  */
21
- onMousedown: (param: {
21
+ onMouseDown: (param: {
22
22
  event: MouseEvent;
23
- handleType: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
23
+ handleType: HandleType;
24
24
  }) => void;
25
- /**
26
- * 弹窗宽度.
27
- */
28
- width: Ref<string | number>;
29
25
  };
26
+ export {};
@@ -1 +1 @@
1
- export { default as KgModal, type IKgModalProps } from './KgModal';
1
+ export { default as KgModal, type KgModalProps } from './KgModal';
@@ -6,7 +6,6 @@ export * from './KgModal';
6
6
  export * from './KgProgressA';
7
7
  export * from './KgResizable';
8
8
  export * from './KgSearch';
9
- export * from './KgStation';
10
9
  export * from './KgSubmit';
11
10
  export * from './KgTable';
12
11
  export * from './KgVar';
@@ -103,14 +103,6 @@ declare const _default: {
103
103
  formTitle: string;
104
104
  pleaseSelectVarProfileMaster: string;
105
105
  };
106
- KgStation: {
107
- reloadMessage: string;
108
- selectStation: string;
109
- station: string;
110
- title: string;
111
- workArea: string;
112
- workStation: string;
113
- };
114
106
  KgTable: {
115
107
  apiNotSupportDynamicQuery: string;
116
108
  column: string;
@@ -103,14 +103,6 @@ declare const _default: {
103
103
  formTitle: string;
104
104
  pleaseSelectVarProfileMaster: string;
105
105
  };
106
- KgStation: {
107
- reloadMessage: string;
108
- selectStation: string;
109
- station: string;
110
- title: string;
111
- workArea: string;
112
- workStation: string;
113
- };
114
106
  KgTable: {
115
107
  apiNotSupportDynamicQuery: string;
116
108
  column: string;
@@ -103,14 +103,6 @@ declare const _default: {
103
103
  formTitle: string;
104
104
  pleaseSelectVarProfileMaster: string;
105
105
  };
106
- KgStation: {
107
- reloadMessage: string;
108
- selectStation: string;
109
- station: string;
110
- title: string;
111
- workArea: string;
112
- workStation: string;
113
- };
114
106
  KgTable: {
115
107
  apiNotSupportDynamicQuery: string;
116
108
  column: string;
@@ -103,14 +103,6 @@ declare const _default: {
103
103
  formTitle: string;
104
104
  pleaseSelectVarProfileMaster: string;
105
105
  };
106
- KgStation: {
107
- reloadMessage: string;
108
- selectStation: string;
109
- station: string;
110
- title: string;
111
- workArea: string;
112
- workStation: string;
113
- };
114
106
  KgTable: {
115
107
  apiNotSupportDynamicQuery: string;
116
108
  column: string;
@@ -103,14 +103,6 @@ declare const _default: {
103
103
  formTitle: string;
104
104
  pleaseSelectVarProfileMaster: string;
105
105
  };
106
- KgStation: {
107
- reloadMessage: string;
108
- selectStation: string;
109
- station: string;
110
- title: string;
111
- workArea: string;
112
- workStation: string;
113
- };
114
106
  KgTable: {
115
107
  apiNotSupportDynamicQuery: string;
116
108
  column: string;
@@ -103,14 +103,6 @@ declare const _default: {
103
103
  formTitle: string;
104
104
  pleaseSelectVarProfileMaster: string;
105
105
  };
106
- KgStation: {
107
- reloadMessage: string;
108
- selectStation: string;
109
- station: string;
110
- title: string;
111
- workArea: string;
112
- workStation: string;
113
- };
114
106
  KgTable: {
115
107
  apiNotSupportDynamicQuery: string;
116
108
  column: string;
@@ -104,14 +104,6 @@ declare const _default: {
104
104
  formTitle: string;
105
105
  pleaseSelectVarProfileMaster: string;
106
106
  };
107
- KgStation: {
108
- reloadMessage: string;
109
- selectStation: string;
110
- station: string;
111
- title: string;
112
- workArea: string;
113
- workStation: string;
114
- };
115
107
  KgTable: {
116
108
  apiNotSupportDynamicQuery: string;
117
109
  column: string;
@@ -494,7 +494,7 @@ export declare enum KG_HTTP_HEADERS {
494
494
  /**
495
495
  * 工作区.
496
496
  */
497
- KG_WORK_AREA = "Kg-Work-Area"
497
+ KG_WORK_STATION_AREA = "Kg-Work-Area"
498
498
  }
499
499
  /** 特殊属性:请求返回的原始响应数据. */
500
500
  export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
@@ -224,7 +224,7 @@ export declare const modalProps: () => {
224
224
  onClick: {
225
225
  type: PropType<(event: MouseEvent) => void>;
226
226
  };
227
- onMousedown: {
227
+ onMouseDown: {
228
228
  type: PropType<(event: MouseEvent) => void>;
229
229
  };
230
230
  }>>>;
@@ -272,7 +272,7 @@ export declare const modalProps: () => {
272
272
  onClick: {
273
273
  type: PropType<(event: MouseEvent) => void>;
274
274
  };
275
- onMousedown: {
275
+ onMouseDown: {
276
276
  type: PropType<(event: MouseEvent) => void>;
277
277
  };
278
278
  }>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.7-beta.5",
3
+ "version": "0.26.7-beta.51",
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",
@@ -14,17 +14,16 @@
14
14
  "publish:minor": "npm run bump:minor && tsx script/publish.ts",
15
15
  "publish:patch": "npm run bump:patch && tsx script/publish.ts",
16
16
  "publish:beta": "npm run bump:beta && tsx script/publish.ts",
17
+ "------- ------------------------------------------": "",
18
+ "copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
19
+ "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
17
20
  "----- --------------------------------------------": "",
18
21
  "bump:major": "npm run use-node && tsx script/bump.ts major",
19
22
  "bump:minor": "npm run use-node && tsx script/bump.ts minor",
20
23
  "bump:patch": "npm run use-node && tsx script/bump.ts patch",
21
24
  "bump:beta": "npm run use-node && tsx script/bump.ts beta",
22
25
  "---- ---------------------------------------------": "",
23
- "publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
24
- "------- ------------------------------------------": "",
25
- "copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
26
- "--- ----------------------------------------------": "",
27
- "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
26
+ "publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
28
27
  },
29
28
  "peerDependencies": {
30
29
  "vue": "3.2.43"
@@ -40,7 +39,7 @@
40
39
  "@iconify-icons/ph": "1.2.5",
41
40
  "@iconify/vue": "4.1.2",
42
41
  "@kengic/core.core": "0.0.1-beta.19",
43
- "@kengic/core.react": "0.0.1-beta.27",
42
+ "@kengic/core.react": "0.0.1-beta.80",
44
43
  "@kengic/pont": "1.2.17-beta.1",
45
44
  "@rys-fe/vite-plugin-theme": "0.8.6",
46
45
  "@thymine/xunee": "0.4.9-beta.8",
@@ -1,47 +0,0 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgStation.less';
3
- export declare const getProps: () => {
4
- /**
5
- * <p>是否隐藏.</p>
6
- * <p>此组件需要在不同的地方使用,</p>
7
- * <ul>
8
- * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
9
- * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
10
- * </ul>
11
- *
12
- * @default undefined
13
- */
14
- kgInvisible: PropType<boolean>;
15
- onKgOk: PropType<() => void>;
16
- };
17
- export declare type KgStationProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
18
- declare const _default: import("vue").DefineComponent<{
19
- /**
20
- * <p>是否隐藏.</p>
21
- * <p>此组件需要在不同的地方使用,</p>
22
- * <ul>
23
- * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
24
- * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
25
- * </ul>
26
- *
27
- * @default undefined
28
- */
29
- kgInvisible: PropType<boolean>;
30
- onKgOk: PropType<() => void>;
31
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
32
- /**
33
- * <p>是否隐藏.</p>
34
- * <p>此组件需要在不同的地方使用,</p>
35
- * <ul>
36
- * <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
37
- * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
38
- * </ul>
39
- *
40
- * @default undefined
41
- */
42
- kgInvisible: PropType<boolean>;
43
- onKgOk: PropType<() => void>;
44
- }>> & {
45
- onKgOk?: ((...args: any[]) => any) | undefined;
46
- }, {}>;
47
- export default _default;
@@ -1,3 +0,0 @@
1
- export { default as KgStation } from './KgStation';
2
- export * from './index.hooks';
3
- export * from './index.store';
@@ -1,29 +0,0 @@
1
- import { Pinia } from 'pinia';
2
- import { ComputedRef } from 'vue';
3
- import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models';
4
- import { IKgStationStore } from './index.store';
5
- export declare type IUseKgStation = {
6
- /**
7
- * 当前工作区.
8
- */
9
- area: ComputedRef<WorkstationAreaDTO | null>;
10
- /**
11
- * 当前工作站.
12
- */
13
- station: ComputedRef<WorkstationDTO | null>;
14
- /**
15
- * 所有工作站.
16
- */
17
- stations: ComputedRef<IKgStationStore['getStations']>;
18
- store: IKgStationStore;
19
- /**
20
- * 是否显示弹窗.
21
- */
22
- visible: ComputedRef<IKgStationStore['getVisible']>;
23
- };
24
- /**
25
- * 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
26
- *
27
- * @param pinia
28
- */
29
- export declare function useKgStation(pinia?: Pinia): IUseKgStation;
@@ -1,45 +0,0 @@
1
- import { StoreDefinition } from 'pinia';
2
- import { WorkstationDTO } from '../../api/WMS/models';
3
- export interface IUseKgStationStoreState {
4
- /**
5
- * 当前工作站.
6
- */
7
- station: WorkstationDTO | null;
8
- /**
9
- * 所有工作站.
10
- */
11
- stations: Array<WorkstationDTO> | undefined;
12
- /**
13
- * 是否显示弹窗.
14
- */
15
- visible: boolean;
16
- }
17
- export interface IUseKgStationStoreGetters {
18
- getStation: WorkstationDTO | null;
19
- getStations: Array<WorkstationDTO> | undefined;
20
- /**
21
- * 是否显示弹窗.
22
- */
23
- getVisible: boolean;
24
- }
25
- export interface IUseKgStationStoreActions {
26
- /**
27
- * 查询所有工作站.
28
- */
29
- requestStations(): Promise<void>;
30
- /**
31
- * 设置当前工作站.
32
- *
33
- * @param station 当前工作站.
34
- */
35
- setStation(station?: WorkstationDTO | null): void;
36
- /**
37
- * 设置是否显示弹窗.
38
- *
39
- * @param visible 是否显示.
40
- */
41
- setVisible(visible: boolean): void;
42
- }
43
- export declare type IUseKgStationStore = StoreDefinition<'KgStation', IUseKgStationStoreState, IUseKgStationStoreGetters, IUseKgStationStoreActions>;
44
- export declare type IKgStationStore = ReturnType<IUseKgStationStore>;
45
- export declare const useKgStationStore: IUseKgStationStore;