bkui-vue 0.0.1-beta.13 → 0.0.1-beta.16

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 (180) hide show
  1. package/README.md +25 -17
  2. package/README_EN.md +89 -0
  3. package/dist/bkui-vue.cjs.js +1897 -495
  4. package/dist/bkui-vue.esm.js +1893 -497
  5. package/dist/bkui-vue.umd.js +1897 -495
  6. package/dist/style.css +454 -177
  7. package/lib/alert/index.js +1 -1
  8. package/lib/animate-number/index.js +1 -1
  9. package/lib/backtop/index.js +1 -1
  10. package/lib/badge/index.js +1 -1
  11. package/lib/breadcrumb/breadcrumb.css +10 -1
  12. package/lib/breadcrumb/breadcrumb.d.ts +20 -0
  13. package/lib/breadcrumb/breadcrumb.less +13 -2
  14. package/lib/breadcrumb/breadcrumb.variable.css +10 -1
  15. package/lib/breadcrumb/index.d.ts +38 -2
  16. package/lib/breadcrumb/index.js +1 -1
  17. package/lib/button/index.js +1 -1
  18. package/lib/card/index.js +1 -1
  19. package/lib/checkbox/index.d.ts +1 -1
  20. package/lib/checkbox/index.js +1 -1
  21. package/lib/checkbox/type.d.ts +1 -1
  22. package/lib/collapse/index.js +1 -1
  23. package/lib/components.d.ts +2 -0
  24. package/lib/date-picker/index.js +1 -1
  25. package/lib/dialog/dialog.d.ts +3 -3
  26. package/lib/dialog/index.d.ts +7 -7
  27. package/lib/dialog/index.js +1 -1
  28. package/lib/directives/index.js +1 -1
  29. package/lib/divider/index.js +1 -1
  30. package/lib/exception/index.js +1 -1
  31. package/lib/fixed-navbar/index.js +1 -1
  32. package/lib/form/index.js +1 -1
  33. package/lib/icon/angle-double-left.js +15 -0
  34. package/lib/icon/angle-double-right.js +15 -0
  35. package/lib/icon/angle-down-fill.d.ts +4 -0
  36. package/lib/icon/angle-down-fill.js +15 -0
  37. package/lib/icon/angle-down-line.js +15 -0
  38. package/lib/icon/angle-down.js +15 -0
  39. package/lib/icon/angle-left.js +15 -0
  40. package/lib/icon/angle-right.js +15 -0
  41. package/lib/icon/angle-up-fill.d.ts +4 -0
  42. package/lib/icon/angle-up-fill.js +15 -0
  43. package/lib/icon/angle-up.js +15 -0
  44. package/lib/icon/arrows-left.d.ts +4 -0
  45. package/lib/icon/arrows-left.js +15 -0
  46. package/lib/icon/circle.js +15 -0
  47. package/lib/icon/close.js +15 -0
  48. package/lib/icon/code.js +15 -0
  49. package/lib/icon/cog-shape.js +15 -0
  50. package/lib/icon/collapse-left.js +15 -0
  51. package/lib/icon/copy.js +15 -0
  52. package/lib/icon/done.js +15 -0
  53. package/lib/icon/down-shape.js +15 -0
  54. package/lib/icon/down-small.js +15 -0
  55. package/lib/icon/error.js +15 -0
  56. package/lib/icon/eye.js +15 -0
  57. package/lib/icon/folder-open.js +15 -0
  58. package/lib/icon/folder-shape-open.js +15 -0
  59. package/lib/icon/folder-shape.js +15 -0
  60. package/lib/icon/folder.js +15 -0
  61. package/lib/icon/help-document-fill.js +15 -0
  62. package/lib/icon/help-fill.js +15 -0
  63. package/lib/icon/help.js +15 -0
  64. package/lib/icon/icon.js +15 -0
  65. package/lib/icon/index.d.ts +7 -3
  66. package/lib/icon/index.js +1 -1
  67. package/lib/icon/info-line.js +15 -0
  68. package/lib/icon/info.js +15 -0
  69. package/lib/icon/play-shape.js +15 -0
  70. package/lib/icon/plus.js +15 -0
  71. package/lib/icon/right-shape.js +15 -0
  72. package/lib/icon/search.js +15 -0
  73. package/lib/icon/share.js +15 -0
  74. package/lib/icon/spinner.d.ts +4 -0
  75. package/lib/icon/spinner.js +15 -0
  76. package/lib/icon/success.js +15 -0
  77. package/lib/icon/switcher-loading.js +15 -0
  78. package/lib/icon/text-file.js +15 -0
  79. package/lib/icon/tree-application-shape.js +15 -0
  80. package/lib/icon/unvisible.js +15 -0
  81. package/lib/icon/warn.js +15 -0
  82. package/lib/index.d.ts +1 -0
  83. package/lib/input/index.d.ts +19 -11
  84. package/lib/input/index.js +2 -2
  85. package/lib/input/input.css +1 -0
  86. package/lib/input/input.d.ts +5 -3
  87. package/lib/input/input.less +4 -3
  88. package/lib/input/input.variable.css +1 -0
  89. package/lib/link/index.js +1 -1
  90. package/lib/loading/index.js +1 -1
  91. package/lib/menu/index.js +1 -1
  92. package/lib/menu/submenu.css +3 -0
  93. package/lib/menu/submenu.less +1 -1
  94. package/lib/menu/submenu.variable.css +3 -0
  95. package/lib/message/index.js +1 -1
  96. package/lib/modal/index.d.ts +8 -8
  97. package/lib/modal/index.js +1 -1
  98. package/lib/modal/modal.d.ts +3 -3
  99. package/lib/modal/props.mixin.d.ts +1 -1
  100. package/lib/navigation/index.js +1 -1
  101. package/lib/notify/index.js +1 -1
  102. package/lib/notify/notifyConstructor.d.ts +2 -2
  103. package/lib/popover/index.d.ts +103 -48
  104. package/lib/popover/index.js +1 -1
  105. package/lib/popover/popover.css +22 -13
  106. package/lib/popover/popover.d.ts +30 -23
  107. package/lib/popover/popover.less +55 -45
  108. package/lib/popover/popover.variable.css +22 -13
  109. package/lib/popover/props.d.ts +77 -0
  110. package/lib/preset.d.ts +2 -3
  111. package/lib/process/index.d.ts +145 -0
  112. package/lib/process/index.js +15 -0
  113. package/lib/process/process.css +139 -0
  114. package/lib/process/process.d.ts +116 -0
  115. package/lib/process/process.less +179 -0
  116. package/lib/process/process.variable.css +225 -0
  117. package/lib/progress/index.d.ts +23 -1
  118. package/lib/progress/index.js +1 -1
  119. package/lib/progress/progress.css +0 -3
  120. package/lib/progress/progress.d.ts +17 -1
  121. package/lib/progress/progress.less +0 -4
  122. package/lib/progress/progress.variable.css +0 -3
  123. package/lib/radio/index.d.ts +2 -2
  124. package/lib/radio/index.js +1 -1
  125. package/lib/rate/index.js +1 -1
  126. package/lib/select/common.d.ts +10 -1
  127. package/lib/select/index.d.ts +132 -189
  128. package/lib/select/index.js +2 -2
  129. package/lib/select/option.d.ts +1 -7
  130. package/lib/select/optionGroup.d.ts +22 -15
  131. package/lib/select/select.css +71 -14
  132. package/lib/select/select.d.ts +40 -55
  133. package/lib/select/select.less +73 -14
  134. package/lib/select/select.variable.css +71 -14
  135. package/lib/shared/bk-helper-core.d.ts +6 -0
  136. package/lib/shared/bk-popover.d.ts +45 -4
  137. package/lib/shared/index.d.ts +10 -0
  138. package/lib/shared/index.js +1 -1
  139. package/lib/shared/utils.d.ts +6 -0
  140. package/lib/sideslider/index.d.ts +7 -7
  141. package/lib/sideslider/index.js +1 -1
  142. package/lib/sideslider/sideslider.d.ts +3 -3
  143. package/lib/slider/index.js +2 -2
  144. package/lib/steps/index.d.ts +8 -8
  145. package/lib/steps/index.js +2 -2
  146. package/lib/steps/steps.d.ts +2 -2
  147. package/lib/styles/index.d.ts +2 -0
  148. package/lib/styles/index.js +1 -1
  149. package/lib/switcher/index.js +1 -1
  150. package/lib/switcher/switcher.css +149 -135
  151. package/lib/switcher/switcher.less +210 -154
  152. package/lib/switcher/switcher.variable.css +149 -135
  153. package/lib/tab/index.js +1 -1
  154. package/lib/table/index.d.ts +76 -1
  155. package/lib/table/index.js +1 -1
  156. package/lib/table/props.d.ts +38 -0
  157. package/lib/table/render.d.ts +1 -1
  158. package/lib/table/table.css +6 -4
  159. package/lib/table/table.d.ts +34 -0
  160. package/lib/table/table.less +4 -4
  161. package/lib/table/table.variable.css +6 -4
  162. package/lib/table/utils.d.ts +8 -0
  163. package/lib/tag/index.js +1 -1
  164. package/lib/tree/index.d.ts +22 -8
  165. package/lib/tree/index.js +1 -1
  166. package/lib/tree/props.d.ts +52 -0
  167. package/lib/tree/tree.css +16 -7
  168. package/lib/tree/tree.d.ts +13 -7
  169. package/lib/tree/tree.less +24 -24
  170. package/lib/tree/tree.variable.css +16 -7
  171. package/lib/tree/util.d.ts +3 -44
  172. package/lib/virtual-render/index.d.ts +410 -0
  173. package/lib/virtual-render/index.js +1 -0
  174. package/lib/virtual-render/props.d.ts +156 -0
  175. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  176. package/lib/virtual-render/virtual-render.css +40 -0
  177. package/lib/virtual-render/virtual-render.d.ts +183 -0
  178. package/lib/virtual-render/virtual-render.less +51 -0
  179. package/lib/virtual-render/virtual-render.variable.css +40 -0
  180. package/package.json +11 -7
