@saasquatch/mint-components 1.14.6-2 → 1.14.6-3

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 (86) hide show
  1. package/dist/cjs/{ShadowViewAddon-c0a5fdf8.js → ShadowViewAddon-40f0bc74.js} +58 -26
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +84 -116
  5. package/dist/cjs/sqm-lead-dropdown-field-view-03a3e03f.js +69 -0
  6. package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +75 -0
  7. package/dist/cjs/sqm-lead-input-field-view-6344cd93.js +51 -0
  8. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +78 -0
  9. package/dist/cjs/sqm-stencilbook.cjs.entry.js +166 -49
  10. package/dist/cjs/useLeadFormState-c83d2034.js +72 -0
  11. package/dist/collection/collection-manifest.json +2 -0
  12. package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +34 -46
  13. package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +59 -0
  14. package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +48 -0
  15. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +65 -0
  16. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +193 -0
  17. package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +59 -26
  18. package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +147 -36
  19. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +47 -0
  20. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +222 -0
  21. package/dist/collection/components/sqm-lead-form/useLeadDropdownField.js +10 -0
  22. package/dist/collection/components/sqm-lead-form/useLeadForm.js +8 -5
  23. package/dist/collection/components/sqm-lead-form/useLeadInputField.js +10 -0
  24. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
  25. package/dist/esm/{ShadowViewAddon-aa7177fe.js → ShadowViewAddon-8a0d9e83.js} +58 -26
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/mint-components.js +1 -1
  28. package/dist/esm/sqm-big-stat_42.entry.js +81 -113
  29. package/dist/esm/sqm-lead-dropdown-field-view-4c85fe20.js +67 -0
  30. package/dist/esm/sqm-lead-dropdown-field.entry.js +71 -0
  31. package/dist/esm/sqm-lead-input-field-view-f1dd4b77.js +49 -0
  32. package/dist/esm/sqm-lead-input-field.entry.js +74 -0
  33. package/dist/esm/sqm-stencilbook.entry.js +166 -49
  34. package/dist/esm/useLeadFormState-9016d812.js +68 -0
  35. package/dist/esm-es5/{ShadowViewAddon-aa7177fe.js → ShadowViewAddon-8a0d9e83.js} +1 -1
  36. package/dist/esm-es5/loader.js +1 -1
  37. package/dist/esm-es5/mint-components.js +1 -1
  38. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  39. package/dist/esm-es5/sqm-lead-dropdown-field-view-4c85fe20.js +1 -0
  40. package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +1 -0
  41. package/dist/esm-es5/sqm-lead-input-field-view-f1dd4b77.js +1 -0
  42. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -0
  43. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  44. package/dist/esm-es5/useLeadFormState-9016d812.js +1 -0
  45. package/dist/mint-components/mint-components.esm.js +1 -1
  46. package/dist/mint-components/p-13c67985.system.entry.js +1 -0
  47. package/dist/mint-components/p-15f1ff1d.system.js +1 -0
  48. package/dist/mint-components/p-1d704c40.system.js +1 -0
  49. package/dist/mint-components/p-26da31c6.js +1 -0
  50. package/dist/mint-components/p-37996351.system.js +1 -1
  51. package/dist/mint-components/{p-373a92a2.js → p-4139feb5.js} +3 -3
  52. package/dist/mint-components/p-4d5b02af.js +1 -0
  53. package/dist/mint-components/p-87384d9e.system.js +1 -0
  54. package/dist/mint-components/p-875861d7.system.entry.js +1 -0
  55. package/dist/mint-components/p-8af8ab01.system.entry.js +1 -0
  56. package/dist/mint-components/p-9e1570bf.system.entry.js +1 -0
  57. package/dist/mint-components/{p-72e5e84f.system.js → p-ad6420a2.system.js} +1 -1
  58. package/dist/mint-components/p-b8c15858.entry.js +1 -0
  59. package/dist/mint-components/{p-8dc110b0.entry.js → p-cd1c6113.entry.js} +2 -2
  60. package/dist/mint-components/p-e358f0c1.entry.js +265 -0
  61. package/dist/mint-components/p-f59d6012.entry.js +1 -0
  62. package/dist/mint-components/p-f98a4354.js +1 -0
  63. package/dist/types/components/sqm-lead-form/LeadForm.stories.d.ts +1 -0
  64. package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +9 -0
  65. package/dist/types/components/sqm-lead-form/LeadInputField.stories.d.ts +8 -0
  66. package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +15 -0
  67. package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +42 -0
  68. package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +7 -0
  69. package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +24 -7
  70. package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +14 -0
  71. package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +49 -0
  72. package/dist/types/components/sqm-lead-form/useLeadDropdownField.d.ts +6 -0
  73. package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +4 -0
  74. package/dist/types/components/sqm-lead-form/useLeadInputField.d.ts +6 -0
  75. package/dist/types/components.d.ts +194 -12
  76. package/docs/docs.docx +0 -0
  77. package/docs/raisins.json +1 -1
  78. package/grapesjs/grapesjs.js +1 -1
  79. package/package.json +1 -1
  80. package/dist/mint-components/p-02a6e0df.system.entry.js +0 -1
  81. package/dist/mint-components/p-0c6ab3ec.system.entry.js +0 -1
  82. package/dist/mint-components/p-6349fb7c.entry.js +0 -265
  83. package/dist/types/global/android.d.ts +0 -7
  84. package/dist/types/global/demo.d.ts +0 -2
  85. package/dist/types/stories/features.d.ts +0 -4
  86. package/dist/types/stories/templates.d.ts +0 -4
