@genesislcap/foundation-ui 14.348.0 → 14.350.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1263,6 +1263,37 @@
1263
1263
  }
1264
1264
  ]
1265
1265
  },
1266
+ {
1267
+ "kind": "javascript-module",
1268
+ "path": "src/_config/index.ts",
1269
+ "declarations": [],
1270
+ "exports": [
1271
+ {
1272
+ "kind": "js",
1273
+ "name": "*",
1274
+ "declaration": {
1275
+ "name": "*",
1276
+ "package": "./styles"
1277
+ }
1278
+ },
1279
+ {
1280
+ "kind": "js",
1281
+ "name": "*",
1282
+ "declaration": {
1283
+ "name": "*",
1284
+ "package": "./tokens"
1285
+ }
1286
+ },
1287
+ {
1288
+ "kind": "js",
1289
+ "name": "*",
1290
+ "declaration": {
1291
+ "name": "*",
1292
+ "package": "./values"
1293
+ }
1294
+ }
1295
+ ]
1296
+ },
1266
1297
  {
1267
1298
  "kind": "javascript-module",
1268
1299
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1657,219 +1688,6 @@
1657
1688
  }
1658
1689
  ]
1659
1690
  },
1660
- {
1661
- "kind": "javascript-module",
1662
- "path": "src/_config/index.ts",
1663
- "declarations": [],
1664
- "exports": [
1665
- {
1666
- "kind": "js",
1667
- "name": "*",
1668
- "declaration": {
1669
- "name": "*",
1670
- "package": "./styles"
1671
- }
1672
- },
1673
- {
1674
- "kind": "js",
1675
- "name": "*",
1676
- "declaration": {
1677
- "name": "*",
1678
- "package": "./tokens"
1679
- }
1680
- },
1681
- {
1682
- "kind": "js",
1683
- "name": "*",
1684
- "declaration": {
1685
- "name": "*",
1686
- "package": "./values"
1687
- }
1688
- }
1689
- ]
1690
- },
1691
- {
1692
- "kind": "javascript-module",
1693
- "path": "src/accordion/accordion.styles.ts",
1694
- "declarations": [
1695
- {
1696
- "kind": "function",
1697
- "name": "foundationAccordionStyles",
1698
- "return": {
1699
- "type": {
1700
- "text": "ElementStyles"
1701
- }
1702
- },
1703
- "parameters": [
1704
- {
1705
- "name": "context",
1706
- "type": {
1707
- "text": "ElementDefinitionContext"
1708
- }
1709
- },
1710
- {
1711
- "name": "definition",
1712
- "type": {
1713
- "text": "FoundationElementDefinition"
1714
- }
1715
- }
1716
- ]
1717
- }
1718
- ],
1719
- "exports": [
1720
- {
1721
- "kind": "js",
1722
- "name": "foundationAccordionStyles",
1723
- "declaration": {
1724
- "name": "foundationAccordionStyles",
1725
- "module": "src/accordion/accordion.styles.ts"
1726
- }
1727
- }
1728
- ]
1729
- },
1730
- {
1731
- "kind": "javascript-module",
1732
- "path": "src/accordion/accordion.template.ts",
1733
- "declarations": [
1734
- {
1735
- "kind": "function",
1736
- "name": "foundationAccordionTemplate",
1737
- "return": {
1738
- "type": {
1739
- "text": "ViewTemplate<Accordion>"
1740
- }
1741
- },
1742
- "parameters": [
1743
- {
1744
- "name": "context",
1745
- "type": {
1746
- "text": "ElementDefinitionContext"
1747
- }
1748
- },
1749
- {
1750
- "name": "definition",
1751
- "type": {
1752
- "text": "FoundationElementDefinition"
1753
- }
1754
- }
1755
- ]
1756
- }
1757
- ],
1758
- "exports": [
1759
- {
1760
- "kind": "js",
1761
- "name": "foundationAccordionTemplate",
1762
- "declaration": {
1763
- "name": "foundationAccordionTemplate",
1764
- "module": "src/accordion/accordion.template.ts"
1765
- }
1766
- }
1767
- ]
1768
- },
1769
- {
1770
- "kind": "javascript-module",
1771
- "path": "src/accordion/accordion.ts",
1772
- "declarations": [
1773
- {
1774
- "kind": "class",
1775
- "description": "",
1776
- "name": "Accordion",
1777
- "superclass": {
1778
- "name": "FASTAccordion",
1779
- "package": "@microsoft/fast-foundation"
1780
- },
1781
- "tagName": "%%prefix%%-accordion",
1782
- "customElement": true
1783
- },
1784
- {
1785
- "kind": "variable",
1786
- "name": "foundationAccordionShadowOptions",
1787
- "type": {
1788
- "text": "ShadowRootInit"
1789
- },
1790
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1791
- },
1792
- {
1793
- "kind": "variable",
1794
- "name": "defaultAccordionConfig",
1795
- "type": {
1796
- "text": "object"
1797
- },
1798
- "default": "{}"
1799
- },
1800
- {
1801
- "kind": "variable",
1802
- "name": "foundationAccordion",
1803
- "description": "The Foundation Accordion",
1804
- "privacy": "public"
1805
- }
1806
- ],
1807
- "exports": [
1808
- {
1809
- "kind": "js",
1810
- "name": "Accordion",
1811
- "declaration": {
1812
- "name": "Accordion",
1813
- "module": "src/accordion/accordion.ts"
1814
- }
1815
- },
1816
- {
1817
- "kind": "js",
1818
- "name": "foundationAccordionShadowOptions",
1819
- "declaration": {
1820
- "name": "foundationAccordionShadowOptions",
1821
- "module": "src/accordion/accordion.ts"
1822
- }
1823
- },
1824
- {
1825
- "kind": "js",
1826
- "name": "defaultAccordionConfig",
1827
- "declaration": {
1828
- "name": "defaultAccordionConfig",
1829
- "module": "src/accordion/accordion.ts"
1830
- }
1831
- },
1832
- {
1833
- "kind": "js",
1834
- "name": "foundationAccordion",
1835
- "declaration": {
1836
- "name": "foundationAccordion",
1837
- "module": "src/accordion/accordion.ts"
1838
- }
1839
- }
1840
- ]
1841
- },
1842
- {
1843
- "kind": "javascript-module",
1844
- "path": "src/accordion/index.ts",
1845
- "declarations": [],
1846
- "exports": [
1847
- {
1848
- "kind": "js",
1849
- "name": "*",
1850
- "declaration": {
1851
- "name": "*",
1852
- "package": "./accordion.template"
1853
- }
1854
- },
1855
- {
1856
- "kind": "js",
1857
- "name": "*",
1858
- "declaration": {
1859
- "name": "*",
1860
- "package": "./accordion.styles"
1861
- }
1862
- },
1863
- {
1864
- "kind": "js",
1865
- "name": "*",
1866
- "declaration": {
1867
- "name": "*",
1868
- "package": "./accordion"
1869
- }
1870
- }
1871
- ]
1872
- },
1873
1691
  {
1874
1692
  "kind": "javascript-module",
1875
1693
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -2801,68 +2619,250 @@
2801
2619
  }
