@saasquatch/mint-components 1.5.3-4 → 1.5.3-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.
Files changed (236) hide show
  1. package/dist/cjs/sqm-big-stat_35.cjs.entry.js +26 -20
  2. package/dist/cjs/sqm-stencilbook.cjs.entry.js +5 -5
  3. package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +2 -2
  4. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +4 -1
  5. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +5 -1
  6. package/dist/collection/components/sqm-input-field/sqm-input-field.js +13 -6
  7. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +3 -0
  8. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +1 -1
  9. package/dist/collection/components/sqm-share-code/sqm-share-code.js +2 -3
  10. package/dist/collection/components/sqm-share-link/sqm-share-link.js +2 -3
  11. package/dist/collection/utils/RequiredPropsError.js +19 -11
  12. package/dist/esm/sqm-big-stat_35.entry.js +26 -20
  13. package/dist/esm/sqm-stencilbook.entry.js +5 -5
  14. package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
  15. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  16. package/dist/mint-components/mint-components.esm.js +1 -1
  17. package/dist/mint-components/{p-6e3f8914.system.entry.js → p-1cb53b63.system.entry.js} +1 -1
  18. package/dist/mint-components/p-436da6b8.system.js +1 -1
  19. package/dist/mint-components/{p-58704085.entry.js → p-5c1c2d86.entry.js} +2 -2
  20. package/dist/mint-components/{p-0284a378.entry.js → p-dfad44ee.entry.js} +8 -8
  21. package/dist/mint-components/p-ebfefab4.system.entry.js +1 -0
  22. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -1
  23. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +4 -1
  24. package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +10 -4
  25. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +4 -1
  26. package/dist/types/components.d.ts +26 -14
  27. package/dist/types/utils/RequiredPropsError.d.ts +4 -1
  28. package/docs/docs.docx +0 -0
  29. package/docs/raisins.json +1 -0
  30. package/grapesjs/grapesjs.js +1 -1
  31. package/package.json +8 -3
  32. package/CHANGELOG.md +0 -414
  33. package/dist/mint-components/p-2e4453e2.system.entry.js +0 -1
  34. package/shoelace/assets/icons/123.svg +0 -3
  35. package/shoelace/assets/icons/activity.svg +0 -3
  36. package/shoelace/assets/icons/apple.svg +0 -4
  37. package/shoelace/assets/icons/bandaid-fill.svg +0 -3
  38. package/shoelace/assets/icons/bandaid.svg +0 -4
  39. package/shoelace/assets/icons/bank.svg +0 -3
  40. package/shoelace/assets/icons/bank2.svg +0 -3
  41. package/shoelace/assets/icons/behance.svg +0 -3
  42. package/shoelace/assets/icons/bell-slash-fill.svg +0 -3
  43. package/shoelace/assets/icons/bell-slash.svg +0 -3
  44. package/shoelace/assets/icons/bluetooth.svg +0 -3
  45. package/shoelace/assets/icons/body-text.svg +0 -3
  46. package/shoelace/assets/icons/boombox-fill.svg +0 -4
  47. package/shoelace/assets/icons/boombox.svg +0 -6
  48. package/shoelace/assets/icons/boxes.svg +0 -3
  49. package/shoelace/assets/icons/cash-coin.svg +0 -6
  50. package/shoelace/assets/icons/check-lg.svg +0 -3
  51. package/shoelace/assets/icons/cloud-haze2.svg +0 -3
  52. package/shoelace/assets/icons/coin.svg +0 -5
  53. package/shoelace/assets/icons/currency-bitcoin.svg +0 -3
  54. package/shoelace/assets/icons/currency-dollar.svg +0 -3
  55. package/shoelace/assets/icons/currency-euro.svg +0 -3
  56. package/shoelace/assets/icons/currency-exchange.svg +0 -3
  57. package/shoelace/assets/icons/currency-pound.svg +0 -3
  58. package/shoelace/assets/icons/currency-yen.svg +0 -3
  59. package/shoelace/assets/icons/dash-lg.svg +0 -3
  60. package/shoelace/assets/icons/device-hdd-fill.svg +0 -4
  61. package/shoelace/assets/icons/device-hdd.svg +0 -5
  62. package/shoelace/assets/icons/device-ssd-fill.svg +0 -4
  63. package/shoelace/assets/icons/device-ssd.svg +0 -4
  64. package/shoelace/assets/icons/displayport-fill.svg +0 -3
  65. package/shoelace/assets/icons/displayport.svg +0 -4
  66. package/shoelace/assets/icons/dpad-fill.svg +0 -3
  67. package/shoelace/assets/icons/dpad.svg +0 -4
  68. package/shoelace/assets/icons/dribbble.svg +0 -3
  69. package/shoelace/assets/icons/ear-fill.svg +0 -3
  70. package/shoelace/assets/icons/ear.svg +0 -3
  71. package/shoelace/assets/icons/easel2-fill.svg +0 -4
  72. package/shoelace/assets/icons/easel2.svg +0 -3
  73. package/shoelace/assets/icons/easel3-fill.svg +0 -3
  74. package/shoelace/assets/icons/easel3.svg +0 -3
  75. package/shoelace/assets/icons/envelope-check-fill.svg +0 -4
  76. package/shoelace/assets/icons/envelope-check.svg +0 -4
  77. package/shoelace/assets/icons/envelope-dash-fill.svg +0 -4
  78. package/shoelace/assets/icons/envelope-dash.svg +0 -4
  79. package/shoelace/assets/icons/envelope-exclamation-fill.svg +0 -4
  80. package/shoelace/assets/icons/envelope-exclamation.svg +0 -4
  81. package/shoelace/assets/icons/envelope-plus-fill.svg +0 -4
  82. package/shoelace/assets/icons/envelope-plus.svg +0 -4
  83. package/shoelace/assets/icons/envelope-slash-fill.svg +0 -4
  84. package/shoelace/assets/icons/envelope-slash.svg +0 -4
  85. package/shoelace/assets/icons/envelope-x-fill.svg +0 -4
  86. package/shoelace/assets/icons/envelope-x.svg +0 -4
  87. package/shoelace/assets/icons/ethernet.svg +0 -4
  88. package/shoelace/assets/icons/exclamation-lg.svg +0 -3
  89. package/shoelace/assets/icons/explicit-fill.svg +0 -3
  90. package/shoelace/assets/icons/explicit.svg +0 -4
  91. package/shoelace/assets/icons/fan.svg +0 -4
  92. package/shoelace/assets/icons/file-earmark-pdf-fill.svg +0 -4
  93. package/shoelace/assets/icons/file-earmark-pdf.svg +0 -4
  94. package/shoelace/assets/icons/file-pdf-fill.svg +0 -4
  95. package/shoelace/assets/icons/file-pdf.svg +0 -4
  96. package/shoelace/assets/icons/fingerprint.svg +0 -7
  97. package/shoelace/assets/icons/gender-ambiguous.svg +0 -3
  98. package/shoelace/assets/icons/gender-female.svg +0 -3
  99. package/shoelace/assets/icons/gender-male.svg +0 -3
  100. package/shoelace/assets/icons/gender-trans.svg +0 -3
  101. package/shoelace/assets/icons/git.svg +0 -3
  102. package/shoelace/assets/icons/gpu-card.svg +0 -5
  103. package/shoelace/assets/icons/graph-down-arrow.svg +0 -3
  104. package/shoelace/assets/icons/graph-up-arrow.svg +0 -3
  105. package/shoelace/assets/icons/hdmi-fill.svg +0 -3
  106. package/shoelace/assets/icons/hdmi.svg +0 -4
  107. package/shoelace/assets/icons/headset-vr.svg +0 -4
  108. package/shoelace/assets/icons/hypnotize.svg +0 -4
  109. package/shoelace/assets/icons/infinity.svg +0 -3
  110. package/shoelace/assets/icons/info-lg.svg +0 -3
  111. package/shoelace/assets/icons/line.svg +0 -3
  112. package/shoelace/assets/icons/list-columns-reverse.svg +0 -3
  113. package/shoelace/assets/icons/list-columns.svg +0 -3
  114. package/shoelace/assets/icons/magic.svg +0 -3
  115. package/shoelace/assets/icons/mastodon.svg +0 -3
  116. package/shoelace/assets/icons/medium.svg +0 -3
  117. package/shoelace/assets/icons/memory.svg +0 -3
  118. package/shoelace/assets/icons/messenger.svg +0 -3
  119. package/shoelace/assets/icons/meta.svg +0 -3
  120. package/shoelace/assets/icons/microsoft.svg +0 -3
  121. package/shoelace/assets/icons/modem-fill.svg +0 -3
  122. package/shoelace/assets/icons/modem.svg +0 -4
  123. package/shoelace/assets/icons/mortarboard-fill.svg +0 -4
  124. package/shoelace/assets/icons/mortarboard.svg +0 -4
  125. package/shoelace/assets/icons/motherboard-fill.svg +0 -4
  126. package/shoelace/assets/icons/motherboard.svg +0 -4
  127. package/shoelace/assets/icons/nintendo-switch.svg +0 -4
  128. package/shoelace/assets/icons/optical-audio-fill.svg +0 -4
  129. package/shoelace/assets/icons/optical-audio.svg +0 -5
  130. package/shoelace/assets/icons/paypal.svg +0 -3
  131. package/shoelace/assets/icons/pc-display-horizontal.svg +0 -3
  132. package/shoelace/assets/icons/pc-display.svg +0 -3
  133. package/shoelace/assets/icons/pc-horizontal.svg +0 -3
  134. package/shoelace/assets/icons/pc.svg +0 -3
  135. package/shoelace/assets/icons/pci-card.svg +0 -4
  136. package/shoelace/assets/icons/person-rolodex.svg +0 -4
  137. package/shoelace/assets/icons/person-video.svg +0 -4
  138. package/shoelace/assets/icons/person-video2.svg +0 -4
  139. package/shoelace/assets/icons/person-video3.svg +0 -4
  140. package/shoelace/assets/icons/person-workspace.svg +0 -4
  141. package/shoelace/assets/icons/piggy-bank-fill.svg +0 -3
  142. package/shoelace/assets/icons/piggy-bank.svg +0 -4
  143. package/shoelace/assets/icons/pin-map-fill.svg +0 -4
  144. package/shoelace/assets/icons/pin-map.svg +0 -4
  145. package/shoelace/assets/icons/pinterest.svg +0 -3
  146. package/shoelace/assets/icons/playstation.svg +0 -3
  147. package/shoelace/assets/icons/plus-lg.svg +0 -3
  148. package/shoelace/assets/icons/plus-slash-minus.svg +0 -3
  149. package/shoelace/assets/icons/projector-fill.svg +0 -3
  150. package/shoelace/assets/icons/projector.svg +0 -4
  151. package/shoelace/assets/icons/qr-code-scan.svg +0 -7
  152. package/shoelace/assets/icons/qr-code.svg +0 -7
  153. package/shoelace/assets/icons/question-lg.svg +0 -3
  154. package/shoelace/assets/icons/quora.svg +0 -3
  155. package/shoelace/assets/icons/quote.svg +0 -3
  156. package/shoelace/assets/icons/radioactive.svg +0 -4
  157. package/shoelace/assets/icons/recycle.svg +0 -3
  158. package/shoelace/assets/icons/reddit.svg +0 -4
  159. package/shoelace/assets/icons/robot.svg +0 -4
  160. package/shoelace/assets/icons/router-fill.svg +0 -6
  161. package/shoelace/assets/icons/router.svg +0 -6
  162. package/shoelace/assets/icons/safe-fill.svg +0 -4
  163. package/shoelace/assets/icons/safe.svg +0 -4
  164. package/shoelace/assets/icons/safe2-fill.svg +0 -4
  165. package/shoelace/assets/icons/safe2.svg +0 -4
  166. package/shoelace/assets/icons/sd-card-fill.svg +0 -3
  167. package/shoelace/assets/icons/sd-card.svg +0 -4
  168. package/shoelace/assets/icons/send-check-fill.svg +0 -4
  169. package/shoelace/assets/icons/send-check.svg +0 -4
  170. package/shoelace/assets/icons/send-dash-fill.svg +0 -4
  171. package/shoelace/assets/icons/send-dash.svg +0 -4
  172. package/shoelace/assets/icons/send-exclamation-fill.svg +0 -4
  173. package/shoelace/assets/icons/send-exclamation.svg +0 -4
  174. package/shoelace/assets/icons/send-fill.svg +0 -3
  175. package/shoelace/assets/icons/send-plus-fill.svg +0 -4
  176. package/shoelace/assets/icons/send-plus.svg +0 -4
  177. package/shoelace/assets/icons/send-slash-fill.svg +0 -4
  178. package/shoelace/assets/icons/send-slash.svg +0 -4
  179. package/shoelace/assets/icons/send-x-fill.svg +0 -4
  180. package/shoelace/assets/icons/send-x.svg +0 -4
  181. package/shoelace/assets/icons/send.svg +0 -3
  182. package/shoelace/assets/icons/signal.svg +0 -3
  183. package/shoelace/assets/icons/skype.svg +0 -3
  184. package/shoelace/assets/icons/slash-lg.svg +0 -3
  185. package/shoelace/assets/icons/snapchat.svg +0 -3
  186. package/shoelace/assets/icons/spotify.svg +0 -3
  187. package/shoelace/assets/icons/stack-overflow.svg +0 -4
  188. package/shoelace/assets/icons/steam.svg +0 -4
  189. package/shoelace/assets/icons/strava.svg +0 -3
  190. package/shoelace/assets/icons/terminal-dash.svg +0 -4
  191. package/shoelace/assets/icons/terminal-plus.svg +0 -4
  192. package/shoelace/assets/icons/terminal-split.svg +0 -4
  193. package/shoelace/assets/icons/terminal-x.svg +0 -4
  194. package/shoelace/assets/icons/thunderbolt-fill.svg +0 -3
  195. package/shoelace/assets/icons/thunderbolt.svg +0 -4
  196. package/shoelace/assets/icons/ticket-detailed-fill.svg +0 -3
  197. package/shoelace/assets/icons/ticket-detailed.svg +0 -4
  198. package/shoelace/assets/icons/ticket-fill.svg +0 -3
  199. package/shoelace/assets/icons/ticket-perforated-fill.svg +0 -3
  200. package/shoelace/assets/icons/ticket-perforated.svg +0 -4
  201. package/shoelace/assets/icons/ticket.svg +0 -3
  202. package/shoelace/assets/icons/tiktok.svg +0 -3
  203. package/shoelace/assets/icons/translate.svg +0 -4
  204. package/shoelace/assets/icons/usb-c-fill.svg +0 -3
  205. package/shoelace/assets/icons/usb-c.svg +0 -4
  206. package/shoelace/assets/icons/usb-drive-fill.svg +0 -3
  207. package/shoelace/assets/icons/usb-drive.svg +0 -3
  208. package/shoelace/assets/icons/usb-fill.svg +0 -3
  209. package/shoelace/assets/icons/usb-micro-fill.svg +0 -3
  210. package/shoelace/assets/icons/usb-micro.svg +0 -4
  211. package/shoelace/assets/icons/usb-mini-fill.svg +0 -3
  212. package/shoelace/assets/icons/usb-mini.svg +0 -4
  213. package/shoelace/assets/icons/usb-plug-fill.svg +0 -3
  214. package/shoelace/assets/icons/usb-plug.svg +0 -3
  215. package/shoelace/assets/icons/usb-symbol.svg +0 -3
  216. package/shoelace/assets/icons/usb.svg +0 -4
  217. package/shoelace/assets/icons/vimeo.svg +0 -3
  218. package/shoelace/assets/icons/webcam-fill.svg +0 -4
  219. package/shoelace/assets/icons/webcam.svg +0 -4
  220. package/shoelace/assets/icons/window-dash.svg +0 -5
  221. package/shoelace/assets/icons/window-desktop.svg +0 -4
  222. package/shoelace/assets/icons/window-fullscreen.svg +0 -4
  223. package/shoelace/assets/icons/window-plus.svg +0 -5
  224. package/shoelace/assets/icons/window-split.svg +0 -4
  225. package/shoelace/assets/icons/window-stack.svg +0 -4
  226. package/shoelace/assets/icons/window-x.svg +0 -5
  227. package/shoelace/assets/icons/windows.svg +0 -3
  228. package/shoelace/assets/icons/wordpress.svg +0 -5
  229. package/shoelace/assets/icons/x-lg.svg +0 -4
  230. package/shoelace/assets/icons/xbox.svg +0 -3
  231. package/shoelace/assets/icons/yin-yang.svg +0 -4
  232. package/shoelace/themes/themes/dark.styles.d.ts +0 -2
  233. package/shoelace/themes/themes/dark.styles.js +0 -531
  234. package/shoelace/themes/themes/light.css +0 -439
  235. package/shoelace/themes/themes/light.styles.d.ts +0 -2
  236. package/shoelace/themes/themes/light.styles.js +0 -531
