xmlui 0.11.9 → 0.11.10
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-Dh81qoMM.js → index-DfOJVz5h.js} +60 -33
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-GfhLAym0.js → initMock-DZD5kuk6.js} +1 -1
- package/dist/lib/xmlui.d.ts +2 -1
- package/dist/lib/xmlui.js +1 -1
- package/dist/metadata/{collectedComponentMetadata-DfzPdHnk.js → collectedComponentMetadata-BzigLDo6.js} +60 -33
- package/dist/metadata/{initMock-BGnNBTSg.js → initMock-JW5A3SpD.js} +1 -1
- package/dist/metadata/xmlui-metadata.css +1 -1
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +1 -1
- package/dist/standalone/xmlui-standalone.es.d.ts +4 -2
- package/dist/standalone/xmlui-standalone.umd.js +13 -13
- package/package.json +1 -1
|
@@ -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-DfOJVz5h.js";
|
|
4
4
|
import Dexie from "dexie";
|
|
5
5
|
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
6
6
|
HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
|
package/dist/lib/xmlui.d.ts
CHANGED
|
@@ -559,7 +559,8 @@ declare type ContainerState = Record<string | symbol, any>;
|
|
|
559
559
|
export declare const ContentSeparator: ForwardRefExoticComponent<ContentSeparatorProps & RefAttributes<HTMLDivElement>>;
|
|
560
560
|
|
|
561
561
|
declare type ContentSeparatorProps = {
|
|
562
|
-
|
|
562
|
+
thickness?: number | string;
|
|
563
|
+
length?: number | string;
|
|
563
564
|
orientation?: string;
|
|
564
565
|
style?: CSSProperties;
|
|
565
566
|
className?: string;
|
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-DfOJVz5h.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 {
|
|
@@ -5879,6 +5879,8 @@ const RootThemeDefinition = {
|
|
|
5879
5879
|
"boxShadow-spread-2-xl": "-6px -4px 40px 18px rgba(0, 0, 0, 0.1)",
|
|
5880
5880
|
// --- The default maximum content width
|
|
5881
5881
|
"maxWidth-content": "1280px",
|
|
5882
|
+
// --- The default maximum content column width
|
|
5883
|
+
"maxWidth-columnContent": "800px",
|
|
5882
5884
|
// --- Background colors
|
|
5883
5885
|
backgroundColor: "$color-surface-subtle",
|
|
5884
5886
|
"backgroundColor-overlay": "rgba(0, 0, 0, 0.2)",
|
|
@@ -7456,23 +7458,24 @@ const themeComponentRenderer = createComponentRenderer(
|
|
|
7456
7458
|
}
|
|
7457
7459
|
);
|
|
7458
7460
|
const themeVars$X = `'{"width-navPanel-App": "var(--xmlui-width-navPanel-App)", "backgroundColor-navPanel-App": "var(--xmlui-backgroundColor-navPanel-App)", "boxShadow-header-App": "var(--xmlui-boxShadow-header-App)", "boxShadow-navPanel-App": "var(--xmlui-boxShadow-navPanel-App)", "backgroundColor-content-App": "var(--xmlui-backgroundColor-content-App)", "borderLeft-content-App": "var(--xmlui-borderLeft-content-App)", "maxWidth-content-App": "var(--xmlui-maxWidth-content-App)", "maxWidth-App": "var(--xmlui-maxWidth-App)", "backgroundColor-AppHeader": "var(--xmlui-backgroundColor-AppHeader)", "borderBottom-AppHeader": "var(--xmlui-borderBottom-AppHeader)", "scroll-padding-block-Pages": "var(--xmlui-scroll-padding-block-Pages)"}'`;
|
|
7459
|
-
const wrapper$k = "
|
|
7460
|
-
const verticalFullHeader = "
|
|
7461
|
-
const navPanelWrapper = "
|
|
7462
|
-
const vertical$7 = "
|
|
7463
|
-
const contentWrapper$2 = "
|
|
7464
|
-
const noScrollbarGutters = "
|
|
7465
|
-
const PagesWrapper = "
|
|
7466
|
-
const footerWrapper = "
|
|
7467
|
-
const sticky = "
|
|
7468
|
-
const nonSticky = "
|
|
7469
|
-
const horizontal$6 = "
|
|
7470
|
-
const headerWrapper$1 = "
|
|
7471
|
-
const desktop = "
|
|
7472
|
-
const PagesWrapperInner = "
|
|
7473
|
-
const
|
|
7474
|
-
const
|
|
7475
|
-
const
|
|
7461
|
+
const wrapper$k = "_wrapper_188ri_15";
|
|
7462
|
+
const verticalFullHeader = "_verticalFullHeader_188ri_15";
|
|
7463
|
+
const navPanelWrapper = "_navPanelWrapper_188ri_15";
|
|
7464
|
+
const vertical$7 = "_vertical_188ri_15";
|
|
7465
|
+
const contentWrapper$2 = "_contentWrapper_188ri_33";
|
|
7466
|
+
const noScrollbarGutters = "_noScrollbarGutters_188ri_39";
|
|
7467
|
+
const PagesWrapper = "_PagesWrapper_188ri_46";
|
|
7468
|
+
const footerWrapper = "_footerWrapper_188ri_50";
|
|
7469
|
+
const sticky = "_sticky_188ri_53";
|
|
7470
|
+
const nonSticky = "_nonSticky_188ri_57";
|
|
7471
|
+
const horizontal$6 = "_horizontal_188ri_60";
|
|
7472
|
+
const headerWrapper$1 = "_headerWrapper_188ri_86";
|
|
7473
|
+
const desktop = "_desktop_188ri_92";
|
|
7474
|
+
const PagesWrapperInner = "_PagesWrapperInner_188ri_150";
|
|
7475
|
+
const noFooter = "_noFooter_188ri_208";
|
|
7476
|
+
const scrollWholePage = "_scrollWholePage_188ri_234";
|
|
7477
|
+
const content$8 = "_content_188ri_33";
|
|
7478
|
+
const withDefaultContentPadding = "_withDefaultContentPadding_188ri_348";
|
|
7476
7479
|
const styles$1b = {
|
|
7477
7480
|
themeVars: themeVars$X,
|
|
7478
7481
|
wrapper: wrapper$k,
|
|
@@ -7489,6 +7492,7 @@ const styles$1b = {
|
|
|
7489
7492
|
headerWrapper: headerWrapper$1,
|
|
7490
7493
|
desktop,
|
|
7491
7494
|
PagesWrapperInner,
|
|
7495
|
+
noFooter,
|
|
7492
7496
|
scrollWholePage,
|
|
7493
7497
|
content: content$8,
|
|
7494
7498
|
withDefaultContentPadding
|
|
@@ -15348,6 +15352,7 @@ function App({
|
|
|
15348
15352
|
{
|
|
15349
15353
|
[styles$1b.scrollWholePage]: scrollWholePage2,
|
|
15350
15354
|
[styles$1b.noScrollbarGutters]: noScrollbarGutters2,
|
|
15355
|
+
[styles$1b.noFooter]: !footerSticky,
|
|
15351
15356
|
"media-large": mediaSize.largeScreen,
|
|
15352
15357
|
"media-small": mediaSize.smallScreen,
|
|
15353
15358
|
"media-desktop": mediaSize.desktop,
|
|
@@ -15909,6 +15914,7 @@ function AppNode({ node, extractValue, renderChild: renderChild2, className, loo
|
|
|
15909
15914
|
...appProps,
|
|
15910
15915
|
header: renderedHeader,
|
|
15911
15916
|
footer: renderedFooter,
|
|
15917
|
+
footerSticky,
|
|
15912
15918
|
navPanel: renderedNavPanel,
|
|
15913
15919
|
navPanelDef: NavPanel3,
|
|
15914
15920
|
logoContentDef: node.props.logoTemplate,
|
|
@@ -17576,10 +17582,10 @@ const checkboxComponentRenderer = createComponentRenderer(
|
|
|
17576
17582
|
);
|
|
17577
17583
|
}
|
|
17578
17584
|
);
|
|
17579
|
-
const themeVars$K = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "
|
|
17580
|
-
const separator = "
|
|
17581
|
-
const horizontal$3 = "
|
|
17582
|
-
const vertical$3 = "
|
|
17585
|
+
const themeVars$K = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "thickness-ContentSeparator": "var(--xmlui-thickness-ContentSeparator)", "length-ContentSeparator": "var(--xmlui-length-ContentSeparator)", "marginTop-ContentSeparator": "var(--xmlui-marginTop-ContentSeparator)", "marginBottom-ContentSeparator": "var(--xmlui-marginBottom-ContentSeparator)", "marginVertical-ContentSeparator": "var(--xmlui-marginVertical-ContentSeparator)", "marginLeft-ContentSeparator": "var(--xmlui-marginLeft-ContentSeparator)", "marginRight-ContentSeparator": "var(--xmlui-marginRight-ContentSeparator)", "marginHorizontal-ContentSeparator": "var(--xmlui-marginHorizontal-ContentSeparator)", "paddingTop-ContentSeparator": "var(--xmlui-paddingTop-ContentSeparator)", "paddingBottom-ContentSeparator": "var(--xmlui-paddingBottom-ContentSeparator)", "paddingVertical-ContentSeparator": "var(--xmlui-paddingVertical-ContentSeparator)", "paddingLeft-ContentSeparator": "var(--xmlui-paddingLeft-ContentSeparator)", "paddingRight-ContentSeparator": "var(--xmlui-paddingRight-ContentSeparator)", "paddingHorizontal-ContentSeparator": "var(--xmlui-paddingHorizontal-ContentSeparator)"}'`;
|
|
17586
|
+
const separator = "_separator_1r9lf_14";
|
|
17587
|
+
const horizontal$3 = "_horizontal_1r9lf_27";
|
|
17588
|
+
const vertical$3 = "_vertical_1r9lf_31";
|
|
17583
17589
|
const styles$$ = {
|
|
17584
17590
|
themeVars: themeVars$K,
|
|
17585
17591
|
separator,
|
|
@@ -17590,7 +17596,22 @@ const defaultProps$W = {
|
|
|
17590
17596
|
orientation: "horizontal"
|
|
17591
17597
|
};
|
|
17592
17598
|
const ContentSeparator = forwardRef(
|
|
17593
|
-
({ orientation = defaultProps$W.orientation,
|
|
17599
|
+
({ orientation = defaultProps$W.orientation, thickness, length, style: style2, className, ...rest }, ref) => {
|
|
17600
|
+
const inlineStyles = {};
|
|
17601
|
+
if (thickness !== void 0) {
|
|
17602
|
+
if (orientation === "horizontal") {
|
|
17603
|
+
inlineStyles.height = thickness;
|
|
17604
|
+
} else {
|
|
17605
|
+
inlineStyles.width = thickness;
|
|
17606
|
+
}
|
|
17607
|
+
}
|
|
17608
|
+
if (length !== void 0) {
|
|
17609
|
+
if (orientation === "horizontal") {
|
|
17610
|
+
inlineStyles.width = length;
|
|
17611
|
+
} else {
|
|
17612
|
+
inlineStyles.height = length;
|
|
17613
|
+
}
|
|
17614
|
+
}
|
|
17594
17615
|
return /* @__PURE__ */ jsx(
|
|
17595
17616
|
"div",
|
|
17596
17617
|
{
|
|
@@ -17605,8 +17626,7 @@ const ContentSeparator = forwardRef(
|
|
|
17605
17626
|
className
|
|
17606
17627
|
),
|
|
17607
17628
|
style: {
|
|
17608
|
-
|
|
17609
|
-
width: orientation === "horizontal" ? "100%" : size,
|
|
17629
|
+
...inlineStyles,
|
|
17610
17630
|
...style2
|
|
17611
17631
|
}
|
|
17612
17632
|
}
|
|
@@ -17618,8 +17638,12 @@ const ContentSeparatorMd = createMetadata({
|
|
|
17618
17638
|
status: "stable",
|
|
17619
17639
|
description: "`ContentSeparator` creates visual dividers between content sections using horizontal or vertical lines. It's essential for improving readability by breaking up dense content, separating list items, or creating clear boundaries between different UI sections.",
|
|
17620
17640
|
props: {
|
|
17621
|
-
|
|
17622
|
-
description: "This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical). If not defined, the component uses the
|
|
17641
|
+
thickness: {
|
|
17642
|
+
description: "This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical). If not defined, the component uses the theme variable `thickness-ContentSeparator` (default: 1px).",
|
|
17643
|
+
valueType: "any"
|
|
17644
|
+
},
|
|
17645
|
+
length: {
|
|
17646
|
+
description: "This property defines the component's width (if the `orientation` is horizontal) or the height (if the `orientation` is vertical). If not defined, the component uses the theme variable `length-ContentSeparator` (default: 100%).",
|
|
17623
17647
|
valueType: "any"
|
|
17624
17648
|
},
|
|
17625
17649
|
orientation: {
|
|
@@ -17632,7 +17656,8 @@ const ContentSeparatorMd = createMetadata({
|
|
|
17632
17656
|
themeVars: parseScssVar(styles$$.themeVars),
|
|
17633
17657
|
defaultThemeVars: {
|
|
17634
17658
|
[`backgroundColor-${COMP$1k}`]: "$color-surface-200",
|
|
17635
|
-
[`
|
|
17659
|
+
[`thickness-${COMP$1k}`]: "1px",
|
|
17660
|
+
[`length-${COMP$1k}`]: "100%",
|
|
17636
17661
|
[`marginVertical-${COMP$1k}`]: "0",
|
|
17637
17662
|
[`marginHorizontal-${COMP$1k}`]: "0",
|
|
17638
17663
|
[`paddingVertical-${COMP$1k}`]: "0",
|
|
@@ -17653,7 +17678,8 @@ const contentSeparatorComponentRenderer = createComponentRenderer(
|
|
|
17653
17678
|
ContentSeparator,
|
|
17654
17679
|
{
|
|
17655
17680
|
orientation: extractValue(node.props.orientation),
|
|
17656
|
-
|
|
17681
|
+
thickness: extractValue.asSize(node.props.thickness),
|
|
17682
|
+
length: extractValue.asSize(node.props.length),
|
|
17657
17683
|
className
|
|
17658
17684
|
}
|
|
17659
17685
|
);
|
|
@@ -25608,7 +25634,7 @@ const NavLinkMd = createMetadata({
|
|
|
25608
25634
|
[`textColor-${COMP$19}`]: "$textColor-primary",
|
|
25609
25635
|
[`textColor-${COMP$19}--active`]: "$color-primary-500",
|
|
25610
25636
|
[`fontWeight-${COMP$19}--active`]: "$fontWeight-bold",
|
|
25611
|
-
[`fontWeight-${COMP$19}--pressed`]: "$fontWeight-
|
|
25637
|
+
[`fontWeight-${COMP$19}--pressed`]: "$fontWeight-bold",
|
|
25612
25638
|
[`thickness-indicator-${COMP$19}`]: "$space-0_5",
|
|
25613
25639
|
[`outlineColor-${COMP$19}--focus`]: "$outlineColor--focus",
|
|
25614
25640
|
[`outlineWidth-${COMP$19}--focus`]: "$outlineWidth--focus",
|
|
@@ -33231,6 +33257,7 @@ const NavPanelMd = createMetadata({
|
|
|
33231
33257
|
[`backgroundColor-${COMP$M}-horizontal`]: "$backgroundColor-AppHeader",
|
|
33232
33258
|
[`border-${COMP$M}`]: "0px solid $borderColor",
|
|
33233
33259
|
[`borderRight-${COMP$M}-vertical`]: "1px solid $borderColor",
|
|
33260
|
+
[`paddingVertical-${COMP$M}`]: "$space-5",
|
|
33234
33261
|
[`paddingHorizontal-${COMP$M}`]: "0",
|
|
33235
33262
|
[`paddingVertical-logo-${COMP$M}`]: "$space-4",
|
|
33236
33263
|
[`paddingHorizontal-logo-${COMP$M}`]: "$space-4",
|
|
@@ -47885,7 +47912,7 @@ function IconProvider({ children }) {
|
|
|
47885
47912
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
47886
47913
|
] });
|
|
47887
47914
|
}
|
|
47888
|
-
const version = "0.11.
|
|
47915
|
+
const version = "0.11.10";
|
|
47889
47916
|
const miscellaneousUtils = {
|
|
47890
47917
|
capitalize,
|
|
47891
47918
|
pluralize: pluralize$1,
|
|
@@ -55537,7 +55564,7 @@ function ApiInterceptorProvider({
|
|
|
55537
55564
|
return;
|
|
55538
55565
|
}
|
|
55539
55566
|
void (async () => {
|
|
55540
|
-
const { initMock } = await import("./initMock-
|
|
55567
|
+
const { initMock } = await import("./initMock-JW5A3SpD.js");
|
|
55541
55568
|
const apiInstance2 = await initMock(interceptor);
|
|
55542
55569
|
setApiInstance(apiInstance2);
|
|
55543
55570
|
setInitialized(true);
|
|
@@ -55554,7 +55581,7 @@ function ApiInterceptorProvider({
|
|
|
55554
55581
|
if (define_process_env_default.VITE_MOCK_ENABLED) {
|
|
55555
55582
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
55556
55583
|
useWorker ? import("./apiInterceptorWorker-Wgm2_zjg.js") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
55557
|
-
import("./initMock-
|
|
55584
|
+
import("./initMock-JW5A3SpD.js")
|
|
55558
55585
|
]);
|
|
55559
55586
|
if (interceptor || forceInitialize) {
|
|
55560
55587
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -55591,7 +55618,7 @@ function ApiInterceptorProvider({
|
|
|
55591
55618
|
void (async () => {
|
|
55592
55619
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
55593
55620
|
import("./apiInterceptorWorker-Wgm2_zjg.js"),
|
|
55594
|
-
import("./initMock-
|
|
55621
|
+
import("./initMock-JW5A3SpD.js")
|
|
55595
55622
|
]);
|
|
55596
55623
|
const apiInstance2 = await initMock(interceptor);
|
|
55597
55624
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -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-BzigLDo6.js";
|
|
4
4
|
import Dexie from "dexie";
|
|
5
5
|
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
6
6
|
HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
|