loon-bulma-react 2026.0.61 → 2026.0.63
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.
|
@@ -112,11 +112,11 @@ type DataTableProps<T extends unknown = unknown> = {
|
|
|
112
112
|
*/
|
|
113
113
|
onSearch?: (searchTerm: string, data: T[]) => T[];
|
|
114
114
|
/** opmaak voor informatie over het zoeken
|
|
115
|
-
* @param
|
|
116
|
-
* @param
|
|
117
|
-
* @param
|
|
115
|
+
* @param filteredCount aantal items dat voldoet aan de zoekterm
|
|
116
|
+
* @param totalCount totaal aantal items in de tabel
|
|
117
|
+
* @param searchTerm de zoekterm
|
|
118
118
|
*/
|
|
119
|
-
searchInfoMessage?: (
|
|
119
|
+
searchInfoMessage?: (filteredCount: number, totalCount: number, searchTerm: string) => string;
|
|
120
120
|
/**
|
|
121
121
|
* callback voor geselecteerde rij
|
|
122
122
|
* @param item het item (als object van type `T`)
|
|
@@ -153,7 +153,7 @@ type DataTableProps<T extends unknown = unknown> = {
|
|
|
153
153
|
/** Vul lege rijen op tot het aantal rijen per pagina op de laatste pagina (default = false). Alleen als er paginatie is */
|
|
154
154
|
fillEmptyRows?: boolean;
|
|
155
155
|
/** Expose helper-functies naar de parent om op elk moment de huidige sorted-data volgorde te lezen. */
|
|
156
|
-
apiRef?: React.
|
|
156
|
+
apiRef?: React.RefObject<DataTableApi<T> | null>;
|
|
157
157
|
};
|
|
158
158
|
/**
|
|
159
159
|
* Maak een tabel voor grote hoeveelheden data. De tabel is doorzoekbaar en heeft paginatie. Dat is allemaal uit te zetten.
|
|
@@ -205,7 +205,7 @@ type DataTableProps<T extends unknown = unknown> = {
|
|
|
205
205
|
* @param searchPlaceholder placeholder voor zoek-input (default = 'Zoek ...')
|
|
206
206
|
* @returns
|
|
207
207
|
*/
|
|
208
|
-
declare function DataTable<T extends unknown = unknown>({ data, columns: cols, defaultSortColNum, compact, noStripes, narrow, bordered, hoverable, sticky, hideSearch, headerContent, footerContent, size, searchPlaceholder, rowIdentifier, rowClass, id: tableID, itemRef, paginationOptions: paginationOptionsProp, fillEmptyRows, apiRef, onSearch, onRowSelected, onRowRightClick, renderWhenNoData, searchInfoMessage, onSortColumnChanged, }: DataTableProps<T>): React.JSX.Element;
|
|
208
|
+
declare function DataTable<T extends unknown = unknown>({ data, columns: cols, defaultSortColNum, compact, noStripes, narrow, bordered, hoverable, sticky, hideSearch, headerContent, footerContent, size, searchPlaceholder, rowIdentifier, rowClass, id: tableID, itemRef, paginationOptions: paginationOptionsProp, fillEmptyRows, apiRef, onSearch, onRowSelected, onRowRightClick, renderWhenNoData, searchInfoMessage: searchInfoMsgFn, onSortColumnChanged, }: DataTableProps<T>): React.JSX.Element;
|
|
209
209
|
declare namespace DataTable {
|
|
210
210
|
var Dropdown: {
|
|
211
211
|
({ onHover, id, children: childrenProp, trigger: triggerProp, disabled, alignment, dropUp, startOpen, className: classNameProp, keepOpenAfterClick, }: import("./DataTableDropdown").DataTableDropdownProps): React.JSX.Element;
|
|
@@ -27,7 +27,7 @@ type CheckBoxInputProps = StrictOmit<InputPropsType<string>, 'value' | 'onValueC
|
|
|
27
27
|
* const [x, setX] = React.useState(false);
|
|
28
28
|
* <CheckBox name="test" label="test" value={x} onValueChanged={setX} direction='v'/>
|
|
29
29
|
*/
|
|
30
|
-
declare function CheckBox({ id, label, name, size: sizeProp, direction: directionProp, required, showRequiredOnLabel, value, labelHidden, helpTag, infoData, onValueChanged, onBlur, onFocus, ...props }: CheckBoxInputProps): React.JSX.Element;
|
|
30
|
+
declare function CheckBox({ id, label, name, size: sizeProp, direction: directionProp, required, showRequiredOnLabel, value, labelHidden, helpTag, infoData, className: cn, onValueChanged, onBlur, onFocus, ...props }: CheckBoxInputProps): React.JSX.Element;
|
|
31
31
|
/**
|
|
32
32
|
* Een checkbox input die nog helemaal zelf aan te passen is, dus zonder container eromheen. Om een checkbox in met wat meer styling te gebruiken, gebruik dan de `CheckBox` component.
|
|
33
33
|
* Dat is een wrapper om deze component heen. De properties `type`, `step`, `min`, `max`, `icon`, `pattern`, `placeholder` en `direction` zijn niet van toepassing op deze component.
|
package/dist/forms/Input.d.ts
CHANGED
|
@@ -237,12 +237,13 @@ type InputContainerProps = {
|
|
|
237
237
|
size: SizeProp;
|
|
238
238
|
direction: DirectionProp;
|
|
239
239
|
controlClassName?: string;
|
|
240
|
+
outerClassName?: string;
|
|
240
241
|
infoData?: React.ReactNode | undefined;
|
|
241
242
|
setHovered?: (hovered: boolean) => void;
|
|
242
243
|
onMouseEnter?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
243
244
|
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
244
245
|
};
|
|
245
246
|
/** Een wrapper voor een input component, om te zorgen dat ze allemaal op dezelfde manier horizontaal of verticaal aligned worden. */
|
|
246
|
-
declare function InputContainer({ children, controlClassName, direction, showRequiredOnLabel, inputId, label, labelHidden, required, size, loading, infoData, setHovered, onMouseEnter, onMouseLeave, }: InputContainerProps): React.JSX.Element;
|
|
247
|
+
declare function InputContainer({ children, controlClassName, outerClassName, direction, showRequiredOnLabel, inputId, label, labelHidden, required, size, loading, infoData, setHovered, onMouseEnter, onMouseLeave, }: InputContainerProps): React.JSX.Element;
|
|
247
248
|
export { BaseInput, Input, InputContainer, FOCUS_HELP_TIMEOUT_IN_MS };
|
|
248
249
|
export type { InputPropsType, InputStylingPropsType, InputValueType };
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { InputValueType, InputStylingPropsType, InputErrorProps, InputPropsType } from '../Input';
|
|
4
4
|
type RBValueType = InputValueType | {};
|
|
5
5
|
type RadioGroupProps<T extends RBValueType = string> = StrictOmit<InputStylingPropsType, 'icon'> & {
|
|
6
|
+
className?: string;
|
|
6
7
|
/** id voor de container van de radio-items */ id?: string;
|
|
7
8
|
/** label bij de radio-group. Als geen label, dan wordt de `name`-property gebruikt */ label?: string;
|
|
8
9
|
/** name-property voor de input. Deze hoort bij **alle** radio-buttons in de groep */ name: string;
|
|
@@ -86,7 +87,7 @@ declare function RB<T extends RBValueType = string>({ helpTag, disabled, keyboar
|
|
|
86
87
|
* ..<RB value="Z">set to Z</RB>
|
|
87
88
|
* </RadioGroup>
|
|
88
89
|
*/
|
|
89
|
-
declare function RadioGroup<T extends RBValueType = string>({ children: childrenProp, id: _id, label, disabled, labelHidden, name, value, required, showRequiredOnLabel, size: sizeProp, direction: directionProp, itemsDirection: itemsDirectionProp, alignment: alignmentProp, errorMessage, infoMessage, infoData, helpTag, color, onValueChanged, onBlur, onChange, onFocus, onKeyDown, onKeyUp, }: RadioGroupProps<T>): React.JSX.Element;
|
|
90
|
+
declare function RadioGroup<T extends RBValueType = string>({ children: childrenProp, id: _id, label, disabled, labelHidden, name, value, required, showRequiredOnLabel, size: sizeProp, direction: directionProp, itemsDirection: itemsDirectionProp, alignment: alignmentProp, errorMessage, infoMessage, infoData, helpTag, color, className: cn, onValueChanged, onBlur, onChange, onFocus, onKeyDown, onKeyUp, }: RadioGroupProps<T>): React.JSX.Element;
|
|
90
91
|
declare namespace RadioGroup {
|
|
91
92
|
var Item: typeof SpecialRadioItem;
|
|
92
93
|
}
|
|
@@ -114,7 +114,7 @@ type SelectInputProps<T extends number | string | string[]> = StrictOmit<InputPr
|
|
|
114
114
|
* ..</Select.OptGroup>
|
|
115
115
|
* </Select>
|
|
116
116
|
*/
|
|
117
|
-
declare function Select<T extends number | string | string[] = string>({ value, id, name, label, grouped, required, showRequiredOnLabel, errorMessage, infoMessage, multiple, alignment: alignmentProp, size: sizeProp, direction: directionProp, options, children: nodes, helpTag, disabled, keyboardType, title, spellCheck, loading, autoComplete, autofocus, form, inputRef: ref, labelHidden, icon, infoData, useCssArrow, color, onBlur, onFocus, onChange, onKeyDown, onKeyUp, onValueChanged, }: SelectInputProps<T>): React.JSX.Element;
|
|
117
|
+
declare function Select<T extends number | string | string[] = string>({ value, id, name, label, grouped, required, showRequiredOnLabel, errorMessage, infoMessage, multiple, alignment: alignmentProp, className: cn, size: sizeProp, direction: directionProp, options, children: nodes, helpTag, disabled, keyboardType, title, spellCheck, loading, autoComplete, autofocus, form, inputRef: ref, labelHidden, icon, infoData, useCssArrow, color, onBlur, onFocus, onChange, onKeyDown, onKeyUp, onValueChanged, }: SelectInputProps<T>): React.JSX.Element;
|
|
118
118
|
declare namespace Select {
|
|
119
119
|
var Option: ({ value, disabled, id, children }: {
|
|
120
120
|
id?: string;
|