@hitachivantara/uikit-react-lab 3.39.2 → 3.39.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.39.6](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-lab@3.39.5...@hitachivantara/uikit-react-lab@3.39.6) (2022-02-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tablerenderers:** changing date value to be optional. ([aa109ad](https://github.com/lumada-design/hv-uikit-react/commit/aa109ad802304943c7d91583702bc1c236b6ff97))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.39.5](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-lab@3.39.4...@hitachivantara/uikit-react-lab@3.39.5) (2022-02-07)
18
+
19
+ **Note:** Version bump only for package @hitachivantara/uikit-react-lab
20
+
21
+
22
+
23
+
24
+
25
+ ## [3.39.4](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-lab@3.39.3...@hitachivantara/uikit-react-lab@3.39.4) (2022-02-06)
26
+
27
+ **Note:** Version bump only for package @hitachivantara/uikit-react-lab
28
+
29
+
30
+
31
+
32
+
33
+ ## [3.39.3](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-lab@3.39.2...@hitachivantara/uikit-react-lab@3.39.3) (2022-02-04)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * add dateFormat property to the hvDateColumn renderer ([ba70676](https://github.com/lumada-design/hv-uikit-react/commit/ba706766d6842949331ae8e55059e6f26292eb4f))
39
+
40
+
41
+
42
+
43
+
6
44
  ## [3.39.2](https://github.com/lumada-design/hv-uikit-react/compare/@hitachivantara/uikit-react-lab@3.39.1...@hitachivantara/uikit-react-lab@3.39.2) (2022-02-04)
7
45
 
8
46
  **Note:** Version bump only for package @hitachivantara/uikit-react-lab
@@ -1,12 +1,12 @@
1
1
  export interface HvDateColumnCellProp {
2
2
  /**
3
- * Date to render.
3
+ * The date's text representation format.
4
4
  */
5
5
  dateFormat?: string;
6
6
  /**
7
- * The timezone used to format the date.
7
+ * Date to render.
8
8
  */
9
- date: string;
9
+ date?: string;
10
10
  }
11
11
 
12
12
  export default function HvDateColumnCellProp(props: HvDateColumnCellProp): JSX.Element | null;
@@ -49,10 +49,10 @@ process.env.NODE_ENV !== "production" ? HvDateColumnCell.propTypes = {
49
49
  /**
50
50
  * Date to render.
51
51
  */
52
- date: _propTypes.default.string.isRequired,
52
+ date: _propTypes.default.string,
53
53
 
54
54
  /**
55
- * The timezone used to format the date.
55
+ * The date's text representation format.
56
56
  */
57
57
  dateFormat: _propTypes.default.string
58
58
  } : void 0;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","PropTypes","string","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB,OAA0B;AAAA,MAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACjD,MAAMC,aAAa,GAAG,oBAAQ,YAAM;AAClC,QAAIF,IAAJ,EAAU,OAAO,oBAAMA,IAAN,EAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAHqB,EAGnB,CAACJ,IAAD,EAAOC,UAAP,CAHmB,CAAtB;AAKA,sBAAO,6BAAC,iCAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEM,mBAAUC,MAAV,CAAiBC,UAJI;;AAK3B;AACF;AACA;AACEP,EAAAA,UAAU,EAAEK,mBAAUC;AARK,CAA7B;eAWeR,gB","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string.isRequired,\n /**\n * The timezone used to format the date.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
1
+ {"version":3,"sources":["../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","PropTypes","string"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB,OAA0B;AAAA,MAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACjD,MAAMC,aAAa,GAAG,oBAAQ,YAAM;AAClC,QAAIF,IAAJ,EAAU,OAAO,oBAAMA,IAAN,EAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAHqB,EAGnB,CAACJ,IAAD,EAAOC,UAAP,CAHmB,CAAtB;AAKA,sBAAO,6BAAC,iCAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEM,mBAAUC,MAJW;;AAK3B;AACF;AACA;AACEN,EAAAA,UAAU,EAAEK,mBAAUC;AARK,CAA7B;eAWeR,gB","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string,\n /**\n * The date's text representation format.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
@@ -10,7 +10,8 @@ export function hvNumberColumn<D extends Record<string, unknown>, C extends HvTa
10
10
  ): HvTableColumnConfig<D>;
11
11
 
12
12
  export function hvDateColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
13
- col: C
13
+ col: C,
14
+ dateFormat?: string
14
15
  ): HvTableColumnConfig<D>;
15
16
 
16
17
  export function hvExpandColumn<D extends Record<string, unknown>>(
@@ -26,7 +27,7 @@ export function hvTagColumn<D extends Record<string, unknown>, C extends HvTable
26
27
  colorDataKey: keyof D,
27
28
  textColorDataKey: keyof D,
28
29
  fromRowData: boolean,
29
- tagProps?: HvTagProps,
30
+ tagProps?: HvTagProps
30
31
  ): HvTableColumnConfig<D>;
31
32
 
32
33
  export function hvSwitchColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
@@ -37,7 +38,10 @@ export function hvSwitchColumn<D extends Record<string, unknown>, C extends HvTa
37
38
  switchProps?: HvBaseSwitchProps
38
39
  ): HvTableColumnConfig<D>;
39
40
 
40
- export function hvDropdownColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
41
+ export function hvDropdownColumn<
42
+ D extends Record<string, unknown>,
43
+ C extends HvTableColumnConfig<D>
44
+ >(
41
45
  col: C,
42
46
  id: string,
43
47
  placeholder: string,
@@ -45,7 +49,10 @@ export function hvDropdownColumn<D extends Record<string, unknown>, C extends Hv
45
49
  onChange?: (identifier: string, value: ListValueProp) => void
46
50
  ): HvTableColumnConfig<D>;
47
51
 
48
- export function hvProgressColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
52
+ export function hvProgressColumn<
53
+ D extends Record<string, unknown>,
54
+ C extends HvTableColumnConfig<D>
55
+ >(
49
56
  col: C,
50
57
  getPartial?: (row: HvRowInstance<D>) => number,
51
58
  getTotal?: (row: HvRowInstance<D>) => number,
@@ -1,12 +1,12 @@
1
1
  export interface HvDateColumnCellProp {
2
2
  /**
3
- * Date to render.
3
+ * The date's text representation format.
4
4
  */
5
5
  dateFormat?: string;
6
6
  /**
7
- * The timezone used to format the date.
7
+ * Date to render.
8
8
  */
9
- date: string;
9
+ date?: string;
10
10
  }
11
11
 
12
12
  export default function HvDateColumnCellProp(props: HvDateColumnCellProp): JSX.Element | null;
@@ -19,10 +19,10 @@ process.env.NODE_ENV !== "production" ? HvDateColumnCell.propTypes = {
19
19
  /**
20
20
  * Date to render.
21
21
  */
22
- date: PropTypes.string.isRequired,
22
+ date: PropTypes.string,
23
23
 
24
24
  /**
25
- * The timezone used to format the date.
25
+ * The date's text representation format.
26
26
  */
27
27
  dateFormat: PropTypes.string
28
28
  } : void 0;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["React","useMemo","PropTypes","dayjs","HvOverflowTooltip","HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","string","isRequired"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,iBAAT,QAAkC,kCAAlC;;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,OAA0B;AAAA,MAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACjD,MAAMC,aAAa,GAAGP,OAAO,CAAC,YAAM;AAClC,QAAIK,IAAJ,EAAU,OAAOH,KAAK,CAACG,IAAD,CAAL,CAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAH4B,EAG1B,CAACJ,IAAD,EAAOC,UAAP,CAH0B,CAA7B;AAKA,sBAAO,oBAAC,iBAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEJ,SAAS,CAACU,MAAV,CAAiBC,UAJI;;AAK3B;AACF;AACA;AACEN,EAAAA,UAAU,EAAEL,SAAS,CAACU;AARK,CAA7B;AAWA,eAAeP,gBAAf","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string.isRequired,\n /**\n * The timezone used to format the date.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
1
+ {"version":3,"sources":["../../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["React","useMemo","PropTypes","dayjs","HvOverflowTooltip","HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","string"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,iBAAT,QAAkC,kCAAlC;;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,OAA0B;AAAA,MAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACjD,MAAMC,aAAa,GAAGP,OAAO,CAAC,YAAM;AAClC,QAAIK,IAAJ,EAAU,OAAOH,KAAK,CAACG,IAAD,CAAL,CAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAH4B,EAG1B,CAACJ,IAAD,EAAOC,UAAP,CAH0B,CAA7B;AAKA,sBAAO,oBAAC,iBAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEJ,SAAS,CAACU,MAJW;;AAK3B;AACF;AACA;AACEL,EAAAA,UAAU,EAAEL,SAAS,CAACU;AARK,CAA7B;AAWA,eAAeP,gBAAf","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string,\n /**\n * The date's text representation format.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
@@ -10,7 +10,8 @@ export function hvNumberColumn<D extends Record<string, unknown>, C extends HvTa
10
10
  ): HvTableColumnConfig<D>;
11
11
 
12
12
  export function hvDateColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
13
- col: C
13
+ col: C,
14
+ dateFormat?: string
14
15
  ): HvTableColumnConfig<D>;
15
16
 
16
17
  export function hvExpandColumn<D extends Record<string, unknown>>(
@@ -26,7 +27,7 @@ export function hvTagColumn<D extends Record<string, unknown>, C extends HvTable
26
27
  colorDataKey: keyof D,
27
28
  textColorDataKey: keyof D,
28
29
  fromRowData: boolean,
29
- tagProps?: HvTagProps,
30
+ tagProps?: HvTagProps
30
31
  ): HvTableColumnConfig<D>;
31
32
 
32
33
  export function hvSwitchColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
@@ -37,7 +38,10 @@ export function hvSwitchColumn<D extends Record<string, unknown>, C extends HvTa
37
38
  switchProps?: HvBaseSwitchProps
38
39
  ): HvTableColumnConfig<D>;
39
40
 
40
- export function hvDropdownColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
41
+ export function hvDropdownColumn<
42
+ D extends Record<string, unknown>,
43
+ C extends HvTableColumnConfig<D>
44
+ >(
41
45
  col: C,
42
46
  id: string,
43
47
  placeholder: string,
@@ -45,7 +49,10 @@ export function hvDropdownColumn<D extends Record<string, unknown>, C extends Hv
45
49
  onChange?: (identifier: string, value: ListValueProp) => void
46
50
  ): HvTableColumnConfig<D>;
47
51
 
48
- export function hvProgressColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
52
+ export function hvProgressColumn<
53
+ D extends Record<string, unknown>,
54
+ C extends HvTableColumnConfig<D>
55
+ >(
49
56
  col: C,
50
57
  getPartial?: (row: HvRowInstance<D>) => number,
51
58
  getTotal?: (row: HvRowInstance<D>) => number,
@@ -1,12 +1,12 @@
1
1
  export interface HvDateColumnCellProp {
2
2
  /**
3
- * Date to render.
3
+ * The date's text representation format.
4
4
  */
5
5
  dateFormat?: string;
6
6
  /**
7
- * The timezone used to format the date.
7
+ * Date to render.
8
8
  */
9
- date: string;
9
+ date?: string;
10
10
  }
11
11
 
12
12
  export default function HvDateColumnCellProp(props: HvDateColumnCellProp): JSX.Element | null;
@@ -20,10 +20,10 @@ process.env.NODE_ENV !== "production" ? HvDateColumnCell.propTypes = {
20
20
  /**
21
21
  * Date to render.
22
22
  */
23
- date: PropTypes.string.isRequired,
23
+ date: PropTypes.string,
24
24
 
25
25
  /**
26
- * The timezone used to format the date.
26
+ * The date's text representation format.
27
27
  */
28
28
  dateFormat: PropTypes.string
29
29
  } : void 0;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["React","useMemo","PropTypes","dayjs","HvOverflowTooltip","HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","string","isRequired"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,iBAAT,QAAkC,kCAAlC;;AAEA,MAAMC,gBAAgB,GAAG,CAAC;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,CAAD,KAA0B;AACjD,QAAMC,aAAa,GAAGP,OAAO,CAAC,MAAM;AAClC,QAAIK,IAAJ,EAAU,OAAOH,KAAK,CAACG,IAAD,CAAL,CAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAH4B,EAG1B,CAACJ,IAAD,EAAOC,UAAP,CAH0B,CAA7B;AAKA,sBAAO,oBAAC,iBAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEJ,SAAS,CAACU,MAAV,CAAiBC,UAJI;;AAK3B;AACF;AACA;AACEN,EAAAA,UAAU,EAAEL,SAAS,CAACU;AARK,CAA7B;AAWA,eAAeP,gBAAf","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string.isRequired,\n /**\n * The timezone used to format the date.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
1
+ {"version":3,"sources":["../../../../../src/Table/renderers/DateColumnCell/DateColumnCell.js"],"names":["React","useMemo","PropTypes","dayjs","HvOverflowTooltip","HvDateColumnCell","date","dateFormat","formattedDate","format","undefined","propTypes","string"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,iBAAT,QAAkC,kCAAlC;;AAEA,MAAMC,gBAAgB,GAAG,CAAC;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,CAAD,KAA0B;AACjD,QAAMC,aAAa,GAAGP,OAAO,CAAC,MAAM;AAClC,QAAIK,IAAJ,EAAU,OAAOH,KAAK,CAACG,IAAD,CAAL,CAAYG,MAAZ,CAAmBF,UAAU,KAAK,SAAf,GAA2BA,UAA3B,GAAwCG,SAA3D,CAAP;AACV,WAAO,GAAP;AACD,GAH4B,EAG1B,CAACJ,IAAD,EAAOC,UAAP,CAH0B,CAA7B;AAKA,sBAAO,oBAAC,iBAAD;AAAmB,IAAA,IAAI,EAAEC;AAAzB,IAAP;AACD,CAPD;;AASA,wCAAAH,gBAAgB,CAACM,SAAjB,GAA6B;AAC3B;AACF;AACA;AACEL,EAAAA,IAAI,EAAEJ,SAAS,CAACU,MAJW;;AAK3B;AACF;AACA;AACEL,EAAAA,UAAU,EAAEL,SAAS,CAACU;AARK,CAA7B;AAWA,eAAeP,gBAAf","sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport dayjs from \"dayjs\";\nimport { HvOverflowTooltip } from \"@hitachivantara/uikit-react-core\";\n\nconst HvDateColumnCell = ({ date, dateFormat }) => {\n const formattedDate = useMemo(() => {\n if (date) return dayjs(date).format(dateFormat !== \"ISO8601\" ? dateFormat : undefined);\n return \"—\";\n }, [date, dateFormat]);\n\n return <HvOverflowTooltip data={formattedDate} />;\n};\n\nHvDateColumnCell.propTypes = {\n /**\n * Date to render.\n */\n date: PropTypes.string,\n /**\n * The date's text representation format.\n */\n dateFormat: PropTypes.string,\n};\n\nexport default HvDateColumnCell;\n"],"file":"DateColumnCell.js"}
@@ -10,7 +10,8 @@ export function hvNumberColumn<D extends Record<string, unknown>, C extends HvTa
10
10
  ): HvTableColumnConfig<D>;
11
11
 
12
12
  export function hvDateColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
13
- col: C
13
+ col: C,
14
+ dateFormat?: string
14
15
  ): HvTableColumnConfig<D>;
