@watermarkinsights/ripple 3.12.0 → 3.13.0-9

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 (176) hide show
  1. package/dist/cjs/{chartFunctions-44ae2eee.js → chartFunctions-34fdd3ce.js} +1 -1
  2. package/dist/cjs/{functions-1a67b971.js → functions-120449cf.js} +245 -32
  3. package/dist/cjs/{global-122fc638.js → global-1d1d0ab3.js} +7 -5
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/priv-chart-popover.cjs.entry.js +1 -1
  6. package/dist/cjs/priv-datepicker.cjs.entry.js +1 -1
  7. package/dist/cjs/ripple.cjs.js +2 -2
  8. package/dist/cjs/wm-action-menu_2.cjs.entry.js +1 -1
  9. package/dist/cjs/wm-button.cjs.entry.js +50 -38
  10. package/dist/cjs/wm-chart.cjs.entry.js +2 -2
  11. package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
  12. package/dist/cjs/wm-input.cjs.entry.js +1 -1
  13. package/dist/cjs/wm-modal-footer.cjs.entry.js +1 -1
  14. package/dist/cjs/wm-modal-header.cjs.entry.js +1 -1
  15. package/dist/cjs/wm-modal.cjs.entry.js +1 -1
  16. package/dist/cjs/wm-navigation_3.cjs.entry.js +1 -1
  17. package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
  18. package/dist/cjs/wm-network-uploader.cjs.entry.js +6 -4
  19. package/dist/cjs/wm-option_2.cjs.entry.js +345 -122
  20. package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
  21. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
  22. package/dist/cjs/wm-search.cjs.entry.js +1 -1
  23. package/dist/cjs/wm-snackbar.cjs.entry.js +1 -1
  24. package/dist/cjs/wm-tab-item_3.cjs.entry.js +1 -1
  25. package/dist/cjs/wm-tag-input.cjs.entry.js +1 -1
  26. package/dist/cjs/wm-timepicker.cjs.entry.js +1 -1
  27. package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
  28. package/dist/cjs/wm-uploader.cjs.entry.js +9 -11
  29. package/dist/collection/components/wm-button/wm-button.css +1 -0
  30. package/dist/collection/components/wm-button/wm-button.js +50 -40
  31. package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
  32. package/dist/collection/components/wm-option/wm-option.css +12 -0
  33. package/dist/collection/components/wm-option/wm-option.js +34 -29
  34. package/dist/collection/components/wm-select/wm-select.css +76 -23
  35. package/dist/collection/components/wm-select/wm-select.js +385 -125
  36. package/dist/collection/components/wm-toggletip/wm-toggletip.js +5 -5
  37. package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +0 -3
  38. package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +4 -2
  39. package/dist/collection/components/wm-uploader/wm-uploader.css +1 -5
  40. package/dist/collection/components/wm-uploader/wm-uploader.js +7 -9
  41. package/dist/collection/global/__mocks__/functions.js +9 -0
  42. package/dist/collection/global/functions.js +1 -28
  43. package/dist/collection/global/global.js +6 -4
  44. package/dist/esm/{chartFunctions-8fa800a6.js → chartFunctions-20f05eb5.js} +1 -1
  45. package/dist/esm/{functions-61c7bb1f.js → functions-036af8dc.js} +245 -32
  46. package/dist/esm/{global-5902ef31.js → global-590c515d.js} +7 -5
  47. package/dist/esm/loader.js +2 -2
  48. package/dist/esm/priv-chart-popover.entry.js +1 -1
  49. package/dist/esm/priv-datepicker.entry.js +1 -1
  50. package/dist/esm/ripple.js +2 -2
  51. package/dist/esm/wm-action-menu_2.entry.js +1 -1
  52. package/dist/esm/wm-button.entry.js +51 -39
  53. package/dist/esm/wm-chart.entry.js +2 -2
  54. package/dist/esm/wm-datepicker.entry.js +1 -1
  55. package/dist/esm/wm-input.entry.js +1 -1
  56. package/dist/esm/wm-modal-footer.entry.js +1 -1
  57. package/dist/esm/wm-modal-header.entry.js +1 -1
  58. package/dist/esm/wm-modal.entry.js +1 -1
  59. package/dist/esm/wm-navigation_3.entry.js +1 -1
  60. package/dist/esm/wm-navigator.entry.js +1 -1
  61. package/dist/esm/wm-network-uploader.entry.js +6 -4
  62. package/dist/esm/wm-option_2.entry.js +345 -122
  63. package/dist/esm/wm-pagination.entry.js +1 -1
  64. package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
  65. package/dist/esm/wm-search.entry.js +1 -1
  66. package/dist/esm/wm-snackbar.entry.js +1 -1
  67. package/dist/esm/wm-tab-item_3.entry.js +1 -1
  68. package/dist/esm/wm-tag-input.entry.js +1 -1
  69. package/dist/esm/wm-timepicker.entry.js +1 -1
  70. package/dist/esm/wm-toggletip.entry.js +4 -4
  71. package/dist/esm/wm-uploader.entry.js +9 -11
  72. package/dist/esm-es5/{chartFunctions-8fa800a6.js → chartFunctions-20f05eb5.js} +1 -1
  73. package/dist/esm-es5/{functions-61c7bb1f.js → functions-036af8dc.js} +2 -2
  74. package/dist/esm-es5/global-590c515d.js +1 -0
  75. package/dist/esm-es5/loader.js +1 -1
  76. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  77. package/dist/esm-es5/priv-datepicker.entry.js +1 -1
  78. package/dist/esm-es5/ripple.js +1 -1
  79. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  80. package/dist/esm-es5/wm-button.entry.js +1 -1
  81. package/dist/esm-es5/wm-chart.entry.js +1 -1
  82. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  83. package/dist/esm-es5/wm-input.entry.js +1 -1
  84. package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
  85. package/dist/esm-es5/wm-modal-header.entry.js +1 -1
  86. package/dist/esm-es5/wm-modal.entry.js +1 -1
  87. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  88. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  89. package/dist/esm-es5/wm-network-uploader.entry.js +1 -1
  90. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  91. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  92. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  93. package/dist/esm-es5/wm-search.entry.js +1 -1
  94. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  95. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  96. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  97. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  98. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  99. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  100. package/dist/ripple/{p-28bf6a2e.system.js → p-04d8b674.system.js} +1 -1
  101. package/dist/ripple/{p-d3ed8b65.system.entry.js → p-04e44b30.system.entry.js} +1 -1
  102. package/dist/ripple/{p-fdc4a599.system.entry.js → p-0556279c.system.entry.js} +1 -1
  103. package/dist/ripple/{p-1242752c.system.entry.js → p-06adbeb9.system.entry.js} +1 -1
  104. package/dist/ripple/{p-42aa51fe.system.entry.js → p-0e9ccc6f.system.entry.js} +1 -1
  105. package/dist/ripple/{p-520b0f54.entry.js → p-17ceb8c1.entry.js} +1 -1
  106. package/dist/ripple/{p-8caae464.entry.js → p-1887286e.entry.js} +1 -1
  107. package/dist/ripple/{p-c873b490.system.entry.js → p-1ccd994d.system.entry.js} +1 -1
  108. package/dist/ripple/p-1d795f42.entry.js +1 -0
  109. package/dist/ripple/p-2996bfe6.entry.js +1 -0
  110. package/dist/ripple/{p-30745db6.entry.js → p-2f860b24.entry.js} +1 -1
  111. package/dist/ripple/p-3489b502.js +1 -0
  112. package/dist/ripple/{p-cd4fda75.entry.js → p-3680b55d.entry.js} +1 -1
  113. package/dist/ripple/p-3745c620.system.js +1 -0
  114. package/dist/ripple/{p-f12a510f.entry.js → p-3a1d6fc4.entry.js} +1 -1
  115. package/dist/ripple/p-42337590.entry.js +1 -0
  116. package/dist/ripple/{p-68155230.system.entry.js → p-49fd7ede.system.entry.js} +1 -1
  117. package/dist/ripple/{p-8aa9f811.js → p-4ecd3430.js} +1 -1
  118. package/dist/ripple/{p-5471864e.system.entry.js → p-62eac2d6.system.entry.js} +1 -1
  119. package/dist/ripple/{p-5e041c35.entry.js → p-6aa6a818.entry.js} +1 -1
  120. package/dist/ripple/{p-487f7419.system.entry.js → p-6bf5cbf4.system.entry.js} +1 -1
  121. package/dist/ripple/{p-e180001c.system.entry.js → p-7173b0a7.system.entry.js} +1 -1
  122. package/dist/ripple/p-726c979a.system.js +15 -0
  123. package/dist/ripple/{p-eacd33cc.system.entry.js → p-752da0fb.system.entry.js} +1 -1
  124. package/dist/ripple/{p-f36b74bf.entry.js → p-7ae1a630.entry.js} +1 -1
  125. package/dist/ripple/{p-8d347cd5.entry.js → p-7ecbf258.entry.js} +1 -1
  126. package/dist/ripple/{p-75ef731b.system.entry.js → p-7ef6a7cf.system.entry.js} +1 -1
  127. package/dist/ripple/p-8612829b.system.entry.js +1 -0
  128. package/dist/ripple/{p-398b2486.system.entry.js → p-895f5ec5.system.entry.js} +1 -1
  129. package/dist/ripple/{p-d3603def.entry.js → p-8de546e8.entry.js} +1 -1
  130. package/dist/ripple/{p-35cfcf9f.entry.js → p-93dee724.entry.js} +1 -1
  131. package/dist/ripple/{p-0f33461d.entry.js → p-97c2b06f.entry.js} +1 -1
  132. package/dist/ripple/{p-9f12284b.system.entry.js → p-995ba16f.system.entry.js} +1 -1
  133. package/dist/ripple/p-9c92c93f.entry.js +1 -0
  134. package/dist/ripple/p-9e09d7a1.entry.js +1 -0
  135. package/dist/ripple/{p-f0656464.entry.js → p-a04ba6c8.entry.js} +1 -1
  136. package/dist/ripple/{p-44035b02.system.entry.js → p-af3ce4fc.system.entry.js} +1 -1
  137. package/dist/ripple/p-bbcafbd6.system.entry.js +1 -0
  138. package/dist/ripple/{p-eee347b4.system.entry.js → p-c1443a0e.system.entry.js} +1 -1
  139. package/dist/ripple/{p-212aac05.system.entry.js → p-ca383a43.system.entry.js} +1 -1
  140. package/dist/ripple/{p-ca2fbd1b.system.js → p-cc247ee1.system.js} +1 -1
  141. package/dist/ripple/{p-73d66b0a.system.entry.js → p-cd3d74d1.system.entry.js} +1 -1
  142. package/dist/ripple/p-d1ac96e1.system.entry.js +1 -0
  143. package/dist/ripple/{p-3f1d8211.system.entry.js → p-d48c56c7.system.entry.js} +1 -1
  144. package/dist/ripple/{p-15b1c11b.js → p-de3367ee.js} +2 -2
  145. package/dist/ripple/{p-e748e22b.entry.js → p-e083fca6.entry.js} +1 -1
  146. package/dist/ripple/{p-3e6498ea.system.entry.js → p-e4439bc3.system.entry.js} +1 -1
  147. package/dist/ripple/{p-e49b9a96.entry.js → p-e524d462.entry.js} +1 -1
  148. package/dist/ripple/{p-92226595.entry.js → p-e8d39f68.entry.js} +1 -1
  149. package/dist/ripple/{p-00fa3d4b.entry.js → p-ed91be1a.entry.js} +1 -1
  150. package/dist/ripple/{p-d81a4e7c.system.entry.js → p-f23b3986.system.entry.js} +1 -1
  151. package/dist/ripple/{p-e75e75e0.entry.js → p-fda61e7e.entry.js} +1 -1
  152. package/dist/ripple/p-fe952112.entry.js +1 -0
  153. package/dist/ripple/ripple.esm.js +1 -1
  154. package/dist/ripple/ripple.js +1 -1
  155. package/dist/types/components/wm-button/wm-button.d.ts +4 -4
  156. package/dist/types/components/wm-option/wm-option.d.ts +5 -2
  157. package/dist/types/components/wm-select/wm-select.d.ts +39 -12
  158. package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +2 -2
  159. package/dist/types/components.d.ts +10 -6
  160. package/dist/types/global/__mocks__/functions.d.ts +1 -0
  161. package/dist/types/global/functions.d.ts +2 -2
  162. package/dist/types/global/interfaces.d.ts +1 -1
  163. package/package.json +1 -1
  164. package/dist/esm-es5/global-5902ef31.js +0 -1
  165. package/dist/ripple/p-1b058a44.entry.js +0 -1
  166. package/dist/ripple/p-2077203e.system.js +0 -1
  167. package/dist/ripple/p-379b125b.entry.js +0 -1
  168. package/dist/ripple/p-49bf0b81.js +0 -1
  169. package/dist/ripple/p-584fef7f.system.entry.js +0 -1
  170. package/dist/ripple/p-72eb5064.system.entry.js +0 -1
  171. package/dist/ripple/p-76ca7498.system.js +0 -15
  172. package/dist/ripple/p-9fe64cec.entry.js +0 -1
  173. package/dist/ripple/p-a82d37d8.entry.js +0 -1
  174. package/dist/ripple/p-ac2485a6.system.entry.js +0 -1
  175. package/dist/ripple/p-ba168596.entry.js +0 -1
  176. package/dist/ripple/p-ed657559.entry.js +0 -1
