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.
Files changed (85) hide show
  1. package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
  2. package/dist/Throne/hooks/use-throne-context.js +15 -0
  3. package/dist/Throne/hooks/use-throne-context.js.map +1 -0
  4. package/dist/Throne/index.d.ts +1 -1
  5. package/dist/Throne/index.js +3 -3
  6. package/dist/Throne/index.js.map +1 -1
  7. package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
  8. package/dist/components/Button/index.js +19 -17
  9. package/dist/components/Button/index.js.map +1 -1
  10. package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
  11. package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
  12. package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
  13. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
  14. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
  15. package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
  16. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
  17. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
  18. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
  19. package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
  20. package/dist/components/Form/MultiTableSelect/index.js +7 -0
  21. package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
  22. package/dist/components/Form/hooks/index.js +46 -45
  23. package/dist/components/Form/hooks/index.js.map +1 -1
  24. package/dist/components/Form/index.d.ts +3 -0
  25. package/dist/components/Form/index.js +542 -401
  26. package/dist/components/Form/index.js.map +1 -1
  27. package/dist/components/LovTable/LovPagetable.vue.d.ts +18 -6
  28. package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
  29. package/dist/components/LovTable/index.d.ts +243 -5
  30. package/dist/components/LovTable/index.js +11 -13
  31. package/dist/components/LovTable/index.js.map +1 -1
  32. package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +880 -0
  33. package/dist/components/MultiTableSelectPagetable/index.d.ts +462 -0
  34. package/dist/components/MultiTableSelectPagetable/index.js +164 -0
  35. package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
  36. package/dist/components/Pagetable/Pagetable.d.ts +4 -2
  37. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +1 -1
  38. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +1 -1
  39. package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
  40. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +1 -1
  41. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +1 -1
  42. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +1 -1
  43. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +1 -1
  44. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +1 -1
  45. package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
  46. package/dist/components/Pagetable/hooks/useCode.js +24 -0
  47. package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
  48. package/dist/components/Pagetable/index.d.ts +4 -2
  49. package/dist/components/Pagetable/index.js +338 -334
  50. package/dist/components/Pagetable/index.js.map +1 -1
  51. package/dist/components/Querytable/Querytable.d.ts +80 -2
  52. package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
  53. package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
  54. package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
  55. package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
  56. package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
  57. package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
  58. package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
  59. package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
  60. package/dist/components/Querytable/hooks/useColumns.js +16 -11
  61. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  62. package/dist/components/Querytable/index.d.ts +147 -1
  63. package/dist/components/Querytable/index.js +404 -347
  64. package/dist/components/Querytable/index.js.map +1 -1
  65. package/dist/components/Tabs/index.js +1 -1
  66. package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
  67. package/dist/components/_util/vue/icon.js +1 -1
  68. package/dist/components/components.d.ts +2 -0
  69. package/dist/components/components.js +22 -18
  70. package/dist/components/components.js.map +1 -1
  71. package/dist/components/index.js +41 -33
  72. package/dist/components/index.js.map +1 -1
  73. package/dist/components-DP9bnDLm.js +48 -0
  74. package/dist/components-DP9bnDLm.js.map +1 -0
  75. package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
  76. package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
  77. package/dist/index.d.ts +1 -0
  78. package/dist/index.js +41 -31
  79. package/dist/index.js.map +1 -1
  80. package/dist/version/version.d.ts +1 -1
  81. package/dist/version/version.js +1 -1
  82. package/dist/version/version.js.map +1 -1
  83. package/package.json +1 -1
  84. package/dist/components-8oZ2kpUC.js +0 -27
  85. package/dist/components-8oZ2kpUC.js.map +0 -1
@@ -114,10 +114,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
114
114
  default: string;
115
115
  };
116
116
  }>> & Readonly<{}>, {
117
+ name: string;
117
118
  fixed: FixedType;
118
119
  head: string;
119
120
  width: string | boolean;
120
- name: string;
121
121
  format: string;
122
122
  bodyAlign: "center" | "left" | "right";
123
123
  tail: string | boolean;
@@ -79,10 +79,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
79
79
  default: string | boolean;
80
80
  };
81
81
  }>> & Readonly<{}>, {
82
+ name: string;
82
83
  fixed: FixedType;
83
84
  head: string;
84
85
  width: string | boolean;
85
- name: string;
86
86
  tail: string | boolean;
87
87
  headAlign: "center" | "left" | "right";
88
88
  }, CustomSlotsType<{
@@ -90,10 +90,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
90
90
  default: string | boolean;
91
91
  };
92
92
  }>> & Readonly<{}>, {
93
+ name: string;
93
94
  fixed: FixedType;
94
95
  head: string;
95
96
  width: string | boolean;
96
- name: string;
97
97
  bodyAlign: "center" | "left" | "right";
98
98
  tail: string | boolean;
99
99
  headAlign: "center" | "left" | "right";
@@ -120,6 +120,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
120
120
  }[];
121
121
  };
122
122
  }>> & Readonly<{}>, {
123
+ name: string;
123
124
  fixed: FixedType;
124
125
  code: string | {
125
126
  value: string;
@@ -127,7 +128,6 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
127
128
  }[];
128
129
  head: string;
129
130
  width: string | boolean;
130
- name: string;
131
131
  bodyAlign: "center" | "left" | "right";
132
132
  tail: string | boolean;
133
133
  headAlign: "center" | "left" | "right";
@@ -126,10 +126,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
126
126
  default: boolean;
127
127
  };
