orion-design 0.1.31 → 0.1.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. package/README.md +5 -5
  2. package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
  3. package/dist/Throne/hooks/use-throne-context.js +15 -0
  4. package/dist/Throne/hooks/use-throne-context.js.map +1 -0
  5. package/dist/Throne/index.d.ts +1 -1
  6. package/dist/Throne/index.js +14 -30
  7. package/dist/Throne/index.js.map +1 -1
  8. package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
  9. package/dist/components/Button/index.js +36 -41
  10. package/dist/components/Button/index.js.map +1 -1
  11. package/dist/components/Flex/index.js +89 -122
  12. package/dist/components/Flex/index.js.map +1 -1
  13. package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
  14. package/dist/components/Form/Form.js +2 -2
  15. package/dist/components/Form/Form.js.map +1 -1
  16. package/dist/components/Form/LovInput/LovInput.js +2 -2
  17. package/dist/components/Form/LovInput/LovInput.js.map +1 -1
  18. package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
  19. package/dist/components/Form/LovInput/hooks/useLov.js +5 -5
  20. package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -1
  21. package/dist/components/Form/LovInput/index.js +4 -4
  22. package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
  23. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
  24. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
  25. package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
  26. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
  27. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
  28. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
  29. package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
  30. package/dist/components/Form/MultiTableSelect/index.js +7 -0
  31. package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
  32. package/dist/components/Form/hooks/FormItemValidateTrigger.js +2 -2
  33. package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -1
  34. package/dist/components/Form/hooks/index.js +69 -127
  35. package/dist/components/Form/hooks/index.js.map +1 -1
  36. package/dist/components/Form/index.d.ts +3 -0
  37. package/dist/components/Form/index.js +790 -829
  38. package/dist/components/Form/index.js.map +1 -1
  39. package/dist/components/Form/utils/index.js +18 -30
  40. package/dist/components/Form/utils/index.js.map +1 -1
  41. package/dist/components/LovTable/LovPagetable.vue.d.ts +510 -6
  42. package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
  43. package/dist/components/LovTable/index.d.ts +489 -5
  44. package/dist/components/LovTable/index.js +104 -179
  45. package/dist/components/LovTable/index.js.map +1 -1
  46. package/dist/components/Modal/index.js +56 -111
  47. package/dist/components/Modal/index.js.map +1 -1
  48. package/dist/components/Modal/types.d.ts +1 -1
  49. package/dist/components/Modal/types.js +3 -4
  50. package/dist/components/Modal/types.js.map +1 -1
  51. package/dist/components/Modal/useModal.js +5 -5
  52. package/dist/components/Modal/useModal.js.map +1 -1
  53. package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +880 -0
  54. package/dist/components/MultiTableSelectPagetable/index.d.ts +462 -0
  55. package/dist/components/MultiTableSelectPagetable/index.js +164 -0
  56. package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
  57. package/dist/components/Pagetable/Pagetable.d.ts +96 -3
  58. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +14 -1
  59. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +14 -1
  60. package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
  61. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +14 -1
  62. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +14 -1
  63. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +14 -1
  64. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +14 -1
  65. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +14 -1
  66. package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
  67. package/dist/components/Pagetable/hooks/useCode.js +24 -0
  68. package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
  69. package/dist/components/Pagetable/hooks/useColumns.js +85 -88
  70. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  71. package/dist/components/Pagetable/index.d.ts +159 -2
  72. package/dist/components/Pagetable/index.js +601 -684
  73. package/dist/components/Pagetable/index.js.map +1 -1
  74. package/dist/components/Pagetable/utils/index.js +54 -92
  75. package/dist/components/Pagetable/utils/index.js.map +1 -1
  76. package/dist/components/Querytable/Querytable.d.ts +80 -2
  77. package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
  78. package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
  79. package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
  80. package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
  81. package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
  82. package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
  83. package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
  84. package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
  85. package/dist/components/Querytable/hooks/useColumns.js +79 -82
  86. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  87. package/dist/components/Querytable/index.d.ts +147 -1
  88. package/dist/components/Querytable/index.js +526 -579
  89. package/dist/components/Querytable/index.js.map +1 -1
  90. package/dist/components/Querytable/utils/index.js +54 -92
  91. package/dist/components/Querytable/utils/index.js.map +1 -1
  92. package/dist/components/RichTextEditor/index.js +74 -100
  93. package/dist/components/RichTextEditor/index.js.map +1 -1
  94. package/dist/components/Tabs/constants.js +2 -2
  95. package/dist/components/Tabs/constants.js.map +1 -1
  96. package/dist/components/Tabs/index.js +358 -603
  97. package/dist/components/Tabs/index.js.map +1 -1
  98. package/dist/components/Tabs/tab-bar.js +6 -6
  99. package/dist/components/Tabs/tab-bar.js.map +1 -1
  100. package/dist/components/Tabs/tab-pane.js +3 -3
  101. package/dist/components/Tabs/tab-pane.js.map +1 -1
  102. package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
  103. package/dist/components/_constants/aria.js +2 -2
  104. package/dist/components/_constants/aria.js.map +1 -1
  105. package/dist/components/_constants/event.js +4 -6
  106. package/dist/components/_constants/event.js.map +1 -1
  107. package/dist/components/_constants/index.js +6 -6
  108. package/dist/components/_hooks/index.js +7 -7
  109. package/dist/components/_hooks/use-namespace/index.js +39 -74
  110. package/dist/components/_hooks/use-namespace/index.js.map +1 -1
  111. package/dist/components/_hooks/use-ordered-children/index.js +19 -29
  112. package/dist/components/_hooks/use-ordered-children/index.js.map +1 -1
  113. package/dist/components/_util/arrays.js +5 -9
  114. package/dist/components/_util/arrays.js.map +1 -1
  115. package/dist/components/_util/browser.js +6 -6
  116. package/dist/components/_util/browser.js.map +1 -1
  117. package/dist/components/_util/classNames.js +17 -22
  118. package/dist/components/_util/classNames.js.map +1 -1
  119. package/dist/components/_util/dom/aria.js +39 -74
  120. package/dist/components/_util/dom/aria.js.map +1 -1
  121. package/dist/components/_util/dom/element.js +8 -9
  122. package/dist/components/_util/dom/element.js.map +1 -1
  123. package/dist/components/_util/dom/event.js +7 -14
  124. package/dist/components/_util/dom/event.js.map +1 -1
  125. package/dist/components/_util/dom/index.js +36 -36
  126. package/dist/components/_util/dom/position.js +25 -49
  127. package/dist/components/_util/dom/position.js.map +1 -1
  128. package/dist/components/_util/dom/scroll.js +61 -103
  129. package/dist/components/_util/dom/scroll.js.map +1 -1
  130. package/dist/components/_util/dom/style.js +50 -65
  131. package/dist/components/_util/dom/style.js.map +1 -1
  132. package/dist/components/_util/easings.js +4 -8
  133. package/dist/components/_util/easings.js.map +1 -1
  134. package/dist/components/_util/error.js +11 -12
  135. package/dist/components/_util/error.js.map +1 -1
  136. package/dist/components/_util/functions.js +3 -3
  137. package/dist/components/_util/i18n.js +2 -2
  138. package/dist/components/_util/i18n.js.map +1 -1
  139. package/dist/components/_util/index.js +137 -137
  140. package/dist/components/_util/isValid.js +2 -4
  141. package/dist/components/_util/isValid.js.map +1 -1
  142. package/dist/components/_util/objects.js +14 -18
  143. package/dist/components/_util/objects.js.map +1 -1
  144. package/dist/components/_util/props-util/index.js +20 -46
  145. package/dist/components/_util/props-util/index.js.map +1 -1
  146. package/dist/components/_util/props-util/initDefaultProps.js +10 -18
  147. package/dist/components/_util/props-util/initDefaultProps.js.map +1 -1
  148. package/dist/components/_util/raf.js +4 -5
  149. package/dist/components/_util/raf.js.map +1 -1
  150. package/dist/components/_util/rand.js +3 -4
  151. package/dist/components/_util/rand.js.map +1 -1
  152. package/dist/components/_util/strings.js +8 -9
  153. package/dist/components/_util/strings.js.map +1 -1
  154. package/dist/components/_util/throttleByRaf.js +10 -16
  155. package/dist/components/_util/throttleByRaf.js.map +1 -1
  156. package/dist/components/_util/type.js +38 -41
  157. package/dist/components/_util/type.js.map +1 -1
  158. package/dist/components/_util/types.js +22 -41
  159. package/dist/components/_util/types.js.map +1 -1
  160. package/dist/components/_util/typescript.js +2 -2
  161. package/dist/components/_util/typescript.js.map +1 -1
  162. package/dist/components/_util/util.js +43 -85
  163. package/dist/components/_util/util.js.map +1 -1
  164. package/dist/components/_util/vue/global-node.js +15 -27
  165. package/dist/components/_util/vue/global-node.js.map +1 -1
  166. package/dist/components/_util/vue/icon.js +25 -29
  167. package/dist/components/_util/vue/icon.js.map +1 -1
  168. package/dist/components/_util/vue/index.js +41 -41
  169. package/dist/components/_util/vue/install.js +18 -35
  170. package/dist/components/_util/vue/install.js.map +1 -1
  171. package/dist/components/_util/vue/props/index.js +6 -6
  172. package/dist/components/_util/vue/props/runtime.js +30 -46
  173. package/dist/components/_util/vue/props/runtime.js.map +1 -1
  174. package/dist/components/_util/vue/refs.js +6 -12
  175. package/dist/components/_util/vue/refs.js.map +1 -1
  176. package/dist/components/_util/vue/size.js +3 -5
  177. package/dist/components/_util/vue/size.js.map +1 -1
  178. package/dist/components/_util/vue/validator.js +4 -5
  179. package/dist/components/_util/vue/validator.js.map +1 -1
  180. package/dist/components/_util/vue/vnode.js +54 -100
  181. package/dist/components/_util/vue/vnode.js.map +1 -1
  182. package/dist/components/_util/vue-types/index.js +220 -231
  183. package/dist/components/_util/vue-types/index.js.map +1 -1
  184. package/dist/components/components.d.ts +2 -0
  185. package/dist/components/components.js +24 -20
  186. package/dist/components/components.js.map +1 -1
  187. package/dist/components/index.js +43 -38
  188. package/dist/components/index.js.map +1 -1
  189. package/dist/components-DP9bnDLm.js +48 -0
  190. package/dist/components-DP9bnDLm.js.map +1 -0
  191. package/dist/error/OrionError.js +4 -8
  192. package/dist/error/OrionError.js.map +1 -1
  193. package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
  194. package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
  195. package/dist/index.css +1 -797
  196. package/dist/index.d.ts +1 -0
  197. package/dist/index.js +46 -36
  198. package/dist/index.js.map +1 -1
  199. package/dist/print/LodopFuncs.js +43 -101
  200. package/dist/print/LodopFuncs.js.map +1 -1
  201. package/dist/print/index.js +108 -200
  202. package/dist/print/index.js.map +1 -1
  203. package/dist/request/ErrorHandlerChain.js +14 -17
  204. package/dist/request/ErrorHandlerChain.js.map +1 -1
  205. package/dist/request/RequestFilterChain.js +13 -16
  206. package/dist/request/RequestFilterChain.js.map +1 -1
  207. package/dist/request/ResponseParserChain.js +14 -17
  208. package/dist/request/ResponseParserChain.js.map +1 -1
  209. package/dist/request/disivion/DateSerializer.js +22 -47
  210. package/dist/request/disivion/DateSerializer.js.map +1 -1
  211. package/dist/request/disivion/DivisionErrorHandler.js +25 -40
  212. package/dist/request/disivion/DivisionErrorHandler.js.map +1 -1
  213. package/dist/request/disivion/DivisionResponseParser.js +10 -16
  214. package/dist/request/disivion/DivisionResponseParser.js.map +1 -1
  215. package/dist/request/disivion/index.js +201 -305
  216. package/dist/request/disivion/index.js.map +1 -1
  217. package/dist/request/error/BizExceptionResponseError.js +5 -11
  218. package/dist/request/error/BizExceptionResponseError.js.map +1 -1
  219. package/dist/request/error/ExceptionResponseError.js +5 -11
  220. package/dist/request/error/ExceptionResponseError.js.map +1 -1
  221. package/dist/request/error/ResponseError.js +4 -9
  222. package/dist/request/error/ResponseError.js.map +1 -1
  223. package/dist/request/error/SessionExceptionResponseError.js +5 -11
  224. package/dist/request/error/SessionExceptionResponseError.js.map +1 -1
  225. package/dist/request/index.js +11 -11
  226. package/dist/utils/DateUtil.js +33 -48
  227. package/dist/utils/DateUtil.js.map +1 -1
  228. package/dist/utils/NumberUtil.js +6 -6
  229. package/dist/utils/NumberUtil.js.map +1 -1
  230. package/dist/utils/cloneDeep.js +2 -2
  231. package/dist/utils/delay.js +3 -3
  232. package/dist/utils/delay.js.map +1 -1
  233. package/dist/utils/functions.js +3 -3
  234. package/dist/utils/index.js +12 -12
  235. package/dist/utils/md5.js +93 -191
  236. package/dist/utils/md5.js.map +1 -1
  237. package/dist/utils/uuid.js +25 -35
  238. package/dist/utils/uuid.js.map +1 -1
  239. package/dist/version/index.js +2 -2
  240. package/dist/version/version.d.ts +1 -1
  241. package/dist/version/version.js +2 -2
  242. package/dist/version/version.js.map +1 -1
  243. package/package.json +1 -1
  244. package/dist/_commonjsHelpers-DWwsNxpa.js +0 -9
  245. package/dist/_commonjsHelpers-DWwsNxpa.js.map +0 -1
  246. package/dist/components-8oZ2kpUC.js +0 -27
  247. package/dist/components-8oZ2kpUC.js.map +0 -1
  248. package/dist/components-B3d9m_tn.js +0 -27
  249. package/dist/components-B3d9m_tn.js.map +0 -1
  250. package/dist/functions-BeMkokbY.js +0 -63
  251. package/dist/functions-BeMkokbY.js.map +0 -1
  252. package/dist/index-BOKLZnqH.js +0 -54
  253. package/dist/index-BOKLZnqH.js.map +0 -1
  254. package/dist/index-D1m0KTpK.js +0 -69
  255. package/dist/index-D1m0KTpK.js.map +0 -1
  256. package/dist/index-DR5ZP7mD.js +0 -160
  257. package/dist/index-DR5ZP7mD.js.map +0 -1
  258. package/dist/index-DkwIULcN.js +0 -200
  259. package/dist/index-DkwIULcN.js.map +0 -1