@@ -138,34 +138,41 @@ const style = {
138
138
  Heading: {
139
139
  display: "inline-block",
140
140
  },
141
- Alert: {
142
- margin: "28px",
141
+ Children: {
142
+ display: "none",
143
143
  },
144
144
  };
145
145
  const sheet = JSS.createStyleSheet(style);
146
146
  const styleString = sheet.toString();
147
- function RequiredPropsError({ missingProps }) {
147
+ function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
148
148
  if (!missingProps)
149
149
  return false;
150
150
  const host = index_module.P();
151
151
  const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
152
- return (index.h("sl-alert", { type: "danger", open: true, class: sheet.classes.Alert },
152
+ return (index.h("sl-alert", { type: "danger", open: true },
153
153
  index.h("style", { type: "text/css" }, styleString),
154
154
  index.h("div", { slot: "icon", class: sheet.classes.IconStyle },
155
155
  index.h("sl-icon", { name: "exclamation-octagon" })),
156
156
  index.h("div", { class: sheet.classes.DivStyle },
157
- index.h("h2", { class: sheet.classes.Heading }, "There was a problem loading this section"),
158
- index.h("p", null, "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.")),
157
+ index.h("h2", { class: sheet.classes.Heading }, global.intl.formatMessage({
158
+ id: `error-heading`,
159
+ defaultMessage: heading,
160
+ })),
161
+ index.h("p", null, global.intl.formatMessage({
162
+ id: `error-subheading`,
163
+ defaultMessage: subheading,
164
+ }))),
159
165
  index.h("details", { class: sheet.classes.Details },
160
166
  index.h("summary", { onClick: () => setDetailsOpen(!detailsOpen) },
161
167
  detailsOpen ? "Less" : "More",
162
168
  " details"),
163
- index.h("p", null,
164
- "Error occured while loading ",
165
- `<${host.tagName.toLowerCase()}>`,
166
- ". Values for the following attributes are missing:"),
169
+ index.h("p", null, global.intl.formatMessage({
170
+ id: `error-description`,
171
+ defaultMessage: description,
172
+ }, { tagName: host.tagName.toLowerCase() })),
167
173
  index.h("ul", null, missingProps.map((prop) => (index.h("li", null,
168
- index.h("strong", null, prop.attribute))))))));
174
+ index.h("strong", null, prop.attribute)))))),
175
+ index.h("div", { class: sheet.classes.Children }, children)));
169
176
  }
