xmlui 0.10.8 → 0.10.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.
Files changed (56) hide show
  1. package/dist/lib/{index-CqzCWOUw.mjs → index-C71PAj7E.mjs} +15143 -15045
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-C5CXs0-5.mjs → initMock-Bvbl2Pa3.mjs} +57 -54
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{metadata-utils-DrEexTX9.mjs → metadata-utils-gIOZMGG7.mjs} +51 -46
  7. package/dist/lib/{server-common-ddmPKhK6.mjs → server-common-BfCSNpXG.mjs} +4467 -4437
  8. package/dist/lib/xmlui-parser.d.ts +3 -3
  9. package/dist/lib/xmlui.d.ts +14 -10
  10. package/dist/lib/xmlui.mjs +26 -26
  11. package/dist/metadata/{collectedComponentMetadata-DIT5VbaH.mjs → collectedComponentMetadata-Dn91__HO.mjs} +17636 -17534
  12. package/dist/metadata/{initMock-D6Vi9kU_.mjs → initMock-ghNfStAu.mjs} +57 -54
  13. package/dist/metadata/style.css +1 -1
  14. package/dist/metadata/xmlui-metadata.mjs +1 -1
  15. package/dist/metadata/xmlui-metadata.umd.js +93 -93
  16. package/dist/scripts/package.json +1 -1
  17. package/dist/scripts/src/components/Accordion/AccordionItemNative.js +2 -2
  18. package/dist/scripts/src/components/App/AppNative.js +6 -7
  19. package/dist/scripts/src/components/Breakout/BreakoutNative.js +2 -2
  20. package/dist/scripts/src/components/Button/ButtonNative.js +4 -0
  21. package/dist/scripts/src/components/Carousel/Carousel.js +13 -20
  22. package/dist/scripts/src/components/Carousel/CarouselContext.js +11 -2
  23. package/dist/scripts/src/components/Carousel/CarouselItemNative.js +2 -2
  24. package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
  25. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +4 -4
  26. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +5 -1
  27. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +3 -3
  28. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +5 -1
  29. package/dist/scripts/src/components/DateInput/DateInput.js +7 -9
  30. package/dist/scripts/src/components/DateInput/DateInputNative.js +101 -38
  31. package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +18 -12
  32. package/dist/scripts/src/components/FormItem/ItemWithLabel.js +3 -3
  33. package/dist/scripts/src/components/Input/PartialInput.js +28 -3
  34. package/dist/scripts/src/components/List/ListNative.js +6 -5
  35. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +3 -8
  36. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +2 -2
  37. package/dist/scripts/src/components/Pagination/Pagination.js +2 -1
  38. package/dist/scripts/src/components/Slider/Slider.js +10 -8
  39. package/dist/scripts/src/components/Slider/SliderNative.js +24 -21
  40. package/dist/scripts/src/components/Table/TableNative.js +18 -13
  41. package/dist/scripts/src/components/TextArea/TextAreaNative.js +3 -3
  42. package/dist/scripts/src/components/TextBox/TextBoxNative.js +2 -2
  43. package/dist/scripts/src/components/TimeInput/TimeInput.js +10 -10
  44. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +87 -38
  45. package/dist/scripts/src/components/Toggle/Toggle.js +1 -1
  46. package/dist/scripts/src/components/Tooltip/Tooltip.js +9 -9
  47. package/dist/scripts/src/components/Tooltip/TooltipNative.js +4 -4
  48. package/dist/scripts/src/components/abstractions.js +6 -3
  49. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +4 -1
  50. package/dist/scripts/src/components-core/interception/Backend.js +13 -7
  51. package/dist/scripts/src/components-core/parts.js +0 -4
  52. package/dist/standalone/xmlui-standalone.es.d.ts +20 -14
  53. package/dist/standalone/xmlui-standalone.umd.js +254 -254
  54. package/package.json +1 -1
  55. package/dist/scripts/src/components-core/ScrollContext.js +0 -11
  56. package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
@@ -789,7 +789,7 @@ declare interface IfStatement extends ScripNodeBase {
789
789
  }
790
790
 
