@mozaic-ds/angular 2.0.13 → 2.0.15
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,9 @@ 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
3406
|
/** Items to display (flat options or sections) */
|
|
3407
|
-
readonly items: _angular_core.InputSignal<
|
|
3407
|
+
readonly items: _angular_core.InputSignal<MozComboboxItem<T>[]>;
|
|
3408
3408
|
/** Currently selected value(s) — two-way binding with model() */
|
|
3409
3409
|
readonly value: _angular_core.ModelSignal<T | T[] | null>;
|
|
3410
3410
|
/** Placeholder text shown when nothing is selected */
|
|
@@ -3414,7 +3414,7 @@ declare class McComboboxComponent<T = string> implements ControlValueAccessor {
|
|
|
3414
3414
|
/** Show counter instead of tags in multi mode */
|
|
3415
3415
|
readonly compact: _angular_core.InputSignal<boolean>;
|
|
3416
3416
|
/** Component size variant */
|
|
3417
|
-
readonly size: _angular_core.InputSignal<
|
|
3417
|
+
readonly size: _angular_core.InputSignal<MozComboboxSize>;
|
|
3418
3418
|
/** Disable the entire component */
|
|
3419
3419
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
3420
3420
|
/** Readonly mode — no interaction allowed */
|
|
@@ -3471,6 +3471,8 @@ declare class McComboboxComponent<T = string> implements ControlValueAccessor {
|
|
|
3471
3471
|
private _onTouched;
|
|
3472
3472
|
/** Effective disabled state (input OR form-driven) */
|
|
3473
3473
|
readonly isEffectivelyDisabled: _angular_core.Signal<boolean>;
|
|
3474
|
+
/** CSS classes for the wrapper element */
|
|
3475
|
+
readonly wrapperClasses: _angular_core.Signal<string>;
|
|
3474
3476
|
/** Flatten items into a renderable list */
|
|
3475
3477
|
readonly flatItems: _angular_core.Signal<FlatItem<T>[]>;
|
|
3476
3478
|
/** Filtered items based on search query */
|
|
@@ -3522,14 +3524,14 @@ declare class McComboboxComponent<T = string> implements ControlValueAccessor {
|
|
|
3522
3524
|
/** Whether a given option value is currently selected */
|
|
3523
3525
|
isOptionSelected(optionValue: T): boolean;
|
|
3524
3526
|
private _updateTriggerWidth;
|
|
3525
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
3526
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
3527
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozComboboxComponent<any>, never>;
|
|
3528
|
+
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
3529
|
}
|
|
3528
3530
|
|
|
3529
3531
|
/**
|
|
3530
3532
|
* Harness for a single option inside the combobox dropdown.
|
|
3531
3533
|
*/
|
|
3532
|
-
declare class
|
|
3534
|
+
declare class MozComboboxOptionHarness extends ComponentHarness {
|
|
3533
3535
|
static hostSelector: string;
|
|
3534
3536
|
getLabel(): Promise<string>;
|
|
3535
3537
|
isSelected(): Promise<boolean>;
|
|
@@ -3547,7 +3549,7 @@ declare class McComboboxOptionHarness extends ComponentHarness {
|
|
|
3547
3549
|
* expect(await harness.getDisplayValue()).toBe('Option 1');
|
|
3548
3550
|
* ```
|
|
3549
3551
|
*/
|
|
3550
|
-
declare class
|
|
3552
|
+
declare class MozComboboxHarness extends ComponentHarness {
|
|
3551
3553
|
static hostSelector: string;
|
|
3552
3554
|
private _getTrigger;
|
|
3553
3555
|
private _getClearButton;
|
|
@@ -3557,7 +3559,7 @@ declare class McComboboxHarness extends ComponentHarness {
|
|
|
3557
3559
|
isOpen(): Promise<boolean>;
|
|
3558
3560
|
getDisplayValue(): Promise<string>;
|
|
3559
3561
|
getPlaceholder(): Promise<string>;
|
|
3560
|
-
getOptions(): Promise<
|
|
3562
|
+
getOptions(): Promise<MozComboboxOptionHarness[]>;
|
|
3561
3563
|
selectOption(filter: {
|
|
3562
3564
|
label: string;
|
|
3563
3565
|
}): Promise<void>;
|
|
@@ -3569,5 +3571,5 @@ declare class McComboboxHarness extends ComponentHarness {
|
|
|
3569
3571
|
getSelectedCount(): Promise<number>;
|
|
3570
3572
|
}
|
|
3571
3573
|
|
|
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,
|
|
3574
|
+
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 };
|
|
3575
|
+
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 };
|