@apipass/schemas 0.2.13 → 0.2.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.
@@ -1314,14 +1314,14 @@
1314
1314
  var _r6_1 = i0.ɵɵgetCurrentView();
1315
1315
  i0.ɵɵelementStart(0, "div", 5);
1316
1316
  i0.ɵɵelementStart(1, "icon", 6);
1317
- i0.ɵɵlistener("onClick", function InputRenderComponent_div_1_Template_icon_onClick_1_listener() { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.schema.readOnlyPassword ? ctx_r5.editPassword() : ctx_r5.savePassword(); });
1317
+ i0.ɵɵlistener("onClick", function InputRenderComponent_div_1_Template_icon_onClick_1_listener() { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.schema.readOnlyPassword ? ctx_r5.editPassword() : ctx_r5.cancelEditPassword(); });
1318
1318
  i0.ɵɵelementEnd();
1319
1319
  i0.ɵɵelementEnd();
1320
1320
  }
1321
1321
  if (rf & 2) {
1322
1322
  var ctx_r0 = i0.ɵɵnextContext();
1323
1323
  i0.ɵɵadvance(1);
1324
- i0.ɵɵproperty("name", ctx_r0.schema.readOnlyPassword ? "fas fa-pencil-alt" : "fas fa-check");
1324
+ i0.ɵɵproperty("name", ctx_r0.schema.readOnlyPassword ? "fas fa-pencil-alt" : "fas fa-ban");
1325
1325
  }
1326
1326
  }
1327
1327
  var _c0$6 = function () { return { standalone: true }; };
@@ -1329,7 +1329,7 @@
1329
1329
  if (rf & 1) {
1330
1330
  var _r8_1 = i0.ɵɵgetCurrentView();
1331
1331
  i0.ɵɵelementStart(0, "input", 7);
1332
- i0.ɵɵlistener("ngModelChange", function InputRenderComponent_input_2_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.value = $event; })("ngModelChange", function InputRenderComponent_input_2_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.onChange($event); })("dndDrop", function InputRenderComponent_input_2_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onDropCallBack($event, ctx_r10.value); });
1332
+ i0.ɵɵlistener("blur", function InputRenderComponent_input_2_Template_input_blur_0_listener() { i0.ɵɵrestoreView(_r8_1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onInputBlur(); })("ngModelChange", function InputRenderComponent_input_2_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.value = $event; })("ngModelChange", function InputRenderComponent_input_2_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onChange($event); })("dndDrop", function InputRenderComponent_input_2_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.onDropCallBack($event, ctx_r11.value); });
1333
1333
  i0.ɵɵelementEnd();
1334
1334
  }
1335
1335
  if (rf & 2) {
@@ -1340,9 +1340,9 @@
1340
1340
  }
1341
1341
  function InputRenderComponent_select_box_3_Template(rf, ctx) {
1342
1342
  if (rf & 1) {
1343
- var _r12_1 = i0.ɵɵgetCurrentView();
1343
+ var _r13_1 = i0.ɵɵgetCurrentView();
1344
1344
  i0.ɵɵelementStart(0, "select-box", 8);
1345
- i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_3_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.value = $event; })("ngModelChange", function InputRenderComponent_select_box_3_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.onChange($event.key); });
1345
+ i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_3_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r13_1); var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.value = $event; })("ngModelChange", function InputRenderComponent_select_box_3_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r13_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.onChange($event.key); });
1346
1346
  i0.ɵɵelementEnd();
1347
1347
  }
1348
1348
  if (rf & 2) {
@@ -1352,9 +1352,9 @@
1352
1352
  }
1353
1353
  function InputRenderComponent_number_input_4_Template(rf, ctx) {
1354
1354
  if (rf & 1) {
1355
- var _r15_1 = i0.ɵɵgetCurrentView();
1355
+ var _r16_1 = i0.ɵɵgetCurrentView();
1356
1356
  i0.ɵɵelementStart(0, "number-input", 9);
1357
- i0.ɵɵlistener("modelChange", function InputRenderComponent_number_input_4_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r15_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.value = $event; })("modelChange", function InputRenderComponent_number_input_4_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r15_1); var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.onChange($event); });
1357
+ i0.ɵɵlistener("modelChange", function InputRenderComponent_number_input_4_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r16_1); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.value = $event; })("modelChange", function InputRenderComponent_number_input_4_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r16_1); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.onChange($event); });
1358
1358
  i0.ɵɵelementEnd();
1359
1359
  }
1360
1360
  if (rf & 2) {
@@ -1364,9 +1364,9 @@
1364
1364
  }
