@watermarkinsights/ripple 5.32.0-alpha.6 → 5.32.0-alpha.7

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index-bb947bd5.js');
4
4
 
5
- const version = "5.32.0-alpha.6";
5
+ const version = "5.32.0-alpha.7";
6
6
 
7
7
  // PRINT RIPPLE VERSION IN CONSOLE
8
8
  // test envs return 0 for plugin.length
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb947bd5.js');
6
- const appGlobals = require('./app-globals-804b4e6f.js');
6
+ const appGlobals = require('./app-globals-57e6f2fa.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb947bd5.js');
6
- const appGlobals = require('./app-globals-804b4e6f.js');
6
+ const appGlobals = require('./app-globals-57e6f2fa.js');
7
7
 
8
8
  /*
9
9
  Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
@@ -383,7 +383,7 @@ const ActionMenu = class {
383
383
  }
384
384
  }
385
385
  render() {
386
- return (index.h(index.Host, { key: '3d0a019d085382d974a333a147d9fa4c1695cb49', onBlur: () => this.close(false) }, index.h("div", { key: '7a62326756be39376945a4935f81514b190424a8', class: functions.getTextDir() }, index.h("button", { key: '0d8eafd60f79d7e0dfa94a839a0b5ef21939f292', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
386
+ return (index.h(index.Host, { key: '6c7311b0cadc7c88beff1e2584259568bef218c0', onBlur: () => this.close(false) }, index.h("div", { key: '16b4e94741a92bff557dcf71e0e228d4caad433a', class: functions.getTextDir() }, index.h("button", { key: 'aabfa7ea99c7ec00d478b0e81f1183c2e1d1101c', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
387
387
  ? this.labelForIdenticalButtons || this.tooltip
388
388
  : this.labelForIdenticalButtons || undefined, "aria-expanded": this.isExpanded ? "true" : "false", "aria-haspopup": "menu", popoverTarget: "menu", popoverTargetAction: "toggle", onMouseEnter: () => this.actionMenuType === "icon" &&
389
389
  functions.showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onMouseLeave: () => functions.hideTooltip(), onFocus: () => this.isTabbing &&
@@ -391,9 +391,9 @@ const ActionMenu = class {
391
391
  functions.showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onBlur: (ev) => {
392
392
  functions.hideTooltip();
393
393
  this.handleButtonBlur(ev);
394
- } }, this.resolvedIcon && this.renderIcon(), this.actionMenuType !== "icon" && index.h("span", { key: '3903548564ad4bae3c6d4eea0172fe5ad68bd892', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (index.h("div", { key: 'aad5b8cab7bb89e9273bde034c9f8928f51f97ff', class: "selector-icon svg-icon svg-expand-more" }))), index.h("div", { key: '2298561f54226051629fff570265e6a9e878d7dc', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", style: { "--dropdown-max-width": this.maxWidth }, ref: (el) => (this.dropdownEl = el),
394
+ } }, this.resolvedIcon && this.renderIcon(), this.actionMenuType !== "icon" && index.h("span", { key: '7134c8e7516c67d9c5b1441a0802bcca7bd86536', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (index.h("div", { key: '5c0525745f50cbf21b5108d521b370927d63de3e', class: "selector-icon svg-icon svg-expand-more" }))), index.h("div", { key: 'dacf7c949d0c14ae3d8eb4abfcbf75e288fab480', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", style: { "--dropdown-max-width": this.maxWidth }, ref: (el) => (this.dropdownEl = el),
395
395
  // @ts-ignore -- don't tell typescript but we're in the future
396
- onToggle: (ev) => this.handleToggle(ev) }, index.h("slot", { key: '345949ab384b90abe4f7983cc22d5197bf8d0b7a' })))));
396
+ onToggle: (ev) => this.handleToggle(ev) }, index.h("slot", { key: '30a7fe43c511ab640cc63a03acae4a574201acbb' })))));
397
397
  }
398
398
  static get delegatesFocus() { return true; }
399
399
  get el() { return index.getElement(this); }
@@ -511,7 +511,7 @@ const Menuitem = class {
511
511
  }
512
512
  }
513
513
  render() {
514
- return (index.h(index.Host, { key: 'ed1a446ae7791153dfb44ba6ae629ccae722b49c', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, index.h("div", { key: '4b00c4bb75f3ea0f1ed8f46086e206da29999882', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, index.h("div", { key: '9abacf612b24d2f54d62d9c80e5dc63379722349', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? index.h("div", { class: "description" }, this.description) : "")));
514
+ return (index.h(index.Host, { key: '17634e9132f3ed4e37b52ea200d46ba15b734d91', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, index.h("div", { key: 'a5a21c6a0feb8bf58a8a4de9a0cefe620522abe3', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, index.h("div", { key: 'd4302f14e6211ef9cad2486834523d43012ec428', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? index.h("div", { class: "description" }, this.description) : "")));
515
515
  }
516
516
  get el() { return index.getElement(this); }
517
517
  static get watchers() { return {
@@ -33,8 +33,8 @@ import { debounce, getTextDir, hideTooltip, showTooltip, findAllScrollableParent
33
33
  *
34
34
  * @example {react} Icon action menu
35
35
  * <WmActionMenu tooltip="More options">
36
- * <WmMenuitem onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>
37
- * <WmMenuitem onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>
36
+ * <WmMenuitem onClick={editRecord}>Edit</WmMenuitem>
37
+ * <WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>
38
38
  * </WmActionMenu>
39
39
  *
40
40
  * @example {html} Icon action menu with a custom icon
@@ -69,8 +69,8 @@ import { debounce, getTextDir, hideTooltip, showTooltip, findAllScrollableParent
69
69
  *
70
70
  * @example {react} Text action menu
71
71
  * <WmActionMenu actionMenuType="text" buttonText="Actions">
72
- * <WmMenuitem onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>
73
- * <WmMenuitem onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>
72
+ * <WmMenuitem onClick={editRecord}>Edit</WmMenuitem>
73
+ * <WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>
74
74
  * </WmActionMenu>
75
75
  *
76
76
  * @example {html} Text action menu with an icon
@@ -93,8 +93,8 @@ import { debounce, getTextDir, hideTooltip, showTooltip, findAllScrollableParent
93
93
  *
94
94
  * @example {react} Selector action menu
95
95
  * <WmActionMenu actionMenuType="selector" buttonText="Sort by">
96
- * <WmMenuitem onWmMenuitemClicked={() => sortBy("name")}>Name</WmMenuitem>
97
- * <WmMenuitem onWmMenuitemClicked={() => sortBy("date")}>Date</WmMenuitem>
96
+ * <WmMenuitem onClick={() => sortBy("name")}>Name</WmMenuitem>
97
+ * <WmMenuitem onClick={() => sortBy("date")}>Date</WmMenuitem>
98
98
  * </WmActionMenu>
99
99
  *
100
100
  * @example {html} Menu items with icons
@@ -105,8 +105,8 @@ import { debounce, getTextDir, hideTooltip, showTooltip, findAllScrollableParent
105
105
  *
106
106
  * @example {react} Menu items with icons
107
107
  * <WmActionMenu tooltip="File actions">
108
- * <WmMenuitem icon="#edit" onWmMenuitemClicked={editFile}>Edit</WmMenuitem>
109
- * <WmMenuitem icon="#delete" onWmMenuitemClicked={deleteFile}>Delete</WmMenuitem>
108
+ * <WmMenuitem icon="#edit" onClick={editFile}>Edit</WmMenuitem>
109
+ * <WmMenuitem icon="#delete" onClick={deleteFile}>Delete</WmMenuitem>
110
110
  * </WmActionMenu>
111
111
  *
112
112
  * @example {html} Identical menus — disambiguate for screen readers with label-for-identical-buttons
@@ -119,15 +119,14 @@ import { debounce, getTextDir, hideTooltip, showTooltip, findAllScrollableParent
119
119
  *
120
120
  * @example {react} Identical menus
121
121
  * <WmActionMenu tooltip="Actions" labelForIdenticalButtons="Actions for Introduction to Biology">
122
- * <WmMenuitem onWmMenuitemClicked={() => editCourse("bio-101")}>Edit</WmMenuitem>
122
+ * <WmMenuitem onClick={() => editCourse("bio-101")}>Edit</WmMenuitem>
123
123
  * </WmActionMenu>
124
124
  * <WmActionMenu tooltip="Actions" labelForIdenticalButtons="Actions for Advanced Chemistry">
125
- * <WmMenuitem onWmMenuitemClicked={() => editCourse("chem-301")}>Edit</WmMenuitem>
125
+ * <WmMenuitem onClick={() => editCourse("chem-301")}>Edit</WmMenuitem>
126
126
  * </WmActionMenu>
127
127
  *
128
128
  * @requiredSetup
129
- * - Wire each item's action: attach an `onclick` handler to each wm-menuitem, or handle
130
- * `wmMenuitemClicked` (`event.detail` is the activated element).
129
+ * - Wire each item's action: attach an `onclick` handler to each wm-menuitem.
131
130
  * - Slot one wm-menuitem per action as a child.
132
131
  *
133
132
  */
