sun-biz 0.0.4-beta.6 → 0.0.4-beta.60
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/components/biz-select/biz-unit-select/api.d.ts +35 -0
- package/dist/components/biz-select/department-select/api.d.ts +52 -0
- package/dist/components/biz-select/hospital-charge-select/api.d.ts +53 -0
- package/dist/components/biz-select/index.d.ts +7 -0
- package/dist/components/biz-select/tag-select/api.d.ts +18 -2
- package/dist/components/biz-select/tag-select/utils.d.ts +31 -0
- package/dist/components/biz-select/user-select/api.d.ts +110 -0
- package/dist/components/biz-select/ward-select/api.d.ts +44 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +4535 -531
- package/dist/components/index.js.LICENSE.txt +11 -0
- package/dist/components/keyboard-value/index.d.ts +1 -0
- package/dist/components/patient-access/api.d.ts +12 -1
- package/dist/components/print/hooks/index.d.ts +1 -0
- package/dist/components/pro-avatar/index.d.ts +2 -0
- package/dist/components/pro-avatar/utils.d.ts +21 -0
- package/dist/components/pro-form/typings/index.d.ts +1 -0
- package/dist/components/pro-table/composables/dbgrid-component-setting/typings/index.d.ts +1 -0
- package/dist/components/pro-table/constant.d.ts +1 -0
- package/dist/components/pro-table/interface/index.d.ts +9 -1
- package/dist/components/static/css/index.css +77 -3
- package/dist/components/table-select/composable/useDirectionKey.d.ts +10 -0
- package/dist/components/table-select/index.d.ts +4 -0
- package/dist/components/table-select/types/index.d.ts +131 -0
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/shortcut.d.ts +13 -0
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.js +68 -22
- package/dist/hooks/use-app-config/index.d.ts +2 -2
- package/dist/hooks/use-column&form-config/index.d.ts +5 -5
- package/dist/hooks/use-data-change-detector/index.d.ts +2 -1
- package/dist/hooks/use-direction-select/index.d.ts +2 -2
- package/dist/hooks/use-editable-table/index.d.ts +2 -0
- package/dist/hooks/use-fetch-data/index.d.ts +3 -0
- package/dist/hooks/{use-fetch-dataset/index.d.ts → use-fetch-data/use-fetch-dataset.d.ts} +1 -1
- package/dist/hooks/use-fetch-data/use-fetch-params.d.ts +24 -0
- package/dist/hooks/use-fetch-data/use-fetch-time.d.ts +6 -0
- package/dist/index.d.ts +28 -24
- package/dist/index.js +5576 -641
- package/dist/index.js.LICENSE.txt +11 -0
- package/dist/static/css/index.css +77 -3
- package/dist/types/index.d.ts +28 -0
- package/package.json +21 -18
- package/dist/hooks/use-fetch-dataset/use-fetch-time.d.ts +0 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**!
|
|
2
|
+
* hotkeys-js v3.13.15
|
|
3
|
+
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2025 kenny wong <wowohoo@qq.com>
|
|
6
|
+
* https://github.com/jaywcjlove/hotkeys-js.git
|
|
7
|
+
*
|
|
8
|
+
* @website: https://jaywcjlove.github.io/hotkeys-js
|
|
9
|
+
|
|
10
|
+
* Licensed under the MIT license
|
|
11
|
+
*/
|
|
@@ -6,20 +6,94 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
[data-v-
|
|
9
|
+
[data-v-a526e56a] .el-menu-item {
|
|
10
10
|
height: 48px;
|
|
11
11
|
line-height: 48px;
|
|
12
12
|
}
|
|
13
|
-
[data-v-
|
|
13
|
+
[data-v-a526e56a] .el-sub-menu__title {
|
|
14
14
|
height: 48px;
|
|
15
15
|
line-height: 48px;
|
|
16
16
|
}
|
|
17
|
-
[data-v-
|
|
17
|
+
[data-v-a526e56a] .el-menu-item.is-active {
|
|
18
18
|
color: inherit !important;
|
|
19
19
|
background-color: #0000 !important;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.size-select[data-v-eb218d18] {
|
|
23
|
+
color: #606266;
|
|
24
|
+
width: 110px;
|
|
25
|
+
margin-left: 10px;
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
.disabled-user-tooltip, .disabled-user-tooltip .el-tooltip__trigger {
|
|
32
|
+
color: #f56c6c !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.hospital-charge-select[data-v-ffb2d000] {
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
.hospital-charge-select .input[data-v-ffb2d000] .el-input__inner {
|
|
39
|
+
cursor: pointer !important;
|
|
40
|
+
}
|
|
41
|
+
[data-v-ffb2d000] .hospital-charge-select-popover {
|
|
42
|
+
max-height: var(--5aebc6cb);
|
|
43
|
+
padding: 0;
|
|
44
|
+
z-index: 9999 !important;
|
|
45
|
+
}
|
|
46
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .popover-content {
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 100%;
|
|
49
|
+
max-height: var(--5aebc6cb);
|
|
50
|
+
}
|
|
51
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed {
|
|
52
|
+
color: #c0c4cc;
|
|
53
|
+
cursor: not-allowed !important;
|
|
54
|
+
background-color: #f5f7fa !important;
|
|
55
|
+
}
|
|
56
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed td {
|
|
57
|
+
background-color: #f5f7fa !important;
|
|
58
|
+
}
|
|
59
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed:hover > td {
|
|
60
|
+
background-color: #f5f7fa !important;
|
|
61
|
+
}
|
|
62
|
+
.hospital-charge-select-popover {
|
|
63
|
+
margin-bottom: 8px !important;
|
|
64
|
+
}
|
|
65
|
+
.hospital-charge-select-popover {
|
|
66
|
+
margin-top: 8px !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.input[data-v-d8701274] .el-input__inner {
|
|
70
|
+
cursor: pointer !important;
|
|
71
|
+
}
|
|
72
|
+
.table-select-popover[data-v-d8701274] {
|
|
73
|
+
height: 350px;
|
|
74
|
+
width: auto !important;
|
|
75
|
+
}
|
|
76
|
+
.table-select-popover-simple .header[data-v-d8701274] {
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
.table-select-popover-simple .header > span[data-v-d8701274] {
|
|
80
|
+
flex: var(--simple-column-flex);
|
|
81
|
+
}
|
|
82
|
+
.table-select-popover-simple .cell[data-v-d8701274] {
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
.table-select-popover-simple .cell > span[data-v-d8701274] {
|
|
86
|
+
flex: var(--simple-column-flex);
|
|
87
|
+
}
|
|
22
88
|
|
|
89
|
+
.table-select-popover .exist-row {
|
|
90
|
+
--el-table-tr-bg-color: #f2f5fc;
|
|
91
|
+
color: #a8abb2;
|
|
92
|
+
--el-table-row-hover-bg-color: #f2f5fc !important;
|
|
93
|
+
}
|
|
94
|
+
.table-select-popover .exist-row.current-row {
|
|
95
|
+
--el-table-current-row-bg-color: #f2f5fc;
|
|
96
|
+
}
|
|
23
97
|
|
|
24
98
|
|
|
25
99
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue 组件类型工具
|
|
3
|
+
* @see https://github.com/vuejs/language-tools/blob/master/packages/component-type-helpers/index.ts
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* 提取组件通过 defineExpose 暴露的类型
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { ref } from 'vue';
|
|
10
|
+
* import { TableSelect, type ComponentExposed } from 'sun-biz';
|
|
11
|
+
*
|
|
12
|
+
* type TableSelectInstance = ComponentExposed<typeof TableSelect>;
|
|
13
|
+
* const tableSelectRef = ref<TableSelectInstance>();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export type ComponentExposed<T> = T extends new (...args: any) => infer E ? E : T extends (props: any, ctx: any, expose: (exposed: infer E) => any, ...args: any) => any ? NonNullable<E> : {};
|
|
17
|
+
/**
|
|
18
|
+
* 提取组件的 Props 类型
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* import { TableSelect, type ComponentProps } from 'sun-biz';
|
|
22
|
+
*
|
|
23
|
+
* type TableSelectProps = ComponentProps<typeof TableSelect>;
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export type ComponentProps<T> = T extends new (...args: any) => {
|
|
27
|
+
$props: infer P;
|
|
28
|
+
} ? NonNullable<P> : T extends (props: infer P, ...args: any) => any ? P : {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sun-biz",
|
|
3
|
-
"version": "0.0.4-beta.
|
|
3
|
+
"version": "0.0.4-beta.60",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"src/*",
|
|
@@ -35,29 +35,31 @@
|
|
|
35
35
|
"storybook": "storybook dev -p 6007"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@microsoft/api-extractor": "^7.
|
|
39
|
-
"@rsbuild/plugin-babel": "^1.0.
|
|
40
|
-
"@rsbuild/plugin-
|
|
41
|
-
"@rsbuild/plugin-vue
|
|
38
|
+
"@microsoft/api-extractor": "^7.52.8",
|
|
39
|
+
"@rsbuild/plugin-babel": "^1.0.5",
|
|
40
|
+
"@rsbuild/plugin-sass": "^1.4.0",
|
|
41
|
+
"@rsbuild/plugin-vue": "^1.1.0",
|
|
42
|
+
"@rsbuild/plugin-vue-jsx": "^1.1.1",
|
|
42
43
|
"@rslib/core": "^0.0.18",
|
|
43
44
|
"@storybook/addon-essentials": "8.4.4",
|
|
44
45
|
"@storybook/test": "8.4.4",
|
|
45
46
|
"@storybook/vue3": "8.4.4",
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
47
|
+
"@sun-toolkit/enums": "1.0.0-beta.36",
|
|
48
|
+
"@sun-toolkit/micro-app": "0.0.1-beta.8",
|
|
49
|
+
"@sun-toolkit/request": "1.0.0-beta.20",
|
|
50
|
+
"@sun-toolkit/shared": "0.0.1-beta.8",
|
|
51
|
+
"@types/lodash": "^4.17.20",
|
|
52
|
+
"@types/node": "^22.17.0",
|
|
48
53
|
"@types/sortablejs": "^1.15.8",
|
|
54
|
+
"element-sun": "0.0.0-dev.4",
|
|
55
|
+
"hotkeys-js": "^3.13.15",
|
|
49
56
|
"storybook": "8.4.4",
|
|
50
57
|
"storybook-addon-rslib": "^0.1.10",
|
|
51
58
|
"storybook-vue3-rsbuild": "0.1.5",
|
|
52
59
|
"tailwindcss": "^3.4.17",
|
|
53
|
-
"typescript": "^5.
|
|
54
|
-
"vue": "^3.5.
|
|
55
|
-
"vue-router": "^4.5.1"
|
|
56
|
-
"element-sun": "0.0.0-dev.4",
|
|
57
|
-
"@sun-toolkit/enums": "1.0.0-beta.12",
|
|
58
|
-
"@sun-toolkit/micro-app": "0.0.1-beta.8",
|
|
59
|
-
"@sun-toolkit/request": "1.0.0-beta.10",
|
|
60
|
-
"@sun-toolkit/shared": "0.0.1-beta.6"
|
|
60
|
+
"typescript": "^5.9.2",
|
|
61
|
+
"vue": "^3.5.18",
|
|
62
|
+
"vue-router": "^4.5.1"
|
|
61
63
|
},
|
|
62
64
|
"peerDependencies": {
|
|
63
65
|
"@element-sun/icons-vue": "*",
|
|
@@ -73,12 +75,13 @@
|
|
|
73
75
|
},
|
|
74
76
|
"dependencies": {
|
|
75
77
|
"@element-sun/icons-vue": "^1.0.6",
|
|
76
|
-
"axios": "^1.
|
|
78
|
+
"axios": "^1.11.0",
|
|
77
79
|
"i18next": "^23.16.8",
|
|
78
|
-
"i18next-vue": "^5.
|
|
80
|
+
"i18next-vue": "^5.3.0",
|
|
79
81
|
"js-pinyin": "^0.2.7",
|
|
80
82
|
"latest": "^0.2.0",
|
|
81
83
|
"lodash": "^4.17.21",
|
|
82
|
-
"sortablejs": "^1.15.6"
|
|
84
|
+
"sortablejs": "^1.15.6",
|
|
85
|
+
"uuid": "^13.0.0"
|
|
83
86
|
}
|
|
84
87
|
}
|