@qqt-product/ui 16.0.5 → 17.0.0

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.
Files changed (74) hide show
  1. package/dist/index.es.js +23832 -24625
  2. package/dist/index.umd.js +109 -109
  3. package/dist/lib/components/audit-modal/src/hook/use-audit-config-hook.d.ts +1 -1
  4. package/dist/lib/components/businessI18n/index.d.ts +2607 -0
  5. package/dist/lib/components/businessI18n/src/business-i18n.vue.d.ts +2604 -0
  6. package/dist/lib/components/card-list-layout/index.d.ts +4 -4
  7. package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +2 -2
  8. package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +2 -2
  9. package/dist/lib/components/card-list-layout/src/index.vue.d.ts +4 -4
  10. package/dist/lib/components/checkbox/index.d.ts +1 -1
  11. package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -0
  12. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
  13. package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +1 -1
  14. package/dist/lib/components/countdown/index.d.ts +1 -1
  15. package/dist/lib/components/countdown/src/countdown.d.ts +1 -1
  16. package/dist/lib/components/currency/index.d.ts +2 -2
  17. package/dist/lib/components/currency/src/currency.vue.d.ts +2 -2
  18. package/dist/lib/components/detail-form/index.d.ts +2 -2
  19. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +2 -2
  20. package/dist/lib/components/detail-grid/index.d.ts +20 -2
  21. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +21 -3
  22. package/dist/lib/components/detail-page-layout/index.d.ts +1 -0
  23. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +1 -0
  24. package/dist/lib/components/edit-form/index.d.ts +1 -1
  25. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +1 -1
  26. package/dist/lib/components/edit-grid/index.d.ts +20 -2
  27. package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +9 -1
  28. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +20 -2
  29. package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +1 -0
  30. package/dist/lib/components/edit-page-layout/index.d.ts +1 -0
  31. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +30 -17
  32. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +1 -0
  33. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
  34. package/dist/lib/components/empty/index.d.ts +2 -2
  35. package/dist/lib/components/index.d.ts +4 -2
  36. package/dist/lib/components/layout/index.d.ts +0 -33
  37. package/dist/lib/components/layout/src/index.vue.d.ts +0 -33
  38. package/dist/lib/components/layout-pattern/index.d.ts +1 -0
  39. package/dist/lib/components/layout-pattern/src/components/tab.vue.d.ts +1 -0
  40. package/dist/lib/components/layout-pattern/src/components/tabDetail.vue.d.ts +1 -0
  41. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +1 -0
  42. package/dist/lib/components/menu/src/index.d.ts +1 -1
  43. package/dist/lib/components/multipane/index.d.ts +50 -0
  44. package/dist/lib/components/multipaneResizer/index.d.ts +42 -0
  45. package/dist/lib/components/page-layout/index.d.ts +5 -5
  46. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +2 -0
  47. package/dist/lib/components/page-layout/src/hook/use-audit-button.d.ts +2 -2
  48. package/dist/lib/components/page-layout/src/hook/use-excel-import.d.ts +1 -1
  49. package/dist/lib/components/page-layout/src/hook/use-file-upload.d.ts +3 -3
  50. package/dist/lib/components/page-layout/src/hook/use-grid-events.d.ts +3 -1
  51. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +1 -1
  52. package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +5 -5
  53. package/dist/lib/components/radio/index.d.ts +1 -1
  54. package/dist/lib/components/radio/src/radio.vue.d.ts +1 -1
  55. package/dist/lib/components/relation-graph/src/relation-graph.vue.d.ts +2 -34
  56. package/dist/lib/components/select/index.d.ts +1 -1
  57. package/dist/lib/components/select/src/select.vue.d.ts +1 -1
  58. package/dist/lib/components/upload-file/index.d.ts +1 -1
  59. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +1 -1
  60. package/dist/lib/components/upload-image/index.d.ts +38 -6
  61. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +36 -5
  62. package/dist/lib/utils/event.d.ts +4 -2
  63. package/dist/style.css +1 -1
  64. package/package.json +14 -14
  65. package/dist/lib/components/ladder-price/index.d.ts +0 -85
  66. package/dist/lib/components/ladder-price/src/LadderNotPriceModal.vue.d.ts +0 -41
  67. package/dist/lib/components/ladder-price/src/LadderPriceModal.vue.d.ts +0 -42
  68. package/dist/lib/components/ladder-price/src/hook/use-type-hook.d.ts +0 -9
  69. package/dist/lib/components/ladder-price/src/ladder-not-price-modal-types.d.ts +0 -16
  70. package/dist/lib/components/ladder-price/src/ladder-price-modal-types.d.ts +0 -15
  71. package/dist/lib/components/ladder-price/src/ladder-price-types.d.ts +0 -43
  72. package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +0 -82
  73. package/dist/lib/components/ladder-price/src/use-ladder-not-price-modal.d.ts +0 -6
  74. package/dist/lib/components/ladder-price/src/use-ladder-price.d.ts +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qqt-product/ui",
