@tempots/beatui 0.18.0 → 0.19.1
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-JlqBnfO0.cjs → 2019-CfIF9XVA.cjs} +1 -1
- package/dist/{2019-C0NjrG2i.js → 2019-D0n7sHsB.js} +2 -2
- package/dist/{2020-lqWvthL_.js → 2020-BkXWq9F8.js} +2 -2
- package/dist/{2020-r3MHWrkK.cjs → 2020-D1ziwonq.cjs} +1 -1
- package/dist/{ar-VA2yE-1i.js → ar-CMndb3tf.js} +1 -1
- package/dist/{ar-DReA9eQ2.cjs → ar-DYmDITuw.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +3 -3
- package/dist/beatui.css +1 -1
- package/dist/{de-C14QN5V1.js → de-Cgy7XJBg.js} +1 -1
- package/dist/{de-BIj_wrpg.cjs → de-ClQgQrXM.cjs} +1 -1
- package/dist/{es-D1oMYUqV.cjs → es-BN5Mihv0.cjs} +1 -1
- package/dist/{es-B5GqMkMg.js → es-j0qszDAW.js} +1 -1
- package/dist/{fa-D5TvDNdj.cjs → fa-BUQvM0nj.cjs} +1 -1
- package/dist/{fa-BxlrmcQK.js → fa-COUp2ofv.js} +1 -1
- package/dist/{fr-BzFxzocR.js → fr-B5Ar6QcE.js} +1 -1
- package/dist/{fr-DPGRV4C4.cjs → fr-CwvsJDIZ.cjs} +1 -1
- package/dist/{he-DjHXtt_S.js → he-D5HTHvKh.js} +1 -1
- package/dist/{he-XNDY7609.cjs → he-HZvvmFUB.cjs} +1 -1
- package/dist/{hi-Xlc0IeoY.js → hi-Bcc7iEXp.js} +1 -1
- package/dist/{hi-eMrnBh0O.cjs → hi-Cnr1RtgA.cjs} +1 -1
- package/dist/{index-D48AYUAg.js → index-2DKUYRWr.js} +1 -1
- package/dist/{index-BmUA4_Ip.js → index-B-d5blto.js} +3 -3
- package/dist/{index-22y56f5G.js → index-BF4pXHo-.js} +3 -3
- package/dist/{index-9HEatb8C.js → index-BJfVmi_X.js} +2 -2
- package/dist/{index-CpqyQcup.js → index-Bg1QLlyj.js} +2 -2
- package/dist/{index-xnxTfNd2.js → index-BirEb-BA.js} +8 -6
- package/dist/{index-C3BW17zm.cjs → index-C9XAXTDx.cjs} +1 -1
- package/dist/{index-CeYwt1r1.js → index-CFo2nnaI.js} +2 -2
- package/dist/{index-B79joQIU.js → index-CHgx0rFt.js} +2 -2
- package/dist/{index-Dghyrng7.js → index-CKRuo2DB.js} +2 -2
- package/dist/{index-CY_sj-qf.js → index-CUs1c8a9.js} +2 -2
- package/dist/{index-d3p39HQv.js → index-CoBM7UvE.js} +2 -2
- package/dist/{index-tOao3Qu5.js → index-D0-d-xdJ.js} +4 -4
- package/dist/{index-DIO06RsV.js → index-DC4nzG_w.js} +2 -2
- package/dist/{index-BWxeedWQ.js → index-DD-MOsCa.js} +2 -2
- package/dist/{index-BDr9qHd0.js → index-DJ-avKHU.js} +2 -2
- package/dist/{index-DLJt9Ebe.cjs → index-DXFKCiah.cjs} +2 -2
- package/dist/{index-COyS3EXB.js → index-DYIv5X6N.js} +2 -2
- package/dist/{index-BKr-B2hh.js → index-Dben4dbo.js} +2 -2
- package/dist/{index-BGcCFDkp.js → index-_OaxQJX1.js} +4 -4
- package/dist/{index-B1w_-cUQ.js → index-dV4F3c70.js} +3 -3
- package/dist/{index-C0t8aD9u.js → index-faGepKVA.js} +2 -2
- package/dist/{index-BF_OOMtT.js → index-rWglN8IQ.js} +1 -1
- package/dist/{index-DpHYZhFL.js → index-tuwLQMCb.js} +3 -3
- package/dist/{index-DutbjaBQ.js → index-ykojBEwT.js} +4 -4
- package/dist/index.cjs.js +5 -5
- package/dist/index.es.js +12 -13
- package/dist/{it-DzUV0SmB.cjs → it-B7KeOLBm.cjs} +1 -1
- package/dist/{it-CR0FAQEB.js → it-CTCKFU5g.js} +1 -1
- package/dist/{ja-f2fDsTUD.cjs → ja-0ldomgID.cjs} +1 -1
- package/dist/{ja-WICb5O3K.js → ja-BGoETTZv.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-DvDEQ6FS.cjs → ko-C4WEkArz.cjs} +1 -1
- package/dist/{ko-30evSGGW.js → ko-xHeRs9LU.js} +1 -1
- package/dist/link-portal-Cr2l9f3k.js +9 -0
- package/dist/markdown/index.es.js +1 -1
- package/dist/milkdown/index.es.js +1 -1
- package/dist/{milkdown-input-DaN9l6E_.js → milkdown-input-BbbZJGDl.js} +26 -26
- package/dist/{modal-CeVJb-Ko.js → modal-nbZW44XS.js} +1 -1
- package/dist/{modal-Ba2uXVSD.cjs → modal-wbG_oGOr.cjs} +1 -1
- package/dist/monaco/index.es.js +1 -1
- package/dist/{nl-hmXJvCw7.cjs → nl-D-y231ZO.cjs} +1 -1
- package/dist/{nl-DaCzsF01.js → nl-ey2Li7DF.js} +1 -1
- package/dist/{notice-BgnHRPMk.js → notice-CIPcSfD5.js} +1 -1
- package/dist/{notice-t8qZIDvK.cjs → notice-Cq02YHoN.cjs} +1 -1
- package/dist/{pl-DlMR1sq8.js → pl-Bf0QaCGx.js} +1 -1
- package/dist/{pl-Cg5Kr9eZ.cjs → pl-G6e4Mybr.cjs} +1 -1
- package/dist/{pt-B7uWbJ1j.cjs → pt-CD2Eqazl.cjs} +1 -1
- package/dist/{pt-lX3h34iM.js → pt-D-_KxA9g.js} +1 -1
- package/dist/{ru-CrQR5RUx.cjs → ru-CKh2xgqC.cjs} +1 -1
- package/dist/{ru-2aVFFaQ-.js → ru-Dzbl29K2.js} +1 -1
- package/dist/{tr-DN9zPGaS.cjs → tr-BbpC5gzM.cjs} +1 -1
- package/dist/{tr-DgRS_mcj.js → tr-yMHT8n7z.js} +1 -1
- package/dist/{translations-pfS-x8Ak.cjs → translations-CXE8Z_Ac.cjs} +1 -1
- package/dist/{translations-CxMNY8i7.js → translations-DBtfTNnM.js} +30 -31
- package/dist/{translations-CVR1KQJ3.js → translations-DbN-OSLv.js} +1 -1
- package/dist/translations-EQ1qPZ0_.cjs +2 -0
- package/dist/types/components/misc/link-portal.d.ts +1 -1
- package/dist/{ur-fgmvVBHY.js → ur-CdQA0epV.js} +1 -1
- package/dist/{ur-BzgBZpdY.cjs → ur-kkik6-_r.cjs} +1 -1
- package/dist/{vi-DijXfJCL.cjs → vi-1xtFXJc0.cjs} +1 -1
- package/dist/{vi-DZzB43iu.js → vi-A8UmZU3L.js} +1 -1
- package/dist/{zh-Bcz-uyJp.js → zh-D0nnvX8T.js} +1 -1
- package/dist/{zh-BMcC2kwD.cjs → zh-DC_SsXdk.cjs} +1 -1
- package/package.json +4 -4
- package/dist/link-portal-B-RvroWY.js +0 -5
- package/dist/translations-CSUEQrNH.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./translations-EQ1qPZ0_.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,a,o)=>{let n=e==null||e>1?"Clicca per scegliere o trascina i file qui":"Clicca per scegliere o trascina un file qui";if(e||a){const i=[];if(e!=null&&e>1&&i.push(`fino a ${e} file`),a&&o){const l=t.formatFileSize(a,{units:o});i.push(`max ${l} ciascuno`)}i.length>0&&(n+=` (${i.join(", ")})`)}else if(a&&o){const i=t.formatFileSize(a,{units:o});n+=` (max ${i})`}return n}};exports.default=r;
|
|
@@ -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-EQ1qPZ0_.cjs"),a={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,n,o)=>{let r=(e==null||e>1,"クリックして選択するか、ファイルをここにドラッグ");if(e||n){const t=[];if(e!=null&&e>1&&t.push(`最大${e}ファイル`),n&&o){const c=l.formatFileSize(n,{units:o});t.push(`各${c}以下`)}t.length>0&&(r+=` (${t.join("、")})`)}else if(n&&o){const t=l.formatFileSize(n,{units:o});r+=` (最大${t})`}return r}};exports.default=a;exports.ja=a;
|
|
@@ -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-DXFKCiah.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 { U as s, J as S, R as c, O as o, M as t, H as r, W as m, G as h, X as O, V as n, K as l, N, I as J, P as i, T as v, L as C, Q as u, S as A, v as f, u as g, t as d, s as j, w as E, x as b, z as p, D as y, Y as T, E as F, C as P, A as V, y as x, F as I, q as B, B as D } from "../index-
|
|
1
|
+
import { U as s, J as S, R as c, O as o, M as t, H as r, W as m, G as h, X as O, V as n, K as l, N, I as J, P as i, T as v, L as C, Q as u, S as A, v as f, u as g, t as d, s as j, w as E, x as b, z as p, D as y, Y as T, E as F, C as P, A as V, y as x, F as I, q as B, B as D } from "../index-BirEb-BA.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 l=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-EQ1qPZ0_.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,o,n)=>{let r=(e==null||e>1,"클릭하여 선택하거나 파일을 여기로 드래그하세요");if(e||o){const t=[];if(e!=null&&e>1&&t.push(`최대 ${e}개 파일`),o&&n){const a=l.formatFileSize(o,{units:n});t.push(`각각 최대 ${a}`)}t.length>0&&(r+=` (${t.join(", ")})`)}else if(o&&n){const t=l.formatFileSize(o,{units:n});r+=` (최대 ${t})`}return r}};exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computedOf as _e, html as je, Task as $e, attr as V, MapSignal as Qe, Async as Ge } from "@tempots/dom";
|
|
2
2
|
import { c as Je, p as F, e as Ke, n as _, s as y, d as Xe, a as Ye, b as Ze, f as ve, g as en } from "../preprocess-D898zxsP.js";
|
|
3
|
-
import { L as nn } from "../link-portal-
|
|
3
|
+
import { L as nn } from "../link-portal-Cr2l9f3k.js";
|
|
4
4
|
const j = {}.hasOwnProperty, $ = /^(https?|ircs?|mailto|xmpp)$/i, tn = /^https?$/i;
|
|
5
5
|
function on(k) {
|
|
6
6
|
const l = k || {};
|
|
@@ -7,7 +7,7 @@ import { Value as Ks, html as tP, Task as nP, attr as $h, WithElement as rP, OnD
|
|
|
7
7
|
import { g as sP } from "./_commonjsHelpers-C6fGbg64.js";
|
|
8
8
|
import { d as zS, a as FS, b as oP, f as lP, g as aP, n as Gf, t as Dw, u as cP, j as uP, o as Cp, v as ma } from "./preprocess-D898zxsP.js";
|
|
9
9
|
import { gfm as hP } from "./index-B2079wM-.js";
|
|
10
|
-
import { L as fP } from "./link-portal-
|
|
10
|
+
import { L as fP } from "./link-portal-Cr2l9f3k.js";
|
|
11
11
|
var HS = typeof global == "object" && global && global.Object === Object && global, dP = typeof self == "object" && self && self.Object === Object && self, fc = HS || dP || Function("return this")(), N1 = fc.Symbol, VS = Object.prototype, pP = VS.hasOwnProperty, mP = VS.toString, qh = N1 ? N1.toStringTag : void 0;
|
|
12
12
|
function gP(n) {
|
|
13
13
|
var e = pP.call(n, qh), t = n[qh];
|
|
@@ -14539,7 +14539,7 @@ function J(n) {
|
|
|
14539
14539
|
return new kV(ob.define(n));
|
|
14540
14540
|
}
|
|
14541
14541
|
function Go(n) {
|
|
14542
|
-
return import("./index-
|
|
14542
|
+
return import("./index-Bg1QLlyj.js").then((e) => e.sql({ dialect: e[n] }));
|
|
14543
14543
|
}
|
|
14544
14544
|
const d$ = [
|
|
14545
14545
|
// New-style language modes
|
|
@@ -14547,7 +14547,7 @@ const d$ = [
|
|
|
14547
14547
|
name: "C",
|
|
14548
14548
|
extensions: ["c", "h", "ino"],
|
|
14549
14549
|
load() {
|
|
14550
|
-
return import("./index-
|
|
14550
|
+
return import("./index-DJ-avKHU.js").then((n) => n.cpp());
|
|
14551
14551
|
}
|
|
14552
14552
|
}),
|
|
14553
14553
|
/* @__PURE__ */ z.of({
|
|
@@ -14555,7 +14555,7 @@ const d$ = [
|
|
|
14555
14555
|
alias: ["cpp"],
|
|
14556
14556
|
extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
|
|
14557
14557
|
load() {
|
|
14558
|
-
return import("./index-
|
|
14558
|
+
return import("./index-DJ-avKHU.js").then((n) => n.cpp());
|
|
14559
14559
|
}
|
|
14560
14560
|
}),
|
|
14561
14561
|
/* @__PURE__ */ z.of({
|
|
@@ -14570,14 +14570,14 @@ const d$ = [
|
|
|
14570
14570
|
name: "CSS",
|
|
14571
14571
|
extensions: ["css"],
|
|
14572
14572
|
load() {
|
|
14573
|
-
return import("./index-
|
|
14573
|
+
return import("./index-CKRuo2DB.js").then((n) => n.css());
|
|
14574
14574
|
}
|
|
14575
14575
|
}),
|
|
14576
14576
|
/* @__PURE__ */ z.of({
|
|
14577
14577
|
name: "Go",
|
|
14578
14578
|
extensions: ["go"],
|
|
14579
14579
|
load() {
|
|
14580
|
-
return import("./index-
|
|
14580
|
+
return import("./index-DYIv5X6N.js").then((n) => n.go());
|
|
14581
14581
|
}
|
|
14582
14582
|
}),
|
|
14583
14583
|
/* @__PURE__ */ z.of({
|
|
@@ -14585,14 +14585,14 @@ const d$ = [
|
|
|
14585
14585
|
alias: ["xhtml"],
|
|
14586
14586
|
extensions: ["html", "htm", "handlebars", "hbs"],
|
|
14587
14587
|
load() {
|
|
14588
|
-
return import("./index-
|
|
14588
|
+
return import("./index-D0-d-xdJ.js").then((n) => n.html());
|
|
14589
14589
|
}
|
|
14590
14590
|
}),
|
|
14591
14591
|
/* @__PURE__ */ z.of({
|
|
14592
14592
|
name: "Java",
|
|
14593
14593
|
extensions: ["java"],
|
|
14594
14594
|
load() {
|
|
14595
|
-
return import("./index-
|
|
14595
|
+
return import("./index-faGepKVA.js").then((n) => n.java());
|
|
14596
14596
|
}
|
|
14597
14597
|
}),
|
|
14598
14598
|
/* @__PURE__ */ z.of({
|
|
@@ -14600,7 +14600,7 @@ const d$ = [
|
|
|
14600
14600
|
alias: ["ecmascript", "js", "node"],
|
|
14601
14601
|
extensions: ["js", "mjs", "cjs"],
|
|
14602
14602
|
load() {
|
|
14603
|
-
return import("./index-
|
|
14603
|
+
return import("./index-DC4nzG_w.js").then((n) => n.javascript());
|
|
14604
14604
|
}
|
|
14605
14605
|
}),
|
|
14606
14606
|
/* @__PURE__ */ z.of({
|
|
@@ -14608,28 +14608,28 @@ const d$ = [
|
|
|
14608
14608
|
alias: ["json5"],
|
|
14609
14609
|
extensions: ["json", "map"],
|
|
14610
14610
|
load() {
|
|
14611
|
-
return import("./index-
|
|
14611
|
+
return import("./index-CHgx0rFt.js").then((n) => n.json());
|
|
14612
14612
|
}
|
|
14613
14613
|
}),
|
|
14614
14614
|
/* @__PURE__ */ z.of({
|
|
14615
14615
|
name: "JSX",
|
|
14616
14616
|
extensions: ["jsx"],
|
|
14617
14617
|
load() {
|
|
14618
|
-
return import("./index-
|
|
14618
|
+
return import("./index-DC4nzG_w.js").then((n) => n.javascript({ jsx: !0 }));
|
|
14619
14619
|
}
|
|
14620
14620
|
}),
|
|
14621
14621
|
/* @__PURE__ */ z.of({
|
|
14622
14622
|
name: "LESS",
|
|
14623
14623
|
extensions: ["less"],
|
|
14624
14624
|
load() {
|
|
14625
|
-
return import("./index-
|
|
14625
|
+
return import("./index-dV4F3c70.js").then((n) => n.less());
|
|
14626
14626
|
}
|
|
14627
14627
|
}),
|
|
14628
14628
|
/* @__PURE__ */ z.of({
|
|
14629
14629
|
name: "Liquid",
|
|
14630
14630
|
extensions: ["liquid"],
|
|
14631
14631
|
load() {
|
|
14632
|
-
return import("./index-
|
|
14632
|
+
return import("./index-tuwLQMCb.js").then((n) => n.liquid());
|
|
14633
14633
|
}
|
|
14634
14634
|
}),
|
|
14635
14635
|
/* @__PURE__ */ z.of({
|
|
@@ -14642,7 +14642,7 @@ const d$ = [
|
|
|
14642
14642
|
name: "Markdown",
|
|
14643
14643
|
extensions: ["md", "markdown", "mkd"],
|
|
14644
14644
|
load() {
|
|
14645
|
-
return import("./index-
|
|
14645
|
+
return import("./index-Dben4dbo.js").then((n) => n.markdown());
|
|
14646
14646
|
}
|
|
14647
14647
|
}),
|
|
14648
14648
|
/* @__PURE__ */ z.of({
|
|
@@ -14661,7 +14661,7 @@ const d$ = [
|
|
|
14661
14661
|
name: "PHP",
|
|
14662
14662
|
extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
|
|
14663
14663
|
load() {
|
|
14664
|
-
return import("./index-
|
|
14664
|
+
return import("./index-B-d5blto.js").then((n) => n.php());
|
|
14665
14665
|
}
|
|
14666
14666
|
}),
|
|
14667
14667
|
/* @__PURE__ */ z.of({
|
|
@@ -14682,28 +14682,28 @@ const d$ = [
|
|
|
14682
14682
|
extensions: ["BUILD", "bzl", "py", "pyw"],
|
|
14683
14683
|
filename: /^(BUCK|BUILD)$/,
|
|
14684
14684
|
load() {
|
|
14685
|
-
return import("./index-
|
|
14685
|
+
return import("./index-BJfVmi_X.js").then((n) => n.python());
|
|
14686
14686
|
}
|
|
14687
14687
|
}),
|
|
14688
14688
|
/* @__PURE__ */ z.of({
|
|
14689
14689
|
name: "Rust",
|
|
14690
14690
|
extensions: ["rs"],
|
|
14691
14691
|
load() {
|
|
14692
|
-
return import("./index-
|
|
14692
|
+
return import("./index-CoBM7UvE.js").then((n) => n.rust());
|
|
14693
14693
|
}
|
|
14694
14694
|
}),
|
|
14695
14695
|
/* @__PURE__ */ z.of({
|
|
14696
14696
|
name: "Sass",
|
|
14697
14697
|
extensions: ["sass"],
|
|
14698
14698
|
load() {
|
|
14699
|
-
return import("./index-
|
|
14699
|
+
return import("./index-BF4pXHo-.js").then((n) => n.sass({ indented: !0 }));
|
|
14700
14700
|
}
|
|
14701
14701
|
}),
|
|
14702
14702
|
/* @__PURE__ */ z.of({
|
|
14703
14703
|
name: "SCSS",
|
|
14704
14704
|
extensions: ["scss"],
|
|
14705
14705
|
load() {
|
|
14706
|
-
return import("./index-
|
|
14706
|
+
return import("./index-BF4pXHo-.js").then((n) => n.sass());
|
|
14707
14707
|
}
|
|
14708
14708
|
}),
|
|
14709
14709
|
/* @__PURE__ */ z.of({
|
|
@@ -14723,7 +14723,7 @@ const d$ = [
|
|
|
14723
14723
|
name: "TSX",
|
|
14724
14724
|
extensions: ["tsx"],
|
|
14725
14725
|
load() {
|
|
14726
|
-
return import("./index-
|
|
14726
|
+
return import("./index-DC4nzG_w.js").then((n) => n.javascript({ jsx: !0, typescript: !0 }));
|
|
14727
14727
|
}
|
|
14728
14728
|
}),
|
|
14729
14729
|
/* @__PURE__ */ z.of({
|
|
@@ -14731,14 +14731,14 @@ const d$ = [
|
|
|
14731
14731
|
alias: ["ts"],
|
|
14732
14732
|
extensions: ["ts", "mts", "cts"],
|
|
14733
14733
|
load() {
|
|
14734
|
-
return import("./index-
|
|
14734
|
+
return import("./index-DC4nzG_w.js").then((n) => n.javascript({ typescript: !0 }));
|
|
14735
14735
|
}
|
|
14736
14736
|
}),
|
|
14737
14737
|
/* @__PURE__ */ z.of({
|
|
14738
14738
|
name: "WebAssembly",
|
|
14739
14739
|
extensions: ["wat", "wast"],
|
|
14740
14740
|
load() {
|
|
14741
|
-
return import("./index-
|
|
14741
|
+
return import("./index-DD-MOsCa.js").then((n) => n.wast());
|
|
14742
14742
|
}
|
|
14743
14743
|
}),
|
|
14744
14744
|
/* @__PURE__ */ z.of({
|
|
@@ -14746,7 +14746,7 @@ const d$ = [
|
|
|
14746
14746
|
alias: ["rss", "wsdl", "xsd"],
|
|
14747
14747
|
extensions: ["xml", "xsl", "xsd", "svg"],
|
|
14748
14748
|
load() {
|
|
14749
|
-
return import("./index-
|
|
14749
|
+
return import("./index-CUs1c8a9.js").then((n) => n.xml());
|
|
14750
14750
|
}
|
|
14751
14751
|
}),
|
|
14752
14752
|
/* @__PURE__ */ z.of({
|
|
@@ -14754,7 +14754,7 @@ const d$ = [
|
|
|
14754
14754
|
alias: ["yml"],
|
|
14755
14755
|
extensions: ["yaml", "yml"],
|
|
14756
14756
|
load() {
|
|
14757
|
-
return import("./index-
|
|
14757
|
+
return import("./index-CFo2nnaI.js").then((n) => n.yaml());
|
|
14758
14758
|
}
|
|
14759
14759
|
}),
|
|
14760
14760
|
// Legacy modes ported from CodeMirror 5
|
|
@@ -15550,13 +15550,13 @@ const d$ = [
|
|
|
15550
15550
|
name: "Vue",
|
|
15551
15551
|
extensions: ["vue"],
|
|
15552
15552
|
load() {
|
|
15553
|
-
return import("./index-
|
|
15553
|
+
return import("./index-_OaxQJX1.js").then((n) => n.vue());
|
|
15554
15554
|
}
|
|
15555
15555
|
}),
|
|
15556
15556
|
/* @__PURE__ */ z.of({
|
|
15557
15557
|
name: "Angular Template",
|
|
15558
15558
|
load() {
|
|
15559
|
-
return import("./index-
|
|
15559
|
+
return import("./index-ykojBEwT.js").then((n) => n.angular());
|
|
15560
15560
|
}
|
|
15561
15561
|
})
|
|
15562
15562
|
], p$ = "#e5c07b", mx = "#e06c75", m$ = "#56b6c2", g$ = "#ffffff", Im = "#abb2bf", Q5 = "#7d8799", y$ = "#61afef", v$ = "#98c379", gx = "#d19a66", b$ = "#c678dd", w$ = "#21252b", yx = "#2c313a", vx = "#282c34", D4 = "#353a42", x$ = "#3E4451", bx = "#528bff", k$ = /* @__PURE__ */ xe.theme({
|
|
@@ -3,7 +3,7 @@ var J = (o, n, t) => n in o ? G(o, n, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var k = (o, n, t) => J(o, typeof n != "symbol" ? n + "" : n, t);
|
|
4
4
|
import { WithElement as z, OnDispose as Q, prop as R, attr as p, computedOf as B, WithBrowserCtx as X, Value as U, render as Y, html as T, dataAttr as D, aria as M, on as Z, When as I, Use as H, Fragment as ee, coalesce as O } from "@tempots/dom";
|
|
5
5
|
import { w as $, T as j } from "./timer-CkgWORR9.js";
|
|
6
|
-
import { s as te, B as K, C as se, a as P } from "./translations-
|
|
6
|
+
import { s as te, B as K, C as se, a as P } from "./translations-DBtfTNnM.js";
|
|
7
7
|
const ne = [
|
|
8
8
|
"a[href]",
|
|
9
9
|
"button:not([disabled])",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var P=Object.defineProperty;var U=(i,n,t)=>n in i?P(i,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[n]=t;var V=(i,n,t)=>U(i,typeof n!="symbol"?n+"":n,t);const o=require("@tempots/dom"),C=require("./timer-CcMCjYrq.cjs"),k=require("./translations-CSUEQrNH.cjs"),z=["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(i){return Array.from(i.querySelectorAll(z)).filter(n=>{const t=n;return t.offsetWidth>0&&t.offsetHeight>0&&!t.hasAttribute("inert")&&window.getComputedStyle(t).visibility!=="hidden"})}function $(i={}){const{active:n=!0,escapeDeactivates:t=!0,onEscape:e,initialFocus:s,returnFocus:r,clickOutsideDeactivates:c=!1,onClickOutside:l}=i;return o.WithElement(h=>{let m=n,d=null,u=[];typeof document<"u"&&(d=document.activeElement);const y=()=>{u=R(h)},b=a=>{var L,A;if(m){if(t&&a.key==="Escape"){a.preventDefault(),e==null||e();return}if(a.key==="Tab"){if(y(),u.length===0){a.preventDefault();return}const v=u.indexOf(document.activeElement);a.shiftKey?v<=0&&(a.preventDefault(),(L=u[u.length-1])==null||L.focus()):v>=u.length-1&&(a.preventDefault(),(A=u[0])==null||A.focus())}}},p=a=>{if(!m||!c)return;const L=a.target;h.contains(L)||l==null||l()},E=()=>{if(!m)return;y();let a=null;typeof s=="function"?a=s():s?a=s:u.length>0&&(a=u[0]),a&&setTimeout(()=>{a==null||a.focus()},50),document.addEventListener("keydown",b,!0),c&&document.addEventListener("click",p,!0)},x=()=>{m=!1,document.removeEventListener("keydown",b,!0),document.removeEventListener("click",p,!0);let a=null;typeof r=="function"?a=r():r?a=r:d&&(a=d),a&&document.body.contains(a)&&setTimeout(()=>{a==null||a.focus()},0)};return setTimeout(()=>E(),0),o.OnDispose(()=>{x()})})}function H(i={}){return{activate:()=>$({...i,active:!0}),deactivate:()=>$({...i,active:!1})}}function O({initialStatus:i="closed",openedAfter:n,closedAfter:t}){const e=o.prop(i),s=()=>{e.set("start-opening")},r=()=>{e.set("start-closing")},c=e.map(a=>a!=="closed"&&a!=="start-closing"&&a!=="closing"),l=a=>{a?s():r()},h=()=>{l(!c.value)},m=a=>e.on(L=>{L==="closed"&&a()});let d=()=>{};e.on(a=>{switch(d(),a){case"start-opening":d=C.w(()=>e.set("opening"));break;case"opening":d=n(()=>e.set("opened"));break;case"start-closing":d=C.w(()=>e.set("closing"));break;case"closing":d=t(()=>e.set("closed"));break}}),e.onDispose(()=>d());const u=e.map(a=>a==="closed"),y=e.map(a=>a==="start-opening"),b=e.map(a=>a==="opening"),p=e.map(a=>a==="opened"),E=e.map(a=>a==="closing"),x=e.map(a=>a==="start-closing");return{status:e,open:s,close:r,toggle:h,setOpen:l,display:c,isClosed:u,isStartOpening:y,isOpening:b,isOpened:p,isClosing:E,isStartClosing:x,dispose:()=>e.dispose(),onClosed:m}}function K({initialStatus:i="closed",duration:n,openDuration:t=n??500,closeDuration:e=n??500}={}){return O({initialStatus:i,openedAfter:s=>C.T(s,t),closedAfter:s=>C.T(s,e)})}function q(i,n){let t=!1,e=null;function s(){t||(t=!0,e&&(clearTimeout(e),e=null),n())}function r(m){m.target===i&&s()}function c(m){m.target===i&&s()}const l=()=>{if(typeof i.getAnimations>"u"){e=setTimeout(s,16);return}i.getAnimations().length===0?(i.addEventListener("transitionend",r,{once:!0}),i.addEventListener("animationend",c,{once:!0}),e=setTimeout(s,1e3)):(i.addEventListener("transitionend",r,{once:!0}),i.addEventListener("animationend",c,{once:!0}))},h=C.w(l);return()=>{t=!0,h(),e&&(clearTimeout(e),e=null),i.removeEventListener("transitionend",r),i.removeEventListener("animationend",c)}}function F({initialStatus:i="closed",element:n}={}){let t=n;return{setElement:e=>{t=e},...O({initialStatus:i,openedAfter:e=>t==null?(e(),()=>{}):q(t,e),closedAfter:e=>t==null?(e(),()=>{}):q(t,e)})}}function N(i,n){return o.attr.class(o.computedOf(i,n)((t,e)=>`bu-toggle--animated bu-toggle--${t} bu-toggle--${e}`))}function D(i){return{"~standard":{version:1,vendor:"beatui-custom",validate:t=>{const e=i.validate(t);return e.success?{value:e.data}:{issues:e.errors.map(s=>({message:s.message,path:s.path}))}},types:void 0},safeParse:t=>{const e=i.validate(t);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(s=>{var r;return{message:s.message,path:((r=s.path)==null?void 0:r.map(c=>typeof c=="object"&&"key"in c?c.key.toString():c.toString()))||[]}})}}}}}class S{optional(){return new _(this)}default(n){return new G(this,n)}schema(){return D(this)}}class T extends S{constructor(){super(...arguments);V(this,"minLength");V(this,"maxLength");V(this,"pattern");V(this,"customValidations",[])}validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const e=[];this.minLength!==void 0&&t.length<this.minLength&&e.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&e.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&e.push({message:"Invalid format"});for(const s of this.customValidations){const r=s(t);r&&e.push({message:r})}return e.length>0?{success:!1,errors:e}:{success:!0,data:t}}min(t,e){const s=new T;return s.minLength=t,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations],e&&s.customValidations.push(r=>r.length<t?e:null),s}max(t,e){const s=new T;return s.minLength=this.minLength,s.maxLength=t,s.pattern=this.pattern,s.customValidations=[...this.customValidations],e&&s.customValidations.push(r=>r.length>t?e:null),s}regex(t,e){const s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=t,s.customValidations=[...this.customValidations],e&&s.customValidations.push(r=>t.test(r)?null:e),s}email(t="Please enter a valid email address"){const e=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,r=>e.test(r)?null:t],s}refine(t){const e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,t],e}}class B extends S{constructor(){super(...arguments);V(this,"mustBeTrue",!1);V(this,"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,e){const s=new B;s.mustBeTrue=this.mustBeTrue,s.trueMessage=this.trueMessage;const r=s.validate.bind(s);return s.validate=c=>{const l=r(c);return l.success?t(l.data)?l:{success:!1,errors:[{message:e}]}:l},s}literal(t,e){const s=new B;return s.mustBeTrue=!0,s.trueMessage=e,s}}class _ extends S{constructor(n){super(),this.inner=n}validate(n){if(n===void 0)return{success:!0,data:void 0};const t=this.inner.validate(n);return t.success?{success:!0,data:t.data}:{success:!1,errors:t.errors}}}class G extends S{constructor(n,t){super(),this.inner=n,this.defaultValue=t}validate(n){return n===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(n)}}class M extends S{constructor(n){super(),this.shape=n}validate(n){if(typeof n!="object"||n===null||Array.isArray(n))return{success:!1,errors:[{message:"Expected object"}]};const t=n,e={},s=[];for(const[r,c]of Object.entries(this.shape)){const l=c.validate(t[r]);if(l.success)e[r]=l.data;else for(const h of l.errors)s.push({message:h.message,path:[r,...h.path||[]]})}return s.length>0?{success:!1,errors:s}:{success:!0,data:e}}refine(n,t){const e=new M(this.shape),s=e.validate.bind(e);return e.validate=r=>{const c=s(r);if(!c.success)return c;const l=n(c.data);return l?{success:!1,errors:[{message:l,path:t==null?void 0:t.path}]}:{success:!0,data:c.data}},e}}const J=()=>new T,Q=()=>new B,X=i=>new M(i);function I(i){return o.WithBrowserCtx(n=>{const t=[],e=()=>t.forEach(r=>r());return i(({effect:r="opaque",mode:c="capturing",onClickOutside:l,onEscape:h,content:m,container:d="body"})=>{d==="body"&&(n=n.makePortal("body"));const u=F();u.onClosed(e);let y=()=>{},b=()=>{};const p=v=>{v.key==="Escape"&&(h==null||h(),u.close())},E=()=>{l==null||l(),u.close()},x=v=>{y(),b(),v==="capturing"?(document.addEventListener("keydown",p),y=()=>document.removeEventListener("keydown",p),n.element.addEventListener("mousedown",E),b=()=>n.element.removeEventListener("mousedown",E)):(y=()=>{},b=()=>{})},a=o.Value.on(c,x);t.push(a),t.push(()=>{y(),b()});const L=()=>{var f,w;const v=new Set;for(const g of n.element.querySelectorAll(":scope > :not([data-overlay])"))g.hasAttribute("inert")?v.add(g):g.setAttribute("inert","");return t.push(()=>{for(const g of n.element.querySelectorAll(":scope > :not([data-overlay])"))v.has(g)||g.removeAttribute("inert");v.clear()}),(w=(f=document.activeElement)==null?void 0:f.blur)==null||w.call(f),o.html.div(o.WithElement(g=>u.setElement(g)),o.dataAttr.status(u.status.map(String)),o.dataAttr.overlay("true"),o.attr.class(o.computedOf(r??"opaque",c)((g,W)=>`bc-overlay bc-overlay--effect-${g} bc-overlay--mode-${W}`)),m)},A=o.render(L(),n.element,{disposeWithParent:!0,clear:!1,providers:n.providers});t.push(A),C.w(()=>u.open())},e)})}function j(i,n){const{size:t="md",dismissable:e=!0,showCloseButton:s=!0,onClose:r,overlayEffect:c="opaque",container:l="body",position:h="center"}=i;return I((m,d)=>{let u=()=>{};return n(p=>{u=d;const E=o.prop("capturing");o.Value.on(e,f=>{E.set(f?"capturing":"non-capturing")});const x=o.computedOf(p.header!=null,s)((f,w)=>f||w),a=k.sessionId("modal"),L=`${a}-header`,A=`${a}-body`,v=o.html.div(o.attr.class(o.computedOf(t,h)((f,w)=>`bc-modal bc-modal--size-${f} bc-modal--container-${l} bc-modal--position-${w}`)),o.attr.role("dialog"),o.aria.modal(!0),...p.header?[o.aria.labelledby(L)]:[],o.aria.describedby(A),o.attr.tabindex(-1),o.attr.id(a),o.dataAttr.focusTrap("true"),o.on.mousedown(f=>f.stopPropagation()),$({escapeDeactivates:!1,initialFocus:()=>{const f=document.getElementById(a);if(!f)return null;const w=f.querySelector('[aria-label="Close modal"]');if(w)return w;const g=f.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return g||f}}),o.html.div(o.attr.class("bc-modal__content"),o.When(x,()=>o.html.div(o.attr.class("bc-modal__header"),o.html.div(o.attr.class("bu-font-semibold bu-text-gray"),...p.header?[o.attr.id(L)]:[],p.header),o.When(s,()=>o.Use(k.BeatUII18n,f=>k.CloseButton({size:"sm",label:f.$.closeModal,onClick:()=>{u(),d()}}))))),o.html.div(o.attr.class("bc-modal__body"),o.attr.id(A),p.body),p.footer&&o.html.div(o.attr.class("bc-modal__footer"),p.footer)));m({mode:E,effect:c??"opaque",container:l,content:v,onClickOutside:()=>{r==null||r(),d()},onEscape:()=>{r==null||r(),d()}})},()=>{u(),d()})})}function Y(i,n){const{confirmText:t,cancelText:e,onConfirm:s,onCancel:r,...c}=i;return o.Use(k.BeatUII18n,l=>j({showCloseButton:!1,...c},(h,m)=>{const d=()=>{s==null||s(),m()},u=()=>{r==null||r(),m()};return n(b=>{h({body:b,footer:o.Fragment(o.attr.class("bu-justify-end"),k.Button({variant:"outline",onClick:u},o.coalesce(e,l.$.cancel)),k.Button({color:"primary",variant:"filled",onClick:d},o.coalesce(t,l.$.confirm)))})},m)}))}exports.AnimatedToggleClass=N;exports.BooleanValidator=B;exports.ConfirmModal=Y;exports.FocusTrap=$;exports.Modal=j;exports.ObjectValidator=M;exports.Overlay=I;exports.StringValidator=T;exports.boolean=Q;exports.createStandardSchema=D;exports.object=X;exports.string=J;exports.useAnimatedElementToggle=F;exports.useAnimatedToggle=O;exports.useFocusTrap=H;exports.useTimedToggle=K;
|
|
1
|
+
"use strict";var P=Object.defineProperty;var U=(i,n,t)=>n in i?P(i,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[n]=t;var V=(i,n,t)=>U(i,typeof n!="symbol"?n+"":n,t);const o=require("@tempots/dom"),C=require("./timer-CcMCjYrq.cjs"),k=require("./translations-EQ1qPZ0_.cjs"),z=["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(i){return Array.from(i.querySelectorAll(z)).filter(n=>{const t=n;return t.offsetWidth>0&&t.offsetHeight>0&&!t.hasAttribute("inert")&&window.getComputedStyle(t).visibility!=="hidden"})}function $(i={}){const{active:n=!0,escapeDeactivates:t=!0,onEscape:e,initialFocus:s,returnFocus:r,clickOutsideDeactivates:c=!1,onClickOutside:l}=i;return o.WithElement(h=>{let m=n,d=null,u=[];typeof document<"u"&&(d=document.activeElement);const y=()=>{u=R(h)},b=a=>{var L,A;if(m){if(t&&a.key==="Escape"){a.preventDefault(),e==null||e();return}if(a.key==="Tab"){if(y(),u.length===0){a.preventDefault();return}const v=u.indexOf(document.activeElement);a.shiftKey?v<=0&&(a.preventDefault(),(L=u[u.length-1])==null||L.focus()):v>=u.length-1&&(a.preventDefault(),(A=u[0])==null||A.focus())}}},p=a=>{if(!m||!c)return;const L=a.target;h.contains(L)||l==null||l()},E=()=>{if(!m)return;y();let a=null;typeof s=="function"?a=s():s?a=s:u.length>0&&(a=u[0]),a&&setTimeout(()=>{a==null||a.focus()},50),document.addEventListener("keydown",b,!0),c&&document.addEventListener("click",p,!0)},x=()=>{m=!1,document.removeEventListener("keydown",b,!0),document.removeEventListener("click",p,!0);let a=null;typeof r=="function"?a=r():r?a=r:d&&(a=d),a&&document.body.contains(a)&&setTimeout(()=>{a==null||a.focus()},0)};return setTimeout(()=>E(),0),o.OnDispose(()=>{x()})})}function H(i={}){return{activate:()=>$({...i,active:!0}),deactivate:()=>$({...i,active:!1})}}function O({initialStatus:i="closed",openedAfter:n,closedAfter:t}){const e=o.prop(i),s=()=>{e.set("start-opening")},r=()=>{e.set("start-closing")},c=e.map(a=>a!=="closed"&&a!=="start-closing"&&a!=="closing"),l=a=>{a?s():r()},h=()=>{l(!c.value)},m=a=>e.on(L=>{L==="closed"&&a()});let d=()=>{};e.on(a=>{switch(d(),a){case"start-opening":d=C.w(()=>e.set("opening"));break;case"opening":d=n(()=>e.set("opened"));break;case"start-closing":d=C.w(()=>e.set("closing"));break;case"closing":d=t(()=>e.set("closed"));break}}),e.onDispose(()=>d());const u=e.map(a=>a==="closed"),y=e.map(a=>a==="start-opening"),b=e.map(a=>a==="opening"),p=e.map(a=>a==="opened"),E=e.map(a=>a==="closing"),x=e.map(a=>a==="start-closing");return{status:e,open:s,close:r,toggle:h,setOpen:l,display:c,isClosed:u,isStartOpening:y,isOpening:b,isOpened:p,isClosing:E,isStartClosing:x,dispose:()=>e.dispose(),onClosed:m}}function K({initialStatus:i="closed",duration:n,openDuration:t=n??500,closeDuration:e=n??500}={}){return O({initialStatus:i,openedAfter:s=>C.T(s,t),closedAfter:s=>C.T(s,e)})}function q(i,n){let t=!1,e=null;function s(){t||(t=!0,e&&(clearTimeout(e),e=null),n())}function r(m){m.target===i&&s()}function c(m){m.target===i&&s()}const l=()=>{if(typeof i.getAnimations>"u"){e=setTimeout(s,16);return}i.getAnimations().length===0?(i.addEventListener("transitionend",r,{once:!0}),i.addEventListener("animationend",c,{once:!0}),e=setTimeout(s,1e3)):(i.addEventListener("transitionend",r,{once:!0}),i.addEventListener("animationend",c,{once:!0}))},h=C.w(l);return()=>{t=!0,h(),e&&(clearTimeout(e),e=null),i.removeEventListener("transitionend",r),i.removeEventListener("animationend",c)}}function F({initialStatus:i="closed",element:n}={}){let t=n;return{setElement:e=>{t=e},...O({initialStatus:i,openedAfter:e=>t==null?(e(),()=>{}):q(t,e),closedAfter:e=>t==null?(e(),()=>{}):q(t,e)})}}function N(i,n){return o.attr.class(o.computedOf(i,n)((t,e)=>`bu-toggle--animated bu-toggle--${t} bu-toggle--${e}`))}function D(i){return{"~standard":{version:1,vendor:"beatui-custom",validate:t=>{const e=i.validate(t);return e.success?{value:e.data}:{issues:e.errors.map(s=>({message:s.message,path:s.path}))}},types:void 0},safeParse:t=>{const e=i.validate(t);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(s=>{var r;return{message:s.message,path:((r=s.path)==null?void 0:r.map(c=>typeof c=="object"&&"key"in c?c.key.toString():c.toString()))||[]}})}}}}}class S{optional(){return new _(this)}default(n){return new G(this,n)}schema(){return D(this)}}class T extends S{constructor(){super(...arguments);V(this,"minLength");V(this,"maxLength");V(this,"pattern");V(this,"customValidations",[])}validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const e=[];this.minLength!==void 0&&t.length<this.minLength&&e.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&e.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&e.push({message:"Invalid format"});for(const s of this.customValidations){const r=s(t);r&&e.push({message:r})}return e.length>0?{success:!1,errors:e}:{success:!0,data:t}}min(t,e){const s=new T;return s.minLength=t,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations],e&&s.customValidations.push(r=>r.length<t?e:null),s}max(t,e){const s=new T;return s.minLength=this.minLength,s.maxLength=t,s.pattern=this.pattern,s.customValidations=[...this.customValidations],e&&s.customValidations.push(r=>r.length>t?e:null),s}regex(t,e){const s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=t,s.customValidations=[...this.customValidations],e&&s.customValidations.push(r=>t.test(r)?null:e),s}email(t="Please enter a valid email address"){const e=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,r=>e.test(r)?null:t],s}refine(t){const e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,t],e}}class B extends S{constructor(){super(...arguments);V(this,"mustBeTrue",!1);V(this,"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,e){const s=new B;s.mustBeTrue=this.mustBeTrue,s.trueMessage=this.trueMessage;const r=s.validate.bind(s);return s.validate=c=>{const l=r(c);return l.success?t(l.data)?l:{success:!1,errors:[{message:e}]}:l},s}literal(t,e){const s=new B;return s.mustBeTrue=!0,s.trueMessage=e,s}}class _ extends S{constructor(n){super(),this.inner=n}validate(n){if(n===void 0)return{success:!0,data:void 0};const t=this.inner.validate(n);return t.success?{success:!0,data:t.data}:{success:!1,errors:t.errors}}}class G extends S{constructor(n,t){super(),this.inner=n,this.defaultValue=t}validate(n){return n===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(n)}}class M extends S{constructor(n){super(),this.shape=n}validate(n){if(typeof n!="object"||n===null||Array.isArray(n))return{success:!1,errors:[{message:"Expected object"}]};const t=n,e={},s=[];for(const[r,c]of Object.entries(this.shape)){const l=c.validate(t[r]);if(l.success)e[r]=l.data;else for(const h of l.errors)s.push({message:h.message,path:[r,...h.path||[]]})}return s.length>0?{success:!1,errors:s}:{success:!0,data:e}}refine(n,t){const e=new M(this.shape),s=e.validate.bind(e);return e.validate=r=>{const c=s(r);if(!c.success)return c;const l=n(c.data);return l?{success:!1,errors:[{message:l,path:t==null?void 0:t.path}]}:{success:!0,data:c.data}},e}}const J=()=>new T,Q=()=>new B,X=i=>new M(i);function I(i){return o.WithBrowserCtx(n=>{const t=[],e=()=>t.forEach(r=>r());return i(({effect:r="opaque",mode:c="capturing",onClickOutside:l,onEscape:h,content:m,container:d="body"})=>{d==="body"&&(n=n.makePortal("body"));const u=F();u.onClosed(e);let y=()=>{},b=()=>{};const p=v=>{v.key==="Escape"&&(h==null||h(),u.close())},E=()=>{l==null||l(),u.close()},x=v=>{y(),b(),v==="capturing"?(document.addEventListener("keydown",p),y=()=>document.removeEventListener("keydown",p),n.element.addEventListener("mousedown",E),b=()=>n.element.removeEventListener("mousedown",E)):(y=()=>{},b=()=>{})},a=o.Value.on(c,x);t.push(a),t.push(()=>{y(),b()});const L=()=>{var f,w;const v=new Set;for(const g of n.element.querySelectorAll(":scope > :not([data-overlay])"))g.hasAttribute("inert")?v.add(g):g.setAttribute("inert","");return t.push(()=>{for(const g of n.element.querySelectorAll(":scope > :not([data-overlay])"))v.has(g)||g.removeAttribute("inert");v.clear()}),(w=(f=document.activeElement)==null?void 0:f.blur)==null||w.call(f),o.html.div(o.WithElement(g=>u.setElement(g)),o.dataAttr.status(u.status.map(String)),o.dataAttr.overlay("true"),o.attr.class(o.computedOf(r??"opaque",c)((g,W)=>`bc-overlay bc-overlay--effect-${g} bc-overlay--mode-${W}`)),m)},A=o.render(L(),n.element,{disposeWithParent:!0,clear:!1,providers:n.providers});t.push(A),C.w(()=>u.open())},e)})}function j(i,n){const{size:t="md",dismissable:e=!0,showCloseButton:s=!0,onClose:r,overlayEffect:c="opaque",container:l="body",position:h="center"}=i;return I((m,d)=>{let u=()=>{};return n(p=>{u=d;const E=o.prop("capturing");o.Value.on(e,f=>{E.set(f?"capturing":"non-capturing")});const x=o.computedOf(p.header!=null,s)((f,w)=>f||w),a=k.sessionId("modal"),L=`${a}-header`,A=`${a}-body`,v=o.html.div(o.attr.class(o.computedOf(t,h)((f,w)=>`bc-modal bc-modal--size-${f} bc-modal--container-${l} bc-modal--position-${w}`)),o.attr.role("dialog"),o.aria.modal(!0),...p.header?[o.aria.labelledby(L)]:[],o.aria.describedby(A),o.attr.tabindex(-1),o.attr.id(a),o.dataAttr.focusTrap("true"),o.on.mousedown(f=>f.stopPropagation()),$({escapeDeactivates:!1,initialFocus:()=>{const f=document.getElementById(a);if(!f)return null;const w=f.querySelector('[aria-label="Close modal"]');if(w)return w;const g=f.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return g||f}}),o.html.div(o.attr.class("bc-modal__content"),o.When(x,()=>o.html.div(o.attr.class("bc-modal__header"),o.html.div(o.attr.class("bu-font-semibold bu-text-gray"),...p.header?[o.attr.id(L)]:[],p.header),o.When(s,()=>o.Use(k.BeatUII18n,f=>k.CloseButton({size:"sm",label:f.$.closeModal,onClick:()=>{u(),d()}}))))),o.html.div(o.attr.class("bc-modal__body"),o.attr.id(A),p.body),p.footer&&o.html.div(o.attr.class("bc-modal__footer"),p.footer)));m({mode:E,effect:c??"opaque",container:l,content:v,onClickOutside:()=>{r==null||r(),d()},onEscape:()=>{r==null||r(),d()}})},()=>{u(),d()})})}function Y(i,n){const{confirmText:t,cancelText:e,onConfirm:s,onCancel:r,...c}=i;return o.Use(k.BeatUII18n,l=>j({showCloseButton:!1,...c},(h,m)=>{const d=()=>{s==null||s(),m()},u=()=>{r==null||r(),m()};return n(b=>{h({body:b,footer:o.Fragment(o.attr.class("bu-justify-end"),k.Button({variant:"outline",onClick:u},o.coalesce(e,l.$.cancel)),k.Button({color:"primary",variant:"filled",onClick:d},o.coalesce(t,l.$.confirm)))})},m)}))}exports.AnimatedToggleClass=N;exports.BooleanValidator=B;exports.ConfirmModal=Y;exports.FocusTrap=$;exports.Modal=j;exports.ObjectValidator=M;exports.Overlay=I;exports.StringValidator=T;exports.boolean=Q;exports.createStandardSchema=D;exports.object=X;exports.string=J;exports.useAnimatedElementToggle=F;exports.useAnimatedToggle=O;exports.useFocusTrap=H;exports.useTimedToggle=K;
|
package/dist/monaco/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Value as c, Use as W, html as F, Task as I, attr as f, WithElement as R, OnDispose as $, effectOf as B } from "@tempots/dom";
|
|
2
2
|
import { g as _ } from "../timer-CkgWORR9.js";
|
|
3
|
-
import { L as z } from "../link-portal-
|
|
3
|
+
import { L as z } from "../link-portal-Cr2l9f3k.js";
|
|
4
4
|
import { T as N } from "../theme-CJVt8QIc.js";
|
|
5
5
|
const h = "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/", G = (e) => {
|
|
6
6
|
if (!e || typeof e != "object") return !1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./translations-EQ1qPZ0_.cjs"),s={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,a)=>{let r=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&&a){const i=o.formatFileSize(t,{units:a});n.push(`max ${i} elk`)}n.length>0&&(r+=` (${n.join(", ")})`)}else if(t&&a){const n=o.formatFileSize(t,{units:a});r+=` (max ${n})`}return r}};exports.default=s;exports.nl=s;
|
|
@@ -8,7 +8,7 @@ var Q = (t, e, s) => (Et(t, e, "read from private field"), s ? s.call(t) : e.get
|
|
|
8
8
|
import { Use as O, Value as u, prop as st, html as $, attr as o, on as M, WithElement as ct, OnDispose as W, aria as j, bind as Ct, computedOf as B, style as bt, When as U, NotEmpty as se, Fragment as V, ForEach as ht, svg as Nt, svgAttr as _t, Empty as T, emitValue as H, coalesce as re, Ensure as Zt, OneOfType as le, Repeat as Yt, signal as zt, input as it, emitValueAsNullableDate as ae, emitValueAsNullableDateTime as oe, emitValueAsNumber as nt, emit as ce, Task as ie, Unless as ue } from "@tempots/dom";
|
|
9
9
|
import { w as fe } from "./timer-CkgWORR9.js";
|
|
10
10
|
import { ElementRect as Xt, AutoSelect as de } from "@tempots/ui";
|
|
11
|
-
import { B as Y, e as Z, f as pe, C as gt, I as z, g as q, h as me, i as be, j as qt, k as St, T as he, E as ge, P as ve, S as at, s as xe, L as we, l as _e, G as mt, a as $t, n as yt, O as ft, o as Rt } from "./translations-
|
|
11
|
+
import { B as Y, e as Z, f as pe, C as gt, I as z, g as q, h as me, i as be, j as qt, k as St, T as he, E as ge, P as ve, S as at, s as xe, L as we, l as _e, G as mt, a as $t, n as yt, O as ft, o as Rt } from "./translations-DBtfTNnM.js";
|
|
12
12
|
const $e = (t) => Object.entries(t);
|
|
13
13
|
class ye extends Error {
|
|
14
14
|
constructor(e = "Missing implementation") {
|