@spartan-ng/brain 0.0.1-alpha.605 → 0.0.1-alpha.606
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/index.d.ts +15 -10
- package/fesm2022/spartan-ng-brain-combobox.mjs +27 -10
- package/fesm2022/spartan-ng-brain-combobox.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-input-otp.mjs +10 -3
- package/fesm2022/spartan-ng-brain-input-otp.mjs.map +1 -1
- package/input-otp/index.d.ts +6 -1
- package/package.json +1 -1
package/combobox/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InputSignal, Signal,
|
|
2
|
+
import { InputSignal, Signal, ModelSignal, InjectionToken, Type, ExistingProvider, ValueProvider } from '@angular/core';
|
|
3
3
|
import { Highlightable, ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
4
4
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -36,7 +36,7 @@ interface BrnComboboxBase<T> {
|
|
|
36
36
|
filter: InputSignal<ComboboxFilter<T>>;
|
|
37
37
|
itemToString: InputSignal<ComboboxItemToString<T> | undefined>;
|
|
38
38
|
collator: Signal<Intl.Collator>;
|
|
39
|
-
search:
|
|
39
|
+
search: ModelSignal<string>;
|
|
40
40
|
disabled: Signal<boolean>;
|
|
41
41
|
disabledState: Signal<boolean>;
|
|
42
42
|
keyManager: ActiveDescendantKeyManager<BrnComboboxItem<T>>;
|
|
@@ -107,7 +107,7 @@ declare class BrnCombobox<T> implements BrnComboboxBase<T>, ControlValueAccessor
|
|
|
107
107
|
/** The selected value of the combobox. */
|
|
108
108
|
readonly value: _angular_core.ModelSignal<T | null>;
|
|
109
109
|
/** The current search query. */
|
|
110
|
-
readonly search: _angular_core.
|
|
110
|
+
readonly search: _angular_core.ModelSignal<string>;
|
|
111
111
|
private readonly _searchInputWrapper;
|
|
112
112
|
/** @internal The width of the search input wrapper */
|
|
113
113
|
readonly searchInputWrapperWidth: _angular_core.Signal<number | null>;
|
|
@@ -137,7 +137,7 @@ declare class BrnCombobox<T> implements BrnComboboxBase<T>, ControlValueAccessor
|
|
|
137
137
|
registerOnTouched(fn: TouchFn): void;
|
|
138
138
|
setDisabledState(isDisabled: boolean): void;
|
|
139
139
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnCombobox<any>, never>;
|
|
140
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnCombobox<any>, "[brnCombobox]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filterOptions": { "alias": "filterOptions"; "required": false; "isSignal": true; }; "isItemEqualToValue": { "alias": "isItemEqualToValue"; "required": false; "isSignal": true; }; "itemToString": { "alias": "itemToString"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["_searchInputWrapper", "items"], never, true, never>;
|
|
140
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnCombobox<any>, "[brnCombobox]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filterOptions": { "alias": "filterOptions"; "required": false; "isSignal": true; }; "isItemEqualToValue": { "alias": "isItemEqualToValue"; "required": false; "isSignal": true; }; "itemToString": { "alias": "itemToString"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "search": "searchChange"; }, ["_searchInputWrapper", "items"], never, true, never>;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
declare class BrnComboboxAnchor {
|
|
@@ -198,8 +198,8 @@ declare class BrnComboboxClear {
|
|
|
198
198
|
|
|
199
199
|
declare class BrnComboboxContent {
|
|
200
200
|
private readonly _combobox;
|
|
201
|
-
/** Determine if the combobox
|
|
202
|
-
protected readonly
|
|
201
|
+
/** Determine if the combobox is empty */
|
|
202
|
+
protected readonly _empty: _angular_core.Signal<boolean>;
|
|
203
203
|
protected readonly _comboboxWidth: _angular_core.Signal<number | null>;
|
|
204
204
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnComboboxContent, never>;
|
|
205
205
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnComboboxContent, "[brnComboboxContent]", never, {}, {}, never, never, true, never>;
|
|
@@ -293,7 +293,7 @@ declare class BrnComboboxMultiple<T> implements BrnComboboxBase<T>, ControlValue
|
|
|
293
293
|
/** The selected values of the combobox. */
|
|
294
294
|
readonly value: _angular_core.ModelSignal<T[] | null>;
|
|
295
295
|
/** The current search query. */
|
|
296
|
-
readonly search: _angular_core.
|
|
296
|
+
readonly search: _angular_core.ModelSignal<string>;
|
|
297
297
|
private readonly _searchInputWrapper;
|
|
298
298
|
readonly searchInputWrapperWidth: _angular_core.Signal<number | null>;
|
|
299
299
|
/** @internal Access all the items within the combobox */
|
|
@@ -322,7 +322,7 @@ declare class BrnComboboxMultiple<T> implements BrnComboboxBase<T>, ControlValue
|
|
|
322
322
|
registerOnTouched(fn: TouchFn): void;
|
|
323
323
|
setDisabledState(isDisabled: boolean): void;
|
|
324
324
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnComboboxMultiple<any>, never>;
|
|
325
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnComboboxMultiple<any>, "[brnCombobox]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filterOptions": { "alias": "filterOptions"; "required": false; "isSignal": true; }; "isItemEqualToValue": { "alias": "isItemEqualToValue"; "required": false; "isSignal": true; }; "itemToString": { "alias": "itemToString"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["_searchInputWrapper", "items"], never, true, never>;
|
|
325
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnComboboxMultiple<any>, "[brnCombobox]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filterOptions": { "alias": "filterOptions"; "required": false; "isSignal": true; }; "isItemEqualToValue": { "alias": "isItemEqualToValue"; "required": false; "isSignal": true; }; "itemToString": { "alias": "itemToString"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "search": "searchChange"; }, ["_searchInputWrapper", "items"], never, true, never>;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
declare class BrnComboboxPopoverTrigger<T> {
|
|
@@ -339,6 +339,11 @@ declare class BrnComboboxSeparator {
|
|
|
339
339
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnComboboxSeparator, "[brnComboboxSeparator]", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
declare class BrnComboboxStatus {
|
|
343
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnComboboxStatus, never>;
|
|
344
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnComboboxStatus, "[brnComboboxStatus]", never, {}, {}, never, never, true, never>;
|
|
345
|
+
}
|
|
346
|
+
|
|
342
347
|
declare class BrnComboboxTrigger<T> {
|
|
343
348
|
private readonly _combobox;
|
|
344
349
|
protected readonly _disabled: _angular_core.Signal<boolean>;
|
|
@@ -371,7 +376,7 @@ declare const comboboxEndsWithFilter: BrnComboboxFilter;
|
|
|
371
376
|
declare const BrnComboboxItemToken: InjectionToken<BrnComboboxItem<unknown>>;
|
|
372
377
|
declare function provideBrnComboboxItem<T>(Combobox: Type<BrnComboboxItem<T>>): ExistingProvider;
|
|
373
378
|
|
|
374
|
-
declare const BrnComboboxImports: readonly [typeof BrnCombobox, typeof BrnComboboxAnchor, typeof BrnComboboxChip, typeof BrnComboboxChipInput, typeof BrnComboboxChipRemove, typeof BrnComboboxClear, typeof BrnComboboxContent, typeof BrnComboboxEmpty, typeof BrnComboboxGroup, typeof BrnComboboxInputWrapper, typeof BrnComboboxInput, typeof BrnComboboxItem, typeof BrnComboboxLabel, typeof BrnComboboxList, typeof BrnComboboxMultiple, typeof BrnComboboxPopoverTrigger, typeof BrnComboboxSeparator, typeof BrnComboboxTrigger, typeof BrnComboboxValue, typeof BrnComboboxValues];
|
|
379
|
+
declare const BrnComboboxImports: readonly [typeof BrnCombobox, typeof BrnComboboxAnchor, typeof BrnComboboxChip, typeof BrnComboboxChipInput, typeof BrnComboboxChipRemove, typeof BrnComboboxClear, typeof BrnComboboxContent, typeof BrnComboboxEmpty, typeof BrnComboboxGroup, typeof BrnComboboxInputWrapper, typeof BrnComboboxInput, typeof BrnComboboxItem, typeof BrnComboboxLabel, typeof BrnComboboxList, typeof BrnComboboxMultiple, typeof BrnComboboxPopoverTrigger, typeof BrnComboboxSeparator, typeof BrnComboboxStatus, typeof BrnComboboxTrigger, typeof BrnComboboxValue, typeof BrnComboboxValues];
|
|
375
380
|
|
|
376
|
-
export { BRN_COMBOBOX_MULTIPLE_VALUE_ACCESSOR, BRN_COMBOBOX_VALUE_ACCESSOR, BrnCombobox, BrnComboboxAnchor, BrnComboboxBaseToken, BrnComboboxChip, BrnComboboxChipInput, BrnComboboxChipRemove, BrnComboboxClear, BrnComboboxContent, BrnComboboxEmpty, BrnComboboxGroup, BrnComboboxImports, BrnComboboxInput, BrnComboboxInputWrapper, BrnComboboxItem, BrnComboboxItemToken, BrnComboboxLabel, BrnComboboxList, BrnComboboxMultiple, BrnComboboxPopoverTrigger, BrnComboboxSeparator, BrnComboboxTrigger, BrnComboboxValue, BrnComboboxValues, comboboxContainsFilter, comboboxEndsWithFilter, comboboxStartsWithFilter, injectBrnComboboxBase, injectBrnComboboxConfig, provideBrnComboboxBase, provideBrnComboboxConfig, provideBrnComboboxItem };
|
|
381
|
+
export { BRN_COMBOBOX_MULTIPLE_VALUE_ACCESSOR, BRN_COMBOBOX_VALUE_ACCESSOR, BrnCombobox, BrnComboboxAnchor, BrnComboboxBaseToken, BrnComboboxChip, BrnComboboxChipInput, BrnComboboxChipRemove, BrnComboboxClear, BrnComboboxContent, BrnComboboxEmpty, BrnComboboxGroup, BrnComboboxImports, BrnComboboxInput, BrnComboboxInputWrapper, BrnComboboxItem, BrnComboboxItemToken, BrnComboboxLabel, BrnComboboxList, BrnComboboxMultiple, BrnComboboxPopoverTrigger, BrnComboboxSeparator, BrnComboboxStatus, BrnComboboxTrigger, BrnComboboxValue, BrnComboboxValues, comboboxContainsFilter, comboboxEndsWithFilter, comboboxStartsWithFilter, injectBrnComboboxBase, injectBrnComboboxConfig, provideBrnComboboxBase, provideBrnComboboxConfig, provideBrnComboboxItem };
|
|
377
382
|
export type { BrnComboboxBase, BrnComboboxConfig, BrnComboboxFilter, ComboboxFilter, ComboboxFilterOptions, ComboboxItemEqualToValue, ComboboxItemToString };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Directive, InjectionToken, inject, forwardRef, Injector, input, booleanAttribute, linkedSignal, computed, model,
|
|
3
|
+
import { Directive, InjectionToken, inject, forwardRef, Injector, input, booleanAttribute, linkedSignal, computed, model, contentChild, ElementRef, contentChildren, effect, Renderer2, TemplateRef, ViewContainerRef, PLATFORM_ID, signal } from '@angular/core';
|
|
4
4
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
5
|
import { BrnPopover } from '@spartan-ng/brain/popover';
|
|
6
6
|
import { stringifyAsLabel } from '@spartan-ng/brain/core';
|
|
@@ -112,7 +112,7 @@ class BrnCombobox {
|
|
|
112
112
|
/** The selected value of the combobox. */
|
|
113
113
|
value = model(null);
|
|
114
114
|
/** The current search query. */
|
|
115
|
-
search =
|
|
115
|
+
search = model('');
|
|
116
116
|
_searchInputWrapper = contentChild(BrnComboboxInputWrapper, {
|
|
117
117
|
read: ElementRef,
|
|
118
118
|
});
|
|
@@ -195,7 +195,7 @@ class BrnCombobox {
|
|
|
195
195
|
this._disabled.set(isDisabled);
|
|
196
196
|
}
|
|
197
197
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BrnCombobox, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
198
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.0.7", type: BrnCombobox, isStandalone: true, selector: "[brnCombobox]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterOptions: { classPropertyName: "filterOptions", publicName: "filterOptions", isSignal: true, isRequired: false, transformFunction: null }, isItemEqualToValue: { classPropertyName: "isItemEqualToValue", publicName: "isItemEqualToValue", isSignal: true, isRequired: false, transformFunction: null }, itemToString: { classPropertyName: "itemToString", publicName: "itemToString", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [provideBrnComboboxBase(BrnCombobox), BRN_COMBOBOX_VALUE_ACCESSOR], queries: [{ propertyName: "_searchInputWrapper", first: true, predicate: BrnComboboxInputWrapper, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "items", predicate: BrnComboboxItemToken, descendants: true, isSignal: true }], ngImport: i0 });
|
|
198
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.0.7", type: BrnCombobox, isStandalone: true, selector: "[brnCombobox]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterOptions: { classPropertyName: "filterOptions", publicName: "filterOptions", isSignal: true, isRequired: false, transformFunction: null }, isItemEqualToValue: { classPropertyName: "isItemEqualToValue", publicName: "isItemEqualToValue", isSignal: true, isRequired: false, transformFunction: null }, itemToString: { classPropertyName: "itemToString", publicName: "itemToString", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", search: "searchChange" }, providers: [provideBrnComboboxBase(BrnCombobox), BRN_COMBOBOX_VALUE_ACCESSOR], queries: [{ propertyName: "_searchInputWrapper", first: true, predicate: BrnComboboxInputWrapper, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "items", predicate: BrnComboboxItemToken, descendants: true, isSignal: true }], ngImport: i0 });
|
|
199
199
|
}
|
|
200
200
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BrnCombobox, decorators: [{
|
|
201
201
|
type: Directive,
|
|
@@ -207,18 +207,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
207
207
|
|
|
208
208
|
class BrnComboboxContent {
|
|
209
209
|
_combobox = injectBrnComboboxBase();
|
|
210
|
-
/** Determine if the combobox
|
|
211
|
-
|
|
210
|
+
/** Determine if the combobox is empty */
|
|
211
|
+
_empty = computed(() => !this._combobox.visibleItems() && this._combobox.search().length > 0);
|
|
212
212
|
_comboboxWidth = this._combobox.searchInputWrapperWidth;
|
|
213
213
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BrnComboboxContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
214
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: BrnComboboxContent, isStandalone: true, selector: "[brnComboboxContent]", host: { properties: { "attr.data-empty": "
|
|
214
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: BrnComboboxContent, isStandalone: true, selector: "[brnComboboxContent]", host: { properties: { "attr.data-empty": "_empty() ? \"\" : null", "style.--brn-combobox-width.px": "_comboboxWidth()" } }, ngImport: i0 });
|
|
215
215
|
}
|
|
216
216
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BrnComboboxContent, decorators: [{
|
|
217
217
|
type: Directive,
|
|
218
218
|
args: [{
|
|
219
219
|
selector: '[brnComboboxContent]',
|
|
220
220
|
host: {
|
|
221
|
-
'[attr.data-empty]': '
|
|
221
|
+
'[attr.data-empty]': '_empty() ? "" : null',
|
|
222
222
|
'[style.--brn-combobox-width.px]': '_comboboxWidth()',
|
|
223
223
|
},
|
|
224
224
|
}]
|
|
@@ -672,7 +672,7 @@ class BrnComboboxMultiple {
|
|
|
672
672
|
/** The selected values of the combobox. */
|
|
673
673
|
value = model(null);
|
|
674
674
|
/** The current search query. */
|
|
675
|
-
search =
|
|
675
|
+
search = model('');
|
|
676
676
|
_searchInputWrapper = contentChild(BrnComboboxInputWrapper, {
|
|
677
677
|
read: ElementRef,
|
|
678
678
|
});
|
|
@@ -771,7 +771,7 @@ class BrnComboboxMultiple {
|
|
|
771
771
|
this._disabled.set(isDisabled);
|
|
772
772
|
}
|
|
773
773
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BrnComboboxMultiple, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
774
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.0.7", type: BrnComboboxMultiple, isStandalone: true, selector: "[brnCombobox]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterOptions: { classPropertyName: "filterOptions", publicName: "filterOptions", isSignal: true, isRequired: false, transformFunction: null }, isItemEqualToValue: { classPropertyName: "isItemEqualToValue", publicName: "isItemEqualToValue", isSignal: true, isRequired: false, transformFunction: null }, itemToString: { classPropertyName: "itemToString", publicName: "itemToString", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [provideBrnComboboxBase(BrnComboboxMultiple), BRN_COMBOBOX_MULTIPLE_VALUE_ACCESSOR], queries: [{ propertyName: "_searchInputWrapper", first: true, predicate: BrnComboboxInputWrapper, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "items", predicate: BrnComboboxItemToken, descendants: true, isSignal: true }], ngImport: i0 });
|
|
774
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.0.7", type: BrnComboboxMultiple, isStandalone: true, selector: "[brnCombobox]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterOptions: { classPropertyName: "filterOptions", publicName: "filterOptions", isSignal: true, isRequired: false, transformFunction: null }, isItemEqualToValue: { classPropertyName: "isItemEqualToValue", publicName: "isItemEqualToValue", isSignal: true, isRequired: false, transformFunction: null }, itemToString: { classPropertyName: "itemToString", publicName: "itemToString", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", search: "searchChange" }, providers: [provideBrnComboboxBase(BrnComboboxMultiple), BRN_COMBOBOX_MULTIPLE_VALUE_ACCESSOR], queries: [{ propertyName: "_searchInputWrapper", first: true, predicate: BrnComboboxInputWrapper, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "items", predicate: BrnComboboxItemToken, descendants: true, isSignal: true }], ngImport: i0 });
|
|
775
775
|
}
|
|
776
776
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BrnComboboxMultiple, decorators: [{
|
|
777
777
|
type: Directive,
|
|
@@ -819,6 +819,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
819
819
|
}]
|
|
820
820
|
}] });
|
|
821
821
|
|
|
822
|
+
class BrnComboboxStatus {
|
|
823
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BrnComboboxStatus, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
824
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: BrnComboboxStatus, isStandalone: true, selector: "[brnComboboxStatus]", host: { attributes: { "role": "status", "aria-live": "polite", "aria-atomic": "true" } }, ngImport: i0 });
|
|
825
|
+
}
|
|
826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BrnComboboxStatus, decorators: [{
|
|
827
|
+
type: Directive,
|
|
828
|
+
args: [{
|
|
829
|
+
selector: '[brnComboboxStatus]',
|
|
830
|
+
host: {
|
|
831
|
+
role: 'status',
|
|
832
|
+
'aria-live': 'polite',
|
|
833
|
+
'aria-atomic': 'true',
|
|
834
|
+
},
|
|
835
|
+
}]
|
|
836
|
+
}] });
|
|
837
|
+
|
|
822
838
|
class BrnComboboxTrigger {
|
|
823
839
|
_combobox = injectBrnComboboxBase();
|
|
824
840
|
_disabled = this._combobox.disabledState;
|
|
@@ -906,6 +922,7 @@ const BrnComboboxImports = [
|
|
|
906
922
|
BrnComboboxMultiple,
|
|
907
923
|
BrnComboboxPopoverTrigger,
|
|
908
924
|
BrnComboboxSeparator,
|
|
925
|
+
BrnComboboxStatus,
|
|
909
926
|
BrnComboboxTrigger,
|
|
910
927
|
BrnComboboxValue,
|
|
911
928
|
BrnComboboxValues,
|
|
@@ -915,5 +932,5 @@ const BrnComboboxImports = [
|
|
|
915
932
|
* Generated bundle index. Do not edit.
|
|
916
933
|
*/
|
|
917
934
|
|
|
918
|
-
export { BRN_COMBOBOX_MULTIPLE_VALUE_ACCESSOR, BRN_COMBOBOX_VALUE_ACCESSOR, BrnCombobox, BrnComboboxAnchor, BrnComboboxBaseToken, BrnComboboxChip, BrnComboboxChipInput, BrnComboboxChipRemove, BrnComboboxClear, BrnComboboxContent, BrnComboboxEmpty, BrnComboboxGroup, BrnComboboxImports, BrnComboboxInput, BrnComboboxInputWrapper, BrnComboboxItem, BrnComboboxItemToken, BrnComboboxLabel, BrnComboboxList, BrnComboboxMultiple, BrnComboboxPopoverTrigger, BrnComboboxSeparator, BrnComboboxTrigger, BrnComboboxValue, BrnComboboxValues, comboboxContainsFilter, comboboxEndsWithFilter, comboboxStartsWithFilter, injectBrnComboboxBase, injectBrnComboboxConfig, provideBrnComboboxBase, provideBrnComboboxConfig, provideBrnComboboxItem };
|
|
935
|
+
export { BRN_COMBOBOX_MULTIPLE_VALUE_ACCESSOR, BRN_COMBOBOX_VALUE_ACCESSOR, BrnCombobox, BrnComboboxAnchor, BrnComboboxBaseToken, BrnComboboxChip, BrnComboboxChipInput, BrnComboboxChipRemove, BrnComboboxClear, BrnComboboxContent, BrnComboboxEmpty, BrnComboboxGroup, BrnComboboxImports, BrnComboboxInput, BrnComboboxInputWrapper, BrnComboboxItem, BrnComboboxItemToken, BrnComboboxLabel, BrnComboboxList, BrnComboboxMultiple, BrnComboboxPopoverTrigger, BrnComboboxSeparator, BrnComboboxStatus, BrnComboboxTrigger, BrnComboboxValue, BrnComboboxValues, comboboxContainsFilter, comboboxEndsWithFilter, comboboxStartsWithFilter, injectBrnComboboxBase, injectBrnComboboxConfig, provideBrnComboboxBase, provideBrnComboboxConfig, provideBrnComboboxItem };
|
|
919
936
|
//# sourceMappingURL=spartan-ng-brain-combobox.mjs.map
|