@elite.framework/ng.core 1.0.57 → 1.0.58

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.
@@ -45,7 +45,9 @@ import * as i1$6 from 'primeng/dynamicdialog';
45
45
  import { DialogService } from 'primeng/dynamicdialog';
46
46
  import * as i1$7 from 'primeng/splitbutton';
47
47
  import { SplitButtonModule } from 'primeng/splitbutton';
48
+ import * as i5$3 from 'primeng/inputgroupaddon';
48
49
  import { InputGroupAddonModule } from 'primeng/inputgroupaddon';
50
+ import * as i4$4 from 'primeng/inputgroup';
49
51
  import { InputGroupModule } from 'primeng/inputgroup';
50
52
  import { finalize as finalize$1 } from 'rxjs/operators';
51
53
  import * as i3$3 from 'primeng/avatar';
@@ -73,7 +75,7 @@ import { FormlyFormFieldModule as FormlyFormFieldModule$1 } from '@ngx-formly/pr
73
75
  import { InputNumber } from 'primeng/inputnumber';
74
76
  import * as i3$4 from 'primeng/select';
75
77
  import { SelectModule } from 'primeng/select';
76
- import * as i5$3 from '@ngx-formly/core/select';
78
+ import * as i5$4 from '@ngx-formly/core/select';
77
79
  import { FormlySelectModule as FormlySelectModule$1 } from '@ngx-formly/core/select';
78
80
  import * as i2$5 from 'primeng/textarea';
79
81
  import { TextareaModule } from 'primeng/textarea';
