xmlui 0.10.15 → 0.10.16

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 (43) hide show
  1. package/dist/lib/{index-axjeT2uJ.mjs → index-D4RYJasT.mjs} +2251 -575
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-BoTWMs19.mjs → initMock-qzTZlH-6.mjs} +1 -1
  4. package/dist/lib/xmlui-parser.d.ts +1 -1
  5. package/dist/lib/xmlui.d.ts +4 -6
  6. package/dist/lib/xmlui.mjs +1 -1
  7. package/dist/metadata/{collectedComponentMetadata-CQywuPDB.mjs → collectedComponentMetadata-BQaefK3f.mjs} +2536 -861
  8. package/dist/metadata/{initMock-Bi5kF5Af.mjs → initMock-Cz6QssI3.mjs} +1 -1
  9. package/dist/metadata/style.css +1 -1
  10. package/dist/metadata/xmlui-metadata.mjs +1 -1
  11. package/dist/metadata/xmlui-metadata.umd.js +3 -3
  12. package/dist/scripts/package.json +1 -1
  13. package/dist/scripts/src/components/Animation/AnimationNative.js +5 -1
  14. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +1 -5
  15. package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +2 -0
  16. package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +263 -82
  17. package/dist/scripts/src/components/Form/FormNative.js +33 -25
  18. package/dist/scripts/src/components/Icon/IconNative.js +18 -15
  19. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +1 -1
  20. package/dist/scripts/src/components/NumberBox/NumberBox.js +4 -4
  21. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +109 -426
  22. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +18 -4
  23. package/dist/scripts/src/components/Option/Option.js +3 -1
  24. package/dist/scripts/src/components/Select/HiddenOption.js +1 -1
  25. package/dist/scripts/src/components/Slider/Slider.spec.js +46 -13
  26. package/dist/scripts/src/components/Slider/SliderNative.js +19 -9
  27. package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +2894 -0
  28. package/dist/scripts/src/components/Tree/Tree.spec.js +2932 -0
  29. package/dist/scripts/src/components/Tree/TreeComponent.js +266 -10
  30. package/dist/scripts/src/components/Tree/TreeNative.js +1048 -23
  31. package/dist/scripts/src/components/Tree/testData.js +272 -0
  32. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +1 -0
  33. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +13 -14
  34. package/dist/scripts/src/components-core/utils/treeUtils.js +187 -12
  35. package/dist/scripts/src/testing/ComponentDrivers.js +77 -3
  36. package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +2 -2
  37. package/dist/scripts/src/testing/drivers/TreeDriver.js +13 -0
  38. package/dist/scripts/src/testing/fixtures.js +7 -2
  39. package/dist/standalone/xmlui-standalone.es.d.ts +4 -6
  40. package/dist/standalone/xmlui-standalone.umd.js +34 -34
  41. package/package.json +1 -1
  42. package/dist/scripts/src/components/Animation/Animation.js +0 -50
  43. package/dist/scripts/src/testing/drivers/SliderDriver.js +0 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmlui",
3
- "version": "0.10.15",
3
+ "version": "0.10.16",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "start-test-bed": "cd src/testing/infrastructure && xmlui start",
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.animationComponentRenderer = exports.AnimationMd = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const renderers_1 = require("../../components-core/renderers");
6
- const metadata_helpers_1 = require("../metadata-helpers");
7
- const AnimationNative_1 = require("./AnimationNative");
8
- const COMP = "Animation";
9
- exports.AnimationMd = (0, metadata_helpers_1.createMetadata)({
10
- status: "experimental",
11
- description: ``,
12
- props: {
13
- animation: {
14
- description: `The animation object to be applied to the component`,
15
- },
16
- animateWhenInView: {
17
- description: `Indicates whether the animation should start when the component is in view`,
18
- },
19
- duration: {
20
- description: `The duration of the animation in milliseconds`,
21
- },
22
- once: {
23
- description: `Indicates whether the animation should only run once`,
24
- defaultValue: AnimationNative_1.defaultProps.once,
25
- },
26
- reverse: {
27
- description: `Indicates whether the animation should run in reverse`,
28
- defaultValue: AnimationNative_1.defaultProps.reverse,
29
- },
30
- loop: {
31
- description: `Indicates whether the animation should loop`,
32
- defaultValue: AnimationNative_1.defaultProps.loop,
33
- },
34
- delay: {
35
- description: `The delay before the animation starts in milliseconds`,
36
- defaultValue: AnimationNative_1.defaultProps.delay,
37
- },
38
- },
39
- events: {
40
- started: { description: `Event fired when the animation starts` },
41
- stopped: { description: `Event fired when the animation stops` },
42
- },
43
- apis: {
44
- start: { description: `Starts the animation` },
45
- stop: { description: `Stops the animation` },
46
- },
47
- });
48
- exports.animationComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.AnimationMd, ({ registerComponentApi, renderChild, node, extractValue, lookupEventHandler }) => {
49
- return ((0, jsx_runtime_1.jsx)(AnimationNative_1.Animation, { registerComponentApi: registerComponentApi, animation: extractValue(node.props.animation), onStop: lookupEventHandler("stopped"), onStart: lookupEventHandler("started"), duration: extractValue.asOptionalNumber(node.props.duration), animateWhenInView: extractValue.asOptionalBoolean(node.props.animateWhenInView), once: extractValue.asOptionalBoolean(node.props.once), reverse: extractValue.asOptionalBoolean(node.props.reverse), loop: extractValue.asOptionalBoolean(node.props.loop), delay: extractValue.asOptionalNumber(node.props.delay), children: renderChild(node.children) }));
50
- });
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SliderDriver = void 0;
4
- const ComponentDrivers_1 = require("../ComponentDrivers");
5
- const parts_1 = require("../../components-core/parts");
6
- class SliderDriver extends ComponentDrivers_1.InputComponentDriver {
7
- get input() {
8
- return this.getByPartName(parts_1.PART_INPUT);
9
- }
10
- get track() {
11
- return this.getByPartName(parts_1.PART_TRACK);
12
- }
13
- get range() {
14
- return this.getByPartName(parts_1.PART_RANGE);
15
- }
16
- get thumb() {
17
- return this.getByPartName(parts_1.PART_THUMB);
18
- }
19
- }
20
- exports.SliderDriver = SliderDriver;