orion-design 0.1.3 → 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-DhjIbmR3.js +0 -128
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Vue 3 + TypeScript + Vite
2
+
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/vue/typescript';
2
+ import { default as Button } from './Button.vue';
3
+ export declare const OButton: SFCWithInstall<typeof Button>;
4
+ export default OButton;
@@ -0,0 +1,27 @@
1
+ import { withInstall as u } from "../../utils/vue/install.js";
2
+ import { defineComponent as c, onMounted as s, openBlock as _, createBlock as a, unref as l, withCtx as p, createTextVNode as f } from "vue";
3
+ import { ElButton as m } from "element-plus";
4
+ const d = /* @__PURE__ */ c({
5
+ name: "OButton",
6
+ __name: "Button",
7
+ setup(o) {
8
+ return s(() => {
9
+ console.log("Button onMounted1");
10
+ }), (n, t) => (_(), a(l(m), null, {
11
+ default: p(() => t[0] || (t[0] = [
12
+ f("XX")
13
+ ])),
14
+ _: 1
15
+ }));
16
+ }
17
+ }), B = (o, n) => {
18
+ const t = o.__vccOpts || o;
19
+ for (const [e, r] of n)
20
+ t[e] = r;
21
+ return t;
22
+ }, i = /* @__PURE__ */ B(d, [["__scopeId", "data-v-e59d2724"]]), O = u(i);
23
+ export {
24
+ O as OButton,
25
+ O as default
26
+ };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Button/Button.vue","../../../src/components/Button/index.ts"],"sourcesContent":["<template>\r\n <el-button>XX</el-button>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { onMounted } from 'vue'\r\n\r\nimport { ElButton } from 'element-plus'\r\n\r\ndefineOptions({ name: 'OButton' })\r\n\r\nonMounted(() => {\r\n console.log('Button onMounted1')\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.app {\r\n p {\r\n font-size: 32px;\r\n color: aqua;\r\n }\r\n button {\r\n color: red;\r\n }\r\n}\r\n</style>\r\n","import { withInstall, withNoopInstall } from '../../utils/vue/install'\r\nimport type { SFCWithInstall } from '../../utils/vue/typescript'\r\n\r\nimport Button from './Button.vue'\r\n\r\nexport const OButton: SFCWithInstall<typeof Button> = withInstall(Button)\r\n\r\nexport default OButton\r\n"],"names":["onMounted","OButton","withInstall","Button"],"mappings":";;;;;;;AAUA,WAAAA,EAAU,MAAM;AACd,cAAQ,IAAI,mBAAmB;AAAA,IAAA,CAChC;;;;;;;;;;;;iECPYC,IAAyCC,EAAYC,CAAM;"}
@@ -1,4 +1,4 @@
1
- import type { PropType, ExtractPropTypes } from 'vue';
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
2
  export declare const colProps: () => {
3
3
  gutter: {
4
4
  default: string | boolean;
@@ -7,13 +7,13 @@ export declare const colProps: () => {
7
7
  height: StringConstructor;
8
8
  };
9
9
  export type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>;
10
- declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
10
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
11
11
  gutter: {
12
12
  default: string | boolean;
13
13
  type: PropType<string | boolean>;
14
14
  };
15
15
  height: StringConstructor;
16
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
17
17
  gutter: {
18
18
  default: string | boolean;
19
19
  type: PropType<string | boolean>;
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
21
21
  height: StringConstructor;
22
22
  }>> & Readonly<{}>, {
23
23
  gutter: string | boolean;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
25
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
2
  export declare const itemProps: () => {
3
3
  flexBasic: StringConstructor;
4
4
  hidden: {
@@ -7,13 +7,13 @@ export declare const itemProps: () => {
7
7
  };
8
8
  };
9
9
  export type ItemProps = Partial<ExtractPropTypes<ReturnType<typeof itemProps>>>;
10
- declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
10
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
11
11
  flexBasic: StringConstructor;
12
12
  hidden: {
13
13
  type: BooleanConstructor;
14
14
  default: boolean;
15
15
  };
16
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
17
17
  flexBasic: StringConstructor;
18
18
  hidden: {
19
19
  type: BooleanConstructor;
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
21
21
  };
22
22
  }>> & Readonly<{}>, {
23
23
  hidden: boolean;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
25
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { PropType, ExtractPropTypes } from 'vue';
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
2
  export declare const rowProps: () => {
3
3
  gutter: {
4
4
  default: string | boolean;
@@ -7,13 +7,13 @@ export declare const rowProps: () => {
7
7
  height: StringConstructor;
8
8
  };
9
9
  export type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>;
10
- declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
10
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
11
11
  gutter: {
12
12
  default: string | boolean;
13
13
  type: PropType<string | boolean>;
14
14
  };
15
15
  height: StringConstructor;
16
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
17
17
  gutter: {
18
18
  default: string | boolean;
19
19
  type: PropType<string | boolean>;
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
21
21
  height: StringConstructor;
22
22
  }>> & Readonly<{}>, {
23
23
  gutter: string | boolean;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
25
  export default _default;
@@ -1,7 +1,7 @@
1
- import type { Plugin } from 'vue';
2
- import Row from './Row';
3
- import Col from './Col';
4
- import Item from './Item';
1
+ import { Plugin } from 'vue';
2
+ import { default as Row } from './Row';
3
+ import { default as Col } from './Col';
4
+ import { default as Item } from './Item';
5
5
  export declare const Rowflex: typeof Row & Plugin;
6
6
  export declare const Colflex: typeof Col & Plugin;
7
7
  export declare const Flexitem: typeof Item & Plugin;
@@ -1,151 +1,119 @@
1
- import { defineComponent, computed, createVNode } from 'vue';
2
- import classNames from '../_util/classNames.js';
3
- import OrionError from '../../error/OrionError.js';
4
- import { anyType, booleanType } from '../_util/type.js';
5
- import '../_util/util.js';
6
-
7
- const rowProps = () => ({
8
- gutter: anyType(),
1
+ import { defineComponent as s, computed as h, createVNode as a } from "vue";
2
+ import m from "../_util/classNames.js";
3
+ import d from "../../error/OrionError.js";
4
+ import { anyType as y, booleanType as w } from "../_util/type.js";
5
+ const v = () => ({
6
+ gutter: y(),
9
7
  height: String
10
- });
11
- var Row = defineComponent({
12
- name: 'ORowflex',
13
- inheritAttrs: false,
14
- props: rowProps(),
15
- setup(props, {
16
- slots,
17
- attrs,
18
- emit,
19
- expose
8
+ }), f = /* @__PURE__ */ s({
9
+ name: "ORowflex",
10
+ inheritAttrs: !1,
11
+ props: v(),
12
+ setup(e, {
13
+ slots: i,
14
+ attrs: r,
15
+ emit: x,
16
+ expose: g
20
17
  }) {
21
- const style = computed(() => {
22
- const rowStyle = {};
23
- rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined;
24
- if (props.height) {
25
- if (props.height == 'fill') {
26
- throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`);
27
- } else if (props.height == 'need') ; else {
28
- rowStyle.height = props.height;
29
- }
30
- } else {
31
- rowStyle.height = '100%';
32
- }
33
- return rowStyle;
18
+ const o = h(() => {
19
+ const t = {};
20
+ if (t.gap = e.gutter === !0 || e.gutter === "" ? "var(--orion-flex-gutter)" : e.gutter ? e.gutter : void 0, e.height) {
21
+ if (e.height == "fill")
22
+ throw new d("ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!");
23
+ e.height == "need" || (t.height = e.height);
24
+ } else
25
+ t.height = "100%";
26
+ return t;
34
27
  });
35
28
  return () => {
36
- const children = slots.default?.();
37
- const cn = classNames('orion-flex', 'orion-flex-row', 'orion-flex-justify-start');
38
- return createVNode("div", {
39
- "class": [cn, attrs.class],
40
- "style": [style.value, attrs.style]
41
- }, [children]);
29
+ var n;
30
+ const t = (n = i.default) == null ? void 0 : n.call(i), l = m("orion-flex", "orion-flex-row", "orion-flex-justify-start");
31
+ return a("div", {
32
+ class: [l, r.class],
33
+ style: [o.value, r.style]
34
+ }, [t]);
42
35
  };
43
36
  }
44
- });
45
-
46
- const colProps = () => ({
47
- gutter: anyType(),
37
+ }), B = () => ({
38
+ gutter: y(),
48
39
  height: String
49
- });
50
- var Col = defineComponent({
51
- name: 'OColflex',
52
- inheritAttrs: false,
53
- props: colProps(),
54
- setup(props, {
55
- slots,
56
- attrs,
57
- emit,
58
- expose
40
+ }), c = /* @__PURE__ */ s({
41
+ name: "OColflex",
42
+ inheritAttrs: !1,
43
+ props: B(),
44
+ setup(e, {
45
+ slots: i,
46
+ attrs: r,
47
+ emit: x,
48
+ expose: g
59
49
  }) {
60
- const style = computed(() => {
61
- const rowStyle = {};
62
- rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined;
63
- if (props.height) {
64
- if (props.height == 'fill') {
65
- throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`);
66
- } else if (props.height == 'need') ; else {
67
- rowStyle.height = props.height;
68
- }
69
- } else {
70
- rowStyle.height = '100%';
71
- }
72
- return rowStyle;
50
+ const o = h(() => {
51
+ const t = {};
52
+ if (t.gap = e.gutter === !0 || e.gutter === "" ? "var(--orion-flex-gutter)" : e.gutter ? e.gutter : void 0, e.height) {
53
+ if (e.height == "fill")
54
+ throw new d("OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!");
55
+ e.height == "need" || (t.height = e.height);
56
+ } else
57
+ t.height = "100%";
58
+ return t;
73
59
  });
74
60
  return () => {
75
- const children = slots.default?.();
76
- const cn = classNames('orion-flex', 'orion-flex-column');
77
- return createVNode("div", {
78
- "class": [cn, attrs.class],
79
- "style": [style.value, attrs.style]
80
- }, [children]);
61
+ var n;
62
+ const t = (n = i.default) == null ? void 0 : n.call(i), l = m("orion-flex", "orion-flex-column");
63
+ return a("div", {
64
+ class: [l, r.class],
65
+ style: [o.value, r.style]
66
+ }, [t]);
81
67
  };
82
68
  }
83
- });
84
-
85
- const itemProps = () => ({
69
+ }), C = () => ({
86
70
  flexBasic: String,
87
- hidden: booleanType(false)
88
- });
89
- var Item = defineComponent({
90
- name: 'OFlexitem',
91
- inheritAttrs: false,
92
- props: itemProps(),
93
- setup(props, {
94
- slots,
95
- attrs,
96
- emit,
97
- expose
71
+ hidden: w(!1)
72
+ }), u = /* @__PURE__ */ s({
73
+ name: "OFlexitem",
74
+ inheritAttrs: !1,
75
+ props: C(),
76
+ setup(e, {
77
+ slots: i,
78
+ attrs: r,
79
+ emit: x,
80
+ expose: g
98
81
  }) {
99
- const style = computed(() => {
100
- const itemStyle = {};
101
- if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {
102
- itemStyle['flex'] = `0 0 ${props.flexBasic}`;
103
- }
104
- return itemStyle;
105
- });
106
- const classes = computed(() => {
82
+ const o = h(() => {
83
+ const l = {};
84
+ return e.flexBasic !== "need" && e.flexBasic !== "fill" && (l.flex = `0 0 ${e.flexBasic}`), l;
85
+ }), t = h(() => {
107
86
  const {
108
- hidden
109
- } = props;
110
- let flexClass = 'orion-flexitem-fill';
111
- if (props.flexBasic) {
112
- if (props.flexBasic == 'need') {
113
- flexClass = 'orion-flexitem-auto';
114
- } else if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {
115
- flexClass = 'orion-flexitem-fixed';
116
- }
117
- }
118
- return ['orion-flexitem', flexClass, {
119
- [`orion-hidden`]: hidden
87
+ hidden: l
88
+ } = e;
89
+ let n = "orion-flexitem-fill";
90
+ return e.flexBasic && (e.flexBasic == "need" ? n = "orion-flexitem-auto" : e.flexBasic !== "need" && e.flexBasic !== "fill" && (n = "orion-flexitem-fixed")), ["orion-flexitem", n, {
91
+ "orion-hidden": l
120
92
  }];
121
93
  });
122
94
  return () => {
123
- const children = slots.default?.();
124
- return createVNode("div", {
125
- "class": [classes.value, attrs.class],
126
- "style": [style.value, attrs.style]
127
- }, [children]);
95
+ var n;
96
+ const l = (n = i.default) == null ? void 0 : n.call(i);
97
+ return a("div", {
98
+ class: [t.value, r.class],
99
+ style: [o.value, r.style]
100
+ }, [l]);
128
101
  };
129
102
  }
130
103
  });
131
-
132
- Row.install = function (app) {
133
- // @ts-ignore
134
- app.component(Row.name, Row);
135
- return app;
104
+ f.install = function(e) {
105
+ return e.component(f.name, f), e;
106
+ };
107
+ c.install = function(e) {
108
+ return e.component(c.name, c), e;
136
109
  };
137
- Col.install = function (app) {
138
- // @ts-ignore
139
- app.component(Col.name, Col);
140
- return app;
110
+ u.install = function(e) {
111
+ return e.component(u.name, u), e;
141
112
  };
142
- Item.install = function (app) {
143
- // @ts-ignore
144
- app.component(Item.name, Item);
145
- return app;
113
+ const P = f, F = c, N = u;
114
+ export {
115
+ F as Colflex,
116
+ N as Flexitem,
117
+ P as Rowflex
146
118
  };
147
- const Rowflex = Row;
148
- const Colflex = Col;
149
- const Flexitem = Item;
150
-
151
- export { Colflex, Flexitem, Rowflex };
119
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Flex/Row.tsx","../../../src/components/Flex/Col.tsx","../../../src/components/Flex/Item.tsx","../../../src/components/Flex/index.ts"],"sourcesContent":["import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const rowProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'ORowflex',\r\n inheritAttrs: false,\r\n props: rowProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-row', 'orion-flex-justify-start')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const colProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OColflex',\r\n inheritAttrs: false,\r\n props: colProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-column')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const itemProps = () => ({\r\n flexBasic: String,\r\n hidden: booleanType(false),\r\n})\r\n\r\nexport type ItemProps = Partial<ExtractPropTypes<ReturnType<typeof itemProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OFlexitem',\r\n inheritAttrs: false,\r\n props: itemProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const itemStyle: CSSProperties = {}\r\n\r\n if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n itemStyle['flex'] = `0 0 ${props.flexBasic}`\r\n }\r\n\r\n return itemStyle\r\n })\r\n\r\n const classes = computed(() => {\r\n const { hidden } = props\r\n\r\n let flexClass = 'orion-flexitem-fill'\r\n if (props.flexBasic) {\r\n if (props.flexBasic == 'need') {\r\n flexClass = 'orion-flexitem-auto'\r\n } else if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n flexClass = 'orion-flexitem-fixed'\r\n }\r\n }\r\n\r\n return ['orion-flexitem', flexClass, { [`orion-hidden`]: hidden }]\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n return (\r\n <div class={[classes.value, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import type { App, Plugin } from 'vue'\r\n\r\nimport Row from './Row'\r\nimport Col from './Col'\r\nimport Item from './Item'\r\n\r\nRow.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Row.name, Row)\r\n return app\r\n}\r\nCol.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Col.name, Col)\r\n return app\r\n}\r\nItem.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Item.name, Item)\r\n return app\r\n}\r\n\r\nexport const Rowflex = Row as typeof Row & Plugin\r\nexport const Colflex = Col as typeof Col & Plugin\r\nexport const Flexitem = Item as typeof Item & Plugin\r\n\r\nexport type { RowProps as RowflexProps } from './Row'\r\nexport type { ColProps as ColflexProps } from './Col'\r\nexport type { ItemProps as FlexitemProps } from './Item'\r\n"],"names":["rowProps","gutter","anyType","height","String","defineComponent","name","inheritAttrs","props","setup","slots","attrs","emit","expose","style","computed","rowStyle","gap","undefined","OrionError","children","default","cn","classNames","_createVNode","class","value","colProps","itemProps","flexBasic","hidden","booleanType","itemStyle","classes","flexClass","Row","app","Col","Item","Rowflex","Colflex","Flexitem"],"mappings":"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"}
@@ -0,0 +1,21 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { FormRules as ElFormRules, FormItemRule as ElFormItemRule } from 'element-plus';
3
+ import { Arrayable as ElArrayable } from 'element-plus/es/utils/typescript';
4
+ export type FormRules = ElFormRules;
5
+ export type FormItemRule = ElFormItemRule;
6
+ export type Arrayable<T> = ElArrayable<T>;
7
+ export interface FormProps {
8
+ rules?: FormRules;
9
+ itemSpan?: number;
10
+ itemLabelWidth?: string | number;
11
+ disabled?: boolean;
12
+ }
13
+ export interface FormExpose {
14
+ validate: () => Promise<boolean>;
15
+ }
16
+ export interface FormContext {
17
+ model: Record<string, any>;
18
+ rules?: FormRules;
19
+ itemSpan: number;
20
+ }
21
+ export declare const formContextKey: InjectionKey<FormContext>;
@@ -0,0 +1,5 @@
1
+ const o = Symbol("formContextKey");
2
+ export {
3
+ o as formContextKey
4
+ };
5
+ //# sourceMappingURL=Form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.js","sources":["../../../src/components/Form/Form.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\nimport type { FormRules as ElFormRules, FormItemRule as ElFormItemRule } from 'element-plus'\r\nimport type { Arrayable as ElArrayable } from 'element-plus/es/utils/typescript'\r\n\r\nexport type FormRules = ElFormRules\r\nexport type FormItemRule = ElFormItemRule\r\nexport type Arrayable<T> = ElArrayable<T>\r\n\r\nexport interface FormProps {\r\n rules?: FormRules\r\n itemSpan?: number\r\n itemLabelWidth?: string | number\r\n disabled?: boolean\r\n}\r\n\r\nexport interface FormExpose {\r\n validate: () => Promise<boolean>\r\n}\r\n\r\nexport interface FormContext {\r\n model: Record<string, any>\r\n rules?: FormRules\r\n itemSpan: number\r\n}\r\n\r\nexport const formContextKey: InjectionKey<FormContext> = Symbol('formContextKey')\r\n"],"names":["formContextKey"],"mappings":"AAyBa,MAAAA,IAA4C,OAAO,gBAAgB;"}