orion-design 0.1.34 → 0.1.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/dist/components/Form/{MultiTableSelect/MultiTableSelect.d.ts → TableSelect/TableSelect.d.ts} +3 -3
  2. package/dist/components/Form/TableSelect/TableSelect.js +5 -0
  3. package/dist/components/Form/TableSelect/TableSelect.js.map +1 -0
  4. package/dist/components/Form/{MultiTableSelect/MultiTableSelect.vue.d.ts → TableSelect/TableSelect.vue.d.ts} +3 -3
  5. package/dist/components/Form/TableSelect/hooks/useTableSelect.d.ts +1 -0
  6. package/dist/components/Form/TableSelect/hooks/useTableSelect.js +9 -0
  7. package/dist/components/Form/TableSelect/hooks/useTableSelect.js.map +1 -0
  8. package/dist/components/Form/TableSelect/index.d.ts +2 -0
  9. package/dist/components/Form/TableSelect/index.js +7 -0
  10. package/dist/components/Form/index.d.ts +3 -3
  11. package/dist/components/Form/index.js +23 -23
  12. package/dist/components/Form/index.js.map +1 -1
  13. package/dist/components/Modal/index.js +30 -28
  14. package/dist/components/Modal/index.js.map +1 -1
  15. package/dist/components/Pagetable/index.js +305 -290
  16. package/dist/components/Pagetable/index.js.map +1 -1
  17. package/dist/components/Querytable/index.js +3 -0
  18. package/dist/components/Querytable/index.js.map +1 -1
  19. package/dist/components/{MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts → TableSelectPagetable/TableSelectPagetable.vue.d.ts} +2 -0
  20. package/dist/components/{MultiTableSelectPagetable → TableSelectPagetable}/index.d.ts +1 -0
  21. package/dist/components/TableSelectPagetable/index.js +171 -0
  22. package/dist/components/TableSelectPagetable/index.js.map +1 -0
  23. package/dist/components/Tabs/index.js +1 -1
  24. package/dist/components/_util/vue/icon.js +1 -1
  25. package/dist/components/components.d.ts +1 -1
  26. package/dist/components/components.js +13 -13
  27. package/dist/components/index.js +18 -18
  28. package/dist/{components-DP9bnDLm.js → components-BJrXhY2G.js} +11 -11
  29. package/dist/{components-DP9bnDLm.js.map → components-BJrXhY2G.js.map} +1 -1
  30. package/dist/{index-ChkLOmNK.js → index-Bm0F5NQQ.js} +43 -28
  31. package/dist/{index-ChkLOmNK.js.map → index-Bm0F5NQQ.js.map} +1 -1
  32. package/dist/index.css +1 -1
  33. package/dist/index.js +17 -17
  34. package/dist/version/version.d.ts +1 -1
  35. package/dist/version/version.js +1 -1
  36. package/dist/version/version.js.map +1 -1
  37. package/package.json +1 -1
  38. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +0 -5
  39. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +0 -1
  40. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +0 -1
  41. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +0 -9
  42. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +0 -1
  43. package/dist/components/Form/MultiTableSelect/index.d.ts +0 -2
  44. package/dist/components/Form/MultiTableSelect/index.js +0 -7
  45. package/dist/components/MultiTableSelectPagetable/index.js +0 -164
  46. package/dist/components/MultiTableSelectPagetable/index.js.map +0 -1
  47. /package/dist/components/Form/{MultiTableSelect → TableSelect}/index.js.map +0 -0
@@ -8,6 +8,7 @@ declare const _default: import('../_util').SFCWithInstall<{
8
8
  width: number | string;
9
9
  height: number | string;
10
10
  }> & Readonly<{}>, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
11
+ div: HTMLDivElement;
11
12
  table: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