170
177
 
171
178
  const FORM_VALIDATION_CONTEXT = "sq:validation-state";
@@ -225,7 +232,7 @@ const CheckboxField = class {
225
232
  },
226
233
  ]);
227
234
  if (!index_module.jn() && missingProps) {
228
- return index.h(RequiredPropsError, { missingProps: missingProps });
235
+ return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
229
236
  }
230
237
  const content = {
231
238
  ...utils.getProps(this),
@@ -351,7 +358,7 @@ const DropdownField = class {
351
358
  },
352
359
  ]);
353
360
  if (!index_module.jn() && missingProps) {
354
- return index.h(RequiredPropsError, { missingProps: missingProps });
361
+ return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this drop down field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }, index.h("slot", null)));
355
362
  }
356
363
  const content = {
357
364
  ...utils.getProps(this),
@@ -821,10 +828,11 @@ const InputField = class {
821
828
  * @uiName Input Type
822
829
  * @uiType string
823
830
  * @uiEnum ["text", "date", "tel"]
831
+ * @uiEnumNames ["Text", "Date", "Phone Number"]
824
832
  */
825
833
  this.fieldType = "text";
826
834
  /**
827
- * @uiName Empty error message
835
+ * @uiName Required Error Message
828
836
  */
829
837
  this.errorMessage = "Cannot be empty";
830
838
  /**
@@ -845,7 +853,7 @@ const InputField = class {
845
853
  },
846
854
  ]);
847
855
  if (!index_module.jn() && missingProps) {
848
- return index.h(RequiredPropsError, { missingProps: missingProps });
856
+ return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this input field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
849
857
  }
850
858
  const { states } = index_module.jn() ? useInputFieldDemo(this) : useInputField();
851
859
  return index.h(ShadowViewAddon.InputFieldView, { states: states, content: content });
@@ -5840,7 +5848,7 @@ const SqmReferralIframe = class {
5840
5848
  },
5841
5849
  ]);
5842
5850
  if (missingProps) {
5843
- return index.h(RequiredPropsError, { missingProps: missingProps });
5851
+ return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this page", subheading: "A technical problem prevented this iframe from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
5844
5852
  }
5845
5853
  const { states, data } = index_module.jn()
5846
5854
  ? useReferralIframeDemo(utils.getProps(this))
@@ -7125,7 +7133,6 @@ function useShareCode(props) {
7125
7133
  return { ...props, onClick, open, shareString };
7126
7134
  }
7127
7135
 
7128
- const DEFAULT_TOOLTIP_LIFESPAN = 1000;
7129
7136
  const ShareCode = class {
7130
7137
  constructor(hostRef) {
7131
7138
  index.registerInstance(this, hostRef);
@@ -7140,7 +7147,7 @@ const ShareCode = class {
7140
7147
  *
7141
7148
  * @uiName Tooltip lifespan
7142
7149
  */
7143
- this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
7150
+ this.tooltiplifespan = 1000;
7144
7151
  stencilHooks_module.h$1(this);
7145
7152
  }
7146
7153
  disconnectedCallback() { }
@@ -7169,7 +7176,6 @@ function useDemoShareCode(props) {
7169
7176
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
7170
7177
  }
7171
7178
 
7172
- const DEFAULT_TOOLTIP_LIFESPAN$1 = 1000;
7173
7179
  const ShareLink = class {
7174
7180
  constructor(hostRef) {
7175
7181
  index.registerInstance(this, hostRef);
@@ -7184,7 +7190,7 @@ const ShareLink = class {
7184
7190
  *
7185
7191
  * @uiName Tooltip lifespan
7186
7192
  */
7187
- this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN$1;
7193
+ this.tooltiplifespan = 1000;
7188
7194
  stencilHooks_module.h$1(this);
7189
7195
  }
7190
7196
  disconnectedCallback() { }
@@ -9381,7 +9381,7 @@ const ReferralIframeReadme = "# sqm-referral-iframe\r\n\r\n\r\n\r\n<!-- Auto Gen
9381
9381
 
9382
9382
  const ForgotPasswordReadme = "# sqm-portal-forgot-password\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| -------------- | --------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\r\n| `loginPath` | `login-path` | | `string` | `\"/login\"` |\r\n| `redirectPath` | `redirect-path` | The page that users are redirected to from the password reset email. | `string` | `\"/resetPassword\"` |\r\n| `submitLabel` | `submit-label` | | `string` | `\"Request Password Reset\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-forgot-password --> sqm-form-message\r\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
9383
9383
 
9384
- const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| -------------------------- | ---------------------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\r\n| `enablePasswordValidation` | `enable-password-validation` | | `boolean` | `true` |\r\n| `hideInputs` | `hide-inputs` | | `boolean` | `false` |\r\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\r\n| `loginPath` | `login-path` | | `string` | `\"/login\"` |\r\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\r\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\r\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\r\n| `redirectPath` | `redirect-path` | The page that users are redirected to from the verification email. | `string` | `\"/verifyEmail\"` |\r\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-register --> sqm-form-message\r\n sqm-portal-register --> sqm-password-field\r\n sqm-stencilbook --> sqm-portal-register\r\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
9384
+ const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------------------- | ---------------------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `enablePasswordValidation` | `enable-password-validation` | | `boolean` | `true` |\n| `hideInputs` | `hide-inputs` | | `boolean` | `false` |\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\n| `loginPath` | `login-path` | | `string` | `\"/login\"` |\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `redirectPath` | `redirect-path` | The page that users are redirected to from the verification email. | `string` | `\"/verifyEmail\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-register --> sqm-form-message\n sqm-portal-register --> sqm-password-field\n sqm-stencilbook --> sqm-portal-register\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
9385
9385
 
9386
9386
  const EditProfileReadme = "# sqm-portal-profile\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------ | --------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |\r\n| `countrytext` | `countrytext` | | `string` | `\"Country\"` |\r\n| `demoData` | -- | | `{ states?: { success: boolean; loading: boolean; submitDisabled: boolean; showCountry: boolean; formState: { country: string; firstName: string; lastName: string; errors: any; error: string; }; user: { id: string; accountId: string; firstName: string; lastName: string; email: string; countryCode: string; }; text: { firstnametext: string; lastnametext: string; emailtext: string; countrytext: string; editProfileHeader: string; editProfileSubHeader: string; submitChangeButtonText: string; }; }; }` | `undefined` |\r\n| `editProfileHeader` | `edit-profile-header` | | `string` | `\"Edit your profile\"` |\r\n| `editProfileSubHeader` | `edit-profile-sub-header` | | `string` | `\"Personal Information\"` |\r\n| `emailtext` | `emailtext` | | `string` | `\"Email\"` |\r\n| `firstnametext` | `firstnametext` | | `string` | `\"First Name\"` |\r\n| `lastnametext` | `lastnametext` | | `string` | `\"Last Name\"` |\r\n| `showCountry` | `show-country` | | `boolean` | `true` |\r\n| `submitChangeButtonText` | `submit-change-button-text` | | `string` | `\"Submit Changes\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-profile --> sqm-form-message\r\n style sqm-portal-profile fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
9387
9387
 
@@ -9893,7 +9893,7 @@ const NameFields$1 = /*#__PURE__*/Object.freeze({
9893
9893
  NameFieldsWithErrors: NameFieldsWithErrors
9894
9894
  });
9895
9895
 
9896
- const scenario$i = "@owner:sam\r\n@author:sam\r\nFeature: Checkbox Field\r\n\r\n Field to be used to be used as a checkbox during registration. A motivating use case is to use this component as a terms\r\n and conditions field, to sastisfy legal requirements that a customer might have for their end users.\r\n\r\n Background: A user is on the portal registration page\r\n Given a user is viewing the \"/register\"\r\n And \"/register\" contains the registration form\r\n And the registration form has the following fields\r\n | fields |\r\n | first name |\r\n | last name |\r\n | email |\r\n | password |\r\n | checkbox |\r\n\r\n @motivating\r\n Scenario: Checkbox is required by default\r\n Given the user is filling out the registration form\r\n And the name fields have valid input\r\n And the email field has valid input\r\n And the password field has valid input\r\n And the checkbox is not checked\r\n When they try to register\r\n Then the checkbox is highlighted in red\r\n And the error message says \"Must be checked\"\r\n\r\n @landmine\r\n Scenario: Checkboxes with the same \"checkbox-name\" are not submitted in the form data\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n error-message=\"Cannot be a robot\"\r\n checkbox-name=\"isHuman\"\r\n ></sqm-checkbox-field>\r\n <div slot=\"terms\">\r\n <sqm-checkbox-field checkbox-name=\"isHuman\"></sqm-checkbox-field>\r\n </div>\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkboxes are checked\r\n When the user tries to register\r\n Then the form is submitted\r\n But no field with key \"isHuman\" is included in the form data\r\n\r\n @motivating\r\n Scenario: Multiple checkboxes need different \"checkbox-name\" values\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n error-message=\"Cannot be a robot\"\r\n checkbox-name=\"isHuman\"\r\n ></sqm-checkbox-field>\r\n <div slot=\"terms\">\r\n <sqm-checkbox-field checkbox-name=\"myCheckbox\"></sqm-checkbox-field>\r\n </div>\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkboxes are not checked\r\n When the user tries to register\r\n Then both checkboxes are bordered in red\r\n And the checkboxes have different error messages\r\n When the user checks the boxes\r\n And tries to register\r\n Then the form is submitted\r\n And the following fields are included in the form data\r\n | feilds |\r\n | isHuman |\r\n | myCheckbox |\r\n\r\n @motivating\r\n Scenario: Checkboxes can be optional\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n checkbox-optional=\"true\"\r\n checkbox-name=\"isHuman\"\r\n />\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkbox is not checked\r\n When the user tries to register\r\n Then there is no error for the checkbox\r\n\r\n @minutae\r\n Scenario Outline: Validation error message is configurable\r\n The error message string is evaluated as an ICU string, but currently is provided no context\r\n Given the checkbox is required\r\n And the checkbox has prop \"error-message\" with <propValue>\r\n When the user tries to register\r\n But they havent checked the checkbox\r\n Then they see <errorMessage> below\r\n Examples:\r\n | propValue | errorMessage |\r\n | | Must be checked |\r\n | My Custom Message | My Custom Message |\r\n\r\n @motivating\r\n Scenario Outline: Checkbox text and link are configurable\r\n Given the checkbox has the following prop values\r\n | prop | value |\r\n | checkbox-label | <labelText> |\r\n | checkbox-label-link | <labelLink> |\r\n | checkbox-label-link-text | <labelLinkText> |\r\n When the user views the checkbox\r\n Then they see <text>\r\n And when they click <labelLinkText> they are redirected to <labelLink>\r\n #First example below is the defaults set by the controller\r\n Examples:\r\n | labelText | labelLinkText | labelLink | text |\r\n | By signing up you agree to the {labelLink} | Terms and Conditions | https://example.com | By signing up you agree to the Terms and Conditions |\r\n | Read our {labelLink} before registration | Terms of Service | https://example.com/terms | Read our Terms of Service before registration |\r\n | By registering you agree to our terms and conditions | N/A | N/A | By registering you agree to our terms and conditions |\r\n\r\n @motivating\r\n Scenario: The form field name attribute is configurable\r\n Given the checkbox has prop \"checkbox-name\" with value \"myCheckBox\"\r\n When the user checks the box\r\n And they register\r\n Then the value of the checkbox is submitted under \"myCheckBox\" field\r\n\r\n @minutae\r\n Scenario Outline: The checkbox field component fails fast if a checkbox name isn't provided\r\n Given the checkbox <mayHave> prop \"checkbox-name\"\r\n And it <mayHavePropValue>\r\n When a user views the checkbox\r\n Then an alert with an error message is displayed in place of the checkbox\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n Examples:\r\n | mayBeAnAttribute | mayHavePropValue |\r\n | doesn't have | N/A |\r\n | has | \"\" |\r\n | has | |";
9896
+ const scenario$i = "@owner:sam\r\n@author:sam\r\nFeature: Checkbox Field\r\n\r\n Field to be used to be used as a checkbox during registration. A motivating use case is to use this component as a terms\r\n and conditions field, to sastisfy legal requirements that a customer might have for their end users.\r\n\r\n Background: A user is on the portal registration page\r\n Given a user is viewing the \"/register\"\r\n And \"/register\" contains the registration form\r\n And the registration form has the following fields\r\n | fields |\r\n | first name |\r\n | last name |\r\n | email |\r\n | password |\r\n | checkbox |\r\n\r\n @motivating\r\n Scenario: Checkbox is required by default\r\n Given the user is filling out the registration form\r\n And the name fields have valid input\r\n And the email field has valid input\r\n And the password field has valid input\r\n And the checkbox is not checked\r\n When they try to register\r\n Then the checkbox is highlighted in red\r\n And the error message says \"Must be checked\"\r\n\r\n @landmine\r\n Scenario: Checkboxes with the same \"checkbox-name\" are not submitted in the form data\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n error-message=\"Cannot be a robot\"\r\n checkbox-name=\"isHuman\"\r\n ></sqm-checkbox-field>\r\n <div slot=\"terms\">\r\n <sqm-checkbox-field checkbox-name=\"isHuman\"></sqm-checkbox-field>\r\n </div>\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkboxes are checked\r\n When the user tries to register\r\n Then the form is submitted\r\n But no field with key \"isHuman\" is included in the form data\r\n\r\n @motivating\r\n Scenario: Multiple checkboxes need different \"checkbox-name\" values\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n error-message=\"Cannot be a robot\"\r\n checkbox-name=\"isHuman\"\r\n ></sqm-checkbox-field>\r\n <div slot=\"terms\">\r\n <sqm-checkbox-field checkbox-name=\"myCheckbox\"></sqm-checkbox-field>\r\n </div>\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkboxes are not checked\r\n When the user tries to register\r\n Then both checkboxes are bordered in red\r\n And the checkboxes have different error messages\r\n When the user checks the boxes\r\n And tries to register\r\n Then the form is submitted\r\n And the following fields are included in the form data\r\n | feilds |\r\n | isHuman |\r\n | myCheckbox |\r\n\r\n @motivating\r\n Scenario: Checkboxes can be optional\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n checkbox-optional=\"true\"\r\n checkbox-name=\"isHuman\"\r\n />\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkbox is not checked\r\n When the user tries to register\r\n Then there is no error for the checkbox\r\n\r\n @minutae\r\n Scenario Outline: Validation error message is configurable\r\n The error message string is evaluated as an ICU string, but currently is provided no context\r\n Given the checkbox is required\r\n And the checkbox has prop \"error-message\" with <propValue>\r\n When the user tries to register\r\n But they havent checked the checkbox\r\n Then they see <errorMessage> below\r\n Examples:\r\n | propValue | errorMessage |\r\n | | Must be checked |\r\n | My Custom Message | My Custom Message |\r\n\r\n @motivating\r\n Scenario Outline: Checkbox text and link are configurable\r\n Given the checkbox has the following prop values\r\n | prop | value |\r\n | checkbox-label | <labelText> |\r\n | checkbox-label-link | <labelLink> |\r\n | checkbox-label-link-text | <labelLinkText> |\r\n When the user views the checkbox\r\n Then they see <text>\r\n And when they click <labelLinkText> they are redirected to <labelLink>\r\n #First example below is the defaults set by the controller\r\n Examples:\r\n | labelText | labelLinkText | labelLink | text |\r\n | By signing up you agree to the {labelLink} | Terms and Conditions | https://example.com | By signing up you agree to the Terms and Conditions |\r\n | Read our {labelLink} before registration | Terms of Service | https://example.com/terms | Read our Terms of Service before registration |\r\n | By registering you agree to our terms and conditions | N/A | N/A | By registering you agree to our terms and conditions |\r\n\r\n @motivating\r\n Scenario: The form field name attribute is configurable\r\n Given the checkbox has prop \"checkbox-name\" with value \"myCheckBox\"\r\n When the user checks the box\r\n And they register\r\n Then the boolean value of the checkbox is submitted under \"myCheckBox\" field\r\n\r\n @minutae\r\n Scenario Outline: The checkbox field component fails fast if a checkbox name isn't provided\r\n Given the checkbox <mayHave> prop \"checkbox-name\"\r\n And it <mayHavePropValue>\r\n When a user views the checkbox\r\n Then an alert with an error message is displayed in place of the checkbox\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information is displayed\r\n | information |\r\n | component being used |\r\n | missing attribute(s) |\r\n Examples:\r\n | mayBeAnAttribute | mayHavePropValue |\r\n | doesn't have | N/A |\r\n | has | \"\" |\r\n | has | |";
9897
9897
 
9898
9898
  const CheckboxField_stories = {
9899
9899
  title: "Components/Checkbox Field",
@@ -10042,7 +10042,7 @@ const MultipleCheckboxes = createHookStory(() => {
10042
10042
  index.h("sqm-name-fields", { slot: "formData" }),
10043
10043
  index.h("sqm-checkbox-field", { slot: "formData", "checkbox-label": "I am not a robot", "error-message": "Cannot be a robot", "checkbox-name": "isHuman" }),
10044
10044
  index.h("div", { slot: "terms" },
10045
- index.h("sqm-checkbox-field", null))));
10045
+ index.h("sqm-checkbox-field", { "checkbox-name": "otherCheckbox" }))));
10046
10046
  });
