primer_view_components 0.13.2 → 0.15.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +20 -0
- data/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +0 -11
- data/app/assets/javascripts/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
- data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_bar.css +1 -1
- data/app/components/primer/alpha/action_bar.css.json +1 -4
- data/app/components/primer/alpha/action_bar.css.map +1 -1
- data/app/components/primer/alpha/action_bar.pcss +1 -17
- data/app/components/primer/alpha/action_bar_element.js +21 -9
- data/app/components/primer/alpha/action_list/item.rb +13 -3
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +1 -0
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +3 -1
- data/app/components/primer/alpha/action_list.rb +5 -5
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +20 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +126 -28
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +110 -12
- data/app/components/primer/alpha/action_menu/group.rb +23 -0
- data/app/components/primer/alpha/action_menu/heading.rb +17 -0
- data/app/components/primer/alpha/action_menu/list.html.erb +1 -0
- data/app/components/primer/alpha/action_menu/list.rb +62 -60
- data/app/components/primer/alpha/action_menu/list_wrapper.rb +40 -0
- data/app/components/primer/alpha/action_menu.html.erb +20 -18
- data/app/components/primer/alpha/action_menu.rb +38 -1
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.css +1 -1
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/dialog/header.rb +1 -1
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/nav_list/divider.rb +1 -0
- data/app/components/primer/alpha/nav_list/group.rb +1 -0
- data/app/components/primer/alpha/nav_list/heading.rb +1 -0
- data/app/components/primer/alpha/nav_list/item.rb +1 -0
- data/app/components/primer/alpha/nav_list.rb +1 -0
- data/app/components/primer/alpha/octicon_symbols.html.erb +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.json +2 -2
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +6 -2
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.json +0 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.js +2 -1
- data/app/components/primer/alpha/segmented_control.pcss +0 -4
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +11 -5
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +10 -1
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/tool_tip.js +8 -4
- data/app/components/primer/alpha/tool_tip.ts +9 -4
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/alpha/x_banner.js +2 -1
- data/app/components/primer/anchored_position.js +2 -1
- data/app/components/primer/beta/auto_complete/auto_complete.html.erb +1 -7
- data/app/components/primer/beta/auto_complete/item.rb +2 -2
- data/app/components/primer/beta/auto_complete.rb +6 -1
- data/app/components/primer/beta/avatar.rb +1 -1
- data/app/components/primer/beta/base_button.rb +3 -4
- data/app/components/primer/beta/blankslate.css +1 -1
- data/app/components/primer/beta/blankslate.css.json +1 -0
- data/app/components/primer/beta/blankslate.css.map +1 -1
- data/app/components/primer/beta/blankslate.html.erb +16 -14
- data/app/components/primer/beta/blankslate.pcss +52 -2
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +9 -9
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.html.erb +18 -20
- data/app/components/primer/beta/button.pcss +15 -16
- data/app/components/primer/beta/button.rb +3 -0
- data/app/components/primer/beta/button_group.css +1 -1
- data/app/components/primer/beta/button_group.css.json +2 -4
- data/app/components/primer/beta/button_group.css.map +1 -1
- data/app/components/primer/beta/button_group.html.erb +3 -1
- data/app/components/primer/beta/button_group.pcss +2 -4
- data/app/components/primer/beta/button_group.rb +41 -12
- data/app/components/primer/beta/clipboard_copy.rb +4 -0
- data/app/components/primer/beta/clipboard_copy_button.rb +25 -0
- data/app/components/primer/beta/counter.rb +1 -1
- data/app/components/primer/beta/flash.html.erb +1 -1
- data/app/components/primer/beta/icon_button.html.erb +4 -6
- data/app/components/primer/beta/icon_button.rb +1 -3
- data/app/components/primer/beta/label.css +1 -1
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/link.css +1 -1
- data/app/components/primer/beta/link.css.map +1 -1
- data/app/components/primer/beta/nav_list/group.html.erb +7 -5
- data/app/components/primer/beta/nav_list/group.rb +2 -2
- data/app/components/primer/beta/nav_list.d.ts +0 -11
- data/app/components/primer/beta/nav_list.js +14 -90
- data/app/components/primer/beta/nav_list.ts +1 -85
- data/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
- data/app/components/primer/beta/nav_list_group_element.js +108 -0
- data/app/components/primer/beta/nav_list_group_element.ts +97 -0
- data/app/components/primer/beta/relative_time.rb +4 -4
- data/app/components/primer/beta/subhead.css +1 -1
- data/app/components/primer/beta/subhead.css.json +2 -0
- data/app/components/primer/beta/subhead.css.map +1 -1
- data/app/components/primer/beta/subhead.pcss +8 -1
- data/app/components/primer/beta/subhead.rb +9 -1
- data/app/components/primer/component.rb +3 -0
- data/app/components/primer/focus_group.js +2 -1
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/forms/action_menu_form.rb +20 -0
- data/app/forms/immediate_validation_form.rb +2 -2
- data/app/lib/primer/experimental_render_helpers.rb +32 -0
- data/app/lib/primer/experimental_slot_helpers.rb +30 -0
- data/app/lib/primer/fetch_or_fallback_helper.rb +0 -1
- data/app/lib/primer/octicon/cache.rb +1 -1
- data/lib/primer/classify.rb +0 -2
- data/lib/primer/forms/action_menu.html.erb +6 -0
- data/lib/primer/forms/action_menu.rb +25 -0
- data/lib/primer/forms/acts_as_component.rb +0 -3
- data/lib/primer/forms/base.rb +0 -1
- data/lib/primer/forms/base_component.rb +0 -2
- data/lib/primer/forms/dsl/action_menu_input.rb +36 -0
- data/lib/primer/forms/dsl/input.rb +8 -1
- data/lib/primer/forms/dsl/input_methods.rb +9 -0
- data/lib/primer/forms/dsl/text_field_input.rb +8 -0
- data/lib/primer/forms/primer_base_component_wrapper.rb +0 -2
- data/lib/primer/forms/primer_text_field.js +40 -5
- data/lib/primer/forms/primer_text_field.ts +39 -7
- data/lib/primer/forms/validation_message.html.erb +2 -1
- data/lib/primer/static/generate_info_arch.rb +1 -2
- data/lib/primer/static/generate_previews.rb +0 -2
- data/lib/primer/view_components/engine.rb +5 -1
- data/lib/primer/view_components/linters/base_linter.rb +3 -2
- data/lib/primer/view_components/linters/deprecated_components_counter.rb +1 -1
- data/lib/primer/view_components/linters/disallow_action_list.rb +1 -0
- data/lib/primer/view_components/linters/severity_schema.rb +1 -0
- data/lib/primer/view_components/version.rb +2 -3
- data/lib/primer/yard/lookbook_pages_backend.rb +2 -4
- data/lib/rubocop/cop/primer/base_cop.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_arguments.rb +0 -2
- data/lib/rubocop/cop/primer/deprecated_components.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_label_schemes.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_label_variants.rb +1 -1
- data/previews/primer/alpha/action_menu_preview.rb +73 -7
- data/previews/primer/alpha/dialog_preview/with_auto_complete.html.erb +8 -0
- data/previews/primer/alpha/dialog_preview.rb +17 -0
- data/previews/primer/alpha/octicon_symbols_preview/default.html.erb +6 -0
- data/previews/primer/alpha/octicon_symbols_preview/playground.html.erb +13 -0
- data/previews/primer/alpha/octicon_symbols_preview.rb +21 -0
- data/previews/primer/alpha/text_field_preview.rb +5 -0
- data/previews/primer/beta/avatar_preview.rb +6 -0
- data/previews/primer/beta/blankslate_preview/inside_flex_container.html.erb +6 -0
- data/previews/primer/beta/blankslate_preview.rb +3 -0
- data/previews/primer/beta/button_group_preview.rb +11 -0
- data/previews/primer/beta/clipboard_copy_button_preview.rb +29 -0
- data/previews/primer/beta/nav_list_preview.rb +10 -1
- data/previews/primer/beta/subhead_preview.rb +32 -4
- data/previews/primer/forms_preview/action_menu_form.html.erb +3 -0
- data/previews/primer/forms_preview.rb +4 -0
- data/static/arguments.json +167 -14
- data/static/audited_at.json +6 -1
- data/static/classes.json +12 -3
- data/static/constants.json +25 -1
- data/static/info_arch.json +585 -78
- data/static/previews.json +198 -0
- data/static/statuses.json +5 -0
- metadata +24 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d5675f24042db7300ba5e1f0b3dc4df854583a83ecf422db24d0a2b2ea66b9d
|
|
4
|
+
data.tar.gz: 78c71be07c636c061789536a7a70eb9462d720091f78c939c7f1959ebb26e366
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24e2d5d9855fdb9108c231318c062b6ce8c9486c68076d27e8d29ce0eb8b2074b317442cddf19c1e91b724df5441fd10a00c747d07a32bb6a51ce111d3b3fb14
|
|
7
|
+
data.tar.gz: 59f3c44cecb5d09c2e82fe189c3d69434dddc901d34d2795704c9311b7c66e83f77cdcf32be85c879d4b4a578b7faa980ba8826d255a94e43ee71349ac525fe1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 0.15.0
|
|
5
|
+
|
|
6
|
+
### Minor Changes
|
|
7
|
+
|
|
8
|
+
- [#2378](https://github.com/primer/view_components/pull/2378) [`81b5acc6`](https://github.com/primer/view_components/commit/81b5acc641d2bebc3a634fe0d5d712ad289747cd) Thanks [@keithamus](https://github.com/keithamus)! - Primer::Alpha::ActionList now uses popover
|
|
9
|
+
|
|
10
|
+
- [#2340](https://github.com/primer/view_components/pull/2340) [`b8d05407`](https://github.com/primer/view_components/commit/b8d05407b42ec843f4a46b979779e6db69bd56ba) Thanks [@camertron](https://github.com/camertron)! - Add group support to ActionMenu
|
|
11
|
+
|
|
12
|
+
- [#2393](https://github.com/primer/view_components/pull/2393) [`745eae0d`](https://github.com/primer/view_components/commit/745eae0d0be5efa3f368630b49db1eda2a11307e) Thanks [@camertron](https://github.com/camertron)! - [ActionMenu] Don't allow previously hidden items to be checkable; add JavaScript API
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#2414](https://github.com/primer/view_components/pull/2414) [`48a2405a`](https://github.com/primer/view_components/commit/48a2405a2cdb6865eb57c2ea411fcece026590d0) Thanks [@keithamus](https://github.com/keithamus)! - Prevent other Overlays closing when Escape is pressed while Tooltips are open
|
|
17
|
+
|
|
18
|
+
- [#2379](https://github.com/primer/view_components/pull/2379) [`2c59c33b`](https://github.com/primer/view_components/commit/2c59c33bf54e392d743fbdd1076d06bff2151b42) Thanks [@mperrotti](https://github.com/mperrotti)! - Updates 'inactive' state for buttons based on feedback from the a11y team:
|
|
19
|
+
|
|
20
|
+
- inactive buttons need to meet the color contrast ratio minimum
|
|
21
|
+
- inactive buttons shouldn't have aria-disabled since they can still accept interactions such as:
|
|
22
|
+
- hover/focus to show a tooltip
|
|
23
|
+
- click/activate to show a dialog with more detailed info on why it's inactive
|
|
24
|
+
|
|
25
|
+
<!-- Changed components: Button -->
|
|
26
|
+
|
|
27
|
+
- [#2408](https://github.com/primer/view_components/pull/2408) [`57586da4`](https://github.com/primer/view_components/commit/57586da49cf0f82c0da4736bc276984d6ea3b479) Thanks [@HDinger](https://github.com/HDinger)! - Fix: Allow month attribute for Primer::Beta::RelativeTime
|
|
28
|
+
|
|
29
|
+
- [#2406](https://github.com/primer/view_components/pull/2406) [`fb9bf257`](https://github.com/primer/view_components/commit/fb9bf257c358add060679d401719993b21ce7f45) Thanks [@strackoverflow](https://github.com/strackoverflow)! - Fix an issue where multiple groups could not be paginated within the same NavList
|
|
30
|
+
|
|
31
|
+
- [#2412](https://github.com/primer/view_components/pull/2412) [`e7c9a6c6`](https://github.com/primer/view_components/commit/e7c9a6c62b82ec9ebff575ddd5fbd361fcc40334) Thanks [@camertron](https://github.com/camertron)! - Prevent Blankslates from having a zero width inside flex containers
|
|
32
|
+
|
|
33
|
+
## 0.14.0
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- [#2367](https://github.com/primer/view_components/pull/2367) [`b2acc97d`](https://github.com/primer/view_components/commit/b2acc97d69203094911d013eea07c8e0de6daa02) Thanks [@camertron](https://github.com/camertron)! - Add an ActionMenu form input
|
|
38
|
+
|
|
39
|
+
- [#2335](https://github.com/primer/view_components/pull/2335) [`684f9a51`](https://github.com/primer/view_components/commit/684f9a51a1ccb006a9ce2fbadb296ca5c68bd560) Thanks [@camertron](https://github.com/camertron)! - Add a ClipboardCopyButton component
|
|
40
|
+
|
|
41
|
+
- [#2365](https://github.com/primer/view_components/pull/2365) [`314c0f1f`](https://github.com/primer/view_components/commit/314c0f1f1ec8152c0a0862ee3468e88efcad0ec8) Thanks [@camertron](https://github.com/camertron)! - Remove touch target gaps between ActionBar items
|
|
42
|
+
|
|
43
|
+
- [#2296](https://github.com/primer/view_components/pull/2296) [`3374555e`](https://github.com/primer/view_components/commit/3374555ee1d2c24e88ca4a53cc58221a0ec2bc51) Thanks [@jonrohan](https://github.com/jonrohan)! - Removing the button wrapper `Button--withTooltip` when using a tooltip with a button.
|
|
44
|
+
|
|
45
|
+
- [#2330](https://github.com/primer/view_components/pull/2330) [`6bf8da54`](https://github.com/primer/view_components/commit/6bf8da54220c3301ad0bc2bbb44c2905ad6db89c) Thanks [@camertron](https://github.com/camertron)! - Allow several font sizes for Subhead headings
|
|
46
|
+
|
|
47
|
+
- [#2336](https://github.com/primer/view_components/pull/2336) [`94db2c4b`](https://github.com/primer/view_components/commit/94db2c4bc590e6b41760f5a8867c6b1cae669a1d) Thanks [@camertron](https://github.com/camertron)! - Add Rails 7.1 support
|
|
48
|
+
|
|
49
|
+
- [#2366](https://github.com/primer/view_components/pull/2366) [`73d05613`](https://github.com/primer/view_components/commit/73d05613ec2a5eb2731b170927c505e9c688f4e0) Thanks [@camertron](https://github.com/camertron)! - Add missing 64px Avatar size
|
|
50
|
+
|
|
51
|
+
- [#2377](https://github.com/primer/view_components/pull/2377) [`482152ae`](https://github.com/primer/view_components/commit/482152aec156982cc309aaa830e46269a46ef355) Thanks [@gwwar](https://github.com/gwwar)! - Updates Primer::Alpha::TextField to support success inline validation messages and allows validation messages to contain html fragments.
|
|
52
|
+
<!-- Changed components: Primer::Alpha::TextField -->
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- [#2360](https://github.com/primer/view_components/pull/2360) [`94b7a445`](https://github.com/primer/view_components/commit/94b7a4455fbe0c80472034c7268f4beaa654cd2f) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Removes redundant `aria-disabled` from list item within `ActionMenu`.
|
|
57
|
+
|
|
58
|
+
- [#2337](https://github.com/primer/view_components/pull/2337) [`0189b553`](https://github.com/primer/view_components/commit/0189b553f9fb94858d5526a669d006dc0b2a6050) Thanks [@mperrotti](https://github.com/mperrotti)! - Adapts Blankslate to render proportionally in narrow areas
|
|
59
|
+
|
|
60
|
+
<!-- Changed components: Blankslate -->
|
|
61
|
+
|
|
62
|
+
- [#2383](https://github.com/primer/view_components/pull/2383) [`7c2e6f6c`](https://github.com/primer/view_components/commit/7c2e6f6c6c3cc8cd69758b36760f4e18ec4e48ba) Thanks [@strackoverflow](https://github.com/strackoverflow)! - Fix an issue where ActionMenu wouldn't scroll its contents
|
|
63
|
+
|
|
64
|
+
- [#2384](https://github.com/primer/view_components/pull/2384) [`2c778661`](https://github.com/primer/view_components/commit/2c7786615ceb6b0149b87fb9d01ad31f977a908d) Thanks [@camertron](https://github.com/camertron)! - Re-introduce require 'primer/form_helper' for setups that rely on Rails eager load paths
|
|
65
|
+
|
|
3
66
|
## 0.13.2
|
|
4
67
|
|
|
5
68
|
### Patch Changes
|
data/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
CHANGED
|
@@ -6,6 +6,15 @@ type SelectedItem = {
|
|
|
6
6
|
value: string | null | undefined;
|
|
7
7
|
element: Element;
|
|
8
8
|
};
|
|
9
|
+
export type ItemActivatedEvent = {
|
|
10
|
+
item: Element;
|
|
11
|
+
checked: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementEventMap {
|
|
15
|
+
itemActivated: CustomEvent<ItemActivatedEvent>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
9
18
|
export declare class ActionMenuElement extends HTMLElement {
|
|
10
19
|
#private;
|
|
11
20
|
includeFragment: IncludeFragmentElement;
|
|
@@ -22,6 +31,17 @@ export declare class ActionMenuElement extends HTMLElement {
|
|
|
22
31
|
connectedCallback(): void;
|
|
23
32
|
disconnectedCallback(): void;
|
|
24
33
|
handleEvent(event: Event): void;
|
|
34
|
+
get items(): HTMLElement[];
|
|
35
|
+
getItemById(itemId: string): HTMLElement | null;
|
|
36
|
+
isItemDisabled(item: Element | null): boolean;
|
|
37
|
+
disableItem(item: Element | null): void;
|
|
38
|
+
enableItem(item: Element | null): void;
|
|
39
|
+
isItemHidden(item: Element | null): boolean;
|
|
40
|
+
hideItem(item: Element | null): void;
|
|
41
|
+
showItem(item: Element | null): void;
|
|
42
|
+
isItemChecked(item: Element | null): boolean;
|
|
43
|
+
checkItem(item: Element | null): void;
|
|
44
|
+
uncheckItem(item: Element | null): void;
|
|
25
45
|
}
|
|
26
46
|
declare global {
|
|
27
47
|
interface Window {
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
export declare class NavListElement extends HTMLElement {
|
|
2
2
|
#private;
|
|
3
3
|
items: HTMLElement[];
|
|
4
|
-
showMoreItem: HTMLElement;
|
|
5
|
-
focusMarkers: HTMLElement[];
|
|
6
|
-
connectedCallback(): void;
|
|
7
|
-
get showMoreDisabled(): boolean;
|
|
8
|
-
set showMoreDisabled(value: boolean);
|
|
9
|
-
set currentPage(value: number);
|
|
10
|
-
get currentPage(): number;
|
|
11
|
-
get totalPages(): number;
|
|
12
|
-
get paginationSrc(): string;
|
|
13
4
|
selectItemById(itemId: string | null): boolean;
|
|
14
5
|
selectItemByHref(href: string | null): boolean;
|
|
15
6
|
selectItemByCurrentLocation(): boolean;
|
|
@@ -18,8 +9,6 @@ export declare class NavListElement extends HTMLElement {
|
|
|
18
9
|
itemIsExpanded(item: HTMLElement | null): boolean;
|
|
19
10
|
handleItemWithSubItemClick(e: Event): void;
|
|
20
11
|
handleItemWithSubItemKeydown(e: KeyboardEvent): void;
|
|
21
|
-
private showMore;
|
|
22
|
-
private setShowMoreItemState;
|
|
23
12
|
}
|
|
24
13
|
declare global {
|
|
25
14
|
interface Window {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class NavListGroupElement extends HTMLElement {
|
|
2
|
+
#private;
|
|
3
|
+
showMoreItem: HTMLElement;
|
|
4
|
+
focusMarkers: HTMLElement[];
|
|
5
|
+
connectedCallback(): void;
|
|
6
|
+
get showMoreDisabled(): boolean;
|
|
7
|
+
set showMoreDisabled(value: boolean);
|
|
8
|
+
set currentPage(value: number);
|
|
9
|
+
get currentPage(): number;
|
|
10
|
+
get totalPages(): number;
|
|
11
|
+
get paginationSrc(): string;
|
|
12
|
+
private showMore;
|
|
13
|
+
private setShowMoreItemState;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface Window {
|
|
17
|
+
NavListGroupElement: typeof NavListGroupElement;
|
|
18
|
+
}
|
|
19
|
+
}
|