@mozaic-ds/angular 2.0.14 → 2.0.16
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/package.json
CHANGED
|
@@ -3359,7 +3359,7 @@ declare class GridGroupDrawerComponent {
|
|
|
3359
3359
|
*
|
|
3360
3360
|
* @packageDocumentation
|
|
3361
3361
|
*/
|
|
3362
|
-
interface
|
|
3362
|
+
interface MozComboboxOption<T = unknown> {
|
|
3363
3363
|
/** Unique value used for selection comparison */
|
|
3364
3364
|
value: T;
|
|
3365
3365
|
/** Display label */
|
|
@@ -3371,18 +3371,18 @@ interface McComboboxOption<T = unknown> {
|
|
|
3371
3371
|
/** Optional icon identifier (rendered in the prepend slot) */
|
|
3372
3372
|
icon?: string;
|
|
3373
3373
|
}
|
|
3374
|
-
interface
|
|
3374
|
+
interface MozComboboxSection<T = unknown> {
|
|
3375
3375
|
/** Section heading text */
|
|
3376
3376
|
title: string;
|
|
3377
3377
|
/** Options belonging to this section */
|
|
3378
|
-
options:
|
|
3378
|
+
options: MozComboboxOption<T>[];
|
|
3379
3379
|
/** When `true` in `multiple` mode, clicking the header toggles all children */
|
|
3380
3380
|
checkable?: boolean;
|
|
3381
3381
|
}
|
|
3382
|
-
type
|
|
3383
|
-
type
|
|
3382
|
+
type MozComboboxItem<T = unknown> = MozComboboxOption<T> | MozComboboxSection<T>;
|
|
3383
|
+
type MozComboboxSize = 's' | 'm';
|
|
3384
3384
|
/** Type-guard: returns `true` when the item is a section header */
|
|
3385
|
-
declare function isSection<T>(item:
|
|
3385
|
+
declare function isSection<T>(item: MozComboboxItem<T>): item is MozComboboxSection<T>;
|
|
3386
3386
|
interface FlatOption<T = unknown> {
|
|
3387
3387
|
type: 'option';
|
|
3388
3388
|
value: T;
|
|
@@ -3402,9 +3402,10 @@ type FlatItem<T = unknown> = FlatOption<T> | FlatSection;
|
|
|
3402
3402
|
declare function isFlatSection<T>(item: FlatItem<T>): item is FlatSection;
|
|
3403
3403
|
declare function isFlatOption<T>(item: FlatItem<T>): item is FlatOption<T>;
|
|
3404
3404
|
|
|
3405
|
-
declare class
|
|
3405
|
+
declare class MozComboboxComponent<T = string> implements ControlValueAccessor {
|
|
3406
|
+
private readonly _doc;
|
|
3406
3407
|
/** Items to display (flat options or sections) */
|
|
3407
|
-
readonly items: _angular_core.InputSignal<
|
|
3408
|
+
readonly items: _angular_core.InputSignal<MozComboboxItem<T>[]>;
|
|
3408
3409
|
/** Currently selected value(s) — two-way binding with model() */
|
|
3409
3410
|
readonly value: _angular_core.ModelSignal<T | T[] | null>;
|
|
3410
3411
|
/** Placeholder text shown when nothing is selected */
|
|
@@ -3414,7 +3415,7 @@ declare class McComboboxComponent<T = string> implements ControlValueAccessor {
|
|
|
3414
3415
|
/** Show counter instead of tags in multi mode */
|
|
3415
3416
|
readonly compact: _angular_core.InputSignal<boolean>;
|
|
3416
3417
|
/** Component size variant */
|
|
3417
|
-
readonly size: _angular_core.InputSignal<
|
|
3418
|
+
readonly size: _angular_core.InputSignal<MozComboboxSize>;
|
|
3418
3419
|
/** Disable the entire component */
|
|
3419
3420
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
3420
3421
|
/** Readonly mode — no interaction allowed */
|
|
@@ -3471,6 +3472,8 @@ declare class McComboboxComponent<T = string> implements ControlValueAccessor {
|
|
|
3471
3472
|
private _onTouched;
|
|
3472
3473
|
/** Effective disabled state (input OR form-driven) */
|
|
3473
3474
|
readonly isEffectivelyDisabled: _angular_core.Signal<boolean>;
|
|
3475
|
+
/** CSS classes for the wrapper element */
|
|
3476
|
+
readonly wrapperClasses: _angular_core.Signal<string>;
|
|
3474
3477
|
/** Flatten items into a renderable list */
|
|
3475
3478
|
readonly flatItems: _angular_core.Signal<FlatItem<T>[]>;
|
|
3476
3479
|
/** Filtered items based on search query */
|
|
@@ -3522,14 +3525,14 @@ declare class McComboboxComponent<T = string> implements ControlValueAccessor {
|
|
|
3522
3525
|
/** Whether a given option value is currently selected */
|
|
3523
3526
|
isOptionSelected(optionValue: T): boolean;
|
|
3524
3527
|
private _updateTriggerWidth;
|
|
3525
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
3526
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
3528
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozComboboxComponent<any>, never>;
|
|
3529
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozComboboxComponent<any>, "moz-combobox", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "showActions": { "alias": "showActions"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "selectAllText": { "alias": "selectAllText"; "required": false; "isSignal": true; }; "clearText": { "alias": "clearText"; "required": false; "isSignal": true; }; "selectedSuffix": { "alias": "selectedSuffix"; "required": false; "isSignal": true; }; "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "opened": "opened"; "closed": "closed"; "searched": "searched"; }, never, never, true, never>;
|
|
3527
3530
|
}
|
|
3528
3531
|
|
|
3529
3532
|
/**
|
|
3530
3533
|
* Harness for a single option inside the combobox dropdown.
|
|
3531
3534
|
*/
|
|
3532
|
-
declare class
|
|
3535
|
+
declare class MozComboboxOptionHarness extends ComponentHarness {
|
|
3533
3536
|
static hostSelector: string;
|
|
3534
3537
|
getLabel(): Promise<string>;
|
|
3535
3538
|
isSelected(): Promise<boolean>;
|
|
@@ -3547,7 +3550,7 @@ declare class McComboboxOptionHarness extends ComponentHarness {
|
|
|
3547
3550
|
* expect(await harness.getDisplayValue()).toBe('Option 1');
|
|
3548
3551
|
* ```
|
|
3549
3552
|
*/
|
|
3550
|
-
declare class
|
|
3553
|
+
declare class MozComboboxHarness extends ComponentHarness {
|
|
3551
3554
|
static hostSelector: string;
|
|
3552
3555
|
private _getTrigger;
|
|
3553
3556
|
private _getClearButton;
|
|
@@ -3557,7 +3560,7 @@ declare class McComboboxHarness extends ComponentHarness {
|
|
|
3557
3560
|
isOpen(): Promise<boolean>;
|
|
3558
3561
|
getDisplayValue(): Promise<string>;
|
|
3559
3562
|
getPlaceholder(): Promise<string>;
|
|
3560
|
-
getOptions(): Promise<
|
|
3563
|
+
getOptions(): Promise<MozComboboxOptionHarness[]>;
|
|
3561
3564
|
selectOption(filter: {
|
|
3562
3565
|
label: string;
|
|
3563
3566
|
}): Promise<void>;
|
|
@@ -3569,5 +3572,5 @@ declare class McComboboxHarness extends ComponentHarness {
|
|
|
3569
3572
|
getSelectedCount(): Promise<number>;
|
|
3570
3573
|
}
|
|
3571
3574
|
|
|
3572
|
-
export { ACTION_LISTBOX_CONFIG, ActionListboxContainerComponent, ActionListboxRef, BuiltInMenuComponent, CellSelectionEngine, ColumnReorderEngine, ColumnResizeEngine, DEFAULT_ACTION_LISTBOX_CONFIG, DEFAULT_GRID_OPTIONS, DEFAULT_MODAL_CONFIG, DEFAULT_TOASTER_CONFIG, DRAWER_CONFIG, DRAWER_DATA, DrawerContainerComponent, ExpandableRowEngine, ExportEngine, FilterEngine, GridEngine, GridGroupDrawerComponent, GridSettingsDrawerComponent, GridStateManager, GroupEngine, InlineEditEngine, KeyboardEngine, MODAL_CONFIG, MODAL_DATA,
|
|
3573
|
-
export type { ActionListboxConfig, ActionListboxPosition, ActiveFilter, BulkCopyEvent, BulkDeleteEvent, BulkEditEvent, BulkPasteEvent, CellCoord, CellEditCancelEvent, CellEditEvent, CellEditState, CellEditorType, CellRange, CellSelectionEvent, ColumnDef, ColumnFreezeEvent, ColumnReorderEvent, ColumnResizeEvent, ColumnSearchToggleEvent, ColumnStateEntry, ColumnVisibilityEvent, DisplayRow, ExportOptions, FilterDef, FilterEvent, GridDensity, GridEventMap, GridEventType, GridOptions, GridPlugin, GridSettingsData, GridSettingsResult, GridToolbarSlot, GroupDrawerData, GroupDrawerResult, GroupEntry, GroupEvent, GroupRow, HeaderMenuActionId, HeaderMenuConfig,
|
|
3575
|
+
export { ACTION_LISTBOX_CONFIG, ActionListboxContainerComponent, ActionListboxRef, BuiltInMenuComponent, CellSelectionEngine, ColumnReorderEngine, ColumnResizeEngine, DEFAULT_ACTION_LISTBOX_CONFIG, DEFAULT_GRID_OPTIONS, DEFAULT_MODAL_CONFIG, DEFAULT_TOASTER_CONFIG, DRAWER_CONFIG, DRAWER_DATA, DrawerContainerComponent, ExpandableRowEngine, ExportEngine, FilterEngine, GridEngine, GridGroupDrawerComponent, GridSettingsDrawerComponent, GridStateManager, GroupEngine, InlineEditEngine, KeyboardEngine, MODAL_CONFIG, MODAL_DATA, MozAccordionComponent, MozAccordionContentComponent, MozAccordionHeaderComponent, MozAccordionPanelComponent, MozActionBottomBarComponent, MozActionListboxComponent, MozActionListboxTriggerDirective, MozAvatarComponent, MozBreadcrumbComponent, MozButtonComponent, MozCalloutComponent, MozCarouselComponent, MozCheckListMenuComponent, MozCheckboxComponent, MozCheckboxGroupComponent, MozCircularProgressBarComponent, MozComboboxComponent, MozComboboxHarness, MozComboboxOptionHarness, MozDatepickerComponent, MozDividerComponent, MozDrawerComponent, MozDrawerFooterDirective, MozDrawerRef, MozDrawerService, MozFieldComponent, MozFieldGroupComponent, MozFileUploaderComponent, MozFileUploaderItemComponent, MozFlagComponent, MozGridBodyComponent, MozGridCellComponent, MozGridColumnDef, MozGridColumnVisibilityPanelComponent, MozGridComponent, MozGridDetailRowComponent, MozGridFooterComponent, MozGridGroupRowComponent, MozGridHeaderCellComponent, MozGridHeaderComponent, MozGridHeaderMenuComponent, MozGridRowComponent, MozGridToolbarDef, MozIconButtonComponent, MozKpiComponent, MozLinearProgressBarBufferComponent, MozLinearProgressBarPercentageComponent, MozLinkComponent, MozLoaderComponent, MozLoadingOverlayComponent, MozModalComponent, MozModalFooterDirective, MozModalRef, MozModalService, MozNavigationIndicatorComponent, MozNumberBadgeComponent, MozOverlayComponent, MozPageHeaderComponent, MozPaginationComponent, MozPasswordInputDirective, MozPhoneNumberComponent, MozPincodeInputComponent, MozPopoverComponent, MozPopoverFooterDirective, MozPopoverTriggerDirective, MozQuantitySelectorComponent, MozRadioComponent, MozRadioGroupComponent, MozSegmentedControlComponent, MozSelectComponent, MozSidebarComponent, MozStarRatingComponent, MozStatusBadgeComponent, MozStatusDotComponent, MozStatusMessageComponent, MozStatusNotificationComponent, MozStepperBottomBarComponent, MozStepperCompactComponent, MozStepperInlineComponent, MozStepperStackedComponent, MozTabComponent, MozTabsComponent, MozTagComponent, MozTextInput, MozTextarea, MozTileComponent, MozTileExpandableComponent, MozTileSelectableComponent, MozToasterComponent, MozToasterRef, MozToasterService, MozToggleComponent, MozTooltipComponent, MozTooltipDirective, POPOVER_CONFIG, POPOVER_DATA, PopoverContainerComponent, PopoverRef, PopoverService, RowSelectionEngine, SortEngine, StatePersistenceEngine, TOASTER_CONFIG, TreeEngine, isSection, trackByField, trackDisplayRow };
|
|
3576
|
+
export type { ActionListboxConfig, ActionListboxPosition, ActiveFilter, BulkCopyEvent, BulkDeleteEvent, BulkEditEvent, BulkPasteEvent, CellCoord, CellEditCancelEvent, CellEditEvent, CellEditState, CellEditorType, CellRange, CellSelectionEvent, ColumnDef, ColumnFreezeEvent, ColumnReorderEvent, ColumnResizeEvent, ColumnSearchToggleEvent, ColumnStateEntry, ColumnVisibilityEvent, DisplayRow, ExportOptions, FilterDef, FilterEvent, GridDensity, GridEventMap, GridEventType, GridOptions, GridPlugin, GridSettingsData, GridSettingsResult, GridToolbarSlot, GroupDrawerData, GroupDrawerResult, GroupEntry, GroupEvent, GroupRow, HeaderMenuActionId, HeaderMenuConfig, MozActionListItem, MozActionListItemAppearance, MozAvatarSize, MozBreadcrumbAppearance, MozBreadcrumbLink, MozBuiltInMenuItem, MozBuiltInMenuItemTarget, MozButtonAppearance, MozButtonIconPosition, MozButtonSize, MozButtonType, MozCalloutVariant, MozCheckListMenuItem, MozCircularProgessBarSize, MozComboboxItem, MozComboboxOption, MozComboboxSection, MozComboboxSize, MozDatepickerSize, MozDividerAppearance, MozDividerOrientation, MozDividerSize, MozDrawerConfig, MozDrawerPosition, MozFileUploaderFormat, MozFileUploaderItemFormat, MozFlagType, MozIconButtonAppearance, MozIconButtonSize, MozIconButtonType, MozKpiSize, MozKpiStatus, MozKpiTrend, MozLinearProgressBarBufferSize, MozLinkAppearance, MozLinkIconPosition, MozLinkSize, MozLoaderAppearance, MozLoaderSize, MozNavigationIndicatorAction, MozNumberBadgeAppearance, MozNumberBadgeSize, MozPageHeaderScope, MozPhoneNumberCountry, MozPhoneNumberSize, MozPhoneNumberValue, MozPincodeLength, MozPopoverAppearance, MozPopoverPosition, MozPopoverSize, MozQuantitySelectorSize, MozSegmentedControlSize, MozSegmentedItem, MozSelectOption, MozSelectSize, MozSelectValue, MozSidebarItem, MozSidebarSubItem, MozStarRatingAppearance, MozStarRatingSize, MozStatusBadgeStatus, MozStatusDotSize, MozStatusDotStatus, MozStatusMessageStatus, MozStatusNotificationStatus, MozStepperBottomBarStep, MozStepperInlineStep, MozStepperStackedStep, MozTabItem, MozTagSize, MozTagType, MozTextInputSize, MozTileAppearance, MozTileExpandableTrigger, MozTileInputPosition, MozTileInputVerticalPosition, MozTileSelectableAppearance, MozTileSelectableType, MozToasterPosition, MozToasterRole, MozToasterStatus, MozToggleSize, MozTooltipPosition, PageEvent, PaginationState, PersistedGridState, PopoverConfig, RowSelectionEvent, SelectAllMode, SortDef, SortDirection, SortEvent, TreeDisplayRow, TreeNodeConfig };
|