flexlayout-react 0.8.11 → 0.8.13
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.
- package/README.md +16 -5
- package/declarations/Attribute.d.ts +25 -1
- package/declarations/AttributeDefinitions.d.ts +18 -1
- package/declarations/DockLocation.d.ts +22 -0
- package/declarations/I18nLabel.d.ts +2 -1
- package/declarations/Orientation.d.ts +4 -0
- package/declarations/Rect.d.ts +3 -0
- package/declarations/index.d.ts +1 -0
- package/declarations/model/BorderNode.d.ts +53 -0
- package/declarations/model/BorderSet.d.ts +28 -0
- package/declarations/model/IDraggable.d.ts +4 -0
- package/declarations/model/IDropTarget.d.ts +10 -0
- package/declarations/model/LayoutWindow.d.ts +16 -0
- package/declarations/model/Model.d.ts +55 -0
- package/declarations/model/Node.d.ts +61 -0
- package/declarations/model/RowNode.d.ts +67 -0
- package/declarations/model/TabNode.d.ts +79 -0
- package/declarations/model/TabSetNode.d.ts +60 -0
- package/declarations/model/Utils.d.ts +8 -0
- package/declarations/view/BorderButton.d.ts +13 -1
- package/declarations/view/BorderTab.d.ts +8 -0
- package/declarations/view/BorderTabSet.d.ts +10 -1
- package/declarations/view/DragContainer.d.ts +9 -1
- package/declarations/view/ErrorBoundary.d.ts +22 -1
- package/declarations/view/Icons.d.ts +1 -0
- package/declarations/view/Layout.d.ts +143 -1
- package/declarations/view/Overlay.d.ts +8 -1
- package/declarations/view/PopoutWindow.d.ts +14 -1
- package/declarations/view/PopupMenu.d.ts +12 -1
- package/declarations/view/Row.d.ts +9 -1
- package/declarations/view/Splitter.d.ts +14 -1
- package/declarations/view/Tab.d.ts +11 -1
- package/declarations/view/TabButton.d.ts +11 -1
- package/declarations/view/TabButtonStamp.d.ts +9 -1
- package/declarations/view/TabOverflowHook.d.ts +16 -1
- package/declarations/view/TabSet.d.ts +9 -1
- package/declarations/view/Utils.d.ts +13 -0
- package/lib/index.js +6410 -22
- package/package.json +34 -26
- package/ChangeLog.txt +0 -370
- package/declarations/DragDrop.d.ts +0 -15
- package/declarations/PopupMenu.d.ts +0 -1
- package/declarations/model/SplitterNode.d.ts +0 -5
- package/declarations/model/WindowLayout.d.ts +0 -24
- package/declarations/src/Attribute.d.ts +0 -1
- package/declarations/src/AttributeDefinitions.d.ts +0 -1
- package/declarations/src/DockLocation.d.ts +0 -12
- package/declarations/src/DropInfo.d.ts +0 -12
- package/declarations/src/I18nLabel.d.ts +0 -10
- package/declarations/src/Orientation.d.ts +0 -7
- package/declarations/src/PopupMenu.d.ts +0 -1
- package/declarations/src/Rect.d.ts +0 -31
- package/declarations/src/Types.d.ts +0 -92
- package/declarations/src/index.d.ts +0 -20
- package/declarations/src/model/Action.d.ts +0 -5
- package/declarations/src/model/Actions.d.ts +0 -110
- package/declarations/src/model/BorderNode.d.ts +0 -28
- package/declarations/src/model/BorderSet.d.ts +0 -3
- package/declarations/src/model/ICloseType.d.ts +0 -5
- package/declarations/src/model/IDraggable.d.ts +0 -2
- package/declarations/src/model/IDropTarget.d.ts +0 -2
- package/declarations/src/model/IJsonModel.d.ts +0 -153
- package/declarations/src/model/Model.d.ts +0 -98
- package/declarations/src/model/Node.d.ts +0 -16
- package/declarations/src/model/RowNode.d.ts +0 -11
- package/declarations/src/model/TabNode.d.ts +0 -36
- package/declarations/src/model/TabSetNode.d.ts +0 -37
- package/declarations/src/model/Utils.d.ts +0 -1
- package/declarations/src/view/BorderButton.d.ts +0 -1
- package/declarations/src/view/BorderTab.d.ts +0 -2
- package/declarations/src/view/BorderTabSet.d.ts +0 -1
- package/declarations/src/view/DragContainer.d.ts +0 -1
- package/declarations/src/view/ErrorBoundary.d.ts +0 -1
- package/declarations/src/view/FloatingWindow.d.ts +0 -1
- package/declarations/src/view/Icons.d.ts +0 -7
- package/declarations/src/view/Layout.d.ts +0 -113
- package/declarations/src/view/Overlay.d.ts +0 -1
- package/declarations/src/view/PopupMenu.d.ts +0 -1
- package/declarations/src/view/Row.d.ts +0 -1
- package/declarations/src/view/Splitter.d.ts +0 -1
- package/declarations/src/view/Tab.d.ts +0 -1
- package/declarations/src/view/TabButton.d.ts +0 -1
- package/declarations/src/view/TabButtonStamp.d.ts +0 -1
- package/declarations/src/view/TabOverflowHook.d.ts +0 -1
- package/declarations/src/view/TabSet.d.ts +0 -1
- package/declarations/src/view/Utils.d.ts +0 -4
- package/declarations/view/ExtendedResizeObserver.d.ts +0 -23
- package/declarations/view/FloatingWindow.d.ts +0 -1
- package/declarations/view/FloatingWindowTab.d.ts +0 -1
- package/declarations/view/TabFloating.d.ts +0 -1
- package/dist/flexlayout.js +0 -610
- package/dist/flexlayout_min.js +0 -2
- package/dist/flexlayout_min.js.LICENSE.txt +0 -29
- package/dist/src/Attribute.js +0 -43
- package/dist/src/Attribute.js.map +0 -1
- package/dist/src/AttributeDefinitions.js +0 -132
- package/dist/src/AttributeDefinitions.js.map +0 -1
- package/dist/src/DockLocation.js +0 -121
- package/dist/src/DockLocation.js.map +0 -1
- package/dist/src/DropInfo.js +0 -10
- package/dist/src/DropInfo.js.map +0 -1
- package/dist/src/I18nLabel.js +0 -14
- package/dist/src/I18nLabel.js.map +0 -1
- package/dist/src/Orientation.js +0 -23
- package/dist/src/Orientation.js.map +0 -1
- package/dist/src/Rect.js +0 -111
- package/dist/src/Rect.js.map +0 -1
- package/dist/src/Types.js +0 -95
- package/dist/src/Types.js.map +0 -1
- package/dist/src/index.js +0 -22
- package/dist/src/index.js.map +0 -1
- package/dist/src/model/Action.js +0 -7
- package/dist/src/model/Action.js.map +0 -1
- package/dist/src/model/Actions.js +0 -170
- package/dist/src/model/Actions.js.map +0 -1
- package/dist/src/model/BorderNode.js +0 -390
- package/dist/src/model/BorderNode.js.map +0 -1
- package/dist/src/model/BorderSet.js +0 -67
- package/dist/src/model/BorderSet.js.map +0 -1
- package/dist/src/model/ICloseType.js +0 -7
- package/dist/src/model/ICloseType.js.map +0 -1
- package/dist/src/model/IDraggable.js +0 -2
- package/dist/src/model/IDraggable.js.map +0 -1
- package/dist/src/model/IDropTarget.js +0 -2
- package/dist/src/model/IDropTarget.js.map +0 -1
- package/dist/src/model/IJsonModel.js +0 -2
- package/dist/src/model/IJsonModel.js.map +0 -1
- package/dist/src/model/LayoutWindow.js +0 -81
- package/dist/src/model/LayoutWindow.js.map +0 -1
- package/dist/src/model/Model.js +0 -608
- package/dist/src/model/Model.js.map +0 -1
- package/dist/src/model/Node.js +0 -218
- package/dist/src/model/Node.js.map +0 -1
- package/dist/src/model/RowNode.js +0 -492
- package/dist/src/model/RowNode.js.map +0 -1
- package/dist/src/model/TabNode.js +0 -293
- package/dist/src/model/TabNode.js.map +0 -1
- package/dist/src/model/TabSetNode.js +0 -469
- package/dist/src/model/TabSetNode.js.map +0 -1
- package/dist/src/model/Utils.js +0 -48
- package/dist/src/model/Utils.js.map +0 -1
- package/dist/src/view/BorderButton.js +0 -126
- package/dist/src/view/BorderButton.js.map +0 -1
- package/dist/src/view/BorderTab.js +0 -44
- package/dist/src/view/BorderTab.js.map +0 -1
- package/dist/src/view/BorderTabSet.js +0 -138
- package/dist/src/view/BorderTabSet.js.map +0 -1
- package/dist/src/view/DragContainer.js +0 -16
- package/dist/src/view/DragContainer.js.map +0 -1
- package/dist/src/view/ErrorBoundary.js +0 -24
- package/dist/src/view/ErrorBoundary.js.map +0 -1
- package/dist/src/view/Icons.js +0 -29
- package/dist/src/view/Icons.js.map +0 -1
- package/dist/src/view/Layout.js +0 -881
- package/dist/src/view/Layout.js.map +0 -1
- package/dist/src/view/Overlay.js +0 -9
- package/dist/src/view/Overlay.js.map +0 -1
- package/dist/src/view/PopoutWindow.js +0 -129
- package/dist/src/view/PopoutWindow.js.map +0 -1
- package/dist/src/view/PopupMenu.js +0 -89
- package/dist/src/view/PopupMenu.js.map +0 -1
- package/dist/src/view/Row.js +0 -46
- package/dist/src/view/Row.js.map +0 -1
- package/dist/src/view/SizeTracker.js +0 -12
- package/dist/src/view/SizeTracker.js.map +0 -1
- package/dist/src/view/Splitter.js +0 -192
- package/dist/src/view/Splitter.js.map +0 -1
- package/dist/src/view/Tab.js +0 -91
- package/dist/src/view/Tab.js.map +0 -1
- package/dist/src/view/TabButton.js +0 -124
- package/dist/src/view/TabButton.js.map +0 -1
- package/dist/src/view/TabButtonStamp.js +0 -15
- package/dist/src/view/TabButtonStamp.js.map +0 -1
- package/dist/src/view/TabOverflowHook.js +0 -266
- package/dist/src/view/TabOverflowHook.js.map +0 -1
- package/dist/src/view/TabSet.js +0 -256
- package/dist/src/view/TabSet.js.map +0 -1
- package/dist/src/view/Utils.js +0 -110
- package/dist/src/view/Utils.js.map +0 -1
- package/lib/Attribute.js +0 -43
- package/lib/Attribute.js.map +0 -1
- package/lib/AttributeDefinitions.js +0 -132
- package/lib/AttributeDefinitions.js.map +0 -1
- package/lib/DockLocation.js +0 -121
- package/lib/DockLocation.js.map +0 -1
- package/lib/DropInfo.js +0 -10
- package/lib/DropInfo.js.map +0 -1
- package/lib/I18nLabel.js +0 -14
- package/lib/I18nLabel.js.map +0 -1
- package/lib/Orientation.js +0 -23
- package/lib/Orientation.js.map +0 -1
- package/lib/Rect.js +0 -111
- package/lib/Rect.js.map +0 -1
- package/lib/Types.js +0 -95
- package/lib/Types.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/model/Action.js +0 -7
- package/lib/model/Action.js.map +0 -1
- package/lib/model/Actions.js +0 -170
- package/lib/model/Actions.js.map +0 -1
- package/lib/model/BorderNode.js +0 -390
- package/lib/model/BorderNode.js.map +0 -1
- package/lib/model/BorderSet.js +0 -67
- package/lib/model/BorderSet.js.map +0 -1
- package/lib/model/ICloseType.js +0 -7
- package/lib/model/ICloseType.js.map +0 -1
- package/lib/model/IDraggable.js +0 -2
- package/lib/model/IDraggable.js.map +0 -1
- package/lib/model/IDropTarget.js +0 -2
- package/lib/model/IDropTarget.js.map +0 -1
- package/lib/model/IJsonModel.js +0 -2
- package/lib/model/IJsonModel.js.map +0 -1
- package/lib/model/LayoutWindow.js +0 -81
- package/lib/model/LayoutWindow.js.map +0 -1
- package/lib/model/Model.js +0 -608
- package/lib/model/Model.js.map +0 -1
- package/lib/model/Node.js +0 -218
- package/lib/model/Node.js.map +0 -1
- package/lib/model/RowNode.js +0 -492
- package/lib/model/RowNode.js.map +0 -1
- package/lib/model/TabNode.js +0 -293
- package/lib/model/TabNode.js.map +0 -1
- package/lib/model/TabSetNode.js +0 -469
- package/lib/model/TabSetNode.js.map +0 -1
- package/lib/model/Utils.js +0 -48
- package/lib/model/Utils.js.map +0 -1
- package/lib/view/BorderButton.js +0 -126
- package/lib/view/BorderButton.js.map +0 -1
- package/lib/view/BorderTab.js +0 -56
- package/lib/view/BorderTab.js.map +0 -1
- package/lib/view/BorderTabSet.js +0 -138
- package/lib/view/BorderTabSet.js.map +0 -1
- package/lib/view/DragContainer.js +0 -16
- package/lib/view/DragContainer.js.map +0 -1
- package/lib/view/ErrorBoundary.js +0 -24
- package/lib/view/ErrorBoundary.js.map +0 -1
- package/lib/view/Icons.js +0 -29
- package/lib/view/Icons.js.map +0 -1
- package/lib/view/Layout.js +0 -881
- package/lib/view/Layout.js.map +0 -1
- package/lib/view/Overlay.js +0 -9
- package/lib/view/Overlay.js.map +0 -1
- package/lib/view/PopoutWindow.js +0 -129
- package/lib/view/PopoutWindow.js.map +0 -1
- package/lib/view/PopupMenu.js +0 -89
- package/lib/view/PopupMenu.js.map +0 -1
- package/lib/view/Row.js +0 -46
- package/lib/view/Row.js.map +0 -1
- package/lib/view/SizeTracker.js +0 -12
- package/lib/view/SizeTracker.js.map +0 -1
- package/lib/view/Splitter.js +0 -197
- package/lib/view/Splitter.js.map +0 -1
- package/lib/view/Tab.js +0 -91
- package/lib/view/Tab.js.map +0 -1
- package/lib/view/TabButton.js +0 -124
- package/lib/view/TabButton.js.map +0 -1
- package/lib/view/TabButtonStamp.js +0 -15
- package/lib/view/TabButtonStamp.js.map +0 -1
- package/lib/view/TabOverflowHook.js +0 -266
- package/lib/view/TabOverflowHook.js.map +0 -1
- package/lib/view/TabSet.js +0 -269
- package/lib/view/TabSet.js.map +0 -1
- package/lib/view/Utils.js +0 -110
- package/lib/view/Utils.js.map +0 -1
- package/playwright-report/data/01f8ff379b7b7c06b0f8dbd65cbd55e95f8ca470.zip +0 -0
- package/playwright-report/data/02a706b995d751dee8ac0429e29eafb796a23f96.zip +0 -0
- package/playwright-report/data/04468c5a7304bad1acbe32d3376bfc5038e172d9.zip +0 -0
- package/playwright-report/data/04ffe14721deea0c6402bb96c78055475f6cd687.zip +0 -0
- package/playwright-report/data/07e1bb8bd6407ceafa7a1051839d398f34b41a52.zip +0 -0
- package/playwright-report/data/0d17b99e2ddd975da4868f295b370a9fc9b55993.zip +0 -0
- package/playwright-report/data/108805618d29c7800d55d7dd8da36829fec366bd.zip +0 -0
- package/playwright-report/data/1271fd2bc76809c25b62351f4321b396e745a199.zip +0 -0
- package/playwright-report/data/16bd316f5e3e9ad6c9dc2a6a0388f3425c1a61d9.zip +0 -0
- package/playwright-report/data/1a1b06cebe59d981e21198164093230b0a1704fd.zip +0 -0
- package/playwright-report/data/1b3b6bba4aca415bc586b2a0abb18410af26fbf1.zip +0 -0
- package/playwright-report/data/1ce927369a55edf14ec99e0029d1a342cb0fcfa4.zip +0 -0
- package/playwright-report/data/20a694648a90f0a805a4397b73699142e5dd50c1.zip +0 -0
- package/playwright-report/data/211f1c8fc3f5d052d935906201f29a1e42a2fbd8.zip +0 -0
- package/playwright-report/data/2176124681e769fbba593a272e67331fd69e56ef.zip +0 -0
- package/playwright-report/data/2487db6273b09acd9a62a9ecfa8f1e411cc769df.zip +0 -0
- package/playwright-report/data/25abefed6606e15cac6dc83e3ea4e85896233020.zip +0 -0
- package/playwright-report/data/2752051b8593d432be1a623813f2dbee043dc959.zip +0 -0
- package/playwright-report/data/2d72001a7f57a11282fe741ca22501b34f7576a2.zip +0 -0
- package/playwright-report/data/308de4d252afe1db5aeda783ea3eaf09368aa812.zip +0 -0
- package/playwright-report/data/30f265807a34ee9bb2ddd931970be6f572a42ffe.zip +0 -0
- package/playwright-report/data/326599ace543d3340403f5eaa0f28ef73f7d3cfc.zip +0 -0
- package/playwright-report/data/3662fcf1839c6bb164e1aceea5e25b410bae6286.zip +0 -0
- package/playwright-report/data/38cdebbb090386af04f96f13bf45b2a23feb6cf5.zip +0 -0
- package/playwright-report/data/3b45c7876ca7a4208061f69fa0cce9f9e619557c.zip +0 -0
- package/playwright-report/data/3c6115f8ff03527f3b888e8c6626d086146bb961.zip +0 -0
- package/playwright-report/data/3e976a69f9bc188048c96969507a28fc5411da40.zip +0 -0
- package/playwright-report/data/420bd6c0ed97c53e6ee5108c11c337690ed9dd71.zip +0 -0
- package/playwright-report/data/424c925f1d020f7918c5b1d4e93a3aff4ffd0d35.zip +0 -0
- package/playwright-report/data/4459657c233583f0bb5f541ba2a56d14fc04324f.zip +0 -0
- package/playwright-report/data/45dbca16424f69b6af3f201fd918186e66e6a921.zip +0 -0
- package/playwright-report/data/4c7242437d15e34066b69d5f3a71e21f436d81bb.zip +0 -0
- package/playwright-report/data/56f84e2288e6485b68f0f78f79af97016d066eea.zip +0 -0
- package/playwright-report/data/679d4cfcb398dd2d19703be59bbf1de72f73fa3e.zip +0 -0
- package/playwright-report/data/686279f3ccdca1213fe91a9901f1ca469a41db4b.zip +0 -0
- package/playwright-report/data/69403980b98daeb052c732f3d984b7ccc51022aa.zip +0 -0
- package/playwright-report/data/6d91e10cd5dc95944881ea0f875bf0e531c63164.zip +0 -0
- package/playwright-report/data/6f362695f59905c3acdcafb6eeacfa4b068bc030.zip +0 -0
- package/playwright-report/data/71dd5897288168b0f7fb2e187f2b543e880733b1.zip +0 -0
- package/playwright-report/data/7540a41a9c123cffc1750447ccb69d9fb8cc8ba5.zip +0 -0
- package/playwright-report/data/78f8483a26c47ca761f43b1f142a9fb9d001b27e.zip +0 -0
- package/playwright-report/data/7e8bd5ba547094dcf303d450853b2f74f41749b2.zip +0 -0
- package/playwright-report/data/7fbec8e63ea2ee1702a94fe4d837067192e661f0.zip +0 -0
- package/playwright-report/data/87f2ea42a46cbd21813358d7d6e31d9999fca953.zip +0 -0
- package/playwright-report/data/8db527a1f9b753036cf63bb4afc96a765007fe82.zip +0 -0
- package/playwright-report/data/8e5ccd4bd56f3843f4e788c5e9842165221c2748.zip +0 -0
- package/playwright-report/data/8fc12e2795e02ee2ad773ec7be25f94b6ca697ed.zip +0 -0
- package/playwright-report/data/9d10ab1649ded4751d19014847e110b0b03ad126.zip +0 -0
- package/playwright-report/data/ab82c3994c6614fa6873fc92fd44ca78cb45f9d6.zip +0 -0
- package/playwright-report/data/ac554655d509fe64199a053e715def4ce4bbd618.zip +0 -0
- package/playwright-report/data/ad8e5a0cec5ec3369478099a58b7652c0dd636f1.zip +0 -0
- package/playwright-report/data/ae30baf5dea2dc0dd2ca87ffa08afb936b27fef1.zip +0 -0
- package/playwright-report/data/bc7631ffd4df693573a3233ec403a1f9cbcb00a9.zip +0 -0
- package/playwright-report/data/bcfe71e7532702969ecdde584a294907ed21525e.zip +0 -0
- package/playwright-report/data/bf020e09e20d0cd6e1b8aa82153e84f9d40c7f74.zip +0 -0
- package/playwright-report/data/c3452f499f82ef644c3d314626d3d9c762ff5c20.zip +0 -0
- package/playwright-report/data/c5dfbb00ea0965a4214f02cde22245958bb31c86.zip +0 -0
- package/playwright-report/data/c716ede7c5174d8a83653a6862605eca04783bad.zip +0 -0
- package/playwright-report/data/c95ca5869740edf6d1d627d120aa9ba26b1d3415.zip +0 -0
- package/playwright-report/data/cc17390169d327b4dfc2a9b3a8279e74ff975b1d.zip +0 -0
- package/playwright-report/data/d0ff6b9f342d792119f1513cc53c9f315a56251b.zip +0 -0
- package/playwright-report/data/d26377153bff611b5ba5a1148fc8858f7bb2cb7b.zip +0 -0
- package/playwright-report/data/dc0608de1b624a691f2f393bf450fc01591076ef.zip +0 -0
- package/playwright-report/data/dee4c585c248f4827601afbde02d3732761bdd8b.zip +0 -0
- package/playwright-report/data/e4cdfceef70735028de78f94f7e07a1e65fa317d.zip +0 -0
- package/playwright-report/data/e64d89424643af3f746a091f7567db49b0b45f3c.zip +0 -0
- package/playwright-report/data/e70483c7d13bb871f5c5b4aa54149172d58bf0c0.zip +0 -0
- package/playwright-report/data/e8333b653df262d800ee7b5329503b975d420e87.zip +0 -0
- package/playwright-report/data/ed1bd19a957a6165ba73a644af4959590b23eed9.zip +0 -0
- package/playwright-report/data/f35cf046cdf897abd96f318f79443407e58b8f0b.zip +0 -0
- package/playwright-report/data/f8793a7c69b939ac07422cf41aac45ebe4a86908.zip +0 -0
- package/playwright-report/data/fb2a383b96839380e90e0137363a574e665aed38.zip +0 -0
- package/playwright-report/data/fede8e774c66e329bdac055d6d67e73aa75b14fc.zip +0 -0
- package/playwright-report/index.html +0 -71
- package/playwright-report/trace/assets/codeMirrorModule-DpJ-EmBQ.js +0 -24
- package/playwright-report/trace/assets/defaultSettingsView-DTenqiGw.js +0 -259
- package/playwright-report/trace/codeMirrorModule.C3UTv-Ge.css +0 -1
- package/playwright-report/trace/codicon.DCmgc-ay.ttf +0 -0
- package/playwright-report/trace/defaultSettingsView.5fN5lw10.css +0 -1
- package/playwright-report/trace/index.CFOW-Ezb.css +0 -1
- package/playwright-report/trace/index.CUq7VgrV.js +0 -2
- package/playwright-report/trace/index.html +0 -43
- package/playwright-report/trace/playwright-logo.svg +0 -9
- package/playwright-report/trace/snapshot.html +0 -21
- package/playwright-report/trace/sw.bundle.js +0 -3
- package/playwright-report/trace/uiMode.BatfzHMG.css +0 -1
- package/playwright-report/trace/uiMode.CHJSAD7F.js +0 -5
- package/playwright-report/trace/uiMode.html +0 -17
- package/playwright-report/trace/xtermModule.Beg8tuEN.css +0 -32
- package/playwright.config.ts +0 -79
- package/screenshots/PlaywrightUI.png +0 -0
- package/src/Attribute.ts +0 -64
- package/src/AttributeDefinitions.ts +0 -144
- package/src/DockLocation.ts +0 -133
- package/src/DropInfo.ts +0 -20
- package/src/I18nLabel.ts +0 -12
- package/src/Orientation.ts +0 -28
- package/src/Rect.ts +0 -147
- package/src/Types.ts +0 -112
- package/src/index.ts +0 -23
- package/src/model/Action.ts +0 -9
- package/src/model/Actions.ts +0 -188
- package/src/model/BorderNode.ts +0 -458
- package/src/model/BorderSet.ts +0 -87
- package/src/model/ICloseType.ts +0 -5
- package/src/model/IDraggable.ts +0 -7
- package/src/model/IDropTarget.ts +0 -14
- package/src/model/IJsonModel.ts +0 -967
- package/src/model/LayoutWindow.ts +0 -119
- package/src/model/Model.ts +0 -704
- package/src/model/Node.ts +0 -280
- package/src/model/RowNode.ts +0 -559
- package/src/model/TabNode.ts +0 -424
- package/src/model/TabSetNode.ts +0 -592
- package/src/model/Utils.ts +0 -52
- package/src/view/BorderButton.tsx +0 -201
- package/src/view/BorderTab.tsx +0 -81
- package/src/view/BorderTabSet.tsx +0 -259
- package/src/view/DragContainer.tsx +0 -32
- package/src/view/ErrorBoundary.tsx +0 -42
- package/src/view/Icons.tsx +0 -57
- package/src/view/Layout.tsx +0 -1334
- package/src/view/Overlay.tsx +0 -21
- package/src/view/PopoutWindow.tsx +0 -152
- package/src/view/PopupMenu.tsx +0 -156
- package/src/view/Row.tsx +0 -68
- package/src/view/SizeTracker.tsx +0 -20
- package/src/view/Splitter.tsx +0 -262
- package/src/view/Tab.tsx +0 -128
- package/src/view/TabButton.tsx +0 -200
- package/src/view/TabButtonStamp.tsx +0 -42
- package/src/view/TabOverflowHook.tsx +0 -305
- package/src/view/TabSet.tsx +0 -475
- package/src/view/Utils.tsx +0 -135
- package/test-results/view-Add-methods-add-to-active-tabset-chromium/trace.zip +0 -0
- package/test-results/view-Add-methods-drag-to-border-chromium/trace.zip +0 -0
- package/test-results/view-Add-methods-drag-to-tabset-chromium/trace.zip +0 -0
- package/test-results/view-Delete-methods-delete-all-tabs-chromium/trace.zip +0 -0
- package/test-results/view-Delete-methods-delete-tab-chromium/trace.zip +0 -0
- package/test-results/view-Extended-App-onRenderTab-chromium/trace.zip +0 -0
- package/test-results/view-Extended-App-onRenderTab-in-border-chromium/trace.zip +0 -0
- package/test-results/view-Extended-App-onRenderTabSet-chromium/trace.zip +0 -0
- package/test-results/view-Extended-App-onRenderTabSet-for-border-chromium/trace.zip +0 -0
- package/test-results/view-Extended-App-onRenderTabSet-sticky-buttons-chromium/trace.zip +0 -0
- package/test-results/view-Extended-layout2-borders-autohide-left-chromium/trace.zip +0 -0
- package/test-results/view-Extended-layout2-borders-autohide-top-chromium/trace.zip +0 -0
- package/test-results/view-Extended-layout2-check-border-bottom-min-size-chromium/trace.zip +0 -0
- package/test-results/view-Extended-layout2-check-border-left-min-size-chromium/trace.zip +0 -0
- package/test-results/view-Extended-layout2-check-border-right-min-size-chromium/trace.zip +0 -0
- package/test-results/view-Extended-layout2-check-border-top-min-size-chromium/trace.zip +0 -0
- package/test-results/view-Extended-layout2-check-tabset-min-size-chromium/trace.zip +0 -0
- package/test-results/view-Extended-layout2-tabset-close-chromium/trace.zip +0 -0
- package/test-results/view-Maximize-methods-maximize-tabset-using-double-click-chromium/trace.zip +0 -0
- package/test-results/view-Maximize-methods-maximize-tabset-using-max-button-chromium/trace.zip +0 -0
- package/test-results/view-Others-click-on-tab-button-causes-tabset-activate-chromium/trace.zip +0 -0
- package/test-results/view-Others-click-on-tab-contents-causes-tabset-activate-chromium/trace.zip +0 -0
- package/test-results/view-Others-click-on-tabstrip-causes-tabset-activate-chromium/trace.zip +0 -0
- package/test-results/view-Others-rename-tab-cancelled-with-esc-chromium/trace.zip +0 -0
- package/test-results/view-Others-rename-tab-chromium/trace.zip +0 -0
- package/test-results/view-Overflow-menu-show-menu-chromium/trace.zip +0 -0
- package/test-results/view-Splitters-horizontal--5a358-ter-to-bottom-edge-and-back-chromium/trace.zip +0 -0
- package/test-results/view-Splitters-horizontal--f02d2-litter-to-top-edge-and-back-chromium/trace.zip +0 -0
- package/test-results/view-Splitters-horizontal-resizes-with-hsplitter-chromium/trace.zip +0 -0
- package/test-results/view-Splitters-vsplitter-chromium/trace.zip +0 -0
- package/test-results/view-Splitters-vsplitter-to-edge-chromium/trace.zip +0 -0
- package/test-results/view-Splitters-vsplitter-to-edge-left-chromium/trace.zip +0 -0
- package/test-results/view-borders-border-bottom-to-tab-chromium/trace.zip +0 -0
- package/test-results/view-borders-border-left-to-tab-chromium/trace.zip +0 -0
- package/test-results/view-borders-border-right-to-tab-chromium/trace.zip +0 -0
- package/test-results/view-borders-border-top-to-tab-chromium/trace.zip +0 -0
- package/test-results/view-borders-move-tab-in-border-bottom-chromium/trace.zip +0 -0
- package/test-results/view-borders-move-tab-in-border-left-chromium/trace.zip +0 -0
- package/test-results/view-borders-move-tab-in-border-right-chromium/trace.zip +0 -0
- package/test-results/view-borders-move-tab-in-border-top-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-border-bottom-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-border-left-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-border-right-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-border-top-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-open-border-bottom-center-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-open-border-bottom-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-open-border-left-center-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-open-border-left-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-open-border-right-center-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-open-border-right-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-open-border-top-center-chromium/trace.zip +0 -0
- package/test-results/view-borders-tab-to-open-border-top-chromium/trace.zip +0 -0
- package/test-results/view-drag-tests-two-tabs-tab-to-edge-chromium/trace.zip +0 -0
- package/test-results/view-drag-tests-two-tabs-tab-to-tab-bottom-chromium/trace.zip +0 -0
- package/test-results/view-drag-tests-two-tabs-tab-to-tab-center-chromium/trace.zip +0 -0
- package/test-results/view-drag-tests-two-tabs-tab-to-tab-left-chromium/trace.zip +0 -0
- package/test-results/view-drag-tests-two-tabs-tab-to-tab-right-chromium/trace.zip +0 -0
- package/test-results/view-drag-tests-two-tabs-tab-to-tab-top-chromium/trace.zip +0 -0
- package/test-results/view-tab-can-have-icon-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-move-tab-in-tabstrip-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-move-tabstrip-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-row-to-column-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-row-to-single-tabset-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-edge-bottom-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-edge-left-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-edge-right-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-edge-top-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-tab-bottom-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-tab-center-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-tab-left-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-tab-right-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-tab-top-chromium/trace.zip +0 -0
- package/test-results/view-three-tabs-tab-to-tabset-chromium/trace.zip +0 -0
- package/tests-playwright/helpers.ts +0 -124
- package/tests-playwright/view.spec.ts +0 -911
package/src/model/TabNode.ts
DELETED
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
import { Attribute } from "../Attribute";
|
|
2
|
-
import { AttributeDefinitions } from "../AttributeDefinitions";
|
|
3
|
-
import { Rect } from "../Rect";
|
|
4
|
-
import { BorderNode } from "./BorderNode";
|
|
5
|
-
import { IDraggable } from "./IDraggable";
|
|
6
|
-
import { IJsonTabNode } from "./IJsonModel";
|
|
7
|
-
import { Model } from "./Model";
|
|
8
|
-
import { Node } from "./Node";
|
|
9
|
-
import { TabSetNode } from "./TabSetNode";
|
|
10
|
-
|
|
11
|
-
export class TabNode extends Node implements IDraggable {
|
|
12
|
-
static readonly TYPE = "tab";
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
static fromJson(json: any, model: Model, addToModel: boolean = true) {
|
|
16
|
-
const newLayoutNode = new TabNode(model, json, addToModel);
|
|
17
|
-
return newLayoutNode;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
private tabRect: Rect = Rect.empty();
|
|
22
|
-
/** @internal */
|
|
23
|
-
private moveableElement: HTMLElement | null;
|
|
24
|
-
/** @internal */
|
|
25
|
-
private tabStamp: HTMLElement | null;
|
|
26
|
-
/** @internal */
|
|
27
|
-
private renderedName?: string;
|
|
28
|
-
/** @internal */
|
|
29
|
-
private extra: Record<string, any>;
|
|
30
|
-
/** @internal */
|
|
31
|
-
private visible: boolean;
|
|
32
|
-
/** @internal */
|
|
33
|
-
private rendered: boolean;
|
|
34
|
-
/** @internal */
|
|
35
|
-
private scrollTop?: number;
|
|
36
|
-
/** @internal */
|
|
37
|
-
private scrollLeft?: number;
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
constructor(model: Model, json: any, addToModel: boolean = true) {
|
|
41
|
-
super(model);
|
|
42
|
-
|
|
43
|
-
this.extra = {}; // extra data added to node not saved in json
|
|
44
|
-
this.moveableElement = null;
|
|
45
|
-
this.tabStamp = null;
|
|
46
|
-
this.rendered = false;
|
|
47
|
-
this.visible = false;
|
|
48
|
-
|
|
49
|
-
TabNode.attributeDefinitions.fromJson(json, this.attributes);
|
|
50
|
-
if (addToModel === true) {
|
|
51
|
-
model.addNode(this);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
getName() {
|
|
56
|
-
return this.getAttr("name") as string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
getHelpText() {
|
|
60
|
-
return this.getAttr("helpText") as string | undefined;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
getComponent() {
|
|
64
|
-
return this.getAttr("component") as string | undefined;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
getWindowId() {
|
|
68
|
-
if (this.parent instanceof TabSetNode) {
|
|
69
|
-
return this.parent.getWindowId();
|
|
70
|
-
}
|
|
71
|
-
return Model.MAIN_WINDOW_ID;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
getWindow() : Window | undefined {
|
|
75
|
-
const layoutWindow = this.model.getwindowsMap().get(this.getWindowId());
|
|
76
|
-
if (layoutWindow) {
|
|
77
|
-
return layoutWindow.window;
|
|
78
|
-
}
|
|
79
|
-
return undefined;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Returns the config attribute that can be used to store node specific data that
|
|
84
|
-
* WILL be saved to the json. The config attribute should be changed via the action Actions.updateNodeAttributes rather
|
|
85
|
-
* than directly, for example:
|
|
86
|
-
* this.state.model.doAction(
|
|
87
|
-
* FlexLayout.Actions.updateNodeAttributes(node.getId(), {config:myConfigObject}));
|
|
88
|
-
*/
|
|
89
|
-
getConfig() {
|
|
90
|
-
return this.attributes.config;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Returns an object that can be used to store transient node specific data that will
|
|
95
|
-
* NOT be saved in the json.
|
|
96
|
-
*/
|
|
97
|
-
getExtraData() {
|
|
98
|
-
return this.extra;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
isPoppedOut() {
|
|
102
|
-
return this.getWindowId() !== Model.MAIN_WINDOW_ID;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
isSelected() {
|
|
106
|
-
return (this.getParent() as TabSetNode | BorderNode).getSelectedNode() === this;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
getIcon() {
|
|
110
|
-
return this.getAttr("icon") as string | undefined;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
isEnableClose() {
|
|
114
|
-
return this.getAttr("enableClose") as boolean;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
getCloseType() {
|
|
118
|
-
return this.getAttr("closeType") as number;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
isEnablePopout() {
|
|
122
|
-
return this.getAttr("enablePopout") as boolean;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
isEnablePopoutIcon() {
|
|
126
|
-
return this.getAttr("enablePopoutIcon") as boolean;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
isEnablePopoutOverlay() {
|
|
130
|
-
return this.getAttr("enablePopoutOverlay") as boolean;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
isEnableDrag() {
|
|
134
|
-
return this.getAttr("enableDrag") as boolean;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
isEnableRename() {
|
|
138
|
-
return this.getAttr("enableRename") as boolean;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
isEnableWindowReMount() {
|
|
142
|
-
return this.getAttr("enableWindowReMount") as boolean;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
getClassName() {
|
|
146
|
-
return this.getAttr("className") as string | undefined;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
getContentClassName() {
|
|
150
|
-
return this.getAttr("contentClassName") as string | undefined;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
getTabSetClassName() {
|
|
154
|
-
return this.getAttr("tabsetClassName") as string | undefined;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
isEnableRenderOnDemand() {
|
|
158
|
-
return this.getAttr("enableRenderOnDemand") as boolean;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
getMinWidth() {
|
|
162
|
-
return this.getAttr("minWidth") as number;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
getMinHeight() {
|
|
166
|
-
return this.getAttr("minHeight") as number;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
getMaxWidth() {
|
|
170
|
-
return this.getAttr("maxWidth") as number;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
getMaxHeight() {
|
|
174
|
-
return this.getAttr("maxHeight") as number;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
isVisible() {
|
|
178
|
-
return this.visible;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
toJson(): IJsonTabNode {
|
|
182
|
-
const json = {};
|
|
183
|
-
TabNode.attributeDefinitions.toJson(json, this.attributes);
|
|
184
|
-
return json;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @internal */
|
|
188
|
-
saveScrollPosition() {
|
|
189
|
-
if (this.moveableElement) {
|
|
190
|
-
this.scrollLeft = this.moveableElement.scrollLeft;
|
|
191
|
-
this.scrollTop = this.moveableElement.scrollTop;
|
|
192
|
-
// console.log("save", this.getName(), this.scrollTop);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/** @internal */
|
|
197
|
-
restoreScrollPosition() {
|
|
198
|
-
if (this.scrollTop) {
|
|
199
|
-
requestAnimationFrame(() => {
|
|
200
|
-
if (this.moveableElement) {
|
|
201
|
-
if (this.scrollTop) {
|
|
202
|
-
// console.log("restore", this.getName(), this.scrollTop);
|
|
203
|
-
this.moveableElement.scrollTop = this.scrollTop;
|
|
204
|
-
this.moveableElement.scrollLeft = this.scrollLeft!;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/** @internal */
|
|
212
|
-
setRect(rect: Rect) {
|
|
213
|
-
if (!rect.equals(this.rect)) {
|
|
214
|
-
this.fireEvent("resize", {rect});
|
|
215
|
-
this.rect = rect;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/** @internal */
|
|
220
|
-
setVisible(visible: boolean) {
|
|
221
|
-
if (visible !== this.visible) {
|
|
222
|
-
this.visible = visible;
|
|
223
|
-
this.fireEvent("visibility", { visible });
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/** @internal */
|
|
228
|
-
getScrollTop() {
|
|
229
|
-
return this.scrollTop;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/** @internal */
|
|
233
|
-
setScrollTop(scrollTop: number | undefined) {
|
|
234
|
-
this.scrollTop = scrollTop;
|
|
235
|
-
}
|
|
236
|
-
/** @internal */
|
|
237
|
-
getScrollLeft() {
|
|
238
|
-
return this.scrollLeft;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/** @internal */
|
|
242
|
-
setScrollLeft(scrollLeft: number | undefined) {
|
|
243
|
-
this.scrollLeft = scrollLeft;
|
|
244
|
-
}
|
|
245
|
-
/** @internal */
|
|
246
|
-
isRendered() {
|
|
247
|
-
return this.rendered;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/** @internal */
|
|
251
|
-
setRendered(rendered: boolean) {
|
|
252
|
-
this.rendered = rendered;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/** @internal */
|
|
256
|
-
getTabRect() {
|
|
257
|
-
return this.tabRect;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/** @internal */
|
|
261
|
-
setTabRect(rect: Rect) {
|
|
262
|
-
this.tabRect = rect;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/** @internal */
|
|
266
|
-
getTabStamp() {
|
|
267
|
-
return this.tabStamp;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/** @internal */
|
|
271
|
-
setTabStamp(stamp: HTMLElement | null) {
|
|
272
|
-
this.tabStamp = stamp;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/** @internal */
|
|
276
|
-
getMoveableElement() {
|
|
277
|
-
return this.moveableElement;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/** @internal */
|
|
281
|
-
setMoveableElement(element: HTMLElement | null) {
|
|
282
|
-
this.moveableElement = element;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/** @internal */
|
|
286
|
-
setRenderedName(name: string) {
|
|
287
|
-
this.renderedName = name;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/** @internal */
|
|
291
|
-
getNameForOverflowMenu() {
|
|
292
|
-
const altName = this.getAttr("altName") as string;
|
|
293
|
-
if (altName !== undefined) {
|
|
294
|
-
return altName;
|
|
295
|
-
}
|
|
296
|
-
return this.renderedName;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
/** @internal */
|
|
300
|
-
setName(name: string) {
|
|
301
|
-
this.attributes.name = name;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/** @internal */
|
|
305
|
-
delete() {
|
|
306
|
-
(this.parent as TabSetNode | BorderNode).remove(this);
|
|
307
|
-
this.fireEvent("close", {});
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/** @internal */
|
|
311
|
-
updateAttrs(json: any) {
|
|
312
|
-
TabNode.attributeDefinitions.update(json, this.attributes);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/** @internal */
|
|
316
|
-
getAttributeDefinitions() {
|
|
317
|
-
return TabNode.attributeDefinitions;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/** @internal */
|
|
321
|
-
setBorderWidth(width: number) {
|
|
322
|
-
this.attributes.borderWidth = width;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/** @internal */
|
|
326
|
-
setBorderHeight(height: number) {
|
|
327
|
-
this.attributes.borderHeight = height;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
/** @internal */
|
|
331
|
-
static getAttributeDefinitions() {
|
|
332
|
-
return TabNode.attributeDefinitions;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/** @internal */
|
|
336
|
-
private static attributeDefinitions: AttributeDefinitions = TabNode.createAttributeDefinitions();
|
|
337
|
-
|
|
338
|
-
/** @internal */
|
|
339
|
-
private static createAttributeDefinitions(): AttributeDefinitions {
|
|
340
|
-
const attributeDefinitions = new AttributeDefinitions();
|
|
341
|
-
attributeDefinitions.add("type", TabNode.TYPE, true).setType(Attribute.STRING).setFixed();
|
|
342
|
-
attributeDefinitions.add("id", undefined).setType(Attribute.STRING).setDescription(
|
|
343
|
-
`the unique id of the tab, if left undefined a uuid will be assigned`
|
|
344
|
-
);
|
|
345
|
-
|
|
346
|
-
attributeDefinitions.add("name", "[Unnamed Tab]").setType(Attribute.STRING).setDescription(
|
|
347
|
-
`name of tab to be displayed in the tab button`
|
|
348
|
-
);
|
|
349
|
-
attributeDefinitions.add("altName", undefined).setType(Attribute.STRING).setDescription(
|
|
350
|
-
`if there is no name specifed then this value will be used in the overflow menu`
|
|
351
|
-
);
|
|
352
|
-
attributeDefinitions.add("helpText", undefined).setType(Attribute.STRING).setDescription(
|
|
353
|
-
`An optional help text for the tab to be displayed upon tab hover.`
|
|
354
|
-
);
|
|
355
|
-
attributeDefinitions.add("component", undefined).setType(Attribute.STRING).setDescription(
|
|
356
|
-
`string identifying which component to run (for factory)`
|
|
357
|
-
);
|
|
358
|
-
attributeDefinitions.add("config", undefined).setType("any").setDescription(
|
|
359
|
-
`a place to hold json config for the hosted component`
|
|
360
|
-
);
|
|
361
|
-
attributeDefinitions.add("tabsetClassName", undefined).setType(Attribute.STRING).setDescription(
|
|
362
|
-
`class applied to parent tabset when this is the only tab and it is stretched to fill the tabset`
|
|
363
|
-
);
|
|
364
|
-
attributeDefinitions.add("enableWindowReMount", false).setType(Attribute.BOOLEAN).setDescription(
|
|
365
|
-
`if enabled the tab will re-mount when popped out/in`
|
|
366
|
-
);
|
|
367
|
-
|
|
368
|
-
attributeDefinitions.addInherited("enableClose", "tabEnableClose").setType(Attribute.BOOLEAN).setDescription(
|
|
369
|
-
`allow user to close tab via close button`
|
|
370
|
-
);
|
|
371
|
-
attributeDefinitions.addInherited("closeType", "tabCloseType").setType("ICloseType").setDescription(
|
|
372
|
-
`see values in ICloseType`
|
|
373
|
-
);
|
|
374
|
-
attributeDefinitions.addInherited("enableDrag", "tabEnableDrag").setType(Attribute.BOOLEAN).setDescription(
|
|
375
|
-
`allow user to drag tab to new location`
|
|
376
|
-
);
|
|
377
|
-
attributeDefinitions.addInherited("enableRename", "tabEnableRename").setType(Attribute.BOOLEAN).setDescription(
|
|
378
|
-
`allow user to rename tabs by double clicking`
|
|
379
|
-
);
|
|
380
|
-
attributeDefinitions.addInherited("className", "tabClassName").setType(Attribute.STRING).setDescription(
|
|
381
|
-
`class applied to tab button`
|
|
382
|
-
);
|
|
383
|
-
attributeDefinitions.addInherited("contentClassName", "tabContentClassName").setType(Attribute.STRING).setDescription(
|
|
384
|
-
`class applied to tab content`
|
|
385
|
-
);
|
|
386
|
-
attributeDefinitions.addInherited("icon", "tabIcon").setType(Attribute.STRING).setDescription(
|
|
387
|
-
`the tab icon`
|
|
388
|
-
);
|
|
389
|
-
attributeDefinitions.addInherited("enableRenderOnDemand", "tabEnableRenderOnDemand").setType(Attribute.BOOLEAN).setDescription(
|
|
390
|
-
`whether to avoid rendering component until tab is visible`
|
|
391
|
-
);
|
|
392
|
-
attributeDefinitions.addInherited("enablePopout", "tabEnablePopout").setType(Attribute.BOOLEAN).setAlias("enableFloat").setDescription(
|
|
393
|
-
`enable popout (in popout capable browser)`
|
|
394
|
-
);
|
|
395
|
-
attributeDefinitions.addInherited("enablePopoutIcon", "tabEnablePopoutIcon").setType(Attribute.BOOLEAN).setDescription(
|
|
396
|
-
`whether to show the popout icon in the tabset header if this tab enables popouts`
|
|
397
|
-
);
|
|
398
|
-
attributeDefinitions.addInherited("enablePopoutOverlay", "tabEnablePopoutOverlay").setType(Attribute.BOOLEAN).setDescription(
|
|
399
|
-
`if this tab will not work correctly in a popout window when the main window is backgrounded (inactive)
|
|
400
|
-
then enabling this option will gray out this tab`
|
|
401
|
-
);
|
|
402
|
-
|
|
403
|
-
attributeDefinitions.addInherited("borderWidth", "tabBorderWidth").setType(Attribute.NUMBER).setDescription(
|
|
404
|
-
`width when added to border, -1 will use border size`
|
|
405
|
-
);
|
|
406
|
-
attributeDefinitions.addInherited("borderHeight", "tabBorderHeight").setType(Attribute.NUMBER).setDescription(
|
|
407
|
-
`height when added to border, -1 will use border size`
|
|
408
|
-
);
|
|
409
|
-
attributeDefinitions.addInherited("minWidth", "tabMinWidth").setType(Attribute.NUMBER).setDescription(
|
|
410
|
-
`the min width of this tab`
|
|
411
|
-
);
|
|
412
|
-
attributeDefinitions.addInherited("minHeight", "tabMinHeight").setType(Attribute.NUMBER).setDescription(
|
|
413
|
-
`the min height of this tab`
|
|
414
|
-
);
|
|
415
|
-
attributeDefinitions.addInherited("maxWidth", "tabMaxWidth").setType(Attribute.NUMBER).setDescription(
|
|
416
|
-
`the max width of this tab`
|
|
417
|
-
);
|
|
418
|
-
attributeDefinitions.addInherited("maxHeight", "tabMaxHeight").setType(Attribute.NUMBER).setDescription(
|
|
419
|
-
`the max height of this tab`
|
|
420
|
-
);
|
|
421
|
-
|
|
422
|
-
return attributeDefinitions;
|
|
423
|
-
}
|
|
424
|
-
}
|