10047
10047
  const OptionalCheckboxes = createHookStory(() => {
10048
10048
  setupGraphQL$9();
@@ -10050,7 +10050,7 @@ const OptionalCheckboxes = createHookStory(() => {
10050
10050
  index.h("sqm-name-fields", { slot: "formData" }),
10051
10051
  index.h("sqm-checkbox-field", { slot: "formData", "checkbox-label": "I am not a robot", "checkbox-optional": "true", "checkbox-name": "isHuman" }),
10052
10052
  index.h("div", { slot: "terms" },
10053
- index.h("sqm-checkbox-field", null))));
10053
+ index.h("sqm-checkbox-field", { "checkbox-name": "required" }))));
10054
10054
  });
10055
10055
  const MissingName = createHookStory(() => {
10056
10056
  setupGraphQL$9();
@@ -10173,7 +10173,7 @@ const UseDropdownField = /*#__PURE__*/Object.freeze({
10173
10173
  MissingName: MissingName$1
10174
10174
  });
10175
10175
 
10176
- const scenario$j = "@author:derek\r\n@owner:derek\r\nFeature: Form Input Field\r\n\r\n This component is used as a custom registration field during registration. The field can be text,\r\n a date or phone number. A motivating use case is to ask for a users company name, this value would then be mapped\r\n through the Managed Identity Service and upserted on the user after registration.\r\n\r\n Background: A user exists and is viewing the hosted portal registration\r\n Given a user is viewing \"/register\"\r\n And \"/register\" contains the registration form\r\n And the registration form has a custom input field\r\n\r\n @motivating\r\n Scenario Outline: Input fields are required by default but can be optional\r\n Given the input has prop \"field-optional\" with <value>\r\n And the input is empty\r\n When the user tries to register\r\n Then the input <mayBe> highlighted in red\r\n And an error message <mayAppear> in red below\r\n And form submission <mayBe> blocked\r\n Examples:\r\n | value | mayBe | mayAppear |\r\n | false | is | appears |\r\n | | is | appears |\r\n | true | isn't | doesn't appear |\r\n\r\n @motivating\r\n Scenario: Input field labels are configurable\r\n Given the input has prop \"field-label\" with value \"My Custom Input\"\r\n When the user views the registration form\r\n Then they see the input field\r\n And it has label \"My Custom Input\" above the input\r\n\r\n @minutae\r\n Scenario Outline: The validation error message is configurable\r\n The error message string is evaluated as an ICU string, but currently is provided no context\r\n Given the input is required\r\n And it has prop \"error-message\" with <value>\r\n When the user tries to register\r\n But they haven't filled in the input\r\n Then they see <errorMessage> below\r\n Examples:\r\n | value | errorMessage |\r\n | | Cannot be empty |\r\n | My Custom Message | My Custom Message |\r\n\r\n @motivating\r\n Scenario: Form data attribute name is configurable\r\n Given the input has prop \"field-name\" with value \"myCustomField\"\r\n When the user types \"testing testing\" into the input\r\n And they register\r\n Then \"testing testing\" is submitted under \"myCustomField\" in the form data\r\n\r\n @motivating\r\n Scenario Outline: The input field is a text input by default\r\n Given the input <mayHave> prop \"field-type\" with <value>\r\n When the user views the input field\r\n Then it is a text input\r\n Examples:\r\n | mayHave | value |\r\n | has | text |\r\n | doesn't have | |\r\n\r\n @motivating\r\n Scenario: Date type inputs are supported\r\n Given the input has prop \"field-type\" \"date\"\r\n When the user views the input field\r\n Then they see \"mm/dd/yyyy\" as a placeholder\r\n And they see a calendar icon on the right\r\n When they start typing a date\r\n Then it maintains the \"mm/dd/yyyy\" format\r\n When they click the calendar icon\r\n Then a dropdown appears\r\n And they see a calendar\r\n When they select a date\r\n Then it is applied to the input\r\n\r\n @motivating\r\n Scenario: Phone number type inputs are supported\r\n Given the input has prop \"field-type\" with value \"tel\"\r\n When the user starts typing a phone number in the input\r\n Then it is formatted into the following form \"(XXX) XXX-XXXX\"\r\n When they pre-fix their phone number with a \"1\"\r\n Then it is formatted into the following form \"1 (XXX) XXX-XXXX\"\r\n\r\n @landmine\r\n Scenario: Telephone formatting is removed after 10 numbers\r\n Given a user using a phone number input field\r\n And they entered their 10 character phone number\r\n And it was not prefixed with a 1\r\n When they add another character\r\n Then the formatting is removed\r\n\r\n @landmine\r\n Scenario Outline: Input values are always recorded as strings in the form data\r\n Given the input has prop \"field-type\" with <value>\r\n And it has a \"field-name\"\r\n When the user inputs <formInput>\r\n And they register\r\n Then <formData> is recorded in the form data as a string\r\n Examples:\r\n | value | formInput | formData |\r\n | text | Hello there | Hello there |\r\n | date | 05/07/2021 | 2021-05-07 |\r\n | tel | (250) 234-9877 | (250) 234-9877 |\r\n\r\n @minutae\r\n Scenario Outline: The input field component fails fast if a field name isn't provided\r\n Given the input <mayHave> prop \"field-name\"\r\n And it <mayHavePropValue>\r\n When a user views the input\r\n Then an alert with an error message is displayed in place of the input\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n Examples:\r\n | mayBeAnAttribute | mayHavePropValue |\r\n | doesn't have | N/A |\r\n | has | \"\" |\r\n | has | |";
10176
+ const scenario$j = "@author:derek\r\n@owner:derek\r\nFeature: Form Input Field\r\n\r\n This component is used as a custom registration field during registration. The field can be text,\r\n a date or phone number. A motivating use case is to ask for a users company name, this value would then be mapped\r\n through the Managed Identity Service and upserted on the user after registration.\r\n\r\n Background: A user exists and is viewing the hosted portal registration\r\n Given a user is viewing \"/register\"\r\n And \"/register\" contains the registration form\r\n And the registration form has a custom input field\r\n\r\n @motivating\r\n Scenario Outline: Input fields are required by default but can be optional\r\n Given the input has prop \"field-optional\" with <value>\r\n And the input is empty\r\n When the user tries to register\r\n Then the input <mayBe> highlighted in red\r\n And an error message <mayAppear> in red below\r\n And form submission <mayBe> blocked\r\n Examples:\r\n | value | mayBe | mayAppear |\r\n | false | is | appears |\r\n | | is | appears |\r\n | true | isn't | doesn't appear |\r\n\r\n @motivating\r\n Scenario: Input field labels are configurable\r\n Given the input has prop \"field-label\" with value \"My Custom Input\"\r\n When the user views the registration form\r\n Then they see the input field\r\n And it has label \"My Custom Input\" above the input\r\n\r\n @minutae\r\n Scenario Outline: The validation error message is configurable\r\n The error message string is evaluated as an ICU string, but currently is provided no context\r\n Given the input is required\r\n And it has prop \"error-message\" with <value>\r\n When the user tries to register\r\n But they haven't filled in the input\r\n Then they see <errorMessage> below\r\n Examples:\r\n | value | errorMessage |\r\n | | Cannot be empty |\r\n | My Custom Message | My Custom Message |\r\n\r\n @motivating\r\n Scenario: Form data attribute name is configurable\r\n Given the input has prop \"field-name\" with value \"myCustomField\"\r\n When the user types \"testing testing\" into the input\r\n And they register\r\n Then \"testing testing\" is submitted under \"myCustomField\" in the form data\r\n\r\n @motivating\r\n Scenario Outline: The input field is a text input by default\r\n Given the input <mayHave> prop \"field-type\" with <value>\r\n When the user views the input field\r\n Then it is a text input\r\n Examples:\r\n | mayHave | value |\r\n | has | text |\r\n | doesn't have | |\r\n\r\n @motivating\r\n Scenario: Date type inputs are supported\r\n Given the input has prop \"field-type\" \"date\"\r\n When the user views the input field\r\n Then they see \"mm/dd/yyyy\" as a placeholder\r\n And they see a calendar icon on the right\r\n When they start typing a date\r\n Then it maintains the \"mm/dd/yyyy\" format\r\n When they click the calendar icon\r\n Then a dropdown appears\r\n And they see a calendar\r\n When they select a date\r\n Then it is applied to the input\r\n\r\n @landmine\r\n Scenario: The clear text button in the date picker does not clear the date\r\n Due to an incompatibility between our shoelace version and the browser, the clear funtionality is not supported currently\r\n Given the input has prop \"field-type\" \"date\"\r\n And the user has entered a date\r\n When they click the calendar icon\r\n And click the 'clear' text button\r\n Then their selected date is not cleared\r\n\r\n @motivating\r\n Scenario: Phone number type inputs are supported\r\n Given the input has prop \"field-type\" with value \"tel\"\r\n When the user starts typing a phone number in the input\r\n Then it is formatted into the following form \"(XXX) XXX-XXXX\"\r\n When they pre-fix their phone number with a \"1\"\r\n Then it is formatted into the following form \"1 (XXX) XXX-XXXX\"\r\n\r\n @landmine\r\n Scenario: Telephone formatting is removed after 10 numbers\r\n Given a user using a phone number input field\r\n And they entered their 10 character phone number\r\n And it was not prefixed with a 1\r\n When they add another character\r\n Then the formatting is removed\r\n\r\n @landmine\r\n Scenario Outline: Input values are always recorded as strings in the form data\r\n Given the input has prop \"field-type\" with <value>\r\n And it has a \"field-name\"\r\n When the user inputs <formInput>\r\n And they register\r\n Then <formData> is recorded in the form data as a string\r\n Examples:\r\n | value | formInput | formData |\r\n | text | Hello there | Hello there |\r\n | date | 05/07/2021 | 2021-05-07 |\r\n | tel | (250) 234-9877 | (250) 234-9877 |\r\n\r\n @minutae\r\n Scenario Outline: The input field component fails fast if a field name isn't provided\r\n Given the input <mayHave> prop \"field-name\"\r\n And it <mayHavePropValue>\r\n When a user views the input\r\n Then an alert with an error message is displayed in place of the input\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information is displayed\r\n | information |\r\n | component being used |\r\n | missing attribute(s) |\r\n Examples:\r\n | mayBeAnAttribute | mayHavePropValue |\r\n | doesn't have | N/A |\r\n | has | \"\" |\r\n | has | |";
10177
10177
 
10178
10178
  const InputField_stories = {
10179
10179
  title: "Components/Input Field",
@@ -50,7 +50,7 @@ export const MultipleCheckboxes = createHookStory(() => {
50
50
  h("sqm-name-fields", { slot: "formData" }),
51
51
  h("sqm-checkbox-field", { slot: "formData", "checkbox-label": "I am not a robot", "error-message": "Cannot be a robot", "checkbox-name": "isHuman" }),
52
52
  h("div", { slot: "terms" },
53
- h("sqm-checkbox-field", null))));
53
+ h("sqm-checkbox-field", { "checkbox-name": "otherCheckbox" }))));
54
54
  });
