@elite.framework/ng.core 1.0.48 → 1.0.49

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,13 @@ class GenericSelectorTypeComponent extends FieldType {
4266
4266
  }
4267
4267
  return fixedFilters || {};
4268
4268
  }
4269
+ // Called when dropdown button clicked
4270
+ onDropdownClick(event) {
4271
+ console.log('Dropdown clicked!', event);
4272
+ // ✅ your custom code here
4273
+ // e.g., force trigger search for empty query
4274
+ this.search({ query: '' });
4275
+ }
4269
4276
  search(event) {
4270
4277
  const q = event.query?.toString().toLowerCase() || '';
4271
4278
  const lf = this.to['labelField'] || 'name';
@@ -4356,6 +4363,7 @@ class GenericSelectorTypeComponent extends FieldType {
4356
4363
  class="w-full rounded-none"
4357
4364
  [showEmptyMessage]="true"
4358
4365
  (onSelect)="onSelect($event)"
4366
+ (onDropdownClick)="onDropdownClick($event)"
4359
4367
  emptyMessage="{{ getEmptyMessage() | translate }}"
4360
4368
  [showTransitionOptions]="'0ms'" >
4361
4369
  <!-- <ng-template let-item pTemplate="item">
@@ -4371,7 +4379,8 @@ class GenericSelectorTypeComponent extends FieldType {
4371
4379
  <!-- <ng-template let-option #item>
4372
4380
  <a (click)="onSelect(option)"> {{option[to['labelField'] || 'name'] }} </a>
4373
4381
  </ng-template>
4374
- </p-autoComplete> -->
4382
+ -->
4383
+ </p-autoComplete>
4375
4384
  `, 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
4385
  }
4377
4386
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GenericSelectorTypeComponent, decorators: [{
@@ -4398,6 +4407,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
4398
4407
  class="w-full rounded-none"
4399
4408
  [showEmptyMessage]="true"
4400
4409
  (onSelect)="onSelect($event)"
4410
+ (onDropdownClick)="onDropdownClick($event)"
4401
4411
  emptyMessage="{{ getEmptyMessage() | translate }}"
4402
4412
  [showTransitionOptions]="'0ms'" >
4403
4413
  <!-- <ng-template let-item pTemplate="item">
@@ -4413,7 +4423,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
4413
4423
  <!-- <ng-template let-option #item>
4414
4424
  <a (click)="onSelect(option)"> {{option[to['labelField'] || 'name'] }} </a>
4415
4425
  </ng-template>
4416
- </p-autoComplete> -->
4426
+ -->
4427
+ </p-autoComplete>
4417
4428
  `,
4418
4429
  providers: [DialogService, BaseService],
4419
4430
  imports: [