orion-design 0.1.31 → 0.1.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. package/README.md +5 -5
  2. package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
  3. package/dist/Throne/hooks/use-throne-context.js +15 -0
  4. package/dist/Throne/hooks/use-throne-context.js.map +1 -0
  5. package/dist/Throne/index.d.ts +1 -1
  6. package/dist/Throne/index.js +14 -30
  7. package/dist/Throne/index.js.map +1 -1
  8. package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
  9. package/dist/components/Button/index.js +36 -41
  10. package/dist/components/Button/index.js.map +1 -1
  11. package/dist/components/Flex/index.js +89 -122
  12. package/dist/components/Flex/index.js.map +1 -1
  13. package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
  14. package/dist/components/Form/Form.js +2 -2
  15. package/dist/components/Form/Form.js.map +1 -1
  16. package/dist/components/Form/LovInput/LovInput.js +2 -2
  17. package/dist/components/Form/LovInput/LovInput.js.map +1 -1
  18. package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
  19. package/dist/components/Form/LovInput/hooks/useLov.js +5 -5
  20. package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -1
  21. package/dist/components/Form/LovInput/index.js +4 -4
  22. package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
  23. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
  24. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
  25. package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
  26. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
  27. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
  28. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
  29. package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
  30. package/dist/components/Form/MultiTableSelect/index.js +7 -0
  31. package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
  32. package/dist/components/Form/hooks/FormItemValidateTrigger.js +2 -2
  33. package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -1
  34. package/dist/components/Form/hooks/index.js +69 -127
  35. package/dist/components/Form/hooks/index.js.map +1 -1
  36. package/dist/components/Form/index.d.ts +3 -0
  37. package/dist/components/Form/index.js +790 -829
  38. package/dist/components/Form/index.js.map +1 -1
  39. package/dist/components/Form/utils/index.js +18 -30
  40. package/dist/components/Form/utils/index.js.map +1 -1
  41. package/dist/components/LovTable/LovPagetable.vue.d.ts +510 -6
  42. package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
  43. package/dist/components/LovTable/index.d.ts +489 -5
  44. package/dist/components/LovTable/index.js +104 -179
  45. package/dist/components/LovTable/index.js.map +1 -1
  46. package/dist/components/Modal/index.js +56 -111
  47. package/dist/components/Modal/index.js.map +1 -1
  48. package/dist/components/Modal/types.d.ts +1 -1
  49. package/dist/components/Modal/types.js +3 -4
  50. package/dist/components/Modal/types.js.map +1 -1
  51. package/dist/components/Modal/useModal.js +5 -5
  52. package/dist/components/Modal/useModal.js.map +1 -1
  53. package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +880 -0
  54. package/dist/components/MultiTableSelectPagetable/index.d.ts +462 -0
  55. package/dist/components/MultiTableSelectPagetable/index.js +164 -0
  56. package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
  57. package/dist/components/Pagetable/Pagetable.d.ts +96 -3
  58. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +14 -1
  59. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +14 -1
  60. package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
  61. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +14 -1
  62. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +14 -1
  63. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +14 -1
  64. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +14 -1
  65. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +14 -1
  66. package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
  67. package/dist/components/Pagetable/hooks/useCode.js +24 -0
  68. package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
  69. package/dist/components/Pagetable/hooks/useColumns.js +85 -88
  70. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  71. package/dist/components/Pagetable/index.d.ts +159 -2
  72. package/dist/components/Pagetable/index.js +601 -684
  73. package/dist/components/Pagetable/index.js.map +1 -1
  74. package/dist/components/Pagetable/utils/index.js +54 -92
  75. package/dist/components/Pagetable/utils/index.js.map +1 -1
  76. package/dist/components/Querytable/Querytable.d.ts +80 -2
  77. package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
  78. package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
  79. package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
  80. package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
  81. package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
  82. package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
  83. package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
  84. package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
  85. package/dist/components/Querytable/hooks/useColumns.js +79 -82
  86. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  87. package/dist/components/Querytable/index.d.ts +147 -1
  88. package/dist/components/Querytable/index.js +526 -579
  89. package/dist/components/Querytable/index.js.map +1 -1
  90. package/dist/components/Querytable/utils/index.js +54 -92
  91. package/dist/components/Querytable/utils/index.js.map +1 -1
  92. package/dist/components/RichTextEditor/index.js +74 -100
  93. package/dist/components/RichTextEditor/index.js.map +1 -1
  94. package/dist/components/Tabs/constants.js +2 -2
  95. package/dist/components/Tabs/constants.js.map +1 -1
  96. package/dist/components/Tabs/index.js +358 -603
  97. package/dist/components/Tabs/index.js.map +1 -1
  98. package/dist/components/Tabs/tab-bar.js +6 -6
  99. package/dist/components/Tabs/tab-bar.js.map +1 -1
  100. package/dist/components/Tabs/tab-pane.js +3 -3
  101. package/dist/components/Tabs/tab-pane.js.map +1 -1
  102. package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
  103. package/dist/components/_constants/aria.js +2 -2
  104. package/dist/components/_constants/aria.js.map +1 -1
  105. package/dist/components/_constants/event.js +4 -6
  106. package/dist/components/_constants/event.js.map +1 -1
  107. package/dist/components/_constants/index.js +6 -6
  108. package/dist/components/_hooks/index.js +7 -7
  109. package/dist/components/_hooks/use-namespace/index.js +39 -74
  110. package/dist/components/_hooks/use-namespace/index.js.map +1 -1
  111. package/dist/components/_hooks/use-ordered-children/index.js +19 -29
  112. package/dist/components/_hooks/use-ordered-children/index.js.map +1 -1
  113. package/dist/components/_util/arrays.js +5 -9
  114. package/dist/components/_util/arrays.js.map +1 -1
  115. package/dist/components/_util/browser.js +6 -6
  116. package/dist/components/_util/browser.js.map +1 -1
  117. package/dist/components/_util/classNames.js +17 -22
  118. package/dist/components/_util/classNames.js.map +1 -1
  119. package/dist/components/_util/dom/aria.js +39 -74
  120. package/dist/components/_util/dom/aria.js.map +1 -1
  121. package/dist/components/_util/dom/element.js +8 -9
  122. package/dist/components/_util/dom/element.js.map +1 -1
  123. package/dist/components/_util/dom/event.js +7 -14
  124. package/dist/components/_util/dom/event.js.map +1 -1
  125. package/dist/components/_util/dom/index.js +36 -36
  126. package/dist/components/_util/dom/position.js +25 -49
  127. package/dist/components/_util/dom/position.js.map +1 -1
  128. package/dist/components/_util/dom/scroll.js +61 -103
  129. package/dist/components/_util/dom/scroll.js.map +1 -1
  130. package/dist/components/_util/dom/style.js +50 -65
  131. package/dist/components/_util/dom/style.js.map +1 -1
  132. package/dist/components/_util/easings.js +4 -8
  133. package/dist/components/_util/easings.js.map +1 -1
  134. package/dist/components/_util/error.js +11 -12
  135. package/dist/components/_util/error.js.map +1 -1
  136. package/dist/components/_util/functions.js +3 -3
  137. package/dist/components/_util/i18n.js +2 -2
  138. package/dist/components/_util/i18n.js.map +1 -1
  139. package/dist/components/_util/index.js +137 -137
  140. package/dist/components/_util/isValid.js +2 -4
  141. package/dist/components/_util/isValid.js.map +1 -1
  142. package/dist/components/_util/objects.js +14 -18
  143. package/dist/components/_util/objects.js.map +1 -1
  144. package/dist/components/_util/props-util/index.js +20 -46
  145. package/dist/components/_util/props-util/index.js.map +1 -1
  146. package/dist/components/_util/props-util/initDefaultProps.js +10 -18
  147. package/dist/components/_util/props-util/initDefaultProps.js.map +1 -1
  148. package/dist/components/_util/raf.js +4 -5
  149. package/dist/components/_util/raf.js.map +1 -1
  150. package/dist/components/_util/rand.js +3 -4
  151. package/dist/components/_util/rand.js.map +1 -1
  152. package/dist/components/_util/strings.js +8 -9
  153. package/dist/components/_util/strings.js.map +1 -1
  154. package/dist/components/_util/throttleByRaf.js +10 -16
  155. package/dist/components/_util/throttleByRaf.js.map +1 -1
  156. package/dist/components/_util/type.js +38 -41
  157. package/dist/components/_util/type.js.map +1 -1
  158. package/dist/components/_util/types.js +22 -41
  159. package/dist/components/_util/types.js.map +1 -1
  160. package/dist/components/_util/typescript.js +2 -2
  161. package/dist/components/_util/typescript.js.map +1 -1
  162. package/dist/components/_util/util.js +43 -85
  163. package/dist/components/_util/util.js.map +1 -1
  164. package/dist/components/_util/vue/global-node.js +15 -27
  165. package/dist/components/_util/vue/global-node.js.map +1 -1
  166. package/dist/components/_util/vue/icon.js +25 -29
  167. package/dist/components/_util/vue/icon.js.map +1 -1
  168. package/dist/components/_util/vue/index.js +41 -41
  169. package/dist/components/_util/vue/install.js +18 -35
  170. package/dist/components/_util/vue/install.js.map +1 -1
  171. package/dist/components/_util/vue/props/index.js +6 -6
  172. package/dist/components/_util/vue/props/runtime.js +30 -46
  173. package/dist/components/_util/vue/props/runtime.js.map +1 -1
  174. package/dist/components/_util/vue/refs.js +6 -12
  175. package/dist/components/_util/vue/refs.js.map +1 -1
  176. package/dist/components/_util/vue/size.js +3 -5
  177. package/dist/components/_util/vue/size.js.map +1 -1
  178. package/dist/components/_util/vue/validator.js +4 -5
  179. package/dist/components/_util/vue/validator.js.map +1 -1
  180. package/dist/components/_util/vue/vnode.js +54 -100
  181. package/dist/components/_util/vue/vnode.js.map +1 -1
  182. package/dist/components/_util/vue-types/index.js +220 -231
  183. package/dist/components/_util/vue-types/index.js.map +1 -1
  184. package/dist/components/components.d.ts +2 -0
  185. package/dist/components/components.js +24 -20
  186. package/dist/components/components.js.map +1 -1
  187. package/dist/components/index.js +43 -38
  188. package/dist/components/index.js.map +1 -1
  189. package/dist/components-DP9bnDLm.js +48 -0
  190. package/dist/components-DP9bnDLm.js.map +1 -0
  191. package/dist/error/OrionError.js +4 -8
  192. package/dist/error/OrionError.js.map +1 -1
  193. package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
  194. package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
  195. package/dist/index.css +1 -797
  196. package/dist/index.d.ts +1 -0
  197. package/dist/index.js +46 -36
  198. package/dist/index.js.map +1 -1
  199. package/dist/print/LodopFuncs.js +43 -101
  200. package/dist/print/LodopFuncs.js.map +1 -1
  201. package/dist/print/index.js +108 -200
  202. package/dist/print/index.js.map +1 -1
  203. package/dist/request/ErrorHandlerChain.js +14 -17
  204. package/dist/request/ErrorHandlerChain.js.map +1 -1
  205. package/dist/request/RequestFilterChain.js +13 -16
  206. package/dist/request/RequestFilterChain.js.map +1 -1
  207. package/dist/request/ResponseParserChain.js +14 -17
  208. package/dist/request/ResponseParserChain.js.map +1 -1
  209. package/dist/request/disivion/DateSerializer.js +22 -47
  210. package/dist/request/disivion/DateSerializer.js.map +1 -1
  211. package/dist/request/disivion/DivisionErrorHandler.js +25 -40
  212. package/dist/request/disivion/DivisionErrorHandler.js.map +1 -1
  213. package/dist/request/disivion/DivisionResponseParser.js +10 -16
  214. package/dist/request/disivion/DivisionResponseParser.js.map +1 -1
  215. package/dist/request/disivion/index.js +201 -305
  216. package/dist/request/disivion/index.js.map +1 -1
  217. package/dist/request/error/BizExceptionResponseError.js +5 -11
  218. package/dist/request/error/BizExceptionResponseError.js.map +1 -1
  219. package/dist/request/error/ExceptionResponseError.js +5 -11
  220. package/dist/request/error/ExceptionResponseError.js.map +1 -1
  221. package/dist/request/error/ResponseError.js +4 -9
  222. package/dist/request/error/ResponseError.js.map +1 -1
  223. package/dist/request/error/SessionExceptionResponseError.js +5 -11
  224. package/dist/request/error/SessionExceptionResponseError.js.map +1 -1
  225. package/dist/request/index.js +11 -11
  226. package/dist/utils/DateUtil.js +33 -48
  227. package/dist/utils/DateUtil.js.map +1 -1
  228. package/dist/utils/NumberUtil.js +6 -6
  229. package/dist/utils/NumberUtil.js.map +1 -1
  230. package/dist/utils/cloneDeep.js +2 -2
  231. package/dist/utils/delay.js +3 -3
  232. package/dist/utils/delay.js.map +1 -1
  233. package/dist/utils/functions.js +3 -3
  234. package/dist/utils/index.js +12 -12
  235. package/dist/utils/md5.js +93 -191
  236. package/dist/utils/md5.js.map +1 -1
  237. package/dist/utils/uuid.js +25 -35
  238. package/dist/utils/uuid.js.map +1 -1
  239. package/dist/version/index.js +2 -2
  240. package/dist/version/version.d.ts +1 -1
  241. package/dist/version/version.js +2 -2
  242. package/dist/version/version.js.map +1 -1
  243. package/package.json +1 -1
  244. package/dist/_commonjsHelpers-DWwsNxpa.js +0 -9
  245. package/dist/_commonjsHelpers-DWwsNxpa.js.map +0 -1
  246. package/dist/components-8oZ2kpUC.js +0 -27
  247. package/dist/components-8oZ2kpUC.js.map +0 -1
  248. package/dist/components-B3d9m_tn.js +0 -27
  249. package/dist/components-B3d9m_tn.js.map +0 -1
  250. package/dist/functions-BeMkokbY.js +0 -63
  251. package/dist/functions-BeMkokbY.js.map +0 -1
  252. package/dist/index-BOKLZnqH.js +0 -54
  253. package/dist/index-BOKLZnqH.js.map +0 -1
  254. package/dist/index-D1m0KTpK.js +0 -69
  255. package/dist/index-D1m0KTpK.js.map +0 -1
  256. package/dist/index-DR5ZP7mD.js +0 -160
  257. package/dist/index-DR5ZP7mD.js.map +0 -1
  258. package/dist/index-DkwIULcN.js +0 -200
  259. package/dist/index-DkwIULcN.js.map +0 -1
