@npm-zenwork/tax-remittance-ui 0.12.1 → 0.12.2
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/payments/settlementDateRules.d.ts +7 -0
- package/dist/index.cjs +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8636 -8631
- package/dist/index.mjs.map +1 -1
- package/dist/lib/initials.d.ts +11 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,13 @@ export declare function getMinSettlementDate(reference?: Date): string;
|
|
|
7
7
|
export declare function getMaxSettlementDate(reference?: Date): string;
|
|
8
8
|
/** Latest selectable date of birth for a minimum age (inclusive). */
|
|
9
9
|
export declare function getMaxDateOfBirth(minimumAge?: number, reference?: Date): string;
|
|
10
|
+
/**
|
|
11
|
+
* Age eligibility compares the selected *month*, not the exact day - so every day
|
|
12
|
+
* in a birth month that reaches the minimum age this year counts as eligible, not
|
|
13
|
+
* just the days on/before the exact anniversary. Someone born anywhere in October
|
|
14
|
+
* 2008 is treated as 18 as soon as October 2026 starts, not only from the 13th
|
|
15
|
+
* (today's exact date) onward.
|
|
16
|
+
*/
|
|
10
17
|
export declare function isAtLeastAge(value: string, minimumAge: number, reference?: Date): boolean;
|
|
11
18
|
export declare function isWeekday(date: Date): boolean;
|
|
12
19
|
export declare function isSettlementDateSelectable(date: Date, reference?: Date): boolean;
|