@pathscale/ui 0.0.163 → 0.0.165
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/badge/Badge.css +168 -0
- package/dist/components/accordion/Accordion.d.ts +0 -1
- package/dist/components/alert/Alert.d.ts +0 -1
- package/dist/components/avatar/Avatar.d.ts +0 -1
- package/dist/components/badge/Badge.d.ts +24 -18
- package/dist/components/badge/index.d.ts +9 -1
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/dist/components/button/Button.d.ts +0 -1
- package/dist/components/calendar/Calendar.d.ts +0 -1
- package/dist/components/card/Card.d.ts +0 -1
- package/dist/components/carousel/Carousel.d.ts +0 -1
- package/dist/components/chatbubble/ChatBubble.d.ts +0 -1
- package/dist/components/checkbox/Checkbox.d.ts +0 -1
- package/dist/components/collapse/Collapse.d.ts +0 -1
- package/dist/components/countdown/Countdown.d.ts +0 -1
- package/dist/components/diff/Diff.d.ts +0 -1
- package/dist/components/dock/Dock.d.ts +0 -1
- package/dist/components/drawer/Drawer.d.ts +0 -1
- package/dist/components/dropdown/Dropdown.d.ts +3 -3
- package/dist/components/dropdown/dropdownContext.d.ts +0 -10
- package/dist/components/fileinput/FileInput.d.ts +0 -1
- package/dist/components/footer/Footer.d.ts +0 -1
- package/dist/components/form/Form.d.ts +8 -3
- package/dist/components/form/ValidatedForm.d.ts +1 -1
- package/dist/components/hero/Hero.d.ts +0 -1
- package/dist/components/indicator/Indicator.d.ts +0 -1
- package/dist/components/input/Input.d.ts +0 -1
- package/dist/components/kbd/Kbd.d.ts +0 -1
- package/dist/components/link/Link.d.ts +0 -1
- package/dist/components/loading/Loading.d.ts +0 -1
- package/dist/components/mask/Mask.d.ts +0 -1
- package/dist/components/menu/Menu.d.ts +0 -1
- package/dist/components/modal/Modal.d.ts +0 -1
- package/dist/components/navbar/Navbar.d.ts +0 -1
- package/dist/components/progress/Progress.d.ts +0 -1
- package/dist/components/radio/Radio.d.ts +0 -1
- package/dist/components/radio-group/RadioGroup.d.ts +0 -1
- package/dist/components/range/Range.d.ts +0 -1
- package/dist/components/range-slider/RangeSlider.d.ts +0 -1
- package/dist/components/rating/Rating.d.ts +0 -1
- package/dist/components/select/Select.d.ts +0 -1
- package/dist/components/skeleton/Skeleton.d.ts +0 -1
- package/dist/components/stack/Stack.d.ts +0 -1
- package/dist/components/stats/Stat.d.ts +0 -1
- package/dist/components/steps/Step.d.ts +0 -1
- package/dist/components/swap/Swap.d.ts +0 -1
- package/dist/components/table/EnhancedTable.d.ts +0 -3
- package/dist/components/table/Table.d.ts +0 -1
- package/dist/components/tabs/RadioTab.d.ts +0 -1
- package/dist/components/tabs/Tabs.d.ts +0 -1
- package/dist/components/textarea/Textarea.d.ts +0 -1
- package/dist/components/timeline/Timeline.d.ts +0 -1
- package/dist/components/toast/Toast.d.ts +0 -1
- package/dist/components/toggle/Toggle.d.ts +0 -1
- package/dist/components/tooltip/Tooltip.d.ts +0 -1
- package/dist/index.css +224 -53
- package/dist/index.js +19883 -239
- package/dist/styles/compat/daisy-primitives.css +6919 -0
- package/package.json +5 -26
- package/dist/accordion/collapse.css +0 -248
- package/dist/alert/alert.css +0 -123
- package/dist/avatar/avatar.css +0 -58
- package/dist/badge/badge.css +0 -128
- package/dist/breadcrumbs/breadcrumbs.css +0 -85
- package/dist/button/btn.css +0 -429
- package/dist/calendar/input.css +0 -277
- package/dist/card/card.css +0 -171
- package/dist/carousel/carousel.css +0 -39
- package/dist/chatbubble/chat.css +0 -153
- package/dist/checkbox/checkbox.css +0 -168
- package/dist/collapse/collapse.css +0 -248
- package/dist/components/accordion/Accordion.js +0 -180
- package/dist/components/accordion/collapse.css +0 -248
- package/dist/components/accordion/index.js +0 -3
- package/dist/components/alert/Alert.js +0 -75
- package/dist/components/alert/alert.css +0 -123
- package/dist/components/alert/index.js +0 -3
- package/dist/components/artboard/Artboard.js +0 -42
- package/dist/components/artboard/index.js +0 -3
- package/dist/components/avatar/Avatar.js +0 -164
- package/dist/components/avatar/AvatarGroup.js +0 -52
- package/dist/components/avatar/avatar.css +0 -58
- package/dist/components/avatar/index.js +0 -3
- package/dist/components/background/Background.js +0 -22
- package/dist/components/background/index.js +0 -3
- package/dist/components/badge/Badge.js +0 -75
- package/dist/components/badge/badge.css +0 -128
- package/dist/components/badge/index.js +0 -3
- package/dist/components/bottom-sheet/BottomSheet.js +0 -109
- package/dist/components/bottom-sheet/index.js +0 -3
- package/dist/components/breadcrumbs/Breadcrumbs.js +0 -36
- package/dist/components/breadcrumbs/BreadcrumbsItem.js +0 -30
- package/dist/components/breadcrumbs/breadcrumbs.css +0 -85
- package/dist/components/breadcrumbs/index.js +0 -5
- package/dist/components/browsermockup/BrowserMockup.js +0 -55
- package/dist/components/browsermockup/index.js +0 -3
- package/dist/components/button/Button.js +0 -205
- package/dist/components/button/btn.css +0 -429
- package/dist/components/button/index.js +0 -3
- package/dist/components/calendar/Calendar.js +0 -194
- package/dist/components/calendar/index.js +0 -3
- package/dist/components/calendar/input.css +0 -277
- package/dist/components/card/Card.js +0 -98
- package/dist/components/card/CardActions.js +0 -15
- package/dist/components/card/CardBody.js +0 -15
- package/dist/components/card/CardImage.js +0 -10
- package/dist/components/card/CardTitle.js +0 -13
- package/dist/components/card/card.css +0 -171
- package/dist/components/card/index.js +0 -3
- package/dist/components/carousel/Carousel.js +0 -70
- package/dist/components/carousel/CarouselItem.js +0 -27
- package/dist/components/carousel/carousel.css +0 -39
- package/dist/components/carousel/index.js +0 -3
- package/dist/components/chatbubble/ChatBubble.js +0 -48
- package/dist/components/chatbubble/ChatBubbleAvatar.js +0 -16
- package/dist/components/chatbubble/ChatBubbleFooter.js +0 -14
- package/dist/components/chatbubble/ChatBubbleHeader.js +0 -14
- package/dist/components/chatbubble/ChatBubbleMessage.js +0 -28
- package/dist/components/chatbubble/ChatBubbleTime.js +0 -14
- package/dist/components/chatbubble/chat.css +0 -153
- package/dist/components/chatbubble/index.js +0 -3
- package/dist/components/checkbox/Checkbox.js +0 -78
- package/dist/components/checkbox/checkbox.css +0 -168
- package/dist/components/checkbox/index.js +0 -3
- package/dist/components/codemockup/CodeMockup.js +0 -33
- package/dist/components/codemockup/CodeMockupLine.js +0 -53
- package/dist/components/codemockup/index.js +0 -5
- package/dist/components/collapse/Collapse.js +0 -104
- package/dist/components/collapse/CollapseContent.js +0 -15
- package/dist/components/collapse/CollapseDetails.js +0 -33
- package/dist/components/collapse/CollapseTitle.js +0 -47
- package/dist/components/collapse/collapse.css +0 -248
- package/dist/components/collapse/index.js +0 -10
- package/dist/components/colorpicker/AlphaSlider.js +0 -107
- package/dist/components/colorpicker/ColorInput.js +0 -88
- package/dist/components/colorpicker/ColorPicker.js +0 -264
- package/dist/components/colorpicker/ColorPickerFlowerSelector.js +0 -9
- package/dist/components/colorpicker/ColorPickerGradientSelector.js +0 -9
- package/dist/components/colorpicker/ColorPickerWheelSelector.js +0 -9
- package/dist/components/colorpicker/ColorPreview.js +0 -47
- package/dist/components/colorpicker/ColorSwatches.js +0 -67
- package/dist/components/colorpicker/ColorUtils.js +0 -216
- package/dist/components/colorpicker/ColorWheel.js +0 -106
- package/dist/components/colorpicker/ColorWheelFlower.js +0 -462
- package/dist/components/colorpicker/HueSlider.js +0 -105
- package/dist/components/colorpicker/LightnessSlider.js +0 -111
- package/dist/components/colorpicker/SaturationBrightness.js +0 -120
- package/dist/components/colorpicker/colorpickerContext.js +0 -8
- package/dist/components/colorpicker/index.js +0 -31
- package/dist/components/confirm-dialog/ConfirmDialog.js +0 -102
- package/dist/components/confirm-dialog/index.js +0 -3
- package/dist/components/connectionstatus/ConnectionStatus.js +0 -189
- package/dist/components/connectionstatus/index.js +0 -3
- package/dist/components/copy-button/CopyButton.js +0 -70
- package/dist/components/copy-button/index.js +0 -3
- package/dist/components/countdown/Countdown.js +0 -37
- package/dist/components/countdown/countdown.css +0 -58
- package/dist/components/countdown/index.js +0 -3
- package/dist/components/diff/Diff.js +0 -29
- package/dist/components/diff/diff.css +0 -162
- package/dist/components/diff/index.js +0 -3
- package/dist/components/divider/Divider.js +0 -41
- package/dist/components/divider/Divider.styles.js +0 -71
- package/dist/components/divider/index.js +0 -3
- package/dist/components/dock/Dock.js +0 -40
- package/dist/components/dock/DockItem.js +0 -45
- package/dist/components/dock/DockLabel.js +0 -22
- package/dist/components/dock/dock.css +0 -147
- package/dist/components/dock/index.js +0 -3
- package/dist/components/drawer/Drawer.js +0 -68
- package/dist/components/drawer/drawer.css +0 -184
- package/dist/components/drawer/index.js +0 -3
- package/dist/components/dropdown/Dropdown.js +0 -133
- package/dist/components/dropdown/DropdownDetails.js +0 -44
- package/dist/components/dropdown/DropdownItem.js +0 -60
- package/dist/components/dropdown/DropdownMenu.js +0 -44
- package/dist/components/dropdown/DropdownToggle.js +0 -92
- package/dist/components/dropdown/dropdown.css +0 -253
- package/dist/components/dropdown/dropdownContext.js +0 -54
- package/dist/components/dropdown/index.js +0 -3
- package/dist/components/dropdown-select/DropdownSelect.js +0 -279
- package/dist/components/dropdown-select/index.js +0 -3
- package/dist/components/empty-state/EmptyState.js +0 -88
- package/dist/components/empty-state/index.js +0 -3
- package/dist/components/fieldset/Fieldset.js +0 -73
- package/dist/components/fieldset/index.js +0 -3
- package/dist/components/fileinput/FileInput.js +0 -51
- package/dist/components/fileinput/index.js +0 -3
- package/dist/components/fileinput/input.css +0 -277
- package/dist/components/flex/Flex.js +0 -101
- package/dist/components/flex/index.js +0 -3
- package/dist/components/floating-dock/FloatingDock.js +0 -550
- package/dist/components/floating-dock/index.js +0 -3
- package/dist/components/footer/Footer.js +0 -41
- package/dist/components/footer/FooterTitle.js +0 -27
- package/dist/components/footer/footer.css +0 -51
- package/dist/components/footer/index.js +0 -3
- package/dist/components/form/Form.js +0 -17
- package/dist/components/form/FormBase.d.ts +0 -8
- package/dist/components/form/FormBase.js +0 -74
- package/dist/components/form/FormDropdown.js +0 -138
- package/dist/components/form/FormField.js +0 -78
- package/dist/components/form/Label.js +0 -31
- package/dist/components/form/NumberField.js +0 -109
- package/dist/components/form/PasswordField.js +0 -113
- package/dist/components/form/ValidatedForm.js +0 -55
- package/dist/components/form/index.js +0 -6
- package/dist/components/form-actions/FormActions.js +0 -142
- package/dist/components/form-actions/index.js +0 -3
- package/dist/components/glass-panel/GlassPanel.js +0 -146
- package/dist/components/glass-panel/index.js +0 -3
- package/dist/components/glow-card/GlowCard.css +0 -65
- package/dist/components/glow-card/GlowCard.js +0 -47
- package/dist/components/glow-card/index.js +0 -3
- package/dist/components/grid/Grid.js +0 -89
- package/dist/components/grid/index.js +0 -3
- package/dist/components/hero/Hero.js +0 -47
- package/dist/components/hero/HeroContent.js +0 -31
- package/dist/components/hero/HeroOverlay.js +0 -39
- package/dist/components/hero/hero.css +0 -38
- package/dist/components/hero/index.js +0 -3
- package/dist/components/icon/Icon.js +0 -38
- package/dist/components/icon/index.js +0 -3
- package/dist/components/immersive-landing/ImmersiveLanding.js +0 -218
- package/dist/components/immersive-landing/ImmersiveLandingArrows.js +0 -60
- package/dist/components/immersive-landing/ImmersiveLandingContext.js +0 -8
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.js +0 -91
- package/dist/components/immersive-landing/ImmersiveLandingPage.js +0 -46
- package/dist/components/immersive-landing/components/CookieConsent.js +0 -256
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +0 -173
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +0 -178
- package/dist/components/immersive-landing/index.js +0 -14
- package/dist/components/immersive-landing/types.js +0 -0
- package/dist/components/immersive-landing/useImmersiveLanding.js +0 -151
- package/dist/components/indicator/Indicator.js +0 -76
- package/dist/components/indicator/index.js +0 -3
- package/dist/components/indicator/indicator.css +0 -70
- package/dist/components/input/Input.js +0 -136
- package/dist/components/input/index.js +0 -3
- package/dist/components/input/input.css +0 -277
- package/dist/components/join/Join.js +0 -41
- package/dist/components/join/index.js +0 -3
- package/dist/components/kbd/Kbd.js +0 -22
- package/dist/components/kbd/index.js +0 -3
- package/dist/components/kbd/kbd.css +0 -55
- package/dist/components/language-switcher/LanguageSwitcher.js +0 -101
- package/dist/components/language-switcher/createI18n.js +0 -85
- package/dist/components/language-switcher/index.js +0 -8
- package/dist/components/link/Link.js +0 -70
- package/dist/components/link/index.js +0 -3
- package/dist/components/link/link.css +0 -153
- package/dist/components/live-chat/LiveChatBubble.js +0 -106
- package/dist/components/live-chat/LiveChatPanel.js +0 -359
- package/dist/components/live-chat/index.js +0 -5
- package/dist/components/live-chat/types.js +0 -0
- package/dist/components/loading/Loading.js +0 -75
- package/dist/components/loading/index.js +0 -3
- package/dist/components/loading/loading.css +0 -58
- package/dist/components/mask/Mask.js +0 -62
- package/dist/components/mask/index.js +0 -3
- package/dist/components/mask/mask.css +0 -89
- package/dist/components/menu/Menu.js +0 -51
- package/dist/components/menu/MenuDetails.js +0 -37
- package/dist/components/menu/MenuDropdown.js +0 -48
- package/dist/components/menu/MenuItem.js +0 -40
- package/dist/components/menu/MenuTitle.js +0 -22
- package/dist/components/menu/index.js +0 -3
- package/dist/components/menu/menu.css +0 -364
- package/dist/components/modal/Modal.js +0 -125
- package/dist/components/modal/ModalActions.js +0 -14
- package/dist/components/modal/ModalBody.js +0 -14
- package/dist/components/modal/ModalHeader.js +0 -15
- package/dist/components/modal/ModalLegacy.js +0 -36
- package/dist/components/modal/index.js +0 -3
- package/dist/components/modal/modal.css +0 -170
- package/dist/components/navbar/Navbar.js +0 -54
- package/dist/components/navbar/NavbarRow.js +0 -49
- package/dist/components/navbar/NavbarSection.js +0 -38
- package/dist/components/navbar/NavbarStack.js +0 -39
- package/dist/components/navbar/index.js +0 -3
- package/dist/components/navbar/navbar.css +0 -33
- package/dist/components/noise-background/NoiseBackground.js +0 -200
- package/dist/components/noise-background/index.js +0 -3
- package/dist/components/pagination/Pagination.js +0 -17
- package/dist/components/pagination/index.js +0 -3
- package/dist/components/phonemockup/PhoneMockup.js +0 -44
- package/dist/components/phonemockup/index.js +0 -3
- package/dist/components/progress/Progress.js +0 -70
- package/dist/components/progress/index.js +0 -3
- package/dist/components/progress/progress.css +0 -94
- package/dist/components/props-table/PropsTable.js +0 -56
- package/dist/components/props-table/index.js +0 -3
- package/dist/components/radialprogress/RadialProgress.js +0 -47
- package/dist/components/radialprogress/index.js +0 -3
- package/dist/components/radio/Radio.js +0 -73
- package/dist/components/radio/index.js +0 -3
- package/dist/components/radio/radio.css +0 -152
- package/dist/components/radio-group/RadioGroup.js +0 -107
- package/dist/components/radio-group/index.js +0 -3
- package/dist/components/radio-group/radio.css +0 -152
- package/dist/components/range/Range.js +0 -85
- package/dist/components/range/index.js +0 -3
- package/dist/components/range/range.css +0 -174
- package/dist/components/range-slider/RangeSlider.js +0 -112
- package/dist/components/range-slider/index.js +0 -3
- package/dist/components/range-slider/range.css +0 -174
- package/dist/components/rating/Rating.js +0 -54
- package/dist/components/rating/RatingHidden.js +0 -29
- package/dist/components/rating/RatingItem.js +0 -62
- package/dist/components/rating/index.js +0 -3
- package/dist/components/rating/rating.css +0 -106
- package/dist/components/select/Select.js +0 -62
- package/dist/components/select/index.js +0 -3
- package/dist/components/select/select.css +0 -351
- package/dist/components/showcase/ShowcaseBlock.js +0 -48
- package/dist/components/showcase/index.js +0 -3
- package/dist/components/showcase-section/ShowcaseSection.js +0 -73
- package/dist/components/showcase-section/index.js +0 -3
- package/dist/components/sidenav/Sidenav.css +0 -176
- package/dist/components/sidenav/Sidenav.js +0 -66
- package/dist/components/sidenav/SidenavButton.js +0 -41
- package/dist/components/sidenav/SidenavGroup.js +0 -45
- package/dist/components/sidenav/SidenavItem.js +0 -37
- package/dist/components/sidenav/SidenavLink.js +0 -36
- package/dist/components/sidenav/SidenavMenu.js +0 -31
- package/dist/components/sidenav/index.js +0 -13
- package/dist/components/size-picker/SizePicker.js +0 -63
- package/dist/components/size-picker/index.js +0 -6
- package/dist/components/size-picker/sizeStore.js +0 -36
- package/dist/components/skeleton/Skeleton.js +0 -30
- package/dist/components/skeleton/index.js +0 -3
- package/dist/components/skeleton/skeleton.css +0 -22
- package/dist/components/skip-link/SkipLink.js +0 -34
- package/dist/components/skip-link/index.js +0 -3
- package/dist/components/stack/Stack.js +0 -53
- package/dist/components/stack/index.js +0 -3
- package/dist/components/stack/stack.css +0 -90
- package/dist/components/stat-card/StatCard.js +0 -46
- package/dist/components/stat-card/StatCardSection.js +0 -39
- package/dist/components/stat-card/index.js +0 -3
- package/dist/components/stats/Stat.js +0 -51
- package/dist/components/stats/StatSection.js +0 -29
- package/dist/components/stats/Stats.js +0 -29
- package/dist/components/stats/index.js +0 -3
- package/dist/components/stats/stat.css +0 -67
- package/dist/components/status/Status.js +0 -30
- package/dist/components/status/index.js +0 -3
- package/dist/components/steps/Step.js +0 -88
- package/dist/components/steps/Steps.js +0 -80
- package/dist/components/steps/index.js +0 -3
- package/dist/components/steps/step.css +0 -179
- package/dist/components/streaming-table/StreamingTable.js +0 -343
- package/dist/components/streaming-table/createRowStore.js +0 -18
- package/dist/components/streaming-table/createStreamingTableStore.js +0 -68
- package/dist/components/streaming-table/index.js +0 -5
- package/dist/components/streaming-table/types.js +0 -0
- package/dist/components/svgbackground/SvgBackground.js +0 -413
- package/dist/components/svgbackground/index.js +0 -3
- package/dist/components/swap/Swap.js +0 -57
- package/dist/components/swap/index.js +0 -3
- package/dist/components/swap/swap.css +0 -92
- package/dist/components/switch-field/SwitchField.js +0 -91
- package/dist/components/switch-field/index.js +0 -3
- package/dist/components/table/EnhancedTable.js +0 -733
- package/dist/components/table/Table.js +0 -57
- package/dist/components/table/TableBody.js +0 -30
- package/dist/components/table/TableCell.js +0 -34
- package/dist/components/table/TableFooter.js +0 -45
- package/dist/components/table/TableHead.js +0 -45
- package/dist/components/table/TableHeadCell.js +0 -34
- package/dist/components/table/TableRow.js +0 -34
- package/dist/components/table/index.js +0 -5
- package/dist/components/table/table.css +0 -148
- package/dist/components/tabs/RadioTab.js +0 -64
- package/dist/components/tabs/Tab.js +0 -43
- package/dist/components/tabs/Tabs.js +0 -45
- package/dist/components/tabs/index.js +0 -3
- package/dist/components/tabs/tab.css +0 -414
- package/dist/components/textarea/Textarea.js +0 -53
- package/dist/components/textarea/index.js +0 -3
- package/dist/components/textarea/textarea.css +0 -191
- package/dist/components/theme-color-picker/ThemeColorPicker.js +0 -151
- package/dist/components/theme-color-picker/hueShift.js +0 -476
- package/dist/components/theme-color-picker/index.js +0 -7
- package/dist/components/timeline/Timeline.js +0 -42
- package/dist/components/timeline/TimelineEnd.js +0 -28
- package/dist/components/timeline/TimelineItem.js +0 -47
- package/dist/components/timeline/TimelineMiddle.js +0 -25
- package/dist/components/timeline/TimelineStart.js +0 -28
- package/dist/components/timeline/index.js +0 -11
- package/dist/components/timeline/timeline.css +0 -286
- package/dist/components/toast/Toast.js +0 -54
- package/dist/components/toast/index.js +0 -3
- package/dist/components/toast/toast.css +0 -58
- package/dist/components/toastcontainer/ToastContainer.js +0 -15
- package/dist/components/toastcontainer/ToastStack.js +0 -172
- package/dist/components/toastcontainer/index.js +0 -5
- package/dist/components/toggle/Toggle.js +0 -74
- package/dist/components/toggle/index.js +0 -3
- package/dist/components/toggle/toggle.css +0 -234
- package/dist/components/tooltip/Tooltip.js +0 -54
- package/dist/components/tooltip/index.js +0 -3
- package/dist/components/tooltip/tooltip.css +0 -198
- package/dist/components/types.js +0 -8
- package/dist/components/utils.js +0 -46
- package/dist/components/video-preview/VideoPreview.js +0 -55
- package/dist/components/video-preview/index.js +0 -3
- package/dist/components/windowmockup/WindowMockup.js +0 -85
- package/dist/components/windowmockup/index.js +0 -3
- package/dist/countdown/countdown.css +0 -58
- package/dist/diff/diff.css +0 -162
- package/dist/dock/dock.css +0 -147
- package/dist/drawer/drawer.css +0 -184
- package/dist/dropdown/dropdown.css +0 -253
- package/dist/fileinput/input.css +0 -277
- package/dist/footer/footer.css +0 -51
- package/dist/hero/hero.css +0 -38
- package/dist/indicator/indicator.css +0 -70
- package/dist/input/input.css +0 -277
- package/dist/kbd/kbd.css +0 -55
- package/dist/lib/iterable.js +0 -6
- package/dist/lib/props/index.js +0 -0
- package/dist/lib/props/types.js +0 -0
- package/dist/lib/refs/index.js +0 -3
- package/dist/lib/refs/mergeRefs.js +0 -5
- package/dist/lib/refs/types.js +0 -0
- package/dist/lib/style/classes.js +0 -40
- package/dist/lib/style/index.js +0 -4
- package/dist/lib/tag/createIsButton.js +0 -23
- package/dist/lib/tag/createTagName.js +0 -5
- package/dist/lib/tag/index.js +0 -7
- package/dist/link/link.css +0 -153
- package/dist/loading/loading.css +0 -58
- package/dist/mask/mask.css +0 -89
- package/dist/menu/menu.css +0 -364
- package/dist/modal/modal.css +0 -170
- package/dist/motion/driver.js +0 -13
- package/dist/motion/easing.js +0 -18
- package/dist/motion/engine.js +0 -85
- package/dist/motion/index.js +0 -34
- package/dist/motion/popmotion.js +0 -6
- package/dist/motion/presets.js +0 -203
- package/dist/motion/reduced-motion.js +0 -2
- package/dist/motion/route.js +0 -24
- package/dist/motion/solid/MotionDiv.js +0 -76
- package/dist/motion/solid/index.js +0 -3
- package/dist/motion/system.js +0 -59
- package/dist/motion/tokens.js +0 -42
- package/dist/motion/types.js +0 -0
- package/dist/navbar/navbar.css +0 -33
- package/dist/progress/progress.css +0 -94
- package/dist/radio/radio.css +0 -152
- package/dist/radio-group/radio.css +0 -152
- package/dist/range/range.css +0 -174
- package/dist/range-slider/range.css +0 -174
- package/dist/rating/rating.css +0 -106
- package/dist/select/select.css +0 -351
- package/dist/skeleton/skeleton.css +0 -22
- package/dist/stack/stack.css +0 -90
- package/dist/stats/stat.css +0 -67
- package/dist/steps/step.css +0 -179
- package/dist/stores/index.js +0 -1
- package/dist/stores/toastStore.js +0 -64
- package/dist/swap/swap.css +0 -92
- package/dist/table/table.css +0 -148
- package/dist/tabs/tab.css +0 -414
- package/dist/textarea/textarea.css +0 -191
- package/dist/timeline/timeline.css +0 -286
- package/dist/toast/toast.css +0 -58
- package/dist/toggle/toggle.css +0 -234
- package/dist/tooltip/tooltip.css +0 -198
|
@@ -1,343 +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__button_index_js_557db1f7__ from "../button/index.js";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__ from "../icon/index.js";
|
|
7
|
-
import * as __WEBPACK_EXTERNAL_MODULE__pagination_index_js_4cbbf7e7__ from "../pagination/index.js";
|
|
8
|
-
import * as __WEBPACK_EXTERNAL_MODULE__createStreamingTableStore_js_f1f78960__ from "./createStreamingTableStore.js";
|
|
9
|
-
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tbody>"), _tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex justify-center items-center gap-2 mt-4"><span class="text-sm ml-2">Page <!> of '), _tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), _tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><span>");
|
|
10
|
-
const StreamingTable = (props)=>{
|
|
11
|
-
const [local, tableProps] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
12
|
-
"data",
|
|
13
|
-
"columns",
|
|
14
|
-
"getRowId",
|
|
15
|
-
"streamingConfig",
|
|
16
|
-
"enableFiltering",
|
|
17
|
-
"filterValue",
|
|
18
|
-
"onFilterChange",
|
|
19
|
-
"globalFilterFn",
|
|
20
|
-
"enablePagination",
|
|
21
|
-
"pageSize",
|
|
22
|
-
"initialPage",
|
|
23
|
-
"enableSorting",
|
|
24
|
-
"initialSorting",
|
|
25
|
-
"class",
|
|
26
|
-
"className"
|
|
27
|
-
]);
|
|
28
|
-
const store = (0, __WEBPACK_EXTERNAL_MODULE__createStreamingTableStore_js_f1f78960__.createStreamingTableStore)();
|
|
29
|
-
const [sortingState, setSortingState] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.initialSorting ?? {
|
|
30
|
-
columnId: null,
|
|
31
|
-
direction: null
|
|
32
|
-
});
|
|
33
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
34
|
-
if (local.initialSorting) setSortingState(local.initialSorting);
|
|
35
|
-
});
|
|
36
|
-
const config = {
|
|
37
|
-
maxBufferSize: local.streamingConfig?.maxBufferSize ?? 1000,
|
|
38
|
-
appendMode: local.streamingConfig?.appendMode ?? false
|
|
39
|
-
};
|
|
40
|
-
const resolveId = (row)=>{
|
|
41
|
-
if (local.getRowId) return local.getRowId(row);
|
|
42
|
-
const rowWithId = row;
|
|
43
|
-
if (null != rowWithId.id) return String(rowWithId.id);
|
|
44
|
-
return JSON.stringify(row);
|
|
45
|
-
};
|
|
46
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
47
|
-
const incoming = local.data ?? [];
|
|
48
|
-
if (config.appendMode) {
|
|
49
|
-
store.appendRows(incoming, resolveId);
|
|
50
|
-
store.truncateToSize(config.maxBufferSize);
|
|
51
|
-
} else {
|
|
52
|
-
const idSet = new Set();
|
|
53
|
-
incoming.forEach((row)=>{
|
|
54
|
-
const id = resolveId(row);
|
|
55
|
-
idSet.add(id);
|
|
56
|
-
store.upsertRow(row, resolveId);
|
|
57
|
-
});
|
|
58
|
-
const current = store.rows();
|
|
59
|
-
current.forEach((r)=>{
|
|
60
|
-
if (!idSet.has(r.id)) store.removeRow(r.id);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
const defaultGlobalFilterFn = (row, filterValue, columns)=>{
|
|
65
|
-
if (!filterValue || "" === filterValue.trim()) return true;
|
|
66
|
-
const lowerFilter = filterValue.toLowerCase();
|
|
67
|
-
return columns.some((col)=>{
|
|
68
|
-
if (col.filterFn) return col.filterFn(row, filterValue);
|
|
69
|
-
let value;
|
|
70
|
-
if (col.accessorKey) value = row[col.accessorKey];
|
|
71
|
-
else {
|
|
72
|
-
if (!col.accessorFn) return false;
|
|
73
|
-
value = col.accessorFn(row);
|
|
74
|
-
}
|
|
75
|
-
if (null == value) return false;
|
|
76
|
-
return String(value).toLowerCase().includes(lowerFilter);
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
const filteredRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
80
|
-
const rows = store.rows();
|
|
81
|
-
if (!local.enableFiltering) return rows;
|
|
82
|
-
const currentFilterValue = local.filterValue ?? "";
|
|
83
|
-
if (!currentFilterValue || "" === currentFilterValue.trim()) return rows;
|
|
84
|
-
const filterFn = local.globalFilterFn ?? defaultGlobalFilterFn;
|
|
85
|
-
return rows.filter((rowStore)=>{
|
|
86
|
-
const rowData = rowStore.data();
|
|
87
|
-
return filterFn(rowData, currentFilterValue, local.columns);
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
const getColumnId = (col, index)=>col.id ?? col.accessorKey ?? `column-${index}`;
|
|
91
|
-
const handleSort = (col, index)=>{
|
|
92
|
-
if (!local.enableSorting || false === col.enableSorting) return;
|
|
93
|
-
const columnId = getColumnId(col, index);
|
|
94
|
-
const current = sortingState();
|
|
95
|
-
let newDirection = "asc";
|
|
96
|
-
if (current.columnId === columnId) {
|
|
97
|
-
if ("asc" === current.direction) newDirection = "desc";
|
|
98
|
-
else if ("desc" === current.direction) newDirection = null;
|
|
99
|
-
}
|
|
100
|
-
setSortingState({
|
|
101
|
-
columnId: null === newDirection ? null : columnId,
|
|
102
|
-
direction: newDirection
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
const getSortValue = (row, col)=>{
|
|
106
|
-
if (col.accessorKey) return row[col.accessorKey];
|
|
107
|
-
if (col.accessorFn) return col.accessorFn(row);
|
|
108
|
-
return null;
|
|
109
|
-
};
|
|
110
|
-
const defaultSortFn = (a, b)=>{
|
|
111
|
-
if (null == a && null == b) return 0;
|
|
112
|
-
if (null == a) return 1;
|
|
113
|
-
if (null == b) return -1;
|
|
114
|
-
if ("string" == typeof a && "string" == typeof b) return a.localeCompare(b);
|
|
115
|
-
if ("number" == typeof a && "number" == typeof b) return a - b;
|
|
116
|
-
if ("boolean" == typeof a && "boolean" == typeof b) return a === b ? 0 : a ? 1 : -1;
|
|
117
|
-
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
118
|
-
return String(a).localeCompare(String(b));
|
|
119
|
-
};
|
|
120
|
-
const sortedRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
121
|
-
const rows = filteredRows();
|
|
122
|
-
const sorting = sortingState();
|
|
123
|
-
if (!local.enableSorting || !sorting.direction || !sorting.columnId) return rows;
|
|
124
|
-
const colIndex = local.columns.findIndex((col, idx)=>getColumnId(col, idx) === sorting.columnId);
|
|
125
|
-
if (-1 === colIndex) return rows;
|
|
126
|
-
const col = local.columns[colIndex];
|
|
127
|
-
const sorted = [
|
|
128
|
-
...rows
|
|
129
|
-
].sort((rowStoreA, rowStoreB)=>{
|
|
130
|
-
const rowA = rowStoreA.data();
|
|
131
|
-
const rowB = rowStoreB.data();
|
|
132
|
-
let result;
|
|
133
|
-
if (col.sortingFn) result = col.sortingFn(rowA, rowB);
|
|
134
|
-
else {
|
|
135
|
-
const valueA = getSortValue(rowA, col);
|
|
136
|
-
const valueB = getSortValue(rowB, col);
|
|
137
|
-
result = defaultSortFn(valueA, valueB);
|
|
138
|
-
}
|
|
139
|
-
return "desc" === sorting.direction ? -result : result;
|
|
140
|
-
});
|
|
141
|
-
return sorted;
|
|
142
|
-
});
|
|
143
|
-
const renderSortIndicator = (col, index)=>{
|
|
144
|
-
if (!local.enableSorting || false === col.enableSorting) return null;
|
|
145
|
-
const columnId = getColumnId(col, index);
|
|
146
|
-
const sorting = sortingState();
|
|
147
|
-
if (sorting.columnId !== columnId || !sorting.direction) return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__["default"], {
|
|
148
|
-
name: "icon-[mdi-light--unfold-more-horizontal]",
|
|
149
|
-
width: 16,
|
|
150
|
-
height: 16,
|
|
151
|
-
class: "opacity-30"
|
|
152
|
-
});
|
|
153
|
-
return "asc" === sorting.direction ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__["default"], {
|
|
154
|
-
name: "icon-[mdi-light--chevron-up]",
|
|
155
|
-
width: 16,
|
|
156
|
-
height: 16
|
|
157
|
-
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__["default"], {
|
|
158
|
-
name: "icon-[mdi-light--chevron-down]",
|
|
159
|
-
width: 16,
|
|
160
|
-
height: 16
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
const [currentPage, setCurrentPage] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.initialPage ?? 0);
|
|
164
|
-
const pageSize = local.pageSize ?? 10;
|
|
165
|
-
const enablePagination = local.enablePagination ?? false;
|
|
166
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
167
|
-
if (enablePagination) {
|
|
168
|
-
if (local.enableFiltering) local.filterValue;
|
|
169
|
-
if (local.enableSorting) sortingState();
|
|
170
|
-
setCurrentPage(0);
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
const paginatedRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
174
|
-
const rows = sortedRows();
|
|
175
|
-
if (!enablePagination) return rows;
|
|
176
|
-
const start = currentPage() * pageSize;
|
|
177
|
-
const end = start + pageSize;
|
|
178
|
-
return rows.slice(start, end);
|
|
179
|
-
});
|
|
180
|
-
const totalPages = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
181
|
-
if (!enablePagination) return 1;
|
|
182
|
-
const total = sortedRows().length;
|
|
183
|
-
return Math.max(1, Math.ceil(total / pageSize));
|
|
184
|
-
});
|
|
185
|
-
const goToPage = (page)=>{
|
|
186
|
-
const maxPage = totalPages() - 1;
|
|
187
|
-
if (page >= 0 && page <= maxPage) setCurrentPage(page);
|
|
188
|
-
};
|
|
189
|
-
const nextPage = ()=>goToPage(currentPage() + 1);
|
|
190
|
-
const prevPage = ()=>goToPage(currentPage() - 1);
|
|
191
|
-
const visiblePageNumbers = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
192
|
-
const total = totalPages();
|
|
193
|
-
const current = currentPage();
|
|
194
|
-
const pages = [];
|
|
195
|
-
if (total <= 5) for(let i = 0; i < total; i++)pages.push(i);
|
|
196
|
-
else {
|
|
197
|
-
let start = Math.max(0, current - 2);
|
|
198
|
-
let end = Math.min(total - 1, current + 2);
|
|
199
|
-
if (current < 2) end = Math.min(total - 1, 4);
|
|
200
|
-
else if (current > total - 3) start = Math.max(0, total - 5);
|
|
201
|
-
for(let i = start; i <= end; i++)pages.push(i);
|
|
202
|
-
}
|
|
203
|
-
return pages;
|
|
204
|
-
});
|
|
205
|
-
return (()=>{
|
|
206
|
-
var _el$ = _tmpl$3();
|
|
207
|
-
(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, {
|
|
208
|
-
get children () {
|
|
209
|
-
return [
|
|
210
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Head, {
|
|
211
|
-
get children () {
|
|
212
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
213
|
-
get each () {
|
|
214
|
-
return local.columns;
|
|
215
|
-
},
|
|
216
|
-
children: (col, index)=>{
|
|
217
|
-
const isSortable = local.enableSorting && false !== col.enableSorting;
|
|
218
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].HeadCell, {
|
|
219
|
-
get children () {
|
|
220
|
-
var _el$8 = _tmpl$4(), _el$9 = _el$8.firstChild;
|
|
221
|
-
_el$8.$$click = ()=>isSortable && handleSort(col, index());
|
|
222
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$8, isSortable ? "flex items-center gap-2 cursor-pointer select-none" : "");
|
|
223
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, ()=>col.header);
|
|
224
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, ()=>renderSortIndicator(col, index()), null);
|
|
225
|
-
return _el$8;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
}),
|
|
232
|
-
(()=>{
|
|
233
|
-
var _el$2 = _tmpl$();
|
|
234
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
235
|
-
get when () {
|
|
236
|
-
return paginatedRows().length > 0;
|
|
237
|
-
},
|
|
238
|
-
get fallback () {
|
|
239
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Row, {
|
|
240
|
-
get children () {
|
|
241
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Cell, {
|
|
242
|
-
get colSpan () {
|
|
243
|
-
return local.columns.length;
|
|
244
|
-
},
|
|
245
|
-
class: "text-center",
|
|
246
|
-
children: "No data"
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
},
|
|
251
|
-
get children () {
|
|
252
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
253
|
-
get each () {
|
|
254
|
-
return paginatedRows();
|
|
255
|
-
},
|
|
256
|
-
children: (rowStore)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Row, {
|
|
257
|
-
get children () {
|
|
258
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
259
|
-
get each () {
|
|
260
|
-
return local.columns;
|
|
261
|
-
},
|
|
262
|
-
children: (col)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__table_index_js_3c329fbb__["default"].Cell, {
|
|
263
|
-
get children () {
|
|
264
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!col.cell)() ? col.cell({
|
|
265
|
-
row: {
|
|
266
|
-
original: rowStore.data()
|
|
267
|
-
}
|
|
268
|
-
}) : (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()) : "";
|
|
269
|
-
}
|
|
270
|
-
})
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
})
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
}));
|
|
277
|
-
return _el$2;
|
|
278
|
-
})()
|
|
279
|
-
];
|
|
280
|
-
}
|
|
281
|
-
})), null);
|
|
282
|
-
(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, {
|
|
283
|
-
get when () {
|
|
284
|
-
return enablePagination && totalPages() > 0;
|
|
285
|
-
},
|
|
286
|
-
get children () {
|
|
287
|
-
var _el$3 = _tmpl$2(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$7 = _el$5.nextSibling;
|
|
288
|
-
_el$7.nextSibling;
|
|
289
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__pagination_index_js_4cbbf7e7__["default"], {
|
|
290
|
-
get children () {
|
|
291
|
-
return [
|
|
292
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__button_index_js_557db1f7__["default"], {
|
|
293
|
-
class: "join-item",
|
|
294
|
-
onClick: prevPage,
|
|
295
|
-
get disabled () {
|
|
296
|
-
return 0 === currentPage();
|
|
297
|
-
},
|
|
298
|
-
size: "sm",
|
|
299
|
-
children: "\xAB"
|
|
300
|
-
}),
|
|
301
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
302
|
-
get each () {
|
|
303
|
-
return visiblePageNumbers();
|
|
304
|
-
},
|
|
305
|
-
children: (pageNum)=>{
|
|
306
|
-
const isActive = ()=>pageNum === currentPage();
|
|
307
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__button_index_js_557db1f7__["default"], {
|
|
308
|
-
class: "join-item",
|
|
309
|
-
onClick: ()=>goToPage(pageNum),
|
|
310
|
-
get active () {
|
|
311
|
-
return isActive();
|
|
312
|
-
},
|
|
313
|
-
size: "sm",
|
|
314
|
-
children: pageNum + 1
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
}),
|
|
318
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__button_index_js_557db1f7__["default"], {
|
|
319
|
-
class: "join-item",
|
|
320
|
-
onClick: nextPage,
|
|
321
|
-
get disabled () {
|
|
322
|
-
return currentPage() === totalPages() - 1;
|
|
323
|
-
},
|
|
324
|
-
size: "sm",
|
|
325
|
-
children: "\xBB"
|
|
326
|
-
})
|
|
327
|
-
];
|
|
328
|
-
}
|
|
329
|
-
}), _el$4);
|
|
330
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>currentPage() + 1, _el$7);
|
|
331
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, totalPages, null);
|
|
332
|
-
return _el$3;
|
|
333
|
-
}
|
|
334
|
-
}), null);
|
|
335
|
-
(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)));
|
|
336
|
-
return _el$;
|
|
337
|
-
})();
|
|
338
|
-
};
|
|
339
|
-
const streaming_table_StreamingTable = StreamingTable;
|
|
340
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
341
|
-
"click"
|
|
342
|
-
]);
|
|
343
|
-
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,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
|
-
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 };
|
|
File without changes
|