@symbo.ls/input 2.11.450 → 2.11.454

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.
Files changed (2) hide show
  1. package/Input.js +7 -5
  2. package/package.json +3 -3
package/Input.js CHANGED
@@ -26,12 +26,14 @@ export const Input = {
26
26
  name: ({ props }) => props.name,
27
27
  autocomplete: ({ props }) => props.autocomplete,
28
28
  placeholder: ({ props }) => props.placeholder,
29
- value: ({ props, state, deps }) => {
30
- const { isString, replaceLiteralsWithObjectFields } = deps
31
- if (isString(props.value) && props.value.includes('{{')) {
32
- return replaceLiteralsWithObjectFields(props.value, state)
29
+ value: (el, s) => {
30
+ const { props, state, deps } = el
31
+ const { isString, exec, replaceLiteralsWithObjectFields } = deps
32
+ const val = exec(props.value, el)
33
+ if (isString(val) && val.includes('{{')) {
34
+ return replaceLiteralsWithObjectFields(val, state)
33
35
  }
34
- return props.value
36
+ return val
35
37
  },
36
38
  disabled: ({ props }) => props.disabled || null,
37
39
  readonly: ({ props }) => props.readonly,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@symbo.ls/input",
3
- "version": "2.11.450",
3
+ "version": "2.11.454",
4
4
  "main": "index.js",
5
5
  "source": "index.js",
6
6
  "license": "MIT",
7
- "gitHead": "4153a92a328d62db727ee4c99cd53f389ee6e05b",
7
+ "gitHead": "c00f58d1f3abb27367daa3a488580d7a82221e6d",
8
8
  "dependencies": {
9
9
  "@domql/utils": "^2.5.0",
10
- "@symbo.ls/atoms": "^2.11.450"
10
+ "@symbo.ls/atoms": "^2.11.453"
11
11
  }
12
12
  }