primeng 20.0.0-rc.2 → 20.0.0-rc.3
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.
- package/autocomplete/index.d.ts +8 -7
- package/baseeditableholder/index.d.ts +14 -5
- package/basemodelholder/index.d.ts +12 -0
- package/cascadeselect/index.d.ts +7 -5
- package/checkbox/index.d.ts +9 -7
- package/colorpicker/index.d.ts +8 -7
- package/datepicker/index.d.ts +8 -7
- package/editor/index.d.ts +9 -8
- package/fesm2022/primeng-autocomplete.mjs +33 -35
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-baseeditableholder.mjs +25 -7
- package/fesm2022/primeng-baseeditableholder.mjs.map +1 -1
- package/fesm2022/primeng-basemodelholder.mjs +25 -0
- package/fesm2022/primeng-basemodelholder.mjs.map +1 -0
- package/fesm2022/primeng-card.mjs +2 -2
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +21 -23
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +13 -15
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +35 -37
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +1 -9
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +41 -43
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +2 -2
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +8 -10
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +4 -3
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +23 -25
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +28 -30
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +26 -28
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +11 -5
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +22 -24
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +36 -38
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +2 -2
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +38 -39
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +19 -21
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +16 -18
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +14 -16
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +32 -34
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +15 -17
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +28 -30
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +32 -7
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +13 -21
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +10 -5
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +13 -15
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +14 -16
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +1 -1
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +16 -18
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +8 -8
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/inputmask/index.d.ts +8 -7
- package/inputnumber/index.d.ts +8 -7
- package/inputotp/index.d.ts +7 -5
- package/inputtext/index.d.ts +10 -4
- package/knob/index.d.ts +7 -5
- package/listbox/index.d.ts +8 -7
- package/multiselect/index.d.ts +8 -7
- package/package.json +213 -209
- package/password/index.d.ts +7 -5
- package/radiobutton/index.d.ts +9 -7
- package/rating/index.d.ts +8 -7
- package/select/index.d.ts +8 -7
- package/selectbutton/index.d.ts +9 -8
- package/slider/index.d.ts +9 -8
- package/stepper/index.d.ts +4 -0
- package/table/index.d.ts +1 -5
- package/textarea/index.d.ts +9 -4
- package/togglebutton/index.d.ts +8 -7
- package/toggleswitch/index.d.ts +7 -5
- package/treeselect/index.d.ts +7 -5
package/autocomplete/index.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
2
2
|
import { TemplateRef, AfterViewChecked, AfterContentInit, OnDestroy, EventEmitter, ElementRef, NgZone, QueryList } from '@angular/core';
|
3
3
|
import { AnimationEvent } from '@angular/animations';
|
4
|
-
import { ControlValueAccessor } from '@angular/forms';
|
5
4
|
import * as i1 from 'primeng/api';
|
6
5
|
import { ScrollerOptions, OverlayService, OverlayOptions, PrimeTemplate } from 'primeng/api';
|
7
6
|
import { BaseInput } from 'primeng/baseinput';
|
@@ -334,7 +333,7 @@ declare const AUTOCOMPLETE_VALUE_ACCESSOR: any;
|
|
334
333
|
* AutoComplete is an input component that provides real-time suggestions when being typed.
|
335
334
|
* @group Components
|
336
335
|
*/
|
337
|
-
declare class AutoComplete extends BaseInput implements AfterViewChecked, AfterContentInit, OnDestroy
|
336
|
+
declare class AutoComplete extends BaseInput implements AfterViewChecked, AfterContentInit, OnDestroy {
|
338
337
|
overlayService: OverlayService;
|
339
338
|
private zone;
|
340
339
|
/**
|
@@ -767,8 +766,6 @@ declare class AutoComplete extends BaseInput implements AfterViewChecked, AfterC
|
|
767
766
|
private primeng;
|
768
767
|
value: string | any;
|
769
768
|
_suggestions: _angular_core.WritableSignal<any>;
|
770
|
-
onModelChange: Function;
|
771
|
-
onModelTouched: Function;
|
772
769
|
timeout: Nullable<any>;
|
773
770
|
overlayVisible: boolean | undefined;
|
774
771
|
suggestionsUpdated: Nullable<boolean>;
|
@@ -874,7 +871,6 @@ declare class AutoComplete extends BaseInput implements AfterViewChecked, AfterC
|
|
874
871
|
show(isFocus?: boolean): void;
|
875
872
|
hide(isFocus?: boolean): void;
|
876
873
|
clear(): void;
|
877
|
-
writeValue(value: any): void;
|
878
874
|
hasSelectedOption(): boolean;
|
879
875
|
getAriaPosInset(index: any): any;
|
880
876
|
getOptionLabel(option: any): any;
|
@@ -882,9 +878,14 @@ declare class AutoComplete extends BaseInput implements AfterViewChecked, AfterC
|
|
882
878
|
getOptionIndex(index: any, scrollerOptions: any): any;
|
883
879
|
getOptionGroupLabel(optionGroup: any): any;
|
884
880
|
getOptionGroupChildren(optionGroup: any): any;
|
885
|
-
registerOnChange(fn: Function): void;
|
886
|
-
registerOnTouched(fn: Function): void;
|
887
881
|
onOverlayAnimationStart(event: AnimationEvent): void;
|
882
|
+
/**
|
883
|
+
* @override
|
884
|
+
*
|
885
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
886
|
+
* Writes the value to the control.
|
887
|
+
*/
|
888
|
+
writeControlValue(value: any, setModelValue: (value: any) => void): void;
|
888
889
|
ngOnDestroy(): void;
|
889
890
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutoComplete, never>;
|
890
891
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AutoComplete, "p-autoComplete, p-autocomplete, p-auto-complete", never, { "minLength": { "alias": "minLength"; "required": false; }; "minQueryLength": { "alias": "minQueryLength"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "panelStyle": { "alias": "panelStyle"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; }; "virtualScrollOptions": { "alias": "virtualScrollOptions"; "required": false; }; "autoHighlight": { "alias": "autoHighlight"; "required": false; }; "forceSelection": { "alias": "forceSelection"; "required": false; }; "type": { "alias": "type"; "required": false; }; "autoZIndex": { "alias": "autoZIndex"; "required": false; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "dropdownAriaLabel": { "alias": "dropdownAriaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "dropdownIcon": { "alias": "dropdownIcon"; "required": false; }; "unique": { "alias": "unique"; "required": false; }; "group": { "alias": "group"; "required": false; }; "completeOnFocus": { "alias": "completeOnFocus"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "dropdown": { "alias": "dropdown"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "dataKey": { "alias": "dataKey"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "showTransitionOptions": { "alias": "showTransitionOptions"; "required": false; }; "hideTransitionOptions": { "alias": "hideTransitionOptions"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "optionGroupChildren": { "alias": "optionGroupChildren"; "required": false; }; "optionGroupLabel": { "alias": "optionGroupLabel"; "required": false; }; "overlayOptions": { "alias": "overlayOptions"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "id": { "alias": "id"; "required": false; }; "searchMessage": { "alias": "searchMessage"; "required": false; }; "emptySelectionMessage": { "alias": "emptySelectionMessage"; "required": false; }; "selectionMessage": { "alias": "selectionMessage"; "required": false; }; "autoOptionFocus": { "alias": "autoOptionFocus"; "required": false; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; }; "searchLocale": { "alias": "searchLocale"; "required": false; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; }; "focusOnHover": { "alias": "focusOnHover"; "required": false; }; "typeahead": { "alias": "typeahead"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; }, { "completeMethod": "completeMethod"; "onSelect": "onSelect"; "onUnselect": "onUnselect"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onDropdownClick": "onDropdownClick"; "onClear": "onClear"; "onKeyUp": "onKeyUp"; "onShow": "onShow"; "onHide": "onHide"; "onLazyLoad": "onLazyLoad"; }, ["itemTemplate", "emptyTemplate", "headerTemplate", "footerTemplate", "selectedItemTemplate", "groupTemplate", "loaderTemplate", "removeIconTemplate", "loadingIconTemplate", "clearIconTemplate", "dropdownIconTemplate", "templates"], never, true, never>;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
3
|
+
import { BaseModelHolder } from 'primeng/basemodelholder';
|
3
4
|
|
4
|
-
declare class BaseEditableHolder extends
|
5
|
+
declare class BaseEditableHolder extends BaseModelHolder implements ControlValueAccessor {
|
5
6
|
/**
|
6
7
|
* There must be a value (if set).
|
7
8
|
* @defaultValue false
|
@@ -26,9 +27,17 @@ declare class BaseEditableHolder extends BaseComponent {
|
|
26
27
|
* @group Props
|
27
28
|
*/
|
28
29
|
name: _angular_core.InputSignal<string>;
|
29
|
-
|
30
|
-
$
|
31
|
-
|
30
|
+
_disabled: _angular_core.WritableSignal<boolean>;
|
31
|
+
$disabled: _angular_core.Signal<boolean>;
|
32
|
+
onModelChange: Function;
|
33
|
+
onModelTouched: Function;
|
34
|
+
writeDisabledState(value: boolean): void;
|
35
|
+
writeControlValue(value: any, setModelValue?: (value: any) => void): void;
|
36
|
+
/**** Angular ControlValueAccessors ****/
|
37
|
+
writeValue(value: any): void;
|
38
|
+
registerOnChange(fn: Function): void;
|
39
|
+
registerOnTouched(fn: Function): void;
|
40
|
+
setDisabledState(val: boolean): void;
|
32
41
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseEditableHolder, never>;
|
33
42
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseEditableHolder, never, never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
34
43
|
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
2
|
+
import { BaseComponent } from 'primeng/basecomponent';
|
3
|
+
|
4
|
+
declare class BaseModelHolder extends BaseComponent {
|
5
|
+
modelValue: _angular_core.WritableSignal<any>;
|
6
|
+
$filled: _angular_core.Signal<boolean>;
|
7
|
+
writeModelValue(value: any): void;
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseModelHolder, never>;
|
9
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseModelHolder, never, never, {}, {}, never, never, true, never>;
|
10
|
+
}
|
11
|
+
|
12
|
+
export { BaseModelHolder };
|
package/cascadeselect/index.d.ts
CHANGED
@@ -615,8 +615,6 @@ declare class CascadeSelect extends BaseEditableHolder implements OnInit, AfterC
|
|
615
615
|
dirty: boolean;
|
616
616
|
searchValue: string | undefined;
|
617
617
|
searchTimeout: any;
|
618
|
-
onModelChange: Function;
|
619
|
-
onModelTouched: Function;
|
620
618
|
focusedOptionInfo: _angular_core.WritableSignal<any>;
|
621
619
|
activeOptionPath: _angular_core.WritableSignal<any>;
|
622
620
|
processedOptions: string[] | string | undefined;
|
@@ -703,9 +701,13 @@ declare class CascadeSelect extends BaseEditableHolder implements OnInit, AfterC
|
|
703
701
|
bindMatchMediaListener(): void;
|
704
702
|
unbindMatchMediaListener(): void;
|
705
703
|
onOverlayAnimationDone(event: any): void;
|
706
|
-
|
707
|
-
|
708
|
-
|
704
|
+
/**
|
705
|
+
* @override
|
706
|
+
*
|
707
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
708
|
+
* Writes the value to the control.
|
709
|
+
*/
|
710
|
+
writeControlValue(value: any, setModelValue: (value: any) => void): void;
|
709
711
|
ngOnDestroy(): void;
|
710
712
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CascadeSelect, never>;
|
711
713
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CascadeSelect, "p-cascadeSelect, p-cascadeselect, p-cascade-select", never, { "id": { "alias": "id"; "required": false; }; "searchMessage": { "alias": "searchMessage"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "selectionMessage": { "alias": "selectionMessage"; "required": false; }; "emptySearchMessage": { "alias": "emptySearchMessage"; "required": false; }; "emptySelectionMessage": { "alias": "emptySelectionMessage"; "required": false; }; "searchLocale": { "alias": "searchLocale"; "required": false; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; }; "focusOnHover": { "alias": "focusOnHover"; "required": false; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; }; "autoOptionFocus": { "alias": "autoOptionFocus"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "optionGroupLabel": { "alias": "optionGroupLabel"; "required": false; }; "optionGroupChildren": { "alias": "optionGroupChildren"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "dataKey": { "alias": "dataKey"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; }; "panelStyle": { "alias": "panelStyle"; "required": false; }; "overlayOptions": { "alias": "overlayOptions"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; "onGroupChange": "onGroupChange"; "onShow": "onShow"; "onHide": "onHide"; "onClear": "onClear"; "onBeforeShow": "onBeforeShow"; "onBeforeHide": "onBeforeHide"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, ["valueTemplate", "optionTemplate", "headerTemplate", "footerTemplate", "triggerIconTemplate", "loadingIconTemplate", "groupIconTemplate", "clearIconTemplate", "templates"], never, true, never>;
|
package/checkbox/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { TemplateRef, AfterContentInit, EventEmitter, ElementRef, QueryList, SimpleChanges } from '@angular/core';
|
3
|
-
import {
|
3
|
+
import { FormControl } from '@angular/forms';
|
4
4
|
import * as i1 from 'primeng/api';
|
5
5
|
import { PrimeTemplate } from 'primeng/api';
|
6
6
|
import { BaseEditableHolder } from 'primeng/baseeditableholder';
|
@@ -89,7 +89,7 @@ declare const CHECKBOX_VALUE_ACCESSOR: any;
|
|
89
89
|
* Checkbox is an extension to standard checkbox element with theming.
|
90
90
|
* @group Components
|
91
91
|
*/
|
92
|
-
declare class Checkbox extends BaseEditableHolder implements AfterContentInit
|
92
|
+
declare class Checkbox extends BaseEditableHolder implements AfterContentInit {
|
93
93
|
/**
|
94
94
|
* Value of the checkbox.
|
95
95
|
* @group Props
|
@@ -213,8 +213,6 @@ declare class Checkbox extends BaseEditableHolder implements AfterContentInit, C
|
|
213
213
|
checkboxIconTemplate: TemplateRef<any>;
|
214
214
|
templates: Nullable<QueryList<PrimeTemplate>>;
|
215
215
|
_checkboxIconTemplate: TemplateRef<any> | undefined;
|
216
|
-
onModelChange: Function;
|
217
|
-
onModelTouched: Function;
|
218
216
|
focused: boolean;
|
219
217
|
_componentStyle: CheckboxStyle;
|
220
218
|
$variant: i0.Signal<"filled" | "outlined">;
|
@@ -225,9 +223,13 @@ declare class Checkbox extends BaseEditableHolder implements AfterContentInit, C
|
|
225
223
|
onInputFocus(event: any): void;
|
226
224
|
onInputBlur(event: any): void;
|
227
225
|
focus(): void;
|
228
|
-
|
229
|
-
|
230
|
-
|
226
|
+
/**
|
227
|
+
* @override
|
228
|
+
*
|
229
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
230
|
+
* Writes the value to the control.
|
231
|
+
*/
|
232
|
+
writeControlValue(value: any, setModelValue: (value: any) => void): void;
|
231
233
|
static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
|
232
234
|
static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "p-checkbox, p-checkBox, p-check-box", never, { "value": { "alias": "value"; "required": false; }; "binary": { "alias": "binary"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "checkboxIcon": { "alias": "checkboxIcon"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "trueValue": { "alias": "trueValue"; "required": false; }; "falseValue": { "alias": "falseValue"; "required": false; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, ["checkboxIconTemplate", "templates"], never, true, never>;
|
233
235
|
static ngAcceptInputType_binary: unknown;
|
package/colorpicker/index.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { OnDestroy, AfterViewInit, EventEmitter, ElementRef } from '@angular/core';
|
3
3
|
import { AnimationEvent } from '@angular/animations';
|
4
|
-
import { ControlValueAccessor } from '@angular/forms';
|
5
4
|
import { cn } from '@primeuix/utils';
|
6
5
|
import * as i1 from 'primeng/api';
|
7
6
|
import { OverlayService } from 'primeng/api';
|
@@ -109,7 +108,7 @@ declare const COLORPICKER_VALUE_ACCESSOR: any;
|
|
109
108
|
* ColorPicker groups a collection of contents in tabs.
|
110
109
|
* @group Components
|
111
110
|
*/
|
112
|
-
declare class ColorPicker extends BaseEditableHolder implements
|
111
|
+
declare class ColorPicker extends BaseEditableHolder implements OnDestroy, AfterViewInit {
|
113
112
|
overlayService: OverlayService;
|
114
113
|
/**
|
115
114
|
* Style class of the component.
|
@@ -190,8 +189,6 @@ declare class ColorPicker extends BaseEditableHolder implements ControlValueAcce
|
|
190
189
|
inputBgColor: string | undefined;
|
191
190
|
shown: Nullable<boolean>;
|
192
191
|
overlayVisible: Nullable<boolean>;
|
193
|
-
onModelChange: Function;
|
194
|
-
onModelTouched: Function;
|
195
192
|
documentClickListener: VoidListener;
|
196
193
|
documentResizeListener: VoidListener;
|
197
194
|
documentMousemoveListener: VoidListener;
|
@@ -223,7 +220,6 @@ declare class ColorPicker extends BaseEditableHolder implements ControlValueAcce
|
|
223
220
|
pickColor(event: MouseEvent | TouchEvent, position?: any): void;
|
224
221
|
getValueToUpdate(): any;
|
225
222
|
updateModel(): void;
|
226
|
-
writeValue(value: any): void;
|
227
223
|
updateColorSelector(): void;
|
228
224
|
updateUI(): void;
|
229
225
|
onInputFocus(): void;
|
@@ -238,8 +234,6 @@ declare class ColorPicker extends BaseEditableHolder implements ControlValueAcce
|
|
238
234
|
togglePanel(): void;
|
239
235
|
onInputKeydown(event: KeyboardEvent): void;
|
240
236
|
onOverlayClick(event: MouseEvent): void;
|
241
|
-
registerOnChange(fn: Function): void;
|
242
|
-
registerOnTouched(fn: Function): void;
|
243
237
|
bindDocumentClickListener(): void;
|
244
238
|
unbindDocumentClickListener(): void;
|
245
239
|
bindDocumentMousemoveListener(): void;
|
@@ -310,6 +304,13 @@ declare class ColorPicker extends BaseEditableHolder implements ControlValueAcce
|
|
310
304
|
}): string;
|
311
305
|
onOverlayHide(): void;
|
312
306
|
ngAfterViewInit(): void;
|
307
|
+
/**
|
308
|
+
* @override
|
309
|
+
*
|
310
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
311
|
+
* Writes the value to the control.
|
312
|
+
*/
|
313
|
+
writeControlValue(value: any): void;
|
313
314
|
ngOnDestroy(): void;
|
314
315
|
protected readonly cn: typeof cn;
|
315
316
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPicker, never>;
|
package/datepicker/index.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { TemplateRef, OnInit, AfterContentInit, AfterViewInit, OnDestroy, EventEmitter, ElementRef, NgZone, QueryList } from '@angular/core';
|
3
3
|
import { AnimationEvent } from '@angular/animations';
|
4
|
-
import { ControlValueAccessor } from '@angular/forms';
|
5
4
|
import * as i1 from 'primeng/api';
|
6
5
|
import { OverlayService, PrimeTemplate } from 'primeng/api';
|
7
6
|
import { BaseInput } from 'primeng/baseinput';
|
@@ -482,7 +481,7 @@ declare const DATEPICKER_VALUE_ACCESSOR: any;
|
|
482
481
|
* DatePicker is a form component to work with dates.
|
483
482
|
* @group Components
|
484
483
|
*/
|
485
|
-
declare class DatePicker extends BaseInput implements OnInit, AfterContentInit, AfterViewInit, OnDestroy
|
484
|
+
declare class DatePicker extends BaseInput implements OnInit, AfterContentInit, AfterViewInit, OnDestroy {
|
486
485
|
private zone;
|
487
486
|
overlayService: OverlayService;
|
488
487
|
iconDisplay: 'input' | 'button';
|
@@ -882,8 +881,6 @@ declare class DatePicker extends BaseInput implements OnInit, AfterContentInit,
|
|
882
881
|
responsiveStyleElement: HTMLStyleElement | undefined | null;
|
883
882
|
overlayVisible: Nullable<boolean>;
|
884
883
|
$appendTo: i0.Signal<any>;
|
885
|
-
onModelChange: Function;
|
886
|
-
onModelTouched: Function;
|
887
884
|
calendarElement: Nullable<HTMLElement | ElementRef>;
|
888
885
|
timePickerTimer: any;
|
889
886
|
documentClickListener: VoidListener;
|
@@ -1124,9 +1121,6 @@ declare class DatePicker extends BaseInput implements OnInit, AfterContentInit,
|
|
1124
1121
|
destroyMask(): void;
|
1125
1122
|
unbindMaskClickListener(): void;
|
1126
1123
|
unbindAnimationEndListener(): void;
|
1127
|
-
writeValue(value: any): void;
|
1128
|
-
registerOnChange(fn: Function): void;
|
1129
|
-
registerOnTouched(fn: Function): void;
|
1130
1124
|
getDateFormat(): any;
|
1131
1125
|
getFirstDateOfWeek(): any;
|
1132
1126
|
formatDate(date: any, format: any): string;
|
@@ -1153,6 +1147,13 @@ declare class DatePicker extends BaseInput implements OnInit, AfterContentInit,
|
|
1153
1147
|
isNavIconClicked(event: any): boolean;
|
1154
1148
|
onWindowResize(): void;
|
1155
1149
|
onOverlayHide(): void;
|
1150
|
+
/**
|
1151
|
+
* @override
|
1152
|
+
*
|
1153
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
1154
|
+
* Writes the value to the control.
|
1155
|
+
*/
|
1156
|
+
writeControlValue(value: any): void;
|
1156
1157
|
ngOnDestroy(): void;
|
1157
1158
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePicker, never>;
|
1158
1159
|
static ɵcmp: i0.ɵɵComponentDeclaration<DatePicker, "p-datePicker, p-datepicker, p-date-picker", never, { "iconDisplay": { "alias": "iconDisplay"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "iconAriaLabel": { "alias": "iconAriaLabel"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "multipleSeparator": { "alias": "multipleSeparator"; "required": false; }; "rangeSeparator": { "alias": "rangeSeparator"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "showOtherMonths": { "alias": "showOtherMonths"; "required": false; }; "selectOtherMonths": { "alias": "selectOtherMonths"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; }; "shortYearCutoff": { "alias": "shortYearCutoff"; "required": false; }; "hourFormat": { "alias": "hourFormat"; "required": false; }; "timeOnly": { "alias": "timeOnly"; "required": false; }; "stepHour": { "alias": "stepHour"; "required": false; }; "stepMinute": { "alias": "stepMinute"; "required": false; }; "stepSecond": { "alias": "stepSecond"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "showOnFocus": { "alias": "showOnFocus"; "required": false; }; "showWeek": { "alias": "showWeek"; "required": false; }; "startWeekFromFirstDayOfYear": { "alias": "startWeekFromFirstDayOfYear"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "dataType": { "alias": "dataType"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "maxDateCount": { "alias": "maxDateCount"; "required": false; }; "showButtonBar": { "alias": "showButtonBar"; "required": false; }; "todayButtonStyleClass": { "alias": "todayButtonStyleClass"; "required": false; }; "clearButtonStyleClass": { "alias": "clearButtonStyleClass"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "autoZIndex": { "alias": "autoZIndex"; "required": false; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; }; "panelStyle": { "alias": "panelStyle"; "required": false; }; "keepInvalid": { "alias": "keepInvalid"; "required": false; }; "hideOnDateTimeSelect": { "alias": "hideOnDateTimeSelect"; "required": false; }; "touchUI": { "alias": "touchUI"; "required": false; }; "timeSeparator": { "alias": "timeSeparator"; "required": false; }; "focusTrap": { "alias": "focusTrap"; "required": false; }; "showTransitionOptions": { "alias": "showTransitionOptions"; "required": false; }; "hideTransitionOptions": { "alias": "hideTransitionOptions"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "disabledDays": { "alias": "disabledDays"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "responsiveOptions": { "alias": "responsiveOptions"; "required": false; }; "numberOfMonths": { "alias": "numberOfMonths"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "view": { "alias": "view"; "required": false; }; "defaultDate": { "alias": "defaultDate"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; }, { "onFocus": "onFocus"; "onBlur": "onBlur"; "onClose": "onClose"; "onSelect": "onSelect"; "onClear": "onClear"; "onInput": "onInput"; "onTodayClick": "onTodayClick"; "onClearClick": "onClearClick"; "onMonthChange": "onMonthChange"; "onYearChange": "onYearChange"; "onClickOutside": "onClickOutside"; "onShow": "onShow"; }, ["dateTemplate", "headerTemplate", "footerTemplate", "disabledDateTemplate", "decadeTemplate", "previousIconTemplate", "nextIconTemplate", "triggerIconTemplate", "clearIconTemplate", "decrementIconTemplate", "incrementIconTemplate", "inputIconTemplate", "templates"], ["p-header", "p-footer"], true, never>;
|
package/editor/index.d.ts
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { TemplateRef, AfterContentInit, EventEmitter, QueryList } from '@angular/core';
|
3
|
-
import { ControlValueAccessor } from '@angular/forms';
|
4
3
|
import * as i1 from 'primeng/api';
|
5
4
|
import { PrimeTemplate } from 'primeng/api';
|
5
|
+
import { BaseEditableHolder } from 'primeng/baseeditableholder';
|
6
6
|
import { Nullable } from 'primeng/ts-helpers';
|
7
7
|
import * as _primeuix_styled from '@primeuix/styled';
|
8
8
|
import { BaseStyle } from 'primeng/base';
|
9
|
-
import { BaseEditableHolder } from 'primeng/baseeditableholder';
|
10
9
|
|
11
10
|
/**
|
12
11
|
* Custom text change event.
|
@@ -118,7 +117,7 @@ declare const EDITOR_VALUE_ACCESSOR: any;
|
|
118
117
|
* Editor groups a collection of contents in tabs.
|
119
118
|
* @group Components
|
120
119
|
*/
|
121
|
-
declare class Editor extends BaseEditableHolder implements AfterContentInit
|
120
|
+
declare class Editor extends BaseEditableHolder implements AfterContentInit {
|
122
121
|
/**
|
123
122
|
* Inline style of the container.
|
124
123
|
* @group Props
|
@@ -190,8 +189,6 @@ declare class Editor extends BaseEditableHolder implements AfterContentInit, Con
|
|
190
189
|
value: Nullable<string>;
|
191
190
|
delayedCommand: Function | null;
|
192
191
|
_readonly: boolean;
|
193
|
-
onModelChange: Function;
|
194
|
-
onModelTouched: Function;
|
195
192
|
quill: any;
|
196
193
|
dynamicQuill: any;
|
197
194
|
/**
|
@@ -206,9 +203,13 @@ declare class Editor extends BaseEditableHolder implements AfterContentInit, Con
|
|
206
203
|
_componentStyle: EditorStyle;
|
207
204
|
constructor();
|
208
205
|
ngAfterContentInit(): void;
|
209
|
-
|
210
|
-
|
211
|
-
|
206
|
+
/**
|
207
|
+
* @override
|
208
|
+
*
|
209
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
210
|
+
* Writes the value to the control.
|
211
|
+
*/
|
212
|
+
writeControlValue(value: any): void;
|
212
213
|
getQuill(): any;
|
213
214
|
private initQuillEditor;
|
214
215
|
private createQuillEditor;
|
@@ -61,9 +61,9 @@ const classes = {
|
|
61
61
|
'p-invalid': instance.invalid(),
|
62
62
|
'p-focus': instance.focused,
|
63
63
|
'p-inputwrapper-filled': instance.$filled(),
|
64
|
-
'p-inputwrapper-focus': (instance.focused && !instance
|
64
|
+
'p-inputwrapper-focus': (instance.focused && !instance.$disabled()) || instance.autofocus || instance.overlayVisible,
|
65
65
|
'p-autocomplete-open': instance.overlayVisible,
|
66
|
-
'p-autocomplete-clearable': instance.showClear && !instance
|
66
|
+
'p-autocomplete-clearable': instance.showClear && !instance.$disabled(),
|
67
67
|
'p-autocomplete-fluid': instance.hasFluid
|
68
68
|
}
|
69
69
|
],
|
@@ -71,7 +71,7 @@ const classes = {
|
|
71
71
|
inputMultiple: ({ instance }) => [
|
72
72
|
'p-autocomplete-input-multiple',
|
73
73
|
{
|
74
|
-
'p-disabled': instance
|
74
|
+
'p-disabled': instance.$disabled(),
|
75
75
|
'p-variant-filled': instance.$variant() === 'filled'
|
76
76
|
}
|
77
77
|
],
|
@@ -628,8 +628,6 @@ class AutoComplete extends BaseInput {
|
|
628
628
|
primeng = inject(PrimeNG);
|
629
629
|
value;
|
630
630
|
_suggestions = signal(null);
|
631
|
-
onModelChange = () => { };
|
632
|
-
onModelTouched = () => { };
|
633
631
|
timeout;
|
634
632
|
overlayVisible;
|
635
633
|
suggestionsUpdated;
|
@@ -861,7 +859,7 @@ class AutoComplete extends BaseInput {
|
|
861
859
|
return this.dataKey; // TODO: The 'optionValue' properties can be added.
|
862
860
|
}
|
863
861
|
onContainerClick(event) {
|
864
|
-
if (this
|
862
|
+
if (this.$disabled() || this.loading || this.isInputClicked(event) || this.isDropdownClicked(event)) {
|
865
863
|
return;
|
866
864
|
}
|
867
865
|
if (!this.overlayViewChild || !this.overlayViewChild.overlayViewChild?.nativeElement.contains(event.target)) {
|
@@ -932,7 +930,7 @@ class AutoComplete extends BaseInput {
|
|
932
930
|
}
|
933
931
|
}
|
934
932
|
onInputFocus(event) {
|
935
|
-
if (this
|
933
|
+
if (this.$disabled()) {
|
936
934
|
// For ScreenReaders
|
937
935
|
return;
|
938
936
|
}
|
@@ -947,7 +945,7 @@ class AutoComplete extends BaseInput {
|
|
947
945
|
this.onFocus.emit(event);
|
948
946
|
}
|
949
947
|
onMultipleContainerFocus(event) {
|
950
|
-
if (this
|
948
|
+
if (this.$disabled()) {
|
951
949
|
// For ScreenReaders
|
952
950
|
return;
|
953
951
|
}
|
@@ -958,7 +956,7 @@ class AutoComplete extends BaseInput {
|
|
958
956
|
this.focused = false;
|
959
957
|
}
|
960
958
|
onMultipleContainerKeyDown(event) {
|
961
|
-
if (this
|
959
|
+
if (this.$disabled()) {
|
962
960
|
event.preventDefault();
|
963
961
|
return;
|
964
962
|
}
|
@@ -990,7 +988,7 @@ class AutoComplete extends BaseInput {
|
|
990
988
|
this.onKeyUp.emit(event);
|
991
989
|
}
|
992
990
|
onKeyDown(event) {
|
993
|
-
if (this
|
991
|
+
if (this.$disabled()) {
|
994
992
|
event.preventDefault();
|
995
993
|
return;
|
996
994
|
}
|
@@ -1282,12 +1280,6 @@ class AutoComplete extends BaseInput {
|
|
1282
1280
|
this.inputEL.nativeElement.value = '';
|
1283
1281
|
this.onClear.emit();
|
1284
1282
|
}
|
1285
|
-
writeValue(value) {
|
1286
|
-
this.value = value;
|
1287
|
-
this.writeModelValue(value);
|
1288
|
-
this.updateInputValue();
|
1289
|
-
this.cd.markForCheck();
|
1290
|
-
}
|
1291
1283
|
hasSelectedOption() {
|
1292
1284
|
return isNotEmpty(this.modelValue());
|
1293
1285
|
}
|
@@ -1314,12 +1306,6 @@ class AutoComplete extends BaseInput {
|
|
1314
1306
|
getOptionGroupChildren(optionGroup) {
|
1315
1307
|
return this.optionGroupChildren ? resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items;
|
1316
1308
|
}
|
1317
|
-
registerOnChange(fn) {
|
1318
|
-
this.onModelChange = fn;
|
1319
|
-
}
|
1320
|
-
registerOnTouched(fn) {
|
1321
|
-
this.onModelTouched = fn;
|
1322
|
-
}
|
1323
1309
|
onOverlayAnimationStart(event) {
|
1324
1310
|
if (event.toState === 'visible') {
|
1325
1311
|
this.itemsWrapper = findSingle(this.overlayViewChild.overlayViewChild?.nativeElement, this.virtualScroll ? '.p-scroller' : '.p-autocomplete-panel');
|
@@ -1343,6 +1329,18 @@ class AutoComplete extends BaseInput {
|
|
1343
1329
|
}
|
1344
1330
|
}
|
1345
1331
|
}
|
1332
|
+
/**
|
1333
|
+
* @override
|
1334
|
+
*
|
1335
|
+
* @see {@link BaseEditableHolder.writeControlValue}
|
1336
|
+
* Writes the value to the control.
|
1337
|
+
*/
|
1338
|
+
writeControlValue(value, setModelValue) {
|
1339
|
+
this.value = value;
|
1340
|
+
setModelValue(value);
|
1341
|
+
this.updateInputValue();
|
1342
|
+
this.cd.markForCheck();
|
1343
|
+
}
|
1346
1344
|
ngOnDestroy() {
|
1347
1345
|
if (this.scrollHandler) {
|
1348
1346
|
this.scrollHandler.destroy();
|
@@ -1376,10 +1374,10 @@ class AutoComplete extends BaseInput {
|
|
1376
1374
|
[attr.pattern]="pattern()"
|
1377
1375
|
[attr.size]="inputSize()"
|
1378
1376
|
[attr.maxlength]="maxlength()"
|
1379
|
-
[attr.tabindex]="
|
1377
|
+
[attr.tabindex]="!$disabled() ? tabindex : -1"
|
1380
1378
|
[attr.required]="required() ? '' : undefined"
|
1381
1379
|
[attr.readonly]="readonly ? '' : undefined"
|
1382
|
-
[attr.disabled]="disabled() ? '' : undefined"
|
1380
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
1383
1381
|
[attr.aria-label]="ariaLabel"
|
1384
1382
|
[attr.aria-labelledby]="ariaLabelledBy"
|
1385
1383
|
[attr.aria-required]="required()"
|
@@ -1395,7 +1393,7 @@ class AutoComplete extends BaseInput {
|
|
1395
1393
|
(keyup)="onInputKeyUp($event)"
|
1396
1394
|
[fluid]="hasFluid"
|
1397
1395
|
/>
|
1398
|
-
<ng-container *ngIf="$filled() &&
|
1396
|
+
<ng-container *ngIf="$filled() && !$disabled() && showClear && !loading">
|
1399
1397
|
<svg data-p-icon="chevron-times" *ngIf="!clearIconTemplate && !_clearIconTemplate" [class]="cx('clearIcon')" (click)="clear()" [attr.aria-hidden]="true" />
|
1400
1398
|
<span *ngIf="clearIconTemplate || _clearIconTemplate" [class]="cx('clearIcon')" (click)="clear()" [attr.aria-hidden]="true">
|
1401
1399
|
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
@@ -1456,10 +1454,10 @@ class AutoComplete extends BaseInput {
|
|
1456
1454
|
role="combobox"
|
1457
1455
|
[attr.placeholder]="!$filled() ? placeholder : null"
|
1458
1456
|
aria-autocomplete="list"
|
1459
|
-
[attr.tabindex]="
|
1457
|
+
[attr.tabindex]="!$disabled() ? tabindex : -1"
|
1460
1458
|
[attr.required]="required() ? '' : undefined"
|
1461
1459
|
[attr.readonly]="readonly ? '' : undefined"
|
1462
|
-
[attr.disabled]="disabled() ? '' : undefined"
|
1460
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
1463
1461
|
[attr.aria-label]="ariaLabel"
|
1464
1462
|
[attr.aria-labelledby]="ariaLabelledBy"
|
1465
1463
|
[attr.aria-required]="required()"
|
@@ -1482,7 +1480,7 @@ class AutoComplete extends BaseInput {
|
|
1482
1480
|
<ng-template *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-template>
|
1483
1481
|
</span>
|
1484
1482
|
</ng-container>
|
1485
|
-
<button #ddBtn type="button" [attr.aria-label]="dropdownAriaLabel" [class]="cx('dropdown')" [disabled]="disabled()" pRipple (click)="handleDropdownClick($event)" *ngIf="dropdown" [attr.tabindex]="tabindex">
|
1483
|
+
<button #ddBtn type="button" [attr.aria-label]="dropdownAriaLabel" [class]="cx('dropdown')" [disabled]="$disabled()" pRipple (click)="handleDropdownClick($event)" *ngIf="dropdown" [attr.tabindex]="tabindex">
|
1486
1484
|
<span *ngIf="dropdownIcon" [ngClass]="dropdownIcon" [attr.aria-hidden]="true"></span>
|
1487
1485
|
<ng-container *ngIf="!dropdownIcon">
|
1488
1486
|
<svg data-p-icon="chevron-down" *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate" />
|
@@ -1583,7 +1581,7 @@ class AutoComplete extends BaseInput {
|
|
1583
1581
|
</span>
|
1584
1582
|
</ng-template>
|
1585
1583
|
</p-overlay>
|
1586
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "listener", "responsive", "options", "appendTo", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onAnimationStart", "onAnimationDone"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: TimesCircleIcon, selector: "[data-p-icon=\"times-circle\"]" }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1584
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "listener", "responsive", "options", "appendTo", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onAnimationStart", "onAnimationDone"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: TimesCircleIcon, selector: "[data-p-icon=\"times-circle\"]" }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1587
1585
|
}
|
1588
1586
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: AutoComplete, decorators: [{
|
1589
1587
|
type: Component,
|
@@ -1616,10 +1614,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
1616
1614
|
[attr.pattern]="pattern()"
|
1617
1615
|
[attr.size]="inputSize()"
|
1618
1616
|
[attr.maxlength]="maxlength()"
|
1619
|
-
[attr.tabindex]="
|
1617
|
+
[attr.tabindex]="!$disabled() ? tabindex : -1"
|
1620
1618
|
[attr.required]="required() ? '' : undefined"
|
1621
1619
|
[attr.readonly]="readonly ? '' : undefined"
|
1622
|
-
[attr.disabled]="disabled() ? '' : undefined"
|
1620
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
1623
1621
|
[attr.aria-label]="ariaLabel"
|
1624
1622
|
[attr.aria-labelledby]="ariaLabelledBy"
|
1625
1623
|
[attr.aria-required]="required()"
|
@@ -1635,7 +1633,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
1635
1633
|
(keyup)="onInputKeyUp($event)"
|
1636
1634
|
[fluid]="hasFluid"
|
1637
1635
|
/>
|
1638
|
-
<ng-container *ngIf="$filled() &&
|
1636
|
+
<ng-container *ngIf="$filled() && !$disabled() && showClear && !loading">
|
1639
1637
|
<svg data-p-icon="chevron-times" *ngIf="!clearIconTemplate && !_clearIconTemplate" [class]="cx('clearIcon')" (click)="clear()" [attr.aria-hidden]="true" />
|
1640
1638
|
<span *ngIf="clearIconTemplate || _clearIconTemplate" [class]="cx('clearIcon')" (click)="clear()" [attr.aria-hidden]="true">
|
1641
1639
|
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
@@ -1696,10 +1694,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
1696
1694
|
role="combobox"
|
1697
1695
|
[attr.placeholder]="!$filled() ? placeholder : null"
|
1698
1696
|
aria-autocomplete="list"
|
1699
|
-
[attr.tabindex]="
|
1697
|
+
[attr.tabindex]="!$disabled() ? tabindex : -1"
|
1700
1698
|
[attr.required]="required() ? '' : undefined"
|
1701
1699
|
[attr.readonly]="readonly ? '' : undefined"
|
1702
|
-
[attr.disabled]="disabled() ? '' : undefined"
|
1700
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
1703
1701
|
[attr.aria-label]="ariaLabel"
|
1704
1702
|
[attr.aria-labelledby]="ariaLabelledBy"
|
1705
1703
|
[attr.aria-required]="required()"
|
@@ -1722,7 +1720,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
1722
1720
|
<ng-template *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-template>
|
1723
1721
|
</span>
|
1724
1722
|
</ng-container>
|
1725
|
-
<button #ddBtn type="button" [attr.aria-label]="dropdownAriaLabel" [class]="cx('dropdown')" [disabled]="disabled()" pRipple (click)="handleDropdownClick($event)" *ngIf="dropdown" [attr.tabindex]="tabindex">
|
1723
|
+
<button #ddBtn type="button" [attr.aria-label]="dropdownAriaLabel" [class]="cx('dropdown')" [disabled]="$disabled()" pRipple (click)="handleDropdownClick($event)" *ngIf="dropdown" [attr.tabindex]="tabindex">
|
1726
1724
|
<span *ngIf="dropdownIcon" [ngClass]="dropdownIcon" [attr.aria-hidden]="true"></span>
|
1727
1725
|
<ng-container *ngIf="!dropdownIcon">
|
1728
1726
|
<svg data-p-icon="chevron-down" *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate" />
|