efficient-shell 13.23.1 → 13.24.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/{Browser-I2UVUUVV.js → Browser-P6CXFZWM.js} +14 -14
- package/dist/Calculator-PKAM5ERT.js +29 -0
- package/dist/CurrencyConverter-VH4UVYLO.js +21 -0
- package/dist/{Files-KA5Y6G4P.js → Files-NTJ4WI6F.js} +87 -87
- package/dist/Notepad-GIRH6KIR.js +24 -0
- package/dist/PomodoroTimer-PBSAKRX5.js +91 -0
- package/dist/{Preview-EPATSSFI.js → Preview-A4NPS775.js} +20 -20
- package/dist/{Sidebar-MY66ILZY.js → Sidebar-HAIHWIJD.js} +22 -22
- package/dist/{Stock-SHKXRWJQ.js → Stock-YL732PKW.js} +5 -5
- package/dist/{Weather-WMKWOPBU.js → Weather-3CBRXNNM.js} +18 -18
- package/dist/{WorldClock-GZYOF4B2.js → WorldClock-LONNWCRG.js} +6 -6
- package/dist/ai/index.js +117 -117
- package/dist/apps/index.js +1 -1
- package/dist/bin/browser-check.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-GAEQYCLS.js → chunk-26KHYLJN.js} +1 -1
- package/dist/{chunk-T7A3Y64S.js → chunk-2Y4AH7NC.js} +1 -1
- package/dist/{chunk-L4W5X3Q4.js → chunk-3OPPTU4V.js} +2 -2
- package/dist/chunk-44ERJYNW.js +6 -0
- package/dist/{chunk-XYQFTFI7.js → chunk-4VFEPP2W.js} +9 -9
- package/dist/{chunk-ZMBGMEN5.js → chunk-527WMFTR.js} +1 -1
- package/dist/{chunk-P6H2B635.js → chunk-7N6CVTWO.js} +1 -1
- package/dist/{chunk-UR3J4WP6.js → chunk-AAFPAQXH.js} +13 -13
- package/dist/{chunk-TJBHFUWV.js → chunk-B5KX7PDG.js} +2 -2
- package/dist/{chunk-6AETKYCP.js → chunk-BQQEQCSK.js} +1 -1
- package/dist/{chunk-DAUE6ULT.js → chunk-DUEEAP4Y.js} +1 -1
- package/dist/{chunk-CZS5UHOU.js → chunk-EXDSYFHB.js} +1 -1
- package/dist/chunk-FLQXMCB3.js +8 -0
- package/dist/{chunk-2L4IOLOT.js → chunk-HPKQYUQT.js} +1 -1
- package/dist/chunk-I52YJ3QD.js +1 -0
- package/dist/{chunk-NF5HSFZ3.js → chunk-K4KUGKWP.js} +15 -15
- package/dist/chunk-LG6NDTHZ.js +2 -0
- package/dist/{chunk-JVENCUUG.js → chunk-LRMDLZMM.js} +4 -4
- package/dist/{chunk-TJG76Y7I.js → chunk-LUARJHUK.js} +8 -8
- package/dist/chunk-MCLVTQSF.js +16 -0
- package/dist/{chunk-LM6MSGDW.js → chunk-OE7BXD3M.js} +1 -1
- package/dist/{chunk-VT5HWPE2.js → chunk-SRI2D23Y.js} +7 -7
- package/dist/{chunk-TT7KXS2Q.js → chunk-UQV4TSWB.js} +1 -1
- package/dist/{chunk-H2Q7G5D6.js → chunk-VGUB7LPF.js} +28 -28
- package/dist/chunk-VY6OQRZA.js +1 -0
- package/dist/{chunk-7PYJEJDT.js → chunk-XC2GUCTG.js} +1 -1
- package/dist/chunk-ZVNU3WJ3.js +28 -0
- package/dist/data/EntityList.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/Input.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/RenameField.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +512 -512
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.d.ts +12 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-PHIOJNTS.js +0 -29
- package/dist/CurrencyConverter-WZXN6WTD.js +0 -21
- package/dist/Notepad-RSEI2F3I.js +0 -24
- package/dist/PomodoroTimer-WVIAWG5E.js +0 -91
- package/dist/chunk-CJQPC2P3.js +0 -2
- package/dist/chunk-KH4AMHSI.js +0 -1
- package/dist/chunk-M36B3M2H.js +0 -8
- package/dist/chunk-MRFFOJCS.js +0 -28
- package/dist/chunk-MRZLFZNJ.js +0 -6
- package/dist/chunk-W24THMLI.js +0 -15
- /package/dist/{chunk-UAXL44HH.js → chunk-4BYJABCX.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{SearchableSelect as e}from"./chunk-
|
|
1
|
+
import{SearchableSelect as e}from"./chunk-AAFPAQXH.js";import{labelClasses as a}from"./chunk-EQKUFYX6.js";import{Select_default as l}from"./chunk-D5PXRJHA.js";import{isSafeLinkHref as t}from"./chunk-Z5TE3MEG.js";import{Input_default as r}from"./chunk-B5KX7PDG.js";import{INPUT_SIZES as n}from"./chunk-AYZY3YNC.js";import{Button_default as i}from"./chunk-UTISUEO4.js";import{Icon as o}from"./chunk-ISVODSRP.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as u}from"./chunk-NRHG4R2Q.js";import{useId as d,useRef as c,useState as p,useEffect as m}from"react";import{jsx as f,jsxs as v,Fragment as g}from"react/jsx-runtime";function h(e){return"select"===e.type?e.options:"groups"===e.type?e.groups.flatMap(e=>e.options):[]}var b="address",x={kindOf:()=>b,targetOf:e=>e,readFilter:()=>null,withFilter:e=>e},k=e=>t(e.trim());function y(t){const{value:n,kinds:o,rules:y=x,filtersFor:w,label:N,readOnly:C,placeholder:F,className:O="",tidyAddress:j,addressAddon:A}=t,E=void 0!==t.onApply,$=u().link,D=y.isSafe??k,P=d(),T=c(null),z=c(null),[R,U]=p({url:n}),S=E?R.url:n,[H,K]=p(!1),[Q,X]=p(null),[Y,B]=p(null),[G,M]=p(!1),W=c(null),I=c(()=>{});I.current=E?t.onCancel:()=>{},m(()=>{if(E)return s(e=>{const a=T.current;return!!("Escape"===e.key&&a&&e.target instanceof Node&&a.contains(e.target))&&(I.current(),!0)},()=>T.current)},[E]),m(()=>{if(!E)return;const e=z.current;e?(e.focus(),e.select()):T.current?.querySelector("button, input")?.focus()},[]);const L=o??[{value:b,label:$.address,target:{type:"text"}}],V=Q&&Q.against===S?Q.kind:y.kindOf(S),Z=L.filter(e=>!e.hideWhenEmpty||h(e.target).length>0||e.value===V),q=Z.find(e=>"text"===e.target.type),J=Z.find(e=>e.value===V)??q??Z[0];if(!J)return null;const _="text"!==J.target.type,ee=_?y.targetOf(S):S,ae=h(J.target),le=ae.find(e=>e.value===ee),te=e=>({value:e,label:$.unavailable(e)}),re="select"===J.target.type&&ee&&w?w(ee):null,ne=re?y.readFilter(S):null,ie=ne?re?.find(e=>e.param===ne.param):void 0,oe=Y&&Y.against===S?Y.text:S,se=_?S:j?j(oe.trim()).trim():oe.trim(),ue=E&&j?se:oe,de=!_&&""!==ue.trim()&&!D(ue),ce=de&&(!E||H);_&&G&&M(!1);const pe=(e,a)=>{E?U({url:e,name:a}):void 0===a?t.onChange(e):t.onChange(e,a)},me=(e,a)=>{X(a=>a?{...a,against:e}:a),pe(e,a)},fe=e=>{if(!e)return me("");const a=ae.find(a=>a.value===e);me(e,a?.label)},ve=e=>{K(!1);const a=e.trim();a?D(e)?(B({text:e,against:a}),me(a)):B({text:e,against:S}):(B({text:e,against:""}),me(""))},ge=e=>{const a=e.relatedTarget;if(a&&(a===z.current||W.current?.contains(a)))return;if(M(!1),E||!j||C)return;const l=j(oe.trim());l.trim()!==oe.trim()&&ve(l)},he=()=>{if(!E||!se)return;if(!_&&de)return void K(!0);const e=_&&R.url===se?R.name:void 0,a=t.onApply;void 0===e?a(se):a(se,e)},be=(e,a)=>a&&!e.some(e=>e.value===a)?[te(a),...e]:[...e],xe=(a,t,r,n,i)=>{const o=[];for(const e of r){const a=o[o.length-1],l={value:e.value,label:e.label};e.group?a&&"options"in a&&a.label===e.group?a.options.push(l):o.push({label:e.group,options:[l]}):o.push(l)}if(i){const l=r.some(e=>""===e.value);/* @__PURE__ */
|
|
2
2
|
return f(e,{"aria-label":a,value:t,options:o,disabled:C,clearable:l,placeholder:r.find(e=>""===e.value)?.label,onChange:n})}/* @__PURE__ */
|
|
3
|
-
return f(l,{size:"sm","aria-label":a,value:t,options:o,readOnly:C,onChange:n})};let ke;if("text"===
|
|
4
|
-
return f("div",{ref:
|
|
5
|
-
return v("div",{ref:
|
|
6
|
-
/* @__PURE__ */v("div",{className:"flex items-center justify-between gap-2",children:[we?/* @__PURE__ */f(i,{variant:"ghost-danger",size:"sm","data-window-action":"remove",onClick:we,children
|
|
3
|
+
return f(l,{size:"sm","aria-label":a,value:t,options:o,readOnly:C,onChange:n})};let ke;if("text"===J.target.type)ke=/* @__PURE__ */f(r,{ref:z,id:`${P}-address`,size:"sm",type:"text",invalid:ce,"aria-label":$.address,"aria-describedby":ce?`${P}-why`:void 0,placeholder:F??$.addressPlaceholder,spellCheck:!1,autoComplete:"off",value:oe,readOnly:C,onChange:e=>ve(e.target.value),onFocus:()=>M(!0),onBlur:ge,onKeyDown:j&&!E?e=>{"Enter"===e.key&&e.currentTarget.blur()}:void 0});else{const e="groups"===J.target.type?J.target.groups.flatMap(e=>e.options.map(a=>({value:a.value,label:a.label,group:e.label}))):J.target.options.map(e=>({value:e.value,label:e.label})),a=[{value:"",label:J.target.placeholder},...be(e,ee)];ke=xe(J.label,ee,a,fe,e.length>10)}const ye=/* @__PURE__ */v(g,{children:[o&&xe($.linkType,J.value,Z.map(e=>({value:e.value,label:e.label})),e=>{B(null),K(!1);const a=Z.find(a=>a.value===e);if(!a||"text"===a.target.type)return void X({kind:e,against:S});const l=h(a.target)[0];X({kind:e,against:l?l.value:""}),l?pe(l.value,l.label):pe("")},!1),ke,A&&G&&!C&&"text"===J.target.type&&/* @__PURE__ */f("div",{ref:W,onBlur:ge,children:A({url:oe,onChange:ve})}),re&&xe($.filter,ne?.param??"",[{value:"",label:$.noFilter},...ne&&!ie?[te(ne.param)]:[],...re.map(e=>({value:e.param,label:e.label}))],e=>{if(!e)return me(ee,le?.label);const a=re?.find(a=>a.param===e),l=a?.values[0];l&&me(y.withFilter(ee,{param:e,value:l.value}),l.label)},!1),re&&ne&&xe($.value,ne.value,be((ie?.values??[]).map(e=>({value:e.value,label:e.label})),ne.value),e=>{if(!ne)return;const a=ie?.values.find(a=>a.value===e);me(y.withFilter(ee,{param:ne.param,value:e}),a?.label)},(ie?.values.length??0)>10),ce&&/* @__PURE__ */f("p",{id:`${P}-why`,role:"alert",className:"text-2xs leading-4 text-red-600",children:$.unsafe}),J.hint&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:J.hint}),re&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:$.filterHint})]});if(!E)/* @__PURE__ */
|
|
4
|
+
return f("div",{ref:T,className:`flex min-w-0 flex-auto flex-col gap-2 ${O}`.trim(),role:N?"group":void 0,"aria-label":N,children:ye});const we=t.onRemove;/* @__PURE__ */
|
|
5
|
+
return v("div",{ref:T,role:"dialog","aria-label":N??$.title,className:`flex min-w-0 flex-col gap-2 rounded-xl border border-line bg-surface p-3 shadow-lg ${O}`.trim(),onKeyDown:e=>{"Enter"!==e.key||e.defaultPrevented||e.target instanceof Element&&e.target.closest("button")||(e.preventDefault(),he())},children:[_?/* @__PURE__ */f("span",{className:a({inline:!0}),children:$.title}):/* @__PURE__ */f("label",{htmlFor:`${P}-address`,className:a({inline:!0}),children:$.title}),ye,
|
|
6
|
+
/* @__PURE__ */v("div",{className:"flex items-center justify-between gap-2",children:[we?/* @__PURE__ */f(i,{variant:"ghost-danger",size:"sm","data-window-action":"remove",onClick:we,children:$.remove}):null,
|
|
7
7
|
/* @__PURE__ */v("span",{className:"ml-auto flex gap-1",children:[
|
|
8
|
-
/* @__PURE__ */f(i,{variant:"secondary",size:"sm","data-window-action":"cancel",onClick:()=>
|
|
9
|
-
/* @__PURE__ */f(i,{variant:"primary",size:"sm","data-window-action":"apply",onClick:he,disabled:C||""===se,children
|
|
8
|
+
/* @__PURE__ */f(i,{variant:"secondary",size:"sm","data-window-action":"cancel",onClick:()=>I.current(),children:$.cancel}),
|
|
9
|
+
/* @__PURE__ */f(i,{variant:"primary",size:"sm","data-window-action":"apply",onClick:he,disabled:C||""===se,children:$.apply})]})]})]})}function w({label:e,text:a,onTextChange:l,link:t,onLinkChange:i,kinds:s,rules:m,filtersFor:g,textPlaceholder:h,readOnly:b,className:x=""}){const k=u().link,[w,N]=p(!1),C=c(null),F=d(),O=()=>{N(!1),C.current?.focus()};/* @__PURE__ */
|
|
10
10
|
return v("div",{className:`flex min-w-0 flex-auto flex-col ${x}`.trim(),children:[
|
|
11
11
|
/* @__PURE__ */f(r,{size:"md",type:"text",className:"rounded-b-none","aria-label":k.text(e),placeholder:h,value:a,readOnly:b,onChange:e=>l(e.target.value)}),
|
|
12
12
|
/* @__PURE__ */v("button",{ref:C,type:"button","aria-label":k.linkOf(e,t),"aria-expanded":w,"aria-controls":w?F:void 0,disabled:b,onClick:()=>N(e=>!e),className:`flex w-full min-w-0 items-center gap-2 rounded-b-(--radius-control) border border-t-0 border-line-strong bg-surface-sunken ${n.md} text-left hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60`,children:[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{client_default as a}from"./chunk-
|
|
1
|
+
import{client_default as a}from"./chunk-VGUB7LPF.js";var t=()=>a.get("/auth/numbering-configs/").then(a=>a.data?.results??a.data??[]),e="uploaded:wallpaper";function r(a,t){return"string"!=typeof a||!a||"none"===a||a.startsWith("#")?"":a===e?t||"":a}var l=()=>a.get("/auth/me/wallpaper/").then(a=>a.data),n=(t,e)=>{const r=new FormData;r.append("wallpaper",t);const l=e?{onUploadProgress:a=>e(a.total?Math.round(a.loaded/a.total*100):null)}:void 0;return a.post("/auth/me/wallpaper/",r,l).then(a=>a.data)},p=()=>a.delete("/auth/me/wallpaper/").then(a=>a.data);function o(a){const t=a?.response?.status,e=a?.response?.data,r=Array.isArray(e?.wallpaper)?e.wallpaper[0]:void 0;return r||(413===t?"That picture is too large to use as a wallpaper.":415===t?"That file is not a picture this can use as a wallpaper.":"The wallpaper could not be saved. Please try again.")}export{e as WALLPAPER_PREF_TOKEN,p as deleteWallpaper,t as getNumberingConfigs,l as getWallpaper,n as uploadWallpaper,r as wallpaperSrc,o as wallpaperUploadError};
|