xmlui 0.9.64 → 0.9.66

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.
Files changed (27) hide show
  1. package/dist/lib/{apiInterceptorWorker--1siIib9.mjs → apiInterceptorWorker-DSCdWyUK.mjs} +1 -1
  2. package/dist/lib/{index-DQYBJR26.mjs → index-oT3hI265.mjs} +10553 -10420
  3. package/dist/lib/index.css +1 -1
  4. package/dist/lib/xmlui-parser.d.ts +56 -0
  5. package/dist/lib/xmlui.d.ts +64 -3
  6. package/dist/lib/xmlui.mjs +1 -1
  7. package/dist/metadata/{apiInterceptorWorker-C1cI935F.mjs → apiInterceptorWorker-DZEO3I9-.mjs} +1 -1
  8. package/dist/metadata/{collectedComponentMetadata-CEyXwr66.mjs → collectedComponentMetadata-BrcObxPh.mjs} +10979 -10846
  9. package/dist/metadata/style.css +1 -1
  10. package/dist/metadata/xmlui-metadata.mjs +1 -1
  11. package/dist/metadata/xmlui-metadata.umd.js +98 -98
  12. package/dist/scripts/package.json +1 -1
  13. package/dist/scripts/src/components/Avatar/AvatarNative.js +16 -11
  14. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +83 -5
  15. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +67 -16
  16. package/dist/scripts/src/components/CodeBlock/CodeBlock.js +2 -0
  17. package/dist/scripts/src/components/Logo/Logo.js +6 -1
  18. package/dist/scripts/src/components/Logo/LogoNative.js +3 -2
  19. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +9 -11
  20. package/dist/scripts/src/components/Pages/PagesNative.js +2 -2
  21. package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +6 -4
  22. package/dist/scripts/src/components/RadioGroup/RadioItem.js +5 -2
  23. package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +11 -3
  24. package/dist/scripts/src/components/Toggle/Toggle.js +1 -0
  25. package/dist/standalone/xmlui-standalone.es.d.ts +66 -3
  26. package/dist/standalone/xmlui-standalone.umd.js +206 -206
  27. package/package.json +1 -1
@@ -248,17 +248,73 @@ declare interface ComponentDef<TMd extends ComponentMetadata = ComponentMetadata
248
248
  contextVars?: Record<keyof TMd["contextVars"], string>;
249
249
  }
250
250
 
251
+ /**
252
+ * This interface represents the core properties of a component definition
253
+ * (independent of component metadata).
254
+ */
251
255
  declare interface ComponentDefCore {
256
+ /**
257
+ * The type discriminator field of the component; it defines the unique ID of the component type.
258
+ */
252
259
  type: string;
260
+ /**
261
+ * Unique identifier of a component-like object
262
+ */
253
263
  uid?: string;
264
+ /**
265
+ * An optional identifier we use for e2e tests; it does not influence the rendering of a component.
266
+ */
254
267
  testId?: string;
268
+ /**
269
+ * Though components manage their state internally, the app logic may require user
270
+ * state management. Components may have user *variables*, which the UI logic uses to
271
+ * manage the application state. This property holds the variables (name and value
272
+ * pairs) associated with this component definition.
273
+ */
255
274
  vars?: Record<string, any>;
275
+ /**
276
+ * Each component may have child components to constitute a hierarchy of components.
277
+ * This property holds the definition of these nested children.
278
+ */
256
279
  children?: ComponentDef[];
280
+ /**
281
+ * Components may have slots that can be filled with other components. This property
282
+ * holds the contents of the slots.
283
+ */
257
284
  slots?: Record<string, ComponentDef[]>;
285
+ /**
286
+ * This property is evaluated to a Boolean value during run time. When this value is
287
+ * `true`, the component with its children chain is rendered; otherwise, the entire
288
+ * component hierarchy is omitted from the rendered tree.
289
+ */
258
290
  when?: string | boolean;
291
+ /**
292
+ * Some components work with data obtained asynchronously. Fetching this data requires
293
+ * some state management handling the complexity (including error handling) of data
294
+ * access. A *loader* is responsible for managing this logic. This property holds the
295
+ * loaders associated with this component definition.
296
+ */
259
297
  loaders?: ComponentDef[];
298
+ /**
299
+ * Components may have functions that are used to perform some logic. This property
300
+ * holds the functions (name and function body) associated with this component
301
+ * definition.
302
+ */
260
303
  functions?: Record<string, any>;
304
+ /**
305
+ * Components managing state through variables or loaders are wrapped with containers
306
+ * responsible for this job. Just as components, containers form a hierarchy. While
307
+ * working with this hierarchy, parent components may flow state values (key and value
308
+ * pairs) to their child containers. This property holds the name of state values to
309
+ * flow down to the direct child containers.
310
+ */
261
311
  uses?: string[];
312
+ /**
313
+ * Arbitrary debug information that can be attached to a component definition.
314
+ * Current usage:
315
+ * - `debug: { source: { start: number, end: number } }` The start and end
316
+ * positions of the source belonging to the particular component definition.
317
+ */
262
318
  debug?: Record<string, any>;
263
319
  }
264
320
 
@@ -325,17 +325,73 @@ export declare interface ComponentDef<TMd extends ComponentMetadata = ComponentM
325
325
  contextVars?: Record<keyof TMd["contextVars"], string>;
326
326
  }
327
327
 
