orion-design 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/components/Form/Form.d.ts +1 -0
  2. package/dist/components/Form/Form.js.map +1 -1
  3. package/dist/components/Form/LovInput/LovInput.d.ts +20 -0
  4. package/dist/components/Form/LovInput/LovInput.js +5 -0
  5. package/dist/components/Form/LovInput/LovInput.js.map +1 -0
  6. package/dist/components/Form/LovInput/LovInput.vue.d.ts +5351 -0
  7. package/dist/components/Form/LovInput/hooks/useLov.d.ts +1 -0
  8. package/dist/components/Form/LovInput/hooks/useLov.js +9 -0
  9. package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -0
  10. package/dist/components/Form/LovInput/index.d.ts +2 -0
  11. package/dist/components/Form/LovInput/index.js +7 -0
  12. package/dist/components/Form/LovInput/index.js.map +1 -0
  13. package/dist/components/Form/index.d.ts +3 -0
  14. package/dist/components/Form/index.js +363 -277
  15. package/dist/components/Form/index.js.map +1 -1
  16. package/dist/components/Pagetable/Pagetable.d.ts +16 -1
  17. package/dist/components/Pagetable/index.d.ts +12 -1
  18. package/dist/components/Pagetable/index.js +156 -151
  19. package/dist/components/Pagetable/index.js.map +1 -1
  20. package/dist/components/Pagetable/utils/index.js +45 -148
  21. package/dist/components/Pagetable/utils/index.js.map +1 -1
  22. package/dist/components/Querytable/Querytable.d.ts +64 -0
  23. package/dist/components/Querytable/columns/QuerytableCellButton.d.ts +24 -0
  24. package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +78 -0
  25. package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +101 -0
  26. package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +78 -0
  27. package/dist/components/Querytable/columns/QuerytableColumnIndex.d.ts +5 -0
  28. package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +109 -0
  29. package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +114 -0
  30. package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +109 -0
  31. package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +75 -0
  32. package/dist/components/Querytable/columns/QuerytableColumngroup.d.ts +35 -0
  33. package/dist/components/Querytable/hooks/useColumns.d.ts +1 -0
  34. package/dist/components/Querytable/hooks/useColumns.js +96 -0
  35. package/dist/components/Querytable/hooks/useColumns.js.map +1 -0
  36. package/dist/components/Querytable/index.d.ts +66 -0
  37. package/dist/components/Querytable/index.js +510 -0
  38. package/dist/components/Querytable/index.js.map +1 -0
  39. package/dist/components/Querytable/interface.d.ts +10 -0
  40. package/dist/components/Querytable/interface.js +2 -0
  41. package/dist/components/Querytable/interface.js.map +1 -0
  42. package/dist/components/Querytable/utils/index.d.ts +15 -0
  43. package/dist/components/Querytable/utils/index.js +66 -0
  44. package/dist/components/Querytable/utils/index.js.map +1 -0
  45. package/dist/components/components.d.ts +2 -0
  46. package/dist/components/components.js +8 -6
  47. package/dist/components/components.js.map +1 -1
  48. package/dist/components/index.js +15 -13
  49. package/dist/components/index.js.map +1 -1
  50. package/dist/{components-CutWiB7Q.js → components-OIbu7HLW.js} +26 -24
  51. package/dist/{components-CutWiB7Q.js.map → components-OIbu7HLW.js.map} +1 -1
  52. package/dist/index-CC0EuWhe.js +108 -0
  53. package/dist/index-CC0EuWhe.js.map +1 -0
  54. package/dist/index.css +1 -1
  55. package/dist/index.js +14 -12
  56. package/dist/index.js.map +1 -1
  57. package/dist/version/version.d.ts +1 -1
  58. package/dist/version/version.js +1 -1
  59. package/dist/version/version.js.map +1 -1
  60. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
