@quadrel-enterprise-ui/framework 20.30.0 → 20.30.1
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/index.d.ts
CHANGED
|
@@ -7,18 +7,17 @@ import { InjectionToken, EventEmitter, OnInit, PipeTransform, TemplateRef, After
|
|
|
7
7
|
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpParams } from '@angular/common/http';
|
|
8
8
|
import * as i2 from '@angular/common';
|
|
9
9
|
import { Moment } from 'moment/moment';
|
|
10
|
-
import * as
|
|
10
|
+
import * as i29 from '@angular/forms';
|
|
11
11
|
import { AbstractControl, UntypedFormGroup, ControlValueAccessor, UntypedFormControl, ValidationErrors, FormControlOptions, AsyncValidatorFn, ValidatorFn, UntypedFormArray, AbstractControlOptions, ɵTypedOrUntyped as _TypedOrUntyped, UntypedFormBuilder, FormGroup, FormArray } from '@angular/forms';
|
|
12
12
|
import * as i5 from '@ngx-translate/core';
|
|
13
13
|
import { TranslateService } from '@ngx-translate/core';
|
|
14
14
|
import { OverlayRef, OverlayPositionBuilder, Overlay, ConnectedPosition } from '@angular/cdk/overlay';
|
|
15
15
|
import * as i4 from '@angular/router';
|
|
16
16
|
import { Params } from '@angular/router';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i38 from 'ngx-editor';
|
|
18
18
|
import { Editor, Toolbar } from 'ngx-editor';
|
|
19
19
|
import { Moment as Moment$1 } from 'moment';
|
|
20
|
-
import { Highlightable
|
|
21
|
-
import * as _quadrel_enterprise_ui_framework from '@quadrel-enterprise-ui/framework';
|
|
20
|
+
import { Highlightable } from '@angular/cdk/a11y';
|
|
22
21
|
import * as i26 from '@ngrx/store';
|
|
23
22
|
import * as i5$1 from '@angular/cdk/stepper';
|
|
24
23
|
import { CdkStep, CdkStepper, StepState, CdkStepHeader } from '@angular/cdk/stepper';
|
|
@@ -3696,7 +3695,7 @@ declare class QdMockCheckboxChipsItemComponent {
|
|
|
3696
3695
|
|
|
3697
3696
|
declare class QdMockFormsModule {
|
|
3698
3697
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdMockFormsModule, never>;
|
|
3699
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<QdMockFormsModule, [typeof QdMockCalendarComponent, typeof QdMockCheckboxChipsComponent, typeof QdMockCheckboxChipsItemComponent, typeof QdMockCheckboxComponent, typeof QdMockCheckboxesComponent, typeof QdMockDatepickerComponent, typeof QdMockDropdownComponent, typeof QdMockFilterFormItemsComponent, typeof QdMockFormErrorComponent, typeof QdMockFormGroupErrorComponent, typeof QdMockFormHintComponent, typeof QdMockFormLabelComponent, typeof QdMockFormReadonlyComponent, typeof QdMockFormViewonlyComponent, typeof QdMockInputComponent, typeof QdMockPinCodeComponent, typeof QdMockRadioButtonsComponent, typeof QdMockSwitchComponent, typeof QdMockSwitchesComponent, typeof QdMockTextareaComponent], [typeof i2.CommonModule, typeof
|
|
3698
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdMockFormsModule, [typeof QdMockCalendarComponent, typeof QdMockCheckboxChipsComponent, typeof QdMockCheckboxChipsItemComponent, typeof QdMockCheckboxComponent, typeof QdMockCheckboxesComponent, typeof QdMockDatepickerComponent, typeof QdMockDropdownComponent, typeof QdMockFilterFormItemsComponent, typeof QdMockFormErrorComponent, typeof QdMockFormGroupErrorComponent, typeof QdMockFormHintComponent, typeof QdMockFormLabelComponent, typeof QdMockFormReadonlyComponent, typeof QdMockFormViewonlyComponent, typeof QdMockInputComponent, typeof QdMockPinCodeComponent, typeof QdMockRadioButtonsComponent, typeof QdMockSwitchComponent, typeof QdMockSwitchesComponent, typeof QdMockTextareaComponent], [typeof i2.CommonModule, typeof i29.FormsModule], [typeof QdMockCalendarComponent, typeof QdMockCheckboxChipsComponent, typeof QdMockCheckboxComponent, typeof QdMockCheckboxesComponent, typeof QdMockDatepickerComponent, typeof QdMockDropdownComponent, typeof QdMockFilterFormItemsComponent, typeof QdMockFormErrorComponent, typeof QdMockFormGroupErrorComponent, typeof QdMockFormHintComponent, typeof QdMockFormLabelComponent, typeof QdMockFormReadonlyComponent, typeof QdMockFormViewonlyComponent, typeof QdMockInputComponent, typeof QdMockPinCodeComponent, typeof QdMockRadioButtonsComponent, typeof QdMockSwitchComponent, typeof QdMockSwitchesComponent, typeof QdMockTextareaComponent]>;
|
|
3700
3699
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdMockFormsModule>;
|
|
3701
3700
|
}
|
|
3702
3701
|
|
|
@@ -6591,6 +6590,7 @@ declare class QdDropdownComponent implements ControlValueAccessor, OnInit, OnCha
|
|
|
6591
6590
|
private readonly actionEmitterService;
|
|
6592
6591
|
private readonly resolverRegistry;
|
|
6593
6592
|
private readonly optionsService;
|
|
6593
|
+
private readonly keyboardService;
|
|
6594
6594
|
private readonly injector;
|
|
6595
6595
|
private readonly controlContainer;
|
|
6596
6596
|
private readonly eventBrokerService;
|
|
@@ -6710,14 +6710,15 @@ declare class QdDropdownComponent implements ControlValueAccessor, OnInit, OnCha
|
|
|
6710
6710
|
label: string;
|
|
6711
6711
|
filter: boolean;
|
|
6712
6712
|
options: QdFormOption[];
|
|
6713
|
-
filterText:
|
|
6713
|
+
filterText: string;
|
|
6714
|
+
readonly filteredOptions$: Observable<QdFormResolvedOptions>;
|
|
6714
6715
|
control: AbstractControl;
|
|
6715
6716
|
private _value;
|
|
6716
6717
|
private _selectedOption;
|
|
6717
6718
|
private _subs;
|
|
6718
6719
|
private _onChange;
|
|
6719
6720
|
private _onTouch;
|
|
6720
|
-
private
|
|
6721
|
+
private filterInput;
|
|
6721
6722
|
private dropdownDirective;
|
|
6722
6723
|
box: ElementRef;
|
|
6723
6724
|
isOpen: boolean;
|
|
@@ -6742,7 +6743,8 @@ declare class QdDropdownComponent implements ControlValueAccessor, OnInit, OnCha
|
|
|
6742
6743
|
hasOptions(): boolean;
|
|
6743
6744
|
handleOptionSelected(option: QdFormOption): void;
|
|
6744
6745
|
handleClick(option: QdFormOption): void;
|
|
6745
|
-
handleFilterChange($event:
|
|
6746
|
+
handleFilterChange($event: string): void;
|
|
6747
|
+
onListKeydown(event: KeyboardEvent): void;
|
|
6746
6748
|
onOpenDropdown(): void;
|
|
6747
6749
|
onDropdownClosed(): void;
|
|
6748
6750
|
private loadOptionsForCurrentConfig;
|
|
@@ -7205,6 +7207,8 @@ declare class QdFileUploadService {
|
|
|
7205
7207
|
declare class QdInputComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor, QdFocusable {
|
|
7206
7208
|
private readonly actionEmitterService;
|
|
7207
7209
|
private readonly optionsService;
|
|
7210
|
+
private readonly resolverRegistry;
|
|
7211
|
+
private readonly keyboardService;
|
|
7208
7212
|
private readonly controlContainer;
|
|
7209
7213
|
private readonly eventBrokerService;
|
|
7210
7214
|
private readonly numberInputService;
|
|
@@ -7286,6 +7290,7 @@ declare class QdInputComponent implements OnInit, OnChanges, OnDestroy, ControlV
|
|
|
7286
7290
|
readonly optionsResolved: EventEmitter<QdFormOptionsResolvedEvent>;
|
|
7287
7291
|
closeOptions(): void;
|
|
7288
7292
|
openOptionsOnArrow(event: KeyboardEvent): void;
|
|
7293
|
+
selectActiveOption(): void;
|
|
7289
7294
|
readonly: boolean;
|
|
7290
7295
|
readonlyAction: boolean;
|
|
7291
7296
|
viewonly: boolean;
|
|
@@ -7300,6 +7305,9 @@ declare class QdInputComponent implements OnInit, OnChanges, OnDestroy, ControlV
|
|
|
7300
7305
|
inputElement: ElementRef;
|
|
7301
7306
|
private popover?;
|
|
7302
7307
|
isOptionsOpen: boolean;
|
|
7308
|
+
readonly filteredOptions$: rxjs.Observable<QdFormBaseOption[]>;
|
|
7309
|
+
readonly optionsRequestState$: rxjs.Observable<QdFormOptionsRequestState>;
|
|
7310
|
+
protected readonly QdFormOptionsRequestState: typeof QdFormOptionsRequestState;
|
|
7303
7311
|
inputType: QdInputType;
|
|
7304
7312
|
inputMode: QdInputMode;
|
|
7305
7313
|
htmlInputType: string;
|
|
@@ -7314,10 +7322,13 @@ declare class QdInputComponent implements OnInit, OnChanges, OnDestroy, ControlV
|
|
|
7314
7322
|
control: AbstractControl | QdFormControl<any>;
|
|
7315
7323
|
private _subs;
|
|
7316
7324
|
private _filteredOptions;
|
|
7325
|
+
private _optionsResolver;
|
|
7317
7326
|
private _isUserTyped;
|
|
7318
7327
|
private _onChange;
|
|
7319
7328
|
private _onTouch;
|
|
7320
7329
|
get hasOnlyUnitsError(): boolean;
|
|
7330
|
+
get requestLoadingHintI18n(): string;
|
|
7331
|
+
get requestErrorHintI18n(): string;
|
|
7321
7332
|
get hasUnits(): boolean;
|
|
7322
7333
|
get ambiguityHintKey(): string;
|
|
7323
7334
|
get isAmbiguousInput(): boolean;
|
|
@@ -7623,6 +7634,8 @@ interface QdFormArrayOptions extends AbstractControlOptions {
|
|
|
7623
7634
|
declare class QdMultiInputComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy, OnDestroy {
|
|
7624
7635
|
private readonly hostRef;
|
|
7625
7636
|
private readonly multiInputService;
|
|
7637
|
+
private readonly keyboardService;
|
|
7638
|
+
private readonly optionsService;
|
|
7626
7639
|
private readonly changeDetectorRef;
|
|
7627
7640
|
private readonly actionEmitterService;
|
|
7628
7641
|
private readonly qdFormArrayFactoryService;
|
|
@@ -7685,10 +7698,8 @@ declare class QdMultiInputComponent implements ControlValueAccessor, OnInit, OnC
|
|
|
7685
7698
|
*/
|
|
7686
7699
|
readonly clickViewonly: EventEmitter<any>;
|
|
7687
7700
|
inputField: ElementRef;
|
|
7688
|
-
private multiInputMenu;
|
|
7689
7701
|
private popoverOnClickDirective;
|
|
7690
7702
|
errorTooltips: QueryList<ElementRef>;
|
|
7691
|
-
dropdownOptions: QueryList<ElementRef>;
|
|
7692
7703
|
readonly: boolean;
|
|
7693
7704
|
readonlyAction: boolean;
|
|
7694
7705
|
viewonly: boolean;
|
|
@@ -8250,13 +8261,31 @@ declare class QdRichtextComponent implements OnInit, OnDestroy, ControlValueAcce
|
|
|
8250
8261
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdRichtextComponent, "qd-richtext", never, { "formControlName": { "alias": "formControlName"; "required": false; }; "value": { "alias": "value"; "required": false; }; "config": { "alias": "config"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "valueChange": "valueChange"; "clickHint": "clickHint"; "clickReadonly": "clickReadonly"; "clickViewonly": "clickViewonly"; }, never, never, false, never>;
|
|
8251
8262
|
}
|
|
8252
8263
|
|
|
8264
|
+
/**
|
|
8265
|
+
* Renders the filter row of an options list.
|
|
8266
|
+
*
|
|
8267
|
+
* The row shows a magnifier icon and a text input. It takes its start text
|
|
8268
|
+
* from `inputFilterValue` once on init and then emits every change through
|
|
8269
|
+
* `filterValueChange`. The filtering itself stays in the owning component.
|
|
8270
|
+
*/
|
|
8253
8271
|
declare class QdFilterFormItemsComponent implements OnInit {
|
|
8254
|
-
|
|
8255
|
-
|
|
8272
|
+
/**
|
|
8273
|
+
* Sets the text the filter input starts with. <br />
|
|
8274
|
+
* The value is read once on init, later changes are ignored.
|
|
8275
|
+
*/
|
|
8276
|
+
inputFilterValue?: string;
|
|
8277
|
+
/**
|
|
8278
|
+
* A static test ID for integration tests can be set. <br />
|
|
8279
|
+
* The value for the HTML attribute [data-test-id].
|
|
8280
|
+
*/
|
|
8256
8281
|
testId: string;
|
|
8257
|
-
|
|
8282
|
+
/**
|
|
8283
|
+
* Emits the current text of the filter input on every change.
|
|
8284
|
+
*/
|
|
8285
|
+
filterValueChange: EventEmitter<string>;
|
|
8286
|
+
filterValue?: string;
|
|
8258
8287
|
ngOnInit(): void;
|
|
8259
|
-
changeValue($event:
|
|
8288
|
+
changeValue($event: string): void;
|
|
8260
8289
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFilterFormItemsComponent, never>;
|
|
8261
8290
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdFilterFormItemsComponent, "qd-filter-form-items", never, { "inputFilterValue": { "alias": "inputFilterValue"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "filterValueChange": "filterValueChange"; }, never, never, false, never>;
|
|
8262
8291
|
}
|
|
@@ -8836,62 +8865,52 @@ declare class QdCheckboxChipsItemComponent {
|
|
|
8836
8865
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdCheckboxChipsItemComponent, "qd-checkbox-chips-item", never, { "data": { "alias": "data"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
8837
8866
|
}
|
|
8838
8867
|
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
private _isActive;
|
|
8843
|
-
get isActive(): boolean;
|
|
8844
|
-
private element;
|
|
8845
|
-
scrollIntoView(): void;
|
|
8846
|
-
setActiveStyles(): void;
|
|
8847
|
-
setInactiveStyles(): void;
|
|
8848
|
-
getLabel(): string;
|
|
8849
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormInputComponent, never>;
|
|
8850
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdFormInputComponent, "qd-form-input", never, { "option": { "alias": "option"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
8851
|
-
}
|
|
8852
|
-
|
|
8853
|
-
declare class QdDropdownOptionsComponent implements AfterViewInit {
|
|
8854
|
-
private keyboardService;
|
|
8855
|
-
private optionsService;
|
|
8856
|
-
filter: boolean;
|
|
8857
|
-
filterText: string;
|
|
8858
|
-
testId: string;
|
|
8859
|
-
id: string;
|
|
8860
|
-
readonly filterChange: EventEmitter<string>;
|
|
8861
|
-
readonly optionClick: EventEmitter<any>;
|
|
8862
|
-
optionComponents: QueryList<QdFormInputComponent>;
|
|
8863
|
-
filterElement: ElementRef;
|
|
8864
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
8865
|
-
selectedOptionValue: string;
|
|
8866
|
-
filteredOptions$: Observable<QdFormResolvedOption[] | QdFormOption[]>;
|
|
8867
|
-
optionSelected: EventEmitter<any>;
|
|
8868
|
-
constructor();
|
|
8869
|
-
ngAfterViewInit(): void;
|
|
8870
|
-
onOpen(): void;
|
|
8871
|
-
onFilterInputChange(value: string): void;
|
|
8872
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdDropdownOptionsComponent, never>;
|
|
8873
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdDropdownOptionsComponent, "qd-dropdown-options", never, { "filter": { "alias": "filter"; "required": false; }; "filterText": { "alias": "filterText"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "filterChange": "filterChange"; "optionClick": "optionClick"; }, never, never, false, never>;
|
|
8868
|
+
interface QdFormErrorItem {
|
|
8869
|
+
key: string;
|
|
8870
|
+
params?: Record<string, unknown>;
|
|
8874
8871
|
}
|
|
8875
8872
|
|
|
8873
|
+
/**
|
|
8874
|
+
* Shows the validation errors of a form control.
|
|
8875
|
+
*
|
|
8876
|
+
* The component renders one line per error and translates its key.
|
|
8877
|
+
*
|
|
8878
|
+
* #### Internal invariant:
|
|
8879
|
+
*
|
|
8880
|
+
* - For a form group or a form array the component also collects the errors
|
|
8881
|
+
* of the direct child controls. Errors of the control itself and of its
|
|
8882
|
+
* children are merged, so the same error key appears only once.
|
|
8883
|
+
*/
|
|
8876
8884
|
declare class QdFormErrorComponent {
|
|
8877
|
-
control?: AbstractControl;
|
|
8878
|
-
get errorArr():
|
|
8879
|
-
key: string;
|
|
8880
|
-
params?: string;
|
|
8881
|
-
}[];
|
|
8885
|
+
control?: AbstractControl | null;
|
|
8886
|
+
get errorArr(): QdFormErrorItem[];
|
|
8882
8887
|
private getAccumulatedErrorsOfItemControls;
|
|
8883
8888
|
private getItemControls;
|
|
8884
8889
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormErrorComponent, never>;
|
|
8885
8890
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdFormErrorComponent, "qd-form-error", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
|
|
8886
8891
|
}
|
|
8887
8892
|
|
|
8893
|
+
/**
|
|
8894
|
+
* Shows the hint line below a form field, or its error messages.
|
|
8895
|
+
*
|
|
8896
|
+
* The field decides what is visible: with `hasError` the component renders
|
|
8897
|
+
* the errors of `control`, otherwise the `hint` text. With `hintAction` the
|
|
8898
|
+
* hint becomes clickable.
|
|
8899
|
+
*
|
|
8900
|
+
* #### Internal invariant:
|
|
8901
|
+
*
|
|
8902
|
+
* - A click on the hint is not emitted as an output. It goes through
|
|
8903
|
+
* `QdFormsActionEmitterService.hintEventEmitterSubject`.
|
|
8904
|
+
* - The owning form field must provide that service and subscribe to the
|
|
8905
|
+
* subject, otherwise the click is lost.
|
|
8906
|
+
*/
|
|
8888
8907
|
declare class QdFormHintComponent {
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
hintAction: any;
|
|
8908
|
+
hint?: string;
|
|
8909
|
+
control?: AbstractControl | null;
|
|
8910
|
+
hasError?: boolean;
|
|
8911
|
+
hintAction?: boolean;
|
|
8894
8912
|
testId: string;
|
|
8913
|
+
private readonly actionEmitterService;
|
|
8895
8914
|
handleClick(): void;
|
|
8896
8915
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormHintComponent, never>;
|
|
8897
8916
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdFormHintComponent, "qd-form-hint", never, { "hint": { "alias": "hint"; "required": false; }; "control": { "alias": "control"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "hintAction": { "alias": "hintAction"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -8911,29 +8930,56 @@ declare class QdFormLabelComponent {
|
|
|
8911
8930
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdFormLabelComponent, "qd-form-label", never, { "label": { "alias": "label"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "viewonly": { "alias": "viewonly"; "required": false; }; "control": { "alias": "control"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
8912
8931
|
}
|
|
8913
8932
|
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8933
|
+
/**
|
|
8934
|
+
* Shows the values of a form field in readonly state.
|
|
8935
|
+
*
|
|
8936
|
+
* The component renders the values as a comma separated list and translates
|
|
8937
|
+
* each entry. With `readonlyAction` the list becomes clickable.
|
|
8938
|
+
*
|
|
8939
|
+
* #### Internal invariant:
|
|
8940
|
+
*
|
|
8941
|
+
* - A click is not emitted as an output. It goes through
|
|
8942
|
+
* `QdFormsActionEmitterService.readonlyEventEmitterSubject`.
|
|
8943
|
+
* - The owning form field must provide that service and subscribe to the
|
|
8944
|
+
* subject, otherwise the click is lost.
|
|
8945
|
+
*/
|
|
8946
|
+
declare class QdFormReadonlyComponent implements OnChanges {
|
|
8947
|
+
values: Array<string | QdFormOption | null> | null;
|
|
8948
|
+
readonlyAction?: boolean;
|
|
8918
8949
|
testId: string;
|
|
8919
|
-
|
|
8950
|
+
translationKeys: string[];
|
|
8951
|
+
private readonly actionEmitterService;
|
|
8952
|
+
ngOnChanges(): void;
|
|
8920
8953
|
handleClick(): void;
|
|
8921
|
-
getTranslationKey(value:
|
|
8954
|
+
getTranslationKey(value: string | QdFormOption | null): string;
|
|
8922
8955
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormReadonlyComponent, never>;
|
|
8923
8956
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdFormReadonlyComponent, "qd-form-readonly", never, { "values": { "alias": "values"; "required": false; }; "readonlyAction": { "alias": "readonlyAction"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
8924
8957
|
}
|
|
8925
8958
|
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8959
|
+
/**
|
|
8960
|
+
* Shows the values of a form field in viewonly state.
|
|
8961
|
+
*
|
|
8962
|
+
* The component renders the values as a comma separated list and translates
|
|
8963
|
+
* each entry. An empty entry becomes a dash. With `viewonlyAction` the list
|
|
8964
|
+
* becomes clickable.
|
|
8965
|
+
*
|
|
8966
|
+
* #### Internal invariant:
|
|
8967
|
+
*
|
|
8968
|
+
* - A click is not emitted as an output. It goes through
|
|
8969
|
+
* `QdFormsActionEmitterService.viewonlyEventEmitterSubject`.
|
|
8970
|
+
* - The owning form field must provide that service and subscribe to the
|
|
8971
|
+
* subject, otherwise the click is lost.
|
|
8972
|
+
*/
|
|
8973
|
+
declare class QdFormViewonlyComponent implements OnChanges {
|
|
8974
|
+
values: Array<string | QdFormOption | null> | null;
|
|
8929
8975
|
viewonlyAction?: boolean;
|
|
8930
8976
|
testId: string;
|
|
8931
|
-
|
|
8977
|
+
formattedValues: string[];
|
|
8978
|
+
private readonly actionEmitterService;
|
|
8979
|
+
ngOnChanges(): void;
|
|
8932
8980
|
handleClick(): void;
|
|
8933
|
-
formatValue(value: string | QdFormOption): string;
|
|
8934
|
-
getTranslationKey(value: string |
|
|
8935
|
-
i18n: string;
|
|
8936
|
-
}): string;
|
|
8981
|
+
formatValue(value: string | QdFormOption | null | undefined): string;
|
|
8982
|
+
getTranslationKey(value: string | QdFormOption): string;
|
|
8937
8983
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormViewonlyComponent, never>;
|
|
8938
8984
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdFormViewonlyComponent, "qd-form-viewonly", never, { "values": { "alias": "values"; "required": false; }; "viewonlyAction": { "alias": "viewonlyAction"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
8939
8985
|
}
|
|
@@ -8956,26 +9002,6 @@ declare class QdInputUnitsComponent implements OnInit, OnChanges {
|
|
|
8956
9002
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdInputUnitsComponent, "qd-input-units", never, { "config": { "alias": "config"; "required": false; }; "unitValue": { "alias": "unit"; "required": false; }; }, { "unitChange": "unitChange"; "opened": "opened"; "closed": "closed"; }, never, never, false, never>;
|
|
8957
9003
|
}
|
|
8958
9004
|
|
|
8959
|
-
declare class QdInputOptionsComponent implements OnInit, AfterViewInit {
|
|
8960
|
-
private readonly resolverRegistry;
|
|
8961
|
-
private readonly keyboardService;
|
|
8962
|
-
private readonly optionsService;
|
|
8963
|
-
readonly optionSelected: EventEmitter<_quadrel_enterprise_ui_framework.QdFormBaseOption>;
|
|
8964
|
-
optionComponents: QueryList<QdFormInputComponent>;
|
|
8965
|
-
readonly filteredOptions$: Observable<QdFormResolvedOptions>;
|
|
8966
|
-
readonly optionsRequestState$: Observable<QdFormOptionsRequestState>;
|
|
8967
|
-
protected readonly QdFormOptionsRequestState: typeof QdFormOptionsRequestState;
|
|
8968
|
-
private _optionsResolver;
|
|
8969
|
-
get requestLoadingHintI18n(): string;
|
|
8970
|
-
get requestErrorHintI18n(): string;
|
|
8971
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
8972
|
-
ngOnInit(): void;
|
|
8973
|
-
ngAfterViewInit(): void;
|
|
8974
|
-
selectOption(option: QdFormResolvedOption): void;
|
|
8975
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdInputOptionsComponent, never>;
|
|
8976
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdInputOptionsComponent, "qd-input-options", never, {}, { "optionSelected": "optionSelected"; }, never, never, false, never>;
|
|
8977
|
-
}
|
|
8978
|
-
|
|
8979
9005
|
type QdMultiInputChipColor = 'default' | 'error' | 'pending';
|
|
8980
9006
|
|
|
8981
9007
|
declare class QdMultiInputChipComponent {
|
|
@@ -8999,32 +9025,73 @@ declare class QdMultiInputChipComponent {
|
|
|
8999
9025
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdMultiInputChipComponent, "qd-multi-input-chip", never, { "itemControl": { "alias": "itemControl"; "required": false; }; "value": { "alias": "value"; "required": false; }; "close": { "alias": "close"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "closeClickEmitter": "closeClickEmitter"; }, never, never, false, never>;
|
|
9000
9026
|
}
|
|
9001
9027
|
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9028
|
+
/**
|
|
9029
|
+
* Renders one entry of the shared option list.
|
|
9030
|
+
*
|
|
9031
|
+
* The item is only a shell: the list projects the option radio and its
|
|
9032
|
+
* label into the open default slot. The item adds the highlight state,
|
|
9033
|
+
* exposed as class `active` and as attribute `data-active` so tests can
|
|
9034
|
+
* assert it.
|
|
9035
|
+
*
|
|
9036
|
+
* #### Internal invariant:
|
|
9037
|
+
*
|
|
9038
|
+
* - The CDK `ActiveDescendantKeyManager` built in `QdFormKeyboardService`
|
|
9039
|
+
* drives this item. It calls `setActiveStyles()` and `setInactiveStyles()`
|
|
9040
|
+
* while the user navigates, and reads `getLabel()` for its typeahead.
|
|
9041
|
+
* - No other code calls these three methods. They still must stay, because
|
|
9042
|
+
* the `Highlightable` contract is what makes keyboard navigation work.
|
|
9043
|
+
*/
|
|
9044
|
+
declare class QdFormOptionItemComponent implements Highlightable {
|
|
9045
|
+
option?: QdFormResolvedOption;
|
|
9046
|
+
private _element;
|
|
9047
|
+
isActive: boolean;
|
|
9048
|
+
get activeAttribute(): 'true' | null;
|
|
9049
|
+
private readonly translateService;
|
|
9050
|
+
scrollIntoView(): void;
|
|
9051
|
+
setActiveStyles(): void;
|
|
9052
|
+
setInactiveStyles(): void;
|
|
9053
|
+
getLabel(): string;
|
|
9054
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormOptionItemComponent, never>;
|
|
9055
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdFormOptionItemComponent, "qd-form-option-item", never, { "option": { "alias": "option"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
9056
|
+
}
|
|
9057
|
+
|
|
9058
|
+
/**
|
|
9059
|
+
* Renders the shared option list used inside form field popovers.
|
|
9060
|
+
*
|
|
9061
|
+
* The list shows the given options as radio items, drives keyboard
|
|
9062
|
+
* highlighting through the shared QdFormKeyboardService and emits the
|
|
9063
|
+
* picked option. Field-specific extras like a search box or hint content
|
|
9064
|
+
* are projected through the qdFormOptionsListHeader and qdFormOptionsListStatus
|
|
9065
|
+
* slots. Data loading, filtering and value handling stay in the field.
|
|
9066
|
+
*/
|
|
9067
|
+
declare class QdFormOptionsListComponent implements AfterViewInit {
|
|
9068
|
+
id?: string;
|
|
9069
|
+
options?: QdFormOption[] | null;
|
|
9010
9070
|
/**
|
|
9011
|
-
*
|
|
9012
|
-
*
|
|
9071
|
+
* Groups the option radios under one form name.
|
|
9072
|
+
* Set a distinct name per field so open lists never share a radio group.
|
|
9013
9073
|
*/
|
|
9074
|
+
radioName: string;
|
|
9014
9075
|
testId: string;
|
|
9015
|
-
readonly
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
optionComponents: QueryList<QdFormInputComponent>;
|
|
9019
|
-
keyManager: ActiveDescendantKeyManager<QdFormInputComponent>;
|
|
9076
|
+
readonly optionSelected: EventEmitter<QdFormOption>;
|
|
9077
|
+
optionComponents: QueryList<QdFormOptionItemComponent>;
|
|
9078
|
+
private readonly keyboardService;
|
|
9020
9079
|
ngAfterViewInit(): void;
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9080
|
+
selectOption(option: QdFormOption): void;
|
|
9081
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormOptionsListComponent, never>;
|
|
9082
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdFormOptionsListComponent, "qd-form-options-list", never, { "id": { "alias": "id"; "required": false; }; "options": { "alias": "options"; "required": false; }; "radioName": { "alias": "radioName"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, ["[qdFormOptionsListHeader]", "[qdFormOptionsListStatus]"], false, never>;
|
|
9083
|
+
}
|
|
9084
|
+
|
|
9085
|
+
/**
|
|
9086
|
+
* Resolves the label of an option through QdTranslateService.
|
|
9087
|
+
* Works for i18n keys and for backend translation maps and stays
|
|
9088
|
+
* reactive to language changes because the pipe is impure.
|
|
9089
|
+
*/
|
|
9090
|
+
declare class QdFormOptionLabelPipe implements PipeTransform {
|
|
9091
|
+
private readonly translateService;
|
|
9092
|
+
transform(option: QdTranslatable): string;
|
|
9093
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormOptionLabelPipe, never>;
|
|
9094
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<QdFormOptionLabelPipe, "qdFormOptionLabel", false>;
|
|
9028
9095
|
}
|
|
9029
9096
|
|
|
9030
9097
|
/**
|
|
@@ -9114,7 +9181,7 @@ declare class QdTooltipModule {
|
|
|
9114
9181
|
|
|
9115
9182
|
declare class QdFormModule {
|
|
9116
9183
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFormModule, never>;
|
|
9117
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<QdFormModule, [typeof QdCalendarComponent, typeof QdCheckboxChipsComponent, typeof QdCheckboxChipsItemComponent, typeof QdCheckboxComponent, typeof QdCheckboxesComponent, typeof QdDatepickerComponent, typeof QdDropdownComponent, typeof
|
|
9184
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdFormModule, [typeof QdCalendarComponent, typeof QdCheckboxChipsComponent, typeof QdCheckboxChipsItemComponent, typeof QdCheckboxComponent, typeof QdCheckboxesComponent, typeof QdDatepickerComponent, typeof QdDropdownComponent, typeof QdFilterFormItemsComponent, typeof QdFormErrorComponent, typeof QdFormHintComponent, typeof QdFormLabelComponent, typeof QdFormReadonlyComponent, typeof QdFormViewonlyComponent, typeof QdInputComponent, typeof QdInputUnitsComponent, typeof QdMultiInputChipComponent, typeof QdMultiInputComponent, typeof QdPinCodeComponent, typeof QdRadioButtonsComponent, typeof QdSwitchComponent, typeof QdSwitchesComponent, typeof QdTextareaComponent, typeof QdFormOptionItemComponent, typeof QdFormOptionsListComponent, typeof QdFormOptionLabelPipe, typeof QdRichtextComponent, typeof QdFileUploadComponent], [typeof i2.CommonModule, typeof i29.FormsModule, typeof i29.ReactiveFormsModule, typeof i5.TranslateModule, typeof QdAutofocusModule, typeof QdChipModule, typeof QdCoreModule, typeof QdIconButtonModule, typeof QdIconModule, typeof QdPopoverModule, typeof QdTooltipModule, typeof i38.NgxEditorModule], [typeof QdCheckboxChipsComponent, typeof QdCheckboxComponent, typeof QdCheckboxesComponent, typeof QdDatepickerComponent, typeof QdDropdownComponent, typeof QdFilterFormItemsComponent, typeof QdInputComponent, typeof QdMultiInputComponent, typeof QdPinCodeComponent, typeof QdRadioButtonsComponent, typeof QdSwitchComponent, typeof QdSwitchesComponent, typeof QdTextareaComponent, typeof QdRichtextComponent, typeof QdFileUploadComponent]>;
|
|
9118
9185
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdFormModule>;
|
|
9119
9186
|
}
|
|
9120
9187
|
|
|
@@ -12284,7 +12351,7 @@ declare class QdFilterItemSingleSelectComponent implements OnInit, OnDestroy, Qd
|
|
|
12284
12351
|
|
|
12285
12352
|
declare class QdFilterModule {
|
|
12286
12353
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFilterModule, never>;
|
|
12287
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<QdFilterModule, [typeof LocaleDatePipe, typeof QdFilterComponent, typeof QdFilterCategoryComponent, typeof QdFilterCategoryBooleanComponent, typeof QdFilterItemBooleanComponent, typeof QdFilterItemDateCategoryComponent, typeof QdFilterItemDateComponent, typeof QdFilterItemDateRangeCategoryComponent, typeof QdFilterItemDateRangeComponent, typeof QdFilterItemFreeTextCategoryComponent, typeof QdFilterItemFreeTextComponent, typeof QdFilterItemSelectCategoryComponent, typeof QdFilterItemMultiSelectComponent, typeof QdFilterItemSingleSelectComponent], [typeof i2.CommonModule, typeof
|
|
12354
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdFilterModule, [typeof LocaleDatePipe, typeof QdFilterComponent, typeof QdFilterCategoryComponent, typeof QdFilterCategoryBooleanComponent, typeof QdFilterItemBooleanComponent, typeof QdFilterItemDateCategoryComponent, typeof QdFilterItemDateComponent, typeof QdFilterItemDateRangeCategoryComponent, typeof QdFilterItemDateRangeComponent, typeof QdFilterItemFreeTextCategoryComponent, typeof QdFilterItemFreeTextComponent, typeof QdFilterItemSelectCategoryComponent, typeof QdFilterItemMultiSelectComponent, typeof QdFilterItemSingleSelectComponent], [typeof i2.CommonModule, typeof i29.FormsModule, typeof i5.TranslateModule, typeof QdButtonModule, typeof QdChipModule, typeof QdCoreModule, typeof QdFormModule, typeof QdIconModule, typeof QdPopoverModule, typeof QdTooltipModule, typeof QdAutofocusModule, typeof i26.StoreFeatureModule], [typeof QdFilterComponent]>;
|
|
12288
12355
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdFilterModule>;
|
|
12289
12356
|
}
|
|
12290
12357
|
|
|
@@ -18331,7 +18398,7 @@ declare class QdStriphtmlPipe implements PipeTransform {
|
|
|
18331
18398
|
|
|
18332
18399
|
declare class QdCommentsModule {
|
|
18333
18400
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdCommentsModule, never>;
|
|
18334
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<QdCommentsModule, [typeof QdCommentsComponent, typeof QdCommentMenuComponent, typeof AddCommentDialogComponent, typeof QdStriphtmlPipe], [typeof i2.CommonModule, typeof i5.TranslateModule, typeof QdPopoverModule, typeof QdIconModule, typeof QdButtonModule, typeof QdFormModule, typeof QdDialogModule, typeof
|
|
18401
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdCommentsModule, [typeof QdCommentsComponent, typeof QdCommentMenuComponent, typeof AddCommentDialogComponent, typeof QdStriphtmlPipe], [typeof i2.CommonModule, typeof i5.TranslateModule, typeof QdPopoverModule, typeof QdIconModule, typeof QdButtonModule, typeof QdFormModule, typeof QdDialogModule, typeof i29.FormsModule, typeof i29.ReactiveFormsModule, typeof QdCoreModule], [typeof QdCommentsComponent]>;
|
|
18335
18402
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdCommentsModule>;
|
|
18336
18403
|
}
|
|
18337
18404
|
|
|
@@ -18888,7 +18955,7 @@ declare class QdFocusableModule {
|
|
|
18888
18955
|
|
|
18889
18956
|
declare class QdQuickEditModule {
|
|
18890
18957
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdQuickEditModule, never>;
|
|
18891
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<QdQuickEditModule, [typeof QdQuickEditComponent, typeof QdCustomForDirective], [typeof QdCoreModule, typeof QdButtonModule, typeof i2.CommonModule, typeof QdFormModule, typeof
|
|
18958
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdQuickEditModule, [typeof QdQuickEditComponent, typeof QdCustomForDirective], [typeof QdCoreModule, typeof QdButtonModule, typeof i2.CommonModule, typeof QdFormModule, typeof i29.ReactiveFormsModule, typeof QdIconModule, typeof QdPopoverModule, typeof i5.TranslateModule, typeof QdPageModule, typeof QdFocusableModule, typeof QdTooltipModule], [typeof QdQuickEditComponent]>;
|
|
18892
18959
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdQuickEditModule>;
|
|
18893
18960
|
}
|
|
18894
18961
|
|