@domql/mixins
Advanced tools
Comparing version 2.3.82 to 2.3.112
@@ -7,3 +7,3 @@ 'use strict' | ||
const { key } = element | ||
if (element.class === true) element.class = key | ||
if (element.class === true) element.class = keyw | ||
else if (!element.class && typeof key === 'string' && key.charAt(0) === '_' && key.charAt(1) !== '_') { | ||
@@ -30,3 +30,3 @@ element.class = key.slice(1) | ||
if (!params) return | ||
const { key } = element | ||
const { key } = element // eslint-disable-line | ||
if (params === true) params = element.class = { key } | ||
@@ -33,0 +33,0 @@ if (isString(params)) params = element.class = { default: params } |
@@ -11,3 +11,4 @@ 'use strict' | ||
const prop = exec(param, element) | ||
if (prop) { | ||
const { __ref } = element | ||
if (prop !== __ref.__html) { | ||
// const parser = new window.DOMParser() | ||
@@ -17,3 +18,5 @@ // param = parser.parseFromString(param, 'text/html') | ||
else node.innerHTML = prop | ||
__ref.__html = prop | ||
} | ||
} |
'use strict' | ||
import { | ||
attr, | ||
style, | ||
text, | ||
html, | ||
content, | ||
data, | ||
classList, | ||
state | ||
attr, classList, content, | ||
data, html, state, style, | ||
text | ||
} from '.' | ||
@@ -25,21 +20,17 @@ | ||
extend: {}, | ||
childExtend: {}, | ||
childExtendRecursive: {}, | ||
props: {}, | ||
path: {}, | ||
childExtend: {}, | ||
if: {}, | ||
define: {}, | ||
transform: {}, | ||
__ref: {}, | ||
__hash: {}, | ||
__cache: {}, | ||
__defined: {}, | ||
__exec: {}, | ||
__changes: {}, | ||
__trash: {}, | ||
__root: {}, | ||
__props: {}, | ||
__extend: {}, | ||
__ifFragment: {}, | ||
__ifFalsy: {}, | ||
__text: {}, | ||
nextElement: {}, | ||
previousElement: {}, | ||
key: {}, | ||
tag: {}, | ||
query: {}, | ||
parent: {}, | ||
@@ -49,4 +40,7 @@ node: {}, | ||
update: {}, | ||
setProps: {}, | ||
remove: {}, | ||
removeContent: {}, | ||
lookup: {}, | ||
spotByPath: {}, | ||
keys: {}, | ||
@@ -56,3 +50,17 @@ log: {}, | ||
parseDeep: {}, | ||
on: {} | ||
on: {}, | ||
component: {}, | ||
context: {} | ||
} | ||
// List of keys for .parse() and .parseDeep() to include in the result. | ||
// Keys not in the array are excluded. | ||
export const parseFilters = { | ||
elementKeys: [ | ||
'tag', 'text', 'style', 'attr', 'class', 'state', 'class', | ||
'data', 'content', 'html', 'on' | ||
// TODO: 'props' ? | ||
], | ||
propsKeys: ['__element'], | ||
stateKeys: [] | ||
} |
{ | ||
"name": "@domql/mixins", | ||
"version": "2.3.82", | ||
"version": "2.3.112", | ||
"main": "index.js", | ||
@@ -13,4 +13,4 @@ "license": "MIT", | ||
}, | ||
"gitHead": "6d358ffa05e6acdceacc1d053fdb00449610b43a", | ||
"gitHead": "a86dad4cef1731f6a97d43ec445074c31f76760a", | ||
"source": "index.js" | ||
} |
@@ -10,3 +10,3 @@ 'use strict' | ||
for (const param in state) { | ||
if (param === 'update' || param === '__element' || param === 'parse') continue | ||
if (IGNORE_STATE_PARAMS.includes(param)) continue | ||
element.state[param] = exec(state[param], element) | ||
@@ -13,0 +13,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7012
210