@tempots/beatui 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ar-CFd5Xkva.cjs +1 -0
- package/dist/{ar-DaKbK_t8.js → ar-CZ07-PLK.js} +8 -7
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-3t_-R0sL.cjs → auth-divider-BHAbd_PS.cjs} +1 -1
- package/dist/{auth-divider-Cp3xGpHr.js → auth-divider-CvQ0TQwi.js} +7 -7
- package/dist/beatui.css +54 -0
- package/dist/beatui.tailwind.css +54 -0
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +5 -5
- package/dist/de-BJG9UqDS.cjs +1 -0
- package/dist/{de-3MTPDS1i.js → de-Dpx6i3Pv.js} +8 -7
- package/dist/{deep-merge-Da602mAN.js → deep-merge-D1cBNWZX.js} +4 -4
- package/dist/{deep-merge-Bz9HHpRt.cjs → deep-merge-DEEd-Tte.cjs} +1 -1
- package/dist/{duration-input-g-cQ3cs1.cjs → duration-input-CdgMuk2b.cjs} +1 -1
- package/dist/{duration-input-HM1i6RRY.js → duration-input-Dpqj2Am9.js} +4 -4
- package/dist/{editor-toolbar-group-Crlu1QJw.js → editor-toolbar-group-7eMZbEvH.js} +2 -2
- package/dist/{editor-toolbar-group-mkL4QozO.cjs → editor-toolbar-group-BJWRgYtv.cjs} +1 -1
- package/dist/es-BBqPUxJF.cjs +1 -0
- package/dist/{es-DwMUvBeU.js → es-apq3F_om.js} +8 -7
- package/dist/{fa-0rvQiKrJ.js → fa-BYpfIkLu.js} +8 -7
- package/dist/fa-d0o3KlIu.cjs +1 -0
- package/dist/{fr-B4i6NzLl.js → fr-Ba5_hcn7.js} +8 -7
- package/dist/fr-DzXA-sjH.cjs +1 -0
- package/dist/he-Cnx-qg1P.cjs +1 -0
- package/dist/{he-C71n-hsn.js → he-Dff_I80g.js} +8 -7
- package/dist/{hi-xmrXpeVU.js → hi-7G-frHVR.js} +8 -7
- package/dist/hi-BeJ8Q4O6.cjs +1 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +2736 -2755
- package/dist/{input-container-Di1YvVB_.cjs → input-container-BZwpJgx6.cjs} +1 -1
- package/dist/{input-container-BvEcp7FU.js → input-container-Q9wL2BUl.js} +1 -1
- package/dist/it-DE3pe-gS.cjs +1 -0
- package/dist/{it-CDZTtOBC.js → it-dSE5UgTZ.js} +8 -7
- package/dist/{ja-Zz1LzidW.js → ja-DRzjr2YR.js} +8 -7
- package/dist/ja-yzk8mwox.cjs +1 -0
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +10 -10
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +1 -1
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +5 -5
- package/dist/{ko-9laUsZDL.js → ko-7gpweMh7.js} +8 -7
- package/dist/ko-rKqndOMO.cjs +1 -0
- package/dist/lexical/index.cjs.js +2 -2
- package/dist/lexical/index.es.js +1412 -1414
- package/dist/menu-B60Q9j3-.cjs +1 -0
- package/dist/menu-BkqFGcXg.js +366 -0
- package/dist/{modal-BT0jjDqX.cjs → modal-ClnvWxzi.cjs} +1 -1
- package/dist/{modal-DBguyX-b.js → modal-DXWQ-HUs.js} +3 -3
- package/dist/{nl-Dcll9fVA.js → nl-DAe4B7fb.js} +9 -8
- package/dist/nl-DKHslb-6.cjs +1 -0
- package/dist/{notice-Dtz7ADVH.js → notice-Dx4D1UOf.js} +4 -4
- package/dist/{notice-BNghd0oS.cjs → notice-dOOD80F7.cjs} +1 -1
- package/dist/{oneof-branch-detection-J_DYEEcD.js → oneof-branch-detection-B57ZDbzM.js} +1 -1
- package/dist/{oneof-branch-detection-ZUBZ6hqy.cjs → oneof-branch-detection-bQKKfV32.cjs} +1 -1
- package/dist/{pl-Dm9N9Gbr.js → pl-4xrzOC4A.js} +8 -7
- package/dist/pl-9yeqi1Kn.cjs +1 -0
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +4 -4
- package/dist/pt-CCfVWHz4.cjs +1 -0
- package/dist/{pt-CFi5cn0k.js → pt-DYQOe1Td.js} +8 -7
- package/dist/ru-Cct0jttM.cjs +1 -0
- package/dist/{ru-CEhZUw8R.js → ru-FofxuqAJ.js} +10 -9
- package/dist/{text-input-DL9FvpTZ.cjs → text-input-CynkbBpH.cjs} +1 -1
- package/dist/{text-input-dDUEUmlC.js → text-input-DEAddaOi.js} +1 -1
- package/dist/{toolbar-DoKdYXIL.cjs → toolbar-Dz7R1kV3.cjs} +1 -1
- package/dist/{toolbar-DY0ax2Qd.js → toolbar-e9POle8o.js} +1 -1
- package/dist/{tr-ZmnVDhLP.js → tr-BfKjkfhE.js} +9 -8
- package/dist/tr-DhKxAXK0.cjs +1 -0
- package/dist/{translations-B1_yyDUK.js → translations-B96REXIk.js} +87 -86
- package/dist/translations-BDGa_4jx.cjs +1 -0
- package/dist/{translations-A4kR7CW8.js → translations-BplmL3nb.js} +1 -1
- package/dist/{translations-C81buKAw.cjs → translations-D8Jwi_d0.cjs} +1 -1
- package/dist/types/beatui-i18n/default.d.ts +1 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +1 -0
- package/dist/types/beatui-i18n/translations.d.ts +1 -0
- package/dist/types/components/data/data-table.d.ts +8 -1
- package/dist/types/components/navigation/flyout.d.ts +15 -5
- package/dist/{ur-yYgj3NmT.js → ur-COVuSAxC.js} +8 -7
- package/dist/ur-DmfFC6MV.cjs +1 -0
- package/dist/{use-form-Dn6v2tEh.js → use-form-CEY-gUUT.js} +2 -2
- package/dist/{use-form-CaW192gw.cjs → use-form-Ca0kF4af.cjs} +1 -1
- package/dist/{vi-D5u4CLQO.js → vi-DI3te8d5.js} +8 -7
- package/dist/vi-DvY-zvIr.cjs +1 -0
- package/dist/{widget-customization-YhVcA-KM.js → widget-customization-BZ8aKWRK.js} +5 -5
- package/dist/{widget-customization-DOWmUuPU.cjs → widget-customization-CHxaaaEV.cjs} +1 -1
- package/dist/zh-DJhzbpi2.cjs +1 -0
- package/dist/{zh-B0kwMMer.js → zh-DKIbNXv8.js} +9 -8
- package/package.json +1 -1
- package/dist/ar-CuI1Jgt6.cjs +0 -1
- package/dist/de-DthHehbh.cjs +0 -1
- package/dist/es-B6GJLk9h.cjs +0 -1
- package/dist/fa-BwgP93iV.cjs +0 -1
- package/dist/fr-CQzk5zqY.cjs +0 -1
- package/dist/he-DcxxvRfs.cjs +0 -1
- package/dist/hi-D-KHVWg4.cjs +0 -1
- package/dist/it-D344Dutu.cjs +0 -1
- package/dist/ja-BNgnDZ27.cjs +0 -1
- package/dist/ko-D-WJ9NK7.cjs +0 -1
- package/dist/menu-B8yoDMRS.js +0 -373
- package/dist/menu-B92oSDct.cjs +0 -1
- package/dist/nl-CrqUlFie.cjs +0 -1
- package/dist/pl-9UksIrvX.cjs +0 -1
- package/dist/pt-_kfdzwqi.cjs +0 -1
- package/dist/ru-CW1WNNlr.cjs +0 -1
- package/dist/tr-B6GIRegf.cjs +0 -1
- package/dist/translations-Dbx7L7Q1.cjs +0 -1
- package/dist/ur-CtFl_tz6.cjs +0 -1
- package/dist/vi-DyCZSpsk.cjs +0 -1
- package/dist/zh-C3ZxMQKb.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const S=require("@tempots/std"),a=require("@tempots/dom"),V=require("./utils-DmEuG3Np.cjs"),p=require("./stack-dwLevGa2.cjs"),g=require("./translations-Dbx7L7Q1.cjs"),F=require("ajv"),H=require("ajv/dist/2019"),J=require("ajv/dist/2020"),K=require("ajv-formats");function k(t){return t.split("/").slice(1).map(e=>e.replace(/~1/g,"/").replace(/~0/g,"~"))}function M(t){const e=k(t.instancePath||"");if(t.keyword==="required"){const n=t.params.missingProperty;if(n!=null)return[...e,n]}if(t.keyword==="additionalProperties"){const n=t.params.additionalProperty;if(n!=null)return[...e,n]}if(t.keyword==="unevaluatedProperties"){const n=t.params.unevaluatedProperty;if(n!=null)return[...e,n]}return e.length>0?e:void 0}function E(t){return t.message??`${t.keyword} validation failed`}function q(t){return t.reduce((e,n)=>{const r=M(n);if(r==null)return e;let i=e;for(const o of r){const s=o;i.dependencies==null&&(i.dependencies={}),i.dependencies[s]==null&&(i.dependencies[s]={}),i=i.dependencies[s]}return i.message=E(n),e},{})}function U(t){const e=q(t);return S.Validation.invalid(e)}function G(t){const e={keyword:"x:ui",schemaType:["string","object"],errors:!1,validate:()=>!0};t.addKeyword(e)}let v=new WeakMap;function X(){v=new WeakMap}function Q(t){v.delete(t)}function Y(){return{ajvInstances:0}}function x(t,e){let n=v.get(t);n==null&&(n=new WeakMap,v.set(t,n));const r=n.get(e);if(r)return r;const i=t.compile(e);return n.set(e,i),i}async function _(t,e,n){const i={"2020-12":J,"2019-09":H,"draft-07":F}[t],o=new i({meta:n,strictSchema:!1,allErrors:!0,removeAdditional:e});switch(t){case"2020-12":o.opts.defaultMeta="https://json-schema.org/draft/2020-12/schema";break;case"2019-09":o.opts.defaultMeta="https://json-schema.org/draft/2019-09/schema";break;case"draft-07":o.opts.defaultMeta="http://json-schema.org/draft-07/schema#";break}return K(o),G(o),o}function Z(t){return t==null||t.includes("draft/2020-12")?"2020-12":t.includes("draft/2019-09")?"2019-09":"draft-07"}function N(t){const e=t.indexOf("#");return e>=0?t.slice(0,e):t}function j(t,e=!0){if(Array.isArray(t))return t.map(n=>j(n,!1));if(t!=null&&typeof t=="object"){const n=t,r={};for(const[i,o]of Object.entries(n))!e&&(i==="$id"||i==="$schema"||i==="$dynamicAnchor")||(r[i]=j(o,!1));return r}return t}function C(t){const e=new Set,n=r=>{if(r!=null){if(Array.isArray(r)){for(const i of r)n(i);return}if(typeof r=="object"){const i=r,o=i.$ref;typeof o=="string"&&o.length>0&&o[0]!=="#"&&e.add(N(o));for(const s of Object.values(i))n(s)}}};return n(t),[...e]}function T(t,e){for(const n of e){const r=n.$id;if(typeof r=="string"&&r.length>0&&!t.getSchema(r))try{t.addSchema(n)}catch{}}}async function ee(t,e,n,r){if(n==null)return null;const i=new Set;if(r&&r.length>0)for(const l of r){const c=l.$id;typeof c=="string"&&c.length>0&&i.add(c)}const o=[],s=5;for(let l=0;l<s;l++){const c=C(e),u=o.flatMap(h=>C(h)),f=new Set([...c,...u]),d=[];for(const h of f)if(!i.has(h)){if(t.getSchema(h)){i.add(h);continue}d.push(h)}if(d.length===0)return null;try{const h=await n(d);if(!Array.isArray(h)||h.length===0)return null;T(t,h);for(const m of h){const y=m.$id;typeof y=="string"&&y.length>0&&(i.add(y),o.push(m))}}catch(h){return`refResolver failed: ${h instanceof Error?h.message:String(h)}`}}return"refResolver reached iteration limit while resolving external $refs"}async function te(t,e){try{const n=Z(t.$schema),r=e?.sanitizeAdditional===!1?!1:e?.sanitizeAdditional??!1,i=f=>typeof f=="string"&&f.endsWith("#")?f.slice(0,-1):f??"",o=t.$id,s=i(o);if(s!==""&&new Set(["https://json-schema.org/draft/2020-12/schema","https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft-07/schema"]).has(s)){const f=await _(n,r,!1),d=j(t);try{f.addMetaSchema(d)}catch{}const h=f.getSchema(o??s)??f.compile(d);return{ok:!0,value:{ajv:f,validate:h}}}const c=await _(n,r,!0);if(e?.externalSchemas&&e.externalSchemas.length>0&&T(c,e.externalSchemas),e?.refResolver){const f=await ee(c,t,e.refResolver,e.externalSchemas);if(f!=null)return{ok:!1,error:f}}const u=c.compile(t);return{ok:!0,value:{ajv:c,validate:u}}}catch(n){return{ok:!1,error:n instanceof Error?n.message:String(n)}}}function ne(t,e){if(typeof t=="boolean"||typeof e=="boolean")return e;const n={...t};for(const[r,i]of Object.entries(e))r==="required"&&Array.isArray(t.required)&&Array.isArray(i)?n.required=[...new Set([...t.required,...i])]:r==="properties"&&t.properties&&typeof i=="object"&&i!=null?n.properties={...t.properties,...i}:n[r]=i;return n}function re(t,e){if(typeof t=="boolean"||typeof e=="boolean")return t===e;const n=t.type,r=e.type;return!(n!=null&&r!=null&&n!==r||n==="string"&&r==="string"&&(t.minLength!=null&&e.maxLength!=null&&t.minLength>e.maxLength||t.maxLength!=null&&e.minLength!=null&&t.maxLength<e.minLength)||(n==="number"||n==="integer")&&(r==="number"||r==="integer")&&(t.minimum!=null&&e.maximum!=null&&t.minimum>e.maximum||t.maximum!=null&&e.minimum!=null&&t.maximum<e.minimum))}function ie(t,e,n,r){if(typeof e=="boolean"||typeof n=="boolean")return{path:r,message:`Property "${t}" has conflicting boolean schema definitions in allOf branches`,conflictingValues:[e,n]};const i=e.type,o=n.type;if(i!=null&&o!=null&&i!==o){const s=Array.isArray(i)?i:[i],l=Array.isArray(o)?o:[o];return{path:r,message:`Property "${t}" has conflicting types: ${s.join("|")} vs ${l.join("|")}`,conflictingValues:[e,n]}}if(i===o&&i==="string"){const s=[];if(e.minLength!=null&&n.maxLength!=null&&e.minLength>n.maxLength&&s.push(`minLength ${e.minLength} > maxLength ${n.maxLength}`),e.maxLength!=null&&n.minLength!=null&&e.maxLength<n.minLength&&s.push(`maxLength ${e.maxLength} < minLength ${n.minLength}`),s.length>0)return{path:r,message:`Property "${t}" has conflicting string constraints: ${s.join(", ")}`,conflictingValues:[e,n]}}if(i===o&&(i==="number"||i==="integer")){const s=[];if(e.minimum!=null&&n.maximum!=null&&e.minimum>n.maximum&&s.push(`minimum ${e.minimum} > maximum ${n.maximum}`),e.maximum!=null&&n.minimum!=null&&e.maximum<n.minimum&&s.push(`maximum ${e.maximum} < minimum ${n.minimum}`),s.length>0)return{path:r,message:`Property "${t}" has conflicting numeric constraints: ${s.join(", ")}`,conflictingValues:[e,n]}}return re(e,n)?null:{path:r,message:`Property "${t}" has conflicting definitions in allOf branches`,conflictingValues:[e,n]}}function se(t){const e=Array.isArray(t)?t:[t],n=new Set(e.map(r=>r));return n.has("number")&&n.add("integer"),n}function oe(t,e,n,r){for(const[i,o]of Object.entries(e)){if(t[i]!=null&&t[i]!==o){const s=t[i],l=ie(i,s,o,[...n,"properties",i]);l!=null&&r.push(l)}t[i]!=null?t[i]=ne(t[i],o):t[i]=o}}function ae(t,e,n,r){e!=null&&t.additionalProperties!=null&&t.additionalProperties!==e&&r.push({path:[...n,"additionalProperties"],message:`Conflicting additionalProperties values in allOf: ${t.additionalProperties} vs ${e}`,conflictingValues:[t.additionalProperties,e]})}function le(t,e,n,r,i){e!=null&&t.maxProperties!=null&&e>t.maxProperties&&i.push({path:[...r,"minProperties"],message:`minProperties ${e} conflicts with existing maxProperties ${t.maxProperties}`,conflictingValues:[e,t.maxProperties]}),n!=null&&t.minProperties!=null&&n<t.minProperties&&i.push({path:[...r,"maxProperties"],message:`maxProperties ${n} conflicts with existing minProperties ${t.minProperties}`,conflictingValues:[n,t.minProperties]})}function ce(t,e,n){if(t.length===0)return;let r=null;for(const o of t)if(r==null)r=new Set(o);else{const s=new Set;for(const l of r)o.has(l)&&s.add(l);r=s}const i=Array.from(r??[]);if(i.length===0){const o=t.map(s=>Array.from(s));n.push({path:[...e,"type"],message:"Incompatible types in allOf (no common types)",conflictingValues:o});return}else return i.length===1?i[0]:i}function fe(t,e=[]){const n=[],r={},i=[],o=[],s={};for(const c of t){c.type!=null&&i.push(se(c.type)),Array.isArray(c.required)&&o.push(...c.required),c.properties!=null&&oe(s,c.properties,e,n);const{type:u,required:f,properties:d,allOf:h,additionalProperties:m,patternProperties:y,minProperties:b,maxProperties:A,...W}=c;ae(r,m,e,n),le(r,b,A,e,n),Object.assign(r,W),m!=null&&(r.additionalProperties=m),y!=null&&(r.patternProperties=y),b!=null&&(r.minProperties=b),A!=null&&(r.maxProperties=A)}const l=ce(i,e,n);return l!=null&&(r.type=l),o.length>0&&(r.required=[...new Set(o)]),Object.keys(s).length>0&&(r.properties=s),{mergedSchema:r,conflicts:n}}class ${schema;definition;horizontal;path;ajv;isPropertyRequired;suppressLabel;schemaConflicts;notViolations;widgetRegistry;setStatus;formValue;validationMode;submitting;constructor(e){const{schema:n,definition:r,horizontal:i,path:o,ajv:s,isPropertyRequired:l,suppressLabel:c,schemaConflicts:u,notViolations:f,widgetRegistry:d,setStatus:h,formValue:m,validationMode:y,submitting:b}=e;this.schema=n,this.definition=r,this.horizontal=i,this.path=o,this.ajv=s,this.isPropertyRequired=l??!1,this.suppressLabel=c??!1,this.schemaConflicts=u??[],this.notViolations=f??[],this.widgetRegistry=d,this.setStatus=h,this.formValue=m,this.validationMode=y,this.submitting=b}with=e=>new $({schema:e.schema??this.schema,definition:e.definition??this.definition,horizontal:e.horizontal??this.horizontal,path:e.path??this.path,ajv:e.ajv??this.ajv,isPropertyRequired:e.isPropertyRequired??this.isPropertyRequired,suppressLabel:e.suppressLabel??this.suppressLabel,schemaConflicts:e.schemaConflicts??this.schemaConflicts,notViolations:e.notViolations??this.notViolations,widgetRegistry:e.widgetRegistry??this.widgetRegistry,setStatus:e.setStatus??this.setStatus,formValue:e.formValue??this.formValue,validationMode:e.validationMode??this.validationMode,submitting:e.submitting??this.submitting});append=e=>this.with({path:[...this.path,e]});get isRoot(){return this.path.length===0}get name(){const e=this.path[this.path.length-1];if(typeof e=="string")return e}get widgetName(){return this.path.map(String).join(".")}get widgetLabel(){const e=this.name;return(typeof this.definition=="object"&&this.definition!==null?this.definition.title:void 0)??(e!=null?S.upperCaseFirst(S.humanize(e)):void 0)}hasRequiredProperty=e=>typeof this.definition=="boolean"?!1:this.definition.required!=null&&this.definition.required.includes(e);get nullable(){return this.definition.nullable??!1}get isNullable(){return this.nullable||this.hasType("null")||this.hasEnumValue(null)||this.hasConstValue(null)||(this.anyOf?.some(e=>e.isNullable)??!1)||(this.oneOf?.some(e=>e.isNullable)??!1)}get isOptional(){return!this.isPropertyRequired}get shouldShowPresenceToggle(){return!(!this.isOptional||this.isRoot||(this.isNullable||this.isOptional)&&this.isPrimitive)}get isPrimitive(){if(typeof this.definition=="boolean")return!1;const e=this.definition;if(e.const!==void 0||e.enum!==void 0)return!0;if(e.type){const n=Array.isArray(e.type)?e.type:[e.type],r=["string","number","integer","boolean"];return n.every(i=>r.includes(i))}return!1}get isReadOnly(){return typeof this.definition=="boolean"?!1:!!this.definition.readOnly}get isWriteOnly(){return typeof this.definition=="boolean"?!1:!!this.definition.writeOnly}get isDeprecated(){return typeof this.definition=="boolean"?!1:!!this.definition.deprecated}get shouldIgnoreReadOnly(){if(typeof this.definition=="boolean")return!1;const e=this.definition["x:ui"];return e&&typeof e=="object"?!!e.ignoreReadOnly:!1}get shouldShowWriteOnly(){if(typeof this.definition=="boolean")return!1;const e=this.definition["x:ui"];return e&&typeof e=="object"?!!e.showWriteOnly:!1}get anyOf(){if(typeof this.definition!="boolean")return Array.isArray(this.definition.anyOf)?this.definition.anyOf.map(e=>this.with({definition:e})):void 0}get oneOf(){if(typeof this.definition!="boolean")return Array.isArray(this.definition.oneOf)?this.definition.oneOf.map(e=>this.with({definition:e})):void 0}get allOf(){if(typeof this.definition!="boolean")return Array.isArray(this.definition.allOf)?this.definition.allOf.map(e=>this.with({definition:e})):void 0}hasType=e=>this.definition===!0?!0:this.definition===!1?!1:Array.isArray(this.definition.type)?this.definition.type.includes(e):this.definition.type===e;hasEnumValue=e=>typeof this.definition=="boolean"?!1:Array.isArray(this.definition.enum)?this.definition.enum.includes(e):!1;hasConstValue=e=>typeof this.definition=="boolean"?!1:this.definition.const===e;get description(){if(typeof this.definition!="boolean")return this.definition.description}get examples(){if(typeof this.definition!="boolean")return this.definition.examples}get default(){if(typeof this.definition!="boolean")return this.definition.default}}let O=new WeakMap,R=new WeakMap;function I(t,e){const n=typeof e=="object"&&e!=null?e:null;if(n!=null){const s=O.get(n)?.get(t);if(s!=null)return s}let r=t;const i=new Set;for(;B(r);){const o=r.$ref;if(!o.startsWith("#")){console.warn(`resolveRef: external $ref not supported here: ${o}`);break}if(i.has(o)){console.warn(`resolveRef: cycle detected while resolving in-document $ref chain: ${[...i,o].join(" -> ")}`);break}i.add(o);const s=D(e,o);if(!w(s)){console.warn(`resolveRef: could not resolve JSON Pointer ${o}`);break}const{$ref:l,...c}=r;r={...s,...c}}if(n!=null){let o=O.get(n);o==null&&(o=new WeakMap,O.set(n,o)),o.set(t,r)}return r}function B(t){return w(t)&&typeof t.$ref=="string"}function w(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)}function D(t,e){if(!e.startsWith("#"))return;if(e==="#")return t;if(typeof t!="object"||t==null)return;const n=t;let r=R.get(n);r==null&&(r=new Map,R.set(n,r));const i=r.get(e);if(i!==void 0)return i;const o=k(e);let s=t;for(const l of o){if(!w(s)&&!Array.isArray(s)){r.set(e,void 0);return}s=s[l]}return r.set(e,s),s}function ue(t,e,n){let r=t;const i=new Set,o=(s,l)=>{const{$ref:c,...u}=l;return{...s,...u}};for(;B(r);){const s=r.$ref;if(i.has(s)){console.warn(`resolveAnyRef: cycle detected while resolving $ref chain: ${[...i,s].join(" -> ")}`);break}if(i.add(s),s.startsWith("#")){const d=D(e,s);if(!w(d)){console.warn(`resolveAnyRef: could not resolve JSON Pointer ${s}`);break}r=o(d,r);continue}if(!n){console.warn(`resolveAnyRef: external $ref without AJV not resolved: ${s}`);break}const l=s.indexOf("#"),c=l>=0?s.slice(0,l):s;let u=n.getSchema(s)||n.getSchema(c);if(!u)try{u=n.compile({$ref:s})}catch{}const f=u?.schema;if(!f||typeof f!="object"){console.warn(`resolveAnyRef: AJV could not provide schema for ${s}`);break}r=o(f,r)}return r}function de(t){if(typeof t.definition=="boolean")return;const e=V.getXUIConfig(t.definition);if(typeof e!="object")return;const n={};return typeof e.format=="string"&&["fieldset","tabs","accordion","group","grid"].includes(e.format)&&(n.format=e.format),Array.isArray(e.order)&&(n.order=e.order.filter(r=>typeof r=="string")),e.groups&&typeof e.groups=="object"&&(n.groups=e.groups),(typeof e.cols=="number"||e.cols&&typeof e.cols=="object")&&(n.cols=e.cols),Object.keys(n).length>0?n:void 0}function he({title:t,children:e}){return a.html.fieldset(a.attr.class("bc-fieldset"),t?a.html.legend(a.attr.class("bc-fieldset__legend"),t):null,a.html.div(a.attr.class("bc-fieldset__content"),p.Stack(a.attr.class("bc-stack--gap-1"),...e)))}function pe({title:t,children:e}){return V.Card({variant:"outlined",size:"md"},p.Stack(a.attr.class("bc-stack--gap-1"),t?p.Label(t):null,...e))}function me({cols:t=1,children:e}){const n=typeof t=="number"?`bc-schema-grid bc-schema-grid--cols-${t}`:a.computedOf(t)(r=>{if(typeof r=="number")return`bc-schema-grid bc-schema-grid--cols-${r}`;if(r&&typeof r=="object"){const i=["bc-schema-grid"];return r.sm&&i.push(`bc-schema-grid--cols-sm-${r.sm}`),r.md&&i.push(`bc-schema-grid--cols-md-${r.md}`),r.lg&&i.push(`bc-schema-grid--cols-lg-${r.lg}`),r.xl&&i.push(`bc-schema-grid--cols-xl-${r.xl}`),r["2xl"]&&i.push(`bc-schema-grid--cols-2xl-${r["2xl"]}`),i.join(" ")}return"bc-schema-grid bc-schema-grid--cols-1"});return a.html.div(a.attr.class(n),a.attr.class("bc-schema-grid--gap-4"),...e)}function ye({groups:t,children:e}){if(!t||Object.keys(t).length===0)return be({title:g.defaultMessages.properties,children:e});const n=a.prop(Object.keys(t)[0]),r=Object.entries(t);return a.html.div(a.attr.class("bc-tabs"),a.html.div(a.attr.class("bc-tabs__header"),a.attr.role("tablist"),...r.map(([i],o)=>a.html.button(a.attr.type("button"),a.attr.class("bc-tabs__tab"),a.attr.class(a.computedOf(n)(s=>s===i?"bc-tabs__tab--active":"")),a.attr.role("tab"),a.attr.tabindex(n.map(s=>s===i?0:-1)),a.on.click(()=>n.set(i)),a.on.keydown(s=>{switch(s.key){case"ArrowLeft":s.preventDefault();const l=o>0?o-1:r.length-1;n.set(r[l][0]);break;case"ArrowRight":s.preventDefault();const c=o<r.length-1?o+1:0;n.set(r[c][0]);break;case"Home":s.preventDefault(),n.set(r[0][0]);break;case"End":s.preventDefault(),n.set(r[r.length-1][0]);break}}),i))),a.html.div(a.attr.class("bc-tabs__content"),...r.map(([i,o])=>a.html.div(a.attr.class("bc-tabs__panel"),a.attr.class(a.computedOf(n)(s=>s===i?"bc-tabs__panel--active":"bc-tabs__panel--hidden")),a.attr.role("tabpanel"),p.Stack(a.attr.class("bc-stack--gap-1"),...e.filter((s,l)=>o.length===0||l<o.length))))))}function be({title:t,children:e}){return a.html.div(a.attr.class("bc-tabs"),a.html.div(a.attr.class("bc-tabs__header"),a.html.div(a.attr.class("bc-tabs__tab bc-tabs__tab--active"),t)),a.html.div(a.attr.class("bc-tabs__content"),a.html.div(a.attr.class("bc-tabs__panel bc-tabs__panel--active"),p.Stack(a.attr.class("bc-stack--gap-1"),...e))))}function ge({groups:t,children:e}){if(!t||Object.keys(t).length===0)return ve({title:g.defaultMessages.properties,children:e});const n=Object.entries(t),r=a.prop(new Set([n[0]?.[0]].filter(Boolean)));return a.html.div(a.attr.class("bc-accordion"),...n.map(([i,o])=>{const s=a.computedOf(r)(l=>l.has(i));return a.html.div(a.attr.class("bc-accordion__item"),a.html.button(a.attr.type("button"),a.attr.class("bc-accordion__header"),a.aria.expanded(s),a.on.click(()=>{const l=r.value,c=new Set(l);c.has(i)?c.delete(i):c.add(i),r.set(c)}),a.on.keydown(l=>{if(l.key==="Enter"||l.key===" "){l.preventDefault();const c=r.value,u=new Set(c);u.has(i)?u.delete(i):u.add(i),r.set(u)}}),a.html.span(i),g.Icon({icon:a.computedOf(s)(l=>l?"chevron-up":"chevron-down"),size:"sm"})),a.html.div(a.attr.class("bc-accordion__content"),a.attr.class(a.computedOf(s)(l=>l?"bc-accordion__content--open":"bc-accordion__content--closed")),p.Stack(a.attr.class("bc-stack--gap-1"),...e.filter((l,c)=>o.length===0||c<o.length))))}))}function ve({title:t,children:e}){const n=a.prop(!0);return a.html.div(a.attr.class("bc-accordion"),a.html.div(a.attr.class("bc-accordion__item"),a.html.button(a.attr.type("button"),a.attr.class("bc-accordion__header"),a.on.click(()=>n.set(!n.value)),a.html.span(t),g.Icon({icon:a.computedOf(n)(r=>r?"chevron-up":"chevron-down"),size:"sm"})),a.html.div(a.attr.class("bc-accordion__content"),a.attr.class(a.computedOf(n)(r=>r?"bc-accordion__content--open":"bc-accordion__content--closed")),p.Stack(a.attr.class("bc-stack--gap-1"),...e))))}function P(t,e,n){const r=new Map;n.forEach((s,l)=>{t[l]&&r.set(s,t[l])});let i=t;if(e.order&&e.order.length>0){const s=new Map,l=[];e.order.forEach(c=>{const u=r.get(c);u&&s.set(c,u)}),n.forEach((c,u)=>{!e.order.includes(c)&&t[u]&&l.push(t[u])}),i=[...Array.from(s.values()),...l]}let o;if(e.groups&&Object.keys(e.groups).length>0){o={};const s=new Set;Object.entries(e.groups).forEach(([c,u])=>{o[c]=[],u.forEach(f=>{const d=r.get(f);d&&(o[c].push(d),s.add(d))})});const l=i.filter(c=>!s.has(c));l.length>0&&(o.Other=l)}return{orderedChildren:i,groupedChildren:o}}function we(t,e,n,r=[]){if(!t||!t.format){if(t?.order){const{orderedChildren:l}=P(n,t,r);return p.Stack(a.attr.class("bc-stack--gap-1"),...l)}return p.Stack(a.attr.class("bc-stack--gap-1"),...n)}const i=e.widgetLabel||e.name,{orderedChildren:o,groupedChildren:s}=P(n,t,r);switch(t.format){case"fieldset":return he({title:i,children:o});case"group":return pe({title:i,children:o});case"grid":return me({cols:t.cols,children:o});case"tabs":return ye({groups:s||t.groups,children:s?Object.values(s).flat():o});case"accordion":return ge({groups:s||t.groups,children:s?Object.values(s).flat():o});default:return p.Stack(a.attr.class("bc-stack--gap-1"),...o)}}function z(t,e,n){const i=t.definition.oneOf;if(!Array.isArray(i)||i.length===0)return{matchingBranch:-1,validBranches:[],isAmbiguous:!1,hasNoMatch:!0};const o=i.map(f=>{if(typeof f=="object"&&f!=null&&"$ref"in f){const d=f.$ref;if(typeof d=="string"&&d.startsWith("#"))return I(f,t.schema)}return f}),s=[];for(let f=0;f<o.length;f++){const d=o[f];if(typeof d=="boolean"){d===!0&&s.push(f);continue}if(n)try{x(n,d)(e)&&s.push(f)}catch(h){console.warn(`Failed to compile oneOf branch ${f}:`,h),L(d,e)&&s.push(f)}else L(d,e)&&s.push(f)}const l=s.length>1,c=s.length===0;return{matchingBranch:s.length===1?s[0]:-1,validBranches:s,isAmbiguous:l,hasNoMatch:c}}function L(t,e){if("const"in t)return t.const===e;if(Array.isArray(t.enum))return t.enum.includes(e);if(t.type!=null){const n=Array.isArray(t.type)?t.type:[t.type],r=Ae(e);if(r==="unknown"||!n.includes(r))return!1}if(t.properties&&typeof e=="object"&&e!=null){const n=e;for(const[r,i]of Object.entries(t.properties))if(typeof i=="object"&&i!=null&&"const"in i&&n[r]!==i.const)return!1}return!0}function Ae(t){return t===null?"null":Array.isArray(t)?"array":typeof t=="object"?"object":typeof t=="string"?"string":typeof t=="number"?Number.isInteger(t)?"integer":"number":typeof t=="boolean"?"boolean":"unknown"}function Oe(t,e,n=`Option ${e+1}`){if(typeof t=="boolean")return t?"Any Value":"No Value";if(t.title)return t.title;if(t.properties){for(const[r,i]of Object.entries(t.properties))if(typeof i=="object"&&i!=null&&"const"in i){const o=i.const;if(typeof o=="string")return`${r}: ${o}`}}return"const"in t&&typeof t.const=="string"?t.const:t.type?(Array.isArray(t.type)?t.type:[t.type]).join(" | "):n}function Se(t,e,n){const r=z(t,e,n);return r.matchingBranch!==-1?r.matchingBranch:-1}exports.SchemaContext=$;exports.ajvErrorsToControllerValidation=U;exports.ajvErrorsToDependencies=q;exports.applyContainerLayout=we;exports.autoSelectOneOfBranch=Se;exports.buildMessage=E;exports.buildPath=M;exports.clearCaches=X;exports.clearCachesForAjv=Q;exports.compileWithCache=x;exports.detectOneOfBranch=z;exports.getAjvForSchema=te;exports.getCacheStats=Y;exports.getContainerLayout=de;exports.getOneOfBranchLabel=Oe;exports.jsonPointerToSegments=k;exports.mergeAllOf=fe;exports.resolveAnyRef=ue;exports.resolveRef=I;
|
|
1
|
+
"use strict";const S=require("@tempots/std"),a=require("@tempots/dom"),V=require("./utils-DmEuG3Np.cjs"),p=require("./stack-dwLevGa2.cjs"),g=require("./translations-BDGa_4jx.cjs"),F=require("ajv"),H=require("ajv/dist/2019"),J=require("ajv/dist/2020"),K=require("ajv-formats");function k(t){return t.split("/").slice(1).map(e=>e.replace(/~1/g,"/").replace(/~0/g,"~"))}function M(t){const e=k(t.instancePath||"");if(t.keyword==="required"){const n=t.params.missingProperty;if(n!=null)return[...e,n]}if(t.keyword==="additionalProperties"){const n=t.params.additionalProperty;if(n!=null)return[...e,n]}if(t.keyword==="unevaluatedProperties"){const n=t.params.unevaluatedProperty;if(n!=null)return[...e,n]}return e.length>0?e:void 0}function E(t){return t.message??`${t.keyword} validation failed`}function q(t){return t.reduce((e,n)=>{const r=M(n);if(r==null)return e;let i=e;for(const o of r){const s=o;i.dependencies==null&&(i.dependencies={}),i.dependencies[s]==null&&(i.dependencies[s]={}),i=i.dependencies[s]}return i.message=E(n),e},{})}function U(t){const e=q(t);return S.Validation.invalid(e)}function G(t){const e={keyword:"x:ui",schemaType:["string","object"],errors:!1,validate:()=>!0};t.addKeyword(e)}let v=new WeakMap;function X(){v=new WeakMap}function Q(t){v.delete(t)}function Y(){return{ajvInstances:0}}function x(t,e){let n=v.get(t);n==null&&(n=new WeakMap,v.set(t,n));const r=n.get(e);if(r)return r;const i=t.compile(e);return n.set(e,i),i}async function _(t,e,n){const i={"2020-12":J,"2019-09":H,"draft-07":F}[t],o=new i({meta:n,strictSchema:!1,allErrors:!0,removeAdditional:e});switch(t){case"2020-12":o.opts.defaultMeta="https://json-schema.org/draft/2020-12/schema";break;case"2019-09":o.opts.defaultMeta="https://json-schema.org/draft/2019-09/schema";break;case"draft-07":o.opts.defaultMeta="http://json-schema.org/draft-07/schema#";break}return K(o),G(o),o}function Z(t){return t==null||t.includes("draft/2020-12")?"2020-12":t.includes("draft/2019-09")?"2019-09":"draft-07"}function N(t){const e=t.indexOf("#");return e>=0?t.slice(0,e):t}function j(t,e=!0){if(Array.isArray(t))return t.map(n=>j(n,!1));if(t!=null&&typeof t=="object"){const n=t,r={};for(const[i,o]of Object.entries(n))!e&&(i==="$id"||i==="$schema"||i==="$dynamicAnchor")||(r[i]=j(o,!1));return r}return t}function C(t){const e=new Set,n=r=>{if(r!=null){if(Array.isArray(r)){for(const i of r)n(i);return}if(typeof r=="object"){const i=r,o=i.$ref;typeof o=="string"&&o.length>0&&o[0]!=="#"&&e.add(N(o));for(const s of Object.values(i))n(s)}}};return n(t),[...e]}function T(t,e){for(const n of e){const r=n.$id;if(typeof r=="string"&&r.length>0&&!t.getSchema(r))try{t.addSchema(n)}catch{}}}async function ee(t,e,n,r){if(n==null)return null;const i=new Set;if(r&&r.length>0)for(const l of r){const c=l.$id;typeof c=="string"&&c.length>0&&i.add(c)}const o=[],s=5;for(let l=0;l<s;l++){const c=C(e),u=o.flatMap(h=>C(h)),f=new Set([...c,...u]),d=[];for(const h of f)if(!i.has(h)){if(t.getSchema(h)){i.add(h);continue}d.push(h)}if(d.length===0)return null;try{const h=await n(d);if(!Array.isArray(h)||h.length===0)return null;T(t,h);for(const m of h){const y=m.$id;typeof y=="string"&&y.length>0&&(i.add(y),o.push(m))}}catch(h){return`refResolver failed: ${h instanceof Error?h.message:String(h)}`}}return"refResolver reached iteration limit while resolving external $refs"}async function te(t,e){try{const n=Z(t.$schema),r=e?.sanitizeAdditional===!1?!1:e?.sanitizeAdditional??!1,i=f=>typeof f=="string"&&f.endsWith("#")?f.slice(0,-1):f??"",o=t.$id,s=i(o);if(s!==""&&new Set(["https://json-schema.org/draft/2020-12/schema","https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft-07/schema"]).has(s)){const f=await _(n,r,!1),d=j(t);try{f.addMetaSchema(d)}catch{}const h=f.getSchema(o??s)??f.compile(d);return{ok:!0,value:{ajv:f,validate:h}}}const c=await _(n,r,!0);if(e?.externalSchemas&&e.externalSchemas.length>0&&T(c,e.externalSchemas),e?.refResolver){const f=await ee(c,t,e.refResolver,e.externalSchemas);if(f!=null)return{ok:!1,error:f}}const u=c.compile(t);return{ok:!0,value:{ajv:c,validate:u}}}catch(n){return{ok:!1,error:n instanceof Error?n.message:String(n)}}}function ne(t,e){if(typeof t=="boolean"||typeof e=="boolean")return e;const n={...t};for(const[r,i]of Object.entries(e))r==="required"&&Array.isArray(t.required)&&Array.isArray(i)?n.required=[...new Set([...t.required,...i])]:r==="properties"&&t.properties&&typeof i=="object"&&i!=null?n.properties={...t.properties,...i}:n[r]=i;return n}function re(t,e){if(typeof t=="boolean"||typeof e=="boolean")return t===e;const n=t.type,r=e.type;return!(n!=null&&r!=null&&n!==r||n==="string"&&r==="string"&&(t.minLength!=null&&e.maxLength!=null&&t.minLength>e.maxLength||t.maxLength!=null&&e.minLength!=null&&t.maxLength<e.minLength)||(n==="number"||n==="integer")&&(r==="number"||r==="integer")&&(t.minimum!=null&&e.maximum!=null&&t.minimum>e.maximum||t.maximum!=null&&e.minimum!=null&&t.maximum<e.minimum))}function ie(t,e,n,r){if(typeof e=="boolean"||typeof n=="boolean")return{path:r,message:`Property "${t}" has conflicting boolean schema definitions in allOf branches`,conflictingValues:[e,n]};const i=e.type,o=n.type;if(i!=null&&o!=null&&i!==o){const s=Array.isArray(i)?i:[i],l=Array.isArray(o)?o:[o];return{path:r,message:`Property "${t}" has conflicting types: ${s.join("|")} vs ${l.join("|")}`,conflictingValues:[e,n]}}if(i===o&&i==="string"){const s=[];if(e.minLength!=null&&n.maxLength!=null&&e.minLength>n.maxLength&&s.push(`minLength ${e.minLength} > maxLength ${n.maxLength}`),e.maxLength!=null&&n.minLength!=null&&e.maxLength<n.minLength&&s.push(`maxLength ${e.maxLength} < minLength ${n.minLength}`),s.length>0)return{path:r,message:`Property "${t}" has conflicting string constraints: ${s.join(", ")}`,conflictingValues:[e,n]}}if(i===o&&(i==="number"||i==="integer")){const s=[];if(e.minimum!=null&&n.maximum!=null&&e.minimum>n.maximum&&s.push(`minimum ${e.minimum} > maximum ${n.maximum}`),e.maximum!=null&&n.minimum!=null&&e.maximum<n.minimum&&s.push(`maximum ${e.maximum} < minimum ${n.minimum}`),s.length>0)return{path:r,message:`Property "${t}" has conflicting numeric constraints: ${s.join(", ")}`,conflictingValues:[e,n]}}return re(e,n)?null:{path:r,message:`Property "${t}" has conflicting definitions in allOf branches`,conflictingValues:[e,n]}}function se(t){const e=Array.isArray(t)?t:[t],n=new Set(e.map(r=>r));return n.has("number")&&n.add("integer"),n}function oe(t,e,n,r){for(const[i,o]of Object.entries(e)){if(t[i]!=null&&t[i]!==o){const s=t[i],l=ie(i,s,o,[...n,"properties",i]);l!=null&&r.push(l)}t[i]!=null?t[i]=ne(t[i],o):t[i]=o}}function ae(t,e,n,r){e!=null&&t.additionalProperties!=null&&t.additionalProperties!==e&&r.push({path:[...n,"additionalProperties"],message:`Conflicting additionalProperties values in allOf: ${t.additionalProperties} vs ${e}`,conflictingValues:[t.additionalProperties,e]})}function le(t,e,n,r,i){e!=null&&t.maxProperties!=null&&e>t.maxProperties&&i.push({path:[...r,"minProperties"],message:`minProperties ${e} conflicts with existing maxProperties ${t.maxProperties}`,conflictingValues:[e,t.maxProperties]}),n!=null&&t.minProperties!=null&&n<t.minProperties&&i.push({path:[...r,"maxProperties"],message:`maxProperties ${n} conflicts with existing minProperties ${t.minProperties}`,conflictingValues:[n,t.minProperties]})}function ce(t,e,n){if(t.length===0)return;let r=null;for(const o of t)if(r==null)r=new Set(o);else{const s=new Set;for(const l of r)o.has(l)&&s.add(l);r=s}const i=Array.from(r??[]);if(i.length===0){const o=t.map(s=>Array.from(s));n.push({path:[...e,"type"],message:"Incompatible types in allOf (no common types)",conflictingValues:o});return}else return i.length===1?i[0]:i}function fe(t,e=[]){const n=[],r={},i=[],o=[],s={};for(const c of t){c.type!=null&&i.push(se(c.type)),Array.isArray(c.required)&&o.push(...c.required),c.properties!=null&&oe(s,c.properties,e,n);const{type:u,required:f,properties:d,allOf:h,additionalProperties:m,patternProperties:y,minProperties:b,maxProperties:A,...W}=c;ae(r,m,e,n),le(r,b,A,e,n),Object.assign(r,W),m!=null&&(r.additionalProperties=m),y!=null&&(r.patternProperties=y),b!=null&&(r.minProperties=b),A!=null&&(r.maxProperties=A)}const l=ce(i,e,n);return l!=null&&(r.type=l),o.length>0&&(r.required=[...new Set(o)]),Object.keys(s).length>0&&(r.properties=s),{mergedSchema:r,conflicts:n}}class ${schema;definition;horizontal;path;ajv;isPropertyRequired;suppressLabel;schemaConflicts;notViolations;widgetRegistry;setStatus;formValue;validationMode;submitting;constructor(e){const{schema:n,definition:r,horizontal:i,path:o,ajv:s,isPropertyRequired:l,suppressLabel:c,schemaConflicts:u,notViolations:f,widgetRegistry:d,setStatus:h,formValue:m,validationMode:y,submitting:b}=e;this.schema=n,this.definition=r,this.horizontal=i,this.path=o,this.ajv=s,this.isPropertyRequired=l??!1,this.suppressLabel=c??!1,this.schemaConflicts=u??[],this.notViolations=f??[],this.widgetRegistry=d,this.setStatus=h,this.formValue=m,this.validationMode=y,this.submitting=b}with=e=>new $({schema:e.schema??this.schema,definition:e.definition??this.definition,horizontal:e.horizontal??this.horizontal,path:e.path??this.path,ajv:e.ajv??this.ajv,isPropertyRequired:e.isPropertyRequired??this.isPropertyRequired,suppressLabel:e.suppressLabel??this.suppressLabel,schemaConflicts:e.schemaConflicts??this.schemaConflicts,notViolations:e.notViolations??this.notViolations,widgetRegistry:e.widgetRegistry??this.widgetRegistry,setStatus:e.setStatus??this.setStatus,formValue:e.formValue??this.formValue,validationMode:e.validationMode??this.validationMode,submitting:e.submitting??this.submitting});append=e=>this.with({path:[...this.path,e]});get isRoot(){return this.path.length===0}get name(){const e=this.path[this.path.length-1];if(typeof e=="string")return e}get widgetName(){return this.path.map(String).join(".")}get widgetLabel(){const e=this.name;return(typeof this.definition=="object"&&this.definition!==null?this.definition.title:void 0)??(e!=null?S.upperCaseFirst(S.humanize(e)):void 0)}hasRequiredProperty=e=>typeof this.definition=="boolean"?!1:this.definition.required!=null&&this.definition.required.includes(e);get nullable(){return this.definition.nullable??!1}get isNullable(){return this.nullable||this.hasType("null")||this.hasEnumValue(null)||this.hasConstValue(null)||(this.anyOf?.some(e=>e.isNullable)??!1)||(this.oneOf?.some(e=>e.isNullable)??!1)}get isOptional(){return!this.isPropertyRequired}get shouldShowPresenceToggle(){return!(!this.isOptional||this.isRoot||(this.isNullable||this.isOptional)&&this.isPrimitive)}get isPrimitive(){if(typeof this.definition=="boolean")return!1;const e=this.definition;if(e.const!==void 0||e.enum!==void 0)return!0;if(e.type){const n=Array.isArray(e.type)?e.type:[e.type],r=["string","number","integer","boolean"];return n.every(i=>r.includes(i))}return!1}get isReadOnly(){return typeof this.definition=="boolean"?!1:!!this.definition.readOnly}get isWriteOnly(){return typeof this.definition=="boolean"?!1:!!this.definition.writeOnly}get isDeprecated(){return typeof this.definition=="boolean"?!1:!!this.definition.deprecated}get shouldIgnoreReadOnly(){if(typeof this.definition=="boolean")return!1;const e=this.definition["x:ui"];return e&&typeof e=="object"?!!e.ignoreReadOnly:!1}get shouldShowWriteOnly(){if(typeof this.definition=="boolean")return!1;const e=this.definition["x:ui"];return e&&typeof e=="object"?!!e.showWriteOnly:!1}get anyOf(){if(typeof this.definition!="boolean")return Array.isArray(this.definition.anyOf)?this.definition.anyOf.map(e=>this.with({definition:e})):void 0}get oneOf(){if(typeof this.definition!="boolean")return Array.isArray(this.definition.oneOf)?this.definition.oneOf.map(e=>this.with({definition:e})):void 0}get allOf(){if(typeof this.definition!="boolean")return Array.isArray(this.definition.allOf)?this.definition.allOf.map(e=>this.with({definition:e})):void 0}hasType=e=>this.definition===!0?!0:this.definition===!1?!1:Array.isArray(this.definition.type)?this.definition.type.includes(e):this.definition.type===e;hasEnumValue=e=>typeof this.definition=="boolean"?!1:Array.isArray(this.definition.enum)?this.definition.enum.includes(e):!1;hasConstValue=e=>typeof this.definition=="boolean"?!1:this.definition.const===e;get description(){if(typeof this.definition!="boolean")return this.definition.description}get examples(){if(typeof this.definition!="boolean")return this.definition.examples}get default(){if(typeof this.definition!="boolean")return this.definition.default}}let O=new WeakMap,R=new WeakMap;function I(t,e){const n=typeof e=="object"&&e!=null?e:null;if(n!=null){const s=O.get(n)?.get(t);if(s!=null)return s}let r=t;const i=new Set;for(;B(r);){const o=r.$ref;if(!o.startsWith("#")){console.warn(`resolveRef: external $ref not supported here: ${o}`);break}if(i.has(o)){console.warn(`resolveRef: cycle detected while resolving in-document $ref chain: ${[...i,o].join(" -> ")}`);break}i.add(o);const s=D(e,o);if(!w(s)){console.warn(`resolveRef: could not resolve JSON Pointer ${o}`);break}const{$ref:l,...c}=r;r={...s,...c}}if(n!=null){let o=O.get(n);o==null&&(o=new WeakMap,O.set(n,o)),o.set(t,r)}return r}function B(t){return w(t)&&typeof t.$ref=="string"}function w(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)}function D(t,e){if(!e.startsWith("#"))return;if(e==="#")return t;if(typeof t!="object"||t==null)return;const n=t;let r=R.get(n);r==null&&(r=new Map,R.set(n,r));const i=r.get(e);if(i!==void 0)return i;const o=k(e);let s=t;for(const l of o){if(!w(s)&&!Array.isArray(s)){r.set(e,void 0);return}s=s[l]}return r.set(e,s),s}function ue(t,e,n){let r=t;const i=new Set,o=(s,l)=>{const{$ref:c,...u}=l;return{...s,...u}};for(;B(r);){const s=r.$ref;if(i.has(s)){console.warn(`resolveAnyRef: cycle detected while resolving $ref chain: ${[...i,s].join(" -> ")}`);break}if(i.add(s),s.startsWith("#")){const d=D(e,s);if(!w(d)){console.warn(`resolveAnyRef: could not resolve JSON Pointer ${s}`);break}r=o(d,r);continue}if(!n){console.warn(`resolveAnyRef: external $ref without AJV not resolved: ${s}`);break}const l=s.indexOf("#"),c=l>=0?s.slice(0,l):s;let u=n.getSchema(s)||n.getSchema(c);if(!u)try{u=n.compile({$ref:s})}catch{}const f=u?.schema;if(!f||typeof f!="object"){console.warn(`resolveAnyRef: AJV could not provide schema for ${s}`);break}r=o(f,r)}return r}function de(t){if(typeof t.definition=="boolean")return;const e=V.getXUIConfig(t.definition);if(typeof e!="object")return;const n={};return typeof e.format=="string"&&["fieldset","tabs","accordion","group","grid"].includes(e.format)&&(n.format=e.format),Array.isArray(e.order)&&(n.order=e.order.filter(r=>typeof r=="string")),e.groups&&typeof e.groups=="object"&&(n.groups=e.groups),(typeof e.cols=="number"||e.cols&&typeof e.cols=="object")&&(n.cols=e.cols),Object.keys(n).length>0?n:void 0}function he({title:t,children:e}){return a.html.fieldset(a.attr.class("bc-fieldset"),t?a.html.legend(a.attr.class("bc-fieldset__legend"),t):null,a.html.div(a.attr.class("bc-fieldset__content"),p.Stack(a.attr.class("bc-stack--gap-1"),...e)))}function pe({title:t,children:e}){return V.Card({variant:"outlined",size:"md"},p.Stack(a.attr.class("bc-stack--gap-1"),t?p.Label(t):null,...e))}function me({cols:t=1,children:e}){const n=typeof t=="number"?`bc-schema-grid bc-schema-grid--cols-${t}`:a.computedOf(t)(r=>{if(typeof r=="number")return`bc-schema-grid bc-schema-grid--cols-${r}`;if(r&&typeof r=="object"){const i=["bc-schema-grid"];return r.sm&&i.push(`bc-schema-grid--cols-sm-${r.sm}`),r.md&&i.push(`bc-schema-grid--cols-md-${r.md}`),r.lg&&i.push(`bc-schema-grid--cols-lg-${r.lg}`),r.xl&&i.push(`bc-schema-grid--cols-xl-${r.xl}`),r["2xl"]&&i.push(`bc-schema-grid--cols-2xl-${r["2xl"]}`),i.join(" ")}return"bc-schema-grid bc-schema-grid--cols-1"});return a.html.div(a.attr.class(n),a.attr.class("bc-schema-grid--gap-4"),...e)}function ye({groups:t,children:e}){if(!t||Object.keys(t).length===0)return be({title:g.defaultMessages.properties,children:e});const n=a.prop(Object.keys(t)[0]),r=Object.entries(t);return a.html.div(a.attr.class("bc-tabs"),a.html.div(a.attr.class("bc-tabs__header"),a.attr.role("tablist"),...r.map(([i],o)=>a.html.button(a.attr.type("button"),a.attr.class("bc-tabs__tab"),a.attr.class(a.computedOf(n)(s=>s===i?"bc-tabs__tab--active":"")),a.attr.role("tab"),a.attr.tabindex(n.map(s=>s===i?0:-1)),a.on.click(()=>n.set(i)),a.on.keydown(s=>{switch(s.key){case"ArrowLeft":s.preventDefault();const l=o>0?o-1:r.length-1;n.set(r[l][0]);break;case"ArrowRight":s.preventDefault();const c=o<r.length-1?o+1:0;n.set(r[c][0]);break;case"Home":s.preventDefault(),n.set(r[0][0]);break;case"End":s.preventDefault(),n.set(r[r.length-1][0]);break}}),i))),a.html.div(a.attr.class("bc-tabs__content"),...r.map(([i,o])=>a.html.div(a.attr.class("bc-tabs__panel"),a.attr.class(a.computedOf(n)(s=>s===i?"bc-tabs__panel--active":"bc-tabs__panel--hidden")),a.attr.role("tabpanel"),p.Stack(a.attr.class("bc-stack--gap-1"),...e.filter((s,l)=>o.length===0||l<o.length))))))}function be({title:t,children:e}){return a.html.div(a.attr.class("bc-tabs"),a.html.div(a.attr.class("bc-tabs__header"),a.html.div(a.attr.class("bc-tabs__tab bc-tabs__tab--active"),t)),a.html.div(a.attr.class("bc-tabs__content"),a.html.div(a.attr.class("bc-tabs__panel bc-tabs__panel--active"),p.Stack(a.attr.class("bc-stack--gap-1"),...e))))}function ge({groups:t,children:e}){if(!t||Object.keys(t).length===0)return ve({title:g.defaultMessages.properties,children:e});const n=Object.entries(t),r=a.prop(new Set([n[0]?.[0]].filter(Boolean)));return a.html.div(a.attr.class("bc-accordion"),...n.map(([i,o])=>{const s=a.computedOf(r)(l=>l.has(i));return a.html.div(a.attr.class("bc-accordion__item"),a.html.button(a.attr.type("button"),a.attr.class("bc-accordion__header"),a.aria.expanded(s),a.on.click(()=>{const l=r.value,c=new Set(l);c.has(i)?c.delete(i):c.add(i),r.set(c)}),a.on.keydown(l=>{if(l.key==="Enter"||l.key===" "){l.preventDefault();const c=r.value,u=new Set(c);u.has(i)?u.delete(i):u.add(i),r.set(u)}}),a.html.span(i),g.Icon({icon:a.computedOf(s)(l=>l?"chevron-up":"chevron-down"),size:"sm"})),a.html.div(a.attr.class("bc-accordion__content"),a.attr.class(a.computedOf(s)(l=>l?"bc-accordion__content--open":"bc-accordion__content--closed")),p.Stack(a.attr.class("bc-stack--gap-1"),...e.filter((l,c)=>o.length===0||c<o.length))))}))}function ve({title:t,children:e}){const n=a.prop(!0);return a.html.div(a.attr.class("bc-accordion"),a.html.div(a.attr.class("bc-accordion__item"),a.html.button(a.attr.type("button"),a.attr.class("bc-accordion__header"),a.on.click(()=>n.set(!n.value)),a.html.span(t),g.Icon({icon:a.computedOf(n)(r=>r?"chevron-up":"chevron-down"),size:"sm"})),a.html.div(a.attr.class("bc-accordion__content"),a.attr.class(a.computedOf(n)(r=>r?"bc-accordion__content--open":"bc-accordion__content--closed")),p.Stack(a.attr.class("bc-stack--gap-1"),...e))))}function P(t,e,n){const r=new Map;n.forEach((s,l)=>{t[l]&&r.set(s,t[l])});let i=t;if(e.order&&e.order.length>0){const s=new Map,l=[];e.order.forEach(c=>{const u=r.get(c);u&&s.set(c,u)}),n.forEach((c,u)=>{!e.order.includes(c)&&t[u]&&l.push(t[u])}),i=[...Array.from(s.values()),...l]}let o;if(e.groups&&Object.keys(e.groups).length>0){o={};const s=new Set;Object.entries(e.groups).forEach(([c,u])=>{o[c]=[],u.forEach(f=>{const d=r.get(f);d&&(o[c].push(d),s.add(d))})});const l=i.filter(c=>!s.has(c));l.length>0&&(o.Other=l)}return{orderedChildren:i,groupedChildren:o}}function we(t,e,n,r=[]){if(!t||!t.format){if(t?.order){const{orderedChildren:l}=P(n,t,r);return p.Stack(a.attr.class("bc-stack--gap-1"),...l)}return p.Stack(a.attr.class("bc-stack--gap-1"),...n)}const i=e.widgetLabel||e.name,{orderedChildren:o,groupedChildren:s}=P(n,t,r);switch(t.format){case"fieldset":return he({title:i,children:o});case"group":return pe({title:i,children:o});case"grid":return me({cols:t.cols,children:o});case"tabs":return ye({groups:s||t.groups,children:s?Object.values(s).flat():o});case"accordion":return ge({groups:s||t.groups,children:s?Object.values(s).flat():o});default:return p.Stack(a.attr.class("bc-stack--gap-1"),...o)}}function z(t,e,n){const i=t.definition.oneOf;if(!Array.isArray(i)||i.length===0)return{matchingBranch:-1,validBranches:[],isAmbiguous:!1,hasNoMatch:!0};const o=i.map(f=>{if(typeof f=="object"&&f!=null&&"$ref"in f){const d=f.$ref;if(typeof d=="string"&&d.startsWith("#"))return I(f,t.schema)}return f}),s=[];for(let f=0;f<o.length;f++){const d=o[f];if(typeof d=="boolean"){d===!0&&s.push(f);continue}if(n)try{x(n,d)(e)&&s.push(f)}catch(h){console.warn(`Failed to compile oneOf branch ${f}:`,h),L(d,e)&&s.push(f)}else L(d,e)&&s.push(f)}const l=s.length>1,c=s.length===0;return{matchingBranch:s.length===1?s[0]:-1,validBranches:s,isAmbiguous:l,hasNoMatch:c}}function L(t,e){if("const"in t)return t.const===e;if(Array.isArray(t.enum))return t.enum.includes(e);if(t.type!=null){const n=Array.isArray(t.type)?t.type:[t.type],r=Ae(e);if(r==="unknown"||!n.includes(r))return!1}if(t.properties&&typeof e=="object"&&e!=null){const n=e;for(const[r,i]of Object.entries(t.properties))if(typeof i=="object"&&i!=null&&"const"in i&&n[r]!==i.const)return!1}return!0}function Ae(t){return t===null?"null":Array.isArray(t)?"array":typeof t=="object"?"object":typeof t=="string"?"string":typeof t=="number"?Number.isInteger(t)?"integer":"number":typeof t=="boolean"?"boolean":"unknown"}function Oe(t,e,n=`Option ${e+1}`){if(typeof t=="boolean")return t?"Any Value":"No Value";if(t.title)return t.title;if(t.properties){for(const[r,i]of Object.entries(t.properties))if(typeof i=="object"&&i!=null&&"const"in i){const o=i.const;if(typeof o=="string")return`${r}: ${o}`}}return"const"in t&&typeof t.const=="string"?t.const:t.type?(Array.isArray(t.type)?t.type:[t.type]).join(" | "):n}function Se(t,e,n){const r=z(t,e,n);return r.matchingBranch!==-1?r.matchingBranch:-1}exports.SchemaContext=$;exports.ajvErrorsToControllerValidation=U;exports.ajvErrorsToDependencies=q;exports.applyContainerLayout=we;exports.autoSelectOneOfBranch=Se;exports.buildMessage=E;exports.buildPath=M;exports.clearCaches=X;exports.clearCachesForAjv=Q;exports.compileWithCache=x;exports.detectOneOfBranch=z;exports.getAjvForSchema=te;exports.getCacheStats=Y;exports.getContainerLayout=de;exports.getOneOfBranchLabel=Oe;exports.jsonPointerToSegments=k;exports.mergeAllOf=fe;exports.resolveAnyRef=ue;exports.resolveRef=I;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as l } from "./translations-
|
|
1
|
+
import { f as l } from "./translations-B96REXIk.js";
|
|
2
2
|
const s = {
|
|
3
3
|
loadingExtended: "Ładowanie, proszę czekać",
|
|
4
4
|
loadingShort: "Ładowanie...",
|
|
@@ -59,21 +59,22 @@ const s = {
|
|
|
59
59
|
clearValue: "Wyczyść wartość",
|
|
60
60
|
unknownType: "Nieznany typ",
|
|
61
61
|
filesInputInstructions: (e, o, i) => {
|
|
62
|
-
let
|
|
62
|
+
let a = e == null || e > 1 ? "Kliknij aby wybrać lub przeciągnij pliki tutaj" : "Kliknij aby wybrać lub przeciągnij plik tutaj";
|
|
63
63
|
if (e || o) {
|
|
64
|
-
const
|
|
65
|
-
if (e != null && e > 1 &&
|
|
64
|
+
const n = [];
|
|
65
|
+
if (e != null && e > 1 && n.push(`do ${e} plików`), o && i) {
|
|
66
66
|
const t = l(o, {
|
|
67
67
|
units: i
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
n.push(`maks ${t} każdy`);
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
n.length > 0 && (a += ` (${n.join(", ")})`);
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return a;
|
|
74
74
|
},
|
|
75
75
|
// Pagination
|
|
76
76
|
paginationLabel: "Paginacja",
|
|
77
|
+
paginationRange: (e, o, i, a) => a > i ? `Wiersze ${e} do ${o} z ${i} z ${a}` : `Wiersze ${e} do ${o} z ${i}`,
|
|
77
78
|
firstPage: "Pierwsza strona",
|
|
78
79
|
previousPage: "Poprzednia strona",
|
|
79
80
|
nextPage: "Następna strona",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-BDGa_4jx.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",selectNone:"Brak",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,i,o)=>{let a=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||i){const n=[];if(e!=null&&e>1&&n.push(`do ${e} plików`),i&&o){const l=r.formatFileSize(i,{units:o});n.push(`maks ${l} każdy`)}n.length>0&&(a+=` (${n.join(", ")})`)}return a},paginationLabel:"Paginacja",paginationRange:(e,i,o,a)=>a>o?`Wiersze ${e} do ${i} z ${o} z ${a}`:`Wiersze ${e} do ${i} z ${o}`,firstPage:"Pierwsza strona",previousPage:"Poprzednia strona",nextPage:"Następna strona",lastPage:"Ostatnia strona",breadcrumbs:"Nawigacja okruszkowa",commandPalette:"Paleta poleceń",typeACommand:"Wpisz polecenie...",noResultsFound:"Nie znaleziono wyników",noMatchingCommands:"Brak pasujących poleceń",appearanceSystem:"Systemowy",appearanceLight:"Jasny",appearanceDark:"Ciemny",ok:"OK",changeTypeConfirmation:"Zmiana typu wyczyści bieżącą wartość. Kontynuować?",notifications:"Powiadomienia",markAllAsRead:"Oznacz wszystkie jako przeczytane",noNotifications:"Brak powiadomień",schemaConflictsDetected:"Wykryto konflikty schematu",schemaViolationsDetected:"Wykryto naruszenia schematu",properties:"Właściwości",uploading:"Przesyłanie...",dropFilesOrBrowse:"Upuść pliki tutaj lub kliknij, aby przeglądać",acceptedTypes:e=>`Akceptowane typy: ${e}`,enterUrlPrompt:"Wprowadź URL:",exceeded:"(przekroczono)",pdfPreview:"Podgląd PDF",lexical:{fontFamily:"Krój czcionki",fontSize:"Rozmiar czcionki",lineHeight:"Wysokość linii",fontColor:"Kolor czcionki",highlightColor:"Kolor wyróżnienia",backgroundColor:"Kolor tła",bold:"Pogrubienie",italic:"Kursywa",underline:"Podkreślenie",strikethrough:"Przekreślenie",code:"Kod",clearFormatting:"Wyczyść formatowanie",normal:"Normalny",heading:e=>`Nagłówek ${e}`,bulletList:"Lista punktowana",orderedList:"Lista numerowana",checkList:"Lista kontrolna",indent:"Zwiększ wcięcie",outdent:"Zmniejsz wcięcie",blockquote:"Cytat blokowy",codeBlock:"Blok kodu",horizontalRule:"Linia pozioma",insertTable:"Wstaw tabelę",link:"Link",undo:"Cofnij",redo:"Ponów",cut:"Wytnij",copy:"Kopiuj",paste:"Wklej",defaultOption:"Domyślny",slashCommands:"Polecenia ukośnikowe",noCommandsFound:"Nie znaleziono poleceń",changeBlockType:"Zmień typ bloku",blockTypes:"Typy bloków",enterUrl:"Wprowadź URL:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},dataTable:{sortAscending:"Sortuj rosnąco",sortDescending:"Sortuj malejąco",clearSort:"Wyczyść sortowanie",filterPlaceholder:"Filtruj...",clearFilter:"Wyczyść filtr",selectAll:"Zaznacz wszystko",deselectAll:"Odznacz wszystko",selectedCount:e=>`${e} zaznaczonych`,resetAll:"Resetuj wszystko",noResults:"Nie znaleziono wyników",loading:"Ładowanie...",filterPanelAddCondition:"Dodaj warunek",filterPanelApply:"Zastosuj",filterPanelClear:"Wyczyść filtry",filterPanelAnd:"I",filterPanelOr:"LUB",filterPanelContains:"Zawiera",filterPanelNotContains:"Nie zawiera",filterPanelEquals:"Równe",filterPanelNotEquals:"Nierówne",filterPanelStartsWith:"Zaczyna się od",filterPanelEndsWith:"Kończy się na",filterPanelIsNull:"Jest pusty",filterPanelIsNotNull:"Nie jest pusty",filterPanelGt:"Większy niż",filterPanelGte:"Większy lub równy",filterPanelLt:"Mniejszy niż",filterPanelLte:"Mniejszy lub równy",filterPanelBetween:"Między",filterPanelValuePlaceholder:"Wartość...",sortMultiHint:"Przytrzymaj Shift, aby sortować według wielu kolumn",columnVisibility:"Kolumny",showAllColumns:"Pokaż wszystkie",menuSortAsc:"Sortuj rosnąco",menuSortDesc:"Sortuj malejąco",menuClearSort:"Wyczyść sortowanie",menuHideColumn:"Ukryj kolumnę",menuChooseColumns:"Wybierz kolumny",menuResetColumns:"Resetuj kolumny",menuFilter:"Filtruj",rowCount:(e,i)=>`Wiersze: ${e} Łącznie wierszy: ${i}`,filterTagsPlaceholder:"Wybierz wartości...",groupCount:e=>`${e} elementów`,collapseGroup:"Zwiń grupę",expandGroup:"Rozwiń grupę",describeFilter:{textContains:(e,i)=>`${e} zawiera "${i}"`,textNotContains:(e,i)=>`${e} nie zawiera "${i}"`,textEquals:(e,i)=>`${e} równe "${i}"`,textNotEquals:(e,i)=>`${e} nierówne "${i}"`,textStartsWith:(e,i)=>`${e} zaczyna się od "${i}"`,textEndsWith:(e,i)=>`${e} kończy się na "${i}"`,compareEq:(e,i)=>`${e} = ${i}`,compareNeq:(e,i)=>`${e} ≠ ${i}`,compareGt:(e,i)=>`${e} > ${i}`,compareGte:(e,i)=>`${e} ≥ ${i}`,compareLt:(e,i)=>`${e} < ${i}`,compareLte:(e,i)=>`${e} ≤ ${i}`,rangeBetween:(e,i,o)=>`${e} między ${i} a ${o}`,rangeGte:(e,i)=>`${e} ≥ ${i}`,rangeLte:(e,i)=>`${e} ≤ ${i}`,setIn:(e,i)=>`${e} w [${i}]`,setNotIn:(e,i)=>`${e} nie w [${i}]`,booleanIs:(e,i)=>`${e} jest ${i}`,isNull:e=>`${e} jest puste`,isNotNull:e=>`${e} nie jest puste`,compositeAnd:e=>e.join(" I "),compositeOr:e=>e.join(" LUB ")}},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Ładowanie PDF...",loadFailed:"Nie udało się załadować PDF",invalidPdf:"Nieprawidłowy plik PDF",pageOutOfRange:(e,i)=>`Strona ${e} jest poza zakresem (1-${i})`,renderFailed:"Nie udało się wyrenderować strony PDF"}};exports.default=t;exports.pl=t;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var ne=Object.create;var H=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var ae=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var ce=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of se(t))!ie.call(e,l)&&l!==o&&H(e,l,{get:()=>t[l],enumerable:!(n=le(t,l))||n.enumerable});return e};var de=(e,t,o)=>(o=e!=null?ne(ae(e)):{},ce(t||!e||!e.__esModule?H(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@tempots/dom"),C=require("../toolbar-
|
|
1
|
+
"use strict";var ne=Object.create;var H=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var ae=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var ce=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of se(t))!ie.call(e,l)&&l!==o&&H(e,l,{get:()=>t[l],enumerable:!(n=le(t,l))||n.enumerable});return e};var de=(e,t,o)=>(o=e!=null?ne(ae(e)):{},ce(t||!e||!e.__esModule?H(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@tempots/dom"),C=require("../toolbar-Dz7R1kV3.cjs"),g=require("prosemirror-commands"),m=require("../editor-toolbar-group-BJWRgYtv.cjs"),ue=require("../text-input-CynkbBpH.cjs"),pe=require("../translations-BDGa_4jx.cjs"),ke=require("../link-portal-_tiDFZqh.cjs"),R=require("prosemirror-state"),me=require("prosemirror-view"),fe=require("prosemirror-model"),he=require("prosemirror-schema-basic"),y=require("prosemirror-markdown"),be=require("markdown-it"),q=require("prosemirror-history"),I=require("prosemirror-keymap"),ge=require("@tempots/ui"),ye=require("../theme-DogY9oT1.cjs");function W(e,t){return K(e,t)!=null}function K(e,t){const{from:o,$from:n,to:l,empty:s}=e.selection;if(!t)return null;if(s){if(e.storedMarks){const k=e.storedMarks.find(M=>M.type.name===t.name);if(k!=null)return k}const r=n.marks().find(k=>k.type.name===t.name);if(r!=null)return r;const c=n.nodeAfter;if(c&&c.marks){const k=c.marks.find(M=>M.type.name===t.name);if(k!=null)return k}return null}let i=null;return e.doc.nodesBetween(o,l,d=>{if(i!=null)return!1;if(d.marks){const r=d.marks.find(c=>c.type.name===t.name);if(r!=null)return i=r,!1}}),i}function _(e,t,o){return e.map(()=>{const n=t.value,l=n.state.schema.marks[o];return W(n.state,l)})}function Me(e,t,o){const{$from:n}=e.selection;for(let s=n.depth;s>0;s--){const i=n.node(s);if(i.type.name===t.name)return o!=null?Object.keys(o).every(d=>i.attrs[d]===o[d]):!0}const l=e.doc.nodeAt(n.pos);return l&&l.type.name===t.name?o!=null?Object.keys(o).every(s=>l.attrs[s]===o[s]):!0:!1}function B(e,t,o,n){return e.map(()=>{const l=t.value,s=l.state.schema.nodes[o];return s?Me(l.state,s,n):!1})}function $e(e,t){const o=e.state.schema.marks.link;if(o==null)return;const{from:n,to:l}=e.state.selection,s=e.state.tr.addMark(n,l,o.create({href:t,title:null}));e.dispatch(s),e.focus()}function O(e){const{state:t}=e,{$from:o,$to:n}=t.selection;if(!U(t))return null;let l=o.pos,s=n.pos;const i=t.doc;for(;l>0&&i.resolve(l-1).nodeAfter?.marks?.some(c=>c.type.name==="link");)l--;for(;s<i.content.size&&i.resolve(s).nodeAfter?.marks?.some(c=>c.type.name==="link");)s++;return{start:l,end:s}}function Be(e,t){const o=e.state.schema.marks.link;if(o==null)return;const n=O(e);if(n==null)return;const{start:l,end:s}=n,i=e.state.tr.removeMark(l,s,o).addMark(l,s,o.create({href:t,title:null}));e.dispatch(i)}function Le(e){const t=e.state.schema.marks.link;if(t==null)return;const o=O(e);if(o==null)return;const{start:n,end:l}=o,s=e.state.tr.removeMark(n,l,t);e.dispatch(s),e.focus()}function U(e){return W(e,e.schema.marks.link)}function Te({stateUpdate:e,view:t,isReadOnly:o,label:n,linkUrlPlaceholder:l,size:s}){const i=a.prop(null);i.on(r=>{r!=null&&Be(t.value,r)});const d=e.on(()=>{const r=K(t.value.state,t.value.state.schema.marks.link);r!=null?i.set(r.attrs.href??""):i.set(null)});return a.Fragment(a.OnDispose(d),C.ToolbarGroup({},m.EditorToolbarButton({display:a.signal(!0),active:_(e,t,"link"),disabled:o,label:n,icon:"mdi:link-variant",size:s,onClick:()=>{const r=t.value.state;U(r)?(Le(t.value),i.set(null)):($e(t.value,""),i.set(""))}}),a.Ensure(i,r=>ue.TextInput({value:r,autofocus:!0,onInput:c=>i.set(c),placeholder:l,size:s}))),a.Ensure(i,r=>C.ToolbarButton({disabled:r.map(c=>c.trim()===""),variant:"text",onClick:()=>{const c=i.value;c&&window.open(c,"_blank")},size:s},"go")))}function w({view:e,stateUpdate:t,features:o,readOnly:n=a.signal(!1),size:l="sm"}){return a.Ensure(e,s=>a.Use(pe.BeatUII18n,i=>{const d=i.$.prosemirror,r=s;return C.Toolbar({},m.EditorToolbarGroup({display:[o.$.bold,o.$.italic,o.$.code]},m.EditorToolbarButton({active:_(t,r,"strong"),display:o.$.bold,onClick:()=>A(r.value,"strong"),disabled:n,label:d.$.bold,icon:"mdi:format-bold",size:l}),m.EditorToolbarButton({active:_(t,r,"em"),display:o.$.italic,onClick:()=>A(r.value,"em"),disabled:n,label:d.$.italic,icon:"mdi:format-italic",size:l}),m.EditorToolbarButton({active:_(t,r,"code"),display:o.$.code,onClick:()=>A(r.value,"code"),disabled:n,label:d.$.code,icon:"mdi:code-tags",size:l})),m.EditorToolbarGroup({display:[o.$.headings]},a.Repeat(o.$.headerLevels.map(c=>Math.min(Math.max(c,1),6)),({counter:c})=>m.EditorToolbarButton({active:B(t,r,"heading",{level:c}),display:o.$.headings,onClick:()=>Ee(r.value,c),disabled:n,label:d.map(k=>k.heading(c)),icon:`mdi:format-header-${c}`,size:l}))),m.EditorToolbarGroup({display:[o.$.bulletList,o.$.orderedList]},m.EditorToolbarButton({active:B(t,r,"bullet_list"),display:o.$.bulletList,onClick:()=>j(r.value,"bullet_list"),disabled:n,label:d.$.bulletList,icon:"mdi:format-list-bulleted",size:l}),m.EditorToolbarButton({active:B(t,r,"ordered_list"),display:o.$.orderedList,onClick:()=>j(r.value,"ordered_list"),disabled:n,label:d.$.orderedList,icon:"mdi:format-list-numbered",size:l})),m.EditorToolbarGroup({display:[o.$.blockquote,o.$.codeBlock,o.$.horizontalRule]},m.EditorToolbarButton({active:B(t,r,"blockquote"),display:o.$.blockquote,onClick:()=>qe(r.value),disabled:n,label:d.$.blockquote,icon:"mdi:format-quote-close",size:l}),m.EditorToolbarButton({active:B(t,r,"code_block"),display:o.$.codeBlock,onClick:()=>_e(r.value),disabled:n,label:d.$.codeBlock,icon:"mdi:code-braces",size:l}),m.EditorToolbarButton({active:a.signal(!1),display:o.$.horizontalRule,onClick:()=>Se(r.value),disabled:n,label:d.$.horizontalRule,icon:"mdi:minus",size:l})),a.When(o.$.links,()=>Te({stateUpdate:t,view:r,isReadOnly:n,label:d.$.link,linkUrlPlaceholder:d.$.linkUrlPlaceholder,size:l})))}))}function A(e,t){const o=e.state.schema.marks[t];o!=null&&(g.toggleMark(o)(e.state,e.dispatch),e.focus())}function Ee(e,t){const o=e.state.schema.nodes.heading;o!=null&&(g.setBlockType(o,{level:t})(e.state,e.dispatch),e.focus())}async function j(e,t){const{wrapInList:o,liftListItem:n}=await import("prosemirror-schema-list"),l=e.state.schema.nodes[t],s=e.state.schema.nodes.list_item;if(l==null||s==null)return;const{state:i}=e,{$from:d}=i.selection;let r=null;for(let c=d.depth;c>0;c--){const k=d.node(c);if(k.type.name==="bullet_list"||k.type.name==="ordered_list"){r=k.type.name;break}}r===t?n(s)(i,e.dispatch):r!=null?n(s)(e.state,e.dispatch)&&o(l)(e.state,e.dispatch):o(l)(i,e.dispatch),e.focus()}function qe(e){const t=e.state.schema.nodes.blockquote;if(t==null)return;const{state:o}=e,{$from:n}=o.selection;let l=!1;for(let s=n.depth;s>0;s--)if(n.node(s).type.name==="blockquote"){l=!0;break}l?g.lift(o,e.dispatch):g.wrapIn(t)(o,e.dispatch),e.focus()}function _e(e){const t=e.state.schema.nodes.code_block,o=e.state.schema.nodes.paragraph;if(t==null||o==null)return;const{state:n}=e,{$from:l}=n.selection;let s=!1;for(let i=l.depth;i>0;i--)if(l.node(i).type.name==="code_block"){s=!0;break}s?g.setBlockType(o)(n,e.dispatch):g.setBlockType(t)(n,e.dispatch),e.focus()}function Se(e){const t=e.state.schema.nodes.horizontal_rule;if(t!=null){const o=e.state.tr.replaceSelectionWith(t.create());e.dispatch(o),e.focus()}}const Pe=new y.MarkdownParser(y.defaultMarkdownParser.schema,be("commonmark",{breaks:!0}),y.defaultMarkdownParser.tokens);function Ve(e){return e.split(`
|
|
2
2
|
`).map((o,n,l)=>o.trim()===""&&n<l.length-1?" ":o).join(`
|
|
3
3
|
`)}function N(e,t){const o=t?Pe:y.defaultMarkdownParser;let n=e??"";return t&&(n=Ve(n)),o.parse(n)}const F={headings:!0,bold:!0,italic:!0,code:!0,links:!0,bulletList:!0,orderedList:!0,blockquote:!0,codeBlock:!0,horizontalRule:!0,hardBreak:!0,headerLevels:3};function ve(e){return new R.Plugin({view:()=>({update:()=>{e()}}),filterTransaction:()=>(e(),!0)})}const Ie=e=>{const{value:t,onChange:o,onInput:n,onBlur:l,class:s,id:i,name:d,hasError:r,disabled:c,autofocus:k=!1,readOnly:M=!1,placeholder:x,showToolbar:J=!1,features:Q,preserveLineBreaks:z=!1}=e,L=a.Value.toSignal(M),S=a.Value.toSignal(c??!1),X=a.Value.toSignal(J),D=a.computedOf(Q??F)(P=>({...F,...P})),T=a.prop(null),G=ge.ticker();return a.Use(ye.Theme,({appearance:P})=>a.html.div(a.OnDispose(()=>T.value?.destroy()),(e.cssInjection??"none")==="none"?null:a.Task(()=>Promise.resolve().then(()=>require("../styles-url-evUdl8tK.cjs")),({default:p})=>ke.LinkPortal({id:"beatui-prosemirror-css",href:p})),a.attr.class("bc-prosemirror-editor-container"),a.attr.class(s),a.attr.class(a.Value.map(r??!1,p=>p?"bc-input-container--error":"")),a.attr.id(i),a.attr.name(d),a.When(a.computedOf(X,T)((p,f)=>p&&f!=null),()=>w({view:T,stateUpdate:G,features:D,readOnly:L})),a.html.div(a.attr.class("bc-prosemirror-editor"),a.WithElement(p=>{const f=[];return(()=>{try{const $=a.Value.get(t)??"",V=a.Value.get(L)??!1,Y=a.Value.get(S)??!1,Z=a.Value.get(D),v=Ce(fe.Schema,he.schema,Z),ee=N($,z),te=Ae(v),oe=R.EditorState.create({doc:ee,schema:v,plugins:[q.history(),I.keymap({"Mod-z":q.undo,"Mod-y":q.redo,"Mod-Shift-z":q.redo}),I.keymap(te),I.keymap(g.baseKeymap),ve(G.tick)]}),h=new me.EditorView(p,{state:oe,editable:()=>!V&&!Y,dispatchTransaction(u){const b=h.state.apply(u);if(h.updateState(b),u.docChanged&&n!=null){const E=y.defaultMarkdownSerializer.serialize(b.doc);n(E)}}});if(T.set(h),a.Value.get(k)&&h.focus(),x!=null&&f.push(a.Value.on(x,u=>{u!=null&&u!==""?p.setAttribute("data-placeholder",u):p.removeAttribute("data-placeholder")})),f.push(a.Value.on(L,u=>{const b=a.Value.get(S);h.setProps({editable:()=>!u&&!b})})),f.push(a.Value.on(S,u=>{const b=a.Value.get(L);h.setProps({editable:()=>!b&&!u})})),f.push(a.Value.on(t,u=>{const b=y.defaultMarkdownSerializer.serialize(h.state.doc);if(u!==b){const E=N(u,z);if(E!=null){const re=R.EditorState.create({doc:E,schema:v,plugins:h.state.plugins});h.updateState(re)}}})),o!=null){const u=()=>{const b=y.defaultMarkdownSerializer.serialize(h.state.doc);o(b)};p.addEventListener("blur",u,!0),f.push(()=>p.removeEventListener("blur",u,!0))}if(l!=null){const u=()=>{l()};p.addEventListener("blur",u,!0),f.push(()=>p.removeEventListener("blur",u,!0))}f.push(P.on(u=>{u==="dark"?p.classList.add("bc-prosemirror-editor--dark"):p.classList.remove("bc-prosemirror-editor--dark")})),f.push(()=>h.destroy())}catch($){console.error("[BeatUI] Failed to initialize ProseMirror editor:",$);const V=p;V.textContent="Failed to load ProseMirror Editor. Please ensure prosemirror packages are installed."}})(),a.OnDispose(()=>{f.forEach($=>$())})}))))};function Ae(e){const t={},o=e.marks.strong;o!=null&&(t["Mod-b"]=(s,i)=>g.toggleMark(o)(s,i));const n=e.marks.em;n!=null&&(t["Mod-i"]=(s,i)=>g.toggleMark(n)(s,i));const l=e.marks.code;return l!=null&&(t["Mod-`"]=(s,i)=>g.toggleMark(l)(s,i)),t}function Ce(e,t,o){const n={},l={},s=t.spec.nodes.get("doc"),i=t.spec.nodes.get("text");if(s==null||i==null)throw new Error("Basic schema missing required doc or text nodes");n.doc={...s,content:"block+"},n.text=i;const d=t.spec.nodes.get("paragraph");if(d!=null&&(n.paragraph={...d,content:"inline*"}),o.headings){const r=t.spec.nodes.get("heading");r!=null&&(n.heading={...r,content:"inline*"})}if(o.bulletList){const r=t.spec.nodes.get("bullet_list"),c=t.spec.nodes.get("list_item");r!=null&&(n.bullet_list={...r,content:"list_item+"}),c!=null&&(n.list_item={...c,content:"paragraph block*"})}if(o.orderedList){const r=t.spec.nodes.get("ordered_list"),c=t.spec.nodes.get("list_item");r!=null&&(n.ordered_list={...r,content:"list_item+"}),c!=null&&!n.list_item&&(n.list_item={...c,content:"paragraph block*"})}if(o.blockquote){const r=t.spec.nodes.get("blockquote");r!=null&&(n.blockquote={...r,content:"block+"})}if(o.codeBlock){const r=t.spec.nodes.get("code_block");r!=null&&(n.code_block=r)}if(o.horizontalRule){const r=t.spec.nodes.get("horizontal_rule");r!=null&&(n.horizontal_rule=r)}if(o.hardBreak){const r=t.spec.nodes.get("hard_break");r!=null&&(n.hard_break=r)}if(o.bold){const r=t.spec.marks.get("strong");r!=null&&(l.strong=r)}if(o.italic){const r=t.spec.marks.get("em");r!=null&&(l.em=r)}if(o.code){const r=t.spec.marks.get("code");r!=null&&(l.code=r)}if(o.links){const r=t.spec.marks.get("link");r!=null&&(l.link=r)}return new e({nodes:n,marks:l})}exports.DEFAULT_FEATURES=F;exports.ProseMirrorMarkdownInput=Ie;exports.ProseMirrorToolbar=w;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { prop as U, Fragment as pe, OnDispose as x, Ensure as F, signal as z, Use as O, When as w, Repeat as fe, Value as p, computedOf as K, html as G, Task as ke, attr as g, WithElement as he } from "@tempots/dom";
|
|
2
|
-
import { a as be, T as ge, b as ye } from "../toolbar-
|
|
2
|
+
import { a as be, T as ge, b as ye } from "../toolbar-e9POle8o.js";
|
|
3
3
|
import { toggleMark as T, setBlockType as V, lift as $e, wrapIn as Me, baseKeymap as Le } from "prosemirror-commands";
|
|
4
|
-
import { E as b, a as S } from "../editor-toolbar-group-
|
|
5
|
-
import { T as _e } from "../text-input-
|
|
6
|
-
import { B as Be } from "../translations-
|
|
4
|
+
import { E as b, a as S } from "../editor-toolbar-group-7eMZbEvH.js";
|
|
5
|
+
import { T as _e } from "../text-input-DEAddaOi.js";
|
|
6
|
+
import { B as Be } from "../translations-B96REXIk.js";
|
|
7
7
|
import { L as Se } from "../link-portal-Cr2l9f3k.js";
|
|
8
8
|
import { EditorState as J, Plugin as Te } from "prosemirror-state";
|
|
9
9
|
import { EditorView as Ee } from "prosemirror-view";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-BDGa_4jx.cjs"),l={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",selectNone:"Nenhum",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,a,o)=>{let r=e==null||e>1?"Clique para escolher ou arraste arquivos aqui":"Clique para escolher ou arraste um arquivo aqui";if(e||a){const t=[];if(e!=null&&e>1&&t.push(`até ${e} arquivos`),a&&o){const n=i.formatFileSize(a,{units:o});t.push(`máx ${n} cada`)}t.length>0&&(r+=` (${t.join(", ")})`)}return r},paginationLabel:"Paginacao",paginationRange:(e,a,o,r)=>r>o?`Linhas ${e} a ${a} de ${o} de ${r}`:`Linhas ${e} a ${a} de ${o}`,firstPage:"Primeira pagina",previousPage:"Pagina anterior",nextPage:"Proxima pagina",lastPage:"Ultima pagina",breadcrumbs:"Breadcrumbs",commandPalette:"Paleta de comandos",typeACommand:"Digite um comando...",noResultsFound:"Nenhum resultado encontrado",noMatchingCommands:"Nenhum comando correspondente",appearanceSystem:"Sistema",appearanceLight:"Claro",appearanceDark:"Escuro",ok:"OK",changeTypeConfirmation:"Alterar o tipo apagará o valor atual. Continuar?",notifications:"Notificações",markAllAsRead:"Marcar tudo como lido",noNotifications:"Nenhuma notificação",schemaConflictsDetected:"Conflitos de esquema detectados",schemaViolationsDetected:"Violações de esquema detectadas",properties:"Propriedades",uploading:"Enviando...",dropFilesOrBrowse:"Arraste arquivos aqui ou clique para navegar",acceptedTypes:e=>`Tipos aceitos: ${e}`,enterUrlPrompt:"Digite a URL:",exceeded:"(excedido)",pdfPreview:"Visualizacao do PDF",lexical:{fontFamily:"Familia da fonte",fontSize:"Tamanho da fonte",lineHeight:"Altura da linha",fontColor:"Cor da fonte",highlightColor:"Cor de destaque",backgroundColor:"Cor de fundo",bold:"Negrito",italic:"Italico",underline:"Sublinhado",strikethrough:"Tachado",code:"Codigo",clearFormatting:"Limpar formatacao",normal:"Normal",heading:e=>`Titulo ${e}`,bulletList:"Lista com marcadores",orderedList:"Lista numerada",checkList:"Lista de verificacao",indent:"Aumentar recuo",outdent:"Diminuir recuo",blockquote:"Citacao",codeBlock:"Bloco de codigo",horizontalRule:"Linha horizontal",insertTable:"Inserir tabela",link:"Link",undo:"Desfazer",redo:"Refazer",cut:"Recortar",copy:"Copiar",paste:"Colar",defaultOption:"Padrao",slashCommands:"Comandos de barra",noCommandsFound:"Nenhum comando encontrado",changeBlockType:"Alterar tipo de bloco",blockTypes:"Tipos de bloco",enterUrl:"Digite a URL:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},dataTable:{sortAscending:"Ordenar crescente",sortDescending:"Ordenar decrescente",clearSort:"Limpar ordenação",filterPlaceholder:"Filtrar...",clearFilter:"Limpar filtro",selectAll:"Selecionar tudo",deselectAll:"Desmarcar tudo",selectedCount:e=>`${e} selecionados`,resetAll:"Redefinir tudo",noResults:"Nenhum resultado encontrado",loading:"Carregando...",filterPanelAddCondition:"Adicionar condição",filterPanelApply:"Aplicar",filterPanelClear:"Limpar filtros",filterPanelAnd:"E",filterPanelOr:"OU",filterPanelContains:"Contém",filterPanelNotContains:"Não contém",filterPanelEquals:"Igual a",filterPanelNotEquals:"Diferente de",filterPanelStartsWith:"Começa com",filterPanelEndsWith:"Termina com",filterPanelIsNull:"Está vazio",filterPanelIsNotNull:"Não está vazio",filterPanelGt:"Maior que",filterPanelGte:"Maior ou igual",filterPanelLt:"Menor que",filterPanelLte:"Menor ou igual",filterPanelBetween:"Entre",filterPanelValuePlaceholder:"Valor...",sortMultiHint:"Segure Shift para ordenar várias colunas",columnVisibility:"Colunas",showAllColumns:"Mostrar tudo",menuSortAsc:"Ordenar crescente",menuSortDesc:"Ordenar decrescente",menuClearSort:"Remover ordenação",menuHideColumn:"Ocultar coluna",menuChooseColumns:"Escolher colunas",menuResetColumns:"Redefinir colunas",menuFilter:"Filtrar",rowCount:(e,a)=>`Linhas: ${e} Total de linhas: ${a}`,filterTagsPlaceholder:"Selecionar valores...",groupCount:e=>`${e} itens`,collapseGroup:"Recolher grupo",expandGroup:"Expandir grupo",describeFilter:{textContains:(e,a)=>`${e} contém "${a}"`,textNotContains:(e,a)=>`${e} não contém "${a}"`,textEquals:(e,a)=>`${e} é igual a "${a}"`,textNotEquals:(e,a)=>`${e} não é igual a "${a}"`,textStartsWith:(e,a)=>`${e} começa com "${a}"`,textEndsWith:(e,a)=>`${e} termina com "${a}"`,compareEq:(e,a)=>`${e} = ${a}`,compareNeq:(e,a)=>`${e} ≠ ${a}`,compareGt:(e,a)=>`${e} > ${a}`,compareGte:(e,a)=>`${e} ≥ ${a}`,compareLt:(e,a)=>`${e} < ${a}`,compareLte:(e,a)=>`${e} ≤ ${a}`,rangeBetween:(e,a,o)=>`${e} entre ${a} e ${o}`,rangeGte:(e,a)=>`${e} ≥ ${a}`,rangeLte:(e,a)=>`${e} ≤ ${a}`,setIn:(e,a)=>`${e} em [${a}]`,setNotIn:(e,a)=>`${e} não em [${a}]`,booleanIs:(e,a)=>`${e} é ${a}`,isNull:e=>`${e} está vazio`,isNotNull:e=>`${e} não está vazio`,compositeAnd:e=>e.join(" E "),compositeOr:e=>e.join(" OU ")}},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Carregando PDF...",loadFailed:"Falha ao carregar PDF",invalidPdf:"Arquivo PDF inválido",pageOutOfRange:(e,a)=>`A página ${e} está fora do intervalo (1-${a})`,renderFailed:"Falha ao renderizar página do PDF"}};exports.default=l;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as i } from "./translations-
|
|
1
|
+
import { f as i } from "./translations-B96REXIk.js";
|
|
2
2
|
const s = {
|
|
3
3
|
loadingExtended: "Carregando, por favor aguarde",
|
|
4
4
|
loadingShort: "Carregando...",
|
|
@@ -59,21 +59,22 @@ const s = {
|
|
|
59
59
|
clearValue: "Limpar valor",
|
|
60
60
|
unknownType: "Tipo desconhecido",
|
|
61
61
|
filesInputInstructions: (e, a, o) => {
|
|
62
|
-
let
|
|
62
|
+
let r = e == null || e > 1 ? "Clique para escolher ou arraste arquivos aqui" : "Clique para escolher ou arraste um arquivo aqui";
|
|
63
63
|
if (e || a) {
|
|
64
|
-
const
|
|
65
|
-
if (e != null && e > 1 &&
|
|
64
|
+
const t = [];
|
|
65
|
+
if (e != null && e > 1 && t.push(`até ${e} arquivos`), a && o) {
|
|
66
66
|
const n = i(a, {
|
|
67
67
|
units: o
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
t.push(`máx ${n} cada`);
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
t.length > 0 && (r += ` (${t.join(", ")})`);
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return r;
|
|
74
74
|
},
|
|
75
75
|
// Pagination
|
|
76
76
|
paginationLabel: "Paginacao",
|
|
77
|
+
paginationRange: (e, a, o, r) => r > o ? `Linhas ${e} a ${a} de ${o} de ${r}` : `Linhas ${e} a ${a} de ${o}`,
|
|
77
78
|
firstPage: "Primeira pagina",
|
|
78
79
|
previousPage: "Pagina anterior",
|
|
79
80
|
nextPage: "Proxima pagina",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-BDGa_4jx.cjs"),a={loadingExtended:"Загрузка, пожалуйста подождите",loadingShort:"Загрузка...",locale:"Локаль",iconDescription:"Иконка",loadingIcon:"Иконка загрузки",failedToLoadIcon:"Не удалось загрузить иконку",editLabel:"Редактировать",selectOne:"Выберите один",selectNone:"Ничего",selectMany:"Выберите несколько",noResults:"Нет результатов",passwordPlaceholderText:"Секретный пароль",togglePasswordVisibility:"Переключить видимость пароля",toggleMenu:"Переключить меню",toggleAside:"Переключить боковую панель",mainNavigation:"Основная навигация",sidebar:"Боковая панель",closeDrawer:"Закрыть выдвижную панель",closeModal:"Закрыть модальное окно",confirm:"Подтвердить",cancel:"Отменить",addLabel:"Добавить",removeItem:"Удалить элемент",currentLocale:"Русский",ar:"Арабский",de:"Немецкий",en:"Английский",es:"Испанский",fr:"Французский",hi:"Хинди",it:"Итальянский",ja:"Японский",ko:"Корейский",nl:"Нидерландский",pl:"Польский",pt:"Португальский",ru:"Русский",tr:"Турецкий",vi:"Вьетнамский",zh:"Китайский",he:"Иврит",fa:"Персидский",ur:"Урду",emailPlaceholderText:"Введите электронную почту",incrementValue:"Увеличить значение",decrementValue:"Уменьшить значение",dropZoneInstructions:e=>e?"Нажмите для выбора или перетащите файлы сюда, или нажмите Enter или Пробел, чтобы открыть выбор файлов":"Перетащите файлы сюда",fileSizeUnits:["Байт","КБ","МБ","ГБ","ТБ"],removeFile:"Удалить файл",clearAllFiles:"Очистить все файлы",clearValue:"Очистить значение",unknownType:"Неизвестный тип",filesInputInstructions:(e,t,l)=>{let o=e==null||e>1?"Нажмите для выбора или перетащите файлы сюда":"Нажмите для выбора или перетащите файл сюда";if(e||t){const n=[];if(e!=null&&e>1){let i="файлов";e<=4&&(i="файла"),n.push(`до ${e} ${i}`)}if(t&&l){const i=r.formatFileSize(t,{units:l});n.push(`макс ${i} каждый`)}n.length>0&&(o+=` (${n.join(", ")})`)}return o},paginationLabel:"Пагинация",paginationRange:(e,t,l,o)=>o>l?`Строки с ${e} по ${t} из ${l} из ${o}`:`Строки с ${e} по ${t} из ${l}`,firstPage:"Первая страница",previousPage:"Предыдущая страница",nextPage:"Следующая страница",lastPage:"Последняя страница",breadcrumbs:"Хлебные крошки",commandPalette:"Палитра команд",typeACommand:"Введите команду...",noResultsFound:"Результаты не найдены",noMatchingCommands:"Нет подходящих команд",appearanceSystem:"Системная",appearanceLight:"Светлая",appearanceDark:"Тёмная",ok:"OK",changeTypeConfirmation:"Изменение типа очистит текущее значение. Продолжить?",notifications:"Уведомления",markAllAsRead:"Отметить все как прочитанные",noNotifications:"Нет уведомлений",schemaConflictsDetected:"Обнаружены конфликты схемы",schemaViolationsDetected:"Обнаружены нарушения схемы",properties:"Свойства",uploading:"Загрузка...",dropFilesOrBrowse:"Перетащите файлы сюда или нажмите для выбора",acceptedTypes:e=>`Допустимые типы: ${e}`,enterUrlPrompt:"Введите URL:",exceeded:"(превышено)",pdfPreview:"Предпросмотр PDF",lexical:{fontFamily:"Шрифт",fontSize:"Размер шрифта",lineHeight:"Высота строки",fontColor:"Цвет шрифта",highlightColor:"Цвет выделения",backgroundColor:"Цвет фона",bold:"Полужирный",italic:"Курсив",underline:"Подчёркнутый",strikethrough:"Зачёркнутый",code:"Код",clearFormatting:"Очистить форматирование",normal:"Обычный",heading:e=>`Заголовок ${e}`,bulletList:"Маркированный список",orderedList:"Нумерованный список",checkList:"Список задач",indent:"Увеличить отступ",outdent:"Уменьшить отступ",blockquote:"Цитата",codeBlock:"Блок кода",horizontalRule:"Горизонтальная линия",insertTable:"Вставить таблицу",link:"Ссылка",undo:"Отменить",redo:"Повторить",cut:"Вырезать",copy:"Копировать",paste:"Вставить",defaultOption:"По умолчанию",slashCommands:"Слеш-команды",noCommandsFound:"Команды не найдены",changeBlockType:"Изменить тип блока",blockTypes:"Типы блоков",enterUrl:"Введите URL:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},dataTable:{sortAscending:"Сортировка по возрастанию",sortDescending:"Сортировка по убыванию",clearSort:"Сбросить сортировку",filterPlaceholder:"Фильтр...",clearFilter:"Сбросить фильтр",selectAll:"Выбрать все",deselectAll:"Снять выделение",selectedCount:e=>`${e} выбрано`,resetAll:"Сбросить все",noResults:"Результаты не найдены",loading:"Загрузка...",filterPanelAddCondition:"Добавить условие",filterPanelApply:"Применить",filterPanelClear:"Очистить фильтры",filterPanelAnd:"И",filterPanelOr:"ИЛИ",filterPanelContains:"Содержит",filterPanelNotContains:"Не содержит",filterPanelEquals:"Равно",filterPanelNotEquals:"Не равно",filterPanelStartsWith:"Начинается с",filterPanelEndsWith:"Заканчивается на",filterPanelIsNull:"Пусто",filterPanelIsNotNull:"Не пусто",filterPanelGt:"Больше",filterPanelGte:"Больше или равно",filterPanelLt:"Меньше",filterPanelLte:"Меньше или равно",filterPanelBetween:"Между",filterPanelValuePlaceholder:"Значение...",sortMultiHint:"Удерживайте Shift для сортировки по нескольким столбцам",columnVisibility:"Столбцы",showAllColumns:"Показать все",menuSortAsc:"Сортировать по возрастанию",menuSortDesc:"Сортировать по убыванию",menuClearSort:"Сбросить сортировку",menuHideColumn:"Скрыть столбец",menuChooseColumns:"Выбрать столбцы",menuResetColumns:"Сбросить столбцы",menuFilter:"Фильтр",rowCount:(e,t)=>`Строки: ${e} Всего строк: ${t}`,filterTagsPlaceholder:"Выбрать значения...",groupCount:e=>`${e} элементов`,collapseGroup:"Свернуть группу",expandGroup:"Развернуть группу",describeFilter:{textContains:(e,t)=>`${e} содержит "${t}"`,textNotContains:(e,t)=>`${e} не содержит "${t}"`,textEquals:(e,t)=>`${e} равно "${t}"`,textNotEquals:(e,t)=>`${e} не равно "${t}"`,textStartsWith:(e,t)=>`${e} начинается с "${t}"`,textEndsWith:(e,t)=>`${e} заканчивается на "${t}"`,compareEq:(e,t)=>`${e} = ${t}`,compareNeq:(e,t)=>`${e} ≠ ${t}`,compareGt:(e,t)=>`${e} > ${t}`,compareGte:(e,t)=>`${e} ≥ ${t}`,compareLt:(e,t)=>`${e} < ${t}`,compareLte:(e,t)=>`${e} ≤ ${t}`,rangeBetween:(e,t,l)=>`${e} между ${t} и ${l}`,rangeGte:(e,t)=>`${e} ≥ ${t}`,rangeLte:(e,t)=>`${e} ≤ ${t}`,setIn:(e,t)=>`${e} в [${t}]`,setNotIn:(e,t)=>`${e} не в [${t}]`,booleanIs:(e,t)=>`${e} — ${t}`,isNull:e=>`${e} пусто`,isNotNull:e=>`${e} не пусто`,compositeAnd:e=>e.join(" И "),compositeOr:e=>e.join(" ИЛИ ")}},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Загрузка PDF...",loadFailed:"Не удалось загрузить PDF",invalidPdf:"Недействительный файл PDF",pageOutOfRange:(e,t)=>`Страница ${e} вне диапазона (1-${t})`,renderFailed:"Не удалось отобразить страницу PDF"}};exports.default=a;exports.ru=a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as
|
|
1
|
+
import { f as i } from "./translations-B96REXIk.js";
|
|
2
2
|
const s = {
|
|
3
3
|
loadingExtended: "Загрузка, пожалуйста подождите",
|
|
4
4
|
loadingShort: "Загрузка...",
|
|
@@ -59,25 +59,26 @@ const s = {
|
|
|
59
59
|
clearValue: "Очистить значение",
|
|
60
60
|
unknownType: "Неизвестный тип",
|
|
61
61
|
filesInputInstructions: (e, t, l) => {
|
|
62
|
-
let
|
|
62
|
+
let o = e == null || e > 1 ? "Нажмите для выбора или перетащите файлы сюда" : "Нажмите для выбора или перетащите файл сюда";
|
|
63
63
|
if (e || t) {
|
|
64
|
-
const
|
|
64
|
+
const n = [];
|
|
65
65
|
if (e != null && e > 1) {
|
|
66
|
-
let
|
|
67
|
-
e <= 4 && (
|
|
66
|
+
let a = "файлов";
|
|
67
|
+
e <= 4 && (a = "файла"), n.push(`до ${e} ${a}`);
|
|
68
68
|
}
|
|
69
69
|
if (t && l) {
|
|
70
|
-
const
|
|
70
|
+
const a = i(t, {
|
|
71
71
|
units: l
|
|
72
72
|
});
|
|
73
|
-
|
|
73
|
+
n.push(`макс ${a} каждый`);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
n.length > 0 && (o += ` (${n.join(", ")})`);
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return o;
|
|
78
78
|
},
|
|
79
79
|
// Pagination
|
|
80
80
|
paginationLabel: "Пагинация",
|
|
81
|
+
paginationRange: (e, t, l, o) => o > l ? `Строки с ${e} по ${t} из ${l} из ${o}` : `Строки с ${e} по ${t} из ${l}`,
|
|
81
82
|
firstPage: "Первая страница",
|
|
82
83
|
previousPage: "Предыдущая страница",
|
|
83
84
|
nextPage: "Следующая страница",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("@tempots/dom"),I=require("./input-container-
|
|
1
|
+
"use strict";const t=require("@tempots/dom"),I=require("./input-container-BZwpJgx6.cjs");function d(n,a,u){const{value:l,onChange:e,onInput:r,...i}=n;return{...i,value:t.Value.map(l,a),onChange:e!=null?o=>e(u(o)):void 0,onInput:r!=null?o=>r(u(o)):void 0}}const m=({autocomplete:n,ariaLabel:a,autofocus:u,classes:l,disabled:e,name:r,placeholder:i,id:o,required:s,tabIndex:c,hasError:p})=>t.Fragment(t.attr.autocomplete(n),t.attr.autofocus(u),t.attr.class(l?.input),t.attr.disabled(e),t.attr.name(r??o),t.attr.placeholder(i),t.attr.id(o),t.aria.required(s),a!=null?t.aria.label(a):null,t.attr.tabindex(c),p!=null?t.aria.invalid(p??!1):null),v=n=>{const{value:a,onBlur:u,onChange:l,onInput:e,type:r}=n;return I.InputContainer({...n,input:t.html.input(t.attr.type(r??"text"),m(n),t.attr.value(a),t.attr.class("bc-input"),u!=null?t.on.blur(t.emitValue(u)):t.Empty,l!=null?t.on.change(t.emitValue(l)):t.Empty,e!=null?t.on.input(t.emitValue(e)):t.Empty)})};exports.CommonInputAttributes=m;exports.TextInput=v;exports.mapInputOptions=d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as C, attr as n, aria as r, Value as b, html as f, Empty as m, on as s, emitValue as c } from "@tempots/dom";
|
|
2
|
-
import { I as g } from "./input-container-
|
|
2
|
+
import { I as g } from "./input-container-Q9wL2BUl.js";
|
|
3
3
|
function T(t, e, u) {
|
|
4
4
|
const { value: a, onChange: l, onInput: o, ...i } = t;
|
|
5
5
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("@tempots/dom"),v=require("./input-container-
|
|
1
|
+
"use strict";const t=require("@tempots/dom"),v=require("./input-container-BZwpJgx6.cjs"),c=["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 A(l,...i){const{ariaLabel:n}=l;return t.html.div(t.attr.class("bc-toolbar"),t.attr.role("toolbar"),t.aria.orientation("horizontal"),n!=null?t.aria.label(n):null,t.WithElement(a=>{const d=()=>{const r=Array.from(a.querySelectorAll(c));r.length!==0&&r.forEach((e,o)=>e.setAttribute("tabindex",o===0?"0":"-1"))},s=r=>{const e=Array.from(a.querySelectorAll(c));if(e.length===0)return;const o=e.findIndex(f=>f===document.activeElement);let u=(o===-1?0:o)+r;u<0&&(u=e.length-1),u>=e.length&&(u=0),e.forEach(f=>f.setAttribute("tabindex","-1"));const h=e[u];h.setAttribute("tabindex","0"),h.focus()};setTimeout(d,0);const m=r=>{switch(r.key){case"ArrowRight":r.preventDefault(),s(1);break;case"ArrowLeft":r.preventDefault(),s(-1);break;case"Home":r.preventDefault(),s(-1);{const e=Array.from(a.querySelectorAll(c));if(e.length){e.forEach(b=>b.setAttribute("tabindex","-1"));const o=e[0];o.setAttribute("tabindex","0"),o.focus()}}break;case"End":r.preventDefault();{const e=Array.from(a.querySelectorAll(c));if(e.length){e.forEach(b=>b.setAttribute("tabindex","-1"));const o=e[e.length-1];o.setAttribute("tabindex","0"),o.focus()}}break}};return a.addEventListener("keydown",m),t.OnDispose(()=>{a.removeEventListener("keydown",m)})}),...i)}function p(l,...i){const{iconOnly:n,ariaLabel:a,...d}=l;return v.Button({color:"neutral",roundedness:"md",variant:"light",...d},t.attr.class("bc-toolbar__button"),n!=null?t.attr.class(t.Value.map(n,s=>s?"bc-toolbar__button--icon-only":"")):null,a!=null?t.aria.label(a):null,...i)}function x(l,...i){const{ariaLabel:n}=l;return t.html.div(t.attr.class("bc-toolbar__group"),t.attr.role("group"),n!=null?t.aria.label(n):null,...i)}function y(){return t.html.div(t.attr.class("bc-toolbar__divider"),t.attr.role("separator"),t.aria.orientation("vertical"))}function g(){return t.html.div(t.attr.class("bc-toolbar__spacer"))}exports.Toolbar=A;exports.ToolbarButton=p;exports.ToolbarDivider=y;exports.ToolbarGroup=x;exports.ToolbarSpacer=g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html as f, attr as n, aria as c, WithElement as p, OnDispose as x, Value as y } from "@tempots/dom";
|
|
2
|
-
import { B as g } from "./input-container-
|
|
2
|
+
import { B as g } from "./input-container-Q9wL2BUl.js";
|
|
3
3
|
const d = [
|
|
4
4
|
"button:not([disabled])",
|
|
5
5
|
'[role="button"]:not([aria-disabled="true"])',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as
|
|
1
|
+
import { f as r } from "./translations-B96REXIk.js";
|
|
2
2
|
const s = {
|
|
3
3
|
loadingExtended: "Yükleniyor, lütfen bekleyin",
|
|
4
4
|
loadingShort: "Yükleniyor...",
|
|
@@ -59,21 +59,22 @@ const s = {
|
|
|
59
59
|
clearValue: "Değeri temizle",
|
|
60
60
|
unknownType: "Bilinmeyen tür",
|
|
61
61
|
filesInputInstructions: (e, a, l) => {
|
|
62
|
-
let
|
|
62
|
+
let i = 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";
|
|
63
63
|
if (e || a) {
|
|
64
|
-
const
|
|
65
|
-
if (e != null && e > 1 &&
|
|
66
|
-
const
|
|
64
|
+
const t = [];
|
|
65
|
+
if (e != null && e > 1 && t.push(`en fazla ${e} dosya`), a && l) {
|
|
66
|
+
const n = r(a, {
|
|
67
67
|
units: l
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
t.push(`her biri en fazla ${n}`);
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
t.length > 0 && (i += ` (${t.join(", ")})`);
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return i;
|
|
74
74
|
},
|
|
75
75
|
// Pagination
|
|
76
76
|
paginationLabel: "Sayfalama",
|
|
77
|
+
paginationRange: (e, a, l, i) => i > l ? `${i} içinden ${l} sonucun ${e} - ${a} satırları` : `${l} sonucun ${e} - ${a} satırları`,
|
|
77
78
|
firstPage: "İlk sayfa",
|
|
78
79
|
previousPage: "Önceki sayfa",
|
|
79
80
|
nextPage: "Sonraki sayfa",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-BDGa_4jx.cjs"),o={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ç",selectNone:"Hiçbiri",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,a,l)=>{let i=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||a){const t=[];if(e!=null&&e>1&&t.push(`en fazla ${e} dosya`),a&&l){const n=r.formatFileSize(a,{units:l});t.push(`her biri en fazla ${n}`)}t.length>0&&(i+=` (${t.join(", ")})`)}return i},paginationLabel:"Sayfalama",paginationRange:(e,a,l,i)=>i>l?`${i} içinden ${l} sonucun ${e} - ${a} satırları`:`${l} sonucun ${e} - ${a} satırları`,firstPage:"İlk sayfa",previousPage:"Önceki sayfa",nextPage:"Sonraki sayfa",lastPage:"Son sayfa",breadcrumbs:"İçerik haritası",commandPalette:"Komut paleti",typeACommand:"Bir komut yazın...",noResultsFound:"Sonuç bulunamadı",noMatchingCommands:"Eşleşen komut yok",appearanceSystem:"Sistem",appearanceLight:"Açık",appearanceDark:"Koyu",ok:"OK",changeTypeConfirmation:"Tür değiştirmek mevcut değeri silecektir. Devam edilsin mi?",notifications:"Bildirimler",markAllAsRead:"Tümünü okundu olarak işaretle",noNotifications:"Bildirim yok",schemaConflictsDetected:"Şema Çakışmaları Tespit Edildi",schemaViolationsDetected:"Şema İhlalleri Tespit Edildi",properties:"Özellikler",uploading:"Yükleniyor...",dropFilesOrBrowse:"Dosyaları buraya bırakın veya göz atmak için tıklayın",acceptedTypes:e=>`Kabul edilen türler: ${e}`,enterUrlPrompt:"URL girin:",exceeded:"(aşıldı)",pdfPreview:"PDF Önizleme",lexical:{fontFamily:"Yazı Tipi",fontSize:"Yazı Boyutu",lineHeight:"Satır yüksekliği",fontColor:"Yazı Rengi",highlightColor:"Vurgu Rengi",backgroundColor:"Arka Plan Rengi",bold:"Kalın",italic:"İtalik",underline:"Altı Çizili",strikethrough:"Üstü Çizili",code:"Kod",clearFormatting:"Biçimlendirmeyi Temizle",normal:"Normal",heading:e=>`Başlık ${e}`,bulletList:"Madde İşaretli Liste",orderedList:"Numaralı Liste",checkList:"Kontrol Listesi",indent:"Girintiyi Artır",outdent:"Girintiyi Azalt",blockquote:"Alıntı",codeBlock:"Kod Bloğu",horizontalRule:"Yatay Çizgi",insertTable:"Tablo Ekle",link:"Bağlantı",undo:"Geri Al",redo:"Yinele",cut:"Kes",copy:"Kopyala",paste:"Yapıştır",defaultOption:"Varsayılan",slashCommands:"Eğik çizgi komutları",noCommandsFound:"Komut bulunamadı",changeBlockType:"Blok türünü değiştir",blockTypes:"Blok türleri",enterUrl:"URL girin:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},dataTable:{sortAscending:"Artan sıralama",sortDescending:"Azalan sıralama",clearSort:"Sıralamayı temizle",filterPlaceholder:"Filtrele...",clearFilter:"Filtreyi temizle",selectAll:"Tümünü seç",deselectAll:"Tümünü kaldır",selectedCount:e=>`${e} seçildi`,resetAll:"Tümünü sıfırla",noResults:"Sonuç bulunamadı",loading:"Yükleniyor...",filterPanelAddCondition:"Koşul ekle",filterPanelApply:"Uygula",filterPanelClear:"Filtreleri temizle",filterPanelAnd:"VE",filterPanelOr:"VEYA",filterPanelContains:"İçerir",filterPanelNotContains:"İçermez",filterPanelEquals:"Eşittir",filterPanelNotEquals:"Eşit değildir",filterPanelStartsWith:"İle başlar",filterPanelEndsWith:"İle biter",filterPanelIsNull:"Boş",filterPanelIsNotNull:"Boş değil",filterPanelGt:"Büyüktür",filterPanelGte:"Büyük veya eşit",filterPanelLt:"Küçüktür",filterPanelLte:"Küçük veya eşit",filterPanelBetween:"Arasında",filterPanelValuePlaceholder:"Değer...",sortMultiHint:"Birden fazla sütunu sıralamak için Shift tuşunu basılı tutun",columnVisibility:"Sütunlar",showAllColumns:"Tümünü göster",menuSortAsc:"Artan sırada sırala",menuSortDesc:"Azalan sırada sırala",menuClearSort:"Sıralamayı temizle",menuHideColumn:"Sütunu gizle",menuChooseColumns:"Sütun seç",menuResetColumns:"Sütunları sıfırla",menuFilter:"Filtrele",rowCount:(e,a)=>`Satırlar: ${e} Toplam satır: ${a}`,filterTagsPlaceholder:"Değer seçin...",groupCount:e=>`${e} öğe`,collapseGroup:"Grubu daralt",expandGroup:"Grubu genişlet",describeFilter:{textContains:(e,a)=>`${e} "${a}" içerir`,textNotContains:(e,a)=>`${e} "${a}" içermez`,textEquals:(e,a)=>`${e} "${a}" eşittir`,textNotEquals:(e,a)=>`${e} "${a}" eşit değildir`,textStartsWith:(e,a)=>`${e} "${a}" ile başlar`,textEndsWith:(e,a)=>`${e} "${a}" ile biter`,compareEq:(e,a)=>`${e} = ${a}`,compareNeq:(e,a)=>`${e} ≠ ${a}`,compareGt:(e,a)=>`${e} > ${a}`,compareGte:(e,a)=>`${e} ≥ ${a}`,compareLt:(e,a)=>`${e} < ${a}`,compareLte:(e,a)=>`${e} ≤ ${a}`,rangeBetween:(e,a,l)=>`${e} ${a} ile ${l} arasında`,rangeGte:(e,a)=>`${e} ≥ ${a}`,rangeLte:(e,a)=>`${e} ≤ ${a}`,setIn:(e,a)=>`${e} [${a}] içinde`,setNotIn:(e,a)=>`${e} [${a}] içinde değil`,booleanIs:(e,a)=>`${e} ${a}`,isNull:e=>`${e} boş`,isNotNull:e=>`${e} boş değil`,compositeAnd:e=>e.join(" VE "),compositeOr:e=>e.join(" VEYA ")}},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"PDF yükleniyor...",loadFailed:"PDF yüklenemedi",invalidPdf:"Geçersiz PDF dosyası",pageOutOfRange:(e,a)=>`Sayfa ${e} aralık dışında (1-${a})`,renderFailed:"PDF sayfası oluşturulamadı"}};exports.default=o;
|