@things-factory/figure-ui 10.1.162 → 10.1.164

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 (35) hide show
  1. package/client/modeller/data-interface.ts +334 -79
  2. package/client/modeller/editor.ts +4 -3
  3. package/client/modeller/figure-data-panel.ts +683 -193
  4. package/client/modeller/figure-preview.ts +46 -30
  5. package/client/modeller/refusals.ts +18 -14
  6. package/client/viewparts/figure-detail-dock.ts +9 -3
  7. package/dist-client/modeller/data-interface.d.ts +91 -30
  8. package/dist-client/modeller/data-interface.js +314 -71
  9. package/dist-client/modeller/data-interface.js.map +1 -1
  10. package/dist-client/modeller/editor.d.ts +1 -1
  11. package/dist-client/modeller/editor.js +3 -2
  12. package/dist-client/modeller/editor.js.map +1 -1
  13. package/dist-client/modeller/figure-data-panel.d.ts +42 -13
  14. package/dist-client/modeller/figure-data-panel.js +679 -186
  15. package/dist-client/modeller/figure-data-panel.js.map +1 -1
  16. package/dist-client/modeller/figure-preview.d.ts +7 -5
  17. package/dist-client/modeller/figure-preview.js +47 -30
  18. package/dist-client/modeller/figure-preview.js.map +1 -1
  19. package/dist-client/modeller/refusals.d.ts +2 -2
  20. package/dist-client/modeller/refusals.js +24 -18
  21. package/dist-client/modeller/refusals.js.map +1 -1
  22. package/dist-client/tsconfig.tsbuildinfo +1 -1
  23. package/dist-client/viewparts/figure-detail-dock.js +9 -3
  24. package/dist-client/viewparts/figure-detail-dock.js.map +1 -1
  25. package/package.json +7 -7
  26. package/test/browser/build.mjs +9 -0
  27. package/test/browser/detail-tabs-page.js +36 -0
  28. package/test/browser/detail-tabs.check.mjs +123 -0
  29. package/test/data-motion.test.ts +173 -53
  30. package/translations/en.json +122 -43
  31. package/translations/es.json +122 -43
  32. package/translations/ja.json +122 -43
  33. package/translations/ko.json +122 -43
  34. package/translations/ms.json +122 -43
  35. package/translations/zh.json +122 -43
@@ -3,33 +3,62 @@ import { LitElement, nothing } from 'lit';
3
3
  import type { FigureAsset } from '@hatiolab/figure-model';
4
4
  declare const FigureDataPanel_base: (new (...args: any[]) => LitElement) & typeof LitElement;
5
5
  /**
6
- * 데이터 -- the figure's public data properties and what each moves inside it (ADR-0051 §2.2). A property is a value a
7
- * consumer maps its own data onto, by its id: a number with a unit and a range, a boolean, or an enum. A connection
8
- * makes a property move a control, a colour, or which clip of a motion group plays and how fast. Every change is one
6
+ * 데이터 -- the data a site sends this figure, in its own names, and what each value moves (ADR-0051 §8, data binding
7
+ * design decision 4). The schema is free: fields the author names, a tree of objects and lists. A binding reads one place
8
+ * of it and moves one thing the figure can do -- a control, a colour, a motion group's clip, speed or pause, a status
9
+ * port, its position, the items in its places -- by the board's rules (value, map, range, scale). Every change is one
9
10
  * part edit, and whether it holds is the kernel's check.
10
11
  *
11
- * The sample is not saved: values tried here, what they would move (figure-model's evaluation), and -- in the preview --
12
- * the figure running on them (`data-sample`).
12
+ * The sample is not saved: data tried here, read the one way a placed figure reads it, and -- in the preview -- the figure
13
+ * running on it (`data-sample`).
13
14
  */
14
15
  export declare class FigureDataPanel extends FigureDataPanel_base {
15
16
  private readonly help;
16
17
  static styles: import("lit").CSSResult[];
17
18
  asset?: FigureAsset;
18
19
  locked: boolean;
20
+ /** The schema row chosen, by its path; its field is edited under it. */
21
+ private chosen;
19
22
  private adding;
23
+ /** A site's data pasted to start the schema from; nothing is kept until the author says so. */
24
+ private pasted;
20
25
  private connecting;
21
- /** The sample's values as typed, by property id; a property left out reads its default. */
26
+ /** The binding opened to edit its rule, by id. */
27
+ private opened;
28
+ private porting;
29
+ /** The rotation card as filled in: the joint, and the fields for on, speed (and its most rpm) and direction. */
30
+ private rotating;
31
+ /** The sample as typed, JSON; empty until edited, the schema's example shown until then. */
22
32
  private sample;
23
33
  private sampling;
24
34
  render(): import("lit-html").TemplateResult<1> | typeof nothing;
25
- private renderProperty;
26
- private renderAddProperty;
27
- private targetName;
28
- private renderConnection;
29
- /** A case per value of the property: what the target takes for it -- a number, a colour, or a clip of the group. */
35
+ private renderSchema;
36
+ private kindWord;
37
+ /** The chosen field's own settings, and a field added under it when it holds fields. */
38
+ private renderField;
39
+ private renderAddField;
40
+ /** A site's data pasted: the schema guessed from it, kept only when the author says so -- units, ranges and closed values are theirs to set. */
41
+ private renderFromSample;
42
+ private behaviorName;
43
+ private renderBindings;
44
+ private renderBinding;
45
+ private renderBindingDetail;
46
+ /** A result editor fitting what the behavior takes: a colour, a clip of the group, true or false, a code, a number. */
47
+ private renderResult;
48
+ /** A result per value of a closed field, and one for every other value. */
30
49
  private renderCases;
31
- private renderAddConnection;
32
- /** Values to try: what they move, by figure-model's evaluation; in the preview, the figure running on them. */
50
+ /** Intervals of a number, each from (inclusive) to (exclusive), either end left open, and one result for the rest. */
51
+ private renderRanges;
52
+ /** Which field of each element is its id, its type, its place, its height in the stack, its status. */
53
+ private renderItemFields;
54
+ private renderAddBinding;
55
+ /**
56
+ * 「+ 회전」: a joint that turns without end, turned by the data -- on, speed in rpm, direction -- in one step. The
57
+ * clips, the group and the bindings it writes are ordinary ones, edited one by one afterwards.
58
+ */
59
+ private renderRotation;
60
+ private renderPorts;
61
+ /** Data to try, read the way a placed figure reads it: what it moves, or why it is refused; in the preview, the figure running on it. */
33
62
  private renderSample;
34
63
  private try;
35
64
  /** The sample to the preview while it is asked for; null lets the preview's figure go back to its own values. */