@praxisui/visual-builder 10.0.0-rc.84 → 10.0.0-rc.85

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-12-03T03:08:49.526Z",
3
+ "generatedAt": "2026-12-03T11:59:47.994Z",
4
4
  "packageName": "@praxisui/visual-builder",
5
- "packageVersion": "10.0.0-rc.84",
5
+ "packageVersion": "10.0.0-rc.85",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 1,
@@ -7022,7 +7022,23 @@ class FieldConditionEditorComponent {
7022
7022
  return valueType === 'field' ? 'field' : 'literal';
7023
7023
  }
7024
7024
  // Template methods
7025
+ normalizeFieldType(type) {
7026
+ switch ((type ?? '').trim()) {
7027
+ case 'date-time':
7028
+ return FieldType.DATETIME;
7029
+ case 'string-array':
7030
+ case 'number-array':
7031
+ case 'date-array':
7032
+ case 'array<number>':
7033
+ case 'object-array':
7034
+ case 'array<object>':
7035
+ return FieldType.ARRAY;
7036
+ default:
7037
+ return type ?? '';
7038
+ }
7039
+ }
7025
7040
  getFieldIcon(type) {
7041
+ const normalized = this.normalizeFieldType(type);
7026
7042
  const icons = {
7027
7043
  string: 'text_fields',
7028
7044
  number: 'pin',
@@ -7040,7 +7056,7 @@ class FieldConditionEditorComponent {
7040
7056
  uuid: 'fingerprint',
7041
7057
  json: 'data_object',
7042
7058
  };
7043
- return icons[type] || 'text_fields';
7059
+ return icons[normalized] || 'text_fields';
7044
7060
  }
7045
7061
  getOperatorLabel(operator) {
7046
7062
  return OPERATOR_LABELS[operator] || operator;
@@ -7084,7 +7100,8 @@ class FieldConditionEditorComponent {
7084
7100
  getCompatibleFields() {
7085
7101
  if (!this.selectedField)
7086
7102
  return [];
7087
- return Object.values(this.fieldSchemas).filter((field) => field.type === this.selectedField?.type &&
7103
+ const selectedType = this.normalizeFieldType(this.selectedField.type);
7104
+ return Object.values(this.fieldSchemas).filter((field) => this.normalizeFieldType(field.type) === selectedType &&
7088
7105
  field.name !== this.selectedField?.name);
7089
7106
  }
7090
7107
  getPreviewText() {
@@ -7149,9 +7166,10 @@ class FieldConditionEditorComponent {
7149
7166
  return this.selectedField?.type === FieldType.BOOLEAN;
7150
7167
  }
7151
7168
  isDateField() {
7152
- return (this.selectedField?.type === FieldType.DATE ||
7153
- this.selectedField?.type === FieldType.DATETIME ||
7154
- this.selectedField?.type === FieldType.TIME);
7169
+ const type = this.normalizeFieldType(this.selectedField?.type);
7170
+ return (type === FieldType.DATE ||
7171
+ type === FieldType.DATETIME ||
7172
+ type === FieldType.TIME);
7155
7173
  }
7156
7174
  isEnumField() {
7157
7175
  return (this.selectedField?.type === FieldType.ENUM ||
@@ -7190,7 +7208,8 @@ class FieldConditionEditorComponent {
7190
7208
  this.conditionForm.patchValue({ value: false });
7191
7209
  }
7192
7210
  if (this.selectedField) {
7193
- this.availableOperators = (FIELD_TYPE_OPERATORS[this.selectedField.type] || []).filter((operator) => VISUAL_SAFE_OPERATORS.has(operator));
7211
+ const normalizedFieldType = this.normalizeFieldType(this.selectedField.type);
7212
+ this.availableOperators = (FIELD_TYPE_OPERATORS[normalizedFieldType] || []).filter((operator) => VISUAL_SAFE_OPERATORS.has(operator));
7194
7213
  // Reset operator if not compatible
7195
7214
  const currentOperator = this.conditionForm.get('operator')?.value;
7196
7215
  if (currentOperator &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/visual-builder",
3
- "version": "10.0.0-rc.84",
3
+ "version": "10.0.0-rc.85",
4
4
  "description": "Visual rule and expression builder for Praxis UI with JSON Logic authoring, validation and context variables.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -8,8 +8,8 @@
8
8
  "@angular/cdk": "^21.0.0",
9
9
  "@angular/material": "^21.0.0",
10
10
  "@angular/forms": "^21.0.0",
11
- "@praxisui/ai": "^10.0.0-rc.84",
12
- "@praxisui/core": "^10.0.0-rc.84",
11
+ "@praxisui/ai": "^10.0.0-rc.85",
12
+ "@praxisui/core": "^10.0.0-rc.85",
13
13
  "rxjs": "~7.8.0"
14
14
  },
15
15
  "dependencies": {
@@ -2547,6 +2547,7 @@ declare class FieldConditionEditorComponent implements OnInit, OnChanges {
2547
2547
  private resolveFieldSchema;
2548
2548
  private normalizeOperatorForForm;
2549
2549
  private normalizeValueTypeForVisualEditor;
2550
+ private normalizeFieldType;
2550
2551
  getFieldIcon(type: string): string;
2551
2552
  getOperatorLabel(operator: string): string;
2552
2553
  getValuePlaceholder(): string;