@genesislcap/foundation-layout 14.343.2 → 14.344.0-fui-2424-height-width.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 +19 -0
 - package/dist/dts/main/layout-main.d.ts +15 -0
 - package/dist/dts/main/layout-main.d.ts.map +1 -1
 - package/dist/esm/main/layout-main.js +35 -0
 - package/dist/foundation-layout.api.json +31 -0
 - package/dist/foundation-layout.d.ts +15 -0
 - package/docs/api/foundation-layout.foundationlayout.clearautosaveandreverttodefault.md +25 -0
 - package/docs/api/foundation-layout.foundationlayout.md +14 -0
 - package/docs/api-report.md.api.md +1 -0
 - package/package.json +12 -12
 
| 
         @@ -455,6 +455,15 @@ 
     | 
|
| 
       455 
455 
     | 
    
         
             
                          "privacy": "private",
         
     | 
| 
       456 
456 
     | 
    
         
             
                          "default": "{ root: undefined }"
         
     | 
| 
       457 
457 
     | 
    
         
             
                        },
         
     | 
| 
      
 458 
     | 
    
         
            +
                        {
         
     | 
| 
      
 459 
     | 
    
         
            +
                          "kind": "field",
         
     | 
| 
      
 460 
     | 
    
         
            +
                          "name": "defaultLayoutConfig",
         
     | 
| 
      
 461 
     | 
    
         
            +
                          "type": {
         
     | 
| 
      
 462 
     | 
    
         
            +
                            "text": "LayoutConfig"
         
     | 
| 
      
 463 
     | 
    
         
            +
                          },
         
     | 
| 
      
 464 
     | 
    
         
            +
                          "privacy": "private",
         
     | 
| 
      
 465 
     | 
    
         
            +
                          "default": "{ root: undefined }"
         
     | 
| 
      
 466 
     | 
    
         
            +
                        },
         
     | 
| 
       458 
467 
     | 
    
         
             
                        {
         
     | 
| 
       459 
468 
     | 
    
         
             
                          "kind": "field",
         
     | 
| 
       460 
469 
     | 
    
         
             
                          "name": "reloadBuffer",
         
     | 
| 
         @@ -635,6 +644,16 @@ 
     | 
|
| 
       635 
644 
     | 
    
         
             
                          "description": "Try to load a layout from local storage, or return false. Only required if manually calling FoundationLayout.registerItem",
         
     | 
| 
       636 
645 
     | 
    
         
             
                          "privacy": "public"
         
     | 
| 
       637 
646 
     | 
    
         
             
                        },
         
     | 
| 
      
 647 
     | 
    
         
            +
                        {
         
     | 
| 
      
 648 
     | 
    
         
            +
                          "kind": "method",
         
     | 
| 
      
 649 
     | 
    
         
            +
                          "name": "clearAutosaveAndRevertToDefault",
         
     | 
| 
      
 650 
     | 
    
         
            +
                          "return": {
         
     | 
| 
      
 651 
     | 
    
         
            +
                            "type": {
         
     | 
| 
      
 652 
     | 
    
         
            +
                              "text": ""
         
     | 
| 
      
 653 
     | 
    
         
            +
                            }
         
     | 
| 
      
 654 
     | 
    
         
            +
                          },
         
     | 
| 
      
 655 
     | 
    
         
            +
                          "privacy": "public"
         
     | 
| 
      
 656 
     | 
    
         
            +
                        },
         
     | 
| 
       638 
