@genesislcap/foundation-ui 14.347.0 → 14.348.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.
@@ -1657,6 +1657,219 @@
1657
1657
  }
1658
1658
  ]
1659
1659
  },
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
+ },
1660
1873
  {
1661
1874
  "kind": "javascript-module",
1662
1875
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -4326,219 +4539,6 @@
4326
4539
  }
4327
4540
  ]
4328
4541
  },
4329
- {
4330
- "kind": "javascript-module",
4331
- "path": "src/_config/index.ts",
4332
- "declarations": [],
4333
- "exports": [
4334
- {
4335
- "kind": "js",
4336
- "name": "*",
4337
- "declaration": {
4338
- "name": "*",
4339
- "package": "./styles"
4340
- }
4341
- },
4342
- {
4343
- "kind": "js",
4344
- "name": "*",
4345
- "declaration": {
4346
- "name": "*",
4347
- "package": "./tokens"
4348
- }
4349
- },
4350
- {
4351
- "kind": "js",
4352
- "name": "*",
4353
- "declaration": {
4354
- "name": "*",
4355
- "package": "./values"
4356
- }
4357
- }
4358
- ]
4359
- },
4360
- {
4361
- "kind": "javascript-module",
4362
- "path": "src/accordion/accordion.styles.ts",
4363
- "declarations": [
4364
- {
4365
- "kind": "function",
4366
- "name": "foundationAccordionStyles",
4367
- "return": {
4368
- "type": {
4369
- "text": "ElementStyles"
4370
- }
4371
- },
4372
- "parameters": [
4373
- {
4374
- "name": "context",
4375
- "type": {
4376
- "text": "ElementDefinitionContext"
4377
- }
4378
- },
4379
- {
4380
- "name": "definition",
4381
- "type": {
4382
- "text": "FoundationElementDefinition"
4383
- }
4384
- }
4385
- ]
4386
- }
4387
- ],
4388
- "exports": [
4389
- {
4390
- "kind": "js",
4391
- "name": "foundationAccordionStyles",
4392
- "declaration": {
4393
- "name": "foundationAccordionStyles",
4394
- "module": "src/accordion/accordion.styles.ts"
4395
- }
4396
- }
4397
- ]
4398
- },
4399
- {
4400
- "kind": "javascript-module",
4401
- "path": "src/accordion/accordion.template.ts",
4402
- "declarations": [
4403
- {
4404
- "kind": "function",
4405
- "name": "foundationAccordionTemplate",
4406
- "return": {
4407
- "type": {
4408
- "text": "ViewTemplate<Accordion>"
4409
- }
4410
- },
4411
- "parameters": [
4412
- {
4413
- "name": "context",
4414
- "type": {
4415
- "text": "ElementDefinitionContext"
4416
- }
4417
- },
4418
- {
4419
- "name": "definition",
4420
- "type": {
4421
- "text": "FoundationElementDefinition"
4422
- }
4423
- }
4424
- ]
4425
- }
4426
- ],
4427
- "exports": [
4428
- {
4429
- "kind": "js",
4430
- "name": "foundationAccordionTemplate",
4431
- "declaration": {
4432
- "name": "foundationAccordionTemplate",
4433
- "module": "src/accordion/accordion.template.ts"
4434
- }
4435
- }
4436
- ]
4437
- },
4438
- {
4439
- "kind": "javascript-module",
4440
- "path": "src/accordion/accordion.ts",
4441
- "declarations": [
4442
- {
4443
- "kind": "class",
4444
- "description": "",
4445
- "name": "Accordion",
4446
- "superclass": {
4447
- "name": "FASTAccordion",
4448
- "package": "@microsoft/fast-foundation"
4449
- },
4450
- "tagName": "%%prefix%%-accordion",
4451
- "customElement": true
4452
- },
4453
- {
4454
- "kind": "variable",
4455
- "name": "foundationAccordionShadowOptions",
4456
- "type": {
4457
- "text": "ShadowRootInit"
4458
- },
4459
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
4460
- },
4461
- {
4462
- "kind": "variable",
4463
- "name": "defaultAccordionConfig",
4464
- "type": {
4465
- "text": "object"
4466
- },
4467
- "default": "{}"
4468
- },
4469
- {
4470
- "kind": "variable",
4471
- "name": "foundationAccordion",
4472
- "description": "The Foundation Accordion",
4473
- "privacy": "public"
4474
- }
4475
- ],
4476
- "exports": [
4477
- {
4478
- "kind": "js",
4479
- "name": "Accordion",
4480
- "declaration": {
4481
- "name": "Accordion",
4482
- "module": "src/accordion/accordion.ts"
4483
- }
4484
- },
4485
- {
4486
- "kind": "js",
4487
- "name": "foundationAccordionShadowOptions",
4488
- "declaration": {
4489
- "name": "foundationAccordionShadowOptions",
4490
- "module": "src/accordion/accordion.ts"
4491
- }
4492
- },
4493
- {
4494
- "kind": "js",
4495
- "name": "defaultAccordionConfig",
4496
- "declaration": {
4497
- "name": "defaultAccordionConfig",
4498
- "module": "src/accordion/accordion.ts"
4499
- }
4500
- },
4501
- {
4502
- "kind": "js",
4503
- "name": "foundationAccordion",
4504
- "declaration": {
4505
- "name": "foundationAccordion",
4506
- "module": "src/accordion/accordion.ts"
4507
- }
4508
- }
4509
- ]
4510
- },
4511
- {
4512
- "kind": "javascript-module",
4513
- "path": "src/accordion/index.ts",
4514
- "declarations": [],
4515
- "exports": [
4516
- {
4517
- "kind": "js",
4518
- "name": "*",
4519
- "declaration": {
4520
- "name": "*",
4521
- "package": "./accordion.template"
4522
- }
4523
- },
4524
- {
4525
- "kind": "js",
4526
- "name": "*",
4527
- "declaration": {
4528
- "name": "*",
4529
- "package": "./accordion.styles"
4530
- }
4531
- },
4532
- {
4533
- "kind": "js",
4534
- "name": "*",
4535
- "declaration": {
4536
- "name": "*",
4537
- "package": "./accordion"
4538
- }
4539
- }
4540
- ]
4541
- },
4542
4542
  {
4543
4543
  "kind": "javascript-module",
4544
4544
  "path": "src/avatar/avatar.styles.ts",
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.template.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,gEAiF/C,CAAC;AAEF,eAAO,MAAM,wBAAwB,6DAEpC,CAAC"}
1
+ {"version":3,"file":"dialog.template.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAevC,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,gEA4E/C,CAAC;AAEF,eAAO,MAAM,wBAAwB,6DAEpC,CAAC"}
@@ -1,5 +1,15 @@
1
+ import { whenElse } from '@genesislcap/foundation-utils';
1
2
  import { html, ref, repeat, when } from '@microsoft/fast-element';
2
3
  import { getPrefix } from '../utils';
4
+ const contentAndPlaceholer = html `
5
+ <slot>
6
+ ${when((x) => x.notification, html `
7
+ <div class="details">
8
+ ${(x) => { var _a; return ((_a = x.notification) === null || _a === void 0 ? void 0 : _a.body) || 'Place holder for notification message'; }}
9
+ </div>
10
+ `)}
11
+ </slot>
12
+ `;
3
13
  export const getDialogTemplate = (prefix) => html `
4
14
  <dialog ${ref('mainElement')} part="dialog" type=${(x) => x.type}>
5
15
  <div class="content-wrapper" part="content">
@@ -20,15 +30,9 @@ export const getDialogTemplate = (prefix) => html `
20
30
  `)}
21
31
  </div>
22
32
  </div>
23
- <div class="content-container" part="content-container">
24
- <slot>
25
- ${when((x) => x.notification, html `
26
- <div class="details">
27
- ${(x) => { var _a; return ((_a = x.notification) === null || _a === void 0 ? void 0 : _a.body) || 'Place holder for notification message'; }}
28
- </div>
29
- `)}
30
- </slot>
31
- </div>
33
+ ${whenElse((x) => x.resizable, html `
34
+ <div class="content-container" part="content-container">${contentAndPlaceholer}</div>
35
+ `, contentAndPlaceholer)}
32
36
  <div part="bottom" class="bottom">
33
37
  <slot name="bottom">
34
38
  ${when((x) => x.notification, html `
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.347.0",
4
+ "version": "14.348.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.347.0",
87
- "@genesislcap/genx": "14.347.0",
88
- "@genesislcap/rollup-builder": "14.347.0",
89
- "@genesislcap/ts-builder": "14.347.0",
90
- "@genesislcap/uvu-playwright-builder": "14.347.0",
91
- "@genesislcap/vite-builder": "14.347.0",
92
- "@genesislcap/webpack-builder": "14.347.0",
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",
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.347.0",
102
- "@genesislcap/foundation-comms": "14.347.0",
103
- "@genesislcap/foundation-criteria": "14.347.0",
104
- "@genesislcap/foundation-errors": "14.347.0",
105
- "@genesislcap/foundation-events": "14.347.0",
106
- "@genesislcap/foundation-logger": "14.347.0",
107
- "@genesislcap/foundation-notifications": "14.347.0",
108
- "@genesislcap/foundation-user": "14.347.0",
109
- "@genesislcap/foundation-utils": "14.347.0",
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",
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": "1867b0173e7ffe32db40d75b1cfb19bb81e8edca"
131
+ "gitHead": "997e110176c9ff1b3b73878ab22253e11e9996ff"
132
132
  }