@@ -0,0 +1 @@
1
+ import{h as l}from"./p-f708da7b.js";import{i as o}from"./p-65069b66.js";import{j as r,a as e}from"./p-cef45012.js";r.setup(e());const s=r.createStyleSheet({ErrorStyle:{"--sl-input-border-color":"var(--sl-color-danger-500)","--sl-input-background-color":"var(--sl-color-danger-10)","--sl-input-border-color-focus":"var(--sl-color-danger-500)","--sl-input-border-color-hover":"var(--sl-color-danger-500)"},ErrorMessageStyle:{margin:0,color:"var(--sl-color-danger-500)",fontSize:"var(--sl-input-help-text-font-size-medium)"},FieldContainer:{"margin-bottom":"var(--sl-spacing-large)"}}),a=s.toString();function n(r){var e,n,i,t,d,v,u;const{states:p,content:c}=r,b=null===(e=null==p?void 0:p.leadFormState)||void 0===e?void 0:e.validationErrors;return l("div",{class:s.classes.FieldContainer,part:"sqm-base"},l("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\nsl-select::part(label){\n font-size: var(--sl-input-label-font-size-small);\n font-weight: var(--sl-font-weight-semibold);\n}\n",a),l("sl-select",Object.assign({exportparts:"label: input-label, base: input-base",label:c.dropdownLabel,name:`/${c.dropdownName}`},c.dropdownOptional?[]:{required:!0},{disabled:(null===(n=p.leadFormState)||void 0===n?void 0:n.loading)||(null===(i=p.leadFormState)||void 0===i?void 0:i.disabled),validationError:({value:l})=>{if(!l)return(({dropdownLabel:l})=>o.formatMessage({id:"requiredFieldErrorMessage",defaultMessage:c.requiredFieldErrorMessage},{dropdownLabel:l}))({dropdownLabel:c.dropdownLabel})}},(null===(d=null===(t=p.leadFormState)||void 0===t?void 0:t.validationErrors)||void 0===d?void 0:d.firstName)?{class:s.classes.ErrorStyle,helpText:(null===(u=null===(v=p.leadFormState)||void 0===v?void 0:v.validationErrors)||void 0===u?void 0:u.firstName)||c.requiredFieldErrorMessage}:[]),c.selectOptions),(null==b?void 0:b[c.dropdownName])&&l("p",{class:s.classes.ErrorMessageStyle},o.formatMessage({id:`errorMessage-${c.dropdownName}`,defaultMessage:c.requiredFieldErrorMessage})))}export{n as L}
@@ -0,0 +1 @@
1
+ System.register(["./p-f26aedcd.system.js","./p-bdb7d451.system.js","./p-1a673057.system.js","./p-cd1d497f.system.js"],(function(e){"use strict";var r,t,a,i,l;return{setters:[function(e){r=e.h},function(e){t=e.i},function(e){a=e.j;i=e.a},function(e){l=e.E}],execute:function(){e("L",u);var s={ErrorStyle:l,FieldContainer:{"margin-bottom":"var(--sl-spacing-large)"}};var n="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n";a.setup(i());var d=a.createStyleSheet(s);var o=d.toString();function u(e){var a,i,l,s,u,v;var f=e.states,c=e.content;var b=function(e){var r=e.fieldLabel;return t.formatMessage({id:"requiredFieldErrorMessage",defaultMessage:c.requiredFieldErrorMessage},{fieldLabel:r})};return r("div",{part:"sqm-base"},r("style",{type:"text/css"},n,o),r("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",name:"/"+c.fieldName,type:c.fieldType,label:c.fieldLabel},!c.fieldOptional?{required:true}:[],{disabled:((a=f.leadFormState)===null||a===void 0?void 0:a.loading)||((i=f.leadFormState)===null||i===void 0?void 0:i.disabled),validationError:function(e){var r=e.value;if(!r){return b({fieldLabel:c.fieldLabel})}}},((s=(l=f.leadFormState)===null||l===void 0?void 0:l.validationErrors)===null||s===void 0?void 0:s.firstName)?{class:d.classes.ErrorStyle,helpText:((v=(u=f.leadFormState)===null||u===void 0?void 0:u.validationErrors)===null||v===void 0?void 0:v.firstName)||c.requiredFieldErrorMessage}:[])))}}}}));
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-bdb7d451.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-1d704c40.system.js","./p-15f1ff1d.system.js"],(function(t){"use strict";var e,n,s,i,r,o,a,c,u,d,f;return{setters:[function(t){e=t.r;n=t.h},function(t){s=t.i;i=t.n},function(){},function(t){r=t.i},function(t){o=t.c},function(t){a=t.a;c=t.g},function(){},function(t){u=t.L;d=t.R},function(t){f=t.L}],execute:function(){function l(){var t=s(u);return{states:{leadFormState:t}}}var p=t("sqm_lead_dropdown_field",function(){function t(t){e(this,t);this.ignored=true;this.dropdownLabel="Select an option";this.requiredFieldErrorMessage="Please select a {dropdownLabel}";this.dropdownOptional=false;i(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=a([{attribute:"dropdown-name",value:this.dropdownName}]);if(!r()&&t){return n(d,{missingProps:t,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:"},n("slot",null))}var e=__assign(__assign({},c(this)),{selectOptions:n("slot",null)});var s=(r()?h(this):l()).states;return n(f,{states:s,content:e})};return t}());function h(t){return o({states:{leadFormState:{}}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));