awing-library 2.1.2-dev.579 → 2.1.2-dev.580

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/AWING/AdvancedSearch/Container.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAER,mBAAmB,EAOtB,MAAM,SAAS,CAAC;AAajB,iBAAS,cAAc,CAAC,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,mBAAmB,CAAC,SAAS,CAAC,2CA+T/F;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/AWING/AdvancedSearch/Container.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAER,mBAAmB,EAOtB,MAAM,SAAS,CAAC;AAajB,iBAAS,cAAc,CAAC,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,mBAAmB,CAAC,SAAS,CAAC,2CAgU/F;AAED,eAAe,cAAc,CAAC"}
@@ -4,7 +4,6 @@ import moment from "moment";
4
4
  import lodash from "lodash";
5
5
  import { styled } from "@mui/material/styles";
6
6
  import { Button, Chip, Collapse, Grid, Paper, Stack } from "@mui/material";
7
- import { dateToString } from "../../Helpers/index.js";
8
7
  import ButtonSelect from "../ButtonSelect/index.js";
9
8
  import ButtonDateRangePicker from "../ButtonDateRangePicker/index.js";
10
9
  import EnhancedAutoComplete from "../EnhancedAutoComplete/index.js";
@@ -185,7 +184,7 @@ function AdvancedSearch(props) {
185
184
  const endDate = currentValue && !lodash.isNull(currentValue[1]) ? moment(currentValue[1]) : null;
186
185
  const handleChange = (dateRange)=>{
187
186
  const option = {
188
- label: dateToString(dateRange[0]) + ' - ' + dateToString(dateRange[1]),
187
+ label: dateRange.map((date)=>date.format('DD/MM/YYYY')).join(' - '),
189
188
  value: [
190
189
  dateRange[0],
191
190
  dateRange[1]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.579",
3
+ "version": "2.1.2-dev.580",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {