ngx-com 0.0.21 → 0.1.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.
Files changed (114) hide show
  1. package/README.md +137 -33
  2. package/fesm2022/ngx-com-components-alert.mjs +21 -11
  3. package/fesm2022/ngx-com-components-alert.mjs.map +1 -1
  4. package/fesm2022/ngx-com-components-avatar.mjs +9 -7
  5. package/fesm2022/ngx-com-components-avatar.mjs.map +1 -1
  6. package/fesm2022/ngx-com-components-button.mjs +1 -1
  7. package/fesm2022/ngx-com-components-button.mjs.map +1 -1
  8. package/fesm2022/ngx-com-components-calendar.mjs +27 -3112
  9. package/fesm2022/ngx-com-components-calendar.mjs.map +1 -1
  10. package/fesm2022/ngx-com-components-card.mjs +8 -8
  11. package/fesm2022/ngx-com-components-card.mjs.map +1 -1
  12. package/fesm2022/ngx-com-components-carousel.mjs +16 -4
  13. package/fesm2022/ngx-com-components-carousel.mjs.map +1 -1
  14. package/fesm2022/ngx-com-components-checkbox.mjs +1 -1
  15. package/fesm2022/ngx-com-components-checkbox.mjs.map +1 -1
  16. package/fesm2022/ngx-com-components-code-block.mjs +9 -9
  17. package/fesm2022/ngx-com-components-code-block.mjs.map +1 -1
  18. package/fesm2022/ngx-com-components-collapsible.mjs +15 -13
  19. package/fesm2022/ngx-com-components-collapsible.mjs.map +1 -1
  20. package/fesm2022/ngx-com-components-confirm.mjs +4 -4
  21. package/fesm2022/ngx-com-components-confirm.mjs.map +1 -1
  22. package/fesm2022/ngx-com-components-datepicker.mjs +2334 -0
  23. package/fesm2022/ngx-com-components-datepicker.mjs.map +1 -0
  24. package/fesm2022/ngx-com-components-dialog.mjs +47 -45
  25. package/fesm2022/ngx-com-components-dialog.mjs.map +1 -1
  26. package/fesm2022/ngx-com-components-dropdown.mjs +446 -340
  27. package/fesm2022/ngx-com-components-dropdown.mjs.map +1 -1
  28. package/fesm2022/ngx-com-components-empty-state.mjs +5 -3
  29. package/fesm2022/ngx-com-components-empty-state.mjs.map +1 -1
  30. package/fesm2022/ngx-com-components-form-field.mjs +11 -6
  31. package/fesm2022/ngx-com-components-form-field.mjs.map +1 -1
  32. package/fesm2022/ngx-com-components-icon-lucide.mjs +41 -0
  33. package/fesm2022/ngx-com-components-icon-lucide.mjs.map +1 -0
  34. package/fesm2022/ngx-com-components-icon.mjs +89 -61
  35. package/fesm2022/ngx-com-components-icon.mjs.map +1 -1
  36. package/fesm2022/ngx-com-components-item.mjs +14 -4
  37. package/fesm2022/ngx-com-components-item.mjs.map +1 -1
  38. package/fesm2022/ngx-com-components-menu.mjs +61 -69
  39. package/fesm2022/ngx-com-components-menu.mjs.map +1 -1
  40. package/fesm2022/ngx-com-components-native-control.mjs +170 -0
  41. package/fesm2022/ngx-com-components-native-control.mjs.map +1 -0
  42. package/fesm2022/ngx-com-components-paginator.mjs +11 -3
  43. package/fesm2022/ngx-com-components-paginator.mjs.map +1 -1
  44. package/fesm2022/ngx-com-components-popover.mjs +58 -33
  45. package/fesm2022/ngx-com-components-popover.mjs.map +1 -1
  46. package/fesm2022/ngx-com-components-radio.mjs +4 -4
  47. package/fesm2022/ngx-com-components-radio.mjs.map +1 -1
  48. package/fesm2022/ngx-com-components-segmented-control.mjs +6 -4
  49. package/fesm2022/ngx-com-components-segmented-control.mjs.map +1 -1
  50. package/fesm2022/ngx-com-components-sort.mjs +63 -57
  51. package/fesm2022/ngx-com-components-sort.mjs.map +1 -1
  52. package/fesm2022/ngx-com-components-spinner.mjs +6 -6
  53. package/fesm2022/ngx-com-components-spinner.mjs.map +1 -1
  54. package/fesm2022/ngx-com-components-switch.mjs +18 -9
  55. package/fesm2022/ngx-com-components-switch.mjs.map +1 -1
  56. package/fesm2022/ngx-com-components-table.mjs +23 -9
  57. package/fesm2022/ngx-com-components-table.mjs.map +1 -1
  58. package/fesm2022/ngx-com-components-tabs.mjs +81 -58
  59. package/fesm2022/ngx-com-components-tabs.mjs.map +1 -1
  60. package/fesm2022/ngx-com-components-timepicker.mjs +1048 -0
  61. package/fesm2022/ngx-com-components-timepicker.mjs.map +1 -0
  62. package/fesm2022/ngx-com-components-toast.mjs +18 -14
  63. package/fesm2022/ngx-com-components-toast.mjs.map +1 -1
  64. package/fesm2022/ngx-com-components-tooltip.mjs +5 -5
  65. package/fesm2022/ngx-com-components-tooltip.mjs.map +1 -1
  66. package/fesm2022/ngx-com-components.mjs +0 -13
  67. package/fesm2022/ngx-com-components.mjs.map +1 -1
  68. package/fesm2022/ngx-com-tokens.mjs +0 -8
  69. package/fesm2022/ngx-com-tokens.mjs.map +1 -1
  70. package/fesm2022/ngx-com-utils.mjs +13 -1
  71. package/fesm2022/ngx-com-utils.mjs.map +1 -1
  72. package/fesm2022/ngx-com.mjs +1 -1
  73. package/fesm2022/ngx-com.mjs.map +1 -1
  74. package/package.json +51 -8
  75. package/styles/animations.css +38 -0
  76. package/styles/candy.css +121 -0
  77. package/styles/dark.css +159 -0
  78. package/styles/forest.css +117 -0
  79. package/styles/ocean.css +117 -0
  80. package/styles/themes.css +7 -0
  81. package/styles/tokens.css +277 -0
  82. package/styles/utilities.css +16 -0
  83. package/types/ngx-com-components-alert.d.ts +14 -4
  84. package/types/ngx-com-components-avatar.d.ts +2 -0
  85. package/types/ngx-com-components-calendar.d.ts +3 -747
  86. package/types/ngx-com-components-card.d.ts +2 -2
  87. package/types/ngx-com-components-carousel.d.ts +11 -1
  88. package/types/ngx-com-components-code-block.d.ts +4 -4
  89. package/types/ngx-com-components-collapsible.d.ts +10 -2
  90. package/types/ngx-com-components-confirm.d.ts +2 -2
  91. package/types/ngx-com-components-datepicker.d.ts +623 -0
  92. package/types/ngx-com-components-dialog.d.ts +5 -2
  93. package/types/ngx-com-components-dropdown.d.ts +22 -4
  94. package/types/ngx-com-components-empty-state.d.ts +2 -0
  95. package/types/ngx-com-components-form-field.d.ts +4 -1
  96. package/types/ngx-com-components-icon-lucide.d.ts +32 -0
  97. package/types/ngx-com-components-icon.d.ts +49 -35
  98. package/types/ngx-com-components-item.d.ts +12 -2
  99. package/types/ngx-com-components-menu.d.ts +38 -38
  100. package/types/ngx-com-components-native-control.d.ts +99 -0
  101. package/types/ngx-com-components-paginator.d.ts +2 -0
  102. package/types/ngx-com-components-popover.d.ts +19 -12
  103. package/types/ngx-com-components-segmented-control.d.ts +3 -1
  104. package/types/ngx-com-components-sort.d.ts +13 -10
  105. package/types/ngx-com-components-switch.d.ts +7 -2
  106. package/types/ngx-com-components-table.d.ts +16 -2
  107. package/types/ngx-com-components-tabs.d.ts +46 -34
  108. package/types/ngx-com-components-timepicker.d.ts +273 -0
  109. package/types/ngx-com-components-toast.d.ts +4 -2
  110. package/types/ngx-com-components-tooltip.d.ts +1 -1
  111. package/types/ngx-com-components.d.ts +6 -7
  112. package/types/ngx-com-tokens.d.ts +5 -3
  113. package/types/ngx-com-utils.d.ts +11 -1
  114. package/types/ngx-com.d.ts +1 -1