3
3
  "private": false,
4
- "version": "16.0.5",
4
+ "version": "17.0.0",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",
7
7
  "type": "module",
@@ -22,16 +22,16 @@
22
22
  "@codemirror/language": "6.10.1",
23
23
  "@codemirror/state": "6.4.1",
24
24
  "@codemirror/view": "6.24.1",
25
- "@qqt-product/api": "16.0.1",
26
- "@qqt-product/icons": "16.0.1",
27
- "@qqt-product/utils": "16.0.1",
25
+ "@qqt-product/api": "17.0.0",
26
+ "@qqt-product/icons": "17.0.0",
27
+ "@qqt-product/utils": "17.0.0",
28
28
  "@types/echarts": "^4.9.21",
29
+ "@types/lodash-es": "^4.17.8",
29
30
  "@types/node": "^18.11.4",
30
31
  "@types/sortablejs": "^1.15.1",
31
32
  "@types/tinymce": "^4.6.5",
32
33
  "@typescript-eslint/eslint-plugin": "^5.40.0",
33
34
  "@typescript-eslint/parser": "^5.40.0",
34
- "@types/lodash-es": "^4.17.8",
35
35
  "@vitejs/plugin-vue": "^3.1.0",
36
36
  "@vitejs/plugin-vue-jsx": "^3.0.1",
37
37
  "ant-design-vue": "4.2.6",
@@ -48,7 +48,7 @@
48
48
  "pinia": "^2.0.27",
49
49
  "pinia-plugin-persistedstate": "^3.0.2",
50
50
  "prettier": "^2.7.1",
51
- "relation-graph": "2.0.27",
51
+ "relation-graph-vue3": "^2.2.11",
52
52
  "sass": "1.63.6",
53
53
  "sortablejs": "^1.15.0",
54
54
  "tinymce": "^6.6.0",
@@ -75,15 +75,17 @@
75
75
  "@codemirror/language": "6.10.1",
76
76
  "@codemirror/state": "6.4.1",
77
77
  "@codemirror/view": "6.24.1",
78
- "@qqt-product/api": "16.0.1",
79
- "@qqt-product/icons": "16.0.1",
80
- "@qqt-product/utils": "16.0.1",
78
+ "@qqt-product/api": "17.0.0",
79
+ "@qqt-product/icons": "17.0.0",
80
+ "@qqt-product/utils": "17.0.0",
81
81
  "@types/echarts": "^4.9.21",
82
82
  "@types/sortablejs": "^1.15.1",
83
83
  "@types/tinymce": "^4.6.5",
84
84
  "@vitejs/plugin-vue-jsx": "^3.0.1",
85
+ "@vueuse/core": "10.6.1",
85
86
  "ant-design-vue": "4.2.6",
