@gooddata/sdk-ui-filters 11.68.0-alpha.6 → 11.68.0-alpha.7

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020-2022 GoodData Corporation
1
+ Copyright (c) 2020-2026 GoodData Corporation
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
package/NOTICE CHANGED
@@ -3,7 +3,7 @@ Copyright (c) 2017-2026 GoodData Corporation
3
3
  This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
4
4
 
5
5
  --------------------------------------------------------------------------------
6
- Attribution Notice for @gooddata/sdk-ui-filters (11.68.0-alpha.6)
6
+ Attribution Notice for @gooddata/sdk-ui-filters (11.68.0-alpha.7)
7
7
  Package License: MIT
8
8
  Own License File: LICENSE
9
9
 
@@ -17,13 +17,13 @@ change those terms.
17
17
  Dependencies
18
18
 
19
19
  Local GoodData SDK components
20
- - @gooddata/sdk-backend-spi (11.68.0-alpha.6) [MIT] — Direct
21
- - @gooddata/sdk-code-schemas (11.68.0-alpha.6) [MIT] — Transitive
22
- - @gooddata/sdk-model (11.68.0-alpha.6) [MIT] — Direct
23
- - @gooddata/sdk-ui (11.68.0-alpha.6) [MIT] — Direct
24
- - @gooddata/sdk-ui-kit (11.68.0-alpha.6) [MIT] — Direct
25
- - @gooddata/sdk-ui-theme-provider (11.68.0-alpha.6) [MIT] — Transitive
26
- - @gooddata/util (11.68.0-alpha.6) [MIT] — Direct
20
+ - @gooddata/sdk-backend-spi (11.68.0-alpha.7) [MIT] — Direct
21
+ - @gooddata/sdk-code-schemas (11.68.0-alpha.7) [MIT] — Transitive
22
+ - @gooddata/sdk-model (11.68.0-alpha.7) [MIT] — Direct
23
+ - @gooddata/sdk-ui (11.68.0-alpha.7) [MIT] — Direct
24
+ - @gooddata/sdk-ui-kit (11.68.0-alpha.7) [MIT] — Direct
25
+ - @gooddata/sdk-ui-theme-provider (11.68.0-alpha.7) [MIT] — Transitive
26
+ - @gooddata/util (11.68.0-alpha.7) [MIT] — Direct
27
27
 
28
28
  External components
29
29
  - @aaronhayes/react-use-hubspot-form (2.1.2) [MIT] — Transitive
@@ -325,7 +325,7 @@ Local GoodData SDK components
325
325
  ================================================================================
326
326
 
327
327
  --------------------------------------------------------------------------------
328
- Package Title: @gooddata/sdk-backend-spi (11.68.0-alpha.6)
328
+ Package Title: @gooddata/sdk-backend-spi (11.68.0-alpha.7)
329
329
  Package Source: Local workspace
330
330
  Package Depth: Direct
331
331
  --------------------------------------------------------------------------------
@@ -334,7 +334,7 @@ Package Depth: Direct
334
334
  MIT
335
335
 
336
336
  * License Text *
337
- Copyright (c) 2020-2022 GoodData Corporation
337
+ Copyright (c) 2020-2026 GoodData Corporation
338
338
 
339
339
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
340
340
 
@@ -343,7 +343,7 @@ The above copyright notice and this permission notice shall be included in all c
343
343
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
344
344
 
345
345
  --------------------------------------------------------------------------------
346
- Package Title: @gooddata/sdk-code-schemas (11.68.0-alpha.6)
346
+ Package Title: @gooddata/sdk-code-schemas (11.68.0-alpha.7)
347
347
  Package Source: Local workspace
348
348
  Package Depth: Transitive
349
349
  --------------------------------------------------------------------------------
@@ -373,7 +373,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
373
373
  SOFTWARE.
374
374
 
375
375
  --------------------------------------------------------------------------------
376
- Package Title: @gooddata/sdk-model (11.68.0-alpha.6)
376
+ Package Title: @gooddata/sdk-model (11.68.0-alpha.7)
377
377
  Package Source: Local workspace
378
378
  Package Depth: Direct
379
379
  --------------------------------------------------------------------------------
