@aptre/flex-layout 0.4.3 → 0.5.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 (68) hide show
  1. package/dist/Attribute.d.ts +3 -1
  2. package/dist/AttributeDefinitions.d.ts +5 -1
  3. package/dist/Layout.features.e2e.test.d.ts +1 -0
  4. package/dist/Rect.d.ts +1 -1
  5. package/dist/index.mjs +168 -105
  6. package/dist/model/Action.d.ts +158 -4
  7. package/dist/model/Actions.d.ts +23 -23
  8. package/dist/model/BorderNode.d.ts +2 -2
  9. package/dist/model/BorderSet.d.ts +2 -1
  10. package/dist/model/Model.d.ts +1 -1
  11. package/dist/model/Node.d.ts +15 -1
  12. package/dist/model/TabNode.d.ts +4 -3
  13. package/dist/model/TabSetNode.d.ts +1 -1
  14. package/dist/view/Layout.d.ts +1 -1
  15. package/dist/view/OptimizedLayout.d.ts +1 -1
  16. package/package.json +5 -3
  17. package/typedoc/assets/hierarchy.js +1 -1
  18. package/typedoc/assets/navigation.js +1 -1
  19. package/typedoc/assets/search.js +1 -1
  20. package/typedoc/classes/Actions.html +29 -29
  21. package/typedoc/classes/BorderNode.html +3 -3
  22. package/typedoc/classes/Model.html +4 -4
  23. package/typedoc/classes/Node.html +2 -2
  24. package/typedoc/classes/Rect.html +1 -1
  25. package/typedoc/classes/RowNode.html +2 -2
  26. package/typedoc/classes/TabNode.html +4 -4
  27. package/typedoc/classes/TabSetNode.html +3 -3
  28. package/typedoc/functions/createAction.html +2 -0
  29. package/typedoc/hierarchy.html +1 -1
  30. package/typedoc/index.html +1 -1
  31. package/typedoc/interfaces/ActionDataMap.html +18 -0
  32. package/typedoc/interfaces/AddNodeData.html +7 -0
  33. package/typedoc/interfaces/AdjustBorderSplitData.html +3 -0
  34. package/typedoc/interfaces/AdjustWeightsData.html +3 -0
  35. package/typedoc/interfaces/CloseWindowData.html +2 -0
  36. package/typedoc/interfaces/CreateWindowData.html +3 -0
  37. package/typedoc/interfaces/DeleteTabData.html +2 -0
  38. package/typedoc/interfaces/DeleteTabsetData.html +2 -0
  39. package/typedoc/interfaces/IBorderAttributes.html +1 -1
  40. package/typedoc/interfaces/IJsonBorderNode.html +1 -1
  41. package/typedoc/interfaces/IJsonRowNode.html +1 -1
  42. package/typedoc/interfaces/IJsonTabNode.html +1 -1
  43. package/typedoc/interfaces/IJsonTabSetNode.html +1 -1
  44. package/typedoc/interfaces/ILayoutProps.html +4 -4
  45. package/typedoc/interfaces/IOptimizedLayoutProps.html +4 -4
  46. package/typedoc/interfaces/IRowAttributes.html +1 -1
  47. package/typedoc/interfaces/ITabAttributes.html +1 -1
  48. package/typedoc/interfaces/ITabSetAttributes.html +1 -1
  49. package/typedoc/interfaces/MaximizeToggleData.html +3 -0
  50. package/typedoc/interfaces/MoveNodeData.html +6 -0
  51. package/typedoc/interfaces/PopoutTabData.html +2 -0
  52. package/typedoc/interfaces/PopoutTabsetData.html +2 -0
  53. package/typedoc/interfaces/RenameTabData.html +3 -0
  54. package/typedoc/interfaces/ResizeEventParams.html +3 -0
  55. package/typedoc/interfaces/SelectTabData.html +3 -0
  56. package/typedoc/interfaces/SetActiveTabsetData.html +3 -0
  57. package/typedoc/interfaces/UpdateModelAttributesData.html +2 -0
  58. package/typedoc/interfaces/UpdateNodeAttributesData.html +3 -0
  59. package/typedoc/interfaces/VisibilityEventParams.html +3 -0
  60. package/typedoc/types/Action.html +2 -0
  61. package/typedoc/types/ActionTypeValue.html +1 -0
  62. package/typedoc/types/EmptyEventParams.html +2 -0
  63. package/typedoc/types/NodeAttributes.html +2 -0
  64. package/typedoc/types/NodeEventCallback.html +2 -0
  65. package/typedoc/types/NodeEventParams.html +2 -0
  66. package/typedoc/variables/ActionType.html +2 -0
  67. package/dist/Layout.test.d.ts +0 -1
  68. package/typedoc/classes/Action.html +0 -4
@@ -1 +1,3 @@
1
- export {};
1
+ import { ICloseType } from "./model/ICloseType";
2
+ /** Valid types for attribute values - the `config` property uses unknown for user data */
3
+ export type AttributeValue = string | number | boolean | ICloseType | undefined;
@@ -1 +1,5 @@
1
- export {};
1
+ import { AttributeValue } from "./Attribute";
2
+ /** Record type for node attributes - used internally for attribute storage */
3
+ export type AttributeRecord = Record<string, AttributeValue>;
4
+ /** Input type for JSON objects being read - accepts any object with string keys */
5
+ export type JsonInput = Record<string, unknown>;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom/vitest";
package/dist/Rect.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare class Rect {
28
28
  y: number;
29
29
  };
30
30
  positionElement(element: HTMLElement, position?: string): void;
31
- styleWithPosition(style: Record<string, any>, position?: string): Record<string, any>;
31
+ styleWithPosition(style: CSSStyleDeclaration | Record<string, string | number>, position?: string): CSSStyleDeclaration | Record<string, string | number>;
32
32
  contains(x: number, y: number): boolean;
33
33
  removeInsets(insets: {
34
34
  top: number;