orion-design 0.1.59 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js +400 -0
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js.map +1 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js +310 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js.map +1 -0
- package/dist/components/Edittable/Edittable.d.ts +99 -0
- package/dist/components/Edittable/columns/EdittableCellButton.d.ts +13 -0
- package/dist/components/Edittable/columns/EdittableColumnButtongroup.d.ts +28 -0
- package/dist/components/Edittable/columns/EdittableColumnCheckbox.d.ts +35 -0
- package/dist/components/Edittable/columns/EdittableColumnDate.d.ts +51 -0
- package/dist/components/Edittable/columns/EdittableColumnDiy.d.ts +25 -0
- package/dist/components/Edittable/columns/EdittableColumnIndex.d.ts +5 -0
- package/dist/components/Edittable/columns/EdittableColumnLov.d.ts +46 -0
- package/dist/components/Edittable/columns/EdittableColumnMultiselect.d.ts +67 -0
- package/dist/components/Edittable/columns/EdittableColumnNumber.d.ts +87 -0
- package/dist/components/Edittable/columns/EdittableColumnSingleselect.d.ts +67 -0
- package/dist/components/Edittable/columns/EdittableColumnString.d.ts +41 -0
- package/dist/components/Edittable/columns/EdittableColumngroup.d.ts +14 -0
- package/dist/components/Edittable/hooks/useColumns.d.ts +1 -0
- package/dist/components/Edittable/hooks/useColumns.js +175 -0
- package/dist/components/Edittable/hooks/useColumns.js.map +1 -0
- package/dist/components/Edittable/index.d.ts +121 -0
- package/dist/components/Edittable/index.js +929 -0
- package/dist/components/Edittable/index.js.map +1 -0
- package/dist/components/Edittable/utils/index.d.ts +15 -0
- package/dist/components/Edittable/utils/index.js +66 -0
- package/dist/components/Edittable/utils/index.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.d.ts +3 -9
- package/dist/components/Form/Checkbox/Checkbox.vue.d.ts +2 -6
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.d.ts +3 -14
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -2
- package/dist/components/Form/DateInput/DateInput.d.ts +3 -17
- package/dist/components/Form/DateInput/DateInput.vue.d.ts +2 -2
- package/dist/components/Form/DiyItem/DiyItem.d.ts +1 -1
- package/dist/components/Form/FileInput/FileInput.d.ts +3 -10
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +2 -371
- package/dist/components/Form/Form.d.ts +8 -0
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/Form.vue.d.ts +2 -2
- package/dist/components/Form/LovInput/LovInput.d.ts +4 -21
- package/dist/components/Form/LovInput/LovInput.js +1 -4
- package/dist/components/Form/LovInput/LovInput.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +3 -26521
- package/dist/components/Form/LovInput/index.d.ts +0 -1
- package/dist/components/Form/LovInput/index.js +1 -6
- package/dist/components/Form/LovInput/index.js.map +1 -1
- package/dist/components/Form/MultiSelect/MultiSelect.d.ts +3 -17
- package/dist/components/Form/MultiSelect/MultiSelect.vue.d.ts +2 -2
- package/dist/components/Form/NumberInput/NumberInput.d.ts +3 -19
- package/dist/components/Form/NumberInput/NumberInput.vue.d.ts +2 -2
- package/dist/components/Form/PasswordInput/PasswordInput.d.ts +3 -13
- package/dist/components/Form/PasswordInput/PasswordInput.vue.d.ts +2 -2
- package/dist/components/Form/RadioGroup/RadioGroup.d.ts +3 -14
- package/dist/components/Form/RadioGroup/RadioGroup.vue.d.ts +2 -2
- package/dist/components/Form/SingleSelect/SingleSelect.d.ts +3 -17
- package/dist/components/Form/SingleSelect/SingleSelect.vue.d.ts +2 -2
- package/dist/components/Form/StringInput/StringInput.d.ts +3 -13
- package/dist/components/Form/StringInput/StringInput.vue.d.ts +2 -2
- package/dist/components/Form/Switch/Switch.d.ts +3 -9
- package/dist/components/Form/Switch/Switch.vue.d.ts +2 -6
- package/dist/components/Form/TableSelect/TableSelect.d.ts +3 -26
- package/dist/components/Form/TableSelect/TableSelect.js +1 -4
- package/dist/components/Form/TableSelect/TableSelect.js.map +1 -1
- package/dist/components/Form/TableSelect/TableSelect.vue.d.ts +3 -26525
- package/dist/components/Form/TableSelect/index.d.ts +0 -1
- package/dist/components/Form/TableSelect/index.js +1 -6
- package/dist/components/Form/TableSelect/index.js.map +1 -1
- package/dist/components/Form/Textarea/Textarea.d.ts +3 -14
- package/dist/components/Form/Textarea/Textarea.vue.d.ts +2 -2
- package/dist/components/Form/hooks/index.d.ts +2 -6
- package/dist/components/Form/hooks/index.js +31 -79
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/index.js +391 -628
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Input/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Input/Checkbox/Checkbox.js +2 -0
- package/dist/components/Input/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Input/Checkbox/Checkbox.vue.d.ts +14 -0
- package/dist/components/Input/Checkbox/index.d.ts +1 -0
- package/dist/components/Input/Checkbox/index.js +2 -0
- package/dist/components/Input/Checkbox/index.js.map +1 -0
- package/dist/components/Input/CheckboxGroup/CheckboxGroup.d.ts +7 -0
- package/dist/components/Input/CheckboxGroup/CheckboxGroup.js +2 -0
- package/dist/components/Input/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/Input/CheckboxGroup/CheckboxGroup.vue.d.ts +14 -0
- package/dist/components/Input/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/Input/CheckboxGroup/index.js +2 -0
- package/dist/components/Input/CheckboxGroup/index.js.map +1 -0
- package/dist/components/Input/DateInput/DateInput.d.ts +10 -0
- package/dist/components/Input/DateInput/DateInput.js +2 -0
- package/dist/components/Input/DateInput/DateInput.js.map +1 -0
- package/dist/components/Input/DateInput/DateInput.vue.d.ts +11 -0
- package/dist/components/Input/DateInput/index.d.ts +1 -0
- package/dist/components/Input/DateInput/index.js +2 -0
- package/dist/components/Input/DateInput/index.js.map +1 -0
- package/dist/components/Input/FileInput/FileInput.d.ts +3 -0
- package/dist/components/Input/FileInput/FileInput.js +2 -0
- package/dist/components/Input/FileInput/FileInput.js.map +1 -0
- package/dist/components/Input/FileInput/FileInput.vue.d.ts +380 -0
- package/dist/components/Input/FileInput/index.d.ts +1 -0
- package/dist/components/Input/FileInput/index.js +2 -0
- package/dist/components/Input/FileInput/index.js.map +1 -0
- package/dist/components/Input/LovInput/LovInput.d.ts +14 -0
- package/dist/components/Input/LovInput/LovInput.js +5 -0
- package/dist/components/Input/LovInput/LovInput.js.map +1 -0
- package/dist/components/Input/LovInput/LovInput.vue.d.ts +26548 -0
- package/dist/components/Input/LovInput/hooks/useLov.js.map +1 -0
- package/dist/components/Input/LovInput/index.d.ts +2 -0
- package/dist/components/Input/LovInput/index.js +7 -0
- package/dist/components/Input/LovInput/index.js.map +1 -0
- package/dist/components/Input/MultiSelect/MultiSelect.d.ts +10 -0
- package/dist/components/Input/MultiSelect/MultiSelect.js +2 -0
- package/dist/components/Input/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/Input/MultiSelect/MultiSelect.vue.d.ts +14 -0
- package/dist/components/Input/MultiSelect/index.d.ts +1 -0
- package/dist/components/Input/MultiSelect/index.js +2 -0
- package/dist/components/Input/MultiSelect/index.js.map +1 -0
- package/dist/components/Input/NumberInput/NumberInput.d.ts +12 -0
- package/dist/components/Input/NumberInput/NumberInput.js +2 -0
- package/dist/components/Input/NumberInput/NumberInput.js.map +1 -0
- package/dist/components/Input/NumberInput/NumberInput.vue.d.ts +28 -0
- package/dist/components/Input/NumberInput/index.d.ts +1 -0
- package/dist/components/Input/NumberInput/index.js +2 -0
- package/dist/components/Input/NumberInput/index.js.map +1 -0
- package/dist/components/Input/PasswordInput/PasswordInput.d.ts +6 -0
- package/dist/components/Input/PasswordInput/PasswordInput.js +2 -0
- package/dist/components/Input/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/components/Input/PasswordInput/PasswordInput.vue.d.ts +11 -0
- package/dist/components/Input/PasswordInput/index.d.ts +1 -0
- package/dist/components/Input/PasswordInput/index.js +2 -0
- package/dist/components/Input/PasswordInput/index.js.map +1 -0
- package/dist/components/Input/RadioGroup/RadioGroup.d.ts +7 -0
- package/dist/components/Input/RadioGroup/RadioGroup.js +2 -0
- package/dist/components/Input/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/Input/RadioGroup/RadioGroup.vue.d.ts +14 -0
- package/dist/components/Input/RadioGroup/index.d.ts +1 -0
- package/dist/components/Input/RadioGroup/index.js +2 -0
- package/dist/components/Input/RadioGroup/index.js.map +1 -0
- package/dist/components/Input/SingleSelect/SingleSelect.d.ts +10 -0
- package/dist/components/Input/SingleSelect/SingleSelect.js +2 -0
- package/dist/components/Input/SingleSelect/SingleSelect.js.map +1 -0
- package/dist/components/Input/SingleSelect/SingleSelect.vue.d.ts +14 -0
- package/dist/components/Input/SingleSelect/index.d.ts +1 -0
- package/dist/components/Input/SingleSelect/index.js +2 -0
- package/dist/components/Input/SingleSelect/index.js.map +1 -0
- package/dist/components/Input/StringInput/StringInput.d.ts +6 -0
- package/dist/components/Input/StringInput/StringInput.js +2 -0
- package/dist/components/Input/StringInput/StringInput.js.map +1 -0
- package/dist/components/Input/StringInput/StringInput.vue.d.ts +28 -0
- package/dist/components/Input/StringInput/index.d.ts +1 -0
- package/dist/components/Input/StringInput/index.js +2 -0
- package/dist/components/Input/StringInput/index.js.map +1 -0
- package/dist/components/Input/Switch/Switch.d.ts +3 -0
- package/dist/components/Input/Switch/Switch.js +2 -0
- package/dist/components/Input/Switch/Switch.js.map +1 -0
- package/dist/components/Input/Switch/Switch.vue.d.ts +14 -0
- package/dist/components/Input/Switch/index.d.ts +1 -0
- package/dist/components/Input/Switch/index.js +2 -0
- package/dist/components/Input/Switch/index.js.map +1 -0
- package/dist/components/Input/TableSelect/TableSelect.d.ts +19 -0
- package/dist/components/Input/TableSelect/TableSelect.js +5 -0
- package/dist/components/Input/TableSelect/TableSelect.js.map +1 -0
- package/dist/components/Input/TableSelect/TableSelect.vue.d.ts +26546 -0
- package/dist/components/Input/TableSelect/hooks/useTableSelect.js.map +1 -0
- package/dist/components/Input/TableSelect/index.d.ts +2 -0
- package/dist/components/Input/TableSelect/index.js +7 -0
- package/dist/components/Input/TableSelect/index.js.map +1 -0
- package/dist/components/Input/Textarea/Textarea.d.ts +7 -0
- package/dist/components/Input/Textarea/Textarea.js +2 -0
- package/dist/components/Input/Textarea/Textarea.js.map +1 -0
- package/dist/components/Input/Textarea/Textarea.vue.d.ts +11 -0
- package/dist/components/Input/Textarea/index.d.ts +1 -0
- package/dist/components/Input/Textarea/index.js +2 -0
- package/dist/components/Input/Textarea/index.js.map +1 -0
- package/dist/components/Input/hooks/index.d.ts +3 -0
- package/dist/components/Input/hooks/index.js +25 -0
- package/dist/components/Input/hooks/index.js.map +1 -0
- package/dist/components/Input/index.d.ts +27166 -0
- package/dist/components/Input/index.js +32 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/Input/utils/index.js.map +1 -0
- package/dist/components/LovTable/index.js +4 -3
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/TableSelectPagetable/index.js +31 -29
- package/dist/components/TableSelectPagetable/index.js.map +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +45 -28
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +68 -51
- package/dist/components/index.js.map +1 -1
- package/dist/components-D1sXVvN9.js +73 -0
- package/dist/{components-DqItbXAG.js.map → components-D1sXVvN9.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +71 -54
- 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/Form/LovInput/hooks/useLov.js.map +0 -1
- package/dist/components/Form/TableSelect/hooks/useTableSelect.js.map +0 -1
- package/dist/components/Form/utils/index.js.map +0 -1
- package/dist/components-DqItbXAG.js +0 -56
- /package/dist/components/{Form → Input}/LovInput/hooks/useLov.d.ts +0 -0
- /package/dist/components/{Form → Input}/LovInput/hooks/useLov.js +0 -0
- /package/dist/components/{Form → Input}/TableSelect/hooks/useTableSelect.d.ts +0 -0
- /package/dist/components/{Form → Input}/TableSelect/hooks/useTableSelect.js +0 -0
- /package/dist/components/{Form → Input}/utils/index.d.ts +0 -0
- /package/dist/components/{Form → Input}/utils/index.js +0 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
import "lodash-es";
|
2
|
+
import "vue";
|
3
|
+
import { withInstall as s } from "../_util/vue/install.js";
|
4
|
+
import "element-plus";
|
5
|
+
import { _ as t, a, b as o, c, d as n, e, f as _ } from "../../LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js";
|
6
|
+
import { _ as m, a as i, b as f, c as r, d as p, e as l, f as u } from "../../TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js";
|
7
|
+
import { lovContextKey as R } from "./LovInput/LovInput.js";
|
8
|
+
import { default as q } from "./LovInput/hooks/useLov.js";
|
9
|
+
import { tableSelectContext as A } from "./TableSelect/TableSelect.js";
|
10
|
+
import { default as E } from "./TableSelect/hooks/useTableSelect.js";
|
11
|
+
const h = s(t), C = s(m), v = s(i), w = s(a), T = s(o), g = s(f), k = s(r), G = s(c), L = s(p), y = s(n), D = s(l), F = s(e), K = s(_), M = s(u);
|
12
|
+
export {
|
13
|
+
G as Checkbox,
|
14
|
+
k as CheckboxGroup,
|
15
|
+
y as DateInput,
|
16
|
+
D as FileInput,
|
17
|
+
F as LovInput,
|
18
|
+
T as MultiSelect,
|
19
|
+
K as NumberInput,
|
20
|
+
C as PasswordInput,
|
21
|
+
g as RadioGroup,
|
22
|
+
w as SingleSelect,
|
23
|
+
h as StringInput,
|
24
|
+
L as Switch,
|
25
|
+
M as TableSelect,
|
26
|
+
v as Textarea,
|
27
|
+
R as lovContextKey,
|
28
|
+
A as tableSelectContext,
|
29
|
+
q as useLov,
|
30
|
+
E as useTableselect
|
31
|
+
};
|
32
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Input/index.ts"],"sourcesContent":["import { withInstall } from '../_util'\r\n\r\nimport StringInputInner from './StringInput/StringInput.vue'\r\nimport PasswordInputInner from './PasswordInput/PasswordInput.vue'\r\nimport TextareaInner from './Textarea/Textarea.vue'\r\nimport SingleSelectInner from './SingleSelect/SingleSelect.vue'\r\nimport MultiSelectInner from './MultiSelect/MultiSelect.vue'\r\nimport RadioGroupInner from './RadioGroup/RadioGroup.vue'\r\nimport CheckboxGroupInner from './CheckboxGroup/CheckboxGroup.vue'\r\nimport CheckboxInner from './Checkbox/Checkbox.vue'\r\nimport SwitchInner from './Switch/Switch.vue'\r\nimport DateInputInner from './DateInput/DateInput.vue'\r\nimport FileInputInner from './FileInput/FileInput.vue'\r\nimport LovInputInner from './LovInput/LovInput.vue'\r\nimport NumberInputInner from './NumberInput/NumberInput.vue'\r\nimport TableSelectInner from './TableSelect/TableSelect.vue'\r\n\r\nexport const StringInput = withInstall(StringInputInner)\r\nexport const PasswordInput = withInstall(PasswordInputInner)\r\nexport const Textarea = withInstall(TextareaInner)\r\nexport const SingleSelect = withInstall(SingleSelectInner)\r\nexport const MultiSelect = withInstall(MultiSelectInner)\r\nexport const RadioGroup = withInstall(RadioGroupInner)\r\nexport const CheckboxGroup = withInstall(CheckboxGroupInner)\r\nexport const Checkbox = withInstall(CheckboxInner)\r\nexport const Switch = withInstall(SwitchInner)\r\nexport const DateInput = withInstall(DateInputInner)\r\nexport const FileInput = withInstall(FileInputInner)\r\nexport const LovInput = withInstall(LovInputInner)\r\nexport const NumberInput = withInstall(NumberInputInner)\r\nexport const TableSelect = withInstall(TableSelectInner)\r\n\r\nexport * from './StringInput'\r\nexport * from './PasswordInput'\r\nexport * from './Textarea'\r\nexport * from './SingleSelect'\r\nexport * from './MultiSelect'\r\nexport * from './RadioGroup'\r\nexport * from './CheckboxGroup'\r\nexport * from './Checkbox'\r\nexport * from './Switch'\r\nexport * from './DateInput'\r\nexport * from './FileInput'\r\nexport * from './LovInput'\r\nexport * from './NumberInput'\r\nexport * from './TableSelect'\r\n"],"names":["StringInput","withInstall","StringInputInner","PasswordInput","PasswordInputInner","Textarea","TextareaInner","SingleSelect","SingleSelectInner","MultiSelect","MultiSelectInner","RadioGroup","RadioGroupInner","CheckboxGroup","CheckboxGroupInner","Checkbox","CheckboxInner","Switch","SwitchInner","DateInput","DateInputInner","FileInput","FileInputInner","LovInput","LovInputInner","NumberInput","NumberInputInner","TableSelect","TableSelectInner"],"mappings":";;;;;;;;;;AAiBa,MAAAA,IAAcC,EAAYC,CAAgB,GAC1CC,IAAgBF,EAAYG,CAAkB,GAC9CC,IAAWJ,EAAYK,CAAa,GACpCC,IAAeN,EAAYO,CAAiB,GAC5CC,IAAcR,EAAYS,CAAgB,GAC1CC,IAAaV,EAAYW,CAAe,GACxCC,IAAgBZ,EAAYa,CAAkB,GAC9CC,IAAWd,EAAYe,CAAa,GACpCC,IAAShB,EAAYiB,CAAW,GAChCC,IAAYlB,EAAYmB,CAAc,GACtCC,IAAYpB,EAAYqB,CAAc,GACtCC,IAAWtB,EAAYuB,CAAa,GACpCC,IAAcxB,EAAYyB,CAAgB,GAC1CC,IAAc1B,EAAY2B,CAAgB;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Input/utils/index.ts"],"sourcesContent":["export const getSingleCodeContent = (\r\n options: Array<{\r\n value: string\r\n content: string\r\n }>,\r\n curValue: string\r\n) => {\r\n if (!curValue) {\r\n return null\r\n }\r\n\r\n for (let i = 0; i < options.length; i++) {\r\n const { value, content } = options[i]\r\n if (value == curValue) {\r\n return content\r\n }\r\n }\r\n\r\n return curValue + '(?)'\r\n}\r\n\r\nexport const getMultiCodeContent = (\r\n options: Array<{\r\n value: string\r\n content: string\r\n }>,\r\n curValue: string\r\n) => {\r\n if (!curValue) {\r\n return null\r\n }\r\n\r\n let content = ''\r\n\r\n const data = curValue.split(',')\r\n data.forEach((selectValue, valueIndex) => {\r\n const index = options.findIndex((item) => {\r\n if (item.value == selectValue) return true\r\n })\r\n\r\n if (index == -1) {\r\n content += `${selectValue}(?)`\r\n } else {\r\n content += options[index].content\r\n }\r\n\r\n if (valueIndex != data.length - 1) {\r\n content += ','\r\n }\r\n })\r\n\r\n return content\r\n}\r\n"],"names":["getSingleCodeContent","options","curValue","i","value","content","getMultiCodeContent","data","selectValue","valueIndex","index","item"],"mappings":"AAAa,MAAAA,IAAuB,CAClCC,GAIAC,MACG;AACH,MAAI,CAACA;AACI,WAAA;AAGT,WAASC,IAAI,GAAGA,IAAIF,EAAQ,QAAQE,KAAK;AACvC,UAAM,EAAE,OAAAC,GAAO,SAAAC,EAAQ,IAAIJ,EAAQE,CAAC;AACpC,QAAIC,KAASF;AACJ,aAAAG;AAAA,EAEX;AAEA,SAAOH,IAAW;AACpB,GAEaI,IAAsB,CACjCL,GAIAC,MACG;AACH,MAAI,CAACA;AACI,WAAA;AAGT,MAAIG,IAAU;AAER,QAAAE,IAAOL,EAAS,MAAM,GAAG;AAC1B,SAAAK,EAAA,QAAQ,CAACC,GAAaC,MAAe;AACxC,UAAMC,IAAQT,EAAQ,UAAU,CAACU,MAAS;AACpC,UAAAA,EAAK,SAASH,EAAoB,QAAA;AAAA,IAAA,CACvC;AAED,IAAIE,KAAS,KACXL,KAAW,GAAGG,CAAW,QAEdH,KAAAJ,EAAQS,CAAK,EAAE,SAGxBD,KAAcF,EAAK,SAAS,MACnBF,KAAA;AAAA,EACb,CACD,GAEMA;AACT;"}
|
@@ -3,8 +3,8 @@ import { defineComponent as A, useTemplateRef as k, ref as v, watch as x, openBl
|
|
3
3
|
import { withInstall as D } from "../_util/vue/install.js";
|
4
4
|
import "element-plus";
|
5
5
|
import T from "../Querytable/index.js";
|
6
|
-
import "../
|
7
|
-
import Q from "../
|
6
|
+
import "../Input/index.js";
|
7
|
+
import Q from "../Input/LovInput/hooks/useLov.js";
|
8
8
|
import q from "../Pagetable/index.js";
|
9
9
|
const B = /* @__PURE__ */ A({
|
10
10
|
name: "OLovQuerytable",
|
@@ -115,7 +115,8 @@ const B = /* @__PURE__ */ A({
|
|
115
115
|
pagination: t.pagination,
|
116
116
|
"onUpdate:pagination": s,
|
117
117
|
size: "small",
|
118
|
-
"pagination-teleported": !1
|
118
|
+
"pagination-teleported": !1,
|
119
|
+
"pagination-show-jumber": !1
|
119
120
|
}, {
|
120
121
|
default: S(() => [
|
121
122
|
z(t.$slots, "default")
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/LovTable/LovQuerytable.vue","../../../src/components/LovTable/LovPagetable.vue","../../../src/components/LovTable/index.ts"],"sourcesContent":["<template>\r\n <querytable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\" size=\"small\">\r\n <slot></slot>\r\n </querytable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport Querytable from '../Querytable'\r\nimport { useLov } from '../
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/LovTable/LovQuerytable.vue","../../../src/components/LovTable/LovPagetable.vue","../../../src/components/LovTable/index.ts"],"sourcesContent":["<template>\r\n <querytable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\" size=\"small\">\r\n <slot></slot>\r\n </querytable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport Querytable from '../Querytable'\r\nimport { useLov } from '../Input'\r\nimport { findIndex } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OLovQuerytable', inheritAttrs: true })\r\n\r\nconst { data } = defineProps<{ data: any[] }>()\r\nconst tableRef = useTemplateRef('table')\r\nconst currentRowIndex = ref()\r\nconst currentRowData = ref()\r\n\r\nconst lov = useLov()\r\nlov?.registerKeydownHandler((code) => {\r\n if (code == 'ArrowUp') {\r\n let nextRow: any\r\n if (currentRowIndex.value == 0) {\r\n nextRow = data[data.length - 1]\r\n } else {\r\n nextRow = data[currentRowIndex.value - 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'ArrowDown') {\r\n let nextRow: any\r\n if (currentRowIndex.value == data.length - 1) {\r\n nextRow = data[0]\r\n } else {\r\n nextRow = data[currentRowIndex.value + 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'Enter') {\r\n currentRowData.value && lov?.backfill(currentRowData.value)\r\n }\r\n})\r\n\r\nconst scrollToRow = (index: number) => {\r\n const $table = tableRef.value!.$el\r\n const $row = $table.querySelectorAll('.el-table__row')[index]\r\n $row.scrollIntoViewIfNeeded()\r\n}\r\n\r\nconst onRowClick = (row: any) => {\r\n lov?.backfill(row)\r\n}\r\n\r\nconst handleCurrentRowChange = (row: any) => {\r\n const index = findIndex(data, row)\r\n if (index == -1) {\r\n currentRowIndex.value = 0\r\n currentRowData.value = data[0]\r\n } else {\r\n currentRowIndex.value = index\r\n currentRowData.value = row\r\n }\r\n}\r\n\r\nwatch(\r\n () => data,\r\n () => {\r\n if (data.length > 0) {\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(data[0])\r\n }\r\n }\r\n)\r\n</script>\r\n","<template>\r\n <pagetable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\" :pagination=\"pagination\" @update:pagination=\"onUpdatePagination\"\r\n size=\"small\" :pagination-teleported=\"false\" :pagination-show-jumber=\"false\">\r\n <slot></slot>\r\n </pagetable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport Pagetable from '../Pagetable'\r\nimport { useLov } from '../Input'\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport { findIndex } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OLovPagetable', inheritAttrs: true })\r\n\r\nconst { data, pagination } = defineProps<{\r\n data: any[]\r\n pagination: {\r\n currentPage?: number\r\n pageSize?: number\r\n total?: number\r\n }\r\n}>()\r\n\r\nconst emits = defineEmits(['update:pagination'])\r\nconst onUpdatePagination = (data: any) => {\r\n emits('update:pagination', data)\r\n}\r\n\r\nconst tableRef = useTemplateRef('table')\r\nconst currentRowIndex = ref()\r\nconst currentRowData = ref()\r\n\r\nconst lov = useLov()!\r\nlov.registerKeydownHandler((code) => {\r\n if (code == 'ArrowUp') {\r\n let nextRow: any\r\n if (currentRowIndex.value == 0) {\r\n nextRow = data[data.length - 1]\r\n } else {\r\n nextRow = data[currentRowIndex.value - 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'ArrowDown') {\r\n let nextRow: any\r\n if (currentRowIndex.value == data.length - 1) {\r\n nextRow = data[0]\r\n } else {\r\n nextRow = data[currentRowIndex.value + 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'Enter') {\r\n currentRowData.value && lov?.backfill(currentRowData.value)\r\n } else if (code == 'ArrowLeft') {\r\n const currentPage = pagination?.currentPage\r\n const pageSize = pagination?.pageSize\r\n const total = pagination?.total\r\n if (!currentPage || !pageSize || !total) {\r\n return\r\n }\r\n if (currentPage > 1) {\r\n emits('update:pagination', {\r\n ...pagination,\r\n currentPage: currentPage - 1,\r\n })\r\n }\r\n } else if (code == 'ArrowRight') {\r\n const currentPage = pagination?.currentPage\r\n const pageSize = pagination?.pageSize\r\n const total = pagination?.total\r\n if (!currentPage || !pageSize || !total) {\r\n return\r\n }\r\n const totalPage = Math.ceil(total / pageSize)\r\n if (currentPage < totalPage) {\r\n emits('update:pagination', {\r\n ...pagination,\r\n currentPage: currentPage + 1,\r\n })\r\n }\r\n }\r\n})\r\n\r\nconst scrollToRow = (index: number) => {\r\n const $table = tableRef.value!.$el\r\n const $row = $table.querySelectorAll('.el-table__row')[index]\r\n $row.scrollIntoViewIfNeeded()\r\n}\r\n\r\nconst onRowClick = (row: any) => {\r\n lov?.backfill(row)\r\n}\r\n\r\nconst handleCurrentRowChange = (row: any) => {\r\n const index = findIndex(data, row)\r\n if (index == -1) {\r\n currentRowIndex.value = 0\r\n currentRowData.value = data[0]\r\n } else {\r\n currentRowIndex.value = index\r\n currentRowData.value = row\r\n }\r\n}\r\n\r\nwatch(\r\n () => data,\r\n () => {\r\n if (data.length > 0) {\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(data[0])\r\n }\r\n }\r\n)\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport LovQuerytableInner from './LovQuerytable.vue'\r\nimport LovPagetableInner from './LovPagetable.vue'\r\n\r\nexport const LovQuerytable = withInstall(LovQuerytableInner)\r\nexport const LovPagetable = withInstall(LovPagetableInner)\r\n"],"names":["tableRef","useTemplateRef","currentRowIndex","ref","currentRowData","lov","useLov","code","nextRow","__props","scrollToRow","index","onRowClick","row","handleCurrentRowChange","findIndex","watch","emits","__emit","onUpdatePagination","data","currentPage","_a","pageSize","_b","total","_c","_d","_e","_f","totalPage","LovQuerytable","withInstall","LovQuerytableInner","LovPagetable","LovPagetableInner"],"mappings":"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"}
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import { intersectionWith as E, isEqual as k, find as d, remove as
|
2
|
-
import { defineComponent as q, computed as
|
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 b, ref as C, 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 u, createTextVNode as m, toDisplayString as P, createCommentVNode as G, mergeProps as H, renderSlot as J } from "vue";
|
3
3
|
import { withInstall as K } from "../_util/vue/install.js";
|
4
4
|
import { ElTag as V, ElTooltip as Q, ElScrollbar as X } from "element-plus";
|
5
5
|
import Y from "../Pagetable/index.js";
|
6
6
|
import { bT as Z } from "../../index-CIR6wX_E.js";
|
7
7
|
import { addUnit as B } from "../_util/dom/style.js";
|
8
|
-
import
|
8
|
+
import "../Input/index.js";
|
9
|
+
import ee from "../Input/TableSelect/hooks/useTableSelect.js";
|
9
10
|
const te = { style: { display: "flex", padding: "5px" } }, le = {
|
10
11
|
ref: "div",
|
11
12
|
style: { flex: "1 1 0px", display: "flex", gap: "5px", overflow: "hidden" }
|
@@ -19,16 +20,16 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
19
20
|
height: { default: 300 }
|
20
21
|
},
|
21
22
|
setup(i) {
|
22
|
-
const D =
|
23
|
+
const D = T(() => ({
|
23
24
|
width: B(i.width),
|
24
25
|
height: B(i.height)
|
25
|
-
})), y =
|
26
|
+
})), y = b("table"), l = C([]), S = T(() => l.value.map((o) => e == null ? void 0 : e.tag(o))), v = C(!1), L = b("div");
|
26
27
|
F(() => {
|
27
28
|
new MutationObserver((t) => {
|
28
29
|
t.forEach((s) => {
|
29
30
|
if (s.type == "childList") {
|
30
|
-
const
|
31
|
-
|
31
|
+
const c = s.target;
|
32
|
+
c.scrollWidth > c.clientWidth ? v.value = !0 : v.value = !1;
|
32
33
|
}
|
33
34
|
});
|
34
35
|
}).observe(L.value, {
|
@@ -36,15 +37,15 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
36
37
|
});
|
37
38
|
});
|
38
39
|
const W = (o, t) => {
|
39
|
-
d(o, t) ? d(l.value, t) || l.value.push(t) : d(l.value, t) &&
|
40
|
-
},
|
40
|
+
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);
|
41
|
+
}, j = (o) => {
|
41
42
|
o.length > 0 ? o.forEach((t) => {
|
42
43
|
d(l.value, t) || l.value.push(t);
|
43
|
-
}) :
|
44
|
-
}, e = ee(),
|
44
|
+
}) : w(l.value, (t) => d(i.data, t)), e == null || e.onSelect(l.value);
|
45
|
+
}, e = ee(), A = () => {
|
45
46
|
e == null || e.selectDone();
|
46
|
-
},
|
47
|
-
|
47
|
+
}, M = () => {
|
48
|
+
O(), l.value = [], e == null || e.onSelect([], !0);
|
48
49
|
};
|
49
50
|
z(
|
50
51
|
() => i.data,
|
@@ -58,22 +59,22 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
58
59
|
E(i.data, l.value, k).forEach((t) => {
|
59
60
|
y.value.toggleRowSelection(t, !0);
|
60
61
|
});
|
61
|
-
},
|
62
|
+
}, O = () => {
|
62
63
|
E(i.data, l.value, k).forEach((t) => {
|
63
64
|
y.value.toggleRowSelection(t, !1);
|
64
65
|
});
|
65
66
|
};
|
66
67
|
return (o, t) => {
|
67
|
-
const s = p("o-button"),
|
68
|
-
return r(), g(
|
68
|
+
const s = p("o-button"), c = p("o-flexitem"), $ = p("o-colflex");
|
69
|
+
return r(), g($, {
|
69
70
|
style: U(D.value)
|
70
71
|
}, {
|
71
72
|
default: n(() => [
|
72
|
-
a(
|
73
|
+
a(c, { "flex-basic": "need" }, {
|
73
74
|
default: n(() => [
|
74
75
|
f("div", te, [
|
75
76
|
f("div", le, [
|
76
|
-
(r(!0), x(R, null, N(S.value, (h) => (r(), g(
|
77
|
+
(r(!0), x(R, null, N(S.value, (h) => (r(), g(u(V), { type: "info" }, {
|
77
78
|
default: n(() => [
|
78
79
|
m(P(h), 1)
|
79
80
|
]),
|
@@ -82,21 +83,21 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
82
83
|
], 512),
|
83
84
|
f("div", oe, [
|
84
85
|
v.value ? (r(), x("div", ne, [
|
85
|
-
a(
|
86
|
+
a(u(Q), {
|
86
87
|
effect: "light",
|
87
88
|
teleported: !1
|
88
89
|
}, {
|
89
90
|
default: n(() => [
|
90
91
|
a(s, {
|
91
92
|
size: "small",
|
92
|
-
icon:
|
93
|
+
icon: u(Z),
|
93
94
|
text: ""
|
94
95
|
}, null, 8, ["icon"])
|
95
96
|
]),
|
96
97
|
content: n(() => [
|
97
|
-
a(
|
98
|
+
a(u(X), { "max-height": "100" }, {
|
98
99
|
default: n(() => [
|
99
|
-
(r(!0), x(R, null, N(S.value, (h) => (r(), g(
|
100
|
+
(r(!0), x(R, null, N(S.value, (h) => (r(), g(u(V), {
|
100
101
|
type: "info",
|
101
102
|
style: { margin: "5px" }
|
102
103
|
}, {
|
@@ -116,7 +117,7 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
116
117
|
a(s, {
|
117
118
|
type: "primary",
|
118
119
|
size: "small",
|
119
|
-
onClick:
|
120
|
+
onClick: A
|
120
121
|
}, {
|
121
122
|
default: n(() => t[0] || (t[0] = [
|
122
123
|
m("确定")
|
@@ -127,7 +128,7 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
127
128
|
f("div", null, [
|
128
129
|
a(s, {
|
129
130
|
size: "small",
|
130
|
-
onClick:
|
131
|
+
onClick: M
|
131
132
|
}, {
|
132
133
|
default: n(() => t[1] || (t[1] = [
|
133
134
|
m("清空")
|
@@ -140,16 +141,17 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
140
141
|
]),
|
141
142
|
_: 1
|
142
143
|
}),
|
143
|
-
a(
|
144
|
+
a(c, null, {
|
144
145
|
default: n(() => [
|
145
|
-
a(
|
146
|
+
a(u(Y), H({
|
146
147
|
ref: "table",
|
147
148
|
data: o.data,
|
148
149
|
"selection-mode": "",
|
149
150
|
size: "small",
|
150
151
|
"pagination-teleported": !1,
|
152
|
+
"pagination-show-jumber": !1,
|
151
153
|
onSelect: W,
|
152
|
-
onSelectAll:
|
154
|
+
onSelectAll: j
|
153
155
|
}, o.$attrs), {
|
154
156
|
default: n(() => [
|
155
157
|
J(o.$slots, "default")
|
@@ -164,8 +166,8 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
164
166
|
}, 8, ["style"]);
|
165
167
|
};
|
166
168
|
}
|
167
|
-
}),
|
169
|
+
}), he = K(ae, {});
|
168
170
|
export {
|
169
|
-
|
171
|
+
he as default
|
170
172
|
};
|
171
173
|
//# sourceMappingURL=index.js.map
|
@@ -1 +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
|
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 :pagination-show-jumber=\"false\" @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 } from 'vue'\r\nimport { find, intersectionWith, isEqual, remove } from 'lodash-es'\r\nimport { addUnit } from '../_util'\r\nimport { useTableselect } from '../Input'\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;"}
|
@@ -9,10 +9,12 @@ export { default as Card } from './Card';
|
|
9
9
|
export { default as Tabs } from './Tabs';
|
10
10
|
export type { TabsProps } from './Tabs';
|
11
11
|
export { default as Pagetable } from './Pagetable';
|
12
|
+
export { default as Edittable } from './Edittable';
|
12
13
|
export { default as Querytable } from './Querytable';
|
13
14
|
export type { QuerytableProps } from './Querytable';
|
14
15
|
export { default as Modal } from './Modal';
|
15
16
|
export { default as Form } from './Form';
|
17
|
+
export { StringInput, PasswordInput, Textarea, SingleSelect, MultiSelect, RadioGroup, CheckboxGroup, Checkbox, Switch, DateInput, FileInput, LovInput, NumberInput, TableSelect, } from './Input';
|
16
18
|
export { LovPagetable, LovQuerytable } from './LovTable';
|
17
19
|
export { default as TableSelectPagetable } from './TableSelectPagetable';
|
18
20
|
export { default as Icon } from './Icon';
|
@@ -1,36 +1,53 @@
|
|
1
|
-
import { default as
|
1
|
+
import { default as o } from "./Button/index.js";
|
2
2
|
import { default as a } from "./Tooltip/index.js";
|
3
|
-
import { T as
|
4
|
-
import { S as
|
5
|
-
import { Colflex as
|
6
|
-
import { default as
|
7
|
-
import { default as
|
8
|
-
import { default as
|
9
|
-
import { default as
|
10
|
-
import { default as
|
3
|
+
import { T as f } from "../components-D1sXVvN9.js";
|
4
|
+
import { S as u } from "../index-CvcZkdiG.js";
|
5
|
+
import { Colflex as m, Flexitem as d, Rowflex as s } from "./Flex/index.js";
|
6
|
+
import { default as n } from "./Card/index.js";
|
7
|
+
import { default as c } from "./Tabs/index.js";
|
8
|
+
import { default as T } from "./Pagetable/index.js";
|
9
|
+
import { default as g } from "./Edittable/index.js";
|
10
|
+
import { default as P } from "./Querytable/index.js";
|
11
|
+
import { default as v } from "./Modal/index.js";
|
11
12
|
import { default as F } from "./Form/index.js";
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import { default as
|
15
|
-
import {
|
13
|
+
import { Checkbox as k, CheckboxGroup as y, DateInput as G, FileInput as M, LovInput as Q, MultiSelect as R, NumberInput as B, PasswordInput as D, RadioGroup as E, SingleSelect as N, StringInput as O, Switch as j, TableSelect as q, Textarea as z } from "./Input/index.js";
|
14
|
+
import { LovPagetable as H, LovQuerytable as J } from "./LovTable/index.js";
|
15
|
+
import { default as U } from "./TableSelectPagetable/index.js";
|
16
|
+
import { default as W } from "./Icon/index.js";
|
17
|
+
import { OTree as Y } from "./Tree/index.js";
|
16
18
|
export {
|
17
|
-
|
18
|
-
|
19
|
-
|
19
|
+
o as Button,
|
20
|
+
n as Card,
|
21
|
+
k as Checkbox,
|
22
|
+
y as CheckboxGroup,
|
23
|
+
m as Colflex,
|
24
|
+
G as DateInput,
|
25
|
+
g as Edittable,
|
26
|
+
M as FileInput,
|
20
27
|
d as Flexitem,
|
21
28
|
F as Form,
|
22
|
-
|
23
|
-
Q as
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
P as
|
32
|
-
|
29
|
+
W as Icon,
|
30
|
+
Q as LovInput,
|
31
|
+
H as LovPagetable,
|
32
|
+
J as LovQuerytable,
|
33
|
+
v as Modal,
|
34
|
+
R as MultiSelect,
|
35
|
+
B as NumberInput,
|
36
|
+
T as Pagetable,
|
37
|
+
D as PasswordInput,
|
38
|
+
P as Querytable,
|
39
|
+
E as RadioGroup,
|
40
|
+
s as Rowflex,
|
41
|
+
N as SingleSelect,
|
42
|
+
u as Space,
|
43
|
+
O as StringInput,
|
44
|
+
j as Switch,
|
45
|
+
q as TableSelect,
|
46
|
+
U as TableSelectPagetable,
|
47
|
+
c as Tabs,
|
48
|
+
z as Textarea,
|
49
|
+
f as ThroneContextProvider,
|
33
50
|
a as Tooltip,
|
34
|
-
|
51
|
+
Y as Tree
|
35
52
|
};
|
36
53
|
//# sourceMappingURL=components.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/components/index.js
CHANGED
@@ -1,28 +1,30 @@
|
|
1
|
-
import { c as t } from "../components-
|
2
|
-
import { T as
|
3
|
-
import { default as
|
4
|
-
import { default as
|
1
|
+
import { c as t } from "../components-D1sXVvN9.js";
|
2
|
+
import { T as s } from "../components-D1sXVvN9.js";
|
3
|
+
import { default as u } from "./Modal/index.js";
|
4
|
+
import { default as n } from "./Form/index.js";
|
5
5
|
import { OTree as c, OTree as b } from "./Tree/index.js";
|
6
|
-
import { OMessage as
|
7
|
-
import { OMessageBox as
|
8
|
-
import { default as
|
9
|
-
import {
|
10
|
-
import { default as
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import { default as
|
15
|
-
import { default as
|
16
|
-
import {
|
17
|
-
import { default as
|
18
|
-
import {
|
19
|
-
import { default as
|
20
|
-
import {
|
21
|
-
import { default as
|
22
|
-
import {
|
23
|
-
import { default as
|
24
|
-
import {
|
25
|
-
import {
|
6
|
+
import { OMessage as T } from "./Message/index.js";
|
7
|
+
import { OMessageBox as g } from "./MessageBox/index.js";
|
8
|
+
import { default as I, pagetableProps as P } from "./Pagetable/index.js";
|
9
|
+
import { Checkbox as O, CheckboxGroup as h, DateInput as y, FileInput as M, LovInput as L, MultiSelect as k, NumberInput as w, PasswordInput as F, RadioGroup as B, SingleSelect as E, StringInput as G, Switch as K, TableSelect as Q, Textarea as R } from "./Input/index.js";
|
10
|
+
import { default as D } from "./Button/index.js";
|
11
|
+
import { default as q } from "./Tooltip/index.js";
|
12
|
+
import { S as A } from "../index-CvcZkdiG.js";
|
13
|
+
import { Colflex as J, Flexitem as U, Rowflex as V } from "./Flex/index.js";
|
14
|
+
import { default as X } from "./Card/index.js";
|
15
|
+
import { default as Z } from "./Tabs/index.js";
|
16
|
+
import { default as $ } from "./Edittable/index.js";
|
17
|
+
import { default as oe } from "./Querytable/index.js";
|
18
|
+
import { LovPagetable as re, LovQuerytable as ae } from "./LovTable/index.js";
|
19
|
+
import { default as le } from "./TableSelectPagetable/index.js";
|
20
|
+
import { default as se } from "./Icon/index.js";
|
21
|
+
import { default as ue } from "./Modal/useModal.js";
|
22
|
+
import { formContextKey as ne } from "./Form/Form.js";
|
23
|
+
import { default as ce } from "./Pagetable/hooks/usePagetable.js";
|
24
|
+
import { default as ie } from "./Input/LovInput/hooks/useLov.js";
|
25
|
+
import { lovContextKey as Se } from "./Input/LovInput/LovInput.js";
|
26
|
+
import { default as Ce } from "./Input/TableSelect/hooks/useTableSelect.js";
|
27
|
+
import { tableSelectContext as Pe } from "./Input/TableSelect/TableSelect.js";
|
26
28
|
const f = function(e) {
|
27
29
|
return Object.keys(t).forEach((r) => {
|
28
30
|
const o = t[r];
|
@@ -30,35 +32,50 @@ const f = function(e) {
|
|
30
32
|
}), e;
|
31
33
|
};
|
32
34
|
export {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
35
|
+
D as Button,
|
36
|
+
X as Card,
|
37
|
+
O as Checkbox,
|
38
|
+
h as CheckboxGroup,
|
39
|
+
J as Colflex,
|
40
|
+
y as DateInput,
|
41
|
+
$ as Edittable,
|
42
|
+
M as FileInput,
|
43
|
+
U as Flexitem,
|
44
|
+
n as Form,
|
45
|
+
se as Icon,
|
46
|
+
L as LovInput,
|
47
|
+
re as LovPagetable,
|
48
|
+
ae as LovQuerytable,
|
49
|
+
u as Modal,
|
50
|
+
k as MultiSelect,
|
51
|
+
w as NumberInput,
|
52
|
+
T as OMessage,
|
53
|
+
g as OMessageBox,
|
44
54
|
c as OTree,
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
B as
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
55
|
+
I as Pagetable,
|
56
|
+
F as PasswordInput,
|
57
|
+
oe as Querytable,
|
58
|
+
B as RadioGroup,
|
59
|
+
V as Rowflex,
|
60
|
+
E as SingleSelect,
|
61
|
+
A as Space,
|
62
|
+
G as StringInput,
|
63
|
+
K as Switch,
|
64
|
+
Q as TableSelect,
|
65
|
+
le as TableSelectPagetable,
|
66
|
+
Z as Tabs,
|
67
|
+
R as Textarea,
|
68
|
+
s as ThroneContextProvider,
|
69
|
+
q as Tooltip,
|
53
70
|
b as Tree,
|
54
|
-
|
71
|
+
ne as formContextKey,
|
55
72
|
f as install,
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
73
|
+
Se as lovContextKey,
|
74
|
+
P as pagetableProps,
|
75
|
+
Pe as tableSelectContext,
|
76
|
+
ie as useLov,
|
77
|
+
ue as useOModal,
|
78
|
+
ce as usePagetable,
|
79
|
+
Ce as useTableselect
|
63
80
|
};
|
64
81
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/components/index.ts"],"sourcesContent":["import type { App } from 'vue'\r\n\r\nimport * as components from './components'\r\n\r\nexport * from './components'\r\n\r\nexport type * from './types'\r\n\r\nexport const install = function (app: App) {\r\n Object.keys(components).forEach((key) => {\r\n const component = components[key]\r\n if (component.install) {\r\n app.use(component)\r\n }\r\n })\r\n return app\r\n}\r\n\r\nexport * from './Modal'\r\nexport * from './Form'\r\nexport * from './Tree'\r\nexport * from './Message'\r\nexport * from './MessageBox'\r\nexport * from './Pagetable'\r\n"],"names":["install","app","components","key","component"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/index.ts"],"sourcesContent":["import type { App } from 'vue'\r\n\r\nimport * as components from './components'\r\n\r\nexport * from './components'\r\n\r\nexport type * from './types'\r\n\r\nexport const install = function (app: App) {\r\n Object.keys(components).forEach((key) => {\r\n const component = components[key]\r\n if (component.install) {\r\n app.use(component)\r\n }\r\n })\r\n return app\r\n}\r\n\r\nexport * from './Modal'\r\nexport * from './Form'\r\nexport * from './Tree'\r\nexport * from './Message'\r\nexport * from './MessageBox'\r\nexport * from './Pagetable'\r\nexport * from './Input'\r\n"],"names":["install","app","components","key","component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAQa,MAAAA,IAAU,SAAUC,GAAU;AACzC,gBAAO,KAAKC,CAAU,EAAE,QAAQ,CAACC,MAAQ;AACjC,UAAAC,IAAYF,EAAWC,CAAG;AAChC,IAAIC,EAAU,WACZH,EAAI,IAAIG,CAAS;AAAA,EACnB,CACD,GACMH;AACT;"}
|