@iress-oss/ids-components 6.0.0-alpha.0 → 6.0.0-alpha.1
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-CLvWVHp6.js +358 -0
- package/dist/{Button-BXzmntRi.js → Button-D6AL0bia.js} +86 -85
- package/dist/Provider-BXQiO7Gp.js +64 -0
- package/dist/{TableProvider-D8SQKIG8.js → TableProvider-_4Whj6P5.js} +11 -11
- package/dist/components/Alert/Alert.js +34 -35
- package/dist/components/Alert/Alert.styles.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/Checkbox/Checkbox.js +85 -86
- package/dist/components/Checkbox/Checkbox.styles.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +69 -74
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
- 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 +3 -2
- package/dist/components/Divider/Divider.js +2 -2
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.js +46 -41
- package/dist/components/Expander/Expander.styles.js +2 -2
- package/dist/components/Field/Field.js +55 -54
- package/dist/components/Field/Field.styles.js +10 -3
- package/dist/components/Field/FieldGroup/FieldGroup.js +40 -40
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +1 -1
- package/dist/components/Field/components/FieldFooter.js +32 -32
- package/dist/components/Field/components/FieldHint.js +2 -2
- package/dist/components/Filter/Filter.js +213 -100
- package/dist/components/Filter/Filter.styles.js +1 -1
- 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 +1 -1
- package/dist/components/Input/Input.js +98 -102
- package/dist/components/Input/Input.styles.js +1 -1
- package/dist/components/Input/InputBase/InputBase.js +23 -23
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +32 -32
- package/dist/components/Link/Link.js +50 -51
- package/dist/components/Link/Link.styles.js +2 -1
- package/dist/components/Menu/Menu.js +51 -51
- package/dist/components/Menu/Menu.styles.js +1 -1
- 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 +119 -123
- package/dist/components/Modal/Modal.styles.js +15 -6
- 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 +4 -4
- package/dist/components/Progress/Progress.styles.js +1 -1
- package/dist/components/Provider/Provider.js +12 -35
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +79 -80
- package/dist/components/Radio/Radio.styles.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +69 -77
- package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/components/Readonly/Readonly.js +44 -43
- package/dist/components/Readonly/Readonly.styles.js +8 -13
- package/dist/components/RichSelect/RichSelect.js +21 -86
- package/dist/components/RichSelect/RichSelect.styles.js +1 -1
- 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 +1 -1
- 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 +161 -105
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +2 -2
- package/dist/components/Slideout/Slideout.js +155 -160
- package/dist/components/Slideout/Slideout.styles.js +1 -1
- 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 +1 -1
- 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 +3 -3
- package/dist/components/TabSet/Tab/Tab.js +88 -88
- package/dist/components/TabSet/Tab/Tab.styles.js +1 -1
- package/dist/components/TabSet/TabSet.js +69 -59
- package/dist/components/TabSet/TabSet.styles.js +1 -1
- 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 +1 -2
- 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 +2 -2
- package/dist/components/Text/index.js +1 -2
- package/dist/components/Toaster/Toaster.js +59 -11
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- 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 +1 -1
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +36 -37
- package/dist/components/Toaster/hooks/useToaster.js +24 -22
- package/dist/components/Toaster/index.js +5 -4
- package/dist/components/Toggle/Toggle.js +42 -42
- package/dist/components/Toggle/Toggle.styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +25 -26
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/{composeTableColumnDefs-CeWqgpKW.js → composeTableColumnDefs-Hmd6yfdj.js} +99 -99
- 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-CmSaAiNF.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/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-CvOVcYUc.js} +40 -14
- package/dist/{index.esm-BnSuefUA.js → index.esm-8uZEha-3.js} +1 -1
- package/dist/{index.esm-BdbWn-w_.js → index.esm-B6vzbp0e.js} +5 -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 +19 -7
- package/dist/patterns/Loading/LoadingSuspense.js +26 -26
- package/dist/patterns/Loading/components/ComponentLoading.js +49 -49
- 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 +63 -60
- package/dist/patterns/Loading/components/StartUpLoading.js +61 -59
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/hooks/useShowIndicator.js +11 -11
- package/dist/patterns/Shadow/Shadow.js +32235 -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 +1 -1
- 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/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/components/Field/Field.styles.d.ts +8 -1
- package/dist/src/components/Field/FieldGroup/FieldGroup.styles.d.ts +1 -1
- package/dist/src/components/Label/Label.styles.d.ts +1 -1
- package/dist/src/components/Modal/Modal.styles.d.ts +6 -0
- 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/Readonly/Readonly.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +11 -1
- 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/Slideout/SlideoutProvider.d.ts +0 -6
- package/dist/src/components/Slideout/hooks/useSlideout.d.ts +7 -0
- 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/hooks/useToaster.d.ts +7 -6
- package/dist/src/enums.d.ts +1 -9
- package/dist/src/interfaces.d.ts +1 -0
- 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 +1 -0
- 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 +47 -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 +21 -6
- package/dist/src/styled-system/types/prop-type.d.ts +9 -2
- 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/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,6 +1,6 @@
|
|
|
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
|
|
3
|
+
import { formatObjectKey as me } from "./helpers/formatting/formatObjectKey.js";
|
|
4
4
|
/**
|
|
5
5
|
* table-core
|
|
6
6
|
*
|
|
@@ -11,7 +11,7 @@ import { formatObjectKey as Ce } from "./helpers/formatting/formatObjectKey.js";
|
|
|
11
11
|
*
|
|
12
12
|
* @license MIT
|
|
13
13
|
*/
|
|
14
|
-
function
|
|
14
|
+
function Ce() {
|
|
15
15
|
return {
|
|
16
16
|
accessor: (e, o) => typeof e == "function" ? {
|
|
17
17
|
...o,
|
|
@@ -51,7 +51,7 @@ function we(e, o) {
|
|
|
51
51
|
};
|
|
52
52
|
return n(e), t;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function m(e, o, t) {
|
|
55
55
|
let n = [], r;
|
|
56
56
|
return (i) => {
|
|
57
57
|
let l;
|
|
@@ -70,16 +70,16 @@ function C(e, o, t) {
|
|
|
70
70
|
console.info(`%c⏱ ${a(S, 5)} /${a(d, 5)} ms`, `
|
|
71
71
|
font-size: .6rem;
|
|
72
72
|
font-weight: bold;
|
|
73
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 * f, 120))}deg 100% 31%);`, t
|
|
73
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * f, 120))}deg 100% 31%);`, t?.key);
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function C(e, o, t, n) {
|
|
79
79
|
return {
|
|
80
80
|
debug: () => {
|
|
81
81
|
var r;
|
|
82
|
-
return (r = e
|
|
82
|
+
return (r = e?.debugAll) != null ? r : e[o];
|
|
83
83
|
},
|
|
84
84
|
key: process.env.NODE_ENV === "development" && t,
|
|
85
85
|
onChange: n
|
|
@@ -95,14 +95,14 @@ function ve(e, o, t, n) {
|
|
|
95
95
|
column: t,
|
|
96
96
|
getValue: () => o.getValue(n),
|
|
97
97
|
renderValue: r,
|
|
98
|
-
getContext:
|
|
98
|
+
getContext: m(() => [e, t, o, i], (l, s, u, g) => ({
|
|
99
99
|
table: l,
|
|
100
100
|
column: s,
|
|
101
101
|
row: u,
|
|
102
102
|
cell: g,
|
|
103
103
|
getValue: g.getValue,
|
|
104
104
|
renderValue: g.renderValue
|
|
105
|
-
}),
|
|
105
|
+
}), C(e.options, "debugCells", "cell.getContext"))
|
|
106
106
|
};
|
|
107
107
|
return e._features.forEach((l) => {
|
|
108
108
|
l.createCell == null || l.createCell(i, t, o, e);
|
|
@@ -131,18 +131,18 @@ function he(e, o, t, n) {
|
|
|
131
131
|
depth: t,
|
|
132
132
|
columnDef: s,
|
|
133
133
|
columns: [],
|
|
134
|
-
getFlatColumns:
|
|
134
|
+
getFlatColumns: m(() => [!0], () => {
|
|
135
135
|
var f;
|
|
136
136
|
return [S, ...(f = S.columns) == null ? void 0 : f.flatMap((a) => a.getFlatColumns())];
|
|
137
|
-
},
|
|
138
|
-
getLeafColumns:
|
|
137
|
+
}, C(e.options, "debugColumns", "column.getFlatColumns")),
|
|
138
|
+
getLeafColumns: m(() => [e._getOrderColumnsFn()], (f) => {
|
|
139
139
|
var a;
|
|
140
140
|
if ((a = S.columns) != null && a.length) {
|
|
141
141
|
let c = S.columns.flatMap((p) => p.getLeafColumns());
|
|
142
142
|
return f(c);
|
|
143
143
|
}
|
|
144
144
|
return [S];
|
|
145
|
-
},
|
|
145
|
+
}, C(e.options, "debugColumns", "column.getLeafColumns"))
|
|
146
146
|
};
|
|
147
147
|
for (const f of e._features)
|
|
148
148
|
f.createColumn == null || f.createColumn(S, e);
|
|
@@ -180,31 +180,31 @@ function te(e, o, t) {
|
|
|
180
180
|
}
|
|
181
181
|
const _e = {
|
|
182
182
|
createTable: (e) => {
|
|
183
|
-
e.getHeaderGroups =
|
|
183
|
+
e.getHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
184
184
|
var i, l;
|
|
185
|
-
const s = (i = n
|
|
185
|
+
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
186
|
return H(o, [...s, ...g, ...u], e);
|
|
187
|
-
},
|
|
187
|
+
}, 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
188
|
var r;
|
|
189
|
-
const i = (r = n
|
|
189
|
+
const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
|
|
190
190
|
return H(o, i, e, "left");
|
|
191
|
-
},
|
|
191
|
+
}, C(e.options, _, "getLeftHeaderGroups")), e.getRightHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
192
192
|
var r;
|
|
193
|
-
const i = (r = n
|
|
193
|
+
const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
|
|
194
194
|
return H(o, i, e, "right");
|
|
195
|
-
},
|
|
195
|
+
}, 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
196
|
var n;
|
|
197
197
|
return !((n = t.subHeaders) != null && n.length);
|
|
198
|
-
}),
|
|
198
|
+
}), C(e.options, _, "getCenterLeafHeaders")), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
|
199
199
|
var n;
|
|
200
200
|
return !((n = t.subHeaders) != null && n.length);
|
|
201
|
-
}),
|
|
201
|
+
}), C(e.options, _, "getLeftLeafHeaders")), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
|
202
202
|
var n;
|
|
203
203
|
return !((n = t.subHeaders) != null && n.length);
|
|
204
|
-
}),
|
|
204
|
+
}), C(e.options, _, "getRightLeafHeaders")), e.getLeafHeaders = m(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
205
205
|
var r, i, l, s, u, g;
|
|
206
206
|
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
|
-
},
|
|
207
|
+
}, C(e.options, _, "getLeafHeaders"));
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
function H(e, o, t, n) {
|
|
@@ -227,11 +227,11 @@ function H(e, o, t, n) {
|
|
|
227
227
|
f.forEach((w) => {
|
|
228
228
|
const R = [...p].reverse()[0], v = w.column.depth === c.depth;
|
|
229
229
|
let h, M = !1;
|
|
230
|
-
if (v && w.column.parent ? h = w.column.parent : (h = w.column, M = !0), R &&
|
|
230
|
+
if (v && w.column.parent ? h = w.column.parent : (h = w.column, M = !0), R && R?.column === h)
|
|
231
231
|
R.subHeaders.push(w);
|
|
232
232
|
else {
|
|
233
233
|
const F = te(t, h, {
|
|
234
|
-
id: [n, a, h.id, w
|
|
234
|
+
id: [n, a, h.id, w?.id].filter(Boolean).join("_"),
|
|
235
235
|
isPlaceholder: M,
|
|
236
236
|
placeholderId: M ? `${p.filter((D) => D.column === h).length}` : void 0,
|
|
237
237
|
depth: a,
|
|
@@ -302,8 +302,8 @@ const Fe = (e, o, t, n, r, i, l) => {
|
|
|
302
302
|
}
|
|
303
303
|
return u.reverse();
|
|
304
304
|
},
|
|
305
|
-
getAllCells:
|
|
306
|
-
_getAllCellsByColumnId:
|
|
305
|
+
getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((g) => ve(e, s, g, g.id)), C(e.options, "debugRows", "getAllCells")),
|
|
306
|
+
_getAllCellsByColumnId: m(() => [s.getAllCells()], (u) => u.reduce((g, d) => (g[d.column.id] = d, g), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
307
307
|
};
|
|
308
308
|
for (let u = 0; u < e._features.length; u++) {
|
|
309
309
|
const g = e._features[u];
|
|
@@ -330,7 +330,7 @@ const re = (e, o, t) => {
|
|
|
330
330
|
re.autoRemove = (e) => V(e);
|
|
331
331
|
const ie = (e, o, t) => {
|
|
332
332
|
var n;
|
|
333
|
-
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) ===
|
|
333
|
+
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
|
|
334
334
|
};
|
|
335
335
|
ie.autoRemove = (e) => V(e);
|
|
336
336
|
const le = (e, o, t) => {
|
|
@@ -395,7 +395,7 @@ const Ve = {
|
|
|
395
395
|
}),
|
|
396
396
|
createColumn: (e, o) => {
|
|
397
397
|
e.getAutoFilterFn = () => {
|
|
398
|
-
const t = o.getCoreRowModel().flatRows[0], n = t
|
|
398
|
+
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
|
399
399
|
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
400
|
}, e.getFilterFn = () => {
|
|
401
401
|
var t, n;
|
|
@@ -414,10 +414,10 @@ const Ve = {
|
|
|
414
414
|
return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
415
415
|
}, e.setFilterValue = (t) => {
|
|
416
416
|
o.setColumnFilters((n) => {
|
|
417
|
-
const r = e.getFilterFn(), i = n
|
|
417
|
+
const r = e.getFilterFn(), i = n?.find((d) => d.id === e.id), l = I(t, i ? i.value : void 0);
|
|
418
418
|
if (ne(r, l, e)) {
|
|
419
419
|
var s;
|
|
420
|
-
return (s = n
|
|
420
|
+
return (s = n?.filter((d) => d.id !== e.id)) != null ? s : [];
|
|
421
421
|
}
|
|
422
422
|
const u = {
|
|
423
423
|
id: e.id,
|
|
@@ -425,7 +425,7 @@ const Ve = {
|
|
|
425
425
|
};
|
|
426
426
|
if (i) {
|
|
427
427
|
var g;
|
|
428
|
-
return (g = n
|
|
428
|
+
return (g = n?.map((d) => d.id === e.id ? u : d)) != null ? g : [];
|
|
429
429
|
}
|
|
430
430
|
return n != null && n.length ? [...n, u] : [u];
|
|
431
431
|
});
|
|
@@ -539,7 +539,7 @@ const Me = (e, o, t) => t.reduce((n, r) => {
|
|
|
539
539
|
t && e.toggleGrouping();
|
|
540
540
|
};
|
|
541
541
|
}, e.getAutoAggregationFn = () => {
|
|
542
|
-
const t = o.getCoreRowModel().flatRows[0], n = t
|
|
542
|
+
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
|
543
543
|
if (typeof n == "number")
|
|
544
544
|
return z.sum;
|
|
545
545
|
if (Object.prototype.toString.call(n) === "[object Date]")
|
|
@@ -587,7 +587,7 @@ const ze = {
|
|
|
587
587
|
onColumnOrderChange: $("columnOrder", e)
|
|
588
588
|
}),
|
|
589
589
|
createColumn: (e, o) => {
|
|
590
|
-
e.getIndex =
|
|
590
|
+
e.getIndex = m((t) => [E(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
591
591
|
var n;
|
|
592
592
|
return ((n = E(o, t)[0]) == null ? void 0 : n.id) === e.id;
|
|
593
593
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -600,7 +600,7 @@ const ze = {
|
|
|
600
600
|
e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
|
|
601
601
|
var t;
|
|
602
602
|
e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
|
603
|
-
}, e._getOrderColumnsFn =
|
|
603
|
+
}, e._getOrderColumnsFn = m(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
|
|
604
604
|
let i = [];
|
|
605
605
|
if (!(o != null && o.length))
|
|
606
606
|
i = r;
|
|
@@ -613,7 +613,7 @@ const ze = {
|
|
|
613
613
|
i = [...i, ...s];
|
|
614
614
|
}
|
|
615
615
|
return Le(i, t, n);
|
|
616
|
-
},
|
|
616
|
+
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
617
617
|
}
|
|
618
618
|
}, O = () => ({
|
|
619
619
|
left: [],
|
|
@@ -634,20 +634,20 @@ const ze = {
|
|
|
634
634
|
if (t === "right") {
|
|
635
635
|
var s, u;
|
|
636
636
|
return {
|
|
637
|
-
left: ((s = r
|
|
638
|
-
right: [...((u = r
|
|
637
|
+
left: ((s = r?.left) != null ? s : []).filter((S) => !(n != null && n.includes(S))),
|
|
638
|
+
right: [...((u = r?.right) != null ? u : []).filter((S) => !(n != null && n.includes(S))), ...n]
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
641
|
if (t === "left") {
|
|
642
642
|
var g, d;
|
|
643
643
|
return {
|
|
644
|
-
left: [...((g = r
|
|
645
|
-
right: ((d = r
|
|
644
|
+
left: [...((g = r?.left) != null ? g : []).filter((S) => !(n != null && n.includes(S))), ...n],
|
|
645
|
+
right: ((d = r?.right) != null ? d : []).filter((S) => !(n != null && n.includes(S)))
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
648
|
return {
|
|
649
|
-
left: ((i = r
|
|
650
|
-
right: ((l = r
|
|
649
|
+
left: ((i = r?.left) != null ? i : []).filter((S) => !(n != null && n.includes(S))),
|
|
650
|
+
right: ((l = r?.right) != null ? l : []).filter((S) => !(n != null && n.includes(S)))
|
|
651
651
|
};
|
|
652
652
|
});
|
|
653
653
|
}, e.getCanPin = () => e.getLeafColumns().some((n) => {
|
|
@@ -657,7 +657,7 @@ const ze = {
|
|
|
657
657
|
const t = e.getLeafColumns().map((s) => s.id), {
|
|
658
658
|
left: n,
|
|
659
659
|
right: r
|
|
660
|
-
} = o.getState().columnPinning, i = t.some((s) => n
|
|
660
|
+
} = o.getState().columnPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
|
|
661
661
|
return i ? "left" : l ? "right" : !1;
|
|
662
662
|
}, e.getPinnedIndex = () => {
|
|
663
663
|
var t, n;
|
|
@@ -666,16 +666,16 @@ const ze = {
|
|
|
666
666
|
};
|
|
667
667
|
},
|
|
668
668
|
createRow: (e, o) => {
|
|
669
|
-
e.getCenterVisibleCells =
|
|
669
|
+
e.getCenterVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
|
|
670
670
|
const i = [...n ?? [], ...r ?? []];
|
|
671
671
|
return t.filter((l) => !i.includes(l.column.id));
|
|
672
|
-
},
|
|
672
|
+
}, 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
673
|
...i,
|
|
674
674
|
position: "left"
|
|
675
|
-
})),
|
|
675
|
+
})), 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
676
|
...i,
|
|
677
677
|
position: "right"
|
|
678
|
-
})),
|
|
678
|
+
})), C(o.options, "debugRows", "getRightVisibleCells"));
|
|
679
679
|
},
|
|
680
680
|
createTable: (e) => {
|
|
681
681
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
@@ -689,10 +689,10 @@ const ze = {
|
|
|
689
689
|
return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
|
|
690
690
|
}
|
|
691
691
|
return !!((t = n[o]) != null && t.length);
|
|
692
|
-
}, e.getLeftLeafColumns =
|
|
692
|
+
}, 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
693
|
const r = [...t ?? [], ...n ?? []];
|
|
694
694
|
return o.filter((i) => !r.includes(i.id));
|
|
695
|
-
},
|
|
695
|
+
}, C(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
698
|
function Be(e) {
|
|
@@ -727,7 +727,7 @@ const G = {
|
|
|
727
727
|
var t, n, r;
|
|
728
728
|
const i = o.getState().columnSizing[e.id];
|
|
729
729
|
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 =
|
|
730
|
+
}, 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
731
|
o.setColumnSizing((t) => {
|
|
732
732
|
let {
|
|
733
733
|
[e.id]: n,
|
|
@@ -759,14 +759,14 @@ const G = {
|
|
|
759
759
|
}
|
|
760
760
|
return 0;
|
|
761
761
|
}, e.getResizeHandler = (t) => {
|
|
762
|
-
const n = o.getColumn(e.column.id), r = n
|
|
762
|
+
const n = o.getColumn(e.column.id), r = n?.getCanResize();
|
|
763
763
|
return (i) => {
|
|
764
764
|
if (!n || !r || (i.persist == null || i.persist(), T(i) && i.touches && i.touches.length > 1))
|
|
765
765
|
return;
|
|
766
766
|
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
767
|
typeof v == "number" && (o.setColumnSizingInfo((h) => {
|
|
768
768
|
var M, F;
|
|
769
|
-
const D = o.options.columnResizeDirection === "rtl" ? -1 : 1, Z = (v - ((M = h
|
|
769
|
+
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
770
|
return h.columnSizingStart.forEach((fe) => {
|
|
771
771
|
let [ce, ee] = fe;
|
|
772
772
|
g[ce] = Math.round(Math.max(ee + ee * b, 0) * 100) / 100;
|
|
@@ -792,18 +792,18 @@ const G = {
|
|
|
792
792
|
}, a = Be(t), c = {
|
|
793
793
|
moveHandler: (R) => S(R.clientX),
|
|
794
794
|
upHandler: (R) => {
|
|
795
|
-
a
|
|
795
|
+
a?.removeEventListener("mousemove", c.moveHandler), a?.removeEventListener("mouseup", c.upHandler), f(R.clientX);
|
|
796
796
|
}
|
|
797
797
|
}, p = {
|
|
798
798
|
moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), S(R.touches[0].clientX), !1),
|
|
799
799
|
upHandler: (R) => {
|
|
800
800
|
var v;
|
|
801
|
-
a
|
|
801
|
+
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
802
|
}
|
|
803
803
|
}, w = qe() ? {
|
|
804
804
|
passive: !1
|
|
805
805
|
} : !1;
|
|
806
|
-
T(i) ? (a
|
|
806
|
+
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
807
|
...R,
|
|
808
808
|
startOffset: u,
|
|
809
809
|
startSize: l,
|
|
@@ -883,10 +883,10 @@ const Ne = {
|
|
|
883
883
|
};
|
|
884
884
|
},
|
|
885
885
|
createRow: (e, o) => {
|
|
886
|
-
e._getAllVisibleCells =
|
|
886
|
+
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
887
|
},
|
|
888
888
|
createTable: (e) => {
|
|
889
|
-
const o = (t, n) =>
|
|
889
|
+
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
890
|
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
891
|
var n;
|
|
892
892
|
e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
|
|
@@ -1016,7 +1016,7 @@ const ke = {
|
|
|
1016
1016
|
}, e.getIsExpanded = () => {
|
|
1017
1017
|
var t;
|
|
1018
1018
|
const n = o.getState().expanded;
|
|
1019
|
-
return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n
|
|
1019
|
+
return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n?.[e.id]);
|
|
1020
1020
|
}, e.getCanExpand = () => {
|
|
1021
1021
|
var t, n, r;
|
|
1022
1022
|
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 +1040,7 @@ const ke = {
|
|
|
1040
1040
|
...e,
|
|
1041
1041
|
pagination: {
|
|
1042
1042
|
...q(),
|
|
1043
|
-
...e
|
|
1043
|
+
...e?.pagination
|
|
1044
1044
|
}
|
|
1045
1045
|
}),
|
|
1046
1046
|
getDefaultOptions: (e) => ({
|
|
@@ -1099,10 +1099,10 @@ const ke = {
|
|
|
1099
1099
|
...r,
|
|
1100
1100
|
pageCount: l
|
|
1101
1101
|
};
|
|
1102
|
-
}), e.getPageOptions =
|
|
1102
|
+
}), e.getPageOptions = m(() => [e.getPageCount()], (n) => {
|
|
1103
1103
|
let r = [];
|
|
1104
1104
|
return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
|
|
1105
|
-
},
|
|
1105
|
+
}, C(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
1106
1106
|
const {
|
|
1107
1107
|
pageIndex: n
|
|
1108
1108
|
} = e.getState().pagination, r = e.getPageCount();
|
|
@@ -1144,20 +1144,20 @@ const ke = {
|
|
|
1144
1144
|
if (t === "bottom") {
|
|
1145
1145
|
var S, f;
|
|
1146
1146
|
return {
|
|
1147
|
-
top: ((S = u
|
|
1148
|
-
bottom: [...((f = u
|
|
1147
|
+
top: ((S = u?.top) != null ? S : []).filter((p) => !(s != null && s.has(p))),
|
|
1148
|
+
bottom: [...((f = u?.bottom) != null ? f : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)]
|
|
1149
1149
|
};
|
|
1150
1150
|
}
|
|
1151
1151
|
if (t === "top") {
|
|
1152
1152
|
var a, c;
|
|
1153
1153
|
return {
|
|
1154
|
-
top: [...((a = u
|
|
1155
|
-
bottom: ((c = u
|
|
1154
|
+
top: [...((a = u?.top) != null ? a : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)],
|
|
1155
|
+
bottom: ((c = u?.bottom) != null ? c : []).filter((p) => !(s != null && s.has(p)))
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
1158
1158
|
return {
|
|
1159
|
-
top: ((g = u
|
|
1160
|
-
bottom: ((d = u
|
|
1159
|
+
top: ((g = u?.top) != null ? g : []).filter((p) => !(s != null && s.has(p))),
|
|
1160
|
+
bottom: ((d = u?.bottom) != null ? d : []).filter((p) => !(s != null && s.has(p)))
|
|
1161
1161
|
};
|
|
1162
1162
|
});
|
|
1163
1163
|
}, e.getCanPin = () => {
|
|
@@ -1171,7 +1171,7 @@ const ke = {
|
|
|
1171
1171
|
const t = [e.id], {
|
|
1172
1172
|
top: n,
|
|
1173
1173
|
bottom: r
|
|
1174
|
-
} = o.getState().rowPinning, i = t.some((s) => n
|
|
1174
|
+
} = o.getState().rowPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
|
|
1175
1175
|
return i ? "top" : l ? "bottom" : !1;
|
|
1176
1176
|
}, e.getPinnedIndex = () => {
|
|
1177
1177
|
var t, n;
|
|
@@ -1183,7 +1183,7 @@ const ke = {
|
|
|
1183
1183
|
} = l;
|
|
1184
1184
|
return s;
|
|
1185
1185
|
});
|
|
1186
|
-
return (n = i
|
|
1186
|
+
return (n = i?.indexOf(e.id)) != null ? n : -1;
|
|
1187
1187
|
};
|
|
1188
1188
|
},
|
|
1189
1189
|
createTable: (e) => {
|
|
@@ -1214,10 +1214,10 @@ const ke = {
|
|
|
1214
1214
|
...l,
|
|
1215
1215
|
position: n
|
|
1216
1216
|
}));
|
|
1217
|
-
}, e.getTopRows =
|
|
1217
|
+
}, 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
1218
|
const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
|
|
1219
1219
|
return o.filter((i) => !r.has(i.id));
|
|
1220
|
-
},
|
|
1220
|
+
}, C(e.options, "debugRows", "getCenterRows"));
|
|
1221
1221
|
}
|
|
1222
1222
|
}, Je = {
|
|
1223
1223
|
getInitialState: (e) => ({
|
|
@@ -1256,19 +1256,19 @@ const ke = {
|
|
|
1256
1256
|
return e.getRowModel().rows.forEach((i) => {
|
|
1257
1257
|
X(r, i.id, n, !0, e);
|
|
1258
1258
|
}), r;
|
|
1259
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel =
|
|
1259
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1260
1260
|
rows: [],
|
|
1261
1261
|
flatRows: [],
|
|
1262
1262
|
rowsById: {}
|
|
1263
|
-
},
|
|
1263
|
+
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1264
1264
|
rows: [],
|
|
1265
1265
|
flatRows: [],
|
|
1266
1266
|
rowsById: {}
|
|
1267
|
-
},
|
|
1267
|
+
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1268
1268
|
rows: [],
|
|
1269
1269
|
flatRows: [],
|
|
1270
1270
|
rowsById: {}
|
|
1271
|
-
},
|
|
1271
|
+
}, C(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
1272
1272
|
const o = e.getFilteredRowModel().flatRows, {
|
|
1273
1273
|
rowSelection: t
|
|
1274
1274
|
} = e.getState();
|
|
@@ -1303,7 +1303,7 @@ const ke = {
|
|
|
1303
1303
|
const s = {
|
|
1304
1304
|
...i
|
|
1305
1305
|
};
|
|
1306
|
-
return X(s, e.id, t, (l = n
|
|
1306
|
+
return X(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
|
|
1307
1307
|
});
|
|
1308
1308
|
}, e.getIsSelected = () => {
|
|
1309
1309
|
const {
|
|
@@ -1430,7 +1430,7 @@ const y = {
|
|
|
1430
1430
|
const t = o.getFilteredRowModel().flatRows.slice(10);
|
|
1431
1431
|
let n = !1;
|
|
1432
1432
|
for (const r of t) {
|
|
1433
|
-
const i = r
|
|
1433
|
+
const i = r?.getValue(e.id);
|
|
1434
1434
|
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
1435
1435
|
return y.datetime;
|
|
1436
1436
|
if (typeof i == "string" && (n = !0, i.split(J).length > 1))
|
|
@@ -1439,7 +1439,7 @@ const y = {
|
|
|
1439
1439
|
return n ? y.text : y.basic;
|
|
1440
1440
|
}, e.getAutoSortDir = () => {
|
|
1441
1441
|
const t = o.getFilteredRowModel().flatRows[0];
|
|
1442
|
-
return typeof
|
|
1442
|
+
return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
|
|
1443
1443
|
}, e.getSortingFn = () => {
|
|
1444
1444
|
var t, n;
|
|
1445
1445
|
if (!e)
|
|
@@ -1448,7 +1448,7 @@ const y = {
|
|
|
1448
1448
|
}, e.toggleSorting = (t, n) => {
|
|
1449
1449
|
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
1450
1450
|
o.setSorting((l) => {
|
|
1451
|
-
const s = l
|
|
1451
|
+
const s = l?.find((a) => a.id === e.id), u = l?.findIndex((a) => a.id === e.id);
|
|
1452
1452
|
let g = [], d, S = i ? t : r === "desc";
|
|
1453
1453
|
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
1454
|
var f;
|
|
@@ -1584,7 +1584,7 @@ function st(e) {
|
|
|
1584
1584
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${f}`) : new Error();
|
|
1585
1585
|
return c;
|
|
1586
1586
|
},
|
|
1587
|
-
_getDefaultColumnDef:
|
|
1587
|
+
_getDefaultColumnDef: m(() => [r.options.defaultColumn], (f) => {
|
|
1588
1588
|
var a;
|
|
1589
1589
|
return f = (a = f) != null ? a : {}, {
|
|
1590
1590
|
header: (c) => {
|
|
@@ -1599,9 +1599,9 @@ function st(e) {
|
|
|
1599
1599
|
...r._features.reduce((c, p) => Object.assign(c, p.getDefaultColumnDef == null ? void 0 : p.getDefaultColumnDef()), {}),
|
|
1600
1600
|
...f
|
|
1601
1601
|
};
|
|
1602
|
-
},
|
|
1602
|
+
}, C(e, "debugColumns", "_getDefaultColumnDef")),
|
|
1603
1603
|
_getColumnDefs: () => r.options.columns,
|
|
1604
|
-
getAllColumns:
|
|
1604
|
+
getAllColumns: m(() => [r._getColumnDefs()], (f) => {
|
|
1605
1605
|
const a = function(c, p, w) {
|
|
1606
1606
|
return w === void 0 && (w = 0), c.map((R) => {
|
|
1607
1607
|
const v = he(r, R, w, p), h = R;
|
|
@@ -1609,13 +1609,13 @@ function st(e) {
|
|
|
1609
1609
|
});
|
|
1610
1610
|
};
|
|
1611
1611
|
return a(f);
|
|
1612
|
-
},
|
|
1613
|
-
getAllFlatColumns:
|
|
1614
|
-
_getAllFlatColumnsById:
|
|
1615
|
-
getAllLeafColumns:
|
|
1612
|
+
}, C(e, "debugColumns", "getAllColumns")),
|
|
1613
|
+
getAllFlatColumns: m(() => [r.getAllColumns()], (f) => f.flatMap((a) => a.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
|
|
1614
|
+
_getAllFlatColumnsById: m(() => [r.getAllFlatColumns()], (f) => f.reduce((a, c) => (a[c.id] = c, a), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
|
|
1615
|
+
getAllLeafColumns: m(() => [r.getAllColumns(), r._getOrderColumnsFn()], (f, a) => {
|
|
1616
1616
|
let c = f.flatMap((p) => p.getLeafColumns());
|
|
1617
1617
|
return a(c);
|
|
1618
|
-
},
|
|
1618
|
+
}, C(e, "debugColumns", "getAllLeafColumns")),
|
|
1619
1619
|
getColumn: (f) => {
|
|
1620
1620
|
const a = r._getAllFlatColumnsById()[f];
|
|
1621
1621
|
return process.env.NODE_ENV !== "production" && !a && console.error(`[Table] Column with id '${f}' does not exist.`), a;
|
|
@@ -1629,7 +1629,7 @@ function st(e) {
|
|
|
1629
1629
|
return r;
|
|
1630
1630
|
}
|
|
1631
1631
|
function ut() {
|
|
1632
|
-
return (e) =>
|
|
1632
|
+
return (e) => m(() => [e.options.data], (o) => {
|
|
1633
1633
|
const t = {
|
|
1634
1634
|
rows: [],
|
|
1635
1635
|
flatRows: [],
|
|
@@ -1638,7 +1638,7 @@ function ut() {
|
|
|
1638
1638
|
i === void 0 && (i = 0);
|
|
1639
1639
|
const s = [];
|
|
1640
1640
|
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
|
|
1641
|
+
const d = Fe(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l?.id);
|
|
1642
1642
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
|
|
1643
1643
|
var u;
|
|
1644
1644
|
d.originalSubRows = e.options.getSubRows(r[g], g), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, i + 1, d));
|
|
@@ -1647,10 +1647,10 @@ function ut() {
|
|
|
1647
1647
|
return s;
|
|
1648
1648
|
};
|
|
1649
1649
|
return t.rows = n(o), t;
|
|
1650
|
-
},
|
|
1650
|
+
}, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
1651
1651
|
}
|
|
1652
1652
|
function gt() {
|
|
1653
|
-
return (e) =>
|
|
1653
|
+
return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
1654
1654
|
if (!t.rows.length || !(o != null && o.length))
|
|
1655
1655
|
return t;
|
|
1656
1656
|
const n = e.getState().sorting, r = [], i = n.filter((u) => {
|
|
@@ -1672,7 +1672,7 @@ function gt() {
|
|
|
1672
1672
|
return g.sort((d, S) => {
|
|
1673
1673
|
for (let a = 0; a < i.length; a += 1) {
|
|
1674
1674
|
var f;
|
|
1675
|
-
const c = i[a], p = l[c.id], w = p.sortUndefined, R = (f = c
|
|
1675
|
+
const c = i[a], p = l[c.id], w = p.sortUndefined, R = (f = c?.desc) != null ? f : !1;
|
|
1676
1676
|
let v = 0;
|
|
1677
1677
|
if (w) {
|
|
1678
1678
|
const h = d.getValue(c.id), M = S.getValue(c.id), F = h === void 0, D = M === void 0;
|
|
@@ -1696,27 +1696,27 @@ function gt() {
|
|
|
1696
1696
|
flatRows: r,
|
|
1697
1697
|
rowsById: t.rowsById
|
|
1698
1698
|
};
|
|
1699
|
-
},
|
|
1699
|
+
}, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1700
1700
|
}
|
|
1701
1701
|
const at = (e, o) => {
|
|
1702
|
-
const t =
|
|
1702
|
+
const t = Ce();
|
|
1703
1703
|
return o ? o.map(
|
|
1704
1704
|
(r) => [r.key, r]
|
|
1705
1705
|
).map(([r, i]) => {
|
|
1706
|
-
const l = !!
|
|
1706
|
+
const l = !!i?.sort || !!i?.sortFn, s = {
|
|
1707
1707
|
id: r,
|
|
1708
1708
|
cell: (u) => /* @__PURE__ */ pe(
|
|
1709
1709
|
Se,
|
|
1710
1710
|
{
|
|
1711
|
-
format:
|
|
1711
|
+
format: i?.format ?? ot(u.getValue()),
|
|
1712
1712
|
value: u.getValue(),
|
|
1713
1713
|
row: u.row.original
|
|
1714
1714
|
}
|
|
1715
1715
|
),
|
|
1716
|
-
header: () => i
|
|
1716
|
+
header: () => i?.label,
|
|
1717
1717
|
enableSorting: l
|
|
1718
1718
|
};
|
|
1719
|
-
return i
|
|
1719
|
+
return i?.sortFn && (s.sortingFn = i.sortFn), t.accessor(
|
|
1720
1720
|
(u) => u[r],
|
|
1721
1721
|
s
|
|
1722
1722
|
// The typing is weird, cannot get it to work without the never cast, its typed properly above anyway
|
|
@@ -1725,7 +1725,7 @@ const at = (e, o) => {
|
|
|
1725
1725
|
(r) => t.accessor((i) => i[r], {
|
|
1726
1726
|
id: r,
|
|
1727
1727
|
cell: (i) => i.getValue(),
|
|
1728
|
-
header: () =>
|
|
1728
|
+
header: () => me(r),
|
|
1729
1729
|
enableSorting: !1
|
|
1730
1730
|
})
|
|
1731
1731
|
);
|