@@ -382,7 +382,7 @@ Package Depth: Direct
382
382
  MIT
383
383
 
384
384
  * License Text *
385
- Copyright (c) 2020-2022 GoodData Corporation
385
+ Copyright (c) 2020-2026 GoodData Corporation
386
386
 
387
387
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
388
388
 
@@ -391,7 +391,7 @@ The above copyright notice and this permission notice shall be included in all c
391
391
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
392
392
 
393
393
  --------------------------------------------------------------------------------
394
- Package Title: @gooddata/sdk-ui (11.68.0-alpha.6)
394
+ Package Title: @gooddata/sdk-ui (11.68.0-alpha.7)
395
395
  Package Source: Local workspace
396
396
  Package Depth: Direct
397
397
  --------------------------------------------------------------------------------
@@ -400,7 +400,7 @@ Package Depth: Direct
400
400
  MIT
401
401
 
402
402
  * License Text *
403
- Copyright (c) 2020-2022 GoodData Corporation
403
+ Copyright (c) 2020-2026 GoodData Corporation
404
404
 
405
405
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
406
406
 
@@ -409,7 +409,7 @@ The above copyright notice and this permission notice shall be included in all c
409
409
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
410
410
 
411
411
  --------------------------------------------------------------------------------
412
- Package Title: @gooddata/sdk-ui-kit (11.68.0-alpha.6)
412
+ Package Title: @gooddata/sdk-ui-kit (11.68.0-alpha.7)
413
413
  Package Source: Local workspace
414
414
  Package Depth: Direct
415
415
  --------------------------------------------------------------------------------
@@ -418,7 +418,7 @@ Package Depth: Direct
418
418
  MIT
419
419
 
420
420
  * License Text *
421
- Copyright (c) 2020-2022 GoodData Corporation
421
+ Copyright (c) 2020-2026 GoodData Corporation
422
422
 
423
423
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
424
424
 
@@ -427,7 +427,7 @@ The above copyright notice and this permission notice shall be included in all c
427
427
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
428
428
 
429
429
  --------------------------------------------------------------------------------
430
- Package Title: @gooddata/sdk-ui-theme-provider (11.68.0-alpha.6)
430
+ Package Title: @gooddata/sdk-ui-theme-provider (11.68.0-alpha.7)
431
431
  Package Source: Local workspace
432
432
  Package Depth: Transitive
433
433
  --------------------------------------------------------------------------------
@@ -436,7 +436,7 @@ Package Depth: Transitive
436
436
  MIT
437
437
 
438
438
  * License Text *
439
- Copyright (c) 2020-2022 GoodData Corporation
439
+ Copyright (c) 2020-2026 GoodData Corporation
440
440
 
441
441
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
442
442
 
@@ -445,7 +445,7 @@ The above copyright notice and this permission notice shall be included in all c
445
445
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
446
446
 
447
447
  --------------------------------------------------------------------------------
448
- Package Title: @gooddata/util (11.68.0-alpha.6)
448
+ Package Title: @gooddata/util (11.68.0-alpha.7)
449
449
  Package Source: Local workspace
450
450
  Package Depth: Direct
451
451
  --------------------------------------------------------------------------------
@@ -454,7 +454,7 @@ Package Depth: Direct
454
454
  MIT
455
455
 
456
456
  * License Text *
457
- Copyright (c) 2020-2022 GoodData Corporation
457
+ Copyright (c) 2020-2026 GoodData Corporation
458
458
 
459
459
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
460
460
 