2802
2620
  },
2803
2621
  {
2804
- "kind": "field",
2805
- "name": "styles",
2622
+ "kind": "field",
2623
+ "name": "styles",
2624
+ "type": {
2625
+ "text": "ElementStyles | void | null"
2626
+ },
2627
+ "privacy": "public",
2628
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2629
+ "inheritedFrom": {
2630
+ "name": "FoundationElement",
2631
+ "module": "src/foundation-element/foundation-element.ts"
2632
+ }
2633
+ },
2634
+ {
2635
+ "kind": "method",
2636
+ "name": "stylesChanged",
2637
+ "privacy": "protected",
2638
+ "return": {
2639
+ "type": {
2640
+ "text": "void"
2641
+ }
2642
+ },
2643
+ "inheritedFrom": {
2644
+ "name": "FoundationElement",
2645
+ "module": "src/foundation-element/foundation-element.ts"
2646
+ }
2647
+ },
2648
+ {
2649
+ "kind": "method",
2650
+ "name": "compose",
2651
+ "privacy": "public",
2652
+ "static": true,
2653
+ "return": {
2654
+ "type": {
2655
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2656
+ }
2657
+ },
2658
+ "parameters": [
2659
+ {
2660
+ "name": "this",
2661
+ "type": {
2662
+ "text": "K"
2663
+ }
2664
+ },
2665
+ {
2666
+ "name": "elementDefinition",
2667
+ "type": {
2668
+ "text": "T"
2669
+ },
2670
+ "description": "The definition of the element to create the registry\nfunction for."
2671
+ }
2672
+ ],
2673
+ "description": "Defines an element registry function with a set of element definition defaults.",
2674
+ "inheritedFrom": {
2675
+ "name": "FoundationElement",
2676
+ "module": "src/foundation-element/foundation-element.ts"
2677
+ }
2678
+ }
2679
+ ]
2680
+ },
2681
+ {
2682
+ "kind": "variable",
2683
+ "name": "foundationAnchorShadowOptions",
2684
+ "type": {
2685
+ "text": "ShadowRootInit"
2686
+ },
2687
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2688
+ },
2689
+ {
2690
+ "kind": "variable",
2691
+ "name": "defaultAnchorConfig",
2692
+ "type": {
2693
+ "text": "object"
2694
+ },
2695
+ "default": "{}"
2696
+ },
2697
+ {
2698
+ "kind": "variable",
2699
+ "name": "foundationAnchor",
2700
+ "description": "The Foundation Anchor",
2701
+ "privacy": "public"
2702
+ }
2703
+ ],
2704
+ "exports": [
2705
+ {
2706
+ "kind": "js",
2707
+ "name": "Anchor",
2708
+ "declaration": {
2709
+ "name": "Anchor",
2710
+ "module": "src/anchor/anchor.ts"
2711
+ }
2712
+ },
2713
+ {
2714
+ "kind": "js",
2715
+ "name": "foundationAnchorShadowOptions",
2716
+ "declaration": {
2717
+ "name": "foundationAnchorShadowOptions",
2718
+ "module": "src/anchor/anchor.ts"
2719
+ }
2720
+ },
2721
+ {
2722
+ "kind": "js",
2723
+ "name": "defaultAnchorConfig",
2724
+ "declaration": {
2725
+ "name": "defaultAnchorConfig",
2726
+ "module": "src/anchor/anchor.ts"
2727
+ }
2728
+ },
2729
+ {
2730
+ "kind": "js",
2731
+ "name": "foundationAnchor",
2732
+ "declaration": {
2733
+ "name": "foundationAnchor",
2734
+ "module": "src/anchor/anchor.ts"
2735
+ }
2736
+ }
2737
+ ]
2738
+ },
2739
+ {
2740
+ "kind": "javascript-module",
2741
+ "path": "src/anchor/index.ts",
2742
+ "declarations": [],
2743
+ "exports": [
2744
+ {
2745
+ "kind": "js",
2746
+ "name": "*",
2747
+ "declaration": {
2748
+ "name": "*",
2749
+ "package": "./anchor.template"
2750
+ }
2751
+ },
2752
+ {
2753
+ "kind": "js",
2754
+ "name": "*",
2755
+ "declaration": {
2756
+ "name": "*",
2757
+ "package": "./anchor.styles"
2758
+ }
2759
+ },
2760
+ {
2761
+ "kind": "js",
2762
+ "name": "*",
2763
+ "declaration": {
2764
+ "name": "*",
2765
+ "package": "./anchor"
2766
+ }
2767
+ }
2768
+ ]
2769
+ },
2770
+ {
2771
+ "kind": "javascript-module",
2772
+ "path": "src/accordion/accordion.styles.ts",
2773
+ "declarations": [
2774
+ {
2775
+ "kind": "function",
2776
+ "name": "foundationAccordionStyles",
2777
+ "return": {
2778
+ "type": {
2779
+ "text": "ElementStyles"
2780
+ }
2781
+ },
2782
+ "parameters": [
2783
+ {
2784
+ "name": "context",
2785
+ "type": {
2786
+ "text": "ElementDefinitionContext"
2787
+ }
2788
+ },
2789
+ {
2790
+ "name": "definition",
2806
2791
  "type": {
2807
- "text": "ElementStyles | void | null"
2808
- },
2809
- "privacy": "public",
2810
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2811
- "inheritedFrom": {
2812
- "name": "FoundationElement",
2813
- "module": "src/foundation-element/foundation-element.ts"
2792
+ "text": "FoundationElementDefinition"
2814
2793
  }
2815
- },
2794
+ }
2795
+ ]
2796
+ }
2797
+ ],
2798
+ "exports": [
2799
+ {
2800
+ "kind": "js",
2801
+ "name": "foundationAccordionStyles",
2802
+ "declaration": {
2803
+ "name": "foundationAccordionStyles",
2804
+ "module": "src/accordion/accordion.styles.ts"
2805
+ }
2806
+ }
2807
+ ]
2808
+ },
2809
+ {
2810
+ "kind": "javascript-module",
2811
+ "path": "src/accordion/accordion.template.ts",
2812
+ "declarations": [
2813
+ {
2814
+ "kind": "function",
2815
+ "name": "foundationAccordionTemplate",
2816
+ "return": {
2817
+ "type": {
2818
+ "text": "ViewTemplate<Accordion>"
2819
+ }
2820
+ },
2821
+ "parameters": [
2816
2822
  {
2817
- "kind": "method",
2818
- "name": "stylesChanged",
2819
- "privacy": "protected",
2820
- "return": {
2821
- "type": {
2822
- "text": "void"
2823
- }
2824
- },
2825
- "inheritedFrom": {
2826
- "name": "FoundationElement",
2827
- "module": "src/foundation-element/foundation-element.ts"
2823
+ "name": "context",
2824
+ "type": {
2825
+ "text": "ElementDefinitionContext"
2828
2826
  }
2829
2827
  },
2830
2828
  {
2831
- "kind": "method",
2832
- "name": "compose",
2833
- "privacy": "public",
2834
- "static": true,
2835
- "return": {
2836
- "type": {
2837
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2838
- }
2839
- },
2840
- "parameters": [
2841
- {
2842
- "name": "this",
2843
- "type": {
2844
- "text": "K"
2845
- }
2846
- },
2847
- {
2848
- "name": "elementDefinition",
2849
- "type": {
2850
- "text": "T"
2851
- },
2852
- "description": "The definition of the element to create the registry\nfunction for."
2853
- }
2854
- ],
2855
- "description": "Defines an element registry function with a set of element definition defaults.",
2856
- "inheritedFrom": {
2857
- "name": "FoundationElement",
2858
- "module": "src/foundation-element/foundation-element.ts"
2829
+ "name": "definition",
2830
+ "type": {
2831
+ "text": "FoundationElementDefinition"
2859
2832
  }
2860
2833
  }
2861
2834
  ]
2835
+ }
2836
+ ],
2837
+ "exports": [
2838
+ {
2839
+ "kind": "js",
2840
+ "name": "foundationAccordionTemplate",
2841
+ "declaration": {
2842
+ "name": "foundationAccordionTemplate",
2843
+ "module": "src/accordion/accordion.template.ts"
2844
+ }
2845
+ }
2846
+ ]
2847
+ },
2848
+ {
2849
+ "kind": "javascript-module",
2850
+ "path": "src/accordion/accordion.ts",
2851
+ "declarations": [
2852
+ {
2853
+ "kind": "class",
2854
+ "description": "",
2855
+ "name": "Accordion",
2856
+ "superclass": {
2857
+ "name": "FASTAccordion",
2858
+ "package": "@microsoft/fast-foundation"
2859
+ },
2860
+ "tagName": "%%prefix%%-accordion",
2861
+ "customElement": true
2862
2862
  },
2863
2863
  {
2864
2864
  "kind": "variable",
2865
- "name": "foundationAnchorShadowOptions",
2865
+ "name": "foundationAccordionShadowOptions",
2866
2866
  "type": {
2867
2867
  "text": "ShadowRootInit"
2868
2868
  },
@@ -2870,7 +2870,7 @@
2870
2870
  },
2871
2871
  {
2872
2872
  "kind": "variable",
2873
- "name": "defaultAnchorConfig",
2873
+ "name": "defaultAccordionConfig",
2874
2874
  "type": {
2875
2875
  "text": "object"
2876
2876
  },
@@ -2878,49 +2878,49 @@
2878
2878
  },
2879
2879
  {
2880
2880
  "kind": "variable",
2881
- "name": "foundationAnchor",
2882
- "description": "The Foundation Anchor",
2881
+ "name": "foundationAccordion",
2882
+ "description": "The Foundation Accordion",
2883
2883
  "privacy": "public"
2884
2884
  }
2885
2885
  ],
2886
2886
  "exports": [
2887
2887
  {
2888
2888
  "kind": "js",
2889
- "name": "Anchor",
2889
+ "name": "Accordion",
2890
2890
  "declaration": {
2891
- "name": "Anchor",
2892
- "module": "src/anchor/anchor.ts"
2891
+ "name": "Accordion",
2892
+ "module": "src/accordion/accordion.ts"
2893
2893
  }
2894
2894
  },
2895
2895
  {
2896
2896
  "kind": "js",
2897
- "name": "foundationAnchorShadowOptions",
2897
+ "name": "foundationAccordionShadowOptions",
2898
2898
  "declaration": {
2899
- "name": "foundationAnchorShadowOptions",
2900
- "module": "src/anchor/anchor.ts"
2899
+ "name": "foundationAccordionShadowOptions",
2900
+ "module": "src/accordion/accordion.ts"
2901
2901
  }
2902
2902
  },
2903
2903
  {
2904
2904
  "kind": "js",
2905
- "name": "defaultAnchorConfig",
2905
+ "name": "defaultAccordionConfig",
2906
2906
  "declaration": {
2907
- "name": "defaultAnchorConfig",
2908
- "module": "src/anchor/anchor.ts"
2907
+ "name": "defaultAccordionConfig",
2908
+ "module": "src/accordion/accordion.ts"
2909
2909
  }
2910
2910
  },
2911
2911
  {
2912
2912
  "kind": "js",
2913
- "name": "foundationAnchor",
2913
+ "name": "foundationAccordion",
2914
2914
  "declaration": {
2915
- "name": "foundationAnchor",
2916
- "module": "src/anchor/anchor.ts"
2915
+ "name": "foundationAccordion",
2916
+ "module": "src/accordion/accordion.ts"
2917
2917
  }
2918
2918
  }
2919
2919
  ]
2920
2920
  },
2921
2921
  {
2922
2922
  "kind": "javascript-module",
2923
- "path": "src/anchor/index.ts",
2923
+ "path": "src/accordion/index.ts",
2924
2924
  "declarations": [],
2925
2925
  "exports": [
2926
2926
  {
@@ -2928,7 +2928,7 @@
2928
2928
  "name": "*",
2929
2929
  "declaration": {
2930
2930
  "name": "*",
2931
- "package": "./anchor.template"
2931
+ "package": "./accordion.template"
2932
2932
  }
2933
2933
  },
2934
2934
  {
@@ -2936,7 +2936,7 @@
2936
2936
  "name": "*",
2937
2937
  "declaration": {
2938
2938
  "name": "*",
2939
- "package": "./anchor.styles"
2939
+ "package": "./accordion.styles"
2940
2940
  }
2941
2941
  },
2942
2942
  {
@@ -2944,7 +2944,7 @@
2944
2944
  "name": "*",
2945
2945
  "declaration": {
2946
2946
  "name": "*",
2947
- "package": "./anchor"
2947
+ "package": "./accordion"
2948
2948
  }
2949
2949
  }
2950
2950
  ]
@@ -14711,6 +14711,22 @@
14711
14711
  "default": "200",
14712
14712
  "description": "Minimum height for the dialog"
14713
14713
  },
14714
+ {
14715
+ "kind": "field",
14716
+ "name": "initialWidth",
14717
+ "type": {
14718
+ "text": "number | undefined"
14719
+ },
14720
+ "description": "Initial width for the dialog (cannot exceed viewport width)"
14721
+ },
14722
+ {
14723
+ "kind": "field",
14724
+ "name": "initialHeight",
14725
+ "type": {
14726
+ "text": "number | undefined"
14727
+ },
14728
+ "description": "Initial height for the dialog (cannot exceed viewport height)"
14729
+ },
14714
14730
  {
14715
14731
  "kind": "field",
14716
14732
  "name": "onShowCallback",
@@ -15198,6 +15214,22 @@
15198
15214
  "module": "src/dialog/dialog.ts"
15199
15215
  },
15200
15216
  "fieldName": "minHeight"
15217
+ },
15218
+ {
15219
+ "name": "initial-width",
15220
+ "type": {
15221
+ "text": "number | undefined"
15222
+ },
15223
+ "description": "Initial width for the dialog (cannot exceed viewport width)",
15224
+ "fieldName": "initialWidth"
15225
+ },
15226
+ {
15227
+ "name": "initial-height",
15228
+ "type": {
15229
+ "text": "number | undefined"
15230
+ },
15231
+ "description": "Initial height for the dialog (cannot exceed viewport height)",
15232
+ "fieldName": "initialHeight"
15201
15233
  }
15202
15234
  ],