package/README.md CHANGED
@@ -1,5 +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).
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,5 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ import { ThroneContextProviderContext } from '../../components/Throne/ThroneContextProvider';
3
+ export declare const throneContextKey: InjectionKey<Ref<Record<string, any> | undefined>>;
4
+ export declare function useThroneContext(): Ref<Record<string, any> | undefined> | undefined;
5
+ export declare const provideThroneContext: (props: ThroneContextProviderContext) => import('vue').ComputedRef<Record<string, any> | undefined>;
@@ -0,0 +1,15 @@
1
+ import { inject as n, computed as r, provide as c } from "vue";
2
+ const e = Symbol("throneContext");
3
+ function i() {
4
+ return n(e, void 0);
5
+ }
6
+ const u = (t) => {
7
+ const o = r(() => t.context || void 0);
8
+ return c(e, o), o;
9
+ };
10
+ export {
11
+ u as provideThroneContext,
12
+ e as throneContextKey,
13
+ i as useThroneContext
14
+ };
15
+ //# sourceMappingURL=use-throne-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-throne-context.js","sources":["../../../src/Throne/hooks/use-throne-context.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, provide, ref, unref } from 'vue'\n\nimport type { InjectionKey } from 'vue'\n\nexport const throneContextKey: InjectionKey<Ref<Record<string, any> | undefined>> = Symbol('throneContext')\n\nimport type { App, Ref } from 'vue'\nimport type { ThroneContextProviderContext } from '../../components/Throne/ThroneContextProvider'\n\n\nexport function useThroneContext(): Ref<Record<string, any> | undefined> | undefined {\n const context = inject(throneContextKey, undefined)\n return context\n}\n\nexport const provideThroneContext = (props: ThroneContextProviderContext) => {\n const context = computed(() => {\n return props.context || undefined\n })\n\n provide(throneContextKey, context)\n\n return context\n}\n"],"names":["throneContextKey","useThroneContext","inject","provideThroneContext","props","context","computed","provide"],"mappings":";AAIa,MAAAA,IAAuE,OAAO,eAAe;AAMnG,SAASC,IAAqE;AAE5E,SADSC,EAAOF,GAAkB,MAAS;AAEpD;AAEa,MAAAG,IAAuB,CAACC,MAAwC;AACrE,QAAAC,IAAUC,EAAS,MAChBF,EAAM,WAAW,MACzB;AAED,SAAAG,EAAQP,GAAkBK,CAAO,GAE1BA;AACT;"}
@@ -3,7 +3,7 @@ import { CodeData } from '../components/types';
3
3
  export interface ThroneType {
4
4
  hasAuth: (authId: string) => boolean | null;
5
5
  getIcon: (iconId: string) => () => unknown;
6
- getCode: (codeName: string) => Ref<CodeData>;
6
+ getCode: (codeName: string, context?: Record<string, any>) => Ref<CodeData>;
7
7
  impl: (throne: Partial<ThroneType>) => void;
8
8
  }