791
791
  declare type InterceptorOperationDef = {
792
- method: "get" | "post" | "put" | "delete";
792
+ method: "get" | "post" | "put" | "delete" | "patch" | "head" | "options";
793
793
  url: string | Array<string>;
794
794
  handler: string;
795
795
  requestShape?: any;
@@ -955,8 +955,8 @@ declare type PrefixOpSymbol = "++" | "--";
955
955
 
956
956
  export declare function printComponentLints(lintDiags: ComponentLints): void;
957
957
 
958
- declare type PropertyValueDescription = string | number | {
959
- value: string | number;
958
+ declare type PropertyValueDescription<T = string | number> = T | {
959
+ value: T;
960
960
  description: string;
961
961
  };
962
962
 
@@ -265,6 +265,8 @@ declare type BreakMode = (typeof BreakModeKeys)[number];
265
265
 
266
266
  declare const BreakModeKeys: readonly ["normal", "word", "anywhere", "keep", "hyphenate"];
267
267
 
268
+ export declare const Breakout: ({ children, style, ...rest }: Props_6) => JSX_2.Element;
269
+
268
270
  declare interface BreakStatement extends ScripNodeBase {
269
271
  type: BREAK_STATEMENT;
270
272
  }
@@ -276,7 +278,7 @@ export declare const Button: default_2.ForwardRefExoticComponent<{
276
278
  type?: ButtonType;
277
279
  variant?: ButtonVariant;
278
280
  themeColor?: ButtonThemeColor;
279
- size?: ComponentSize;
281
+ size?: SizeType;
280
282
  disabled?: boolean;
281
283
  children?: default_2.ReactNode | default_2.ReactNode[];
282
284
  icon?: default_2.ReactNode;
@@ -286,7 +288,6 @@ export declare const Button: default_2.ForwardRefExoticComponent<{
286
288
  formId?: string;
287
289
  style?: CSSProperties;
288
290
  gap?: string | number;
289
- accessibilityProps?: any;
290
291
  autoFocus?: boolean;
291
292
  contextualLabel?: string;
292
293
  } & Pick<default_2.HTMLAttributes<HTMLButtonElement>, "className" | "aria-disabled" | "aria-label" | "aria-controls" | "aria-expanded" | "role" | "onFocus" | "onBlur" | "onClick" | "tabIndex" | "onMouseEnter" | "onMouseLeave"> & default_2.RefAttributes<HTMLButtonElement>>;
@@ -494,8 +495,6 @@ export declare type ComponentRendererDef<T extends ComponentDef = any> = {
494
495
 
495
496
  declare type ComponentRendererFn<T extends ComponentDef> = (context: RendererContext<T>) => ReactNode;
496
497
 
497
- declare type ComponentSize = (typeof sizeValues)[number];
498
-
499
498
  export declare interface CompoundComponentDef extends Scriptable {
500
499
  name: string;
501
500
  component: ComponentDef;
@@ -852,7 +851,7 @@ declare interface IfStatement extends ScripNodeBase {
852
851
  }
853
852
 
854
853
  declare type InterceptorOperationDef = {
855
- method: "get" | "post" | "put" | "delete";
854
+ method: "get" | "post" | "put" | "delete" | "patch" | "head" | "options";
856
855
  url: string | Array<string>;
857
856
  handler: string;
858
857
  requestShape?: any;
@@ -1038,8 +1037,6 @@ declare type ParserResult = {
1038
1037
  */
1039
1038
  export declare function parseScssVar(scssStr: any): any;
1040
1039
 
1041
- export declare function partClassName(name: string): string;
1042
-
1043
1040
  declare type POSTFIX_OP_EXPRESSION = typeof T_POSTFIX_OP_EXPRESSION;
1044
1041
 
1045
1042
  declare interface PostfixOpExpression extends ExpressionBase {
@@ -1068,8 +1065,8 @@ declare type ProjectCompilation = {
1068
1065
  themes: Record<string, ThemeDefinition>;
1069
1066
  };
1070
1067
 
1071
- declare type PropertyValueDescription = string | number | {
1072
- value: string | number;
1068
+ declare type PropertyValueDescription<T = string | number> = T | {
1069
+ value: T;
1073
1070
  description: string;
1074
1071
  };
1075
1072
 
@@ -1177,6 +1174,11 @@ declare type Props_5 = {
1177
1174
  passwordHiddenIcon?: string;
1178
1175
  };
1179
1176
 
1177
+ declare type Props_6 = {
1178
+ children?: ReactNode;
1179
+ style?: React.CSSProperties;
1180
+ };
1181
+
1180
1182
  declare type REACTIVE_VAR_DECLARATION = typeof T_REACTIVE_VAR_DECLARATION;
1181
1183
 
1182
1184
  declare interface ReactiveVarDeclaration extends ExpressionBase {
@@ -1262,7 +1264,9 @@ declare interface SequenceExpression extends ExpressionBase {
1262
1264
  loose?: boolean;
1263
1265
  }
1264
1266
 
1265
- declare const sizeValues: string[];
1267
+ declare type SizeType = (typeof sizeValues)[number];
1268
+
1269
+ declare const sizeValues: readonly ["xs", "sm", "md", "lg"];
1266
1270
 
1267
1271
  export declare const Spinner: ForwardRefExoticComponent<SpinnerProps & RefAttributes<HTMLDivElement>>;
1268
1272
 
@@ -1,40 +1,40 @@
1
- import { z as e, A as t, B as o, E as n, I as r, L as p, K as l, N as u, C as i, j as m, i as C, S as d, W as S, b as x, P as T, Q as c, l as g, n as y, G as A, H as h, J as v, V as B, F as I, c as L, e as R, f as b, h as k, x as E, k as M, p as N, U as V, s as f, t as H, O as P, q as U, v as D, R as X, w as j, M as q, u as w, D as z, y as F } from "./index-CqzCWOUw.mjs";
1
+ import { z as s, A as t, M as o, B as n, E as r, I as p, L as u, K as l, N as i, C as d, j as m, i as C, S, W as x, b as T, Q as c, R as g, l as y, n as A, G as h, H as v, J as B, V as k, F as I, c as L, e as R, f as b, h as E, x as M, k as V, p as f, s as H, t as N, P, q as U, v as D, U as X, w as j, O as q, u as w, D as z, y as F } from "./index-C71PAj7E.mjs";
2
2
  import { X as J } from "./xmlui-serializer-a0O0jFY-.mjs";
3
3
  export {
4
- e as ApiInterceptorProvider,
4
+ s as ApiInterceptorProvider,
5
5
  t as AppRoot,
6
- o as Button,
7
- n as ErrorBoundary,
8
- r as Icon,
9
- p as LinkNative,
6
+ o as Breakout,
7
+ n as Button,
8
+ r as ErrorBoundary,
9
+ p as Icon,
10
+ u as LinkNative,
10
11
  l as Logo,
11
- u as NestedApp,
12
- i as Spinner,
12
+ i as NestedApp,
13
+ d as Spinner,
13
14
  m as Splitter,
14
15
  C as Stack,
15
- d as StandaloneApp,
16
- S as StandaloneComponent,
17
- x as StandaloneExtensionManager,
18
- T as StyleProvider,
19
- c as StyleRegistry,
20
- g as TabItem,
21
- y as Tabs,
22
- A as Text,
23
- h as TextBox,
24
- v as ToneChangerButton,
25
- B as VisuallyHidden,
16
+ S as StandaloneApp,
17
+ x as StandaloneComponent,
18
+ T as StandaloneExtensionManager,
19
+ c as StyleProvider,
20
+ g as StyleRegistry,
21
+ y as TabItem,
22
+ A as Tabs,
23
+ h as Text,
24
+ v as TextBox,
25
+ B as ToneChangerButton,
26
+ k as VisuallyHidden,
26
27
  J as XmlUiHelper,
27
28
  I as builtInThemes,
28
29
  L as createComponentRenderer,
29
30
  R as createMetadata,
30
31
  b as d,
31
- k as dComponent,
32
- E as errReportComponent,
33
- M as getColor,
34
- N as parseScssVar,
35
- V as partClassName,
36
- f as startApp,
37
- H as toCssVar,
32
+ E as dComponent,
33
+ M as errReportComponent,
34
+ V as getColor,
35
+ f as parseScssVar,
36
+ H as startApp,
37
+ N as toCssVar,
38
38
  P as useAppLayoutContext,
39
39
  U as useColors,
40
40
  D as useDevTools,