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.
- package/README.md +5 -5
- package/dist/components/LovTable/LovPagetable.vue.d.ts +28 -0
- package/dist/components/LovTable/index.d.ts +14 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/ModalLocator.vue.d.ts +20 -0
- package/dist/components/Modal/index.d.ts +4 -1
- package/dist/components/Modal/index.js +72 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Modal/types.d.ts +18 -0
- package/dist/components/Modal/types.js +6 -0
- package/dist/components/Modal/types.js.map +1 -0
- package/dist/components/Modal/useModal.d.ts +1 -3
- package/dist/components/Modal/useModal.js +4 -3
- package/dist/components/Modal/useModal.js.map +1 -1
- package/dist/components/Pagetable/Pagetable.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +13 -0
- package/dist/components/Pagetable/hooks/useColumns.js +37 -31
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/index.d.ts +9 -0
- package/dist/components/Pagetable/index.js +427 -366
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/_util/arrays.js.map +1 -1
- package/dist/components/_util/browser.js.map +1 -1
- package/dist/components/_util/dom/aria.js.map +1 -1
- package/dist/components/_util/dom/element.js.map +1 -1
- package/dist/components/_util/dom/event.js.map +1 -1
- package/dist/components/_util/dom/position.js.map +1 -1
- package/dist/components/_util/dom/scroll.js.map +1 -1
- package/dist/components/_util/dom/style.js.map +1 -1
- package/dist/components/_util/easings.js.map +1 -1
- package/dist/components/_util/error.js.map +1 -1
- package/dist/components/_util/i18n.js.map +1 -1
- package/dist/components/_util/objects.js.map +1 -1
- package/dist/components/_util/raf.js.map +1 -1
- package/dist/components/_util/rand.js.map +1 -1
- package/dist/components/_util/strings.js.map +1 -1
- package/dist/components/_util/throttleByRaf.js.map +1 -1
- package/dist/components/_util/types.js.map +1 -1
- package/dist/components/_util/typescript.js.map +1 -1
- package/dist/components/_util/vue/global-node.js.map +1 -1
- package/dist/components/_util/vue/icon.js.map +1 -1
- package/dist/components/_util/vue/install.js.map +1 -1
- package/dist/components/_util/vue/props/runtime.js.map +1 -1
- package/dist/components/_util/vue/refs.js.map +1 -1
- package/dist/components/_util/vue/size.js.map +1 -1
- package/dist/components/_util/vue/validator.js.map +1 -1
- package/dist/components/_util/vue/vnode.js.map +1 -1
- package/dist/components/components.js +8 -8
- package/dist/components/index.js +21 -21
- package/dist/components-8oZ2kpUC.js +27 -0
- package/dist/components-8oZ2kpUC.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +3 -3
- 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-J6-qau6Y.js +0 -73
- package/dist/components-J6-qau6Y.js.map +0 -1
package/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# Vue 3 + TypeScript + Vite
|
2
|
-
|
3
|
-
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
4
|
-
|
5
|
-
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
1
|
+
# Vue 3 + TypeScript + Vite
|
2
|
+
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
4
|
+
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
@@ -8,6 +8,10 @@ declare function __VLS_template(): {
|
|
8
8
|
type: import('vue').PropType<any[]>;
|
9
9
|
default: any[];
|
10
10
|
};
|
11
|
+
tailData: {
|
12
|
+
type: import('vue').PropType<Record<string, any>>;
|
13
|
+
default: Record<string, any>;
|
14
|
+
};
|
11
15
|
pagination: {
|
12
16
|
type: import('vue').PropType<{
|
13
17
|
currentPage?: number;
|
@@ -51,6 +55,10 @@ declare function __VLS_template(): {
|
|
51
55
|
type: import('vue').PropType<any[]>;
|
52
56
|
default: any[];
|
53
57
|
};
|
58
|
+
tailData: {
|
59
|
+
type: import('vue').PropType<Record<string, any>>;
|
60
|
+
default: Record<string, any>;
|
61
|
+
};
|
54
62
|
pagination: {
|
55
63
|
type: import('vue').PropType<{
|
56
64
|
currentPage?: number;
|
@@ -98,6 +106,7 @@ declare function __VLS_template(): {
|
|
98
106
|
pageSizes?: number[];
|
99
107
|
total?: number;
|
100
108
|
};
|
109
|
+
tailData: Record<string, any>;
|
101
110
|
showRowNumber: boolean;
|
102
111
|
selectionMode: boolean;
|
103
112
|
currentRowMode: boolean;
|
@@ -113,6 +122,10 @@ declare function __VLS_template(): {
|
|
113
122
|
type: import('vue').PropType<any[]>;
|
114
123
|
default: any[];
|
115
124
|
};
|
125
|
+
tailData: {
|
126
|
+
type: import('vue').PropType<Record<string, any>>;
|
127
|
+
default: Record<string, any>;
|
128
|
+
};
|
116
129
|
pagination: {
|
117
130
|
type: import('vue').PropType<{
|
118
131
|
currentPage?: number;
|
@@ -160,6 +173,7 @@ declare function __VLS_template(): {
|
|
160
173
|
pageSizes?: number[];
|
161
174
|
total?: number;
|
162
175
|
};
|
176
|
+
tailData: Record<string, any>;
|
163
177
|
showRowNumber: boolean;
|
164
178
|
selectionMode: boolean;
|
165
179
|
currentRowMode: boolean;
|
@@ -192,6 +206,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
192
206
|
type: import('vue').PropType<any[]>;
|
193
207
|
default: any[];
|
194
208
|
};
|
209
|
+
tailData: {
|
210
|
+
type: import('vue').PropType<Record<string, any>>;
|
211
|
+
default: Record<string, any>;
|
212
|
+
};
|
195
213
|
pagination: {
|
196
214
|
type: import('vue').PropType<{
|
197
215
|
currentPage?: number;
|
@@ -235,6 +253,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
235
253
|
type: import('vue').PropType<any[]>;
|
236
254
|
default: any[];
|
237
255
|
};
|
256
|
+
tailData: {
|
257
|
+
type: import('vue').PropType<Record<string, any>>;
|
258
|
+
default: Record<string, any>;
|
259
|
+
};
|
238
260
|
pagination: {
|
239
261
|
type: import('vue').PropType<{
|
240
262
|
currentPage?: number;
|
@@ -282,6 +304,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
282
304
|
pageSizes?: number[];
|
283
305
|
total?: number;
|
284
306
|
};
|
307
|
+
tailData: Record<string, any>;
|
285
308
|
showRowNumber: boolean;
|
286
309
|
selectionMode: boolean;
|
287
310
|
currentRowMode: boolean;
|
@@ -297,6 +320,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
297
320
|
type: import('vue').PropType<any[]>;
|
298
321
|
default: any[];
|
299
322
|
};
|
323
|
+
tailData: {
|
324
|
+
type: import('vue').PropType<Record<string, any>>;
|
325
|
+
default: Record<string, any>;
|
326
|
+
};
|
300
327
|
pagination: {
|
301
328
|
type: import('vue').PropType<{
|
302
329
|
currentPage?: number;
|
@@ -344,6 +371,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
344
371
|
pageSizes?: number[];
|
345
372
|
total?: number;
|
346
373
|
};
|
374
|
+
tailData: Record<string, any>;
|
347
375
|
showRowNumber: boolean;
|
348
376
|
selectionMode: boolean;
|
349
377
|
currentRowMode: boolean;
|
@@ -156,6 +156,10 @@ declare const _default: import('../_util').SFCWithInstall<{}> & {
|
|
156
156
|
type: import('vue').PropType<any[]>;
|
157
157
|
default: any[];
|
158
158
|
};
|
159
|
+
tailData: {
|
160
|
+
type: import('vue').PropType<Record<string, any>>;
|
161
|
+
default: Record<string, any>;
|
162
|
+
};
|
159
163
|
pagination: {
|
160
164
|
type: import('vue').PropType<{
|
161
165
|
currentPage?: number;
|
@@ -199,6 +203,10 @@ declare const _default: import('../_util').SFCWithInstall<{}> & {
|
|
199
203
|
type: import('vue').PropType<any[]>;
|
200
204
|
default: any[];
|
201
205
|
};
|
206
|
+
tailData: {
|
207
|
+
type: import('vue').PropType<Record<string, any>>;
|
208
|
+
default: Record<string, any>;
|
209
|
+
};
|
202
210
|
pagination: {
|
203
211
|
type: import('vue').PropType<{
|
204
212
|
currentPage?: number;
|
@@ -246,6 +254,7 @@ declare const _default: import('../_util').SFCWithInstall<{}> & {
|
|
246
254
|
pageSizes?: number[];
|
247
255
|
total?: number;
|
248
256
|
};
|
257
|
+
tailData: Record<string, any>;
|
249
258
|
showRowNumber: boolean;
|
250
259
|
selectionMode: boolean;
|
251
260
|
currentRowMode: boolean;
|
@@ -261,6 +270,10 @@ declare const _default: import('../_util').SFCWithInstall<{}> & {
|
|
261
270
|
type: import('vue').PropType<any[]>;
|
262
271
|
default: any[];
|
263
272
|
};
|
273
|
+
tailData: {
|
274
|
+
type: import('vue').PropType<Record<string, any>>;
|
275
|
+
default: Record<string, any>;
|
276
|
+
};
|
264
277
|
pagination: {
|
265
278
|
type: import('vue').PropType<{
|
266
279
|
currentPage?: number;
|
@@ -308,6 +321,7 @@ declare const _default: import('../_util').SFCWithInstall<{}> & {
|
|
308
321
|
pageSizes?: number[];
|
309
322
|
total?: number;
|
310
323
|
};
|
324
|
+
tailData: Record<string, any>;
|
311
325
|
showRowNumber: boolean;
|
312
326
|
selectionMode: boolean;
|
313
327
|
currentRowMode: boolean;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const Modal: import('vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
2
|
+
export default Modal;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
slots: {
|
3
|
+
default?(_: {}): any;
|
4
|
+
};
|
5
|
+
refs: {
|
6
|
+
"modal-locator": HTMLDivElement;
|
7
|
+
};
|
8
|
+
attrs: Partial<{}>;
|
9
|
+
};
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
12
|
+
"modal-locator": HTMLDivElement;
|
13
|
+
}, any>;
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
15
|
+
export default _default;
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
17
|
+
new (): {
|
18
|
+
$slots: S;
|
19
|
+
};
|
20
|
+
};
|
@@ -1,2 +1,5 @@
|
|
1
|
-
|
1
|
+
import { default as ModalLocator } from './ModalLocator.vue';
|
2
|
+
declare const _default: import('../_util').SFCWithInstall<import('vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {
|
3
|
+
ModalLocator: typeof ModalLocator;
|
4
|
+
};
|
2
5
|
export default _default;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import "lodash-es";
|
2
|
+
import { defineComponent as g, inject as L, ref as o, shallowRef as O, provide as M, createVNode as w, Fragment as P, useTemplateRef as k, openBlock as E, createElementBlock as T, renderSlot as b } from "vue";
|
3
|
+
import { withInstall as j } from "../_util/vue/install.js";
|
4
|
+
import { ElDialog as B } from "element-plus";
|
5
|
+
import { addUnit as I } from "../_util/dom/style.js";
|
6
|
+
import { modalLocatorContextKey as x, modalContextKey as K } from "./types.js";
|
7
|
+
const R = /* @__PURE__ */ g({
|
8
|
+
name: "OModal",
|
9
|
+
setup(l, {
|
10
|
+
slots: a,
|
11
|
+
attrs: t,
|
12
|
+
emit: u,
|
13
|
+
expose: c
|
14
|
+
}) {
|
15
|
+
const d = L(x), n = o(!1), i = o(), v = O(), r = o(), f = o(), m = o(), h = o(), p = o(!0), s = o();
|
16
|
+
c({
|
17
|
+
open: async (e) => (n.value = !0, i.value = e.title, v.value = e.content, e.contentProps ? r.value = e.contentProps : r.value = {}, e.width && (f.value = e.width), e.height && (m.value = I(e.height)), e.showClose != null && e.showClose == !1 && (p.value = !1), e.locator ? s.value = e.locator : d && d.locator.value && (s.value = d.locator.value), new Promise((y, S) => {
|
18
|
+
h.value = y;
|
19
|
+
}))
|
20
|
+
});
|
21
|
+
const C = (e) => {
|
22
|
+
const _ = h.value;
|
23
|
+
n.value = !1, i.value = void 0, v.value = void 0, r.value = void 0, f.value = void 0, m.value = void 0, h.value = void 0, p.value = !0, s.value = void 0, _ && _(e);
|
24
|
+
};
|
25
|
+
return M(K, {
|
26
|
+
close: C
|
27
|
+
}), () => {
|
28
|
+
const e = v.value;
|
29
|
+
return n.value ? w(B, {
|
30
|
+
title: i.value,
|
31
|
+
width: f.value,
|
32
|
+
modelValue: n.value,
|
33
|
+
beforeClose: C,
|
34
|
+
draggable: !0,
|
35
|
+
closeOnClickModal: !1,
|
36
|
+
closeOnPressEscape: !1,
|
37
|
+
showClose: p.value,
|
38
|
+
alignCenter: !0,
|
39
|
+
style: {
|
40
|
+
height: m.value
|
41
|
+
},
|
42
|
+
appendTo: s.value
|
43
|
+
}, {
|
44
|
+
default: () => [w(e, r.value, null)]
|
45
|
+
}) : w(P, null, null);
|
46
|
+
};
|
47
|
+
}
|
48
|
+
}), V = {
|
49
|
+
ref: "modal-locator",
|
50
|
+
class: "orion-modal-locator"
|
51
|
+
}, A = /* @__PURE__ */ g({
|
52
|
+
name: "OModalLocator",
|
53
|
+
inheritAttrs: !0,
|
54
|
+
__name: "ModalLocator",
|
55
|
+
setup(l) {
|
56
|
+
const a = k("modal-locator");
|
57
|
+
return M(x, {
|
58
|
+
locator: a
|
59
|
+
}), (t, u) => (E(), T("div", V, [
|
60
|
+
b(t.$slots, "default", {}, void 0, !0)
|
61
|
+
], 512));
|
62
|
+
}
|
63
|
+
}), D = (l, a) => {
|
64
|
+
const t = l.__vccOpts || l;
|
65
|
+
for (const [u, c] of a)
|
66
|
+
t[u] = c;
|
67
|
+
return t;
|
68
|
+
}, F = /* @__PURE__ */ D(A, [["__scopeId", "data-v-0fd5a1a9"]]), J = j(R, { ModalLocator: F });
|
69
|
+
export {
|
70
|
+
J as default
|
71
|
+
};
|
72
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Modal/Modal.tsx","../../../src/components/Modal/ModalLocator.vue","../../../src/components/Modal/index.ts"],"sourcesContent":["import { defineComponent, inject, provide, ref, shallowRef } from 'vue'\r\nimport { ElDialog } from 'element-plus'\r\nimport { addUnit } from '../_util'\r\nimport { modalContextKey, modalLocatorContextKey, ModalOptions } from './types'\r\n\r\nconst Modal = defineComponent({\r\n name: 'OModal',\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const modalLocator = inject(modalLocatorContextKey)\r\n\r\n const show = ref(false)\r\n const title = ref<string>()\r\n const content = shallowRef()\r\n const contentProps = ref<Record<string, any>>()\r\n const width = ref<number | string>()\r\n const height = ref<number | string>()\r\n const __resolve = ref<(value: Record<string, any> | PromiseLike<Record<string, any>>) => void>()\r\n const showClose = ref(true)\r\n const appendTo = ref<string | HTMLElement>()\r\n\r\n const _open: (options: ModalOptions) => Promise<Record<string, any>> = async (options) => {\r\n show.value = true\r\n title.value = options.title\r\n content.value = options.content\r\n if (options.contentProps) {\r\n contentProps.value = options.contentProps\r\n } else {\r\n contentProps.value = {}\r\n }\r\n if (options.width) {\r\n width.value = options.width\r\n }\r\n if (options.height) {\r\n height.value = addUnit(options.height)\r\n }\r\n if (options.showClose != undefined && options.showClose == false) {\r\n showClose.value = false\r\n }\r\n if (options.locator) {\r\n appendTo.value = options.locator\r\n } else {\r\n if (modalLocator && modalLocator.locator.value) {\r\n appendTo.value = modalLocator.locator.value\r\n }\r\n }\r\n\r\n const promise = new Promise<Record<string, any>>((resolve, reject) => {\r\n __resolve.value = resolve\r\n })\r\n\r\n return promise\r\n }\r\n expose({\r\n open: _open,\r\n })\r\n\r\n const _close: (options: Record<string, any>) => void = (options) => {\r\n const resolve = __resolve.value\r\n\r\n show.value = false\r\n title.value = undefined\r\n content.value = undefined\r\n contentProps.value = undefined\r\n width.value = undefined\r\n height.value = undefined\r\n __resolve.value = undefined\r\n showClose.value = true\r\n appendTo.value = undefined\r\n\r\n resolve && resolve(options)\r\n }\r\n provide(modalContextKey, { close: _close })\r\n\r\n return () => {\r\n const Children = content.value\r\n return show.value ? (\r\n <ElDialog\r\n title={title.value}\r\n width={width.value}\r\n modelValue={show.value}\r\n beforeClose={_close}\r\n draggable={true}\r\n closeOnClickModal={false}\r\n closeOnPressEscape={false}\r\n showClose={showClose.value}\r\n alignCenter={true}\r\n style={{ height: height.value }}\r\n appendTo={appendTo.value}\r\n >\r\n <Children {...contentProps.value}></Children>\r\n </ElDialog>\r\n ) : (\r\n <></>\r\n )\r\n }\r\n },\r\n})\r\n\r\nexport default Modal\r\n","<template>\r\n <div ref=\"modal-locator\" class=\"orion-modal-locator\"><slot></slot></div>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { provide, useTemplateRef } from 'vue'\r\nimport { modalLocatorContextKey } from './types'\r\n\r\ndefineOptions({ name: 'OModalLocator', inheritAttrs: true })\r\nconst locator = useTemplateRef('modal-locator')\r\n\r\nprovide(modalLocatorContextKey, {\r\n locator,\r\n})\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.orion-modal-locator {\r\n width: 100%;\r\n height: 100%;\r\n overflow: auto;\r\n box-sizing: border-box;\r\n position: relative;\r\n\r\n :deep(> .el-overlay) {\r\n position: absolute;\r\n\r\n > .el-overlay-dialog {\r\n position: absolute;\r\n }\r\n }\r\n}\r\n</style>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Modal from './Modal'\r\nimport ModalLocator from './ModalLocator.vue'\r\n\r\nexport default withInstall<typeof Modal, { ModalLocator: typeof ModalLocator }>(Modal, { ModalLocator })\r\n"],"names":["Modal","defineComponent","name","setup","props","slots","attrs","emit","expose","modalLocator","inject","modalLocatorContextKey","show","ref","title","content","shallowRef","contentProps","width","height","__resolve","showClose","appendTo","open","options","value","addUnit","undefined","locator","Promise","resolve","reject","_close","provide","modalContextKey","close","Children","_createVNode","ElDialog","default","_Fragment","useTemplateRef","index","withInstall","ModalLocator"],"mappings":";;;;;;AAKA,MAAMA,IAAQC,gBAAAA,EAAgB;AAAA,EAC5BC,MAAM;AAAA,EACNC,MAAMC,GAAO;AAAA,IAAEC,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,UAAMC,IAAeC,EAAOC,CAAsB,GAE5CC,IAAOC,EAAI,EAAK,GAChBC,IAAQD,KACRE,IAAUC,KACVC,IAAeJ,KACfK,IAAQL,KACRM,IAASN,KACTO,IAAYP,KACZQ,IAAYR,EAAI,EAAI,GACpBS,IAAWT;AAkCjBL,IAAAA,EAAO;AAAA,MACLe,MAjCqE,OAAOC,OAC5EZ,EAAKa,QAAQ,IACbX,EAAMW,QAAQD,EAAQV,OACtBC,EAAQU,QAAQD,EAAQT,SACpBS,EAAQP,eACVA,EAAaQ,QAAQD,EAAQP,eAE7BA,EAAaQ,QAAQ,IAEnBD,EAAQN,UACVA,EAAMO,QAAQD,EAAQN,QAEpBM,EAAQL,WACVA,EAAOM,QAAQC,EAAQF,EAAQL,MAAM,IAEnCK,EAAQH,aAAaM,QAAaH,EAAQH,aAAa,OACzDA,EAAUI,QAAQ,KAEhBD,EAAQI,UACVN,EAASG,QAAQD,EAAQI,UAErBnB,KAAgBA,EAAamB,QAAQH,UACvCH,EAASG,QAAQhB,EAAamB,QAAQH,QAI1B,IAAII,QAA6B,CAACC,GAASC,MAAW;AACpEX,QAAAA,EAAUK,QAAQK;AAAAA,MACpB,CAAC;AAAA,IAMH,CAAC;AAED,UAAME,IAAkDR,CAAAA,MAAY;AAClE,YAAMM,IAAUV,EAAUK;AAE1Bb,MAAAA,EAAKa,QAAQ,IACbX,EAAMW,QAAQE,QACdZ,EAAQU,QAAQE,QAChBV,EAAaQ,QAAQE,QACrBT,EAAMO,QAAQE,QACdR,EAAOM,QAAQE,QACfP,EAAUK,QAAQE,QAClBN,EAAUI,QAAQ,IAClBH,EAASG,QAAQE,QAEjBG,KAAWA,EAAQN,CAAO;AAAA;AAE5BS,WAAAA,EAAQC,GAAiB;AAAA,MAAEC,OAAOH;AAAAA,IAAO,CAAC,GAEnC,MAAM;AACX,YAAMI,IAAWrB,EAAQU;AACzB,aAAOb,EAAKa,QAAKY,EAAAC,GAAA;AAAA,QAAA,OAENxB,EAAMW;AAAAA,QAAK,OACXP,EAAMO;AAAAA,QAAK,YACNb,EAAKa;AAAAA,QAAK,aACTO;AAAAA,QAAM,WACR;AAAA,QAAI,mBACI;AAAA,QAAK,oBACJ;AAAA,QAAK,WACdX,EAAUI;AAAAA,QAAK,aACb;AAAA,QAAI,OACV;AAAA,UAAEN,QAAQA,EAAOM;AAAAA,QAAO;AAAA,QAAA,UACrBH,EAASG;AAAAA,MAAK,GAAA;AAAA,QAAAc,SAAAA,MAAAF,CAAAA,EAAAD,GAEVnB,EAAaQ,OAAK,IAAA,CAAA;AAAA,MAAAY,CAAAA,IAAAA,EAAAG,GAInC,MAAA,IAAA;AAAA;EAEL;AACF,CAAC;;;;;;;;ACxFK,UAAAZ,IAAUa,EAAe,eAAe;AAE9C,WAAAR,EAAQtB,GAAwB;AAAA,MAC9B,SAAAiB;AAAA,IAAA,CACD;;;;;;;;;iECPDc,IAAeC,EAAiE3C,GAAO,EAAE,cAAA4C,GAAc;"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { InjectionKey, ShallowRef, VNode } from 'vue';
|
2
|
+
export interface ModalOptions {
|
3
|
+
title: string;
|
4
|
+
content: VNode;
|
5
|
+
contentProps?: Record<string, any>;
|
6
|
+
width?: number | string;
|
7
|
+
height?: number | string;
|
8
|
+
showClose?: boolean;
|
9
|
+
locator?: string | HTMLElement;
|
10
|
+
}
|
11
|
+
export interface ModalContext {
|
12
|
+
close: (options: Record<string, any>) => void;
|
13
|
+
}
|
14
|
+
export declare const modalContextKey: InjectionKey<ModalContext>;
|
15
|
+
export interface ModalLocatorContext {
|
16
|
+
locator: ShallowRef<HTMLElement | null>;
|
17
|
+
}
|
18
|
+
export declare const modalLocatorContextKey: InjectionKey<ModalLocatorContext>;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../src/components/Modal/types.ts"],"sourcesContent":["import { InjectionKey, ShallowRef, VNode } from 'vue'\r\n\r\nexport interface ModalOptions {\r\n title: string\r\n content: VNode\r\n contentProps?: Record<string, any>\r\n width?: number | string\r\n height?: number | string\r\n showClose?: boolean\r\n locator?: string | HTMLElement\r\n}\r\n\r\nexport interface ModalContext {\r\n close: (options: Record<string, any>) => void\r\n}\r\n\r\nexport const modalContextKey: InjectionKey<ModalContext> = Symbol('modalContextKey')\r\n\r\nexport interface ModalLocatorContext {\r\n locator: ShallowRef<HTMLElement | null>\r\n}\r\n\r\nexport const modalLocatorContextKey: InjectionKey<ModalLocatorContext> = Symbol('modalLocatorContextKey')\r\n"],"names":["modalContextKey","modalLocatorContextKey"],"mappings":"AAgBa,MAAAA,IAA8C,OAAO,iBAAiB,GAMtEC,IAA4D,OAAO,wBAAwB;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useModal.js","sources":["../../../src/components/Modal/useModal.ts"],"sourcesContent":["import { inject } from 'vue'\r\n\r\nexport default function useModal() {\r\n
|
1
|
+
{"version":3,"file":"useModal.js","sources":["../../../src/components/Modal/useModal.ts"],"sourcesContent":["import { inject } from 'vue'\r\nimport { modalContextKey } from './types'\r\n\r\nexport default function useModal() {\r\n return inject(modalContextKey)\r\n}\r\n"],"names":["useModal","inject","modalContextKey"],"mappings":";;AAGA,SAAwBA,IAAW;AACjC,SAAOC,EAAOC,CAAe;AAC/B;"}
|
@@ -4,6 +4,10 @@ export declare const pagetableProps: () => {
|
|
4
4
|
type: PropType<any[]>;
|
5
5
|
default: any[];
|
6
6
|
};
|
7
|
+
tailData: {
|
8
|
+
type: PropType<Record<string, any>>;
|
9
|
+
default: Record<string, any>;
|
10
|
+
};
|
7
11
|
pagination: {
|
8
12
|
type: PropType<{
|
9
13
|
currentPage?: number;
|
@@ -41,6 +45,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
41
45
|
type: PropType<any[]>;
|
42
46
|
default: any[];
|
43
47
|
};
|
48
|
+
tailData: {
|
49
|
+
type: PropType<Record<string, any>>;
|
50
|
+
default: Record<string, any>;
|
51
|
+
};
|
44
52
|
pagination: {
|
45
53
|
type: PropType<{
|
46
54
|
currentPage?: number;
|
@@ -76,6 +84,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
76
84
|
type: PropType<any[]>;
|
77
85
|
default: any[];
|
78
86
|
};
|
87
|
+
tailData: {
|
88
|
+
type: PropType<Record<string, any>>;
|
89
|
+
default: Record<string, any>;
|
90
|
+
};
|
79
91
|
pagination: {
|
80
92
|
type: PropType<{
|
81
93
|
currentPage?: number;
|
@@ -123,6 +135,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
123
135
|
pageSizes?: number[];
|
124
136
|
total?: number;
|
125
137
|
};
|
138
|
+
tailData: Record<string, any>;
|
126
139
|
showRowNumber: boolean;
|
127
140
|
selectionMode: boolean;
|
128
141
|
currentRowMode: boolean;
|
@@ -22,6 +22,10 @@ export declare const pagetableColumnButtongroupProps: () => {
|
|
22
22
|
type: PropType<FixedType>;
|
23
23
|
default: FixedType;
|
24
24
|
};
|
25
|
+
tail: {
|
26
|
+
type: PropType<string | boolean>;
|
27
|
+
default: string | boolean;
|
28
|
+
};
|
25
29
|
};
|
26
30
|
export type PagetableColumnButtongroupProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnButtongroupProps>>>;
|
27
31
|
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
@@ -45,6 +49,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
45
49
|
type: PropType<FixedType>;
|
46
50
|
default: FixedType;
|
47
51
|
};
|
52
|
+
tail: {
|
53
|
+
type: PropType<string | boolean>;
|
54
|
+
default: string | boolean;
|
55
|
+
};
|
48
56
|
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
49
57
|
head: {
|
50
58
|
type: PropType<string>;
|
@@ -66,11 +74,16 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
66
74
|
type: PropType<FixedType>;
|
67
75
|
default: FixedType;
|
68
76
|
};
|
77
|
+
tail: {
|
78
|
+
type: PropType<string | boolean>;
|
79
|
+
default: string | boolean;
|
80
|
+
};
|
69
81
|
}>> & Readonly<{}>, {
|
70
82
|
fixed: FixedType;
|
71
83
|
head: string;
|
72
84
|
width: string | boolean;
|
73
85
|
name: string;
|
86
|
+
tail: string | boolean;
|
74
87
|
headAlign: "center" | "left" | "right";
|
75
88
|
}, CustomSlotsType<{
|
76
89
|
default: any;
|
@@ -21,6 +21,10 @@ export declare const pagetableColumnDateProps: () => {
|
|
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
|
format: {
|
25
29
|
type: PropType<string>;
|
26
30
|
default: string;
|
@@ -52,6 +56,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
52
56
|
type: PropType<FixedType>;
|
53
57
|
default: FixedType;
|
54
58
|
};
|
59
|
+
tail: {
|
60
|
+
type: PropType<string | boolean>;
|
61
|
+
default: string | boolean;
|
62
|
+
};
|
55
63
|
format: {
|
56
64
|
type: PropType<string>;
|
57
65
|
default: string;
|
@@ -81,6 +89,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
81
89
|
type: PropType<FixedType>;
|
82
90
|
default: FixedType;
|
83
91
|
};
|
92
|
+
tail: {
|
93
|
+
type: PropType<string | boolean>;
|
94
|
+
default: string | boolean;
|
95
|
+
};
|
84
96
|
format: {
|
85
97
|
type: PropType<string>;
|
86
98
|
default: string;
|
@@ -95,6 +107,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
95
107
|
width: string | boolean;
|
96
108
|
name: string;
|
97
109
|
format: string;
|
110
|
+
tail: string | boolean;
|
98
111
|
headAlign: "center" | "left" | "right";
|
99
112
|
sourceFormat: string;
|
100
113
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
@@ -22,6 +22,10 @@ export declare const pagetableColumnDiyProps: () => {
|
|
22
22
|
type: PropType<FixedType>;
|
23
23
|
default: FixedType;
|
24
24
|
};
|
25
|
+
tail: {
|
26
|
+
type: PropType<string | boolean>;
|
27
|
+
default: string | boolean;
|
28
|
+
};
|
25
29
|
};
|
26
30
|
export type PagetableColumnDiyProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnDiyProps>>>;
|
27
31
|
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
@@ -45,6 +49,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
45
49
|
type: PropType<FixedType>;
|
46
50
|
default: FixedType;
|
47
51
|
};
|
52
|
+
tail: {
|
53
|
+
type: PropType<string | boolean>;
|
54
|
+
default: string | boolean;
|
55
|
+
};
|
48
56
|
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
49
57
|
head: {
|
50
58
|
type: PropType<string>;
|
@@ -66,11 +74,16 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
66
74
|
type: PropType<FixedType>;
|
67
75
|
default: FixedType;
|
68
76
|
};
|
77
|
+
tail: {
|
78
|
+
type: PropType<string | boolean>;
|
79
|
+
default: string | boolean;
|
80
|
+
};
|
69
81
|
}>> & Readonly<{}>, {
|
70
82
|
fixed: FixedType;
|
71
83
|
head: string;
|
72
84
|
width: string | boolean;
|
73
85
|
name: string;
|
86
|
+
tail: string | boolean;
|
74
87
|
headAlign: "center" | "left" | "right";
|
75
88
|
}, CustomSlotsType<{
|
76
89
|
default: any;
|
@@ -21,6 +21,10 @@ export declare const pagetableColumnLinkProps: () => {
|
|
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 PagetableColumnLinkProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnLinkProps>>>;
|
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;
|
@@ -21,6 +21,10 @@ export declare const pagetableColumnMultiselectProps: () => {
|
|
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
|
code: {
|
25
29
|
type: PropType<string | {
|
26
30
|
value: string;
|
@@ -54,6 +58,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
54
58
|
type: PropType<FixedType>;
|
55
59
|
default: FixedType;
|
56
60
|
};
|
61
|
+
tail: {
|
62
|
+
type: PropType<string | boolean>;
|
63
|
+
default: string | boolean;
|
64
|
+
};
|
57
65
|
code: {
|
58
66
|
type: PropType<string | {
|
59
67
|
value: string;
|
@@ -85,6 +93,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
85
93
|
type: PropType<FixedType>;
|
86
94
|
default: FixedType;
|
87
95
|
};
|
96
|
+
tail: {
|
97
|
+
type: PropType<string | boolean>;
|
98
|
+
default: string | boolean;
|
99
|
+
};
|
88
100
|
code: {
|
89
101
|
type: PropType<string | {
|
90
102
|
value: string;
|
@@ -104,6 +116,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
104
116
|
head: string;
|
105
117
|
width: string | boolean;
|
106
118
|
name: string;
|
119
|
+
tail: string | boolean;
|
107
120
|
headAlign: "center" | "left" | "right";
|
108
121
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
109
122
|
export default _default;
|
@@ -21,6 +21,10 @@ export declare const pagetableColumnNumberProps: () => {
|
|
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
|
thousandsSeparator: {
|
25
29
|
type: BooleanConstructor;
|
26
30
|
default: boolean;
|
@@ -56,6 +60,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
56
60
|
type: PropType<FixedType>;
|
57
61
|
default: FixedType;
|
58
62
|
};
|
63
|
+
tail: {
|
64
|
+
type: PropType<string | boolean>;
|
65
|
+
default: string | boolean;
|
66
|
+
};
|
59
67
|
thousandsSeparator: {
|
60
68
|
type: BooleanConstructor;
|
61
69
|
default: boolean;
|
@@ -89,6 +97,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
89
97
|
type: PropType<FixedType>;
|
90
98
|
default: FixedType;
|
91
99
|
};
|
100
|
+
tail: {
|
101
|
+
type: PropType<string | boolean>;
|
102
|
+
default: string | boolean;
|
103
|
+
};
|
92
104
|
thousandsSeparator: {
|
93
105
|
type: BooleanConstructor;
|
94
106
|
default: boolean;
|
@@ -107,6 +119,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
107
119
|
width: string | boolean;
|
108
120
|
name: string;
|
109
121
|
thousandsSeparator: boolean;
|
122
|
+
tail: string | boolean;
|
110
123
|
headAlign: "center" | "left" | "right";
|
111
124
|
precision: -1;
|
112
125
|
percentage: boolean;
|
@@ -21,6 +21,10 @@ export declare const pagetableColumnSingleselectProps: () => {
|
|
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
|
code: {
|
25
29
|
type: PropType<string | {
|
26
30
|
value: string;
|
@@ -54,6 +58,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
54
58
|
type: PropType<FixedType>;
|
55
59
|
default: FixedType;
|
56
60
|
};
|
61
|
+
tail: {
|
62
|
+
type: PropType<string | boolean>;
|
63
|
+
default: string | boolean;
|
64
|
+
};
|
57
65
|
code: {
|
58
66
|
type: PropType<string | {
|
59
67
|
value: string;
|
@@ -85,6 +93,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
85
93
|
type: PropType<FixedType>;
|
86
94
|
default: FixedType;
|
87
95
|
};
|
96
|
+
tail: {
|
97
|
+
type: PropType<string | boolean>;
|
98
|
+
default: string | boolean;
|
99
|
+
};
|
88
100
|
code: {
|
89
101
|
type: PropType<string | {
|
90
102
|
value: string;
|
@@ -104,6 +116,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
104
116
|
head: string;
|
105
117
|
width: string | boolean;
|
106
118
|
name: string;
|
119
|
+
tail: string | boolean;
|
107
120
|
headAlign: "center" | "left" | "right";
|
108
121
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
109
122
|
export default _default;
|