loon-bulma-react 2025.0.30 → 2025.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -814,6 +814,21 @@ type DataTableColumnProp<T extends unknown = unknown> = {
814
814
  /** className voor de kolom, om een cel te stylen afhankelijk van de waarde */
815
815
  columnClass?: string | ((item: T) => string);
816
816
  };
817
+ type PaginationOptionsProp = {
818
+ /** tonen we paginatie? */
819
+ hidden?: boolean;
820
+ /** vanaf wel aantal rijen is paginatie actief */
821
+ threshold?: number;
822
+ /** initiele pagination number. default = 1 (first) */
823
+ initialPage?: number;
824
+ /** Default aantal rijen per pagina (-1 voor alles)*/
825
+ defaultRowsPerPage?: number;
826
+ /** Opties voor aantal rijen per pagina (gebruik `-1` voor alles) */
827
+ rowsPerPageOptions?: {
828
+ label: string;
829
+ value: number;
830
+ }[];
831
+ };
817
832
  type DataTableProps<T extends unknown = unknown> = {
818
833
  /** De kolommen voor de DataTable
819
834
  * @param sort een functie die twee items vergelijkt en -1, 0, 1 of een `number` teruggeeft. Als er geen sort-function is, kan de tabel **niet** op deze kolom gesorteerd worden.
@@ -854,11 +869,16 @@ type DataTableProps<T extends unknown = unknown> = {
854
869
  sticky?: 'none' | 'header' | 'all';
855
870
  /** is de tabel is de tabel hoverbaar (en is dat ook zichtbaar?) hebben? (default = `false`) */
856
871
  hoverable?: boolean;
857
- /** paginatie verstoppen? (default = `false`) */
872
+ /** paginatie verstoppen? (default = `false`)
873
+ * @deprecated gebruik de paginationOptions prop
874
+ */
858
875
  hidePagination?: boolean;
859
- /** initiele pagination number. default = 1 (first) */
876
+ /** initiele pagination number. default = 1 (first)
877
+ * @deprecated gebruik de paginationOptions prop
878
+ */
860
879
  initialPage?: number;
861
880
  /** maximaal aantal rijen in de tabel voor paginatie aangaat. (default = 20)
881
+ * @deprecated gebruik de paginationOptions prop
862
882
  * - 0: geen maximum, alle rijen worden getoond
863
883
  * - number: maximum aantal rijen voor paginatie */
864
884
  maxRows?: 0 | number;
@@ -907,6 +927,7 @@ type DataTableProps<T extends unknown = unknown> = {
907
927
  footerContent?: React$1.ReactNode;
908
928
  itemRef?: React$1.RefObject<any> | null;
909
929
  id?: string;
930
+ paginationOptions?: PaginationOptionsProp | undefined;
910
931
  };
911
932
  /**
912
933
  * Maak een tabel voor grote hoeveelheden data. De tabel is doorzoekbaar en heeft paginatie. Dat is allemaal uit te zetten.
@@ -954,7 +975,7 @@ type DataTableProps<T extends unknown = unknown> = {
954
975
  * @param searchPlaceholder placeholder voor zoek-input (default = 'Zoek ...')
955
976
  * @returns
956
977
  */
957
- declare function DataTable<T extends unknown = unknown>({ data, columns: cols, defaultSortColNum, compact, noStripes, narrow, bordered, hoverable, sticky, hidePagination, initialPage, hideSearch, headerContent, footerContent, size, maxRows: definedMaxRows, searchPlaceholder, rowIdentifier, onSearch, onRowSelected, onRowRightClick, rowClass, renderWhenNoData, searchInfoMessage, id: tableID, itemRef, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
978
+ declare function DataTable<T extends unknown = unknown>({ data, columns: cols, defaultSortColNum, compact, noStripes, narrow, bordered, hoverable, sticky, hidePagination, initialPage, hideSearch, headerContent, footerContent, size, maxRows, searchPlaceholder, rowIdentifier, onSearch, onRowSelected, onRowRightClick, rowClass, renderWhenNoData, searchInfoMessage, id: tableID, itemRef, paginationOptions: paginationOptionsProp, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
958
979
 
959
980
  type DropDownProps = {
960
981
  children?: React$1.ReactNode;
@@ -4627,18 +4648,30 @@ declare function TT({ className, children, style, content, hideArrow, triggers,
4627
4648
  type PaginationProps = {
4628
4649
  /** current selected page number */ currentPage: number;
4629
4650
  /** range to render bijvoorbeeld van de `usePagination()`-hook. Bestaat uit numbers en `'dots'` op de plekken waar puntjes moeten komen
4630
- * @example const range = [1, 'dots', 6, 7, 8, 'dots', 100] */ range: Array<number | 'dots'>;
4631
- /** grootte van de pagination buttons (default = `s`) */ size?: SizeProp;
4632
- /** verberg de `vorige-pagina`-button (default = `false)` */ hidePrev?: boolean;
4633
- /** verberg de `volgende-pagina`-button (default = `false)` */ hideNext?: boolean;
4634
- /** verberg de `eerste pagina`-button (default = `false)` */ hideFirst?: boolean;
4635
- /** verberg de `laatste-pagina`-button (default = `false)` */ hideLast?: boolean;
4636
- /** verberg de `1, 2, 3,`-buttons (default = `false)` */ hideNumbers?: boolean;
4637
- /** function om de pagina te setten */ set?: (page: number) => void;
4638
- /** function om de currentPage op de eerste pagina te setten */ first?: () => void;
4639
- /** function om de currentPage op de laatste pagina te setten */ last?: () => void;
4640
- /** function om de currentPage op vorige pagina te setten */ prev?: () => void;
4641
- /** function om de currentPage op volgende pagina te setten */ next?: () => void;
4651
+ * @example const range = [1, 'dots', 6, 7, 8, 'dots', 100] */
4652
+ range: Array<number | 'dots'>;
4653
+ /** grootte van de pagination buttons (default = `s`) */
4654
+ size?: SizeProp;
4655
+ /** verberg de `vorige-pagina`-button (default = `false)` */
4656
+ hidePrev?: boolean;
4657
+ /** verberg de `volgende-pagina`-button (default = `false)` */
4658
+ hideNext?: boolean;
4659
+ /** verberg de `eerste pagina`-button (default = `false)` */
4660
+ hideFirst?: boolean;
4661
+ /** verberg de `laatste-pagina`-button (default = `false)` */
4662
+ hideLast?: boolean;
4663
+ /** verberg de `1, 2, 3,`-buttons (default = `false)` */
4664
+ hideNumbers?: boolean;
4665
+ /** function om de pagina te setten */
4666
+ set?: (page: number) => void;
4667
+ /** function om de currentPage op de eerste pagina te setten */
4668
+ first?: () => void;
4669
+ /** function om de currentPage op de laatste pagina te setten */
4670
+ last?: () => void;
4671
+ /** function om de currentPage op vorige pagina te setten */
4672
+ prev?: () => void;
4673
+ /** function om de currentPage op volgende pagina te setten */
4674
+ next?: () => void;
4642
4675
  };
4643
4676
  /**
4644
4677
  * Pagination component voor gebruik met de `usePagination()`-hook.
@@ -5011,6 +5044,22 @@ type DefaultsType = {
5011
5044
  tags: TagSettings;
5012
5045
  /** default alignment settings */
5013
5046
  alignment: AlignmentProp;
5047
+ datatablePagination: PaginationOptions;
5048
+ };
5049
+ type PaginationOptions = {
5050
+ /** tonen we pagination? */
5051
+ hidden: boolean;
5052
+ /** vanaf wel aantal rijen is paginatie actief */
5053
+ threshold: number;
5054
+ /** initiele pagination number. default = 1 (first) */
5055
+ initialPage: number;
5056
+ /** Default aantal rijen per pagina (-1 voor alles)*/
5057
+ defaultRowsPerPage: number;
5058
+ /** Opties voor aantal rijen per pagina (gebruik value `-1` voor alles) */
5059
+ rowsPerPageOptions: {
5060
+ label: string;
5061
+ value: number;
5062
+ }[];
5014
5063
  };
5015
5064
  /** Partial type voor het updaten van een of meer enkele settings.
5016
5065
  * Alle properties zijn optioneel, en kunnen dus ook weggelaten worden.
@@ -5026,6 +5075,7 @@ type OptionalDefaultsType = Partial<{
5026
5075
  tags: Partial<TagSettings>;
5027
5076
  /** default alignment settings */
5028
5077
  alignment: Partial<AlignmentProp>;
5078
+ datatablePagination: Partial<PaginationOptions>;
5029
5079
  }>;
5030
5080
  /**
5031
5081
  * Context voor het bijhouden van de default waardes voor de LoonBulmaReact componenten
@@ -5720,4 +5770,4 @@ type IndexedDBHookParams = {
5720
5770
  */
5721
5771
  declare function useIndexedDB({ db: dbName, store: storeName, version }: IndexedDBHookParams): HookReturnValue;
5722
5772
 
5723
- export { AND, type ActionSheetButton, ActionSheetProvider, type AlignmentProp, type AllowedPromptTypes, type AnchorRelProp, type AnchorTargetProp, AspectRatio, type AspectRatioProps, type AutoCompleteProp, type BaseEventProps, BaseInput, Block, BorderBox, Box, type BoxProps, Button, Buttons as ButtonGroup, type ButtonGroupProps, type ButtonProps, Buttons, CB, Calendar, type CalendarOptions, type CalendarType, CheckBox, type CheckBoxInputProps as CheckboxInputProps, CodeBlock, type CodeBlockProps, type CodeLanguage, ColorInput, type ColorInputProps, type ColorProp, ColorSchemeContext, ColorSchemeProvider, type ColorSchemeType, Column, type ColumnProps, Columns, ComboBox, type ComboBoxProps, ConfirmProvider, Container, Content, ContextMenu, type CoordinatesProp, CurrencyInput, type CurrencyInputProps, DOTS, DataTable, type DataTableColumnProp as DataTableColumn, type DataTableProps, DateInput, type DateInputProps, DateTimeInput, type DateTimeInputProps, DefaultsContext, DefaultsProvider, DefinedHexColors, DialogsProvider, type DiffFnType, type DirectionProp, Divider, Dropdown, EmailInput, type EmailInputProps, EvMv, type ExpandedColumnProps, FileInput, type FileInputProps, type FileInputValue, Footer, FormattedInput, type FormattedInputProps, H1, H2, H3, H4, H5, H6, type HSLColor, HelpTxt, type HelpTxtProps, Hero, type HeroProps, type HexColor$1 as HexColor, HiddenInput, type HiddenInputProps, type Hotkey, type HotkeyItem, IF, IbanDetailsPerLand, Icon, type IconProps, IconStack, IconText, type IconTextProps, Image, type ImageProps, Indicator, type IndicatorPositionProp, type IndicatorProps, Input, InputContainer, type InputPropsType, type InputStylingPropsType, type InputValueType, type JSChangeDateTimeType, type JSDateSetterType, JSDateTime, JSDuration, Kbd, Kbds, type KeyOf, type KeyboardTypeProp, KeysContext, KeysProvider, Label, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, LoonBulmaReactProviders, Menu, type MenuItemGroupProps, type MenuItemProps, type MenuProps, Message, type MessageProps, Modal, ModalContext, type ModalProps, ModalProvider, ModeContext, ModeProvider, MonthInput, type MonthInputProps, type MonthInputString, type MonthViewProps, MultiComboBox, type MultiComboBoxProps, NAND, NOR, NOT, Notification, type NotificationProps, Notifier, type NotifierContextType, type NotifierItemProps, type NotifierProps, NotifierProvider, type NotifierProviderProps, NumberInput, type NumberInputProps, OR, type OnOffToggleItemProps, type OptionalDefaultsType, Pagination, type PaginationParams, type PaginationProps, Panel, type PanelProps, PasswordInput, type PasswordInputProps, type PositionProp, type PrettierType, ProgressBar, type ProgressBarProps, PromptProvider, QuickView, type QuickViewProps, RB, type RGBColor, RadioGroup, type RadioInputProps, RangeInput, type RangeInputProps, type RectProp, type RelationshipProp, ContextMenu as RightClickMenu, SWITCH, ScrollArea, Section, Select, type SelectInputProps, SimpleTable, type SimpleTableColProps, type SimpleTableProps, type SizeProp, type StepItemProps, Steps, type StepsProps, type StrictOmit, type StringWithAutocomplete, TabBar, type TabBarItemProps, type TabBarProps, Table, Tag, type TagProps, type TagSizeProp, Tags, TagsInput, type TagsInputProps, type TagsProps, TelephoneInput, type TelephoneInputProps, type TextAlignmentProp, TextArea, type TextAreaProps, TextEditor, TextInput, type TextInputProps, TimeInput, type TimeInputProps, TimeLine, type TimeLineItemProps, type TimeLinePointProps, type TimeLineProps, ToggleBar, type ToggleBarProps, type ToggleItemProps, TT as Tooltip, TreeViewRoot as TreeView, TreeViewNode, type TreeViewProps, type TypeOfSet, URLInput, type URLInputProps, type UncontrolledMode, type UncontrolledOptions, WeekInput, type WeekInputProps, type WeekInputString, type WeekViewProps, XNOR, XOR, boolSort, calculateTxtColor, centerPad, colorPropToHex, dateSort, firstDifferentIndex, getCurrentColorScheme, getHotkeyHandler, getHotkeyMatcher, getSystemColorScheme, hasBSN, hexToHSL, hexToRGB, hslToHex, hslToRGB, isBSN, isHSLColor, isHexColor, isIBAN, isNullOrEmpty, isRGBColor, leftPad, maxLength, numSort, parseHotkey, randomColor, randomColorProp, randomDbl, randomInt, rgbToHSL, rgbToHex, rightPad, roundTo, setColorScheme, stringSort, tryIt, tryItAsync, useActionSheet, useBoolToggle, useClickOutside, useClipboard, useColorScheme, useConfirm, useContextMenu, useCookieStoredState, useDebouncedState, useDebouncedValue, useFetchAPI, useHotkeys, useIndexedDB, useKeyContext, useLocalStoredState, useNotifier, usePagination, usePrompt, usePropState, useContextMenu as useRightClick, useScrollIntoView, useSessionStoredState, useToggle, useUncontrolled, useValidatedState };
5773
+ export { AND, type ActionSheetButton, ActionSheetProvider, type AlignmentProp, type AllowedPromptTypes, type AnchorRelProp, type AnchorTargetProp, AspectRatio, type AspectRatioProps, type AutoCompleteProp, type BaseEventProps, BaseInput, Block, BorderBox, Box, type BoxProps, Button, Buttons as ButtonGroup, type ButtonGroupProps, type ButtonProps, Buttons, CB, Calendar, type CalendarOptions, type CalendarType, CheckBox, type CheckBoxInputProps as CheckboxInputProps, CodeBlock, type CodeBlockProps, type CodeLanguage, ColorInput, type ColorInputProps, type ColorProp, ColorSchemeContext, ColorSchemeProvider, type ColorSchemeType, Column, type ColumnProps, Columns, ComboBox, type ComboBoxProps, ConfirmProvider, Container, Content, ContextMenu, type CoordinatesProp, CurrencyInput, type CurrencyInputProps, DOTS, DataTable, type DataTableColumnProp as DataTableColumn, type DataTableProps, DateInput, type DateInputProps, DateTimeInput, type DateTimeInputProps, DefaultsContext, DefaultsProvider, DefinedHexColors, DialogsProvider, type DiffFnType, type DirectionProp, Divider, Dropdown, EmailInput, type EmailInputProps, EvMv, type ExpandedColumnProps, FileInput, type FileInputProps, type FileInputValue, Footer, FormattedInput, type FormattedInputProps, H1, H2, H3, H4, H5, H6, type HSLColor, HelpTxt, type HelpTxtProps, Hero, type HeroProps, type HexColor$1 as HexColor, HiddenInput, type HiddenInputProps, type Hotkey, type HotkeyItem, IF, IbanDetailsPerLand, Icon, type IconProps, IconStack, IconText, type IconTextProps, Image, type ImageProps, Indicator, type IndicatorPositionProp, type IndicatorProps, Input, InputContainer, type InputPropsType, type InputStylingPropsType, type InputValueType, type JSChangeDateTimeType, type JSDateSetterType, JSDateTime, JSDuration, Kbd, Kbds, type KeyOf, type KeyboardTypeProp, KeysContext, KeysProvider, Label, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, LoonBulmaReactProviders, Menu, type MenuItemGroupProps, type MenuItemProps, type MenuProps, Message, type MessageProps, Modal, ModalContext, type ModalProps, ModalProvider, ModeContext, ModeProvider, MonthInput, type MonthInputProps, type MonthInputString, type MonthViewProps, MultiComboBox, type MultiComboBoxProps, NAND, NOR, NOT, Notification, type NotificationProps, Notifier, type NotifierContextType, type NotifierItemProps, type NotifierProps, NotifierProvider, type NotifierProviderProps, NumberInput, type NumberInputProps, OR, type OnOffToggleItemProps, type OptionalDefaultsType, Pagination, type PaginationOptions, type PaginationParams, type PaginationProps, Panel, type PanelProps, PasswordInput, type PasswordInputProps, type PositionProp, type PrettierType, ProgressBar, type ProgressBarProps, PromptProvider, QuickView, type QuickViewProps, RB, type RGBColor, RadioGroup, type RadioInputProps, RangeInput, type RangeInputProps, type RectProp, type RelationshipProp, ContextMenu as RightClickMenu, SWITCH, ScrollArea, Section, Select, type SelectInputProps, SimpleTable, type SimpleTableColProps, type SimpleTableProps, type SizeProp, type StepItemProps, Steps, type StepsProps, type StrictOmit, type StringWithAutocomplete, TabBar, type TabBarItemProps, type TabBarProps, Table, Tag, type TagProps, type TagSizeProp, Tags, TagsInput, type TagsInputProps, type TagsProps, TelephoneInput, type TelephoneInputProps, type TextAlignmentProp, TextArea, type TextAreaProps, TextEditor, TextInput, type TextInputProps, TimeInput, type TimeInputProps, TimeLine, type TimeLineItemProps, type TimeLinePointProps, type TimeLineProps, ToggleBar, type ToggleBarProps, type ToggleItemProps, TT as Tooltip, TreeViewRoot as TreeView, TreeViewNode, type TreeViewProps, type TypeOfSet, URLInput, type URLInputProps, type UncontrolledMode, type UncontrolledOptions, WeekInput, type WeekInputProps, type WeekInputString, type WeekViewProps, XNOR, XOR, boolSort, calculateTxtColor, centerPad, colorPropToHex, dateSort, firstDifferentIndex, getCurrentColorScheme, getHotkeyHandler, getHotkeyMatcher, getSystemColorScheme, hasBSN, hexToHSL, hexToRGB, hslToHex, hslToRGB, isBSN, isHSLColor, isHexColor, isIBAN, isNullOrEmpty, isRGBColor, leftPad, maxLength, numSort, parseHotkey, randomColor, randomColorProp, randomDbl, randomInt, rgbToHSL, rgbToHex, rightPad, roundTo, setColorScheme, stringSort, tryIt, tryItAsync, useActionSheet, useBoolToggle, useClickOutside, useClipboard, useColorScheme, useConfirm, useContextMenu, useCookieStoredState, useDebouncedState, useDebouncedValue, useFetchAPI, useHotkeys, useIndexedDB, useKeyContext, useLocalStoredState, useNotifier, usePagination, usePrompt, usePropState, useContextMenu as useRightClick, useScrollIntoView, useSessionStoredState, useToggle, useUncontrolled, useValidatedState };
package/dist/index.d.ts CHANGED
@@ -814,6 +814,21 @@ type DataTableColumnProp<T extends unknown = unknown> = {
814
814
  /** className voor de kolom, om een cel te stylen afhankelijk van de waarde */
815
815
  columnClass?: string | ((item: T) => string);
816
816
  };
817
+ type PaginationOptionsProp = {
818
+ /** tonen we paginatie? */
819
+ hidden?: boolean;
820
+ /** vanaf wel aantal rijen is paginatie actief */
821
+ threshold?: number;
822
+ /** initiele pagination number. default = 1 (first) */
823
+ initialPage?: number;
824
+ /** Default aantal rijen per pagina (-1 voor alles)*/
825
+ defaultRowsPerPage?: number;
826
+ /** Opties voor aantal rijen per pagina (gebruik `-1` voor alles) */
827
+ rowsPerPageOptions?: {
828
+ label: string;
829
+ value: number;
830
+ }[];
831
+ };
817
832
  type DataTableProps<T extends unknown = unknown> = {
818
833
  /** De kolommen voor de DataTable
819
834
  * @param sort een functie die twee items vergelijkt en -1, 0, 1 of een `number` teruggeeft. Als er geen sort-function is, kan de tabel **niet** op deze kolom gesorteerd worden.
@@ -854,11 +869,16 @@ type DataTableProps<T extends unknown = unknown> = {
854
869
  sticky?: 'none' | 'header' | 'all';
855
870
  /** is de tabel is de tabel hoverbaar (en is dat ook zichtbaar?) hebben? (default = `false`) */
856
871
  hoverable?: boolean;
857
- /** paginatie verstoppen? (default = `false`) */
872
+ /** paginatie verstoppen? (default = `false`)
873
+ * @deprecated gebruik de paginationOptions prop
874
+ */
858
875
  hidePagination?: boolean;
859
- /** initiele pagination number. default = 1 (first) */
876
+ /** initiele pagination number. default = 1 (first)
877
+ * @deprecated gebruik de paginationOptions prop
878
+ */
860
879
  initialPage?: number;
861
880
  /** maximaal aantal rijen in de tabel voor paginatie aangaat. (default = 20)
881
+ * @deprecated gebruik de paginationOptions prop
862
882
  * - 0: geen maximum, alle rijen worden getoond
863
883
  * - number: maximum aantal rijen voor paginatie */
864
884
  maxRows?: 0 | number;
@@ -907,6 +927,7 @@ type DataTableProps<T extends unknown = unknown> = {
907
927
  footerContent?: React$1.ReactNode;
908
928
  itemRef?: React$1.RefObject<any> | null;
909
929
  id?: string;
930
+ paginationOptions?: PaginationOptionsProp | undefined;
910
931
  };
911
932
  /**
912
933
  * Maak een tabel voor grote hoeveelheden data. De tabel is doorzoekbaar en heeft paginatie. Dat is allemaal uit te zetten.
@@ -954,7 +975,7 @@ type DataTableProps<T extends unknown = unknown> = {
954
975
  * @param searchPlaceholder placeholder voor zoek-input (default = 'Zoek ...')
955
976
  * @returns
956
977
  */
957
- declare function DataTable<T extends unknown = unknown>({ data, columns: cols, defaultSortColNum, compact, noStripes, narrow, bordered, hoverable, sticky, hidePagination, initialPage, hideSearch, headerContent, footerContent, size, maxRows: definedMaxRows, searchPlaceholder, rowIdentifier, onSearch, onRowSelected, onRowRightClick, rowClass, renderWhenNoData, searchInfoMessage, id: tableID, itemRef, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
978
+ declare function DataTable<T extends unknown = unknown>({ data, columns: cols, defaultSortColNum, compact, noStripes, narrow, bordered, hoverable, sticky, hidePagination, initialPage, hideSearch, headerContent, footerContent, size, maxRows, searchPlaceholder, rowIdentifier, onSearch, onRowSelected, onRowRightClick, rowClass, renderWhenNoData, searchInfoMessage, id: tableID, itemRef, paginationOptions: paginationOptionsProp, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
958
979
 
959
980
  type DropDownProps = {
960
981
  children?: React$1.ReactNode;
@@ -4627,18 +4648,30 @@ declare function TT({ className, children, style, content, hideArrow, triggers,
4627
4648
  type PaginationProps = {
4628
4649
  /** current selected page number */ currentPage: number;
4629
4650
  /** range to render bijvoorbeeld van de `usePagination()`-hook. Bestaat uit numbers en `'dots'` op de plekken waar puntjes moeten komen
4630
- * @example const range = [1, 'dots', 6, 7, 8, 'dots', 100] */ range: Array<number | 'dots'>;
4631
- /** grootte van de pagination buttons (default = `s`) */ size?: SizeProp;
4632
- /** verberg de `vorige-pagina`-button (default = `false)` */ hidePrev?: boolean;
4633
- /** verberg de `volgende-pagina`-button (default = `false)` */ hideNext?: boolean;
4634
- /** verberg de `eerste pagina`-button (default = `false)` */ hideFirst?: boolean;
4635
- /** verberg de `laatste-pagina`-button (default = `false)` */ hideLast?: boolean;
4636
- /** verberg de `1, 2, 3,`-buttons (default = `false)` */ hideNumbers?: boolean;
4637
- /** function om de pagina te setten */ set?: (page: number) => void;
4638
- /** function om de currentPage op de eerste pagina te setten */ first?: () => void;
4639
- /** function om de currentPage op de laatste pagina te setten */ last?: () => void;
4640
- /** function om de currentPage op vorige pagina te setten */ prev?: () => void;
4641
- /** function om de currentPage op volgende pagina te setten */ next?: () => void;
4651
+ * @example const range = [1, 'dots', 6, 7, 8, 'dots', 100] */
4652
+ range: Array<number | 'dots'>;
4653
+ /** grootte van de pagination buttons (default = `s`) */
4654
+ size?: SizeProp;
4655
+ /** verberg de `vorige-pagina`-button (default = `false)` */
4656
+ hidePrev?: boolean;
4657
+ /** verberg de `volgende-pagina`-button (default = `false)` */
4658
+ hideNext?: boolean;
4659
+ /** verberg de `eerste pagina`-button (default = `false)` */
4660
+ hideFirst?: boolean;
4661
+ /** verberg de `laatste-pagina`-button (default = `false)` */
4662
+ hideLast?: boolean;
4663
+ /** verberg de `1, 2, 3,`-buttons (default = `false)` */
4664
+ hideNumbers?: boolean;
4665
+ /** function om de pagina te setten */
4666
+ set?: (page: number) => void;
4667
+ /** function om de currentPage op de eerste pagina te setten */
4668
+ first?: () => void;
4669
+ /** function om de currentPage op de laatste pagina te setten */
4670
+ last?: () => void;
4671
+ /** function om de currentPage op vorige pagina te setten */
4672
+ prev?: () => void;
4673
+ /** function om de currentPage op volgende pagina te setten */
4674
+ next?: () => void;
4642
4675
  };
4643
4676
  /**
4644
4677
  * Pagination component voor gebruik met de `usePagination()`-hook.
@@ -5011,6 +5044,22 @@ type DefaultsType = {
5011
5044
  tags: TagSettings;
5012
5045
  /** default alignment settings */
5013
5046
  alignment: AlignmentProp;
5047
+ datatablePagination: PaginationOptions;
5048
+ };
5049
+ type PaginationOptions = {
5050
+ /** tonen we pagination? */
5051
+ hidden: boolean;
5052
+ /** vanaf wel aantal rijen is paginatie actief */
5053
+ threshold: number;
5054
+ /** initiele pagination number. default = 1 (first) */
5055
+ initialPage: number;
5056
+ /** Default aantal rijen per pagina (-1 voor alles)*/
5057
+ defaultRowsPerPage: number;
5058
+ /** Opties voor aantal rijen per pagina (gebruik value `-1` voor alles) */
5059
+ rowsPerPageOptions: {
5060
+ label: string;
5061
+ value: number;
5062
+ }[];
5014
5063
  };
5015
5064
  /** Partial type voor het updaten van een of meer enkele settings.
5016
5065
  * Alle properties zijn optioneel, en kunnen dus ook weggelaten worden.
@@ -5026,6 +5075,7 @@ type OptionalDefaultsType = Partial<{
5026
5075
  tags: Partial<TagSettings>;
5027
5076
  /** default alignment settings */
5028
5077
  alignment: Partial<AlignmentProp>;
5078
+ datatablePagination: Partial<PaginationOptions>;
5029
5079
  }>;
5030
5080
  /**
5031
5081
  * Context voor het bijhouden van de default waardes voor de LoonBulmaReact componenten
@@ -5720,4 +5770,4 @@ type IndexedDBHookParams = {
5720
5770
  */
5721
5771
  declare function useIndexedDB({ db: dbName, store: storeName, version }: IndexedDBHookParams): HookReturnValue;
5722
5772
 
5723
- export { AND, type ActionSheetButton, ActionSheetProvider, type AlignmentProp, type AllowedPromptTypes, type AnchorRelProp, type AnchorTargetProp, AspectRatio, type AspectRatioProps, type AutoCompleteProp, type BaseEventProps, BaseInput, Block, BorderBox, Box, type BoxProps, Button, Buttons as ButtonGroup, type ButtonGroupProps, type ButtonProps, Buttons, CB, Calendar, type CalendarOptions, type CalendarType, CheckBox, type CheckBoxInputProps as CheckboxInputProps, CodeBlock, type CodeBlockProps, type CodeLanguage, ColorInput, type ColorInputProps, type ColorProp, ColorSchemeContext, ColorSchemeProvider, type ColorSchemeType, Column, type ColumnProps, Columns, ComboBox, type ComboBoxProps, ConfirmProvider, Container, Content, ContextMenu, type CoordinatesProp, CurrencyInput, type CurrencyInputProps, DOTS, DataTable, type DataTableColumnProp as DataTableColumn, type DataTableProps, DateInput, type DateInputProps, DateTimeInput, type DateTimeInputProps, DefaultsContext, DefaultsProvider, DefinedHexColors, DialogsProvider, type DiffFnType, type DirectionProp, Divider, Dropdown, EmailInput, type EmailInputProps, EvMv, type ExpandedColumnProps, FileInput, type FileInputProps, type FileInputValue, Footer, FormattedInput, type FormattedInputProps, H1, H2, H3, H4, H5, H6, type HSLColor, HelpTxt, type HelpTxtProps, Hero, type HeroProps, type HexColor$1 as HexColor, HiddenInput, type HiddenInputProps, type Hotkey, type HotkeyItem, IF, IbanDetailsPerLand, Icon, type IconProps, IconStack, IconText, type IconTextProps, Image, type ImageProps, Indicator, type IndicatorPositionProp, type IndicatorProps, Input, InputContainer, type InputPropsType, type InputStylingPropsType, type InputValueType, type JSChangeDateTimeType, type JSDateSetterType, JSDateTime, JSDuration, Kbd, Kbds, type KeyOf, type KeyboardTypeProp, KeysContext, KeysProvider, Label, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, LoonBulmaReactProviders, Menu, type MenuItemGroupProps, type MenuItemProps, type MenuProps, Message, type MessageProps, Modal, ModalContext, type ModalProps, ModalProvider, ModeContext, ModeProvider, MonthInput, type MonthInputProps, type MonthInputString, type MonthViewProps, MultiComboBox, type MultiComboBoxProps, NAND, NOR, NOT, Notification, type NotificationProps, Notifier, type NotifierContextType, type NotifierItemProps, type NotifierProps, NotifierProvider, type NotifierProviderProps, NumberInput, type NumberInputProps, OR, type OnOffToggleItemProps, type OptionalDefaultsType, Pagination, type PaginationParams, type PaginationProps, Panel, type PanelProps, PasswordInput, type PasswordInputProps, type PositionProp, type PrettierType, ProgressBar, type ProgressBarProps, PromptProvider, QuickView, type QuickViewProps, RB, type RGBColor, RadioGroup, type RadioInputProps, RangeInput, type RangeInputProps, type RectProp, type RelationshipProp, ContextMenu as RightClickMenu, SWITCH, ScrollArea, Section, Select, type SelectInputProps, SimpleTable, type SimpleTableColProps, type SimpleTableProps, type SizeProp, type StepItemProps, Steps, type StepsProps, type StrictOmit, type StringWithAutocomplete, TabBar, type TabBarItemProps, type TabBarProps, Table, Tag, type TagProps, type TagSizeProp, Tags, TagsInput, type TagsInputProps, type TagsProps, TelephoneInput, type TelephoneInputProps, type TextAlignmentProp, TextArea, type TextAreaProps, TextEditor, TextInput, type TextInputProps, TimeInput, type TimeInputProps, TimeLine, type TimeLineItemProps, type TimeLinePointProps, type TimeLineProps, ToggleBar, type ToggleBarProps, type ToggleItemProps, TT as Tooltip, TreeViewRoot as TreeView, TreeViewNode, type TreeViewProps, type TypeOfSet, URLInput, type URLInputProps, type UncontrolledMode, type UncontrolledOptions, WeekInput, type WeekInputProps, type WeekInputString, type WeekViewProps, XNOR, XOR, boolSort, calculateTxtColor, centerPad, colorPropToHex, dateSort, firstDifferentIndex, getCurrentColorScheme, getHotkeyHandler, getHotkeyMatcher, getSystemColorScheme, hasBSN, hexToHSL, hexToRGB, hslToHex, hslToRGB, isBSN, isHSLColor, isHexColor, isIBAN, isNullOrEmpty, isRGBColor, leftPad, maxLength, numSort, parseHotkey, randomColor, randomColorProp, randomDbl, randomInt, rgbToHSL, rgbToHex, rightPad, roundTo, setColorScheme, stringSort, tryIt, tryItAsync, useActionSheet, useBoolToggle, useClickOutside, useClipboard, useColorScheme, useConfirm, useContextMenu, useCookieStoredState, useDebouncedState, useDebouncedValue, useFetchAPI, useHotkeys, useIndexedDB, useKeyContext, useLocalStoredState, useNotifier, usePagination, usePrompt, usePropState, useContextMenu as useRightClick, useScrollIntoView, useSessionStoredState, useToggle, useUncontrolled, useValidatedState };
5773
+ export { AND, type ActionSheetButton, ActionSheetProvider, type AlignmentProp, type AllowedPromptTypes, type AnchorRelProp, type AnchorTargetProp, AspectRatio, type AspectRatioProps, type AutoCompleteProp, type BaseEventProps, BaseInput, Block, BorderBox, Box, type BoxProps, Button, Buttons as ButtonGroup, type ButtonGroupProps, type ButtonProps, Buttons, CB, Calendar, type CalendarOptions, type CalendarType, CheckBox, type CheckBoxInputProps as CheckboxInputProps, CodeBlock, type CodeBlockProps, type CodeLanguage, ColorInput, type ColorInputProps, type ColorProp, ColorSchemeContext, ColorSchemeProvider, type ColorSchemeType, Column, type ColumnProps, Columns, ComboBox, type ComboBoxProps, ConfirmProvider, Container, Content, ContextMenu, type CoordinatesProp, CurrencyInput, type CurrencyInputProps, DOTS, DataTable, type DataTableColumnProp as DataTableColumn, type DataTableProps, DateInput, type DateInputProps, DateTimeInput, type DateTimeInputProps, DefaultsContext, DefaultsProvider, DefinedHexColors, DialogsProvider, type DiffFnType, type DirectionProp, Divider, Dropdown, EmailInput, type EmailInputProps, EvMv, type ExpandedColumnProps, FileInput, type FileInputProps, type FileInputValue, Footer, FormattedInput, type FormattedInputProps, H1, H2, H3, H4, H5, H6, type HSLColor, HelpTxt, type HelpTxtProps, Hero, type HeroProps, type HexColor$1 as HexColor, HiddenInput, type HiddenInputProps, type Hotkey, type HotkeyItem, IF, IbanDetailsPerLand, Icon, type IconProps, IconStack, IconText, type IconTextProps, Image, type ImageProps, Indicator, type IndicatorPositionProp, type IndicatorProps, Input, InputContainer, type InputPropsType, type InputStylingPropsType, type InputValueType, type JSChangeDateTimeType, type JSDateSetterType, JSDateTime, JSDuration, Kbd, Kbds, type KeyOf, type KeyboardTypeProp, KeysContext, KeysProvider, Label, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, LoonBulmaReactProviders, Menu, type MenuItemGroupProps, type MenuItemProps, type MenuProps, Message, type MessageProps, Modal, ModalContext, type ModalProps, ModalProvider, ModeContext, ModeProvider, MonthInput, type MonthInputProps, type MonthInputString, type MonthViewProps, MultiComboBox, type MultiComboBoxProps, NAND, NOR, NOT, Notification, type NotificationProps, Notifier, type NotifierContextType, type NotifierItemProps, type NotifierProps, NotifierProvider, type NotifierProviderProps, NumberInput, type NumberInputProps, OR, type OnOffToggleItemProps, type OptionalDefaultsType, Pagination, type PaginationOptions, type PaginationParams, type PaginationProps, Panel, type PanelProps, PasswordInput, type PasswordInputProps, type PositionProp, type PrettierType, ProgressBar, type ProgressBarProps, PromptProvider, QuickView, type QuickViewProps, RB, type RGBColor, RadioGroup, type RadioInputProps, RangeInput, type RangeInputProps, type RectProp, type RelationshipProp, ContextMenu as RightClickMenu, SWITCH, ScrollArea, Section, Select, type SelectInputProps, SimpleTable, type SimpleTableColProps, type SimpleTableProps, type SizeProp, type StepItemProps, Steps, type StepsProps, type StrictOmit, type StringWithAutocomplete, TabBar, type TabBarItemProps, type TabBarProps, Table, Tag, type TagProps, type TagSizeProp, Tags, TagsInput, type TagsInputProps, type TagsProps, TelephoneInput, type TelephoneInputProps, type TextAlignmentProp, TextArea, type TextAreaProps, TextEditor, TextInput, type TextInputProps, TimeInput, type TimeInputProps, TimeLine, type TimeLineItemProps, type TimeLinePointProps, type TimeLineProps, ToggleBar, type ToggleBarProps, type ToggleItemProps, TT as Tooltip, TreeViewRoot as TreeView, TreeViewNode, type TreeViewProps, type TypeOfSet, URLInput, type URLInputProps, type UncontrolledMode, type UncontrolledOptions, WeekInput, type WeekInputProps, type WeekInputString, type WeekViewProps, XNOR, XOR, boolSort, calculateTxtColor, centerPad, colorPropToHex, dateSort, firstDifferentIndex, getCurrentColorScheme, getHotkeyHandler, getHotkeyMatcher, getSystemColorScheme, hasBSN, hexToHSL, hexToRGB, hslToHex, hslToRGB, isBSN, isHSLColor, isHexColor, isIBAN, isNullOrEmpty, isRGBColor, leftPad, maxLength, numSort, parseHotkey, randomColor, randomColorProp, randomDbl, randomInt, rgbToHSL, rgbToHex, rightPad, roundTo, setColorScheme, stringSort, tryIt, tryItAsync, useActionSheet, useBoolToggle, useClickOutside, useClipboard, useColorScheme, useConfirm, useContextMenu, useCookieStoredState, useDebouncedState, useDebouncedValue, useFetchAPI, useHotkeys, useIndexedDB, useKeyContext, useLocalStoredState, useNotifier, usePagination, usePrompt, usePropState, useContextMenu as useRightClick, useScrollIntoView, useSessionStoredState, useToggle, useUncontrolled, useValidatedState };