128
128
  }>> & Readonly<{}>, {
129
+ name: string;
129
130
  fixed: FixedType;
130
131
  head: string;
131
132
  width: string | boolean;
132
- name: string;
133
133
  bodyAlign: "center" | "left" | "right";
134
134
  thousandsSeparator: boolean;
135
135
  tail: string | boolean;
@@ -120,6 +120,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
120
120
  }[];
121
121
  };
122
122
  }>> & Readonly<{}>, {
123
+ name: string;
123
124
  fixed: FixedType;
124
125
  code: string | {
125
126
  value: string;
@@ -127,7 +128,6 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
127
128
  }[];
128
129
  head: string;
129
130
  width: string | boolean;
130
- name: string;
131
131
  bodyAlign: "center" | "left" | "right";
132
132
  tail: string | boolean;
133
133
  headAlign: "center" | "left" | "right";
@@ -90,10 +90,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
90
90
  default: string | boolean;
91
91
  };
92
92
  }>> & Readonly<{}>, {
93
+ name: string;
93
94
  fixed: FixedType;
94
95
  head: string;
95
96
  width: string | boolean;
96
- name: string;
97
97
  bodyAlign: "center" | "left" | "right";
98
98
  tail: string | boolean;
99
99
  headAlign: "center" | "left" | "right";
@@ -0,0 +1,2 @@
1
+ import { CodeItem } from '../../types';
2
+ export default function useCode(code: any): import('vue').ComputedRef<CodeItem[] | null>;
@@ -0,0 +1,24 @@
1
+ import { computed as t } from "vue";
2
+ import { isString as i, isArray as m } from "lodash-es";
3
+ import f from "../../../Throne/index.js";
4
+ import n from "../../../error/OrionError.js";
5
+ import { useThroneContext as u } from "../../../Throne/hooks/use-throne-context.js";
6
+ function g(r) {
7
+ const o = u();
8
+ return t(() => {
9
+ let e;
10
+ if (!r)
11
+ e = null;
12
+ else if (i(r))
13
+ e = f.getCode(r, o == null ? void 0 : o.value).value;
14
+ else if (m(r))
15
+ e = r;
16
+ else
17
+ throw new n("code类型错误");
18
+ return e;
19
+ });
20
+ }
21
+ export {
22
+ g as default
23
+ };
24
+ //# sourceMappingURL=useCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCode.js","sources":["../../../../src/components/Pagetable/hooks/useCode.ts"],"sourcesContent":["import { inject, getCurrentInstance, computed } from 'vue'\r\n\r\nimport { castArray, isArray, isString } from 'lodash-es'\r\n\r\nimport Throne from '../../../Throne'\r\nimport { CodeItem } from '../../types'\r\n\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nimport { useThroneContext } from '../../../Throne/hooks/use-throne-context'\r\n\r\nexport default function useCode(code) {\r\n const throneContext = useThroneContext();\r\n\r\n return computed(() => {\r\n let codeData: Array<CodeItem> | null\r\n if (!code) {\r\n codeData = null;\r\n } else if (isString(code)) {\r\n codeData = Throne.getCode(code, throneContext?.value).value\r\n } else if (isArray<CodeItem>(code)) {\r\n codeData = code\r\n } else {\r\n throw new OrionError('code类型错误')\r\n }\r\n\r\n return codeData\r\n })\r\n}"],"names":["useCode","code","throneContext","useThroneContext","computed","codeData","isString","Throne","isArray","OrionError"],"mappings":";;;;;AAWA,SAAwBA,EAAQC,GAAM;AAClC,QAAMC,IAAgBC;AAEtB,SAAOC,EAAS,MAAM;AACd,QAAAC;AACJ,QAAI,CAACJ;AACU,MAAAI,IAAA;AAAA,aACJC,EAASL,CAAI;AACpB,MAAAI,IAAWE,EAAO,QAAQN,GAAMC,KAAA,gBAAAA,EAAe,KAAK,EAAE;AAAA,aAC/CM,EAAkBP,CAAI;AAClB,MAAAI,IAAAJ;AAAA;AAEL,YAAA,IAAIQ,EAAW,UAAU;AAG5B,WAAAJ;AAAA,EAAA,CACV;AACL;"}
@@ -113,7 +113,7 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
113
113
  columnIndex: number;
114
114
  }) => import('vue').CSSProperties);
115
115
  };
116
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
116
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
117
117
  data: {
118
118
  type: import('vue').PropType<any[]>;
119
119
  default: any[];
@@ -217,6 +217,8 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
217
217
  }) => import('vue').CSSProperties);
218
218
  };
219
219
  }>> & Readonly<{
220
+ onSelect?: ((...args: any[]) => any) | undefined;
221
+ "onSelect-all"?: ((...args: any[]) => any) | undefined;
220
222
  onSelectionChange?: ((...args: any[]) => any) | undefined;
221
223
  onCurrentRowChange?: ((...args: any[]) => any) | undefined;
222
224
  "onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
@@ -225,8 +227,8 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
225
227
  onCellClick?: ((...args: any[]) => any) | undefined;
226
228
  onCellDblclick?: ((...args: any[]) => any) | undefined;
227
229
  }>, {
228
- data: any[];
229
230
  size: "" | "small" | "default" | "large";
231
+ data: any[];
230
232
  pagination: {
231
233
  currentPage?: number;
232
234
  pageSize?: number;