forstok-ui-lib 8.3.16 → 8.3.17

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.mjs CHANGED
@@ -4722,7 +4722,7 @@ function L(e,t){if(!1===e||null==e)throw new Error(t)}function j(e,t){if(!e){"un
4722
4722
  `}
4723
4723
  `,Uo=d(((i,r)=>{var{dateFormat:n="MMM dd, yyyy",name:a,evChange:d,isField:C,saveFormat:c,showFormat:s,evChangeCustom:p,value:h,isForceUpdate:g,setForceUpdate:x,isError:m=!1,showTimeInput:u=!1,allowEmpty:v=!1}=i,w=B(i,["dateFormat","name","evChange","isField","saveFormat","showFormat","evChangeCustom","value","isForceUpdate","setForceUpdate","isError","showTimeInput","allowEmpty"]);const[F,f]=o(h||(v?null:new Date)),y=e=>{f(e),d&&d(a,e),C&&p&&p(a,e?E(e).format(c):e)};return l((()=>{if(g){const e=h||(v?null:new Date);f(e),x&&x(!1)}}),[g,x,h,v]),t(To,Object.assign({$isError:m},w["data-qa-id"]&&{"data-qa-id":w["data-qa-id"]},{children:[e(b,{selected:F,name:a,portalId:"popup-portal",dateFormat:n,onChange:y,showTimeInput:u,onKeyDown:e=>e.preventDefault(),ref:r}),v&&F?e(Xo,{onClick:()=>y(null),title:"clear",children:e("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",children:e("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"})})}):null]}))})),Wo=d(((i,r)=>{const{dateFormat:n="MMM dd, yyyy",name:a,evChange:d,isField:C,saveFormat:c,showFormat:s,evChangeCustom:p,value:h,reset:g,setReset:x,isForceUpdate:m,setForceUpdate:u,isError:v=!1,showTimeInput:w=!1,allowEmpty:F=!1,placeholderText:f,portalId:y,isIcon:A,disabled:D}=i,k=B(i,["dateFormat","name","evChange","isField","saveFormat","showFormat","evChangeCustom","value","reset","setReset","isForceUpdate","setForceUpdate","isError","showTimeInput","allowEmpty","placeholderText","portalId","isIcon","disabled"]),[O,z]=o(void 0!==h?h:F?null:new Date),M=e=>{z(e),d&&d(a,e),C&&p&&p(a,e?E(e).format(c):e)};return l((()=>{if(g&&(z(null),x&&x(!1)),m){const e=h||(F?null:new Date);z(e),u&&u(!1)}}),[m,u,h,F,g,x]),t(To,Object.assign({$isError:v},k["data-tip"]&&{"data-tip":k["data-tip"],"data-place":k["data-place"],"data-type":k["data-type"]},k["data-qa-id"]&&{"data-qa-id":k["data-qa-id"]},{children:[A&&e(sa,{$name:"calendar",$width:"20px"}),e(b,Object.assign({selected:O,name:a,dateFormat:n,onChange:M,showTimeInput:w,onKeyDown:e=>e.preventDefault(),placeholderText:f,ref:r},D&&{disabled:!0},y&&{portalId:y})),F&&O?e(Xo,{onClick:()=>M(null),title:"clear",children:e("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",children:e("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"})})}):null]}))})),Go=r.div`
4724
4724
  display: grid;
4725
- `,Zo=({dateTimeData:r})=>{const n=E(r,"YYYY-MM-DD HH:mm:ss ZZ").format("D MMM YYYY,"),a=E(r,"YYYY-MM-DD HH:mm:ss ZZ").format("hh:mm A");return e(Go,{children:r?t(i,{children:[e("span",{children:n}),e("span",{children:a})]}):"-"})},Ro=r.div`
4725
+ `,Zo=({dateTimeData:r,$mode:n})=>{const a=E(r,"YYYY-MM-DD HH:mm:ss ZZ").format("D MMM YYYY,"),o=E(r,"YYYY-MM-DD HH:mm:ss ZZ").format("hh:mm A"),l=E(r,"YYYY-MM-DD HH:mm:ss ZZ").format("D MMM YYYY, hh:mm A");return e(Go,{children:r?"single"===n?e("span",{children:l}):t(i,{children:[e("span",{children:a}),e("span",{children:o})]}):"-"})},Ro=r.div`
4726
4726
  display: grid;
4727
4727
  grid-auto-flow: column;
4728
4728
  justify-self: self-start;