xmlui 0.11.10 → 0.11.11
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-DfOJVz5h.js → index-BNm0RhXG.js} +40 -8
- package/dist/lib/{initMock-DZD5kuk6.js → initMock-DK8FL64P.js} +1 -1
- package/dist/lib/xmlui.js +1 -1
- package/dist/metadata/{collectedComponentMetadata-BzigLDo6.js → collectedComponentMetadata-DvV8yJ4N.js} +44 -9
- package/dist/metadata/{initMock-JW5A3SpD.js → initMock-Bndg9J7D.js} +1 -1
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.umd.js +4 -4
- package/package.json +1 -1
|
@@ -18009,6 +18009,8 @@ const CompoundComponent = forwardRef(
|
|
|
18009
18009
|
appContext,
|
|
18010
18010
|
state,
|
|
18011
18011
|
lookupAction,
|
|
18012
|
+
contextVars,
|
|
18013
|
+
// Extract contextVars to prevent it from being passed to DOM elements
|
|
18012
18014
|
...restProps
|
|
18013
18015
|
}, forwardedRef) => {
|
|
18014
18016
|
const resolvedPropsInner = useMemo(() => {
|
|
@@ -24406,7 +24408,7 @@ function ApiInterceptorProvider({
|
|
|
24406
24408
|
return;
|
|
24407
24409
|
}
|
|
24408
24410
|
void (async () => {
|
|
24409
|
-
const { initMock } = await import("./initMock-
|
|
24411
|
+
const { initMock } = await import("./initMock-DK8FL64P.js");
|
|
24410
24412
|
const apiInstance2 = await initMock(interceptor);
|
|
24411
24413
|
setApiInstance(apiInstance2);
|
|
24412
24414
|
setInitialized(true);
|
|
@@ -24423,7 +24425,7 @@ function ApiInterceptorProvider({
|
|
|
24423
24425
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
24424
24426
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
24425
24427
|
useWorker ? import("./apiInterceptorWorker-dwrAyq6l.js") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
24426
|
-
import("./initMock-
|
|
24428
|
+
import("./initMock-DK8FL64P.js")
|
|
24427
24429
|
]);
|
|
24428
24430
|
if (interceptor || forceInitialize) {
|
|
24429
24431
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -24460,7 +24462,7 @@ function ApiInterceptorProvider({
|
|
|
24460
24462
|
void (async () => {
|
|
24461
24463
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
24462
24464
|
import("./apiInterceptorWorker-dwrAyq6l.js"),
|
|
24463
|
-
import("./initMock-
|
|
24465
|
+
import("./initMock-DK8FL64P.js")
|
|
24464
24466
|
]);
|
|
24465
24467
|
const apiInstance2 = await initMock(interceptor);
|
|
24466
24468
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -31971,6 +31973,36 @@ const XmlUiRedThemeDefinition = {
|
|
|
31971
31973
|
extends: "xmlui",
|
|
31972
31974
|
themeVars: { ...redThemeColors }
|
|
31973
31975
|
};
|
|
31976
|
+
const XmlUiDocsThemeDefinition = {
|
|
31977
|
+
id: "xmlui-docs",
|
|
31978
|
+
extends: "xmlui",
|
|
31979
|
+
themeVars: {}
|
|
31980
|
+
};
|
|
31981
|
+
const XmlUiBlogThemeDefinition = {
|
|
31982
|
+
id: "xmlui-blog",
|
|
31983
|
+
extends: "xmlui",
|
|
31984
|
+
themeVars: {}
|
|
31985
|
+
};
|
|
31986
|
+
const XmlUiWebThemeDefinition = {
|
|
31987
|
+
id: "xmlui-web",
|
|
31988
|
+
extends: "xmlui",
|
|
31989
|
+
themeVars: {
|
|
31990
|
+
// --- Fundamental colors & typography
|
|
31991
|
+
"maxWidth-content-AppHeader": "1280px",
|
|
31992
|
+
backgroundColor: "$color-surface-0",
|
|
31993
|
+
"color-primary": "#3367CC",
|
|
31994
|
+
"color-surface": "#1e2734",
|
|
31995
|
+
"fontWeight-Text": "400",
|
|
31996
|
+
"fontWeight-bold": "700",
|
|
31997
|
+
"textColor-primary": "$color-surface-800",
|
|
31998
|
+
"textColor-NavLink--active": "$color-primary",
|
|
31999
|
+
// --- App layout
|
|
32000
|
+
"maxWidth-content-App": "800px",
|
|
32001
|
+
// --- Headings
|
|
32002
|
+
"fontSize-H2": "32px",
|
|
32003
|
+
"fontSize-H3": "$space-6"
|
|
32004
|
+
}
|
|
32005
|
+
};
|
|
31974
32006
|
const ThemeToneKeys = ["light", "dark"];
|
|
31975
32007
|
function useCompiledTheme(activeTheme, activeTone, themes = EMPTY_ARRAY, resources = EMPTY_OBJECT, resourceMap = EMPTY_OBJECT) {
|
|
31976
32008
|
const componentRegistry = useComponentRegistry();
|
|
@@ -32135,7 +32167,10 @@ const builtInThemes = [
|
|
|
32135
32167
|
XmlUiOrangeThemeDefinition,
|
|
32136
32168
|
XmlUiPurpleThemeDefinition,
|
|
32137
32169
|
XmlUiCyanThemeDefinition,
|
|
32138
|
-
XmlUiRedThemeDefinition
|
|
32170
|
+
XmlUiRedThemeDefinition,
|
|
32171
|
+
XmlUiDocsThemeDefinition,
|
|
32172
|
+
XmlUiBlogThemeDefinition,
|
|
32173
|
+
XmlUiWebThemeDefinition
|
|
32139
32174
|
/*SolidThemeDefinition,*/
|
|
32140
32175
|
];
|
|
32141
32176
|
function ThemeProvider({
|
|
@@ -46302,7 +46337,7 @@ function IconProvider({ children }) {
|
|
|
46302
46337
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
46303
46338
|
] });
|
|
46304
46339
|
}
|
|
46305
|
-
const version = "0.11.
|
|
46340
|
+
const version = "0.11.11";
|
|
46306
46341
|
const miscellaneousUtils = {
|
|
46307
46342
|
capitalize,
|
|
46308
46343
|
pluralize: pluralize$1,
|
|
@@ -49623,9 +49658,6 @@ const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
|
49623
49658
|
(url) => {
|
|
49624
49659
|
const extractedUrl = valueExtractor(url);
|
|
49625
49660
|
if (typeof extractedUrl !== "string" || extractedUrl.trim() === "") {
|
|
49626
|
-
console.warn(
|
|
49627
|
-
`Component '${safeNode.type}': the extracted resource URL is not a valid string: value ${extractedUrl}, type ${typeof extractedUrl}`
|
|
49628
|
-
);
|
|
49629
49661
|
return void 0;
|
|
49630
49662
|
}
|
|
49631
49663
|
return getResourceUrl(extractedUrl);
|
|
@@ -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-BNm0RhXG.js";
|
|
4
4
|
import Dexie from "dexie";
|
|
5
5
|
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
6
6
|
HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
|
package/dist/lib/xmlui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aa, Z, al, a1, ax, av, _, $, ai, ak, aw, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, at, au, ah, ad, 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, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-
|
|
1
|
+
import { aa, Z, al, a1, ax, av, _, $, ai, ak, aw, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, at, au, ah, ad, 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, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-BNm0RhXG.js";
|
|
2
2
|
import { e as e2, x as x2 } from "./xmlui-parser-CW8YmGjO.js";
|
|
3
3
|
import { X as X2 } from "./xmlui-serializer-CeCcgdVR.js";
|
|
4
4
|
export {
|
|
@@ -6812,6 +6812,36 @@ const XmlUiRedThemeDefinition = {
|
|
|
6812
6812
|
extends: "xmlui",
|
|
6813
6813
|
themeVars: { ...redThemeColors }
|
|
6814
6814
|
};
|
|
6815
|
+
const XmlUiDocsThemeDefinition = {
|
|
6816
|
+
id: "xmlui-docs",
|
|
6817
|
+
extends: "xmlui",
|
|
6818
|
+
themeVars: {}
|
|
6819
|
+
};
|
|
6820
|
+
const XmlUiBlogThemeDefinition = {
|
|
6821
|
+
id: "xmlui-blog",
|
|
6822
|
+
extends: "xmlui",
|
|
6823
|
+
themeVars: {}
|
|
6824
|
+
};
|
|
6825
|
+
const XmlUiWebThemeDefinition = {
|
|
6826
|
+
id: "xmlui-web",
|
|
6827
|
+
extends: "xmlui",
|
|
6828
|
+
themeVars: {
|
|
6829
|
+
// --- Fundamental colors & typography
|
|
6830
|
+
"maxWidth-content-AppHeader": "1280px",
|
|
6831
|
+
backgroundColor: "$color-surface-0",
|
|
6832
|
+
"color-primary": "#3367CC",
|
|
6833
|
+
"color-surface": "#1e2734",
|
|
6834
|
+
"fontWeight-Text": "400",
|
|
6835
|
+
"fontWeight-bold": "700",
|
|
6836
|
+
"textColor-primary": "$color-surface-800",
|
|
6837
|
+
"textColor-NavLink--active": "$color-primary",
|
|
6838
|
+
// --- App layout
|
|
6839
|
+
"maxWidth-content-App": "800px",
|
|
6840
|
+
// --- Headings
|
|
6841
|
+
"fontSize-H2": "32px",
|
|
6842
|
+
"fontSize-H3": "$space-6"
|
|
6843
|
+
}
|
|
6844
|
+
};
|
|
6815
6845
|
const ThemeToneKeys = ["light", "dark"];
|
|
6816
6846
|
function useCompiledTheme(activeTheme, activeTone, themes = EMPTY_ARRAY, resources = EMPTY_OBJECT, resourceMap = EMPTY_OBJECT) {
|
|
6817
6847
|
const componentRegistry = useComponentRegistry();
|
|
@@ -6976,7 +7006,10 @@ const builtInThemes = [
|
|
|
6976
7006
|
XmlUiOrangeThemeDefinition,
|
|
6977
7007
|
XmlUiPurpleThemeDefinition,
|
|
6978
7008
|
XmlUiCyanThemeDefinition,
|
|
6979
|
-
XmlUiRedThemeDefinition
|
|
7009
|
+
XmlUiRedThemeDefinition,
|
|
7010
|
+
XmlUiDocsThemeDefinition,
|
|
7011
|
+
XmlUiBlogThemeDefinition,
|
|
7012
|
+
XmlUiWebThemeDefinition
|
|
6980
7013
|
/*SolidThemeDefinition,*/
|
|
6981
7014
|
];
|
|
6982
7015
|
function ThemeProvider({
|
|
@@ -31732,6 +31765,8 @@ const CompoundComponent = forwardRef(
|
|
|
31732
31765
|
appContext,
|
|
31733
31766
|
state,
|
|
31734
31767
|
lookupAction,
|
|
31768
|
+
contextVars,
|
|
31769
|
+
// Extract contextVars to prevent it from being passed to DOM elements
|
|
31735
31770
|
...restProps
|
|
31736
31771
|
}, forwardedRef) => {
|
|
31737
31772
|
const resolvedPropsInner = useMemo(() => {
|
|
@@ -47912,7 +47947,7 @@ function IconProvider({ children }) {
|
|
|
47912
47947
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
47913
47948
|
] });
|
|
47914
47949
|
}
|
|
47915
|
-
const version = "0.11.
|
|
47950
|
+
const version = "0.11.11";
|
|
47916
47951
|
const miscellaneousUtils = {
|
|
47917
47952
|
capitalize,
|
|
47918
47953
|
pluralize: pluralize$1,
|
|
@@ -51366,9 +51401,6 @@ const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
|
51366
51401
|
(url) => {
|
|
51367
51402
|
const extractedUrl = valueExtractor(url);
|
|
51368
51403
|
if (typeof extractedUrl !== "string" || extractedUrl.trim() === "") {
|
|
51369
|
-
console.warn(
|
|
51370
|
-
`Component '${safeNode.type}': the extracted resource URL is not a valid string: value ${extractedUrl}, type ${typeof extractedUrl}`
|
|
51371
|
-
);
|
|
51372
51404
|
return void 0;
|
|
51373
51405
|
}
|
|
51374
51406
|
return getResourceUrl(extractedUrl);
|
|
@@ -55564,7 +55596,7 @@ function ApiInterceptorProvider({
|
|
|
55564
55596
|
return;
|
|
55565
55597
|
}
|
|
55566
55598
|
void (async () => {
|
|
55567
|
-
const { initMock } = await import("./initMock-
|
|
55599
|
+
const { initMock } = await import("./initMock-Bndg9J7D.js");
|
|
55568
55600
|
const apiInstance2 = await initMock(interceptor);
|
|
55569
55601
|
setApiInstance(apiInstance2);
|
|
55570
55602
|
setInitialized(true);
|
|
@@ -55581,7 +55613,7 @@ function ApiInterceptorProvider({
|
|
|
55581
55613
|
if (define_process_env_default.VITE_MOCK_ENABLED) {
|
|
55582
55614
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
55583
55615
|
useWorker ? import("./apiInterceptorWorker-Wgm2_zjg.js") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
55584
|
-
import("./initMock-
|
|
55616
|
+
import("./initMock-Bndg9J7D.js")
|
|
55585
55617
|
]);
|
|
55586
55618
|
if (interceptor || forceInitialize) {
|
|
55587
55619
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -55618,7 +55650,7 @@ function ApiInterceptorProvider({
|
|
|
55618
55650
|
void (async () => {
|
|
55619
55651
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
55620
55652
|
import("./apiInterceptorWorker-Wgm2_zjg.js"),
|
|
55621
|
-
import("./initMock-
|
|
55653
|
+
import("./initMock-Bndg9J7D.js")
|
|
55622
55654
|
]);
|
|
55623
55655
|
const apiInstance2 = await initMock(interceptor);
|
|
55624
55656
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -58577,7 +58609,10 @@ const collectedThemes = {
|
|
|
58577
58609
|
xmluiOrange: XmlUiOrangeThemeDefinition,
|
|
58578
58610
|
xmluiPurple: XmlUiPurpleThemeDefinition,
|
|
58579
58611
|
xmluiCyan: XmlUiCyanThemeDefinition,
|
|
58580
|
-
xmluiRed: XmlUiRedThemeDefinition
|
|
58612
|
+
xmluiRed: XmlUiRedThemeDefinition,
|
|
58613
|
+
xmluiDocs: XmlUiDocsThemeDefinition,
|
|
58614
|
+
xmluiBlog: XmlUiBlogThemeDefinition,
|
|
58615
|
+
xmluiWeb: XmlUiWebThemeDefinition
|
|
58581
58616
|
};
|
|
58582
58617
|
export {
|
|
58583
58618
|
ThrowStatementError as T,
|
|
@@ -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 "./collectedComponentMetadata-
|
|
3
|
+
import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./collectedComponentMetadata-DvV8yJ4N.js";
|
|
4
4
|
import Dexie from "dexie";
|
|
5
5
|
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
6
6
|
HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
|