@genesislcap/foundation-ui 14.285.0 → 14.285.2-alpha-a57a535.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.
Files changed (26) hide show
  1. package/dist/custom-elements.json +793 -260
  2. package/dist/dts/base-components.d.ts +4 -6
  3. package/dist/dts/base-components.d.ts.map +1 -1
  4. package/dist/dts/environment-indicator/environment-indicator.d.ts +117 -0
  5. package/dist/dts/environment-indicator/environment-indicator.d.ts.map +1 -0
  6. package/dist/dts/environment-indicator/environment-indicator.styles.d.ts +2 -0
  7. package/dist/dts/environment-indicator/environment-indicator.styles.d.ts.map +1 -0
  8. package/dist/dts/environment-indicator/environment-indicator.template.d.ts +3 -0
  9. package/dist/dts/environment-indicator/environment-indicator.template.d.ts.map +1 -0
  10. package/dist/dts/environment-indicator/index.d.ts +5 -0
  11. package/dist/dts/environment-indicator/index.d.ts.map +1 -0
  12. package/dist/dts/environment-indicator/utils/configure.d.ts +3 -0
  13. package/dist/dts/environment-indicator/utils/configure.d.ts.map +1 -0
  14. package/dist/dts/environment-indicator/utils/logger.d.ts +2 -0
  15. package/dist/dts/environment-indicator/utils/logger.d.ts.map +1 -0
  16. package/dist/dts/index.d.ts +1 -0
  17. package/dist/dts/index.d.ts.map +1 -1
  18. package/dist/esm/base-components.js +2 -2
  19. package/dist/esm/environment-indicator/environment-indicator.js +197 -0
  20. package/dist/esm/environment-indicator/environment-indicator.styles.js +29 -0
  21. package/dist/esm/environment-indicator/environment-indicator.template.js +28 -0
  22. package/dist/esm/environment-indicator/index.js +4 -0
  23. package/dist/esm/environment-indicator/utils/configure.js +10 -0
  24. package/dist/esm/environment-indicator/utils/logger.js +2 -0
  25. package/dist/esm/index.js +1 -0
  26. package/package.json +18 -18
@@ -12,7 +12,7 @@
12
12
  "type": {
13
13
  "text": "object"
14
14
  },
15
- "default": "{\n foundationAccordion,\n foundationAccordionItem,\n foundationActionsMenu,\n foundationAnchor,\n foundationAnchoredRegion,\n foundationAvatar,\n foundationBadge,\n foundationBanner,\n foundationBreadcrumb,\n foundationBreadcrumbItem,\n foundationButton,\n foundationCalendar,\n foundationCard,\n foundationCategorizedMultiselect,\n foundationCheckbox,\n foundationCombobox,\n foundationConnectionIndicator,\n foundationDataGrid,\n foundationDataGridCell,\n foundationDataGridRow,\n foundationDatePicker,\n foundationDesignSystemProvider,\n foundationDialog,\n foundationDisclosure,\n foundationDivider,\n foundationDropdownMenu,\n foundationErrorBanner,\n foundationErrorBoundary,\n foundationErrorDialog,\n foundationFileReader,\n foundationFileUpload,\n foundationFilter,\n foundationFilterBar,\n foundationFlexLayout,\n foundationFlipper,\n foundationFlyout,\n foundationGridLayout,\n foundationGridLayoutItem,\n foundationHorizontalScroll,\n foundationIcon,\n foundationListbox,\n foundationListboxOption,\n foundationMenu,\n foundationMenuItem,\n foundationModal,\n foundationMultiselect,\n foundationNumberField,\n foundationPopper,\n foundationProgress,\n foundationProgressRing,\n foundationRadio,\n foundationRadioGroup,\n foundationScheduler,\n foundationSchedulerCronBuilder,\n foundationSchedulerTimezone,\n foundationSearchBar,\n foundationSearchBarCombobox,\n foundationSegmentedControl,\n foundationSegmentedItem,\n foundationSelect,\n foundationSkeleton,\n foundationSlider,\n foundationSliderLabel,\n foundationSnackbar,\n foundationStackingIcons,\n foundationStatusPill,\n foundationStepper,\n foundationStepperTab,\n foundationStepperTabPanel,\n foundationSwitch,\n foundationSystemHealthOverlay,\n foundationTab,\n foundationTabPanel,\n foundationTabs,\n foundationTextArea,\n foundationTextField,\n foundationToast,\n foundationToolbar,\n foundationTooltip,\n foundationTreeItem,\n foundationTreeView,\n foundationUrlInput,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n this[key]().register(container, ...rest);\n }\n },\n}"
15
+ "default": "{\n foundationAccordion,\n foundationAccordionItem,\n foundationActionsMenu,\n foundationAnchor,\n foundationAnchoredRegion,\n foundationAvatar,\n foundationBadge,\n foundationBanner,\n foundationBreadcrumb,\n foundationBreadcrumbItem,\n foundationButton,\n foundationCalendar,\n foundationCard,\n foundationCategorizedMultiselect,\n foundationCheckbox,\n foundationCombobox,\n foundationConnectionIndicator,\n foundationDataGrid,\n foundationDataGridCell,\n foundationDataGridRow,\n foundationDatePicker,\n foundationDesignSystemProvider,\n foundationDialog,\n foundationDisclosure,\n foundationDivider,\n foundationDropdownMenu,\n foundationErrorBanner,\n foundationErrorBoundary,\n foundationErrorDialog,\n foundationFileReader,\n foundationFileUpload,\n foundationFilter,\n foundationFilterBar,\n foundationFlexLayout,\n foundationFlipper,\n foundationFlyout,\n foundationGridLayout,\n foundationGridLayoutItem,\n foundationHorizontalScroll,\n foundationIcon,\n foundationListbox,\n foundationListboxOption,\n foundationMenu,\n foundationMenuItem,\n foundationModal,\n foundationMultiselect,\n foundationNumberField,\n foundationPopper,\n foundationProgress,\n foundationProgressRing,\n foundationRadio,\n foundationRadioGroup,\n foundationScheduler,\n foundationSchedulerCronBuilder,\n foundationSchedulerTimezone,\n foundationSearchBar,\n foundationSearchBarCombobox,\n foundationSegmentedControl,\n foundationSegmentedItem,\n foundationSelect,\n foundationSkeleton,\n foundationSlider,\n foundationSliderLabel,\n foundationSnackbar,\n foundationStackingIcons,\n foundationStatusPill,\n foundationEnvironmentIndicator,\n foundationStepperTab,\n foundationStepperTabPanel,\n foundationSwitch,\n foundationSystemHealthOverlay,\n foundationTab,\n foundationTabPanel,\n foundationTabs,\n foundationTextArea,\n foundationTextField,\n foundationToast,\n foundationToolbar,\n foundationTooltip,\n foundationTreeItem,\n foundationTreeView,\n foundationUrlInput,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n this[key]().register(container, ...rest);\n }\n },\n}"
16
16
  }