@@ -502,7 +501,7 @@ export class ActionMenu {
502
501
  }
503
502
  }
504
503
  render() {
505
- return (h(Host, { key: '3d0a019d085382d974a333a147d9fa4c1695cb49', onBlur: () => this.close(false) }, h("div", { key: '7a62326756be39376945a4935f81514b190424a8', class: getTextDir() }, h("button", { key: '0d8eafd60f79d7e0dfa94a839a0b5ef21939f292', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
504
+ return (h(Host, { key: '6c7311b0cadc7c88beff1e2584259568bef218c0', onBlur: () => this.close(false) }, h("div", { key: '16b4e94741a92bff557dcf71e0e228d4caad433a', class: getTextDir() }, h("button", { key: 'aabfa7ea99c7ec00d478b0e81f1183c2e1d1101c', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
506
505
  ? this.labelForIdenticalButtons || this.tooltip
507
506
  : this.labelForIdenticalButtons || undefined, "aria-expanded": this.isExpanded ? "true" : "false", "aria-haspopup": "menu", popoverTarget: "menu", popoverTargetAction: "toggle", onMouseEnter: () => this.actionMenuType === "icon" &&
508
507
  showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing &&
@@ -510,9 +509,9 @@ export class ActionMenu {
510
509
  showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onBlur: (ev) => {
511
510
  hideTooltip();
512
511
  this.handleButtonBlur(ev);
513
- } }, this.resolvedIcon && this.renderIcon(), this.actionMenuType !== "icon" && h("span", { key: '3903548564ad4bae3c6d4eea0172fe5ad68bd892', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: 'aad5b8cab7bb89e9273bde034c9f8928f51f97ff', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: '2298561f54226051629fff570265e6a9e878d7dc', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", style: { "--dropdown-max-width": this.maxWidth }, ref: (el) => (this.dropdownEl = el),
512
+ } }, this.resolvedIcon && this.renderIcon(), this.actionMenuType !== "icon" && h("span", { key: '7134c8e7516c67d9c5b1441a0802bcca7bd86536', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: '5c0525745f50cbf21b5108d521b370927d63de3e', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: 'dacf7c949d0c14ae3d8eb4abfcbf75e288fab480', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", style: { "--dropdown-max-width": this.maxWidth }, ref: (el) => (this.dropdownEl = el),
514
513
  // @ts-ignore -- don't tell typescript but we're in the future
515
- onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '345949ab384b90abe4f7983cc22d5197bf8d0b7a' })))));
514
+ onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '30a7fe43c511ab640cc63a03acae4a574201acbb' })))));
516
515
  }