15203
15235
  "superclass": {
@@ -15353,6 +15385,30 @@
15353
15385
  "module": "src/dialog/dialog.ts"
15354
15386
  }
15355
15387
  },
15388
+ {
15389
+ "kind": "field",
15390
+ "name": "initialWidth",
15391
+ "type": {
15392
+ "text": "number | undefined"
15393
+ },
15394
+ "description": "Initial width for the dialog (cannot exceed viewport width)",
15395
+ "inheritedFrom": {
15396
+ "name": "<local>_DialogElement",
15397
+ "module": "src/dialog/dialog.ts"
15398
+ }
15399
+ },
15400
+ {
15401
+ "kind": "field",
15402
+ "name": "initialHeight",
15403
+ "type": {
15404
+ "text": "number | undefined"
15405
+ },
15406
+ "description": "Initial height for the dialog (cannot exceed viewport height)",
15407
+ "inheritedFrom": {
15408
+ "name": "<local>_DialogElement",
15409
+ "module": "src/dialog/dialog.ts"
15410
+ }
15411
+ },
15356
15412
  {
15357
15413
  "kind": "field",
15358
15414
  "name": "onShowCallback",
@@ -15992,6 +16048,30 @@
15992
16048
  "name": "<local>_DialogElement",
15993
16049
  "module": "src/dialog/dialog.ts"
15994
16050
  }