17
17
  ],
18
18
  "exports": [
@@ -308,6 +308,14 @@
308
308
  "package": "./dropdown-menu"
309
309
  }
310
310
  },
311
+ {
312
+ "kind": "js",
313
+ "name": "*",
314
+ "declaration": {
315
+ "name": "*",
316
+ "package": "./environment-indicator"
317
+ }
318
+ },
311
319
  {
312
320
  "kind": "js",
313
321
  "name": "*",
@@ -1247,6 +1255,37 @@
1247
1255
  }
1248
1256
  ]
1249
1257
  },
1258
+ {
1259
+ "kind": "javascript-module",
1260
+ "path": "src/_config/index.ts",
1261
+ "declarations": [],
1262
+ "exports": [
1263
+ {
1264
+ "kind": "js",
1265
+ "name": "*",
1266
+ "declaration": {
1267
+ "name": "*",
1268
+ "package": "./styles"
1269
+ }
1270
+ },
1271
+ {
1272
+ "kind": "js",
1273
+ "name": "*",
1274
+ "declaration": {
1275
+ "name": "*",
1276
+ "package": "./tokens"
1277
+ }
1278
+ },
1279
+ {
1280
+ "kind": "js",
1281
+ "name": "*",
1282
+ "declaration": {
1283
+ "name": "*",
1284
+ "package": "./values"
1285
+ }
1286
+ }
1287
+ ]
1288
+ },
1250
1289
  {
1251
1290
  "kind": "javascript-module",
1252
1291
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1641,6 +1680,188 @@
1641
1680
  }
1642
1681
  ]
1643
1682
  },
1683
+ {
1684
+ "kind": "javascript-module",
1685
+ "path": "src/accordion/accordion.styles.ts",
1686
+ "declarations": [
1687
+ {
1688
+ "kind": "function",
1689
+ "name": "foundationAccordionStyles",
1690
+ "return": {
1691
+ "type": {
1692
+ "text": "ElementStyles"
1693
+ }
1694
+ },
1695
+ "parameters": [
1696
+ {
1697
+ "name": "context",
1698
+ "type": {
1699
+ "text": "ElementDefinitionContext"
1700
+ }
1701
+ },
1702
+ {
1703
+ "name": "definition",
1704
+ "type": {
1705
+ "text": "FoundationElementDefinition"
1706
+ }
1707
+ }
1708
+ ]
1709
+ }
1710
+ ],
1711
+ "exports": [
1712
+ {
1713
+ "kind": "js",
1714
+ "name": "foundationAccordionStyles",
1715
+ "declaration": {
1716
+ "name": "foundationAccordionStyles",
1717
+ "module": "src/accordion/accordion.styles.ts"
1718
+ }
1719
+ }
1720
+ ]
1721
+ },
1722
+ {
1723
+ "kind": "javascript-module",
1724
+ "path": "src/accordion/accordion.template.ts",
1725
+ "declarations": [
1726
+ {
1727
+ "kind": "function",
1728
+ "name": "foundationAccordionTemplate",
1729
+ "return": {
1730
+ "type": {
1731
+ "text": "ViewTemplate<Accordion>"
1732
+ }
1733
+ },
1734
+ "parameters": [
1735
+ {
1736
+ "name": "context",
1737
+ "type": {
1738
+ "text": "ElementDefinitionContext"
1739
+ }
1740
+ },
1741
+ {
1742
+ "name": "definition",
1743
+ "type": {
1744
+ "text": "FoundationElementDefinition"
1745
+ }
1746
+ }
1747
+ ]
1748
+ }
1749
+ ],
1750
+ "exports": [
1751
+ {
1752
+ "kind": "js",
1753
+ "name": "foundationAccordionTemplate",
1754
+ "declaration": {
1755
+ "name": "foundationAccordionTemplate",
1756
+ "module": "src/accordion/accordion.template.ts"
1757
+ }
1758
+ }
1759
+ ]
1760
+ },
1761
+ {
1762
+ "kind": "javascript-module",
1763
+ "path": "src/accordion/accordion.ts",
1764
+ "declarations": [
1765
+ {
1766
+ "kind": "class",
1767
+ "description": "",
1768
+ "name": "Accordion",
1769
+ "superclass": {
1770
+ "name": "FASTAccordion",
1771
+ "package": "@microsoft/fast-foundation"
1772
+ },
1773
+ "tagName": "%%prefix%%-accordion",
1774
+ "customElement": true
1775
+ },
1776
+ {
1777
+ "kind": "variable",
1778
+ "name": "foundationAccordionShadowOptions",
1779
+ "type": {
1780
+ "text": "ShadowRootInit"
1781
+ },
1782
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1783
+ },
1784
+ {
1785
+ "kind": "variable",
1786
+ "name": "defaultAccordionConfig",
1787
+ "type": {
1788
+ "text": "object"
1789
+ },
1790
+ "default": "{}"
1791
+ },
1792
+ {
1793
+ "kind": "variable",
1794
+ "name": "foundationAccordion",
1795
+ "description": "The Foundation Accordion",
1796
+ "privacy": "public"
1797
+ }
1798
+ ],
1799
+ "exports": [
1800
+ {
1801
+ "kind": "js",
1802
+ "name": "Accordion",
1803
+ "declaration": {
1804
+ "name": "Accordion",
1805
+ "module": "src/accordion/accordion.ts"
1806
+ }
1807
+ },
1808
+ {
1809
+ "kind": "js",
1810
+ "name": "foundationAccordionShadowOptions",
1811
+ "declaration": {
1812
+ "name": "foundationAccordionShadowOptions",
1813
+ "module": "src/accordion/accordion.ts"
1814
+ }
1815
+ },
1816
+ {
1817
+ "kind": "js",
1818
+ "name": "defaultAccordionConfig",
1819
+ "declaration": {
1820
+ "name": "defaultAccordionConfig",
1821
+ "module": "src/accordion/accordion.ts"
1822
+ }
1823
+ },
1824
+ {
1825
+ "kind": "js",
1826
+ "name": "foundationAccordion",
1827
+ "declaration": {
1828
+ "name": "foundationAccordion",
1829
+ "module": "src/accordion/accordion.ts"
1830
+ }
1831
+ }
1832
+ ]
1833
+ },
1834
+ {
1835
+ "kind": "javascript-module",
1836
+ "path": "src/accordion/index.ts",
1837
+ "declarations": [],
1838
+ "exports": [
1839
+ {
1840
+ "kind": "js",
1841
+ "name": "*",
1842
+ "declaration": {
1843
+ "name": "*",
1844
+ "package": "./accordion.template"
1845
+ }
1846
+ },
1847
+ {
1848
+ "kind": "js",
1849
+ "name": "*",
1850
+ "declaration": {
1851
+ "name": "*",
1852
+ "package": "./accordion.styles"
1853
+ }
1854
+ },
1855
+ {
1856
+ "kind": "js",
1857
+ "name": "*",
1858
+ "declaration": {
1859
+ "name": "*",
1860
+ "package": "./accordion"
1861
+ }
1862
+ }
1863
+ ]
1864
+ },
1644
1865
  {
1645
1866
  "kind": "javascript-module",
1646
1867
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -2202,42 +2423,11 @@
2202
2423
  },
