@leapdevuk/component-toolbox 0.0.116 → 0.0.118
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 +13 -1
- 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 -2
- package/dist/index.cjs.js +31 -31
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +790 -787
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/CHANGELOG.md
CHANGED
|
@@ -44,4 +44,16 @@
|
|
|
44
44
|
|
|
45
45
|
### Features
|
|
46
46
|
|
|
47
|
-
- Added property on NumberDisplay '
|
|
47
|
+
- Added property on NumberDisplay 'noValueText' to work alongside 'hideNoValue' to display an alternative character on zero values
|
|
48
|
+
|
|
49
|
+
## 0.0.117 (2025-05-23)
|
|
50
|
+
|
|
51
|
+
### Added
|
|
52
|
+
|
|
53
|
+
- Added formatAsDBDate for use in apps (accepts Date, returns string formatted "yyyy-MM-dd")
|
|
54
|
+
|
|
55
|
+
## 0.0.118 (2025-05-23)
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
- Updated DatePicker to not show calendar icon when disabled
|
|
@@ -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,11 +4,11 @@ interface IProps {
|
|
|
4
4
|
color?: string;
|
|
5
5
|
displayAsQty?: boolean;
|
|
6
6
|
hideNoValue?: boolean;
|
|
7
|
-
|
|
7
|
+
noValueText?: string;
|
|
8
8
|
notCurrency?: boolean;
|
|
9
9
|
showNegative?: boolean;
|
|
10
10
|
prefix?: string;
|
|
11
11
|
value?: number;
|
|
12
12
|
}
|
|
13
|
-
declare const LCTNumberDisplay: ({ align, bold, color, displayAsQty, hideNoValue,
|
|
13
|
+
declare const LCTNumberDisplay: ({ align, bold, color, displayAsQty, hideNoValue, noValueText, notCurrency, showNegative, prefix, value, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default LCTNumberDisplay;
|