@apipass/schemas 0.2.8 → 0.2.9
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/apipass-schemas.umd.js +16 -16
- package/bundles/apipass-schemas.umd.js.map +1 -1
- package/bundles/apipass-schemas.umd.min.js +1 -1
- package/bundles/apipass-schemas.umd.min.js.map +1 -1
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +17 -17
- package/fesm2015/apipass-schemas.js +16 -16
- package/fesm2015/apipass-schemas.js.map +1 -1
- package/package.json +1 -1
|
@@ -693,8 +693,8 @@
|
|
|
693
693
|
i0.ɵɵtext(6, "*");
|
|
694
694
|
i0.ɵɵelementEnd();
|
|
695
695
|
i0.ɵɵelementEnd();
|
|
696
|
-
i0.ɵɵelementStart(7, "input",
|
|
697
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; });
|
|
696
|
+
i0.ɵɵelementStart(7, "input", 11);
|
|
697
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_7_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.onDropAttr($event, ctx_r13.newCustomField.label); });
|
|
698
698
|
i0.ɵɵelementEnd();
|
|
699
699
|
i0.ɵɵelementEnd();
|
|
700
700
|
i0.ɵɵelementEnd();
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
i0.ɵɵelementEnd();
|
|
708
708
|
i0.ɵɵelementEnd();
|
|
709
709
|
i0.ɵɵelementStart(14, "input", 11);
|
|
710
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r12_1); var
|
|
710
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_14_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.onDropAttr($event, ctx_r15.newCustomField.value); });
|
|
711
711
|
i0.ɵɵelementEnd();
|
|
712
712
|
i0.ɵɵelementEnd();
|
|
713
713
|
i0.ɵɵelementEnd();
|
|
@@ -727,9 +727,9 @@
|
|
|
727
727
|
}
|
|
728
728
|
function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) {
|
|
729
729
|
if (rf & 1) {
|
|
730
|
-
var
|
|
731
|
-
i0.ɵɵelementStart(0, "button",
|
|
732
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
730
|
+
var _r17_1 = i0.ɵɵgetCurrentView();
|
|
731
|
+
i0.ɵɵelementStart(0, "button", 14);
|
|
732
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17_1); var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.newCustomField = {}; });
|
|
733
733
|
i0.ɵɵtext(1);
|
|
734
734
|
i0.ɵɵelementEnd();
|
|
735
735
|
}
|
|
@@ -741,9 +741,9 @@
|
|
|
741
741
|
}
|
|
742
742
|
function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) {
|
|
743
743
|
if (rf & 1) {
|
|
744
|
-
var
|
|
745
|
-
i0.ɵɵelementStart(0, "button",
|
|
746
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
744
|
+
var _r19_1 = i0.ɵɵgetCurrentView();
|
|
745
|
+
i0.ɵɵelementStart(0, "button", 15);
|
|
746
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19_1); var ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.newCustomField = null; });
|
|
747
747
|
i0.ɵɵtext(1);
|
|
748
748
|
i0.ɵɵelementEnd();
|
|
749
749
|
}
|
|
@@ -755,9 +755,9 @@
|
|
|
755
755
|
}
|
|
756
756
|
function SchemaCustomAttributesComponent_button_6_Template(rf, ctx) {
|
|
757
757
|
if (rf & 1) {
|
|
758
|
-
var
|
|
759
|
-
i0.ɵɵelementStart(0, "button",
|
|
760
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
758
|
+
var _r21_1 = i0.ɵɵgetCurrentView();
|
|
759
|
+
i0.ɵɵelementStart(0, "button", 14);
|
|
760
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r21_1); var ctx_r20 = i0.ɵɵnextContext(); return ctx_r20.saveNewAttribute(ctx_r20.newCustomField); });
|
|
761
761
|
i0.ɵɵtext(1);
|
|
762
762
|
i0.ɵɵelementEnd();
|
|
763
763
|
}
|
|
@@ -797,15 +797,15 @@
|
|
|
797
797
|
this.modelChange.emit(this.model);
|
|
798
798
|
};
|
|
799
799
|
SchemaCustomAttributesComponent.prototype.onDropAttr = function ($event, attribute) {
|
|
800
|
-
if (!attribute
|
|
801
|
-
attribute
|
|
800
|
+
if (!attribute) {
|
|
801
|
+
attribute = '';
|
|
802
802
|
}
|
|
803
|
-
attribute
|
|
803
|
+
attribute += "{{" + $event.data + "}}";
|
|
804
804
|
};
|
|
805
805
|
return SchemaCustomAttributesComponent;
|
|
806
806
|
}(BaseSchemaComponent));
|
|
807
807
|
SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
|
|
808
|
-
SchemaCustomAttributesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 5, consts: [["class", "row custom-attributes", 4, "ngFor", "ngForOf"], ["class", "struct-custom-field", 4, "ngIf"], [1, "row", "actions-buttons"], [1, "col-md-12", "pull-right"], ["class", "btn btn-outline-primary float-left", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-danger float-left ml-2", 3, "click", 4, "ngIf"], [1, "row", "custom-attributes"], [1, "col-md-12"], [1, "info-label"], [1, "customAttributeDeleteIcon", 3, "click"], [1, "far", "fa-trash-alt", 3, "matTooltip"], ["dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "struct-custom-field"], [1, "row"], [1, "
|
|
808
|
+
SchemaCustomAttributesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 5, consts: [["class", "row custom-attributes", 4, "ngFor", "ngForOf"], ["class", "struct-custom-field", 4, "ngIf"], [1, "row", "actions-buttons"], [1, "col-md-12", "pull-right"], ["class", "btn btn-outline-primary float-left", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-danger float-left ml-2", 3, "click", 4, "ngIf"], [1, "row", "custom-attributes"], [1, "col-md-12"], [1, "info-label"], [1, "customAttributeDeleteIcon", 3, "click"], [1, "far", "fa-trash-alt", 3, "matTooltip"], ["dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "struct-custom-field"], [1, "row"], [1, "btn", "btn-outline-primary", "float-left", 3, "click"], [1, "btn", "btn-outline-danger", "float-left", "ml-2", 3, "click"]], template: function SchemaCustomAttributesComponent_Template(rf, ctx) {
|
|
809
809
|
if (rf & 1) {
|
|
810
810
|
i0.ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 7, 5, "div", 0);
|
|
811
811
|
i0.ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 15, 8, "div", 1);
|