@yomotech/view-toolkit 0.0.99 → 1.0.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.
package/package.json
CHANGED
|
@@ -401,58 +401,11 @@ 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 activeSession: i0.WritableSignal<CustomKeyboardSession | null>;
|
|
420
|
-
isNativeMobile(): boolean;
|
|
421
|
-
open(target: CustomKeyboardTarget, type: CustomKeyboardType): Promise<void>;
|
|
422
|
-
private scrollTargetIntoDialogView;
|
|
423
|
-
private updateKeyboardHeight;
|
|
424
|
-
insert(character: string): void;
|
|
425
|
-
backspace(): void;
|
|
426
|
-
clear(): void;
|
|
427
|
-
close(options?: {
|
|
428
|
-
blurTarget?: boolean;
|
|
429
|
-
restoreAccessoryBar?: boolean;
|
|
430
|
-
}): void;
|
|
431
|
-
closeIfTargetInside(container: HTMLElement): void;
|
|
432
|
-
private updateTarget;
|
|
433
|
-
private isValidValue;
|
|
434
|
-
private moveCursorToEnd;
|
|
435
|
-
private readonly documentPointerDownHandler;
|
|
436
|
-
private readonly activeTargetBlurHandler;
|
|
437
|
-
private handleDocumentPointerDown;
|
|
438
|
-
private handleActiveTargetBlur;
|
|
439
|
-
private insertDateTimeDigit;
|
|
440
|
-
private formatDateDigits;
|
|
441
|
-
private formatTimeDigits;
|
|
442
|
-
private removeDateTimeDigit;
|
|
443
|
-
beginPickerOverlay(): void;
|
|
444
|
-
endPickerOverlay(): void;
|
|
445
|
-
getActiveValue(type: CustomKeyboardType, targetName?: string): string | null;
|
|
446
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomKeyboardService, never>;
|
|
447
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CustomKeyboardService>;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
404
|
declare class ModelComponent implements OnChanges {
|
|
451
405
|
private cdr;
|
|
452
406
|
private readonly dialogRef;
|
|
453
407
|
private readonly dialogConfig;
|
|
454
408
|
private utilityService;
|
|
455
|
-
private readonly customKeyboardService;
|
|
456
409
|
matchData: any[];
|
|
457
410
|
date2: Date | undefined;
|
|
458
411
|
errorMessages: any;
|
|
@@ -463,11 +416,10 @@ declare class ModelComponent implements OnChanges {
|
|
|
463
416
|
copyLayoutSchema: any;
|
|
464
417
|
isLoading: boolean;
|
|
465
418
|
projectLanguage: any;
|
|
466
|
-
constructor(cdr: ChangeDetectorRef, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, utilityService: UtilityService
|
|
419
|
+
constructor(cdr: ChangeDetectorRef, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, utilityService: UtilityService);
|
|
467
420
|
ngAfterViewInit(): void;
|
|
468
421
|
ngOnChanges(changes: SimpleChanges): void;
|
|
469
422
|
onCalendarShow(): Promise<void>;
|
|
470
|
-
onPickerClose(): void;
|
|
471
423
|
private initializeDialogContent;
|
|
472
424
|
private updateDialogHeader;
|
|
473
425
|
updateLayoutLanguage<T>(schema: T, translations: Record<string, string>): T;
|
|
@@ -502,15 +454,13 @@ declare class ModelComponent implements OnChanges {
|
|
|
502
454
|
};
|
|
503
455
|
getSectionBodyStyle(formSection: any): Record<string, any>;
|
|
504
456
|
getFieldWrapperStyle(formField: any): Record<string, any>;
|
|
505
|
-
onTimePanelShow(formField: any): void;
|
|
457
|
+
onTimePanelShow(formField: any, event: any): void;
|
|
506
458
|
getControlStyle(formField: any): Record<string, any>;
|
|
507
459
|
getFieldInnerLayoutStyle(formField: any): Record<string, any>;
|
|
508
460
|
dateChangeEvent(formField: any, value: any): void;
|
|
509
461
|
onDateTyping(event: any): void;
|
|
510
462
|
forceNumericKeyboard(event: any): void;
|
|
511
|
-
onTimeTyping(event: any
|
|
512
|
-
private getFieldValue;
|
|
513
|
-
private parseTimeValue;
|
|
463
|
+
onTimeTyping(event: any): void;
|
|
514
464
|
timeChangeEvent(formField: any, value: any): void;
|
|
515
465
|
handleRules(formField: any, value: any): void;
|
|
516
466
|
resetRule(rule: any, formField: any): void;
|
|
@@ -520,7 +470,6 @@ declare class ModelComponent implements OnChanges {
|
|
|
520
470
|
invokeFormBtnClick(option: any, propertySchema: any, form: NgForm): void;
|
|
521
471
|
checkValidty(form: NgForm): boolean;
|
|
522
472
|
onCancel(): void;
|
|
523
|
-
handleDateTimeFocus(event: any, formField: any): void;
|
|
524
473
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModelComponent, never>;
|
|
525
474
|
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>;
|
|
526
475
|
}
|
|
@@ -786,6 +735,52 @@ declare class AppVersionResetService {
|
|
|
786
735
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppVersionResetService>;
|
|
787
736
|
}
|
|
788
737
|
|
|
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
|
+
|
|
789
784
|
declare class CustomKeyboardComponent {
|
|
790
785
|
readonly keyboard: CustomKeyboardService;
|
|
791
786
|
readonly uppercase: i0.WritableSignal<boolean>;
|