@iyulab/components 0.4.0 → 1.0.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/CHANGELOG.md +44 -0
- package/README.md +42 -236
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js +9 -0
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/decorateMetadata.js +6 -0
- package/dist/_virtual/_glob-assets_raw/bell-fill.svg.d37c41d9.js +4 -0
- package/dist/_virtual/_glob-assets_raw/check-circle-fill.svg.51c33a2a.js +4 -0
- package/dist/_virtual/_glob-assets_raw/check-lg.svg.371c5e78.js +4 -0
- package/dist/_virtual/_glob-assets_raw/chevron-down.svg.0ccd06ea.js +4 -0
- package/dist/_virtual/_glob-assets_raw/chevron-left.svg.b4601050.js +4 -0
- package/dist/_virtual/_glob-assets_raw/chevron-right.svg.0711bb67.js +4 -0
- package/dist/_virtual/_glob-assets_raw/chevron-up.svg.ed917211.js +4 -0
- package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +4 -0
- package/dist/_virtual/_glob-assets_raw/dash-lg.svg.b40b8b3a.js +4 -0
- package/dist/_virtual/_glob-assets_raw/exclamation-circle-fill.svg.dc8c523e.js +4 -0
- package/dist/_virtual/_glob-assets_raw/exclamation-triangle-fill.svg.7949d2c7.js +4 -0
- package/dist/_virtual/_glob-assets_raw/eye-slash.svg.240afafa.js +4 -0
- package/dist/_virtual/_glob-assets_raw/eye.svg.2e5e9c4c.js +4 -0
- package/dist/_virtual/_glob-assets_raw/info-circle-fill.svg.6580071d.js +4 -0
- package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +4 -0
- package/dist/_virtual/_glob-assets_raw/plus-lg.svg.294e9073.js +4 -0
- package/dist/_virtual/_glob-assets_raw/search.svg.0ba2012d.js +4 -0
- package/dist/_virtual/_glob-assets_raw/star-fill.svg.f24b5a2d.js +4 -0
- package/dist/_virtual/_glob-assets_raw/star.svg.4af61468.js +4 -0
- package/dist/_virtual/_glob-assets_raw/three-dots-vertical.svg.9fee78c5.js +4 -0
- package/dist/_virtual/_glob-assets_raw/three-dots.svg.6a7a5b23.js +4 -0
- package/dist/_virtual/_glob-assets_raw/x-lg.svg.f34b882c.js +4 -0
- package/dist/components/{UJsonElement.d.ts → UDataElement.d.ts} +3 -5
- package/dist/components/UDataElement.js +101 -0
- package/dist/components/{UJsonElement.styles.js → UDataElement.styles.js} +4 -4
- package/dist/components/UElement.d.ts +18 -23
- package/dist/components/UElement.js +82 -95
- package/dist/components/UElement.styles.js +43 -4
- package/dist/components/UFloatingElement.d.ts +69 -48
- package/dist/components/UFloatingElement.js +236 -193
- package/dist/components/UFloatingElement.styles.d.ts +8 -0
- package/dist/components/UFloatingElement.styles.js +28 -5
- package/dist/components/UFormControlElement.d.ts +57 -0
- package/dist/components/UFormControlElement.js +68 -0
- package/dist/components/UFormControlElement.styles.js +14 -0
- package/dist/components/UOverlayElement.d.ts +66 -0
- package/dist/components/UOverlayElement.js +123 -0
- package/dist/components/UOverlayElement.styles.d.ts +1 -0
- package/dist/components/UOverlayElement.styles.js +35 -0
- package/dist/components/alert/UAlert.d.ts +58 -3
- package/dist/components/alert/UAlert.js +115 -4
- package/dist/components/alert/UAlert.styles.js +73 -48
- package/dist/components/avatar/UAvatar.d.ts +27 -0
- package/dist/components/avatar/UAvatar.js +42 -0
- package/dist/components/avatar/UAvatar.styles.d.ts +1 -0
- package/dist/components/avatar/UAvatar.styles.js +45 -0
- package/dist/components/badge/UBadge.d.ts +28 -0
- package/dist/components/badge/UBadge.js +40 -0
- package/dist/components/badge/UBadge.styles.d.ts +1 -0
- package/dist/components/badge/UBadge.styles.js +113 -0
- package/dist/components/breadcrumb/UBreadcrumb.d.ts +24 -0
- package/dist/components/breadcrumb/UBreadcrumb.js +65 -0
- package/dist/components/breadcrumb/UBreadcrumb.styles.d.ts +1 -0
- package/dist/components/breadcrumb/UBreadcrumb.styles.js +37 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.d.ts +30 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +52 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.d.ts +1 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.js +41 -0
- package/dist/components/button/UButton.d.ts +46 -3
- package/dist/components/button/UButton.js +104 -4
- package/dist/components/button/UButton.styles.js +121 -48
- package/dist/components/button-group/UButtonGroup.d.ts +28 -0
- package/dist/components/button-group/UButtonGroup.js +93 -0
- package/dist/components/button-group/UButtonGroup.styles.d.ts +1 -0
- package/dist/components/button-group/UButtonGroup.styles.js +34 -0
- package/dist/components/card/UCard.d.ts +30 -3
- package/dist/components/card/UCard.js +61 -4
- package/dist/components/card/UCard.styles.js +13 -12
- package/dist/components/carousel/UCarousel.d.ts +65 -3
- package/dist/components/carousel/UCarousel.js +219 -2
- package/dist/components/carousel/UCarousel.styles.js +17 -17
- package/dist/components/checkbox/UCheckbox.d.ts +39 -0
- package/dist/components/checkbox/UCheckbox.js +88 -0
- package/dist/components/checkbox/UCheckbox.styles.d.ts +1 -0
- package/dist/components/checkbox/UCheckbox.styles.js +211 -0
- package/dist/components/chip/UChip.d.ts +43 -0
- package/dist/components/chip/UChip.js +103 -0
- package/dist/components/chip/UChip.styles.d.ts +1 -0
- package/dist/components/chip/UChip.styles.js +31 -0
- package/dist/components/dialog/UDialog.d.ts +29 -2
- package/dist/components/dialog/UDialog.js +66 -4
- package/dist/components/dialog/UDialog.styles.js +90 -39
- package/dist/components/divider/UDivider.d.ts +27 -2
- package/dist/components/divider/UDivider.js +45 -4
- package/dist/components/divider/UDivider.styles.js +80 -10
- package/dist/components/drawer/UDrawer.d.ts +25 -3
- package/dist/components/drawer/UDrawer.js +54 -4
- package/dist/components/drawer/UDrawer.styles.js +67 -60
- package/dist/components/field/UField.d.ts +31 -0
- package/dist/components/field/UField.js +64 -0
- package/dist/components/field/UField.styles.d.ts +1 -0
- package/dist/components/field/UField.styles.js +47 -0
- package/dist/components/form/UForm.d.ts +38 -2
- package/dist/components/form/UForm.js +105 -4
- package/dist/components/form/UForm.styles.js +5 -5
- package/dist/components/icon/UIcon.d.ts +23 -4
- package/dist/components/icon/UIcon.js +55 -4
- package/dist/components/icon/UIcon.styles.js +5 -5
- package/dist/components/icon-button/UIconButton.d.ts +48 -0
- package/dist/components/icon-button/UIconButton.js +88 -0
- package/dist/components/icon-button/UIconButton.styles.d.ts +1 -0
- package/dist/components/icon-button/UIconButton.styles.js +24 -0
- package/dist/components/input/UInput.d.ts +95 -3
- package/dist/components/input/UInput.js +258 -2
- package/dist/components/input/UInput.styles.js +120 -86
- package/dist/components/menu/UMenu.d.ts +41 -3
- package/dist/components/menu/UMenu.js +178 -4
- package/dist/components/menu/UMenu.styles.js +16 -30
- package/dist/components/menu-item/UMenuItem.d.ts +48 -2
- package/dist/components/menu-item/UMenuItem.js +159 -2
- package/dist/components/menu-item/UMenuItem.styles.js +120 -34
- package/dist/components/option/UOption.d.ts +42 -0
- package/dist/components/option/UOption.js +64 -0
- package/dist/components/option/UOption.styles.d.ts +1 -0
- package/dist/components/option/UOption.styles.js +132 -0
- package/dist/components/panel/UPanel.d.ts +22 -0
- package/dist/components/panel/UPanel.js +36 -0
- package/dist/components/panel/UPanel.styles.d.ts +1 -0
- package/dist/components/panel/UPanel.styles.js +14 -0
- package/dist/components/popover/UPopover.d.ts +69 -0
- package/dist/components/popover/UPopover.js +235 -0
- package/dist/components/popover/UPopover.styles.d.ts +1 -0
- package/dist/components/popover/UPopover.styles.js +9 -0
- package/dist/components/progress-bar/UProgressBar.d.ts +46 -2
- package/dist/components/progress-bar/UProgressBar.js +94 -2
- package/dist/components/progress-bar/UProgressBar.styles.js +110 -36
- package/dist/components/progress-ring/UProgressRing.d.ts +46 -3
- package/dist/components/progress-ring/UProgressRing.js +152 -2
- package/dist/components/progress-ring/UProgressRing.styles.js +88 -25
- package/dist/components/radio/URadio.d.ts +41 -0
- package/dist/components/radio/URadio.js +151 -0
- package/dist/components/radio/URadio.styles.d.ts +1 -0
- package/dist/components/radio/URadio.styles.js +111 -0
- package/dist/components/rating/URating.d.ts +48 -0
- package/dist/components/rating/URating.js +196 -0
- package/dist/components/rating/URating.styles.d.ts +1 -0
- package/dist/components/rating/URating.styles.js +55 -0
- package/dist/components/select/USelect.d.ts +70 -0
- package/dist/components/select/USelect.js +315 -0
- package/dist/components/select/USelect.styles.d.ts +1 -0
- package/dist/components/select/USelect.styles.js +200 -0
- package/dist/components/skeleton/USkeleton.d.ts +27 -3
- package/dist/components/skeleton/USkeleton.js +37 -4
- package/dist/components/skeleton/USkeleton.styles.js +15 -18
- package/dist/components/slider/USlider.d.ts +88 -0
- package/dist/components/slider/USlider.js +286 -0
- package/dist/components/slider/USlider.styles.d.ts +1 -0
- package/dist/components/slider/USlider.styles.js +125 -0
- package/dist/components/spinner/USpinner.d.ts +23 -2
- package/dist/components/spinner/USpinner.js +37 -3
- package/dist/components/spinner/USpinner.styles.js +34 -13
- package/dist/components/split-panel/USplitPanel.d.ts +49 -2
- package/dist/components/split-panel/USplitPanel.js +239 -3
- package/dist/components/split-panel/USplitPanel.styles.js +47 -15
- package/dist/components/switch/USwitch.d.ts +43 -0
- package/dist/components/switch/USwitch.js +80 -0
- package/dist/components/switch/USwitch.styles.d.ts +1 -0
- package/dist/components/switch/USwitch.styles.js +191 -0
- package/dist/components/tab/UTab.d.ts +31 -0
- package/dist/components/tab/UTab.js +68 -0
- package/dist/components/tab/UTab.styles.d.ts +1 -0
- package/dist/components/tab/UTab.styles.js +46 -0
- package/dist/components/tab-panel/UTabPanel.d.ts +45 -0
- package/dist/components/tab-panel/UTabPanel.js +150 -0
- package/dist/components/tab-panel/UTabPanel.styles.d.ts +1 -0
- package/dist/components/tab-panel/UTabPanel.styles.js +201 -0
- package/dist/components/tag/UTag.d.ts +26 -3
- package/dist/components/tag/UTag.js +41 -4
- package/dist/components/tag/UTag.styles.js +206 -60
- package/dist/components/textarea/UTextarea.d.ts +65 -0
- package/dist/components/textarea/UTextarea.js +145 -0
- package/dist/components/textarea/UTextarea.styles.d.ts +1 -0
- package/dist/components/textarea/UTextarea.styles.js +157 -0
- package/dist/components/tooltip/UTooltip.d.ts +28 -2
- package/dist/components/tooltip/UTooltip.js +104 -4
- package/dist/components/tooltip/UTooltip.styles.js +10 -12
- package/dist/components/tree/UTree.d.ts +62 -2
- package/dist/components/tree/UTree.js +308 -3
- package/dist/components/tree/UTree.styles.js +13 -19
- package/dist/components/tree-item/UTreeItem.d.ts +61 -2
- package/dist/components/tree-item/UTreeItem.js +191 -2
- package/dist/components/tree-item/UTreeItem.styles.js +96 -37
- package/dist/events/CheckEvent.d.ts +7 -0
- package/dist/events/CollapseEvent.d.ts +7 -0
- package/dist/events/ExpandEvent.d.ts +7 -0
- package/dist/events/HideEvent.d.ts +7 -0
- package/dist/events/NavigateEvent.d.ts +7 -0
- package/dist/events/PickEvent.d.ts +18 -0
- package/dist/events/RemoveEvent.d.ts +7 -0
- package/dist/events/ShiftEvent.d.ts +16 -0
- package/dist/events/ShowEvent.d.ts +7 -0
- package/dist/index.d.ts +37 -10
- package/dist/index.js +56 -52
- package/dist/react/UAlert.d.ts +13 -0
- package/dist/{react-components → react}/UAlert.js +5 -2
- package/dist/react/UAvatar.d.ts +9 -0
- package/dist/react/UAvatar.js +10 -0
- package/dist/react/UBadge.d.ts +9 -0
- package/dist/react/UBadge.js +10 -0
- package/dist/react/UBreadcrumb.d.ts +9 -0
- package/dist/react/UBreadcrumb.js +10 -0
- package/dist/react/UBreadcrumbItem.d.ts +11 -0
- package/dist/react/UBreadcrumbItem.js +12 -0
- package/dist/{react-components → react}/UButton.d.ts +3 -2
- package/dist/{react-components → react}/UButton.js +2 -2
- package/dist/react/UButtonGroup.d.ts +9 -0
- package/dist/react/UButtonGroup.js +10 -0
- package/dist/{react-components → react}/UCard.d.ts +3 -2
- package/dist/{react-components → react}/UCard.js +2 -2
- package/dist/{react-components → react}/UCarousel.d.ts +3 -2
- package/dist/{react-components → react}/UCarousel.js +2 -2
- package/dist/react/UCheckbox.d.ts +9 -0
- package/dist/react/UCheckbox.js +10 -0
- package/dist/react/UChip.d.ts +13 -0
- package/dist/react/UChip.js +13 -0
- package/dist/{react-components → react}/UDialog.d.ts +3 -2
- package/dist/{react-components → react}/UDialog.js +2 -2
- package/dist/{react-components → react}/UDivider.d.ts +3 -2
- package/dist/{react-components → react}/UDivider.js +2 -2
- package/dist/{react-components → react}/UDrawer.d.ts +3 -2
- package/dist/{react-components → react}/UDrawer.js +2 -2
- package/dist/react/UField.d.ts +9 -0
- package/dist/react/UField.js +10 -0
- package/dist/react/UForm.d.ts +10 -0
- package/dist/{react-components → react}/UForm.js +4 -2
- package/dist/{react-components → react}/UIcon.d.ts +3 -2
- package/dist/{react-components → react}/UIcon.js +2 -2
- package/dist/react/UIconButton.d.ts +9 -0
- package/dist/react/UIconButton.js +10 -0
- package/dist/react/UInput.d.ts +11 -0
- package/dist/{react-components → react}/UInput.js +5 -2
- package/dist/react/UMenu.d.ts +10 -0
- package/dist/{react-components → react}/UMenu.js +4 -2
- package/dist/react/UMenuItem.d.ts +11 -0
- package/dist/{react-components → react}/UMenuItem.js +4 -2
- package/dist/react/UOption.d.ts +9 -0
- package/dist/react/UOption.js +10 -0
- package/dist/react/UPanel.d.ts +9 -0
- package/dist/react/UPanel.js +10 -0
- package/dist/react/UPopover.d.ts +11 -0
- package/dist/react/UPopover.js +13 -0
- package/dist/react/UProgressBar.d.ts +9 -0
- package/dist/{react-components → react}/UProgressBar.js +2 -2
- package/dist/react/UProgressRing.d.ts +9 -0
- package/dist/{react-components → react}/UProgressRing.js +2 -2
- package/dist/react/URadio.d.ts +10 -0
- package/dist/react/URadio.js +12 -0
- package/dist/react/URating.d.ts +10 -0
- package/dist/react/URating.js +12 -0
- package/dist/react/USelect.d.ts +10 -0
- package/dist/react/USelect.js +12 -0
- package/dist/{react-components → react}/USkeleton.d.ts +3 -2
- package/dist/{react-components → react}/USkeleton.js +2 -2
- package/dist/react/USlider.d.ts +10 -0
- package/dist/react/USlider.js +12 -0
- package/dist/{react-components → react}/USpinner.d.ts +3 -2
- package/dist/{react-components → react}/USpinner.js +2 -2
- package/dist/react/USplitPanel.d.ts +13 -0
- package/dist/{react-components → react}/USplitPanel.js +6 -2
- package/dist/react/USwitch.d.ts +10 -0
- package/dist/react/USwitch.js +12 -0
- package/dist/react/UTab.d.ts +11 -0
- package/dist/react/UTab.js +12 -0
- package/dist/react/UTabPanel.d.ts +9 -0
- package/dist/react/UTabPanel.js +10 -0
- package/dist/{react-components → react}/UTag.d.ts +3 -2
- package/dist/{react-components → react}/UTag.js +2 -2
- package/dist/react/UTextarea.d.ts +11 -0
- package/dist/react/UTextarea.js +13 -0
- package/dist/react/UTooltip.d.ts +11 -0
- package/dist/{react-components → react}/UTooltip.js +5 -2
- package/dist/react/UTree.d.ts +10 -0
- package/dist/{react-components → react}/UTree.js +4 -2
- package/dist/react/UTreeItem.d.ts +17 -0
- package/dist/{react-components → react}/UTreeItem.js +7 -2
- package/dist/{react-components → react}/index.d.ts +40 -27
- package/dist/{react-components → react}/index.js +40 -20
- package/dist/{assets/styles → styles}/dark.css +68 -3
- package/dist/{assets/styles → styles}/light.css +68 -3
- package/dist/utilities/BrowserStorage.d.ts +2 -1
- package/dist/utilities/BrowserStorage.js +69 -86
- package/dist/utilities/Dialog.d.ts +83 -0
- package/dist/utilities/Dialog.js +141 -0
- package/dist/utilities/OverlayManager.d.ts +37 -0
- package/dist/utilities/OverlayManager.js +68 -0
- package/dist/utilities/Theme.js +134 -141
- package/dist/utilities/Toast.d.ts +45 -0
- package/dist/utilities/Toast.js +114 -0
- package/dist/utilities/converters.d.ts +44 -1
- package/dist/utilities/converters.js +112 -14
- package/dist/utilities/elements.js +62 -33
- package/dist/utilities/icons.d.ts +67 -0
- package/dist/utilities/icons.js +200 -0
- package/dist/utilities/sanitizers.js +64 -32
- package/package.json +24 -20
- package/plugins/vite-plugin-glob-resolve.d.ts +12 -0
- package/plugins/vite-plugin-glob-resolve.js +66 -0
- package/plugins/vite-plugin-react-wrapper.d.ts +12 -0
- package/plugins/vite-plugin-react-wrapper.js +206 -0
- package/skills/iyulab-components/SKILL.md +138 -0
- package/skills/iyulab-components/references/components/alert.md +74 -0
- package/skills/iyulab-components/references/components/avatar.md +41 -0
- package/skills/iyulab-components/references/components/badge.md +38 -0
- package/skills/iyulab-components/references/components/breadcrumb.md +75 -0
- package/skills/iyulab-components/references/components/button-group.md +38 -0
- package/skills/iyulab-components/references/components/button.md +56 -0
- package/skills/iyulab-components/references/components/card.md +53 -0
- package/skills/iyulab-components/references/components/carousel.md +63 -0
- package/skills/iyulab-components/references/components/checkbox.md +70 -0
- package/skills/iyulab-components/references/components/chip.md +64 -0
- package/skills/iyulab-components/references/components/dialog.md +71 -0
- package/skills/iyulab-components/references/components/divider.md +56 -0
- package/skills/iyulab-components/references/components/drawer.md +63 -0
- package/skills/iyulab-components/references/components/field.md +42 -0
- package/skills/iyulab-components/references/components/form.md +68 -0
- package/skills/iyulab-components/references/components/icon-button.md +56 -0
- package/skills/iyulab-components/references/components/icon.md +49 -0
- package/skills/iyulab-components/references/components/input.md +95 -0
- package/skills/iyulab-components/references/components/menu.md +106 -0
- package/skills/iyulab-components/references/components/option.md +70 -0
- package/skills/iyulab-components/references/components/panel.md +38 -0
- package/skills/iyulab-components/references/components/popover.md +62 -0
- package/skills/iyulab-components/references/components/progress-bar.md +61 -0
- package/skills/iyulab-components/references/components/progress-ring.md +58 -0
- package/skills/iyulab-components/references/components/radio.md +67 -0
- package/skills/iyulab-components/references/components/rating.md +74 -0
- package/skills/iyulab-components/references/components/select.md +86 -0
- package/skills/iyulab-components/references/components/skeleton.md +46 -0
- package/skills/iyulab-components/references/components/slider.md +89 -0
- package/skills/iyulab-components/references/components/spinner.md +47 -0
- package/skills/iyulab-components/references/components/split-panel.md +65 -0
- package/skills/iyulab-components/references/components/switch.md +81 -0
- package/skills/iyulab-components/references/components/tab-panel.md +93 -0
- package/skills/iyulab-components/references/components/tag.md +55 -0
- package/skills/iyulab-components/references/components/textarea.md +67 -0
- package/skills/iyulab-components/references/components/tooltip.md +58 -0
- package/skills/iyulab-components/references/components/tree.md +128 -0
- package/skills/iyulab-components/references/extensions/data.md +60 -0
- package/skills/iyulab-components/references/extensions/element.md +57 -0
- package/skills/iyulab-components/references/extensions/floating.md +60 -0
- package/skills/iyulab-components/references/extensions/form-control.md +79 -0
- package/skills/iyulab-components/references/extensions/overlay.md +76 -0
- package/skills/iyulab-components/references/usage.md +216 -0
- package/skills/iyulab-components/references/utilities/browser-storage.md +54 -0
- package/skills/iyulab-components/references/utilities/converters.md +42 -0
- package/skills/iyulab-components/references/utilities/dialog.md +75 -0
- package/skills/iyulab-components/references/utilities/elements.md +55 -0
- package/skills/iyulab-components/references/utilities/icons.md +53 -0
- package/skills/iyulab-components/references/utilities/overlay-manager.md +34 -0
- package/skills/iyulab-components/references/utilities/sanitizers.md +32 -0
- package/skills/iyulab-components/references/utilities/theme.md +45 -0
- package/skills/iyulab-components/references/utilities/toast.md +58 -0
- package/dist/assets/icons/arrow-down-up.svg.js +0 -3
- package/dist/assets/icons/arrow-down.svg.js +0 -3
- package/dist/assets/icons/arrow-repeat.svg.js +0 -3
- package/dist/assets/icons/arrow-up.svg.js +0 -3
- package/dist/assets/icons/ban.svg.js +0 -3
- package/dist/assets/icons/bell-fill.svg.js +0 -3
- package/dist/assets/icons/box-arrow-up-right.svg.js +0 -3
- package/dist/assets/icons/check-circle-fill.svg.js +0 -3
- package/dist/assets/icons/check-lg.svg.js +0 -3
- package/dist/assets/icons/chevron-down.svg.js +0 -3
- package/dist/assets/icons/chevron-left.svg.js +0 -3
- package/dist/assets/icons/chevron-right.svg.js +0 -3
- package/dist/assets/icons/chevron-up.svg.js +0 -3
- package/dist/assets/icons/code-slash.svg.js +0 -3
- package/dist/assets/icons/copy.svg.js +0 -3
- package/dist/assets/icons/dash-lg.svg.js +0 -3
- package/dist/assets/icons/download.svg.js +0 -3
- package/dist/assets/icons/exclamation-circle-fill.svg.js +0 -3
- package/dist/assets/icons/exclamation-triangle-fill.svg.js +0 -3
- package/dist/assets/icons/eye-slash.svg.js +0 -3
- package/dist/assets/icons/eye.svg.js +0 -3
- package/dist/assets/icons/file-earmark.svg.js +0 -3
- package/dist/assets/icons/flag.svg.js +0 -3
- package/dist/assets/icons/globe.svg.js +0 -3
- package/dist/assets/icons/hand-thumbs-down-fill.svg.js +0 -3
- package/dist/assets/icons/hand-thumbs-down.svg.js +0 -3
- package/dist/assets/icons/hand-thumbs-up-fill.svg.js +0 -3
- package/dist/assets/icons/hand-thumbs-up.svg.js +0 -3
- package/dist/assets/icons/info-circle-fill.svg.js +0 -3
- package/dist/assets/icons/lightbulb-fill.svg.js +0 -3
- package/dist/assets/icons/lightbulb-off.svg.js +0 -3
- package/dist/assets/icons/lightbulb.svg.js +0 -3
- package/dist/assets/icons/mic-fill.svg.js +0 -3
- package/dist/assets/icons/mic-mute-fill.svg.js +0 -3
- package/dist/assets/icons/paperclip.svg.js +0 -3
- package/dist/assets/icons/pencil-square.svg.js +0 -3
- package/dist/assets/icons/plus-lg.svg.js +0 -3
- package/dist/assets/icons/search.svg.js +0 -3
- package/dist/assets/icons/share.svg.js +0 -3
- package/dist/assets/icons/sort-alpha-down.svg.js +0 -3
- package/dist/assets/icons/sort-alpha-up.svg.js +0 -3
- package/dist/assets/icons/stop-circle.svg.js +0 -3
- package/dist/assets/icons/tools.svg.js +0 -3
- package/dist/assets/icons/x-lg.svg.js +0 -3
- package/dist/assets/styles/dark.css.js +0 -3
- package/dist/assets/styles/light.css.js +0 -3
- package/dist/components/UJsonElement.js +0 -93
- package/dist/components/UModalElement.d.ts +0 -70
- package/dist/components/UModalElement.js +0 -144
- package/dist/components/UModalElement.styles.js +0 -29
- package/dist/components/alert/UAlert.component.d.ts +0 -40
- package/dist/components/alert/UAlert.component.js +0 -146
- package/dist/components/button/UButton.component.d.ts +0 -23
- package/dist/components/button/UButton.component.js +0 -72
- package/dist/components/card/UCard.component.d.ts +0 -21
- package/dist/components/card/UCard.component.js +0 -66
- package/dist/components/carousel/UCarousel.component.d.ts +0 -78
- package/dist/components/carousel/UCarousel.component.js +0 -264
- package/dist/components/dialog/UDialog.component.d.ts +0 -17
- package/dist/components/dialog/UDialog.component.js +0 -70
- package/dist/components/divider/UDivider.component.d.ts +0 -10
- package/dist/components/divider/UDivider.component.js +0 -30
- package/dist/components/drawer/UDrawer.component.d.ts +0 -18
- package/dist/components/drawer/UDrawer.component.js +0 -64
- package/dist/components/form/UForm.component.d.ts +0 -24
- package/dist/components/form/UForm.component.js +0 -76
- package/dist/components/icon/UIcon.component.d.ts +0 -29
- package/dist/components/icon/UIcon.component.js +0 -57
- package/dist/components/input/UInput.component.d.ts +0 -92
- package/dist/components/input/UInput.component.js +0 -267
- package/dist/components/menu/UMenu.component.d.ts +0 -67
- package/dist/components/menu/UMenu.component.js +0 -338
- package/dist/components/menu-item/UMenuItem.component.d.ts +0 -25
- package/dist/components/menu-item/UMenuItem.component.js +0 -111
- package/dist/components/progress-bar/UProgressBar.component.d.ts +0 -27
- package/dist/components/progress-bar/UProgressBar.component.js +0 -99
- package/dist/components/progress-ring/UProgressRing.component.d.ts +0 -33
- package/dist/components/progress-ring/UProgressRing.component.js +0 -114
- package/dist/components/skeleton/USkeleton.component.d.ts +0 -22
- package/dist/components/skeleton/USkeleton.component.js +0 -58
- package/dist/components/spinner/USpinner.component.d.ts +0 -9
- package/dist/components/spinner/USpinner.component.js +0 -22
- package/dist/components/split-panel/USplitPanel.component.d.ts +0 -44
- package/dist/components/split-panel/USplitPanel.component.js +0 -185
- package/dist/components/tag/UTag.component.d.ts +0 -23
- package/dist/components/tag/UTag.component.js +0 -72
- package/dist/components/tooltip/UTooltip.component.d.ts +0 -27
- package/dist/components/tooltip/UTooltip.component.js +0 -88
- package/dist/components/tree/UTree.component.d.ts +0 -37
- package/dist/components/tree/UTree.component.js +0 -120
- package/dist/components/tree-item/UTreeItem.component.d.ts +0 -41
- package/dist/components/tree-item/UTreeItem.component.js +0 -161
- package/dist/events/UChangeEvent.d.ts +0 -6
- package/dist/events/UHideEvent.d.ts +0 -6
- package/dist/events/UInputEvent.d.ts +0 -6
- package/dist/events/UResizeEvent.d.ts +0 -6
- package/dist/events/USelectEvent.d.ts +0 -6
- package/dist/events/UShowEvent.d.ts +0 -6
- package/dist/react-components/UAlert.d.ts +0 -8
- package/dist/react-components/UForm.d.ts +0 -8
- package/dist/react-components/UInput.d.ts +0 -8
- package/dist/react-components/UMenu.d.ts +0 -8
- package/dist/react-components/UMenuItem.d.ts +0 -8
- package/dist/react-components/UProgressBar.d.ts +0 -8
- package/dist/react-components/UProgressRing.d.ts +0 -8
- package/dist/react-components/USplitPanel.d.ts +0 -8
- package/dist/react-components/UTooltip.d.ts +0 -8
- package/dist/react-components/UTree.d.ts +0 -8
- package/dist/react-components/UTreeItem.d.ts +0 -8
- package/dist/utilities/IconRegistry.d.ts +0 -40
- package/dist/utilities/IconRegistry.js +0 -134
- package/dist/utilities/Notifier.d.ts +0 -31
- package/dist/utilities/Notifier.js +0 -79
- package/dist/utilities/decorators.d.ts +0 -28
- /package/dist/components/{UJsonElement.styles.d.ts → UDataElement.styles.d.ts} +0 -0
- /package/dist/components/{UModalElement.styles.d.ts → UFormControlElement.styles.d.ts} +0 -0
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { property, state } from 'lit/decorators.js';
|
|
3
|
-
import { UElement } from '../UElement.js';
|
|
4
|
-
import { UButton } from '../button/UButton.component.js';
|
|
5
|
-
import { UIcon } from '../icon/UIcon.component.js';
|
|
6
|
-
import { styles } from './UCarousel.styles.js';
|
|
7
|
-
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
-
var result = void 0 ;
|
|
11
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
-
if (decorator = decorators[i])
|
|
13
|
-
result = (decorator(target, key, result) ) || result;
|
|
14
|
-
if (result) __defProp(target, key, result);
|
|
15
|
-
return result;
|
|
16
|
-
};
|
|
17
|
-
class UCarousel extends UElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.autoplay = false;
|
|
21
|
-
this.autoplayInterval = 3e3;
|
|
22
|
-
this.loop = false;
|
|
23
|
-
this.navigation = false;
|
|
24
|
-
this.pagination = false;
|
|
25
|
-
this.draggable = false;
|
|
26
|
-
this.slidesPerView = 1;
|
|
27
|
-
this.slidesPerMove = 1;
|
|
28
|
-
this.gap = 0;
|
|
29
|
-
this.index = 0;
|
|
30
|
-
this.slideCount = 0;
|
|
31
|
-
this.isDragging = false;
|
|
32
|
-
this.dragOffset = 0;
|
|
33
|
-
this.dragStartX = 0;
|
|
34
|
-
this.dragStartTime = 0;
|
|
35
|
-
this.pointerDown = false;
|
|
36
|
-
/** 이전 슬라이드로 이동 */
|
|
37
|
-
this.prev = () => {
|
|
38
|
-
const target = Math.max(0, this.index - this.perMove);
|
|
39
|
-
if (target !== this.index) {
|
|
40
|
-
this.goTo(target);
|
|
41
|
-
} else if (this.loop) {
|
|
42
|
-
this.goTo(Math.min((this.pageCount - 1) * this.perMove, this.maxIndex));
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
/** 다음 슬라이드로 이동 */
|
|
46
|
-
this.next = () => {
|
|
47
|
-
const target = Math.min(this.maxIndex, this.index + this.perMove);
|
|
48
|
-
if (target !== this.index) {
|
|
49
|
-
this.goTo(target);
|
|
50
|
-
} else if (this.loop) {
|
|
51
|
-
this.goTo(0);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
/** 지정한 인덱스로 이동 */
|
|
55
|
-
this.goTo = (index) => {
|
|
56
|
-
if (index < 0 || index > this.maxIndex || index === this.index) return;
|
|
57
|
-
this.index = index;
|
|
58
|
-
this.emit("u-change", {
|
|
59
|
-
index: this.index
|
|
60
|
-
});
|
|
61
|
-
if (this.autoplay) this.startAutoplay();
|
|
62
|
-
};
|
|
63
|
-
this.handleDragStart = (e) => {
|
|
64
|
-
e.preventDefault();
|
|
65
|
-
};
|
|
66
|
-
this.handlePointerDown = (e) => {
|
|
67
|
-
if (e.button !== 0) return;
|
|
68
|
-
this.pointerDown = true;
|
|
69
|
-
this.dragStartX = e.clientX;
|
|
70
|
-
this.dragOffset = 0;
|
|
71
|
-
this.dragStartTime = Date.now();
|
|
72
|
-
if (this.autoplay) this.stopAutoplay();
|
|
73
|
-
};
|
|
74
|
-
this.handlePointerMove = (e) => {
|
|
75
|
-
if (!this.pointerDown) return;
|
|
76
|
-
const wrapper = e.currentTarget;
|
|
77
|
-
const offset = (e.clientX - this.dragStartX) / wrapper.offsetWidth * 100;
|
|
78
|
-
if (!this.isDragging && Math.abs(e.clientX - this.dragStartX) > 5) {
|
|
79
|
-
this.isDragging = true;
|
|
80
|
-
wrapper.setPointerCapture(e.pointerId);
|
|
81
|
-
}
|
|
82
|
-
if (this.isDragging) {
|
|
83
|
-
this.dragOffset = offset;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
this.handlePointerUp = (e) => {
|
|
87
|
-
if (!this.pointerDown) return;
|
|
88
|
-
const elapsed = Date.now() - this.dragStartTime;
|
|
89
|
-
const absDrag = Math.abs(this.dragOffset);
|
|
90
|
-
if (this.isDragging && (absDrag > 20 || absDrag > 5 && elapsed < 300)) {
|
|
91
|
-
if (this.dragOffset < 0) this.next();
|
|
92
|
-
else this.prev();
|
|
93
|
-
this.addEventListener("click", this.handleClickCancel, {
|
|
94
|
-
capture: true,
|
|
95
|
-
once: true
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
if (this.isDragging) {
|
|
99
|
-
const wrapper = e.currentTarget;
|
|
100
|
-
wrapper.releasePointerCapture(e.pointerId);
|
|
101
|
-
}
|
|
102
|
-
this.pointerDown = false;
|
|
103
|
-
this.isDragging = false;
|
|
104
|
-
this.dragOffset = 0;
|
|
105
|
-
if (this.autoplay) this.startAutoplay();
|
|
106
|
-
};
|
|
107
|
-
this.handleClickCancel = (e) => {
|
|
108
|
-
e.preventDefault();
|
|
109
|
-
e.stopPropagation();
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
static {
|
|
113
|
-
this.styles = [super.styles, styles];
|
|
114
|
-
}
|
|
115
|
-
static {
|
|
116
|
-
this.dependencies = {
|
|
117
|
-
"u-button": UButton,
|
|
118
|
-
"u-icon": UIcon
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
/** 한 화면에 표시할 슬라이드 수 (최소 1) */
|
|
122
|
-
get perView() {
|
|
123
|
-
return Math.max(1, this.slidesPerView);
|
|
124
|
-
}
|
|
125
|
-
/** 한 번에 이동할 슬라이드 수 (최소 1) */
|
|
126
|
-
get perMove() {
|
|
127
|
-
return Math.max(1, this.slidesPerMove);
|
|
128
|
-
}
|
|
129
|
-
/** 슬라이드가 이동할 수 있는 최대 index */
|
|
130
|
-
get maxIndex() {
|
|
131
|
-
return Math.max(0, this.slideCount - this.perView);
|
|
132
|
-
}
|
|
133
|
-
/** 총 페이지 수 (인디케이터 도트 수) */
|
|
134
|
-
get pageCount() {
|
|
135
|
-
return this.maxIndex <= 0 ? 1 : Math.ceil(this.maxIndex / this.perMove) + 1;
|
|
136
|
-
}
|
|
137
|
-
/** 현재 페이지 (인디케이터 도트 활성화에 사용) */
|
|
138
|
-
get currentPage() {
|
|
139
|
-
return this.index >= this.maxIndex ? this.pageCount - 1 : Math.floor(this.index / this.perMove);
|
|
140
|
-
}
|
|
141
|
-
connectedCallback() {
|
|
142
|
-
super.connectedCallback();
|
|
143
|
-
if (this.autoplay) this.startAutoplay();
|
|
144
|
-
}
|
|
145
|
-
disconnectedCallback() {
|
|
146
|
-
this.stopAutoplay();
|
|
147
|
-
super.disconnectedCallback();
|
|
148
|
-
}
|
|
149
|
-
willUpdate(changedProperties) {
|
|
150
|
-
super.willUpdate(changedProperties);
|
|
151
|
-
if (changedProperties.has("slidesPerView")) {
|
|
152
|
-
this.style.setProperty("--slides-per-view", String(this.perView));
|
|
153
|
-
}
|
|
154
|
-
if (changedProperties.has("gap")) {
|
|
155
|
-
this.style.setProperty("--slide-gap", `${this.gap}px`);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
updated(changedProperties) {
|
|
159
|
-
super.updated(changedProperties);
|
|
160
|
-
if (changedProperties.has("autoplay") || changedProperties.has("autoplayInterval")) {
|
|
161
|
-
if (this.autoplay) this.startAutoplay();
|
|
162
|
-
else this.stopAutoplay();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
render() {
|
|
166
|
-
const pct = -(this.index * (100 / this.perView)) + this.dragOffset;
|
|
167
|
-
const gapPx = this.gap > 0 ? -(this.index * this.gap / this.perView) : 0;
|
|
168
|
-
const transform = gapPx ? `translateX(calc(${pct}% + ${gapPx}px))` : `translateX(${pct}%)`;
|
|
169
|
-
const style = `transform: ${transform}${this.isDragging ? "; transition: none" : ""}`;
|
|
170
|
-
return html`
|
|
171
|
-
<div class="slides-wrapper"
|
|
172
|
-
@dragstart=${this.handleDragStart}
|
|
173
|
-
@pointerdown=${this.draggable ? this.handlePointerDown : null}
|
|
174
|
-
@pointermove=${this.draggable ? this.handlePointerMove : null}
|
|
175
|
-
@pointerup=${this.draggable ? this.handlePointerUp : null}
|
|
176
|
-
@pointerleave=${this.draggable ? this.handlePointerUp : null}>
|
|
177
|
-
<div part="slides" class="slides" style="${style}">
|
|
178
|
-
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
<u-button part="prev-button" class="nav-button prev"
|
|
183
|
-
?hidden=${!this.navigation || !this.loop && this.index <= 0}
|
|
184
|
-
@click=${this.prev}>
|
|
185
|
-
<u-icon lib="internal" name="chevron-left"></u-icon>
|
|
186
|
-
</u-button>
|
|
187
|
-
<u-button part="next-button" class="nav-button next"
|
|
188
|
-
?hidden=${!this.navigation || !this.loop && this.index >= this.maxIndex}
|
|
189
|
-
@click=${this.next}>
|
|
190
|
-
<u-icon lib="internal" name="chevron-right"></u-icon>
|
|
191
|
-
</u-button>
|
|
192
|
-
|
|
193
|
-
<div part="indicator" class="indicator"
|
|
194
|
-
?hidden=${!this.pagination || !this.slideCount}>
|
|
195
|
-
${Array.from({ length: this.pageCount }, (_, i) => html`
|
|
196
|
-
<button part="dot" class="dot"
|
|
197
|
-
?active=${i === this.currentPage}
|
|
198
|
-
@click=${() => this.goTo(Math.min(i * this.perMove, this.maxIndex))}>
|
|
199
|
-
</button>
|
|
200
|
-
`)}
|
|
201
|
-
</div>
|
|
202
|
-
`;
|
|
203
|
-
}
|
|
204
|
-
startAutoplay() {
|
|
205
|
-
this.stopAutoplay();
|
|
206
|
-
this.autoplayTimer = window.setInterval(() => {
|
|
207
|
-
this.next();
|
|
208
|
-
}, this.autoplayInterval);
|
|
209
|
-
}
|
|
210
|
-
stopAutoplay() {
|
|
211
|
-
if (this.autoplayTimer) {
|
|
212
|
-
clearInterval(this.autoplayTimer);
|
|
213
|
-
this.autoplayTimer = void 0;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
handleSlotChange(e) {
|
|
217
|
-
const slot = e.target;
|
|
218
|
-
this.slideCount = slot.assignedElements().length;
|
|
219
|
-
if (this.index >= this.slideCount) {
|
|
220
|
-
this.index = Math.max(0, this.slideCount - 1);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
__decorateClass([
|
|
225
|
-
property({ type: Boolean })
|
|
226
|
-
], UCarousel.prototype, "autoplay");
|
|
227
|
-
__decorateClass([
|
|
228
|
-
property({ type: Number, attribute: "autoplay-interval" })
|
|
229
|
-
], UCarousel.prototype, "autoplayInterval");
|
|
230
|
-
__decorateClass([
|
|
231
|
-
property({ type: Boolean })
|
|
232
|
-
], UCarousel.prototype, "loop");
|
|
233
|
-
__decorateClass([
|
|
234
|
-
property({ type: Boolean })
|
|
235
|
-
], UCarousel.prototype, "navigation");
|
|
236
|
-
__decorateClass([
|
|
237
|
-
property({ type: Boolean })
|
|
238
|
-
], UCarousel.prototype, "pagination");
|
|
239
|
-
__decorateClass([
|
|
240
|
-
property({ type: Boolean, reflect: true })
|
|
241
|
-
], UCarousel.prototype, "draggable");
|
|
242
|
-
__decorateClass([
|
|
243
|
-
property({ type: Number, attribute: "slides-per-view" })
|
|
244
|
-
], UCarousel.prototype, "slidesPerView");
|
|
245
|
-
__decorateClass([
|
|
246
|
-
property({ type: Number, attribute: "slides-per-move" })
|
|
247
|
-
], UCarousel.prototype, "slidesPerMove");
|
|
248
|
-
__decorateClass([
|
|
249
|
-
property({ type: Number })
|
|
250
|
-
], UCarousel.prototype, "gap");
|
|
251
|
-
__decorateClass([
|
|
252
|
-
property({ type: Number })
|
|
253
|
-
], UCarousel.prototype, "index");
|
|
254
|
-
__decorateClass([
|
|
255
|
-
state()
|
|
256
|
-
], UCarousel.prototype, "slideCount");
|
|
257
|
-
__decorateClass([
|
|
258
|
-
state()
|
|
259
|
-
], UCarousel.prototype, "isDragging");
|
|
260
|
-
__decorateClass([
|
|
261
|
-
state()
|
|
262
|
-
], UCarousel.prototype, "dragOffset");
|
|
263
|
-
|
|
264
|
-
export { UCarousel };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { UElement } from '../UElement.js';
|
|
2
|
-
import { UModalElement } from '../UModalElement.js';
|
|
3
|
-
/**
|
|
4
|
-
* Dialog 컴포넌트는 모달 대화상자를 제공합니다.
|
|
5
|
-
* 오버레이와 함께 화면 중앙에 표시되며, 헤더, 본문, 푸터 영역을 슬롯으로 제공합니다.
|
|
6
|
-
*/
|
|
7
|
-
export declare class UDialog extends UModalElement {
|
|
8
|
-
static styles: import('lit').CSSResultGroup[];
|
|
9
|
-
static dependencies: Record<string, typeof UElement>;
|
|
10
|
-
/** 헤드리스 모드 여부 */
|
|
11
|
-
headless: boolean;
|
|
12
|
-
/** 타이틀 텍스트 */
|
|
13
|
-
heading: string;
|
|
14
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
-
/** block시 진동 효과를 적용합니다. */
|
|
16
|
-
protected block(): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import { UModalElement } from '../UModalElement.js';
|
|
4
|
-
import { UIcon } from '../icon/UIcon.component.js';
|
|
5
|
-
import { UButton } from '../button/UButton.component.js';
|
|
6
|
-
import { styles } from './UDialog.styles.js';
|
|
7
|
-
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
-
var result = void 0 ;
|
|
11
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
-
if (decorator = decorators[i])
|
|
13
|
-
result = (decorator(target, key, result) ) || result;
|
|
14
|
-
if (result) __defProp(target, key, result);
|
|
15
|
-
return result;
|
|
16
|
-
};
|
|
17
|
-
class UDialog extends UModalElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.headless = false;
|
|
21
|
-
this.heading = "";
|
|
22
|
-
}
|
|
23
|
-
static {
|
|
24
|
-
this.styles = [super.styles, styles];
|
|
25
|
-
}
|
|
26
|
-
static {
|
|
27
|
-
this.dependencies = {
|
|
28
|
-
"u-icon": UIcon,
|
|
29
|
-
"u-button": UButton
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
return html`
|
|
34
|
-
<div class="dialog" part="base" ?open=${this.open}>
|
|
35
|
-
<div class="header" part="header" ?hidden=${this.headless}>
|
|
36
|
-
<span class="title" part="title">
|
|
37
|
-
${this.heading}
|
|
38
|
-
</span>
|
|
39
|
-
<u-button class="close-btn" part="close-btn"
|
|
40
|
-
variant="link"
|
|
41
|
-
@click=${() => this.hide()}>
|
|
42
|
-
<u-icon lib="internal" name="x-lg"></u-icon>
|
|
43
|
-
</u-button>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div class="content" part="content" scrollable>
|
|
47
|
-
<slot></slot>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
`;
|
|
51
|
-
}
|
|
52
|
-
/** block시 진동 효과를 적용합니다. */
|
|
53
|
-
async block() {
|
|
54
|
-
await super.block();
|
|
55
|
-
const dialogEl = this.renderRoot.querySelector(".dialog");
|
|
56
|
-
if (!dialogEl) return;
|
|
57
|
-
dialogEl.setAttribute("shake", "");
|
|
58
|
-
setTimeout(() => {
|
|
59
|
-
dialogEl.removeAttribute("shake");
|
|
60
|
-
}, 500);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
__decorateClass([
|
|
64
|
-
property({ type: Boolean, reflect: true })
|
|
65
|
-
], UDialog.prototype, "headless");
|
|
66
|
-
__decorateClass([
|
|
67
|
-
property({ type: String })
|
|
68
|
-
], UDialog.prototype, "heading");
|
|
69
|
-
|
|
70
|
-
export { UDialog };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UElement } from '../UElement.js';
|
|
2
|
-
/**
|
|
3
|
-
* Divider 컴포넌트는 엘리먼트 사이에 구분선을 제공합니다.
|
|
4
|
-
*/
|
|
5
|
-
export declare class UDivider extends UElement {
|
|
6
|
-
static styles: import('lit').CSSResultGroup[];
|
|
7
|
-
static dependencies: Record<string, typeof UElement>;
|
|
8
|
-
/** 수직 방향 여부를 설정합니다. (기본값: 수평) */
|
|
9
|
-
vertical: boolean;
|
|
10
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { property } from 'lit/decorators.js';
|
|
2
|
-
import { UElement } from '../UElement.js';
|
|
3
|
-
import { styles } from './UDivider.styles.js';
|
|
4
|
-
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
|
-
var result = void 0 ;
|
|
8
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9
|
-
if (decorator = decorators[i])
|
|
10
|
-
result = (decorator(target, key, result) ) || result;
|
|
11
|
-
if (result) __defProp(target, key, result);
|
|
12
|
-
return result;
|
|
13
|
-
};
|
|
14
|
-
class UDivider extends UElement {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.vertical = false;
|
|
18
|
-
}
|
|
19
|
-
static {
|
|
20
|
-
this.styles = [super.styles, styles];
|
|
21
|
-
}
|
|
22
|
-
static {
|
|
23
|
-
this.dependencies = {};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
__decorateClass([
|
|
27
|
-
property({ type: Boolean, reflect: true })
|
|
28
|
-
], UDivider.prototype, "vertical");
|
|
29
|
-
|
|
30
|
-
export { UDivider };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { UElement } from '../UElement.js';
|
|
2
|
-
import { UModalElement } from '../UModalElement.js';
|
|
3
|
-
export type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
|
|
4
|
-
/**
|
|
5
|
-
* Drawer 컴포넌트는 화면 가장자리에서 슬라이드하여 나타나는 패널을 제공합니다.
|
|
6
|
-
* 네비게이션, 설정 패널, 상세 정보 표시 등에 사용됩니다.
|
|
7
|
-
*/
|
|
8
|
-
export declare class UDrawer extends UModalElement {
|
|
9
|
-
static styles: import('lit').CSSResultGroup[];
|
|
10
|
-
static dependencies: Record<string, typeof UElement>;
|
|
11
|
-
/** 드로어가 나타나는 위치 */
|
|
12
|
-
placement: DrawerPlacement;
|
|
13
|
-
/** 헤드리스 모드 여부 */
|
|
14
|
-
headless: boolean;
|
|
15
|
-
/** 타이틀 텍스트 */
|
|
16
|
-
heading: string;
|
|
17
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
18
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import { UModalElement } from '../UModalElement.js';
|
|
4
|
-
import { UIcon } from '../icon/UIcon.component.js';
|
|
5
|
-
import { UButton } from '../button/UButton.component.js';
|
|
6
|
-
import { styles } from './UDrawer.styles.js';
|
|
7
|
-
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
-
var result = void 0 ;
|
|
11
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
-
if (decorator = decorators[i])
|
|
13
|
-
result = (decorator(target, key, result) ) || result;
|
|
14
|
-
if (result) __defProp(target, key, result);
|
|
15
|
-
return result;
|
|
16
|
-
};
|
|
17
|
-
class UDrawer extends UModalElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.placement = "left";
|
|
21
|
-
this.headless = false;
|
|
22
|
-
this.heading = "";
|
|
23
|
-
}
|
|
24
|
-
static {
|
|
25
|
-
this.styles = [super.styles, styles];
|
|
26
|
-
}
|
|
27
|
-
static {
|
|
28
|
-
this.dependencies = {
|
|
29
|
-
"u-icon": UIcon,
|
|
30
|
-
"u-button": UButton
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
return html`
|
|
35
|
-
<div class="drawer" part="base" ?open=${this.open} placement=${this.placement}>
|
|
36
|
-
<div class="header" part="header" ?hidden=${this.headless}>
|
|
37
|
-
<span class="title" part="title">
|
|
38
|
-
${this.heading}
|
|
39
|
-
</span>
|
|
40
|
-
<u-button class="close-btn" part="close-btn"
|
|
41
|
-
variant="link"
|
|
42
|
-
@click=${() => this.hide()}>
|
|
43
|
-
<u-icon lib="internal" name="x-lg"></u-icon>
|
|
44
|
-
</u-button>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
<div class="content" part="content" scrollable>
|
|
48
|
-
<slot></slot>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
`;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
__decorateClass([
|
|
55
|
-
property({ type: String, reflect: true })
|
|
56
|
-
], UDrawer.prototype, "placement");
|
|
57
|
-
__decorateClass([
|
|
58
|
-
property({ type: Boolean, reflect: true })
|
|
59
|
-
], UDrawer.prototype, "headless");
|
|
60
|
-
__decorateClass([
|
|
61
|
-
property({ type: String })
|
|
62
|
-
], UDrawer.prototype, "heading");
|
|
63
|
-
|
|
64
|
-
export { UDrawer };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UElement } from '../UElement.js';
|
|
2
|
-
/**
|
|
3
|
-
* Form 컴포넌트는 여러 입력 요소를 그룹화하고 관리하는 폼 컨테이너입니다.
|
|
4
|
-
* 폼 내의 입력 요소들의 값 변경을 감지하고, 포함 및 제외 규칙에 따라 폼 컨텍스트에 데이터를 자동으로 업데이트합니다.
|
|
5
|
-
*/
|
|
6
|
-
export declare class UForm extends UElement {
|
|
7
|
-
static styles: import('lit').CSSResultGroup[];
|
|
8
|
-
static dependencies: Record<string, typeof UElement>;
|
|
9
|
-
/** 포함할 입력 요소의 name 속성 목록입니다. */
|
|
10
|
-
includes: string[];
|
|
11
|
-
/** 제외할 입력 요소의 name 속성 목록입니다. */
|
|
12
|
-
excludes: string[];
|
|
13
|
-
/** 폼의 컨텍스트 데이터를 설정합니다. */
|
|
14
|
-
context?: any;
|
|
15
|
-
connectedCallback(): void;
|
|
16
|
-
disconnectedCallback(): void;
|
|
17
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
18
|
-
/**
|
|
19
|
-
* 폼 내의 모든 입력 요소를 검증합니다.
|
|
20
|
-
*/
|
|
21
|
-
validate(): boolean;
|
|
22
|
-
/** 입력 요소의 변경 이벤트를 처리합니다. */
|
|
23
|
-
private handleInputChange;
|
|
24
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import { arrayAttrConverter } from '../../utilities/converters.js';
|
|
4
|
-
import { UElement } from '../UElement.js';
|
|
5
|
-
import { UInput } from '../input/UInput.component.js';
|
|
6
|
-
import { styles } from './UForm.styles.js';
|
|
7
|
-
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
-
var result = void 0 ;
|
|
11
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
-
if (decorator = decorators[i])
|
|
13
|
-
result = (decorator(target, key, result) ) || result;
|
|
14
|
-
if (result) __defProp(target, key, result);
|
|
15
|
-
return result;
|
|
16
|
-
};
|
|
17
|
-
class UForm extends UElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.includes = [];
|
|
21
|
-
this.excludes = [];
|
|
22
|
-
/** 입력 요소의 변경 이벤트를 처리합니다. */
|
|
23
|
-
this.handleInputChange = (e) => {
|
|
24
|
-
const input = e.target;
|
|
25
|
-
const name = input.name;
|
|
26
|
-
const value = input.value;
|
|
27
|
-
if (!name) return;
|
|
28
|
-
if (!this.includes.includes(name)) return;
|
|
29
|
-
if (this.excludes.includes(name)) return;
|
|
30
|
-
if (this.context && typeof this.context === "object") {
|
|
31
|
-
this.context[name] = value;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
static {
|
|
36
|
-
this.styles = [super.styles, styles];
|
|
37
|
-
}
|
|
38
|
-
static {
|
|
39
|
-
this.dependencies = {};
|
|
40
|
-
}
|
|
41
|
-
connectedCallback() {
|
|
42
|
-
super.connectedCallback();
|
|
43
|
-
this.addEventListener("change", this.handleInputChange);
|
|
44
|
-
}
|
|
45
|
-
disconnectedCallback() {
|
|
46
|
-
this.removeEventListener("change", this.handleInputChange);
|
|
47
|
-
super.disconnectedCallback();
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
return html`
|
|
51
|
-
<slot></slot>
|
|
52
|
-
`;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* 폼 내의 모든 입력 요소를 검증합니다.
|
|
56
|
-
*/
|
|
57
|
-
validate() {
|
|
58
|
-
const slot = this.shadowRoot?.querySelector("slot");
|
|
59
|
-
const elements = slot?.assignedElements({ flatten: true }).filter((el) => el instanceof UInput);
|
|
60
|
-
if (!elements) return true;
|
|
61
|
-
if (elements.length === 0) return true;
|
|
62
|
-
const isValid = Array.from(elements).every((input) => input.validate());
|
|
63
|
-
return isValid;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
__decorateClass([
|
|
67
|
-
property({ type: Array, converter: arrayAttrConverter((v) => v) })
|
|
68
|
-
], UForm.prototype, "includes");
|
|
69
|
-
__decorateClass([
|
|
70
|
-
property({ type: Array, converter: arrayAttrConverter((v) => v) })
|
|
71
|
-
], UForm.prototype, "excludes");
|
|
72
|
-
__decorateClass([
|
|
73
|
-
property({ type: Object, attribute: false })
|
|
74
|
-
], UForm.prototype, "context");
|
|
75
|
-
|
|
76
|
-
export { UForm };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { nothing } from 'lit';
|
|
2
|
-
import { UElement } from '../UElement.js';
|
|
3
|
-
export type IconLibrary = "internal" | "default" | (string & {});
|
|
4
|
-
/**
|
|
5
|
-
* 아이콘 컴포넌트입니다. SVG 아이콘을 이름으로 불러와서 렌더링합니다.
|
|
6
|
-
*/
|
|
7
|
-
export declare class UIcon extends UElement {
|
|
8
|
-
static styles: import('lit').CSSResultGroup[];
|
|
9
|
-
static dependencies: Record<string, typeof UElement>;
|
|
10
|
-
/**
|
|
11
|
-
* 사용할 아이콘 라이브러리를 지정합니다.
|
|
12
|
-
* - 기본 내장 라이브러리: `internal`, `default`
|
|
13
|
-
* - 사용자 확장 라이브러리: `icons.register()`로 등록한 라이브러리 이름
|
|
14
|
-
*
|
|
15
|
-
* @default "default"
|
|
16
|
-
*/
|
|
17
|
-
lib: IconLibrary;
|
|
18
|
-
/**
|
|
19
|
-
* 사용할 아이콘의 이름을 지정합니다.
|
|
20
|
-
*/
|
|
21
|
-
name?: string;
|
|
22
|
-
render(): import('lit-html/directive.js').DirectiveResult<{
|
|
23
|
-
new (_partInfo: import('lit-html/directive.js').PartInfo): import('lit-html/directives/until.js').UntilDirective<typeof nothing | Promise<import('lit-html/directive.js').DirectiveResult<typeof import('lit-html/directives/unsafe-html.js').UnsafeHTMLDirective>>>;
|
|
24
|
-
}>;
|
|
25
|
-
/**
|
|
26
|
-
* SVG 콘텐츠가 유효한 HTML인지 검사합니다.
|
|
27
|
-
*/
|
|
28
|
-
private validate;
|
|
29
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { nothing } from 'lit';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
4
|
-
import { until } from 'lit/directives/until.js';
|
|
5
|
-
import { UElement } from '../UElement.js';
|
|
6
|
-
import { IconRegistry } from '../../utilities/IconRegistry.js';
|
|
7
|
-
import { styles } from './UIcon.styles.js';
|
|
8
|
-
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
-
var result = void 0 ;
|
|
12
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
-
if (decorator = decorators[i])
|
|
14
|
-
result = (decorator(target, key, result) ) || result;
|
|
15
|
-
if (result) __defProp(target, key, result);
|
|
16
|
-
return result;
|
|
17
|
-
};
|
|
18
|
-
class UIcon extends UElement {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.lib = "default";
|
|
22
|
-
}
|
|
23
|
-
static {
|
|
24
|
-
this.styles = [super.styles, styles];
|
|
25
|
-
}
|
|
26
|
-
static {
|
|
27
|
-
this.dependencies = {};
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
if (!this.lib || !this.name) return nothing;
|
|
31
|
-
return until(IconRegistry.resolve(this.lib, this.name).then((html) => {
|
|
32
|
-
return this.validate(html) ? unsafeHTML(html) : nothing;
|
|
33
|
-
}), nothing);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* SVG 콘텐츠가 유효한 HTML인지 검사합니다.
|
|
37
|
-
*/
|
|
38
|
-
validate(html) {
|
|
39
|
-
if (!html) return false;
|
|
40
|
-
const trimmed = html.trim();
|
|
41
|
-
try {
|
|
42
|
-
const doc = new DOMParser().parseFromString(trimmed, "image/svg+xml");
|
|
43
|
-
if (doc.querySelector("parsererror")) return false;
|
|
44
|
-
return doc.documentElement?.tagName.toLowerCase() === "svg";
|
|
45
|
-
} catch {
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
__decorateClass([
|
|
51
|
-
property({ type: String })
|
|
52
|
-
], UIcon.prototype, "lib");
|
|
53
|
-
__decorateClass([
|
|
54
|
-
property({ type: String })
|
|
55
|
-
], UIcon.prototype, "name");
|
|
56
|
-
|
|
57
|
-
export { UIcon };
|