86
87
  "codemirror": "6.0.1",
88
+ "dayjs": "^1.11.9",
87
89
  "decimal.js": "^10.4.3",
88
90
  "echarts": "5.4.3",
89
91
  "jsencrypt": "^3.3.2",
@@ -91,7 +93,8 @@
91
93
  "mammoth": "^1.6.0",
92
94
  "pinia": "^2.0.27",
93
95
  "pinia-plugin-persistedstate": "^3.0.2",
94
- "relation-graph": "2.0.27",
96
+ "relation-graph-vue3": "^2.2.11",
97
+ "resize-observer-polyfill": "^1.5.1",
95
98
  "sass": "1.63.6",
96
99
  "sortablejs": "^1.15.0",
97
100
  "tinymce": "^6.6.0",
@@ -104,10 +107,7 @@
104
107
  "vxe-table-plugin-menus": "3.0.7",
105
108
  "xe-clipboard": "1.10.2",
106
109
  "xe-utils": "3.5.0",
107
- "zipson": "^0.2.12",
108
- "resize-observer-polyfill": "^1.5.1",
109
- "dayjs": "^1.11.9",
110
- "@vueuse/core": "10.6.1"
110
+ "zipson": "^0.2.12"
111
111
  },
112
112
  "scripts": {
113
113
  "build": "vue-tsc --noEmit && vite build",
@@ -1,85 +0,0 @@
1
- import type { SrmI18n } from '../../utils/type';
2
- import type { RecordString } from '../select-modal';
3
- import type { Config, Row } from './src/ladder-price-types';
4
- import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
- import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
6
- import QLadderPrice from './src/ladder-price.vue';
7
- declare const _default: SFCWithInstall<DefineComponent<{
8
- value: {
9
- type: StringConstructor;
10
- default: string;
11
- };
12
- config: {
13
- type: PropType<Config>;
14
- default: () => {};
15
- };
16
- isRow: {
17
- type: BooleanConstructor;
18
- default: boolean;
19
- };
20
- row: {
21
- type: PropType<Row>;
22
- default(): {};
23
- };
24
- disabled: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- isShowEdit: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- }, {
33
- classes: ComputedRef<{
34
- [x: string]: boolean;
35
- }>;
36
- value: Ref<string>;
37
- config: Ref<Config>;
38
- showModal: () => void;
39
- clearInputValue: () => void;
40
- ladderPriceModal: Ref<any>;
41
- ladderNotPriceModal: Ref<any>;
42
- handleOk: (itemList: RecordString[]) => void;
43
- initRowLadderJson: (jsonData: any) => never[];
44
- getRowLadder: (jsonData: any) => string;
45
- isRebateLadder: boolean;
46
- isQuotePriceLadder: boolean;
47
- isRequestLadder: boolean;
48
- isDemandToOrder: boolean;
49
- isEdit: boolean;
50
- srmI18n: SrmI18n;
51
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
52
- value: {
53
- type: StringConstructor;
54
- default: string;
55
- };
56
- config: {
57
- type: PropType<Config>;
58
- default: () => {};
59
- };
60
- isRow: {
61
- type: BooleanConstructor;
62
- default: boolean;
63
- };
64
- row: {
65
- type: PropType<Row>;
66
- default(): {};
67
- };
68
- disabled: {
69
- type: BooleanConstructor;
70
- default: boolean;
71
- };
72
- isShowEdit: {
73
- type: BooleanConstructor;
74
- default: boolean;
75
- };
76
- }>>, {
77
- value: string;
78
- row: Row;
79
- disabled: boolean;
80
- config: Config;
81
- isRow: boolean;
82
- isShowEdit: boolean;
83
- }, {}>>;
84
- export default _default;
85
- export { QLadderPrice };
@@ -1,41 +0,0 @@
1
- import type { SrmI18n } from '../../../utils/type';
2
- import type { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
- import type { Row } from './ladder-not-price-modal-types';
4
- declare const _sfc_main: DefineComponent<{
5
- isEmit: {
6
- type: BooleanConstructor;
7
- default: boolean;
8
- };
9
- }, {
10
- classes: ComputedRef<{
11
- [x: string]: boolean;
12
- }>;
13
- modalVisible: Ref<boolean>;
14
- ladderQuantity: Ref<number>;
15
- tableData: Ref<Record<string, unknown>[]>;
16
- gridOptions: any;
17
- selectGrid: Ref<any>;
18
- title: Ref<string>;
19
- modalDefault: {
20
- width: number;
21
- showFooter: boolean;
22
- showClose: boolean;
23
- };
24
- currency: Ref<string>;
25
- taxCode: Ref<string>;
26
- taxRate: Ref<string>;
27
- open: ({ row, pageData }: {
28
- row: Row;
29
- pageData: any;
30
- }) => void;
31
- setLadderOk: () => void;
32
- srmI18n: SrmI18n;
33
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
34
- isEmit: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- }>>, {
39
- isEmit: boolean;
40
- }, {}>;
41
- export default _sfc_main;
@@ -1,42 +0,0 @@
1
- import type { SrmI18n } from '../../../utils/type';
2
- import type { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
- import type { Row } from './ladder-price-modal-types';
4
- declare const _sfc_main: DefineComponent<{
5
- isEmit: {
6
- type: BooleanConstructor;
7
- default: boolean;
8
- };
9
- }, {
10
- classes: ComputedRef<{
11
- [x: string]: boolean;
12
- }>;
13
- modalVisible: Ref<boolean>;
14
- ladderQuantity: Ref<number>;
15
- tableData: Ref<Record<string, unknown>[]>;
16
- selectGrid: Ref<any>;
17
- gridOptions: any;
18
- srmI18n: SrmI18n;
19
- modalDefault: {
20
- width: any;
21
- showFooter: boolean;
22
- showClose: boolean;
23
- };
24
- open: ({ pageData, row, columns, value, type }: {
25
- pageData: any;
26
- row: Row;
27
- columns: any;
28
- value: string;
29
- type: string;
30
- }) => void;
31
- addLadderQuantity: () => void;
32
- deleteLadder: () => void;
33
- setLadderOk: () => void;
34
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
35
- isEmit: {
36
- type: BooleanConstructor;
37
- default: boolean;
38
- };
39
- }>>, {
40
- isEmit: boolean;
41
- }, {}>;
42
- export default _sfc_main;
@@ -1,9 +0,0 @@
1
- import type { VxeColumnSlotTypes, VxeTableDataRow } from 'vxe-table';
2
- export default function useType(): {
3
- field: string;
4
- title: string;
5
- width: number;
6
- slots: {
7
- default({ row }: VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>): JSX.Element[];
8
- };
9
- };
@@ -1,16 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- import type { FormFieldsItem } from '../../edit-page-layout';
3
- export interface Columns {
4
- type?: string;
5
- field?: string;
6
- title?: string;
7
- align?: string;
8
- fieldLabelI18nKey?: string;
9
- width?: number;
10
- [key: string]: unknown;
11
- }
12
- export interface Row extends FormFieldsItem {
13
- taxCode: string;
14
- }
15
- export declare const ladderNotPriceModalProps: {};
16
- export type LadderNotPriceModalProps = ExtractPropTypes<typeof ladderNotPriceModalProps>;
@@ -1,15 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- import type { FormFieldsItem } from '../../edit-page-layout';
3
- export interface Columns {
4
- type?: string;
5
- field?: string;
6
- title?: string;
7
- align?: string;
8
- fieldLabelI18nKey?: string;
9
- width?: number;
10
- }
11
- export interface Row extends FormFieldsItem {
12
- taxCode: string;
13
- }
14
- export declare const ladderNotPriceModalProps: {};
15
- export type LadderNotPriceModalProps = ExtractPropTypes<typeof ladderNotPriceModalProps>;
@@ -1,43 +0,0 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import type { FormFieldsItem, RecordString } from '../../edit-page-layout';
3
- export type HandleBefore = (value?: RecordString) => Promise<string | boolean | void>;
4
- export interface Extend {
5
- current?: number;
6
- modalConfigs?: unknown[];
7
- }
8
- export interface Config extends FormFieldsItem {
9
- extend: Extend;
10
- }
11
- export interface Row extends FormFieldsItem {
12
- taxCode: string;
13
- }
14
- export interface Form extends FormFieldsItem {
15
- taxCode: string;
16
- }
17
- export declare const ladderPriceProps: {
18
- value: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- config: {
23
- type: PropType<Config>;
24
- default: () => {};
25
- };
26
- isRow: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- row: {
31
- type: PropType<Row>;
32
- default(): {};
33
- };
34
- disabled: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- isShowEdit: {
39
- type: BooleanConstructor;
40
- default: boolean;
41
- };
42
- };
43
- export type LadderPriceProps = ExtractPropTypes<typeof ladderPriceProps>;
@@ -1,82 +0,0 @@
1
- import type { SrmI18n } from '../../../utils/type';
2
- import type { Config, Row } from './ladder-price-types';
3
- import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
4
- import { RecordString } from '../../edit-page-layout';
5
- declare const _sfc_main: DefineComponent<{
6
- value: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- config: {
11
- type: PropType<Config>;
12
- default: () => {};
13
- };
14
- isRow: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- row: {
19
- type: PropType<Row>;
20
- default(): {};
21
- };
22
- disabled: {
23
- type: BooleanConstructor;
24
- default: boolean;
25
- };
26
- isShowEdit: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- }, {
31
- classes: ComputedRef<{
32
- [x: string]: boolean;
33
- }>;
34
- value: Ref<string>;
35
- config: Ref<Config>;
36
- showModal: () => void;
37
- clearInputValue: () => void;
38
- ladderPriceModal: Ref<any>;
39
- ladderNotPriceModal: Ref<any>;
40
- handleOk: (itemList: RecordString[]) => void;
41
- initRowLadderJson: (jsonData: any) => never[];
42
- getRowLadder: (jsonData: any) => string;
43
- isRebateLadder: boolean;
44
- isQuotePriceLadder: boolean;
45
- isRequestLadder: boolean;
46
- isDemandToOrder: boolean;
47
- isEdit: boolean;
48
- srmI18n: SrmI18n;
49
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
50
- value: {
51
- type: StringConstructor;
52
- default: string;
53
- };
54
- config: {
55
- type: PropType<Config>;
56
- default: () => {};
57
- };
58
- isRow: {
59
- type: BooleanConstructor;
60
- default: boolean;
61
- };
62
- row: {
63
- type: PropType<Row>;
64
- default(): {};
65
- };
66
- disabled: {
67
- type: BooleanConstructor;
68
- default: boolean;
69
- };
70
- isShowEdit: {
71
- type: BooleanConstructor;
72
- default: boolean;
73
- };
74
- }>>, {
75
- value: string;
76
- row: Row;
77
- disabled: boolean;
78
- config: Config;
79
- isRow: boolean;
80
- isShowEdit: boolean;
81
- }, {}>;
82
- export default _sfc_main;
@@ -1,6 +0,0 @@
1
- import type { ComputedRef } from 'vue';
2
- export default function useLadderNotPriceModal(): {
3
- classes: ComputedRef<{
4
- [x: string]: boolean;
5
- }>;
6
- };
@@ -1,6 +0,0 @@
1
- import type { ComputedRef } from 'vue';
2
- export default function useLadderPrice(): {
3
- classes: ComputedRef<{
4
- [x: string]: boolean;
5
- }>;
6
- };