@genesislcap/foundation-layout 14.368.0 → 14.370.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.
- package/dist/custom-elements.json +177 -9
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/layout-item.d.ts +20 -0
- package/dist/dts/main/layout-item.d.ts.map +1 -1
- package/dist/dts/main/layout-main.d.ts +40 -8
- package/dist/dts/main/layout-main.d.ts.map +1 -1
- package/dist/dts/styles/constants.d.ts +1 -1
- package/dist/dts/styles/constants.d.ts.map +1 -1
- package/dist/dts/styles/layout.styles.d.ts.map +1 -1
- package/dist/dts/utils/constants.d.ts +2 -0
- package/dist/dts/utils/constants.d.ts.map +1 -1
- package/dist/dts/utils/factory-registry.d.ts +63 -0
- package/dist/dts/utils/factory-registry.d.ts.map +1 -0
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/types.d.ts +44 -3
- package/dist/dts/utils/types.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/main/layout-item.js +26 -4
- package/dist/esm/main/layout-main.js +187 -47
- package/dist/esm/styles/constants.js +4 -3
- package/dist/esm/styles/layout.styles.js +15 -10
- package/dist/esm/utils/constants.js +11 -0
- package/dist/esm/utils/factory-registry.js +88 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/foundation-layout.api.json +206 -9
- package/dist/foundation-layout.d.ts +160 -9
- package/docs/FRAMEWORK_COMPONENTS.md +568 -0
- package/docs/api/foundation-layout.componentfactory.md +46 -0
- package/docs/api/foundation-layout.foundationlayout.md +2 -2
- package/docs/api/foundation-layout.foundationlayout.registeritem.md +31 -7
- package/docs/api/foundation-layout.foundationlayoutitem.md +2 -0
- package/docs/api/foundation-layout.foundationlayoutitem.registration.md +18 -0
- package/docs/api/foundation-layout.getfactory.md +56 -0
- package/docs/api/foundation-layout.md +59 -0
- package/docs/api/foundation-layout.registerfactory.md +94 -0
- package/docs/api/foundation-layout.unregisterfactory.md +63 -0
- package/docs/api-report.md.api.md +22 -7
- package/package.json +13 -12
|
@@ -23,6 +23,14 @@
|
|
|
23
23
|
"module": "./styles"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
"kind": "js",
|
|
28
|
+
"name": "ComponentFactory",
|
|
29
|
+
"declaration": {
|
|
30
|
+
"name": "ComponentFactory",
|
|
31
|
+
"module": "./utils"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
26
34
|
{
|
|
27
35
|
"kind": "js",
|
|
28
36
|
"name": "CustomButton",
|
|
@@ -134,6 +142,30 @@
|
|
|
134
142
|
"name": "LAYOUT_POPOUT_CONTAINER_CLASS",
|
|
135
143
|
"module": "./utils"
|
|
136
144
|
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"kind": "js",
|
|
148
|
+
"name": "registerFactory",
|
|
149
|
+
"declaration": {
|
|
150
|
+
"name": "registerFactory",
|
|
151
|
+
"module": "./utils/factory-registry"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "js",
|
|
156
|
+
"name": "getFactory",
|
|
157
|
+
"declaration": {
|
|
158
|
+
"name": "getFactory",
|
|
159
|
+
"module": "./utils/factory-registry"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"kind": "js",
|
|
164
|
+
"name": "unregisterFactory",
|
|
165
|
+
"declaration": {
|
|
166
|
+
"name": "unregisterFactory",
|
|
167
|
+
"module": "./utils/factory-registry"
|
|
168
|
+
}
|
|
137
169
|
}
|
|
138
170
|
]
|
|
139
171
|
},
|
|
@@ -750,11 +782,11 @@
|
|
|
750
782
|
"description": "string of the registration ID"
|
|
751
783
|
},
|
|
752
784
|
{
|
|
753
|
-
"name": "
|
|
785
|
+
"name": "elementsOrFactory",
|
|
754
786
|
"type": {
|
|
755
|
-
"text": "Element[]"
|
|
787
|
+
"text": "Element[] | ComponentFactory"
|
|
756
788
|
},
|
|
757
|
-
"description": "Elements[] containing the reference to the elements to register
|
|
789
|
+
"description": "Either Elements[] containing the reference to the elements to register, or a ComponentFactory function"
|
|
758
790
|
}
|
|
759
791
|
],
|
|
760
792
|
"privacy": "public"
|
|
@@ -1162,12 +1194,13 @@
|
|
|
1162
1194
|
"path": "src/styles/constants.ts",
|
|
1163
1195
|
"declarations": [
|
|
1164
1196
|
{
|
|
1165
|
-
"kind": "
|
|
1197
|
+
"kind": "function",
|
|
1166
1198
|
"name": "glVisualConfig",
|
|
1167
|
-
"
|
|
1168
|
-
"
|
|
1169
|
-
|
|
1170
|
-
|
|
1199
|
+
"return": {
|
|
1200
|
+
"type": {
|
|
1201
|
+
"text": "Omit<LayoutConfig, 'root'>"
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1171
1204
|
},
|
|
1172
1205
|
{
|
|
1173
1206
|
"kind": "variable",
|
|
@@ -1259,7 +1292,7 @@
|
|
|
1259
1292
|
{
|
|
1260
1293
|
"kind": "variable",
|
|
1261
1294
|
"name": "layoutStyles",
|
|
1262
|
-
"default": "css`\n ${containerStyles}\n ${loadingSpinnerStyles}\n\n .lm_goldenlayout {\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n }\n\n .lm_stack.lm_item {\n background-color: var(--neutral-layer-3);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n }\n .lm_maximised .lm_header {\n background-color: var(--neutral-layer-3);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n position: unset;\n }\n\n .lm_maximised .lm_header .lm_tabs {\n z-index: 3;\n }\n\n .lm_content {\n background-color: var(--neutral-layer-card-container);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n border: 1px solid;\n border-color: var(--neutral-stroke-rest);\n box-sizing: border-box;\n color: var(--neutral-foreground-rest);\n }\n\n .lm_header .lm_tabs {\n padding: 0 16px;\n }\n\n .lm_stack > .lm_items {\n box-shadow: 0px -1px 15px rgba(0, 0, 0, 0.15);\n }\n\n .lm_header .lm_tab.lm_active.lm_focused {\n background-color: var(--neutral-layer-card-container);\n }\n .lm_header .lm_tab.lm_active {\n background-color: var(--neutral-layer-card-container);\n border: 1px solid;\n border-color: var(--neutral-stroke-rest);\n border-bottom: 0;\n color: var(--accent-foreground-rest);\n }\n\n .lm_header .lm_tab {\n align-items: center;\n background-color: var(--neutral-layer-4);\n border: 0;\n border-bottom-color: transparent;\n border-bottom: 0px solid;\n border-color: var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.5px) calc(var(--control-corner-radius) * 1.5px) 0 0;\n color: var(--accent-foreground-rest);\n display: flex;\n font-family: inherit;\n font-size: 13px;\n font-weight: 400;\n height: 30px;\n margin-right: 2px;\n margin-top: 3px;\n padding: 2px 16px;\n }\n\n .lm_header .lm_tab:not(.lm_active):hover {\n background-color: var(--neutral-layer-card-container);\n color: var(--accent-foreground-rest);\n }\n\n .lm_header .lm_controls {\n top: 4px;\n display: flex;\n }\n .lm_header .lm_controls > * {\n width: 30px;\n height: 30px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 16px;\n background-color: color-mix(in srgb, var(--neutral-fill-strong-rest), transparent 90%);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n margin-right: 4px;\n top: 3px;\n opacity: 1;\n }\n .lm_header .lm_controls > *:hover {\n background-color: color-mix(in srgb, var(--neutral-fill-strong-hover), transparent 75%);\n cursor: pointer;\n }\n\n .lm_controls .lm_maximise {\n background-image: url('${LAYOUT_ICONS.maximiseSVG}');\n }\n .lm_maximised .lm_controls .lm_maximise {\n background-image: url('${LAYOUT_ICONS.minimiseSVG}');\n }\n .lm_controls .lm_close {\n background-image: url('${LAYOUT_ICONS.closeSVG}');\n }\n .lm_header .lm_tab .lm_close_tab {\n background-image: url('${LAYOUT_ICONS.closeSVG}');\n background-size: 10px;\n background-repeat: no-repeat;\n margin-left: 12px;\n position: relative;\n top: 0;\n right: 0;\n }\n\n .lm_header .lm_tab.lm_active {\n padding: 4px 25px 3px 10px;\n }\n\n .lm_header .lm_tab:not(.lm_active) .lm_title {\n color: var(--neutral-foreground-hint);\n }\n\n .lm_header .lm_controls .lm_tabdropdown::before {\n content: none;\n }\n .lm_header .lm_controls .lm_tabdropdown {\n background-image: url('${LAYOUT_ICONS.tabDropdownSVG}');\n }\n .lm_header .lm_tabdropdown_list {\n top: 38px;\n right: 108px;\n background-color: var(--neutral-layer-3);\n border: 1px solid;\n border-color: var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.35);\n }\n .lm_header .lm_tabdropdown_list > .lm_tab {\n box-shadow: none;\n padding: 0 16px;\n white-space: nowrap;\n background-color: transparent;\n color: var(--neutral-foreground-rest);\n height: 36px;\n border-radius: 0;\n overflow: visible;\n text-overflow: normal;\n }\n .lm_header .lm_tabdropdown_list > .lm_tab:last-child {\n border-bottom: 0;\n }\n\n /* gl base styles start */\n .lm_root {\n position: relative;\n }\n .lm_row > .lm_item {\n float: left;\n }\n .lm_content {\n overflow: hidden;\n position: relative;\n }\n .lm_dragging,\n .lm_dragging * {\n cursor: move !important;\n user-select: none;\n }\n .lm_maximised {\n left: 0;\n padding: 1px;\n position: absolute;\n top: 0;\n z-index: 40;\n }\n .lm_maximise_placeholder {\n display: none;\n }\n .lm_splitter {\n position: relative;\n z-index: 20;\n }\n .lm_splitter:hover,\n .lm_splitter.lm_dragging {\n background: var(--accent-fill-rest);\n border-radius: calc(var(--control-corner-radius) * 4px);\n }\n .lm_splitter.lm_vertical .lm_drag_handle {\n width: 100%;\n height: 15px;\n position: absolute;\n top: -5px;\n cursor: ns-resize !important;\n }\n .lm_splitter.lm_horizontal {\n float: left;\n height: 100%;\n }\n .lm_splitter.lm_horizontal .lm_drag_handle {\n width: 15px;\n height: 100%;\n position: absolute;\n left: -5px;\n cursor: ew-resize !important;\n }\n .lm_header {\n overflow: visible;\n position: relative;\n }\n .lm_header [class^='lm_'] {\n box-sizing: content-box !important;\n }\n .lm_header .lm_controls {\n position: absolute;\n right: 3px;\n }\n .lm_header .lm_controls > li {\n cursor: pointer;\n float: left;\n width: 18px;\n height: 18px;\n text-align: center;\n }\n .lm_header ul {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n .lm_header .lm_tabs {\n position: absolute;\n }\n .lm_header .lm_tab {\n cursor: pointer;\n float: left;\n margin-top: 1px;\n padding: 3px 25px 3px 10px;\n position: relative;\n }\n .lm_header .lm_tab i {\n width: 2px;\n height: 19px;\n position: absolute;\n }\n .lm_header .lm_tab i.lm_left {\n top: 0;\n left: -2px;\n }\n .lm_header .lm_tab i.lm_right {\n top: 0;\n right: -2px;\n }\n .lm_header .lm_tab .lm_title {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n user-select: none;\n }\n .lm_header .lm_tab .lm_title:only-child {\n padding-left: 10px;\n }\n .lm_header .lm_tab .lm_close_tab {\n width: 14px;\n height: 14px;\n position: absolute;\n top: 11px;\n right: 0;\n text-align: center;\n }\n .lm_stack.lm_left .lm_header,\n .lm_stack.lm_right .lm_header {\n height: 100%;\n }\n .lm_dragProxy.lm_left .lm_header,\n .lm_dragProxy.lm_right .lm_header,\n .lm_stack.lm_left .lm_header,\n .lm_stack.lm_right .lm_header {\n width: 20px;\n float: left;\n vertical-align: top;\n }\n .lm_dragProxy.lm_left .lm_header .lm_tabs,\n .lm_dragProxy.lm_right .lm_header .lm_tabs,\n .lm_stack.lm_left .lm_header .lm_tabs,\n .lm_stack.lm_right .lm_header .lm_tabs {\n transform-origin: left top;\n top: 0;\n width: 1000px;\n }\n .lm_dragProxy.lm_left .lm_header .lm_controls,\n .lm_dragProxy.lm_right .lm_header .lm_controls,\n .lm_stack.lm_left .lm_header .lm_controls,\n .lm_stack.lm_right .lm_header .lm_controls {\n bottom: 0;\n }\n .lm_dragProxy.lm_left .lm_items,\n .lm_dragProxy.lm_right .lm_items,\n .lm_stack.lm_left .lm_items,\n .lm_stack.lm_right .lm_items {.lm_header .lm_tab.lm_active\n float: left;\n }\n .lm_dragProxy.lm_left .lm_header .lm_tabs,\n .lm_stack.lm_left .lm_header .lm_tabs {\n transform: rotate(-90deg) scaleX(-1);\n left: 0;\n }\n .lm_dragProxy.lm_left .lm_header .lm_tabs .lm_tab,\n .lm_stack.lm_left .lm_header .lm_tabs .lm_tab {\n transform: scaleX(-1);\n margin-top: 1px;\n }\n .lm_dragProxy.lm_left .lm_header .lm_tabdropdown_list,\n .lm_stack.lm_left .lm_header .lm_tabdropdown_list {\n top: initial;\n right: initial;\n left: 20px;\n }\n .lm_dragProxy.lm_right .lm_content {\n float: left;\n }\n .lm_dragProxy.lm_right .lm_header .lm_tabs,\n .lm_stack.lm_right .lm_header .lm_tabs {\n transform: rotate(90deg) scaleX(1);\n left: 100%;\n margin-left: 0;\n }\n .lm_dragProxy.lm_right .lm_header .lm_controls,\n .lm_stack.lm_right .lm_header .lm_controls {\n left: 3px;\n }\n .lm_dragProxy.lm_right .lm_header .lm_tabdropdown_list,\n .lm_stack.lm_right .lm_header .lm_tabdropdown_list {\n top: initial;\n right: 20px;\n }\n .lm_dragProxy.lm_bottom .lm_header .lm_tab,\n .lm_stack.lm_bottom .lm_header .lm_tab {\n margin-top: 0;\n border-top: none;\n }\n .lm_dragProxy.lm_bottom .lm_header .lm_controls,\n .lm_stack.lm_bottom .lm_header .lm_controls {\n top: 3px;\n }\n .lm_dragProxy.lm_bottom .lm_header .lm_tabdropdown_list,\n .lm_stack.lm_bottom .lm_header .lm_tabdropdown_list {\n top: initial;\n bottom: 20px;\n }\n .lm_drop_tab_placeholder {\n float: left;\n width: 100px;\n height: 10px;\n visibility: hidden;\n }\n .lm_header .lm_tabdropdown_list {\n position: absolute;\n top: 20px;\n right: 0;\n z-index: 5;\n overflow: hidden;\n }\n .lm_header .lm_tabdropdown_list .lm_tab {\n clear: both;\n padding-right: 10px;\n margin: 0;\n }\n .lm_header .lm_tabdropdown_list .lm_tab .lm_title {\n width: 100px;\n }\n .lm_header .lm_tabdropdown_list .lm_close_tab {\n display: none !important;\n }\n .lm_dragProxy {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 30;\n }\n .lm_dragProxy .lm_header {\n background: transparent;\n }\n .lm_dragProxy .lm_content {\n border-top: none;\n overflow: hidden;\n }\n .lm_dropTargetIndicator {\n display: none;\n position: absolute;\n z-index: 20;\n box-shadow: none;\n }\n .lm_dropTargetIndicator .lm_inner {\n width: 100%;\n height: 100%;\n position: relative;\n top: 0;\n left: 0;\n }\n .lm_transition_indicator {\n display: none;\n width: 20px;\n height: 20px;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 20;\n }\n .lm_popin {\n width: 20px;\n height: 20px;\n position: absolute;\n bottom: 0;\n right: 0;\n z-index: 9999;\n }\n .lm_popin > * {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n }\n .lm_popin > .lm_bg {\n z-index: 10;\n }\n .lm_popin > .lm_icon {\n z-index: 20;\n } /*# sourceMappingURL=goldenlayout-base.css.map */\n`",
|
|
1295
|
+
"default": "css`\n ${containerStyles}\n ${loadingSpinnerStyles}\n\n :host {\n --foundation-tab-height: calc((( (var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px);\n }\n\n .lm_goldenlayout {\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n }\n\n .lm_stack.lm_item {\n background-color: var(--neutral-layer-3);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n }\n .lm_maximised .lm_header {\n background-color: var(--neutral-layer-3);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n position: unset;\n }\n\n .lm_maximised .lm_header .lm_tabs {\n z-index: 3;\n }\n\n .lm_content {\n background-color: var(--neutral-layer-card-container);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n border: 1px solid;\n border-color: var(--neutral-stroke-rest);\n box-sizing: border-box;\n color: var(--neutral-foreground-rest);\n }\n\n .lm_header .lm_tabs {\n padding: 0 16px;\n }\n\n .lm_stack > .lm_items {\n box-shadow: 0px -1px 15px rgba(0, 0, 0, 0.15);\n }\n\n .lm_header .lm_tab.lm_active.lm_focused {\n background-color: var(--neutral-layer-card-container);\n }\n .lm_header .lm_tab.lm_active {\n background-color: var(--neutral-layer-card-container);\n border: 1px solid;\n border-color: var(--neutral-stroke-rest);\n border-bottom: 0;\n color: var(--accent-foreground-rest);\n }\n\n .lm_header .lm_tab {\n align-items: center;\n background-color: var(--neutral-layer-4);\n border: 0;\n border-bottom-color: transparent;\n border-bottom: 0px solid;\n border-color: var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.5px) calc(var(--control-corner-radius) * 1.5px) 0 0;\n color: var(--accent-foreground-rest);\n display: flex;\n font-family: inherit;\n font-size: 13px;\n font-weight: 400;\n height: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) - 8px);\n margin-right: 2px;\n margin-top: 3px;\n padding: 2px 16px;\n }\n\n .lm_header .lm_tab:not(.lm_active):hover {\n background-color: var(--neutral-layer-card-container);\n color: var(--accent-foreground-rest);\n }\n\n .lm_header .lm_controls {\n top: 4px;\n display: flex;\n }\n .lm_header .lm_controls > * {\n width: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) - 6px);\n height: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) - 6px);\n background-repeat: no-repeat;\n background-position: center;\n background-size: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) * 0.533333);\n background-color: color-mix(in srgb, var(--neutral-fill-strong-rest), transparent 90%);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n margin-right: 4px;\n top: 3px;\n opacity: 1;\n }\n .lm_header .lm_controls > *:hover {\n background-color: color-mix(in srgb, var(--neutral-fill-strong-hover), transparent 75%);\n cursor: pointer;\n }\n\n .lm_controls .lm_maximise {\n background-image: url('${LAYOUT_ICONS.maximiseSVG}');\n }\n .lm_maximised .lm_controls .lm_maximise {\n background-image: url('${LAYOUT_ICONS.minimiseSVG}');\n }\n .lm_controls .lm_close {\n background-image: url('${LAYOUT_ICONS.closeSVG}');\n }\n .lm_header .lm_tab .lm_close_tab {\n background-image: url('${LAYOUT_ICONS.closeSVG}');\n background-size: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) * 0.2777);\n background-repeat: no-repeat;\n margin-left: 12px;\n position: relative;\n top: 0;\n right: 0;\n }\n\n .lm_header .lm_tab.lm_active {\n padding: 4px 25px 3px 10px;\n }\n\n .lm_header .lm_tab:not(.lm_active) .lm_title {\n color: var(--neutral-foreground-hint);\n }\n\n .lm_header .lm_controls .lm_tabdropdown::before {\n content: none;\n }\n .lm_header .lm_controls .lm_tabdropdown {\n background-image: url('${LAYOUT_ICONS.tabDropdownSVG}');\n }\n .lm_header .lm_tabdropdown_list {\n top: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});\n right: 108px;\n background-color: var(--neutral-layer-3);\n border: 1px solid;\n border-color: var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.35);\n }\n .lm_header .lm_tabdropdown_list > .lm_tab {\n box-shadow: none;\n padding: 0 16px;\n white-space: nowrap;\n background-color: transparent;\n color: var(--neutral-foreground-rest);\n height: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});\n border-radius: 0;\n overflow: visible;\n text-overflow: normal;\n }\n .lm_header .lm_tabdropdown_list > .lm_tab:last-child {\n border-bottom: 0;\n }\n\n /* gl base styles start */\n .lm_root {\n position: relative;\n }\n .lm_row > .lm_item {\n float: left;\n }\n .lm_content {\n overflow: hidden;\n position: relative;\n }\n .lm_dragging,\n .lm_dragging * {\n cursor: move !important;\n user-select: none;\n }\n .lm_maximised {\n left: 0;\n padding: 1px;\n position: absolute;\n top: 0;\n z-index: 40;\n }\n .lm_maximise_placeholder {\n display: none;\n }\n .lm_splitter {\n position: relative;\n z-index: 20;\n }\n .lm_splitter:hover,\n .lm_splitter.lm_dragging {\n background: var(--accent-fill-rest);\n border-radius: calc(var(--control-corner-radius) * 4px);\n }\n .lm_splitter.lm_vertical .lm_drag_handle {\n width: 100%;\n height: 15px;\n position: absolute;\n top: -5px;\n cursor: ns-resize !important;\n }\n .lm_splitter.lm_horizontal {\n float: left;\n height: 100%;\n }\n .lm_splitter.lm_horizontal .lm_drag_handle {\n width: 15px;\n height: 100%;\n position: absolute;\n left: -5px;\n cursor: ew-resize !important;\n }\n .lm_header {\n overflow: visible;\n position: relative;\n }\n .lm_header [class^='lm_'] {\n box-sizing: content-box !important;\n }\n .lm_header .lm_controls {\n position: absolute;\n right: 3px;\n }\n .lm_header .lm_controls > li {\n cursor: pointer;\n float: left;\n width: 18px;\n height: 18px;\n text-align: center;\n }\n .lm_header ul {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n .lm_header .lm_tabs {\n position: absolute;\n }\n .lm_header .lm_tab {\n cursor: pointer;\n float: left;\n margin-top: 1px;\n padding: 3px 25px 3px 10px;\n position: relative;\n }\n .lm_header .lm_tab i {\n width: 2px;\n height: 19px;\n position: absolute;\n }\n .lm_header .lm_tab i.lm_left {\n top: 0;\n left: -2px;\n }\n .lm_header .lm_tab i.lm_right {\n top: 0;\n right: -2px;\n }\n .lm_header .lm_tab .lm_title {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n user-select: none;\n }\n .lm_header .lm_tab .lm_title:only-child {\n padding-left: 10px;\n }\n .lm_header .lm_tab .lm_close_tab {\n width: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) * 0.3888);\n height: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) * 0.3888);\n top: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) * 0.3055);\n position: absolute;\n right: 0;\n text-align: center;\n }\n .lm_stack.lm_left .lm_header,\n .lm_stack.lm_right .lm_header {\n height: 100%;\n }\n .lm_dragProxy.lm_left .lm_header,\n .lm_dragProxy.lm_right .lm_header,\n .lm_stack.lm_left .lm_header,\n .lm_stack.lm_right .lm_header {\n width: 20px;\n float: left;\n vertical-align: top;\n }\n .lm_dragProxy.lm_left .lm_header .lm_tabs,\n .lm_dragProxy.lm_right .lm_header .lm_tabs,\n .lm_stack.lm_left .lm_header .lm_tabs,\n .lm_stack.lm_right .lm_header .lm_tabs {\n transform-origin: left top;\n top: 0;\n width: 1000px;\n }\n .lm_dragProxy.lm_left .lm_header .lm_controls,\n .lm_dragProxy.lm_right .lm_header .lm_controls,\n .lm_stack.lm_left .lm_header .lm_controls,\n .lm_stack.lm_right .lm_header .lm_controls {\n bottom: 0;\n }\n .lm_dragProxy.lm_left .lm_items,\n .lm_dragProxy.lm_right .lm_items,\n .lm_stack.lm_left .lm_items,\n .lm_stack.lm_right .lm_items {.lm_header .lm_tab.lm_active\n float: left;\n }\n .lm_dragProxy.lm_left .lm_header .lm_tabs,\n .lm_stack.lm_left .lm_header .lm_tabs {\n transform: rotate(-90deg) scaleX(-1);\n left: 0;\n }\n .lm_dragProxy.lm_left .lm_header .lm_tabs .lm_tab,\n .lm_stack.lm_left .lm_header .lm_tabs .lm_tab {\n transform: scaleX(-1);\n margin-top: 1px;\n }\n .lm_dragProxy.lm_left .lm_header .lm_tabdropdown_list,\n .lm_stack.lm_left .lm_header .lm_tabdropdown_list {\n top: initial;\n right: initial;\n left: 20px;\n }\n .lm_dragProxy.lm_right .lm_content {\n float: left;\n }\n .lm_dragProxy.lm_right .lm_header .lm_tabs,\n .lm_stack.lm_right .lm_header .lm_tabs {\n transform: rotate(90deg) scaleX(1);\n left: 100%;\n margin-left: 0;\n }\n .lm_dragProxy.lm_right .lm_header .lm_controls,\n .lm_stack.lm_right .lm_header .lm_controls {\n left: 3px;\n }\n .lm_dragProxy.lm_right .lm_header .lm_tabdropdown_list,\n .lm_stack.lm_right .lm_header .lm_tabdropdown_list {\n top: initial;\n right: 20px;\n }\n .lm_dragProxy.lm_bottom .lm_header .lm_tab,\n .lm_stack.lm_bottom .lm_header .lm_tab {\n margin-top: 0;\n border-top: none;\n }\n .lm_dragProxy.lm_bottom .lm_header .lm_controls,\n .lm_stack.lm_bottom .lm_header .lm_controls {\n top: 3px;\n }\n .lm_dragProxy.lm_bottom .lm_header .lm_tabdropdown_list,\n .lm_stack.lm_bottom .lm_header .lm_tabdropdown_list {\n top: initial;\n bottom: 20px;\n }\n .lm_drop_tab_placeholder {\n float: left;\n width: 100px;\n height: 10px;\n visibility: hidden;\n }\n .lm_header .lm_tabdropdown_list {\n position: absolute;\n top: 20px;\n right: 0;\n z-index: 5;\n overflow: hidden;\n }\n .lm_header .lm_tabdropdown_list .lm_tab {\n clear: both;\n padding-right: 10px;\n margin: 0;\n }\n .lm_header .lm_tabdropdown_list .lm_tab .lm_title {\n width: 100px;\n }\n .lm_header .lm_tabdropdown_list .lm_close_tab {\n display: none !important;\n }\n .lm_dragProxy {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 30;\n }\n .lm_dragProxy .lm_header {\n background: transparent;\n }\n .lm_dragProxy .lm_content {\n border-top: none;\n overflow: hidden;\n }\n .lm_dropTargetIndicator {\n display: none;\n position: absolute;\n z-index: 20;\n box-shadow: none;\n }\n .lm_dropTargetIndicator .lm_inner {\n width: 100%;\n height: 100%;\n position: relative;\n top: 0;\n left: 0;\n }\n .lm_transition_indicator {\n display: none;\n width: 20px;\n height: 20px;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 20;\n }\n .lm_popin {\n width: 20px;\n height: 20px;\n position: absolute;\n bottom: 0;\n right: 0;\n z-index: 9999;\n }\n .lm_popin > * {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n }\n .lm_popin > .lm_bg {\n z-index: 10;\n }\n .lm_popin > .lm_icon {\n z-index: 20;\n } /*# sourceMappingURL=goldenlayout-base.css.map */\n`",
|
|
1263
1296
|
"description": "`ElementStyles` which defines the css for FoundationLayout.",
|
|
1264
1297
|
"privacy": "public"
|
|
1265
1298
|
}
|
|
@@ -1297,6 +1330,18 @@
|
|
|
1297
1330
|
},
|
|
1298
1331
|
"default": "'f-layout-popout'",
|
|
1299
1332
|
"description": "Put this classname on an element which is a DOM parent of the layout, and\nif the layout goes into popout mode then it will place itself as the only child\nfor the popout container you set."
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"kind": "variable",
|
|
1336
|
+
"name": "DEFAULT_TAB_HEIGHT",
|
|
1337
|
+
"type": {
|
|
1338
|
+
"text": "string"
|
|
1339
|
+
},
|
|
1340
|
+
"default": "'36px'"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"kind": "function",
|
|
1344
|
+
"name": "getLayoutHeaderHeight"
|
|
1300
1345
|
}
|
|
1301
1346
|
],
|
|
1302
1347
|
"exports": [
|
|
@@ -1315,6 +1360,22 @@
|
|
|
1315
1360
|
"name": "LAYOUT_POPOUT_CONTAINER_CLASS",
|
|
1316
1361
|
"module": "src/utils/constants.ts"
|
|
1317
1362
|
}
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"kind": "js",
|
|
1366
|
+
"name": "DEFAULT_TAB_HEIGHT",
|
|
1367
|
+
"declaration": {
|
|
1368
|
+
"name": "DEFAULT_TAB_HEIGHT",
|
|
1369
|
+
"module": "src/utils/constants.ts"
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"kind": "js",
|
|
1374
|
+
"name": "getLayoutHeaderHeight",
|
|
1375
|
+
"declaration": {
|
|
1376
|
+
"name": "getLayoutHeaderHeight",
|
|
1377
|
+
"module": "src/utils/constants.ts"
|
|
1378
|
+
}
|
|
1318
1379
|
}
|
|
1319
1380
|
]
|
|
1320
1381
|
},
|
|
@@ -1404,6 +1465,105 @@
|
|
|
1404
1465
|
}
|
|
1405
1466
|
]
|
|
1406
1467
|
},
|
|
1468
|
+
{
|
|
1469
|
+
"kind": "javascript-module",
|
|
1470
|
+
"path": "src/utils/factory-registry.ts",
|
|
1471
|
+
"declarations": [
|
|
1472
|
+
{
|
|
1473
|
+
"kind": "function",
|
|
1474
|
+
"name": "registerFactory",
|
|
1475
|
+
"return": {
|
|
1476
|
+
"type": {
|
|
1477
|
+
"text": "void"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
"parameters": [
|
|
1481
|
+
{
|
|
1482
|
+
"name": "key",
|
|
1483
|
+
"type": {
|
|
1484
|
+
"text": "string"
|
|
1485
|
+
},
|
|
1486
|
+
"description": "Unique identifier for the factory. Should be descriptive and unique across the application."
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"name": "factory",
|
|
1490
|
+
"type": {
|
|
1491
|
+
"text": "ComponentFactory"
|
|
1492
|
+
},
|
|
1493
|
+
"description": "The factory function that creates the component."
|
|
1494
|
+
}
|
|
1495
|
+
],
|
|
1496
|
+
"description": "Registers a factory function with a unique key.\nThis allows framework components to be used in the declarative layout API\nwithout needing to pass function references through HTML attributes.",
|
|
1497
|
+
"privacy": "public"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"kind": "function",
|
|
1501
|
+
"name": "getFactory",
|
|
1502
|
+
"return": {
|
|
1503
|
+
"type": {
|
|
1504
|
+
"text": ""
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
"parameters": [
|
|
1508
|
+
{
|
|
1509
|
+
"name": "key",
|
|
1510
|
+
"type": {
|
|
1511
|
+
"text": "string"
|
|
1512
|
+
},
|
|
1513
|
+
"description": "The unique identifier for the factory."
|
|
1514
|
+
}
|
|
1515
|
+
],
|
|
1516
|
+
"description": "Retrieves a factory function by its key.",
|
|
1517
|
+
"privacy": "public"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"kind": "function",
|
|
1521
|
+
"name": "unregisterFactory",
|
|
1522
|
+
"return": {
|
|
1523
|
+
"type": {
|
|
1524
|
+
"text": ""
|
|
1525
|
+
}
|
|
1526
|
+
},
|
|
1527
|
+
"parameters": [
|
|
1528
|
+
{
|
|
1529
|
+
"name": "key",
|
|
1530
|
+
"type": {
|
|
1531
|
+
"text": "string"
|
|
1532
|
+
},
|
|
1533
|
+
"description": "The unique identifier for the factory to remove."
|
|
1534
|
+
}
|
|
1535
|
+
],
|
|
1536
|
+
"description": "Removes a factory from the registry.\nThis is useful for cleanup when a component is unmounted or no longer needed.",
|
|
1537
|
+
"privacy": "public"
|
|
1538
|
+
}
|
|
1539
|
+
],
|
|
1540
|
+
"exports": [
|
|
1541
|
+
{
|
|
1542
|
+
"kind": "js",
|
|
1543
|
+
"name": "registerFactory",
|
|
1544
|
+
"declaration": {
|
|
1545
|
+
"name": "registerFactory",
|
|
1546
|
+
"module": "src/utils/factory-registry.ts"
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"kind": "js",
|
|
1551
|
+
"name": "getFactory",
|
|
1552
|
+
"declaration": {
|
|
1553
|
+
"name": "getFactory",
|
|
1554
|
+
"module": "src/utils/factory-registry.ts"
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
"kind": "js",
|
|
1559
|
+
"name": "unregisterFactory",
|
|
1560
|
+
"declaration": {
|
|
1561
|
+
"name": "unregisterFactory",
|
|
1562
|
+
"module": "src/utils/factory-registry.ts"
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
]
|
|
1566
|
+
},
|
|
1407
1567
|
{
|
|
1408
1568
|
"kind": "javascript-module",
|
|
1409
1569
|
"path": "src/utils/index.ts",
|
|
@@ -1433,6 +1593,14 @@
|
|
|
1433
1593
|
"package": "./events"
|
|
1434
1594
|
}
|
|
1435
1595
|
},
|
|
1596
|
+
{
|
|
1597
|
+
"kind": "js",
|
|
1598
|
+
"name": "*",
|
|
1599
|
+
"declaration": {
|
|
1600
|
+
"name": "*",
|
|
1601
|
+
"package": "./factory-registry"
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1436
1604
|
{
|
|
1437
1605
|
"kind": "js",
|
|
1438
1606
|
"name": "*",
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './main';
|
|
2
2
|
export { LAYOUT_ICONS } from './styles';
|
|
3
|
-
export { CustomButton, DEFAULT_RELOAD_BUFFER, LayoutComponentWithState, LayoutEmitEvents, LayoutReceiveEvents, LayoutReceiveEventsDetail, LayoutRegionType, LayoutRegistrationError, LayoutUsageError, Placement, RegisteredElementConfig, RegistrationConfig, SerialisedLayout, LAYOUT_POPOUT_CONTAINER_CLASS, } from './utils';
|
|
3
|
+
export { ComponentFactory, CustomButton, DEFAULT_RELOAD_BUFFER, LayoutComponentWithState, LayoutEmitEvents, LayoutReceiveEvents, LayoutReceiveEventsDetail, LayoutRegionType, LayoutRegistrationError, LayoutUsageError, Placement, RegisteredElementConfig, RegistrationConfig, SerialisedLayout, LAYOUT_POPOUT_CONTAINER_CLASS, } from './utils';
|
|
4
|
+
export { registerFactory, getFactory, unregisterFactory } from './utils/factory-registry';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,SAAS,EACT,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,SAAS,EACT,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -7,6 +7,9 @@ import { componentType, LayoutComponent, RegistrationConfig } from '../utils';
|
|
|
7
7
|
* This element is used to wrap html elements and configure their layout settings as part of the layout system.
|
|
8
8
|
*
|
|
9
9
|
* This is a simple component which is only used to define the layout splits; any JavaScript API interactions or custom styling is used via {@link FoundationLayout}.
|
|
10
|
+
*
|
|
11
|
+
* The item can either use slotted content or a factory function registered via {@link registerFactory}.
|
|
12
|
+
* When a factory is registered with the same name as the registration attribute, it takes precedence over slotted content.
|
|
10
13
|
* @tagname %%prefix%%-layout-item
|
|
11
14
|
*/
|
|
12
15
|
export declare class FoundationLayoutItem extends FoundationElement implements LayoutComponent {
|
|
@@ -35,6 +38,23 @@ export declare class FoundationLayoutItem extends FoundationElement implements L
|
|
|
35
38
|
* Using a duplicate registration name is a runtime error.
|
|
36
39
|
* This registration name defaults to the number of the window it is.
|
|
37
40
|
* It is highly recommended if you are using the JavaScript API that you set a registration name here manually.
|
|
41
|
+
*
|
|
42
|
+
* When using the declarative API with framework components, register a factory function via {@link registerFactory}
|
|
43
|
+
* using the same name as this registration attribute.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import { registerFactory } from '@genesislcap/foundation-layout';
|
|
48
|
+
* import { reactFactory } from './utils/react-layout-factory';
|
|
49
|
+
*
|
|
50
|
+
* // Register factory with the same name as the registration
|
|
51
|
+
* registerFactory('my-component', reactFactory(MyComponent));
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* Then in JSX/HTML:
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <rapid-layout-item registration="my-component" title="My Component" />
|
|
57
|
+
* ```
|
|
38
58
|
* @public
|
|
39
59
|
*/
|
|
40
60
|
registration: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-item.d.ts","sourceRoot":"","sources":["../../../src/main/layout-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACL,aAAa,EAEb,eAAe,EACf,kBAAkB,EAEnB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"layout-item.d.ts","sourceRoot":"","sources":["../../../src/main/layout-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACL,aAAa,EAEb,eAAe,EACf,kBAAkB,EAEnB,MAAM,UAAU,CAAC;AAMlB;;;;;;;;;;;GAWG;AACH,qBAAa,oBAAqB,SAAQ,iBAAkB,YAAW,eAAe;IACpF;;;;;OAKG;IACG,KAAK,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACwB,QAAQ,EAAE,OAAO,CAAS;IAErD;;;OAGG;IACG,IAAI,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,YAAY,EAAE,MAAM,CAAC;IAE3B,gBAAgB;IAChB,CAAC,aAAa,CAAC,EAAG,MAAM,CAAU;IAElC,gBAAgB;IAChB,OAAO,CAAC,eAAe,CAAY;IAEnC,gBAAgB;IAChB,iBAAiB,IAAI,IAAI;IA8CzB,gBAAgB;IAChB,OAAO,CAAC,wBAAwB;IAIhC,gBAAgB;IAChB,mBAAmB,IAAI,IAAI;IAI3B,gBAAgB;IAChB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM;CAG7D;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;;;;+BAG/B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayoutConfig, RootItemConfig } from '@genesis-community/golden-layout';
|
|
2
2
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
|
-
import { componentType, CustomButton, LayoutComponent, Placement, RegisteredElementConfig, RegistrationConfig, SerialisedLayout } from '../utils/';
|
|
3
|
+
import { ComponentFactory, componentType, CustomButton, LayoutComponent, Placement, RegisteredElementConfig, RegistrationConfig, SerialisedLayout } from '../utils/';
|
|
4
4
|
export { layoutStyles } from '../styles';
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -126,6 +126,10 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
|
126
126
|
private onPreItemMaximised;
|
|
127
127
|
/** @internal */
|
|
128
128
|
private onPreItemMinimised;
|
|
129
|
+
/** @internal */
|
|
130
|
+
private customTokensMap;
|
|
131
|
+
/** @internal */
|
|
132
|
+
customTokensMapChanged(): void;
|
|
129
133
|
/**
|
|
130
134
|
* JS API, public
|
|
131
135
|
*/
|
|
@@ -240,21 +244,48 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
|
240
244
|
removeItems(registration: string, force?: boolean): number;
|
|
241
245
|
/**
|
|
242
246
|
* @public
|
|
243
|
-
* Register a collection of `Element` and associate them with an `ID` with the layout system for later use.
|
|
247
|
+
* Register a collection of `Element` or a factory function and associate them with an `ID` with the layout system for later use.
|
|
244
248
|
* @remarks
|
|
245
|
-
* You
|
|
249
|
+
* You can register either an array of elements or a factory function.
|
|
250
|
+
*
|
|
251
|
+
* **Element registration**: Use this to register elements that you later want to load when using {@link FoundationLayout.loadLayout}.
|
|
246
252
|
* Use {@link FoundationLayout.layoutRequiredRegistrations} to see what components need to be registered for a certain config
|
|
247
253
|
* and then register them using this function before calling {@link FoundationLayout.loadLayout}.
|
|
254
|
+
* When registering an element it is moved by reference into the internals of the layout, so if you pass elements already in the DOM then they will disappear.
|
|
255
|
+
* If you want to avoid this you can pass copies using `element.cloneNode(true)`.
|
|
248
256
|
*
|
|
249
|
-
*
|
|
257
|
+
* **Factory registration**: This is the recommended approach for framework-rendered components (React, Angular, Vue, etc.)
|
|
258
|
+
* because it allows each layout instance to create a fresh component rather than cloning existing
|
|
259
|
+
* DOM elements (which loses event listeners and framework bindings).
|
|
260
|
+
* The factory function will be called each time a new instance of the component is needed. It receives
|
|
261
|
+
* a container element and should render the component into it. Optionally, it can return a cleanup
|
|
262
|
+
* function that will be called when the component is removed from the layout.
|
|
250
263
|
*
|
|
251
264
|
* @param registration - string of the registration ID
|
|
252
|
-
* @param
|
|
265
|
+
* @param elementsOrFactory - Either Elements[] containing the reference to the elements to register, or a ComponentFactory function
|
|
253
266
|
* @throws {@link LayoutUsageError} if you attempt to add an item before the layout has been initialised.
|
|
254
267
|
* @throws {@link LayoutRegistrationError} if you attempt to use a `registration` name which is already in use (declarative html API and JavaScript API registrations use the same "pool" of registration names).
|
|
255
268
|
* @returns - string defining the name of the registered item with the layout system (config.id if set).
|
|
256
|
-
|
|
257
|
-
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* Element registration:
|
|
272
|
+
* ```typescript
|
|
273
|
+
* const div = document.createElement('div');
|
|
274
|
+
* div.innerHTML = '<h1>Hello</h1>';
|
|
275
|
+
* layout.registerItem('my-element', [div]);
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
278
|
+
* @example
|
|
279
|
+
* Factory registration (React):
|
|
280
|
+
* ```typescript
|
|
281
|
+
* layout.registerItem('text-field', (container) => {
|
|
282
|
+
* const root = createRoot(container);
|
|
283
|
+
* root.render(<TextFieldComponent />);
|
|
284
|
+
* return () => root.unmount();
|
|
285
|
+
* });
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
registerItem(registration: string, elementsOrFactory: Element[] | ComponentFactory): string;
|
|
258
289
|
/**
|
|
259
290
|
* Internal APIs
|
|
260
291
|
*/
|
|
@@ -283,12 +314,13 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
|
283
314
|
/**
|
|
284
315
|
* Registers a function with golden layout to create a pane
|
|
285
316
|
* @param elements - Elements[] to add to new new pane
|
|
317
|
+
* @param factory - ComponentFactory function to create component instances
|
|
286
318
|
* @param id - optional string which is used to register the new function with golden layout. Defaults to sequentially setting the IDs for default items
|
|
287
319
|
* @returns - string which is the registered ID
|
|
288
320
|
* @throws - {@link LayoutRegistrationError} if the id is already in use
|
|
289
321
|
* @internal
|
|
290
322
|
*/
|
|
291
|
-
cacheElementsAndRegister(
|
|
323
|
+
cacheElementsAndRegister(config: RegistrationConfig): string;
|
|
292
324
|
/**
|
|
293
325
|
* Sets up the event listeners for the layout receive events
|
|
294
326
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-main.d.ts","sourceRoot":"","sources":["../../../src/main/layout-main.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAEZ,cAAc,EAGf,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"layout-main.d.ts","sourceRoot":"","sources":["../../../src/main/layout-main.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAEZ,cAAc,EAGf,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAGL,gBAAgB,EAChB,aAAa,EACb,YAAY,EAOZ,eAAe,EAKf,SAAS,EAET,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAKnB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAiBzC;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,SAAQ,iBAAkB,YAAW,eAAe;;IAChF,OAAO,CAAC,MAAM,CAAe;IAC7B,gBAAgB;IAChB,aAAa,EAAE,WAAW,CAAC;IAC3B,OAAO,CAAC,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,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM;IA4J5D;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAehC;;;;;;;;SAQK;IACL,OAAO,CAAC,kBAAkB;IAY1B;;;;;;;;OAQG;IACH,OAAO,CAAC,kCAAkC;IA4B1C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,oBAAoB;IAW5B;;;;;;;;OAQG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAc1B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAWpC;;;OAGG;IACH,OAAO,CAAC,uBAAuB;CAyBhC;AAMD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,uEAK1B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;2BAI3B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayoutConfig } from '@genesis-community/golden-layout';
|
|
2
|
-
export declare const glVisualConfig: Omit<LayoutConfig,
|
|
2
|
+
export declare const glVisualConfig: () => Omit<LayoutConfig, "root">;
|
|
3
3
|
/**
|
|
4
4
|
* A collection of SVG icons in base64 format.
|
|
5
5
|
* @remarks
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/styles/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/styles/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE,eAAO,MAAM,cAAc,QAAO,IAAI,CAAC,YAAY,EAAE,MAAM,CAUzD,CAAC;AAoBH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.styles.d.ts","sourceRoot":"","sources":["../../../src/styles/layout.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.styles.d.ts","sourceRoot":"","sources":["../../../src/styles/layout.styles.ts"],"names":[],"mappings":"AA2FA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,iDAgbxB,CAAC"}
|
|
@@ -33,4 +33,6 @@ export declare const LAYOUT_POPOUT_CONTROL_KEY = "f-layout-key";
|
|
|
33
33
|
* @beta
|
|
34
34
|
*/
|
|
35
35
|
export declare const LAYOUT_POPOUT_CONTAINER_CLASS = "f-layout-popout";
|
|
36
|
+
export declare const DEFAULT_TAB_HEIGHT = "36px";
|
|
37
|
+
export declare const getLayoutHeaderHeight: () => string;
|
|
36
38
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,aAAa,eAA2B,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,eAA+B,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,YAAY,+BAA+B,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,oBAAoB,CAAC;AAE/D,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAGzC,eAAO,MAAM,qBAAqB,cAKjC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ComponentFactory } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Registers a factory function with a unique key.
|
|
4
|
+
* This allows framework components to be used in the declarative layout API
|
|
5
|
+
* without needing to pass function references through HTML attributes.
|
|
6
|
+
*
|
|
7
|
+
* @param key - Unique identifier for the factory. Should be descriptive and unique across the application.
|
|
8
|
+
* @param factory - The factory function that creates the component.
|
|
9
|
+
* @throws {Error} If a factory with the same key is already registered.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* // React example
|
|
14
|
+
* import { registerFactory } from '@genesislcap/foundation-layout';
|
|
15
|
+
* import { reactFactory } from './utils/react-layout-factory';
|
|
16
|
+
* import { MyComponent } from './components/MyComponent';
|
|
17
|
+
*
|
|
18
|
+
* registerFactory('my-component', reactFactory(MyComponent, { someProp: 'value' }));
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Then in your JSX:
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <rapid-layout-item
|
|
24
|
+
* registration="my-item"
|
|
25
|
+
* title="My Component"
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export declare function registerFactory(key: string, factory: ComponentFactory): void;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves a factory function by its key.
|
|
34
|
+
*
|
|
35
|
+
* @param key - The unique identifier for the factory.
|
|
36
|
+
* @returns The factory function, or undefined if not found.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export declare function getFactory(key: string): ComponentFactory | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Removes a factory from the registry.
|
|
43
|
+
* This is useful for cleanup when a component is unmounted or no longer needed.
|
|
44
|
+
*
|
|
45
|
+
* @param key - The unique identifier for the factory to remove.
|
|
46
|
+
* @returns True if the factory was found and removed, false otherwise.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```typescript
|
|
50
|
+
* unregisterFactory('my-component');
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export declare function unregisterFactory(key: string): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Clears all registered factories from the registry.
|
|
58
|
+
* This is primarily useful for testing purposes.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
export declare function clearFactoryRegistry(): void;
|
|
63
|
+
//# sourceMappingURL=factory-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory-registry.d.ts","sourceRoot":"","sources":["../../../src/utils/factory-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAQ5E;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAEpE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAQtD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAG3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -134,11 +134,52 @@ export type InstanceContainer = {
|
|
|
134
134
|
export type LayoutComponentItem<T> = Element & Partial<LayoutComponentWithState<T>> & {
|
|
135
135
|
[instanceContainer]?: InstanceContainer;
|
|
136
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
* Factory function for creating component instances in the layout.
|
|
140
|
+
* @remarks
|
|
141
|
+
* This is the recommended approach for framework-rendered components (React, Angular, Vue, etc.)
|
|
142
|
+
* because it allows each layout instance to create a fresh component rather than cloning existing
|
|
143
|
+
* DOM elements (which loses event listeners and framework bindings).
|
|
144
|
+
*
|
|
145
|
+
* The factory function receives a container element and should render the component into it.
|
|
146
|
+
* Optionally, it can return a cleanup function that will be called when the component is removed
|
|
147
|
+
* from the layout.
|
|
148
|
+
*
|
|
149
|
+
* @param container - The HTMLElement container where the component should be rendered
|
|
150
|
+
* @returns Optional cleanup function to be called when the component is removed
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* React example:
|
|
154
|
+
* ```typescript
|
|
155
|
+
* layout.registerItem('my-component', (container) => {
|
|
156
|
+
* const root = createRoot(container);
|
|
157
|
+
* root.render(<MyComponent />);
|
|
158
|
+
* return () => root.unmount();
|
|
159
|
+
* });
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* Angular example:
|
|
164
|
+
* ```typescript
|
|
165
|
+
* layout.registerItem('my-component', (container) => {
|
|
166
|
+
* const componentRef = createComponent(MyComponent, {
|
|
167
|
+
* environmentInjector: this.injector,
|
|
168
|
+
* hostElement: container
|
|
169
|
+
* });
|
|
170
|
+
* return () => componentRef.destroy();
|
|
171
|
+
* });
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
export type ComponentFactory = (container: HTMLElement) => void | (() => void);
|
|
137
175
|
/** @internal */
|
|
138
|
-
export
|
|
139
|
-
elements: Element[];
|
|
176
|
+
export type RegistrationConfig = {
|
|
140
177
|
id?: string;
|
|
141
|
-
}
|
|
178
|
+
} & ({
|
|
179
|
+
elements: Element[];
|
|
180
|
+
} | {
|
|
181
|
+
factory: ComponentFactory;
|
|
182
|
+
});
|
|
142
183
|
/** @internal */
|
|
143
184
|
export declare const layoutRegionValue: readonly ["horizontal", "vertical", "tabs"];
|
|
144
185
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,oBAAoB,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoDK;AACL,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC;;OAEG;IACH,eAAe,IAAI,CAAC,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;CACnC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,C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