@domql/element 2.5.184 → 2.5.185
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/cjs/methods/index.js +1 -1
- package/dist/cjs/methods/v2.js +1 -1
- package/dist/cjs/mixins/registry.js +28 -10
- package/dist/cjs/utils/applyParam.js +1 -1
- package/dist/cjs/utils/component.js +1 -1
- package/dist/cjs/utils/onlyResolveExtends.js +1 -1
- package/methods/index.js +1 -1
- package/methods/v2.js +1 -1
- package/mixins/registry.js +10 -6
- package/package.json +6 -6
- package/utils/applyParam.js +1 -1
- package/utils/component.js +1 -1
- package/utils/onlyResolveExtends.js +1 -1
|
@@ -47,7 +47,7 @@ module.exports = __toCommonJS(methods_exports);
|
|
|
47
47
|
var import_event = require("@domql/event");
|
|
48
48
|
var import_utils = require("@domql/utils");
|
|
49
49
|
var import_tree = require("../tree");
|
|
50
|
-
var import_mixins = require("../mixins");
|
|
50
|
+
var import_mixins = require("../mixins/index.js");
|
|
51
51
|
const ENV = "development";
|
|
52
52
|
function spotByPath(path) {
|
|
53
53
|
const element = this;
|
package/dist/cjs/methods/v2.js
CHANGED
|
@@ -28,7 +28,7 @@ __export(v2_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(v2_exports);
|
|
30
30
|
var import_utils = require("@domql/utils");
|
|
31
|
-
var import_mixins = require("../mixins");
|
|
31
|
+
var import_mixins = require("../mixins/index.js");
|
|
32
32
|
const defineSetter = (element, key, get, set) => Object.defineProperty(element, key, { get, set });
|
|
33
33
|
const keys = function() {
|
|
34
34
|
const element = this;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
var registry_exports = {};
|
|
20
30
|
__export(registry_exports, {
|
|
@@ -24,17 +34,25 @@ __export(registry_exports, {
|
|
|
24
34
|
parseFilters: () => parseFilters
|
|
25
35
|
});
|
|
26
36
|
module.exports = __toCommonJS(registry_exports);
|
|
27
|
-
var
|
|
37
|
+
var import_attr = __toESM(require("./attr"), 1);
|
|
38
|
+
var import_classList = require("./classList");
|
|
39
|
+
var import_content = __toESM(require("./content"), 1);
|
|
40
|
+
var import_data = __toESM(require("./data"), 1);
|
|
41
|
+
var import_html = __toESM(require("./html"), 1);
|
|
42
|
+
var import_scope = __toESM(require("./scope"), 1);
|
|
43
|
+
var import_state = __toESM(require("./state"), 1);
|
|
44
|
+
var import_style = __toESM(require("./style"), 1);
|
|
45
|
+
var import_text = __toESM(require("./text"), 1);
|
|
28
46
|
const REGISTRY = {
|
|
29
|
-
attr:
|
|
30
|
-
style:
|
|
31
|
-
text:
|
|
32
|
-
html:
|
|
33
|
-
|
|
34
|
-
data:
|
|
35
|
-
class:
|
|
36
|
-
state:
|
|
37
|
-
scope:
|
|
47
|
+
attr: import_attr.default,
|
|
48
|
+
style: import_style.default,
|
|
49
|
+
text: import_text.default,
|
|
50
|
+
html: import_html.default,
|
|
51
|
+
setContent: import_content.default,
|
|
52
|
+
data: import_data.default,
|
|
53
|
+
class: import_classList.classList,
|
|
54
|
+
state: import_state.default,
|
|
55
|
+
scope: import_scope.default,
|
|
38
56
|
deps: (param, el) => param || el.parent.deps,
|
|
39
57
|
extend: {},
|
|
40
58
|
childExtend: {},
|
|
@@ -22,7 +22,7 @@ __export(applyParam_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(applyParam_exports);
|
|
24
24
|
var import_utils = require("@domql/utils");
|
|
25
|
-
var import_mixins = require("../mixins");
|
|
25
|
+
var import_mixins = require("../mixins/index.js");
|
|
26
26
|
const applyParam = (param, element, options) => {
|
|
27
27
|
const { node, context, __ref: ref } = element;
|
|
28
28
|
const prop = element[param];
|
|
@@ -25,7 +25,7 @@ __export(component_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(component_exports);
|
|
26
26
|
var import_utils = require("@domql/utils");
|
|
27
27
|
var import_extend = require("../extend");
|
|
28
|
-
var import_mixins = require("../mixins");
|
|
28
|
+
var import_mixins = require("../mixins/index.js");
|
|
29
29
|
const createValidDomqlObjectFromSugar = (el, parent, key, options) => {
|
|
30
30
|
const newElem = {
|
|
31
31
|
props: {},
|
|
@@ -23,7 +23,7 @@ __export(onlyResolveExtends_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(onlyResolveExtends_exports);
|
|
24
24
|
var import_utils = require("@domql/utils");
|
|
25
25
|
var import__ = require("..");
|
|
26
|
-
var import_mixins = require("../mixins");
|
|
26
|
+
var import_mixins = require("../mixins/index.js");
|
|
27
27
|
var import__2 = require(".");
|
|
28
28
|
var import_methods = require("../methods");
|
|
29
29
|
var import_set = require("../methods/set");
|
package/methods/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { triggerEventOn } from '@domql/event'
|
|
4
4
|
import { isDefined, isObject, isFunction, isObjectLike, isProduction, removeValueFromArray, deepClone } from '@domql/utils'
|
|
5
5
|
import { TREE } from '../tree'
|
|
6
|
-
import { parseFilters, REGISTRY } from '../mixins'
|
|
6
|
+
import { parseFilters, REGISTRY } from '../mixins/index.js'
|
|
7
7
|
const ENV = process.env.NODE_ENV
|
|
8
8
|
|
|
9
9
|
// TODO: update these files
|
package/methods/v2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { isDefined, isFunction, isObjectLike } from '@domql/utils'
|
|
4
|
-
import { parseFilters, REGISTRY } from '../mixins'
|
|
4
|
+
import { parseFilters, REGISTRY } from '../mixins/index.js'
|
|
5
5
|
|
|
6
6
|
export const defineSetter = (element, key, get, set) =>
|
|
7
7
|
Object.defineProperty(element, key, { get, set })
|
package/mixins/registry.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import attr from './attr'
|
|
4
|
+
import { classList } from './classList'
|
|
5
|
+
import setContent from './content'
|
|
6
|
+
import data from './data'
|
|
7
|
+
import html from './html'
|
|
8
|
+
import scope from './scope'
|
|
9
|
+
import state from './state'
|
|
10
|
+
import style from './style'
|
|
11
|
+
import text from './text'
|
|
8
12
|
|
|
9
13
|
export const REGISTRY = {
|
|
10
14
|
attr,
|
|
11
15
|
style,
|
|
12
16
|
text,
|
|
13
17
|
html,
|
|
14
|
-
|
|
18
|
+
setContent,
|
|
15
19
|
data,
|
|
16
20
|
class: classList,
|
|
17
21
|
state,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.185",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@domql/event": "^2.5.
|
|
31
|
-
"@domql/render": "^2.5.
|
|
32
|
-
"@domql/state": "^2.5.
|
|
33
|
-
"@domql/utils": "^2.5.
|
|
30
|
+
"@domql/event": "^2.5.185",
|
|
31
|
+
"@domql/render": "^2.5.185",
|
|
32
|
+
"@domql/state": "^2.5.185",
|
|
33
|
+
"@domql/utils": "^2.5.185"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ccab034f188b6a1f55f741c0b29a9d3b0c9bee6f",
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@babel/core": "^7.12.0"
|
|
38
38
|
}
|
package/utils/applyParam.js
CHANGED
package/utils/component.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@domql/utils'
|
|
12
12
|
|
|
13
13
|
import { applyExtend } from '../extend'
|
|
14
|
-
import { REGISTRY } from '../mixins'
|
|
14
|
+
import { REGISTRY } from '../mixins/index.js'
|
|
15
15
|
|
|
16
16
|
export const createValidDomqlObjectFromSugar = (el, parent, key, options) => {
|
|
17
17
|
const newElem = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { exec, isFunction, isObject, isUndefined } from '@domql/utils'
|
|
4
4
|
import { create } from '..'
|
|
5
|
-
import { REGISTRY } from '../mixins'
|
|
5
|
+
import { REGISTRY } from '../mixins/index.js'
|
|
6
6
|
import { applyVariant, isVariant } from '.'
|
|
7
7
|
import { isMethod } from '../methods'
|
|
8
8
|
import { addMethods } from '../methods/set'
|