@genesislcap/foundation-layout 14.107.1-alpha-2ab4599.0 → 14.108.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/custom-elements.json +184 -137
- package/dist/dts/index.d.ts +1 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/layout-main.d.ts +25 -0
- package/dist/dts/main/layout-main.d.ts.map +1 -1
- package/dist/dts/styles/constants.d.ts +1 -0
- package/dist/dts/styles/constants.d.ts.map +1 -1
- package/dist/dts/utils/constants.d.ts +12 -0
- package/dist/dts/utils/constants.d.ts.map +1 -1
- package/dist/dts/utils/types.d.ts +1 -0
- package/dist/dts/utils/types.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/main/layout-main.js +103 -7
- package/dist/esm/styles/constants.js +2 -0
- package/dist/esm/utils/constants.js +12 -0
- package/dist/foundation-layout.api.json +89 -1
- package/dist/foundation-layout.d.ts +34 -0
- package/docs/api/foundation-layout.foundationlayout.md +2 -0
- package/docs/api/foundation-layout.foundationlayout.popoutconfig.md +16 -0
- package/docs/api/foundation-layout.foundationlayout.tryactivatepopoutmode.md +26 -0
- package/docs/api/foundation-layout.layout_icons.md +1 -0
- package/docs/api/foundation-layout.layout_popout_container_class.md +16 -0
- package/docs/api/foundation-layout.md +1 -0
- package/docs/api-report.md +8 -0
- package/package.json +7 -7
@@ -132,6 +132,14 @@
|
|
132
132
|
"name": "SerialisedLayout",
|
133
133
|
"module": "./utils"
|
134
134
|
}
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"kind": "js",
|
138
|
+
"name": "LAYOUT_POPOUT_CONTAINER_CLASS",
|
139
|
+
"declaration": {
|
140
|
+
"name": "LAYOUT_POPOUT_CONTAINER_CLASS",
|
141
|
+
"module": "./utils"
|
142
|
+
}
|
135
143
|
}
|
136
144
|
]
|
137
145
|
},
|
@@ -521,6 +529,7 @@
|
|
521
529
|
"type": {
|
522
530
|
"text": "CustomButton[]"
|
523
531
|
},
|
532
|
+
"default": "[]",
|
524
533
|
"description": "Set custom button definition on this property to add them to the layout header controls",
|
525
534
|
"privacy": "public"
|
526
535
|
},
|
@@ -552,6 +561,24 @@
|
|
552
561
|
"default": "undefined",
|
553
562
|
"description": "Used to calculate whether a layout item should run its lifecycle methods or not"
|
554
563
|
},
|
564
|
+
{
|
565
|
+
"kind": "field",
|
566
|
+
"name": "popoutConfig",
|
567
|
+
"type": {
|
568
|
+
"text": "string | undefined"
|
569
|
+
},
|
570
|
+
"default": "undefined",
|
571
|
+
"description": "Controls whether popout functionality is enabled on the layout. Defaults to disabled.\nSet this attribute to any string to enable popout functionality. If this string is of format `number;number` then this will be interpreted as the width and height of the popout window."
|
572
|
+
},
|
573
|
+
{
|
574
|
+
"kind": "field",
|
575
|
+
"name": "popupMode",
|
576
|
+
"type": {
|
577
|
+
"text": "boolean"
|
578
|
+
},
|
579
|
+
"privacy": "private",
|
580
|
+
"default": "false"
|
581
|
+
},
|
555
582
|
{
|
556
583
|
"kind": "method",
|
557
584
|
"name": "layoutRequiredRegistrations",
|
@@ -593,6 +620,16 @@
|
|
593
620
|
},
|
594
621
|
"privacy": "public"
|
595
622
|
},
|
623
|
+
{
|
624
|
+
"kind": "method",
|
625
|
+
"name": "tryActivatePopoutMode",
|
626
|
+
"return": {
|
627
|
+
"type": {
|
628
|
+
"text": "boolean"
|
629
|
+
}
|
630
|
+
},
|
631
|
+
"description": "If in a popout window from the dynamic layout, this function will run the flow to put the component in popout mode.\nThis function is automatically called if using the declarative HTML API, but if only using the JavaScript API then you will need to call this function manually."
|
632
|
+
},
|
596
633
|
{
|
597
634
|
"kind": "method",
|
598
635
|
"name": "tryLoadLayoutFromLocalStorage",
|
@@ -693,25 +730,6 @@
|
|
693
730
|
},
|
694
731
|
"description": "The `LifecycleMixin` can use the lifecycleUpdateToken to determine if it needs to gate\nlifecycle methods from running when other items have been added or deleted.\nThis key is updated every time one of these actions are performed, so you can check if the key has changed and know you potentially need to gate some of your lifecycle functionality.\nThis method should be called whenever we are about to perform an action which will cause a lifecycle update, should as adding or removing an item from the layout"
|
695
732
|
},
|
696
|
-
{
|
697
|
-
"kind": "method",
|
698
|
-
"name": "removeConfigCacheInformation",
|
699
|
-
"privacy": "private",
|
700
|
-
"return": {
|
701
|
-
"type": {
|
702
|
-
"text": "LayoutConfig"
|
703
|
-
}
|
704
|
-
},
|
705
|
-
"parameters": [
|
706
|
-
{
|
707
|
-
"name": "config",
|
708
|
-
"type": {
|
709
|
-
"text": "LayoutConfig"
|
710
|
-
}
|
711
|
-
}
|
712
|
-
],
|
713
|
-
"description": "Recursively remove the instance key from the config which will mean that when the config is loaded it will instantiate a new instance for every item, even if they're in the cache."
|
714
|
-
},
|
715
733
|
{
|
716
734
|
"kind": "field",
|
717
735
|
"name": "_presentation",
|
@@ -862,6 +880,18 @@
|
|
862
880
|
},
|
863
881
|
"description": "Attribute which if set will auto save and load the layout as the user changes it.\nOmit this attribute to disable this feature.\nSet attribute using `auto-save-key`.",
|
864
882
|
"fieldName": "autoSaveKey"
|
883
|
+
},
|
884
|
+
{
|
885
|
+
"name": "popout-config",
|
886
|
+
"type": {
|
887
|
+
"text": "string | undefined"
|
888
|
+
},
|
889
|
+
"default": "undefined",
|
890
|
+
"description": "Controls whether popout functionality is enabled on the layout. Defaults to disabled.\nSet this attribute to any string to enable popout functionality. If this string is of format `number;number` then this will be interpreted as the width and height of the popout window.",
|
891
|
+
"resolveInitializer": {
|
892
|
+
"module": "src/main/layout-main.ts"
|
893
|
+
},
|
894
|
+
"fieldName": "popoutConfig"
|
865
895
|
}
|
866
896
|
],
|
867
897
|
"superclass": {
|
@@ -1087,6 +1117,124 @@
|
|
1087
1117
|
}
|
1088
1118
|
]
|
1089
1119
|
},
|
1120
|
+
{
|
1121
|
+
"kind": "javascript-module",
|
1122
|
+
"path": "src/styles/constants.ts",
|
1123
|
+
"declarations": [
|
1124
|
+
{
|
1125
|
+
"kind": "variable",
|
1126
|
+
"name": "glVisualConfig",
|
1127
|
+
"type": {
|
1128
|
+
"text": "Omit<LayoutConfig, 'root'>"
|
1129
|
+
},
|
1130
|
+
"default": "{\n dimensions: {\n headerHeight: 38,\n borderWidth: 12,\n },\n header: {\n maximise: 'maximise',\n minimise: 'minimise',\n popout: false,\n },\n}"
|
1131
|
+
},
|
1132
|
+
{
|
1133
|
+
"kind": "variable",
|
1134
|
+
"name": "LAYOUT_ICONS",
|
1135
|
+
"type": {
|
1136
|
+
"text": "{\n renameSVG,\n maximiseSVG,\n minimiseSVG,\n closeSVG,\n tabDropdownSVG,\n popoutSVG,\n}"
|
1137
|
+
},
|
1138
|
+
"default": "{\n renameSVG,\n maximiseSVG,\n minimiseSVG,\n closeSVG,\n tabDropdownSVG,\n popoutSVG,\n}",
|
1139
|
+
"description": "A collection of SVG icons in base64 format.",
|
1140
|
+
"privacy": "public"
|
1141
|
+
}
|
1142
|
+
],
|
1143
|
+
"exports": [
|
1144
|
+
{
|
1145
|
+
"kind": "js",
|
1146
|
+
"name": "glVisualConfig",
|
1147
|
+
"declaration": {
|
1148
|
+
"name": "glVisualConfig",
|
1149
|
+
"module": "src/styles/constants.ts"
|
1150
|
+
}
|
1151
|
+
},
|
1152
|
+
{
|
1153
|
+
"kind": "js",
|
1154
|
+
"name": "LAYOUT_ICONS",
|
1155
|
+
"declaration": {
|
1156
|
+
"name": "LAYOUT_ICONS",
|
1157
|
+
"module": "src/styles/constants.ts"
|
1158
|
+
}
|
1159
|
+
}
|
1160
|
+
]
|
1161
|
+
},
|
1162
|
+
{
|
1163
|
+
"kind": "javascript-module",
|
1164
|
+
"path": "src/styles/dragging.styles.ts",
|
1165
|
+
"declarations": [
|
1166
|
+
{
|
1167
|
+
"kind": "variable",
|
1168
|
+
"name": "globalDraggingStyles",
|
1169
|
+
"default": "`\n .lm_dragProxy .lm_content {\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);\n }\n .lm_dropTargetIndicator {\n box-shadow: inset 0 0 30px #000000;\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 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 }\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`",
|
1170
|
+
"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"
|
1171
|
+
}
|
1172
|
+
],
|
1173
|
+
"exports": [
|
1174
|
+
{
|
1175
|
+
"kind": "js",
|
1176
|
+
"name": "globalDraggingStyles",
|
1177
|
+
"declaration": {
|
1178
|
+
"name": "globalDraggingStyles",
|
1179
|
+
"module": "src/styles/dragging.styles.ts"
|
1180
|
+
}
|
1181
|
+
}
|
1182
|
+
]
|
1183
|
+
},
|
1184
|
+
{
|
1185
|
+
"kind": "javascript-module",
|
1186
|
+
"path": "src/styles/index.ts",
|
1187
|
+
"declarations": [],
|
1188
|
+
"exports": [
|
1189
|
+
{
|
1190
|
+
"kind": "js",
|
1191
|
+
"name": "*",
|
1192
|
+
"declaration": {
|
1193
|
+
"name": "*",
|
1194
|
+
"package": "./constants"
|
1195
|
+
}
|
1196
|
+
},
|
1197
|
+
{
|
1198
|
+
"kind": "js",
|
1199
|
+
"name": "*",
|
1200
|
+
"declaration": {
|
1201
|
+
"name": "*",
|
1202
|
+
"package": "./dragging.styles"
|
1203
|
+
}
|
1204
|
+
},
|
1205
|
+
{
|
1206
|
+
"kind": "js",
|
1207
|
+
"name": "*",
|
1208
|
+
"declaration": {
|
1209
|
+
"name": "*",
|
1210
|
+
"package": "./layout.styles"
|
1211
|
+
}
|
1212
|
+
}
|
1213
|
+
]
|
1214
|
+
},
|
1215
|
+
{
|
1216
|
+
"kind": "javascript-module",
|
1217
|
+
"path": "src/styles/layout.styles.ts",
|
1218
|
+
"declarations": [
|
1219
|
+
{
|
1220
|
+
"kind": "variable",
|
1221
|
+
"name": "layoutStyles",
|
1222
|
+
"default": "css`\n ${containerStyles}\n ${loadingSpinnerStyles}\n\n .lm_goldenlayout {\n padding: 1px;\n background: ${neutralLayer1};\n border-radius: calc(${controlCornerRadius} * 1.5px);\n }\n\n .lm_stack.lm_item {\n background-color: ${neutralLayer4};\n border-radius: calc(${controlCornerRadius} * 1.5px);\n }\n .lm_maximised .lm_header {\n background-color: ${neutralLayer4};\n border-radius: calc(${controlCornerRadius} * 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: ${neutralLayer3};\n border-radius: calc(${controlCornerRadius} * 1.5px);\n border: 1px solid;\n border-color: #2e3339;\n box-sizing: border-box;\n }\n\n .lm-header {\n z-index: 1;\n }\n .lm_header .lm_tabs {\n padding: 0 16px;\n }\n\n .lm_stack > .lm_items {\n z-index: 2;\n box-shadow: 0px -1px 15px rgba(0, 0, 0, 0.35);\n }\n\n .lm_header .lm_tab.lm_active.lm_focused {\n background-color: ${neutralLayer3};\n }\n .lm_header .lm_tab.lm_active {\n background-color: ${neutralLayer3};\n border: 1px solid;\n border-color: #2e3339;\n border-bottom: 0;\n color: ${accentFillRest};\n }\n\n .lm_header .lm_tab {\n align-items: center;\n background-color: ${neutralLayer4};\n border: 1px solid;\n border-bottom-color: #2e3339;\n border-bottom: 0px solid;\n border-color: rgba(0, 0, 0, 0.35);\n border-radius: calc(${controlCornerRadius} * 1.5px) calc(${controlCornerRadius} * 1.5px) 0 0;\n box-shadow: 1px -1px 2px rgba(0, 0, 0, 0.35);\n color: rgba(255, 255, 255, 0.3);\n display: flex;\n font-family: inherit;\n font-size: 13px;\n font-weight: 700;\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: rgba(255, 255, 255, 0.1);\n color: #f1f1f1;\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: rgba(255, 255, 255, 0.03);\n border-radius: calc(${controlCornerRadius} * 1.5px);\n margin-right: 4px;\n top: 3px;\n opacity: 1;\n }\n .lm_header .lm_controls > *:hover {\n background-color: rgba(255, 255, 255, 0.1);\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: ${accentFillRest};\n opacity: 0.7;\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: ${neutralLayer3};\n border: 1px solid;\n border-color: #2e3339;\n border-radius: calc(${controlCornerRadius} * 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: #c9c9c9;\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: ${accentFillRest};\n border-radius: calc(${controlCornerRadius} * 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;\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;\n }\n .lm_header {\n overflow: visible;\n position: relative;\n z-index: 1;\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 }\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 {\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 }\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`",
|
1223
|
+
"description": "`ElementStyles` which defines the css for FoundationLayout.",
|
1224
|
+
"privacy": "public"
|
1225
|
+
}
|
1226
|
+
],
|
1227
|
+
"exports": [
|
1228
|
+
{
|
1229
|
+
"kind": "js",
|
1230
|
+
"name": "layoutStyles",
|
1231
|
+
"declaration": {
|
1232
|
+
"name": "layoutStyles",
|
1233
|
+
"module": "src/styles/layout.styles.ts"
|
1234
|
+
}
|
1235
|
+
}
|
1236
|
+
]
|
1237
|
+
},
|
1090
1238
|
{
|
1091
1239
|
"kind": "javascript-module",
|
1092
1240
|
"path": "src/utils/constants.ts",
|
@@ -1100,6 +1248,15 @@
|
|
1100
1248
|
"default": "500",
|
1101
1249
|
"description": "Default time in milliseconds for the layout to buffer calls to reloading\nthe layout while the declarative API is loading.\n\nDuring the first load of the layout, a loading spinner will be shown.",
|
1102
1250
|
"privacy": "public"
|
1251
|
+
},
|
1252
|
+
{
|
1253
|
+
"kind": "variable",
|
1254
|
+
"name": "LAYOUT_POPOUT_CONTAINER_CLASS",
|
1255
|
+
"type": {
|
1256
|
+
"text": "string"
|
1257
|
+
},
|
1258
|
+
"default": "'f-layout-popout'",
|
1259
|
+
"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."
|
1103
1260
|
}
|
1104
1261
|
],
|
1105
1262
|
"exports": [
|
@@ -1110,6 +1267,14 @@
|
|
1110
1267
|
"name": "DEFAULT_RELOAD_BUFFER",
|
1111
1268
|
"module": "src/utils/constants.ts"
|
1112
1269
|
}
|
1270
|
+
},
|
1271
|
+
{
|
1272
|
+
"kind": "js",
|
1273
|
+
"name": "LAYOUT_POPOUT_CONTAINER_CLASS",
|
1274
|
+
"declaration": {
|
1275
|
+
"name": "LAYOUT_POPOUT_CONTAINER_CLASS",
|
1276
|
+
"module": "src/utils/constants.ts"
|
1277
|
+
}
|
1113
1278
|
}
|
1114
1279
|
]
|
1115
1280
|
},
|
@@ -1299,124 +1464,6 @@
|
|
1299
1464
|
"path": "src/utils/types.ts",
|
1300
1465
|
"declarations": [],
|
1301
1466
|
"exports": []
|
1302
|
-
},
|
1303
|
-
{
|
1304
|
-
"kind": "javascript-module",
|
1305
|
-
"path": "src/styles/constants.ts",
|
1306
|
-
"declarations": [
|
1307
|
-
{
|
1308
|
-
"kind": "variable",
|
1309
|
-
"name": "glVisualConfig",
|
1310
|
-
"type": {
|
1311
|
-
"text": "Omit<LayoutConfig, 'root'>"
|
1312
|
-
},
|
1313
|
-
"default": "{\n dimensions: {\n headerHeight: 38,\n borderWidth: 12,\n },\n header: {\n maximise: 'maximise',\n minimise: 'minimise',\n popout: false,\n },\n}"
|
1314
|
-
},
|
1315
|
-
{
|
1316
|
-
"kind": "variable",
|
1317
|
-
"name": "LAYOUT_ICONS",
|
1318
|
-
"type": {
|
1319
|
-
"text": "{\n renameSVG,\n maximiseSVG,\n minimiseSVG,\n closeSVG,\n tabDropdownSVG,\n}"
|
1320
|
-
},
|
1321
|
-
"default": "{\n renameSVG,\n maximiseSVG,\n minimiseSVG,\n closeSVG,\n tabDropdownSVG,\n}",
|
1322
|
-
"description": "A collection of SVG icons in base64 format.",
|
1323
|
-
"privacy": "public"
|
1324
|
-
}
|
1325
|
-
],
|
1326
|
-
"exports": [
|
1327
|
-
{
|
1328
|
-
"kind": "js",
|
1329
|
-
"name": "glVisualConfig",
|
1330
|
-
"declaration": {
|
1331
|
-
"name": "glVisualConfig",
|
1332
|
-
"module": "src/styles/constants.ts"
|
1333
|
-
}
|
1334
|
-
},
|
1335
|
-
{
|
1336
|
-
"kind": "js",
|
1337
|
-
"name": "LAYOUT_ICONS",
|
1338
|
-
"declaration": {
|
1339
|
-
"name": "LAYOUT_ICONS",
|
1340
|
-
"module": "src/styles/constants.ts"
|
1341
|
-
}
|
1342
|
-
}
|
1343
|
-
]
|
1344
|
-
},
|
1345
|
-
{
|
1346
|
-
"kind": "javascript-module",
|
1347
|
-
"path": "src/styles/dragging.styles.ts",
|
1348
|
-
"declarations": [
|
1349
|
-
{
|
1350
|
-
"kind": "variable",
|
1351
|
-
"name": "globalDraggingStyles",
|
1352
|
-
"default": "`\n .lm_dragProxy .lm_content {\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);\n }\n .lm_dropTargetIndicator {\n box-shadow: inset 0 0 30px #000000;\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 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 }\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`",
|
1353
|
-
"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"
|
1354
|
-
}
|
1355
|
-
],
|
1356
|
-
"exports": [
|
1357
|
-
{
|
1358
|
-
"kind": "js",
|
1359
|
-
"name": "globalDraggingStyles",
|
1360
|
-
"declaration": {
|
1361
|
-
"name": "globalDraggingStyles",
|
1362
|
-
"module": "src/styles/dragging.styles.ts"
|
1363
|
-
}
|
1364
|
-
}
|
1365
|
-
]
|
1366
|
-
},
|
1367
|
-
{
|
1368
|
-
"kind": "javascript-module",
|
1369
|
-
"path": "src/styles/index.ts",
|
1370
|
-
"declarations": [],
|
1371
|
-
"exports": [
|
1372
|
-
{
|
1373
|
-
"kind": "js",
|
1374
|
-
"name": "*",
|
1375
|
-
"declaration": {
|
1376
|
-
"name": "*",
|
1377
|
-
"package": "./constants"
|
1378
|
-
}
|
1379
|
-
},
|
1380
|
-
{
|
1381
|
-
"kind": "js",
|
1382
|
-
"name": "*",
|
1383
|
-
"declaration": {
|
1384
|
-
"name": "*",
|
1385
|
-
"package": "./dragging.styles"
|
1386
|
-
}
|
1387
|
-
},
|
1388
|
-
{
|
1389
|
-
"kind": "js",
|
1390
|
-
"name": "*",
|
1391
|
-
"declaration": {
|
1392
|
-
"name": "*",
|
1393
|
-
"package": "./layout.styles"
|
1394
|
-
}
|
1395
|
-
}
|
1396
|
-
]
|
1397
|
-
},
|
1398
|
-
{
|
1399
|
-
"kind": "javascript-module",
|
1400
|
-
"path": "src/styles/layout.styles.ts",
|
1401
|
-
"declarations": [
|
1402
|
-
{
|
1403
|
-
"kind": "variable",
|
1404
|
-
"name": "layoutStyles",
|
1405
|
-
"default": "css`\n ${containerStyles}\n ${loadingSpinnerStyles}\n\n .lm_goldenlayout {\n padding: 1px;\n background: ${neutralLayer1};\n border-radius: calc(${controlCornerRadius} * 1.5px);\n }\n\n .lm_stack.lm_item {\n background-color: ${neutralLayer4};\n border-radius: calc(${controlCornerRadius} * 1.5px);\n }\n .lm_maximised .lm_header {\n background-color: ${neutralLayer4};\n border-radius: calc(${controlCornerRadius} * 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: ${neutralLayer3};\n border-radius: calc(${controlCornerRadius} * 1.5px);\n border: 1px solid;\n border-color: #2e3339;\n box-sizing: border-box;\n }\n\n .lm-header {\n z-index: 1;\n }\n .lm_header .lm_tabs {\n padding: 0 16px;\n }\n\n .lm_stack > .lm_items {\n z-index: 2;\n box-shadow: 0px -1px 15px rgba(0, 0, 0, 0.35);\n }\n\n .lm_header .lm_tab.lm_active.lm_focused {\n background-color: ${neutralLayer3};\n }\n .lm_header .lm_tab.lm_active {\n background-color: ${neutralLayer3};\n border: 1px solid;\n border-color: #2e3339;\n border-bottom: 0;\n color: ${accentFillRest};\n }\n\n .lm_header .lm_tab {\n align-items: center;\n background-color: ${neutralLayer4};\n border: 1px solid;\n border-bottom-color: #2e3339;\n border-bottom: 0px solid;\n border-color: rgba(0, 0, 0, 0.35);\n border-radius: calc(${controlCornerRadius} * 1.5px) calc(${controlCornerRadius} * 1.5px) 0 0;\n box-shadow: 1px -1px 2px rgba(0, 0, 0, 0.35);\n color: rgba(255, 255, 255, 0.3);\n display: flex;\n font-family: inherit;\n font-size: 13px;\n font-weight: 700;\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: rgba(255, 255, 255, 0.1);\n color: #f1f1f1;\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: rgba(255, 255, 255, 0.03);\n border-radius: calc(${controlCornerRadius} * 1.5px);\n margin-right: 4px;\n top: 3px;\n opacity: 1;\n }\n .lm_header .lm_controls > *:hover {\n background-color: rgba(255, 255, 255, 0.1);\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: ${accentFillRest};\n opacity: 0.7;\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: ${neutralLayer3};\n border: 1px solid;\n border-color: #2e3339;\n border-radius: calc(${controlCornerRadius} * 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: #c9c9c9;\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: ${accentFillRest};\n border-radius: calc(${controlCornerRadius} * 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;\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;\n }\n .lm_header {\n overflow: visible;\n position: relative;\n z-index: 1;\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 }\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 {\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 }\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`",
|
1406
|
-
"description": "`ElementStyles` which defines the css for FoundationLayout.",
|
1407
|
-
"privacy": "public"
|
1408
|
-
}
|
1409
|
-
],
|
1410
|
-
"exports": [
|
1411
|
-
{
|
1412
|
-
"kind": "js",
|
1413
|
-
"name": "layoutStyles",
|
1414
|
-
"declaration": {
|
1415
|
-
"name": "layoutStyles",
|
1416
|
-
"module": "src/styles/layout.styles.ts"
|
1417
|
-
}
|
1418
|
-
}
|
1419
|
-
]
|
1420
1467
|
}
|
1421
1468
|
]
|
1422
1469
|
}
|
package/dist/dts/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
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, } from './utils';
|
3
|
+
export { CustomButton, DEFAULT_RELOAD_BUFFER, LayoutComponentWithState, LayoutEmitEvents, LayoutReceiveEvents, LayoutReceiveEventsDetail, LayoutRegionType, LayoutRegistrationError, LayoutUsageError, Placement, RegisteredElementConfig, RegistrationConfig, SerialisedLayout, LAYOUT_POPOUT_CONTAINER_CLASS, } from './utils';
|
4
4
|
//# 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,
|
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"}
|
@@ -94,6 +94,13 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
94
94
|
* has changed and know you potentially need to gate some of your lifecycle functionality.
|
95
95
|
*/
|
96
96
|
lifecycleUpdateToken: string | undefined;
|
97
|
+
/**
|
98
|
+
* Controls whether popout functionality is enabled on the layout. Defaults to disabled.
|
99
|
+
* Set this attribute to any string to enable popout functionality. If this string is of format `number;number` then this will be interpreted as the width and height of the popout window.
|
100
|
+
* @beta
|
101
|
+
*/
|
102
|
+
popoutConfig: string | undefined;
|
103
|
+
private popupMode;
|
97
104
|
/** @internal */
|
98
105
|
constructor();
|
99
106
|
/** @internal */
|
@@ -151,6 +158,18 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
151
158
|
* @returns - latest version of {@link SerialisedLayout} describing the layout
|
152
159
|
*/
|
153
160
|
getLayout(): SerialisedLayout;
|
161
|
+
/**
|
162
|
+
* If in a popout window from the dynamic layout, this function will run the flow to put the component in popout mode.
|
163
|
+
* This function is automatically called if using the declarative HTML API, but if only using the JavaScript API then you will need to call this function manually.
|
164
|
+
* @remarks
|
165
|
+
* If you need to call this manually then you should do it as soon as you register all of the required components with {@link FoundationLayout.registerItem}.
|
166
|
+
*
|
167
|
+
* If you set the `LAYOUT_POPOUT_CONTAINER_CLASS` on an element which is a DOM parent of the layout,
|
168
|
+
* then if the layout goes into popout mode then it will place itself as the only child for the popout container you set.
|
169
|
+
* It is likely you'll want to attach this class to your design system provider.
|
170
|
+
* @beta
|
171
|
+
*/
|
172
|
+
tryActivatePopoutMode(): boolean;
|
154
173
|
/**
|
155
174
|
* Try to load a layout from local storage, or return false. Only required if manually calling {@link FoundationLayout.registerItem}
|
156
175
|
* @remarks
|
@@ -300,8 +319,14 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
300
319
|
private getLayoutComponents;
|
301
320
|
/**
|
302
321
|
* Recursively remove the instance key from the config which will mean that when the config is loaded it will instantiate a new instance for every item, even if they're in the cache.
|
322
|
+
* @internal
|
303
323
|
*/
|
304
324
|
private removeConfigCacheInformation;
|
325
|
+
/**
|
326
|
+
* Configures pop-out mode if {@link FoundationLayout.popoutConfig} is set
|
327
|
+
* @internal
|
328
|
+
*/
|
329
|
+
private initPopoutModeIfEnabled;
|
305
330
|
}
|
306
331
|
/**
|
307
332
|
* `ViewTemplate` which defines the html for {@link FoundationLayout}.
|
@@ -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;AAI1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAEL,eAAe,EAGf,SAAS,EACT,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EAKb,YAAY,
|
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;AAI1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC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2IoMTA5LDEyNywxMzgpOyBmaWxsLXJ1bGU6IG5vbnplcm87IG9wYWNpdHk6IDE7IiB0cmFuc2Zvcm09IiB0cmFuc2xhdGUoLTI0LjE5NTIsIC0xMS44MDQ4KSIgZD0iTSAxOCAzIGEgMSAxIDAgMCAwIDAgMiBIIDI5LjU5IEwgMTUuNzQgMTguODUgYSAxIDEgMCAxIDAgMS40MSAxLjQxIEwgMzEgNi40MSBWIDE4IGEgMSAxIDAgMCAwIDIgMCBWIDMgWiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+IDwvZz4gPGcgdHJhbnNmb3JtPSJtYXRyaXgoMjIuMjIyMiAwIDAgMjIuMjIyMiAtMC4wMDA0IC0wLjAwMDQpIj4gPHJlY3Qgc3R5bGU9InN0cm9rZTogbm9uZTsgc3Ryb2tlLXdpZHRoOiAxOyBzdHJva2UtZGFzaGFycmF5OiBub25lOyBzdHJva2UtbGluZWNhcDogYnV0dDsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDA7IHN0cm9rZS1saW5lam9pbjogbWl0ZXI7IHN0cm9rZS1taXRlcmxpbWl0OiA0OyBpcy1jdXN0b20tZm9udDogbm9uZTsgZm9udC1maWxlLXVybDogbm9uZTsgZmlsbDogcmdiKDAsMCwwKTsgZmlsbC1vcGFjaXR5OiAwOyBmaWxsLXJ1bGU6IG5vbnplcm87IG9wYWNpdHk6IDE7IiB4PSItMTgiIHk9Ii0xOCIgcng9IjAiIHJ5PSIwIiB3aWR0aD0iMzYiIGhlaWdodD0iMzYiLz4gPC9nPiA8L2c+IDwvZz4gPC9zdmc+Cg==";
|
22
23
|
};
|
23
24
|
//# sourceMappingURL=constants.d.ts.map
|
@@ -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;AAEhE,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,CAUrD,CAAC;
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/styles/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,CAUrD,CAAC;AAoBF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC"}
|
@@ -21,4 +21,16 @@ export declare const DEFAULT_RELOAD_BUFFER = 500;
|
|
21
21
|
* @internal
|
22
22
|
*/
|
23
23
|
export declare const AUTOSAVE_KEY = "foundation-layout-autosave";
|
24
|
+
/**
|
25
|
+
* Key to be used for controlling popout behaviour
|
26
|
+
* @internal
|
27
|
+
*/
|
28
|
+
export declare const LAYOUT_POPOUT_CONTROL_KEY = "f-layout-key";
|
29
|
+
/**
|
30
|
+
* Put this classname on an element which is a DOM parent of the layout, and
|
31
|
+
* if the layout goes into popout mode then it will place itself as the only child
|
32
|
+
* for the popout container you set.
|
33
|
+
* @beta
|
34
|
+
*/
|
35
|
+
export declare const LAYOUT_POPOUT_CONTAINER_CLASS = "f-layout-popout";
|
24
36
|
//# sourceMappingURL=constants.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;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"}
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;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"}
|
@@ -127,6 +127,7 @@ export type Placement = {
|
|
127
127
|
export type InstanceContainer = {
|
128
128
|
container: ComponentContainer;
|
129
129
|
instance: string;
|
130
|
+
registration: string;
|
130
131
|
};
|
131
132
|
/** @internal */
|
132
133
|
export type LayoutComponentItem<T> = Element & Partial<LayoutComponentWithState<T>> & {
|
@@ -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,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AAe;IAC9B,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC;IAChC,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,CAAC;IAC7D,mBAAmB,IAAI,IAAI,CAAC;CAC7B;AAED,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB,CAAC"}
|
package/dist/esm/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
export * from './main';
|
2
2
|
export { LAYOUT_ICONS } from './styles';
|
3
|
-
export { DEFAULT_RELOAD_BUFFER, LayoutEmitEvents, LayoutReceiveEvents, LayoutRegistrationError, LayoutUsageError, } from './utils';
|
3
|
+
export { DEFAULT_RELOAD_BUFFER, LayoutEmitEvents, LayoutReceiveEvents, LayoutRegistrationError, LayoutUsageError, LAYOUT_POPOUT_CONTAINER_CLASS, } from './utils';
|
@@ -5,8 +5,8 @@ import { Session } from '@genesislcap/foundation-comms';
|
|
5
5
|
import { layoutCacheDocument, UUID } from '@genesislcap/foundation-utils';
|
6
6
|
import { html, attr, observable, when, ref } from '@microsoft/fast-element';
|
7
7
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
8
|
-
import { globalDraggingStyles, glVisualConfig, layoutStyles } from '../styles';
|
9
|
-
import { DEFAULT_RELOAD_BUFFER, LayoutEmitEvents, LayoutReceiveEvents, componentType, AUTOSAVE_KEY, regionConveter, instanceContainer, } from '../utils/';
|
8
|
+
import { globalDraggingStyles, glVisualConfig, layoutStyles, LAYOUT_ICONS } from '../styles';
|
9
|
+
import { DEFAULT_RELOAD_BUFFER, LayoutEmitEvents, LayoutReceiveEvents, componentType, AUTOSAVE_KEY, regionConveter, instanceContainer, LAYOUT_POPOUT_CONTROL_KEY, LAYOUT_POPOUT_CONTAINER_CLASS, } from '../utils/';
|
10
10
|
import { getMissingArrayItems } from '../utils/';
|
11
11
|
import { LayoutRegistrationError, LayoutUsageError } from '../utils/error';
|
12
12
|
import { logger } from '../utils/logger';
|
@@ -71,6 +71,13 @@ export class FoundationLayout extends FoundationElement {
|
|
71
71
|
this.hasFirstLoaded = false;
|
72
72
|
/** @internal */
|
73
73
|
this.usingDeclerativeAPI = false;
|
74
|
+
/**
|
75
|
+
* Set custom button definition on this property to add them to the layout header controls
|
76
|
+
* @remarks
|
77
|
+
* To see more information see {@link CustomButton}.
|
78
|
+
* @public
|
79
|
+
*/
|
80
|
+
this.customButtons = [];
|
74
81
|
/**
|
75
82
|
* @public
|
76
83
|
* Set to true when the user is currently dragging the panes inside of the layout
|
@@ -92,6 +99,13 @@ export class FoundationLayout extends FoundationElement {
|
|
92
99
|
* has changed and know you potentially need to gate some of your lifecycle functionality.
|
93
100
|
*/
|
94
101
|
this.lifecycleUpdateToken = undefined;
|
102
|
+
/**
|
103
|
+
* Controls whether popout functionality is enabled on the layout. Defaults to disabled.
|
104
|
+
* Set this attribute to any string to enable popout functionality. If this string is of format `number;number` then this will be interpreted as the width and height of the popout window.
|
105
|
+
* @beta
|
106
|
+
*/
|
107
|
+
this.popoutConfig = undefined;
|
108
|
+
this.popupMode = false;
|
95
109
|
/** @internal */
|
96
110
|
_FoundationLayout__boundDragListener.set(this, undefined);
|
97
111
|
this.onDragStart = this.onDragStart.bind(this);
|
@@ -126,6 +140,7 @@ export class FoundationLayout extends FoundationElement {
|
|
126
140
|
this.shadowRoot.addEventListener('minimised', this.onPreItemMinimised, true);
|
127
141
|
// events.ts events
|
128
142
|
this.shadowRoot.addEventListener(LayoutReceiveEvents.autosave, this.onAutosaveRequest, true);
|
143
|
+
this.initPopoutModeIfEnabled();
|
129
144
|
this.setupCustomButtons();
|
130
145
|
}
|
131
146
|
/** @internal */
|
@@ -242,6 +257,55 @@ export class FoundationLayout extends FoundationElement {
|
|
242
257
|
});
|
243
258
|
return { v: '1', c: ResolvedLayoutConfig.minifyConfig(this.layout.saveLayout()) };
|
244
259
|
}
|
260
|
+
/**
|
261
|
+
* If in a popout window from the dynamic layout, this function will run the flow to put the component in popout mode.
|
262
|
+
* This function is automatically called if using the declarative HTML API, but if only using the JavaScript API then you will need to call this function manually.
|
263
|
+
* @remarks
|
264
|
+
* If you need to call this manually then you should do it as soon as you register all of the required components with {@link FoundationLayout.registerItem}.
|
265
|
+
*
|
266
|
+
* If you set the `LAYOUT_POPOUT_CONTAINER_CLASS` on an element which is a DOM parent of the layout,
|
267
|
+
* then if the layout goes into popout mode then it will place itself as the only child for the popout container you set.
|
268
|
+
* It is likely you'll want to attach this class to your design system provider.
|
269
|
+
* @beta
|
270
|
+
*/
|
271
|
+
tryActivatePopoutMode() {
|
272
|
+
if (!this.popupMode)
|
273
|
+
return false;
|
274
|
+
const popoutComponentRegistration = new URLSearchParams(window.location.search).get(LAYOUT_POPOUT_CONTROL_KEY);
|
275
|
+
const popoutConfig = {
|
276
|
+
root: {
|
277
|
+
type: 'component',
|
278
|
+
componentType: popoutComponentRegistration,
|
279
|
+
isClosable: false,
|
280
|
+
},
|
281
|
+
settings: {
|
282
|
+
hasHeaders: false,
|
283
|
+
},
|
284
|
+
};
|
285
|
+
this.loadGLConfigAndSetup(popoutConfig);
|
286
|
+
const tryFindNewLayoutDOMLocation = (e) => {
|
287
|
+
if (e.classList.contains(LAYOUT_POPOUT_CONTAINER_CLASS))
|
288
|
+
return e;
|
289
|
+
if (e.parentElement === null) {
|
290
|
+
const maybeHost = e.getRootNode().host;
|
291
|
+
if (maybeHost)
|
292
|
+
return tryFindNewLayoutDOMLocation(maybeHost);
|
293
|
+
return null;
|
294
|
+
}
|
295
|
+
return tryFindNewLayoutDOMLocation(e.parentElement);
|
296
|
+
};
|
297
|
+
const mNewLocation = tryFindNewLayoutDOMLocation(this);
|
298
|
+
if (mNewLocation) {
|
299
|
+
mNewLocation.appendChild(this);
|
300
|
+
let prevSibling = this.previousElementSibling;
|
301
|
+
while (prevSibling) {
|
302
|
+
prevSibling.remove();
|
303
|
+
prevSibling = this.previousElementSibling;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
this.autoSaveKey = undefined;
|
307
|
+
return true;
|
308
|
+
}
|
245
309
|
/**
|
246
310
|
* Try to load a layout from local storage, or return false. Only required if manually calling {@link FoundationLayout.registerItem}
|
247
311
|
* @remarks
|
@@ -257,7 +321,7 @@ export class FoundationLayout extends FoundationElement {
|
|
257
321
|
* @public
|
258
322
|
*/
|
259
323
|
tryLoadLayoutFromLocalStorage() {
|
260
|
-
if (!this.autoSaveKey)
|
324
|
+
if (!this.autoSaveKey || this.popupMode)
|
261
325
|
return false;
|
262
326
|
const existingLayouts = JSON.parse(this.session.getLocalStorageItem(AUTOSAVE_KEY) || '{}');
|
263
327
|
if (!(this.autoSaveKey in existingLayouts))
|
@@ -304,9 +368,7 @@ export class FoundationLayout extends FoundationElement {
|
|
304
368
|
// known use of deprecated API, but there is no other way of implementing it and we control
|
305
369
|
// the underlying library anyway
|
306
370
|
const orderedStates = componentInstanceContainer.container.getState()['orderedStates'];
|
307
|
-
|
308
|
-
[...items].map((item, i) => { var _b, _c; return (_b = item.applyState) === null || _b === void 0 ? void 0 : _b.call(item, (_c = orderedStates[i]) !== null && _c !== void 0 ? _c : null); });
|
309
|
-
}
|
371
|
+
[...items].map((item, i) => { var _b, _c; return (_b = item.applyState) === null || _b === void 0 ? void 0 : _b.call(item, (_c = orderedStates[i]) !== null && _c !== void 0 ? _c : null); });
|
310
372
|
});
|
311
373
|
this.cacheAndSaveLayout();
|
312
374
|
}
|
@@ -422,7 +484,7 @@ export class FoundationLayout extends FoundationElement {
|
|
422
484
|
this.reloadPending = false;
|
423
485
|
if (!this.hasFirstLoaded) {
|
424
486
|
this.hasFirstLoaded = true;
|
425
|
-
const res = this.tryLoadLayoutFromLocalStorage();
|
487
|
+
const res = this.tryLoadLayoutFromLocalStorage() || this.tryActivatePopoutMode();
|
426
488
|
if (!res) {
|
427
489
|
this.loadGLConfigAndSetup(this.layoutConfig);
|
428
490
|
}
|
@@ -506,6 +568,7 @@ export class FoundationLayout extends FoundationElement {
|
|
506
568
|
const componentInstanceContainer = {
|
507
569
|
container,
|
508
570
|
instance: state['instance'],
|
571
|
+
registration: reg,
|
509
572
|
};
|
510
573
|
// get the instance from the map and append it to the container
|
511
574
|
instances.get(state['instance']).forEach((component) => {
|
@@ -637,6 +700,7 @@ export class FoundationLayout extends FoundationElement {
|
|
637
700
|
}
|
638
701
|
/**
|
639
702
|
* Recursively remove the instance key from the config which will mean that when the config is loaded it will instantiate a new instance for every item, even if they're in the cache.
|
703
|
+
* @internal
|
640
704
|
*/
|
641
705
|
removeConfigCacheInformation(config) {
|
642
706
|
const traverse = (node) => {
|
@@ -649,6 +713,35 @@ export class FoundationLayout extends FoundationElement {
|
|
649
713
|
traverse(config.root);
|
650
714
|
return config;
|
651
715
|
}
|
716
|
+
/**
|
717
|
+
* Configures pop-out mode if {@link FoundationLayout.popoutConfig} is set
|
718
|
+
* @internal
|
719
|
+
*/
|
720
|
+
initPopoutModeIfEnabled() {
|
721
|
+
if (!this.popoutConfig)
|
722
|
+
return;
|
723
|
+
console.warn('Layout pop-out mode is enabled, this is an experimental feature and may change in future versions');
|
724
|
+
const popoutWindowPixelConfig = (popoutConfig) => {
|
725
|
+
const matcher = /(\d+);(\d+)/;
|
726
|
+
const mMatches = popoutConfig.match(matcher);
|
727
|
+
if (!mMatches)
|
728
|
+
return '';
|
729
|
+
const [, width, height] = mMatches;
|
730
|
+
return `,width=${width},height=${height}`;
|
731
|
+
};
|
732
|
+
this.customButtons.push({
|
733
|
+
svg: LAYOUT_ICONS.popoutSVG,
|
734
|
+
onClick: (_, elem) => {
|
735
|
+
const registration = elem.firstChild[instanceContainer].registration;
|
736
|
+
const url = new URL(window.location.toString());
|
737
|
+
const itemParams = new URLSearchParams();
|
738
|
+
itemParams.append(LAYOUT_POPOUT_CONTROL_KEY, registration);
|
739
|
+
url.search = itemParams.toString();
|
740
|
+
window.open(url, undefined, 'popup' + popoutWindowPixelConfig(this.popoutConfig));
|
741
|
+
},
|
742
|
+
});
|
743
|
+
this.popupMode = window.location.search.includes(LAYOUT_POPOUT_CONTROL_KEY);
|
744
|
+
}
|
652
745
|
}
|
653
746
|
_FoundationLayout__boundDragListener = new WeakMap(), _a = componentType;
|
654
747
|
__decorate([
|
@@ -675,6 +768,9 @@ __decorate([
|
|
675
768
|
__decorate([
|
676
769
|
observable
|
677
770
|
], FoundationLayout.prototype, "dragging", void 0);
|
771
|
+
__decorate([
|
772
|
+
attr({ attribute: 'popout-config' })
|
773
|
+
], FoundationLayout.prototype, "popoutConfig", void 0);
|
678
774
|
const loadingTemplate = html `
|
679
775
|
<div class="html-spinner"></div>
|
680
776
|
`;
|
@@ -14,6 +14,7 @@ const maximiseSVG = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53M
|
|
14
14
|
const minimiseSVG = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuMi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDIyIEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPSJNMCA0NjRDMCA0NTUuMiA3LjE2NCA0NDggMTYgNDQ4SDQ5NkM1MDQuOCA0NDggNTEyIDQ1NS4yIDUxMiA0NjRDNTEyIDQ3Mi44IDUwNC44IDQ4MCA0OTYgNDgwSDE2QzcuMTY0IDQ4MCAwIDQ3Mi44IDAgNDY0eiIgZmlsbD0iIzg3OWJhNiIvPjwvc3ZnPg==';
|
15
15
|
const closeSVG = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAz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IIDI5LjU5IEwgMTUuNzQgMTguODUgYSAxIDEgMCAxIDAgMS40MSAxLjQxIEwgMzEgNi40MSBWIDE4IGEgMSAxIDAgMCAwIDIgMCBWIDMgWiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+IDwvZz4gPGcgdHJhbnNmb3JtPSJtYXRyaXgoMjIuMjIyMiAwIDAgMjIuMjIyMiAtMC4wMDA0IC0wLjAwMDQpIj4gPHJlY3Qgc3R5bGU9InN0cm9rZTogbm9uZTsgc3Ryb2tlLXdpZHRoOiAxOyBzdHJva2UtZGFzaGFycmF5OiBub25lOyBzdHJva2UtbGluZWNhcDogYnV0dDsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDA7IHN0cm9rZS1saW5lam9pbjogbWl0ZXI7IHN0cm9rZS1taXRlcmxpbWl0OiA0OyBpcy1jdXN0b20tZm9udDogbm9uZTsgZm9udC1maWxlLXVybDogbm9uZTsgZmlsbDogcmdiKDAsMCwwKTsgZmlsbC1vcGFjaXR5OiAwOyBmaWxsLXJ1bGU6IG5vbnplcm87IG9wYWNpdHk6IDE7IiB4PSItMTgiIHk9Ii0xOCIgcng9IjAiIHJ5PSIwIiB3aWR0aD0iMzYiIGhlaWdodD0iMzYiLz4gPC9nPiA8L2c+IDwvZz4gPC9zdmc+Cg==';
|
17
18
|
/**
|
18
19
|
* A collection of SVG icons in base64 format.
|
19
20
|
* @remarks
|
@@ -33,4 +34,5 @@ export const LAYOUT_ICONS = {
|
|
33
34
|
minimiseSVG,
|
34
35
|
closeSVG,
|
35
36
|
tabDropdownSVG,
|
37
|
+
popoutSVG,
|
36
38
|
};
|
@@ -21,3 +21,15 @@ export const DEFAULT_RELOAD_BUFFER = 500;
|
|
21
21
|
* @internal
|
22
22
|
*/
|
23
23
|
export const AUTOSAVE_KEY = 'foundation-layout-autosave';
|
24
|
+
/**
|
25
|
+
* Key to be used for controlling popout behaviour
|
26
|
+
* @internal
|
27
|
+
*/
|
28
|
+
export const LAYOUT_POPOUT_CONTROL_KEY = 'f-layout-key';
|
29
|
+
/**
|
30
|
+
* Put this classname on an element which is a DOM parent of the layout, and
|
31
|
+
* if the layout goes into popout mode then it will place itself as the only child
|
32
|
+
* for the popout container you set.
|
33
|
+
* @beta
|
34
|
+
*/
|
35
|
+
export const LAYOUT_POPOUT_CONTAINER_CLASS = 'f-layout-popout';
|
@@ -776,6 +776,36 @@
|
|
776
776
|
"isProtected": false,
|
777
777
|
"isAbstract": false
|
778
778
|
},
|
779
|
+
{
|
780
|
+
"kind": "Property",
|
781
|
+
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#popoutConfig:member",
|
782
|
+
"docComment": "/**\n * Controls whether popout functionality is enabled on the layout. Defaults to disabled. Set this attribute to any string to enable popout functionality. If this string is of format `number;number` then this will be interpreted as the width and height of the popout window.\n *\n * @beta\n */\n",
|
783
|
+
"excerptTokens": [
|
784
|
+
{
|
785
|
+
"kind": "Content",
|
786
|
+
"text": "popoutConfig: "
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"kind": "Content",
|
790
|
+
"text": "string | undefined"
|
791
|
+
},
|
792
|
+
{
|
793
|
+
"kind": "Content",
|
794
|
+
"text": ";"
|
795
|
+
}
|
796
|
+
],
|
797
|
+
"isReadonly": false,
|
798
|
+
"isOptional": false,
|
799
|
+
"releaseTag": "Beta",
|
800
|
+
"name": "popoutConfig",
|
801
|
+
"propertyTypeTokenRange": {
|
802
|
+
"startIndex": 1,
|
803
|
+
"endIndex": 2
|
804
|
+
},
|
805
|
+
"isStatic": false,
|
806
|
+
"isProtected": false,
|
807
|
+
"isAbstract": false
|
808
|
+
},
|
779
809
|
{
|
780
810
|
"kind": "Method",
|
781
811
|
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#registeredItems:member(1)",
|
@@ -906,6 +936,37 @@
|
|
906
936
|
"isProtected": false,
|
907
937
|
"isAbstract": false
|
908
938
|
},
|
939
|
+
{
|
940
|
+
"kind": "Method",
|
941
|
+
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#tryActivatePopoutMode:member(1)",
|
942
|
+
"docComment": "/**\n * If in a popout window from the dynamic layout, this function will run the flow to put the component in popout mode. This function is automatically called if using the declarative HTML API, but if only using the JavaScript API then you will need to call this function manually.\n *\n * @remarks\n *\n * If you need to call this manually then you should do it as soon as you register all of the required components with {@link FoundationLayout.registerItem}.\n *\n * If you set the `LAYOUT_POPOUT_CONTAINER_CLASS` on an element which is a DOM parent of the layout, then if the layout goes into popout mode then it will place itself as the only child for the popout container you set. It is likely you'll want to attach this class to your design system provider.\n *\n * @beta\n */\n",
|
943
|
+
"excerptTokens": [
|
944
|
+
{
|
945
|
+
"kind": "Content",
|
946
|
+
"text": "tryActivatePopoutMode(): "
|
947
|
+
},
|
948
|
+
{
|
949
|
+
"kind": "Content",
|
950
|
+
"text": "boolean"
|
951
|
+
},
|
952
|
+
{
|
953
|
+
"kind": "Content",
|
954
|
+
"text": ";"
|
955
|
+
}
|
956
|
+
],
|
957
|
+
"isStatic": false,
|
958
|
+
"returnTypeTokenRange": {
|
959
|
+
"startIndex": 1,
|
960
|
+
"endIndex": 2
|
961
|
+
},
|
962
|
+
"releaseTag": "Beta",
|
963
|
+
"isProtected": false,
|
964
|
+
"overloadIndex": 1,
|
965
|
+
"parameters": [],
|
966
|
+
"isOptional": false,
|
967
|
+
"isAbstract": false,
|
968
|
+
"name": "tryActivatePopoutMode"
|
969
|
+
},
|
909
970
|
{
|
910
971
|
"kind": "Method",
|
911
972
|
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#tryLoadLayoutFromLocalStorage:member(1)",
|
@@ -1436,7 +1497,7 @@
|
|
1436
1497
|
},
|
1437
1498
|
{
|
1438
1499
|
"kind": "Content",
|
1439
|
-
"text": "{\n readonly renameSVG: \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5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AxOCAzIGEgMSAxIDAgMCAwIDAgMiBIIDI5LjU5IEwgMTUuNzQgMTguODUgYSAxIDEgMCAxIDAgMS40MSAxLjQxIEwgMzEgNi40MSBWIDE4IGEgMSAxIDAgMCAwIDIgMCBWIDMgWiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+IDwvZz4gPGcgdHJhbnNmb3JtPSJtYXRyaXgoMjIuMjIyMiAwIDAgMjIuMjIyMiAtMC4wMDA0IC0wLjAwMDQpIj4gPHJlY3Qgc3R5bGU9InN0cm9rZTogbm9uZTsgc3Ryb2tlLXdpZHRoOiAxOyBzdHJva2UtZGFzaGFycmF5OiBub25lOyBzdHJva2UtbGluZWNhcDogYnV0dDsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDA7IHN0cm9rZS1saW5lam9pbjogbWl0ZXI7IHN0cm9rZS1taXRlcmxpbWl0OiA0OyBpcy1jdXN0b20tZm9udDogbm9uZTsgZm9udC1maWxlLXVybDogbm9uZTsgZmlsbDogcmdiKDAsMCwwKTsgZmlsbC1vcGFjaXR5OiAwOyBmaWxsLXJ1bGU6IG5vbnplcm87IG9wYWNpdHk6IDE7IiB4PSItMTgiIHk9Ii0xOCIgcng9IjAiIHJ5PSIwIiB3aWR0aD0iMzYiIGhlaWdodD0iMzYiLz4gPC9nPiA8L2c+IDwvZz4gPC9zdmc+Cg==\";\n}"
|
1440
1501
|
}
|
1441
1502
|
],
|
1442
1503
|
"fileUrlPath": "src/styles/constants.ts",
|
@@ -1448,6 +1509,33 @@
|
|
1448
1509
|
"endIndex": 2
|
1449
1510
|
}
|
1450
1511
|
},
|
1512
|
+
{
|
1513
|
+
"kind": "Variable",
|
1514
|
+
"canonicalReference": "@genesislcap/foundation-layout!LAYOUT_POPOUT_CONTAINER_CLASS:var",
|
1515
|
+
"docComment": "/**\n * Put this classname on an element which is a DOM parent of the layout, and if the layout goes into popout mode then it will place itself as the only child for the popout container you set.\n *\n * @beta\n */\n",
|
1516
|
+
"excerptTokens": [
|
1517
|
+
{
|
1518
|
+
"kind": "Content",
|
1519
|
+
"text": "LAYOUT_POPOUT_CONTAINER_CLASS = "
|
1520
|
+
},
|
1521
|
+
{
|
1522
|
+
"kind": "Content",
|
1523
|
+
"text": "\"f-layout-popout\""
|
1524
|
+
}
|
1525
|
+
],
|
1526
|
+
"fileUrlPath": "src/utils/constants.ts",
|
1527
|
+
"initializerTokenRange": {
|
1528
|
+
"startIndex": 1,
|
1529
|
+
"endIndex": 2
|
1530
|
+
},
|
1531
|
+
"isReadonly": true,
|
1532
|
+
"releaseTag": "Beta",
|
1533
|
+
"name": "LAYOUT_POPOUT_CONTAINER_CLASS",
|
1534
|
+
"variableTypeTokenRange": {
|
1535
|
+
"startIndex": 0,
|
1536
|
+
"endIndex": 0
|
1537
|
+
}
|
1538
|
+
},
|
1451
1539
|
{
|
1452
1540
|
"kind": "Interface",
|
1453
1541
|
"canonicalReference": "@genesislcap/foundation-layout!LayoutComponentWithState:interface",
|
@@ -130,6 +130,13 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
130
130
|
* has changed and know you potentially need to gate some of your lifecycle functionality.
|
131
131
|
*/
|
132
132
|
lifecycleUpdateToken: string | undefined;
|
133
|
+
/**
|
134
|
+
* Controls whether popout functionality is enabled on the layout. Defaults to disabled.
|
135
|
+
* Set this attribute to any string to enable popout functionality. If this string is of format `number;number` then this will be interpreted as the width and height of the popout window.
|
136
|
+
* @beta
|
137
|
+
*/
|
138
|
+
popoutConfig: string | undefined;
|
139
|
+
private popupMode;
|
133
140
|
/** @internal */
|
134
141
|
constructor();
|
135
142
|
/** @internal */
|
@@ -187,6 +194,18 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
187
194
|
* @returns - latest version of {@link SerialisedLayout} describing the layout
|
188
195
|
*/
|
189
196
|
getLayout(): SerialisedLayout;
|
197
|
+
/**
|
198
|
+
* If in a popout window from the dynamic layout, this function will run the flow to put the component in popout mode.
|
199
|
+
* This function is automatically called if using the declarative HTML API, but if only using the JavaScript API then you will need to call this function manually.
|
200
|
+
* @remarks
|
201
|
+
* If you need to call this manually then you should do it as soon as you register all of the required components with {@link FoundationLayout.registerItem}.
|
202
|
+
*
|
203
|
+
* If you set the `LAYOUT_POPOUT_CONTAINER_CLASS` on an element which is a DOM parent of the layout,
|
204
|
+
* then if the layout goes into popout mode then it will place itself as the only child for the popout container you set.
|
205
|
+
* It is likely you'll want to attach this class to your design system provider.
|
206
|
+
* @beta
|
207
|
+
*/
|
208
|
+
tryActivatePopoutMode(): boolean;
|
190
209
|
/**
|
191
210
|
* Try to load a layout from local storage, or return false. Only required if manually calling {@link FoundationLayout.registerItem}
|
192
211
|
* @remarks
|
@@ -336,8 +355,14 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
336
355
|
private getLayoutComponents;
|
337
356
|
/**
|
338
357
|
* Recursively remove the instance key from the config which will mean that when the config is loaded it will instantiate a new instance for every item, even if they're in the cache.
|
358
|
+
* @internal
|
339
359
|
*/
|
340
360
|
private removeConfigCacheInformation;
|
361
|
+
/**
|
362
|
+
* Configures pop-out mode if {@link FoundationLayout.popoutConfig} is set
|
363
|
+
* @internal
|
364
|
+
*/
|
365
|
+
private initPopoutModeIfEnabled;
|
341
366
|
}
|
342
367
|
|
343
368
|
/**
|
@@ -503,8 +528,17 @@ export declare const LAYOUT_ICONS: {
|
|
503
528
|
readonly minimiseSVG: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuMi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDIyIEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPS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OM parent of the layout, and
|
536
|
+
* if the layout goes into popout mode then it will place itself as the only child
|
537
|
+
* for the popout container you set.
|
538
|
+
* @beta
|
539
|
+
*/
|
540
|
+
export declare const LAYOUT_POPOUT_CONTAINER_CLASS = "f-layout-popout";
|
541
|
+
|
508
542
|
/** @internal */
|
509
543
|
declare interface LayoutComponent {
|
510
544
|
[componentType]: ComponentTypes;
|
@@ -33,6 +33,7 @@ The constructor for this class is marked as internal. Third-party code should no
|
|
33
33
|
| [hasFirstLoaded](./foundation-layout.foundationlayout.hasfirstloaded.md) | | boolean | Boolean signifies whether the layout has loaded for the first time or not. |
|
34
34
|
| [lifecycleUpdateToken](./foundation-layout.foundationlayout.lifecycleupdatetoken.md) | | string \| undefined | Used to calculate whether a layout item should run its lifecycle methods or not |
|
35
35
|
| [missingItemPlaceholder](./foundation-layout.foundationlayout.missingitemplaceholder.md) | | (missingItem: string) => string | Function which is used to generate the placeholder text when a layout is loaded with a missing item. |
|
36
|
+
| [popoutConfig](./foundation-layout.foundationlayout.popoutconfig.md) | | string \| undefined | **_(BETA)_** Controls whether popout functionality is enabled on the layout. Defaults to disabled. Set this attribute to any string to enable popout functionality. If this string is of format <code>number;number</code> then this will be interpreted as the width and height of the popout window. |
|
36
37
|
| [reloadBuffer](./foundation-layout.foundationlayout.reloadbuffer.md) | | number | Number describing how long to wait in ms before reloading the config when adding items declaratively by the html API. Default 500 (ms). |
|
37
38
|
|
38
39
|
## Methods
|
@@ -45,5 +46,6 @@ The constructor for this class is marked as internal. Third-party code should no
|
|
45
46
|
| [loadLayout(layout, handleMissingItem, disableCache)](./foundation-layout.foundationlayout.loadlayout.md) | | Restores a layout described in the config from [getLayout()](./foundation-layout.foundationlayout.getlayout.md) |
|
46
47
|
| [registeredItems()](./foundation-layout.foundationlayout.registereditems.md) | | Gets all of the currently registered names |
|
47
48
|
| [registerItem(registration, elements)](./foundation-layout.foundationlayout.registeritem.md) | | Register a collection of <code>Element</code> and associate them with an <code>ID</code> with the layout system for later use. |
|
49
|
+
| [tryActivatePopoutMode()](./foundation-layout.foundationlayout.tryactivatepopoutmode.md) | | **_(BETA)_** If in a popout window from the dynamic layout, this function will run the flow to put the component in popout mode. This function is automatically called if using the declarative HTML API, but if only using the JavaScript API then you will need to call this function manually. |
|
48
50
|
| [tryLoadLayoutFromLocalStorage()](./foundation-layout.foundationlayout.tryloadlayoutfromlocalstorage.md) | | Try to load a layout from local storage, or return false. Only required if manually calling [FoundationLayout.registerItem()](./foundation-layout.foundationlayout.registeritem.md) |
|
49
51
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [popoutConfig](./foundation-layout.foundationlayout.popoutconfig.md)
|
4
|
+
|
5
|
+
## FoundationLayout.popoutConfig property
|
6
|
+
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
Controls whether popout functionality is enabled on the layout. Defaults to disabled. Set this attribute to any string to enable popout functionality. If this string is of format `number;number` then this will be interpreted as the width and height of the popout window.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
popoutConfig: string | undefined;
|
16
|
+
```
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [tryActivatePopoutMode](./foundation-layout.foundationlayout.tryactivatepopoutmode.md)
|
4
|
+
|
5
|
+
## FoundationLayout.tryActivatePopoutMode() method
|
6
|
+
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
If in a popout window from the dynamic layout, this function will run the flow to put the component in popout mode. This function is automatically called if using the declarative HTML API, but if only using the JavaScript API then you will need to call this function manually.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
tryActivatePopoutMode(): boolean;
|
16
|
+
```
|
17
|
+
**Returns:**
|
18
|
+
|
19
|
+
boolean
|
20
|
+
|
21
|
+
## Remarks
|
22
|
+
|
23
|
+
If you need to call this manually then you should do it as soon as you register all of the required components with [FoundationLayout.registerItem()](./foundation-layout.foundationlayout.registeritem.md)<!-- -->.
|
24
|
+
|
25
|
+
If you set the `LAYOUT_POPOUT_CONTAINER_CLASS` on an element which is a DOM parent of the layout, then if the layout goes into popout mode then it will place itself as the only child for the popout container you set. It is likely you'll want to attach this class to your design system provider.
|
26
|
+
|
@@ -15,6 +15,7 @@ LAYOUT_ICONS: {
|
|
15
15
|
readonly minimiseSVG: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuMi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDIyIEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPSJNMCA0NjRDMCA0NTUuMiA3LjE2NCA0NDggMTYgNDQ4SDQ5NkM1MDQuOCA0NDggNTEyIDQ1NS4yIDUxMiA0NjRDNTEyIDQ3Mi44IDUwNC44IDQ4MCA0OTYgNDgwSDE2QzcuMTY0IDQ4MCAwIDQ3Mi44IDAgNDY0eiIgZmlsbD0iIzg3OWJhNiIvPjwvc3ZnPg==";
|
16
16
|
readonly closeSVG: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0c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0xMS44MDQ4KSIgZD0iTSAxOCAzIGEgMSAxIDAgMCAwIDAgMiBIIDI5LjU5IEwgMTUuNzQgMTguODUgYSAxIDEgMCAxIDAgMS40MSAxLjQxIEwgMzEgNi40MSBWIDE4IGEgMSAxIDAgMCAwIDIgMCBWIDMgWiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+IDwvZz4gPGcgdHJhbnNmb3JtPSJtYXRyaXgoMjIuMjIyMiAwIDAgMjIuMjIyMiAtMC4wMDA0IC0wLjAwMDQpIj4gPHJlY3Qgc3R5bGU9InN0cm9rZTogbm9uZTsgc3Ryb2tlLXdpZHRoOiAxOyBzdHJva2UtZGFzaGFycmF5OiBub25lOyBzdHJva2UtbGluZWNhcDogYnV0dDsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDA7IHN0cm9rZS1saW5lam9pbjogbWl0ZXI7IHN0cm9rZS1taXRlcmxpbWl0OiA0OyBpcy1jdXN0b20tZm9udDogbm9uZTsgZm9udC1maWxlLXVybDogbm9uZTsgZmlsbDogcmdiKDAsMCwwKTsgZmlsbC1vcGFjaXR5OiAwOyBmaWxsLXJ1bGU6IG5vbnplcm87IG9wYWNpdHk6IDE7IiB4PSItMTgiIHk9Ii0xOCIgcng9IjAiIHJ5PSIwIiB3aWR0aD0iMzYiIGhlaWdodD0iMzYiLz4gPC9nPiA8L2c+IDwvZz4gPC9zdmc+Cg==";
|
18
19
|
}
|
19
20
|
```
|
20
21
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [LAYOUT\_POPOUT\_CONTAINER\_CLASS](./foundation-layout.layout_popout_container_class.md)
|
4
|
+
|
5
|
+
## LAYOUT\_POPOUT\_CONTAINER\_CLASS variable
|
6
|
+
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
|
+
>
|
9
|
+
|
10
|
+
Put this classname on an element which is a DOM parent of the layout, and if the layout goes into popout mode then it will place itself as the only child for the popout container you set.
|
11
|
+
|
12
|
+
**Signature:**
|
13
|
+
|
14
|
+
```typescript
|
15
|
+
LAYOUT_POPOUT_CONTAINER_CLASS = "f-layout-popout"
|
16
|
+
```
|
@@ -28,6 +28,7 @@
|
|
28
28
|
| [DEFAULT\_RELOAD\_BUFFER](./foundation-layout.default_reload_buffer.md) | <p>Default time in milliseconds for the layout to buffer calls to reloading the layout while the declarative API is loading.</p><p>During the first load of the layout, a loading spinner will be shown.</p> |
|
29
29
|
| [foundationLayoutComponents](./foundation-layout.foundationlayoutcomponents.md) | Registration object to register the layout with your design system. |
|
30
30
|
| [LAYOUT\_ICONS](./foundation-layout.layout_icons.md) | A collection of SVG icons in base64 format. |
|
31
|
+
| [LAYOUT\_POPOUT\_CONTAINER\_CLASS](./foundation-layout.layout_popout_container_class.md) | **_(BETA)_** Put this classname on an element which is a DOM parent of the layout, and if the layout goes into popout mode then it will place itself as the only child for the popout container you set. |
|
31
32
|
| [LayoutEmitEvents](./foundation-layout.layoutemitevents.md) | <p>Defines events that the layout system emits</p><p>'firstLoaded' - emitted when the layout has finished loading the first time using the declarative API after [DEFAULT\_RELOAD\_BUFFER](./foundation-layout.default_reload_buffer.md) ms. <br/> 'itemAdded' - emitted when an item is added to the layout' <br/> 'itemRemoved' - emitted when an item is removed from the layout' <br/> 'itemResized' - emitted when the user drags the divider to resize elements</p> |
|
32
33
|
| [LayoutReceiveEvents](./foundation-layout.layoutreceiveevents.md) | <p>Defines events that the layout system listens for</p><p>'changeTitle' - emit this from a contained item to update the title of the window that contains it. 'autosave' - emit this from a contained item to hint to the layout system that it should autosave the layout. A contained item should do this if it has just changed some state it would like to persist. See [LayoutComponentWithState](./foundation-layout.layoutcomponentwithstate.md)<!-- -->.</p> |
|
33
34
|
| [layoutStyles](./foundation-layout.layoutstyles.md) | <code>ElementStyles</code> which defines the css for [FoundationLayout](./foundation-layout.foundationlayout.md)<!-- -->. |
|
package/docs/api-report.md
CHANGED
@@ -53,11 +53,15 @@ export class FoundationLayout extends FoundationElement implements LayoutCompone
|
|
53
53
|
lifecycleUpdateToken: string | undefined;
|
54
54
|
loadLayout(layout: SerialisedLayout, handleMissingItem?: 'placeholder' | 'error', disableCache?: boolean): void;
|
55
55
|
missingItemPlaceholder: (missingItem: string) => string;
|
56
|
+
// @beta
|
57
|
+
popoutConfig: string | undefined;
|
56
58
|
registeredItems(): string[];
|
57
59
|
registerItem(registration: string, elements: Element[]): string;
|
58
60
|
reloadBuffer: number;
|
59
61
|
// @internal
|
60
62
|
requestLayoutReload(): void;
|
63
|
+
// @beta
|
64
|
+
tryActivatePopoutMode(): boolean;
|
61
65
|
tryLoadLayoutFromLocalStorage(): boolean;
|
62
66
|
// @internal (undocumented)
|
63
67
|
usingDeclerativeAPI: boolean;
|
@@ -130,8 +134,12 @@ export const LAYOUT_ICONS: {
|
|
130
134
|
readonly minimiseSVG: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuMi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDIyIEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPSJNMCA0NjRDMCA0NTUuMiA3LjE2NCA0NDggMTYgNDQ4SDQ5NkM1MDQuOCA0NDggNTEyIDQ1NS4yIDUxMiA0NjRDNTEyIDQ3Mi44IDUwNC44IDQ4MCA0OTYgNDgwSDE2QzcuMTY0IDQ4MCAwIDQ3Mi44IDAgNDY0eiIgZmlsbD0iIzg3OWJhNiIvPjwvc3ZnPg==";
|
131
135
|
readonly closeSVG: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuMi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDIyIEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPSJNMzE1LjMgNDExLjNjLTYuMjUzIDYuMjUzLTE2LjM3IDYuMjUzLTIyLjYzIDBMMTYwIDI3OC42bC0xMzIuNyAxMzIuN2MtNi4yNTMgNi4yNTMtMTYuMzcgNi4yNTMtMjIuNjMgMGMtNi4yNTMtNi4yNTMtNi4yNTMtMTYuMzcgMC0yMi42M0wxMzcuNCAyNTZMNC42OSAxMjMuM2MtNi4yNTMtNi4yNTMtNi4yNTMtMTYuMzcgMC0yMi42M2M2LjI1My02LjI1MyAxNi4zNy02LjI1MyAyMi42MyAwTDE2MCAyMzMuNGwxMzIuNy0xMzIuN2M2LjI1My02LjI1MyAxNi4zNy02LjI1MyAyMi42MyAwYzYuMjUzIDYuMjUzIDYuMjUzIDE2LjM3IDAgMjIuNjNMMTgyLjYgMjU2bDEzMi43IDEzMi43QzMyMS42IDM5NC45IDMyMS42IDQwNS4xIDMxNS4zIDQxMS4zeiIgZmlsbD0iIzg3OWJhNiIvPjwvc3ZnPg==";
|
132
136
|
readonly tabDropdownSVG: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuMi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNv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E7IiB0cmFuc2Zvcm09IiB0cmFuc2xhdGUoLTI0LjE5NTIsIC0xMS44MDQ4KSIgZD0iTSAxOCAzIGEgMSAxIDAgMCAwIDAgMiBIIDI5LjU5IEwgMTUuNzQgMTguODUgYSAxIDEgMCAxIDAgMS40MSAxLjQxIEwgMzEgNi40MSBWIDE4IGEgMSAxIDAgMCAwIDIgMCBWIDMgWiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+IDwvZz4gPGcgdHJhbnNmb3JtPSJtYXRyaXgoMjIuMjIyMiAwIDAgMjIuMjIyMiAtMC4wMDA0IC0wLjAwMDQpIj4gPHJlY3Qgc3R5bGU9InN0cm9rZTogbm9uZTsgc3Ryb2tlLXdpZHRoOiAxOyBzdHJva2UtZGFzaGFycmF5OiBub25lOyBzdHJva2UtbGluZWNhcDogYnV0dDsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDA7IHN0cm9rZS1saW5lam9pbjogbWl0ZXI7IHN0cm9rZS1taXRlcmxpbWl0OiA0OyBpcy1jdXN0b20tZm9udDogbm9uZTsgZm9udC1maWxlLXVybDogbm9uZTsgZmlsbDogcmdiKDAsMCwwKTsgZmlsbC1vcGFjaXR5OiAwOyBmaWxsLXJ1bGU6IG5vbnplcm87IG9wYWNpdHk6IDE7IiB4PSItMTgiIHk9Ii0xOCIgcng9IjAiIHJ5PSIwIiB3aWR0aD0iMzYiIGhlaWdodD0iMzYiLz4gPC9nPiA8L2c+IDwvZz4gPC9zdmc+Cg==";
|
133
138
|
};
|
134
139
|
|
140
|
+
// @beta
|
141
|
+
export const LAYOUT_POPOUT_CONTAINER_CLASS = "f-layout-popout";
|
142
|
+
|
135
143
|
// @public
|
136
144
|
export interface LayoutComponentWithState<T> {
|
137
145
|
applyState(state: T | null): void;
|
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": "14.
|
4
|
+
"version": "14.108.0",
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
6
6
|
"main": "dist/esm/index.js",
|
7
7
|
"types": "dist/foundation-layout.d.ts",
|
@@ -27,15 +27,15 @@
|
|
27
27
|
"test:debug": "genx test --debug"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@genesislcap/foundation-testing": "14.
|
31
|
-
"@genesislcap/genx": "14.
|
30
|
+
"@genesislcap/foundation-testing": "14.108.0",
|
31
|
+
"@genesislcap/genx": "14.108.0",
|
32
32
|
"rimraf": "^3.0.2"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@genesis-community/golden-layout": "^2.11.0",
|
36
|
-
"@genesislcap/foundation-comms": "14.
|
37
|
-
"@genesislcap/foundation-logger": "14.
|
38
|
-
"@genesislcap/foundation-utils": "14.
|
36
|
+
"@genesislcap/foundation-comms": "14.108.0",
|
37
|
+
"@genesislcap/foundation-logger": "14.108.0",
|
38
|
+
"@genesislcap/foundation-utils": "14.108.0",
|
39
39
|
"@microsoft/fast-components": "^2.21.3",
|
40
40
|
"@microsoft/fast-element": "^1.7.0",
|
41
41
|
"@microsoft/fast-foundation": "^2.33.2",
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"access": "public"
|
51
51
|
},
|
52
52
|
"customElements": "dist/custom-elements.json",
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "37e4aa6b9f3b1ba8fd0e88156693232fd139fe2e"
|
54
54
|
}
|