517
516
  static get is() { return "wm-action-menu"; }
518
517
  static get encapsulation() { return "shadow"; }
@@ -22,33 +22,32 @@ import { getIconCodeFromName } from "../../global/interfaces";
22
22
  *
23
23
  * @example {react} Basic menu items
24
24
  * <WmActionMenu tooltip="Actions">
25
- * <WmMenuitem onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>
26
- * <WmMenuitem onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>
25
+ * <WmMenuitem onClick={editRecord}>Edit</WmMenuitem>
26
+ * <WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>
27
27
  * </WmActionMenu>
28
28
  *
29
29
  * @example {html} Menu item with icon
30
30
  * <wm-menuitem icon="#edit" onclick="editRecord()">Edit</wm-menuitem>
31
31
  *
32
32
  * @example {react} Menu item with icon
33
- * <WmMenuitem icon="#edit" onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>
33
+ * <WmMenuitem icon="#edit" onClick={editRecord}>Edit</WmMenuitem>
34
34
  *
35
35
  * @example {html} Menu item with description
36
36
  * <wm-menuitem description="Permanently removes the record" onclick="deleteRecord()">Delete</wm-menuitem>
37
37
  *
38
38
  * @example {react} Menu item with description
39
- * <WmMenuitem description="Permanently removes the record" onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>
39
+ * <WmMenuitem description="Permanently removes the record" onClick={deleteRecord}>Delete</WmMenuitem>
40
40
  *