657 
     | 
    
         
             
                        {
         
     | 
| 
       639 
658 
     | 
    
         
             
                          "kind": "method",
         
     | 
| 
       640 
659 
     | 
    
         
             
                          "name": "loadLayout",
         
     | 
| 
         @@ -20,6 +20,7 @@ export declare class FoundationLayout extends FoundationElement implements Layou 
     | 
|
| 
       20 
20 
     | 
    
         
             
                /** @internal */
         
     | 
| 
       21 
21 
     | 
    
         
             
                layoutElement: HTMLElement;
         
     | 
| 
       22 
22 
     | 
    
         
             
                private layoutConfig;
         
     | 
| 
      
 23 
     | 
    
         
            +
                private defaultLayoutConfig;
         
     | 
| 
       23 
24 
     | 
    
         
             
                /** @internal */
         
     | 
| 
       24 
25 
     | 
    
         
             
                [componentType]: "root";
         
     | 
| 
       25 
26 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -185,6 +186,20 @@ export declare class FoundationLayout extends FoundationElement implements Layou 
     | 
|
| 
       185 
186 
     | 
    
         
             
                 * @public
         
     | 
| 
       186 
187 
     | 
    
         
             
                 */
         
     | 
| 
       187 
188 
     | 
    
         
             
                tryLoadLayoutFromLocalStorage(): boolean;
         
     | 
| 
      
 189 
     | 
    
         
            +
                /**
         
     | 
| 
      
 190 
     | 
    
         
            +
                 * @public
         
     | 
| 
      
 191 
     | 
    
         
            +
                 * Clears the autosaved layout from local storage and reverts to the default layout
         
     | 
| 
      
 192 
     | 
    
         
            +
                 * @remarks
         
     | 
| 
      
 193 
     | 
    
         
            +
                 * This method will remove the autosaved layout associated with the current `auto-save-key` from local storage
         
     | 
| 
      
 194 
     | 
    
         
            +
                 * and reload the layout using the original configuration that was defined declaratively or set initially.
         
     | 
| 
      
 195 
     | 
    
         
            +
                 * The layout will be reloaded with fresh instances (cache disabled).
         
     | 
| 
      
 196 
     | 
    
         
            +
                 *
         
     | 
| 
      
 197 
     | 
    
         
            +
                 * If no `auto-save-key` is set or if the layout is in popup mode, this method returns false without doing anything.
         
     | 
| 
      
 198 
     | 
    
         
            +
                 *
         
     | 
| 
      
 199 
     | 
    
         
            +
                 * @returns boolean - true if the autosave was cleared and layout reverted, false if no action was taken
         
     | 
| 
      
 200 
     | 
    
         
            +
                 * @public
         
     | 
| 
      
 201 
     | 
    
         
            +
                 */
         
     | 
| 
      
 202 
     | 
    
         
            +
                clearAutosaveAndRevertToDefault(): boolean;
         
     | 
| 
       188 
203 
     | 
    
         
             
                /**
         
     | 
| 
       189 
204 
     | 
    
         
             
                 * @public
         
     | 
| 
       190 
205 
     | 
    
         
             
                 * Restores a layout described in the config from {@link FoundationLayout.getLayout | getLayout()}
         
     | 
| 
         @@ -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,EAGL,aAAa,EACb,YAAY,EAOZ,eAAe,EAKf,SAAS,EAET,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAInB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAiBzC;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,SAAQ,iBAAkB,YAAW,eAAe;;IAChF,OAAO,CAAC,MAAM,CAAe;IAC7B,gBAAgB;IAChB,aAAa,EAAE,WAAW,CAAC;IAC3B,OAAO,CAAC,YAAY,CAAqC; 
     | 
| 
      
 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,EAGL,aAAa,EACb,YAAY,EAOZ,eAAe,EAKf,SAAS,EAET,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAInB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAiBzC;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,SAAQ,iBAAkB,YAAW,eAAe;;IAChF,OAAO,CAAC,MAAM,CAAe;IAC7B,gBAAgB;IAChB,aAAa,EAAE,WAAW,CAAC;IAC3B,OAAO,CAAC,YAAY,CAAqC;IACzD,OAAO,CAAC,mBAAmB,CAAqC;IAEhE,gBAAgB;IAChB,CAAC,aAAa,CAAC,EAAG,MAAM,CAAU;IAElC;;;;OAIG;IACmC,YAAY,EAAE,MAAM,CAAyB;IACnF,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,oBAAoB,CAAK;IAEjC,gBAAgB;IACV,OAAO,CAAC,IAAI,CAAO;IAEzB,gBAAgB;IACP,OAAO,CAAC,OAAO,CAAU;IAClC;;;;;OAKG;IACmC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC3D;;;;OAIG;IACS,sBAAsB,GAAI,aAAa,MAAM,YAC2B;IAEpF;;;OAGG;IACH,gBAAgB,CAA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AAgB;;;;;;;;2BAI3B,CAAC"}
         
     | 
| 
         @@ -40,6 +40,7 @@ export class FoundationLayout extends FoundationElement { 
     | 
|
| 
       40 
40 
     | 
    
         
             
                constructor() {
         
     | 
| 
       41 
41 
     | 
    
         
             
                    super();
         
     | 
| 
       42 
42 
     | 
    
         
             
                    this.layoutConfig = { root: undefined };
         
     | 
| 
      
 43 
     | 
    
         
            +
                    this.defaultLayoutConfig = { root: undefined };
         
     | 
| 
       43 
44 
     | 
    
         
             
                    /** @internal */
         
     | 
| 
       44 
45 
     | 
    
         
             
                    this[_a] = 'root';
         
     | 
| 
       45 
46 
     | 
    
         
             
                    /**
         
     | 
| 
         @@ -329,6 +330,38 @@ export class FoundationLayout extends FoundationElement { 
     | 
|
| 
       329 
330 
     | 
    
         
             
                    this.loadLayout(layout, 'placeholder', true);
         
     | 
| 
       330 
331 
     | 
    
         
             
                    return true;
         
     | 
| 
       331 
332 
     | 
    
         
             
                }
         
     | 
| 
      
 333 
     | 
    
         
            +
                /**
         
     | 
| 
      
 334 
     | 
    
         
            +
                 * @public
         
     | 
| 
      
 335 
     | 
    
         
            +
                 * Clears the autosaved layout from local storage and reverts to the default layout
         
     | 
| 
      
 336 
     | 
    
         
            +
                 * @remarks
         
     | 
| 
      
 337 
     | 
    
         
            +
                 * This method will remove the autosaved layout associated with the current `auto-save-key` from local storage
         
     | 
| 
      
 338 
     | 
    
         
            +
                 * and reload the layout using the original configuration that was defined declaratively or set initially.
         
     | 
| 
      
 339 
     | 
    
         
            +
                 * The layout will be reloaded with fresh instances (cache disabled).
         
     | 
| 
      
 340 
     | 
    
         
            +
                 *
         
     | 
| 
      
 341 
     | 
    
         
            +
                 * If no `auto-save-key` is set or if the layout is in popup mode, this method returns false without doing anything.
         
     | 
| 
      
 342 
     | 
    
         
            +
                 *
         
     | 
| 
      
 343 
     | 
    
         
            +
                 * @returns boolean - true if the autosave was cleared and layout reverted, false if no action was taken
         
     | 
| 
      
 344 
     | 
    
         
            +
                 * @public
         
     | 
| 
      
 345 
     | 
    
         
            +
                 */
         
     | 
| 
      
 346 
     | 
    
         
            +
                clearAutosaveAndRevertToDefault() {
         
     | 
| 
      
 347 
     | 
    
         
            +
                    if (!this.autoSaveKey || this.popupMode)
         
     | 
| 
      
 348 
     | 
    
         
            +
                        return false;
         
     | 
| 
      
 349 
     | 
    
         
            +
                    // Remove the autosave entry from local storage
         
     | 
| 
      
 350 
     | 
    
         
            +
                    const existingLayouts = JSON.parse(this.session.getLocalStorageItem(AUTOSAVE_KEY) || '{}');
         
     | 
| 
      
 351 
     | 
    
         
            +
                    if (this.autoSaveKey in existingLayouts) {
         
     | 
| 
      
 352 
     | 
    
         
            +
                        delete existingLayouts[this.autoSaveKey];
         
     | 
| 
      
 353 
     | 
    
         
            +
                        this.session.setLocalStorageItem(AUTOSAVE_KEY, JSON.stringify(existingLayouts));
         
     | 
| 
      
 354 
     | 
    
         
            +
                    }
         
     | 
| 
      
 355 
     | 
    
         
            +
                    // Revert to the default layout configuration
         
     | 
| 
      
 356 
     | 
    
         
            +
                    if (this.defaultLayoutConfig.root) {
         
     | 
| 
      
 357 
     | 
    
         
            +
                        this.updateLifecycleToken();
         
     | 
| 
      
 358 
     | 
    
         
            +
                        this.layoutConfig = JSON.parse(JSON.stringify(this.defaultLayoutConfig));
         
     | 
| 
      
 359 
     | 
    
         
            +
                        this.loadGLConfigAndSetup(this.layoutConfig);
         
     | 
| 
      
 360 
     | 
    
         
            +
                        this.cacheAndSaveLayout(); // Save the default layout as the new autosave
         
     | 
| 
      
 361 
     | 
    
         
            +
                        return true;
         
     | 
| 
      
 362 
     | 
    
         
            +
                    }
         
     | 
| 
      
 363 
     | 
    
         
            +
                    return false;
         
     | 
| 
      
 364 
     | 
    
         
            +
                }
         
     | 
| 
       332 
365 
     | 
    
         
             
                /**
         
     | 
| 
       333 
366 
     | 
    
         
             
                 * @public
         
     | 
| 
       334 
367 
     | 
    
         
             
                 * Restores a layout described in the config from {@link FoundationLayout.getLayout | getLayout()}
         
     | 
| 
         @@ -543,6 +576,8 @@ export class FoundationLayout extends FoundationElement { 
     | 
|
| 
       543 
576 
     | 
    
         
             
                        this.reloadPending = false;
         
     | 
| 
       544 
577 
     | 
    
         
             
                        if (!this.hasFirstLoaded) {
         
     | 
| 
       545 
578 
     | 
    
         
             
                            this.hasFirstLoaded = true;
         
     | 
| 
      
 579 
     | 
    
         
            +
                            // Store the default layout config before attempting to load from storage
         
     | 
| 
      
 580 
     | 
    
         
            +
                            this.defaultLayoutConfig = JSON.parse(JSON.stringify(this.layoutConfig));
         
     | 
| 
       546 
581 
     | 
    
         
             
                            const res = this.tryLoadLayoutFromLocalStorage() || this.tryActivatePopoutMode();
         
     | 
| 
       547 
582 
     | 
    
         
             
                            if (!res) {
         
     | 
| 
       548 
583 
     | 
    
         
             
                                this.loadGLConfigAndSetup(this.layoutConfig);
         
     | 
| 
         @@ -428,6 +428,37 @@ 
     | 
|
| 
       428 
428 
     | 
    
         
             
                          "isProtected": false,
         
     | 
| 
       429 
429 
     | 
    
         
             
                          "isAbstract": false
         
     | 
| 
       430 
430 
     | 
    
         
             
                        },
         
     | 
| 
      
 431 
     | 
    
         
            +
                        {
         
     | 
| 
      
 432 
     | 
    
         
            +
                          "kind": "Method",
         
     | 
| 
      
 433 
     | 
    
         
            +
                          "canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#clearAutosaveAndRevertToDefault:member(1)",
         
     | 
| 
      
 434 
     | 
    
         
            +
                          "docComment": "/**\n * Clears the autosaved layout from local storage and reverts to the default layout\n *\n * @remarks\n *\n * This method will remove the autosaved layout associated with the current `auto-save-key` from local storage and reload the layout using the original configuration that was defined declaratively or set initially. The layout will be reloaded with fresh instances (cache disabled).\n *\n * If no `auto-save-key` is set or if the layout is in popup mode, this method returns false without doing anything.\n *\n * @returns boolean - true if the autosave was cleared and layout reverted, false if no action was taken\n *\n * @public\n */\n",
         
     | 
| 
      
 435 
     | 
    
         
            +
                          "excerptTokens": [
         
     | 
| 
      
 436 
     | 
    
         
            +
                            {
         
     | 
| 
      
 437 
     | 
    
         
            +
                              "kind": "Content",
         
     | 
| 
      
 438 
     | 
    
         
            +
                              "text": "clearAutosaveAndRevertToDefault(): "
         
     | 
| 
      
 439 
     | 
    
         
            +
                            },
         
     | 
| 
      
 440 
     | 
    
         
            +
                            {
         
     | 
| 
      
 441 
     | 
    
         
            +
                              "kind": "Content",
         
     | 
| 
      
 442 
     | 
    
         
            +
                              "text": "boolean"
         
     | 
| 
      
 443 
     | 
    
         
            +
                            },
         
     | 
| 
      
 444 
     | 
    
         
            +
                            {
         
     | 
| 
      
 445 
     | 
    
         
            +
                              "kind": "Content",
         
     | 
| 
      
 446 
     | 
    
         
            +
                              "text": ";"
         
     | 
| 
      
 447 
     | 
    
         
            +
                            }
         
     | 
| 
      
 448 
     | 
    
         
            +
                          ],
         
     | 
| 
      
 449 
     | 
    
         
            +
                          "isStatic": false,
         
     | 
| 
      
 450 
     | 
    
         
            +
                          "returnTypeTokenRange": {
         
     | 
| 
      
 451 
     | 
    
         
            +
                            "startIndex": 1,
         
     | 
| 
      
 452 
     | 
    
         
            +
                            "endIndex": 2
         
     | 
| 
      
 453 
     | 
    
         
            +
                          },
         
     | 
| 
      
 454 
     | 
    
         
            +
                          "releaseTag": "Public",
         
     | 
| 
      
 455 
     | 
    
         
            +
                          "isProtected": false,
         
     | 
| 
      
 456 
     | 
    
         
            +
                          "overloadIndex": 1,
         
     | 
| 
      
 457 
     | 
    
         
            +
                          "parameters": [],
         
     | 
| 
      
 458 
     | 
    
         
            +
                          "isOptional": false,
         
     | 
| 
      
 459 
     | 
    
         
            +
                          "isAbstract": false,
         
     | 
| 
      
 460 
     | 
    
         
            +
                          "name": "clearAutosaveAndRevertToDefault"
         
     | 
| 
      
 461 
     | 
    
         
            +
                        },
         
     | 
