@opencitylabs/formio-custom-components 0.8.5 → 0.8.7
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.iife.js +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +6 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7985,31 +7985,25 @@ var mr = e.components.select, hr = {
|
|
|
7985
7985
|
let e = this.component.customOptions;
|
|
7986
7986
|
this.component.customOptions = void 0;
|
|
7987
7987
|
let t = super.choicesOptions();
|
|
7988
|
-
this.component.customOptions = e;
|
|
7989
|
-
let n = (e, t) => e === t ? !0 : e !== null && t !== null && typeof e == "object" && typeof t == "object" ? JSON.stringify(e) === JSON.stringify(t) : String(e) === String(t), r = {
|
|
7990
|
-
...t,
|
|
7991
|
-
valueComparer: n
|
|
7992
|
-
};
|
|
7993
|
-
if (typeof e != "string" || !e.trim()) return r;
|
|
7988
|
+
if (this.component.customOptions = e, typeof e != "string" || !e.trim()) return t;
|
|
7994
7989
|
try {
|
|
7995
7990
|
return {
|
|
7996
|
-
...
|
|
7991
|
+
...t,
|
|
7997
7992
|
...JSON.parse(e)
|
|
7998
7993
|
};
|
|
7999
7994
|
} catch {
|
|
8000
7995
|
try {
|
|
8001
|
-
let
|
|
7996
|
+
let n = Function("instance", `return (${e})`)(this);
|
|
8002
7997
|
return {
|
|
8003
|
-
...
|
|
8004
|
-
...
|
|
7998
|
+
...t,
|
|
7999
|
+
...n
|
|
8005
8000
|
};
|
|
8006
8001
|
} catch (e) {
|
|
8007
|
-
return console.warn("Select customOptions eval error:", e.message),
|
|
8002
|
+
return console.warn("Select customOptions eval error:", e.message), t;
|
|
8008
8003
|
}
|
|
8009
8004
|
}
|
|
8010
8005
|
}
|
|
8011
8006
|
attach(e) {
|
|
8012
|
-
this.options.readOnly && (this.activated = !0);
|
|
8013
8007
|
let t = super.attach(e);
|
|
8014
8008
|
return (Array.isArray(this.refs.autocompleteInput) ? this.refs.autocompleteInput : [this.refs.autocompleteInput]).forEach((e) => {
|
|
8015
8009
|
e?.parentNode && e.parentNode.removeChild(e);
|