@genesislcap/foundation-ui 14.155.2-alpha-d9bfff1.0 → 14.156.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 (34) hide show
  1. package/dist/custom-elements.json +1491 -1236
  2. package/dist/dts/base-components.d.ts +1 -0
  3. package/dist/dts/base-components.d.ts.map +1 -1
  4. package/dist/dts/dialog/dialog.d.ts +1 -3
  5. package/dist/dts/dialog/dialog.d.ts.map +1 -1
  6. package/dist/dts/dialog/dialog.styles.d.ts.map +1 -1
  7. package/dist/dts/icon/icon.d.ts +3 -1
  8. package/dist/dts/icon/icon.d.ts.map +1 -1
  9. package/dist/dts/icon/icon.styles.d.ts.map +1 -1
  10. package/dist/dts/index.d.ts +1 -0
  11. package/dist/dts/index.d.ts.map +1 -1
  12. package/dist/dts/stacking-icons/index.d.ts +4 -0
  13. package/dist/dts/stacking-icons/index.d.ts.map +1 -0
  14. package/dist/dts/stacking-icons/stacking-icons.d.ts +20 -0
  15. package/dist/dts/stacking-icons/stacking-icons.d.ts.map +1 -0
  16. package/dist/dts/stacking-icons/stacking-icons.styles.d.ts +4 -0
  17. package/dist/dts/stacking-icons/stacking-icons.styles.d.ts.map +1 -0
  18. package/dist/dts/stacking-icons/stacking-icons.template.d.ts +3 -0
  19. package/dist/dts/stacking-icons/stacking-icons.template.d.ts.map +1 -0
  20. package/dist/esm/base-components.js +2 -0
  21. package/dist/esm/dialog/dialog.js +1 -8
  22. package/dist/esm/dialog/dialog.styles.js +0 -25
  23. package/dist/esm/dialog/dialog.template.js +1 -1
  24. package/dist/esm/icon/icon.js +21 -0
  25. package/dist/esm/icon/icon.styles.js +8 -0
  26. package/dist/esm/index.js +1 -0
  27. package/dist/esm/stacking-icons/index.js +3 -0
  28. package/dist/esm/stacking-icons/stacking-icons.js +34 -0
  29. package/dist/esm/stacking-icons/stacking-icons.styles.js +29 -0
  30. package/dist/esm/stacking-icons/stacking-icons.template.js +9 -0
  31. package/package.json +15 -15
  32. package/dist/dts/dialog/dialog.types.d.ts +0 -3
  33. package/dist/dts/dialog/dialog.types.d.ts.map +0 -1
  34. package/dist/esm/dialog/dialog.types.js +0 -1
@@ -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 foundationBreadcrumbItem,\n foundationBreadcrumb,\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 foundationErrorBoundary,\n foundationErrorBanner,\n foundationErrorDialog,\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 foundationProgress,\n foundationPopper,\n foundationProgressRing,\n foundationRadio,\n foundationRadioGroup,\n foundationSearchBar,\n foundationSearchBarCombobox,\n foundationSegmentedControl,\n foundationSegmentedItem,\n foundationSelect,\n foundationSkeleton,\n foundationSlider,\n foundationSliderLabel,\n foundationSnackbar,\n foundationStepper,\n foundationStepperTab,\n foundationStepperTabPanel,\n foundationSwitch,\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 foundationBreadcrumbItem,\n foundationBreadcrumb,\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 foundationErrorBoundary,\n foundationErrorBanner,\n foundationErrorDialog,\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 foundationProgress,\n foundationPopper,\n foundationProgressRing,\n foundationRadio,\n foundationRadioGroup,\n foundationSearchBar,\n foundationSearchBarCombobox,\n foundationSegmentedControl,\n foundationSegmentedItem,\n foundationSelect,\n foundationSkeleton,\n foundationSlider,\n foundationSliderLabel,\n foundationSnackbar,\n foundationStepper,\n foundationStepperTab,\n foundationStepperTabPanel,\n foundationStackingIcons,\n foundationSwitch,\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": [
@@ -594,6 +594,14 @@
594
594
  "package": "./slider-label"
595
595
  }
596
596
  },
597
+ {
598
+ "kind": "js",
599
+ "name": "*",
600
+ "declaration": {
601
+ "name": "*",
602
+ "package": "./stacking-icons"
603
+ }
604
+ },
597
605
  {
598
606
  "kind": "js",
599
607
  "name": "*",
@@ -12390,92 +12398,515 @@
12390
12398
  },
