xmlui 0.11.3 → 0.11.4

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 (55) hide show
  1. package/dist/lib/{index-DSUDwtWN.js → index-Cq0EMm3L.js} +329 -315
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-DdH1iCH-.js → initMock-DCigV4Zh.js} +1 -1
  4. package/dist/lib/language-server-web-worker.js +1 -1
  5. package/dist/lib/language-server.js +1 -1
  6. package/dist/lib/{metadata-utils-D27cn-XB.js → metadata-utils-BiolWMg9.js} +5 -6
  7. package/dist/lib/{server-common-hq0poDwA.js → server-common-DyCHOk-z.js} +2674 -2642
  8. package/dist/lib/testing.js +1 -1
  9. package/dist/lib/{transform-Tooy42EB.js → transform-DHf9tQF7.js} +15 -1
  10. package/dist/lib/vite-xmlui-plugin/index.js +19 -2
  11. package/dist/lib/{xmlui-parser-BZZ430Wm.js → xmlui-parser-CHN3mADy.js} +1 -1
  12. package/dist/lib/xmlui-parser.d.ts +2 -0
  13. package/dist/lib/xmlui-parser.js +2 -2
  14. package/dist/lib/{xmlui-serializer-D9D2mQ8m.js → xmlui-serializer-CYNSHAlP.js} +1 -1
  15. package/dist/lib/xmlui.d.ts +2 -1
  16. package/dist/lib/xmlui.js +3 -3
  17. package/dist/metadata/{collectedComponentMetadata-C8Lr9TFe.js → collectedComponentMetadata-CLaDZhmc.js} +340 -311
  18. package/dist/metadata/{initMock-CWwgOjW_.js → initMock-Buqah4JF.js} +1 -1
  19. package/dist/metadata/style.css +1 -1
  20. package/dist/metadata/xmlui-metadata.js +1 -1
  21. package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
  22. package/dist/scripts/package.json +1 -1
  23. package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +113 -0
  24. package/dist/scripts/src/components/Charts/LabelList/LabelList.js +2 -2
  25. package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +2 -2
  26. package/dist/scripts/src/components/Checkbox/Checkbox.js +6 -6
  27. package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +30 -99
  28. package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +57 -14
  29. package/dist/scripts/src/components/DateInput/DateInput.spec.js +88 -17
  30. package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +9 -9
  31. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +111 -86
  32. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +6 -6
  33. package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +30 -28
  34. package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +1 -1
  35. package/dist/scripts/src/components/Select/Select.js +1 -1
  36. package/dist/scripts/src/components/Select/Select.spec.js +92 -0
  37. package/dist/scripts/src/components/Slider/Slider.js +5 -5
  38. package/dist/scripts/src/components/Slider/Slider.spec.js +63 -29
  39. package/dist/scripts/src/components/Splitter/Splitter.js +51 -2
  40. package/dist/scripts/src/components/Splitter/Splitter.spec.js +225 -0
  41. package/dist/scripts/src/components/Splitter/SplitterNative.js +14 -12
  42. package/dist/scripts/src/components/Switch/Switch.js +6 -6
  43. package/dist/scripts/src/components/Switch/Switch.spec.js +44 -46
  44. package/dist/scripts/src/components/TextArea/TextArea.spec.js +94 -2
  45. package/dist/scripts/src/components/TextBox/TextBox.js +5 -3
  46. package/dist/scripts/src/components/TextBox/TextBox.spec.js +92 -59
  47. package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +101 -25
  48. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +5 -4
  49. package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +23 -31
  50. package/dist/scripts/src/language-server/services/format.js +223 -84
  51. package/dist/scripts/src/parsers/xmlui-parser/parser.js +3 -2
  52. package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +16 -0
  53. package/dist/standalone/xmlui-standalone.es.d.ts +4 -2
  54. package/dist/standalone/xmlui-standalone.umd.js +36 -36
  55. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  var _a;
2
2
  import { expect as expect$1, test as test$1 } from "@playwright/test";
3
- import { x as xmlUiMarkupToComponent, P as PART_START_ADORNMENT, a as PART_END_ADORNMENT, b as PART_INPUT } from "./xmlui-parser-BZZ430Wm.js";
3
+ import { x as xmlUiMarkupToComponent, P as PART_START_ADORNMENT, a as PART_END_ADORNMENT, b as PART_INPUT } from "./xmlui-parser-CHN3mADy.js";
4
4
  import chroma from "chroma-js";
