@yourself.create/ngx-form-designer 0.0.9 → 0.0.10

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.
@@ -544,16 +544,10 @@ class FormEngine {
544
544
  return;
545
545
  const value = this.values[fieldName];
546
546
  const fieldErrors = [];
547
- const ruleErrors = this.getRuleValidationErrors(field);
548
547
  // Visibility check
549
548
  const isVisible = this.isFieldVisible(field.id);
550
549
  if (!isVisible) {
551
- if (ruleErrors.length > 0) {
552
- this.errors[fieldName] = ruleErrors;
553
- }
554
- else {
555
- delete this.errors[fieldName];
556
- }
550
+ delete this.errors[fieldName];
557
551
  return;
558
552
  }
559
553
  const isRequired = this.isFieldRequired(field.id);
@@ -584,9 +578,6 @@ class FormEngine {
584
578
  }
585
579
  }
586
580
  }
587
- if (ruleErrors.length > 0) {
588
- fieldErrors.push(...ruleErrors);
589
- }
590
581
  if (fieldErrors.length > 0) {
591
582
  this.errors[fieldName] = fieldErrors;
592
583
  }
@@ -594,11 +585,6 @@ class FormEngine {
594
585
  delete this.errors[fieldName];
595
586
  }
596
587
  }
597
- getRuleValidationErrors(field) {
598
- return this.getEnterpriseRuleOutcomes(field)
599
- .filter(({ rule, conditionMet }) => rule.severity === 'error' && !conditionMet && rule.elseAction === undefined)
600
- .map(({ rule }) => this.getRuleValidationMessage(rule));
601
- }
602
588
  // Generic rule evaluator
603
589
  evaluateDependencyRules(field, positiveEffect, negativeEffect, startValue) {
604
590
  if (!field.dependencies)
@@ -32621,7 +32607,7 @@ class TextFieldWidgetComponent {
32621
32607
  return styles;
32622
32608
  }
32623
32609
  return mergeAndNormalize(styles, {
32624
- paddingLeft: `calc(20px + ${Math.max(this.displayPrefix.length, 1)}ch)`
32610
+ paddingLeft: `calc(25px + ${Math.max(this.displayPrefix.length, 1)}ch) !important`
32625
32611
  });
32626
32612
  }
32627
32613
  hasWrapperFrame() {
@@ -37037,7 +37023,7 @@ class InlineQuillEditorComponent {
37037
37023
  setHtml(nextHtml) {
37038
37024
  if (!this.quill)
37039
37025
  return;
37040
- if (this.quill.hasFocus())
37026
+ if (this.hasFocus || this.quill.hasFocus())
37041
37027
  return;
37042
37028
  const normalized = nextHtml ?? '';
37043
37029
  if (normalized === this.lastHtml)