12391
12399
  {
12392
12400
  "kind": "javascript-module",
12393
- "path": "src/date-picker/calendar.ts",
12401
+ "path": "src/design-system-provider/design-system-provider.styles.ts",
12402
+ "declarations": [
12403
+ {
12404
+ "kind": "function",
12405
+ "name": "designSystemProviderStyles",
12406
+ "parameters": [
12407
+ {
12408
+ "name": "context",
12409
+ "type": {
12410
+ "text": "ElementDefinitionContext"
12411
+ }
12412
+ }
12413
+ ]
12414
+ }
12415
+ ],
12416
+ "exports": [
12417
+ {
12418
+ "kind": "js",
12419
+ "name": "designSystemProviderStyles",
12420
+ "declaration": {
12421
+ "name": "designSystemProviderStyles",
12422
+ "module": "src/design-system-provider/design-system-provider.styles.ts"
12423
+ }
12424
+ }
12425
+ ]
12426
+ },
12427
+ {
12428
+ "kind": "javascript-module",
12429
+ "path": "src/design-system-provider/design-system-provider.ts",
12394
12430
  "declarations": [
12395
12431
  {
12396
12432
  "kind": "class",
12397
- "description": "",
12398
- "name": "Calendar",
12433
+ "description": "The Foundation Design System Provider",
12434
+ "name": "FoundationDesignSystemProvider",
12399
12435
  "members": [
12400
12436
  {
12401
12437
  "kind": "field",
12402
- "name": "today",
12438
+ "name": "cardFillColor",
12403
12439
  "type": {
12404
- "text": "any"
12440
+ "text": "Swatch"
12405
12441
  },
12406
- "default": "new Day(null, lang)"
12442
+ "privacy": "public"
12407
12443
  },
12408
12444
  {
12409
12445
  "kind": "field",
12410
- "name": "year",
12446
+ "name": "cardForegroundColor",
12447
+ "type": {
12448
+ "text": "Swatch"
12449
+ },
12450
+ "privacy": "public"
12451
+ }
12452
+ ],
12453
+ "attributes": [
12454
+ {
12455
+ "name": "card-fill-color",
12456
+ "type": {
12457
+ "text": "Swatch"
12458
+ },
12459
+ "fieldName": "cardFillColor"
12460
+ },
12461
+ {
12462
+ "name": "card-foreground-color",
12463
+ "type": {
12464
+ "text": "Swatch"
12465
+ },
12466
+ "fieldName": "cardForegroundColor"
12467
+ }
12468
+ ],
12469
+ "superclass": {
12470
+ "name": "FASTDesignSystemProvider",
12471
+ "package": "@microsoft/fast-components"
12472
+ },
12473
+ "tagName": "%%prefix%%-design-system-provider",
12474
+ "customElement": true
12475
+ },
12476
+ {
12477
+ "kind": "variable",
12478
+ "name": "foundationDesignSystemProvider",
12479
+ "description": "The Foundation Design System Provider composed element",
12480
+ "privacy": "public"
12481
+ }
12482
+ ],
12483
+ "exports": [
12484
+ {
12485
+ "kind": "js",
12486
+ "name": "FoundationDesignSystemProvider",
12487
+ "declaration": {
12488
+ "name": "FoundationDesignSystemProvider",
12489
+ "module": "src/design-system-provider/design-system-provider.ts"
12490
+ }
12491
+ },
12492
+ {
12493
+ "kind": "js",
12494
+ "name": "foundationDesignSystemProvider",
12495
+ "declaration": {
12496
+ "name": "foundationDesignSystemProvider",
12497
+ "module": "src/design-system-provider/design-system-provider.ts"
12498
+ }
12499
+ }
12500
+ ]
12501
+ },
12502
+ {
12503
+ "kind": "javascript-module",
12504
+ "path": "src/design-system-provider/design-system-provider.utils.ts",
12505
+ "declarations": [
12506
+ {
12507
+ "kind": "function",
12508
+ "name": "provideTokens",
12509
+ "parameters": [
12510
+ {
12511
+ "name": "tokens"
12512
+ },
12513
+ {
12514
+ "name": "values"
12515
+ },
12516
+ {
12517
+ "name": "element",
12518
+ "optional": true,
12519
+ "type": {
12520
+ "text": "HTMLElement"
12521
+ }
12522
+ }
12523
+ ]
12524
+ },
12525
+ {
12526
+ "kind": "function",
12527
+ "name": "designToken",
12528
+ "parameters": [
12529
+ {
12530
+ "name": "token",
12531
+ "type": {
12532
+ "text": "DesignToken<T>"
12533
+ }
12534
+ }
12535
+ ]
12536
+ },
12537
+ {
12538
+ "kind": "variable",
12539
+ "name": "swatchConverter",
12540
+ "type": {
12541
+ "text": "ValueConverter"
12542
+ },
12543
+ "default": "{\n toView(value: any): string | null {\n if (value === null || value === undefined) {\n return null;\n }\n return (value as Swatch)?.toColorString();\n },\n\n fromView(value: any): any {\n if (value === null || value === undefined) {\n return null;\n }\n const color = parseColorHexRGB(value);\n return color ? SwatchRGB.create(color!.r, color!.g, color!.b) : null;\n },\n}"
12544
+ },
12545
+ {
12546
+ "kind": "function",
12547
+ "name": "paletteFromHex",
12548
+ "parameters": [
12549
+ {
12550
+ "name": "hexColor",
12551
+ "type": {
12552
+ "text": "string"
12553
+ }
12554
+ }
12555
+ ]
12556
+ },
12557
+ {
12558
+ "kind": "function",
12559
+ "name": "getDefaultConfig",
12560
+ "parameters": [
12561
+ {
12562
+ "name": "definition",
12563
+ "type": {
12564
+ "text": "Partial<FoundationElementDefinition>"
12565
+ }
12566
+ },
12567
+ {
12568
+ "name": "exclusions",
12569
+ "default": "defaultExclusions"
12570
+ }
12571
+ ]
12572
+ },
12573
+ {
12574
+ "kind": "function",
12575
+ "name": "getExports",
12576
+ "parameters": [
12577
+ {
12578
+ "name": "registrationFunction"
12579
+ }
12580
+ ]
12581
+ },
12582
+ {
12583
+ "kind": "function",
12584
+ "name": "getTypeRampValue",
12585
+ "parameters": [
12586
+ {
12587
+ "name": "baseTypeRamp",
12588
+ "type": {
12589
+ "text": "string"
12590
+ }
12591
+ },
12592
+ {
12593
+ "name": "value",
12411
12594
  "type": {
12412
12595
  "text": "number"
12413
12596
  }
12597
+ }
12598
+ ]
12599
+ },
12600
+ {
12601
+ "kind": "function",
12602
+ "name": "configureDesignSystem",
12603
+ "parameters": [
12604
+ {
12605
+ "name": "provider",
12606
+ "type": {
12607
+ "text": "HTMLElement"
12608
+ }
12414
12609
  },
12610
+ {
12611
+ "name": "config",
12612
+ "type": {
12613
+ "text": "DesignTokensConfig"
12614
+ }
12615
+ }
12616
+ ]
12617
+ }
12618
+ ],
12619
+ "exports": [
12620
+ {
12621
+ "kind": "js",
12622
+ "name": "provideTokens",
12623
+ "declaration": {
12624
+ "name": "provideTokens",
12625
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
12626
+ }
12627
+ },
12628
+ {
12629
+ "kind": "js",
12630
+ "name": "designToken",
12631
+ "declaration": {
12632
+ "name": "designToken",
12633
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
12634
+ }
12635
+ },
12636
+ {
12637
+ "kind": "js",
12638
+ "name": "swatchConverter",
12639
+ "declaration": {
12640
+ "name": "swatchConverter",
12641
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
12642
+ }
12643
+ },
12644
+ {
12645
+ "kind": "js",
12646
+ "name": "paletteFromHex",
12647
+ "declaration": {
12648
+ "name": "paletteFromHex",
12649
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
12650
+ }
12651
+ },
12652
+ {
12653
+ "kind": "js",
12654
+ "name": "getDefaultConfig",
12655
+ "declaration": {
12656
+ "name": "getDefaultConfig",
12657
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
12658
+ }
12659
+ },
12660
+ {
12661
+ "kind": "js",
12662
+ "name": "getExports",
12663
+ "declaration": {
12664
+ "name": "getExports",
12665
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
12666
+ }
12667
+ },
12668
+ {
12669
+ "kind": "js",
12670
+ "name": "getTypeRampValue",
12671
+ "declaration": {
12672
+ "name": "getTypeRampValue",
12673
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
12674
+ }
12675
+ },
12676
+ {
12677
+ "kind": "js",
12678
+ "name": "configureDesignSystem",
12679
+ "declaration": {
12680
+ "name": "configureDesignSystem",
12681
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
12682
+ }
12683
+ }
12684
+ ]
12685
+ },
12686
+ {
12687
+ "kind": "javascript-module",
12688
+ "path": "src/design-system-provider/index.ts",
12689
+ "declarations": [],
12690
+ "exports": [
12691
+ {
12692
+ "kind": "js",
12693
+ "name": "*",
12694
+ "declaration": {
12695
+ "name": "*",
12696
+ "package": "./design-system-provider.utils"
12697
+ }
12698
+ },
12699
+ {
12700
+ "kind": "js",
12701
+ "name": "*",
12702
+ "declaration": {
12703
+ "name": "*",
12704
+ "package": "./design-system-provider"
12705
+ }
12706
+ },
12707
+ {
12708
+ "kind": "js",
12709
+ "name": "*",
12710
+ "declaration": {
12711
+ "name": "*",
12712
+ "package": "./types"
12713
+ }
12714
+ }
12715
+ ]
12716
+ },
12717
+ {
12718
+ "kind": "javascript-module",
12719
+ "path": "src/design-system-provider/types.ts",
12720
+ "declarations": [],
12721
+ "exports": []
12722
+ },
12723
+ {
12724
+ "kind": "javascript-module",
12725
+ "path": "src/dialog/dialog.styles.ts",
12726
+ "declarations": [
12727
+ {
12728
+ "kind": "variable",
12729
+ "name": "foundationDialogStyles",
12730
+ "type": {
12731
+ "text": "ElementStyles"
12732
+ },
12733
+ "default": "css`\n :host {\n --dialog-min-width: 358px;\n --notification-details-min-height: 40px;\n }\n\n .close-icon {\n position: absolute;\n right: calc(var(--design-unit) * 2px);\n top: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon svg {\n border-radius: calc(var(--control-corner-radius) * 1px);\n padding: calc(var(--design-unit) * 2px);\n }\n\n dialog {\n background-color: var(--dialog-background, var(--fill-color));\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)\n calc(var(--design-unit) * 4px);\n overflow: inherit;\n }\n\n :host([position='right']) dialog .content-wrapper,\n :host([position='left']) dialog .content-wrapper,\n :host([position='left']) dialog,\n :host([position='right']) dialog {\n height: 100%;\n }\n\n :host([position='left']) dialog {\n margin-left: 0;\n }\n\n :host([position='right']) dialog {\n margin-right: 0;\n }\n\n ::slotted(zero-divider) {\n width: 100%;\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--notification-details-min-height);\n }\n`"
12734
+ }
12735
+ ],
12736
+ "exports": [
12737
+ {
12738
+ "kind": "js",
12739
+ "name": "foundationDialogStyles",
12740
+ "declaration": {
12741
+ "name": "foundationDialogStyles",
12742
+ "module": "src/dialog/dialog.styles.ts"
12743
+ }
12744
+ }
12745
+ ]
12746
+ },
12747
+ {
12748
+ "kind": "javascript-module",
12749
+ "path": "src/dialog/dialog.template.ts",
12750
+ "declarations": [
12751
+ {
12752
+ "kind": "function",
12753
+ "name": "getDialogTemplate",
12754
+ "parameters": [
12755
+ {
12756
+ "name": "prefix",
12757
+ "type": {
12758
+ "text": "string"
12759
+ }
12760
+ }
12761
+ ]
12762
+ },
12763
+ {
12764
+ "kind": "variable",
12765
+ "name": "foundationDialogTemplate",
12766
+ "default": "html<Dialog>`\n ${(x) => getDialogTemplate(getPrefix(x))}\n`"
12767
+ }
12768
+ ],
12769
+ "exports": [
12770
+ {
12771
+ "kind": "js",
12772
+ "name": "getDialogTemplate",
12773
+ "declaration": {
12774
+ "name": "getDialogTemplate",
12775
+ "module": "src/dialog/dialog.template.ts"
12776
+ }
12777
+ },
12778
+ {
12779
+ "kind": "js",
12780
+ "name": "foundationDialogTemplate",
12781
+ "declaration": {
12782
+ "name": "foundationDialogTemplate",
12783
+ "module": "src/dialog/dialog.template.ts"
12784
+ }
12785
+ }
12786
+ ]
12787
+ },
12788
+ {
12789
+ "kind": "javascript-module",
12790
+ "path": "src/dialog/dialog.ts",
12791
+ "declarations": [
12792
+ {
12793
+ "kind": "variable",
12794
+ "name": "foundationDialogShadowOptions",
12795
+ "type": {
12796
+ "text": "ShadowRootInit"
12797
+ },
12798
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
12799
+ },
12800
+ {
12801
+ "kind": "variable",
12802
+ "name": "defaultDialogConfig",
12803
+ "type": {
12804
+ "text": "object"
12805
+ },
12806
+ "default": "{}"
12807
+ },
12808
+ {
12809
+ "kind": "class",
12810
+ "description": "",
12811
+ "name": "DialogElement",
12812
+ "members": [
12415
12813
  {
12416
12814
  "kind": "field",
12417
- "name": "month",
12815
+ "name": "mainElement",
12418
12816
  "type": {
12419
- "text": "any"
12817
+ "text": "HTMLDialogElement"
12420
12818
  },
12421
- "default": "new Month(new Date(this.year, (monthNumber || this.today.monthNumber) - 1), lang)"
12819
+ "description": "A reference to the dialog element\nin the component Shadow DOM."
12422
12820
  },
12423
12821
  {
12424
12822
  "kind": "field",
12425
- "name": "lang",
12823
+ "name": "notification",
12426
12824
  "type": {
12427
- "text": "string"
12428
- },
12429
- "default": "lang"
12825
+ "text": "NotificationStructure"
12826
+ }
12827
+ },
12828
+ {
12829
+ "kind": "method",
12830
+ "name": "notificationChanged"
12430
12831
  },
12431
12832
  {
12432
12833
  "kind": "field",
12433
- "name": "weekDays"
12834
+ "name": "position",
12835
+ "type": {
12836
+ "text": "'centre' | 'left' | 'right'"
12837
+ },
12838
+ "default": "'centre'"
12434
12839
  },
12435
12840
  {
12436
- "kind": "method",
12437
- "name": "getMonth",
12438
- "parameters": [
12439
- {
12440
- "name": "monthNumber"
12441
- }
12442
- ]
12841
+ "kind": "field",
12842
+ "name": "showCloseIcon",
12843
+ "type": {
12844
+ "text": "boolean"
12845
+ },
12846
+ "default": "true",
12847
+ "description": "Whether or not to show the close icon"
12443
12848
  },
12444
12849
  {
12445
- "kind": "method",
12446
- "name": "getPreviousMonth"
12850
+ "kind": "field",
12851
+ "name": "onShowCallback",
12852
+ "type": {
12853
+ "text": "() => void"
12854
+ },
12855
+ "description": "Callback to run *before* HTMLDialogElement is shown"
12447
12856
  },
12448
12857
  {
12449
- "kind": "method",
12450
- "name": "getNextMonth"
12858
+ "kind": "field",
12859
+ "name": "onCloseCallback",
12860
+ "type": {
12861
+ "text": "() => void"
12862
+ },
12863
+ "description": "Callback to run *after* HTMLDialogElement is closed"
12451
12864
  },
12452
12865
  {
12453
- "kind": "method",
12454
- "name": "goToDate",
12455
- "parameters": [
12456
- {
12457
- "name": "monthNumber"
12458
- },
12459
- {
12460
- "name": "year"
12461
- }
12462
- ]
12866
+ "kind": "field",
12867
+ "name": "open",
12868
+ "type": {
12869
+ "text": "boolean"
12870
+ },
12871
+ "description": "Determine if the dialog is showing or closed.",
12872
+ "readonly": true
12463
12873
  },
12464
12874
  {
12465
12875
  "kind": "method",
12466
- "name": "goToNextYear"
12876
+ "name": "show",
12877
+ "return": {
12878
+ "type": {
12879
+ "text": "void"
12880
+ }
12881
+ },
12882
+ "description": "Show the HTMLDialogElement and its contents"
12467
12883
  },
12468
12884
  {
12469
12885
  "kind": "method",
12470
- "name": "goToPreviousYear"
12886
+ "name": "close",
12887
+ "return": {
12888
+ "type": {
12889
+ "text": "void"
12890
+ }
12891
+ },
12892
+ "description": "Remove the HTMLDialogElement from display"
12471
12893
  },
12472
12894
  {
12473
12895
  "kind": "method",
12474
- "name": "goToNextMonth"
12896
+ "name": "dismiss",
12897
+ "privacy": "public",
12898
+ "description": "Dismiss the Dialog from display and calls the dismissing action."
12475
12899
  },
12476
12900
  {
12477
12901
  "kind": "method",
12478
- "name": "goToPreviousMonth"
12902
+ "name": "closeDialog",
12903
+ "privacy": "public",
12904
+ "return": {
12905
+ "type": {
12906
+ "text": "void"
12907
+ }
12908
+ },
12909
+ "description": "Dismiss the Dialog from display."
12479
12910
  },
12480
12911
  {
12481
12912
  "kind": "field",
@@ -12588,331 +13019,181 @@
12588
13019
  "module": "src/foundation-element/foundation-element.ts"
12589
13020
  }
12590
13021
  }
12591
- ]
12592
- }
12593
- ],
12594
- "exports": [
12595
- {
12596
- "kind": "js",
12597
- "name": "default",
12598
- "declaration": {
12599
- "name": "Calendar",
12600
- "module": "src/date-picker/calendar.ts"
12601
- }
12602
- }
12603
- ]
12604
- },
12605
- {
12606
- "kind": "javascript-module",
12607
- "path": "src/date-picker/date-picker.styles.ts",
12608
- "declarations": [
12609
- {
12610
- "kind": "variable",
12611
- "name": "foundationDatePickerStyles",
12612
- "type": {
12613
- "text": "ElementStyles"
12614
- },
12615
- "default": "css`\n :host {\n position: relative;\n }\n\n .date-toggle::part(control) {\n cursor: pointer;\n }\n\n .date-toggle::part(label) {\n cursor: pointer;\n }\n\n .calendar-dropdown {\n display: none;\n width: 300px;\n z-index: 999;\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, 8px);\n margin: 10px 0 0;\n padding: 20px;\n background: var(--neutral-foreground-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n box-shadow: 0 0 8px rgb(0 0 0 / 20%);\n }\n\n .calendar-dropdown.top {\n top: auto;\n bottom: 100%;\n margin: 0 0 5px;\n transform: translate(-50%, -8px);\n }\n\n .calendar-dropdown.left {\n top: 50%;\n left: 0;\n margin: 0 0 0 5px;\n transform: translate(calc(-8px + -100%), -50%);\n }\n\n .calendar-dropdown.right {\n top: 50%;\n left: 100%;\n transform: translate(8px, -50%);\n }\n\n .calendar-dropdown.visible {\n display: block;\n }\n\n .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0 0 10px;\n }\n\n .header h3 {\n margin: 0;\n text-transform: capitalize;\n font-weight: bold;\n color: var(--foreground-on-accent-rest);\n }\n\n .header .months-arrows {\n display: flex;\n flex-direction: row;\n }\n\n .header .icon-container {\n display: flex;\n width: 25px;\n height: 25px;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n }\n\n .header .icon-container:first-child {\n margin-right: calc(var(--design-unit) * 2px);\n }\n\n .header .prev-month,\n .header .next-month {\n color: var(--foreground-on-accent-rest);\n font-size: 18px;\n }\n\n .week-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n margin-bottom: 10px;\n color: var(--foreground-on-accent-rest);\n }\n\n .week-days span {\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: bold;\n text-transform: capitalize;\n }\n\n .month-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n }\n\n .month-day {\n padding: 8px 5px;\n color: #808080;\n background: none;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: calc(var(--control-corner-radius) * 4px);\n cursor: pointer;\n border: none;\n }\n\n .month-day.current {\n opacity: 100%;\n color: var(--foreground-on-accent-rest);\n }\n\n .month-day.selected {\n background: var(--accent-foreground-rest);\n color: var(--neutral-foreground-rest);\n }\n\n .month-day:hover {\n background: var(--neutral-stroke-hover);\n color: (--neutral-foreground-rest);\n }\n\n .date-toggle[readonly] .label {\n cursor: pointer;\n }\n`"
12616
- }
12617
- ],
12618
- "exports": [
12619
- {
12620
- "kind": "js",
12621
- "name": "foundationDatePickerStyles",
12622
- "declaration": {
12623
- "name": "foundationDatePickerStyles",
12624
- "module": "src/date-picker/date-picker.styles.ts"
12625
- }
12626
- }
12627
- ]
12628
- },
12629
- {
12630
- "kind": "javascript-module",
12631
- "path": "src/date-picker/date-picker.template.ts",
12632
- "declarations": [
12633
- {
12634
- "kind": "function",
12635
- "name": "getPrefixedDatePicker",
12636
- "parameters": [
13022
+ ],
13023
+ "attributes": [
12637
13024
  {
12638
- "name": "prefix",
13025
+ "name": "position",
12639
13026
  "type": {
12640
- "text": "string"
12641
- }
13027
+ "text": "'centre' | 'left' | 'right'"
13028
+ },
13029
+ "default": "'centre'",
13030
+ "fieldName": "position"
13031
+ },
13032
+ {
13033
+ "name": "show-close-icon",
13034
+ "type": {
13035
+ "text": "boolean"
13036
+ },
13037
+ "default": "true",
13038
+ "description": "Whether or not to show the close icon",
13039
+ "fieldName": "showCloseIcon"
12642
13040
  }
12643
- ]
12644
- },
12645
- {
12646
- "kind": "variable",
12647
- "name": "foundationDatePickerTemplate",
12648
- "default": "html<DatePicker>`\n ${(x) => getPrefixedDatePicker(getPrefix(x))}\n`"
12649
- }
12650
- ],
12651
- "exports": [
12652
- {
12653
- "kind": "js",
12654
- "name": "getPrefixedDatePicker",
12655
- "declaration": {
12656
- "name": "getPrefixedDatePicker",
12657
- "module": "src/date-picker/date-picker.template.ts"
12658
- }
12659
- },
12660
- {
12661
- "kind": "js",
12662
- "name": "foundationDatePickerTemplate",
12663
- "declaration": {
12664
- "name": "foundationDatePickerTemplate",
12665
- "module": "src/date-picker/date-picker.template.ts"
13041
+ ],
13042
+ "superclass": {
13043
+ "name": "FoundationElement",
13044
+ "package": "@microsoft/fast-foundation"
12666
13045
  }
12667
- }
12668
- ]
12669
- },
12670
- {
12671
- "kind": "javascript-module",
12672
- "path": "src/date-picker/date-picker.ts",
12673
- "declarations": [
12674
- {
12675
- "kind": "variable",
12676
- "name": "foundationDatePickerShadowOptions",
12677
- "type": {
12678
- "text": "ShadowRootInit"
12679
- },
12680
- "default": "undefined"
12681
- },
12682
- {
12683
- "kind": "variable",
12684
- "name": "defaultDatePickerConfig",
12685
- "type": {
12686
- "text": "object"
12687
- },
12688
- "default": "{}"
12689
13046
  },
12690
13047
  {
12691
13048
  "kind": "class",
12692
13049
  "description": "",
12693
- "name": "DatePicker",
13050
+ "name": "Dialog",
12694
13051
  "members": [
12695
- {
12696
- "kind": "field",
12697
- "name": "format",
12698
- "type": {
12699
- "text": "string"
12700
- },
12701
- "default": "'MM-DD-YYYY'"
12702
- },
12703
13052
  {
12704
13053
  "kind": "method",
12705
- "name": "formatChanged",
12706
- "parameters": [
12707
- {
12708
- "name": "oldValue",
12709
- "type": {
12710
- "text": "string"
12711
- }
12712
- },
12713
- {
12714
- "name": "newValue",
12715
- "type": {
12716
- "text": "string"
12717
- }
13054
+ "name": "show",
13055
+ "return": {
13056
+ "type": {
13057
+ "text": "void"
12718
13058
  }
12719
- ]
12720
- },
12721
- {
12722
- "kind": "field",
12723
- "name": "lang",
12724
- "type": {
12725
- "text": "string"
12726
- },
12727
- "default": "'en-US'"
12728
- },
12729
- {
12730
- "kind": "field",
12731
- "name": "visible",
12732
- "type": {
12733
- "text": "boolean"
12734
- },
12735
- "default": "false"
12736
- },
12737
- {
12738
- "kind": "field",
12739
- "name": "position",
12740
- "type": {
12741
- "text": "string"
12742
13059
  },
12743
- "default": "'bottom'"
12744
- },
12745
- {
12746
- "kind": "field",
12747
- "name": "label",
12748
- "type": {
12749
- "text": "string"
12750
- }
12751
- },
12752
- {
12753
- "kind": "field",
12754
- "name": "value",
12755
- "type": {
12756
- "text": "string"
13060
+ "description": "Show the HTMLDialogElement and its contents",
13061
+ "inheritedFrom": {
13062
+ "name": "<local>_DialogElement",
13063
+ "module": "src/dialog/dialog.ts"
12757
13064
  }
12758
13065
  },
12759
- {
12760
- "kind": "method",
12761
- "name": "valueChanged",
12762
- "parameters": [
12763
- {
12764
- "name": "oldValue",
12765
- "type": {
12766
- "text": "string"
12767
- }
12768
- },
12769
- {
12770
- "name": "newValue",
12771
- "type": {
12772
- "text": "string"
12773
- }
12774
- }
12775
- ]
12776
- },
12777
13066
  {
12778
13067
  "kind": "field",
12779
- "name": "currentDate",
13068
+ "name": "mainElement",
12780
13069
  "type": {
12781
- "text": "any"
13070
+ "text": "HTMLDialogElement"
12782
13071
  },
12783
- "default": "new Day(dayjsDate.toDate(), this.lang)"
12784
- },
12785
- {
12786
- "kind": "field",
12787
- "name": "currentMonth",
12788
- "type": {
12789
- "text": "Calendar"
12790
- }
12791
- },
12792
- {
12793
- "kind": "field",
12794
- "name": "currentYear",
12795
- "type": {
12796
- "text": "number"
12797
- }
12798
- },
12799
- {
12800
- "kind": "field",
12801
- "name": "calendarDropdownClasses",
12802
- "type": {
12803
- "text": "String"
13072
+ "description": "A reference to the dialog element\nin the component Shadow DOM.",
13073
+ "inheritedFrom": {
13074
+ "name": "<local>_DialogElement",
13075
+ "module": "src/dialog/dialog.ts"
12804
13076
  }
12805
13077
  },
12806
13078
  {
12807
13079
  "kind": "field",
12808
- "name": "formatDate",
13080
+ "name": "notification",
12809
13081
  "type": {
12810
- "text": "string"
13082
+ "text": "NotificationStructure"
13083
+ },
13084
+ "inheritedFrom": {
13085
+ "name": "<local>_DialogElement",
13086
+ "module": "src/dialog/dialog.ts"
12811
13087
  }
12812
13088
  },
12813
13089
  {
12814
- "kind": "field",
12815
- "name": "monthList",
12816
- "type": {
12817
- "text": "any"
13090
+ "kind": "method",
13091
+ "name": "notificationChanged",
13092
+ "inheritedFrom": {
13093
+ "name": "<local>_DialogElement",
13094
+ "module": "src/dialog/dialog.ts"
12818
13095
  }
12819
13096
  },
12820
13097
  {
12821
13098
  "kind": "field",
12822
- "name": "calendar",
13099
+ "name": "position",
12823
13100
  "type": {
12824
- "text": "Calendar"
13101
+ "text": "'centre' | 'left' | 'right'"
12825
13102
  },
12826
- "default": "new Calendar(this.currentDate.year, this.currentDate.monthNumber, this.lang)"
12827
- },
12828
- {
12829
- "kind": "field",
12830
- "name": "toggleButton",
12831
- "type": {
12832
- "text": "HTMLElement"
12833
- }
12834
- },
12835
- {
12836
- "kind": "field",
12837
- "name": "calendarDaysContainer",
12838
- "type": {
12839
- "text": "HTMLElement"
13103
+ "default": "'centre'",
13104
+ "inheritedFrom": {
13105
+ "name": "<local>_DialogElement",
13106
+ "module": "src/dialog/dialog.ts"
12840
13107
  }
12841
13108
  },
12842
13109
  {
12843
13110
  "kind": "field",
12844
- "name": "selectedDayElement",
13111
+ "name": "showCloseIcon",
12845
13112
  "type": {
12846
- "text": "HTMLElement"
13113
+ "text": "boolean"
13114
+ },
13115
+ "default": "true",
13116
+ "description": "Whether or not to show the close icon",
13117
+ "inheritedFrom": {
13118
+ "name": "<local>_DialogElement",
13119
+ "module": "src/dialog/dialog.ts"
12847
13120
  }
12848
13121
  },
12849
13122
  {
12850
13123
  "kind": "field",
12851
- "name": "prevBtn",
13124
+ "name": "onShowCallback",
12852
13125
  "type": {
12853
- "text": "HTMLElement"
13126
+ "text": "() => void"
13127
+ },
13128
+ "description": "Callback to run *before* HTMLDialogElement is shown",
13129
+ "inheritedFrom": {
13130
+ "name": "<local>_DialogElement",
13131
+ "module": "src/dialog/dialog.ts"
12854
13132
  }
12855
13133
  },
12856
13134
  {
12857
13135
  "kind": "field",
12858
- "name": "nextBtn",
13136
+ "name": "onCloseCallback",
12859
13137
  "type": {
12860
- "text": "HTMLElement"
13138
+ "text": "() => void"
13139
+ },
13140
+ "description": "Callback to run *after* HTMLDialogElement is closed",
13141
+ "inheritedFrom": {
13142
+ "name": "<local>_DialogElement",
13143
+ "module": "src/dialog/dialog.ts"
12861
13144
  }
12862
13145
  },
12863
13146
  {
12864
13147
  "kind": "field",
12865
- "name": "substringNumber",
13148
+ "name": "open",
12866
13149
  "type": {
12867
- "text": "number"
13150
+ "text": "boolean"
12868
13151
  },
12869
- "default": "3"
12870
- },
12871
- {
12872
- "kind": "method",
12873
- "name": "updateHeaderText"
12874
- },
12875
- {
12876
- "kind": "method",
12877
- "name": "toggleCalendar"
12878
- },
12879
- {
12880
- "kind": "method",
12881
- "name": "toggleVisibility"
13152
+ "description": "Determine if the dialog is showing or closed.",
13153
+ "readonly": true,
13154
+ "inheritedFrom": {
13155
+ "name": "<local>_DialogElement",
13156
+ "module": "src/dialog/dialog.ts"
13157
+ }
12882
13158
  },
12883
13159
  {
12884
13160
  "kind": "method",
12885
- "name": "isSelectedDate",
12886
- "parameters": [
12887
- {
12888
- "name": "date"
13161
+ "name": "close",
13162
+ "return": {
13163
+ "type": {
13164
+ "text": "void"
12889
13165
  }
12890
- ]
12891
- },
12892
- {
12893
- "kind": "method",
12894
- "name": "isCurrentCalendarMonth"
12895
- },
12896
- {
12897
- "kind": "method",
12898
- "name": "prevMonth"
13166
+ },
13167
+ "description": "Remove the HTMLDialogElement from display",
13168
+ "inheritedFrom": {
13169
+ "name": "<local>_DialogElement",
13170
+ "module": "src/dialog/dialog.ts"
13171
+ }
12899
13172
  },
12900
13173
  {
12901
13174
  "kind": "method",
12902
- "name": "nextMonth"
13175
+ "name": "dismiss",
13176
+ "privacy": "public",
13177
+ "description": "Dismiss the Dialog from display and calls the dismissing action.",
13178
+ "inheritedFrom": {
13179
+ "name": "<local>_DialogElement",
13180
+ "module": "src/dialog/dialog.ts"
13181
+ }
12903
13182
  },
12904
13183
  {
12905
13184
  "kind": "method",
12906
- "name": "selectDay",
12907
- "parameters": [
12908
- {
12909
- "name": "day"
13185
+ "name": "closeDialog",
13186
+ "privacy": "public",
13187
+ "return": {
13188
+ "type": {
13189
+ "text": "void"
12910
13190
  }
12911
- ]
12912
- },
12913
- {
12914
- "kind": "method",
12915
- "name": "getMonthDaysGrid"
13191
+ },
13192
+ "description": "Dismiss the Dialog from display.",
13193
+ "inheritedFrom": {
13194
+ "name": "<local>_DialogElement",
13195
+ "module": "src/dialog/dialog.ts"
13196
+ }
12916
13197
  },
12917
13198
  {
12918
13199
  "kind": "field",
@@ -13026,833 +13307,209 @@
13026
13307
  }
13027
13308
  }
13028
13309
  ],
13310
+ "superclass": {
13311
+ "name": "DialogElement",
13312
+ "module": "src/dialog/dialog.ts"
13313
+ },
13314
+ "tagName": "%%prefix%%-dialog",
13315
+ "customElement": true,
13029
13316
  "attributes": [
13030
- {
13031
- "name": "format",
13032
- "type": {
13033
- "text": "string"
13034
- },
13035
- "default": "'MM-DD-YYYY'",
13036
- "fieldName": "format"
13037
- },
13038
- {
13039
- "name": "lang",
13040
- "type": {
13041
- "text": "string"
13042
- },
13043
- "default": "'en-US'",
13044
- "fieldName": "lang"
13045
- },
13046
- {
13047
- "name": "visible",
13048
- "type": {
13049
- "text": "boolean"
13050
- },
13051
- "default": "false",
13052
- "fieldName": "visible"
13053
- },
13054
13317
  {
13055
13318
  "name": "position",
13056
13319
  "type": {
13057
- "text": "string"
13058
- },
13059
- "default": "'bottom'",
13060
- "fieldName": "position"
13061
- },
13062
- {
13063
- "name": "label",
13064
- "type": {
13065
- "text": "string"
13320
+ "text": "'centre' | 'left' | 'right'"
13066
13321
  },
13067
- "fieldName": "label"
13322
+ "default": "'centre'",
13323
+ "fieldName": "position",
13324
+ "inheritedFrom": {
13325
+ "name": "<local>_DialogElement",
13326
+ "module": "src/dialog/dialog.ts"
13327
+ }
13068
13328
  },
13069
13329
  {
13070
- "name": "value",
13330
+ "name": "show-close-icon",
13071
13331
  "type": {
13072
- "text": "string"
13332
+ "text": "boolean"
13073
13333
  },
13074
- "fieldName": "value"
13334
+ "default": "true",
13335
+ "description": "Whether or not to show the close icon",
13336
+ "fieldName": "showCloseIcon",
13337
+ "inheritedFrom": {
13338
+ "name": "<local>_DialogElement",
13339
+ "module": "src/dialog/dialog.ts"
13340
+ }
13075
13341
  }
13076
- ],
13077
- "superclass": {
13078
- "name": "FoundationElement",
13079
- "package": "@microsoft/fast-foundation"
13080
- },
13081
- "tagName": "%%prefix%%-date-picker",
13082
- "customElement": true
13342
+ ]
13083
13343
  },
13084
13344
  {
13085
13345
  "kind": "variable",
13086
- "name": "foundationDatePicker",
13087
- "description": "The Foundation DatePicker",
13346
+ "name": "foundationDialog",
13347
+ "description": "The Foundation Dialog",
13088
13348
  "privacy": "public"
13089
13349
  }
13090
13350
  ],
13091
13351
  "exports": [
13092
13352
  {
13093
13353
  "kind": "js",
13094
- "name": "foundationDatePickerShadowOptions",
13354
+ "name": "foundationDialogShadowOptions",
13095
13355
  "declaration": {
13096
- "name": "foundationDatePickerShadowOptions",
13097
- "module": "src/date-picker/date-picker.ts"
13356
+ "name": "foundationDialogShadowOptions",
13357
+ "module": "src/dialog/dialog.ts"
13098
13358
  }
13099
13359
  },
13100
13360
  {
13101
13361
  "kind": "js",
13102
- "name": "defaultDatePickerConfig",
13362
+ "name": "defaultDialogConfig",
13103
13363
  "declaration": {
13104
- "name": "defaultDatePickerConfig",
13105
- "module": "src/date-picker/date-picker.ts"
13364
+ "name": "defaultDialogConfig",
13365
+ "module": "src/dialog/dialog.ts"
13106
13366
  }
13107
13367
  },
13108
13368
  {
13109
13369
  "kind": "js",
13110
- "name": "DatePicker",
13370
+ "name": "DialogElement",
13111
13371
  "declaration": {
13112
- "name": "DatePicker",
13113
- "module": "src/date-picker/date-picker.ts"
13372
+ "name": "DialogElement",
13373
+ "module": "src/dialog/dialog.ts"
13114
13374
  }
13115
13375
  },
13116
13376
  {
13117
13377
  "kind": "js",
13118
- "name": "foundationDatePicker",
13378
+ "name": "Dialog",
13119
13379
  "declaration": {
13120
- "name": "foundationDatePicker",
13121
- "module": "src/date-picker/date-picker.ts"
13380
+ "name": "Dialog",
13381
+ "module": "src/dialog/dialog.ts"
13122
13382
  }
13123
- }
13124
- ]
13125
- },
13126
- {
13127
- "kind": "javascript-module",
13128
- "path": "src/date-picker/day.ts",
13129
- "declarations": [
13130
- {
13131
- "kind": "class",
13132
- "description": "",
13133
- "name": "Day",
13134
- "members": [
13135
- {
13136
- "kind": "field",
13137
- "name": "Date",
13138
- "type": {
13139
- "text": "Object"
13140
- },
13141
- "default": "date"
13142
- },
13143
- {
13144
- "kind": "field",
13145
- "name": "date",
13146
- "type": {
13147
- "text": "Date"
13148
- }
13149
- },
13150
- {
13151
- "kind": "field",
13152
- "name": "day",
13153
- "type": {
13154
- "text": "string"
13155
- }
13156
- },
13157
- {
13158
- "kind": "field",
13159
- "name": "dayNumber",
13160
- "type": {
13161
- "text": "number"
13162
- }
13163
- },
13164
- {
13165
- "kind": "field",
13166
- "name": "dayShort",
13167
- "type": {
13168
- "text": "string"
13169
- }
13170
- },
13171
- {
13172
- "kind": "field",
13173
- "name": "year",
13174
- "type": {
13175
- "text": "number"
13176
- }
13177
- },
13178
- {
13179
- "kind": "field",
13180
- "name": "yearShort",
13181
- "type": {
13182
- "text": "number"
13183
- }
13184
- },
13185
- {
13186
- "kind": "field",
13187
- "name": "month",
13188
- "type": {
13189
- "text": "string"
13190
- }
13191
- },
13192
- {
13193
- "kind": "field",
13194
- "name": "monthShort",
13195
- "type": {
13196
- "text": "string"
13197
- }
13198
- },
13199
- {
13200
- "kind": "field",
13201
- "name": "monthNumber",
13202
- "type": {
13203
- "text": "number"
13204
- }
13205
- },
13206
- {
13207
- "kind": "field",
13208
- "name": "timestamp",
13209
- "type": {
13210
- "text": "number"
13211
- }
13212
- },
13213
- {
13214
- "kind": "field",
13215
- "name": "week",
13216
- "type": {
13217
- "text": "number"
13218
- }
13219
- },
13220
- {
13221
- "kind": "field"
13222
- }
13223
- ]
13224
- }
13225
- ],
13226
- "exports": [
13227
- {
13228
- "kind": "js",
13229
- "name": "default",
13230
- "declaration": {
13231
- "name": "Day",
13232
- "module": "src/date-picker/day.ts"
13233
- }
13234
- }
13235
- ]
13236
- },
13237
- {
13238
- "kind": "javascript-module",
13239
- "path": "src/date-picker/index.ts",
13240
- "declarations": [],
13241
- "exports": [
13383
+ },
13242
13384
  {
13243
13385
  "kind": "js",
13244
- "name": "*",
13245
- "declaration": {
13246
- "name": "*",
13247
- "package": "./date-picker.styles"
13248
- }
13249
- },
13250
- {
13251
- "kind": "js",
13252
- "name": "*",
13253
- "declaration": {
13254
- "name": "*",
13255
- "package": "./date-picker.template"
13256
- }
13257
- },
13258
- {
13259
- "kind": "js",
13260
- "name": "*",
13261
- "declaration": {
13262
- "name": "*",
13263
- "package": "./date-picker"
13264
- }
13265
- }
13266
- ]
13267
- },
13268
- {
13269
- "kind": "javascript-module",
13270
- "path": "src/date-picker/month.ts",
13271
- "declarations": [
13272
- {
13273
- "kind": "class",
13274
- "description": "",
13275
- "name": "Month",
13276
- "members": [
13277
- {
13278
- "kind": "field",
13279
- "name": "lang",
13280
- "type": {
13281
- "text": "string"
13282
- },
13283
- "default": "lang"
13284
- },
13285
- {
13286
- "kind": "field",
13287
- "name": "name",
13288
- "type": {
13289
- "text": "string"
13290
- }
13291
- },
13292
- {
13293
- "kind": "field",
13294
- "name": "number",
13295
- "type": {
13296
- "text": "number"
13297
- }
13298
- },
13299
- {
13300
- "kind": "field",
13301
- "name": "year",
13302
- "type": {
13303
- "text": "number"
13304
- }
13305
- },
13306
- {
13307
- "kind": "field",
13308
- "name": "numberOfDays",
13309
- "type": {
13310
- "text": "number"
13311
- },
13312
- "default": "monthSize[this.number - 1]"
13313
- },
13314
- {
13315
- "kind": "method",
13316
- "name": "getDay",
13317
- "parameters": [
13318
- {
13319
- "name": "date"
13320
- }
13321
- ]
13322
- }
13323
- ]
13324
- }
13325
- ],
13326
- "exports": [
13327
- {
13328
- "kind": "js",
13329
- "name": "default",
13330
- "declaration": {
13331
- "name": "Month",
13332
- "module": "src/date-picker/month.ts"
13333
- }
13334
- }
13335
- ]
13336
- },
13337
- {
13338
- "kind": "javascript-module",
13339
- "path": "src/design-system-provider/design-system-provider.styles.ts",
13340
- "declarations": [
13341
- {
13342
- "kind": "function",
13343
- "name": "designSystemProviderStyles",
13344
- "parameters": [
13345
- {
13346
- "name": "context",
13347
- "type": {
13348
- "text": "ElementDefinitionContext"
13349
- }
13350
- }
13351
- ]
13352
- }
13353
- ],
13354
- "exports": [
13355
- {
13356
- "kind": "js",
13357
- "name": "designSystemProviderStyles",
13358
- "declaration": {
13359
- "name": "designSystemProviderStyles",
13360
- "module": "src/design-system-provider/design-system-provider.styles.ts"
13361
- }
13362
- }
13363
- ]
13364
- },
13365
- {
13366
- "kind": "javascript-module",
13367
- "path": "src/design-system-provider/design-system-provider.ts",
13368
- "declarations": [
13369
- {
13370
- "kind": "class",
13371
- "description": "The Foundation Design System Provider",
13372
- "name": "FoundationDesignSystemProvider",
13373
- "members": [
13374
- {
13375
- "kind": "field",
13376
- "name": "cardFillColor",
13377
- "type": {
13378
- "text": "Swatch"
13379
- },
13380
- "privacy": "public"
13381
- },
13382
- {
13383
- "kind": "field",
13384
- "name": "cardForegroundColor",
13385
- "type": {
13386
- "text": "Swatch"
13387
- },
13388
- "privacy": "public"
13389
- }
13390
- ],
13391
- "attributes": [
13392
- {
13393
- "name": "card-fill-color",
13394
- "type": {
13395
- "text": "Swatch"
13396
- },
13397
- "fieldName": "cardFillColor"
13398
- },
13399
- {
13400
- "name": "card-foreground-color",
13401
- "type": {
13402
- "text": "Swatch"
13403
- },
13404
- "fieldName": "cardForegroundColor"
13405
- }
13406
- ],
13407
- "superclass": {
13408
- "name": "FASTDesignSystemProvider",
13409
- "package": "@microsoft/fast-components"
13410
- },
13411
- "tagName": "%%prefix%%-design-system-provider",
13412
- "customElement": true
13413
- },
13414
- {
13415
- "kind": "variable",
13416
- "name": "foundationDesignSystemProvider",
13417
- "description": "The Foundation Design System Provider composed element",
13418
- "privacy": "public"
13419
- }
13420
- ],
13421
- "exports": [
13422
- {
13423
- "kind": "js",
13424
- "name": "FoundationDesignSystemProvider",
13425
- "declaration": {
13426
- "name": "FoundationDesignSystemProvider",
13427
- "module": "src/design-system-provider/design-system-provider.ts"
13428
- }
13429
- },
13430
- {
13431
- "kind": "js",
13432
- "name": "foundationDesignSystemProvider",
13433
- "declaration": {
13434
- "name": "foundationDesignSystemProvider",
13435
- "module": "src/design-system-provider/design-system-provider.ts"
13436
- }
13437
- }
13438
- ]
13439
- },
13440
- {
13441
- "kind": "javascript-module",
13442
- "path": "src/design-system-provider/design-system-provider.utils.ts",
13443
- "declarations": [
13444
- {
13445
- "kind": "function",
13446
- "name": "provideTokens",
13447
- "parameters": [
13448
- {
13449
- "name": "tokens"
13450
- },
13451
- {
13452
- "name": "values"
13453
- },
13454
- {
13455
- "name": "element",
13456
- "optional": true,
13457
- "type": {
13458
- "text": "HTMLElement"
13459
- }
13460
- }
13461
- ]
13462
- },
13463
- {
13464
- "kind": "function",
13465
- "name": "designToken",
13466
- "parameters": [
13467
- {
13468
- "name": "token",
13469
- "type": {
13470
- "text": "DesignToken<T>"
13471
- }
13472
- }
13473
- ]
13474
- },
13475
- {
13476
- "kind": "variable",
13477
- "name": "swatchConverter",
13478
- "type": {
13479
- "text": "ValueConverter"
13480
- },
13481
- "default": "{\n toView(value: any): string | null {\n if (value === null || value === undefined) {\n return null;\n }\n return (value as Swatch)?.toColorString();\n },\n\n fromView(value: any): any {\n if (value === null || value === undefined) {\n return null;\n }\n const color = parseColorHexRGB(value);\n return color ? SwatchRGB.create(color!.r, color!.g, color!.b) : null;\n },\n}"
13482
- },
13483
- {
13484
- "kind": "function",
13485
- "name": "paletteFromHex",
13486
- "parameters": [
13487
- {
13488
- "name": "hexColor",
13489
- "type": {
13490
- "text": "string"
13491
- }
13492
- }
13493
- ]
13494
- },
13495
- {
13496
- "kind": "function",
13497
- "name": "getDefaultConfig",
13498
- "parameters": [
13499
- {
13500
- "name": "definition",
13501
- "type": {
13502
- "text": "Partial<FoundationElementDefinition>"
13503
- }
13504
- },
13505
- {
13506
- "name": "exclusions",
13507
- "default": "defaultExclusions"
13508
- }
13509
- ]
13510
- },
13511
- {
13512
- "kind": "function",
13513
- "name": "getExports",
13514
- "parameters": [
13515
- {
13516
- "name": "registrationFunction"
13517
- }
13518
- ]
13519
- },
13520
- {
13521
- "kind": "function",
13522
- "name": "getTypeRampValue",
13523
- "parameters": [
13524
- {
13525
- "name": "baseTypeRamp",
13526
- "type": {
13527
- "text": "string"
13528
- }
13529
- },
13530
- {
13531
- "name": "value",
13532
- "type": {
13533
- "text": "number"
13534
- }
13535
- }
13536
- ]
13537
- },
13538
- {
13539
- "kind": "function",
13540
- "name": "configureDesignSystem",
13541
- "parameters": [
13542
- {
13543
- "name": "provider",
13544
- "type": {
13545
- "text": "HTMLElement"
13546
- }
13547
- },
13548
- {
13549
- "name": "config",
13550
- "type": {
13551
- "text": "DesignTokensConfig"
13552
- }
13553
- }
13554
- ]
13555
- }
13556
- ],
13557
- "exports": [
13558
- {
13559
- "kind": "js",
13560
- "name": "provideTokens",
13561
- "declaration": {
13562
- "name": "provideTokens",
13563
- "module": "src/design-system-provider/design-system-provider.utils.ts"
13564
- }
13565
- },
13566
- {
13567
- "kind": "js",
13568
- "name": "designToken",
13569
- "declaration": {
13570
- "name": "designToken",
13571
- "module": "src/design-system-provider/design-system-provider.utils.ts"
13572
- }
13573
- },
13574
- {
13575
- "kind": "js",
13576
- "name": "swatchConverter",
13577
- "declaration": {
13578
- "name": "swatchConverter",
13579
- "module": "src/design-system-provider/design-system-provider.utils.ts"
13580
- }
13581
- },
13582
- {
13583
- "kind": "js",
13584
- "name": "paletteFromHex",
13585
- "declaration": {
13586
- "name": "paletteFromHex",
13587
- "module": "src/design-system-provider/design-system-provider.utils.ts"
13588
- }
13589
- },
13590
- {
13591
- "kind": "js",
13592
- "name": "getDefaultConfig",
13593
- "declaration": {
13594
- "name": "getDefaultConfig",
13595
- "module": "src/design-system-provider/design-system-provider.utils.ts"
13596
- }
13597
- },
13598
- {
13599
- "kind": "js",
13600
- "name": "getExports",
13601
- "declaration": {
13602
- "name": "getExports",
13603
- "module": "src/design-system-provider/design-system-provider.utils.ts"
13604
- }
13605
- },
13606
- {
13607
- "kind": "js",
13608
- "name": "getTypeRampValue",
13609
- "declaration": {
13610
- "name": "getTypeRampValue",
13611
- "module": "src/design-system-provider/design-system-provider.utils.ts"
13612
- }
13613
- },
13614
- {
13615
- "kind": "js",
13616
- "name": "configureDesignSystem",
13617
- "declaration": {
13618
- "name": "configureDesignSystem",
13619
- "module": "src/design-system-provider/design-system-provider.utils.ts"
13620
- }
13621
- }
13622
- ]
13623
- },
13624
- {
13625
- "kind": "javascript-module",
13626
- "path": "src/design-system-provider/index.ts",
13627
- "declarations": [],
13628
- "exports": [
13629
- {
13630
- "kind": "js",
13631
- "name": "*",
13632
- "declaration": {
13633
- "name": "*",
13634
- "package": "./design-system-provider.utils"
13635
- }
13636
- },
13637
- {
13638
- "kind": "js",
13639
- "name": "*",
13640
- "declaration": {
13641
- "name": "*",
13642
- "package": "./design-system-provider"
13643
- }
13644
- },
13645
- {
13646
- "kind": "js",
13647
- "name": "*",
13648
- "declaration": {
13649
- "name": "*",
13650
- "package": "./types"
13651
- }
13652
- }
13653
- ]
13654
- },
13655
- {
13656
- "kind": "javascript-module",
13657
- "path": "src/design-system-provider/types.ts",
13658
- "declarations": [],
13659
- "exports": []
13660
- },
13661
- {
13662
- "kind": "javascript-module",
13663
- "path": "src/dialog/dialog.styles.ts",
13664
- "declarations": [
13665
- {
13666
- "kind": "variable",
13667
- "name": "foundationDialogStyles",
13668
- "type": {
13669
- "text": "ElementStyles"
13670
- },
13671
- "default": "css`\n dialog[type='error'],\n dialog[type='success'] {\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)\n calc(var(--design-unit) * 2px) calc(var(--design-unit) * 6px);\n }\n\n dialog[type='error']::before,\n dialog[type='success']::before {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: calc(var(--design-unit) * 3px - 2px);\n height: calc(100% - (var(--design-unit) * 4px));\n width: 4px;\n border-radius: 2px;\n }\n\n dialog[type='error']::before {\n background-color: var(--color-error);\n }\n\n dialog[type='success']::before {\n background-color: var(--color-success);\n }\n :host {\n --dialog-min-width: 358px;\n --notification-details-min-height: 40px;\n }\n\n .close-icon {\n position: absolute;\n right: calc(var(--design-unit) * 2px);\n top: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon svg {\n border-radius: calc(var(--control-corner-radius) * 1px);\n padding: calc(var(--design-unit) * 2px);\n }\n\n dialog {\n background-color: var(--dialog-background, var(--fill-color));\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)\n calc(var(--design-unit) * 4px);\n overflow: inherit;\n }\n\n :host([position='right']) dialog .content-wrapper,\n :host([position='left']) dialog .content-wrapper,\n :host([position='left']) dialog,\n :host([position='right']) dialog {\n height: 100%;\n }\n\n :host([position='left']) dialog {\n margin-left: 0;\n }\n\n :host([position='right']) dialog {\n margin-right: 0;\n }\n\n ::slotted(zero-divider) {\n width: 100%;\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--notification-details-min-height);\n }\n`"
13672
- }
13673
- ],
13674
- "exports": [
13675
- {
13676
- "kind": "js",
13677
- "name": "foundationDialogStyles",
13386
+ "name": "foundationDialog",
13678
13387
  "declaration": {
13679
- "name": "foundationDialogStyles",
13680
- "module": "src/dialog/dialog.styles.ts"
13388
+ "name": "foundationDialog",
13389
+ "module": "src/dialog/dialog.ts"
13681
13390
  }
13682
13391
  }
13683
- ]
13684
- },
13685
- {
13686
- "kind": "javascript-module",
13687
- "path": "src/dialog/dialog.template.ts",
13688
- "declarations": [
13689
- {
13690
- "kind": "function",
13691
- "name": "getDialogTemplate",
13692
- "parameters": [
13693
- {
13694
- "name": "prefix",
13695
- "type": {
13696
- "text": "string"
13697
- }
13698
- }
13699
- ]
13700
- },
13701
- {
13702
- "kind": "variable",
13703
- "name": "foundationDialogTemplate",
13704
- "default": "html<Dialog>`\n ${(x) => getDialogTemplate(getPrefix(x))}\n`"
13705
- }
13706
- ],
13392
+ ]
13393
+ },
13394
+ {
13395
+ "kind": "javascript-module",
13396
+ "path": "src/dialog/index.ts",
13397
+ "declarations": [],
13707
13398
  "exports": [
13708
13399
  {
13709
13400
  "kind": "js",
13710
- "name": "getDialogTemplate",
13401
+ "name": "*",
13711
13402
  "declaration": {
13712
- "name": "getDialogTemplate",
13713
- "module": "src/dialog/dialog.template.ts"
13403
+ "name": "*",
13404
+ "package": "./dialog.styles"
13714
13405
  }
13715
13406
  },
13716
13407
  {
13717
13408
  "kind": "js",
13718
- "name": "foundationDialogTemplate",
13409
+ "name": "*",
13719
13410
  "declaration": {
13720
- "name": "foundationDialogTemplate",
13721
- "module": "src/dialog/dialog.template.ts"
13411
+ "name": "*",
13412
+ "package": "./dialog.template"
13413
+ }
13414
+ },
13415
+ {
13416
+ "kind": "js",
13417
+ "name": "*",
13418
+ "declaration": {
13419
+ "name": "*",
13420
+ "package": "./dialog"
13722
13421
  }
13723
13422
  }
13724
13423
  ]
13725
13424
  },
13726
13425
  {
13727
13426
  "kind": "javascript-module",
13728
- "path": "src/dialog/dialog.ts",
13427
+ "path": "src/date-picker/calendar.ts",
13729
13428
  "declarations": [
13730
- {
13731
- "kind": "variable",
13732
- "name": "foundationDialogShadowOptions",
13733
- "type": {
13734
- "text": "ShadowRootInit"
13735
- },
13736
- "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
13737
- },
13738
- {
13739
- "kind": "variable",
13740
- "name": "defaultDialogConfig",
13741
- "type": {
13742
- "text": "object"
13743
- },
13744
- "default": "{}"
13745
- },
13746
13429
  {
13747
13430
  "kind": "class",
13748
13431
  "description": "",
13749
- "name": "DialogElement",
13432
+ "name": "Calendar",
13750
13433
  "members": [
13751
13434
  {
13752
13435
  "kind": "field",
13753
- "name": "mainElement",
13436
+ "name": "today",
13754
13437
  "type": {
13755
- "text": "HTMLDialogElement"
13438
+ "text": "any"
13756
13439
  },
13757
- "description": "A reference to the dialog element\nin the component Shadow DOM."
13440
+ "default": "new Day(null, lang)"
13758
13441
  },
13759
13442
  {
13760
13443
  "kind": "field",
13761
- "name": "notification",
13444
+ "name": "year",
13762
13445
  "type": {
13763
- "text": "NotificationStructure"
13446
+ "text": "number"
13764
13447
  }
13765
13448
  },
13766
- {
13767
- "kind": "method",
13768
- "name": "notificationChanged"
13769
- },
13770
13449
  {
13771
13450
  "kind": "field",
13772
- "name": "type",
13451
+ "name": "month",
13773
13452
  "type": {
13774
- "text": "DialogType"
13453
+ "text": "any"
13775
13454
  },
13776
- "default": "'default'"
13455
+ "default": "new Month(new Date(this.year, (monthNumber || this.today.monthNumber) - 1), lang)"
13777
13456
  },
13778
13457
  {
13779
13458
  "kind": "field",
13780
- "name": "position",
13459
+ "name": "lang",
13781
13460
  "type": {
13782
- "text": "DialogPosition"
13461
+ "text": "string"
13783
13462
  },
13784
- "default": "'center'"
13463
+ "default": "lang"
13785
13464
  },
13786
13465
  {
13787
13466
  "kind": "field",
13788
- "name": "showCloseIcon",
13789
- "type": {
13790
- "text": "boolean"
13791
- },
13792
- "default": "true",
13793
- "description": "Whether or not to show the close icon"
13467
+ "name": "weekDays"
13794
13468
  },
13795
13469
  {
13796
- "kind": "field",
13797
- "name": "onShowCallback",
13798
- "type": {
13799
- "text": "() => void"
13800
- },
13801
- "description": "Callback to run *before* HTMLDialogElement is shown"
13470
+ "kind": "method",
13471
+ "name": "getMonth",
13472
+ "parameters": [
13473
+ {
13474
+ "name": "monthNumber"
13475
+ }
13476
+ ]
13802
13477
  },
13803
13478
  {
13804
- "kind": "field",
13805
- "name": "onCloseCallback",
13806
- "type": {
13807
- "text": "() => void"
13808
- },
13809
- "description": "Callback to run *after* HTMLDialogElement is closed"
13479
+ "kind": "method",
13480
+ "name": "getPreviousMonth"
13810
13481
  },
13811
13482
  {
13812
- "kind": "field",
13813
- "name": "open",
13814
- "type": {
13815
- "text": "boolean"
13816
- },
13817
- "description": "Determine if the dialog is showing or closed.",
13818
- "readonly": true
13483
+ "kind": "method",
13484
+ "name": "getNextMonth"
13819
13485
  },
13820
13486
  {
13821
13487
  "kind": "method",
13822
- "name": "show",
13823
- "return": {
13824
- "type": {
13825
- "text": "void"
13488
+ "name": "goToDate",
13489
+ "parameters": [
13490
+ {
13491
+ "name": "monthNumber"
13492
+ },
13493
+ {
13494
+ "name": "year"
13826
13495
  }
13827
- },
13828
- "description": "Show the HTMLDialogElement and its contents"
13496
+ ]
13829
13497
  },
13830
13498
  {
13831
13499
  "kind": "method",
13832
- "name": "close",
13833
- "return": {
13834
- "type": {
13835
- "text": "void"
13836
- }
13837
- },
13838
- "description": "Remove the HTMLDialogElement from display"
13500
+ "name": "goToNextYear"
13839
13501
  },
13840
13502
  {
13841
13503
  "kind": "method",
13842
- "name": "dismiss",
13843
- "privacy": "public",
13844
- "description": "Dismiss the Dialog from display and calls the dismissing action."
13504
+ "name": "goToPreviousYear"
13845
13505
  },
13846
13506
  {
13847
13507
  "kind": "method",
13848
- "name": "closeDialog",
13849
- "privacy": "public",
13850
- "return": {
13851
- "type": {
13852
- "text": "void"
13853
- }
13854
- },
13855
- "description": "Dismiss the Dialog from display."
13508
+ "name": "goToNextMonth"
13509
+ },
13510
+ {
13511
+ "kind": "method",
13512
+ "name": "goToPreviousMonth"
13856
13513
  },
13857
13514
  {
13858
13515
  "kind": "field",
@@ -13965,201 +13622,331 @@
13965
13622
  "module": "src/foundation-element/foundation-element.ts"
13966
13623
  }
13967
13624
  }
13968
- ],
13969
- "attributes": [
13625
+ ]
13626
+ }
13627
+ ],
13628
+ "exports": [
13629
+ {
13630
+ "kind": "js",
13631
+ "name": "default",
13632
+ "declaration": {
13633
+ "name": "Calendar",
13634
+ "module": "src/date-picker/calendar.ts"
13635
+ }
13636
+ }
13637
+ ]
13638
+ },
13639
+ {
13640
+ "kind": "javascript-module",
13641
+ "path": "src/date-picker/date-picker.styles.ts",
13642
+ "declarations": [
13643
+ {
13644
+ "kind": "variable",
13645
+ "name": "foundationDatePickerStyles",
13646
+ "type": {
13647
+ "text": "ElementStyles"
13648
+ },
13649
+ "default": "css`\n :host {\n position: relative;\n }\n\n .date-toggle::part(control) {\n cursor: pointer;\n }\n\n .date-toggle::part(label) {\n cursor: pointer;\n }\n\n .calendar-dropdown {\n display: none;\n width: 300px;\n z-index: 999;\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, 8px);\n margin: 10px 0 0;\n padding: 20px;\n background: var(--neutral-foreground-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n box-shadow: 0 0 8px rgb(0 0 0 / 20%);\n }\n\n .calendar-dropdown.top {\n top: auto;\n bottom: 100%;\n margin: 0 0 5px;\n transform: translate(-50%, -8px);\n }\n\n .calendar-dropdown.left {\n top: 50%;\n left: 0;\n margin: 0 0 0 5px;\n transform: translate(calc(-8px + -100%), -50%);\n }\n\n .calendar-dropdown.right {\n top: 50%;\n left: 100%;\n transform: translate(8px, -50%);\n }\n\n .calendar-dropdown.visible {\n display: block;\n }\n\n .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0 0 10px;\n }\n\n .header h3 {\n margin: 0;\n text-transform: capitalize;\n font-weight: bold;\n color: var(--foreground-on-accent-rest);\n }\n\n .header .months-arrows {\n display: flex;\n flex-direction: row;\n }\n\n .header .icon-container {\n display: flex;\n width: 25px;\n height: 25px;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n }\n\n .header .icon-container:first-child {\n margin-right: calc(var(--design-unit) * 2px);\n }\n\n .header .prev-month,\n .header .next-month {\n color: var(--foreground-on-accent-rest);\n font-size: 18px;\n }\n\n .week-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n margin-bottom: 10px;\n color: var(--foreground-on-accent-rest);\n }\n\n .week-days span {\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: bold;\n text-transform: capitalize;\n }\n\n .month-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n }\n\n .month-day {\n padding: 8px 5px;\n color: #808080;\n background: none;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: calc(var(--control-corner-radius) * 4px);\n cursor: pointer;\n border: none;\n }\n\n .month-day.current {\n opacity: 100%;\n color: var(--foreground-on-accent-rest);\n }\n\n .month-day.selected {\n background: var(--accent-foreground-rest);\n color: var(--neutral-foreground-rest);\n }\n\n .month-day:hover {\n background: var(--neutral-stroke-hover);\n color: (--neutral-foreground-rest);\n }\n\n .date-toggle[readonly] .label {\n cursor: pointer;\n }\n`"
13650
+ }
13651
+ ],
13652
+ "exports": [
13653
+ {
13654
+ "kind": "js",
13655
+ "name": "foundationDatePickerStyles",
13656
+ "declaration": {
13657
+ "name": "foundationDatePickerStyles",
13658
+ "module": "src/date-picker/date-picker.styles.ts"
13659
+ }
13660
+ }
13661
+ ]
13662
+ },
13663
+ {
13664
+ "kind": "javascript-module",
13665
+ "path": "src/date-picker/date-picker.template.ts",
13666
+ "declarations": [
13667
+ {
13668
+ "kind": "function",
13669
+ "name": "getPrefixedDatePicker",
13670
+ "parameters": [
13970
13671
  {
13971
- "name": "type",
13672
+ "name": "prefix",
13673
+ "type": {
13674
+ "text": "string"
13675
+ }
13676
+ }
13677
+ ]
13678
+ },
13679
+ {
13680
+ "kind": "variable",
13681
+ "name": "foundationDatePickerTemplate",
13682
+ "default": "html<DatePicker>`\n ${(x) => getPrefixedDatePicker(getPrefix(x))}\n`"
13683
+ }
13684
+ ],
13685
+ "exports": [
13686
+ {
13687
+ "kind": "js",
13688
+ "name": "getPrefixedDatePicker",
13689
+ "declaration": {
13690
+ "name": "getPrefixedDatePicker",
13691
+ "module": "src/date-picker/date-picker.template.ts"
13692
+ }
13693
+ },
13694
+ {
13695
+ "kind": "js",
13696
+ "name": "foundationDatePickerTemplate",
13697
+ "declaration": {
13698
+ "name": "foundationDatePickerTemplate",
13699
+ "module": "src/date-picker/date-picker.template.ts"
13700
+ }
13701
+ }
13702
+ ]
13703
+ },
13704
+ {
13705
+ "kind": "javascript-module",
13706
+ "path": "src/date-picker/date-picker.ts",
13707
+ "declarations": [
13708
+ {
13709
+ "kind": "variable",
13710
+ "name": "foundationDatePickerShadowOptions",
13711
+ "type": {
13712
+ "text": "ShadowRootInit"
13713
+ },
13714
+ "default": "undefined"
13715
+ },
13716
+ {
13717
+ "kind": "variable",
13718
+ "name": "defaultDatePickerConfig",
13719
+ "type": {
13720
+ "text": "object"
13721
+ },
13722
+ "default": "{}"
13723
+ },
13724
+ {
13725
+ "kind": "class",
13726
+ "description": "",
13727
+ "name": "DatePicker",
13728
+ "members": [
13729
+ {
13730
+ "kind": "field",
13731
+ "name": "format",
13972
13732
  "type": {
13973
- "text": "DialogType"
13733
+ "text": "string"
13974
13734
  },
13975
- "default": "'default'",
13976
- "fieldName": "type"
13735
+ "default": "'MM-DD-YYYY'"
13977
13736
  },
13978
13737
  {
13979
- "name": "position",
13738
+ "kind": "method",
13739
+ "name": "formatChanged",
13740
+ "parameters": [
13741
+ {
13742
+ "name": "oldValue",
13743
+ "type": {
13744
+ "text": "string"
13745
+ }
13746
+ },
13747
+ {
13748
+ "name": "newValue",
13749
+ "type": {
13750
+ "text": "string"
13751
+ }
13752
+ }
13753
+ ]
13754
+ },
13755
+ {
13756
+ "kind": "field",
13757
+ "name": "lang",
13980
13758
  "type": {
13981
- "text": "DialogPosition"
13759
+ "text": "string"
13982
13760
  },
13983
- "default": "'center'",
13984
- "fieldName": "position"
13761
+ "default": "'en-US'"
13985
13762
  },
13986
13763
  {
13987
- "name": "show-close-icon",
13764
+ "kind": "field",
13765
+ "name": "visible",
13988
13766
  "type": {
13989
13767
  "text": "boolean"
13990
13768
  },
13991
- "default": "true",
13992
- "description": "Whether or not to show the close icon",
13993
- "fieldName": "showCloseIcon"
13994
- }
13995
- ],
13996
- "superclass": {
13997
- "name": "FoundationElement",
13998
- "package": "@microsoft/fast-foundation"
13999
- }
14000
- },
14001
- {
14002
- "kind": "class",
14003
- "description": "",
14004
- "name": "Dialog",
14005
- "members": [
13769
+ "default": "false"
13770
+ },
13771
+ {
13772
+ "kind": "field",
13773
+ "name": "position",
13774
+ "type": {
13775
+ "text": "string"
13776
+ },
13777
+ "default": "'bottom'"
13778
+ },
13779
+ {
13780
+ "kind": "field",
13781
+ "name": "label",
13782
+ "type": {
13783
+ "text": "string"
13784
+ }
13785
+ },
13786
+ {
13787
+ "kind": "field",
13788
+ "name": "value",
13789
+ "type": {
13790
+ "text": "string"
13791
+ }
13792
+ },
14006
13793
  {
14007
13794
  "kind": "method",
14008
- "name": "show",
14009
- "return": {
14010
- "type": {
14011
- "text": "void"
13795
+ "name": "valueChanged",
13796
+ "parameters": [
13797
+ {
13798
+ "name": "oldValue",
13799
+ "type": {
13800
+ "text": "string"
13801
+ }
13802
+ },
13803
+ {
13804
+ "name": "newValue",
13805
+ "type": {
13806
+ "text": "string"
13807
+ }
14012
13808
  }
13809
+ ]
13810
+ },
13811
+ {
13812
+ "kind": "field",
13813
+ "name": "currentDate",
13814
+ "type": {
13815
+ "text": "any"
14013
13816
  },
14014
- "description": "Show the HTMLDialogElement and its contents",
14015
- "inheritedFrom": {
14016
- "name": "<local>_DialogElement",
14017
- "module": "src/dialog/dialog.ts"
13817
+ "default": "new Day(dayjsDate.toDate(), this.lang)"
13818
+ },
13819
+ {
13820
+ "kind": "field",
13821
+ "name": "currentMonth",
13822
+ "type": {
13823
+ "text": "Calendar"
14018
13824
  }
14019
13825
  },
14020
13826
  {
14021
13827
  "kind": "field",
14022
- "name": "mainElement",
13828
+ "name": "currentYear",
14023
13829
  "type": {
14024
- "text": "HTMLDialogElement"
14025
- },
14026
- "description": "A reference to the dialog element\nin the component Shadow DOM.",
14027
- "inheritedFrom": {
14028
- "name": "<local>_DialogElement",
14029
- "module": "src/dialog/dialog.ts"
13830
+ "text": "number"
14030
13831
  }
14031
13832
  },
14032
13833
  {
14033
13834
  "kind": "field",
14034
- "name": "notification",
13835
+ "name": "calendarDropdownClasses",
14035
13836
  "type": {
14036
- "text": "NotificationStructure"
14037
- },
14038
- "inheritedFrom": {
14039
- "name": "<local>_DialogElement",
14040
- "module": "src/dialog/dialog.ts"
13837
+ "text": "String"
14041
13838
  }
14042
13839
  },
14043
13840
  {
14044
- "kind": "method",
14045
- "name": "notificationChanged",
14046
- "inheritedFrom": {
14047
- "name": "<local>_DialogElement",
14048
- "module": "src/dialog/dialog.ts"
13841
+ "kind": "field",
13842
+ "name": "formatDate",
13843
+ "type": {
13844
+ "text": "string"
14049
13845
  }
14050
13846
  },
14051
13847
  {
14052
13848
  "kind": "field",
14053
- "name": "type",
13849
+ "name": "monthList",
14054
13850
  "type": {
14055
- "text": "DialogType"
14056
- },
14057
- "default": "'default'",
14058
- "inheritedFrom": {
14059
- "name": "<local>_DialogElement",
14060
- "module": "src/dialog/dialog.ts"
13851
+ "text": "any"
14061
13852
  }
14062
13853
  },
14063
13854
  {
14064
13855
  "kind": "field",
14065
- "name": "position",
13856
+ "name": "calendar",
14066
13857
  "type": {
14067
- "text": "DialogPosition"
13858
+ "text": "Calendar"
14068
13859
  },
14069
- "default": "'center'",
14070
- "inheritedFrom": {
14071
- "name": "<local>_DialogElement",
14072
- "module": "src/dialog/dialog.ts"
13860
+ "default": "new Calendar(this.currentDate.year, this.currentDate.monthNumber, this.lang)"
13861
+ },
13862
+ {
13863
+ "kind": "field",
13864
+ "name": "toggleButton",
13865
+ "type": {
13866
+ "text": "HTMLElement"
14073
13867
  }
14074
13868
  },
14075
13869
  {
14076
13870
  "kind": "field",
14077
- "name": "showCloseIcon",
13871
+ "name": "calendarDaysContainer",
14078
13872
  "type": {
14079
- "text": "boolean"
14080
- },
14081
- "default": "true",
14082
- "description": "Whether or not to show the close icon",
14083
- "inheritedFrom": {
14084
- "name": "<local>_DialogElement",
14085
- "module": "src/dialog/dialog.ts"
13873
+ "text": "HTMLElement"
14086
13874
  }
14087
13875
  },
14088
13876
  {
14089
13877
  "kind": "field",
14090
- "name": "onShowCallback",
13878
+ "name": "selectedDayElement",
14091
13879
  "type": {
14092
- "text": "() => void"
14093
- },
14094
- "description": "Callback to run *before* HTMLDialogElement is shown",
14095
- "inheritedFrom": {
14096
- "name": "<local>_DialogElement",
14097
- "module": "src/dialog/dialog.ts"
13880
+ "text": "HTMLElement"
14098
13881
  }
14099
13882
  },
14100
13883
  {
14101
13884
  "kind": "field",
14102
- "name": "onCloseCallback",
13885
+ "name": "prevBtn",
14103
13886
  "type": {
14104
- "text": "() => void"
14105
- },
14106
- "description": "Callback to run *after* HTMLDialogElement is closed",
14107
- "inheritedFrom": {
14108
- "name": "<local>_DialogElement",
14109
- "module": "src/dialog/dialog.ts"
13887
+ "text": "HTMLElement"
14110
13888
  }
14111
13889
  },
14112
13890
  {
14113
13891
  "kind": "field",
14114
- "name": "open",
13892
+ "name": "nextBtn",
14115
13893
  "type": {
14116
- "text": "boolean"
14117
- },
14118
- "description": "Determine if the dialog is showing or closed.",
14119
- "readonly": true,
14120
- "inheritedFrom": {
14121
- "name": "<local>_DialogElement",
14122
- "module": "src/dialog/dialog.ts"
13894
+ "text": "HTMLElement"
14123
13895
  }
14124
13896
  },
13897
+ {
13898
+ "kind": "field",
13899
+ "name": "substringNumber",
13900
+ "type": {
13901
+ "text": "number"
13902
+ },
13903
+ "default": "3"
13904
+ },
14125
13905
  {
14126
13906
  "kind": "method",
14127
- "name": "close",
14128
- "return": {
14129
- "type": {
14130
- "text": "void"
13907
+ "name": "updateHeaderText"
13908
+ },
13909
+ {
13910
+ "kind": "method",
13911
+ "name": "toggleCalendar"
13912
+ },
13913
+ {
13914
+ "kind": "method",
13915
+ "name": "toggleVisibility"
13916
+ },
13917
+ {
13918
+ "kind": "method",
13919
+ "name": "isSelectedDate",
13920
+ "parameters": [
13921
+ {
13922
+ "name": "date"
14131
13923
  }
14132
- },
14133
- "description": "Remove the HTMLDialogElement from display",
14134
- "inheritedFrom": {
14135
- "name": "<local>_DialogElement",
14136
- "module": "src/dialog/dialog.ts"
14137
- }
13924
+ ]
14138
13925
  },
14139
13926
  {
14140
13927
  "kind": "method",
14141
- "name": "dismiss",
14142
- "privacy": "public",
14143
- "description": "Dismiss the Dialog from display and calls the dismissing action.",
14144
- "inheritedFrom": {
14145
- "name": "<local>_DialogElement",
14146
- "module": "src/dialog/dialog.ts"
14147
- }
13928
+ "name": "isCurrentCalendarMonth"
14148
13929
  },
14149
13930
  {
14150
13931
  "kind": "method",
14151
- "name": "closeDialog",
14152
- "privacy": "public",
14153
- "return": {
14154
- "type": {
14155
- "text": "void"
13932
+ "name": "prevMonth"
13933
+ },
13934
+ {
13935
+ "kind": "method",
13936
+ "name": "nextMonth"
13937
+ },
13938
+ {
13939
+ "kind": "method",
13940
+ "name": "selectDay",
13941
+ "parameters": [
13942
+ {
13943
+ "name": "day"
14156
13944
  }
14157
- },
14158
- "description": "Dismiss the Dialog from display.",
14159
- "inheritedFrom": {
14160
- "name": "<local>_DialogElement",
14161
- "module": "src/dialog/dialog.ts"
14162
- }
13945
+ ]
13946
+ },
13947
+ {
13948
+ "kind": "method",
13949
+ "name": "getMonthDaysGrid"
14163
13950
  },
14164
13951
  {
14165
13952
  "kind": "field",
@@ -14273,111 +14060,217 @@
14273
14060
  }
14274
14061
  }
14275
14062
  ],
14276
- "superclass": {
14277
- "name": "DialogElement",
14278
- "module": "src/dialog/dialog.ts"
14279
- },
14280
- "tagName": "%%prefix%%-dialog",
14281
- "customElement": true,
14282
14063
  "attributes": [
14283
14064
  {
14284
- "name": "type",
14065
+ "name": "format",
14285
14066
  "type": {
14286
- "text": "DialogType"
14067
+ "text": "string"
14287
14068
  },
14288
- "default": "'default'",
14289
- "fieldName": "type",
14290
- "inheritedFrom": {
14291
- "name": "<local>_DialogElement",
14292
- "module": "src/dialog/dialog.ts"
14293
- }
14069
+ "default": "'MM-DD-YYYY'",
14070
+ "fieldName": "format"
14294
14071
  },
14295
14072
  {
14296
- "name": "position",
14073
+ "name": "lang",
14297
14074
  "type": {
14298
- "text": "DialogPosition"
14075
+ "text": "string"
14299
14076
  },
14300
- "default": "'center'",
14301
- "fieldName": "position",
14302
- "inheritedFrom": {
14303
- "name": "<local>_DialogElement",
14304
- "module": "src/dialog/dialog.ts"
14305
- }
14077
+ "default": "'en-US'",
14078
+ "fieldName": "lang"
14306
14079
  },
14307
14080
  {
14308
- "name": "show-close-icon",
14081
+ "name": "visible",
14309
14082
  "type": {
14310
14083
  "text": "boolean"
14311
14084
  },
14312
- "default": "true",
14313
- "description": "Whether or not to show the close icon",
14314
- "fieldName": "showCloseIcon",
14315
- "inheritedFrom": {
14316
- "name": "<local>_DialogElement",
14317
- "module": "src/dialog/dialog.ts"
14318
- }
14085
+ "default": "false",
14086
+ "fieldName": "visible"
14087
+ },
14088
+ {
14089
+ "name": "position",
14090
+ "type": {
14091
+ "text": "string"
14092
+ },
14093
+ "default": "'bottom'",
14094
+ "fieldName": "position"
14095
+ },
14096
+ {
14097
+ "name": "label",
14098
+ "type": {
14099
+ "text": "string"
14100
+ },
14101
+ "fieldName": "label"
14102
+ },
14103
+ {
14104
+ "name": "value",
14105
+ "type": {
14106
+ "text": "string"
14107
+ },
14108
+ "fieldName": "value"
14319
14109
  }
14320
- ]
14110
+ ],
14111
+ "superclass": {
14112
+ "name": "FoundationElement",
14113
+ "package": "@microsoft/fast-foundation"
14114
+ },
14115
+ "tagName": "%%prefix%%-date-picker",
14116
+ "customElement": true
14321
14117
  },
14322
14118
  {
14323
14119
  "kind": "variable",
14324
- "name": "foundationDialog",
14325
- "description": "The Foundation Dialog",
14120
+ "name": "foundationDatePicker",
14121
+ "description": "The Foundation DatePicker",
14326
14122
  "privacy": "public"
14327
14123
  }
14328
14124
  ],
14329
14125
  "exports": [
14330
14126
  {
14331
14127
  "kind": "js",
14332
- "name": "foundationDialogShadowOptions",
14128
+ "name": "foundationDatePickerShadowOptions",
14333
14129
  "declaration": {
14334
- "name": "foundationDialogShadowOptions",
14335
- "module": "src/dialog/dialog.ts"
14130
+ "name": "foundationDatePickerShadowOptions",
14131
+ "module": "src/date-picker/date-picker.ts"
14336
14132
  }
14337
14133
  },
14338
14134
  {
14339
14135
  "kind": "js",
14340
- "name": "defaultDialogConfig",
14136
+ "name": "defaultDatePickerConfig",
14341
14137
  "declaration": {
14342
- "name": "defaultDialogConfig",
14343
- "module": "src/dialog/dialog.ts"
14138
+ "name": "defaultDatePickerConfig",
14139
+ "module": "src/date-picker/date-picker.ts"
14344
14140
  }
14345
14141
  },
14346
14142
  {
14347
14143
  "kind": "js",
14348
- "name": "DialogElement",
14144
+ "name": "DatePicker",
14349
14145
  "declaration": {
14350
- "name": "DialogElement",
14351
- "module": "src/dialog/dialog.ts"
14146
+ "name": "DatePicker",
14147
+ "module": "src/date-picker/date-picker.ts"
14352
14148
  }
14353
14149
  },
14354
14150
  {
14355
14151
  "kind": "js",
14356
- "name": "Dialog",
14152
+ "name": "foundationDatePicker",
14357
14153
  "declaration": {
14358
- "name": "Dialog",
14359
- "module": "src/dialog/dialog.ts"
14154
+ "name": "foundationDatePicker",
14155
+ "module": "src/date-picker/date-picker.ts"
14360
14156
  }
14361
- },
14157
+ }
14158
+ ]
14159
+ },
14160
+ {
14161
+ "kind": "javascript-module",
14162
+ "path": "src/date-picker/day.ts",
14163
+ "declarations": [
14164
+ {
14165
+ "kind": "class",
14166
+ "description": "",
14167
+ "name": "Day",
14168
+ "members": [
14169
+ {
14170
+ "kind": "field",
14171
+ "name": "Date",
14172
+ "type": {
14173
+ "text": "Object"
14174
+ },
14175
+ "default": "date"
14176
+ },
14177
+ {
14178
+ "kind": "field",
14179
+ "name": "date",
14180
+ "type": {
14181
+ "text": "Date"
14182
+ }
14183
+ },
14184
+ {
14185
+ "kind": "field",
14186
+ "name": "day",
14187
+ "type": {
14188
+ "text": "string"
14189
+ }
14190
+ },
14191
+ {
14192
+ "kind": "field",
14193
+ "name": "dayNumber",
14194
+ "type": {
14195
+ "text": "number"
14196
+ }
14197
+ },
14198
+ {
14199
+ "kind": "field",
14200
+ "name": "dayShort",
14201
+ "type": {
14202
+ "text": "string"
14203
+ }
14204
+ },
14205
+ {
14206
+ "kind": "field",
14207
+ "name": "year",
14208
+ "type": {
14209
+ "text": "number"
14210
+ }
14211
+ },
14212
+ {
14213
+ "kind": "field",
14214
+ "name": "yearShort",
14215
+ "type": {
14216
+ "text": "number"
14217
+ }
14218
+ },
14219
+ {
14220
+ "kind": "field",
14221
+ "name": "month",
14222
+ "type": {
14223
+ "text": "string"
14224
+ }
14225
+ },
14226
+ {
14227
+ "kind": "field",
14228
+ "name": "monthShort",
14229
+ "type": {
14230
+ "text": "string"
14231
+ }
14232
+ },
14233
+ {
14234
+ "kind": "field",
14235
+ "name": "monthNumber",
14236
+ "type": {
14237
+ "text": "number"
14238
+ }
14239
+ },
14240
+ {
14241
+ "kind": "field",
14242
+ "name": "timestamp",
14243
+ "type": {
14244
+ "text": "number"
14245
+ }
14246
+ },
14247
+ {
14248
+ "kind": "field",
14249
+ "name": "week",
14250
+ "type": {
14251
+ "text": "number"
14252
+ }
14253
+ },
14254
+ {
14255
+ "kind": "field"
14256
+ }
14257
+ ]
14258
+ }
14259
+ ],
14260
+ "exports": [
14362
14261
  {
14363
14262
  "kind": "js",
14364
- "name": "foundationDialog",
14263
+ "name": "default",
14365
14264
  "declaration": {
14366
- "name": "foundationDialog",
14367
- "module": "src/dialog/dialog.ts"
14265
+ "name": "Day",
14266
+ "module": "src/date-picker/day.ts"
14368
14267
  }
14369
14268
  }
14370
14269
  ]
14371
14270
  },
14372
14271
  {
14373
14272
  "kind": "javascript-module",
14374
- "path": "src/dialog/dialog.types.ts",
14375
- "declarations": [],
14376
- "exports": []
14377
- },
14378
- {
14379
- "kind": "javascript-module",
14380
- "path": "src/dialog/index.ts",
14273
+ "path": "src/date-picker/index.ts",
14381
14274
  "declarations": [],
14382
14275
  "exports": [
14383
14276
  {
@@ -14385,7 +14278,7 @@
14385
14278
  "name": "*",
14386
14279
  "declaration": {
14387
14280
  "name": "*",
14388
- "package": "./dialog.styles"
14281
+ "package": "./date-picker.styles"
14389
14282
  }
14390
14283
  },
14391
14284
  {
@@ -14393,7 +14286,7 @@
14393
14286
  "name": "*",
14394
14287
  "declaration": {
14395
14288
  "name": "*",
14396
- "package": "./dialog.template"
14289
+ "package": "./date-picker.template"
14397
14290
  }
14398
14291
  },
14399
14292
  {
@@ -14401,7 +14294,76 @@
14401
14294
  "name": "*",
14402
14295
  "declaration": {
14403
14296
  "name": "*",
14404
- "package": "./dialog"
14297
+ "package": "./date-picker"
14298
+ }
14299
+ }
14300
+ ]
14301
+ },
14302
+ {
14303
+ "kind": "javascript-module",
14304
+ "path": "src/date-picker/month.ts",
14305
+ "declarations": [
14306
+ {
14307
+ "kind": "class",
14308
+ "description": "",
14309
+ "name": "Month",
14310
+ "members": [
14311
+ {
14312
+ "kind": "field",
14313
+ "name": "lang",
14314
+ "type": {
14315
+ "text": "string"
14316
+ },
14317
+ "default": "lang"
14318
+ },
14319
+ {
14320
+ "kind": "field",
14321
+ "name": "name",
14322
+ "type": {
14323
+ "text": "string"
14324
+ }
14325
+ },
14326
+ {
14327
+ "kind": "field",
14328
+ "name": "number",
14329
+ "type": {
14330
+ "text": "number"
14331
+ }
14332
+ },
14333
+ {
14334
+ "kind": "field",
14335
+ "name": "year",
14336
+ "type": {
14337
+ "text": "number"
14338
+ }
14339
+ },
14340
+ {
14341
+ "kind": "field",
14342
+ "name": "numberOfDays",
14343
+ "type": {
14344
+ "text": "number"
14345
+ },
14346
+ "default": "monthSize[this.number - 1]"
14347
+ },
14348
+ {
14349
+ "kind": "method",
14350
+ "name": "getDay",
14351
+ "parameters": [
14352
+ {
14353
+ "name": "date"
14354
+ }
14355
+ ]
14356
+ }
14357
+ ]
14358
+ }
14359
+ ],
14360
+ "exports": [
14361
+ {
14362
+ "kind": "js",
14363
+ "name": "default",
14364
+ "declaration": {
14365
+ "name": "Month",
14366
+ "module": "src/date-picker/month.ts"
14405
14367
  }
14406
14368
  }
14407
14369
  ]
@@ -20758,6 +20720,22 @@
20758
20720
  },
20759
20721
  "default": "{}"
20760
20722
  },
20723
+ {
20724
+ "kind": "variable",
20725
+ "name": "faSizeValueDefault",
20726
+ "type": {
20727
+ "text": "'1x'"
20728
+ },
20729
+ "default": "'1x'"
20730
+ },
20731
+ {
20732
+ "kind": "variable",
20733
+ "name": "faSizeValues",
20734
+ "type": {
20735
+ "text": "[\n '2xs',\n 'xs',\n 'sm',\n 'lg',\n 'xl',\n '2xl',\n faSizeValueDefault,\n '2x',\n '3x',\n '4x',\n '5x',\n '6x',\n '7x',\n '8x',\n '9x',\n '10x',\n 'stack-1x',\n 'stack-2x',\n]"
20736
+ },
20737
+ "default": "[\n '2xs',\n 'xs',\n 'sm',\n 'lg',\n 'xl',\n '2xl',\n faSizeValueDefault,\n '2x',\n '3x',\n '4x',\n '5x',\n '6x',\n '7x',\n '8x',\n '9x',\n '10x',\n 'stack-1x',\n 'stack-2x',\n]"
20738
+ },
20761
20739
  {
20762
20740
  "kind": "class",
20763
20741
  "description": "",
@@ -21036,6 +21014,22 @@
21036
21014
  "module": "src/icon/icon.ts"
21037
21015
  }
21038
21016
  },
21017
+ {
21018
+ "kind": "js",
21019
+ "name": "faSizeValueDefault",
21020
+ "declaration": {
21021
+ "name": "faSizeValueDefault",
21022
+ "module": "src/icon/icon.ts"
21023
+ }
21024
+ },
21025
+ {
21026
+ "kind": "js",
21027
+ "name": "faSizeValues",
21028
+ "declaration": {
21029
+ "name": "faSizeValues",
21030
+ "module": "src/icon/icon.ts"
21031
+ }
21032
+ },
21039
21033
  {
21040
21034
  "kind": "js",
21041
21035
  "name": "Icon",
@@ -23273,25 +23267,13 @@
23273
23267
  "module": "src/dialog/dialog.ts"
23274
23268
  }
23275
23269
  },
23276
- {
23277
- "kind": "field",
23278
- "name": "type",
23279
- "type": {
23280
- "text": "DialogType"
23281
- },
23282
- "default": "'default'",
23283
- "inheritedFrom": {
23284
- "name": "<local>_DialogElement",
23285
- "module": "src/dialog/dialog.ts"
23286
- }
23287
- },
23288
23270
  {
23289
23271
  "kind": "field",
23290
23272
  "name": "position",
23291
23273
  "type": {
23292
- "text": "DialogPosition"
23274
+ "text": "'centre' | 'left' | 'right'"
23293
23275
  },
23294
- "default": "'center'",
23276
+ "default": "'centre'",
23295
23277
  "inheritedFrom": {
23296
23278
  "name": "<local>_DialogElement",
23297
23279
  "module": "src/dialog/dialog.ts"
@@ -23505,24 +23487,12 @@
23505
23487
  "tagName": "%%prefix%%-modal",
23506
23488
  "customElement": true,
23507
23489
  "attributes": [
23508
- {
23509
- "name": "type",
23510
- "type": {
23511
- "text": "DialogType"
23512
- },
23513
- "default": "'default'",
23514
- "fieldName": "type",
23515
- "inheritedFrom": {
23516
- "name": "<local>_DialogElement",
23517
- "module": "src/dialog/dialog.ts"
23518
- }
23519
- },
23520
23490
  {
23521
23491
  "name": "position",
23522
23492
  "type": {
23523
- "text": "DialogPosition"
23493
+ "text": "'centre' | 'left' | 'right'"
23524
23494
  },
23525
- "default": "'center'",
23495
+ "default": "'centre'",
23526
23496
  "fieldName": "position",
23527
23497
  "inheritedFrom": {
23528
23498
  "name": "<local>_DialogElement",
@@ -33891,6 +33861,291 @@
33891
33861
  }
33892
33862
  ]
33893
33863
  },
33864
+ {
33865
+ "kind": "javascript-module",
33866
+ "path": "src/stacking-icons/index.ts",
33867
+ "declarations": [],
33868
+ "exports": [
33869
+ {
33870
+ "kind": "js",
33871
+ "name": "*",
33872
+ "declaration": {
33873
+ "name": "*",
33874
+ "package": "./stacking-icons.styles"
33875
+ }
33876
+ },
33877
+ {
33878
+ "kind": "js",
33879
+ "name": "*",
33880
+ "declaration": {
33881
+ "name": "*",
33882
+ "package": "./stacking-icons.template"
33883
+ }
33884
+ },
33885
+ {
33886
+ "kind": "js",
33887
+ "name": "*",
33888
+ "declaration": {
33889
+ "name": "*",
33890
+ "package": "./stacking-icons"
33891
+ }
33892
+ }
33893
+ ]
33894
+ },
33895
+ {
33896
+ "kind": "javascript-module",
33897
+ "path": "src/stacking-icons/stacking-icons.styles.ts",
33898
+ "declarations": [
33899
+ {
33900
+ "kind": "function",
33901
+ "name": "foundationStackingIconsStyles",
33902
+ "return": {
33903
+ "type": {
33904
+ "text": "ElementStyles"
33905
+ }
33906
+ },
33907
+ "parameters": [
33908
+ {
33909
+ "name": "context",
33910
+ "type": {
33911
+ "text": "ElementDefinitionContext"
33912
+ }
33913
+ },
33914
+ {
33915
+ "name": "definition",
33916
+ "type": {
33917
+ "text": "FoundationElementDefinition"
33918
+ }
33919
+ }
33920
+ ]
33921
+ }
33922
+ ],
33923
+ "exports": [
33924
+ {
33925
+ "kind": "js",
33926
+ "name": "foundationStackingIconsStyles",
33927
+ "declaration": {
33928
+ "name": "foundationStackingIconsStyles",
33929
+ "module": "src/stacking-icons/stacking-icons.styles.ts"
33930
+ }
33931
+ }
33932
+ ]
33933
+ },
33934
+ {
33935
+ "kind": "javascript-module",
33936
+ "path": "src/stacking-icons/stacking-icons.template.ts",
33937
+ "declarations": [
33938
+ {
33939
+ "kind": "variable",
33940
+ "name": "foundationStackingIconsTemplate",
33941
+ "type": {
33942
+ "text": "ViewTemplate"
33943
+ },
33944
+ "default": "html<StackingIcons>`\n <span\n class=${(x) => `fa-stack fa-${x.size}`}\n style=${(x) => `vertical-align: ${x['vertical-align']};`}\n >\n <slot></slot>\n </span>\n`"
33945
+ }
33946
+ ],
33947
+ "exports": [
33948
+ {
33949
+ "kind": "js",
33950
+ "name": "foundationStackingIconsTemplate",
33951
+ "declaration": {
33952
+ "name": "foundationStackingIconsTemplate",
33953
+ "module": "src/stacking-icons/stacking-icons.template.ts"
33954
+ }
33955
+ }
33956
+ ]
33957
+ },
33958
+ {
33959
+ "kind": "javascript-module",
33960
+ "path": "src/stacking-icons/stacking-icons.ts",
33961
+ "declarations": [
33962
+ {
33963
+ "kind": "class",
33964
+ "description": "",
33965
+ "name": "StackingIcons",
33966
+ "members": [
33967
+ {
33968
+ "kind": "field",
33969
+ "name": "size",
33970
+ "type": {
33971
+ "text": "StackingIconsSize"
33972
+ },
33973
+ "default": "faSizeValueDefault"
33974
+ },
33975
+ {
33976
+ "kind": "field",
33977
+ "name": "['vertical-align']",
33978
+ "type": {
33979
+ "text": "VerticalAlign"
33980
+ },
33981
+ "default": "'baseline'"
33982
+ },
33983
+ {
33984
+ "kind": "field",
33985
+ "name": "_presentation",
33986
+ "type": {
33987
+ "text": "ComponentPresentation | null | undefined"
33988
+ },
33989
+ "privacy": "private",
33990
+ "default": "void 0",
33991
+ "inheritedFrom": {
33992
+ "name": "FoundationElement",
33993
+ "module": "src/foundation-element/foundation-element.ts"
33994
+ }
33995
+ },
33996
+ {
33997
+ "kind": "field",
33998
+ "name": "$presentation",
33999
+ "type": {
34000
+ "text": "ComponentPresentation | null"
34001
+ },
34002
+ "privacy": "public",
34003
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
34004
+ "inheritedFrom": {
34005
+ "name": "FoundationElement",
34006
+ "module": "src/foundation-element/foundation-element.ts"
34007
+ }
34008
+ },
34009
+ {
34010
+ "kind": "field",
34011
+ "name": "template",
34012
+ "type": {
34013
+ "text": "ElementViewTemplate | void | null"
34014
+ },
34015
+ "privacy": "public",
34016
+ "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.",
34017
+ "inheritedFrom": {
34018
+ "name": "FoundationElement",
34019
+ "module": "src/foundation-element/foundation-element.ts"
34020
+ }
34021
+ },
34022
+ {
34023
+ "kind": "method",
34024
+ "name": "templateChanged",
34025
+ "privacy": "protected",
34026
+ "return": {
34027
+ "type": {
34028
+ "text": "void"
34029
+ }
34030
+ },
34031
+ "inheritedFrom": {
34032
+ "name": "FoundationElement",
34033
+ "module": "src/foundation-element/foundation-element.ts"
34034
+ }
34035
+ },
34036
+ {
34037
+ "kind": "field",
34038
+ "name": "styles",
34039
+ "type": {
34040
+ "text": "ElementStyles | void | null"
34041
+ },
34042
+ "privacy": "public",
34043
+ "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.",
34044
+ "inheritedFrom": {
34045
+ "name": "FoundationElement",
34046
+ "module": "src/foundation-element/foundation-element.ts"
34047
+ }
34048
+ },
34049
+ {
34050
+ "kind": "method",
34051
+ "name": "stylesChanged",
34052
+ "privacy": "protected",
34053
+ "return": {
34054
+ "type": {
34055
+ "text": "void"
34056
+ }
34057
+ },
34058
+ "inheritedFrom": {
34059
+ "name": "FoundationElement",
34060
+ "module": "src/foundation-element/foundation-element.ts"
34061
+ }
34062
+ },
34063
+ {
34064
+ "kind": "method",
34065
+ "name": "compose",
34066
+ "privacy": "public",
34067
+ "static": true,
34068
+ "return": {
34069
+ "type": {
34070
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
34071
+ }
34072
+ },
34073
+ "parameters": [
34074
+ {
34075
+ "name": "this",
34076
+ "type": {
34077
+ "text": "K"
34078
+ }
34079
+ },
34080
+ {
34081
+ "name": "elementDefinition",
34082
+ "type": {
34083
+ "text": "T"
34084
+ },
34085
+ "description": "The definition of the element to create the registry\nfunction for."
34086
+ }
34087
+ ],
34088
+ "description": "Defines an element registry function with a set of element definition defaults.",
34089
+ "inheritedFrom": {
34090
+ "name": "FoundationElement",
34091
+ "module": "src/foundation-element/foundation-element.ts"
34092
+ }
34093
+ }
34094
+ ],
34095
+ "attributes": [
34096
+ {
34097
+ "name": "size",
34098
+ "type": {
34099
+ "text": "StackingIconsSize"
34100
+ },
34101
+ "default": "faSizeValueDefault",
34102
+ "resolveInitializer": {
34103
+ "module": "/src/icon"
34104
+ },
34105
+ "fieldName": "size"
34106
+ },
34107
+ {
34108
+ "name": "['vertical-align']",
34109
+ "type": {
34110
+ "text": "VerticalAlign"
34111
+ },
34112
+ "default": "'baseline'",
34113
+ "fieldName": "['vertical-align']"
34114
+ }
34115
+ ],
34116
+ "superclass": {
34117
+ "name": "FoundationElement",
34118
+ "package": "@microsoft/fast-foundation"
34119
+ },
34120
+ "tagName": "%%prefix%%-stacking-icons",
34121
+ "customElement": true
34122
+ },
34123
+ {
34124
+ "kind": "variable",
34125
+ "name": "foundationStackingIcons",
34126
+ "description": "The Foundation Stacking Icon",
34127
+ "privacy": "public"
34128
+ }
34129
+ ],
34130
+ "exports": [
34131
+ {
34132
+ "kind": "js",
34133
+ "name": "StackingIcons",
34134
+ "declaration": {
34135
+ "name": "StackingIcons",
34136
+ "module": "src/stacking-icons/stacking-icons.ts"
34137
+ }
34138
+ },
34139
+ {
34140
+ "kind": "js",
34141
+ "name": "foundationStackingIcons",
34142
+ "declaration": {
34143
+ "name": "foundationStackingIcons",
34144
+ "module": "src/stacking-icons/stacking-icons.ts"
34145
+ }
34146
+ }
34147
+ ]
34148
+ },
33894
34149
  {
33895
34150
  "kind": "javascript-module",
33896
34151
  "path": "src/stepper/index.ts",