xmlui 0.9.10 → 0.9.12
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/{apiInterceptorWorker-BJYj3y8V.mjs → apiInterceptorWorker-dYrfbzdh.mjs} +1 -1
- package/dist/{index-6PAZN2xn.mjs → index-Dh2MThrK.mjs} +2127 -2300
- package/dist/index.css +112 -198
- package/dist/language-server-web-worker.mjs +1 -1
- package/dist/language-server.mjs +1 -1
- package/dist/{lint-DmJOJSJa.mjs → lint-Cd70ckJ6.mjs} +1 -11
- package/dist/{parser-B3m9ZEAK.mjs → parser-CBXS8ft2.mjs} +7 -5
- package/dist/scripts/bin/build-lib.js +42 -1
- package/dist/scripts/bin/vite-xmlui-plugin.js +2 -22
- package/dist/scripts/bin/viteConfig.js +3 -1
- package/dist/scripts/src/abstractions/ComponentDefs.js +2 -20
- package/dist/scripts/src/components/App/App.js +61 -21
- package/dist/scripts/src/components/Button/Button.js +5 -1
- package/dist/scripts/src/components/Button/ButtonNative.js +9 -2
- package/dist/scripts/src/components/Checkbox/Checkbox.js +2 -2
- package/dist/scripts/src/components/ComponentProvider.js +2 -0
- package/dist/scripts/src/components/Footer/Footer.js +1 -1
- package/dist/scripts/src/components/Form/FormContext.js +2 -0
- package/dist/scripts/src/components/FormItem/FormItemNative.js +9 -0
- package/dist/scripts/src/components/Items/Items.js +2 -1
- package/dist/scripts/src/components/List/List.js +2 -1
- package/dist/scripts/src/components/Markdown/Markdown.js +2 -0
- package/dist/scripts/src/components/NavPanel/NavPanel.js +2 -2
- package/dist/scripts/src/components/NumberBox/NumberBox2.js +85 -0
- package/dist/scripts/src/components/NumberBox/NumberBox2Native.js +395 -0
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +35 -0
- package/dist/scripts/src/components/Option/Option.js +2 -1
- package/dist/scripts/src/components/Select/Select.js +8 -0
- package/dist/scripts/src/components/Select/SelectNative.js +24 -10
- package/dist/scripts/src/components/Theme/ThemeNative.js +1 -0
- package/dist/scripts/src/components/VisuallyHidden.js +21 -0
- package/dist/scripts/src/components-core/InspectorContext.js +15 -4
- package/dist/scripts/src/components-core/loader/DataLoader.js +110 -3
- package/dist/scripts/src/components-core/loader/Loader.js +29 -7
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +4 -1
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +23 -5
- package/dist/scripts/src/components-core/rendering/Container.js +23 -26
- package/dist/scripts/src/components-core/rendering/StateContainer.js +2 -4
- package/dist/scripts/src/components-core/rendering/reducer.js +6 -5
- package/dist/scripts/src/components-core/utils/extractParam.js +24 -7
- package/dist/scripts/src/components-core/xmlui-parser.js +1 -1
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +1 -1
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -10
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +6 -9
- package/dist/{server-common-oCD2CuF9.mjs → server-common-DW5h7Q34.mjs} +122 -64
- package/dist/style.css +112 -98
- package/dist/xmlui-metadata.mjs +688 -229
- package/dist/xmlui-metadata.umd.js +687 -230
- package/dist/xmlui-parser.d.ts +14 -9
- package/dist/xmlui-parser.mjs +3 -3
- package/dist/xmlui-standalone.umd.js +4483 -7327
- package/dist/xmlui.d.ts +14 -1
- package/dist/xmlui.mjs +2 -1
- package/package.json +6 -4
- package/dist/scripts/src/components-core/devtools/DevTools.js +0 -225
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -27
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -26
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
package/dist/xmlui-parser.d.ts
CHANGED
|
@@ -345,6 +345,7 @@ declare type ComponentMetadata<TProps extends Record<string, ComponentPropertyMe
|
|
|
345
345
|
contextVars?: TContextValues;
|
|
346
346
|
apis?: TApis;
|
|
347
347
|
nonVisual?: boolean;
|
|
348
|
+
childrenAsTemplate?: string;
|
|
348
349
|
opaque?: boolean;
|
|
349
350
|
themeVars?: Array<string>;
|
|
350
351
|
themeVarDescriptions?: Record<string, string>;
|
|
@@ -647,16 +648,20 @@ declare interface ExpressionStatement extends ScripNodeBase {
|
|
|
647
648
|
|
|
648
649
|
export declare function findTokenAtPos(node: Node_2, position: number): FindTokenSuccess | undefined;
|
|
649
650
|
|
|
650
|
-
/** If the position is in-between two tokens, the chain to the token just before the cursor is provided as well
|
|
651
|
-
declare type FindTokenSuccess = {
|
|
651
|
+
/** If the position is in-between two tokens, the chain to the token just before the cursor is provided as well*/
|
|
652
|
+
export declare type FindTokenSuccess = {
|
|
652
653
|
chainAtPos: Node_2[];
|
|
653
|
-
/** If the position is in-between two tokens, the chain to the token just before the position is provided.
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
* chainBeforePos
|
|
658
|
-
|
|
659
|
-
sharedParents
|
|
654
|
+
/** If the position is in-between two tokens, the chain to the token just before the position is provided. */
|
|
655
|
+
chainBeforePos: Node_2[];
|
|
656
|
+
/**
|
|
657
|
+
* This field specifies the first index where
|
|
658
|
+
* `chainBeforePos` differs from chainAtPos
|
|
659
|
+
*/
|
|
660
|
+
sharedParents: number;
|
|
661
|
+
} | {
|
|
662
|
+
chainBeforePos: undefined;
|
|
663
|
+
chainAtPos: Node_2[];
|
|
664
|
+
sharedParents: undefined;
|
|
660
665
|
};
|
|
661
666
|
|
|
662
667
|
/**
|
package/dist/xmlui-parser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C, o, k, i, n, h, l, a, m, j, f, e, g, b, D, E, S, q, c, d, x, u, r, t, s, p, w, v } from "./parser-
|
|
2
|
-
import { am as COMPOUND_COMP_ID } from "./lint-
|
|
3
|
-
import { au, ao, ag, aq, as, ae, ad, ar, af, ap, ah, aj, an, a5, at, ai } from "./lint-
|
|
1
|
+
import { C, o, k, i, n, h, l, a, m, j, f, e, g, b, D, E, S, q, c, d, x, u, r, t, s, p, w, v } from "./parser-CBXS8ft2.mjs";
|
|
2
|
+
import { am as COMPOUND_COMP_ID } from "./lint-Cd70ckJ6.mjs";
|
|
3
|
+
import { au, ao, ag, aq, as, ae, ad, ar, af, ap, ah, aj, an, a5, at, ai } from "./lint-Cd70ckJ6.mjs";
|
|
4
4
|
const attrBreakRegex = /[\r\n<>'"&]/;
|
|
5
5
|
class XmlUiHelper {
|
|
6
6
|
/**
|