orion-design 0.1.32 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
- package/dist/Throne/hooks/use-throne-context.js +15 -0
- package/dist/Throne/hooks/use-throne-context.js.map +1 -0
- package/dist/Throne/index.d.ts +1 -1
- package/dist/Throne/index.js +3 -3
- package/dist/Throne/index.js.map +1 -1
- package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/components/Button/index.js +19 -17
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
- package/dist/components/Form/MultiTableSelect/index.js +7 -0
- package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
- package/dist/components/Form/hooks/index.js +46 -45
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Form/index.js +542 -401
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +18 -6
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
- package/dist/components/LovTable/index.d.ts +243 -5
- package/dist/components/LovTable/index.js +11 -13
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +880 -0
- package/dist/components/MultiTableSelectPagetable/index.d.ts +462 -0
- package/dist/components/MultiTableSelectPagetable/index.js +164 -0
- package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
- package/dist/components/Pagetable/Pagetable.d.ts +4 -2
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +1 -1
- package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
- package/dist/components/Pagetable/hooks/useCode.js +24 -0
- package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
- package/dist/components/Pagetable/index.d.ts +4 -2
- package/dist/components/Pagetable/index.js +338 -334
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +80 -2
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
- package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
- package/dist/components/Querytable/hooks/useColumns.js +16 -11
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.d.ts +147 -1
- package/dist/components/Querytable/index.js +404 -347
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
- package/dist/components/_util/vue/icon.js +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +22 -18
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +41 -33
- package/dist/components/index.js.map +1 -1
- package/dist/components-DP9bnDLm.js +48 -0
- package/dist/components-DP9bnDLm.js.map +1 -0
- package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
- package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -31
- 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-8oZ2kpUC.js +0 -27
- package/dist/components-8oZ2kpUC.js.map +0 -1
@@ -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;"}
|
package/dist/Throne/index.d.ts
CHANGED
@@ -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;
|
package/dist/Throne/index.js
CHANGED
@@ -6,15 +6,15 @@ let t = () => {
|
|
6
6
|
}, r = (e) => {
|
7
7
|
throw new o("Throne.getCode not configured!");
|
8
8
|
};
|
9
|
-
const
|
9
|
+
const u = {
|
10
10
|
hasAuth: (e) => t(e),
|
11
11
|
getIcon: (e) => n(e),
|
12
|
-
getCode: (e) => r(e),
|
12
|
+
getCode: (e, g) => r(e, g),
|
13
13
|
impl: (e) => {
|
14
14
|
e.hasAuth && (t = e.hasAuth), e.getIcon && (n = e.getIcon), e.getCode && (r = e.getCode);
|
15
15
|
}
|
16
16
|
};
|
17
17
|
export {
|
18
|
-
|
18
|
+
u as default
|
19
19
|
};
|
20
20
|
//# sourceMappingURL=index.js.map
|
package/dist/Throne/index.js.map
CHANGED
@@ -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":["hasAuth","OrionError","getIcon","iconId","getCode","codeName","Throne","authId","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,
|
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,44 +1,46 @@
|
|
1
1
|
import "lodash-es";
|
2
|
-
import { defineComponent as
|
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
3
|
import { withInstall as d } from "../_util/vue/install.js";
|
4
|
-
import { ElButton as
|
5
|
-
import { S as
|
6
|
-
const
|
4
|
+
import { ElButton as u } from "element-plus";
|
5
|
+
import { S as g } from "../../index-BbsXWo7C.js";
|
6
|
+
const B = /* @__PURE__ */ a({
|
7
7
|
name: "OButton",
|
8
8
|
__name: "Button",
|
9
|
-
setup(
|
10
|
-
return (t,
|
9
|
+
setup(e) {
|
10
|
+
return (t, o) => t.$slots.default ? (r(), l(n(u), { key: 0 }, {
|
11
11
|
default: s(() => [
|
12
12
|
i(t.$slots, "default")
|
13
13
|
]),
|
14
14
|
_: 3
|
15
|
-
})) : (
|
15
|
+
})) : (r(), l(n(u), { key: 1 }));
|
16
16
|
}
|
17
|
-
}),
|
17
|
+
}), _ = /* @__PURE__ */ a({
|
18
18
|
name: "OButtongroup",
|
19
19
|
inheritAttrs: !1,
|
20
20
|
__name: "ButtonGroup",
|
21
21
|
props: {
|
22
22
|
gutter: { type: [Boolean, String] },
|
23
|
-
align: { default: "right" }
|
23
|
+
align: { default: "right" },
|
24
|
+
style: {}
|
24
25
|
},
|
25
|
-
setup(
|
26
|
-
const t =
|
27
|
-
textAlign:
|
26
|
+
setup(e) {
|
27
|
+
const t = m(() => ({
|
28
|
+
textAlign: e.align,
|
29
|
+
...e.style
|
28
30
|
}));
|
29
|
-
return (
|
31
|
+
return (o, y) => (r(), p("div", {
|
30
32
|
style: c(t.value)
|
31
33
|
}, [
|
32
|
-
f(
|
34
|
+
f(n(g), { gutter: o.gutter }, {
|
33
35
|
default: s(() => [
|
34
|
-
i(
|
36
|
+
i(o.$slots, "default")
|
35
37
|
]),
|
36
38
|
_: 3
|
37
39
|
}, 8, ["gutter"])
|
38
40
|
], 4));
|
39
41
|
}
|
40
|
-
}), w = d(
|
41
|
-
ButtonGroup:
|
42
|
+
}), w = d(B, {
|
43
|
+
ButtonGroup: _
|
42
44
|
});
|
43
45
|
export {
|
44
46
|
w as default
|
@@ -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=\"
|
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;"}
|
@@ -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: "
|
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
|
-
}, "
|
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>;
|