328
+ /**
329
+ * This interface represents the core properties of a component definition
330
+ * (independent of component metadata).
331
+ */
328
332
  declare interface ComponentDefCore {
333
+ /**
334
+ * The type discriminator field of the component; it defines the unique ID of the component type.
335
+ */
329
336
  type: string;
337
+ /**
338
+ * Unique identifier of a component-like object
339
+ */
330
340
  uid?: string;
341
+ /**
342
+ * An optional identifier we use for e2e tests; it does not influence the rendering of a component.
343
+ */
331
344
  testId?: string;
345
+ /**
346
+ * Though components manage their state internally, the app logic may require user
347
+ * state management. Components may have user *variables*, which the UI logic uses to
348
+ * manage the application state. This property holds the variables (name and value
349
+ * pairs) associated with this component definition.
350
+ */
332
351
  vars?: Record<string, any>;
352
+ /**
353
+ * Each component may have child components to constitute a hierarchy of components.
354
+ * This property holds the definition of these nested children.
355
+ */
333
356
  children?: ComponentDef[];
357
+ /**
358
+ * Components may have slots that can be filled with other components. This property
359
+ * holds the contents of the slots.
360
+ */
334
361
  slots?: Record<string, ComponentDef[]>;
362
+ /**
363
+ * This property is evaluated to a Boolean value during run time. When this value is
364
+ * `true`, the component with its children chain is rendered; otherwise, the entire
365
+ * component hierarchy is omitted from the rendered tree.
366
+ */
335
367
  when?: string | boolean;
368
+ /**
369
+ * Some components work with data obtained asynchronously. Fetching this data requires
370
+ * some state management handling the complexity (including error handling) of data
371
+ * access. A *loader* is responsible for managing this logic. This property holds the
372
+ * loaders associated with this component definition.
373
+ */
336
374
  loaders?: ComponentDef[];
375
+ /**
376
+ * Components may have functions that are used to perform some logic. This property
377
+ * holds the functions (name and function body) associated with this component
378
+ * definition.
379
+ */
337
380
  functions?: Record<string, any>;
381
+ /**
382
+ * Components managing state through variables or loaders are wrapped with containers
383
+ * responsible for this job. Just as components, containers form a hierarchy. While
384
+ * working with this hierarchy, parent components may flow state values (key and value
385
+ * pairs) to their child containers. This property holds the name of state values to
386
+ * flow down to the direct child containers.
387
+ */
338
388
  uses?: string[];
389
+ /**
390
+ * Arbitrary debug information that can be attached to a component definition.
391
+ * Current usage:
392
+ * - `debug: { source: { start: number, end: number } }` The start and end
393
+ * positions of the source belonging to the particular component definition.
394
+ */
339
395
  debug?: Record<string, any>;
340
396
  }
341
397
 
@@ -805,9 +861,13 @@ declare type LoggedInUserDto = {
805
861
  permissions: Record<string, string>;
806
862
  };
807
863
 
808
- export declare const Logo: ForwardRefExoticComponent< {
809
- style?: CSSProperties;
810
- } & RefAttributes<HTMLImageElement>>;
864
+ export declare const Logo: ForwardRefExoticComponent<LogoProps & RefAttributes<HTMLImageElement>>;
865
+
866
+ declare type LogoProps = {
867
+ alt?: string;
868
+ style?: CSSProperties;
869
+ inline?: boolean;
870
+ };
811
871
 
812
872
  declare type LookupActionOptions = {
813
873
  signError?: boolean;
@@ -1181,6 +1241,7 @@ declare type StandaloneAppProps = {
1181
1241
  debugEnabled?: boolean;
1182
1242
  runtime?: any;
1183
1243
  extensionManager?: StandaloneExtensionManager;
1244
+ waitForApiInterceptor?: boolean;
1184
1245
  };
1185
1246
 
1186
1247
  /**
@@ -1,4 +1,4 @@
1
- import { y as e, A as t, B as o, E as r, I as n, L as p, H as u, N as i, z as l, i as C, h as d, S as m, b as x, k as T, l as c, D as S, F as A, G as g, V as h, C as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, K as V, n as f, q as H, M as N, v as R, J as D, u as U, x as X } from "./index-DQYBJR26.mjs";
1
+ import { y as e, A as t, B as o, E as r, I as n, L as p, H as u, N as i, z as l, i as C, h as d, S as m, b as x, k as T, l as c, D as S, F as A, G as g, V as h, C as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, K as V, n as f, q as H, M as N, v as R, J as D, u as U, x as X } from "./index-oT3hI265.mjs";
2
2
  import { X as q } from "./xmlui-serializer-jEIItW8v.mjs";
3
3
  export {
4
4
  e as ApiInterceptorProvider,
@@ -7,7 +7,7 @@ var F = (e, a, o) => Go(e, typeof a != "symbol" ? a + "" : a, o), ka = (e, a, o)
7
7
  var ge = (e, a, o) => (ka(e, a, "read from private field"), o ? o.call(e) : a.get(e)), _e = (e, a, o) => a.has(e) ? Wa("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, o), fa = (e, a, o, t) => (ka(e, a, "write to private field"), t ? t.call(e, o) : a.set(e, o), o), ze = (e, a, o) => (ka(e, a, "access private method"), o);
8
8
  import { delay as Ho, HttpResponse as Be, http as Vo } from "msw";
9
9
  import { isArray as co, isObject as lo, mapValues as Jo } from "lodash-es";
10
- import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-CEyXwr66.mjs";
10
+ import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-BrcObxPh.mjs";
11
11
  import Ga from "dexie";
12
12
  var at = /(%?)(%([sdijo]))/g;
13
13
  function ot(e, a) {