@elite.framework/ng.core 1.0.56 → 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$
|
|
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';
|
|
@@ -4284,6 +4286,11 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
4284
4286
|
}
|
|
4285
4287
|
return fixedFilters || {};
|
|
4286
4288
|
}
|
|
4289
|
+
onDropdownButtonClick() {
|
|
4290
|
+
console.log('Custom dropdown button clicked!');
|
|
4291
|
+
this.search({ query: '' }); // trigger your own search
|
|
4292
|
+
setTimeout(() => this.autoComp.show(), 0); // force dropdown to open
|
|
4293
|
+
}
|
|
4287
4294
|
// Called when dropdown button clicked
|
|
4288
4295
|
onDropdownClick(event) {
|
|
4289
4296
|
// 🚫 stop the default dropdown behavior
|
|
@@ -4366,43 +4373,43 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
4366
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 });
|
|
4367
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: `
|
|
4368
4375
|
<!-- (ngModelChange)="onSelectionChange($event)" -->
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
[ngModel]="selectedItem"
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
`, 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
|
+
<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
|
+
|
|
4411
|
+
|
|
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" }] });
|
|
4406
4413
|
}
|
|
4407
4414
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GenericSelectorTypeComponent, decorators: [{
|
|
4408
4415
|
type: Component,
|
|
@@ -4410,42 +4417,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
4410
4417
|
selector: 'formly-generic-selector',
|
|
4411
4418
|
template: `
|
|
4412
4419
|
<!-- (ngModelChange)="onSelectionChange($event)" -->
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
[ngModel]="selectedItem"
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
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
|
+
|
|
4455
|
+
|
|
4449
4456
|
`,
|
|
4450
4457
|
providers: [DialogService, BaseService],
|
|
4451
4458
|
imports: [
|
|
@@ -5436,7 +5443,7 @@ class FormlyFieldSelect extends FieldType {
|
|
|
5436
5443
|
</div>
|
|
5437
5444
|
</ng-template>
|
|
5438
5445
|
</p-select>
|
|
5439
|
-
`, 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$
|
|
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 });
|
|
5440
5447
|
}
|
|
5441
5448
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
5442
5449
|
type: Component,
|
|
@@ -6181,7 +6188,7 @@ class FormlyFieldRadio extends FieldType {
|
|
|
6181
6188
|
</p-radioButton>
|
|
6182
6189
|
<label [for]="id + index" class="ml-2">{{ option.label }}</label>
|
|
6183
6190
|
</div>
|
|
6184
|
-
`, 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$
|
|
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 });
|
|
6185
6192
|
}
|
|
6186
6193
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
|
6187
6194
|
type: Component,
|