@iress-oss/ids-components 6.0.0-alpha.0 → 6.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/Autocomplete-C5ubHBTi.js +358 -0
- package/dist/{Button-BXzmntRi.js → Button-mmhMLwp9.js} +89 -85
- package/dist/Provider-8wS70V56.js +64 -0
- package/dist/{TableProvider-D8SQKIG8.js → TableProvider-bdUNuoG-.js} +11 -21
- package/dist/components/Alert/Alert.js +34 -35
- package/dist/components/Alert/Alert.styles.js +15 -15
- package/dist/components/Alert/index.js +4 -5
- package/dist/components/Autocomplete/Autocomplete.js +17 -82
- package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +36 -35
- package/dist/components/Autocomplete/index.js +6 -4
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/Badge.styles.js +5 -5
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
- package/dist/components/ButtonGroup/hooks/useButtonGroupItem.js +11 -12
- package/dist/components/Card/Card.js +2 -2
- package/dist/components/Card/Card.styles.js +17 -17
- package/dist/components/Checkbox/Checkbox.js +85 -86
- package/dist/components/Checkbox/Checkbox.styles.js +6 -6
- package/dist/components/CheckboxGroup/CheckboxGroup.js +69 -74
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +11 -11
- package/dist/components/CheckboxMark/CheckboxMark.js +2 -2
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +2 -2
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Col/Col.styles.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Container/Container.styles.js +4 -3
- package/dist/components/Divider/Divider.js +2 -2
- package/dist/components/Divider/Divider.styles.js +2 -2
- package/dist/components/Expander/Expander.js +46 -41
- package/dist/components/Expander/Expander.styles.js +5 -5
- package/dist/components/Field/Field.js +55 -54
- package/dist/components/Field/Field.styles.js +17 -10
- package/dist/components/Field/FieldGroup/FieldGroup.js +40 -40
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +6 -6
- package/dist/components/Field/components/FieldFooter.js +32 -32
- package/dist/components/Field/components/FieldHint.js +3 -3
- package/dist/components/Filter/Filter.js +213 -100
- package/dist/components/Filter/Filter.styles.js +4 -4
- package/dist/components/Filter/components/FilterResetButton.js +17 -18
- package/dist/components/Filter/components/FilterResultsDescriptor.js +6 -6
- package/dist/components/Filter/components/FilterSearch.js +18 -19
- package/dist/components/Filter/index.js +2 -2
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/Icon.styles.js +1 -1
- package/dist/components/Image/Image.js +1 -1
- package/dist/components/Image/Image.styles.js +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/Inline.styles.js +2 -2
- package/dist/components/Input/Input.js +102 -108
- package/dist/components/Input/Input.styles.js +8 -8
- package/dist/components/Input/InputBase/InputBase.js +23 -23
- package/dist/components/Label/Label.styles.js +4 -4
- package/dist/components/Label/LabelBase/LabelBase.js +32 -32
- package/dist/components/Link/Link.js +50 -51
- package/dist/components/Link/Link.styles.js +4 -3
- package/dist/components/Menu/Menu.js +51 -51
- package/dist/components/Menu/Menu.styles.js +12 -12
- package/dist/components/Menu/MenuDivider/MenuDivider.js +13 -13
- package/dist/components/Menu/MenuItem/MenuItem.js +144 -146
- package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +5 -5
- package/dist/components/Menu/MenuText/MenuText.js +38 -38
- package/dist/components/Modal/Modal.js +115 -125
- package/dist/components/Modal/Modal.styles.js +22 -13
- package/dist/components/Modal/ModalProvider.js +20 -22
- package/dist/components/Modal/hooks/useModal.js +9 -7
- package/dist/components/Modal/hooks/useProviderModal.js +8 -8
- package/dist/components/Modal/index.js +7 -6
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Panel/Panel.styles.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +14 -14
- package/dist/components/Placeholder/Placeholder.styles.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +89 -14
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +31 -34
- package/dist/components/Popover/Popover.js +44 -43
- package/dist/components/Popover/Popover.styles.js +2 -2
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverActivator.js +48 -53
- package/dist/components/Popover/components/PopoverContent.js +33 -33
- package/dist/components/Popover/helpers/composeFloatingProps.js +23 -26
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +11 -14
- package/dist/components/Popover/hooks/usePopover.js +79 -75
- package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -26
- package/dist/components/Popover/hooks/usePopoverItem.js +16 -17
- package/dist/components/Popover/hooks/usePopoverNavigation.js +22 -22
- package/dist/components/Popover/index.js +6 -6
- package/dist/components/Progress/Progress.js +35 -41
- package/dist/components/Progress/Progress.styles.js +4 -4
- package/dist/components/Provider/Provider.js +12 -35
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +86 -81
- package/dist/components/Radio/Radio.styles.js +6 -6
- package/dist/components/RadioGroup/RadioGroup.js +69 -77
- package/dist/components/RadioGroup/RadioGroup.styles.js +5 -5
- package/dist/components/Readonly/Readonly.js +44 -43
- package/dist/components/Readonly/Readonly.styles.js +12 -17
- package/dist/components/RichSelect/RichSelect.js +21 -86
- package/dist/components/RichSelect/RichSelect.styles.js +10 -10
- package/dist/components/RichSelect/SelectBody/SelectBody.js +23 -117
- package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +1 -1
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +25 -114
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +67 -97
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +19 -19
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +6 -6
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +69 -69
- package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +52 -46
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +43 -98
- package/dist/components/RichSelect/SelectSearch/SelectSearch.styles.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +31 -32
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +159 -105
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +4 -4
- package/dist/components/RichSelect/components/SelectActivator.js +63 -6
- package/dist/components/RichSelect/components/SelectOptions.js +201 -95
- package/dist/components/RichSelect/index.js +18 -15
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/Row.styles.js +1 -1
- package/dist/components/Select/Select.js +71 -71
- package/dist/components/Select/Select.styles.js +9 -9
- package/dist/components/Select/SelectOption/SelectOption.js +1 -1
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +30 -33
- package/dist/components/Select/helpers/nodesToSelectOptions.js +19 -20
- package/dist/components/Skeleton/Skeleton.styles.js +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +3 -3
- package/dist/components/Slideout/Slideout.js +161 -161
- package/dist/components/Slideout/Slideout.styles.js +8 -8
- package/dist/components/Slideout/SlideoutProvider.js +18 -20
- package/dist/components/Slideout/components/SlideoutInner.js +3 -3
- package/dist/components/Slideout/hooks/useProviderSlideout.js +8 -8
- package/dist/components/Slideout/hooks/usePushElement.js +27 -27
- package/dist/components/Slideout/hooks/useSlideout.js +11 -9
- package/dist/components/Slideout/index.js +7 -6
- package/dist/components/Slider/Slider.js +76 -76
- package/dist/components/Slider/Slider.styles.js +4 -4
- package/dist/components/Slider/components/SliderTicks.js +15 -16
- package/dist/components/Spinner/Spinner.styles.js +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/Stack/Stack.styles.js +4 -4
- package/dist/components/TabSet/Tab/Tab.js +88 -88
- package/dist/components/TabSet/Tab/Tab.styles.js +3 -3
- package/dist/components/TabSet/TabSet.js +80 -67
- package/dist/components/TabSet/TabSet.styles.js +4 -4
- package/dist/components/TabSet/TabSetProvider.js +43 -43
- package/dist/components/Table/Table.js +39 -39
- package/dist/components/Table/Table.styles.js +10 -8
- package/dist/components/Table/TableBody/TableBody.js +76 -76
- package/dist/components/Table/TableFormattedValue/TableFormattedValue.js +8 -18
- package/dist/components/Table/TableProvider.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +8 -8
- package/dist/components/Table/components/TableHeader.js +31 -32
- package/dist/components/Table/components/TableHeaderCell.js +23 -24
- package/dist/components/Table/components/TableRows.js +38 -38
- package/dist/components/Table/components/TableSortButton.js +6 -6
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/helpers/composeTableInitialSorting.js +4 -4
- package/dist/components/Table/hooks/useTableColumnSort.js +12 -12
- package/dist/components/Table/hooks/useTableColumnStyles.js +13 -14
- package/dist/components/Table/index.js +2 -3
- package/dist/components/Tag/Tag.js +29 -32
- package/dist/components/Tag/Tag.styles.js +5 -6
- package/dist/components/Tag/TagInput/TagInput.js +120 -104
- package/dist/components/Tag/TagInput/TagInput.styles.js +26 -0
- package/dist/components/Text/Text.js +16 -36
- package/dist/components/Text/Text.styles.js +5 -4
- package/dist/components/Text/index.js +1 -2
- package/dist/components/Toaster/Toaster.js +59 -11
- package/dist/components/Toaster/Toaster.styles.js +2 -2
- package/dist/components/Toaster/ToasterProvider.js +49 -6
- package/dist/components/Toaster/components/Toast/Toast.js +46 -47
- package/dist/components/Toaster/components/Toast/Toast.styles.js +13 -13
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +38 -37
- package/dist/components/Toaster/hooks/useToaster.js +24 -22
- package/dist/components/Toaster/index.js +5 -4
- package/dist/components/Toggle/Toggle.js +59 -54
- package/dist/components/Toggle/Toggle.styles.js +13 -13
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +2 -2
- package/dist/components/ValidationMessage/ValidationMessage.js +25 -26
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +5 -5
- package/dist/{composeTableColumnDefs-CeWqgpKW.js → composeTableColumnDefs-BfFBOARB.js} +99 -109
- package/dist/constants.js +10 -10
- package/dist/{create-recipe-BqEnhJ30.js → create-recipe-C-ASk1Hy.js} +11 -10
- package/dist/css-fGu_jDvv.js +228 -0
- package/dist/cva-JiDXAa83.js +63 -0
- package/dist/enums.js +7 -7
- package/dist/factory-oPXoMw9H.js +58 -0
- package/dist/{floating-ui.react-CPN4oQCc.js → floating-ui.react-BetVZ099.js} +1153 -1151
- package/dist/fuzzysort-DKAolWVP.js +397 -0
- package/dist/helpers/dom/closestCrossShadow.js +16 -17
- package/dist/helpers/dom/focusableElements.js +6 -6
- package/dist/helpers/dom/getActiveElement.js +5 -6
- package/dist/helpers/formatting/formatDateTime.js +9 -10
- package/dist/helpers/label-value/composeLabelValueDescriptor.js +8 -8
- package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
- package/dist/helpers/label-value/getValueFromLabelValues.js +5 -6
- package/dist/helpers/label-value/highlightQueryInLabel.js +4 -7
- package/dist/helpers/label-value/highlightQueryInLabelValue.js +6 -5
- package/dist/helpers/label-value/searchLabelValues.js +1 -1
- package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +4 -4
- package/dist/helpers/styling/iressCss.js +2 -2
- package/dist/helpers/styling/mapGutterToGap.js +7 -7
- package/dist/helpers/transition/getTransitionDuration.js +5 -8
- package/dist/hooks/useAriaRelationship.js +19 -21
- package/dist/hooks/useBreakpoint.js +8 -11
- package/dist/hooks/useControlledState.js +37 -35
- package/dist/{index-DlGwAtoO.js → index-CZ9ot38T.js} +107 -129
- package/dist/{index.esm-BdbWn-w_.js → index.esm-B6vzbp0e.js} +5 -5
- package/dist/{index.esm-BnSuefUA.js → index.esm-CL8gh5wr.js} +1 -5
- package/dist/is-valid-prop-Ce0wiweq.js +7 -0
- package/dist/main.js +298 -292
- package/dist/patterns/Form/Form.js +1 -1
- package/dist/patterns/Form/Form.styles.js +1 -1
- package/dist/patterns/Form/FormField/FormField.js +41 -44
- package/dist/patterns/Form/FormField/FormFieldset.js +41 -44
- package/dist/patterns/Form/FormField/helpers/getErrorTypeMessage.js +10 -10
- package/dist/patterns/Form/FormField/hooks/useFieldRenderProps.js +26 -26
- package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +55 -56
- package/dist/patterns/Form/HookForm/HookForm.js +72 -75
- package/dist/patterns/Form/components/LongForm.js +1 -1
- package/dist/patterns/Form/components/ShortForm.js +12 -12
- package/dist/patterns/Loading/Loading.styles.js +32 -20
- package/dist/patterns/Loading/LoadingSuspense.js +34 -34
- package/dist/patterns/Loading/components/ComponentLoading.js +42 -47
- package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
- package/dist/patterns/Loading/components/LongLoading.js +45 -45
- package/dist/patterns/Loading/components/PageLoading.js +64 -64
- package/dist/patterns/Loading/components/StartUpLoading.js +61 -59
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +8 -12
- package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +14 -14
- package/dist/patterns/Loading/hooks/useShowIndicator.js +11 -11
- package/dist/patterns/Shadow/Shadow.js +22009 -0
- package/dist/patterns/Shadow/index.js +4 -0
- package/dist/src/components/Alert/Alert.d.ts +0 -1
- package/dist/src/components/Alert/Alert.styles.d.ts +2 -2
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +1 -1
- package/dist/src/components/Autocomplete/index.d.ts +1 -0
- package/dist/src/components/Badge/Badge.styles.d.ts +2 -2
- package/dist/src/components/Card/Card.styles.d.ts +2 -2
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -4
- package/dist/src/components/Expander/Expander.styles.d.ts +2 -2
- package/dist/src/components/Field/Field.styles.d.ts +13 -6
- package/dist/src/components/Field/FieldGroup/FieldGroup.styles.d.ts +1 -1
- package/dist/src/components/Inline/Inline.d.ts +1 -2
- package/dist/src/components/Label/Label.styles.d.ts +1 -1
- package/dist/src/components/Menu/Menu.styles.d.ts +5 -5
- package/dist/src/components/Modal/Modal.styles.d.ts +8 -2
- package/dist/src/components/Modal/ModalProvider.d.ts +0 -16
- package/dist/src/components/Modal/hooks/useModal.d.ts +17 -0
- package/dist/src/components/Popover/Popover.styles.d.ts +1 -1
- package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +1 -1
- package/dist/src/components/Popover/hooks/usePopover.d.ts +4 -0
- package/dist/src/components/Popover/hooks/usePopoverNavigation.d.ts +1 -1
- package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
- package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +4 -4
- package/dist/src/components/Readonly/Readonly.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +11 -1
- package/dist/src/components/RichSelect/RichSelect.styles.d.ts +7 -7
- package/dist/src/components/RichSelect/SelectBody/SelectBody.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectMenu/SelectMenu.d.ts +2 -2
- package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectSearch/SelectSearch.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.d.ts +1 -2
- package/dist/src/components/RichSelect/SelectTags/SelectTags.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectTags/SelectTags.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
- package/dist/src/components/Row/Row.d.ts +1 -2
- package/dist/src/components/Select/Select.styles.d.ts +7 -7
- package/dist/src/components/Skeleton/Skeleton.styles.d.ts +1 -1
- package/dist/src/components/Slideout/Slideout.styles.d.ts +2 -2
- package/dist/src/components/Slideout/SlideoutProvider.d.ts +0 -6
- package/dist/src/components/Slideout/hooks/useSlideout.d.ts +7 -0
- package/dist/src/components/Stack/Stack.d.ts +1 -2
- package/dist/src/components/TabSet/TabSet.d.ts +10 -1
- package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.d.ts +2 -3
- package/dist/src/components/Table/helpers/composeTableColumnDefs.d.ts +1 -1
- package/dist/src/components/Tag/TagInput/TagInput.styles.d.ts +1 -0
- package/dist/src/components/Text/Text.d.ts +1 -2
- package/dist/src/components/Toaster/ToasterProvider.d.ts +0 -2
- package/dist/src/components/Toaster/components/Toast/Toast.d.ts +1 -2
- package/dist/src/components/Toaster/components/Toast/Toast.styles.d.ts +4 -4
- package/dist/src/components/Toaster/hooks/useToaster.d.ts +7 -6
- package/dist/src/components/Toggle/Toggle.d.ts +10 -2
- package/dist/src/components/Toggle/Toggle.styles.d.ts +4 -4
- package/dist/src/enums.d.ts +1 -9
- package/dist/src/interfaces.d.ts +9 -10
- package/dist/src/main.d.ts +1 -1
- package/dist/src/patterns/Form/hooks/useNoDefaultValueInForms.d.ts +1 -1
- package/dist/src/patterns/Loading/Loading.styles.d.ts +11 -10
- package/dist/src/patterns/Loading/components/PageLoading.d.ts +5 -1
- package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +8 -3
- package/dist/src/patterns/Loading/components/ValidateLoading.d.ts +1 -1
- package/dist/src/patterns/Shadow/Shadow.d.ts +34 -0
- package/dist/src/patterns/Shadow/index.d.ts +1 -0
- package/dist/src/patterns/Shadow/meta/Thumbnail.d.ts +2 -0
- package/dist/src/patterns/Shadow/meta/index.d.ts +7 -0
- package/dist/src/styled-system/jsx/create-style-context.d.ts +54 -0
- package/dist/src/styled-system/jsx/index.d.ts +1 -0
- package/dist/src/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/dist/src/styled-system/patterns/bleed.d.ts +0 -1
- package/dist/src/styled-system/patterns/box.d.ts +0 -1
- package/dist/src/styled-system/patterns/center.d.ts +0 -1
- package/dist/src/styled-system/patterns/circle.d.ts +0 -1
- package/dist/src/styled-system/patterns/container.d.ts +0 -1
- package/dist/src/styled-system/patterns/cq.d.ts +0 -1
- package/dist/src/styled-system/patterns/divider.d.ts +0 -1
- package/dist/src/styled-system/patterns/flex.d.ts +0 -1
- package/dist/src/styled-system/patterns/float.d.ts +0 -1
- package/dist/src/styled-system/patterns/grid-item.d.ts +0 -1
- package/dist/src/styled-system/patterns/grid.d.ts +0 -1
- package/dist/src/styled-system/patterns/hstack.d.ts +0 -1
- package/dist/src/styled-system/patterns/link-overlay.d.ts +0 -1
- package/dist/src/styled-system/patterns/spacer.d.ts +0 -1
- package/dist/src/styled-system/patterns/square.d.ts +0 -1
- package/dist/src/styled-system/patterns/stack.d.ts +0 -1
- package/dist/src/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/dist/src/styled-system/patterns/vstack.d.ts +0 -1
- package/dist/src/styled-system/patterns/wrap.d.ts +0 -1
- package/dist/src/styled-system/recipes/button.d.ts +4 -3
- package/dist/src/styled-system/recipes/table.d.ts +4 -1
- package/dist/src/styled-system/recipes/text.d.ts +3 -2
- package/dist/src/styled-system/tokens/tokens.d.ts +4 -4
- package/dist/src/styled-system/types/composition.d.ts +83 -23
- package/dist/src/styled-system/types/conditions.d.ts +15 -11
- package/dist/src/styled-system/types/jsx.d.ts +27 -10
- package/dist/src/styled-system/types/prop-type.d.ts +11 -4
- package/dist/src/styled-system/types/style-props.d.ts +14 -1
- package/dist/src/styled-system/types/system-types.d.ts +76 -0
- package/dist/src/types.d.ts +3 -1
- package/dist/style.css +1 -1
- package/dist/sva-OmxClA9g.js +34 -0
- package/package.json +68 -46
- package/dist/Filter-Bwk7SIlJ.js +0 -1103
- package/dist/InputPopover-BWWuoQZ2.js +0 -132
- package/dist/ToasterProvider-XqpAGfRs.js +0 -112
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/cva-B2x59Dph.js +0 -294
- package/dist/factory-DHLOr79I.js +0 -53
- package/dist/fuzzysort-eoXOpoo6.js +0 -395
- package/dist/helpers/utility/generateScopedName.js +0 -9
- package/dist/is-valid-prop-DFFvE05x.js +0 -7
- package/dist/panda.config.d.ts +0 -4
- package/dist/src/helpers/utility/generateScopedName.d.ts +0 -8
- package/dist/sva-TRyehFkb.js +0 -32
- package/dist/theme-preset/config-recipes/button.d.ts +0 -6
- package/dist/theme-preset/config-recipes/table.d.ts +0 -1
- package/dist/theme-preset/config-recipes/text.d.ts +0 -1
- package/dist/theme-preset/globalCss.d.ts +0 -1
- package/dist/theme-preset/index.d.ts +0 -2
- package/dist/theme-preset/staticCss.d.ts +0 -2
- package/dist/theme-preset/storybook.d.ts +0 -4
- package/dist/theme-preset/tokens/animationStyles.d.ts +0 -1
- package/dist/theme-preset/tokens/borders.d.ts +0 -50
- package/dist/theme-preset/tokens/breakpoints.d.ts +0 -8
- package/dist/theme-preset/tokens/colors.d.ts +0 -156
- package/dist/theme-preset/tokens/keyframes.d.ts +0 -1
- package/dist/theme-preset/tokens/layerStyles.d.ts +0 -40
- package/dist/theme-preset/tokens/radii.d.ts +0 -42
- package/dist/theme-preset/tokens/sizes.d.ts +0 -246
- package/dist/theme-preset/tokens/spacing.d.ts +0 -100
- package/dist/theme-preset/tokens/textStyles.d.ts +0 -5
- package/dist/theme-preset/tokens/zIndex.d.ts +0 -23
- package/dist/theme-preset/utilities/chevron.d.ts +0 -3
- package/dist/theme-preset/utilities/focusable.d.ts +0 -1
- package/dist/theme-preset/utilities/gutter.d.ts +0 -1
- package/dist/theme-preset/utilities/hide.d.ts +0 -1
- package/dist/theme-preset/utilities/noGutter.d.ts +0 -1
- package/dist/theme-preset/utilities/offset.d.ts +0 -75
- package/dist/theme-preset/utilities/sliderThumb.d.ts +0 -1
- package/dist/theme-preset/utilities/span.d.ts +0 -120
- package/dist/theme-preset/utilities/stretch.d.ts +0 -1
- package/dist/theme-preset/utilities/topLeftTriangle.d.ts +0 -2
- package/dist/typography--vGt_ztU.js +0 -12
- package/dist/vite.config.d.ts +0 -2
- package/dist/vitest.config.d.ts +0 -2
- package/dist/vitest.setup.d.ts +0 -0
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { jsx as pe } from "react/jsx-runtime";
|
|
2
2
|
import { IressTableFormattedValue as Se } from "./components/Table/TableFormattedValue/TableFormattedValue.js";
|
|
3
|
-
import { formatObjectKey as
|
|
4
|
-
|
|
5
|
-
* table-core
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) TanStack
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
11
|
-
*
|
|
12
|
-
* @license MIT
|
|
13
|
-
*/
|
|
14
|
-
function me() {
|
|
3
|
+
import { formatObjectKey as me } from "./helpers/formatting/formatObjectKey.js";
|
|
4
|
+
function Ce() {
|
|
15
5
|
return {
|
|
16
6
|
accessor: (e, o) => typeof e == "function" ? {
|
|
17
7
|
...o,
|
|
@@ -51,7 +41,7 @@ function we(e, o) {
|
|
|
51
41
|
};
|
|
52
42
|
return n(e), t;
|
|
53
43
|
}
|
|
54
|
-
function
|
|
44
|
+
function m(e, o, t) {
|
|
55
45
|
let n = [], r;
|
|
56
46
|
return (i) => {
|
|
57
47
|
let l;
|
|
@@ -70,16 +60,16 @@ function C(e, o, t) {
|
|
|
70
60
|
console.info(`%c⏱ ${a(S, 5)} /${a(d, 5)} ms`, `
|
|
71
61
|
font-size: .6rem;
|
|
72
62
|
font-weight: bold;
|
|
73
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 * f, 120))}deg 100% 31%);`, t
|
|
63
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * f, 120))}deg 100% 31%);`, t?.key);
|
|
74
64
|
}
|
|
75
65
|
return r;
|
|
76
66
|
};
|
|
77
67
|
}
|
|
78
|
-
function
|
|
68
|
+
function C(e, o, t, n) {
|
|
79
69
|
return {
|
|
80
70
|
debug: () => {
|
|
81
71
|
var r;
|
|
82
|
-
return (r = e
|
|
72
|
+
return (r = e?.debugAll) != null ? r : e[o];
|
|
83
73
|
},
|
|
84
74
|
key: process.env.NODE_ENV === "development" && t,
|
|
85
75
|
onChange: n
|
|
@@ -95,14 +85,14 @@ function ve(e, o, t, n) {
|
|
|
95
85
|
column: t,
|
|
96
86
|
getValue: () => o.getValue(n),
|
|
97
87
|
renderValue: r,
|
|
98
|
-
getContext:
|
|
88
|
+
getContext: m(() => [e, t, o, i], (l, s, u, g) => ({
|
|
99
89
|
table: l,
|
|
100
90
|
column: s,
|
|
101
91
|
row: u,
|
|
102
92
|
cell: g,
|
|
103
93
|
getValue: g.getValue,
|
|
104
94
|
renderValue: g.renderValue
|
|
105
|
-
}),
|
|
95
|
+
}), C(e.options, "debugCells", "cell.getContext"))
|
|
106
96
|
};
|
|
107
97
|
return e._features.forEach((l) => {
|
|
108
98
|
l.createCell == null || l.createCell(i, t, o, e);
|
|
@@ -131,18 +121,18 @@ function he(e, o, t, n) {
|
|
|
131
121
|
depth: t,
|
|
132
122
|
columnDef: s,
|
|
133
123
|
columns: [],
|
|
134
|
-
getFlatColumns:
|
|
124
|
+
getFlatColumns: m(() => [!0], () => {
|
|
135
125
|
var f;
|
|
136
126
|
return [S, ...(f = S.columns) == null ? void 0 : f.flatMap((a) => a.getFlatColumns())];
|
|
137
|
-
},
|
|
138
|
-
getLeafColumns:
|
|
127
|
+
}, C(e.options, "debugColumns", "column.getFlatColumns")),
|
|
128
|
+
getLeafColumns: m(() => [e._getOrderColumnsFn()], (f) => {
|
|
139
129
|
var a;
|
|
140
130
|
if ((a = S.columns) != null && a.length) {
|
|
141
131
|
let c = S.columns.flatMap((p) => p.getLeafColumns());
|
|
142
132
|
return f(c);
|
|
143
133
|
}
|
|
144
134
|
return [S];
|
|
145
|
-
},
|
|
135
|
+
}, C(e.options, "debugColumns", "column.getLeafColumns"))
|
|
146
136
|
};
|
|
147
137
|
for (const f of e._features)
|
|
148
138
|
f.createColumn == null || f.createColumn(S, e);
|
|
@@ -180,31 +170,31 @@ function te(e, o, t) {
|
|
|
180
170
|
}
|
|
181
171
|
const _e = {
|
|
182
172
|
createTable: (e) => {
|
|
183
|
-
e.getHeaderGroups =
|
|
173
|
+
e.getHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
184
174
|
var i, l;
|
|
185
|
-
const s = (i = n
|
|
175
|
+
const s = (i = n?.map((S) => t.find((f) => f.id === S)).filter(Boolean)) != null ? i : [], u = (l = r?.map((S) => t.find((f) => f.id === S)).filter(Boolean)) != null ? l : [], g = t.filter((S) => !(n != null && n.includes(S.id)) && !(r != null && r.includes(S.id)));
|
|
186
176
|
return H(o, [...s, ...g, ...u], e);
|
|
187
|
-
},
|
|
177
|
+
}, C(e.options, _, "getHeaderGroups")), e.getCenterHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), H(o, t, e, "center")), C(e.options, _, "getCenterHeaderGroups")), e.getLeftHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
188
178
|
var r;
|
|
189
|
-
const i = (r = n
|
|
179
|
+
const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
|
|
190
180
|
return H(o, i, e, "left");
|
|
191
|
-
},
|
|
181
|
+
}, C(e.options, _, "getLeftHeaderGroups")), e.getRightHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
192
182
|
var r;
|
|
193
|
-
const i = (r = n
|
|
183
|
+
const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
|
|
194
184
|
return H(o, i, e, "right");
|
|
195
|
-
},
|
|
185
|
+
}, C(e.options, _, "getRightHeaderGroups")), e.getFooterGroups = m(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getFooterGroups")), e.getLeftFooterGroups = m(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getLeftFooterGroups")), e.getCenterFooterGroups = m(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getCenterFooterGroups")), e.getRightFooterGroups = m(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getRightFooterGroups")), e.getFlatHeaders = m(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getFlatHeaders")), e.getLeftFlatHeaders = m(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getLeftFlatHeaders")), e.getCenterFlatHeaders = m(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getCenterFlatHeaders")), e.getRightFlatHeaders = m(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getRightFlatHeaders")), e.getCenterLeafHeaders = m(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
196
186
|
var n;
|
|
197
187
|
return !((n = t.subHeaders) != null && n.length);
|
|
198
|
-
}),
|
|
188
|
+
}), C(e.options, _, "getCenterLeafHeaders")), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
|
199
189
|
var n;
|
|
200
190
|
return !((n = t.subHeaders) != null && n.length);
|
|
201
|
-
}),
|
|
191
|
+
}), C(e.options, _, "getLeftLeafHeaders")), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
|
202
192
|
var n;
|
|
203
193
|
return !((n = t.subHeaders) != null && n.length);
|
|
204
|
-
}),
|
|
194
|
+
}), C(e.options, _, "getRightLeafHeaders")), e.getLeafHeaders = m(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
205
195
|
var r, i, l, s, u, g;
|
|
206
196
|
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(u = (g = n[0]) == null ? void 0 : g.headers) != null ? u : []].map((d) => d.getLeafHeaders()).flat();
|
|
207
|
-
},
|
|
197
|
+
}, C(e.options, _, "getLeafHeaders"));
|
|
208
198
|
}
|
|
209
199
|
};
|
|
210
200
|
function H(e, o, t, n) {
|
|
@@ -227,11 +217,11 @@ function H(e, o, t, n) {
|
|
|
227
217
|
f.forEach((w) => {
|
|
228
218
|
const R = [...p].reverse()[0], v = w.column.depth === c.depth;
|
|
229
219
|
let h, M = !1;
|
|
230
|
-
if (v && w.column.parent ? h = w.column.parent : (h = w.column, M = !0), R &&
|
|
220
|
+
if (v && w.column.parent ? h = w.column.parent : (h = w.column, M = !0), R && R?.column === h)
|
|
231
221
|
R.subHeaders.push(w);
|
|
232
222
|
else {
|
|
233
223
|
const F = te(t, h, {
|
|
234
|
-
id: [n, a, h.id, w
|
|
224
|
+
id: [n, a, h.id, w?.id].filter(Boolean).join("_"),
|
|
235
225
|
isPlaceholder: M,
|
|
236
226
|
placeholderId: M ? `${p.filter((D) => D.column === h).length}` : void 0,
|
|
237
227
|
depth: a,
|
|
@@ -302,8 +292,8 @@ const Fe = (e, o, t, n, r, i, l) => {
|
|
|
302
292
|
}
|
|
303
293
|
return u.reverse();
|
|
304
294
|
},
|
|
305
|
-
getAllCells:
|
|
306
|
-
_getAllCellsByColumnId:
|
|
295
|
+
getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((g) => ve(e, s, g, g.id)), C(e.options, "debugRows", "getAllCells")),
|
|
296
|
+
_getAllCellsByColumnId: m(() => [s.getAllCells()], (u) => u.reduce((g, d) => (g[d.column.id] = d, g), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
307
297
|
};
|
|
308
298
|
for (let u = 0; u < e._features.length; u++) {
|
|
309
299
|
const g = e._features[u];
|
|
@@ -330,7 +320,7 @@ const re = (e, o, t) => {
|
|
|
330
320
|
re.autoRemove = (e) => V(e);
|
|
331
321
|
const ie = (e, o, t) => {
|
|
332
322
|
var n;
|
|
333
|
-
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) ===
|
|
323
|
+
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
|
|
334
324
|
};
|
|
335
325
|
ie.autoRemove = (e) => V(e);
|
|
336
326
|
const le = (e, o, t) => {
|
|
@@ -395,7 +385,7 @@ const Ve = {
|
|
|
395
385
|
}),
|
|
396
386
|
createColumn: (e, o) => {
|
|
397
387
|
e.getAutoFilterFn = () => {
|
|
398
|
-
const t = o.getCoreRowModel().flatRows[0], n = t
|
|
388
|
+
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
|
399
389
|
return typeof n == "string" ? P.includesString : typeof n == "number" ? P.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? P.equals : Array.isArray(n) ? P.arrIncludes : P.weakEquals;
|
|
400
390
|
}, e.getFilterFn = () => {
|
|
401
391
|
var t, n;
|
|
@@ -414,10 +404,10 @@ const Ve = {
|
|
|
414
404
|
return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
415
405
|
}, e.setFilterValue = (t) => {
|
|
416
406
|
o.setColumnFilters((n) => {
|
|
417
|
-
const r = e.getFilterFn(), i = n
|
|
407
|
+
const r = e.getFilterFn(), i = n?.find((d) => d.id === e.id), l = I(t, i ? i.value : void 0);
|
|
418
408
|
if (ne(r, l, e)) {
|
|
419
409
|
var s;
|
|
420
|
-
return (s = n
|
|
410
|
+
return (s = n?.filter((d) => d.id !== e.id)) != null ? s : [];
|
|
421
411
|
}
|
|
422
412
|
const u = {
|
|
423
413
|
id: e.id,
|
|
@@ -425,7 +415,7 @@ const Ve = {
|
|
|
425
415
|
};
|
|
426
416
|
if (i) {
|
|
427
417
|
var g;
|
|
428
|
-
return (g = n
|
|
418
|
+
return (g = n?.map((d) => d.id === e.id ? u : d)) != null ? g : [];
|
|
429
419
|
}
|
|
430
420
|
return n != null && n.length ? [...n, u] : [u];
|
|
431
421
|
});
|
|
@@ -539,7 +529,7 @@ const Me = (e, o, t) => t.reduce((n, r) => {
|
|
|
539
529
|
t && e.toggleGrouping();
|
|
540
530
|
};
|
|
541
531
|
}, e.getAutoAggregationFn = () => {
|
|
542
|
-
const t = o.getCoreRowModel().flatRows[0], n = t
|
|
532
|
+
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
|
543
533
|
if (typeof n == "number")
|
|
544
534
|
return z.sum;
|
|
545
535
|
if (Object.prototype.toString.call(n) === "[object Date]")
|
|
@@ -587,7 +577,7 @@ const ze = {
|
|
|
587
577
|
onColumnOrderChange: $("columnOrder", e)
|
|
588
578
|
}),
|
|
589
579
|
createColumn: (e, o) => {
|
|
590
|
-
e.getIndex =
|
|
580
|
+
e.getIndex = m((t) => [E(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
591
581
|
var n;
|
|
592
582
|
return ((n = E(o, t)[0]) == null ? void 0 : n.id) === e.id;
|
|
593
583
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -600,7 +590,7 @@ const ze = {
|
|
|
600
590
|
e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
|
|
601
591
|
var t;
|
|
602
592
|
e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
|
603
|
-
}, e._getOrderColumnsFn =
|
|
593
|
+
}, e._getOrderColumnsFn = m(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
|
|
604
594
|
let i = [];
|
|
605
595
|
if (!(o != null && o.length))
|
|
606
596
|
i = r;
|
|
@@ -613,7 +603,7 @@ const ze = {
|
|
|
613
603
|
i = [...i, ...s];
|
|
614
604
|
}
|
|
615
605
|
return Le(i, t, n);
|
|
616
|
-
},
|
|
606
|
+
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
617
607
|
}
|
|
618
608
|
}, O = () => ({
|
|
619
609
|
left: [],
|
|
@@ -634,20 +624,20 @@ const ze = {
|
|
|
634
624
|
if (t === "right") {
|
|
635
625
|
var s, u;
|
|
636
626
|
return {
|
|
637
|
-
left: ((s = r
|
|
638
|
-
right: [...((u = r
|
|
627
|
+
left: ((s = r?.left) != null ? s : []).filter((S) => !(n != null && n.includes(S))),
|
|
628
|
+
right: [...((u = r?.right) != null ? u : []).filter((S) => !(n != null && n.includes(S))), ...n]
|
|
639
629
|
};
|
|
640
630
|
}
|
|
641
631
|
if (t === "left") {
|
|
642
632
|
var g, d;
|
|
643
633
|
return {
|
|
644
|
-
left: [...((g = r
|
|
645
|
-
right: ((d = r
|
|
634
|
+
left: [...((g = r?.left) != null ? g : []).filter((S) => !(n != null && n.includes(S))), ...n],
|
|
635
|
+
right: ((d = r?.right) != null ? d : []).filter((S) => !(n != null && n.includes(S)))
|
|
646
636
|
};
|
|
647
637
|
}
|
|
648
638
|
return {
|
|
649
|
-
left: ((i = r
|
|
650
|
-
right: ((l = r
|
|
639
|
+
left: ((i = r?.left) != null ? i : []).filter((S) => !(n != null && n.includes(S))),
|
|
640
|
+
right: ((l = r?.right) != null ? l : []).filter((S) => !(n != null && n.includes(S)))
|
|
651
641
|
};
|
|
652
642
|
});
|
|
653
643
|
}, e.getCanPin = () => e.getLeafColumns().some((n) => {
|
|
@@ -657,7 +647,7 @@ const ze = {
|
|
|
657
647
|
const t = e.getLeafColumns().map((s) => s.id), {
|
|
658
648
|
left: n,
|
|
659
649
|
right: r
|
|
660
|
-
} = o.getState().columnPinning, i = t.some((s) => n
|
|
650
|
+
} = o.getState().columnPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
|
|
661
651
|
return i ? "left" : l ? "right" : !1;
|
|
662
652
|
}, e.getPinnedIndex = () => {
|
|
663
653
|
var t, n;
|
|
@@ -666,16 +656,16 @@ const ze = {
|
|
|
666
656
|
};
|
|
667
657
|
},
|
|
668
658
|
createRow: (e, o) => {
|
|
669
|
-
e.getCenterVisibleCells =
|
|
659
|
+
e.getCenterVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
|
|
670
660
|
const i = [...n ?? [], ...r ?? []];
|
|
671
661
|
return t.filter((l) => !i.includes(l.column.id));
|
|
672
|
-
},
|
|
662
|
+
}, C(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
673
663
|
...i,
|
|
674
664
|
position: "left"
|
|
675
|
-
})),
|
|
665
|
+
})), C(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
676
666
|
...i,
|
|
677
667
|
position: "right"
|
|
678
|
-
})),
|
|
668
|
+
})), C(o.options, "debugRows", "getRightVisibleCells"));
|
|
679
669
|
},
|
|
680
670
|
createTable: (e) => {
|
|
681
671
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
@@ -689,10 +679,10 @@ const ze = {
|
|
|
689
679
|
return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
|
|
690
680
|
}
|
|
691
681
|
return !!((t = n[o]) != null && t.length);
|
|
692
|
-
}, e.getLeftLeafColumns =
|
|
682
|
+
}, e.getLeftLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
|
|
693
683
|
const r = [...t ?? [], ...n ?? []];
|
|
694
684
|
return o.filter((i) => !r.includes(i.id));
|
|
695
|
-
},
|
|
685
|
+
}, C(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
696
686
|
}
|
|
697
687
|
};
|
|
698
688
|
function Be(e) {
|
|
@@ -727,7 +717,7 @@ const G = {
|
|
|
727
717
|
var t, n, r;
|
|
728
718
|
const i = o.getState().columnSizing[e.id];
|
|
729
719
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : G.minSize, (n = i ?? e.columnDef.size) != null ? n : G.size), (r = e.columnDef.maxSize) != null ? r : G.maxSize);
|
|
730
|
-
}, e.getStart =
|
|
720
|
+
}, e.getStart = m((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getStart")), e.getAfter = m((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
731
721
|
o.setColumnSizing((t) => {
|
|
732
722
|
let {
|
|
733
723
|
[e.id]: n,
|
|
@@ -759,14 +749,14 @@ const G = {
|
|
|
759
749
|
}
|
|
760
750
|
return 0;
|
|
761
751
|
}, e.getResizeHandler = (t) => {
|
|
762
|
-
const n = o.getColumn(e.column.id), r = n
|
|
752
|
+
const n = o.getColumn(e.column.id), r = n?.getCanResize();
|
|
763
753
|
return (i) => {
|
|
764
754
|
if (!n || !r || (i.persist == null || i.persist(), T(i) && i.touches && i.touches.length > 1))
|
|
765
755
|
return;
|
|
766
756
|
const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = T(i) ? Math.round(i.touches[0].clientX) : i.clientX, g = {}, d = (R, v) => {
|
|
767
757
|
typeof v == "number" && (o.setColumnSizingInfo((h) => {
|
|
768
758
|
var M, F;
|
|
769
|
-
const D = o.options.columnResizeDirection === "rtl" ? -1 : 1, Z = (v - ((M = h
|
|
759
|
+
const D = o.options.columnResizeDirection === "rtl" ? -1 : 1, Z = (v - ((M = h?.startOffset) != null ? M : 0)) * D, b = Math.max(Z / ((F = h?.startSize) != null ? F : 0), -0.999999);
|
|
770
760
|
return h.columnSizingStart.forEach((fe) => {
|
|
771
761
|
let [ce, ee] = fe;
|
|
772
762
|
g[ce] = Math.round(Math.max(ee + ee * b, 0) * 100) / 100;
|
|
@@ -792,18 +782,18 @@ const G = {
|
|
|
792
782
|
}, a = Be(t), c = {
|
|
793
783
|
moveHandler: (R) => S(R.clientX),
|
|
794
784
|
upHandler: (R) => {
|
|
795
|
-
a
|
|
785
|
+
a?.removeEventListener("mousemove", c.moveHandler), a?.removeEventListener("mouseup", c.upHandler), f(R.clientX);
|
|
796
786
|
}
|
|
797
787
|
}, p = {
|
|
798
788
|
moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), S(R.touches[0].clientX), !1),
|
|
799
789
|
upHandler: (R) => {
|
|
800
790
|
var v;
|
|
801
|
-
a
|
|
791
|
+
a?.removeEventListener("touchmove", p.moveHandler), a?.removeEventListener("touchend", p.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), f((v = R.touches[0]) == null ? void 0 : v.clientX);
|
|
802
792
|
}
|
|
803
793
|
}, w = qe() ? {
|
|
804
794
|
passive: !1
|
|
805
795
|
} : !1;
|
|
806
|
-
T(i) ? (a
|
|
796
|
+
T(i) ? (a?.addEventListener("touchmove", p.moveHandler, w), a?.addEventListener("touchend", p.upHandler, w)) : (a?.addEventListener("mousemove", c.moveHandler, w), a?.addEventListener("mouseup", c.upHandler, w)), o.setColumnSizingInfo((R) => ({
|
|
807
797
|
...R,
|
|
808
798
|
startOffset: u,
|
|
809
799
|
startSize: l,
|
|
@@ -883,10 +873,10 @@ const Ne = {
|
|
|
883
873
|
};
|
|
884
874
|
},
|
|
885
875
|
createRow: (e, o) => {
|
|
886
|
-
e._getAllVisibleCells =
|
|
876
|
+
e._getAllVisibleCells = m(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), C(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = m(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], C(o.options, "debugRows", "getVisibleCells"));
|
|
887
877
|
},
|
|
888
878
|
createTable: (e) => {
|
|
889
|
-
const o = (t, n) =>
|
|
879
|
+
const o = (t, n) => m(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), C(e.options, "debugColumns", t));
|
|
890
880
|
e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
891
881
|
var n;
|
|
892
882
|
e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
|
|
@@ -1016,7 +1006,7 @@ const ke = {
|
|
|
1016
1006
|
}, e.getIsExpanded = () => {
|
|
1017
1007
|
var t;
|
|
1018
1008
|
const n = o.getState().expanded;
|
|
1019
|
-
return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n
|
|
1009
|
+
return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n?.[e.id]);
|
|
1020
1010
|
}, e.getCanExpand = () => {
|
|
1021
1011
|
var t, n, r;
|
|
1022
1012
|
return (t = o.options.getRowCanExpand == null ? void 0 : o.options.getRowCanExpand(e)) != null ? t : ((n = o.options.enableExpanding) != null ? n : !0) && !!((r = e.subRows) != null && r.length);
|
|
@@ -1040,7 +1030,7 @@ const ke = {
|
|
|
1040
1030
|
...e,
|
|
1041
1031
|
pagination: {
|
|
1042
1032
|
...q(),
|
|
1043
|
-
...e
|
|
1033
|
+
...e?.pagination
|
|
1044
1034
|
}
|
|
1045
1035
|
}),
|
|
1046
1036
|
getDefaultOptions: (e) => ({
|
|
@@ -1099,10 +1089,10 @@ const ke = {
|
|
|
1099
1089
|
...r,
|
|
1100
1090
|
pageCount: l
|
|
1101
1091
|
};
|
|
1102
|
-
}), e.getPageOptions =
|
|
1092
|
+
}), e.getPageOptions = m(() => [e.getPageCount()], (n) => {
|
|
1103
1093
|
let r = [];
|
|
1104
1094
|
return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
|
|
1105
|
-
},
|
|
1095
|
+
}, C(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
1106
1096
|
const {
|
|
1107
1097
|
pageIndex: n
|
|
1108
1098
|
} = e.getState().pagination, r = e.getPageCount();
|
|
@@ -1144,20 +1134,20 @@ const ke = {
|
|
|
1144
1134
|
if (t === "bottom") {
|
|
1145
1135
|
var S, f;
|
|
1146
1136
|
return {
|
|
1147
|
-
top: ((S = u
|
|
1148
|
-
bottom: [...((f = u
|
|
1137
|
+
top: ((S = u?.top) != null ? S : []).filter((p) => !(s != null && s.has(p))),
|
|
1138
|
+
bottom: [...((f = u?.bottom) != null ? f : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)]
|
|
1149
1139
|
};
|
|
1150
1140
|
}
|
|
1151
1141
|
if (t === "top") {
|
|
1152
1142
|
var a, c;
|
|
1153
1143
|
return {
|
|
1154
|
-
top: [...((a = u
|
|
1155
|
-
bottom: ((c = u
|
|
1144
|
+
top: [...((a = u?.top) != null ? a : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)],
|
|
1145
|
+
bottom: ((c = u?.bottom) != null ? c : []).filter((p) => !(s != null && s.has(p)))
|
|
1156
1146
|
};
|
|
1157
1147
|
}
|
|
1158
1148
|
return {
|
|
1159
|
-
top: ((g = u
|
|
1160
|
-
bottom: ((d = u
|
|
1149
|
+
top: ((g = u?.top) != null ? g : []).filter((p) => !(s != null && s.has(p))),
|
|
1150
|
+
bottom: ((d = u?.bottom) != null ? d : []).filter((p) => !(s != null && s.has(p)))
|
|
1161
1151
|
};
|
|
1162
1152
|
});
|
|
1163
1153
|
}, e.getCanPin = () => {
|
|
@@ -1171,7 +1161,7 @@ const ke = {
|
|
|
1171
1161
|
const t = [e.id], {
|
|
1172
1162
|
top: n,
|
|
1173
1163
|
bottom: r
|
|
1174
|
-
} = o.getState().rowPinning, i = t.some((s) => n
|
|
1164
|
+
} = o.getState().rowPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
|
|
1175
1165
|
return i ? "top" : l ? "bottom" : !1;
|
|
1176
1166
|
}, e.getPinnedIndex = () => {
|
|
1177
1167
|
var t, n;
|
|
@@ -1183,7 +1173,7 @@ const ke = {
|
|
|
1183
1173
|
} = l;
|
|
1184
1174
|
return s;
|
|
1185
1175
|
});
|
|
1186
|
-
return (n = i
|
|
1176
|
+
return (n = i?.indexOf(e.id)) != null ? n : -1;
|
|
1187
1177
|
};
|
|
1188
1178
|
},
|
|
1189
1179
|
createTable: (e) => {
|
|
@@ -1214,10 +1204,10 @@ const ke = {
|
|
|
1214
1204
|
...l,
|
|
1215
1205
|
position: n
|
|
1216
1206
|
}));
|
|
1217
|
-
}, e.getTopRows =
|
|
1207
|
+
}, e.getTopRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), C(e.options, "debugRows", "getTopRows")), e.getBottomRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), C(e.options, "debugRows", "getBottomRows")), e.getCenterRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
|
|
1218
1208
|
const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
|
|
1219
1209
|
return o.filter((i) => !r.has(i.id));
|
|
1220
|
-
},
|
|
1210
|
+
}, C(e.options, "debugRows", "getCenterRows"));
|
|
1221
1211
|
}
|
|
1222
1212
|
}, Je = {
|
|
1223
1213
|
getInitialState: (e) => ({
|
|
@@ -1256,19 +1246,19 @@ const ke = {
|
|
|
1256
1246
|
return e.getRowModel().rows.forEach((i) => {
|
|
1257
1247
|
X(r, i.id, n, !0, e);
|
|
1258
1248
|
}), r;
|
|
1259
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel =
|
|
1249
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1260
1250
|
rows: [],
|
|
1261
1251
|
flatRows: [],
|
|
1262
1252
|
rowsById: {}
|
|
1263
|
-
},
|
|
1253
|
+
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1264
1254
|
rows: [],
|
|
1265
1255
|
flatRows: [],
|
|
1266
1256
|
rowsById: {}
|
|
1267
|
-
},
|
|
1257
|
+
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1268
1258
|
rows: [],
|
|
1269
1259
|
flatRows: [],
|
|
1270
1260
|
rowsById: {}
|
|
1271
|
-
},
|
|
1261
|
+
}, C(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
1272
1262
|
const o = e.getFilteredRowModel().flatRows, {
|
|
1273
1263
|
rowSelection: t
|
|
1274
1264
|
} = e.getState();
|
|
@@ -1303,7 +1293,7 @@ const ke = {
|
|
|
1303
1293
|
const s = {
|
|
1304
1294
|
...i
|
|
1305
1295
|
};
|
|
1306
|
-
return X(s, e.id, t, (l = n
|
|
1296
|
+
return X(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
|
|
1307
1297
|
});
|
|
1308
1298
|
}, e.getIsSelected = () => {
|
|
1309
1299
|
const {
|
|
@@ -1430,7 +1420,7 @@ const y = {
|
|
|
1430
1420
|
const t = o.getFilteredRowModel().flatRows.slice(10);
|
|
1431
1421
|
let n = !1;
|
|
1432
1422
|
for (const r of t) {
|
|
1433
|
-
const i = r
|
|
1423
|
+
const i = r?.getValue(e.id);
|
|
1434
1424
|
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
1435
1425
|
return y.datetime;
|
|
1436
1426
|
if (typeof i == "string" && (n = !0, i.split(J).length > 1))
|
|
@@ -1439,7 +1429,7 @@ const y = {
|
|
|
1439
1429
|
return n ? y.text : y.basic;
|
|
1440
1430
|
}, e.getAutoSortDir = () => {
|
|
1441
1431
|
const t = o.getFilteredRowModel().flatRows[0];
|
|
1442
|
-
return typeof
|
|
1432
|
+
return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
|
|
1443
1433
|
}, e.getSortingFn = () => {
|
|
1444
1434
|
var t, n;
|
|
1445
1435
|
if (!e)
|
|
@@ -1448,7 +1438,7 @@ const y = {
|
|
|
1448
1438
|
}, e.toggleSorting = (t, n) => {
|
|
1449
1439
|
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
1450
1440
|
o.setSorting((l) => {
|
|
1451
|
-
const s = l
|
|
1441
|
+
const s = l?.find((a) => a.id === e.id), u = l?.findIndex((a) => a.id === e.id);
|
|
1452
1442
|
let g = [], d, S = i ? t : r === "desc";
|
|
1453
1443
|
if (l != null && l.length && e.getCanMultiSort() && n ? s ? d = "toggle" : d = "add" : l != null && l.length && u !== l.length - 1 ? d = "replace" : s ? d = "toggle" : d = "replace", d === "toggle" && (i || r || (d = "remove")), d === "add") {
|
|
1454
1444
|
var f;
|
|
@@ -1584,7 +1574,7 @@ function st(e) {
|
|
|
1584
1574
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${f}`) : new Error();
|
|
1585
1575
|
return c;
|
|
1586
1576
|
},
|
|
1587
|
-
_getDefaultColumnDef:
|
|
1577
|
+
_getDefaultColumnDef: m(() => [r.options.defaultColumn], (f) => {
|
|
1588
1578
|
var a;
|
|
1589
1579
|
return f = (a = f) != null ? a : {}, {
|
|
1590
1580
|
header: (c) => {
|
|
@@ -1599,9 +1589,9 @@ function st(e) {
|
|
|
1599
1589
|
...r._features.reduce((c, p) => Object.assign(c, p.getDefaultColumnDef == null ? void 0 : p.getDefaultColumnDef()), {}),
|
|
1600
1590
|
...f
|
|
1601
1591
|
};
|
|
1602
|
-
},
|
|
1592
|
+
}, C(e, "debugColumns", "_getDefaultColumnDef")),
|
|
1603
1593
|
_getColumnDefs: () => r.options.columns,
|
|
1604
|
-
getAllColumns:
|
|
1594
|
+
getAllColumns: m(() => [r._getColumnDefs()], (f) => {
|
|
1605
1595
|
const a = function(c, p, w) {
|
|
1606
1596
|
return w === void 0 && (w = 0), c.map((R) => {
|
|
1607
1597
|
const v = he(r, R, w, p), h = R;
|
|
@@ -1609,13 +1599,13 @@ function st(e) {
|
|
|
1609
1599
|
});
|
|
1610
1600
|
};
|
|
1611
1601
|
return a(f);
|
|
1612
|
-
},
|
|
1613
|
-
getAllFlatColumns:
|
|
1614
|
-
_getAllFlatColumnsById:
|
|
1615
|
-
getAllLeafColumns:
|
|
1602
|
+
}, C(e, "debugColumns", "getAllColumns")),
|
|
1603
|
+
getAllFlatColumns: m(() => [r.getAllColumns()], (f) => f.flatMap((a) => a.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
|
|
1604
|
+
_getAllFlatColumnsById: m(() => [r.getAllFlatColumns()], (f) => f.reduce((a, c) => (a[c.id] = c, a), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
|
|
1605
|
+
getAllLeafColumns: m(() => [r.getAllColumns(), r._getOrderColumnsFn()], (f, a) => {
|
|
1616
1606
|
let c = f.flatMap((p) => p.getLeafColumns());
|
|
1617
1607
|
return a(c);
|
|
1618
|
-
},
|
|
1608
|
+
}, C(e, "debugColumns", "getAllLeafColumns")),
|
|
1619
1609
|
getColumn: (f) => {
|
|
1620
1610
|
const a = r._getAllFlatColumnsById()[f];
|
|
1621
1611
|
return process.env.NODE_ENV !== "production" && !a && console.error(`[Table] Column with id '${f}' does not exist.`), a;
|
|
@@ -1629,7 +1619,7 @@ function st(e) {
|
|
|
1629
1619
|
return r;
|
|
1630
1620
|
}
|
|
1631
1621
|
function ut() {
|
|
1632
|
-
return (e) =>
|
|
1622
|
+
return (e) => m(() => [e.options.data], (o) => {
|
|
1633
1623
|
const t = {
|
|
1634
1624
|
rows: [],
|
|
1635
1625
|
flatRows: [],
|
|
@@ -1638,7 +1628,7 @@ function ut() {
|
|
|
1638
1628
|
i === void 0 && (i = 0);
|
|
1639
1629
|
const s = [];
|
|
1640
1630
|
for (let g = 0; g < r.length; g++) {
|
|
1641
|
-
const d = Fe(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l
|
|
1631
|
+
const d = Fe(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l?.id);
|
|
1642
1632
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
|
|
1643
1633
|
var u;
|
|
1644
1634
|
d.originalSubRows = e.options.getSubRows(r[g], g), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, i + 1, d));
|
|
@@ -1647,10 +1637,10 @@ function ut() {
|
|
|
1647
1637
|
return s;
|
|
1648
1638
|
};
|
|
1649
1639
|
return t.rows = n(o), t;
|
|
1650
|
-
},
|
|
1640
|
+
}, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
1651
1641
|
}
|
|
1652
1642
|
function gt() {
|
|
1653
|
-
return (e) =>
|
|
1643
|
+
return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
1654
1644
|
if (!t.rows.length || !(o != null && o.length))
|
|
1655
1645
|
return t;
|
|
1656
1646
|
const n = e.getState().sorting, r = [], i = n.filter((u) => {
|
|
@@ -1672,7 +1662,7 @@ function gt() {
|
|
|
1672
1662
|
return g.sort((d, S) => {
|
|
1673
1663
|
for (let a = 0; a < i.length; a += 1) {
|
|
1674
1664
|
var f;
|
|
1675
|
-
const c = i[a], p = l[c.id], w = p.sortUndefined, R = (f = c
|
|
1665
|
+
const c = i[a], p = l[c.id], w = p.sortUndefined, R = (f = c?.desc) != null ? f : !1;
|
|
1676
1666
|
let v = 0;
|
|
1677
1667
|
if (w) {
|
|
1678
1668
|
const h = d.getValue(c.id), M = S.getValue(c.id), F = h === void 0, D = M === void 0;
|
|
@@ -1696,27 +1686,27 @@ function gt() {
|
|
|
1696
1686
|
flatRows: r,
|
|
1697
1687
|
rowsById: t.rowsById
|
|
1698
1688
|
};
|
|
1699
|
-
},
|
|
1689
|
+
}, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1700
1690
|
}
|
|
1701
1691
|
const at = (e, o) => {
|
|
1702
|
-
const t =
|
|
1692
|
+
const t = Ce();
|
|
1703
1693
|
return o ? o.map(
|
|
1704
1694
|
(r) => [r.key, r]
|
|
1705
1695
|
).map(([r, i]) => {
|
|
1706
|
-
const l = !!
|
|
1696
|
+
const l = !!i?.sort || !!i?.sortFn, s = {
|
|
1707
1697
|
id: r,
|
|
1708
1698
|
cell: (u) => /* @__PURE__ */ pe(
|
|
1709
1699
|
Se,
|
|
1710
1700
|
{
|
|
1711
|
-
format:
|
|
1701
|
+
format: i?.format ?? ot(u.getValue()),
|
|
1712
1702
|
value: u.getValue(),
|
|
1713
1703
|
row: u.row.original
|
|
1714
1704
|
}
|
|
1715
1705
|
),
|
|
1716
|
-
header: () => i
|
|
1706
|
+
header: () => i?.label,
|
|
1717
1707
|
enableSorting: l
|
|
1718
1708
|
};
|
|
1719
|
-
return i
|
|
1709
|
+
return i?.sortFn && (s.sortingFn = i.sortFn), t.accessor(
|
|
1720
1710
|
(u) => u[r],
|
|
1721
1711
|
s
|
|
1722
1712
|
// The typing is weird, cannot get it to work without the never cast, its typed properly above anyway
|
|
@@ -1725,7 +1715,7 @@ const at = (e, o) => {
|
|
|
1725
1715
|
(r) => t.accessor((i) => i[r], {
|
|
1726
1716
|
id: r,
|
|
1727
1717
|
cell: (i) => i.getValue(),
|
|
1728
|
-
header: () =>
|
|
1718
|
+
header: () => me(r),
|
|
1729
1719
|
enableSorting: !1
|
|
1730
1720
|
})
|
|
1731
1721
|
);
|