orion-design 0.1.29 → 0.1.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/README.md +5 -5
  2. package/dist/components/LovTable/LovPagetable.vue.d.ts +28 -0
  3. package/dist/components/LovTable/index.d.ts +14 -0
  4. package/dist/components/Modal/Modal.d.ts +2 -0
  5. package/dist/components/Modal/ModalLocator.vue.d.ts +20 -0
  6. package/dist/components/Modal/index.d.ts +4 -1
  7. package/dist/components/Modal/index.js +72 -0
  8. package/dist/components/Modal/index.js.map +1 -0
  9. package/dist/components/Modal/types.d.ts +18 -0
  10. package/dist/components/Modal/types.js +6 -0
  11. package/dist/components/Modal/types.js.map +1 -0
  12. package/dist/components/Modal/useModal.d.ts +1 -3
  13. package/dist/components/Modal/useModal.js +4 -3
  14. package/dist/components/Modal/useModal.js.map +1 -1
  15. package/dist/components/Pagetable/Pagetable.d.ts +13 -0
  16. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +13 -0
  17. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +13 -0
  18. package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +13 -0
  19. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +13 -0
  20. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +13 -0
  21. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +13 -0
  22. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +13 -0
  23. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +13 -0
  24. package/dist/components/Pagetable/hooks/useColumns.js +37 -31
  25. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  26. package/dist/components/Pagetable/index.d.ts +9 -0
  27. package/dist/components/Pagetable/index.js +427 -366
  28. package/dist/components/Pagetable/index.js.map +1 -1
  29. package/dist/components/_util/arrays.js.map +1 -1
  30. package/dist/components/_util/browser.js.map +1 -1
  31. package/dist/components/_util/dom/aria.js.map +1 -1
  32. package/dist/components/_util/dom/element.js.map +1 -1
  33. package/dist/components/_util/dom/event.js.map +1 -1
  34. package/dist/components/_util/dom/position.js.map +1 -1
  35. package/dist/components/_util/dom/scroll.js.map +1 -1
  36. package/dist/components/_util/dom/style.js.map +1 -1
  37. package/dist/components/_util/easings.js.map +1 -1
  38. package/dist/components/_util/error.js.map +1 -1
  39. package/dist/components/_util/i18n.js.map +1 -1
  40. package/dist/components/_util/objects.js.map +1 -1
  41. package/dist/components/_util/raf.js.map +1 -1
  42. package/dist/components/_util/rand.js.map +1 -1
  43. package/dist/components/_util/strings.js.map +1 -1
  44. package/dist/components/_util/throttleByRaf.js.map +1 -1
  45. package/dist/components/_util/types.js.map +1 -1
  46. package/dist/components/_util/typescript.js.map +1 -1
  47. package/dist/components/_util/vue/global-node.js.map +1 -1
  48. package/dist/components/_util/vue/icon.js.map +1 -1
  49. package/dist/components/_util/vue/install.js.map +1 -1
  50. package/dist/components/_util/vue/props/runtime.js.map +1 -1
  51. package/dist/components/_util/vue/refs.js.map +1 -1
  52. package/dist/components/_util/vue/size.js.map +1 -1
  53. package/dist/components/_util/vue/validator.js.map +1 -1
  54. package/dist/components/_util/vue/vnode.js.map +1 -1
  55. package/dist/components/components.js +8 -8
  56. package/dist/components/index.js +21 -21
  57. package/dist/components-8oZ2kpUC.js +27 -0
  58. package/dist/components-8oZ2kpUC.js.map +1 -0
  59. package/dist/index.css +1 -1
  60. package/dist/index.js +3 -3
  61. package/dist/version/version.d.ts +1 -1
  62. package/dist/version/version.js +1 -1
  63. package/dist/version/version.js.map +1 -1
  64. package/package.json +1 -1
  65. package/dist/components-J6-qau6Y.js +0 -73
  66. package/dist/components-J6-qau6Y.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sources":["../../../../../src/components/_util/vue/props/runtime.ts"],"sourcesContent":["import { warn } from 'vue'\nimport { fromPairs } from 'lodash-unified'\nimport { isObject } from '../../types'\nimport { hasOwn } from '../../objects'\n\nimport type { PropType } from 'vue'\nimport type {\n EpProp,\n EpPropConvert,\n EpPropFinalized,\n EpPropInput,\n EpPropMergeType,\n IfEpProp,\n IfNativePropType,\n NativePropType,\n} from './types'\n\nexport const epPropKey = '__epPropKey'\n\nexport const definePropType = <T>(val: any): PropType<T> => val\n\nexport const isEpProp = (val: unknown): val is EpProp<any, any, any> =>\n isObject(val) && !!(val as any)[epPropKey]\n\n/**\n * @description Build prop. It can better optimize prop types\n * @description 生成 prop,能更好地优化类型\n * @example\n // limited options\n // the type will be PropType<'light' | 'dark'>\n buildProp({\n type: String,\n values: ['light', 'dark'],\n } as const)\n * @example\n // limited options and other types\n // the type will be PropType<'small' | 'large' | number>\n buildProp({\n type: [String, Number],\n values: ['small', 'large'],\n validator: (val: unknown): val is number => typeof val === 'number',\n } as const)\n @link see more: https://github.com/element-plus/element-plus/pull/3341\n */\nexport const buildProp = <\n Type = never,\n Value = never,\n Validator = never,\n Default extends EpPropMergeType<Type, Value, Validator> = never,\n Required extends boolean = false\n>(\n prop: EpPropInput<Type, Value, Validator, Default, Required>,\n key?: string\n): EpPropFinalized<Type, Value, Validator, Default, Required> => {\n // filter native prop type and nested prop, e.g `null`, `undefined` (from `buildProps`)\n if (!isObject(prop) || isEpProp(prop)) return prop as any\n\n const { values, required, default: defaultValue, type, validator } = prop\n\n const _validator =\n values || validator\n ? (val: unknown) => {\n let valid = false\n let allowedValues: unknown[] = []\n\n if (values) {\n allowedValues = Array.from(values)\n if (hasOwn(prop, 'default')) {\n allowedValues.push(defaultValue)\n }\n valid ||= allowedValues.includes(val)\n }\n if (validator) valid ||= validator(val)\n\n if (!valid && allowedValues.length > 0) {\n const allowValuesText = [...new Set(allowedValues)]\n .map((value) => JSON.stringify(value))\n .join(', ')\n warn(\n `Invalid prop: validation failed${\n key ? ` for prop \"${key}\"` : ''\n }. Expected one of [${allowValuesText}], got value ${JSON.stringify(\n val\n )}.`\n )\n }\n return valid\n }\n : undefined\n\n const epProp: any = {\n type,\n required: !!required,\n validator: _validator,\n [epPropKey]: true,\n }\n if (hasOwn(prop, 'default')) epProp.default = defaultValue\n return epProp\n}\n\nexport const buildProps = <\n Props extends Record<\n string,\n | { [epPropKey]: true }\n | NativePropType\n | EpPropInput<any, any, any, any, any>\n >\n>(\n props: Props\n): {\n [K in keyof Props]: IfEpProp<\n Props[K],\n Props[K],\n IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>\n >\n} =>\n fromPairs(\n Object.entries(props).map(([key, option]) => [\n key,\n buildProp(option as any, key),\n ])\n ) as any\n"],"names":["epPropKey","definePropType","val","isEpProp","isObject","buildProp","prop","key","values","required","defaultValue","type","validator","epProp","valid","allowedValues","hasOwn","allowValuesText","value","warn","buildProps","props","fromPairs","option"],"mappings":";;;AAiBO,MAAMA,IAAY,eAEZC,IAAiB,CAAIC,MAA0BA,GAE/CC,IAAW,CAACD,MACvBE,EAASF,CAAG,KAAK,CAAC,CAAEA,EAAYF,CAAS,GAsB9BK,IAAY,CAOvBC,GACAC,MAC+D;AAE/D,MAAI,CAACH,EAASE,CAAI,KAAKH,EAASG,CAAI,EAAU,QAAAA;AAE9C,QAAM,EAAE,QAAAE,GAAQ,UAAAC,GAAU,SAASC,GAAc,MAAAC,GAAM,WAAAC,EAAc,IAAAN,GAiC/DO,IAAc;AAAA,IAClB,MAAAF;AAAA,IACA,UAAU,CAAC,CAACF;AAAA,IACZ,WAjCAD,KAAUI,IACN,CAACV,MAAiB;AAChB,UAAIY,IAAQ,IACRC,IAA2B,CAAA;AAW/B,UATIP,MACcO,IAAA,MAAM,KAAKP,CAAM,GAC7BQ,EAAOV,GAAM,SAAS,KACxBS,EAAc,KAAKL,CAAY,GAEvBI,UAAAC,EAAc,SAASb,CAAG,KAElCU,MAAqBE,UAAAF,EAAUV,CAAG,KAElC,CAACY,KAASC,EAAc,SAAS,GAAG;AACtC,cAAME,IAAkB,CAAC,GAAG,IAAI,IAAIF,CAAa,CAAC,EAC/C,IAAI,CAACG,MAAU,KAAK,UAAUA,CAAK,CAAC,EACpC,KAAK,IAAI;AACZ,QAAAC;AAAA,UACE,kCACEZ,IAAM,cAAcA,CAAG,MAAM,EAC/B,sBAAsBU,CAAe,gBAAgB,KAAK;AAAA,YACxDf;AAAA,UACD,CAAA;AAAA,QAAA;AAAA,MAEL;AACO,aAAAY;AAAA,IAET,IAAA;AAAA,IAMJ,CAACd,CAAS,GAAG;AAAA,EAAA;AAEf,SAAIgB,EAAOV,GAAM,SAAS,QAAU,UAAUI,IACvCG;AACT,GAEaO,IAAa,CAQxBC,MAQAC;AAAA,EACE,OAAO,QAAQD,CAAK,EAAE,IAAI,CAAC,CAACd,GAAKgB,CAAM,MAAM;AAAA,IAC3ChB;AAAA,IACAF,EAAUkB,GAAehB,CAAG;AAAA,EAAA,CAC7B;AACH;"}
1
+ {"version":3,"file":"runtime.js","sources":["../../../../../src/components/_util/vue/props/runtime.ts"],"sourcesContent":["import { warn } from 'vue'\r\nimport { fromPairs } from 'lodash-unified'\r\nimport { isObject } from '../../types'\r\nimport { hasOwn } from '../../objects'\r\n\r\nimport type { PropType } from 'vue'\r\nimport type {\r\n EpProp,\r\n EpPropConvert,\r\n EpPropFinalized,\r\n EpPropInput,\r\n EpPropMergeType,\r\n IfEpProp,\r\n IfNativePropType,\r\n NativePropType,\r\n} from './types'\r\n\r\nexport const epPropKey = '__epPropKey'\r\n\r\nexport const definePropType = <T>(val: any): PropType<T> => val\r\n\r\nexport const isEpProp = (val: unknown): val is EpProp<any, any, any> =>\r\n isObject(val) && !!(val as any)[epPropKey]\r\n\r\n/**\r\n * @description Build prop. It can better optimize prop types\r\n * @description 生成 prop,能更好地优化类型\r\n * @example\r\n // limited options\r\n // the type will be PropType<'light' | 'dark'>\r\n buildProp({\r\n type: String,\r\n values: ['light', 'dark'],\r\n } as const)\r\n * @example\r\n // limited options and other types\r\n // the type will be PropType<'small' | 'large' | number>\r\n buildProp({\r\n type: [String, Number],\r\n values: ['small', 'large'],\r\n validator: (val: unknown): val is number => typeof val === 'number',\r\n } as const)\r\n @link see more: https://github.com/element-plus/element-plus/pull/3341\r\n */\r\nexport const buildProp = <\r\n Type = never,\r\n Value = never,\r\n Validator = never,\r\n Default extends EpPropMergeType<Type, Value, Validator> = never,\r\n Required extends boolean = false\r\n>(\r\n prop: EpPropInput<Type, Value, Validator, Default, Required>,\r\n key?: string\r\n): EpPropFinalized<Type, Value, Validator, Default, Required> => {\r\n // filter native prop type and nested prop, e.g `null`, `undefined` (from `buildProps`)\r\n if (!isObject(prop) || isEpProp(prop)) return prop as any\r\n\r\n const { values, required, default: defaultValue, type, validator } = prop\r\n\r\n const _validator =\r\n values || validator\r\n ? (val: unknown) => {\r\n let valid = false\r\n let allowedValues: unknown[] = []\r\n\r\n if (values) {\r\n allowedValues = Array.from(values)\r\n if (hasOwn(prop, 'default')) {\r\n allowedValues.push(defaultValue)\r\n }\r\n valid ||= allowedValues.includes(val)\r\n }\r\n if (validator) valid ||= validator(val)\r\n\r\n if (!valid && allowedValues.length > 0) {\r\n const allowValuesText = [...new Set(allowedValues)]\r\n .map((value) => JSON.stringify(value))\r\n .join(', ')\r\n warn(\r\n `Invalid prop: validation failed${\r\n key ? ` for prop \"${key}\"` : ''\r\n }. Expected one of [${allowValuesText}], got value ${JSON.stringify(\r\n val\r\n )}.`\r\n )\r\n }\r\n return valid\r\n }\r\n : undefined\r\n\r\n const epProp: any = {\r\n type,\r\n required: !!required,\r\n validator: _validator,\r\n [epPropKey]: true,\r\n }\r\n if (hasOwn(prop, 'default')) epProp.default = defaultValue\r\n return epProp\r\n}\r\n\r\nexport const buildProps = <\r\n Props extends Record<\r\n string,\r\n | { [epPropKey]: true }\r\n | NativePropType\r\n | EpPropInput<any, any, any, any, any>\r\n >\r\n>(\r\n props: Props\r\n): {\r\n [K in keyof Props]: IfEpProp<\r\n Props[K],\r\n Props[K],\r\n IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>\r\n >\r\n} =>\r\n fromPairs(\r\n Object.entries(props).map(([key, option]) => [\r\n key,\r\n buildProp(option as any, key),\r\n ])\r\n ) as any\r\n"],"names":["epPropKey","definePropType","val","isEpProp","isObject","buildProp","prop","key","values","required","defaultValue","type","validator","epProp","valid","allowedValues","hasOwn","allowValuesText","value","warn","buildProps","props","fromPairs","option"],"mappings":";;;AAiBO,MAAMA,IAAY,eAEZC,IAAiB,CAAIC,MAA0BA,GAE/CC,IAAW,CAACD,MACvBE,EAASF,CAAG,KAAK,CAAC,CAAEA,EAAYF,CAAS,GAsB9BK,IAAY,CAOvBC,GACAC,MAC+D;AAE/D,MAAI,CAACH,EAASE,CAAI,KAAKH,EAASG,CAAI,EAAU,QAAAA;AAE9C,QAAM,EAAE,QAAAE,GAAQ,UAAAC,GAAU,SAASC,GAAc,MAAAC,GAAM,WAAAC,EAAc,IAAAN,GAiC/DO,IAAc;AAAA,IAClB,MAAAF;AAAA,IACA,UAAU,CAAC,CAACF;AAAA,IACZ,WAjCAD,KAAUI,IACN,CAACV,MAAiB;AAChB,UAAIY,IAAQ,IACRC,IAA2B,CAAA;AAW/B,UATIP,MACcO,IAAA,MAAM,KAAKP,CAAM,GAC7BQ,EAAOV,GAAM,SAAS,KACxBS,EAAc,KAAKL,CAAY,GAEvBI,UAAAC,EAAc,SAASb,CAAG,KAElCU,MAAqBE,UAAAF,EAAUV,CAAG,KAElC,CAACY,KAASC,EAAc,SAAS,GAAG;AACtC,cAAME,IAAkB,CAAC,GAAG,IAAI,IAAIF,CAAa,CAAC,EAC/C,IAAI,CAACG,MAAU,KAAK,UAAUA,CAAK,CAAC,EACpC,KAAK,IAAI;AACZ,QAAAC;AAAA,UACE,kCACEZ,IAAM,cAAcA,CAAG,MAAM,EAC/B,sBAAsBU,CAAe,gBAAgB,KAAK;AAAA,YACxDf;AAAA,UACD,CAAA;AAAA,QAAA;AAAA,MAEL;AACO,aAAAY;AAAA,IAET,IAAA;AAAA,IAMJ,CAACd,CAAS,GAAG;AAAA,EAAA;AAEf,SAAIgB,EAAOV,GAAM,SAAS,QAAU,UAAUI,IACvCG;AACT,GAEaO,IAAa,CAQxBC,MAQAC;AAAA,EACE,OAAO,QAAQD,CAAK,EAAE,IAAI,CAAC,CAACd,GAAKgB,CAAM,MAAM;AAAA,IAC3ChB;AAAA,IACAF,EAAUkB,GAAehB,CAAG;AAAA,EAAA,CAC7B;AACH;"}
@@ -1 +1 @@
1
- {"version":3,"file":"refs.js","sources":["../../../../src/components/_util/vue/refs.ts"],"sourcesContent":["import { isFunction } from '../types'\n\nimport type { ComponentPublicInstance, Ref } from 'vue'\n\nexport type RefSetter = (\n el: Element | ComponentPublicInstance | undefined\n) => void\n\nexport const composeRefs = (\n ...refs: (Ref<HTMLElement | undefined> | RefSetter)[]\n) => {\n return (el: Element | ComponentPublicInstance | null) => {\n refs.forEach((ref) => {\n if (isFunction(ref)) {\n ref(el as Element | ComponentPublicInstance)\n } else {\n ref.value = el as HTMLElement | undefined\n }\n })\n }\n}\n"],"names":["composeRefs","refs","el","ref","isFunction"],"mappings":";;;AAQa,MAAAA,IAAc,IACtBC,MAEI,CAACC,MAAiD;AAClD,EAAAD,EAAA,QAAQ,CAACE,MAAQ;AAChB,IAAAC,EAAWD,CAAG,IAChBA,EAAID,CAAuC,IAE3CC,EAAI,QAAQD;AAAA,EACd,CACD;AAAA;"}
1
+ {"version":3,"file":"refs.js","sources":["../../../../src/components/_util/vue/refs.ts"],"sourcesContent":["import { isFunction } from '../types'\r\n\r\nimport type { ComponentPublicInstance, Ref } from 'vue'\r\n\r\nexport type RefSetter = (\r\n el: Element | ComponentPublicInstance | undefined\r\n) => void\r\n\r\nexport const composeRefs = (\r\n ...refs: (Ref<HTMLElement | undefined> | RefSetter)[]\r\n) => {\r\n return (el: Element | ComponentPublicInstance | null) => {\r\n refs.forEach((ref) => {\r\n if (isFunction(ref)) {\r\n ref(el as Element | ComponentPublicInstance)\r\n } else {\r\n ref.value = el as HTMLElement | undefined\r\n }\r\n })\r\n }\r\n}\r\n"],"names":["composeRefs","refs","el","ref","isFunction"],"mappings":";;;AAQa,MAAAA,IAAc,IACtBC,MAEI,CAACC,MAAiD;AAClD,EAAAD,EAAA,QAAQ,CAACE,MAAQ;AAChB,IAAAC,EAAWD,CAAG,IAChBA,EAAID,CAAuC,IAE3CC,EAAI,QAAQD;AAAA,EACd,CACD;AAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"size.js","sources":["../../../../src/components/_util/vue/size.ts"],"sourcesContent":["import { componentSizeMap } from 'element-plus'\n\nimport type { ComponentSize } from 'element-plus'\n\nexport const getComponentSize = (size?: ComponentSize) => {\n return componentSizeMap[size || 'default']\n}\n"],"names":["getComponentSize","size","componentSizeMap"],"mappings":";AAIa,MAAAA,IAAmB,CAACC,MACxBC,EAAiBD,KAAQ,SAAS;"}
1
+ {"version":3,"file":"size.js","sources":["../../../../src/components/_util/vue/size.ts"],"sourcesContent":["import { componentSizeMap } from 'element-plus'\r\n\r\nimport type { ComponentSize } from 'element-plus'\r\n\r\nexport const getComponentSize = (size?: ComponentSize) => {\r\n return componentSizeMap[size || 'default']\r\n}\r\n"],"names":["getComponentSize","size","componentSizeMap"],"mappings":";AAIa,MAAAA,IAAmB,CAACC,MACxBC,EAAiBD,KAAQ,SAAS;"}
@@ -1 +1 @@
1
- {"version":3,"file":"validator.js","sources":["../../../../src/components/_util/vue/validator.ts"],"sourcesContent":["import { componentSizes, datePickTypes } from 'element-plus'\nimport type { ComponentSize, DatePickType } from 'element-plus'\n\nexport const isValidComponentSize = (val: string): val is ComponentSize | '' =>\n ['', ...componentSizes].includes(val)\n\nexport const isValidDatePickType = (val: string): val is DatePickType =>\n ([...datePickTypes] as string[]).includes(val)\n"],"names":["isValidComponentSize","val","componentSizes","isValidDatePickType","datePickTypes"],"mappings":";AAGa,MAAAA,IAAuB,CAACC,MACnC,CAAC,IAAI,GAAGC,CAAc,EAAE,SAASD,CAAG,GAEzBE,IAAsB,CAACF,MACjC,CAAC,GAAGG,CAAa,EAAe,SAASH,CAAG;"}
1
+ {"version":3,"file":"validator.js","sources":["../../../../src/components/_util/vue/validator.ts"],"sourcesContent":["import { componentSizes, datePickTypes } from 'element-plus'\r\nimport type { ComponentSize, DatePickType } from 'element-plus'\r\n\r\nexport const isValidComponentSize = (val: string): val is ComponentSize | '' =>\r\n ['', ...componentSizes].includes(val)\r\n\r\nexport const isValidDatePickType = (val: string): val is DatePickType =>\r\n ([...datePickTypes] as string[]).includes(val)\r\n"],"names":["isValidComponentSize","val","componentSizes","isValidDatePickType","datePickTypes"],"mappings":";AAGa,MAAAA,IAAuB,CAACC,MACnC,CAAC,IAAI,GAAGC,CAAc,EAAE,SAASD,CAAG,GAEzBE,IAAsB,CAACF,MACjC,CAAC,GAAGG,CAAa,EAAe,SAASH,CAAG;"}
@@ -1 +1 @@
1
- {"version":3,"file":"vnode.js","sources":["../../../../src/components/_util/vue/vnode.ts"],"sourcesContent":["import {\n Comment,\n Fragment,\n Text,\n createBlock,\n createCommentVNode,\n isVNode,\n openBlock,\n} from 'vue'\nimport { camelize } from '../strings'\nimport { isArray } from '../types'\nimport { hasOwn } from '../objects'\nimport { debugWarn } from '../error'\nimport type {\n VNode,\n VNodeArrayChildren,\n VNodeChild,\n VNodeNormalizedChildren,\n} from 'vue'\n\nconst SCOPE = 'utils/vue/vnode'\n\nexport enum PatchFlags {\n TEXT = 1,\n CLASS = 2,\n STYLE = 4,\n PROPS = 8,\n FULL_PROPS = 16,\n HYDRATE_EVENTS = 32,\n STABLE_FRAGMENT = 64,\n KEYED_FRAGMENT = 128,\n UNKEYED_FRAGMENT = 256,\n NEED_PATCH = 512,\n DYNAMIC_SLOTS = 1024,\n HOISTED = -1,\n BAIL = -2,\n}\n\nexport type VNodeChildAtom = Exclude<VNodeChild, Array<any>>\nexport type RawSlots = Exclude<\n VNodeNormalizedChildren,\n Array<any> | null | string\n>\n\nexport function isFragment(node: VNode): boolean\nexport function isFragment(node: unknown): node is VNode\nexport function isFragment(node: unknown): node is VNode {\n return isVNode(node) && node.type === Fragment\n}\n\nexport function isText(node: VNode): boolean\nexport function isText(node: unknown): node is VNode\nexport function isText(node: unknown): node is VNode {\n return isVNode(node) && node.type === Text\n}\n\nexport function isComment(node: VNode): boolean\nexport function isComment(node: unknown): node is VNode\nexport function isComment(node: unknown): node is VNode {\n return isVNode(node) && node.type === Comment\n}\n\nconst TEMPLATE = 'template'\nexport function isTemplate(node: VNode): boolean\nexport function isTemplate(node: unknown): node is VNode\nexport function isTemplate(node: unknown): node is VNode {\n return isVNode(node) && node.type === TEMPLATE\n}\n\n/**\n * determine if the element is a valid element type rather than fragments and comment e.g. <template> v-if\n * @param node {VNode} node to be tested\n */\nexport function isValidElementNode(node: VNode): boolean\nexport function isValidElementNode(node: unknown): node is VNode\nexport function isValidElementNode(node: unknown): node is VNode {\n return isVNode(node) && !isFragment(node) && !isComment(node)\n}\n\n/**\n * get a valid child node (not fragment nor comment)\n * @param node {VNode} node to be searched\n * @param depth {number} depth to be searched\n */\nfunction getChildren(\n node: VNodeNormalizedChildren | VNodeChild,\n depth: number\n): VNodeNormalizedChildren | VNodeChild {\n if (isComment(node)) return\n if (isFragment(node) || isTemplate(node)) {\n return depth > 0 ? getFirstValidNode(node.children, depth - 1) : undefined\n }\n return node\n}\n\nexport const getFirstValidNode = (\n nodes: VNodeNormalizedChildren,\n maxDepth = 3\n) => {\n if (Array.isArray(nodes)) {\n return getChildren(nodes[0], maxDepth)\n } else {\n return getChildren(nodes, maxDepth)\n }\n}\n\nexport function renderIf(\n condition: boolean,\n ...args: Parameters<typeof createBlock>\n) {\n return condition ? renderBlock(...args) : createCommentVNode('v-if', true)\n}\n\nexport function renderBlock(...args: Parameters<typeof createBlock>) {\n return openBlock(), createBlock(...args)\n}\n\nexport const getNormalizedProps = (node: VNode) => {\n if (!isVNode(node)) {\n debugWarn(SCOPE, '[getNormalizedProps] must be a VNode')\n return {}\n }\n\n const raw = node.props || {}\n const type = (isVNode(node.type) ? node.type.props : undefined) || {}\n const props: Record<string, any> = {}\n\n Object.keys(type).forEach((key) => {\n if (hasOwn(type[key], 'default')) {\n props[key] = type[key].default\n }\n })\n\n Object.keys(raw).forEach((key) => {\n props[camelize(key)] = raw[key]\n })\n\n return props\n}\n\nexport const ensureOnlyChild = (children: VNodeArrayChildren | undefined) => {\n if (!isArray(children) || children.length > 1) {\n throw new Error('expect to receive a single Vue element child')\n }\n return children[0]\n}\n\nexport type FlattenVNodes = Array<VNodeChildAtom | RawSlots>\n\nexport const flattedChildren = (\n children: FlattenVNodes | VNode | VNodeNormalizedChildren\n): FlattenVNodes => {\n const vNodes = isArray(children) ? children : [children]\n const result: FlattenVNodes = []\n\n vNodes.forEach((child) => {\n if (isArray(child)) {\n result.push(...flattedChildren(child))\n } else if (isVNode(child) && isArray(child.children)) {\n result.push(...flattedChildren(child.children))\n } else {\n result.push(child)\n if (isVNode(child) && child.component?.subTree) {\n result.push(...flattedChildren(child.component.subTree))\n }\n }\n })\n return result\n}\n"],"names":["SCOPE","PatchFlags","isFragment","node","isVNode","Fragment","isText","Text","isComment","Comment","TEMPLATE","isTemplate","isValidElementNode","getChildren","depth","getFirstValidNode","nodes","maxDepth","renderIf","condition","args","renderBlock","createCommentVNode","openBlock","createBlock","getNormalizedProps","debugWarn","raw","type","props","key","hasOwn","camelize","ensureOnlyChild","children","isArray","flattedChildren","vNodes","result","child","_a"],"mappings":";;;;AAoBA,MAAMA,IAAQ;AAEF,IAAAC,sBAAAA,OACVA,EAAAA,EAAA,OAAO,CAAP,IAAA,QACAA,EAAAA,EAAA,QAAQ,CAAR,IAAA,SACAA,EAAAA,EAAA,QAAQ,CAAR,IAAA,SACAA,EAAAA,EAAA,QAAQ,CAAR,IAAA,SACAA,EAAAA,EAAA,aAAa,EAAb,IAAA,cACAA,EAAAA,EAAA,iBAAiB,EAAjB,IAAA,kBACAA,EAAAA,EAAA,kBAAkB,EAAlB,IAAA,mBACAA,EAAAA,EAAA,iBAAiB,GAAjB,IAAA,kBACAA,EAAAA,EAAA,mBAAmB,GAAnB,IAAA,oBACAA,EAAAA,EAAA,aAAa,GAAb,IAAA,cACAA,EAAAA,EAAA,gBAAgB,IAAhB,IAAA,iBACAA,EAAAA,EAAA,UAAU,EAAV,IAAA,WACAA,EAAAA,EAAA,OAAO,EAAP,IAAA,QAbUA,IAAAA,KAAA,CAAA,CAAA;AAwBL,SAASC,EAAWC,GAA8B;AACvD,SAAOC,EAAQD,CAAI,KAAKA,EAAK,SAASE;AACxC;AAIO,SAASC,EAAOH,GAA8B;AACnD,SAAOC,EAAQD,CAAI,KAAKA,EAAK,SAASI;AACxC;AAIO,SAASC,EAAUL,GAA8B;AACtD,SAAOC,EAAQD,CAAI,KAAKA,EAAK,SAASM;AACxC;AAEA,MAAMC,IAAW;AAGV,SAASC,EAAWR,GAA8B;AACvD,SAAOC,EAAQD,CAAI,KAAKA,EAAK,SAASO;AACxC;AAQO,SAASE,EAAmBT,GAA8B;AACxD,SAAAC,EAAQD,CAAI,KAAK,CAACD,EAAWC,CAAI,KAAK,CAACK,EAAUL,CAAI;AAC9D;AAOA,SAASU,EACPV,GACAW,GACsC;AAClC,MAAA,CAAAN,EAAUL,CAAI;AAClB,WAAID,EAAWC,CAAI,KAAKQ,EAAWR,CAAI,IAC9BW,IAAQ,IAAIC,EAAkBZ,EAAK,UAAUW,IAAQ,CAAC,IAAI,SAE5DX;AACT;AAEO,MAAMY,IAAoB,CAC/BC,GACAC,IAAW,MAEP,MAAM,QAAQD,CAAK,IACdH,EAAYG,EAAM,CAAC,GAAGC,CAAQ,IAE9BJ,EAAYG,GAAOC,CAAQ;AAItB,SAAAC,EACdC,MACGC,GACH;AACA,SAAOD,IAAYE,EAAY,GAAGD,CAAI,IAAIE,EAAmB,QAAQ,EAAI;AAC3E;AAEO,SAASD,KAAeD,GAAsC;AACnE,SAAOG,EAAU,GAAGC,EAAY,GAAGJ,CAAI;AACzC;AAEa,MAAAK,IAAqB,CAACtB,MAAgB;AAC7C,MAAA,CAACC,EAAQD,CAAI;AACf,WAAAuB,EAAU1B,GAAO,sCAAsC,GAChD;AAGH,QAAA2B,IAAMxB,EAAK,SAAS,IACpByB,KAAQxB,EAAQD,EAAK,IAAI,IAAIA,EAAK,KAAK,QAAQ,WAAc,CAAA,GAC7D0B,IAA6B,CAAA;AAEnC,gBAAO,KAAKD,CAAI,EAAE,QAAQ,CAACE,MAAQ;AACjC,IAAIC,EAAOH,EAAKE,CAAG,GAAG,SAAS,MAC7BD,EAAMC,CAAG,IAAIF,EAAKE,CAAG,EAAE;AAAA,EACzB,CACD,GAED,OAAO,KAAKH,CAAG,EAAE,QAAQ,CAACG,MAAQ;AAChC,IAAAD,EAAMG,EAASF,CAAG,CAAC,IAAIH,EAAIG,CAAG;AAAA,EAAA,CAC/B,GAEMD;AACT,GAEaI,IAAkB,CAACC,MAA6C;AAC3E,MAAI,CAACC,EAAQD,CAAQ,KAAKA,EAAS,SAAS;AACpC,UAAA,IAAI,MAAM,8CAA8C;AAEhE,SAAOA,EAAS,CAAC;AACnB,GAIaE,IAAkB,CAC7BF,MACkB;AAClB,QAAMG,IAASF,EAAQD,CAAQ,IAAIA,IAAW,CAACA,CAAQ,GACjDI,IAAwB,CAAA;AAEvB,SAAAD,EAAA,QAAQ,CAACE,MAAU;;AACpB,IAAAJ,EAAQI,CAAK,IACfD,EAAO,KAAK,GAAGF,EAAgBG,CAAK,CAAC,IAC5BnC,EAAQmC,CAAK,KAAKJ,EAAQI,EAAM,QAAQ,IACjDD,EAAO,KAAK,GAAGF,EAAgBG,EAAM,QAAQ,CAAC,KAE9CD,EAAO,KAAKC,CAAK,GACbnC,EAAQmC,CAAK,OAAKC,IAAAD,EAAM,cAAN,QAAAC,EAAiB,YACrCF,EAAO,KAAK,GAAGF,EAAgBG,EAAM,UAAU,OAAO,CAAC;AAAA,EAE3D,CACD,GACMD;AACT;"}
1
+ {"version":3,"file":"vnode.js","sources":["../../../../src/components/_util/vue/vnode.ts"],"sourcesContent":["import {\r\n Comment,\r\n Fragment,\r\n Text,\r\n createBlock,\r\n createCommentVNode,\r\n isVNode,\r\n openBlock,\r\n} from 'vue'\r\nimport { camelize } from '../strings'\r\nimport { isArray } from '../types'\r\nimport { hasOwn } from '../objects'\r\nimport { debugWarn } from '../error'\r\nimport type {\r\n VNode,\r\n VNodeArrayChildren,\r\n VNodeChild,\r\n VNodeNormalizedChildren,\r\n} from 'vue'\r\n\r\nconst SCOPE = 'utils/vue/vnode'\r\n\r\nexport enum PatchFlags {\r\n TEXT = 1,\r\n CLASS = 2,\r\n STYLE = 4,\r\n PROPS = 8,\r\n FULL_PROPS = 16,\r\n HYDRATE_EVENTS = 32,\r\n STABLE_FRAGMENT = 64,\r\n KEYED_FRAGMENT = 128,\r\n UNKEYED_FRAGMENT = 256,\r\n NEED_PATCH = 512,\r\n DYNAMIC_SLOTS = 1024,\r\n HOISTED = -1,\r\n BAIL = -2,\r\n}\r\n\r\nexport type VNodeChildAtom = Exclude<VNodeChild, Array<any>>\r\nexport type RawSlots = Exclude<\r\n VNodeNormalizedChildren,\r\n Array<any> | null | string\r\n>\r\n\r\nexport function isFragment(node: VNode): boolean\r\nexport function isFragment(node: unknown): node is VNode\r\nexport function isFragment(node: unknown): node is VNode {\r\n return isVNode(node) && node.type === Fragment\r\n}\r\n\r\nexport function isText(node: VNode): boolean\r\nexport function isText(node: unknown): node is VNode\r\nexport function isText(node: unknown): node is VNode {\r\n return isVNode(node) && node.type === Text\r\n}\r\n\r\nexport function isComment(node: VNode): boolean\r\nexport function isComment(node: unknown): node is VNode\r\nexport function isComment(node: unknown): node is VNode {\r\n return isVNode(node) && node.type === Comment\r\n}\r\n\r\nconst TEMPLATE = 'template'\r\nexport function isTemplate(node: VNode): boolean\r\nexport function isTemplate(node: unknown): node is VNode\r\nexport function isTemplate(node: unknown): node is VNode {\r\n return isVNode(node) && node.type === TEMPLATE\r\n}\r\n\r\n/**\r\n * determine if the element is a valid element type rather than fragments and comment e.g. <template> v-if\r\n * @param node {VNode} node to be tested\r\n */\r\nexport function isValidElementNode(node: VNode): boolean\r\nexport function isValidElementNode(node: unknown): node is VNode\r\nexport function isValidElementNode(node: unknown): node is VNode {\r\n return isVNode(node) && !isFragment(node) && !isComment(node)\r\n}\r\n\r\n/**\r\n * get a valid child node (not fragment nor comment)\r\n * @param node {VNode} node to be searched\r\n * @param depth {number} depth to be searched\r\n */\r\nfunction getChildren(\r\n node: VNodeNormalizedChildren | VNodeChild,\r\n depth: number\r\n): VNodeNormalizedChildren | VNodeChild {\r\n if (isComment(node)) return\r\n if (isFragment(node) || isTemplate(node)) {\r\n return depth > 0 ? getFirstValidNode(node.children, depth - 1) : undefined\r\n }\r\n return node\r\n}\r\n\r\nexport const getFirstValidNode = (\r\n nodes: VNodeNormalizedChildren,\r\n maxDepth = 3\r\n) => {\r\n if (Array.isArray(nodes)) {\r\n return getChildren(nodes[0], maxDepth)\r\n } else {\r\n return getChildren(nodes, maxDepth)\r\n }\r\n}\r\n\r\nexport function renderIf(\r\n condition: boolean,\r\n ...args: Parameters<typeof createBlock>\r\n) {\r\n return condition ? renderBlock(...args) : createCommentVNode('v-if', true)\r\n}\r\n\r\nexport function renderBlock(...args: Parameters<typeof createBlock>) {\r\n return openBlock(), createBlock(...args)\r\n}\r\n\r\nexport const getNormalizedProps = (node: VNode) => {\r\n if (!isVNode(node)) {\r\n debugWarn(SCOPE, '[getNormalizedProps] must be a VNode')\r\n return {}\r\n }\r\n\r\n const raw = node.props || {}\r\n const type = (isVNode(node.type) ? node.type.props : undefined) || {}\r\n const props: Record<string, any> = {}\r\n\r\n Object.keys(type).forEach((key) => {\r\n if (hasOwn(type[key], 'default')) {\r\n props[key] = type[key].default\r\n }\r\n })\r\n\r\n Object.keys(raw).forEach((key) => {\r\n props[camelize(key)] = raw[key]\r\n })\r\n\r\n return props\r\n}\r\n\r\nexport const ensureOnlyChild = (children: VNodeArrayChildren | undefined) => {\r\n if (!isArray(children) || children.length > 1) {\r\n throw new Error('expect to receive a single Vue element child')\r\n }\r\n return children[0]\r\n}\r\n\r\nexport type FlattenVNodes = Array<VNodeChildAtom | RawSlots>\r\n\r\nexport const flattedChildren = (\r\n children: FlattenVNodes | VNode | VNodeNormalizedChildren\r\n): FlattenVNodes => {\r\n const vNodes = isArray(children) ? children : [children]\r\n const result: FlattenVNodes = []\r\n\r\n vNodes.forEach((child) => {\r\n if (isArray(child)) {\r\n result.push(...flattedChildren(child))\r\n } else if (isVNode(child) && isArray(child.children)) {\r\n result.push(...flattedChildren(child.children))\r\n } else {\r\n result.push(child)\r\n if (isVNode(child) && child.component?.subTree) {\r\n result.push(...flattedChildren(child.component.subTree))\r\n }\r\n }\r\n })\r\n return result\r\n}\r\n"],"names":["SCOPE","PatchFlags","isFragment","node","isVNode","Fragment","isText","Text","isComment","Comment","TEMPLATE","isTemplate","isValidElementNode","getChildren","depth","getFirstValidNode","nodes","maxDepth","renderIf","condition","args","renderBlock","createCommentVNode","openBlock","createBlock","getNormalizedProps","debugWarn","raw","type","props","key","hasOwn","camelize","ensureOnlyChild","children","isArray","flattedChildren","vNodes","result","child","_a"],"mappings":";;;;AAoBA,MAAMA,IAAQ;AAEF,IAAAC,sBAAAA,OACVA,EAAAA,EAAA,OAAO,CAAP,IAAA,QACAA,EAAAA,EAAA,QAAQ,CAAR,IAAA,SACAA,EAAAA,EAAA,QAAQ,CAAR,IAAA,SACAA,EAAAA,EAAA,QAAQ,CAAR,IAAA,SACAA,EAAAA,EAAA,aAAa,EAAb,IAAA,cACAA,EAAAA,EAAA,iBAAiB,EAAjB,IAAA,kBACAA,EAAAA,EAAA,kBAAkB,EAAlB,IAAA,mBACAA,EAAAA,EAAA,iBAAiB,GAAjB,IAAA,kBACAA,EAAAA,EAAA,mBAAmB,GAAnB,IAAA,oBACAA,EAAAA,EAAA,aAAa,GAAb,IAAA,cACAA,EAAAA,EAAA,gBAAgB,IAAhB,IAAA,iBACAA,EAAAA,EAAA,UAAU,EAAV,IAAA,WACAA,EAAAA,EAAA,OAAO,EAAP,IAAA,QAbUA,IAAAA,KAAA,CAAA,CAAA;AAwBL,SAASC,EAAWC,GAA8B;AACvD,SAAOC,EAAQD,CAAI,KAAKA,EAAK,SAASE;AACxC;AAIO,SAASC,EAAOH,GAA8B;AACnD,SAAOC,EAAQD,CAAI,KAAKA,EAAK,SAASI;AACxC;AAIO,SAASC,EAAUL,GAA8B;AACtD,SAAOC,EAAQD,CAAI,KAAKA,EAAK,SAASM;AACxC;AAEA,MAAMC,IAAW;AAGV,SAASC,EAAWR,GAA8B;AACvD,SAAOC,EAAQD,CAAI,KAAKA,EAAK,SAASO;AACxC;AAQO,SAASE,EAAmBT,GAA8B;AACxD,SAAAC,EAAQD,CAAI,KAAK,CAACD,EAAWC,CAAI,KAAK,CAACK,EAAUL,CAAI;AAC9D;AAOA,SAASU,EACPV,GACAW,GACsC;AAClC,MAAA,CAAAN,EAAUL,CAAI;AAClB,WAAID,EAAWC,CAAI,KAAKQ,EAAWR,CAAI,IAC9BW,IAAQ,IAAIC,EAAkBZ,EAAK,UAAUW,IAAQ,CAAC,IAAI,SAE5DX;AACT;AAEO,MAAMY,IAAoB,CAC/BC,GACAC,IAAW,MAEP,MAAM,QAAQD,CAAK,IACdH,EAAYG,EAAM,CAAC,GAAGC,CAAQ,IAE9BJ,EAAYG,GAAOC,CAAQ;AAItB,SAAAC,EACdC,MACGC,GACH;AACA,SAAOD,IAAYE,EAAY,GAAGD,CAAI,IAAIE,EAAmB,QAAQ,EAAI;AAC3E;AAEO,SAASD,KAAeD,GAAsC;AACnE,SAAOG,EAAU,GAAGC,EAAY,GAAGJ,CAAI;AACzC;AAEa,MAAAK,IAAqB,CAACtB,MAAgB;AAC7C,MAAA,CAACC,EAAQD,CAAI;AACf,WAAAuB,EAAU1B,GAAO,sCAAsC,GAChD;AAGH,QAAA2B,IAAMxB,EAAK,SAAS,IACpByB,KAAQxB,EAAQD,EAAK,IAAI,IAAIA,EAAK,KAAK,QAAQ,WAAc,CAAA,GAC7D0B,IAA6B,CAAA;AAEnC,gBAAO,KAAKD,CAAI,EAAE,QAAQ,CAACE,MAAQ;AACjC,IAAIC,EAAOH,EAAKE,CAAG,GAAG,SAAS,MAC7BD,EAAMC,CAAG,IAAIF,EAAKE,CAAG,EAAE;AAAA,EACzB,CACD,GAED,OAAO,KAAKH,CAAG,EAAE,QAAQ,CAACG,MAAQ;AAChC,IAAAD,EAAMG,EAASF,CAAG,CAAC,IAAIH,EAAIG,CAAG;AAAA,EAAA,CAC/B,GAEMD;AACT,GAEaI,IAAkB,CAACC,MAA6C;AAC3E,MAAI,CAACC,EAAQD,CAAQ,KAAKA,EAAS,SAAS;AACpC,UAAA,IAAI,MAAM,8CAA8C;AAEhE,SAAOA,EAAS,CAAC;AACnB,GAIaE,IAAkB,CAC7BF,MACkB;AAClB,QAAMG,IAASF,EAAQD,CAAQ,IAAIA,IAAW,CAACA,CAAQ,GACjDI,IAAwB,CAAA;AAEvB,SAAAD,EAAA,QAAQ,CAACE,MAAU;;AACpB,IAAAJ,EAAQI,CAAK,IACfD,EAAO,KAAK,GAAGF,EAAgBG,CAAK,CAAC,IAC5BnC,EAAQmC,CAAK,KAAKJ,EAAQI,EAAM,QAAQ,IACjDD,EAAO,KAAK,GAAGF,EAAgBG,EAAM,QAAQ,CAAC,KAE9CD,EAAO,KAAKC,CAAK,GACbnC,EAAQmC,CAAK,OAAKC,IAAAD,EAAM,cAAN,QAAAC,EAAiB,YACrCF,EAAO,KAAK,GAAGF,EAAgBG,EAAM,UAAU,OAAO,CAAC;AAAA,EAE3D,CACD,GACMD;AACT;"}
@@ -1,23 +1,23 @@
1
1
  import { default as a } from "./Button/index.js";
2
- import { S as t } from "../index-BbsXWo7C.js";
2
+ import { S as r } 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
5
  import { default as d } from "./Pagetable/index.js";
6
- import { default as i } from "./Querytable/index.js";
7
- import { i as S } from "../components-J6-qau6Y.js";
8
- import { default as c } from "./Form/index.js";
6
+ import { default as F } from "./Querytable/index.js";
7
+ import { default as T } from "./Modal/index.js";
8
+ import { default as g } from "./Form/index.js";
9
9
  import { default as n } from "./LovTable/index.js";
10
10
  export {
11
11
  a as Button,
12
12
  l as Colflex,
13
13
  x as Flexitem,
14
- c as Form,
14
+ g as Form,
15
15
  n as LovTable,
16
- S as Modal,
16
+ T as Modal,
17
17
  d as Pagetable,
18
- i as Querytable,
18
+ F as Querytable,
19
19
  m as Rowflex,
20
- t as Space,
20
+ r as Space,
21
21
  s as Tabs
22
22
  };
23
23
  //# sourceMappingURL=components.js.map
@@ -1,13 +1,13 @@
1
- import { c as t } from "../components-J6-qau6Y.js";
2
- import { i as m } from "../components-J6-qau6Y.js";
3
- import { default as p } from "./Modal/useModal.js";
4
- import { default as n } from "./Form/index.js";
5
- import { default as c } from "./Button/index.js";
6
- import { S as b } from "../index-BbsXWo7C.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";
1
+ import { c as t } from "../components-8oZ2kpUC.js";
2
+ import { default as m } from "./Modal/useModal.js";
3
+ import { default as p } from "./Form/index.js";
4
+ import { default as n } from "./Button/index.js";
5
+ import { S as c } from "../index-BbsXWo7C.js";
6
+ import { Colflex as b, Flexitem as y, Rowflex as v } from "./Flex/index.js";
7
+ import { default as F } from "./Tabs/index.js";
8
+ import { default as L } from "./Pagetable/index.js";
9
+ import { default as O } from "./Querytable/index.js";
10
+ import { default as T } from "./Modal/index.js";
11
11
  import { default as h } from "./LovTable/index.js";
12
12
  import { formContextKey as k } from "./Form/Form.js";
13
13
  import { default as B } from "./Form/LovInput/hooks/useLov.js";
@@ -19,21 +19,21 @@ const f = function(o) {
19
19
  }), o;
20
20
  };
