@yomotech/view-toolkit 1.0.1 → 1.0.3
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
|
@@ -401,13 +401,66 @@ 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;
|
|
462
|
+
private pickerOpening;
|
|
463
|
+
private pickerOpeningTimer;
|
|
411
464
|
errorMessages: any;
|
|
412
465
|
modalItemInfo: any;
|
|
413
466
|
selectedLanguageInfo: any;
|
|
@@ -416,7 +469,7 @@ declare class ModelComponent implements OnChanges {
|
|
|
416
469
|
copyLayoutSchema: any;
|
|
417
470
|
isLoading: boolean;
|
|
418
471
|
projectLanguage: any;
|
|
419
|
-
constructor(cdr: ChangeDetectorRef, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, utilityService: UtilityService);
|
|
472
|
+
constructor(cdr: ChangeDetectorRef, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, utilityService: UtilityService, customKeyboardService: CustomKeyboardService);
|
|
420
473
|
ngAfterViewInit(): void;
|
|
421
474
|
ngOnChanges(changes: SimpleChanges): void;
|
|
422
475
|
onCalendarShow(): Promise<void>;
|
|
@@ -454,7 +507,7 @@ declare class ModelComponent implements OnChanges {
|
|
|
454
507
|
};
|
|
455
508
|
getSectionBodyStyle(formSection: any): Record<string, any>;
|
|
456
509
|
getFieldWrapperStyle(formField: any): Record<string, any>;
|
|
457
|
-
onTimePanelShow(formField: any
|
|
510
|
+
onTimePanelShow(formField: any): void;
|
|
458
511
|
getControlStyle(formField: any): Record<string, any>;
|
|
459
512
|
getFieldInnerLayoutStyle(formField: any): Record<string, any>;
|
|
460
513
|
dateChangeEvent(formField: any, value: any): void;
|
|
@@ -470,6 +523,10 @@ declare class ModelComponent implements OnChanges {
|
|
|
470
523
|
invokeFormBtnClick(option: any, propertySchema: any, form: NgForm): void;
|
|
471
524
|
checkValidty(form: NgForm): boolean;
|
|
472
525
|
onCancel(): void;
|
|
526
|
+
onPickerIconPointerDown(event: PointerEvent): void;
|
|
527
|
+
openPickerFromIcon(event: MouseEvent, picker: any): Promise<void>;
|
|
528
|
+
onPickerShown(): void;
|
|
529
|
+
onPickerClose(): void;
|
|
473
530
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModelComponent, never>;
|
|
474
531
|
static ɵcmp: i0.ɵɵComponentDeclaration<ModelComponent, "vl-model", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "modalItemInfo": { "alias": "modalItemInfo"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "setFormDataHandler": { "alias": "setFormDataHandler"; "required": false; }; }, {}, never, never, true, never>;
|
|
475
532
|
}
|
|
@@ -735,56 +792,6 @@ declare class AppVersionResetService {
|
|
|
735
792
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppVersionResetService>;
|
|
736
793
|
}
|
|
737
794
|
|
|
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 interactionBlocked: i0.WritableSignal<boolean>;
|
|
754
|
-
private interactionUnlockTimer;
|
|
755
|
-
readonly activeSession: i0.WritableSignal<CustomKeyboardSession | null>;
|
|
756
|
-
isNativeMobile(): boolean;
|
|
757
|
-
open(target: CustomKeyboardTarget, type: CustomKeyboardType): Promise<void>;
|
|
758
|
-
private blockInitialInteraction;
|
|
759
|
-
private scrollTargetIntoDialogView;
|
|
760
|
-
private updateKeyboardHeight;
|
|
761
|
-
private canProcessKeyboardAction;
|
|
762
|
-
insert(character: string): void;
|
|
763
|
-
backspace(): void;
|
|
764
|
-
clear(): void;
|
|
765
|
-
close(options?: {
|
|
766
|
-
blurTarget?: boolean;
|
|
767
|
-
restoreAccessoryBar?: boolean;
|
|
768
|
-
}): void;
|
|
769
|
-
closeIfTargetInside(container: HTMLElement): void;
|
|
770
|
-
private updateTarget;
|
|
771
|
-
private isValidValue;
|
|
772
|
-
private moveCursorToEnd;
|
|
773
|
-
private readonly documentPointerDownHandler;
|
|
774
|
-
private readonly activeTargetBlurHandler;
|
|
775
|
-
private handleDocumentPointerDown;
|
|
776
|
-
private handleActiveTargetBlur;
|
|
777
|
-
private insertDateTimeDigit;
|
|
778
|
-
private formatDateDigits;
|
|
779
|
-
private formatTimeDigits;
|
|
780
|
-
private removeDateTimeDigit;
|
|
781
|
-
beginPickerOverlay(): void;
|
|
782
|
-
endPickerOverlay(): void;
|
|
783
|
-
getActiveValue(type: CustomKeyboardType, targetName?: string): string | null;
|
|
784
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomKeyboardService, never>;
|
|
785
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CustomKeyboardService>;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
795
|
declare class CustomKeyboardComponent {
|
|
789
796
|
readonly keyboard: CustomKeyboardService;
|
|
790
797
|
readonly uppercase: i0.WritableSignal<boolean>;
|