novo-elements 11.2.0 → 11.2.1-next.2
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/fesm2022/novo-elements-addons-ace-editor.mjs.map +1 -1
- package/fesm2022/novo-elements-addons-ckeditor.mjs.map +1 -1
- package/fesm2022/novo-elements-addons-code-editor.mjs +3 -3
- package/fesm2022/novo-elements-addons-code-editor.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-agenda.mjs +15 -15
- package/fesm2022/novo-elements-elements-agenda.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-aside.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-autocomplete.mjs +7 -5
- package/fesm2022/novo-elements-elements-autocomplete.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-avatar.mjs +2 -1
- package/fesm2022/novo-elements-elements-avatar.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-breadcrumbs.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-button.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-calendar.mjs +7 -4
- package/fesm2022/novo-elements-elements-calendar.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-card.mjs +1 -1
- package/fesm2022/novo-elements-elements-card.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-category-dropdown.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-checkbox.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-chips.mjs +18 -14
- package/fesm2022/novo-elements-elements-chips.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-color-picker.mjs +1 -1
- package/fesm2022/novo-elements-elements-color-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-common.mjs +28 -28
- package/fesm2022/novo-elements-elements-common.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-data-table.mjs +28 -28
- package/fesm2022/novo-elements-elements-data-table.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-date-picker.mjs +4 -4
- package/fesm2022/novo-elements-elements-date-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-date-time-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-divider.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-drag-drop.mjs +7 -7
- package/fesm2022/novo-elements-elements-drag-drop.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-dropdown.mjs +9 -9
- package/fesm2022/novo-elements-elements-dropdown.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-expansion.mjs +5 -5
- package/fesm2022/novo-elements-elements-expansion.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-field.mjs +20 -14
- package/fesm2022/novo-elements-elements-field.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-flex.mjs +12 -12
- package/fesm2022/novo-elements-elements-flex.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-form.mjs +16 -15
- package/fesm2022/novo-elements-elements-form.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-header.mjs +6 -6
- package/fesm2022/novo-elements-elements-header.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-icon.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-layout.mjs +2 -2
- package/fesm2022/novo-elements-elements-layout.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-list.mjs +12 -12
- package/fesm2022/novo-elements-elements-list.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-loading.mjs +5 -5
- package/fesm2022/novo-elements-elements-loading.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-menu.mjs +4 -4
- package/fesm2022/novo-elements-elements-menu.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-modal.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-multi-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-non-ideal-state.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-picker.mjs +5 -5
- package/fesm2022/novo-elements-elements-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-places.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-popover.mjs +3 -3
- package/fesm2022/novo-elements-elements-popover.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-progress.mjs +3 -3
- package/fesm2022/novo-elements-elements-progress.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-query-builder.mjs +27 -25
- package/fesm2022/novo-elements-elements-query-builder.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-quick-note.mjs +2 -2
- package/fesm2022/novo-elements-elements-quick-note.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-radio.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-search.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-select-search.mjs +2 -2
- package/fesm2022/novo-elements-elements-select-search.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-select.mjs +5 -5
- package/fesm2022/novo-elements-elements-select.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-simple-table.mjs +30 -30
- package/fesm2022/novo-elements-elements-simple-table.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-slider.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-stepper.mjs +4 -4
- package/fesm2022/novo-elements-elements-stepper.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-switch.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tabbed-group-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tabs.mjs +2 -1
- package/fesm2022/novo-elements-elements-tabs.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tiles.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-time-picker.mjs +1 -0
- package/fesm2022/novo-elements-elements-time-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tip-well.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-toast.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-toolbar.mjs +1 -1
- package/fesm2022/novo-elements-elements-toolbar.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tooltip.mjs +3 -4
- package/fesm2022/novo-elements-elements-tooltip.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-unless.mjs +1 -1
- package/fesm2022/novo-elements-elements-unless.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-value.mjs +2 -2
- package/fesm2022/novo-elements-elements-value.mjs.map +1 -1
- package/fesm2022/novo-elements-pipes.mjs +9 -9
- package/fesm2022/novo-elements-pipes.mjs.map +1 -1
- package/fesm2022/novo-elements-services.mjs +21 -22
- package/fesm2022/novo-elements-services.mjs.map +1 -1
- package/fesm2022/novo-elements-utils.mjs +33 -17
- package/fesm2022/novo-elements-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/services/date-format/DateFormat.d.ts +2 -2
|
@@ -138,7 +138,7 @@ class QueryBuilderService {
|
|
|
138
138
|
this._editTypeFn = defaultEditTypeFn;
|
|
139
139
|
this._config = {
|
|
140
140
|
fields: [],
|
|
141
|
-
staticFieldSelection: null
|
|
141
|
+
staticFieldSelection: null,
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
/** Adds a field definition that was not included as part of the content children. */
|
|
@@ -191,7 +191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
191
191
|
type: Directive,
|
|
192
192
|
args: [{
|
|
193
193
|
selector: '[novoConditionInputDef]',
|
|
194
|
-
standalone: false
|
|
194
|
+
standalone: false,
|
|
195
195
|
}]
|
|
196
196
|
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
197
197
|
/**
|
|
@@ -208,7 +208,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
208
208
|
type: Directive,
|
|
209
209
|
args: [{
|
|
210
210
|
selector: '[novoConditionOperatorsDef]',
|
|
211
|
-
standalone: false
|
|
211
|
+
standalone: false,
|
|
212
212
|
}]
|
|
213
213
|
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
214
214
|
/**
|
|
@@ -276,7 +276,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
276
276
|
type: Directive,
|
|
277
277
|
args: [{
|
|
278
278
|
selector: '[novoConditionFieldDef]',
|
|
279
|
-
standalone: false
|
|
279
|
+
standalone: false,
|
|
280
280
|
}]
|
|
281
281
|
}], ctorParameters: () => [{ type: QueryBuilderService }] });
|
|
282
282
|
|
|
@@ -436,8 +436,8 @@ class NovoDefaultAddressConditionDef extends AbstractConditionFieldDef {
|
|
|
436
436
|
const current = this.getValue(formGroup);
|
|
437
437
|
const updated = Array.isArray(current) ? [...current, valueToAdd] : [valueToAdd];
|
|
438
438
|
formGroup.get('value').setValue(this.updateRadiusInValues(formGroup, updated));
|
|
439
|
-
this.inputChildren.forEach(
|
|
440
|
-
|
|
439
|
+
this.inputChildren.forEach(inputChild => {
|
|
440
|
+
inputChild.nativeElement.value = '';
|
|
441
441
|
});
|
|
442
442
|
this.getCurrentInput(viewIndex)?.nativeElement.focus();
|
|
443
443
|
this.closePlacesList(viewIndex);
|
|
@@ -600,7 +600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
600
600
|
`,
|
|
601
601
|
encapsulation: ViewEncapsulation.None,
|
|
602
602
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
603
|
-
standalone: false
|
|
603
|
+
standalone: false,
|
|
604
604
|
}]
|
|
605
605
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }], propDecorators: { overlayChildren: [{
|
|
606
606
|
type: ViewChildren,
|
|
@@ -667,7 +667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
667
667
|
`,
|
|
668
668
|
encapsulation: ViewEncapsulation.None,
|
|
669
669
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
670
|
-
standalone: false
|
|
670
|
+
standalone: false,
|
|
671
671
|
}]
|
|
672
672
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }] });
|
|
673
673
|
|
|
@@ -814,7 +814,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
814
814
|
`,
|
|
815
815
|
encapsulation: ViewEncapsulation.None,
|
|
816
816
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
817
|
-
standalone: false
|
|
817
|
+
standalone: false,
|
|
818
818
|
}]
|
|
819
819
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }], propDecorators: { overlayChildren: [{
|
|
820
820
|
type: ViewChildren,
|
|
@@ -992,7 +992,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
992
992
|
`,
|
|
993
993
|
encapsulation: ViewEncapsulation.None,
|
|
994
994
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
995
|
-
standalone: false
|
|
995
|
+
standalone: false,
|
|
996
996
|
}]
|
|
997
997
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }], propDecorators: { overlayChildren: [{
|
|
998
998
|
type: ViewChildren,
|
|
@@ -1124,7 +1124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1124
1124
|
// means the template in the table's view will not have the updated value (and in fact will cause
|
|
1125
1125
|
// an ExpressionChangedAfterItHasBeenCheckedError).
|
|
1126
1126
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
1127
|
-
standalone: false
|
|
1127
|
+
standalone: false,
|
|
1128
1128
|
}]
|
|
1129
1129
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }] });
|
|
1130
1130
|
|
|
@@ -1198,7 +1198,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1198
1198
|
`,
|
|
1199
1199
|
encapsulation: ViewEncapsulation.None,
|
|
1200
1200
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
1201
|
-
standalone: false
|
|
1201
|
+
standalone: false,
|
|
1202
1202
|
}]
|
|
1203
1203
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }] });
|
|
1204
1204
|
|
|
@@ -1244,7 +1244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1244
1244
|
`,
|
|
1245
1245
|
encapsulation: ViewEncapsulation.None,
|
|
1246
1246
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
1247
|
-
standalone: false
|
|
1247
|
+
standalone: false,
|
|
1248
1248
|
}]
|
|
1249
1249
|
}] });
|
|
1250
1250
|
|
|
@@ -1285,7 +1285,7 @@ class NovoDefaultPickerConditionDef extends AbstractConditionFieldDef {
|
|
|
1285
1285
|
return (!options || !(options.find(option => option.value === selectedOption)));
|
|
1286
1286
|
}).map(value => ({
|
|
1287
1287
|
value,
|
|
1288
|
-
label: value
|
|
1288
|
+
label: value,
|
|
1289
1289
|
}));
|
|
1290
1290
|
}
|
|
1291
1291
|
applyCustomItem() {
|
|
@@ -1386,7 +1386,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1386
1386
|
`,
|
|
1387
1387
|
encapsulation: ViewEncapsulation.None,
|
|
1388
1388
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
1389
|
-
standalone: false
|
|
1389
|
+
standalone: false,
|
|
1390
1390
|
}]
|
|
1391
1391
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }] });
|
|
1392
1392
|
|
|
@@ -1419,7 +1419,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1419
1419
|
type: Directive,
|
|
1420
1420
|
args: [{
|
|
1421
1421
|
selector: '[conditionInputOutlet]',
|
|
1422
|
-
standalone: false
|
|
1422
|
+
standalone: false,
|
|
1423
1423
|
}]
|
|
1424
1424
|
}], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }] });
|
|
1425
1425
|
/**
|
|
@@ -1438,7 +1438,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1438
1438
|
type: Directive,
|
|
1439
1439
|
args: [{
|
|
1440
1440
|
selector: '[conditionOperatorOutlet]',
|
|
1441
|
-
standalone: false
|
|
1441
|
+
standalone: false,
|
|
1442
1442
|
}]
|
|
1443
1443
|
}], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }] });
|
|
1444
1444
|
class ConditionBuilderComponent {
|
|
@@ -1549,8 +1549,9 @@ class ConditionBuilderComponent {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
getField() {
|
|
1551
1551
|
const field = this.parentForm?.value?.field;
|
|
1552
|
-
if (!field)
|
|
1552
|
+
if (!field) {
|
|
1553
1553
|
return null;
|
|
1554
|
+
}
|
|
1554
1555
|
return this.fieldConfig.find(field);
|
|
1555
1556
|
}
|
|
1556
1557
|
getDefaultField() {
|
|
@@ -1587,8 +1588,9 @@ class ConditionBuilderComponent {
|
|
|
1587
1588
|
this.parentForm.get('conditionType')?.setValue(this.conditionType());
|
|
1588
1589
|
}
|
|
1589
1590
|
findDefinitionForField(field) {
|
|
1590
|
-
if (!field)
|
|
1591
|
+
if (!field) {
|
|
1591
1592
|
return;
|
|
1593
|
+
}
|
|
1592
1594
|
const editType = this.editTypeFn()(field);
|
|
1593
1595
|
// Don't look at dataSpecialization it is no good, this misses currency, and percent
|
|
1594
1596
|
const { name } = field;
|
|
@@ -1631,8 +1633,8 @@ class ConditionBuilderComponent {
|
|
|
1631
1633
|
queryBuilderService = new QueryBuilderService(labelService);
|
|
1632
1634
|
}
|
|
1633
1635
|
return queryBuilderService;
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
+
},
|
|
1637
|
+
},
|
|
1636
1638
|
], viewQueries: [{ propertyName: "_operatorOutlet", first: true, predicate: ConditionOperatorOutlet, descendants: true, static: true }, { propertyName: "_inputOutlet", first: true, predicate: ConditionInputOutlet, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"parentForm\">\n <novo-grid gap=\"1rem\" [columns]=\"gridColumns()\" align=\"end\">\n <novo-field class=\"condition-field\" *ngIf=\"!staticFieldSelection()\">\n <novo-select\n [placeholder]=\"labels.chooseAField\"\n formControlName=\"field\"\n (onSelect)=\"updateFieldSelection()\"\n overlayWidth=\"24rem\"\n overlayHeight=\"20rem\"\n [displayWith]=\"fieldDisplayWith\"\n [style.minWidth.px]=\"160\"\n [style.maxWidth.px]=\"(hideOperator() || isConditionHost) ? 200 : 160\"\n [displayIcon]=\"displayIcon\">\n <novo-optgroup class=\"filter-search-results\">\n <novo-option>\n <novo-select-search [formControl]=\"searchTerm\" [clearSearchInput]=\"false\"></novo-select-search>\n </novo-option>\n <ng-container *ngIf=\"results$ | async as results; else loading\">\n <ng-container *ngIf=\"results.length\">\n <novo-option *ngFor=\"let field of results\" value=\"{{ field.name }}\"\n [attr.data-automation-id]=\"field.name\">\n {{ field.label || field.name }}\n </novo-option>\n </ng-container>\n </ng-container>\n </novo-optgroup>\n </novo-select>\n </novo-field>\n\n <div class=\"condition-operator\">\n <ng-container conditionOperatorOutlet></ng-container>\n </div>\n\n <div class=\"condition-input\">\n <ng-container conditionInputOutlet></ng-container>\n </div>\n </novo-grid>\n <ng-content></ng-content>\n</form>\n\n<novo-condition-templates *ngIf=\"isConditionHost\" [addressConfig]=\"addressConfig\" [dateConfig]=\"dateConfig\"/>\n\n<!-- LOADING TEMPLATE -->\n<ng-template #loading>\n <novo-loading></novo-loading>\n</ng-template>\n", styles: [":host{position:relative;display:block;width:100%}:host.condition-host{padding:var(--spacing-md);margin-bottom:1rem}:host .condition-field{grid-template-columns:minmax(fit-content,1fr);width:100%;width:-webkit-fill-available}:host .condition-operator::ng-deep .novo-select{min-width:13rem}:host .condition-input::ng-deep novo-field.novo-field-layout-vertical{grid-template-columns:minmax(fit-content,1fr);width:-webkit-fill-available}:host .condition-input::ng-deep novo-field.novo-field-layout-vertical .novo-input-element{width:100%}:host .condition-input::ng-deep novo-field{width:fit-content}:host .condition-input::ng-deep novo-field.address-radius{width:100px;min-width:100px;max-width:100px;margin-right:1rem}:host .condition-input::ng-deep novo-field.address-radius novo-select{min-width:70px}:host .condition-input::ng-deep novo-field.address-location .novo-field-suffix{align-self:flex-end}:host .condition-input::ng-deep .novo-field-infix{white-space:nowrap;overflow:hidden}:host .condition-input::ng-deep novo-chip-list{flex-grow:1}:host .condition-input::ng-deep novo-chip-list novo-chip{max-width:min(33rem,100% - 9px)}:host .condition-input::ng-deep novo-chips{border-bottom:none!important}:host .condition-input::ng-deep novo-chips input{padding-left:0!important}:host .condition-input::ng-deep novo-radio-group{padding:0!important}:host .and-or-filter-button{box-sizing:border-box;background:#fff;border:1px solid #ddd;color:#5691f5;display:inline-block;position:relative;cursor:pointer;margin:.4rem auto;align-items:center;text-align:center;-webkit-user-select:none;user-select:none;outline:none;white-space:nowrap;text-transform:uppercase;overflow:hidden;transition:box-shadow .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5.GapDirective, selector: "[gap]", inputs: ["gap"] }, { kind: "component", type: i5$1.NovoSelectElement, selector: "novo-select", inputs: ["disabled", "required", "tabIndex", "id", "name", "placeholder", "readonly", "headerConfig", "position", "overlayWidth", "overlayHeight", "displayIcon", "displayWith", "compareWith", "hideLegacyOptions", "value", "multiple", "options"], outputs: ["onSelect", "selectionChange", "valueChange", "openedChange", "opened", "closed"] }, { kind: "component", type: i6.NovoFieldElement, selector: "novo-field", inputs: ["layout", "appearance", "customOverlayOrigin", "width"], outputs: ["valueChanges", "stateChanges"] }, { kind: "component", type: i5.NovoOption, selector: "novo-option", inputs: ["selected", "keepOpen", "novoInert", "value", "disabled"], exportAs: ["novoOption"] }, { kind: "component", type: i5.NovoOptgroup, selector: "novo-optgroup", inputs: ["disabled", "label"], exportAs: ["novoOptgroup"] }, { kind: "component", type: i8.NovoGridElement, selector: "novo-grid", inputs: ["direction", "align", "justify", "columns"] }, { kind: "component", type: i9$3.NovoLoadingElement, selector: "novo-loading", inputs: ["theme", "color", "size"] }, { kind: "component", type: i9$2.NovoSelectSearchComponent, selector: "novo-select-search", inputs: ["name", "placeholderLabel", "type", "noEntriesFoundLabel", "indexAndLengthScreenReaderText", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "allowDeselectDuringFilter", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toogleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "directive", type: ConditionInputOutlet, selector: "[conditionInputOutlet]" }, { kind: "directive", type: ConditionOperatorOutlet, selector: "[conditionOperatorOutlet]" }, { kind: "component", type: NovoConditionTemplatesComponent, selector: "novo-condition-templates", inputs: ["addressConfig", "dateConfig"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1637
1639
|
}
|
|
1638
1640
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ConditionBuilderComponent, decorators: [{
|
|
@@ -1646,8 +1648,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1646
1648
|
queryBuilderService = new QueryBuilderService(labelService);
|
|
1647
1649
|
}
|
|
1648
1650
|
return queryBuilderService;
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
+
},
|
|
1652
|
+
},
|
|
1651
1653
|
], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<form [formGroup]=\"parentForm\">\n <novo-grid gap=\"1rem\" [columns]=\"gridColumns()\" align=\"end\">\n <novo-field class=\"condition-field\" *ngIf=\"!staticFieldSelection()\">\n <novo-select\n [placeholder]=\"labels.chooseAField\"\n formControlName=\"field\"\n (onSelect)=\"updateFieldSelection()\"\n overlayWidth=\"24rem\"\n overlayHeight=\"20rem\"\n [displayWith]=\"fieldDisplayWith\"\n [style.minWidth.px]=\"160\"\n [style.maxWidth.px]=\"(hideOperator() || isConditionHost) ? 200 : 160\"\n [displayIcon]=\"displayIcon\">\n <novo-optgroup class=\"filter-search-results\">\n <novo-option>\n <novo-select-search [formControl]=\"searchTerm\" [clearSearchInput]=\"false\"></novo-select-search>\n </novo-option>\n <ng-container *ngIf=\"results$ | async as results; else loading\">\n <ng-container *ngIf=\"results.length\">\n <novo-option *ngFor=\"let field of results\" value=\"{{ field.name }}\"\n [attr.data-automation-id]=\"field.name\">\n {{ field.label || field.name }}\n </novo-option>\n </ng-container>\n </ng-container>\n </novo-optgroup>\n </novo-select>\n </novo-field>\n\n <div class=\"condition-operator\">\n <ng-container conditionOperatorOutlet></ng-container>\n </div>\n\n <div class=\"condition-input\">\n <ng-container conditionInputOutlet></ng-container>\n </div>\n </novo-grid>\n <ng-content></ng-content>\n</form>\n\n<novo-condition-templates *ngIf=\"isConditionHost\" [addressConfig]=\"addressConfig\" [dateConfig]=\"dateConfig\"/>\n\n<!-- LOADING TEMPLATE -->\n<ng-template #loading>\n <novo-loading></novo-loading>\n</ng-template>\n", styles: [":host{position:relative;display:block;width:100%}:host.condition-host{padding:var(--spacing-md);margin-bottom:1rem}:host .condition-field{grid-template-columns:minmax(fit-content,1fr);width:100%;width:-webkit-fill-available}:host .condition-operator::ng-deep .novo-select{min-width:13rem}:host .condition-input::ng-deep novo-field.novo-field-layout-vertical{grid-template-columns:minmax(fit-content,1fr);width:-webkit-fill-available}:host .condition-input::ng-deep novo-field.novo-field-layout-vertical .novo-input-element{width:100%}:host .condition-input::ng-deep novo-field{width:fit-content}:host .condition-input::ng-deep novo-field.address-radius{width:100px;min-width:100px;max-width:100px;margin-right:1rem}:host .condition-input::ng-deep novo-field.address-radius novo-select{min-width:70px}:host .condition-input::ng-deep novo-field.address-location .novo-field-suffix{align-self:flex-end}:host .condition-input::ng-deep .novo-field-infix{white-space:nowrap;overflow:hidden}:host .condition-input::ng-deep novo-chip-list{flex-grow:1}:host .condition-input::ng-deep novo-chip-list novo-chip{max-width:min(33rem,100% - 9px)}:host .condition-input::ng-deep novo-chips{border-bottom:none!important}:host .condition-input::ng-deep novo-chips input{padding-left:0!important}:host .condition-input::ng-deep novo-radio-group{padding:0!important}:host .and-or-filter-button{box-sizing:border-box;background:#fff;border:1px solid #ddd;color:#5691f5;display:inline-block;position:relative;cursor:pointer;margin:.4rem auto;align-items:center;text-align:center;-webkit-user-select:none;user-select:none;outline:none;white-space:nowrap;text-transform:uppercase;overflow:hidden;transition:box-shadow .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}\n"] }]
|
|
1652
1654
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }, { type: i0.ChangeDetectorRef }, { type: QueryBuilderService }, { type: i3.ControlContainer }], propDecorators: { _operatorOutlet: [{
|
|
1653
1655
|
type: ViewChild,
|
|
@@ -1738,7 +1740,7 @@ class ConditionGroupComponent {
|
|
|
1738
1740
|
scope: condition.scope,
|
|
1739
1741
|
value: condition.value,
|
|
1740
1742
|
supportingValue: condition.supportingValue,
|
|
1741
|
-
entity: condition.entity
|
|
1743
|
+
entity: condition.entity,
|
|
1742
1744
|
};
|
|
1743
1745
|
}
|
|
1744
1746
|
get root() {
|
|
@@ -1966,7 +1968,7 @@ class CriteriaBuilderComponent {
|
|
|
1966
1968
|
onFieldSelect(field) {
|
|
1967
1969
|
this.scopedFieldPicker().dropdown.closePanel();
|
|
1968
1970
|
const condition = { field: field.name, operator: null, scope: field.scope, value: null, entity: field.entity };
|
|
1969
|
-
const group = this.conditionGroups().find((
|
|
1971
|
+
const group = this.conditionGroups().find((conditionGroup) => conditionGroup.scope === field.scope);
|
|
1970
1972
|
if (group) {
|
|
1971
1973
|
group.addCondition(condition);
|
|
1972
1974
|
}
|