@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,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BaseBox = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* SelectBox와 ComboBox의 공통 기능을 담는 베이스 클래스
|
|
9
|
+
*/
|
|
10
|
+
var BaseBox = exports.BaseBox = /** @class */function () {
|
|
11
|
+
function BaseBox(element) {
|
|
12
|
+
this.targetSelect = null;
|
|
13
|
+
this.isInitializing = true;
|
|
14
|
+
this.lastValue = '';
|
|
15
|
+
this.element = element;
|
|
16
|
+
this.targetSelect = this.findTargetSelect(element);
|
|
17
|
+
}
|
|
18
|
+
/** 초기화 완료 처리 (서브클래스 생성자 마지막에 호출) */
|
|
19
|
+
BaseBox.prototype.completeInitialization = function () {
|
|
20
|
+
var _this = this;
|
|
21
|
+
setTimeout(function () {
|
|
22
|
+
_this.isInitializing = false;
|
|
23
|
+
}, 0);
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 타겟 select 요소 찾기
|
|
27
|
+
*/
|
|
28
|
+
BaseBox.prototype.findTargetSelect = function (element) {
|
|
29
|
+
// 1. 직접 select 태그인 경우
|
|
30
|
+
if (element.tagName === 'SELECT') {
|
|
31
|
+
return element;
|
|
32
|
+
}
|
|
33
|
+
// 2. 자식으로 select 태그가 있는 경우
|
|
34
|
+
var selectChild = element.querySelector('select');
|
|
35
|
+
if (selectChild) {
|
|
36
|
+
return selectChild;
|
|
37
|
+
}
|
|
38
|
+
// 3. data-target 속성으로 지정된 경우
|
|
39
|
+
var targetId = element.getAttribute('data-target');
|
|
40
|
+
if (targetId) {
|
|
41
|
+
var targetElement = document.getElementById(targetId);
|
|
42
|
+
if (targetElement && targetElement.tagName === 'SELECT') {
|
|
43
|
+
return targetElement;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* HTML에서 속성 파싱
|
|
50
|
+
*/
|
|
51
|
+
BaseBox.prototype.parseAttributesFromHTML = function () {
|
|
52
|
+
var attributes = {};
|
|
53
|
+
if (this.targetSelect) {
|
|
54
|
+
// select 요소의 속성들
|
|
55
|
+
if (this.targetSelect.disabled) attributes.disabled = true;
|
|
56
|
+
if (this.targetSelect.value) attributes.value = this.targetSelect.value;
|
|
57
|
+
// placeholder는 첫 번째 빈 option에서 가져오기
|
|
58
|
+
var firstOption = this.targetSelect.querySelector('option[value=""], option:not([value])');
|
|
59
|
+
if (firstOption) {
|
|
60
|
+
attributes.placeholder = firstOption.textContent || this.defaultPlaceholder;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// 컨테이너 요소의 data 속성들
|
|
64
|
+
var containerAttributes = this.element.dataset;
|
|
65
|
+
if (containerAttributes.placeholder) attributes.placeholder = containerAttributes.placeholder;
|
|
66
|
+
if (containerAttributes.size) attributes.size = containerAttributes.size;
|
|
67
|
+
if (containerAttributes.disabled === 'true') attributes.disabled = true;
|
|
68
|
+
return attributes;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 값 변환 훅 - SelectBox에서 originalValue 매핑을 위해 오버라이드
|
|
72
|
+
* 기본 동작: 그대로 문자열 변환
|
|
73
|
+
*/
|
|
74
|
+
BaseBox.prototype.resolveValue = function (value) {
|
|
75
|
+
return String(value);
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 타겟 select와 동기화 (Single 모드)
|
|
79
|
+
*/
|
|
80
|
+
BaseBox.prototype.syncWithTargetSelect = function (value) {
|
|
81
|
+
if (this.targetSelect) {
|
|
82
|
+
this.targetSelect.value = this.resolveValue(value);
|
|
83
|
+
var event_1 = new Event('change', {
|
|
84
|
+
bubbles: true
|
|
85
|
+
});
|
|
86
|
+
this.targetSelect.dispatchEvent(event_1);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* 타겟 select와 동기화 (Multiple 모드)
|
|
91
|
+
*/
|
|
92
|
+
BaseBox.prototype.syncWithTargetSelectMultiple = function (values) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
if (this.targetSelect && this.targetSelect.multiple) {
|
|
95
|
+
// 모든 옵션 선택 해제
|
|
96
|
+
Array.from(this.targetSelect.options).forEach(function (option) {
|
|
97
|
+
option.selected = false;
|
|
98
|
+
});
|
|
99
|
+
// 선택된 값들에 해당하는 옵션들 선택
|
|
100
|
+
values.forEach(function (value) {
|
|
101
|
+
var resolved = _this.resolveValue(value);
|
|
102
|
+
var option = _this.targetSelect.querySelector("option[value=\"".concat(resolved, "\"]"));
|
|
103
|
+
if (option) {
|
|
104
|
+
option.selected = true;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
var event_2 = new Event('change', {
|
|
108
|
+
bubbles: true
|
|
109
|
+
});
|
|
110
|
+
this.targetSelect.dispatchEvent(event_2);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
// UnifiedBoxManager 위임 메서드들
|
|
114
|
+
BaseBox.prototype.getOptions = function () {
|
|
115
|
+
return this.unifiedSelectBox.getOptions();
|
|
116
|
+
};
|
|
117
|
+
BaseBox.prototype.updateOptions = function (newOptions) {
|
|
118
|
+
this.unifiedSelectBox.updateOptions(newOptions);
|
|
119
|
+
};
|
|
120
|
+
BaseBox.prototype.setDisabled = function (disabled) {
|
|
121
|
+
this.unifiedSelectBox.setDisabled(disabled);
|
|
122
|
+
};
|
|
123
|
+
BaseBox.prototype.open = function () {
|
|
124
|
+
this.unifiedSelectBox.open();
|
|
125
|
+
};
|
|
126
|
+
BaseBox.prototype.close = function () {
|
|
127
|
+
this.unifiedSelectBox.close();
|
|
128
|
+
};
|
|
129
|
+
BaseBox.prototype.focus = function () {
|
|
130
|
+
this.unifiedSelectBox.focus();
|
|
131
|
+
};
|
|
132
|
+
BaseBox.prototype.destroy = function () {
|
|
133
|
+
this.unifiedSelectBox.destroy();
|
|
134
|
+
};
|
|
135
|
+
BaseBox.prototype.selectAll = function () {
|
|
136
|
+
this.unifiedSelectBox.selectAll();
|
|
137
|
+
};
|
|
138
|
+
BaseBox.prototype.deselectAll = function () {
|
|
139
|
+
this.unifiedSelectBox.deselectAll();
|
|
140
|
+
};
|
|
141
|
+
BaseBox.prototype.isMultiple = function () {
|
|
142
|
+
return this.unifiedSelectBox.isMultiple();
|
|
143
|
+
};
|
|
144
|
+
BaseBox.prototype.toggleSelectAll = function () {
|
|
145
|
+
this.unifiedSelectBox.toggleSelectAll();
|
|
146
|
+
};
|
|
147
|
+
return BaseBox;
|
|
148
|
+
}();
|
|
@@ -4,7 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ComboBox = 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++) {
|
|
@@ -24,26 +45,22 @@ var __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack
|
|
|
24
45
|
}
|
|
25
46
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
47
|
};
|
|
27
|
-
var ComboBox = exports.ComboBox = /** @class */function () {
|
|
48
|
+
var ComboBox = exports.ComboBox = /** @class */function (_super) {
|
|
49
|
+
__extends(ComboBox, _super);
|
|
28
50
|
function ComboBox(element, config) {
|
|
29
51
|
if (config === void 0) {
|
|
30
52
|
config = {};
|
|
31
53
|
}
|
|
32
54
|
var _this = this;
|
|
33
55
|
var _a, _b, _c, _d, _e, _f;
|
|
34
|
-
|
|
35
|
-
this.isInitializing = true;
|
|
36
|
-
this.lastValue = '';
|
|
37
|
-
this.element = element;
|
|
38
|
-
// 타겟 select 요소 찾기
|
|
39
|
-
this.targetSelect = this.findTargetSelect(element);
|
|
56
|
+
_this = _super.call(this, element) || this;
|
|
40
57
|
// HTML에서 옵션 파싱 (config.options가 없을 경우)
|
|
41
|
-
var htmlOptions =
|
|
58
|
+
var htmlOptions = _this.parseOptionsFromHTML();
|
|
42
59
|
// JavaScript 옵션을 DropdownOption 형식으로 변환 (이제 구조가 동일하므로 단순 복사)
|
|
43
60
|
var normalizedOptions = config.options ? __spreadArray([], config.options, true) : htmlOptions;
|
|
44
61
|
var finalOptions = normalizedOptions;
|
|
45
62
|
// HTML에서 속성 파싱
|
|
46
|
-
var htmlAttributes =
|
|
63
|
+
var htmlAttributes = _this.parseAttributesFromHTML();
|
|
47
64
|
// 기존 API를 새 API로 변환
|
|
48
65
|
var unifiedConfig = __assign(__assign({}, config), {
|
|
49
66
|
type: 'combobox',
|
|
@@ -55,7 +72,7 @@ var ComboBox = exports.ComboBox = /** @class */function () {
|
|
|
55
72
|
onScrollBottom: config.onScrollBottom,
|
|
56
73
|
searchDebounceMs: config.searchDebounceMs,
|
|
57
74
|
options: finalOptions,
|
|
58
|
-
placeholder: config.placeholder || htmlAttributes.placeholder ||
|
|
75
|
+
placeholder: config.placeholder || htmlAttributes.placeholder || _this.defaultPlaceholder,
|
|
59
76
|
value: (_d = (_c = config.value) !== null && _c !== void 0 ? _c : htmlAttributes.value) !== null && _d !== void 0 ? _d : config.multiple ? [] : '',
|
|
60
77
|
disabled: (_f = (_e = config.disabled) !== null && _e !== void 0 ? _e : htmlAttributes.disabled) !== null && _f !== void 0 ? _f : false,
|
|
61
78
|
size: config.size || htmlAttributes.size || 'md',
|
|
@@ -80,35 +97,17 @@ var ComboBox = exports.ComboBox = /** @class */function () {
|
|
|
80
97
|
(_a = config.onChange) === null || _a === void 0 ? void 0 : _a.call(config, value);
|
|
81
98
|
}
|
|
82
99
|
});
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
_this.isInitializing = false;
|
|
87
|
-
}, 0);
|
|
100
|
+
_this.unifiedSelectBox = new _unifiedBoxManager.UnifiedBoxManager(element, unifiedConfig);
|
|
101
|
+
_this.completeInitialization();
|
|
102
|
+
return _this;
|
|
88
103
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
// 2. 자식으로 select 태그가 있는 경우
|
|
98
|
-
var selectChild = element.querySelector('select');
|
|
99
|
-
if (selectChild) {
|
|
100
|
-
return selectChild;
|
|
101
|
-
}
|
|
102
|
-
// 3. data-target 속성으로 지정된 경우
|
|
103
|
-
var targetId = element.getAttribute('data-target');
|
|
104
|
-
if (targetId) {
|
|
105
|
-
var targetElement = document.getElementById(targetId);
|
|
106
|
-
if (targetElement && targetElement.tagName === 'SELECT') {
|
|
107
|
-
return targetElement;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return null;
|
|
111
|
-
};
|
|
104
|
+
Object.defineProperty(ComboBox.prototype, "defaultPlaceholder", {
|
|
105
|
+
get: function () {
|
|
106
|
+
return '검색하고 선택하세요';
|
|
107
|
+
},
|
|
108
|
+
enumerable: false,
|
|
109
|
+
configurable: true
|
|
110
|
+
});
|
|
112
111
|
/**
|
|
113
112
|
* HTML select에서 옵션 파싱
|
|
114
113
|
*/
|
|
@@ -128,72 +127,10 @@ var ComboBox = exports.ComboBox = /** @class */function () {
|
|
|
128
127
|
});
|
|
129
128
|
return options;
|
|
130
129
|
};
|
|
131
|
-
|
|
132
|
-
* HTML에서 속성 파싱
|
|
133
|
-
*/
|
|
134
|
-
ComboBox.prototype.parseAttributesFromHTML = function () {
|
|
135
|
-
var attributes = {};
|
|
136
|
-
if (this.targetSelect) {
|
|
137
|
-
// select 요소의 속성들
|
|
138
|
-
if (this.targetSelect.disabled) attributes.disabled = true;
|
|
139
|
-
if (this.targetSelect.value) attributes.value = this.targetSelect.value;
|
|
140
|
-
// placeholder는 첫 번째 빈 option에서 가져오기
|
|
141
|
-
var firstOption = this.targetSelect.querySelector('option[value=""], option:not([value])');
|
|
142
|
-
if (firstOption) {
|
|
143
|
-
attributes.placeholder = firstOption.textContent || '검색하고 선택하세요';
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
// 컨테이너 요소의 data 속성들
|
|
147
|
-
var containerAttributes = this.element.dataset;
|
|
148
|
-
if (containerAttributes.placeholder) attributes.placeholder = containerAttributes.placeholder;
|
|
149
|
-
if (containerAttributes.size) attributes.size = containerAttributes.size;
|
|
150
|
-
if (containerAttributes.disabled === 'true') attributes.disabled = true;
|
|
151
|
-
return attributes;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* 타겟 select와 동기화 (Single 모드)
|
|
155
|
-
*/
|
|
156
|
-
ComboBox.prototype.syncWithTargetSelect = function (value) {
|
|
157
|
-
if (this.targetSelect) {
|
|
158
|
-
this.targetSelect.value = String(value);
|
|
159
|
-
// select 요소의 change 이벤트 발생
|
|
160
|
-
var event_1 = new Event('change', {
|
|
161
|
-
bubbles: true
|
|
162
|
-
});
|
|
163
|
-
this.targetSelect.dispatchEvent(event_1);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* 타겟 select와 동기화 (Multiple 모드)
|
|
168
|
-
*/
|
|
169
|
-
ComboBox.prototype.syncWithTargetSelectMultiple = function (values) {
|
|
170
|
-
var _this = this;
|
|
171
|
-
if (this.targetSelect && this.targetSelect.multiple) {
|
|
172
|
-
// 모든 옵션 선택 해제
|
|
173
|
-
Array.from(this.targetSelect.options).forEach(function (option) {
|
|
174
|
-
option.selected = false;
|
|
175
|
-
});
|
|
176
|
-
// 선택된 값들에 해당하는 옵션들 선택
|
|
177
|
-
values.forEach(function (value) {
|
|
178
|
-
var option = _this.targetSelect.querySelector("option[value=\"".concat(value, "\"]"));
|
|
179
|
-
if (option) {
|
|
180
|
-
option.selected = true;
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
// select 요소의 change 이벤트 발생
|
|
184
|
-
var event_2 = new Event('change', {
|
|
185
|
-
bubbles: true
|
|
186
|
-
});
|
|
187
|
-
this.targetSelect.dispatchEvent(event_2);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
// 기존 API 호환성 메서드들
|
|
130
|
+
// ComboBox 고유 API
|
|
191
131
|
ComboBox.prototype.getValues = function () {
|
|
192
132
|
return this.unifiedSelectBox.getValues();
|
|
193
133
|
};
|
|
194
|
-
ComboBox.prototype.getOptions = function () {
|
|
195
|
-
return this.unifiedSelectBox.getOptions();
|
|
196
|
-
};
|
|
197
134
|
ComboBox.prototype.setValues = function (value) {
|
|
198
135
|
// 옵션 객체 배열에서 id 배열로 변환하여 lastValue 비교
|
|
199
136
|
var ids = value.map(function (option) {
|
|
@@ -215,25 +152,6 @@ var ComboBox = exports.ComboBox = /** @class */function () {
|
|
|
215
152
|
}
|
|
216
153
|
}
|
|
217
154
|
};
|
|
218
|
-
ComboBox.prototype.updateOptions = function (newOptions) {
|
|
219
|
-
this.unifiedSelectBox.updateOptions(newOptions);
|
|
220
|
-
};
|
|
221
|
-
ComboBox.prototype.setDisabled = function (disabled) {
|
|
222
|
-
this.unifiedSelectBox.setDisabled(disabled);
|
|
223
|
-
};
|
|
224
|
-
ComboBox.prototype.open = function () {
|
|
225
|
-
this.unifiedSelectBox.open();
|
|
226
|
-
};
|
|
227
|
-
ComboBox.prototype.close = function () {
|
|
228
|
-
this.unifiedSelectBox.close();
|
|
229
|
-
};
|
|
230
|
-
ComboBox.prototype.focus = function () {
|
|
231
|
-
this.unifiedSelectBox.focus();
|
|
232
|
-
};
|
|
233
|
-
ComboBox.prototype.destroy = function () {
|
|
234
|
-
this.unifiedSelectBox.destroy();
|
|
235
|
-
};
|
|
236
|
-
// ComboBox 특화 메서드들
|
|
237
155
|
ComboBox.prototype.clearInput = function () {
|
|
238
156
|
// UnifiedBoxManager의 handleClearInput과 동일한 로직
|
|
239
157
|
this.unifiedSelectBox.close();
|
|
@@ -241,22 +159,12 @@ var ComboBox = exports.ComboBox = /** @class */function () {
|
|
|
241
159
|
ComboBox.prototype.getDebugInfo = function () {
|
|
242
160
|
return this.unifiedSelectBox.getDebugInfo();
|
|
243
161
|
};
|
|
244
|
-
// Multiple 모드 전용 메서드들
|
|
245
|
-
ComboBox.prototype.selectAll = function () {
|
|
246
|
-
this.unifiedSelectBox.selectAll();
|
|
247
|
-
};
|
|
248
|
-
ComboBox.prototype.deselectAll = function () {
|
|
249
|
-
this.unifiedSelectBox.deselectAll();
|
|
250
|
-
};
|
|
251
162
|
ComboBox.prototype.getSelectedCount = function () {
|
|
252
163
|
var value = this.getValues();
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
return
|
|
257
|
-
};
|
|
258
|
-
ComboBox.prototype.toggleSelectAll = function () {
|
|
259
|
-
this.unifiedSelectBox.toggleSelectAll();
|
|
164
|
+
if (Array.isArray(value)) {
|
|
165
|
+
return value.length;
|
|
166
|
+
}
|
|
167
|
+
return value ? 1 : 0;
|
|
260
168
|
};
|
|
261
169
|
/**
|
|
262
170
|
* 드롭다운을 스크롤의 바닥으로 이동
|
|
@@ -277,4 +185,4 @@ var ComboBox = exports.ComboBox = /** @class */function () {
|
|
|
277
185
|
this.unifiedSelectBox.setFocusIndex(index);
|
|
278
186
|
};
|
|
279
187
|
return ComboBox;
|
|
280
|
-
}();
|
|
188
|
+
}(_baseBox.BaseBox);
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DatePicker = void 0;
|
|
7
|
-
var _datePicker = require("
|
|
7
|
+
var _datePicker = require("../../src/utils/date-picker");
|
|
8
8
|
var _flatpickr = _interopRequireDefault(require("flatpickr"));
|
|
9
9
|
var _ko = require("flatpickr/dist/l10n/ko");
|
|
10
10
|
var _moment = _interopRequireDefault(require("moment"));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getLabelClassName = exports.getHintTextClassName = exports.getFileInputSizeClassName = exports.
|
|
6
|
+
exports.getLabelClassName = exports.getHintTextClassName = exports.getFileInputSizeClassName = exports.FILE_INPUT_CLASS_NAMES = void 0;
|
|
7
7
|
// FileInput 관련 CSS 클래스명 상수
|
|
8
8
|
var FILE_INPUT_CLASS_NAMES = exports.FILE_INPUT_CLASS_NAMES = {
|
|
9
9
|
fileInput: 'ncua-file-input',
|
|
@@ -21,10 +21,6 @@ var getFileInputSizeClassName = function (size) {
|
|
|
21
21
|
return "ncua-file-input--".concat(size);
|
|
22
22
|
};
|
|
23
23
|
exports.getFileInputSizeClassName = getFileInputSizeClassName;
|
|
24
|
-
var getButtonSizeClassName = function (size) {
|
|
25
|
-
return "ncua-button--".concat(size);
|
|
26
|
-
};
|
|
27
|
-
exports.getButtonSizeClassName = getButtonSizeClassName;
|
|
28
24
|
var getLabelClassName = function (isRequired) {
|
|
29
25
|
return isRequired ? 'ncua-label ncua-label--required' : 'ncua-label';
|
|
30
26
|
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FileInput = void 0;
|
|
7
|
+
var _fileInputModel = require("./fileInputModel");
|
|
8
|
+
var _fileInputView = require("./fileInputView");
|
|
9
|
+
var FileInput = exports.FileInput = /** @class */function () {
|
|
10
|
+
function FileInput(options) {
|
|
11
|
+
var _this = this;
|
|
12
|
+
this.handleBrowseClick = function () {
|
|
13
|
+
if (!_this.model.isDisabled()) {
|
|
14
|
+
_this.view.getFileInputElement().click();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
this.handleFileChange = function (event) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
var target = event.target;
|
|
20
|
+
var selectedFiles = target.files;
|
|
21
|
+
if (!selectedFiles || selectedFiles.length === 0) return;
|
|
22
|
+
var _c = _this.model.validateFiles(Array.from(selectedFiles)),
|
|
23
|
+
validFiles = _c.validFiles,
|
|
24
|
+
invalidFiles = _c.invalidFiles;
|
|
25
|
+
var options = _this.model.getOptions();
|
|
26
|
+
if (validFiles.length > 0) {
|
|
27
|
+
(_a = options.onChange) === null || _a === void 0 ? void 0 : _a.call(options, validFiles);
|
|
28
|
+
}
|
|
29
|
+
if (invalidFiles.length > 0) {
|
|
30
|
+
(_b = options.onFail) === null || _b === void 0 ? void 0 : _b.call(options, invalidFiles);
|
|
31
|
+
}
|
|
32
|
+
target.value = '';
|
|
33
|
+
};
|
|
34
|
+
this.model = new _fileInputModel.FileInputModel(options);
|
|
35
|
+
this.view = new _fileInputView.FileInputView(this.model.getOptions());
|
|
36
|
+
this.setupEventListeners();
|
|
37
|
+
if (options.container) {
|
|
38
|
+
this.appendToContainer(options.container);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
FileInput.prototype.appendToContainer = function (container) {
|
|
42
|
+
var containerElement = null;
|
|
43
|
+
if (typeof container === 'string') {
|
|
44
|
+
containerElement = document.getElementById(container);
|
|
45
|
+
if (!containerElement) {
|
|
46
|
+
containerElement = document.querySelector(container);
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
containerElement = container;
|
|
50
|
+
}
|
|
51
|
+
if (containerElement) {
|
|
52
|
+
containerElement.appendChild(this.getElement());
|
|
53
|
+
} else {
|
|
54
|
+
console.warn("FileInput: Container not found:", container);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
FileInput.prototype.setupEventListeners = function () {
|
|
58
|
+
var fileInput = this.view.getFileInputElement();
|
|
59
|
+
var button = this.view.getButtonElement();
|
|
60
|
+
fileInput.addEventListener('change', this.handleFileChange);
|
|
61
|
+
button.addEventListener('click', this.handleBrowseClick);
|
|
62
|
+
};
|
|
63
|
+
// Public API
|
|
64
|
+
FileInput.prototype.getElement = function () {
|
|
65
|
+
return this.view.getElement();
|
|
66
|
+
};
|
|
67
|
+
FileInput.prototype.setDisabled = function (disabled) {
|
|
68
|
+
this.model.setDisabled(disabled);
|
|
69
|
+
this.view.setButtonDisabled(disabled);
|
|
70
|
+
};
|
|
71
|
+
FileInput.prototype.destroy = function () {
|
|
72
|
+
var fileInput = this.view.getFileInputElement();
|
|
73
|
+
var button = this.view.getButtonElement();
|
|
74
|
+
fileInput.removeEventListener('change', this.handleFileChange);
|
|
75
|
+
button.removeEventListener('click', this.handleBrowseClick);
|
|
76
|
+
this.view.destroy();
|
|
77
|
+
};
|
|
78
|
+
return FileInput;
|
|
79
|
+
}();
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FileInputModel = void 0;
|
|
7
|
+
var _types = require("./const/types");
|
|
8
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
9
|
+
__assign = Object.assign || function (t) {
|
|
10
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11
|
+
s = arguments[i];
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
13
|
+
}
|
|
14
|
+
return t;
|
|
15
|
+
};
|
|
16
|
+
return __assign.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
var FileInputModel = exports.FileInputModel = /** @class */function () {
|
|
19
|
+
function FileInputModel(options) {
|
|
20
|
+
this.options = __assign({
|
|
21
|
+
size: 'xs',
|
|
22
|
+
multiple: false,
|
|
23
|
+
buttonLabel: '파일 찾기',
|
|
24
|
+
disabled: false
|
|
25
|
+
}, options);
|
|
26
|
+
}
|
|
27
|
+
FileInputModel.prototype.getOptions = function () {
|
|
28
|
+
return this.options;
|
|
29
|
+
};
|
|
30
|
+
FileInputModel.prototype.validateFiles = function (fileList) {
|
|
31
|
+
var validFiles = [];
|
|
32
|
+
var invalidFiles = [];
|
|
33
|
+
for (var _i = 0, fileList_1 = fileList; _i < fileList_1.length; _i++) {
|
|
34
|
+
var file = fileList_1[_i];
|
|
35
|
+
if (this.options.maxFileSize && file.size > this.options.maxFileSize) {
|
|
36
|
+
invalidFiles.push(__assign(__assign({}, file), {
|
|
37
|
+
errorType: _types.FileInputErrorType.EXCEED_MAX_FILE_SIZE
|
|
38
|
+
}));
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (this.options.maxFileCount && validFiles.length >= this.options.maxFileCount) {
|
|
42
|
+
invalidFiles.push(__assign(__assign({}, file), {
|
|
43
|
+
errorType: _types.FileInputErrorType.EXCEED_MAX_FILE_COUNT
|
|
44
|
+
}));
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
validFiles.push(file);
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
validFiles: validFiles,
|
|
51
|
+
invalidFiles: invalidFiles
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
FileInputModel.prototype.setDisabled = function (disabled) {
|
|
55
|
+
this.options.disabled = disabled;
|
|
56
|
+
};
|
|
57
|
+
FileInputModel.prototype.isDisabled = function () {
|
|
58
|
+
return this.options.disabled;
|
|
59
|
+
};
|
|
60
|
+
return FileInputModel;
|
|
61
|
+
}();
|