@mintplayer/react-bootstrap 19.31.0 → 19.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.mjs +90 -65
- package/accordion/src/generated/BsAccordion.generated.d.ts +17 -0
- package/accordion/src/generated/BsAccordionTab.generated.d.ts +16 -0
- package/accordion/src/generated/accordion-tab.view.generated.d.ts +16 -0
- package/accordion/src/generated/accordion.view.generated.d.ts +14 -0
- package/accordion/src/generated/index.d.ts +2 -0
- package/accordion/src/index.d.ts +1 -2
- package/alert/index.mjs +54 -0
- package/alert/src/generated/BsAlert.generated.d.ts +17 -0
- package/alert/src/generated/alert.view.generated.d.ts +14 -0
- package/alert/src/generated/index.d.ts +1 -0
- package/alert/src/index.d.ts +1 -0
- package/badge/index.mjs +48 -0
- package/badge/src/generated/BsBadge.generated.d.ts +10 -0
- package/badge/src/generated/badge.view.generated.d.ts +15 -0
- package/badge/src/generated/index.d.ts +1 -0
- package/badge/src/index.d.ts +1 -0
- package/breadcrumb/index.mjs +81 -0
- package/breadcrumb/src/generated/BsBreadcrumb.generated.d.ts +8 -0
- package/breadcrumb/src/generated/BsBreadcrumbItem.generated.d.ts +8 -0
- package/breadcrumb/src/generated/breadcrumb-item.view.generated.d.ts +14 -0
- package/breadcrumb/src/generated/breadcrumb.view.generated.d.ts +14 -0
- package/breadcrumb/src/generated/index.d.ts +2 -0
- package/breadcrumb/src/index.d.ts +1 -0
- package/button-group/index.mjs +44 -0
- package/button-group/src/generated/BsButtonGroup.generated.d.ts +10 -0
- package/button-group/src/generated/button-group.view.generated.d.ts +14 -0
- package/button-group/src/generated/index.d.ts +1 -0
- package/button-group/src/index.d.ts +1 -0
- package/calendar/index.mjs +5 -4
- package/calendar/src/generated/BsCalendar.generated.d.ts +5 -5
- package/card/index.mjs +237 -106
- package/card/src/generated/BsCard.generated.d.ts +9 -0
- package/card/src/generated/BsCardBody.generated.d.ts +6 -0
- package/card/src/generated/BsCardFooter.generated.d.ts +8 -0
- package/card/src/generated/BsCardGroup.generated.d.ts +6 -0
- package/card/src/generated/BsCardHeader.generated.d.ts +8 -0
- package/card/src/generated/BsCardImg.generated.d.ts +10 -0
- package/card/src/generated/BsCardLink.generated.d.ts +8 -0
- package/card/src/generated/BsCardSubtitle.generated.d.ts +6 -0
- package/card/src/generated/BsCardText.generated.d.ts +6 -0
- package/card/src/generated/BsCardTitle.generated.d.ts +8 -0
- package/card/src/generated/card-img.view.generated.d.ts +14 -0
- package/card/src/generated/card-link.view.generated.d.ts +14 -0
- package/card/src/generated/card-part.view.generated.d.ts +14 -0
- package/card/src/generated/index.d.ts +10 -0
- package/card/src/index.d.ts +3 -10
- package/carousel/index.mjs +32 -29
- package/carousel/src/generated/BsCarousel.generated.d.ts +4 -4
- package/charts/hierarchy/index.mjs +48 -45
- package/charts/hierarchy/src/generated/BsHierarchyChart.generated.d.ts +4 -4
- package/charts/sparkline/index.mjs +58 -31
- package/charts/sparkline/src/generated/BsSparkline.generated.d.ts +20 -0
- package/charts/sparkline/src/generated/index.d.ts +1 -0
- package/charts/sparkline/src/generated/sparkline.view.generated.d.ts +14 -0
- package/charts/sparkline/src/index.d.ts +2 -1
- package/charts/trend/index.mjs +31 -32
- package/checkbox/index.mjs +149 -1
- package/checkbox/src/generated/BsCheckbox.generated.d.ts +28 -0
- package/checkbox/src/generated/BsCheckboxGroup.generated.d.ts +16 -0
- package/checkbox/src/generated/BsToggleButton.generated.d.ts +21 -0
- package/checkbox/src/generated/checkbox-group.view.generated.d.ts +14 -0
- package/checkbox/src/generated/checkbox.view.generated.d.ts +14 -0
- package/checkbox/src/generated/index.d.ts +3 -0
- package/checkbox/src/index.d.ts +1 -2
- package/chunks/{BsDatatable.generated-DqNW60JA.mjs → BsDatatable.generated-DHH6bF4T.mjs} +111 -95
- package/chunks/{BsDatetimePicker.generated-CxaiRt79.mjs → BsDatetimePicker.generated-DIuQcY1l.mjs} +53 -50
- package/chunks/{BsSplitterPanel.generated-C7r4Nedd.mjs → BsSplitterPanel.generated-C9jE6reT.mjs} +1 -2
- package/chunks/{BsTreeview.generated-djXBc8bl.mjs → BsTreeview.generated-GSdEEc7k.mjs} +18 -15
- package/close/index.mjs +46 -0
- package/close/src/generated/BsClose.generated.d.ts +9 -0
- package/close/src/generated/close.view.generated.d.ts +14 -0
- package/close/src/generated/index.d.ts +1 -0
- package/close/src/index.d.ts +1 -0
- package/code-snippet/index.mjs +1 -2
- package/color-picker/index.mjs +121 -0
- package/color-picker/src/generated/BsColorPicker.generated.d.ts +24 -0
- package/color-picker/src/generated/color-picker.view.generated.d.ts +14 -0
- package/color-picker/src/generated/index.d.ts +1 -0
- package/color-picker/src/index.d.ts +2 -0
- package/context-menu/index.mjs +65 -0
- package/context-menu/src/generated/BsContextMenuPanel.generated.d.ts +10 -0
- package/context-menu/src/generated/context-menu-panel.view.generated.d.ts +14 -0
- package/context-menu/src/generated/context-menu.directive.generated.d.ts +17 -0
- package/context-menu/src/generated/index.d.ts +2 -0
- package/context-menu/src/index.d.ts +1 -0
- package/datatable/index.mjs +1 -1
- package/datatable/src/generated/BsDatatable.generated.d.ts +14 -14
- package/datepicker/index.mjs +38 -35
- package/datepicker/src/generated/BsDatepicker.generated.d.ts +6 -6
- package/datetime-picker/index.mjs +1 -1
- package/datetime-picker/src/generated/BsDatetimePicker.generated.d.ts +4 -4
- package/dock/index.mjs +50 -47
- package/dock/src/generated/BsDockManager.generated.d.ts +4 -4
- package/dropdown/index.mjs +234 -0
- package/dropdown/src/generated/BsDropdownDivider.generated.d.ts +6 -0
- package/dropdown/src/generated/BsDropdownHeader.generated.d.ts +6 -0
- package/dropdown/src/generated/BsDropdownItem.generated.d.ts +11 -0
- package/dropdown/src/generated/BsDropdownMenu.generated.d.ts +22 -0
- package/dropdown/src/generated/BsDropdownPanel.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown-divider.view.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown-header.view.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown-item.view.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown-menu.view.generated.d.ts +19 -0
- package/dropdown/src/generated/dropdown-panel.view.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown.directive.generated.d.ts +19 -0
- package/dropdown/src/generated/index.d.ts +6 -0
- package/dropdown/src/index.d.ts +1 -0
- package/file-manager/index.mjs +28 -19
- package/file-manager/src/generated/BsFileManager.generated.d.ts +12 -12
- package/file-upload/index.mjs +125 -0
- package/file-upload/src/generated/BsFileUpload.generated.d.ts +32 -0
- package/file-upload/src/generated/file-upload.view.generated.d.ts +18 -0
- package/file-upload/src/generated/index.d.ts +1 -0
- package/file-upload/src/index.d.ts +3 -0
- package/floating-labels/index.mjs +40 -0
- package/floating-labels/src/generated/BsFloatingLabel.generated.d.ts +6 -0
- package/floating-labels/src/generated/floating-label.view.generated.d.ts +14 -0
- package/floating-labels/src/generated/index.d.ts +1 -0
- package/floating-labels/src/index.d.ts +1 -0
- package/form/index.mjs +84 -0
- package/form/src/generated/BsForm.generated.d.ts +14 -0
- package/form/src/generated/col-form-label.directive.generated.d.ts +6 -0
- package/form/src/generated/form-control.directive.generated.d.ts +6 -0
- package/form/src/generated/form.view.generated.d.ts +14 -0
- package/form/src/generated/index.d.ts +3 -0
- package/form/src/index.d.ts +1 -0
- package/grid/index.mjs +100 -0
- package/grid/src/generated/BsGrid.generated.d.ts +8 -0
- package/grid/src/generated/col.directive.generated.d.ts +6 -0
- package/grid/src/generated/column.directive.generated.d.ts +21 -0
- package/grid/src/generated/grid.view.generated.d.ts +14 -0
- package/grid/src/generated/index.d.ts +4 -0
- package/grid/src/generated/row.directive.generated.d.ts +6 -0
- package/grid/src/index.d.ts +1 -0
- package/input-group/index.mjs +40 -18
- package/input-group/src/generated/BsInputGroup.generated.d.ts +9 -0
- package/input-group/src/generated/index.d.ts +1 -0
- package/input-group/src/generated/input-group.view.generated.d.ts +14 -0
- package/input-group/src/index.d.ts +1 -1
- package/list-group/index.mjs +77 -0
- package/list-group/src/generated/BsListGroup.generated.d.ts +8 -0
- package/list-group/src/generated/BsListGroupItem.generated.d.ts +10 -0
- package/list-group/src/generated/index.d.ts +2 -0
- package/list-group/src/generated/list-group-item.view.generated.d.ts +14 -0
- package/list-group/src/generated/list-group.view.generated.d.ts +14 -0
- package/list-group/src/index.d.ts +1 -0
- package/machine/index.mjs +173 -67
- package/machine/src/body-portal.d.ts +17 -0
- package/machine/src/content.d.ts +11 -0
- package/machine/src/core.d.ts +3 -0
- package/machine/src/index.d.ts +2 -0
- package/machine/src/mark-links.d.ts +4 -4
- package/machine/src/merge-props.d.ts +18 -0
- package/machine/src/react-props.d.ts +4 -2
- package/marquee/index.mjs +55 -0
- package/marquee/src/generated/BsMarquee.generated.d.ts +10 -0
- package/marquee/src/generated/index.d.ts +1 -0
- package/marquee/src/generated/marquee.view.generated.d.ts +14 -0
- package/marquee/src/index.d.ts +1 -0
- package/modal/index.mjs +100 -0
- package/modal/src/generated/BsModal.generated.d.ts +23 -0
- package/modal/src/generated/index.d.ts +1 -0
- package/modal/src/generated/modal.view.generated.d.ts +17 -0
- package/modal/src/index.d.ts +2 -0
- package/multi-range/index.mjs +13 -10
- package/multi-range/src/generated/BsMultiRange.generated.d.ts +7 -7
- package/nav/index.mjs +11 -12
- package/navbar/index.mjs +86 -132
- package/navbar/src/generated/BsNavbar.generated.d.ts +3 -3
- package/navbar/src/generated/BsNavbarItem.generated.d.ts +1 -1
- package/navbar/src/generated/BsNavbarNav.generated.d.ts +4 -1
- package/navbar/src/generated/index.d.ts +0 -1
- package/navbar/src/index.d.ts +1 -1
- package/navbar-toggler/index.mjs +66 -0
- package/navbar-toggler/src/generated/BsNavbarToggler.generated.d.ts +16 -0
- package/navbar-toggler/src/generated/index.d.ts +1 -0
- package/navbar-toggler/src/generated/navbar-toggler.view.generated.d.ts +14 -0
- package/navbar-toggler/src/index.d.ts +1 -0
- package/offcanvas/index.mjs +83 -0
- package/offcanvas/src/generated/BsOffcanvas.generated.d.ts +24 -0
- package/offcanvas/src/generated/index.d.ts +1 -0
- package/offcanvas/src/generated/offcanvas.view.generated.d.ts +16 -0
- package/offcanvas/src/index.d.ts +2 -0
- package/otp-input/index.mjs +18 -15
- package/otp-input/src/generated/BsOtpInput.generated.d.ts +4 -4
- package/package.json +123 -11
- package/pagination/index.mjs +70 -48
- package/pagination/src/generated/BsPagination.generated.d.ts +22 -0
- package/pagination/src/generated/index.d.ts +1 -0
- package/pagination/src/generated/pagination.view.generated.d.ts +14 -0
- package/pagination/src/index.d.ts +2 -1
- package/parallax/index.mjs +46 -0
- package/parallax/src/generated/BsParallax.generated.d.ts +9 -0
- package/parallax/src/generated/index.d.ts +1 -0
- package/parallax/src/generated/parallax.view.generated.d.ts +14 -0
- package/parallax/src/index.d.ts +1 -0
- package/phone-input/index.mjs +28 -25
- package/phone-input/src/generated/BsPhoneInput.generated.d.ts +6 -6
- package/placeholder/index.mjs +47 -0
- package/placeholder/src/generated/BsPlaceholder.generated.d.ts +12 -0
- package/placeholder/src/generated/index.d.ts +1 -0
- package/placeholder/src/generated/placeholder.view.generated.d.ts +14 -0
- package/placeholder/src/index.d.ts +1 -0
- package/playlist-toggler/index.mjs +65 -0
- package/playlist-toggler/src/generated/BsPlaylistToggler.generated.d.ts +16 -0
- package/playlist-toggler/src/generated/index.d.ts +1 -0
- package/playlist-toggler/src/generated/playlist-toggler.view.generated.d.ts +14 -0
- package/playlist-toggler/src/index.d.ts +1 -0
- package/popover/index.mjs +85 -0
- package/popover/src/generated/BsPopoverPanel.generated.d.ts +14 -0
- package/popover/src/generated/index.d.ts +2 -0
- package/popover/src/generated/popover-panel.view.generated.d.ts +14 -0
- package/popover/src/generated/popover.directive.generated.d.ts +17 -0
- package/popover/src/index.d.ts +1 -0
- package/priority-nav/index.mjs +142 -0
- package/priority-nav/src/generated/BsPriorityNav.generated.d.ts +20 -0
- package/priority-nav/src/generated/index.d.ts +1 -0
- package/priority-nav/src/generated/priority-nav.view.generated.d.ts +21 -0
- package/priority-nav/src/index.d.ts +2 -0
- package/progress-bar/index.mjs +94 -0
- package/progress-bar/src/generated/BsProgress.generated.d.ts +13 -0
- package/progress-bar/src/generated/BsProgressBar.generated.d.ts +15 -0
- package/progress-bar/src/generated/index.d.ts +2 -0
- package/progress-bar/src/generated/progress-bar.view.generated.d.ts +14 -0
- package/progress-bar/src/generated/progress.view.generated.d.ts +14 -0
- package/progress-bar/src/index.d.ts +1 -0
- package/query-builder/index.mjs +121 -113
- package/query-builder/src/generated/BsQueryBuilder.generated.d.ts +10 -10
- package/radio/index.mjs +119 -1
- package/radio/src/generated/BsRadio.generated.d.ts +26 -0
- package/radio/src/generated/BsRadioGroup.generated.d.ts +17 -0
- package/radio/src/generated/index.d.ts +2 -0
- package/radio/src/generated/radio-group.view.generated.d.ts +14 -0
- package/radio/src/generated/radio.view.generated.d.ts +14 -0
- package/radio/src/index.d.ts +1 -1
- package/range/index.mjs +58 -0
- package/range/src/generated/BsRange.generated.d.ts +15 -0
- package/range/src/generated/index.d.ts +1 -0
- package/range/src/generated/range.view.generated.d.ts +14 -0
- package/range/src/index.d.ts +1 -0
- package/rating/index.mjs +67 -0
- package/rating/src/generated/BsRating.generated.d.ts +20 -0
- package/rating/src/generated/index.d.ts +1 -0
- package/rating/src/generated/rating.view.generated.d.ts +14 -0
- package/rating/src/index.d.ts +1 -0
- package/resizable/index.mjs +56 -0
- package/resizable/src/generated/BsResizable.generated.d.ts +19 -0
- package/resizable/src/generated/index.d.ts +1 -0
- package/resizable/src/generated/resizable.view.generated.d.ts +14 -0
- package/resizable/src/index.d.ts +2 -0
- package/ribbon/index.mjs +170 -150
- package/ribbon/src/generated/BsRibbon.generated.d.ts +6 -6
- package/ribbon/src/generated/BsRibbonCheckBox.generated.d.ts +3 -3
- package/ribbon/src/generated/BsRibbonColorPicker.generated.d.ts +3 -3
- package/ribbon/src/generated/BsRibbonComboBox.generated.d.ts +3 -3
- package/ribbon/src/generated/BsRibbonGroupButton.generated.d.ts +3 -3
- package/ribbon/src/generated/BsRibbonMenuItem.generated.d.ts +4 -4
- package/ribbon/src/generated/BsRibbonToggleButton.generated.d.ts +3 -3
- package/scheduler/index.mjs +246 -226
- package/scheduler/src/generated/BsScheduler.generated.d.ts +9 -9
- package/scrollspy/index.mjs +63 -0
- package/scrollspy/src/generated/BsScrollspy.generated.d.ts +17 -0
- package/scrollspy/src/generated/index.d.ts +1 -0
- package/scrollspy/src/generated/scrollspy.view.generated.d.ts +14 -0
- package/scrollspy/src/index.d.ts +1 -0
- package/select/index.mjs +30 -29
- package/select/src/generated/BsSelect.generated.d.ts +6 -4
- package/shell/index.mjs +78 -70
- package/shell/src/generated/BsShell.generated.d.ts +25 -0
- package/shell/src/generated/index.d.ts +1 -0
- package/shell/src/generated/shell.view.generated.d.ts +17 -0
- package/shell/src/index.d.ts +2 -3
- package/signature-pad/index.mjs +12 -11
- package/signature-pad/src/generated/BsSignaturePad.generated.d.ts +3 -3
- package/spinner/index.mjs +1 -2
- package/splitter/index.mjs +1 -1
- package/sticky-footer/index.mjs +60 -0
- package/sticky-footer/src/generated/BsStickyFooter.generated.d.ts +6 -0
- package/sticky-footer/src/generated/index.d.ts +2 -0
- package/sticky-footer/src/generated/sticky-footer-parent.directive.generated.d.ts +6 -0
- package/sticky-footer/src/generated/sticky-footer.view.generated.d.ts +14 -0
- package/sticky-footer/src/index.d.ts +1 -0
- package/tab-control/index.mjs +108 -86
- package/tab-control/src/generated/BsTabControl.generated.d.ts +20 -0
- package/tab-control/src/generated/BsTabPage.generated.d.ts +15 -0
- package/tab-control/src/generated/index.d.ts +2 -0
- package/tab-control/src/generated/tab-control.view.generated.d.ts +16 -0
- package/tab-control/src/index.d.ts +2 -1
- package/table/index.mjs +49 -0
- package/table/src/generated/BsTable.generated.d.ts +14 -0
- package/table/src/generated/index.d.ts +1 -0
- package/table/src/generated/table.view.generated.d.ts +14 -0
- package/table/src/index.d.ts +1 -0
- package/theming/index.mjs +1 -2
- package/tile-manager/index.mjs +103 -187
- package/tile-manager/src/generated/BsTileManager.generated.d.ts +41 -0
- package/tile-manager/src/generated/index.d.ts +1 -0
- package/tile-manager/src/generated/tile-manager.view.generated.d.ts +21 -0
- package/tile-manager/src/index.d.ts +2 -3
- package/timeline/index.mjs +29 -26
- package/timeline/src/generated/BsTimeline.generated.d.ts +3 -3
- package/timepicker/index.mjs +35 -30
- package/timepicker/src/generated/BsTimeList.generated.d.ts +3 -3
- package/timepicker/src/generated/BsTimepicker.generated.d.ts +4 -4
- package/toast/index.mjs +162 -0
- package/toast/src/generated/BsToast.generated.d.ts +14 -0
- package/toast/src/generated/BsToastBody.generated.d.ts +6 -0
- package/toast/src/generated/BsToastHeader.generated.d.ts +9 -0
- package/toast/src/generated/BsToaster.generated.d.ts +15 -0
- package/toast/src/generated/index.d.ts +4 -0
- package/toast/src/generated/toast-body.view.generated.d.ts +14 -0
- package/toast/src/generated/toast-header.view.generated.d.ts +15 -0
- package/toast/src/generated/toast.view.generated.d.ts +14 -0
- package/toast/src/generated/toaster.view.generated.d.ts +18 -0
- package/toast/src/index.d.ts +1 -0
- package/tooltip/index.mjs +72 -0
- package/tooltip/src/generated/BsTooltipPanel.generated.d.ts +11 -0
- package/tooltip/src/generated/index.d.ts +2 -0
- package/tooltip/src/generated/tooltip-panel.view.generated.d.ts +14 -0
- package/tooltip/src/generated/tooltip.directive.generated.d.ts +15 -0
- package/tooltip/src/index.d.ts +1 -0
- package/tree-select/index.mjs +31 -22
- package/tree-select/src/generated/BsTreeSelect.generated.d.ts +4 -4
- package/treeview/index.mjs +1 -1
- package/treeview/src/generated/BsTreeview.generated.d.ts +6 -6
- package/typeahead/index.mjs +93 -113
- package/typeahead/src/generated/BsTypeahead.generated.d.ts +40 -0
- package/typeahead/src/generated/index.d.ts +1 -0
- package/typeahead/src/generated/typeahead.view.generated.d.ts +19 -0
- package/typeahead/src/index.d.ts +2 -3
- package/accordion/src/BsAccordion.d.ts +0 -43
- package/card/src/BsCard.d.ts +0 -17
- package/card/src/BsCardBody.d.ts +0 -7
- package/card/src/BsCardFooter.d.ts +0 -14
- package/card/src/BsCardGroup.d.ts +0 -9
- package/card/src/BsCardHeader.d.ts +0 -16
- package/card/src/BsCardImg.d.ts +0 -19
- package/card/src/BsCardLink.d.ts +0 -13
- package/card/src/BsCardSubtitle.d.ts +0 -8
- package/card/src/BsCardText.d.ts +0 -7
- package/card/src/BsCardTitle.d.ts +0 -7
- package/charts/sparkline/src/BsSparkline.d.ts +0 -21
- package/checkbox/src/BsCheckbox.d.ts +0 -31
- package/chunks/BsCheckbox-BZkPJ13E.mjs +0 -66
- package/chunks/BsRadio-Bw_MhAOq.mjs +0 -57
- package/chunks/react-props-C2O2_2V2.mjs +0 -33
- package/chunks/useMachine-CpK1VckL.mjs +0 -12
- package/dropdown-menu/index.mjs +0 -72
- package/dropdown-menu/src/BsDropdownDivider.d.ts +0 -7
- package/dropdown-menu/src/BsDropdownHeader.d.ts +0 -7
- package/dropdown-menu/src/BsDropdownItem.d.ts +0 -18
- package/dropdown-menu/src/BsDropdownMenu.d.ts +0 -25
- package/dropdown-menu/src/index.d.ts +0 -7
- package/input-group/src/BsInputGroup.d.ts +0 -17
- package/navbar/src/generated/BsNavbarDropdown.generated.d.ts +0 -11
- package/navbar/src/generated/navbar-dropdown.view.generated.d.ts +0 -17
- package/pagination/src/BsPagination.d.ts +0 -25
- package/radio/src/BsRadio.d.ts +0 -39
- package/radio-group/index.mjs +0 -39
- package/radio-group/src/BsRadioGroup.d.ts +0 -21
- package/radio-group/src/index.d.ts +0 -1
- package/shell/src/BsShell.d.ts +0 -45
- package/tab-control/src/BsTabControl.d.ts +0 -43
- package/tile-manager/src/BsTileManager.d.ts +0 -78
- package/toggle-button/index.mjs +0 -13
- package/toggle-button/src/BsToggleButton.d.ts +0 -8
- package/toggle-button/src/index.d.ts +0 -1
- package/typeahead/src/BsTypeahead.d.ts +0 -48
package/carousel/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCore as n } from "../machine/index.mjs";
|
|
1
|
+
import { reactFormProps as e, reactProps as t, useCore as n } from "../machine/index.mjs";
|
|
3
2
|
import * as r from "react";
|
|
4
3
|
import { Children as i, Fragment as a, forwardRef as o, isValidElement as s, useImperativeHandle as c, useRef as l } from "react";
|
|
5
4
|
import { installLightStyles as u } from "@mintplayer/ui-core/scoped-styles";
|
|
@@ -10,7 +9,7 @@ import { bootstrapCarousel as _ } from "@mintplayer/ui-core/bootstrap/carousel";
|
|
|
10
9
|
function v({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: c }) {
|
|
11
10
|
return /* @__PURE__ */ f(d, { children: /* @__PURE__ */ p("div", {
|
|
12
11
|
"data-mps": "carousel",
|
|
13
|
-
...
|
|
12
|
+
...t(n.root),
|
|
14
13
|
ref: c,
|
|
15
14
|
...s,
|
|
16
15
|
role: n.root.role ?? s?.role,
|
|
@@ -18,59 +17,59 @@ function v({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRe
|
|
|
18
17
|
children: [
|
|
19
18
|
n.playPause ? /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
|
|
20
19
|
"data-mps": "carousel",
|
|
21
|
-
...
|
|
20
|
+
...t(n.playPause.wrap),
|
|
22
21
|
children: /* @__PURE__ */ f("button", {
|
|
23
22
|
"data-mps": "carousel",
|
|
24
|
-
...
|
|
23
|
+
...t(n.playPause.button),
|
|
25
24
|
children: /* @__PURE__ */ f("span", {
|
|
26
25
|
"data-mps": "carousel",
|
|
27
|
-
...
|
|
26
|
+
...t(n.playPause.icon)
|
|
28
27
|
})
|
|
29
28
|
})
|
|
30
29
|
}) }) : null,
|
|
31
|
-
n.radios.map((
|
|
30
|
+
n.radios.map((t, n) => /* @__PURE__ */ f(r.Fragment, { children: /* @__PURE__ */ f("input", {
|
|
32
31
|
"data-mps": "carousel",
|
|
33
|
-
...t
|
|
34
|
-
}) },
|
|
32
|
+
...e(t.bag)
|
|
33
|
+
}) }, t.key)),
|
|
35
34
|
/* @__PURE__ */ f("div", {
|
|
36
35
|
"data-mps": "carousel",
|
|
37
|
-
...
|
|
36
|
+
...t(n.inner),
|
|
38
37
|
children: /* @__PURE__ */ f("div", {
|
|
39
38
|
"data-mps": "carousel",
|
|
40
|
-
...
|
|
39
|
+
...t(n.track),
|
|
41
40
|
children: a ?? null
|
|
42
41
|
})
|
|
43
42
|
}),
|
|
44
43
|
n.indicators ? /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
|
|
45
44
|
"data-mps": "carousel",
|
|
46
|
-
...
|
|
47
|
-
children: n.indicators.items.map((
|
|
45
|
+
...t(n.indicators.bag),
|
|
46
|
+
children: n.indicators.items.map((e, n) => /* @__PURE__ */ f(r.Fragment, { children: /* @__PURE__ */ f("label", {
|
|
48
47
|
"data-mps": "carousel",
|
|
49
|
-
...e
|
|
50
|
-
}) },
|
|
48
|
+
...t(e.bag)
|
|
49
|
+
}) }, e.key))
|
|
51
50
|
}) }) : null,
|
|
52
51
|
/* @__PURE__ */ f("div", {
|
|
53
52
|
"data-mps": "carousel",
|
|
54
|
-
...
|
|
55
|
-
children: n.controls.pairs.map((
|
|
53
|
+
...t(n.controls.bag),
|
|
54
|
+
children: n.controls.pairs.map((e, i) => /* @__PURE__ */ f(r.Fragment, { children: /* @__PURE__ */ p("span", {
|
|
56
55
|
"data-mps": "carousel",
|
|
57
|
-
...e
|
|
56
|
+
...t(e.pair),
|
|
58
57
|
children: [/* @__PURE__ */ f("label", {
|
|
59
58
|
"data-mps": "carousel",
|
|
60
|
-
...e
|
|
59
|
+
...t(e.prev),
|
|
61
60
|
children: /* @__PURE__ */ f("span", {
|
|
62
61
|
"data-mps": "carousel",
|
|
63
|
-
...
|
|
62
|
+
...t(n.controls.icon.prev)
|
|
64
63
|
})
|
|
65
64
|
}), /* @__PURE__ */ f("label", {
|
|
66
65
|
"data-mps": "carousel",
|
|
67
|
-
...e
|
|
66
|
+
...t(e.next),
|
|
68
67
|
children: /* @__PURE__ */ f("span", {
|
|
69
68
|
"data-mps": "carousel",
|
|
70
|
-
...
|
|
69
|
+
...t(n.controls.icon.next)
|
|
71
70
|
})
|
|
72
71
|
})]
|
|
73
|
-
}) },
|
|
72
|
+
}) }, e.key))
|
|
74
73
|
})
|
|
75
74
|
]
|
|
76
75
|
}) });
|
|
@@ -88,7 +87,7 @@ function b(e, { children: t }) {
|
|
|
88
87
|
}
|
|
89
88
|
//#endregion
|
|
90
89
|
//#region libs/mintplayer-react-bootstrap/carousel/src/generated/BsCarousel.generated.tsx
|
|
91
|
-
var x = o(function({ animation: e = "slide", orientation: t = "horizontal", indicators: r = !1, interval: i = null, wrap: a = !0, keyboardEvents: o = !0, paused: s = !1, inputLabel: d = null, labels: p = null, onSlideChange: h,
|
|
90
|
+
var x = o(function({ animation: e = "slide", orientation: t = "horizontal", indicators: r = !1, interval: i = null, wrap: a = !0, keyboardEvents: o = !0, paused: s = !1, inputLabel: d = null, labels: p = null, onSlideChange: h, onSlideStart: y, onSlideEnd: x, onPausedChange: S, className: C, children: w, ...T }, E) {
|
|
92
91
|
u(_.key, _.css, { order: _.order }), u("carousel", g);
|
|
93
92
|
let D = l(null);
|
|
94
93
|
c(E, () => D.current);
|
|
@@ -107,7 +106,11 @@ var x = o(function({ animation: e = "slide", orientation: t = "horizontal", indi
|
|
|
107
106
|
label: T["aria-label"],
|
|
108
107
|
rootRef: D,
|
|
109
108
|
emit: (e, t) => {
|
|
110
|
-
e === "slideChange" && h?.(t), e === "
|
|
109
|
+
e === "slideChange" && h?.(t), e === "slideStart" && y?.(t), e === "slideEnd" && x?.(t);
|
|
110
|
+
},
|
|
111
|
+
models: ["paused"],
|
|
112
|
+
writeModel: (e, t) => {
|
|
113
|
+
e === "paused" && S?.(t);
|
|
111
114
|
}
|
|
112
115
|
});
|
|
113
116
|
return /* @__PURE__ */ f(v, {
|
|
@@ -120,14 +123,14 @@ var x = o(function({ animation: e = "slide", orientation: t = "horizontal", indi
|
|
|
120
123
|
});
|
|
121
124
|
//#endregion
|
|
122
125
|
//#region libs/mintplayer-react-bootstrap/carousel/src/generated/carousel-item.view.generated.tsx
|
|
123
|
-
function S({ view:
|
|
126
|
+
function S({ view: e, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
|
|
124
127
|
return /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
|
|
125
128
|
"data-mps": "carousel",
|
|
126
|
-
...e
|
|
129
|
+
...t(e.root),
|
|
127
130
|
ref: o,
|
|
128
131
|
...a,
|
|
129
|
-
role:
|
|
130
|
-
className: [
|
|
132
|
+
role: e.root.role ?? a?.role,
|
|
133
|
+
className: [e.root.class, i].filter(Boolean).join(" ") || void 0,
|
|
131
134
|
children: r ?? null
|
|
132
135
|
}) });
|
|
133
136
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CarouselInputs, CarouselSlideChangeEventDetail } from '@mintplayer/ui-core/carousel';
|
|
1
|
+
import { carouselCore, CarouselInputs, CarouselSlideChangeEventDetail } from '@mintplayer/ui-core/carousel';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface BsCarouselProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'animation' | 'orientation' | 'indicators' | 'interval' | 'wrap' | 'keyboardEvents' | 'paused' | 'inputLabel' | 'labels' | 'onSlideChange' | '
|
|
3
|
+
export interface BsCarouselProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'animation' | 'orientation' | 'indicators' | 'interval' | 'wrap' | 'keyboardEvents' | 'paused' | 'inputLabel' | 'labels' | 'onSlideChange' | 'onSlideStart' | 'onSlideEnd' | 'onPausedChange'> {
|
|
4
4
|
animation?: CarouselInputs['animation'];
|
|
5
5
|
orientation?: CarouselInputs['orientation'];
|
|
6
6
|
indicators?: CarouselInputs['indicators'];
|
|
@@ -12,12 +12,12 @@ export interface BsCarouselProps extends Omit<React.HTMLAttributes<HTMLElementTa
|
|
|
12
12
|
labels?: CarouselInputs['labels'];
|
|
13
13
|
/** The committed slide changed. */
|
|
14
14
|
onSlideChange?: (detail: CarouselSlideChangeEventDetail) => void;
|
|
15
|
-
/** Autoplay was paused or resumed from the play/pause button or a method. */
|
|
16
|
-
onPausedChange?: (detail: boolean) => void;
|
|
17
15
|
/** A slide transition started. */
|
|
18
16
|
onSlideStart?: (detail: void) => void;
|
|
19
17
|
/** A slide transition ended. */
|
|
20
18
|
onSlideEnd?: (detail: void) => void;
|
|
19
|
+
/** `paused` changed from inside (two-way: pass the value back as `paused`). */
|
|
20
|
+
onPausedChange?: (value: ReturnType<NonNullable<(typeof carouselCore)['state']>>['paused']) => void;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCore as n } from "../../machine/index.mjs";
|
|
1
|
+
import { reactProps as e, reactStyle as t, useCore as n } from "../../machine/index.mjs";
|
|
3
2
|
import * as r from "react";
|
|
4
3
|
import { forwardRef as i, useImperativeHandle as a, useRef as o } from "react";
|
|
5
4
|
import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
|
|
@@ -9,98 +8,98 @@ import { hierarchyChartCore as d, hierarchyChartScopedStyles as f } from "@mintp
|
|
|
9
8
|
function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
|
|
10
9
|
return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
|
|
11
10
|
"data-mps": "hierarchy-chart",
|
|
12
|
-
...
|
|
11
|
+
...e(n.root),
|
|
13
12
|
ref: d,
|
|
14
13
|
...s,
|
|
15
14
|
role: n.root.role ?? s?.role,
|
|
16
15
|
className: [n.root.class, o].filter(Boolean).join(" ") || void 0,
|
|
17
16
|
children: [n.breadcrumb ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("nav", {
|
|
18
17
|
"data-mps": "hierarchy-chart",
|
|
19
|
-
...
|
|
20
|
-
children: n.breadcrumb.items.map((
|
|
21
|
-
|
|
18
|
+
...e(n.breadcrumb.nav),
|
|
19
|
+
children: n.breadcrumb.items.map((t, n) => /* @__PURE__ */ u(r.Fragment, { children: [
|
|
20
|
+
t.current ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
|
|
22
21
|
"data-mps": "hierarchy-chart",
|
|
23
|
-
...t
|
|
24
|
-
children:
|
|
22
|
+
...e(t.current),
|
|
23
|
+
children: t.text
|
|
25
24
|
}) }) : null,
|
|
26
|
-
|
|
25
|
+
t.button ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("button", {
|
|
27
26
|
"data-mps": "hierarchy-chart",
|
|
28
|
-
...t
|
|
29
|
-
children:
|
|
27
|
+
...e(t.button),
|
|
28
|
+
children: t.text
|
|
30
29
|
}) }) : null,
|
|
31
|
-
|
|
30
|
+
t.sep ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
|
|
32
31
|
"data-mps": "hierarchy-chart",
|
|
33
|
-
...t
|
|
32
|
+
...e(t.sep),
|
|
34
33
|
children: "/"
|
|
35
34
|
}) }) : null
|
|
36
|
-
] },
|
|
35
|
+
] }, t.key))
|
|
37
36
|
}) }) : null, /* @__PURE__ */ u("div", {
|
|
38
37
|
"data-mps": "hierarchy-chart",
|
|
39
|
-
...
|
|
40
|
-
style:
|
|
38
|
+
...e(n.chart),
|
|
39
|
+
style: t(n.chartStyle),
|
|
41
40
|
children: [
|
|
42
41
|
n.sunburst ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("svg", {
|
|
43
42
|
"data-mps": "hierarchy-chart",
|
|
44
|
-
...
|
|
43
|
+
...e(n.sunburst.svg),
|
|
45
44
|
children: /* @__PURE__ */ u("g", {
|
|
46
45
|
"data-mps": "hierarchy-chart",
|
|
47
|
-
...
|
|
48
|
-
children: [n.sunburst.arcs.map((
|
|
46
|
+
...e(n.sunburst.g),
|
|
47
|
+
children: [n.sunburst.arcs.map((t, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("path", {
|
|
49
48
|
"data-mps": "hierarchy-chart",
|
|
50
|
-
...t
|
|
51
|
-
}) },
|
|
49
|
+
...e(t.bag)
|
|
50
|
+
}) }, t.key)), n.sunburst.labels.map((t, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("text", {
|
|
52
51
|
"data-mps": "hierarchy-chart",
|
|
53
|
-
...t
|
|
54
|
-
children:
|
|
55
|
-
}) },
|
|
52
|
+
...e(t.bag),
|
|
53
|
+
children: t.text
|
|
54
|
+
}) }, t.key))]
|
|
56
55
|
})
|
|
57
56
|
}) }) : null,
|
|
58
57
|
n.sunburst ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("button", {
|
|
59
58
|
"data-mps": "hierarchy-chart",
|
|
60
|
-
...
|
|
61
|
-
style:
|
|
59
|
+
...e(n.sunburst.center.bag),
|
|
60
|
+
style: t(n.sunburst.center.style),
|
|
62
61
|
children: n.sunburst.center.text
|
|
63
62
|
}) }) : null,
|
|
64
63
|
n.icicle ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
|
|
65
64
|
"data-mps": "hierarchy-chart",
|
|
66
|
-
...
|
|
65
|
+
...e(n.icicle.tree),
|
|
67
66
|
children: [/* @__PURE__ */ l("div", {
|
|
68
67
|
"data-mps": "hierarchy-chart",
|
|
69
|
-
...
|
|
70
|
-
style:
|
|
68
|
+
...e(n.icicle.focus.bag),
|
|
69
|
+
style: t(n.icicle.focus.style),
|
|
71
70
|
children: n.icicle.focus.label === null ? null : /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
|
|
72
71
|
"data-mps": "hierarchy-chart",
|
|
73
|
-
...
|
|
72
|
+
...e(n.cellLabel),
|
|
74
73
|
children: n.icicle.focus.label
|
|
75
74
|
}) })
|
|
76
75
|
}), n.icicle.cells.map((i, a) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("div", {
|
|
77
76
|
"data-mps": "hierarchy-chart",
|
|
78
|
-
...
|
|
79
|
-
style:
|
|
77
|
+
...e(i.bag),
|
|
78
|
+
style: t(i.style),
|
|
80
79
|
children: i.label === null ? null : /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
|
|
81
80
|
"data-mps": "hierarchy-chart",
|
|
82
|
-
...
|
|
81
|
+
...e(n.cellLabel),
|
|
83
82
|
children: i.label
|
|
84
83
|
}) })
|
|
85
84
|
}) }, i.key))]
|
|
86
85
|
}) }) : null,
|
|
87
86
|
n.treemap ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
|
|
88
87
|
"data-mps": "hierarchy-chart",
|
|
89
|
-
...
|
|
88
|
+
...e(n.treemap.wrap),
|
|
90
89
|
children: [/* @__PURE__ */ l("button", {
|
|
91
90
|
"data-mps": "hierarchy-chart",
|
|
92
|
-
...
|
|
91
|
+
...e(n.treemap.header.bag),
|
|
93
92
|
children: n.treemap.header.text
|
|
94
93
|
}), /* @__PURE__ */ l("div", {
|
|
95
94
|
"data-mps": "hierarchy-chart",
|
|
96
|
-
...
|
|
95
|
+
...e(n.treemap.body),
|
|
97
96
|
children: n.treemap.cells.map((i, a) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("div", {
|
|
98
97
|
"data-mps": "hierarchy-chart",
|
|
99
|
-
...
|
|
100
|
-
style:
|
|
98
|
+
...e(i.bag),
|
|
99
|
+
style: t(i.style),
|
|
101
100
|
children: i.label === null ? null : /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
|
|
102
101
|
"data-mps": "hierarchy-chart",
|
|
103
|
-
...
|
|
102
|
+
...e(n.cellLabel),
|
|
104
103
|
children: i.label
|
|
105
104
|
}) })
|
|
106
105
|
}) }, i.key))
|
|
@@ -108,18 +107,18 @@ function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRe
|
|
|
108
107
|
}) }) : null,
|
|
109
108
|
/* @__PURE__ */ l("div", {
|
|
110
109
|
"data-mps": "hierarchy-chart",
|
|
111
|
-
...
|
|
112
|
-
style:
|
|
110
|
+
...e(n.tooltip.bag),
|
|
111
|
+
style: t(n.tooltip.style),
|
|
113
112
|
children: n.tooltip.text
|
|
114
113
|
}),
|
|
115
114
|
n.hint ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
|
|
116
115
|
"data-mps": "hierarchy-chart",
|
|
117
|
-
...
|
|
116
|
+
...e(n.hint.bag),
|
|
118
117
|
children: n.hint.text
|
|
119
118
|
}) }) : null,
|
|
120
119
|
/* @__PURE__ */ l("div", {
|
|
121
120
|
"data-mps": "hierarchy-chart",
|
|
122
|
-
...
|
|
121
|
+
...e(n.live),
|
|
123
122
|
children: n.announcement
|
|
124
123
|
})
|
|
125
124
|
]
|
|
@@ -128,7 +127,7 @@ function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRe
|
|
|
128
127
|
}
|
|
129
128
|
//#endregion
|
|
130
129
|
//#region libs/mintplayer-react-bootstrap/charts/hierarchy/src/generated/BsHierarchyChart.generated.tsx
|
|
131
|
-
var m = i(function({ data: e = null, layout: t = "sunburst", rootId: r = null, maxDepth: i = null, minAngle: c = .2, minSize: u = 4, showLabels: m = !0, labelFontSize: h = 12, backdrop: g = null, colorMin: _ = 0, colorMax: v = 100, colorStart: y = "#fe0000", colorEnd: b = "#21b577", transitionDuration: x = 300, locale: S = null, zoomGestures: C = "wheel pinch", zoomHintLabel: w = null, showBreadcrumb: T = !1, breadcrumbLabel: E = "Chart path", zoomOutLabel: D = "Zoom out one level", metricUnitLabel: O = "%", valueUnitLabel: k = "", loadingLabel: A = "Loading", inputLabel: j = null, tooltipFormatter: M = null, labelFormatter: N = null, loadChildren: P = null,
|
|
130
|
+
var m = i(function({ data: e = null, layout: t = "sunburst", rootId: r = null, maxDepth: i = null, minAngle: c = .2, minSize: u = 4, showLabels: m = !0, labelFontSize: h = 12, backdrop: g = null, colorMin: _ = 0, colorMax: v = 100, colorStart: y = "#fe0000", colorEnd: b = "#21b577", transitionDuration: x = 300, locale: S = null, zoomGestures: C = "wheel pinch", zoomHintLabel: w = null, showBreadcrumb: T = !1, breadcrumbLabel: E = "Chart path", zoomOutLabel: D = "Zoom out one level", metricUnitLabel: O = "%", valueUnitLabel: k = "", loadingLabel: A = "Loading", inputLabel: j = null, tooltipFormatter: M = null, labelFormatter: N = null, loadChildren: P = null, onZoom: F, onNodeSelect: I, onNodeHover: L, onNodeLoadError: R, onRootIdChange: z, className: B, children: V, ...H }, U) {
|
|
132
131
|
s("hierarchy-chart", f);
|
|
133
132
|
let W = o(null);
|
|
134
133
|
a(U, () => W.current);
|
|
@@ -165,7 +164,11 @@ var m = i(function({ data: e = null, layout: t = "sunburst", rootId: r = null, m
|
|
|
165
164
|
label: H["aria-label"],
|
|
166
165
|
rootRef: W,
|
|
167
166
|
emit: (e, t) => {
|
|
168
|
-
e === "
|
|
167
|
+
e === "zoom" && F?.(t), e === "nodeSelect" && I?.(t), e === "nodeHover" && L?.(t), e === "nodeLoadError" && R?.(t);
|
|
168
|
+
},
|
|
169
|
+
models: ["rootId"],
|
|
170
|
+
writeModel: (e, t) => {
|
|
171
|
+
e === "rootId" && z?.(t);
|
|
169
172
|
}
|
|
170
173
|
});
|
|
171
174
|
return /* @__PURE__ */ l(p, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HierarchyChartInputs, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNodeEventDetail } from '@mintplayer/ui-core/charts/hierarchy';
|
|
1
|
+
import { hierarchyChartCore, HierarchyChartInputs, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNodeEventDetail } from '@mintplayer/ui-core/charts/hierarchy';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface BsHierarchyChartProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'data' | 'layout' | 'rootId' | 'maxDepth' | 'minAngle' | 'minSize' | 'showLabels' | 'labelFontSize' | 'backdrop' | 'colorMin' | 'colorMax' | 'colorStart' | 'colorEnd' | 'transitionDuration' | 'locale' | 'zoomGestures' | 'zoomHintLabel' | 'showBreadcrumb' | 'breadcrumbLabel' | 'zoomOutLabel' | 'metricUnitLabel' | 'valueUnitLabel' | 'loadingLabel' | 'inputLabel' | 'tooltipFormatter' | 'labelFormatter' | 'loadChildren' | '
|
|
3
|
+
export interface BsHierarchyChartProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'data' | 'layout' | 'rootId' | 'maxDepth' | 'minAngle' | 'minSize' | 'showLabels' | 'labelFontSize' | 'backdrop' | 'colorMin' | 'colorMax' | 'colorStart' | 'colorEnd' | 'transitionDuration' | 'locale' | 'zoomGestures' | 'zoomHintLabel' | 'showBreadcrumb' | 'breadcrumbLabel' | 'zoomOutLabel' | 'metricUnitLabel' | 'valueUnitLabel' | 'loadingLabel' | 'inputLabel' | 'tooltipFormatter' | 'labelFormatter' | 'loadChildren' | 'onZoom' | 'onNodeSelect' | 'onNodeHover' | 'onNodeLoadError' | 'onRootIdChange'> {
|
|
4
4
|
data?: HierarchyChartInputs['data'];
|
|
5
5
|
layout?: HierarchyChartInputs['layout'];
|
|
6
6
|
rootId?: HierarchyChartInputs['rootId'];
|
|
@@ -29,8 +29,6 @@ export interface BsHierarchyChartProps extends Omit<React.HTMLAttributes<HTMLEle
|
|
|
29
29
|
tooltipFormatter?: HierarchyChartInputs['tooltipFormatter'];
|
|
30
30
|
labelFormatter?: HierarchyChartInputs['labelFormatter'];
|
|
31
31
|
loadChildren?: HierarchyChartInputs['loadChildren'];
|
|
32
|
-
/** The focus node changed (null: the tree root). */
|
|
33
|
-
onRootIdChange?: (detail: string | null) => void;
|
|
34
32
|
/** The chart re-rooted on a node; the detail has its path. */
|
|
35
33
|
onZoom?: (detail: HierarchyNodeEventDetail) => void;
|
|
36
34
|
/** A leaf was clicked or activated with Enter. */
|
|
@@ -39,6 +37,8 @@ export interface BsHierarchyChartProps extends Omit<React.HTMLAttributes<HTMLEle
|
|
|
39
37
|
onNodeHover?: (detail: HierarchyHoverEventDetail) => void;
|
|
40
38
|
/** A lazy `loadChildren` call rejected; activating the node retries. */
|
|
41
39
|
onNodeLoadError?: (detail: HierarchyLoadErrorEventDetail) => void;
|
|
40
|
+
/** `rootId` changed from inside (two-way: pass the value back as `rootId`). */
|
|
41
|
+
onRootIdChange?: (value: ReturnType<NonNullable<(typeof hierarchyChartCore)['state']>>['rootId']) => void;
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -1,37 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { installLightStyles as
|
|
4
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
6
|
-
//#region libs/mintplayer-react-bootstrap/charts/sparkline/src/
|
|
7
|
-
|
|
8
|
-
o(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
locale: g ?? w,
|
|
19
|
-
label: b ?? _,
|
|
20
|
-
summaryFormatter: v
|
|
21
|
-
}), { class: D, ...O } = E.root;
|
|
22
|
-
return /* @__PURE__ */ s("span", {
|
|
23
|
-
ref: C,
|
|
24
|
-
...e(O),
|
|
25
|
-
...x,
|
|
26
|
-
className: [String(D), y].filter(Boolean).join(" "),
|
|
27
|
-
children: E.svg && /* @__PURE__ */ c("svg", {
|
|
28
|
-
...e(E.svg),
|
|
1
|
+
import { reactProps as e, useCore as t } from "../../machine/index.mjs";
|
|
2
|
+
import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
|
|
3
|
+
import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
import { sparklineCore as l, sparklineScopedStyles as u } from "@mintplayer/ui-core/charts/sparkline";
|
|
6
|
+
//#region libs/mintplayer-react-bootstrap/charts/sparkline/src/generated/sparkline.view.generated.tsx
|
|
7
|
+
function d({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: l }) {
|
|
8
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("span", {
|
|
9
|
+
"data-mps": "sparkline",
|
|
10
|
+
...e(t.root),
|
|
11
|
+
ref: l,
|
|
12
|
+
className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
|
|
13
|
+
children: /* @__PURE__ */ c("svg", {
|
|
14
|
+
"data-mps": "sparkline",
|
|
15
|
+
...e(t.svg),
|
|
16
|
+
...a,
|
|
17
|
+
role: t.svg.role ?? a?.role,
|
|
29
18
|
children: [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
t.fill ? /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("path", {
|
|
20
|
+
"data-mps": "sparkline",
|
|
21
|
+
...e(t.fill)
|
|
22
|
+
}) }) : null,
|
|
23
|
+
t.line ? /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("path", {
|
|
24
|
+
"data-mps": "sparkline",
|
|
25
|
+
...e(t.line)
|
|
26
|
+
}) }) : null,
|
|
27
|
+
t.dot ? /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("circle", {
|
|
28
|
+
"data-mps": "sparkline",
|
|
29
|
+
...e(t.dot)
|
|
30
|
+
}) }) : null
|
|
33
31
|
]
|
|
34
32
|
})
|
|
33
|
+
}) });
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region libs/mintplayer-react-bootstrap/charts/sparkline/src/generated/BsSparkline.generated.tsx
|
|
37
|
+
var f = n(function({ points: e = null, area: n = !1, showLastDot: o = !0, yMin: c = null, yMax: f = null, locale: p = null, inputLabel: m = null, summaryFormatter: h = null, className: g, children: _, ...v }, y) {
|
|
38
|
+
a("sparkline", u);
|
|
39
|
+
let b = i(null);
|
|
40
|
+
r(y, () => b.current);
|
|
41
|
+
let x = t(l, {
|
|
42
|
+
points: e,
|
|
43
|
+
area: n,
|
|
44
|
+
showLastDot: o,
|
|
45
|
+
yMin: c,
|
|
46
|
+
yMax: f,
|
|
47
|
+
locale: p,
|
|
48
|
+
inputLabel: m,
|
|
49
|
+
summaryFormatter: h
|
|
50
|
+
}, {
|
|
51
|
+
idPrefix: "bs-sparkline",
|
|
52
|
+
label: v["aria-label"],
|
|
53
|
+
rootRef: b,
|
|
54
|
+
emit: () => void 0
|
|
55
|
+
});
|
|
56
|
+
return /* @__PURE__ */ s(d, {
|
|
57
|
+
...x.props,
|
|
58
|
+
className: g,
|
|
59
|
+
attrs: v,
|
|
60
|
+
rootRef: b,
|
|
61
|
+
children: _
|
|
35
62
|
});
|
|
36
63
|
});
|
|
37
64
|
//#endregion
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SparklineInputs } from '@mintplayer/ui-core/charts/sparkline';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsSparklineProps extends Omit<React.HTMLAttributes<SVGElementTagNameMap['svg']>, 'points' | 'area' | 'showLastDot' | 'yMin' | 'yMax' | 'locale' | 'inputLabel' | 'summaryFormatter'> {
|
|
4
|
+
points?: SparklineInputs['points'];
|
|
5
|
+
area?: SparklineInputs['area'];
|
|
6
|
+
showLastDot?: SparklineInputs['showLastDot'];
|
|
7
|
+
yMin?: SparklineInputs['yMin'];
|
|
8
|
+
yMax?: SparklineInputs['yMax'];
|
|
9
|
+
locale?: SparklineInputs['locale'];
|
|
10
|
+
inputLabel?: SparklineInputs['inputLabel'];
|
|
11
|
+
summaryFormatter?: SparklineInputs['summaryFormatter'];
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* An axis-less inline trend for table cells, as one SVG. Not interactive: a `role=img` graphic
|
|
16
|
+
* named by `aria-label`, `inputLabel`, `summaryFormatter` or the generated "first, last, lowest,
|
|
17
|
+
* highest" (formatted for the nearest `lang`). The real numbers belong in the cell next to it.
|
|
18
|
+
* `null` points render a gap.
|
|
19
|
+
*/
|
|
20
|
+
export declare const BsSparkline: React.ForwardRefExoticComponent<BsSparklineProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsSparkline, type BsSparklineProps } from './BsSparkline.generated';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SparklineView } from '@mintplayer/ui-core/charts/sparkline';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type SparklineTemplateProps = {
|
|
4
|
+
view: SparklineView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['span']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function SparklineTemplate({ view, slots, children, className, attrs, rootRef }: SparklineTemplateProps): React.ReactElement;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './generated';
|
|
2
|
+
export type { SparklineSummaryFormatter } from '@mintplayer/ui-core/charts/sparkline';
|
package/charts/trend/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCore as n } from "../../machine/index.mjs";
|
|
1
|
+
import { reactProps as e, reactStyle as t, useCore as n } from "../../machine/index.mjs";
|
|
3
2
|
import * as r from "react";
|
|
4
3
|
import { forwardRef as i, useImperativeHandle as a, useRef as o } from "react";
|
|
5
4
|
import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
|
|
@@ -9,7 +8,7 @@ import { trendChartCore as d, trendChartScopedStyles as f } from "@mintplayer/ui
|
|
|
9
8
|
function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
|
|
10
9
|
return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
|
|
11
10
|
"data-mps": "trend-chart",
|
|
12
|
-
...
|
|
11
|
+
...e(n.root),
|
|
13
12
|
ref: d,
|
|
14
13
|
...s,
|
|
15
14
|
role: n.root.role ?? s?.role,
|
|
@@ -17,71 +16,71 @@ function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRe
|
|
|
17
16
|
children: [
|
|
18
17
|
/* @__PURE__ */ u("svg", {
|
|
19
18
|
"data-mps": "trend-chart",
|
|
20
|
-
...
|
|
19
|
+
...e(n.svg),
|
|
21
20
|
children: [
|
|
22
21
|
/* @__PURE__ */ l("g", {
|
|
23
22
|
"data-mps": "trend-chart",
|
|
24
|
-
...
|
|
25
|
-
children: n.yTicks.map((
|
|
23
|
+
...e(n.grid),
|
|
24
|
+
children: n.yTicks.map((t, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("line", {
|
|
26
25
|
"data-mps": "trend-chart",
|
|
27
|
-
...t
|
|
28
|
-
}) },
|
|
26
|
+
...e(t.line)
|
|
27
|
+
}) }, t.key))
|
|
29
28
|
}),
|
|
30
29
|
/* @__PURE__ */ u("g", {
|
|
31
30
|
"data-mps": "trend-chart",
|
|
32
|
-
...
|
|
33
|
-
children: [n.yTicks.map((
|
|
31
|
+
...e(n.axis),
|
|
32
|
+
children: [n.yTicks.map((t, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("text", {
|
|
34
33
|
"data-mps": "trend-chart",
|
|
35
|
-
...t
|
|
36
|
-
children:
|
|
37
|
-
}) },
|
|
34
|
+
...e(t.label),
|
|
35
|
+
children: t.text
|
|
36
|
+
}) }, t.key)), n.xTicks.map((t, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("text", {
|
|
38
37
|
"data-mps": "trend-chart",
|
|
39
|
-
...t
|
|
40
|
-
children:
|
|
41
|
-
}) },
|
|
38
|
+
...e(t.label),
|
|
39
|
+
children: t.text
|
|
40
|
+
}) }, t.key))]
|
|
42
41
|
}),
|
|
43
|
-
n.series.map((
|
|
42
|
+
n.series.map((t, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ u("g", {
|
|
44
43
|
"data-mps": "trend-chart",
|
|
45
|
-
...t
|
|
46
|
-
children: [
|
|
44
|
+
...e(t.group),
|
|
45
|
+
children: [t.area ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("path", {
|
|
47
46
|
"data-mps": "trend-chart",
|
|
48
|
-
...t
|
|
47
|
+
...e(t.area)
|
|
49
48
|
}) }) : null, /* @__PURE__ */ l("path", {
|
|
50
49
|
"data-mps": "trend-chart",
|
|
51
|
-
...t
|
|
50
|
+
...e(t.line)
|
|
52
51
|
})]
|
|
53
|
-
}) },
|
|
52
|
+
}) }, t.key)),
|
|
54
53
|
n.goal ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("g", {
|
|
55
54
|
"data-mps": "trend-chart",
|
|
56
|
-
...
|
|
55
|
+
...e(n.goal.group),
|
|
57
56
|
children: [/* @__PURE__ */ l("line", {
|
|
58
57
|
"data-mps": "trend-chart",
|
|
59
|
-
...
|
|
58
|
+
...e(n.goal.line)
|
|
60
59
|
}), n.goal.label ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("text", {
|
|
61
60
|
"data-mps": "trend-chart",
|
|
62
|
-
...
|
|
61
|
+
...e(n.goal.label),
|
|
63
62
|
children: n.goal.text
|
|
64
63
|
}) }) : null]
|
|
65
64
|
}) }) : null,
|
|
66
65
|
n.crosshair ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("line", {
|
|
67
66
|
"data-mps": "trend-chart",
|
|
68
|
-
...
|
|
67
|
+
...e(n.crosshair)
|
|
69
68
|
}) }) : null,
|
|
70
|
-
n.points.map((
|
|
69
|
+
n.points.map((t, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("circle", {
|
|
71
70
|
"data-mps": "trend-chart",
|
|
72
|
-
...t
|
|
73
|
-
}) },
|
|
71
|
+
...e(t.bag)
|
|
72
|
+
}) }, t.key))
|
|
74
73
|
]
|
|
75
74
|
}),
|
|
76
75
|
/* @__PURE__ */ l("div", {
|
|
77
76
|
"data-mps": "trend-chart",
|
|
78
|
-
...
|
|
79
|
-
style:
|
|
77
|
+
...e(n.tooltip.bag),
|
|
78
|
+
style: t(n.tooltip.style),
|
|
80
79
|
children: n.tooltip.text
|
|
81
80
|
}),
|
|
82
81
|
n.summary ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
|
|
83
82
|
"data-mps": "trend-chart",
|
|
84
|
-
...
|
|
83
|
+
...e(n.summary.bag),
|
|
85
84
|
children: n.summary.text
|
|
86
85
|
}) }) : null
|
|
87
86
|
]
|