@kamen/create-webapp 1.0.46 → 1.0.48
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/css/reset.css +0 -1
- package/index.js +20 -20
- package/package.json +1 -1
package/css/reset.css
CHANGED
package/index.js
CHANGED
|
@@ -2,26 +2,6 @@ const primitiveTypeRe = /^string|number|bigint|boolean|symbol$/;
|
|
|
2
2
|
const objectTypeRe = /^object|function$/;
|
|
3
3
|
export {default as temporal} from './temporal.js';
|
|
4
4
|
|
|
5
|
-
export class DOMUtils {
|
|
6
|
-
static namespaces = class {
|
|
7
|
-
static HTML = 'http://www.w3.org/1999/xhtml';
|
|
8
|
-
static MathML = 'http://www.w3.org/1998/Math/MathML';
|
|
9
|
-
static SVG = 'http://www.w3.org/2000/svg';
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
static createHTMLElement(tag) {
|
|
13
|
-
return document.createElementNS(this.namespaces.HTML, tag);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
static createMathMLElement() {
|
|
17
|
-
return document.createElementNS(this.namespaces.MathML, tag);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
static createSVGElement() {
|
|
21
|
-
return document.createElementNS(this.namespaces.SVG, tag);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
5
|
/**
|
|
26
6
|
* @param {*} value
|
|
27
7
|
* @returns {boolean}
|
|
@@ -285,6 +265,26 @@ export function findVue(version = 2, root = document, hook = '__VUE_DEVTOOLS_GLO
|
|
|
285
265
|
return 'Vue mountpoint not found';
|
|
286
266
|
}
|
|
287
267
|
|
|
268
|
+
export class DOMUtils {
|
|
269
|
+
static namespaces = class NameSpaces {
|
|
270
|
+
static HTML = 'http://www.w3.org/1999/xhtml';
|
|
271
|
+
static MathML = 'http://www.w3.org/1998/Math/MathML';
|
|
272
|
+
static SVG = 'http://www.w3.org/2000/svg';
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
static createHTMLElement(tag = '') {
|
|
276
|
+
return document.createElementNS(this.namespaces.HTML, tag);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
static createMathMLElement(tag = '') {
|
|
280
|
+
return document.createElementNS(this.namespaces.MathML, tag);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
static createSVGElement(tag = '') {
|
|
284
|
+
return document.createElementNS(this.namespaces.SVG, tag);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
288
|
/**
|
|
289
289
|
* URL wrapper implementing builder pattern
|
|
290
290
|
*/
|