@goat-bravos/intern-hub-layout 4.0.4 → 4.0.6

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@goat-bravos/intern-hub-layout",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "Angular library for intern hub layout components",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.1.0",
7
7
  "@angular/core": "^21.1.0",
8
8
  "@angular/forms": "^21.1.0",
9
9
  "@angular/router": "^21.1.0",
10
- "dynamic-ds": "1.0.5",
10
+ "dynamic-ds": "1.0.12",
11
11
  "ng-zorro-antd": "^21.1.0"
12
12
  },
13
13
  "peerDependenciesMeta": {
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, ElementRef, TemplateRef, OnInit } from '@angular/core';
2
+ import { EventEmitter, ElementRef, TemplateRef, OnInit, AfterViewInit, OnDestroy } from '@angular/core';
3
3
  import * as _goat_bravos_intern_hub_layout from '@goat-bravos/intern-hub-layout';
4
4
  import { ControlValueAccessor } from '@angular/forms';
5
5
 
@@ -306,6 +306,8 @@ declare class InputTextComponent {
306
306
  get value(): string;
307
307
  get currentLength(): number;
308
308
  get limit(): string;
309
+ /** Block invalid characters (e, E, +, -) for number inputs */
310
+ onKeydown(event: KeyboardEvent): void;
309
311
  onInput(event: Event): void;
310
312
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextComponent, never>;
311
313
  static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "app-input-text", never, { "headerInput": { "alias": "headerInput"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "showLimit": { "alias": "showLimit"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "widthIcon": { "alias": "widthIcon"; "required": false; }; "heightIcon": { "alias": "heightIcon"; "required": false; }; "typeInput": { "alias": "typeInput"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "height": { "alias": "height"; "required": false; }; "fontSizeContent": { "alias": "fontSizeContent"; "required": false; }; "fontWeightContent": { "alias": "fontWeightContent"; "required": false; }; "colorContent": { "alias": "colorContent"; "required": false; }; "fontSizeLabel": { "alias": "fontSizeLabel"; "required": false; }; "fontWeightLabel": { "alias": "fontWeightLabel"; "required": false; }; "colorLabel": { "alias": "colorLabel"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderColorHover": { "alias": "borderColorHover"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "iconClick": "iconClick"; }, never, never, true, never>;
@@ -417,12 +419,27 @@ declare class PopUpConfirmComponent {
417
419
  title: string;
418
420
  content: string;
419
421
  colorButton: string;
422
+ confirmLabel: string;
423
+ cancelLabel: string;
424
+ showCancel: boolean;
420
425
  confirmClick: EventEmitter<void>;
421
426
  cancelClick: EventEmitter<void>;
422
427
  onConfirm(): void;
423
428
  onCancel(): void;
424
429
  static ɵfac: i0.ɵɵFactoryDeclaration<PopUpConfirmComponent, never>;
425
- static ɵcmp: i0.ɵɵComponentDeclaration<PopUpConfirmComponent, "app-pop-up-confirm", never, { "imgUrl": { "alias": "imgUrl"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "colorButton": { "alias": "colorButton"; "required": false; }; }, { "confirmClick": "confirmClick"; "cancelClick": "cancelClick"; }, never, never, true, never>;
430
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopUpConfirmComponent, "app-pop-up-confirm", never, { "imgUrl": { "alias": "imgUrl"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "colorButton": { "alias": "colorButton"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "showCancel": { "alias": "showCancel"; "required": false; }; }, { "confirmClick": "confirmClick"; "cancelClick": "cancelClick"; }, never, never, true, never>;
431
+ }
432
+
433
+ declare class PopUpInfoComponent {
434
+ imgUrl: string;
435
+ title: string;
436
+ content: string;
437
+ colorButton: string;
438
+ actionLabel: string;
439
+ actionClick: EventEmitter<void>;
440
+ onAction(): void;
441
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopUpInfoComponent, never>;
442
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopUpInfoComponent, "app-pop-up-info", never, { "imgUrl": { "alias": "imgUrl"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "colorButton": { "alias": "colorButton"; "required": false; }; "actionLabel": { "alias": "actionLabel"; "required": false; }; }, { "actionClick": "actionClick"; }, never, never, true, never>;
426
443
  }
427
444
 
428
445
  declare class ModalComponent {
@@ -505,7 +522,13 @@ declare class FileUploadDropzoneComponent {
505
522
  type DatePickerMode = 'date' | 'week' | 'month' | 'quarter' | 'year';
506
523
  type RangePickerMode = 'date' | 'week' | 'month' | 'year';
507
524
  type DatePickerValue = Date | [Date, Date] | null;
508
- declare class DatePickerComponent implements OnInit, ControlValueAccessor {
525
+ declare class DatePickerComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
526
+ private el;
527
+ private keydownHandler;
528
+ private pasteHandler;
529
+ private inputHandler;
530
+ private isDeleting;
531
+ constructor(el: ElementRef);
509
532
  /** Picker mode: date, week, month, quarter, year */
510
533
  mode: DatePickerMode;
511
534
  /** Enable time selection */
@@ -565,6 +588,20 @@ declare class DatePickerComponent implements OnInit, ControlValueAccessor {
565
588
  registerOnTouched(fn: () => void): void;
566
589
  setDisabledState(isDisabled: boolean): void;
567
590
  ngOnInit(): void;
591
+ ngAfterViewInit(): void;
592
+ ngOnDestroy(): void;
593
+ /** Allow: digits, date separators (/ - : .), and control keys */
594
+ private readonly ALLOWED_KEYS;
595
+ private onInputKeydown;
596
+ private onInputPaste;
597
+ /**
598
+ * Auto-insert separator characters (e.g. '/') as user types digits.
599
+ * Parses the format string to find separator positions.
600
+ * E.g. 'dd/MM/yyyy' → separators at index 2 and 5
601
+ */
602
+ private onInputAutoSeparator;
603
+ private attachInputListeners;
604
+ private detachInputListeners;
568
605
  private initializeFormat;
569
606
  onDateChange(date: Date | null): void;
570
607
  onRangeChange(range: [Date, Date] | null): void;
@@ -579,5 +616,5 @@ declare class DatePickerComponent implements OnInit, ControlValueAccessor {
579
616
  static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "app-date-picker", never, { "mode": { "alias": "mode"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "isRange": { "alias": "isRange"; "required": false; }; "rangeMode": { "alias": "rangeMode"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rangePlaceholder": { "alias": "rangePlaceholder"; "required": false; }; "format": { "alias": "format"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "size": { "alias": "size"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "popupClassName": { "alias": "popupClassName"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "disabledDate": { "alias": "disabledDate"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "dateChange": "dateChange"; "rangeChange": "rangeChange"; "openChange": "openChange"; "ok": "ok"; "panelChange": "panelChange"; }, never, never, true, never>;
580
617
  }
581
618
 
582
- export { ApprovalListComponent, ApprovalListItemComponent, AvatarUploadButtonComponent, BUTTON_SIZE_MAP, ButtonContainerComponent, DatePickerComponent, FileUploadDropzoneComponent, FunctionalLabelComponent, HeaderComponent, IconComponent, InputCalendarComponent, InputStepperComponent, InputTextComponent, LabelButtonComponent, ModalComponent, PopUpConfirmComponent, SidebarComponent, TableBodyComponent, TableHeaderComponent };
619
+ export { ApprovalListComponent, ApprovalListItemComponent, AvatarUploadButtonComponent, BUTTON_SIZE_MAP, ButtonContainerComponent, DatePickerComponent, FileUploadDropzoneComponent, FunctionalLabelComponent, HeaderComponent, IconComponent, InputCalendarComponent, InputStepperComponent, InputTextComponent, LabelButtonComponent, ModalComponent, PopUpConfirmComponent, PopUpInfoComponent, SidebarComponent, TableBodyComponent, TableHeaderComponent };
583
620
  export type { ApprovalListItemInterface, AvatarUploadedFile, ButtonContainerData, ButtonContainerInterface, ButtonSize, ButtonSizeConfig, ColumnConfig, DatePickerMode, DatePickerValue, HeaderAction, HeaderData, IconData, RangePickerMode, SidebarData, SidebarItem, UploadedFile };