architwin 1.14.16 → 1.15.0

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/lib/architwin.d.ts +13 -2
  2. package/lib/architwin.js +1 -1
  3. package/lib/atwinui/components/toolbar/i18n.js +71 -3
  4. package/lib/atwinui/components/toolbar/index.js +5 -1
  5. package/lib/atwinui/components/toolbar/menuBar.d.ts +1 -0
  6. package/lib/atwinui/components/toolbar/menuBar.js +12 -0
  7. package/lib/atwinui/components/toolbar/spacePartition/roomFormPane.d.ts +2 -0
  8. package/lib/atwinui/components/toolbar/spacePartition/roomFormPane.js +41 -12
  9. package/lib/atwinui/components/toolbar/spacePartition/roomTreePane.d.ts +21 -2
  10. package/lib/atwinui/components/toolbar/spacePartition/roomTreePane.js +32 -12
  11. package/lib/atwinui/components/toolbar/tagFormPane.js +2 -1
  12. package/lib/atwinui/components/toolbar/tagListPane.d.ts +7 -2
  13. package/lib/atwinui/components/toolbar/tagListPane.js +126 -38
  14. package/lib/atwinui/events.d.ts +3 -1
  15. package/lib/atwinui/events.js +629 -107
  16. package/lib/atwinui/index.js +9 -1
  17. package/lib/color.js +12 -1
  18. package/lib/loaders/polydrawerLoader.js +3 -0
  19. package/lib/types.d.ts +75 -1
  20. package/lib/types.js +17 -0
  21. package/package.json +1 -1
  22. package/static/atwinui.css +55 -7
  23. package/static/colors/SOFT_ROYAL_BLUE.png +0 -0
  24. package/static/colors/YELLOW_ORANGE.png +0 -0
  25. package/static/utility.css +156 -537
  26. package/lib/atwinui/components/toolbar/roomCreation/roomFormPane.d.ts +0 -68
  27. package/lib/atwinui/components/toolbar/roomCreation/roomFormPane.js +0 -798
  28. package/lib/atwinui/components/toolbar/roomCreation/roomLayerListPane.d.ts +0 -33
  29. package/lib/atwinui/components/toolbar/roomCreation/roomLayerListPane.js +0 -447
  30. package/lib/atwinui/components/toolbar/tagIotForm.d.ts +0 -20
  31. package/lib/atwinui/components/toolbar/tagIotForm.js +0 -391
  32. package/lib/atwinui/components/toolbar/usersPane.d.ts +0 -14
  33. package/lib/atwinui/components/toolbar/usersPane.js +0 -273
  34. package/lib/convert.d.ts +0 -13
  35. package/lib/convert.js +0 -54
@@ -1,68 +0,0 @@
1
- import { FORM_MODE, RoomNode, PolygonData } from "../../../../types";
2
- export declare function renderRoomFormPane(): HTMLDivElement;
3
- /**
4
- * Toggles the state of the partition drawing functionality.
5
- * If drawing is not active, it starts the drawing process.
6
- * Otherwise, it cancels the current drawing, updates partition data,
7
- * and displays the relevant UI elements for partitions.
8
- */
9
- export declare function toggleDrawPartitionButton(): void;
10
- /**
11
- * Displays the partition form based on the current form mode.
12
- * Handles different UI behaviors for edit and add modes.
13
- */
14
- export declare function displayPartitionFormMode(): void;
15
- /**
16
- * Clears the partition form by resetting UI elements and internal data.
17
- * - Navigates back to the partition list view.
18
- * - Cancels any ongoing drawing actions.
19
- * - Hides relevant UI elements like wall height, delete button, and partition container.
20
- * - Resets the form and clears data related to the current partition, room, and polygon.
21
- */
22
- export declare function clearPartitionForm(): void;
23
- /**
24
- * Retrieves the form data for creating or editing a room partition.
25
- * - Collects values from form inputs (name, floor level, memo).
26
- * - Constructs a payload object containing the room data, including the space UUID and polygon data.
27
- * - Updates the polygon data for each partition in the currentPartitionDataArray to reflect the new floor level.
28
- * - If there is existing room data (currentEditRoomData), it returns that data with updated values.
29
- *
30
- * @returns {RoomNode} The room data object with partition and floor details.
31
- */
32
- export declare function getPartitionFormData(): RoomNode;
33
- /**
34
- * Sets the saving mode for the partition form.
35
- * - If saving is enabled, `isSaving` is set to true, indicating that the form is in saving mode.
36
- * - If saving is disabled, `isSaving` is set to false.
37
- *
38
- * @param {boolean} savingEnabled - True to enable saving mode, false to disable.
39
- */
40
- export declare function setPartitionSavingMode(savingEnabled: boolean): void;
41
- /**
42
- * Gets the current saving mode for the partition form.
43
- *
44
- * @returns {boolean} - Returns true if saving mode is enabled, false otherwise.
45
- */
46
- export declare function getPartitionSavingMode(): boolean;
47
- /**
48
- * Sets the form mode for the partition form.
49
- * - The form mode can be one of the predefined FORM_MODE values (e.g., CREATE, EDIT, etc.).
50
- *
51
- * @param {FORM_MODE} formType - The type of form mode to set.
52
- */
53
- export declare function setPartitionFormMode(formType: FORM_MODE): void;
54
- /**
55
- * Gets the current form mode for the partition form.
56
- *
57
- * @returns {FORM_MODE} - The current form mode.
58
- */
59
- export declare function getPartitionFormMode(): FORM_MODE;
60
- /**
61
- * Sets the polygon data for the current partition, including rounding numeric values
62
- * to two decimal places and assigning UUIDs to the floor and walls.
63
- *
64
- * @param {PolygonData} payload - The polygon data to set, including floor and walls.
65
- */
66
- export declare function setPolygonData(payload: PolygonData): void;
67
- export declare function getNewlyAddedPartition(): Array<RoomNode>;
68
- export declare function getDeletedSavedPartitionArray(): Array<RoomNode>;