@leapdevuk/component-toolbox 0.0.115 → 0.0.117
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/CHANGELOG.md +47 -0
- package/dist/components/datepicker/index.d.ts +3 -0
- package/dist/components/datepicker/utils.d.ts +5 -0
- package/dist/components/numberdisplay/NumberDisplay.d.ts +2 -1
- package/dist/index.cjs.js +30 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +356 -344
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.0.112 (2025-04-15)
|
|
4
|
+
|
|
5
|
+
### Release
|
|
6
|
+
|
|
7
|
+
- Test verions release 0.0.111-test.5
|
|
8
|
+
|
|
9
|
+
## 0.0.111-test.5 (2025-04-15)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- Added support for change log.
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- DateRangePicker: Split update property to fromDate and toDate (was initially a combined function)
|
|
18
|
+
- DateRangePicker: Fixed dateTime when region is summer/winter time (checking against local dateTime)
|
|
19
|
+
- DatePicker: Fixed dateTime when region is summer/winter time (checking against local dateTime)
|
|
20
|
+
|
|
21
|
+
## 0.0.113 (2025-05-14)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- Added property on AccordionTable to support component props on grid (row: onMouseOver, onMouseLeave ect.)
|
|
26
|
+
|
|
27
|
+
## 0.0.114 (2025-05-21)
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
- Added parameter on getLocalDisplayFormattedDateTime to specify if time should be adjusted on local time zone
|
|
32
|
+
|
|
33
|
+
## 0.0.115 (2025-05-22)
|
|
34
|
+
|
|
35
|
+
### Removed
|
|
36
|
+
|
|
37
|
+
- getLocalDisplayFormattedDateTime
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- lctFormatDateTime supporting 24 hours, UTC & DateOnly
|
|
42
|
+
|
|
43
|
+
## 0.0.116 (2025-05-22)
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
- Added property on NumberDisplay 'noValueText' to work alongside 'hideNoValue' to display an alternative character on zero values
|
|
@@ -3,3 +3,6 @@ export { formatDate as lctFormatDate } from './utils';
|
|
|
3
3
|
export { lctFormatDateTime as lctFormatDateTime } from '../datepicker/utils';
|
|
4
4
|
export { getLocale as lctGetLocale } from './utils';
|
|
5
5
|
export { parseDate as lctParseDate } from './utils';
|
|
6
|
+
export { utcFormat as lctUTCFormat } from './utils';
|
|
7
|
+
export { dbDateOnlyFormat as lctDbDateOnlyFormat } from './utils';
|
|
8
|
+
export { formatAsDBDate as lctFormatAsDBDate } from './utils';
|
|
@@ -5,6 +5,7 @@ export declare const defaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
|
|
|
5
5
|
export declare const minDateAsObject: Date;
|
|
6
6
|
export declare const timezone: string;
|
|
7
7
|
export declare const utcFormat = "yyyy-MM-dd HH:mm:ss";
|
|
8
|
+
export declare const dbDateOnlyFormat = "yyyy-MM-dd";
|
|
8
9
|
export declare const minDate: string;
|
|
9
10
|
export declare const oneWeek: string;
|
|
10
11
|
export declare const today: string;
|
|
@@ -15,5 +16,9 @@ export declare const formatDate: (date?: Date | null, startOfDate?: boolean, end
|
|
|
15
16
|
export declare const parseDate: (date: any, formatString: string | undefined, localDateformat: string, parseKeyboardVal?: boolean) => string | null;
|
|
16
17
|
export declare const getLocale: (leapContext?: LeapContext) => Locale | undefined;
|
|
17
18
|
export declare const lctFormatDateTime: (value?: string | Date, locale?: Locale, isUtc?: boolean, dateOnly?: boolean, show24H?: boolean) => string;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated The method should not be used
|
|
21
|
+
*/
|
|
18
22
|
export declare const getDateTimeWithOffset: (date: string) => Date;
|
|
19
23
|
export declare const isStringNullOrUndefined: (value?: string | null) => boolean;
|
|
24
|
+
export declare const formatAsDBDate: (date: Date) => string;
|
|
@@ -4,10 +4,11 @@ interface IProps {
|
|
|
4
4
|
color?: string;
|
|
5
5
|
displayAsQty?: boolean;
|
|
6
6
|
hideNoValue?: boolean;
|
|
7
|
+
noValueText?: string;
|
|
7
8
|
notCurrency?: boolean;
|
|
8
9
|
showNegative?: boolean;
|
|
9
10
|
prefix?: string;
|
|
10
11
|
value?: number;
|
|
11
12
|
}
|
|
12
|
-
declare const LCTNumberDisplay: ({ align, bold, color, displayAsQty, hideNoValue, notCurrency, showNegative, prefix, value, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const LCTNumberDisplay: ({ align, bold, color, displayAsQty, hideNoValue, noValueText, notCurrency, showNegative, prefix, value, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default LCTNumberDisplay;
|