@@ -0,0 +1,183 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
3
+ default: () => unknown[];
4
+ } & {
5
+ default: () => unknown[];
6
+ };
7
+ enabled: import("vue-types").VueTypeValidableDef<boolean> & {
8
+ default: boolean;
9
+ } & {
10
+ default: boolean;
11
+ };
12
+ lineHeight: import("vue-types").VueTypeDef<any> & {
13
+ default: any;
14
+ };
15
+ minHeight: import("vue-types").VueTypeValidableDef<number> & {
16
+ default: number;
17
+ } & {
18
+ default: number;
19
+ };
20
+ height: import("vue-types").VueTypeDef<string | number> & {
21
+ default: string | number;
22
+ };
23
+ width: import("vue-types").VueTypeDef<string | number> & {
24
+ default: string | number;
25
+ };
26
+ className: import("vue-types").VueTypeDef<string | string[] | {
27
+ [key: string]: any;
28
+ } | {
29
+ [key: string]: any;
30
+ }[]> & {
31
+ default: string | (() => {
32
+ [key: string]: any;
33
+ }) | (() => string[]) | (() => {
34
+ [key: string]: any;
35
+ }[]);
36
+ };
37
+ contentClassName: import("vue-types").VueTypeDef<string | string[] | {
38
+ [key: string]: any;
39
+ } | {
40
+ [key: string]: any;
41
+ }[]> & {
42
+ default: string | (() => {
43
+ [key: string]: any;
44
+ }) | (() => string[]) | (() => {
45
+ [key: string]: any;
46
+ }[]);
47
+ };
48
+ contentStyle: import("vue-types").VueTypeValidableDef<{
49
+ [key: string]: any;
50
+ }> & {
51
+ default: () => {
52
+ [key: string]: any;
53
+ };
54
+ } & {
55
+ default: () => {
56
+ [key: string]: any;
57
+ };
58
+ };
59
+ scrollXName: import("vue-types").VueTypeValidableDef<string> & {
60
+ default: string;
61
+ } & {
62
+ default: string;
63
+ };
64
+ scrollYName: import("vue-types").VueTypeValidableDef<string> & {
65
+ default: string;
66
+ } & {
67
+ default: string;
68
+ };
69
+ groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
70
+ default: number;
71
+ } & {
72
+ default: number;
73
+ };
74
+ preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
75
+ default: number;
76
+ } & {
77
+ default: number;
78
+ };
79
+ renderAs: import("vue-types").VueTypeValidableDef<string> & {
80
+ default: string;
81
+ } & {
82
+ default: string;
83
+ };
84
+ contentAs: import("vue-types").VueTypeValidableDef<string> & {
85
+ default: string;
86
+ } & {
87
+ default: string;
88
+ };
89
+ scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
90
+ default: number;
91
+ } & {
92
+ default: number;
93
+ };
94
+ scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
95
+ default: string;
96
+ } & {
97
+ default: string;
98
+ };
99
+ abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
100
+ default: string | number;
101
+ };
102
+ throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
103
+ default: number;
104
+ } & {
105
+ default: number;
106
+ };
107
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
108
+ [key: string]: any;
109
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "content-scroll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
110
+ list?: unknown;
111
+ enabled?: unknown;
112
+ lineHeight?: unknown;
113
+ minHeight?: unknown;
114
+ height?: unknown;
115
+ width?: unknown;
116
+ className?: unknown;
117
+ contentClassName?: unknown;
118
+ contentStyle?: unknown;
119
+ scrollXName?: unknown;
120
+ scrollYName?: unknown;
121
+ groupItemCount?: unknown;
122
+ preloadItemCount?: unknown;
123
+ renderAs?: unknown;
124
+ contentAs?: unknown;
125
+ scrollOffsetTop?: unknown;
126
+ scrollPosition?: unknown;
127
+ abosuteHeight?: unknown;
128
+ throttleDelay?: unknown;
129
+ } & {
130
+ enabled: boolean;
131
+ width: string | number;
132
+ height: string | number;
133
+ list: unknown[];
134
+ className: string | {
135
+ [key: string]: any;
136
+ };
137
+ minHeight: number;
138
+ contentClassName: string | {
139
+ [key: string]: any;
140
+ };
141
+ contentStyle: {
142
+ [key: string]: any;
143
+ };
144
+ scrollXName: string;
145
+ scrollYName: string;
146
+ groupItemCount: number;
147
+ preloadItemCount: number;
148
+ renderAs: string;
149
+ contentAs: string;
150
+ scrollOffsetTop: number;
151
+ scrollPosition: string;
152
+ abosuteHeight: string | number;
153
+ throttleDelay: number;
154
+ } & {
155
+ lineHeight?: any;
156
+ }> & ({} | {}), {
157
+ enabled: boolean;
158
+ width: string | number;
159
+ height: string | number;
160
+ list: unknown[];
161
+ className: string | {
162
+ [key: string]: any;
163
+ };
164
+ minHeight: number;
165
+ lineHeight: any;
166
+ contentClassName: string | {
167
+ [key: string]: any;
168
+ };
169
+ contentStyle: {
170
+ [key: string]: any;
171
+ };
172
+ scrollXName: string;
173
+ scrollYName: string;
174
+ groupItemCount: number;
175
+ preloadItemCount: number;
176
+ renderAs: string;
177
+ contentAs: string;
178
+ scrollOffsetTop: number;
179
+ scrollPosition: string;
180
+ abosuteHeight: string | number;
181
+ throttleDelay: number;
182
+ }>;
183
+ export default _default;
@@ -0,0 +1,51 @@
1
+
2
+ .bk-virtual-render {
3
+ position: relative;
4
+
5
+ .bk-virtual-content,
6
+ &.bk-virtual-content {
7
+ position: absolute;
8
+ top: 0;
9
+ bottom: 0;
10
+ left: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ }
14
+
15
+ .bk-virtual-section {
16
+ width: 1px;
17
+ background: transparent;
18
+ }
19
+
20
+
21
+ &.bk-scroll-x {
22
+ overflow-x: auto;
23
+ scrollbar-color: #a0a0a0 transparent;
24
+ scrollbar-width: thin;
25
+
26
+ &::-webkit-scrollbar {
27
+ height: 8px;
28
+ background-color: transparent;
29
+ }
30
+
31
+ &::-webkit-scrollbar-thumb {
32
+ background-color: #a0a0a0;
33
+ border-radius: 8px;
34
+ }
35
+ }
36
+
37
+ &.bk-scroll-y {
38
+ overflow-y: auto;
39
+
40
+ &::-webkit-scrollbar {
41
+ width: 6px;
42
+ background-color: transparent;
43
+ }
44
+
45
+ &::-webkit-scrollbar-thumb {
46
+ background-color: #dcdee5;
47
+ border-radius: 6px;
48
+ }
49
+ }
50
+ }
51
+
@@ -0,0 +1,40 @@
1
+ .bk-virtual-render {
2
+ position: relative;
3
+ }
4
+ .bk-virtual-render .bk-virtual-content,
5
+ .bk-virtual-render.bk-virtual-content {
6
+ position: absolute;
7
+ top: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+ .bk-virtual-render .bk-virtual-section {
14
+ width: 1px;
15
+ background: transparent;
16
+ }
17
+ .bk-virtual-render.bk-scroll-x {
18
+ overflow-x: auto;
19
+ scrollbar-color: #a0a0a0 transparent;
20
+ scrollbar-width: thin;
21
+ }
22
+ .bk-virtual-render.bk-scroll-x::-webkit-scrollbar {
23
+ height: 8px;
24
+ background-color: transparent;
25
+ }
26
+ .bk-virtual-render.bk-scroll-x::-webkit-scrollbar-thumb {
27
+ background-color: #a0a0a0;
28
+ border-radius: 8px;
29
+ }
30
+ .bk-virtual-render.bk-scroll-y {
31
+ overflow-y: auto;
32
+ }
33
+ .bk-virtual-render.bk-scroll-y::-webkit-scrollbar {
34
+ width: 6px;
35
+ background-color: transparent;
36
+ }
37
+ .bk-virtual-render.bk-scroll-y::-webkit-scrollbar-thumb {
38
+ background-color: #dcdee5;
39
+ border-radius: 6px;
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.13",
3
+ "version": "0.0.1-beta.16",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*"
@@ -64,19 +64,20 @@
64
64
  "eslint-plugin-node": "~11.1.0",
65
65
  "eslint-plugin-promise": "~5.1.0",
66
66
  "eslint-plugin-vue": "~7.15.1",
67
- "highlight.js": "~11.3.1",
67
+ "highlight.js": "~11.5.0",
68
68
  "husky": "~7.0.1",
69
69
  "jest": "~27.0.6",
70
70
  "jest-transform-stub": "~2.0.0",
71
71
  "lerna": "~4.0.0",
72
72
  "less": "~4.1.1",
73
73
  "lint-staged": "~11.1.1",
74
+ "markdown-it-container": "~3.0.0",
74
75
  "normalize-wheel": "~1.0.1",
75
76
  "ora": "~5.4.1",
76
77
  "plop": "~2.7.4",
77
78
  "postcss": "~8.3.6",
78
79
  "postcss-less": "~5.0.0",
79
- "prismjs": "~1.25.0",
80
+ "prismjs": "~1.27.0",
80
81
  "rimraf": "~3.0.2",
81
82
  "rollup": "~2.55.1",
82
83
  "rollup-plugin-progress": "~1.1.2",
@@ -91,14 +92,14 @@
91
92
  "ttypescript": "~1.5.12",
92
93
  "typescript": "~4.3.5",
93
94
  "vite": "~2.4.4",
94
- "vue": "3.2.2",
95
+ "vite-plugin-md": "~0.12.4",
96
+ "vue": "^3",
95
97
  "vue-jest": "~5.0.0-alpha.8",
96
98
  "vue-router": "~4.0.10",
97
99
  "vue-types": "~4.0.1"
98
100
  },
99
101
  "peerDependencies": {
100
- "vue": "3.2.x",
101
- "vue-types": "~4.0.1"
102
+ "vue": "3.2.x"
102
103
  },
103
104
  "main": "dist/bkui-vue.umd.js",
104
105
  "module": "dist/bkui-vue.esm.js",
@@ -117,6 +118,9 @@
117
118
  }
118
119
  },
119
120
  "dependencies": {
120
- "date-fns": "~2.25.0"
121
+ "@popperjs/core": "~2.11.0",
122
+ "date-fns": "~2.25.0",
123
+ "js-calendar": "~1.2.3",
124
+ "vue-types": "~4.0.1"
121
125
  }
122
126
  }