@fuentis/phoenix-ui 0.0.9-alpha.599 → 0.0.9-alpha.602

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.
@@ -3960,8 +3960,10 @@ class MetaFormAbstract {
3960
3960
  control.configuration.type === ControlType.TEXT_AREA) {
3961
3961
  validators.push(WhiteSpaceValidator.noWhiteSpaceValidator);
3962
3962
  }
3963
- if (control.configuration.type === ControlType.TEXT ||
3964
- control.configuration.type === ControlType.TEXT_AREA) {
3963
+ if ((control.configuration.type === ControlType.TEXT &&
3964
+ !control.configuration?.skipValidation) ||
3965
+ (control.configuration.type === ControlType.TEXT_AREA &&
3966
+ !control.configuration?.skipValidation)) {
3965
3967
  validators.push(noDangerousCharsValidator());
3966
3968
  }
3967
3969
  this.metaForm.get(control.configuration.key)?.setValidators(validators);
@@ -6199,6 +6201,20 @@ class MetaSwitchComponent extends BaseMetaField {
6199
6201
  ], usesInheritance: true, ngImport: i0, template: `
6200
6202
  <div>
6201
6203
  <phoenix-meta-label [control]="control"></phoenix-meta-label>
6204
+
6205
+ <p-toggleSwitch
6206
+ [attr.data-cy]="'switch-' + control?.id"
6207
+ class="ml-1 mr-1"
6208
+ [hidden]="control?.hidden"
6209
+ [(ngModel)]="value"
6210
+ (ngModelChange)="onChanged($event)"
6211
+ [disabled]="disable"
6212
+ ></p-toggleSwitch>
6213
+
6214
+ <phoenix-inline-field-error
6215
+ *ngIf="!control?.hidden"
6216
+ [ctrl]="ctrl"
6217
+ ></phoenix-inline-field-error>
6202
6218
  @if (control?.configuration?.message) {
6203
6219
  <p-message
6204
6220
  [severity]="control.configuration.message?.type"
@@ -6219,20 +6235,6 @@ class MetaSwitchComponent extends BaseMetaField {
6219
6235
  </span></p-message
6220
6236
  >
6221
6237
  }
6222
-
6223
- <p-toggleSwitch
6224
- [attr.data-cy]="'switch-' + control?.id"
6225
- class="ml-1 mr-1"
6226
- [hidden]="control?.hidden"
6227
- [(ngModel)]="value"
6228
- (ngModelChange)="onChanged($event)"
6229
- [disabled]="disable"
6230
- ></p-toggleSwitch>
6231
-
6232
- <phoenix-inline-field-error
6233
- *ngIf="!control?.hidden"
6234
- [ctrl]="ctrl"
6235
- ></phoenix-inline-field-error>
6236
6238
  </div>
6237
6239
  `, isInline: true, styles: [":host ::ng-deep .p-toggleswitch{margin-top:12px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: InlineFieldError, selector: "phoenix-inline-field-error", inputs: ["ctrl"] }, { kind: "component", type: MetaLabelComponent, selector: "phoenix-meta-label", inputs: ["control"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: ToggleSwitchModule }, { kind: "component", type: i3$7.ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MessageModule }, { kind: "component", type: i2$5.Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] });
6238
6240
  }
@@ -6250,6 +6252,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6250
6252
  ], template: `
6251
6253
  <div>
6252
6254
  <phoenix-meta-label [control]="control"></phoenix-meta-label>
6255
+
6256
+ <p-toggleSwitch
6257
+ [attr.data-cy]="'switch-' + control?.id"
6258
+ class="ml-1 mr-1"
6259
+ [hidden]="control?.hidden"
6260
+ [(ngModel)]="value"
6261
+ (ngModelChange)="onChanged($event)"
6262
+ [disabled]="disable"
6263
+ ></p-toggleSwitch>
6264
+
6265
+ <phoenix-inline-field-error
6266
+ *ngIf="!control?.hidden"
6267
+ [ctrl]="ctrl"
6268
+ ></phoenix-inline-field-error>
6253
6269
  @if (control?.configuration?.message) {
6254
6270
  <p-message
6255
6271
  [severity]="control.configuration.message?.type"
@@ -6270,20 +6286,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6270
6286
  </span></p-message
6271
6287
  >
6272
6288
  }
6273
-
6274
- <p-toggleSwitch
6275
- [attr.data-cy]="'switch-' + control?.id"
6276
- class="ml-1 mr-1"
6277
- [hidden]="control?.hidden"
6278
- [(ngModel)]="value"
6279
- (ngModelChange)="onChanged($event)"
6280
- [disabled]="disable"
6281
- ></p-toggleSwitch>
6282
-
6283
- <phoenix-inline-field-error
6284
- *ngIf="!control?.hidden"
6285
- [ctrl]="ctrl"
6286
- ></phoenix-inline-field-error>
6287
6289
  </div>
6288
6290
  `, providers: [
6289
6291
  {