dothtml 6.0.0-beta.43 → 6.0.0-beta.45
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/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +22 -16
- package/build_module/constants.js +0 -2
- package/build_module/constants.js.map +0 -1
- package/build_module/css/css-props.js +0 -40
- package/build_module/css/css-props.js.map +0 -1
- package/build_module/css/css.d.ts +0 -0
- package/build_module/css/css.js +0 -1
- package/build_module/css/css.js.map +0 -1
- package/build_module/css/format-css-type.js +0 -73
- package/build_module/css/format-css-type.js.map +0 -1
- package/build_module/decoration/component.d.ts +0 -14
- package/build_module/decoration/component.js +0 -35
- package/build_module/decoration/component.js.map +0 -1
- package/build_module/decoration/use-styles.d.ts +0 -14
- package/build_module/decoration/use-styles.js +0 -19
- package/build_module/decoration/use-styles.js.map +0 -1
- package/build_module/dot.js +0 -342
- package/build_module/dot.js.map +0 -1
- package/build_module/helpers/render-css.d.ts +0 -2
- package/build_module/helpers/render-css.js +0 -20
- package/build_module/helpers/render-css.js.map +0 -1
- package/build_module/helpers/render-stylesheet.js +0 -27
- package/build_module/helpers/render-stylesheet.js.map +0 -1
- package/build_module/helpers/tools.js +0 -50
- package/build_module/helpers/tools.js.map +0 -1
- package/build_module/helpers.d.ts +0 -3
- package/build_module/helpers.js +0 -50
- package/build_module/helpers.js.map +0 -1
- package/build_module/index.js +0 -6
- package/build_module/index.js.map +0 -1
- package/build_module/reactive.d.ts +0 -46
- package/build_module/reactive.js +0 -150
- package/build_module/reactive.js.map +0 -1
- package/build_module/reactivity/binding.js +0 -20
- package/build_module/reactivity/binding.js.map +0 -1
- package/build_module/reactivity/bound-reactive.d.ts +0 -13
- package/build_module/reactivity/bound-reactive.js +0 -20
- package/build_module/reactivity/bound-reactive.js.map +0 -1
- package/build_module/reactivity/reactive-attr.js +0 -7
- package/build_module/reactivity/reactive-attr.js.map +0 -1
- package/build_module/reactivity/reactive-style.js +0 -7
- package/build_module/reactivity/reactive-style.js.map +0 -1
- package/build_module/reactivity/reactive.d.ts +0 -22
- package/build_module/reactivity/reactive.js +0 -54
- package/build_module/reactivity/reactive.js.map +0 -1
- package/build_module/reactivity/ref.js +0 -6
- package/build_module/reactivity/ref.js.map +0 -1
- package/build_module/reactivity/subscription.js +0 -41
- package/build_module/reactivity/subscription.js.map +0 -1
- package/build_module/reactivity/watcher.js +0 -61
- package/build_module/reactivity/watcher.js.map +0 -1
- package/build_module/v-dom-node.d.ts +0 -0
- package/build_module/v-dom-node.js +0 -1
- package/build_module/v-dom-node.js.map +0 -1
- package/build_module/v-meta-nodes/attribute-v-node.js +0 -53
- package/build_module/v-meta-nodes/attribute-v-node.js.map +0 -1
- package/build_module/v-meta-nodes/style-v-node.js +0 -135
- package/build_module/v-meta-nodes/style-v-node.js.map +0 -1
- package/build_module/v-meta-nodes/v-meta-node.js +0 -3
- package/build_module/v-meta-nodes/v-meta-node.js.map +0 -1
- package/build_module/v-style-nodes/base-v-style.js +0 -113
- package/build_module/v-style-nodes/base-v-style.js.map +0 -1
- package/build_module/v-style-nodes/css-function-builder-v-style.js +0 -28
- package/build_module/v-style-nodes/css-function-builder-v-style.js.map +0 -1
- package/build_module/v-style-nodes/filter-v-style.js +0 -35
- package/build_module/v-style-nodes/filter-v-style.js.map +0 -1
- package/build_module/v-style-nodes/transform-v-style.js +0 -76
- package/build_module/v-style-nodes/transform-v-style.js.map +0 -1
- package/build_module/v-style-nodes/v-style.js +0 -6
- package/build_module/v-style-nodes/v-style.js.map +0 -1
- package/build_module/vdom-nodes/collection-vdom.js +0 -157
- package/build_module/vdom-nodes/collection-vdom.js.map +0 -1
- package/build_module/vdom-nodes/component-vdom.js +0 -100
- package/build_module/vdom-nodes/component-vdom.js.map +0 -1
- package/build_module/vdom-nodes/conditional-vdom.js +0 -98
- package/build_module/vdom-nodes/conditional-vdom.js.map +0 -1
- package/build_module/vdom-nodes/container-vdom.js +0 -110
- package/build_module/vdom-nodes/container-vdom.js.map +0 -1
- package/build_module/vdom-nodes/element-vdom.js +0 -164
- package/build_module/vdom-nodes/element-vdom.js.map +0 -1
- package/build_module/vdom-nodes/html-vdom.js +0 -53
- package/build_module/vdom-nodes/html-vdom.js.map +0 -1
- package/build_module/vdom-nodes/text-vdom.js +0 -37
- package/build_module/vdom-nodes/text-vdom.js.map +0 -1
- package/build_module/vdom-nodes/vdom.js +0 -41
- package/build_module/vdom-nodes/vdom.js.map +0 -1
- package/build_module/window-wrapper.js +0 -39
- package/build_module/window-wrapper.js.map +0 -1
- /package/{build_module → dist/build_module}/constants.d.ts +0 -0
- /package/{build_module → dist/build_module}/css/css-props.d.ts +0 -0
- /package/{build_module → dist/build_module}/css/format-css-type.d.ts +0 -0
- /package/{build_module → dist/build_module}/dot.d.ts +0 -0
- /package/{build_module → dist/build_module}/helpers/render-stylesheet.d.ts +0 -0
- /package/{build_module → dist/build_module}/helpers/tools.d.ts +0 -0
- /package/{build_module → dist/build_module}/index.d.ts +0 -0
- /package/{build_module → dist/build_module}/reactivity/binding.d.ts +0 -0
- /package/{build_module → dist/build_module}/reactivity/reactive-attr.d.ts +0 -0
- /package/{build_module → dist/build_module}/reactivity/reactive-style.d.ts +0 -0
- /package/{build_module → dist/build_module}/reactivity/ref.d.ts +0 -0
- /package/{build_module → dist/build_module}/reactivity/subscription.d.ts +0 -0
- /package/{build_module → dist/build_module}/reactivity/watcher.d.ts +0 -0
- /package/{build_module → dist/build_module}/v-meta-nodes/attribute-v-node.d.ts +0 -0
- /package/{build_module → dist/build_module}/v-meta-nodes/style-v-node.d.ts +0 -0
- /package/{build_module → dist/build_module}/v-meta-nodes/v-meta-node.d.ts +0 -0
- /package/{build_module → dist/build_module}/v-style-nodes/base-v-style.d.ts +0 -0
- /package/{build_module → dist/build_module}/v-style-nodes/css-function-builder-v-style.d.ts +0 -0
- /package/{build_module → dist/build_module}/v-style-nodes/filter-v-style.d.ts +0 -0
- /package/{build_module → dist/build_module}/v-style-nodes/transform-v-style.d.ts +0 -0
- /package/{build_module → dist/build_module}/v-style-nodes/v-style.d.ts +0 -0
- /package/{build_module → dist/build_module}/vdom-nodes/collection-vdom.d.ts +0 -0
- /package/{build_module → dist/build_module}/vdom-nodes/component-vdom.d.ts +0 -0
- /package/{build_module → dist/build_module}/vdom-nodes/conditional-vdom.d.ts +0 -0
- /package/{build_module → dist/build_module}/vdom-nodes/container-vdom.d.ts +0 -0
- /package/{build_module → dist/build_module}/vdom-nodes/element-vdom.d.ts +0 -0
- /package/{build_module → dist/build_module}/vdom-nodes/html-vdom.d.ts +0 -0
- /package/{build_module → dist/build_module}/vdom-nodes/text-vdom.d.ts +0 -0
- /package/{build_module → dist/build_module}/vdom-nodes/vdom.d.ts +0 -0
- /package/{build_module → dist/build_module}/window-wrapper.d.ts +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import dot from "./dot";
|
|
2
|
-
let documentId = 1;
|
|
3
|
-
export default class WindowWrapper {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
this.isOpen = false;
|
|
6
|
-
this.root = options.content;
|
|
7
|
-
this.width = options.width || options.height || 600;
|
|
8
|
-
this.height = options.height || options.width || 400;
|
|
9
|
-
this.title = options.title || "Window";
|
|
10
|
-
}
|
|
11
|
-
open() {
|
|
12
|
-
if (this.isOpen) {
|
|
13
|
-
console.warn("Window is already open.");
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
this.window = window.open("", this.title, `width=${this.width},height=${this.height}`);
|
|
17
|
-
this.document = this.window.document;
|
|
18
|
-
this.document["_dotId"] = `${documentId++}`;
|
|
19
|
-
let tempElement = document.createElement("div");
|
|
20
|
-
tempElement.textContent = this.title;
|
|
21
|
-
let encodedTitle = tempElement.innerHTML;
|
|
22
|
-
this.document.write(`<!DOCTYPE html><html><head><title>${encodedTitle}</title></head><body></body></html>`);
|
|
23
|
-
this._vdom = dot(this.document.body, this.window).mount(this.root);
|
|
24
|
-
if (this.window) {
|
|
25
|
-
this.isOpen = true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
close() {
|
|
29
|
-
if (this.window) {
|
|
30
|
-
this._vdom._unrender();
|
|
31
|
-
this._vdom = null;
|
|
32
|
-
this.window.close();
|
|
33
|
-
this.window = null;
|
|
34
|
-
this.document = null;
|
|
35
|
-
this.isOpen = false;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=window-wrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-wrapper.js","sourceRoot":"","sources":["../src/window-wrapper.ts"],"names":[],"mappings":"AAEA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,MAAM,CAAC,OAAO,OAAO,aAAa;IAUjC,YAAY,OAAkF;QAF9F,WAAM,GAAG,KAAK,CAAC;QAGd,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC;QACpD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,IAAI,GAAG,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,QAAQ,CAAC;IAExC,CAAC;IAED,IAAI;QACH,IAAG,IAAI,CAAC,MAAM,EAAC;YACd,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;YACxC,OAAO;SACP;QAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,IAAI,CAAC,KAAK,WAAW,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACvF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,GAAG,UAAU,EAAE,EAAE,CAAC;QAE5C,IAAI,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAChD,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC;QACrC,IAAI,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC;QACzC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,qCAAqC,YAAY,qCAAqC,CAAC,CAAC;QAI5G,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAA6B,CAAC;QAE/F,IAAG,IAAI,CAAC,MAAM,EAAC;YACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;SACnB;IACF,CAAC;IAED,KAAK;QACJ,IAAG,IAAI,CAAC,MAAM,EAAC;YACd,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;YACvB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAElB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACpB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;SACpB;IACF,CAAC;CACD"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|