selectic 3.0.14 → 3.0.15
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/selectic.common.js +4 -3
- package/dist/selectic.esm.js +4 -3
- package/package.json +1 -1
- package/src/Store.tsx +1 -1
- package/src/index.tsx +2 -2
- package/src/tools.ts +1 -0
- package/types/tools.d.ts +1 -0
package/dist/selectic.common.js
CHANGED
|
@@ -38,6 +38,7 @@ styleInject(css_248z);
|
|
|
38
38
|
/**
|
|
39
39
|
* Clone the object and its inner properties.
|
|
40
40
|
* @param obj The object to be clone.
|
|
41
|
+
* @param attributes list of attributes to not clone.
|
|
41
42
|
* @param refs internal reference to object to avoid cyclic references
|
|
42
43
|
* @returns a copy of obj
|
|
43
44
|
*/
|
|
@@ -299,7 +300,7 @@ class SelecticStore {
|
|
|
299
300
|
const value = deepClone(this.props.value);
|
|
300
301
|
/* set initial value for non reactive attribute */
|
|
301
302
|
this.cacheRequest = new Map();
|
|
302
|
-
const stateParam = deepClone(this.props.params);
|
|
303
|
+
const stateParam = deepClone(this.props.params, ['data']);
|
|
303
304
|
if (stateParam.optionBehavior) {
|
|
304
305
|
this.buildOptionBehavior(stateParam.optionBehavior, stateParam);
|
|
305
306
|
delete stateParam.optionBehavior;
|
|
@@ -2264,7 +2265,7 @@ let Selectic = class Selectic extends vtyx.Vue {
|
|
|
2264
2265
|
this.store.props.selectionIsExcluded = this.selectionIsExcluded;
|
|
2265
2266
|
}
|
|
2266
2267
|
onOptionsChange() {
|
|
2267
|
-
this.store.props.options = deepClone(this.options);
|
|
2268
|
+
this.store.props.options = deepClone(this.options, ['data']);
|
|
2268
2269
|
}
|
|
2269
2270
|
onTextsChange() {
|
|
2270
2271
|
const texts = this.texts;
|
|
@@ -2439,7 +2440,7 @@ let Selectic = class Selectic extends vtyx.Vue {
|
|
|
2439
2440
|
var _a, _b, _c;
|
|
2440
2441
|
this._elementsListeners = [];
|
|
2441
2442
|
this.store = new SelecticStore({
|
|
2442
|
-
options: deepClone(this.options),
|
|
2443
|
+
options: deepClone(this.options, ['data']),
|
|
2443
2444
|
value: deepClone(this.value),
|
|
2444
2445
|
selectionIsExcluded: this.selectionIsExcluded,
|
|
2445
2446
|
disabled: this.disabled,
|
package/dist/selectic.esm.js
CHANGED
|
@@ -34,6 +34,7 @@ styleInject(css_248z);
|
|
|
34
34
|
/**
|
|
35
35
|
* Clone the object and its inner properties.
|
|
36
36
|
* @param obj The object to be clone.
|
|
37
|
+
* @param attributes list of attributes to not clone.
|
|
37
38
|
* @param refs internal reference to object to avoid cyclic references
|
|
38
39
|
* @returns a copy of obj
|
|
39
40
|
*/
|
|
@@ -295,7 +296,7 @@ class SelecticStore {
|
|
|
295
296
|
const value = deepClone(this.props.value);
|
|
296
297
|
/* set initial value for non reactive attribute */
|
|
297
298
|
this.cacheRequest = new Map();
|
|
298
|
-
const stateParam = deepClone(this.props.params);
|
|
299
|
+
const stateParam = deepClone(this.props.params, ['data']);
|
|
299
300
|
if (stateParam.optionBehavior) {
|
|
300
301
|
this.buildOptionBehavior(stateParam.optionBehavior, stateParam);
|
|
301
302
|
delete stateParam.optionBehavior;
|
|
@@ -2260,7 +2261,7 @@ let Selectic = class Selectic extends Vue {
|
|
|
2260
2261
|
this.store.props.selectionIsExcluded = this.selectionIsExcluded;
|
|
2261
2262
|
}
|
|
2262
2263
|
onOptionsChange() {
|
|
2263
|
-
this.store.props.options = deepClone(this.options);
|
|
2264
|
+
this.store.props.options = deepClone(this.options, ['data']);
|
|
2264
2265
|
}
|
|
2265
2266
|
onTextsChange() {
|
|
2266
2267
|
const texts = this.texts;
|
|
@@ -2435,7 +2436,7 @@ let Selectic = class Selectic extends Vue {
|
|
|
2435
2436
|
var _a, _b, _c;
|
|
2436
2437
|
this._elementsListeners = [];
|
|
2437
2438
|
this.store = new SelecticStore({
|
|
2438
|
-
options: deepClone(this.options),
|
|
2439
|
+
options: deepClone(this.options, ['data']),
|
|
2439
2440
|
value: deepClone(this.value),
|
|
2440
2441
|
selectionIsExcluded: this.selectionIsExcluded,
|
|
2441
2442
|
disabled: this.disabled,
|
package/package.json
CHANGED
package/src/Store.tsx
CHANGED
|
@@ -593,7 +593,7 @@ export default class SelecticStore {
|
|
|
593
593
|
this.cacheRequest = new Map();
|
|
594
594
|
|
|
595
595
|
const stateParam: SelecticStoreStateParams | SelecticStoreState =
|
|
596
|
-
deepClone(this.props.params);
|
|
596
|
+
deepClone(this.props.params, ['data']);
|
|
597
597
|
|
|
598
598
|
if (stateParam.optionBehavior) {
|
|
599
599
|
this.buildOptionBehavior(
|
package/src/index.tsx
CHANGED
|
@@ -561,7 +561,7 @@ export default class Selectic extends Vue<Props> {
|
|
|
561
561
|
|
|
562
562
|
@Watch('options', { deep: true })
|
|
563
563
|
public onOptionsChange() {
|
|
564
|
-
this.store.props.options = deepClone(this.options);
|
|
564
|
+
this.store.props.options = deepClone(this.options, ['data']);
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
@Watch('texts', { deep: true })
|
|
@@ -782,7 +782,7 @@ export default class Selectic extends Vue<Props> {
|
|
|
782
782
|
this._elementsListeners = [];
|
|
783
783
|
|
|
784
784
|
this.store = new Store({
|
|
785
|
-
options: deepClone(this.options),
|
|
785
|
+
options: deepClone(this.options, ['data']),
|
|
786
786
|
value: deepClone(this.value),
|
|
787
787
|
selectionIsExcluded: this.selectionIsExcluded,
|
|
788
788
|
disabled: this.disabled,
|
package/src/tools.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { unref } from 'vue';
|
|
|
3
3
|
/**
|
|
4
4
|
* Clone the object and its inner properties.
|
|
5
5
|
* @param obj The object to be clone.
|
|
6
|
+
* @param attributes list of attributes to not clone.
|
|
6
7
|
* @param refs internal reference to object to avoid cyclic references
|
|
7
8
|
* @returns a copy of obj
|
|
8
9
|
*/
|
package/types/tools.d.ts
CHANGED