@elite.framework/ng.core 1.0.48 → 1.0.50
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.
|
@@ -4266,6 +4266,16 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
return fixedFilters || {};
|
|
4268
4268
|
}
|
|
4269
|
+
// Called when dropdown button clicked
|
|
4270
|
+
onDropdownClick(event) {
|
|
4271
|
+
// 🚫 stop the default dropdown behavior
|
|
4272
|
+
event.originalEvent.preventDefault();
|
|
4273
|
+
event.originalEvent.stopPropagation();
|
|
4274
|
+
console.log('Dropdown clicked!', event);
|
|
4275
|
+
// ✅ your custom code here
|
|
4276
|
+
// e.g., force trigger search for empty query
|
|
4277
|
+
this.search({ query: '' });
|
|
4278
|
+
}
|
|
4269
4279
|
search(event) {
|
|
4270
4280
|
const q = event.query?.toString().toLowerCase() || '';
|
|
4271
4281
|
const lf = this.to['labelField'] || 'name';
|
|
@@ -4356,6 +4366,7 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
4356
4366
|
class="w-full rounded-none"
|
|
4357
4367
|
[showEmptyMessage]="true"
|
|
4358
4368
|
(onSelect)="onSelect($event)"
|
|
4369
|
+
(onDropdownClick)="onDropdownClick($event)"
|
|
4359
4370
|
emptyMessage="{{ getEmptyMessage() | translate }}"
|
|
4360
4371
|
[showTransitionOptions]="'0ms'" >
|
|
4361
4372
|
<!-- <ng-template let-item pTemplate="item">
|
|
@@ -4371,7 +4382,8 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
4371
4382
|
<!-- <ng-template let-option #item>
|
|
4372
4383
|
<a (click)="onSelect(option)"> {{option[to['labelField'] || 'name'] }} </a>
|
|
4373
4384
|
</ng-template>
|
|
4374
|
-
|
|
4385
|
+
-->
|
|
4386
|
+
</p-autoComplete>
|
|
4375
4387
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i3.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "appendTo"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: InputGroupModule }, { kind: "ngmodule", type: InputGroupAddonModule }, { kind: "directive", type: FormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: CheckboxModule }, { kind: "pipe", type: i1$3.TranslatePipe, name: "translate" }] });
|
|
4376
4388
|
}
|
|
4377
4389
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GenericSelectorTypeComponent, decorators: [{
|
|
@@ -4398,6 +4410,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
4398
4410
|
class="w-full rounded-none"
|
|
4399
4411
|
[showEmptyMessage]="true"
|
|
4400
4412
|
(onSelect)="onSelect($event)"
|
|
4413
|
+
(onDropdownClick)="onDropdownClick($event)"
|
|
4401
4414
|
emptyMessage="{{ getEmptyMessage() | translate }}"
|
|
4402
4415
|
[showTransitionOptions]="'0ms'" >
|
|
4403
4416
|
<!-- <ng-template let-item pTemplate="item">
|
|
@@ -4413,7 +4426,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
4413
4426
|
<!-- <ng-template let-option #item>
|
|
4414
4427
|
<a (click)="onSelect(option)"> {{option[to['labelField'] || 'name'] }} </a>
|
|
4415
4428
|
</ng-template>
|
|
4416
|
-
|
|
4429
|
+
-->
|
|
4430
|
+
</p-autoComplete>
|
|
4417
4431
|
`,
|
|
4418
4432
|
providers: [DialogService, BaseService],
|
|
4419
4433
|
imports: [
|