@inntechcorp/it-design 2.1.32 → 2.1.33
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/index.cjs.js +36 -36
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1727,7 +1727,7 @@ function(t,o){e.exports?e.exports=o(Il()):o(t.moment)}(Vl,(function(e){void 0===
|
|
|
1727
1727
|
justify-content: flex-start;
|
|
1728
1728
|
gap: 10px;
|
|
1729
1729
|
|
|
1730
|
-
`;const xu=u((({id:t="
|
|
1730
|
+
`;const xu=u((({id:t="",className:o="",disabled:p,value:b,defaultValue:n,children:M,onChange:c,onUpdate:i},a)=>{const[O,s]=r([]),[A,l]=r([]),[u,W]=r(""),[g,m]=r(t);z((()=>{""===t&&m("itd-checkbox-group-"+Ha())}),[]),z((()=>{s(v)}),[M]),z((()=>{n&&l(n)}),[n]),z((()=>{Bu(A,b)||l(b||[])}),[b]),z((()=>{let e=[];A.forEach((t=>{e.push(t)})),c&&c(e),y(e)}),[A]);const R=()=>{if(M)return L(M)};let v=[];const L=e=>f.map(e,(e=>{if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return e;let t;if(e.type===_u){let o={ref:h(),onChange:e=>{(e=>{let t=A;if(e.value){if(e.checked)t=[...A,e.value];else{const o=A.indexOf(e.value);if(o>-1){let e=[...A];e.splice(o,1),t=e}}l(t)}})(e)},children:L(e.props.children)};A.indexOf(e.props.value)>-1&&!e.props.disabled&&(o.checked=!0),void 0!==p&&(o.disabled=p),t=d(e,o),v.push(e.props.value)}else t=d(e,{children:L(e.props.children)});return t}));q(a,(()=>({reset(e=!0,t=!0){this.selectAll(!1),l([]),W(""),y([],e,t)},setValue(e=[],t=!0,o=!0){l(e),y(e,t,o)},getValue:()=>A,setError(e=""){W(e)},clear(){l([]),this.selectAll(!1)},selectAll(e){l(e?O:[]),y(e?O:[]),c&&c(e?O:[])}})));const y=(e,t=!0,o=!0)=>{i&&i(e,t,o)};return e(wu,{id:g,className:(()=>{let e="itd-checkbox-group";return""!==u&&(e+=" itd-checkbox-group-error"),p&&(e+=" itd-checkbox-group-disabled"),""!==o&&(e+=" "+o),e})(),children:R()})}));xu.displayName="ITD-CheckboxGroup";const Xu=ha.label`
|
|
1731
1731
|
|
|
1732
1732
|
display: flex;
|
|
1733
1733
|
align-items: center;
|