@fibrae/semi-foundation 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1014) hide show
  1. package/LICENSE +84 -0
  2. package/README.md +76 -2
  3. package/dist/_portal/portal.css +12 -0
  4. package/dist/_portal/portal.scss +18 -0
  5. package/dist/anchor/anchor.css +118 -0
  6. package/dist/anchor/anchor.scss +148 -0
  7. package/dist/anchor/animation.scss +7 -0
  8. package/dist/anchor/constants.d.ts +9 -0
  9. package/dist/anchor/constants.js +14 -0
  10. package/dist/anchor/foundation.d.ts +49 -0
  11. package/dist/anchor/foundation.js +143 -0
  12. package/dist/anchor/rtl.scss +9 -0
  13. package/dist/anchor/utils.d.ts +6 -0
  14. package/dist/anchor/utils.js +16 -0
  15. package/dist/anchor/variables.scss +34 -0
  16. package/dist/audio-player/audio-player.css +226 -0
  17. package/dist/audio-player/audio-player.scss +278 -0
  18. package/dist/audio-player/constants.d.ts +11 -0
  19. package/dist/audio-player/constants.js +27 -0
  20. package/dist/audio-player/foundation.d.ts +46 -0
  21. package/dist/audio-player/foundation.js +116 -0
  22. package/dist/audio-player/utils.d.ts +2 -0
  23. package/dist/audio-player/utils.js +6 -0
  24. package/dist/audio-player/variables.scss +53 -0
  25. package/dist/auto-complete/animation.scss +5 -0
  26. package/dist/auto-complete/auto-complete.css +99 -0
  27. package/dist/auto-complete/auto-complete.scss +36 -0
  28. package/dist/auto-complete/constants.d.ts +4 -0
  29. package/dist/auto-complete/constants.js +7 -0
  30. package/dist/auto-complete/foundation.d.ts +77 -0
  31. package/dist/auto-complete/foundation.js +219 -0
  32. package/dist/auto-complete/option.scss +78 -0
  33. package/dist/auto-complete/rtl.scss +9 -0
  34. package/dist/auto-complete/variables.scss +23 -0
  35. package/dist/avatar/animation.scss +13 -0
  36. package/dist/avatar/avatar.css +652 -0
  37. package/dist/avatar/avatar.scss +540 -0
  38. package/dist/avatar/constants.d.ts +6 -0
  39. package/dist/avatar/constants.js +13 -0
  40. package/dist/avatar/foundation.d.ts +29 -0
  41. package/dist/avatar/foundation.js +31 -0
  42. package/dist/avatar/mixin.scss +7 -0
  43. package/dist/avatar/rtl.scss +11 -0
  44. package/dist/avatar/variables.scss +113 -0
  45. package/dist/backtop/backtop.css +9 -0
  46. package/dist/backtop/backtop.scss +15 -0
  47. package/dist/backtop/constants.d.ts +6 -0
  48. package/dist/backtop/constants.js +35 -0
  49. package/dist/backtop/foundation.d.ts +26 -0
  50. package/dist/backtop/foundation.js +69 -0
  51. package/dist/backtop/rtl.scss +8 -0
  52. package/dist/backtop/variables.scss +4 -0
  53. package/dist/badge/badge.css +131 -0
  54. package/dist/badge/badge.scss +158 -0
  55. package/dist/badge/constants.d.ts +3 -0
  56. package/dist/badge/constants.js +4 -0
  57. package/dist/badge/rtl.scss +8 -0
  58. package/dist/badge/variables.scss +46 -0
  59. package/dist/banner/banner.css +75 -0
  60. package/dist/banner/banner.scss +107 -0
  61. package/dist/banner/constants.d.ts +3 -0
  62. package/dist/banner/constants.js +4 -0
  63. package/dist/banner/foundation.d.ts +9 -0
  64. package/dist/banner/foundation.js +9 -0
  65. package/dist/banner/rtl.scss +8 -0
  66. package/dist/banner/variables.scss +29 -0
  67. package/dist/base/auto-close-foundation.d.ts +30 -0
  68. package/dist/base/auto-close-foundation.js +61 -0
  69. package/dist/base/base.scss +36 -0
  70. package/dist/base/constants.d.ts +11 -0
  71. package/dist/base/constants.js +23 -0
  72. package/dist/base/env.d.ts +1 -0
  73. package/dist/base/env.js +3 -0
  74. package/dist/base/foundation.d.ts +75 -0
  75. package/dist/base/foundation.js +79 -0
  76. package/dist/base/list-store.d.ts +26 -0
  77. package/dist/base/list-store.js +80 -0
  78. package/dist/base/mixin.scss +61 -0
  79. package/dist/base/tokens.css +799 -0
  80. package/dist/base/tokens.scss +3 -0
  81. package/dist/breadcrumb/animation.scss +7 -0
  82. package/dist/breadcrumb/breadcrumb.css +91 -0
  83. package/dist/breadcrumb/breadcrumb.scss +116 -0
  84. package/dist/breadcrumb/constants.d.ts +7 -0
  85. package/dist/breadcrumb/constants.js +8 -0
  86. package/dist/breadcrumb/foundation.d.ts +37 -0
  87. package/dist/breadcrumb/foundation.js +61 -0
  88. package/dist/breadcrumb/item-foundation.d.ts +45 -0
  89. package/dist/breadcrumb/item-foundation.js +36 -0
  90. package/dist/breadcrumb/rtl.scss +9 -0
  91. package/dist/breadcrumb/variables.scss +23 -0
  92. package/dist/button/animation.scss +63 -0
  93. package/dist/button/button.css +406 -0
  94. package/dist/button/button.scss +513 -0
  95. package/dist/button/constants.d.ts +6 -0
  96. package/dist/button/constants.js +5 -0
  97. package/dist/button/icon-button.css +65 -0
  98. package/dist/button/icon-button.scss +76 -0
  99. package/dist/button/rtl.scss +18 -0
  100. package/dist/button/split-button-group.scss +36 -0
  101. package/dist/button/utils.d.ts +27 -0
  102. package/dist/button/utils.js +89 -0
  103. package/dist/button/variables.scss +169 -0
  104. package/dist/calendar/calendar.css +486 -0
  105. package/dist/calendar/calendar.scss +518 -0
  106. package/dist/calendar/constants.d.ts +10 -0
  107. package/dist/calendar/constants.js +14 -0
  108. package/dist/calendar/event-util.d.ts +74 -0
  109. package/dist/calendar/event-util.js +203 -0
  110. package/dist/calendar/foundation.d.ts +80 -0
  111. package/dist/calendar/foundation.js +198 -0
  112. package/dist/calendar/month-foundation.d.ts +11 -0
  113. package/dist/calendar/month-foundation.js +13 -0
  114. package/dist/calendar/rtl.scss +10 -0
  115. package/dist/calendar/variables.scss +95 -0
  116. package/dist/card/card.css +124 -0
  117. package/dist/card/card.scss +149 -0
  118. package/dist/card/constants.d.ts +3 -0
  119. package/dist/card/constants.js +4 -0
  120. package/dist/card/rtl.scss +18 -0
  121. package/dist/card/variables.scss +32 -0
  122. package/dist/carousel/animation.scss +9 -0
  123. package/dist/carousel/carousel.css +345 -0
  124. package/dist/carousel/carousel.scss +451 -0
  125. package/dist/carousel/constants.d.ts +27 -0
  126. package/dist/carousel/constants.js +42 -0
  127. package/dist/carousel/foundation.d.ts +61 -0
  128. package/dist/carousel/foundation.js +204 -0
  129. package/dist/carousel/rtl.scss +14 -0
  130. package/dist/carousel/variables.scss +49 -0
  131. package/dist/cascader/animation.scss +5 -0
  132. package/dist/cascader/cascader.css +488 -0
  133. package/dist/cascader/cascader.scss +586 -0
  134. package/dist/cascader/constants.d.ts +19 -0
  135. package/dist/cascader/constants.js +20 -0
  136. package/dist/cascader/foundation.d.ts +300 -0
  137. package/dist/cascader/foundation.js +893 -0
  138. package/dist/cascader/rtl.scss +14 -0
  139. package/dist/cascader/util.d.ts +37 -0
  140. package/dist/cascader/util.js +155 -0
  141. package/dist/cascader/variables.scss +134 -0
  142. package/dist/checkbox/animation.scss +11 -0
  143. package/dist/checkbox/checkbox-foundation.d.ts +97 -0
  144. package/dist/checkbox/checkbox-foundation.js +65 -0
  145. package/dist/checkbox/checkbox-group-foundation.d.ts +21 -0
  146. package/dist/checkbox/checkbox-group-foundation.js +28 -0
  147. package/dist/checkbox/checkbox.css +301 -0
  148. package/dist/checkbox/checkbox.scss +415 -0
  149. package/dist/checkbox/constants.d.ts +14 -0
  150. package/dist/checkbox/constants.js +15 -0
  151. package/dist/checkbox/mixin.scss +3 -0
  152. package/dist/checkbox/rtl.scss +11 -0
  153. package/dist/checkbox/variables.scss +72 -0
  154. package/dist/code-highlight/code-highlight.css +54 -0
  155. package/dist/code-highlight/code-highlight.scss +65 -0
  156. package/dist/code-highlight/constants.d.ts +3 -0
  157. package/dist/code-highlight/constants.js +4 -0
  158. package/dist/code-highlight/highlighter.d.ts +3 -0
  159. package/dist/code-highlight/highlighter.js +56 -0
  160. package/dist/code-highlight/index.d.ts +25 -0
  161. package/dist/code-highlight/index.js +19 -0
  162. package/dist/code-highlight/registry.d.ts +23 -0
  163. package/dist/code-highlight/registry.js +33 -0
  164. package/dist/code-highlight/variables.scss +1 -0
  165. package/dist/collapse/collapse.css +101 -0
  166. package/dist/collapse/collapse.scss +112 -0
  167. package/dist/collapse/constants.d.ts +3 -0
  168. package/dist/collapse/constants.js +4 -0
  169. package/dist/collapse/foundation.d.ts +47 -0
  170. package/dist/collapse/foundation.js +44 -0
  171. package/dist/collapse/rtl.scss +8 -0
  172. package/dist/collapse/variables.scss +25 -0
  173. package/dist/collapsible/animation.scss +9 -0
  174. package/dist/collapsible/collapsible.css +17 -0
  175. package/dist/collapsible/collapsible.scss +28 -0
  176. package/dist/collapsible/constants.d.ts +3 -0
  177. package/dist/collapsible/constants.js +4 -0
  178. package/dist/collapsible/foundation.d.ts +68 -0
  179. package/dist/collapsible/foundation.js +123 -0
  180. package/dist/collapsible/variables.scss +1 -0
  181. package/dist/color-picker/alpha-slider-foundation.d.ts +29 -0
  182. package/dist/color-picker/alpha-slider-foundation.js +41 -0
  183. package/dist/color-picker/color-choose-area-foundation.d.ts +36 -0
  184. package/dist/color-picker/color-choose-area-foundation.js +57 -0
  185. package/dist/color-picker/color-picker.css +104 -0
  186. package/dist/color-picker/color-picker.scss +131 -0
  187. package/dist/color-picker/color-slider-foundation.d.ts +29 -0
  188. package/dist/color-picker/color-slider-foundation.js +41 -0
  189. package/dist/color-picker/constants.d.ts +3 -0
  190. package/dist/color-picker/constants.js +4 -0
  191. package/dist/color-picker/data-part-foundation.d.ts +28 -0
  192. package/dist/color-picker/data-part-foundation.js +76 -0
  193. package/dist/color-picker/foundation.d.ts +56 -0
  194. package/dist/color-picker/foundation.js +149 -0
  195. package/dist/color-picker/interface.d.ts +32 -0
  196. package/dist/color-picker/interface.js +0 -0
  197. package/dist/color-picker/utils/convert.d.ts +16 -0
  198. package/dist/color-picker/utils/convert.js +150 -0
  199. package/dist/color-picker/utils/round.d.ts +1 -0
  200. package/dist/color-picker/utils/round.js +5 -0
  201. package/dist/color-picker/utils/split.d.ts +5 -0
  202. package/dist/color-picker/utils/split.js +26 -0
  203. package/dist/color-picker/variables.scss +26 -0
  204. package/dist/config-provider/breakpoint-observer.d.ts +23 -0
  205. package/dist/config-provider/breakpoint-observer.js +139 -0
  206. package/dist/config-provider/inherit-config.d.ts +24 -0
  207. package/dist/config-provider/inherit-config.js +24 -0
  208. package/dist/config-provider/responsive-types.d.ts +39 -0
  209. package/dist/config-provider/responsive-types.js +0 -0
  210. package/dist/cropper/constants.d.ts +21 -0
  211. package/dist/cropper/constants.js +37 -0
  212. package/dist/cropper/cropper.css +101 -0
  213. package/dist/cropper/cropper.scss +129 -0
  214. package/dist/cropper/foundation.d.ts +91 -0
  215. package/dist/cropper/foundation.js +804 -0
  216. package/dist/cropper/utils.d.ts +20 -0
  217. package/dist/cropper/utils.js +23 -0
  218. package/dist/cropper/variables.scss +8 -0
  219. package/dist/date-picker/_utils/formatter.d.ts +6 -0
  220. package/dist/date-picker/_utils/formatter.js +21 -0
  221. package/dist/date-picker/_utils/get-day-of-week.d.ts +5 -0
  222. package/dist/date-picker/_utils/get-day-of-week.js +14 -0
  223. package/dist/date-picker/_utils/get-default-format-token.d.ts +10 -0
  224. package/dist/date-picker/_utils/get-default-format-token.js +18 -0
  225. package/dist/date-picker/_utils/get-default-picker-date.d.ts +15 -0
  226. package/dist/date-picker/_utils/get-default-picker-date.js +38 -0
  227. package/dist/date-picker/_utils/get-full-date-offset.d.ts +3 -0
  228. package/dist/date-picker/_utils/get-full-date-offset.js +11 -0
  229. package/dist/date-picker/_utils/get-inset-input-format-token.d.ts +20 -0
  230. package/dist/date-picker/_utils/get-inset-input-format-token.js +35 -0
  231. package/dist/date-picker/_utils/get-inset-input-value-from-inset-input-str.d.ts +30 -0
  232. package/dist/date-picker/_utils/get-inset-input-value-from-inset-input-str.js +59 -0
  233. package/dist/date-picker/_utils/get-month-table.d.ts +15 -0
  234. package/dist/date-picker/_utils/get-month-table.js +33 -0
  235. package/dist/date-picker/_utils/get-year-and-month.d.ts +16 -0
  236. package/dist/date-picker/_utils/get-year-and-month.js +18 -0
  237. package/dist/date-picker/_utils/get-year-month-from-value.d.ts +12 -0
  238. package/dist/date-picker/_utils/get-year-month-from-value.js +18 -0
  239. package/dist/date-picker/_utils/get-years.d.ts +1 -0
  240. package/dist/date-picker/_utils/get-years.js +9 -0
  241. package/dist/date-picker/_utils/index.d.ts +11 -0
  242. package/dist/date-picker/_utils/index.js +11 -0
  243. package/dist/date-picker/_utils/is-after.d.ts +1 -0
  244. package/dist/date-picker/_utils/is-after.js +7 -0
  245. package/dist/date-picker/_utils/is-before.d.ts +1 -0
  246. package/dist/date-picker/_utils/is-before.js +7 -0
  247. package/dist/date-picker/_utils/is-between.d.ts +8 -0
  248. package/dist/date-picker/_utils/is-between.js +11 -0
  249. package/dist/date-picker/_utils/is-same-day.d.ts +1 -0
  250. package/dist/date-picker/_utils/is-same-day.js +7 -0
  251. package/dist/date-picker/_utils/is-timestamp.d.ts +1 -0
  252. package/dist/date-picker/_utils/is-timestamp.js +6 -0
  253. package/dist/date-picker/_utils/is-valid-date.d.ts +1 -0
  254. package/dist/date-picker/_utils/is-valid-date.js +5 -0
  255. package/dist/date-picker/_utils/parser.d.ts +5 -0
  256. package/dist/date-picker/_utils/parser.js +24 -0
  257. package/dist/date-picker/_utils/picker-type.d.ts +20 -0
  258. package/dist/date-picker/_utils/picker-type.js +30 -0
  259. package/dist/date-picker/_utils/to-callback-args.d.ts +18 -0
  260. package/dist/date-picker/_utils/to-callback-args.js +47 -0
  261. package/dist/date-picker/_utils/to-date-arg.d.ts +6 -0
  262. package/dist/date-picker/_utils/to-date-arg.js +13 -0
  263. package/dist/date-picker/animation.scss +1 -0
  264. package/dist/date-picker/constants.d.ts +53 -0
  265. package/dist/date-picker/constants.js +78 -0
  266. package/dist/date-picker/date-picker.css +1285 -0
  267. package/dist/date-picker/date-picker.scss +1765 -0
  268. package/dist/date-picker/foundation.d.ts +336 -0
  269. package/dist/date-picker/foundation.js +736 -0
  270. package/dist/date-picker/input-foundation.d.ts +144 -0
  271. package/dist/date-picker/input-foundation.js +214 -0
  272. package/dist/date-picker/month-foundation.d.ts +157 -0
  273. package/dist/date-picker/month-foundation.js +188 -0
  274. package/dist/date-picker/months-grid-foundation.d.ts +180 -0
  275. package/dist/date-picker/months-grid-foundation.js +557 -0
  276. package/dist/date-picker/rtl.scss +28 -0
  277. package/dist/date-picker/variables.scss +237 -0
  278. package/dist/date-picker/year-and-month-foundation.d.ts +75 -0
  279. package/dist/date-picker/year-and-month-foundation.js +115 -0
  280. package/dist/descriptions/constants.d.ts +3 -0
  281. package/dist/descriptions/constants.js +4 -0
  282. package/dist/descriptions/descriptions.css +138 -0
  283. package/dist/descriptions/descriptions.scss +182 -0
  284. package/dist/descriptions/foundation.d.ts +12 -0
  285. package/dist/descriptions/foundation.js +36 -0
  286. package/dist/descriptions/rtl.scss +8 -0
  287. package/dist/descriptions/variables.scss +26 -0
  288. package/dist/divider/constants.d.ts +3 -0
  289. package/dist/divider/constants.js +4 -0
  290. package/dist/divider/divider.css +60 -0
  291. package/dist/divider/divider.scss +83 -0
  292. package/dist/divider/variables.scss +24 -0
  293. package/dist/drag-move/foundation.d.ts +31 -0
  294. package/dist/drag-move/foundation.js +178 -0
  295. package/dist/dropdown/animation.scss +5 -0
  296. package/dist/dropdown/constants.d.ts +11 -0
  297. package/dist/dropdown/constants.js +12 -0
  298. package/dist/dropdown/dropdown.css +154 -0
  299. package/dist/dropdown/dropdown.scss +128 -0
  300. package/dist/dropdown/foundation.d.ts +37 -0
  301. package/dist/dropdown/foundation.js +120 -0
  302. package/dist/dropdown/menu-foundation.d.ts +36 -0
  303. package/dist/dropdown/menu-foundation.js +82 -0
  304. package/dist/dropdown/rtl.scss +9 -0
  305. package/dist/dropdown/variables.scss +42 -0
  306. package/dist/empty/constants.d.ts +6 -0
  307. package/dist/empty/constants.js +5 -0
  308. package/dist/empty/empty.css +41 -0
  309. package/dist/empty/empty.scss +56 -0
  310. package/dist/empty/rtl.scss +8 -0
  311. package/dist/empty/variables.scss +10 -0
  312. package/dist/feedback/constants.d.ts +12 -0
  313. package/dist/feedback/constants.js +19 -0
  314. package/dist/feedback/feedback.css +110 -0
  315. package/dist/feedback/feedback.scss +153 -0
  316. package/dist/feedback/foundation.d.ts +43 -0
  317. package/dist/feedback/foundation.js +72 -0
  318. package/dist/feedback/variables.scss +26 -0
  319. package/dist/float-button/constants.d.ts +10 -0
  320. package/dist/float-button/constants.js +13 -0
  321. package/dist/float-button/float-button.css +159 -0
  322. package/dist/float-button/float-button.scss +203 -0
  323. package/dist/float-button/rtl.scss +2 -0
  324. package/dist/float-button/variables.scss +47 -0
  325. package/dist/form/constants.d.ts +7 -0
  326. package/dist/form/constants.js +8 -0
  327. package/dist/form/field-store.d.ts +10 -0
  328. package/dist/form/field-store.js +28 -0
  329. package/dist/form/form-api-proxy.d.ts +13 -0
  330. package/dist/form/form-api-proxy.js +48 -0
  331. package/dist/form/form.css +229 -0
  332. package/dist/form/form.scss +307 -0
  333. package/dist/form/foundation.d.ts +65 -0
  334. package/dist/form/foundation.js +836 -0
  335. package/dist/form/interface.d.ts +171 -0
  336. package/dist/form/interface.js +0 -0
  337. package/dist/form/rtl.scss +13 -0
  338. package/dist/form/utils.d.ts +89 -0
  339. package/dist/form/utils.js +115 -0
  340. package/dist/form/variables.scss +53 -0
  341. package/dist/grid/constants.d.ts +6 -0
  342. package/dist/grid/constants.js +12 -0
  343. package/dist/grid/grid.css +4206 -0
  344. package/dist/grid/grid.scss +101 -0
  345. package/dist/grid/gutter.d.ts +12 -0
  346. package/dist/grid/gutter.js +39 -0
  347. package/dist/grid/mixin.scss +119 -0
  348. package/dist/grid/rtl.scss +10 -0
  349. package/dist/grid/utils.d.ts +22 -0
  350. package/dist/grid/utils.js +39 -0
  351. package/dist/grid/variables.scss +29 -0
  352. package/dist/highlight/constants.d.ts +3 -0
  353. package/dist/highlight/constants.js +4 -0
  354. package/dist/highlight/foundation.d.ts +59 -0
  355. package/dist/highlight/foundation.js +110 -0
  356. package/dist/highlight/highlight.css +5 -0
  357. package/dist/highlight/highlight.scss +11 -0
  358. package/dist/highlight/variables.scss +6 -0
  359. package/dist/hot-keys/constants.d.ts +105 -0
  360. package/dist/hot-keys/constants.js +207 -0
  361. package/dist/hot-keys/foundation.d.ts +19 -0
  362. package/dist/hot-keys/foundation.js +92 -0
  363. package/dist/hot-keys/hot-keys.css +29 -0
  364. package/dist/hot-keys/hot-keys.scss +30 -0
  365. package/dist/hot-keys/variables.scss +12 -0
  366. package/dist/image/animation.scss +9 -0
  367. package/dist/image/constants.d.ts +6 -0
  368. package/dist/image/constants.js +5 -0
  369. package/dist/image/image-foundation.d.ts +30 -0
  370. package/dist/image/image-foundation.js +40 -0
  371. package/dist/image/image.css +250 -0
  372. package/dist/image/image.scss +272 -0
  373. package/dist/image/preview-footer-foundation.d.ts +26 -0
  374. package/dist/image/preview-footer-foundation.js +30 -0
  375. package/dist/image/preview-foundation.d.ts +51 -0
  376. package/dist/image/preview-foundation.js +70 -0
  377. package/dist/image/preview-image-foundation.d.ts +70 -0
  378. package/dist/image/preview-image-foundation.js +226 -0
  379. package/dist/image/preview-inner-foundation.d.ts +87 -0
  380. package/dist/image/preview-inner-foundation.js +238 -0
  381. package/dist/image/rtl.scss +28 -0
  382. package/dist/image/utils.d.ts +4 -0
  383. package/dist/image/utils.js +66 -0
  384. package/dist/image/variables.scss +44 -0
  385. package/dist/input/animation.scss +11 -0
  386. package/dist/input/constants.d.ts +9 -0
  387. package/dist/input/constants.js +14 -0
  388. package/dist/input/foundation.d.ts +51 -0
  389. package/dist/input/foundation.js +79 -0
  390. package/dist/input/input.css +616 -0
  391. package/dist/input/input.scss +738 -0
  392. package/dist/input/rtl.scss +11 -0
  393. package/dist/input/text-entry-foundation.d.ts +55 -0
  394. package/dist/input/text-entry-foundation.js +93 -0
  395. package/dist/input/textarea-foundation.d.ts +61 -0
  396. package/dist/input/textarea-foundation.js +130 -0
  397. package/dist/input/textarea.css +257 -0
  398. package/dist/input/textarea.scss +313 -0
  399. package/dist/input/util/line-number.d.ts +2 -0
  400. package/dist/input/util/line-number.js +42 -0
  401. package/dist/input/util/truncate-value.d.ts +5 -0
  402. package/dist/input/util/truncate-value.js +14 -0
  403. package/dist/input/variables.scss +107 -0
  404. package/dist/input-number/animation.scss +11 -0
  405. package/dist/input-number/caret.d.ts +4 -0
  406. package/dist/input-number/caret.js +21 -0
  407. package/dist/input-number/constants.d.ts +15 -0
  408. package/dist/input-number/constants.js +13 -0
  409. package/dist/input-number/foundation.d.ts +110 -0
  410. package/dist/input-number/foundation.js +557 -0
  411. package/dist/input-number/input-number.css +84 -0
  412. package/dist/input-number/input-number.scss +124 -0
  413. package/dist/input-number/rtl.scss +9 -0
  414. package/dist/input-number/variables.scss +26 -0
  415. package/dist/json-viewer/constants.d.ts +3 -0
  416. package/dist/json-viewer/constants.js +4 -0
  417. package/dist/json-viewer/foundation.d.ts +42 -0
  418. package/dist/json-viewer/foundation.js +124 -0
  419. package/dist/json-viewer/json-viewer.css +183 -0
  420. package/dist/json-viewer/json-viewer.scss +224 -0
  421. package/dist/json-viewer/variables.scss +18 -0
  422. package/dist/layout/constants.d.ts +3 -0
  423. package/dist/layout/constants.js +4 -0
  424. package/dist/layout/layout.css +36 -0
  425. package/dist/layout/layout.scss +51 -0
  426. package/dist/layout/rtl.scss +7 -0
  427. package/dist/list/constants.d.ts +3 -0
  428. package/dist/list/constants.js +4 -0
  429. package/dist/list/list.css +123 -0
  430. package/dist/list/list.scss +162 -0
  431. package/dist/list/rtl.scss +9 -0
  432. package/dist/list/variables.scss +18 -0
  433. package/dist/locale/interface.d.ts +663 -0
  434. package/dist/locale/interface.js +0 -0
  435. package/dist/locale/resolve-locale.d.ts +6 -0
  436. package/dist/locale/resolve-locale.js +17 -0
  437. package/dist/locale/source/ar.d.ts +3 -0
  438. package/dist/locale/source/ar.js +502 -0
  439. package/dist/locale/source/az.d.ts +3 -0
  440. package/dist/locale/source/az.js +502 -0
  441. package/dist/locale/source/bg.d.ts +3 -0
  442. package/dist/locale/source/bg.js +502 -0
  443. package/dist/locale/source/bn_IN.d.ts +3 -0
  444. package/dist/locale/source/bn_IN.js +502 -0
  445. package/dist/locale/source/ca.d.ts +3 -0
  446. package/dist/locale/source/ca.js +502 -0
  447. package/dist/locale/source/ceb_PH.d.ts +3 -0
  448. package/dist/locale/source/ceb_PH.js +502 -0
  449. package/dist/locale/source/cs_CZ.d.ts +3 -0
  450. package/dist/locale/source/cs_CZ.js +502 -0
  451. package/dist/locale/source/da.d.ts +3 -0
  452. package/dist/locale/source/da.js +502 -0
  453. package/dist/locale/source/de.d.ts +3 -0
  454. package/dist/locale/source/de.js +502 -0
  455. package/dist/locale/source/el_GR.d.ts +3 -0
  456. package/dist/locale/source/el_GR.js +502 -0
  457. package/dist/locale/source/en_GB.d.ts +3 -0
  458. package/dist/locale/source/en_GB.js +502 -0
  459. package/dist/locale/source/en_US.d.ts +3 -0
  460. package/dist/locale/source/en_US.js +502 -0
  461. package/dist/locale/source/es.d.ts +3 -0
  462. package/dist/locale/source/es.js +502 -0
  463. package/dist/locale/source/es_419.d.ts +3 -0
  464. package/dist/locale/source/es_419.js +502 -0
  465. package/dist/locale/source/et.d.ts +3 -0
  466. package/dist/locale/source/et.js +502 -0
  467. package/dist/locale/source/fa_IR.d.ts +3 -0
  468. package/dist/locale/source/fa_IR.js +502 -0
  469. package/dist/locale/source/fi_FI.d.ts +3 -0
  470. package/dist/locale/source/fi_FI.js +502 -0
  471. package/dist/locale/source/fil_PH.d.ts +3 -0
  472. package/dist/locale/source/fil_PH.js +502 -0
  473. package/dist/locale/source/fr.d.ts +3 -0
  474. package/dist/locale/source/fr.js +502 -0
  475. package/dist/locale/source/fr_CA.d.ts +3 -0
  476. package/dist/locale/source/fr_CA.js +502 -0
  477. package/dist/locale/source/ga.d.ts +3 -0
  478. package/dist/locale/source/ga.js +502 -0
  479. package/dist/locale/source/he_IL.d.ts +3 -0
  480. package/dist/locale/source/he_IL.js +502 -0
  481. package/dist/locale/source/hi_IN.d.ts +3 -0
  482. package/dist/locale/source/hi_IN.js +502 -0
  483. package/dist/locale/source/hr.d.ts +3 -0
  484. package/dist/locale/source/hr.js +502 -0
  485. package/dist/locale/source/hu_HU.d.ts +3 -0
  486. package/dist/locale/source/hu_HU.js +502 -0
  487. package/dist/locale/source/id_ID.d.ts +3 -0
  488. package/dist/locale/source/id_ID.js +502 -0
  489. package/dist/locale/source/is.d.ts +3 -0
  490. package/dist/locale/source/is.js +502 -0
  491. package/dist/locale/source/it.d.ts +3 -0
  492. package/dist/locale/source/it.js +502 -0
  493. package/dist/locale/source/ja_JP.d.ts +3 -0
  494. package/dist/locale/source/ja_JP.js +502 -0
  495. package/dist/locale/source/jv_ID.d.ts +3 -0
  496. package/dist/locale/source/jv_ID.js +502 -0
  497. package/dist/locale/source/kk.d.ts +3 -0
  498. package/dist/locale/source/kk.js +502 -0
  499. package/dist/locale/source/km_KH.d.ts +3 -0
  500. package/dist/locale/source/km_KH.js +502 -0
  501. package/dist/locale/source/ko_KR.d.ts +3 -0
  502. package/dist/locale/source/ko_KR.js +502 -0
  503. package/dist/locale/source/lt.d.ts +3 -0
  504. package/dist/locale/source/lt.js +502 -0
  505. package/dist/locale/source/lv.d.ts +3 -0
  506. package/dist/locale/source/lv.js +502 -0
  507. package/dist/locale/source/ms_MY.d.ts +3 -0
  508. package/dist/locale/source/ms_MY.js +502 -0
  509. package/dist/locale/source/my_MM.d.ts +3 -0
  510. package/dist/locale/source/my_MM.js +502 -0
  511. package/dist/locale/source/nb.d.ts +3 -0
  512. package/dist/locale/source/nb.js +502 -0
  513. package/dist/locale/source/nl_NL.d.ts +3 -0
  514. package/dist/locale/source/nl_NL.js +502 -0
  515. package/dist/locale/source/pl_PL.d.ts +3 -0
  516. package/dist/locale/source/pl_PL.js +502 -0
  517. package/dist/locale/source/pt.d.ts +3 -0
  518. package/dist/locale/source/pt.js +502 -0
  519. package/dist/locale/source/pt_BR.d.ts +3 -0
  520. package/dist/locale/source/pt_BR.js +502 -0
  521. package/dist/locale/source/ro.d.ts +3 -0
  522. package/dist/locale/source/ro.js +502 -0
  523. package/dist/locale/source/ru_RU.d.ts +3 -0
  524. package/dist/locale/source/ru_RU.js +502 -0
  525. package/dist/locale/source/sk.d.ts +3 -0
  526. package/dist/locale/source/sk.js +502 -0
  527. package/dist/locale/source/sl.d.ts +3 -0
  528. package/dist/locale/source/sl.js +502 -0
  529. package/dist/locale/source/sq.d.ts +3 -0
  530. package/dist/locale/source/sq.js +502 -0
  531. package/dist/locale/source/sv_SE.d.ts +3 -0
  532. package/dist/locale/source/sv_SE.js +502 -0
  533. package/dist/locale/source/sw.d.ts +3 -0
  534. package/dist/locale/source/sw.js +502 -0
  535. package/dist/locale/source/th_TH.d.ts +3 -0
  536. package/dist/locale/source/th_TH.js +502 -0
  537. package/dist/locale/source/tr_TR.d.ts +3 -0
  538. package/dist/locale/source/tr_TR.js +502 -0
  539. package/dist/locale/source/uk_UA.d.ts +3 -0
  540. package/dist/locale/source/uk_UA.js +502 -0
  541. package/dist/locale/source/ur.d.ts +3 -0
  542. package/dist/locale/source/ur.js +502 -0
  543. package/dist/locale/source/uz.d.ts +3 -0
  544. package/dist/locale/source/uz.js +502 -0
  545. package/dist/locale/source/vi_VN.d.ts +3 -0
  546. package/dist/locale/source/vi_VN.js +502 -0
  547. package/dist/locale/source/zh_CN.d.ts +3 -0
  548. package/dist/locale/source/zh_CN.js +502 -0
  549. package/dist/locale/source/zh_TW.d.ts +3 -0
  550. package/dist/locale/source/zh_TW.js +502 -0
  551. package/dist/lottie/constants.d.ts +3 -0
  552. package/dist/lottie/constants.js +4 -0
  553. package/dist/lottie/foundation.d.ts +24 -0
  554. package/dist/lottie/foundation.js +62 -0
  555. package/dist/markdown-render/constants.d.ts +3 -0
  556. package/dist/markdown-render/constants.js +4 -0
  557. package/dist/markdown-render/foundation.d.ts +50 -0
  558. package/dist/markdown-render/foundation.js +101 -0
  559. package/dist/markdown-render/markdown-render.css +59 -0
  560. package/dist/markdown-render/markdown-render.scss +79 -0
  561. package/dist/markdown-render/variables.scss +31 -0
  562. package/dist/modal/animation.scss +25 -0
  563. package/dist/modal/confirm.d.ts +13 -0
  564. package/dist/modal/confirm.js +34 -0
  565. package/dist/modal/constants.d.ts +3 -0
  566. package/dist/modal/constants.js +4 -0
  567. package/dist/modal/modal-content-foundation.d.ts +40 -0
  568. package/dist/modal/modal-content-foundation.js +48 -0
  569. package/dist/modal/modal-foundation.d.ts +85 -0
  570. package/dist/modal/modal-foundation.js +74 -0
  571. package/dist/modal/modal.css +235 -0
  572. package/dist/modal/modal.scss +285 -0
  573. package/dist/modal/rtl.scss +10 -0
  574. package/dist/modal/variables.scss +70 -0
  575. package/dist/navigation/animation.scss +5 -0
  576. package/dist/navigation/constants.d.ts +17 -0
  577. package/dist/navigation/constants.js +20 -0
  578. package/dist/navigation/foundation.d.ts +75 -0
  579. package/dist/navigation/foundation.js +158 -0
  580. package/dist/navigation/item-foundation.d.ts +44 -0
  581. package/dist/navigation/item-foundation.js +42 -0
  582. package/dist/navigation/mixin.scss +100 -0
  583. package/dist/navigation/navigation.css +779 -0
  584. package/dist/navigation/navigation.scss +764 -0
  585. package/dist/navigation/rtl.scss +17 -0
  586. package/dist/navigation/sub-nav-foundation.d.ts +31 -0
  587. package/dist/navigation/sub-nav-foundation.js +54 -0
  588. package/dist/navigation/variables.scss +120 -0
  589. package/dist/notification/animation.scss +12 -0
  590. package/dist/notification/constants.d.ts +19 -0
  591. package/dist/notification/constants.js +32 -0
  592. package/dist/notification/notification-foundation.d.ts +33 -0
  593. package/dist/notification/notification-foundation.js +5 -0
  594. package/dist/notification/notification-list-foundation.d.ts +56 -0
  595. package/dist/notification/notification-list-foundation.js +49 -0
  596. package/dist/notification/notification.css +398 -0
  597. package/dist/notification/notification.scss +428 -0
  598. package/dist/notification/rtl.scss +9 -0
  599. package/dist/notification/variables.scss +41 -0
  600. package/dist/overflow-list/constants.d.ts +17 -0
  601. package/dist/overflow-list/constants.js +16 -0
  602. package/dist/overflow-list/foundation.d.ts +78 -0
  603. package/dist/overflow-list/foundation.js +189 -0
  604. package/dist/overflow-list/overflow-list.css +19 -0
  605. package/dist/overflow-list/overflow-list.scss +24 -0
  606. package/dist/overflow-list/rtl.scss +7 -0
  607. package/dist/pagination/animation.scss +11 -0
  608. package/dist/pagination/constants.d.ts +8 -0
  609. package/dist/pagination/constants.js +14 -0
  610. package/dist/pagination/foundation.d.ts +61 -0
  611. package/dist/pagination/foundation.js +175 -0
  612. package/dist/pagination/pagination.css +192 -0
  613. package/dist/pagination/pagination.scss +189 -0
  614. package/dist/pagination/rtl.scss +14 -0
  615. package/dist/pagination/variables.scss +45 -0
  616. package/dist/pincode/constants.d.ts +3 -0
  617. package/dist/pincode/constants.js +4 -0
  618. package/dist/pincode/foundation.d.ts +39 -0
  619. package/dist/pincode/foundation.js +86 -0
  620. package/dist/pincode/pincode.css +30 -0
  621. package/dist/pincode/pincode.scss +47 -0
  622. package/dist/pincode/variables.scss +9 -0
  623. package/dist/popconfirm/constants.d.ts +7 -0
  624. package/dist/popconfirm/constants.js +8 -0
  625. package/dist/popconfirm/popconfirm-foundation.d.ts +38 -0
  626. package/dist/popconfirm/popconfirm-foundation.js +57 -0
  627. package/dist/popconfirm/popconfirm.css +69 -0
  628. package/dist/popconfirm/popconfirm.scss +84 -0
  629. package/dist/popconfirm/rtl.scss +12 -0
  630. package/dist/popconfirm/variables.scss +26 -0
  631. package/dist/popover/animation.scss +5 -0
  632. package/dist/popover/constants.d.ts +21 -0
  633. package/dist/popover/constants.js +47 -0
  634. package/dist/popover/popover.css +212 -0
  635. package/dist/popover/popover.scss +64 -0
  636. package/dist/popover/rtl.scss +9 -0
  637. package/dist/popover/variables.scss +25 -0
  638. package/dist/progress/constants.d.ts +7 -0
  639. package/dist/progress/constants.js +8 -0
  640. package/dist/progress/generates.d.ts +11 -0
  641. package/dist/progress/generates.js +27 -0
  642. package/dist/progress/progress.css +142 -0
  643. package/dist/progress/progress.scss +170 -0
  644. package/dist/progress/rtl.scss +13 -0
  645. package/dist/progress/utils.d.ts +18 -0
  646. package/dist/progress/utils.js +45 -0
  647. package/dist/progress/variables.scss +26 -0
  648. package/dist/radio/animation.scss +9 -0
  649. package/dist/radio/constants.d.ts +16 -0
  650. package/dist/radio/constants.js +19 -0
  651. package/dist/radio/mixin.scss +3 -0
  652. package/dist/radio/radio-foundation.d.ts +78 -0
  653. package/dist/radio/radio-foundation.js +94 -0
  654. package/dist/radio/radio-group-foundation.d.ts +18 -0
  655. package/dist/radio/radio-group-foundation.js +27 -0
  656. package/dist/radio/radio.css +332 -0
  657. package/dist/radio/radio.scss +457 -0
  658. package/dist/radio/rtl.scss +11 -0
  659. package/dist/radio/variables.scss +107 -0
  660. package/dist/rating/animation.scss +7 -0
  661. package/dist/rating/constants.d.ts +6 -0
  662. package/dist/rating/constants.js +5 -0
  663. package/dist/rating/foundation.d.ts +109 -0
  664. package/dist/rating/foundation.js +167 -0
  665. package/dist/rating/rating.css +89 -0
  666. package/dist/rating/rating.scss +119 -0
  667. package/dist/rating/rtl.scss +9 -0
  668. package/dist/rating/variables.scss +19 -0
  669. package/dist/resizable/constants.d.ts +3 -0
  670. package/dist/resizable/constants.js +4 -0
  671. package/dist/resizable/foundation.d.ts +3 -0
  672. package/dist/resizable/foundation.js +3 -0
  673. package/dist/resizable/group/index.d.ts +55 -0
  674. package/dist/resizable/group/index.js +313 -0
  675. package/dist/resizable/resizable.css +125 -0
  676. package/dist/resizable/resizable.scss +147 -0
  677. package/dist/resizable/single/index.d.ts +90 -0
  678. package/dist/resizable/single/index.js +429 -0
  679. package/dist/resizable/types.d.ts +43 -0
  680. package/dist/resizable/types.js +18 -0
  681. package/dist/resizable/utils.d.ts +23 -0
  682. package/dist/resizable/utils.js +53 -0
  683. package/dist/resizable/variables.scss +10 -0
  684. package/dist/scroll-list/animation.scss +5 -0
  685. package/dist/scroll-list/constants.d.ts +8 -0
  686. package/dist/scroll-list/constants.js +11 -0
  687. package/dist/scroll-list/item-foundation.d.ts +56 -0
  688. package/dist/scroll-list/item-foundation.js +336 -0
  689. package/dist/scroll-list/rtl.scss +9 -0
  690. package/dist/scroll-list/scroll-list.css +178 -0
  691. package/dist/scroll-list/scroll-list.scss +198 -0
  692. package/dist/scroll-list/scroll-to.d.ts +2 -0
  693. package/dist/scroll-list/scroll-to.js +15 -0
  694. package/dist/scroll-list/variables.scss +50 -0
  695. package/dist/select/animation.scss +16 -0
  696. package/dist/select/combobox-name.d.ts +10 -0
  697. package/dist/select/combobox-name.js +21 -0
  698. package/dist/select/constants.d.ts +15 -0
  699. package/dist/select/constants.js +22 -0
  700. package/dist/select/foundation.d.ts +140 -0
  701. package/dist/select/foundation.js +775 -0
  702. package/dist/select/mixin.scss +8 -0
  703. package/dist/select/option-foundation.d.ts +51 -0
  704. package/dist/select/option-foundation.js +44 -0
  705. package/dist/select/option.scss +86 -0
  706. package/dist/select/rtl.scss +10 -0
  707. package/dist/select/select.css +533 -0
  708. package/dist/select/select.scss +554 -0
  709. package/dist/select/variables.scss +128 -0
  710. package/dist/side-sheet/animation.scss +17 -0
  711. package/dist/side-sheet/constants.d.ts +6 -0
  712. package/dist/side-sheet/constants.js +5 -0
  713. package/dist/side-sheet/rtl.scss +9 -0
  714. package/dist/side-sheet/side-sheet-foundation.d.ts +69 -0
  715. package/dist/side-sheet/side-sheet-foundation.js +54 -0
  716. package/dist/side-sheet/side-sheet.css +285 -0
  717. package/dist/side-sheet/side-sheet.scss +356 -0
  718. package/dist/side-sheet/variables.scss +27 -0
  719. package/dist/skeleton/animation.scss +4 -0
  720. package/dist/skeleton/constants.d.ts +3 -0
  721. package/dist/skeleton/constants.js +4 -0
  722. package/dist/skeleton/rtl.scss +9 -0
  723. package/dist/skeleton/skeleton.css +84 -0
  724. package/dist/skeleton/skeleton.scss +115 -0
  725. package/dist/skeleton/variables.scss +21 -0
  726. package/dist/slider/animation.scss +7 -0
  727. package/dist/slider/constants.d.ts +9 -0
  728. package/dist/slider/constants.js +12 -0
  729. package/dist/slider/foundation.d.ts +167 -0
  730. package/dist/slider/foundation.js +441 -0
  731. package/dist/slider/rtl.scss +23 -0
  732. package/dist/slider/slider.css +239 -0
  733. package/dist/slider/slider.scss +269 -0
  734. package/dist/slider/variables.scss +67 -0
  735. package/dist/sortable/accessibility.d.ts +14 -0
  736. package/dist/sortable/accessibility.js +45 -0
  737. package/dist/space/constants.d.ts +8 -0
  738. package/dist/space/constants.js +9 -0
  739. package/dist/space/rtl.scss +8 -0
  740. package/dist/space/space.css +46 -0
  741. package/dist/space/space.scss +65 -0
  742. package/dist/space/variables.scss +5 -0
  743. package/dist/spin/animation.scss +4 -0
  744. package/dist/spin/constants.d.ts +3 -0
  745. package/dist/spin/constants.js +3 -0
  746. package/dist/spin/foundation.d.ts +20 -0
  747. package/dist/spin/foundation.js +43 -0
  748. package/dist/spin/mixin.scss +7 -0
  749. package/dist/spin/rtl.scss +11 -0
  750. package/dist/spin/spin.css +97 -0
  751. package/dist/spin/spin.scss +111 -0
  752. package/dist/spin/variables.scss +11 -0
  753. package/dist/steps/animation.scss +15 -0
  754. package/dist/steps/bacis-steps.scss +338 -0
  755. package/dist/steps/constants.d.ts +5 -0
  756. package/dist/steps/constants.js +8 -0
  757. package/dist/steps/fill-steps.scss +179 -0
  758. package/dist/steps/mixin.scss +3 -0
  759. package/dist/steps/nav-steps.scss +66 -0
  760. package/dist/steps/rtl.scss +14 -0
  761. package/dist/steps/steps.css +523 -0
  762. package/dist/steps/steps.scss +17 -0
  763. package/dist/steps/utils.d.ts +10 -0
  764. package/dist/steps/utils.js +15 -0
  765. package/dist/steps/variables.scss +95 -0
  766. package/dist/switch/animation.scss +5 -0
  767. package/dist/switch/constants.d.ts +13 -0
  768. package/dist/switch/constants.js +16 -0
  769. package/dist/switch/foundation.d.ts +24 -0
  770. package/dist/switch/foundation.js +19 -0
  771. package/dist/switch/rtl.scss +98 -0
  772. package/dist/switch/switch.css +293 -0
  773. package/dist/switch/switch.scss +317 -0
  774. package/dist/switch/variables.scss +75 -0
  775. package/dist/table/animation.scss +7 -0
  776. package/dist/table/constants.d.ts +62 -0
  777. package/dist/table/constants.js +97 -0
  778. package/dist/table/foundation.d.ts +354 -0
  779. package/dist/table/foundation.js +870 -0
  780. package/dist/table/mixin.scss +12 -0
  781. package/dist/table/operation-panel.scss +42 -0
  782. package/dist/table/rtl.scss +24 -0
  783. package/dist/table/table.css +636 -0
  784. package/dist/table/table.scss +789 -0
  785. package/dist/table/utils.d.ts +187 -0
  786. package/dist/table/utils.js +482 -0
  787. package/dist/table/variables.scss +85 -0
  788. package/dist/tabs/animation.scss +30 -0
  789. package/dist/tabs/constants.d.ts +28 -0
  790. package/dist/tabs/constants.js +37 -0
  791. package/dist/tabs/foundation.d.ts +91 -0
  792. package/dist/tabs/foundation.js +189 -0
  793. package/dist/tabs/rtl.scss +16 -0
  794. package/dist/tabs/tabs.css +699 -0
  795. package/dist/tabs/tabs.scss +933 -0
  796. package/dist/tabs/variables.scss +155 -0
  797. package/dist/tag/constants.d.ts +8 -0
  798. package/dist/tag/constants.js +35 -0
  799. package/dist/tag/focus.d.ts +6 -0
  800. package/dist/tag/focus.js +23 -0
  801. package/dist/tag/mixin.scss +18 -0
  802. package/dist/tag/rtl.scss +12 -0
  803. package/dist/tag/tag-key.d.ts +9 -0
  804. package/dist/tag/tag-key.js +18 -0
  805. package/dist/tag/tag.css +537 -0
  806. package/dist/tag/tag.scss +359 -0
  807. package/dist/tag/variables.scss +85 -0
  808. package/dist/tag-input/animation.scss +9 -0
  809. package/dist/tag-input/constants.d.ts +6 -0
  810. package/dist/tag-input/constants.js +9 -0
  811. package/dist/tag-input/foundation.d.ts +91 -0
  812. package/dist/tag-input/foundation.js +222 -0
  813. package/dist/tag-input/rtl.scss +9 -0
  814. package/dist/tag-input/tag-input.css +297 -0
  815. package/dist/tag-input/tag-input.scss +358 -0
  816. package/dist/tag-input/utils/get-splited-array.d.ts +4 -0
  817. package/dist/tag-input/utils/get-splited-array.js +16 -0
  818. package/dist/tag-input/utils/tag-focus.d.ts +3 -0
  819. package/dist/tag-input/utils/tag-focus.js +15 -0
  820. package/dist/tag-input/variables.scss +57 -0
  821. package/dist/theme/_font.scss +49 -0
  822. package/dist/theme/_palette.scss +474 -0
  823. package/dist/theme/animation.scss +40 -0
  824. package/dist/theme/global.scss +287 -0
  825. package/dist/theme/index.scss +3 -0
  826. package/dist/theme/mixin.scss +66 -0
  827. package/dist/theme/variables.scss +56 -0
  828. package/dist/time-picker/combox-foundation.d.ts +79 -0
  829. package/dist/time-picker/combox-foundation.js +103 -0
  830. package/dist/time-picker/constants.d.ts +18 -0
  831. package/dist/time-picker/constants.js +23 -0
  832. package/dist/time-picker/foundation.d.ts +108 -0
  833. package/dist/time-picker/foundation.js +254 -0
  834. package/dist/time-picker/input-foundation.d.ts +15 -0
  835. package/dist/time-picker/input-foundation.js +33 -0
  836. package/dist/time-picker/rtl.scss +10 -0
  837. package/dist/time-picker/time-picker.css +82 -0
  838. package/dist/time-picker/time-picker.scss +128 -0
  839. package/dist/time-picker/utils/index.d.ts +18 -0
  840. package/dist/time-picker/utils/index.js +68 -0
  841. package/dist/time-picker/variables.scss +19 -0
  842. package/dist/timeline/constants.d.ts +4 -0
  843. package/dist/timeline/constants.js +7 -0
  844. package/dist/timeline/rtl.scss +13 -0
  845. package/dist/timeline/timeline.css +137 -0
  846. package/dist/timeline/timeline.scss +190 -0
  847. package/dist/timeline/utils.d.ts +3 -0
  848. package/dist/timeline/utils.js +10 -0
  849. package/dist/timeline/variables.scss +48 -0
  850. package/dist/toast/animation.scss +16 -0
  851. package/dist/toast/constants.d.ts +25 -0
  852. package/dist/toast/constants.js +34 -0
  853. package/dist/toast/rtl.scss +9 -0
  854. package/dist/toast/toast-foundation.d.ts +37 -0
  855. package/dist/toast/toast-foundation.js +5 -0
  856. package/dist/toast/toast-list-foundation.d.ts +25 -0
  857. package/dist/toast/toast-list-foundation.js +54 -0
  858. package/dist/toast/toast.css +174 -0
  859. package/dist/toast/toast.scss +238 -0
  860. package/dist/toast/variables.scss +45 -0
  861. package/dist/tooltip/adjust-position.d.ts +41 -0
  862. package/dist/tooltip/adjust-position.js +202 -0
  863. package/dist/tooltip/animation.scss +4 -0
  864. package/dist/tooltip/arrow.scss +178 -0
  865. package/dist/tooltip/constants.d.ts +50 -0
  866. package/dist/tooltip/constants.js +96 -0
  867. package/dist/tooltip/foundation.d.ts +105 -0
  868. package/dist/tooltip/foundation.js +650 -0
  869. package/dist/tooltip/position.scss +63 -0
  870. package/dist/tooltip/rtl.scss +9 -0
  871. package/dist/tooltip/tooltip.css +229 -0
  872. package/dist/tooltip/tooltip.scss +72 -0
  873. package/dist/tooltip/variables.scss +34 -0
  874. package/dist/transfer/animation.scss +5 -0
  875. package/dist/transfer/constants.d.ts +11 -0
  876. package/dist/transfer/constants.js +10 -0
  877. package/dist/transfer/foundation.d.ts +112 -0
  878. package/dist/transfer/foundation.js +179 -0
  879. package/dist/transfer/rtl.scss +9 -0
  880. package/dist/transfer/transfer-utils.d.ts +5 -0
  881. package/dist/transfer/transfer-utils.js +45 -0
  882. package/dist/transfer/transfer.css +237 -0
  883. package/dist/transfer/transfer.scss +260 -0
  884. package/dist/transfer/variables.scss +50 -0
  885. package/dist/tree/animation.scss +7 -0
  886. package/dist/tree/constants.d.ts +7 -0
  887. package/dist/tree/constants.js +8 -0
  888. package/dist/tree/foundation.d.ts +296 -0
  889. package/dist/tree/foundation.js +539 -0
  890. package/dist/tree/rtl.scss +16 -0
  891. package/dist/tree/shared.d.ts +128 -0
  892. package/dist/tree/shared.js +308 -0
  893. package/dist/tree/tree-util.d.ts +105 -0
  894. package/dist/tree/tree-util.js +455 -0
  895. package/dist/tree/tree.css +387 -0
  896. package/dist/tree/tree.scss +439 -0
  897. package/dist/tree/variables.scss +39 -0
  898. package/dist/tree-select/constants.d.ts +11 -0
  899. package/dist/tree-select/constants.js +19 -0
  900. package/dist/tree-select/foundation.d.ts +176 -0
  901. package/dist/tree-select/foundation.js +610 -0
  902. package/dist/tree-select/rtl.scss +9 -0
  903. package/dist/tree-select/tree-select.css +376 -0
  904. package/dist/tree-select/tree-select.scss +467 -0
  905. package/dist/tree-select/variables.scss +90 -0
  906. package/dist/typography/constants.d.ts +12 -0
  907. package/dist/typography/constants.js +50 -0
  908. package/dist/typography/ellipsis.d.ts +36 -0
  909. package/dist/typography/ellipsis.js +156 -0
  910. package/dist/typography/format-numeral.d.ts +10 -0
  911. package/dist/typography/format-numeral.js +99 -0
  912. package/dist/typography/rtl.scss +13 -0
  913. package/dist/typography/typography.css +380 -0
  914. package/dist/typography/typography.scss +384 -0
  915. package/dist/typography/variables.scss +94 -0
  916. package/dist/upload/constants.d.ts +24 -0
  917. package/dist/upload/constants.js +39 -0
  918. package/dist/upload/foundation.d.ts +187 -0
  919. package/dist/upload/foundation.js +762 -0
  920. package/dist/upload/rtl.scss +13 -0
  921. package/dist/upload/upload.css +599 -0
  922. package/dist/upload/upload.scss +640 -0
  923. package/dist/upload/utils.d.ts +25 -0
  924. package/dist/upload/utils.js +98 -0
  925. package/dist/upload/variables.scss +89 -0
  926. package/dist/user-guide/animation.scss +4 -0
  927. package/dist/user-guide/constants.d.ts +9 -0
  928. package/dist/user-guide/constants.js +12 -0
  929. package/dist/user-guide/foundation.d.ts +47 -0
  930. package/dist/user-guide/foundation.js +73 -0
  931. package/dist/user-guide/user-guide.css +120 -0
  932. package/dist/user-guide/user-guide.scss +151 -0
  933. package/dist/user-guide/variables.scss +40 -0
  934. package/dist/utils/a11y.d.ts +99 -0
  935. package/dist/utils/a11y.js +168 -0
  936. package/dist/utils/animated-height.d.ts +8 -0
  937. package/dist/utils/animated-height.js +28 -0
  938. package/dist/utils/announcer.d.ts +35 -0
  939. package/dist/utils/announcer.js +54 -0
  940. package/dist/utils/array-move.d.ts +1 -0
  941. package/dist/utils/array-move.js +5 -0
  942. package/dist/utils/array.d.ts +10 -0
  943. package/dist/utils/array.js +21 -0
  944. package/dist/utils/classnames.d.ts +2 -0
  945. package/dist/utils/classnames.js +10 -0
  946. package/dist/utils/clipboard.d.ts +1 -0
  947. package/dist/utils/clipboard.js +5 -0
  948. package/dist/utils/date-fns-extra.d.ts +38 -0
  949. package/dist/utils/date-fns-extra.js +105 -0
  950. package/dist/utils/dom.d.ts +31 -0
  951. package/dist/utils/dom.js +53 -0
  952. package/dist/utils/escape-html.d.ts +9 -0
  953. package/dist/utils/escape-html.js +67 -0
  954. package/dist/utils/event.d.ts +9 -0
  955. package/dist/utils/event.js +36 -0
  956. package/dist/utils/field-sizing.d.ts +15 -0
  957. package/dist/utils/field-sizing.js +52 -0
  958. package/dist/utils/focus-handle.d.ts +44 -0
  959. package/dist/utils/focus-handle.js +93 -0
  960. package/dist/utils/focus-handover.d.ts +11 -0
  961. package/dist/utils/focus-handover.js +22 -0
  962. package/dist/utils/focus-scope.d.ts +25 -0
  963. package/dist/utils/focus-scope.js +78 -0
  964. package/dist/utils/function.d.ts +1 -0
  965. package/dist/utils/function.js +3 -0
  966. package/dist/utils/get-data-attr.d.ts +3 -0
  967. package/dist/utils/get-data-attr.js +5 -0
  968. package/dist/utils/is-element.d.ts +1 -0
  969. package/dist/utils/is-element.js +5 -0
  970. package/dist/utils/is-enter-press.d.ts +3 -0
  971. package/dist/utils/is-enter-press.js +6 -0
  972. package/dist/utils/is-object.d.ts +1 -0
  973. package/dist/utils/is-object.js +5 -0
  974. package/dist/utils/is-promise.d.ts +1 -0
  975. package/dist/utils/is-promise.js +6 -0
  976. package/dist/utils/is-valid-time-zone.d.ts +1 -0
  977. package/dist/utils/is-valid-time-zone.js +5 -0
  978. package/dist/utils/key-code.d.ts +12 -0
  979. package/dist/utils/key-code.js +11 -0
  980. package/dist/utils/layer.d.ts +25 -0
  981. package/dist/utils/layer.js +73 -0
  982. package/dist/utils/object.d.ts +10 -0
  983. package/dist/utils/object.js +66 -0
  984. package/dist/utils/pointer.d.ts +1 -0
  985. package/dist/utils/pointer.js +5 -0
  986. package/dist/utils/release-holder.d.ts +9 -0
  987. package/dist/utils/release-holder.js +18 -0
  988. package/dist/utils/scroll-lock.d.ts +7 -0
  989. package/dist/utils/scroll-lock.js +38 -0
  990. package/dist/utils/shallow-equal-objects.d.ts +5 -0
  991. package/dist/utils/shallow-equal-objects.js +8 -0
  992. package/dist/utils/supports.d.ts +18 -0
  993. package/dist/utils/supports.js +93 -0
  994. package/dist/utils/tween.d.ts +14 -0
  995. package/dist/utils/tween.js +16 -0
  996. package/dist/utils/type.d.ts +2 -0
  997. package/dist/utils/type.js +0 -0
  998. package/dist/utils/uuid.d.ts +2 -0
  999. package/dist/utils/uuid.js +7 -0
  1000. package/dist/utils/warning.d.ts +8 -0
  1001. package/dist/utils/warning.js +14 -0
  1002. package/dist/video-player/animation.scss +7 -0
  1003. package/dist/video-player/constants.d.ts +27 -0
  1004. package/dist/video-player/constants.js +48 -0
  1005. package/dist/video-player/foundation.d.ts +94 -0
  1006. package/dist/video-player/foundation.js +287 -0
  1007. package/dist/video-player/progress-foundation.d.ts +80 -0
  1008. package/dist/video-player/progress-foundation.js +117 -0
  1009. package/dist/video-player/utils.d.ts +24 -0
  1010. package/dist/video-player/utils.js +50 -0
  1011. package/dist/video-player/variables.scss +69 -0
  1012. package/dist/video-player/video-player.css +282 -0
  1013. package/dist/video-player/video-player.scss +344 -0
  1014. package/package.json +53 -3
