xmlui 0.7.33 → 0.8.0
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/_commonjsHelpers-BkfeUUK-.mjs +28 -0
- package/dist/{apiInterceptorWorker-CE7NtDJI.mjs → apiInterceptorWorker-C5K2aqZR.mjs} +1 -1
- package/dist/index-DG5iykVX.mjs +28210 -0
- package/dist/index.css +1 -1
- package/dist/language-server.d.ts +24 -0
- package/dist/language-server.mjs +14331 -0
- package/dist/lint-BN6SMVda.mjs +4902 -0
- package/dist/parser-Bko8vvFS.mjs +746 -0
- package/dist/scripts/src/abstractions/ComponentDefs.js +2 -1
- package/dist/scripts/src/components/Accordion/Accordion.js +14 -14
- package/dist/scripts/src/components/App/App.js +3 -3
- package/dist/scripts/src/components/App/AppNative.js +2 -2
- package/dist/scripts/src/components/AppHeader/AppHeader.js +6 -3
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +19 -19
- package/dist/scripts/src/components/Avatar/Avatar.js +7 -7
- package/dist/scripts/src/components/Badge/Badge.js +8 -8
- package/dist/scripts/src/components/Button/Button.js +79 -79
- package/dist/scripts/src/components/Card/Card.js +5 -5
- package/dist/scripts/src/components/Carousel/Carousel.js +18 -15
- package/dist/scripts/src/components/Checkbox/Checkbox.js +14 -14
- package/dist/scripts/src/components/ComponentProvider.js +2 -1
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +1 -1
- package/dist/scripts/src/components/DatePicker/DatePicker.js +9 -9
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +17 -17
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +3 -3
- package/dist/scripts/src/components/Footer/Footer.js +5 -5
- package/dist/scripts/src/components/Form/Form.js +16 -16
- package/dist/scripts/src/components/FormItem/FormItem.js +5 -5
- package/dist/scripts/src/components/Heading/Heading.js +22 -28
- package/dist/scripts/src/components/Heading/HeadingNative.js +2 -1
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +68 -31
- package/dist/scripts/src/components/IconRegistryContext.js +243 -242
- package/dist/scripts/src/components/Link/Link.js +22 -19
- package/dist/scripts/src/components/List/ListNative.js +53 -39
- package/dist/scripts/src/components/Markdown/Markdown.js +6 -6
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +73 -17
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
- package/dist/scripts/src/components/NavGroup/NavGroup.js +3 -3
- package/dist/scripts/src/components/NavLink/NavLink.js +26 -23
- package/dist/scripts/src/components/NavPanel/NavPanel.js +8 -8
- package/dist/scripts/src/components/NoResult/NoResult.js +2 -2
- package/dist/scripts/src/components/OffCanvas/OffCanvas.js +5 -5
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +4 -4
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +18 -18
- package/dist/scripts/src/components/Select/Select.js +21 -21
- package/dist/scripts/src/components/Select/SelectNative.js +16 -15
- package/dist/scripts/src/components/Slider/Slider.js +11 -11
- package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
- package/dist/scripts/src/components/Splitter/Splitter.js +1 -1
- package/dist/scripts/src/components/StickyBox/StickyBox.js +1 -1
- package/dist/scripts/src/components/Switch/Switch.js +18 -18
- package/dist/scripts/src/components/Table/Table.js +29 -29
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +27 -27
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +2 -1
- package/dist/scripts/src/components/Tabs/Tabs.js +12 -12
- package/dist/scripts/src/components/Text/Text.js +60 -61
- package/dist/scripts/src/components/TextBox/TextBox.js +17 -17
- package/dist/scripts/src/components/Theme/ThemeNative.js +1 -1
- package/dist/scripts/src/components-core/descriptorHelper.js +7 -7
- package/dist/scripts/src/components-core/theming/layout-resolver.js +26 -26
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +7 -23
- package/dist/scripts/src/components-core/theming/themes/root.js +101 -114
- package/dist/scripts/src/components-core/theming/themes/solid.js +3 -3
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +4 -4
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +189 -189
- package/dist/scripts/src/components-core/utils/hooks.js +2 -2
- package/dist/scripts/src/parsers/scripting/Parser.js +2 -2
- package/dist/style.css +1 -1
- package/dist/xmlui-metadata.mjs +8534 -8204
- package/dist/xmlui-metadata.umd.js +11 -11
- package/dist/xmlui-parser.d.ts +1 -0
- package/dist/xmlui-parser.mjs +53 -52
- package/dist/xmlui-standalone.umd.js +174 -174
- package/dist/xmlui.d.ts +5 -4
- package/dist/xmlui.mjs +13 -12
- package/package.json +11 -5
- package/dist/index-lMqf6HyK.mjs +0 -27841
- package/dist/lint-DgP_MIP6.mjs +0 -5645
- package/dist/scripts/bin/language-server.js +0 -11
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/language-server/metadata.js +0 -8206
- package/dist/scripts/src/language-server/server.js +0 -135
- package/dist/scripts/src/language-server/services/completion.js +0 -100
- package/dist/scripts/src/language-server/services/hover.js +0 -170
- package/dist/scripts/src/language-server/services/syntax-node-utilities.js +0 -22
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -177
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
package/dist/xmlui-parser.d.ts
CHANGED
|
@@ -379,6 +379,7 @@ declare type ComponentMetadata<TProps extends Record<string, ComponentPropertyMe
|
|
|
379
379
|
nonVisual?: boolean;
|
|
380
380
|
opaque?: boolean;
|
|
381
381
|
themeVars?: Array<string>;
|
|
382
|
+
themeVarDescriptions?: Record<string, string>;
|
|
382
383
|
defaultThemeVars?: DefaultThemeVars;
|
|
383
384
|
toneSpecificThemeVars?: Record<string, Record<string, string>>;
|
|
384
385
|
allowArbitraryProps?: boolean;
|
package/dist/xmlui-parser.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import {
|
|
1
|
+
import { C as v, o as $, k as j, i as O, n as P, h as T, l as V, a as L, m as I, j as w, f as z, e as k, g as M, b as Q, D as B, E as R, S as F, q as K, c as W, d as q, x as H, u as J, r as G, t as Y, s as Z, p as ee, w as te, v as re } from "./parser-Bko8vvFS.mjs";
|
|
2
|
+
import { H as A } from "./lint-BN6SMVda.mjs";
|
|
3
|
+
import { Q as se, J as ie, B as ne, M as le, U as ce, z as de, y as me, N as he, A as ue, K as fe, C as oe, E as pe, I as Ee, n as ye, O as Ne, D as ge } from "./lint-BN6SMVda.mjs";
|
|
3
4
|
const p = /[\r\n<>'"&]/;
|
|
4
|
-
class
|
|
5
|
+
class U {
|
|
5
6
|
/**
|
|
6
7
|
* Serialize the specified XML fragment into a string
|
|
7
8
|
* @param xml XML fragment to serialize
|
|
@@ -31,9 +32,9 @@ class D {
|
|
|
31
32
|
return `${n(d)}<!--${i.text}-->`;
|
|
32
33
|
}
|
|
33
34
|
function h(i, d) {
|
|
34
|
-
var
|
|
35
|
-
let l = `${n(d)}<${
|
|
36
|
-
const E = (((
|
|
35
|
+
var N, g;
|
|
36
|
+
let l = `${n(d)}<${y()}`;
|
|
37
|
+
const E = (((N = i.attributes) == null ? void 0 : N.length) ?? 0) > 0, o = (((g = i.childNodes) == null ? void 0 : g.length) ?? 0) > 0;
|
|
37
38
|
if (i.text || E || o) {
|
|
38
39
|
if (E) {
|
|
39
40
|
const m = i.attributes.map((u) => b(u));
|
|
@@ -64,9 +65,9 @@ class D {
|
|
|
64
65
|
} else
|
|
65
66
|
l += ((e == null ? void 0 : e.useSpaceBeforeClose) ?? !1 ? " " : "") + "/>";
|
|
66
67
|
} else
|
|
67
|
-
l += ((e == null ? void 0 : e.useSpaceBeforeClose) ?? !1 ? " " : "") + "/>", i.text === "" && (l += `""</${
|
|
68
|
+
l += ((e == null ? void 0 : e.useSpaceBeforeClose) ?? !1 ? " " : "") + "/>", i.text === "" && (l += `""</${y()}>`);
|
|
68
69
|
return l;
|
|
69
|
-
function
|
|
70
|
+
function y() {
|
|
70
71
|
return i.namespace ? `${i.namespace}:${i.name}` : i.name;
|
|
71
72
|
}
|
|
72
73
|
}
|
|
@@ -359,49 +360,49 @@ class D {
|
|
|
359
360
|
}
|
|
360
361
|
export {
|
|
361
362
|
A as COMPOUND_COMP_ID,
|
|
362
|
-
|
|
363
|
+
se as CORE_NAMESPACE_VALUE,
|
|
363
364
|
v as CharacterCodes,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
365
|
+
$ as Diag_Attr_Identifier_Expected,
|
|
366
|
+
j as Diag_Attr_Value_Expected,
|
|
367
|
+
O as Diag_CloseNodeStart_Token_Expected,
|
|
368
|
+
P as Diag_End_Or_Close_Token_Expected,
|
|
369
|
+
T as Diag_End_Token_Expected,
|
|
370
|
+
V as Diag_Eq_Token_Expected,
|
|
371
|
+
L as Diag_Invalid_Character,
|
|
372
|
+
I as Diag_OpenNodeStart_Token_Expected,
|
|
373
|
+
w as Diag_Tag_Identifier_Expected,
|
|
374
|
+
z as Diag_Unterminated_CData,
|
|
375
|
+
k as Diag_Unterminated_Comment,
|
|
376
|
+
M as Diag_Unterminated_Script,
|
|
377
|
+
Q as Diag_Unterminated_String_Literal,
|
|
378
|
+
B as DiagnosticCategory,
|
|
379
|
+
R as ErrCodes,
|
|
380
|
+
ie as LintDiagKind,
|
|
381
|
+
ne as LintSeverity,
|
|
382
|
+
le as ParserError,
|
|
383
|
+
F as SyntaxKind,
|
|
384
|
+
ce as UCRegex,
|
|
385
|
+
U as XmlUiHelper,
|
|
386
|
+
de as codeBehindFileExtension,
|
|
387
|
+
me as componentFileExtension,
|
|
388
|
+
K as createScanner,
|
|
389
|
+
W as createXmlUiParser,
|
|
390
|
+
q as diagnosticCategoryName,
|
|
391
|
+
he as errorMessages,
|
|
392
|
+
H as findTokenAtPos,
|
|
393
|
+
ue as getLintSeverity,
|
|
394
|
+
J as getSyntaxKindStrRepr,
|
|
395
|
+
G as isIdentifierStart,
|
|
396
|
+
Y as isInnerNode,
|
|
397
|
+
Z as isTrivia,
|
|
398
|
+
fe as lint,
|
|
399
|
+
oe as lintApp,
|
|
400
|
+
pe as lintErrorsComponent,
|
|
401
|
+
Ee as moduleFileExtension,
|
|
402
|
+
ye as nodeToComponentDef,
|
|
403
|
+
Ne as onPrefixRegex,
|
|
404
|
+
ee as parseXmlUiMarkup,
|
|
405
|
+
ge as printComponentLints,
|
|
406
|
+
te as tagNameNodesWithoutErrorsMatch,
|
|
407
|
+
re as toDbgString
|
|
407
408
|
};
|