dothtml-interfaces 0.3.5 → 0.3.8
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/src/i-dot.d.ts +12 -2
package/package.json
CHANGED
package/src/i-dot.d.ts
CHANGED
|
@@ -370,7 +370,7 @@ export interface IDotCore extends IDotDocument {
|
|
|
370
370
|
navigate(path: string, noHistory?: boolean, force?: boolean): void;
|
|
371
371
|
css: IDotCss;
|
|
372
372
|
bus: IEventBus;
|
|
373
|
-
|
|
373
|
+
window: IDotWindowBuilder;
|
|
374
374
|
|
|
375
375
|
watch<Ti = IReactive | Array<any> | { [key: string | number]: any } | string | number | boolean, To = Ti>(initValue?: Ti, props?: { key?: string, transformer?: (value: Ti) => To }): IReactive<Ti, To>;
|
|
376
376
|
|
|
@@ -388,8 +388,18 @@ export interface IDotCore extends IDotDocument {
|
|
|
388
388
|
useStyles(document: Document, styles: Styles): HTMLStyleElement;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
+
export interface IDotWindowWrapper{
|
|
392
|
+
open(): void;
|
|
393
|
+
close(): void;
|
|
394
|
+
window: Window;
|
|
395
|
+
document: Document;
|
|
396
|
+
title: string;
|
|
397
|
+
width: number;
|
|
398
|
+
height: number;
|
|
399
|
+
}
|
|
400
|
+
|
|
391
401
|
export interface IDotWindowBuilder {
|
|
392
|
-
(content):
|
|
402
|
+
(options: {content: IDotDocument, width?: number, height?: number, title?: string}): IDotWindowWrapper;
|
|
393
403
|
}
|
|
394
404
|
|
|
395
405
|
export interface IDotConditionalDocument extends IDotDocument {
|