@@ -1,8 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, InputSignal, TemplateRef, OutputEmitterRef, Signal, WritableSignal, Provider, OnDestroy } from '@angular/core';
2
+ import { InjectionToken, InputSignal, TemplateRef, OutputEmitterRef, Signal, WritableSignal, Provider } from '@angular/core';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { ControlValueAccessor, Validator, ValidationErrors } from '@angular/forms';
5
- import { IconSize } from 'ngx-com/components/icon';
6
4
 
7
5
  /**
8
6
  * Calendar shared types and interfaces
@@ -1200,747 +1198,5 @@ declare function provideMultiSelectionStrategy(): Provider;
1200
1198
  */
1201
1199
  declare function provideWeekSelectionStrategy(): Provider;
1202
1200
 
1203
- /**
1204
- * Types and interfaces for DatePicker and DateRangePicker components.
1205
- */
1206
- /** Date format preset names */
1207
- type DateFormatPreset = 'short' | 'medium' | 'long' | 'full' | 'time' | 'timeWithSeconds' | 'dateTimeShort' | 'dateTimeMedium' | 'dateTimeLong';
1208
- /** Panel width configuration */
1209
- type DatepickerPanelWidth = 'auto' | 'trigger' | `${number}px` | `${number}rem`;
1210
- /** Size variants for datepicker components */
1211
- type DatepickerSize = 'sm' | 'default' | 'lg';
1212
- /** Visual variant for datepicker trigger */
1213
- type DatepickerVariant = 'default' | 'outline' | 'ghost' | 'filled';
1214
- /** Validation state for datepicker */
1215
- type DatepickerState = 'default' | 'error' | 'success';
1216
- /** Configuration for datepicker footer actions */
1217
- interface DatepickerFooterConfig {
1218
- /** Show today button */
1219
- showToday?: boolean;
1220
- /** Show clear button */
1221
- showClear?: boolean;
1222
- /** Custom today button label */
1223
- todayLabel?: string;
1224
- /** Custom clear button label */
1225
- clearLabel?: string;
1226
- }
1227
- /** Value type for DateRangePicker */
1228
- interface DateRangeValue<D> {
1229
- /** Start date of the range */
1230
- start: D | null;
1231
- /** End date of the range */
1232
- end: D | null;
1233
- }
1234
- /** Creates a DateRangeValue */
1235
- declare function createDateRangeValue<D>(start?: D | null, end?: D | null): DateRangeValue<D>;
1236
- declare function generateDatepickerId(): string;
1237
-
1238
- /**
1239
- * CVA variants for the datepicker trigger input.
1240
- * Uses semantic theme tokens for consistent cross-theme styling.
1241
- *
1242
- * @tokens `--color-input-background`, `--color-input-foreground`, `--color-input-border`,
1243
- * `--color-input-placeholder`, `--color-ring`, `--color-muted`, `--color-muted-hover`,
1244
- * `--color-warn`, `--color-success`, `--color-primary`, `--color-border`,
1245
- * `--color-disabled`, `--color-disabled-foreground`, `--radius-input`
1246
- */
1247
- declare const datepickerTriggerVariants: (props?: {
1248
- variant?: DatepickerVariant;
1249
- size?: DatepickerSize;
1250
- state?: DatepickerState;
1251
- open?: boolean;
1252
- }) => string;
1253
- type DatepickerTriggerVariants = VariantProps<typeof datepickerTriggerVariants>;
1254
- /**
1255
- * CVA variants for the disabled state of datepicker trigger.
1256
- *
1257
- * @tokens `--color-disabled`, `--color-disabled-foreground`
1258
- */
1259
- declare const datepickerDisabledVariants: () => string;
1260
- type DatepickerDisabledVariants = VariantProps<typeof datepickerDisabledVariants>;
1261
- /**
1262
- * CVA variants for the datepicker input field.
1263
- *
1264
- * @tokens `--color-input-foreground`, `--color-input-placeholder`
1265
- */
1266
- declare const datepickerInputVariants: (props?: {
1267
- size?: DatepickerSize;
1268
- }) => string;
1269
- type DatepickerInputVariants = VariantProps<typeof datepickerInputVariants>;
1270
- /**
1271
- * CVA variants for the calendar icon button.
1272
- *
1273
- * @tokens `--color-ring`, `--color-muted-foreground`, `--radius-interactive-sm`
1274
- */
1275
- declare const datepickerIconVariants: (props?: {
1276
- size?: DatepickerSize;
1277
- }) => string;
1278
- type DatepickerIconVariants = VariantProps<typeof datepickerIconVariants>;
1279
- /**
1280
- * CVA variants for the clear button.
1281
- *
1282
- * @tokens `--color-ring`, `--color-muted-foreground`, `--color-foreground`, `--radius-interactive-sm`
1283
- */
1284
- declare const datepickerClearVariants: (props?: {
1285
- size?: DatepickerSize;
1286
- }) => string;
1287
- type DatepickerClearVariants = VariantProps<typeof datepickerClearVariants>;
1288
- /**
1289
- * CVA variants for the datepicker panel (overlay).
1290
- *
1291
- * @tokens `--color-popover`, `--color-popover-foreground`, `--color-border-subtle`, `--radius-overlay`
1292
- */
1293
- declare const datepickerPanelVariants: (props?: {
1294
- size?: DatepickerSize;
1295
- }) => string;
1296
- type DatepickerPanelVariants = VariantProps<typeof datepickerPanelVariants>;
1297
- /**
1298
- * CVA variants for the footer section of the datepicker panel.
1299
- *
1300
- * @tokens `--color-border-subtle`
1301
- */
1302
- declare const datepickerFooterVariants: (props?: {
1303
- size?: DatepickerSize;
1304
- }) => string;
1305
- type DatepickerFooterVariants = VariantProps<typeof datepickerFooterVariants>;
1306
- /**
1307
- * CVA variants for the footer buttons.
1308
- *
1309
- * @tokens `--color-primary`, `--color-primary-foreground`, `--color-primary-hover`,
1310
- * `--color-muted`, `--color-muted-foreground`, `--color-muted-hover`, `--radius-control-sm`
1311
- */
1312
- declare const datepickerFooterButtonVariants: (props?: {
1313
- size?: DatepickerSize;
1314
- variant?: 'primary' | 'secondary';
1315
- }) => string;
1316
- type DatepickerFooterButtonVariants = VariantProps<typeof datepickerFooterButtonVariants>;
1317
- /**
1318
- * CVA variants for the range separator.
1319
- *
1320
- * @tokens `--color-muted-foreground`
1321
- */
1322
- declare const datepickerRangeSeparatorVariants: (props?: {
1323
- size?: DatepickerSize;
1324
- }) => string;
1325
- type DatepickerRangeSeparatorVariants = VariantProps<typeof datepickerRangeSeparatorVariants>;
1326
-
1327
- /**
1328
- * Types and interfaces for the TimePicker component.
1329
- */
1330
- /** Value type for the standalone time picker */
1331
- interface ComTimeValue {
1332
- /** Hours (0-23, always stored in 24h format internally) */
1333
- hours: number;
1334
- /** Minutes (0-59) */
1335
- minutes: number;
1336
- /** Seconds (0-59) */
1337
- seconds: number;
1338
- }
1339
- /** Creates a ComTimeValue */
1340
- declare function createTimeValue(hours?: number, minutes?: number, seconds?: number): ComTimeValue;
1341
- /**
1342
- * Compares two ComTimeValue objects.
1343
- * @returns negative if a < b, 0 if equal, positive if a > b
1344
- */
1345
- declare function compareTime(a: ComTimeValue, b: ComTimeValue): number;
1346
- declare function generateTimePickerId(): string;
1347
- /** Size variants for time picker */
1348
- type TimePickerSize = 'sm' | 'default' | 'lg';
1349
- /** Visual variant */
1350
- type TimePickerVariant = 'standalone' | 'embedded';
1351
- /** Validation state */
1352
- type TimePickerState = 'default' | 'error' | 'success';
1353
- /** Period for 12-hour format */
1354
- type TimePeriod = 'AM' | 'PM';
1355
- /** Segment type */
1356
- type TimeSegment = 'hours' | 'minutes' | 'seconds';
1357
-
1358
- /**
1359
- * Single date picker component with calendar popup.
1360
- * Implements ControlValueAccessor for Reactive Forms and Template-driven Forms.
1361
- *
1362
- * @tokens `--color-input-background`, `--color-input-foreground`, `--color-input-border`,
1363
- * `--color-input-placeholder`, `--color-ring`, `--color-muted`, `--color-muted-foreground`,
1364
- * `--color-popover`, `--color-popover-foreground`, `--color-border-subtle`,
1365
- * `--color-primary`, `--color-primary-foreground`, `--color-primary-hover`,
1366
- * `--color-warn`, `--color-success`, `--color-disabled`, `--color-disabled-foreground`
1367
- *
1368
- * @example
1369
- * ```html
1370
- * <com-datepicker
1371
- * formControlName="birthDate"
1372
- * placeholder="Select date..."
1373
- * [min]="minDate"
1374
- * [max]="maxDate"
1375
- * [showTodayButton]="true"
1376
- * [showClearButton]="true"
1377
- * />
1378
- * ```
1379
- */
1380
- declare class ComDatepicker<D> implements ControlValueAccessor, Validator, OnDestroy {
1381
- private readonly elementRef;
1382
- private readonly destroyRef;
1383
- private readonly overlay;
1384
- private readonly viewContainerRef;
1385
- private readonly document;
1386
- private readonly dateAdapter;
1387
- /** Optional NgControl for form integration. */
1388
- private readonly ngControl;
1389
- /** Reference to the trigger element. */
1390
- private readonly triggerRef;
1391
- /** Reference to the input element. */
1392
- private readonly inputRef;
1393
- /** Reference to the panel template. */
1394
- private readonly panelTemplateRef;
1395
- /** Overlay reference. */
1396
- private overlayRef;
1397
- /** Unique ID for the datepicker. */
1398
- private readonly datepickerId;
1399
- /** Current value. */
1400
- readonly value: InputSignal<D | null>;
1401
- /** Minimum selectable date. */
1402
- readonly min: InputSignal<D | null>;
1403
- /** Maximum selectable date. */
1404
- readonly max: InputSignal<D | null>;
1405
- /** Custom filter function to disable specific dates. */
1406
- readonly dateFilter: InputSignal<DateFilterFn<D> | null>;
1407
- /** Date the calendar opens to (defaults to selected or today). */
1408
- readonly startAt: InputSignal<D | null>;
1409
- /** Initial calendar view. */
1410
- readonly startView: InputSignal<CalendarView>;
1411
- /** First day of week override (0=Sun, 1=Mon, ..., 6=Sat). */
1412
- readonly firstDayOfWeek: InputSignal<number | null>;
1413
- /** Placeholder text. */
1414
- readonly placeholder: InputSignal<string>;
1415
- /** Whether the datepicker is disabled. */
1416
- readonly disabled: InputSignal<boolean>;
1417
- /** Whether the datepicker is required. */
1418
- readonly required: InputSignal<boolean>;
1419
- /** Display format for the date. */
1420
- readonly dateFormat: InputSignal<DateFormatPreset>;
1421
- /** Show a clear button in the trigger. */
1422
- readonly showClearButton: InputSignal<boolean>;
1423
- /** Show a today button in the footer. */
1424
- readonly showTodayButton: InputSignal<boolean>;
1425
- /** Show a clear button in the footer. */
1426
- readonly showFooterClearButton: InputSignal<boolean>;
1427
- /** Don't auto-close on selection. */
1428
- readonly keepOpen: InputSignal<boolean>;
1429
- /** Allow manual text input. */
1430
- readonly allowManualInput: InputSignal<boolean>;
1431
- /** Additional CSS classes for the panel. */
1432
- readonly panelClass: InputSignal<string>;
1433
- /** Panel width strategy. */
1434
- readonly panelWidth: InputSignal<DatepickerPanelWidth>;
1435
- /** CVA variant for trigger styling. */
1436
- readonly variant: InputSignal<DatepickerVariant>;
1437
- /** Size variant. */
1438
- readonly size: InputSignal<DatepickerSize>;
1439
- /** Validation state. */
1440
- readonly state: InputSignal<DatepickerState>;
1441
- /** Additional CSS classes for the trigger. */
1442
- readonly userClass: InputSignal<string>;
1443
- /** Accessible label for the input. */
1444
- readonly ariaLabel: InputSignal<string | null>;
1445
- /** ID of element describing the input. */
1446
- readonly ariaDescribedBy: InputSignal<string | null>;
1447
- /** Whether to show the time picker below the calendar. */
1448
- readonly showTimePicker: InputSignal<boolean>;
1449
- /** 12h vs 24h format for the time picker. `null` = auto-detect. */
1450
- readonly use12HourFormat: InputSignal<boolean | null>;
1451
- /** Whether the time picker shows seconds. */
1452
- readonly showSeconds: InputSignal<boolean>;
1453
- /** Step interval for minutes in the time picker. */
1454
- readonly minuteStep: InputSignal<number>;
1455
- /** Emitted when a date is selected. */
1456
- readonly dateChange: OutputEmitterRef<D | null>;
1457
- /** Emitted when the panel opens. */
1458
- readonly opened: OutputEmitterRef<void>;
1459
- /** Emitted when the panel closes. */
1460
- readonly closed: OutputEmitterRef<void>;
1461
- /** Whether the panel is open. */
1462
- readonly isOpen: WritableSignal<boolean>;
1463
- /** Internal value state (managed by CVA or input). */
1464
- readonly internalValue: WritableSignal<D | null>;
1465
- /** Calendar active date for navigation. */
1466
- readonly calendarActiveDate: WritableSignal<D>;
1467
- /** Live announcements for screen readers. */
1468
- readonly liveAnnouncement: WritableSignal<string>;
1469
- /** Input element ID. */
1470
- readonly inputId: Signal<string>;
1471
- /** Panel element ID. */
1472
- readonly panelId: Signal<string>;
1473
- /** Whether the datepicker has a value. */
1474
- readonly hasValue: Signal<boolean>;
1475
- /** Icon size based on datepicker size. */
1476
- readonly iconSize: Signal<IconSize>;
1477
- /** Formatted display value. */
1478
- readonly displayValue: Signal<string>;
1479
- /** Computed trigger classes. */
1480
- readonly triggerClasses: Signal<string>;
1481
- /** Computed input classes. */
1482
- readonly inputClasses: Signal<string>;
1483
- /** Computed icon classes. */
1484
- readonly iconClasses: Signal<string>;
1485
- /** Computed clear button classes. */
1486
- readonly clearClasses: Signal<string>;
1487
- /** Computed panel classes. */
1488
- readonly panelClasses: Signal<string>;
1489
- /** Computed footer classes. */
1490
- readonly footerClasses: Signal<string>;
1491
- /** Computed today button classes. */
1492
- readonly todayButtonClasses: Signal<string>;
1493
- /** Computed clear button classes (footer). */
1494
- readonly clearButtonClasses: Signal<string>;
1495
- /** Time section divider classes. */
1496
- readonly timeSectionClasses: Signal<string>;
1497
- /** Time value derived from the current date value. */
1498
- readonly timeValue: Signal<ComTimeValue | null>;
1499
- /** Effective display format — switches to dateTime when time picker is shown. */
1500
- readonly effectiveDateFormat: Signal<DateFormatPreset>;
1501
- /** Whether the panel should stay open (keepOpen or time picker shown). */
1502
- readonly effectiveKeepOpen: Signal<boolean>;
1503
- private onChange;
1504
- private onTouched;
1505
- private onValidatorChange;
1506
- constructor();
1507
- ngOnDestroy(): void;
1508
- writeValue(value: D | null): void;
1509
- registerOnChange(fn: (value: D | null) => void): void;
1510
- registerOnTouched(fn: () => void): void;
1511
- setDisabledState(_isDisabled: boolean): void;
1512
- validate(): ValidationErrors | null;
1513
- registerOnValidatorChange(fn: () => void): void;
1514
- /** Opens the datepicker panel. */
1515
- open(): void;
1516
- /** Closes the datepicker panel. */
1517
- close(): void;
1518
- /** Toggles the datepicker panel. */
1519
- toggle(): void;
1520
- /** Clears the selected date. */
1521
- clear(event?: Event): void;
1522
- /** Selects today's date. */
1523
- selectToday(): void;
1524
- protected onTriggerClick(): void;
1525
- protected onTriggerKeydown(event: KeyboardEvent): void;
1526
- protected onInputKeydown(event: KeyboardEvent): void;
1527
- protected onInputChange(event: Event): void;
1528
- protected onInputBlur(): void;
1529
- protected onPanelKeydown(event: KeyboardEvent): void;
1530
- protected onDateSelected(date: D): void;
1531
- protected onTimeChange(time: ComTimeValue | null): void;
1532
- protected onActiveDateChange(date: D): void;
1533
- private createOverlay;
1534
- private destroyOverlay;
1535
- private updateValue;
1536
- private parseAndSetValue;
1537
- private isDateValid;
1538
- private announce;
1539
- static ɵfac: i0.ɵɵFactoryDeclaration<ComDatepicker<any>, never>;
1540
- static ɵcmp: i0.ɵɵComponentDeclaration<ComDatepicker<any>, "com-datepicker", ["comDatepicker"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "startView": { "alias": "startView"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; "isSignal": true; }; "showFooterClearButton": { "alias": "showFooterClearButton"; "required": false; "isSignal": true; }; "keepOpen": { "alias": "keepOpen"; "required": false; "isSignal": true; }; "allowManualInput": { "alias": "allowManualInput"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "panelWidth": { "alias": "panelWidth"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "use12HourFormat": { "alias": "use12HourFormat"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
1541
- }
1542
-
1543
- /**
1544
- * Date range picker component with calendar popup.
1545
- * Allows selecting a start and end date via a two-click interaction.
1546
- * Implements ControlValueAccessor for Reactive Forms and Template-driven Forms.
1547
- *
1548
- * @tokens `--color-input-background`, `--color-input-foreground`, `--color-input-border`,
1549
- * `--color-input-placeholder`, `--color-ring`, `--color-muted`, `--color-muted-foreground`,
1550
- * `--color-popover`, `--color-popover-foreground`, `--color-border-subtle`,
1551
- * `--color-primary`, `--color-primary-foreground`, `--color-primary-hover`,
1552
- * `--color-warn`, `--color-success`, `--color-disabled`, `--color-disabled-foreground`
1553
- *
1554
- * @example
1555
- * ```html
1556
- * <com-date-range-picker
1557
- * formControlName="dateRange"
1558
- * startPlaceholder="Start date"
1559
- * endPlaceholder="End date"
1560
- * [min]="minDate"
1561
- * [max]="maxDate"
1562
- * [showTodayButton]="true"
1563
- * />
1564
- * ```
1565
- */
1566
- declare class ComDateRangePicker<D> implements ControlValueAccessor, Validator, OnDestroy {
1567
- private readonly elementRef;
1568
- private readonly destroyRef;
1569
- private readonly overlay;
1570
- private readonly viewContainerRef;
1571
- private readonly document;
1572
- private readonly dateAdapter;
1573
- /** Optional NgControl for form integration. */
1574
- private readonly ngControl;
1575
- /** Reference to the trigger element. */
1576
- private readonly triggerRef;
1577
- /** Reference to the start input element. */
1578
- private readonly startInputRef;
1579
- /** Reference to the end input element. */
1580
- private readonly endInputRef;
1581
- /** Reference to the panel template. */
1582
- private readonly panelTemplateRef;
1583
- /** Overlay reference. */
1584
- private overlayRef;
1585
- /** Unique ID for the datepicker. */
1586
- private readonly datepickerId;
1587
- /** Current value. */
1588
- readonly value: InputSignal<DateRangeValue<D> | null>;
1589
- /** Minimum selectable date. */
1590
- readonly min: InputSignal<D | null>;
1591
- /** Maximum selectable date. */
1592
- readonly max: InputSignal<D | null>;
1593
- /** Custom filter function to disable specific dates. */
1594
- readonly dateFilter: InputSignal<DateFilterFn<D> | null>;
1595
- /** Date the calendar opens to (defaults to start date or today). */
1596
- readonly startAt: InputSignal<D | null>;
1597
- /** Initial calendar view. */
1598
- readonly startView: InputSignal<CalendarView>;
1599
- /** First day of week override (0=Sun, 1=Mon, ..., 6=Sat). */
1600
- readonly firstDayOfWeek: InputSignal<number | null>;
1601
- /** Placeholder text for start date. */
1602
- readonly startPlaceholder: InputSignal<string>;
1603
- /** Placeholder text for end date. */
1604
- readonly endPlaceholder: InputSignal<string>;
1605
- /** Whether the datepicker is disabled. */
1606
- readonly disabled: InputSignal<boolean>;
1607
- /** Whether the datepicker is required. */
1608
- readonly required: InputSignal<boolean>;
1609
- /** Display format for the date. */
1610
- readonly dateFormat: InputSignal<DateFormatPreset>;
1611
- /** Show a clear button in the trigger. */
1612
- readonly showClearButton: InputSignal<boolean>;
1613
- /** Show a today button in the footer. */
1614
- readonly showTodayButton: InputSignal<boolean>;
1615
- /** Show a clear button in the footer. */
1616
- readonly showFooterClearButton: InputSignal<boolean>;
1617
- /** Don't auto-close on complete range selection. */
1618
- readonly keepOpen: InputSignal<boolean>;
1619
- /** Allow manual text input. */
1620
- readonly allowManualInput: InputSignal<boolean>;
1621
- /** Additional CSS classes for the panel. */
1622
- readonly panelClass: InputSignal<string>;
1623
- /** Panel width strategy. */
1624
- readonly panelWidth: InputSignal<DatepickerPanelWidth>;
1625
- /** CVA variant for trigger styling. */
1626
- readonly variant: InputSignal<DatepickerVariant>;
1627
- /** Size variant. */
1628
- readonly size: InputSignal<DatepickerSize>;
1629
- /** Validation state. */
1630
- readonly state: InputSignal<DatepickerState>;
1631
- /** Additional CSS classes for the trigger. */
1632
- readonly userClass: InputSignal<string>;
1633
- /** Accessible label for the start input. */
1634
- readonly startAriaLabel: InputSignal<string | null>;
1635
- /** Accessible label for the end input. */
1636
- readonly endAriaLabel: InputSignal<string | null>;
1637
- /** Whether to show time pickers below the calendar. */
1638
- readonly showTimePicker: InputSignal<boolean>;
1639
- /** 12h vs 24h format for the time pickers. `null` = auto-detect. */
1640
- readonly use12HourFormat: InputSignal<boolean | null>;
1641
- /** Whether the time pickers show seconds. */
1642
- readonly showSeconds: InputSignal<boolean>;
1643
- /** Step interval for minutes in the time pickers. */
1644
- readonly minuteStep: InputSignal<number>;
1645
- /** Emitted when a complete range is selected. */
1646
- readonly rangeChange: OutputEmitterRef<DateRangeValue<D> | null>;
1647
- /** Emitted when the panel opens. */
1648
- readonly opened: OutputEmitterRef<void>;
1649
- /** Emitted when the panel closes. */
1650
- readonly closed: OutputEmitterRef<void>;
1651
- /** Whether the panel is open. */
1652
- readonly isOpen: WritableSignal<boolean>;
1653
- /** Which input is currently focused. */
1654
- readonly activeInput: WritableSignal<'start' | 'end' | null>;
1655
- /** Internal value state (managed by CVA or input). */
1656
- readonly internalValue: WritableSignal<DateRangeValue<D> | null>;
1657
- /** Calendar active date for navigation. */
1658
- readonly calendarActiveDate: WritableSignal<D>;
1659
- /** Live announcements for screen readers. */
1660
- readonly liveAnnouncement: WritableSignal<string>;
1661
- /** Start input element ID. */
1662
- readonly startInputId: Signal<string>;
1663
- /** End input element ID. */
1664
- readonly endInputId: Signal<string>;
1665
- /** Panel element ID. */
1666
- readonly panelId: Signal<string>;
1667
- /** Whether the datepicker has a value. */
1668
- readonly hasValue: Signal<boolean>;
1669
- /** Icon size based on datepicker size. */
1670
- readonly iconSize: Signal<IconSize>;
1671
- /** Calendar selection (converts DateRangeValue to DateRange for calendar). */
1672
- readonly calendarSelection: Signal<DateRange<D> | null>;
1673
- /** Formatted start display value. */
1674
- readonly startDisplayValue: Signal<string>;
1675
- /** Formatted end display value. */
1676
- readonly endDisplayValue: Signal<string>;
1677
- /** Computed trigger classes. */
1678
- readonly triggerClasses: Signal<string>;
1679
- /** Computed input classes. */
1680
- readonly inputClasses: Signal<string>;
1681
- /** Computed separator classes. */
1682
- readonly separatorClasses: Signal<string>;
1683
- /** Computed icon classes. */
1684
- readonly iconClasses: Signal<string>;
1685
- /** Computed clear button classes. */
1686
- readonly clearClasses: Signal<string>;
1687
- /** Computed panel classes. */
1688
- readonly panelClasses: Signal<string>;
1689
- /** Computed footer classes. */
1690
- readonly footerClasses: Signal<string>;
1691
- /** Computed today button classes. */
1692
- readonly todayButtonClasses: Signal<string>;
1693
- /** Computed clear button classes (footer). */
1694
- readonly clearButtonClasses: Signal<string>;
1695
- /** Time section divider classes. */
1696
- readonly timeSectionClasses: Signal<string>;
1697
- /** Time label classes. */
1698
- readonly timeLabelClasses: Signal<string>;
1699
- /** Start time value derived from the start date. */
1700
- readonly startTimeValue: Signal<ComTimeValue | null>;
1701
- /** End time value derived from the end date. */
1702
- readonly endTimeValue: Signal<ComTimeValue | null>;
1703
- /** Effective display format — switches to dateTime when time picker is shown. */
1704
- readonly effectiveDateFormat: Signal<DateFormatPreset>;
1705
- /** Whether the panel should stay open (keepOpen or time picker shown). */
1706
- readonly effectiveKeepOpen: Signal<boolean>;
1707
- private onChange;
1708
- private onTouched;
1709
- private onValidatorChange;
1710
- constructor();
1711
- ngOnDestroy(): void;
1712
- writeValue(value: DateRangeValue<D> | null): void;
1713
- registerOnChange(fn: (value: DateRangeValue<D> | null) => void): void;
1714
- registerOnTouched(fn: () => void): void;
1715
- setDisabledState(_isDisabled: boolean): void;
1716
- validate(): ValidationErrors | null;
1717
- registerOnValidatorChange(fn: () => void): void;
1718
- /** Opens the datepicker panel. */
1719
- open(): void;
1720
- /** Closes the datepicker panel. */
1721
- close(): void;
1722
- /** Toggles the datepicker panel. */
1723
- toggle(): void;
1724
- /** Clears the selected date range. */
1725
- clear(event?: Event): void;
1726
- /** Selects today's date as the start date. */
1727
- selectToday(): void;
1728
- protected onTriggerClick(): void;
1729
- protected onTriggerKeydown(event: KeyboardEvent): void;
1730
- protected onStartInputFocus(): void;
1731
- protected onEndInputFocus(): void;
1732
- protected onInputKeydown(event: KeyboardEvent, inputType: 'start' | 'end'): void;
1733
- protected onStartInputChange(_event: Event): void;
1734
- protected onEndInputChange(_event: Event): void;
1735
- protected onStartInputBlur(): void;
1736
- protected onEndInputBlur(): void;
1737
- protected onPanelKeydown(event: KeyboardEvent): void;
1738
- protected onCalendarSelectionChange(selection: unknown): void;
1739
- protected onActiveDateChange(date: D): void;
1740
- protected onStartTimeChange(time: ComTimeValue | null): void;
1741
- protected onEndTimeChange(time: ComTimeValue | null): void;
1742
- private createOverlay;
1743
- private destroyOverlay;
1744
- private updateValue;
1745
- private parseAndSetStart;
1746
- private parseAndSetEnd;
1747
- private isDateValid;
1748
- private formatDate;
1749
- private announce;
1750
- static ɵfac: i0.ɵɵFactoryDeclaration<ComDateRangePicker<any>, never>;
1751
- static ɵcmp: i0.ɵɵComponentDeclaration<ComDateRangePicker<any>, "com-date-range-picker", ["comDateRangePicker"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "startView": { "alias": "startView"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; "isSignal": true; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; "isSignal": true; }; "showFooterClearButton": { "alias": "showFooterClearButton"; "required": false; "isSignal": true; }; "keepOpen": { "alias": "keepOpen"; "required": false; "isSignal": true; }; "allowManualInput": { "alias": "allowManualInput"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "panelWidth": { "alias": "panelWidth"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "startAriaLabel": { "alias": "startAriaLabel"; "required": false; "isSignal": true; }; "endAriaLabel": { "alias": "endAriaLabel"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "use12HourFormat": { "alias": "use12HourFormat"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; }, { "rangeChange": "rangeChange"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
1752
- }
1753
-
1754
- /**
1755
- * CVA variants for the time picker container.
1756
- *
1757
- * @tokens `--color-input-background`, `--color-input-foreground`, `--color-input-border`,
1758
- * `--color-ring`, `--color-warn`, `--color-success`, `--radius-input`
1759
- */
1760
- declare const timepickerContainerVariants: (props?: {
1761
- variant?: TimePickerVariant;
1762
- size?: TimePickerSize;
1763
- state?: TimePickerState;
1764
- }) => string;
1765
- type TimepickerContainerVariants = VariantProps<typeof timepickerContainerVariants>;
1766
- /**
1767
- * CVA variants for the disabled state of time picker.
1768
- *
1769
- * @tokens `--color-disabled`, `--color-disabled-foreground`
1770
- */
1771
- declare const timepickerDisabledVariants: () => string;
1772
- type TimepickerDisabledVariants = VariantProps<typeof timepickerDisabledVariants>;
1773
- /**
1774
- * CVA variants for each time segment input.
1775
- *
1776
- * @tokens `--color-primary-subtle`, `--color-primary-subtle-foreground`, `--radius-interactive-sm`
1777
- */
1778
- declare const timepickerSegmentVariants: (props?: {
1779
- size?: TimePickerSize;
1780
- }) => string;
1781
- type TimepickerSegmentVariants = VariantProps<typeof timepickerSegmentVariants>;
1782
- /**
1783
- * CVA variants for the colon separator.
1784
- *
1785
- * @tokens `--color-muted-foreground`
1786
- */
1787
- declare const timepickerSeparatorVariants: (props?: {
1788
- size?: TimePickerSize;
1789
- }) => string;
1790
- type TimepickerSeparatorVariants = VariantProps<typeof timepickerSeparatorVariants>;
1791
- /**
1792
- * CVA variants for the AM/PM toggle button.
1793
- *
1794
- * @tokens `--color-muted`, `--color-muted-foreground`, `--color-muted-hover`, `--color-ring`,
1795
- * `--radius-control-sm`
1796
- */
1797
- declare const timepickerPeriodVariants: (props?: {
1798
- size?: TimePickerSize;
1799
- }) => string;
1800
- type TimepickerPeriodVariants = VariantProps<typeof timepickerPeriodVariants>;
1801
- /**
1802
- * CVA variants for the time section divider in datepicker panel.
1803
- *
1804
- * @tokens `--color-border-subtle`
1805
- */
1806
- declare const timepickerSectionVariants: (props?: {
1807
- size?: TimePickerSize;
1808
- }) => string;
1809
- type TimepickerSectionVariants = VariantProps<typeof timepickerSectionVariants>;
1810
- /**
1811
- * CVA variants for time labels in date range picker.
1812
- *
1813
- * @tokens `--color-muted-foreground`
1814
- */
1815
- declare const timepickerLabelVariants: (props?: {
1816
- size?: TimePickerSize;
1817
- }) => string;
1818
- type TimepickerLabelVariants = VariantProps<typeof timepickerLabelVariants>;
1819
-
1820
- /**
1821
- * Time picker component with segmented numeric input fields.
1822
- * Supports standalone usage with ControlValueAccessor and embedded usage
1823
- * within datepicker/date-range-picker panels.
1824
- *
1825
- * Visual layout: `[HH] : [MM] : [SS] [AM|PM]`
1826
- *
1827
- * @tokens `--color-input-background`, `--color-input-foreground`, `--color-input-border`,
1828
- * `--color-ring`, `--color-primary-subtle`, `--color-primary-subtle-foreground`,
1829
- * `--color-muted`, `--color-muted-foreground`, `--color-muted-hover`,
1830
- * `--color-disabled`, `--color-disabled-foreground`,
1831
- * `--color-warn`, `--color-success`, `--color-border`
1832
- *
1833
- * @example
1834
- * ```html
1835
- * <!-- Standalone with reactive forms -->
1836
- * <com-time-picker formControlName="startTime" />
1837
- *
1838
- * <!-- 12-hour format with seconds -->
1839
- * <com-time-picker formControlName="alarm" [use12HourFormat]="true" [showSeconds]="true" />
1840
- *
1841
- * <!-- 15-minute steps -->
1842
- * <com-time-picker formControlName="meeting" [minuteStep]="15" />
1843
- *
1844
- * <!-- Embedded inside datepicker panel -->
1845
- * <com-time-picker variant="embedded" [value]="time" (timeChange)="onTime($event)" />
1846
- * ```
1847
- */
1848
- declare class ComTimePicker implements ControlValueAccessor, Validator {
1849
- private readonly localeId;
1850
- private readonly ngControl;
1851
- private readonly timepickerId;
1852
- private readonly hoursInputRef;
1853
- private readonly minutesInputRef;
1854
- private readonly secondsInputRef;
1855
- private readonly periodButtonRef;
1856
- /** Current time value. */
1857
- readonly value: InputSignal<ComTimeValue | null>;
1858
- /** Whether the time picker is disabled. */
1859
- readonly disabled: InputSignal<boolean>;
1860
- /** Whether the time picker is required. */
1861
- readonly required: InputSignal<boolean>;
1862
- /** Whether to show the seconds segment. */
1863
- readonly showSeconds: InputSignal<boolean>;
1864
- /** 12h vs 24h format. `null` = auto-detect from locale. */
1865
- readonly use12HourFormat: InputSignal<boolean | null>;
1866
- /** Step interval for minutes. */
1867
- readonly minuteStep: InputSignal<number>;
1868
- /** Step interval for seconds. */
1869
- readonly secondStep: InputSignal<number>;
1870
- /** Minimum selectable time. */
1871
- readonly minTime: InputSignal<ComTimeValue | null>;
1872
- /** Maximum selectable time. */
1873
- readonly maxTime: InputSignal<ComTimeValue | null>;
1874
- /** Visual variant. */
1875
- readonly variant: InputSignal<TimePickerVariant>;
1876
- /** Size variant. */
1877
- readonly size: InputSignal<TimePickerSize>;
1878
- /** Validation state. */
1879
- readonly state: InputSignal<TimePickerState>;
1880
- /** Accessible label for the group. */
1881
- readonly ariaLabel: InputSignal<string | null>;
1882
- /** Additional CSS classes. */
1883
- readonly userClass: InputSignal<string>;
1884
- /** Placeholder text for empty segments. */
1885
- readonly placeholder: InputSignal<string>;
1886
- /** Emitted when time value changes. */
1887
- readonly timeChange: OutputEmitterRef<ComTimeValue | null>;
1888
- /** Internal value state. */
1889
- readonly internalValue: WritableSignal<ComTimeValue | null>;
1890
- /** Which segment is currently focused. */
1891
- readonly activeSegment: WritableSignal<TimeSegment | 'period' | null>;
1892
- /** Pending typed digits for auto-advance. */
1893
- readonly pendingDigits: WritableSignal<string>;
1894
- /** Live announcements for screen readers. */
1895
- readonly liveAnnouncement: WritableSignal<string>;
1896
- /** Whether to use 12-hour format. */
1897
- readonly is12Hour: Signal<boolean>;
1898
- /** Current period (AM/PM). */
1899
- readonly period: Signal<TimePeriod>;
1900
- /** Display hours (converted from 24h to 12h when needed). */
1901
- readonly displayHours: Signal<number | null>;
1902
- /** Formatted hours string. */
1903
- readonly formattedHours: Signal<string>;
1904
- /** Formatted minutes string. */
1905
- readonly formattedMinutes: Signal<string>;
1906
- /** Formatted seconds string. */
1907
- readonly formattedSeconds: Signal<string>;
1908
- /** Container classes. */
1909
- readonly containerClasses: Signal<string>;
1910
- /** Segment input classes. */
1911
- readonly segmentClasses: Signal<string>;
1912
- /** Separator classes. */
1913
- readonly separatorClasses: Signal<string>;
1914
- /** Period button classes. */
1915
- readonly periodClasses: Signal<string>;
1916
- private onChange;
1917
- private onTouched;
1918
- private onValidatorChange;
1919
- constructor();
1920
- writeValue(value: ComTimeValue | null): void;
1921
- registerOnChange(fn: (value: ComTimeValue | null) => void): void;
1922
- registerOnTouched(fn: () => void): void;
1923
- setDisabledState(_isDisabled: boolean): void;
1924
- validate(): ValidationErrors | null;
1925
- registerOnValidatorChange(fn: () => void): void;
1926
- protected onSegmentFocus(segment: TimeSegment): void;
1927
- protected onSegmentBlur(segment: TimeSegment): void;
1928
- protected onSegmentInput(event: Event, segment: TimeSegment): void;
1929
- protected onSegmentKeydown(event: KeyboardEvent, segment: TimeSegment): void;
1930
- protected onPeriodKeydown(event: KeyboardEvent): void;
1931
- protected togglePeriod(): void;
1932
- private setPeriod;
1933
- private incrementSegment;
1934
- private handleDigitInput;
1935
- private snapToStep;
1936
- private setSegmentToMin;
1937
- private setSegmentToMax;
1938
- private focusNextSegment;
1939
- private focusPrevSegment;
1940
- private updateValue;
1941
- static ɵfac: i0.ɵɵFactoryDeclaration<ComTimePicker, never>;
1942
- static ɵcmp: i0.ɵɵComponentDeclaration<ComTimePicker, "com-time-picker", ["comTimePicker"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "use12HourFormat": { "alias": "use12HourFormat"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "secondStep": { "alias": "secondStep"; "required": false; "isSignal": true; }; "minTime": { "alias": "minTime"; "required": false; "isSignal": true; }; "maxTime": { "alias": "maxTime"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "timeChange": "timeChange"; }, never, never, true, never>;
1943
- }
1944
-
1945
- export { CALENDAR_SELECTION_STRATEGY, CalendarSelectionStrategy, CalendarViewBase, ComCalendar, ComCalendarCell, ComCalendarHeader, ComCalendarMonthView, ComCalendarMultiYearView, ComCalendarYearView, ComDateRangePicker, ComDatepicker, ComTimePicker, DATE_ADAPTER, DAYS_PER_WEEK, DateAdapter, MONTHS_PER_ROW, MultiSelectionStrategy, NativeDateAdapter, RangeSelectionStrategy, SingleSelectionStrategy, WEEKS_PER_MONTH, WeekSelectionStrategy, YEARS_PER_PAGE, YEARS_PER_ROW, calendarCellVariants, calendarCellWrapperVariants, calendarHeaderButtonVariants, calendarHeaderVariants, calendarVariants, compareTime, createCalendarCell, createDateRange, createDateRangeValue, createGrid, createTimeValue, datepickerClearVariants, datepickerDisabledVariants, datepickerFooterButtonVariants, datepickerFooterVariants, datepickerIconVariants, datepickerInputVariants, datepickerPanelVariants, datepickerRangeSeparatorVariants, datepickerTriggerVariants, generateDatepickerId, generateTimePickerId, getMultiYearStartingYear, getWeekdayHeaders, isDateDisabled, isMonthDisabled, isYearDisabled, navigateGrid, provideMultiSelectionStrategy, provideNativeDateAdapter, provideRangeSelectionStrategy, provideSingleSelectionStrategy, provideWeekSelectionStrategy, timepickerContainerVariants, timepickerDisabledVariants, timepickerLabelVariants, timepickerPeriodVariants, timepickerSectionVariants, timepickerSegmentVariants, timepickerSeparatorVariants };
1946
- export type { CalendarCell, CalendarCellConfig, CalendarCellKeyNavEvent, CalendarCellState, CalendarCellVariants, CalendarCellWrapperVariants, CalendarHeaderButtonVariants, CalendarHeaderVariants, CalendarVariants, CalendarView, ComTimeValue, DateClassFn, DateFilterFn, DateFormatPreset, DateRange, DateRangeValue, DatepickerClearVariants, DatepickerDisabledVariants, DatepickerFooterButtonVariants, DatepickerFooterConfig, DatepickerFooterVariants, DatepickerIconVariants, DatepickerInputVariants, DatepickerPanelVariants, DatepickerPanelWidth, DatepickerRangeSeparatorVariants, DatepickerSize, DatepickerState, DatepickerTriggerVariants, DatepickerVariant, NameStyle, SelectionResult, TimePeriod, TimePickerSize, TimePickerState, TimePickerVariant, TimeSegment, TimepickerContainerVariants, TimepickerDisabledVariants, TimepickerLabelVariants, TimepickerPeriodVariants, TimepickerSectionVariants, TimepickerSegmentVariants, TimepickerSeparatorVariants, WeekdayHeader };
1201
+ export { CALENDAR_SELECTION_STRATEGY, CalendarSelectionStrategy, CalendarViewBase, ComCalendar, ComCalendarCell, ComCalendarHeader, ComCalendarMonthView, ComCalendarMultiYearView, ComCalendarYearView, DATE_ADAPTER, DAYS_PER_WEEK, DateAdapter, MONTHS_PER_ROW, MultiSelectionStrategy, NativeDateAdapter, RangeSelectionStrategy, SingleSelectionStrategy, WEEKS_PER_MONTH, WeekSelectionStrategy, YEARS_PER_PAGE, YEARS_PER_ROW, calendarCellVariants, calendarCellWrapperVariants, calendarHeaderButtonVariants, calendarHeaderVariants, calendarVariants, createCalendarCell, createDateRange, createGrid, getMultiYearStartingYear, getWeekdayHeaders, isDateDisabled, isMonthDisabled, isYearDisabled, navigateGrid, provideMultiSelectionStrategy, provideNativeDateAdapter, provideRangeSelectionStrategy, provideSingleSelectionStrategy, provideWeekSelectionStrategy };
1202
+ export type { CalendarCell, CalendarCellConfig, CalendarCellKeyNavEvent, CalendarCellState, CalendarCellVariants, CalendarCellWrapperVariants, CalendarHeaderButtonVariants, CalendarHeaderVariants, CalendarVariants, CalendarView, DateClassFn, DateFilterFn, DateRange, NameStyle, SelectionResult, WeekdayHeader };