12
13
  data: {
13
14
  type: import('vue').PropType<any[]>;
@@ -0,0 +1,171 @@
1
+ import { intersectionWith as E, isEqual as k, find as d, remove as w } from "lodash-es";
2
+ import { defineComponent as q, computed as T, useTemplateRef as C, ref as b, onMounted as F, watch as z, nextTick as I, resolveComponent as p, openBlock as r, createBlock as g, normalizeStyle as U, withCtx as n, createVNode as a, createElementVNode as f, createElementBlock as x, Fragment as R, renderList as N, unref as c, createTextVNode as m, toDisplayString as P, createCommentVNode as G, mergeProps as H, renderSlot as J } from "vue";
3
+ import { withInstall as K } from "../_util/vue/install.js";
4
+ import { ElTag as V, ElTooltip as Q, ElScrollbar as X } from "element-plus";
5
+ import Y from "../Pagetable/index.js";
6
+ import { m as Z } from "../../index-Bm0F5NQQ.js";
7
+ import { addUnit as B } from "../_util/dom/style.js";
8
+ import ee from "../Form/TableSelect/hooks/useTableSelect.js";
9
+ const te = { style: { display: "flex", padding: "5px" } }, le = {
10
+ ref: "div",
11
+ style: { flex: "1 1 0px", display: "flex", gap: "5px", overflow: "hidden" }
12
+ }, oe = { style: { flex: "none", width: "150px", display: "flex", gap: "5px", justifyContent: "right" } }, ne = { key: 0 }, ae = /* @__PURE__ */ q({
13
+ name: "OTableselectPagetable",
14
+ inheritAttrs: !0,
15
+ __name: "TableSelectPagetable",
16
+ props: {
17
+ data: {},
18
+ width: { default: 600 },
19
+ height: { default: 300 }
20
+ },
21
+ setup(i) {
22
+ const D = T(() => ({
23
+ width: B(i.width),
24
+ height: B(i.height)
25
+ })), y = C("table"), l = b([]), S = T(() => l.value.map((o) => e == null ? void 0 : e.tag(o))), v = b(!1), L = C("div");
26
+ F(() => {
27
+ new MutationObserver((t) => {
28
+ t.forEach((s) => {
29
+ if (s.type == "childList") {
30
+ const u = s.target;
31
+ u.scrollWidth > u.clientWidth ? v.value = !0 : v.value = !1;
32
+ }
33
+ });
34
+ }).observe(L.value, {
35
+ childList: !0
36
+ });
37
+ });
38
+ const W = (o, t) => {
39
+ d(o, t) ? d(l.value, t) || l.value.push(t) : d(l.value, t) && w(l.value, t), e == null || e.onSelect(l.value);
40
+ }, A = (o) => {
41
+ o.length > 0 ? o.forEach((t) => {
42
+ d(l.value, t) || l.value.push(t);
43
+ }) : w(l.value, (t) => d(i.data, t)), e == null || e.onSelect(l.value);
44
+ }, e = ee(), M = () => {
45
+ e == null || e.selectDone();
46
+ }, O = () => {
47
+ $(), l.value = [], e == null || e.onSelect([], !0);
48
+ };
49
+ z(
50
+ () => i.data,
51
+ async () => {
52
+ i.data.length > 0 && (await I(), _());
53
+ }
54
+ ), z(() => e == null ? void 0 : e.selection, () => {
55
+ e != null && e.selection && e.selection.length > 0 && (l.value = e.selection, _());
56
+ });
57
+ const _ = () => {
58
+ E(i.data, l.value, k).forEach((t) => {
59
+ y.value.toggleRowSelection(t, !0);
60
+ });
61
+ }, $ = () => {
62
+ E(i.data, l.value, k).forEach((t) => {
63
+ y.value.toggleRowSelection(t, !1);
64
+ });
65
+ };
66
+ return (o, t) => {
67
+ const s = p("o-button"), u = p("o-flexitem"), j = p("o-colflex");
68
+ return r(), g(j, {
69
+ style: U(D.value)
70
+ }, {
71
+ default: n(() => [
72
+ a(u, { "flex-basic": "need" }, {
73
+ default: n(() => [
74
+ f("div", te, [
75
+ f("div", le, [
76
+ (r(!0), x(R, null, N(S.value, (h) => (r(), g(c(V), { type: "info" }, {
77
+ default: n(() => [
78
+ m(P(h), 1)
79
+ ]),
80
+ _: 2
81
+ }, 1024))), 256))
82
+ ], 512),
83
+ f("div", oe, [
84
+ v.value ? (r(), x("div", ne, [
85
+ a(c(Q), {
86
+ effect: "light",
87
+ teleported: !1
88
+ }, {
89
+ default: n(() => [
90
+ a(s, {
91
+ size: "small",
92
+ icon: c(Z),
93
+ text: ""
94
+ }, null, 8, ["icon"])
95
+ ]),
96
+ content: n(() => [
97
+ a(c(X), { "max-height": "100" }, {
98
+ default: n(() => [
99
+ (r(!0), x(R, null, N(S.value, (h) => (r(), g(c(V), {
100
+ type: "info",
101
+ style: { margin: "5px" }
102
+ }, {
103
+ default: n(() => [
104
+ m(P(h), 1)
105
+ ]),
106
+ _: 2
107
+ }, 1024))), 256))
108
+ ]),
109
+ _: 1
110
+ })
111
+ ]),
112
+ _: 1
113
+ })
114
+ ])) : G("", !0),
115
+ f("div", null, [
116
+ a(s, {
117
+ type: "primary",
118
+ size: "small",
119
+ onClick: M
120
+ }, {
121
+ default: n(() => t[0] || (t[0] = [
122
+ m("确定")
123
+ ])),
124
+ _: 1
125
+ })
126
+ ]),
127
+ f("div", null, [
128
+ a(s, {
129
+ size: "small",
130
+ onClick: O
131
+ }, {
132
+ default: n(() => t[1] || (t[1] = [
133
+ m("清空")
134
+ ])),
135
+ _: 1
136
+ })
137
+ ])
138
+ ])
139
+ ])
140
+ ]),
141
+ _: 1
142
+ }),
143
+ a(u, null, {
144
+ default: n(() => [
145
+ a(c(Y), H({
146
+ ref: "table",
147
+ data: o.data,
148
+ "selection-mode": "",
149
+ size: "small",
150
+ "pagination-teleported": !1,
151
+ onSelect: W,
152
+ onSelectAll: A
153
+ }, o.$attrs), {
154
+ default: n(() => [
155
+ J(o.$slots, "default")
156
+ ]),
157
+ _: 3
158
+ }, 16, ["data"])
159
+ ]),
160
+ _: 3
161
+ })
162
+ ]),
163
+ _: 3
164
+ }, 8, ["style"]);
165
+ };
166
+ }
167
+ }), ve = K(ae, {});
168
+ export {
169
+ ve as default
170
+ };
171
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/TableSelectPagetable/TableSelectPagetable.vue","../../../src/components/TableSelectPagetable/index.ts"],"sourcesContent":["<template>\r\n <o-colflex :style=\"style\">\r\n <o-flexitem flex-basic=\"need\">\r\n <div :style=\"{ display: 'flex', padding: '5px' }\">\r\n <div ref=\"div\" :style=\"{ flex: '1 1 0px', display: 'flex', gap: '5px', overflow: 'hidden' }\">\r\n <el-tag v-for=\"tag in tags\" type=\"info\">{{ tag }}</el-tag>\r\n </div>\r\n <div :style=\"{ flex: 'none', width: '150px', display: 'flex', gap: '5px', justifyContent: 'right' }\">\r\n <div v-if=\"visiable\">\r\n <el-tooltip effect=\"light\" :teleported=\"false\">\r\n <template #default>\r\n <o-button size=\"small\" :icon=\"More\" text />\r\n </template>\r\n <template #content>\r\n <el-scrollbar max-height=\"100\">\r\n <el-tag v-for=\"tag in tags\" type=\"info\" :style=\"{ margin: '5px' }\">\r\n {{ tag }}\r\n </el-tag>\r\n </el-scrollbar>\r\n </template>\r\n </el-tooltip>\r\n </div>\r\n <div>\r\n <o-button type=\"primary\" size=\"small\" @click=\"selectDone\">确定</o-button>\r\n </div>\r\n <div>\r\n <o-button size=\"small\" @click=\"clearSelection\">清空</o-button>\r\n </div>\r\n </div>\r\n </div>\r\n </o-flexitem>\r\n <o-flexitem>\r\n <pagetable ref=\"table\" :data=\"data\" selection-mode size=\"small\" :pagination-teleported=\"false\"\r\n @select=\"onSelect\" @select-all=\"onSelectAll\" v-bind=\"$attrs\">\r\n <slot></slot>\r\n </pagetable>\r\n </o-flexitem>\r\n </o-colflex>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport Pagetable from '../Pagetable'\r\nimport { ElTag, ElTooltip, ElScrollbar } from 'element-plus'\r\nimport { More } from '@element-plus/icons-vue'\r\nimport { computed, nextTick, onMounted, ref, useTemplateRef, watch, watchPostEffect } from 'vue'\r\nimport { find, intersectionWith, isEqual, remove } from 'lodash-es';\r\nimport { addUnit } from '../_util';\r\nimport { useTableselect } from '../Form/TableSelect'\r\n\r\ndefineOptions({ name: 'OTableselectPagetable', inheritAttrs: true })\r\n\r\nconst { data, width = 600, height = 300 } = defineProps<{ data: any[], width: number | string, height: number | string }>()\r\nconst style = computed(() => {\r\n return {\r\n width: addUnit(width),\r\n height: addUnit(height)\r\n }\r\n})\r\nconst tableRef = useTemplateRef('table')\r\nconst selection = ref<any[]>([])\r\nconst tags = computed(() => selection.value.map((item) => tableselect?.tag(item)))\r\n\r\nconst visiable = ref(false)\r\nconst divRef = useTemplateRef('div')\r\nonMounted(() => {\r\n const observer = new MutationObserver((mutations) => {\r\n mutations.forEach((mutation) => {\r\n if (mutation.type == 'childList') {\r\n const target = mutation.target as HTMLDivElement\r\n if (target.scrollWidth > target.clientWidth) {\r\n visiable.value = true\r\n } else {\r\n visiable.value = false\r\n }\r\n }\r\n });\r\n });\r\n observer.observe(divRef.value!, {\r\n childList: true\r\n });\r\n})\r\n\r\nconst onSelect = (_selection: any[], _row: any) => {\r\n if (find(_selection, _row)) {\r\n if (!find(selection.value, _row)) {\r\n selection.value.push(_row)\r\n }\r\n } else {\r\n if (find(selection.value, _row)) {\r\n remove(selection.value, _row)\r\n }\r\n }\r\n tableselect?.onSelect(selection.value)\r\n}\r\nconst onSelectAll = (_selection: any[]) => {\r\n if (_selection.length > 0) {\r\n _selection.forEach((item) => {\r\n if (!find(selection.value, item)) {\r\n selection.value.push(item)\r\n }\r\n })\r\n } else {\r\n remove(selection.value, (item) => find(data, item))\r\n }\r\n tableselect?.onSelect(selection.value)\r\n}\r\n\r\nconst tableselect = useTableselect()\r\nconst selectDone = () => {\r\n tableselect?.selectDone()\r\n}\r\nconst clearSelection = () => {\r\n uncheckSelection()\r\n selection.value = []\r\n tableselect?.onSelect([], true)\r\n}\r\n\r\nwatch(\r\n () => data,\r\n async () => {\r\n if (data.length > 0) {\r\n await nextTick()\r\n checkSelection()\r\n }\r\n }\r\n)\r\nwatch(() => tableselect?.selection, () => {\r\n if (tableselect?.selection && tableselect.selection.length > 0) {\r\n selection.value = tableselect.selection\r\n checkSelection()\r\n }\r\n})\r\n\r\nconst checkSelection = () => {\r\n const _selection = intersectionWith(data, selection.value, isEqual)\r\n _selection.forEach((row) => {\r\n //@ts-ignore\r\n tableRef.value!.toggleRowSelection(row, true)\r\n })\r\n}\r\n\r\nconst uncheckSelection = () => {\r\n const _selection = intersectionWith(data, selection.value, isEqual)\r\n _selection.forEach((row) => {\r\n //@ts-ignore\r\n tableRef.value!.toggleRowSelection(row, false)\r\n })\r\n}\r\n</script>","import { withInstall } from '../_util'\r\n\r\nimport TableSelectPagetable from './TableSelectPagetable.vue'\r\n\r\nexport default withInstall(TableSelectPagetable, {})\r\n"],"names":["style","computed","addUnit","__props","tableRef","useTemplateRef","selection","ref","tags","item","tableselect","visiable","divRef","onMounted","mutations","mutation","target","onSelect","_selection","_row","find","remove","onSelectAll","useTableselect","selectDone","clearSelection","uncheckSelection","watch","nextTick","checkSelection","intersectionWith","isEqual","row","index","withInstall","TableSelectPagetable"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAmDM,UAAAA,IAAQC,EAAS,OACZ;AAAA,MACH,OAAOC,EAAQC,EAAA,KAAK;AAAA,MACpB,QAAQD,EAAQC,EAAM,MAAA;AAAA,IAAA,EAE7B,GACKC,IAAWC,EAAe,OAAO,GACjCC,IAAYC,EAAW,CAAA,CAAE,GACzBC,IAAOP,EAAS,MAAMK,EAAU,MAAM,IAAI,CAACG,MAASC,KAAA,gBAAAA,EAAa,IAAID,EAAK,CAAC,GAE3EE,IAAWJ,EAAI,EAAK,GACpBK,IAASP,EAAe,KAAK;AACnC,IAAAQ,EAAU,MAAM;AAaH,MAZQ,IAAI,iBAAiB,CAACC,MAAc;AACvC,QAAAA,EAAA,QAAQ,CAACC,MAAa;AACxB,cAAAA,EAAS,QAAQ,aAAa;AAC9B,kBAAMC,IAASD,EAAS;AACpB,YAAAC,EAAO,cAAcA,EAAO,cAC5BL,EAAS,QAAQ,KAEjBA,EAAS,QAAQ;AAAA,UAEzB;AAAA,QAAA,CACH;AAAA,MAAA,CACJ,EACQ,QAAQC,EAAO,OAAQ;AAAA,QAC5B,WAAW;AAAA,MAAA,CACd;AAAA,IAAA,CACJ;AAEK,UAAAK,IAAW,CAACC,GAAmBC,MAAc;AAC3C,MAAAC,EAAKF,GAAYC,CAAI,IAChBC,EAAKd,EAAU,OAAOa,CAAI,KACjBb,EAAA,MAAM,KAAKa,CAAI,IAGzBC,EAAKd,EAAU,OAAOa,CAAI,KACnBE,EAAAf,EAAU,OAAOa,CAAI,GAGvBT,KAAA,QAAAA,EAAA,SAASJ,EAAU;AAAA,IAAK,GAEnCgB,IAAc,CAACJ,MAAsB;AACnC,MAAAA,EAAW,SAAS,IACTA,EAAA,QAAQ,CAACT,MAAS;AACzB,QAAKW,EAAKd,EAAU,OAAOG,CAAI,KACjBH,EAAA,MAAM,KAAKG,CAAI;AAAA,MAC7B,CACH,IAEMY,EAAAf,EAAU,OAAO,CAACG,MAASW,EAAKjB,EAAA,MAAMM,CAAI,CAAC,GAEzCC,KAAA,QAAAA,EAAA,SAASJ,EAAU;AAAA,IAAK,GAGnCI,IAAca,MACdC,IAAa,MAAM;AACrB,MAAAd,KAAA,QAAAA,EAAa;AAAA,IAAW,GAEtBe,IAAiB,MAAM;AACR,MAAAC,KACjBpB,EAAU,QAAQ,IACLI,KAAA,QAAAA,EAAA,SAAS,IAAI;AAAA,IAAI;AAGlC,IAAAiB;AAAA,MACI,MAAMxB,EAAI;AAAA,MACV,YAAY;AACJ,QAAAA,EAAI,KAAC,SAAS,MACd,MAAMyB,EAAS,GACAC;MAEvB;AAAA,IAAA,GAEEF,EAAA,MAAMjB,KAAA,gBAAAA,EAAa,WAAW,MAAM;AACtC,MAAIA,KAAA,QAAAA,EAAa,aAAaA,EAAY,UAAU,SAAS,MACzDJ,EAAU,QAAQI,EAAY,WACfmB;IACnB,CACH;AAED,UAAMA,IAAiB,MAAM;AAEd,MADQC,EAAiB3B,QAAMG,EAAU,OAAOyB,CAAO,EACvD,QAAQ,CAACC,MAAQ;AAEf,QAAA5B,EAAA,MAAO,mBAAmB4B,GAAK,EAAI;AAAA,MAAA,CAC/C;AAAA,IAAA,GAGCN,IAAmB,MAAM;AAEhB,MADQI,EAAiB3B,QAAMG,EAAU,OAAOyB,CAAO,EACvD,QAAQ,CAACC,MAAQ;AAEf,QAAA5B,EAAA,MAAO,mBAAmB4B,GAAK,EAAK;AAAA,MAAA,CAChD;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IC7ILC,KAAeC,EAAYC,IAAsB,EAAE;"}
@@ -12,7 +12,7 @@ import { tabsRootContextKey as Q } from "./constants.js";
12
12
  import { t as he, r as ye, i as Oe, b as Le, n as Fe, c as Me, d as Ve, e as Z } from "../../index-C9tCD90X.js";
13
13
  import { capitalize as I } from "../_util/strings.js";
14
14
  import { throwError as q } from "../_util/error.js";
15
- import { e as Qe, f as Ue } from "../../index-ChkLOmNK.js";
15
+ import { e as Qe, f as Ue } from "../../index-Bm0F5NQQ.js";
16
16
  import { mutable as We } from "../_util/typescript.js";
17
17
  import { EVENT_CODE as je } from "../_constants/aria.js";
18
18
  import { tabBarProps as De } from "./tab-bar.js";
@@ -1,4 +1,4 @@
1
- import { c as e, s as l, i as s, w as o, a as c, l as n, b as i, d as a } from "../../../index-ChkLOmNK.js";
1
+ import { c as e, s as l, i as s, w as o, a as c, l as n, b as i, d as a } from "../../../index-Bm0F5NQQ.js";
2
2
  import { definePropType as t } from "./props/runtime.js";
3
3
  const f = t([
4
4
  String,
@@ -13,4 +13,4 @@ export type { QuerytableProps } from './Querytable';
13
13
  export { default as Modal } from './Modal';
14
14
  export { default as Form } from './Form';
15
15
  export { default as LovTable } from './LovTable';
16
- export { default as MultiTableSelectPagetable } from './MultiTableSelectPagetable';
16
+ export { default as TableSelectPagetable } from './TableSelectPagetable';
@@ -1,27 +1,27 @@
1
- import { default as t } from "./Button/index.js";
2
- import { T as r } from "../components-DP9bnDLm.js";
1
+ import { default as a } from "./Button/index.js";
2
+ import { T as r } from "../components-BJrXhY2G.js";
3
3
  import { S as l } from "../index-BbsXWo7C.js";
4
4
  import { Colflex as m, Flexitem as p, Rowflex as s } from "./Flex/index.js";
5
- import { default as d } from "./Tabs/index.js";
5
+ import { default as u } from "./Tabs/index.js";
6
6
  import { default as T } from "./Pagetable/index.js";
7
- import { default as n } from "./Querytable/index.js";
8
- import { default as S } from "./Modal/index.js";
9
- import { default as g } from "./Form/index.js";
7
+ import { default as P } from "./Querytable/index.js";
8
+ import { default as c } from "./Modal/index.js";
9
+ import { default as i } from "./Form/index.js";
10
10
  import { default as C } from "./LovTable/index.js";
11
- import { default as M } from "./MultiTableSelectPagetable/index.js";
11
+ import { default as h } from "./TableSelectPagetable/index.js";
12
12
  export {
13
- t as Button,
13
+ a as Button,
14
14
  m as Colflex,
15
15
  p as Flexitem,
16
- g as Form,
16
+ i as Form,
17
17
  C as LovTable,
18
- S as Modal,
19
- M as MultiTableSelectPagetable,
18
+ c as Modal,
20
19
  T as Pagetable,
21
- n as Querytable,
20
+ P as Querytable,
22
21
  s as Rowflex,
23
22
  l as Space,
24
- d as Tabs,
23
+ h as TableSelectPagetable,
24
+ u as Tabs,
25
25
  r as ThroneContextProvider
26
26
  };
27
27
  //# sourceMappingURL=components.js.map
@@ -1,21 +1,21 @@
1
- import { c as t } from "../components-DP9bnDLm.js";
2
- import { T as m } from "../components-DP9bnDLm.js";
3
- import { default as u } from "./Modal/useModal.js";
1
+ import { c as t } from "../components-BJrXhY2G.js";
2
+ import { T as x } from "../components-BJrXhY2G.js";
3
+ import { default as p } from "./Modal/useModal.js";
4
4
  import { default as n } from "./Form/index.js";
5
5
  import { default as c } from "./Button/index.js";
6
6
  import { S as i } from "../index-BbsXWo7C.js";
7
7
  import { Colflex as C, Flexitem as v, Rowflex as y } from "./Flex/index.js";
8
- import { default as M } from "./Tabs/index.js";
9
- import { default as g } from "./Pagetable/index.js";
10
- import { default as F } from "./Querytable/index.js";
11
- import { default as L } from "./Modal/index.js";
8
+ import { default as P } from "./Tabs/index.js";
9
+ import { default as h } from "./Pagetable/index.js";
10
+ import { default as K } from "./Querytable/index.js";
11
+ import { default as M } from "./Modal/index.js";
12
12
  import { default as j } from "./LovTable/index.js";
13
- import { default as w } from "./MultiTableSelectPagetable/index.js";
13
+ import { default as w } from "./TableSelectPagetable/index.js";
14
14
  import { formContextKey as E } from "./Form/Form.js";
15
15
  import { default as R } from "./Form/LovInput/hooks/useLov.js";
16
16
  import { lovContextKey as z } from "./Form/LovInput/LovInput.js";
17
- import { default as D } from "./Form/MultiTableSelect/hooks/useMultiTableSelect.js";
18
- import { multiTableSelectContext as H } from "./Form/MultiTableSelect/MultiTableSelect.js";
17
+ import { default as D } from "./Form/TableSelect/hooks/useTableSelect.js";
18
+ import { tableSelectContext as H } from "./Form/TableSelect/TableSelect.js";
19
19
  const f = function(e) {
20
20
  return Object.keys(t).forEach((r) => {
21
21
  const o = t[r];
@@ -28,20 +28,20 @@ export {
28
28
  v as Flexitem,
29
29
  n as Form,
30
30
  j as LovTable,
31
- L as Modal,
32
- w as MultiTableSelectPagetable,
33
- g as Pagetable,
34
- F as Querytable,
31
+ M as Modal,
32
+ h as Pagetable,
33
+ K as Querytable,
35
34
  y as Rowflex,
36
35
  i as Space,
37
- M as Tabs,
38
- m as ThroneContextProvider,
36
+ w as TableSelectPagetable,
37
+ P as Tabs,
38
+ x as ThroneContextProvider,
39
39
  E as formContextKey,
40
40
  f as install,
41
41
  z as lovContextKey,
42
- H as multiTableSelectContext,
42
+ H as tableSelectContext,
43
43
  R as useLov,
44
- u as useOModal,
44
+ p as useOModal,
45
45
  D as useTableselect
46
46
  };
47
47
  //# sourceMappingURL=index.js.map
@@ -1,21 +1,21 @@
1
1
  import r from "./components/Button/index.js";
2
2
  import { defineComponent as t, renderSlot as n } from "vue";
3
- import { objectType as i } from "./components/_util/type.js";
4
- import { provideThroneContext as m } from "./Throne/hooks/use-throne-context.js";
3
+ import { objectType as m } from "./components/_util/type.js";
4
+ import { provideThroneContext as i } from "./Throne/hooks/use-throne-context.js";
5
5
  import "lodash-es";
6
6
  import { withInstall as p } from "./components/_util/vue/install.js";
7
7
  import "element-plus";
8
- import { S as l } from "./index-BbsXWo7C.js";
9
- import { Colflex as f, Flexitem as a, Rowflex as d } from "./components/Flex/index.js";
8
+ import { S as f } from "./index-BbsXWo7C.js";
9
+ import { Colflex as l, Flexitem as a, Rowflex as d } from "./components/Flex/index.js";
10
10
  import x from "./components/Tabs/index.js";
11
11
  import s from "./components/Pagetable/index.js";
12
12
  import c from "./components/Querytable/index.js";
13
13
  import T from "./components/Modal/index.js";
14
14
  import b from "./components/Form/index.js";
15
15
  import u from "./components/LovTable/index.js";
16
- import P from "./components/MultiTableSelectPagetable/index.js";
16
+ import P from "./components/TableSelectPagetable/index.js";
17
17
  const h = () => ({
18
- context: i()
18
+ context: m()
19
19
  }), v = /* @__PURE__ */ t({
20
20
  name: "OThroneContextProvider",
21
21
  inheritAttrs: !1,
@@ -23,21 +23,21 @@ const h = () => ({
23
23
  setup(o, {
24
24
  slots: e
25
25
  }) {
26
- return m(o), () => n(e, "default");
26
+ return i(o), () => n(e, "default");
27
27
  }
28
28
  }), C = p(v), R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
29
  __proto__: null,
30
30
  Button: r,
31
- Colflex: f,
31
+ Colflex: l,
32
32
  Flexitem: a,
33
33
  Form: b,
34
34
  LovTable: u,
35
35
  Modal: T,
36
- MultiTableSelectPagetable: P,
37
36
  Pagetable: s,
38
37
  Querytable: c,
39
38
  Rowflex: d,
40
- Space: l,
39
+ Space: f,
40
+ TableSelectPagetable: P,
41
41
  Tabs: x,
42
42
  ThroneContextProvider: C
43
43
  }, Symbol.toStringTag, { value: "Module" }));
@@ -45,4 +45,4 @@ export {
45
45
  C as T,
46
46
  R as c
47
47
  };
48
- //# sourceMappingURL=components-DP9bnDLm.js.map
48
+ //# sourceMappingURL=components-BJrXhY2G.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-DP9bnDLm.js","sources":["../src/components/Throne/ThroneContextProvider.tsx"],"sourcesContent":["import { defineComponent, renderSlot, watch, provide, computed } from 'vue'\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\n\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../_util/type'\n\nimport { provideThroneContext } from '../../Throne/hooks/use-throne-context'\n\nimport { withInstall } from '../_util'\n\nexport const throneContextProviderProps = () => ({\n context: objectType<Record<string, any>>(),\n})\n\nexport type ThroneContextProviderProps = Partial<ExtractPropTypes<ReturnType<typeof throneContextProviderProps>>>\n\nexport type ThroneContextProviderContext = Partial<ThroneContextProviderProps>\n\nconst ThroneContextProvider = defineComponent({\n name: 'OThroneContextProvider',\n inheritAttrs: false,\n props: throneContextProviderProps(),\n setup(props, { slots }) {\n provideThroneContext(props)\n return () => {\n return renderSlot(slots, 'default')\n }\n },\n})\n\nexport default withInstall<typeof ThroneContextProvider, {}>(ThroneContextProvider)\n"],"names":["throneContextProviderProps","context","objectType","ThroneContextProvider","defineComponent","name","inheritAttrs","props","setup","slots","provideThroneContext","renderSlot","withInstall"],"mappings":";;;;;;;;;;;;;;;;AASO,MAAMA,IAA6BA,OAAO;AAAA,EAC/CC,SAASC,EAAgC;AAC3C,IAMMC,IAAwBC,gBAAAA,EAAgB;AAAA,EAC5CC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOP,EAA4B;AAAA,EACnCQ,MAAMD,GAAO;AAAA,IAAEE,OAAAA;AAAAA,EAAM,GAAG;AACtBC,WAAAA,EAAqBH,CAAK,GACnB,MACEI,EAAWF,GAAO,SAAS;AAAA,EAEtC;AACF,CAAC,GAEcG,IAAAA,EAA8CT,CAAqB;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"components-BJrXhY2G.js","sources":["../src/components/Throne/ThroneContextProvider.tsx"],"sourcesContent":["import { defineComponent, renderSlot, watch, provide, computed } from 'vue'\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\n\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../_util/type'\n\nimport { provideThroneContext } from '../../Throne/hooks/use-throne-context'\n\nimport { withInstall } from '../_util'\n\nexport const throneContextProviderProps = () => ({\n context: objectType<Record<string, any>>(),\n})\n\nexport type ThroneContextProviderProps = Partial<ExtractPropTypes<ReturnType<typeof throneContextProviderProps>>>\n\nexport type ThroneContextProviderContext = Partial<ThroneContextProviderProps>\n\nconst ThroneContextProvider = defineComponent({\n name: 'OThroneContextProvider',\n inheritAttrs: false,\n props: throneContextProviderProps(),\n setup(props, { slots }) {\n provideThroneContext(props)\n return () => {\n return renderSlot(slots, 'default')\n }\n },\n})\n\nexport default withInstall<typeof ThroneContextProvider, {}>(ThroneContextProvider)\n"],"names":["throneContextProviderProps","context","objectType","ThroneContextProvider","defineComponent","name","inheritAttrs","props","setup","slots","provideThroneContext","renderSlot","withInstall"],"mappings":";;;;;;;;;;;;;;;;AASO,MAAMA,IAA6BA,OAAO;AAAA,EAC/CC,SAASC,EAAgC;AAC3C,IAMMC,IAAwBC,gBAAAA,EAAgB;AAAA,EAC5CC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOP,EAA4B;AAAA,EACnCQ,MAAMD,GAAO;AAAA,IAAEE,OAAAA;AAAAA,EAAM,GAAG;AACtBC,WAAAA,EAAqBH,CAAK,GACnB,MACEI,EAAWF,GAAO,SAAS;AAAA,EAEtC;AACF,CAAC,GAEcG,IAAAA,EAA8CT,CAAqB;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a, openBlock as _, createElementBlock as r, createElementVNode as e } from "vue";
2
2
  /*! Element Plus Icons Vue v2.3.1 */
3
- var c = /* @__PURE__ */ a({
3
+ var u = /* @__PURE__ */ a({
4
4
  name: "ArrowDown",
5
5
  __name: "arrow-down",
6
6
  setup(t) {
@@ -14,7 +14,7 @@ var c = /* @__PURE__ */ a({
14
14
  })
15
15
  ]));
16
16
  }
17
- }), L = c, u = /* @__PURE__ */ a({
17
+ }), C = u, c = /* @__PURE__ */ a({
18
18
  name: "ArrowLeft",
19
19
  __name: "arrow-left",
20
20
  setup(t) {
@@ -28,7 +28,7 @@ var c = /* @__PURE__ */ a({
28
28
  })
29
29
  ]));
30
30
  }
31
- }), C = u, o = /* @__PURE__ */ a({
31
+ }), M = c, o = /* @__PURE__ */ a({
32
32
  name: "ArrowRight",
33
33
  __name: "arrow-right",
34
34
  setup(t) {
@@ -42,7 +42,7 @@ var c = /* @__PURE__ */ a({
42
42
  })
43
43
  ]));
44
44
  }
