orion-design 0.1.9 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. package/README.md +5 -5
  2. package/dist/components/Button/index.js +11 -10
  3. package/dist/components/Button/index.js.map +1 -1
  4. package/dist/components/Form/FileInput/FileInput.vue.d.ts +1 -1
  5. package/dist/components/Form/Form.d.ts +1 -0
  6. package/dist/components/Form/Form.js.map +1 -1
  7. package/dist/components/Form/LovInput/LovInput.d.ts +20 -0
  8. package/dist/components/Form/LovInput/LovInput.js +5 -0
  9. package/dist/components/Form/LovInput/LovInput.js.map +1 -0
  10. package/dist/components/Form/LovInput/LovInput.vue.d.ts +5351 -0
  11. package/dist/components/Form/LovInput/hooks/useLov.d.ts +1 -0
  12. package/dist/components/Form/LovInput/hooks/useLov.js +9 -0
  13. package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -0
  14. package/dist/components/Form/LovInput/index.d.ts +2 -0
  15. package/dist/components/Form/LovInput/index.js +7 -0
  16. package/dist/components/Form/LovInput/index.js.map +1 -0
  17. package/dist/components/Form/hooks/FormItemValidateTrigger.d.ts +15 -0
  18. package/dist/components/Form/hooks/FormItemValidateTrigger.js +18 -0
  19. package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -0
  20. package/dist/components/Form/hooks/index.d.ts +10 -0
  21. package/dist/components/Form/hooks/index.js +83 -0
  22. package/dist/components/Form/hooks/index.js.map +1 -0
  23. package/dist/components/Form/index.d.ts +3 -0
  24. package/dist/components/Form/index.js +328 -244
  25. package/dist/components/Form/index.js.map +1 -1
  26. package/dist/components/Pagetable/Pagetable.d.ts +16 -1
  27. package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +7 -7
  28. package/dist/components/Pagetable/index.d.ts +12 -1
  29. package/dist/components/Pagetable/index.js +243 -236
  30. package/dist/components/Pagetable/index.js.map +1 -1
  31. package/dist/components/Pagetable/utils/index.js +51 -154
  32. package/dist/components/Pagetable/utils/index.js.map +1 -1
  33. package/dist/components/Querytable/Querytable.d.ts +64 -0
  34. package/dist/components/Querytable/columns/QuerytableCellButton.d.ts +24 -0
  35. package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +78 -0
  36. package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +101 -0
  37. package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +78 -0
  38. package/dist/components/Querytable/columns/QuerytableColumnIndex.d.ts +5 -0
  39. package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +109 -0
  40. package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +114 -0
  41. package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +109 -0
  42. package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +75 -0
  43. package/dist/components/Querytable/columns/QuerytableColumngroup.d.ts +35 -0
  44. package/dist/components/Querytable/hooks/useColumns.d.ts +1 -0
  45. package/dist/components/Querytable/hooks/useColumns.js +96 -0
  46. package/dist/components/Querytable/hooks/useColumns.js.map +1 -0
  47. package/dist/components/Querytable/index.d.ts +66 -0
  48. package/dist/components/Querytable/index.js +510 -0
  49. package/dist/components/Querytable/index.js.map +1 -0
  50. package/dist/components/Querytable/interface.d.ts +10 -0
  51. package/dist/components/Querytable/interface.js +2 -0
  52. package/dist/components/Querytable/interface.js.map +1 -0
  53. package/dist/components/Querytable/utils/index.d.ts +15 -0
  54. package/dist/components/Querytable/utils/index.js +66 -0
  55. package/dist/components/Querytable/utils/index.js.map +1 -0
  56. package/dist/components/_util/arrays.js.map +1 -1
  57. package/dist/components/_util/browser.js.map +1 -1
  58. package/dist/components/_util/dom/aria.js.map +1 -1
  59. package/dist/components/_util/dom/element.js.map +1 -1
  60. package/dist/components/_util/dom/event.js.map +1 -1
  61. package/dist/components/_util/dom/position.js.map +1 -1
  62. package/dist/components/_util/dom/scroll.js.map +1 -1
  63. package/dist/components/_util/dom/style.js.map +1 -1
  64. package/dist/components/_util/easings.js.map +1 -1
  65. package/dist/components/_util/error.js.map +1 -1
  66. package/dist/components/_util/i18n.js.map +1 -1
  67. package/dist/components/_util/objects.js.map +1 -1
  68. package/dist/components/_util/raf.js.map +1 -1
  69. package/dist/components/_util/rand.js.map +1 -1
  70. package/dist/components/_util/strings.js.map +1 -1
  71. package/dist/components/_util/throttleByRaf.js.map +1 -1
  72. package/dist/components/_util/types.js.map +1 -1
  73. package/dist/components/_util/typescript.js.map +1 -1
  74. package/dist/components/_util/vue/global-node.js.map +1 -1
  75. package/dist/components/_util/vue/icon.js.map +1 -1
  76. package/dist/components/_util/vue/install.js.map +1 -1
  77. package/dist/components/_util/vue/props/runtime.js.map +1 -1
  78. package/dist/components/_util/vue/refs.js.map +1 -1
  79. package/dist/components/_util/vue/size.js.map +1 -1
  80. package/dist/components/_util/vue/validator.js.map +1 -1
  81. package/dist/components/_util/vue/vnode.js.map +1 -1
  82. package/dist/components/components.d.ts +2 -0
  83. package/dist/components/components.js +8 -6
  84. package/dist/components/components.js.map +1 -1
  85. package/dist/components/index.js +15 -13
  86. package/dist/components/index.js.map +1 -1
  87. package/dist/{components-CutWiB7Q.js → components-OIbu7HLW.js} +26 -24
  88. package/dist/{components-CutWiB7Q.js.map → components-OIbu7HLW.js.map} +1 -1
  89. package/dist/index-CC0EuWhe.js +108 -0
  90. package/dist/index-CC0EuWhe.js.map +1 -0
  91. package/dist/index.css +1 -1
  92. package/dist/index.js +14 -12
  93. package/dist/index.js.map +1 -1
  94. package/dist/version/version.d.ts +1 -1
  95. package/dist/version/version.js +1 -1
  96. package/dist/version/version.js.map +1 -1
  97. package/package.json +1 -1
  98. package/dist/components/Form/hooks/useForm.d.ts +0 -10
  99. package/dist/components/Form/hooks/useForm.js +0 -82
  100. package/dist/components/Form/hooks/useForm.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).
