orion-design 0.1.29 → 0.1.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/README.md +5 -5
  2. package/dist/components/LovTable/LovPagetable.vue.d.ts +28 -0
  3. package/dist/components/LovTable/index.d.ts +14 -0
  4. package/dist/components/Modal/Modal.d.ts +2 -0
  5. package/dist/components/Modal/ModalLocator.vue.d.ts +20 -0
  6. package/dist/components/Modal/index.d.ts +4 -1
  7. package/dist/components/Modal/index.js +72 -0
  8. package/dist/components/Modal/index.js.map +1 -0
  9. package/dist/components/Modal/types.d.ts +18 -0
  10. package/dist/components/Modal/types.js +6 -0
  11. package/dist/components/Modal/types.js.map +1 -0
  12. package/dist/components/Modal/useModal.d.ts +1 -3
  13. package/dist/components/Modal/useModal.js +4 -3
  14. package/dist/components/Modal/useModal.js.map +1 -1
  15. package/dist/components/Pagetable/Pagetable.d.ts +13 -0
  16. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +13 -0
  17. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +13 -0
  18. package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +13 -0
  19. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +13 -0
  20. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +13 -0
  21. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +13 -0
  22. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +13 -0
  23. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +13 -0
  24. package/dist/components/Pagetable/hooks/useColumns.js +37 -31
  25. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  26. package/dist/components/Pagetable/index.d.ts +9 -0
  27. package/dist/components/Pagetable/index.js +427 -366
  28. package/dist/components/Pagetable/index.js.map +1 -1
  29. package/dist/components/_util/arrays.js.map +1 -1
  30. package/dist/components/_util/browser.js.map +1 -1
  31. package/dist/components/_util/dom/aria.js.map +1 -1
  32. package/dist/components/_util/dom/element.js.map +1 -1
  33. package/dist/components/_util/dom/event.js.map +1 -1
  34. package/dist/components/_util/dom/position.js.map +1 -1
  35. package/dist/components/_util/dom/scroll.js.map +1 -1
  36. package/dist/components/_util/dom/style.js.map +1 -1
  37. package/dist/components/_util/easings.js.map +1 -1
  38. package/dist/components/_util/error.js.map +1 -1
  39. package/dist/components/_util/i18n.js.map +1 -1
  40. package/dist/components/_util/objects.js.map +1 -1
  41. package/dist/components/_util/raf.js.map +1 -1
  42. package/dist/components/_util/rand.js.map +1 -1
  43. package/dist/components/_util/strings.js.map +1 -1
  44. package/dist/components/_util/throttleByRaf.js.map +1 -1
  45. package/dist/components/_util/types.js.map +1 -1
  46. package/dist/components/_util/typescript.js.map +1 -1
  47. package/dist/components/_util/vue/global-node.js.map +1 -1
  48. package/dist/components/_util/vue/icon.js.map +1 -1
  49. package/dist/components/_util/vue/install.js.map +1 -1
  50. package/dist/components/_util/vue/props/runtime.js.map +1 -1
  51. package/dist/components/_util/vue/refs.js.map +1 -1
  52. package/dist/components/_util/vue/size.js.map +1 -1
  53. package/dist/components/_util/vue/validator.js.map +1 -1
  54. package/dist/components/_util/vue/vnode.js.map +1 -1
  55. package/dist/components/components.js +8 -8
  56. package/dist/components/index.js +21 -21
  57. package/dist/components-8oZ2kpUC.js +27 -0
  58. package/dist/components-8oZ2kpUC.js.map +1 -0
  59. package/dist/index.css +1 -1
  60. package/dist/index.js +3 -3
  61. package/dist/version/version.d.ts +1 -1
  62. package/dist/version/version.js +1 -1
  63. package/dist/version/version.js.map +1 -1
  64. package/package.json +1 -1
  65. package/dist/components-J6-qau6Y.js +0 -73
  66. package/dist/components-J6-qau6Y.js.map +0 -1
@@ -21,6 +21,10 @@ export declare const pagetableColumnStringProps: () => {
21
21
  type: PropType<FixedType>;
22
22
  default: FixedType;
23
23
  };
24
+ tail: {
25
+ type: PropType<string | boolean>;
26
+ default: string | boolean;
27
+ };
24
28
  };
25
29
  export type PagetableColumnStringProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnStringProps>>>;
