@pathscale/ui 1.1.37 → 1.1.39
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/components/accordion/Accordion.classes.d.ts +38 -0
- package/dist/components/accordion/Accordion.classes.js +39 -0
- package/dist/components/accordion/Accordion.css +158 -0
- package/dist/components/accordion/Accordion.d.ts +46 -22
- package/dist/components/accordion/Accordion.js +334 -154
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +7 -1
- package/dist/components/calendar/Calendar.classes.d.ts +62 -0
- package/dist/components/calendar/Calendar.classes.js +63 -0
- package/dist/components/calendar/Calendar.css +258 -0
- package/dist/components/calendar/Calendar.d.ts +24 -22
- package/dist/components/calendar/Calendar.js +304 -167
- package/dist/components/calendar/index.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubble.classes.d.ts +24 -0
- package/dist/components/chatbubble/ChatBubble.classes.js +25 -0
- package/dist/components/chatbubble/ChatBubble.css +164 -0
- package/dist/components/chatbubble/ChatBubble.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubble.js +3 -6
- package/dist/components/chatbubble/ChatBubbleAvatar.js +2 -1
- package/dist/components/chatbubble/ChatBubbleFooter.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleFooter.js +11 -3
- package/dist/components/chatbubble/ChatBubbleHeader.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleHeader.js +11 -3
- package/dist/components/chatbubble/ChatBubbleMessage.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleMessage.js +13 -14
- package/dist/components/chatbubble/ChatBubbleTime.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleTime.js +11 -3
- package/dist/components/color-field/ColorField.d.ts +1 -1
- package/dist/components/color-field/ColorField.js +3 -3
- package/dist/components/color-picker/ColorPicker.js +5 -5
- package/dist/components/color-wheel-flower/ColorWheelFlower.classes.d.ts +33 -0
- package/dist/components/color-wheel-flower/ColorWheelFlower.classes.js +34 -0
- package/dist/components/{colorpicker → color-wheel-flower}/ColorWheelFlower.js +52 -27
- package/dist/components/color-wheel-flower/index.d.ts +5 -0
- package/dist/components/color-wheel-flower/index.js +6 -0
- package/dist/components/date-picker/DatePicker.classes.d.ts +30 -0
- package/dist/components/date-picker/DatePicker.classes.js +31 -0
- package/dist/components/date-picker/DatePicker.css +143 -0
- package/dist/components/date-picker/DatePicker.d.ts +24 -0
- package/dist/components/date-picker/DatePicker.js +180 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/date-picker/index.js +3 -0
- package/dist/components/date-range-picker/DateRangePicker.classes.d.ts +33 -0
- package/dist/components/date-range-picker/DateRangePicker.classes.js +34 -0
- package/dist/components/date-range-picker/DateRangePicker.css +149 -0
- package/dist/components/date-range-picker/DateRangePicker.d.ts +28 -0
- package/dist/components/date-range-picker/DateRangePicker.js +230 -0
- package/dist/components/date-range-picker/index.d.ts +1 -0
- package/dist/components/date-range-picker/index.js +3 -0
- package/dist/components/flex/Flex.classes.d.ts +65 -0
- package/dist/components/flex/Flex.classes.js +66 -0
- package/dist/components/flex/Flex.css +5 -0
- package/dist/components/flex/Flex.d.ts +1 -0
- package/dist/components/flex/Flex.js +7 -66
- package/dist/components/floating-dock/FloatingDock.classes.d.ts +25 -0
- package/dist/components/floating-dock/FloatingDock.classes.js +26 -0
- package/dist/components/floating-dock/FloatingDock.css +14 -0
- package/dist/components/floating-dock/FloatingDock.js +76 -51
- package/dist/components/footer/Footer.classes.d.ts +9 -0
- package/dist/components/footer/Footer.classes.js +10 -0
- package/dist/components/footer/Footer.js +2 -6
- package/dist/components/footer/FooterTitle.js +2 -1
- package/dist/components/footer/footer.css +45 -45
- package/dist/components/glass-panel/GlassPanel.classes.d.ts +44 -0
- package/dist/components/glass-panel/GlassPanel.classes.js +45 -0
- package/dist/components/glass-panel/GlassPanel.css +170 -0
- package/dist/components/glass-panel/GlassPanel.d.ts +1 -0
- package/dist/components/glass-panel/GlassPanel.js +20 -58
- package/dist/components/glow-card/GlowCard.classes.d.ts +4 -0
- package/dist/components/glow-card/GlowCard.classes.js +5 -0
- package/dist/components/glow-card/GlowCard.css +4 -0
- package/dist/components/glow-card/GlowCard.js +2 -1
- package/dist/components/grid/Grid.classes.d.ts +54 -0
- package/dist/components/grid/Grid.classes.js +55 -0
- package/dist/components/grid/Grid.css +5 -0
- package/dist/components/grid/Grid.d.ts +1 -0
- package/dist/components/grid/Grid.js +3 -52
- package/dist/components/icon/Icon.classes.d.ts +3 -0
- package/dist/components/icon/Icon.classes.js +4 -0
- package/dist/components/icon/Icon.css +10 -0
- package/dist/components/icon/Icon.d.ts +1 -0
- package/dist/components/icon/Icon.js +8 -4
- package/dist/components/immersive-landing/ImmersiveLanding.classes.d.ts +83 -0
- package/dist/components/immersive-landing/ImmersiveLanding.classes.js +84 -0
- package/dist/components/immersive-landing/ImmersiveLanding.css +562 -0
- package/dist/components/immersive-landing/ImmersiveLanding.d.ts +1 -0
- package/dist/components/immersive-landing/ImmersiveLanding.js +23 -2
- package/dist/components/immersive-landing/ImmersiveLandingArrows.js +11 -11
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.js +38 -27
- package/dist/components/immersive-landing/ImmersiveLandingPage.js +4 -2
- package/dist/components/immersive-landing/components/CookieConsent.js +91 -20
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +33 -8
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +37 -11
- package/dist/components/immersive-landing/index.d.ts +1 -0
- package/dist/components/immersive-landing/index.js +1 -0
- package/dist/components/kbd/Kbd.classes.d.ts +11 -0
- package/dist/components/kbd/Kbd.classes.js +12 -0
- package/dist/components/kbd/Kbd.css +60 -0
- package/dist/components/kbd/Kbd.d.ts +28 -4
- package/dist/components/kbd/Kbd.js +139 -10
- package/dist/components/kbd/index.d.ts +1 -1
- package/dist/components/kbd/index.js +6 -1
- package/dist/components/language-switcher/LanguageSwitcher.classes.d.ts +9 -0
- package/dist/components/language-switcher/LanguageSwitcher.classes.js +10 -0
- package/dist/components/language-switcher/LanguageSwitcher.css +56 -0
- package/dist/components/language-switcher/LanguageSwitcher.d.ts +1 -0
- package/dist/components/language-switcher/LanguageSwitcher.js +15 -7
- package/dist/components/link/Link.classes.d.ts +19 -0
- package/dist/components/link/Link.classes.js +20 -0
- package/dist/components/link/Link.css +131 -0
- package/dist/components/link/Link.d.ts +20 -11
- package/dist/components/link/Link.js +84 -43
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/index.js +3 -1
- package/dist/components/live-chat/LiveChat.classes.d.ts +41 -0
- package/dist/components/live-chat/LiveChat.classes.js +42 -0
- package/dist/components/live-chat/LiveChat.css +324 -0
- package/dist/components/live-chat/LiveChatBubble.d.ts +1 -0
- package/dist/components/live-chat/LiveChatBubble.js +15 -6
- package/dist/components/live-chat/LiveChatPanel.d.ts +1 -0
- package/dist/components/live-chat/LiveChatPanel.js +102 -123
- package/dist/components/modal/Modal.classes.d.ts +86 -0
- package/dist/components/modal/Modal.classes.js +87 -0
- package/dist/components/modal/Modal.css +320 -0
- package/dist/components/modal/Modal.d.ts +83 -27
- package/dist/components/modal/Modal.js +613 -97
- package/dist/components/modal/index.d.ts +1 -6
- package/dist/components/modal/index.js +11 -1
- package/dist/components/navbar/Navbar.classes.d.ts +23 -22
- package/dist/components/navbar/Navbar.classes.js +23 -25
- package/dist/components/navbar/Navbar.css +110 -0
- package/dist/components/navbar/Navbar.d.ts +1 -1
- package/dist/components/navbar/Navbar.js +2 -2
- package/dist/components/navbar/NavbarRow.js +1 -1
- package/dist/components/navbar/NavbarSection.js +1 -1
- package/dist/components/navbar/NavbarStack.js +4 -4
- package/dist/components/noise-background/NoiseBackground.classes.d.ts +15 -0
- package/dist/components/noise-background/NoiseBackground.classes.js +16 -0
- package/dist/components/noise-background/NoiseBackground.css +66 -0
- package/dist/components/noise-background/NoiseBackground.d.ts +1 -0
- package/dist/components/noise-background/NoiseBackground.js +29 -14
- package/dist/components/slider/Slider.classes.d.ts +13 -0
- package/dist/components/slider/Slider.classes.js +14 -0
- package/dist/components/{range-slider/range.css → slider/Slider.css} +3 -17
- package/dist/components/{range-slider/RangeSlider.d.ts → slider/Slider.d.ts} +5 -5
- package/dist/components/{range-slider/RangeSlider.js → slider/Slider.js} +28 -24
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.js +3 -0
- package/dist/components/table/index.d.ts +0 -2
- package/dist/components/table/index.js +1 -3
- package/dist/components/theme-color-picker/ThemeColorPicker.js +6 -6
- package/dist/components/toast/Toast.classes.d.ts +67 -0
- package/dist/components/toast/Toast.classes.js +68 -0
- package/dist/components/toast/Toast.css +344 -0
- package/dist/components/toast/Toast.d.ts +156 -20
- package/dist/components/toast/Toast.js +795 -31
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +17 -1
- package/dist/hooks/date/date.utils.d.ts +30 -0
- package/dist/hooks/date/date.utils.js +112 -0
- package/dist/hooks/date/index.d.ts +6 -0
- package/dist/hooks/date/index.js +6 -0
- package/dist/hooks/date/useCalendarNavigation.d.ts +21 -0
- package/dist/hooks/date/useCalendarNavigation.js +70 -0
- package/dist/hooks/date/useCalendarState.d.ts +45 -0
- package/dist/hooks/date/useCalendarState.js +66 -0
- package/dist/hooks/date/useDateSelection.d.ts +12 -0
- package/dist/hooks/date/useDateSelection.js +22 -0
- package/dist/hooks/date/usePickerOpenState.d.ts +15 -0
- package/dist/hooks/date/usePickerOpenState.js +50 -0
- package/dist/hooks/date/useRangeSelection.d.ts +26 -0
- package/dist/hooks/date/useRangeSelection.js +74 -0
- package/dist/hooks/form/useForm.d.ts +2 -2
- package/dist/hooks/form/useForm.js +11 -6
- package/dist/index.d.ts +56 -101
- package/dist/index.js +47 -109
- package/dist/purge-manifest.json +1708 -208
- package/dist/styles/icons/generated-icons.css +1 -1
- package/package.json +11 -5
- package/dist/components/accordion/collapse.css +0 -248
- package/dist/components/background/Background.d.ts +0 -5
- package/dist/components/background/Background.js +0 -22
- package/dist/components/background/index.d.ts +0 -1
- package/dist/components/background/index.js +0 -3
- package/dist/components/bottom-sheet/BottomSheet.d.ts +0 -11
- package/dist/components/bottom-sheet/BottomSheet.js +0 -109
- package/dist/components/bottom-sheet/index.d.ts +0 -2
- package/dist/components/bottom-sheet/index.js +0 -3
- package/dist/components/browsermockup/BrowserMockup.d.ts +0 -10
- package/dist/components/browsermockup/BrowserMockup.js +0 -55
- package/dist/components/browsermockup/index.d.ts +0 -2
- package/dist/components/browsermockup/index.js +0 -3
- package/dist/components/calendar/input.css +0 -277
- package/dist/components/carousel/Carousel.d.ts +0 -16
- package/dist/components/carousel/Carousel.js +0 -70
- package/dist/components/carousel/CarouselItem.d.ts +0 -6
- package/dist/components/carousel/CarouselItem.js +0 -27
- package/dist/components/carousel/carousel.css +0 -39
- package/dist/components/carousel/index.d.ts +0 -3
- package/dist/components/carousel/index.js +0 -3
- package/dist/components/chatbubble/chat.css +0 -153
- package/dist/components/codemockup/CodeMockup.d.ts +0 -5
- package/dist/components/codemockup/CodeMockup.js +0 -33
- package/dist/components/codemockup/CodeMockupLine.d.ts +0 -12
- package/dist/components/codemockup/CodeMockupLine.js +0 -53
- package/dist/components/codemockup/index.d.ts +0 -2
- package/dist/components/codemockup/index.js +0 -5
- package/dist/components/collapse/Collapse.d.ts +0 -21
- package/dist/components/collapse/Collapse.js +0 -104
- package/dist/components/collapse/CollapseContent.d.ts +0 -4
- package/dist/components/collapse/CollapseContent.js +0 -15
- package/dist/components/collapse/CollapseDetails.d.ts +0 -17
- package/dist/components/collapse/CollapseDetails.js +0 -33
- package/dist/components/collapse/CollapseTitle.d.ts +0 -9
- package/dist/components/collapse/CollapseTitle.js +0 -47
- package/dist/components/collapse/collapse.css +0 -248
- package/dist/components/collapse/index.d.ts +0 -4
- package/dist/components/collapse/index.js +0 -10
- package/dist/components/colorpicker/AlphaSlider.d.ts +0 -7
- package/dist/components/colorpicker/AlphaSlider.js +0 -107
- package/dist/components/colorpicker/ColorInput.d.ts +0 -7
- package/dist/components/colorpicker/ColorInput.js +0 -88
- package/dist/components/colorpicker/ColorPicker.d.ts +0 -18
- package/dist/components/colorpicker/ColorPicker.js +0 -264
- package/dist/components/colorpicker/ColorPickerFlowerSelector.d.ts +0 -3
- package/dist/components/colorpicker/ColorPickerFlowerSelector.js +0 -9
- package/dist/components/colorpicker/ColorPickerGradientSelector.d.ts +0 -3
- package/dist/components/colorpicker/ColorPickerGradientSelector.js +0 -9
- package/dist/components/colorpicker/ColorPickerWheelSelector.d.ts +0 -3
- package/dist/components/colorpicker/ColorPickerWheelSelector.js +0 -9
- package/dist/components/colorpicker/ColorPreview.d.ts +0 -11
- package/dist/components/colorpicker/ColorPreview.js +0 -47
- package/dist/components/colorpicker/ColorSwatches.d.ts +0 -8
- package/dist/components/colorpicker/ColorSwatches.js +0 -67
- package/dist/components/colorpicker/ColorWheel.d.ts +0 -7
- package/dist/components/colorpicker/ColorWheel.js +0 -106
- package/dist/components/colorpicker/HueSlider.d.ts +0 -7
- package/dist/components/colorpicker/HueSlider.js +0 -105
- package/dist/components/colorpicker/LightnessSlider.d.ts +0 -7
- package/dist/components/colorpicker/LightnessSlider.js +0 -111
- package/dist/components/colorpicker/SaturationBrightness.d.ts +0 -7
- package/dist/components/colorpicker/SaturationBrightness.js +0 -120
- package/dist/components/colorpicker/index.d.ts +0 -26
- package/dist/components/colorpicker/index.js +0 -31
- package/dist/components/confirm-dialog/ConfirmDialog.d.ts +0 -15
- package/dist/components/confirm-dialog/ConfirmDialog.js +0 -102
- package/dist/components/confirm-dialog/index.d.ts +0 -2
- package/dist/components/confirm-dialog/index.js +0 -3
- package/dist/components/connectionstatus/ConnectionStatus.d.ts +0 -59
- package/dist/components/connectionstatus/ConnectionStatus.js +0 -197
- package/dist/components/connectionstatus/index.d.ts +0 -2
- package/dist/components/connectionstatus/index.js +0 -3
- package/dist/components/copy-button/CopyButton.d.ts +0 -11
- package/dist/components/copy-button/CopyButton.js +0 -70
- package/dist/components/copy-button/index.d.ts +0 -2
- package/dist/components/copy-button/index.js +0 -3
- package/dist/components/countdown/Countdown.d.ts +0 -8
- package/dist/components/countdown/Countdown.js +0 -37
- package/dist/components/countdown/countdown.css +0 -58
- package/dist/components/countdown/index.d.ts +0 -1
- package/dist/components/countdown/index.js +0 -3
- package/dist/components/diff/Diff.d.ts +0 -8
- package/dist/components/diff/Diff.js +0 -29
- package/dist/components/diff/diff.css +0 -162
- package/dist/components/diff/index.d.ts +0 -1
- package/dist/components/diff/index.js +0 -3
- package/dist/components/divider/Divider.d.ts +0 -21
- package/dist/components/divider/Divider.js +0 -41
- package/dist/components/divider/Divider.styles.d.ts +0 -25
- package/dist/components/divider/Divider.styles.js +0 -71
- package/dist/components/divider/index.d.ts +0 -3
- package/dist/components/divider/index.js +0 -3
- package/dist/components/dock/Dock.d.ts +0 -15
- package/dist/components/dock/Dock.js +0 -40
- package/dist/components/dock/DockItem.d.ts +0 -9
- package/dist/components/dock/DockItem.js +0 -45
- package/dist/components/dock/DockLabel.d.ts +0 -6
- package/dist/components/dock/DockLabel.js +0 -22
- package/dist/components/dock/dock.css +0 -147
- package/dist/components/dock/index.d.ts +0 -3
- package/dist/components/dock/index.js +0 -3
- package/dist/components/dropdown-select/DropdownSelect.d.ts +0 -22
- package/dist/components/dropdown-select/DropdownSelect.js +0 -296
- package/dist/components/dropdown-select/index.d.ts +0 -2
- package/dist/components/dropdown-select/index.js +0 -3
- package/dist/components/fileinput/FileInput.d.ts +0 -15
- package/dist/components/fileinput/FileInput.js +0 -51
- package/dist/components/fileinput/index.d.ts +0 -1
- package/dist/components/fileinput/index.js +0 -3
- package/dist/components/fileinput/input.css +0 -277
- package/dist/components/form-actions/FormActions.d.ts +0 -14
- package/dist/components/form-actions/FormActions.js +0 -142
- package/dist/components/form-actions/index.d.ts +0 -2
- package/dist/components/form-actions/index.js +0 -3
- package/dist/components/hero/Hero.d.ts +0 -11
- package/dist/components/hero/Hero.js +0 -47
- package/dist/components/hero/HeroContent.d.ts +0 -6
- package/dist/components/hero/HeroContent.js +0 -31
- package/dist/components/hero/HeroOverlay.d.ts +0 -6
- package/dist/components/hero/HeroOverlay.js +0 -39
- package/dist/components/hero/hero.css +0 -38
- package/dist/components/hero/index.d.ts +0 -4
- package/dist/components/hero/index.js +0 -3
- package/dist/components/indicator/Indicator.d.ts +0 -31
- package/dist/components/indicator/Indicator.js +0 -76
- package/dist/components/indicator/index.d.ts +0 -2
- package/dist/components/indicator/index.js +0 -3
- package/dist/components/indicator/indicator.css +0 -70
- package/dist/components/kbd/kbd.css +0 -55
- package/dist/components/link/link.css +0 -153
- package/dist/components/mask/Mask.d.ts +0 -15
- package/dist/components/mask/Mask.js +0 -62
- package/dist/components/mask/index.d.ts +0 -3
- package/dist/components/mask/index.js +0 -3
- package/dist/components/mask/mask.css +0 -89
- package/dist/components/modal/ModalActions.d.ts +0 -3
- package/dist/components/modal/ModalActions.js +0 -14
- package/dist/components/modal/ModalBody.d.ts +0 -3
- package/dist/components/modal/ModalBody.js +0 -14
- package/dist/components/modal/ModalHeader.d.ts +0 -3
- package/dist/components/modal/ModalHeader.js +0 -15
- package/dist/components/modal/ModalLegacy.d.ts +0 -8
- package/dist/components/modal/ModalLegacy.js +0 -36
- package/dist/components/modal/modal.css +0 -170
- package/dist/components/navbar/navbar.css +0 -33
- package/dist/components/phonemockup/PhoneMockup.d.ts +0 -8
- package/dist/components/phonemockup/PhoneMockup.js +0 -44
- package/dist/components/phonemockup/index.d.ts +0 -1
- package/dist/components/phonemockup/index.js +0 -3
- package/dist/components/props-table/PropsTable.d.ts +0 -14
- package/dist/components/props-table/PropsTable.js +0 -56
- package/dist/components/props-table/index.d.ts +0 -2
- package/dist/components/props-table/index.js +0 -3
- package/dist/components/range/Range.d.ts +0 -13
- package/dist/components/range/Range.js +0 -85
- package/dist/components/range/index.d.ts +0 -1
- package/dist/components/range/index.js +0 -3
- package/dist/components/range/range.css +0 -174
- package/dist/components/range-slider/index.d.ts +0 -2
- package/dist/components/range-slider/index.js +0 -3
- package/dist/components/rating/Rating.d.ts +0 -24
- package/dist/components/rating/Rating.js +0 -54
- package/dist/components/rating/RatingHidden.d.ts +0 -4
- package/dist/components/rating/RatingHidden.js +0 -29
- package/dist/components/rating/RatingItem.d.ts +0 -9
- package/dist/components/rating/RatingItem.js +0 -62
- package/dist/components/rating/index.d.ts +0 -4
- package/dist/components/rating/index.js +0 -3
- package/dist/components/rating/rating.css +0 -106
- package/dist/components/showcase/ShowcaseBlock.d.ts +0 -10
- package/dist/components/showcase/ShowcaseBlock.js +0 -48
- package/dist/components/showcase/index.d.ts +0 -2
- package/dist/components/showcase/index.js +0 -3
- package/dist/components/showcase-section/ShowcaseSection.d.ts +0 -8
- package/dist/components/showcase-section/ShowcaseSection.js +0 -73
- package/dist/components/showcase-section/index.d.ts +0 -2
- package/dist/components/showcase-section/index.js +0 -3
- package/dist/components/skip-link/SkipLink.d.ts +0 -7
- package/dist/components/skip-link/SkipLink.js +0 -34
- package/dist/components/skip-link/index.d.ts +0 -2
- package/dist/components/skip-link/index.js +0 -3
- package/dist/components/stack/Stack.d.ts +0 -18
- package/dist/components/stack/Stack.js +0 -53
- package/dist/components/stack/index.d.ts +0 -2
- package/dist/components/stack/index.js +0 -3
- package/dist/components/stack/stack.css +0 -90
- package/dist/components/stat-card/StatCard.d.ts +0 -22
- package/dist/components/stat-card/StatCard.js +0 -46
- package/dist/components/stat-card/StatCardSection.d.ts +0 -5
- package/dist/components/stat-card/StatCardSection.js +0 -39
- package/dist/components/stat-card/index.d.ts +0 -1
- package/dist/components/stat-card/index.js +0 -3
- package/dist/components/stats/Stat.d.ts +0 -13
- package/dist/components/stats/Stat.js +0 -51
- package/dist/components/stats/StatSection.d.ts +0 -6
- package/dist/components/stats/StatSection.js +0 -29
- package/dist/components/stats/Stats.d.ts +0 -15
- package/dist/components/stats/Stats.js +0 -29
- package/dist/components/stats/index.d.ts +0 -1
- package/dist/components/stats/index.js +0 -3
- package/dist/components/stats/stat.css +0 -67
- package/dist/components/status/Status.d.ts +0 -8
- package/dist/components/status/Status.js +0 -30
- package/dist/components/status/index.d.ts +0 -2
- package/dist/components/status/index.js +0 -3
- package/dist/components/steps/Step.d.ts +0 -20
- package/dist/components/steps/Step.js +0 -88
- package/dist/components/steps/Steps.d.ts +0 -18
- package/dist/components/steps/Steps.js +0 -80
- package/dist/components/steps/index.d.ts +0 -3
- package/dist/components/steps/index.js +0 -3
- package/dist/components/steps/step.css +0 -179
- package/dist/components/streaming-table/StreamingTable.d.ts +0 -28
- package/dist/components/streaming-table/StreamingTable.js +0 -304
- package/dist/components/streaming-table/createRowStore.d.ts +0 -7
- package/dist/components/streaming-table/createRowStore.js +0 -18
- package/dist/components/streaming-table/createStreamingTableStore.d.ts +0 -13
- package/dist/components/streaming-table/createStreamingTableStore.js +0 -68
- package/dist/components/streaming-table/index.d.ts +0 -5
- package/dist/components/streaming-table/index.js +0 -5
- package/dist/components/streaming-table/types.d.ts +0 -46
- package/dist/components/streaming-table/types.js +0 -0
- package/dist/components/svgbackground/SvgBackground.d.ts +0 -21
- package/dist/components/svgbackground/SvgBackground.js +0 -413
- package/dist/components/svgbackground/index.d.ts +0 -2
- package/dist/components/svgbackground/index.js +0 -3
- package/dist/components/swap/Swap.d.ts +0 -13
- package/dist/components/swap/Swap.js +0 -57
- package/dist/components/swap/index.d.ts +0 -1
- package/dist/components/swap/index.js +0 -3
- package/dist/components/swap/swap.css +0 -92
- package/dist/components/switch-field/SwitchField.d.ts +0 -19
- package/dist/components/switch-field/SwitchField.js +0 -71
- package/dist/components/switch-field/index.d.ts +0 -2
- package/dist/components/switch-field/index.js +0 -3
- package/dist/components/table/EnhancedTable.d.ts +0 -46
- package/dist/components/table/EnhancedTable.js +0 -740
- package/dist/components/timeline/Timeline.d.ts +0 -12
- package/dist/components/timeline/Timeline.js +0 -42
- package/dist/components/timeline/TimelineEnd.d.ts +0 -6
- package/dist/components/timeline/TimelineEnd.js +0 -28
- package/dist/components/timeline/TimelineItem.d.ts +0 -8
- package/dist/components/timeline/TimelineItem.js +0 -47
- package/dist/components/timeline/TimelineMiddle.d.ts +0 -4
- package/dist/components/timeline/TimelineMiddle.js +0 -25
- package/dist/components/timeline/TimelineStart.d.ts +0 -6
- package/dist/components/timeline/TimelineStart.js +0 -28
- package/dist/components/timeline/index.d.ts +0 -5
- package/dist/components/timeline/index.js +0 -11
- package/dist/components/timeline/timeline.css +0 -286
- package/dist/components/toast/toast.css +0 -58
- package/dist/components/toastcontainer/ToastContainer.d.ts +0 -3
- package/dist/components/toastcontainer/ToastContainer.js +0 -15
- package/dist/components/toastcontainer/ToastStack.d.ts +0 -17
- package/dist/components/toastcontainer/ToastStack.js +0 -181
- package/dist/components/toastcontainer/index.d.ts +0 -3
- package/dist/components/toastcontainer/index.js +0 -5
- package/dist/components/windowmockup/WindowMockup.d.ts +0 -11
- package/dist/components/windowmockup/WindowMockup.js +0 -85
- package/dist/components/windowmockup/index.d.ts +0 -1
- package/dist/components/windowmockup/index.js +0 -3
- package/dist/stores/index.d.ts +0 -1
- package/dist/stores/index.js +0 -1
- package/dist/stores/toastStore.d.ts +0 -24
- package/dist/stores/toastStore.js +0 -64
- /package/dist/components/{colorpicker → color-wheel-flower}/ColorUtils.d.ts +0 -0
- /package/dist/components/{colorpicker → color-wheel-flower}/ColorUtils.js +0 -0
- /package/dist/components/{colorpicker → color-wheel-flower}/ColorWheelFlower.css +0 -0
- /package/dist/components/{colorpicker → color-wheel-flower}/ColorWheelFlower.d.ts +0 -0
- /package/dist/components/{colorpicker/colorpickerContext.d.ts → color-wheel-flower/colorWheelFlowerContext.d.ts} +0 -0
- /package/dist/components/{colorpicker/colorpickerContext.js → color-wheel-flower/colorWheelFlowerContext.js} +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { TableRootProps } from "../table";
|
|
2
|
-
import type { StreamingColumnDef, StreamingConfig, SortingState } from "./types";
|
|
3
|
-
export type StreamingTableProps<TData> = {
|
|
4
|
-
data: TData[];
|
|
5
|
-
columns: StreamingColumnDef<TData>[];
|
|
6
|
-
getRowId?: (row: TData) => string;
|
|
7
|
-
streamingConfig?: StreamingConfig;
|
|
8
|
-
/** Enable filtering (default: false) */
|
|
9
|
-
enableFiltering?: boolean;
|
|
10
|
-
/** External control of filter value */
|
|
11
|
-
filterValue?: string;
|
|
12
|
-
/** Callback when filter changes */
|
|
13
|
-
onFilterChange?: (value: string) => void;
|
|
14
|
-
/** Custom global filter function (filters across all columns) */
|
|
15
|
-
globalFilterFn?: (row: TData, filterValue: string, columns: StreamingColumnDef<TData>[]) => boolean;
|
|
16
|
-
/** Enable pagination (default: false) */
|
|
17
|
-
enablePagination?: boolean;
|
|
18
|
-
/** Number of rows per page (default: 10) */
|
|
19
|
-
pageSize?: number;
|
|
20
|
-
/** Initial page index (default: 0) */
|
|
21
|
-
initialPage?: number;
|
|
22
|
-
/** Enable sorting (default: false) */
|
|
23
|
-
enableSorting?: boolean;
|
|
24
|
-
/** Initial sorting state (default: null) */
|
|
25
|
-
initialSorting?: SortingState;
|
|
26
|
-
} & Omit<TableRootProps, "children">;
|
|
27
|
-
declare const StreamingTable: <TData>(props: StreamingTableProps<TData>) => import("solid-js").JSX.Element;
|
|
28
|
-
export default StreamingTable;
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__ from "../table/index.js";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__ from "../icon/index.js";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE__pagination_index_js_4cbbf7e7__ from "../pagination/index.js";
|
|
7
|
-
import * as __WEBPACK_EXTERNAL_MODULE__createStreamingTableStore_js_f1f78960__ from "./createStreamingTableStore.js";
|
|
8
|
-
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=mt-4>"), _tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), _tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><span>");
|
|
9
|
-
const StreamingTable = (props)=>{
|
|
10
|
-
const [local, tableProps] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
11
|
-
"data",
|
|
12
|
-
"columns",
|
|
13
|
-
"getRowId",
|
|
14
|
-
"streamingConfig",
|
|
15
|
-
"enableFiltering",
|
|
16
|
-
"filterValue",
|
|
17
|
-
"onFilterChange",
|
|
18
|
-
"globalFilterFn",
|
|
19
|
-
"enablePagination",
|
|
20
|
-
"pageSize",
|
|
21
|
-
"initialPage",
|
|
22
|
-
"enableSorting",
|
|
23
|
-
"initialSorting",
|
|
24
|
-
"class",
|
|
25
|
-
"className"
|
|
26
|
-
]);
|
|
27
|
-
const store = (0, __WEBPACK_EXTERNAL_MODULE__createStreamingTableStore_js_f1f78960__.createStreamingTableStore)();
|
|
28
|
-
const [sortingState, setSortingState] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.initialSorting ?? {
|
|
29
|
-
columnId: null,
|
|
30
|
-
direction: null
|
|
31
|
-
});
|
|
32
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
33
|
-
if (local.initialSorting) setSortingState(local.initialSorting);
|
|
34
|
-
});
|
|
35
|
-
const config = {
|
|
36
|
-
maxBufferSize: local.streamingConfig?.maxBufferSize ?? 1000,
|
|
37
|
-
appendMode: local.streamingConfig?.appendMode ?? false
|
|
38
|
-
};
|
|
39
|
-
const resolveId = (row)=>{
|
|
40
|
-
if (local.getRowId) return local.getRowId(row);
|
|
41
|
-
const rowWithId = row;
|
|
42
|
-
if (null != rowWithId.id) return String(rowWithId.id);
|
|
43
|
-
return JSON.stringify(row);
|
|
44
|
-
};
|
|
45
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
46
|
-
const incoming = local.data ?? [];
|
|
47
|
-
if (config.appendMode) {
|
|
48
|
-
store.appendRows(incoming, resolveId);
|
|
49
|
-
store.truncateToSize(config.maxBufferSize);
|
|
50
|
-
} else {
|
|
51
|
-
const idSet = new Set();
|
|
52
|
-
incoming.forEach((row)=>{
|
|
53
|
-
const id = resolveId(row);
|
|
54
|
-
idSet.add(id);
|
|
55
|
-
store.upsertRow(row, resolveId);
|
|
56
|
-
});
|
|
57
|
-
const current = store.rows();
|
|
58
|
-
current.forEach((r)=>{
|
|
59
|
-
if (!idSet.has(r.id)) store.removeRow(r.id);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
const defaultGlobalFilterFn = (row, filterValue, columns)=>{
|
|
64
|
-
if (!filterValue || "" === filterValue.trim()) return true;
|
|
65
|
-
const lowerFilter = filterValue.toLowerCase();
|
|
66
|
-
return columns.some((col)=>{
|
|
67
|
-
if (col.filterFn) return col.filterFn(row, filterValue);
|
|
68
|
-
let value;
|
|
69
|
-
if (col.accessorKey) value = row[col.accessorKey];
|
|
70
|
-
else {
|
|
71
|
-
if (!col.accessorFn) return false;
|
|
72
|
-
value = col.accessorFn(row);
|
|
73
|
-
}
|
|
74
|
-
if (null == value) return false;
|
|
75
|
-
return String(value).toLowerCase().includes(lowerFilter);
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
const filteredRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
79
|
-
const rows = store.rows();
|
|
80
|
-
if (!local.enableFiltering) return rows;
|
|
81
|
-
const currentFilterValue = local.filterValue ?? "";
|
|
82
|
-
if (!currentFilterValue || "" === currentFilterValue.trim()) return rows;
|
|
83
|
-
const filterFn = local.globalFilterFn ?? defaultGlobalFilterFn;
|
|
84
|
-
return rows.filter((rowStore)=>{
|
|
85
|
-
const rowData = rowStore.data();
|
|
86
|
-
return filterFn(rowData, currentFilterValue, local.columns);
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
const getColumnId = (col, index)=>col.id ?? col.accessorKey ?? `column-${index}`;
|
|
90
|
-
const sortDescriptor = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
91
|
-
const sorting = sortingState();
|
|
92
|
-
if (!sorting.columnId || !sorting.direction) return;
|
|
93
|
-
return {
|
|
94
|
-
column: sorting.columnId,
|
|
95
|
-
direction: "asc" === sorting.direction ? "ascending" : "descending"
|
|
96
|
-
};
|
|
97
|
-
});
|
|
98
|
-
const handleSortChange = (descriptor)=>{
|
|
99
|
-
setSortingState({
|
|
100
|
-
columnId: descriptor.column,
|
|
101
|
-
direction: "ascending" === descriptor.direction ? "asc" : "desc"
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
const getSortValue = (row, col)=>{
|
|
105
|
-
if (col.accessorKey) return row[col.accessorKey];
|
|
106
|
-
if (col.accessorFn) return col.accessorFn(row);
|
|
107
|
-
return null;
|
|
108
|
-
};
|
|
109
|
-
const defaultSortFn = (a, b)=>{
|
|
110
|
-
if (null == a && null == b) return 0;
|
|
111
|
-
if (null == a) return 1;
|
|
112
|
-
if (null == b) return -1;
|
|
113
|
-
if ("string" == typeof a && "string" == typeof b) return a.localeCompare(b);
|
|
114
|
-
if ("number" == typeof a && "number" == typeof b) return a - b;
|
|
115
|
-
if ("boolean" == typeof a && "boolean" == typeof b) return a === b ? 0 : a ? 1 : -1;
|
|
116
|
-
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
117
|
-
return String(a).localeCompare(String(b));
|
|
118
|
-
};
|
|
119
|
-
const sortedRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
120
|
-
const rows = filteredRows();
|
|
121
|
-
const sorting = sortingState();
|
|
122
|
-
if (!local.enableSorting || !sorting.direction || !sorting.columnId) return rows;
|
|
123
|
-
const colIndex = local.columns.findIndex((col, idx)=>getColumnId(col, idx) === sorting.columnId);
|
|
124
|
-
if (-1 === colIndex) return rows;
|
|
125
|
-
const col = local.columns[colIndex];
|
|
126
|
-
const sorted = [
|
|
127
|
-
...rows
|
|
128
|
-
].sort((rowStoreA, rowStoreB)=>{
|
|
129
|
-
const rowA = rowStoreA.data();
|
|
130
|
-
const rowB = rowStoreB.data();
|
|
131
|
-
let result;
|
|
132
|
-
if (col.sortingFn) result = col.sortingFn(rowA, rowB);
|
|
133
|
-
else {
|
|
134
|
-
const valueA = getSortValue(rowA, col);
|
|
135
|
-
const valueB = getSortValue(rowB, col);
|
|
136
|
-
result = defaultSortFn(valueA, valueB);
|
|
137
|
-
}
|
|
138
|
-
return "desc" === sorting.direction ? -result : result;
|
|
139
|
-
});
|
|
140
|
-
return sorted;
|
|
141
|
-
});
|
|
142
|
-
const renderSortIndicator = (sortDirection)=>{
|
|
143
|
-
if (!local.enableSorting) return null;
|
|
144
|
-
if (!sortDirection) return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__["default"], {
|
|
145
|
-
name: "icon-[mdi-light--unfold-more-horizontal]",
|
|
146
|
-
width: 16,
|
|
147
|
-
height: 16,
|
|
148
|
-
class: "opacity-30"
|
|
149
|
-
});
|
|
150
|
-
return "ascending" === sortDirection ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__["default"], {
|
|
151
|
-
name: "icon-[mdi-light--chevron-up]",
|
|
152
|
-
width: 16,
|
|
153
|
-
height: 16
|
|
154
|
-
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__["default"], {
|
|
155
|
-
name: "icon-[mdi-light--chevron-down]",
|
|
156
|
-
width: 16,
|
|
157
|
-
height: 16
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
const [currentPage, setCurrentPage] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.initialPage ?? 0);
|
|
161
|
-
const pageSize = local.pageSize ?? 10;
|
|
162
|
-
const enablePagination = local.enablePagination ?? false;
|
|
163
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
164
|
-
if (enablePagination) {
|
|
165
|
-
if (local.enableFiltering) local.filterValue;
|
|
166
|
-
if (local.enableSorting) sortingState();
|
|
167
|
-
setCurrentPage(0);
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
const paginatedRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
171
|
-
const rows = sortedRows();
|
|
172
|
-
if (!enablePagination) return rows;
|
|
173
|
-
const start = currentPage() * pageSize;
|
|
174
|
-
const end = start + pageSize;
|
|
175
|
-
return rows.slice(start, end);
|
|
176
|
-
});
|
|
177
|
-
const totalPages = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
178
|
-
if (!enablePagination) return 1;
|
|
179
|
-
const total = sortedRows().length;
|
|
180
|
-
return Math.max(1, Math.ceil(total / pageSize));
|
|
181
|
-
});
|
|
182
|
-
const goToPage = (page)=>{
|
|
183
|
-
const maxPage = totalPages() - 1;
|
|
184
|
-
if (page >= 0 && page <= maxPage) setCurrentPage(page);
|
|
185
|
-
};
|
|
186
|
-
return (()=>{
|
|
187
|
-
var _el$ = _tmpl$2();
|
|
188
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"], (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(tableProps, {
|
|
189
|
-
get children () {
|
|
190
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].ScrollContainer, {
|
|
191
|
-
get children () {
|
|
192
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Content, {
|
|
193
|
-
get sortDescriptor () {
|
|
194
|
-
return sortDescriptor();
|
|
195
|
-
},
|
|
196
|
-
onSortChange: handleSortChange,
|
|
197
|
-
get children () {
|
|
198
|
-
return [
|
|
199
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Header, {
|
|
200
|
-
get children () {
|
|
201
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Row, {
|
|
202
|
-
get children () {
|
|
203
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
204
|
-
get each () {
|
|
205
|
-
return local.columns;
|
|
206
|
-
},
|
|
207
|
-
children: (col, index)=>{
|
|
208
|
-
const columnId = getColumnId(col, index());
|
|
209
|
-
const isSortable = local.enableSorting && false !== col.enableSorting;
|
|
210
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Column, {
|
|
211
|
-
id: columnId,
|
|
212
|
-
allowsSorting: isSortable,
|
|
213
|
-
children: ({ sortDirection })=>(()=>{
|
|
214
|
-
var _el$3 = _tmpl$3(), _el$4 = _el$3.firstChild;
|
|
215
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$3, isSortable ? "flex items-center gap-2 cursor-pointer select-none" : "");
|
|
216
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>col.header);
|
|
217
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>renderSortIndicator(isSortable ? sortDirection : void 0), null);
|
|
218
|
-
return _el$3;
|
|
219
|
-
})()
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
}),
|
|
227
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Body, {
|
|
228
|
-
get children () {
|
|
229
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
230
|
-
get when () {
|
|
231
|
-
return paginatedRows().length > 0;
|
|
232
|
-
},
|
|
233
|
-
get fallback () {
|
|
234
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Row, {
|
|
235
|
-
get children () {
|
|
236
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Cell, {
|
|
237
|
-
get colSpan () {
|
|
238
|
-
return local.columns.length;
|
|
239
|
-
},
|
|
240
|
-
class: "text-center",
|
|
241
|
-
children: "No data"
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
},
|
|
246
|
-
get children () {
|
|
247
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
248
|
-
get each () {
|
|
249
|
-
return paginatedRows();
|
|
250
|
-
},
|
|
251
|
-
children: (rowStore)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Row, {
|
|
252
|
-
get children () {
|
|
253
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
254
|
-
get each () {
|
|
255
|
-
return local.columns;
|
|
256
|
-
},
|
|
257
|
-
children: (col)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Cell, {
|
|
258
|
-
get children () {
|
|
259
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.cell)() ? col.cell({
|
|
260
|
-
row: {
|
|
261
|
-
original: rowStore.data()
|
|
262
|
-
}
|
|
263
|
-
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.accessorKey)() ? rowStore.data()[col.accessorKey] : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.accessorFn)() ? col.accessorFn(rowStore.data()) : "";
|
|
264
|
-
}
|
|
265
|
-
})
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
})
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
})
|
|
274
|
-
];
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
})), null);
|
|
281
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
282
|
-
get when () {
|
|
283
|
-
return enablePagination && totalPages() > 0;
|
|
284
|
-
},
|
|
285
|
-
get children () {
|
|
286
|
-
var _el$2 = _tmpl$();
|
|
287
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__pagination_index_js_4cbbf7e7__["default"], {
|
|
288
|
-
get page () {
|
|
289
|
-
return currentPage() + 1;
|
|
290
|
-
},
|
|
291
|
-
get total () {
|
|
292
|
-
return totalPages();
|
|
293
|
-
},
|
|
294
|
-
onChange: (page)=>goToPage(page - 1)
|
|
295
|
-
}));
|
|
296
|
-
return _el$2;
|
|
297
|
-
}
|
|
298
|
-
}), null);
|
|
299
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(local.class, local.className)));
|
|
300
|
-
return _el$;
|
|
301
|
-
})();
|
|
302
|
-
};
|
|
303
|
-
const streaming_table_StreamingTable = StreamingTable;
|
|
304
|
-
export { streaming_table_StreamingTable as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
2
|
-
function createRowStore(id, initial) {
|
|
3
|
-
const [data, setData] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(initial);
|
|
4
|
-
return {
|
|
5
|
-
id,
|
|
6
|
-
data,
|
|
7
|
-
patch: (partial)=>{
|
|
8
|
-
setData((prev)=>({
|
|
9
|
-
...prev,
|
|
10
|
-
...partial
|
|
11
|
-
}));
|
|
12
|
-
},
|
|
13
|
-
replace: (newData)=>{
|
|
14
|
-
setData(()=>newData);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export { createRowStore };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type RowStore } from "./createRowStore";
|
|
2
|
-
export interface StreamingTableStore<T> {
|
|
3
|
-
rows: () => RowStore<T>[];
|
|
4
|
-
loadInitial: (rows: T[], getId: (row: T) => string) => void;
|
|
5
|
-
upsertRow: (row: T, getId: (row: T) => string) => void;
|
|
6
|
-
upsertRows: (rows: T[], getId: (row: T) => string) => void;
|
|
7
|
-
updateRow: (id: string, patch: Partial<T>) => void;
|
|
8
|
-
removeRow: (id: string) => void;
|
|
9
|
-
appendRow: (row: T, getId: (row: T) => string) => void;
|
|
10
|
-
appendRows: (rows: T[], getId: (row: T) => string) => void;
|
|
11
|
-
truncateToSize: (maxSize: number) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare function createStreamingTableStore<T>(): StreamingTableStore<T>;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__createRowStore_js_908e2c13__ from "./createRowStore.js";
|
|
3
|
-
function createStreamingTableStore() {
|
|
4
|
-
const [rowStores, setRowStores] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)([]);
|
|
5
|
-
function loadInitial(rows, getId) {
|
|
6
|
-
const stores = rows.map((r)=>(0, __WEBPACK_EXTERNAL_MODULE__createRowStore_js_908e2c13__.createRowStore)(getId(r), r));
|
|
7
|
-
setRowStores(stores);
|
|
8
|
-
}
|
|
9
|
-
function upsertRow(row, getId) {
|
|
10
|
-
const id = getId(row);
|
|
11
|
-
const stores = rowStores();
|
|
12
|
-
const existing = stores.find((s)=>s.id === id);
|
|
13
|
-
if (existing) return void existing.replace(row);
|
|
14
|
-
setRowStores([
|
|
15
|
-
...stores,
|
|
16
|
-
(0, __WEBPACK_EXTERNAL_MODULE__createRowStore_js_908e2c13__.createRowStore)(id, row)
|
|
17
|
-
]);
|
|
18
|
-
}
|
|
19
|
-
function upsertRows(rows, getId) {
|
|
20
|
-
rows.forEach((row)=>upsertRow(row, getId));
|
|
21
|
-
}
|
|
22
|
-
function appendRow(row, getId) {
|
|
23
|
-
const id = getId(row);
|
|
24
|
-
const stores = rowStores();
|
|
25
|
-
const existing = stores.find((s)=>s.id === id);
|
|
26
|
-
if (existing) return;
|
|
27
|
-
setRowStores([
|
|
28
|
-
...stores,
|
|
29
|
-
(0, __WEBPACK_EXTERNAL_MODULE__createRowStore_js_908e2c13__.createRowStore)(id, row)
|
|
30
|
-
]);
|
|
31
|
-
}
|
|
32
|
-
function appendRows(rows, getId) {
|
|
33
|
-
const stores = rowStores();
|
|
34
|
-
const existingIds = new Set(stores.map((s)=>s.id));
|
|
35
|
-
const newStores = rows.filter((row)=>!existingIds.has(getId(row))).map((row)=>(0, __WEBPACK_EXTERNAL_MODULE__createRowStore_js_908e2c13__.createRowStore)(getId(row), row));
|
|
36
|
-
if (newStores.length > 0) setRowStores([
|
|
37
|
-
...stores,
|
|
38
|
-
...newStores
|
|
39
|
-
]);
|
|
40
|
-
}
|
|
41
|
-
function updateRow(id, patch) {
|
|
42
|
-
const stores = rowStores();
|
|
43
|
-
const existing = stores.find((s)=>s.id === id);
|
|
44
|
-
if (existing) existing.patch(patch);
|
|
45
|
-
}
|
|
46
|
-
function removeRow(id) {
|
|
47
|
-
const stores = rowStores().filter((s)=>s.id !== id);
|
|
48
|
-
setRowStores(stores);
|
|
49
|
-
}
|
|
50
|
-
function truncateToSize(maxSize) {
|
|
51
|
-
const stores = rowStores();
|
|
52
|
-
if (stores.length <= maxSize) return;
|
|
53
|
-
const truncated = stores.slice(-maxSize);
|
|
54
|
-
setRowStores(truncated);
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
rows: rowStores,
|
|
58
|
-
loadInitial,
|
|
59
|
-
upsertRow,
|
|
60
|
-
upsertRows,
|
|
61
|
-
updateRow,
|
|
62
|
-
removeRow,
|
|
63
|
-
appendRow,
|
|
64
|
-
appendRows,
|
|
65
|
-
truncateToSize
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
export { createStreamingTableStore };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as StreamingTable } from "./StreamingTable";
|
|
2
|
-
export type { StreamingTableProps } from "./StreamingTable";
|
|
3
|
-
export type { StreamingColumnDef, StreamingConfig } from "./types";
|
|
4
|
-
export { createStreamingTableStore } from "./createStreamingTableStore";
|
|
5
|
-
export type { StreamingTableStore } from "./createStreamingTableStore";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE__StreamingTable_js_35def8b4__ from "./StreamingTable.js";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__createStreamingTableStore_js_f1f78960__ from "./createStreamingTableStore.js";
|
|
3
|
-
var __webpack_exports__StreamingTable = __WEBPACK_EXTERNAL_MODULE__StreamingTable_js_35def8b4__["default"];
|
|
4
|
-
var __webpack_exports__createStreamingTableStore = __WEBPACK_EXTERNAL_MODULE__createStreamingTableStore_js_f1f78960__.createStreamingTableStore;
|
|
5
|
-
export { __webpack_exports__StreamingTable as StreamingTable, __webpack_exports__createStreamingTableStore as createStreamingTableStore };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { JSX } from "solid-js";
|
|
2
|
-
export type SortDirection = "asc" | "desc" | null;
|
|
3
|
-
export interface SortingState {
|
|
4
|
-
columnId: string | null;
|
|
5
|
-
direction: SortDirection;
|
|
6
|
-
}
|
|
7
|
-
export interface StreamingColumnDef<T> {
|
|
8
|
-
/** Unique identifier for the column (required for sorting) */
|
|
9
|
-
id?: string;
|
|
10
|
-
/** Header text or JSX element */
|
|
11
|
-
header: JSX.Element | string;
|
|
12
|
-
/** For simple field access */
|
|
13
|
-
accessorKey?: keyof T & string;
|
|
14
|
-
/** For computed access */
|
|
15
|
-
accessorFn?: (row: T) => any;
|
|
16
|
-
/** Custom cell renderer */
|
|
17
|
-
cell?: (ctx: {
|
|
18
|
-
row: {
|
|
19
|
-
original: T;
|
|
20
|
-
};
|
|
21
|
-
}) => JSX.Element;
|
|
22
|
-
/** Custom sorting function */
|
|
23
|
-
sortingFn?: (rowA: T, rowB: T) => number;
|
|
24
|
-
/** Extra config (sorting, filters, etc.) */
|
|
25
|
-
meta?: Record<string, any>;
|
|
26
|
-
/** Enable column filter */
|
|
27
|
-
enableColumnFilter?: boolean;
|
|
28
|
-
/** Enable sorting for this column */
|
|
29
|
-
enableSorting?: boolean;
|
|
30
|
-
/** Custom filter function for this column */
|
|
31
|
-
filterFn?: (row: T, filterValue: string) => boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface StreamingConfig {
|
|
34
|
-
/** Maximum buffer size (default: 1000) */
|
|
35
|
-
maxBufferSize?: number;
|
|
36
|
-
/** Append-only mode - don't remove stale rows (default: false) */
|
|
37
|
-
appendMode?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface PaginationConfig {
|
|
40
|
-
/** Enable pagination (default: false) */
|
|
41
|
-
enablePagination?: boolean;
|
|
42
|
-
/** Number of rows per page (default: 10) */
|
|
43
|
-
pageSize?: number;
|
|
44
|
-
/** Initial page index (default: 0) */
|
|
45
|
-
initialPage?: number;
|
|
46
|
-
}
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type JSX } from "solid-js";
|
|
2
|
-
export interface SvgBackgroundProps {
|
|
3
|
-
/** Primary gradient color (CSS color value) */
|
|
4
|
-
colorStart?: string;
|
|
5
|
-
/** Secondary gradient color (CSS color value) */
|
|
6
|
-
colorEnd?: string;
|
|
7
|
-
/** Background color */
|
|
8
|
-
backgroundColor?: string;
|
|
9
|
-
/** Background opacity (0-1) */
|
|
10
|
-
opacity?: number;
|
|
11
|
-
/** Blur intensity (0-100) */
|
|
12
|
-
blurIntensity?: number;
|
|
13
|
-
/** Density of shapes (any positive number) */
|
|
14
|
-
density?: number;
|
|
15
|
-
/** Darkness overlay (0-1) */
|
|
16
|
-
darkness?: number;
|
|
17
|
-
class?: string;
|
|
18
|
-
style?: JSX.CSSProperties;
|
|
19
|
-
children?: JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
export default function SvgBackground(props: SvgBackgroundProps): JSX.Element;
|