21
21
  export {
22
- c as Button,
23
- v as Colflex,
24
- C as Flexitem,
25
- n as Form,
22
+ n as Button,
23
+ b as Colflex,
24
+ y as Flexitem,
25
+ p as Form,
26
26
  h as LovTable,
27
- m as Modal,
28
- O as Pagetable,
29
- T as Querytable,
30
- F as Rowflex,
31
- b as Space,
32
- L as Tabs,
27
+ T as Modal,
28
+ L as Pagetable,
29
+ O as Querytable,
30
+ v as Rowflex,
31
+ c as Space,
32
+ F as Tabs,
33
33
  k as formContextKey,
34
34
  f as install,
35
35
  P as lovContextKey,
36
36
  B as useLov,
37
- p as useOModal
37
+ m as useOModal
38
38
  };
39
39
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,27 @@
1
+ import o from "./components/Button/index.js";
2
+ import { S as e } from "./index-BbsXWo7C.js";
3
+ import { Colflex as r, Flexitem as t, Rowflex as m } from "./components/Flex/index.js";
4
+ import i from "./components/Tabs/index.js";
5
+ import p from "./components/Pagetable/index.js";
6
+ import f from "./components/Querytable/index.js";
7
+ import l from "./components/Modal/index.js";
8
+ import n from "./components/Form/index.js";
9
+ import a from "./components/LovTable/index.js";
10
+ const g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11
+ __proto__: null,
12
+ Button: o,
13
+ Colflex: r,
14
+ Flexitem: t,
15
+ Form: n,
16
+ LovTable: a,
17
+ Modal: l,
18
+ Pagetable: p,
19
+ Querytable: f,
20
+ Rowflex: m,
21
+ Space: e,
22
+ Tabs: i
23
+ }, Symbol.toStringTag, { value: "Module" }));
24
+ export {
25
+ g as c
26
+ };
27
+ //# sourceMappingURL=components-8oZ2kpUC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-8oZ2kpUC.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";:root{--orion-flex-gutter: 8px;--orion-space-gutter: 8px}.orion-space{display:inline-flex;align-items:center;gap:var(--orion-space-gutter)}.orion-space.vertical{display:flex;flex-direction:column;align-items:center;gap:var(--orion-space-gutter)}.orion-space.vertical .orion-space-item{width:100%}.orion-flex{display:flex;outline:none}.orion-flex-row{flex-direction:row;width:100%;overflow:auto}.orion-flex-justify-start{justify-content:start}.orion-flex-column{width:100%;flex-direction:column;overflow:auto}.orion-flex>.orion-flexitem{overflow:auto;outline:none}.orion-flex>.orion-flexitem-auto{flex:0 0 auto}.orion-flex>.orion-flexitem-fixed{flex:none}.orion-flex>.orion-flexitem-fill{flex:1 1 0px}.orion-pagetbale{min-height:120px;height:100%;display:flex;flex-direction:column;gap:4px}.orion-pagetbale>.pagetable-wrapper{flex:1 1 0px;overflow:auto}.orion-pagetbale>.pagination-wrapper{flex:0 0 auto}.orion-pagetbale .cell-numbercolumn{text-align:right}.orion-pagetbale .cell-linkcolumn{color:#1296db;cursor:pointer}.orion-querytable{min-height:120px;height:100%;overflow:auto}.orion-querytable .cell-numbercolumn{text-align:right}.orion-querytable .cell-linkcolumn{color:#1296db;cursor:pointer}.orion-tabs{--el-tabs-header-height: 40px;display:flex}.orion-tabs__header{align-items:center;display:flex;justify-content:space-between;margin:0 0 15px;padding:0;position:relative}.orion-tabs__header-vertical{flex-direction:column}.orion-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.orion-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.orion-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.orion-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.orion-tabs__new-tab:hover{color:var(--el-color-primary)}.orion-tabs__new-tab-vertical{margin-left:0}.orion-tabs__nav-wrap{flex:1 auto;margin-bottom:-1px;overflow:hidden;position:relative}.orion-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.orion-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.orion-tabs__nav-scroll{overflow:hidden}.orion-tabs__nav-next,.orion-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.orion-tabs__nav-next{right:0}.orion-tabs__nav-prev{left:0}.orion-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.orion-tabs__nav.is-stretch{display:flex;min-width:100%}.orion-tabs__nav.is-stretch>*{flex:1;text-align:center}.orion-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.orion-tabs__item:focus,.orion-tabs__item:focus:active{outline:none}.orion-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.orion-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.orion-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.orion-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.orion-tabs__item.is-active,.orion-tabs__item:hover{color:var(--el-color-primary)}.orion-tabs__item:hover{cursor:pointer}.orion-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.orion-tabs__content{flex-grow:1;overflow:hidden;position:relative}.orion-tabs--bottom>.orion-tabs__header .orion-tabs__item:nth-child(2),.orion-tabs--top>.orion-tabs__header .orion-tabs__item:nth-child(2){padding-left:0}.orion-tabs--bottom>.orion-tabs__header .orion-tabs__item:last-child,.orion-tabs--top>.orion-tabs__header .orion-tabs__item:last-child{padding-right:0}.orion-tabs--bottom.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:nth-child(2),.orion-tabs--bottom.orion-tabs--card>.orion-tabs__header .orion-tabs__item:nth-child(2),.orion-tabs--top.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:nth-child(2),.orion-tabs--top.orion-tabs--card>.orion-tabs__header .orion-tabs__item:nth-child(2){padding-left:20px}.orion-tabs--bottom.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:last-child,.orion-tabs--bottom.orion-tabs--card>.orion-tabs__header .orion-tabs__item:last-child,.orion-tabs--top.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:last-child,.orion-tabs--top.orion-tabs--card>.orion-tabs__header .orion-tabs__item:last-child{padding-right:20px}.orion-tabs--card>.orion-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.orion-tabs--card>.orion-tabs__header .orion-tabs__nav-wrap:after{content:none}.orion-tabs--card>.orion-tabs__header .orion-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.orion-tabs--card>.orion-tabs__header .orion-tabs__active-bar{display:none}.orion-tabs--card>.orion-tabs__header .orion-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.orion-tabs--card>.orion-tabs__header .orion-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.orion-tabs--card>.orion-tabs__header .orion-tabs__item:first-child{border-left:none}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-closable:hover .is-icon-close{width:14px}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-active.is-closable .is-icon-close{width:14px}.orion-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.orion-tabs--border-card>.orion-tabs__content{padding:15px}.orion-tabs--border-card>.orion-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__nav-wrap:after{content:none}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item+.orion-tabs__item,.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:first-child{margin-left:-1px}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.orion-tabs--border-card>.orion-tabs__header .is-scrollable .orion-tabs__item:first-child{margin-left:0}.orion-tabs--bottom{flex-direction:column}.orion-tabs--bottom .orion-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.orion-tabs--bottom.orion-tabs--border-card .orion-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.orion-tabs--bottom.orion-tabs--border-card .orion-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.orion-tabs--bottom.orion-tabs--border-card .orion-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.orion-tabs--bottom.orion-tabs--border-card .orion-tabs__item.is-bottom{margin:0 -1px -1px}.orion-tabs--left,.orion-tabs--right{overflow:hidden}.orion-tabs--left .orion-tabs__header.is-left,.orion-tabs--left .orion-tabs__header.is-right,.orion-tabs--left .orion-tabs__nav-scroll,.orion-tabs--left .orion-tabs__nav-wrap.is-left,.orion-tabs--left .orion-tabs__nav-wrap.is-right,.orion-tabs--right .orion-tabs__header.is-left,.orion-tabs--right .orion-tabs__header.is-right,.orion-tabs--right .orion-tabs__nav-scroll,.orion-tabs--right .orion-tabs__nav-wrap.is-left,.orion-tabs--right .orion-tabs__nav-wrap.is-right{height:100%}.orion-tabs--left .orion-tabs__active-bar.is-left,.orion-tabs--left .orion-tabs__active-bar.is-right,.orion-tabs--right .orion-tabs__active-bar.is-left,.orion-tabs--right .orion-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.orion-tabs--left .orion-tabs__nav-wrap.is-left,.orion-tabs--left .orion-tabs__nav-wrap.is-right,.orion-tabs--right .orion-tabs__nav-wrap.is-left,.orion-tabs--right .orion-tabs__nav-wrap.is-right{margin-bottom:0}.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next,.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next i,.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev i,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next i,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev i,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next i,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev i,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next i,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev i{transform:rotate(90deg)}.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev{left:auto;top:0}.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next{bottom:0;right:auto}.orion-tabs--left .orion-tabs__nav-wrap.is-left.is-scrollable,.orion-tabs--left .orion-tabs__nav-wrap.is-right.is-scrollable,.orion-tabs--right .orion-tabs__nav-wrap.is-left.is-scrollable,.orion-tabs--right .orion-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.orion-tabs--left .orion-tabs__nav-wrap.is-left:after,.orion-tabs--left .orion-tabs__nav-wrap.is-right:after,.orion-tabs--right .orion-tabs__nav-wrap.is-left:after,.orion-tabs--right .orion-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.orion-tabs--left .orion-tabs__nav.is-left,.orion-tabs--left .orion-tabs__nav.is-right,.orion-tabs--right .orion-tabs__nav.is-left,.orion-tabs--right .orion-tabs__nav.is-right{flex-direction:column}.orion-tabs--left .orion-tabs__item.is-left,.orion-tabs--right .orion-tabs__item.is-left{justify-content:flex-end}.orion-tabs--left .orion-tabs__item.is-right,.orion-tabs--right .orion-tabs__item.is-right{justify-content:flex-start}.orion-tabs--left{flex-direction:row-reverse}.orion-tabs--left .orion-tabs__header.is-left{margin-bottom:0;margin-right:10px}.orion-tabs--left .orion-tabs__nav-wrap.is-left{margin-right:-1px}.orion-tabs--left .orion-tabs__active-bar.is-left,.orion-tabs--left .orion-tabs__nav-wrap.is-left:after{left:auto;right:0}.orion-tabs--left .orion-tabs__item.is-left{text-align:right}.orion-tabs--left.orion-tabs--card .orion-tabs__active-bar.is-left{display:none}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left.is-active:first-child{border-top:none}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left.is-active:last-child{border-bottom:none}.orion-tabs--left.orion-tabs--card .orion-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.orion-tabs--left.orion-tabs--card .orion-tabs__new-tab{float:none}.orion-tabs--left.orion-tabs--border-card .orion-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.orion-tabs--left.orion-tabs--border-card .orion-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.orion-tabs--left.orion-tabs--border-card .orion-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.orion-tabs--right .orion-tabs__header.is-right{margin-bottom:0;margin-left:10px}.orion-tabs--right .orion-tabs__nav-wrap.is-right{margin-left:-1px}.orion-tabs--right .orion-tabs__nav-wrap.is-right:after{left:0;right:auto}.orion-tabs--right .orion-tabs__active-bar.is-right{left:0}.orion-tabs--right.orion-tabs--card .orion-tabs__active-bar.is-right{display:none}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right.is-active:first-child{border-top:none}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right.is-active:last-child{border-bottom:none}.orion-tabs--right.orion-tabs--card .orion-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.orion-tabs--right.orion-tabs--border-card .orion-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.orion-tabs--right.orion-tabs--border-card .orion-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.orion-tabs--right.orion-tabs--border-card .orion-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.orion-tabs--top{flex-direction:column-reverse}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.orion-tabs{height:100%}.orion-tabs>.orion-tabs__content>.orion-tab-pane{height:100%;overflow:auto}.orion-tabs__extra-content-left,.orion-tabs__extra-content-right{flex:none}.orion-rich-text-editor—wrapper{height:100%;display:flex;flex-direction:column;box-sizing:border-box}.orion-rich-text-editor—wrapper>.orion-rich-text-editor-container{flex:1 1 0px}
1
+ @charset "UTF-8";.orion-modal-locator[data-v-0fd5a1a9]{width:100%;height:100%;overflow:auto;box-sizing:border-box;position:relative}.orion-modal-locator[data-v-0fd5a1a9]>.el-overlay{position:absolute}.orion-modal-locator[data-v-0fd5a1a9]>.el-overlay>.el-overlay-dialog{position:absolute}:root{--orion-flex-gutter: 8px;--orion-space-gutter: 8px}.orion-space{display:inline-flex;align-items:center;gap:var(--orion-space-gutter)}.orion-space.vertical{display:flex;flex-direction:column;align-items:center;gap:var(--orion-space-gutter)}.orion-space.vertical .orion-space-item{width:100%}.orion-flex{display:flex;outline:none}.orion-flex-row{flex-direction:row;width:100%;overflow:auto}.orion-flex-justify-start{justify-content:start}.orion-flex-column{width:100%;flex-direction:column;overflow:auto}.orion-flex>.orion-flexitem{overflow:auto;outline:none}.orion-flex>.orion-flexitem-auto{flex:0 0 auto}.orion-flex>.orion-flexitem-fixed{flex:none}.orion-flex>.orion-flexitem-fill{flex:1 1 0px}.orion-pagetbale{min-height:120px;height:100%;display:flex;flex-direction:column;gap:4px}.orion-pagetbale>.pagetable-wrapper{flex:1 1 0px;overflow:auto}.orion-pagetbale>.pagination-wrapper{flex:0 0 auto}.orion-pagetbale .cell-numbercolumn{text-align:right}.orion-pagetbale .cell-linkcolumn{color:#1296db;cursor:pointer}.orion-querytable{min-height:120px;height:100%;overflow:auto}.orion-querytable .cell-numbercolumn{text-align:right}.orion-querytable .cell-linkcolumn{color:#1296db;cursor:pointer}.orion-tabs{--el-tabs-header-height: 40px;display:flex}.orion-tabs__header{align-items:center;display:flex;justify-content:space-between;margin:0 0 15px;padding:0;position:relative}.orion-tabs__header-vertical{flex-direction:column}.orion-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.orion-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.orion-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.orion-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.orion-tabs__new-tab:hover{color:var(--el-color-primary)}.orion-tabs__new-tab-vertical{margin-left:0}.orion-tabs__nav-wrap{flex:1 auto;margin-bottom:-1px;overflow:hidden;position:relative}.orion-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.orion-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.orion-tabs__nav-scroll{overflow:hidden}.orion-tabs__nav-next,.orion-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.orion-tabs__nav-next{right:0}.orion-tabs__nav-prev{left:0}.orion-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.orion-tabs__nav.is-stretch{display:flex;min-width:100%}.orion-tabs__nav.is-stretch>*{flex:1;text-align:center}.orion-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.orion-tabs__item:focus,.orion-tabs__item:focus:active{outline:none}.orion-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.orion-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.orion-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.orion-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.orion-tabs__item.is-active,.orion-tabs__item:hover{color:var(--el-color-primary)}.orion-tabs__item:hover{cursor:pointer}.orion-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.orion-tabs__content{flex-grow:1;overflow:hidden;position:relative}.orion-tabs--bottom>.orion-tabs__header .orion-tabs__item:nth-child(2),.orion-tabs--top>.orion-tabs__header .orion-tabs__item:nth-child(2){padding-left:0}.orion-tabs--bottom>.orion-tabs__header .orion-tabs__item:last-child,.orion-tabs--top>.orion-tabs__header .orion-tabs__item:last-child{padding-right:0}.orion-tabs--bottom.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:nth-child(2),.orion-tabs--bottom.orion-tabs--card>.orion-tabs__header .orion-tabs__item:nth-child(2),.orion-tabs--top.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:nth-child(2),.orion-tabs--top.orion-tabs--card>.orion-tabs__header .orion-tabs__item:nth-child(2){padding-left:20px}.orion-tabs--bottom.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:last-child,.orion-tabs--bottom.orion-tabs--card>.orion-tabs__header .orion-tabs__item:last-child,.orion-tabs--top.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:last-child,.orion-tabs--top.orion-tabs--card>.orion-tabs__header .orion-tabs__item:last-child{padding-right:20px}.orion-tabs--card>.orion-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.orion-tabs--card>.orion-tabs__header .orion-tabs__nav-wrap:after{content:none}.orion-tabs--card>.orion-tabs__header .orion-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.orion-tabs--card>.orion-tabs__header .orion-tabs__active-bar{display:none}.orion-tabs--card>.orion-tabs__header .orion-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.orion-tabs--card>.orion-tabs__header .orion-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.orion-tabs--card>.orion-tabs__header .orion-tabs__item:first-child{border-left:none}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-closable:hover .is-icon-close{width:14px}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.orion-tabs--card>.orion-tabs__header .orion-tabs__item.is-active.is-closable .is-icon-close{width:14px}.orion-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.orion-tabs--border-card>.orion-tabs__content{padding:15px}.orion-tabs--border-card>.orion-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__nav-wrap:after{content:none}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item+.orion-tabs__item,.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:first-child{margin-left:-1px}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.orion-tabs--border-card>.orion-tabs__header .orion-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.orion-tabs--border-card>.orion-tabs__header .is-scrollable .orion-tabs__item:first-child{margin-left:0}.orion-tabs--bottom{flex-direction:column}.orion-tabs--bottom .orion-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.orion-tabs--bottom.orion-tabs--border-card .orion-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.orion-tabs--bottom.orion-tabs--border-card .orion-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.orion-tabs--bottom.orion-tabs--border-card .orion-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.orion-tabs--bottom.orion-tabs--border-card .orion-tabs__item.is-bottom{margin:0 -1px -1px}.orion-tabs--left,.orion-tabs--right{overflow:hidden}.orion-tabs--left .orion-tabs__header.is-left,.orion-tabs--left .orion-tabs__header.is-right,.orion-tabs--left .orion-tabs__nav-scroll,.orion-tabs--left .orion-tabs__nav-wrap.is-left,.orion-tabs--left .orion-tabs__nav-wrap.is-right,.orion-tabs--right .orion-tabs__header.is-left,.orion-tabs--right .orion-tabs__header.is-right,.orion-tabs--right .orion-tabs__nav-scroll,.orion-tabs--right .orion-tabs__nav-wrap.is-left,.orion-tabs--right .orion-tabs__nav-wrap.is-right{height:100%}.orion-tabs--left .orion-tabs__active-bar.is-left,.orion-tabs--left .orion-tabs__active-bar.is-right,.orion-tabs--right .orion-tabs__active-bar.is-left,.orion-tabs--right .orion-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.orion-tabs--left .orion-tabs__nav-wrap.is-left,.orion-tabs--left .orion-tabs__nav-wrap.is-right,.orion-tabs--right .orion-tabs__nav-wrap.is-left,.orion-tabs--right .orion-tabs__nav-wrap.is-right{margin-bottom:0}.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next,.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next i,.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev i,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next i,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev i,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next i,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev i,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next i,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev i{transform:rotate(90deg)}.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-prev,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-prev{left:auto;top:0}.orion-tabs--left .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next,.orion-tabs--left .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next,.orion-tabs--right .orion-tabs__nav-wrap.is-left>.orion-tabs__nav-next,.orion-tabs--right .orion-tabs__nav-wrap.is-right>.orion-tabs__nav-next{bottom:0;right:auto}.orion-tabs--left .orion-tabs__nav-wrap.is-left.is-scrollable,.orion-tabs--left .orion-tabs__nav-wrap.is-right.is-scrollable,.orion-tabs--right .orion-tabs__nav-wrap.is-left.is-scrollable,.orion-tabs--right .orion-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.orion-tabs--left .orion-tabs__nav-wrap.is-left:after,.orion-tabs--left .orion-tabs__nav-wrap.is-right:after,.orion-tabs--right .orion-tabs__nav-wrap.is-left:after,.orion-tabs--right .orion-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.orion-tabs--left .orion-tabs__nav.is-left,.orion-tabs--left .orion-tabs__nav.is-right,.orion-tabs--right .orion-tabs__nav.is-left,.orion-tabs--right .orion-tabs__nav.is-right{flex-direction:column}.orion-tabs--left .orion-tabs__item.is-left,.orion-tabs--right .orion-tabs__item.is-left{justify-content:flex-end}.orion-tabs--left .orion-tabs__item.is-right,.orion-tabs--right .orion-tabs__item.is-right{justify-content:flex-start}.orion-tabs--left{flex-direction:row-reverse}.orion-tabs--left .orion-tabs__header.is-left{margin-bottom:0;margin-right:10px}.orion-tabs--left .orion-tabs__nav-wrap.is-left{margin-right:-1px}.orion-tabs--left .orion-tabs__active-bar.is-left,.orion-tabs--left .orion-tabs__nav-wrap.is-left:after{left:auto;right:0}.orion-tabs--left .orion-tabs__item.is-left{text-align:right}.orion-tabs--left.orion-tabs--card .orion-tabs__active-bar.is-left{display:none}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left.is-active:first-child{border-top:none}.orion-tabs--left.orion-tabs--card .orion-tabs__item.is-left.is-active:last-child{border-bottom:none}.orion-tabs--left.orion-tabs--card .orion-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.orion-tabs--left.orion-tabs--card .orion-tabs__new-tab{float:none}.orion-tabs--left.orion-tabs--border-card .orion-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.orion-tabs--left.orion-tabs--border-card .orion-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.orion-tabs--left.orion-tabs--border-card .orion-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.orion-tabs--right .orion-tabs__header.is-right{margin-bottom:0;margin-left:10px}.orion-tabs--right .orion-tabs__nav-wrap.is-right{margin-left:-1px}.orion-tabs--right .orion-tabs__nav-wrap.is-right:after{left:0;right:auto}.orion-tabs--right .orion-tabs__active-bar.is-right{left:0}.orion-tabs--right.orion-tabs--card .orion-tabs__active-bar.is-right{display:none}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right.is-active:first-child{border-top:none}.orion-tabs--right.orion-tabs--card .orion-tabs__item.is-right.is-active:last-child{border-bottom:none}.orion-tabs--right.orion-tabs--card .orion-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.orion-tabs--right.orion-tabs--border-card .orion-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.orion-tabs--right.orion-tabs--border-card .orion-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.orion-tabs--right.orion-tabs--border-card .orion-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.orion-tabs--top{flex-direction:column-reverse}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.orion-tabs{height:100%}.orion-tabs>.orion-tabs__content>.orion-tab-pane{height:100%;overflow:auto}.orion-tabs__extra-content-left,.orion-tabs__extra-content-right{flex:none}.orion-rich-text-editor—wrapper{height:100%;display:flex;flex-direction:column;box-sizing:border-box}.orion-rich-text-editor—wrapper>.orion-rich-text-editor-container{flex:1 1 0px}
package/dist/index.js CHANGED
@@ -4,19 +4,19 @@ 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 i } from "./components/Button/index.js";
7
+ import { default as b } from "./components/Button/index.js";
8
8
  import { S as v } from "./index-BbsXWo7C.js";
