@wizishop/wizi-block 3.3.18 → 3.3.22
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-wizi-block.umd.js +23 -24
- package/bundles/wizishop-wizi-block.umd.js.map +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/structure-tools/structure-tools.component.js +2 -10
- package/esm2015/lib/wizi-block.component.js +9 -2
- package/fesm2015/wizishop-wizi-block.js +9 -10
- package/fesm2015/wizishop-wizi-block.js.map +1 -1
- package/lib/shared/components/structure-tools/structure-tools.component.d.ts +0 -1
- package/package.json +1 -1
- package/wizishop-wizi-block.metadata.json +1 -1
|
@@ -8897,6 +8897,7 @@
|
|
|
8897
8897
|
}
|
|
8898
8898
|
};
|
|
8899
8899
|
WiziBlockComponent.prototype.ngOnInit = function () {
|
|
8900
|
+
var e_1, _a;
|
|
8900
8901
|
var _this = this;
|
|
8901
8902
|
if (!this.availableComponents || this.availableComponents.length === 0) {
|
|
8902
8903
|
this.availableComponents = [
|
|
@@ -8959,6 +8960,23 @@
|
|
|
8959
8960
|
});
|
|
8960
8961
|
this.contentService.contents = this.setContent();
|
|
8961
8962
|
this.resizeWithWidth(window.innerWidth);
|
|
8963
|
+
try {
|
|
8964
|
+
for (var _b = __values(this.contentService.contents), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
8965
|
+
var item = _c.value;
|
|
8966
|
+
if (typeof item.block.hide_block !== typeof undefined) {
|
|
8967
|
+
if (item.block.hide_block) {
|
|
8968
|
+
this.isHiddenConfig.push(item.block.uuid);
|
|
8969
|
+
}
|
|
8970
|
+
}
|
|
8971
|
+
}
|
|
8972
|
+
}
|
|
8973
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
8974
|
+
finally {
|
|
8975
|
+
try {
|
|
8976
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8977
|
+
}
|
|
8978
|
+
finally { if (e_1) throw e_1.error; }
|
|
8979
|
+
}
|
|
8962
8980
|
};
|
|
8963
8981
|
WiziBlockComponent.prototype.addThis = function (selected) {
|
|
8964
8982
|
this.blockComponent.addThisSelected(selected, this.verbose);
|
|
@@ -9041,7 +9059,7 @@
|
|
|
9041
9059
|
}
|
|
9042
9060
|
};
|
|
9043
9061
|
WiziBlockComponent.prototype.changeConfigWiziblocks = function (event) {
|
|
9044
|
-
var
|
|
9062
|
+
var e_2, _a;
|
|
9045
9063
|
var _this = this;
|
|
9046
9064
|
this.selectedConfig = event.config;
|
|
9047
9065
|
if (typeof this.selectedConfig.forms !== typeof undefined) {
|
|
@@ -9051,17 +9069,17 @@
|
|
|
9051
9069
|
if (item.id === 'hide_block' && item.value && !this.isHiddenConfig.includes(this.selectedConfig.block.uuid)) {
|
|
9052
9070
|
this.isHiddenConfig.push(this.selectedConfig.block.uuid);
|
|
9053
9071
|
}
|
|
9054
|
-
else if (item.id === 'hide_block' && !item.value
|
|
9072
|
+
else if (item.id === 'hide_block' && !item.value) {
|
|
9055
9073
|
this.isHiddenConfig = this.isHiddenConfig.filter(function (e) { return e !== _this.selectedConfig.block.uuid; });
|
|
9056
9074
|
}
|
|
9057
9075
|
}
|
|
9058
9076
|
}
|
|
9059
|
-
catch (
|
|
9077
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
9060
9078
|
finally {
|
|
9061
9079
|
try {
|
|
9062
9080
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9063
9081
|
}
|
|
9064
|
-
finally { if (
|
|
9082
|
+
finally { if (e_2) throw e_2.error; }
|
|
9065
9083
|
}
|
|
9066
9084
|
}
|
|
9067
9085
|
};
|
|
@@ -9629,34 +9647,15 @@
|
|
|
9629
9647
|
this.configService = configService;
|
|
9630
9648
|
this.dynamicHiddenStructure = false;
|
|
9631
9649
|
this.hideConfig = false;
|
|
9632
|
-
this.blockIsHidden = false;
|
|
9633
9650
|
this.contentEventSubscription = null;
|
|
9634
9651
|
}
|
|
9635
9652
|
StructureToolsComponent.prototype.ngOnInit = function () {
|
|
9636
|
-
var e_1, _a;
|
|
9637
9653
|
var _this = this;
|
|
9638
9654
|
this.checkOnContents();
|
|
9639
9655
|
this.contentEventSubscription = this.contentService.contentEvent().subscribe(function () {
|
|
9640
9656
|
_this.checkOnContents();
|
|
9641
9657
|
});
|
|
9642
9658
|
var thisContent = this.contentService.getContentByUUID(this.uuid);
|
|
9643
|
-
if (typeof thisContent.forms !== typeof undefined) {
|
|
9644
|
-
try {
|
|
9645
|
-
for (var _b = __values(thisContent.forms), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9646
|
-
var item = _c.value;
|
|
9647
|
-
if (item.id === 'hide_block' && typeof item.value !== typeof undefined) {
|
|
9648
|
-
this.blockIsHidden = true;
|
|
9649
|
-
}
|
|
9650
|
-
}
|
|
9651
|
-
}
|
|
9652
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9653
|
-
finally {
|
|
9654
|
-
try {
|
|
9655
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9656
|
-
}
|
|
9657
|
-
finally { if (e_1) throw e_1.error; }
|
|
9658
|
-
}
|
|
9659
|
-
}
|
|
9660
9659
|
this.hideConfig = thisContent.forms.length === 0;
|
|
9661
9660
|
this.wiziBlockService.getBlocksService().forEach(function (service) {
|
|
9662
9661
|
if (service.type() === thisContent.type) {
|
|
@@ -9713,7 +9712,7 @@
|
|
|
9713
9712
|
StructureToolsComponent.decorators = [
|
|
9714
9713
|
{ type: i0.Component, args: [{
|
|
9715
9714
|
selector: 'wb-structure-tools',
|
|
9716
|
-
template: "<div class=\"wb-structure-tools\" [ngClass]=\"{ hidden:
|
|
9715
|
+
template: "<div class=\"wb-structure-tools\" [ngClass]=\"{ hidden: dynamicHiddenStructure }\">\n <div>\n <div class=\"wb-structure-tools__move\" *ngIf=\"currentLength > 1\">\n <div>\n <a\n [nwbToolTip]=\"'wb.shared.components.structureTools.1' | translate\"\n nwbToolTipPosition=\"bottom\"\n class=\"button is-rounded is-tooltip-info\"\n (click)=\"$event.stopPropagation()\"\n ><i class=\"fas fa-th\"></i\n ></a>\n <a\n [nwbToolTip]=\"'wb.shared.components.structureTools.2' | translate\"\n nwbToolTipPosition=\"bottom\"\n class=\"button is-rounded is-tooltip-info\"\n *ngIf=\"currentIndex + 1 !== currentLength\"\n (click)=\"goDown($event)\"\n ><i class=\"fal fa-arrow-down\"></i\n ></a>\n <a\n [nwbToolTip]=\"'wb.shared.components.structureTools.3' | translate\"\n nwbToolTipPosition=\"bottom\"\n class=\"button is-rounded is-tooltip-info\"\n *ngIf=\"currentIndex !== 0\"\n (click)=\"goUp($event)\"\n ><i class=\"fal fa-arrow-up\"></i\n ></a>\n </div>\n </div>\n <div class=\"wb-structure-tools__edit\">\n <div>\n <i class=\"fas fa-eye-slash\" *ngIf=\"dynamicHiddenStructure\"></i>\n <p>{{ name | translate }}</p>\n <div>\n <a\n href\n class=\"button is-rounded is-tooltip-info\"\n [nwbToolTip]=\"'wb.shared.components.structureTools.4' | translate\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"configThis($event)\"\n *ngIf=\"!hideConfig\"\n ><span></span><i class=\"fas fa-cog\"></i\n ></a>\n <a\n href\n class=\"button is-rounded is-tooltip-link\"\n [nwbToolTip]=\"'wb.shared.components.structureTools.5' | translate\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"duplicateThis($event)\"\n ><span></span><i class=\"far fa-paste\"></i\n ></a>\n <a\n #deleteButton\n class=\"button is-rounded is-tooltip-danger\"\n [nwbToolTip]=\"'wb.shared.components.structureTools.6' | translate\"\n nwbToolTipPosition=\"bottom\"\n wbHoldable\n (mousedown)=\"deleteButton.hold = true\"\n (mouseup)=\"deleteButton.hold = false\"\n (holdTime)=\"removeThis($event)\"\n [ngClass]=\"{ 'is-on-hold': deleteButton.hold }\"\n ><span></span><i class=\"fas fa-trash\"></i\n ></a>\n </div>\n </div>\n </div>\n </div>\n</div>\n"
|
|
9717
9716
|
},] }
|
|
9718
9717
|
];
|
|
9719
9718
|
StructureToolsComponent.ctorParameters = function () { return [
|