@qualcomm-ui/core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +31 -0
- package/dist/accordion/accordion.api.d.ts +4 -0
- package/dist/accordion/accordion.api.d.ts.map +1 -0
- package/dist/accordion/accordion.machine.d.ts +4 -0
- package/dist/accordion/accordion.machine.d.ts.map +1 -0
- package/dist/accordion/accordion.props.d.ts +3 -0
- package/dist/accordion/accordion.props.d.ts.map +1 -0
- package/dist/accordion/accordion.types.d.ts +155 -0
- package/dist/accordion/accordion.types.d.ts.map +1 -0
- package/dist/accordion/index.cjs +2 -0
- package/dist/accordion/index.cjs.map +7 -0
- package/dist/accordion/index.d.ts +5 -0
- package/dist/accordion/index.d.ts.map +1 -0
- package/dist/accordion/index.js +2 -0
- package/dist/accordion/index.js.map +7 -0
- package/dist/accordion/internal/accordion.dom.d.ts +10 -0
- package/dist/accordion/internal/accordion.dom.d.ts.map +1 -0
- package/dist/accordion/internal/index.d.ts +2 -0
- package/dist/accordion/internal/index.d.ts.map +1 -0
- package/dist/action-group/action-group.d.ts +6 -0
- package/dist/action-group/action-group.d.ts.map +1 -0
- package/dist/action-group/index.cjs +2 -0
- package/dist/action-group/index.cjs.map +7 -0
- package/dist/action-group/index.d.ts +2 -0
- package/dist/action-group/index.d.ts.map +1 -0
- package/dist/action-group/index.js +2 -0
- package/dist/action-group/index.js.map +7 -0
- package/dist/avatar/avatar.api.d.ts +4 -0
- package/dist/avatar/avatar.api.d.ts.map +1 -0
- package/dist/avatar/avatar.machine.d.ts +4 -0
- package/dist/avatar/avatar.machine.d.ts.map +1 -0
- package/dist/avatar/avatar.props.d.ts +3 -0
- package/dist/avatar/avatar.props.d.ts.map +1 -0
- package/dist/avatar/avatar.types.d.ts +55 -0
- package/dist/avatar/avatar.types.d.ts.map +1 -0
- package/dist/avatar/index.cjs +2 -0
- package/dist/avatar/index.cjs.map +7 -0
- package/dist/avatar/index.d.ts +5 -0
- package/dist/avatar/index.d.ts.map +1 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/index.js.map +7 -0
- package/dist/avatar/internal/avatar.dom.d.ts +12 -0
- package/dist/avatar/internal/avatar.dom.d.ts.map +1 -0
- package/dist/avatar/internal/index.d.ts +2 -0
- package/dist/avatar/internal/index.d.ts.map +1 -0
- package/dist/checkbox/checkbox.api.d.ts +4 -0
- package/dist/checkbox/checkbox.api.d.ts.map +1 -0
- package/dist/checkbox/checkbox.machine.d.ts +4 -0
- package/dist/checkbox/checkbox.machine.d.ts.map +1 -0
- package/dist/checkbox/checkbox.props.d.ts +3 -0
- package/dist/checkbox/checkbox.props.d.ts.map +1 -0
- package/dist/checkbox/checkbox.types.d.ts +165 -0
- package/dist/checkbox/checkbox.types.d.ts.map +1 -0
- package/dist/checkbox/index.cjs +2 -0
- package/dist/checkbox/index.cjs.map +7 -0
- package/dist/checkbox/index.d.ts +5 -0
- package/dist/checkbox/index.d.ts.map +1 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/index.js.map +7 -0
- package/dist/checkbox/internal/checkbox.dom.d.ts +7 -0
- package/dist/checkbox/internal/checkbox.dom.d.ts.map +1 -0
- package/dist/checkbox/internal/index.d.ts +2 -0
- package/dist/checkbox/internal/index.d.ts.map +1 -0
- package/dist/collapsible/collapsible.api.d.ts +4 -0
- package/dist/collapsible/collapsible.api.d.ts.map +1 -0
- package/dist/collapsible/collapsible.machine.d.ts +4 -0
- package/dist/collapsible/collapsible.machine.d.ts.map +1 -0
- package/dist/collapsible/collapsible.props.d.ts +4 -0
- package/dist/collapsible/collapsible.props.d.ts.map +1 -0
- package/dist/collapsible/collapsible.types.d.ts +129 -0
- package/dist/collapsible/collapsible.types.d.ts.map +1 -0
- package/dist/collapsible/index.cjs +2 -0
- package/dist/collapsible/index.cjs.map +7 -0
- package/dist/collapsible/index.d.ts +5 -0
- package/dist/collapsible/index.d.ts.map +1 -0
- package/dist/collapsible/index.js +2 -0
- package/dist/collapsible/index.js.map +7 -0
- package/dist/collapsible/internal/collapsible.dom.d.ts +5 -0
- package/dist/collapsible/internal/collapsible.dom.d.ts.map +1 -0
- package/dist/collapsible/internal/index.d.ts +2 -0
- package/dist/collapsible/internal/index.d.ts.map +1 -0
- package/dist/combobox/combobox.api.d.ts +4 -0
- package/dist/combobox/combobox.api.d.ts.map +1 -0
- package/dist/combobox/combobox.collection.d.ts +4 -0
- package/dist/combobox/combobox.collection.d.ts.map +1 -0
- package/dist/combobox/combobox.machine.d.ts +4 -0
- package/dist/combobox/combobox.machine.d.ts.map +1 -0
- package/dist/combobox/combobox.props.d.ts +4 -0
- package/dist/combobox/combobox.props.d.ts.map +1 -0
- package/dist/combobox/combobox.types.d.ts +631 -0
- package/dist/combobox/combobox.types.d.ts.map +1 -0
- package/dist/combobox/index.cjs +2 -0
- package/dist/combobox/index.cjs.map +7 -0
- package/dist/combobox/index.d.ts +6 -0
- package/dist/combobox/index.d.ts.map +1 -0
- package/dist/combobox/index.js +2 -0
- package/dist/combobox/index.js.map +7 -0
- package/dist/combobox/internal/combobox.dom.d.ts +13 -0
- package/dist/combobox/internal/combobox.dom.d.ts.map +1 -0
- package/dist/combobox/internal/index.d.ts +2 -0
- package/dist/combobox/internal/index.d.ts.map +1 -0
- package/dist/dialog/dialog.api.d.ts +4 -0
- package/dist/dialog/dialog.api.d.ts.map +1 -0
- package/dist/dialog/dialog.machine.d.ts +4 -0
- package/dist/dialog/dialog.machine.d.ts.map +1 -0
- package/dist/dialog/dialog.props.d.ts +4 -0
- package/dist/dialog/dialog.props.d.ts.map +1 -0
- package/dist/dialog/dialog.types.d.ts +184 -0
- package/dist/dialog/dialog.types.d.ts.map +1 -0
- package/dist/dialog/index.cjs +2 -0
- package/dist/dialog/index.cjs.map +7 -0
- package/dist/dialog/index.d.ts +5 -0
- package/dist/dialog/index.d.ts.map +1 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/index.js.map +7 -0
- package/dist/dialog/internal/dialog.dom.d.ts +5 -0
- package/dist/dialog/internal/dialog.dom.d.ts.map +1 -0
- package/dist/dialog/internal/index.d.ts +2 -0
- package/dist/dialog/internal/index.d.ts.map +1 -0
- package/dist/dnd/dnd.types.d.ts +13 -0
- package/dist/dnd/dnd.types.d.ts.map +1 -0
- package/dist/dnd/index.cjs +2 -0
- package/dist/dnd/index.cjs.map +7 -0
- package/dist/dnd/index.d.ts +2 -0
- package/dist/dnd/index.d.ts.map +1 -0
- package/dist/dnd/index.js +1 -0
- package/dist/dnd/index.js.map +7 -0
- package/dist/field/field.types.d.ts +87 -0
- package/dist/field/field.types.d.ts.map +1 -0
- package/dist/field/index.cjs +2 -0
- package/dist/field/index.cjs.map +7 -0
- package/dist/field/index.d.ts +2 -0
- package/dist/field/index.d.ts.map +1 -0
- package/dist/field/index.js +1 -0
- package/dist/field/index.js.map +7 -0
- package/dist/fieldset/fieldset.types.d.ts +49 -0
- package/dist/fieldset/fieldset.types.d.ts.map +1 -0
- package/dist/fieldset/index.cjs +2 -0
- package/dist/fieldset/index.cjs.map +7 -0
- package/dist/fieldset/index.d.ts +2 -0
- package/dist/fieldset/index.d.ts.map +1 -0
- package/dist/fieldset/index.js +1 -0
- package/dist/fieldset/index.js.map +7 -0
- package/dist/inline-notification/index.cjs +2 -0
- package/dist/inline-notification/index.cjs.map +7 -0
- package/dist/inline-notification/index.d.ts +5 -0
- package/dist/inline-notification/index.d.ts.map +1 -0
- package/dist/inline-notification/index.js +2 -0
- package/dist/inline-notification/index.js.map +7 -0
- package/dist/inline-notification/inline-notification.api.d.ts +4 -0
- package/dist/inline-notification/inline-notification.api.d.ts.map +1 -0
- package/dist/inline-notification/inline-notification.machine.d.ts +4 -0
- package/dist/inline-notification/inline-notification.machine.d.ts.map +1 -0
- package/dist/inline-notification/inline-notification.props.d.ts +7 -0
- package/dist/inline-notification/inline-notification.props.d.ts.map +1 -0
- package/dist/inline-notification/inline-notification.types.d.ts +76 -0
- package/dist/inline-notification/inline-notification.types.d.ts.map +1 -0
- package/dist/inline-notification/internal/index.d.ts +2 -0
- package/dist/inline-notification/internal/index.d.ts.map +1 -0
- package/dist/inline-notification/internal/inline-notification.dom.d.ts +4 -0
- package/dist/inline-notification/internal/inline-notification.dom.d.ts.map +1 -0
- package/dist/input/index.cjs +2 -0
- package/dist/input/index.cjs.map +7 -0
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.d.ts.map +1 -0
- package/dist/input/index.js +1 -0
- package/dist/input/index.js.map +7 -0
- package/dist/input/input.types.d.ts +66 -0
- package/dist/input/input.types.d.ts.map +1 -0
- package/dist/menu/index.cjs +2 -0
- package/dist/menu/index.cjs.map +7 -0
- package/dist/menu/index.d.ts +5 -0
- package/dist/menu/index.d.ts.map +1 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/index.js.map +7 -0
- package/dist/menu/internal/index.d.ts +2 -0
- package/dist/menu/internal/index.d.ts.map +1 -0
- package/dist/menu/internal/menu.dom.d.ts +33 -0
- package/dist/menu/internal/menu.dom.d.ts.map +1 -0
- package/dist/menu/menu.api.d.ts +4 -0
- package/dist/menu/menu.api.d.ts.map +1 -0
- package/dist/menu/menu.machine.d.ts +4 -0
- package/dist/menu/menu.machine.d.ts.map +1 -0
- package/dist/menu/menu.props.d.ts +8 -0
- package/dist/menu/menu.props.d.ts.map +1 -0
- package/dist/menu/menu.types.d.ts +482 -0
- package/dist/menu/menu.types.d.ts.map +1 -0
- package/dist/number-input/index.cjs +2 -0
- package/dist/number-input/index.cjs.map +7 -0
- package/dist/number-input/index.d.ts +6 -0
- package/dist/number-input/index.d.ts.map +1 -0
- package/dist/number-input/index.js +2 -0
- package/dist/number-input/index.js.map +7 -0
- package/dist/number-input/internal/index.d.ts +2 -0
- package/dist/number-input/internal/index.d.ts.map +1 -0
- package/dist/number-input/internal/number-input.dom.d.ts +10 -0
- package/dist/number-input/internal/number-input.dom.d.ts.map +1 -0
- package/dist/number-input/number-input.api.d.ts +4 -0
- package/dist/number-input/number-input.api.d.ts.map +1 -0
- package/dist/number-input/number-input.machine.d.ts +4 -0
- package/dist/number-input/number-input.machine.d.ts.map +1 -0
- package/dist/number-input/number-input.props.d.ts +4 -0
- package/dist/number-input/number-input.props.d.ts.map +1 -0
- package/dist/number-input/number-input.types.d.ts +395 -0
- package/dist/number-input/number-input.types.d.ts.map +1 -0
- package/dist/number-input/number-input.utils.d.ts +11 -0
- package/dist/number-input/number-input.utils.d.ts.map +1 -0
- package/dist/overlay-panel/index.cjs.map +7 -0
- package/dist/overlay-panel/index.d.ts +2 -0
- package/dist/overlay-panel/index.d.ts.map +1 -0
- package/dist/overlay-panel/overlay-panel.types.d.ts +2 -0
- package/dist/overlay-panel/overlay-panel.types.d.ts.map +1 -0
- package/dist/pagination/index.cjs +2 -0
- package/dist/pagination/index.cjs.map +7 -0
- package/dist/pagination/index.d.ts +5 -0
- package/dist/pagination/index.d.ts.map +1 -0
- package/dist/pagination/index.js +2 -0
- package/dist/pagination/index.js.map +7 -0
- package/dist/pagination/pagination.api.d.ts +4 -0
- package/dist/pagination/pagination.api.d.ts.map +1 -0
- package/dist/pagination/pagination.machine.d.ts +4 -0
- package/dist/pagination/pagination.machine.d.ts.map +1 -0
- package/dist/pagination/pagination.props.d.ts +3 -0
- package/dist/pagination/pagination.props.d.ts.map +1 -0
- package/dist/pagination/pagination.types.d.ts +214 -0
- package/dist/pagination/pagination.types.d.ts.map +1 -0
- package/dist/password-input/index.cjs +2 -0
- package/dist/password-input/index.cjs.map +7 -0
- package/dist/password-input/index.d.ts +5 -0
- package/dist/password-input/index.d.ts.map +1 -0
- package/dist/password-input/index.js +2 -0
- package/dist/password-input/index.js.map +7 -0
- package/dist/password-input/internal/index.d.ts +2 -0
- package/dist/password-input/internal/index.d.ts.map +1 -0
- package/dist/password-input/internal/password.dom.d.ts +7 -0
- package/dist/password-input/internal/password.dom.d.ts.map +1 -0
- package/dist/password-input/password-input.api.d.ts +4 -0
- package/dist/password-input/password-input.api.d.ts.map +1 -0
- package/dist/password-input/password-input.machine.d.ts +4 -0
- package/dist/password-input/password-input.machine.d.ts.map +1 -0
- package/dist/password-input/password-input.props.d.ts +3 -0
- package/dist/password-input/password-input.props.d.ts.map +1 -0
- package/dist/password-input/password-input.types.d.ts +172 -0
- package/dist/password-input/password-input.types.d.ts.map +1 -0
- package/dist/popover/index.cjs +2 -0
- package/dist/popover/index.cjs.map +7 -0
- package/dist/popover/index.d.ts +5 -0
- package/dist/popover/index.d.ts.map +1 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/index.js.map +7 -0
- package/dist/popover/internal/index.d.ts +2 -0
- package/dist/popover/internal/index.d.ts.map +1 -0
- package/dist/popover/internal/popover.dom.d.ts +8 -0
- package/dist/popover/internal/popover.dom.d.ts.map +1 -0
- package/dist/popover/popover.api.d.ts +4 -0
- package/dist/popover/popover.api.d.ts.map +1 -0
- package/dist/popover/popover.machine.d.ts +4 -0
- package/dist/popover/popover.machine.d.ts.map +1 -0
- package/dist/popover/popover.props.d.ts +3 -0
- package/dist/popover/popover.props.d.ts.map +1 -0
- package/dist/popover/popover.types.d.ts +233 -0
- package/dist/popover/popover.types.d.ts.map +1 -0
- package/dist/presence/index.cjs +2 -0
- package/dist/presence/index.cjs.map +7 -0
- package/dist/presence/index.d.ts +5 -0
- package/dist/presence/index.d.ts.map +1 -0
- package/dist/presence/index.js +2 -0
- package/dist/presence/index.js.map +7 -0
- package/dist/presence/presence.api.d.ts +4 -0
- package/dist/presence/presence.api.d.ts.map +1 -0
- package/dist/presence/presence.machine.d.ts +4 -0
- package/dist/presence/presence.machine.d.ts.map +1 -0
- package/dist/presence/presence.props.d.ts +6 -0
- package/dist/presence/presence.props.d.ts.map +1 -0
- package/dist/presence/presence.types.d.ts +94 -0
- package/dist/presence/presence.types.d.ts.map +1 -0
- package/dist/progress/index.cjs +2 -0
- package/dist/progress/index.cjs.map +7 -0
- package/dist/progress/index.d.ts +5 -0
- package/dist/progress/index.d.ts.map +1 -0
- package/dist/progress/index.js +2 -0
- package/dist/progress/index.js.map +7 -0
- package/dist/progress/internal/index.d.ts +2 -0
- package/dist/progress/internal/index.d.ts.map +1 -0
- package/dist/progress/internal/progress.dom.d.ts +4 -0
- package/dist/progress/internal/progress.dom.d.ts.map +1 -0
- package/dist/progress/progress.api.d.ts +4 -0
- package/dist/progress/progress.api.d.ts.map +1 -0
- package/dist/progress/progress.machine.d.ts +4 -0
- package/dist/progress/progress.machine.d.ts.map +1 -0
- package/dist/progress/progress.props.d.ts +4 -0
- package/dist/progress/progress.props.d.ts.map +1 -0
- package/dist/progress/progress.types.d.ts +182 -0
- package/dist/progress/progress.types.d.ts.map +1 -0
- package/dist/radio/index.cjs +2 -0
- package/dist/radio/index.cjs.map +7 -0
- package/dist/radio/index.d.ts +5 -0
- package/dist/radio/index.d.ts.map +1 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/index.js.map +7 -0
- package/dist/radio/internal/index.d.ts +2 -0
- package/dist/radio/internal/index.d.ts.map +1 -0
- package/dist/radio/internal/radio.dom.d.ts +10 -0
- package/dist/radio/internal/radio.dom.d.ts.map +1 -0
- package/dist/radio/radio.api.d.ts +4 -0
- package/dist/radio/radio.api.d.ts.map +1 -0
- package/dist/radio/radio.machine.d.ts +4 -0
- package/dist/radio/radio.machine.d.ts.map +1 -0
- package/dist/radio/radio.props.d.ts +4 -0
- package/dist/radio/radio.props.d.ts.map +1 -0
- package/dist/radio/radio.types.d.ts +233 -0
- package/dist/radio/radio.types.d.ts.map +1 -0
- package/dist/segmented-control/index.cjs +2 -0
- package/dist/segmented-control/index.cjs.map +7 -0
- package/dist/segmented-control/index.d.ts +5 -0
- package/dist/segmented-control/index.d.ts.map +1 -0
- package/dist/segmented-control/index.js +2 -0
- package/dist/segmented-control/index.js.map +7 -0
- package/dist/segmented-control/internal/index.d.ts +2 -0
- package/dist/segmented-control/internal/index.d.ts.map +1 -0
- package/dist/segmented-control/internal/segmented-control.dom.d.ts +7 -0
- package/dist/segmented-control/internal/segmented-control.dom.d.ts.map +1 -0
- package/dist/segmented-control/segmented-control.api.d.ts +4 -0
- package/dist/segmented-control/segmented-control.api.d.ts.map +1 -0
- package/dist/segmented-control/segmented-control.machine.d.ts +4 -0
- package/dist/segmented-control/segmented-control.machine.d.ts.map +1 -0
- package/dist/segmented-control/segmented-control.props.d.ts +4 -0
- package/dist/segmented-control/segmented-control.props.d.ts.map +1 -0
- package/dist/segmented-control/segmented-control.types.d.ts +103 -0
- package/dist/segmented-control/segmented-control.types.d.ts.map +1 -0
- package/dist/select/index.cjs +2 -0
- package/dist/select/index.cjs.map +7 -0
- package/dist/select/index.d.ts +6 -0
- package/dist/select/index.d.ts.map +1 -0
- package/dist/select/index.js +2 -0
- package/dist/select/index.js.map +7 -0
- package/dist/select/internal/index.d.ts +2 -0
- package/dist/select/internal/index.d.ts.map +1 -0
- package/dist/select/internal/select.dom.d.ts +9 -0
- package/dist/select/internal/select.dom.d.ts.map +1 -0
- package/dist/select/select.api.d.ts +4 -0
- package/dist/select/select.api.d.ts.map +1 -0
- package/dist/select/select.collection.d.ts +4 -0
- package/dist/select/select.collection.d.ts.map +1 -0
- package/dist/select/select.machine.d.ts +4 -0
- package/dist/select/select.machine.d.ts.map +1 -0
- package/dist/select/select.props.d.ts +3 -0
- package/dist/select/select.props.d.ts.map +1 -0
- package/dist/select/select.types.d.ts +582 -0
- package/dist/select/select.types.d.ts.map +1 -0
- package/dist/side-nav/index.cjs +2 -0
- package/dist/side-nav/index.cjs.map +7 -0
- package/dist/side-nav/index.d.ts +5 -0
- package/dist/side-nav/index.d.ts.map +1 -0
- package/dist/side-nav/index.js +2 -0
- package/dist/side-nav/index.js.map +7 -0
- package/dist/side-nav/internal/index.d.ts +2 -0
- package/dist/side-nav/internal/index.d.ts.map +1 -0
- package/dist/side-nav/internal/side-nav.dom.d.ts +5 -0
- package/dist/side-nav/internal/side-nav.dom.d.ts.map +1 -0
- package/dist/side-nav/side-nav.api.d.ts +4 -0
- package/dist/side-nav/side-nav.api.d.ts.map +1 -0
- package/dist/side-nav/side-nav.machine.d.ts +4 -0
- package/dist/side-nav/side-nav.machine.d.ts.map +1 -0
- package/dist/side-nav/side-nav.props.d.ts +4 -0
- package/dist/side-nav/side-nav.props.d.ts.map +1 -0
- package/dist/side-nav/side-nav.types.d.ts +108 -0
- package/dist/side-nav/side-nav.types.d.ts.map +1 -0
- package/dist/slider/index.cjs +2 -0
- package/dist/slider/index.cjs.map +7 -0
- package/dist/slider/index.d.ts +5 -0
- package/dist/slider/index.d.ts.map +1 -0
- package/dist/slider/index.js +2 -0
- package/dist/slider/index.js.map +7 -0
- package/dist/slider/slider.api.d.ts +4 -0
- package/dist/slider/slider.api.d.ts.map +1 -0
- package/dist/slider/slider.dom.d.ts +18 -0
- package/dist/slider/slider.dom.d.ts.map +1 -0
- package/dist/slider/slider.machine.d.ts +4 -0
- package/dist/slider/slider.machine.d.ts.map +1 -0
- package/dist/slider/slider.props.d.ts +4 -0
- package/dist/slider/slider.props.d.ts.map +1 -0
- package/dist/slider/slider.style.d.ts +21 -0
- package/dist/slider/slider.style.d.ts.map +1 -0
- package/dist/slider/slider.types.d.ts +449 -0
- package/dist/slider/slider.types.d.ts.map +1 -0
- package/dist/slider/slider.utils.d.ts +17 -0
- package/dist/slider/slider.utils.d.ts.map +1 -0
- package/dist/switch/index.cjs +2 -0
- package/dist/switch/index.cjs.map +7 -0
- package/dist/switch/index.d.ts +5 -0
- package/dist/switch/index.d.ts.map +1 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/index.js.map +7 -0
- package/dist/switch/internal/index.d.ts +2 -0
- package/dist/switch/internal/index.d.ts.map +1 -0
- package/dist/switch/internal/switch.dom.d.ts +7 -0
- package/dist/switch/internal/switch.dom.d.ts.map +1 -0
- package/dist/switch/switch.api.d.ts +4 -0
- package/dist/switch/switch.api.d.ts.map +1 -0
- package/dist/switch/switch.machine.d.ts +4 -0
- package/dist/switch/switch.machine.d.ts.map +1 -0
- package/dist/switch/switch.props.d.ts +4 -0
- package/dist/switch/switch.props.d.ts.map +1 -0
- package/dist/switch/switch.types.d.ts +157 -0
- package/dist/switch/switch.types.d.ts.map +1 -0
- package/dist/table/aggregation-fns.d.ts +14 -0
- package/dist/table/aggregation-fns.d.ts.map +1 -0
- package/dist/table/column-helper.d.ts +9 -0
- package/dist/table/column-helper.d.ts.map +1 -0
- package/dist/table/core/cell.d.ts +46 -0
- package/dist/table/core/cell.d.ts.map +1 -0
- package/dist/table/core/column.d.ts +55 -0
- package/dist/table/core/column.d.ts.map +1 -0
- package/dist/table/core/headers.d.ts +196 -0
- package/dist/table/core/headers.d.ts.map +1 -0
- package/dist/table/core/row.d.ts +76 -0
- package/dist/table/core/row.d.ts.map +1 -0
- package/dist/table/core/table.d.ts +244 -0
- package/dist/table/core/table.d.ts.map +1 -0
- package/dist/table/dom.d.ts +3 -0
- package/dist/table/dom.d.ts.map +1 -0
- package/dist/table/features/column-sizing.d.ts +168 -0
- package/dist/table/features/column-sizing.d.ts.map +1 -0
- package/dist/table/features/expanding.d.ts +138 -0
- package/dist/table/features/expanding.d.ts.map +1 -0
- package/dist/table/features/filters.d.ts +309 -0
- package/dist/table/features/filters.d.ts.map +1 -0
- package/dist/table/features/grouping.d.ts +182 -0
- package/dist/table/features/grouping.d.ts.map +1 -0
- package/dist/table/features/ordering.d.ts +33 -0
- package/dist/table/features/ordering.d.ts.map +1 -0
- package/dist/table/features/pagination.d.ts +127 -0
- package/dist/table/features/pagination.d.ts.map +1 -0
- package/dist/table/features/pinning.d.ts +227 -0
- package/dist/table/features/pinning.d.ts.map +1 -0
- package/dist/table/features/row-selection.d.ts +148 -0
- package/dist/table/features/row-selection.d.ts.map +1 -0
- package/dist/table/features/sorting.d.ts +194 -0
- package/dist/table/features/sorting.d.ts.map +1 -0
- package/dist/table/features/visibility.d.ts +119 -0
- package/dist/table/features/visibility.d.ts.map +1 -0
- package/dist/table/filter-fns.d.ts +4 -0
- package/dist/table/filter-fns.d.ts.map +1 -0
- package/dist/table/index.cjs +5 -0
- package/dist/table/index.cjs.map +7 -0
- package/dist/table/index.d.ts +32 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/table/index.js +5 -0
- package/dist/table/index.js.map +7 -0
- package/dist/table/sorting-fns.d.ts +5 -0
- package/dist/table/sorting-fns.d.ts.map +1 -0
- package/dist/table/types.d.ts +142 -0
- package/dist/table/types.d.ts.map +1 -0
- package/dist/table/utils/filter-rows-utils.d.ts +5 -0
- package/dist/table/utils/filter-rows-utils.d.ts.map +1 -0
- package/dist/table/utils/get-core-row-model.d.ts +3 -0
- package/dist/table/utils/get-core-row-model.d.ts.map +1 -0
- package/dist/table/utils/get-expanded-row-model.d.ts +8 -0
- package/dist/table/utils/get-expanded-row-model.d.ts.map +1 -0
- package/dist/table/utils/get-faceted-min-max-values.d.ts +3 -0
- package/dist/table/utils/get-faceted-min-max-values.d.ts.map +1 -0
- package/dist/table/utils/get-faceted-row-model.d.ts +3 -0
- package/dist/table/utils/get-faceted-row-model.d.ts.map +1 -0
- package/dist/table/utils/get-faceted-unique-values.d.ts +3 -0
- package/dist/table/utils/get-faceted-unique-values.d.ts.map +1 -0
- package/dist/table/utils/get-filtered-row-model.d.ts +3 -0
- package/dist/table/utils/get-filtered-row-model.d.ts.map +1 -0
- package/dist/table/utils/get-grouped-row-model.d.ts +3 -0
- package/dist/table/utils/get-grouped-row-model.d.ts.map +1 -0
- package/dist/table/utils/get-pagination-row-model.d.ts +3 -0
- package/dist/table/utils/get-pagination-row-model.d.ts.map +1 -0
- package/dist/table/utils/get-sorted-row-model.d.ts +3 -0
- package/dist/table/utils/get-sorted-row-model.d.ts.map +1 -0
- package/dist/table/utils.d.ts +39 -0
- package/dist/table/utils.d.ts.map +1 -0
- package/dist/tabs/index.cjs +2 -0
- package/dist/tabs/index.cjs.map +7 -0
- package/dist/tabs/index.d.ts +5 -0
- package/dist/tabs/index.d.ts.map +1 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/index.js.map +7 -0
- package/dist/tabs/internal/index.d.ts +2 -0
- package/dist/tabs/internal/index.d.ts.map +1 -0
- package/dist/tabs/internal/tabs.dom.d.ts +42 -0
- package/dist/tabs/internal/tabs.dom.d.ts.map +1 -0
- package/dist/tabs/tabs.api.d.ts +4 -0
- package/dist/tabs/tabs.api.d.ts.map +1 -0
- package/dist/tabs/tabs.machine.d.ts +4 -0
- package/dist/tabs/tabs.machine.d.ts.map +1 -0
- package/dist/tabs/tabs.props.d.ts +4 -0
- package/dist/tabs/tabs.props.d.ts.map +1 -0
- package/dist/tabs/tabs.types.d.ts +256 -0
- package/dist/tabs/tabs.types.d.ts.map +1 -0
- package/dist/text-area/index.cjs +2 -0
- package/dist/text-area/index.cjs.map +7 -0
- package/dist/text-area/index.d.ts +2 -0
- package/dist/text-area/index.d.ts.map +1 -0
- package/dist/text-area/index.js +1 -0
- package/dist/text-area/index.js.map +7 -0
- package/dist/text-input/index.cjs +2 -0
- package/dist/text-input/index.cjs.map +7 -0
- package/dist/text-input/index.d.ts +5 -0
- package/dist/text-input/index.d.ts.map +1 -0
- package/dist/text-input/index.js +2 -0
- package/dist/text-input/index.js.map +7 -0
- package/dist/text-input/internal/index.d.ts +2 -0
- package/dist/text-input/internal/index.d.ts.map +1 -0
- package/dist/text-input/internal/text-input.dom.d.ts +7 -0
- package/dist/text-input/internal/text-input.dom.d.ts.map +1 -0
- package/dist/text-input/text-input.api.d.ts +4 -0
- package/dist/text-input/text-input.api.d.ts.map +1 -0
- package/dist/text-input/text-input.machine.d.ts +4 -0
- package/dist/text-input/text-input.machine.d.ts.map +1 -0
- package/dist/text-input/text-input.props.d.ts +3 -0
- package/dist/text-input/text-input.props.d.ts.map +1 -0
- package/dist/text-input/text-input.types.d.ts +118 -0
- package/dist/text-input/text-input.types.d.ts.map +1 -0
- package/dist/toast/index.cjs +2 -0
- package/dist/toast/index.cjs.map +7 -0
- package/dist/toast/index.d.ts +8 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/index.js.map +7 -0
- package/dist/toast/internal/index.d.ts +2 -0
- package/dist/toast/internal/index.d.ts.map +1 -0
- package/dist/toast/internal/toast.dom.d.ts +10 -0
- package/dist/toast/internal/toast.dom.d.ts.map +1 -0
- package/dist/toast/toast-group.api.d.ts +4 -0
- package/dist/toast/toast-group.api.d.ts.map +1 -0
- package/dist/toast/toast-group.machine.d.ts +4 -0
- package/dist/toast/toast-group.machine.d.ts.map +1 -0
- package/dist/toast/toast.api.d.ts +4 -0
- package/dist/toast/toast.api.d.ts.map +1 -0
- package/dist/toast/toast.machine.d.ts +4 -0
- package/dist/toast/toast.machine.d.ts.map +1 -0
- package/dist/toast/toast.store.d.ts +4 -0
- package/dist/toast/toast.store.d.ts.map +1 -0
- package/dist/toast/toast.types.d.ts +463 -0
- package/dist/toast/toast.types.d.ts.map +1 -0
- package/dist/toast/toast.utils.d.ts +9 -0
- package/dist/toast/toast.utils.d.ts.map +1 -0
- package/dist/tooltip/index.cjs +2 -0
- package/dist/tooltip/index.cjs.map +7 -0
- package/dist/tooltip/index.d.ts +5 -0
- package/dist/tooltip/index.d.ts.map +1 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/index.js.map +7 -0
- package/dist/tooltip/tooltip.api.d.ts +4 -0
- package/dist/tooltip/tooltip.api.d.ts.map +1 -0
- package/dist/tooltip/tooltip.machine.d.ts +4 -0
- package/dist/tooltip/tooltip.machine.d.ts.map +1 -0
- package/dist/tooltip/tooltip.props.d.ts +4 -0
- package/dist/tooltip/tooltip.props.d.ts.map +1 -0
- package/dist/tooltip/tooltip.store.d.ts +5 -0
- package/dist/tooltip/tooltip.store.d.ts.map +1 -0
- package/dist/tooltip/tooltip.types.d.ts +122 -0
- package/dist/tooltip/tooltip.types.d.ts.map +1 -0
- package/dist/tree/index.cjs +2 -0
- package/dist/tree/index.cjs.map +7 -0
- package/dist/tree/index.d.ts +6 -0
- package/dist/tree/index.d.ts.map +1 -0
- package/dist/tree/index.js +2 -0
- package/dist/tree/index.js.map +7 -0
- package/dist/tree/internal/index.d.ts +3 -0
- package/dist/tree/internal/index.d.ts.map +1 -0
- package/dist/tree/internal/tree.dom.d.ts +8 -0
- package/dist/tree/internal/tree.dom.d.ts.map +1 -0
- package/dist/tree/internal/tree.utils.d.ts +12 -0
- package/dist/tree/internal/tree.utils.d.ts.map +1 -0
- package/dist/tree/tree.api.d.ts +5 -0
- package/dist/tree/tree.api.d.ts.map +1 -0
- package/dist/tree/tree.collection.d.ts +4 -0
- package/dist/tree/tree.collection.d.ts.map +1 -0
- package/dist/tree/tree.machine.d.ts +4 -0
- package/dist/tree/tree.machine.d.ts.map +1 -0
- package/dist/tree/tree.props.d.ts +7 -0
- package/dist/tree/tree.props.d.ts.map +1 -0
- package/dist/tree/tree.types.d.ts +579 -0
- package/dist/tree/tree.types.d.ts.map +1 -0
- package/dist/tsbuildinfo +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Cell, Row, RowData, TableInstance } from "../types";
|
|
2
|
+
export interface CoreRow<TData extends RowData> {
|
|
3
|
+
/** @internal */
|
|
4
|
+
_getAllCellsByColumnId: () => Record<string, Cell<TData, unknown>>;
|
|
5
|
+
/** @internal */
|
|
6
|
+
_uniqueValuesCache: Record<string, unknown>;
|
|
7
|
+
/** @internal */
|
|
8
|
+
_valuesCache: Record<string, unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* The depth of the row (if nested or grouped) relative to the root row array.
|
|
11
|
+
*/
|
|
12
|
+
depth: number;
|
|
13
|
+
/**
|
|
14
|
+
* Returns all of the cells for the row.
|
|
15
|
+
*
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
getAllCells: () => Cell<TData, unknown>[];
|
|
19
|
+
/**
|
|
20
|
+
* Returns the leaf rows for the row, not including any parent rows.
|
|
21
|
+
*
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
getLeafRows: () => Row<TData>[];
|
|
25
|
+
/**
|
|
26
|
+
* Returns the parent row for the row, if it exists.
|
|
27
|
+
*
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
getParentRow: () => Row<TData> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the parent rows for the row, all the way up to a root row.
|
|
33
|
+
*
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
getParentRows: () => Row<TData>[];
|
|
37
|
+
/**
|
|
38
|
+
* Returns a unique array of values from the row for a given columnId.
|
|
39
|
+
*/
|
|
40
|
+
getUniqueValues: <TValue>(columnId: string) => TValue[];
|
|
41
|
+
/**
|
|
42
|
+
* Returns the value from the row for a given columnId.
|
|
43
|
+
*/
|
|
44
|
+
getValue: <TValue>(columnId: string) => TValue;
|
|
45
|
+
/**
|
|
46
|
+
* The resolved unique identifier for the row resolved via the `options.getRowId`
|
|
47
|
+
* option. Defaults to the row's index (or relative index if it is a subRow).
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* The index of the row within its parent array (or the root data array).
|
|
52
|
+
*/
|
|
53
|
+
index: number;
|
|
54
|
+
/**
|
|
55
|
+
* The original row object provided to the table. If the row is a grouped row, the
|
|
56
|
+
* original row object will be the first original in the group.
|
|
57
|
+
*/
|
|
58
|
+
original: TData;
|
|
59
|
+
/**
|
|
60
|
+
* An array of the original subRows as returned by the `options.getSubRows` option.
|
|
61
|
+
*/
|
|
62
|
+
originalSubRows?: TData[];
|
|
63
|
+
/**
|
|
64
|
+
* If nested, this row's parent row id.
|
|
65
|
+
*/
|
|
66
|
+
parentId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* An array of subRows for the row as returned and created by the
|
|
69
|
+
* `options.getSubRows` option.
|
|
70
|
+
*
|
|
71
|
+
* @inheritDoc
|
|
72
|
+
*/
|
|
73
|
+
subRows: Row<TData>[];
|
|
74
|
+
}
|
|
75
|
+
export declare const createRow: <TData extends RowData>(table: TableInstance<TData>, id: string, original: TData, rowIndex: number, depth: number, subRows?: Row<TData>[], parentId?: string) => Row<TData>;
|
|
76
|
+
//# sourceMappingURL=row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../../src/table/core/row.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,aAAa,EAAC,MAAM,UAAU,CAAA;AAK/D,MAAM,WAAW,OAAO,CAAC,KAAK,SAAS,OAAO;IAC5C,gBAAgB;IAChB,sBAAsB,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;IAClE,gBAAgB;IAChB,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC3C,gBAAgB;IAChB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAErC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAA;IAEzC;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IAE/B;;;;OAIG;IACH,YAAY,EAAE,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;IAE1C;;;;OAIG;IACH,aAAa,EAAE,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IAEjC;;OAEG;IACH,eAAe,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,EAAE,CAAA;IAEvD;;OAEG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAE9C;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAA;IAEf;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,EAAE,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;OAKG;IACH,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;CACtB;AAED,eAAO,MAAM,SAAS,GAAI,KAAK,SAAS,OAAO,EAC7C,OAAO,aAAa,CAAC,KAAK,CAAC,EAC3B,IAAI,MAAM,EACV,UAAU,KAAK,EACf,UAAU,MAAM,EAChB,OAAO,MAAM,EACb,UAAU,GAAG,CAAC,KAAK,CAAC,EAAE,EACtB,WAAW,MAAM,KAChB,GAAG,CAAC,KAAK,CAqGX,CAAA"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import type { Column, ColumnDef, InitialTableState, Row, RowData, RowModel, TableInstance, TableMeta, TableOptions, TableOptionsResolved, TableState, Updater } from "../types";
|
|
2
|
+
import { type RequiredKeys } from "../utils";
|
|
3
|
+
export interface TableFeature {
|
|
4
|
+
createCell?: (cell: any, column: any, row: any, table: any) => any;
|
|
5
|
+
createColumn?: (column: any, table: any) => any;
|
|
6
|
+
createHeader?: (column: any, table: any) => any;
|
|
7
|
+
createRow?: (row: any, table: any) => any;
|
|
8
|
+
createTable?: (table: any) => any;
|
|
9
|
+
getDefaultColumnDef?: () => any;
|
|
10
|
+
getDefaultOptions?: (table: any) => any;
|
|
11
|
+
getInitialState?: (initialState?: InitialTableState) => any;
|
|
12
|
+
}
|
|
13
|
+
export interface CoreTableState {
|
|
14
|
+
}
|
|
15
|
+
export interface CoreOptions<TData extends RowData> {
|
|
16
|
+
/**
|
|
17
|
+
* Set this option to override any of the `autoReset...` feature options.
|
|
18
|
+
*/
|
|
19
|
+
autoResetAll?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The array of column defs to use for the table.
|
|
22
|
+
*
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
columns: ColumnDef<TData, any>[];
|
|
26
|
+
/**
|
|
27
|
+
* The data for the table to display. This array should match the type you
|
|
28
|
+
* provided to `table.setRowType<...>`. Columns can access this data via
|
|
29
|
+
* string/index or a functional accessor. When the `data` option changes
|
|
30
|
+
* reference, the table will reprocess the data.
|
|
31
|
+
*/
|
|
32
|
+
data: TData[];
|
|
33
|
+
/**
|
|
34
|
+
* Set this option to `true` to output all debugging information to the console.
|
|
35
|
+
*/
|
|
36
|
+
debugAll?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Set this option to `true` to output column debugging information to the console.
|
|
39
|
+
*/
|
|
40
|
+
debugColumns?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set this option to `true` to output header debugging information to the console.
|
|
43
|
+
*/
|
|
44
|
+
debugHeaders?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Set this option to `true` to output row debugging information to the console.
|
|
47
|
+
*/
|
|
48
|
+
debugRows?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Set this option to `true` to output table debugging information to the console.
|
|
51
|
+
*/
|
|
52
|
+
debugTable?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Default column options to use for all column defs supplied to the table.
|
|
55
|
+
*
|
|
56
|
+
* @inheritDoc
|
|
57
|
+
*/
|
|
58
|
+
defaultColumn?: Partial<ColumnDef<TData>>;
|
|
59
|
+
/**
|
|
60
|
+
* This required option is a factory for a function that computes and returns the
|
|
61
|
+
* core row model for the table.
|
|
62
|
+
*
|
|
63
|
+
* @inheritDoc
|
|
64
|
+
*/
|
|
65
|
+
getCoreRowModel?: (table: TableInstance<any>) => () => RowModel<any>;
|
|
66
|
+
/**
|
|
67
|
+
* This optional function is used to derive a unique ID for any given row. If not
|
|
68
|
+
* provided the rows index is used (nested rows join together with `.` using their
|
|
69
|
+
* grandparents' index e.g.,`index.index.index`). If you need to identify
|
|
70
|
+
* individual rows that are originating from any server-side operations, it's
|
|
71
|
+
* suggested you use this function to return an ID that makes sense regardless of
|
|
72
|
+
* network IO/ambiguity e.g., a userId, taskId, database ID field, etc.
|
|
73
|
+
*
|
|
74
|
+
* @example getRowId: row => row.userI
|
|
75
|
+
*/
|
|
76
|
+
getRowId?: (originalRow: TData, index: number,
|
|
77
|
+
/** @inheritDoc */
|
|
78
|
+
parent?: Row<TData>) => string;
|
|
79
|
+
/**
|
|
80
|
+
* This optional function is used to access the sub rows for any given row. If you
|
|
81
|
+
* are using nested rows, you will need to use this function to return the sub
|
|
82
|
+
* rows object (or undefined) from the row.
|
|
83
|
+
*
|
|
84
|
+
* @example getSubRows: row => row.subRow
|
|
85
|
+
*/
|
|
86
|
+
getSubRows?: (originalRow: TData, index: number) => undefined | TData[];
|
|
87
|
+
/**
|
|
88
|
+
* Use this option to optionally pass initial state to the table. This state will
|
|
89
|
+
* be used when resetting various table states either automatically by the table
|
|
90
|
+
* (e.g.,`options.autoResetPageIndex`) or via functions like
|
|
91
|
+
* `table.resetRowSelection()`. Most reset functions allow you to optionally pass a
|
|
92
|
+
* flag to reset to a blank/default state instead of the initial state.
|
|
93
|
+
*
|
|
94
|
+
* Table state will not be reset when this object changes, which also means that
|
|
95
|
+
* the initial state object does not need to be stable.
|
|
96
|
+
*
|
|
97
|
+
* @inheritDoc
|
|
98
|
+
*/
|
|
99
|
+
initialState?: InitialTableState;
|
|
100
|
+
/**
|
|
101
|
+
* This option is used to optionally implement the merging of table options.
|
|
102
|
+
*
|
|
103
|
+
* @inheritDoc
|
|
104
|
+
*/
|
|
105
|
+
mergeOptions?: (
|
|
106
|
+
/** @inheritDoc */
|
|
107
|
+
defaultOptions: TableOptions<TData>,
|
|
108
|
+
/** @inheritDoc */
|
|
109
|
+
options: Partial<TableOptions<TData>>) => TableOptions<TData>;
|
|
110
|
+
/**
|
|
111
|
+
* You can pass any object to `options.meta` and access it anywhere the `table` is
|
|
112
|
+
* available via `table.options.meta`.
|
|
113
|
+
*
|
|
114
|
+
* @inheritDoc
|
|
115
|
+
*/
|
|
116
|
+
meta?: TableMeta<TData>;
|
|
117
|
+
/**
|
|
118
|
+
* The `onStateChange` option can be used to optionally listen to state changes
|
|
119
|
+
* within the table.
|
|
120
|
+
*
|
|
121
|
+
* @inheritDoc
|
|
122
|
+
*/
|
|
123
|
+
onStateChange: (updater: Updater<TableState>) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Value used when the desired value is not found in the data.
|
|
126
|
+
*/
|
|
127
|
+
renderFallbackValue: any;
|
|
128
|
+
/**
|
|
129
|
+
* The `state` option can be used to optionally _control_ part or all of the table
|
|
130
|
+
* state. The state you pass here will merge with and overwrite the internal
|
|
131
|
+
* automatically-managed state to produce the final state for the table. You can
|
|
132
|
+
* also listen to state changes via the `onStateChange` option. > Note: Any state
|
|
133
|
+
* passed in here will override both the internal state and any other
|
|
134
|
+
* `initialState` you provide.
|
|
135
|
+
*
|
|
136
|
+
* @inheritDoc
|
|
137
|
+
*/
|
|
138
|
+
state: Partial<TableState>;
|
|
139
|
+
}
|
|
140
|
+
export interface CoreInstance<TData extends RowData> {
|
|
141
|
+
/** @internal */
|
|
142
|
+
_features: readonly TableFeature[];
|
|
143
|
+
/** @internal */
|
|
144
|
+
_getAllFlatColumnsById: () => Record<string, Column<TData, unknown>>;
|
|
145
|
+
/** @internal */
|
|
146
|
+
_getColumnDefs: () => ColumnDef<TData, unknown>[];
|
|
147
|
+
/** @internal */
|
|
148
|
+
_getCoreRowModel?: () => RowModel<TData>;
|
|
149
|
+
/** @internal */
|
|
150
|
+
_getDefaultColumnDef: () => Partial<ColumnDef<TData, unknown>>;
|
|
151
|
+
/** @internal */
|
|
152
|
+
_getRowId: (_: TData, index: number, parent?: Row<TData>) => string;
|
|
153
|
+
/** @internal */
|
|
154
|
+
_queue: (cb: () => void) => void;
|
|
155
|
+
/**
|
|
156
|
+
* Returns all columns in the table in their normalized and nested hierarchy.
|
|
157
|
+
*
|
|
158
|
+
* @inheritDoc
|
|
159
|
+
*/
|
|
160
|
+
getAllColumns: () => Column<TData, unknown>[];
|
|
161
|
+
/**
|
|
162
|
+
* Returns all columns in the table flattened to a single level.
|
|
163
|
+
*
|
|
164
|
+
* @inheritDoc
|
|
165
|
+
*/
|
|
166
|
+
getAllFlatColumns: () => Column<TData, unknown>[];
|
|
167
|
+
/**
|
|
168
|
+
* Returns all leaf-node columns in the table flattened to a single level. This
|
|
169
|
+
* does not include parent columns.
|
|
170
|
+
*
|
|
171
|
+
* @inheritDoc
|
|
172
|
+
*/
|
|
173
|
+
getAllLeafColumns: () => Column<TData, unknown>[];
|
|
174
|
+
/**
|
|
175
|
+
* Returns a single column by its ID.
|
|
176
|
+
*
|
|
177
|
+
* @inheritDoc
|
|
178
|
+
*/
|
|
179
|
+
getColumn: (columnId: string) => Column<TData, unknown> | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* Returns the core row model before any processing has been applied.
|
|
182
|
+
*
|
|
183
|
+
* @inheritDoc
|
|
184
|
+
*/
|
|
185
|
+
getCoreRowModel: () => RowModel<TData>;
|
|
186
|
+
/**
|
|
187
|
+
* Returns the row with the given ID.
|
|
188
|
+
*
|
|
189
|
+
* @inheritDoc
|
|
190
|
+
*/
|
|
191
|
+
getRow: (id: string, searchAll?: boolean) => Row<TData>;
|
|
192
|
+
/**
|
|
193
|
+
* Returns the final model after all processing from other used features has been
|
|
194
|
+
* applied. This is the row model that is most commonly used for rendering.
|
|
195
|
+
*
|
|
196
|
+
* @inheritDoc
|
|
197
|
+
*/
|
|
198
|
+
getRowModel: () => RowModel<TData>;
|
|
199
|
+
/**
|
|
200
|
+
* Call this function to get the table's current state. It's recommended to use
|
|
201
|
+
* this function and its state, especially when managing the table state manually.
|
|
202
|
+
* It is the exact same state used internally by the table for every feature and
|
|
203
|
+
* function it provides.
|
|
204
|
+
*
|
|
205
|
+
* @inheritDoc
|
|
206
|
+
*/
|
|
207
|
+
getState: () => TableState;
|
|
208
|
+
/**
|
|
209
|
+
* This is the resolved initial state of the table.
|
|
210
|
+
*
|
|
211
|
+
* @inheritDoc
|
|
212
|
+
*/
|
|
213
|
+
initialState: TableState;
|
|
214
|
+
/**
|
|
215
|
+
* A read-only reference to the table's current options.
|
|
216
|
+
*
|
|
217
|
+
* @inheritDoc
|
|
218
|
+
*/
|
|
219
|
+
options: RequiredKeys<TableOptionsResolved<TData>, "state">;
|
|
220
|
+
/**
|
|
221
|
+
* Call this function to reset the table state to the initial state.
|
|
222
|
+
*/
|
|
223
|
+
reset: () => void;
|
|
224
|
+
/**
|
|
225
|
+
* This function can be used to provide new table options.
|
|
226
|
+
*
|
|
227
|
+
* @inheritDoc
|
|
228
|
+
*/
|
|
229
|
+
setOptions: (newOptions: Updater<TableOptionsResolved<TData>>) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Call this function to update the table state.
|
|
232
|
+
*
|
|
233
|
+
* @inheritDoc
|
|
234
|
+
*/
|
|
235
|
+
setState: (updater: Updater<TableState>) => void;
|
|
236
|
+
/**
|
|
237
|
+
* Use this function to update the table options.
|
|
238
|
+
*
|
|
239
|
+
* @inheritDoc
|
|
240
|
+
*/
|
|
241
|
+
updateOptions: (options: Partial<TableOptionsResolved<TData>>) => void;
|
|
242
|
+
}
|
|
243
|
+
export declare function createTable<TData extends RowData>(options: TableOptionsResolved<TData>): TableInstance<TData>;
|
|
244
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/table/core/table.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAGT,iBAAiB,EACjB,GAAG,EACH,OAAO,EACP,QAAQ,EACR,aAAa,EACb,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,OAAO,EACR,MAAM,UAAU,CAAA;AACjB,OAAO,EAAyB,KAAK,YAAY,EAAC,MAAM,UAAU,CAAA;AAKlE,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,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AC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAA;IAE3D;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;;;OAIG;IACH,UAAU,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAA;IAEtE;;;;OAIG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAA;IAEhD;;;;OAIG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAA;CACvE;AAED,wBAAgB,WAAW,CAAC,KAAK,SAAS,OAAO,EAC/C,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC,GACnC,aAAa,CAAC,KAAK,CAAC,CAiQtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/table/dom.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,EAAE,QAAQ,GAAG,IACa,CAAA;AACnD,eAAO,MAAM,UAAU,EAAE,IAAI,GAAG,MACe,CAAA"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { TableFeature } from "../core/table";
|
|
2
|
+
import type { OnChangeFn, Updater } from "../types";
|
|
3
|
+
import type { ColumnPinningPosition } from "./pinning";
|
|
4
|
+
export interface ColumnSizingTableState {
|
|
5
|
+
columnSizing: ColumnSizingState;
|
|
6
|
+
columnSizingInfo: ColumnSizingInfoState;
|
|
7
|
+
}
|
|
8
|
+
export type ColumnSizingState = Record<string, number>;
|
|
9
|
+
export interface ColumnSizingInfoState {
|
|
10
|
+
columnSizingStart: [string, number][];
|
|
11
|
+
deltaOffset: null | number;
|
|
12
|
+
deltaPercentage: null | number;
|
|
13
|
+
isResizingColumn: false | string;
|
|
14
|
+
startOffset: null | number;
|
|
15
|
+
startSize: null | number;
|
|
16
|
+
}
|
|
17
|
+
export type ColumnResizeMode = "onChange" | "onEnd";
|
|
18
|
+
export type ColumnResizeDirection = "ltr" | "rtl";
|
|
19
|
+
export interface ColumnSizingOptions {
|
|
20
|
+
/**
|
|
21
|
+
* Enables or disables right-to-left support for resizing the column. defaults to
|
|
22
|
+
* 'ltr'.
|
|
23
|
+
*/
|
|
24
|
+
columnResizeDirection?: ColumnResizeDirection;
|
|
25
|
+
/**
|
|
26
|
+
* Determines when the columnSizing state is updated. `onChange` updates the state
|
|
27
|
+
* when the user is dragging the resize handle. `onEnd` updates the state when the
|
|
28
|
+
* user releases the resize handle.
|
|
29
|
+
*/
|
|
30
|
+
columnResizeMode?: ColumnResizeMode;
|
|
31
|
+
/**
|
|
32
|
+
* Enables or disables column resizing for the column.
|
|
33
|
+
*/
|
|
34
|
+
enableColumnResizing?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* If provided, this function will be called with an `updaterFn` when
|
|
37
|
+
* `state.columnSizing` changes. This overrides the default internal state
|
|
38
|
+
* management, so you will also need to supply `state.columnSizing` from your own
|
|
39
|
+
* managed state.
|
|
40
|
+
*/
|
|
41
|
+
onColumnSizingChange?: OnChangeFn<ColumnSizingState>;
|
|
42
|
+
/**
|
|
43
|
+
* If provided, this function will be called with an `updaterFn` when
|
|
44
|
+
* `state.columnSizingInfo` changes. This overrides the default internal state
|
|
45
|
+
* management, so you will also need to supply `state.columnSizingInfo` from your
|
|
46
|
+
* own managed state.
|
|
47
|
+
*/
|
|
48
|
+
onColumnSizingInfoChange?: OnChangeFn<ColumnSizingInfoState>;
|
|
49
|
+
}
|
|
50
|
+
export type ColumnSizingDefaultOptions = Pick<ColumnSizingOptions, "columnResizeMode" | "onColumnSizingChange" | "onColumnSizingInfoChange" | "columnResizeDirection">;
|
|
51
|
+
export interface ColumnSizingInstance {
|
|
52
|
+
/**
|
|
53
|
+
* If pinning, returns the total size of the center portion of the table by
|
|
54
|
+
* calculating the sum of the sizes of all unpinned/center leaf-columns.
|
|
55
|
+
*/
|
|
56
|
+
getCenterTotalSize: () => number;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the total size of the left portion of the table by calculating the sum
|
|
59
|
+
* of the sizes of all left leaf-columns.
|
|
60
|
+
*/
|
|
61
|
+
getLeftTotalSize: () => number;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the total size of the right portion of the table by calculating the sum
|
|
64
|
+
* of the sizes of all right leaf-columns.
|
|
65
|
+
*/
|
|
66
|
+
getRightTotalSize: () => number;
|
|
67
|
+
/**
|
|
68
|
+
* Returns the total size of the table by calculating the sum of the sizes of all
|
|
69
|
+
* leaf-columns.
|
|
70
|
+
*/
|
|
71
|
+
getTotalSize: () => number;
|
|
72
|
+
/**
|
|
73
|
+
* Resets column sizing to its initial state. If `defaultState` is `true`, the
|
|
74
|
+
* default state for the table will be used instead of the initialValue provided
|
|
75
|
+
* to the table.
|
|
76
|
+
*/
|
|
77
|
+
resetColumnSizing: (defaultState?: boolean) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Resets column sizing info to its initial state. If `defaultState` is `true`,
|
|
80
|
+
* the default state for the table will be used instead of the initialValue
|
|
81
|
+
* provided to the table.
|
|
82
|
+
*/
|
|
83
|
+
resetHeaderSizeInfo: (defaultState?: boolean) => void;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the column sizing state using an updater function or a value. This will
|
|
86
|
+
* trigger the underlying `onColumnSizingChange` function if one is passed to the
|
|
87
|
+
* table options, otherwise the state will be managed automatically by the table.
|
|
88
|
+
*/
|
|
89
|
+
setColumnSizing: (updater: Updater<ColumnSizingState>) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the column sizing info state using an updater function or a value. This
|
|
92
|
+
* will trigger the underlying `onColumnSizingInfoChange` function if one is
|
|
93
|
+
* passed to the table options, otherwise the state will be managed automatically
|
|
94
|
+
* by the table.
|
|
95
|
+
*/
|
|
96
|
+
setColumnSizingInfo: (updater: Updater<ColumnSizingInfoState>) => void;
|
|
97
|
+
}
|
|
98
|
+
export interface ColumnSizingColumnDef {
|
|
99
|
+
/**
|
|
100
|
+
* Enables or disables column resizing for the column.
|
|
101
|
+
*/
|
|
102
|
+
enableResizing?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* The maximum allowed size for the column
|
|
105
|
+
*/
|
|
106
|
+
maxSize?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The minimum allowed size for the column
|
|
109
|
+
*/
|
|
110
|
+
minSize?: number;
|
|
111
|
+
/**
|
|
112
|
+
* The desired size for the column
|
|
113
|
+
*/
|
|
114
|
+
size?: number;
|
|
115
|
+
}
|
|
116
|
+
export interface ColumnSizingColumn {
|
|
117
|
+
/**
|
|
118
|
+
* Returns `true` if the column can be resized.
|
|
119
|
+
*/
|
|
120
|
+
getCanResize: () => boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Returns `true` if the column is currently being resized.
|
|
123
|
+
*/
|
|
124
|
+
getIsResizing: () => boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Returns the current size of the column.
|
|
127
|
+
*/
|
|
128
|
+
getSize: () => number;
|
|
129
|
+
/**
|
|
130
|
+
* Returns the offset measurement along the row-axis (usually the x-axis for
|
|
131
|
+
* standard tables) for the header. This is effectively a sum of the offset
|
|
132
|
+
* measurements of all preceding headers.
|
|
133
|
+
*/
|
|
134
|
+
getStart: (position?: ColumnPinningPosition) => number;
|
|
135
|
+
/**
|
|
136
|
+
* Resets the column to its initial size.
|
|
137
|
+
*/
|
|
138
|
+
resetSize: () => void;
|
|
139
|
+
}
|
|
140
|
+
export interface ColumnSizingHeader {
|
|
141
|
+
/**
|
|
142
|
+
* Returns an event handler function that can be used to resize the header. It can
|
|
143
|
+
* be used as an:
|
|
144
|
+
* - `onMouseDown` handler
|
|
145
|
+
* - `onTouchStart` handler
|
|
146
|
+
*
|
|
147
|
+
* The dragging and release events are automatically handled for you.
|
|
148
|
+
*/
|
|
149
|
+
getResizeHandler: () => (event: unknown) => void;
|
|
150
|
+
/**
|
|
151
|
+
* Returns the current size of the header.
|
|
152
|
+
*/
|
|
153
|
+
getSize: () => number;
|
|
154
|
+
/**
|
|
155
|
+
* Returns the offset measurement along the row-axis (usually the x-axis for
|
|
156
|
+
* standard tables) for the header. This is effectively a sum of the offset
|
|
157
|
+
* measurements of all preceding headers.
|
|
158
|
+
*/
|
|
159
|
+
getStart: (position?: ColumnPinningPosition) => number;
|
|
160
|
+
}
|
|
161
|
+
export declare const defaultColumnSizing: {
|
|
162
|
+
maxSize: number;
|
|
163
|
+
minSize: number;
|
|
164
|
+
size: number;
|
|
165
|
+
};
|
|
166
|
+
export declare const ColumnSizing: TableFeature;
|
|
167
|
+
export declare function passiveEventSupported(): boolean;
|
|
168
|
+
//# sourceMappingURL=column-sizing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-sizing.d.ts","sourceRoot":"","sources":["../../../src/table/features/column-sizing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAA;AAE/C,OAAO,KAAK,EAGV,UAAU,EAGV,OAAO,EACR,MAAM,UAAU,CAAA;AAGjB,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,WAAW,CAAA;AAEpD,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,iBAAiB,CAAA;IAC/B,gBAAgB,EAAE,qBAAqB,CAAA;CACxC;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAEtD,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAA;IACrC,WAAW,EAAE,IAAI,GAAG,MAAM,CAAA;IAC1B,eAAe,EAAE,IAAI,GAAG,MAAM,CAAA;IAC9B,gBAAgB,EAAE,KAAK,GAAG,MAAM,CAAA;IAChC,WAAW,EAAE,IAAI,GAAG,MAAM,CAAA;IAC1B,SAAS,EAAE,IAAI,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B;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,OAAO,CAAA;IAC3B;;OAEG;IACH,aAAa,EAAE,MAAM,OAAO,CAAA;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,MAAM,CAAA;IACrB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,qBAAqB,KAAK,MAAM,CAAA;IACtD;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;;;;OAOG;IACH,gBAAgB,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAChD;;OAEG;IACH,OAAO,EAAE,MAAM,MAAM,CAAA;IACrB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,qBAAqB,KAAK,MAAM,CAAA;CACvD;AAED,eAAO,MAAM,mBAAmB,EAAE;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CAKb,CAAA;AAWD,eAAO,MAAM,YAAY,EAAE,YA8S1B,CAAA;AAGD,wBAAgB,qBAAqB,IAAI,OAAO,CAuB/C"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { RowModel } from "..";
|
|
2
|
+
import type { TableFeature } from "../core/table";
|
|
3
|
+
import type { OnChangeFn, Row, RowData, TableInstance, Updater } from "../types";
|
|
4
|
+
export type ExpandedStateList = Record<string, boolean>;
|
|
5
|
+
export type ExpandedState = true | Record<string, boolean>;
|
|
6
|
+
export interface ExpandedTableState {
|
|
7
|
+
expanded: ExpandedState;
|
|
8
|
+
}
|
|
9
|
+
export interface ExpandedRow {
|
|
10
|
+
/**
|
|
11
|
+
* Returns whether the row can be expanded.
|
|
12
|
+
*/
|
|
13
|
+
getCanExpand: () => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Returns whether all parent rows of the row are expanded.
|
|
16
|
+
*/
|
|
17
|
+
getIsAllParentsExpanded: () => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Returns whether the row is expanded.
|
|
20
|
+
*/
|
|
21
|
+
getIsExpanded: () => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Returns a function that can be used to toggle the expanded state of the row.
|
|
24
|
+
* This function can be used to bind to an event handler to a button.
|
|
25
|
+
*/
|
|
26
|
+
getToggleExpandedHandler: () => () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Toggles the expanded state (or sets it if `expanded` is provided) for the row.
|
|
29
|
+
*/
|
|
30
|
+
toggleExpanded: (expanded?: boolean) => void;
|
|
31
|
+
}
|
|
32
|
+
export interface ExpandedOptions<TData extends RowData> {
|
|
33
|
+
/**
|
|
34
|
+
* Enable this setting to automatically reset the expanded state of the table when
|
|
35
|
+
* expanding state changes.
|
|
36
|
+
*/
|
|
37
|
+
autoResetExpanded?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Enable/disable expanding for all rows.
|
|
40
|
+
*/
|
|
41
|
+
enableExpanding?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* This function is responsible for returning the expanded row model. If this
|
|
44
|
+
* function is not provided, the table will not expand rows. You can use the
|
|
45
|
+
* default exported `getExpandedRowModel` function to get the expanded row model
|
|
46
|
+
* or implement your own.
|
|
47
|
+
*/
|
|
48
|
+
getExpandedRowModel?: (
|
|
49
|
+
/** @inheritDoc */
|
|
50
|
+
table: TableInstance<any>) => () => RowModel<any>;
|
|
51
|
+
/**
|
|
52
|
+
* If provided, allows you to override the default behavior of determining whether
|
|
53
|
+
* a row is currently expanded.
|
|
54
|
+
*/
|
|
55
|
+
getIsRowExpanded?: (
|
|
56
|
+
/** @inheritDoc */
|
|
57
|
+
row: Row<TData>) => boolean;
|
|
58
|
+
/**
|
|
59
|
+
* If provided, allows you to override the default behavior of determining whether
|
|
60
|
+
* a row can be expanded.
|
|
61
|
+
*/
|
|
62
|
+
getRowCanExpand?: (
|
|
63
|
+
/** @inheritDoc */
|
|
64
|
+
row: Row<TData>) => boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Enables manual row expansion. If this is set to `true`, `getExpandedRowModel`
|
|
67
|
+
* will not be used to expand rows and you would be expected to perform the
|
|
68
|
+
* expansion in your own data model. This is useful if you are doing server-side
|
|
69
|
+
* expansion.
|
|
70
|
+
*/
|
|
71
|
+
manualExpanding?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* This function is called when the `expanded` table state changes. If a function
|
|
74
|
+
* is provided, you will be responsible for managing this state on your own. To
|
|
75
|
+
* pass the managed state back to the table, use the `tableOptions.state.expanded`
|
|
76
|
+
* option.
|
|
77
|
+
*
|
|
78
|
+
* @inheritDoc
|
|
79
|
+
*/
|
|
80
|
+
onExpandedChange?: OnChangeFn<ExpandedState>;
|
|
81
|
+
/**
|
|
82
|
+
* If `true` expanded rows will be paginated along with the rest of the table
|
|
83
|
+
* (which means expanded rows may span multiple pages). If `false` expanded rows
|
|
84
|
+
* will not be considered for pagination (which means expanded rows will always
|
|
85
|
+
* render on their parents page. This also means more rows will be rendered than
|
|
86
|
+
* the set page size)
|
|
87
|
+
*/
|
|
88
|
+
paginateExpandedRows?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface ExpandedInstance<TData extends RowData> {
|
|
91
|
+
/** @internal */
|
|
92
|
+
_autoResetExpanded: () => void;
|
|
93
|
+
/** @internal */
|
|
94
|
+
_getExpandedRowModel?: () => RowModel<TData>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns whether there are any rows that can be expanded.
|
|
97
|
+
*/
|
|
98
|
+
getCanSomeRowsExpand: () => boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Returns the maximum depth of the expanded rows.
|
|
101
|
+
*/
|
|
102
|
+
getExpandedDepth: () => number;
|
|
103
|
+
/**
|
|
104
|
+
* Returns the row model after expansion has been applied.
|
|
105
|
+
*/
|
|
106
|
+
getExpandedRowModel: () => RowModel<TData>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns whether all rows are currently expanded.
|
|
109
|
+
*/
|
|
110
|
+
getIsAllRowsExpanded: () => boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Returns whether there are any rows that are currently expanded.
|
|
113
|
+
*/
|
|
114
|
+
getIsSomeRowsExpanded: () => boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Returns the row model before expansion has been applied.
|
|
117
|
+
*/
|
|
118
|
+
getPreExpandedRowModel: () => RowModel<TData>;
|
|
119
|
+
/**
|
|
120
|
+
* Returns a handler that can be used to toggle the expanded state of all rows.
|
|
121
|
+
* This handler is meant to be used with an `input[type=checkbox]` element.
|
|
122
|
+
*/
|
|
123
|
+
getToggleAllRowsExpandedHandler: () => (event: unknown) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Resets the expanded state of the table to the initial state.
|
|
126
|
+
*/
|
|
127
|
+
resetExpanded: (defaultState?: boolean) => void;
|
|
128
|
+
/**
|
|
129
|
+
* Updates the expanded state of the table via an update function or value.
|
|
130
|
+
*/
|
|
131
|
+
setExpanded: (updater: Updater<ExpandedState>) => void;
|
|
132
|
+
/**
|
|
133
|
+
* Toggles the expanded state for all rows.
|
|
134
|
+
*/
|
|
135
|
+
toggleAllRowsExpanded: (expanded?: boolean) => void;
|
|
136
|
+
}
|
|
137
|
+
export declare const Expanding: TableFeature;
|
|
138
|
+
//# sourceMappingURL=expanding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expanding.d.ts","sourceRoot":"","sources":["../../../src/table/features/expanding.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,IAAI,CAA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