beesoft-components 0.2.18 → 0.2.21
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/build/index.cjs.js +92 -75
- package/build/index.js +93 -76
- package/build/index.min.js +6 -6
- package/build/index.min.js.gz +0 -0
- package/package.json +1 -1
- package/types/src/components/common-functions.d.ts +1 -0
- package/types/src/components/form/date-time/date-time-functions.d.ts +2 -0
- package/types/src/components/form/date-time/date-time.component.d.ts +4 -4
- package/types/src/components/overlay/overlay-panel/overlay-panel.component.d.ts +1 -2
package/build/index.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ export declare function getElementByClassNameRecursive(element: Element, classNa
|
|
|
2
2
|
export declare function getBrowserLanguage(): string;
|
|
3
3
|
export declare function padNumber(value: number, padCount: number, padCharacter: string): string;
|
|
4
4
|
export declare function generateNumberArray<T>(startingNumber: number, endingNumber: number, convertFunction?: (value: number) => T): T[];
|
|
5
|
+
export declare function isEventOutsideTarget(event: Event, target: HTMLElement): boolean;
|
|
5
6
|
export declare function isEventWithinTarget(event: Event, target: HTMLElement): boolean;
|
|
6
7
|
export declare function isElementWithinTarget(element: HTMLElement, target: HTMLElement): boolean;
|
|
7
8
|
export declare function elementHasAllStyles(element: HTMLElement, styles: Record<string, string | number>): boolean;
|
|
@@ -15,3 +15,5 @@ export declare function getDefaultTime(locale: Locale): string;
|
|
|
15
15
|
export declare function isDateBetween(checkDate: Date, startComparisonDate: Date, endComparisonDate: Date): boolean;
|
|
16
16
|
export declare function loadLocale(localeToLoad: string): Promise<Locale>;
|
|
17
17
|
export declare function createDefaultColors(): DateTimeColors;
|
|
18
|
+
export declare function parseDate(dateValue: string, locale?: Locale): Date | undefined;
|
|
19
|
+
export declare function parseDateRange(dateRangeValue: string, locale?: Locale): Date[] | undefined;
|
|
@@ -8,6 +8,7 @@ export interface DateTimeProps {
|
|
|
8
8
|
readOnly?: boolean;
|
|
9
9
|
label?: string;
|
|
10
10
|
useDefaultDateValue?: boolean;
|
|
11
|
+
allowClear?: boolean;
|
|
11
12
|
locale?: string;
|
|
12
13
|
className?: string;
|
|
13
14
|
dateSelection?: DateSelectionType;
|
|
@@ -19,7 +20,7 @@ export interface DateTimeProps {
|
|
|
19
20
|
colors?: DateTimeColors;
|
|
20
21
|
selectableDate?: (currentDate: Date) => boolean;
|
|
21
22
|
isValidDate?: (selectedDate: Date) => boolean;
|
|
22
|
-
onChange?: (value
|
|
23
|
+
onChange?: (value?: Date | Array<Date>) => void;
|
|
23
24
|
calendarTemplate?: DateTimeCalendarTemplate;
|
|
24
25
|
dateScrollerTemplate?: DateTimeScrollerTemplate;
|
|
25
26
|
inputTemplate?: DateTimeInputTemplate;
|
|
@@ -27,13 +28,12 @@ export interface DateTimeProps {
|
|
|
27
28
|
export interface DateTimeInputTemplateProps {
|
|
28
29
|
label?: string;
|
|
29
30
|
readOnly: boolean;
|
|
31
|
+
allowClear: boolean;
|
|
30
32
|
getValue: () => string;
|
|
31
33
|
onFocus: (event: React.FocusEvent) => void;
|
|
32
34
|
onInput: (event: React.FormEvent) => void;
|
|
33
35
|
iconPosition: CalendarIconPosition;
|
|
34
36
|
iconElement?: JSX.Element;
|
|
35
|
-
iconElementClassName?: string;
|
|
36
|
-
onElementClick?: (event: React.MouseEvent) => void;
|
|
37
37
|
}
|
|
38
38
|
export declare type DateTimeInputTemplate = TemplateFunction<DateTimeInputTemplateProps>;
|
|
39
|
-
export default function DateTime({ value, readOnly, label, useDefaultDateValue, locale, className, dateSelection, dateFormat, timeConstraints, icon, iconPosition, inputElement, colors, selectableDate, isValidDate, onChange, calendarTemplate, dateScrollerTemplate, inputTemplate, }: DateTimeProps): JSX.Element;
|
|
39
|
+
export default function DateTime({ value, readOnly, label, useDefaultDateValue, allowClear, locale, className, dateSelection, dateFormat, timeConstraints, icon, iconPosition, inputElement, colors, selectableDate, isValidDate, onChange, calendarTemplate, dateScrollerTemplate, inputTemplate, }: DateTimeProps): JSX.Element;
|
|
@@ -8,7 +8,6 @@ export interface OverlayPanelProps {
|
|
|
8
8
|
shouldScrollCloseOverlay?: boolean;
|
|
9
9
|
shouldCheckZIndex?: boolean;
|
|
10
10
|
unmountWhenHidden?: boolean;
|
|
11
|
-
appendTo?: HTMLElement;
|
|
12
11
|
transitionDuration?: number;
|
|
13
12
|
showTransitionOptions?: string;
|
|
14
13
|
hideTransitionOptions?: string;
|
|
@@ -16,4 +15,4 @@ export interface OverlayPanelProps {
|
|
|
16
15
|
hidden?: () => void;
|
|
17
16
|
children: React.ReactNode;
|
|
18
17
|
}
|
|
19
|
-
export default function OverlayPanel({ visible, target, shouldTargetCloseOverlay, shouldMatchTargetWidth, shouldScrollCloseOverlay, shouldCheckZIndex, unmountWhenHidden,
|
|
18
|
+
export default function OverlayPanel({ visible, target, shouldTargetCloseOverlay, shouldMatchTargetWidth, shouldScrollCloseOverlay, shouldCheckZIndex, unmountWhenHidden, transitionDuration, showTransitionOptions, hideTransitionOptions, shown, hidden, markupCreated, children, }: OverlayPanelProps & MarkupEvents): JSX.Element;
|