16051
+ },
16052
+ {
16053
+ "name": "initial-width",
16054
+ "type": {
16055
+ "text": "number | undefined"
16056
+ },
16057
+ "description": "Initial width for the dialog (cannot exceed viewport width)",
16058
+ "fieldName": "initialWidth",
16059
+ "inheritedFrom": {
16060
+ "name": "<local>_DialogElement",
16061
+ "module": "src/dialog/dialog.ts"
16062
+ }
16063
+ },
16064
+ {
16065
+ "name": "initial-height",
16066
+ "type": {
16067
+ "text": "number | undefined"
16068
+ },
16069
+ "description": "Initial height for the dialog (cannot exceed viewport height)",
16070
+ "fieldName": "initialHeight",
16071
+ "inheritedFrom": {
16072
+ "name": "<local>_DialogElement",
16073
+ "module": "src/dialog/dialog.ts"
16074
+ }
15995
16075
  }
15996
16076
  ]
15997
16077
  },
@@ -27991,6 +28071,30 @@
27991
28071
  "module": "src/dialog/dialog.ts"
27992
28072
  }
27993
28073
  },
28074
+ {
28075
+ "kind": "field",
28076
+ "name": "initialWidth",
28077
+ "type": {
28078
+ "text": "number | undefined"
28079
+ },
28080
+ "description": "Initial width for the dialog (cannot exceed viewport width)",
28081
+ "inheritedFrom": {
28082
+ "name": "<local>_DialogElement",
28083
+ "module": "src/dialog/dialog.ts"
28084
+ }
28085
+ },
28086
+ {
28087
+ "kind": "field",
28088
+ "name": "initialHeight",
28089
+ "type": {
28090
+ "text": "number | undefined"
28091
+ },
28092
+ "description": "Initial height for the dialog (cannot exceed viewport height)",
28093
+ "inheritedFrom": {
28094
+ "name": "<local>_DialogElement",
28095
+ "module": "src/dialog/dialog.ts"
28096
+ }
28097
+ },
27994
28098
  {
27995
28099
  "kind": "field",
27996
28100
  "name": "onShowCallback",
@@ -28619,6 +28723,30 @@
28619
28723
  "name": "<local>_DialogElement",
28620
28724
  "module": "src/dialog/dialog.ts"
28621
28725
  }
