scu-web-components 0.0.53 → 0.0.54
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/chunks/{chunk.TYN2P2KN.js → chunk.4O3MKSMB.js} +1 -1
- package/dist/chunks/chunk.4O3MKSMB.js.gz +0 -0
- package/dist/chunks/chunk.APDMSNWD.js +1 -0
- package/dist/chunks/chunk.APDMSNWD.js.gz +0 -0
- package/dist/chunks/chunk.FE6Q4XHS.js +1 -0
- package/dist/chunks/chunk.FE6Q4XHS.js.gz +0 -0
- package/dist/chunks/chunk.THHB3DFF.js +1 -0
- package/dist/chunks/chunk.THHB3DFF.js.gz +0 -0
- package/dist/chunks/{chunk.JXM2F5II.js → chunk.V6ASPMJX.js} +1 -1
- package/dist/chunks/chunk.V6ASPMJX.js.gz +0 -0
- package/dist/chunks/{chunk.FQQRBLN5.js → chunk.Z73LGC4J.js} +1 -1
- package/dist/chunks/chunk.Z73LGC4J.js.gz +0 -0
- package/dist/custom-elements.json +445 -445
- package/dist/custom-elements.json.gz +0 -0
- package/dist/docs/components/manifest.json +48 -48
- package/dist/docs/config.json +3 -3
- package/dist/scw-button/ScwButton.js +1 -1
- package/dist/scw-button/ScwButton.js.gz +0 -0
- package/dist/scw-button/scw-button.js +1 -1
- package/dist/scw-button/scw-button.js.gz +0 -0
- package/dist/scw-card/ScwCard.js +1 -1
- package/dist/scw-card/ScwCard.js.gz +0 -0
- package/dist/scw-card/scw-card.js +1 -1
- package/dist/scw-card/scw-card.js.gz +0 -0
- package/dist/scw-components.js +1 -1
- package/dist/scw-components.js.gz +0 -0
- package/dist/scw-form-component/scw-form-component.js +1 -1
- package/dist/scw-form-component/scw-form-component.js.gz +0 -0
- package/dist/scw-icon/ScwIcon.js +1 -1
- package/dist/scw-icon/ScwIcon.js.gz +0 -0
- package/dist/scw-icon/scw-icon.js +1 -1
- package/dist/scw-icon/scw-icon.js.gz +0 -0
- package/dist/scw-input/scw-input.js +1 -1
- package/dist/scw-input/scw-input.js.gz +0 -0
- package/dist/scw-select/scw-select.js +1 -1
- package/dist/scw-select/scw-select.js.gz +0 -0
- package/dist/scw-single-input/scw-single-input.js +1 -1
- package/dist/scw-single-input/scw-single-input.js.gz +0 -0
- package/dist/scw-textarea/scw-textarea.js +1 -1
- package/dist/scw-textarea/scw-textarea.js.gz +0 -0
- package/dist/scw.js +1 -1
- package/dist/scw.js.gz +0 -0
- package/dist/tokens/source/jsCss.js +1 -1
- package/dist/tokens/source/jsCss.js.gz +0 -0
- package/dist/tokens/source/jsCssGenerator.js +1 -1
- package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
- package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
- package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
- package/dist/utils/suffix.js +1 -1
- package/dist/utils/suffix.js.gz +0 -0
- package/dist-node/scw-components.js +1 -1
- package/dist-node/scw-icon/ScwIcon.js +1 -1
- package/dist-node/scw-icon/scw-icon.js +2 -2
- package/dist-node/scw.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk.666BIQQM.js +0 -1
- package/dist/chunks/chunk.666BIQQM.js.gz +0 -0
- package/dist/chunks/chunk.ALT45ALV.js +0 -1
- package/dist/chunks/chunk.ALT45ALV.js.gz +0 -0
- package/dist/chunks/chunk.FQQRBLN5.js.gz +0 -0
- package/dist/chunks/chunk.JXM2F5II.js.gz +0 -0
- package/dist/chunks/chunk.TJYE5VHV.js +0 -1
- package/dist/chunks/chunk.TJYE5VHV.js.gz +0 -0
- package/dist/chunks/chunk.TYN2P2KN.js.gz +0 -0
- /package/dist/chunks/{chunk.PHOCAD7Y.js → chunk.V4LKG7M5.js} +0 -0
- /package/dist/chunks/{chunk.PHOCAD7Y.js.gz → chunk.V4LKG7M5.js.gz} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as u}from"./chunk.
|
|
1
|
+
import{a as u}from"./chunk.THHB3DFF.js";import{a as n,b as r,d as o}from"./chunk.XWW5KNEG.js";import{a as f}from"./chunk.G2G2TPJK.js";import{g as a}from"./chunk.KRGVR4EU.js";var c=(e=>(e.text="text",e.boolean="boolean",e.submit="submit",e))(c||{}),h=(i=>(i.submit="submit",i.cancel="cancel",i))(h||{}),t=class extends o{constructor(){super(...arguments);this.formType="text";this.value="";this.placeholder="";this.selected=!1;this.readOnly=!1;this.required=!1;this.requiredLabel=" *";this.focused=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.required&&this.createAndAddValidationRule("required",this.requiredFeedback)}decorateValues(i){if(!this.name){this.warn(`${this.element} didn't find a name`);return}this.formType==="boolean"?i[this.name]=this.selected:i[this.name]=this.value}findIfRequired(){let i=this.findValidationRules();return i?i.isRequired():!1}findValidationRules(){return Array.from(this.children).find(d=>d.nodeName.indexOf("SCW-VALIDATION")===0)}validate(){let i=this.findValidationRules(),e=[];return i&&(e=i.validate(this.value)),this.invalid=e.length>0,this.invalid?this.feedback=e[0].feedback:this.feedback="",e}createValidateRule(){return document.createElement(`scw-${"validate"}${u()}`)}addValidationRule(i){let e=this.findValidationRules();e||(e=document.createElement(`scw-${"validation"}${u()}`),this.prepend(e)),Array.from(e.children).find(s=>s.getAttribute("type")===i.type)||e.appendChild(i)}createAndAddValidationRule(i,e){let d=this.createValidateRule();d.setAttribute("type",i),e&&d.setAttribute("feedback",e),this.addValidationRule(d)}removeValidationRule(i){let e=this.findValidationRules();if(!e)return;let l=Array.from(e.children).find(s=>s.type===i);l&&l.parentNode&&l.parentNode.removeChild(l)}render(){return f`
|
|
2
2
|
scw-form-component
|
|
3
3
|
`}};a([n({type:c,reflect:!0,attribute:"form-type"})],t.prototype,"formType",2),a([n({type:String})],t.prototype,"name",2),a([n({type:String})],t.prototype,"value",2),a([n({type:String})],t.prototype,"placeholder",2),a([n({type:String})],t.prototype,"selected",2),a([n({type:Boolean,attribute:"read-only"})],t.prototype,"readOnly",2),a([n({type:Boolean})],t.prototype,"required",2),a([n({type:String,attribute:"required-label"})],t.prototype,"requiredLabel",2),a([n({type:String,attribute:"required-feedback"})],t.prototype,"requiredFeedback",2),a([r()],t.prototype,"feedback",2),a([r()],t.prototype,"focused",2),a([r()],t.prototype,"invalid",2);export{c as a,h as b,t as c};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk.Z73LGC4J.js";customElements.define("scw-card",c);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk.V6ASPMJX.js";customElements.define("scw-icon",c);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f}from"./chunk.V4LKG7M5.js";function t(i="-"){return f&&f.suffix?`${i}${f.suffix}`:""}export{t as a};
|
|
Binary file
|
|
@@ -105,6 +105,6 @@ import{a as n}from"./chunk.SP7IQ4G4.js";import{a as h}from"./chunk.YBPGY7E7.js";
|
|
|
105
105
|
:host([size="100"]) {
|
|
106
106
|
width: 100px;
|
|
107
107
|
height: 100px;
|
|
108
|
-
}`;var{validationWarnings:x}=(p(),w(g)),o=class extends l{constructor(){super();this.size="50";this.colorBackground=!1;this._svgInfo="";this.element="icon"}static get styles(){return[super.styles,a]}set icon(t){let v=this._icon;this._icon=t,this.requestUpdate("icon",v),this.refreshIcon()}get icon(){return this._icon}connectedCallback(){super.connectedCallback()}refreshIcon(){this.clearWarnings(),
|
|
108
|
+
}`;var{validationWarnings:x}=(p(),w(g)),o=class extends l{constructor(){super();this.size="50";this.colorBackground=!1;this._svgInfo="";this.element="icon"}static get styles(){return[super.styles,a]}set icon(t){let v=this._icon;this._icon=t,this.requestUpdate("icon",v),this.refreshIcon()}get icon(){return this._icon}connectedCallback(){super.connectedCallback()}refreshIcon(){this.clearWarnings(),n(this.icon,t=>{t===!1?this.warn(x.noIconWarning):this._svgInfo=t})}render(){return i`
|
|
109
109
|
${h(this._svgInfo)}
|
|
110
110
|
`}};r([s({type:String,reflect:!0})],o.prototype,"icon",1),r([s({type:String,reflect:!0})],o.prototype,"size",2),r([s({type:Boolean,reflect:!0,attribute:"color-background"})],o.prototype,"colorBackground",2),r([c()],o.prototype,"_svgInfo",2);export{o as a};
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as r,b as n}from"./chunk.K5LAHA72.js";import{a as s}from"./chunk.NRBAPPP6.js";import{a as c}from"./chunk.
|
|
1
|
+
import{a as r,b as n}from"./chunk.K5LAHA72.js";import{a as s}from"./chunk.NRBAPPP6.js";import{a as c}from"./chunk.THHB3DFF.js";import{a as i,d as a}from"./chunk.XWW5KNEG.js";import{a as l}from"./chunk.QYZXMI4E.js";import{g as e}from"./chunk.KRGVR4EU.js";var d=l`
|
|
2
2
|
:host {
|
|
3
3
|
/* scw element */
|
|
4
4
|
position: relative;
|
|
Binary file
|