@fundamental-ngx/core 0.46.2-rc.6 → 0.46.2-rc.8
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/combobox/combobox-item.directive.d.ts +16 -0
- package/combobox/combobox.component.d.ts +10 -6
- package/combobox/combobox.interface.d.ts +4 -0
- package/combobox/combobox.module.d.ts +3 -2
- package/combobox/index.d.ts +1 -0
- package/esm2022/combobox/combobox-item.directive.mjs +24 -0
- package/esm2022/combobox/combobox.component.mjs +14 -7
- package/esm2022/combobox/combobox.interface.mjs +1 -1
- package/esm2022/combobox/combobox.module.mjs +5 -4
- package/esm2022/combobox/index.mjs +2 -1
- package/esm2022/table/table-wrapper.component.mjs +2 -2
- package/esm2022/table/table.component.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-combobox.mjs +38 -10
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-table.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-table.mjs.map +1 -1
- package/fundamental-ngx-core-v0.46.2-rc.8.tgz +0 -0
- package/package.json +3 -3
- package/schematics/add-dependencies/index.js +4 -4
- package/fundamental-ngx-core-v0.46.2-rc.6.tgz +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { ComboboxItemDirectiveContext } from './combobox.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ComboboxItemDirective<T = unknown> {
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
* Used for type support.
|
|
8
|
+
*/
|
|
9
|
+
fdComboboxItemUse: T;
|
|
10
|
+
/** Template reference. */
|
|
11
|
+
templateRef: TemplateRef<any>;
|
|
12
|
+
/** @hidden */
|
|
13
|
+
static ngTemplateContextGuard<T>(dir: ComboboxItemDirective<T>, ctx: ComboboxItemDirectiveContext<T>): ctx is ComboboxItemDirectiveContext<T>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxItemDirective<any>, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxItemDirective<any>, "[fdComboboxItem]", never, { "fdComboboxItemUse": { "alias": "fdComboboxItemUse"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -11,7 +11,7 @@ import { Overlay, RepositionScrollStrategy } from '@angular/cdk/overlay';
|
|
|
11
11
|
import { FormStates } from '@fundamental-ngx/cdk/forms';
|
|
12
12
|
import { ContentDensityObserver } from '@fundamental-ngx/core/content-density';
|
|
13
13
|
import { ComboboxItem } from './combobox-item';
|
|
14
|
-
import { ComboboxInterface } from './combobox.interface';
|
|
14
|
+
import { ComboboxInterface, ComboboxItemDirectiveContext } from './combobox.interface';
|
|
15
15
|
import { GroupFunction } from './list-group.pipe';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
/**
|
|
@@ -26,7 +26,7 @@ import * as i0 from "@angular/core";
|
|
|
26
26
|
* </fd-combobox>
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
export declare class ComboboxComponent implements ComboboxInterface, ControlValueAccessor, OnInit, OnChanges, AfterViewInit, OnDestroy, FormItemControl {
|
|
29
|
+
export declare class ComboboxComponent<T = any> implements ComboboxInterface, ControlValueAccessor, OnInit, OnChanges, AfterViewInit, OnDestroy, FormItemControl {
|
|
30
30
|
private readonly _overlay;
|
|
31
31
|
private readonly _cdRef;
|
|
32
32
|
private readonly _injector;
|
|
@@ -44,7 +44,7 @@ export declare class ComboboxComponent implements ComboboxInterface, ControlValu
|
|
|
44
44
|
/** If it is mandatory field */
|
|
45
45
|
required: boolean;
|
|
46
46
|
/** Values to be filtered in the search input. */
|
|
47
|
-
dropdownValues:
|
|
47
|
+
dropdownValues: T[];
|
|
48
48
|
/** Filter function. Accepts an array of objects and a search term as arguments
|
|
49
49
|
* and returns a string. See search input examples for details. */
|
|
50
50
|
filterFn: (contentArray: any[], searchTerm: any) => any[];
|
|
@@ -82,7 +82,7 @@ export declare class ComboboxComponent implements ComboboxInterface, ControlValu
|
|
|
82
82
|
* The template with which to display the individual listed items.
|
|
83
83
|
* Use it by passing an ng-template with implicit content. See examples for more info.
|
|
84
84
|
*/
|
|
85
|
-
itemTemplate: TemplateRef<
|
|
85
|
+
itemTemplate: TemplateRef<ComboboxItemDirectiveContext<T>>;
|
|
86
86
|
/**
|
|
87
87
|
* Function used to handle grouping of items.
|
|
88
88
|
*/
|
|
@@ -164,6 +164,8 @@ export declare class ComboboxComponent implements ComboboxInterface, ControlValu
|
|
|
164
164
|
controlTemplate: TemplateRef<HTMLElement>;
|
|
165
165
|
/** @hidden */
|
|
166
166
|
listTemplate: TemplateRef<HTMLElement>;
|
|
167
|
+
/** @hidden */
|
|
168
|
+
private readonly _comboboxItemRenderer;
|
|
167
169
|
/** Whether the matching string should be highlighted after combobox value is selected. */
|
|
168
170
|
filterHighlight: boolean;
|
|
169
171
|
/** Keys, that won't trigger the popover's open state, when dispatched on search input */
|
|
@@ -186,6 +188,8 @@ export declare class ComboboxComponent implements ComboboxInterface, ControlValu
|
|
|
186
188
|
/** @hidden */
|
|
187
189
|
clearInputBtnFocused: boolean;
|
|
188
190
|
/** @hidden */
|
|
191
|
+
get _customRenderer(): Nullable<TemplateRef<ComboboxItemDirectiveContext<T>>>;
|
|
192
|
+
/** @hidden */
|
|
189
193
|
private _subscriptions;
|
|
190
194
|
/** @hidden */
|
|
191
195
|
private _value;
|
|
@@ -272,6 +276,6 @@ export declare class ComboboxComponent implements ComboboxInterface, ControlValu
|
|
|
272
276
|
private _setUpMobileMode;
|
|
273
277
|
/** @hidden */
|
|
274
278
|
isSelected(term: any): boolean;
|
|
275
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent
|
|
276
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent
|
|
279
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent<any>, never>;
|
|
280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent<any>, "fd-combobox", never, { "comboboxId": { "alias": "comboboxId"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "required": { "alias": "required"; "required": false; }; "dropdownValues": { "alias": "dropdownValues"; "required": false; }; "filterFn": { "alias": "filterFn"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "isSearch": { "alias": "isSearch"; "required": false; }; "glyph": { "alias": "glyph"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "triggers": { "alias": "triggers"; "required": false; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; }; "openOnKeyboardEvent": { "alias": "openOnKeyboardEvent"; "required": false; }; "state": { "alias": "state"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "groupFn": { "alias": "groupFn"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; "highlighting": { "alias": "highlighting"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "fillOnSelect": { "alias": "fillOnSelect"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "fillControlMode": { "alias": "fillControlMode"; "required": false; }; "communicateByObject": { "alias": "communicateByObject"; "required": false; }; "displayFn": { "alias": "displayFn"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "clearButtonFocusable": { "alias": "clearButtonFocusable"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "mobileConfig": { "alias": "mobileConfig"; "required": false; }; "showDropdownButton": { "alias": "showDropdownButton"; "required": false; }; "includes": { "alias": "includes"; "required": false; }; "title": { "alias": "title"; "required": false; }; "byline": { "alias": "byline"; "required": false; }; }, { "itemClicked": "itemClicked"; "openChange": "openChange"; "inputTextChange": "inputTextChange"; }, ["_comboboxItemRenderer", "listMessages"], ["*", "*"], true, never>;
|
|
277
281
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./combobox.component";
|
|
3
|
-
import * as i2 from "./
|
|
3
|
+
import * as i2 from "./combobox-item.directive";
|
|
4
|
+
import * as i3 from "./list-group.pipe";
|
|
4
5
|
/**
|
|
5
6
|
* @deprecated
|
|
6
7
|
* Use `ComboboxComponent` import instead.
|
|
7
8
|
*/
|
|
8
9
|
export declare class ComboboxModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ComboboxModule, never, [typeof i1.ComboboxComponent, typeof i2.ListGroupPipe], [typeof i1.ComboboxComponent, typeof i2.ListGroupPipe]>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComboboxModule, never, [typeof i1.ComboboxComponent, typeof i2.ComboboxItemDirective, typeof i3.ListGroupPipe], [typeof i1.ComboboxComponent, typeof i2.ComboboxItemDirective, typeof i3.ListGroupPipe]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComboboxModule>;
|
|
12
13
|
}
|
package/combobox/index.d.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Directive, Input, TemplateRef, inject } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class ComboboxItemDirective {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** Template reference. */
|
|
6
|
+
this.templateRef = inject((TemplateRef));
|
|
7
|
+
}
|
|
8
|
+
/** @hidden */
|
|
9
|
+
static ngTemplateContextGuard(dir, ctx) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: ComboboxItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
13
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.7", type: ComboboxItemDirective, isStandalone: true, selector: "[fdComboboxItem]", inputs: { fdComboboxItemUse: "fdComboboxItemUse" }, ngImport: i0 }); }
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: ComboboxItemDirective, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: '[fdComboboxItem]',
|
|
19
|
+
standalone: true
|
|
20
|
+
}]
|
|
21
|
+
}], propDecorators: { fdComboboxItemUse: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}] } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tYm9ib3gtaXRlbS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9jb21ib2JveC9jb21ib2JveC1pdGVtLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU90RSxNQUFNLE9BQU8scUJBQXFCO0lBSmxDO1FBWUksMEJBQTBCO1FBQzFCLGdCQUFXLEdBQUcsTUFBTSxDQUFDLENBQUEsV0FBNEMsQ0FBQSxDQUFDLENBQUM7S0FTdEU7SUFQRyxjQUFjO0lBQ2QsTUFBTSxDQUFDLHNCQUFzQixDQUN6QixHQUE2QixFQUM3QixHQUFvQztRQUVwQyxPQUFPLElBQUksQ0FBQztJQUNoQixDQUF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