orion-design 0.1.23 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,8 +9,6 @@ export { default as Pagetable } from './Pagetable';
9
9
  export type { PagetableProps } from './Pagetable';
10
10
  export { default as Querytable } from './Querytable';
11
11
  export type { QuerytableProps } from './Querytable';
12
- export { default as RichTextEditor } from './RichTextEditor';
13
- export type { RichTextEditorProps } from './RichTextEditor';
14
12
  export { default as Modal } from './Modal';
15
13
  export { default as Form } from './Form';
16
14
  export { default as LovTable } from './LovTable';
@@ -1,25 +1,23 @@
1
- import { default as t } from "./Button/index.js";
2
- import { S as r } from "../index-BbsXWo7C.js";
1
+ import { default as a } from "./Button/index.js";
2
+ import { S as t } from "../index-BbsXWo7C.js";
3
3
  import { Colflex as l, Flexitem as x, Rowflex as m } from "./Flex/index.js";
4
4
  import { default as s } from "./Tabs/index.js";
5
- import { default as u } from "./Pagetable/index.js";
5
+ import { default as d } from "./Pagetable/index.js";
6
6
  import { default as i } from "./Querytable/index.js";
7
- import { default as c } from "./RichTextEditor/index.js";
8
- import { i as R } from "../components-Cx2JsH63.js";
9
- import { default as g } from "./Form/index.js";
7
+ import { i as S } from "../components-0PErqPHo.js";
8
+ import { default as c } from "./Form/index.js";
10
9
  import { default as n } from "./LovTable/index.js";
11
10
  export {
12
- t as Button,
11
+ a as Button,
13
12
  l as Colflex,
14
13
  x as Flexitem,
15
- g as Form,
14
+ c as Form,
16
15
  n as LovTable,
17
- R as Modal,
18
- u as Pagetable,
16
+ S as Modal,
17
+ d as Pagetable,
19
18
  i as Querytable,
20
- c as RichTextEditor,
21
19
  m as Rowflex,
22
- r as Space,
20
+ t as Space,
23
21
  s as Tabs
24
22
  };
25
23
  //# 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":";;;;;;;;;"}
@@ -1,18 +1,17 @@
1
- import { c as t } from "../components-Cx2JsH63.js";
2
- import { i as m } from "../components-Cx2JsH63.js";
1
+ import { c as t } from "../components-0PErqPHo.js";
2
+ import { i as m } from "../components-0PErqPHo.js";
3
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 b } from "../index-BbsXWo7C.js";
7
- import { Colflex as v, Flexitem as C, Rowflex as T } from "./Flex/index.js";
8
- import { default as E } from "./Tabs/index.js";
9
- import { default as K } from "./Pagetable/index.js";
10
- import { default as M } from "./Querytable/index.js";
11
- import { default as R } from "./RichTextEditor/index.js";
12
- import { default as g } from "./LovTable/index.js";
7
+ import { Colflex as v, Flexitem as C, Rowflex as F } from "./Flex/index.js";
8
+ import { default as L } from "./Tabs/index.js";
9
+ import { default as O } from "./Pagetable/index.js";
10
+ import { default as T } from "./Querytable/index.js";
11
+ import { default as h } from "./LovTable/index.js";
13
12
  import { formContextKey as k } from "./Form/Form.js";
14
13
  import { default as B } from "./Form/LovInput/hooks/useLov.js";