45
- }), M = o, p = /* @__PURE__ */ a({
45
+ }), B = o, p = /* @__PURE__ */ a({
46
46
  name: "ArrowUp",
47
47
  __name: "arrow-up",
48
48
  setup(t) {
@@ -56,7 +56,7 @@ var c = /* @__PURE__ */ a({
56
56
  })
57
57
  ]));
58
58
  }
59
- }), B = p, n = /* @__PURE__ */ a({
59
+ }), y = p, n = /* @__PURE__ */ a({
60
60
  name: "CircleCheck",
61
61
  __name: "circle-check",
62
62
  setup(t) {
@@ -74,7 +74,7 @@ var c = /* @__PURE__ */ a({
74
74
  })
75
75
  ]));
76
76
  }
77
- }), y = n, v = /* @__PURE__ */ a({
77
+ }), z = n, v = /* @__PURE__ */ a({
78
78
  name: "CircleCloseFilled",
79
79
  __name: "circle-close-filled",
80
80
  setup(t) {
@@ -88,7 +88,7 @@ var c = /* @__PURE__ */ a({
88
88
  })
89
89
  ]));
90
90
  }
91
- }), z = v, w = /* @__PURE__ */ a({
91
+ }), k = v, w = /* @__PURE__ */ a({
92
92
  name: "CircleClose",
93
93
  __name: "circle-close",
94
94
  setup(t) {
@@ -106,7 +106,7 @@ var c = /* @__PURE__ */ a({
106
106
  })
107
107
  ]));
