@ncds/ui-admin 1.6.4 → 1.7.0

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 (704) hide show
  1. package/dist/cjs/assets/scripts/baseBox.js +148 -0
  2. package/dist/cjs/assets/scripts/comboBox.js +44 -136
  3. package/dist/cjs/assets/scripts/datePicker.js +1 -1
  4. package/dist/cjs/assets/scripts/featuredIcon.js +1 -1
  5. package/dist/cjs/assets/scripts/fileInput/const/classNames.js +1 -5
  6. package/dist/cjs/assets/scripts/fileInput/fileInput.js +79 -0
  7. package/dist/cjs/assets/scripts/fileInput/fileInputModel.js +61 -0
  8. package/dist/cjs/assets/scripts/fileInput/fileInputView.js +147 -0
  9. package/dist/cjs/assets/scripts/fileInput/index.js +3 -3
  10. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +1 -1
  11. package/dist/cjs/assets/scripts/selectBox.js +46 -136
  12. package/dist/cjs/assets/scripts/utils/debounce.js +33 -0
  13. package/dist/cjs/assets/scripts/utils/unifiedBox/{DropdownModel.js → dropdownModel.js} +21 -63
  14. package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +11 -43
  15. package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxManager.js → unifiedBoxManager.js} +59 -101
  16. package/dist/cjs/src/components/badge/Badge.js +1 -1
  17. package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +1 -1
  18. package/dist/cjs/src/components/button/Button.js +13 -5
  19. package/dist/cjs/src/components/button/ButtonGroup.js +1 -2
  20. package/dist/cjs/src/components/carousel/CarouselArrow.js +2 -2
  21. package/dist/cjs/src/components/carousel/CarouselNumberGroup.js +4 -5
  22. package/dist/cjs/src/components/checkbox/CheckboxInput.js +1 -1
  23. package/dist/cjs/src/components/combobox/ComboBox.js +54 -43
  24. package/dist/cjs/src/components/date-picker/CustomInput.js +3 -1
  25. package/dist/cjs/src/components/date-picker/DatePicker.js +85 -65
  26. package/dist/cjs/src/components/date-picker/RangeDatePicker.js +46 -37
  27. package/dist/cjs/src/components/divider/Divider.js +1 -1
  28. package/dist/cjs/src/components/dot/Dot.js +1 -1
  29. package/dist/cjs/src/components/dropdown/Dropdown.js +3 -2
  30. package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +1 -1
  31. package/dist/cjs/src/components/file-input/FileInput.js +3 -3
  32. package/dist/cjs/src/components/image-file-input/ImageFileInput.js +5 -2
  33. package/dist/cjs/src/components/input/NumberInput.js +1 -1
  34. package/dist/cjs/src/components/notification/index.js +11 -11
  35. package/dist/cjs/src/components/pagination/NavButton.js +3 -1
  36. package/dist/cjs/src/components/pagination/Pagination.js +65 -67
  37. package/dist/cjs/src/components/progress-bar/ProgressBar.js +13 -9
  38. package/dist/cjs/src/components/progress-bar/components/SegmentBar.js +1 -1
  39. package/dist/cjs/src/components/progress-bar/components/SegmentLabels.js +1 -1
  40. package/dist/cjs/src/components/progress-bar/hooks/useProgressBar.js +3 -2
  41. package/dist/cjs/src/components/progress-bar/utils.js +3 -2
  42. package/dist/cjs/src/components/progress-circle/ProgressCircle.js +41 -41
  43. package/dist/cjs/src/components/select/Select.js +2 -2
  44. package/dist/cjs/src/components/selectbox/SelectBox.js +57 -45
  45. package/dist/cjs/src/components/spinner/Spinner.js +5 -4
  46. package/dist/cjs/src/components/spinner/index.js +0 -11
  47. package/dist/cjs/src/components/switch/Switch.js +15 -10
  48. package/dist/cjs/src/components/tab/HorizontalTab.js +5 -3
  49. package/dist/cjs/src/components/tab/TabButton.js +1 -1
  50. package/dist/cjs/src/components/toggle/Toggle.js +13 -15
  51. package/dist/cjs/src/components/tooltip/Tooltip.js +28 -13
  52. package/dist/cjs/src/constant/index.js +8 -8
  53. package/dist/cjs/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
  54. package/dist/cjs/src/hooks/dropdown/useScrollLock.js +26 -19
  55. package/dist/cjs/src/hooks/index.js +4 -4
  56. package/dist/cjs/src/utils/date-picker.js +14 -7
  57. package/dist/cjs/src/utils/dropdown/dropdownUtils.js +6 -8
  58. package/dist/esm/assets/scripts/baseBox.js +143 -0
  59. package/dist/esm/assets/scripts/comboBox.js +44 -136
  60. package/dist/esm/assets/scripts/datePicker.js +1 -1
  61. package/dist/esm/assets/scripts/featuredIcon.js +1 -1
  62. package/dist/esm/assets/scripts/fileInput/const/classNames.js +0 -3
  63. package/dist/esm/assets/scripts/fileInput/fileInput.js +74 -0
  64. package/dist/esm/assets/scripts/fileInput/fileInputModel.js +56 -0
  65. package/dist/esm/assets/scripts/fileInput/fileInputView.js +142 -0
  66. package/dist/esm/assets/scripts/fileInput/index.js +2 -2
  67. package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +2 -2
  68. package/dist/esm/assets/scripts/selectBox.js +46 -136
  69. package/dist/esm/assets/scripts/utils/debounce.js +27 -0
  70. package/dist/esm/assets/scripts/utils/unifiedBox/{DropdownModel.js → dropdownModel.js} +23 -66
  71. package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +11 -43
  72. package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxManager.js → unifiedBoxManager.js} +53 -95
  73. package/dist/esm/src/components/badge/Badge.js +4 -3
  74. package/dist/esm/src/components/badge/BadgeGroup.js +3 -2
  75. package/dist/esm/src/components/badge/utils.js +3 -2
  76. package/dist/esm/src/components/breadcrumb/BreadCrumb.js +4 -3
  77. package/dist/esm/src/components/button/Button.js +13 -5
  78. package/dist/esm/src/components/button/ButtonCloseX.js +3 -2
  79. package/dist/esm/src/components/button/ButtonGroup.js +3 -2
  80. package/dist/esm/src/components/carousel/CarouselArrow.js +2 -2
  81. package/dist/esm/src/components/carousel/CarouselNumberGroup.js +4 -5
  82. package/dist/esm/src/components/checkbox/CheckboxInput.js +1 -1
  83. package/dist/esm/src/components/combobox/ComboBox.js +58 -46
  84. package/dist/esm/src/components/date-picker/CustomInput.js +6 -3
  85. package/dist/esm/src/components/date-picker/DatePicker.js +88 -67
  86. package/dist/esm/src/components/date-picker/RangeDatePicker.js +49 -39
  87. package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +3 -2
  88. package/dist/esm/src/components/divider/Divider.js +1 -1
  89. package/dist/esm/src/components/dot/Dot.js +4 -3
  90. package/dist/esm/src/components/dropdown/Dropdown.js +3 -2
  91. package/dist/esm/src/components/empty-state/EmptyState.js +3 -2
  92. package/dist/esm/src/components/featured-icon/FeaturedIcon.js +4 -3
  93. package/dist/esm/src/components/file-input/FileInput.js +3 -3
  94. package/dist/esm/src/components/image-file-input/ImageFileInput.js +6 -3
  95. package/dist/esm/src/components/input/InputBase.js +3 -2
  96. package/dist/esm/src/components/input/NumberInput.js +1 -1
  97. package/dist/esm/src/components/modal/Modal.js +3 -2
  98. package/dist/esm/src/components/notification/FloatingNotification.js +3 -2
  99. package/dist/esm/src/components/notification/FullWidthNotification.js +3 -2
  100. package/dist/esm/src/components/notification/MessageNotification.js +3 -2
  101. package/dist/esm/src/components/notification/Notification.js +3 -2
  102. package/dist/esm/src/components/notification/index.js +2 -2
  103. package/dist/esm/src/components/pagination/NavButton.js +3 -1
  104. package/dist/esm/src/components/pagination/Pagination.js +65 -67
  105. package/dist/esm/src/components/progress-bar/ProgressBar.js +13 -9
  106. package/dist/esm/src/components/progress-bar/components/SegmentBar.js +1 -1
  107. package/dist/esm/src/components/progress-bar/components/SegmentLabels.js +5 -4
  108. package/dist/esm/src/components/progress-bar/hooks/useProgressBar.js +3 -2
  109. package/dist/esm/src/components/progress-bar/utils.js +7 -5
  110. package/dist/esm/src/components/progress-circle/ProgressCircle.js +41 -41
  111. package/dist/esm/src/components/select/Select.js +2 -2
  112. package/dist/esm/src/components/select-dropdown/SelectDropdown.js +3 -2
  113. package/dist/esm/src/components/selectbox/SelectBox.js +61 -48
  114. package/dist/esm/src/components/spinner/Spinner.js +5 -4
  115. package/dist/esm/src/components/spinner/index.js +1 -2
  116. package/dist/esm/src/components/switch/Switch.js +19 -13
  117. package/dist/esm/src/components/tab/HorizontalTab.js +9 -6
  118. package/dist/esm/src/components/tab/TabButton.js +4 -3
  119. package/dist/esm/src/components/tag/Tag.js +3 -2
  120. package/dist/esm/src/components/toggle/Toggle.js +14 -16
  121. package/dist/esm/src/components/tooltip/Tooltip.js +29 -14
  122. package/dist/esm/src/constant/index.js +2 -2
  123. package/dist/esm/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
  124. package/dist/esm/src/hooks/dropdown/useScrollLock.js +26 -19
  125. package/dist/esm/src/hooks/index.js +3 -3
  126. package/dist/esm/src/utils/date-picker.js +14 -7
  127. package/dist/esm/src/utils/dropdown/dropdownUtils.js +6 -8
  128. package/dist/temp/assets/scripts/baseBox.d.ts +55 -0
  129. package/dist/temp/assets/scripts/baseBox.js +144 -0
  130. package/dist/temp/assets/scripts/comboBox.d.ts +60 -0
  131. package/dist/temp/assets/scripts/comboBox.js +163 -0
  132. package/dist/temp/assets/scripts/datePicker.d.ts +86 -0
  133. package/dist/temp/assets/scripts/datePicker.js +706 -0
  134. package/dist/temp/assets/scripts/featuredIcon.d.ts +22 -0
  135. package/dist/temp/assets/scripts/featuredIcon.js +86 -0
  136. package/dist/temp/assets/scripts/fileInput/const/classNames.d.ts +15 -0
  137. package/dist/temp/assets/scripts/fileInput/const/classNames.js +20 -0
  138. package/dist/temp/assets/scripts/fileInput/const/index.d.ts +2 -0
  139. package/dist/temp/assets/scripts/fileInput/const/index.js +2 -0
  140. package/dist/temp/assets/scripts/fileInput/const/types.d.ts +88 -0
  141. package/dist/temp/assets/scripts/fileInput/const/types.js +7 -0
  142. package/dist/temp/assets/scripts/fileInput/fileInput.d.ts +13 -0
  143. package/dist/temp/assets/scripts/fileInput/fileInput.js +75 -0
  144. package/dist/temp/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
  145. package/dist/temp/assets/scripts/fileInput/fileInputModel.js +45 -0
  146. package/dist/temp/assets/scripts/fileInput/fileInputView.d.ts +42 -0
  147. package/dist/temp/assets/scripts/fileInput/fileInputView.js +142 -0
  148. package/dist/temp/assets/scripts/fileInput/index.d.ts +3 -0
  149. package/dist/temp/assets/scripts/fileInput/index.js +9 -0
  150. package/dist/{types/assets/scripts/fileInput/FileInput.d.ts → temp/assets/scripts/imageFileInput/ImageFileInput.d.ts} +6 -10
  151. package/dist/temp/assets/scripts/imageFileInput/ImageFileInput.js +186 -0
  152. package/dist/{types/assets/scripts/fileInput/FileInputModel.d.ts → temp/assets/scripts/imageFileInput/ImageFileInputModel.d.ts} +8 -5
  153. package/dist/temp/assets/scripts/imageFileInput/ImageFileInputModel.js +234 -0
  154. package/dist/{types/assets/scripts/fileInput/FileInputView.d.ts → temp/assets/scripts/imageFileInput/ImageFileInputView.d.ts} +27 -25
  155. package/dist/temp/assets/scripts/imageFileInput/ImageFileInputView.js +348 -0
  156. package/dist/temp/assets/scripts/imageFileInput/const/classNames.d.ts +19 -0
  157. package/dist/temp/assets/scripts/imageFileInput/const/classNames.js +24 -0
  158. package/dist/temp/assets/scripts/imageFileInput/const/index.d.ts +2 -0
  159. package/dist/temp/assets/scripts/imageFileInput/const/index.js +2 -0
  160. package/dist/temp/assets/scripts/imageFileInput/const/types.d.ts +125 -0
  161. package/dist/temp/assets/scripts/imageFileInput/const/types.js +7 -0
  162. package/dist/temp/assets/scripts/imageFileInput/index.d.ts +3 -0
  163. package/dist/temp/assets/scripts/imageFileInput/index.js +9 -0
  164. package/dist/temp/assets/scripts/index.d.ts +32 -0
  165. package/dist/temp/assets/scripts/index.js +28 -0
  166. package/dist/temp/assets/scripts/modal/Modal.d.ts +27 -0
  167. package/dist/temp/assets/scripts/modal/Modal.js +106 -0
  168. package/dist/temp/assets/scripts/modal/ModalActions.d.ts +18 -0
  169. package/dist/temp/assets/scripts/modal/ModalActions.js +125 -0
  170. package/dist/temp/assets/scripts/modal/ModalContent.d.ts +13 -0
  171. package/dist/temp/assets/scripts/modal/ModalContent.js +41 -0
  172. package/dist/temp/assets/scripts/modal/ModalHeader.d.ts +15 -0
  173. package/dist/temp/assets/scripts/modal/ModalHeader.js +102 -0
  174. package/dist/temp/assets/scripts/modal/const/classNames.d.ts +22 -0
  175. package/dist/temp/assets/scripts/modal/const/classNames.js +23 -0
  176. package/dist/temp/assets/scripts/modal/const/index.d.ts +2 -0
  177. package/dist/temp/assets/scripts/modal/const/index.js +2 -0
  178. package/dist/temp/assets/scripts/modal/const/types.d.ts +61 -0
  179. package/dist/temp/assets/scripts/modal/const/types.js +1 -0
  180. package/dist/temp/assets/scripts/modal/index.d.ts +7 -0
  181. package/dist/temp/assets/scripts/modal/index.js +15 -0
  182. package/dist/temp/assets/scripts/modal/utils/contentUtils.d.ts +10 -0
  183. package/dist/temp/assets/scripts/modal/utils/contentUtils.js +29 -0
  184. package/dist/temp/assets/scripts/notification/FloatingNotification.d.ts +24 -0
  185. package/dist/temp/assets/scripts/notification/FloatingNotification.js +154 -0
  186. package/dist/temp/assets/scripts/notification/FullWidthNotification.d.ts +21 -0
  187. package/dist/temp/assets/scripts/notification/FullWidthNotification.js +94 -0
  188. package/dist/temp/assets/scripts/notification/MessageNotification.d.ts +22 -0
  189. package/dist/temp/assets/scripts/notification/MessageNotification.js +123 -0
  190. package/dist/temp/assets/scripts/notification/Notification.d.ts +21 -0
  191. package/dist/temp/assets/scripts/notification/Notification.js +108 -0
  192. package/dist/temp/assets/scripts/notification/const/classNames.d.ts +43 -0
  193. package/dist/temp/assets/scripts/notification/const/classNames.js +44 -0
  194. package/dist/temp/assets/scripts/notification/const/icons.d.ts +25 -0
  195. package/dist/temp/assets/scripts/notification/const/icons.js +39 -0
  196. package/dist/temp/assets/scripts/notification/const/index.d.ts +5 -0
  197. package/dist/temp/assets/scripts/notification/const/index.js +4 -0
  198. package/dist/temp/assets/scripts/notification/const/sizes.d.ts +32 -0
  199. package/dist/temp/assets/scripts/notification/const/sizes.js +40 -0
  200. package/dist/temp/assets/scripts/notification/const/types.d.ts +19 -0
  201. package/dist/temp/assets/scripts/notification/const/types.js +8 -0
  202. package/dist/temp/assets/scripts/notification/index.d.ts +7 -0
  203. package/dist/temp/assets/scripts/notification/index.js +11 -0
  204. package/dist/temp/assets/scripts/notification/utils.d.ts +8 -0
  205. package/dist/temp/assets/scripts/notification/utils.js +84 -0
  206. package/dist/temp/assets/scripts/progress-bar/ProgressBar.d.ts +67 -0
  207. package/dist/temp/assets/scripts/progress-bar/ProgressBar.js +258 -0
  208. package/dist/temp/assets/scripts/progress-bar/index.d.ts +1 -0
  209. package/dist/temp/assets/scripts/progress-bar/index.js +1 -0
  210. package/dist/temp/assets/scripts/selectBox.d.ts +50 -0
  211. package/dist/temp/assets/scripts/selectBox.js +194 -0
  212. package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +5 -0
  213. package/dist/temp/assets/scripts/shared/ButtonCloseX.js +32 -0
  214. package/dist/temp/assets/scripts/slider.d.ts +41 -0
  215. package/dist/temp/assets/scripts/slider.js +331 -0
  216. package/dist/temp/assets/scripts/tab.d.ts +7 -0
  217. package/dist/temp/assets/scripts/tab.js +35 -0
  218. package/dist/temp/assets/scripts/tag/Tag.d.ts +27 -0
  219. package/dist/temp/assets/scripts/tag/Tag.js +267 -0
  220. package/dist/temp/assets/scripts/tag/const/classNames.d.ts +11 -0
  221. package/dist/temp/assets/scripts/tag/const/classNames.js +12 -0
  222. package/dist/temp/assets/scripts/tag/const/index.d.ts +3 -0
  223. package/dist/temp/assets/scripts/tag/const/index.js +3 -0
  224. package/dist/temp/assets/scripts/tag/const/sizes.d.ts +7 -0
  225. package/dist/temp/assets/scripts/tag/const/sizes.js +7 -0
  226. package/dist/temp/assets/scripts/tag/const/types.d.ts +33 -0
  227. package/dist/temp/assets/scripts/tag/const/types.js +1 -0
  228. package/dist/temp/assets/scripts/tag/index.d.ts +3 -0
  229. package/dist/temp/assets/scripts/tag/index.js +9 -0
  230. package/dist/temp/assets/scripts/tooltip/Tooltip.d.ts +54 -0
  231. package/dist/temp/assets/scripts/tooltip/Tooltip.js +360 -0
  232. package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.d.ts +21 -0
  233. package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.js +74 -0
  234. package/dist/temp/assets/scripts/tooltip/const/classNames.d.ts +17 -0
  235. package/dist/temp/assets/scripts/tooltip/const/classNames.js +23 -0
  236. package/dist/temp/assets/scripts/tooltip/const/constants.d.ts +33 -0
  237. package/dist/temp/assets/scripts/tooltip/const/constants.js +46 -0
  238. package/dist/temp/assets/scripts/tooltip/const/icons.d.ts +4 -0
  239. package/dist/temp/assets/scripts/tooltip/const/icons.js +9 -0
  240. package/dist/temp/assets/scripts/tooltip/const/index.d.ts +5 -0
  241. package/dist/temp/assets/scripts/tooltip/const/index.js +4 -0
  242. package/dist/temp/assets/scripts/tooltip/const/templates.d.ts +16 -0
  243. package/dist/temp/assets/scripts/tooltip/const/templates.js +30 -0
  244. package/dist/temp/assets/scripts/tooltip/const/types.d.ts +14 -0
  245. package/dist/temp/assets/scripts/tooltip/const/types.js +1 -0
  246. package/dist/temp/assets/scripts/tooltip/index.d.ts +6 -0
  247. package/dist/temp/assets/scripts/tooltip/index.js +10 -0
  248. package/dist/temp/assets/scripts/tooltip/utils.d.ts +2 -0
  249. package/dist/temp/assets/scripts/tooltip/utils.js +35 -0
  250. package/dist/temp/assets/scripts/utils/debounce.d.ts +8 -0
  251. package/dist/temp/assets/scripts/utils/debounce.js +27 -0
  252. package/dist/{types/assets/scripts/utils/unifiedBox/DOMRenderer.d.ts → temp/assets/scripts/utils/unifiedBox/domRenderer.d.ts} +0 -1
  253. package/dist/temp/assets/scripts/utils/unifiedBox/domRenderer.js +376 -0
  254. package/dist/{types/assets/scripts/utils/unifiedBox/DropdownModel.d.ts → temp/assets/scripts/utils/unifiedBox/dropdownModel.d.ts} +7 -23
  255. package/dist/temp/assets/scripts/utils/unifiedBox/dropdownModel.js +311 -0
  256. package/dist/{types/assets/scripts/utils/unifiedBox/UnifiedBoxController.d.ts → temp/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts} +3 -18
  257. package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxController.js +627 -0
  258. package/dist/{types/assets/scripts/utils/unifiedBox/UnifiedBoxManager.d.ts → temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts} +4 -8
  259. package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +559 -0
  260. package/dist/temp/constant/color.d.ts +36 -0
  261. package/dist/temp/constant/color.js +34 -0
  262. package/dist/temp/constant/size.d.ts +1 -0
  263. package/dist/temp/constant/size.js +1 -0
  264. package/dist/temp/index.d.ts +29 -0
  265. package/dist/temp/index.js +29 -0
  266. package/dist/temp/src/components/badge/Badge.d.ts +18 -0
  267. package/dist/temp/src/components/badge/Badge.js +23 -0
  268. package/dist/temp/src/components/badge/BadgeGroup.d.ts +18 -0
  269. package/dist/temp/src/components/badge/BadgeGroup.js +36 -0
  270. package/dist/temp/src/components/badge/index.d.ts +2 -0
  271. package/dist/temp/src/components/badge/index.js +2 -0
  272. package/dist/temp/src/components/badge/utils.d.ts +8 -0
  273. package/dist/temp/src/components/badge/utils.js +17 -0
  274. package/dist/temp/src/components/breadcrumb/BreadCrumb.d.ts +11 -0
  275. package/dist/temp/src/components/breadcrumb/BreadCrumb.js +33 -0
  276. package/dist/temp/src/components/breadcrumb/index.d.ts +1 -0
  277. package/dist/temp/src/components/breadcrumb/index.js +1 -0
  278. package/dist/temp/src/components/button/Button.d.ts +35 -0
  279. package/dist/temp/src/components/button/Button.js +69 -0
  280. package/dist/temp/src/components/button/ButtonCloseX.d.ts +10 -0
  281. package/dist/temp/src/components/button/ButtonCloseX.js +25 -0
  282. package/dist/temp/src/components/button/ButtonGroup.d.ts +311 -0
  283. package/dist/temp/src/components/button/ButtonGroup.js +72 -0
  284. package/dist/temp/src/components/button/ButtonStepper.d.ts +9 -0
  285. package/dist/temp/src/components/button/ButtonStepper.js +6 -0
  286. package/dist/temp/src/components/button/index.d.ts +4 -0
  287. package/dist/temp/src/components/button/index.js +4 -0
  288. package/dist/temp/src/components/carousel/CarouselArrow.d.ts +8 -0
  289. package/dist/temp/src/components/carousel/CarouselArrow.js +24 -0
  290. package/dist/temp/src/components/carousel/CarouselNumberGroup.d.ts +8 -0
  291. package/dist/temp/src/components/carousel/CarouselNumberGroup.js +24 -0
  292. package/dist/temp/src/components/carousel/index.d.ts +2 -0
  293. package/dist/temp/src/components/carousel/index.js +2 -0
  294. package/dist/temp/src/components/checkbox/Checkbox.d.ts +7 -0
  295. package/dist/temp/src/components/checkbox/Checkbox.js +30 -0
  296. package/dist/temp/src/components/checkbox/CheckboxInput.d.ts +9 -0
  297. package/dist/temp/src/components/checkbox/CheckboxInput.js +46 -0
  298. package/dist/temp/src/components/checkbox/index.d.ts +2 -0
  299. package/dist/temp/src/components/checkbox/index.js +2 -0
  300. package/dist/temp/src/components/combobox/ComboBox.d.ts +28 -0
  301. package/dist/temp/src/components/combobox/ComboBox.js +199 -0
  302. package/dist/temp/src/components/combobox/index.d.ts +2 -0
  303. package/dist/temp/src/components/combobox/index.js +1 -0
  304. package/dist/temp/src/components/date-picker/CustomInput.d.ts +10 -0
  305. package/dist/temp/src/components/date-picker/CustomInput.js +34 -0
  306. package/dist/temp/src/components/date-picker/DatePicker.d.ts +24 -0
  307. package/dist/temp/src/components/date-picker/DatePicker.js +326 -0
  308. package/dist/temp/src/components/date-picker/RangeDatePicker.d.ts +26 -0
  309. package/dist/temp/src/components/date-picker/RangeDatePicker.js +117 -0
  310. package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.d.ts +71 -0
  311. package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.js +55 -0
  312. package/dist/temp/src/components/date-picker/index.d.ts +4 -0
  313. package/dist/temp/src/components/date-picker/index.js +4 -0
  314. package/dist/temp/src/components/date-picker/utils.d.ts +2 -0
  315. package/dist/temp/src/components/date-picker/utils.js +8 -0
  316. package/dist/temp/src/components/divider/Divider.d.ts +15 -0
  317. package/dist/temp/src/components/divider/Divider.js +23 -0
  318. package/dist/temp/src/components/divider/index.d.ts +1 -0
  319. package/dist/temp/src/components/divider/index.js +1 -0
  320. package/dist/temp/src/components/dot/Dot.d.ts +24 -0
  321. package/dist/temp/src/components/dot/Dot.js +31 -0
  322. package/dist/temp/src/components/dot/index.d.ts +1 -0
  323. package/dist/temp/src/components/dot/index.js +1 -0
  324. package/dist/temp/src/components/dropdown/Dropdown.d.ts +52 -0
  325. package/dist/temp/src/components/dropdown/Dropdown.js +90 -0
  326. package/dist/temp/src/components/dropdown/index.d.ts +1 -0
  327. package/dist/temp/src/components/dropdown/index.js +1 -0
  328. package/dist/temp/src/components/empty-state/EmptyState.d.ts +14 -0
  329. package/dist/temp/src/components/empty-state/EmptyState.js +33 -0
  330. package/dist/temp/src/components/empty-state/index.d.ts +1 -0
  331. package/dist/temp/src/components/empty-state/index.js +1 -0
  332. package/dist/temp/src/components/featured-icon/FeaturedIcon.d.ts +15 -0
  333. package/dist/temp/src/components/featured-icon/FeaturedIcon.js +36 -0
  334. package/dist/temp/src/components/featured-icon/index.d.ts +1 -0
  335. package/dist/temp/src/components/featured-icon/index.js +1 -0
  336. package/dist/temp/src/components/file-input/FileInput.d.ts +61 -0
  337. package/dist/temp/src/components/file-input/FileInput.js +123 -0
  338. package/dist/temp/src/components/file-input/index.d.ts +1 -0
  339. package/dist/temp/src/components/file-input/index.js +1 -0
  340. package/dist/temp/src/components/image-file-input/ImageFileInput.d.ts +70 -0
  341. package/dist/temp/src/components/image-file-input/ImageFileInput.js +124 -0
  342. package/dist/temp/src/components/image-file-input/components/ImagePreview.d.ts +5 -0
  343. package/dist/temp/src/components/image-file-input/components/ImagePreview.js +18 -0
  344. package/dist/temp/src/components/image-file-input/index.d.ts +1 -0
  345. package/dist/temp/src/components/image-file-input/index.js +1 -0
  346. package/dist/temp/src/components/index.d.ts +33 -0
  347. package/dist/temp/src/components/index.js +32 -0
  348. package/dist/temp/src/components/input/InputBase.d.ts +54 -0
  349. package/dist/temp/src/components/input/InputBase.js +121 -0
  350. package/dist/temp/src/components/input/NumberInput.d.ts +9 -0
  351. package/dist/temp/src/components/input/NumberInput.js +93 -0
  352. package/dist/temp/src/components/input/PasswordInput.d.ts +2 -0
  353. package/dist/temp/src/components/input/PasswordInput.js +51 -0
  354. package/dist/temp/src/components/input/Textarea.d.ts +14 -0
  355. package/dist/temp/src/components/input/Textarea.js +60 -0
  356. package/dist/temp/src/components/input/index.d.ts +4 -0
  357. package/dist/temp/src/components/input/index.js +4 -0
  358. package/dist/temp/src/components/modal/Modal.d.ts +79 -0
  359. package/dist/temp/src/components/modal/Modal.js +101 -0
  360. package/dist/temp/src/components/modal/index.d.ts +1 -0
  361. package/dist/temp/src/components/modal/index.js +1 -0
  362. package/dist/temp/src/components/notification/FloatingNotification.d.ts +37 -0
  363. package/dist/temp/src/components/notification/FloatingNotification.js +79 -0
  364. package/dist/temp/src/components/notification/FullWidthNotification.d.ts +46 -0
  365. package/dist/temp/src/components/notification/FullWidthNotification.js +79 -0
  366. package/dist/temp/src/components/notification/MessageNotification.d.ts +41 -0
  367. package/dist/temp/src/components/notification/MessageNotification.js +57 -0
  368. package/dist/temp/src/components/notification/Notification.d.ts +72 -0
  369. package/dist/temp/src/components/notification/Notification.js +42 -0
  370. package/dist/temp/src/components/notification/index.d.ts +4 -0
  371. package/dist/temp/src/components/notification/index.js +4 -0
  372. package/dist/temp/src/components/pagination/NavButton.d.ts +31 -0
  373. package/dist/temp/src/components/pagination/NavButton.js +66 -0
  374. package/dist/temp/src/components/pagination/Pagination.d.ts +11 -0
  375. package/dist/temp/src/components/pagination/Pagination.js +93 -0
  376. package/dist/temp/src/components/pagination/index.d.ts +2 -0
  377. package/dist/temp/src/components/pagination/index.js +2 -0
  378. package/dist/temp/src/components/progress-bar/ProgressBar.d.ts +2 -0
  379. package/dist/temp/src/components/progress-bar/ProgressBar.js +31 -0
  380. package/dist/temp/src/components/progress-bar/components/SegmentBar.d.ts +7 -0
  381. package/dist/temp/src/components/progress-bar/components/SegmentBar.js +10 -0
  382. package/dist/temp/src/components/progress-bar/components/SegmentLabels.d.ts +15 -0
  383. package/dist/temp/src/components/progress-bar/components/SegmentLabels.js +45 -0
  384. package/dist/temp/src/components/progress-bar/hooks/useProgressBar.d.ts +13 -0
  385. package/dist/temp/src/components/progress-bar/hooks/useProgressBar.js +96 -0
  386. package/dist/temp/src/components/progress-bar/index.d.ts +2 -0
  387. package/dist/temp/src/components/progress-bar/index.js +2 -0
  388. package/dist/temp/src/components/progress-bar/types.d.ts +15 -0
  389. package/dist/temp/src/components/progress-bar/types.js +1 -0
  390. package/dist/temp/src/components/progress-bar/utils.d.ts +13 -0
  391. package/dist/temp/src/components/progress-bar/utils.js +26 -0
  392. package/dist/temp/src/components/progress-circle/ProgressCircle.d.ts +7 -0
  393. package/dist/temp/src/components/progress-circle/ProgressCircle.js +21 -0
  394. package/dist/temp/src/components/progress-circle/index.d.ts +1 -0
  395. package/dist/temp/src/components/progress-circle/index.js +1 -0
  396. package/dist/temp/src/components/radio/Radio.d.ts +7 -0
  397. package/dist/temp/src/components/radio/Radio.js +30 -0
  398. package/dist/temp/src/components/radio/RadioInput.d.ts +8 -0
  399. package/dist/temp/src/components/radio/RadioInput.js +29 -0
  400. package/dist/temp/src/components/radio/index.d.ts +2 -0
  401. package/dist/temp/src/components/radio/index.js +2 -0
  402. package/dist/temp/src/components/select/Select.d.ts +16 -0
  403. package/dist/temp/src/components/select/Select.js +33 -0
  404. package/dist/temp/src/components/select/index.d.ts +1 -0
  405. package/dist/temp/src/components/select/index.js +1 -0
  406. package/dist/temp/src/components/select-dropdown/SelectDropdown.d.ts +29 -0
  407. package/dist/temp/src/components/select-dropdown/SelectDropdown.js +49 -0
  408. package/dist/temp/src/components/select-dropdown/index.d.ts +1 -0
  409. package/dist/temp/src/components/select-dropdown/index.js +1 -0
  410. package/dist/temp/src/components/selectbox/SelectBox.d.ts +27 -0
  411. package/dist/temp/src/components/selectbox/SelectBox.js +163 -0
  412. package/dist/temp/src/components/selectbox/index.d.ts +1 -0
  413. package/dist/temp/src/components/selectbox/index.js +1 -0
  414. package/dist/temp/src/components/shared/hintText/HintText.d.ts +7 -0
  415. package/dist/temp/src/components/shared/hintText/HintText.js +28 -0
  416. package/dist/temp/src/components/shared/hintText/index.d.ts +1 -0
  417. package/dist/temp/src/components/shared/hintText/index.js +1 -0
  418. package/dist/temp/src/components/shared/index.d.ts +2 -0
  419. package/dist/temp/src/components/shared/index.js +2 -0
  420. package/dist/temp/src/components/shared/label/Label.d.ts +7 -0
  421. package/dist/temp/src/components/shared/label/Label.js +28 -0
  422. package/dist/temp/src/components/shared/label/index.d.ts +1 -0
  423. package/dist/temp/src/components/shared/label/index.js +1 -0
  424. package/dist/temp/src/components/slider/Slider.d.ts +14 -0
  425. package/dist/temp/src/components/slider/Slider.js +44 -0
  426. package/dist/temp/src/components/slider/index.d.ts +1 -0
  427. package/dist/temp/src/components/slider/index.js +1 -0
  428. package/dist/temp/src/components/spinner/Spinner.d.ts +9 -0
  429. package/dist/temp/src/components/spinner/Spinner.js +21 -0
  430. package/dist/temp/src/components/spinner/index.d.ts +1 -0
  431. package/dist/temp/src/components/spinner/index.js +1 -0
  432. package/dist/temp/src/components/switch/Switch.d.ts +22 -0
  433. package/dist/temp/src/components/switch/Switch.js +68 -0
  434. package/dist/temp/src/components/switch/index.d.ts +2 -0
  435. package/dist/temp/src/components/switch/index.js +1 -0
  436. package/dist/temp/src/components/tab/HorizontalTab.d.ts +12 -0
  437. package/dist/temp/src/components/tab/HorizontalTab.js +37 -0
  438. package/dist/temp/src/components/tab/TabButton.d.ts +23 -0
  439. package/dist/temp/src/components/tab/TabButton.js +37 -0
  440. package/dist/temp/src/components/tab/VerticalTab.d.ts +9 -0
  441. package/dist/temp/src/components/tab/VerticalTab.js +32 -0
  442. package/dist/temp/src/components/tab/index.d.ts +3 -0
  443. package/dist/temp/src/components/tab/index.js +3 -0
  444. package/dist/temp/src/components/tag/Tag.d.ts +17 -0
  445. package/dist/temp/src/components/tag/Tag.js +110 -0
  446. package/dist/temp/src/components/tag/index.d.ts +1 -0
  447. package/dist/temp/src/components/tag/index.js +1 -0
  448. package/dist/temp/src/components/toggle/Toggle.d.ts +10 -0
  449. package/dist/temp/src/components/toggle/Toggle.js +30 -0
  450. package/dist/temp/src/components/toggle/index.d.ts +1 -0
  451. package/dist/temp/src/components/toggle/index.js +1 -0
  452. package/dist/temp/src/components/tooltip/Tooltip.d.ts +15 -0
  453. package/dist/temp/src/components/tooltip/Tooltip.js +122 -0
  454. package/dist/temp/src/components/tooltip/index.d.ts +1 -0
  455. package/dist/temp/src/components/tooltip/index.js +1 -0
  456. package/dist/temp/src/constant/breakpoint.d.ts +6 -0
  457. package/dist/temp/src/constant/breakpoint.js +6 -0
  458. package/dist/temp/src/constant/date-picker.d.ts +63 -0
  459. package/dist/temp/src/constant/date-picker.js +53 -0
  460. package/dist/temp/src/constant/index.d.ts +2 -0
  461. package/dist/temp/src/constant/index.js +2 -0
  462. package/dist/temp/src/constant/size.d.ts +1 -0
  463. package/dist/temp/src/constant/size.js +1 -0
  464. package/dist/temp/src/hooks/dropdown/index.d.ts +6 -0
  465. package/dist/temp/src/hooks/dropdown/index.js +6 -0
  466. package/dist/temp/src/hooks/dropdown/useDropdown.d.ts +29 -0
  467. package/dist/temp/src/hooks/dropdown/useDropdown.js +84 -0
  468. package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.d.ts +10 -0
  469. package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.js +108 -0
  470. package/dist/temp/src/hooks/dropdown/useDropdownPosition.d.ts +9 -0
  471. package/dist/temp/src/hooks/dropdown/useDropdownPosition.js +18 -0
  472. package/dist/temp/src/hooks/dropdown/useOutsideClick.d.ts +5 -0
  473. package/dist/temp/src/hooks/dropdown/useOutsideClick.js +23 -0
  474. package/dist/temp/src/hooks/dropdown/useScrollLock.d.ts +4 -0
  475. package/dist/temp/src/hooks/dropdown/useScrollLock.js +72 -0
  476. package/dist/temp/src/hooks/dropdown/useWindowResize.d.ts +7 -0
  477. package/dist/temp/src/hooks/dropdown/useWindowResize.js +44 -0
  478. package/dist/temp/src/hooks/index.d.ts +4 -0
  479. package/dist/temp/src/hooks/index.js +6 -0
  480. package/dist/temp/src/hooks/useCallbackRef.d.ts +27 -0
  481. package/dist/temp/src/hooks/useCallbackRef.js +44 -0
  482. package/dist/temp/src/hooks/useMediaQuery.d.ts +5 -0
  483. package/dist/temp/src/hooks/useMediaQuery.js +20 -0
  484. package/dist/temp/src/hooks/useMergeRefs.d.ts +20 -0
  485. package/dist/temp/src/hooks/useMergeRefs.js +31 -0
  486. package/dist/temp/src/types/dropdown/dropdown.d.ts +39 -0
  487. package/dist/temp/src/types/dropdown/dropdown.js +1 -0
  488. package/dist/temp/src/types/dropdown/index.d.ts +2 -0
  489. package/dist/temp/src/types/dropdown/index.js +2 -0
  490. package/dist/temp/src/types/dropdown/option.d.ts +23 -0
  491. package/dist/temp/src/types/dropdown/option.js +1 -0
  492. package/dist/temp/src/types/index.d.ts +2 -0
  493. package/dist/temp/src/types/index.js +2 -0
  494. package/dist/temp/src/types/side-slot.d.ts +25 -0
  495. package/dist/temp/src/types/side-slot.js +1 -0
  496. package/dist/temp/src/utils/date-picker.d.ts +11 -0
  497. package/dist/temp/src/utils/date-picker.js +51 -0
  498. package/dist/temp/src/utils/dropdown/dropdownUtils.d.ts +17 -0
  499. package/dist/temp/src/utils/dropdown/dropdownUtils.js +79 -0
  500. package/dist/temp/src/utils/dropdown/index.d.ts +2 -0
  501. package/dist/temp/src/utils/dropdown/index.js +2 -0
  502. package/dist/temp/src/utils/dropdown/multiSelect.d.ts +31 -0
  503. package/dist/temp/src/utils/dropdown/multiSelect.js +68 -0
  504. package/dist/temp/src/utils/index.d.ts +2 -0
  505. package/dist/temp/src/utils/index.js +4 -0
  506. package/dist/types/assets/scripts/baseBox.d.ts +55 -0
  507. package/dist/types/assets/scripts/comboBox.d.ts +7 -38
  508. package/dist/types/assets/scripts/datePicker.d.ts +0 -1
  509. package/dist/types/assets/scripts/featuredIcon.d.ts +0 -1
  510. package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +0 -2
  511. package/dist/types/assets/scripts/fileInput/const/index.d.ts +0 -1
  512. package/dist/types/assets/scripts/fileInput/const/types.d.ts +4 -48
  513. package/dist/types/assets/scripts/fileInput/fileInput.d.ts +13 -0
  514. package/dist/types/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
  515. package/dist/types/assets/scripts/fileInput/fileInputView.d.ts +42 -0
  516. package/dist/types/assets/scripts/fileInput/index.d.ts +1 -2
  517. package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +0 -1
  518. package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +0 -1
  519. package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +0 -1
  520. package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +0 -1
  521. package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +0 -1
  522. package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +0 -1
  523. package/dist/types/assets/scripts/imageFileInput/index.d.ts +0 -1
  524. package/dist/types/assets/scripts/index.d.ts +0 -1
  525. package/dist/types/assets/scripts/modal/Modal.d.ts +0 -1
  526. package/dist/types/assets/scripts/modal/ModalActions.d.ts +0 -1
  527. package/dist/types/assets/scripts/modal/ModalContent.d.ts +0 -1
  528. package/dist/types/assets/scripts/modal/ModalHeader.d.ts +0 -1
  529. package/dist/types/assets/scripts/modal/const/classNames.d.ts +0 -1
  530. package/dist/types/assets/scripts/modal/const/index.d.ts +0 -1
  531. package/dist/types/assets/scripts/modal/const/types.d.ts +0 -1
  532. package/dist/types/assets/scripts/modal/index.d.ts +0 -1
  533. package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +0 -1
  534. package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +0 -1
  535. package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +0 -1
  536. package/dist/types/assets/scripts/notification/MessageNotification.d.ts +0 -1
  537. package/dist/types/assets/scripts/notification/Notification.d.ts +0 -1
  538. package/dist/types/assets/scripts/notification/const/classNames.d.ts +0 -1
  539. package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -1
  540. package/dist/types/assets/scripts/notification/const/index.d.ts +0 -1
  541. package/dist/types/assets/scripts/notification/const/sizes.d.ts +0 -1
  542. package/dist/types/assets/scripts/notification/const/types.d.ts +0 -1
  543. package/dist/types/assets/scripts/notification/index.d.ts +0 -1
  544. package/dist/types/assets/scripts/notification/utils.d.ts +0 -1
  545. package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +0 -1
  546. package/dist/types/assets/scripts/progress-bar/index.d.ts +0 -1
  547. package/dist/types/assets/scripts/selectBox.d.ts +6 -33
  548. package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -1
  549. package/dist/types/assets/scripts/slider.d.ts +0 -1
  550. package/dist/types/assets/scripts/tab.d.ts +0 -1
  551. package/dist/types/assets/scripts/tag/Tag.d.ts +0 -1
  552. package/dist/types/assets/scripts/tag/const/classNames.d.ts +0 -1
  553. package/dist/types/assets/scripts/tag/const/index.d.ts +0 -1
  554. package/dist/types/assets/scripts/tag/const/sizes.d.ts +0 -1
  555. package/dist/types/assets/scripts/tag/const/types.d.ts +0 -1
  556. package/dist/types/assets/scripts/tag/index.d.ts +0 -1
  557. package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +0 -1
  558. package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +0 -1
  559. package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +0 -1
  560. package/dist/types/assets/scripts/tooltip/const/constants.d.ts +0 -1
  561. package/dist/types/assets/scripts/tooltip/const/icons.d.ts +0 -1
  562. package/dist/types/assets/scripts/tooltip/const/index.d.ts +0 -1
  563. package/dist/types/assets/scripts/tooltip/const/templates.d.ts +0 -1
  564. package/dist/types/assets/scripts/tooltip/const/types.d.ts +0 -1
  565. package/dist/types/assets/scripts/tooltip/index.d.ts +0 -1
  566. package/dist/types/assets/scripts/tooltip/utils.d.ts +0 -1
  567. package/dist/types/assets/scripts/utils/debounce.d.ts +8 -0
  568. package/dist/types/assets/scripts/utils/unifiedBox/domRenderer.d.ts +107 -0
  569. package/dist/types/assets/scripts/utils/unifiedBox/dropdownModel.d.ts +142 -0
  570. package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts +156 -0
  571. package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts +95 -0
  572. package/dist/types/constant/color.d.ts +0 -1
  573. package/dist/types/constant/size.d.ts +0 -1
  574. package/dist/types/index.d.ts +0 -1
  575. package/dist/types/src/components/badge/Badge.d.ts +10 -9
  576. package/dist/types/src/components/badge/BadgeGroup.d.ts +7 -6
  577. package/dist/types/src/components/badge/index.d.ts +0 -1
  578. package/dist/types/src/components/badge/utils.d.ts +4 -3
  579. package/dist/types/src/components/breadcrumb/BreadCrumb.d.ts +5 -4
  580. package/dist/types/src/components/breadcrumb/index.d.ts +0 -1
  581. package/dist/types/src/components/button/Button.d.ts +2 -1
  582. package/dist/types/src/components/button/ButtonCloseX.d.ts +4 -3
  583. package/dist/types/src/components/button/ButtonGroup.d.ts +7 -9
  584. package/dist/types/src/components/button/ButtonStepper.d.ts +1 -2
  585. package/dist/types/src/components/button/index.d.ts +0 -1
  586. package/dist/types/src/components/carousel/CarouselArrow.d.ts +1 -3
  587. package/dist/types/src/components/carousel/CarouselNumberGroup.d.ts +1 -3
  588. package/dist/types/src/components/carousel/index.d.ts +0 -1
  589. package/dist/types/src/components/checkbox/Checkbox.d.ts +2 -3
  590. package/dist/types/src/components/checkbox/CheckboxInput.d.ts +2 -3
  591. package/dist/types/src/components/checkbox/index.d.ts +0 -1
  592. package/dist/types/src/components/combobox/ComboBox.d.ts +7 -6
  593. package/dist/types/src/components/combobox/index.d.ts +1 -2
  594. package/dist/types/src/components/date-picker/CustomInput.d.ts +2 -3
  595. package/dist/types/src/components/date-picker/DatePicker.d.ts +7 -6
  596. package/dist/types/src/components/date-picker/RangeDatePicker.d.ts +6 -5
  597. package/dist/types/src/components/date-picker/RangeDatePickerWithButtons.d.ts +4 -4
  598. package/dist/types/src/components/date-picker/index.d.ts +0 -1
  599. package/dist/types/src/components/date-picker/utils.d.ts +0 -1
  600. package/dist/types/src/components/divider/Divider.d.ts +1 -2
  601. package/dist/types/src/components/divider/index.d.ts +0 -1
  602. package/dist/types/src/components/dot/Dot.d.ts +9 -8
  603. package/dist/types/src/components/dot/index.d.ts +0 -1
  604. package/dist/types/src/components/dropdown/Dropdown.d.ts +0 -1
  605. package/dist/types/src/components/dropdown/index.d.ts +0 -1
  606. package/dist/types/src/components/empty-state/EmptyState.d.ts +5 -5
  607. package/dist/types/src/components/empty-state/index.d.ts +0 -1
  608. package/dist/types/src/components/featured-icon/FeaturedIcon.d.ts +8 -7
  609. package/dist/types/src/components/featured-icon/index.d.ts +0 -1
  610. package/dist/types/src/components/file-input/FileInput.d.ts +0 -1
  611. package/dist/types/src/components/file-input/index.d.ts +0 -1
  612. package/dist/types/src/components/image-file-input/ImageFileInput.d.ts +0 -1
  613. package/dist/types/src/components/image-file-input/components/ImagePreview.d.ts +0 -1
  614. package/dist/types/src/components/image-file-input/index.d.ts +0 -1
  615. package/dist/types/src/components/index.d.ts +1 -2
  616. package/dist/types/src/components/input/InputBase.d.ts +4 -4
  617. package/dist/types/src/components/input/NumberInput.d.ts +1 -2
  618. package/dist/types/src/components/input/PasswordInput.d.ts +1 -2
  619. package/dist/types/src/components/input/Textarea.d.ts +2 -3
  620. package/dist/types/src/components/input/index.d.ts +0 -1
  621. package/dist/types/src/components/modal/Modal.d.ts +13 -12
  622. package/dist/types/src/components/modal/index.d.ts +0 -1
  623. package/dist/types/src/components/notification/FloatingNotification.d.ts +6 -5
  624. package/dist/types/src/components/notification/FullWidthNotification.d.ts +6 -5
  625. package/dist/types/src/components/notification/MessageNotification.d.ts +6 -5
  626. package/dist/types/src/components/notification/Notification.d.ts +11 -10
  627. package/dist/types/src/components/notification/index.d.ts +1 -2
  628. package/dist/types/src/components/pagination/NavButton.d.ts +0 -1
  629. package/dist/types/src/components/pagination/Pagination.d.ts +0 -1
  630. package/dist/types/src/components/pagination/index.d.ts +0 -1
  631. package/dist/types/src/components/progress-bar/ProgressBar.d.ts +0 -1
  632. package/dist/types/src/components/progress-bar/components/SegmentBar.d.ts +0 -1
  633. package/dist/types/src/components/progress-bar/components/SegmentLabels.d.ts +3 -4
  634. package/dist/types/src/components/progress-bar/hooks/useProgressBar.d.ts +1 -2
  635. package/dist/types/src/components/progress-bar/index.d.ts +0 -1
  636. package/dist/types/src/components/progress-bar/types.d.ts +0 -1
  637. package/dist/types/src/components/progress-bar/utils.d.ts +4 -4
  638. package/dist/types/src/components/progress-circle/ProgressCircle.d.ts +0 -1
  639. package/dist/types/src/components/progress-circle/index.d.ts +0 -1
  640. package/dist/types/src/components/radio/Radio.d.ts +2 -3
  641. package/dist/types/src/components/radio/RadioInput.d.ts +2 -3
  642. package/dist/types/src/components/radio/index.d.ts +0 -1
  643. package/dist/types/src/components/select/Select.d.ts +4 -5
  644. package/dist/types/src/components/select/index.d.ts +0 -1
  645. package/dist/types/src/components/select-dropdown/SelectDropdown.d.ts +6 -6
  646. package/dist/types/src/components/select-dropdown/index.d.ts +1 -2
  647. package/dist/types/src/components/selectbox/SelectBox.d.ts +5 -4
  648. package/dist/types/src/components/selectbox/index.d.ts +0 -1
  649. package/dist/types/src/components/shared/hintText/HintText.d.ts +0 -1
  650. package/dist/types/src/components/shared/hintText/index.d.ts +0 -1
  651. package/dist/types/src/components/shared/index.d.ts +0 -1
  652. package/dist/types/src/components/shared/label/Label.d.ts +0 -1
  653. package/dist/types/src/components/shared/label/index.d.ts +0 -1
  654. package/dist/types/src/components/slider/Slider.d.ts +1 -2
  655. package/dist/types/src/components/slider/index.d.ts +0 -1
  656. package/dist/types/src/components/spinner/Spinner.d.ts +1 -2
  657. package/dist/types/src/components/spinner/index.d.ts +0 -2
  658. package/dist/types/src/components/switch/Switch.d.ts +7 -7
  659. package/dist/types/src/components/switch/index.d.ts +1 -2
  660. package/dist/types/src/components/tab/HorizontalTab.d.ts +5 -4
  661. package/dist/types/src/components/tab/TabButton.d.ts +8 -8
  662. package/dist/types/src/components/tab/VerticalTab.d.ts +2 -3
  663. package/dist/types/src/components/tab/index.d.ts +0 -1
  664. package/dist/types/src/components/tag/Tag.d.ts +4 -4
  665. package/dist/types/src/components/tag/index.d.ts +0 -1
  666. package/dist/types/src/components/toggle/Toggle.d.ts +1 -2
  667. package/dist/types/src/components/toggle/index.d.ts +0 -1
  668. package/dist/types/src/components/tooltip/Tooltip.d.ts +0 -1
  669. package/dist/types/src/components/tooltip/index.d.ts +0 -1
  670. package/dist/types/src/constant/breakpoint.d.ts +0 -1
  671. package/dist/types/src/constant/date-picker.d.ts +0 -1
  672. package/dist/types/src/constant/index.d.ts +1 -2
  673. package/dist/types/src/constant/size.d.ts +0 -1
  674. package/dist/types/src/hooks/dropdown/index.d.ts +0 -1
  675. package/dist/types/src/hooks/dropdown/useDropdown.d.ts +1 -2
  676. package/dist/types/src/hooks/dropdown/useDropdownKeyboard.d.ts +2 -3
  677. package/dist/types/src/hooks/dropdown/useDropdownPosition.d.ts +1 -2
  678. package/dist/types/src/hooks/dropdown/useOutsideClick.d.ts +1 -2
  679. package/dist/types/src/hooks/dropdown/useScrollLock.d.ts +0 -1
  680. package/dist/types/src/hooks/dropdown/useWindowResize.d.ts +0 -1
  681. package/dist/types/src/hooks/index.d.ts +1 -2
  682. package/dist/types/src/hooks/useCallbackRef.d.ts +0 -1
  683. package/dist/types/src/hooks/useMediaQuery.d.ts +0 -1
  684. package/dist/types/src/hooks/useMergeRefs.d.ts +1 -2
  685. package/dist/types/src/types/dropdown/dropdown.d.ts +1 -2
  686. package/dist/types/src/types/dropdown/index.d.ts +0 -1
  687. package/dist/types/src/types/dropdown/option.d.ts +0 -1
  688. package/dist/types/src/types/index.d.ts +0 -1
  689. package/dist/types/src/types/side-slot.d.ts +0 -1
  690. package/dist/types/src/utils/date-picker.d.ts +1 -2
  691. package/dist/types/src/utils/dropdown/dropdownUtils.d.ts +2 -3
  692. package/dist/types/src/utils/dropdown/index.d.ts +0 -1
  693. package/dist/types/src/utils/dropdown/multiSelect.d.ts +1 -2
  694. package/dist/types/src/utils/index.d.ts +0 -1
  695. package/dist/ui-admin/assets/styles/style.css +112 -24
  696. package/package.json +49 -53
  697. package/dist/cjs/assets/scripts/fileInput/FileInput.js +0 -183
  698. package/dist/cjs/assets/scripts/fileInput/FileInputModel.js +0 -246
  699. package/dist/cjs/assets/scripts/fileInput/FileInputView.js +0 -455
  700. package/dist/esm/assets/scripts/fileInput/FileInput.js +0 -178
  701. package/dist/esm/assets/scripts/fileInput/FileInputModel.js +0 -241
  702. package/dist/esm/assets/scripts/fileInput/FileInputView.js +0 -450
  703. /package/dist/cjs/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +0 -0
  704. /package/dist/esm/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +0 -0
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FileInputView = void 0;
7
+ var _classNames = require("./const/classNames");
8
+ var HELP_ICON_SVG = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\">\n <circle cx=\"12\" cy=\"12\" r=\"10\" stroke-width=\"2\"/>\n <path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n</svg>";
9
+ var SHARE_ICON_SVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"none\" class=\"ncua-btn__icon\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21 12v4.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V12m13-5-4-4m0 0L8 7m4-4v12\"/>\n</svg>";
10
+ var FileInputView = exports.FileInputView = /** @class */function () {
11
+ function FileInputView(options) {
12
+ this.options = options;
13
+ this.element = this.createElement();
14
+ this.fileInputElement = this.element.querySelector('input[type="file"]');
15
+ this.buttonElement = this.element.querySelector('button');
16
+ }
17
+ /**
18
+ * 메인 DOM 요소 생성
19
+ */
20
+ FileInputView.prototype.createElement = function () {
21
+ var container = document.createElement('div');
22
+ var baseClasses = "".concat(_classNames.FILE_INPUT_CLASS_NAMES.fileInput, " ").concat((0, _classNames.getFileInputSizeClassName)(this.options.size));
23
+ var customClasses = this.options.className ? " ".concat(this.options.className) : '';
24
+ container.className = baseClasses + customClasses;
25
+ // Hidden file input 생성
26
+ container.appendChild(this.createFileInput());
27
+ // Input container
28
+ container.appendChild(this.createInputContainer());
29
+ // Hint list
30
+ if (this.options.hintItems && this.options.hintItems.length > 0) {
31
+ container.appendChild(this.createHintList());
32
+ }
33
+ return container;
34
+ };
35
+ /**
36
+ * Hidden file input 생성
37
+ */
38
+ FileInputView.prototype.createFileInput = function () {
39
+ var input = document.createElement('input');
40
+ input.type = 'file';
41
+ input.hidden = true;
42
+ input.tabIndex = -1;
43
+ input.setAttribute('aria-hidden', 'true');
44
+ input.classList.add('no-filestyle');
45
+ if (this.options.accept) {
46
+ input.accept = this.options.accept;
47
+ }
48
+ if (this.options.multiple) {
49
+ input.multiple = true;
50
+ }
51
+ return input;
52
+ };
53
+ /**
54
+ * Input container 생성
55
+ */
56
+ FileInputView.prototype.createInputContainer = function () {
57
+ var container = document.createElement('div');
58
+ container.className = _classNames.FILE_INPUT_CLASS_NAMES.inputContainer;
59
+ // Label
60
+ if (this.options.label) {
61
+ container.appendChild(this.createLabelContainer());
62
+ }
63
+ // Button
64
+ container.appendChild(this.createButton());
65
+ // Hint text
66
+ if (this.options.hintText) {
67
+ container.appendChild(this.createHintText());
68
+ }
69
+ return container;
70
+ };
71
+ /**
72
+ * Label container 생성
73
+ */
74
+ FileInputView.prototype.createLabelContainer = function () {
75
+ var container = document.createElement('div');
76
+ container.className = _classNames.FILE_INPUT_CLASS_NAMES.label;
77
+ var label = document.createElement('label');
78
+ label.className = (0, _classNames.getLabelClassName)(this.options.isRequired);
79
+ label.textContent = this.options.label;
80
+ container.appendChild(label);
81
+ if (this.options.showHelpIcon) {
82
+ container.appendChild(this.createHelpIcon());
83
+ }
84
+ return container;
85
+ };
86
+ /**
87
+ * Help icon 생성
88
+ */
89
+ FileInputView.prototype.createHelpIcon = function () {
90
+ var iconContainer = document.createElement('span');
91
+ iconContainer.className = _classNames.FILE_INPUT_CLASS_NAMES.helpIcon;
92
+ iconContainer.innerHTML = HELP_ICON_SVG;
93
+ return iconContainer;
94
+ };
95
+ FileInputView.prototype.createButton = function () {
96
+ var button = document.createElement('button');
97
+ button.type = 'button';
98
+ button.className = "ncua-btn ncua-btn--".concat(this.options.size, " ncua-btn--secondary-gray");
99
+ button.disabled = this.options.disabled;
100
+ button.insertAdjacentHTML('beforeend', SHARE_ICON_SVG);
101
+ var label = document.createElement('span');
102
+ label.className = 'ncua-btn__label';
103
+ label.textContent = this.options.buttonLabel;
104
+ button.appendChild(label);
105
+ return button;
106
+ };
107
+ /**
108
+ * Hint text 생성
109
+ */
110
+ FileInputView.prototype.createHintText = function () {
111
+ var hintText = document.createElement('div');
112
+ hintText.className = (0, _classNames.getHintTextClassName)(this.options.destructive);
113
+ hintText.textContent = this.options.hintText;
114
+ return hintText;
115
+ };
116
+ /**
117
+ * Hint list 생성
118
+ */
119
+ FileInputView.prototype.createHintList = function () {
120
+ var _a;
121
+ var ul = document.createElement('ul');
122
+ ul.className = _classNames.FILE_INPUT_CLASS_NAMES.hintList;
123
+ (_a = this.options.hintItems) === null || _a === void 0 ? void 0 : _a.forEach(function (hint) {
124
+ var li = document.createElement('li');
125
+ li.className = _classNames.FILE_INPUT_CLASS_NAMES.hintItem;
126
+ li.textContent = hint;
127
+ ul.appendChild(li);
128
+ });
129
+ return ul;
130
+ };
131
+ FileInputView.prototype.setButtonDisabled = function (disabled) {
132
+ this.buttonElement.disabled = disabled;
133
+ };
134
+ FileInputView.prototype.getElement = function () {
135
+ return this.element;
136
+ };
137
+ FileInputView.prototype.getFileInputElement = function () {
138
+ return this.fileInputElement;
139
+ };
140
+ FileInputView.prototype.getButtonElement = function () {
141
+ return this.buttonElement;
142
+ };
143
+ FileInputView.prototype.destroy = function () {
144
+ // View 리소스 정리 - 이벤트 리스너는 FileInput에서 관리
145
+ };
146
+ return FileInputView;
147
+ }();
@@ -9,10 +9,10 @@ var _exportNames = {
9
9
  Object.defineProperty(exports, "FileInput", {
10
10
  enumerable: true,
11
11
  get: function () {
12
- return _FileInput.FileInput;
12
+ return _fileInput.FileInput;
13
13
  }
14
14
  });
15
- var _FileInput = require("./FileInput");
15
+ var _fileInput = require("./fileInput");
16
16
  var _classNames = require("./const/classNames");
17
17
  Object.keys(_classNames).forEach(function (key) {
18
18
  if (key === "default" || key === "__esModule") return;
@@ -40,5 +40,5 @@ Object.keys(_types).forEach(function (key) {
40
40
  // 전역 등록 (추후 index.ts와 개별동작 할 수 있게끔 대비)
41
41
  if (typeof window !== 'undefined') {
42
42
  window.ncua = window.ncua || {};
43
- window.ncua.FileInput = _FileInput.FileInput;
43
+ window.ncua.FileInput = _fileInput.FileInput;
44
44
  }
@@ -32,7 +32,7 @@ var ImageFileInputView = exports.ImageFileInputView = /** @class */function () {
32
32
  var fileInputContainer = document.createElement('div');
33
33
  var fileInputClasses = "".concat(_classNames.IMAGE_FILE_INPUT_CLASS_NAMES.fileInput, " ").concat((0, _classNames.getFileInputSizeClassName)(this.options.size));
34
34
  fileInputContainer.className = fileInputClasses;
35
- // Hidden file input
35
+ // Hidden file input 생성
36
36
  fileInputContainer.appendChild(this.createFileInput());
37
37
  // Input container
38
38
  fileInputContainer.appendChild(this.createInputContainer());
@@ -4,7 +4,28 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SelectBox = void 0;
7
- var _UnifiedBoxManager = require("./utils/unifiedBox/UnifiedBoxManager");
7
+ var _baseBox = require("./baseBox");
8
+ var _unifiedBoxManager = require("./utils/unifiedBox/unifiedBoxManager");
9
+ var __extends = void 0 && (void 0).__extends || function () {
10
+ var extendStatics = function (d, b) {
11
+ extendStatics = Object.setPrototypeOf || {
12
+ __proto__: []
13
+ } instanceof Array && function (d, b) {
14
+ d.__proto__ = b;
15
+ } || function (d, b) {
16
+ for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
17
+ };
18
+ return extendStatics(d, b);
19
+ };
20
+ return function (d, b) {
21
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
22
+ extendStatics(d, b);
23
+ function __() {
24
+ this.constructor = d;
25
+ }
26
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
+ };
28
+ }();
8
29
  var __assign = void 0 && (void 0).__assign || function () {
9
30
  __assign = Object.assign || function (t) {
10
31
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -15,26 +36,22 @@ var __assign = void 0 && (void 0).__assign || function () {
15
36
  };
16
37
  return __assign.apply(this, arguments);
17
38
  };
18
- var SelectBox = exports.SelectBox = /** @class */function () {
39
+ var SelectBox = exports.SelectBox = /** @class */function (_super) {
40
+ __extends(SelectBox, _super);
19
41
  function SelectBox(element, config) {
20
42
  if (config === void 0) {
21
43
  config = {};
22
44
  }
23
45
  var _this = this;
24
46
  var _a, _b, _c, _d, _e, _f;
25
- this.targetSelect = null;
26
- this.isInitializing = true;
27
- this.lastValue = '';
28
- this.element = element;
29
- // 타겟 select 요소 찾기
30
- this.targetSelect = this.findTargetSelect(element);
47
+ _this = _super.call(this, element) || this;
31
48
  // HTML에서 옵션 파싱 (config.options가 없을 경우)
32
- var htmlOptions = this.parseOptionsFromHTML();
49
+ var htmlOptions = _this.parseOptionsFromHTML();
33
50
  // JavaScript 옵션을 DropdownOption 형식으로 변환
34
- var normalizedOptions = config.options ? this.normalizeOptions(config.options) : htmlOptions;
51
+ var normalizedOptions = config.options ? _this.normalizeOptions(config.options) : htmlOptions;
35
52
  var finalOptions = normalizedOptions;
36
53
  // HTML에서 속성 파싱
37
- var htmlAttributes = this.parseAttributesFromHTML();
54
+ var htmlAttributes = _this.parseAttributesFromHTML();
38
55
  // 기존 API를 새 API로 변환
39
56
  var unifiedConfig = __assign(__assign({}, config), {
40
57
  type: 'selectbox',
@@ -44,7 +61,7 @@ var SelectBox = exports.SelectBox = /** @class */function () {
44
61
  onSelectAll: config.onSelectAll,
45
62
  onComplete: config.onComplete,
46
63
  options: finalOptions,
47
- placeholder: config.placeholder || htmlAttributes.placeholder || '선택하세요',
64
+ placeholder: config.placeholder || htmlAttributes.placeholder || _this.defaultPlaceholder,
48
65
  value: (_d = (_c = config.value) !== null && _c !== void 0 ? _c : htmlAttributes.value) !== null && _d !== void 0 ? _d : config.multiple ? [] : '',
49
66
  disabled: (_f = (_e = config.disabled) !== null && _e !== void 0 ? _e : htmlAttributes.disabled) !== null && _f !== void 0 ? _f : false,
50
67
  size: config.size || htmlAttributes.size || 'md',
@@ -73,12 +90,17 @@ var SelectBox = exports.SelectBox = /** @class */function () {
73
90
  (_a = config.onChange) === null || _a === void 0 ? void 0 : _a.call(config, realValue);
74
91
  }
75
92
  });
76
- this.unifiedSelectBox = new _UnifiedBoxManager.UnifiedBoxManager(element, unifiedConfig);
77
- // 초기화 완료 (다음 이벤트 루프에서 실행)
78
- setTimeout(function () {
79
- _this.isInitializing = false;
80
- }, 0);
93
+ _this.unifiedSelectBox = new _unifiedBoxManager.UnifiedBoxManager(element, unifiedConfig);
94
+ _this.completeInitialization();
95
+ return _this;
81
96
  }
97
+ Object.defineProperty(SelectBox.prototype, "defaultPlaceholder", {
98
+ get: function () {
99
+ return '선택하세요';
100
+ },
101
+ enumerable: false,
102
+ configurable: true
103
+ });
82
104
  /**
83
105
  * JavaScript 옵션을 DropdownOption 형식으로 변환
84
106
  */
@@ -97,33 +119,11 @@ var SelectBox = exports.SelectBox = /** @class */function () {
97
119
  };
98
120
  });
99
121
  };
100
- /**
101
- * 타겟 select 요소 찾기
102
- */
103
- SelectBox.prototype.findTargetSelect = function (element) {
104
- // 1. 직접 select 태그인 경우
105
- if (element.tagName === 'SELECT') {
106
- return element;
107
- }
108
- // 2. 자식으로 select 태그가 있는 경우
109
- var selectChild = element.querySelector('select');
110
- if (selectChild) {
111
- return selectChild;
112
- }
113
- // 3. data-target 속성으로 지정된 경우
114
- var targetId = element.getAttribute('data-target');
115
- if (targetId) {
116
- var targetElement = document.getElementById(targetId);
117
- if (targetElement && targetElement.tagName === 'SELECT') {
118
- return targetElement;
119
- }
120
- }
121
- return null;
122
- };
123
122
  /**
124
123
  * HTML select에서 옵션 파싱
125
124
  */
126
125
  SelectBox.prototype.parseOptionsFromHTML = function () {
126
+ var _this = this;
127
127
  if (!this.targetSelect) return [];
128
128
  var options = [];
129
129
  var optionElements = this.targetSelect.querySelectorAll('option');
@@ -146,7 +146,7 @@ var SelectBox = exports.SelectBox = /** @class */function () {
146
146
  }
147
147
  options.push({
148
148
  id: optionId,
149
- label: optionElement.textContent || optionElement.value || '선택하세요',
149
+ label: optionElement.textContent || optionElement.value || _this.defaultPlaceholder,
150
150
  disabled: optionElement.disabled,
151
151
  // 원본 value 저장 (동기화를 위해)
152
152
  originalValue: optionValue
@@ -155,26 +155,10 @@ var SelectBox = exports.SelectBox = /** @class */function () {
155
155
  return options;
156
156
  };
157
157
  /**
158
- * HTML에서 속성 파싱
158
+ * 변환 - originalValue 매핑
159
159
  */
160
- SelectBox.prototype.parseAttributesFromHTML = function () {
161
- var attributes = {};
162
- if (this.targetSelect) {
163
- // select 요소의 속성들
164
- if (this.targetSelect.disabled) attributes.disabled = true;
165
- if (this.targetSelect.value) attributes.value = this.targetSelect.value;
166
- // placeholder는 첫 번째 빈 option에서 가져오기
167
- var firstOption = this.targetSelect.querySelector('option[value=""], option:not([value])');
168
- if (firstOption) {
169
- attributes.placeholder = firstOption.textContent || '선택하세요';
170
- }
171
- }
172
- // 컨테이너 요소의 data 속성들
173
- var containerAttributes = this.element.dataset;
174
- if (containerAttributes.placeholder) attributes.placeholder = containerAttributes.placeholder;
175
- if (containerAttributes.size) attributes.size = containerAttributes.size;
176
- if (containerAttributes.disabled === 'true') attributes.disabled = true;
177
- return attributes;
160
+ SelectBox.prototype.resolveValue = function (value) {
161
+ return this.getRealValueFromId(value);
178
162
  };
179
163
  /**
180
164
  * ID로부터 실제 HTML select의 value 값을 가져오기
@@ -198,47 +182,7 @@ var SelectBox = exports.SelectBox = /** @class */function () {
198
182
  // originalValue가 일치하는 옵션을 찾으면 그 ID를 반환, 없으면 value 그대로 반환
199
183
  return option ? option.id : value;
200
184
  };
201
- /**
202
- * 타겟 select와 동기화 (Single 모드)
203
- */
204
- SelectBox.prototype.syncWithTargetSelect = function (value) {
205
- if (this.targetSelect) {
206
- // originalValue가 있는 옵션을 찾아서 실제 value로 변환
207
- var realValue = this.getRealValueFromId(value);
208
- this.targetSelect.value = realValue;
209
- // select 요소의 change 이벤트 발생
210
- var event_1 = new Event('change', {
211
- bubbles: true
212
- });
213
- this.targetSelect.dispatchEvent(event_1);
214
- }
215
- };
216
- /**
217
- * 타겟 select와 동기화 (Multiple 모드)
218
- */
219
- SelectBox.prototype.syncWithTargetSelectMultiple = function (values) {
220
- var _this = this;
221
- if (this.targetSelect && this.targetSelect.multiple) {
222
- // 모든 옵션 선택 해제
223
- Array.from(this.targetSelect.options).forEach(function (option) {
224
- option.selected = false;
225
- });
226
- // 선택된 값들에 해당하는 옵션들 선택
227
- values.forEach(function (value) {
228
- var realValue = _this.getRealValueFromId(value);
229
- var option = _this.targetSelect.querySelector("option[value=\"".concat(realValue, "\"]"));
230
- if (option) {
231
- option.selected = true;
232
- }
233
- });
234
- // select 요소의 change 이벤트 발생
235
- var event_2 = new Event('change', {
236
- bubbles: true
237
- });
238
- this.targetSelect.dispatchEvent(event_2);
239
- }
240
- };
241
- // 기존 API 호환성 메서드들
185
+ // SelectBox 고유 API
242
186
  SelectBox.prototype.getValues = function () {
243
187
  var _this = this;
244
188
  var internalValue = this.unifiedSelectBox.getValues();
@@ -277,43 +221,9 @@ var SelectBox = exports.SelectBox = /** @class */function () {
277
221
  }
278
222
  }
279
223
  };
280
- SelectBox.prototype.getOptions = function () {
281
- return this.unifiedSelectBox.getOptions();
282
- };
283
- SelectBox.prototype.updateOptions = function (newOptions) {
284
- this.unifiedSelectBox.updateOptions(newOptions);
285
- };
286
- SelectBox.prototype.setDisabled = function (disabled) {
287
- this.unifiedSelectBox.setDisabled(disabled);
288
- };
289
- SelectBox.prototype.open = function () {
290
- this.unifiedSelectBox.open();
291
- };
292
- SelectBox.prototype.close = function () {
293
- this.unifiedSelectBox.close();
294
- };
295
- SelectBox.prototype.focus = function () {
296
- this.unifiedSelectBox.focus();
297
- };
298
- SelectBox.prototype.destroy = function () {
299
- this.unifiedSelectBox.destroy();
300
- };
301
- // Multiple 모드 전용 메서드들
302
- SelectBox.prototype.selectAll = function () {
303
- this.unifiedSelectBox.selectAll();
304
- };
305
- SelectBox.prototype.deselectAll = function () {
306
- this.unifiedSelectBox.deselectAll();
307
- };
308
224
  SelectBox.prototype.getSelectedCount = function () {
309
225
  var values = this.getValues();
310
226
  return values.length;
311
227
  };
312
- SelectBox.prototype.isMultiple = function () {
313
- return this.unifiedSelectBox.isMultiple();
314
- };
315
- SelectBox.prototype.toggleSelectAll = function () {
316
- this.unifiedSelectBox.toggleSelectAll();
317
- };
318
228
  return SelectBox;
319
- }();
229
+ }(_baseBox.BaseBox);
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.debounce = debounce;
7
+ /**
8
+ * 디바운스 유틸리티
9
+ * 마지막 호출 후 지정된 시간이 지나야 콜백이 실행됨
10
+ */
11
+ function debounce(fn, ms) {
12
+ var timer;
13
+ var debounced = function () {
14
+ var args = [];
15
+ for (var _i = 0; _i < arguments.length; _i++) {
16
+ args[_i] = arguments[_i];
17
+ }
18
+ if (timer !== undefined) {
19
+ clearTimeout(timer);
20
+ }
21
+ timer = window.setTimeout(function () {
22
+ timer = undefined;
23
+ fn.apply(void 0, args);
24
+ }, ms);
25
+ };
26
+ debounced.cancel = function () {
27
+ if (timer !== undefined) {
28
+ clearTimeout(timer);
29
+ timer = undefined;
30
+ }
31
+ };
32
+ return debounced;
33
+ }
@@ -23,18 +23,14 @@ var __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack
23
23
  }
24
24
  return to.concat(ar || Array.prototype.slice.call(from));
25
25
  };
26
- /**
27
- * 드롭다운 상태 관리 모델
28
- * Observer Pattern을 통한 상태 변경 알림
29
- */
30
26
  var DropdownModel = exports.DropdownModel = /** @class */function () {
31
- function DropdownModel(initialOptions, multiple) {
27
+ function DropdownModel(initialOptions, multiple, filterStrategy) {
32
28
  if (multiple === void 0) {
33
29
  multiple = false;
34
30
  }
35
31
  this.listeners = [];
36
- this.isComboBox = false; // ComboBox 여부 추가
37
32
  this.multiple = multiple;
33
+ this.filterStrategy = filterStrategy !== null && filterStrategy !== void 0 ? filterStrategy : DropdownModel.defaultFilterStrategy;
38
34
  this.state = {
39
35
  isOpen: false,
40
36
  focusedIndex: -1,
@@ -42,7 +38,7 @@ var DropdownModel = exports.DropdownModel = /** @class */function () {
42
38
  searchValue: '',
43
39
  showAllItems: false,
44
40
  options: __spreadArray([], initialOptions, true),
45
- filteredOptions: __spreadArray([], initialOptions, true)
41
+ filteredOptions: this.filterStrategy(__spreadArray([], initialOptions, true), '', false)
46
42
  };
47
43
  }
48
44
  /**
@@ -69,12 +65,6 @@ var DropdownModel = exports.DropdownModel = /** @class */function () {
69
65
  listener.onStateChange(__assign({}, _this.state), changedFields);
70
66
  });
71
67
  };
72
- /**
73
- * ComboBox 타입 설정
74
- */
75
- DropdownModel.prototype.setComboBoxMode = function (isComboBox) {
76
- this.isComboBox = isComboBox;
77
- };
78
68
  /**
79
69
  * 드롭다운 열기/닫기
80
70
  */
@@ -170,24 +160,7 @@ var DropdownModel = exports.DropdownModel = /** @class */function () {
170
160
  * 필터링된 옵션 업데이트
171
161
  */
172
162
  DropdownModel.prototype.updateFilteredOptions = function () {
173
- // SelectBox 모드일 때는 항상 모든 옵션 표시
174
- if (!this.isComboBox) {
175
- this.state.filteredOptions = __spreadArray([], this.state.options, true);
176
- return;
177
- }
178
- // ComboBox 모드일 때만 검색 및 필터링 적용
179
- if (!this.state.showAllItems && !this.state.searchValue) {
180
- this.state.filteredOptions = [];
181
- return;
182
- }
183
- var filtered = __spreadArray([], this.state.options, true);
184
- if (this.state.searchValue) {
185
- var searchLower_1 = this.state.searchValue.toLowerCase();
186
- filtered = filtered.filter(function (option) {
187
- return option.label.toLowerCase().includes(searchLower_1);
188
- });
189
- }
190
- this.state.filteredOptions = filtered;
163
+ this.state.filteredOptions = this.filterStrategy(this.state.options, this.state.searchValue, this.state.showAllItems);
191
164
  };
192
165
  /**
193
166
  * 현재 상태 반환 (읽기 전용)
@@ -216,12 +189,6 @@ var DropdownModel = exports.DropdownModel = /** @class */function () {
216
189
  DropdownModel.prototype.isOptionSelected = function (optionId) {
217
190
  return this.state.selectedValues.includes(optionId);
218
191
  };
219
- /**
220
- * 전체 선택 상태인지 확인 (isAllItemsSelected와 동일)
221
- */
222
- DropdownModel.prototype.isAllSelected = function () {
223
- return this.isAllItemsSelected();
224
- };
225
192
  /**
226
193
  * 상태 리셋
227
194
  */
@@ -309,32 +276,6 @@ var DropdownModel = exports.DropdownModel = /** @class */function () {
309
276
  DropdownModel.prototype.hasNoResults = function () {
310
277
  return this.state.filteredOptions.length === 0 && (this.state.showAllItems || Boolean(this.state.searchValue));
311
278
  };
312
- /**
313
- * 상태 동기화를 위한 외부 접근 메서드들 (DropdownUtils에서 이동)
314
- */
315
- DropdownModel.prototype.syncSetIsOpen = function (isOpen) {
316
- this.state.isOpen = isOpen;
317
- this.notifyListeners(['isOpen']);
318
- };
319
- DropdownModel.prototype.syncSetFocusedIndex = function (index) {
320
- this.state.focusedIndex = index;
321
- this.notifyListeners(['focusedIndex']);
322
- };
323
- DropdownModel.prototype.syncGetIsOpen = function () {
324
- return this.state.isOpen;
325
- };
326
- DropdownModel.prototype.syncGetFocusedIndex = function () {
327
- return this.state.focusedIndex;
328
- };
329
- DropdownModel.prototype.syncGetSelectedValues = function () {
330
- return __spreadArray([], this.state.selectedValues, true);
331
- };
332
- /**
333
- * 선택값 업데이트 (SelectBoxModel에서 이동)
334
- */
335
- DropdownModel.prototype.updateSelectedValues = function (values) {
336
- this.setSelectedValues(values);
337
- };
338
279
  /**
339
280
  * 값 설정 (API 호환성)
340
281
  */
@@ -364,5 +305,22 @@ var DropdownModel = exports.DropdownModel = /** @class */function () {
364
305
  listeners: this.listeners.length
365
306
  };
366
307
  };
308
+ /** SelectBox 기본 전략: 항상 모든 옵션 표시 */
309
+ DropdownModel.defaultFilterStrategy = function (options) {
310
+ return __spreadArray([], options, true);
311
+ };
312
+ /** ComboBox 전략: 검색어/전체보기 기반 필터링 */
313
+ DropdownModel.comboBoxFilterStrategy = function (options, searchValue, showAllItems) {
314
+ if (!showAllItems && !searchValue) {
315
+ return [];
316
+ }
317
+ if (searchValue) {
318
+ var searchLower_1 = searchValue.toLowerCase();
319
+ return options.filter(function (option) {
320
+ return option.label.toLowerCase().includes(searchLower_1);
321
+ });
322
+ }
323
+ return __spreadArray([], options, true);
324
+ };
367
325
  return DropdownModel;
368
326
  }();