@tempots/beatui 0.31.0 → 0.32.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/{2019-C660mMK6.js → 2019-BAbSTPyW.js} +2 -2
- package/dist/{2019-BY_FFnZU.cjs → 2019-BMZkvreo.cjs} +1 -1
- package/dist/{2020-C3P-aGet.js → 2020-BQNEk3m-.js} +2 -2
- package/dist/{2020-Cyyhc8pv.cjs → 2020-COaJ7nGc.cjs} +1 -1
- package/dist/{ar-DcFl4tkv.cjs → ar-CqAHPRKu.cjs} +1 -1
- package/dist/{ar-BUxQ3yNv.js → ar-avevuYiW.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +4 -4
- package/dist/beatui.css +186 -5
- package/dist/beatui.tailwind.css +186 -5
- package/dist/{de-DEUS3n0J.cjs → de--4OtRESW.cjs} +1 -1
- package/dist/{de-CKKQr2-K.js → de-Cz7ah611.js} +1 -1
- package/dist/{es-CIeoDpkc.cjs → es-CE1wRgxl.cjs} +1 -1
- package/dist/{es-C5VUn_X1.js → es-CiNQQzF1.js} +1 -1
- package/dist/{fa-gXa9Xdjn.cjs → fa-DjuJZNLK.cjs} +1 -1
- package/dist/{fa-Cs2LZsfr.js → fa-Gkt0b9XN.js} +1 -1
- package/dist/{fr-6SpJ-gVV.cjs → fr-DotyzMGL.cjs} +1 -1
- package/dist/{fr-Dlw8mKFp.js → fr-xM9p9Q6G.js} +1 -1
- package/dist/{he-D9cwxZOb.cjs → he-BQ6ygVEQ.cjs} +1 -1
- package/dist/{he-Cm4NxsyE.js → he-CoO6PsiS.js} +1 -1
- package/dist/{hi-CNRHnMsQ.cjs → hi-BCfJ0mRh.cjs} +1 -1
- package/dist/{hi-Cjz1aQX2.js → hi-DA3-4Cdo.js} +1 -1
- package/dist/{index-klVI8k8O.cjs → index-1_pssujS.cjs} +2 -2
- package/dist/{index-CXY0yKJD.cjs → index-B4irUWVb.cjs} +1 -1
- package/dist/{index-C-FUCwXi.js → index-CDOHHPwQ.js} +4 -4
- package/dist/{index-CYY_JLSN.cjs → index-CFh4D56e.cjs} +1 -1
- package/dist/{index-DwyUOY3r.js → index-Caetcp0r.js} +1 -1
- package/dist/{index-Jd2O_Iux.js → index-DfmwsIle.js} +5 -5
- package/dist/{index-DKy2mZws.cjs → index-DqeaEUPG.cjs} +1 -1
- package/dist/{index-_Kh76-c2.js → index-E76KKV9V.js} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1570 -1492
- package/dist/{it-iuFeIEsO.js → it-EdPuWBJR.js} +1 -1
- package/dist/{it-DvBJ31Ls.cjs → it-pv2Gm3jb.cjs} +1 -1
- package/dist/{ja-D6Dd96v-.js → ja-BSRCR430.js} +1 -1
- package/dist/{ja-FKJGj5My.cjs → ja-CuRaPMgh.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-PqVOGPUi.cjs → ko-C7YP1PL4.cjs} +1 -1
- package/dist/{ko-C8GOsfIU.js → ko-Dm4oD1fh.js} +1 -1
- package/dist/{modal-RQtwnFy9.cjs → modal-CepbiM3u.cjs} +1 -1
- package/dist/{modal-CuhK7DqK.js → modal-eY-3j_zS.js} +2 -2
- package/dist/monaco/index.cjs.js +1 -1
- package/dist/monaco/index.es.js +1 -1
- package/dist/{nl-Ct2cyWWi.js → nl-B0l1kdfd.js} +1 -1
- package/dist/{nl-DAhT0vfu.cjs → nl-ClCD6lP-.cjs} +1 -1
- package/dist/{notice-Dz_BJg8D.js → notice-Ct8ZHvwq.js} +1 -1
- package/dist/{notice-BnX2sRrK.cjs → notice-cpODDUvJ.cjs} +1 -1
- package/dist/{pl-DewgRE-k.js → pl-DVKneBSY.js} +1 -1
- package/dist/{pl-JgD0mCRa.cjs → pl-fyCkqVrr.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-BkoMl_PC.cjs → pt-BHExG3lf.cjs} +1 -1
- package/dist/{pt-CNyp2zeW.js → pt-Bw0sTDOX.js} +1 -1
- package/dist/{ru-U6PdSzha.js → ru-B26VQ4f9.js} +1 -1
- package/dist/{ru-9OW0HQFS.cjs → ru-PuEOLDw1.cjs} +1 -1
- package/dist/theme-B7C5kIJj.cjs +1 -0
- package/dist/theme-DsQOxXW1.js +34 -0
- package/dist/{toolbar-DTh9Ouhs.js → toolbar-ClJbaKID.js} +1 -1
- package/dist/{toolbar-D7fDCmUn.cjs → toolbar-kwkvH3nX.cjs} +1 -1
- package/dist/{tr-DsOaoQqh.cjs → tr-CI97fTpD.cjs} +1 -1
- package/dist/{tr-CQVvooxi.js → tr-DQMivdvy.js} +1 -1
- package/dist/{translations-Cic51rHH.js → translations-1yD6Rm5l.js} +1 -1
- package/dist/{translations-BDRano6u.cjs → translations-DQxg-W9w.cjs} +1 -1
- package/dist/{translations-DDFTHcX3.cjs → translations-ZB5oDFId.cjs} +1 -1
- package/dist/{translations-D4PjDB1t.js → translations-iam7PITs.js} +2 -2
- package/dist/types/components/beatui.d.ts +4 -1
- package/dist/types/components/navigation/tabs/tabs.d.ts +6 -1
- package/dist/types/components/overlay/index.d.ts +1 -0
- package/dist/types/components/overlay/ribbon.d.ts +22 -0
- package/dist/types/components/theme/theme.d.ts +5 -2
- package/dist/{ur-C8v4y2tI.cjs → ur-B3CiO8KH.cjs} +1 -1
- package/dist/{ur-C3LypxEh.js → ur-o3rog5MJ.js} +1 -1
- package/dist/{utils-D8WljbbZ.cjs → utils-CCAYvnZh.cjs} +1 -1
- package/dist/{utils-DY9kZecl.js → utils-CuD-_CDx.js} +2 -2
- package/dist/{vi-M5ObJg3d.js → vi-C7cb2K_B.js} +1 -1
- package/dist/{vi-DzLo7qhK.cjs → vi-FibsLfdk.cjs} +1 -1
- package/dist/{zh-BXk4IZBo.cjs → zh-BtSj_Euh.cjs} +1 -1
- package/dist/{zh-DGA8R46s.js → zh-NGrfqAHM.js} +1 -1
- package/package.json +1 -1
- package/dist/theme-CJVt8QIc.js +0 -34
- package/dist/theme-YS3sFklH.cjs +0 -1
|
@@ -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-DQxg-W9w.cjs"),r={loadingExtended:"Caricamento, attendere prego...",loadingShort:"Caricamento...",locale:"Lingua",iconDescription:"Icona",loadingIcon:"Icona di caricamento",failedToLoadIcon:"Impossibile caricare l'icona",editLabel:"Modifica",selectOne:"Seleziona uno",selectMany:"Seleziona più elementi",noResults:"Nessun risultato",passwordPlaceholderText:"Password Segreta",togglePasswordVisibility:"Attiva/disattiva visibilità password",toggleMenu:"Attiva/disattiva menu",toggleAside:"Attiva/disattiva pannello laterale",mainNavigation:"Navigazione principale",sidebar:"Barra laterale",closeDrawer:"Chiudi cassetto",closeModal:"Chiudi modale",confirm:"Conferma",cancel:"Annulla",addLabel:"Aggiungi",removeItem:"Rimuovi elemento",currentLocale:"Italiano",ar:"Arabo",de:"Tedesco",en:"Inglese",es:"Spagnolo",fr:"Francese",hi:"Hindi",it:"Italiano",ja:"Giapponese",ko:"Coreano",nl:"Olandese",pl:"Polacco",pt:"Portoghese",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Cinese",he:"Ebraico",fa:"Persiano",ur:"Urdu",emailPlaceholderText:"Inserisci la tua email",incrementValue:"Incrementa valore",decrementValue:"Decrementa valore",dropZoneInstructions:e=>e?"Clicca per scegliere o trascina i file qui, o premi Invio o Spazio per aprire il selettore file":"Trascina i file qui",fileSizeUnits:["Byte","KB","MB","GB","TB"],removeFile:"Rimuovi file",clearAllFiles:"Cancella tutti i file",clearValue:"Cancella valore",unknownType:"Tipo sconosciuto",filesInputInstructions:(e,o,a)=>{let t=e==null||e>1?"Clicca per scegliere o trascina i file qui":"Clicca per scegliere o trascina un file qui";if(e||o){const i=[];if(e!=null&&e>1&&i.push(`fino a ${e} file`),o&&a){const n=l.formatFileSize(o,{units:a});i.push(`max ${n} ciascuno`)}i.length>0&&(t+=` (${i.join(", ")})`)}else if(o&&a){const i=l.formatFileSize(o,{units:a});t+=` (max ${i})`}return t},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"}};exports.default=r;
|
|
@@ -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-DQxg-W9w.cjs"),i={loadingExtended:"読み込み中です、お待ちください",loadingShort:"読み込み中...",locale:"ロケール",iconDescription:"アイコン",loadingIcon:"読み込みアイコン",failedToLoadIcon:"アイコンの読み込みに失敗しました",editLabel:"編集",selectOne:"一つ選択",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,t,n)=>{let l=(e==null||e>1,"クリックして選択するか、ファイルをここにドラッグ");if(e||t){const o=[];if(e!=null&&e>1&&o.push(`最大${e}ファイル`),t&&n){const a=r.formatFileSize(t,{units:n});o.push(`各${a}以下`)}o.length>0&&(l+=` (${o.join("、")})`)}else if(t&&n){const o=r.formatFileSize(t,{units:n});l+=` (最大${o})`}return l},prosemirror:{bold:"太字",italic:"斜体",code:"インラインコード",link:"リンクを挿入",removeLink:"リンクを削除",heading:e=>`見出し ${e}`,bulletList:"箇条書き",orderedList:"番号付きリスト",blockquote:"引用",codeBlock:"コードブロック",horizontalRule:"水平線",linkUrlPlaceholder:"https://example.com"}};exports.default=i;exports.ja=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-1_pssujS.cjs");exports.JSONSchemaAllOf=e.JSONSchemaAllOf;exports.JSONSchemaAny=e.JSONSchemaAny;exports.JSONSchemaAnyOf=e.JSONSchemaAnyOf;exports.JSONSchemaArray=e.JSONSchemaArray;exports.JSONSchemaBoolean=e.JSONSchemaBoolean;exports.JSONSchemaConst=e.JSONSchemaConst;exports.JSONSchemaControl=e.JSONSchemaControl;exports.JSONSchemaEnum=e.JSONSchemaEnum;exports.JSONSchemaForm=e.JSONSchemaForm;exports.JSONSchemaGenericControl=e.JSONSchemaGenericControl;exports.JSONSchemaInteger=e.JSONSchemaInteger;exports.JSONSchemaNull=e.JSONSchemaNull;exports.JSONSchemaNumber=e.JSONSchemaNumber;exports.JSONSchemaObject=e.JSONSchemaObject;exports.JSONSchemaOneOf=e.JSONSchemaOneOf;exports.JSONSchemaString=e.JSONSchemaString;exports.JSONSchemaUnion=e.JSONSchemaUnion;exports.SchemaContext=e.SchemaContext;exports.ajvErrorsToControllerValidation=e.ajvErrorsToControllerValidation;exports.ajvErrorsToDependencies=e.ajvErrorsToDependencies;exports.buildMessage=e.buildMessage;exports.buildPath=e.buildPath;exports.clearCaches=e.clearCaches;exports.clearCachesForAjv=e.clearCachesForAjv;exports.compileWithCache=e.compileWithCache;exports.composeEffectiveObjectSchema=e.composeEffectiveObjectSchema;exports.createAJVStandardSchema=e.createAJVStandardSchema;exports.evaluateIfThenElseOverlay=e.evaluateIfThenElseOverlay;exports.evaluateNotViolation=e.evaluateNotViolation;exports.getAjvForSchema=e.getAjvForSchema;exports.getCacheStats=e.getCacheStats;exports.getEvaluatedProperties=e.getEvaluatedProperties;exports.jsonPointerToSegments=e.jsonPointerToSegments;exports.mergeAllOf=e.mergeAllOf;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as s, J as S, T as c, P as o, N as t, I as r, X as m, H as h, Y as O, W as n, L as l, O as N, K as J, Q as i, U as v, M as C, R as u, S as A, w as f, v as g, u as d, t as j, x as E, y as b, A as p, E as y, Z as T, F, D as P, B as V, z as x, G as I, s as B, C as D } from "../index-
|
|
1
|
+
import { V as s, J as S, T as c, P as o, N as t, I as r, X as m, H as h, Y as O, W as n, L as l, O as N, K as J, Q as i, U as v, M as C, R as u, S as A, w as f, v as g, u as d, t as j, x as E, y as b, A as p, E as y, Z as T, F, D as P, B as V, z as x, G as I, s as B, C as D } from "../index-DfmwsIle.js";
|
|
2
2
|
export {
|
|
3
3
|
s as JSONSchemaAllOf,
|
|
4
4
|
S as JSONSchemaAny,
|
|
@@ -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-DQxg-W9w.cjs"),c={loadingExtended:"로딩 중입니다. 잠시만 기다려 주세요",loadingShort:"로딩 중...",locale:"지역",iconDescription:"아이콘",loadingIcon:"로딩 아이콘",failedToLoadIcon:"아이콘 로드 실패",editLabel:"편집",selectOne:"하나 선택",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,t,l)=>{let n=(e==null||e>1,"클릭하여 선택하거나 파일을 여기로 드래그하세요");if(e||t){const o=[];if(e!=null&&e>1&&o.push(`최대 ${e}개 파일`),t&&l){const i=r.formatFileSize(t,{units:l});o.push(`각각 최대 ${i}`)}o.length>0&&(n+=` (${o.join(", ")})`)}else if(t&&l){const o=r.formatFileSize(t,{units:l});n+=` (최대 ${o})`}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"}};exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("@tempots/dom"),w=require("./timer-BdH4cK6a.cjs"),$=require("./notice-BnX2sRrK.cjs"),V=require("./translations-BDRano6u.cjs"),W=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"audio[controls]","video[controls]","details > summary:first-of-type","details[open]"].join(", ");function _(r){return Array.from(r.querySelectorAll(W)).filter(t=>{const s=t;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function B(r={}){const{active:t=!0,escapeDeactivates:s=!0,onEscape:e,initialFocus:a,returnFocus:i,clickOutsideDeactivates:c=!1,onClickOutside:d}=r;return o.WithElement(h=>{let f=t,m=null,u=[];typeof document<"u"&&(m=document.activeElement);const b=()=>{u=_(h)},g=n=>{if(f){if(s&&n.key==="Escape"){n.preventDefault(),e?.();return}if(n.key==="Tab"){if(b(),u.length===0){n.preventDefault();return}const v=u.indexOf(document.activeElement);n.shiftKey?v<=0&&(n.preventDefault(),u[u.length-1]?.focus()):v>=u.length-1&&(n.preventDefault(),u[0]?.focus())}}},p=n=>{if(!f||!c)return;const v=n.target;h.contains(v)||d?.()},y=()=>{if(!f)return;b();let n=null;typeof a=="function"?n=a():a?n=a:u.length>0&&(n=u[0]),n&&setTimeout(()=>{n?.focus()},50),document.addEventListener("keydown",g,!0),c&&document.addEventListener("click",p,!0)},T=()=>{f=!1,document.removeEventListener("keydown",g,!0),document.removeEventListener("click",p,!0);let n=null;typeof i=="function"?n=i():i?n=i:m&&(n=m),n&&document.body.contains(n)&&setTimeout(()=>{n?.focus()},0)};return setTimeout(()=>y(),0),o.OnDispose(()=>{T()})})}function P(r={}){return{activate:()=>B({...r,active:!0}),deactivate:()=>B({...r,active:!1})}}function F({initialStatus:r="closed",openedAfter:t,closedAfter:s}){const e=o.prop(r),a=()=>{e.set("start-opening")},i=()=>{e.set("start-closing")},c=e.map(n=>n!=="closed"&&n!=="start-closing"&&n!=="closing"),d=n=>{n?a():i()},h=()=>{d(!c.value)},f=n=>e.on(v=>{v==="closed"&&n()});let m=()=>{};e.on(n=>{switch(m(),n){case"start-opening":m=w.g(()=>e.set("opening"));break;case"opening":m=t(()=>e.set("opened"));break;case"start-closing":m=w.g(()=>e.set("closing"));break;case"closing":m=s(()=>e.set("closed"));break}}),e.onDispose(()=>m());const u=e.map(n=>n==="closed"),b=e.map(n=>n==="start-opening"),g=e.map(n=>n==="opening"),p=e.map(n=>n==="opened"),y=e.map(n=>n==="closing"),T=e.map(n=>n==="start-closing");return{status:e,open:a,close:i,toggle:h,setOpen:d,display:c,isClosed:u,isStartOpening:b,isOpening:g,isOpened:p,isClosing:y,isStartClosing:T,dispose:()=>e.dispose(),onClosed:f}}function U({initialStatus:r="closed",duration:t,openDuration:s=t??500,closeDuration:e=t??500}={}){return F({initialStatus:r,openedAfter:a=>w.T(a,s),closedAfter:a=>w.T(a,e)})}function q(r,t){let s=!1,e=null;function a(){s||(s=!0,e&&(clearTimeout(e),e=null),t())}function i(f){f.target===r&&a()}function c(f){f.target===r&&a()}const d=()=>{if(typeof r.getAnimations>"u"){e=setTimeout(a,16);return}r.getAnimations().length===0?(r.addEventListener("transitionend",i,{once:!0}),r.addEventListener("animationend",c,{once:!0}),e=setTimeout(a,1e3)):(r.addEventListener("transitionend",i,{once:!0}),r.addEventListener("animationend",c,{once:!0}))},h=w.g(d);return()=>{s=!0,h(),e&&(clearTimeout(e),e=null),r.removeEventListener("transitionend",i),r.removeEventListener("animationend",c)}}function M({initialStatus:r="closed",element:t}={}){let s=t;return{setElement:e=>{s=e},...F({initialStatus:r,openedAfter:e=>s==null?(e(),()=>{}):q(s,e),closedAfter:e=>s==null?(e(),()=>{}):q(s,e)})}}function z(r,t){return o.attr.class(o.computedOf(r,t)((s,e)=>`bc-toggle--animated bc-toggle--${s} bc-toggle--${e}`))}function D(r){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const e=r.validate(s);return e.success?{value:e.data}:{issues:e.errors.map(a=>({message:a.message,path:a.path}))}},types:void 0},safeParse:s=>{const e=r.validate(s);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(a=>({message:a.message,path:a.path?.map(i=>typeof i=="object"&&"key"in i?i.key.toString():i.toString())||[]}))}}}}}class x{optional(){return new R(this)}default(t){return new H(this,t)}schema(){return D(this)}}class C extends x{minLength;maxLength;pattern;customValidations=[];validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const s=[];this.minLength!==void 0&&t.length<this.minLength&&s.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&s.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&s.push({message:"Invalid format"});for(const e of this.customValidations){const a=e(t);a&&s.push({message:a})}return s.length>0?{success:!1,errors:s}:{success:!0,data:t}}min(t,s){const e=new C;return e.minLength=t,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>a.length<t?s:null),e}max(t,s){const e=new C;return e.minLength=this.minLength,e.maxLength=t,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>a.length>t?s:null),e}regex(t,s){const e=new C;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=t,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>t.test(a)?null:s),e}email(t="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e=new C;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,a=>s.test(a)?null:t],e}refine(t){const s=new C;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,t],s}}class A extends x{mustBeTrue=!1;trueMessage;validate(t){return typeof t!="boolean"?{success:!1,errors:[{message:"Expected boolean"}]}:this.mustBeTrue&&t!==!0?{success:!1,errors:[{message:this.trueMessage||"Must be true"}]}:{success:!0,data:t}}refine(t,s){const e=new A;e.mustBeTrue=this.mustBeTrue,e.trueMessage=this.trueMessage;const a=e.validate.bind(e);return e.validate=i=>{const c=a(i);return c.success?t(c.data)?c:{success:!1,errors:[{message:s}]}:c},e}literal(t,s){const e=new A;return e.mustBeTrue=!0,e.trueMessage=s,e}}class R extends x{constructor(t){super(),this.inner=t}validate(t){if(t===void 0)return{success:!0,data:void 0};const s=this.inner.validate(t);return s.success?{success:!0,data:s.data}:{success:!1,errors:s.errors}}}class H extends x{constructor(t,s){super(),this.inner=t,this.defaultValue=s}validate(t){return t===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(t)}}class O extends x{constructor(t){super(),this.shape=t}validate(t){if(typeof t!="object"||t===null||Array.isArray(t))return{success:!1,errors:[{message:"Expected object"}]};const s=t,e={},a=[];for(const[i,c]of Object.entries(this.shape)){const d=c.validate(s[i]);if(d.success)e[i]=d.data;else for(const h of d.errors)a.push({message:h.message,path:[i,...h.path||[]]})}return a.length>0?{success:!1,errors:a}:{success:!0,data:e}}refine(t,s){const e=new O(this.shape),a=e.validate.bind(e);return e.validate=i=>{const c=a(i);if(!c.success)return c;const d=t(c.data);return d?{success:!1,errors:[{message:d,path:s?.path}]}:{success:!0,data:c.data}},e}}const K=()=>new C,N=()=>new A,G=r=>new O(r);function I(r){return o.WithBrowserCtx(t=>{const s=[],e=()=>s.forEach(i=>i());return r(({effect:i="opaque",mode:c="capturing",onClickOutside:d,onEscape:h,content:f,container:m="body"})=>{m==="body"&&(t=t.makePortal("body"));const u=M();u.onClosed(e);let b=()=>{},g=()=>{};const p=E=>{E.key==="Escape"&&(h?.(),u.close())},y=()=>{d?.(),u.close()},T=E=>{b(),g(),E==="capturing"?(document.addEventListener("keydown",p),b=()=>document.removeEventListener("keydown",p),t.element.addEventListener("mousedown",y),g=()=>t.element.removeEventListener("mousedown",y)):(b=()=>{},g=()=>{})},n=o.Value.on(c,T);s.push(n),s.push(()=>{b(),g()});const v=()=>{const E=new Set;for(const l of t.element.querySelectorAll(":scope > :not([data-overlay])"))l.hasAttribute("inert")?E.add(l):l.setAttribute("inert","");return s.push(()=>{for(const l of t.element.querySelectorAll(":scope > :not([data-overlay])"))E.has(l)||l.removeAttribute("inert");E.clear()}),document.activeElement?.blur?.(),o.html.div(o.WithElement(l=>u.setElement(l)),o.dataAttr.status(u.status.map(String)),o.dataAttr.overlay("true"),o.attr.class(o.computedOf(i??"opaque",c)((l,L)=>`bc-overlay bc-overlay--effect-${l} bc-overlay--mode-${L}`)),f)},k=o.render(v(),t.element,{disposeWithParent:!0,clear:!1,providers:t.providers});s.push(k),w.g(()=>u.open())},e)})}function j(r,t){const{size:s="md",dismissable:e=!0,showCloseButton:a=!0,onClose:i,overlayEffect:c="opaque",container:d="body",position:h="center"}=r;return I((f,m)=>{let u=()=>{};return t(p=>{u=m;const y=o.prop("capturing");o.Value.on(e,l=>{y.set(l?"capturing":"non-capturing")});const T=o.computedOf(p.header!=null,a)((l,L)=>l||L),n=$.sessionId("modal"),v=`${n}-header`,k=`${n}-body`,E=o.html.div(o.attr.class(o.computedOf(s,h)((l,L)=>`bc-modal bc-modal--size-${l} bc-modal--container-${d} bc-modal--position-${L}`)),o.attr.role("dialog"),o.aria.modal(!0),...p.header?[o.aria.labelledby(v)]:[],o.aria.describedby(k),o.attr.tabindex(-1),o.attr.id(n),o.dataAttr.focusTrap("true"),o.on.mousedown(l=>l.stopPropagation()),B({escapeDeactivates:!1,initialFocus:()=>{const l=document.getElementById(n);if(!l)return null;const L=l.querySelector('[aria-label="Close modal"]');if(L)return L;const S=l.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return S||l}}),o.html.div(o.attr.class("bc-modal__content"),o.When(T,()=>o.html.div(o.attr.class("bc-modal__header"),o.html.div(o.attr.class("bc-modal__title"),...p.header?[o.attr.id(v)]:[],p.header),o.When(a,()=>o.Use(V.BeatUII18n,l=>$.CloseButton({size:"sm",label:l.$.closeModal,onClick:()=>{u(),m()}}))))),o.html.div(o.attr.class("bc-modal__body"),o.attr.id(k),p.body),p.footer&&o.html.div(o.attr.class("bc-modal__footer"),p.footer)));f({mode:y,effect:c??"opaque",container:d,content:E,onClickOutside:()=>{i?.(),m()},onEscape:()=>{i?.(),m()}})},()=>{u(),m()})})}function J(r,t){const{confirmText:s,cancelText:e,onConfirm:a,onCancel:i,...c}=r;return o.Use(V.BeatUII18n,d=>j({showCloseButton:!1,...c},(h,f)=>{const m=()=>{a?.(),f()},u=()=>{i?.(),f()};return t(g=>{h({body:g,footer:o.Fragment(o.attr.class("bc-modal__actions"),V.Button({variant:"outline",onClick:u},o.coalesce(e,d.$.cancel)),V.Button({color:"primary",variant:"filled",onClick:m},o.coalesce(s,d.$.confirm)))})},f)}))}exports.AnimatedToggleClass=z;exports.BooleanValidator=A;exports.ConfirmModal=J;exports.FocusTrap=B;exports.Modal=j;exports.ObjectValidator=O;exports.Overlay=I;exports.StringValidator=C;exports.boolean=N;exports.createStandardSchema=D;exports.object=G;exports.string=K;exports.useAnimatedElementToggle=M;exports.useAnimatedToggle=F;exports.useFocusTrap=P;exports.useTimedToggle=U;
|
|
1
|
+
"use strict";const o=require("@tempots/dom"),w=require("./timer-BdH4cK6a.cjs"),$=require("./notice-cpODDUvJ.cjs"),V=require("./translations-DQxg-W9w.cjs"),W=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"audio[controls]","video[controls]","details > summary:first-of-type","details[open]"].join(", ");function _(r){return Array.from(r.querySelectorAll(W)).filter(t=>{const s=t;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function B(r={}){const{active:t=!0,escapeDeactivates:s=!0,onEscape:e,initialFocus:a,returnFocus:i,clickOutsideDeactivates:c=!1,onClickOutside:d}=r;return o.WithElement(h=>{let f=t,m=null,u=[];typeof document<"u"&&(m=document.activeElement);const b=()=>{u=_(h)},g=n=>{if(f){if(s&&n.key==="Escape"){n.preventDefault(),e?.();return}if(n.key==="Tab"){if(b(),u.length===0){n.preventDefault();return}const v=u.indexOf(document.activeElement);n.shiftKey?v<=0&&(n.preventDefault(),u[u.length-1]?.focus()):v>=u.length-1&&(n.preventDefault(),u[0]?.focus())}}},p=n=>{if(!f||!c)return;const v=n.target;h.contains(v)||d?.()},y=()=>{if(!f)return;b();let n=null;typeof a=="function"?n=a():a?n=a:u.length>0&&(n=u[0]),n&&setTimeout(()=>{n?.focus()},50),document.addEventListener("keydown",g,!0),c&&document.addEventListener("click",p,!0)},T=()=>{f=!1,document.removeEventListener("keydown",g,!0),document.removeEventListener("click",p,!0);let n=null;typeof i=="function"?n=i():i?n=i:m&&(n=m),n&&document.body.contains(n)&&setTimeout(()=>{n?.focus()},0)};return setTimeout(()=>y(),0),o.OnDispose(()=>{T()})})}function P(r={}){return{activate:()=>B({...r,active:!0}),deactivate:()=>B({...r,active:!1})}}function F({initialStatus:r="closed",openedAfter:t,closedAfter:s}){const e=o.prop(r),a=()=>{e.set("start-opening")},i=()=>{e.set("start-closing")},c=e.map(n=>n!=="closed"&&n!=="start-closing"&&n!=="closing"),d=n=>{n?a():i()},h=()=>{d(!c.value)},f=n=>e.on(v=>{v==="closed"&&n()});let m=()=>{};e.on(n=>{switch(m(),n){case"start-opening":m=w.g(()=>e.set("opening"));break;case"opening":m=t(()=>e.set("opened"));break;case"start-closing":m=w.g(()=>e.set("closing"));break;case"closing":m=s(()=>e.set("closed"));break}}),e.onDispose(()=>m());const u=e.map(n=>n==="closed"),b=e.map(n=>n==="start-opening"),g=e.map(n=>n==="opening"),p=e.map(n=>n==="opened"),y=e.map(n=>n==="closing"),T=e.map(n=>n==="start-closing");return{status:e,open:a,close:i,toggle:h,setOpen:d,display:c,isClosed:u,isStartOpening:b,isOpening:g,isOpened:p,isClosing:y,isStartClosing:T,dispose:()=>e.dispose(),onClosed:f}}function U({initialStatus:r="closed",duration:t,openDuration:s=t??500,closeDuration:e=t??500}={}){return F({initialStatus:r,openedAfter:a=>w.T(a,s),closedAfter:a=>w.T(a,e)})}function q(r,t){let s=!1,e=null;function a(){s||(s=!0,e&&(clearTimeout(e),e=null),t())}function i(f){f.target===r&&a()}function c(f){f.target===r&&a()}const d=()=>{if(typeof r.getAnimations>"u"){e=setTimeout(a,16);return}r.getAnimations().length===0?(r.addEventListener("transitionend",i,{once:!0}),r.addEventListener("animationend",c,{once:!0}),e=setTimeout(a,1e3)):(r.addEventListener("transitionend",i,{once:!0}),r.addEventListener("animationend",c,{once:!0}))},h=w.g(d);return()=>{s=!0,h(),e&&(clearTimeout(e),e=null),r.removeEventListener("transitionend",i),r.removeEventListener("animationend",c)}}function M({initialStatus:r="closed",element:t}={}){let s=t;return{setElement:e=>{s=e},...F({initialStatus:r,openedAfter:e=>s==null?(e(),()=>{}):q(s,e),closedAfter:e=>s==null?(e(),()=>{}):q(s,e)})}}function z(r,t){return o.attr.class(o.computedOf(r,t)((s,e)=>`bc-toggle--animated bc-toggle--${s} bc-toggle--${e}`))}function D(r){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const e=r.validate(s);return e.success?{value:e.data}:{issues:e.errors.map(a=>({message:a.message,path:a.path}))}},types:void 0},safeParse:s=>{const e=r.validate(s);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(a=>({message:a.message,path:a.path?.map(i=>typeof i=="object"&&"key"in i?i.key.toString():i.toString())||[]}))}}}}}class x{optional(){return new R(this)}default(t){return new H(this,t)}schema(){return D(this)}}class C extends x{minLength;maxLength;pattern;customValidations=[];validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const s=[];this.minLength!==void 0&&t.length<this.minLength&&s.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&s.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&s.push({message:"Invalid format"});for(const e of this.customValidations){const a=e(t);a&&s.push({message:a})}return s.length>0?{success:!1,errors:s}:{success:!0,data:t}}min(t,s){const e=new C;return e.minLength=t,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>a.length<t?s:null),e}max(t,s){const e=new C;return e.minLength=this.minLength,e.maxLength=t,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>a.length>t?s:null),e}regex(t,s){const e=new C;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=t,e.customValidations=[...this.customValidations],s&&e.customValidations.push(a=>t.test(a)?null:s),e}email(t="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e=new C;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,a=>s.test(a)?null:t],e}refine(t){const s=new C;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,t],s}}class A extends x{mustBeTrue=!1;trueMessage;validate(t){return typeof t!="boolean"?{success:!1,errors:[{message:"Expected boolean"}]}:this.mustBeTrue&&t!==!0?{success:!1,errors:[{message:this.trueMessage||"Must be true"}]}:{success:!0,data:t}}refine(t,s){const e=new A;e.mustBeTrue=this.mustBeTrue,e.trueMessage=this.trueMessage;const a=e.validate.bind(e);return e.validate=i=>{const c=a(i);return c.success?t(c.data)?c:{success:!1,errors:[{message:s}]}:c},e}literal(t,s){const e=new A;return e.mustBeTrue=!0,e.trueMessage=s,e}}class R extends x{constructor(t){super(),this.inner=t}validate(t){if(t===void 0)return{success:!0,data:void 0};const s=this.inner.validate(t);return s.success?{success:!0,data:s.data}:{success:!1,errors:s.errors}}}class H extends x{constructor(t,s){super(),this.inner=t,this.defaultValue=s}validate(t){return t===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(t)}}class O extends x{constructor(t){super(),this.shape=t}validate(t){if(typeof t!="object"||t===null||Array.isArray(t))return{success:!1,errors:[{message:"Expected object"}]};const s=t,e={},a=[];for(const[i,c]of Object.entries(this.shape)){const d=c.validate(s[i]);if(d.success)e[i]=d.data;else for(const h of d.errors)a.push({message:h.message,path:[i,...h.path||[]]})}return a.length>0?{success:!1,errors:a}:{success:!0,data:e}}refine(t,s){const e=new O(this.shape),a=e.validate.bind(e);return e.validate=i=>{const c=a(i);if(!c.success)return c;const d=t(c.data);return d?{success:!1,errors:[{message:d,path:s?.path}]}:{success:!0,data:c.data}},e}}const K=()=>new C,N=()=>new A,G=r=>new O(r);function I(r){return o.WithBrowserCtx(t=>{const s=[],e=()=>s.forEach(i=>i());return r(({effect:i="opaque",mode:c="capturing",onClickOutside:d,onEscape:h,content:f,container:m="body"})=>{m==="body"&&(t=t.makePortal("body"));const u=M();u.onClosed(e);let b=()=>{},g=()=>{};const p=E=>{E.key==="Escape"&&(h?.(),u.close())},y=()=>{d?.(),u.close()},T=E=>{b(),g(),E==="capturing"?(document.addEventListener("keydown",p),b=()=>document.removeEventListener("keydown",p),t.element.addEventListener("mousedown",y),g=()=>t.element.removeEventListener("mousedown",y)):(b=()=>{},g=()=>{})},n=o.Value.on(c,T);s.push(n),s.push(()=>{b(),g()});const v=()=>{const E=new Set;for(const l of t.element.querySelectorAll(":scope > :not([data-overlay])"))l.hasAttribute("inert")?E.add(l):l.setAttribute("inert","");return s.push(()=>{for(const l of t.element.querySelectorAll(":scope > :not([data-overlay])"))E.has(l)||l.removeAttribute("inert");E.clear()}),document.activeElement?.blur?.(),o.html.div(o.WithElement(l=>u.setElement(l)),o.dataAttr.status(u.status.map(String)),o.dataAttr.overlay("true"),o.attr.class(o.computedOf(i??"opaque",c)((l,L)=>`bc-overlay bc-overlay--effect-${l} bc-overlay--mode-${L}`)),f)},k=o.render(v(),t.element,{disposeWithParent:!0,clear:!1,providers:t.providers});s.push(k),w.g(()=>u.open())},e)})}function j(r,t){const{size:s="md",dismissable:e=!0,showCloseButton:a=!0,onClose:i,overlayEffect:c="opaque",container:d="body",position:h="center"}=r;return I((f,m)=>{let u=()=>{};return t(p=>{u=m;const y=o.prop("capturing");o.Value.on(e,l=>{y.set(l?"capturing":"non-capturing")});const T=o.computedOf(p.header!=null,a)((l,L)=>l||L),n=$.sessionId("modal"),v=`${n}-header`,k=`${n}-body`,E=o.html.div(o.attr.class(o.computedOf(s,h)((l,L)=>`bc-modal bc-modal--size-${l} bc-modal--container-${d} bc-modal--position-${L}`)),o.attr.role("dialog"),o.aria.modal(!0),...p.header?[o.aria.labelledby(v)]:[],o.aria.describedby(k),o.attr.tabindex(-1),o.attr.id(n),o.dataAttr.focusTrap("true"),o.on.mousedown(l=>l.stopPropagation()),B({escapeDeactivates:!1,initialFocus:()=>{const l=document.getElementById(n);if(!l)return null;const L=l.querySelector('[aria-label="Close modal"]');if(L)return L;const S=l.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return S||l}}),o.html.div(o.attr.class("bc-modal__content"),o.When(T,()=>o.html.div(o.attr.class("bc-modal__header"),o.html.div(o.attr.class("bc-modal__title"),...p.header?[o.attr.id(v)]:[],p.header),o.When(a,()=>o.Use(V.BeatUII18n,l=>$.CloseButton({size:"sm",label:l.$.closeModal,onClick:()=>{u(),m()}}))))),o.html.div(o.attr.class("bc-modal__body"),o.attr.id(k),p.body),p.footer&&o.html.div(o.attr.class("bc-modal__footer"),p.footer)));f({mode:y,effect:c??"opaque",container:d,content:E,onClickOutside:()=>{i?.(),m()},onEscape:()=>{i?.(),m()}})},()=>{u(),m()})})}function J(r,t){const{confirmText:s,cancelText:e,onConfirm:a,onCancel:i,...c}=r;return o.Use(V.BeatUII18n,d=>j({showCloseButton:!1,...c},(h,f)=>{const m=()=>{a?.(),f()},u=()=>{i?.(),f()};return t(g=>{h({body:g,footer:o.Fragment(o.attr.class("bc-modal__actions"),V.Button({variant:"outline",onClick:u},o.coalesce(e,d.$.cancel)),V.Button({color:"primary",variant:"filled",onClick:m},o.coalesce(s,d.$.confirm)))})},f)}))}exports.AnimatedToggleClass=z;exports.BooleanValidator=A;exports.ConfirmModal=J;exports.FocusTrap=B;exports.Modal=j;exports.ObjectValidator=O;exports.Overlay=I;exports.StringValidator=C;exports.boolean=N;exports.createStandardSchema=D;exports.object=G;exports.string=K;exports.useAnimatedElementToggle=M;exports.useAnimatedToggle=F;exports.useFocusTrap=P;exports.useTimedToggle=U;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WithElement as P, OnDispose as K, prop as W, attr as h, computedOf as A, WithBrowserCtx as N, Value as z, render as G, html as k, dataAttr as O, aria as F, on as J, When as D, Use as R, Fragment as Q, coalesce as q } from "@tempots/dom";
|
|
2
2
|
import { g as V, T as I } from "./timer-CQlK5LhW.js";
|
|
3
|
-
import { s as X, C as Y } from "./notice-
|
|
4
|
-
import { a as U, B as j } from "./translations-
|
|
3
|
+
import { s as X, C as Y } from "./notice-Ct8ZHvwq.js";
|
|
4
|
+
import { a as U, B as j } from "./translations-iam7PITs.js";
|
|
5
5
|
const Z = [
|
|
6
6
|
"a[href]",
|
|
7
7
|
"button:not([disabled])",
|
package/dist/monaco/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tempots/dom"),A=require("../timer-BdH4cK6a.cjs"),I=require("../link-portal-_tiDFZqh.cjs"),B=require("../theme-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tempots/dom"),A=require("../timer-BdH4cK6a.cjs"),I=require("../link-portal-_tiDFZqh.cjs"),B=require("../theme-B7C5kIJj.cjs"),p="https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/",W=e=>{if(!e||typeof e!="object")return!1;const t=e;return!!(t.editor&&typeof t.editor.create=="function"&&t.languages)};function M(){if(typeof self>"u")return;const e=self.MonacoEnvironment;if(e&&(typeof e.getWorkerUrl=="function"||typeof e.getWorker=="function"))return;const t=()=>{const a=[`self.MonacoEnvironment = { baseUrl: '${p}' };`,`importScripts('${p}vs/base/worker/workerMain.js');`].join(`
|
|
2
2
|
`),i=new Blob([a],{type:"text/javascript"});return URL.createObjectURL(i)};self.MonacoEnvironment={getWorkerUrl(a,i){return t()}}}const F=e=>new Promise((t,a)=>{if(document.querySelector(`script[src="${e}"]`))return t();const s=document.createElement("script");s.src=e,s.async=!0;const l=document.querySelector("script[nonce]")?.getAttribute("nonce");l&&s.setAttribute("nonce",l),s.onload=()=>t(),s.onerror=h=>{console.error("[BeatUI] Failed to load script",e,h),a(new Error(`Failed to load script ${e}`))},document.head.appendChild(s)}),R=async()=>{const e=window;if((!e.require||!e.require.config)&&(await F(`${p}vs/loader.js`),await new Promise(t=>setTimeout(t,100)),!e.require))throw new Error("AMD loader failed to initialize");return e.require.config?.({baseUrl:p,paths:{vs:"vs"}}),e.require},$=async()=>{const e=window;if(e.monaco&&W(e.monaco))return e.monaco;M();const t=await R();if(await new Promise((a,i)=>{const s=setTimeout(()=>i(new Error("Timeout loading editor.main")),3e4);try{t(["vs/editor/editor.main"],()=>{clearTimeout(s),a()},l=>{clearTimeout(s),i(l)})}catch(l){clearTimeout(s),i(l)}}),!e.monaco)throw new Error("Monaco failed to initialize after loading editor.main");return e.monaco};let w=null;const v=new Map;let g=!1;async function S(){if(w)return w;!g&&typeof window<"u"&&(M(),g=!0);const e=await $();return w=e,e}async function _(e){if(v.has(e))return v.get(e);const t=(async()=>{const a=await S();switch(e){case"typescript":case"javascript":{a.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),a.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1});break}case"json":{a.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[],enableSchemaRequest:!0});break}case"css":case"scss":case"less":{a.languages.css.cssDefaults.setOptions({validate:!0});break}case"html":break;case"markdown":break;case"yaml":{a.languages.getLanguages().some(s=>s.id==="yaml")||a.languages.register({id:"yaml",extensions:[".yml",".yaml"]});break}}})();return v.set(e,t),t}async function O(e){const[t]=await Promise.all([S(),_(e)]);return t}function z(e){if(typeof window>"u")return;const t=window;e?(t.MonacoEnvironment={getWorker:e},g=!0):t.MonacoEnvironment||(M(),g=!0)}const N=e=>{const{value:t,onChange:a,onBlur:i,language:s="plaintext",readOnly:l=!1,editorOptions:h,jsonSchemas:V,autofocus:j,class:q,disabled:D,hasError:C,id:L,name:x,placeholder:P}=e,b=o.Value.toSignal(l);return o.Use(B.Theme,({appearance:T})=>o.html.div((e.cssInjection??"none")==="none"?null:o.Task(()=>Promise.resolve().then(()=>require("../styles-url-CZUL_YRT.cjs")),({default:u})=>I.LinkPortal({id:"beatui-monaco-css",href:u})),o.attr.class("bc-monaco-editor-container"),o.attr.class(q),o.attr.class(o.Value.map(C??!1,u=>u?"bc-input-container--error":"")),o.attr.id(L),o.attr.name(x),o.WithElement(u=>{let m=null;const c=[];return(async()=>{try{let d=function(){const n=r.getValue();a?.(n)};const f=o.Value.get(s)??"plaintext";if(m=(await O(f)).editor.create(u,{value:o.Value.get(t)??"",language:f,readOnly:o.Value.get(b)??!1,automaticLayout:!0,minimap:{enabled:!1},...h??{}}),!m)throw new Error("Failed to create Monaco editor");const r=m;c.push(o.effectOf(s,V)(async(n,y)=>{const E=await O(n);if(n==="json"){const U={validate:!0,enableSchemaRequest:!0,schemas:!!(y&&y.length)?y:[]};E.languages.json.jsonDefaults.setDiagnosticsOptions(U)}const k=r.getModel();k&&E.editor.setModelLanguage(k,n)})),c.push(r.onDidChangeModelContent(A.I(500,d)).dispose),c.push(r.onDidBlurEditorText(()=>{d(),i?.()}).dispose),c.push(o.Value.on(t,n=>{n!==r.getValue()&&r.setValue(n??"")})),c.push(o.Value.on(b,n=>{r.updateOptions({readOnly:n??!1})})),c.push(o.Value.on(D??!1,n=>{r.updateOptions({readOnly:n??!1})})),c.push(o.Value.on(j??!1,n=>{n&&r.focus()})),c.push(o.Value.on(P??"",n=>{r.updateOptions({placeholder:n??""})})),c.push(T.on(n=>{r.updateOptions({theme:n==="dark"?"vs-dark":"vs"})}))}catch(d){console.error("[BeatUI] Failed to initialize Monaco editor:",d);const f=u;f.textContent="Failed to load Monaco Editor. Please ensure monaco-editor is installed."}})(),o.OnDispose(()=>{try{c.forEach(d=>d())}catch{}try{m?.dispose()}catch{}})})))};exports.MonacoEditorInput=N;exports.configureMonacoEnvironment=z;
|
package/dist/monaco/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Value as c, Use as B, html as I, Task as W, attr as m, WithElement as F, OnDispose as R, effectOf as $ } from "@tempots/dom";
|
|
2
2
|
import { I as _ } from "../timer-CQlK5LhW.js";
|
|
3
3
|
import { L as z } from "../link-portal-Cr2l9f3k.js";
|
|
4
|
-
import { T as N } from "../theme-
|
|
4
|
+
import { T as N } from "../theme-DsQOxXW1.js";
|
|
5
5
|
const g = "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/", G = (e) => {
|
|
6
6
|
if (!e || typeof e != "object") return !1;
|
|
7
7
|
const o = e;
|
|
@@ -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-DQxg-W9w.cjs"),i={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,t,o)=>{let l=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||t){const n=[];if(e!=null&&e>1&&n.push(`tot ${e} bestanden`),t&&o){const r=a.formatFileSize(t,{units:o});n.push(`max ${r} elk`)}n.length>0&&(l+=` (${n.join(", ")})`)}else if(t&&o){const n=a.formatFileSize(t,{units:o});l+=` (max ${n})`}return l},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"}};exports.default=i;exports.nl=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Use as N, coalesce as R, aria as x, attr as o, html as b, on as D, Value as C, Empty as w, computedOf as _, When as V, dataAttr as q, input as Z, emitValue as M, prop as I, Fragment as F, emitValueAsNumber as ee, Unless as se, Ensure as te } from "@tempots/dom";
|
|
2
|
-
import { a as L, B as ne, I as P, b as z, C as W } from "./translations-
|
|
2
|
+
import { a as L, B as ne, I as P, b as z, C as W } from "./translations-iam7PITs.js";
|
|
3
3
|
const H = /* @__PURE__ */ new Map();
|
|
4
4
|
function K(e) {
|
|
5
5
|
const s = H.get(e) ?? 0;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("@tempots/dom"),k=require("./translations-BDRano6u.cjs"),B=new Map;function T(e){const t=B.get(e)??0;return B.set(e,t+1),`${e}-${t}`}const g={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return g.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return g.isSuccess(e)?e.value:t()},getOrNull(e){return g.isSuccess(e)?e.value:null},getOrUndefined(e){return g.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(g.isSuccess(e))return e.value;throw g.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:a,notAsked:r=a})=>g.isSuccess(e)?t(e.value):g.isFailure(e)?n(e.error):g.isNotAsked(e)?r():a(e.previousValue),whenSuccess:(e,t)=>(g.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(g.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(g.isSuccess(n))t.push(n.value);else return n;return g.success(t)},ofPromise:async e=>{try{const t=await e;return g.success(t)}catch(t){return g.failure(t instanceof Error?t:new Error(String(t)))}}},V=(e,t)=>e===t||e!==e&&t!==t,w={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>w.isValid(e)?t():n(e.error),toResult:(e,t)=>w.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(w.isValid(e)&&t(),e),whenInvalid:(e,t)=>(w.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>g.success(t),t=>g.failure(t))},toValidation(e){return f.match(e,()=>w.valid,t=>w.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,a)=>f.match(e,r=>f.match(t,i=>f.success(n(r,i)),i=>f.failure(i)),r=>f.match(t,i=>f.failure(r),i=>f.failure(a(r,i)))),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function P({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:a="full",color:r="base",onClick:i,label:l},...o){return s.Use(k.BeatUII18n,c=>{const m=s.coalesce(l,c.$.closeModal);return k.Button({variant:"text",size:e,roundedness:a,disabled:n,color:r,onClick:i},s.attr.title(m),s.aria.label(m),...o,k.Icon({icon:t,size:e??"sm"}))})}function O(e){return`bc-label bc-label--${e}`}const X=(...e)=>s.html.span(s.attr.class(O("emphasis")),...e),$=(...e)=>s.html.span(s.attr.class(O("default")),...e),L=(...e)=>s.html.span(s.attr.class(O("muted")),...e),Y=(...e)=>s.html.span(s.attr.class(O("danger")),...e),Z=e=>{const{value:t,onBlur:n,onChange:a,placeholder:r,disabled:i,id:l,checkedIcon:o,uncheckedIcon:c,iconSize:m="lg"}=e,u=l??T("checkbox"),b=`${u}-label`,y=()=>{if(s.Value.get(i??!1))return;const h=s.Value.get(t);a?.(!h)},v=h=>{s.Value.get(i??!1)||(h.key===" "||h.key==="Enter")&&(h.preventDefault(),y())};return k.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,h=>h?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,h=>h?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(u),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,h=>h?-1:0)),s.aria.checked(t),s.aria.disabled(i),r!=null?s.aria.labelledby(b):s.Empty,s.on.keydown(v),n!=null?s.on.blur(n):s.Empty,k.Icon({icon:s.computedOf(t,o,c)((h,d,p)=>h?d??"akar-icons/check-box-fill":p??"akar-icons/box"),accessibility:"decorative",size:m})),r!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(b),s.attr.for(u),L(r)):s.Empty)},s.on.click(y))},N=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ee(e){const t=["bc-input-wrapper"];return e&&t.push("bc-input-wrapper--horizontal"),t.join(" ")}function te(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}const A=({required:e,label:t,labelChildren:n,context:a,description:r,content:i,error:l,labelFor:o,hasError:c,disabled:m,horizontal:u},...b)=>{const y=c??l!=null,v=m??!1,h=u??!1,d=T("input-wrapper"),p=r?`${d}-description`:void 0,S=l!=null?`${d}-error`:void 0;return s.html.div(s.attr.class(s.Value.map(h,C=>ee(C))),t!=null||a!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),o!=null?s.attr.for(o):s.Empty,s.html.span(s.attr.class(s.computedOf(y,v)((C,I)=>te(C??!1,I??!1))),t),t!=null&&e?N:s.Empty),s.When(s.computedOf(h,r)((C,I)=>C&&I!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(p),r))),a!=null?$(a):s.Empty,n):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[p,S].filter(Boolean).length>0?s.dataAttr.describedby([p,S].filter(Boolean).join(" ")):s.Empty,e?s.dataAttr.required("true"):s.Empty,s.When(y,()=>s.dataAttr.invalid("true")),i),s.When(s.computedOf(h,r)((C,I)=>!C&&I!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(p),r)),l!=null?s.When(y,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(S),s.aria.live("polite"),s.attr.role("alert"),l)):null,...b)};function se(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ne=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:a,onBlur:r,onChange:i,onInput:l,placeholder:o}=t,c=a??k.Icon({icon:"line-md:email",size:"sm",color:"neutral"});return s.Use(k.BeatUII18n,m=>k.InputContainer({...e,before:c,input:s.input.email(k.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(o,m.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),r!=null?s.on.blur(s.emitValue(r)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,l!=null?s.on.input(s.emitValue(l)):s.Empty)}))},re=e=>{const{value:t,onBlur:n,onChange:a,onInput:r,before:i,after:l,hasError:o,disabled:c,autocomplete:m,placeholder:u,...b}=e,y={name:"password",disabled:c,...b},v=s.prop(!0),h=s.computedOf(v,m)((d,p)=>d?p??"current-password":"off");return s.Use(k.BeatUII18n,d=>{const p=s.computedOf(d.$.passwordPlaceholderText,v,u)((C,I,Q)=>I?"•••••••••••••••":Q??C),S=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(d.$.togglePasswordVisibility),s.on.click(()=>v.update(C=>!C)),s.When(v,()=>k.Icon({icon:"line-md:watch"}),()=>k.Icon({icon:"line-md:watch-off"})));return k.InputContainer({before:i,disabled:c,hasError:o,input:s.html.input(k.CommonInputAttributes({...y,autocomplete:h,placeholder:p}),s.When(v,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,a!=null?s.on.change(s.emitValue(a)):s.Empty,r!=null?s.on.input(s.emitValue(r)):s.Empty),after:l!=null?s.Fragment(S,l):S})})},x=(e,t)=>()=>{e.markTouched(),t?.()},j=(e,t)=>n=>{e.change(n),t?.(n)};function M(e,t){const{controller:n,onBlur:a,onChange:r,...i}=t;return e({id:n.name,disabled:n.disabled,value:n.value,hasError:n.errorVisible,...i,onChange:j(n,r),onBlur:x(n,a)})}function ae(e,t,...n){return A({...t,content:M(e,t)},...n)}function q(e,t){const{toInput:n,fromInput:a,controller:r,...i}=t,l=r.transform(n,a);return M(e,{...i,controller:l})}function ie(e,t,...n){return A({...t,content:q(e,t)},...n)}function le(e){return e.split(".").map(n=>{const a=n.match(/^\[(\d+)\]$/);return a?Number(a[1]):n})}function U(e){return typeof e=="number"?`[${e}]`:`.${e}`}function W(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(U)].join("")}function _(e){return function(n){if(n.type==="valid")return n;let a=n.error;for(const r of e)if(a=a?.dependencies?.[r],a==null)return w.valid;return w.invalid(a)}}class E{path;change;value;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,a,r,i,l=V){this.path=t,this.change=n,this.value=a,this.status=r,this.#s=l,this.#t.set(a.value),this.error=r.map(o=>o?.type==="invalid"?o.error?.message:void 0),this.hasError=this.error.map(o=>o!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((o,c,m)=>m==="continuous"?!!o:!!o&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((o,c)=>!!o&&!!c),this.dirty=s.computedOf(this.value,this.#t)((o,c)=>!this.#s(o,c)),this.dependencyErrors=r.map(o=>o?.type==="invalid"?o.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((o,c)=>o||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((o,c)=>o||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return W(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.value.value)};reset=()=>{this.change(this.#t.value)};array=(t=V)=>new z(this.path,this.change,this.value,this.status,this.parent,t);object=(t=V)=>new H(this.path,this.change,this.value,this.status,this.parent,t);transform=(t,n,a=[],r=V)=>new E([...this.path,...a],i=>this.change(n(i)),this.value.map(t,r),this.status.map(_(a)),this.parent,r);asyncTransform=(t,n,a,r=[],i=V)=>new E([...this.path,...r],l=>{n(l).then(o=>this.change(o))},this.value.mapAsync(t,a,void 0,i),this.status.map(_(r)),this.parent,i)}class H extends E{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,l){super(t,n,a.map(c=>c??{},l),r,i,l),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const o=this.value.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),o()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async l=>{this.change({...this.value.value,[t]:l})},a=new E([...this.path,t],n,this.value.map(l=>l[t]),this.status.map(_([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,a);const r=a.touched.on(l=>{this.#s.set(t,l),this.#o()});this.#t.set(t,r);const i=a.dirty.on(l=>{this.#a.set(t,l),this.#i()});return this.#r.set(t,i),a};markAllTouched=()=>{this.markTouched();const t=this.value.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.value.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class z extends E{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,l){const o=a.map(u=>u??[],l);super(t,n,o,r,i,l);const c=o.on(u=>{const b=this.#e.length-u.length;b>0&&(this.#e.splice(u.length,b).forEach((y,v)=>{const h=u.length+v;y.dispose(),this.#t.get(h)?.(),this.#t.delete(h),this.#s.delete(h),this.#r.get(h)?.(),this.#r.delete(h),this.#a.delete(h)}),this.#o(),this.#i())});this.length=o.map(u=>u.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const m=this.value.on(()=>this.#i());this.onDispose(()=>{for(const u of this.#e)u.dispose();this.length.dispose(),this.#e.length=0,c(),o.dispose();for(const u of this.#t.values())u();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const u of this.#r.values())u();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),m()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async l=>{const o=this.value.value.slice();o[t]=l,this.change(o)},a=new E([...this.path,t],n,this.value.map(l=>l[t]),this.status.map(_([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=a;const r=a.touched.on(l=>{this.#s.set(t,l),this.#o()});this.#t.set(t,r);const i=a.dirty.on(l=>{this.#a.set(t,l),this.#i()});return this.#r.set(t,i),a};push=(...t)=>{this.change([...this.value.value,...t])};pop=()=>{this.splice(this.value.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.value.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const a=this.value.value.slice();a.splice(t,n),this.change(a)};move=(t,n,a=1)=>{if(a<1||t===n)return;const r=this.value.value.slice(),i=r.splice(t,a);r.splice(n,0,...i),this.change(r)};markAllTouched=()=>{this.markTouched();const t=this.value.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.value.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function R(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function K(e){const t=e.filter(r=>r.path==null||r.path.length===0).map(r=>r.message),n=e.filter(r=>r.path!=null&&r.path.length>0).reduce((r,i)=>{const l=R(i.path),o=l.pop();let c=r;for(const m of l)c.dependencies==null&&(c.dependencies={}),c.dependencies[m]==null&&(c.dependencies[m]={}),c=c.dependencies[m];return c.dependencies==null&&(c.dependencies={}),c.dependencies[o]={message:i.message},r},{}),a=t.join(`
|
|
1
|
+
"use strict";const s=require("@tempots/dom"),k=require("./translations-DQxg-W9w.cjs"),B=new Map;function T(e){const t=B.get(e)??0;return B.set(e,t+1),`${e}-${t}`}const g={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return g.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return g.isSuccess(e)?e.value:t()},getOrNull(e){return g.isSuccess(e)?e.value:null},getOrUndefined(e){return g.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(g.isSuccess(e))return e.value;throw g.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:a,notAsked:r=a})=>g.isSuccess(e)?t(e.value):g.isFailure(e)?n(e.error):g.isNotAsked(e)?r():a(e.previousValue),whenSuccess:(e,t)=>(g.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(g.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(g.isSuccess(n))t.push(n.value);else return n;return g.success(t)},ofPromise:async e=>{try{const t=await e;return g.success(t)}catch(t){return g.failure(t instanceof Error?t:new Error(String(t)))}}},V=(e,t)=>e===t||e!==e&&t!==t,w={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>w.isValid(e)?t():n(e.error),toResult:(e,t)=>w.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(w.isValid(e)&&t(),e),whenInvalid:(e,t)=>(w.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>g.success(t),t=>g.failure(t))},toValidation(e){return f.match(e,()=>w.valid,t=>w.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,a)=>f.match(e,r=>f.match(t,i=>f.success(n(r,i)),i=>f.failure(i)),r=>f.match(t,i=>f.failure(r),i=>f.failure(a(r,i)))),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function P({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:a="full",color:r="base",onClick:i,label:l},...o){return s.Use(k.BeatUII18n,c=>{const m=s.coalesce(l,c.$.closeModal);return k.Button({variant:"text",size:e,roundedness:a,disabled:n,color:r,onClick:i},s.attr.title(m),s.aria.label(m),...o,k.Icon({icon:t,size:e??"sm"}))})}function O(e){return`bc-label bc-label--${e}`}const X=(...e)=>s.html.span(s.attr.class(O("emphasis")),...e),$=(...e)=>s.html.span(s.attr.class(O("default")),...e),L=(...e)=>s.html.span(s.attr.class(O("muted")),...e),Y=(...e)=>s.html.span(s.attr.class(O("danger")),...e),Z=e=>{const{value:t,onBlur:n,onChange:a,placeholder:r,disabled:i,id:l,checkedIcon:o,uncheckedIcon:c,iconSize:m="lg"}=e,u=l??T("checkbox"),b=`${u}-label`,y=()=>{if(s.Value.get(i??!1))return;const h=s.Value.get(t);a?.(!h)},v=h=>{s.Value.get(i??!1)||(h.key===" "||h.key==="Enter")&&(h.preventDefault(),y())};return k.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,h=>h?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,h=>h?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(u),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,h=>h?-1:0)),s.aria.checked(t),s.aria.disabled(i),r!=null?s.aria.labelledby(b):s.Empty,s.on.keydown(v),n!=null?s.on.blur(n):s.Empty,k.Icon({icon:s.computedOf(t,o,c)((h,d,p)=>h?d??"akar-icons/check-box-fill":p??"akar-icons/box"),accessibility:"decorative",size:m})),r!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(b),s.attr.for(u),L(r)):s.Empty)},s.on.click(y))},N=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ee(e){const t=["bc-input-wrapper"];return e&&t.push("bc-input-wrapper--horizontal"),t.join(" ")}function te(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}const A=({required:e,label:t,labelChildren:n,context:a,description:r,content:i,error:l,labelFor:o,hasError:c,disabled:m,horizontal:u},...b)=>{const y=c??l!=null,v=m??!1,h=u??!1,d=T("input-wrapper"),p=r?`${d}-description`:void 0,S=l!=null?`${d}-error`:void 0;return s.html.div(s.attr.class(s.Value.map(h,C=>ee(C))),t!=null||a!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),o!=null?s.attr.for(o):s.Empty,s.html.span(s.attr.class(s.computedOf(y,v)((C,I)=>te(C??!1,I??!1))),t),t!=null&&e?N:s.Empty),s.When(s.computedOf(h,r)((C,I)=>C&&I!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(p),r))),a!=null?$(a):s.Empty,n):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[p,S].filter(Boolean).length>0?s.dataAttr.describedby([p,S].filter(Boolean).join(" ")):s.Empty,e?s.dataAttr.required("true"):s.Empty,s.When(y,()=>s.dataAttr.invalid("true")),i),s.When(s.computedOf(h,r)((C,I)=>!C&&I!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(p),r)),l!=null?s.When(y,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(S),s.aria.live("polite"),s.attr.role("alert"),l)):null,...b)};function se(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ne=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:a,onBlur:r,onChange:i,onInput:l,placeholder:o}=t,c=a??k.Icon({icon:"line-md:email",size:"sm",color:"neutral"});return s.Use(k.BeatUII18n,m=>k.InputContainer({...e,before:c,input:s.input.email(k.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(o,m.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),r!=null?s.on.blur(s.emitValue(r)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,l!=null?s.on.input(s.emitValue(l)):s.Empty)}))},re=e=>{const{value:t,onBlur:n,onChange:a,onInput:r,before:i,after:l,hasError:o,disabled:c,autocomplete:m,placeholder:u,...b}=e,y={name:"password",disabled:c,...b},v=s.prop(!0),h=s.computedOf(v,m)((d,p)=>d?p??"current-password":"off");return s.Use(k.BeatUII18n,d=>{const p=s.computedOf(d.$.passwordPlaceholderText,v,u)((C,I,Q)=>I?"•••••••••••••••":Q??C),S=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(d.$.togglePasswordVisibility),s.on.click(()=>v.update(C=>!C)),s.When(v,()=>k.Icon({icon:"line-md:watch"}),()=>k.Icon({icon:"line-md:watch-off"})));return k.InputContainer({before:i,disabled:c,hasError:o,input:s.html.input(k.CommonInputAttributes({...y,autocomplete:h,placeholder:p}),s.When(v,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,a!=null?s.on.change(s.emitValue(a)):s.Empty,r!=null?s.on.input(s.emitValue(r)):s.Empty),after:l!=null?s.Fragment(S,l):S})})},x=(e,t)=>()=>{e.markTouched(),t?.()},j=(e,t)=>n=>{e.change(n),t?.(n)};function M(e,t){const{controller:n,onBlur:a,onChange:r,...i}=t;return e({id:n.name,disabled:n.disabled,value:n.value,hasError:n.errorVisible,...i,onChange:j(n,r),onBlur:x(n,a)})}function ae(e,t,...n){return A({...t,content:M(e,t)},...n)}function q(e,t){const{toInput:n,fromInput:a,controller:r,...i}=t,l=r.transform(n,a);return M(e,{...i,controller:l})}function ie(e,t,...n){return A({...t,content:q(e,t)},...n)}function le(e){return e.split(".").map(n=>{const a=n.match(/^\[(\d+)\]$/);return a?Number(a[1]):n})}function U(e){return typeof e=="number"?`[${e}]`:`.${e}`}function W(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(U)].join("")}function _(e){return function(n){if(n.type==="valid")return n;let a=n.error;for(const r of e)if(a=a?.dependencies?.[r],a==null)return w.valid;return w.invalid(a)}}class E{path;change;value;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,a,r,i,l=V){this.path=t,this.change=n,this.value=a,this.status=r,this.#s=l,this.#t.set(a.value),this.error=r.map(o=>o?.type==="invalid"?o.error?.message:void 0),this.hasError=this.error.map(o=>o!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((o,c,m)=>m==="continuous"?!!o:!!o&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((o,c)=>!!o&&!!c),this.dirty=s.computedOf(this.value,this.#t)((o,c)=>!this.#s(o,c)),this.dependencyErrors=r.map(o=>o?.type==="invalid"?o.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((o,c)=>o||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((o,c)=>o||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return W(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.value.value)};reset=()=>{this.change(this.#t.value)};array=(t=V)=>new z(this.path,this.change,this.value,this.status,this.parent,t);object=(t=V)=>new H(this.path,this.change,this.value,this.status,this.parent,t);transform=(t,n,a=[],r=V)=>new E([...this.path,...a],i=>this.change(n(i)),this.value.map(t,r),this.status.map(_(a)),this.parent,r);asyncTransform=(t,n,a,r=[],i=V)=>new E([...this.path,...r],l=>{n(l).then(o=>this.change(o))},this.value.mapAsync(t,a,void 0,i),this.status.map(_(r)),this.parent,i)}class H extends E{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,l){super(t,n,a.map(c=>c??{},l),r,i,l),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const o=this.value.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),o()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async l=>{this.change({...this.value.value,[t]:l})},a=new E([...this.path,t],n,this.value.map(l=>l[t]),this.status.map(_([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,a);const r=a.touched.on(l=>{this.#s.set(t,l),this.#o()});this.#t.set(t,r);const i=a.dirty.on(l=>{this.#a.set(t,l),this.#i()});return this.#r.set(t,i),a};markAllTouched=()=>{this.markTouched();const t=this.value.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.value.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class z extends E{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,l){const o=a.map(u=>u??[],l);super(t,n,o,r,i,l);const c=o.on(u=>{const b=this.#e.length-u.length;b>0&&(this.#e.splice(u.length,b).forEach((y,v)=>{const h=u.length+v;y.dispose(),this.#t.get(h)?.(),this.#t.delete(h),this.#s.delete(h),this.#r.get(h)?.(),this.#r.delete(h),this.#a.delete(h)}),this.#o(),this.#i())});this.length=o.map(u=>u.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const m=this.value.on(()=>this.#i());this.onDispose(()=>{for(const u of this.#e)u.dispose();this.length.dispose(),this.#e.length=0,c(),o.dispose();for(const u of this.#t.values())u();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const u of this.#r.values())u();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),m()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async l=>{const o=this.value.value.slice();o[t]=l,this.change(o)},a=new E([...this.path,t],n,this.value.map(l=>l[t]),this.status.map(_([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=a;const r=a.touched.on(l=>{this.#s.set(t,l),this.#o()});this.#t.set(t,r);const i=a.dirty.on(l=>{this.#a.set(t,l),this.#i()});return this.#r.set(t,i),a};push=(...t)=>{this.change([...this.value.value,...t])};pop=()=>{this.splice(this.value.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.value.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const a=this.value.value.slice();a.splice(t,n),this.change(a)};move=(t,n,a=1)=>{if(a<1||t===n)return;const r=this.value.value.slice(),i=r.splice(t,a);r.splice(n,0,...i),this.change(r)};markAllTouched=()=>{this.markTouched();const t=this.value.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.value.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function R(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function K(e){const t=e.filter(r=>r.path==null||r.path.length===0).map(r=>r.message),n=e.filter(r=>r.path!=null&&r.path.length>0).reduce((r,i)=>{const l=R(i.path),o=l.pop();let c=r;for(const m of l)c.dependencies==null&&(c.dependencies={}),c.dependencies[m]==null&&(c.dependencies[m]={}),c=c.dependencies[m];return c.dependencies==null&&(c.dependencies={}),c.dependencies[o]={message:i.message},r},{}),a=t.join(`
|
|
2
2
|
`);return{...n,message:a!=""?a:void 0}}function G({initialValue:e,onChange:t,validate:n,equals:a,validationMode:r,validateDebounceMs:i}){const l=s.Value.deriveProp(e),o=s.prop(w.valid),c=s.prop(!1),m=s.prop(r??"touchedOrSubmit"),u=d=>{o.set(d)};let b;const y=async d=>{if(n!=null){const p=await n(d);u(p)}},v=async d=>{l.set(d),t?.(d);const p=m.value;if(n!=null){if(p==="onSubmit")return;const S=i??0;S>0?(b&&clearTimeout(b),b=setTimeout(()=>{y(d)},S)):await y(d)}},h=new E([],v,l,o,{disabled:c,validationMode:m},a??V);return h.onDispose(()=>{c.dispose(),l.dispose(),o.dispose(),m.dispose(),b&&clearTimeout(b)}),{controller:h,setStatus:u}}function F(e){return s.Fragment(s.attr.disabled(e.disabled),s.attr.name(e.name))}function oe(e,{triggerOn:t="change"}={}){return s.Fragment(F(e),s.attr.value(e.value),(t==="input"?s.on.input:s.on.change)(s.emitValue(e.change)))}function ce(e,{triggerOn:t="change"}={}){return s.Fragment(F(e),s.attr.valueAsNumber(e.value),(t==="input"?s.on.input:s.on.change)(s.emitValueAsNumber(e.change)))}function D(e){return e.issues!=null?w.invalid(K(e.issues)):w.valid}async function ue({task:e,errorMessage:t,errorPath:n=["root"],validation:a}){try{const r=await e();return a!=null?a(r):w.valid}catch(r){const i=t??(r instanceof Error?r.message:"Operation failed");return n.length===1&&n[0]==="root"?w.invalid({message:i}):w.invalid({dependencies:J(n,i)})}}function J(e,t){if(e.length===1)return{[e[0]]:{message:t}};const[n,...a]=e;return{[n]:{dependencies:J(a,t)}}}function he({initialValue:e={},schema:t,onSubmit:n=async()=>w.valid,validationMode:a,validateDebounceMs:r}){const{controller:i,setStatus:l}=G({initialValue:e,validationMode:a??"touchedOrSubmit",validateDebounceMs:r,validate:(a??"touchedOrSubmit")==="onSubmit"?void 0:async u=>D(await t["~standard"].validate(u))}),o=s.prop(!1),c=i.object();return c.onDispose(o.dispose),{controller:c,setStatus:l,submit:async u=>{if(o.set(!0),u?.preventDefault(),c.markAllTouched(),(a??"touchedOrSubmit")==="onSubmit"){const y=c.value.value,v=D(await t["~standard"].validate(y));if(l(v),v.type==="invalid"){o.set(!1);return}}const b=await n(c.value.value);o.set(!1),b.type==="invalid"&&l(b)},submitting:o}}function de(e){switch(e){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function pe(e){switch(e){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function me(e,t,n,a){const r=["bc-notice",`bc-notice--${e}`,`bc-notice--tone-${t}`];return n&&r.push("bc-notice--dismissible"),a&&a.length>0&&r.push(a),r.join(" ")}function fe({variant:e="info",tone:t="subtle",role:n,title:a,icon:r,closable:i=!1,onDismiss:l,class:o},...c){const m=s.Value.map(i,d=>!!d||l!=null),u=s.Value.map(e,d=>d??"info"),b=s.Value.map(t,d=>d??"subtle"),y=s.computedOf(n,u)((d,p)=>d??(p==="danger"?"alert":"status")),v=s.prop(!0),h=s.Use(k.BeatUII18n,d=>s.html.div(s.attr.class(s.computedOf(u,b,m,o)((p,S,C,I)=>me(p,S,C,I))),s.attr.role(s.Value.map(y,p=>p)),s.Unless(s.Value.map(r,p=>p===!1),()=>s.html.div(s.attr.class("bc-notice__icon"),k.Icon({icon:s.computedOf(r,u)((p,S)=>p===void 0?de(S):String(p)),size:"md",color:s.Value.map(u,pe)}))),s.html.div(s.attr.class("bc-notice__body"),s.Ensure(a,p=>s.html.div(s.attr.class("bc-notice__title"),p)),s.html.div(s.attr.class("bc-notice__content"),...c)),s.When(m,()=>P({size:"xs",label:d.$.closeModal,onClick:()=>{v.set(!1),l?.()}}))));return s.When(v,()=>h)}exports.ArrayController=z;exports.BaseControl=M;exports.BaseMappedControl=q;exports.CheckboxInput=Z;exports.CloseButton=P;exports.Control=ae;exports.Controller=E;exports.DangerLabel=Y;exports.EmailInput=ne;exports.EmphasisLabel=X;exports.InputWrapper=A;exports.Label=$;exports.MappedControl=ie;exports.MutedLabel=L;exports.Notice=fe;exports.O=V;exports.ObjectController=H;exports.PasswordInput=re;exports.RequiredSymbol=N;exports.Stack=se;exports.a=w;exports.connectCommonAttributes=F;exports.connectNumberInput=ce;exports.connectStringInput=oe;exports.convertStandardSchemaIssues=K;exports.convertStandardSchemaPathToPath=R;exports.makeMapValidation=_;exports.makeOnBlurHandler=x;exports.makeOnChangeHandler=j;exports.parsePath=le;exports.pathToString=W;exports.sessionId=T;exports.standardSchemaResultToValidation=D;exports.taskToValidation=ue;exports.useController=G;exports.useForm=he;exports.wrapSegment=U;
|
|
@@ -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-DQxg-W9w.cjs"),t={loadingExtended:"Ładowanie, proszę czekać",loadingShort:"Ładowanie...",locale:"Język",iconDescription:"Ikona",loadingIcon:"Ikona ładowania",failedToLoadIcon:"Nie udało się załadować ikony",editLabel:"Edytuj",selectOne:"Wybierz jeden",selectMany:"Wybierz wiele",noResults:"Brak wyników",passwordPlaceholderText:"Tajne hasło",togglePasswordVisibility:"Przełącz widoczność hasła",toggleMenu:"Przełącz menu",toggleAside:"Przełącz panel boczny",mainNavigation:"Główna nawigacja",sidebar:"Pasek boczny",closeDrawer:"Zamknij szufladę",closeModal:"Zamknij modal",confirm:"Potwierdź",cancel:"Anuluj",addLabel:"Dodaj",removeItem:"Usuń element",currentLocale:"Polski",ar:"Arabski",de:"Niemiecki",en:"Angielski",es:"Hiszpański",fr:"Francuski",hi:"Hindi",it:"Włoski",ja:"Japoński",ko:"Koreański",nl:"Holenderski",pl:"Polski",pt:"Portugalski",ru:"Rosyjski",tr:"Turecki",vi:"Wietnamski",zh:"Chiński",he:"Hebrajski",fa:"Perski",ur:"Urdu",emailPlaceholderText:"Wprowadź adres e-mail",incrementValue:"Zwiększ wartość",decrementValue:"Zmniejsz wartość",dropZoneInstructions:e=>e?"Kliknij aby wybrać lub przeciągnij pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików":"Przeciągnij pliki tutaj",fileSizeUnits:["Bajty","KB","MB","GB","TB"],removeFile:"Usuń plik",clearAllFiles:"Usuń wszystkie pliki",clearValue:"Wyczyść wartość",unknownType:"Nieznany typ",filesInputInstructions:(e,o,a)=>{let n=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||o){const i=[];if(e!=null&&e>1&&i.push(`do ${e} plików`),o&&a){const r=l.formatFileSize(o,{units:a});i.push(`maks ${r} każdy`)}i.length>0&&(n+=` (${i.join(", ")})`)}else if(o&&a){const i=l.formatFileSize(o,{units:a});n+=` (maks ${i})`}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"}};exports.default=t;exports.pl=t;
|
|
@@ -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-B4irUWVb.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-DQxg-W9w.cjs"),n={loadingExtended:"Carregando, por favor aguarde",loadingShort:"Carregando...",locale:"Idioma",iconDescription:"Ícone",loadingIcon:"Ícone de carregamento",failedToLoadIcon:"Falha ao carregar ícone",editLabel:"Editar",selectOne:"Selecionar um",selectMany:"Selecionar vários",noResults:"Sem resultados",passwordPlaceholderText:"Senha Secreta",togglePasswordVisibility:"Alternar visibilidade da senha",toggleMenu:"Alternar menu",toggleAside:"Alternar painel lateral",mainNavigation:"Navegação principal",sidebar:"Barra lateral",closeDrawer:"Fechar gaveta",closeModal:"Fechar modal",confirm:"Confirmar",cancel:"Cancelar",addLabel:"Adicionar",removeItem:"Remover item",currentLocale:"Português",ar:"Árabe",de:"Alemão",en:"Inglês",es:"Espanhol",fr:"Francês",hi:"Hindi",it:"Italiano",ja:"Japonês",ko:"Coreano",nl:"Holandês",pl:"Polonês",pt:"Português",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Chinês",he:"Hebraico",fa:"Persa",ur:"Urdu",emailPlaceholderText:"Digite seu e-mail",incrementValue:"Incrementar valor",decrementValue:"Decrementar valor",dropZoneInstructions:e=>e?"Clique para escolher ou arraste arquivos aqui, ou pressione Enter ou Espaço para abrir o seletor de arquivos":"Arraste arquivos aqui",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Remover arquivo",clearAllFiles:"Limpar todos os arquivos",clearValue:"Limpar valor",unknownType:"Tipo desconhecido",filesInputInstructions:(e,r,o)=>{let t=e==null||e>1?"Clique para escolher ou arraste arquivos aqui":"Clique para escolher ou arraste um arquivo aqui";if(e||r){const a=[];if(e!=null&&e>1&&a.push(`até ${e} arquivos`),r&&o){const l=i.formatFileSize(r,{units:o});a.push(`máx ${l} cada`)}a.length>0&&(t+=` (${a.join(", ")})`)}else if(r&&o){const a=i.formatFileSize(r,{units:o});t+=` (máx ${a})`}return t},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"}};exports.default=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-DQxg-W9w.cjs"),c={loadingExtended:"Загрузка, пожалуйста подождите",loadingShort:"Загрузка...",locale:"Локаль",iconDescription:"Иконка",loadingIcon:"Иконка загрузки",failedToLoadIcon:"Не удалось загрузить иконку",editLabel:"Редактировать",selectOne:"Выберите один",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 или Пробел, чтобы открыть выбор файлов":"Перетащите файлы сюда",fileSizeUnits:["Байт","КБ","МБ","ГБ","ТБ"],removeFile:"Удалить файл",clearAllFiles:"Очистить все файлы",clearValue:"Очистить значение",unknownType:"Неизвестный тип",filesInputInstructions:(e,t,l)=>{let r=e==null||e>1?"Нажмите для выбора или перетащите файлы сюда":"Нажмите для выбора или перетащите файл сюда";if(e||t){const o=[];if(e!=null&&e>1){let n="файлов";e<=4&&(n="файла"),o.push(`до ${e} ${n}`)}if(t&&l){const n=i.formatFileSize(t,{units:l});o.push(`макс ${n} каждый`)}o.length>0&&(r+=` (${o.join(", ")})`)}else if(t&&l){const o=i.formatFileSize(t,{units:l});r+=` (макс ${o})`}return r},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"}};exports.default=c;exports.ru=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("@tempots/dom"),o=require("@tempots/ui"),n={mark:e.makeProviderMark("Theme"),create:({defaultAppearance:s="system"}={})=>{const r=o.useAppearance(),a=e.localStorageProp({key:"beatui-appearance-preference",defaultValue:s}),p=()=>{r.dispose(),a.dispose()};return{value:{appearance:e.computedOf(r,a)((c,t)=>t==="system"?c:t),appearancePreference:a,setAppearancePreference:c=>{a.set(c)}},dispose:p}}},u=()=>e.Use(n,({appearance:s})=>e.attr.class(s.map(r=>`b-${r}`)));exports.Theme=n;exports.ThemeAppearance=u;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { makeProviderMark as c, localStorageProp as n, computedOf as o, Use as m, attr as u } from "@tempots/dom";
|
|
2
|
+
import { useAppearance as f } from "@tempots/ui";
|
|
3
|
+
const i = {
|
|
4
|
+
mark: c("Theme"),
|
|
5
|
+
// Create function returns the value and cleanup
|
|
6
|
+
create: ({ defaultAppearance: r = "system" } = {}) => {
|
|
7
|
+
const e = f(), a = n({
|
|
8
|
+
key: "beatui-appearance-preference",
|
|
9
|
+
defaultValue: r
|
|
10
|
+
}), t = () => {
|
|
11
|
+
e.dispose(), a.dispose();
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
value: {
|
|
15
|
+
appearance: o(
|
|
16
|
+
e,
|
|
17
|
+
a
|
|
18
|
+
)((s, p) => p === "system" ? s : p),
|
|
19
|
+
appearancePreference: a,
|
|
20
|
+
setAppearancePreference: (s) => {
|
|
21
|
+
a.set(s);
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
dispose: t
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}, k = () => m(
|
|
28
|
+
i,
|
|
29
|
+
({ appearance: r }) => u.class(r.map((e) => `b-${e}`))
|
|
30
|
+
);
|
|
31
|
+
export {
|
|
32
|
+
i as T,
|
|
33
|
+
k as a
|
|
34
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html as c, attr as n, aria as m, WithElement as v, OnDispose as A } from "@tempots/dom";
|
|
2
|
-
import { B as x } from "./translations-
|
|
2
|
+
import { B as x } from "./translations-iam7PITs.js";
|
|
3
3
|
const l = [
|
|
4
4
|
"button:not([disabled])",
|
|
5
5
|
'[role="button"]:not([aria-disabled="true"])',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@tempots/dom"),h=require("./translations-
|
|
1
|
+
"use strict";const e=require("@tempots/dom"),h=require("./translations-DQxg-W9w.cjs"),l=["button:not([disabled])",'[role="button"]:not([aria-disabled="true"])',"a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function m(...a){return e.html.div(e.attr.class("bc-toolbar"),e.attr.role("toolbar"),e.aria.orientation("horizontal"),e.WithElement(n=>{const f=()=>{const r=Array.from(n.querySelectorAll(l));r.length!==0&&r.forEach((t,o)=>t.setAttribute("tabindex",o===0?"0":"-1"))},c=r=>{const t=Array.from(n.querySelectorAll(l));if(t.length===0)return;const o=t.findIndex(u=>u===document.activeElement);let i=(o===-1?0:o)+r;i<0&&(i=t.length-1),i>=t.length&&(i=0),t.forEach(u=>u.setAttribute("tabindex","-1"));const d=t[i];d.setAttribute("tabindex","0"),d.focus()};setTimeout(f,0);const b=r=>{switch(r.key){case"ArrowRight":r.preventDefault(),c(1);break;case"ArrowLeft":r.preventDefault(),c(-1);break;case"Home":r.preventDefault(),c(-1);{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[0];o.setAttribute("tabindex","0"),o.focus()}}break;case"End":r.preventDefault();{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[t.length-1];o.setAttribute("tabindex","0"),o.focus()}}break}};return n.addEventListener("keydown",b),e.OnDispose(()=>{n.removeEventListener("keydown",b)})}),...a)}function v(a,...n){return h.Button({color:"neutral",roundedness:"md",variant:"light",...a},e.attr.class("bc-toolbar__button"),...n)}function A(...a){return e.html.div(e.attr.class("bc-toolbar__group"),e.attr.role("group"),...a)}function x(){return e.html.div(e.attr.class("bc-toolbar__divider"),e.attr.role("separator"),e.aria.orientation("vertical"))}function p(){return e.html.div(e.attr.class("bc-toolbar__spacer"))}exports.Toolbar=m;exports.ToolbarButton=v;exports.ToolbarDivider=x;exports.ToolbarGroup=A;exports.ToolbarSpacer=p;
|
|
@@ -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-DQxg-W9w.cjs"),t={loadingExtended:"Yükleniyor, lütfen bekleyin",loadingShort:"Yükleniyor...",locale:"Yerel",iconDescription:"Simge",loadingIcon:"Yükleme simgesi",failedToLoadIcon:"Simge yüklenemedi",editLabel:"Düzenle",selectOne:"Birini seç",selectMany:"Birden fazlasını seç",noResults:"Sonuç yok",passwordPlaceholderText:"Gizli Şifre",togglePasswordVisibility:"Şifre görünürlüğünü değiştir",toggleMenu:"Menüyü değiştir",toggleAside:"Yan paneli değiştir",mainNavigation:"Ana navigasyon",sidebar:"Kenar çubuğu",closeDrawer:"Çekmeceyi kapat",closeModal:"Modalı kapat",confirm:"Onayla",cancel:"İptal",addLabel:"Ekle",removeItem:"Öğeyi kaldır",currentLocale:"Türkçe",ar:"Arapça",de:"Almanca",en:"İngilizce",es:"İspanyolca",fr:"Fransızca",hi:"Hintçe",it:"İtalyanca",ja:"Japonca",ko:"Korece",nl:"Flemenkçe",pl:"Lehçe",pt:"Portekizce",ru:"Rusça",tr:"Türkçe",vi:"Vietnamca",zh:"Çince",he:"İbranice",fa:"Farsça",ur:"Urduca",emailPlaceholderText:"E-postanızı girin",incrementValue:"Değer artır",decrementValue:"Değer azalt",dropZoneInstructions:e=>e?"Seçmek için tıklayın veya dosyaları buraya sürükleyin, veya dosya seçiciyi açmak için Enter veya Boşluk tuşuna basın":"Dosyaları buraya sürükleyin",fileSizeUnits:["Bayt","KB","MB","GB","TB"],removeFile:"Dosyayı kaldır",clearAllFiles:"Tüm dosyaları temizle",clearValue:"Değeri temizle",unknownType:"Bilinmeyen tür",filesInputInstructions:(e,n,i)=>{let l=e==null||e>1?"Seçmek için tıklayın veya dosyaları buraya sürükleyin":"Seçmek için tıklayın veya dosyayı buraya sürükleyin";if(e||n){const a=[];if(e!=null&&e>1&&a.push(`en fazla ${e} dosya`),n&&i){const o=r.formatFileSize(n,{units:i});a.push(`her biri en fazla ${o}`)}a.length>0&&(l+=` (${a.join(", ")})`)}else if(n&&i){const a=r.formatFileSize(n,{units:i});l+=` (en fazla ${a})`}return l},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"}};exports.default=t;
|