orion-design 0.1.30 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -5
- package/dist/Throne/index.js +30 -14
- package/dist/Throne/index.js.map +1 -1
- package/dist/_commonjsHelpers-DWwsNxpa.js +9 -0
- package/dist/_commonjsHelpers-DWwsNxpa.js.map +1 -0
- package/dist/components/Button/index.js +40 -33
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Flex/index.js +122 -89
- package/dist/components/Flex/index.js.map +1 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.js +2 -2
- package/dist/components/Form/LovInput/LovInput.js.map +1 -1
- package/dist/components/Form/LovInput/hooks/useLov.js +5 -5
- package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -1
- package/dist/components/Form/LovInput/index.js +4 -4
- package/dist/components/Form/hooks/FormItemValidateTrigger.js +2 -2
- package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -1
- package/dist/components/Form/hooks/index.js +128 -66
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.js +836 -656
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Form/utils/index.js +30 -18
- package/dist/components/Form/utils/index.js.map +1 -1
- package/dist/components/LovTable/index.js +179 -105
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/Modal/index.js +111 -56
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/types.js +4 -3
- package/dist/components/Modal/types.js.map +1 -1
- package/dist/components/Modal/useModal.js +5 -5
- package/dist/components/Modal/useModal.js.map +1 -1
- package/dist/components/Pagetable/hooks/useColumns.js +88 -80
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/index.js +687 -542
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Pagetable/utils/index.js +92 -54
- package/dist/components/Pagetable/utils/index.js.map +1 -1
- package/dist/components/Querytable/hooks/useColumns.js +82 -74
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.js +579 -469
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Querytable/utils/index.js +92 -54
- package/dist/components/Querytable/utils/index.js.map +1 -1
- package/dist/components/RichTextEditor/index.js +100 -74
- package/dist/components/RichTextEditor/index.js.map +1 -1
- package/dist/components/Tabs/constants.js +2 -2
- package/dist/components/Tabs/constants.js.map +1 -1
- package/dist/components/Tabs/index.js +603 -358
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Tabs/tab-bar.js +6 -6
- package/dist/components/Tabs/tab-bar.js.map +1 -1
- package/dist/components/Tabs/tab-pane.js +3 -3
- package/dist/components/Tabs/tab-pane.js.map +1 -1
- package/dist/components/_constants/aria.js +2 -2
- package/dist/components/_constants/aria.js.map +1 -1
- package/dist/components/_constants/event.js +6 -4
- package/dist/components/_constants/event.js.map +1 -1
- package/dist/components/_constants/index.js +6 -6
- package/dist/components/_hooks/index.js +7 -7
- package/dist/components/_hooks/use-namespace/index.js +74 -39
- package/dist/components/_hooks/use-namespace/index.js.map +1 -1
- package/dist/components/_hooks/use-ordered-children/index.js +29 -19
- package/dist/components/_hooks/use-ordered-children/index.js.map +1 -1
- package/dist/components/_util/arrays.js +9 -5
- package/dist/components/_util/arrays.js.map +1 -1
- package/dist/components/_util/browser.js +6 -6
- package/dist/components/_util/browser.js.map +1 -1
- package/dist/components/_util/classNames.js +22 -17
- package/dist/components/_util/classNames.js.map +1 -1
- package/dist/components/_util/dom/aria.js +74 -39
- package/dist/components/_util/dom/aria.js.map +1 -1
- package/dist/components/_util/dom/element.js +9 -8
- package/dist/components/_util/dom/element.js.map +1 -1
- package/dist/components/_util/dom/event.js +14 -7
- package/dist/components/_util/dom/event.js.map +1 -1
- package/dist/components/_util/dom/index.js +36 -36
- package/dist/components/_util/dom/position.js +49 -25
- package/dist/components/_util/dom/position.js.map +1 -1
- package/dist/components/_util/dom/scroll.js +103 -61
- package/dist/components/_util/dom/scroll.js.map +1 -1
- package/dist/components/_util/dom/style.js +65 -50
- package/dist/components/_util/dom/style.js.map +1 -1
- package/dist/components/_util/easings.js +8 -4
- package/dist/components/_util/easings.js.map +1 -1
- package/dist/components/_util/error.js +12 -11
- package/dist/components/_util/error.js.map +1 -1
- package/dist/components/_util/functions.js +3 -3
- package/dist/components/_util/i18n.js +2 -2
- package/dist/components/_util/i18n.js.map +1 -1
- package/dist/components/_util/index.js +137 -137
- package/dist/components/_util/isValid.js +4 -2
- package/dist/components/_util/isValid.js.map +1 -1
- package/dist/components/_util/objects.js +18 -14
- package/dist/components/_util/objects.js.map +1 -1
- package/dist/components/_util/props-util/index.js +46 -20
- package/dist/components/_util/props-util/index.js.map +1 -1
- package/dist/components/_util/props-util/initDefaultProps.js +18 -10
- package/dist/components/_util/props-util/initDefaultProps.js.map +1 -1
- package/dist/components/_util/raf.js +5 -4
- package/dist/components/_util/raf.js.map +1 -1
- package/dist/components/_util/rand.js +4 -3
- package/dist/components/_util/rand.js.map +1 -1
- package/dist/components/_util/strings.js +9 -8
- package/dist/components/_util/strings.js.map +1 -1
- package/dist/components/_util/throttleByRaf.js +16 -10
- package/dist/components/_util/throttleByRaf.js.map +1 -1
- package/dist/components/_util/type.js +41 -38
- package/dist/components/_util/type.js.map +1 -1
- package/dist/components/_util/types.js +41 -22
- package/dist/components/_util/types.js.map +1 -1
- package/dist/components/_util/typescript.js +2 -2
- package/dist/components/_util/typescript.js.map +1 -1
- package/dist/components/_util/util.js +85 -43
- package/dist/components/_util/util.js.map +1 -1
- package/dist/components/_util/vue/global-node.js +27 -15
- package/dist/components/_util/vue/global-node.js.map +1 -1
- package/dist/components/_util/vue/icon.js +29 -25
- package/dist/components/_util/vue/icon.js.map +1 -1
- package/dist/components/_util/vue/index.js +41 -41
- package/dist/components/_util/vue/install.js +35 -18
- package/dist/components/_util/vue/install.js.map +1 -1
- package/dist/components/_util/vue/props/index.js +6 -6
- package/dist/components/_util/vue/props/runtime.js +46 -30
- package/dist/components/_util/vue/props/runtime.js.map +1 -1
- package/dist/components/_util/vue/refs.js +12 -6
- package/dist/components/_util/vue/refs.js.map +1 -1
- package/dist/components/_util/vue/size.js +5 -3
- package/dist/components/_util/vue/size.js.map +1 -1
- package/dist/components/_util/vue/validator.js +5 -4
- package/dist/components/_util/vue/validator.js.map +1 -1
- package/dist/components/_util/vue/vnode.js +100 -54
- package/dist/components/_util/vue/vnode.js.map +1 -1
- package/dist/components/_util/vue-types/index.js +231 -220
- package/dist/components/_util/vue-types/index.js.map +1 -1
- package/dist/components/components.js +20 -20
- package/dist/components/index.js +38 -35
- package/dist/components/index.js.map +1 -1
- package/dist/components-B3d9m_tn.js +27 -0
- package/dist/components-B3d9m_tn.js.map +1 -0
- package/dist/error/OrionError.js +8 -4
- package/dist/error/OrionError.js.map +1 -1
- package/dist/functions-BeMkokbY.js +63 -0
- package/dist/functions-BeMkokbY.js.map +1 -0
- package/dist/index-BOKLZnqH.js +54 -0
- package/dist/index-BOKLZnqH.js.map +1 -0
- package/dist/index-D1m0KTpK.js +69 -0
- package/dist/index-D1m0KTpK.js.map +1 -0
- package/dist/index-DR5ZP7mD.js +160 -0
- package/dist/index-DR5ZP7mD.js.map +1 -0
- package/dist/index-DkwIULcN.js +200 -0
- package/dist/index-DkwIULcN.js.map +1 -0
- package/dist/index.css +797 -1
- package/dist/index.js +36 -36
- package/dist/print/LodopFuncs.js +101 -43
- package/dist/print/LodopFuncs.js.map +1 -1
- package/dist/print/index.js +200 -108
- package/dist/print/index.js.map +1 -1
- package/dist/request/ErrorHandlerChain.js +17 -14
- package/dist/request/ErrorHandlerChain.js.map +1 -1
- package/dist/request/RequestFilterChain.js +16 -13
- package/dist/request/RequestFilterChain.js.map +1 -1
- package/dist/request/ResponseParserChain.js +17 -14
- package/dist/request/ResponseParserChain.js.map +1 -1
- package/dist/request/disivion/DateSerializer.js +47 -22
- package/dist/request/disivion/DateSerializer.js.map +1 -1
- package/dist/request/disivion/DivisionErrorHandler.js +40 -25
- package/dist/request/disivion/DivisionErrorHandler.js.map +1 -1
- package/dist/request/disivion/DivisionResponseParser.js +16 -10
- package/dist/request/disivion/DivisionResponseParser.js.map +1 -1
- package/dist/request/disivion/index.js +305 -201
- package/dist/request/disivion/index.js.map +1 -1
- package/dist/request/error/BizExceptionResponseError.js +11 -5
- package/dist/request/error/BizExceptionResponseError.js.map +1 -1
- package/dist/request/error/ExceptionResponseError.js +11 -5
- package/dist/request/error/ExceptionResponseError.js.map +1 -1
- package/dist/request/error/ResponseError.js +9 -4
- package/dist/request/error/ResponseError.js.map +1 -1
- package/dist/request/error/SessionExceptionResponseError.js +11 -5
- package/dist/request/error/SessionExceptionResponseError.js.map +1 -1
- package/dist/request/index.js +11 -11
- package/dist/utils/DateUtil.js +48 -33
- package/dist/utils/DateUtil.js.map +1 -1
- package/dist/utils/NumberUtil.js +6 -6
- package/dist/utils/NumberUtil.js.map +1 -1
- package/dist/utils/cloneDeep.js +2 -2
- package/dist/utils/delay.js +3 -3
- package/dist/utils/delay.js.map +1 -1
- package/dist/utils/functions.js +3 -3
- package/dist/utils/index.js +12 -12
- package/dist/utils/md5.js +191 -93
- package/dist/utils/md5.js.map +1 -1
- package/dist/utils/uuid.js +35 -25
- package/dist/utils/uuid.js.map +1 -1
- package/dist/version/index.js +2 -2
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +2 -2
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
@@ -1,58 +1,73 @@
|
|
1
|
-
import { isNumber
|
2
|
-
import { c as
|
3
|
-
import { entriesOf
|
4
|
-
import { debugWarn
|
5
|
-
import { i as
|
6
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
1
|
+
import { isNumber, isStringNumber } from "../types.js";
|
2
|
+
import { c as camelize, d as isObject, e as isString } from "../../../functions-BeMkokbY.js";
|
3
|
+
import { entriesOf, keysOf } from "../objects.js";
|
4
|
+
import { debugWarn } from "../error.js";
|
5
|
+
import { i as isClient } from "../../../index-D1m0KTpK.js";
|
6
|
+
const SCOPE = "utils/dom/style";
|
7
|
+
const classNameToArray = (cls = "") => cls.split(" ").filter((item) => !!item.trim());
|
8
|
+
const hasClass = (el, cls) => {
|
9
|
+
if (!el || !cls) return false;
|
10
|
+
if (cls.includes(" ")) throw new Error("className should not contain space.");
|
11
|
+
return el.classList.contains(cls);
|
12
|
+
};
|
13
|
+
const addClass = (el, cls) => {
|
14
|
+
if (!el || !cls.trim()) return;
|
15
|
+
el.classList.add(...classNameToArray(cls));
|
16
|
+
};
|
17
|
+
const removeClass = (el, cls) => {
|
18
|
+
if (!el || !cls.trim()) return;
|
19
|
+
el.classList.remove(...classNameToArray(cls));
|
20
|
+
};
|
21
|
+
const getStyle = (element, styleName) => {
|
22
|
+
var _a;
|
23
|
+
if (!isClient || !element || !styleName) return "";
|
24
|
+
let key = camelize(styleName);
|
25
|
+
if (key === "float") key = "cssFloat";
|
19
26
|
try {
|
20
|
-
const
|
21
|
-
if (
|
22
|
-
const
|
23
|
-
return
|
27
|
+
const style = element.style[key];
|
28
|
+
if (style) return style;
|
29
|
+
const computed = (_a = document.defaultView) == null ? void 0 : _a.getComputedStyle(element, "");
|
30
|
+
return computed ? computed[key] : "";
|
24
31
|
} catch {
|
25
|
-
return
|
32
|
+
return element.style[key];
|
33
|
+
}
|
34
|
+
};
|
35
|
+
const setStyle = (element, styleName, value) => {
|
36
|
+
if (!element || !styleName) return;
|
37
|
+
if (isObject(styleName)) {
|
38
|
+
entriesOf(styleName).forEach(
|
39
|
+
([prop, value2]) => setStyle(element, prop, value2)
|
40
|
+
);
|
41
|
+
} else {
|
42
|
+
const key = camelize(styleName);
|
43
|
+
element.style[key] = value;
|
44
|
+
}
|
45
|
+
};
|
46
|
+
const removeStyle = (element, style) => {
|
47
|
+
if (!element || !style) return;
|
48
|
+
if (isObject(style)) {
|
49
|
+
keysOf(style).forEach((prop) => removeStyle(element, prop));
|
50
|
+
} else {
|
51
|
+
setStyle(element, style, "");
|
26
52
|
}
|
27
|
-
}, a = (r, t, s) => {
|
28
|
-
if (!(!r || !t))
|
29
|
-
if (c(t))
|
30
|
-
p(t).forEach(
|
31
|
-
([i, o]) => a(r, i, o)
|
32
|
-
);
|
33
|
-
else {
|
34
|
-
const i = f(t);
|
35
|
-
r.style[i] = s;
|
36
|
-
}
|
37
|
-
}, S = (r, t) => {
|
38
|
-
!r || !t || (c(t) ? b(t).forEach((s) => S(r, s)) : a(r, t, ""));
|
39
53
|
};
|
40
|
-
function
|
41
|
-
if (!
|
42
|
-
if (
|
43
|
-
return `${
|
44
|
-
if (
|
45
|
-
return
|
46
|
-
|
54
|
+
function addUnit(value, defaultUnit = "px") {
|
55
|
+
if (!value) return "";
|
56
|
+
if (isNumber(value) || isStringNumber(value)) {
|
57
|
+
return `${value}${defaultUnit}`;
|
58
|
+
} else if (isString(value)) {
|
59
|
+
return value;
|
60
|
+
}
|
61
|
+
debugWarn(SCOPE, "binding value must be a string or number");
|
47
62
|
}
|
48
63
|
export {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
64
|
+
addClass,
|
65
|
+
addUnit,
|
66
|
+
classNameToArray,
|
67
|
+
getStyle,
|
68
|
+
hasClass,
|
69
|
+
removeClass,
|
70
|
+
removeStyle,
|
71
|
+
setStyle
|
57
72
|
};
|
58
73
|
//# sourceMappingURL=style.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"style.js","sources":["../../../../src/components/_util/dom/style.ts"],"sourcesContent":["import { isNumber, isObject, isString, isStringNumber } from '../types'\r\nimport { isClient } from '../browser'\r\nimport { camelize } from '../strings'\r\nimport { entriesOf, keysOf } from '../objects'\r\nimport { debugWarn } from '../error'\r\nimport type { CSSProperties } from 'vue'\r\n\r\nconst SCOPE = 'utils/dom/style'\r\n\r\nexport const classNameToArray = (cls = '') =>\r\n cls.split(' ').filter((item) => !!item.trim())\r\n\r\nexport const hasClass = (el: Element, cls: string): boolean => {\r\n if (!el || !cls) return false\r\n if (cls.includes(' ')) throw new Error('className should not contain space.')\r\n return el.classList.contains(cls)\r\n}\r\n\r\nexport const addClass = (el: Element, cls: string) => {\r\n if (!el || !cls.trim()) return\r\n el.classList.add(...classNameToArray(cls))\r\n}\r\n\r\nexport const removeClass = (el: Element, cls: string) => {\r\n if (!el || !cls.trim()) return\r\n el.classList.remove(...classNameToArray(cls))\r\n}\r\n\r\nexport const getStyle = (\r\n element: HTMLElement,\r\n styleName: keyof CSSProperties\r\n): string => {\r\n if (!isClient || !element || !styleName) return ''\r\n\r\n let key = camelize(styleName)\r\n if (key === 'float') key = 'cssFloat'\r\n try {\r\n const style = (element.style as any)[key]\r\n if (style) return style\r\n const computed: any = document.defaultView?.getComputedStyle(element, '')\r\n return computed ? computed[key] : ''\r\n } catch {\r\n return (element.style as any)[key]\r\n }\r\n}\r\n\r\nexport const setStyle = (\r\n element: HTMLElement,\r\n styleName: CSSProperties | keyof CSSProperties,\r\n value?: string | number\r\n) => {\r\n if (!element || !styleName) return\r\n\r\n if (isObject(styleName)) {\r\n entriesOf(styleName).forEach(([prop, value]) =>\r\n setStyle(element, prop, value)\r\n )\r\n } else {\r\n const key: any = camelize(styleName)\r\n element.style[key] = value as any\r\n }\r\n}\r\n\r\nexport const removeStyle = (\r\n element: HTMLElement,\r\n style: CSSProperties | keyof CSSProperties\r\n) => {\r\n if (!element || !style) return\r\n\r\n if (isObject(style)) {\r\n keysOf(style).forEach((prop) => removeStyle(element, prop))\r\n } else {\r\n setStyle(element, style, '')\r\n }\r\n}\r\n\r\nexport function addUnit(value?: string | number, defaultUnit = 'px') {\r\n if (!value) return ''\r\n if (isNumber(value) || isStringNumber(value)) {\r\n return `${value}${defaultUnit}`\r\n } else if (isString(value)) {\r\n return value\r\n }\r\n debugWarn(SCOPE, 'binding value must be a string or number')\r\n}\r\n"],"names":["
|
1
|
+
{"version":3,"file":"style.js","sources":["../../../../src/components/_util/dom/style.ts"],"sourcesContent":["import { isNumber, isObject, isString, isStringNumber } from '../types'\r\nimport { isClient } from '../browser'\r\nimport { camelize } from '../strings'\r\nimport { entriesOf, keysOf } from '../objects'\r\nimport { debugWarn } from '../error'\r\nimport type { CSSProperties } from 'vue'\r\n\r\nconst SCOPE = 'utils/dom/style'\r\n\r\nexport const classNameToArray = (cls = '') =>\r\n cls.split(' ').filter((item) => !!item.trim())\r\n\r\nexport const hasClass = (el: Element, cls: string): boolean => {\r\n if (!el || !cls) return false\r\n if (cls.includes(' ')) throw new Error('className should not contain space.')\r\n return el.classList.contains(cls)\r\n}\r\n\r\nexport const addClass = (el: Element, cls: string) => {\r\n if (!el || !cls.trim()) return\r\n el.classList.add(...classNameToArray(cls))\r\n}\r\n\r\nexport const removeClass = (el: Element, cls: string) => {\r\n if (!el || !cls.trim()) return\r\n el.classList.remove(...classNameToArray(cls))\r\n}\r\n\r\nexport const getStyle = (\r\n element: HTMLElement,\r\n styleName: keyof CSSProperties\r\n): string => {\r\n if (!isClient || !element || !styleName) return ''\r\n\r\n let key = camelize(styleName)\r\n if (key === 'float') key = 'cssFloat'\r\n try {\r\n const style = (element.style as any)[key]\r\n if (style) return style\r\n const computed: any = document.defaultView?.getComputedStyle(element, '')\r\n return computed ? computed[key] : ''\r\n } catch {\r\n return (element.style as any)[key]\r\n }\r\n}\r\n\r\nexport const setStyle = (\r\n element: HTMLElement,\r\n styleName: CSSProperties | keyof CSSProperties,\r\n value?: string | number\r\n) => {\r\n if (!element || !styleName) return\r\n\r\n if (isObject(styleName)) {\r\n entriesOf(styleName).forEach(([prop, value]) =>\r\n setStyle(element, prop, value)\r\n )\r\n } else {\r\n const key: any = camelize(styleName)\r\n element.style[key] = value as any\r\n }\r\n}\r\n\r\nexport const removeStyle = (\r\n element: HTMLElement,\r\n style: CSSProperties | keyof CSSProperties\r\n) => {\r\n if (!element || !style) return\r\n\r\n if (isObject(style)) {\r\n keysOf(style).forEach((prop) => removeStyle(element, prop))\r\n } else {\r\n setStyle(element, style, '')\r\n }\r\n}\r\n\r\nexport function addUnit(value?: string | number, defaultUnit = 'px') {\r\n if (!value) return ''\r\n if (isNumber(value) || isStringNumber(value)) {\r\n return `${value}${defaultUnit}`\r\n } else if (isString(value)) {\r\n return value\r\n }\r\n debugWarn(SCOPE, 'binding value must be a string or number')\r\n}\r\n"],"names":["value"],"mappings":";;;;;AAOA,MAAM,QAAQ;AAEP,MAAM,mBAAmB,CAAC,MAAM,OACrC,IAAI,MAAM,GAAG,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,MAAM;AAElC,MAAA,WAAW,CAAC,IAAa,QAAyB;AAC7D,MAAI,CAAC,MAAM,CAAC,IAAY,QAAA;AACxB,MAAI,IAAI,SAAS,GAAG,EAAS,OAAA,IAAI,MAAM,qCAAqC;AACrE,SAAA,GAAG,UAAU,SAAS,GAAG;AAClC;AAEa,MAAA,WAAW,CAAC,IAAa,QAAgB;AACpD,MAAI,CAAC,MAAM,CAAC,IAAI,KAAQ,EAAA;AACxB,KAAG,UAAU,IAAI,GAAG,iBAAiB,GAAG,CAAC;AAC3C;AAEa,MAAA,cAAc,CAAC,IAAa,QAAgB;AACvD,MAAI,CAAC,MAAM,CAAC,IAAI,KAAQ,EAAA;AACxB,KAAG,UAAU,OAAO,GAAG,iBAAiB,GAAG,CAAC;AAC9C;AAEa,MAAA,WAAW,CACtB,SACA,cACW;;AACX,MAAI,CAAC,YAAY,CAAC,WAAW,CAAC,UAAkB,QAAA;AAE5C,MAAA,MAAM,SAAS,SAAS;AACxB,MAAA,QAAQ,QAAe,OAAA;AACvB,MAAA;AACI,UAAA,QAAS,QAAQ,MAAc,GAAG;AACxC,QAAI,MAAc,QAAA;AAClB,UAAM,YAAgB,cAAS,gBAAT,mBAAsB,iBAAiB,SAAS;AAC/D,WAAA,WAAW,SAAS,GAAG,IAAI;AAAA,EAAA,QAC5B;AACE,WAAA,QAAQ,MAAc,GAAG;AAAA,EACnC;AACF;AAEO,MAAM,WAAW,CACtB,SACA,WACA,UACG;AACC,MAAA,CAAC,WAAW,CAAC,UAAW;AAExB,MAAA,SAAS,SAAS,GAAG;AACvB,cAAU,SAAS,EAAE;AAAA,MAAQ,CAAC,CAAC,MAAMA,MAAK,MACxC,SAAS,SAAS,MAAMA,MAAK;AAAA,IAAA;AAAA,EAC/B,OACK;AACC,UAAA,MAAW,SAAS,SAAS;AAC3B,YAAA,MAAM,GAAG,IAAI;AAAA,EACvB;AACF;AAEa,MAAA,cAAc,CACzB,SACA,UACG;AACC,MAAA,CAAC,WAAW,CAAC,MAAO;AAEpB,MAAA,SAAS,KAAK,GAAG;AACZ,WAAA,KAAK,EAAE,QAAQ,CAAC,SAAS,YAAY,SAAS,IAAI,CAAC;AAAA,EAAA,OACrD;AACI,aAAA,SAAS,OAAO,EAAE;AAAA,EAC7B;AACF;AAEgB,SAAA,QAAQ,OAAyB,cAAc,MAAM;AAC/D,MAAA,CAAC,MAAc,QAAA;AACnB,MAAI,SAAS,KAAK,KAAK,eAAe,KAAK,GAAG;AACrC,WAAA,GAAG,KAAK,GAAG,WAAW;AAAA,EAAA,WACpB,SAAS,KAAK,GAAG;AACnB,WAAA;AAAA,EACT;AACA,YAAU,OAAO,0CAA0C;AAC7D;"}
|
@@ -1,8 +1,12 @@
|
|
1
|
-
function
|
2
|
-
const
|
3
|
-
|
1
|
+
function easeInOutCubic(t, b, c, d) {
|
2
|
+
const cc = c - b;
|
3
|
+
t /= d / 2;
|
4
|
+
if (t < 1) {
|
5
|
+
return cc / 2 * t * t * t + b;
|
6
|
+
}
|
7
|
+
return cc / 2 * ((t -= 2) * t * t + 2) + b;
|
4
8
|
}
|
5
9
|
export {
|
6
|
-
|
10
|
+
easeInOutCubic
|
7
11
|
};
|
8
12
|
//# sourceMappingURL=easings.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"easings.js","sources":["../../../src/components/_util/easings.ts"],"sourcesContent":["export function easeInOutCubic(t: number, b: number, c: number, d: number) {\r\n const cc = c - b\r\n t /= d / 2\r\n if (t < 1) {\r\n return (cc / 2) * t * t * t + b\r\n }\r\n return (cc / 2) * ((t -= 2) * t * t + 2) + b\r\n}\r\n"],"names":[
|
1
|
+
{"version":3,"file":"easings.js","sources":["../../../src/components/_util/easings.ts"],"sourcesContent":["export function easeInOutCubic(t: number, b: number, c: number, d: number) {\r\n const cc = c - b\r\n t /= d / 2\r\n if (t < 1) {\r\n return (cc / 2) * t * t * t + b\r\n }\r\n return (cc / 2) * ((t -= 2) * t * t + 2) + b\r\n}\r\n"],"names":[],"mappings":"AAAO,SAAS,eAAe,GAAW,GAAW,GAAW,GAAW;AACzE,QAAM,KAAK,IAAI;AACf,OAAK,IAAI;AACT,MAAI,IAAI,GAAG;AACT,WAAQ,KAAK,IAAK,IAAI,IAAI,IAAI;AAAA,EAChC;AACA,SAAQ,KAAK,MAAO,KAAK,KAAK,IAAI,IAAI,KAAK;AAC7C;"}
|
@@ -1,22 +1,23 @@
|
|
1
|
-
import { e } from "../../functions-
|
1
|
+
import { e as isString } from "../../functions-BeMkokbY.js";
|
2
2
|
import "lodash-es";
|
3
3
|
import "vue";
|
4
|
-
class
|
5
|
-
constructor(
|
6
|
-
super(
|
4
|
+
class ElementPlusError extends Error {
|
5
|
+
constructor(m) {
|
6
|
+
super(m);
|
7
|
+
this.name = "ElementPlusError";
|
7
8
|
}
|
8
9
|
}
|
9
|
-
function
|
10
|
-
throw new
|
10
|
+
function throwError(scope, m) {
|
11
|
+
throw new ElementPlusError(`[${scope}] ${m}`);
|
11
12
|
}
|
12
|
-
function
|
13
|
+
function debugWarn(scope, message) {
|
13
14
|
if (process.env.NODE_ENV !== "production") {
|
14
|
-
const
|
15
|
-
console.warn(
|
15
|
+
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
16
|
+
console.warn(error);
|
16
17
|
}
|
17
18
|
}
|
18
19
|
export {
|
19
|
-
|
20
|
-
|
20
|
+
debugWarn,
|
21
|
+
throwError
|
21
22
|
};
|
22
23
|
//# sourceMappingURL=error.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"error.js","sources":["../../../src/components/_util/error.ts"],"sourcesContent":["import { isString } from './types'\r\n\r\nclass ElementPlusError extends Error {\r\n constructor(m: string) {\r\n super(m)\r\n this.name = 'ElementPlusError'\r\n }\r\n}\r\n\r\nexport function throwError(scope: string, m: string): never {\r\n throw new ElementPlusError(`[${scope}] ${m}`)\r\n}\r\n\r\nexport function debugWarn(err: Error): void\r\nexport function debugWarn(scope: string, message: string): void\r\nexport function debugWarn(scope: string | Error, message?: string): void {\r\n if (process.env.NODE_ENV !== 'production') {\r\n const error: Error = isString(scope)\r\n ? new ElementPlusError(`[${scope}] ${message}`)\r\n : scope\r\n // eslint-disable-next-line no-console\r\n console.warn(error)\r\n }\r\n}\r\n"],"names":[
|
1
|
+
{"version":3,"file":"error.js","sources":["../../../src/components/_util/error.ts"],"sourcesContent":["import { isString } from './types'\r\n\r\nclass ElementPlusError extends Error {\r\n constructor(m: string) {\r\n super(m)\r\n this.name = 'ElementPlusError'\r\n }\r\n}\r\n\r\nexport function throwError(scope: string, m: string): never {\r\n throw new ElementPlusError(`[${scope}] ${m}`)\r\n}\r\n\r\nexport function debugWarn(err: Error): void\r\nexport function debugWarn(scope: string, message: string): void\r\nexport function debugWarn(scope: string | Error, message?: string): void {\r\n if (process.env.NODE_ENV !== 'production') {\r\n const error: Error = isString(scope)\r\n ? new ElementPlusError(`[${scope}] ${message}`)\r\n : scope\r\n // eslint-disable-next-line no-console\r\n console.warn(error)\r\n }\r\n}\r\n"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,MAAM;AAAA,EACnC,YAAY,GAAW;AACrB,UAAM,CAAC;AACP,SAAK,OAAO;AAAA,EACd;AACF;AAEgB,SAAA,WAAW,OAAe,GAAkB;AAC1D,QAAM,IAAI,iBAAiB,IAAI,KAAK,KAAK,CAAC,EAAE;AAC9C;AAIgB,SAAA,UAAU,OAAuB,SAAwB;AACnE,MAAA,QAAQ,IAAI,aAAa,cAAc;AACnC,UAAA,QAAe,SAAS,KAAK,IAC/B,IAAI,iBAAiB,IAAI,KAAK,KAAK,OAAO,EAAE,IAC5C;AAEJ,YAAQ,KAAK,KAAK;AAAA,EACpB;AACF;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"i18n.js","sources":["../../../src/components/_util/i18n.ts"],"sourcesContent":["export const isKorean = (text: string) =>\r\n /([\\uAC00-\\uD7AF\\u3130-\\u318F])+/gi.test(text)\r\n"],"names":[
|
1
|
+
{"version":3,"file":"i18n.js","sources":["../../../src/components/_util/i18n.ts"],"sourcesContent":["export const isKorean = (text: string) =>\r\n /([\\uAC00-\\uD7AF\\u3130-\\u318F])+/gi.test(text)\r\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,CAAC,SACvB,oCAAoC,KAAK,IAAI;"}
|
@@ -1,140 +1,140 @@
|
|
1
|
-
import { attemptFocus
|
2
|
-
import { composeEventHandlers
|
3
|
-
import { getClientXY
|
4
|
-
import { animateScrollTo
|
5
|
-
import { addClass
|
6
|
-
import { getElement
|
7
|
-
import { changeGlobalNodesTarget
|
8
|
-
import { CloseComponents
|
9
|
-
import { withInstall
|
10
|
-
import { buildProp
|
11
|
-
import { composeRefs
|
12
|
-
import { getComponentSize
|
13
|
-
import { isValidComponentSize
|
14
|
-
import { PatchFlags
|
15
|
-
import { castArray
|
16
|
-
import { isFirefox
|
17
|
-
import { debugWarn
|
18
|
-
import { N
|
19
|
-
import { isKorean
|
20
|
-
import { entriesOf
|
21
|
-
import { cAF
|
22
|
-
import { generateId
|
23
|
-
import { capitalize
|
24
|
-
import { isBoolean
|
25
|
-
import { mutable
|
26
|
-
import { throttleByRaf
|
27
|
-
import { easeInOutCubic
|
28
|
-
import { castArray as
|
29
|
-
import { i as
|
30
|
-
import { isVNode
|
1
|
+
import { attemptFocus, focusNode, getSibling, isFocusable, isLeaf, isVisible, obtainAllFocusableElements, triggerEvent } from "./dom/aria.js";
|
2
|
+
import { composeEventHandlers, whenMouse } from "./dom/event.js";
|
3
|
+
import { getClientXY, getOffsetTop, getOffsetTopDistance, isInContainer } from "./dom/position.js";
|
4
|
+
import { animateScrollTo, getScrollBarWidth, getScrollContainer, getScrollElement, getScrollTop, isScroll, scrollIntoView } from "./dom/scroll.js";
|
5
|
+
import { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, removeStyle, setStyle } from "./dom/style.js";
|
6
|
+
import { getElement } from "./dom/element.js";
|
7
|
+
import { changeGlobalNodesTarget, createGlobalNode, removeGlobalNode } from "./vue/global-node.js";
|
8
|
+
import { CloseComponents, TypeComponents, TypeComponentsMap, ValidateComponentsMap, iconPropType } from "./vue/icon.js";
|
9
|
+
import { withInstall, withInstallDirective, withInstallFunction, withNoopInstall } from "./vue/install.js";
|
10
|
+
import { buildProp, buildProps, definePropType, epPropKey, isEpProp } from "./vue/props/runtime.js";
|
11
|
+
import { composeRefs } from "./vue/refs.js";
|
12
|
+
import { getComponentSize } from "./vue/size.js";
|
13
|
+
import { isValidComponentSize, isValidDatePickType } from "./vue/validator.js";
|
14
|
+
import { PatchFlags, ensureOnlyChild, flattedChildren, getFirstValidNode, getNormalizedProps, isComment, isFragment, isTemplate, isText, isValidElementNode, renderBlock, renderIf } from "./vue/vnode.js";
|
15
|
+
import { castArray, unique } from "./arrays.js";
|
16
|
+
import { isFirefox } from "./browser.js";
|
17
|
+
import { debugWarn, throwError } from "./error.js";
|
18
|
+
import { N, c, h, a, i, f, b, d, k, g, e, j, a as a2, t } from "../../functions-BeMkokbY.js";
|
19
|
+
import { isKorean } from "./i18n.js";
|
20
|
+
import { entriesOf, getProp, keysOf } from "./objects.js";
|
21
|
+
import { cAF, rAF } from "./raf.js";
|
22
|
+
import { generateId, getRandomInt } from "./rand.js";
|
23
|
+
import { capitalize, escapeStringRegexp } from "./strings.js";
|
24
|
+
import { isBoolean, isElement, isEmpty, isNumber, isPropAbsent, isStringNumber, isUndefined, isWindow } from "./types.js";
|
25
|
+
import { mutable } from "./typescript.js";
|
26
|
+
import { throttleByRaf } from "./throttleByRaf.js";
|
27
|
+
import { easeInOutCubic } from "./easings.js";
|
28
|
+
import { castArray as castArray2 } from "lodash-es";
|
29
|
+
import { i as i2, a as a3 } from "../../index-D1m0KTpK.js";
|
30
|
+
import { isVNode } from "vue";
|
31
31
|
export {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
32
|
+
CloseComponents,
|
33
|
+
N as NOOP,
|
34
|
+
PatchFlags,
|
35
|
+
TypeComponents,
|
36
|
+
TypeComponentsMap,
|
37
|
+
ValidateComponentsMap,
|
38
|
+
addClass,
|
39
|
+
addUnit,
|
40
|
+
animateScrollTo,
|
41
|
+
attemptFocus,
|
42
|
+
buildProp,
|
43
|
+
buildProps,
|
44
|
+
cAF,
|
45
|
+
c as camelize,
|
46
|
+
capitalize,
|
47
|
+
castArray,
|
48
|
+
changeGlobalNodesTarget,
|
49
|
+
classNameToArray,
|
50
|
+
composeEventHandlers,
|
51
|
+
composeRefs,
|
52
|
+
createGlobalNode,
|
53
|
+
debugWarn,
|
54
|
+
definePropType,
|
55
|
+
easeInOutCubic,
|
56
|
+
castArray2 as ensureArray,
|
57
|
+
ensureOnlyChild,
|
58
|
+
entriesOf,
|
59
|
+
epPropKey,
|
60
|
+
escapeStringRegexp,
|
61
|
+
flattedChildren,
|
62
|
+
focusNode,
|
63
|
+
generateId,
|
64
|
+
getClientXY,
|
65
|
+
getComponentSize,
|
66
|
+
getElement,
|
67
|
+
getFirstValidNode,
|
68
|
+
getNormalizedProps,
|
69
|
+
getOffsetTop,
|
70
|
+
getOffsetTopDistance,
|
71
|
+
getProp,
|
72
|
+
getRandomInt,
|
73
|
+
getScrollBarWidth,
|
74
|
+
getScrollContainer,
|
75
|
+
getScrollElement,
|
76
|
+
getScrollTop,
|
77
|
+
getSibling,
|
78
|
+
getStyle,
|
79
|
+
hasClass,
|
80
|
+
h as hasOwn,
|
81
|
+
a as hyphenate,
|
82
|
+
iconPropType,
|
83
|
+
i as isArray,
|
84
|
+
isBoolean,
|
85
|
+
i2 as isClient,
|
86
|
+
isComment,
|
87
|
+
f as isDate,
|
88
|
+
isElement,
|
89
|
+
isEmpty,
|
90
|
+
isEpProp,
|
91
|
+
isFirefox,
|
92
|
+
isFocusable,
|
93
|
+
isFragment,
|
94
|
+
b as isFunction,
|
95
|
+
a3 as isIOS,
|
96
|
+
isInContainer,
|
97
|
+
isKorean,
|
98
|
+
isLeaf,
|
99
|
+
isNumber,
|
100
|
+
d as isObject,
|
101
|
+
k as isPlainObject,
|
102
|
+
g as isPromise,
|
103
|
+
isPropAbsent,
|
104
|
+
isScroll,
|
105
|
+
e as isString,
|
106
|
+
isStringNumber,
|
107
|
+
j as isSymbol,
|
108
|
+
isTemplate,
|
109
|
+
isText,
|
110
|
+
isUndefined,
|
111
|
+
isVNode,
|
112
|
+
isValidComponentSize,
|
113
|
+
isValidDatePickType,
|
114
|
+
isValidElementNode,
|
115
|
+
isVisible,
|
116
|
+
isWindow,
|
117
|
+
a2 as kebabCase,
|
118
|
+
keysOf,
|
119
|
+
mutable,
|
120
|
+
obtainAllFocusableElements,
|
121
|
+
rAF,
|
122
|
+
removeClass,
|
123
|
+
removeGlobalNode,
|
124
|
+
removeStyle,
|
125
|
+
renderBlock,
|
126
|
+
renderIf,
|
127
|
+
scrollIntoView,
|
128
|
+
setStyle,
|
129
|
+
throttleByRaf,
|
130
|
+
throwError,
|
131
|
+
t as toRawType,
|
132
|
+
triggerEvent,
|
133
|
+
unique,
|
134
|
+
whenMouse,
|
135
|
+
withInstall,
|
136
|
+
withInstallDirective,
|
137
|
+
withInstallFunction,
|
138
|
+
withNoopInstall
|
139
139
|
};
|
140
140
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"isValid.js","sources":["../../../src/components/_util/isValid.ts"],"sourcesContent":["const isValid = (value: any): boolean => {\r\n return value !== undefined && value !== null && value !== ''\r\n}\r\nexport default isValid\r\n"],"names":[
|
1
|
+
{"version":3,"file":"isValid.js","sources":["../../../src/components/_util/isValid.ts"],"sourcesContent":["const isValid = (value: any): boolean => {\r\n return value !== undefined && value !== null && value !== ''\r\n}\r\nexport default isValid\r\n"],"names":[],"mappings":"AAAM,MAAA,UAAU,CAAC,UAAwB;AACvC,SAAO,UAAU,UAAa,UAAU,QAAQ,UAAU;AAC5D;"}
|
@@ -1,17 +1,21 @@
|
|
1
|
-
import { get
|
2
|
-
import { h
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
import { get, set } from "lodash-es";
|
2
|
+
import { h } from "../../functions-BeMkokbY.js";
|
3
|
+
const keysOf = (arr) => Object.keys(arr);
|
4
|
+
const entriesOf = (arr) => Object.entries(arr);
|
5
|
+
const getProp = (obj, path, defaultValue) => {
|
6
|
+
return {
|
7
|
+
get value() {
|
8
|
+
return get(obj, path, defaultValue);
|
9
|
+
},
|
10
|
+
set value(val) {
|
11
|
+
set(obj, path, val);
|
12
|
+
}
|
13
|
+
};
|
14
|
+
};
|
11
15
|
export {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
+
entriesOf,
|
17
|
+
getProp,
|
18
|
+
h as hasOwn,
|
19
|
+
keysOf
|
16
20
|
};
|
17
21
|
//# sourceMappingURL=objects.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"objects.js","sources":["../../../src/components/_util/objects.ts"],"sourcesContent":["import { get, set } from 'lodash-unified'\r\nimport type { Entries } from 'type-fest'\r\nimport type { Arrayable } from '.'\r\n\r\nexport const keysOf = <T>(arr: T) => Object.keys(arr) as Array<keyof T>\r\nexport const entriesOf = <T>(arr: T) => Object.entries(arr) as Entries<T>\r\nexport { hasOwn } from '@vue/shared'\r\n\r\nexport const getProp = <T = any>(\r\n obj: Record<string, any>,\r\n path: Arrayable<string>,\r\n defaultValue?: any\r\n): { value: T } => {\r\n return {\r\n get value() {\r\n return get(obj, path, defaultValue)\r\n },\r\n set value(val: any) {\r\n set(obj, path, val)\r\n },\r\n }\r\n}\r\n"],"names":[
|
1
|
+
{"version":3,"file":"objects.js","sources":["../../../src/components/_util/objects.ts"],"sourcesContent":["import { get, set } from 'lodash-unified'\r\nimport type { Entries } from 'type-fest'\r\nimport type { Arrayable } from '.'\r\n\r\nexport const keysOf = <T>(arr: T) => Object.keys(arr) as Array<keyof T>\r\nexport const entriesOf = <T>(arr: T) => Object.entries(arr) as Entries<T>\r\nexport { hasOwn } from '@vue/shared'\r\n\r\nexport const getProp = <T = any>(\r\n obj: Record<string, any>,\r\n path: Arrayable<string>,\r\n defaultValue?: any\r\n): { value: T } => {\r\n return {\r\n get value() {\r\n return get(obj, path, defaultValue)\r\n },\r\n set value(val: any) {\r\n set(obj, path, val)\r\n },\r\n }\r\n}\r\n"],"names":[],"mappings":";;AAIO,MAAM,SAAS,CAAI,QAAW,OAAO,KAAK,GAAG;AAC7C,MAAM,YAAY,CAAI,QAAW,OAAO,QAAQ,GAAG;AAGnD,MAAM,UAAU,CACrB,KACA,MACA,iBACiB;AACV,SAAA;AAAA,IACL,IAAI,QAAQ;AACH,aAAA,IAAI,KAAK,MAAM,YAAY;AAAA,IACpC;AAAA,IACA,IAAI,MAAM,KAAU;AACd,UAAA,KAAK,MAAM,GAAG;AAAA,IACpB;AAAA,EAAA;AAEJ;"}
|