@tempots/beatui 0.80.0 → 0.82.0
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/{ar-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
- package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +101 -99
- package/dist/beatui.css +393 -0
- package/dist/beatui.tailwind.css +393 -0
- package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
- package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
- package/dist/{deep-merge-1uN6CG6K.js → deep-merge-CiOwVWn8.js} +269 -284
- package/dist/deep-merge-DxZqCkE5.cjs +1 -0
- package/dist/{duration-input-C9kpsw-t.js → duration-input-B3vnnwBZ.js} +30 -29
- package/dist/duration-input-Dg5SX3lM.cjs +1 -0
- package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
- package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
- package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
- package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
- package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
- package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
- package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
- package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
- package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
- package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
- package/dist/{index-CfaWytS2.cjs → index-C5YCCgnn.cjs} +1 -1
- package/dist/{index-K6u33-GC.cjs → index-ChsRjiIp.cjs} +17 -17
- package/dist/{index-CGEzILlC.js → index-CiAVfKIZ.js} +1 -1
- package/dist/{index-YtW7SCWB.js → index-DT6-HMMz.js} +8 -7
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +296 -291
- package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
- package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
- package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
- package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -8
- package/dist/json-schema/index.es.js +1391 -7471
- package/dist/json-schema-display/index.cjs.js +1 -0
- package/dist/json-schema-display/index.es.js +846 -0
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +89 -87
- package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
- package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
- package/dist/modal-D2xE47kr.cjs +1 -0
- package/dist/{modal-CSHIhHvI.js → modal-hkQD1bqZ.js} +22 -21
- package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
- package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
- package/dist/notice-C0SmlheE.cjs +1 -0
- package/dist/{notice-C-964yaY.js → notice-CZHWWwOQ.js} +52 -51
- package/dist/oneof-branch-detection-BVNoKU9d.js +6281 -0
- package/dist/oneof-branch-detection-C8g3eWnx.cjs +8 -0
- package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
- package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
- package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
- package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
- package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
- package/dist/stack-BJgsPJ9A.js +873 -0
- package/dist/stack-DcZ_u50f.cjs +1 -0
- package/dist/string-B9vVyfq3.cjs +1 -0
- package/dist/string-DYyMxBl-.js +19 -0
- package/dist/text-input-CByq5OIo.cjs +1 -0
- package/dist/text-input-CFJntP7G.js +287 -0
- package/dist/{toolbar-DNpBIoJo.js → toolbar-DR2Zd4Oo.js} +1 -1
- package/dist/toolbar-TPWYzoiF.cjs +1 -0
- package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
- package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
- package/dist/translations-B4-Zd2LM.cjs +1 -0
- package/dist/translations-Cq8bUKJP.js +584 -0
- package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
- package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
- package/dist/types/components/json-schema/schema-conditionals.d.ts +11 -0
- package/dist/types/components/json-schema/schema-context.d.ts +1 -1
- package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
- package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
- package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/index.d.ts +14 -0
- package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
- package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
- package/dist/types/json-schema-display/index.d.ts +1 -0
- package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
- package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
- package/dist/use-form-CgZyrACX.js +864 -0
- package/dist/use-form-JjeKCINk.cjs +2 -0
- package/dist/utils-DEbsp9Q9.js +129 -0
- package/dist/utils-DIUEhA-Z.cjs +1 -0
- package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
- package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
- package/dist/widget-customization-DRA7E9Zf.js +1072 -0
- package/dist/widget-customization-G-QLB1rw.cjs +1 -0
- package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
- package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
- package/package.json +13 -7
- package/dist/deep-merge-CBIkQM4E.cjs +0 -1
- package/dist/duration-input-DHWhQJnn.cjs +0 -1
- package/dist/modal-cc8Ehngz.cjs +0 -1
- package/dist/notice-C_BWqu2K.cjs +0 -1
- package/dist/toolbar-D5FcnRju.cjs +0 -1
- package/dist/translations-0tLX4x7M.js +0 -866
- package/dist/translations-WPN3ibDg.cjs +0 -1
- package/dist/use-form-D4JFOcjo.cjs +0 -2
- package/dist/use-form-D4rqJkvG.js +0 -1731
- package/dist/widget-customization-BSjJz3_Y.js +0 -1195
- package/dist/widget-customization-CrFVrt4V.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("@tempots/dom"),vt=require("./colors-B2yrgHSW.cjs"),xt=require("./timer-BJHOsuS6.cjs"),yt=require("@tempots/ui"),$=require("./text-input-CByq5OIo.cjs"),_=require("./translations-B4-Zd2LM.cjs"),B=require("./use-form-JjeKCINk.cjs"),R=require("./stack-DcZ_u50f.cjs");function q({onChange:n,value:e,accept:l="*/*",enableClick:r=!0,content:a,disabled:h=!1,allowMultiple:o}){return t.Use(_.BeatUII18n,d=>{const p=t.Value.deriveProp(e??[]),m=t.prop(!1),u=i=>{i.preventDefault(),i.stopPropagation(),m.value=!0},b=i=>{i.preventDefault(),i.stopPropagation(),(!i.currentTarget||!i.currentTarget.contains(i.relatedTarget))&&(m.value=!1)},y=i=>{i.preventDefault(),i.stopPropagation(),m.value=!1;const f=Array.from(i.dataTransfer?.files||[]);f.length>0&&(p.value=f,n(f,"dragdrop"))},c=i=>{t.Value.get(r)&&i.currentTarget.querySelector('input[type="file"]')?.click()};let g=null;const v=()=>{if(g==null)return;const i=Array.from(g.files??[]);i.length>0&&(p.value=i,n(i,"click")),g.value=""},C=i=>{t.Value.get(r)&&(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),c(i))};return t.html.div(t.attr.role("button"),t.attr.tabindex(t.Value.map(r,i=>i?0:-1)),t.attr.style("position: relative;"),t.on.dragover(u),t.on.dragleave(b),t.on.drop(y),t.on.click(c),t.on.keydown(C),t.html.input(t.attr.type("file"),t.attr.disabled(h),t.attr.accept(l),t.attr.multiple(o),t.attr.style("position: absolute; left: -9999px; opacity: 0; pointer-events: none;"),t.on.change(v),t.WithElement(i=>(g=i,p.on(f=>{const w=globalThis.DataTransfer;if(w!=null){const k=new w;f.forEach(O=>k.items.add(O)),i.files=k.files}}),t.Empty))),t.aria.label(t.bind(d.$.dropZoneInstructions)(r)),a({files:p,clear:()=>p.value=[],change:p.set}))})}function It(n,e){return n.length===e.length&&n.every((l,r)=>l===e[r])}function Vt(n,e){const l=["bc-segmented-input",`bc-segmented-input--size-${n}`];return e&&l.push("bc-segmented-input--disabled"),l.join(" ")}function Ct({options:n,value:e,onChange:l,size:r="md",disabled:a=!1},...h){const o=vt.l(n).map(([d,p])=>({key:d,label:p}));return t.WithElement(()=>{const d=Object.fromEntries(o.map((m,u)=>[m.key,u])),p=t.prop(o.map(()=>({left:0,width:0})),It);return t.html.div(t.attr.class(t.computedOf(r,a)((m,u)=>Vt(m??"md",u??!1))),t.html.div(t.attr.class("bc-segmented-input__container"),t.html.div(t.attr.class("bc-segmented-input__indicator"),t.style.width(t.computedOf(e,p)((m,u)=>{const{width:b}=u[d[m]??0];return`${b}px`})),t.style.left(t.computedOf(e,p)((m,u)=>{const{left:b}=u[d[m]??0];return`${b}px`}))),o.map(({label:m,key:u},b)=>t.html.button(t.attr.type("button"),t.on.click(y=>{y.preventDefault(),t.Value.get(a)||l?.(u)}),t.attr.disabled(a),t.attr.class("bc-segmented-input__segment"),t.attr.class(t.Value.map(e,y=>y===u?"bc-segmented-input__segment--active":"bc-segmented-input__segment--inactive")),yt.ElementRect(y=>{function c(){p.update(v=>{const C=[...v];return C[b]={width:y.value.width,left:y.value.localLeft},C})}const g=xt.g(c);return t.OnDispose(g,y.on(c))}),m))),...h)})}function wt(n){const e=n.type.toLowerCase();return e.startsWith("image/")&&(e.includes("jpeg")||e.includes("jpg")||e.includes("png")||e.includes("gif")||e.includes("webp")||e.includes("svg"))}function kt(n){const e=n.type.toLowerCase();return e.startsWith("image/")?"vscode-icons:file-type-image":e.startsWith("video/")?"vscode-icons:file-type-video":e.startsWith("audio/")?"vscode-icons:file-type-audio":e.includes("pdf")?"vscode-icons:file-type-pdf2":e.includes("word")||e.includes("document")?"vscode-icons:file-type-word":e.includes("excel")||e.includes("spreadsheet")?"vscode-icons:file-type-excel":e.includes("powerpoint")||e.includes("presentation")?"vscode-icons:file-type-powerpoint":e.includes("zip")||e.includes("archive")?"vscode-icons:file-type-zip":e.includes("text")?"vscode-icons:file-type-text":e.includes("json")?"vscode-icons:file-type-json-official":e.includes("csv")?"vscode-icons:file-type-csv":e.includes("xml")?"vscode-icons:file-type-xml":e.includes("yaml")?"vscode-icons:file-type-yaml-official":"vscode-icons:file-type-binary"}function Y(n){return t.When(n.map(wt),()=>{const e=t.prop(null);return n.on(l=>{e.value&&URL.revokeObjectURL(e.value);const r=URL.createObjectURL(l);e.value=r}),t.html.div(t.OnDispose(()=>{e.value&&URL.revokeObjectURL(e.value)}),t.attr.class("bc-file-input__thumbnail-container"),t.html.img(t.attr.src(e),t.attr.alt(n.map(l=>l.name)),t.attr.class("bc-file-input__thumbnail")))},()=>_.Icon({icon:n.map(kt)}))}const _t=(n,...e)=>{const{value:l=t.prop([]),accept:r="*/*",maxFiles:a,maxFileSize:h,onChange:o,onBlur:d,disabled:p,hasError:m,mode:u="default",showFileList:b=!0,...y}=n,c=l,g=t.Value.map(u,V=>V==="input"),v=t.Value.map(u,V=>V==="compact"),C=V=>{let s=V;if(a!=null){const x=t.Value.get(a);s=s.slice(0,x)}if(h){const x=t.Value.get(h);s=s.filter(E=>E.size<=x)}o?.(s)},i=V=>{const x=c.value.filter((E,D)=>D!==V);o?.(x)},f=()=>{o?.([])},w=({files:V,clear:s,change:x})=>t.Use(_.BeatUII18n,E=>t.html.div(t.attr.class("bc-file-input__drop-zone"),t.html.div(t.attr.class("bc-file-input__drop-zone-content bc-file-input__drop-zone-content--empty"),_.Icon({icon:"mdi:cloud-upload-outline",size:"xl"}),t.html.div(t.attr.class("bc-file-input__drop-zone-text"),t.bind(E.$.filesInputInstructions)(a,h,E.$.fileSizeUnits.value))))),k=({files:V})=>t.Use(_.BeatUII18n,s=>t.html.div(t.attr.class("bc-file-input__compact-drop-zone"),t.When(V.map(x=>x.length>0),()=>t.html.div(t.attr.class("bc-file-input__compact-file-list"),t.ForEach(V,(x,E)=>{const D=E.index;return t.html.div(t.attr.class("bc-file-input__compact-file-item"),t.html.div(t.attr.class("bc-file-input__compact-file-icon"),Y(x)),t.html.div(t.attr.class("bc-file-input__compact-file-info"),t.html.div(t.attr.class("bc-file-input__compact-file-name"),t.attr.title(x.$.name),x.$.name),t.html.div(t.attr.class("bc-file-input__compact-file-meta"),t.computedOf(x.$.size,s.$.fileSizeUnits)((I,U)=>_.formatFileSize(I,{units:U}))," • ",t.computedOf(x.$.type,s.$.unknownType)((I,U)=>I||U))),B.CloseButton({size:"sm",label:s.$.removeFile,disabled:p,onClick:()=>i(D)},t.attr.class("bc-file-input__compact-remove-button")))})),()=>t.html.div(t.attr.class("bc-file-input__compact-placeholder"),_.Icon({icon:"mdi:cloud-upload-outline",size:"lg"}),t.html.div(t.attr.class("bc-file-input__compact-placeholder-text"),t.bind(s.$.filesInputInstructions)(a,h,s.$.fileSizeUnits.value)))))),O=({files:V})=>t.Use(_.BeatUII18n,s=>t.html.div(t.attr.class("bc-file-input__compact-input"),t.When(V.map(x=>x.length>0),()=>t.html.span(t.attr.class("bc-file-input__compact-value"),t.ForEach(V,x=>t.html.span(t.attr.class("bc-file-input__compact-value-item"),Y(x),t.html.span(t.attr.class("bc-file-input__compact-value-item-name"),x.$.name)))),()=>t.html.span(t.attr.class("bc-file-input__compact-placeholder"),_.Icon({icon:"mdi:cloud-upload-outline",size:"md"})," ",t.bind(s.$.filesInputInstructions)(a,h,s.$.fileSizeUnits.value)))));return t.Use(_.BeatUII18n,V=>$.InputContainer({baseContainer:t.Value.map(g,s=>!s),disabled:p,hasError:m,after:t.When(g,()=>t.When(c.map(({length:s})=>s>0),()=>B.CloseButton({size:"sm",label:V.$.clearAllFiles,disabled:p,onClick:f},t.attr.class("bc-file-input__compact-clear")))),...y,input:t.When(g,()=>t.html.div(t.attr.class("bc-file-input bc-file-input--input"),q({value:c,accept:r,enableClick:!0,allowMultiple:t.Value.map(a??1/0,s=>s>1),disabled:p,onChange:C,content:O})),()=>t.When(v,()=>t.html.div(t.attr.class("bc-file-input bc-file-input--compact"),q({value:c,accept:r,enableClick:!0,allowMultiple:t.Value.map(a??1/0,s=>s>1),disabled:p,onChange:C,content:k})),()=>t.html.div(t.attr.class("bc-file-input"),q({value:c,accept:r,enableClick:!0,allowMultiple:t.Value.map(a??1/0,s=>s>1),disabled:p,onChange:C,content:w}),t.When(b,()=>t.NotEmpty(c,()=>t.Fragment(t.html.div(t.attr.class("bc-file-input__file-list"),t.ForEach(c,(s,x)=>{const E=x.index;return t.html.div(t.attr.class("bc-file-input__file-item"),t.html.div(t.attr.class("bc-file-input__file-icon"),Y(s)),t.html.div(t.attr.class("bc-file-input__file-info"),t.html.div(t.attr.class("bc-file-input__file-name"),t.attr.title(s.$.name),s.$.name),t.html.div(t.attr.class("bc-file-input__file-meta"),t.computedOf(s.$.size,V.$.fileSizeUnits)((D,I)=>_.formatFileSize(D,{units:I}))," • ",t.computedOf(s.$.type,V.$.unknownType)((D,I)=>D||I))),B.CloseButton({size:"sm",label:V.$.removeFile,disabled:p,onClick:()=>i(E)},t.attr.class("bc-file-input__remove-button")))})),t.When(c.map(({length:s})=>s>1),()=>t.html.div(t.attr.class("bc-file-input__clear-all-button-container"),t.html.button(t.attr.type("button"),t.attr.class("bc-file-input__clear-all-button"),t.attr.disabled(p),V.$.clearAllFiles,t.on.click(s=>{s.preventDefault(),s.stopPropagation(),f()}))))))))))},...e))},J="$$tts-exp-",ot=(n,e)=>t.WithElement(l=>{const r=`${J}${n}`;return t.OnDispose(t.Value.on(e,a=>Reflect.set(l,r,a)))}),Et=(n,e)=>{const l=`${J}${n}`;return r=>{e(Reflect.get(r.target,l))}},st=(n,e)=>{const l=`${J}${n}`;return r=>{const a=r.target,h=a.selectedIndex,o=a.options[h];e(Reflect.get(o,l))}};function W(...n){return t.html.div(t.attr.class("bc-group"),...n)}const it=(n,e,l)=>t.Ensure(n,r=>t.OneOfType(r,{value:a=>{const h=t.computedOf(a,l)((o,d)=>e(o.value,d));return t.html.option(t.attr.selected(h),ot("value",a.$.value),a.$.label)},group:a=>t.html.optgroup(t.attr.label(a.$.group),t.ForEach(a.$.options,h=>it(h,e,l))),break:()=>t.html.hr()})),ut=n=>{const{value:e,onBlur:l,onChange:r,options:a,unselectedLabel:h,equality:o=(m,u)=>m===u,after:d}=n;let p;return $.InputContainer({...n,after:t.Fragment($.InputIcon({icon:"ph:caret-down-bold",color:"neutral",size:"sm"}),d),input:t.html.select(t.WithElement(m=>{p=m;const u=new MutationObserver(b=>{const{removedNodes:y}=b[0];y.length>0&&(p.selectedIndex=0)});return u.observe(m,{childList:!0}),t.OnDispose(()=>u.disconnect())}),$.CommonInputAttributes(n),t.attr.class("bc-native-select bc-input"),t.Use(_.BeatUII18n,m=>t.html.option(t.attr.hidden("hidden"),t.coalesce(h,m.$.selectOne))),t.ForEach(a,m=>it(m,o,e)),l!=null?t.on.blur(l):t.Empty,r!=null?t.on.change(st("value",m=>r(m))):t.Empty)},t.on.click(()=>{if(p?.focus(),typeof p?.showPicker=="function")try{p.showPicker()}catch{}}))};function ct(n){const{controller:e,onChange:l,onBlur:r,...a}=n;return ut({...a,value:e.signal,onChange:B.makeOnChangeHandler(e,l),onBlur:B.makeOnBlurHandler(e,r)})}function Dt(n){return B.InputWrapper({...n,content:ct(n)})}function pt(n,e,l){const r=n.length.map(a=>a);return t.Fragment(t.Repeat(r,a=>{const h=n.item(a.index),o=[];return t.Fragment(t.OnDispose(()=>{o.forEach(d=>d())}),e({list:n,item:h,position:a,remove:()=>n.removeAt(a.index),move:d=>{switch(d){case"up":if(a.index===0)return;n.move(a.index,a.index-1);break;case"down":if(a.index===n.length.value-1)return;n.move(a.index,a.index+1);break;case"first":n.move(a.index,0);break;case"last":n.move(a.index,n.length.value-1)}},canMove:d=>{const p=(()=>{switch(d){case"up":return t.signal(a.index>0);case"down":return n.length.map(m=>a.index<m-1)}})();return o.push(()=>p.dispose()),p},cannotMove:d=>{const p=(()=>{switch(d){case"up":return t.signal(a.index===0);case"down":return n.length.map(m=>a.index===m-1)}})();return o.push(()=>p.dispose()),p}}))},l))}const et={9:{pattern:/^[0-9]$/},A:{pattern:/^[A-Za-z]$/,transform:n=>n.toUpperCase()},"*":{pattern:/^.$/}},Ut=n=>n instanceof RegExp;function ft(n,e,l){if(n==null)return[];const r=l?{...et,...e}:e??et,a=(o,d)=>{const p=r[d];p?o.push({type:"pattern",name:d,...p}):o.push({type:"literal",char:d})},h=[];if(typeof n=="string"){for(const o of n)a(h,o);return h}for(const o of n)if(typeof o=="string")if(o.length<=1)a(h,o);else for(const d of o)a(h,d);else Ut(o)?h.push({type:"pattern",pattern:o}):typeof o=="object"&&o&&h.push(o);return h}function Ot(n,e){return l=>{switch(n){case"digits":return/[0-9]/.test(l);case"letters":return/[A-Za-z]/.test(l);case"alphanumeric":return/[A-Za-z0-9]/.test(l);case"custom":return e?.(l)??!0;default:return!0}}}function nt(n,e,l,r,a,h){const o={raw:n,previousConformed:e,cursor:a??n.length,completed:!1},d=r.definitions??{},p=typeof l=="function"?l(n,o):l,m=ft(p,d,r.useDefaultDefinitions??!0),u=Ot(r.allowMode,r.allow),b=new Set;for(const I of m)I.type==="literal"&&b.add(I.char);if(r.prefix)for(const I of r.prefix)b.add(I);if(r.suffix)for(const I of r.suffix)b.add(I);const y=Array.from(n).filter(I=>u(I)&&!b.has(I));if(y.length===0)return{value:"",cursor:0,completed:!1};const c=[],g=[];let v=0,C=0,i=0,f=-1;for(const I of m){if(I.type==="literal"){c.push(I.char),g.push({kind:"literal",filled:!0});continue}C+=I.optional?0:1;const U=y[v];if(U==null)break;if(I.type==="any"){i++,c.push(I.transform?I.transform(U):U),g.push({kind:"slot",filled:!0}),f=g.length-1,v++;continue}if(I.type==="pattern")if(I.pattern.test(U)){i++;const T=I.transform?I.transform(U):U;c.push(T),g.push({kind:"slot",filled:!0}),f=g.length-1,v++}else{v++;continue}}const w=c.join(""),k=(r.prefix??"")+w+(r.suffix??"");let V=(r.prefix??"").length;if(f>=0){let I=f+1;if((h?.policy??"smart")!=="sticky")for(;I<g.length&&g[I].kind==="literal";)I++;V+=I}const s=r.completion?.mode==="min"?(r.completion.minChars??0)<=i:r.completion?.mode==="custom"?!!r.completion.isComplete?.(k):C>0&&i>=C,x=r.pipe?.(k,{...o,completed:s});let E,D=V;return x===!1?(E=e,D=e.length):typeof x=="string"?(E=x,D=x.length):typeof x=="object"&&x?(E=x.value,D=x.cursor??x.value.length):E=k,{value:E,cursor:D,completed:s}}function $t(n,e){const l=e?.strategy??"none";return l==="custom"&&e?.unmask?e.unmask(n):l==="strip"?n.replace(/[^A-Za-z0-9]/g,""):n}const X=n=>{const{value:e,onBlur:l,onChange:r,onInput:a,onAccept:h,onComplete:o,mask:d,definitions:p,useDefaultDefinitions:m,extraLiterals:u,prefix:b,suffix:y,autofix:c,pipe:g,completion:v,unmask:C,allowMode:i,allow:f,placeholder:w,placeholderOptions:k}=n,O=t.computedOf(e,d,p,m,u,b,y,c,v,C,i,w,k)((s,x,E,D,I,U,T,L,N,M,A,P,F)=>x?nt(s??"","",x,{definitions:E??{},useDefaultDefinitions:D??!0,extraLiterals:I??[],autofix:L??"none",completion:N??{mode:"mask"},pipe:g??(S=>S),unmask:M??{strategy:"none"},allowMode:A??"all",allow:f,prefix:U,suffix:T}).value:s??""),V=(s,x)=>{const E=s.value??"",D=t.Value.get(e)??"",I=d!=null?t.Value.get(d):null,U=p!=null?t.Value.get(p):void 0,T=m!=null?t.Value.get(m):void 0,L=u!=null?t.Value.get(u):void 0,N=c!=null?t.Value.get(c):void 0,M=v!=null?t.Value.get(v):void 0,A=C!=null?t.Value.get(C):void 0,P=i!=null?t.Value.get(i):void 0,F=b!=null?t.Value.get(b):void 0,S=y!=null?t.Value.get(y):void 0,{value:z,cursor:H,completed:K}=I?nt(E,D,I,{definitions:U??{},useDefaultDefinitions:T??!0,extraLiterals:L??[],autofix:N??"none",completion:M??{mode:"mask"},pipe:g??(gt=>gt),unmask:A??{strategy:"none"},allowMode:P??"all",allow:f,prefix:F,suffix:S},s.selectionStart??E.length,n.cursor?t.Value.get(n.cursor):void 0):{value:E,cursor:E.length,completed:!0};if(z!==E){s.value=z;try{s.setSelectionRange(H,H)}catch{}}const tt=$t(z,A);h?.({raw:tt,conformed:z,completed:K,cursor:H}),x==="input"?a?.(z):(r?.(z),K&&o?.({raw:tt,conformed:z}))};return t.Fragment($.InputContainer({...n,input:t.input.text($.CommonInputAttributes(n),t.attr.value(O),t.attr.class("bc-input"),l!=null?t.on.blur(l):t.Empty,t.WithElement(s=>s instanceof HTMLInputElement?t.Fragment(t.on.input(()=>V(s,"input")),t.on.change(()=>V(s,"change")),t.on.keydown(x=>{if(x.key!=="Backspace"||!(n.cursor?t.Value.get(n.cursor)?.backspaceRubberBand??!0:!0))return;const D=s.selectionStart??0,I=s.selectionEnd??D;if(D!==I||D<=0)return;const U=s.value??"",T=d!=null?t.Value.get(d):null;if(!T)return;const L=p!=null?t.Value.get(p):void 0,N=m!=null?t.Value.get(m):!0,M=b!=null?t.Value.get(b):void 0,A=y!=null?t.Value.get(y):void 0,P=ft(typeof T=="function"?T(U,{raw:U,previousConformed:U,cursor:D,completed:!1}):T,L??{},N??!0),F=new Set;for(const S of P)S.type==="literal"&&F.add(S.char);if(M)for(const S of M)F.add(S);if(A)for(const S of A)F.add(S);if(F.has(U[D-1])){let S=D-1;for(;S>=0&&F.has(U[S]);)S--;S>=0&&(x.preventDefault(),x.stopPropagation(),s.value=U.slice(0,S)+U.slice(S+1),V(s,"input"))}})):t.Empty))}))};function Q(n,e,l){const r=t.Value.map(n,o=>o!=null),a=t.computedOf(r,e??!1)((o,d)=>!o||d),h=_.defaultMessages.clearValue;return t.html.button(t.attr.type("button"),t.attr.class("bc-input-container__reset"),t.aria.label(h),t.attr.title(h),t.attr.disabled(a),_.Icon({icon:"mdi:close",size:"sm"}),t.on.click(o=>{o.stopPropagation(),l?.(null)}))}const Bt=n=>{const{value:e,onBlur:l,onChange:r,onInput:a,rows:h}=n;return $.InputContainer({baseContainer:!0,...n,input:t.html.textarea(t.attr.class(t.computedOf(n.size??"md")(o=>$.generateInputContainerInputClasses(!1,o??"md"))),$.CommonInputAttributes(n),t.attr.rows(h??3),t.attr.value(e),t.attr.class("bc-input"),l!=null?t.on.blur(t.emitValue(l)):t.Empty,r!=null?t.on.change(t.emitValue(r)):t.Empty,a!=null?t.on.input(t.emitValue(a)):t.Empty)})},St=n=>{const{value:e,step:l,min:r,max:a,onBlur:h,onChange:o,onInput:d,after:p}=n,m=y=>{const c=r!=null?t.Value.get(r):void 0,g=a!=null?t.Value.get(a):void 0;return c!=null&&y<c?c:g!=null&&y>g?g:y},u=l!=null?t.Use(_.BeatUII18n,y=>{const c=t.computedOf(e,r)((i,f)=>f==null?!0:(i??0)>f),g=t.computedOf(e,a)((i,f)=>f==null?!0:(i??0)<f),v=i=>{const f=t.Value.get(e)??0,w=t.Value.get(l),k=i?.shiftKey?10:1,O=f-w*k,V=r!=null?t.Value.get(r):void 0;if(V!=null&&O<V)return;const s=m(O);s!==f&&o&&o(s)},C=i=>{const f=t.Value.get(e)??0,w=t.Value.get(l),k=i?.shiftKey?10:1,O=f+w*k,V=a!=null?t.Value.get(a):void 0;if(V!=null&&O>V)return;const s=m(O);s!==f&&o&&o(s)};return R.Stack(t.attr.class("bc-number-input-steppers"),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(g,n.disabled??!1)((i,f)=>!i||f)),t.on.click(i=>C(i)),t.aria.label(y.$.incrementValue),_.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(c,n.disabled??!1)((i,f)=>!i||f)),t.on.click(i=>v(i)),t.aria.label(y.$.decrementValue),_.Icon({icon:"line-md:minus",size:"xs"})))}):null,b=p!=null&&u!=null?t.Fragment(u,p):p??u;return $.InputContainer({...n,input:t.input.number(r!=null?t.attr.min(r):t.Empty,a!=null?t.attr.max(a):t.Empty,$.CommonInputAttributes(n),t.attr.valueAsNumber(e),t.attr.step(l),t.attr.class("bc-input bc-number-input"),h!=null?t.on.blur(t.emitValue(h)):t.Empty,o!=null?t.on.change(t.emitValueAsNumber(o)):t.Empty,d!=null?t.on.input(t.emitValueAsNumber(d)):t.Empty,l!=null?t.on.wheel(y=>{y.preventDefault();const c=t.Value.get(e)??0,g=t.Value.get(l),v=y.shiftKey?10:1,C=y.deltaY<0?g*v:-g*v,i=m(c+C);i!==c&&o&&o(i)}):t.Empty),after:b})},lt=n=>{if(n==null||n==="")return null;const e=Number(n);return Number.isNaN(e)?null:e},Tt=n=>{const{value:e,step:l,min:r,max:a,onBlur:h,onChange:o,onInput:d,after:p}=n,m=c=>{const g=r!=null?t.Value.get(r):void 0,v=a!=null?t.Value.get(a):void 0;return g!=null&&c<g?g:v!=null&&c>v?v:c},u=(()=>{if(l==null)return null;const c=t.computedOf(e,r)((f,w)=>{const k=f??0;return w==null?!0:k>w}),g=t.computedOf(e,a)((f,w)=>{const k=f??0;return w==null?!0:k<w}),v=f=>{const w=t.Value.get(e)??0,k=t.Value.get(l),O=f?.shiftKey?10:1,V=w-k*O,s=r!=null?t.Value.get(r):void 0;if(s!=null&&V<s)return;const x=m(V);x!==w&&o&&o(x)},C=f=>{const w=t.Value.get(e)??0,k=t.Value.get(l),O=f?.shiftKey?10:1,V=w+k*O,s=a!=null?t.Value.get(a):void 0;if(s!=null&&V>s)return;const x=m(V);x!==w&&o&&o(x)};return((f,w)=>R.Stack(t.attr.class("bc-number-input-steppers"),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(g,n.disabled??!1)((k,O)=>!k||O)),t.on.click(k=>C(k)),t.aria.label(f),_.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(c,n.disabled??!1)((k,O)=>!k||O)),t.on.click(k=>v(k)),t.aria.label(w),_.Icon({icon:"line-md:minus",size:"xs"}))))(_.defaultMessages.incrementValue,_.defaultMessages.decrementValue)})(),b=Q(e,n.disabled,o??d),y=p!=null&&u!=null?t.Fragment(u,b,p):p!=null?t.Fragment(b,p):u!=null?t.Fragment(u,b):b;return $.InputContainer({...n,input:t.input.number(r!=null?t.attr.min(r):t.Empty,a!=null?t.attr.max(a):t.Empty,$.CommonInputAttributes(n),t.attr.value(t.Value.map(e,c=>c==null?"":String(c))),t.attr.step(l),t.attr.class("bc-input bc-number-input"),h!=null?t.on.blur(t.emitValue(h)):t.Empty,o!=null?t.on.change(t.emitValue(c=>{const g=lt(c);o(g)})):t.Empty,d!=null?t.on.input(t.emitValue(c=>{const g=lt(c);d(g)})):t.Empty,l!=null?t.on.wheel(c=>{c.preventDefault();const g=t.Value.get(e)??0,v=t.Value.get(l),C=c.shiftKey?10:1,i=c.deltaY<0?v*C:-v*C,f=m(g+i);f!==g&&o&&o(f)}):t.Empty),after:y})},Ft=n=>{const e={type:"pattern",pattern:/[0-9A-Fa-f]/,transform:r=>r.toLowerCase()};return X({...n,mask:[e,e,e,e,e,e,e,e,"-",e,e,e,e,"-",e,e,e,e,"-",e,e,e,e,"-",e,e,e,e,e,e,e,e,e,e,e,e],placeholder:n.placeholder??"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"})};let G=null;async function Z(){const n=globalThis;return n.Temporal?n.Temporal:(G||(G=Promise.resolve().then(()=>require("./index.esm-C6lZ02yY.cjs")).then(e=>{const l=e.Temporal;return n.Temporal||(n.Temporal=l),l})),G)}const dt=(n,e)=>e?t.Task(Z,{then:n,pending:e.pending,error:e.error}):t.Task(Z,n),At=/^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i,zt=/^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;function mt(n){return{mask:null,allowMode:"custom",allow:e=>/[0-9ptwdhms]/i.test(e),pipe:e=>{const l=e.toUpperCase();return l.length===0?l:!l.startsWith("P")||!At.test(l)?!1:l},completion:{mode:"custom",isComplete:e=>{const l=e.toUpperCase();if(!zt.test(l))return!1;try{return n(l),!0}catch{return!1}}}}}const rt=(n,e)=>{if(n==null)return null;try{return n.Duration.from(e)}catch{return null}},Mt=n=>{const{value:e,onChange:l,onInput:r,after:a,disabled:h,onBlur:o}=n,d=()=>{const u=Q(e,h,l??r);return a!=null?t.Fragment(u,a):u},p=n.placeholder!=null?t.Empty:t.attr.placeholder("P0DT0H0M0S");return dt(u=>X({...n,value:t.Value.map(e,b=>b?.toString()??""),onChange:l?b=>l(b===""?null:u.Duration.from(b)):void 0,onInput:void 0,...mt(u.Duration.from),placeholder:"P0DT0H0M0S",after:d()}),{pending:()=>{const u=b=>y=>{const g=y.currentTarget?.value??"";if(g===""){b(null);return}const v=globalThis.Temporal,C=rt(v,g);if(C!=null){b(C);return}Z().then(i=>{const f=rt(i,g);f!=null&&b(f)}).catch(()=>{})};return $.InputContainer({...n,input:t.input.text($.CommonInputAttributes(n),t.attr.value(t.Value.map(e,b=>b?.toString()??"")),t.attr.class("bc-input"),p,o!=null?t.on.blur(()=>o()):t.Empty,l!=null?t.on.change(u(l)):t.Empty,r!=null?t.on.input(u(r)):t.Empty),after:d()})}})},Lt=n=>{const{value:e,onBlur:l,onChange:r,onInput:a}=n;return $.InputContainer({...n,input:t.input.url($.CommonInputAttributes(n),t.attr.value(e),t.attr.class("bc-input"),l!=null?t.on.blur(t.emitValue(l)):t.Empty,r!=null?t.on.change(t.emitValue(r)):t.Empty,a!=null?t.on.input(t.emitValue(a)):t.Empty)})},ht=n=>{const{controller:e,element:l,separator:r,showMove:a=!0,showRemove:h=!0,showAdd:o=!0,createItem:d,addLabel:p,controlsLayout:m="aside",removeDisabled:u,addDisabled:b}=n,y=t.Value.toSignal(m).map(v=>v==="aside"),c=v=>{const C=t.When(a??!1,()=>t.html.div(t.attr.class("bc-group--align-center"),t.attr.class(y.map(f=>f?"bc-group--direction-column bc-group--gap-1":"bc-group--direction-row bc-group--gap-1")),$.Button({size:"xs",roundedness:"full",variant:"text",onClick:()=>v.move("up"),disabled:v.cannotMove("up")},t.Use(_.BeatUII18n,f=>_.Icon({size:"xs",icon:"line-md:arrow-up",title:f.$.incrementValue}))),$.Button({size:"xs",roundedness:"full",variant:"text",onClick:()=>v.move("down"),disabled:v.cannotMove("down")},t.Use(_.BeatUII18n,f=>_.Icon({size:"xs",icon:"line-md:arrow-down",title:f.$.decrementValue}))))),i=t.When(h,()=>t.Use(_.BeatUII18n,f=>B.CloseButton({size:"xs",label:t.Value.map(f.$.removeItem,w=>w.toLowerCase()),color:"danger",disabled:u,onClick:v.remove})));return f=>t.When(y,()=>W(t.attr.class("bc-group--gap-1 bc-group--align-center"),R.Stack(t.attr.class("bc-stack--grow"),f),R.Stack(t.attr.class("bc-stack--align-center"),t.When(e.signal.map(w=>w.length>1),()=>C),i)),()=>R.Stack(t.attr.class("bc-stack--gap-2"),f,W(t.attr.class("bc-group--gap-2 bc-group--justify-between"),t.When(e.signal.map(w=>w.length>1),()=>C,()=>t.html.div()),i)))},g=t.When(t.computedOf(o,d)((v,C)=>v&&C!=null),()=>W(t.attr.class("bc-group--gap-2 bc-group--align-center bc-group--justify-center"),$.Button({size:"sm",variant:"filled",onClick:()=>e.push(d()),disabled:t.computedOf(e.disabled,b??!1)((v,C)=>v||C)},t.Use(_.BeatUII18n,v=>W(t.attr.class("bc-group--gap-2"),_.Icon({icon:"line-md:plus"}),p??v.$.addLabel)))));return t.Fragment(pt(e,v=>c(v)(l(v)),r),g)},Nt=(n,...e)=>{const{controller:l,element:r,separator:a,showMove:h,showRemove:o,showAdd:d,createItem:p,addLabel:m,controlsLayout:u,removeDisabled:b,addDisabled:y,...c}=n;return B.InputWrapper({...c,content:ht({controller:l,element:r,separator:a,showMove:h,showRemove:o,showAdd:d,createItem:p,addLabel:m,controlsLayout:u,removeDisabled:b,addDisabled:y})},...e)};class Wt extends B.Controller{branches;activeBranch;#e;#t=new Map;constructor(e,l,r,a,h,o,d=B.O){super(e,l,r,a,h,d),this.branches=o;const p=u=>{for(const b of o)if(b.detect(u))return b.key;return o[0]?.key??"unknown"};this.activeBranch=r.map(p,B.O);const m=u=>{if(this.#t.has(u))return this.#t.get(u);const b=o.find(c=>c.key===u);if(!b)throw new Error(`Unknown branch: ${u}`);const y=new B.Controller([...e,u],c=>{this.change(c)},this.signal.map(c=>b.detect(c)?c:b.defaultValue(),d),a.map(B.makeMapValidation([u])),{disabled:this.disabled,validationMode:this.parent.validationMode},d);return this.#t.set(u,y),y};this.#e=this.activeBranch.map(u=>m(u),B.O),this.onDispose(()=>{for(const u of this.#t.values())u.dispose();this.#t.clear(),this.activeBranch.dispose(),this.#e.dispose()})}get activeController(){return t.Value.get(this.#e)}getBranchController(e){const l=this.branches.find(a=>a.key===e);if(!l)throw new Error(`Unknown branch: ${e}`);if(this.#t.has(e))return this.#t.get(e);const r=new B.Controller([...this.path,e],a=>{this.change(a)},this.signal.map(a=>l.detect(a)?a:l.defaultValue(),B.O),this.status.map(B.makeMapValidation([e])),{disabled:this.disabled,validationMode:this.parent.validationMode},B.O);return this.#t.set(e,r),r}switchToBranch(e,l=!1){const r=this.branches.find(o=>o.key===e);if(!r)throw new Error(`Unknown branch: ${e}`);const a=t.Value.get(this.signal);if(r.detect(a))return!0;if(r.convert){const o=r.convert(a);if(o.ok)return this.change(o.value),!0}if(l&&typeof window=="object"&&typeof window.confirm=="function"&&!window.confirm("Changing type will clear the current value. Continue?"))return!1;const h=r.defaultValue();return this.change(h),!0}get activeBranchDefinition(){const e=t.Value.get(this.activeBranch);return this.branches.find(l=>l.key===e)}}function Rt(n){return n.transform(e=>e??null,e=>e??void 0)}function Pt(n){return n.transform(e=>e??"",e=>e===""?void 0:e)}function jt(n){return n.transform(e=>e??void 0,e=>e??null)}function j(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)&&Object.prototype.toString.call(n)==="[object Object]"}function bt(n,e){if(e==null)return at(n);if(n==null)return e;if(j(n)&&j(e)){const l={...e};for(const r of Object.keys(n))l[r]===void 0?l[r]=at(n[r]):j(n[r])&&j(l[r])&&(l[r]=bt(n[r],l[r]));return l}return e}function at(n){return typeof structuredClone=="function"?structuredClone(n):JSON.parse(JSON.stringify(n))}exports.BaseListControl=ht;exports.BaseNativeSelectControl=ct;exports.Expando=ot;exports.FilesInput=_t;exports.Group=W;exports.ListControl=Nt;exports.ListInput=pt;exports.MaskInput=X;exports.NativeSelect=ut;exports.NativeSelectControl=Dt;exports.NullableDurationInput=Mt;exports.NullableNumberInput=Tt;exports.NullableResetAfter=Q;exports.NumberInput=St;exports.SegmentedInput=Ct;exports.TextArea=Bt;exports.UUIDInput=Ft;exports.UnionController=Wt;exports.UnstyledDropZone=q;exports.UrlInput=Lt;exports.WithTemporal=dt;exports.deepMergeDefaults=bt;exports.durationMaskConfig=mt;exports.emitExpando=Et;exports.emitOptionExpando=st;exports.ensureTemporal=Z;exports.transformEmptyStringToUndefined=Pt;exports.transformNullToUndefined=Rt;exports.transformUndefinedToNull=jt;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Value as i, Use as H, computedOf as S, html as k, attr as o, on as T, aria as F, Fragment as B, input as R, Empty as N, emitValue as x } from "@tempots/dom";
|
|
2
|
-
import { F as X, M as A, N as j, W as $, d as Y } from "./deep-merge-
|
|
3
|
-
import {
|
|
4
|
-
import { S as
|
|
5
|
-
|
|
2
|
+
import { F as X, M as A, N as j, W as $, d as Y } from "./deep-merge-CiOwVWn8.js";
|
|
3
|
+
import { B as q, I as M } from "./translations-Cq8bUKJP.js";
|
|
4
|
+
import { S as G } from "./stack-BJgsPJ9A.js";
|
|
5
|
+
import { a as L, C as Q } from "./text-input-CFJntP7G.js";
|
|
6
|
+
const ln = (n) => {
|
|
6
7
|
const {
|
|
7
8
|
value: t,
|
|
8
9
|
onInput: p,
|
|
@@ -26,7 +27,7 @@ const en = (n) => {
|
|
|
26
27
|
} catch {
|
|
27
28
|
return null;
|
|
28
29
|
}
|
|
29
|
-
},
|
|
30
|
+
}, un = (n) => {
|
|
30
31
|
const { value: t, step: p, min: r, max: l, onChange: u, onInput: f, after: I } = n, h = (b) => {
|
|
31
32
|
const a = r != null ? i.get(r) : void 0, c = l != null ? i.get(l) : void 0;
|
|
32
33
|
return a != null && b < a ? a : c != null && b > c ? c : b;
|
|
@@ -43,7 +44,7 @@ const en = (n) => {
|
|
|
43
44
|
const P = h(y);
|
|
44
45
|
P !== d && u && u(P);
|
|
45
46
|
};
|
|
46
|
-
return
|
|
47
|
+
return G(
|
|
47
48
|
o.class("bc-number-input-steppers"),
|
|
48
49
|
k.button(
|
|
49
50
|
o.type("button"),
|
|
@@ -100,7 +101,7 @@ const en = (n) => {
|
|
|
100
101
|
} catch {
|
|
101
102
|
return null;
|
|
102
103
|
}
|
|
103
|
-
},
|
|
104
|
+
}, an = (n) => {
|
|
104
105
|
const { value: t, step: p, min: r, max: l, onChange: u, onInput: f, after: I } = n, h = (a) => {
|
|
105
106
|
const c = r != null ? i.get(r) : void 0, V = l != null ? i.get(l) : void 0;
|
|
106
107
|
return c != null && a < c ? c : V != null && a > V ? V : a;
|
|
@@ -123,7 +124,7 @@ const en = (n) => {
|
|
|
123
124
|
const U = h(C);
|
|
124
125
|
U !== v && u && u(U);
|
|
125
126
|
};
|
|
126
|
-
return
|
|
127
|
+
return G(
|
|
127
128
|
o.class("bc-number-input-steppers"),
|
|
128
129
|
o.type("button"),
|
|
129
130
|
k.button(
|
|
@@ -182,10 +183,10 @@ function J(n) {
|
|
|
182
183
|
return (t) => {
|
|
183
184
|
const { value: p, onBlur: r, onChange: l } = t;
|
|
184
185
|
return $(
|
|
185
|
-
(u) =>
|
|
186
|
+
(u) => L({
|
|
186
187
|
...t,
|
|
187
188
|
input: R[n.inputType](
|
|
188
|
-
|
|
189
|
+
Q(t),
|
|
189
190
|
o.value(i.map(p, n.valueToString)),
|
|
190
191
|
o.class("bc-input"),
|
|
191
192
|
r != null ? T.blur(x(r)) : N,
|
|
@@ -199,10 +200,10 @@ function K(n) {
|
|
|
199
200
|
return (t) => {
|
|
200
201
|
const { value: p, onBlur: r, onChange: l, onInput: u, after: f, disabled: I } = t, h = j(p, I, l ?? u);
|
|
201
202
|
return $(
|
|
202
|
-
(g) =>
|
|
203
|
+
(g) => L({
|
|
203
204
|
...t,
|
|
204
205
|
input: R[n.inputType](
|
|
205
|
-
|
|
206
|
+
Q(t),
|
|
206
207
|
o.value(
|
|
207
208
|
i.map(p, (m) => m == null ? "" : n.valueToString(m))
|
|
208
209
|
),
|
|
@@ -224,31 +225,31 @@ function K(n) {
|
|
|
224
225
|
);
|
|
225
226
|
};
|
|
226
227
|
}
|
|
227
|
-
const
|
|
228
|
+
const rn = J({
|
|
228
229
|
inputType: "date",
|
|
229
230
|
valueToString: (n) => n.toString(),
|
|
230
231
|
parseValue: (n, t) => n.PlainDate.from(t)
|
|
231
|
-
}),
|
|
232
|
+
}), sn = K({
|
|
232
233
|
inputType: "date",
|
|
233
234
|
valueToString: (n) => n.toString(),
|
|
234
235
|
parseValue: (n, t) => n.PlainDate.from(t)
|
|
235
|
-
}),
|
|
236
|
+
}), on = J({
|
|
236
237
|
inputType: "time",
|
|
237
238
|
valueToString: (n) => n.toString(),
|
|
238
239
|
parseValue: (n, t) => n.PlainTime.from(t)
|
|
239
|
-
}),
|
|
240
|
+
}), cn = K({
|
|
240
241
|
inputType: "time",
|
|
241
242
|
valueToString: (n) => n.toString(),
|
|
242
243
|
parseValue: (n, t) => n.PlainTime.from(t)
|
|
243
|
-
}),
|
|
244
|
+
}), pn = J({
|
|
244
245
|
inputType: "datetime-local",
|
|
245
246
|
valueToString: (n) => n.toJSON(),
|
|
246
247
|
parseValue: (n, t) => n.PlainDateTime.from(t)
|
|
247
|
-
}),
|
|
248
|
+
}), mn = K({
|
|
248
249
|
inputType: "datetime-local",
|
|
249
250
|
valueToString: (n) => n.toJSON(),
|
|
250
251
|
parseValue: (n, t) => n.PlainDateTime.from(t)
|
|
251
|
-
}),
|
|
252
|
+
}), bn = (n) => {
|
|
252
253
|
const { value: t, onChange: p } = n;
|
|
253
254
|
return $(
|
|
254
255
|
(r) => A({
|
|
@@ -262,16 +263,16 @@ const an = J({
|
|
|
262
263
|
);
|
|
263
264
|
};
|
|
264
265
|
export {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
266
|
+
un as B,
|
|
267
|
+
bn as D,
|
|
268
|
+
ln as F,
|
|
269
|
+
an as N,
|
|
270
|
+
on as P,
|
|
271
|
+
cn as a,
|
|
272
|
+
mn as b,
|
|
273
|
+
pn as c,
|
|
274
|
+
sn as d,
|
|
275
|
+
rn as e,
|
|
275
276
|
J as f,
|
|
276
277
|
K as g
|
|
277
278
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("@tempots/dom"),V=require("./deep-merge-DxZqCkE5.cjs"),y=require("./translations-B4-Zd2LM.cjs"),q=require("./stack-DcZ_u50f.cjs"),P=require("./text-input-CByq5OIo.cjs"),E=n=>{const{value:e,onInput:c,onChange:i,...u}=n;return V.FilesInput({...u,maxFiles:1,value:t.Value.map(e,a=>a==null?[]:[a]),onChange:a=>{i?.(a[0])},onInput:a=>{c?.(a[0])}})},M=n=>{try{return BigInt(n)}catch{return null}},w=n=>{const{value:e,step:c,min:i,max:u,onChange:a,onInput:d,after:I}=n,f=m=>{const r=i!=null?t.Value.get(i):void 0,s=u!=null?t.Value.get(u):void 0;return r!=null&&m<r?r:s!=null&&m>s?s:m},g=c!=null?t.Use(y.BeatUII18n,m=>{const r=t.computedOf(e,i)((o,l)=>l==null?!0:(o??0n)>l),s=t.computedOf(e,u)((o,l)=>l==null?!0:(o??0n)<l),T=(o,l)=>{const b=t.Value.get(e)??0n,h=t.Value.get(c),x=l?.shiftKey?10n:1n,C=b+h*x*o,v=i!=null?t.Value.get(i):void 0,S=u!=null?t.Value.get(u):void 0;if(o<0n&&v!=null&&C<v||o>0n&&S!=null&&C>S)return;const D=f(C);D!==b&&a&&a(D)};return q.Stack(t.attr.class("bc-number-input-steppers"),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(s,n.disabled??!1)((o,l)=>!o||l)),t.on.click(o=>T(1n,o)),t.aria.label(m.$.incrementValue),y.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(r,n.disabled??!1)((o,l)=>!o||l)),t.on.click(o=>T(-1n,o)),t.aria.label(m.$.decrementValue),y.Icon({icon:"line-md:minus",size:"xs"})))}):null,p=I!=null&&g!=null?t.Fragment(g,I):I??g,k=a?m=>{const r=M(m);r!=null&&a(f(r))}:void 0,O=d?m=>{const r=M(m);r!=null&&d(f(r))}:void 0;return V.MaskInput({...n,value:t.Value.map(e,m=>m.toString()),onChange:k,onInput:O,after:p,mask:null,allowMode:"digits",class:"bc-number-input"})},A=n=>{if(n==null||n==="")return null;try{return BigInt(n)}catch{return null}},z=n=>{const{value:e,step:c,min:i,max:u,onChange:a,onInput:d,after:I}=n,f=r=>{const s=i!=null?t.Value.get(i):void 0,T=u!=null?t.Value.get(u):void 0;return s!=null&&r<s?s:T!=null&&r>T?T:r},g=c!=null?t.Use(y.BeatUII18n,r=>{const s=t.computedOf(e,i)((l,b)=>{const h=l??0n;return b==null?!0:h>b}),T=t.computedOf(e,u)((l,b)=>{const h=l??0n;return b==null?!0:h<b}),o=(l,b)=>{const h=t.Value.get(e)??0n,x=t.Value.get(c),C=b?.shiftKey?10n:1n,v=h+x*C*l,S=i!=null?t.Value.get(i):void 0,D=u!=null?t.Value.get(u):void 0;if(l<0n&&S!=null&&v<S||l>0n&&D!=null&&v>D)return;const F=f(v);F!==h&&a&&a(F)};return q.Stack(t.attr.class("bc-number-input-steppers"),t.attr.type("button"),t.html.button(t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),t.attr.disabled(t.computedOf(T,n.disabled??!1)((l,b)=>!l||b)),t.on.click(l=>o(1n,l)),t.aria.label(r.$.incrementValue),y.Icon({icon:"line-md:plus",size:"xs"})),t.html.button(t.attr.type("button"),t.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),t.attr.disabled(t.computedOf(s,n.disabled??!1)((l,b)=>!l||b)),t.on.click(l=>o(-1n,l)),t.aria.label(r.$.decrementValue),y.Icon({icon:"line-md:minus",size:"xs"})))}):null,p=V.NullableResetAfter(e,n.disabled,a??d),k=I!=null&&g!=null?t.Fragment(g,p,I):I!=null?t.Fragment(p,I):g!=null?t.Fragment(g,p):p,O=a?r=>{const s=A(r);a(s===null?null:f(s))}:void 0,m=d?r=>{const s=A(r);d(s===null?null:f(s))}:void 0;return V.MaskInput({...n,value:t.Value.map(e,r=>r==null?"":r.toString()),onChange:O,onInput:m,after:k,mask:null,allowMode:"digits",class:"bc-number-input"})};function N(n){return e=>{const{value:c,onBlur:i,onChange:u}=e;return V.WithTemporal(a=>P.InputContainer({...e,input:t.input[n.inputType](P.CommonInputAttributes(e),t.attr.value(t.Value.map(c,n.valueToString)),t.attr.class("bc-input"),i!=null?t.on.blur(t.emitValue(i)):t.Empty,u!=null?t.on.change(t.emitValue(d=>u(n.parseValue(a,d)))):t.Empty)}))}}function B(n){return e=>{const{value:c,onBlur:i,onChange:u,onInput:a,after:d,disabled:I}=e,f=V.NullableResetAfter(c,I,u??a);return V.WithTemporal(g=>P.InputContainer({...e,input:t.input[n.inputType](P.CommonInputAttributes(e),t.attr.value(t.Value.map(c,p=>p==null?"":n.valueToString(p))),t.attr.class("bc-input"),i!=null?t.on.blur(t.emitValue(i)):t.Empty,u!=null?t.on.change(t.emitValue(p=>u(p===""?null:n.parseValue(g,p)))):t.Empty,a!=null?t.on.input(t.emitValue(p=>a(p===""?null:n.parseValue(g,p)))):t.Empty),after:d!=null?t.Fragment(f,d):f}))}}const U=N({inputType:"date",valueToString:n=>n.toString(),parseValue:(n,e)=>n.PlainDate.from(e)}),$=B({inputType:"date",valueToString:n=>n.toString(),parseValue:(n,e)=>n.PlainDate.from(e)}),W=N({inputType:"time",valueToString:n=>n.toString(),parseValue:(n,e)=>n.PlainTime.from(e)}),J=B({inputType:"time",valueToString:n=>n.toString(),parseValue:(n,e)=>n.PlainTime.from(e)}),K=N({inputType:"datetime-local",valueToString:n=>n.toJSON(),parseValue:(n,e)=>n.PlainDateTime.from(e)}),R=B({inputType:"datetime-local",valueToString:n=>n.toJSON(),parseValue:(n,e)=>n.PlainDateTime.from(e)}),H=n=>{const{value:e,onChange:c}=n;return V.WithTemporal(i=>V.MaskInput({...n,value:t.Value.map(e,u=>u.toString()),onChange:c?u=>c(i.Duration.from(u)):void 0,onInput:void 0,...V.durationMaskConfig(i.Duration.from),placeholder:"P0DT0H0M0S"}))};exports.BigintInput=w;exports.DurationInput=H;exports.FileInput=E;exports.NullableBigintInput=z;exports.NullablePlainDateInput=$;exports.NullablePlainDateTimeInput=R;exports.NullablePlainTimeInput=J;exports.PlainDateInput=U;exports.PlainDateTimeInput=K;exports.PlainTimeInput=W;exports.createNullableTemporalInput=B;exports.createTemporalInput=N;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-B4-Zd2LM.cjs"),t={loadingExtended:"Cargando, por favor espere",loadingShort:"Cargando...",locale:"Idioma",iconDescription:"Icono",loadingIcon:"Icono de carga",failedToLoadIcon:"Error al cargar el icono",editLabel:"Editar",selectOne:"Seleccionar uno",selectNone:"Ninguno",selectMany:"Seleccionar varios",noResults:"Sin resultados",passwordPlaceholderText:"Contraseña Secreta",togglePasswordVisibility:"Alternar visibilidad de contraseña",toggleMenu:"Alternar menú",toggleAside:"Alternar panel lateral",mainNavigation:"Navegación principal",sidebar:"Barra lateral",closeDrawer:"Cerrar cajón",closeModal:"Cerrar modal",confirm:"Confirmar",cancel:"Cancelar",addLabel:"Agregar",removeItem:"Eliminar elemento",currentLocale:"Español",ar:"Árabe",de:"Alemán",en:"Inglés",es:"Español",fr:"Francés",hi:"Hindi",it:"Italiano",ja:"Japonés",ko:"Coreano",nl:"Neerlandés",pl:"Polaco",pt:"Portugués",ru:"Ruso",tr:"Turco",vi:"Vietnamita",zh:"Chino",he:"Hebreo",fa:"Persa",ur:"Urdu",emailPlaceholderText:"Correo electrónico",incrementValue:"Incrementar valor",decrementValue:"Decrementar valor",dropZoneInstructions:a=>a?"Haz clic para elegir o arrastra archivos aquí, o presiona Enter o Espacio para abrir el selector de archivos":"Arrastra archivos aquí",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Eliminar archivo",clearAllFiles:"Borrar todos los archivos",clearValue:"Borrar valor",unknownType:"Tipo desconocido",filesInputInstructions:(a,e,o)=>{let n=a==null||a>1?"Haz clic para elegir o arrastra archivos aquí":"Haz clic para elegir o arrastra un archivo aquí";if(a||e){const r=[];if(a!=null&&a>1&&r.push(`hasta ${a} archivos`),e&&o){const i=l.formatFileSize(e,{units:o});r.push(`máx ${i} cada uno`)}r.length>0&&(n+=` (${r.join(", ")})`)}return n},prosemirror:{bold:"Negrita",italic:"Cursiva",code:"Código en línea",link:"Insertar enlace",removeLink:"Eliminar enlace",heading:a=>`Encabezado ${a}`,bulletList:"Lista con viñetas",orderedList:"Lista numerada",blockquote:"Cita",codeBlock:"Bloque de código",horizontalRule:"Línea horizontal",linkUrlPlaceholder:"https://ejemplo.com"},pdfPageViewer:{loading:"Cargando PDF...",loadFailed:"Error al cargar el PDF",invalidPdf:"Archivo PDF inválido",pageOutOfRange:(a,e)=>`La página ${a} está fuera de rango (1-${e})`,renderFailed:"Error al renderizar la página del PDF"}};exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-B4-Zd2LM.cjs"),a={loadingExtended:"در حال بارگذاری، لطفاً صبر کنید",loadingShort:"در حال بارگذاری...",locale:"زبان",iconDescription:"نماد",loadingIcon:"نماد بارگذاری",failedToLoadIcon:"بارگذاری نماد ناموفق بود",editLabel:"ویرایش",selectOne:"یکی را انتخاب کنید",selectNone:"هیچکدام",selectMany:"چند مورد را انتخاب کنید",noResults:"بدون نتیجه",passwordPlaceholderText:"رمز عبور محرمانه",togglePasswordVisibility:"نمایش/مخفی کردن رمز عبور",toggleMenu:"نمایش/مخفی کردن منو",toggleAside:"نمایش/مخفی کردن پانل کناری",mainNavigation:"ناوبری اصلی",sidebar:"نوار کناری",closeDrawer:"بستن کشو",closeModal:"بستن پنجره",confirm:"تأیید",cancel:"لغو",addLabel:"افزودن",removeItem:"حذف مورد",currentLocale:"فارسی",ar:"عربی",de:"آلمانی",en:"انگلیسی",es:"اسپانیایی",fr:"فرانسوی",he:"عبری",hi:"هندی",it:"ایتالیایی",ja:"ژاپنی",ko:"کرهای",nl:"هلندی",pl:"لهستانی",pt:"پرتغالی",ru:"روسی",tr:"ترکی",vi:"ویتنامی",zh:"چینی",fa:"فارسی",ur:"اردو",emailPlaceholderText:"ایمیل خود را وارد کنید",incrementValue:"افزایش مقدار",decrementValue:"کاهش مقدار",dropZoneInstructions:e=>e?"برای انتخاب کلیک کنید یا فایلها را بکشید، یا Enter یا Space را فشار دهید تا انتخابگر فایل باز شود":"فایلها را بکشید",fileSizeUnits:["بایت","کیلوبایت","مگابایت","گیگابایت","ترابایت"],removeFile:"حذف فایل",clearAllFiles:"حذف همه فایلها",clearValue:"حذف مقدار",unknownType:"نوع ناشناخته",filesInputInstructions:(e,o,t)=>{let n=e==null||e>1?"برای انتخاب کلیک کنید یا فایلها را بکشید":"برای انتخاب کلیک کنید یا فایل را بکشید";if(e||o){const l=[];if(e!=null&&e>1&&l.push(`تا ${e} فایل`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`حداکثر ${i} هر کدام`)}l.length>0&&(n+=` (${l.join("، ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-B4-Zd2LM.cjs"),t={loadingExtended:"Chargement, veuillez patienter",loadingShort:"Chargement...",locale:"Langue",iconDescription:"Icône",loadingIcon:"Icône de chargement",failedToLoadIcon:"Échec du chargement de l'icône",editLabel:"Modifier",selectOne:"Sélectionner un",selectNone:"Aucun",selectMany:"Sélectionner plusieurs",noResults:"Aucun résultat",passwordPlaceholderText:"Mot de passe secret",togglePasswordVisibility:"Basculer la visibilité du mot de passe",toggleMenu:"Basculer le menu",toggleAside:"Basculer le panneau latéral",mainNavigation:"Navigation principale",sidebar:"Barre latérale",closeDrawer:"Fermer le tiroir",closeModal:"Fermer la modale",confirm:"Confirmer",cancel:"Annuler",addLabel:"Ajouter",removeItem:"Supprimer l’élément",currentLocale:"Français",ar:"Arabe",de:"Allemand",en:"Anglais",es:"Espagnol",fr:"Français",hi:"Hindi",it:"Italien",ja:"Japonais",ko:"Coréen",nl:"Néerlandais",pl:"Polonais",pt:"Portuguais",ru:"Russe",tr:"Turc",vi:"Vietnamien",zh:"Chinois",he:"Hébreu",fa:"Persan",ur:"Ourdou",emailPlaceholderText:"Entrez votre e-mail",incrementValue:"Incrémenter la valeur",decrementValue:"Décrémenter la valeur",dropZoneInstructions:e=>e?"Cliquez pour choisir ou glissez des fichiers ici, ou appuyez sur Entrée ou Espace pour ouvrir le sélecteur de fichiers":"Glissez des fichiers ici",fileSizeUnits:["Octets","Ko","Mo","Go","To"],removeFile:"Supprimer le fichier",clearAllFiles:"Effacer tous les fichiers",clearValue:"Réinitialiser",unknownType:"Type inconnu",filesInputInstructions:(e,i,n)=>{let l=e==null||e>1?"Cliquez pour choisir ou glissez des fichiers ici":"Cliquez pour choisir ou glissez un fichier ici";if(e||i){const r=[];if(e!=null&&e>1&&r.push(`jusqu'à ${e} fichiers`),i&&n){const o=a.formatFileSize(i,{units:n});r.push(`max ${o} chacun`)}r.length>0&&(l+=` (${r.join(", ")})`)}return l},prosemirror:{bold:"Gras",italic:"Italique",code:"Code en ligne",link:"Insérer un lien",removeLink:"Supprimer le lien",heading:e=>`Titre ${e}`,bulletList:"Liste à puces",orderedList:"Liste numérotée",blockquote:"Citation",codeBlock:"Bloc de code",horizontalRule:"Ligne horizontale",linkUrlPlaceholder:"https://exemple.com"},pdfPageViewer:{loading:"Chargement du PDF...",loadFailed:"Échec du chargement du PDF",invalidPdf:"Fichier PDF invalide",pageOutOfRange:(e,i)=>`La page ${e} est hors limites (1-${i})`,renderFailed:"Échec du rendu de la page PDF"}};exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-B4-Zd2LM.cjs"),a={loadingExtended:"טוען, אנא המתן",loadingShort:"טוען...",locale:"שפה",iconDescription:"סמל",loadingIcon:"סמל טעינה",failedToLoadIcon:"נכשל בטעינת הסמל",editLabel:"עריכה",selectOne:"בחר אחד",selectNone:"ללא",selectMany:"בחר מספר",noResults:"אין תוצאות",passwordPlaceholderText:"סיסמה סודית",togglePasswordVisibility:"הצג/הסתר סיסמה",toggleMenu:"הצג/הסתר תפריט",toggleAside:"הצג/הסתר פאנל צדדי",mainNavigation:"ניווט ראשי",sidebar:"סרגל צדדי",closeDrawer:"סגור מגירה",closeModal:"סגור חלון קופץ",confirm:"אישור",cancel:"ביטול",addLabel:"הוסף",removeItem:"הסר פריט",currentLocale:"עברית",ar:"ערבית",de:"גרמנית",en:"אנגלית",es:"ספרדית",fr:"צרפתית",he:"עברית",hi:"הינדי",it:"איטלקית",ja:"יפנית",ko:"קוריאנית",nl:"הולנדית",pl:"פולנית",pt:"פורטוגזית",ru:"רוסית",tr:"טורקית",vi:"וייטנאמית",zh:"סינית",fa:"פרסית",ur:"אורדו",emailPlaceholderText:'הכנס את כתובת הדוא"ל',incrementValue:"הגדלת ערך",decrementValue:"הקטנת ערך",dropZoneInstructions:e=>e?"לחץ לבחירה או גרור קבצים כאן, או לחץ Enter או רווח לפתיחת בורר הקבצים":"גרור קבצים כאן",fileSizeUnits:["בתים","ק״ב","מ״ב","ג״ב","ט״ב"],removeFile:"הסר קובץ",clearAllFiles:"נקה את כל הקבצים",clearValue:"נקה ערך",unknownType:"סוג לא ידוע",filesInputInstructions:(e,o,t)=>{let n=e==null||e>1?"לחץ לבחירה או גרור קבצים כאן":"לחץ לבחירה או גרור קובץ כאן";if(e||o){const l=[];if(e!=null&&e>1&&l.push(`עד ${e} קבצים`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`מקסימום ${i} כל אחד`)}l.length>0&&(n+=` (${l.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-B4-Zd2LM.cjs"),a={loadingExtended:"लोड हो रहा है, कृपया प्रतीक्षा करें",loadingShort:"लोड हो रहा है...",locale:"स्थानीय",iconDescription:"आइकन",loadingIcon:"लोडिंग आइकन",failedToLoadIcon:"आइकन लोड करने में विफल",editLabel:"संपादित करें",selectOne:"एक चुनें",selectNone:"कोई नहीं",selectMany:"बहुत चुनें",noResults:"कोई परिणाम नहीं",passwordPlaceholderText:"गुप्त पासवर्ड",togglePasswordVisibility:"पासवर्ड दृश्यता टॉगल करें",toggleMenu:"मेनू टॉगल करें",toggleAside:"साइड पैनल टॉगल करें",mainNavigation:"मुख्य नेवीगेशन",sidebar:"साइडबार",closeDrawer:"ड्रॉअर बंद करें",closeModal:"मॉडल बंद करें",confirm:"पुष्टि करें",cancel:"रद्द करें",addLabel:"जोड़ें",removeItem:"आइटम हटाएं",currentLocale:"हिंदी",ar:"अरबी",de:"जर्मन",en:"अंग्रेज़ी",es:"स्पेनिश",fr:"फ्रेंच",hi:"हिन्दी",it:"इतालवी",ja:"जापानी",ko:"कोरियाई",nl:"डच",pl:"पोलिश",pt:"पोर्तुगीज",ru:"रूसी",tr:"तुर्की",vi:"वियतनामी",zh:"चीनी",he:"हिब्रू",fa:"फारसी",ur:"उर्दू",emailPlaceholderText:"अपना ईमेल दर्ज करें",incrementValue:"वृद्धि मान",decrementValue:"घटाना मान",dropZoneInstructions:e=>e?"चुनने के लिए क्लिक करें या फ़ाइलें यहाँ खींचें, या फाइल चयनकर्ता खोलने के लिए Enter या Space दबाएं":"फ़ाइलें यहाँ खींचें",fileSizeUnits:["बाइट्स","KB","MB","GB","TB"],removeFile:"फ़ाइल हटाएं",clearAllFiles:"सभी फ़ाइलें हटाएं",clearValue:"वृद्धि मान",unknownType:"अज्ञात प्रकार",filesInputInstructions:(e,o,t)=>{let n=e==null||e>1?"चुनने के लिए क्लिक करें या फ़ाइलें यहाँ खींचें":"चुनने के लिए क्लिक करें या फ़ाइल यहाँ खींचें";if(e||o){const l=[];if(e!=null&&e>1&&l.push(`अधिकतम ${e} फ़ाइलें`),o&&t){const i=r.formatFileSize(o,{units:t});l.push(`प्रत्येक अधिकतम ${i}`)}l.length>0&&(n+=` (${l.join(", ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-ChsRjiIp.cjs");function S(f,t=null){return function(e,n){let{$from:o,$to:l}=e.selection,i=o.blockRange(l);if(!i)return!1;let d=n?e.tr:null;return h(d,i,f,t)?(n&&n(d.scrollIntoView()),!0):!1}}function h(f,t,e,n=null){let o=!1,l=t,i=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(e)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let u=i.resolve(t.start-2);l=new r.NodeRange(u,u,t.depth),t.endIndex<t.parent.childCount&&(t=new r.NodeRange(t.$from,i.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let d=r.findWrapping(l,e,n,t);return d?(f&&$(f,t,d,o,e),!0):!1}function $(f,t,e,n,o){let l=r.Fragment.empty;for(let p=e.length-1;p>=0;p--)l=r.Fragment.from(e[p].type.create(e[p].attrs,l));f.step(new r.ReplaceAroundStep(t.start-(n?2:0),t.end,t.start,t.end,new r.Slice(l,0,0),e.length,!0));let i=0;for(let p=0;p<e.length;p++)e[p].type==o&&(i=p+1);let d=e.length-i,u=t.start+e.length-(n?2:0),m=t.parent;for(let p=t.startIndex,s=t.endIndex,c=!0;p<s;p++,c=!1)!c&&r.canSplit(f.doc,u,d)&&(f.split(u,d),u+=2*d),u+=m.child(p).nodeSize;return f}function R(f){return function(t,e){let{$from:n,$to:o}=t.selection,l=n.blockRange(o,i=>i.childCount>0&&i.firstChild.type==f);return l?e?n.node(l.depth-1).type==f?x(t,e,f,l):F(t,e,l):!0:!1}}function x(f,t,e,n){let o=f.tr,l=n.end,i=n.$to.end(n.depth);l<i&&(o.step(new r.ReplaceAroundStep(l-1,i,l,i,new r.Slice(r.Fragment.from(e.create(null,n.parent.copy())),1,0),1,!0)),n=new r.NodeRange(o.doc.resolve(n.$from.pos),o.doc.resolve(i),n.depth));const d=r.liftTarget(n);if(d==null)return!1;o.lift(n,d);let u=o.doc.resolve(o.mapping.map(l,-1)-1);return r.canJoin(o.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&o.join(u.pos),t(o.scrollIntoView()),!0}function F(f,t,e){let n=f.tr,o=e.parent;for(let a=e.end,I=e.endIndex-1,y=e.startIndex;I>y;I--)a-=o.child(I).nodeSize,n.delete(a-1,a+1);let l=n.doc.resolve(e.start),i=l.nodeAfter;if(n.mapping.map(e.end)!=e.start+l.nodeAfter.nodeSize)return!1;let d=e.startIndex==0,u=e.endIndex==o.childCount,m=l.node(-1),p=l.index(-1);if(!m.canReplace(p+(d?0:1),p+1,i.content.append(u?r.Fragment.empty:r.Fragment.from(o))))return!1;let s=l.pos,c=s+i.nodeSize;return n.step(new r.ReplaceAroundStep(s-(d?1:0),c+(u?1:0),s+1,c-1,new r.Slice((d?r.Fragment.empty:r.Fragment.from(o.copy(r.Fragment.empty))).append(u?r.Fragment.empty:r.Fragment.from(o.copy(r.Fragment.empty))),d?0:1,u?0:1),d?0:1)),t(n.scrollIntoView()),!0}exports.liftListItem=R;exports.wrapInList=S;exports.wrapRangeInList=h;
|