@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,22 @@
|
|
|
1
|
+
export type FeaturedIconTheme = 'light-circle' | 'dark-circle' | 'outline-circle' | 'square-outline';
|
|
2
|
+
export type FeaturedIconColor = 'neutral' | 'error' | 'warning' | 'success';
|
|
3
|
+
export type FeaturedIconSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export interface FeaturedIconOptions {
|
|
5
|
+
svgString: string;
|
|
6
|
+
theme?: FeaturedIconTheme;
|
|
7
|
+
color?: FeaturedIconColor;
|
|
8
|
+
size?: FeaturedIconSize;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class FeaturedIcon {
|
|
12
|
+
private element;
|
|
13
|
+
private options;
|
|
14
|
+
constructor(options: FeaturedIconOptions);
|
|
15
|
+
private createElement;
|
|
16
|
+
private addSizeToSvg;
|
|
17
|
+
getElement(): HTMLElement;
|
|
18
|
+
updateColor(color: FeaturedIconColor): void;
|
|
19
|
+
updateSize(size: FeaturedIconSize): void;
|
|
20
|
+
destroy(): void;
|
|
21
|
+
static create(options: FeaturedIconOptions): FeaturedIcon;
|
|
22
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
// React 컴포넌트와 동일하게 구성
|
|
13
|
+
var iconSizeMap = {
|
|
14
|
+
sm: 16,
|
|
15
|
+
md: 20,
|
|
16
|
+
lg: 24,
|
|
17
|
+
xl: 28,
|
|
18
|
+
};
|
|
19
|
+
var FeaturedIcon = /** @class */ (function () {
|
|
20
|
+
function FeaturedIcon(options) {
|
|
21
|
+
this.options = __assign({ theme: 'light-circle', color: 'neutral', size: 'sm', className: '' }, options);
|
|
22
|
+
this.element = this.createElement();
|
|
23
|
+
}
|
|
24
|
+
// svgString ( ICON SVG ) 을 받아서 요소를 생성
|
|
25
|
+
FeaturedIcon.prototype.createElement = function () {
|
|
26
|
+
var _a = this.options, theme = _a.theme, color = _a.color, size = _a.size, className = _a.className, svgString = _a.svgString;
|
|
27
|
+
// React FeaturedIcon과 동일한 클래스 구조
|
|
28
|
+
var classes = [
|
|
29
|
+
'ncua-featured-icon',
|
|
30
|
+
"ncua-featured-icon--".concat(theme),
|
|
31
|
+
"ncua-featured-icon--".concat(color),
|
|
32
|
+
"ncua-featured-icon--".concat(size),
|
|
33
|
+
];
|
|
34
|
+
if (className) {
|
|
35
|
+
classes.push(className);
|
|
36
|
+
}
|
|
37
|
+
var div = document.createElement('div');
|
|
38
|
+
div.className = classes.join(' ');
|
|
39
|
+
// outline-circle 테마일 때 추가 요소들 (React 컴포넌트와 동일)
|
|
40
|
+
if (theme === 'outline-circle') {
|
|
41
|
+
var innerOutline = document.createElement('div');
|
|
42
|
+
innerOutline.className = 'ncua-featured-icon__outline ncua-featured-icon__outline--inner';
|
|
43
|
+
div.appendChild(innerOutline);
|
|
44
|
+
var outerOutline = document.createElement('div');
|
|
45
|
+
outerOutline.className = 'ncua-featured-icon__outline ncua-featured-icon__outline--outer';
|
|
46
|
+
div.appendChild(outerOutline);
|
|
47
|
+
}
|
|
48
|
+
// SVG 아이콘 추가
|
|
49
|
+
var iconSize = iconSizeMap[size];
|
|
50
|
+
var svgWithSize = this.addSizeToSvg(svgString, iconSize);
|
|
51
|
+
div.innerHTML += svgWithSize;
|
|
52
|
+
return div;
|
|
53
|
+
};
|
|
54
|
+
FeaturedIcon.prototype.addSizeToSvg = function (svgString, size) {
|
|
55
|
+
return svgString.replace(/<svg([^>]*)>/, "<svg$1 width=\"".concat(size, "\" height=\"").concat(size, "\">"));
|
|
56
|
+
};
|
|
57
|
+
// Public methods
|
|
58
|
+
FeaturedIcon.prototype.getElement = function () {
|
|
59
|
+
return this.element;
|
|
60
|
+
};
|
|
61
|
+
FeaturedIcon.prototype.updateColor = function (color) {
|
|
62
|
+
this.element.className = this.element.className.replace(/ncua-featured-icon--(neutral|error|warning|success)/, "ncua-featured-icon--".concat(color));
|
|
63
|
+
this.options.color = color;
|
|
64
|
+
};
|
|
65
|
+
FeaturedIcon.prototype.updateSize = function (size) {
|
|
66
|
+
var iconSize = iconSizeMap[size];
|
|
67
|
+
this.element.className = this.element.className.replace(/ncua-featured-icon--(sm|md|lg|xl)/, "ncua-featured-icon--".concat(size));
|
|
68
|
+
var svgIcon = this.element.querySelector('svg');
|
|
69
|
+
if (svgIcon) {
|
|
70
|
+
svgIcon.setAttribute('width', String(iconSize));
|
|
71
|
+
svgIcon.setAttribute('height', String(iconSize));
|
|
72
|
+
}
|
|
73
|
+
this.options.size = size;
|
|
74
|
+
};
|
|
75
|
+
FeaturedIcon.prototype.destroy = function () {
|
|
76
|
+
if (this.element.parentNode) {
|
|
77
|
+
this.element.parentNode.removeChild(this.element);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
// Static factory method
|
|
81
|
+
FeaturedIcon.create = function (options) {
|
|
82
|
+
return new FeaturedIcon(options);
|
|
83
|
+
};
|
|
84
|
+
return FeaturedIcon;
|
|
85
|
+
}());
|
|
86
|
+
export { FeaturedIcon };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const FILE_INPUT_CLASS_NAMES: {
|
|
2
|
+
fileInput: string;
|
|
3
|
+
inputContainer: string;
|
|
4
|
+
label: string;
|
|
5
|
+
helpIcon: string;
|
|
6
|
+
hintText: string;
|
|
7
|
+
hintList: string;
|
|
8
|
+
hintItem: string;
|
|
9
|
+
fileTags: string;
|
|
10
|
+
fileTagContainer: string;
|
|
11
|
+
fileImage: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const getFileInputSizeClassName: (size: string) => string;
|
|
14
|
+
export declare const getLabelClassName: (isRequired?: boolean) => "ncua-label" | "ncua-label ncua-label--required";
|
|
15
|
+
export declare const getHintTextClassName: (destructive?: boolean) => "ncua-input__hint-text" | "ncua-input__hint-text ncua-input__hint-text--destructive";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// FileInput 관련 CSS 클래스명 상수
|
|
2
|
+
export var FILE_INPUT_CLASS_NAMES = {
|
|
3
|
+
fileInput: 'ncua-file-input',
|
|
4
|
+
inputContainer: 'ncua-file-input__input-container',
|
|
5
|
+
label: 'ncua-file-input__label',
|
|
6
|
+
helpIcon: 'ncua-input__help-icon',
|
|
7
|
+
hintText: 'ncua-input__hint-text',
|
|
8
|
+
hintList: 'ncua-file-input__hint-list',
|
|
9
|
+
hintItem: 'ncua-file-input__hint-item',
|
|
10
|
+
fileTags: 'ncua-file-input__file-tags',
|
|
11
|
+
fileTagContainer: 'ncua-file-input__file-tag-container',
|
|
12
|
+
fileImage: 'ncua-file-input__file-image',
|
|
13
|
+
};
|
|
14
|
+
export var getFileInputSizeClassName = function (size) { return "ncua-file-input--".concat(size); };
|
|
15
|
+
export var getLabelClassName = function (isRequired) {
|
|
16
|
+
return isRequired ? 'ncua-label ncua-label--required' : 'ncua-label';
|
|
17
|
+
};
|
|
18
|
+
export var getHintTextClassName = function (destructive) {
|
|
19
|
+
return destructive ? 'ncua-input__hint-text ncua-input__hint-text--destructive' : 'ncua-input__hint-text';
|
|
20
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare enum FileInputErrorType {
|
|
2
|
+
ALREADY_UPLOADED = "ALREADY_UPLOADED",
|
|
3
|
+
EXCEED_MAX_FILE_SIZE = "EXCEED_MAX_FILE_SIZE",
|
|
4
|
+
EXCEED_MAX_FILE_COUNT = "EXCEED_MAX_FILE_COUNT"
|
|
5
|
+
}
|
|
6
|
+
export interface InvalidFile extends Omit<File, 'constructor'> {
|
|
7
|
+
errorType: FileInputErrorType;
|
|
8
|
+
}
|
|
9
|
+
export type FileInputSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
10
|
+
export interface BaseFileInputOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Size of the input
|
|
13
|
+
*/
|
|
14
|
+
size?: FileInputSize;
|
|
15
|
+
/**
|
|
16
|
+
* Accepted file types
|
|
17
|
+
* e.g. '.jpg,.png,.pdf' or 'image/*'
|
|
18
|
+
*/
|
|
19
|
+
accept?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Allow multiple file selection
|
|
22
|
+
*/
|
|
23
|
+
multiple?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum number of files
|
|
26
|
+
*/
|
|
27
|
+
maxFileCount?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Maximum file size in bytes
|
|
30
|
+
*/
|
|
31
|
+
maxFileSize?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Callback when files change
|
|
34
|
+
*/
|
|
35
|
+
onChange?: (files: File[]) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Callback when file selection fails
|
|
38
|
+
*/
|
|
39
|
+
onFail?: (files: InvalidFile[]) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Label shown on the button
|
|
42
|
+
*/
|
|
43
|
+
buttonLabel?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the input is disabled
|
|
46
|
+
*/
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Label text
|
|
50
|
+
*/
|
|
51
|
+
label?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Hint text items to display as a list
|
|
54
|
+
*/
|
|
55
|
+
hintItems?: string[];
|
|
56
|
+
/**
|
|
57
|
+
* Whether the input is required
|
|
58
|
+
*/
|
|
59
|
+
isRequired?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to show the help icon
|
|
62
|
+
*/
|
|
63
|
+
showHelpIcon?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Hint text to display
|
|
66
|
+
*/
|
|
67
|
+
hintText?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Validation state
|
|
70
|
+
*/
|
|
71
|
+
validation?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Destructive state
|
|
74
|
+
*/
|
|
75
|
+
destructive?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Container element or selector to automatically append the file input
|
|
78
|
+
* Can be a DOM element, element ID, or CSS selector
|
|
79
|
+
*/
|
|
80
|
+
container?: HTMLElement | string;
|
|
81
|
+
/**
|
|
82
|
+
* Additional CSS class names to add to the main file input element
|
|
83
|
+
*/
|
|
84
|
+
className?: string;
|
|
85
|
+
}
|
|
86
|
+
type RequiredKeys = 'size' | 'buttonLabel' | 'multiple' | 'disabled';
|
|
87
|
+
export type RequiredFileInputProps = Required<Pick<BaseFileInputOptions, RequiredKeys>> & Omit<BaseFileInputOptions, RequiredKeys | 'container'>;
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// FileInput 관련 타입 정의 (React FileInput.tsx와 동일)
|
|
2
|
+
export var FileInputErrorType;
|
|
3
|
+
(function (FileInputErrorType) {
|
|
4
|
+
FileInputErrorType["ALREADY_UPLOADED"] = "ALREADY_UPLOADED";
|
|
5
|
+
FileInputErrorType["EXCEED_MAX_FILE_SIZE"] = "EXCEED_MAX_FILE_SIZE";
|
|
6
|
+
FileInputErrorType["EXCEED_MAX_FILE_COUNT"] = "EXCEED_MAX_FILE_COUNT";
|
|
7
|
+
})(FileInputErrorType || (FileInputErrorType = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseFileInputOptions } from './const/types';
|
|
2
|
+
export declare class FileInput {
|
|
3
|
+
private model;
|
|
4
|
+
private view;
|
|
5
|
+
constructor(options: BaseFileInputOptions);
|
|
6
|
+
private appendToContainer;
|
|
7
|
+
private setupEventListeners;
|
|
8
|
+
private handleBrowseClick;
|
|
9
|
+
private handleFileChange;
|
|
10
|
+
getElement(): HTMLDivElement;
|
|
11
|
+
setDisabled(disabled: boolean): void;
|
|
12
|
+
destroy(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { FileInputModel } from './fileInputModel';
|
|
2
|
+
import { FileInputView } from './fileInputView';
|
|
3
|
+
var FileInput = /** @class */ (function () {
|
|
4
|
+
function FileInput(options) {
|
|
5
|
+
var _this = this;
|
|
6
|
+
this.handleBrowseClick = function () {
|
|
7
|
+
if (!_this.model.isDisabled()) {
|
|
8
|
+
_this.view.getFileInputElement().click();
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
this.handleFileChange = function (event) {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
var target = event.target;
|
|
14
|
+
var selectedFiles = target.files;
|
|
15
|
+
if (!selectedFiles || selectedFiles.length === 0)
|
|
16
|
+
return;
|
|
17
|
+
var _c = _this.model.validateFiles(Array.from(selectedFiles)), validFiles = _c.validFiles, invalidFiles = _c.invalidFiles;
|
|
18
|
+
var options = _this.model.getOptions();
|
|
19
|
+
if (validFiles.length > 0) {
|
|
20
|
+
(_a = options.onChange) === null || _a === void 0 ? void 0 : _a.call(options, validFiles);
|
|
21
|
+
}
|
|
22
|
+
if (invalidFiles.length > 0) {
|
|
23
|
+
(_b = options.onFail) === null || _b === void 0 ? void 0 : _b.call(options, invalidFiles);
|
|
24
|
+
}
|
|
25
|
+
target.value = '';
|
|
26
|
+
};
|
|
27
|
+
this.model = new FileInputModel(options);
|
|
28
|
+
this.view = new FileInputView(this.model.getOptions());
|
|
29
|
+
this.setupEventListeners();
|
|
30
|
+
if (options.container) {
|
|
31
|
+
this.appendToContainer(options.container);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
FileInput.prototype.appendToContainer = function (container) {
|
|
35
|
+
var containerElement = null;
|
|
36
|
+
if (typeof container === 'string') {
|
|
37
|
+
containerElement = document.getElementById(container);
|
|
38
|
+
if (!containerElement) {
|
|
39
|
+
containerElement = document.querySelector(container);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
containerElement = container;
|
|
44
|
+
}
|
|
45
|
+
if (containerElement) {
|
|
46
|
+
containerElement.appendChild(this.getElement());
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
console.warn("FileInput: Container not found:", container);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
FileInput.prototype.setupEventListeners = function () {
|
|
53
|
+
var fileInput = this.view.getFileInputElement();
|
|
54
|
+
var button = this.view.getButtonElement();
|
|
55
|
+
fileInput.addEventListener('change', this.handleFileChange);
|
|
56
|
+
button.addEventListener('click', this.handleBrowseClick);
|
|
57
|
+
};
|
|
58
|
+
// Public API
|
|
59
|
+
FileInput.prototype.getElement = function () {
|
|
60
|
+
return this.view.getElement();
|
|
61
|
+
};
|
|
62
|
+
FileInput.prototype.setDisabled = function (disabled) {
|
|
63
|
+
this.model.setDisabled(disabled);
|
|
64
|
+
this.view.setButtonDisabled(disabled);
|
|
65
|
+
};
|
|
66
|
+
FileInput.prototype.destroy = function () {
|
|
67
|
+
var fileInput = this.view.getFileInputElement();
|
|
68
|
+
var button = this.view.getButtonElement();
|
|
69
|
+
fileInput.removeEventListener('change', this.handleFileChange);
|
|
70
|
+
button.removeEventListener('click', this.handleBrowseClick);
|
|
71
|
+
this.view.destroy();
|
|
72
|
+
};
|
|
73
|
+
return FileInput;
|
|
74
|
+
}());
|
|
75
|
+
export { FileInput };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseFileInputOptions, InvalidFile, RequiredFileInputProps } from './const/types';
|
|
2
|
+
export declare class FileInputModel {
|
|
3
|
+
private options;
|
|
4
|
+
constructor(options: BaseFileInputOptions);
|
|
5
|
+
getOptions(): RequiredFileInputProps;
|
|
6
|
+
validateFiles(fileList: File[]): {
|
|
7
|
+
validFiles: File[];
|
|
8
|
+
invalidFiles: InvalidFile[];
|
|
9
|
+
};
|
|
10
|
+
setDisabled(disabled: boolean): void;
|
|
11
|
+
isDisabled(): boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { FileInputErrorType } from './const/types';
|
|
13
|
+
var FileInputModel = /** @class */ (function () {
|
|
14
|
+
function FileInputModel(options) {
|
|
15
|
+
this.options = __assign({ size: 'xs', multiple: false, buttonLabel: '파일 찾기', disabled: false }, options);
|
|
16
|
+
}
|
|
17
|
+
FileInputModel.prototype.getOptions = function () {
|
|
18
|
+
return this.options;
|
|
19
|
+
};
|
|
20
|
+
FileInputModel.prototype.validateFiles = function (fileList) {
|
|
21
|
+
var validFiles = [];
|
|
22
|
+
var invalidFiles = [];
|
|
23
|
+
for (var _i = 0, fileList_1 = fileList; _i < fileList_1.length; _i++) {
|
|
24
|
+
var file = fileList_1[_i];
|
|
25
|
+
if (this.options.maxFileSize && file.size > this.options.maxFileSize) {
|
|
26
|
+
invalidFiles.push(__assign(__assign({}, file), { errorType: FileInputErrorType.EXCEED_MAX_FILE_SIZE }));
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (this.options.maxFileCount && validFiles.length >= this.options.maxFileCount) {
|
|
30
|
+
invalidFiles.push(__assign(__assign({}, file), { errorType: FileInputErrorType.EXCEED_MAX_FILE_COUNT }));
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
validFiles.push(file);
|
|
34
|
+
}
|
|
35
|
+
return { validFiles: validFiles, invalidFiles: invalidFiles };
|
|
36
|
+
};
|
|
37
|
+
FileInputModel.prototype.setDisabled = function (disabled) {
|
|
38
|
+
this.options.disabled = disabled;
|
|
39
|
+
};
|
|
40
|
+
FileInputModel.prototype.isDisabled = function () {
|
|
41
|
+
return this.options.disabled;
|
|
42
|
+
};
|
|
43
|
+
return FileInputModel;
|
|
44
|
+
}());
|
|
45
|
+
export { FileInputModel };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { RequiredFileInputProps } from './const/types';
|
|
2
|
+
export declare class FileInputView {
|
|
3
|
+
private element;
|
|
4
|
+
private fileInputElement;
|
|
5
|
+
private buttonElement;
|
|
6
|
+
private options;
|
|
7
|
+
constructor(options: RequiredFileInputProps);
|
|
8
|
+
/**
|
|
9
|
+
* 메인 DOM 요소 생성
|
|
10
|
+
*/
|
|
11
|
+
private createElement;
|
|
12
|
+
/**
|
|
13
|
+
* Hidden file input 생성
|
|
14
|
+
*/
|
|
15
|
+
private createFileInput;
|
|
16
|
+
/**
|
|
17
|
+
* Input container 생성
|
|
18
|
+
*/
|
|
19
|
+
private createInputContainer;
|
|
20
|
+
/**
|
|
21
|
+
* Label container 생성
|
|
22
|
+
*/
|
|
23
|
+
private createLabelContainer;
|
|
24
|
+
/**
|
|
25
|
+
* Help icon 생성
|
|
26
|
+
*/
|
|
27
|
+
private createHelpIcon;
|
|
28
|
+
private createButton;
|
|
29
|
+
/**
|
|
30
|
+
* Hint text 생성
|
|
31
|
+
*/
|
|
32
|
+
private createHintText;
|
|
33
|
+
/**
|
|
34
|
+
* Hint list 생성
|
|
35
|
+
*/
|
|
36
|
+
private createHintList;
|
|
37
|
+
setButtonDisabled(disabled: boolean): void;
|
|
38
|
+
getElement(): HTMLDivElement;
|
|
39
|
+
getFileInputElement(): HTMLInputElement;
|
|
40
|
+
getButtonElement(): HTMLButtonElement;
|
|
41
|
+
destroy(): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { FILE_INPUT_CLASS_NAMES, getFileInputSizeClassName, getHintTextClassName, getLabelClassName, } from './const/classNames';
|
|
2
|
+
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>";
|
|
3
|
+
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>";
|
|
4
|
+
var FileInputView = /** @class */ (function () {
|
|
5
|
+
function FileInputView(options) {
|
|
6
|
+
this.options = options;
|
|
7
|
+
this.element = this.createElement();
|
|
8
|
+
this.fileInputElement = this.element.querySelector('input[type="file"]');
|
|
9
|
+
this.buttonElement = this.element.querySelector('button');
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 메인 DOM 요소 생성
|
|
13
|
+
*/
|
|
14
|
+
FileInputView.prototype.createElement = function () {
|
|
15
|
+
var container = document.createElement('div');
|
|
16
|
+
var baseClasses = "".concat(FILE_INPUT_CLASS_NAMES.fileInput, " ").concat(getFileInputSizeClassName(this.options.size));
|
|
17
|
+
var customClasses = this.options.className ? " ".concat(this.options.className) : '';
|
|
18
|
+
container.className = baseClasses + customClasses;
|
|
19
|
+
// Hidden file input 생성
|
|
20
|
+
container.appendChild(this.createFileInput());
|
|
21
|
+
// Input container
|
|
22
|
+
container.appendChild(this.createInputContainer());
|
|
23
|
+
// Hint list
|
|
24
|
+
if (this.options.hintItems && this.options.hintItems.length > 0) {
|
|
25
|
+
container.appendChild(this.createHintList());
|
|
26
|
+
}
|
|
27
|
+
return container;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Hidden file input 생성
|
|
31
|
+
*/
|
|
32
|
+
FileInputView.prototype.createFileInput = function () {
|
|
33
|
+
var input = document.createElement('input');
|
|
34
|
+
input.type = 'file';
|
|
35
|
+
input.hidden = true;
|
|
36
|
+
input.tabIndex = -1;
|
|
37
|
+
input.setAttribute('aria-hidden', 'true');
|
|
38
|
+
input.classList.add('no-filestyle');
|
|
39
|
+
if (this.options.accept) {
|
|
40
|
+
input.accept = this.options.accept;
|
|
41
|
+
}
|
|
42
|
+
if (this.options.multiple) {
|
|
43
|
+
input.multiple = true;
|
|
44
|
+
}
|
|
45
|
+
return input;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Input container 생성
|
|
49
|
+
*/
|
|
50
|
+
FileInputView.prototype.createInputContainer = function () {
|
|
51
|
+
var container = document.createElement('div');
|
|
52
|
+
container.className = FILE_INPUT_CLASS_NAMES.inputContainer;
|
|
53
|
+
// Label
|
|
54
|
+
if (this.options.label) {
|
|
55
|
+
container.appendChild(this.createLabelContainer());
|
|
56
|
+
}
|
|
57
|
+
// Button
|
|
58
|
+
container.appendChild(this.createButton());
|
|
59
|
+
// Hint text
|
|
60
|
+
if (this.options.hintText) {
|
|
61
|
+
container.appendChild(this.createHintText());
|
|
62
|
+
}
|
|
63
|
+
return container;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Label container 생성
|
|
67
|
+
*/
|
|
68
|
+
FileInputView.prototype.createLabelContainer = function () {
|
|
69
|
+
var container = document.createElement('div');
|
|
70
|
+
container.className = FILE_INPUT_CLASS_NAMES.label;
|
|
71
|
+
var label = document.createElement('label');
|
|
72
|
+
label.className = getLabelClassName(this.options.isRequired);
|
|
73
|
+
label.textContent = this.options.label;
|
|
74
|
+
container.appendChild(label);
|
|
75
|
+
if (this.options.showHelpIcon) {
|
|
76
|
+
container.appendChild(this.createHelpIcon());
|
|
77
|
+
}
|
|
78
|
+
return container;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Help icon 생성
|
|
82
|
+
*/
|
|
83
|
+
FileInputView.prototype.createHelpIcon = function () {
|
|
84
|
+
var iconContainer = document.createElement('span');
|
|
85
|
+
iconContainer.className = FILE_INPUT_CLASS_NAMES.helpIcon;
|
|
86
|
+
iconContainer.innerHTML = HELP_ICON_SVG;
|
|
87
|
+
return iconContainer;
|
|
88
|
+
};
|
|
89
|
+
FileInputView.prototype.createButton = function () {
|
|
90
|
+
var button = document.createElement('button');
|
|
91
|
+
button.type = 'button';
|
|
92
|
+
button.className = "ncua-btn ncua-btn--".concat(this.options.size, " ncua-btn--secondary-gray");
|
|
93
|
+
button.disabled = this.options.disabled;
|
|
94
|
+
button.insertAdjacentHTML('beforeend', SHARE_ICON_SVG);
|
|
95
|
+
var label = document.createElement('span');
|
|
96
|
+
label.className = 'ncua-btn__label';
|
|
97
|
+
label.textContent = this.options.buttonLabel;
|
|
98
|
+
button.appendChild(label);
|
|
99
|
+
return button;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Hint text 생성
|
|
103
|
+
*/
|
|
104
|
+
FileInputView.prototype.createHintText = function () {
|
|
105
|
+
var hintText = document.createElement('div');
|
|
106
|
+
hintText.className = getHintTextClassName(this.options.destructive);
|
|
107
|
+
hintText.textContent = this.options.hintText;
|
|
108
|
+
return hintText;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Hint list 생성
|
|
112
|
+
*/
|
|
113
|
+
FileInputView.prototype.createHintList = function () {
|
|
114
|
+
var _a;
|
|
115
|
+
var ul = document.createElement('ul');
|
|
116
|
+
ul.className = FILE_INPUT_CLASS_NAMES.hintList;
|
|
117
|
+
(_a = this.options.hintItems) === null || _a === void 0 ? void 0 : _a.forEach(function (hint) {
|
|
118
|
+
var li = document.createElement('li');
|
|
119
|
+
li.className = FILE_INPUT_CLASS_NAMES.hintItem;
|
|
120
|
+
li.textContent = hint;
|
|
121
|
+
ul.appendChild(li);
|
|
122
|
+
});
|
|
123
|
+
return ul;
|
|
124
|
+
};
|
|
125
|
+
FileInputView.prototype.setButtonDisabled = function (disabled) {
|
|
126
|
+
this.buttonElement.disabled = disabled;
|
|
127
|
+
};
|
|
128
|
+
FileInputView.prototype.getElement = function () {
|
|
129
|
+
return this.element;
|
|
130
|
+
};
|
|
131
|
+
FileInputView.prototype.getFileInputElement = function () {
|
|
132
|
+
return this.fileInputElement;
|
|
133
|
+
};
|
|
134
|
+
FileInputView.prototype.getButtonElement = function () {
|
|
135
|
+
return this.buttonElement;
|
|
136
|
+
};
|
|
137
|
+
FileInputView.prototype.destroy = function () {
|
|
138
|
+
// View 리소스 정리 - 이벤트 리스너는 FileInput에서 관리
|
|
139
|
+
};
|
|
140
|
+
return FileInputView;
|
|
141
|
+
}());
|
|
142
|
+
export { FileInputView };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FileInput } from './fileInput';
|
|
2
|
+
export * from './const/classNames';
|
|
3
|
+
export * from './const/types';
|
|
4
|
+
export { FileInput } from './fileInput';
|
|
5
|
+
// 전역 등록 (추후 index.ts와 개별동작 할 수 있게끔 대비)
|
|
6
|
+
if (typeof window !== 'undefined') {
|
|
7
|
+
window.ncua = window.ncua || {};
|
|
8
|
+
window.ncua.FileInput = FileInput;
|
|
9
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { BaseImageFileInputOptions, UploadedFile } from './const/types';
|
|
2
|
+
export declare class ImageFileInput {
|
|
3
3
|
private model;
|
|
4
4
|
private view;
|
|
5
|
-
constructor(options:
|
|
5
|
+
constructor(options: BaseImageFileInputOptions);
|
|
6
6
|
/**
|
|
7
7
|
* 컨테이너에 요소 추가
|
|
8
8
|
*/
|
|
@@ -21,13 +21,10 @@ export declare class FileInput {
|
|
|
21
21
|
private handleFileChange;
|
|
22
22
|
/**
|
|
23
23
|
* 파일 제거 핸들러
|
|
24
|
-
* 주의: 이 메서드는 renderFileTags에서 사용되지만,
|
|
25
|
-
* 파일 선택 시 자동 렌더링이 비활성화되어 있으므로 수동으로 호출해야 함
|
|
26
24
|
*/
|
|
27
25
|
private handleRemoveFile;
|
|
28
26
|
/**
|
|
29
27
|
* 변경 알림 (onChange/onFileSelect 호출)
|
|
30
|
-
* 주의: 이 메서드는 setFiles 등 내부적으로 파일 목록이 변경될 때만 사용됨
|
|
31
28
|
*/
|
|
32
29
|
private notifyChange;
|
|
33
30
|
/**
|
|
@@ -35,10 +32,10 @@ export declare class FileInput {
|
|
|
35
32
|
*/
|
|
36
33
|
private render;
|
|
37
34
|
/**
|
|
38
|
-
*
|
|
39
|
-
* 사용자가 콜백에서 직접 호출하여
|
|
35
|
+
* 이미지 프리뷰를 수동으로 렌더링
|
|
36
|
+
* 사용자가 콜백에서 직접 호출하여 프리뷰를 렌더링할 수 있음
|
|
40
37
|
*/
|
|
41
|
-
|
|
38
|
+
renderImagePreviews(): void;
|
|
42
39
|
/**
|
|
43
40
|
* DOM 요소 반환
|
|
44
41
|
*/
|
|
@@ -64,4 +61,3 @@ export declare class FileInput {
|
|
|
64
61
|
*/
|
|
65
62
|
destroy(): void;
|
|
66
63
|
}
|
|
67
|
-
//# sourceMappingURL=FileInput.d.ts.map
|