@@ -4371,51 +4373,43 @@ class GenericSelectorTypeComponent extends FieldType {
4371
4373
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GenericSelectorTypeComponent, deps: [{ token: BaseService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4372
4374
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.4", type: GenericSelectorTypeComponent, isStandalone: true, selector: "formly-generic-selector", providers: [DialogService, BaseService], viewQueries: [{ propertyName: "autoComp", first: true, predicate: ["autoComp"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
4373
4375
  <!-- (ngModelChange)="onSelectionChange($event)" -->
4374
- <p-autoComplete
4375
- #autoComp
4376
- (ngModelChange)="onSelectionChange($event)"
4377
- [ngModel]="selectedItem"
4378
- [formlyAttributes]="field"
4379
- [suggestions]="options_"
4380
- (completeMethod)="search($event)"
4381
- [multiple]="to['multiple']"
4382
- [optionLabel]="to['labelField'] || 'name'"
4383
- [dropdown]="false"
4384
- [forceSelection]="true"
4385
- [placeholder]="(props['placeholder'] ?? '')| translate"
4386
- [disabled]="!!props.disabled"
4387
- dropdownMode="current"
4388
- appendTo="body"
4389
- class="w-full rounded-none"
4390
- [showEmptyMessage]="true"
4391
- (onSelect)="onSelect($event)"
4392
- emptyMessage="{{ getEmptyMessage() | translate }}"
4393
- [showTransitionOptions]="'0ms'" >
4394
- <!-- <ng-template let-item pTemplate="item">
4395
- <div class="flex items-center gap-2">
4396
- <p-checkbox
4397
- [binary]="true"
4398
- [ngModel]="isItemSelected(item)"
4399
- (onChange)="toggleItemSelection(item)">
4400
- </p-checkbox>
4401
- <span>{{ item[to['labelField'] || 'name'] }}</span>
4402
- </div>
4403
- </ng-template> -->
4404
- <!-- <ng-template let-option #item>
4405
- <a (click)="onSelect(option)"> {{option[to['labelField'] || 'name'] }} </a>
4406
- </ng-template>
4407
- -->
4408
- <!-- (onDropdownClick)="onDropdownClick($event)" -->
4409
- </p-autoComplete>
4410
- <button
4411
- type="button"
4412
- pButton
4413
- icon="pi pi-chevron-down"
4414
- class="p-button-outlined p-button-secondary rounded-l-none"
4415
- (click)="onDropdownButtonClick()">
4416
- </button>
4376
+ <p-inputGroup class="w-full">
4377
+ <p-autoComplete
4378
+ #autoComp
4379
+ [ngModel]="selectedItem"
4380
+ (ngModelChange)="onSelectionChange($event)"
4381
+ [formlyAttributes]="field"
4382
+ [suggestions]="options_"
4383
+ (completeMethod)="search($event)"
4384
+ [multiple]="to['multiple']"
4385
+ [optionLabel]="to['labelField'] || 'name'"
4386
+ [dropdown]="false"
4387
+ [forceSelection]="true"
4388
+ [placeholder]="(props['placeholder'] ?? '') | translate"
4389
+ [disabled]="!!props.disabled"
4390
+ dropdownMode="current"
4391
+ appendTo="body"
4392
+ class="w-full rounded-none"
4393
+ [showEmptyMessage]="true"
4394
+ (onSelect)="onSelect($event)"
4395
+ emptyMessage="{{ getEmptyMessage() | translate }}"
4396
+ [showTransitionOptions]="'0ms'">
4397
+ </p-autoComplete>
4398
+
4399
+ <!-- 🔘 Custom dropdown addon -->
4400
+ <p-inputGroupAddon>
4401
+ <button
4402
+ type="button"
4403
+ pButton
4404
+ icon="pi pi-chevron-down"
4405
+ class="p-button-outlined p-button-secondary"
4406
+ (click)="onDropdownButtonClick()">
4407
+ </button>
4408
+ </p-inputGroupAddon>
4409
+ </p-inputGroup>
4410
+
4417
4411
 
4418
- `, 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" }] });
4412
+ `, 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: "component", type: i4$4.InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "ngmodule", type: InputGroupAddonModule }, { kind: "component", type: i5$3.InputGroupAddon, selector: "p-inputgroup-addon, p-inputGroupAddon", inputs: ["style", "styleClass"] }, { 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" }] });
4419
4413
  }
4420
4414
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GenericSelectorTypeComponent, decorators: [{
4421
4415
  type: Component,
@@ -4423,49 +4417,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
4423
4417
  selector: 'formly-generic-selector',
4424
4418
  template: `
4425
4419
  <!-- (ngModelChange)="onSelectionChange($event)" -->
4426
- <p-autoComplete
4427
- #autoComp
4428
- (ngModelChange)="onSelectionChange($event)"
4429
- [ngModel]="selectedItem"
4430
- [formlyAttributes]="field"
4431
- [suggestions]="options_"
4432
- (completeMethod)="search($event)"
4433
- [multiple]="to['multiple']"
4434
- [optionLabel]="to['labelField'] || 'name'"
4435
- [dropdown]="false"
4436
- [forceSelection]="true"
4437
- [placeholder]="(props['placeholder'] ?? '')| translate"
4438
- [disabled]="!!props.disabled"
4439
- dropdownMode="current"
4440
- appendTo="body"
4441
- class="w-full rounded-none"
4442
- [showEmptyMessage]="true"
4443
- (onSelect)="onSelect($event)"
4444
- emptyMessage="{{ getEmptyMessage() | translate }}"
4445
- [showTransitionOptions]="'0ms'" >
4446
- <!-- <ng-template let-item pTemplate="item">
4447
- <div class="flex items-center gap-2">
4448
- <p-checkbox
4449
- [binary]="true"
4450
- [ngModel]="isItemSelected(item)"
4451
- (onChange)="toggleItemSelection(item)">
4452
- </p-checkbox>
4453
- <span>{{ item[to['labelField'] || 'name'] }}</span>
4454
- </div>
4455
- </ng-template> -->
4456
- <!-- <ng-template let-option #item>
4457
- <a (click)="onSelect(option)"> {{option[to['labelField'] || 'name'] }} </a>
4458
- </ng-template>
4459
- -->
4460
- <!-- (onDropdownClick)="onDropdownClick($event)" -->
4461
- </p-autoComplete>
4462
- <button
4463
- type="button"
4464
- pButton
4465
- icon="pi pi-chevron-down"
4466
- class="p-button-outlined p-button-secondary rounded-l-none"
4467
- (click)="onDropdownButtonClick()">
4468
- </button>
4420
+ <p-inputGroup class="w-full">
4421
+ <p-autoComplete
4422
+ #autoComp
4423
+ [ngModel]="selectedItem"
4424
+ (ngModelChange)="onSelectionChange($event)"
4425
+ [formlyAttributes]="field"
4426
+ [suggestions]="options_"
4427
+ (completeMethod)="search($event)"
4428
+ [multiple]="to['multiple']"
4429
+ [optionLabel]="to['labelField'] || 'name'"
4430
+ [dropdown]="false"
4431
+ [forceSelection]="true"
4432
+ [placeholder]="(props['placeholder'] ?? '') | translate"
4433
+ [disabled]="!!props.disabled"
4434
+ dropdownMode="current"
4435
+ appendTo="body"
4436
+ class="w-full rounded-none"
4437
+ [showEmptyMessage]="true"
4438
+ (onSelect)="onSelect($event)"
4439
+ emptyMessage="{{ getEmptyMessage() | translate }}"
4440
+ [showTransitionOptions]="'0ms'">
4441
+ </p-autoComplete>
4442
+
4443
+ <!-- 🔘 Custom dropdown addon -->
4444
+ <p-inputGroupAddon>
4445
+ <button
4446
+ type="button"
4447
+ pButton
4448
+ icon="pi pi-chevron-down"
4449
+ class="p-button-outlined p-button-secondary"
4450
+ (click)="onDropdownButtonClick()">
4451
+ </button>
4452
+ </p-inputGroupAddon>
4453
+ </p-inputGroup>
4454
+
4469
4455
 
4470
4456
  `,
4471
4457
  providers: [DialogService, BaseService],
@@ -5457,7 +5443,7 @@ class FormlyFieldSelect extends FieldType {
5457
5443
  </div>
5458
5444
  </ng-template>
5459
5445
  </p-select>
5460
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "directive", type: i1$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: FormlyFormFieldModule }, { kind: "directive", type: FormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i3$4.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: FormlySelectModule$1 }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$3.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }, { kind: "pipe", type: i1$3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5446
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "directive", type: i1$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: FormlyFormFieldModule }, { kind: "directive", type: FormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i3$4.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: FormlySelectModule$1 }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$4.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }, { kind: "pipe", type: i1$3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5461
5447
  }
5462
5448
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FormlyFieldSelect, decorators: [{
5463
5449
  type: Component,
@@ -6202,7 +6188,7 @@ class FormlyFieldRadio extends FieldType {
6202
6188
  </p-radioButton>
6203
6189
  <label [for]="id + index" class="ml-2">{{ option.label }}</label>
6204
6190
  </div>
6205
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3$5.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$3.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6191
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3$5.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$4.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6206
6192
  }
6207
6193
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FormlyFieldRadio, decorators: [{
6208
6194
  type: Component,