@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.
- package/dist/cjs/assets/scripts/baseBox.js +148 -0
- package/dist/cjs/assets/scripts/comboBox.js +44 -136
- package/dist/cjs/assets/scripts/datePicker.js +1 -1
- package/dist/cjs/assets/scripts/featuredIcon.js +1 -1
- package/dist/cjs/assets/scripts/fileInput/const/classNames.js +1 -5
- package/dist/cjs/assets/scripts/fileInput/fileInput.js +79 -0
- package/dist/cjs/assets/scripts/fileInput/fileInputModel.js +61 -0
- package/dist/cjs/assets/scripts/fileInput/fileInputView.js +147 -0
- package/dist/cjs/assets/scripts/fileInput/index.js +3 -3
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +1 -1
- package/dist/cjs/assets/scripts/selectBox.js +46 -136
- package/dist/cjs/assets/scripts/utils/debounce.js +33 -0
- package/dist/cjs/assets/scripts/utils/unifiedBox/{DropdownModel.js → dropdownModel.js} +21 -63
- package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +11 -43
- package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxManager.js → unifiedBoxManager.js} +59 -101
- package/dist/cjs/src/components/badge/Badge.js +1 -1
- package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +1 -1
- package/dist/cjs/src/components/button/Button.js +13 -5
- package/dist/cjs/src/components/button/ButtonGroup.js +1 -2
- package/dist/cjs/src/components/carousel/CarouselArrow.js +2 -2
- package/dist/cjs/src/components/carousel/CarouselNumberGroup.js +4 -5
- package/dist/cjs/src/components/checkbox/CheckboxInput.js +1 -1
- package/dist/cjs/src/components/combobox/ComboBox.js +54 -43
- package/dist/cjs/src/components/date-picker/CustomInput.js +3 -1
- package/dist/cjs/src/components/date-picker/DatePicker.js +85 -65
- package/dist/cjs/src/components/date-picker/RangeDatePicker.js +46 -37
- package/dist/cjs/src/components/divider/Divider.js +1 -1
- package/dist/cjs/src/components/dot/Dot.js +1 -1
- package/dist/cjs/src/components/dropdown/Dropdown.js +3 -2
- package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +1 -1
- package/dist/cjs/src/components/file-input/FileInput.js +3 -3
- package/dist/cjs/src/components/image-file-input/ImageFileInput.js +5 -2
- package/dist/cjs/src/components/input/NumberInput.js +1 -1
- package/dist/cjs/src/components/notification/index.js +11 -11
- package/dist/cjs/src/components/pagination/NavButton.js +3 -1
- package/dist/cjs/src/components/pagination/Pagination.js +65 -67
- package/dist/cjs/src/components/progress-bar/ProgressBar.js +13 -9
- package/dist/cjs/src/components/progress-bar/components/SegmentBar.js +1 -1
- package/dist/cjs/src/components/progress-bar/components/SegmentLabels.js +1 -1
- package/dist/cjs/src/components/progress-bar/hooks/useProgressBar.js +3 -2
- package/dist/cjs/src/components/progress-bar/utils.js +3 -2
- package/dist/cjs/src/components/progress-circle/ProgressCircle.js +41 -41
- package/dist/cjs/src/components/select/Select.js +2 -2
- package/dist/cjs/src/components/selectbox/SelectBox.js +57 -45
- package/dist/cjs/src/components/spinner/Spinner.js +5 -4
- package/dist/cjs/src/components/spinner/index.js +0 -11
- package/dist/cjs/src/components/switch/Switch.js +15 -10
- package/dist/cjs/src/components/tab/HorizontalTab.js +5 -3
- package/dist/cjs/src/components/tab/TabButton.js +1 -1
- package/dist/cjs/src/components/toggle/Toggle.js +13 -15
- package/dist/cjs/src/components/tooltip/Tooltip.js +28 -13
- package/dist/cjs/src/constant/index.js +8 -8
- package/dist/cjs/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
- package/dist/cjs/src/hooks/dropdown/useScrollLock.js +26 -19
- package/dist/cjs/src/hooks/index.js +4 -4
- package/dist/cjs/src/utils/date-picker.js +14 -7
- package/dist/cjs/src/utils/dropdown/dropdownUtils.js +6 -8
- package/dist/esm/assets/scripts/baseBox.js +143 -0
- package/dist/esm/assets/scripts/comboBox.js +44 -136
- package/dist/esm/assets/scripts/datePicker.js +1 -1
- package/dist/esm/assets/scripts/featuredIcon.js +1 -1
- package/dist/esm/assets/scripts/fileInput/const/classNames.js +0 -3
- package/dist/esm/assets/scripts/fileInput/fileInput.js +74 -0
- package/dist/esm/assets/scripts/fileInput/fileInputModel.js +56 -0
- package/dist/esm/assets/scripts/fileInput/fileInputView.js +142 -0
- package/dist/esm/assets/scripts/fileInput/index.js +2 -2
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +2 -2
- package/dist/esm/assets/scripts/selectBox.js +46 -136
- package/dist/esm/assets/scripts/utils/debounce.js +27 -0
- package/dist/esm/assets/scripts/utils/unifiedBox/{DropdownModel.js → dropdownModel.js} +23 -66
- package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +11 -43
- package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxManager.js → unifiedBoxManager.js} +53 -95
- package/dist/esm/src/components/badge/Badge.js +4 -3
- package/dist/esm/src/components/badge/BadgeGroup.js +3 -2
- package/dist/esm/src/components/badge/utils.js +3 -2
- package/dist/esm/src/components/breadcrumb/BreadCrumb.js +4 -3
- package/dist/esm/src/components/button/Button.js +13 -5
- package/dist/esm/src/components/button/ButtonCloseX.js +3 -2
- package/dist/esm/src/components/button/ButtonGroup.js +3 -2
- package/dist/esm/src/components/carousel/CarouselArrow.js +2 -2
- package/dist/esm/src/components/carousel/CarouselNumberGroup.js +4 -5
- package/dist/esm/src/components/checkbox/CheckboxInput.js +1 -1
- package/dist/esm/src/components/combobox/ComboBox.js +58 -46
- package/dist/esm/src/components/date-picker/CustomInput.js +6 -3
- package/dist/esm/src/components/date-picker/DatePicker.js +88 -67
- package/dist/esm/src/components/date-picker/RangeDatePicker.js +49 -39
- package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +3 -2
- package/dist/esm/src/components/divider/Divider.js +1 -1
- package/dist/esm/src/components/dot/Dot.js +4 -3
- package/dist/esm/src/components/dropdown/Dropdown.js +3 -2
- package/dist/esm/src/components/empty-state/EmptyState.js +3 -2
- package/dist/esm/src/components/featured-icon/FeaturedIcon.js +4 -3
- package/dist/esm/src/components/file-input/FileInput.js +3 -3
- package/dist/esm/src/components/image-file-input/ImageFileInput.js +6 -3
- package/dist/esm/src/components/input/InputBase.js +3 -2
- package/dist/esm/src/components/input/NumberInput.js +1 -1
- package/dist/esm/src/components/modal/Modal.js +3 -2
- package/dist/esm/src/components/notification/FloatingNotification.js +3 -2
- package/dist/esm/src/components/notification/FullWidthNotification.js +3 -2
- package/dist/esm/src/components/notification/MessageNotification.js +3 -2
- package/dist/esm/src/components/notification/Notification.js +3 -2
- package/dist/esm/src/components/notification/index.js +2 -2
- package/dist/esm/src/components/pagination/NavButton.js +3 -1
- package/dist/esm/src/components/pagination/Pagination.js +65 -67
- package/dist/esm/src/components/progress-bar/ProgressBar.js +13 -9
- package/dist/esm/src/components/progress-bar/components/SegmentBar.js +1 -1
- package/dist/esm/src/components/progress-bar/components/SegmentLabels.js +5 -4
- package/dist/esm/src/components/progress-bar/hooks/useProgressBar.js +3 -2
- package/dist/esm/src/components/progress-bar/utils.js +7 -5
- package/dist/esm/src/components/progress-circle/ProgressCircle.js +41 -41
- package/dist/esm/src/components/select/Select.js +2 -2
- package/dist/esm/src/components/select-dropdown/SelectDropdown.js +3 -2
- package/dist/esm/src/components/selectbox/SelectBox.js +61 -48
- package/dist/esm/src/components/spinner/Spinner.js +5 -4
- package/dist/esm/src/components/spinner/index.js +1 -2
- package/dist/esm/src/components/switch/Switch.js +19 -13
- package/dist/esm/src/components/tab/HorizontalTab.js +9 -6
- package/dist/esm/src/components/tab/TabButton.js +4 -3
- package/dist/esm/src/components/tag/Tag.js +3 -2
- package/dist/esm/src/components/toggle/Toggle.js +14 -16
- package/dist/esm/src/components/tooltip/Tooltip.js +29 -14
- package/dist/esm/src/constant/index.js +2 -2
- package/dist/esm/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
- package/dist/esm/src/hooks/dropdown/useScrollLock.js +26 -19
- package/dist/esm/src/hooks/index.js +3 -3
- package/dist/esm/src/utils/date-picker.js +14 -7
- package/dist/esm/src/utils/dropdown/dropdownUtils.js +6 -8
- package/dist/temp/assets/scripts/baseBox.d.ts +55 -0
- package/dist/temp/assets/scripts/baseBox.js +144 -0
- package/dist/temp/assets/scripts/comboBox.d.ts +60 -0
- package/dist/temp/assets/scripts/comboBox.js +163 -0
- package/dist/temp/assets/scripts/datePicker.d.ts +86 -0
- package/dist/temp/assets/scripts/datePicker.js +706 -0
- package/dist/temp/assets/scripts/featuredIcon.d.ts +22 -0
- package/dist/temp/assets/scripts/featuredIcon.js +86 -0
- package/dist/temp/assets/scripts/fileInput/const/classNames.d.ts +15 -0
- package/dist/temp/assets/scripts/fileInput/const/classNames.js +20 -0
- package/dist/temp/assets/scripts/fileInput/const/index.d.ts +2 -0
- package/dist/temp/assets/scripts/fileInput/const/index.js +2 -0
- package/dist/temp/assets/scripts/fileInput/const/types.d.ts +88 -0
- package/dist/temp/assets/scripts/fileInput/const/types.js +7 -0
- package/dist/temp/assets/scripts/fileInput/fileInput.d.ts +13 -0
- package/dist/temp/assets/scripts/fileInput/fileInput.js +75 -0
- package/dist/temp/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
- package/dist/temp/assets/scripts/fileInput/fileInputModel.js +45 -0
- package/dist/temp/assets/scripts/fileInput/fileInputView.d.ts +42 -0
- package/dist/temp/assets/scripts/fileInput/fileInputView.js +142 -0
- package/dist/temp/assets/scripts/fileInput/index.d.ts +3 -0
- package/dist/temp/assets/scripts/fileInput/index.js +9 -0
- package/dist/{types/assets/scripts/fileInput/FileInput.d.ts → temp/assets/scripts/imageFileInput/ImageFileInput.d.ts} +6 -10
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInput.js +186 -0
- package/dist/{types/assets/scripts/fileInput/FileInputModel.d.ts → temp/assets/scripts/imageFileInput/ImageFileInputModel.d.ts} +8 -5
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInputModel.js +234 -0
- package/dist/{types/assets/scripts/fileInput/FileInputView.d.ts → temp/assets/scripts/imageFileInput/ImageFileInputView.d.ts} +27 -25
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInputView.js +348 -0
- package/dist/temp/assets/scripts/imageFileInput/const/classNames.d.ts +19 -0
- package/dist/temp/assets/scripts/imageFileInput/const/classNames.js +24 -0
- package/dist/temp/assets/scripts/imageFileInput/const/index.d.ts +2 -0
- package/dist/temp/assets/scripts/imageFileInput/const/index.js +2 -0
- package/dist/temp/assets/scripts/imageFileInput/const/types.d.ts +125 -0
- package/dist/temp/assets/scripts/imageFileInput/const/types.js +7 -0
- package/dist/temp/assets/scripts/imageFileInput/index.d.ts +3 -0
- package/dist/temp/assets/scripts/imageFileInput/index.js +9 -0
- package/dist/temp/assets/scripts/index.d.ts +32 -0
- package/dist/temp/assets/scripts/index.js +28 -0
- package/dist/temp/assets/scripts/modal/Modal.d.ts +27 -0
- package/dist/temp/assets/scripts/modal/Modal.js +106 -0
- package/dist/temp/assets/scripts/modal/ModalActions.d.ts +18 -0
- package/dist/temp/assets/scripts/modal/ModalActions.js +125 -0
- package/dist/temp/assets/scripts/modal/ModalContent.d.ts +13 -0
- package/dist/temp/assets/scripts/modal/ModalContent.js +41 -0
- package/dist/temp/assets/scripts/modal/ModalHeader.d.ts +15 -0
- package/dist/temp/assets/scripts/modal/ModalHeader.js +102 -0
- package/dist/temp/assets/scripts/modal/const/classNames.d.ts +22 -0
- package/dist/temp/assets/scripts/modal/const/classNames.js +23 -0
- package/dist/temp/assets/scripts/modal/const/index.d.ts +2 -0
- package/dist/temp/assets/scripts/modal/const/index.js +2 -0
- package/dist/temp/assets/scripts/modal/const/types.d.ts +61 -0
- package/dist/temp/assets/scripts/modal/const/types.js +1 -0
- package/dist/temp/assets/scripts/modal/index.d.ts +7 -0
- package/dist/temp/assets/scripts/modal/index.js +15 -0
- package/dist/temp/assets/scripts/modal/utils/contentUtils.d.ts +10 -0
- package/dist/temp/assets/scripts/modal/utils/contentUtils.js +29 -0
- package/dist/temp/assets/scripts/notification/FloatingNotification.d.ts +24 -0
- package/dist/temp/assets/scripts/notification/FloatingNotification.js +154 -0
- package/dist/temp/assets/scripts/notification/FullWidthNotification.d.ts +21 -0
- package/dist/temp/assets/scripts/notification/FullWidthNotification.js +94 -0
- package/dist/temp/assets/scripts/notification/MessageNotification.d.ts +22 -0
- package/dist/temp/assets/scripts/notification/MessageNotification.js +123 -0
- package/dist/temp/assets/scripts/notification/Notification.d.ts +21 -0
- package/dist/temp/assets/scripts/notification/Notification.js +108 -0
- package/dist/temp/assets/scripts/notification/const/classNames.d.ts +43 -0
- package/dist/temp/assets/scripts/notification/const/classNames.js +44 -0
- package/dist/temp/assets/scripts/notification/const/icons.d.ts +25 -0
- package/dist/temp/assets/scripts/notification/const/icons.js +39 -0
- package/dist/temp/assets/scripts/notification/const/index.d.ts +5 -0
- package/dist/temp/assets/scripts/notification/const/index.js +4 -0
- package/dist/temp/assets/scripts/notification/const/sizes.d.ts +32 -0
- package/dist/temp/assets/scripts/notification/const/sizes.js +40 -0
- package/dist/temp/assets/scripts/notification/const/types.d.ts +19 -0
- package/dist/temp/assets/scripts/notification/const/types.js +8 -0
- package/dist/temp/assets/scripts/notification/index.d.ts +7 -0
- package/dist/temp/assets/scripts/notification/index.js +11 -0
- package/dist/temp/assets/scripts/notification/utils.d.ts +8 -0
- package/dist/temp/assets/scripts/notification/utils.js +84 -0
- package/dist/temp/assets/scripts/progress-bar/ProgressBar.d.ts +67 -0
- package/dist/temp/assets/scripts/progress-bar/ProgressBar.js +258 -0
- package/dist/temp/assets/scripts/progress-bar/index.d.ts +1 -0
- package/dist/temp/assets/scripts/progress-bar/index.js +1 -0
- package/dist/temp/assets/scripts/selectBox.d.ts +50 -0
- package/dist/temp/assets/scripts/selectBox.js +194 -0
- package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +5 -0
- package/dist/temp/assets/scripts/shared/ButtonCloseX.js +32 -0
- package/dist/temp/assets/scripts/slider.d.ts +41 -0
- package/dist/temp/assets/scripts/slider.js +331 -0
- package/dist/temp/assets/scripts/tab.d.ts +7 -0
- package/dist/temp/assets/scripts/tab.js +35 -0
- package/dist/temp/assets/scripts/tag/Tag.d.ts +27 -0
- package/dist/temp/assets/scripts/tag/Tag.js +267 -0
- package/dist/temp/assets/scripts/tag/const/classNames.d.ts +11 -0
- package/dist/temp/assets/scripts/tag/const/classNames.js +12 -0
- package/dist/temp/assets/scripts/tag/const/index.d.ts +3 -0
- package/dist/temp/assets/scripts/tag/const/index.js +3 -0
- package/dist/temp/assets/scripts/tag/const/sizes.d.ts +7 -0
- package/dist/temp/assets/scripts/tag/const/sizes.js +7 -0
- package/dist/temp/assets/scripts/tag/const/types.d.ts +33 -0
- package/dist/temp/assets/scripts/tag/const/types.js +1 -0
- package/dist/temp/assets/scripts/tag/index.d.ts +3 -0
- package/dist/temp/assets/scripts/tag/index.js +9 -0
- package/dist/temp/assets/scripts/tooltip/Tooltip.d.ts +54 -0
- package/dist/temp/assets/scripts/tooltip/Tooltip.js +360 -0
- package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.d.ts +21 -0
- package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.js +74 -0
- package/dist/temp/assets/scripts/tooltip/const/classNames.d.ts +17 -0
- package/dist/temp/assets/scripts/tooltip/const/classNames.js +23 -0
- package/dist/temp/assets/scripts/tooltip/const/constants.d.ts +33 -0
- package/dist/temp/assets/scripts/tooltip/const/constants.js +46 -0
- package/dist/temp/assets/scripts/tooltip/const/icons.d.ts +4 -0
- package/dist/temp/assets/scripts/tooltip/const/icons.js +9 -0
- package/dist/temp/assets/scripts/tooltip/const/index.d.ts +5 -0
- package/dist/temp/assets/scripts/tooltip/const/index.js +4 -0
- package/dist/temp/assets/scripts/tooltip/const/templates.d.ts +16 -0
- package/dist/temp/assets/scripts/tooltip/const/templates.js +30 -0
- package/dist/temp/assets/scripts/tooltip/const/types.d.ts +14 -0
- package/dist/temp/assets/scripts/tooltip/const/types.js +1 -0
- package/dist/temp/assets/scripts/tooltip/index.d.ts +6 -0
- package/dist/temp/assets/scripts/tooltip/index.js +10 -0
- package/dist/temp/assets/scripts/tooltip/utils.d.ts +2 -0
- package/dist/temp/assets/scripts/tooltip/utils.js +35 -0
- package/dist/temp/assets/scripts/utils/debounce.d.ts +8 -0
- package/dist/temp/assets/scripts/utils/debounce.js +27 -0
- package/dist/{types/assets/scripts/utils/unifiedBox/DOMRenderer.d.ts → temp/assets/scripts/utils/unifiedBox/domRenderer.d.ts} +0 -1
- package/dist/temp/assets/scripts/utils/unifiedBox/domRenderer.js +376 -0
- package/dist/{types/assets/scripts/utils/unifiedBox/DropdownModel.d.ts → temp/assets/scripts/utils/unifiedBox/dropdownModel.d.ts} +7 -23
- package/dist/temp/assets/scripts/utils/unifiedBox/dropdownModel.js +311 -0
- package/dist/{types/assets/scripts/utils/unifiedBox/UnifiedBoxController.d.ts → temp/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts} +3 -18
- package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxController.js +627 -0
- package/dist/{types/assets/scripts/utils/unifiedBox/UnifiedBoxManager.d.ts → temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts} +4 -8
- package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +559 -0
- package/dist/temp/constant/color.d.ts +36 -0
- package/dist/temp/constant/color.js +34 -0
- package/dist/temp/constant/size.d.ts +1 -0
- package/dist/temp/constant/size.js +1 -0
- package/dist/temp/index.d.ts +29 -0
- package/dist/temp/index.js +29 -0
- package/dist/temp/src/components/badge/Badge.d.ts +18 -0
- package/dist/temp/src/components/badge/Badge.js +23 -0
- package/dist/temp/src/components/badge/BadgeGroup.d.ts +18 -0
- package/dist/temp/src/components/badge/BadgeGroup.js +36 -0
- package/dist/temp/src/components/badge/index.d.ts +2 -0
- package/dist/temp/src/components/badge/index.js +2 -0
- package/dist/temp/src/components/badge/utils.d.ts +8 -0
- package/dist/temp/src/components/badge/utils.js +17 -0
- package/dist/temp/src/components/breadcrumb/BreadCrumb.d.ts +11 -0
- package/dist/temp/src/components/breadcrumb/BreadCrumb.js +33 -0
- package/dist/temp/src/components/breadcrumb/index.d.ts +1 -0
- package/dist/temp/src/components/breadcrumb/index.js +1 -0
- package/dist/temp/src/components/button/Button.d.ts +35 -0
- package/dist/temp/src/components/button/Button.js +69 -0
- package/dist/temp/src/components/button/ButtonCloseX.d.ts +10 -0
- package/dist/temp/src/components/button/ButtonCloseX.js +25 -0
- package/dist/temp/src/components/button/ButtonGroup.d.ts +311 -0
- package/dist/temp/src/components/button/ButtonGroup.js +72 -0
- package/dist/temp/src/components/button/ButtonStepper.d.ts +9 -0
- package/dist/temp/src/components/button/ButtonStepper.js +6 -0
- package/dist/temp/src/components/button/index.d.ts +4 -0
- package/dist/temp/src/components/button/index.js +4 -0
- package/dist/temp/src/components/carousel/CarouselArrow.d.ts +8 -0
- package/dist/temp/src/components/carousel/CarouselArrow.js +24 -0
- package/dist/temp/src/components/carousel/CarouselNumberGroup.d.ts +8 -0
- package/dist/temp/src/components/carousel/CarouselNumberGroup.js +24 -0
- package/dist/temp/src/components/carousel/index.d.ts +2 -0
- package/dist/temp/src/components/carousel/index.js +2 -0
- package/dist/temp/src/components/checkbox/Checkbox.d.ts +7 -0
- package/dist/temp/src/components/checkbox/Checkbox.js +30 -0
- package/dist/temp/src/components/checkbox/CheckboxInput.d.ts +9 -0
- package/dist/temp/src/components/checkbox/CheckboxInput.js +46 -0
- package/dist/temp/src/components/checkbox/index.d.ts +2 -0
- package/dist/temp/src/components/checkbox/index.js +2 -0
- package/dist/temp/src/components/combobox/ComboBox.d.ts +28 -0
- package/dist/temp/src/components/combobox/ComboBox.js +199 -0
- package/dist/temp/src/components/combobox/index.d.ts +2 -0
- package/dist/temp/src/components/combobox/index.js +1 -0
- package/dist/temp/src/components/date-picker/CustomInput.d.ts +10 -0
- package/dist/temp/src/components/date-picker/CustomInput.js +34 -0
- package/dist/temp/src/components/date-picker/DatePicker.d.ts +24 -0
- package/dist/temp/src/components/date-picker/DatePicker.js +326 -0
- package/dist/temp/src/components/date-picker/RangeDatePicker.d.ts +26 -0
- package/dist/temp/src/components/date-picker/RangeDatePicker.js +117 -0
- package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.d.ts +71 -0
- package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.js +55 -0
- package/dist/temp/src/components/date-picker/index.d.ts +4 -0
- package/dist/temp/src/components/date-picker/index.js +4 -0
- package/dist/temp/src/components/date-picker/utils.d.ts +2 -0
- package/dist/temp/src/components/date-picker/utils.js +8 -0
- package/dist/temp/src/components/divider/Divider.d.ts +15 -0
- package/dist/temp/src/components/divider/Divider.js +23 -0
- package/dist/temp/src/components/divider/index.d.ts +1 -0
- package/dist/temp/src/components/divider/index.js +1 -0
- package/dist/temp/src/components/dot/Dot.d.ts +24 -0
- package/dist/temp/src/components/dot/Dot.js +31 -0
- package/dist/temp/src/components/dot/index.d.ts +1 -0
- package/dist/temp/src/components/dot/index.js +1 -0
- package/dist/temp/src/components/dropdown/Dropdown.d.ts +52 -0
- package/dist/temp/src/components/dropdown/Dropdown.js +90 -0
- package/dist/temp/src/components/dropdown/index.d.ts +1 -0
- package/dist/temp/src/components/dropdown/index.js +1 -0
- package/dist/temp/src/components/empty-state/EmptyState.d.ts +14 -0
- package/dist/temp/src/components/empty-state/EmptyState.js +33 -0
- package/dist/temp/src/components/empty-state/index.d.ts +1 -0
- package/dist/temp/src/components/empty-state/index.js +1 -0
- package/dist/temp/src/components/featured-icon/FeaturedIcon.d.ts +15 -0
- package/dist/temp/src/components/featured-icon/FeaturedIcon.js +36 -0
- package/dist/temp/src/components/featured-icon/index.d.ts +1 -0
- package/dist/temp/src/components/featured-icon/index.js +1 -0
- package/dist/temp/src/components/file-input/FileInput.d.ts +61 -0
- package/dist/temp/src/components/file-input/FileInput.js +123 -0
- package/dist/temp/src/components/file-input/index.d.ts +1 -0
- package/dist/temp/src/components/file-input/index.js +1 -0
- package/dist/temp/src/components/image-file-input/ImageFileInput.d.ts +70 -0
- package/dist/temp/src/components/image-file-input/ImageFileInput.js +124 -0
- package/dist/temp/src/components/image-file-input/components/ImagePreview.d.ts +5 -0
- package/dist/temp/src/components/image-file-input/components/ImagePreview.js +18 -0
- package/dist/temp/src/components/image-file-input/index.d.ts +1 -0
- package/dist/temp/src/components/image-file-input/index.js +1 -0
- package/dist/temp/src/components/index.d.ts +33 -0
- package/dist/temp/src/components/index.js +32 -0
- package/dist/temp/src/components/input/InputBase.d.ts +54 -0
- package/dist/temp/src/components/input/InputBase.js +121 -0
- package/dist/temp/src/components/input/NumberInput.d.ts +9 -0
- package/dist/temp/src/components/input/NumberInput.js +93 -0
- package/dist/temp/src/components/input/PasswordInput.d.ts +2 -0
- package/dist/temp/src/components/input/PasswordInput.js +51 -0
- package/dist/temp/src/components/input/Textarea.d.ts +14 -0
- package/dist/temp/src/components/input/Textarea.js +60 -0
- package/dist/temp/src/components/input/index.d.ts +4 -0
- package/dist/temp/src/components/input/index.js +4 -0
- package/dist/temp/src/components/modal/Modal.d.ts +79 -0
- package/dist/temp/src/components/modal/Modal.js +101 -0
- package/dist/temp/src/components/modal/index.d.ts +1 -0
- package/dist/temp/src/components/modal/index.js +1 -0
- package/dist/temp/src/components/notification/FloatingNotification.d.ts +37 -0
- package/dist/temp/src/components/notification/FloatingNotification.js +79 -0
- package/dist/temp/src/components/notification/FullWidthNotification.d.ts +46 -0
- package/dist/temp/src/components/notification/FullWidthNotification.js +79 -0
- package/dist/temp/src/components/notification/MessageNotification.d.ts +41 -0
- package/dist/temp/src/components/notification/MessageNotification.js +57 -0
- package/dist/temp/src/components/notification/Notification.d.ts +72 -0
- package/dist/temp/src/components/notification/Notification.js +42 -0
- package/dist/temp/src/components/notification/index.d.ts +4 -0
- package/dist/temp/src/components/notification/index.js +4 -0
- package/dist/temp/src/components/pagination/NavButton.d.ts +31 -0
- package/dist/temp/src/components/pagination/NavButton.js +66 -0
- package/dist/temp/src/components/pagination/Pagination.d.ts +11 -0
- package/dist/temp/src/components/pagination/Pagination.js +93 -0
- package/dist/temp/src/components/pagination/index.d.ts +2 -0
- package/dist/temp/src/components/pagination/index.js +2 -0
- package/dist/temp/src/components/progress-bar/ProgressBar.d.ts +2 -0
- package/dist/temp/src/components/progress-bar/ProgressBar.js +31 -0
- package/dist/temp/src/components/progress-bar/components/SegmentBar.d.ts +7 -0
- package/dist/temp/src/components/progress-bar/components/SegmentBar.js +10 -0
- package/dist/temp/src/components/progress-bar/components/SegmentLabels.d.ts +15 -0
- package/dist/temp/src/components/progress-bar/components/SegmentLabels.js +45 -0
- package/dist/temp/src/components/progress-bar/hooks/useProgressBar.d.ts +13 -0
- package/dist/temp/src/components/progress-bar/hooks/useProgressBar.js +96 -0
- package/dist/temp/src/components/progress-bar/index.d.ts +2 -0
- package/dist/temp/src/components/progress-bar/index.js +2 -0
- package/dist/temp/src/components/progress-bar/types.d.ts +15 -0
- package/dist/temp/src/components/progress-bar/types.js +1 -0
- package/dist/temp/src/components/progress-bar/utils.d.ts +13 -0
- package/dist/temp/src/components/progress-bar/utils.js +26 -0
- package/dist/temp/src/components/progress-circle/ProgressCircle.d.ts +7 -0
- package/dist/temp/src/components/progress-circle/ProgressCircle.js +21 -0
- package/dist/temp/src/components/progress-circle/index.d.ts +1 -0
- package/dist/temp/src/components/progress-circle/index.js +1 -0
- package/dist/temp/src/components/radio/Radio.d.ts +7 -0
- package/dist/temp/src/components/radio/Radio.js +30 -0
- package/dist/temp/src/components/radio/RadioInput.d.ts +8 -0
- package/dist/temp/src/components/radio/RadioInput.js +29 -0
- package/dist/temp/src/components/radio/index.d.ts +2 -0
- package/dist/temp/src/components/radio/index.js +2 -0
- package/dist/temp/src/components/select/Select.d.ts +16 -0
- package/dist/temp/src/components/select/Select.js +33 -0
- package/dist/temp/src/components/select/index.d.ts +1 -0
- package/dist/temp/src/components/select/index.js +1 -0
- package/dist/temp/src/components/select-dropdown/SelectDropdown.d.ts +29 -0
- package/dist/temp/src/components/select-dropdown/SelectDropdown.js +49 -0
- package/dist/temp/src/components/select-dropdown/index.d.ts +1 -0
- package/dist/temp/src/components/select-dropdown/index.js +1 -0
- package/dist/temp/src/components/selectbox/SelectBox.d.ts +27 -0
- package/dist/temp/src/components/selectbox/SelectBox.js +163 -0
- package/dist/temp/src/components/selectbox/index.d.ts +1 -0
- package/dist/temp/src/components/selectbox/index.js +1 -0
- package/dist/temp/src/components/shared/hintText/HintText.d.ts +7 -0
- package/dist/temp/src/components/shared/hintText/HintText.js +28 -0
- package/dist/temp/src/components/shared/hintText/index.d.ts +1 -0
- package/dist/temp/src/components/shared/hintText/index.js +1 -0
- package/dist/temp/src/components/shared/index.d.ts +2 -0
- package/dist/temp/src/components/shared/index.js +2 -0
- package/dist/temp/src/components/shared/label/Label.d.ts +7 -0
- package/dist/temp/src/components/shared/label/Label.js +28 -0
- package/dist/temp/src/components/shared/label/index.d.ts +1 -0
- package/dist/temp/src/components/shared/label/index.js +1 -0
- package/dist/temp/src/components/slider/Slider.d.ts +14 -0
- package/dist/temp/src/components/slider/Slider.js +44 -0
- package/dist/temp/src/components/slider/index.d.ts +1 -0
- package/dist/temp/src/components/slider/index.js +1 -0
- package/dist/temp/src/components/spinner/Spinner.d.ts +9 -0
- package/dist/temp/src/components/spinner/Spinner.js +21 -0
- package/dist/temp/src/components/spinner/index.d.ts +1 -0
- package/dist/temp/src/components/spinner/index.js +1 -0
- package/dist/temp/src/components/switch/Switch.d.ts +22 -0
- package/dist/temp/src/components/switch/Switch.js +68 -0
- package/dist/temp/src/components/switch/index.d.ts +2 -0
- package/dist/temp/src/components/switch/index.js +1 -0
- package/dist/temp/src/components/tab/HorizontalTab.d.ts +12 -0
- package/dist/temp/src/components/tab/HorizontalTab.js +37 -0
- package/dist/temp/src/components/tab/TabButton.d.ts +23 -0
- package/dist/temp/src/components/tab/TabButton.js +37 -0
- package/dist/temp/src/components/tab/VerticalTab.d.ts +9 -0
- package/dist/temp/src/components/tab/VerticalTab.js +32 -0
- package/dist/temp/src/components/tab/index.d.ts +3 -0
- package/dist/temp/src/components/tab/index.js +3 -0
- package/dist/temp/src/components/tag/Tag.d.ts +17 -0
- package/dist/temp/src/components/tag/Tag.js +110 -0
- package/dist/temp/src/components/tag/index.d.ts +1 -0
- package/dist/temp/src/components/tag/index.js +1 -0
- package/dist/temp/src/components/toggle/Toggle.d.ts +10 -0
- package/dist/temp/src/components/toggle/Toggle.js +30 -0
- package/dist/temp/src/components/toggle/index.d.ts +1 -0
- package/dist/temp/src/components/toggle/index.js +1 -0
- package/dist/temp/src/components/tooltip/Tooltip.d.ts +15 -0
- package/dist/temp/src/components/tooltip/Tooltip.js +122 -0
- package/dist/temp/src/components/tooltip/index.d.ts +1 -0
- package/dist/temp/src/components/tooltip/index.js +1 -0
- package/dist/temp/src/constant/breakpoint.d.ts +6 -0
- package/dist/temp/src/constant/breakpoint.js +6 -0
- package/dist/temp/src/constant/date-picker.d.ts +63 -0
- package/dist/temp/src/constant/date-picker.js +53 -0
- package/dist/temp/src/constant/index.d.ts +2 -0
- package/dist/temp/src/constant/index.js +2 -0
- package/dist/temp/src/constant/size.d.ts +1 -0
- package/dist/temp/src/constant/size.js +1 -0
- package/dist/temp/src/hooks/dropdown/index.d.ts +6 -0
- package/dist/temp/src/hooks/dropdown/index.js +6 -0
- package/dist/temp/src/hooks/dropdown/useDropdown.d.ts +29 -0
- package/dist/temp/src/hooks/dropdown/useDropdown.js +84 -0
- package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.d.ts +10 -0
- package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.js +108 -0
- package/dist/temp/src/hooks/dropdown/useDropdownPosition.d.ts +9 -0
- package/dist/temp/src/hooks/dropdown/useDropdownPosition.js +18 -0
- package/dist/temp/src/hooks/dropdown/useOutsideClick.d.ts +5 -0
- package/dist/temp/src/hooks/dropdown/useOutsideClick.js +23 -0
- package/dist/temp/src/hooks/dropdown/useScrollLock.d.ts +4 -0
- package/dist/temp/src/hooks/dropdown/useScrollLock.js +72 -0
- package/dist/temp/src/hooks/dropdown/useWindowResize.d.ts +7 -0
- package/dist/temp/src/hooks/dropdown/useWindowResize.js +44 -0
- package/dist/temp/src/hooks/index.d.ts +4 -0
- package/dist/temp/src/hooks/index.js +6 -0
- package/dist/temp/src/hooks/useCallbackRef.d.ts +27 -0
- package/dist/temp/src/hooks/useCallbackRef.js +44 -0
- package/dist/temp/src/hooks/useMediaQuery.d.ts +5 -0
- package/dist/temp/src/hooks/useMediaQuery.js +20 -0
- package/dist/temp/src/hooks/useMergeRefs.d.ts +20 -0
- package/dist/temp/src/hooks/useMergeRefs.js +31 -0
- package/dist/temp/src/types/dropdown/dropdown.d.ts +39 -0
- package/dist/temp/src/types/dropdown/dropdown.js +1 -0
- package/dist/temp/src/types/dropdown/index.d.ts +2 -0
- package/dist/temp/src/types/dropdown/index.js +2 -0
- package/dist/temp/src/types/dropdown/option.d.ts +23 -0
- package/dist/temp/src/types/dropdown/option.js +1 -0
- package/dist/temp/src/types/index.d.ts +2 -0
- package/dist/temp/src/types/index.js +2 -0
- package/dist/temp/src/types/side-slot.d.ts +25 -0
- package/dist/temp/src/types/side-slot.js +1 -0
- package/dist/temp/src/utils/date-picker.d.ts +11 -0
- package/dist/temp/src/utils/date-picker.js +51 -0
- package/dist/temp/src/utils/dropdown/dropdownUtils.d.ts +17 -0
- package/dist/temp/src/utils/dropdown/dropdownUtils.js +79 -0
- package/dist/temp/src/utils/dropdown/index.d.ts +2 -0
- package/dist/temp/src/utils/dropdown/index.js +2 -0
- package/dist/temp/src/utils/dropdown/multiSelect.d.ts +31 -0
- package/dist/temp/src/utils/dropdown/multiSelect.js +68 -0
- package/dist/temp/src/utils/index.d.ts +2 -0
- package/dist/temp/src/utils/index.js +4 -0
- package/dist/types/assets/scripts/baseBox.d.ts +55 -0
- package/dist/types/assets/scripts/comboBox.d.ts +7 -38
- package/dist/types/assets/scripts/datePicker.d.ts +0 -1
- package/dist/types/assets/scripts/featuredIcon.d.ts +0 -1
- package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +0 -2
- package/dist/types/assets/scripts/fileInput/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/fileInput/const/types.d.ts +4 -48
- package/dist/types/assets/scripts/fileInput/fileInput.d.ts +13 -0
- package/dist/types/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
- package/dist/types/assets/scripts/fileInput/fileInputView.d.ts +42 -0
- package/dist/types/assets/scripts/fileInput/index.d.ts +1 -2
- package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/index.d.ts +0 -1
- package/dist/types/assets/scripts/index.d.ts +0 -1
- package/dist/types/assets/scripts/modal/Modal.d.ts +0 -1
- package/dist/types/assets/scripts/modal/ModalActions.d.ts +0 -1
- package/dist/types/assets/scripts/modal/ModalContent.d.ts +0 -1
- package/dist/types/assets/scripts/modal/ModalHeader.d.ts +0 -1
- package/dist/types/assets/scripts/modal/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/modal/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/modal/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/modal/index.d.ts +0 -1
- package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +0 -1
- package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +0 -1
- package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +0 -1
- package/dist/types/assets/scripts/notification/MessageNotification.d.ts +0 -1
- package/dist/types/assets/scripts/notification/Notification.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/sizes.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/notification/index.d.ts +0 -1
- package/dist/types/assets/scripts/notification/utils.d.ts +0 -1
- package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +0 -1
- package/dist/types/assets/scripts/progress-bar/index.d.ts +0 -1
- package/dist/types/assets/scripts/selectBox.d.ts +6 -33
- package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -1
- package/dist/types/assets/scripts/slider.d.ts +0 -1
- package/dist/types/assets/scripts/tab.d.ts +0 -1
- package/dist/types/assets/scripts/tag/Tag.d.ts +0 -1
- package/dist/types/assets/scripts/tag/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/tag/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/tag/const/sizes.d.ts +0 -1
- package/dist/types/assets/scripts/tag/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/tag/index.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/constants.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/icons.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/templates.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/index.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/utils.d.ts +0 -1
- package/dist/types/assets/scripts/utils/debounce.d.ts +8 -0
- package/dist/types/assets/scripts/utils/unifiedBox/domRenderer.d.ts +107 -0
- package/dist/types/assets/scripts/utils/unifiedBox/dropdownModel.d.ts +142 -0
- package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts +156 -0
- package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts +95 -0
- package/dist/types/constant/color.d.ts +0 -1
- package/dist/types/constant/size.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/src/components/badge/Badge.d.ts +10 -9
- package/dist/types/src/components/badge/BadgeGroup.d.ts +7 -6
- package/dist/types/src/components/badge/index.d.ts +0 -1
- package/dist/types/src/components/badge/utils.d.ts +4 -3
- package/dist/types/src/components/breadcrumb/BreadCrumb.d.ts +5 -4
- package/dist/types/src/components/breadcrumb/index.d.ts +0 -1
- package/dist/types/src/components/button/Button.d.ts +2 -1
- package/dist/types/src/components/button/ButtonCloseX.d.ts +4 -3
- package/dist/types/src/components/button/ButtonGroup.d.ts +7 -9
- package/dist/types/src/components/button/ButtonStepper.d.ts +1 -2
- package/dist/types/src/components/button/index.d.ts +0 -1
- package/dist/types/src/components/carousel/CarouselArrow.d.ts +1 -3
- package/dist/types/src/components/carousel/CarouselNumberGroup.d.ts +1 -3
- package/dist/types/src/components/carousel/index.d.ts +0 -1
- package/dist/types/src/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/types/src/components/checkbox/CheckboxInput.d.ts +2 -3
- package/dist/types/src/components/checkbox/index.d.ts +0 -1
- package/dist/types/src/components/combobox/ComboBox.d.ts +7 -6
- package/dist/types/src/components/combobox/index.d.ts +1 -2
- package/dist/types/src/components/date-picker/CustomInput.d.ts +2 -3
- package/dist/types/src/components/date-picker/DatePicker.d.ts +7 -6
- package/dist/types/src/components/date-picker/RangeDatePicker.d.ts +6 -5
- package/dist/types/src/components/date-picker/RangeDatePickerWithButtons.d.ts +4 -4
- package/dist/types/src/components/date-picker/index.d.ts +0 -1
- package/dist/types/src/components/date-picker/utils.d.ts +0 -1
- package/dist/types/src/components/divider/Divider.d.ts +1 -2
- package/dist/types/src/components/divider/index.d.ts +0 -1
- package/dist/types/src/components/dot/Dot.d.ts +9 -8
- package/dist/types/src/components/dot/index.d.ts +0 -1
- package/dist/types/src/components/dropdown/Dropdown.d.ts +0 -1
- package/dist/types/src/components/dropdown/index.d.ts +0 -1
- package/dist/types/src/components/empty-state/EmptyState.d.ts +5 -5
- package/dist/types/src/components/empty-state/index.d.ts +0 -1
- package/dist/types/src/components/featured-icon/FeaturedIcon.d.ts +8 -7
- package/dist/types/src/components/featured-icon/index.d.ts +0 -1
- package/dist/types/src/components/file-input/FileInput.d.ts +0 -1
- package/dist/types/src/components/file-input/index.d.ts +0 -1
- package/dist/types/src/components/image-file-input/ImageFileInput.d.ts +0 -1
- package/dist/types/src/components/image-file-input/components/ImagePreview.d.ts +0 -1
- package/dist/types/src/components/image-file-input/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts +1 -2
- package/dist/types/src/components/input/InputBase.d.ts +4 -4
- package/dist/types/src/components/input/NumberInput.d.ts +1 -2
- package/dist/types/src/components/input/PasswordInput.d.ts +1 -2
- package/dist/types/src/components/input/Textarea.d.ts +2 -3
- package/dist/types/src/components/input/index.d.ts +0 -1
- package/dist/types/src/components/modal/Modal.d.ts +13 -12
- package/dist/types/src/components/modal/index.d.ts +0 -1
- package/dist/types/src/components/notification/FloatingNotification.d.ts +6 -5
- package/dist/types/src/components/notification/FullWidthNotification.d.ts +6 -5
- package/dist/types/src/components/notification/MessageNotification.d.ts +6 -5
- package/dist/types/src/components/notification/Notification.d.ts +11 -10
- package/dist/types/src/components/notification/index.d.ts +1 -2
- package/dist/types/src/components/pagination/NavButton.d.ts +0 -1
- package/dist/types/src/components/pagination/Pagination.d.ts +0 -1
- package/dist/types/src/components/pagination/index.d.ts +0 -1
- package/dist/types/src/components/progress-bar/ProgressBar.d.ts +0 -1
- package/dist/types/src/components/progress-bar/components/SegmentBar.d.ts +0 -1
- package/dist/types/src/components/progress-bar/components/SegmentLabels.d.ts +3 -4
- package/dist/types/src/components/progress-bar/hooks/useProgressBar.d.ts +1 -2
- package/dist/types/src/components/progress-bar/index.d.ts +0 -1
- package/dist/types/src/components/progress-bar/types.d.ts +0 -1
- package/dist/types/src/components/progress-bar/utils.d.ts +4 -4
- package/dist/types/src/components/progress-circle/ProgressCircle.d.ts +0 -1
- package/dist/types/src/components/progress-circle/index.d.ts +0 -1
- package/dist/types/src/components/radio/Radio.d.ts +2 -3
- package/dist/types/src/components/radio/RadioInput.d.ts +2 -3
- package/dist/types/src/components/radio/index.d.ts +0 -1
- package/dist/types/src/components/select/Select.d.ts +4 -5
- package/dist/types/src/components/select/index.d.ts +0 -1
- package/dist/types/src/components/select-dropdown/SelectDropdown.d.ts +6 -6
- package/dist/types/src/components/select-dropdown/index.d.ts +1 -2
- package/dist/types/src/components/selectbox/SelectBox.d.ts +5 -4
- package/dist/types/src/components/selectbox/index.d.ts +0 -1
- package/dist/types/src/components/shared/hintText/HintText.d.ts +0 -1
- package/dist/types/src/components/shared/hintText/index.d.ts +0 -1
- package/dist/types/src/components/shared/index.d.ts +0 -1
- package/dist/types/src/components/shared/label/Label.d.ts +0 -1
- package/dist/types/src/components/shared/label/index.d.ts +0 -1
- package/dist/types/src/components/slider/Slider.d.ts +1 -2
- package/dist/types/src/components/slider/index.d.ts +0 -1
- package/dist/types/src/components/spinner/Spinner.d.ts +1 -2
- package/dist/types/src/components/spinner/index.d.ts +0 -2
- package/dist/types/src/components/switch/Switch.d.ts +7 -7
- package/dist/types/src/components/switch/index.d.ts +1 -2
- package/dist/types/src/components/tab/HorizontalTab.d.ts +5 -4
- package/dist/types/src/components/tab/TabButton.d.ts +8 -8
- package/dist/types/src/components/tab/VerticalTab.d.ts +2 -3
- package/dist/types/src/components/tab/index.d.ts +0 -1
- package/dist/types/src/components/tag/Tag.d.ts +4 -4
- package/dist/types/src/components/tag/index.d.ts +0 -1
- package/dist/types/src/components/toggle/Toggle.d.ts +1 -2
- package/dist/types/src/components/toggle/index.d.ts +0 -1
- package/dist/types/src/components/tooltip/Tooltip.d.ts +0 -1
- package/dist/types/src/components/tooltip/index.d.ts +0 -1
- package/dist/types/src/constant/breakpoint.d.ts +0 -1
- package/dist/types/src/constant/date-picker.d.ts +0 -1
- package/dist/types/src/constant/index.d.ts +1 -2
- package/dist/types/src/constant/size.d.ts +0 -1
- package/dist/types/src/hooks/dropdown/index.d.ts +0 -1
- package/dist/types/src/hooks/dropdown/useDropdown.d.ts +1 -2
- package/dist/types/src/hooks/dropdown/useDropdownKeyboard.d.ts +2 -3
- package/dist/types/src/hooks/dropdown/useDropdownPosition.d.ts +1 -2
- package/dist/types/src/hooks/dropdown/useOutsideClick.d.ts +1 -2
- package/dist/types/src/hooks/dropdown/useScrollLock.d.ts +0 -1
- package/dist/types/src/hooks/dropdown/useWindowResize.d.ts +0 -1
- package/dist/types/src/hooks/index.d.ts +1 -2
- package/dist/types/src/hooks/useCallbackRef.d.ts +0 -1
- package/dist/types/src/hooks/useMediaQuery.d.ts +0 -1
- package/dist/types/src/hooks/useMergeRefs.d.ts +1 -2
- package/dist/types/src/types/dropdown/dropdown.d.ts +1 -2
- package/dist/types/src/types/dropdown/index.d.ts +0 -1
- package/dist/types/src/types/dropdown/option.d.ts +0 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/side-slot.d.ts +0 -1
- package/dist/types/src/utils/date-picker.d.ts +1 -2
- package/dist/types/src/utils/dropdown/dropdownUtils.d.ts +2 -3
- package/dist/types/src/utils/dropdown/index.d.ts +0 -1
- package/dist/types/src/utils/dropdown/multiSelect.d.ts +1 -2
- package/dist/types/src/utils/index.d.ts +0 -1
- package/dist/ui-admin/assets/styles/style.css +112 -24
- package/package.json +49 -53
- package/dist/cjs/assets/scripts/fileInput/FileInput.js +0 -183
- package/dist/cjs/assets/scripts/fileInput/FileInputModel.js +0 -246
- package/dist/cjs/assets/scripts/fileInput/FileInputView.js +0 -455
- package/dist/esm/assets/scripts/fileInput/FileInput.js +0 -178
- package/dist/esm/assets/scripts/fileInput/FileInputModel.js +0 -241
- package/dist/esm/assets/scripts/fileInput/FileInputView.js +0 -450
- /package/dist/cjs/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +0 -0
- /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
|
|
12
|
+
return _fileInput.FileInput;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
var
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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 =
|
|
49
|
+
var htmlOptions = _this.parseOptionsFromHTML();
|
|
33
50
|
// JavaScript 옵션을 DropdownOption 형식으로 변환
|
|
34
|
-
var normalizedOptions = config.options ?
|
|
51
|
+
var normalizedOptions = config.options ? _this.normalizeOptions(config.options) : htmlOptions;
|
|
35
52
|
var finalOptions = normalizedOptions;
|
|
36
53
|
// HTML에서 속성 파싱
|
|
37
|
-
var htmlAttributes =
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
*
|
|
158
|
+
* 값 변환 - originalValue 매핑
|
|
159
159
|
*/
|
|
160
|
-
SelectBox.prototype.
|
|
161
|
-
|
|
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
|
-
|
|
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
|
}();
|