15
- import { lovContextKey as Q } from "./Form/LovInput/LovInput.js";
14
+ import { lovContextKey as P } from "./Form/LovInput/LovInput.js";
16
15
  const f = function(o) {
17
16
  return Object.keys(t).forEach((r) => {
18
17
  const e = t[r];
@@ -24,17 +23,16 @@ export {
24
23
  v as Colflex,
25
24
  C as Flexitem,
26
25
  n as Form,
27
- g as LovTable,
26
+ h as LovTable,
28
27
  m as Modal,
29
- K as Pagetable,
30
- M as Querytable,
31
- R as RichTextEditor,
32
- T as Rowflex,
28
+ O as Pagetable,
29
+ T as Querytable,
30
+ F as Rowflex,
33
31
  b as Space,
34
- E as Tabs,
32
+ L as Tabs,
35
33
  k as formContextKey,
36
34
  f as install,
37
- Q as lovContextKey,
35
+ P as lovContextKey,
38
36
  B as useLov,
39
37
  p as useOModal
40
38
  };
@@ -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 { default as useOModal } from './Modal/useModal'\r\nexport * from './Form'\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;"}
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 { default as useOModal } from './Modal/useModal'\r\nexport * from './Form'\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;"}
@@ -0,0 +1,72 @@
1
+ import p from "./components/Button/index.js";
2
+ import { S as h } from "./index-BbsXWo7C.js";
3
+ import { Colflex as w, Flexitem as g, Rowflex as C } from "./components/Flex/index.js";
4
+ import b from "./components/Tabs/index.js";
5
+ import x from "./components/Pagetable/index.js";
6
+ import _ from "./components/Querytable/index.js";
7
+ import { defineComponent as P, ref as l, shallowRef as M, provide as $, createVNode as f, Fragment as y } from "vue";
8
+ import { ElDialog as O } from "element-plus";
9
+ import "lodash-es";
10
+ import { addUnit as S } from "./components/_util/dom/style.js";
11
+ import { withInstall as j } from "./components/_util/vue/install.js";
12
+ import F from "./components/Form/index.js";
13
+ import T from "./components/LovTable/index.js";
14
+ const E = /* @__PURE__ */ P({
15
+ name: "OModal",
16
+ setup(V, {
17
+ slots: k,
18
+ attrs: z,
19
+ emit: B,
20
+ expose: c
21
+ }) {
22
+ const o = l(!1), n = l(), r = M(), t = l(), a = l(), s = l(), u = l(), i = l(!0);
23
+ c({
24
+ open: async (e) => (o.value = !0, n.value = e.title, r.value = e.content, e.contentProps ? t.value = e.contentProps : t.value = {}, e.width && (a.value = e.width), e.height && (s.value = S(e.height)), e.showClose != null && e.showClose == !1 && (i.value = !1), new Promise((v, I) => {
25
+ u.value = v;
26
+ }))
27
+ });
28
+ const m = (e) => {
29
+ const d = u.value;
30
+ o.value = !1, n.value = void 0, r.value = void 0, t.value = void 0, a.value = void 0, s.value = void 0, u.value = void 0, i.value = !0, d && d(e);
31
+ };
32
+ return $("$$Modal", {
33
+ close: m
34
+ }), () => {
35
+ const e = r.value;
36
+ return o.value ? f(O, {
37
+ title: n.value,
38
+ width: a.value,
39
+ modelValue: o.value,
40
+ beforeClose: m,
41
+ draggable: !0,
42
+ closeOnClickModal: !1,
43
+ closeOnPressEscape: !1,
44
+ showClose: i.value,
45
+ alignCenter: !0,
46
+ style: {
47
+ height: s.value
48
+ }
49
+ }, {
50
+ default: () => [f(e, t.value, null)]
51
+ }) : f(y, null, null);
52
+ };
53
+ }
54
+ }), R = j(E), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
55
+ __proto__: null,
56
+ Button: p,
57
+ Colflex: w,
58
+ Flexitem: g,
59
+ Form: F,
60
+ LovTable: T,
61
+ Modal: R,
62
+ Pagetable: x,
63
+ Querytable: _,
64
+ Rowflex: C,
65
+ Space: h,
66
+ Tabs: b
67
+ }, Symbol.toStringTag, { value: "Module" }));
68
+ export {
69
+ Z as c,
70
+ R as i
71
+ };
72
+ //# sourceMappingURL=components-0PErqPHo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-Cx2JsH63.js","sources":["../src/components/Modal/index.tsx"],"sourcesContent":["import { defineComponent, provide, ref, shallowRef } from 'vue'\r\nimport type { VNode } from 'vue'\r\nimport { ElDialog } from 'element-plus'\r\nimport { addUnit, withInstall } from '../_util'\r\n\r\ninterface 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}\r\n\r\nconst Modal = defineComponent({\r\n name: 'OModal',\r\n setup(props, { slots, attrs, emit, expose }) {\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\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\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\r\n resolve && resolve(options)\r\n }\r\n provide('$$Modal', { 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 >\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 withInstall<typeof Modal, {}>(Modal)\r\n"],"names":["Modal","defineComponent","name","setup","props","slots","attrs","emit","expose","show","ref","title","content","shallowRef","contentProps","width","height","__resolve","showClose","open","options","value","addUnit","undefined","Promise","resolve","reject","_close","provide","close","Children","_createVNode","ElDialog","default","_Fragment","withInstall"],"mappings":";;;;;;;;;;;;;;AAcA,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,IAAOC,EAAI,EAAK,GAChBC,IAAQD,KACRE,IAAUC,KACVC,IAAeJ,KACfK,IAAQL,KACRM,IAASN,KACTO,IAAYP,KACZQ,IAAYR,EAAI,EAAI;AA2B1BF,IAAAA,EAAO;AAAA,MACLW,MA1BqE,OAAOC,OAC5EX,EAAKY,QAAQ,IACbV,EAAMU,QAAQD,EAAQT,OACtBC,EAAQS,QAAQD,EAAQR,SACpBQ,EAAQN,eACVA,EAAaO,QAAQD,EAAQN,eAE7BA,EAAaO,QAAQ,IAEnBD,EAAQL,UACVA,EAAMM,QAAQD,EAAQL,QAEpBK,EAAQJ,WACVA,EAAOK,QAAQC,EAAQF,EAAQJ,MAAM,IAEnCI,EAAQF,aAAaK,QAAaH,EAAQF,aAAa,OACzDA,EAAUG,QAAQ,KAGJ,IAAIG,QAA6B,CAACC,GAASC,MAAW;AACpET,QAAAA,EAAUI,QAAQI;AAAAA,MACpB,CAAC;AAAA,IAMH,CAAC;AAED,UAAME,IAAkDP,CAAAA,MAAY;AAClE,YAAMK,IAAUR,EAAUI;AAE1BZ,MAAAA,EAAKY,QAAQ,IACbV,EAAMU,QAAQE,QACdX,EAAQS,QAAQE,QAChBT,EAAaO,QAAQE,QACrBR,EAAMM,QAAQE,QACdP,EAAOK,QAAQE,QACfN,EAAUI,QAAQE,QAClBL,EAAUG,QAAQ,IAElBI,KAAWA,EAAQL,CAAO;AAAA;AAE5BQ,WAAAA,EAAQ,WAAW;AAAA,MAAEC,OAAOF;AAAAA,IAAO,CAAC,GAE7B,MAAM;AACX,YAAMG,IAAWlB,EAAQS;AACzB,aAAOZ,EAAKY,QAAKU,EAAAC,GAAA;AAAA,QAAA,OAENrB,EAAMU;AAAAA,QAAK,OACXN,EAAMM;AAAAA,QAAK,YACNZ,EAAKY;AAAAA,QAAK,aACTM;AAAAA,QAAM,WACR;AAAA,QAAI,mBACI;AAAA,QAAK,oBACJ;AAAA,QAAK,WACdT,EAAUG;AAAAA,QAAK,aACb;AAAA,QAAI,OACV;AAAA,UAAEL,QAAQA,EAAOK;AAAAA,QAAM;AAAA,MAAC,GAAA;AAAA,QAAAY,SAAAA,MAAAF,CAAAA,EAAAD,GAEjBhB,EAAaO,OAAK,IAAA,CAAA;AAAA,MAAAU,CAAAA,IAAAA,EAAAG,GAInC,MAAA,IAAA;AAAA;EAEL;AACF,CAAC,GAEcC,IAAAA,EAA8BnC,CAAK;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"components-0PErqPHo.js","sources":["../src/components/Modal/index.tsx"],"sourcesContent":["import { defineComponent, provide, ref, shallowRef } from 'vue'\r\nimport type { VNode } from 'vue'\r\nimport { ElDialog } from 'element-plus'\r\nimport { addUnit, withInstall } from '../_util'\r\n\r\ninterface 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}\r\n\r\nconst Modal = defineComponent({\r\n name: 'OModal',\r\n setup(props, { slots, attrs, emit, expose }) {\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\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\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\r\n resolve && resolve(options)\r\n }\r\n provide('$$Modal', { 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 >\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 withInstall<typeof Modal, {}>(Modal)\r\n"],"names":["Modal","defineComponent","name","setup","props","slots","attrs","emit","expose","show","ref","title","content","shallowRef","contentProps","width","height","__resolve","showClose","open","options","value","addUnit","undefined","Promise","resolve","reject","_close","provide","close","Children","_createVNode","ElDialog","default","_Fragment","withInstall"],"mappings":";;;;;;;;;;;;;AAcA,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,IAAOC,EAAI,EAAK,GAChBC,IAAQD,KACRE,IAAUC,KACVC,IAAeJ,KACfK,IAAQL,KACRM,IAASN,KACTO,IAAYP,KACZQ,IAAYR,EAAI,EAAI;AA2B1BF,IAAAA,EAAO;AAAA,MACLW,MA1BqE,OAAOC,OAC5EX,EAAKY,QAAQ,IACbV,EAAMU,QAAQD,EAAQT,OACtBC,EAAQS,QAAQD,EAAQR,SACpBQ,EAAQN,eACVA,EAAaO,QAAQD,EAAQN,eAE7BA,EAAaO,QAAQ,IAEnBD,EAAQL,UACVA,EAAMM,QAAQD,EAAQL,QAEpBK,EAAQJ,WACVA,EAAOK,QAAQC,EAAQF,EAAQJ,MAAM,IAEnCI,EAAQF,aAAaK,QAAaH,EAAQF,aAAa,OACzDA,EAAUG,QAAQ,KAGJ,IAAIG,QAA6B,CAACC,GAASC,MAAW;AACpET,QAAAA,EAAUI,QAAQI;AAAAA,MACpB,CAAC;AAAA,IAMH,CAAC;AAED,UAAME,IAAkDP,CAAAA,MAAY;AAClE,YAAMK,IAAUR,EAAUI;AAE1BZ,MAAAA,EAAKY,QAAQ,IACbV,EAAMU,QAAQE,QACdX,EAAQS,QAAQE,QAChBT,EAAaO,QAAQE,QACrBR,EAAMM,QAAQE,QACdP,EAAOK,QAAQE,QACfN,EAAUI,QAAQE,QAClBL,EAAUG,QAAQ,IAElBI,KAAWA,EAAQL,CAAO;AAAA;AAE5BQ,WAAAA,EAAQ,WAAW;AAAA,MAAEC,OAAOF;AAAAA,IAAO,CAAC,GAE7B,MAAM;AACX,YAAMG,IAAWlB,EAAQS;AACzB,aAAOZ,EAAKY,QAAKU,EAAAC,GAAA;AAAA,QAAA,OAENrB,EAAMU;AAAAA,QAAK,OACXN,EAAMM;AAAAA,QAAK,YACNZ,EAAKY;AAAAA,QAAK,aACTM;AAAAA,QAAM,WACR;AAAA,QAAI,mBACI;AAAA,QAAK,oBACJ;AAAA,QAAK,WACdT,EAAUG;AAAAA,QAAK,aACb;AAAA,QAAI,OACV;AAAA,UAAEL,QAAQA,EAAOK;AAAAA,QAAM;AAAA,MAAC,GAAA;AAAA,QAAAY,SAAAA,MAAAF,CAAAA,EAAAD,GAEjBhB,EAAaO,OAAK,IAAA,CAAA;AAAA,MAAAU,CAAAA,IAAAA,EAAAG,GAInC,MAAA,IAAA;AAAA;EAEL;AACF,CAAC,GAEcC,IAAAA,EAA8BnC,CAAK;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -4,36 +4,34 @@ import { install as l } from "./components/index.js";
4
4
  import { default as m } from "./version/version.js";