9
9
  declare const Throne: ThroneType;
@@ -1,36 +1,20 @@
1
- import OrionError from "../error/OrionError.js";
2
- let hasAuth = () => {
3
- throw new OrionError(`Throne.hasAuth not configured!`);
1
+ import o from "../error/OrionError.js";
2
+ let t = () => {
3
+ throw new o("Throne.hasAuth not configured!");
4
+ }, n = (e) => {
5
+ throw new o("Throne.getIcon not configured!");
6
+ }, r = (e) => {
7
+ throw new o("Throne.getCode not configured!");
4
8
  };
5
- let getIcon = (iconId) => {
6
- throw new OrionError(`Throne.getIcon not configured!`);
7
- };
8
- let getCode = (codeName) => {
9
- throw new OrionError(`Throne.getCode not configured!`);
10
- };
11
- const Throne = {
12
- hasAuth: (authId) => {
13
- return hasAuth(authId);
14
- },
15
- getIcon: (iconId) => {
16
- return getIcon(iconId);
17
- },
18
- getCode: (codeName) => {
19
- return getCode(codeName);
20
- },
21
- impl: (throne) => {
22
- if (throne.hasAuth) {
23
- hasAuth = throne.hasAuth;
24
- }
25
- if (throne.getIcon) {
26
- getIcon = throne.getIcon;
27
- }
28
- if (throne.getCode) {
29
- getCode = throne.getCode;
30
- }
9
+ const u = {
10
+ hasAuth: (e) => t(e),
11
+ getIcon: (e) => n(e),
12
+ getCode: (e, g) => r(e, g),
13
+ impl: (e) => {
14
+ e.hasAuth && (t = e.hasAuth), e.getIcon && (n = e.getIcon), e.getCode && (r = e.getCode);
31
15
  }
32
16
  };
33
17
  export {
34
- Throne as default
18
+ u as default
35
19
  };
36
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/Throne/index.ts"],"sourcesContent":["import OrionError from '../error/OrionError'\r\nimport type { Ref } from 'vue'\r\n\r\nimport type { CodeData } from '../components/types'\r\n\r\nexport interface ThroneType {\r\n hasAuth: (authId: string) => boolean | null\r\n getIcon: (iconId: string) => () => unknown\r\n getCode: (codeName: string) => Ref<CodeData>\r\n impl: (throne: Partial<ThroneType>) => void\r\n}\r\n\r\nlet hasAuth: ThroneType['hasAuth'] = () => {\r\n throw new OrionError(`Throne.hasAuth not configured!`)\r\n}\r\n\r\nlet getIcon: ThroneType['getIcon'] = (iconId) => {\r\n throw new OrionError(`Throne.getIcon not configured!`)\r\n}\r\n\r\nlet getCode: ThroneType['getCode'] = (codeName) => {\r\n throw new OrionError(`Throne.getCode not configured!`)\r\n}\r\n\r\nconst Throne: ThroneType = {\r\n hasAuth: (authId) => {\r\n return hasAuth(authId)\r\n },\r\n getIcon: (iconId) => {\r\n return getIcon(iconId)\r\n },\r\n getCode: (codeName) => {\r\n return getCode(codeName)\r\n },\r\n impl: (throne) => {\r\n if (throne.hasAuth) {\r\n hasAuth = throne.hasAuth\r\n }\r\n\r\n if (throne.getIcon) {\r\n getIcon = throne.getIcon\r\n }\r\n\r\n if (throne.getCode) {\r\n getCode = throne.getCode\r\n }\r\n },\r\n}\r\n\r\nexport default Throne\r\n"],"names":[],"mappings":";AAYA,IAAI,UAAiC,MAAM;AACnC,QAAA,IAAI,WAAW,gCAAgC;AACvD;AAEA,IAAI,UAAiC,CAAC,WAAW;AACzC,QAAA,IAAI,WAAW,gCAAgC;AACvD;AAEA,IAAI,UAAiC,CAAC,aAAa;AAC3C,QAAA,IAAI,WAAW,gCAAgC;AACvD;AAEA,MAAM,SAAqB;AAAA,EACzB,SAAS,CAAC,WAAW;AACnB,WAAO,QAAQ,MAAM;AAAA,EACvB;AAAA,EACA,SAAS,CAAC,WAAW;AACnB,WAAO,QAAQ,MAAM;AAAA,EACvB;AAAA,EACA,SAAS,CAAC,aAAa;AACrB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EACA,MAAM,CAAC,WAAW;AAChB,QAAI,OAAO,SAAS;AAClB,gBAAU,OAAO;AAAA,IACnB;AAEA,QAAI,OAAO,SAAS;AAClB,gBAAU,OAAO;AAAA,IACnB;AAEA,QAAI,OAAO,SAAS;AAClB,gBAAU,OAAO;AAAA,IACnB;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/Throne/index.ts"],"sourcesContent":["import OrionError from '../error/OrionError'\r\nimport type { Ref } from 'vue'\r\n\r\nimport type { CodeData } from '../components/types'\r\n\r\nexport interface ThroneType {\r\n hasAuth: (authId: string) => boolean | null\r\n getIcon: (iconId: string) => () => unknown\r\n getCode: (codeName: string, context?: Record<string, any>) => Ref<CodeData>\r\n impl: (throne: Partial<ThroneType>) => void\r\n}\r\n\r\nlet hasAuth: ThroneType['hasAuth'] = () => {\r\n throw new OrionError(`Throne.hasAuth not configured!`)\r\n}\r\n\r\nlet getIcon: ThroneType['getIcon'] = (iconId) => {\r\n throw new OrionError(`Throne.getIcon not configured!`)\r\n}\r\n\r\nlet getCode: ThroneType['getCode'] = (codeName) => {\r\n throw new OrionError(`Throne.getCode not configured!`)\r\n}\r\n\r\nconst Throne: ThroneType = {\r\n hasAuth: (authId) => {\r\n return hasAuth(authId)\r\n },\r\n getIcon: (iconId) => {\r\n return getIcon(iconId)\r\n },\r\n getCode: (codeName, context?: Record<string, any>) => {\r\n return getCode(codeName, context)\r\n },\r\n impl: (throne) => {\r\n if (throne.hasAuth) {\r\n hasAuth = throne.hasAuth\r\n }\r\n\r\n if (throne.getIcon) {\r\n getIcon = throne.getIcon\r\n }\r\n\r\n if (throne.getCode) {\r\n getCode = throne.getCode\r\n }\r\n },\r\n}\r\n\r\nexport default Throne\r\n"],"names":["hasAuth","OrionError","getIcon","iconId","getCode","codeName","Throne","authId","context","throne"],"mappings":";AAYA,IAAIA,IAAiC,MAAM;AACnC,QAAA,IAAIC,EAAW,gCAAgC;AACvD,GAEIC,IAAiC,CAACC,MAAW;AACzC,QAAA,IAAIF,EAAW,gCAAgC;AACvD,GAEIG,IAAiC,CAACC,MAAa;AAC3C,QAAA,IAAIJ,EAAW,gCAAgC;AACvD;AAEA,MAAMK,IAAqB;AAAA,EACzB,SAAS,CAACC,MACDP,EAAQO,CAAM;AAAA,EAEvB,SAAS,CAACJ,MACDD,EAAQC,CAAM;AAAA,EAEvB,SAAS,CAACE,GAAUG,MACXJ,EAAQC,GAAUG,CAAO;AAAA,EAElC,MAAM,CAACC,MAAW;AAChB,IAAIA,EAAO,YACTT,IAAUS,EAAO,UAGfA,EAAO,YACTP,IAAUO,EAAO,UAGfA,EAAO,YACTL,IAAUK,EAAO;AAAA,EAErB;AACF;"}
@@ -1,4 +1,6 @@
1
+ import { CSSProperties } from 'vue';
1
2
  export interface ButtonGroupProps {
2
3
  gutter?: boolean | string;
3
4
  align?: 'left' | 'center' | 'right';
5
+ style?: CSSProperties;
4
6
  }
@@ -1,53 +1,48 @@
1
1
  import "lodash-es";
2
- import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, computed, createElementBlock, normalizeStyle, createVNode } from "vue";
3
- import { withInstall } from "../_util/vue/install.js";
4
- import { ElButton } from "element-plus";
5
- import { S as Space } from "../../index-BOKLZnqH.js";
6
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7
- ...{ name: "OButton" },
2
+ import { defineComponent as a, openBlock as r, createBlock as l, unref as n, withCtx as s, renderSlot as i, computed as m, createElementBlock as p, normalizeStyle as c, createVNode as f } from "vue";
3
+ import { withInstall as d } from "../_util/vue/install.js";
4
+ import { ElButton as u } from "element-plus";
5
+ import { S as g } from "../../index-BbsXWo7C.js";
6
+ const B = /* @__PURE__ */ a({
7
+ name: "OButton",
8
8
  __name: "Button",
9
- setup(__props) {
10
- return (_ctx, _cache) => {
11
- return _ctx.$slots.default ? (openBlock(), createBlock(unref(ElButton), { key: 0 }, {
12
- default: withCtx(() => [
13
- renderSlot(_ctx.$slots, "default")
14
- ]),
15
- _: 3
16
- })) : (openBlock(), createBlock(unref(ElButton), { key: 1 }));
17
- };
9
+ setup(e) {
10
+ return (t, o) => t.$slots.default ? (r(), l(n(u), { key: 0 }, {
11
+ default: s(() => [
12
+ i(t.$slots, "default")
13
+ ]),
14
+ _: 3
15
+ })) : (r(), l(n(u), { key: 1 }));
18
16
  }
19
- });
20
- const _sfc_main = /* @__PURE__ */ defineComponent({
21
- ...{ name: "OButtongroup", inheritAttrs: false },
17
+ }), _ = /* @__PURE__ */ a({
18
+ name: "OButtongroup",
19
+ inheritAttrs: !1,
22
20
  __name: "ButtonGroup",
23
21
  props: {
24
22
  gutter: { type: [Boolean, String] },
25
- align: { default: "right" }
23
+ align: { default: "right" },
24
+ style: {}
26
25
  },
27
- setup(__props) {
28
- const style = computed(() => {
29
- return {
30
- textAlign: __props.align
31
- };
32
- });
33
- return (_ctx, _cache) => {
34
- return openBlock(), createElementBlock("div", {
35
- style: normalizeStyle(style.value)
36
- }, [
37
- createVNode(unref(Space), { gutter: _ctx.gutter }, {
38
- default: withCtx(() => [
39
- renderSlot(_ctx.$slots, "default")
40
- ]),
41
- _: 3
42
- }, 8, ["gutter"])
43
- ], 4);
44
- };
26
+ setup(e) {
27
+ const t = m(() => ({
28
+ textAlign: e.align,
29
+ ...e.style
30
+ }));
31
+ return (o, y) => (r(), p("div", {
32
+ style: c(t.value)
33
+ }, [
34
+ f(n(g), { gutter: o.gutter }, {
35
+ default: s(() => [
36
+ i(o.$slots, "default")
37
+ ]),
38
+ _: 3
39
+ }, 8, ["gutter"])
40
+ ], 4));
45
41
  }
46
- });
47
- const index = withInstall(_sfc_main$1, {
48
- ButtonGroup: _sfc_main
42
+ }), w = d(B, {
43
+ ButtonGroup: _
49
44
  });
50
45
  export {
51
- index as default
46
+ w as default
52
47
  };
53
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Button/ButtonGroup/ButtonGroup.vue","../../../src/components/Button/index.ts"],"sourcesContent":["<template>\r\n <div :style=\"style\">\r\n <space :gutter=\"gutter\"> <slot></slot> </space>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, CSSProperties } from 'vue'\r\nimport type { ButtonGroupProps } from './ButtonGroup'\r\nimport Space from '../../Space'\r\n\r\ndefineOptions({ name: 'OButtongroup', inheritAttrs: false })\r\n\r\nconst { gutter, align = 'right' } = defineProps<ButtonGroupProps>()\r\nconst style = computed<CSSProperties>(() => {\r\n return {\r\n textAlign: align,\r\n }\r\n})\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Button from './Button.vue'\r\nimport ButtonGroup from './ButtonGroup/ButtonGroup.vue'\r\n\r\nexport default withInstall<typeof Button, { ButtonGroup: typeof ButtonGroup }>(Button, {\r\n ButtonGroup\r\n})\r\n"],"names":["Button","ButtonGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM,UAAA,QAAQ,SAAwB,MAAM;AACnC,aAAA;AAAA,QACL,WAAW,QAAA;AAAA,MAAA;AAAA,IACb,CACD;;;;;;;;;;;;;;;ACbD,MAAe,QAAA,YAAgEA,aAAQ;AAAA,EAAA,aACrFC;AACF,CAAC;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Button/ButtonGroup/ButtonGroup.vue","../../../src/components/Button/index.ts"],"sourcesContent":["<template>\r\n <div :style=\"normalizedStyle\">\r\n <space :gutter=\"gutter\">\r\n <slot></slot>\r\n </space>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, CSSProperties } from 'vue'\r\nimport type { ButtonGroupProps } from './ButtonGroup'\r\nimport Space from '../../Space'\r\n\r\ndefineOptions({ name: 'OButtongroup', inheritAttrs: false })\r\n\r\nconst { gutter, align = 'right', style } = defineProps<ButtonGroupProps>()\r\nconst normalizedStyle = computed<CSSProperties>(() => {\r\n return {\r\n textAlign: align,\r\n ...style\r\n }\r\n})\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Button from './Button.vue'\r\nimport ButtonGroup from './ButtonGroup/ButtonGroup.vue'\r\n\r\nexport default withInstall<typeof Button, { ButtonGroup: typeof ButtonGroup }>(Button, {\r\n ButtonGroup\r\n})\r\n"],"names":["normalizedStyle","computed","__props","index","withInstall","Button","ButtonGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgBM,UAAAA,IAAkBC,EAAwB,OACvC;AAAA,MACL,WAAWC,EAAA;AAAA,MACX,GAAGA;MAEN;;;;;;;;;;;;IChBcC,IAAAC,EAAgEC,GAAQ;AAAA,EAAA,aACrFC;AACF,CAAC;"}
@@ -1,152 +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
- const rowProps = () => ({
6
- 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(),
7
7
  height: String
8
- });
9
- const Row = /* @__PURE__ */ defineComponent({
8
+ }), f = /* @__PURE__ */ s({
10
9
  name: "ORowflex",
11
- inheritAttrs: false,
12
- props: rowProps(),
13
- setup(props, {
14
- slots,
15
- attrs,
16
- emit,
17
- expose
10
+ inheritAttrs: !1,
11
+ props: v(),
12
+ setup(e, {
13
+ slots: i,
14
+ attrs: r,
15
+ emit: x,
16
+ expose: g
18
17
  }) {
19
- const style = computed(() => {
20
- const rowStyle = {};
21
- rowStyle.gap = props.gutter === true || props.gutter === "" ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : void 0;
22
- if (props.height) {
23
- if (props.height == "fill") {
24
- throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`);
25
- } else if (props.height == "need") ;
26
- else {
27
- rowStyle.height = props.height;
28
- }
29
- } else {
30
- rowStyle.height = "100%";
31
- }
32
- 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;
33
27
  });
34
28
  return () => {
35
- var _a;
36
- const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
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
- const colProps = () => ({
46
- gutter: anyType(),
37
+ }), B = () => ({
38
+ gutter: y(),
47
39
  height: String
48
- });
49
- const Col = /* @__PURE__ */ defineComponent({
40
+ }), c = /* @__PURE__ */ s({
50
41
  name: "OColflex",
51
- inheritAttrs: false,
52
- props: colProps(),
53
- setup(props, {
54
- slots,
55
- attrs,
56
- emit,
57
- expose
42
+ inheritAttrs: !1,
43
+ props: B(),
44
+ setup(e, {
45
+ slots: i,
46
+ attrs: r,
47
+ emit: x,
48
+ expose: g
58
49
  }) {
59
- const style = computed(() => {
60
- const rowStyle = {};
61
- rowStyle.gap = props.gutter === true || props.gutter === "" ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : void 0;
62
- if (props.height) {
63
- if (props.height == "fill") {
64
- throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`);
65
- } else if (props.height == "need") ;
66
- 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
- var _a;
76
- const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
77
- const cn = classNames("orion-flex", "orion-flex-column");
78
- return createVNode("div", {
79
- "class": [cn, attrs.class],
80
- "style": [style.value, attrs.style]
81
- }, [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]);
82
67
  };
83
68
  }
84
- });
85
- const itemProps = () => ({
69
+ }), C = () => ({
86
70
  flexBasic: String,
87
- hidden: booleanType(false)
88
- });
89
- const Item = /* @__PURE__ */ defineComponent({
71
+ hidden: w(!1)
72
+ }), u = /* @__PURE__ */ s({
90
73
  name: "OFlexitem",
91
- inheritAttrs: false,
92
- props: itemProps(),
93
- setup(props, {
94
- slots,
95
- attrs,
96
- emit,
97
- expose
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
- var _a;
124
- const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
125
- return createVNode("div", {
126
- "class": [classes.value, attrs.class],
127
- "style": [style.value, attrs.style]
128
- }, [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]);
129
101
  };
130
102
  }
131
103
  });
132
- Row.install = function(app) {
133
- app.component(Row.name, Row);
134
- return app;
104
+ f.install = function(e) {
105
+ return e.component(f.name, f), e;
135
106
  };
136
- Col.install = function(app) {
137
- app.component(Col.name, Col);
138
- return app;
107
+ c.install = function(e) {
108
+ return e.component(c.name, c), e;
139
109
  };
140
- Item.install = function(app) {
141
- app.component(Item.name, Item);
142
- return app;
110
+ u.install = function(e) {
111
+ return e.component(u.name, u), e;
143
112
  };
144
- const Rowflex = Row;
145
- const Colflex = Col;
146
- const Flexitem = Item;
113
+ const P = f, F = c, N = u;
147
114
  export {
148
- Colflex,
149
- Flexitem,
150
- Rowflex
115
+ F as Colflex,
116
+ N as Flexitem,
117
+ P as Rowflex
151
118
  };
152
119
  //# sourceMappingURL=index.js.map
@@ -1 +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"],"mappings":"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"}
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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"}
@@ -35,9 +35,9 @@ declare const _default: import('vue').DefineComponent<FileInputProps, {}, {}, {}
35
35
  readonly validateEvent: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
36
36
  readonly inputStyle: import('vue').StyleValue;
37
37
  readonly rows: number;
38
- readonly form?: string | undefined;
39
- readonly resize?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown> | undefined;
40
38
  readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never> | undefined;
39
+ readonly form?: string | undefined;
40
+ readonly resize?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "both" | "none" | "horizontal" | "vertical", unknown> | undefined;
41
41
  readonly id?: string | undefined;
42
42
  readonly formatter?: Function | undefined;
43
43
  readonly ariaLabel?: string | undefined;
@@ -164,7 +164,7 @@ declare const _default: import('vue').DefineComponent<FileInputProps, {}, {}, {}
164
164
  $root: import('vue').ComponentPublicInstance | null;
165
165
  $parent: import('vue').ComponentPublicInstance | null;
166
166
  $host: Element | null;
167
- $emit: ((event: "input", value: string) => void) & ((event: "clear") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
167
+ $emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
168
168
  $el: any;
169
169
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
170
170
  readonly ariaLabel: StringConstructor;
@@ -427,7 +427,7 @@ declare const _default: import('vue').DefineComponent<FileInputProps, {}, {}, {}
427
427
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
428
428
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
429
429
  onClear?: (() => any) | undefined;
430
- }, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "modelValue" | "focus" | "blur" | "readonly" | "autosize" | "autocomplete" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
430
+ }, "clear" | "ref" | "input" | "select" | "textarea" | "disabled" | "id" | "type" | "autofocus" | "modelValue" | "focus" | "blur" | "readonly" | "autosize" | "autocomplete" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
431
431
  input: import('vue').ShallowRef<HTMLInputElement | undefined>;
432
432
  textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
433
433
  ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
@@ -1,5 +1,5 @@
1
- const formContextKey = Symbol("formContextKey");
1
+ const o = Symbol("formContextKey");
2
2
  export {
3
- formContextKey
3
+ o as formContextKey
4
4
  };
5
5
  //# sourceMappingURL=Form.js.map
@@ -1 +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 modelValue: Record<string, any>\r\n}\r\n\r\nexport interface FormExpose {\r\n validate: () => Promise<boolean>\r\n}\r\n\r\nexport interface FormContext {\r\n modelValue: Record<string, any>\r\n updateModelValue: (name: string, value: any) => void\r\n updateModelValueMulti: (data: Record<string, any>) => void\r\n rules?: FormRules\r\n itemSpan: number\r\n disabled?: boolean\r\n}\r\n\r\nexport const formContextKey: InjectionKey<FormContext> = Symbol('formContextKey')\r\n"],"names":[],"mappings":"AA6Ba,MAAA,iBAA4C,OAAO,gBAAgB;"}
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 modelValue: Record<string, any>\r\n}\r\n\r\nexport interface FormExpose {\r\n validate: () => Promise<boolean>\r\n}\r\n\r\nexport interface FormContext {\r\n modelValue: Record<string, any>\r\n updateModelValue: (name: string, value: any) => void\r\n updateModelValueMulti: (data: Record<string, any>) => void\r\n rules?: FormRules\r\n itemSpan: number\r\n disabled?: boolean\r\n}\r\n\r\nexport const formContextKey: InjectionKey<FormContext> = Symbol('formContextKey')\r\n"],"names":["formContextKey"],"mappings":"AA6Ba,MAAAA,IAA4C,OAAO,gBAAgB;"}
@@ -1,5 +1,5 @@
1
- const lovContextKey = Symbol("lovContextKey");
1
+ const o = Symbol("lovContextKey");
2
2
  export {
3
- lovContextKey
3
+ o as lovContextKey
4
4
  };
5
5
  //# sourceMappingURL=LovInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LovInput.js","sources":["../../../../src/components/Form/LovInput/LovInput.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\r\nimport { FormItemRule, Arrayable } from '../Form'\r\n\r\nexport interface LovInputProps {\r\n name: string\r\n label?: string\r\n span?: number\r\n labelWidth?: string | number\r\n required?: boolean\r\n rules?: Arrayable<FormItemRule>\r\n maxlength?: string | number\r\n placeholder?: string\r\n disabled?: boolean\r\n readonly?: boolean\r\n fillMapping?: string | ((params: Record<string, any>) => void)\r\n}\r\n\r\nexport type KeydownHandler = (code: string) => void\r\n\r\nexport interface LovContext {\r\n lovValue: any\r\n backfill: (params: Record<string, any>) => void\r\n registerKeydownHandler: (handler: KeydownHandler) => void\r\n}\r\n\r\nexport const lovContextKey: InjectionKey<LovContext> = Symbol('lovContextKey')\r\n"],"names":[],"mappings":"AAyBa,MAAA,gBAA0C,OAAO,eAAe;"}
1
+ {"version":3,"file":"LovInput.js","sources":["../../../../src/components/Form/LovInput/LovInput.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\r\nimport { FormItemRule, Arrayable } from '../Form'\r\n\r\nexport interface LovInputProps {\r\n name: string\r\n label?: string\r\n span?: number\r\n labelWidth?: string | number\r\n required?: boolean\r\n rules?: Arrayable<FormItemRule>\r\n maxlength?: string | number\r\n placeholder?: string\r\n disabled?: boolean\r\n readonly?: boolean\r\n fillMapping?: string | ((params: Record<string, any>) => void)\r\n}\r\n\r\nexport type KeydownHandler = (code: string) => void\r\n\r\nexport interface LovContext {\r\n lovValue: any\r\n backfill: (params: Record<string, any>) => void\r\n registerKeydownHandler: (handler: KeydownHandler) => void\r\n}\r\n\r\nexport const lovContextKey: InjectionKey<LovContext> = Symbol('lovContextKey')\r\n"],"names":["lovContextKey"],"mappings":"AAyBa,MAAAA,IAA0C,OAAO,eAAe;"}