@@ -1 +1 @@
1
- {"version":3,"file":"FormattingUtils.d.ts","sourceRoot":"","sources":["../../../src/DateFilter/utils/FormattingUtils.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,sBAAsB,WAAY,MAAM,KAAG,GAIvD,CAAC;AAEF,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2BjE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,WAAY,MAAM,WAC6B,CAAC;AAkC7F;;GAEG;AACH,eAAO,MAAM,uBAAuB,SAC1B,IAAI,GAAG,MAAM,MACf,IAAI,GAAG,MAAM,cACL,MAAM,wBAEnB,MAgCF,CAAC"}
1
+ {"version":3,"file":"FormattingUtils.d.ts","sourceRoot":"","sources":["../../../src/DateFilter/utils/FormattingUtils.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,sBAAsB,WAAY,MAAM,KAAG,GAIvD,CAAC;AAEF,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2BjE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,WAAY,MAAM,WAC6B,CAAC;AAkC7F;;GAEG;AACH,eAAO,MAAM,uBAAuB,SAC1B,IAAI,GAAG,MAAM,MACf,IAAI,GAAG,MAAM,cACL,MAAM,wBAEnB,MAiCF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { format } from "date-fns";
2
+ import { format, isSameDay } from "date-fns";
3
3
  import moment from "moment";
4
4
  import { sanitizeLocaleForMoment } from "@gooddata/util";
5
5
  import { DAY_END_TIME, DAY_START_TIME, TIME_FORMAT, TIME_FORMAT_WITH_SECONDS, TIME_FORMAT_WITH_SECONDS_WITH_SEPARATOR, TIME_FORMAT_WITH_SEPARATOR, } from "../constants/Platform.js";
@@ -89,7 +89,8 @@ export const formatAbsoluteDateRange = (from, to, dateFormat, splitter = "\u2013
89
89
  const fromDate = convertPlatformDateStringToDate(adjustedFrom) ?? undefined;
90
90
  const toDate = convertPlatformDateStringToDate(adjustedTo) ?? undefined;
91
91
  const coversWholeDay = fromDate && toDate ? isTimeForWholeDay(fromDate, toDate) : false;
92
- if (fromDate && toDate && moment(fromDate).isSame(toDate, "day")) {
92
+ // date-fns keeps the timezone context of the dates (e.g. a TZDate), unlike moment
93
+ if (fromDate && toDate && isSameDay(fromDate, toDate)) {
93
94
  if (isTimeEnabled && !coversWholeDay) {
94
95
  return `${format(fromDate, dateFormatWithoutTime)}, ${getTimeRange(fromDate, toDate, splitter, timeFormat)}`;
95
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-filters",
3
- "version": "11.68.0-alpha.6",
3
+ "version": "11.68.0-alpha.7",
4
4
  "description": "GoodData.UI SDK - Filter Components",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -48,11 +48,11 @@
48
48
  "ts-invariant": "0.10.3",
49
49
  "tslib": "2.8.1",
50
50
  "uuid": "11.1.1",
51
- "@gooddata/sdk-backend-spi": "11.68.0-alpha.6",
52
- "@gooddata/sdk-model": "11.68.0-alpha.6",
53
- "@gooddata/sdk-ui": "11.68.0-alpha.6",
54
- "@gooddata/sdk-ui-kit": "11.68.0-alpha.6",
55
- "@gooddata/util": "11.68.0-alpha.6"
51
+ "@gooddata/sdk-backend-spi": "11.68.0-alpha.7",
52
+ "@gooddata/sdk-model": "11.68.0-alpha.7",
53
+ "@gooddata/sdk-ui": "11.68.0-alpha.7",
54
+ "@gooddata/util": "11.68.0-alpha.7",
55
+ "@gooddata/sdk-ui-kit": "11.68.0-alpha.7"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@microsoft/api-documenter": "7.30.20",
@@ -90,12 +90,12 @@
90
90
  "stylelint": "16.26.1",
91
91
  "typescript": "7.0.2",
92
92
  "vitest": "5.0.4",
93
- "@gooddata/eslint-config": "11.68.0-alpha.6",
94
- "@gooddata/oxlint-config": "11.68.0-alpha.6",
95
- "@gooddata/reference-workspace": "11.68.0-alpha.6",
96
- "@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.6",
97
- "@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.6",
98
- "@gooddata/stylelint-config": "11.68.0-alpha.6"
93
+ "@gooddata/eslint-config": "11.68.0-alpha.7",
94
+ "@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.7",
95
+ "@gooddata/oxlint-config": "11.68.0-alpha.7",
96
+ "@gooddata/reference-workspace": "11.68.0-alpha.7",
97
+ "@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.7",
98
+ "@gooddata/stylelint-config": "11.68.0-alpha.7"
99
99
  },
100
100
  "peerDependencies": {
101
101
  "react": "^18.0.0 || ^19.0.0",