5
5
  function mapObject(obj, valFn = (val) => val, keyFn = (val) => val) {
6
6
  const newObject = {};
@@ -4308,6 +4308,9 @@ class Node {
4308
4308
  isAttributeNode() {
4309
4309
  return this.kind === SyntaxKind.AttributeNode;
4310
4310
  }
4311
+ isTagLike() {
4312
+ return this.kind === SyntaxKind.ElementNode || this.kind === SyntaxKind.CData || this.kind == SyntaxKind.Script;
4313
+ }
4311
4314
  isAttributeKeyNode() {
4312
4315
  return this.kind === SyntaxKind.AttributeKeyNode;
4313
4316
  }
@@ -4323,6 +4326,15 @@ class Node {
4323
4326
  findTokenAtPos(position) {
4324
4327
  return findTokenAtPos(this, position);
4325
4328
  }
4329
+ getTriviaNodes() {
4330
+ if (this.pos === this.start) {
4331
+ return null;
4332
+ } else if (this.triviaBefore) {
4333
+ return this.triviaBefore;
4334
+ } else {
4335
+ return this.children[0].getTriviaNodes();
4336
+ }
4337
+ }
4326
4338
  }
4327
4339
  class ElementNode extends Node {
4328
4340
  getAttributeListNode() {
@@ -5029,6 +5041,9 @@ function parseXmlUiMarkup(text) {
5029
5041
  case SyntaxKind.OpenNodeStart:
5030
5042
  parseOpeningTag();
5031
5043
  break;
5044
+ case SyntaxKind.TextNode:
5045
+ bumpAny();
5046
+ break;
5032
5047
  case SyntaxKind.CloseNodeStart: {
5033
5048
  const errNode2 = errNodeUntil(RECOVER_FILE);
5034
5049
  errorAt(DIAGS.unexpectedCloseTag, errNode2.pos, errNode2.end);
@@ -5414,7 +5429,6 @@ function parseXmlUiMarkup(text) {
5414
5429
  let triviaBefore = void 0;
5415
5430
  if (leadingComments.length > 0) {
5416
5431
  triviaBefore = leadingComments;
5417
- leadingComments[0].pos;
5418
5432
  }
5419
5433
  let kind = SyntaxKind.TextNode;
5420
5434
  let end = -1;
@@ -10812,6 +10812,11 @@ class Node {
10812
10812
  isAttributeNode() {
10813
10813
  return this.kind === syntax_kind_SyntaxKind.AttributeNode;
10814
10814
  }
10815
+ isTagLike() {
10816
+ return (this.kind === syntax_kind_SyntaxKind.ElementNode ||
10817
+ this.kind === syntax_kind_SyntaxKind.CData ||
10818
+ this.kind == syntax_kind_SyntaxKind.Script);
10819
+ }
10815
10820
  isAttributeKeyNode() {
10816
10821
  return this.kind === syntax_kind_SyntaxKind.AttributeKeyNode;
10817
10822
  }
@@ -10827,6 +10832,17 @@ class Node {
10827
10832
  findTokenAtPos(position) {
10828
10833
  return findTokenAtPos(this, position);
10829
10834
  }
10835
+ getTriviaNodes() {
10836
+ if (this.pos === this.start) {
10837
+ return null;
10838
+ }
10839
+ else if (this.triviaBefore) {
10840
+ return this.triviaBefore;
10841
+ }
10842
+ else {
10843
+ return this.children[0].getTriviaNodes();
10844
+ }
10845
+ }
10830
10846
  }
10831
10847
  class ElementNode extends (/* unused pure expression or super */ null && (Node)) {
10832
10848
  getAttributeListNode() {
@@ -11643,6 +11659,9 @@ function parseXmlUiMarkup(text) {
11643
11659
  case syntax_kind_SyntaxKind.OpenNodeStart:
11644
11660
  parseOpeningTag();
11645
11661
  break;
11662
+ case syntax_kind_SyntaxKind.TextNode:
11663
+ bumpAny();
11664
+ break;
11646
11665
  case syntax_kind_SyntaxKind.CloseNodeStart: {
11647
11666
  const errNode = errNodeUntil(RECOVER_FILE);
11648
11667
  errorAt(DIAGS.unexpectedCloseTag, errNode.pos, errNode.end);
@@ -12052,11 +12071,9 @@ function parseXmlUiMarkup(text) {
12052
12071
  else {
12053
12072
  pos = token.start;
12054
12073
  }
12055
- let start = pos;
12056
12074
  let triviaBefore = undefined;
12057
12075
  if (leadingComments.length > 0) {
12058
12076
  triviaBefore = leadingComments;
12059
- start = leadingComments[0].pos;
12060
12077
  }
12061
12078
  let kind = syntax_kind_SyntaxKind.TextNode;
12062
12079
  let end = -1;
@@ -1,4 +1,4 @@
1
- import { h as createXmlUiParser, w as nodeToComponentDef, D as DiagnosticCategory, E as ErrCodes, S as SyntaxKind } from "./transform-Tooy42EB.js";
1
+ import { h as createXmlUiParser, w as nodeToComponentDef, D as DiagnosticCategory, E as ErrCodes, S as SyntaxKind } from "./transform-DHf9tQF7.js";
2
2
  const PART_LABEL = "label";
3
3
  const PART_LABELED_ITEM = "labeledItem";
4
4
  const PART_INPUT = "input";
@@ -889,11 +889,13 @@ declare class Node_2 {
889
889
  constructor(kind: SyntaxKind, pos: number, end: number, triviaBefore?: Node_2[], children?: Node_2[]);
890
890
  isElementNode(): this is ElementNode;
891
891
  isAttributeNode(): this is AttributeNode;
892
+ isTagLike(): boolean;
892
893
  isAttributeKeyNode(): this is AttributeKeyNode;
893
894
  isContentListNode(): this is ContentListNode;
894
895
  isAttributeListNode(): this is AttributeListNode;
895
896
  isTagNameNode(): this is TagNameNode;
896
897
  findTokenAtPos(position: number): FindTokenSuccess_2;
898
+ getTriviaNodes(): Node_2[] | null;
897
899
  }
898
900
  export { Node_2 as Node }
899
901
 
@@ -1,5 +1,5 @@
1
- import { q, s, A, t, v, C, r, a, b, f, e, g, c, D, o, E, N, P, S, T, U, j, h, d, i, B, n, k, m, l, w, u, p, x, z, y } from "./transform-Tooy42EB.js";
2
- import { b as b2, L, X, a as a2, c as c2, g as g2, e as e2, l as l2, d as d2, m as m2, p as p2 } from "./xmlui-serializer-D9D2mQ8m.js";
1
+ import { q, s, A, t, v, C, r, a, b, f, e, g, c, D, o, E, N, P, S, T, U, j, h, d, i, B, n, k, m, l, w, u, p, x, z, y } from "./transform-DHf9tQF7.js";
2
+ import { b as b2, L, X, a as a2, c as c2, g as g2, e as e2, l as l2, d as d2, m as m2, p as p2 } from "./xmlui-serializer-CYNSHAlP.js";
3
3
  export {
4
4
  q as AttributeKeyNode,
5
5
  s as AttributeListNode,
@@ -1,4 +1,4 @@
1
- import { v as CORE_NAMESPACE_VALUE, t as COMPOUND_COMP_ID } from "./transform-Tooy42EB.js";
1
+ import { v as CORE_NAMESPACE_VALUE, t as COMPOUND_COMP_ID } from "./transform-DHf9tQF7.js";
2
2
  const componentFileExtension = "xmlui";
3
3
  const codeBehindFileExtension = "xmlui.xs";
4
4
  const moduleFileExtension = "xs";
@@ -1413,7 +1413,7 @@ declare type SpinnerProps = {
1413
1413
  className?: string;
1414
1414
  };
1415
1415
 
1416
- export declare const Splitter: ({ initialPrimarySize, minPrimarySize, maxPrimarySize, orientation, children, style, className, swapped, floating, splitterTemplate, resize, ...rest }: SplitterProps) => JSX_2.Element;
1416
+ export declare const Splitter: ({ initialPrimarySize, minPrimarySize, maxPrimarySize, orientation, children, style, className, swapped, floating, splitterTemplate, resize, visibleChildCount, ...rest }: SplitterProps) => JSX_2.Element;
1417
1417
 
1418
1418
  declare type SplitterProps = {
1419
1419
  children: default_2.ReactNode[] | default_2.ReactNode;
@@ -1427,6 +1427,7 @@ declare type SplitterProps = {
1427
1427
  initialPrimarySize?: string;
1428
1428
  minPrimarySize?: string;
1429
1429
  maxPrimarySize?: string;
1430
+ visibleChildCount?: number;
1430
1431
  };
1431
1432
 
1432
1433
  declare type SPREAD_EXPRESSION = typeof T_SPREAD_EXPRESSION;
package/dist/lib/xmlui.js CHANGED
@@ -1,6 +1,6 @@
1
- import { aa, Z, al, a1, _, $, ai, ak, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, ah, ad, 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, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-DSUDwtWN.js";
2
- import { e as e2, x as x2 } from "./xmlui-parser-BZZ430Wm.js";
3
- import { X as X2 } from "./xmlui-serializer-D9D2mQ8m.js";
1
+ import { aa, Z, al, a1, _, $, ai, ak, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, ah, ad, 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, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-Cq0EMm3L.js";
2
+ import { e as e2, x as x2 } from "./xmlui-parser-CHN3mADy.js";
3
+ import { X as X2 } from "./xmlui-serializer-CYNSHAlP.js";
4
4
  export {
5
5
  aa as ApiInterceptorProvider,
6
6
  Z as AppRoot,