2203
2424
  {
2204
2425
  "kind": "javascript-module",
2205
- "path": "src/_config/index.ts",
2206
- "declarations": [],
2207
- "exports": [
2208
- {
2209
- "kind": "js",
2210
- "name": "*",
2211
- "declaration": {
2212
- "name": "*",
2213
- "package": "./styles"
2214
- }
2215
- },
2216
- {
2217
- "kind": "js",
2218
- "name": "*",
2219
- "declaration": {
2220
- "name": "*",
2221
- "package": "./tokens"
2222
- }
2223
- },
2224
- {
2225
- "kind": "js",
2226
- "name": "*",
2227
- "declaration": {
2228
- "name": "*",
2229
- "package": "./values"
2230
- }
2231
- }
2232
- ]
2233
- },
2234
- {
2235
- "kind": "javascript-module",
2236
- "path": "src/accordion/accordion.styles.ts",
2426
+ "path": "src/anchor/anchor.styles.ts",
2237
2427
  "declarations": [
2238
2428
  {
2239
2429
  "kind": "function",
2240
- "name": "foundationAccordionStyles",
2430
+ "name": "foundationAnchorStyles",
2241
2431
  "return": {
2242
2432
  "type": {
2243
2433
  "text": "ElementStyles"
@@ -2262,206 +2452,24 @@
2262
2452
  "exports": [
2263
2453
  {
2264
2454
  "kind": "js",
2265
- "name": "foundationAccordionStyles",
2455
+ "name": "foundationAnchorStyles",
2266
2456
  "declaration": {
2267
- "name": "foundationAccordionStyles",
2268
- "module": "src/accordion/accordion.styles.ts"
2457
+ "name": "foundationAnchorStyles",
2458
+ "module": "src/anchor/anchor.styles.ts"
2269
2459
  }
2270
2460
  }
2271
2461
  ]
2272
2462
  },
2273
2463
  {
2274
2464
  "kind": "javascript-module",
2275
- "path": "src/accordion/accordion.template.ts",
2465
+ "path": "src/anchor/anchor.template.ts",
2276
2466
  "declarations": [
2277
2467
  {
2278
2468
  "kind": "function",
2279
- "name": "foundationAccordionTemplate",
2469
+ "name": "foundationAnchorTemplate",
2280
2470
  "return": {
2281
2471
  "type": {
2282
- "text": "ViewTemplate<Accordion>"
2283
- }
2284
- },
2285
- "parameters": [
2286
- {
2287
- "name": "context",
2288
- "type": {
2289
- "text": "ElementDefinitionContext"
2290
- }
2291
- },
2292
- {
2293
- "name": "definition",
2294
- "type": {
2295
- "text": "FoundationElementDefinition"
2296
- }
2297
- }
2298
- ]
2299
- }
2300
- ],
2301
- "exports": [
2302
- {
2303
- "kind": "js",
2304
- "name": "foundationAccordionTemplate",
2305
- "declaration": {
2306
- "name": "foundationAccordionTemplate",
2307
- "module": "src/accordion/accordion.template.ts"
2308
- }
2309
- }
2310
- ]
2311
- },
2312
- {
2313
- "kind": "javascript-module",
2314
- "path": "src/accordion/accordion.ts",
2315
- "declarations": [
2316
- {
2317
- "kind": "class",
2318
- "description": "",
2319
- "name": "Accordion",
2320
- "superclass": {
2321
- "name": "FASTAccordion",
2322
- "package": "@microsoft/fast-foundation"
2323
- },
2324
- "tagName": "%%prefix%%-accordion",
2325
- "customElement": true
2326
- },
2327
- {
2328
- "kind": "variable",
2329
- "name": "foundationAccordionShadowOptions",
2330
- "type": {
2331
- "text": "ShadowRootInit"
2332
- },
2333
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2334
- },
2335
- {
2336
- "kind": "variable",
2337
- "name": "defaultAccordionConfig",
2338
- "type": {
2339
- "text": "object"
2340
- },
2341
- "default": "{}"
2342
- },
2343
- {
2344
- "kind": "variable",
2345
- "name": "foundationAccordion",
2346
- "description": "The Foundation Accordion",
2347
- "privacy": "public"
2348
- }
2349
- ],
2350
- "exports": [
2351
- {
2352
- "kind": "js",
2353
- "name": "Accordion",
2354
- "declaration": {
2355
- "name": "Accordion",
2356
- "module": "src/accordion/accordion.ts"
2357
- }
2358
- },
2359
- {
2360
- "kind": "js",
2361
- "name": "foundationAccordionShadowOptions",
2362
- "declaration": {
2363
- "name": "foundationAccordionShadowOptions",
2364
- "module": "src/accordion/accordion.ts"
2365
- }
2366
- },
2367
- {
2368
- "kind": "js",
2369
- "name": "defaultAccordionConfig",
2370
- "declaration": {
2371
- "name": "defaultAccordionConfig",
2372
- "module": "src/accordion/accordion.ts"
2373
- }
2374
- },
2375
- {
2376
- "kind": "js",
2377
- "name": "foundationAccordion",
2378
- "declaration": {
2379
- "name": "foundationAccordion",
2380
- "module": "src/accordion/accordion.ts"
2381
- }
2382
- }
2383
- ]
2384
- },
2385
- {
2386
- "kind": "javascript-module",
2387
- "path": "src/accordion/index.ts",
2388
- "declarations": [],
2389
- "exports": [
2390
- {
2391
- "kind": "js",
2392
- "name": "*",
2393
- "declaration": {
2394
- "name": "*",
2395
- "package": "./accordion.template"
2396
- }
2397
- },
2398
- {
2399
- "kind": "js",
2400
- "name": "*",
2401
- "declaration": {
2402
- "name": "*",
2403
- "package": "./accordion.styles"
2404
- }
2405
- },
2406
- {
2407
- "kind": "js",
2408
- "name": "*",
2409
- "declaration": {
2410
- "name": "*",
2411
- "package": "./accordion"
2412
- }
2413
- }
2414
- ]
2415
- },
2416
- {
2417
- "kind": "javascript-module",
2418
- "path": "src/anchor/anchor.styles.ts",
2419
- "declarations": [
2420
- {
2421
- "kind": "function",
2422
- "name": "foundationAnchorStyles",
2423
- "return": {
2424
- "type": {
2425
- "text": "ElementStyles"
2426
- }
2427
- },
2428
- "parameters": [
2429
- {
2430
- "name": "context",
2431
- "type": {
2432
- "text": "ElementDefinitionContext"
2433
- }
2434
- },
2435
- {
2436
- "name": "definition",
2437
- "type": {
2438
- "text": "FoundationElementDefinition"
2439
- }
2440
- }
2441
- ]
2442
- }
2443
- ],
2444
- "exports": [
2445
- {
2446
- "kind": "js",
2447
- "name": "foundationAnchorStyles",
2448
- "declaration": {
2449
- "name": "foundationAnchorStyles",
2450
- "module": "src/anchor/anchor.styles.ts"
2451
- }
2452
- }
2453
- ]
2454
- },
2455
- {
2456
- "kind": "javascript-module",
2457
- "path": "src/anchor/anchor.template.ts",
2458
- "declarations": [
2459
- {
2460
- "kind": "function",
2461
- "name": "foundationAnchorTemplate",
2462
- "return": {
2463
- "type": {
2464
- "text": "ViewTemplate<Anchor>"
2472
+ "text": "ViewTemplate<Anchor>"
2465
2473
  }
2466
2474
  },
2467
2475
  "parameters": [
@@ -16114,89 +16122,566 @@
16114
16122
  },
16115
16123
  {
16116
16124
  "kind": "javascript-module",
16117
- "path": "src/error-banner/error-banner.template.ts",
16125
+ "path": "src/environment-indicator/environment-indicator.styles.ts",
16118
16126
  "declarations": [
16119
- {
16120
- "kind": "function",
16121
- "name": "getPrefixedErrorBanner",
16122
- "parameters": [
16123
- {
16124
- "name": "prefix",
16125
- "type": {
16126
- "text": "string"
16127
- }
16128
- }
16129
- ]
16130
- },
16131
16127
  {
16132
16128
  "kind": "variable",
16133
- "name": "foundationErrorBannerTemplate",
16134
- "default": "html<ErrorBanner>`\n ${(x) => getPrefixedErrorBanner(getPrefix(x))}\n`"
16129
+ "name": "environmentIndicatorStyles",
16130
+ "default": "css`\n .environment-indicator {\n font-size: 12px;\n display: inline-flex;\n align-items: center;\n gap: calc(var(--design-unit) * 1.4px);\n border-radius: calc(var(--design-unit) * 1px);\n height: calc(var(--design-unit) * 6px);\n padding: calc(var(--design-unit) * 0.5px) calc(var(--design-unit) * 2px);\n line-height: 1;\n font-weight: 600;\n text-transform: uppercase;\n }\n\n .environment-indicator.lg {\n border-radius: calc(var(--design-unit) * 4px);\n padding: calc(var(--design-unit) * 1px) calc(var(--design-unit) * 3.5px);\n font-size: calc(var(--design-unit) * 4px);\n }\n\n .environment-indicator foundation-icon {\n font-size: calc(var(--design-unit) * 3px);\n }\n\n .environment-indicator.lg foundation-icon {\n font-size: calc(var(--design-unit) * 3.5px);\n }\n`"
16135
16131
  }
16136
16132
  ],
16137
16133
  "exports": [
16138
16134
  {
16139
16135
  "kind": "js",
16140
- "name": "getPrefixedErrorBanner",
16136
+ "name": "environmentIndicatorStyles",
16141
16137
  "declaration": {
16142
- "name": "getPrefixedErrorBanner",
16143
- "module": "src/error-banner/error-banner.template.ts"
16138
+ "name": "environmentIndicatorStyles",
16139
+ "module": "src/environment-indicator/environment-indicator.styles.ts"
16144
16140
  }
16145
- },
16141
+ }
16142
+ ]
16143
+ },
16144
+ {
16145
+ "kind": "javascript-module",
16146
+ "path": "src/environment-indicator/environment-indicator.template.ts",
16147
+ "declarations": [
16148
+ {
16149
+ "kind": "variable",
16150
+ "name": "foundationEnvironmentIndicatorTemplate",
16151
+ "default": "html<EnvironmentIndicator>`\n ${(x) => getPrefixedEnvironmentIndicatorTemplate(getPrefix(x))}\n`"
16152
+ }
16153
+ ],
16154
+ "exports": [
16146
16155
  {
16147
16156
  "kind": "js",
16148
- "name": "foundationErrorBannerTemplate",
16157
+ "name": "foundationEnvironmentIndicatorTemplate",
16149
16158
  "declaration": {
16150
- "name": "foundationErrorBannerTemplate",
16151
- "module": "src/error-banner/error-banner.template.ts"
16159
+ "name": "foundationEnvironmentIndicatorTemplate",
16160
+ "module": "src/environment-indicator/environment-indicator.template.ts"
16152
16161
  }
16153
16162
  }
16154
16163
  ]
16155
16164
  },
16156
16165
  {
16157
16166
  "kind": "javascript-module",
16158
- "path": "src/error-banner/error-banner.ts",
16167
+ "path": "src/environment-indicator/environment-indicator.ts",
16159
16168
  "declarations": [
16160
16169
  {
16161
16170
  "kind": "variable",
16162
- "name": "foundationErrorBannerShadowOptions",
16171
+ "name": "DEFAULT_ENVIRONMENT_LEVEL_CONFIG",
16163
16172
  "type": {
16164
- "text": "ShadowRootInit"
16173
+ "text": "EnvironmentConfig"
16165
16174
  },
16166
- "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
16175
+ "default": "{\n level: DEFAULT_ENVIRONMENT_LEVEL,\n showIcon: false,\n backgroundColor: '#2222ff',\n textColor: '#ffffff',\n label: 'DEFAULT',\n}",
16176
+ "description": "Default environment level configuration"
16177
+ },
16178
+ {
16179
+ "kind": "variable",
16180
+ "name": "EnvironmentConfigs",
16181
+ "description": "EnvironmentConfigs DI token.",
16182
+ "privacy": "public"
16167
16183
  },
16168
16184
  {
16169
16185
  "kind": "class",
16170
16186
  "description": "",
16171
- "name": "ErrorBanner",
16187
+ "name": "EnvironmentIndicator",
16172
16188
  "members": [
16173
16189
  {
16174
16190
  "kind": "field",
16175
- "name": "banner",
16191
+ "name": "label",
16176
16192
  "type": {
16177
- "text": "HTMLElement & { dismiss: () => Promise<void> }"
16193
+ "text": "string"
16178
16194
  },
16179
- "privacy": "public"
16195
+ "attribute": "label"
16180
16196
  },
16181
16197
  {
16182
16198
  "kind": "field",
16183
- "name": "error",
16199
+ "name": "showIcon",
16184
16200
  "type": {
16185
- "text": "ErrorStructure"
16186
- }
16201
+ "text": "boolean"
16202
+ },
16203
+ "attribute": "show-icon"
16187
16204
  },
16188
16205
  {
16189
16206
  "kind": "field",
16190
- "name": "notification",
16207
+ "name": "size",
16191
16208
  "type": {
16192
- "text": "NotificationStructure"
16209
+ "text": "'sm' | 'lg'"
16210
+ },
16211
+ "default": "'sm'",
16212
+ "attribute": "size"
16213
+ },
16214
+ {
16215
+ "kind": "field",
16216
+ "name": "backgroundColor",
16217
+ "type": {
16218
+ "text": "string"
16219
+ },
16220
+ "attribute": "background-color"
16221
+ },
16222
+ {
16223
+ "kind": "field",
16224
+ "name": "textColor",
16225
+ "type": {
16226
+ "text": "string"
16227
+ },
16228
+ "default": "'#ffffff'",
16229
+ "attribute": "text-color"
16230
+ },
16231
+ {
16232
+ "kind": "field",
16233
+ "name": "icon",
16234
+ "type": {
16235
+ "text": "string"
16236
+ },
16237
+ "default": "'check-circle'",
16238
+ "attribute": "icon"
16239
+ },
16240
+ {
16241
+ "kind": "field",
16242
+ "name": "config",
16243
+ "type": {
16244
+ "text": "EnvironmentConfig"
16245
+ },
16246
+ "default": "{\n level: DEFAULT_ENVIRONMENT_LEVEL,\n showIcon: false,\n backgroundColor: '#2222ff',\n textColor: '#ffffff',\n label: 'DEFAULT',\n}",
16247
+ "description": "Current environment configuration"
16248
+ },
16249
+ {
16250
+ "kind": "field",
16251
+ "name": "envConfigs",
16252
+ "type": {
16253
+ "text": "EnvironmentConfig[]"
16254
+ },
16255
+ "default": "[\n DEFAULT_ENVIRONMENT_LEVEL_CONFIG,\n {\n level: 'dev',\n showIcon: false,\n icon: 'code',\n backgroundColor: '#ff6b35',\n label: 'DEV',\n },\n {\n level: 'staging',\n showIcon: false,\n icon: 'flask',\n backgroundColor: '#ffd700',\n textColor: '#000000',\n label: 'STAGING',\n },\n {\n level: 'prod',\n showIcon: false,\n icon: 'check-circle',\n backgroundColor: '#28a745',\n label: 'PROD',\n },\n {\n level: 'test',\n showIcon: false,\n icon: 'vial',\n backgroundColor: '#17a2b8',\n label: 'TEST',\n },\n]",
16256
+ "description": "Environment configurations"
16257
+ },
16258
+ {
16259
+ "kind": "method",
16260
+ "name": "envConfigsChanged"
16261
+ },
16262
+ {
16263
+ "kind": "method",
16264
+ "name": "getAttributesConfig",
16265
+ "privacy": "private",
16266
+ "return": {
16267
+ "type": {
16268
+ "text": ""
16269
+ }
16270
+ },
16271
+ "description": "Helper function to get config from attributes"
16272
+ },
16273
+ {
16274
+ "kind": "method",
16275
+ "name": "getEnvConfigByLevel",
16276
+ "return": {
16277
+ "type": {
16278
+ "text": "EnvironmentConfig"
16279
+ }
16193
16280
  }
16194
16281
  },
16195
16282
  {
16196
16283
  "kind": "method",
16197
- "name": "dismiss",
16198
- "privacy": "public",
16199
- "description": "Dismiss the Error Banner from display."
16284
+ "name": "setEnvConfigs",
16285
+ "parameters": [
16286
+ {
16287
+ "name": "envConfigs",
16288
+ "type": {
16289
+ "text": "EnvironmentConfig[]"
16290
+ },
16291
+ "description": "the environment configurations"
16292
+ }
16293
+ ],
16294
+ "description": "Set environment configurations"
16295
+ },
16296
+ {
16297
+ "kind": "field",
16298
+ "name": "_presentation",
16299
+ "type": {
16300
+ "text": "ComponentPresentation | null | undefined"
16301
+ },
16302
+ "privacy": "private",
16303
+ "default": "void 0",
16304
+ "inheritedFrom": {
16305
+ "name": "FoundationElement",
16306
+ "module": "src/foundation-element/foundation-element.ts"
16307
+ }
16308
+ },
16309
+ {
16310
+ "kind": "field",
16311
+ "name": "$presentation",
16312
+ "type": {
16313
+ "text": "ComponentPresentation | null"
16314
+ },
16315
+ "privacy": "public",
16316
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
16317
+ "inheritedFrom": {
16318
+ "name": "FoundationElement",
16319
+ "module": "src/foundation-element/foundation-element.ts"
16320
+ }
16321
+ },
16322
+ {
16323
+ "kind": "field",
16324
+ "name": "template",
16325
+ "type": {
16326
+ "text": "ElementViewTemplate | void | null"
16327
+ },
16328
+ "privacy": "public",
16329
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
16330
+ "inheritedFrom": {
16331
+ "name": "FoundationElement",
16332
+ "module": "src/foundation-element/foundation-element.ts"
16333
+ }
16334
+ },
16335
+ {
16336
+ "kind": "method",
16337
+ "name": "templateChanged",
16338
+ "privacy": "protected",
16339
+ "return": {
16340
+ "type": {
16341
+ "text": "void"
16342
+ }
16343
+ },
16344
+ "inheritedFrom": {
16345
+ "name": "FoundationElement",
16346
+ "module": "src/foundation-element/foundation-element.ts"
16347
+ }
16348
+ },
16349
+ {
16350
+ "kind": "field",
16351
+ "name": "styles",
16352
+ "type": {
16353
+ "text": "ElementStyles | void | null"
16354
+ },
16355
+ "privacy": "public",
16356
+ "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.",
16357
+ "inheritedFrom": {
16358
+ "name": "FoundationElement",
16359
+ "module": "src/foundation-element/foundation-element.ts"
16360
+ }
16361
+ },
16362
+ {
16363
+ "kind": "method",
16364
+ "name": "stylesChanged",
16365
+ "privacy": "protected",
16366
+ "return": {
16367
+ "type": {
16368
+ "text": "void"
16369
+ }
16370
+ },
16371
+ "inheritedFrom": {
16372
+ "name": "FoundationElement",
16373
+ "module": "src/foundation-element/foundation-element.ts"
16374
+ }
16375
+ },
16376
+ {
16377
+ "kind": "method",
16378
+ "name": "compose",
16379
+ "privacy": "public",
16380
+ "static": true,
16381
+ "return": {
16382
+ "type": {
16383
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
16384
+ }
16385
+ },
16386
+ "parameters": [
16387
+ {
16388
+ "name": "this",
16389
+ "type": {
16390
+ "text": "K"
16391
+ }
16392
+ },
16393
+ {
16394
+ "name": "elementDefinition",
16395
+ "type": {
16396
+ "text": "T"
16397
+ },
16398
+ "description": "The definition of the element to create the registry\nfunction for."
16399
+ }
16400
+ ],
16401
+ "description": "Defines an element registry function with a set of element definition defaults.",
16402
+ "inheritedFrom": {
16403
+ "name": "FoundationElement",
16404
+ "module": "src/foundation-element/foundation-element.ts"
16405
+ }
16406
+ }
16407
+ ],
16408
+ "attributes": [
16409
+ {
16410
+ "name": "label",
16411
+ "type": {
16412
+ "text": "string"
16413
+ },
16414
+ "fieldName": "label",
16415
+ "description": "the label to display"
16416
+ },
16417
+ {
16418
+ "name": "show-icon",
16419
+ "type": {
16420
+ "text": "boolean"
16421
+ },
16422
+ "fieldName": "showIcon",
16423
+ "description": "whether to show an icon next to the environment text"
16424
+ },
16425
+ {
16426
+ "name": "size",
16427
+ "type": {
16428
+ "text": "'sm' | 'lg'"
16429
+ },
16430
+ "default": "'sm'",
16431
+ "fieldName": "size",
16432
+ "description": "the size of the indicator. Can be 'sm' or 'lg'"
16433
+ },
16434
+ {
16435
+ "name": "background-color",
16436
+ "type": {
16437
+ "text": "string"
16438
+ },
16439
+ "fieldName": "backgroundColor",
16440
+ "description": "the background color of the indicator"
16441
+ },
16442
+ {
16443
+ "name": "text-color",
16444
+ "type": {
16445
+ "text": "string"
16446
+ },
16447
+ "default": "'#ffffff'",
16448
+ "fieldName": "textColor",
16449
+ "description": "the text color of the indicator"
16450
+ },
16451
+ {
16452
+ "name": "icon",
16453
+ "type": {
16454
+ "text": "string"
16455
+ },
16456
+ "default": "'check-circle'",
16457
+ "fieldName": "icon",
16458
+ "description": "the icon to display"
16459
+ },
16460
+ {
16461
+ "name": "label",
16462
+ "type": {
16463
+ "text": "string"
16464
+ },
16465
+ "attribute": "label",
16466
+ "fieldName": "label"
16467
+ },
16468
+ {
16469
+ "name": "show-icon",
16470
+ "type": {
16471
+ "text": "boolean"
16472
+ },
16473
+ "attribute": "show-icon",
16474
+ "fieldName": "showIcon"
16475
+ },
16476
+ {
16477
+ "name": "size",
16478
+ "type": {
16479
+ "text": "'sm' | 'lg'"
16480
+ },
16481
+ "default": "'sm'",
16482
+ "attribute": "size",
16483
+ "fieldName": "size"
16484
+ },
16485
+ {
16486
+ "name": "background-color",
16487
+ "type": {
16488
+ "text": "string"
16489
+ },
16490
+ "attribute": "background-color",
16491
+ "fieldName": "backgroundColor"
16492
+ },
16493
+ {
16494
+ "name": "text-color",
16495
+ "type": {
16496
+ "text": "string"
16497
+ },
16498
+ "default": "'#ffffff'",
16499
+ "attribute": "text-color",
16500
+ "fieldName": "textColor"
16501
+ },
16502
+ {
16503
+ "name": "icon",
16504
+ "type": {
16505
+ "text": "string"
16506
+ },
16507
+ "default": "'check-circle'",
16508
+ "attribute": "icon",
16509
+ "fieldName": "icon"
16510
+ }
16511
+ ],
16512
+ "superclass": {
16513
+ "name": "FoundationElement",
16514
+ "package": "@microsoft/fast-foundation"
16515
+ },
16516
+ "tagName": "%%prefix%%-environment-indicator",
16517
+ "customElement": true
16518
+ },
16519
+ {
16520
+ "kind": "variable",
16521
+ "name": "foundationEnvironmentIndicator",
16522
+ "description": "The Foundation Environment indicator",
16523
+ "privacy": "public"
16524
+ }
16525
+ ],
16526
+ "exports": [
16527
+ {
16528
+ "kind": "js",
16529
+ "name": "DEFAULT_ENVIRONMENT_LEVEL_CONFIG",
16530
+ "declaration": {
16531
+ "name": "DEFAULT_ENVIRONMENT_LEVEL_CONFIG",
16532
+ "module": "src/environment-indicator/environment-indicator.ts"
16533
+ }
16534
+ },
16535
+ {
16536
+ "kind": "js",
16537
+ "name": "EnvironmentConfigs",
16538
+ "declaration": {
16539
+ "name": "EnvironmentConfigs",
16540
+ "module": "src/environment-indicator/environment-indicator.ts"
16541
+ }
16542
+ },
16543
+ {
16544
+ "kind": "js",
16545
+ "name": "EnvironmentIndicator",
16546
+ "declaration": {
16547
+ "name": "EnvironmentIndicator",
16548
+ "module": "src/environment-indicator/environment-indicator.ts"
16549
+ }
16550
+ },
16551
+ {
16552
+ "kind": "js",
16553
+ "name": "foundationEnvironmentIndicator",
16554
+ "declaration": {
16555
+ "name": "foundationEnvironmentIndicator",
16556
+ "module": "src/environment-indicator/environment-indicator.ts"
16557
+ }
16558
+ }
16559
+ ]
16560
+ },
16561
+ {
16562
+ "kind": "javascript-module",
16563
+ "path": "src/environment-indicator/index.ts",
16564
+ "declarations": [],
16565
+ "exports": [
16566
+ {
16567
+ "kind": "js",
16568
+ "name": "*",
16569
+ "declaration": {
16570
+ "name": "*",
16571
+ "package": "./environment-indicator"
16572
+ }
16573
+ },
16574
+ {
16575
+ "kind": "js",
16576
+ "name": "*",
16577
+ "declaration": {
16578
+ "name": "*",
16579
+ "package": "./environment-indicator.styles"
16580
+ }
16581
+ },
16582
+ {
16583
+ "kind": "js",
16584
+ "name": "*",
16585
+ "declaration": {
16586
+ "name": "*",
16587
+ "package": "./environment-indicator.template"
16588
+ }
16589
+ },
16590
+ {
16591
+ "kind": "js",
16592
+ "name": "configureEnvironmentIndicator",
16593
+ "declaration": {
16594
+ "name": "configureEnvironmentIndicator",
16595
+ "module": "./utils/configure"
16596
+ }
16597
+ }
16598
+ ]
16599
+ },
16600
+ {
16601
+ "kind": "javascript-module",
16602
+ "path": "src/error-banner/error-banner.template.ts",
16603
+ "declarations": [
16604
+ {
16605
+ "kind": "function",
16606
+ "name": "getPrefixedErrorBanner",
16607
+ "parameters": [
16608
+ {
16609
+ "name": "prefix",
16610
+ "type": {
16611
+ "text": "string"
16612
+ }
16613
+ }
16614
+ ]
16615
+ },
16616
+ {
16617
+ "kind": "variable",
16618
+ "name": "foundationErrorBannerTemplate",
16619
+ "default": "html<ErrorBanner>`\n ${(x) => getPrefixedErrorBanner(getPrefix(x))}\n`"
16620
+ }
16621
+ ],
16622
+ "exports": [
16623
+ {
16624
+ "kind": "js",
16625
+ "name": "getPrefixedErrorBanner",
16626
+ "declaration": {
16627
+ "name": "getPrefixedErrorBanner",
16628
+ "module": "src/error-banner/error-banner.template.ts"
16629
+ }
16630
+ },
16631
+ {
16632
+ "kind": "js",
16633
+ "name": "foundationErrorBannerTemplate",
16634
+ "declaration": {
16635
+ "name": "foundationErrorBannerTemplate",
16636
+ "module": "src/error-banner/error-banner.template.ts"
16637
+ }
16638
+ }
16639
+ ]
16640
+ },
16641
+ {
16642
+ "kind": "javascript-module",
16643
+ "path": "src/error-banner/error-banner.ts",
16644
+ "declarations": [
16645
+ {
16646
+ "kind": "variable",
16647
+ "name": "foundationErrorBannerShadowOptions",
16648
+ "type": {
16649
+ "text": "ShadowRootInit"
16650
+ },
16651
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
16652
+ },
16653
+ {
16654
+ "kind": "class",
16655
+ "description": "",
16656
+ "name": "ErrorBanner",
16657
+ "members": [
16658
+ {
16659
+ "kind": "field",
16660
+ "name": "banner",
16661
+ "type": {
16662
+ "text": "HTMLElement & { dismiss: () => Promise<void> }"
16663
+ },
16664
+ "privacy": "public"
16665
+ },
16666
+ {
16667
+ "kind": "field",
16668
+ "name": "error",
16669
+ "type": {
16670
+ "text": "ErrorStructure"
16671
+ }
16672
+ },
16673
+ {
16674
+ "kind": "field",
16675
+ "name": "notification",
16676
+ "type": {
16677
+ "text": "NotificationStructure"
16678
+ }
16679
+ },
16680
+ {
16681
+ "kind": "method",
16682
+ "name": "dismiss",
16683
+ "privacy": "public",
16684
+ "description": "Dismiss the Error Banner from display."
16200
16685
  },
16201
16686
  {
16202
16687
  "kind": "field",
@@ -49932,6 +50417,54 @@
49932
50417
  "declarations": [],
49933
50418
  "exports": []
49934
50419
  },
50420
+ {
50421
+ "kind": "javascript-module",
50422
+ "path": "src/environment-indicator/utils/configure.ts",
50423
+ "declarations": [
50424
+ {
50425
+ "kind": "function",
50426
+ "name": "configureEnvironmentIndicator",
50427
+ "parameters": [
50428
+ {
50429
+ "name": "config",
50430
+ "type": {
50431
+ "text": "Partial<EnvironmentConfig[]>"
50432
+ }
50433
+ }
50434
+ ]
50435
+ }
50436
+ ],
50437
+ "exports": [
50438
+ {
50439
+ "kind": "js",
50440
+ "name": "configureEnvironmentIndicator",
50441
+ "declaration": {
50442
+ "name": "configureEnvironmentIndicator",
50443
+ "module": "src/environment-indicator/utils/configure.ts"
50444
+ }
50445
+ }
50446
+ ]
50447
+ },
50448
+ {
50449
+ "kind": "javascript-module",
50450
+ "path": "src/environment-indicator/utils/logger.ts",
50451
+ "declarations": [
50452
+ {
50453
+ "kind": "variable",
50454
+ "name": "environmentIndicatorLogger"
50455
+ }
50456
+ ],
50457
+ "exports": [
50458
+ {
50459
+ "kind": "js",
50460
+ "name": "environmentIndicatorLogger",
50461
+ "declaration": {
50462
+ "name": "environmentIndicatorLogger",
50463
+ "module": "src/environment-indicator/utils/logger.ts"
50464
+ }
50465
+ }
50466
+ ]
50467
+ },
49935
50468
  {
49936
50469
  "kind": "javascript-module",
49937
50470
  "path": "src/flex-layout/responsiveness/flex-layout-rwd.styles.ts",