26
30
  declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
@@ -44,6 +48,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
44
48
  type: PropType<FixedType>;
45
49
  default: FixedType;
46
50
  };
51
+ tail: {
52
+ type: PropType<string | boolean>;
53
+ default: string | boolean;
54
+ };
47
55
  }>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
48
56
  head: {
49
57
  type: PropType<string>;
@@ -65,11 +73,16 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
65
73
  type: PropType<FixedType>;
66
74
  default: FixedType;
67
75
  };
76
+ tail: {
77
+ type: PropType<string | boolean>;
78
+ default: string | boolean;
79
+ };
68
80
  }>> & Readonly<{}>, {
69
81
  fixed: FixedType;
70
82
  head: string;
71
83
  width: string | boolean;
72
84
  name: string;
85
+ tail: string | boolean;
73
86
  headAlign: "center" | "left" | "right";
74
87
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
75
88
  export default _default;
@@ -1,94 +1,100 @@
1
1
  import { computed as f } from "vue";
2
2
  import g from "../../../error/OrionError.js";
3
3
  import { camelize as y } from "../../_util/util.js";
4
- import { filterEmpty as d } from "../../_util/props-util/index.js";
5
- function l(a) {
6
- return a == null ? void 0 : a.map((n) => {
7
- var t, i;
8
- const e = { ...n.props || {} };
9
- for (const [m, u] of Object.entries(e))
10
- delete e[m], e[y(m)] = u;
11
- if (n.type.name === "OPagetableColumnIndex")
4
+ import { filterEmpty as m } from "../../_util/props-util/index.js";
5
+ function d(t) {
6
+ return t == null ? void 0 : t.map((a) => {
7
+ var n, i;
8
+ const e = { ...a.props || {} };
9
+ for (const [l, u] of Object.entries(e))
10
+ delete e[l], e[y(l)] = u;
11
+ if (a.type.name === "OPagetableColumnIndex")
12
12
  return {
13
- type: n.type.name
13
+ type: a.type.name
14
14
  };
15
- if (n.type.name === "OPagetableColumnString" || n.type.name === "OPagetableColumnLink")
15
+ if (a.type.name === "OPagetableColumnString" || a.type.name === "OPagetableColumnLink")
16
16
  return {
17
- type: n.type.name,
17
+ type: a.type.name,
18
18
  head: e == null ? void 0 : e.head,
19
19
  headAlign: e == null ? void 0 : e.headAlign,
20
20
  name: e == null ? void 0 : e.name,
21
21
  width: e == null ? void 0 : e.width,
22
- fixed: e == null ? void 0 : e.fixed
22
+ fixed: e == null ? void 0 : e.fixed,
23
+ tail: e == null ? void 0 : e.tail
23
24
  };
24
- if (n.type.name === "OPagetableColumnNumber")
25
+ if (a.type.name === "OPagetableColumnNumber")
25
26
  return {
26
- type: n.type.name,
27
+ type: a.type.name,
27
28
  head: e == null ? void 0 : e.head,
28
29
  headAlign: e == null ? void 0 : e.headAlign,
29
30
  name: e == null ? void 0 : e.name,
30
31
  width: e == null ? void 0 : e.width,
31
32
  fixed: e == null ? void 0 : e.fixed,
33
+ tail: e == null ? void 0 : e.tail,
32
34
  thousandsSeparator: e == null ? void 0 : e.thousandsSeparator,
33
35
  precision: Number(e == null ? void 0 : e.precision),
34
36
  percentage: e == null ? void 0 : e.percentage
35
37
  };
36
- if (n.type.name === "OPagetableColumnDate")
38
+ if (a.type.name === "OPagetableColumnDate")
37
39
  return {
38
- type: n.type.name,
40
+ type: a.type.name,
39
41
  head: e == null ? void 0 : e.head,
40
42
  headAlign: e == null ? void 0 : e.headAlign,
41
43
  name: e == null ? void 0 : e.name,
42
44
  width: e == null ? void 0 : e.width,
43
45
  fixed: e == null ? void 0 : e.fixed,
46
+ tail: e == null ? void 0 : e.tail,
44
47
  format: e == null ? void 0 : e.format,
45
48
  sourceFormat: e == null ? void 0 : e.sourceFormat
46
49
  };
47
- if (n.type.name === "OPagetableColumnSingleselect" || n.type.name === "OPagetableColumnMultiselect")
50
+ if (a.type.name === "OPagetableColumnSingleselect" || a.type.name === "OPagetableColumnMultiselect")
48
51
  return {
49
- type: n.type.name,
52
+ type: a.type.name,
50
53
  head: e == null ? void 0 : e.head,
51
54
  headAlign: e == null ? void 0 : e.headAlign,
52
55
  name: e == null ? void 0 : e.name,
53
56
  width: e == null ? void 0 : e.width,
54
57
  fixed: e == null ? void 0 : e.fixed,
58
+ tail: e == null ? void 0 : e.tail,
55
59
  code: e == null ? void 0 : e.code
56
60
  };
57
- if (n.type.name === "OPagetableColumnButtongroup")
61
+ if (a.type.name === "OPagetableColumnButtongroup")
58
62
  return {
59
- type: n.type.name,
63
+ type: a.type.name,
60
64
  head: e == null ? void 0 : e.head,
61
65
  headAlign: e == null ? void 0 : e.headAlign,
62
66
  name: e == null ? void 0 : e.name,
63
67
  width: e == null ? void 0 : e.width,
64
68
  fixed: e == null ? void 0 : e.fixed,
65
- children: n.children
69
+ tail: e == null ? void 0 : e.tail,
70
+ children: a.children
66
71
  };
67
- if (n.type.name === "OPagetableColumngroup")
72
+ if (a.type.name === "OPagetableColumngroup")
68
73
  return {
69
- type: n.type.name,
74
+ type: a.type.name,
70
75
  head: e == null ? void 0 : e.head,
71
76
  headAlign: e == null ? void 0 : e.headAlign,
72
- children: l(d((i = (t = n.children) == null ? void 0 : t.default) == null ? void 0 : i.call(t)))
77
+ children: d(m((i = (n = a.children) == null ? void 0 : n.default) == null ? void 0 : i.call(n)))
73
78
  };
74
- if (n.type.name === "OPagetableColumnDiy")
79
+ if (a.type.name === "OPagetableColumnDiy")
75
80
  return {
76
- type: n.type.name,
81
+ type: a.type.name,
77
82
  head: e == null ? void 0 : e.head,
78
83
  headAlign: e == null ? void 0 : e.headAlign,
79
84
  name: e == null ? void 0 : e.name,
80
85
  width: e == null ? void 0 : e.width,
81
86
  fixed: e == null ? void 0 : e.fixed,
82
- children: n.children
87
+ tail: e == null ? void 0 : e.tail,
88
+ children: a.children
83
89
  };
84
- throw new g(`OPagetable不能正确解析'${n.type.name}'子组件。`);
90
+ throw new g(`OPagetable不能正确解析'${a.type.name}'子组件。`);
85
91
  });
86
92
  }
87
- function A(a) {
93
+ function A(t) {
88
94
  return f(() => {
89
95
  var i;
90
- const n = (i = a.default) == null ? void 0 : i.call(a), e = d(n);
91
- return l(e);
96
+ const a = (i = t.default) == null ? void 0 : i.call(t), e = m(a);
97
+ return d(e);
92
98
  });
93
99
  }
94
100
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"useColumns.js","sources":["../../../../src/components/Pagetable/hooks/useColumns.ts"],"sourcesContent":["import { computed } from 'vue'\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nimport { camelize } from '../../../components/_util/util'\r\nimport { filterEmpty } from '../../_util/props-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 === 'OPagetableColumnIndex') {\r\n return {\r\n type: c.type.name,\r\n }\r\n } else if (c.type.name === 'OPagetableColumnString' || c.type.name === 'OPagetableColumnLink') {\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 === 'OPagetableColumnNumber') {\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 === 'OPagetableColumnDate') {\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 === 'OPagetableColumnSingleselect' || c.type.name === 'OPagetableColumnMultiselect') {\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 === 'OPagetableColumnButtongroup') {\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 === 'OPagetableColumngroup') {\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(filterEmpty(c.children?.default?.())),\r\n }\r\n } else if (c.type.name === 'OPagetableColumnDiy') {\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(`OPagetable不能正确解析'${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 non_empty_children = filterEmpty(children)\r\n\r\n const tableColumns = genColumns(non_empty_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","filterEmpty","_b","_a","OrionError","useColumns","slots","computed","non_empty_children"],"mappings":";;;;AAMA,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;AAEjB,QA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KAAWQ,IAAAG,EAAM,YAAN,gBAAAH,EAAA,KAAAG,IAEXE,IAAqBP,EAAYN,CAAQ;AAIxC,WAFcD,EAAWc,CAAkB;AAAA,EAE3C,CACR;AAGH;"}
1
+ {"version":3,"file":"useColumns.js","sources":["../../../../src/components/Pagetable/hooks/useColumns.ts"],"sourcesContent":["import { computed } from 'vue'\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nimport { camelize } from '../../../components/_util/util'\r\nimport { filterEmpty } from '../../_util/props-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 === 'OPagetableColumnIndex') {\r\n return {\r\n type: c.type.name,\r\n }\r\n } else if (c.type.name === 'OPagetableColumnString' || c.type.name === 'OPagetableColumnLink') {\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 tail: props?.tail,\r\n }\r\n } else if (c.type.name === 'OPagetableColumnNumber') {\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 tail: props?.tail,\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 === 'OPagetableColumnDate') {\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 tail: props?.tail,\r\n\r\n format: props?.format,\r\n sourceFormat: props?.sourceFormat,\r\n }\r\n } else if (c.type.name === 'OPagetableColumnSingleselect' || c.type.name === 'OPagetableColumnMultiselect') {\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 tail: props?.tail,\r\n\r\n code: props?.code,\r\n }\r\n } else if (c.type.name === 'OPagetableColumnButtongroup') {\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 tail: props?.tail,\r\n\r\n children: c.children,\r\n }\r\n } else if (c.type.name === 'OPagetableColumngroup') {\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(filterEmpty(c.children?.default?.())),\r\n }\r\n } else if (c.type.name === 'OPagetableColumnDiy') {\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 tail: props?.tail,\r\n\r\n children: c.children,\r\n }\r\n } else {\r\n throw new OrionError(`OPagetable不能正确解析'${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 non_empty_children = filterEmpty(children)\r\n\r\n const tableColumns = genColumns(non_empty_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","filterEmpty","_b","_a","OrionError","useColumns","slots","computed","non_empty_children"],"mappings":";;;;AAMA,SAASA,EAAWC,GAAU;AAuGrB,SAtGcA,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;A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OAAOA,KAAA,gBAAAA,EAAO;AAAA,QACd,OAAOA,KAAA,gBAAAA,EAAO;AAAA,QACd,MAAMA,KAAA,gBAAAA,EAAO;AAAA,QAEb,UAAUD,EAAE;AAAA,MAAA;AAGd,UAAM,IAAIQ,EAAW,oBAAoBR,EAAE,KAAK,IAAI,OAAO;AAAA,EAC7D;AAIJ;AAEA,SAAwBS,EAAWC,GAAO;AAWjC,SAVSC,EAAS,MAAM;;AACvB,UAAAZ,KAAWQ,IAAAG,EAAM,YAAN,gBAAAH,EAAA,KAAAG,IAEXE,IAAqBP,EAAYN,CAAQ;AAIxC,WAFcD,EAAWc,CAAkB;AAAA,EAE3C,CACR;AAGH;"}
@@ -15,6 +15,10 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
15
15
  type: import('vue').PropType<any[]>;
16
16
  default: any[];
17
17
  };
18
+ tailData: {
19
+ type: import('vue').PropType<Record<string, any>>;
20
+ default: Record<string, any>;
21
+ };
18
22
  pagination: {
19
23
  type: import('vue').PropType<{
20
24
  currentPage?: number;
@@ -50,6 +54,10 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
50
54
  type: import('vue').PropType<any[]>;
51
55
  default: any[];
52
56
  };
57
+ tailData: {
58
+ type: import('vue').PropType<Record<string, any>>;
59
+ default: Record<string, any>;
60
+ };
53
61
  pagination: {
54
62
  type: import('vue').PropType<{
55
63
  currentPage?: number;
@@ -97,6 +105,7 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
97
105
  pageSizes?: number[];
98
106
  total?: number;
99
107
  };
108
+ tailData: Record<string, any>;
100
109
  showRowNumber: boolean;
101
110
  selectionMode: boolean;
102
111
  currentRowMode: boolean;