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.d.ts
CHANGED
|
@@ -597,6 +597,7 @@ export declare type ComponentMetadata<TProps extends Record<string, ComponentPro
|
|
|
597
597
|
nonVisual?: boolean;
|
|
598
598
|
opaque?: boolean;
|
|
599
599
|
themeVars?: Array<string>;
|
|
600
|
+
themeVarDescriptions?: Record<string, string>;
|
|
600
601
|
defaultThemeVars?: DefaultThemeVars;
|
|
601
602
|
toneSpecificThemeVars?: Record<string, Record<string, string>>;
|
|
602
603
|
allowArbitraryProps?: boolean;
|
|
@@ -774,7 +775,7 @@ declare type ContributesDefinition = {
|
|
|
774
775
|
*/
|
|
775
776
|
export declare function createComponentRenderer<TMd extends ComponentMetadata>(type: string, metadata: TMd, renderer: ComponentRendererFn<ComponentDef<TMd>>): ComponentRendererDef;
|
|
776
777
|
|
|
777
|
-
export declare function createMetadata<TProps extends Record<string, ComponentPropertyMetadata>, TEvents extends Record<string, ComponentPropertyMetadata>, TContextVars extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TApis extends Record<string, ComponentPropertyMetadata> = Record<string, any>>({ description, shortDescription, specializedFrom, status, props, events, contextVars, apis, nonVisual, opaque, themeVars, defaultThemeVars, toneSpecificThemeVars, allowArbitraryProps, docFolder, isHtmlTag, }: ComponentMetadata<TProps, TEvents, TContextVars, TApis>): ComponentMetadata<TProps, TEvents, TContextVars, TApis>;
|
|
778
|
+
export declare function createMetadata<TProps extends Record<string, ComponentPropertyMetadata>, TEvents extends Record<string, ComponentPropertyMetadata>, TContextVars extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TApis extends Record<string, ComponentPropertyMetadata> = Record<string, any>>({ description, shortDescription, specializedFrom, status, props, events, contextVars, apis, nonVisual, opaque, themeVars, themeVarDescriptions, defaultThemeVars, toneSpecificThemeVars, allowArbitraryProps, docFolder, isHtmlTag, }: ComponentMetadata<TProps, TEvents, TContextVars, TApis>): ComponentMetadata<TProps, TEvents, TContextVars, TApis>;
|
|
778
779
|
|
|
779
780
|
export declare function d(description: string, availableValues?: readonly PropertyValueDescription[], valueType?: PropertyValueType, defaultValue?: any, isValid?: IsValidFunction<any>, isRequired?: boolean): ComponentPropertyMetadata;
|
|
780
781
|
|
|
@@ -1425,7 +1426,7 @@ declare type StandaloneAppProps = {
|
|
|
1425
1426
|
* the xmlui component registry. The framework resolves the components used
|
|
1426
1427
|
* in an application markup with this registry.
|
|
1427
1428
|
*/
|
|
1428
|
-
declare class StandaloneExtensionManager {
|
|
1429
|
+
export declare class StandaloneExtensionManager {
|
|
1429
1430
|
subscriptions: Set<ExtensionRegisteredCallbackFn>;
|
|
1430
1431
|
registeredExtensions: Array<Extension>;
|
|
1431
1432
|
constructor();
|
|
@@ -1606,12 +1607,12 @@ declare type ThemeScope = {
|
|
|
1606
1607
|
/**
|
|
1607
1608
|
* This hash object stores the CSS theme variable names with their CSS values definition,
|
|
1608
1609
|
* like "--xmlui-align-vertical-Text-sub": "sub";
|
|
1609
|
-
* "--xmlui-
|
|
1610
|
+
* "--xmlui-backgroundColor": "var(--xmlui-color-surface-50)"
|
|
1610
1611
|
*/
|
|
1611
1612
|
themeStyles: Record<string, string>;
|
|
1612
1613
|
/**
|
|
1613
1614
|
* This hash object stores the theme variable names with their CSS values definition, like
|
|
1614
|
-
* "align-vertical-Text-sub": "sub"; "
|
|
1615
|
+
* "align-vertical-Text-sub": "sub"; "backgroundColor": "var(--xmlui-color-surface-50)".
|
|
1615
1616
|
*/
|
|
1616
1617
|
themeVars: Record<string, string>;
|
|
1617
1618
|
/**
|
package/dist/xmlui.mjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { A as e, B as t, E as
|
|
1
|
+
import { A as e, B as t, E as o, I as r, i as n, h as p, S as c, b as d, c as S, e as l, f as u, j as A, p as C, s as i, t as m, k as B, u as E } from "./index-DG5iykVX.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AppRoot,
|
|
4
4
|
t as Button,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
o as ErrorBoundary,
|
|
6
|
+
r as Icon,
|
|
7
|
+
n as Splitter,
|
|
8
|
+
p as Stack,
|
|
9
9
|
c as StandaloneApp,
|
|
10
|
-
d as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
A as
|
|
15
|
-
C as
|
|
10
|
+
d as StandaloneExtensionManager,
|
|
11
|
+
S as createComponentRenderer,
|
|
12
|
+
l as createMetadata,
|
|
13
|
+
u as d,
|
|
14
|
+
A as getColor,
|
|
15
|
+
C as parseScssVar,
|
|
16
|
+
i as startApp,
|
|
16
17
|
m as toCssVar,
|
|
17
18
|
B as useColors,
|
|
18
|
-
|
|
19
|
+
E as useTheme
|
|
19
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xmlui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start-test-bed": "cd src/testing/infrastructure && xmlui start",
|
|
@@ -142,14 +142,12 @@
|
|
|
142
142
|
"src/styles"
|
|
143
143
|
],
|
|
144
144
|
"bin": {
|
|
145
|
-
"xmlui": "dist/scripts/bin/bootstrap.js"
|
|
146
|
-
"xmlui-language-server": "dist/scripts/bin/language-server.js"
|
|
145
|
+
"xmlui": "dist/scripts/bin/bootstrap.js"
|
|
147
146
|
},
|
|
148
147
|
"clean-package": {
|
|
149
148
|
"replace": {
|
|
150
149
|
"bin": {
|
|
151
|
-
"xmlui": "dist/scripts/bin/bootstrap.js"
|
|
152
|
-
"xmlui-language-server": "dist/scripts/bin/language-server.js"
|
|
150
|
+
"xmlui": "dist/scripts/bin/bootstrap.js"
|
|
153
151
|
},
|
|
154
152
|
"main": "./dist/xmlui.umd.js",
|
|
155
153
|
"module": "./dist/xmlui.mjs",
|
|
@@ -159,6 +157,10 @@
|
|
|
159
157
|
"import": "./dist/xmlui.mjs",
|
|
160
158
|
"require": "./dist/xmlui.umd.js"
|
|
161
159
|
},
|
|
160
|
+
"./language-server": {
|
|
161
|
+
"import": "./dist/language-server.mjs",
|
|
162
|
+
"require": "./dist/language-server.mjs"
|
|
163
|
+
},
|
|
162
164
|
"./parser": {
|
|
163
165
|
"import": "./dist/xmlui-parser.mjs",
|
|
164
166
|
"require": "./dist/xmlui-parser.mjs"
|
|
@@ -184,6 +186,10 @@
|
|
|
184
186
|
"import": "./dist/xmlui.mjs",
|
|
185
187
|
"require": "./dist/xmlui.umd.js"
|
|
186
188
|
},
|
|
189
|
+
"./language-server": {
|
|
190
|
+
"import": "./dist/language-server.mjs",
|
|
191
|
+
"require": "./dist/language-server.mjs"
|
|
192
|
+
},
|
|
187
193
|
"./parser": {
|
|
188
194
|
"import": "./dist/xmlui-parser.mjs",
|
|
189
195
|
"require": "./dist/xmlui-parser.mjs"
|