loon-bulma-react 2026.0.39 → 2026.0.41
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/components/DragDrop/DragDropList.d.ts +6 -4
- package/dist/forms/Select/Select.d.ts +1 -1
- package/dist/hooks/useClipboard.d.ts +3 -3
- package/dist/index.js +1257 -1249
- package/dist/internal_functions/createIconsInternal.d.ts +2 -1
- package/dist/lib/classes/Console.d.ts +29 -0
- package/dist/lib/classes/FetchWrapper.d.ts +124 -0
- package/dist/lib/components/AspectRatio/AspectRatio.d.ts +28 -0
- package/dist/lib/components/Block/Block.d.ts +9 -0
- package/dist/lib/components/Box/BorderBox.d.ts +29 -0
- package/dist/lib/components/Box/Box.d.ts +20 -0
- package/dist/lib/components/Button/Button.d.ts +87 -0
- package/dist/lib/components/ButtonGroup/ButtonGroup.d.ts +26 -0
- package/dist/lib/components/Calendar/CalendarItems/CalendarColoredItem.d.ts +18 -0
- package/dist/lib/components/Calendar/CalendarItems/CalendarItem.d.ts +18 -0
- package/dist/lib/components/Calendar/DayContainer.d.ts +25 -0
- package/dist/lib/components/Calendar/EventDescriptions.d.ts +33 -0
- package/dist/lib/components/Calendar/Fourweeks/FourweeksView.d.ts +23 -0
- package/dist/lib/components/Calendar/Mini/MiniView.d.ts +24 -0
- package/dist/lib/components/Calendar/Month/MonthView.d.ts +23 -0
- package/dist/lib/components/Calendar/Planning/PlanningView.d.ts +41 -0
- package/dist/lib/components/Calendar/Props.d.ts +58 -0
- package/dist/lib/components/Calendar/Week/AlldayContainer.d.ts +19 -0
- package/dist/lib/components/Calendar/Week/HourRow.d.ts +30 -0
- package/dist/lib/components/Calendar/Week/WeekView.d.ts +24 -0
- package/dist/lib/components/Calendar/calendar.functions.d.ts +10 -0
- package/dist/lib/components/Calendar/index.d.ts +15 -0
- package/dist/lib/components/CodeBlock/CodeBlock.d.ts +49 -0
- package/dist/lib/components/Columns/Column.d.ts +207 -0
- package/dist/lib/components/Columns/Columns.d.ts +35 -0
- package/dist/lib/components/Container/Container.d.ts +45 -0
- package/dist/lib/components/Content/Content.d.ts +22 -0
- package/dist/lib/components/DataTable/DataTable.d.ts +227 -0
- package/dist/lib/components/DataTable/DataTableDropdown.d.ts +39 -0
- package/dist/lib/components/Divider/Divider.d.ts +23 -0
- package/dist/lib/components/DragDrop/DragDropList.d.ts +97 -0
- package/dist/lib/components/Dropdown/Dropdown.d.ts +42 -0
- package/dist/lib/components/Footer/Footer.d.ts +22 -0
- package/dist/lib/components/Help/Help.d.ts +19 -0
- package/dist/lib/components/Hero/Hero.d.ts +104 -0
- package/dist/lib/components/Icon/Icon.d.ts +84 -0
- package/dist/lib/components/Image/Image.d.ts +28 -0
- package/dist/lib/components/Indicator/Indicator.d.ts +25 -0
- package/dist/lib/components/Kbd/Kbd.d.ts +30 -0
- package/dist/lib/components/Label/Label.d.ts +11 -0
- package/dist/lib/components/Link/Link.d.ts +44 -0
- package/dist/lib/components/Menu/Menu.d.ts +64 -0
- package/dist/lib/components/Message/Message.d.ts +49 -0
- package/dist/lib/components/Modal/Modal.d.ts +89 -0
- package/dist/lib/components/Notification/Notification.d.ts +38 -0
- package/dist/lib/components/Pagination/Pagination.d.ts +58 -0
- package/dist/lib/components/Panel/Panel.d.ts +99 -0
- package/dist/lib/components/ProgressBar/ProgressBar.d.ts +28 -0
- package/dist/lib/components/QuickView/QuickView.d.ts +61 -0
- package/dist/lib/components/ScrollArea/ScrollArea.d.ts +76 -0
- package/dist/lib/components/Section/Section.d.ts +21 -0
- package/dist/lib/components/SimpleTable/SimpleTable.d.ts +130 -0
- package/dist/lib/components/Steps/Steps.d.ts +61 -0
- package/dist/lib/components/TabBar/TabBar.d.ts +47 -0
- package/dist/lib/components/Tag/Tag.d.ts +54 -0
- package/dist/lib/components/TimeLine/TimeLine.d.ts +62 -0
- package/dist/lib/components/Titles/Titles.d.ts +71 -0
- package/dist/lib/components/ToggleBar/ToggleBar.d.ts +80 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +50 -0
- package/dist/lib/components/TreeView/TreeView.d.ts +185 -0
- package/dist/lib/contexts/ActionSheet/ActionSheetContextProvider.d.ts +76 -0
- package/dist/lib/contexts/AppProvider/AppProviders.d.ts +17 -0
- package/dist/lib/contexts/ColorSchemeProvider/ColorSchemeProvider.d.ts +15 -0
- package/dist/lib/contexts/Confirm/ConfirmContextProvider.d.ts +60 -0
- package/dist/lib/contexts/DefaultsProvider/DefaultsProvider.d.ts +100 -0
- package/dist/lib/contexts/DialogsProvider/DialogsProvider.d.ts +4 -0
- package/dist/lib/contexts/KeysProvider/KeysProvider.d.ts +52 -0
- package/dist/lib/contexts/ModalProvider/ModalProvider.d.ts +11 -0
- package/dist/lib/contexts/ModeProvider/ModeProvider.d.ts +16 -0
- package/dist/lib/contexts/Notifier/Notifier.d.ts +81 -0
- package/dist/lib/contexts/Prompt/PromptContextProvider.d.ts +71 -0
- package/dist/lib/forms/Checkbox/Checkbox.d.ts +48 -0
- package/dist/lib/forms/ComboBox/ComboBox.d.ts +44 -0
- package/dist/lib/forms/ComboBox/MultiComboBox.d.ts +44 -0
- package/dist/lib/forms/ComboBox/useComboBoxScroll.d.ts +4 -0
- package/dist/lib/forms/Currency/CurrencyInput.d.ts +50 -0
- package/dist/lib/forms/Datetimes/DateInput.d.ts +37 -0
- package/dist/lib/forms/Datetimes/DateTimeInput.d.ts +44 -0
- package/dist/lib/forms/Datetimes/TimeInput.d.ts +42 -0
- package/dist/lib/forms/File/FileInput.d.ts +71 -0
- package/dist/lib/forms/Input.d.ts +248 -0
- package/dist/lib/forms/MaskedInput/IBANInput.d.ts +95 -0
- package/dist/lib/forms/MaskedInput/MaskedInput.d.ts +46 -0
- package/dist/lib/forms/Numeric/NumberInput.d.ts +16 -0
- package/dist/lib/forms/Numeric/RangeInput.d.ts +21 -0
- package/dist/lib/forms/Others/ColorInput.d.ts +56 -0
- package/dist/lib/forms/Others/HiddenInput.d.ts +29 -0
- package/dist/lib/forms/Others/TelephoneInput.d.ts +14 -0
- package/dist/lib/forms/Others/URLInput.d.ts +14 -0
- package/dist/lib/forms/Periodes/MonthInput.d.ts +43 -0
- package/dist/lib/forms/Periodes/WeekInput.d.ts +43 -0
- package/dist/lib/forms/Radio/Radio.d.ts +97 -0
- package/dist/lib/forms/Select/Select.d.ts +136 -0
- package/dist/lib/forms/TagsInput/TagsInput.d.ts +44 -0
- package/dist/lib/forms/Text/EmailInput.d.ts +14 -0
- package/dist/lib/forms/Text/FormattedInput.d.ts +54 -0
- package/dist/lib/forms/Text/PasswordInput.d.ts +19 -0
- package/dist/lib/forms/Text/TextArea.d.ts +31 -0
- package/dist/lib/forms/Text/TextEditor.d.ts +36 -0
- package/dist/lib/forms/Text/TextInput.d.ts +30 -0
- package/dist/lib/hooks/useCaretPosition.d.ts +8 -0
- package/dist/lib/hooks/useClickOutside.d.ts +15 -0
- package/dist/lib/hooks/useClipboard.d.ts +21 -0
- package/dist/lib/hooks/useContextMenu.d.ts +29 -0
- package/dist/lib/hooks/useCookieState.d.ts +37 -0
- package/dist/lib/hooks/useDebounced.hooks.d.ts +85 -0
- package/dist/lib/hooks/useFetchApi.d.ts +65 -0
- package/dist/lib/hooks/useHotkeys.d.ts +96 -0
- package/dist/lib/hooks/useIndexedDb.d.ts +90 -0
- package/dist/lib/hooks/useLocalStoredState.d.ts +36 -0
- package/dist/lib/hooks/useMediaQuery.d.ts +154 -0
- package/dist/lib/hooks/usePagination.d.ts +25 -0
- package/dist/lib/hooks/usePropState.d.ts +16 -0
- package/dist/lib/hooks/useScrollIntoView.d.ts +59 -0
- package/dist/lib/hooks/useSessionStoredState.d.ts +38 -0
- package/dist/lib/hooks/useThrottle.hooks.d.ts +99 -0
- package/dist/lib/hooks/useToggle.d.ts +16 -0
- package/dist/lib/hooks/useUncontrolled.d.ts +44 -0
- package/dist/lib/hooks/useValidatedState.d.ts +21 -0
- package/dist/lib/index.d.ts +174 -0
- package/dist/lib/internal_functions/createIconsInternal.d.ts +36 -0
- package/dist/lib/internal_functions/getAlignmentClass.d.ts +16 -0
- package/dist/lib/internal_functions/getColorClass.d.ts +23 -0
- package/dist/lib/internal_functions/getPositionClass.d.ts +2 -0
- package/dist/lib/internal_functions/getSizeClass.d.ts +23 -0
- package/dist/lib/internal_functions/index.d.ts +8 -0
- package/dist/lib/shims/useSyncExternalStoreShim.d.ts +1 -0
- package/dist/lib/shims/useSyncExternalStoreWithSelector.d.ts +5 -0
- package/dist/lib/test-data.d.ts +9 -0
- package/dist/lib/types/index.d.ts +104 -0
- package/dist/lib/utils/BSN.functions.d.ts +57 -0
- package/dist/lib/utils/IBAN.functions.d.ts +138 -0
- package/dist/lib/utils/JSDateTime.class.d.ts +512 -0
- package/dist/lib/utils/JSDuration.class.d.ts +184 -0
- package/dist/lib/utils/colors.d.ts +54 -0
- package/dist/lib/utils/compare.d.ts +7 -0
- package/dist/lib/utils/deserialize.function.d.ts +2 -0
- package/dist/lib/utils/flattenChildren.function.d.ts +49 -0
- package/dist/lib/utils/math.d.ts +22 -0
- package/dist/lib/utils/object.functions.d.ts +37 -0
- package/dist/lib/utils/operators.d.ts +195 -0
- package/dist/lib/utils/serialize.function.d.ts +2 -0
- package/dist/lib/utils/sorting.d.ts +34 -0
- package/dist/lib/utils/string.utils.d.ts +125 -0
- package/package.json +51 -51
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Controleer of een string een BSN bevat. Om dat te doen worden alle karakters, behalve letters en getallen gewist.
|
|
3
|
+
* Als er een of meer BSNs aangetroffen worden, worden ze allemaal teruggeven in een array.
|
|
4
|
+
* @param txt a string which could contain a BSN
|
|
5
|
+
* @returns false when there is no BSN or a tuple [true, Array<string>] where the string-array contains all found BSNs
|
|
6
|
+
* @example
|
|
7
|
+
* hasBSN('123456789') // [false, []]
|
|
8
|
+
* hasBSN('123456782') // [true, ['123456782']]
|
|
9
|
+
* hasBSN('xxx123456782xxx') // [true, ['123456782']]
|
|
10
|
+
* hasBSN('xxx123456789xxx') // [false, []]
|
|
11
|
+
* hasBSN('123x456x782') // [false, []]
|
|
12
|
+
* hasBSN('123.456.782') // [true, ['123456782']]
|
|
13
|
+
* hasBSN('123456782, 123456782, 123456782') // [true, ['123456782','123456782','123456782']]
|
|
14
|
+
*/
|
|
15
|
+
export declare function hasBSN(txt: string): readonly [boolean, Array<string>];
|
|
16
|
+
/**
|
|
17
|
+
* Controleer of een string een BSN bevat.
|
|
18
|
+
* @param txt een string die een bsn zou kunnen zijn
|
|
19
|
+
* @returns true als de string een BSN is
|
|
20
|
+
* @example
|
|
21
|
+
* isBSN('12345') // false
|
|
22
|
+
* isBSN('123456789') // false
|
|
23
|
+
* isBSN('123456782') // true
|
|
24
|
+
* isBSN('123456782000000') // false
|
|
25
|
+
*/
|
|
26
|
+
export declare function isBSN(txt: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Genereer een willekeurig geldig BSN (Burgerservicenummer)
|
|
29
|
+
* @returns Een geldig 9-cijferig BSN als string
|
|
30
|
+
* @example
|
|
31
|
+
* generateBSN(); // '200644440'
|
|
32
|
+
* generateBSN(); // '218111058'
|
|
33
|
+
*/
|
|
34
|
+
export declare function generateBSN(): string;
|
|
35
|
+
type MaskBSNOptions = {
|
|
36
|
+
/** Karakter gebruikt voor maskering (standaard: '*') */
|
|
37
|
+
maskChar?: string;
|
|
38
|
+
/** Aantal zichtbare cijfers aan het einde (standaard: 3) */
|
|
39
|
+
visibleDigits?: number;
|
|
40
|
+
/** Waar te maskeren: 'begin' = toon laatste chars, 'end' = toon eerste chars (standaard: 'end') */
|
|
41
|
+
maskFrom?: 'begin' | 'b' | 'end' | 'e';
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Maskeer een BSN voor privacy doeleinden
|
|
45
|
+
* Toont alleen de eerste of laatste N cijfers, de rest wordt gemaskeerd
|
|
46
|
+
* @param bsn BSN nummer als string (mag voorloopnullen, spaties of separators bevatten)
|
|
47
|
+
* @param options Maskeer opties
|
|
48
|
+
* @returns Gemaskeerd BSN, of lege string als BSN ongeldig is
|
|
49
|
+
* @example
|
|
50
|
+
* maskBSN('123456782'); // '******782'
|
|
51
|
+
* maskBSN('123456782', { maskChar: 'X' }); // 'XXXXXX782'
|
|
52
|
+
* maskBSN('123456782', { visibleDigits: 4 }); // '*****6782'
|
|
53
|
+
* maskBSN('123456782', { maskFrom: 'begin' }); // '123******'
|
|
54
|
+
* maskBSN('123456782', { visibleDigits: 4, maskFrom: 'begin' }); // '1234*****'
|
|
55
|
+
*/
|
|
56
|
+
export declare function maskBSN(bsn: string, options?: MaskBSNOptions): string;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/** Iban gegevens per Land */
|
|
2
|
+
export type IbanGegevens = {
|
|
3
|
+
/** landnaam waar deze settings van toepassing zijn */
|
|
4
|
+
land: string;
|
|
5
|
+
/** code voor het land zoals dat in een IBAN voorkomt */
|
|
6
|
+
code: string;
|
|
7
|
+
/** Kunnen we SEPA's gebruiken? */
|
|
8
|
+
sepa: boolean;
|
|
9
|
+
/** een voorbeeld-IBAN-nummer (lege string betekent niet ondersteund) */
|
|
10
|
+
IBAN: string;
|
|
11
|
+
/** wordt dit land ondersteund? (afgeleid van of er een IBAN voorbeeld is) */
|
|
12
|
+
supported: boolean;
|
|
13
|
+
/** regex patroon voor BBAN validatie (optioneel) */
|
|
14
|
+
bbanRgx?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
type IBANFormatOptions = {
|
|
17
|
+
/** Separator tussen groepen karakters (standaard: spatie) */
|
|
18
|
+
separator?: string;
|
|
19
|
+
/** Aantal karakters per groep (standaard: 4) */
|
|
20
|
+
groupSize?: number;
|
|
21
|
+
/** Converteer naar lowercase in plaats van uppercase (standaard: false) */
|
|
22
|
+
lowercase?: boolean;
|
|
23
|
+
/** Extra separator na landcode (standaard: false) */
|
|
24
|
+
countryCodeSeparate?: boolean;
|
|
25
|
+
/** Toon alleen BBAN zonder landcode en check digits (standaard: false) */
|
|
26
|
+
stripCountryCode?: boolean;
|
|
27
|
+
};
|
|
28
|
+
type MaskIBANOptions = {
|
|
29
|
+
/** Karakter gebruikt voor maskering (standaard: '*') */
|
|
30
|
+
maskChar?: string;
|
|
31
|
+
/** Aantal zichtbare karakters (standaard: 4, minimum: 4 wanneer keepCountryCode true) */
|
|
32
|
+
visibleChars?: number;
|
|
33
|
+
/** Waar te maskeren: 'begin' = toon laatste chars, 'end' = toon eerste chars (standaard: 'end') */
|
|
34
|
+
maskFrom?: 'begin' | 'b' | 'end' | 'e';
|
|
35
|
+
/** Behoud landcode zichtbaar (standaard: true) */
|
|
36
|
+
keepCountryCode?: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Type voor Nederlandse bank codes (BIC codes zonder SWIFT suffix)
|
|
40
|
+
* Uitgebreide lijst van alle bekende Nederlandse banken en financiële instellingen
|
|
41
|
+
*/
|
|
42
|
+
export type DutchBankCode = {
|
|
43
|
+
bic: string;
|
|
44
|
+
code: string;
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Verwijder spaties, streepjes en andere niet-alfanumerieke karakters uit een IBAN en zet deze om naar hoofdletters
|
|
49
|
+
* @param iban IBAN nummer met of zonder spaties/streepjes
|
|
50
|
+
* @returns Schone IBAN in elektronisch formaat (alleen hoofdletters en cijfers), of lege string als de input geen string is
|
|
51
|
+
* @example
|
|
52
|
+
* cleanIBAN('NL91 ABNA 0417 1643 00'); // 'NL91ABNA0417164300'
|
|
53
|
+
* cleanIBAN('NL91-ABNA-0417-1643-00'); // 'NL91ABNA0417164300'
|
|
54
|
+
* cleanIBAN('nl91abna0417164300'); // 'NL91ABNA0417164300'
|
|
55
|
+
*/
|
|
56
|
+
export declare function cleanIBAN(iban: string | null | undefined): string;
|
|
57
|
+
/**
|
|
58
|
+
* Formatteer een IBAN met spaties (of eigen separator) na elke N karakters voor weergave
|
|
59
|
+
* @param iban IBAN nummer (met of zonder spaties)
|
|
60
|
+
* @param options Formatting opties
|
|
61
|
+
* @returns Geformatteerde IBAN (lege string als input geen string is)
|
|
62
|
+
* @example
|
|
63
|
+
* formattedIBAN('NL91ABNA0417164300'); // 'NL91 ABNA 0417 1643 00'
|
|
64
|
+
* formattedIBAN('NL91ABNA0417164300', { separator: '-' }); // 'NL91-ABNA-0417-1643-00'
|
|
65
|
+
* formattedIBAN('NL91ABNA0417164300', { lowercase: true }); // 'nl91 abna 0417 1643 00'
|
|
66
|
+
* formattedIBAN('NL91ABNA0417164300', { groupSize: 3 }); // 'NL9 1AB NA0 417 164 300'
|
|
67
|
+
* formattedIBAN('NL91ABNA0417164300', { countryCodeSeparate: true }); // 'NL91 ABNA 0417 1643 00'
|
|
68
|
+
* formattedIBAN('NL91ABNA0417164300', { stripCountryCode: true }); // 'ABNA 0417 1643 00'
|
|
69
|
+
*/
|
|
70
|
+
export declare function formattedIBAN(iban: string | null | undefined, options?: IBANFormatOptions): string;
|
|
71
|
+
/**
|
|
72
|
+
* Maskeer een IBAN voor privacy doeleinden
|
|
73
|
+
* Toont alleen een deel van het IBAN, de rest wordt gemaskeerd
|
|
74
|
+
* @param iban IBAN nummer (met of zonder spaties)
|
|
75
|
+
* @param options Maskeer opties
|
|
76
|
+
* @param options.maskChar Karakter gebruikt voor maskering (standaard: '*')
|
|
77
|
+
* @param options.visibleChars Aantal zichtbare karakters (standaard: 4). Wanneer keepCountryCode true is, wordt dit automatisch minimaal 4 (voor de landcode)
|
|
78
|
+
* @param options.maskFrom Waar te maskeren: 'begin' = toon laatste chars, 'end' = toon eerste chars (standaard: 'end')
|
|
79
|
+
* @param options.keepCountryCode Houd de landcode altijd zichtbaar (standaard: true). Wanneer true, is visibleChars minimaal 4
|
|
80
|
+
* @returns Gemaskeerd IBAN, of lege string als IBAN ongeldig is
|
|
81
|
+
* @example
|
|
82
|
+
* maskIBAN('NL91ABNA0417164300'); // 'NL91**************' (visibleChars: 4 = only country)
|
|
83
|
+
* maskIBAN('NL91ABNA0417164300', { maskChar: 'X' }); // 'NL91XXXXXXXXXXXXXX'
|
|
84
|
+
* maskIBAN('NL91ABNA0417164300', { visibleChars: 8 }); // 'NL91ABNA**********' (country + 4 from BBAN)
|
|
85
|
+
* maskIBAN('NL91ABNA0417164300', { visibleChars: 8, maskFrom: 'begin' }); // 'NL91**********4300' (country + last 4 from BBAN)
|
|
86
|
+
* maskIBAN('NL91ABNA0417164300', { keepCountryCode: false }); // 'NL91**************'
|
|
87
|
+
* maskIBAN('NL91ABNA0417164300', { keepCountryCode: false, visibleChars: 6 }); // 'NL91AB************'
|
|
88
|
+
*/
|
|
89
|
+
export declare function maskIBAN(iban: string | null | undefined, options?: MaskIBANOptions): string;
|
|
90
|
+
/**
|
|
91
|
+
* Controleer of een opgegeven rekeningnummer wel een IBAN nummer is.
|
|
92
|
+
* @param rekNr het rekeningsnummer dat gecontroleerd moet worden
|
|
93
|
+
* @param opts extra opties
|
|
94
|
+
* @param opts.allowed lijst van toegestane landcodes (optioneel)
|
|
95
|
+
* @param opts.disallowed lijst van verboden landcodes (optioneel)
|
|
96
|
+
* @returns een tuple met een boolean en een string
|
|
97
|
+
* - `[true, 'LAND']` als het een geldige IBAN is
|
|
98
|
+
* - `[false, 'invalid format']` als het niet voldoet aan het IBAN-formaat
|
|
99
|
+
* - `[false, 'invalid landcode']` als de landcode niet bestaat (in onze gegevens)
|
|
100
|
+
* - `[false, 'invalid length']` als het niet voldoet aan de lengte-eis die hoort bij de landcode
|
|
101
|
+
* - `[false, 'invalid bban structure']` als het BBAN-gedeelte niet voldoet aan het formaat van het land
|
|
102
|
+
* - `[false, 'invalid restgetal']` als het niet voldoet aan de mod-97 berekening voor IBAN
|
|
103
|
+
* @example
|
|
104
|
+
* const [bool, msg] = isIBAN('NL28 ASNB 0709 1665 92'); // [true, 'Nederland']
|
|
105
|
+
* const [bool, msg] = isIBAN('NL28 ASNB 0709 1665 922'); // [false, 'invalid length']
|
|
106
|
+
* const [bool, msg] = isIBAN('NL28 ASNB 0709 1665 93'); // [false, 'invalid restgetal']
|
|
107
|
+
* const [bool, msg] = isIBAN('NL28 1234 5678 9012 34'); // [false, 'invalid bban structure']
|
|
108
|
+
* const [bool, msg] = isIBAN('ABCDEFG'); // [false, 'invalid format']
|
|
109
|
+
* const [bool, msg] = isIBAN('QQ28 ASNB 0709 1665 93'); // [false, 'invalid landcode']
|
|
110
|
+
* const [bool, msg] = isIBAN('BE68 5390 0754 7034', { disallowed: ['BE', 'DE', 'FR'] }); // [false, 'disallowed landcode']
|
|
111
|
+
* const [bool, msg] = isIBAN('DE89 3704 0044 0532 0130 00', { allowed: ['DE', 'FR'] }); // [true, 'Duitsland']
|
|
112
|
+
* const [bool, msg] = isIBAN('FR14 2004 1010 0505 0001 3M02 606', { allowed: ['BE', 'FR'], disallowed: ['DE', 'FR'] }); // [false, `allowed & disallowed contain the same country 'FR'`]
|
|
113
|
+
*/
|
|
114
|
+
export declare function isIBAN(rekNr: string, opts?: {
|
|
115
|
+
allowed?: string[] | undefined;
|
|
116
|
+
disallowed?: string[] | undefined;
|
|
117
|
+
} | undefined): readonly [boolean, string];
|
|
118
|
+
/**
|
|
119
|
+
* Genereer een willekeurig geldig Nederlands IBAN nummer
|
|
120
|
+
* @param bankCode Optionele Nederlandse bankcode (4 letters, bijv. 'ASNB', 'TRIO'). Als niet opgegeven wordt een willekeurige bankcode gekozen uit veelgebruikte banken. Het accountnummer (10 cijfers) wordt altijd willekeurig gegenereerd.
|
|
121
|
+
* @returns Een geldig Nederlands IBAN nummer
|
|
122
|
+
* @example
|
|
123
|
+
* generateIban(); // Volledig willekeurig NL IBAN, bijv. "NL91ABNA0417164300"
|
|
124
|
+
* generateIban('INGB'); // NL IBAN met ING Bank, bijv. "NL13INGB0001234567"
|
|
125
|
+
* generateIban('TRIO'); // Ook met minder gebruikte banken zoals Triodos
|
|
126
|
+
*/
|
|
127
|
+
export declare function generateIban(bankCode?: string): string;
|
|
128
|
+
/** * Alleen de meest gebruikte Nederlandse banken voor random generatie .
|
|
129
|
+
* @see https://www.betaalvereniging.nl/betalingsverkeer/giraal-betalingsverkeer/bic-sepa-transacties/
|
|
130
|
+
*/
|
|
131
|
+
export declare const COMMON_DUTCH_BANKS: ReadonlyArray<DutchBankCode>;
|
|
132
|
+
/** Een array van landen met de landcode en de lengte van een IBAN. Ook een voorbeeld-IBAN.
|
|
133
|
+
* @link https://www.iban.com/structure
|
|
134
|
+
*/
|
|
135
|
+
export declare const IbanDetailsPerLand: Readonly<Array<IbanGegevens>>;
|
|
136
|
+
/** Type for all valid IBAN country codes */
|
|
137
|
+
export type IbanCountryCode = (typeof IbanDetailsPerLand)[number]['code'];
|
|
138
|
+
export {};
|