@wizishop/angular-components 0.0.234 → 0.0.235
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/bundles/wizishop-angular-components.umd.js +5 -5
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +1 -1
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/draganddrop-list/draganddrop-list.component.js +6 -6
- package/fesm2015/wizishop-angular-components.js +5 -5
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.235.tgz +0 -0
- package/wizishop-angular-components-0.0.234.tgz +0 -0
|
@@ -4597,24 +4597,24 @@
|
|
|
4597
4597
|
DraganddropListComponent.prototype.drop = function (event) {
|
|
4598
4598
|
if (!this.disabled) {
|
|
4599
4599
|
dragDrop.moveItemInArray(this.items, event.previousIndex, event.currentIndex);
|
|
4600
|
-
this.itemsChange.emit(this.items);
|
|
4600
|
+
this.itemsChange.emit(Object.values(this.items));
|
|
4601
4601
|
this.setTempCopy();
|
|
4602
4602
|
}
|
|
4603
4603
|
};
|
|
4604
4604
|
DraganddropListComponent.prototype.delete = function (index) {
|
|
4605
4605
|
if (!this.disabled) {
|
|
4606
4606
|
this.items = this.items.filter(function (value, i) { return i !== index; });
|
|
4607
|
-
this.itemsChange.emit(this.items);
|
|
4607
|
+
this.itemsChange.emit(Object.values(this.items));
|
|
4608
4608
|
this.setTempCopy();
|
|
4609
4609
|
}
|
|
4610
4610
|
};
|
|
4611
4611
|
DraganddropListComponent.prototype.saveField = function (index, event) {
|
|
4612
4612
|
this.copyTemps[index] = event.target.value;
|
|
4613
|
-
this.itemsChange.emit(this.copyTemps);
|
|
4613
|
+
this.itemsChange.emit(Object.values(this.copyTemps));
|
|
4614
4614
|
};
|
|
4615
4615
|
DraganddropListComponent.prototype.saveFieldEnd = function (index, event) {
|
|
4616
4616
|
this.items[index] = event.target.value;
|
|
4617
|
-
this.itemsChange.emit(this.items);
|
|
4617
|
+
this.itemsChange.emit(Object.values(this.items));
|
|
4618
4618
|
this.setTempCopy();
|
|
4619
4619
|
};
|
|
4620
4620
|
DraganddropListComponent.prototype.addField = function () {
|
|
@@ -4622,7 +4622,7 @@
|
|
|
4622
4622
|
};
|
|
4623
4623
|
DraganddropListComponent.prototype.saveNewField = function (event) {
|
|
4624
4624
|
this.items.push(event.target.value);
|
|
4625
|
-
this.itemsChange.emit(this.items);
|
|
4625
|
+
this.itemsChange.emit(Object.values(this.items));
|
|
4626
4626
|
this.setTempCopy();
|
|
4627
4627
|
this.showTriggerSave = false;
|
|
4628
4628
|
};
|