xmlui 0.10.20 → 0.10.22

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 (32) hide show
  1. package/dist/lib/{index-Ckhnrf1F.mjs → index-BaUZuvtZ.mjs} +1472 -1289
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-qnCFw6Zc.mjs → initMock-BVLjWJxZ.mjs} +1 -1
  4. package/dist/lib/xmlui.d.ts +32 -0
  5. package/dist/lib/xmlui.mjs +1 -1
  6. package/dist/metadata/{collectedComponentMetadata-Dg7P-zOz.mjs → collectedComponentMetadata-MZbCI1Ki.mjs} +1463 -1281
  7. package/dist/metadata/{initMock-ZyyFNOpL.mjs → initMock-BkgwDrCY.mjs} +1 -1
  8. package/dist/metadata/style.css +1 -1
  9. package/dist/metadata/xmlui-metadata.mjs +1 -1
  10. package/dist/metadata/xmlui-metadata.umd.js +3 -3
  11. package/dist/scripts/package.json +3 -6
  12. package/dist/scripts/src/components/App/App.js +4 -4
  13. package/dist/scripts/src/components/App/AppNative.js +1 -1
  14. package/dist/scripts/src/components/ComponentProvider.js +30 -2
  15. package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -1
  16. package/dist/scripts/src/components/Form/FormNative.js +0 -1
  17. package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -2
  18. package/dist/scripts/src/components/Tabs/TabContext.js +26 -17
  19. package/dist/scripts/src/components/Tabs/TabItemNative.js +7 -2
  20. package/dist/scripts/src/components/Tabs/Tabs.js +22 -3
  21. package/dist/scripts/src/components/Tabs/Tabs.spec.js +362 -0
  22. package/dist/scripts/src/components/Tabs/TabsNative.js +28 -4
  23. package/dist/scripts/src/components/Text/Text.js +5 -1
  24. package/dist/scripts/src/components/Text/Text.spec.js +317 -0
  25. package/dist/scripts/src/components/Text/TextNative.js +112 -1
  26. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -1
  27. package/dist/scripts/src/components/Timer/TimerNative.js +0 -1
  28. package/dist/scripts/src/components/Tree/TreeNative.js +7 -12
  29. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +2 -3
  30. package/dist/standalone/xmlui-standalone.es.d.ts +34 -0
  31. package/dist/standalone/xmlui-standalone.umd.js +35 -35
  32. package/package.json +3 -6
@@ -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 { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-Ckhnrf1F.mjs";
3
+ import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-BaUZuvtZ.mjs";
4
4
  import Dexie from "dexie";
5
5
  var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
6
6
  HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
@@ -241,6 +241,32 @@ declare type AuthDefinition = {
241
241
  defaultLoggedInUser?: any;
242
242
  };
243
243
 
244
+ /**
245
+ * Defines the shape of a component behavior that can wrap a component with
246
+ * additional functionality.
247
+ */
248
+ declare interface Behavior {
249
+ /**
250
+ * The name of the behavior (e.g., "tooltip", "animation").
251
+ */
252
+ name: string;
253
+ /**
254
+ * A function that determines if the behavior should be applied based on the
255
+ * component's context and props.
256
+ * @param node The component definition.
257
+ * @param metadata The metadata of the component.
258
+ * @returns True if the behavior can be attached, otherwise false.
259
+ */
260
+ canAttach: (node: ComponentDef, metadata: ComponentMetadata) => boolean;
261
+ /**
262
+ * A function that attaches the behavior to the component's React node.
263
+ * @param context The renderer context of the component.
264
+ * @param node The React node to attach.
265
+ * @returns The attached React node.
266
+ */
267
+ attach: (context: RendererContext<any>, node: ReactNode) => ReactNode;
268
+ }
269
+
244
270
  declare type BINARY_EXPRESSION = typeof T_BINARY_EXPRESSION;
245
271
 
246
272
  declare interface BinaryExpression extends ExpressionBase {
@@ -552,6 +578,10 @@ declare type ContributesDefinition = {
552
578
  * Themes that come with the app.
553
579
  */
554
580
  themes?: ThemeDefinition[];
581
+ /**
582
+ * Custom behaviors that come with the app.
583
+ */
584
+ behaviors?: Behavior[];
555
585
  };
556
586
 
557
587
  /**
@@ -1182,6 +1212,8 @@ declare type Props_3 = {
1182
1212
  id?: string;
1183
1213
  activeTab?: number;
1184
1214
  orientation?: "horizontal" | "vertical";
1215
+ tabAlignment?: "start" | "end" | "center" | "stretch";
1216
+ accordionView?: boolean;
1185
1217
  headerRenderer?: (item: {
1186
1218
  id?: string;
1187
1219
  index: number;
@@ -1,4 +1,4 @@
1
- import { ac, Z, an, a1, _, $, ak, am, ai, ad, a2, a0, S, at, b, aq, ar, a4, a5, ag, ah, au, al, aj, af, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, aa, a3, W, X, a7, ap, a6, a8, as, a9, ao, Y, ae, ab } from "./index-Ckhnrf1F.mjs";
1
+ import { ac, Z, an, a1, _, $, ak, am, ai, ad, a2, a0, S, at, b, aq, ar, a4, a5, ag, ah, au, al, aj, af, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, aa, a3, W, X, a7, ap, a6, a8, as, a9, ao, Y, ae, ab } from "./index-BaUZuvtZ.mjs";
2
2
  import { X as X2 } from "./xmlui-serializer-uCYa8_tZ.mjs";
3
3
  export {
4
4
  ac as ApiInterceptorProvider,