dotvvm-types 4.1.0-preview09-final → 4.1.0-preview11-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 CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dotvvm-types",
3
- "version": "4.1.0-preview09-final",
3
+ "version": "4.1.0-preview11-final",
4
4
  "description": "MVVM framework for ASP.NET",
5
- "types": "index.d.ts",
5
+ "types": "./types/index.d.ts",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/riganti/dotvvm.git"
@@ -1,4 +1,4 @@
1
- /// <reference path="../../Resources/Scripts/typings/globalize/globalize.d.ts" />
1
+ /// <reference types="knockout" />
2
2
  declare module "shared-classes" {
3
3
  export class DotvvmPostbackError {
4
4
  reason: DotvvmPostbackErrorReason;
@@ -24,6 +24,8 @@ declare module "utils/logging" {
24
24
  export function logWarning(area: string, ...args: any[]): void;
25
25
  export function logError(area: string, ...args: any[]): void;
26
26
  export function logPostBackScriptError(err: any): void;
27
+ /** puts the string in quotes, escaping weird characters if it is more complex than just letters */
28
+ export function debugQuoteString(s: string): string;
27
29
  }
28
30
  declare module "serialization/date" {
29
31
  export function parseDate(value: string | null, convertFromUtc?: boolean): Date | null;
@@ -231,7 +233,7 @@ declare module "postback/resourceLoader" {
231
233
  declare module "binding-handlers/textbox-text" {
232
234
  const _default: {
233
235
  "dotvvm-textbox-text": {
234
- init(element: HTMLInputElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor | undefined): void;
236
+ init(element: HTMLInputElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor): void;
235
237
  update(element: HTMLInputElement, valueAccessor: () => any): void;
236
238
  };
237
239
  };
@@ -252,12 +254,12 @@ declare module "binding-handlers/SSR-foreach" {
252
254
  };
253
255
  const _default_2: {
254
256
  "dotvvm-SSR-foreach": {
255
- init(element: Node, valueAccessor: () => any, allBindings?: KnockoutAllBindingsAccessor | undefined, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined): {
257
+ init(element: Node, valueAccessor: () => any, allBindings?: KnockoutAllBindingsAccessor, viewModel?: any, bindingContext?: KnockoutBindingContext): {
256
258
  controlsDescendantBindings: boolean;
257
259
  };
258
260
  };
259
261
  "dotvvm-SSR-item": {
260
- init<T>(element: SeenUpdateElement, valueAccessor: () => T, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined): {
262
+ init<T>(element: SeenUpdateElement, valueAccessor: () => T, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext): {
261
263
  controlsDescendantBindings: boolean;
262
264
  };
263
265
  update(element: SeenUpdateElement): void;
@@ -297,12 +299,12 @@ declare module "binding-handlers/markup-controls" {
297
299
  export function wrapControlProperties(valueAccessor: () => any): any;
298
300
  const _default_3: {
299
301
  'dotvvm-with-control-properties': {
300
- init: (element: HTMLElement, valueAccessor: () => any, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined) => {
302
+ init: (element: HTMLElement, valueAccessor: () => any, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext) => {
301
303
  controlsDescendantBindings: boolean;
302
304
  };
303
305
  };
304
306
  'dotvvm-with-view-modules': {
305
- init: (element: HTMLElement, valueAccessor: () => any, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined) => {
307
+ init: (element: HTMLElement, valueAccessor: () => any, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext) => {
306
308
  controlsDescendantBindings: boolean;
307
309
  } | undefined;
308
310
  };
@@ -329,18 +331,18 @@ declare module "binding-handlers/enable" {
329
331
  declare module "binding-handlers/checkbox" {
330
332
  const _default_6: {
331
333
  'dotvvm-checkbox-updateAfterPostback': {
332
- init(element: HTMLElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor | undefined): void;
334
+ init(element: HTMLElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor): void;
333
335
  };
334
336
  'dotvvm-checked-pointer': {};
335
337
  "dotvvm-CheckState": {
336
- init: ((element: any, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor | undefined, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined) => void | {
338
+ init: ((element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => void | {
337
339
  controlsDescendantBindings: boolean;
338
340
  }) | undefined;
339
341
  update(element: any, valueAccessor: () => any): void;
340
342
  };
341
343
  "dotvvm-checkedItems": {
342
344
  after: string[] | undefined;
343
- init: ((element: any, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor | undefined, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined) => void | {
345
+ init: ((element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => void | {
344
346
  controlsDescendantBindings: boolean;
345
347
  }) | undefined;
346
348
  options: any;
@@ -368,7 +370,7 @@ declare module "postback/queue" {
368
370
  declare module "binding-handlers/update-progress" {
369
371
  const _default_7: {
370
372
  "dotvvm-UpdateProgress-Visible": {
371
- init(element: HTMLElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor | undefined, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined): void;
373
+ init(element: HTMLElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor, viewModel?: any, bindingContext?: KnockoutBindingContext): void;
372
374
  };
373
375
  };
374
376
  export default _default_7;
@@ -386,7 +388,7 @@ declare module "binding-handlers/gridviewdataset" {
386
388
  declare module "binding-handlers/named-command" {
387
389
  const _default_9: {
388
390
  'dotvvm-named-command': {
389
- init: (element: HTMLElement, valueAccessor: () => any, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined) => {
391
+ init: (element: HTMLElement, valueAccessor: () => any, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext) => {
390
392
  controlsDescendantBindings: boolean;
391
393
  };
392
394
  };
@@ -396,7 +398,7 @@ declare module "binding-handlers/named-command" {
396
398
  declare module "binding-handlers/file-upload" {
397
399
  const _default_10: {
398
400
  "dotvvm-FileUpload": {
399
- init: (element: HTMLInputElement, valueAccessor: () => any, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext | undefined) => void;
401
+ init: (element: HTMLInputElement, valueAccessor: () => any, allBindings?: any, viewModel?: any, bindingContext?: KnockoutBindingContext) => void;
400
402
  };
401
403
  };
402
404
  export default _default_10;
@@ -404,7 +406,7 @@ declare module "binding-handlers/file-upload" {
404
406
  declare module "binding-handlers/js-component" {
405
407
  const _default_11: {
406
408
  "dotvvm-js-component": {
407
- init(element: HTMLInputElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor | undefined): void;
409
+ init(element: HTMLInputElement, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor): void;
408
410
  };
409
411
  };
410
412
  export default _default_11;
@@ -447,8 +449,8 @@ declare module "DotVVM.Globalize" {
447
449
  export function parseNumber(value: string): number;
448
450
  export function parseDate(value: string, format: string, previousValue?: Date): Date | null;
449
451
  export const parseDotvvmDate: typeof serializationParseDate;
450
- export function bindingDateToString(value: KnockoutObservable<string | Date> | string | Date | null | undefined, format?: string): KnockoutComputed<string>;
451
- export function bindingNumberToString(value: KnockoutObservable<string | number> | string | number | null | undefined, format?: string): KnockoutComputed<string>;
452
+ export function bindingDateToString(value: GlobalizeFormattable | KnockoutObservable<GlobalizeFormattable>, format?: string): KnockoutComputed<string>;
453
+ export function bindingNumberToString(value: GlobalizeFormattable | KnockoutObservable<GlobalizeFormattable>, format?: string): KnockoutComputed<string>;
452
454
  }
453
455
  declare var compileConstants: {
454
456
  /** If the compiled bundle is for SPA applications */