108
108
  }
109
- }), k = w, i = /* @__PURE__ */ a({
109
+ }), A = w, i = /* @__PURE__ */ a({
110
110
  name: "Close",
111
111
  __name: "close",
112
112
  setup(t) {
@@ -120,7 +120,7 @@ var c = /* @__PURE__ */ a({
120
120
  })
121
121
  ]));
122
122
  }
123
- }), A = i, d = /* @__PURE__ */ a({
123
+ }), F = i, m = /* @__PURE__ */ a({
124
124
  name: "InfoFilled",
125
125
  __name: "info-filled",
126
126
  setup(t) {
@@ -134,7 +134,7 @@ var c = /* @__PURE__ */ a({
134
134
  })
135
135
  ]));
136
136
  }
137
- }), F = d, g = /* @__PURE__ */ a({
137
+ }), V = m, d = /* @__PURE__ */ a({
138
138
  name: "Loading",
139
139
  __name: "loading",
140
140
  setup(t) {
@@ -148,7 +148,21 @@ var c = /* @__PURE__ */ a({
148
148
  })
149
149
  ]));
150
150
  }
151
- }), V = g, f = /* @__PURE__ */ a({
151
+ }), E = d, g = /* @__PURE__ */ a({
152
+ name: "More",
153
+ __name: "more",
154
+ setup(t) {
155
+ return (l, s) => (_(), r("svg", {
156
+ xmlns: "http://www.w3.org/2000/svg",
157
+ viewBox: "0 0 1024 1024"
158
+ }, [
159
+ e("path", {
160
+ fill: "currentColor",
161
+ d: "M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"
162
+ })
163
+ ]));
164
+ }
165
+ }), H = g, f = /* @__PURE__ */ a({
152
166
  name: "Search",
153
167
  __name: "search",
154
168
  setup(t) {
@@ -162,7 +176,7 @@ var c = /* @__PURE__ */ a({
162
176
  })
163
177
  ]));