+ export declare const querytableColumngroupProps: () => {
3
+ head: {
4
+ type: PropType<string>;
5
+ default: string;
6
+ };
7
+ headAlign: {
8
+ type: PropType<"center" | "left" | "right">;
9
+ default: "center" | "left" | "right";
10
+ };
11
+ };
12
+ export type QuerytableColumngroupProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumngroupProps>>>;
13
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
14
+ head: {
15
+ type: PropType<string>;
16
+ default: string;
17
+ };
18
+ headAlign: {
19
+ type: PropType<"center" | "left" | "right">;
20
+ default: "center" | "left" | "right";
21
+ };
22
+ }>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
23
+ head: {
24
+ type: PropType<string>;
25
+ default: string;
26
+ };
27
+ headAlign: {
28
+ type: PropType<"center" | "left" | "right">;
29
+ default: "center" | "left" | "right";
30
+ };
31
+ }>> & Readonly<{}>, {
32
+ head: string;
33
+ headAlign: "center" | "left" | "right";
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
+ export default _default;
@@ -0,0 +1 @@
1
+ export default function useColumns(slots: any): import('vue').ComputedRef<any>;
@@ -0,0 +1,96 @@
1
+ import { computed as h } from "vue";
2
+ import y from "../../../error/OrionError.js";
3
+ import { camelize as f } from "../../_util/util.js";
4
+ function m(t) {
5
+ return t == null ? void 0 : t.map((n) => {
6
+ var a, d;
7
+ const e = { ...n.props || {} };
8
+ for (const [i, u] of Object.entries(e))
9
+ delete e[i], e[f(i)] = u;
10
+ if (n.type.name === "OQuerytableColumnIndex")
11
+ return {
12
+ type: n.type.name
13
+ };
14
+ if (n.type.name === "OQuerytableColumnString")
15
+ return {
16
+ type: n.type.name,
17
+ head: e == null ? void 0 : e.head,
18
+ headAlign: e == null ? void 0 : e.headAlign,
19
+ name: e == null ? void 0 : e.name,
20
+ width: e == null ? void 0 : e.width,
21
+ fixed: e == null ? void 0 : e.fixed
22
+ };
23
+ if (n.type.name === "OQuerytableColumnNumber")
24
+ return {
25
+ type: n.type.name,
26
+ head: e == null ? void 0 : e.head,
27
+ headAlign: e == null ? void 0 : e.headAlign,
28
+ name: e == null ? void 0 : e.name,
29
+ width: e == null ? void 0 : e.width,
30
+ fixed: e == null ? void 0 : e.fixed,
31
+ thousandsSeparator: e == null ? void 0 : e.thousandsSeparator,
32
+ precision: Number(e == null ? void 0 : e.precision),
33
+ percentage: e == null ? void 0 : e.percentage
34
+ };
35
+ if (n.type.name === "OQuerytableColumnDate")
36
+ return {
37
+ type: n.type.name,
38
+ head: e == null ? void 0 : e.head,
39
+ headAlign: e == null ? void 0 : e.headAlign,
40
+ name: e == null ? void 0 : e.name,
41
+ width: e == null ? void 0 : e.width,
42
+ fixed: e == null ? void 0 : e.fixed,
43
+ format: e == null ? void 0 : e.format,
44
+ sourceFormat: e == null ? void 0 : e.sourceFormat
45
+ };
46
+ if (n.type.name === "OQuerytableColumnSingleselect" || n.type.name === "OQuerytableColumnMultiselect")
47
+ return {
48
+ type: n.type.name,
49
+ head: e == null ? void 0 : e.head,
50
+ headAlign: e == null ? void 0 : e.headAlign,
51
+ name: e == null ? void 0 : e.name,
52
+ width: e == null ? void 0 : e.width,
53
+ fixed: e == null ? void 0 : e.fixed,
54
+ code: e == null ? void 0 : e.code
55
+ };
56
+ if (n.type.name === "OQuerytableColumnButtongroup")
57
+ return {
58
+ type: n.type.name,
59
+ head: e == null ? void 0 : e.head,
60
+ headAlign: e == null ? void 0 : e.headAlign,
61
+ name: e == null ? void 0 : e.name,
62
+ width: e == null ? void 0 : e.width,
63
+ fixed: e == null ? void 0 : e.fixed,
64
+ children: n.children
65
+ };
66
+ if (n.type.name === "OQuerytableColumngroup")
67
+ return {
68
+ type: n.type.name,
69
+ head: e == null ? void 0 : e.head,
70
+ headAlign: e == null ? void 0 : e.headAlign,
71
+ children: m((d = (a = n.children) == null ? void 0 : a.default) == null ? void 0 : d.call(a))
72
+ };
73
+ if (n.type.name === "OQuerytableColumnDiy")
74
+ return {
75
+ type: n.type.name,
76
+ head: e == null ? void 0 : e.head,
77
+ headAlign: e == null ? void 0 : e.headAlign,
78
+ name: e == null ? void 0 : e.name,
79
+ width: e == null ? void 0 : e.width,
80
+ fixed: e == null ? void 0 : e.fixed,
81
+ children: n.children
82
+ };
83
+ throw new y(`OQuerytable不能正确解析'${n.type.name}'子组件。`);
84
+ });
85
+ }
86
+ function w(t) {
87
+ return h(() => {
88
+ var a;
89
+ const n = (a = t.default) == null ? void 0 : a.call(t);
90
+ return m(n);
91
+ });
92
+ }
93
+ export {
94
+ w as default
95
+ };
96
+ //# sourceMappingURL=useColumns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useColumns.js","sources":["../../../../src/components/Querytable/hooks/useColumns.ts"],"sourcesContent":["import { computed } from 'vue'\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nimport { camelize } from '../../../components/_util/util'\r\n\r\nfunction genColumns(children) {\r\n const tableColumns = children?.map((c) => {\r\n const props = { ...(c.props || {}) }\r\n for (const [k, v] of Object.entries(props)) {\r\n delete props[k]\r\n props[camelize(k)] = v\r\n }\r\n\r\n if (c.type.name === 'OQuerytableColumnIndex') {\r\n return {\r\n type: c.type.name,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnString') {\r\n return {\r\n type: c.type.name,\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnNumber') {\r\n return {\r\n type: c.type.name,\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n thousandsSeparator: props?.thousandsSeparator,\r\n precision: Number(props?.precision),\r\n percentage: props?.percentage,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnDate') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n format: props?.format,\r\n sourceFormat: props?.sourceFormat,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnSingleselect' || c.type.name === 'OQuerytableColumnMultiselect') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n code: props?.code,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnButtongroup') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n children: c.children,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumngroup') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n\r\n children: genColumns(c.children?.default?.()),\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnDiy') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n children: c.children,\r\n }\r\n } else {\r\n throw new OrionError(`OQuerytable不能正确解析'${c.type.name}'子组件。`)\r\n }\r\n })\r\n\r\n return tableColumns\r\n}\r\n\r\nexport default function useColumns(slots) {\r\n const columns = computed(() => {\r\n const children = slots.default?.()\r\n\r\n const tableColumns = genColumns(children)\r\n\r\n return tableColumns\r\n })\r\n\r\n return columns\r\n}\r\n"],"names":["genColumns","children","c","props","k","v","camelize","_b","_a","OrionError","useColumns","slots","computed"],"mappings":";;;AAKA,SAASA,EAAWC,GAAU;AAiGrB,SAhGcA,KAAA,gBAAAA,EAAU,IAAI,CAACC,MAAM;;AACxC,UAAMC,IAAQ,EAAE,GAAID,EAAE,SAAS,CAAI,EAAA;AACnC,eAAW,CAACE,GAAGC,CAAC,KAAK,OAAO,QAAQF,CAAK;AACvC,aAAOA,EAAMC,CAAC,GACRD,EAAAG,EAASF,CAAC,CAAC,IAAIC;AAGnB,QAAAH,EAAE,KAAK,SAAS;AACX,aAAA;AAAA,QACL,MAAMA,EAAE,KAAK;AAAA,MAAA;AAEN,QAAAA,EAAE,KAAK,SAAS;AAClB,aAAA;AAAA,QACL,MAAMA,EAAE,KAAK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,0 +1,66 @@
1
+ import { default as QuerytableColumnIndex } from './columns/QuerytableColumnIndex';
2
+ import { default as QuerytableColumnString } from './columns/QuerytableColumnString';
3
+ import { default as QuerytableColumnNumber } from './columns/QuerytableColumnNumber';
4
+ import { default as QuerytableColumnDate } from './columns/QuerytableColumnDate';
5
+ import { default as QuerytableColumnSingleselect } from './columns/QuerytableColumnSingleselect';
6
+ import { default as QuerytableColumnMultiselect } from './columns/QuerytableColumnMultiselect';
7
+ import { default as QuerytableColumnButtongroup } from './columns/QuerytableColumnButtongroup';
8
+ import { default as QuerytableCellButton } from './columns/QuerytableCellButton';
9
+ import { default as QuerytableColumngroup } from './columns/QuerytableColumngroup';
10
+ import { default as QuerytableColumnDiy } from './columns/QuerytableColumnDiy';
11
+ export type { QuerytableProps } from './Querytable';
12
+ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ data: {
14
+ type: import('vue').PropType<any[]>;
15
+ default: any[];
16
+ };
17
+ showRowNumber: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ selectionMode: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ currentRowMode: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange")[], "selectionChange" | "currentRowChange", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
+ data: {
31
+ type: import('vue').PropType<any[]>;
32
+ default: any[];
33
+ };
34
+ showRowNumber: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ selectionMode: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ currentRowMode: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ }>> & Readonly<{
47
+ onSelectionChange?: ((...args: any[]) => any) | undefined;
48
+ onCurrentRowChange?: ((...args: any[]) => any) | undefined;
49
+ }>, {
50
+ data: any[];
51
+ showRowNumber: boolean;
52
+ selectionMode: boolean;
53
+ currentRowMode: boolean;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {
55
+ QuerytableColumnIndex: typeof QuerytableColumnIndex;
56
+ QuerytableColumnString: typeof QuerytableColumnString;
57
+ QuerytableColumnNumber: typeof QuerytableColumnNumber;
58
+ QuerytableColumnDate: typeof QuerytableColumnDate;
59
+ QuerytableColumnSingleselect: typeof QuerytableColumnSingleselect;
60
+ QuerytableColumnMultiselect: typeof QuerytableColumnMultiselect;
61
+ QuerytableColumnButtongroup: typeof QuerytableColumnButtongroup;
62
+ QuerytableCellButton: typeof QuerytableCellButton;
63
+ QuerytableColumngroup: typeof QuerytableColumngroup;
64
+ QuerytableColumnDiy: typeof QuerytableColumnDiy;
65
+ };
66
+ export default _default;