@@ -0,0 +1,187 @@
1
+ import { strings } from "./constants.js";
2
+ import { BaseEllipsis, BaseHeadWidth, BaseRowKeyType } from "./foundation.js";
3
+ export declare function getColumnKey(column: any, keyPropNames: any[]): any;
4
+ /** Sums arr over [beginIndex, endIndex) */
5
+ export declare function arrayAdd(arr?: any[], beginIndex?: number, endIndex?: number): number;
6
+ export declare function isLastLeftFixed(columns: Record<string, any>[], column: Record<string, any>, checkKeys?: string[]): boolean;
7
+ export declare function isFirstFixedRight(columns: Record<string, any>[], column: Record<string, any>, checkKeys?: string[]): boolean;
8
+ export declare function isFixedLeft(column: Record<string, any>): boolean;
9
+ export declare function isFixedRight(column: Record<string, any>): boolean;
10
+ /**
11
+ * Where a fixed header cell sticks: the side, swapped in RTL, and the summed widths of the columns before it on that
12
+ * side. Undefined for a column that is not fixed or not measured yet.
13
+ */
14
+ export declare function getHeaderStickyOffset(column: Record<string, any>, slicedColumns: Record<string, any>[], headWidths: number[], isRTL: boolean): {
15
+ side: 'left' | 'right';
16
+ offset: number;
17
+ } | undefined;
18
+ export declare function isInnerColumnKey(key: string | number): boolean;
19
+ export declare function isExpandedColumn(column: Record<string, any>): boolean;
20
+ export declare function isSelectionColumn(column: Record<string, any>): boolean;
21
+ export declare function getRecordKey(record: Record<string, any>, rowKey: string | number | ((record: Record<string, any>) => string | number)): any;
22
+ export declare function isExpanded(expandedRowKeys: (string | number)[], key: string | number): boolean;
23
+ export declare function isSelected(selectedRowKeysSet: Set<string | number>, key: string | number): boolean;
24
+ export declare function isDisabled(disabledRowKeysSet: Set<string | number>, key: string | number): boolean;
25
+ export declare function getRecordChildren(record: Record<string, any>, childrenRecordName: string): any;
26
+ export declare function genExpandedRowKey(recordKey?: string, suffix?: string): string;
27
+ export declare function getDefaultVirtualizedRowConfig(size?: string, sectionRow?: boolean): {
28
+ height?: number;
29
+ minHeight?: number;
30
+ };
31
+ export interface VirtualizedRowKind {
32
+ expandedRow: boolean;
33
+ sectionRow: boolean;
34
+ }
35
+ /** The height of a virtualized row from the itemSize option; the size preset's default stands in when it gives none */
36
+ export declare function resolveVirtualizedItemSize(itemSize: number | ((index: number, row: VirtualizedRowKind) => number) | undefined, size: string | undefined, index: number, row: VirtualizedRowKind): {
37
+ size: number;
38
+ minHeight: number;
39
+ };
40
+ export declare function flattenColumns(cols: Record<string, any>[], childrenColumnName?: string): Record<string, any>[];
41
+ export declare function assignColumnKeys(columns: Record<string, any>[], childrenColumnName?: string, level?: number): Record<string, any>[];
42
+ /**
43
+ * Adds the expand and selection columns: a user column with the same key overrides their fields, otherwise a
44
+ * right-fixed one goes last and any other first. Replaces entries of `columns`, so the caller passes its own copy.
45
+ */
46
+ export declare function placeInnerColumns<T extends {
47
+ key?: unknown;
48
+ fixed?: unknown;
49
+ }>(columns: T[], innerColumns: (T | null)[]): T[];
50
+ /** The measured widths of the columns in order; a column not measured yet is skipped */
51
+ export declare function getCellWidths(headWidths: BaseHeadWidth[][] | undefined, columns: {
52
+ key?: unknown;
53
+ }[] | undefined): number[];
54
+ export declare function sliceColumnsByLevel(columns: any[], targetLevel?: number, childrenColumnName?: string, currentLevel?: number): any[];
55
+ export declare function getColumnsByLevel(columns: Record<string, any>[], targetLevel?: number, targetColumns?: Record<string, any>[], currentLevel?: number, childrenColumnName?: string): Record<string, any>[];
56
+ export declare function findColumn(columns: Record<string, any>[], column: Record<string, any>, childrenColumnName?: string): any;
57
+ export declare function expandBtnShouldInRow({ expandedRowRender, dataSource, hideExpandedColumn, childrenRecordName, rowExpandable }: ExpandBtnShouldInRowProps): boolean;
58
+ /**
59
+ * Whether a record row can expand: an expanded row or tree children make it expandable unless rowExpandable says no;
60
+ * without them only rowExpandable does
61
+ */
62
+ export declare function mergedRowExpandable<R extends Record<string, any>>(record: R, { childrenRecordName, hasExpandedRow, rowExpandable }: {
63
+ childrenRecordName: string;
64
+ hasExpandedRow: boolean;
65
+ rowExpandable?: (record: R) => unknown;
66
+ }): boolean;
67
+ export type ExpandBtnShouldInRowProps = {
68
+ expandedRowRender: (record?: Record<string, any>, index?: number, expanded?: boolean) => any;
69
+ dataSource: Record<string, any>[];
70
+ hideExpandedColumn: boolean;
71
+ childrenRecordName: string;
72
+ rowExpandable: (record?: Record<string, any>) => boolean;
73
+ };
74
+ /** Whether the column sorts or filters without a dataIndex to keep its state */
75
+ export declare function isMissingDataIndex({ filters, sorter, dataIndex, onFilter }: Record<string, any>): boolean;
76
+ export declare function getRTLAlign(align: (typeof strings.ALIGNS)[number], direction?: 'ltr' | 'rtl'): (typeof strings.ALIGNS)[number];
77
+ export declare function getRTLFlexAlign(align: (typeof strings.ALIGNS)[number], direction?: 'ltr' | 'rtl'): (typeof strings.JUSTIFY_CONTENT)[number];
78
+ export declare function shouldShowEllipsisTitle(ellipsis: BaseEllipsis): boolean;
79
+ /** Merges new columns over old ones with the same key or dataIndex, so state kept on a column survives */
80
+ export declare function mergeColumns<C extends Record<string, any>>(oldColumns?: C[], newColumns?: C[]): C[];
81
+ /** The number of header rows: the depth of the column tree */
82
+ export declare function getHeaderRowCount(columns: Record<string, any>[]): number;
83
+ /** The next sort order, named as the locale texts of the sort tooltip */
84
+ export declare function getNextSortOrder(sortOrder: string | boolean): "ascend" | "descend" | "cancelSort";
85
+ /** The filtered values after a click on the filter option `value`: a checked option is unchecked */
86
+ export declare function toggleFilteredValue<V>(filteredValue: V[], value: V, filterMultiple: boolean): V[];
87
+ export interface TableHeaderCell<Column extends Record<string, any> = Record<string, any>> {
88
+ key: string | number;
89
+ className: string;
90
+ /** The column title, or what a title function returns */
91
+ children: any;
92
+ column: Column;
93
+ colStart: number;
94
+ level: number;
95
+ parents: TableHeaderCell<Column>[];
96
+ hasSubColumns?: boolean;
97
+ rowSpan?: number;
98
+ colSpan?: number;
99
+ colEnd?: number;
100
+ /** Reaches the table's end edge */
101
+ last?: boolean;
102
+ title?: string;
103
+ }
104
+ /**
105
+ * The header cells by row, with the colSpan and rowSpan that merge the cells of grouped columns
106
+ */
107
+ export declare function parseHeaderRows<Column extends Record<string, any>>(columns: Column[]): TableHeaderCell<Column>[][];
108
+ /** The keys whose selection state differs between two selections */
109
+ export declare function getChangedRowKeys(before: Array<string | number>, after: Array<string | number>): (string | number)[];
110
+ export interface FlattenDataProps {
111
+ rowKey?: string | number | ((record: any) => string | number);
112
+ childrenRecordName?: string;
113
+ expandedRowRender?: (...args: any[]) => any;
114
+ expandedRowKeys?: (string | number)[];
115
+ groups?: Map<any, Set<any>>;
116
+ /** Whether a record gets an expanded row; every record does when absent */
117
+ rowExpandable?: (record: any) => boolean;
118
+ }
119
+ /**
120
+ * The rows a virtualized body renders, in the order of the non-virtualized body: group sections, then each record,
121
+ * its expanded row and its tree children. Records of a group sit at the level of the section.
122
+ */
123
+ export declare function flattenData(props: FlattenDataProps, dataSource?: any[]): (FlattenData | GroupFlattenData)[];
124
+ export interface GroupFlattenData {
125
+ key: number | string;
126
+ level: number;
127
+ sectionRow: boolean;
128
+ group: Set<any>;
129
+ groupKey: number | string;
130
+ expanded: boolean;
131
+ }
132
+ export interface FlattenData {
133
+ key: number | string;
134
+ record: Record<string, any>;
135
+ level: number;
136
+ expandedRow?: boolean;
137
+ /** Set on an expanded row: the third argument of expandedRowRender */
138
+ expanded?: boolean;
139
+ sectionRow?: boolean;
140
+ }
141
+ /** The first record of each row key; an empty or missing key cannot be looked up */
142
+ export declare function buildRecordsByKey(dataSource: Record<string, any>[] | undefined, rowKey: FlattenDataProps['rowKey']): Map<BaseRowKeyType, Record<string, any>>;
143
+ export interface BodyRowsOptions {
144
+ rowKey?: FlattenDataProps['rowKey'];
145
+ childrenRecordName?: string;
146
+ expandedRowKeys?: BaseRowKeyType[];
147
+ /** Whether the table renders expanded rows (expandedRowRender or its slot) */
148
+ hasExpandedRow: boolean;
149
+ keepDOM?: boolean;
150
+ rowExpandable?: (record: Record<string, any>) => boolean;
151
+ }
152
+ /** A row of a non-virtualized body; `key` is the record key (or its index) and, for a section row, the group key */
153
+ export type BodyRow = {
154
+ kind: 'base';
155
+ key: BaseRowKeyType;
156
+ record: Record<string, any>;
157
+ index: number;
158
+ level: number;
159
+ displayNone: boolean;
160
+ } | {
161
+ kind: 'expanded';
162
+ key: BaseRowKeyType;
163
+ record: Record<string, any>;
164
+ index: number;
165
+ expanded: boolean;
166
+ displayNone: boolean;
167
+ } | {
168
+ kind: 'section';
169
+ key: BaseRowKeyType;
170
+ group: Set<BaseRowKeyType>;
171
+ index: number;
172
+ expanded: boolean;
173
+ };
174
+ /**
175
+ * The rows of a non-virtualized body in render order: each record, its expanded row and its shown tree children,
176
+ * under the section row of their group, groups in the order their first record appears. Unlike flattenData it keeps
177
+ * an expanded row beside tree children and, under keepDOM, the collapsed rows, hidden. `recordsByKey` is the
178
+ * buildRecordsByKey map of the page, read for groups.
179
+ */
180
+ export declare function flattenBodyRows(options: BodyRowsOptions, dataSource: Record<string, any>[] | undefined, groups: Map<BaseRowKeyType, Set<BaseRowKeyType>> | null | undefined, recordsByKey: Map<BaseRowKeyType, Record<string, any>>): BodyRow[];
181
+ /**
182
+ * The keys of the rows that the rowSpan cells covering the hovered row span, read from the DOM: which cells span which
183
+ * rows is only known after onCell ran for every cell, so it is called from hover events, never during render
184
+ */
185
+ export declare function getRowSpanHoverKeys(root: Element | null | undefined, currentRowKey: string): Set<string>;
186
+ export declare function measureScrollbar(direction?: string): number;
187
+ export declare function amendTableWidth(tableWidth: number): number;
@@ -0,0 +1,482 @@
1
+ import { cssClasses, numbers, strings } from "./constants.js";
2
+ import { xor } from "es-toolkit";
3
+ import { get } from "es-toolkit/compat";
4
+ // src/table/utils.ts
5
+ function getColumnKey(column, keyPropNames) {
6
+ keyPropNames = Array.isArray(keyPropNames) ? keyPropNames : ["key", "dataIndex"];
7
+ let key = null;
8
+ for (const propName of keyPropNames) {
9
+ key = get(column, propName);
10
+ if (key != null) break;
11
+ }
12
+ return key;
13
+ }
14
+ /** Sums arr over [beginIndex, endIndex) */
15
+ function arrayAdd(arr = [], beginIndex = 0, endIndex) {
16
+ beginIndex = beginIndex < 0 || typeof beginIndex !== "number" ? 0 : beginIndex;
17
+ endIndex = endIndex > arr.length || typeof endIndex !== "number" ? arr.length : endIndex;
18
+ let result = 0;
19
+ arr?.forEach((value, index) => {
20
+ if (index >= beginIndex && index < endIndex) result += typeof value === "number" && !isNaN(value) ? value : 0;
21
+ });
22
+ return result;
23
+ }
24
+ function isLastLeftFixed(columns, column, checkKeys = ["key"]) {
25
+ const leftFixedColumns = columns?.filter((col) => col.fixed === true || col.fixed === "left") ?? [];
26
+ const index = leftFixedColumns.findIndex((col) => checkKeys.every((key) => col[key] != null && col[key] === column[key]));
27
+ return leftFixedColumns.length > 0 && index === leftFixedColumns.length - 1;
28
+ }
29
+ function isFirstFixedRight(columns, column, checkKeys = ["key"]) {
30
+ const rightFixedColumns = columns?.filter((col) => col.fixed === "right") ?? [];
31
+ const index = rightFixedColumns.findIndex((col) => checkKeys.every((key) => col[key] != null && col[key] === column[key]));
32
+ return rightFixedColumns.length > 0 && index === 0;
33
+ }
34
+ function isFixedLeft(column) {
35
+ return ["left", true].includes(column?.fixed);
36
+ }
37
+ function isFixedRight(column) {
38
+ return ["right"].includes(column?.fixed);
39
+ }
40
+ /**
41
+ * Where a fixed header cell sticks: the side, swapped in RTL, and the summed widths of the columns before it on that
42
+ * side. Undefined for a column that is not fixed or not measured yet.
43
+ */
44
+ function getHeaderStickyOffset(column, slicedColumns, headWidths, isRTL) {
45
+ const index = slicedColumns.findIndex((item) => item?.key != null && item.key === column.key);
46
+ if (!headWidths.length || index === -1) return;
47
+ if (isFixedLeft(column)) return {
48
+ side: isRTL ? "right" : "left",
49
+ offset: arrayAdd(headWidths, 0, index)
50
+ };
51
+ if (isFixedRight(column)) return {
52
+ side: isRTL ? "left" : "right",
53
+ offset: arrayAdd(headWidths, index + 1)
54
+ };
55
+ }
56
+ function isInnerColumnKey(key) {
57
+ return [strings.DEFAULT_KEY_COLUMN_EXPAND, strings.DEFAULT_KEY_COLUMN_SELECTION].includes(key);
58
+ }
59
+ function isExpandedColumn(column) {
60
+ return column?.key === strings.DEFAULT_KEY_COLUMN_EXPAND;
61
+ }
62
+ function isSelectionColumn(column) {
63
+ return column?.key === strings.DEFAULT_KEY_COLUMN_SELECTION;
64
+ }
65
+ function getRecordKey(record, rowKey) {
66
+ if (rowKey === void 0) rowKey = "key";
67
+ return typeof rowKey === "function" ? rowKey(record) : get(record, rowKey);
68
+ }
69
+ function isExpanded(expandedRowKeys, key) {
70
+ return key != null && (expandedRowKeys?.includes(key) ?? false);
71
+ }
72
+ function isSelected(selectedRowKeysSet, key) {
73
+ return key !== null && selectedRowKeysSet.has(key);
74
+ }
75
+ function isDisabled(disabledRowKeysSet, key) {
76
+ return key !== null && disabledRowKeysSet.has(key);
77
+ }
78
+ function getRecordChildren(record, childrenRecordName) {
79
+ if (childrenRecordName === void 0) childrenRecordName = "children";
80
+ return get(record, childrenRecordName);
81
+ }
82
+ function genExpandedRowKey(recordKey = "", suffix) {
83
+ if (suffix === void 0) suffix = "__expanded_row";
84
+ return recordKey + suffix;
85
+ }
86
+ function getDefaultVirtualizedRowConfig(size = "", sectionRow = false) {
87
+ const config = {};
88
+ if (size === "small") {
89
+ config.height = sectionRow ? numbers.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT : numbers.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT;
90
+ config.minHeight = numbers.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT;
91
+ } else if (size === "middle") {
92
+ config.height = sectionRow ? numbers.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT : numbers.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT;
93
+ config.minHeight = numbers.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT;
94
+ } else {
95
+ config.height = sectionRow ? numbers.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT : numbers.DEFAULT_VIRTUALIZED_ROW_HEIGHT;
96
+ config.minHeight = numbers.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT;
97
+ }
98
+ return config;
99
+ }
100
+ /** The height of a virtualized row from the itemSize option; the size preset's default stands in when it gives none */
101
+ function resolveVirtualizedItemSize(itemSize, size, index, row) {
102
+ const config = getDefaultVirtualizedRowConfig(size, row.sectionRow);
103
+ return {
104
+ size: (typeof itemSize === "function" ? itemSize(index, row) : itemSize) ?? config.height,
105
+ minHeight: config.minHeight
106
+ };
107
+ }
108
+ function flattenColumns(cols, childrenColumnName = "children") {
109
+ const list = [];
110
+ if (Array.isArray(cols) && cols.length) for (const col of cols) if (Array.isArray(col[childrenColumnName]) && col[childrenColumnName].length) list.push(...flattenColumns(col[childrenColumnName], childrenColumnName));
111
+ else list.push(col);
112
+ return list;
113
+ }
114
+ function assignColumnKeys(columns, childrenColumnName = "children", level = 0) {
115
+ const sameLevelCols = [];
116
+ columns?.forEach((column, index) => {
117
+ if (column.key == null) column.key = `${level}-${column.dataIndex || index}`;
118
+ if (Array.isArray(column[childrenColumnName]) && column[childrenColumnName].length) sameLevelCols.push(...column[childrenColumnName]);
119
+ });
120
+ if (sameLevelCols.length) assignColumnKeys(sameLevelCols, childrenColumnName, level + 1);
121
+ return columns;
122
+ }
123
+ /**
124
+ * Adds the expand and selection columns: a user column with the same key overrides their fields, otherwise a
125
+ * right-fixed one goes last and any other first. Replaces entries of `columns`, so the caller passes its own copy.
126
+ */
127
+ function placeInnerColumns(columns, innerColumns) {
128
+ let placed = columns;
129
+ for (const column of innerColumns) if (column) {
130
+ const destIndex = placed.findIndex((item) => item.key === column.key);
131
+ if (destIndex > -1) placed[destIndex] = {
132
+ ...column,
133
+ ...placed[destIndex]
134
+ };
135
+ else if (column.fixed === "right") placed = [...placed, column];
136
+ else placed = [column, ...placed];
137
+ }
138
+ return placed;
139
+ }
140
+ /** The measured widths of the columns in order; a column not measured yet is skipped */
141
+ function getCellWidths(headWidths, columns) {
142
+ if (!columns?.length || !headWidths?.length) return [];
143
+ const widths = headWidths.flat();
144
+ return columns.flatMap((column) => {
145
+ const found = widths.find((item) => item?.key != null && item.key === column.key);
146
+ return found ? [found.width] : [];
147
+ });
148
+ }
149
+ function sliceColumnsByLevel(columns, targetLevel = 0, childrenColumnName = "children", currentLevel = 0) {
150
+ const slicedColumns = [];
151
+ if (Array.isArray(columns) && columns.length && currentLevel <= targetLevel) columns.forEach((column) => {
152
+ const children = column[childrenColumnName];
153
+ if (Array.isArray(children) && children.length && currentLevel < targetLevel) slicedColumns.push(...sliceColumnsByLevel(children, targetLevel, childrenColumnName, currentLevel + 1));
154
+ else slicedColumns.push(column);
155
+ });
156
+ return slicedColumns;
157
+ }
158
+ function getColumnsByLevel(columns, targetLevel = 0, targetColumns = [], currentLevel = 0, childrenColumnName = "children") {
159
+ if (Array.isArray(columns) && columns.length) {
160
+ if (targetLevel === currentLevel) targetColumns.push(...columns);
161
+ else columns.forEach((column) => {
162
+ getColumnsByLevel(column[childrenColumnName], targetLevel, targetColumns, currentLevel + 1, childrenColumnName);
163
+ });
164
+ }
165
+ return targetColumns;
166
+ }
167
+ function findColumn(columns, column, childrenColumnName = "children") {
168
+ let found;
169
+ for (const item of columns ?? []) {
170
+ if (item && item.key != null && !found) {
171
+ if (item.key === column.key) found = item;
172
+ }
173
+ if (item && Array.isArray(item[childrenColumnName]) && !found) found = findColumn(item[childrenColumnName], column, childrenColumnName);
174
+ if (found) break;
175
+ }
176
+ return found;
177
+ }
178
+ function expandBtnShouldInRow({ expandedRowRender, dataSource, hideExpandedColumn, childrenRecordName, rowExpandable }) {
179
+ const hasExpandedRowRender = typeof expandedRowRender === "function";
180
+ return hideExpandedColumn && hasExpandedRowRender || !hasExpandedRowRender && dataSource.some((record) => {
181
+ const children = get(record, childrenRecordName);
182
+ if (Array.isArray(children) && children.length || rowExpandable(record)) return true;
183
+ else return false;
184
+ });
185
+ }
186
+ /**
187
+ * Whether a record row can expand: an expanded row or tree children make it expandable unless rowExpandable says no;
188
+ * without them only rowExpandable does
189
+ */
190
+ function mergedRowExpandable(record, { childrenRecordName, hasExpandedRow, rowExpandable }) {
191
+ const children = get(record, childrenRecordName);
192
+ const hasChildren = Array.isArray(children) && children.length > 0;
193
+ const strict = typeof rowExpandable === "function" && Boolean(rowExpandable(record));
194
+ return (hasExpandedRow || hasChildren) && (typeof rowExpandable !== "function" || strict) || !(hasExpandedRow || hasChildren) && strict;
195
+ }
196
+ /** Whether the column sorts or filters without a dataIndex to keep its state */
197
+ function isMissingDataIndex({ filters, sorter, dataIndex, onFilter }) {
198
+ return (Array.isArray(filters) || typeof onFilter === "function" || typeof sorter === "function") && dataIndex == null;
199
+ }
200
+ function getRTLAlign(align, direction) {
201
+ if (direction === "rtl") switch (align) {
202
+ case "left": return "right";
203
+ case "right": return "left";
204
+ default: return align;
205
+ }
206
+ return align;
207
+ }
208
+ function getRTLFlexAlign(align, direction) {
209
+ if (direction === "rtl") switch (align) {
210
+ case "left": return "flex-end";
211
+ case "right": return "flex-start";
212
+ default: return align;
213
+ }
214
+ else switch (align) {
215
+ case "left": return "flex-start";
216
+ case "right": return "flex-end";
217
+ default: return align;
218
+ }
219
+ }
220
+ function shouldShowEllipsisTitle(ellipsis) {
221
+ return typeof ellipsis !== "object" || (ellipsis?.showTitle ?? true);
222
+ }
223
+ /** Merges new columns over old ones with the same key or dataIndex, so state kept on a column survives */
224
+ function mergeColumns(oldColumns = [], newColumns = []) {
225
+ return newColumns.map((newColumn) => {
226
+ const key = getColumnKey(newColumn, null);
227
+ const oldColumn = key != null ? oldColumns.find((item) => getColumnKey(item, null) === key) : void 0;
228
+ const column = { ...newColumn };
229
+ if (oldColumn && newColumn.sorter && newColumn.sortOrder == null) column.sortOrder = oldColumn.sortOrder;
230
+ const filterable = Array.isArray(newColumn.filters) || typeof newColumn.onFilter === "function" || typeof newColumn.renderFilterDropdown === "function" || newColumn.filterDropdown != null;
231
+ if (oldColumn && filterable && !Array.isArray(newColumn.filteredValue)) column.filteredValue = oldColumn.filteredValue;
232
+ return column;
233
+ });
234
+ }
235
+ /** The number of header rows: the depth of the column tree */
236
+ function getHeaderRowCount(columns) {
237
+ return Math.max(0, ...columns.map((column) => column.children?.length ? 1 + getHeaderRowCount(column.children) : 1));
238
+ }
239
+ /** The next sort order, named as the locale texts of the sort tooltip */
240
+ function getNextSortOrder(sortOrder) {
241
+ switch (sortOrder) {
242
+ case strings.SORT_DIRECTIONS[0]: return strings.SORT_DIRECTIONS[1];
243
+ case strings.SORT_DIRECTIONS[1]: return "cancelSort";
244
+ default: return strings.SORT_DIRECTIONS[0];
245
+ }
246
+ }
247
+ /** The filtered values after a click on the filter option `value`: a checked option is unchecked */
248
+ function toggleFilteredValue(filteredValue, value, filterMultiple) {
249
+ const values = [...filteredValue];
250
+ const index = values.indexOf(value);
251
+ if (index > -1) {
252
+ values.splice(index, 1);
253
+ return values;
254
+ }
255
+ return filterMultiple ? [...values, value] : [value];
256
+ }
257
+ /**
258
+ * The header cells by row, with the colSpan and rowSpan that merge the cells of grouped columns
259
+ */
260
+ function parseHeaderRows(columns) {
261
+ const rows = [];
262
+ const fillRowCells = (columns, colIndex, parents = [], rowIndex = 0, level = 0) => {
263
+ rows[rowIndex] ??= [];
264
+ let currentColIndex = colIndex;
265
+ return columns.map((column) => {
266
+ const cell = {
267
+ key: column.key,
268
+ className: column.className || "",
269
+ children: typeof column.title === "function" ? column.title({}) : column.title,
270
+ column,
271
+ colStart: currentColIndex,
272
+ level,
273
+ parents
274
+ };
275
+ let colSpan = 1;
276
+ /**
277
+ * colSpan: the sum of the children's colSpan, or 1 without children
278
+ */
279
+ const subColumns = column.children;
280
+ if (subColumns && subColumns.length > 0) {
281
+ colSpan = fillRowCells(subColumns, currentColIndex, [...parents, cell], rowIndex + 1, level + 1).reduce((total, count) => total + count, 0);
282
+ cell.hasSubColumns = true;
283
+ }
284
+ if ("colSpan" in column) ({colSpan} = column);
285
+ cell.colSpan = colSpan;
286
+ cell.colEnd = cell.colStart + colSpan - 1;
287
+ rows[rowIndex].push(cell);
288
+ currentColIndex += colSpan;
289
+ if (shouldShowEllipsisTitle(column.ellipsis) && typeof cell.children === "string") cell.title = cell.children;
290
+ return colSpan;
291
+ });
292
+ };
293
+ const columnCount = fillRowCells(columns, 0).reduce((total, count) => total + count, 0);
294
+ /**
295
+ * rowSpan: a cell without children spans the remaining rows; a cell with children needs none
296
+ */
297
+ const rowCount = rows.length;
298
+ for (let rowIndex = 0; rowIndex < rowCount; rowIndex += 1) rows[rowIndex].forEach((cell) => {
299
+ if (!cell.hasSubColumns) cell.rowSpan = rowCount - rowIndex;
300
+ cell.last = cell.colEnd >= columnCount - 1;
301
+ });
302
+ return rows;
303
+ }
304
+ /** The keys whose selection state differs between two selections */
305
+ function getChangedRowKeys(before, after) {
306
+ return xor(before, after);
307
+ }
308
+ /**
309
+ * The rows a virtualized body renders, in the order of the non-virtualized body: group sections, then each record,
310
+ * its expanded row and its tree children. Records of a group sit at the level of the section.
311
+ */
312
+ function flattenData(props, dataSource = []) {
313
+ const expandedKeys = new Set(props.expandedRowKeys);
314
+ const { rowKey, groups } = props;
315
+ if (!(groups instanceof Map)) return flattenRecords(props, expandedKeys, dataSource, 0);
316
+ const flattened = [];
317
+ groups.forEach((set, key) => {
318
+ const firstIndex = dataSource.findIndex((record) => set.has(getRecordKey(record, rowKey)));
319
+ if (firstIndex > -1) {
320
+ const lastIndex = dataSource.findLastIndex((record) => set.has(getRecordKey(record, rowKey)));
321
+ const expanded = expandedKeys.has(key);
322
+ flattened.push({
323
+ key,
324
+ level: 0,
325
+ sectionRow: true,
326
+ group: set,
327
+ groupKey: key,
328
+ expanded
329
+ });
330
+ if (expanded) flattened.push(...flattenRecords(props, expandedKeys, dataSource.slice(firstIndex, lastIndex + 1), 0));
331
+ }
332
+ });
333
+ return flattened;
334
+ }
335
+ function flattenRecords(props, expandedKeys, dataSource, level) {
336
+ const { rowKey, childrenRecordName, expandedRowRender, rowExpandable } = props;
337
+ return dataSource.flatMap((record) => {
338
+ const recordKey = getRecordKey(record, rowKey);
339
+ const rows = [{
340
+ key: recordKey,
341
+ record,
342
+ level
343
+ }];
344
+ if (expandedKeys.has(recordKey)) {
345
+ if (expandedRowRender && (rowExpandable?.(record) ?? true)) rows.push({
346
+ key: genExpandedRowKey(recordKey),
347
+ level,
348
+ expandedRow: true,
349
+ expanded: true,
350
+ record
351
+ });
352
+ const children = getRecordChildren(record, childrenRecordName);
353
+ if (Array.isArray(children) && children.length) rows.push(...flattenRecords(props, expandedKeys, children, level + 1));
354
+ }
355
+ return rows;
356
+ });
357
+ }
358
+ /** The first record of each row key; an empty or missing key cannot be looked up */
359
+ function buildRecordsByKey(dataSource, rowKey) {
360
+ const recordsByKey = /* @__PURE__ */ new Map();
361
+ dataSource?.forEach((record) => {
362
+ const key = getRecordKey(record, rowKey);
363
+ if (key != null && key !== "" && !recordsByKey.has(key)) recordsByKey.set(key, record);
364
+ });
365
+ return recordsByKey;
366
+ }
367
+ /**
368
+ * The rows of a non-virtualized body in render order: each record, its expanded row and its shown tree children,
369
+ * under the section row of their group, groups in the order their first record appears. Unlike flattenData it keeps
370
+ * an expanded row beside tree children and, under keepDOM, the collapsed rows, hidden. `recordsByKey` is the
371
+ * buildRecordsByKey map of the page, read for groups.
372
+ */
373
+ function flattenBodyRows(options, dataSource, groups, recordsByKey) {
374
+ const rows = [];
375
+ if (!(groups instanceof Map)) {
376
+ pushBodyRows(options, dataSource ?? [], 0, false, rows);
377
+ return rows;
378
+ }
379
+ const groupsInData = /* @__PURE__ */ new Map();
380
+ dataSource?.forEach((record) => {
381
+ const key = getRecordKey(record, options.rowKey);
382
+ groups.forEach((group, groupKey) => {
383
+ if (group.has(key)) {
384
+ if (!groupsInData.has(groupKey)) groupsInData.set(groupKey, /* @__PURE__ */ new Set());
385
+ groupsInData.get(groupKey).add(key);
386
+ }
387
+ });
388
+ });
389
+ [...groupsInData].forEach(([groupKey, group], index) => {
390
+ const expanded = isExpanded(options.expandedRowKeys, groupKey);
391
+ rows.push({
392
+ kind: "section",
393
+ key: groupKey,
394
+ group,
395
+ index,
396
+ expanded
397
+ });
398
+ if (expanded || options.keepDOM) pushBodyRows(options, [...group].flatMap((key) => recordsByKey.get(key) ?? []), 0, !expanded, rows);
399
+ });
400
+ return rows;
401
+ }
402
+ function pushBodyRows(options, data, level, displayNone, rows) {
403
+ data.forEach((record, index) => {
404
+ const key = getRecordKey(record, options.rowKey) ?? index;
405
+ rows.push({
406
+ kind: "base",
407
+ key,
408
+ record,
409
+ index,
410
+ level,
411
+ displayNone
412
+ });
413
+ const expanded = isExpanded(options.expandedRowKeys, key);
414
+ const shown = expanded || Boolean(options.keepDOM);
415
+ if (options.hasExpandedRow && options.rowExpandable?.(record) && shown) rows.push({
416
+ kind: "expanded",
417
+ key,
418
+ record,
419
+ index,
420
+ expanded,
421
+ displayNone: displayNone || !expanded
422
+ });
423
+ const children = getRecordChildren(record, options.childrenRecordName);
424
+ if (Array.isArray(children) && children.length && shown) pushBodyRows(options, children, level + 1, displayNone || !expanded, rows);
425
+ });
426
+ }
427
+ /**
428
+ * The keys of the rows that the rowSpan cells covering the hovered row span, read from the DOM: which cells span which
429
+ * rows is only known after onCell ran for every cell, so it is called from hover events, never during render
430
+ */
431
+ function getRowSpanHoverKeys(root, currentRowKey) {
432
+ const keys = /* @__PURE__ */ new Set([currentRowKey]);
433
+ const rows = Array.from(root?.querySelectorAll("tr[data-row-key]") ?? []);
434
+ const current = rows.findIndex((row) => row.getAttribute("data-row-key") === currentRowKey);
435
+ if (current === -1) return keys;
436
+ rows.forEach((row, rowIndex) => {
437
+ row.querySelectorAll("td[rowspan]").forEach((cell) => {
438
+ const spanEnd = rowIndex + Number.parseInt(cell.getAttribute("rowspan") || "1", 10) - 1;
439
+ if (spanEnd > rowIndex && current >= rowIndex && current <= spanEnd) for (let i = rowIndex; i <= spanEnd && i < rows.length; i++) {
440
+ const key = rows[i].getAttribute("data-row-key");
441
+ if (key) keys.add(key);
442
+ }
443
+ });
444
+ });
445
+ return keys;
446
+ }
447
+ let scrollbarVerticalSize;
448
+ let scrollbarHorizontalSize;
449
+ const scrollbarMeasure = {
450
+ position: "absolute",
451
+ top: "-9999px",
452
+ width: "50px",
453
+ height: "50px"
454
+ };
455
+ function measureScrollbar(direction = "vertical") {
456
+ if (typeof document === "undefined" || typeof window === "undefined") return 0;
457
+ const isVertical = direction === "vertical";
458
+ if (isVertical && scrollbarVerticalSize !== void 0) return scrollbarVerticalSize;
459
+ else if (!isVertical && scrollbarHorizontalSize !== void 0) return scrollbarHorizontalSize;
460
+ const scrollDiv = document.createElement("div");
461
+ scrollDiv.className = `${cssClasses.PREFIX}-scrollbar-measure`;
462
+ Object.keys(scrollbarMeasure).forEach((scrollProp) => {
463
+ scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp];
464
+ });
465
+ if (isVertical) scrollDiv.style.overflowY = "scroll";
466
+ else scrollDiv.style.overflowX = "scroll";
467
+ document.body.appendChild(scrollDiv);
468
+ let size = 0;
469
+ if (isVertical) {
470
+ size = scrollDiv.offsetWidth - scrollDiv.clientWidth;
471
+ scrollbarVerticalSize = size;
472
+ } else {
473
+ size = scrollDiv.offsetHeight - scrollDiv.clientHeight;
474
+ scrollbarHorizontalSize = size;
475
+ }
476
+ document.body.removeChild(scrollDiv);
477
+ return size;
478
+ }
479
+ function amendTableWidth(tableWidth) {
480
+ return typeof tableWidth === "number" ? tableWidth - numbers.DEFAULT_CELL_PADDING_LEFT - numbers.DEFAULT_CELL_PADDING_RIGHT - numbers.DEFAULT_CELL_BORDER_WIDTH_LEFT - numbers.DEFAULT_CELL_BORDER_WIDTH_RIGHT - measureScrollbar("vertical") : void 0;
481
+ }
482
+ export { amendTableWidth, arrayAdd, assignColumnKeys, buildRecordsByKey, expandBtnShouldInRow, findColumn, flattenBodyRows, flattenColumns, flattenData, genExpandedRowKey, getCellWidths, getChangedRowKeys, getColumnKey, getColumnsByLevel, getDefaultVirtualizedRowConfig, getHeaderRowCount, getHeaderStickyOffset, getNextSortOrder, getRTLAlign, getRTLFlexAlign, getRecordChildren, getRecordKey, getRowSpanHoverKeys, isDisabled, isExpanded, isExpandedColumn, isFirstFixedRight, isFixedLeft, isFixedRight, isInnerColumnKey, isLastLeftFixed, isMissingDataIndex, isSelected, isSelectionColumn, measureScrollbar, mergeColumns, mergedRowExpandable, parseHeaderRows, placeInnerColumns, resolveVirtualizedItemSize, shouldShowEllipsisTitle, sliceColumnsByLevel, toggleFilteredValue };