28726
+ },
28727
+ {
28728
+ "name": "initial-width",
28729
+ "type": {
28730
+ "text": "number | undefined"
28731
+ },
28732
+ "description": "Initial width for the dialog (cannot exceed viewport width)",
28733
+ "fieldName": "initialWidth",
28734
+ "inheritedFrom": {
28735
+ "name": "<local>_DialogElement",
28736
+ "module": "src/dialog/dialog.ts"
28737
+ }
28738
+ },
28739
+ {
28740
+ "name": "initial-height",
28741
+ "type": {
28742
+ "text": "number | undefined"
28743
+ },
28744
+ "description": "Initial height for the dialog (cannot exceed viewport height)",
28745
+ "fieldName": "initialHeight",
28746
+ "inheritedFrom": {
28747
+ "name": "<local>_DialogElement",
28748
+ "module": "src/dialog/dialog.ts"
28749
+ }
28622
28750
  }
28623
28751
  ],
28624
28752
  "superclass": {
@@ -31,6 +31,14 @@ export declare abstract class DialogElement extends FoundationElement {
31
31
  * Minimum height for the dialog
32
32
  */
33
33
  minHeight: number;
34
+ /**
35
+ * Initial width for the dialog (cannot exceed viewport width)
36
+ */
37
+ initialWidth?: number;
38
+ /**
39
+ * Initial height for the dialog (cannot exceed viewport height)
40
+ */
41
+ initialHeight?: number;
34
42
  /**
35
43
  * Callback to run *before* HTMLDialogElement is shown
36
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,O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AAC,eAAe;IA8BvB;;OAEG;IACH,IACI,IAAI,IAAI,OAAO,CAElB;IAED;;OAEG;IACH,IACI,cAAc,IAAI,MAAM,CAE3B;IAED;;OAEG;IACH,QAAQ,CAAC,IAAI,IAAI,IAAI;IAErB;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACI,OAAO;IAOd;;OAEG;IACI,WAAW,IAAI,IAAI;IAS1B;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAoBhB;;;OAGG;IACI,SAAS,IAAI,IAAI;CAyBzB;AAED;;GAEG;AACH,qBAAa,MAAO,SAAQ,aAAa;IACvC,IAAI,IAAI,IAAI;CAIb;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAM3B,CAAC"}
@@ -86,16 +86,32 @@ export class DialogElement extends FoundationElement {
86
86
  setupResizeHandlers() {
87
87
  if (!this.resizable)
88
88
  return;
89
+ // Get viewport dimensions
90
+ const viewportWidth = window.innerWidth;
91
+ const viewportHeight = window.innerHeight;
92
+ // Calculate effective initial dimensions, ensuring they don't exceed viewport
93
+ // and are at least the minimum values
94
+ let effectiveWidth = this.minWidth;
95
+ let effectiveHeight = this.minHeight;
96
+ if (this.initialWidth !== undefined) {
97
+ // Ensure initial width doesn't exceed viewport width and is at least minWidth
98
+ effectiveWidth = Math.max(this.minWidth, Math.min(this.initialWidth, viewportWidth));
99
+ }
100
+ if (this.initialHeight !== undefined) {
101
+ // Ensure initial height doesn't exceed viewport height and is at least minHeight
102
+ effectiveHeight = Math.max(this.minHeight, Math.min(this.initialHeight, viewportHeight));
103
+ }
89
104
  // Store original dimensions and position for reset
90
- this.originalWidth = this.mainElement.style.width || `${this.minWidth}px`;
91
- this.originalHeight = this.mainElement.style.height || `${this.minHeight}px`;
105
+ this.originalWidth = this.mainElement.style.width || `${effectiveWidth}px`;
106
+ this.originalHeight = this.mainElement.style.height || `${effectiveHeight}px`;
92
107
  this.originalPosition = this.mainElement.style.position || '';
93
108
  this.originalLeft = this.mainElement.style.left || '';
94
109
  this.originalTop = this.mainElement.style.top || '';
95
110
  this.originalMargin = this.mainElement.style.margin || '';
96
- this.mainElement.style.height = `${this.minHeight}px`;
111
+ // Set the dialog dimensions
112
+ this.mainElement.style.height = `${effectiveHeight}px`;
97
113
  this.mainElement.style.minHeight = `${this.minHeight}px`;
98
- this.mainElement.style.width = `${this.minWidth}px`;
114
+ this.mainElement.style.width = `${effectiveWidth}px`;
99
115
  this.mainElement.style.minWidth = `${this.minWidth}px`;
100
116
  // Update original values after setting initial size
101
117
  this.originalWidth = this.mainElement.style.width;
@@ -478,6 +494,12 @@ __decorate([
478
494
  __decorate([
479
495
  attr({ attribute: 'min-height' })
480
496
  ], DialogElement.prototype, "minHeight", void 0);
497
+ __decorate([
498
+ attr({ attribute: 'initial-width' })
499
+ ], DialogElement.prototype, "initialWidth", void 0);
500
+ __decorate([
501
+ attr({ attribute: 'initial-height' })
502
+ ], DialogElement.prototype, "initialHeight", void 0);
481
503
  __decorate([
482
504
  observable
483
505
  ], DialogElement.prototype, "onShowCallback", void 0);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "14.348.0",
4
+ "version": "14.350.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -83,13 +83,13 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@genesislcap/foundation-testing": "14.348.0",
87
- "@genesislcap/genx": "14.348.0",
88
- "@genesislcap/rollup-builder": "14.348.0",
89
- "@genesislcap/ts-builder": "14.348.0",
90
- "@genesislcap/uvu-playwright-builder": "14.348.0",
91
- "@genesislcap/vite-builder": "14.348.0",
92
- "@genesislcap/webpack-builder": "14.348.0",
86
+ "@genesislcap/foundation-testing": "14.350.0",
87
+ "@genesislcap/genx": "14.350.0",
88
+ "@genesislcap/rollup-builder": "14.350.0",
89
+ "@genesislcap/ts-builder": "14.350.0",
90
+ "@genesislcap/uvu-playwright-builder": "14.350.0",
91
+ "@genesislcap/vite-builder": "14.350.0",
92
+ "@genesislcap/webpack-builder": "14.350.0",
93
93
  "copyfiles": "^2.4.1"
94
94
  },
95
95
  "dependencies": {
@@ -98,15 +98,15 @@
98
98
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
99
99
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
100
100
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
101
- "@genesislcap/expression-builder": "14.348.0",
102
- "@genesislcap/foundation-comms": "14.348.0",
103
- "@genesislcap/foundation-criteria": "14.348.0",
104
- "@genesislcap/foundation-errors": "14.348.0",
105
- "@genesislcap/foundation-events": "14.348.0",
106
- "@genesislcap/foundation-logger": "14.348.0",
107
- "@genesislcap/foundation-notifications": "14.348.0",
108
- "@genesislcap/foundation-user": "14.348.0",
109
- "@genesislcap/foundation-utils": "14.348.0",
101
+ "@genesislcap/expression-builder": "14.350.0",
102
+ "@genesislcap/foundation-comms": "14.350.0",
103
+ "@genesislcap/foundation-criteria": "14.350.0",
104
+ "@genesislcap/foundation-errors": "14.350.0",
105
+ "@genesislcap/foundation-events": "14.350.0",
106
+ "@genesislcap/foundation-logger": "14.350.0",
107
+ "@genesislcap/foundation-notifications": "14.350.0",
108
+ "@genesislcap/foundation-user": "14.350.0",
109
+ "@genesislcap/foundation-utils": "14.350.0",
110
110
  "@microsoft/fast-colors": "5.3.1",
111
111
  "@microsoft/fast-components": "2.30.6",
112
112
  "@microsoft/fast-element": "1.14.0",
@@ -128,5 +128,5 @@
128
128
  "access": "public"
129
129
  },
130
130
  "customElements": "dist/custom-elements.json",
131
- "gitHead": "997e110176c9ff1b3b73878ab22253e11e9996ff"
131
+ "gitHead": "05fedd71c2a7c59afda883176be0789dc146649f"
132
132
  }