xmlui 0.12.20 → 0.12.21
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/lib/{index-DlL2LZda.js → index-CznbWBUF.js} +2675 -2691
- package/dist/lib/index.css +2 -2
- package/dist/lib/{initMock-oDPfoiEj.js → initMock-Dj__hABf.js} +1 -1
- package/dist/lib/testing.d.ts +1 -1
- package/dist/lib/xmlui-parser.d.ts +6 -1
- package/dist/lib/xmlui.d.ts +32 -19
- package/dist/lib/xmlui.js +24 -24
- package/dist/metadata/TextBox-B-GWiq0J.cjs +1 -0
- package/dist/metadata/{TextBox-CLfnmg0K.js → TextBox-DHSTy0g0.js} +3795 -3799
- package/dist/metadata/behaviors.cjs +1 -1
- package/dist/metadata/behaviors.js +1 -1
- package/dist/metadata/{initMock-gmVI0Sf9.js → initMock-SQIcDMzP.js} +1 -1
- package/dist/metadata/{initMock-C_24ZWrk.cjs → initMock-wSFvfKcr.cjs} +1 -1
- package/dist/metadata/xmlui-metadata.cjs +1 -1
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui.css +1 -1
- package/dist/nodejs/bin/index.mjs +0 -294
- package/dist/nodejs/server.cjs +1900 -1016
- package/dist/nodejs/server.mjs +1900 -1016
- package/dist/standalone/xmlui-standalone.es.d.ts +35 -24
- package/dist/standalone/xmlui-standalone.umd.js +32 -33
- package/package.json +1 -3
- package/dist/islands/xmlui-islands.es.d.ts +0 -3685
- package/dist/islands/xmlui-islands.umd.js +0 -422
- package/dist/metadata/TextBox-DZci5V1h.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./TextBox-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./TextBox-B-GWiq0J.cjs"),t={animation:a.animationBehavior.metadata,bookmark:a.bookmarkBehavior.metadata,displayWhen:a.displayWhenBehavior.metadata,formBinding:a.formBindingBehavior.metadata,label:a.labelBehavior.metadata,tooltip:a.tooltipBehavior.metadata,validation:a.validationBehavior.metadata,variant:a.variantBehavior.metadata};exports.collectedBehaviorMetadata=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cu as variantBehavior, cv as validationBehavior, cw as tooltipBehavior, cx as labelBehavior, cy as formBindingBehavior, cz as displayWhenBehavior, cA as bookmarkBehavior, cB as animationBehavior } from "./TextBox-
|
|
1
|
+
import { cu as variantBehavior, cv as validationBehavior, cw as tooltipBehavior, cx as labelBehavior, cy as formBindingBehavior, cz as displayWhenBehavior, cA as bookmarkBehavior, cB as animationBehavior } from "./TextBox-DHSTy0g0.js";
|
|
2
2
|
const collectedBehaviorMetadata = {
|
|
3
3
|
animation: animationBehavior.metadata,
|
|
4
4
|
bookmark: bookmarkBehavior.metadata,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { delay as delay$1, HttpResponse, matchRequestUrl } from "msw";
|
|
2
2
|
import { isArray, isObject, mapValues } from "lodash-es";
|
|
3
|
-
import { cC as runEventHandlerCode, cD as getDate, cE as delay, cF as miscellaneousUtils, cG as dateFunctions, cH as orderBy, cI as ThrowStatementError } from "./TextBox-
|
|
3
|
+
import { cC as runEventHandlerCode, cD as getDate, cE as delay, cF as miscellaneousUtils, cG as dateFunctions, cH as orderBy, cI as ThrowStatementError } from "./TextBox-DHSTy0g0.js";
|
|
4
4
|
import Dexie from "dexie";
|
|
5
5
|
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
6
6
|
HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("msw"),t=require("lodash-es"),a=require("./TextBox-DZci5V1h.cjs"),r=require("dexie");var s=(e=>(e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e))(s||{});class i extends Error{constructor(e,t){super(t?.message||"Not found"),this.details=t,this.status=e,Object.setPrototypeOf(this,i.prototype)}}class n extends i{constructor(e){super(404,e),Object.setPrototypeOf(this,n.prototype)}}class o extends i{constructor(e){super(401,e),Object.setPrototypeOf(this,o.prototype)}}class c extends i{constructor(e){super(409,e),Object.setPrototypeOf(this,c.prototype)}}function l(e){let t;return e&&(t="string"==typeof e?{message:e}:e),t}const d={NotFound404:e=>new n(l(e)),Unauthorized401:e=>new o(l(e)),HttpError:(e,t)=>new i(e,l(t)),Conflict409:e=>new c(l(e))},h={getDate:e=>e?new Date(e):new Date},u=(e,a)=>t.isArray(e)?e.map(e=>u(e,a)):t.isObject(e)?t.mapValues(e,e=>u(e,a)):a(e);class p{constructor(){this.cookies={}}setCookie(e,t){this.cookies[e]=t}getCookieHeader(){const e=[];return Object.entries(this.cookies).forEach(([t,a])=>{Array.isArray(a)?a.forEach(a=>e.push(["Set-Cookie",`${t}=${a}`])):e.push(["Set-Cookie",`${t}=${a}`])}),new Headers(e)}}class w{constructor(){this.headers={}}setHeader(e,t){this.headers[e]=t}getHeaders(){const e=[];return Object.entries(this.headers).forEach(([t,a])=>{e.push([t,a])}),new Headers(e)}}class y{constructor(e,t,a){this.definition=e,this.db=t,this.authService=a,this.apiStateHash={},this.resolvedHelpers=u(e.helpers,e=>"string"==typeof e?(...t)=>this.runFn(e,...t):e),e.initialize&&this.runFn(e.initialize)}async executeOperation(e,t,a,r){const s=this.definition.operations?.[e];if(!s)throw new Error(`Unknown backend operation: ${e}`);return await this.runFn(s,t,a,r)}async runFn(e,...t){let r={...this.resolvedHelpers,$db:this.db,$state:this.apiStateHash,$authService:this.authService,$env:h,$loggedInUser:this.authService.getLoggedInUser(),$pathParams:t[0]?.pathParams,$queryParams:t[0]?.queryParams,$requestBody:t[0]?.requestBody,$cookies:t[0]?.cookies,$requestHeaders:t[0]?.requestHeaders,$cookieService:t[1],$headerService:t[2]};const s=(i={localContext:r,eventArgs:t,appContext:{...a.dateFunctions,...a.miscellaneousUtils,delay:a.delay,Errors:d,createFile:(...e)=>new File(e[0],e[1],e[2]),appendBlob:(e,t)=>e&&t?new Blob([e,t],{type:e.type||t.type}):e||t||null,getDate:a.getDate}},{mainThread:{childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1},...i});var i;return await a.runEventHandlerCode(e,s),s.mainThread?.blocks?.length?s.mainThread.blocks[s.mainThread.blocks.length-1].returnValue:void 0}}class g{constructor(e){this.list=[];for(const t of e)this.list.push(t)}get length(){return this.list.length}toArray(){return this.list.slice(0)}at(e){if(e<0||e>this.list.length-1)throw new Error(`Index (${e}) is out of range [0..${Math.max(this.list.length-1,0)}]`);return this.list[e]}all(){return new g(this.list)}async single(e){const t=await this.where(e);if(0===t.length)throw new Error("No items found with the specified predicate");if(t.length>1)throw new Error("Multiple items found with the specified predicate");return t.at(0)}async singleOrDefault(e,t){const a=await this.where(e);if(0===a.length)return t;if(a.length>1)throw new Error("Multiple items found with the specified predicate");return a.at(0)}async where(e){return new g(await this.whereAsArray(e))}async whereAsArray(e){const t=await Promise.all(this.list.map(e??(async()=>!0)));return this.list.filter((e,a)=>t[a])}async orderBy(...e){return new g(await a.orderBy(this.list,...e))}async orderByAsArray(...e){return await a.orderBy(this.list,...e)}async groupBy(e){return new g(await this.groupByAsArray(e))}async groupByAsArray(e){const t=new Map;for(const r of this.list){const a=await e(r),s=t.get(a);void 0===s?t.set(a,[r]):s.push(r)}const a=[];for(const[r,s]of t.entries())a.push({key:r,items:s});return a}async distinct(e){e??(e=async e=>e);const t=new Set;for(const a of this.list)t.add(await e(a));return new g(t.values())}async distinctAsArray(e){return(await this.distinct(e)).toArray()}async maxValue(e="id",t){let r=t?(await new g(this.list).where(t)).toArray():this.list;return r=await a.orderBy(r,t=>t[e],!0),0===r.length?void 0:r[0][e]}async skip(e){return new g(this.list.slice(e))}async take(e){return new g(this.list.slice(0,e))}async skipTake(e,t){return new g(this.list.slice(e,t+e))}}class m{constructor(e,t={},a){this.tables=e,this.initialData=t,this.config=a,this.db=null,this.getItems=e=>this.getDb().table(e).toArray(),this.findItems=async(e,t)=>{const a=await this.getItems(e),r=await Promise.all(a.map(t));return a.filter((e,t)=>r[t])},this.getItem=async(e,t)=>{const a=await this.getItems(e),r=await Promise.all(a.map(t));return a.find((e,t)=>r[t])},this.getItemById=async(e,t)=>await this.getItem(e,e=>Promise.resolve(e.id+""==t+"")),this.deleteItems=async(e,t)=>{},this.insertItem=async(e,t)=>{const a=await this.getDb().table(e).add(t);return this.getItemById(e,a)},this.updateItem=async(e,t)=>(await this.getDb().table(e).update(t.id,t),await this.getItemById(e,t.id))}getDb(){if(null===this.db)throw new Error("Db is not initialized yet");return this.db}async initialize(){const e="function"==typeof this.initialData?await this.initialData():this.initialData,t={},a=new Set;this.tables?this.tables.forEach(e=>{const r=[];1===e.pk.length?r.push(e.pk[0]):r.push(`[${e.pk.join("+")}]`),e.indexes&&r.push(...e.indexes),t[e.name]=r.join(", "),a.add(e.name)}):Object.entries(e).forEach(([e])=>{t[e]="++id",a.add(e)});const r=void 0!==this.config?.version&&"number"==typeof this.config?.version?this.config?.version:1,s=await this.dropDbOnVersionChange(r);this.db=this.createDbInstance(),this.db.version(r).stores(t),s&&await Promise.all(Object.entries(e).map(async([e,t])=>{try{await this.getDb().table(e).bulkAdd(t)}catch(a){console.error(a)}})),a.forEach(e=>{this[`$${e}`]=function(e){const t=()=>e.db.table(e.name),a=async t=>{const a=await e.toArray(),r=await Promise.all(a.map(t??(()=>Promise.resolve(!0))));return a.filter((e,t)=>r[t])};return{native:t,insert:async a=>{const r=await e.add(a);return t().get(r)},update:async a=>(await e.update(a.id,a),t().get(a.id)),save:async t=>{const a=await e.put(t);return e.get(a)},deleteById:async t=>{await e.delete(t)},byId:async t=>{if(null==t)return null;let a=t;return"++id"===e.schema.primKey.src&&(a=Number(t)),await e.get(a)},toArray:async()=>await e.toArray(),single:async t=>await new g(await e.toArray()).single(t),singleOrDefault:async(t,a)=>await new g(await e.toArray()).singleOrDefault(t,a),where:async e=>new g(await a(e)),whereAsArray:async e=>await a(e),orderBy:async(...t)=>await new g(await e.toArray()).orderBy(...t),orderByAsArray:async(...t)=>await new g(await e.toArray()).orderByAsArray(...t),groupBy:async t=>await new g(await e.toArray()).groupBy(t),groupByAsArray:async t=>await new g(await e.toArray()).groupByAsArray(t),distinct:async t=>await new g(await e.toArray()).distinct(t),distinctAsArray:async t=>await new g(await e.toArray()).distinctAsArray(t),maxValue:async(t="id",a)=>await new g(await e.toArray()).maxValue(t,a),skip:async t=>await new g(await e.toArray()).skip(t),take:async t=>await new g(await e.toArray()).take(t),skipTake:async(t,a)=>await new g(await e.toArray()).skipTake(t,a)}}(this.getDb().table(e))})}createDbInstance(){return new r(this.config?.database??"defaultIndexDb")}async dropDbOnVersionChange(e){const t=this.createDbInstance();return!(await r.exists(t.name))||(await t.open(),t.verno!==e?(await t.delete(),!0):(t.close(),!1))}async transaction(e){if(!this.db)return;const t=this.db.tables;await this.db.transaction("rw",t,e)}}function f(e,t){if(!t)return e;const a={...e};return Object.keys(e).forEach(r=>{if(!(r in t))return;const s=e[r],i=typeof s;switch(t[r]){case"integer":switch(i){case"number":a[r]=Math.round(s);break;case"string":a[r]=parseInt(s,10);break;case"boolean":a[r]=s?1:0}break;case"float":case"real":case"double":switch(i){case"number":a[r]=s;break;case"string":a[r]=parseFloat(s);break;case"boolean":a[r]=s?1:0}break;case"boolean":switch(i){case"string":switch(s.toLowerCase()){case"true":case"yes":case"on":a[r]=!0;break;case"false":case"no":case"off":a[r]=!1}break;case"number":a[r]=!!s}}}),a}class b{constructor(e,t={},a){this.tables=e,this.initialData=t,this.config=a}getItems(e){throw new Error("Method not implemented.")}getItem(e,t){throw new Error("Method not implemented.")}getItemById(e,t){throw new Error("Method not implemented.")}deleteItems(e,t){throw new Error("Method not implemented.")}insertItem(e,t){throw new Error("Method not implemented.")}updateItem(e,t){throw new Error("Method not implemented.")}async initialize(){}}class k{constructor(e){const t=JSON.parse(sessionStorage.getItem("session-logged-in-user"));this.loggedInUser=t||e?.defaultLoggedInUser}login(e){this.loggedInUser=e,sessionStorage.setItem("session-logged-in-user",JSON.stringify(e))}logout(){this.loggedInUser=null,sessionStorage.removeItem("session-logged-in-user")}getCookieToken(){return sessionStorage.getItem("session-anonymous-token")}setCookieToken(e){sessionStorage.setItem("session-anonymous-token",e)}getLoggedInUser(){return this.loggedInUser}}class A{constructor(e){this.apiDef=e,this.backend=null}async initialize(){const e={};Object.entries(this.apiDef.operations||{}).forEach(([t,a])=>{e[t]=a.handler});const t=await async function(e){if("in-memory"===e.type)return new b(e.schemaDescriptor?.tables,e.initialData,e.config);{const t=new m(e.schemaDescriptor?.tables,e.initialData,e.config);return await t.initialize(),t}}(this.apiDef),a=new k(this.apiDef.auth),r={operations:e,initialize:this.apiDef.initialize,helpers:this.apiDef.helpers};this.backend=new y(r,t,a)}getOperations(){return this.apiDef.operations||{}}getApiUrl(){return this.apiDef.apiUrl||""}async executeOperation(r,n,o,c){if(null===this.backend)throw new Error("Interceptor not initialized");const l=this.apiDef.operations?.[r];if(!l)throw new Error(`Unknown API interceptor operation: ${r}`);let d;try{if("formData"===l.requestShape){const e=await n.formData(),t={};for(const a of e.keys()){const r=e.getAll(a);1===r.length?t[a]=r[0]:t[a]=r}d=t}else d="blob"===l.requestShape?await n.blob():await n.json()}catch(g){}const h=this.convertRequestParams({pathParams:c,queryParams:Object.fromEntries(new URL(n.url).searchParams),requestBody:d,cookies:o,requestHeaders:Object.fromEntries(n.headers.entries())||{}},l);void 0===this.apiDef.artificialDelay?await e.delay("real"):0!==this.apiDef.artificialDelay&&await e.delay(this.apiDef.artificialDelay);const u=new p,y=new w;try{const a=await this.backend.executeOperation(r,h,u,y),i=null==a,n=l.successStatusCode??(i?s.NoContent:s.Ok),o=function(...e){const a={};for(const r of e){if(!t.isObject(r))throw new TypeError("All arguments must be of type object");const e=new Headers(r);for(const[t,r]of e.entries())void 0===r||"undefined"===r?delete a[t]:a[t]=r}return new Headers(a)}(u.getCookieHeader(),y.getHeaders());if(a instanceof File){o.append("Content-type",a.type),o.append("Content-Length",a.size+"");const t=encodeURIComponent(a.name);return o.append("Content-Disposition",`attachment; filename*=UTF-8''${t}`),e.HttpResponse.arrayBuffer(await a.arrayBuffer(),{headers:o,status:n})}return i?new e.HttpResponse(null,{headers:o,status:n}):"string"==typeof a?e.HttpResponse.text(a,{headers:o,status:n}):e.HttpResponse.json(a,{headers:o,status:n})}catch(g){return console.error(g),g instanceof a.ThrowStatementError&&g.errorObject instanceof i?e.HttpResponse.json(g.errorObject.details,{headers:u.getCookieHeader(),status:g.errorObject.status}):e.HttpResponse.json({message:g?.message},{headers:u.getCookieHeader(),status:s.InternalServerError})}}convertRequestParams(e,t){return{...e,pathParams:f(e.pathParams,t.pathParamTypes),queryParams:f(e.queryParams,t.queryParamTypes)}}hasMockForRequest(e,t){return void 0!==this.getMockForRequest(e,t)}getMockForRequest(t,a){return Object.entries(this.getOperations()).find(([r,s])=>!(!e.matchRequestUrl(new URL(t,window.location.href),`${this.getApiUrl()}${s.url}`,`${window.location.href}`).matches||(a.method||"get").toLowerCase()!==s.method.toLowerCase()))}executeMockedFetch(t,a){const r=this.getMockForRequest(t,a);if(!r)throw new Error(`No mock found for request: ${t} with options: ${JSON.stringify(a)}`);const[s,i]=r,n=e.matchRequestUrl(new URL(t,window.location.href),`${this.getApiUrl()}${i.url}`,`${window.location.href}`);return this.executeOperation(s,new Request(t,a),function(){const e=document.cookie;if(""===e)return{};const t=e.split("; ");return t.reduce((e,t)=>{const[a,r]=t.split("=");return e[decodeURIComponent(a)]=decodeURIComponent(r),e},{})}(),n.params)}}exports.initMock=async e=>{const t=new A(e);return await t.initialize(),t};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("msw"),t=require("lodash-es"),a=require("./TextBox-B-GWiq0J.cjs"),r=require("dexie");var s=(e=>(e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e))(s||{});class i extends Error{constructor(e,t){super(t?.message||"Not found"),this.details=t,this.status=e,Object.setPrototypeOf(this,i.prototype)}}class n extends i{constructor(e){super(404,e),Object.setPrototypeOf(this,n.prototype)}}class o extends i{constructor(e){super(401,e),Object.setPrototypeOf(this,o.prototype)}}class c extends i{constructor(e){super(409,e),Object.setPrototypeOf(this,c.prototype)}}function l(e){let t;return e&&(t="string"==typeof e?{message:e}:e),t}const d={NotFound404:e=>new n(l(e)),Unauthorized401:e=>new o(l(e)),HttpError:(e,t)=>new i(e,l(t)),Conflict409:e=>new c(l(e))},h={getDate:e=>e?new Date(e):new Date},u=(e,a)=>t.isArray(e)?e.map(e=>u(e,a)):t.isObject(e)?t.mapValues(e,e=>u(e,a)):a(e);class p{constructor(){this.cookies={}}setCookie(e,t){this.cookies[e]=t}getCookieHeader(){const e=[];return Object.entries(this.cookies).forEach(([t,a])=>{Array.isArray(a)?a.forEach(a=>e.push(["Set-Cookie",`${t}=${a}`])):e.push(["Set-Cookie",`${t}=${a}`])}),new Headers(e)}}class w{constructor(){this.headers={}}setHeader(e,t){this.headers[e]=t}getHeaders(){const e=[];return Object.entries(this.headers).forEach(([t,a])=>{e.push([t,a])}),new Headers(e)}}class y{constructor(e,t,a){this.definition=e,this.db=t,this.authService=a,this.apiStateHash={},this.resolvedHelpers=u(e.helpers,e=>"string"==typeof e?(...t)=>this.runFn(e,...t):e),e.initialize&&this.runFn(e.initialize)}async executeOperation(e,t,a,r){const s=this.definition.operations?.[e];if(!s)throw new Error(`Unknown backend operation: ${e}`);return await this.runFn(s,t,a,r)}async runFn(e,...t){let r={...this.resolvedHelpers,$db:this.db,$state:this.apiStateHash,$authService:this.authService,$env:h,$loggedInUser:this.authService.getLoggedInUser(),$pathParams:t[0]?.pathParams,$queryParams:t[0]?.queryParams,$requestBody:t[0]?.requestBody,$cookies:t[0]?.cookies,$requestHeaders:t[0]?.requestHeaders,$cookieService:t[1],$headerService:t[2]};const s=(i={localContext:r,eventArgs:t,appContext:{...a.dateFunctions,...a.miscellaneousUtils,delay:a.delay,Errors:d,createFile:(...e)=>new File(e[0],e[1],e[2]),appendBlob:(e,t)=>e&&t?new Blob([e,t],{type:e.type||t.type}):e||t||null,getDate:a.getDate}},{mainThread:{childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1},...i});var i;return await a.runEventHandlerCode(e,s),s.mainThread?.blocks?.length?s.mainThread.blocks[s.mainThread.blocks.length-1].returnValue:void 0}}class g{constructor(e){this.list=[];for(const t of e)this.list.push(t)}get length(){return this.list.length}toArray(){return this.list.slice(0)}at(e){if(e<0||e>this.list.length-1)throw new Error(`Index (${e}) is out of range [0..${Math.max(this.list.length-1,0)}]`);return this.list[e]}all(){return new g(this.list)}async single(e){const t=await this.where(e);if(0===t.length)throw new Error("No items found with the specified predicate");if(t.length>1)throw new Error("Multiple items found with the specified predicate");return t.at(0)}async singleOrDefault(e,t){const a=await this.where(e);if(0===a.length)return t;if(a.length>1)throw new Error("Multiple items found with the specified predicate");return a.at(0)}async where(e){return new g(await this.whereAsArray(e))}async whereAsArray(e){const t=await Promise.all(this.list.map(e??(async()=>!0)));return this.list.filter((e,a)=>t[a])}async orderBy(...e){return new g(await a.orderBy(this.list,...e))}async orderByAsArray(...e){return await a.orderBy(this.list,...e)}async groupBy(e){return new g(await this.groupByAsArray(e))}async groupByAsArray(e){const t=new Map;for(const r of this.list){const a=await e(r),s=t.get(a);void 0===s?t.set(a,[r]):s.push(r)}const a=[];for(const[r,s]of t.entries())a.push({key:r,items:s});return a}async distinct(e){e??(e=async e=>e);const t=new Set;for(const a of this.list)t.add(await e(a));return new g(t.values())}async distinctAsArray(e){return(await this.distinct(e)).toArray()}async maxValue(e="id",t){let r=t?(await new g(this.list).where(t)).toArray():this.list;return r=await a.orderBy(r,t=>t[e],!0),0===r.length?void 0:r[0][e]}async skip(e){return new g(this.list.slice(e))}async take(e){return new g(this.list.slice(0,e))}async skipTake(e,t){return new g(this.list.slice(e,t+e))}}class m{constructor(e,t={},a){this.tables=e,this.initialData=t,this.config=a,this.db=null,this.getItems=e=>this.getDb().table(e).toArray(),this.findItems=async(e,t)=>{const a=await this.getItems(e),r=await Promise.all(a.map(t));return a.filter((e,t)=>r[t])},this.getItem=async(e,t)=>{const a=await this.getItems(e),r=await Promise.all(a.map(t));return a.find((e,t)=>r[t])},this.getItemById=async(e,t)=>await this.getItem(e,e=>Promise.resolve(e.id+""==t+"")),this.deleteItems=async(e,t)=>{},this.insertItem=async(e,t)=>{const a=await this.getDb().table(e).add(t);return this.getItemById(e,a)},this.updateItem=async(e,t)=>(await this.getDb().table(e).update(t.id,t),await this.getItemById(e,t.id))}getDb(){if(null===this.db)throw new Error("Db is not initialized yet");return this.db}async initialize(){const e="function"==typeof this.initialData?await this.initialData():this.initialData,t={},a=new Set;this.tables?this.tables.forEach(e=>{const r=[];1===e.pk.length?r.push(e.pk[0]):r.push(`[${e.pk.join("+")}]`),e.indexes&&r.push(...e.indexes),t[e.name]=r.join(", "),a.add(e.name)}):Object.entries(e).forEach(([e])=>{t[e]="++id",a.add(e)});const r=void 0!==this.config?.version&&"number"==typeof this.config?.version?this.config?.version:1,s=await this.dropDbOnVersionChange(r);this.db=this.createDbInstance(),this.db.version(r).stores(t),s&&await Promise.all(Object.entries(e).map(async([e,t])=>{try{await this.getDb().table(e).bulkAdd(t)}catch(a){console.error(a)}})),a.forEach(e=>{this[`$${e}`]=function(e){const t=()=>e.db.table(e.name),a=async t=>{const a=await e.toArray(),r=await Promise.all(a.map(t??(()=>Promise.resolve(!0))));return a.filter((e,t)=>r[t])};return{native:t,insert:async a=>{const r=await e.add(a);return t().get(r)},update:async a=>(await e.update(a.id,a),t().get(a.id)),save:async t=>{const a=await e.put(t);return e.get(a)},deleteById:async t=>{await e.delete(t)},byId:async t=>{if(null==t)return null;let a=t;return"++id"===e.schema.primKey.src&&(a=Number(t)),await e.get(a)},toArray:async()=>await e.toArray(),single:async t=>await new g(await e.toArray()).single(t),singleOrDefault:async(t,a)=>await new g(await e.toArray()).singleOrDefault(t,a),where:async e=>new g(await a(e)),whereAsArray:async e=>await a(e),orderBy:async(...t)=>await new g(await e.toArray()).orderBy(...t),orderByAsArray:async(...t)=>await new g(await e.toArray()).orderByAsArray(...t),groupBy:async t=>await new g(await e.toArray()).groupBy(t),groupByAsArray:async t=>await new g(await e.toArray()).groupByAsArray(t),distinct:async t=>await new g(await e.toArray()).distinct(t),distinctAsArray:async t=>await new g(await e.toArray()).distinctAsArray(t),maxValue:async(t="id",a)=>await new g(await e.toArray()).maxValue(t,a),skip:async t=>await new g(await e.toArray()).skip(t),take:async t=>await new g(await e.toArray()).take(t),skipTake:async(t,a)=>await new g(await e.toArray()).skipTake(t,a)}}(this.getDb().table(e))})}createDbInstance(){return new r(this.config?.database??"defaultIndexDb")}async dropDbOnVersionChange(e){const t=this.createDbInstance();return!(await r.exists(t.name))||(await t.open(),t.verno!==e?(await t.delete(),!0):(t.close(),!1))}async transaction(e){if(!this.db)return;const t=this.db.tables;await this.db.transaction("rw",t,e)}}function f(e,t){if(!t)return e;const a={...e};return Object.keys(e).forEach(r=>{if(!(r in t))return;const s=e[r],i=typeof s;switch(t[r]){case"integer":switch(i){case"number":a[r]=Math.round(s);break;case"string":a[r]=parseInt(s,10);break;case"boolean":a[r]=s?1:0}break;case"float":case"real":case"double":switch(i){case"number":a[r]=s;break;case"string":a[r]=parseFloat(s);break;case"boolean":a[r]=s?1:0}break;case"boolean":switch(i){case"string":switch(s.toLowerCase()){case"true":case"yes":case"on":a[r]=!0;break;case"false":case"no":case"off":a[r]=!1}break;case"number":a[r]=!!s}}}),a}class b{constructor(e,t={},a){this.tables=e,this.initialData=t,this.config=a}getItems(e){throw new Error("Method not implemented.")}getItem(e,t){throw new Error("Method not implemented.")}getItemById(e,t){throw new Error("Method not implemented.")}deleteItems(e,t){throw new Error("Method not implemented.")}insertItem(e,t){throw new Error("Method not implemented.")}updateItem(e,t){throw new Error("Method not implemented.")}async initialize(){}}class k{constructor(e){const t=JSON.parse(sessionStorage.getItem("session-logged-in-user"));this.loggedInUser=t||e?.defaultLoggedInUser}login(e){this.loggedInUser=e,sessionStorage.setItem("session-logged-in-user",JSON.stringify(e))}logout(){this.loggedInUser=null,sessionStorage.removeItem("session-logged-in-user")}getCookieToken(){return sessionStorage.getItem("session-anonymous-token")}setCookieToken(e){sessionStorage.setItem("session-anonymous-token",e)}getLoggedInUser(){return this.loggedInUser}}class A{constructor(e){this.apiDef=e,this.backend=null}async initialize(){const e={};Object.entries(this.apiDef.operations||{}).forEach(([t,a])=>{e[t]=a.handler});const t=await async function(e){if("in-memory"===e.type)return new b(e.schemaDescriptor?.tables,e.initialData,e.config);{const t=new m(e.schemaDescriptor?.tables,e.initialData,e.config);return await t.initialize(),t}}(this.apiDef),a=new k(this.apiDef.auth),r={operations:e,initialize:this.apiDef.initialize,helpers:this.apiDef.helpers};this.backend=new y(r,t,a)}getOperations(){return this.apiDef.operations||{}}getApiUrl(){return this.apiDef.apiUrl||""}async executeOperation(r,n,o,c){if(null===this.backend)throw new Error("Interceptor not initialized");const l=this.apiDef.operations?.[r];if(!l)throw new Error(`Unknown API interceptor operation: ${r}`);let d;try{if("formData"===l.requestShape){const e=await n.formData(),t={};for(const a of e.keys()){const r=e.getAll(a);1===r.length?t[a]=r[0]:t[a]=r}d=t}else d="blob"===l.requestShape?await n.blob():await n.json()}catch(g){}const h=this.convertRequestParams({pathParams:c,queryParams:Object.fromEntries(new URL(n.url).searchParams),requestBody:d,cookies:o,requestHeaders:Object.fromEntries(n.headers.entries())||{}},l);void 0===this.apiDef.artificialDelay?await e.delay("real"):0!==this.apiDef.artificialDelay&&await e.delay(this.apiDef.artificialDelay);const u=new p,y=new w;try{const a=await this.backend.executeOperation(r,h,u,y),i=null==a,n=l.successStatusCode??(i?s.NoContent:s.Ok),o=function(...e){const a={};for(const r of e){if(!t.isObject(r))throw new TypeError("All arguments must be of type object");const e=new Headers(r);for(const[t,r]of e.entries())void 0===r||"undefined"===r?delete a[t]:a[t]=r}return new Headers(a)}(u.getCookieHeader(),y.getHeaders());if(a instanceof File){o.append("Content-type",a.type),o.append("Content-Length",a.size+"");const t=encodeURIComponent(a.name);return o.append("Content-Disposition",`attachment; filename*=UTF-8''${t}`),e.HttpResponse.arrayBuffer(await a.arrayBuffer(),{headers:o,status:n})}return i?new e.HttpResponse(null,{headers:o,status:n}):"string"==typeof a?e.HttpResponse.text(a,{headers:o,status:n}):e.HttpResponse.json(a,{headers:o,status:n})}catch(g){return console.error(g),g instanceof a.ThrowStatementError&&g.errorObject instanceof i?e.HttpResponse.json(g.errorObject.details,{headers:u.getCookieHeader(),status:g.errorObject.status}):e.HttpResponse.json({message:g?.message},{headers:u.getCookieHeader(),status:s.InternalServerError})}}convertRequestParams(e,t){return{...e,pathParams:f(e.pathParams,t.pathParamTypes),queryParams:f(e.queryParams,t.queryParamTypes)}}hasMockForRequest(e,t){return void 0!==this.getMockForRequest(e,t)}getMockForRequest(t,a){return Object.entries(this.getOperations()).find(([r,s])=>!(!e.matchRequestUrl(new URL(t,window.location.href),`${this.getApiUrl()}${s.url}`,`${window.location.href}`).matches||(a.method||"get").toLowerCase()!==s.method.toLowerCase()))}executeMockedFetch(t,a){const r=this.getMockForRequest(t,a);if(!r)throw new Error(`No mock found for request: ${t} with options: ${JSON.stringify(a)}`);const[s,i]=r,n=e.matchRequestUrl(new URL(t,window.location.href),`${this.getApiUrl()}${i.url}`,`${window.location.href}`);return this.executeOperation(s,new Request(t,a),function(){const e=document.cookie;if(""===e)return{};const t=e.split("; ");return t.reduce((e,t)=>{const[a,r]=t.split("=");return e[decodeURIComponent(a)]=decodeURIComponent(r),e},{})}(),n.params)}}exports.initMock=async e=>{const t=new A(e);return await t.initialize(),t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextBox-DZci5V1h.cjs"),t=require("./transform-BOf-UbgP.cjs"),a="DataSource",r=e.createMetadata({status:"stable",description:"`DataSource` fetches and caches data from API endpoints, versus [`APICall`](/docs/reference/components/APICall) which creates, updates or deletes data.",props:{method:{description:"Set the HTTP method.",defaultValue:"get",availableValues:t.httpMethodNames,valueType:"string"},id:{description:"Set the ID used by other components to access the retrieved data in the `value`property of a `DataSource`, or status info in the `loaded` and `error` properties.When no `id` is set, the component cannot be used programmatically.",isRequired:!0,valueType:"string"},url:{description:"Set the URL. Required unless `mockData` is provided, in which case the component returns the mock data directly without making a network request.",valueType:"string"},mockData:{description:"Provide data directly instead of fetching from a URL. When set, the component resolves immediately with this value — no network request is made. Intended for development and testing. Supports reactive expressions: when the bound value changes, the DataSource re-resolves with the updated data.",valueType:"any"},body:{description:"Set the optional request body. The object you pass is serialized as a JSON string.",valueType:"any"},rawBody:{description:"Set the request body with no serialization. Use it to send a payload that has already been serialized to a JSON string.",valueType:"string"},queryParams:{description:"Append optional key-value pairs to the URL.",valueType:"any"},headers:{description:"Set request headers. Pass an object whose keys are header names and values are header values.",valueType:"any"},credentials:{description:'Controls whether cookies and other credentials are sent with the request. Set to `"include"` to send credentials in cross-origin requests (requires `Access-Control-Allow-Credentials: true` header on the server).',availableValues:[{value:"omit",description:"Never send credentials"},{value:"same-origin",description:"Send credentials only for same-origin requests (default browser behavior)"},{value:"include",description:"Always send credentials, even for cross-origin requests"}],valueType:"string"},pollIntervalInSeconds:{description:"Set the interval for periodic data fetching. If the data changes on refresh, XMLUI will re-render components that refer directly or indirectly to the `DataSource`. If not set or set to zero, the component does not poll for data.",valueType:"number"},inProgressNotificationMessage:{description:"Set the message to display when the data fetch is in progress. If the property value is not set, no progress message is displayed.",valueType:"string"},completedNotificationMessage:{description:"Set the message to display when the data fetch completes.If the property value is not set, no completion message is displayed.",valueType:"string"},errorNotificationMessage:{description:"",valueType:"string"},resultSelector:{description:"Set an optional object key to extract a subset of the response data. If this value is not set, the entire response body is considered the result.",valueType:"string"},transformResult:{description:"Set an optional function to perform a final transformation of the response data. If this value is not set, the result is not transformed.",valueType:"any"},prevPageSelector:{description:`When using \`${a}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the previous page information from the response deserialized to an object.`,valueType:"string"},nextPageSelector:{description:`When using \`${a}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the next page information from the response deserialized to an object.`,valueType:"string"},dataType:{description:'Type of data to fetch. When set to `"text"`, the response is returned as a raw string without JSON parsing. When set to `"csv"`, the response is parsed as CSV.',availableValues:[{value:"json",description:"Parse response as JSON (default)"},{value:"text",description:"Return response as raw text"},{value:"csv",description:"Parse response as CSV"},{value:"sql",description:"Execute SQL query"}],valueType:"string"},structuralSharing:{description:"This property allows structural sharing. When turned on, `DataSource` will keep the original reference if nothing has changed in the data. If a subset has changed, `DataSource` will keep the unchanged parts and only replace the changed parts. If you do not need this behavior, set this property to `false`.",valueType:"boolean",defaultValue:!0},omitTransactionId:{description:"When set to `true`, the `x-ue-client-tx-id` request header will not be added to outgoing requests. Use this when the target API does not allow custom request headers (e.g. third-party APIs with strict CORS `Access-Control-Allow-Headers`).",valueType:"boolean",defaultValue:"false"}},events:{loaded:{description:"The component triggers this event when the fetch operation has been completed and the data is loaded. The event has two arguments. The first is the data loaded; the second indicates if the event is a result of a refetch.",signature:"loaded(data: any, isRefetch: boolean): void",parameters:{data:"The data loaded from the fetch operation.",isRefetch:"Indicates whether this is a result of a refetch operation."}},error:{description:"This event fires when a request results in an error.",signature:"error(error: Error): void",parameters:{error:"The error object that occurred during the request."}}},apis:{value:{description:"This property retrieves the data queried from the source after optional transformations.",signature:"get value(): any"},inProgress:{description:"This property indicates if the data is being fetched.",signature:"get inProgress(): boolean"},isRefetching:{description:"This property indicates if the data is being re-fetched.",signature:"get isRefetching(): boolean"},loaded:{description:"This property indicates if the data has been loaded.",signature:"get loaded(): boolean"},refetch:{description:"This method requests the re-fetch of the data.",signature:"refetch(): void"},responseHeaders:{description:"This property retrieves the HTTP response headers from the last successful fetch. Returns an object whose keys are header names and values are header values, or `undefined` if no fetch has completed yet.",signature:"get responseHeaders(): Record<string, string> | undefined"}}}),o={a:e.HtmlAMd,address:e.HtmlAddressMd,area:e.HtmlAreaMd,article:e.HtmlArticleMd,aside:e.HtmlAsideMd,audio:e.HtmlAudioMd,b:e.HtmlBMd,bdi:e.HtmlBdiMd,bdo:e.HtmlBdoMd,blockquote:e.HtmlBlockquoteMd,br:e.BrMd,button:e.HtmlButtonMd,canvas:e.HtmlCanvasMd,caption:e.HtmlCaptionMd,cite:e.HtmlCiteMd,code:e.HtmlCodeMd,col:e.HtmlColMd,colgroup:e.HtmlColgroupMd,data:e.HtmlDataMd,datalist:e.HtmlDatalistMd,dd:e.HtmlDdMd,del:e.HtmlDelMd,details:e.HtmlDetailsMd,dfn:e.HtmlDfnMd,dialog:e.HtmlDialogMd,div:e.HtmlDivMd,dl:e.HtmlDlMd,dt:e.HtmlDtMd,em:e.HtmlEMMd,embed:e.HtmlEmbedMd,fieldset:e.HtmlFieldsetMd,figcaption:e.HtmlFigcaptionMd,figure:e.HtmlFigureMd,footer:e.HtmlFooterMd,form:e.HtmlFormMd,h1:e.HtmlH1Md,h2:e.HtmlH2Md,h3:e.HtmlH3Md,h4:e.HtmlH4Md,h5:e.HtmlH5Md,h6:e.HtmlH6Md,header:e.HtmlHeaderMd,hr:e.HtmlHrMd,i:e.HtmlIMd,iframe:e.HtmlIframeMd,img:e.HtmlImgMd,input:e.HtmlInputMd,ins:e.HtmlInsMd,kbd:e.HtmlKbdMd,label:e.HtmlLabelMd,legend:e.HtmlLegendMd,li:e.HtmlLiMd,main:e.HtmlMainMd,map:e.HtmlMapMd,mark:e.HtmlMarkMd,menu:e.HtmlMenuMd,meter:e.HtmlMeterMd,nav:e.HtmlNavMd,object:e.HtmlObjectMd,ol:e.HtmlOlMd,optgroup:e.HtmlOptgroupMd,option:e.HtmlOptionMd,output:e.HtmlOutputMd,p:e.HtmlPMd,param:e.HtmlParamMd,picture:e.HtmlPictureMd,pre:e.HtmlPreMd,progress:e.HtmlProgressMd,q:e.HtmlQMd,rp:e.HtmlRpMd,rt:e.HtmlRtMd,ruby:e.HtmlRubyMd,s:e.HtmlSMd,samp:e.HtmlSampMd,section:e.HtmlSectionMd,select:e.HtmlSelectMd,small:e.HtmlSmallMd,source:e.HtmlSourceMd,span:e.HtmlSpanMd,strong:e.HtmlStrongMd,sub:e.HtmlSubMd,summary:e.HtmlSummaryMd,sup:e.HtmlSupMd,table:e.HtmlTableMd,tbody:e.HtmlTbodyMd,td:e.HtmlTdMd,template:e.HtmlTemplateMd,textarea:e.HtmlTextareaMd,tfoot:e.HtmlTfootMd,th:e.HtmlThMd,thead:e.HtmlTheadMd,time:e.HtmlTimeMd,tr:e.HtmlTrMd,track:e.HtmlTrackMd,u:e.HtmlUMd,ul:e.HtmlUlMd,var:e.HtmlVarMd,video:e.HtmlVideoMd,wbr:e.HtmlWbrMd,Accordion:e.AccordionMd,APICall:e.APICallMd,App:e.AppMd,AppHeader:e.AppHeaderMd,AppState:e.AppStateMd,AutoComplete:e.AutoCompleteMd,Avatar:e.AvatarMd,Badge:e.BadgeMd,Bookmark:e.BookmarkMd,Button:e.ButtonMd,Card:e.CardMd,ChangeListener:e.ChangeListenerMd,Checkbox:e.CheckboxMd,CODE:e.HtmlCodeMd,ColorPicker:e.ColorPickerMd,Column:e.ColumnMd,ContextMenu:e.ContextMenuMd,ContentSeparator:e.ContentSeparatorMd,DataSource:r,DatePicker:e.DatePickerMd,DateInput:e.DateInputMd,Drawer:e.DrawerMd,DropdownMenu:e.DropdownMenuMd,EM:e.HtmlEMMd,Fragment:e.FragmentMd,MenuItem:e.MenuItemMd,SubMenuItem:e.SubMenuItemMd,ExpandableItem:e.ExpandableItemMd,FileInput:e.FileInputMd,FileUploadDropZone:e.FileUploadDropZoneMd,FlowLayout:e.FlowLayoutMd,Footer:e.FooterMd,Form:e.FormMd,FormItem:e.FormItemMd,FormSegment:e.FormSegmentMd,Heading:e.HeadingMd,H1:e.H1Md,H2:e.H2Md,H3:e.H3Md,H4:e.H4Md,H5:e.H5Md,H6:e.H6Md,Icon:e.IconMd,IFrame:e.IFrameMd,Image:e.ImageMd,IncludeMarkup:e.IncludeMarkupMd,Items:e.ItemsMd,Link:e.LinkMd,List:e.ListMd,Logo:e.LogoMd,Markdown:e.MarkdownMd,MenuSeparator:e.MenuSeparatorMd,MessageListener:e.MessageListenerMd,ModalDialog:e.ModalDialogMd,NavGroup:e.NavGroupMd,NavLink:e.NavLinkMd,NavPanel:e.NavPanelMd,NoResult:e.NoResultMd,NumberBox:e.NumberBoxMd,Option:e.OptionMd,PageMetaTitle:e.PageMetaTitleMd,Page:e.PageMd,Pages:e.PagesMd,Pagination:e.PaginationMd,ProgressBar:e.ProgressBarMd,QRCode:e.QRCodeMd,Queue:e.QueueMd,RadioGroup:e.RadioGroupMd,Redirect:e.RedirectMd,ResponsiveBar:e.ResponsiveBarMd,ScrollViewer:e.ScrollViewerMd,Select:e.SelectMd,SelectionStore:e.SelectionStoreMd,Slider:e.SliderMd,Slot:e.SlotMd,SpaceFiller:e.SpaceFillerMd,Spinner:e.SpinnerMd,Splitter:e.SplitterMd,StickySection:e.StickySectionMd,Tooltip:e.TooltipMd,HSplitter:e.HSplitterMd,VSplitter:e.VSplitterMd,Stack:e.StackMd,CHStack:e.CHStackMd,CVStack:e.CVStackMd,HStack:e.HStackMd,VStack:e.VStackMd,StickyBox:e.StickyBoxMd,Switch:e.SwitchMd,Table:e.TableMd,TableOfContents:e.TableOfContentsMd,TabItem:e.TabItemMd,Tabs:e.TabsMd,Text:e.TextMd,TextArea:e.TextAreaMd,TextBox:e.TextBoxMd,TileGrid:e.TileGridMd,PasswordInput:e.PasswordMd,Theme:e.ThemeMd,TimeInput:e.TimeInputMd,Timer:e.TimerMd,ToneChangerButton:e.ToneChangerButtonMd,NavPanelCollapseButton:e.NavPanelCollapseButtonMd,ToneSwitch:e.ToneSwitchMd,Tree:e.TreeMd},d={root:e.RootThemeDefinition,xmlui:e.XmlUiThemeDefinition,xmluiGreen:e.XmlUiGreenThemeDefinition,xmluiGray:e.XmlUiGrayThemeDefinition,xmluiOrange:e.XmlUiOrangeThemeDefinition,xmluiPurple:e.XmlUiPurpleThemeDefinition,xmluiCyan:e.XmlUiCyanThemeDefinition,xmluiRed:e.XmlUiRedThemeDefinition,xmluiBlog:e.XmlUiBlogThemeDefinition,xmluiWeb:e.XmlUiWebThemeDefinition};exports.collectedComponentMetadata=o,exports.collectedThemes=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextBox-B-GWiq0J.cjs"),t=require("./transform-BOf-UbgP.cjs"),a="DataSource",r=e.createMetadata({status:"stable",description:"`DataSource` fetches and caches data from API endpoints, versus [`APICall`](/docs/reference/components/APICall) which creates, updates or deletes data.",props:{method:{description:"Set the HTTP method.",defaultValue:"get",availableValues:t.httpMethodNames,valueType:"string"},id:{description:"Set the ID used by other components to access the retrieved data in the `value`property of a `DataSource`, or status info in the `loaded` and `error` properties.When no `id` is set, the component cannot be used programmatically.",isRequired:!0,valueType:"string"},url:{description:"Set the URL. Required unless `mockData` is provided, in which case the component returns the mock data directly without making a network request.",valueType:"string"},mockData:{description:"Provide data directly instead of fetching from a URL. When set, the component resolves immediately with this value — no network request is made. Intended for development and testing. Supports reactive expressions: when the bound value changes, the DataSource re-resolves with the updated data.",valueType:"any"},body:{description:"Set the optional request body. The object you pass is serialized as a JSON string.",valueType:"any"},rawBody:{description:"Set the request body with no serialization. Use it to send a payload that has already been serialized to a JSON string.",valueType:"string"},queryParams:{description:"Append optional key-value pairs to the URL.",valueType:"any"},headers:{description:"Set request headers. Pass an object whose keys are header names and values are header values.",valueType:"any"},credentials:{description:'Controls whether cookies and other credentials are sent with the request. Set to `"include"` to send credentials in cross-origin requests (requires `Access-Control-Allow-Credentials: true` header on the server).',availableValues:[{value:"omit",description:"Never send credentials"},{value:"same-origin",description:"Send credentials only for same-origin requests (default browser behavior)"},{value:"include",description:"Always send credentials, even for cross-origin requests"}],valueType:"string"},pollIntervalInSeconds:{description:"Set the interval for periodic data fetching. If the data changes on refresh, XMLUI will re-render components that refer directly or indirectly to the `DataSource`. If not set or set to zero, the component does not poll for data.",valueType:"number"},inProgressNotificationMessage:{description:"Set the message to display when the data fetch is in progress. If the property value is not set, no progress message is displayed.",valueType:"string"},completedNotificationMessage:{description:"Set the message to display when the data fetch completes.If the property value is not set, no completion message is displayed.",valueType:"string"},errorNotificationMessage:{description:"",valueType:"string"},resultSelector:{description:"Set an optional object key to extract a subset of the response data. If this value is not set, the entire response body is considered the result.",valueType:"string"},transformResult:{description:"Set an optional function to perform a final transformation of the response data. If this value is not set, the result is not transformed.",valueType:"any"},prevPageSelector:{description:`When using \`${a}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the previous page information from the response deserialized to an object.`,valueType:"string"},nextPageSelector:{description:`When using \`${a}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the next page information from the response deserialized to an object.`,valueType:"string"},dataType:{description:'Type of data to fetch. When set to `"text"`, the response is returned as a raw string without JSON parsing. When set to `"csv"`, the response is parsed as CSV.',availableValues:[{value:"json",description:"Parse response as JSON (default)"},{value:"text",description:"Return response as raw text"},{value:"csv",description:"Parse response as CSV"},{value:"sql",description:"Execute SQL query"}],valueType:"string"},structuralSharing:{description:"This property allows structural sharing. When turned on, `DataSource` will keep the original reference if nothing has changed in the data. If a subset has changed, `DataSource` will keep the unchanged parts and only replace the changed parts. If you do not need this behavior, set this property to `false`.",valueType:"boolean",defaultValue:!0},omitTransactionId:{description:"When set to `true`, the `x-ue-client-tx-id` request header will not be added to outgoing requests. Use this when the target API does not allow custom request headers (e.g. third-party APIs with strict CORS `Access-Control-Allow-Headers`).",valueType:"boolean",defaultValue:"false"}},events:{loaded:{description:"The component triggers this event when the fetch operation has been completed and the data is loaded. The event has two arguments. The first is the data loaded; the second indicates if the event is a result of a refetch.",signature:"loaded(data: any, isRefetch: boolean): void",parameters:{data:"The data loaded from the fetch operation.",isRefetch:"Indicates whether this is a result of a refetch operation."}},error:{description:"This event fires when a request results in an error.",signature:"error(error: Error): void",parameters:{error:"The error object that occurred during the request."}}},apis:{value:{description:"This property retrieves the data queried from the source after optional transformations.",signature:"get value(): any"},inProgress:{description:"This property indicates if the data is being fetched.",signature:"get inProgress(): boolean"},isRefetching:{description:"This property indicates if the data is being re-fetched.",signature:"get isRefetching(): boolean"},loaded:{description:"This property indicates if the data has been loaded.",signature:"get loaded(): boolean"},refetch:{description:"This method requests the re-fetch of the data.",signature:"refetch(): void"},responseHeaders:{description:"This property retrieves the HTTP response headers from the last successful fetch. Returns an object whose keys are header names and values are header values, or `undefined` if no fetch has completed yet.",signature:"get responseHeaders(): Record<string, string> | undefined"}}}),o={a:e.HtmlAMd,address:e.HtmlAddressMd,area:e.HtmlAreaMd,article:e.HtmlArticleMd,aside:e.HtmlAsideMd,audio:e.HtmlAudioMd,b:e.HtmlBMd,bdi:e.HtmlBdiMd,bdo:e.HtmlBdoMd,blockquote:e.HtmlBlockquoteMd,br:e.BrMd,button:e.HtmlButtonMd,canvas:e.HtmlCanvasMd,caption:e.HtmlCaptionMd,cite:e.HtmlCiteMd,code:e.HtmlCodeMd,col:e.HtmlColMd,colgroup:e.HtmlColgroupMd,data:e.HtmlDataMd,datalist:e.HtmlDatalistMd,dd:e.HtmlDdMd,del:e.HtmlDelMd,details:e.HtmlDetailsMd,dfn:e.HtmlDfnMd,dialog:e.HtmlDialogMd,div:e.HtmlDivMd,dl:e.HtmlDlMd,dt:e.HtmlDtMd,em:e.HtmlEMMd,embed:e.HtmlEmbedMd,fieldset:e.HtmlFieldsetMd,figcaption:e.HtmlFigcaptionMd,figure:e.HtmlFigureMd,footer:e.HtmlFooterMd,form:e.HtmlFormMd,h1:e.HtmlH1Md,h2:e.HtmlH2Md,h3:e.HtmlH3Md,h4:e.HtmlH4Md,h5:e.HtmlH5Md,h6:e.HtmlH6Md,header:e.HtmlHeaderMd,hr:e.HtmlHrMd,i:e.HtmlIMd,iframe:e.HtmlIframeMd,img:e.HtmlImgMd,input:e.HtmlInputMd,ins:e.HtmlInsMd,kbd:e.HtmlKbdMd,label:e.HtmlLabelMd,legend:e.HtmlLegendMd,li:e.HtmlLiMd,main:e.HtmlMainMd,map:e.HtmlMapMd,mark:e.HtmlMarkMd,menu:e.HtmlMenuMd,meter:e.HtmlMeterMd,nav:e.HtmlNavMd,object:e.HtmlObjectMd,ol:e.HtmlOlMd,optgroup:e.HtmlOptgroupMd,option:e.HtmlOptionMd,output:e.HtmlOutputMd,p:e.HtmlPMd,param:e.HtmlParamMd,picture:e.HtmlPictureMd,pre:e.HtmlPreMd,progress:e.HtmlProgressMd,q:e.HtmlQMd,rp:e.HtmlRpMd,rt:e.HtmlRtMd,ruby:e.HtmlRubyMd,s:e.HtmlSMd,samp:e.HtmlSampMd,section:e.HtmlSectionMd,select:e.HtmlSelectMd,small:e.HtmlSmallMd,source:e.HtmlSourceMd,span:e.HtmlSpanMd,strong:e.HtmlStrongMd,sub:e.HtmlSubMd,summary:e.HtmlSummaryMd,sup:e.HtmlSupMd,table:e.HtmlTableMd,tbody:e.HtmlTbodyMd,td:e.HtmlTdMd,template:e.HtmlTemplateMd,textarea:e.HtmlTextareaMd,tfoot:e.HtmlTfootMd,th:e.HtmlThMd,thead:e.HtmlTheadMd,time:e.HtmlTimeMd,tr:e.HtmlTrMd,track:e.HtmlTrackMd,u:e.HtmlUMd,ul:e.HtmlUlMd,var:e.HtmlVarMd,video:e.HtmlVideoMd,wbr:e.HtmlWbrMd,Accordion:e.AccordionMd,APICall:e.APICallMd,App:e.AppMd,AppHeader:e.AppHeaderMd,AppState:e.AppStateMd,AutoComplete:e.AutoCompleteMd,Avatar:e.AvatarMd,Badge:e.BadgeMd,Bookmark:e.BookmarkMd,Button:e.ButtonMd,Card:e.CardMd,ChangeListener:e.ChangeListenerMd,Checkbox:e.CheckboxMd,CODE:e.HtmlCodeMd,ColorPicker:e.ColorPickerMd,Column:e.ColumnMd,ContextMenu:e.ContextMenuMd,ContentSeparator:e.ContentSeparatorMd,DataSource:r,DatePicker:e.DatePickerMd,DateInput:e.DateInputMd,Drawer:e.DrawerMd,DropdownMenu:e.DropdownMenuMd,EM:e.HtmlEMMd,Fragment:e.FragmentMd,MenuItem:e.MenuItemMd,SubMenuItem:e.SubMenuItemMd,ExpandableItem:e.ExpandableItemMd,FileInput:e.FileInputMd,FileUploadDropZone:e.FileUploadDropZoneMd,FlowLayout:e.FlowLayoutMd,Footer:e.FooterMd,Form:e.FormMd,FormItem:e.FormItemMd,FormSegment:e.FormSegmentMd,Heading:e.HeadingMd,H1:e.H1Md,H2:e.H2Md,H3:e.H3Md,H4:e.H4Md,H5:e.H5Md,H6:e.H6Md,Icon:e.IconMd,IFrame:e.IFrameMd,Image:e.ImageMd,IncludeMarkup:e.IncludeMarkupMd,Items:e.ItemsMd,Link:e.LinkMd,List:e.ListMd,Logo:e.LogoMd,Markdown:e.MarkdownMd,MenuSeparator:e.MenuSeparatorMd,MessageListener:e.MessageListenerMd,ModalDialog:e.ModalDialogMd,NavGroup:e.NavGroupMd,NavLink:e.NavLinkMd,NavPanel:e.NavPanelMd,NoResult:e.NoResultMd,NumberBox:e.NumberBoxMd,Option:e.OptionMd,PageMetaTitle:e.PageMetaTitleMd,Page:e.PageMd,Pages:e.PagesMd,Pagination:e.PaginationMd,ProgressBar:e.ProgressBarMd,QRCode:e.QRCodeMd,Queue:e.QueueMd,RadioGroup:e.RadioGroupMd,Redirect:e.RedirectMd,ResponsiveBar:e.ResponsiveBarMd,ScrollViewer:e.ScrollViewerMd,Select:e.SelectMd,SelectionStore:e.SelectionStoreMd,Slider:e.SliderMd,Slot:e.SlotMd,SpaceFiller:e.SpaceFillerMd,Spinner:e.SpinnerMd,Splitter:e.SplitterMd,StickySection:e.StickySectionMd,Tooltip:e.TooltipMd,HSplitter:e.HSplitterMd,VSplitter:e.VSplitterMd,Stack:e.StackMd,CHStack:e.CHStackMd,CVStack:e.CVStackMd,HStack:e.HStackMd,VStack:e.VStackMd,StickyBox:e.StickyBoxMd,Switch:e.SwitchMd,Table:e.TableMd,TableOfContents:e.TableOfContentsMd,TabItem:e.TabItemMd,Tabs:e.TabsMd,Text:e.TextMd,TextArea:e.TextAreaMd,TextBox:e.TextBoxMd,TileGrid:e.TileGridMd,PasswordInput:e.PasswordMd,Theme:e.ThemeMd,TimeInput:e.TimeInputMd,Timer:e.TimerMd,ToneChangerButton:e.ToneChangerButtonMd,NavPanelCollapseButton:e.NavPanelCollapseButtonMd,ToneSwitch:e.ToneSwitchMd,Tree:e.TreeMd},d={root:e.RootThemeDefinition,xmlui:e.XmlUiThemeDefinition,xmluiGreen:e.XmlUiGreenThemeDefinition,xmluiGray:e.XmlUiGrayThemeDefinition,xmluiOrange:e.XmlUiOrangeThemeDefinition,xmluiPurple:e.XmlUiPurpleThemeDefinition,xmluiCyan:e.XmlUiCyanThemeDefinition,xmluiRed:e.XmlUiRedThemeDefinition,xmluiBlog:e.XmlUiBlogThemeDefinition,xmluiWeb:e.XmlUiWebThemeDefinition};exports.collectedComponentMetadata=o,exports.collectedThemes=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createMetadata, T as TreeMd, a as ToneSwitchMd, N as NavPanelCollapseButtonMd, b as ToneChangerButtonMd, d as TimerMd, e as TimeInputMd, f as ThemeMd, P as PasswordMd, g as TileGridMd, h as TextBoxMd, i as TextAreaMd, j as TextMd, k as TabsMd, l as TabItemMd, m as TableOfContentsMd, n as TableMd, S as SwitchMd, o as StickyBoxMd, V as VStackMd, H as HStackMd, C as CVStackMd, p as CHStackMd, q as StackMd, r as VSplitterMd, s as HSplitterMd, t as TooltipMd, u as StickySectionMd, v as SplitterMd, w as SpinnerMd, x as SpaceFillerMd, y as SlotMd, z as SliderMd, A as SelectionStoreMd, B as SelectMd, D as ScrollViewerMd, R as ResponsiveBarMd, E as RedirectMd, F as RadioGroupMd, Q as QueueMd, G as QRCodeMd, I as ProgressBarMd, J as PaginationMd, K as PagesMd, L as PageMd, M as PageMetaTitleMd, O as OptionMd, U as NumberBoxMd, W as NoResultMd, X as NavPanelMd, Y as NavLinkMd, Z as NavGroupMd, _ as ModalDialogMd, $ as MessageListenerMd, a0 as MenuSeparatorMd, a1 as MarkdownMd, a2 as LogoMd, a3 as ListMd, a4 as LinkMd, a5 as ItemsMd, a6 as IncludeMarkupMd, a7 as ImageMd, a8 as IFrameMd, a9 as IconMd, aa as H6Md, ab as H5Md, ac as H4Md, ad as H3Md, ae as H2Md, af as H1Md, ag as HeadingMd, ah as FormSegmentMd, ai as FormItemMd, aj as FormMd, ak as FooterMd, al as FlowLayoutMd, am as FileUploadDropZoneMd, an as FileInputMd, ao as ExpandableItemMd, ap as SubMenuItemMd, aq as MenuItemMd, ar as FragmentMd, as as HtmlEMMd, at as DropdownMenuMd, au as DrawerMd, av as DateInputMd, aw as DatePickerMd, ax as ContentSeparatorMd, ay as ContextMenuMd, az as ColumnMd, aA as ColorPickerMd, aB as HtmlCodeMd, aC as CheckboxMd, aD as ChangeListenerMd, aE as CardMd, aF as ButtonMd, aG as BookmarkMd, aH as BadgeMd, aI as AvatarMd, aJ as AutoCompleteMd, aK as AppStateMd, aL as AppHeaderMd, aM as AppMd, aN as APICallMd, aO as AccordionMd, aP as HtmlWbrMd, aQ as HtmlVideoMd, aR as HtmlVarMd, aS as HtmlUlMd, aT as HtmlUMd, aU as HtmlTrackMd, aV as HtmlTrMd, aW as HtmlTimeMd, aX as HtmlTheadMd, aY as HtmlThMd, aZ as HtmlTfootMd, a_ as HtmlTextareaMd, a$ as HtmlTemplateMd, b0 as HtmlTdMd, b1 as HtmlTbodyMd, b2 as HtmlTableMd, b3 as HtmlSupMd, b4 as HtmlSummaryMd, b5 as HtmlSubMd, b6 as HtmlStrongMd, b7 as HtmlSpanMd, b8 as HtmlSourceMd, b9 as HtmlSmallMd, ba as HtmlSelectMd, bb as HtmlSectionMd, bc as HtmlSampMd, bd as HtmlSMd, be as HtmlRubyMd, bf as HtmlRtMd, bg as HtmlRpMd, bh as HtmlQMd, bi as HtmlProgressMd, bj as HtmlPreMd, bk as HtmlPictureMd, bl as HtmlParamMd, bm as HtmlPMd, bn as HtmlOutputMd, bo as HtmlOptionMd, bp as HtmlOptgroupMd, bq as HtmlOlMd, br as HtmlObjectMd, bs as HtmlNavMd, bt as HtmlMeterMd, bu as HtmlMenuMd, bv as HtmlMarkMd, bw as HtmlMapMd, bx as HtmlMainMd, by as HtmlLiMd, bz as HtmlLegendMd, bA as HtmlLabelMd, bB as HtmlKbdMd, bC as HtmlInsMd, bD as HtmlInputMd, bE as HtmlImgMd, bF as HtmlIframeMd, bG as HtmlIMd, bH as HtmlHrMd, bI as HtmlHeaderMd, bJ as HtmlH6Md, bK as HtmlH5Md, bL as HtmlH4Md, bM as HtmlH3Md, bN as HtmlH2Md, bO as HtmlH1Md, bP as HtmlFormMd, bQ as HtmlFooterMd, bR as HtmlFigureMd, bS as HtmlFigcaptionMd, bT as HtmlFieldsetMd, bU as HtmlEmbedMd, bV as HtmlDtMd, bW as HtmlDlMd, bX as HtmlDivMd, bY as HtmlDialogMd, bZ as HtmlDfnMd, b_ as HtmlDetailsMd, b$ as HtmlDelMd, c0 as HtmlDdMd, c1 as HtmlDatalistMd, c2 as HtmlDataMd, c3 as HtmlColgroupMd, c4 as HtmlColMd, c5 as HtmlCiteMd, c6 as HtmlCaptionMd, c7 as HtmlCanvasMd, c8 as HtmlButtonMd, c9 as BrMd, ca as HtmlBlockquoteMd, cb as HtmlBdoMd, cc as HtmlBdiMd, cd as HtmlBMd, ce as HtmlAudioMd, cf as HtmlAsideMd, cg as HtmlArticleMd, ch as HtmlAreaMd, ci as HtmlAddressMd, cj as HtmlAMd, ck as XmlUiWebThemeDefinition, cl as XmlUiBlogThemeDefinition, cm as XmlUiRedThemeDefinition, cn as XmlUiCyanThemeDefinition, co as XmlUiPurpleThemeDefinition, cp as XmlUiOrangeThemeDefinition, cq as XmlUiGrayThemeDefinition, cr as XmlUiGreenThemeDefinition, cs as XmlUiThemeDefinition, ct as RootThemeDefinition } from "./TextBox-
|
|
1
|
+
import { c as createMetadata, T as TreeMd, a as ToneSwitchMd, N as NavPanelCollapseButtonMd, b as ToneChangerButtonMd, d as TimerMd, e as TimeInputMd, f as ThemeMd, P as PasswordMd, g as TileGridMd, h as TextBoxMd, i as TextAreaMd, j as TextMd, k as TabsMd, l as TabItemMd, m as TableOfContentsMd, n as TableMd, S as SwitchMd, o as StickyBoxMd, V as VStackMd, H as HStackMd, C as CVStackMd, p as CHStackMd, q as StackMd, r as VSplitterMd, s as HSplitterMd, t as TooltipMd, u as StickySectionMd, v as SplitterMd, w as SpinnerMd, x as SpaceFillerMd, y as SlotMd, z as SliderMd, A as SelectionStoreMd, B as SelectMd, D as ScrollViewerMd, R as ResponsiveBarMd, E as RedirectMd, F as RadioGroupMd, Q as QueueMd, G as QRCodeMd, I as ProgressBarMd, J as PaginationMd, K as PagesMd, L as PageMd, M as PageMetaTitleMd, O as OptionMd, U as NumberBoxMd, W as NoResultMd, X as NavPanelMd, Y as NavLinkMd, Z as NavGroupMd, _ as ModalDialogMd, $ as MessageListenerMd, a0 as MenuSeparatorMd, a1 as MarkdownMd, a2 as LogoMd, a3 as ListMd, a4 as LinkMd, a5 as ItemsMd, a6 as IncludeMarkupMd, a7 as ImageMd, a8 as IFrameMd, a9 as IconMd, aa as H6Md, ab as H5Md, ac as H4Md, ad as H3Md, ae as H2Md, af as H1Md, ag as HeadingMd, ah as FormSegmentMd, ai as FormItemMd, aj as FormMd, ak as FooterMd, al as FlowLayoutMd, am as FileUploadDropZoneMd, an as FileInputMd, ao as ExpandableItemMd, ap as SubMenuItemMd, aq as MenuItemMd, ar as FragmentMd, as as HtmlEMMd, at as DropdownMenuMd, au as DrawerMd, av as DateInputMd, aw as DatePickerMd, ax as ContentSeparatorMd, ay as ContextMenuMd, az as ColumnMd, aA as ColorPickerMd, aB as HtmlCodeMd, aC as CheckboxMd, aD as ChangeListenerMd, aE as CardMd, aF as ButtonMd, aG as BookmarkMd, aH as BadgeMd, aI as AvatarMd, aJ as AutoCompleteMd, aK as AppStateMd, aL as AppHeaderMd, aM as AppMd, aN as APICallMd, aO as AccordionMd, aP as HtmlWbrMd, aQ as HtmlVideoMd, aR as HtmlVarMd, aS as HtmlUlMd, aT as HtmlUMd, aU as HtmlTrackMd, aV as HtmlTrMd, aW as HtmlTimeMd, aX as HtmlTheadMd, aY as HtmlThMd, aZ as HtmlTfootMd, a_ as HtmlTextareaMd, a$ as HtmlTemplateMd, b0 as HtmlTdMd, b1 as HtmlTbodyMd, b2 as HtmlTableMd, b3 as HtmlSupMd, b4 as HtmlSummaryMd, b5 as HtmlSubMd, b6 as HtmlStrongMd, b7 as HtmlSpanMd, b8 as HtmlSourceMd, b9 as HtmlSmallMd, ba as HtmlSelectMd, bb as HtmlSectionMd, bc as HtmlSampMd, bd as HtmlSMd, be as HtmlRubyMd, bf as HtmlRtMd, bg as HtmlRpMd, bh as HtmlQMd, bi as HtmlProgressMd, bj as HtmlPreMd, bk as HtmlPictureMd, bl as HtmlParamMd, bm as HtmlPMd, bn as HtmlOutputMd, bo as HtmlOptionMd, bp as HtmlOptgroupMd, bq as HtmlOlMd, br as HtmlObjectMd, bs as HtmlNavMd, bt as HtmlMeterMd, bu as HtmlMenuMd, bv as HtmlMarkMd, bw as HtmlMapMd, bx as HtmlMainMd, by as HtmlLiMd, bz as HtmlLegendMd, bA as HtmlLabelMd, bB as HtmlKbdMd, bC as HtmlInsMd, bD as HtmlInputMd, bE as HtmlImgMd, bF as HtmlIframeMd, bG as HtmlIMd, bH as HtmlHrMd, bI as HtmlHeaderMd, bJ as HtmlH6Md, bK as HtmlH5Md, bL as HtmlH4Md, bM as HtmlH3Md, bN as HtmlH2Md, bO as HtmlH1Md, bP as HtmlFormMd, bQ as HtmlFooterMd, bR as HtmlFigureMd, bS as HtmlFigcaptionMd, bT as HtmlFieldsetMd, bU as HtmlEmbedMd, bV as HtmlDtMd, bW as HtmlDlMd, bX as HtmlDivMd, bY as HtmlDialogMd, bZ as HtmlDfnMd, b_ as HtmlDetailsMd, b$ as HtmlDelMd, c0 as HtmlDdMd, c1 as HtmlDatalistMd, c2 as HtmlDataMd, c3 as HtmlColgroupMd, c4 as HtmlColMd, c5 as HtmlCiteMd, c6 as HtmlCaptionMd, c7 as HtmlCanvasMd, c8 as HtmlButtonMd, c9 as BrMd, ca as HtmlBlockquoteMd, cb as HtmlBdoMd, cc as HtmlBdiMd, cd as HtmlBMd, ce as HtmlAudioMd, cf as HtmlAsideMd, cg as HtmlArticleMd, ch as HtmlAreaMd, ci as HtmlAddressMd, cj as HtmlAMd, ck as XmlUiWebThemeDefinition, cl as XmlUiBlogThemeDefinition, cm as XmlUiRedThemeDefinition, cn as XmlUiCyanThemeDefinition, co as XmlUiPurpleThemeDefinition, cp as XmlUiOrangeThemeDefinition, cq as XmlUiGrayThemeDefinition, cr as XmlUiGreenThemeDefinition, cs as XmlUiThemeDefinition, ct as RootThemeDefinition } from "./TextBox-DHSTy0g0.js";
|
|
2
2
|
import { h as httpMethodNames } from "./transform-fGDqiHwH.js";
|
|
3
3
|
const COMP = "DataSource";
|
|
4
4
|
const DataSourceMd = createMetadata({
|