@meshmakers/shared-ui 3.3.550 → 3.3.560
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
|
@@ -1297,7 +1297,7 @@ declare class SaveAsDialogService {
|
|
|
1297
1297
|
/**
|
|
1298
1298
|
* The type of time range selection
|
|
1299
1299
|
*/
|
|
1300
|
-
type TimeRangeType = 'year' | 'quarter' | 'month' | 'relative' | 'custom';
|
|
1300
|
+
type TimeRangeType = 'year' | 'quarter' | 'month' | 'day' | 'relative' | 'custom';
|
|
1301
1301
|
/**
|
|
1302
1302
|
* The unit for relative time calculations
|
|
1303
1303
|
*/
|
|
@@ -1353,6 +1353,12 @@ interface TimeRangeSelection {
|
|
|
1353
1353
|
year?: number;
|
|
1354
1354
|
quarter?: Quarter;
|
|
1355
1355
|
month?: number;
|
|
1356
|
+
/** Day of month (1-31), used with 'day' type */
|
|
1357
|
+
day?: number;
|
|
1358
|
+
/** Hour from (0-23), optional hour filter for 'day' type */
|
|
1359
|
+
hourFrom?: number;
|
|
1360
|
+
/** Hour to (1-24), optional hour filter for 'day' type. Exclusive upper bound. */
|
|
1361
|
+
hourTo?: number;
|
|
1356
1362
|
relativeValue?: number;
|
|
1357
1363
|
relativeUnit?: RelativeTimeUnit;
|
|
1358
1364
|
customFrom?: Date;
|
|
@@ -1373,13 +1379,17 @@ interface TimeRangePickerLabels {
|
|
|
1373
1379
|
year?: string;
|
|
1374
1380
|
quarter?: string;
|
|
1375
1381
|
month?: string;
|
|
1382
|
+
day?: string;
|
|
1376
1383
|
relativeValue?: string;
|
|
1377
1384
|
relativeUnit?: string;
|
|
1385
|
+
hourFrom?: string;
|
|
1386
|
+
hourTo?: string;
|
|
1378
1387
|
customFrom?: string;
|
|
1379
1388
|
customTo?: string;
|
|
1380
1389
|
typeYear?: string;
|
|
1381
1390
|
typeQuarter?: string;
|
|
1382
1391
|
typeMonth?: string;
|
|
1392
|
+
typeDay?: string;
|
|
1383
1393
|
typeRelative?: string;
|
|
1384
1394
|
typeCustom?: string;
|
|
1385
1395
|
unitHours?: string;
|
|
@@ -1414,14 +1424,25 @@ declare class TimeRangeUtils {
|
|
|
1414
1424
|
* Uses exclusive end boundary (start of next month) for correct LESS_THAN filtering.
|
|
1415
1425
|
*/
|
|
1416
1426
|
static getMonthRange(year: number, month: number): TimeRange;
|
|
1427
|
+
/**
|
|
1428
|
+
* Calculate time range for a specific day.
|
|
1429
|
+
* Uses exclusive end boundary (start of next day) for correct LESS_THAN filtering.
|
|
1430
|
+
* Optionally filters to a specific hour range within the day.
|
|
1431
|
+
* @param hourFrom Start hour (0-23), defaults to 0
|
|
1432
|
+
* @param hourTo End hour (1-24, exclusive), defaults to 24 (= next day 00:00)
|
|
1433
|
+
*/
|
|
1434
|
+
static getDayRange(year: number, month: number, day: number, hourFrom?: number, hourTo?: number): TimeRange;
|
|
1417
1435
|
/**
|
|
1418
1436
|
* Calculate time range relative to now
|
|
1419
1437
|
*/
|
|
1420
1438
|
static getRelativeRange(value: number, unit: RelativeTimeUnit): TimeRange;
|
|
1421
1439
|
/**
|
|
1422
|
-
* Calculate time range from selection
|
|
1440
|
+
* Calculate time range from selection.
|
|
1441
|
+
* @param selection The current selection state
|
|
1442
|
+
* @param showTime If false (default), custom date ranges are normalized to full-day boundaries
|
|
1443
|
+
* with exclusive end (from: 00:00:00 UTC, to: start of next day 00:00:00 UTC)
|
|
1423
1444
|
*/
|
|
1424
|
-
static getTimeRangeFromSelection(selection: TimeRangeSelection): TimeRange | null;
|
|
1445
|
+
static getTimeRangeFromSelection(selection: TimeRangeSelection, showTime?: boolean): TimeRange | null;
|
|
1425
1446
|
/**
|
|
1426
1447
|
* Convert TimeRange to ISO 8601 format
|
|
1427
1448
|
*/
|
|
@@ -1489,8 +1510,11 @@ declare class TimeRangePickerComponent implements OnInit, OnChanges {
|
|
|
1489
1510
|
protected selectedYear: i0.WritableSignal<number>;
|
|
1490
1511
|
protected selectedQuarter: i0.WritableSignal<Quarter>;
|
|
1491
1512
|
protected selectedMonth: i0.WritableSignal<number>;
|
|
1513
|
+
protected selectedDay: i0.WritableSignal<number>;
|
|
1492
1514
|
protected relativeValue: i0.WritableSignal<number>;
|
|
1493
1515
|
protected relativeUnit: i0.WritableSignal<RelativeTimeUnit>;
|
|
1516
|
+
protected hourFrom: i0.WritableSignal<number | null>;
|
|
1517
|
+
protected hourTo: i0.WritableSignal<number | null>;
|
|
1494
1518
|
protected customFrom: i0.WritableSignal<Date>;
|
|
1495
1519
|
protected customTo: i0.WritableSignal<Date>;
|
|
1496
1520
|
protected mergedLabels: i0.Signal<{
|
|
@@ -1498,13 +1522,17 @@ declare class TimeRangePickerComponent implements OnInit, OnChanges {
|
|
|
1498
1522
|
year?: string;
|
|
1499
1523
|
quarter?: string;
|
|
1500
1524
|
month?: string;
|
|
1525
|
+
day?: string;
|
|
1501
1526
|
relativeValue?: string;
|
|
1502
1527
|
relativeUnit?: string;
|
|
1528
|
+
hourFrom?: string;
|
|
1529
|
+
hourTo?: string;
|
|
1503
1530
|
customFrom?: string;
|
|
1504
1531
|
customTo?: string;
|
|
1505
1532
|
typeYear?: string;
|
|
1506
1533
|
typeQuarter?: string;
|
|
1507
1534
|
typeMonth?: string;
|
|
1535
|
+
typeDay?: string;
|
|
1508
1536
|
typeRelative?: string;
|
|
1509
1537
|
typeCustom?: string;
|
|
1510
1538
|
unitHours?: string;
|
|
@@ -1520,6 +1548,9 @@ declare class TimeRangePickerComponent implements OnInit, OnChanges {
|
|
|
1520
1548
|
protected yearOptions: i0.Signal<TimeRangeOption<number>[]>;
|
|
1521
1549
|
protected quarterOptions: i0.Signal<TimeRangeOption<Quarter>[]>;
|
|
1522
1550
|
protected monthOptions: i0.Signal<TimeRangeOption<number>[]>;
|
|
1551
|
+
protected dayOptions: i0.Signal<TimeRangeOption<number>[]>;
|
|
1552
|
+
protected hourFromOptions: i0.Signal<TimeRangeOption<number>[]>;
|
|
1553
|
+
protected hourToOptions: i0.Signal<TimeRangeOption<number>[]>;
|
|
1523
1554
|
protected relativeUnitOptions: i0.Signal<TimeRangeOption<RelativeTimeUnit>[]>;
|
|
1524
1555
|
protected currentRange: i0.Signal<TimeRange | null>;
|
|
1525
1556
|
protected minDate: i0.Signal<Date>;
|
|
@@ -1533,6 +1564,10 @@ declare class TimeRangePickerComponent implements OnInit, OnChanges {
|
|
|
1533
1564
|
protected onYearChange(year: number): void;
|
|
1534
1565
|
protected onQuarterChange(quarter: Quarter): void;
|
|
1535
1566
|
protected onMonthChange(month: number): void;
|
|
1567
|
+
protected onDayChange(day: number): void;
|
|
1568
|
+
protected onHourFromChange(hour: number | null): void;
|
|
1569
|
+
protected onHourToChange(hour: number | null): void;
|
|
1570
|
+
protected clearHourFilter(): void;
|
|
1536
1571
|
protected onRelativeValueChange(value: number): void;
|
|
1537
1572
|
protected onRelativeUnitChange(unit: RelativeTimeUnit): void;
|
|
1538
1573
|
protected onCustomFromChange(date: Date): void;
|