orion-design 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. package/README.md +5 -0
  2. package/dist/components/Button/Button.vue.d.ts +2 -0
  3. package/dist/components/Button/index.d.ts +4 -0
  4. package/dist/components/Button/index.js +27 -0
  5. package/dist/components/Button/index.js.map +1 -0
  6. package/dist/components/Flex/Col.d.ts +4 -4
  7. package/dist/components/Flex/Item.d.ts +4 -4
  8. package/dist/components/Flex/Row.d.ts +4 -4
  9. package/dist/components/Flex/index.d.ts +4 -4
  10. package/dist/components/Flex/index.js +95 -127
  11. package/dist/components/Flex/index.js.map +1 -0
  12. package/dist/components/Form/Form.d.ts +21 -0
  13. package/dist/components/Form/Form.js +5 -0
  14. package/dist/components/Form/Form.js.map +1 -0
  15. package/dist/components/Form/Form.vue.d.ts +465 -0
  16. package/dist/components/Form/PasswordInput/PasswordInput.d.ts +15 -0
  17. package/dist/components/Form/PasswordInput/PasswordInput.js +2 -0
  18. package/dist/components/Form/PasswordInput/PasswordInput.js.map +1 -0
  19. package/dist/components/Form/PasswordInput/PasswordInput.vue.d.ts +3 -0
  20. package/dist/components/Form/PasswordInput/index.d.ts +1 -0
  21. package/dist/components/Form/PasswordInput/index.js +2 -0
  22. package/dist/components/Form/PasswordInput/index.js.map +1 -0
  23. package/dist/components/Form/StringInput/StringInput.d.ts +15 -0
  24. package/dist/components/Form/StringInput/StringInput.js +2 -0
  25. package/dist/components/Form/StringInput/StringInput.js.map +1 -0
  26. package/dist/components/Form/StringInput/StringInput.vue.d.ts +3 -0
  27. package/dist/components/Form/StringInput/index.d.ts +1 -0
  28. package/dist/components/Form/StringInput/index.js +2 -0
  29. package/dist/components/Form/StringInput/index.js.map +1 -0
  30. package/dist/components/Form/Textarea/Textarea.d.ts +16 -0
  31. package/dist/components/Form/Textarea/Textarea.js +2 -0
  32. package/dist/components/Form/Textarea/Textarea.js.map +1 -0
  33. package/dist/components/Form/Textarea/Textarea.vue.d.ts +3 -0
  34. package/dist/components/Form/Textarea/index.d.ts +1 -0
  35. package/dist/components/Form/Textarea/index.js +2 -0
  36. package/dist/components/Form/Textarea/index.js.map +1 -0
  37. package/dist/components/Form/hooks/useForm.d.ts +4 -0
  38. package/dist/components/Form/hooks/useForm.js +21 -0
  39. package/dist/components/Form/hooks/useForm.js.map +1 -0
  40. package/dist/components/Form/index.d.ts +273 -0
  41. package/dist/components/Form/index.js +194 -0
  42. package/dist/components/Form/index.js.map +1 -0
  43. package/dist/components/Modal/index.d.ts +1 -14
  44. package/dist/components/Modal/useModal.d.ts +1 -1
  45. package/dist/components/Modal/useModal.js +7 -7
  46. package/dist/components/Modal/useModal.js.map +1 -0
  47. package/dist/components/Pagetable/Pagetable.d.ts +79 -0
  48. package/dist/components/Pagetable/columns/PagetableDatecolumn.d.ts +88 -0
  49. package/dist/components/Pagetable/columns/PagetableStringcolumn.d.ts +62 -0
  50. package/dist/components/Pagetable/index.d.ts +60 -0
  51. package/dist/components/Pagetable/index.js +144 -0
  52. package/dist/components/Pagetable/index.js.map +1 -0
  53. package/dist/components/Pagetable/interface.d.ts +10 -0
  54. package/dist/components/Pagetable/interface.js +2 -0
  55. package/dist/components/Pagetable/interface.js.map +1 -0
  56. package/dist/components/Space/index.d.ts +9 -9
  57. package/dist/components/_util/arrays.d.ts +5 -0
  58. package/dist/components/_util/arrays.js +8 -0
  59. package/dist/components/_util/arrays.js.map +1 -0
  60. package/dist/components/_util/browser.d.ts +3 -0
  61. package/dist/components/_util/browser.js +9 -0
  62. package/dist/components/_util/browser.js.map +1 -0
  63. package/dist/components/_util/classNames.js +20 -27
  64. package/dist/components/_util/classNames.js.map +1 -0
  65. package/dist/components/_util/dom/aria.d.ts +30 -0
  66. package/dist/components/_util/dom/aria.js +46 -0
  67. package/dist/components/_util/dom/aria.js.map +1 -0
  68. package/dist/components/_util/dom/element.d.ts +3 -0
  69. package/dist/components/_util/dom/element.js +18 -0
  70. package/dist/components/_util/dom/element.js.map +1 -0
  71. package/dist/components/_util/dom/event.d.ts +6 -0
  72. package/dist/components/_util/dom/event.js +10 -0
  73. package/dist/components/_util/dom/event.js.map +1 -0
  74. package/dist/components/_util/dom/index.d.ts +6 -0
  75. package/dist/components/_util/dom/index.js +39 -0
  76. package/dist/components/_util/dom/index.js.map +1 -0
  77. package/dist/components/_util/dom/position.d.ts +7 -0
  78. package/dist/components/_util/dom/position.js +30 -0
  79. package/dist/components/_util/dom/position.js.map +1 -0
  80. package/dist/components/_util/dom/scroll.d.ts +11 -0
  81. package/dist/components/_util/dom/scroll.js +78 -0
  82. package/dist/components/_util/dom/scroll.js.map +1 -0
  83. package/dist/components/_util/dom/style.d.ts +9 -0
  84. package/dist/components/_util/dom/style.js +58 -0
  85. package/dist/components/_util/dom/style.js.map +1 -0
  86. package/dist/components/_util/easings.d.ts +1 -0
  87. package/dist/components/_util/easings.js +8 -0
  88. package/dist/components/_util/easings.js.map +1 -0
  89. package/dist/components/_util/error.d.ts +3 -0
  90. package/dist/components/_util/error.js +22 -0
  91. package/dist/components/_util/error.js.map +1 -0
  92. package/dist/components/_util/functions.d.ts +1 -0
  93. package/dist/components/_util/functions.js +6 -0
  94. package/dist/components/_util/functions.js.map +1 -0
  95. package/dist/components/_util/i18n.d.ts +1 -0
  96. package/dist/components/_util/i18n.js +5 -0
  97. package/dist/components/_util/i18n.js.map +1 -0
  98. package/dist/components/_util/index.d.ts +15 -0
  99. package/dist/components/_util/index.js +140 -0
  100. package/dist/components/_util/index.js.map +1 -0
  101. package/dist/components/_util/isValid.js +4 -4
  102. package/dist/components/_util/isValid.js.map +1 -0
  103. package/dist/components/_util/objects.d.ts +8 -0
  104. package/dist/components/_util/objects.js +17 -0
  105. package/dist/components/_util/objects.js.map +1 -0
  106. package/dist/components/_util/props-util/index.d.ts +4 -4
  107. package/dist/components/_util/props-util/index.js +23 -50
  108. package/dist/components/_util/props-util/index.js.map +1 -0
  109. package/dist/components/_util/props-util/initDefaultProps.d.ts +2 -2
  110. package/dist/components/_util/props-util/initDefaultProps.js +13 -24
  111. package/dist/components/_util/props-util/initDefaultProps.js.map +1 -0
  112. package/dist/components/_util/raf.d.ts +2 -0
  113. package/dist/components/_util/raf.js +7 -0
  114. package/dist/components/_util/raf.js.map +1 -0
  115. package/dist/components/_util/rand.d.ts +12 -0
  116. package/dist/components/_util/rand.js +6 -0
  117. package/dist/components/_util/rand.js.map +1 -0
  118. package/dist/components/_util/strings.d.ts +6 -0
  119. package/dist/components/_util/strings.js +11 -0
  120. package/dist/components/_util/strings.js.map +1 -0
  121. package/dist/components/_util/throttleByRaf.d.ts +4 -0
  122. package/dist/components/_util/throttleByRaf.js +16 -0
  123. package/dist/components/_util/throttleByRaf.js.map +1 -0
  124. package/dist/components/_util/type.d.ts +1 -1
  125. package/dist/components/_util/type.js +48 -65
  126. package/dist/components/_util/type.js.map +1 -0
  127. package/dist/components/_util/types.d.ts +10 -0
  128. package/dist/components/_util/types.js +25 -0
  129. package/dist/components/_util/types.js.map +1 -0
  130. package/dist/components/_util/typescript.d.ts +12 -0
  131. package/dist/components/_util/typescript.js +5 -0
  132. package/dist/components/_util/typescript.js.map +1 -0
  133. package/dist/components/_util/util.d.ts +1 -1
  134. package/dist/components/_util/util.js +46 -74
  135. package/dist/components/_util/util.js.map +1 -0
  136. package/dist/components/_util/vue/global-node.d.ts +3 -0
  137. package/dist/components/_util/vue/global-node.js +21 -0
  138. package/dist/components/_util/vue/global-node.js.map +1 -0
  139. package/dist/components/_util/vue/icon.d.ts +23 -0
  140. package/dist/components/_util/vue/icon.js +154 -0
  141. package/dist/components/_util/vue/icon.js.map +1 -0
  142. package/dist/components/_util/vue/index.d.ts +9 -0
  143. package/dist/components/_util/vue/index.js +44 -0
  144. package/dist/components/_util/vue/index.js.map +1 -0
  145. package/dist/components/_util/vue/install.d.ts +6 -0
  146. package/dist/components/_util/vue/install.js +21 -0
  147. package/dist/components/_util/vue/install.js.map +1 -0
  148. package/dist/components/_util/vue/props/index.d.ts +3 -0
  149. package/dist/components/_util/vue/props/index.js +9 -0
  150. package/dist/components/_util/vue/props/index.js.map +1 -0
  151. package/dist/components/_util/vue/props/runtime.d.ts +29 -0
  152. package/dist/components/_util/vue/props/runtime.js +37 -0
  153. package/dist/components/_util/vue/props/runtime.js.map +1 -0
  154. package/dist/components/_util/vue/props/types.d.ts +120 -0
  155. package/dist/components/_util/vue/props/types.js +2 -0
  156. package/dist/components/_util/vue/props/types.js.map +1 -0
  157. package/dist/components/_util/vue/props/util.d.ts +8 -0
  158. package/dist/components/_util/vue/props/util.js +2 -0
  159. package/dist/components/_util/vue/props/util.js.map +1 -0
  160. package/dist/components/_util/vue/refs.d.ts +3 -0
  161. package/dist/components/_util/vue/refs.js +12 -0
  162. package/dist/components/_util/vue/refs.js.map +1 -0
  163. package/dist/components/_util/vue/size.d.ts +2 -0
  164. package/dist/components/_util/vue/size.js +6 -0
  165. package/dist/components/_util/vue/size.js.map +1 -0
  166. package/dist/components/_util/vue/typescript.d.ts +5 -0
  167. package/dist/components/_util/vue/typescript.js +2 -0
  168. package/dist/components/_util/vue/typescript.js.map +1 -0
  169. package/dist/components/_util/vue/validator.d.ts +3 -0
  170. package/dist/components/_util/vue/validator.js +7 -0
  171. package/dist/components/_util/vue/validator.js.map +1 -0
  172. package/dist/components/_util/vue/vnode.d.ts +50 -0
  173. package/dist/components/_util/vue/vnode.js +68 -0
  174. package/dist/components/_util/vue/vnode.js.map +1 -0
  175. package/dist/components/_util/vue-types/index.d.ts +3 -3
  176. package/dist/components/_util/vue-types/index.js +275 -417
  177. package/dist/components/_util/vue-types/index.js.map +1 -0
  178. package/dist/components/components.d.ts +4 -0
  179. package/dist/components/components.js +18 -12
  180. package/dist/components/components.js.map +1 -0
  181. package/dist/components/index.d.ts +1 -1
  182. package/dist/components/index.js +25 -24
  183. package/dist/components/index.js.map +1 -0
  184. package/dist/components-BZukhWDk.js +106 -0
  185. package/dist/components-BZukhWDk.js.map +1 -0
  186. package/dist/error/OrionError.js +7 -12
  187. package/dist/error/OrionError.js.map +1 -0
  188. package/dist/functions-DzLqXvGt.js +33 -0
  189. package/dist/functions-DzLqXvGt.js.map +1 -0
  190. package/dist/index-C8JNJPWW.js +8 -0
  191. package/dist/index-C8JNJPWW.js.map +1 -0
  192. package/dist/index.css +1 -44
  193. package/dist/index.d.ts +1 -1
  194. package/dist/index.js +24 -14
  195. package/dist/index.js.map +1 -0
  196. package/dist/print/LodopFuncs.js +48 -111
  197. package/dist/print/LodopFuncs.js.map +1 -0
  198. package/dist/print/index.d.ts +2 -2
  199. package/dist/print/index.js +111 -220
  200. package/dist/print/index.js.map +1 -0
  201. package/dist/request/ErrorHandlerChain.js +17 -15
  202. package/dist/request/ErrorHandlerChain.js.map +1 -0
  203. package/dist/request/RequestFilterChain.d.ts +1 -1
  204. package/dist/request/RequestFilterChain.js +16 -14
  205. package/dist/request/RequestFilterChain.js.map +1 -0
  206. package/dist/request/ResponseParserChain.d.ts +1 -1
  207. package/dist/request/ResponseParserChain.js +17 -15
  208. package/dist/request/ResponseParserChain.js.map +1 -0
  209. package/dist/request/disivion/DateSerializer.js +25 -46
  210. package/dist/request/disivion/DateSerializer.js.map +1 -0
  211. package/dist/request/disivion/DivisionErrorHandler.d.ts +1 -1
  212. package/dist/request/disivion/DivisionErrorHandler.js +30 -52
  213. package/dist/request/disivion/DivisionErrorHandler.js.map +1 -0
  214. package/dist/request/disivion/DivisionResponseParser.d.ts +2 -2
  215. package/dist/request/disivion/DivisionResponseParser.js +13 -25
  216. package/dist/request/disivion/DivisionResponseParser.js.map +1 -0
  217. package/dist/request/disivion/index.d.ts +3 -3
  218. package/dist/request/disivion/index.js +230 -480
  219. package/dist/request/disivion/index.js.map +1 -0
  220. package/dist/request/error/BizExceptionResponseError.d.ts +2 -2
  221. package/dist/request/error/BizExceptionResponseError.js +8 -15
  222. package/dist/request/error/BizExceptionResponseError.js.map +1 -0
  223. package/dist/request/error/ExceptionResponseError.d.ts +2 -2
  224. package/dist/request/error/ExceptionResponseError.js +8 -15
  225. package/dist/request/error/ExceptionResponseError.js.map +1 -0
  226. package/dist/request/error/ResponseError.d.ts +1 -1
  227. package/dist/request/error/ResponseError.js +7 -14
  228. package/dist/request/error/ResponseError.js.map +1 -0
  229. package/dist/request/error/SessionExceptionResponseError.d.ts +2 -2
  230. package/dist/request/error/SessionExceptionResponseError.js +8 -15
  231. package/dist/request/error/SessionExceptionResponseError.js.map +1 -0
  232. package/dist/request/index.js +11 -17
  233. package/dist/request/index.js.map +1 -0
  234. package/dist/style/index.d.ts +0 -3
  235. package/dist/style/index.js +1 -0
  236. package/dist/style/index.js.map +1 -0
  237. package/dist/utils/DateUtil.js +36 -50
  238. package/dist/utils/DateUtil.js.map +1 -0
  239. package/dist/utils/NumberUtil.js +9 -8
  240. package/dist/utils/NumberUtil.js.map +1 -0
  241. package/dist/utils/cloneDeep.js +5 -1
  242. package/dist/utils/cloneDeep.js.map +1 -0
  243. package/dist/utils/delay.js +6 -4
  244. package/dist/utils/delay.js.map +1 -0
  245. package/dist/utils/functions.d.ts +1 -0
  246. package/dist/utils/functions.js +6 -0
  247. package/dist/utils/functions.js.map +1 -0
  248. package/dist/utils/index.js +15 -9
  249. package/dist/utils/index.js.map +1 -0
  250. package/dist/utils/md5.js +121 -244
  251. package/dist/utils/md5.js.map +1 -0
  252. package/dist/utils/uuid.js +28 -58
  253. package/dist/utils/uuid.js.map +1 -0
  254. package/dist/utils/vue/install.d.ts +6 -0
  255. package/dist/utils/vue/install.js +21 -0
  256. package/dist/utils/vue/install.js.map +1 -0
  257. package/dist/utils/vue/typescript.d.ts +5 -0
  258. package/dist/utils/vue/typescript.js +2 -0
  259. package/dist/utils/vue/typescript.js.map +1 -0
  260. package/dist/version/index.d.ts +1 -1
  261. package/dist/version/index.js +5 -6
  262. package/dist/version/index.js.map +1 -0
  263. package/dist/version/version.d.ts +1 -1
  264. package/dist/version/version.js +5 -3
  265. package/dist/version/version.js.map +1 -0
  266. package/dist/vite.svg +1 -0
  267. package/global.d.ts +6 -0
  268. package/package.json +52 -63
  269. package/dist/components-DhjIbmR3.js +0 -128
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aria.js","sources":["../../../../src/components/_util/dom/aria.ts"],"sourcesContent":["const FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex=\"-1\"]),input:not([disabled]),input:not([type=\"hidden\"]),select:not([disabled]),textarea:not([disabled])`\r\n\r\n/**\r\n * Determine if the testing element is visible on screen no matter if its on the viewport or not\r\n */\r\nexport const isVisible = (element: HTMLElement) => {\r\n if (process.env.NODE_ENV === 'test') return true\r\n const computed = getComputedStyle(element)\r\n // element.offsetParent won't work on fix positioned\r\n // WARNING: potential issue here, going to need some expert advices on this issue\r\n return computed.position === 'fixed' ? false : element.offsetParent !== null\r\n}\r\n\r\nexport const obtainAllFocusableElements = (\r\n element: HTMLElement\r\n): HTMLElement[] => {\r\n return Array.from(\r\n element.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENT_SELECTORS)\r\n ).filter((item: HTMLElement) => isFocusable(item) && isVisible(item))\r\n}\r\n\r\n/**\r\n * @desc Determine if target element is focusable\r\n * @param element {HTMLElement}\r\n * @returns {Boolean} true if it is focusable\r\n */\r\nexport const isFocusable = (element: HTMLElement): boolean => {\r\n if (\r\n element.tabIndex > 0 ||\r\n (element.tabIndex === 0 && element.getAttribute('tabIndex') !== null)\r\n ) {\r\n return true\r\n }\r\n // HTMLButtonElement has disabled\r\n if ((element as HTMLButtonElement).disabled) {\r\n return false\r\n }\r\n\r\n switch (element.nodeName) {\r\n case 'A': {\r\n // casting current element to Specific HTMLElement in order to be more type precise\r\n return (\r\n !!(element as HTMLAnchorElement).href &&\r\n (element as HTMLAnchorElement).rel !== 'ignore'\r\n )\r\n }\r\n case 'INPUT': {\r\n return !(\r\n (element as HTMLInputElement).type === 'hidden' ||\r\n (element as HTMLInputElement).type === 'file'\r\n )\r\n }\r\n case 'BUTTON':\r\n case 'SELECT':\r\n case 'TEXTAREA': {\r\n return true\r\n }\r\n default: {\r\n return false\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * @desc Set Attempt to set focus on the current node.\r\n * @param element\r\n * The node to attempt to focus on.\r\n * @returns\r\n * true if element is focused.\r\n */\r\nexport const attemptFocus = (element: HTMLElement): boolean => {\r\n if (!isFocusable(element)) {\r\n return false\r\n }\r\n // Remove the old try catch block since there will be no error to be thrown\r\n element.focus?.()\r\n return document.activeElement === element\r\n}\r\n\r\n/**\r\n * Trigger an event\r\n * mouseenter, mouseleave, mouseover, keyup, change, click, etc.\r\n * @param {HTMLElement} elm\r\n * @param {String} name\r\n * @param {*} opts\r\n */\r\nexport const triggerEvent = function (\r\n elm: HTMLElement,\r\n name: string,\r\n ...opts: Array<boolean>\r\n): HTMLElement {\r\n let eventName: string\r\n\r\n if (name.includes('mouse') || name.includes('click')) {\r\n eventName = 'MouseEvents'\r\n } else if (name.includes('key')) {\r\n eventName = 'KeyboardEvent'\r\n } else {\r\n eventName = 'HTMLEvents'\r\n }\r\n const evt = document.createEvent(eventName)\r\n\r\n evt.initEvent(name, ...opts)\r\n elm.dispatchEvent(evt)\r\n return elm\r\n}\r\n\r\nexport const isLeaf = (el: HTMLElement) => !el.getAttribute('aria-owns')\r\n\r\nexport const getSibling = (\r\n el: HTMLElement,\r\n distance: number,\r\n elClass: string\r\n) => {\r\n const { parentNode } = el\r\n if (!parentNode) return null\r\n const siblings = parentNode.querySelectorAll(elClass)\r\n const index = Array.prototype.indexOf.call(siblings, el)\r\n return siblings[index + distance] || null\r\n}\r\n\r\nexport const focusNode = (el: HTMLElement) => {\r\n if (!el) return\r\n el.focus()\r\n !isLeaf(el) && el.click()\r\n}\r\n"],"names":["FOCUSABLE_ELEMENT_SELECTORS","isVisible","element","obtainAllFocusableElements","item","isFocusable","attemptFocus","_a","triggerEvent","elm","name","opts","eventName","evt","isLeaf","el","getSibling","distance","elClass","parentNode","siblings","index","focusNode"],"mappings":"AAAA,MAAMA,IAA8B,8KAKvBC,IAAY,CAACC,MACpB,QAAQ,IAAI,aAAa,SAAe,KAC3B,iBAAiBA,CAAO,EAGzB,aAAa,UAAU,KAAQA,EAAQ,iBAAiB,MAG7DC,IAA6B,CACxCD,MAEO,MAAM;AAAA,EACXA,EAAQ,iBAA8BF,CAA2B;AAAA,EACjE,OAAO,CAACI,MAAsBC,EAAYD,CAAI,KAAKH,EAAUG,CAAI,CAAC,GAQzDC,IAAc,CAACH,MAAkC;AAE1D,MAAAA,EAAQ,WAAW,KAClBA,EAAQ,aAAa,KAAKA,EAAQ,aAAa,UAAU,MAAM;AAEzD,WAAA;AAGT,MAAKA,EAA8B;AAC1B,WAAA;AAGT,UAAQA,EAAQ,UAAU;AAAA,IACxB,KAAK;AAEH,aACE,CAAC,CAAEA,EAA8B,QAChCA,EAA8B,QAAQ;AAAA,IAG3C,KAAK;AACH,aAAO,EACJA,EAA6B,SAAS,YACtCA,EAA6B,SAAS;AAAA,IAG3C,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACI,aAAA;AAAA,IAET;AACS,aAAA;AAAA,EAEX;AACF,GASaI,IAAe,CAACJ,MAAkC;AAtE/D,MAAAK;AAuEM,SAACF,EAAYH,CAAO,MAIxBK,IAAAL,EAAQ,UAAR,QAAAK,EAAA,KAAAL,IACO,SAAS,kBAAkBA,KAJzB;AAKX,GASaM,IAAe,SAC1BC,GACAC,MACGC,GACU;AACT,MAAAC;AAEJ,EAAIF,EAAK,SAAS,OAAO,KAAKA,EAAK,SAAS,OAAO,IACrCE,IAAA,gBACHF,EAAK,SAAS,KAAK,IAChBE,IAAA,kBAEAA,IAAA;AAER,QAAAC,IAAM,SAAS,YAAYD,CAAS;AAEtC,SAAAC,EAAA,UAAUH,GAAM,GAAGC,CAAI,GAC3BF,EAAI,cAAcI,CAAG,GACdJ;AACT,GAEaK,IAAS,CAACC,MAAoB,CAACA,EAAG,aAAa,WAAW,GAE1DC,IAAa,CACxBD,GACAE,GACAC,MACG;AACG,QAAA,EAAE,YAAAC,EAAe,IAAAJ;AACnB,MAAA,CAACI,EAAmB,QAAA;AAClB,QAAAC,IAAWD,EAAW,iBAAiBD,CAAO,GAC9CG,IAAQ,MAAM,UAAU,QAAQ,KAAKD,GAAUL,CAAE;AAChD,SAAAK,EAASC,IAAQJ,CAAQ,KAAK;AACvC,GAEaK,IAAY,CAACP,MAAoB;AAC5C,EAAKA,MACLA,EAAG,MAAM,GACT,CAACD,EAAOC,CAAE,KAAKA,EAAG,MAAM;AAC1B;"}
@@ -0,0 +1,3 @@
1
+ type GetElement = <T extends string | HTMLElement | Window | null | undefined>(target: T) => T extends string ? HTMLElement | null : T;
2
+ export declare const getElement: GetElement;
3
+ export {};
@@ -0,0 +1,18 @@
1
+ import { e as t } from "../../../functions-DzLqXvGt.js";
2
+ import "lodash-es";
3
+ import "vue";
4
+ import { i as e } from "../../../index-C8JNJPWW.js";
5
+ const u = (r) => {
6
+ if (!e || r === "") return null;
7
+ if (t(r))
8
+ try {
9
+ return document.querySelector(r);
10
+ } catch {
11
+ return null;
12
+ }
13
+ return r;
14
+ };
15
+ export {
16
+ u as getElement
17
+ };
18
+ //# sourceMappingURL=element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element.js","sources":["../../../../src/components/_util/dom/element.ts"],"sourcesContent":["import { isString } from '../types'\r\nimport { isClient } from '../browser'\r\n\r\ntype GetElement = <T extends string | HTMLElement | Window | null | undefined>(\r\n target: T\r\n) => T extends string ? HTMLElement | null : T\r\n\r\nexport const getElement = ((\r\n target: string | HTMLElement | Window | null | undefined\r\n) => {\r\n if (!isClient || target === '') return null\r\n if (isString(target)) {\r\n try {\r\n return document.querySelector<HTMLElement>(target)\r\n } catch {\r\n return null\r\n }\r\n }\r\n return target\r\n}) as GetElement\r\n"],"names":["getElement","target","isClient","isString"],"mappings":";;;;AAOa,MAAAA,IAAc,CACzBC,MACG;AACH,MAAI,CAACC,KAAYD,MAAW,GAAW,QAAA;AACnC,MAAAE,EAASF,CAAM;AACb,QAAA;AACK,aAAA,SAAS,cAA2BA,CAAM;AAAA,IAAA,QAC3C;AACC,aAAA;AAAA,IACT;AAEK,SAAAA;AACT;"}
@@ -0,0 +1,6 @@
1
+ export declare const composeEventHandlers: <E>(theirsHandler?: (event: E) => boolean | void, oursHandler?: (event: E) => void, { checkForDefaultPrevented }?: {
2
+ checkForDefaultPrevented?: boolean | undefined;
3
+ }) => (event: E) => void;
4
+ type WhenMouseHandler = (e: PointerEvent) => any;
5
+ export declare const whenMouse: (handler: WhenMouseHandler) => WhenMouseHandler;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ const v = (o, t, { checkForDefaultPrevented: c = !0 } = {}) => (n) => {
2
+ const e = o == null ? void 0 : o(n);
3
+ if (c === !1 || !e)
4
+ return t == null ? void 0 : t(n);
5
+ }, u = (o) => (t) => t.pointerType === "mouse" ? o(t) : void 0;
6
+ export {
7
+ v as composeEventHandlers,
8
+ u as whenMouse
9
+ };
10
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sources":["../../../../src/components/_util/dom/event.ts"],"sourcesContent":["export const composeEventHandlers = <E>(\r\n theirsHandler?: (event: E) => boolean | void,\r\n oursHandler?: (event: E) => void,\r\n { checkForDefaultPrevented = true } = {}\r\n) => {\r\n const handleEvent = (event: E) => {\r\n const shouldPrevent = theirsHandler?.(event)\r\n\r\n if (checkForDefaultPrevented === false || !shouldPrevent) {\r\n return oursHandler?.(event)\r\n }\r\n }\r\n return handleEvent\r\n}\r\n\r\ntype WhenMouseHandler = (e: PointerEvent) => any\r\nexport const whenMouse = (handler: WhenMouseHandler): WhenMouseHandler => {\r\n return (e: PointerEvent) =>\r\n e.pointerType === 'mouse' ? handler(e) : undefined\r\n}\r\n"],"names":["composeEventHandlers","theirsHandler","oursHandler","checkForDefaultPrevented","event","shouldPrevent","whenMouse","handler","e"],"mappings":"AAAa,MAAAA,IAAuB,CAClCC,GACAC,GACA,EAAE,0BAAAC,IAA2B,GAAS,IAAA,OAElB,CAACC,MAAa;AAC1B,QAAAC,IAAgBJ,KAAA,gBAAAA,EAAgBG;AAElC,MAAAD,MAA6B,MAAS,CAACE;AACzC,WAAOH,KAAA,gBAAAA,EAAcE;AACvB,GAMSE,IAAY,CAACC,MACjB,CAACC,MACNA,EAAE,gBAAgB,UAAUD,EAAQC,CAAC,IAAI;"}
@@ -0,0 +1,6 @@
1
+ export * from './aria';
2
+ export * from './event';
3
+ export * from './position';
4
+ export * from './scroll';
5
+ export * from './style';
6
+ export * from './element';
@@ -0,0 +1,39 @@
1
+ import { attemptFocus as o, focusNode as l, getSibling as r, isFocusable as s, isLeaf as a, isVisible as i, obtainAllFocusableElements as n, triggerEvent as m } from "./aria.js";
2
+ import { composeEventHandlers as g, whenMouse as f } from "./event.js";
3
+ import { getClientXY as S, getOffsetTop as d, getOffsetTopDistance as x, isInContainer as C } from "./position.js";
4
+ import { animateScrollTo as u, getScrollBarWidth as E, getScrollContainer as T, getScrollElement as v, getScrollTop as y, isScroll as h, scrollIntoView as F } from "./scroll.js";
5
+ import { addClass as A, addUnit as I, classNameToArray as N, getStyle as O, hasClass as V, removeClass as B, removeStyle as D, setStyle as H } from "./style.js";
6
+ import { getElement as M } from "./element.js";
7
+ export {
8
+ A as addClass,
9
+ I as addUnit,
10
+ u as animateScrollTo,
11
+ o as attemptFocus,
12
+ N as classNameToArray,
13
+ g as composeEventHandlers,
14
+ l as focusNode,
15
+ S as getClientXY,
16
+ M as getElement,
17
+ d as getOffsetTop,
18
+ x as getOffsetTopDistance,
19
+ E as getScrollBarWidth,
20
+ T as getScrollContainer,
21
+ v as getScrollElement,
22
+ y as getScrollTop,
23
+ r as getSibling,
24
+ O as getStyle,
25
+ V as hasClass,
26
+ s as isFocusable,
27
+ C as isInContainer,
28
+ a as isLeaf,
29
+ h as isScroll,
30
+ i as isVisible,
31
+ n as obtainAllFocusableElements,
32
+ B as removeClass,
33
+ D as removeStyle,
34
+ F as scrollIntoView,
35
+ H as setStyle,
36
+ m as triggerEvent,
37
+ f as whenMouse
38
+ };
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -0,0 +1,7 @@
1
+ export declare const isInContainer: (el?: Element, container?: Element | Window) => boolean;
2
+ export declare const getOffsetTop: (el: HTMLElement) => number;
3
+ export declare const getOffsetTopDistance: (el: HTMLElement, containerEl: HTMLElement) => number;
4
+ export declare const getClientXY: (event: MouseEvent | TouchEvent) => {
5
+ clientX: number;
6
+ clientY: number;
7
+ };
@@ -0,0 +1,30 @@
1
+ import { i as c } from "../../../index-C8JNJPWW.js";
2
+ const s = (t, i) => {
3
+ if (!c || !t || !i) return !1;
4
+ const e = t.getBoundingClientRect();
5
+ let n;
6
+ return i instanceof Element ? n = i.getBoundingClientRect() : n = {
7
+ top: 0,
8
+ right: window.innerWidth,
9
+ bottom: window.innerHeight,
10
+ left: 0
11
+ }, e.top < n.bottom && e.bottom > n.top && e.right > n.left && e.left < n.right;
12
+ }, o = (t) => {
13
+ let i = 0, e = t;
14
+ for (; e; )
15
+ i += e.offsetTop, e = e.offsetParent;
16
+ return i;
17
+ }, r = (t, i) => Math.abs(o(t) - o(i)), f = (t) => {
18
+ let i, e;
19
+ return t.type === "touchend" ? (e = t.changedTouches[0].clientY, i = t.changedTouches[0].clientX) : t.type.startsWith("touch") ? (e = t.touches[0].clientY, i = t.touches[0].clientX) : (e = t.clientY, i = t.clientX), {
20
+ clientX: i,
21
+ clientY: e
22
+ };
23
+ };
24
+ export {
25
+ f as getClientXY,
26
+ o as getOffsetTop,
27
+ r as getOffsetTopDistance,
28
+ s as isInContainer
29
+ };
30
+ //# sourceMappingURL=position.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"position.js","sources":["../../../../src/components/_util/dom/position.ts"],"sourcesContent":["import { isClient } from '../browser'\r\n\r\nexport const isInContainer = (\r\n el?: Element,\r\n container?: Element | Window\r\n): boolean => {\r\n if (!isClient || !el || !container) return false\r\n\r\n const elRect = el.getBoundingClientRect()\r\n\r\n let containerRect: Pick<DOMRect, 'top' | 'bottom' | 'left' | 'right'>\r\n if (container instanceof Element) {\r\n containerRect = container.getBoundingClientRect()\r\n } else {\r\n containerRect = {\r\n top: 0,\r\n right: window.innerWidth,\r\n bottom: window.innerHeight,\r\n left: 0,\r\n }\r\n }\r\n return (\r\n elRect.top < containerRect.bottom &&\r\n elRect.bottom > containerRect.top &&\r\n elRect.right > containerRect.left &&\r\n elRect.left < containerRect.right\r\n )\r\n}\r\n\r\nexport const getOffsetTop = (el: HTMLElement) => {\r\n let offset = 0\r\n let parent = el\r\n\r\n while (parent) {\r\n offset += parent.offsetTop\r\n parent = parent.offsetParent as HTMLElement\r\n }\r\n\r\n return offset\r\n}\r\n\r\nexport const getOffsetTopDistance = (\r\n el: HTMLElement,\r\n containerEl: HTMLElement\r\n) => {\r\n return Math.abs(getOffsetTop(el) - getOffsetTop(containerEl))\r\n}\r\n\r\nexport const getClientXY = (event: MouseEvent | TouchEvent) => {\r\n let clientX: number\r\n let clientY: number\r\n if (event.type === 'touchend') {\r\n clientY = (event as TouchEvent).changedTouches[0].clientY\r\n clientX = (event as TouchEvent).changedTouches[0].clientX\r\n } else if (event.type.startsWith('touch')) {\r\n clientY = (event as TouchEvent).touches[0].clientY\r\n clientX = (event as TouchEvent).touches[0].clientX\r\n } else {\r\n clientY = (event as MouseEvent).clientY\r\n clientX = (event as MouseEvent).clientX\r\n }\r\n return {\r\n clientX,\r\n clientY,\r\n }\r\n}\r\n"],"names":["isInContainer","el","container","isClient","elRect","containerRect","getOffsetTop","offset","parent","getOffsetTopDistance","containerEl","getClientXY","event","clientX","clientY"],"mappings":";AAEa,MAAAA,IAAgB,CAC3BC,GACAC,MACY;AACZ,MAAI,CAACC,KAAY,CAACF,KAAM,CAACC,EAAkB,QAAA;AAErC,QAAAE,IAASH,EAAG;AAEd,MAAAI;AACJ,SAAIH,aAAqB,UACvBG,IAAgBH,EAAU,0BAEVG,IAAA;AAAA,IACd,KAAK;AAAA,IACL,OAAO,OAAO;AAAA,IACd,QAAQ,OAAO;AAAA,IACf,MAAM;AAAA,EAAA,GAIRD,EAAO,MAAMC,EAAc,UAC3BD,EAAO,SAASC,EAAc,OAC9BD,EAAO,QAAQC,EAAc,QAC7BD,EAAO,OAAOC,EAAc;AAEhC,GAEaC,IAAe,CAACL,MAAoB;AAC/C,MAAIM,IAAS,GACTC,IAASP;AAEb,SAAOO;AACL,IAAAD,KAAUC,EAAO,WACjBA,IAASA,EAAO;AAGX,SAAAD;AACT,GAEaE,IAAuB,CAClCR,GACAS,MAEO,KAAK,IAAIJ,EAAaL,CAAE,IAAIK,EAAaI,CAAW,CAAC,GAGjDC,IAAc,CAACC,MAAmC;AACzD,MAAAC,GACAC;AACA,SAAAF,EAAM,SAAS,cACNE,IAAAF,EAAqB,eAAe,CAAC,EAAE,SACvCC,IAAAD,EAAqB,eAAe,CAAC,EAAE,WACzCA,EAAM,KAAK,WAAW,OAAO,KAC3BE,IAAAF,EAAqB,QAAQ,CAAC,EAAE,SAChCC,IAAAD,EAAqB,QAAQ,CAAC,EAAE,YAE3CE,IAAWF,EAAqB,SAChCC,IAAWD,EAAqB,UAE3B;AAAA,IACL,SAAAC;AAAA,IACA,SAAAC;AAAA,EAAA;AAEJ;"}
@@ -0,0 +1,11 @@
1
+ export declare const isScroll: (el: HTMLElement, isVertical?: boolean) => boolean;
2
+ export declare const getScrollContainer: (el: HTMLElement, isVertical?: boolean) => Window | HTMLElement | undefined;
3
+ export declare const getScrollBarWidth: (namespace: string) => number;
4
+ /**
5
+ * Scroll with in the container element, positioning the **selected** element at the top
6
+ * of the container
7
+ */
8
+ export declare function scrollIntoView(container: HTMLElement, selected: HTMLElement): void;
9
+ export declare function animateScrollTo(container: HTMLElement | Window, from: number, to: number, duration: number, callback?: unknown): () => void;
10
+ export declare const getScrollElement: (target: HTMLElement, container: HTMLElement | Window) => HTMLElement;
11
+ export declare const getScrollTop: (container: HTMLElement | Window) => number;
@@ -0,0 +1,78 @@
1
+ import { easeInOutCubic as w } from "../easings.js";
2
+ import { isWindow as u } from "../types.js";
3
+ import { rAF as h, cAF as a } from "../raf.js";
4
+ import { getStyle as T } from "./style.js";
5
+ import { i as p } from "../../../index-C8JNJPWW.js";
6
+ const v = (o, t) => {
7
+ if (!p) return !1;
8
+ const l = {
9
+ undefined: "overflow",
10
+ true: "overflow-y",
11
+ false: "overflow-x"
12
+ }[String(t)], e = T(o, l);
13
+ return ["scroll", "auto", "overlay"].some((r) => e.includes(r));
14
+ }, b = (o, t) => {
15
+ if (!p) return;
16
+ let l = o;
17
+ for (; l; ) {
18
+ if ([window, document, document.documentElement].includes(l))
19
+ return window;
20
+ if (v(l, t)) return l;
21
+ l = l.parentNode;
22
+ }
23
+ return l;
24
+ };
25
+ let f;
26
+ const x = (o) => {
27
+ var s;
28
+ if (!p) return 0;
29
+ if (f !== void 0) return f;
30
+ const t = document.createElement("div");
31
+ t.className = `${o}-scrollbar__wrap`, t.style.visibility = "hidden", t.style.width = "100px", t.style.position = "absolute", t.style.top = "-9999px", document.body.appendChild(t);
32
+ const l = t.offsetWidth;
33
+ t.style.overflow = "scroll";
34
+ const e = document.createElement("div");
35
+ e.style.width = "100%", t.appendChild(e);
36
+ const r = e.offsetWidth;
37
+ return (s = t.parentNode) == null || s.removeChild(t), f = l - r, f;
38
+ };
39
+ function E(o, t) {
40
+ if (!p) return;
41
+ if (!t) {
42
+ o.scrollTop = 0;
43
+ return;
44
+ }
45
+ const l = [];
46
+ let e = t.offsetParent;
47
+ for (; e !== null && o !== e && o.contains(e); )
48
+ l.push(e), e = e.offsetParent;
49
+ const r = t.offsetTop + l.reduce((m, i) => m + i.offsetTop, 0), s = r + t.offsetHeight, n = o.scrollTop, c = n + o.clientHeight;
50
+ r < n ? o.scrollTop = r : s > c && (o.scrollTop = s - o.clientHeight);
51
+ }
52
+ function N(o, t, l, e, r) {
53
+ const s = Date.now();
54
+ let n;
55
+ const c = () => {
56
+ const i = Date.now() - s, d = w(
57
+ i > e ? e : i,
58
+ t,
59
+ l,
60
+ e
61
+ );
62
+ u(o) ? o.scrollTo(window.pageXOffset, d) : o.scrollTop = d, i < e ? n = h(c) : typeof r == "function" && r();
63
+ };
64
+ return c(), () => {
65
+ n && a(n);
66
+ };
67
+ }
68
+ const B = (o, t) => u(t) ? o.ownerDocument.documentElement : t, D = (o) => u(o) ? window.scrollY : o.scrollTop;
69
+ export {
70
+ N as animateScrollTo,
71
+ x as getScrollBarWidth,
72
+ b as getScrollContainer,
73
+ B as getScrollElement,
74
+ D as getScrollTop,
75
+ v as isScroll,
76
+ E as scrollIntoView
77
+ };
78
+ //# sourceMappingURL=scroll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll.js","sources":["../../../../src/components/_util/dom/scroll.ts"],"sourcesContent":["import { isClient } from '../browser'\r\nimport { easeInOutCubic } from '../easings'\r\nimport { isWindow } from '../types'\r\nimport { cAF, rAF } from '../raf'\r\nimport { getStyle } from './style'\r\n\r\nexport const isScroll = (el: HTMLElement, isVertical?: boolean): boolean => {\r\n if (!isClient) return false\r\n\r\n const key = (\r\n {\r\n undefined: 'overflow',\r\n true: 'overflow-y',\r\n false: 'overflow-x',\r\n } as const\r\n )[String(isVertical)]!\r\n const overflow = getStyle(el, key)\r\n return ['scroll', 'auto', 'overlay'].some((s) => overflow.includes(s))\r\n}\r\n\r\nexport const getScrollContainer = (\r\n el: HTMLElement,\r\n isVertical?: boolean\r\n): Window | HTMLElement | undefined => {\r\n if (!isClient) return\r\n\r\n let parent: HTMLElement = el\r\n while (parent) {\r\n if ([window, document, document.documentElement].includes(parent))\r\n return window\r\n\r\n if (isScroll(parent, isVertical)) return parent\r\n\r\n parent = parent.parentNode as HTMLElement\r\n }\r\n\r\n return parent\r\n}\r\n\r\nlet scrollBarWidth: number\r\nexport const getScrollBarWidth = (namespace: string): number => {\r\n if (!isClient) return 0\r\n if (scrollBarWidth !== undefined) return scrollBarWidth\r\n\r\n const outer = document.createElement('div')\r\n outer.className = `${namespace}-scrollbar__wrap`\r\n outer.style.visibility = 'hidden'\r\n outer.style.width = '100px'\r\n outer.style.position = 'absolute'\r\n outer.style.top = '-9999px'\r\n document.body.appendChild(outer)\r\n\r\n const widthNoScroll = outer.offsetWidth\r\n outer.style.overflow = 'scroll'\r\n\r\n const inner = document.createElement('div')\r\n inner.style.width = '100%'\r\n outer.appendChild(inner)\r\n\r\n const widthWithScroll = inner.offsetWidth\r\n outer.parentNode?.removeChild(outer)\r\n scrollBarWidth = widthNoScroll - widthWithScroll\r\n\r\n return scrollBarWidth\r\n}\r\n\r\n/**\r\n * Scroll with in the container element, positioning the **selected** element at the top\r\n * of the container\r\n */\r\nexport function scrollIntoView(\r\n container: HTMLElement,\r\n selected: HTMLElement\r\n): void {\r\n if (!isClient) return\r\n\r\n if (!selected) {\r\n container.scrollTop = 0\r\n return\r\n }\r\n\r\n const offsetParents: HTMLElement[] = []\r\n let pointer = selected.offsetParent\r\n while (\r\n pointer !== null &&\r\n container !== pointer &&\r\n container.contains(pointer)\r\n ) {\r\n offsetParents.push(pointer as HTMLElement)\r\n pointer = (pointer as HTMLElement).offsetParent\r\n }\r\n const top =\r\n selected.offsetTop +\r\n offsetParents.reduce((prev, curr) => prev + curr.offsetTop, 0)\r\n const bottom = top + selected.offsetHeight\r\n const viewRectTop = container.scrollTop\r\n const viewRectBottom = viewRectTop + container.clientHeight\r\n\r\n if (top < viewRectTop) {\r\n container.scrollTop = top\r\n } else if (bottom > viewRectBottom) {\r\n container.scrollTop = bottom - container.clientHeight\r\n }\r\n}\r\n\r\nexport function animateScrollTo(\r\n container: HTMLElement | Window,\r\n from: number,\r\n to: number,\r\n duration: number,\r\n callback?: unknown\r\n) {\r\n const startTime = Date.now()\r\n\r\n let handle: number | undefined\r\n const scroll = () => {\r\n const timestamp = Date.now()\r\n const time = timestamp - startTime\r\n const nextScrollTop = easeInOutCubic(\r\n time > duration ? duration : time,\r\n from,\r\n to,\r\n duration\r\n )\r\n\r\n if (isWindow(container)) {\r\n container.scrollTo(window.pageXOffset, nextScrollTop)\r\n } else {\r\n container.scrollTop = nextScrollTop\r\n }\r\n if (time < duration) {\r\n handle = rAF(scroll)\r\n } else if (typeof callback === 'function') {\r\n callback()\r\n }\r\n }\r\n\r\n scroll()\r\n\r\n return () => {\r\n handle && cAF(handle)\r\n }\r\n}\r\n\r\nexport const getScrollElement = (\r\n target: HTMLElement,\r\n container: HTMLElement | Window\r\n) => {\r\n if (isWindow(container)) {\r\n return target.ownerDocument.documentElement\r\n }\r\n return container\r\n}\r\n\r\nexport const getScrollTop = (container: HTMLElement | Window) => {\r\n if (isWindow(container)) {\r\n return window.scrollY\r\n }\r\n return container.scrollTop\r\n}\r\n"],"names":["isScroll","el","isVertical","isClient","key","overflow","getStyle","s","getScrollContainer","parent","scrollBarWidth","getScrollBarWidth","namespace","outer","widthNoScroll","inner","widthWithScroll","_a","scrollIntoView","container","selected","offsetParents","pointer","top","prev","curr","bottom","viewRectTop","viewRectBottom","animateScrollTo","from","to","duration","callback","startTime","handle","scroll","time","nextScrollTop","easeInOutCubic","isWindow","rAF","cAF","getScrollElement","target","getScrollTop"],"mappings":";;;;;AAMa,MAAAA,IAAW,CAACC,GAAiBC,MAAkC;AACtE,MAAA,CAACC,EAAiB,QAAA;AAEtB,QAAMC,IACJ;AAAA,IACE,WAAW;AAAA,IACX,MAAM;AAAA,IACN,OAAO;AAAA,EAAA,EAET,OAAOF,CAAU,CAAC,GACdG,IAAWC,EAASL,GAAIG,CAAG;AAC1B,SAAA,CAAC,UAAU,QAAQ,SAAS,EAAE,KAAK,CAACG,MAAMF,EAAS,SAASE,CAAC,CAAC;AACvE,GAEaC,IAAqB,CAChCP,GACAC,MACqC;AACrC,MAAI,CAACC,EAAU;AAEf,MAAIM,IAAsBR;AAC1B,SAAOQ,KAAQ;AACb,QAAI,CAAC,QAAQ,UAAU,SAAS,eAAe,EAAE,SAASA,CAAM;AACvD,aAAA;AAET,QAAIT,EAASS,GAAQP,CAAU,EAAU,QAAAO;AAEzC,IAAAA,IAASA,EAAO;AAAA,EAClB;AAEO,SAAAA;AACT;AAEA,IAAIC;AACS,MAAAC,IAAoB,CAACC,MAA8B;;AAC1D,MAAA,CAACT,EAAiB,QAAA;AAClB,MAAAO,MAAmB,OAAkB,QAAAA;AAEnC,QAAAG,IAAQ,SAAS,cAAc,KAAK;AACpC,EAAAA,EAAA,YAAY,GAAGD,CAAS,oBAC9BC,EAAM,MAAM,aAAa,UACzBA,EAAM,MAAM,QAAQ,SACpBA,EAAM,MAAM,WAAW,YACvBA,EAAM,MAAM,MAAM,WACT,SAAA,KAAK,YAAYA,CAAK;AAE/B,QAAMC,IAAgBD,EAAM;AAC5B,EAAAA,EAAM,MAAM,WAAW;AAEjB,QAAAE,IAAQ,SAAS,cAAc,KAAK;AAC1C,EAAAA,EAAM,MAAM,QAAQ,QACpBF,EAAM,YAAYE,CAAK;AAEvB,QAAMC,IAAkBD,EAAM;AACxB,UAAAE,IAAAJ,EAAA,eAAA,QAAAI,EAAY,YAAYJ,IAC9BH,IAAiBI,IAAgBE,GAE1BN;AACT;AAMgB,SAAAQ,EACdC,GACAC,GACM;AACN,MAAI,CAACjB,EAAU;AAEf,MAAI,CAACiB,GAAU;AACb,IAAAD,EAAU,YAAY;AACtB;AAAA,EACF;AAEA,QAAME,IAA+B,CAAA;AACrC,MAAIC,IAAUF,EAAS;AACvB,SACEE,MAAY,QACZH,MAAcG,KACdH,EAAU,SAASG,CAAO;AAE1B,IAAAD,EAAc,KAAKC,CAAsB,GACzCA,IAAWA,EAAwB;AAE/B,QAAAC,IACJH,EAAS,YACTC,EAAc,OAAO,CAACG,GAAMC,MAASD,IAAOC,EAAK,WAAW,CAAC,GACzDC,IAASH,IAAMH,EAAS,cACxBO,IAAcR,EAAU,WACxBS,IAAiBD,IAAcR,EAAU;AAE/C,EAAII,IAAMI,IACRR,EAAU,YAAYI,IACbG,IAASE,MACRT,EAAA,YAAYO,IAASP,EAAU;AAE7C;AAEO,SAASU,EACdV,GACAW,GACAC,GACAC,GACAC,GACA;AACM,QAAAC,IAAY,KAAK;AAEnB,MAAAC;AACJ,QAAMC,IAAS,MAAM;AAEnB,UAAMC,IADY,KAAK,QACEH,GACnBI,IAAgBC;AAAA,MACpBF,IAAOL,IAAWA,IAAWK;AAAA,MAC7BP;AAAA,MACAC;AAAA,MACAC;AAAA,IAAA;AAGE,IAAAQ,EAASrB,CAAS,IACVA,EAAA,SAAS,OAAO,aAAamB,CAAa,IAEpDnB,EAAU,YAAYmB,GAEpBD,IAAOL,IACTG,IAASM,EAAIL,CAAM,IACV,OAAOH,KAAa,cACpBA;EACX;AAGK,SAAAG,KAEA,MAAM;AACX,IAAAD,KAAUO,EAAIP,CAAM;AAAA,EAAA;AAExB;AAEa,MAAAQ,IAAmB,CAC9BC,GACAzB,MAEIqB,EAASrB,CAAS,IACbyB,EAAO,cAAc,kBAEvBzB,GAGI0B,IAAe,CAAC1B,MACvBqB,EAASrB,CAAS,IACb,OAAO,UAETA,EAAU;"}
@@ -0,0 +1,9 @@
1
+ import { CSSProperties } from 'vue';
2
+ export declare const classNameToArray: (cls?: string) => string[];
3
+ export declare const hasClass: (el: Element, cls: string) => boolean;
4
+ export declare const addClass: (el: Element, cls: string) => void;
5
+ export declare const removeClass: (el: Element, cls: string) => void;
6
+ export declare const getStyle: (element: HTMLElement, styleName: keyof CSSProperties) => string;
7
+ export declare const setStyle: (element: HTMLElement, styleName: CSSProperties | keyof CSSProperties, value?: string | number) => void;
8
+ export declare const removeStyle: (element: HTMLElement, style: CSSProperties | keyof CSSProperties) => void;
9
+ export declare function addUnit(value?: string | number, defaultUnit?: string): string | undefined;
@@ -0,0 +1,58 @@
1
+ import { isNumber as u, isStringNumber as d } from "../types.js";
2
+ import { c as f, d as c, e as m } from "../../../functions-DzLqXvGt.js";
3
+ import { entriesOf as p, keysOf as b } from "../objects.js";
4
+ import { debugWarn as g } from "../error.js";
5
+ import { i as l } from "../../../index-C8JNJPWW.js";
6
+ const y = "utils/dom/style", e = (r = "") => r.split(" ").filter((t) => !!t.trim()), w = (r, t) => {
7
+ if (!r || !t) return !1;
8
+ if (t.includes(" ")) throw new Error("className should not contain space.");
9
+ return r.classList.contains(t);
10
+ }, L = (r, t) => {
11
+ !r || !t.trim() || r.classList.add(...e(t));
12
+ }, x = (r, t) => {
13
+ !r || !t.trim() || r.classList.remove(...e(t));
14
+ }, $ = (r, t) => {
15
+ var i;
16
+ if (!l || !r || !t) return "";
17
+ let s = f(t);
18
+ s === "float" && (s = "cssFloat");
19
+ try {
20
+ const o = r.style[s];
21
+ if (o) return o;
22
+ const n = (i = document.defaultView) == null ? void 0 : i.getComputedStyle(r, "");
23
+ return n ? n[s] : "";
24
+ } catch {
25
+ return r.style[s];
26
+ }
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
+ };
40
+ function j(r, t = "px") {
41
+ if (!r) return "";
42
+ if (u(r) || d(r))
43
+ return `${r}${t}`;
44
+ if (m(r))
45
+ return r;
46
+ g(y, "binding value must be a string or number");
47
+ }
48
+ export {
49
+ L as addClass,
50
+ j as addUnit,
51
+ e as classNameToArray,
52
+ $ as getStyle,
53
+ w as hasClass,
54
+ x as removeClass,
55
+ S as removeStyle,
56
+ a as setStyle
57
+ };
58
+ //# sourceMappingURL=style.js.map
@@ -0,0 +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":["SCOPE","classNameToArray","cls","item","hasClass","el","addClass","removeClass","getStyle","element","styleName","isClient","key","camelize","style","computed","_a","setStyle","value","isObject","entriesOf","prop","removeStyle","keysOf","addUnit","defaultUnit","isNumber","isStringNumber","isString","debugWarn"],"mappings":";;;;;AAOA,MAAMA,IAAQ,mBAEDC,IAAmB,CAACC,IAAM,OACrCA,EAAI,MAAM,GAAG,EAAE,OAAO,CAACC,MAAS,CAAC,CAACA,EAAK,MAAM,GAElCC,IAAW,CAACC,GAAaH,MAAyB;AAC7D,MAAI,CAACG,KAAM,CAACH,EAAY,QAAA;AACxB,MAAIA,EAAI,SAAS,GAAG,EAAS,OAAA,IAAI,MAAM,qCAAqC;AACrE,SAAAG,EAAG,UAAU,SAASH,CAAG;AAClC,GAEaI,IAAW,CAACD,GAAaH,MAAgB;AACpD,EAAI,CAACG,KAAM,CAACH,EAAI,KAAQ,KACxBG,EAAG,UAAU,IAAI,GAAGJ,EAAiBC,CAAG,CAAC;AAC3C,GAEaK,IAAc,CAACF,GAAaH,MAAgB;AACvD,EAAI,CAACG,KAAM,CAACH,EAAI,KAAQ,KACxBG,EAAG,UAAU,OAAO,GAAGJ,EAAiBC,CAAG,CAAC;AAC9C,GAEaM,IAAW,CACtBC,GACAC,MACW;;AACX,MAAI,CAACC,KAAY,CAACF,KAAW,CAACC,EAAkB,QAAA;AAE5C,MAAAE,IAAMC,EAASH,CAAS;AACxB,EAAAE,MAAQ,YAAeA,IAAA;AACvB,MAAA;AACI,UAAAE,IAASL,EAAQ,MAAcG,CAAG;AACxC,QAAIE,EAAc,QAAAA;AAClB,UAAMC,KAAgBC,IAAA,SAAS,gBAAT,gBAAAA,EAAsB,iBAAiBP,GAAS;AAC/D,WAAAM,IAAWA,EAASH,CAAG,IAAI;AAAA,EAAA,QAC5B;AACE,WAAAH,EAAQ,MAAcG,CAAG;AAAA,EACnC;AACF,GAEaK,IAAW,CACtBR,GACAC,GACAQ,MACG;AACC,MAAA,GAACT,KAAW,CAACC;AAEb,QAAAS,EAAST,CAAS;AACpB,MAAAU,EAAUV,CAAS,EAAE;AAAA,QAAQ,CAAC,CAACW,GAAMH,CAAK,MACxCD,EAASR,GAASY,GAAMH,CAAK;AAAA,MAAA;AAAA,SAE1B;AACC,YAAAN,IAAWC,EAASH,CAAS;AAC3B,MAAAD,EAAA,MAAMG,CAAG,IAAIM;AAAA,IACvB;AACF,GAEaI,IAAc,CACzBb,GACAK,MACG;AACC,EAAA,CAACL,KAAW,CAACK,MAEbK,EAASL,CAAK,IACTS,EAAAT,CAAK,EAAE,QAAQ,CAACO,MAASC,EAAYb,GAASY,CAAI,CAAC,IAEjDJ,EAAAR,GAASK,GAAO,EAAE;AAE/B;AAEgB,SAAAU,EAAQN,GAAyBO,IAAc,MAAM;AAC/D,MAAA,CAACP,EAAc,QAAA;AACnB,MAAIQ,EAASR,CAAK,KAAKS,EAAeT,CAAK;AAClC,WAAA,GAAGA,CAAK,GAAGO,CAAW;AAC/B,MAAWG,EAASV,CAAK;AAChB,WAAAA;AAET,EAAAW,EAAU7B,GAAO,0CAA0C;AAC7D;"}
@@ -0,0 +1 @@
1
+ export declare function easeInOutCubic(t: number, b: number, c: number, d: number): number;
@@ -0,0 +1,8 @@
1
+ function i(n, c, r, u) {
2
+ const e = r - c;
3
+ return n /= u / 2, n < 1 ? e / 2 * n * n * n + c : e / 2 * ((n -= 2) * n * n + 2) + c;
4
+ }
5
+ export {
6
+ i as easeInOutCubic
7
+ };
8
+ //# sourceMappingURL=easings.js.map
@@ -0,0 +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":["easeInOutCubic","t","b","c","d","cc"],"mappings":"AAAO,SAASA,EAAeC,GAAWC,GAAWC,GAAWC,GAAW;AACzE,QAAMC,IAAKF,IAAID;AAEf,SADAD,KAAKG,IAAI,GACLH,IAAI,IACEI,IAAK,IAAKJ,IAAIA,IAAIA,IAAIC,IAExBG,IAAK,MAAOJ,KAAK,KAAKA,IAAIA,IAAI,KAAKC;AAC7C;"}
@@ -0,0 +1,3 @@
1
+ export declare function throwError(scope: string, m: string): never;
2
+ export declare function debugWarn(err: Error): void;
3
+ export declare function debugWarn(scope: string, message: string): void;
@@ -0,0 +1,22 @@
1
+ import { e } from "../../functions-DzLqXvGt.js";
2
+ import "lodash-es";
3
+ import "vue";
4
+ class n extends Error {
5
+ constructor(o) {
6
+ super(o), this.name = "ElementPlusError";
7
+ }
8
+ }
9
+ function E(r, o) {
10
+ throw new n(`[${r}] ${o}`);
11
+ }
12
+ function c(r, o) {
13
+ if (process.env.NODE_ENV !== "production") {
14
+ const t = e(r) ? new n(`[${r}] ${o}`) : r;
15
+ console.warn(t);
16
+ }
17
+ }
18
+ export {
19
+ c as debugWarn,
20
+ E as throwError
21
+ };
22
+ //# sourceMappingURL=error.js.map
@@ -0,0 +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":["ElementPlusError","m","throwError","scope","debugWarn","message","error","isString"],"mappings":";;;AAEA,MAAMA,UAAyB,MAAM;AAAA,EACnC,YAAYC,GAAW;AACrB,UAAMA,CAAC,GACP,KAAK,OAAO;AAAA,EACd;AACF;AAEgB,SAAAC,EAAWC,GAAeF,GAAkB;AAC1D,QAAM,IAAID,EAAiB,IAAIG,CAAK,KAAKF,CAAC,EAAE;AAC9C;AAIgB,SAAAG,EAAUD,GAAuBE,GAAwB;AACnE,MAAA,QAAQ,IAAI,aAAa,cAAc;AACnC,UAAAC,IAAeC,EAASJ,CAAK,IAC/B,IAAIH,EAAiB,IAAIG,CAAK,KAAKE,CAAO,EAAE,IAC5CF;AAEJ,YAAQ,KAAKG,CAAK;AAAA,EACpB;AACF;"}
@@ -0,0 +1 @@
1
+ export { NOOP, toRawType } from '@vue/shared';
@@ -0,0 +1,6 @@
1
+ import { N as t, t as e } from "../../functions-DzLqXvGt.js";
2
+ export {
3
+ t as NOOP,
4
+ e as toRawType
5
+ };
6
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1 @@
1
+ export declare const isKorean: (text: string) => boolean;
@@ -0,0 +1,5 @@
1
+ const u = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t);
2
+ export {
3
+ u as isKorean
4
+ };
5
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +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":["isKorean","text"],"mappings":"AAAO,MAAMA,IAAW,CAACC,MACvB,oCAAoC,KAAKA,CAAI;"}
@@ -0,0 +1,15 @@
1
+ export * from './dom';
2
+ export * from './vue';
3
+ export * from './arrays';
4
+ export * from './browser';
5
+ export * from './error';
6
+ export * from './functions';
7
+ export * from './i18n';
8
+ export * from './objects';
9
+ export * from './raf';
10
+ export * from './rand';
11
+ export * from './strings';
12
+ export * from './types';
13
+ export * from './typescript';
14
+ export * from './throttleByRaf';
15
+ export * from './easings';
@@ -0,0 +1,140 @@
1
+ import { attemptFocus as r, focusNode as t, getSibling as s, isFocusable as a, isLeaf as i, isVisible as l, obtainAllFocusableElements as n, triggerEvent as p } from "./dom/aria.js";
2
+ import { composeEventHandlers as f, whenMouse as c } from "./dom/event.js";
3
+ import { getClientXY as x, getOffsetTop as g, getOffsetTopDistance as b, isInContainer as y } from "./dom/position.js";
4
+ import { animateScrollTo as C, getScrollBarWidth as h, getScrollContainer as S, getScrollElement as N, getScrollTop as P, isScroll as T, scrollIntoView as O } from "./dom/scroll.js";
5
+ import { addClass as I, addUnit as w, classNameToArray as E, getStyle as A, hasClass as V, removeClass as v, removeStyle as k, setStyle as z } from "./dom/style.js";
6
+ import { getElement as B } from "./dom/element.js";
7
+ import { changeGlobalNodesTarget as j, createGlobalNode as G, removeGlobalNode as M } from "./vue/global-node.js";
8
+ import { CloseComponents as K, TypeComponents as U, TypeComponentsMap as q, ValidateComponentsMap as H, iconPropType as L } from "./vue/icon.js";
9
+ import { withInstall as Y, withInstallDirective as J, withInstallFunction as Q, withNoopInstall as Z } from "./vue/install.js";
10
+ import { buildProp as $, buildProps as ee, definePropType as oe, epPropKey as re, isEpProp as te } from "./vue/props/runtime.js";
11
+ import { composeRefs as ae } from "./vue/refs.js";
12
+ import { getComponentSize as le } from "./vue/size.js";
13
+ import { isValidComponentSize as pe, isValidDatePickType as me } from "./vue/validator.js";
14
+ import { PatchFlags as ce, ensureOnlyChild as de, flattedChildren as xe, getFirstValidNode as ge, getNormalizedProps as be, isComment as ye, isFragment as ue, isTemplate as Ce, isText as he, isValidElementNode as Se, renderBlock as Ne, renderIf as Pe } from "./vue/vnode.js";
15
+ import { castArray as Oe, unique as Fe } from "./arrays.js";
16
+ import { isFirefox as we } from "./browser.js";
17
+ import { debugWarn as Ae, throwError as Ve } from "./error.js";
18
+ import { N as ke, c as ze, h as Re, a as Be, i as De, f as je, b as Ge, d as Me, k as We, g as Ke, e as Ue, j as qe, a as He, t as Le } from "../../functions-DzLqXvGt.js";
19
+ import { isKorean as Ye } from "./i18n.js";
20
+ import { entriesOf as Qe, getProp as Ze, keysOf as _e } from "./objects.js";
21
+ import { cAF as eo, rAF as oo } from "./raf.js";
22
+ import { generateId as to, getRandomInt as so } from "./rand.js";
23
+ import { capitalize as io, escapeStringRegexp as lo } from "./strings.js";
24
+ import { isBoolean as po, isElement as mo, isEmpty as fo, isNumber as co, isPropAbsent as xo, isStringNumber as go, isUndefined as bo, isWindow as yo } from "./types.js";
25
+ import { mutable as Co } from "./typescript.js";
26
+ import { throttleByRaf as So } from "./throttleByRaf.js";
27
+ import { easeInOutCubic as Po } from "./easings.js";
28
+ import { castArray as Oo } from "lodash-es";
29
+ import { i as Io, a as wo } from "../../index-C8JNJPWW.js";
30
+ import { isVNode as Ao } from "vue";
31
+ export {
32
+ K as CloseComponents,
33
+ ke as NOOP,
34
+ ce as PatchFlags,
35
+ U as TypeComponents,
36
+ q as TypeComponentsMap,
37
+ H as ValidateComponentsMap,
38
+ I as addClass,
39
+ w as addUnit,
40
+ C as animateScrollTo,
41
+ r as attemptFocus,
42
+ $ as buildProp,
43
+ ee as buildProps,
44
+ eo as cAF,
45
+ ze as camelize,
46
+ io as capitalize,
47
+ Oe as castArray,
48
+ j as changeGlobalNodesTarget,
49
+ E as classNameToArray,
50
+ f as composeEventHandlers,
51
+ ae as composeRefs,
52
+ G as createGlobalNode,
53
+ Ae as debugWarn,
54
+ oe as definePropType,
55
+ Po as easeInOutCubic,
56
+ Oo as ensureArray,
57
+ de as ensureOnlyChild,
58
+ Qe as entriesOf,
59
+ re as epPropKey,
60
+ lo as escapeStringRegexp,
61
+ xe as flattedChildren,
62
+ t as focusNode,
63
+ to as generateId,
64
+ x as getClientXY,
65
+ le as getComponentSize,
66
+ B as getElement,
67
+ ge as getFirstValidNode,
68
+ be as getNormalizedProps,
69
+ g as getOffsetTop,
70
+ b as getOffsetTopDistance,
71
+ Ze as getProp,
72
+ so as getRandomInt,
73
+ h as getScrollBarWidth,
74
+ S as getScrollContainer,
75
+ N as getScrollElement,
76
+ P as getScrollTop,
77
+ s as getSibling,
78
+ A as getStyle,
79
+ V as hasClass,
80
+ Re as hasOwn,
81
+ Be as hyphenate,
82
+ L as iconPropType,
83
+ De as isArray,
84
+ po as isBoolean,
85
+ Io as isClient,
86
+ ye as isComment,
87
+ je as isDate,
88
+ mo as isElement,
89
+ fo as isEmpty,
90
+ te as isEpProp,
91
+ we as isFirefox,
92
+ a as isFocusable,
93
+ ue as isFragment,
94
+ Ge as isFunction,
95
+ wo as isIOS,
96
+ y as isInContainer,
97
+ Ye as isKorean,
98
+ i as isLeaf,
99
+ co as isNumber,
100
+ Me as isObject,
101
+ We as isPlainObject,
102
+ Ke as isPromise,
103
+ xo as isPropAbsent,
104
+ T as isScroll,
105
+ Ue as isString,
106
+ go as isStringNumber,
107
+ qe as isSymbol,
108
+ Ce as isTemplate,
109
+ he as isText,
110
+ bo as isUndefined,
111
+ Ao as isVNode,
112
+ pe as isValidComponentSize,
113
+ me as isValidDatePickType,
114
+ Se as isValidElementNode,
115
+ l as isVisible,
116
+ yo as isWindow,
117
+ He as kebabCase,
118
+ _e as keysOf,
119
+ Co as mutable,
120
+ n as obtainAllFocusableElements,
121
+ oo as rAF,
122
+ v as removeClass,
123
+ M as removeGlobalNode,
124
+ k as removeStyle,
125
+ Ne as renderBlock,
126
+ Pe as renderIf,
127
+ O as scrollIntoView,
128
+ z as setStyle,
129
+ So as throttleByRaf,
130
+ Ve as throwError,
131
+ Le as toRawType,
132
+ p as triggerEvent,
133
+ Fe as unique,
134
+ c as whenMouse,
135
+ Y as withInstall,
136
+ J as withInstallDirective,
137
+ Q as withInstallFunction,
138
+ Z as withNoopInstall
139
+ };
140
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
- const isValid = value => {
2
- return value !== undefined && value !== null && value !== '';
1
+ const d = (t) => t != null && t !== "";
2
+ export {
3
+ d as default
3
4
  };
4
-
5
- export { isValid as default };
5
+ //# sourceMappingURL=isValid.js.map
@@ -0,0 +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":["isValid","value"],"mappings":"AAAM,MAAAA,IAAU,CAACC,MACeA,KAAU,QAAQA,MAAU;"}
@@ -0,0 +1,8 @@
1
+ import { Entries } from 'type-fest';
2
+ import { Arrayable } from '.';
3
+ export declare const keysOf: <T>(arr: T) => Array<keyof T>;
4
+ export declare const entriesOf: <T>(arr: T) => Entries<T>;
5
+ export { hasOwn } from '@vue/shared';
6
+ export declare const getProp: <T = any>(obj: Record<string, any>, path: Arrayable<string>, defaultValue?: any) => {
7
+ value: T;
8
+ };