15
16
 
16
17
  export function hvExpandColumn<D extends Record<string, unknown>>(
@@ -26,7 +27,7 @@ export function hvTagColumn<D extends Record<string, unknown>, C extends HvTable
26
27
  colorDataKey: keyof D,
27
28
  textColorDataKey: keyof D,
28
29
  fromRowData: boolean,
29
- tagProps?: HvTagProps,
30
+ tagProps?: HvTagProps
30
31
  ): HvTableColumnConfig<D>;
31
32
 
32
33
  export function hvSwitchColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
@@ -37,7 +38,10 @@ export function hvSwitchColumn<D extends Record<string, unknown>, C extends HvTa
37
38
  switchProps?: HvBaseSwitchProps
38
39
  ): HvTableColumnConfig<D>;
39
40
 
40
- export function hvDropdownColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
41
+ export function hvDropdownColumn<
42
+ D extends Record<string, unknown>,
43
+ C extends HvTableColumnConfig<D>
44
+ >(
41
45
  col: C,
42
46
  id: string,
43
47
  placeholder: string,
@@ -45,7 +49,10 @@ export function hvDropdownColumn<D extends Record<string, unknown>, C extends Hv
45
49
  onChange?: (identifier: string, value: ListValueProp) => void
46
50
  ): HvTableColumnConfig<D>;
47
51
 
48
- export function hvProgressColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig<D>>(
52
+ export function hvProgressColumn<
53
+ D extends Record<string, unknown>,
54
+ C extends HvTableColumnConfig<D>
55
+ >(
49
56
  col: C,
50
57
  getPartial?: (row: HvRowInstance<D>) => number,
51
58
  getTotal?: (row: HvRowInstance<D>) => number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "3.39.2",
3
+ "version": "3.39.6",
4
4
  "description": "A collection of contributed React components for the Hitachi Vantara's Design System.",
5
5
  "homepage": "https://github.com/lumada-design/hv-uikit-react",
6
6
  "license": "Apache-2.0",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.16.3",
49
- "@hitachivantara/uikit-react-core": "^3.54.0",
49
+ "@hitachivantara/uikit-react-core": "^3.55.1",
50
50
  "@hitachivantara/uikit-react-icons": "^3.8.0",
51
51
  "@types/react-table": "^7.7.8",
52
52
  "clsx": "^1.1.1",
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "gitHead": "f8886577910d1e86f895661cda4fd0d21a9202f3"
86
+ "gitHead": "e5fc10f26f06ed20b9fa4203b5a8f0a0c905391c"
87
87
  }