orion-design 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. package/README.md +5 -0
  2. package/dist/components/Button/Button.vue.d.ts +2 -0
  3. package/dist/components/Button/index.d.ts +4 -0
  4. package/dist/components/Button/index.js +27 -0
  5. package/dist/components/Button/index.js.map +1 -0
  6. package/dist/components/Flex/Col.d.ts +4 -4
  7. package/dist/components/Flex/Item.d.ts +4 -4
  8. package/dist/components/Flex/Row.d.ts +4 -4
  9. package/dist/components/Flex/index.d.ts +4 -4
  10. package/dist/components/Flex/index.js +95 -127
  11. package/dist/components/Flex/index.js.map +1 -0
  12. package/dist/components/Form/Form.d.ts +21 -0
  13. package/dist/components/Form/Form.js +5 -0
  14. package/dist/components/Form/Form.js.map +1 -0
  15. package/dist/components/Form/Form.vue.d.ts +465 -0
  16. package/dist/components/Form/PasswordInput/PasswordInput.d.ts +15 -0
  17. package/dist/components/Form/PasswordInput/PasswordInput.js +2 -0
  18. package/dist/components/Form/PasswordInput/PasswordInput.js.map +1 -0
  19. package/dist/components/Form/PasswordInput/PasswordInput.vue.d.ts +3 -0
  20. package/dist/components/Form/PasswordInput/index.d.ts +1 -0
  21. package/dist/components/Form/PasswordInput/index.js +2 -0
  22. package/dist/components/Form/PasswordInput/index.js.map +1 -0
  23. package/dist/components/Form/StringInput/StringInput.d.ts +15 -0
  24. package/dist/components/Form/StringInput/StringInput.js +2 -0
  25. package/dist/components/Form/StringInput/StringInput.js.map +1 -0
  26. package/dist/components/Form/StringInput/StringInput.vue.d.ts +3 -0
  27. package/dist/components/Form/StringInput/index.d.ts +1 -0
  28. package/dist/components/Form/StringInput/index.js +2 -0
  29. package/dist/components/Form/StringInput/index.js.map +1 -0
  30. package/dist/components/Form/Textarea/Textarea.d.ts +16 -0
  31. package/dist/components/Form/Textarea/Textarea.js +2 -0
  32. package/dist/components/Form/Textarea/Textarea.js.map +1 -0
  33. package/dist/components/Form/Textarea/Textarea.vue.d.ts +3 -0
  34. package/dist/components/Form/Textarea/index.d.ts +1 -0
  35. package/dist/components/Form/Textarea/index.js +2 -0
  36. package/dist/components/Form/Textarea/index.js.map +1 -0
  37. package/dist/components/Form/hooks/useForm.d.ts +4 -0
  38. package/dist/components/Form/hooks/useForm.js +21 -0
  39. package/dist/components/Form/hooks/useForm.js.map +1 -0
  40. package/dist/components/Form/index.d.ts +273 -0
  41. package/dist/components/Form/index.js +194 -0
  42. package/dist/components/Form/index.js.map +1 -0
  43. package/dist/components/Modal/index.d.ts +1 -14
  44. package/dist/components/Modal/useModal.d.ts +1 -1
  45. package/dist/components/Modal/useModal.js +7 -7
  46. package/dist/components/Modal/useModal.js.map +1 -0
  47. package/dist/components/Pagetable/Pagetable.d.ts +79 -0
  48. package/dist/components/Pagetable/columns/PagetableDatecolumn.d.ts +88 -0
  49. package/dist/components/Pagetable/columns/PagetableStringcolumn.d.ts +62 -0
  50. package/dist/components/Pagetable/index.d.ts +60 -0
  51. package/dist/components/Pagetable/index.js +144 -0
  52. package/dist/components/Pagetable/index.js.map +1 -0
  53. package/dist/components/Pagetable/interface.d.ts +10 -0
  54. package/dist/components/Pagetable/interface.js +2 -0
  55. package/dist/components/Pagetable/interface.js.map +1 -0
  56. package/dist/components/Space/index.d.ts +9 -9
  57. package/dist/components/_util/arrays.d.ts +5 -0
  58. package/dist/components/_util/arrays.js +8 -0
  59. package/dist/components/_util/arrays.js.map +1 -0
  60. package/dist/components/_util/browser.d.ts +3 -0
  61. package/dist/components/_util/browser.js +9 -0
  62. package/dist/components/_util/browser.js.map +1 -0
  63. package/dist/components/_util/classNames.js +20 -27
  64. package/dist/components/_util/classNames.js.map +1 -0
  65. package/dist/components/_util/dom/aria.d.ts +30 -0
  66. package/dist/components/_util/dom/aria.js +46 -0
  67. package/dist/components/_util/dom/aria.js.map +1 -0
  68. package/dist/components/_util/dom/element.d.ts +3 -0
  69. package/dist/components/_util/dom/element.js +18 -0
  70. package/dist/components/_util/dom/element.js.map +1 -0
  71. package/dist/components/_util/dom/event.d.ts +6 -0
  72. package/dist/components/_util/dom/event.js +10 -0
  73. package/dist/components/_util/dom/event.js.map +1 -0
  74. package/dist/components/_util/dom/index.d.ts +6 -0
  75. package/dist/components/_util/dom/index.js +39 -0
  76. package/dist/components/_util/dom/index.js.map +1 -0
  77. package/dist/components/_util/dom/position.d.ts +7 -0
  78. package/dist/components/_util/dom/position.js +30 -0
  79. package/dist/components/_util/dom/position.js.map +1 -0
  80. package/dist/components/_util/dom/scroll.d.ts +11 -0
  81. package/dist/components/_util/dom/scroll.js +78 -0
  82. package/dist/components/_util/dom/scroll.js.map +1 -0
  83. package/dist/components/_util/dom/style.d.ts +9 -0
  84. package/dist/components/_util/dom/style.js +58 -0
  85. package/dist/components/_util/dom/style.js.map +1 -0
  86. package/dist/components/_util/easings.d.ts +1 -0
  87. package/dist/components/_util/easings.js +8 -0
  88. package/dist/components/_util/easings.js.map +1 -0
  89. package/dist/components/_util/error.d.ts +3 -0
  90. package/dist/components/_util/error.js +22 -0
  91. package/dist/components/_util/error.js.map +1 -0
  92. package/dist/components/_util/functions.d.ts +1 -0
  93. package/dist/components/_util/functions.js +6 -0
  94. package/dist/components/_util/functions.js.map +1 -0
  95. package/dist/components/_util/i18n.d.ts +1 -0
  96. package/dist/components/_util/i18n.js +5 -0
  97. package/dist/components/_util/i18n.js.map +1 -0
  98. package/dist/components/_util/index.d.ts +15 -0
  99. package/dist/components/_util/index.js +140 -0
  100. package/dist/components/_util/index.js.map +1 -0
  101. package/dist/components/_util/isValid.js +4 -4
  102. package/dist/components/_util/isValid.js.map +1 -0
  103. package/dist/components/_util/objects.d.ts +8 -0
  104. package/dist/components/_util/objects.js +17 -0
  105. package/dist/components/_util/objects.js.map +1 -0
  106. package/dist/components/_util/props-util/index.d.ts +4 -4
  107. package/dist/components/_util/props-util/index.js +23 -50
  108. package/dist/components/_util/props-util/index.js.map +1 -0
  109. package/dist/components/_util/props-util/initDefaultProps.d.ts +2 -2
  110. package/dist/components/_util/props-util/initDefaultProps.js +13 -24
  111. package/dist/components/_util/props-util/initDefaultProps.js.map +1 -0
  112. package/dist/components/_util/raf.d.ts +2 -0
  113. package/dist/components/_util/raf.js +7 -0
  114. package/dist/components/_util/raf.js.map +1 -0
  115. package/dist/components/_util/rand.d.ts +12 -0
  116. package/dist/components/_util/rand.js +6 -0
  117. package/dist/components/_util/rand.js.map +1 -0
  118. package/dist/components/_util/strings.d.ts +6 -0
  119. package/dist/components/_util/strings.js +11 -0
  120. package/dist/components/_util/strings.js.map +1 -0
  121. package/dist/components/_util/throttleByRaf.d.ts +4 -0
  122. package/dist/components/_util/throttleByRaf.js +16 -0
  123. package/dist/components/_util/throttleByRaf.js.map +1 -0
  124. package/dist/components/_util/type.d.ts +1 -1
  125. package/dist/components/_util/type.js +48 -65
  126. package/dist/components/_util/type.js.map +1 -0
  127. package/dist/components/_util/types.d.ts +10 -0
  128. package/dist/components/_util/types.js +25 -0
  129. package/dist/components/_util/types.js.map +1 -0
  130. package/dist/components/_util/typescript.d.ts +12 -0
  131. package/dist/components/_util/typescript.js +5 -0
  132. package/dist/components/_util/typescript.js.map +1 -0
  133. package/dist/components/_util/util.d.ts +1 -1
  134. package/dist/components/_util/util.js +46 -74
  135. package/dist/components/_util/util.js.map +1 -0
  136. package/dist/components/_util/vue/global-node.d.ts +3 -0
  137. package/dist/components/_util/vue/global-node.js +21 -0
  138. package/dist/components/_util/vue/global-node.js.map +1 -0
  139. package/dist/components/_util/vue/icon.d.ts +23 -0
  140. package/dist/components/_util/vue/icon.js +154 -0
  141. package/dist/components/_util/vue/icon.js.map +1 -0
  142. package/dist/components/_util/vue/index.d.ts +9 -0
  143. package/dist/components/_util/vue/index.js +44 -0
  144. package/dist/components/_util/vue/index.js.map +1 -0
  145. package/dist/components/_util/vue/install.d.ts +6 -0
  146. package/dist/components/_util/vue/install.js +21 -0
  147. package/dist/components/_util/vue/install.js.map +1 -0
  148. package/dist/components/_util/vue/props/index.d.ts +3 -0
  149. package/dist/components/_util/vue/props/index.js +9 -0
  150. package/dist/components/_util/vue/props/index.js.map +1 -0
  151. package/dist/components/_util/vue/props/runtime.d.ts +29 -0
  152. package/dist/components/_util/vue/props/runtime.js +37 -0
  153. package/dist/components/_util/vue/props/runtime.js.map +1 -0
  154. package/dist/components/_util/vue/props/types.d.ts +120 -0
  155. package/dist/components/_util/vue/props/types.js +2 -0
  156. package/dist/components/_util/vue/props/types.js.map +1 -0
  157. package/dist/components/_util/vue/props/util.d.ts +8 -0
  158. package/dist/components/_util/vue/props/util.js +2 -0
  159. package/dist/components/_util/vue/props/util.js.map +1 -0
  160. package/dist/components/_util/vue/refs.d.ts +3 -0
  161. package/dist/components/_util/vue/refs.js +12 -0
  162. package/dist/components/_util/vue/refs.js.map +1 -0
  163. package/dist/components/_util/vue/size.d.ts +2 -0
  164. package/dist/components/_util/vue/size.js +6 -0
  165. package/dist/components/_util/vue/size.js.map +1 -0
  166. package/dist/components/_util/vue/typescript.d.ts +5 -0
  167. package/dist/components/_util/vue/typescript.js +2 -0
  168. package/dist/components/_util/vue/typescript.js.map +1 -0
  169. package/dist/components/_util/vue/validator.d.ts +3 -0
  170. package/dist/components/_util/vue/validator.js +7 -0
  171. package/dist/components/_util/vue/validator.js.map +1 -0
  172. package/dist/components/_util/vue/vnode.d.ts +50 -0
  173. package/dist/components/_util/vue/vnode.js +68 -0
  174. package/dist/components/_util/vue/vnode.js.map +1 -0
  175. package/dist/components/_util/vue-types/index.d.ts +3 -3
  176. package/dist/components/_util/vue-types/index.js +275 -417
  177. package/dist/components/_util/vue-types/index.js.map +1 -0
  178. package/dist/components/components.d.ts +4 -0
  179. package/dist/components/components.js +18 -12
  180. package/dist/components/components.js.map +1 -0
  181. package/dist/components/index.d.ts +1 -1
  182. package/dist/components/index.js +25 -24
  183. package/dist/components/index.js.map +1 -0
  184. package/dist/components-BZukhWDk.js +106 -0
  185. package/dist/components-BZukhWDk.js.map +1 -0
  186. package/dist/error/OrionError.js +7 -12
  187. package/dist/error/OrionError.js.map +1 -0
  188. package/dist/functions-DzLqXvGt.js +33 -0
  189. package/dist/functions-DzLqXvGt.js.map +1 -0
  190. package/dist/index-C8JNJPWW.js +8 -0
  191. package/dist/index-C8JNJPWW.js.map +1 -0
  192. package/dist/index.css +1 -44
  193. package/dist/index.d.ts +1 -1
  194. package/dist/index.js +24 -14
  195. package/dist/index.js.map +1 -0
  196. package/dist/print/LodopFuncs.js +48 -111
  197. package/dist/print/LodopFuncs.js.map +1 -0
  198. package/dist/print/index.d.ts +2 -2
  199. package/dist/print/index.js +111 -220
  200. package/dist/print/index.js.map +1 -0
  201. package/dist/request/ErrorHandlerChain.js +17 -15
  202. package/dist/request/ErrorHandlerChain.js.map +1 -0
  203. package/dist/request/RequestFilterChain.d.ts +1 -1
  204. package/dist/request/RequestFilterChain.js +16 -14
  205. package/dist/request/RequestFilterChain.js.map +1 -0
  206. package/dist/request/ResponseParserChain.d.ts +1 -1
  207. package/dist/request/ResponseParserChain.js +17 -15
  208. package/dist/request/ResponseParserChain.js.map +1 -0
  209. package/dist/request/disivion/DateSerializer.js +25 -46
  210. package/dist/request/disivion/DateSerializer.js.map +1 -0
  211. package/dist/request/disivion/DivisionErrorHandler.d.ts +1 -1
  212. package/dist/request/disivion/DivisionErrorHandler.js +30 -52
  213. package/dist/request/disivion/DivisionErrorHandler.js.map +1 -0
  214. package/dist/request/disivion/DivisionResponseParser.d.ts +2 -2
  215. package/dist/request/disivion/DivisionResponseParser.js +13 -25
  216. package/dist/request/disivion/DivisionResponseParser.js.map +1 -0
  217. package/dist/request/disivion/index.d.ts +3 -3
  218. package/dist/request/disivion/index.js +230 -480
  219. package/dist/request/disivion/index.js.map +1 -0
  220. package/dist/request/error/BizExceptionResponseError.d.ts +2 -2
  221. package/dist/request/error/BizExceptionResponseError.js +8 -15
  222. package/dist/request/error/BizExceptionResponseError.js.map +1 -0
  223. package/dist/request/error/ExceptionResponseError.d.ts +2 -2
  224. package/dist/request/error/ExceptionResponseError.js +8 -15
  225. package/dist/request/error/ExceptionResponseError.js.map +1 -0
  226. package/dist/request/error/ResponseError.d.ts +1 -1
  227. package/dist/request/error/ResponseError.js +7 -14
  228. package/dist/request/error/ResponseError.js.map +1 -0
  229. package/dist/request/error/SessionExceptionResponseError.d.ts +2 -2
  230. package/dist/request/error/SessionExceptionResponseError.js +8 -15
  231. package/dist/request/error/SessionExceptionResponseError.js.map +1 -0
  232. package/dist/request/index.js +11 -17
  233. package/dist/request/index.js.map +1 -0
  234. package/dist/style/index.d.ts +0 -3
  235. package/dist/style/index.js +1 -0
  236. package/dist/style/index.js.map +1 -0
  237. package/dist/utils/DateUtil.js +36 -50
  238. package/dist/utils/DateUtil.js.map +1 -0
  239. package/dist/utils/NumberUtil.js +9 -8
  240. package/dist/utils/NumberUtil.js.map +1 -0
  241. package/dist/utils/cloneDeep.js +5 -1
  242. package/dist/utils/cloneDeep.js.map +1 -0
  243. package/dist/utils/delay.js +6 -4
  244. package/dist/utils/delay.js.map +1 -0
  245. package/dist/utils/functions.d.ts +1 -0
  246. package/dist/utils/functions.js +6 -0
  247. package/dist/utils/functions.js.map +1 -0
  248. package/dist/utils/index.js +15 -9
  249. package/dist/utils/index.js.map +1 -0
  250. package/dist/utils/md5.js +121 -244
  251. package/dist/utils/md5.js.map +1 -0
  252. package/dist/utils/uuid.js +28 -58
  253. package/dist/utils/uuid.js.map +1 -0
  254. package/dist/utils/vue/install.d.ts +6 -0
  255. package/dist/utils/vue/install.js +21 -0
  256. package/dist/utils/vue/install.js.map +1 -0
  257. package/dist/utils/vue/typescript.d.ts +5 -0
  258. package/dist/utils/vue/typescript.js +2 -0
  259. package/dist/utils/vue/typescript.js.map +1 -0
  260. package/dist/version/index.d.ts +1 -1
  261. package/dist/version/index.js +5 -6
  262. package/dist/version/index.js.map +1 -0
  263. package/dist/version/version.d.ts +1 -1
  264. package/dist/version/version.js +5 -3
  265. package/dist/version/version.js.map +1 -0
  266. package/dist/vite.svg +1 -0
  267. package/global.d.ts +6 -0
  268. package/package.json +52 -63
  269. package/dist/components-BTX5S_6V.js +0 -128
