@watermarkinsights/ripple 5.19.0-alpha.8 → 5.19.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.
Files changed (88) hide show
  1. package/dist/cjs/{app-globals-79328ba8.js → app-globals-8b6a68ee.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ripple.cjs.js +1 -1
  4. package/dist/cjs/wm-file.cjs.entry.js +1 -1
  5. package/dist/cjs/wm-navigator.cjs.entry.js +11 -4
  6. package/dist/cjs/wm-snackbar.cjs.entry.js +12 -16
  7. package/dist/cjs/wm-tag-input.cjs.entry.js +20 -11
  8. package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
  9. package/dist/cjs/wm-timepicker.cjs.entry.js +2 -2
  10. package/dist/cjs/wm-toggletip.cjs.entry.js +3 -3
  11. package/dist/cjs/wm-uploader.cjs.entry.js +16 -12
  12. package/dist/collection/components/datepickers/datepicker.css +0 -31
  13. package/dist/collection/components/wm-file/wm-file.css +3 -2
  14. package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -31
  15. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -31
  16. package/dist/collection/components/wm-navigator/wm-navigator.js +11 -4
  17. package/dist/collection/components/wm-pagination/wm-pagination.css +0 -31
  18. package/dist/collection/components/wm-search/wm-search.css +0 -31
  19. package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -31
  20. package/dist/collection/components/wm-snackbar/wm-snackbar.js +12 -16
  21. package/dist/collection/components/wm-tag-input/wm-tag-input.css +9 -8
  22. package/dist/collection/components/wm-tag-input/wm-tag-input.js +19 -10
  23. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  24. package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -31
  25. package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
  26. package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
  27. package/dist/collection/components/wm-uploader/wm-uploader.css +2 -33
  28. package/dist/collection/components/wm-uploader/wm-uploader.js +15 -11
  29. package/dist/collection/dev/uploader.js +4 -4
  30. package/dist/esm/{app-globals-c4995af5.js → app-globals-c35ae7d2.js} +1 -1
  31. package/dist/esm/loader.js +1 -1
  32. package/dist/esm/polyfills/core-js.js +0 -0
  33. package/dist/esm/polyfills/dom.js +0 -0
  34. package/dist/esm/polyfills/es5-html-element.js +0 -0
  35. package/dist/esm/polyfills/index.js +0 -0
  36. package/dist/esm/polyfills/system.js +0 -0
  37. package/dist/esm/ripple.js +1 -1
  38. package/dist/esm/wm-file.entry.js +1 -1
  39. package/dist/esm/wm-navigator.entry.js +11 -4
  40. package/dist/esm/wm-snackbar.entry.js +12 -16
  41. package/dist/esm/wm-tag-input.entry.js +20 -11
  42. package/dist/esm/wm-textarea.entry.js +1 -1
  43. package/dist/esm/wm-timepicker.entry.js +2 -2
  44. package/dist/esm/wm-toggletip.entry.js +3 -3
  45. package/dist/esm/wm-uploader.entry.js +16 -12
  46. package/dist/esm-es5/app-globals-c35ae7d2.js +1 -0
  47. package/dist/esm-es5/loader.js +1 -1
  48. package/dist/esm-es5/ripple.js +1 -1
  49. package/dist/esm-es5/wm-file.entry.js +1 -1
  50. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  51. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  52. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  53. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  54. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  55. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  56. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  57. package/dist/ripple/{p-93b6ba69.system.entry.js → p-036fd03b.system.entry.js} +1 -1
  58. package/dist/ripple/{p-2f10c1fa.system.entry.js → p-0c20a096.system.entry.js} +1 -1
  59. package/dist/ripple/{p-95ce8c39.entry.js → p-328b9560.entry.js} +1 -1
  60. package/dist/ripple/p-365c4ea1.js +1 -0
  61. package/dist/ripple/{p-7a21aa55.entry.js → p-4886fc88.entry.js} +1 -1
  62. package/dist/ripple/{p-a6f4dd01.system.entry.js → p-4b0b66e0.system.entry.js} +1 -1
  63. package/dist/ripple/{p-92fe0ea4.entry.js → p-54759960.entry.js} +1 -1
  64. package/dist/ripple/{p-2b9672b9.system.js → p-63a10406.system.js} +1 -1
  65. package/dist/ripple/{p-cfcc0432.system.entry.js → p-65d3f9c4.system.entry.js} +1 -1
  66. package/dist/ripple/p-7d708fab.entry.js +1 -0
  67. package/dist/ripple/p-7e6353f2.system.js +1 -0
  68. package/dist/ripple/{p-350f9314.system.entry.js → p-8c73dadf.system.entry.js} +1 -1
  69. package/dist/ripple/{p-4175c4b0.system.entry.js → p-96a7c1b9.system.entry.js} +1 -1
  70. package/dist/ripple/p-ad10664f.entry.js +1 -0
  71. package/dist/ripple/p-c1d6740e.entry.js +1 -0
  72. package/dist/ripple/p-d784f4b4.entry.js +1 -0
  73. package/dist/ripple/p-dbc3a44d.entry.js +1 -0
  74. package/dist/ripple/{p-561d1898.system.entry.js → p-dfdcdae0.system.entry.js} +1 -1
  75. package/dist/ripple/{p-daac445c.system.entry.js → p-f8fd7172.system.entry.js} +1 -1
  76. package/dist/ripple/ripple.esm.js +1 -1
  77. package/dist/ripple/ripple.js +1 -1
  78. package/dist/types/components/wm-navigator/wm-navigator.d.ts +1 -1
  79. package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +3 -1
  80. package/package.json +2 -2
  81. package/dist/esm-es5/app-globals-c4995af5.js +0 -1
  82. package/dist/ripple/p-8e694216.entry.js +0 -1
  83. package/dist/ripple/p-9eca2223.system.js +0 -1
  84. package/dist/ripple/p-a578f968.entry.js +0 -1
  85. package/dist/ripple/p-b40454d2.entry.js +0 -1
  86. package/dist/ripple/p-bb745e54.entry.js +0 -1
  87. package/dist/ripple/p-e8307df9.js +0 -1
  88. package/dist/ripple/p-f3536c26.entry.js +0 -1
@@ -77,7 +77,7 @@ const Textarea = class {
77
77
  this.announcement = message;
78
78
  }
79
79
  render() {
80
- return (h("div", { key: '5bd7daf935fa75bec3fccc000c4674b23da1c043', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '52f18f7ef95fb4505f19ec57b3328db9706af750', class: "label-wrapper" }, h("label", { key: '510bf29970364b1caacfd1eef164a2f766217df2', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '47024a21e0940c6c40dde2b131c337636fe1bbdf', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("span", { key: 'dff37fb5a589b44b4eb249b0b3a572e9944a15cb', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '8dda587667514bbf0db310491cf58d2b3ea00fea', class: "inner-wrapper" }, h("div", { key: '8782435cdc9150197ac29a09fd6b3d6b95413c59', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '3d7a017570a79669f03914e00be725a633717c66', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '7cfb20e30f1413096a861089e932aabc46be0593', id: "info", class: "info" }, this.info)), h("div", { key: '2f450eb52e3bf5e805e125f19e59766c4d45a75c', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '024947b6fa1ef096bb09c1c9183984e647ed5432', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
80
+ return (h("div", { key: 'c2bdf3a833b32103d85e4d19572985dde836aeb8', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '61f16420145b5289639728f06f7a7e9c90ecb220', class: "label-wrapper" }, h("label", { key: 'cf3a1d2dbe614498ce76f7d10252ddabe591ffc7', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: 'ed53aebd7ba2338ba9a34db8ed84f86266fb01a0', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("span", { key: 'c91d58aa6d531d19ca62227f1f9ae6776dc2e6eb', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'abbd117e4231de2ee3d696216d869a3ac3078240', class: "inner-wrapper" }, h("div", { key: 'e94b2f9f8bbf6d5e374e68555ac266789283b280', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '908e5bb512ed6253d5f1c9cb593f74cf5766ef8c', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '51239b18371da181395d159315d280e1993383cd', id: "info", class: "info" }, this.info)), h("div", { key: 'dd678537871b6ac6efeec23995a1c8bb5a9c3fbb', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '54e35dfe321a05965fc555814cdd3235457a0871', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
81
81
  }
82
82
  get el() { return getElement(this); }
83
83
  static get watchers() { return {
@@ -288,13 +288,13 @@ const Timepicker = class {
288
288
  return this.times.map((time, index) => (h("li", { id: `option${index + 1}`, "data-time": time, role: "option", onClick: () => this.handleOptionClick(time) }, this.reformatTimeInternal("12", time))));
289
289
  }
290
290
  render() {
291
- return (h(Host, { key: 'fd0acc447628174ea8551c1ea7cafdc8b0b6ec74', onBlur: () => this.close(false) }, h("div", { key: 'a8c7c453558df7a33fc42d71eff78894a36306d6', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: '9f259605e513d12e32716f12b4d5dee9fb97d10a', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '1b1b596a992a66f6738cab61086c9d7298934e8c', id: "label", class: "label", htmlFor: "time-input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '4fc12427a1b3c62b9a6e7cd53c83cec311b46f1e', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '6f299347f62dd5299f0223bbdee82fc55dafe06a' }, h("div", { key: 'd78e3b28b110714558d94ba03bedc4d63e8a41d7', class: "inner-wrapper" }, h("input", { key: '1af64c4c0ab7bd983d3e926ad1ea146bed0dadea', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: 'a99cd67d7bfa17c4ba512b73097b5987b8d5d4f8', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
291
+ return (h(Host, { key: 'e05ceac51a9193466dff7a488803f09ae91c837a', onBlur: () => this.close(false) }, h("div", { key: '4bdd4087ff1b8c4956623571dc168d761646ce4e', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: 'c64a7486a1c3b74f61c94ce0b3f59c45e96b639e', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: 'cce428cf638a5932b1c157794e646f0b8026e1db', id: "label", class: "label", htmlFor: "time-input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '655e1585ffdb70eed624eeec16aa270f3f6584b6', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '85bf657eff58d0774a25d20c0eba53d7deadd98d' }, h("div", { key: '0152b10359dcb69a47275ee88e0a5c0b8cacf051', class: "inner-wrapper" }, h("input", { key: '32a55fbfebecafa786cafafc540016f52fcbf38a', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: '4c77218b291d0d3858c456c816a608b6d2e6d8c6', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
292
292
  // This addresses an issue in Safari, where clicking buttons does not focus them
293
293
  // if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
294
294
  onMouseDown: (ev) => {
295
295
  ev.preventDefault();
296
296
  this.buttonEl.focus();
297
- } }, h("span", { key: 'd50582487d9860716e0bdc67b99ac75b346d62aa', class: "svg-icon svg-time" })), h("ul", { key: '63a9ed95dc1c238d12d84150c406e5ff877d71b3', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: '25ea586bea9676a7d18c2fdeada1dcaf0a224471', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '4985d6ee5df49f687eaeeb06a1b5a0c8b14b7119', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
297
+ } }, h("span", { key: '0211abd0a1e89e3fd48278022f45572a8696a8de', class: "svg-icon svg-time" })), h("ul", { key: 'e7db5d8e3853b0c64099996064c17e361f3f0119', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: 'bb587cbf052b2b54ff5cd54cd1ee26e1015adf86', id: "error", class: "error" }, this.errorMessage)), h("div", { key: 'bf8d0736ecbd1c987b0d5c15a87537be665812d7', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
298
298
  }
299
299
  static get delegatesFocus() { return true; }
300
300
  get el() { return getElement(this); }
@@ -234,11 +234,11 @@ const Toggletip = class {
234
234
  }
235
235
  }
236
236
  render() {
237
- return (h(Host, { key: '07c2a62e81a2df15f667ca84d440c96dc21a89f7', class: `size-${this.targetSize}` }, h("button", { key: 'd0cb8080843aa0c61fbc2a8280b12e25707ba79a', ref: (el) => (this.buttonEl = el), class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => this.open(),
237
+ return (h(Host, { key: '2127bc9c0e5bebbf58fce82b7ea772a3b6fe2ada', class: `size-${this.targetSize}` }, h("button", { key: '55335d84975af0a4e6928b71d08745050454d4e4', ref: (el) => (this.buttonEl = el), class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => this.open(),
238
238
  // In order to position the tooltip identically to the toggletip, its presence is determined by these four events
239
- onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: '1b082071110727cf565df491c69b8f2a7c58a3d4', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip",
239
+ onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: 'de52ea584962f47a035c900af10e31951ec49ef6', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip",
240
240
  // @ts-ignore - despite what Typescript says, this is a valid event for popover elements
241
- onToggle: (ev) => this.handlePopoverToggle(ev) }, this.tooltip), h("div", { key: '140540c39e67e60d63ed8c6e4435a7063a2bb16d', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
241
+ onToggle: (ev) => this.handlePopoverToggle(ev) }, this.tooltip), h("div", { key: '88e8da7742e5aa390fd17be1efd6067d25f71209', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
242
242
  }
243
243
  static get delegatesFocus() { return true; }
244
244
  get el() { return getElement(this); }