@ncds/ui-admin 1.8.1 → 1.8.2
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/src/components/badge/index.js +11 -0
- package/dist/cjs/src/components/date-picker/index.js +11 -0
- package/dist/cjs/src/components/image-file-input/components/index.js +16 -0
- package/dist/cjs/src/components/image-file-input/index.js +11 -0
- package/dist/cjs/src/components/progress-bar/components/index.js +27 -0
- package/dist/cjs/src/components/progress-bar/hooks/index.js +16 -0
- package/dist/cjs/src/components/progress-bar/index.js +33 -0
- package/dist/cjs/src/components/select/Select.js +0 -1
- package/dist/cjs/src/components/select-dropdown/index.js +11 -7
- package/dist/cjs/src/components/switch/index.js +11 -7
- package/dist/cjs/src/components/tooltip/Tooltip.js +170 -104
- package/dist/cjs/src/hooks/dropdown/index.js +61 -37
- package/dist/cjs/src/hooks/index.js +31 -25
- package/dist/cjs/vitest.config.js +13 -0
- package/dist/esm/src/components/badge/index.js +2 -1
- package/dist/esm/src/components/date-picker/index.js +1 -0
- package/dist/esm/src/components/empty-state/EmptyState.js +2 -3
- package/dist/esm/src/components/image-file-input/components/index.js +1 -0
- package/dist/esm/src/components/image-file-input/index.js +2 -1
- package/dist/esm/src/components/progress-bar/components/index.js +2 -0
- package/dist/esm/src/components/progress-bar/hooks/index.js +1 -0
- package/dist/esm/src/components/progress-bar/index.js +4 -1
- package/dist/esm/src/components/select/Select.js +0 -1
- package/dist/esm/src/components/select-dropdown/index.js +1 -1
- package/dist/esm/src/components/switch/index.js +1 -1
- package/dist/esm/src/components/tag/Tag.js +2 -3
- package/dist/esm/src/components/tooltip/Tooltip.js +172 -106
- package/dist/esm/src/hooks/dropdown/index.js +6 -6
- package/dist/esm/src/hooks/index.js +3 -3
- package/dist/esm/src/types/component-meta.js +2 -0
- package/dist/esm/vitest.config.js +7 -0
- package/dist/temp/src/components/badge/index.d.ts +1 -0
- package/dist/temp/src/components/badge/index.js +1 -0
- package/dist/temp/src/components/date-picker/index.d.ts +1 -0
- package/dist/temp/src/components/date-picker/index.js +1 -0
- package/dist/temp/src/components/empty-state/EmptyState.d.ts +3 -5
- package/dist/temp/src/components/empty-state/EmptyState.js +1 -2
- package/dist/temp/src/components/image-file-input/components/index.d.ts +1 -0
- package/dist/temp/src/components/image-file-input/components/index.js +1 -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/progress-bar/components/index.d.ts +2 -0
- package/dist/temp/src/components/progress-bar/components/index.js +2 -0
- package/dist/temp/src/components/progress-bar/hooks/index.d.ts +1 -0
- package/dist/temp/src/components/progress-bar/hooks/index.js +1 -0
- package/dist/temp/src/components/progress-bar/index.d.ts +3 -0
- package/dist/temp/src/components/progress-bar/index.js +3 -0
- package/dist/temp/src/components/select/Select.js +1 -1
- package/dist/temp/src/components/select-dropdown/index.d.ts +1 -1
- package/dist/temp/src/components/select-dropdown/index.js +1 -1
- package/dist/temp/src/components/spinner/Spinner.d.ts +1 -2
- package/dist/temp/src/components/switch/index.d.ts +1 -2
- package/dist/temp/src/components/switch/index.js +1 -1
- package/dist/temp/src/components/tag/Tag.d.ts +3 -5
- package/dist/temp/src/components/tag/Tag.js +1 -2
- package/dist/temp/src/components/tooltip/Tooltip.d.ts +4 -2
- package/dist/temp/src/components/tooltip/Tooltip.js +126 -68
- package/dist/temp/src/hooks/dropdown/index.d.ts +6 -6
- package/dist/temp/src/hooks/dropdown/index.js +6 -6
- package/dist/temp/src/hooks/index.d.ts +3 -3
- package/dist/temp/src/hooks/index.js +3 -3
- package/dist/temp/src/types/component-meta.d.ts +26 -0
- package/dist/temp/src/types/component-meta.js +2 -0
- package/dist/temp/src/types/dropdown/option.d.ts +2 -4
- package/dist/temp/src/types/side-slot.d.ts +9 -1
- package/dist/temp/vitest.config.d.ts +2 -0
- package/dist/temp/vitest.config.js +7 -0
- package/dist/types/src/components/badge/index.d.ts +1 -0
- package/dist/types/src/components/date-picker/index.d.ts +1 -0
- package/dist/types/src/components/empty-state/EmptyState.d.ts +3 -5
- package/dist/types/src/components/image-file-input/components/index.d.ts +1 -0
- package/dist/types/src/components/image-file-input/index.d.ts +1 -0
- package/dist/types/src/components/progress-bar/components/index.d.ts +2 -0
- package/dist/types/src/components/progress-bar/hooks/index.d.ts +1 -0
- package/dist/types/src/components/progress-bar/index.d.ts +3 -0
- package/dist/types/src/components/select-dropdown/index.d.ts +1 -1
- package/dist/types/src/components/spinner/Spinner.d.ts +1 -2
- package/dist/types/src/components/switch/index.d.ts +1 -2
- package/dist/types/src/components/tag/Tag.d.ts +3 -5
- package/dist/types/src/components/tooltip/Tooltip.d.ts +4 -2
- package/dist/types/src/hooks/dropdown/index.d.ts +6 -6
- package/dist/types/src/hooks/index.d.ts +3 -3
- package/dist/types/src/types/component-meta.d.ts +26 -0
- package/dist/types/src/types/dropdown/option.d.ts +2 -4
- package/dist/types/src/types/side-slot.d.ts +9 -1
- package/dist/types/vitest.config.d.ts +2 -0
- package/dist/ui-admin/assets/styles/style.css +18 -7
- package/package.json +6 -1
- package/dist/cjs/assets/scripts/baseBox.js +0 -146
- package/dist/cjs/assets/scripts/comboBox.js +0 -137
- package/dist/cjs/assets/scripts/datePicker.js +0 -671
- package/dist/cjs/assets/scripts/featuredIcon.js +0 -87
- package/dist/cjs/assets/scripts/fileInput/const/classNames.js +0 -25
- package/dist/cjs/assets/scripts/fileInput/const/index.js +0 -27
- package/dist/cjs/assets/scripts/fileInput/const/types.js +0 -13
- package/dist/cjs/assets/scripts/fileInput/fileInput.js +0 -78
- package/dist/cjs/assets/scripts/fileInput/fileInputModel.js +0 -53
- package/dist/cjs/assets/scripts/fileInput/fileInputView.js +0 -152
- package/dist/cjs/assets/scripts/fileInput/index.js +0 -44
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInput.js +0 -184
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputModel.js +0 -222
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +0 -356
- package/dist/cjs/assets/scripts/imageFileInput/const/classNames.js +0 -31
- package/dist/cjs/assets/scripts/imageFileInput/const/index.js +0 -27
- package/dist/cjs/assets/scripts/imageFileInput/const/types.js +0 -13
- package/dist/cjs/assets/scripts/imageFileInput/index.js +0 -44
- package/dist/cjs/assets/scripts/index.js +0 -32
- package/dist/cjs/assets/scripts/modal/Modal.js +0 -104
- package/dist/cjs/assets/scripts/modal/ModalActions.js +0 -116
- package/dist/cjs/assets/scripts/modal/ModalContent.js +0 -46
- package/dist/cjs/assets/scripts/modal/ModalHeader.js +0 -104
- package/dist/cjs/assets/scripts/modal/const/classNames.js +0 -33
- package/dist/cjs/assets/scripts/modal/const/index.js +0 -27
- package/dist/cjs/assets/scripts/modal/index.js +0 -61
- package/dist/cjs/assets/scripts/modal/utils/contentUtils.js +0 -35
- package/dist/cjs/assets/scripts/notification/FloatingNotification.js +0 -178
- package/dist/cjs/assets/scripts/notification/FullWidthNotification.js +0 -132
- package/dist/cjs/assets/scripts/notification/MessageNotification.js +0 -159
- package/dist/cjs/assets/scripts/notification/Notification.js +0 -101
- package/dist/cjs/assets/scripts/notification/const/classNames.js +0 -50
- package/dist/cjs/assets/scripts/notification/const/icons.js +0 -31
- package/dist/cjs/assets/scripts/notification/const/index.js +0 -87
- package/dist/cjs/assets/scripts/notification/const/sizes.js +0 -46
- package/dist/cjs/assets/scripts/notification/const/types.js +0 -14
- package/dist/cjs/assets/scripts/notification/index.js +0 -92
- package/dist/cjs/assets/scripts/notification/utils.js +0 -97
- package/dist/cjs/assets/scripts/progress-bar/ProgressBar.js +0 -271
- package/dist/cjs/assets/scripts/progress-bar/index.js +0 -12
- package/dist/cjs/assets/scripts/selectBox.js +0 -169
- package/dist/cjs/assets/scripts/shared/ButtonCloseX.js +0 -45
- package/dist/cjs/assets/scripts/tab.js +0 -40
- package/dist/cjs/assets/scripts/table/Table.js +0 -377
- package/dist/cjs/assets/scripts/table/const/classNames.js +0 -33
- package/dist/cjs/assets/scripts/table/const/index.js +0 -27
- package/dist/cjs/assets/scripts/table/const/types.js +0 -5
- package/dist/cjs/assets/scripts/table/index.js +0 -43
- package/dist/cjs/assets/scripts/tag/Tag.js +0 -261
- package/dist/cjs/assets/scripts/tag/const/classNames.js +0 -20
- package/dist/cjs/assets/scripts/tag/const/index.js +0 -38
- package/dist/cjs/assets/scripts/tag/const/sizes.js +0 -13
- package/dist/cjs/assets/scripts/tag/const/types.js +0 -5
- package/dist/cjs/assets/scripts/tag/index.js +0 -44
- package/dist/cjs/assets/scripts/tooltip/Tooltip.js +0 -353
- package/dist/cjs/assets/scripts/tooltip/TooltipLayerManager.js +0 -82
- package/dist/cjs/assets/scripts/tooltip/const/classNames.js +0 -29
- package/dist/cjs/assets/scripts/tooltip/const/constants.js +0 -56
- package/dist/cjs/assets/scripts/tooltip/const/icons.js +0 -15
- package/dist/cjs/assets/scripts/tooltip/const/index.js +0 -123
- package/dist/cjs/assets/scripts/tooltip/const/templates.js +0 -66
- package/dist/cjs/assets/scripts/tooltip/const/types.js +0 -5
- package/dist/cjs/assets/scripts/tooltip/index.js +0 -57
- package/dist/cjs/assets/scripts/tooltip/utils.js +0 -40
- package/dist/cjs/assets/scripts/utils/debounce.js +0 -32
- package/dist/cjs/assets/scripts/utils/unifiedBox/domRenderer.js +0 -370
- package/dist/cjs/assets/scripts/utils/unifiedBox/dropdownModel.js +0 -285
- package/dist/cjs/assets/scripts/utils/unifiedBox/unifiedBoxController.js +0 -622
- package/dist/cjs/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +0 -473
- package/dist/esm/assets/scripts/baseBox.js +0 -139
- package/dist/esm/assets/scripts/comboBox.js +0 -130
- package/dist/esm/assets/scripts/datePicker.js +0 -663
- package/dist/esm/assets/scripts/featuredIcon.js +0 -80
- package/dist/esm/assets/scripts/fileInput/const/classNames.js +0 -16
- package/dist/esm/assets/scripts/fileInput/const/index.js +0 -2
- package/dist/esm/assets/scripts/fileInput/const/types.js +0 -7
- package/dist/esm/assets/scripts/fileInput/fileInput.js +0 -71
- package/dist/esm/assets/scripts/fileInput/fileInputModel.js +0 -46
- package/dist/esm/assets/scripts/fileInput/fileInputView.js +0 -145
- package/dist/esm/assets/scripts/fileInput/index.js +0 -9
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInput.js +0 -177
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInputModel.js +0 -215
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +0 -349
- package/dist/esm/assets/scripts/imageFileInput/const/classNames.js +0 -20
- package/dist/esm/assets/scripts/imageFileInput/const/index.js +0 -2
- package/dist/esm/assets/scripts/imageFileInput/const/types.js +0 -7
- package/dist/esm/assets/scripts/imageFileInput/index.js +0 -9
- package/dist/esm/assets/scripts/index.js +0 -30
- package/dist/esm/assets/scripts/modal/Modal.js +0 -98
- package/dist/esm/assets/scripts/modal/ModalActions.js +0 -109
- package/dist/esm/assets/scripts/modal/ModalContent.js +0 -39
- package/dist/esm/assets/scripts/modal/ModalHeader.js +0 -97
- package/dist/esm/assets/scripts/modal/const/classNames.js +0 -23
- package/dist/esm/assets/scripts/modal/const/index.js +0 -2
- package/dist/esm/assets/scripts/modal/const/types.js +0 -1
- package/dist/esm/assets/scripts/modal/index.js +0 -15
- package/dist/esm/assets/scripts/modal/utils/contentUtils.js +0 -28
- package/dist/esm/assets/scripts/notification/FloatingNotification.js +0 -172
- package/dist/esm/assets/scripts/notification/FullWidthNotification.js +0 -125
- package/dist/esm/assets/scripts/notification/MessageNotification.js +0 -152
- package/dist/esm/assets/scripts/notification/Notification.js +0 -94
- package/dist/esm/assets/scripts/notification/const/classNames.js +0 -44
- package/dist/esm/assets/scripts/notification/const/icons.js +0 -25
- package/dist/esm/assets/scripts/notification/const/index.js +0 -4
- package/dist/esm/assets/scripts/notification/const/sizes.js +0 -40
- package/dist/esm/assets/scripts/notification/const/types.js +0 -8
- package/dist/esm/assets/scripts/notification/index.js +0 -11
- package/dist/esm/assets/scripts/notification/utils.js +0 -84
- package/dist/esm/assets/scripts/progress-bar/ProgressBar.js +0 -264
- package/dist/esm/assets/scripts/progress-bar/index.js +0 -1
- package/dist/esm/assets/scripts/selectBox.js +0 -162
- package/dist/esm/assets/scripts/shared/ButtonCloseX.js +0 -37
- package/dist/esm/assets/scripts/tab.js +0 -33
- package/dist/esm/assets/scripts/table/Table.js +0 -370
- package/dist/esm/assets/scripts/table/const/classNames.js +0 -27
- package/dist/esm/assets/scripts/table/const/index.js +0 -2
- package/dist/esm/assets/scripts/table/const/types.js +0 -1
- package/dist/esm/assets/scripts/table/index.js +0 -8
- package/dist/esm/assets/scripts/tag/Tag.js +0 -254
- package/dist/esm/assets/scripts/tag/const/classNames.js +0 -12
- package/dist/esm/assets/scripts/tag/const/index.js +0 -3
- package/dist/esm/assets/scripts/tag/const/sizes.js +0 -7
- package/dist/esm/assets/scripts/tag/const/types.js +0 -1
- package/dist/esm/assets/scripts/tag/index.js +0 -9
- package/dist/esm/assets/scripts/tooltip/Tooltip.js +0 -346
- package/dist/esm/assets/scripts/tooltip/TooltipLayerManager.js +0 -75
- package/dist/esm/assets/scripts/tooltip/const/classNames.js +0 -23
- package/dist/esm/assets/scripts/tooltip/const/constants.js +0 -50
- package/dist/esm/assets/scripts/tooltip/const/icons.js +0 -9
- package/dist/esm/assets/scripts/tooltip/const/index.js +0 -4
- package/dist/esm/assets/scripts/tooltip/const/templates.js +0 -59
- package/dist/esm/assets/scripts/tooltip/const/types.js +0 -1
- package/dist/esm/assets/scripts/tooltip/index.js +0 -10
- package/dist/esm/assets/scripts/tooltip/utils.js +0 -34
- package/dist/esm/assets/scripts/utils/debounce.js +0 -26
- package/dist/esm/assets/scripts/utils/unifiedBox/domRenderer.js +0 -363
- package/dist/esm/assets/scripts/utils/unifiedBox/dropdownModel.js +0 -279
- package/dist/esm/assets/scripts/utils/unifiedBox/unifiedBoxController.js +0 -615
- package/dist/esm/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +0 -466
- package/dist/temp/assets/scripts/baseBox.d.ts +0 -55
- package/dist/temp/assets/scripts/baseBox.js +0 -140
- package/dist/temp/assets/scripts/comboBox.d.ts +0 -60
- package/dist/temp/assets/scripts/comboBox.js +0 -132
- package/dist/temp/assets/scripts/datePicker.d.ts +0 -86
- package/dist/temp/assets/scripts/datePicker.js +0 -699
- package/dist/temp/assets/scripts/featuredIcon.d.ts +0 -22
- package/dist/temp/assets/scripts/featuredIcon.js +0 -79
- package/dist/temp/assets/scripts/fileInput/const/classNames.d.ts +0 -15
- package/dist/temp/assets/scripts/fileInput/const/classNames.js +0 -16
- package/dist/temp/assets/scripts/fileInput/const/index.d.ts +0 -2
- package/dist/temp/assets/scripts/fileInput/const/index.js +0 -2
- package/dist/temp/assets/scripts/fileInput/const/types.d.ts +0 -88
- package/dist/temp/assets/scripts/fileInput/const/types.js +0 -7
- package/dist/temp/assets/scripts/fileInput/fileInput.d.ts +0 -13
- package/dist/temp/assets/scripts/fileInput/fileInput.js +0 -71
- package/dist/temp/assets/scripts/fileInput/fileInputModel.d.ts +0 -12
- package/dist/temp/assets/scripts/fileInput/fileInputModel.js +0 -37
- package/dist/temp/assets/scripts/fileInput/fileInputView.d.ts +0 -42
- package/dist/temp/assets/scripts/fileInput/fileInputView.js +0 -145
- package/dist/temp/assets/scripts/fileInput/index.d.ts +0 -3
- package/dist/temp/assets/scripts/fileInput/index.js +0 -9
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInput.d.ts +0 -63
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInput.js +0 -180
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +0 -73
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInputModel.js +0 -214
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInputView.d.ts +0 -79
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInputView.js +0 -350
- package/dist/temp/assets/scripts/imageFileInput/const/classNames.d.ts +0 -19
- package/dist/temp/assets/scripts/imageFileInput/const/classNames.js +0 -20
- package/dist/temp/assets/scripts/imageFileInput/const/index.d.ts +0 -2
- package/dist/temp/assets/scripts/imageFileInput/const/index.js +0 -2
- package/dist/temp/assets/scripts/imageFileInput/const/types.d.ts +0 -125
- package/dist/temp/assets/scripts/imageFileInput/const/types.js +0 -7
- package/dist/temp/assets/scripts/imageFileInput/index.d.ts +0 -3
- package/dist/temp/assets/scripts/imageFileInput/index.js +0 -9
- package/dist/temp/assets/scripts/index.d.ts +0 -34
- package/dist/temp/assets/scripts/index.js +0 -30
- package/dist/temp/assets/scripts/modal/Modal.d.ts +0 -27
- package/dist/temp/assets/scripts/modal/Modal.js +0 -100
- package/dist/temp/assets/scripts/modal/ModalActions.d.ts +0 -18
- package/dist/temp/assets/scripts/modal/ModalActions.js +0 -117
- package/dist/temp/assets/scripts/modal/ModalContent.d.ts +0 -13
- package/dist/temp/assets/scripts/modal/ModalContent.js +0 -39
- package/dist/temp/assets/scripts/modal/ModalHeader.d.ts +0 -15
- package/dist/temp/assets/scripts/modal/ModalHeader.js +0 -96
- package/dist/temp/assets/scripts/modal/const/classNames.d.ts +0 -22
- package/dist/temp/assets/scripts/modal/const/classNames.js +0 -23
- package/dist/temp/assets/scripts/modal/const/index.d.ts +0 -2
- package/dist/temp/assets/scripts/modal/const/index.js +0 -2
- package/dist/temp/assets/scripts/modal/const/types.d.ts +0 -61
- package/dist/temp/assets/scripts/modal/const/types.js +0 -1
- package/dist/temp/assets/scripts/modal/index.d.ts +0 -7
- package/dist/temp/assets/scripts/modal/index.js +0 -15
- package/dist/temp/assets/scripts/modal/utils/contentUtils.d.ts +0 -10
- package/dist/temp/assets/scripts/modal/utils/contentUtils.js +0 -29
- package/dist/temp/assets/scripts/notification/FloatingNotification.d.ts +0 -24
- package/dist/temp/assets/scripts/notification/FloatingNotification.js +0 -157
- package/dist/temp/assets/scripts/notification/FullWidthNotification.d.ts +0 -21
- package/dist/temp/assets/scripts/notification/FullWidthNotification.js +0 -110
- package/dist/temp/assets/scripts/notification/MessageNotification.d.ts +0 -22
- package/dist/temp/assets/scripts/notification/MessageNotification.js +0 -140
- package/dist/temp/assets/scripts/notification/Notification.d.ts +0 -21
- package/dist/temp/assets/scripts/notification/Notification.js +0 -94
- package/dist/temp/assets/scripts/notification/const/classNames.d.ts +0 -43
- package/dist/temp/assets/scripts/notification/const/classNames.js +0 -44
- package/dist/temp/assets/scripts/notification/const/icons.d.ts +0 -25
- package/dist/temp/assets/scripts/notification/const/icons.js +0 -25
- package/dist/temp/assets/scripts/notification/const/index.d.ts +0 -5
- package/dist/temp/assets/scripts/notification/const/index.js +0 -4
- package/dist/temp/assets/scripts/notification/const/sizes.d.ts +0 -32
- package/dist/temp/assets/scripts/notification/const/sizes.js +0 -40
- package/dist/temp/assets/scripts/notification/const/types.d.ts +0 -19
- package/dist/temp/assets/scripts/notification/const/types.js +0 -8
- package/dist/temp/assets/scripts/notification/index.d.ts +0 -7
- package/dist/temp/assets/scripts/notification/index.js +0 -11
- package/dist/temp/assets/scripts/notification/utils.d.ts +0 -8
- package/dist/temp/assets/scripts/notification/utils.js +0 -89
- package/dist/temp/assets/scripts/progress-bar/ProgressBar.d.ts +0 -67
- package/dist/temp/assets/scripts/progress-bar/ProgressBar.js +0 -263
- package/dist/temp/assets/scripts/progress-bar/index.d.ts +0 -1
- package/dist/temp/assets/scripts/progress-bar/index.js +0 -1
- package/dist/temp/assets/scripts/selectBox.d.ts +0 -50
- package/dist/temp/assets/scripts/selectBox.js +0 -170
- package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +0 -5
- package/dist/temp/assets/scripts/shared/ButtonCloseX.js +0 -33
- package/dist/temp/assets/scripts/tab.d.ts +0 -7
- package/dist/temp/assets/scripts/tab.js +0 -33
- package/dist/temp/assets/scripts/table/Table.d.ts +0 -41
- package/dist/temp/assets/scripts/table/Table.js +0 -378
- package/dist/temp/assets/scripts/table/const/classNames.d.ts +0 -27
- package/dist/temp/assets/scripts/table/const/classNames.js +0 -27
- package/dist/temp/assets/scripts/table/const/index.d.ts +0 -2
- package/dist/temp/assets/scripts/table/const/index.js +0 -2
- package/dist/temp/assets/scripts/table/const/types.d.ts +0 -23
- package/dist/temp/assets/scripts/table/const/types.js +0 -1
- package/dist/temp/assets/scripts/table/index.d.ts +0 -3
- package/dist/temp/assets/scripts/table/index.js +0 -8
- package/dist/temp/assets/scripts/tag/Tag.d.ts +0 -27
- package/dist/temp/assets/scripts/tag/Tag.js +0 -259
- package/dist/temp/assets/scripts/tag/const/classNames.d.ts +0 -11
- package/dist/temp/assets/scripts/tag/const/classNames.js +0 -12
- package/dist/temp/assets/scripts/tag/const/index.d.ts +0 -3
- package/dist/temp/assets/scripts/tag/const/index.js +0 -3
- package/dist/temp/assets/scripts/tag/const/sizes.d.ts +0 -7
- package/dist/temp/assets/scripts/tag/const/sizes.js +0 -7
- package/dist/temp/assets/scripts/tag/const/types.d.ts +0 -33
- package/dist/temp/assets/scripts/tag/const/types.js +0 -1
- package/dist/temp/assets/scripts/tag/index.d.ts +0 -3
- package/dist/temp/assets/scripts/tag/index.js +0 -9
- package/dist/temp/assets/scripts/tooltip/Tooltip.d.ts +0 -54
- package/dist/temp/assets/scripts/tooltip/Tooltip.js +0 -335
- package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.d.ts +0 -21
- package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.js +0 -71
- package/dist/temp/assets/scripts/tooltip/const/classNames.d.ts +0 -17
- package/dist/temp/assets/scripts/tooltip/const/classNames.js +0 -23
- package/dist/temp/assets/scripts/tooltip/const/constants.d.ts +0 -33
- package/dist/temp/assets/scripts/tooltip/const/constants.js +0 -46
- package/dist/temp/assets/scripts/tooltip/const/icons.d.ts +0 -4
- package/dist/temp/assets/scripts/tooltip/const/icons.js +0 -9
- package/dist/temp/assets/scripts/tooltip/const/index.d.ts +0 -5
- package/dist/temp/assets/scripts/tooltip/const/index.js +0 -4
- package/dist/temp/assets/scripts/tooltip/const/templates.d.ts +0 -16
- package/dist/temp/assets/scripts/tooltip/const/templates.js +0 -59
- package/dist/temp/assets/scripts/tooltip/const/types.d.ts +0 -14
- package/dist/temp/assets/scripts/tooltip/const/types.js +0 -1
- package/dist/temp/assets/scripts/tooltip/index.d.ts +0 -6
- package/dist/temp/assets/scripts/tooltip/index.js +0 -10
- package/dist/temp/assets/scripts/tooltip/utils.d.ts +0 -2
- package/dist/temp/assets/scripts/tooltip/utils.js +0 -33
- package/dist/temp/assets/scripts/utils/debounce.d.ts +0 -8
- package/dist/temp/assets/scripts/utils/debounce.js +0 -23
- package/dist/temp/assets/scripts/utils/unifiedBox/domRenderer.d.ts +0 -107
- package/dist/temp/assets/scripts/utils/unifiedBox/domRenderer.js +0 -367
- package/dist/temp/assets/scripts/utils/unifiedBox/dropdownModel.d.ts +0 -142
- package/dist/temp/assets/scripts/utils/unifiedBox/dropdownModel.js +0 -286
- package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts +0 -156
- package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxController.js +0 -604
- package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts +0 -95
- package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +0 -482
- package/dist/types/assets/scripts/baseBox.d.ts +0 -55
- package/dist/types/assets/scripts/comboBox.d.ts +0 -60
- package/dist/types/assets/scripts/datePicker.d.ts +0 -86
- package/dist/types/assets/scripts/featuredIcon.d.ts +0 -22
- package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +0 -15
- package/dist/types/assets/scripts/fileInput/const/index.d.ts +0 -2
- package/dist/types/assets/scripts/fileInput/const/types.d.ts +0 -88
- package/dist/types/assets/scripts/fileInput/fileInput.d.ts +0 -13
- package/dist/types/assets/scripts/fileInput/fileInputModel.d.ts +0 -12
- package/dist/types/assets/scripts/fileInput/fileInputView.d.ts +0 -42
- package/dist/types/assets/scripts/fileInput/index.d.ts +0 -3
- package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +0 -63
- package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +0 -73
- package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +0 -79
- package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +0 -19
- package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +0 -2
- package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +0 -125
- package/dist/types/assets/scripts/imageFileInput/index.d.ts +0 -3
- package/dist/types/assets/scripts/index.d.ts +0 -34
- package/dist/types/assets/scripts/modal/Modal.d.ts +0 -27
- package/dist/types/assets/scripts/modal/ModalActions.d.ts +0 -18
- package/dist/types/assets/scripts/modal/ModalContent.d.ts +0 -13
- package/dist/types/assets/scripts/modal/ModalHeader.d.ts +0 -15
- package/dist/types/assets/scripts/modal/const/classNames.d.ts +0 -22
- package/dist/types/assets/scripts/modal/const/index.d.ts +0 -2
- package/dist/types/assets/scripts/modal/const/types.d.ts +0 -61
- package/dist/types/assets/scripts/modal/index.d.ts +0 -7
- package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +0 -10
- package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +0 -24
- package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +0 -21
- package/dist/types/assets/scripts/notification/MessageNotification.d.ts +0 -22
- package/dist/types/assets/scripts/notification/Notification.d.ts +0 -21
- package/dist/types/assets/scripts/notification/const/classNames.d.ts +0 -43
- package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -25
- package/dist/types/assets/scripts/notification/const/index.d.ts +0 -5
- package/dist/types/assets/scripts/notification/const/sizes.d.ts +0 -32
- package/dist/types/assets/scripts/notification/const/types.d.ts +0 -19
- package/dist/types/assets/scripts/notification/index.d.ts +0 -7
- package/dist/types/assets/scripts/notification/utils.d.ts +0 -8
- package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +0 -67
- package/dist/types/assets/scripts/progress-bar/index.d.ts +0 -1
- package/dist/types/assets/scripts/selectBox.d.ts +0 -50
- package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -5
- package/dist/types/assets/scripts/tab.d.ts +0 -7
- package/dist/types/assets/scripts/table/Table.d.ts +0 -41
- package/dist/types/assets/scripts/table/const/classNames.d.ts +0 -27
- package/dist/types/assets/scripts/table/const/index.d.ts +0 -2
- package/dist/types/assets/scripts/table/const/types.d.ts +0 -23
- package/dist/types/assets/scripts/table/index.d.ts +0 -3
- package/dist/types/assets/scripts/tag/Tag.d.ts +0 -27
- package/dist/types/assets/scripts/tag/const/classNames.d.ts +0 -11
- package/dist/types/assets/scripts/tag/const/index.d.ts +0 -3
- package/dist/types/assets/scripts/tag/const/sizes.d.ts +0 -7
- package/dist/types/assets/scripts/tag/const/types.d.ts +0 -33
- package/dist/types/assets/scripts/tag/index.d.ts +0 -3
- package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +0 -54
- package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +0 -21
- package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +0 -17
- package/dist/types/assets/scripts/tooltip/const/constants.d.ts +0 -33
- package/dist/types/assets/scripts/tooltip/const/icons.d.ts +0 -4
- package/dist/types/assets/scripts/tooltip/const/index.d.ts +0 -5
- package/dist/types/assets/scripts/tooltip/const/templates.d.ts +0 -16
- package/dist/types/assets/scripts/tooltip/const/types.d.ts +0 -14
- package/dist/types/assets/scripts/tooltip/index.d.ts +0 -6
- package/dist/types/assets/scripts/tooltip/utils.d.ts +0 -2
- package/dist/types/assets/scripts/utils/debounce.d.ts +0 -8
- package/dist/types/assets/scripts/utils/unifiedBox/domRenderer.d.ts +0 -107
- package/dist/types/assets/scripts/utils/unifiedBox/dropdownModel.d.ts +0 -142
- package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts +0 -156
- package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts +0 -95
- /package/dist/cjs/{assets/scripts/modal/const/types.js → src/types/component-meta.js} +0 -0
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SelectBox = void 0;
|
|
7
|
-
var _baseBox = require("./baseBox");
|
|
8
|
-
var _unifiedBoxManager = require("./utils/unifiedBox/unifiedBoxManager");
|
|
9
|
-
class SelectBox extends _baseBox.BaseBox {
|
|
10
|
-
get defaultPlaceholder() {
|
|
11
|
-
return '선택하세요';
|
|
12
|
-
}
|
|
13
|
-
constructor(element) {
|
|
14
|
-
let config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15
|
-
super(element);
|
|
16
|
-
// HTML에서 옵션 파싱 (config.options가 없을 경우)
|
|
17
|
-
const htmlOptions = this.parseOptionsFromHTML();
|
|
18
|
-
// JavaScript 옵션을 DropdownOption 형식으로 변환
|
|
19
|
-
const normalizedOptions = config.options ? this.normalizeOptions(config.options) : htmlOptions;
|
|
20
|
-
const finalOptions = normalizedOptions;
|
|
21
|
-
// HTML에서 속성 파싱
|
|
22
|
-
const htmlAttributes = this.parseAttributesFromHTML();
|
|
23
|
-
// 기존 API를 새 API로 변환
|
|
24
|
-
const unifiedConfig = {
|
|
25
|
-
...config,
|
|
26
|
-
type: 'selectbox',
|
|
27
|
-
multiple: config.multiple ?? false,
|
|
28
|
-
showFooterButtons: config.showFooterButtons ?? false,
|
|
29
|
-
onEdit: config.onEdit,
|
|
30
|
-
onSelectAll: config.onSelectAll,
|
|
31
|
-
onComplete: config.onComplete,
|
|
32
|
-
options: finalOptions,
|
|
33
|
-
placeholder: config.placeholder || htmlAttributes.placeholder || this.defaultPlaceholder,
|
|
34
|
-
value: config.value ?? htmlAttributes.value ?? (config.multiple ? [] : ''),
|
|
35
|
-
disabled: config.disabled ?? htmlAttributes.disabled ?? false,
|
|
36
|
-
size: config.size || htmlAttributes.size || 'md',
|
|
37
|
-
onChange: value => {
|
|
38
|
-
// 초기화 중에는 동기화하지 않음 (무한 루프 방지)
|
|
39
|
-
if (this.isInitializing) {
|
|
40
|
-
this.lastValue = value; // 초기값 저장
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
// 값이 실제로 변경되지 않았으면 동기화 생략 (무한 루프 방지)
|
|
44
|
-
if (JSON.stringify(this.lastValue) === JSON.stringify(value)) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
this.lastValue = value; // 새 값 저장
|
|
48
|
-
// 타겟 select와 동기화
|
|
49
|
-
if (config.multiple) {
|
|
50
|
-
this.syncWithTargetSelectMultiple(value);
|
|
51
|
-
} else {
|
|
52
|
-
this.syncWithTargetSelect(value);
|
|
53
|
-
}
|
|
54
|
-
// onChange 콜백에는 실제 value를 전달
|
|
55
|
-
const realValue = config.multiple ? value.map(v => this.getRealValueFromId(v)) : this.getRealValueFromId(value);
|
|
56
|
-
config.onChange?.(realValue);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
this.unifiedSelectBox = new _unifiedBoxManager.UnifiedBoxManager(element, unifiedConfig);
|
|
60
|
-
this.completeInitialization();
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* JavaScript 옵션을 DropdownOption 형식으로 변환
|
|
64
|
-
*/
|
|
65
|
-
normalizeOptions(options) {
|
|
66
|
-
return options.map(option => {
|
|
67
|
-
// 이미 DropdownOption 형식인 경우
|
|
68
|
-
if ('label' in option) {
|
|
69
|
-
return option;
|
|
70
|
-
}
|
|
71
|
-
// SelectBoxOptionType 형식인 경우 (text -> label 변환)
|
|
72
|
-
const selectBoxOption = option;
|
|
73
|
-
return {
|
|
74
|
-
id: selectBoxOption.id,
|
|
75
|
-
label: selectBoxOption.text,
|
|
76
|
-
disabled: selectBoxOption.disabled
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* HTML select에서 옵션 파싱
|
|
82
|
-
*/
|
|
83
|
-
parseOptionsFromHTML() {
|
|
84
|
-
if (!this.targetSelect) return [];
|
|
85
|
-
const options = [];
|
|
86
|
-
const optionElements = this.targetSelect.querySelectorAll('option');
|
|
87
|
-
// 빈 값 옵션 개수 확인 (최적화를 위해)
|
|
88
|
-
const emptyValueCount = Array.from(optionElements).filter(opt => opt.value === '').length;
|
|
89
|
-
optionElements.forEach((optionElement, index) => {
|
|
90
|
-
const optionValue = optionElement.value;
|
|
91
|
-
// 빈 값 옵션이 1개뿐이면 단순 처리, 여러 개면 고유 ID 생성
|
|
92
|
-
let optionId;
|
|
93
|
-
if (optionValue !== '') {
|
|
94
|
-
optionId = optionValue;
|
|
95
|
-
} else if (emptyValueCount === 1) {
|
|
96
|
-
// 빈 값 옵션이 하나뿐이면 그냥 빈 문자열 사용 (단순화)
|
|
97
|
-
optionId = '';
|
|
98
|
-
} else {
|
|
99
|
-
// 빈 값 옵션이 여러 개면 고유 ID 생성 (구분 필요)
|
|
100
|
-
optionId = `__empty_option_${index}`;
|
|
101
|
-
}
|
|
102
|
-
options.push({
|
|
103
|
-
id: optionId,
|
|
104
|
-
label: optionElement.textContent || optionElement.value || this.defaultPlaceholder,
|
|
105
|
-
disabled: optionElement.disabled,
|
|
106
|
-
// 원본 value 저장 (동기화를 위해)
|
|
107
|
-
originalValue: optionValue
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
return options;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* 값 변환 - originalValue 매핑
|
|
114
|
-
*/
|
|
115
|
-
resolveValue(value) {
|
|
116
|
-
return this.getRealValueFromId(value);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* ID로부터 실제 HTML select의 value 값을 가져오기
|
|
120
|
-
*/
|
|
121
|
-
getRealValueFromId(id) {
|
|
122
|
-
const options = this.unifiedSelectBox.getOptions();
|
|
123
|
-
const option = options.find(opt => opt.id === id);
|
|
124
|
-
// originalValue가 있으면 그것을 사용, 없으면 id를 문자열로 변환
|
|
125
|
-
return option?.originalValue !== undefined ? option.originalValue : String(id);
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* 실제 HTML select의 value 값으로부터 내부 ID를 가져오기
|
|
129
|
-
*/
|
|
130
|
-
getIdFromRealValue(value) {
|
|
131
|
-
const options = this.unifiedSelectBox.getOptions();
|
|
132
|
-
const option = options.find(opt => opt.originalValue === String(value));
|
|
133
|
-
// originalValue가 일치하는 옵션을 찾으면 그 ID를 반환, 없으면 value 그대로 반환
|
|
134
|
-
return option ? option.id : value;
|
|
135
|
-
}
|
|
136
|
-
// SelectBox 고유 API
|
|
137
|
-
getValues() {
|
|
138
|
-
const internalValue = this.unifiedSelectBox.getValues();
|
|
139
|
-
return internalValue.map(option => ({
|
|
140
|
-
...option,
|
|
141
|
-
id: this.getRealValueFromId(option.id)
|
|
142
|
-
}));
|
|
143
|
-
}
|
|
144
|
-
setValues(value) {
|
|
145
|
-
const internalValue = value.map(v => this.getIdFromRealValue(v.id));
|
|
146
|
-
if (JSON.stringify(this.lastValue) === JSON.stringify(internalValue)) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
this.lastValue = internalValue;
|
|
150
|
-
// id 배열을 옵션 객체 배열로 변환
|
|
151
|
-
const allOptions = this.unifiedSelectBox.getOptions();
|
|
152
|
-
const optionArray = internalValue.map(id => allOptions.find(opt => opt.id === id)).filter(opt => opt !== undefined);
|
|
153
|
-
this.unifiedSelectBox.setValues(optionArray);
|
|
154
|
-
// setValues 호출 시에도 타겟 select와 동기화
|
|
155
|
-
if (this.targetSelect) {
|
|
156
|
-
if (this.unifiedSelectBox.isMultiple()) {
|
|
157
|
-
this.syncWithTargetSelectMultiple(internalValue);
|
|
158
|
-
} else {
|
|
159
|
-
// 단일 선택 모드인 경우 첫 번째 값만 사용
|
|
160
|
-
this.syncWithTargetSelect(internalValue[0] || '');
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
getSelectedCount() {
|
|
165
|
-
const values = this.getValues();
|
|
166
|
-
return values.length;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
exports.SelectBox = SelectBox;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ButtonCloseX = ButtonCloseX;
|
|
7
|
-
exports.X_CLOSE_SVG = exports.SVG_SIZE = void 0;
|
|
8
|
-
// 공통 X버튼 로직 (React ButtonCloseX 컴포넌트와 동일한 구조)
|
|
9
|
-
// React ButtonCloseX와 동일한 SVG 사이즈 매핑
|
|
10
|
-
const SVG_SIZE = exports.SVG_SIZE = {
|
|
11
|
-
xs: 16,
|
|
12
|
-
sm: 20,
|
|
13
|
-
md: 20,
|
|
14
|
-
lg: 24
|
|
15
|
-
};
|
|
16
|
-
// X버튼 SVG 아이콘
|
|
17
|
-
const X_CLOSE_SVG = size => `<svg width="${size}" height="${size}" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
18
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
19
|
-
</svg>`;
|
|
20
|
-
// X버튼 렌더링 유틸리티 (React ButtonCloseX와 동일한 인터페이스)
|
|
21
|
-
exports.X_CLOSE_SVG = X_CLOSE_SVG;
|
|
22
|
-
function ButtonCloseX(size) {
|
|
23
|
-
let theme = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'light';
|
|
24
|
-
let additionalClasses = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
25
|
-
let ariaLabel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '닫기';
|
|
26
|
-
let onClick = arguments.length > 4 ? arguments[4] : undefined;
|
|
27
|
-
const svgSize = SVG_SIZE[size];
|
|
28
|
-
const buttonId = `close-btn-${Math.random().toString(36).substr(2, 9)}`;
|
|
29
|
-
const buttonHTML = `
|
|
30
|
-
<button type="button" id="${buttonId}" class="ncua-button-close-x ncua-button-close-x--${size} ncua-button-close-x--${theme} ${additionalClasses}" aria-label="${ariaLabel}">
|
|
31
|
-
${X_CLOSE_SVG(svgSize.toString())}
|
|
32
|
-
</button>
|
|
33
|
-
`;
|
|
34
|
-
// onClick이 제공된 경우 이벤트 바인딩
|
|
35
|
-
if (onClick) {
|
|
36
|
-
// DOM에 추가된 후 이벤트 바인딩을 위해 setTimeout 사용
|
|
37
|
-
setTimeout(() => {
|
|
38
|
-
const button = document.getElementById(buttonId);
|
|
39
|
-
if (button) {
|
|
40
|
-
button.addEventListener('click', onClick);
|
|
41
|
-
}
|
|
42
|
-
}, 0);
|
|
43
|
-
}
|
|
44
|
-
return buttonHTML;
|
|
45
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Tab = void 0;
|
|
7
|
-
var _swiper = require("swiper");
|
|
8
|
-
class Tab {
|
|
9
|
-
constructor(element) {
|
|
10
|
-
this.swiper = null;
|
|
11
|
-
if (!element) {
|
|
12
|
-
throw new Error('Tab element is required');
|
|
13
|
-
}
|
|
14
|
-
if (!(element instanceof HTMLElement)) {
|
|
15
|
-
throw new Error('Invalid element type provided to Tab');
|
|
16
|
-
}
|
|
17
|
-
this.element = element;
|
|
18
|
-
this.init();
|
|
19
|
-
}
|
|
20
|
-
init() {
|
|
21
|
-
this.swiper = new _swiper.Swiper(this.element, {
|
|
22
|
-
slidesPerView: 'auto',
|
|
23
|
-
spaceBetween: 8,
|
|
24
|
-
grabCursor: true,
|
|
25
|
-
loop: false,
|
|
26
|
-
freeMode: {
|
|
27
|
-
enabled: true,
|
|
28
|
-
sticky: false
|
|
29
|
-
},
|
|
30
|
-
mousewheel: true
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
destroy() {
|
|
34
|
-
if (this.swiper) {
|
|
35
|
-
this.swiper.destroy();
|
|
36
|
-
this.swiper = null;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.Tab = Tab;
|
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Table = void 0;
|
|
7
|
-
var _classNames = require("./const/classNames");
|
|
8
|
-
const TABLE_DIMENSIONS = {
|
|
9
|
-
CHECKBOX_CELL_WIDTH: '56px',
|
|
10
|
-
HEADER_HEIGHT: 40,
|
|
11
|
-
ROW_MIN_HEIGHT: 48,
|
|
12
|
-
CHECKBOX_PADDING: '16px'
|
|
13
|
-
};
|
|
14
|
-
const SORT_SVG = {
|
|
15
|
-
none: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 6L8 2.5L11.5 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.5 10L8 13.5L11.5 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,
|
|
16
|
-
asc: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 9.5L8 6L11.5 9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,
|
|
17
|
-
desc: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 6.5L8 10L11.5 6.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`
|
|
18
|
-
};
|
|
19
|
-
const ARIA_SORT_VALUES = {
|
|
20
|
-
asc: 'ascending',
|
|
21
|
-
desc: 'descending',
|
|
22
|
-
none: 'none'
|
|
23
|
-
};
|
|
24
|
-
class Table {
|
|
25
|
-
constructor(options) {
|
|
26
|
-
this.theadElement = null;
|
|
27
|
-
this.sortState = new Map();
|
|
28
|
-
this.selectedIndices = new Set();
|
|
29
|
-
this.abortController = new AbortController();
|
|
30
|
-
this.options = {
|
|
31
|
-
type: 'horizontal',
|
|
32
|
-
hoverable: true,
|
|
33
|
-
selectable: false,
|
|
34
|
-
fixedHeader: false,
|
|
35
|
-
emptyText: '등록된 게시물이 없습니다.',
|
|
36
|
-
...options
|
|
37
|
-
};
|
|
38
|
-
this.createElement();
|
|
39
|
-
}
|
|
40
|
-
createElement() {
|
|
41
|
-
this.createOuterElement();
|
|
42
|
-
this.createTableElement();
|
|
43
|
-
this.renderBody();
|
|
44
|
-
this.wrapWithScrollContainer();
|
|
45
|
-
}
|
|
46
|
-
createOuterElement() {
|
|
47
|
-
this.element = document.createElement('div');
|
|
48
|
-
this.updateOuterClasses();
|
|
49
|
-
}
|
|
50
|
-
createTableElement() {
|
|
51
|
-
this.tableElement = document.createElement('table');
|
|
52
|
-
this.tableElement.className = _classNames.TABLE_CLASS_NAMES.tableElement;
|
|
53
|
-
this.tableElement.setAttribute('role', 'table');
|
|
54
|
-
if (this.options.columns) {
|
|
55
|
-
this.createColGroup();
|
|
56
|
-
if (this.options.type === 'horizontal') {
|
|
57
|
-
this.createHeader();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
this.tbodyElement = document.createElement('tbody');
|
|
61
|
-
this.tbodyElement.className = _classNames.TABLE_CLASS_NAMES.body;
|
|
62
|
-
this.tableElement.appendChild(this.tbodyElement);
|
|
63
|
-
}
|
|
64
|
-
wrapWithScrollContainer() {
|
|
65
|
-
if (this.options.fixedHeader && this.options.maxHeight) {
|
|
66
|
-
const scrollContainer = document.createElement('div');
|
|
67
|
-
scrollContainer.className = _classNames.TABLE_CLASS_NAMES.scrollContainer;
|
|
68
|
-
scrollContainer.style.maxHeight = this.options.maxHeight;
|
|
69
|
-
scrollContainer.appendChild(this.tableElement);
|
|
70
|
-
this.element.appendChild(scrollContainer);
|
|
71
|
-
} else {
|
|
72
|
-
this.element.appendChild(this.tableElement);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
updateOuterClasses() {
|
|
76
|
-
const classes = [_classNames.TABLE_CLASS_NAMES.table];
|
|
77
|
-
if (this.options.type === 'horizontal') {
|
|
78
|
-
classes.push(_classNames.TABLE_CLASS_NAMES.horizontal);
|
|
79
|
-
} else {
|
|
80
|
-
classes.push(_classNames.TABLE_CLASS_NAMES.vertical);
|
|
81
|
-
}
|
|
82
|
-
if (this.options.hoverable && this.options.type === 'horizontal') {
|
|
83
|
-
classes.push(_classNames.TABLE_CLASS_NAMES.hoverable);
|
|
84
|
-
}
|
|
85
|
-
if (this.options.fixedHeader) {
|
|
86
|
-
classes.push(_classNames.TABLE_CLASS_NAMES.fixedHeader);
|
|
87
|
-
}
|
|
88
|
-
this.element.className = classes.join(' ');
|
|
89
|
-
}
|
|
90
|
-
createColGroup() {
|
|
91
|
-
const colgroup = document.createElement('colgroup');
|
|
92
|
-
if (this.options.selectable) {
|
|
93
|
-
const column = document.createElement('col');
|
|
94
|
-
column.style.width = TABLE_DIMENSIONS.CHECKBOX_CELL_WIDTH;
|
|
95
|
-
colgroup.appendChild(column);
|
|
96
|
-
}
|
|
97
|
-
for (const columnConfig of this.options.columns ?? []) {
|
|
98
|
-
const column = document.createElement('col');
|
|
99
|
-
if (columnConfig.width) {
|
|
100
|
-
column.style.width = columnConfig.width;
|
|
101
|
-
}
|
|
102
|
-
colgroup.appendChild(column);
|
|
103
|
-
}
|
|
104
|
-
this.tableElement.appendChild(colgroup);
|
|
105
|
-
}
|
|
106
|
-
createHeader() {
|
|
107
|
-
this.theadElement = document.createElement('thead');
|
|
108
|
-
this.theadElement.className = _classNames.TABLE_CLASS_NAMES.header;
|
|
109
|
-
const tableRow = document.createElement('tr');
|
|
110
|
-
if (this.options.selectable) {
|
|
111
|
-
tableRow.appendChild(this.createHeaderCheckboxCell());
|
|
112
|
-
}
|
|
113
|
-
for (const column of this.options.columns ?? []) {
|
|
114
|
-
tableRow.appendChild(this.createHeaderDataCell(column));
|
|
115
|
-
}
|
|
116
|
-
this.theadElement.appendChild(tableRow);
|
|
117
|
-
this.tableElement.appendChild(this.theadElement);
|
|
118
|
-
}
|
|
119
|
-
createHeaderCheckboxCell() {
|
|
120
|
-
const headerCell = document.createElement('th');
|
|
121
|
-
headerCell.className = `${_classNames.TABLE_CLASS_NAMES.checkboxCell} ${_classNames.TABLE_CLASS_NAMES.checkboxCellHeader}`;
|
|
122
|
-
const wrapper = document.createElement('span');
|
|
123
|
-
wrapper.className = 'ncua-checkbox-input ncua-checkbox-input--sm';
|
|
124
|
-
const checkbox = document.createElement('input');
|
|
125
|
-
checkbox.type = 'checkbox';
|
|
126
|
-
checkbox.setAttribute('aria-label', '전체 선택');
|
|
127
|
-
checkbox.addEventListener('change', () => this.handleSelectAll(checkbox.checked), {
|
|
128
|
-
signal: this.abortController.signal
|
|
129
|
-
});
|
|
130
|
-
wrapper.appendChild(checkbox);
|
|
131
|
-
headerCell.appendChild(wrapper);
|
|
132
|
-
return headerCell;
|
|
133
|
-
}
|
|
134
|
-
createHeaderDataCell(column) {
|
|
135
|
-
const headerCell = document.createElement('th');
|
|
136
|
-
headerCell.className = _classNames.TABLE_CLASS_NAMES.headerCell;
|
|
137
|
-
if (column.width) {
|
|
138
|
-
headerCell.style.width = column.width;
|
|
139
|
-
}
|
|
140
|
-
const innerContainer = document.createElement('span');
|
|
141
|
-
innerContainer.className = 'ncua-table__header-cell-inner';
|
|
142
|
-
const textSpan = document.createElement('span');
|
|
143
|
-
textSpan.className = 'ncua-table__header-cell-text';
|
|
144
|
-
textSpan.textContent = column.label;
|
|
145
|
-
innerContainer.appendChild(textSpan);
|
|
146
|
-
if (column.sortable) {
|
|
147
|
-
headerCell.classList.add(_classNames.TABLE_CLASS_NAMES.headerCellSortable);
|
|
148
|
-
this.sortState.set(column.key, 'none');
|
|
149
|
-
const sortIcon = document.createElement('span');
|
|
150
|
-
sortIcon.className = _classNames.TABLE_CLASS_NAMES.sortIcon;
|
|
151
|
-
sortIcon.innerHTML = SORT_SVG.none;
|
|
152
|
-
innerContainer.appendChild(sortIcon);
|
|
153
|
-
headerCell.addEventListener('click', () => this.handleSort(column.key, headerCell), {
|
|
154
|
-
signal: this.abortController.signal
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
headerCell.appendChild(innerContainer);
|
|
158
|
-
return headerCell;
|
|
159
|
-
}
|
|
160
|
-
renderBody() {
|
|
161
|
-
this.tbodyElement.innerHTML = '';
|
|
162
|
-
const data = this.options.data || [];
|
|
163
|
-
if (data.length === 0) {
|
|
164
|
-
this.renderEmptyState();
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
if (this.options.type === 'vertical') {
|
|
168
|
-
this.renderVerticalBody(data);
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
this.renderHorizontalBody(data);
|
|
172
|
-
}
|
|
173
|
-
renderEmptyState() {
|
|
174
|
-
const columnCount = (this.options.columns?.length || 1) + (this.options.selectable ? 1 : 0);
|
|
175
|
-
const tableRow = document.createElement('tr');
|
|
176
|
-
const tableCell = document.createElement('td');
|
|
177
|
-
tableCell.colSpan = columnCount;
|
|
178
|
-
tableCell.className = _classNames.TABLE_CLASS_NAMES.empty;
|
|
179
|
-
tableCell.setAttribute('role', 'status');
|
|
180
|
-
tableCell.setAttribute('aria-live', 'polite');
|
|
181
|
-
tableCell.textContent = this.options.emptyText;
|
|
182
|
-
tableRow.appendChild(tableCell);
|
|
183
|
-
this.tbodyElement.appendChild(tableRow);
|
|
184
|
-
}
|
|
185
|
-
renderHorizontalBody(data) {
|
|
186
|
-
for (let rowIndex = 0; rowIndex < data.length; rowIndex++) {
|
|
187
|
-
const tableRow = this.createHorizontalRow(data[rowIndex], rowIndex);
|
|
188
|
-
this.tbodyElement.appendChild(tableRow);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
createRowCheckboxCell(rowIndex) {
|
|
192
|
-
const tableCell = document.createElement('td');
|
|
193
|
-
tableCell.className = `${_classNames.TABLE_CLASS_NAMES.checkboxCell} ${_classNames.TABLE_CLASS_NAMES.checkboxCellBody}`;
|
|
194
|
-
const wrapper = document.createElement('span');
|
|
195
|
-
wrapper.className = 'ncua-checkbox-input ncua-checkbox-input--sm';
|
|
196
|
-
const checkbox = document.createElement('input');
|
|
197
|
-
checkbox.type = 'checkbox';
|
|
198
|
-
checkbox.checked = this.selectedIndices.has(rowIndex);
|
|
199
|
-
checkbox.setAttribute('aria-label', '행 선택');
|
|
200
|
-
checkbox.addEventListener('change', () => this.handleRowSelect(rowIndex, checkbox.checked), {
|
|
201
|
-
signal: this.abortController.signal
|
|
202
|
-
});
|
|
203
|
-
if (this.selectedIndices.has(rowIndex)) {
|
|
204
|
-
wrapper.classList.add('has-checked');
|
|
205
|
-
}
|
|
206
|
-
wrapper.appendChild(checkbox);
|
|
207
|
-
tableCell.appendChild(wrapper);
|
|
208
|
-
return tableCell;
|
|
209
|
-
}
|
|
210
|
-
createHorizontalRow(row, rowIndex) {
|
|
211
|
-
const tableRow = document.createElement('tr');
|
|
212
|
-
tableRow.className = _classNames.TABLE_CLASS_NAMES.row;
|
|
213
|
-
if (this.selectedIndices.has(rowIndex)) {
|
|
214
|
-
tableRow.classList.add(_classNames.TABLE_CLASS_NAMES.rowSelected);
|
|
215
|
-
}
|
|
216
|
-
if (this.options.selectable) {
|
|
217
|
-
tableRow.appendChild(this.createRowCheckboxCell(rowIndex));
|
|
218
|
-
}
|
|
219
|
-
for (const column of this.options.columns ?? []) {
|
|
220
|
-
const tableCell = document.createElement('td');
|
|
221
|
-
tableCell.className = _classNames.TABLE_CLASS_NAMES.cell;
|
|
222
|
-
if (column.align) {
|
|
223
|
-
tableCell.style.textAlign = column.align;
|
|
224
|
-
}
|
|
225
|
-
if (column.render) {
|
|
226
|
-
const rendered = column.render(row[column.key], row, rowIndex);
|
|
227
|
-
if (typeof rendered === 'string') {
|
|
228
|
-
tableCell.textContent = rendered;
|
|
229
|
-
} else {
|
|
230
|
-
tableCell.appendChild(rendered);
|
|
231
|
-
}
|
|
232
|
-
} else {
|
|
233
|
-
const value = row[column.key];
|
|
234
|
-
tableCell.textContent = value != null ? String(value) : '-';
|
|
235
|
-
}
|
|
236
|
-
tableRow.appendChild(tableCell);
|
|
237
|
-
}
|
|
238
|
-
return tableRow;
|
|
239
|
-
}
|
|
240
|
-
renderVerticalBody(data) {
|
|
241
|
-
const row = data[0] || {};
|
|
242
|
-
for (const column of this.options.columns ?? []) {
|
|
243
|
-
const tableRow = this.createVerticalRow(column, row);
|
|
244
|
-
this.tbodyElement.appendChild(tableRow);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
createVerticalRow(column, row) {
|
|
248
|
-
const tableRow = document.createElement('tr');
|
|
249
|
-
tableRow.className = _classNames.TABLE_CLASS_NAMES.row;
|
|
250
|
-
const labelCell = document.createElement('td');
|
|
251
|
-
labelCell.className = _classNames.TABLE_CLASS_NAMES.cell;
|
|
252
|
-
labelCell.textContent = column.label;
|
|
253
|
-
tableRow.appendChild(labelCell);
|
|
254
|
-
const valueCell = this.createVerticalValueCell(column, row);
|
|
255
|
-
tableRow.appendChild(valueCell);
|
|
256
|
-
return tableRow;
|
|
257
|
-
}
|
|
258
|
-
createVerticalValueCell(column, row) {
|
|
259
|
-
const valueCell = document.createElement('td');
|
|
260
|
-
valueCell.className = _classNames.TABLE_CLASS_NAMES.cell;
|
|
261
|
-
if (column.render) {
|
|
262
|
-
const rendered = column.render(row[column.key], row, 0);
|
|
263
|
-
if (typeof rendered === 'string') {
|
|
264
|
-
valueCell.textContent = rendered;
|
|
265
|
-
} else {
|
|
266
|
-
valueCell.appendChild(rendered);
|
|
267
|
-
}
|
|
268
|
-
} else {
|
|
269
|
-
const value = row[column.key];
|
|
270
|
-
valueCell.textContent = value != null ? String(value) : '-';
|
|
271
|
-
}
|
|
272
|
-
return valueCell;
|
|
273
|
-
}
|
|
274
|
-
handleSort(key, thElement) {
|
|
275
|
-
const nextDirection = this.getNextSortDirection(key);
|
|
276
|
-
for (const [sortKey] of this.sortState) {
|
|
277
|
-
this.sortState.set(sortKey, 'none');
|
|
278
|
-
}
|
|
279
|
-
this.sortState.set(key, nextDirection);
|
|
280
|
-
this.updateSortIcons(thElement, nextDirection);
|
|
281
|
-
thElement.setAttribute('aria-sort', this.getAriaSortValue(nextDirection));
|
|
282
|
-
this.options.onSort?.(key, nextDirection);
|
|
283
|
-
}
|
|
284
|
-
getNextSortDirection(key) {
|
|
285
|
-
const currentDirection = this.sortState.get(key) || 'none';
|
|
286
|
-
if (currentDirection === 'none') {
|
|
287
|
-
return 'asc';
|
|
288
|
-
}
|
|
289
|
-
if (currentDirection === 'asc') {
|
|
290
|
-
return 'desc';
|
|
291
|
-
}
|
|
292
|
-
return 'none';
|
|
293
|
-
}
|
|
294
|
-
updateSortIcons(thElement, direction) {
|
|
295
|
-
const allHeaders = this.theadElement?.querySelectorAll(`.${_classNames.TABLE_CLASS_NAMES.headerCell}`);
|
|
296
|
-
allHeaders?.forEach(header => {
|
|
297
|
-
const icon = header.querySelector(`.${_classNames.TABLE_CLASS_NAMES.sortIcon}`);
|
|
298
|
-
if (icon) {
|
|
299
|
-
icon.innerHTML = SORT_SVG.none;
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
const sortIcon = thElement.querySelector(`.${_classNames.TABLE_CLASS_NAMES.sortIcon}`);
|
|
303
|
-
if (sortIcon) {
|
|
304
|
-
sortIcon.innerHTML = SORT_SVG[direction];
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
getAriaSortValue(direction) {
|
|
308
|
-
return ARIA_SORT_VALUES[direction];
|
|
309
|
-
}
|
|
310
|
-
handleSelectAll(checked) {
|
|
311
|
-
this.selectedIndices.clear();
|
|
312
|
-
if (checked && this.options.data) {
|
|
313
|
-
for (let index = 0; index < this.options.data.length; index++) {
|
|
314
|
-
this.selectedIndices.add(index);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
this.updateRowSelectionStyles();
|
|
318
|
-
this.updateHeaderCheckbox();
|
|
319
|
-
this.options.onSelect?.([...this.selectedIndices]);
|
|
320
|
-
}
|
|
321
|
-
handleRowSelect(index, checked) {
|
|
322
|
-
if (checked) {
|
|
323
|
-
this.selectedIndices.add(index);
|
|
324
|
-
} else {
|
|
325
|
-
this.selectedIndices.delete(index);
|
|
326
|
-
}
|
|
327
|
-
this.updateRowSelectionStyles();
|
|
328
|
-
this.updateHeaderCheckbox();
|
|
329
|
-
this.options.onSelect?.([...this.selectedIndices]);
|
|
330
|
-
}
|
|
331
|
-
updateRowSelectionStyles() {
|
|
332
|
-
const rows = this.tbodyElement.querySelectorAll(`.${_classNames.TABLE_CLASS_NAMES.row}`);
|
|
333
|
-
rows.forEach((row, index) => {
|
|
334
|
-
const isSelected = this.selectedIndices.has(index);
|
|
335
|
-
row.classList.toggle(_classNames.TABLE_CLASS_NAMES.rowSelected, isSelected);
|
|
336
|
-
const checkbox = row.querySelector('input[type="checkbox"]');
|
|
337
|
-
if (checkbox) {
|
|
338
|
-
checkbox.checked = isSelected;
|
|
339
|
-
}
|
|
340
|
-
const wrapper = row.querySelector('.ncua-checkbox-input');
|
|
341
|
-
if (wrapper) {
|
|
342
|
-
wrapper.classList.toggle('has-checked', isSelected);
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
updateHeaderCheckbox() {
|
|
347
|
-
const headerWrapper = this.theadElement?.querySelector('.ncua-checkbox-input');
|
|
348
|
-
const headerCheckbox = headerWrapper?.querySelector('input[type="checkbox"]');
|
|
349
|
-
if (!headerWrapper || !headerCheckbox || !this.options.data) return;
|
|
350
|
-
const total = this.options.data.length;
|
|
351
|
-
const selectedCount = this.selectedIndices.size;
|
|
352
|
-
const isAllSelected = selectedCount === total && total > 0;
|
|
353
|
-
const isIndeterminate = selectedCount > 0 && selectedCount < total;
|
|
354
|
-
headerCheckbox.checked = isAllSelected;
|
|
355
|
-
headerCheckbox.indeterminate = isIndeterminate;
|
|
356
|
-
headerWrapper.classList.toggle('has-checked', isAllSelected);
|
|
357
|
-
headerWrapper.classList.toggle('has-indeterminate', isIndeterminate);
|
|
358
|
-
}
|
|
359
|
-
// ──────── Public API ────────
|
|
360
|
-
getElement() {
|
|
361
|
-
return this.element;
|
|
362
|
-
}
|
|
363
|
-
setData(data) {
|
|
364
|
-
this.options.data = data;
|
|
365
|
-
this.selectedIndices.clear();
|
|
366
|
-
this.renderBody();
|
|
367
|
-
this.updateHeaderCheckbox();
|
|
368
|
-
}
|
|
369
|
-
getSelectedIndices() {
|
|
370
|
-
return [...this.selectedIndices];
|
|
371
|
-
}
|
|
372
|
-
destroy() {
|
|
373
|
-
this.abortController.abort();
|
|
374
|
-
this.element.remove();
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
exports.Table = Table;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TABLE_CLASS_NAMES = void 0;
|
|
7
|
-
const TABLE_CLASS_NAMES = exports.TABLE_CLASS_NAMES = {
|
|
8
|
-
table: 'ncua-table',
|
|
9
|
-
horizontal: 'ncua-table--horizontal',
|
|
10
|
-
vertical: 'ncua-table--vertical',
|
|
11
|
-
hoverable: 'ncua-table--hoverable',
|
|
12
|
-
fixedHeader: 'ncua-table--fixed-header',
|
|
13
|
-
scrollContainer: 'ncua-table__scroll-container',
|
|
14
|
-
tableElement: 'ncua-table__table',
|
|
15
|
-
header: 'ncua-table__header',
|
|
16
|
-
headerCell: 'ncua-table__header-cell',
|
|
17
|
-
headerCellSortable: 'ncua-table__header-cell--sortable',
|
|
18
|
-
sortIcon: 'ncua-table__sort-icon',
|
|
19
|
-
body: 'ncua-table__body',
|
|
20
|
-
row: 'ncua-table__row',
|
|
21
|
-
rowSelected: 'ncua-table__row--selected',
|
|
22
|
-
rowWarning: 'ncua-table__row--warning',
|
|
23
|
-
rowError: 'ncua-table__row--error',
|
|
24
|
-
cell: 'ncua-table__cell',
|
|
25
|
-
checkboxCell: 'ncua-table__checkbox-cell',
|
|
26
|
-
checkboxCellHeader: 'ncua-table__checkbox-cell--header',
|
|
27
|
-
checkboxCellBody: 'ncua-table__checkbox-cell--body',
|
|
28
|
-
footer: 'ncua-table__footer',
|
|
29
|
-
footerRow: 'ncua-table__footer-row',
|
|
30
|
-
pagination: 'ncua-table__pagination',
|
|
31
|
-
empty: 'ncua-table__empty',
|
|
32
|
-
required: 'ncua-table__required'
|
|
33
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _classNames = require("./classNames");
|
|
7
|
-
Object.keys(_classNames).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _classNames[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _classNames[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _types = require("./types");
|
|
18
|
-
Object.keys(_types).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _types[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|