xmlui 0.10.22 → 0.10.24
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-BaUZuvtZ.mjs → index-DoIVkz5T.mjs} +648 -220
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-BVLjWJxZ.mjs → initMock-CSGEd746.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 +3 -2
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{collectedComponentMetadata-MZbCI1Ki.mjs → collectedComponentMetadata-B3Hs8_cV.mjs} +644 -216
- package/dist/metadata/{initMock-BkgwDrCY.mjs → initMock-DQrGwkya.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/CodeBlock/highlight-code.js +5 -32
- package/dist/scripts/src/components/ComponentProvider.js +2 -1
- 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/Markdown/MarkdownNative.js +4 -3
- package/dist/scripts/src/components/Markdown/utils.js +4 -3
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +13 -0
- package/dist/scripts/src/components/NestedApp/utils.js +6 -5
- package/dist/scripts/src/components/Pages/Pages.js +11 -0
- package/dist/scripts/src/components/Select/Select.spec.js +49 -0
- 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 +1 -1
- 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/scripts/src/components-core/utils/base64-utils.js +122 -0
- package/dist/scripts/src/components-core/utils/date-utils.js +12 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +3 -2
- 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-DoIVkz5T.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
|
@@ -262,9 +262,10 @@ declare interface Behavior {
|
|
|
262
262
|
* A function that attaches the behavior to the component's React node.
|
|
263
263
|
* @param context The renderer context of the component.
|
|
264
264
|
* @param node The React node to attach.
|
|
265
|
+
* @param metadata The metadata of the component.
|
|
265
266
|
* @returns The attached React node.
|
|
266
267
|
*/
|
|
267
|
-
attach: (context: RendererContext<any>, node: ReactNode) => ReactNode;
|
|
268
|
+
attach: (context: RendererContext<any>, node: ReactNode, metadata?: ComponentMetadata) => ReactNode;
|
|
268
269
|
}
|
|
269
270
|
|
|
270
271
|
declare type BINARY_EXPRESSION = typeof T_BINARY_EXPRESSION;
|
|
@@ -478,7 +479,7 @@ export declare type ComponentMetadata<TProps extends Record<string, ComponentPro
|
|
|
478
479
|
nonVisual?: boolean;
|
|
479
480
|
childrenAsTemplate?: string;
|
|
480
481
|
opaque?: boolean;
|
|
481
|
-
themeVars?:
|
|
482
|
+
themeVars?: Record<string, string>;
|
|
482
483
|
themeVarDescriptions?: Record<string, string>;
|
|
483
484
|
defaultThemeVars?: DefaultThemeVars;
|
|
484
485
|
toneSpecificThemeVars?: Record<string, Record<string, string>>;
|
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-DoIVkz5T.mjs";
|
|
2
2
|
import { X as X2 } from "./xmlui-serializer-uCYa8_tZ.mjs";
|
|
3
3
|
export {
|
|
4
4
|
ac as ApiInterceptorProvider,
|