@opengeoweb/shared 19.6.1-nightly-20260917 → 20.0.0

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/index.esm.js CHANGED
@@ -7,7 +7,7 @@ import Draggable from 'react-draggable';
7
7
  import { Resizable } from 're-resizable';
8
8
  import { Resize, BORDER_RADIUS, Options, Close, ChevronLeft, Exclamation, Success, Info, ChevronRight, GeoWebLogo, HamburgerMenu, Admin, useThemeContext, ThemeTypes, ArrowLeft, ArrowRight, KeyOption, ArrowUp, ArrowDown, KeyCommand, ChevronDown, Search, Clear, Cached, Filter as Filter$1, Menu as Menu$1, CalendarToday } from '@opengeoweb/theme';
9
9
  import { throttle, isEqual, merge, escapeRegExp, debounce } from 'lodash';
10
- import { add as add$1, startOfDay, addMinutes, addHours, format, differenceInDays as differenceInDays$1, differenceInHours as differenceInHours$1, differenceInMinutes as differenceInMinutes$1, differenceInMonths as differenceInMonths$1, differenceInSeconds as differenceInSeconds$1, differenceInYears as differenceInYears$1, fromUnixTime, getHours as getHours$1, isAfter as isAfter$1, isBefore as isBefore$1, isEqual as isEqual$1, isValid as isValid$1, parseISO, roundToNearestMinutes as roundToNearestMinutes$1, set as set$1, setSeconds as setSeconds$1, parse, sub as sub$1, getUnixTime, getDay, getDayOfYear, getMonth, getWeek, getYear, isWithinInterval } from 'date-fns';
10
+ import { add as add$1, addMinutes, addHours, format, differenceInDays as differenceInDays$1, differenceInHours as differenceInHours$1, differenceInMinutes as differenceInMinutes$1, differenceInMonths as differenceInMonths$1, differenceInSeconds as differenceInSeconds$1, differenceInYears as differenceInYears$1, fromUnixTime, getHours as getHours$1, isAfter as isAfter$1, isBefore as isBefore$1, isEqual as isEqual$1, isValid as isValid$1, parseISO, roundToNearestMinutes as roundToNearestMinutes$1, set as set$1, setSeconds as setSeconds$1, parse, sub as sub$1, getUnixTime, getDay, getDayOfYear, getMonth, getWeek, getYear, isWithinInterval, startOfDay } from 'date-fns';
11
11
  import { fi as fi$1, nl as nl$1, nb, enGB } from 'date-fns/locale';
12
12
  import { DateTimePicker as DateTimePicker$1 } from '@mui/x-date-pickers';
13
13
  import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
@@ -6006,27 +6006,6 @@ var startOfYearUTC = function startOfYearUTC(date) {
6006
6006
  milliseconds: 0
6007
6007
  });
6008
6008
  };
6009
- // TODO - IF TODAY time is going to be used, we need to edit this to handle the time.
6010
- // - now.getTimezoneOffset(); by subtracting the timezone offset, this can be used to convert the time to similar to UTC, because startOfDay retuns values in local time with offset
6011
- /**
6012
- * Parse custom time format of NOW+current time | current date in UTC. The result will be in UTC.
6013
- * @param timeValue - string value
6014
- * @returns Time in UTC format
6015
- */
6016
- var convertNOWFormatToUTC = function convertNOWFormatToUTC(timeValue) {
6017
- var now = new Date();
6018
- var today = startOfDay(now);
6019
- var regex = /(NOW|TODAY)([+-])PT(\d+)H(\d+)M/;
6020
- var matches = regex.exec(timeValue);
6021
- if (matches) {
6022
- var base = matches[1] === 'NOW' ? now : today;
6023
- var sign = matches[2] === '+' ? 1 : -1;
6024
- var hours = parseInt(matches[3], 10);
6025
- var minutes = parseInt(matches[4], 10);
6026
- return addMinutes(addHours(base, sign * hours), sign * minutes).toISOString();
6027
- }
6028
- throw new Error('Invalid endTime format');
6029
- };
6030
6009
  /**
6031
6010
  * Parse custom time format of NOW+-hours and minutes || TODAY+-hours and minutes into UTC. The result will be in UTC.
6032
6011
  * @param timeValue - string value
@@ -6099,7 +6078,6 @@ var index$1 = /*#__PURE__*/Object.freeze({
6099
6078
  DATE_FORMAT_UTC: DATE_FORMAT_UTC,
6100
6079
  DATE_FORMAT_YEAR: DATE_FORMAT_YEAR,
6101
6080
  add: add,
6102
- convertNOWFormatToUTC: convertNOWFormatToUTC,
6103
6081
  convertNOWandTODAYFormatsToUTC: convertNOWandTODAYFormatsToUTC,
6104
6082
  createDate: createDate,
6105
6083
  dateToIsoString: dateToIsoString,
@@ -330,12 +330,6 @@ export declare const startOfMonthUTC: (date: Date) => Date;
330
330
  * @returns the new date
331
331
  */
332
332
  export declare const startOfYearUTC: (date: Date) => Date;
333
- /**
334
- * Parse custom time format of NOW+current time | current date in UTC. The result will be in UTC.
335
- * @param timeValue - string value
336
- * @returns Time in UTC format
337
- */
338
- export declare const convertNOWFormatToUTC: (timeValue: string) => string;
339
333
  /**
340
334
  * Parse custom time format of NOW+-hours and minutes || TODAY+-hours and minutes into UTC. The result will be in UTC.
341
335
  * @param timeValue - string value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "19.6.1-nightly-20260917",
3
+ "version": "20.0.0",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@opengeoweb/theme": "19.6.1-nightly-20260917",
23
+ "@opengeoweb/theme": "20.0.0",
24
24
  "react-draggable": "^4.4.6",
25
25
  "re-resizable": "^6.9.11",
26
26
  "lodash": "^4.18.1",