164
178
  }
165
- }), E = f, m = /* @__PURE__ */ a({
179
+ }), S = f, h = /* @__PURE__ */ a({
166
180
  name: "SuccessFilled",
167
181
  __name: "success-filled",
168
182
  setup(t) {
@@ -176,7 +190,7 @@ var c = /* @__PURE__ */ a({
176
190
  })
177
191
  ]));
178
192
  }
179
- }), H = m, h = /* @__PURE__ */ a({
193
+ }), b = h, x = /* @__PURE__ */ a({
180
194
  name: "WarningFilled",
181
195
  __name: "warning-filled",
182
196
  setup(t) {
@@ -190,20 +204,21 @@ var c = /* @__PURE__ */ a({
190
204
  })
191
205
  ]));
192
206
  }
193
- }), S = h;
207
+ }), j = x;
194
208
  export {
195
- z as a,
196
- y as b,
197
- A as c,
198
- k as d,
199
- C as e,
200
- M as f,
201
- E as g,
202
- B as h,
203
- F as i,
204
- L as j,
205
- V as l,
206
- H as s,
207
- S as w
209
+ k as a,
210
+ z as b,
211
+ F as c,
212
+ A as d,
213
+ M as e,
214
+ B as f,
215
+ S as g,
216
+ y as h,
217
+ V as i,
218
+ C as j,
219
+ E as l,
220
+ H as m,
221
+ b as s,
222
+ j as w
208
223
  };
209
- //# sourceMappingURL=index-ChkLOmNK.js.map
224
+ //# sourceMappingURL=index-Bm0F5NQQ.js.map