@genesislcap/foundation-layout 15.111.3 → 15.111.4-FUI-2675.1
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 +137 -120
- package/dist/dts/main/layout-main.d.ts.map +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 +6 -1
- package/dist/dts/utils/constants.d.ts.map +1 -1
- package/dist/esm/main/layout-main.js +2 -1
- package/dist/esm/styles/constants.js +4 -2
- package/dist/esm/styles/layout.styles.js +136 -54
- package/dist/esm/utils/constants.js +18 -4
- package/package.json +13 -13
|
@@ -185,6 +185,125 @@
|
|
|
185
185
|
}
|
|
186
186
|
]
|
|
187
187
|
},
|
|
188
|
+
{
|
|
189
|
+
"kind": "javascript-module",
|
|
190
|
+
"path": "src/styles/constants.ts",
|
|
191
|
+
"declarations": [
|
|
192
|
+
{
|
|
193
|
+
"kind": "function",
|
|
194
|
+
"name": "glVisualConfig",
|
|
195
|
+
"return": {
|
|
196
|
+
"type": {
|
|
197
|
+
"text": "Omit<LayoutConfig, 'root'>"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"kind": "variable",
|
|
203
|
+
"name": "LAYOUT_ICONS",
|
|
204
|
+
"type": {
|
|
205
|
+
"text": "{\n renameSVG,\n maximiseSVG,\n minimiseSVG,\n closeSVG,\n tabDropdownSVG,\n popoutSVG,\n}"
|
|
206
|
+
},
|
|
207
|
+
"default": "{\n renameSVG,\n maximiseSVG,\n minimiseSVG,\n closeSVG,\n tabDropdownSVG,\n popoutSVG,\n}",
|
|
208
|
+
"description": "A collection of SVG icons in base64 format.",
|
|
209
|
+
"privacy": "public"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"exports": [
|
|
213
|
+
{
|
|
214
|
+
"kind": "js",
|
|
215
|
+
"name": "glVisualConfig",
|
|
216
|
+
"declaration": {
|
|
217
|
+
"name": "glVisualConfig",
|
|
218
|
+
"module": "src/styles/constants.ts"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"kind": "js",
|
|
223
|
+
"name": "LAYOUT_ICONS",
|
|
224
|
+
"declaration": {
|
|
225
|
+
"name": "LAYOUT_ICONS",
|
|
226
|
+
"module": "src/styles/constants.ts"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"kind": "javascript-module",
|
|
233
|
+
"path": "src/styles/dragging.styles.ts",
|
|
234
|
+
"declarations": [
|
|
235
|
+
{
|
|
236
|
+
"kind": "variable",
|
|
237
|
+
"name": "globalDraggingStyles",
|
|
238
|
+
"default": "`\n .lm_dragProxy .lm_content {\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);\n }\n .lm_dropTargetIndicator {\n outline: 1px dashed #cccccc;\n transition: all 200ms ease;\n }\n .lm_dropTargetIndicator .lm_inner {\n background: var(${neutralFillStealthRest.cssCustomProperty});\n opacity: 0.2;\n }\n .lm_dragProxy.lm_left .lm_header,\n .lm_dragProxy.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 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 bottom: 0;\n }\n .lm_dragProxy.lm_left .lm_items,\n .lm_dragProxy.lm_right .lm_items {\n float: left;\n }\n .lm_dragProxy.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 transform: scaleX(-1);\n margin-top: 1px;\n }\n .lm_dragProxy.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 transform: rotate(90deg) scaleX(1);\n left: 100%;\n margin-left: 0;\n }\n .lm_dragProxy.lm_right .lm_header .lm_controls {\n left: 3px;\n }\n .lm_dragProxy.lm_right .lm_header .lm_tabdropdown_list {\n top: initial;\n right: 20px;\n }\n .lm_dragProxy.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_dragProxy {\n cursor: move;\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_title {\n color: white;\n padding-left: 10px;\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 }\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`",
|
|
239
|
+
"description": "This is defined as a string rather than a css template\nbecause it is applied to a CSSStyleSheet object rather than\nused as a FAST template"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"exports": [
|
|
243
|
+
{
|
|
244
|
+
"kind": "js",
|
|
245
|
+
"name": "globalDraggingStyles",
|
|
246
|
+
"declaration": {
|
|
247
|
+
"name": "globalDraggingStyles",
|
|
248
|
+
"module": "src/styles/dragging.styles.ts"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "javascript-module",
|
|
255
|
+
"path": "src/styles/index.ts",
|
|
256
|
+
"declarations": [],
|
|
257
|
+
"exports": [
|
|
258
|
+
{
|
|
259
|
+
"kind": "js",
|
|
260
|
+
"name": "*",
|
|
261
|
+
"declaration": {
|
|
262
|
+
"name": "*",
|
|
263
|
+
"package": "./constants"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"kind": "js",
|
|
268
|
+
"name": "*",
|
|
269
|
+
"declaration": {
|
|
270
|
+
"name": "*",
|
|
271
|
+
"package": "./dragging.styles"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"kind": "js",
|
|
276
|
+
"name": "*",
|
|
277
|
+
"declaration": {
|
|
278
|
+
"name": "*",
|
|
279
|
+
"package": "./layout.styles"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"kind": "javascript-module",
|
|
286
|
+
"path": "src/styles/layout.styles.ts",
|
|
287
|
+
"declarations": [
|
|
288
|
+
{
|
|
289
|
+
"kind": "variable",
|
|
290
|
+
"name": "layoutStyles",
|
|
291
|
+
"default": "css`\n ${containerStyles}\n ${loadingSpinnerStyles}\n\n :host {\n /* Tab strip uses its own multiplier (9 → 32px) so panel contents keep the 28px control height. */\n --foundation-tab-height: calc(\n (((var(--layout-tab-height-multiplier, 9) + var(--density)) * var(--design-unit)) - 4) * 1px\n );\n }\n\n .lm_goldenlayout {\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n font-family: var(--body-font);\n box-sizing: border-box;\n }\n\n .lm_goldenlayout * {\n box-sizing: border-box;\n }\n\n /*\n * Defaults match flexlayout (rapid-design-system flexlayout-react.overrides.css) and rapid-tabs:\n * a bordered layer-2 panel whose strip holds flat tabs split by 1px separators, over a\n * card-container content area with a top edge only. Only fallbacks changed; the theming tokens\n * (--card-*, --rapid-layout-item-*, --tab-rest-*, --tab-active-*) still win when set.\n */\n /*\n * Borders on golden-layout boxes must not take up space. golden-layout sizes each box's content\n * in JS from the box's outer size (offsetWidth/offsetHeight minus a single \\`itemBorder\\`), so a real\n * border pushes the content past the box and it clips on the right and bottom. The panel border is\n * therefore drawn by an overlay above the panel's content (.lm_stack::after), as is the content's\n * edge (.lm_content::after), with \\`itemBorder\\` pinned to 0 (glVisualConfig). The tokens are\n * unchanged.\n */\n .lm_stack.lm_item {\n background-color: var(--rapid-layout-item-background, var(--neutral-layer-2));\n border: 0;\n border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 3px));\n box-sizing: border-box;\n /* Rapid's panel elevation (rapid-design-system tokens/elevation.ts); none outside Rapid. */\n box-shadow: var(--nested-shadow, var(--panel-shadow-override, var(--card-box-shadow, var(--panel-shadow, none))));\n }\n\n /* Positions the overlay; a maximised stack keeps golden-layout's absolute positioning. */\n .lm_stack.lm_item:not(.lm_maximised) {\n position: relative;\n }\n\n .lm_stack.lm_item::after {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 2;\n pointer-events: none;\n border-radius: inherit;\n border-style: solid;\n border-width: var(--rapid-layout-item-border-width, 1px);\n border-color: var(--rapid-layout-item-border-color, var(--panel-border, var(--neutral-stroke-rest)));\n }\n\n .lm_maximised .lm_header {\n border-bottom: var(--card-border, 0);\n position: unset;\n }\n\n .lm_maximised .lm_header .lm_tabs {\n z-index: 3;\n }\n\n .lm_content {\n /* The panel frames its content, so nested self-framing components (accordions) drop their own\n border. */\n --nested-border: 0;\n /* ...and nested containers (cards, tabs) drop their shadow. */\n --nested-shadow: none;\n\n background-color: var(--neutral-layer-card-container);\n /* The content fills the panel's whole box (its border is an overlay), so it shares its radius. */\n border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 3px))\n var(--card-corner-radius, calc(var(--control-corner-radius) * 3px));\n box-sizing: border-box;\n color: var(--neutral-foreground-rest);\n }\n\n /* A theme's --rapid-layout-item-inner-border, drawn over the content rather than as a border\n (see .lm_stack.lm_item). None by default: the header draws the top edge (see .lm_header). */\n .lm_content::after {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n border-radius: inherit;\n border: var(--rapid-layout-item-inner-border, 0);\n }\n\n .lm_header .lm_tabs {\n padding: 0 0 0 12px;\n }\n\n .lm_header .lm_tab.lm_active {\n background: var(--tab-active-background-color, var(--neutral-layer-card-container));\n color: var(--accent-foreground-rest);\n border-style: solid;\n border-width: var(--tab-active-border-width, 0 0 0 var(--tab-rest-border-width, 1px));\n border-color: var(--tab-active-border-color, var(--tab-rest-border-color, var(--neutral-stroke-rest)));\n }\n\n /* The content's top edge is drawn along the bottom of the header (an inset shadow under the\n tabs), not over the content, so the active tab's own background covers it and the tab flows\n straight into its panel: paint order alone, no z-index. Inactive tabs redraw the edge over\n their own (hover) background. */\n .lm_header,\n .lm_header .lm_tab:not(.lm_active) {\n box-shadow: inset 0 -1px 0 var(--neutral-stroke-rest);\n }\n\n /* A separator before each tab and after the last, as flexlayout's spacers draw. */\n .lm_header .lm_tab {\n align-items: center;\n background: var(--tab-rest-background-color, transparent);\n border-style: solid;\n border-width: 0 0 0 var(--tab-rest-border-width, 1px);\n border-color: var(--tab-rest-border-color, var(--neutral-stroke-rest));\n border-radius: 0;\n color: var(--accent-foreground-rest);\n display: flex;\n font-family: inherit;\n font-size: var(--type-ramp-minus-1-font-size);\n font-weight: 400;\n height: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});\n margin-right: 0;\n padding: 0 calc((12 + var(--design-unit) * 2 * var(--density)) * 1px);\n float: left;\n cursor: pointer;\n position: relative;\n }\n\n .lm_header .lm_tabs .lm_tab:last-child {\n border-right: var(--tab-rest-border-width, 1px) solid var(--tab-rest-border-color, var(--neutral-stroke-rest));\n }\n\n .lm_header .lm_tab:not(.lm_active):hover {\n background-color: var(--neutral-fill-stealth-active);\n color: var(--neutral-foreground-rest);\n }\n\n .lm_header .lm_tab:not(.lm_active):hover .lm_title {\n color: var(--neutral-foreground-rest);\n }\n\n /*\n * Window controls (tab dropdown, maximise / restore, close): round neutral icon buttons, the\n * same face as a neutral rapid-button (foundation-ui button-face.ts). The face paints the\n * background, so the icon is a mask on a ::before layer, coloured like a button's icon. Each\n * control names its icon in --layout-control-icon (custom buttons too, see setupCustomButtons).\n */\n .lm_header .lm_controls {\n top: 0;\n right: 6px;\n height: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});\n display: flex;\n align-items: center;\n gap: 4px;\n }\n .lm_header .lm_controls > * {\n position: relative;\n top: 0;\n width: 24px;\n height: 24px;\n margin: 0;\n box-sizing: border-box;\n border-radius: 9999px;\n opacity: 1;\n cursor: pointer;\n transition:\n ${GRADIENT_START} 200ms ease-out,\n ${GRADIENT_END} 200ms ease-out,\n box-shadow 200ms ease-out;\n }\n ${neutralButtonFace(\n '.lm_header .lm_controls > *',\n '.lm_header .lm_controls > *:hover',\n '.lm_header .lm_controls > *:active',\n )}\n .lm_header .lm_controls > *::before {\n content: '';\n position: absolute;\n inset: 0;\n background-color: var(--icon-color, var(--neutral-foreground-hint));\n mask-image: var(--layout-control-icon, none);\n mask-repeat: no-repeat;\n mask-position: center;\n /* The golden-layout glyphs fill their viewBox edge to edge (flexlayout's have built-in\n padding), so they're drawn a little smaller to match flexlayout's icons. */\n mask-size: calc(var(--design-unit) * 2.5px);\n }\n .lm_header .lm_controls > *:hover::before {\n background-color: var(--neutral-foreground-rest);\n }\n\n .lm_controls .lm_maximise {\n --layout-control-icon: url('${LAYOUT_ICONS.maximiseSVG}');\n }\n .lm_maximised .lm_controls .lm_maximise {\n --layout-control-icon: url('${LAYOUT_ICONS.minimiseSVG}');\n }\n .lm_controls .lm_close {\n --layout-control-icon: 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 background-position: center;\n margin-left: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px);\n position: relative;\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 {\n --layout-control-icon: 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-width: 0;\n border-radius: 0;\n overflow: visible;\n text-overflow: unset;\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: 0;\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-stroke, 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 border-bottom: var(--card-border, 0);\n }\n .lm_header .lm_controls {\n position: absolute;\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 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_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 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 {\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::after {\n content: none;\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`",
|
|
292
|
+
"description": "`ElementStyles` which defines the css for FoundationLayout.",
|
|
293
|
+
"privacy": "public"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"exports": [
|
|
297
|
+
{
|
|
298
|
+
"kind": "js",
|
|
299
|
+
"name": "layoutStyles",
|
|
300
|
+
"declaration": {
|
|
301
|
+
"name": "layoutStyles",
|
|
302
|
+
"module": "src/styles/layout.styles.ts"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
},
|
|
188
307
|
{
|
|
189
308
|
"kind": "javascript-module",
|
|
190
309
|
"path": "src/main/index.ts",
|
|
@@ -1458,125 +1577,6 @@
|
|
|
1458
1577
|
}
|
|
1459
1578
|
]
|
|
1460
1579
|
},
|
|
1461
|
-
{
|
|
1462
|
-
"kind": "javascript-module",
|
|
1463
|
-
"path": "src/styles/constants.ts",
|
|
1464
|
-
"declarations": [
|
|
1465
|
-
{
|
|
1466
|
-
"kind": "function",
|
|
1467
|
-
"name": "glVisualConfig",
|
|
1468
|
-
"return": {
|
|
1469
|
-
"type": {
|
|
1470
|
-
"text": "Omit<LayoutConfig, 'root'>"
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
"kind": "variable",
|
|
1476
|
-
"name": "LAYOUT_ICONS",
|
|
1477
|
-
"type": {
|
|
1478
|
-
"text": "{\n renameSVG,\n maximiseSVG,\n minimiseSVG,\n closeSVG,\n tabDropdownSVG,\n popoutSVG,\n}"
|
|
1479
|
-
},
|
|
1480
|
-
"default": "{\n renameSVG,\n maximiseSVG,\n minimiseSVG,\n closeSVG,\n tabDropdownSVG,\n popoutSVG,\n}",
|
|
1481
|
-
"description": "A collection of SVG icons in base64 format.",
|
|
1482
|
-
"privacy": "public"
|
|
1483
|
-
}
|
|
1484
|
-
],
|
|
1485
|
-
"exports": [
|
|
1486
|
-
{
|
|
1487
|
-
"kind": "js",
|
|
1488
|
-
"name": "glVisualConfig",
|
|
1489
|
-
"declaration": {
|
|
1490
|
-
"name": "glVisualConfig",
|
|
1491
|
-
"module": "src/styles/constants.ts"
|
|
1492
|
-
}
|
|
1493
|
-
},
|
|
1494
|
-
{
|
|
1495
|
-
"kind": "js",
|
|
1496
|
-
"name": "LAYOUT_ICONS",
|
|
1497
|
-
"declaration": {
|
|
1498
|
-
"name": "LAYOUT_ICONS",
|
|
1499
|
-
"module": "src/styles/constants.ts"
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
]
|
|
1503
|
-
},
|
|
1504
|
-
{
|
|
1505
|
-
"kind": "javascript-module",
|
|
1506
|
-
"path": "src/styles/dragging.styles.ts",
|
|
1507
|
-
"declarations": [
|
|
1508
|
-
{
|
|
1509
|
-
"kind": "variable",
|
|
1510
|
-
"name": "globalDraggingStyles",
|
|
1511
|
-
"default": "`\n .lm_dragProxy .lm_content {\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);\n }\n .lm_dropTargetIndicator {\n outline: 1px dashed #cccccc;\n transition: all 200ms ease;\n }\n .lm_dropTargetIndicator .lm_inner {\n background: var(${neutralFillStealthRest.cssCustomProperty});\n opacity: 0.2;\n }\n .lm_dragProxy.lm_left .lm_header,\n .lm_dragProxy.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 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 bottom: 0;\n }\n .lm_dragProxy.lm_left .lm_items,\n .lm_dragProxy.lm_right .lm_items {\n float: left;\n }\n .lm_dragProxy.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 transform: scaleX(-1);\n margin-top: 1px;\n }\n .lm_dragProxy.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 transform: rotate(90deg) scaleX(1);\n left: 100%;\n margin-left: 0;\n }\n .lm_dragProxy.lm_right .lm_header .lm_controls {\n left: 3px;\n }\n .lm_dragProxy.lm_right .lm_header .lm_tabdropdown_list {\n top: initial;\n right: 20px;\n }\n .lm_dragProxy.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_dragProxy {\n cursor: move;\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_title {\n color: white;\n padding-left: 10px;\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 }\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`",
|
|
1512
|
-
"description": "This is defined as a string rather than a css template\nbecause it is applied to a CSSStyleSheet object rather than\nused as a FAST template"
|
|
1513
|
-
}
|
|
1514
|
-
],
|
|
1515
|
-
"exports": [
|
|
1516
|
-
{
|
|
1517
|
-
"kind": "js",
|
|
1518
|
-
"name": "globalDraggingStyles",
|
|
1519
|
-
"declaration": {
|
|
1520
|
-
"name": "globalDraggingStyles",
|
|
1521
|
-
"module": "src/styles/dragging.styles.ts"
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
]
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
"kind": "javascript-module",
|
|
1528
|
-
"path": "src/styles/index.ts",
|
|
1529
|
-
"declarations": [],
|
|
1530
|
-
"exports": [
|
|
1531
|
-
{
|
|
1532
|
-
"kind": "js",
|
|
1533
|
-
"name": "*",
|
|
1534
|
-
"declaration": {
|
|
1535
|
-
"name": "*",
|
|
1536
|
-
"package": "./constants"
|
|
1537
|
-
}
|
|
1538
|
-
},
|
|
1539
|
-
{
|
|
1540
|
-
"kind": "js",
|
|
1541
|
-
"name": "*",
|
|
1542
|
-
"declaration": {
|
|
1543
|
-
"name": "*",
|
|
1544
|
-
"package": "./dragging.styles"
|
|
1545
|
-
}
|
|
1546
|
-
},
|
|
1547
|
-
{
|
|
1548
|
-
"kind": "js",
|
|
1549
|
-
"name": "*",
|
|
1550
|
-
"declaration": {
|
|
1551
|
-
"name": "*",
|
|
1552
|
-
"package": "./layout.styles"
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
]
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
"kind": "javascript-module",
|
|
1559
|
-
"path": "src/styles/layout.styles.ts",
|
|
1560
|
-
"declarations": [
|
|
1561
|
-
{
|
|
1562
|
-
"kind": "variable",
|
|
1563
|
-
"name": "layoutStyles",
|
|
1564
|
-
"default": "css`\n ${containerStyles}\n ${loadingSpinnerStyles}\n\n :host {\n --foundation-tab-height: calc(\n (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px\n );\n }\n\n .lm_goldenlayout {\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n font-family: var(--body-font);\n box-sizing: border-box;\n }\n\n .lm_goldenlayout * {\n box-sizing: border-box;\n }\n\n .lm_stack.lm_item {\n background-color: var(--rapid-layout-item-background, var(--neutral-layer-3));\n border-style: solid;\n border-width: var(--rapid-layout-item-border-width, 0);\n border-color: var(--rapid-layout-item-border-color, var(--neutral-stroke-rest));\n border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));\n box-sizing: border-box;\n }\n\n .lm_maximised .lm_header {\n border-bottom: var(--card-border, 0);\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) calc(var(--control-corner-radius) * 1.5px)\n var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px))\n var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));\n border: var(--rapid-layout-item-inner-border, 1px solid 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_header .lm_tab.lm_active {\n background: var(--tab-active-background-color, var(--neutral-layer-card-container));\n color: var(--accent-foreground-rest);\n border-style: solid;\n border-width: var(--tab-active-border-width, 1px 1px 0 1px);\n border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));\n }\n\n .lm_header .lm_tab {\n align-items: center;\n background: var(--tab-rest-background-color, var(--neutral-layer-4));\n border-style: solid;\n border-width: var(--tab-rest-border-width, 1px);\n border-color: var(--tab-rest-border-color, transparent);\n border-radius: calc(var(--control-corner-radius) * 1.5px)\n 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: var(--type-ramp-minus-1-font-size);\n font-weight: 400;\n height: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});\n margin-right: 2px;\n padding: 0 calc((12 + var(--design-unit) * 2 * var(--density)) * 1px);\n float: left;\n cursor: pointer;\n position: relative;\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}) - 8px);\n height: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) - 8px);\n background-repeat: no-repeat;\n background-position: center;\n background-size: calc(var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT}) * 0.45);\n background-color: var(\n --icon-button-background,\n color-mix(in srgb, var(--neutral-fill-strong-rest), transparent 90%)\n );\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 background-position: center;\n margin-left: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px);\n position: relative;\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: unset;\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: 0;\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 border-bottom: var(--card-border, 0);\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 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_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 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 {\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`",
|
|
1565
|
-
"description": "`ElementStyles` which defines the css for FoundationLayout.",
|
|
1566
|
-
"privacy": "public"
|
|
1567
|
-
}
|
|
1568
|
-
],
|
|
1569
|
-
"exports": [
|
|
1570
|
-
{
|
|
1571
|
-
"kind": "js",
|
|
1572
|
-
"name": "layoutStyles",
|
|
1573
|
-
"declaration": {
|
|
1574
|
-
"name": "layoutStyles",
|
|
1575
|
-
"module": "src/styles/layout.styles.ts"
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
]
|
|
1579
|
-
},
|
|
1580
1580
|
{
|
|
1581
1581
|
"kind": "javascript-module",
|
|
1582
1582
|
"path": "src/utils/constants.ts",
|
|
@@ -1624,7 +1624,16 @@
|
|
|
1624
1624
|
"type": {
|
|
1625
1625
|
"text": "string"
|
|
1626
1626
|
},
|
|
1627
|
-
"default": "'
|
|
1627
|
+
"default": "'32px'"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"kind": "variable",
|
|
1631
|
+
"name": "DEFAULT_TAB_HEIGHT_MULTIPLIER",
|
|
1632
|
+
"type": {
|
|
1633
|
+
"text": "number"
|
|
1634
|
+
},
|
|
1635
|
+
"default": "9",
|
|
1636
|
+
"description": "Default height multiplier for layout tab strips: 9 → 32px, a step above the 28px control height.\nKept separate from `--base-height-multiplier` so panel contents aren't resized with the strip."
|
|
1628
1637
|
},
|
|
1629
1638
|
{
|
|
1630
1639
|
"kind": "function",
|
|
@@ -1684,6 +1693,14 @@
|
|
|
1684
1693
|
"module": "src/utils/constants.ts"
|
|
1685
1694
|
}
|
|
1686
1695
|
},
|
|
1696
|
+
{
|
|
1697
|
+
"kind": "js",
|
|
1698
|
+
"name": "DEFAULT_TAB_HEIGHT_MULTIPLIER",
|
|
1699
|
+
"declaration": {
|
|
1700
|
+
"name": "DEFAULT_TAB_HEIGHT_MULTIPLIER",
|
|
1701
|
+
"module": "src/utils/constants.ts"
|
|
1702
|
+
}
|
|
1703
|
+
},
|
|
1687
1704
|
{
|
|
1688
1705
|
"kind": "js",
|
|
1689
1706
|
"name": "getLayoutHeaderHeight",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-main.d.ts","sourceRoot":"","sources":["../../../src/main/layout-main.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAGZ,cAAc,EAGf,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAGL,gBAAgB,EAChB,aAAa,EACb,YAAY,EAOZ,eAAe,EAGf,kBAAkB,EAGlB,SAAS,EAET,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAE,gCA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I,IAAI;IAuB3B;;;;;;;OAOG;IACH,gBAAgB,CAAC,CAAC,SAAS,cAAc,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC;IAetD;;;;;;;;OAQG;IACH,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM;IA4J5D;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAehC;;;;;;;;SAQK;IACL,OAAO,CAAC,kBAAkB;IAoB1B;;;;;;;;OAQG;IACH,OAAO,CAAC,kCAAkC;IA4B1C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IASzB;;;;;;;;OAQG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAe1B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAWpC;;;OAGG;IACH,OAAO,CAAC,uBAAuB;CAyChC;AAKD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,uEAe1B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;2BAI3B,CAAC"}
|
|
@@ -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;AAGhE,eAAO,MAAM,cAAc,QAAO,IAAI,CAAC,YAAY,EAAE,MAAM,
|
|
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,CAazD,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,iDA4fxB,CAAC"}
|
|
@@ -39,7 +39,12 @@ export declare const POPOUT_GEOMETRY_BROADCAST_INTERVAL = 1000;
|
|
|
39
39
|
* @beta
|
|
40
40
|
*/
|
|
41
41
|
export declare const LAYOUT_POPOUT_CONTAINER_CLASS = "f-layout-popout";
|
|
42
|
-
export declare const DEFAULT_TAB_HEIGHT = "
|
|
42
|
+
export declare const DEFAULT_TAB_HEIGHT = "32px";
|
|
43
|
+
/**
|
|
44
|
+
* Default height multiplier for layout tab strips: 9 → 32px, a step above the 28px control height.
|
|
45
|
+
* Kept separate from `--base-height-multiplier` so panel contents aren't resized with the strip.
|
|
46
|
+
*/
|
|
47
|
+
export declare const DEFAULT_TAB_HEIGHT_MULTIPLIER = 9;
|
|
43
48
|
export declare const getLayoutHeaderHeight: () => string;
|
|
44
49
|
export declare const DEFAULT_BORDER_WIDTH = 0;
|
|
45
50
|
export declare const getItemBorderWidth: () => number;
|
|
@@ -1 +1 @@
|
|
|
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;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,oBAAoB,CAAC;AAE/D,eAAO,MAAM,kBAAkB,SAAS,CAAC;
|
|
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;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,oBAAoB,CAAC;AAE/D,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAY/C,eAAO,MAAM,qBAAqB,cAMjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAMtC,eAAO,MAAM,kBAAkB,cAK9B,CAAC"}
|
|
@@ -996,7 +996,8 @@ export class FoundationLayout extends FoundationElement {
|
|
|
996
996
|
(_b = this.customButtons) === null || _b === void 0 ? void 0 : _b.forEach((customButton) => {
|
|
997
997
|
const button = document.createElement('div');
|
|
998
998
|
button.classList.add('lm_custom_button');
|
|
999
|
-
|
|
999
|
+
// Drawn as a mask in the icon colour, like the built-in controls (layout.styles.ts).
|
|
1000
|
+
button.style.setProperty('--layout-control-icon', `url('${customButton.svg}')`);
|
|
1000
1001
|
button.addEventListener('click', () => customButton.onClick(button, containedElement()));
|
|
1001
1002
|
controlElem.prepend(button);
|
|
1002
1003
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getLayoutHeaderHeight } from '../utils';
|
|
2
2
|
export const glVisualConfig = () => ({
|
|
3
3
|
dimensions: {
|
|
4
4
|
headerHeight: parseInt(getLayoutHeaderHeight().replace('px', '')),
|
|
5
5
|
borderWidth: 12,
|
|
6
|
-
|
|
6
|
+
// Item borders are drawn without taking up space (outline / overlay, see layout.styles.ts), so
|
|
7
|
+
// golden-layout must not subtract any: a non-zero value would shrink content off the panel.
|
|
8
|
+
itemBorder: 0,
|
|
7
9
|
},
|
|
8
10
|
header: {
|
|
9
11
|
maximise: 'maximise',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// NOTE: This file is excluded from stylelint (.stylelintignore) and oxfmt (.oxfmtrc.json ignorePatterns)
|
|
2
2
|
// because the golden-layout css class names and hand-tuned formatting go against the platform's rules.
|
|
3
|
+
import { GRADIENT_END, GRADIENT_START, neutralButtonFace } from '@genesislcap/foundation-ui';
|
|
3
4
|
import { css } from '@microsoft/fast-element';
|
|
4
5
|
import { DEFAULT_TAB_HEIGHT } from '../utils';
|
|
5
6
|
import { LAYOUT_ICONS } from './constants';
|
|
@@ -25,7 +26,7 @@ const loadingSpinnerStyles = css `
|
|
|
25
26
|
width: var(--spinner-size);
|
|
26
27
|
height: var(--spinner-size);
|
|
27
28
|
border: 4px solid white;
|
|
28
|
-
border-top: 4px solid var(--accent-fill-rest);
|
|
29
|
+
border-top: 4px solid var(--accent-stroke, var(--accent-fill-rest));
|
|
29
30
|
border-radius: 50%;
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -96,8 +97,9 @@ export const layoutStyles = css `
|
|
|
96
97
|
${loadingSpinnerStyles}
|
|
97
98
|
|
|
98
99
|
:host {
|
|
100
|
+
/* Tab strip uses its own multiplier (9 → 32px) so panel contents keep the 28px control height. */
|
|
99
101
|
--foundation-tab-height: calc(
|
|
100
|
-
(((var(--
|
|
102
|
+
(((var(--layout-tab-height-multiplier, 9) + var(--density)) * var(--design-unit)) - 4) * 1px
|
|
101
103
|
);
|
|
102
104
|
}
|
|
103
105
|
|
|
@@ -111,13 +113,44 @@ export const layoutStyles = css `
|
|
|
111
113
|
box-sizing: border-box;
|
|
112
114
|
}
|
|
113
115
|
|
|
116
|
+
/*
|
|
117
|
+
* Defaults match flexlayout (rapid-design-system flexlayout-react.overrides.css) and rapid-tabs:
|
|
118
|
+
* a bordered layer-2 panel whose strip holds flat tabs split by 1px separators, over a
|
|
119
|
+
* card-container content area with a top edge only. Only fallbacks changed; the theming tokens
|
|
120
|
+
* (--card-*, --rapid-layout-item-*, --tab-rest-*, --tab-active-*) still win when set.
|
|
121
|
+
*/
|
|
122
|
+
/*
|
|
123
|
+
* Borders on golden-layout boxes must not take up space. golden-layout sizes each box's content
|
|
124
|
+
* in JS from the box's outer size (offsetWidth/offsetHeight minus a single \`itemBorder\`), so a real
|
|
125
|
+
* border pushes the content past the box and it clips on the right and bottom. The panel border is
|
|
126
|
+
* therefore drawn by an overlay above the panel's content (.lm_stack::after), as is the content's
|
|
127
|
+
* edge (.lm_content::after), with \`itemBorder\` pinned to 0 (glVisualConfig). The tokens are
|
|
128
|
+
* unchanged.
|
|
129
|
+
*/
|
|
114
130
|
.lm_stack.lm_item {
|
|
115
|
-
background-color: var(--rapid-layout-item-background, var(--neutral-layer-
|
|
116
|
-
border
|
|
117
|
-
border-
|
|
118
|
-
border-color: var(--rapid-layout-item-border-color, var(--neutral-stroke-rest));
|
|
119
|
-
border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));
|
|
131
|
+
background-color: var(--rapid-layout-item-background, var(--neutral-layer-2));
|
|
132
|
+
border: 0;
|
|
133
|
+
border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 3px));
|
|
120
134
|
box-sizing: border-box;
|
|
135
|
+
/* Rapid's panel elevation (rapid-design-system tokens/elevation.ts); none outside Rapid. */
|
|
136
|
+
box-shadow: var(--nested-shadow, var(--panel-shadow-override, var(--card-box-shadow, var(--panel-shadow, none))));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Positions the overlay; a maximised stack keeps golden-layout's absolute positioning. */
|
|
140
|
+
.lm_stack.lm_item:not(.lm_maximised) {
|
|
141
|
+
position: relative;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.lm_stack.lm_item::after {
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
inset: 0;
|
|
148
|
+
z-index: 2;
|
|
149
|
+
pointer-events: none;
|
|
150
|
+
border-radius: inherit;
|
|
151
|
+
border-style: solid;
|
|
152
|
+
border-width: var(--rapid-layout-item-border-width, 1px);
|
|
153
|
+
border-color: var(--rapid-layout-item-border-color, var(--panel-border, var(--neutral-stroke-rest)));
|
|
121
154
|
}
|
|
122
155
|
|
|
123
156
|
.lm_maximised .lm_header {
|
|
@@ -130,85 +163,141 @@ export const layoutStyles = css `
|
|
|
130
163
|
}
|
|
131
164
|
|
|
132
165
|
.lm_content {
|
|
166
|
+
/* The panel frames its content, so nested self-framing components (accordions) drop their own
|
|
167
|
+
border. */
|
|
168
|
+
--nested-border: 0;
|
|
169
|
+
/* ...and nested containers (cards, tabs) drop their shadow. */
|
|
170
|
+
--nested-shadow: none;
|
|
171
|
+
|
|
133
172
|
background-color: var(--neutral-layer-card-container);
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
var(--card-corner-radius, calc(var(--control-corner-radius) *
|
|
137
|
-
border: var(--rapid-layout-item-inner-border, 1px solid var(--neutral-stroke-rest));
|
|
173
|
+
/* The content fills the panel's whole box (its border is an overlay), so it shares its radius. */
|
|
174
|
+
border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 3px))
|
|
175
|
+
var(--card-corner-radius, calc(var(--control-corner-radius) * 3px));
|
|
138
176
|
box-sizing: border-box;
|
|
139
177
|
color: var(--neutral-foreground-rest);
|
|
140
178
|
}
|
|
141
179
|
|
|
180
|
+
/* A theme's --rapid-layout-item-inner-border, drawn over the content rather than as a border
|
|
181
|
+
(see .lm_stack.lm_item). None by default: the header draws the top edge (see .lm_header). */
|
|
182
|
+
.lm_content::after {
|
|
183
|
+
content: '';
|
|
184
|
+
position: absolute;
|
|
185
|
+
inset: 0;
|
|
186
|
+
z-index: 1;
|
|
187
|
+
pointer-events: none;
|
|
188
|
+
border-radius: inherit;
|
|
189
|
+
border: var(--rapid-layout-item-inner-border, 0);
|
|
190
|
+
}
|
|
191
|
+
|
|
142
192
|
.lm_header .lm_tabs {
|
|
143
|
-
padding: 0
|
|
193
|
+
padding: 0 0 0 12px;
|
|
144
194
|
}
|
|
145
195
|
|
|
146
196
|
.lm_header .lm_tab.lm_active {
|
|
147
197
|
background: var(--tab-active-background-color, var(--neutral-layer-card-container));
|
|
148
198
|
color: var(--accent-foreground-rest);
|
|
149
199
|
border-style: solid;
|
|
150
|
-
border-width: var(--tab-active-border-width,
|
|
151
|
-
border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));
|
|
200
|
+
border-width: var(--tab-active-border-width, 0 0 0 var(--tab-rest-border-width, 1px));
|
|
201
|
+
border-color: var(--tab-active-border-color, var(--tab-rest-border-color, var(--neutral-stroke-rest)));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* The content's top edge is drawn along the bottom of the header (an inset shadow under the
|
|
205
|
+
tabs), not over the content, so the active tab's own background covers it and the tab flows
|
|
206
|
+
straight into its panel: paint order alone, no z-index. Inactive tabs redraw the edge over
|
|
207
|
+
their own (hover) background. */
|
|
208
|
+
.lm_header,
|
|
209
|
+
.lm_header .lm_tab:not(.lm_active) {
|
|
210
|
+
box-shadow: inset 0 -1px 0 var(--neutral-stroke-rest);
|
|
152
211
|
}
|
|
153
212
|
|
|
213
|
+
/* A separator before each tab and after the last, as flexlayout's spacers draw. */
|
|
154
214
|
.lm_header .lm_tab {
|
|
155
215
|
align-items: center;
|
|
156
|
-
background: var(--tab-rest-background-color,
|
|
216
|
+
background: var(--tab-rest-background-color, transparent);
|
|
157
217
|
border-style: solid;
|
|
158
|
-
border-width: var(--tab-rest-border-width, 1px);
|
|
159
|
-
border-color: var(--tab-rest-border-color,
|
|
160
|
-
border-radius:
|
|
161
|
-
calc(var(--control-corner-radius) * 1.5px) 0 0;
|
|
218
|
+
border-width: 0 0 0 var(--tab-rest-border-width, 1px);
|
|
219
|
+
border-color: var(--tab-rest-border-color, var(--neutral-stroke-rest));
|
|
220
|
+
border-radius: 0;
|
|
162
221
|
color: var(--accent-foreground-rest);
|
|
163
222
|
display: flex;
|
|
164
223
|
font-family: inherit;
|
|
165
224
|
font-size: var(--type-ramp-minus-1-font-size);
|
|
166
225
|
font-weight: 400;
|
|
167
226
|
height: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});
|
|
168
|
-
margin-right:
|
|
227
|
+
margin-right: 0;
|
|
169
228
|
padding: 0 calc((12 + var(--design-unit) * 2 * var(--density)) * 1px);
|
|
170
229
|
float: left;
|
|
171
230
|
cursor: pointer;
|
|
172
231
|
position: relative;
|
|
173
232
|
}
|
|
174
233
|
|
|
234
|
+
.lm_header .lm_tabs .lm_tab:last-child {
|
|
235
|
+
border-right: var(--tab-rest-border-width, 1px) solid var(--tab-rest-border-color, var(--neutral-stroke-rest));
|
|
236
|
+
}
|
|
237
|
+
|
|
175
238
|
.lm_header .lm_tab:not(.lm_active):hover {
|
|
176
|
-
background-color: var(--neutral-
|
|
177
|
-
color: var(--
|
|
239
|
+
background-color: var(--neutral-fill-stealth-active);
|
|
240
|
+
color: var(--neutral-foreground-rest);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.lm_header .lm_tab:not(.lm_active):hover .lm_title {
|
|
244
|
+
color: var(--neutral-foreground-rest);
|
|
178
245
|
}
|
|
179
246
|
|
|
247
|
+
/*
|
|
248
|
+
* Window controls (tab dropdown, maximise / restore, close): round neutral icon buttons, the
|
|
249
|
+
* same face as a neutral rapid-button (foundation-ui button-face.ts). The face paints the
|
|
250
|
+
* background, so the icon is a mask on a ::before layer, coloured like a button's icon. Each
|
|
251
|
+
* control names its icon in --layout-control-icon (custom buttons too, see setupCustomButtons).
|
|
252
|
+
*/
|
|
180
253
|
.lm_header .lm_controls {
|
|
181
|
-
top:
|
|
254
|
+
top: 0;
|
|
255
|
+
right: 6px;
|
|
256
|
+
height: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});
|
|
182
257
|
display: flex;
|
|
258
|
+
align-items: center;
|
|
259
|
+
gap: 4px;
|
|
183
260
|
}
|
|
184
261
|
.lm_header .lm_controls > * {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
color-mix(in srgb, var(--neutral-fill-strong-rest), transparent 90%)
|
|
193
|
-
);
|
|
194
|
-
border-radius: calc(var(--control-corner-radius) * 1.5px);
|
|
195
|
-
margin-right: 4px;
|
|
196
|
-
top: 3px;
|
|
262
|
+
position: relative;
|
|
263
|
+
top: 0;
|
|
264
|
+
width: 24px;
|
|
265
|
+
height: 24px;
|
|
266
|
+
margin: 0;
|
|
267
|
+
box-sizing: border-box;
|
|
268
|
+
border-radius: 9999px;
|
|
197
269
|
opacity: 1;
|
|
198
|
-
}
|
|
199
|
-
.lm_header .lm_controls > *:hover {
|
|
200
|
-
background-color: color-mix(in srgb, var(--neutral-fill-strong-hover), transparent 75%);
|
|
201
270
|
cursor: pointer;
|
|
271
|
+
transition:
|
|
272
|
+
${GRADIENT_START} 200ms ease-out,
|
|
273
|
+
${GRADIENT_END} 200ms ease-out,
|
|
274
|
+
box-shadow 200ms ease-out;
|
|
275
|
+
}
|
|
276
|
+
${neutralButtonFace('.lm_header .lm_controls > *', '.lm_header .lm_controls > *:hover', '.lm_header .lm_controls > *:active')}
|
|
277
|
+
.lm_header .lm_controls > *::before {
|
|
278
|
+
content: '';
|
|
279
|
+
position: absolute;
|
|
280
|
+
inset: 0;
|
|
281
|
+
background-color: var(--icon-color, var(--neutral-foreground-hint));
|
|
282
|
+
mask-image: var(--layout-control-icon, none);
|
|
283
|
+
mask-repeat: no-repeat;
|
|
284
|
+
mask-position: center;
|
|
285
|
+
/* The golden-layout glyphs fill their viewBox edge to edge (flexlayout's have built-in
|
|
286
|
+
padding), so they're drawn a little smaller to match flexlayout's icons. */
|
|
287
|
+
mask-size: calc(var(--design-unit) * 2.5px);
|
|
288
|
+
}
|
|
289
|
+
.lm_header .lm_controls > *:hover::before {
|
|
290
|
+
background-color: var(--neutral-foreground-rest);
|
|
202
291
|
}
|
|
203
292
|
|
|
204
293
|
.lm_controls .lm_maximise {
|
|
205
|
-
|
|
294
|
+
--layout-control-icon: url('${LAYOUT_ICONS.maximiseSVG}');
|
|
206
295
|
}
|
|
207
296
|
.lm_maximised .lm_controls .lm_maximise {
|
|
208
|
-
|
|
297
|
+
--layout-control-icon: url('${LAYOUT_ICONS.minimiseSVG}');
|
|
209
298
|
}
|
|
210
299
|
.lm_controls .lm_close {
|
|
211
|
-
|
|
300
|
+
--layout-control-icon: url('${LAYOUT_ICONS.closeSVG}');
|
|
212
301
|
}
|
|
213
302
|
.lm_header .lm_tab .lm_close_tab {
|
|
214
303
|
background-image: url('${LAYOUT_ICONS.closeSVG}');
|
|
@@ -223,11 +312,8 @@ export const layoutStyles = css `
|
|
|
223
312
|
color: var(--neutral-foreground-hint);
|
|
224
313
|
}
|
|
225
314
|
|
|
226
|
-
.lm_header .lm_controls .lm_tabdropdown::before {
|
|
227
|
-
content: none;
|
|
228
|
-
}
|
|
229
315
|
.lm_header .lm_controls .lm_tabdropdown {
|
|
230
|
-
|
|
316
|
+
--layout-control-icon: url('${LAYOUT_ICONS.tabDropdownSVG}');
|
|
231
317
|
}
|
|
232
318
|
.lm_header .lm_tabdropdown_list {
|
|
233
319
|
top: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});
|
|
@@ -245,6 +331,7 @@ export const layoutStyles = css `
|
|
|
245
331
|
background-color: transparent;
|
|
246
332
|
color: var(--neutral-foreground-rest);
|
|
247
333
|
height: var(--foundation-tab-height, ${DEFAULT_TAB_HEIGHT});
|
|
334
|
+
border-width: 0;
|
|
248
335
|
border-radius: 0;
|
|
249
336
|
overflow: visible;
|
|
250
337
|
text-overflow: unset;
|
|
@@ -285,7 +372,7 @@ export const layoutStyles = css `
|
|
|
285
372
|
}
|
|
286
373
|
.lm_splitter:hover,
|
|
287
374
|
.lm_splitter.lm_dragging {
|
|
288
|
-
background: var(--accent-fill-rest);
|
|
375
|
+
background: var(--accent-stroke, var(--accent-fill-rest));
|
|
289
376
|
border-radius: calc(var(--control-corner-radius) * 4px);
|
|
290
377
|
}
|
|
291
378
|
.lm_splitter.lm_vertical .lm_drag_handle {
|
|
@@ -313,14 +400,6 @@ export const layoutStyles = css `
|
|
|
313
400
|
}
|
|
314
401
|
.lm_header .lm_controls {
|
|
315
402
|
position: absolute;
|
|
316
|
-
right: 3px;
|
|
317
|
-
}
|
|
318
|
-
.lm_header .lm_controls > li {
|
|
319
|
-
cursor: pointer;
|
|
320
|
-
float: left;
|
|
321
|
-
width: 18px;
|
|
322
|
-
height: 18px;
|
|
323
|
-
text-align: center;
|
|
324
403
|
}
|
|
325
404
|
.lm_header ul {
|
|
326
405
|
margin: 0;
|
|
@@ -467,6 +546,9 @@ export const layoutStyles = css `
|
|
|
467
546
|
.lm_dragProxy .lm_header {
|
|
468
547
|
background: transparent;
|
|
469
548
|
}
|
|
549
|
+
.lm_dragProxy .lm_content::after {
|
|
550
|
+
content: none;
|
|
551
|
+
}
|
|
470
552
|
.lm_dragProxy .lm_content {
|
|
471
553
|
border-top: none;
|
|
472
554
|
overflow: hidden;
|
|
@@ -41,19 +41,33 @@ export const POPOUT_GEOMETRY_BROADCAST_INTERVAL = 1000;
|
|
|
41
41
|
* @beta
|
|
42
42
|
*/
|
|
43
43
|
export const LAYOUT_POPOUT_CONTAINER_CLASS = 'f-layout-popout';
|
|
44
|
-
export const DEFAULT_TAB_HEIGHT = '
|
|
45
|
-
|
|
44
|
+
export const DEFAULT_TAB_HEIGHT = '32px';
|
|
45
|
+
/**
|
|
46
|
+
* Default height multiplier for layout tab strips: 9 → 32px, a step above the 28px control height.
|
|
47
|
+
* Kept separate from `--base-height-multiplier` so panel contents aren't resized with the strip.
|
|
48
|
+
*/
|
|
49
|
+
export const DEFAULT_TAB_HEIGHT_MULTIPLIER = 9;
|
|
50
|
+
// Reads the --layout-tab-height-multiplier custom token (the CSS var the tab strip uses), falling
|
|
51
|
+
// back to DEFAULT_TAB_HEIGHT_MULTIPLIER.
|
|
52
|
+
const getTabHeightMultiplier = () => {
|
|
53
|
+
const token = selectCustomToken('layout', 'tab', 'height', 'multiplier');
|
|
54
|
+
const parsed = (token === null || token === void 0 ? void 0 : token.$value) === undefined ? NaN : Number(token.$value);
|
|
55
|
+
return Number.isNaN(parsed) ? DEFAULT_TAB_HEIGHT_MULTIPLIER : parsed;
|
|
56
|
+
};
|
|
57
|
+
// Mirrors the tab strip's CSS:
|
|
58
|
+
// calc((((var(--layout-tab-height-multiplier, 9) + var(--density)) * var(--design-unit)) - 4) * 1px)
|
|
46
59
|
export const getLayoutHeaderHeight = () => {
|
|
47
60
|
const tokens = designTokensMap();
|
|
48
61
|
if (!tokens.value)
|
|
49
62
|
return DEFAULT_TAB_HEIGHT;
|
|
50
63
|
const { style, space } = tokens.value.design_tokens;
|
|
51
64
|
// oxlint-disable-next-line no-magic-numbers -- matches design token calc offset
|
|
52
|
-
return `${(
|
|
65
|
+
return `${(getTabHeightMultiplier() + style.density.$value) * space.designUnit.$value - 4}px`;
|
|
53
66
|
};
|
|
54
67
|
export const DEFAULT_BORDER_WIDTH = 0;
|
|
55
68
|
// Reads the --rapid-layout-item-border-width token (a `px` dimension, e.g. "2px") and
|
|
56
|
-
// returns it as a unitless pixel count
|
|
69
|
+
// returns it as a unitless pixel count. No longer fed to golden-layout's `itemBorder`: item borders
|
|
70
|
+
// are drawn without taking up space (see layout.styles.ts), so that stays 0.
|
|
57
71
|
// Falls back to DEFAULT_BORDER_WIDTH when the token is unset or not a parseable length.
|
|
58
72
|
export const getItemBorderWidth = () => {
|
|
59
73
|
const token = selectCustomToken('rapid', 'layout', 'item', 'border', 'width');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-layout",
|
|
3
3
|
"description": "Genesis Foundation UI App Layout",
|
|
4
|
-
"version": "15.111.
|
|
4
|
+
"version": "15.111.4-FUI-2675.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-layout.d.ts",
|
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@genesislcap/foundation-testing": "15.111.
|
|
42
|
-
"@genesislcap/genx": "15.111.
|
|
43
|
-
"@genesislcap/ts-builder": "15.111.
|
|
44
|
-
"@genesislcap/uvu-playwright-builder": "15.111.
|
|
45
|
-
"@genesislcap/vite-builder": "15.111.
|
|
46
|
-
"@genesislcap/webpack-builder": "15.111.
|
|
41
|
+
"@genesislcap/foundation-testing": "15.111.4-FUI-2675.1",
|
|
42
|
+
"@genesislcap/genx": "15.111.4-FUI-2675.1",
|
|
43
|
+
"@genesislcap/ts-builder": "15.111.4-FUI-2675.1",
|
|
44
|
+
"@genesislcap/uvu-playwright-builder": "15.111.4-FUI-2675.1",
|
|
45
|
+
"@genesislcap/vite-builder": "15.111.4-FUI-2675.1",
|
|
46
|
+
"@genesislcap/webpack-builder": "15.111.4-FUI-2675.1"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@genesis-community/golden-layout": "^2.13.0",
|
|
50
|
-
"@genesislcap/foundation-broadcast-channel": "15.111.
|
|
51
|
-
"@genesislcap/foundation-comms": "15.111.
|
|
52
|
-
"@genesislcap/foundation-events": "15.111.
|
|
53
|
-
"@genesislcap/foundation-logger": "15.111.
|
|
54
|
-
"@genesislcap/foundation-ui": "15.111.
|
|
55
|
-
"@genesislcap/foundation-utils": "15.111.
|
|
50
|
+
"@genesislcap/foundation-broadcast-channel": "15.111.4-FUI-2675.1",
|
|
51
|
+
"@genesislcap/foundation-comms": "15.111.4-FUI-2675.1",
|
|
52
|
+
"@genesislcap/foundation-events": "15.111.4-FUI-2675.1",
|
|
53
|
+
"@genesislcap/foundation-logger": "15.111.4-FUI-2675.1",
|
|
54
|
+
"@genesislcap/foundation-ui": "15.111.4-FUI-2675.1",
|
|
55
|
+
"@genesislcap/foundation-utils": "15.111.4-FUI-2675.1",
|
|
56
56
|
"@microsoft/fast-components": "2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "1.14.0",
|
|
58
58
|
"@microsoft/fast-foundation": "2.50.0"
|