55
55
  export const OptionalCheckboxes = createHookStory(() => {
56
56
  setupGraphQL();
@@ -58,7 +58,7 @@ export const OptionalCheckboxes = createHookStory(() => {
58
58
  h("sqm-name-fields", { slot: "formData" }),
59
59
  h("sqm-checkbox-field", { slot: "formData", "checkbox-label": "I am not a robot", "checkbox-optional": "true", "checkbox-name": "isHuman" }),
60
60
  h("div", { slot: "terms" },
61
- h("sqm-checkbox-field", null))));
61
+ h("sqm-checkbox-field", { "checkbox-name": "required" }))));
62
62
  });
63
63
  export const MissingName = createHookStory(() => {
64
64
  setupGraphQL();
@@ -44,7 +44,7 @@ export class CheckboxField {
44
44
  },
45
45
  ]);
46
46
  if (!isDemo() && missingProps) {
47
- return h(RequiredPropsError, { missingProps: missingProps });
47
+ return (h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
48
48
  }
49
49
  const content = {
50
50
  ...getProps(this),
@@ -204,6 +204,9 @@ export class CheckboxField {
204
204
  "tags": [{
205
205
  "text": undefined,
206
206
  "name": "undocumented"
207
+ }, {
208
+ "text": "object",
209
+ "name": "uiType"
207
210
  }],
208
211
  "text": ""
209
212
  }
@@ -35,7 +35,8 @@ export class DropdownField {
35
35
  },
36
36
  ]);
