@verisoft/ui-core 21.0.16 → 21.0.17
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.
|
@@ -69,6 +69,7 @@ function getRovingTabIndex(isActive) {
|
|
|
69
69
|
return isActive ? 0 : -1;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
const DEFAULT_MENU_KEYBOARD_ACTIVE_ITEM_CLASS = 'menu-keyboard__item--active';
|
|
72
73
|
const DEFAULT_MENU_KEYBOARD_NAVIGATION = {
|
|
73
74
|
enabled: true,
|
|
74
75
|
openKeys: ['ArrowDown', 'ArrowUp', 'Enter', ' '],
|
|
@@ -82,7 +83,7 @@ const DEFAULT_MENU_KEYBOARD_NAVIGATION = {
|
|
|
82
83
|
dismissKeys: ['Tab'],
|
|
83
84
|
loop: true,
|
|
84
85
|
preventDefault: true,
|
|
85
|
-
activeItemClass:
|
|
86
|
+
activeItemClass: DEFAULT_MENU_KEYBOARD_ACTIVE_ITEM_CLASS,
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
const MENU_OPEN_ACTION_CHECKS = [
|
|
@@ -155,7 +156,8 @@ class MenuKeyboardController {
|
|
|
155
156
|
return this.resolveNavigation() !== null;
|
|
156
157
|
}
|
|
157
158
|
getActiveItemClass() {
|
|
158
|
-
return (this.resolveNavigation()?.activeItemClass ??
|
|
159
|
+
return (this.resolveNavigation()?.activeItemClass ??
|
|
160
|
+
DEFAULT_MENU_KEYBOARD_ACTIVE_ITEM_CLASS);
|
|
159
161
|
}
|
|
160
162
|
onTriggerKeydown(event) {
|
|
161
163
|
const navigation = this.resolveNavigation();
|
|
@@ -317,17 +319,15 @@ class MenuKeyboardController {
|
|
|
317
319
|
this.close(true);
|
|
318
320
|
}
|
|
319
321
|
}
|
|
320
|
-
const DEFAULT_ACTIVE_ITEM_CLASS$1 = 'menu-keyboard__item--active';
|
|
321
322
|
|
|
322
323
|
const MENU_KEYBOARD_PORT = new InjectionToken('MENU_KEYBOARD_PORT');
|
|
323
324
|
|
|
324
|
-
const DEFAULT_ACTIVE_ITEM_CLASS = 'menu-keyboard__item--active';
|
|
325
325
|
class MenuKeyboardFacade {
|
|
326
326
|
static nextListId = 0;
|
|
327
327
|
isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
328
328
|
focusedIndex = signal(-1, ...(ngDevMode ? [{ debugName: "focusedIndex" }] : []));
|
|
329
329
|
focusRequestVersion = signal(0, ...(ngDevMode ? [{ debugName: "focusRequestVersion" }] : []));
|
|
330
|
-
activeItemClass = signal(
|
|
330
|
+
activeItemClass = signal(DEFAULT_MENU_KEYBOARD_ACTIVE_ITEM_CLASS, ...(ngDevMode ? [{ debugName: "activeItemClass" }] : []));
|
|
331
331
|
listId = signal(`v-menu-kb-list-${MenuKeyboardFacade.nextListId++}`, ...(ngDevMode ? [{ debugName: "listId" }] : []));
|
|
332
332
|
actionableItems = signal([], ...(ngDevMode ? [{ debugName: "actionableItems" }] : []));
|
|
333
333
|
triggerElement = null;
|
|
@@ -3056,5 +3056,5 @@ class Format {
|
|
|
3056
3056
|
* Generated bundle index. Do not edit.
|
|
3057
3057
|
*/
|
|
3058
3058
|
|
|
3059
|
-
export { ACTION_BUTTON_GROUP_COMPONENT_TOKEN, BREADCRUMB_COMPONENT_TOKEN, BUTTON_COMPONENT_TOKEN, BaseFormDirective, BaseFormInputComponent, BaseInputControls, BreadcrumbCoreComponent, BreadcrumbService, ButtonShortCutDirective, CALENDAR_COMPONENT_TOKEN, CHECKBOX_COMPONENT_TOKEN, CONFIRM_DIALOG_COMPONENT_TOKEN, ColumnConfiguration, ColumnModel, ColumnVisibility, ControlSeverity, DEFAULT_DEBOUNCE_TIME, DEFAULT_MENU_KEYBOARD_NAVIGATION, DEFAULT_PAGINATION, DROPDOWN_BUTTON_COMPONENT_TOKEN, DROPDOWN_COMPONENT_TOKEN, DatasourceDirective, DetailStoreDirective, DialogService, EnumToListPipe, ErrorCodesFns, ErrorPipe, FEATURE_LIST_COLUMN_PROVIDER, FEATURE_LIST_COMPONENT_TOKEN, FEATURE_LIST_PAGE_CONFIG_PROPERTY, FILTER_COMPONENT_TOKEN, FORM_FIELD_COMPONENT_TOKEN, FeatureListColumnDirective, FeatureListFilterFieldDirective, FeatureListFilterPipe, FieldAlign, FieldSize, FieldType, FilterFieldDirective, Format, GENERIC_FIELD_COMPONENT_TOKEN, GenericFieldType, GovButtonType, GovControlSeverity, HEADER_COMPONENT_TOKEN, ICONS_COMPONENT_TOKEN, INPUT_GROUP_COMPONENT_TOKEN, IconPosition, IconsComponent, KeyOrFunctionPipe, LOADER_COMPONENT_TOKEN, LOGO_ROUTER_ROUTE, LayoutType, LinkRenderer, MAX_COLUMN_CHAR_COUNT, MENU_KEYBOARD, MENU_KEYBOARD_PORT, MENU_TOKEN, MULTISELECT_COMPONENT_TOKEN, MenuKeyboardController, MenuKeyboardDirective, MenuKeyboardFacade, MenuKeyboardItemDirective, MenuKeyboardListDirective, MenuKeyboardTriggerDirective, MenuServiceDirective, NUMBER_INPUT_COMPONENT_TOKEN, PAGE_HEADER_COMPONENT_TOKEN, PASSWORD_COMPONENT_TOKEN, PageHeaderCoreComponent, PageHeaderService, PasswordStrength, Position, PreventUnsavedChangesDirective, RADIOBUTTON_COMPONENT_TOKEN, Renderer, RowModel, SECTION_COMPONENT_TOKEN, SETTINGS_MENU, SIDE_MENU_COMPONENT_TOKEN, SIDE_MENU_STATE_TOKEN, SLIDER_COMPONENT_TOKEN, SNACKBAR_COMPONENT_TOKEN, STEPPER_COMPONENT_TOKEN, SWITCH_COMPONENT_TOKEN, ScreenSizeService, SideMenuProviderService, SideMenuService, SlotPosition, TABLE_COLUMN_PROVIDER, TABLE_COMPONENT_TOKEN, TABLE_FILTER_COMPONENT_TOKEN, TAB_VIEW_COMPONENT_TOKEN, TAG_COMPONENT_TOKEN, TEXTAREA_COMPONENT_TOKEN, TEXTFIELD_COMPONENT_TOKEN, TOOLTIP_COMPONENT_TOKEN, TableBuilder, TableButtonSeverity, TableColumnDirective, TableDatasourceDirective, TableFilterDirective, TableSelectionMode, TableService, UnsubscribeComponent, WarningCodesFns, WarningPipe, assertNever, downloadFile, downloadText, filterEnabledItems, getFilledControlCount, getFirstError, getFirstErrorFromControl, getRovingTabIndex, isFilterEmpty, isFormStateEqual, matchesKeyboardKey, moveLinearIndex, queryListChanged, resolveInitialActiveIndex, resolveMenuKeyboardAction, resolveMenuKeyboardNavigation, resolveMenuTriggerAction, routerRenderer, setComponentProperties, setDataToArray, suppressKeyboardEvent };
|
|
3059
|
+
export { ACTION_BUTTON_GROUP_COMPONENT_TOKEN, BREADCRUMB_COMPONENT_TOKEN, BUTTON_COMPONENT_TOKEN, BaseFormDirective, BaseFormInputComponent, BaseInputControls, BreadcrumbCoreComponent, BreadcrumbService, ButtonShortCutDirective, CALENDAR_COMPONENT_TOKEN, CHECKBOX_COMPONENT_TOKEN, CONFIRM_DIALOG_COMPONENT_TOKEN, ColumnConfiguration, ColumnModel, ColumnVisibility, ControlSeverity, DEFAULT_DEBOUNCE_TIME, DEFAULT_MENU_KEYBOARD_ACTIVE_ITEM_CLASS, DEFAULT_MENU_KEYBOARD_NAVIGATION, DEFAULT_PAGINATION, DROPDOWN_BUTTON_COMPONENT_TOKEN, DROPDOWN_COMPONENT_TOKEN, DatasourceDirective, DetailStoreDirective, DialogService, EnumToListPipe, ErrorCodesFns, ErrorPipe, FEATURE_LIST_COLUMN_PROVIDER, FEATURE_LIST_COMPONENT_TOKEN, FEATURE_LIST_PAGE_CONFIG_PROPERTY, FILTER_COMPONENT_TOKEN, FORM_FIELD_COMPONENT_TOKEN, FeatureListColumnDirective, FeatureListFilterFieldDirective, FeatureListFilterPipe, FieldAlign, FieldSize, FieldType, FilterFieldDirective, Format, GENERIC_FIELD_COMPONENT_TOKEN, GenericFieldType, GovButtonType, GovControlSeverity, HEADER_COMPONENT_TOKEN, ICONS_COMPONENT_TOKEN, INPUT_GROUP_COMPONENT_TOKEN, IconPosition, IconsComponent, KeyOrFunctionPipe, LOADER_COMPONENT_TOKEN, LOGO_ROUTER_ROUTE, LayoutType, LinkRenderer, MAX_COLUMN_CHAR_COUNT, MENU_KEYBOARD, MENU_KEYBOARD_PORT, MENU_TOKEN, MULTISELECT_COMPONENT_TOKEN, MenuKeyboardController, MenuKeyboardDirective, MenuKeyboardFacade, MenuKeyboardItemDirective, MenuKeyboardListDirective, MenuKeyboardTriggerDirective, MenuServiceDirective, NUMBER_INPUT_COMPONENT_TOKEN, PAGE_HEADER_COMPONENT_TOKEN, PASSWORD_COMPONENT_TOKEN, PageHeaderCoreComponent, PageHeaderService, PasswordStrength, Position, PreventUnsavedChangesDirective, RADIOBUTTON_COMPONENT_TOKEN, Renderer, RowModel, SECTION_COMPONENT_TOKEN, SETTINGS_MENU, SIDE_MENU_COMPONENT_TOKEN, SIDE_MENU_STATE_TOKEN, SLIDER_COMPONENT_TOKEN, SNACKBAR_COMPONENT_TOKEN, STEPPER_COMPONENT_TOKEN, SWITCH_COMPONENT_TOKEN, ScreenSizeService, SideMenuProviderService, SideMenuService, SlotPosition, TABLE_COLUMN_PROVIDER, TABLE_COMPONENT_TOKEN, TABLE_FILTER_COMPONENT_TOKEN, TAB_VIEW_COMPONENT_TOKEN, TAG_COMPONENT_TOKEN, TEXTAREA_COMPONENT_TOKEN, TEXTFIELD_COMPONENT_TOKEN, TOOLTIP_COMPONENT_TOKEN, TableBuilder, TableButtonSeverity, TableColumnDirective, TableDatasourceDirective, TableFilterDirective, TableSelectionMode, TableService, UnsubscribeComponent, WarningCodesFns, WarningPipe, assertNever, downloadFile, downloadText, filterEnabledItems, getFilledControlCount, getFirstError, getFirstErrorFromControl, getRovingTabIndex, isFilterEmpty, isFormStateEqual, matchesKeyboardKey, moveLinearIndex, queryListChanged, resolveInitialActiveIndex, resolveMenuKeyboardAction, resolveMenuKeyboardNavigation, resolveMenuTriggerAction, routerRenderer, setComponentProperties, setDataToArray, suppressKeyboardEvent };
|
|
3060
3060
|
//# sourceMappingURL=verisoft-ui-core.mjs.map
|