@@ -1,6 +1,5 @@
1
- import version from './version.js';
2
-
3
- /* eslint import/no-unresolved: 0 */
4
- // @ts-ignore
5
-
6
- export { version as default };
1
+ import r from "./version.js";
2
+ export {
3
+ r as default
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,2 +1,2 @@
1
- declare const _default: "0.1.4";
1
+ declare const _default: "0.1.5";
2
2
  export default _default;
@@ -1,3 +1,5 @@
1
- var version = '0.1.4';
2
-
3
- export { version as default };
1
+ const e = "0.1.5";
2
+ export {
3
+ e as default
4
+ };
5
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sources":["../../src/version/version.ts"],"sourcesContent":["export default '0.1.5';"],"names":["version"],"mappings":"AAAA,MAAAA,IAAe;"}
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/global.d.ts CHANGED
@@ -1,9 +1,15 @@
1
1
  declare module 'vue' {
2
2
  export interface GlobalComponents {
3
+ // 布局
3
4
  OSpace: typeof import('orion-design')['Space']
4
5
  ORowflex: typeof import('orion-design')['Rowflex']
5
6
  OColflex: typeof import('orion-design')['Colflex']
6
7
  OFlexitem: typeof import('orion-design')['Flexitem']
8
+
9
+ // 表格
10
+ OPageTable: typeof import('orion-design')['PageTable']
11
+
12
+ // 反馈
7
13
  OModal: typeof import('orion-design')['Modal']
8
14
  }
9
15
  }
package/package.json CHANGED
@@ -1,63 +1,52 @@
1
- {
2
- "name": "orion-design",
3
- "version": "0.1.4",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist",
10
- "global.d.ts"
11
- ],
12
- "scripts": {
13
- "dev": "npm run clean:dist && npm run build:types && rollup -c -w",
14
- "build": "npm run clean:dist && npm run version && rollup -c --environment BUILD:production && npm run build:types",
15
- "build:types": "tsc -b ./tsconfig.types.json",
16
- "clean:dist": "rimraf dist",
17
- "version": "node ./scripts/generate-version.cjs"
18
- },
19
- "author": "",
20
- "license": "ISC",
21
- "devDependencies": {
22
- "@babel/core": "^7.25.2",
23
- "@rollup/plugin-babel": "^6.0.4",
24
- "@rollup/plugin-commonjs": "^26.0.1",
25
- "@rollup/plugin-json": "^6.1.0",
26
- "@rollup/plugin-node-resolve": "^15.2.3",
27
- "@types/lodash-es": "^4.17.12",
28
- "@types/md5": "^2.3.5",
29
- "@types/node": "^22.5.5",
30
- "@types/uuid": "^10.0.0",
31
- "@vue/babel-plugin-jsx": "^1.2.5",
32
- "axios": "^1.7.7",
33
- "dayjs": "^1.11.13",
34
- "decimal.js": "^10.4.3",
35
- "element-plus": "^2.8.3",
36
- "glob": "^11.0.0",
37
- "lodash-es": "^4.17.21",
38
- "rimraf": "^6.0.1",
39
- "rollup": "^4.21.3",
40
- "rollup-plugin-dts": "^6.1.1",
41
- "rollup-plugin-sass": "^1.13.2",
42
- "rollup-plugin-typescript2": "^0.36.0",
43
- "tslib": "^2.7.0",
44
- "typescript": "^5.6.2",
45
- "vue": "^3.5.6",
46
- "vue-router": "^4.4.5"
47
- },
48
- "dependencies": {
49
- "js-base64": "^3.7.7",
50
- "md5": "^2.3.0",
51
- "uuid": "^10.0.0",
52
- "vue-types": "^5.1.3"
53
- },
54
- "peerDependencies": {
55
- "axios": "^1.7.7",
56
- "dayjs": "^1.11.13",
57
- "decimal.js": "^10.4.3",
58
- "element-plus": "^2.8.3",
59
- "lodash-es": "^4.17.21",
60
- "vue": "^3.0.0",
61
- "vue-router": "^4.4.5"
62
- }
63
- }
1
+ {
2
+ "name": "orion-design",
3
+ "version": "0.1.5",
4
+ "main": "dist/index.js",
5
+ "type": "module",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "global.d.ts"
10
+ ],
11
+ "scripts": {
12
+ "dev": "vite build --mode dev --watch",
13
+ "build": "npm run version && vue-tsc && vite build",
14
+ "version": "node ./scripts/generate-version.cjs"
15
+ },
16
+ "dependencies": {
17
+ "js-base64": "^3.7.7",
18
+ "md5": "^2.3.0",
19
+ "uuid": "^10.0.0",
20
+ "vue": "^3.4.37",
21
+ "vue-types": "^5.1.3"
22
+ },
23
+ "devDependencies": {
24
+ "@types/md5": "^2.3.5",
25
+ "@types/node": "^22.7.4",
26
+ "@types/uuid": "^10.0.0",
27
+ "@vitejs/plugin-vue": "^5.1.2",
28
+ "@vitejs/plugin-vue-jsx": "^4.0.1",
29
+ "axios": "^1.7.7",
30
+ "dayjs": "^1.11.13",
31
+ "decimal.js": "^10.4.3",
32
+ "element-plus": "^2.8.4",
33
+ "glob": "^11.0.0",
34
+ "lodash-es": "^4.17.21",
35
+ "sass-embedded": "^1.79.4",
36
+ "type-fest": "^4.26.1",
37
+ "typescript": "^5.5.3",
38
+ "vite": "^5.4.1",
39
+ "vite-plugin-dts": "^4.2.2",
40
+ "vue-router": "^4.4.5",
41
+ "vue-tsc": "^2.0.29"
42
+ },
43
+ "peerDependencies": {
44
+ "axios": "^1.7.7",
45
+ "dayjs": "^1.11.13",
46
+ "decimal.js": "^10.4.3",
47
+ "element-plus": "^2.8.3",
48
+ "lodash-es": "^4.17.21",
49
+ "vue": "^3.0.0",
50
+ "vue-router": "^4.4.5"
51
+ }
52
+ }
@@ -1,128 +0,0 @@
1
- import { defineComponent, computed, createVNode, ref, shallowRef, provide, Fragment } from 'vue';
2
- import { filterEmpty } from './components/_util/props-util/index.js';
3
- import { withInstall, anyType } from './components/_util/type.js';
4
- import { Colflex, Flexitem, Rowflex } from './components/Flex/index.js';
5
- import { ElDialog } from 'element-plus';
6
- import useModal from './components/Modal/useModal.js';
7
-
8
- const spaceProps = () => ({
9
- gutter: anyType(),
10
- vertical: anyType()
11
- });
12
- const Space = defineComponent({
13
- name: 'OSpace',
14
- inheritAttrs: false,
15
- props: spaceProps(),
16
- slots: Object,
17
- setup(props, {
18
- slots,
19
- attrs,
20
- emit,
21
- expose
22
- }) {
23
- const classes = computed(() => {
24
- const {
25
- vertical
26
- } = props;
27
- return ['orion-space', {
28
- [`vertical`]: vertical === true || vertical === ''
29
- }];
30
- });
31
- return () => {
32
- const children = slots.default?.();
33
- const items = filterEmpty(children);
34
- const len = items.length;
35
- if (len === 0) {
36
- return null;
37
- }
38
- const gapStyle = {};
39
- if (typeof props.gutter == 'string' && props.gutter) {
40
- gapStyle.gap = props.gutter;
41
- }
42
- return createVNode("div", {
43
- "class": [classes.value, attrs.class],
44
- "style": [gapStyle, attrs.style]
45
- }, [items.map(child => {
46
- return createVNode("div", {
47
- "class": ['orion-space-item']
48
- }, [child]);
49
- })]);
50
- };
51
- }
52
- });
53
- var index$1 = withInstall(Space);
54
-
55
- const Modal = defineComponent({
56
- name: 'OModal',
57
- setup(props, {
58
- slots,
59
- attrs,
60
- emit,
61
- expose
62
- }) {
63
- const show = ref(false);
64
- const title = ref();
65
- const content = shallowRef();
66
- const contentProps = ref();
67
- const width = ref();
68
- const __resolve = ref();
69
- const _open = async options => {
70
- show.value = true;
71
- title.value = options.title;
72
- content.value = options.content;
73
- if (options.contentProps) {
74
- contentProps.value = options.contentProps;
75
- } else {
76
- contentProps.value = {};
77
- }
78
- if (options.width) {
79
- width.value = options.width;
80
- }
81
- const promise = new Promise((resolve, reject) => {
82
- __resolve.value = resolve;
83
- });
84
- return promise;
85
- };
86
- expose({
87
- open: _open
88
- });
89
- const _close = options => {
90
- const resolve = __resolve.value;
91
- show.value = false;
92
- title.value = undefined;
93
- content.value = undefined;
94
- contentProps.value = undefined;
95
- width.value = undefined;
96
- __resolve.value = undefined;
97
- resolve && resolve(options);
98
- };
99
- provide('$$Modal', {
100
- close: _close
101
- });
102
- return () => {
103
- const Children = content.value;
104
- return show.value ? createVNode(ElDialog, {
105
- "title": title.value,
106
- "width": width.value,
107
- "modelValue": show.value,
108
- "beforeClose": _close,
109
- "draggable": true
110
- }, {
111
- default: () => [createVNode(Children, contentProps.value, null)]
112
- }) : createVNode(Fragment, null, null);
113
- };
114
- }
115
- });
116
- var index = withInstall(Modal);
117
-
118
- var components = /*#__PURE__*/Object.freeze({
119
- __proto__: null,
120
- Colflex: Colflex,
121
- Flexitem: Flexitem,
122
- Modal: index,
123
- Rowflex: Rowflex,
124
- Space: index$1,
125
- useOModal: useModal
126
- });
127
-
128
- export { index as a, components as c, index$1 as i };