xmlui 0.10.21 → 0.10.23
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-BiS4wEuu.mjs → index-CuPvcayg.mjs} +1198 -828
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-CB_cMi6U.mjs → initMock-BBdNO6FB.mjs} +1 -1
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{metadata-utils-BTIt1_wE.mjs → metadata-utils-Dx-2qZBh.mjs} +5 -4
- package/dist/lib/{server-common-DYZtsdM7.mjs → server-common--BHVvP1o.mjs} +1 -1
- package/dist/lib/xmlui-parser.d.ts +1 -1
- package/dist/lib/xmlui.d.ts +34 -1
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{collectedComponentMetadata-MFUg6aSX.mjs → collectedComponentMetadata-Cp3Ljk8F.mjs} +1192 -822
- package/dist/metadata/{initMock-Dw9wrVkQ.mjs → initMock-Dki8247s.mjs} +1 -1
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +3 -3
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/AppHeader/AppHeader.js +6 -1
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +7 -4
- package/dist/scripts/src/components/Button/Button.js +7 -0
- package/dist/scripts/src/components/ComponentProvider.js +31 -2
- package/dist/scripts/src/components/Form/Form.js +3 -0
- package/dist/scripts/src/components/Form/FormNative.js +12 -2
- package/dist/scripts/src/components/Heading/Heading.js +5 -4
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +13 -0
- package/dist/scripts/src/components/Pages/Pages.js +11 -0
- package/dist/scripts/src/components/Tabs/TabContext.js +26 -17
- package/dist/scripts/src/components/Tabs/TabItemNative.js +7 -2
- package/dist/scripts/src/components/Tabs/Tabs.js +22 -3
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +362 -0
- package/dist/scripts/src/components/Tabs/TabsNative.js +28 -4
- package/dist/scripts/src/components/Text/Text.js +4 -4
- package/dist/scripts/src/components-core/StandaloneApp.js +1 -1
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +118 -7
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +3 -4
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +4 -4
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +38 -0
- package/dist/standalone/xmlui-standalone.es.d.ts +36 -1
- package/dist/standalone/xmlui-standalone.umd.js +36 -36
- package/package.json +1 -1
- package/dist/scripts/src/components-core/behaviors/BehaviorContext.js +0 -50
|
@@ -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-
|
|
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-CuPvcayg.mjs";
|
|
4
4
|
import Dexie from "dexie";
|
|
5
5
|
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
6
6
|
HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
|
|
@@ -473,10 +473,11 @@ export {
|
|
|
473
473
|
iconPositionNames as n,
|
|
474
474
|
orientationOptionMd as o,
|
|
475
475
|
buttonVariantNames as p,
|
|
476
|
-
|
|
477
|
-
|
|
476
|
+
buttonVariantValues as q,
|
|
477
|
+
httpMethodNames as r,
|
|
478
478
|
sizeMd as s,
|
|
479
479
|
triggerPositionNames as t,
|
|
480
|
-
|
|
481
|
-
validationStatusMd as v
|
|
480
|
+
orientationOptionValues as u,
|
|
481
|
+
validationStatusMd as v,
|
|
482
|
+
viewportSizeNames as w
|
|
482
483
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompletionItemKind as CompletionItemKind$1, MarkupKind as MarkupKind$1, TextDocuments as TextDocuments$1, TextDocumentSyncKind, DidChangeConfigurationNotification } from "vscode-languageserver";
|
|
2
2
|
import { TextDocument as TextDocument$1 } from "vscode-languageserver-textdocument";
|
|
3
3
|
import { S as SyntaxKind, B as findTokenAtPos, h as createXmlUiParser } from "./transform-Tooy42EB.mjs";
|
|
4
|
-
import { a as addOnPrefix, M as MetadataProvider } from "./metadata-utils-
|
|
4
|
+
import { a as addOnPrefix, M as MetadataProvider } from "./metadata-utils-Dx-2qZBh.mjs";
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6
6
|
function getAugmentedNamespace(n) {
|
|
7
7
|
if (n.__esModule) return n;
|
|
@@ -351,7 +351,7 @@ declare type ComponentMetadata<TProps extends Record<string, ComponentPropertyMe
|
|
|
351
351
|
nonVisual?: boolean;
|
|
352
352
|
childrenAsTemplate?: string;
|
|
353
353
|
opaque?: boolean;
|
|
354
|
-
themeVars?:
|
|
354
|
+
themeVars?: Record<string, string>;
|
|
355
355
|
themeVarDescriptions?: Record<string, string>;
|
|
356
356
|
defaultThemeVars?: DefaultThemeVars;
|
|
357
357
|
toneSpecificThemeVars?: Record<string, Record<string, string>>;
|
package/dist/lib/xmlui.d.ts
CHANGED
|
@@ -241,6 +241,33 @@ 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
|
+
* @param metadata The metadata of the component.
|
|
266
|
+
* @returns The attached React node.
|
|
267
|
+
*/
|
|
268
|
+
attach: (context: RendererContext<any>, node: ReactNode, metadata?: ComponentMetadata) => ReactNode;
|
|
269
|
+
}
|
|
270
|
+
|
|
244
271
|
declare type BINARY_EXPRESSION = typeof T_BINARY_EXPRESSION;
|
|
245
272
|
|
|
246
273
|
declare interface BinaryExpression extends ExpressionBase {
|
|
@@ -452,7 +479,7 @@ export declare type ComponentMetadata<TProps extends Record<string, ComponentPro
|
|
|
452
479
|
nonVisual?: boolean;
|
|
453
480
|
childrenAsTemplate?: string;
|
|
454
481
|
opaque?: boolean;
|
|
455
|
-
themeVars?:
|
|
482
|
+
themeVars?: Record<string, string>;
|
|
456
483
|
themeVarDescriptions?: Record<string, string>;
|
|
457
484
|
defaultThemeVars?: DefaultThemeVars;
|
|
458
485
|
toneSpecificThemeVars?: Record<string, Record<string, string>>;
|
|
@@ -552,6 +579,10 @@ declare type ContributesDefinition = {
|
|
|
552
579
|
* Themes that come with the app.
|
|
553
580
|
*/
|
|
554
581
|
themes?: ThemeDefinition[];
|
|
582
|
+
/**
|
|
583
|
+
* Custom behaviors that come with the app.
|
|
584
|
+
*/
|
|
585
|
+
behaviors?: Behavior[];
|
|
555
586
|
};
|
|
556
587
|
|
|
557
588
|
/**
|
|
@@ -1182,6 +1213,8 @@ declare type Props_3 = {
|
|
|
1182
1213
|
id?: string;
|
|
1183
1214
|
activeTab?: number;
|
|
1184
1215
|
orientation?: "horizontal" | "vertical";
|
|
1216
|
+
tabAlignment?: "start" | "end" | "center" | "stretch";
|
|
1217
|
+
accordionView?: boolean;
|
|
1185
1218
|
headerRenderer?: (item: {
|
|
1186
1219
|
id?: string;
|
|
1187
1220
|
index: number;
|
package/dist/lib/xmlui.mjs
CHANGED
|
@@ -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-
|
|
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-CuPvcayg.mjs";
|
|
2
2
|
import { X as X2 } from "./xmlui-serializer-uCYa8_tZ.mjs";
|
|
3
3
|
export {
|
|
4
4
|
ac as ApiInterceptorProvider,
|