1365
1365
  function InputRenderComponent_boolean_input_5_Template(rf, ctx) {
1366
1366
  if (rf & 1) {
1367
- var _r18_1 = i0.ɵɵgetCurrentView();
1367
+ var _r19_1 = i0.ɵɵgetCurrentView();
1368
1368
  i0.ɵɵelementStart(0, "boolean-input", 9);
1369
- i0.ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_5_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r18_1); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.value = $event; })("modelChange", function InputRenderComponent_boolean_input_5_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r18_1); var ctx_r19 = i0.ɵɵnextContext(); return ctx_r19.onChange($event); });
1369
+ i0.ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_5_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r19_1); var ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.value = $event; })("modelChange", function InputRenderComponent_boolean_input_5_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r19_1); var ctx_r20 = i0.ɵɵnextContext(); return ctx_r20.onChange($event); });
1370
1370
  i0.ɵɵelementEnd();
1371
1371
  }
1372
1372
  if (rf & 2) {
@@ -1424,11 +1424,21 @@
1424
1424
  this.modelChange.emit(this.model);
1425
1425
  }
1426
1426
  };
1427
+ InputRenderComponent.prototype.onInputBlur = function () {
1428
+ var _a;
1429
+ if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) === 'password') {
1430
+ this.savePassword();
1431
+ }
1432
+ };
1427
1433
  InputRenderComponent.prototype.savePassword = function () {
1428
1434
  this.model = this.value || '';
1429
1435
  this.modelChange.emit(this.model);
1430
1436
  this.setReadOnlyPassword(true);
1431
1437
  };
1438
+ InputRenderComponent.prototype.cancelEditPassword = function () {
1439
+ this.model = undefined;
1440
+ this.setReadOnlyPassword(true);
1441
+ };
1432
1442
  InputRenderComponent.prototype.editPassword = function () {
1433
1443
  this.setReadOnlyPassword(false);
1434
1444
  };
@@ -1438,7 +1448,7 @@
1438
1448
  return InputRenderComponent;
1439
1449
  }(BaseSchemaComponent));
1440
1450
  InputRenderComponent.ɵfac = function InputRenderComponent_Factory(t) { return ɵInputRenderComponent_BaseFactory(t || InputRenderComponent); };
1441
- InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 8, consts: [[1, "schema-input-container", 3, "ngClass"], ["class", "edit-icon", 4, "ngIf"], ["class", "form-control", "dndDropzone", "", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], [1, "edit-icon"], ["size", "15", "type", "primary", 3, "name", "onClick"], ["dndDropzone", "", 1, "form-control", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) {
1451
+ InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 8, consts: [[1, "schema-input-container", 3, "ngClass"], ["class", "edit-icon", 4, "ngIf"], ["class", "form-control", "dndDropzone", "", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "blur", "ngModelChange", "dndDrop", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], [1, "edit-icon"], ["size", "15", "type", "primary", 3, "name", "onClick"], ["dndDropzone", "", 1, "form-control", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "blur", "ngModelChange", "dndDrop"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) {
1442
1452
  if (rf & 1) {
1443
1453
  i0.ɵɵelementStart(0, "div", 0);
1444
1454
  i0.ɵɵtemplate(1, InputRenderComponent_div_1_Template, 2, 1, "div", 1);
@@ -1461,7 +1471,7 @@
1461
1471
  i0.ɵɵadvance(1);
1462
1472
  i0.ɵɵproperty("ngIf", ctx.schema.type === "boolean");
1463
1473
  }
1464
- }, directives: [i1.NgClass, i1.NgIf, i2$1.IconComponent, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator, i7.SelectBoxComponent, NumberInputComponent, BooleanInputComponent], styles: [".schema-input-container-password[_ngcontent-%COMP%]{position:relative}.schema-input-container-password[_ngcontent-%COMP%] .edit-icon[_ngcontent-%COMP%]{position:absolute;right:-5px;top:10px;z-index:1}.schema-input-container-password[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;padding-right:40px!important;width:calc(100% - 30px)!important}"] });
1474
+ }, directives: [i1.NgClass, i1.NgIf, i2$1.IconComponent, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator, i7.SelectBoxComponent, NumberInputComponent, BooleanInputComponent], styles: [".schema-input-container-password[_ngcontent-%COMP%]{position:relative}.schema-input-container-password[_ngcontent-%COMP%] .edit-icon[_ngcontent-%COMP%]{position:absolute;right:-5px;top:10px;width:30px;z-index:1}.schema-input-container-password[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;padding-right:40px!important}"] });
1465
1475
  var ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputRenderComponent);
1466
1476
  /*@__PURE__*/ (function () {
1467
1477
  i0.ɵsetClassMetadata(InputRenderComponent, [{