@@ -15,7 +15,7 @@ export class Toggletip {
15
15
  return this.tooltip || this.tooltipText;
16
16
  }
17
17
  componentWillLoad() {
18
- const validTooltipPositions = [
18
+ const validTooltipPlacement = [
19
19
  "top",
20
20
  "right",
21
21
  "bottom",
@@ -31,8 +31,8 @@ export class Toggletip {
31
31
  if (!this.tempTooltip) {
32
32
  console.error("wm-toggletip must have a tooltip property");
33
33
  }
34
- if (!validTooltipPositions.includes(this.tooltipPosition)) {
35
- console.error(`wm-toggletip: tooltip-position has an invalid value of "${this.tooltipPosition}", make sure to use one of the following values: ${validTooltipPositions}`);
34
+ if (!validTooltipPlacement.includes(this.tooltipPosition)) {
35
+ console.error(`wm-toggletip: tooltip-position has an invalid value of "${this.tooltipPosition}", make sure to use one of the following values: ${validTooltipPlacement}`);
36
36
  }
37
37
  if (this.tooltipText) {
38
38
  console.warn("wm-toggletip: tooltip-text has been deprecated as of v3.1.0. Please use tooltip instead.");
@@ -188,10 +188,10 @@ export class Toggletip {
188
188
  "type": "string",
189
189
  "mutable": true,
190
190
  "complexType": {
191
- "original": "TooltipPosition",
191
+ "original": "TooltipPlacement",
192
192
  "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
193
193
  "references": {
194
- "TooltipPosition": {
194
+ "TooltipPlacement": {
195
195
  "location": "import",
196
196
  "path": "../../global/interfaces"
197
197
  }
@@ -572,9 +572,6 @@ wm-network-uploader * {
572
572
  font-size: 0.875rem;
573
573
  font-style: italic;
574
574
  margin-top: 0.25rem;
575
- overflow: hidden;
576
- white-space: nowrap;
577
- text-overflow: ellipsis;
578
575
  }
579
576
 
580
577
  @media (max-width: 60.9375rem) {
@@ -133,7 +133,8 @@ export class NetworkUploader {
133
133
  if (isMax) {
134
134
  const errMessage = intl.formatMessage({
135
135
  id: "uploader.fileUploadLimit",
136
- defaultMessage: "You have reached the file upload limit.",
136
+ defaultMessage: "Upload unsuccessful because file selection would exceed the maximum number of files",
137
+ description: "Message displayed when trying to upload too many files",
137
138
  });
138
139
  this.notif = { id: 1, message: errMessage };
139
140
  if (this.liveRegion) {
@@ -375,7 +376,8 @@ export class NetworkUploader {
375
376
  else if (isMax) {
376
377
  errMsg = intl.formatMessage({
377
378
  id: "uploader.fileUploadLimit",
378
- defaultMessage: "You have reached the file upload limit.",
379
+ defaultMessage: "Upload unsuccessful because file selection would exceed the maximum number of files",
380
+ description: "Message displayed when trying to upload too many files",
379
381
  });
380
382
  }
381
383
  if (errMsg) {
@@ -620,9 +620,6 @@ wm-uploader * {
620
620
  padding-top: 0.25rem;
621
621
  font-size: 0.875rem;
622
622
  font-style: italic;
623
- overflow: hidden;
624
- white-space: nowrap;
625
- text-overflow: ellipsis;
626
623
  }
627
624
  .notif.error {
628
625
  color: #c0392b;
@@ -720,7 +717,6 @@ ul li .file + .file {
720
717
  margin-top: 1.25rem;
721
718
  }
722
719
  ul li .file .filename {
723
- font-weight: 500;
724
720
  white-space: nowrap;
725
721
  }
726
722
  ul li .file .left-group {
@@ -775,7 +771,6 @@ ul.file-list li .file, ul.inprogress-list li .file {
775
771
  }
776
772
  ul.error-list li {
777
773
  margin-bottom: 0.5rem;
778
- color: #c0392b;
779
774
  }
780
775
  ul.error-list li .file {
781
776
  border: 1px solid #c0392b;
@@ -783,6 +778,7 @@ ul.error-list li .file {
783
778
  height: 3.75rem;
784
779
  }
785
780
  ul.error-list li .error-message {
781
+ color: #c0392b;
786
782
  padding-top: 0.25rem;
787
783
  font-style: italic;
788
784
  }
@@ -39,18 +39,16 @@ export class Uploader {
39
39
  get fileUploadLimitMessage() {
40
40
  return intl.formatMessage({
41
41
  id: "uploader.fileUploadLimit",
42
- defaultMessage: "Maximum number of files reached",
43
- description: "Message displayed when reaching the file upload limit",
42
+ defaultMessage: "Upload unsuccessful because file selection would exceed the maximum number of files",
43
+ description: "Message displayed when trying to upload too many files",
44
44
  });
45
45
  }
46
46
  get fileCountMessage() {
47
- return this.fileLimitReached
48
- ? this.fileUploadLimitMessage
49
- : intl.formatMessage({
50
- id: "uploader.fileCount",
51
- defaultMessage: "{x} of {y} Files",
52
- description: "A count of the number of files currently uploaded",
53
- }, { x: this.fileList.length, y: this.maxFiles });
47
+ return intl.formatMessage({
48
+ id: "uploader.fileCount",
49
+ defaultMessage: "{x} of {y} Files",
50
+ description: "A count of the number of files currently uploaded",
51
+ }, { x: this.fileList.length, y: this.maxFiles });
54
52
  }
55
53
  get maxSizeMessage() {
56
54
  return intl.formatMessage({
@@ -4,3 +4,12 @@ export const intl = {
4
4
  formatMessage: (_) => "[translated text]",
5
5
  };
6
6
  export const adjustTooltipPosition = () => "bottom-right";
7
+ export function debounce(fn, wait) {
8
+ let timeout;
9
+ return function () {
10
+ const context = this;
11
+ const functionCall = () => fn.apply(context, arguments);
12
+ clearTimeout(timeout);
13
+ timeout = setTimeout(functionCall, wait);
14
+ };
15
+ }
@@ -143,11 +143,7 @@ export function shouldShiftLeft(fixedEl, closableEl) {
143
143
  const needsSpaceRight = closableElWidth > spaceRight && spaceLeft > spaceRight;
144
144
  return needsSpaceRight;
145
145
  }
146
- export function adjustTooltipPosition(tPos, el, tooltipEl) {
147
- // position must be reset before measurements are taken in adjustTooltipPosition
148
- // otherwise text-wrapping from previous position makes width measurement inconsistent
149
- tooltipEl.style.top = "";
150
- tooltipEl.style.left = "";
146
+ export function adjustTooltipPlacement(tPos, el, tooltipEl) {
151
147
  const { spaceLeft, spaceRight, spaceBelow, spaceAbove } = getClosableElementMeasurements(el, tooltipEl);
152
148
  const tooltipWidth = tooltipEl.getBoundingClientRect().width;
153
149
  const tooltipHeight = tooltipEl.getBoundingClientRect().height;
@@ -443,26 +439,3 @@ export function toBool(val) {
443
439
  // string "false" needs to be treated as bool False because react wrappers convert bool to string.
444
440
  return val == "false" ? false : !!val;
445
441
  }
446
- /*
447
- * this is going to be needed to solve the extra tabbing on navigator
448
- * and for programmatic focus of tabs
449
- * Here's a draft, not bug proof, see:
450
- * https://stackoverflow.com/a/10730308/3741713
451
-
452
- function getKeyboardFocusableElements(element = document) {
453
- const els = Array.from(element.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), wm-search, wm-timepicker, wm-tab-list, wm-tab-item, wm-button, wm-action-menu'));
454
- return els.filter((el: Element) => !el.hasAttribute("disabled")) as HTMLElement[];
455
- }
456
-
457
- export function getPreviousKeyboardFocusableElement(element: HTMLElement) {
458
- const els = getKeyboardFocusableElements();
459
- const current = els.indexOf(element);
460
- return els[current - 1] as HTMLElement;
461
- }
462
-
463
- export function getNextKeyboardFocusableElement(element: HTMLElement) {
464
- const els = getKeyboardFocusableElements();
465
- const current = els.indexOf(element);
466
- return els[current + 1] as HTMLElement;
467
- }
468
- */
@@ -14,10 +14,7 @@ function wmComponentKeys(ev) {
14
14
  window.dispatchEvent(event);
15
15
  document.querySelector("body").classList.add("wmcl-user-is-tabbing");
16
16
  }
17
- if (ev.key == "ArrowLeft" ||
18
- ev.key == "ArrowUp" ||
19
- ev.key == "ArrowRight" ||
20
- ev.key == "ArrowDown") {
17
+ if (ev.key == "ArrowLeft" || ev.key == "ArrowUp" || ev.key == "ArrowRight" || ev.key == "ArrowDown") {
21
18
  var event = new Event("wmUserIsKeying");
22
19
  window.dispatchEvent(event);
23
20
  document.querySelector("body").classList.add("wmcl-user-is-keying");
@@ -62,6 +59,11 @@ tooltipEl.style.padding = "0.375rem";
62
59
  tooltipEl.style.transitionProperty = "opacity";
63
60
  tooltipEl.style.transitionDelay = "opacity";
64
61
  tooltipEl.style.opacity = "0";
62
+ tooltipEl.style.top = "0";
63
+ tooltipEl.style.left = "0";
64
+ tooltipEl.style.transform = "translateZ(0)";
65
+ tooltipEl.style.willChange = "transform";
66
+ tooltipEl.style.transform = "translate(var(--wmTooltipLeft), var(--wmTooltipTop))";
65
67
  tooltipContainer.appendChild(tooltipEl);
66
68
  const body = document.querySelector("body");
67
69
  body.appendChild(tooltipContainer);
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-7603f98e.js';
2
- import { c as checkForActiveElInShadow, i as intl, b as getPosition, f as findParentWithScrollbar, d as debounce } from './functions-61c7bb1f.js';
2
+ import { c as checkForActiveElInShadow, i as intl, b as getPosition, f as findParentWithScrollbar, d as debounce } from './functions-036af8dc.js';
3
3
 
4
4
  // Components wm-chart and wm-progress-indicator share a significant
5
5
  // portion of their code. It has been extracted here
@@ -751,12 +751,106 @@ const en = {
751
751
  type: 0,
752
752
  value: "More information"
753
753
  }
754
+ ],
755
+ "uploader.acceptedFileTypes": [
756
+ {
757
+ type: 0,
758
+ value: "Accepted file "
759
+ },
760
+ {
761
+ offset: 0,
762
+ options: {
763
+ "=1": {
764
+ value: [
765
+ {
766
+ type: 0,
767
+ value: "type"
768
+ }
769
+ ]
770
+ },
771
+ other: {
772
+ value: [
773
+ {
774
+ type: 0,
775
+ value: "types"
776
+ }
777
+ ]
778
+ }
779
+ },
780
+ pluralType: "cardinal",
781
+ type: 6,
782
+ value: "amount"
783
+ },
784
+ {
785
+ type: 0,
786
+ value: ": "
787
+ },
788
+ {
789
+ type: 1,
790
+ value: "fileTypes"
791
+ }
792
+ ],
793
+ "uploader.actionMenuLabel": [
794
+ {
795
+ type: 0,
796
+ value: "Actions"
797
+ }
798
+ ],
799
+ "uploader.clearErrorLabel": [
800
+ {
801
+ type: 0,
802
+ value: "Clear "
803
+ },
804
+ {
805
+ type: 1,
806
+ value: "fileName"
807
+ },
808
+ {
809
+ type: 0,
810
+ value: " error"
811
+ }
812
+ ],
813
+ "uploader.clearErrorText": [
814
+ {
815
+ type: 0,
816
+ value: "Clear"
817
+ }
818
+ ],
819
+ "uploader.deleteAction": [
820
+ {
821
+ type: 0,
822
+ value: "Delete File"
823
+ }
824
+ ],
825
+ "uploader.downloadAction": [
826
+ {
827
+ type: 0,
828
+ value: "Download File"
829
+ }
754
830
  ],
755
831
  "uploader.duplicateName": [
756
832
  {
757
833
  type: 0,
758
834
  value: "A file with this name already exists."
759
835
  }
836
+ ],
837
+ "uploader.fileCount": [
838
+ {
839
+ type: 1,
840
+ value: "x"
841
+ },
842
+ {
843
+ type: 0,
844
+ value: " of "
845
+ },
846
+ {
847
+ type: 1,
848
+ value: "y"
849
+ },
850
+ {
851
+ type: 0,
852
+ value: " Files"
853
+ }
760
854
  ],
761
855
  "uploader.fileDeleted": [
762
856
  {
@@ -801,7 +895,7 @@ const en = {
801
895
  "uploader.fileUploadLimit": [
802
896
  {
803
897
  type: 0,
804
- value: "You have reached the file upload limit."
898
+ value: "Upload unsuccessful because file selection would exceed the maximum number of files"
805
899
  }
806
900
  ],
807
901
  "uploader.filesAdded": [
@@ -877,6 +971,26 @@ const en = {
877
971
  type: 1,
878
972
  value: "validTypes"
879
973
  }
974
+ ],
975
+ "uploader.maxSize": [
976
+ {
977
+ type: 0,
978
+ value: "Maximum file size "
979
+ },
980
+ {
981
+ type: 1,
982
+ value: "maxSize"
983
+ },
984
+ {
985
+ type: 0,
986
+ value: "MB"
987
+ }
988
+ ],
989
+ "uploader.previewAction": [
990
+ {
991
+ type: 0,
992
+ value: "Preview File"
993
+ }
880
994
  ],
881
995
  "uploader.uploadProgress": [
882
996
  {
@@ -897,6 +1011,12 @@ const en = {
897
1011
  type: 0,
898
1012
  value: "Please wait for current upload to complete before uploading new files."
899
1013
  }
1014
+ ],
1015
+ "uploader.zeroFileSize": [
1016
+ {
1017
+ type: 0,
1018
+ value: "The file must be more than 0 bytes"
1019
+ }
900
1020
  ]
901
1021
  };
902
1022
 
@@ -3437,12 +3557,106 @@ const pig = {
3437
3557
  type: 0,
3438
3558
  value: "Oremay informationyay"
3439
3559
  }
3560
+ ],
3561
+ "uploader.acceptedFileTypes": [
3562
+ {
3563
+ type: 0,
3564
+ value: "Acceptedyay ilefay "
3565
+ },
3566
+ {
3567
+ offset: 0,
3568
+ options: {
3569
+ "=1": {
3570
+ value: [
3571
+ {
3572
+ type: 0,
3573
+ value: "etypay"
3574
+ }
3575
+ ]
3576
+ },
3577
+ other: {
3578
+ value: [
3579
+ {
3580
+ type: 0,
3581
+ value: "estypay"
3582
+ }
3583
+ ]
3584
+ }
3585
+ },
3586
+ pluralType: "cardinal",
3587
+ type: 6,
3588
+ value: "amount"
3589
+ },
3590
+ {
3591
+ type: 0,
3592
+ value: ": "
3593
+ },
3594
+ {
3595
+ type: 1,
3596
+ value: "fileTypes"
3597
+ }
3598
+ ],
3599
+ "uploader.actionMenuLabel": [
3600
+ {
3601
+ type: 0,
3602
+ value: "Actionsyay"
3603
+ }
3604
+ ],
3605
+ "uploader.clearErrorLabel": [
3606
+ {
3607
+ type: 0,
3608
+ value: "Earclay "
3609
+ },
3610
+ {
3611
+ type: 1,
3612
+ value: "fileName"
3613
+ },
3614
+ {
3615
+ type: 0,
3616
+ value: " erroryay"
3617
+ }
3618
+ ],
3619
+ "uploader.clearErrorText": [
3620
+ {
3621
+ type: 0,
3622
+ value: "Earclay"
3623
+ }
3624
+ ],
3625
+ "uploader.deleteAction": [
3626
+ {
3627
+ type: 0,
3628
+ value: "Eleteday Ilefay"
3629
+ }
3630
+ ],
3631
+ "uploader.downloadAction": [
3632
+ {
3633
+ type: 0,
3634
+ value: "Ownloadday Ilefay"
3635
+ }
3440
3636
  ],
3441
3637
  "uploader.duplicateName": [
3442
3638
  {
3443
3639
  type: 0,
3444
3640
  value: "Ayay ilefay ithway isthay amenay alreadyyay existsyay."
3445
3641
  }
3642
+ ],
3643
+ "uploader.fileCount": [
3644
+ {
3645
+ type: 1,
3646
+ value: "x"
3647
+ },
3648
+ {
3649
+ type: 0,
3650
+ value: " ofyay "
3651
+ },
3652
+ {
3653
+ type: 1,
3654
+ value: "y"
3655
+ },
3656
+ {
3657
+ type: 0,
3658
+ value: " Ilesfay"
3659
+ }
3446
3660
  ],
3447
3661
  "uploader.fileDeleted": [
3448
3662
  {
@@ -3487,7 +3701,7 @@ const pig = {
3487
3701
  "uploader.fileUploadLimit": [
3488
3702
  {
3489
3703
  type: 0,
3490
- value: "Ouyay avehay eachedray ethay ilefay uploadyay imitlay."
3704
+ value: "Uploadyay unsuccessfulyay ecausebay ilefay electionsay ouldway exceedyay ethay aximummay umbernay ofyay ilesfay"
3491
3705
  }
3492
3706
  ],
3493
3707
  "uploader.filesAdded": [
@@ -3563,6 +3777,26 @@ const pig = {
3563
3777
  type: 1,
3564
3778
  value: "validTypes"
3565
3779
  }
3780
+ ],
3781
+ "uploader.maxSize": [
3782
+ {
3783
+ type: 0,
3784
+ value: "Aximummay ilefay izesay "
3785
+ },
3786
+ {
3787
+ type: 1,
3788
+ value: "maxSize"
3789
+ },
3790
+ {
3791
+ type: 0,
3792
+ value: "MBay"
3793
+ }
3794
+ ],
3795
+ "uploader.previewAction": [
3796
+ {
3797
+ type: 0,
3798
+ value: "Eviewpray Ilefay"
3799
+ }
3566
3800
  ],
3567
3801
  "uploader.uploadProgress": [
3568
3802
  {
@@ -3583,6 +3817,12 @@ const pig = {
3583
3817
  type: 0,
3584
3818
  value: "Easeplay aitway orfay urrentcay uploadyay otay ompletecay eforebay uploadingyay ewnay ilesfay."
3585
3819
  }
3820
+ ],
3821
+ "uploader.zeroFileSize": [
3822
+ {
3823
+ type: 0,
3824
+ value: "Ethay ilefay ustmay ebay oremay anthay 0 esbytay"
3825
+ }
3586
3826
  ]
3587
3827
  };
3588
3828
 
@@ -6846,11 +7086,7 @@ function shouldShiftLeft(fixedEl, closableEl) {
6846
7086
  const needsSpaceRight = closableElWidth > spaceRight && spaceLeft > spaceRight;
6847
7087
  return needsSpaceRight;
6848
7088
  }
6849
- function adjustTooltipPosition(tPos, el, tooltipEl) {
6850
- // position must be reset before measurements are taken in adjustTooltipPosition
6851
- // otherwise text-wrapping from previous position makes width measurement inconsistent
6852
- tooltipEl.style.top = "";
6853
- tooltipEl.style.left = "";
7089
+ function adjustTooltipPlacement(tPos, el, tooltipEl) {
6854
7090
  const { spaceLeft, spaceRight, spaceBelow, spaceAbove } = getClosableElementMeasurements(el, tooltipEl);
6855
7091
  const tooltipWidth = tooltipEl.getBoundingClientRect().width;
6856
7092
  const tooltipHeight = tooltipEl.getBoundingClientRect().height;
@@ -7145,29 +7381,6 @@ function isRelatedTarget(ev, id) {
7145
7381
  function toBool(val) {
7146
7382
  // string "false" needs to be treated as bool False because react wrappers convert bool to string.
7147
7383
  return val == "false" ? false : !!val;
7148
- }
7149
- /*
7150
- * this is going to be needed to solve the extra tabbing on navigator
7151
- * and for programmatic focus of tabs
7152
- * Here's a draft, not bug proof, see:
7153
- * https://stackoverflow.com/a/10730308/3741713
7154
-
7155
- function getKeyboardFocusableElements(element = document) {
7156
- const els = Array.from(element.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), wm-search, wm-timepicker, wm-tab-list, wm-tab-item, wm-button, wm-action-menu'));
7157
- return els.filter((el: Element) => !el.hasAttribute("disabled")) as HTMLElement[];
7158
- }
7159
-
7160
- export function getPreviousKeyboardFocusableElement(element: HTMLElement) {
7161
- const els = getKeyboardFocusableElements();
7162
- const current = els.indexOf(element);
7163
- return els[current - 1] as HTMLElement;
7164
- }
7165
-
7166
- export function getNextKeyboardFocusableElement(element: HTMLElement) {
7167
- const els = getKeyboardFocusableElements();
7168
- const current = els.indexOf(element);
7169
- return els[current + 1] as HTMLElement;
7170
- }
7171
- */
7384
+ }
7172
7385
 
7173
- export { adjustTooltipPosition as a, getPosition as b, checkForActiveElInShadow as c, debounce as d, isRelatedTarget as e, findParentWithScrollbar as f, generateId as g, checkForFocusableElInShadow as h, intl as i, getFirstFocusableDescendant as j, getNewIndexToFocus as k, shouldOpenUp as l, shouldOpenDown as m, shouldShiftRight as n, shouldShiftLeft as o, hasValidType as p, getTextDir as q, throttle as r, snakeCaseToCamelCase as s, toBool as t, hasRoomRight as u };
7386
+ export { adjustTooltipPlacement as a, getPosition as b, checkForActiveElInShadow as c, debounce as d, isRelatedTarget as e, findParentWithScrollbar as f, generateId as g, checkForFocusableElInShadow as h, intl as i, getFirstFocusableDescendant as j, getNewIndexToFocus as k, shouldOpenUp as l, shouldOpenDown as m, shouldShiftRight as n, shouldShiftLeft as o, hasValidType as p, getTextDir as q, throttle as r, snakeCaseToCamelCase as s, toBool as t, hasRoomRight as u };
@@ -1,4 +1,4 @@
1
- const version = "3.12.0";
1
+ const version = "3.13.0-9";
2
2
 
3
3
  // PRINT RIPPLE VERSION IN CONSOLE
4
4
  // test envs return 0 for plugin.length
@@ -14,10 +14,7 @@ function wmComponentKeys(ev) {
14
14
  window.dispatchEvent(event);
15
15
  document.querySelector("body").classList.add("wmcl-user-is-tabbing");
16
16
  }
17
- if (ev.key == "ArrowLeft" ||
18
- ev.key == "ArrowUp" ||
19
- ev.key == "ArrowRight" ||
20
- ev.key == "ArrowDown") {
17
+ if (ev.key == "ArrowLeft" || ev.key == "ArrowUp" || ev.key == "ArrowRight" || ev.key == "ArrowDown") {
21
18
  var event = new Event("wmUserIsKeying");
22
19
  window.dispatchEvent(event);
23
20
  document.querySelector("body").classList.add("wmcl-user-is-keying");
@@ -57,6 +54,11 @@ tooltipEl.style.padding = "0.375rem";
57
54
  tooltipEl.style.transitionProperty = "opacity";
58
55
  tooltipEl.style.transitionDelay = "opacity";
59
56
  tooltipEl.style.opacity = "0";
57
+ tooltipEl.style.top = "0";
58
+ tooltipEl.style.left = "0";
59
+ tooltipEl.style.transform = "translateZ(0)";
60
+ tooltipEl.style.willChange = "transform";
61
+ tooltipEl.style.transform = "translate(var(--wmTooltipLeft), var(--wmTooltipTop))";
60
62
  tooltipContainer.appendChild(tooltipEl);
61
63
  const body = document.querySelector("body");
62
64
  body.appendChild(tooltipContainer);