5
5
  import { default as s } from "./components/Modal/useModal.js";
6
6
  import { default as d } from "./components/Form/LovInput/hooks/useLov.js";
7
- import { default as n } from "./components/Button/index.js";
7
+ import { default as i } from "./components/Button/index.js";
8
8
  import { S as v } from "./index-BbsXWo7C.js";
9
- import { Colflex as y, Flexitem as C, Rowflex as c } from "./components/Flex/index.js";
10
- import { default as E } from "./components/Tabs/index.js";
11
- import { default as K } from "./components/Pagetable/index.js";
12
- import { default as M } from "./components/Querytable/index.js";
13
- import { default as R } from "./components/RichTextEditor/index.js";
14
- import { i as g } from "./components-Cx2JsH63.js";
9
+ import { Colflex as C, Flexitem as T, Rowflex as F } from "./components/Flex/index.js";
10
+ import { default as L } from "./components/Tabs/index.js";
11
+ import { default as O } from "./components/Pagetable/index.js";
12
+ import { default as c } from "./components/Querytable/index.js";
13
+ import { i as h } from "./components-0PErqPHo.js";
15
14
  import { default as B } from "./components/Form/index.js";
16
- import { default as Q } from "./components/LovTable/index.js";
17
- import { formContextKey as k } from "./components/Form/Form.js";
18
- import { lovContextKey as z } from "./components/Form/LovInput/LovInput.js";
15
+ import { default as P } from "./components/LovTable/index.js";
16
+ import { formContextKey as R } from "./components/Form/Form.js";
17
+ import { lovContextKey as k } from "./components/Form/LovInput/LovInput.js";
19
18
  export {
20
- n as Button,
21
- y as Colflex,
22
- C as Flexitem,
19
+ i as Button,
20
+ C as Colflex,
21
+ T as Flexitem,
23
22
  B as Form,
24
- Q as LovTable,
25
- g as Modal,
23
+ P as LovTable,
24
+ h as Modal,
26
25
  r as OrionError,
27
- K as Pagetable,
28
- M as Querytable,
29
- R as RichTextEditor,
30
- c as Rowflex,
26
+ O as Pagetable,
27
+ c as Querytable,
28
+ F as Rowflex,
31
29
  v as Space,
32
- E as Tabs,
30
+ L as Tabs,
33
31
  a as Throne,
34
- k as formContextKey,
32
+ R as formContextKey,
35
33
  l as install,
36
- z as lovContextKey,
34
+ k as lovContextKey,
37
35
  d as useLov,
38
36
  s as useOModal,
39
37
  m as version
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- declare const _default: "0.1.23";
1
+ declare const _default: "0.1.25";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "0.1.23";
1
+ const e = "0.1.25";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../src/version/version.ts"],"sourcesContent":["export default '0.1.23';"],"names":["version"],"mappings":"AAAA,MAAAA,IAAe;"}
1
+ {"version":3,"file":"version.js","sources":["../../src/version/version.ts"],"sourcesContent":["export default '0.1.25';"],"names":["version"],"mappings":"AAAA,MAAAA,IAAe;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orion-design",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -1,74 +0,0 @@
1
- import p from "./components/Button/index.js";
2
- import { S as h } from "./index-BbsXWo7C.js";
3
- import { Colflex as w, Flexitem as g, Rowflex as x } from "./components/Flex/index.js";
4
- import C from "./components/Tabs/index.js";
5
- import b from "./components/Pagetable/index.js";
6
- import _ from "./components/Querytable/index.js";
7
- import P from "./components/RichTextEditor/index.js";
8
- import { defineComponent as $, ref as l, shallowRef as M, provide as y, createVNode as f, Fragment as O } from "vue";
9
- import { ElDialog as S } from "element-plus";
10
- import "lodash-es";
11
- import { addUnit as T } from "./components/_util/dom/style.js";
12
- import { withInstall as j } from "./components/_util/vue/install.js";
13
- import E from "./components/Form/index.js";
14
- import F from "./components/LovTable/index.js";
15
- const R = /* @__PURE__ */ $({
16
- name: "OModal",
17
- setup(k, {
18
- slots: z,
19
- attrs: B,
20
- emit: D,
21
- expose: c
22
- }) {
23
- const o = l(!1), r = l(), n = M(), t = l(), a = l(), s = l(), u = l(), i = l(!0);
24
- c({
25
- open: async (e) => (o.value = !0, r.value = e.title, n.value = e.content, e.contentProps ? t.value = e.contentProps : t.value = {}, e.width && (a.value = e.width), e.height && (s.value = T(e.height)), e.showClose != null && e.showClose == !1 && (i.value = !1), new Promise((v, L) => {
26
- u.value = v;
27
- }))
28
- });
29
- const m = (e) => {
30
- const d = u.value;
31
- o.value = !1, r.value = void 0, n.value = void 0, t.value = void 0, a.value = void 0, s.value = void 0, u.value = void 0, i.value = !0, d && d(e);
32
- };
33
- return y("$$Modal", {
34
- close: m
35
- }), () => {
36
- const e = n.value;
37
- return o.value ? f(S, {
38
- title: r.value,
39
- width: a.value,
40
- modelValue: o.value,
41
- beforeClose: m,
42
- draggable: !0,
43
- closeOnClickModal: !1,
44
- closeOnPressEscape: !1,
45
- showClose: i.value,
46
- alignCenter: !0,
47
- style: {
48
- height: s.value
49
- }
50
- }, {
51
- default: () => [f(e, t.value, null)]
52
- }) : f(O, null, null);
53
- };
54
- }
55
- }), V = j(R), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
56
- __proto__: null,
57
- Button: p,
58
- Colflex: w,
59
- Flexitem: g,
60
- Form: E,
61
- LovTable: F,
62
- Modal: V,
63
- Pagetable: b,
64
- Querytable: _,
65
- RichTextEditor: P,
66
- Rowflex: x,
67
- Space: h,
68
- Tabs: C
69
- }, Symbol.toStringTag, { value: "Module" }));
70
- export {
71
- le as c,
72
- V as i
73
- };
74
- //# sourceMappingURL=components-Cx2JsH63.js.map