@dcupl/bundle 2.0.0-beta.17 → 2.0.0-beta.18
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/dcupl.bundle.js
CHANGED
|
@@ -7673,7 +7673,7 @@
|
|
|
7673
7673
|
*/
|
|
7674
7674
|
recordDataChange(e) {
|
|
7675
7675
|
const t = e.model;
|
|
7676
|
-
if (!(!e.data || e.data.length === 0))
|
|
7676
|
+
if (!(e.type !== "set" && (!e.data || e.data.length === 0)))
|
|
7677
7677
|
if (e.type === "set")
|
|
7678
7678
|
this.state === "clean" ? this.state = "full-reset" : this.state === "tracking" && (this.state = "full-reset", this.changedAttributes.delete(t), this.changedItems.delete(t), this.deletedItems.delete(t)), this.modelFullReset.add(t);
|
|
7679
7679
|
else {
|
|
@@ -10008,8 +10008,16 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
10008
10008
|
autoGenerateKey: t.autoGenerateKey
|
|
10009
10009
|
});
|
|
10010
10010
|
},
|
|
10011
|
+
/**
|
|
10012
|
+
* Stages the removal of every row of a model. Like the other data verbs
|
|
10013
|
+
* it is applied by the next `update()`/`init()`, is folded in call order
|
|
10014
|
+
* with mutations staged after it, and invalidates the affected lists
|
|
10015
|
+
* through the normal update path. Equivalent to `data.set([], { model })`.
|
|
10016
|
+
* Used to clear the built model directly, which the next apply undid by
|
|
10017
|
+
* replaying the data log (#257).
|
|
10018
|
+
*/
|
|
10011
10019
|
reset: (e) => {
|
|
10012
|
-
e.model &&
|
|
10020
|
+
e.model && this.modelParser.addData({ data: [], model: e.model, type: "set" });
|
|
10013
10021
|
},
|
|
10014
10022
|
apply: (e) => this.modelParser.addData(e)
|
|
10015
10023
|
};
|