osl-base-extended 2.0.7 → 2.0.9

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": "osl-base-extended",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0"
@@ -469,7 +469,8 @@ declare class OslFileUpload {
469
469
  static ɵcmp: i0.ɵɵComponentDeclaration<OslFileUpload, "osl-file-upload", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "model"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; }, { "modelChange": "modelChange"; "changeEv": "changeEv"; }, never, never, false, never>;
470
470
  }
471
471
 
472
- declare class OslDatetimepicker {
472
+ declare class OslDatetimepicker implements AfterViewInit {
473
+ private dtNativeInput;
473
474
  label: string;
474
475
  required: boolean;
475
476
  disabled: boolean;
@@ -480,18 +481,24 @@ declare class OslDatetimepicker {
480
481
  maxDate: Date | null;
481
482
  set minDatetime(val: string);
482
483
  set maxDatetime(val: string);
483
- /** Output format for the emitted string value. Uses date.util tokens: YYYY, MM, DD, HH, mm, ss */
484
+ /** Emitted string format. Tokens: YYYY MM DD HH mm ss ddd dddd etc. Default: 'YYYY-MM-DDTHH:mm' */
484
485
  format: string;
486
+ /** Display format shown inside the input field. Default: 'ddd DD/MM/YYYY HH:mm' → Sun 18/01/2026 19:18 */
487
+ set displayFormatInput(val: string);
488
+ private _displayFormat;
485
489
  showSeconds: boolean;
486
490
  enableMeridian: boolean;
487
491
  skeletonLoading: boolean;
488
492
  skeletonTheme: 'light' | 'dark';
489
493
  modelChange: EventEmitter<string>;
490
494
  changeEv: EventEmitter<string>;
495
+ ngAfterViewInit(): void;
491
496
  onDateChange(date: Date | null): void;
497
+ private _updateDisplay;
498
+ private _scheduleDisplayUpdate;
492
499
  private _parseToDate;
493
500
  static ɵfac: i0.ɵɵFactoryDeclaration<OslDatetimepicker, never>;
494
- static ɵcmp: i0.ɵɵComponentDeclaration<OslDatetimepicker, "osl-datetimepicker", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "model"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minDatetime": { "alias": "minDatetime"; "required": false; }; "maxDatetime": { "alias": "maxDatetime"; "required": false; }; "format": { "alias": "format"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "enableMeridian": { "alias": "enableMeridian"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; }, { "modelChange": "modelChange"; "changeEv": "changeEv"; }, never, never, false, never>;
501
+ static ɵcmp: i0.ɵɵComponentDeclaration<OslDatetimepicker, "osl-datetimepicker", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "model"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minDatetime": { "alias": "minDatetime"; "required": false; }; "maxDatetime": { "alias": "maxDatetime"; "required": false; }; "format": { "alias": "format"; "required": false; }; "displayFormatInput": { "alias": "displayFormat"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "enableMeridian": { "alias": "enableMeridian"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; }, { "modelChange": "modelChange"; "changeEv": "changeEv"; }, never, never, false, never>;
495
502
  }
496
503
 
497
504
  declare class OslCheckbox implements OnChanges {
@@ -540,7 +547,7 @@ interface OslSetupState {
540
547
  highlightedRow: any;
541
548
  }
542
549
 
543
- type OslDisplayType = 'date' | 'datetime' | 'time' | 'link';
550
+ type OslDisplayType = 'date' | 'datetime' | 'time' | 'link' | 'customDateFormat';
544
551
  interface OslGridColumn {
545
552
  key: string;
546
553
  label: string;
@@ -553,6 +560,7 @@ interface OslGridColumn {
553
560
  isActions?: boolean;
554
561
  /** Applies a built-in transform to the cell value. 'date' → dd/MM/yyyy, 'datetime' → dd/MM/yyyy HH:mm, 'time' → HH:mm */
555
562
  displayType?: OslDisplayType;
563
+ customDateFormat?: string;
556
564
  click?: (row: any, col: any) => void;
557
565
  }
558
566
  interface OslMenuAction {
@@ -1440,6 +1448,7 @@ declare function nextWorkday(date: Date): Date;
1440
1448
  declare function inRange$2(date: Date, start: Date, end: Date): boolean;
1441
1449
  /** Parses a `YYYY-MM-DD` string and returns a local-midnight Date or null. */
1442
1450
  declare function parseDate(dateStr: string): Date | null;
1451
+ declare function localeDate(dateStr: string): void;
1443
1452
 
1444
1453
  declare const date_util_d_addDays: typeof addDays;
1445
1454
  declare const date_util_d_addHours: typeof addHours;
@@ -1465,6 +1474,7 @@ declare const date_util_d_isPast: typeof isPast;
1465
1474
  declare const date_util_d_isSameDay: typeof isSameDay;
1466
1475
  declare const date_util_d_isToday: typeof isToday;
1467
1476
  declare const date_util_d_isWeekend: typeof isWeekend;
1477
+ declare const date_util_d_localeDate: typeof localeDate;
1468
1478
  declare const date_util_d_nextWorkday: typeof nextWorkday;
1469
1479
  declare const date_util_d_now: typeof now;
1470
1480
  declare const date_util_d_parseDate: typeof parseDate;
@@ -1506,6 +1516,7 @@ declare namespace date_util_d {
1506
1516
  date_util_d_isToday as isToday,
1507
1517
  isValidDate$1 as isValidDate,
1508
1518
  date_util_d_isWeekend as isWeekend,
1519
+ date_util_d_localeDate as localeDate,
1509
1520
  date_util_d_nextWorkday as nextWorkday,
1510
1521
  date_util_d_now as now,
1511
1522
  date_util_d_parseDate as parseDate,