37
37
  if (!isDemo() && missingProps) {
38
- return h(RequiredPropsError, { missingProps: missingProps });
38
+ return (h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this drop down field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" },
39
+ h("slot", null)));
39
40
  }
40
41
  const content = {
41
42
  ...getProps(this),
@@ -154,6 +155,9 @@ export class DropdownField {
154
155
  "tags": [{
155
156
  "text": undefined,
156
157
  "name": "undocumented"
158
+ }, {
159
+ "text": "object",
160
+ "name": "uiType"
157
161
  }],
158
162
  "text": ""
159
163
  }
@@ -16,10 +16,11 @@ export class InputField {
16
16
  * @uiName Input Type
17
17
  * @uiType string
18
18
  * @uiEnum ["text", "date", "tel"]
19
+ * @uiEnumNames ["Text", "Date", "Phone Number"]
19
20
  */
20
21
  this.fieldType = "text";
21
22
  /**
22
- * @uiName Empty error message
23
+ * @uiName Required Error Message
23
24
  */
24
25
  this.errorMessage = "Cannot be empty";
25
26
  /**
@@ -40,7 +41,7 @@ export class InputField {
40
41
  },
41
42
  ]);
42
43
  if (!isDemo() && missingProps) {
43
- return h(RequiredPropsError, { missingProps: missingProps });
44
+ return (h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this input field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
44
45
  }
45
46
  const { states } = isDemo() ? useInputFieldDemo(this) : useInputField();
46
47
  return h(InputFieldView, { states: states, content: content });
@@ -59,10 +60,10 @@ export class InputField {
59
60
  "optional": false,
60
61
  "docs": {
61
62
  "tags": [{
62
- "text": "Input name attribute",
63
+ "text": "Input Name Attribute",
63
64
  "name": "uiName"
64
65
  }],
65
- "text": ""
66
+ "text": "Used as the key of the inputs value in form data."
66
67
  },
67
68
  "attribute": "field-name",
68
69
  "reflect": false
@@ -79,7 +80,7 @@ export class InputField {
79
80
  "optional": false,
80
81
  "docs": {
81
82
  "tags": [{
82
- "text": "Input label",
83
+ "text": "Input Label",
83
84
  "name": "uiName"
84
85
  }],
85
86
  "text": ""
@@ -107,6 +108,9 @@ export class InputField {
107
108
  }, {
108
109
  "text": "[\"text\", \"date\", \"tel\"]",
109
110
  "name": "uiEnum"
111
+ }, {
112
+ "text": "[\"Text\", \"Date\", \"Phone Number\"]",
113
+ "name": "uiEnumNames"
110
114
  }],
111
115
  "text": ""
112
116
  },
@@ -126,7 +130,7 @@ export class InputField {
126
130
  "optional": false,
127
131
  "docs": {
128
132
  "tags": [{
129
- "text": "Empty error message",
133
+ "text": "Required Error Message",
130
134
  "name": "uiName"
131
135
  }],
132
136
  "text": ""
@@ -179,6 +183,9 @@ export class InputField {
179
183
  "tags": [{
180
184
  "text": undefined,
181
185
  "name": "undocumented"
186
+ }, {
187
+ "text": "object",
188
+ "name": "uiType"
182
189
  }],
183
190
  "text": ""
184
191
  }
@@ -92,6 +92,9 @@ export class NameFields {
92
92
  "tags": [{
93
93
  "text": undefined,
94
94
  "name": "undocumented"
95
+ }, {
96
+ "text": "object",
97
+ "name": "uiType"
95
98
  }],
96
99
  "text": ""
97
100
  }
@@ -31,7 +31,7 @@ export class SqmReferralIframe {
31
31
  },
32
32
  ]);
33
33
  if (missingProps) {
34
- return h(RequiredPropsError, { missingProps: missingProps });
34
+ return (h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this page", subheading: "A technical problem prevented this iframe from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
35
35
  }
36
36
  const { states, data } = isDemo()
37
37
  ? useReferralIframeDemo(getProps(this))
@@ -5,7 +5,6 @@ import { ShareLinkView, } from "../sqm-share-link/sqm-share-link-view";
5
5
  import { getProps } from "../../utils/utils";
6
6
  import { useShareCode } from "./useShareCode";
7
7
  import deepmerge from "deepmerge";
8
- const DEFAULT_TOOLTIP_LIFESPAN = 1000;
9
8
  /**
10
9
  * @uiName Share Code
11
10
  */
@@ -22,7 +21,7 @@ export class ShareCode {
22
21
  *
23
22
  * @uiName Tooltip lifespan
24
23
  */
25
- this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
24
+ this.tooltiplifespan = 1000;
26
25
  withHooks(this);
27
26
  }
28
27
  disconnectedCallback() { }
@@ -96,7 +95,7 @@ export class ShareCode {
96
95
  },
97
96
  "attribute": "tooltip-lifespan",
98
97
  "reflect": false,
99
- "defaultValue": "DEFAULT_TOOLTIP_LIFESPAN"
98
+ "defaultValue": "1000"
100
99
  },
101
100
  "demoData": {
102
101
  "type": "unknown",
@@ -5,7 +5,6 @@ import { ShareLinkView } from "./sqm-share-link-view";
5
5
  import { useShareLink } from "./useShareLink";
6
6
  import { getProps } from "../../utils/utils";
7
7
  import deepmerge from "deepmerge";
8
- const DEFAULT_TOOLTIP_LIFESPAN = 1000;
9
8
  /**
10
9
  * @uiName Share Link
11
10
  */
@@ -22,7 +21,7 @@ export class ShareLink {
22
21
  *
23
22
  * @uiName Tooltip lifespan
24
23
  */
25
- this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
24
+ this.tooltiplifespan = 1000;
26
25
  withHooks(this);
27
26
  }
28
27
  disconnectedCallback() { }
@@ -96,7 +95,7 @@ export class ShareLink {
96
95
  },
97
96
  "attribute": "tooltip-lifespan",
98
97
  "reflect": false,
99
- "defaultValue": "DEFAULT_TOOLTIP_LIFESPAN"
98
+ "defaultValue": "1000"
100
99
  },
101
100
  "demoData": {
102
101
  "type": "unknown",
@@ -1,6 +1,7 @@
1
1
  import { useHost } from "@saasquatch/component-boilerplate";
2
2
  import { useState } from "@saasquatch/universal-hooks";
3
3
  import { h } from "@stencil/core";
4
+ import { intl } from "../global/global";
4
5
  import { createStyleSheet } from "../styling/JSS";
5
6
  const style = {
6
7
  IconStyle: {
@@ -17,32 +18,39 @@ const style = {
17
18
  Heading: {
18
19
  display: "inline-block",
19
20
  },
20
- Alert: {
21
- margin: "28px",
21
+ Children: {
22
+ display: "none",
22
23
  },
23
24
  };
24
25
  const sheet = createStyleSheet(style);
25
26
  const styleString = sheet.toString();
26
- export function RequiredPropsError({ missingProps }) {
27
+ export function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
27
28
  if (!missingProps)
28
29
  return false;
29
30
  const host = useHost();
30
31
  const [detailsOpen, setDetailsOpen] = useState(false);
31
- return (h("sl-alert", { type: "danger", open: true, class: sheet.classes.Alert },
32
+ return (h("sl-alert", { type: "danger", open: true },
32
33
  h("style", { type: "text/css" }, styleString),
33
34
  h("div", { slot: "icon", class: sheet.classes.IconStyle },
34
35
  h("sl-icon", { name: "exclamation-octagon" })),
35
36
  h("div", { class: sheet.classes.DivStyle },
36
- h("h2", { class: sheet.classes.Heading }, "There was a problem loading this section"),
37
- h("p", null, "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.")),
37
+ h("h2", { class: sheet.classes.Heading }, intl.formatMessage({
38
+ id: `error-heading`,
39
+ defaultMessage: heading,
40
+ })),
41
+ h("p", null, intl.formatMessage({
42
+ id: `error-subheading`,
43
+ defaultMessage: subheading,
44
+ }))),
38
45
  h("details", { class: sheet.classes.Details },
39
46
  h("summary", { onClick: () => setDetailsOpen(!detailsOpen) },
40
47
  detailsOpen ? "Less" : "More",
41
48
  " details"),
42
- h("p", null,
43
- "Error occured while loading ",
44
- `<${host.tagName.toLowerCase()}>`,
45
- ". Values for the following attributes are missing:"),
49
+ h("p", null, intl.formatMessage({
50
+ id: `error-description`,
51
+ defaultMessage: description,
52
+ }, { tagName: host.tagName.toLowerCase() })),
46
53
  h("ul", null, missingProps.map((prop) => (h("li", null,
47
- h("strong", null, prop.attribute))))))));
54
+ h("strong", null, prop.attribute)))))),
55
+ h("div", { class: sheet.classes.Children }, children)));
48
56
  }