@meshmakers/shared-ui 3.4.210 → 3.4.220

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshmakers/shared-ui",
3
- "version": "3.4.210",
3
+ "version": "3.4.220",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.0.0",
6
6
  "@angular/core": "^22.0.0",
@@ -1530,6 +1530,18 @@ interface TimeRangeISO {
1530
1530
  * Quarter number (1-4)
1531
1531
  */
1532
1532
  type Quarter = 1 | 2 | 3 | 4;
1533
+ /**
1534
+ * Timezone basis for resolving calendar boundaries (year/quarter/month/day/custom).
1535
+ *
1536
+ * - `'local'` (default): boundaries are wall-clock instants in the browser's
1537
+ * local timezone — e.g. year 2026 = `[Jan 1 00:00 local, Jan 1 next-year 00:00 local)`.
1538
+ * - `'utc'`: boundaries are wall-clock instants in UTC — e.g. year 2026 =
1539
+ * `[2026-01-01T00:00:00Z, 2027-01-01T00:00:00Z)`.
1540
+ *
1541
+ * Relative ranges (last N hours/days) are timezone-independent (a fixed offset
1542
+ * from "now") and ignore this setting.
1543
+ */
1544
+ type TimeRangeZone = 'local' | 'utc';
1533
1545
  /**
1534
1546
  * Configuration for the time range picker
1535
1547
  */
@@ -1618,26 +1630,30 @@ declare class TimeRangeUtils {
1618
1630
  /**
1619
1631
  * Calculate time range for a specific year.
1620
1632
  * Uses exclusive end boundary (start of next year) for correct LESS_THAN filtering.
1633
+ * @param zone Timezone basis for the boundaries (defaults to `'local'`).
1621
1634
  */
1622
- static getYearRange(year: number): TimeRange;
1635
+ static getYearRange(year: number, zone?: TimeRangeZone): TimeRange;
1623
1636
  /**
1624
1637
  * Calculate time range for a specific quarter.
1625
1638
  * Uses exclusive end boundary (start of next quarter) for correct LESS_THAN filtering.
1639
+ * @param zone Timezone basis for the boundaries (defaults to `'local'`).
1626
1640
  */
1627
- static getQuarterRange(year: number, quarter: Quarter): TimeRange;
1641
+ static getQuarterRange(year: number, quarter: Quarter, zone?: TimeRangeZone): TimeRange;
1628
1642
  /**
1629
1643
  * Calculate time range for a specific month.
1630
1644
  * Uses exclusive end boundary (start of next month) for correct LESS_THAN filtering.
1645
+ * @param zone Timezone basis for the boundaries (defaults to `'local'`).
1631
1646
  */
1632
- static getMonthRange(year: number, month: number): TimeRange;
1647
+ static getMonthRange(year: number, month: number, zone?: TimeRangeZone): TimeRange;
1633
1648
  /**
1634
1649
  * Calculate time range for a specific day.
1635
1650
  * Uses exclusive end boundary (start of next day) for correct LESS_THAN filtering.
1636
1651
  * Optionally filters to a specific hour range within the day.
1637
1652
  * @param hourFrom Start hour (0-23), defaults to 0
1638
1653
  * @param hourTo End hour (1-24, exclusive), defaults to 24 (= next day 00:00)
1654
+ * @param zone Timezone basis for the boundaries (defaults to `'local'`).
1639
1655
  */
1640
- static getDayRange(year: number, month: number, day: number, hourFrom?: number, hourTo?: number): TimeRange;
1656
+ static getDayRange(year: number, month: number, day: number, hourFrom?: number, hourTo?: number, zone?: TimeRangeZone): TimeRange;
1641
1657
  /**
1642
1658
  * Calculate time range relative to now
1643
1659
  */
@@ -1646,9 +1662,11 @@ declare class TimeRangeUtils {
1646
1662
  * Calculate time range from selection.
1647
1663
  * @param selection The current selection state
1648
1664
  * @param showTime If false (default), custom date ranges are normalized to full-day boundaries
1649
- * with exclusive end (from: 00:00:00 UTC, to: start of next day 00:00:00 UTC)
1665
+ * with exclusive end (from: 00:00:00, to: start of next day 00:00:00)
1666
+ * @param zone Timezone basis for calendar boundaries (defaults to `'local'`). Applies to
1667
+ * year/quarter/month/day and normalized custom ranges; relative ranges ignore it.
1650
1668
  */
1651
- static getTimeRangeFromSelection(selection: TimeRangeSelection, showTime?: boolean): TimeRange | null;
1669
+ static getTimeRangeFromSelection(selection: TimeRangeSelection, showTime?: boolean, zone?: TimeRangeZone): TimeRange | null;
1652
1670
  /**
1653
1671
  * Convert TimeRange to ISO 8601 format
1654
1672
  */
@@ -2150,4 +2168,4 @@ declare class WindowStateService {
2150
2168
  declare function provideMmSharedUi(): EnvironmentProviders;
2151
2169
 
2152
2170
  export { BaseFormComponent, BaseTreeDetailComponent, ButtonTypes, BytesToSizePipe, CRON_PRESETS, ConfirmationService, ConfirmationWindowComponent, ConfirmationWindowResult, CopyableTextComponent, CronBuilderComponent, CronHumanizerService, CronParserService, DEFAULT_CONFIRMATION_WINDOW_MESSAGES, DEFAULT_CRON_BUILDER_CONFIG, DEFAULT_ENTITY_SELECT_DIALOG_MESSAGES, DEFAULT_ENTITY_SELECT_INPUT_MESSAGES, DEFAULT_INPUT_DIALOG_MESSAGES, DEFAULT_LIST_VIEW_MESSAGES, DEFAULT_MESSAGE_DETAILS_DIALOG_MESSAGES, DEFAULT_NOTIFICATION_DISPLAY_MESSAGES, DEFAULT_PROGRESS_WINDOW_MESSAGES, DEFAULT_RESPONSIVE_COLSPAN, DEFAULT_SAVE_AS_DIALOG_MESSAGES, DEFAULT_TIME_RANGE_LABELS, DataSourceBase, DataSourceTyped, DialogType, EntitySelectDialogComponent, EntitySelectDialogService, EntitySelectInputComponent, FetchResultBase, FetchResultTyped, FileUploadResult, FileUploadService, FormTitleExtraDirective, HAS_UNSAVED_CHANGES, HOUR_INTERVALS, HierarchyDataSource, HierarchyDataSourceBase, ImportStrategyDialogComponent, ImportStrategyDialogResult, ImportStrategyDialogService, ImportStrategyDto, InputDialogComponent, InputService, ListViewComponent, MINUTE_INTERVALS, MessageDetailsDialogComponent, MessageDetailsDialogService, MessageListenerService, MmListViewDataBindingDirective, NotificationDisplayService, PascalCasePipe, ProgressValue, ProgressWindowComponent, ProgressWindowService, RELATIVE_WEEKS, SECOND_INTERVALS, SaveAsDialogComponent, SaveAsDialogService, TimeRangePickerComponent, TimeRangeUtils, TreeComponent, UnsavedChangesDirective, UnsavedChangesGuard, UploadFileDialogComponent, WEEKDAYS, WEEKDAY_ABBREVIATIONS, WindowStateService, generateDayOfMonthOptions, generateHourOptions, generateMinuteOptions, provideMmSharedUi };
2153
- export type { BadgeMapping, BadgeMappingTable, BaseFormConfig, BaseFormMessages, ColumnDefinition, ConfirmationButtonLabels, ConfirmationWindowData, ConfirmationWindowMessages, ContextMenuType, CronBuilderConfig, CronFields, CronPreset, CronSchedule, CronValidationResult, DialogFetchOptions, DialogFetchResult, DropdownOption, EntitySelectDialogDataSource, EntitySelectDialogMessages, EntitySelectDialogOptions, EntitySelectDialogResult, EntitySelectInputMessages, FetchDataOptions, FetchResult, FileUploadData, HasUnsavedChanges, InputDialogMessages, ListViewMessages, MessageDetailsDialogData, MessageDetailsDialogMessages, NameAvailabilityResult, NodeDroppedEvent, NodeInfo, NotificationDisplayMessages, ProgressWindowConfig, ProgressWindowData, ProgressWindowMessages, ProgressWindowOptions, ProgressWindowResult, Quarter, RelativeTimeUnit, ResponsiveFormBreakPoint, RowClassFn, SaveAsDialogDataSource, SaveAsDialogMessages, SaveAsDialogOptions, SaveAsDialogResult, ScheduleType, StatusFieldConfig, StatusIconMapping, StatusMapping, TableColumn, TimeRange, TimeRangeISO, TimeRangeOption, TimeRangePickerConfig, TimeRangePickerLabels, TimeRangeSelection, TimeRangeType, UnsavedChangesMessages, Weekday, WindowDimensions };
2171
+ export type { BadgeMapping, BadgeMappingTable, BaseFormConfig, BaseFormMessages, ColumnDefinition, ConfirmationButtonLabels, ConfirmationWindowData, ConfirmationWindowMessages, ContextMenuType, CronBuilderConfig, CronFields, CronPreset, CronSchedule, CronValidationResult, DialogFetchOptions, DialogFetchResult, DropdownOption, EntitySelectDialogDataSource, EntitySelectDialogMessages, EntitySelectDialogOptions, EntitySelectDialogResult, EntitySelectInputMessages, FetchDataOptions, FetchResult, FileUploadData, HasUnsavedChanges, InputDialogMessages, ListViewMessages, MessageDetailsDialogData, MessageDetailsDialogMessages, NameAvailabilityResult, NodeDroppedEvent, NodeInfo, NotificationDisplayMessages, ProgressWindowConfig, ProgressWindowData, ProgressWindowMessages, ProgressWindowOptions, ProgressWindowResult, Quarter, RelativeTimeUnit, ResponsiveFormBreakPoint, RowClassFn, SaveAsDialogDataSource, SaveAsDialogMessages, SaveAsDialogOptions, SaveAsDialogResult, ScheduleType, StatusFieldConfig, StatusIconMapping, StatusMapping, TableColumn, TimeRange, TimeRangeISO, TimeRangeOption, TimeRangePickerConfig, TimeRangePickerLabels, TimeRangeSelection, TimeRangeType, TimeRangeZone, UnsavedChangesMessages, Weekday, WindowDimensions };