| 
       431 
462 
     | 
    
         
             
                        {
         
     | 
| 
       432 
463 
     | 
    
         
             
                          "kind": "Property",
         
     | 
| 
       433 
464 
     | 
    
         
             
                          "canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#customButtons:member",
         
     | 
| 
         @@ -56,6 +56,7 @@ export declare class FoundationLayout extends FoundationElement implements Layou 
     | 
|
| 
       56 
56 
     | 
    
         
             
                /** @internal */
         
     | 
| 
       57 
57 
     | 
    
         
             
                layoutElement: HTMLElement;
         
     | 
| 
       58 
58 
     | 
    
         
             
                private layoutConfig;
         
     | 
| 
      
 59 
     | 
    
         
            +
                private defaultLayoutConfig;
         
     | 
| 
       59 
60 
     | 
    
         
             
                /** @internal */
         
     | 
| 
       60 
61 
     | 
    
         
             
                [componentType]: "root";
         
     | 
| 
       61 
62 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -221,6 +222,20 @@ export declare class FoundationLayout extends FoundationElement implements Layou 
     | 
|
| 
       221 
222 
     | 
    
         
             
                 * @public
         
     | 
| 
       222 
223 
     | 
    
         
             
                 */
         
     | 
| 
       223 
224 
     | 
    
         
             
                tryLoadLayoutFromLocalStorage(): boolean;
         
     | 
| 
      
 225 
     | 
    
         
            +
                /**
         
     | 
| 
      
 226 
     | 
    
         
            +
                 * @public
         
     | 
| 
      
 227 
     | 
    
         
            +
                 * Clears the autosaved layout from local storage and reverts to the default layout
         
     | 
| 
      
 228 
     | 
    
         
            +
                 * @remarks
         
     | 
| 
      
 229 
     | 
    
         
            +
                 * This method will remove the autosaved layout associated with the current `auto-save-key` from local storage
         
     | 
| 
      
 230 
     | 
    
         
            +
                 * and reload the layout using the original configuration that was defined declaratively or set initially.
         
     | 
| 
      
 231 
     | 
    
         
            +
                 * The layout will be reloaded with fresh instances (cache disabled).
         
     | 
| 
      
 232 
     | 
    
         
            +
                 *
         
     | 
| 
      
 233 
     | 
    
         
            +
                 * If no `auto-save-key` is set or if the layout is in popup mode, this method returns false without doing anything.
         
     | 
| 
      
 234 
     | 
    
         
            +
                 *
         
     | 
| 
      
 235 
     | 
    
         
            +
                 * @returns boolean - true if the autosave was cleared and layout reverted, false if no action was taken
         
     | 
| 
      
 236 
     | 
    
         
            +
                 * @public
         
     | 
| 
      
 237 
     | 
    
         
            +
                 */
         
     | 
| 
      
 238 
     | 
    
         
            +
                clearAutosaveAndRevertToDefault(): boolean;
         
     | 
| 
       224 
239 
     | 
    
         
             
                /**
         
     | 
| 
       225 
240 
     | 
    
         
             
                 * @public
         
     | 
| 
       226 
241 
     | 
    
         
             
                 * Restores a layout described in the config from {@link FoundationLayout.getLayout | getLayout()}
         
     | 
| 
         @@ -0,0 +1,25 @@ 
     | 
|
| 
      
 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) > [clearAutosaveAndRevertToDefault](./foundation-layout.foundationlayout.clearautosaveandreverttodefault.md)
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            ## FoundationLayout.clearAutosaveAndRevertToDefault() method
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            Clears the autosaved layout from local storage and reverts to the default layout
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            **Signature:**
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            ```typescript
         
     | 
| 
      
 12 
     | 
    
         
            +
            clearAutosaveAndRevertToDefault(): boolean;
         
     | 
| 
      
 13 
     | 
    
         
            +
            ```
         
     | 
| 
      
 14 
     | 
    
         
            +
            **Returns:**
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            boolean
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            boolean - true if the autosave was cleared and layout reverted, false if no action was taken
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            ## Remarks
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            This method will remove the autosaved layout associated with the current `auto-save-key` from local storage and reload the layout using the original configuration that was defined declaratively or set initially. The layout will be reloaded with fresh instances (cache disabled).
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
            If no `auto-save-key` is set or if the layout is in popup mode, this method returns false without doing anything.
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
         @@ -267,6 +267,20 @@ Description 
     | 
|
| 
       267 
267 
     | 
    
         
             
            Dynamically add a new item to the layout. The user can move the new plane to whenever they want once it has been added.
         
     | 
| 
       268 
268 
     | 
    
         | 
| 
       269 
269 
     | 
    
         | 
| 
      
 270 
     | 
    
         
            +
            </td></tr>
         
     | 
| 
      
 271 
     | 
    
         
            +
            <tr><td>
         
     | 
| 
      
 272 
     | 
    
         
            +
             
     | 
| 
      
 273 
     | 
    
         
            +
            [clearAutosaveAndRevertToDefault()](./foundation-layout.foundationlayout.clearautosaveandreverttodefault.md)
         
     | 
| 
      
 274 
     | 
    
         
            +
             
     | 
| 
      
 275 
     | 
    
         
            +
             
     | 
| 
      
 276 
     | 
    
         
            +
            </td><td>
         
     | 
| 
      
 277 
     | 
    
         
            +
             
     | 
| 
      
 278 
     | 
    
         
            +
             
     | 
| 
      
 279 
     | 
    
         
            +
            </td><td>
         
     | 
| 
      
 280 
     | 
    
         
            +
             
     | 
| 
      
 281 
     | 
    
         
            +
            Clears the autosaved layout from local storage and reverts to the default layout
         
     | 
| 
      
 282 
     | 
    
         
            +
             
     | 
| 
      
 283 
     | 
    
         
            +
             
     | 
| 
       270 
284 
     | 
    
         
             
            </td></tr>
         
     | 
| 
       271 
285 
     | 
    
         
             
            <tr><td>
         
     | 
| 
       272 
286 
     | 
    
         | 
| 
         @@ -38,6 +38,7 @@ export class FoundationLayout extends FoundationElement implements LayoutCompone 
     | 
|
| 
       38 
38 
     | 
    
         
             
                // @internal
         
     | 
| 
       39 
39 
     | 
    
         
             
                cacheElementsAndRegister({ elements, id }: RegistrationConfig): string;
         
     | 
| 
       40 
40 
     | 
    
         
             
                class: "FoundationLayoutMain";
         
     | 
| 
      
 41 
     | 
    
         
            +
                clearAutosaveAndRevertToDefault(): boolean;
         
     | 
| 
       41 
42 
     | 
    
         
             
                // @internal (undocumented)
         
     | 
| 
       42 
43 
     | 
    
         
             
                connectedCallback(): void;
         
     | 
| 
       43 
44 
     | 
    
         
             
                customButtons: CustomButton[];
         
     | 
    
        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.344.0-fui-2424-height-width.1",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "license": "SEE LICENSE IN license.txt",
         
     | 
| 
       6 
6 
     | 
    
         
             
              "main": "dist/esm/index.js",
         
     | 
| 
       7 
7 
     | 
    
         
             
              "types": "dist/foundation-layout.d.ts",
         
     | 
| 
         @@ -36,19 +36,19 @@ 
     | 
|
| 
       36 
36 
     | 
    
         
             
                }
         
     | 
| 
       37 
37 
     | 
    
         
             
              },
         
     | 
| 
       38 
38 
     | 
    
         
             
              "devDependencies": {
         
     | 
| 
       39 
     | 
    
         
            -
                "@genesislcap/foundation-testing": "14. 
     | 
| 
       40 
     | 
    
         
            -
                "@genesislcap/genx": "14. 
     | 
| 
       41 
     | 
    
         
            -
                "@genesislcap/rollup-builder": "14. 
     | 
| 
       42 
     | 
    
         
            -
                "@genesislcap/ts-builder": "14. 
     | 
| 
       43 
     | 
    
         
            -
                "@genesislcap/uvu-playwright-builder": "14. 
     | 
| 
       44 
     | 
    
         
            -
                "@genesislcap/vite-builder": "14. 
     | 
| 
       45 
     | 
    
         
            -
                "@genesislcap/webpack-builder": "14. 
     | 
| 
      
 39 
     | 
    
         
            +
                "@genesislcap/foundation-testing": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
      
 40 
     | 
    
         
            +
                "@genesislcap/genx": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
      
 41 
     | 
    
         
            +
                "@genesislcap/rollup-builder": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
      
 42 
     | 
    
         
            +
                "@genesislcap/ts-builder": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
      
 43 
     | 
    
         
            +
                "@genesislcap/uvu-playwright-builder": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
      
 44 
     | 
    
         
            +
                "@genesislcap/vite-builder": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
      
 45 
     | 
    
         
            +
                "@genesislcap/webpack-builder": "14.344.0-fui-2424-height-width.1"
         
     | 
| 
       46 
46 
     | 
    
         
             
              },
         
     | 
| 
       47 
47 
     | 
    
         
             
              "dependencies": {
         
     | 
| 
       48 
48 
     | 
    
         
             
                "@genesis-community/golden-layout": "^2.11.0",
         
     | 
| 
       49 
     | 
    
         
            -
                "@genesislcap/foundation-comms": "14. 
     | 
| 
       50 
     | 
    
         
            -
                "@genesislcap/foundation-logger": "14. 
     | 
| 
       51 
     | 
    
         
            -
                "@genesislcap/foundation-utils": "14. 
     | 
| 
      
 49 
     | 
    
         
            +
                "@genesislcap/foundation-comms": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
      
 50 
     | 
    
         
            +
                "@genesislcap/foundation-logger": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
      
 51 
     | 
    
         
            +
                "@genesislcap/foundation-utils": "14.344.0-fui-2424-height-width.1",
         
     | 
| 
       52 
52 
     | 
    
         
             
                "@microsoft/fast-components": "2.30.6",
         
     | 
| 
       53 
53 
     | 
    
         
             
                "@microsoft/fast-element": "1.14.0",
         
     | 
| 
       54 
54 
     | 
    
         
             
                "@microsoft/fast-foundation": "2.49.6"
         
     | 
| 
         @@ -62,5 +62,5 @@ 
     | 
|
| 
       62 
62 
     | 
    
         
             
                "access": "public"
         
     | 
| 
       63 
63 
     | 
    
         
             
              },
         
     | 
| 
       64 
64 
     | 
    
         
             
              "customElements": "dist/custom-elements.json",
         
     | 
| 
       65 
     | 
    
         
            -
              "gitHead": " 
     | 
| 
      
 65 
     | 
    
         
            +
              "gitHead": "86553b8e497318583daa88ae6955b8c0a46c63dc"
         
     | 
| 
       66 
66 
     | 
    
         
             
            }
         
     |