@yomotech/view-toolkit 1.0.0 → 1.0.2

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": "@yomotech/view-toolkit",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^21.0.0",
6
6
  "@angular/common": "^21.0.0",
@@ -401,11 +401,62 @@ declare class LogsComponent {
401
401
  static ɵcmp: i0.ɵɵComponentDeclaration<LogsComponent, "vl-logs", never, {}, {}, never, never, true, never>;
402
402
  }
403
403
 
404
+ type CustomKeyboardType = 'email' | 'numeric' | 'alpha' | 'string' | 'date' | 'time';
405
+ declare function normalizeCustomKeyboardType(value: unknown): CustomKeyboardType | null;
406
+
407
+ type CustomKeyboardTarget = HTMLInputElement | HTMLTextAreaElement;
408
+ interface CustomKeyboardSession {
409
+ target: CustomKeyboardTarget;
410
+ type: CustomKeyboardType;
411
+ originalReadOnly: boolean;
412
+ originalInputMode: string | null;
413
+ originalInputType: string | null;
414
+ }
415
+ declare class CustomKeyboardService {
416
+ private openingSuspendedUntil;
417
+ private pickerOverlayOpen;
418
+ private pickerTriggerPressedUntil;
419
+ readonly interactionBlocked: i0.WritableSignal<boolean>;
420
+ private interactionUnlockTimer;
421
+ readonly activeSession: i0.WritableSignal<CustomKeyboardSession | null>;
422
+ isNativeMobile(): boolean;
423
+ open(target: CustomKeyboardTarget, type: CustomKeyboardType): Promise<void>;
424
+ private blockInitialInteraction;
425
+ private scrollTargetIntoDialogView;
426
+ private updateKeyboardHeight;
427
+ private canProcessKeyboardAction;
428
+ insert(character: string): void;
429
+ backspace(): void;
430
+ clear(): void;
431
+ close(options?: {
432
+ blurTarget?: boolean;
433
+ restoreAccessoryBar?: boolean;
434
+ }): void;
435
+ closeIfTargetInside(container: HTMLElement): void;
436
+ private updateTarget;
437
+ private isValidValue;
438
+ private moveCursorToEnd;
439
+ private readonly documentPointerDownHandler;
440
+ private readonly activeTargetBlurHandler;
441
+ private handleDocumentPointerDown;
442
+ private handleActiveTargetBlur;
443
+ private insertDateTimeDigit;
444
+ private formatDateDigits;
445
+ private formatTimeDigits;
446
+ private removeDateTimeDigit;
447
+ beginPickerOverlay(): void;
448
+ endPickerOverlay(): void;
449
+ getActiveValue(type: CustomKeyboardType, targetName?: string): string | null;
450
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomKeyboardService, never>;
451
+ static ɵprov: i0.ɵɵInjectableDeclaration<CustomKeyboardService>;
452
+ }
453
+
404
454
  declare class ModelComponent implements OnChanges {
405
455
  private cdr;
406
456
  private readonly dialogRef;
407
457
  private readonly dialogConfig;
408
458
  private utilityService;
459
+ private readonly customKeyboardService;
409
460
  matchData: any[];
410
461
  date2: Date | undefined;
411
462
  errorMessages: any;
@@ -416,7 +467,7 @@ declare class ModelComponent implements OnChanges {
416
467
  copyLayoutSchema: any;
417
468
  isLoading: boolean;
418
469
  projectLanguage: any;
419
- constructor(cdr: ChangeDetectorRef, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, utilityService: UtilityService);
470
+ constructor(cdr: ChangeDetectorRef, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, utilityService: UtilityService, customKeyboardService: CustomKeyboardService);
420
471
  ngAfterViewInit(): void;
421
472
  ngOnChanges(changes: SimpleChanges): void;
422
473
  onCalendarShow(): Promise<void>;
@@ -735,52 +786,6 @@ declare class AppVersionResetService {
735
786
  static ɵprov: i0.ɵɵInjectableDeclaration<AppVersionResetService>;
736
787
  }
737
788
 
738
- type CustomKeyboardType = 'email' | 'numeric' | 'alpha' | 'string' | 'date' | 'time';
739
- declare function normalizeCustomKeyboardType(value: unknown): CustomKeyboardType | null;
740
-
741
- type CustomKeyboardTarget = HTMLInputElement | HTMLTextAreaElement;
742
- interface CustomKeyboardSession {
743
- target: CustomKeyboardTarget;
744
- type: CustomKeyboardType;
745
- originalReadOnly: boolean;
746
- originalInputMode: string | null;
747
- originalInputType: string | null;
748
- }
749
- declare class CustomKeyboardService {
750
- private openingSuspendedUntil;
751
- private pickerOverlayOpen;
752
- private pickerTriggerPressedUntil;
753
- readonly activeSession: i0.WritableSignal<CustomKeyboardSession | null>;
754
- isNativeMobile(): boolean;
755
- open(target: CustomKeyboardTarget, type: CustomKeyboardType): Promise<void>;
756
- private scrollTargetIntoDialogView;
757
- private updateKeyboardHeight;
758
- insert(character: string): void;
759
- backspace(): void;
760
- clear(): void;
761
- close(options?: {
762
- blurTarget?: boolean;
763
- restoreAccessoryBar?: boolean;
764
- }): void;
765
- closeIfTargetInside(container: HTMLElement): void;
766
- private updateTarget;
767
- private isValidValue;
768
- private moveCursorToEnd;
769
- private readonly documentPointerDownHandler;
770
- private readonly activeTargetBlurHandler;
771
- private handleDocumentPointerDown;
772
- private handleActiveTargetBlur;
773
- private insertDateTimeDigit;
774
- private formatDateDigits;
775
- private formatTimeDigits;
776
- private removeDateTimeDigit;
777
- beginPickerOverlay(): void;
778
- endPickerOverlay(): void;
779
- getActiveValue(type: CustomKeyboardType, targetName?: string): string | null;
780
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomKeyboardService, never>;
781
- static ɵprov: i0.ɵɵInjectableDeclaration<CustomKeyboardService>;
782
- }
783
-
784
789
  declare class CustomKeyboardComponent {
785
790
  readonly keyboard: CustomKeyboardService;
786
791
  readonly uppercase: i0.WritableSignal<boolean>;