41
41
  * @example {html} Disabled menu item -- the handler is retained and restored when re-enabled
42
42
  * <wm-menuitem disabled onclick="exportRecord()">Export</wm-menuitem>
43
43
  *
44
44
  * @example {react} Disabled menu item
45
- * <WmMenuitem disabled={true} onWmMenuitemClicked={exportRecord}>Export</WmMenuitem>
45
+ * <WmMenuitem disabled={true} onClick={exportRecord}>Export</WmMenuitem>
46
46
  *
47
47
  * @requiredSetup
48
48
  * - Render it as a direct child of wm-action-menu.
49
- * - Wire the action: attach an `onclick` handler to the item, or handle `wmMenuitemClicked`
50
- * (`event.detail` is the activated wm-menuitem). The parent closes the dropdown on that event
51
- * either way, so a menu that closes has not necessarily run anything.
49
+ * - Wire the action: attach an `onclick` handler to the item. The parent closes the dropdown when
50
+ * an item is activated, so a menu that closes has not necessarily run anything.
52
51
  *
53
52
  */
54
53
  export class Menuitem {
@@ -147,7 +146,7 @@ export class Menuitem {
147
146
  }
148
147
  }
149
148
  render() {
150
- return (h(Host, { key: 'ed1a446ae7791153dfb44ba6ae629ccae722b49c', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '4b00c4bb75f3ea0f1ed8f46086e206da29999882', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '9abacf612b24d2f54d62d9c80e5dc63379722349', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
149
+ return (h(Host, { key: '17634e9132f3ed4e37b52ea200d46ba15b734d91', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'a5a21c6a0feb8bf58a8a4de9a0cefe620522abe3', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'd4302f14e6211ef9cad2486834523d43012ec428', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
151
150
  }
152
151
  static get is() { return "wm-menuitem"; }
153
152
  static get encapsulation() { return "shadow"; }
@@ -240,8 +239,11 @@ export class Menuitem {
240
239
  "composed": true,
241
240
  "docs": {
242
241
  "tags": [{
242
+ "name": "internal",
243
+ "text": undefined
244
+ }, {
243
245
  "name": "description",
244
- "text": "Fires when the menu item is clicked or Enter is pressed while focused.\nConsumed by the parent wm-action-menu to close the dropdown."
246
+ "text": "Signals the parent wm-action-menu to close the dropdown when the item is clicked\nor activated by keyboard. Not for application use \u2014 attach an `onclick` handler to run the\nitem's action."
245
247
  }],
246
248
  "text": ""
247
249
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-08-21T16:49:00",
2
+ "timestamp": "2026-08-21T20:37:18",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.21.0",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  {
40
40
  "name": "example",
41
- "text": "{react} Icon action menu\n<WmActionMenu tooltip=\"More options\">\n<WmMenuitem onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>\n<WmMenuitem onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>\n</WmActionMenu>"
41
+ "text": "{react} Icon action menu\n<WmActionMenu tooltip=\"More options\">\n<WmMenuitem onClick={editRecord}>Edit</WmMenuitem>\n<WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>\n</WmActionMenu>"
42
42
  },
43
43
  {
44
44
  "name": "example",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  {
64
64
  "name": "example",
65
- "text": "{react} Text action menu\n<WmActionMenu actionMenuType=\"text\" buttonText=\"Actions\">\n<WmMenuitem onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>\n<WmMenuitem onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>\n</WmActionMenu>"
65
+ "text": "{react} Text action menu\n<WmActionMenu actionMenuType=\"text\" buttonText=\"Actions\">\n<WmMenuitem onClick={editRecord}>Edit</WmMenuitem>\n<WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>\n</WmActionMenu>"
66
66
  },
67
67
  {
68
68
  "name": "example",
@@ -78,7 +78,7 @@
78
78
  },
79
79
  {
80
80
  "name": "example",
81
- "text": "{react} Selector action menu\n<WmActionMenu actionMenuType=\"selector\" buttonText=\"Sort by\">\n<WmMenuitem onWmMenuitemClicked={() => sortBy(\"name\")}>Name</WmMenuitem>\n<WmMenuitem onWmMenuitemClicked={() => sortBy(\"date\")}>Date</WmMenuitem>\n</WmActionMenu>"
81
+ "text": "{react} Selector action menu\n<WmActionMenu actionMenuType=\"selector\" buttonText=\"Sort by\">\n<WmMenuitem onClick={() => sortBy(\"name\")}>Name</WmMenuitem>\n<WmMenuitem onClick={() => sortBy(\"date\")}>Date</WmMenuitem>\n</WmActionMenu>"
82
82
  },
83
83
  {
84
84
  "name": "example",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  {
88
88
  "name": "example",
89
- "text": "{react} Menu items with icons\n<WmActionMenu tooltip=\"File actions\">\n<WmMenuitem icon=\"#edit\" onWmMenuitemClicked={editFile}>Edit</WmMenuitem>\n<WmMenuitem icon=\"#delete\" onWmMenuitemClicked={deleteFile}>Delete</WmMenuitem>\n</WmActionMenu>"
89
+ "text": "{react} Menu items with icons\n<WmActionMenu tooltip=\"File actions\">\n<WmMenuitem icon=\"#edit\" onClick={editFile}>Edit</WmMenuitem>\n<WmMenuitem icon=\"#delete\" onClick={deleteFile}>Delete</WmMenuitem>\n</WmActionMenu>"
90
90
  },
91
91
  {
92
92
  "name": "example",
@@ -94,11 +94,11 @@
94
94
  },
95
95
  {
96
96
  "name": "example",
97
- "text": "{react} Identical menus\n<WmActionMenu tooltip=\"Actions\" labelForIdenticalButtons=\"Actions for Introduction to Biology\">\n<WmMenuitem onWmMenuitemClicked={() => editCourse(\"bio-101\")}>Edit</WmMenuitem>\n</WmActionMenu>\n<WmActionMenu tooltip=\"Actions\" labelForIdenticalButtons=\"Actions for Advanced Chemistry\">\n<WmMenuitem onWmMenuitemClicked={() => editCourse(\"chem-301\")}>Edit</WmMenuitem>\n</WmActionMenu>"
97
+ "text": "{react} Identical menus\n<WmActionMenu tooltip=\"Actions\" labelForIdenticalButtons=\"Actions for Introduction to Biology\">\n<WmMenuitem onClick={() => editCourse(\"bio-101\")}>Edit</WmMenuitem>\n</WmActionMenu>\n<WmActionMenu tooltip=\"Actions\" labelForIdenticalButtons=\"Actions for Advanced Chemistry\">\n<WmMenuitem onClick={() => editCourse(\"chem-301\")}>Edit</WmMenuitem>\n</WmActionMenu>"
98
98
  },
99
99
  {
100
100
  "name": "requiredSetup",
101
- "text": "- Wire each item's action: attach an `onclick` handler to each wm-menuitem, or handle\n `wmMenuitemClicked` (`event.detail` is the activated element).\n- Slot one wm-menuitem per action as a child."
101
+ "text": "- Wire each item's action: attach an `onclick` handler to each wm-menuitem.\n- Slot one wm-menuitem per action as a child."
102
102
  }
103
103
  ],
104
104
  "usage": {},
@@ -6834,7 +6834,7 @@
6834
6834
  },
6835
6835
  {
6836
6836
  "name": "example",
6837
- "text": "{react} Basic menu items\n<WmActionMenu tooltip=\"Actions\">\n<WmMenuitem onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>\n<WmMenuitem onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>\n</WmActionMenu>"
6837
+ "text": "{react} Basic menu items\n<WmActionMenu tooltip=\"Actions\">\n<WmMenuitem onClick={editRecord}>Edit</WmMenuitem>\n<WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>\n</WmActionMenu>"
6838
6838
  },
6839
6839
  {
6840
6840
  "name": "example",
@@ -6842,7 +6842,7 @@
6842
6842
  },
6843
6843
  {
6844
6844
  "name": "example",
6845
- "text": "{react} Menu item with icon\n<WmMenuitem icon=\"#edit\" onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>"
6845
+ "text": "{react} Menu item with icon\n<WmMenuitem icon=\"#edit\" onClick={editRecord}>Edit</WmMenuitem>"
6846
6846
  },
6847
6847
  {
6848
6848
  "name": "example",
@@ -6850,7 +6850,7 @@
6850
6850
  },
6851
6851
  {
6852
6852
  "name": "example",
6853
- "text": "{react} Menu item with description\n<WmMenuitem description=\"Permanently removes the record\" onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>"
6853
+ "text": "{react} Menu item with description\n<WmMenuitem description=\"Permanently removes the record\" onClick={deleteRecord}>Delete</WmMenuitem>"
6854
6854
  },
6855
6855
  {
6856
6856
  "name": "example",
@@ -6858,11 +6858,11 @@
6858
6858
  },
6859
6859
  {
6860
6860
  "name": "example",
6861
- "text": "{react} Disabled menu item\n<WmMenuitem disabled={true} onWmMenuitemClicked={exportRecord}>Export</WmMenuitem>"
6861
+ "text": "{react} Disabled menu item\n<WmMenuitem disabled={true} onClick={exportRecord}>Export</WmMenuitem>"
6862
6862
  },
6863
6863
  {
6864
6864
  "name": "requiredSetup",
6865
- "text": "- Render it as a direct child of wm-action-menu.\n- Wire the action: attach an `onclick` handler to the item, or handle `wmMenuitemClicked`\n (`event.detail` is the activated wm-menuitem). The parent closes the dropdown on that event\n either way, so a menu that closes has not necessarily run anything."
6865
+ "text": "- Render it as a direct child of wm-action-menu.\n- Wire the action: attach an `onclick` handler to the item. The parent closes the dropdown when\n an item is activated, so a menu that closes has not necessarily run anything."
6866
6866
  }
6867
6867
  ],
6868
6868
  "usage": {},
@@ -6960,32 +6960,7 @@
6960
6960
  }
6961
6961
  ],
6962
6962
  "methods": [],
6963
- "events": [
6964
- {
6965
- "event": "wmMenuitemClicked",
6966
- "detail": "HTMLWmMenuitemElement",
6967
- "bubbles": true,
6968
- "complexType": {
6969
- "original": "HTMLWmMenuitemElement",
6970
- "resolved": "HTMLWmMenuitemElement",
6971
- "references": {
6972
- "HTMLWmMenuitemElement": {
6973
- "location": "global",
6974
- "id": "global::HTMLWmMenuitemElement"
6975
- }
6976
- }
6977
- },
6978
- "cancelable": true,
6979
- "composed": true,
6980
- "docs": "",
6981
- "docsTags": [
6982
- {
6983
- "name": "description",
6984
- "text": "Fires when the menu item is clicked or Enter is pressed while focused.\nConsumed by the parent wm-action-menu to close the dropdown."
6985
- }
6986
- ]
6987
- }
6988
- ],
6963
+ "events": [],
6989
6964
  "listeners": [
6990
6965
  {
6991
6966
  "event": "keydown",
@@ -59,8 +59,7 @@ intended for general sizing. Accepts any valid CSS size value, e.g. '22px' or '1
59
59
 
60
60
  **Required setup:**
61
61
 
62
- - Wire each item's action: attach an `onclick` handler to each wm-menuitem, or handle
63
- `wmMenuitemClicked` (`event.detail` is the activated element).
62
+ - Wire each item's action: attach an `onclick` handler to each wm-menuitem.
64
63
  - Slot one wm-menuitem per action as a child.
65
64
 
66
65
  **Accessibility:**
@@ -93,8 +92,8 @@ _Icon action menu_
93
92
 
94
93
  ```react
95
94
  <WmActionMenu tooltip="More options">
96
- <WmMenuitem onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>
97
- <WmMenuitem onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>
95
+ <WmMenuitem onClick={editRecord}>Edit</WmMenuitem>
96
+ <WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>
98
97
  </WmActionMenu>
99
98
  ```
100
99
 
@@ -21,16 +21,11 @@ or an MDI character code (deprecated). Incompatible with `description`.
21
21
  **Slots:**
22
22
  - _(default)_ -- The visible label text for the menu item.
23
23
 
24
- **Events:**
25
- - `wmMenuitemClicked` -- Fires when the menu item is clicked or Enter is pressed while focused.
26
- Consumed by the parent wm-action-menu to close the dropdown.
27
-
28
24
  **Required setup:**
29
25
 
30
26
  - Render it as a direct child of wm-action-menu.
31
- - Wire the action: attach an `onclick` handler to the item, or handle `wmMenuitemClicked`
32
- (`event.detail` is the activated wm-menuitem). The parent closes the dropdown on that event
33
- either way, so a menu that closes has not necessarily run anything.
27
+ - Wire the action: attach an `onclick` handler to the item. The parent closes the dropdown when
28
+ an item is activated, so a menu that closes has not necessarily run anything.
34
29
 
35
30
  **Accessibility:**
36
31
 
@@ -51,8 +46,8 @@ _Basic menu items_
51
46
 
52
47
  ```react
53
48
  <WmActionMenu tooltip="Actions">
54
- <WmMenuitem onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>
55
- <WmMenuitem onWmMenuitemClicked={deleteRecord}>Delete</WmMenuitem>
49
+ <WmMenuitem onClick={editRecord}>Edit</WmMenuitem>
50
+ <WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>
56
51
  </WmActionMenu>
57
52
  ```
58
53
 
@@ -65,5 +60,5 @@ _Menu item with icon_
65
60
  _Menu item with icon_
66
61
 
67
62
  ```react
68
- <WmMenuitem icon="#edit" onWmMenuitemClicked={editRecord}>Edit</WmMenuitem>
63
+ <WmMenuitem icon="#edit" onClick={editRecord}>Edit</WmMenuitem>
69
64
  ```
@@ -1,6 +1,6 @@
1
1
  import './index-3425d80d.js';
2
2
 
3
- const version = "5.32.0-alpha.6";
3
+ const version = "5.32.0-alpha.7";
4
4
 
5
5
  // PRINT RIPPLE VERSION IN CONSOLE
6
6
  // test envs return 0 for plugin.length
@@ -1,6 +1,6 @@
1
1
  import { b as bootstrapLazy } from './index-3425d80d.js';
2
2
  export { s as setNonce } from './index-3425d80d.js';
3
- import { g as globalScripts } from './app-globals-1495796e.js';
3
+ import { g as globalScripts } from './app-globals-d1b77a8f.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
@@ -1,6 +1,6 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-3425d80d.js';
2
2
  export { s as setNonce } from './index-3425d80d.js';
3
- import { g as globalScripts } from './app-globals-1495796e.js';
3
+ import { g as globalScripts } from './app-globals-d1b77a8f.js';
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
@@ -379,7 +379,7 @@ const ActionMenu = class {
379
379
  }
380
380
  }
381
381
  render() {
382
- return (h(Host, { key: '3d0a019d085382d974a333a147d9fa4c1695cb49', onBlur: () => this.close(false) }, h("div", { key: '7a62326756be39376945a4935f81514b190424a8', class: getTextDir() }, h("button", { key: '0d8eafd60f79d7e0dfa94a839a0b5ef21939f292', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
382
+ return (h(Host, { key: '6c7311b0cadc7c88beff1e2584259568bef218c0', onBlur: () => this.close(false) }, h("div", { key: '16b4e94741a92bff557dcf71e0e228d4caad433a', class: getTextDir() }, h("button", { key: 'aabfa7ea99c7ec00d478b0e81f1183c2e1d1101c', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
383
383
  ? this.labelForIdenticalButtons || this.tooltip
384
384
  : this.labelForIdenticalButtons || undefined, "aria-expanded": this.isExpanded ? "true" : "false", "aria-haspopup": "menu", popoverTarget: "menu", popoverTargetAction: "toggle", onMouseEnter: () => this.actionMenuType === "icon" &&
385
385
  showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing &&
@@ -387,9 +387,9 @@ const ActionMenu = class {
387
387
  showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onBlur: (ev) => {
388
388
  hideTooltip();
389
389
  this.handleButtonBlur(ev);
390
- } }, this.resolvedIcon && this.renderIcon(), this.actionMenuType !== "icon" && h("span", { key: '3903548564ad4bae3c6d4eea0172fe5ad68bd892', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: 'aad5b8cab7bb89e9273bde034c9f8928f51f97ff', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: '2298561f54226051629fff570265e6a9e878d7dc', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", style: { "--dropdown-max-width": this.maxWidth }, ref: (el) => (this.dropdownEl = el),
390
+ } }, this.resolvedIcon && this.renderIcon(), this.actionMenuType !== "icon" && h("span", { key: '7134c8e7516c67d9c5b1441a0802bcca7bd86536', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: '5c0525745f50cbf21b5108d521b370927d63de3e', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: 'dacf7c949d0c14ae3d8eb4abfcbf75e288fab480', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", style: { "--dropdown-max-width": this.maxWidth }, ref: (el) => (this.dropdownEl = el),
391
391
  // @ts-ignore -- don't tell typescript but we're in the future
392
- onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '345949ab384b90abe4f7983cc22d5197bf8d0b7a' })))));
392
+ onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '30a7fe43c511ab640cc63a03acae4a574201acbb' })))));
393
393
  }
394
394
  static get delegatesFocus() { return true; }
395
395
  get el() { return getElement(this); }
@@ -507,7 +507,7 @@ const Menuitem = class {
507
507
  }
508
508
  }
509
509
  render() {
510
- return (h(Host, { key: 'ed1a446ae7791153dfb44ba6ae629ccae722b49c', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '4b00c4bb75f3ea0f1ed8f46086e206da29999882', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '9abacf612b24d2f54d62d9c80e5dc63379722349', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
510
+ return (h(Host, { key: '17634e9132f3ed4e37b52ea200d46ba15b734d91', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'a5a21c6a0feb8bf58a8a4de9a0cefe620522abe3', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'd4302f14e6211ef9cad2486834523d43012ec428', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
511
511
  }
512
512
  get el() { return getElement(this); }
513
513
  static get watchers() { return {