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.
- package/README.md +5 -5
- package/dist/components/Button/index.js +11 -10
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +1 -1
- package/dist/components/Form/Form.d.ts +1 -0
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.d.ts +20 -0
- package/dist/components/Form/LovInput/LovInput.js +5 -0
- package/dist/components/Form/LovInput/LovInput.js.map +1 -0
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +5351 -0
- package/dist/components/Form/LovInput/hooks/useLov.d.ts +1 -0
- package/dist/components/Form/LovInput/hooks/useLov.js +9 -0
- package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -0
- package/dist/components/Form/LovInput/index.d.ts +2 -0
- package/dist/components/Form/LovInput/index.js +7 -0
- package/dist/components/Form/LovInput/index.js.map +1 -0
- package/dist/components/Form/hooks/FormItemValidateTrigger.d.ts +15 -0
- package/dist/components/Form/hooks/FormItemValidateTrigger.js +18 -0
- package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -0
- package/dist/components/Form/hooks/index.d.ts +10 -0
- package/dist/components/Form/hooks/index.js +83 -0
- package/dist/components/Form/hooks/index.js.map +1 -0
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Form/index.js +328 -244
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Pagetable/Pagetable.d.ts +16 -1
- package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +7 -7
- package/dist/components/Pagetable/index.d.ts +12 -1
- package/dist/components/Pagetable/index.js +243 -236
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Pagetable/utils/index.js +51 -154
- package/dist/components/Pagetable/utils/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +64 -0
- package/dist/components/Querytable/columns/QuerytableCellButton.d.ts +24 -0
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +78 -0
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +101 -0
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +78 -0
- package/dist/components/Querytable/columns/QuerytableColumnIndex.d.ts +5 -0
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +109 -0
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +114 -0
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +109 -0
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +75 -0
- package/dist/components/Querytable/columns/QuerytableColumngroup.d.ts +35 -0
- package/dist/components/Querytable/hooks/useColumns.d.ts +1 -0
- package/dist/components/Querytable/hooks/useColumns.js +96 -0
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -0
- package/dist/components/Querytable/index.d.ts +66 -0
- package/dist/components/Querytable/index.js +510 -0
- package/dist/components/Querytable/index.js.map +1 -0
- package/dist/components/Querytable/interface.d.ts +10 -0
- package/dist/components/Querytable/interface.js +2 -0
- package/dist/components/Querytable/interface.js.map +1 -0
- package/dist/components/Querytable/utils/index.d.ts +15 -0
- package/dist/components/Querytable/utils/index.js +66 -0
- package/dist/components/Querytable/utils/index.js.map +1 -0
- package/dist/components/_util/arrays.js.map +1 -1
- package/dist/components/_util/browser.js.map +1 -1
- package/dist/components/_util/dom/aria.js.map +1 -1
- package/dist/components/_util/dom/element.js.map +1 -1
- package/dist/components/_util/dom/event.js.map +1 -1
- package/dist/components/_util/dom/position.js.map +1 -1
- package/dist/components/_util/dom/scroll.js.map +1 -1
- package/dist/components/_util/dom/style.js.map +1 -1
- package/dist/components/_util/easings.js.map +1 -1
- package/dist/components/_util/error.js.map +1 -1
- package/dist/components/_util/i18n.js.map +1 -1
- package/dist/components/_util/objects.js.map +1 -1
- package/dist/components/_util/raf.js.map +1 -1
- package/dist/components/_util/rand.js.map +1 -1
- package/dist/components/_util/strings.js.map +1 -1
- package/dist/components/_util/throttleByRaf.js.map +1 -1
- package/dist/components/_util/types.js.map +1 -1
- package/dist/components/_util/typescript.js.map +1 -1
- package/dist/components/_util/vue/global-node.js.map +1 -1
- package/dist/components/_util/vue/icon.js.map +1 -1
- package/dist/components/_util/vue/install.js.map +1 -1
- package/dist/components/_util/vue/props/runtime.js.map +1 -1
- package/dist/components/_util/vue/refs.js.map +1 -1
- package/dist/components/_util/vue/size.js.map +1 -1
- package/dist/components/_util/vue/validator.js.map +1 -1
- package/dist/components/_util/vue/vnode.js.map +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +8 -6
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +15 -13
- package/dist/components/index.js.map +1 -1
- package/dist/{components-CutWiB7Q.js → components-OIbu7HLW.js} +26 -24
- package/dist/{components-CutWiB7Q.js.map → components-OIbu7HLW.js.map} +1 -1
- package/dist/index-CC0EuWhe.js +108 -0
- package/dist/index-CC0EuWhe.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Form/hooks/useForm.d.ts +0 -10
- package/dist/components/Form/hooks/useForm.js +0 -82
- 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
|
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__ */
|
6
|
+
const g = /* @__PURE__ */ o({
|
7
7
|
name: "OButton",
|
8
8
|
__name: "Button",
|
9
|
-
setup(
|
10
|
-
return (t, e) => (n(),
|
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__ */
|
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(
|
25
|
-
const t =
|
26
|
-
textAlign:
|
25
|
+
setup(r) {
|
26
|
+
const t = i(() => ({
|
27
|
+
textAlign: r.align
|
27
28
|
}));
|
28
|
-
return (e, h) => (n(),
|
29
|
-
style:
|
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
|
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: "
|
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":"
|
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 @@
|
|
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;"}
|