@elite.framework/ng.core 1.0.47 → 1.0.48

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.
@@ -4167,9 +4167,9 @@ class GenericSelectorTypeComponent extends FieldType {
4167
4167
  });
4168
4168
  }
4169
4169
  // New method to handle loading the default value from the API
4170
- onSelect(val) {
4170
+ onSelect(event) {
4171
4171
  if (this.props.onSelect) {
4172
- this.props.onSelect(this.field, { item: val });
4172
+ this.props.onSelect(this.field, { item: event.value });
4173
4173
  this.cdr.detectChanges();
4174
4174
  }
4175
4175
  }
@@ -4355,6 +4355,7 @@ class GenericSelectorTypeComponent extends FieldType {
4355
4355
  appendTo="body"
4356
4356
  class="w-full rounded-none"
4357
4357
  [showEmptyMessage]="true"
4358
+ (onSelect)="onSelect($event)"
4358
4359
  emptyMessage="{{ getEmptyMessage() | translate }}"
4359
4360
  [showTransitionOptions]="'0ms'" >
4360
4361
  <!-- <ng-template let-item pTemplate="item">
@@ -4367,10 +4368,10 @@ class GenericSelectorTypeComponent extends FieldType {
4367
4368
  <span>{{ item[to['labelField'] || 'name'] }}</span>
4368
4369
  </div>
4369
4370
  </ng-template> -->
4370
- <ng-template let-option #item>
4371
+ <!-- <ng-template let-option #item>
4371
4372
  <a (click)="onSelect(option)"> {{option[to['labelField'] || 'name'] }} </a>
4372
4373
  </ng-template>
4373
- </p-autoComplete>
4374
+ </p-autoComplete> -->
4374
4375
  `, 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" }] });
4375
4376
  }
4376
4377
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GenericSelectorTypeComponent, decorators: [{
@@ -4396,6 +4397,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
4396
4397
  appendTo="body"
4397
4398
  class="w-full rounded-none"
4398
4399
  [showEmptyMessage]="true"
4400
+ (onSelect)="onSelect($event)"
4399
4401
  emptyMessage="{{ getEmptyMessage() | translate }}"
4400
4402
  [showTransitionOptions]="'0ms'" >
4401
4403
  <!-- <ng-template let-item pTemplate="item">
@@ -4408,10 +4410,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
4408
4410
  <span>{{ item[to['labelField'] || 'name'] }}</span>
4409
4411
  </div>
4410
4412
  </ng-template> -->
4411
- <ng-template let-option #item>
4413
+ <!-- <ng-template let-option #item>
4412
4414
  <a (click)="onSelect(option)"> {{option[to['labelField'] || 'name'] }} </a>
4413
4415
  </ng-template>
4414
- </p-autoComplete>
4416
+ </p-autoComplete> -->
4415
4417
  `,
4416
4418
  providers: [DialogService, BaseService],
4417
4419
  imports: [