@@ -1,32 +1,33 @@
1
1
  import "lodash-es";
2
- import { defineComponent as r, openBlock as n, createBlock as p, unref as u, withCtx as l, renderSlot as a, computed as m, createElementBlock as s, normalizeStyle as i, createVNode as c } from "vue";
2
+ import { defineComponent as o, openBlock as n, createBlock as s, unref as u, withCtx as l, renderSlot as a, computed as i, createElementBlock as p, normalizeStyle as m, createVNode as c } from "vue";
3
3
  import { withInstall as f } from "../_util/vue/install.js";
4
4
  import { ElButton as _ } from "element-plus";
5
5
  import { S as d } from "../../index-BbsXWo7C.js";
6
- const g = /* @__PURE__ */ r({
6
+ const g = /* @__PURE__ */ o({
7
7
  name: "OButton",
8
8
  __name: "Button",
9
- setup(o) {
10
- return (t, e) => (n(), p(u(_), null, {
9
+ setup(r) {
10
+ return (t, e) => (n(), s(u(_), null, {
11
11
  default: l(() => [
12
12
  a(t.$slots, "default")
13
13
  ]),
14
14
  _: 3
15
15
  }));
16
16
  }
17
- }), B = /* @__PURE__ */ r({
17
+ }), B = /* @__PURE__ */ o({
18
18
  name: "OButtongroup",
19
+ inheritAttrs: !1,
19
20
  __name: "ButtonGroup",
20
21
  props: {
21
22
  gutter: { type: [Boolean, String] },
22
23
  align: { default: "right" }
23
24
  },
24
- setup(o) {
25
- const t = m(() => ({
26
- textAlign: o.align
25
+ setup(r) {
26
+ const t = i(() => ({
27
+ textAlign: r.align
27
28
  }));
28
- return (e, h) => (n(), s("div", {
29
- style: i(t.value)
29
+ return (e, h) => (n(), p("div", {
30
+ style: m(t.value)
30
31
  }, [
31
32
  c(u(d), { gutter: e.gutter }, {
32
33
  default: l(() => [
@@ -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' })\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":["style","computed","__props","index","withInstall","Button","ButtonGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAcM,UAAAA,IAAQC,EAAwB,OAC7B;AAAA,MACL,WAAWC;MAEd;;;;;;;;;;;;ICbcC,IAAAC,EAAgEC,GAAQ;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=\"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":["style","computed","__props","index","withInstall","Button","ButtonGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAcM,UAAAA,IAAQC,EAAwB,OAC7B;AAAA,MACL,WAAWC,EAAA;AAAA,IAAA,EAEd;;;;;;;;;;;;ICbcC,IAAAC,EAAgEC,GAAQ;AAAA,EAAA,aACrFC;AACF,CAAC;"}
@@ -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: "focus", evt: FocusEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => 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: "input", value: string) => void) & ((event: "clear") => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string) => 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;
@@ -17,6 +17,7 @@ export interface FormExpose {
17
17
  export interface FormContext {
18
18
  modelValue: Record<string, any>;
19
19
  updateModelValue: (name: string, value: any) => void;
20
+ updateModelValueMulti: (data: Record<string, any>) => void;
20
21
  rules?: FormRules;
21
22
  itemSpan: number;
22
23
  disabled?: boolean;
@@ -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 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":"AA4Ba,MAAAA,IAA4C,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;"}
@@ -0,0 +1,20 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { FormItemRule, Arrayable } from '../Form';
3
+ export interface LovInputProps {
4
+ name: string;
5
+ label?: string;
6
+ span?: number;
7
+ labelWidth?: string | number;
8
+ required?: boolean;
9
+ rules?: Arrayable<FormItemRule>;
10
+ maxlength?: string | number;
11
+ placeholder?: string;
12
+ disabled?: boolean;
13
+ readonly?: boolean;
14
+ fillMapping?: string | ((params: Record<string, any>) => void);
15
+ }
16
+ export interface LovContext {
17
+ lovValue: any;
18
+ backfill: (params: Record<string, any>) => void;
19
+ }
20
+ export declare const lovContextKey: InjectionKey<LovContext>;
@@ -0,0 +1,5 @@
1
+ const o = Symbol("lovContextKey");
2
+ export {
3
+ o as lovContextKey
4
+ };
5
+ //# sourceMappingURL=LovInput.js.map
@@ -0,0 +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 interface LovContext {\r\n lovValue: any\r\n backfill: (params: Record<string, any>) => void\r\n}\r\n\r\nexport const lovContextKey: InjectionKey<LovContext> = Symbol('lovContextKey')\r\n"],"names":["lovContextKey"],"mappings":"AAsBa,MAAAA,IAA0C,OAAO,eAAe;"}