xmlui 0.10.14 → 0.10.15
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-779mp2Bm.mjs → index-axjeT2uJ.mjs} +719 -380
- package/dist/lib/{initMock-CAXdczCj.mjs → initMock-BoTWMs19.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-D90qqMGc.mjs → metadata-utils-CtY0QcvH.mjs} +2 -1
- package/dist/lib/{server-common-lmBDLpUh.mjs → server-common-Cine5nRR.mjs} +1 -1
- package/dist/lib/xmlui.d.ts +83 -5
- package/dist/lib/xmlui.mjs +72 -37
- package/dist/metadata/{collectedComponentMetadata-7DFXlw-J.mjs → collectedComponentMetadata-CQywuPDB.mjs} +671 -399
- package/dist/metadata/{initMock-AFWEftc6.mjs → initMock-Bi5kF5Af.mjs} +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +3 -3
- package/dist/scripts/package.json +2 -3
- package/dist/scripts/src/components/AppState/AppState.js +32 -2
- package/dist/scripts/src/components/AppState/AppStateNative.js +27 -3
- package/dist/scripts/src/components/Button/Button.js +5 -1
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +41 -2
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +7 -9
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +3 -3
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +182 -123
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +14 -6
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +15 -9
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +3 -1
- package/dist/scripts/src/components/Slider/SliderNative.js +2 -2
- package/dist/scripts/src/components/Table/Table.js +7 -1
- package/dist/scripts/src/components/Table/TableNative.js +4 -1
- package/dist/scripts/src/components/Table/useRowSelection.js +215 -1
- package/dist/scripts/src/components/TextBox/TextBox.js +1 -5
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +368 -324
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +10 -15
- package/dist/scripts/src/components/Theme/ThemeNative.js +2 -6
- package/dist/scripts/src/components/TimeInput/TimeInput.js +1 -5
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +2 -9
- package/dist/scripts/src/components-core/ApiBoundComponent.js +38 -24
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -1
- package/dist/scripts/src/components-core/behaviors/BehaviorContext.js +54 -0
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +80 -0
- package/dist/scripts/src/components-core/descriptorHelper.js +1 -0
- package/dist/scripts/src/components-core/parts.js +4 -1
- package/dist/scripts/src/components-core/rendering/AppRoot.js +2 -1
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +31 -46
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +6 -0
- package/dist/scripts/src/components-core/theming/layout-resolver.js +2 -0
- package/dist/scripts/src/index.js +38 -1
- package/dist/scripts/src/testing/ComponentDrivers.js +1 -29
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +44 -0
- package/dist/scripts/src/testing/drivers/SliderDriver.js +20 -0
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +20 -0
- package/dist/scripts/src/testing/fixtures.js +35 -9
- package/dist/standalone/xmlui-standalone.es.d.ts +154 -9
- package/dist/standalone/xmlui-standalone.umd.js +35 -35
- package/package.json +2 -3
|
@@ -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-axjeT2uJ.mjs";
|
|
4
4
|
import Dexie from "dexie";
|
|
5
5
|
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
6
6
|
HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
|
|
@@ -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-bHBjkKSL.mjs";
|
|
4
|
-
import { a as addOnPrefix, M as MetadataProvider } from "./metadata-utils-
|
|
4
|
+
import { a as addOnPrefix, M as MetadataProvider } from "./metadata-utils-CtY0QcvH.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;
|
package/dist/lib/xmlui.d.ts
CHANGED
|
@@ -577,12 +577,30 @@ export declare function createUserDefinedComponentRenderer<TMd extends Component
|
|
|
577
577
|
|
|
578
578
|
export declare function d(description: string, availableValues?: readonly PropertyValueDescription[], valueType?: PropertyValueType, defaultValue?: any, isValid?: IsValidFunction<any>, isRequired?: boolean): ComponentPropertyMetadata;
|
|
579
579
|
|
|
580
|
+
export declare function dAutoFocus(): ComponentPropertyMetadata;
|
|
581
|
+
|
|
582
|
+
export declare function dClick(comp: string): ComponentPropertyMetadata;
|
|
583
|
+
|
|
584
|
+
export declare function dCollapse(comp: string): ComponentPropertyMetadata;
|
|
585
|
+
|
|
580
586
|
export declare function dComponent(description: string): ComponentPropertyMetadata;
|
|
581
587
|
|
|
588
|
+
export declare function dDidChange(comp: string): ComponentPropertyMetadata;
|
|
589
|
+
|
|
590
|
+
export declare function dDidClose(comp: string): ComponentPropertyMetadata;
|
|
591
|
+
|
|
592
|
+
export declare function dDidOpen(comp: string): ComponentPropertyMetadata;
|
|
593
|
+
|
|
582
594
|
declare type DefaultThemeVars = Record<string | ThemeTone, string | Record<string, string>>;
|
|
583
595
|
|
|
584
596
|
declare type DefaultValueDescriptor = (string | ThemeIdDescriptor)[];
|
|
585
597
|
|
|
598
|
+
export declare function dEnabled(isEnabled?: boolean): ComponentPropertyMetadata;
|
|
599
|
+
|
|
600
|
+
export declare function dEndIcon(): ComponentPropertyMetadata;
|
|
601
|
+
|
|
602
|
+
export declare function dEndText(): ComponentPropertyMetadata;
|
|
603
|
+
|
|
586
604
|
declare type DESTRUCTURE = typeof T_DESTRUCTURE;
|
|
587
605
|
|
|
588
606
|
declare interface Destructure extends DestructureBase {
|
|
@@ -597,6 +615,14 @@ declare interface DestructureBase extends ExpressionBase {
|
|
|
597
615
|
oDestr?: ObjectDestructure[];
|
|
598
616
|
}
|
|
599
617
|
|
|
618
|
+
export declare function dExpand(comp: string): ComponentPropertyMetadata;
|
|
619
|
+
|
|
620
|
+
export declare function dExpanded(comp: string): ComponentPropertyMetadata;
|
|
621
|
+
|
|
622
|
+
export declare function dFocus(comp: string): ComponentPropertyMetadata;
|
|
623
|
+
|
|
624
|
+
export declare function dGotFocus(comp: string): ComponentPropertyMetadata;
|
|
625
|
+
|
|
600
626
|
declare enum DiagnosticCategory {
|
|
601
627
|
Error = 1,
|
|
602
628
|
Warning = 2,
|
|
@@ -604,14 +630,56 @@ declare enum DiagnosticCategory {
|
|
|
604
630
|
Hint = 4
|
|
605
631
|
}
|
|
606
632
|
|
|
633
|
+
export declare function dIndeterminate(defaultValue?: boolean): ComponentPropertyMetadata;
|
|
634
|
+
|
|
635
|
+
export declare function dInitialValue(value?: any): ComponentPropertyMetadata;
|
|
636
|
+
|
|
637
|
+
export declare function dInternal(description?: string): ComponentPropertyMetadata;
|
|
638
|
+
|
|
639
|
+
export declare function dLabel(): ComponentPropertyMetadata;
|
|
640
|
+
|
|
641
|
+
export declare function dLabelBreak(comp: string): ComponentPropertyMetadata;
|
|
642
|
+
|
|
643
|
+
export declare function dLabelPosition(def?: string): ComponentPropertyMetadata;
|
|
644
|
+
|
|
645
|
+
export declare function dLabelWidth(comp: string): ComponentPropertyMetadata;
|
|
646
|
+
|
|
647
|
+
export declare function dLostFocus(comp: string): ComponentPropertyMetadata;
|
|
648
|
+
|
|
649
|
+
export declare function dMaxLength(): ComponentPropertyMetadata;
|
|
650
|
+
|
|
651
|
+
export declare function dMulti(): ComponentPropertyMetadata;
|
|
652
|
+
|
|
607
653
|
declare type DO_WHILE_STATEMENT = typeof T_DO_WHILE_STATEMENT;
|
|
608
654
|
|
|
655
|
+
export declare function dOrientation(defaultValue: string, isRequired?: boolean): ComponentPropertyMetadata;
|
|
656
|
+
|
|
609
657
|
declare interface DoWhileStatement extends ScripNodeBase {
|
|
610
658
|
type: DO_WHILE_STATEMENT;
|
|
611
659
|
cond: Expression;
|
|
612
660
|
body: Statement;
|
|
613
661
|
}
|
|
614
662
|
|
|
663
|
+
export declare function dPlaceholder(): ComponentPropertyMetadata;
|
|
664
|
+
|
|
665
|
+
export declare function dReadonly(readOnly?: boolean): ComponentPropertyMetadata;
|
|
666
|
+
|
|
667
|
+
export declare function dRequired(): ComponentPropertyMetadata;
|
|
668
|
+
|
|
669
|
+
export declare function dSetValueApi(): ComponentPropertyMetadata;
|
|
670
|
+
|
|
671
|
+
export declare function dStartIcon(): ComponentPropertyMetadata;
|
|
672
|
+
|
|
673
|
+
export declare function dStartText(): ComponentPropertyMetadata;
|
|
674
|
+
|
|
675
|
+
export declare function dTriggerTemplate(comp: string): ComponentPropertyMetadata;
|
|
676
|
+
|
|
677
|
+
export declare function dValidationStatus(value?: string): ComponentPropertyMetadata;
|
|
678
|
+
|
|
679
|
+
export declare function dValue(): ComponentPropertyMetadata;
|
|
680
|
+
|
|
681
|
+
export declare function dValueApi(): ComponentPropertyMetadata;
|
|
682
|
+
|
|
615
683
|
declare interface DynamicChildComponentDef extends ComponentDef {
|
|
616
684
|
renderChild: RenderChildFn;
|
|
617
685
|
childToRender: ComponentDef;
|
|
@@ -1082,7 +1150,7 @@ declare type ProjectCompilation = {
|
|
|
1082
1150
|
themes: Record<string, ThemeDefinition>;
|
|
1083
1151
|
};
|
|
1084
1152
|
|
|
1085
|
-
declare type PropertyValueDescription<T = string | number> = T | {
|
|
1153
|
+
export declare type PropertyValueDescription<T = string | number> = T | {
|
|
1086
1154
|
value: T;
|
|
1087
1155
|
description: string;
|
|
1088
1156
|
};
|
|
@@ -1169,10 +1237,6 @@ declare type Props_5 = {
|
|
|
1169
1237
|
autoFocus?: boolean;
|
|
1170
1238
|
readOnly?: boolean;
|
|
1171
1239
|
tabIndex?: number;
|
|
1172
|
-
label?: string;
|
|
1173
|
-
labelPosition?: string;
|
|
1174
|
-
labelWidth?: string;
|
|
1175
|
-
labelBreak?: boolean;
|
|
1176
1240
|
required?: boolean;
|
|
1177
1241
|
/**
|
|
1178
1242
|
* When true and type is "password", displays a toggle icon to show/hide password text
|
|
@@ -1196,6 +1260,18 @@ declare type Props_6 = {
|
|
|
1196
1260
|
style?: React.CSSProperties;
|
|
1197
1261
|
};
|
|
1198
1262
|
|
|
1263
|
+
declare type Props_7 = {
|
|
1264
|
+
id?: string;
|
|
1265
|
+
isRoot?: boolean;
|
|
1266
|
+
layoutContext?: LayoutContext;
|
|
1267
|
+
renderChild?: RenderChildFn;
|
|
1268
|
+
node?: ComponentDef;
|
|
1269
|
+
tone?: ThemeTone;
|
|
1270
|
+
toastDuration?: number;
|
|
1271
|
+
themeVars?: Record<string, string>;
|
|
1272
|
+
children?: ReactNode;
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1199
1275
|
declare type REACTIVE_VAR_DECLARATION = typeof T_REACTIVE_VAR_DECLARATION;
|
|
1200
1276
|
|
|
1201
1277
|
declare interface ReactiveVarDeclaration extends ExpressionBase {
|
|
@@ -1630,6 +1706,8 @@ declare type TextVariant = (typeof TextVariantKeys)[number];
|
|
|
1630
1706
|
|
|
1631
1707
|
declare const TextVariantKeys: readonly ["abbr", "cite", "code", "deleted", "inherit", "inserted", "keyboard", "marked", "sample", "sub", "sup", "var", "strong", "em", "mono", "title", "subtitle", "small", "caption", "placeholder", "paragraph", "subheading", "tableheading", "secondary"];
|
|
1632
1708
|
|
|
1709
|
+
export declare function Theme({ id, isRoot, renderChild, node, tone, toastDuration, themeVars, layoutContext, children, }: Props_7): string | number | boolean | Iterable<ReactNode> | JSX_2.Element;
|
|
1710
|
+
|
|
1633
1711
|
export declare interface ThemeDefinition extends ThemeDefinitionDetails {
|
|
1634
1712
|
id: string;
|
|
1635
1713
|
name?: string;
|
package/dist/lib/xmlui.mjs
CHANGED
|
@@ -1,48 +1,83 @@
|
|
|
1
|
-
import {
|
|
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-axjeT2uJ.mjs";
|
|
2
2
|
import { X as X2 } from "./xmlui-serializer-DB6BLiXK.mjs";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
ac as ApiInterceptorProvider,
|
|
5
|
+
Z as AppRoot,
|
|
6
|
+
an as Breakout,
|
|
7
|
+
a1 as Button,
|
|
8
|
+
_ as ErrorBoundary,
|
|
9
|
+
$ as Icon,
|
|
10
|
+
ak as LinkNative,
|
|
11
|
+
am as Logo,
|
|
12
|
+
ai as NestedApp,
|
|
13
|
+
ad as Spinner,
|
|
14
|
+
a2 as Splitter,
|
|
15
|
+
a0 as Stack,
|
|
16
16
|
S as StandaloneApp,
|
|
17
|
-
|
|
17
|
+
at as StandaloneComponent,
|
|
18
18
|
b as StandaloneExtensionManager,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
aq as StyleProvider,
|
|
20
|
+
ar as StyleRegistry,
|
|
21
|
+
a4 as TabItem,
|
|
22
|
+
a5 as Tabs,
|
|
23
|
+
ag as Text,
|
|
24
|
+
ah as TextBox,
|
|
25
|
+
au as Theme,
|
|
26
|
+
al as ToneChangerButton,
|
|
27
|
+
aj as VisuallyHidden,
|
|
27
28
|
X2 as XmlUiHelper,
|
|
28
|
-
|
|
29
|
+
af as builtInThemes,
|
|
29
30
|
c as createComponentRenderer,
|
|
30
31
|
f as createMetadata,
|
|
31
32
|
e as createUserDefinedComponentRenderer,
|
|
32
33
|
h as d,
|
|
34
|
+
j as dAutoFocus,
|
|
35
|
+
k as dClick,
|
|
36
|
+
l as dCollapse,
|
|
33
37
|
i as dComponent,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
s as
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
w as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
n as dDidChange,
|
|
39
|
+
p as dDidClose,
|
|
40
|
+
q as dDidOpen,
|
|
41
|
+
s as dEnabled,
|
|
42
|
+
u as dEndIcon,
|
|
43
|
+
v as dEndText,
|
|
44
|
+
x as dExpand,
|
|
45
|
+
w as dExpanded,
|
|
46
|
+
t as dFocus,
|
|
47
|
+
y as dGotFocus,
|
|
48
|
+
z as dIndeterminate,
|
|
49
|
+
A as dInitialValue,
|
|
50
|
+
B as dInternal,
|
|
51
|
+
C as dLabel,
|
|
52
|
+
D as dLabelBreak,
|
|
53
|
+
E as dLabelPosition,
|
|
54
|
+
F as dLabelWidth,
|
|
55
|
+
G as dLostFocus,
|
|
56
|
+
H as dMaxLength,
|
|
57
|
+
I as dMulti,
|
|
58
|
+
J as dOrientation,
|
|
59
|
+
K as dPlaceholder,
|
|
60
|
+
L as dReadonly,
|
|
61
|
+
M as dRequired,
|
|
62
|
+
P as dSetValueApi,
|
|
63
|
+
N as dStartIcon,
|
|
64
|
+
O as dStartText,
|
|
65
|
+
Q as dTriggerTemplate,
|
|
66
|
+
R as dValidationStatus,
|
|
67
|
+
U as dValue,
|
|
68
|
+
V as dValueApi,
|
|
69
|
+
aa as errReportComponent,
|
|
70
|
+
a3 as getColor,
|
|
71
|
+
W as parseScssVar,
|
|
72
|
+
X as startApp,
|
|
73
|
+
a7 as toCssVar,
|
|
74
|
+
ap as useAppLayoutContext,
|
|
75
|
+
a6 as useColors,
|
|
76
|
+
a8 as useDevTools,
|
|
77
|
+
as as useEvent,
|
|
78
|
+
a9 as useLogger,
|
|
79
|
+
ao as useSearchContextContent,
|
|
80
|
+
Y as useTheme,
|
|
81
|
+
ae as useThemes,
|
|
82
|
+
ab as xmlUiMarkupToComponent
|
|
48
83
|
};
|