@saasquatch/mint-components 1.14.6-3 → 1.14.6-5
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +4 -1
- package/dist/cjs/{sqm-lead-dropdown-field-view-03a3e03f.js → sqm-lead-dropdown-field-view-69513385.js} +1 -1
- package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +9 -1
- package/dist/cjs/{sqm-lead-input-field-view-6344cd93.js → sqm-lead-input-field-view-e2373fc6.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +9 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +27 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +27 -1
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +4 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_42.entry.js +4 -1
- package/dist/esm/{sqm-lead-dropdown-field-view-4c85fe20.js → sqm-lead-dropdown-field-view-0f91101f.js} +1 -1
- package/dist/esm/sqm-lead-dropdown-field.entry.js +9 -1
- package/dist/esm/{sqm-lead-input-field-view-f1dd4b77.js → sqm-lead-input-field-view-6bc3aae8.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +9 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- 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 → sqm-lead-dropdown-field-view-0f91101f.js} +1 -1
- package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-f1dd4b77.js → sqm-lead-input-field-view-6bc3aae8.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-34bd0446.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-8af8ab01.system.entry.js → p-47144172.system.entry.js} +1 -1
- package/dist/mint-components/p-506e7681.js +1 -0
- package/dist/mint-components/{p-15f1ff1d.system.js → p-68acdfe8.system.js} +1 -1
- package/dist/mint-components/{p-4d5b02af.js → p-6c57e7e6.js} +1 -1
- package/dist/mint-components/p-72ecdea2.system.entry.js +1 -0
- package/dist/mint-components/{p-e358f0c1.entry.js → p-760bd076.entry.js} +1 -1
- package/dist/mint-components/p-a0e0e36f.entry.js +1 -0
- package/dist/mint-components/{p-cd1c6113.entry.js → p-a15b3197.entry.js} +1 -1
- package/dist/mint-components/{p-87384d9e.system.js → p-daf77001.system.js} +1 -1
- package/dist/mint-components/p-db412748.system.entry.js +1 -0
- package/dist/mint-components/p-f16bd3ab.entry.js +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +1 -0
- package/dist/types/components.d.ts +4 -0
- 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-13c67985.system.entry.js +0 -1
- package/dist/mint-components/p-26da31c6.js +0 -1
- package/dist/mint-components/p-875861d7.system.entry.js +0 -1
- package/dist/mint-components/p-9e1570bf.system.entry.js +0 -1
- package/dist/mint-components/p-b8c15858.entry.js +0 -1
- package/dist/mint-components/p-f59d6012.entry.js +0 -1
|
@@ -1 +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
|
|
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 d="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n";a.setup(i());var n=a.createStyleSheet(s);var o=n.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"},d,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),required:c.required,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:n.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(e){for(var t,s=1,i=arguments.length;s<i;s++){t=arguments[s];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]}return e};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-cd1d497f.system.js","./p-1d704c40.system.js","./p-daf77001.system.js"],(function(e){"use strict";var t,s,i,n,r,a,o,f,u,d,c;return{setters:[function(e){t=e.r;s=e.h},function(e){i=e.i;n=e.n},function(){},function(e){r=e.i},function(e){a=e.c},function(e){o=e.g;f=e.a},function(){},function(){},function(e){u=e.L;d=e.R},function(e){c=e.L}],execute:function(){function l(){var e=i(u);return{states:{leadFormState:e}}}var p=e("sqm_lead_input_field",function(){function e(e){t(this,e);this.ignored=true;this.required=false;this.fieldType="text";this.requiredFieldErrorMessage="Please enter a {fieldName}";this.fieldOptional=false;n(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=__assign({},o(this));var t=f([{attribute:"field-name",value:this.fieldName}]);if(!r()&&t){return s(d,{missingProps:t,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:"})}var i=(r()?h(this):l()).states;return s(c,{states:i,content:e})};return e}());function h(e){return a({states:{leadForState:{}},content:{fieldName:e.fieldName,fieldLabel:e.fieldLabel,fieldType:e.fieldType,requiredFieldErrorMessage:e.requiredFieldErrorMessage,required:e.required}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-f708da7b.js";import{i as s,n as i}from"./p-cd651f81.js";import"./p-65069b66.js";import{i as r}from"./p-94a876b9.js";import{c as a}from"./p-c1086930.js";import{g as o,a as n}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-91521e9d.js";import{L as p,R as d}from"./p-f98a4354.js";import{L as l}from"./p-506e7681.js";const m=class{constructor(t){e(this,t),this.ignored=!0,this.required=!1,this.fieldType="text",this.requiredFieldErrorMessage="Please enter a {fieldName}",this.fieldOptional=!1,i(this)}disconnectedCallback(){}render(){const e={...o(this)},i=n([{attribute:"field-name",value:this.fieldName}]);if(!r()&&i)return t(d,{missingProps:i,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:"});const{states:m}=r()?a({states:{leadForState:{}},content:{fieldName:(c=this).fieldName,fieldLabel:c.fieldLabel,fieldType:c.fieldType,requiredFieldErrorMessage:c.requiredFieldErrorMessage,required:c.required}},c.demoData||{},{arrayMerge:(e,t)=>t}):{states:{leadFormState:s(p)}};var c;return t(l,{states:m,content:e})}};export{m as sqm_lead_input_field}
|
|
@@ -1501,6 +1501,7 @@ export namespace Components {
|
|
|
1501
1501
|
* @default
|
|
1502
1502
|
*/
|
|
1503
1503
|
"dropdownOptional"?: boolean;
|
|
1504
|
+
"required": boolean;
|
|
1504
1505
|
/**
|
|
1505
1506
|
* The message to be displayed when a required field is not filled.
|
|
1506
1507
|
* @uiName Required field message
|
|
@@ -1606,6 +1607,7 @@ export namespace Components {
|
|
|
1606
1607
|
* @uiEnumNames ["Text", "Date", "Phone Number"]
|
|
1607
1608
|
*/
|
|
1608
1609
|
"fieldType": "text" | "date" | "tel";
|
|
1610
|
+
"required": boolean;
|
|
1609
1611
|
/**
|
|
1610
1612
|
* The message to be displayed when a required field is not filled.
|
|
1611
1613
|
* @uiName Required field message
|
|
@@ -8471,6 +8473,7 @@ declare namespace LocalJSX {
|
|
|
8471
8473
|
* @default
|
|
8472
8474
|
*/
|
|
8473
8475
|
"dropdownOptional"?: boolean;
|
|
8476
|
+
"required"?: boolean;
|
|
8474
8477
|
/**
|
|
8475
8478
|
* The message to be displayed when a required field is not filled.
|
|
8476
8479
|
* @uiName Required field message
|
|
@@ -8576,6 +8579,7 @@ declare namespace LocalJSX {
|
|
|
8576
8579
|
* @uiEnumNames ["Text", "Date", "Phone Number"]
|
|
8577
8580
|
*/
|
|
8578
8581
|
"fieldType"?: "text" | "date" | "tel";
|
|
8582
|
+
"required"?: boolean;
|
|
8579
8583
|
/**
|
|
8580
8584
|
* The message to be displayed when a required field is not filled.
|
|
8581
8585
|
* @uiName Required field message
|
package/docs/docs.docx
CHANGED
|
Binary file
|