@@ -1,21 +1,17 @@
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
- };
1
+ import { get as n, set as o } from "lodash-es";
2
+ import { h as i } from "../../functions-DzLqXvGt.js";
3
+ const O = (e) => Object.keys(e), f = (e) => Object.entries(e), u = (e, t, r) => ({
4
+ get value() {
5
+ return n(e, t, r);
6
+ },
7
+ set value(s) {
8
+ o(e, t, s);
9
+ }
10
+ });
15
11
  export {
16
- entriesOf,
17
- getProp,
18
- h as hasOwn,
19
- keysOf
12
+ f as entriesOf,
13
+ u as getProp,
14
+ i as hasOwn,
15
+ O as keysOf
20
16
  };
21
17
  //# 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":[],"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;"}
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":["keysOf","arr","entriesOf","getProp","obj","path","defaultValue","get","val","set"],"mappings":";;AAIO,MAAMA,IAAS,CAAIC,MAAW,OAAO,KAAKA,CAAG,GACvCC,IAAY,CAAID,MAAW,OAAO,QAAQA,CAAG,GAG7CE,IAAU,CACrBC,GACAC,GACAC,OAEO;AAAA,EACL,IAAI,QAAQ;AACH,WAAAC,EAAIH,GAAKC,GAAMC,CAAY;AAAA,EACpC;AAAA,EACA,IAAI,MAAME,GAAU;AACd,IAAAC,EAAAL,GAAKC,GAAMG,CAAG;AAAA,EACpB;AAAA;"}
@@ -1,52 +1,26 @@
1
- import { Fragment, isVNode, Comment, Text } from "vue";
2
- import isValid from "../isValid.js";
3
- import { default as default2 } from "./initDefaultProps.js";
4
- const skipFlattenKey = Symbol("skipFlatten");
5
- const flattenChildren = (children = [], filterEmpty2 = true) => {
6
- const temp = Array.isArray(children) ? children : [children];
7
- const res = [];
8
- temp.forEach((child) => {
9
- if (Array.isArray(child)) {
10
- res.push(...flattenChildren(child, filterEmpty2));
11
- } else if (child && child.type === Fragment) {
12
- if (child.key === skipFlattenKey) {
13
- res.push(child);
14
- } else {
15
- res.push(...flattenChildren(child.children, filterEmpty2));
16
- }
17
- } else if (child && isVNode(child)) {
18
- if (filterEmpty2 && !isEmptyElement(child)) {
19
- res.push(child);
20
- } else if (!filterEmpty2) {
21
- res.push(child);
22
- }
23
- } else if (isValid(child)) {
24
- res.push(child);
25
- }
26
- });
27
- return res;
1
+ import { Fragment as p, isVNode as u, Comment as a, Text as y } from "vue";
2
+ import m from "../isValid.js";
3
+ import { default as C } from "./initDefaultProps.js";
4
+ const i = Symbol("skipFlatten"), o = (r = [], s = !0) => {
5
+ const t = Array.isArray(r) ? r : [r], n = [];
6
+ return t.forEach((e) => {
7
+ Array.isArray(e) ? n.push(...o(e, s)) : e && e.type === p ? e.key === i ? n.push(e) : n.push(...o(e.children, s)) : e && u(e) ? s && !f(e) ? n.push(e) : s || n.push(e) : m(e) && n.push(e);
8
+ }), n;
28
9
  };
29
- function filterEmpty(children = []) {
30
- const res = [];
31
- children.forEach((child) => {
32
- if (Array.isArray(child)) {
33
- res.push(...child);
34
- } else if ((child == null ? void 0 : child.type) === Fragment) {
35
- res.push(...filterEmpty(child.children));
36
- } else {
37
- res.push(child);
38
- }
39
- });
40
- return res.filter((c) => !isEmptyElement(c));
10
+ function A(r = []) {
11
+ const s = [];
12
+ return r.forEach((t) => {
13
+ Array.isArray(t) ? s.push(...t) : (t == null ? void 0 : t.type) === p ? s.push(...A(t.children)) : s.push(t);
14
+ }), s.filter((t) => !f(t));
41
15
  }
42
- function isEmptyElement(c) {
43
- return c && (c.type === Comment || c.type === Fragment && c.children.length === 0 || c.type === Text && c.children.trim() === "");
16
+ function f(r) {
17
+ return r && (r.type === a || r.type === p && r.children.length === 0 || r.type === y && r.children.trim() === "");
44
18
  }
45
19
  export {
46
- filterEmpty,
47
- flattenChildren,
48
- default2 as initDefaultProps,
49
- isEmptyElement,
50
- skipFlattenKey
20
+ A as filterEmpty,
21
+ o as flattenChildren,
22
+ C as initDefaultProps,
23
+ f as isEmptyElement,
24
+ i as skipFlattenKey
51
25
  };
52
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/_util/props-util/index.ts"],"sourcesContent":["import { isVNode, Fragment, Comment, Text } from 'vue'\r\nimport isValid from '../isValid'\r\nimport initDefaultProps from './initDefaultProps'\r\n\r\nexport const skipFlattenKey = Symbol('skipFlatten')\r\n\r\nexport const flattenChildren = (children = [], filterEmpty = true) => {\r\n const temp = Array.isArray(children) ? children : [children]\r\n const res = []\r\n temp.forEach((child) => {\r\n if (Array.isArray(child)) {\r\n res.push(...flattenChildren(child, filterEmpty))\r\n // @ts-ignore\r\n } else if (child && child.type === Fragment) {\r\n // @ts-ignore\r\n if (child.key === skipFlattenKey) {\r\n res.push(child)\r\n } else {\r\n // @ts-ignore\r\n res.push(...flattenChildren(child.children, filterEmpty))\r\n }\r\n } else if (child && isVNode(child)) {\r\n if (filterEmpty && !isEmptyElement(child)) {\r\n res.push(child)\r\n } else if (!filterEmpty) {\r\n res.push(child)\r\n }\r\n } else if (isValid(child)) {\r\n res.push(child)\r\n }\r\n })\r\n return res\r\n}\r\n\r\nexport function filterEmpty(children = []) {\r\n const res = []\r\n children.forEach((child) => {\r\n if (Array.isArray(child)) {\r\n // @ts-ignore\r\n res.push(...child)\r\n // @ts-ignore\r\n } else if (child?.type === Fragment) {\r\n // @ts-ignore\r\n res.push(...filterEmpty(child.children))\r\n } else {\r\n res.push(child)\r\n }\r\n })\r\n return res.filter((c) => !isEmptyElement(c))\r\n}\r\n\r\nexport function isEmptyElement(c: any) {\r\n return c && (c.type === Comment || (c.type === Fragment && c.children.length === 0) || (c.type === Text && c.children.trim() === ''))\r\n}\r\n\r\nexport { initDefaultProps }\r\n"],"names":["filterEmpty"],"mappings":";;;AAIa,MAAA,iBAAiB,OAAO,aAAa;AAE3C,MAAM,kBAAkB,CAAC,WAAW,IAAIA,eAAc,SAAS;AACpE,QAAM,OAAO,MAAM,QAAQ,QAAQ,IAAI,WAAW,CAAC,QAAQ;AAC3D,QAAM,MAAM,CAAA;AACP,OAAA,QAAQ,CAAC,UAAU;AAClB,QAAA,MAAM,QAAQ,KAAK,GAAG;AACxB,UAAI,KAAK,GAAG,gBAAgB,OAAOA,YAAW,CAAC;AAAA,IAEtC,WAAA,SAAS,MAAM,SAAS,UAAU;AAEvC,UAAA,MAAM,QAAQ,gBAAgB;AAChC,YAAI,KAAK,KAAK;AAAA,MAAA,OACT;AAEL,YAAI,KAAK,GAAG,gBAAgB,MAAM,UAAUA,YAAW,CAAC;AAAA,MAC1D;AAAA,IACS,WAAA,SAAS,QAAQ,KAAK,GAAG;AAClC,UAAIA,gBAAe,CAAC,eAAe,KAAK,GAAG;AACzC,YAAI,KAAK,KAAK;AAAA,MAAA,WACL,CAACA,cAAa;AACvB,YAAI,KAAK,KAAK;AAAA,MAChB;AAAA,IAAA,WACS,QAAQ,KAAK,GAAG;AACzB,UAAI,KAAK,KAAK;AAAA,IAChB;AAAA,EAAA,CACD;AACM,SAAA;AACT;AAEgB,SAAA,YAAY,WAAW,IAAI;AACzC,QAAM,MAAM,CAAA;AACH,WAAA,QAAQ,CAAC,UAAU;AACtB,QAAA,MAAM,QAAQ,KAAK,GAAG;AAEpB,UAAA,KAAK,GAAG,KAAK;AAAA,IAAA,YAER,+BAAO,UAAS,UAAU;AAEnC,UAAI,KAAK,GAAG,YAAY,MAAM,QAAQ,CAAC;AAAA,IAAA,OAClC;AACL,UAAI,KAAK,KAAK;AAAA,IAChB;AAAA,EAAA,CACD;AACD,SAAO,IAAI,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAC7C;AAEO,SAAS,eAAe,GAAQ;AACrC,SAAO,MAAM,EAAE,SAAS,WAAY,EAAE,SAAS,YAAY,EAAE,SAAS,WAAW,KAAO,EAAE,SAAS,QAAQ,EAAE,SAAS,WAAW;AACnI;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/_util/props-util/index.ts"],"sourcesContent":["import { isVNode, Fragment, Comment, Text } from 'vue'\r\nimport isValid from '../isValid'\r\nimport initDefaultProps from './initDefaultProps'\r\n\r\nexport const skipFlattenKey = Symbol('skipFlatten')\r\n\r\nexport const flattenChildren = (children = [], filterEmpty = true) => {\r\n const temp = Array.isArray(children) ? children : [children]\r\n const res = []\r\n temp.forEach((child) => {\r\n if (Array.isArray(child)) {\r\n res.push(...flattenChildren(child, filterEmpty))\r\n // @ts-ignore\r\n } else if (child && child.type === Fragment) {\r\n // @ts-ignore\r\n if (child.key === skipFlattenKey) {\r\n res.push(child)\r\n } else {\r\n // @ts-ignore\r\n res.push(...flattenChildren(child.children, filterEmpty))\r\n }\r\n } else if (child && isVNode(child)) {\r\n if (filterEmpty && !isEmptyElement(child)) {\r\n res.push(child)\r\n } else if (!filterEmpty) {\r\n res.push(child)\r\n }\r\n } else if (isValid(child)) {\r\n res.push(child)\r\n }\r\n })\r\n return res\r\n}\r\n\r\nexport function filterEmpty(children = []) {\r\n const res = []\r\n children.forEach((child) => {\r\n if (Array.isArray(child)) {\r\n // @ts-ignore\r\n res.push(...child)\r\n // @ts-ignore\r\n } else if (child?.type === Fragment) {\r\n // @ts-ignore\r\n res.push(...filterEmpty(child.children))\r\n } else {\r\n res.push(child)\r\n }\r\n })\r\n return res.filter((c) => !isEmptyElement(c))\r\n}\r\n\r\nexport function isEmptyElement(c: any) {\r\n return c && (c.type === Comment || (c.type === Fragment && c.children.length === 0) || (c.type === Text && c.children.trim() === ''))\r\n}\r\n\r\nexport { initDefaultProps }\r\n"],"names":["skipFlattenKey","flattenChildren","children","filterEmpty","temp","res","child","Fragment","isVNode","isEmptyElement","isValid","c","Comment","Text"],"mappings":";;;AAIa,MAAAA,IAAiB,OAAO,aAAa,GAErCC,IAAkB,CAACC,IAAW,IAAIC,IAAc,OAAS;AACpE,QAAMC,IAAO,MAAM,QAAQF,CAAQ,IAAIA,IAAW,CAACA,CAAQ,GACrDG,IAAM,CAAA;AACP,SAAAD,EAAA,QAAQ,CAACE,MAAU;AAClB,IAAA,MAAM,QAAQA,CAAK,IACrBD,EAAI,KAAK,GAAGJ,EAAgBK,GAAOH,CAAW,CAAC,IAEtCG,KAASA,EAAM,SAASC,IAE7BD,EAAM,QAAQN,IAChBK,EAAI,KAAKC,CAAK,IAGdD,EAAI,KAAK,GAAGJ,EAAgBK,EAAM,UAAUH,CAAW,CAAC,IAEjDG,KAASE,EAAQF,CAAK,IAC3BH,KAAe,CAACM,EAAeH,CAAK,IACtCD,EAAI,KAAKC,CAAK,IACJH,KACVE,EAAI,KAAKC,CAAK,IAEPI,EAAQJ,CAAK,KACtBD,EAAI,KAAKC,CAAK;AAAA,EAChB,CACD,GACMD;AACT;AAEgB,SAAAF,EAAYD,IAAW,IAAI;AACzC,QAAMG,IAAM,CAAA;AACH,SAAAH,EAAA,QAAQ,CAACI,MAAU;AACtB,IAAA,MAAM,QAAQA,CAAK,IAEjBD,EAAA,KAAK,GAAGC,CAAK,KAERA,KAAA,gBAAAA,EAAO,UAASC,IAEzBF,EAAI,KAAK,GAAGF,EAAYG,EAAM,QAAQ,CAAC,IAEvCD,EAAI,KAAKC,CAAK;AAAA,EAChB,CACD,GACMD,EAAI,OAAO,CAACM,MAAM,CAACF,EAAeE,CAAC,CAAC;AAC7C;AAEO,SAASF,EAAeE,GAAQ;AACrC,SAAOA,MAAMA,EAAE,SAASC,KAAYD,EAAE,SAASJ,KAAYI,EAAE,SAAS,WAAW,KAAOA,EAAE,SAASE,KAAQF,EAAE,SAAS,WAAW;AACnI;"}
@@ -1,22 +1,14 @@
1
- const initDefaultProps = (types, defaultProps) => {
2
- const propTypes = { ...types };
3
- Object.keys(defaultProps).forEach((k) => {
4
- const prop = propTypes[k];
5
- if (prop) {
6
- if (prop.type || prop.default) {
7
- prop.default = defaultProps[k];
8
- } else if (prop.def) {
9
- prop.def(defaultProps[k]);
10
- } else {
11
- propTypes[k] = { type: prop, default: defaultProps[k] };
12
- }
13
- } else {
14
- throw new Error(`not have ${k} prop`);
15
- }
16
- });
17
- return propTypes;
1
+ const p = (f, o) => {
2
+ const r = { ...f };
3
+ return Object.keys(o).forEach((t) => {
4
+ const e = r[t];
5
+ if (e)
6
+ e.type || e.default ? e.default = o[t] : e.def ? e.def(o[t]) : r[t] = { type: e, default: o[t] };
7
+ else
8
+ throw new Error(`not have ${t} prop`);
9
+ }), r;
18
10
  };
19
11
  export {
20
- initDefaultProps as default
12
+ p as default
21
13
  };
22
14
  //# sourceMappingURL=initDefaultProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"initDefaultProps.js","sources":["../../../../src/components/_util/props-util/initDefaultProps.ts"],"sourcesContent":["import type { PropType } from 'vue'\r\nimport type { VueTypeValidableDef, VueTypeDef } from 'vue-types'\r\n\r\nconst initDefaultProps = <T>(\r\n types: T,\r\n defaultProps: {\r\n [K in keyof T]?: T[K] extends VueTypeValidableDef<infer U> ? U : T[K] extends VueTypeDef<infer U> ? U : T[K] extends { type: PropType<infer U> } ? U : any\r\n }\r\n): T => {\r\n const propTypes: T = { ...types }\r\n Object.keys(defaultProps).forEach((k) => {\r\n const prop = propTypes[k] as VueTypeValidableDef\r\n if (prop) {\r\n if (prop.type || prop.default) {\r\n prop.default = defaultProps[k]\r\n } else if (prop.def) {\r\n prop.def(defaultProps[k])\r\n } else {\r\n propTypes[k] = { type: prop, default: defaultProps[k] }\r\n }\r\n } else {\r\n throw new Error(`not have ${k} prop`)\r\n }\r\n })\r\n return propTypes\r\n}\r\n\r\nexport default initDefaultProps\r\n"],"names":[],"mappings":"AAGM,MAAA,mBAAmB,CACvB,OACA,iBAGM;AACA,QAAA,YAAe,EAAE,GAAG;AAC1B,SAAO,KAAK,YAAY,EAAE,QAAQ,CAAC,MAAM;AACjC,UAAA,OAAO,UAAU,CAAC;AACxB,QAAI,MAAM;AACJ,UAAA,KAAK,QAAQ,KAAK,SAAS;AACxB,aAAA,UAAU,aAAa,CAAC;AAAA,MAAA,WACpB,KAAK,KAAK;AACd,aAAA,IAAI,aAAa,CAAC,CAAC;AAAA,MAAA,OACnB;AACK,kBAAA,CAAC,IAAI,EAAE,MAAM,MAAM,SAAS,aAAa,CAAC;MACtD;AAAA,IAAA,OACK;AACL,YAAM,IAAI,MAAM,YAAY,CAAC,OAAO;AAAA,IACtC;AAAA,EAAA,CACD;AACM,SAAA;AACT;"}
1
+ {"version":3,"file":"initDefaultProps.js","sources":["../../../../src/components/_util/props-util/initDefaultProps.ts"],"sourcesContent":["import type { PropType } from 'vue'\r\nimport type { VueTypeValidableDef, VueTypeDef } from 'vue-types'\r\n\r\nconst initDefaultProps = <T>(\r\n types: T,\r\n defaultProps: {\r\n [K in keyof T]?: T[K] extends VueTypeValidableDef<infer U> ? U : T[K] extends VueTypeDef<infer U> ? U : T[K] extends { type: PropType<infer U> } ? U : any\r\n }\r\n): T => {\r\n const propTypes: T = { ...types }\r\n Object.keys(defaultProps).forEach((k) => {\r\n const prop = propTypes[k] as VueTypeValidableDef\r\n if (prop) {\r\n if (prop.type || prop.default) {\r\n prop.default = defaultProps[k]\r\n } else if (prop.def) {\r\n prop.def(defaultProps[k])\r\n } else {\r\n propTypes[k] = { type: prop, default: defaultProps[k] }\r\n }\r\n } else {\r\n throw new Error(`not have ${k} prop`)\r\n }\r\n })\r\n return propTypes\r\n}\r\n\r\nexport default initDefaultProps\r\n"],"names":["initDefaultProps","types","defaultProps","propTypes","k","prop"],"mappings":"AAGM,MAAAA,IAAmB,CACvBC,GACAC,MAGM;AACA,QAAAC,IAAe,EAAE,GAAGF;AAC1B,gBAAO,KAAKC,CAAY,EAAE,QAAQ,CAACE,MAAM;AACjC,UAAAC,IAAOF,EAAUC,CAAC;AACxB,QAAIC;AACE,MAAAA,EAAK,QAAQA,EAAK,UACfA,EAAA,UAAUH,EAAaE,CAAC,IACpBC,EAAK,MACTA,EAAA,IAAIH,EAAaE,CAAC,CAAC,IAEdD,EAAAC,CAAC,IAAI,EAAE,MAAMC,GAAM,SAASH,EAAaE,CAAC;;AAGtD,YAAM,IAAI,MAAM,YAAYA,CAAC,OAAO;AAAA,EACtC,CACD,GACMD;AACT;"}
@@ -1,8 +1,7 @@
1
- import { i as isClient } from "../../index-D1m0KTpK.js";
2
- const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
3
- const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
1
+ import { i as o } from "../../index-C9tCD90X.js";
2
+ const e = (i) => o ? window.requestAnimationFrame(i) : setTimeout(i, 16), m = (i) => o ? window.cancelAnimationFrame(i) : clearTimeout(i);
4
3
  export {
5
- cAF,
6
- rAF
4
+ m as cAF,
5
+ e as rAF
7
6
  };
8
7
  //# sourceMappingURL=raf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"raf.js","sources":["../../../src/components/_util/raf.ts"],"sourcesContent":["import { isClient } from './browser'\r\n\r\nexport const rAF = (fn: () => void) =>\r\n isClient\r\n ? window.requestAnimationFrame(fn)\r\n : (setTimeout(fn, 16) as unknown as number)\r\n\r\nexport const cAF = (handle: number) =>\r\n isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle)\r\n"],"names":[],"mappings":";AAEa,MAAA,MAAM,CAAC,OAClB,WACI,OAAO,sBAAsB,EAAE,IAC9B,WAAW,IAAI,EAAE;AAEX,MAAA,MAAM,CAAC,WAClB,WAAW,OAAO,qBAAqB,MAAM,IAAI,aAAa,MAAM;"}
1
+ {"version":3,"file":"raf.js","sources":["../../../src/components/_util/raf.ts"],"sourcesContent":["import { isClient } from './browser'\r\n\r\nexport const rAF = (fn: () => void) =>\r\n isClient\r\n ? window.requestAnimationFrame(fn)\r\n : (setTimeout(fn, 16) as unknown as number)\r\n\r\nexport const cAF = (handle: number) =>\r\n isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle)\r\n"],"names":["rAF","fn","isClient","cAF","handle"],"mappings":";AAEa,MAAAA,IAAM,CAACC,MAClBC,IACI,OAAO,sBAAsBD,CAAE,IAC9B,WAAWA,GAAI,EAAE,GAEXE,IAAM,CAACC,MAClBF,IAAW,OAAO,qBAAqBE,CAAM,IAAI,aAAaA,CAAM;"}
@@ -1,7 +1,6 @@
1
- const generateId = () => Math.floor(Math.random() * 1e4);
2
- const getRandomInt = (max) => Math.floor(Math.random() * Math.floor(max));
1
+ const t = () => Math.floor(Math.random() * 1e4), a = (o) => Math.floor(Math.random() * Math.floor(o));
3
2
  export {
4
- generateId,
5
- getRandomInt
3
+ t as generateId,
4
+ a as getRandomInt
6
5
  };
7
6
  //# sourceMappingURL=rand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rand.js","sources":["../../../src/components/_util/rand.ts"],"sourcesContent":["/**\r\n * @deprecated Use `useId` `useIdInjection` instead\r\n * Generate random number in range [0, 1000]\r\n * Maybe replace with [uuid](https://www.npmjs.com/package/uuid)\r\n */\r\nexport const generateId = (): number => Math.floor(Math.random() * 10000)\r\n\r\n/**\r\n * @deprecated\r\n * Generating a random int in range (0, max - 1)\r\n * @param max {number}\r\n */\r\nexport const getRandomInt = (max: number) =>\r\n Math.floor(Math.random() * Math.floor(max))\r\n"],"names":[],"mappings":"AAKO,MAAM,aAAa,MAAc,KAAK,MAAM,KAAK,WAAW,GAAK;AAO3D,MAAA,eAAe,CAAC,QAC3B,KAAK,MAAM,KAAK,WAAW,KAAK,MAAM,GAAG,CAAC;"}
1
+ {"version":3,"file":"rand.js","sources":["../../../src/components/_util/rand.ts"],"sourcesContent":["/**\r\n * @deprecated Use `useId` `useIdInjection` instead\r\n * Generate random number in range [0, 1000]\r\n * Maybe replace with [uuid](https://www.npmjs.com/package/uuid)\r\n */\r\nexport const generateId = (): number => Math.floor(Math.random() * 10000)\r\n\r\n/**\r\n * @deprecated\r\n * Generating a random int in range (0, max - 1)\r\n * @param max {number}\r\n */\r\nexport const getRandomInt = (max: number) =>\r\n Math.floor(Math.random() * Math.floor(max))\r\n"],"names":["generateId","getRandomInt","max"],"mappings":"AAKO,MAAMA,IAAa,MAAc,KAAK,MAAM,KAAK,WAAW,GAAK,GAO3DC,IAAe,CAACC,MAC3B,KAAK,MAAM,KAAK,WAAW,KAAK,MAAMA,CAAG,CAAC;"}
@@ -1,12 +1,11 @@
1
- import { l as capitalize$1 } from "../../functions-BeMkokbY.js";
2
- import { c, a, a as a2 } from "../../functions-BeMkokbY.js";
3
- const escapeStringRegexp = (string = "") => string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
4
- const capitalize = (str) => capitalize$1(str);
1
+ import { l as a } from "../../functions-DzLqXvGt.js";
2
+ import { c as i, a as o, a as l } from "../../functions-DzLqXvGt.js";
3
+ const c = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"), t = (e) => a(e);
5
4
  export {
6
- c as camelize,
7
- capitalize,
8
- escapeStringRegexp,
9
- a as hyphenate,
10
- a2 as kebabCase
5
+ i as camelize,
6
+ t as capitalize,
7
+ c as escapeStringRegexp,
8
+ o as hyphenate,
9
+ l as kebabCase
11
10
  };
12
11
  //# sourceMappingURL=strings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"strings.js","sources":["../../../src/components/_util/strings.ts"],"sourcesContent":["import { capitalize as toCapitalize } from '@vue/shared'\r\nexport {\r\n camelize,\r\n hyphenate,\r\n hyphenate as kebabCase, // alias\r\n} from '@vue/shared'\r\n\r\n/**\r\n * fork from {@link https://github.com/sindresorhus/escape-string-regexp}\r\n */\r\nexport const escapeStringRegexp = (string = '') =>\r\n string.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&').replace(/-/g, '\\\\x2d')\r\n\r\n// NOTE: improve capitalize types. Restore previous code after the [PR](https://github.com/vuejs/core/pull/6212) merge\r\nexport const capitalize = <T extends string>(str: T) =>\r\n toCapitalize(str) as Capitalize<T>\r\n"],"names":["toCapitalize"],"mappings":";;AAUa,MAAA,qBAAqB,CAAC,SAAS,OAC1C,OAAO,QAAQ,uBAAuB,MAAM,EAAE,QAAQ,MAAM,OAAO;AAG9D,MAAM,aAAa,CAAmB,QAC3CA,aAAa,GAAG;"}
1
+ {"version":3,"file":"strings.js","sources":["../../../src/components/_util/strings.ts"],"sourcesContent":["import { capitalize as toCapitalize } from '@vue/shared'\r\nexport {\r\n camelize,\r\n hyphenate,\r\n hyphenate as kebabCase, // alias\r\n} from '@vue/shared'\r\n\r\n/**\r\n * fork from {@link https://github.com/sindresorhus/escape-string-regexp}\r\n */\r\nexport const escapeStringRegexp = (string = '') =>\r\n string.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&').replace(/-/g, '\\\\x2d')\r\n\r\n// NOTE: improve capitalize types. Restore previous code after the [PR](https://github.com/vuejs/core/pull/6212) merge\r\nexport const capitalize = <T extends string>(str: T) =>\r\n toCapitalize(str) as Capitalize<T>\r\n"],"names":["escapeStringRegexp","string","capitalize","str","toCapitalize"],"mappings":";;AAUa,MAAAA,IAAqB,CAACC,IAAS,OAC1CA,EAAO,QAAQ,uBAAuB,MAAM,EAAE,QAAQ,MAAM,OAAO,GAGxDC,IAAa,CAAmBC,MAC3CC,EAAaD,CAAG;"}
@@ -1,22 +1,16 @@
1
- import { cAF, rAF } from "./raf.js";
2
- function throttleByRaf(cb) {
3
- let timer = 0;
4
- const throttle = (...args) => {
5
- if (timer) {
6
- cAF(timer);
7
- }
8
- timer = rAF(() => {
9
- cb(...args);
10
- timer = 0;
1
+ import { cAF as e, rAF as n } from "./raf.js";
2
+ function i(o) {
3
+ let t = 0;
4
+ const r = (...c) => {
5
+ t && e(t), t = n(() => {
6
+ o(...c), t = 0;
11
7
  });
12
8
  };
13
- throttle.cancel = () => {
14
- cAF(timer);
15
- timer = 0;
16
- };
17
- return throttle;
9
+ return r.cancel = () => {
10
+ e(t), t = 0;
11
+ }, r;
18
12
  }
19
13
  export {
20
- throttleByRaf
14
+ i as throttleByRaf
21
15
  };
22
16
  //# sourceMappingURL=throttleByRaf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"throttleByRaf.js","sources":["../../../src/components/_util/throttleByRaf.ts"],"sourcesContent":["import { cAF, rAF } from './raf'\r\n\r\nexport function throttleByRaf(cb: (...args: any[]) => void) {\r\n let timer = 0\r\n\r\n const throttle = (...args: any[]): void => {\r\n if (timer) {\r\n cAF(timer)\r\n }\r\n timer = rAF(() => {\r\n cb(...args)\r\n timer = 0\r\n })\r\n }\r\n\r\n throttle.cancel = () => {\r\n cAF(timer)\r\n timer = 0\r\n }\r\n\r\n return throttle\r\n}\r\n"],"names":[],"mappings":";AAEO,SAAS,cAAc,IAA8B;AAC1D,MAAI,QAAQ;AAEN,QAAA,WAAW,IAAI,SAAsB;AACzC,QAAI,OAAO;AACT,UAAI,KAAK;AAAA,IACX;AACA,YAAQ,IAAI,MAAM;AAChB,SAAG,GAAG,IAAI;AACF,cAAA;AAAA,IAAA,CACT;AAAA,EAAA;AAGH,WAAS,SAAS,MAAM;AACtB,QAAI,KAAK;AACD,YAAA;AAAA,EAAA;AAGH,SAAA;AACT;"}
1
+ {"version":3,"file":"throttleByRaf.js","sources":["../../../src/components/_util/throttleByRaf.ts"],"sourcesContent":["import { cAF, rAF } from './raf'\r\n\r\nexport function throttleByRaf(cb: (...args: any[]) => void) {\r\n let timer = 0\r\n\r\n const throttle = (...args: any[]): void => {\r\n if (timer) {\r\n cAF(timer)\r\n }\r\n timer = rAF(() => {\r\n cb(...args)\r\n timer = 0\r\n })\r\n }\r\n\r\n throttle.cancel = () => {\r\n cAF(timer)\r\n timer = 0\r\n }\r\n\r\n return throttle\r\n}\r\n"],"names":["throttleByRaf","cb","timer","throttle","args","cAF","rAF"],"mappings":";AAEO,SAASA,EAAcC,GAA8B;AAC1D,MAAIC,IAAQ;AAEN,QAAAC,IAAW,IAAIC,MAAsB;AACzC,IAAIF,KACFG,EAAIH,CAAK,GAEXA,IAAQI,EAAI,MAAM;AAChB,MAAAL,EAAG,GAAGG,CAAI,GACFF,IAAA;AAAA,IAAA,CACT;AAAA,EAAA;AAGH,SAAAC,EAAS,SAAS,MAAM;AACtB,IAAAE,EAAIH,CAAK,GACDA,IAAA;AAAA,EAAA,GAGHC;AACT;"}
@@ -1,56 +1,53 @@
1
- const tuple = (...args) => args;
2
- const tupleNum = (...args) => args;
3
- const withInstall = (comp) => {
4
- const c = comp;
5
- c.install = function(app) {
6
- app.component(c.displayName || c.name, comp);
7
- };
8
- return comp;
1
+ const r = (...t) => t, o = (...t) => t, y = (t) => {
2
+ const n = t;
3
+ return n.install = function(e) {
4
+ e.component(n.displayName || n.name, t);
5
+ }, t;
9
6
  };
10
- function eventType() {
7
+ function a() {
11
8
  return { type: [Function, Array] };
12
9
  }
13
- function objectType(defaultVal) {
14
- return { type: Object, default: defaultVal };
10
+ function c(t) {
11
+ return { type: Object, default: t };
15
12
  }
16
- function booleanType(defaultVal) {
17
- return { type: Boolean, default: defaultVal };
13
+ function i(t) {
14
+ return { type: Boolean, default: t };
18
15
  }
19
- function functionType(defaultVal) {
20
- return { type: Function, default: defaultVal };
16
+ function p(t) {
17
+ return { type: Function, default: t };
21
18
  }
22
- function anyType(defaultVal, required) {
23
- const type = { validator: () => true, default: defaultVal };
24
- return required ? type : type;
19
+ function u(t, n) {
20
+ const e = { validator: () => !0, default: t };
21
+ return e;
25
22
  }
26
- function vNodeType() {
27
- return { validator: () => true };
23
+ function f() {
24
+ return { validator: () => !0 };
28
25
  }
29
- function arrayType(defaultVal) {
30
- return { type: Array, default: defaultVal };
26
+ function l(t) {
27
+ return { type: Array, default: t };
31
28
  }
32
- function stringType(defaultVal) {
33
- return { type: String, default: defaultVal };
29
+ function d(t) {
30
+ return { type: String, default: t };
34
31
  }
35
- function numberType(defaultVal) {
36
- return { type: Number, default: defaultVal };
32
+ function T(t) {
33
+ return { type: Number, default: t };
37
34
  }
38
- function someType(types, defaultVal) {
39
- return types ? { type: types, default: defaultVal } : anyType(defaultVal);
35
+ function s(t, n) {
36
+ return t ? { type: t, default: n } : u(n);
40
37
  }
41
38
  export {
42
- anyType,
43
- arrayType,
44
- booleanType,
45
- eventType,
46
- functionType,
47
- numberType,
48
- objectType,
49
- someType,
50
- stringType,
51
- tuple,
52
- tupleNum,
53
- vNodeType,
54
- withInstall
39
+ u as anyType,
40
+ l as arrayType,
41
+ i as booleanType,
42
+ a as eventType,
43
+ p as functionType,
44
+ T as numberType,
45
+ c as objectType,
46
+ s as someType,
47
+ d as stringType,
48
+ r as tuple,
49
+ o as tupleNum,
50
+ f as vNodeType,
51
+ y as withInstall
55
52
  };
56
53
  //# sourceMappingURL=type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.js","sources":["../../../src/components/_util/type.ts"],"sourcesContent":["// @ts-ignore\r\nimport type { App, PropType, Plugin, Ref, VNode, SlotsType } from 'vue'\r\n\r\n// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\r\nexport const tuple = <T extends string[]>(...args: T) => args\r\n\r\nexport const tupleNum = <T extends number[]>(...args: T) => args\r\n\r\n/**\r\n * https://stackoverflow.com/a/59187769\r\n * Extract the type of an element of an array/tuple without performing indexing\r\n */\r\nexport type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never\r\n\r\n/**\r\n * https://github.com/Microsoft/TypeScript/issues/29729\r\n */\r\nexport type LiteralUnion<T extends string> = T | (string & {})\r\n\r\nexport type Data = Record<string, unknown>\r\n\r\nexport type Key = string | number\r\n\r\ntype DefaultFactory<T> = (props: Data) => T | null | undefined\r\n\r\nexport interface PropOptions<T = any, D = T> {\r\n type?: PropType<T> | true | null\r\n required?: boolean\r\n default?: D | DefaultFactory<D> | null | undefined | object\r\n validator?(value: unknown): boolean\r\n}\r\n\r\ndeclare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void\r\n\r\n// eslint-disable-next-line no-undef\r\nexport type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode\r\n\r\nexport const withInstall = <T>(comp: T) => {\r\n const c = comp as any\r\n c.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(c.displayName || c.name, comp)\r\n }\r\n\r\n return comp as T & Plugin\r\n}\r\n\r\nexport type MaybeRef<T> = T | Ref<T>\r\n\r\nexport function eventType<T>() {\r\n return { type: [Function, Array] as PropType<T | T[]> }\r\n}\r\n\r\nexport function objectType<T = {}>(defaultVal?: T) {\r\n return { type: Object as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function booleanType(defaultVal?: boolean) {\r\n return { type: Boolean, default: defaultVal as boolean }\r\n}\r\n\r\nexport function functionType<T = () => {}>(defaultVal?: T) {\r\n return { type: Function as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function anyType<T = any>(defaultVal?: T, required?: boolean) {\r\n const type = { validator: () => true, default: defaultVal as T } as unknown\r\n return required\r\n ? (type as {\r\n type: PropType<T>\r\n default: T\r\n required: true\r\n })\r\n : (type as {\r\n default: T\r\n type: PropType<T>\r\n })\r\n}\r\nexport function vNodeType<T = VueNode>() {\r\n return { validator: () => true } as unknown as { type: PropType<T> }\r\n}\r\n\r\nexport function arrayType<T extends any[]>(defaultVal?: T) {\r\n return { type: Array as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function stringType<T extends string = string>(defaultVal?: T) {\r\n return { type: String as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function numberType<T extends number = number>(defaultVal?: T) {\r\n return { type: Number as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function someType<T>(types?: any[], defaultVal?: T) {\r\n return types ? { type: types as PropType<T>, default: defaultVal as T } : anyType<T>(defaultVal)\r\n}\r\n\r\n// @ts-ignore\r\nexport type CustomSlotsType<T> = SlotsType<T>\r\n\r\nexport type AnyObject = Record<PropertyKey, any>\r\n"],"names":[],"mappings":"AAIa,MAAA,QAAQ,IAAwB,SAAY;AAE5C,MAAA,WAAW,IAAwB,SAAY;AA+B/C,MAAA,cAAc,CAAI,SAAY;AACzC,QAAM,IAAI;AACR,IAAA,UAAU,SAAU,KAAU;AAE9B,QAAI,UAAU,EAAE,eAAe,EAAE,MAAM,IAAI;AAAA,EAAA;AAGtC,SAAA;AACT;AAIO,SAAS,YAAe;AAC7B,SAAO,EAAE,MAAM,CAAC,UAAU,KAAK,EAAuB;AACxD;AAEO,SAAS,WAAmB,YAAgB;AACjD,SAAO,EAAE,MAAM,QAAuB,SAAS,WAAgB;AACjE;AAEO,SAAS,YAAY,YAAsB;AAChD,SAAO,EAAE,MAAM,SAAS,SAAS,WAAsB;AACzD;AAEO,SAAS,aAA2B,YAAgB;AACzD,SAAO,EAAE,MAAM,UAAyB,SAAS,WAAgB;AACnE;AAEgB,SAAA,QAAiB,YAAgB,UAAoB;AACnE,QAAM,OAAO,EAAE,WAAW,MAAM,MAAM,SAAS;AAC/C,SAAO,WACF,OAKA;AAIP;AACO,SAAS,YAAyB;AAChC,SAAA,EAAE,WAAW,MAAM;AAC5B;AAEO,SAAS,UAA2B,YAAgB;AACzD,SAAO,EAAE,MAAM,OAAiC,SAAS,WAAgB;AAC3E;AAEO,SAAS,WAAsC,YAAgB;AACpE,SAAO,EAAE,MAAM,QAAkC,SAAS,WAAgB;AAC5E;AAEO,SAAS,WAAsC,YAAgB;AACpE,SAAO,EAAE,MAAM,QAAkC,SAAS,WAAgB;AAC5E;AAEgB,SAAA,SAAY,OAAe,YAAgB;AAClD,SAAA,QAAQ,EAAE,MAAM,OAAsB,SAAS,WAAgB,IAAI,QAAW,UAAU;AACjG;"}
1
+ {"version":3,"file":"type.js","sources":["../../../src/components/_util/type.ts"],"sourcesContent":["// @ts-ignore\r\nimport type { App, PropType, Plugin, Ref, VNode, SlotsType } from 'vue'\r\n\r\n// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\r\nexport const tuple = <T extends string[]>(...args: T) => args\r\n\r\nexport const tupleNum = <T extends number[]>(...args: T) => args\r\n\r\n/**\r\n * https://stackoverflow.com/a/59187769\r\n * Extract the type of an element of an array/tuple without performing indexing\r\n */\r\nexport type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never\r\n\r\n/**\r\n * https://github.com/Microsoft/TypeScript/issues/29729\r\n */\r\nexport type LiteralUnion<T extends string> = T | (string & {})\r\n\r\nexport type Data = Record<string, unknown>\r\n\r\nexport type Key = string | number\r\n\r\ntype DefaultFactory<T> = (props: Data) => T | null | undefined\r\n\r\nexport interface PropOptions<T = any, D = T> {\r\n type?: PropType<T> | true | null\r\n required?: boolean\r\n default?: D | DefaultFactory<D> | null | undefined | object\r\n validator?(value: unknown): boolean\r\n}\r\n\r\ndeclare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void\r\n\r\n// eslint-disable-next-line no-undef\r\nexport type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode\r\n\r\nexport const withInstall = <T>(comp: T) => {\r\n const c = comp as any\r\n c.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(c.displayName || c.name, comp)\r\n }\r\n\r\n return comp as T & Plugin\r\n}\r\n\r\nexport type MaybeRef<T> = T | Ref<T>\r\n\r\nexport function eventType<T>() {\r\n return { type: [Function, Array] as PropType<T | T[]> }\r\n}\r\n\r\nexport function objectType<T = {}>(defaultVal?: T) {\r\n return { type: Object as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function booleanType(defaultVal?: boolean) {\r\n return { type: Boolean, default: defaultVal as boolean }\r\n}\r\n\r\nexport function functionType<T = () => {}>(defaultVal?: T) {\r\n return { type: Function as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function anyType<T = any>(defaultVal?: T, required?: boolean) {\r\n const type = { validator: () => true, default: defaultVal as T } as unknown\r\n return required\r\n ? (type as {\r\n type: PropType<T>\r\n default: T\r\n required: true\r\n })\r\n : (type as {\r\n default: T\r\n type: PropType<T>\r\n })\r\n}\r\nexport function vNodeType<T = VueNode>() {\r\n return { validator: () => true } as unknown as { type: PropType<T> }\r\n}\r\n\r\nexport function arrayType<T extends any[]>(defaultVal?: T) {\r\n return { type: Array as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function stringType<T extends string = string>(defaultVal?: T) {\r\n return { type: String as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function numberType<T extends number = number>(defaultVal?: T) {\r\n return { type: Number as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function someType<T>(types?: any[], defaultVal?: T) {\r\n return types ? { type: types as PropType<T>, default: defaultVal as T } : anyType<T>(defaultVal)\r\n}\r\n\r\n// @ts-ignore\r\nexport type CustomSlotsType<T> = SlotsType<T>\r\n\r\nexport type AnyObject = Record<PropertyKey, any>\r\n"],"names":["tuple","args","tupleNum","withInstall","comp","c","app","eventType","objectType","defaultVal","booleanType","functionType","anyType","required","type","vNodeType","arrayType","stringType","numberType","someType","types"],"mappings":"AAIa,MAAAA,IAAQ,IAAwBC,MAAYA,GAE5CC,IAAW,IAAwBD,MAAYA,GA+B/CE,IAAc,CAAIC,MAAY;AACzC,QAAMC,IAAID;AACR,SAAAC,EAAA,UAAU,SAAUC,GAAU;AAE9B,IAAAA,EAAI,UAAUD,EAAE,eAAeA,EAAE,MAAMD,CAAI;AAAA,EAAA,GAGtCA;AACT;AAIO,SAASG,IAAe;AAC7B,SAAO,EAAE,MAAM,CAAC,UAAU,KAAK,EAAuB;AACxD;AAEO,SAASC,EAAmBC,GAAgB;AACjD,SAAO,EAAE,MAAM,QAAuB,SAASA,EAAgB;AACjE;AAEO,SAASC,EAAYD,GAAsB;AAChD,SAAO,EAAE,MAAM,SAAS,SAASA,EAAsB;AACzD;AAEO,SAASE,EAA2BF,GAAgB;AACzD,SAAO,EAAE,MAAM,UAAyB,SAASA,EAAgB;AACnE;AAEgB,SAAAG,EAAiBH,GAAgBI,GAAoB;AACnE,QAAMC,IAAO,EAAE,WAAW,MAAM,IAAM,SAASL;AAC/C,SACKK;AASP;AACO,SAASC,IAAyB;AAChC,SAAA,EAAE,WAAW,MAAM;AAC5B;AAEO,SAASC,EAA2BP,GAAgB;AACzD,SAAO,EAAE,MAAM,OAAiC,SAASA,EAAgB;AAC3E;AAEO,SAASQ,EAAsCR,GAAgB;AACpE,SAAO,EAAE,MAAM,QAAkC,SAASA,EAAgB;AAC5E;AAEO,SAASS,EAAsCT,GAAgB;AACpE,SAAO,EAAE,MAAM,QAAkC,SAASA,EAAgB;AAC5E;AAEgB,SAAAU,EAAYC,GAAeX,GAAgB;AAClD,SAAAW,IAAQ,EAAE,MAAMA,GAAsB,SAASX,EAAgB,IAAIG,EAAWH,CAAU;AACjG;"}
@@ -1,44 +1,25 @@
1
- import { i as isArray, d as isObject, e as isString } from "../../functions-BeMkokbY.js";
2
- import { f, b, k, g, j } from "../../functions-BeMkokbY.js";
3
- import { isNil } from "lodash-es";
4
- import { isVNode } from "vue";
5
- const isUndefined = (val) => val === void 0;
6
- const isBoolean = (val) => typeof val === "boolean";
7
- const isNumber = (val) => typeof val === "number";
8
- const isEmpty = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;
9
- const isElement = (e) => {
10
- if (typeof Element === "undefined") return false;
11
- return e instanceof Element;
12
- };
13
- const isPropAbsent = (prop) => {
14
- return isNil(prop);
15
- };
16
- const isStringNumber = (val) => {
17
- if (!isString(val)) {
18
- return false;
19
- }
20
- return !Number.isNaN(Number(val));
21
- };
22
- const isWindow = (val) => {
23
- return val === window;
24
- };
1
+ import { i as s, d as t, e as i } from "../../functions-DzLqXvGt.js";
2
+ import { f as l, b as g, k as j, g as E, j as w } from "../../functions-DzLqXvGt.js";
3
+ import { isNil as n } from "lodash-es";
4
+ import { isVNode as O } from "vue";
5
+ const m = (e) => e === void 0, f = (e) => typeof e == "boolean", c = (e) => typeof e == "number", u = (e) => !e && e !== 0 || s(e) && e.length === 0 || t(e) && !Object.keys(e).length, b = (e) => typeof Element > "u" ? !1 : e instanceof Element, a = (e) => n(e), p = (e) => i(e) ? !Number.isNaN(Number(e)) : !1, d = (e) => e === window;
25
6
  export {
26
- isArray,
27
- isBoolean,
28
- f as isDate,
29
- isElement,
30
- isEmpty,
31
- b as isFunction,
32
- isNumber,
33
- isObject,
34
- k as isPlainObject,
35
- g as isPromise,
36
- isPropAbsent,
37
- isString,
38
- isStringNumber,
39
- j as isSymbol,
40
- isUndefined,
41
- isVNode,
42
- isWindow
7
+ s as isArray,
8
+ f as isBoolean,
9
+ l as isDate,
10
+ b as isElement,
11
+ u as isEmpty,
12
+ g as isFunction,
13
+ c as isNumber,
14
+ t as isObject,
15
+ j as isPlainObject,
16
+ E as isPromise,
17
+ a as isPropAbsent,
18
+ i as isString,
19
+ p as isStringNumber,
20
+ w as isSymbol,
21
+ m as isUndefined,
22
+ O as isVNode,
23
+ d as isWindow
43
24
  };
44
25
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":["../../../src/components/_util/types.ts"],"sourcesContent":["import { isArray, isObject, isString } from '@vue/shared'\r\nimport { isNil } from 'lodash-unified'\r\n\r\nexport {\r\n isArray,\r\n isFunction,\r\n isObject,\r\n isString,\r\n isDate,\r\n isPromise,\r\n isSymbol,\r\n isPlainObject,\r\n} from '@vue/shared'\r\nexport { isVNode } from 'vue'\r\n\r\nexport const isUndefined = (val: any): val is undefined => val === undefined\r\nexport const isBoolean = (val: any): val is boolean => typeof val === 'boolean'\r\nexport const isNumber = (val: any): val is number => typeof val === 'number'\r\n\r\nexport const isEmpty = (val: unknown) =>\r\n (!val && val !== 0) ||\r\n (isArray(val) && val.length === 0) ||\r\n (isObject(val) && !Object.keys(val).length)\r\n\r\nexport const isElement = (e: unknown): e is Element => {\r\n if (typeof Element === 'undefined') return false\r\n return e instanceof Element\r\n}\r\n\r\nexport const isPropAbsent = (prop: unknown): prop is null | undefined => {\r\n return isNil(prop)\r\n}\r\n\r\nexport const isStringNumber = (val: string): boolean => {\r\n if (!isString(val)) {\r\n return false\r\n }\r\n return !Number.isNaN(Number(val))\r\n}\r\n\r\nexport const isWindow = (val: unknown): val is Window => {\r\n return val === window\r\n}\r\n"],"names":[],"mappings":";;;;AAea,MAAA,cAAc,CAAC,QAA+B,QAAQ;AAC5D,MAAM,YAAY,CAAC,QAA6B,OAAO,QAAQ;AAC/D,MAAM,WAAW,CAAC,QAA4B,OAAO,QAAQ;AAEvD,MAAA,UAAU,CAAC,QACrB,CAAC,OAAO,QAAQ,KAChB,QAAQ,GAAG,KAAK,IAAI,WAAW,KAC/B,SAAS,GAAG,KAAK,CAAC,OAAO,KAAK,GAAG,EAAE;AAEzB,MAAA,YAAY,CAAC,MAA6B;AACjD,MAAA,OAAO,YAAY,YAAoB,QAAA;AAC3C,SAAO,aAAa;AACtB;AAEa,MAAA,eAAe,CAAC,SAA4C;AACvE,SAAO,MAAM,IAAI;AACnB;AAEa,MAAA,iBAAiB,CAAC,QAAyB;AAClD,MAAA,CAAC,SAAS,GAAG,GAAG;AACX,WAAA;AAAA,EACT;AACA,SAAO,CAAC,OAAO,MAAM,OAAO,GAAG,CAAC;AAClC;AAEa,MAAA,WAAW,CAAC,QAAgC;AACvD,SAAO,QAAQ;AACjB;"}
1
+ {"version":3,"file":"types.js","sources":["../../../src/components/_util/types.ts"],"sourcesContent":["import { isArray, isObject, isString } from '@vue/shared'\r\nimport { isNil } from 'lodash-unified'\r\n\r\nexport {\r\n isArray,\r\n isFunction,\r\n isObject,\r\n isString,\r\n isDate,\r\n isPromise,\r\n isSymbol,\r\n isPlainObject,\r\n} from '@vue/shared'\r\nexport { isVNode } from 'vue'\r\n\r\nexport const isUndefined = (val: any): val is undefined => val === undefined\r\nexport const isBoolean = (val: any): val is boolean => typeof val === 'boolean'\r\nexport const isNumber = (val: any): val is number => typeof val === 'number'\r\n\r\nexport const isEmpty = (val: unknown) =>\r\n (!val && val !== 0) ||\r\n (isArray(val) && val.length === 0) ||\r\n (isObject(val) && !Object.keys(val).length)\r\n\r\nexport const isElement = (e: unknown): e is Element => {\r\n if (typeof Element === 'undefined') return false\r\n return e instanceof Element\r\n}\r\n\r\nexport const isPropAbsent = (prop: unknown): prop is null | undefined => {\r\n return isNil(prop)\r\n}\r\n\r\nexport const isStringNumber = (val: string): boolean => {\r\n if (!isString(val)) {\r\n return false\r\n }\r\n return !Number.isNaN(Number(val))\r\n}\r\n\r\nexport const isWindow = (val: unknown): val is Window => {\r\n return val === window\r\n}\r\n"],"names":["isUndefined","val","isBoolean","isNumber","isEmpty","isArray","isObject","isElement","isPropAbsent","prop","isNil","isStringNumber","isString","isWindow"],"mappings":";;;;AAea,MAAAA,IAAc,CAACC,MAA+BA,MAAQ,QACtDC,IAAY,CAACD,MAA6B,OAAOA,KAAQ,WACzDE,IAAW,CAACF,MAA4B,OAAOA,KAAQ,UAEvDG,IAAU,CAACH,MACrB,CAACA,KAAOA,MAAQ,KAChBI,EAAQJ,CAAG,KAAKA,EAAI,WAAW,KAC/BK,EAASL,CAAG,KAAK,CAAC,OAAO,KAAKA,CAAG,EAAE,QAEzBM,IAAY,CAAC,MACpB,OAAO,UAAY,MAAoB,KACpC,aAAa,SAGTC,IAAe,CAACC,MACpBC,EAAMD,CAAI,GAGNE,IAAiB,CAACV,MACxBW,EAASX,CAAG,IAGV,CAAC,OAAO,MAAM,OAAOA,CAAG,CAAC,IAFvB,IAKEY,IAAW,CAACZ,MAChBA,MAAQ;"}
@@ -1,5 +1,5 @@
1
- const mutable = (val) => val;
1
+ const e = (t) => t;
2
2
  export {
3
- mutable
3
+ e as mutable
4
4
  };
5
5
  //# sourceMappingURL=typescript.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.js","sources":["../../../src/components/_util/typescript.ts"],"sourcesContent":["export const mutable = <T extends readonly any[] | Record<string, unknown>>(\r\n val: T\r\n) => val as Mutable<typeof val>\r\nexport type Mutable<T> = { -readonly [P in keyof T]: T[P] }\r\n\r\nexport type HTMLElementCustomized<T> = HTMLElement & T\r\n\r\n/**\r\n * @deprecated stop to use null\r\n * @see {@link https://github.com/sindresorhus/meta/discussions/7}\r\n */\r\nexport type Nullable<T> = T | null\r\n\r\nexport type Arrayable<T> = T | T[]\r\nexport type Awaitable<T> = Promise<T> | T\r\n"],"names":[],"mappings":"AAAa,MAAA,UAAU,CACrB,QACG;"}
1
+ {"version":3,"file":"typescript.js","sources":["../../../src/components/_util/typescript.ts"],"sourcesContent":["export const mutable = <T extends readonly any[] | Record<string, unknown>>(\r\n val: T\r\n) => val as Mutable<typeof val>\r\nexport type Mutable<T> = { -readonly [P in keyof T]: T[P] }\r\n\r\nexport type HTMLElementCustomized<T> = HTMLElement & T\r\n\r\n/**\r\n * @deprecated stop to use null\r\n * @see {@link https://github.com/sindresorhus/meta/discussions/7}\r\n */\r\nexport type Nullable<T> = T | null\r\n\r\nexport type Arrayable<T> = T | T[]\r\nexport type Awaitable<T> = Promise<T> | T\r\n"],"names":["mutable","val"],"mappings":"AAAa,MAAAA,IAAU,CACrBC,MACGA;"}