9
9
  import { Colflex as C, Flexitem as T, Rowflex as F } from "./components/Flex/index.js";
10
10
  import { default as L } from "./components/Tabs/index.js";
11
11
  import { default as O } from "./components/Pagetable/index.js";
12
12
  import { default as c } from "./components/Querytable/index.js";
13
- import { i as h } from "./components-J6-qau6Y.js";
13
+ import { default as h } from "./components/Modal/index.js";
14
14
  import { default as B } from "./components/Form/index.js";
15
15
  import { default as P } from "./components/LovTable/index.js";
16
16
  import { formContextKey as R } from "./components/Form/Form.js";
17
17
  import { lovContextKey as k } from "./components/Form/LovInput/LovInput.js";
18
18
  export {
19
- i as Button,
19
+ b as Button,
20
20
  C as Colflex,
21
21
  T as Flexitem,
22
22
  B as Form,
@@ -1,2 +1,2 @@
1
- declare const _default: "0.1.29";
1
+ declare const _default: "0.1.30";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "0.1.29";
1
+ const e = "0.1.30";
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.29';"],"names":["version"],"mappings":"AAAA,MAAAA,IAAe;"}
1
+ {"version":3,"file":"version.js","sources":["../../src/version/version.ts"],"sourcesContent":["export default '0.1.30';"],"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.29",
3
+ "version": "0.1.30",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -1,73 +0,0 @@
1
- import h from "./components/Button/index.js";
2
- import { S as w } from "./index-BbsXWo7C.js";
3
- import { Colflex as g, Flexitem as C, Rowflex as b } from "./components/Flex/index.js";
4
- import x from "./components/Tabs/index.js";
5
- import _ from "./components/Pagetable/index.js";
6
- import P from "./components/Querytable/index.js";
7
- import { defineComponent as y, ref as o, shallowRef as M, provide as $, createVNode as f, Fragment as O } from "vue";
8
- import { ElDialog as S } from "element-plus";
9
- import "lodash-es";
10
- import { addUnit as T } 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 E from "./components/LovTable/index.js";
14
- const R = /* @__PURE__ */ y({
15
- name: "OModal",
16
- setup(k, {
17
- slots: q,
18
- attrs: z,
19
- emit: B,
20
- expose: v
21
- }) {
22
- const l = o(!1), n = o(), a = M(), t = o(), r = o(), u = o(), s = o(), i = o(!0), d = o();
23
- v({
24
- open: async (e) => (l.value = !0, n.value = e.title, a.value = e.content, e.contentProps ? t.value = e.contentProps : t.value = {}, e.width && (r.value = e.width), e.height && (u.value = T(e.height)), e.showClose != null && e.showClose == !1 && (i.value = !1), document.querySelector(".orion-modal-locator") && (d.value = ".orion-modal-locator"), new Promise((p, I) => {
25
- s.value = p;
26
- }))
27
- });
28
- const m = (e) => {
29
- const c = s.value;
30
- l.value = !1, n.value = void 0, a.value = void 0, t.value = void 0, r.value = void 0, u.value = void 0, s.value = void 0, i.value = !0, d.value = void 0, c && c(e);
31
- };
32
- return $("$$Modal", {
33
- close: m
34
- }), () => {
35
- const e = a.value;
36
- return l.value ? f(S, {
37
- title: n.value,
38
- width: r.value,
39
- modelValue: l.value,
40
- beforeClose: m,
41
- draggable: !0,
42
- closeOnClickModal: !1,
43
- closeOnPressEscape: !1,
44
- showClose: i.value,
45
- alignCenter: !0,
46
- style: {
47
- height: u.value
48
- },
49
- appendTo: d.value
50
- }, {
51
- default: () => [f(e, t.value, null)]
52
- }) : f(O, null, null);
53
- };
54
- }
55
- }), V = j(R), ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
56
- __proto__: null,
57
- Button: h,
58
- Colflex: g,
59
- Flexitem: C,
60
- Form: F,
61
- LovTable: E,
62
- Modal: V,
63
- Pagetable: _,
64
- Querytable: P,
65
- Rowflex: b,
66
- Space: w,
67
- Tabs: x
68
- }, Symbol.toStringTag, { value: "Module" }));
69
- export {
70
- ee as c,
71
- V as i
72
- };
73
- //# sourceMappingURL=components-J6-qau6Y.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components-J6-qau6Y.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 const appendTo = ref<string>()\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 (document.querySelector('.orion-modal-locator')) {\r\n appendTo.value = '.orion-modal-locator'\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('$$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 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 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","appendTo","open","options","value","addUnit","undefined","document","querySelector","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,GACpBS,IAAWT;AA8BjBF,IAAAA,EAAO;AAAA,MACLY,MA7BqE,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,KAEhBG,SAASC,cAAc,sBAAsB,MAC/CP,EAASG,QAAQ,yBAGH,IAAIK,QAA6B,CAACC,GAASC,MAAW;AACpEZ,QAAAA,EAAUK,QAAQM;AAAAA,MACpB,CAAC;AAAA,IAMH,CAAC;AAED,UAAME,IAAkDT,CAAAA,MAAY;AAClE,YAAMO,IAAUX,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,QAEjBI,KAAWA,EAAQP,CAAO;AAAA;AAE5BU,WAAAA,EAAQ,WAAW;AAAA,MAAEC,OAAOF;AAAAA,IAAO,CAAC,GAE7B,MAAM;AACX,YAAMG,IAAWrB,EAAQU;AACzB,aAAOb,EAAKa,QAAKY,EAAAC,GAAA;AAAA,QAAA,OAENxB,EAAMW;AAAAA,QAAK,OACXP,EAAMO;AAAAA,QAAK,YACNb,EAAKa;AAAAA,QAAK,aACTQ;AAAAA,QAAM,WACR;AAAA,QAAI,mBACI;AAAA,QAAK,oBACJ;AAAA,QAAK,WACdZ,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,GAEcC,IAAAA,EAA8BtC,CAAK;;;;;;;;;;;;;;"}