dotvvm-types 4.1.0-preview14-final → 4.1.0-preview16-final
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 +1 -1
- package/types/index.d.ts +25 -21
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -29,15 +29,15 @@ declare module "utils/logging" {
|
|
|
29
29
|
export function debugQuoteString(s: string): string;
|
|
30
30
|
}
|
|
31
31
|
declare module "serialization/date" {
|
|
32
|
-
export function parseDate(value: string | null, convertFromUtc?: boolean): Date | null;
|
|
33
|
-
export function parseDateOnly(value: string | null): Date | null;
|
|
34
|
-
export function parseTimeOnly(value: string | null): Date | null;
|
|
35
|
-
export function parseTimeSpan(value: string | null): number | null;
|
|
36
|
-
export function parseDateTimeOffset(value: string | null): Date | null;
|
|
32
|
+
export function parseDate(value: string | null | undefined, convertFromUtc?: boolean): Date | null;
|
|
33
|
+
export function parseDateOnly(value: string | null | undefined): Date | null;
|
|
34
|
+
export function parseTimeOnly(value: string | null | undefined): Date | null;
|
|
35
|
+
export function parseTimeSpan(value: string | null | undefined): number | null;
|
|
36
|
+
export function parseDateTimeOffset(value: string | null | undefined): Date | null;
|
|
37
37
|
export function serializeDate(date: string | Date | null, convertToUtc?: boolean): string | null;
|
|
38
|
-
export function serializeDateOnly(date: Date
|
|
39
|
-
export function serializeTimeOnly(date: Date
|
|
40
|
-
export function serializeTimeSpan(
|
|
38
|
+
export function serializeDateOnly(date: Date): string;
|
|
39
|
+
export function serializeTimeOnly(date: Date): string;
|
|
40
|
+
export function serializeTimeSpan(ticks: number): string;
|
|
41
41
|
}
|
|
42
42
|
declare module "utils/dom" {
|
|
43
43
|
export const getElementByDotvvmId: (id: string) => HTMLElement;
|
|
@@ -73,6 +73,7 @@ declare module "metadata/typeMap" {
|
|
|
73
73
|
export function getKnownTypes(): string[];
|
|
74
74
|
export function updateTypeInfo(newTypes: TypeMap | undefined): void;
|
|
75
75
|
export function replaceTypeInfo(newTypes: TypeMap | undefined): void;
|
|
76
|
+
export function areObjectTypesEqual(currentValue: any, newVal: any): boolean;
|
|
76
77
|
}
|
|
77
78
|
declare module "events" {
|
|
78
79
|
export class DotvvmEvent<T> {
|
|
@@ -419,7 +420,9 @@ declare module "binding-handlers/file-upload" {
|
|
|
419
420
|
declare module "binding-handlers/js-component" {
|
|
420
421
|
const _default_11: {
|
|
421
422
|
"dotvvm-js-component": {
|
|
422
|
-
init(element: HTMLInputElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor):
|
|
423
|
+
init(element: HTMLInputElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor): {
|
|
424
|
+
controlsDescendantBindings: boolean;
|
|
425
|
+
};
|
|
423
426
|
};
|
|
424
427
|
};
|
|
425
428
|
export default _default_11;
|
|
@@ -460,7 +463,7 @@ declare module "DotVVM.Globalize" {
|
|
|
460
463
|
type GlobalizeFormattable = null | undefined | string | Date | number;
|
|
461
464
|
export function formatString(format: string | null | undefined, value: GlobalizeFormattable | KnockoutObservable<GlobalizeFormattable>, type: string | null): string;
|
|
462
465
|
export function parseNumber(value: string): number;
|
|
463
|
-
export function parseDate(value: string, format: string, previousValue?: Date): Date | null;
|
|
466
|
+
export function parseDate(value: string, format: string, previousValue?: Date | null): Date | null;
|
|
464
467
|
export const parseDotvvmDate: typeof serializationParseDate;
|
|
465
468
|
export function bindingDateToString(value: GlobalizeFormattable | KnockoutObservable<GlobalizeFormattable>, format?: string): KnockoutComputed<string>;
|
|
466
469
|
export function bindingDateOnlyToString(value: GlobalizeFormattable | KnockoutObservable<GlobalizeFormattable>, format?: string): KnockoutComputed<string>;
|
|
@@ -635,6 +638,18 @@ declare module "postback/postback" {
|
|
|
635
638
|
export function isPostbackHandler(obj: any): obj is DotvvmPostbackHandler;
|
|
636
639
|
export function sortHandlers(handlers: DotvvmPostbackHandler[]): DotvvmPostbackHandler[];
|
|
637
640
|
}
|
|
641
|
+
declare module "api/eventHub" {
|
|
642
|
+
export function notify(id: string): void;
|
|
643
|
+
export function get(id: string): KnockoutObservable<number>;
|
|
644
|
+
}
|
|
645
|
+
declare module "api/api" {
|
|
646
|
+
type ApiComputed<T> = KnockoutComputed<T | null> & {
|
|
647
|
+
refreshValue: () => PromiseLike<any>;
|
|
648
|
+
};
|
|
649
|
+
export function invoke<T>(target: any, methodName: string, argsProvider: () => any[], refreshTriggers: (args: any[]) => Array<KnockoutObservable<any> | string>, notifyTriggers: (args: any[]) => string[], cacheElement: HTMLElement, sharingKeyProvider: (args: any[]) => string[], lifetimeElement: HTMLElement): ApiComputed<T>;
|
|
650
|
+
export function refreshOn<T>(value: ApiComputed<T>, watch: KnockoutObservable<any>): ApiComputed<T>;
|
|
651
|
+
export function clearApiCachedValues(): void;
|
|
652
|
+
}
|
|
638
653
|
declare module "spa/navigation" {
|
|
639
654
|
export function navigateCore(url: string, options: PostbackOptions, handlePageNavigating: (url: string) => void): Promise<DotvvmNavigationEventArgs>;
|
|
640
655
|
}
|
|
@@ -660,17 +675,6 @@ declare module "controls/fileUpload" {
|
|
|
660
675
|
export function showUploadDialog(sender: HTMLElement): void;
|
|
661
676
|
export function reportProgress(inputControl: HTMLInputElement, isBusy: boolean, progress: number, result: DotvvmStaticCommandResponse<DotvvmFileUploadData[]> | string): void;
|
|
662
677
|
}
|
|
663
|
-
declare module "api/eventHub" {
|
|
664
|
-
export function notify(id: string): void;
|
|
665
|
-
export function get(id: string): KnockoutObservable<number>;
|
|
666
|
-
}
|
|
667
|
-
declare module "api/api" {
|
|
668
|
-
type ApiComputed<T> = KnockoutObservable<T | null> & {
|
|
669
|
-
refreshValue: () => PromiseLike<any>;
|
|
670
|
-
};
|
|
671
|
-
export function invoke<T>(target: any, methodName: string, argsProvider: () => any[], refreshTriggers: (args: any[]) => Array<KnockoutObservable<any> | string>, notifyTriggers: (args: any[]) => string[], element: HTMLElement, sharingKeyProvider: (args: any[]) => string[]): ApiComputed<T>;
|
|
672
|
-
export function refreshOn<T>(value: ApiComputed<T>, watch: KnockoutObservable<any>): ApiComputed<T>;
|
|
673
|
-
}
|
|
674
678
|
declare module "metadata/metadataHelper" {
|
|
675
679
|
export function getTypeId(viewModel: object): string | undefined;
|
|
676
680
|
export function getTypeMetadata(typeId: string): TypeMetadata;
|