@vaadin/menu-bar 23.1.1 → 23.1.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/menu-bar",
3
- "version": "23.1.1",
3
+ "version": "23.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,18 +35,18 @@
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
37
  "@polymer/polymer": "^3.0.0",
38
- "@vaadin/button": "^23.1.1",
39
- "@vaadin/component-base": "^23.1.1",
40
- "@vaadin/vaadin-context-menu": "^23.1.1",
41
- "@vaadin/vaadin-lumo-styles": "^23.1.1",
42
- "@vaadin/vaadin-material-styles": "^23.1.1",
43
- "@vaadin/vaadin-themable-mixin": "^23.1.1"
38
+ "@vaadin/button": "^23.1.4",
39
+ "@vaadin/component-base": "^23.1.4",
40
+ "@vaadin/vaadin-context-menu": "^23.1.4",
41
+ "@vaadin/vaadin-lumo-styles": "^23.1.4",
42
+ "@vaadin/vaadin-material-styles": "^23.1.4",
43
+ "@vaadin/vaadin-themable-mixin": "^23.1.4"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
47
- "@vaadin/icon": "^23.1.1",
47
+ "@vaadin/icon": "^23.1.4",
48
48
  "@vaadin/testing-helpers": "^0.3.2",
49
49
  "sinon": "^13.0.2"
50
50
  },
51
- "gitHead": "390458d6519433a2dd502cef90da48e84573a275"
51
+ "gitHead": "0a82302064f1276a000f0cbd810076539407d133"
52
52
  }
@@ -8,7 +8,7 @@ import { ResizeMixinClass } from '@vaadin/component-base/src/resize-mixin.js';
8
8
 
9
9
  export declare function ButtonsMixin<T extends Constructor<HTMLElement>>(
10
10
  base: T,
11
- ): T & Constructor<ButtonsMixinClass> & Constructor<ResizeMixinClass>;
11
+ ): Constructor<ButtonsMixinClass> & Constructor<ResizeMixinClass> & T;
12
12
 
13
13
  export declare class ButtonsMixinClass {
14
14
  protected readonly _buttons: HTMLElement[];
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
7
7
 
8
8
  export declare function InteractionsMixin<T extends Constructor<HTMLElement>>(
9
9
  base: T,
10
- ): T & Constructor<InteractionsMixinClass>;
10
+ ): Constructor<InteractionsMixinClass> & T;
11
11
 
12
12
  export declare class InteractionsMixinClass {
13
13
  /**
@@ -11,17 +11,17 @@ import { InteractionsMixin } from './vaadin-menu-bar-interactions-mixin.js';
11
11
 
12
12
  export interface MenuBarItem {
13
13
  text?: string;
14
- component?: string | HTMLElement;
14
+ component?: HTMLElement | string;
15
15
  disabled?: boolean;
16
- theme?: string | string[];
16
+ theme?: string[] | string;
17
17
  children?: SubMenuItem[];
18
18
  }
19
19
 
20
20
  export interface SubMenuItem {
21
21
  text?: string;
22
- component?: string | HTMLElement;
22
+ component?: HTMLElement | string;
23
23
  disabled?: boolean;
24
- theme?: string | string[];
24
+ theme?: string[] | string;
25
25
  checked?: boolean;
26
26
  children?: SubMenuItem[];
27
27
  }
@@ -68,6 +68,12 @@ export interface MenuBarEventMap extends HTMLElementEventMap, MenuBarCustomEvent
68
68
  * `menu-bar-button` | The menu bar button.
69
69
  * `overflow-button` | The "overflow" button appearing when menu bar width is not enough to fit all the buttons.
70
70
  *
71
+ * The following state attributes are available for styling:
72
+ *
73
+ * Attribute | Description
74
+ * --------------------|----------------------------------
75
+ * `disabled` | Set when the menu bar is disabled
76
+ *
71
77
  * See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
72
78
  *
73
79
  * ### Internal components
@@ -138,13 +144,13 @@ declare class MenuBar extends ButtonsMixin(DisabledMixin(InteractionsMixin(Eleme
138
144
  addEventListener<K extends keyof MenuBarEventMap>(
139
145
  type: K,
140
146
  listener: (this: MenuBar, ev: MenuBarEventMap[K]) => void,
141
- options?: boolean | AddEventListenerOptions,
147
+ options?: AddEventListenerOptions | boolean,
142
148
  ): void;
143
149
 
144
150
  removeEventListener<K extends keyof MenuBarEventMap>(
145
151
  type: K,
146
152
  listener: (this: MenuBar, ev: MenuBarEventMap[K]) => void,
147
- options?: boolean | EventListenerOptions,
153
+ options?: EventListenerOptions | boolean,
148
154
  ): void;
149
155
 
150
156
  /**
@@ -39,6 +39,12 @@ import { InteractionsMixin } from './vaadin-menu-bar-interactions-mixin.js';
39
39
  * `menu-bar-button` | The menu bar button.
40
40
  * `overflow-button` | The "overflow" button appearing when menu bar width is not enough to fit all the buttons.
41
41
  *
42
+ * The following state attributes are available for styling:
43
+ *
44
+ * Attribute | Description
45
+ * --------------------|----------------------------------
46
+ * `disabled` | Set when the menu bar is disabled
47
+ *
42
48
  * See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
43
49
  *
44
50
  * ### Internal components
@@ -56,6 +62,7 @@ import { InteractionsMixin } from './vaadin-menu-bar-interactions-mixin.js';
56
62
  * @extends HTMLElement
57
63
  * @mixes ButtonsMixin
58
64
  * @mixes InteractionsMixin
65
+ * @mixes DisabledMixin
59
66
  * @mixes ElementMixin
60
67
  * @mixes ThemableMixin
61
68
  */