@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.
- package/dist/cjs/{ShadowViewAddon-c0a5fdf8.js → ShadowViewAddon-40f0bc74.js} +58 -26
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +84 -116
- package/dist/cjs/sqm-lead-dropdown-field-view-03a3e03f.js +69 -0
- package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +75 -0
- package/dist/cjs/sqm-lead-input-field-view-6344cd93.js +51 -0
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +78 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +166 -49
- package/dist/cjs/useLeadFormState-c83d2034.js +72 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +34 -46
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +59 -0
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +48 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +65 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +193 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +59 -26
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +147 -36
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +47 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +222 -0
- package/dist/collection/components/sqm-lead-form/useLeadDropdownField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +8 -5
- package/dist/collection/components/sqm-lead-form/useLeadInputField.js +10 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
- package/dist/esm/{ShadowViewAddon-aa7177fe.js → ShadowViewAddon-8a0d9e83.js} +58 -26
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_42.entry.js +81 -113
- package/dist/esm/sqm-lead-dropdown-field-view-4c85fe20.js +67 -0
- package/dist/esm/sqm-lead-dropdown-field.entry.js +71 -0
- package/dist/esm/sqm-lead-input-field-view-f1dd4b77.js +49 -0
- package/dist/esm/sqm-lead-input-field.entry.js +74 -0
- package/dist/esm/sqm-stencilbook.entry.js +166 -49
- package/dist/esm/useLeadFormState-9016d812.js +68 -0
- package/dist/esm-es5/{ShadowViewAddon-aa7177fe.js → ShadowViewAddon-8a0d9e83.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-dropdown-field-view-4c85fe20.js +1 -0
- package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field-view-f1dd4b77.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/useLeadFormState-9016d812.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-13c67985.system.entry.js +1 -0
- package/dist/mint-components/p-15f1ff1d.system.js +1 -0
- package/dist/mint-components/p-1d704c40.system.js +1 -0
- package/dist/mint-components/p-26da31c6.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-373a92a2.js → p-4139feb5.js} +3 -3
- package/dist/mint-components/p-4d5b02af.js +1 -0
- package/dist/mint-components/p-87384d9e.system.js +1 -0
- package/dist/mint-components/p-875861d7.system.entry.js +1 -0
- package/dist/mint-components/p-8af8ab01.system.entry.js +1 -0
- package/dist/mint-components/p-9e1570bf.system.entry.js +1 -0
- package/dist/mint-components/{p-72e5e84f.system.js → p-ad6420a2.system.js} +1 -1
- package/dist/mint-components/p-b8c15858.entry.js +1 -0
- package/dist/mint-components/{p-8dc110b0.entry.js → p-cd1c6113.entry.js} +2 -2
- package/dist/mint-components/p-e358f0c1.entry.js +265 -0
- package/dist/mint-components/p-f59d6012.entry.js +1 -0
- package/dist/mint-components/p-f98a4354.js +1 -0
- package/dist/types/components/sqm-lead-form/LeadForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +9 -0
- package/dist/types/components/sqm-lead-form/LeadInputField.stories.d.ts +8 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +42 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +7 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +24 -7
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +14 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +49 -0
- package/dist/types/components/sqm-lead-form/useLeadDropdownField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +4 -0
- package/dist/types/components/sqm-lead-form/useLeadInputField.d.ts +6 -0
- package/dist/types/components.d.ts +194 -12
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-02a6e0df.system.entry.js +0 -1
- package/dist/mint-components/p-0c6ab3ec.system.entry.js +0 -1
- package/dist/mint-components/p-6349fb7c.entry.js +0 -265
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- 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}})}}}}));
|