@genesislcap/foundation-ui 14.210.2 → 14.210.4

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.
@@ -817,37 +817,6 @@
817
817
  }
818
818
  ]
819
819
  },
820
- {
821
- "kind": "javascript-module",
822
- "path": "src/_config/index.ts",
823
- "declarations": [],
824
- "exports": [
825
- {
826
- "kind": "js",
827
- "name": "*",
828
- "declaration": {
829
- "name": "*",
830
- "package": "./styles"
831
- }
832
- },
833
- {
834
- "kind": "js",
835
- "name": "*",
836
- "declaration": {
837
- "name": "*",
838
- "package": "./tokens"
839
- }
840
- },
841
- {
842
- "kind": "js",
843
- "name": "*",
844
- "declaration": {
845
- "name": "*",
846
- "package": "./values"
847
- }
848
- }
849
- ]
850
- },
851
820
  {
852
821
  "kind": "javascript-module",
853
822
  "path": "src/_common/icons.ts",
@@ -1469,6 +1438,37 @@
1469
1438
  }
1470
1439
  ]
1471
1440
  },
1441
+ {
1442
+ "kind": "javascript-module",
1443
+ "path": "src/_config/index.ts",
1444
+ "declarations": [],
1445
+ "exports": [
1446
+ {
1447
+ "kind": "js",
1448
+ "name": "*",
1449
+ "declaration": {
1450
+ "name": "*",
1451
+ "package": "./styles"
1452
+ }
1453
+ },
1454
+ {
1455
+ "kind": "js",
1456
+ "name": "*",
1457
+ "declaration": {
1458
+ "name": "*",
1459
+ "package": "./tokens"
1460
+ }
1461
+ },
1462
+ {
1463
+ "kind": "js",
1464
+ "name": "*",
1465
+ "declaration": {
1466
+ "name": "*",
1467
+ "package": "./values"
1468
+ }
1469
+ }
1470
+ ]
1471
+ },
1472
1472
  {
1473
1473
  "kind": "javascript-module",
1474
1474
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -9202,6 +9202,14 @@
9202
9202
  "name": "resetCombobox"
9203
9203
  }
9204
9204
  ],
9205
+ "events": [
9206
+ {
9207
+ "name": "change",
9208
+ "type": {
9209
+ "text": "Event"
9210
+ }
9211
+ }
9212
+ ],
9205
9213
  "attributes": [
9206
9214
  {
9207
9215
  "type": {
@@ -14476,11 +14484,11 @@
14476
14484
  },
14477
14485
  {
14478
14486
  "kind": "javascript-module",
14479
- "path": "src/disclosure/disclosure.styles.ts",
14487
+ "path": "src/divider/divider.styles.ts",
14480
14488
  "declarations": [
14481
14489
  {
14482
14490
  "kind": "function",
14483
- "name": "foundationDisclosureStyles",
14491
+ "name": "foundationDividerStyles",
14484
14492
  "return": {
14485
14493
  "type": {
14486
14494
  "text": "ElementStyles"
@@ -14505,24 +14513,24 @@
14505
14513
  "exports": [
14506
14514
  {
14507
14515
  "kind": "js",
14508
- "name": "foundationDisclosureStyles",
14516
+ "name": "foundationDividerStyles",
14509
14517
  "declaration": {
14510
- "name": "foundationDisclosureStyles",
14511
- "module": "src/disclosure/disclosure.styles.ts"
14518
+ "name": "foundationDividerStyles",
14519
+ "module": "src/divider/divider.styles.ts"
14512
14520
  }
14513
14521
  }
14514
14522
  ]
14515
14523
  },
14516
14524
  {
14517
14525
  "kind": "javascript-module",
14518
- "path": "src/disclosure/disclosure.template.ts",
14526
+ "path": "src/divider/divider.template.ts",
14519
14527
  "declarations": [
14520
14528
  {
14521
14529
  "kind": "function",
14522
- "name": "foundationDisclosureTemplate",
14530
+ "name": "foundationDividerTemplate",
14523
14531
  "return": {
14524
14532
  "type": {
14525
- "text": "ViewTemplate<Disclosure>"
14533
+ "text": "ViewTemplate<Divider>"
14526
14534
  }
14527
14535
  },
14528
14536
  "parameters": [
@@ -14544,32 +14552,32 @@
14544
14552
  "exports": [
14545
14553
  {
14546
14554
  "kind": "js",
14547
- "name": "foundationDisclosureTemplate",
14555
+ "name": "foundationDividerTemplate",
14548
14556
  "declaration": {
14549
- "name": "foundationDisclosureTemplate",
14550
- "module": "src/disclosure/disclosure.template.ts"
14557
+ "name": "foundationDividerTemplate",
14558
+ "module": "src/divider/divider.template.ts"
14551
14559
  }
14552
14560
  }
14553
14561
  ]
14554
14562
  },
14555
14563
  {
14556
14564
  "kind": "javascript-module",
14557
- "path": "src/disclosure/disclosure.ts",
14565
+ "path": "src/divider/divider.ts",
14558
14566
  "declarations": [
14559
14567
  {
14560
14568
  "kind": "class",
14561
14569
  "description": "",
14562
- "name": "Disclosure",
14570
+ "name": "Divider",
14563
14571
  "superclass": {
14564
- "name": "FASTDisclosure",
14572
+ "name": "FASTDivider",
14565
14573
  "package": "@microsoft/fast-foundation"
14566
14574
  },
14567
- "tagName": "%%prefix%%-disclosure",
14575
+ "tagName": "%%prefix%%-divider",
14568
14576
  "customElement": true
14569
14577
  },
14570
14578
  {
14571
14579
  "kind": "variable",
14572
- "name": "foundationDisclosureShadowOptions",
14580
+ "name": "foundationDividerShadowOptions",
14573
14581
  "type": {
14574
14582
  "text": "ShadowRootInit"
14575
14583
  },
@@ -14577,7 +14585,7 @@
14577
14585
  },
14578
14586
  {
14579
14587
  "kind": "variable",
14580
- "name": "defaultDisclosureConfig",
14588
+ "name": "defaultDividerConfig",
14581
14589
  "type": {
14582
14590
  "text": "object"
14583
14591
  },
@@ -14585,49 +14593,49 @@
14585
14593
  },
14586
14594
  {
14587
14595
  "kind": "variable",
14588
- "name": "foundationDisclosure",
14589
- "description": "The Foundation Disclosure",
14596
+ "name": "foundationDivider",
14597
+ "description": "The Foundation Divider",
14590
14598
  "privacy": "public"
14591
14599
  }
14592
14600
  ],
14593
14601
  "exports": [
14594
14602
  {
14595
14603
  "kind": "js",
14596
- "name": "Disclosure",
14604
+ "name": "Divider",
14597
14605
  "declaration": {
14598
- "name": "Disclosure",
14599
- "module": "src/disclosure/disclosure.ts"
14606
+ "name": "Divider",
14607
+ "module": "src/divider/divider.ts"
14600
14608
  }
14601
14609
  },
14602
14610
  {
14603
14611
  "kind": "js",
14604
- "name": "foundationDisclosureShadowOptions",
14612
+ "name": "foundationDividerShadowOptions",
14605
14613
  "declaration": {
14606
- "name": "foundationDisclosureShadowOptions",
14607
- "module": "src/disclosure/disclosure.ts"
14614
+ "name": "foundationDividerShadowOptions",
14615
+ "module": "src/divider/divider.ts"
14608
14616
  }
14609
14617
  },
14610
14618
  {
14611
14619
  "kind": "js",
14612
- "name": "defaultDisclosureConfig",
14620
+ "name": "defaultDividerConfig",
14613
14621
  "declaration": {
14614
- "name": "defaultDisclosureConfig",
14615
- "module": "src/disclosure/disclosure.ts"
14622
+ "name": "defaultDividerConfig",
14623
+ "module": "src/divider/divider.ts"
14616
14624
  }
14617
14625
  },
14618
14626
  {
14619
14627
  "kind": "js",
14620
- "name": "foundationDisclosure",
14628
+ "name": "foundationDivider",
14621
14629
  "declaration": {
14622
- "name": "foundationDisclosure",
14623
- "module": "src/disclosure/disclosure.ts"
14630
+ "name": "foundationDivider",
14631
+ "module": "src/divider/divider.ts"
14624
14632
  }
14625
14633
  }
14626
14634
  ]
14627
14635
  },
14628
14636
  {
14629
14637
  "kind": "javascript-module",
14630
- "path": "src/disclosure/index.ts",
14638
+ "path": "src/divider/index.ts",
14631
14639
  "declarations": [],
14632
14640
  "exports": [
14633
14641
  {
@@ -14635,7 +14643,7 @@
14635
14643
  "name": "*",
14636
14644
  "declaration": {
14637
14645
  "name": "*",
14638
- "package": "./disclosure.template"
14646
+ "package": "./divider.template"
14639
14647
  }
14640
14648
  },
14641
14649
  {
@@ -14643,7 +14651,7 @@
14643
14651
  "name": "*",
14644
14652
  "declaration": {
14645
14653
  "name": "*",
14646
- "package": "./disclosure.styles"
14654
+ "package": "./divider.styles"
14647
14655
  }
14648
14656
  },
14649
14657
  {
@@ -14651,18 +14659,18 @@
14651
14659
  "name": "*",
14652
14660
  "declaration": {
14653
14661
  "name": "*",
14654
- "package": "./disclosure"
14662
+ "package": "./divider"
14655
14663
  }
14656
14664
  }
14657
14665
  ]
14658
14666
  },
14659
14667
  {
14660
14668
  "kind": "javascript-module",
14661
- "path": "src/divider/divider.styles.ts",
14669
+ "path": "src/disclosure/disclosure.styles.ts",
14662
14670
  "declarations": [
14663
14671
  {
14664
14672
  "kind": "function",
14665
- "name": "foundationDividerStyles",
14673
+ "name": "foundationDisclosureStyles",
14666
14674
  "return": {
14667
14675
  "type": {
14668
14676
  "text": "ElementStyles"
@@ -14687,24 +14695,24 @@
14687
14695
  "exports": [
14688
14696
  {
14689
14697
  "kind": "js",
14690
- "name": "foundationDividerStyles",
14698
+ "name": "foundationDisclosureStyles",
14691
14699
  "declaration": {
14692
- "name": "foundationDividerStyles",
14693
- "module": "src/divider/divider.styles.ts"
14700
+ "name": "foundationDisclosureStyles",
14701
+ "module": "src/disclosure/disclosure.styles.ts"
14694
14702
  }
14695
14703
  }
14696
14704
  ]
14697
14705
  },
14698
14706
  {
14699
14707
  "kind": "javascript-module",
14700
- "path": "src/divider/divider.template.ts",
14708
+ "path": "src/disclosure/disclosure.template.ts",
14701
14709
  "declarations": [
14702
14710
  {
14703
14711
  "kind": "function",
14704
- "name": "foundationDividerTemplate",
14712
+ "name": "foundationDisclosureTemplate",
14705
14713
  "return": {
14706
14714
  "type": {
14707
- "text": "ViewTemplate<Divider>"
14715
+ "text": "ViewTemplate<Disclosure>"
14708
14716
  }
14709
14717
  },
14710
14718
  "parameters": [
@@ -14726,32 +14734,32 @@
14726
14734
  "exports": [
14727
14735
  {
14728
14736
  "kind": "js",
14729
- "name": "foundationDividerTemplate",
14737
+ "name": "foundationDisclosureTemplate",
14730
14738
  "declaration": {
14731
- "name": "foundationDividerTemplate",
14732
- "module": "src/divider/divider.template.ts"
14739
+ "name": "foundationDisclosureTemplate",
14740
+ "module": "src/disclosure/disclosure.template.ts"
14733
14741
  }
14734
14742
  }
14735
14743
  ]
14736
14744
  },
14737
14745
  {
14738
14746
  "kind": "javascript-module",
14739
- "path": "src/divider/divider.ts",
14747
+ "path": "src/disclosure/disclosure.ts",
14740
14748
  "declarations": [
14741
14749
  {
14742
14750
  "kind": "class",
14743
14751
  "description": "",
14744
- "name": "Divider",
14752
+ "name": "Disclosure",
14745
14753
  "superclass": {
14746
- "name": "FASTDivider",
14754
+ "name": "FASTDisclosure",
14747
14755
  "package": "@microsoft/fast-foundation"
14748
14756
  },
14749
- "tagName": "%%prefix%%-divider",
14757
+ "tagName": "%%prefix%%-disclosure",
14750
14758
  "customElement": true
14751
14759
  },
14752
14760
  {
14753
14761
  "kind": "variable",
14754
- "name": "foundationDividerShadowOptions",
14762
+ "name": "foundationDisclosureShadowOptions",
14755
14763
  "type": {
14756
14764
  "text": "ShadowRootInit"
14757
14765
  },
@@ -14759,7 +14767,7 @@
14759
14767
  },
14760
14768
  {
14761
14769
  "kind": "variable",
14762
- "name": "defaultDividerConfig",
14770
+ "name": "defaultDisclosureConfig",
14763
14771
  "type": {
14764
14772
  "text": "object"
14765
14773
  },
@@ -14767,49 +14775,49 @@
14767
14775
  },
14768
14776
  {
14769
14777
  "kind": "variable",
14770
- "name": "foundationDivider",
14771
- "description": "The Foundation Divider",
14778
+ "name": "foundationDisclosure",
14779
+ "description": "The Foundation Disclosure",
14772
14780
  "privacy": "public"
14773
14781
  }
14774
14782
  ],
14775
14783
  "exports": [
14776
14784
  {
14777
14785
  "kind": "js",
14778
- "name": "Divider",
14786
+ "name": "Disclosure",
14779
14787
  "declaration": {
14780
- "name": "Divider",
14781
- "module": "src/divider/divider.ts"
14788
+ "name": "Disclosure",
14789
+ "module": "src/disclosure/disclosure.ts"
14782
14790
  }
14783
14791
  },
14784
14792
  {
14785
14793
  "kind": "js",
14786
- "name": "foundationDividerShadowOptions",
14794
+ "name": "foundationDisclosureShadowOptions",
14787
14795
  "declaration": {
14788
- "name": "foundationDividerShadowOptions",
14789
- "module": "src/divider/divider.ts"
14796
+ "name": "foundationDisclosureShadowOptions",
14797
+ "module": "src/disclosure/disclosure.ts"
14790
14798
  }
14791
14799
  },
14792
14800
  {
14793
14801
  "kind": "js",
14794
- "name": "defaultDividerConfig",
14802
+ "name": "defaultDisclosureConfig",
14795
14803
  "declaration": {
14796
- "name": "defaultDividerConfig",
14797
- "module": "src/divider/divider.ts"
14804
+ "name": "defaultDisclosureConfig",
14805
+ "module": "src/disclosure/disclosure.ts"
14798
14806
  }
14799
14807
  },
14800
14808
  {
14801
14809
  "kind": "js",
14802
- "name": "foundationDivider",
14810
+ "name": "foundationDisclosure",
14803
14811
  "declaration": {
14804
- "name": "foundationDivider",
14805
- "module": "src/divider/divider.ts"
14812
+ "name": "foundationDisclosure",
14813
+ "module": "src/disclosure/disclosure.ts"
14806
14814
  }
14807
14815
  }
14808
14816
  ]
14809
14817
  },
14810
14818
  {
14811
14819
  "kind": "javascript-module",
14812
- "path": "src/divider/index.ts",
14820
+ "path": "src/disclosure/index.ts",
14813
14821
  "declarations": [],
14814
14822
  "exports": [
14815
14823
  {
@@ -14817,7 +14825,7 @@
14817
14825
  "name": "*",
14818
14826
  "declaration": {
14819
14827
  "name": "*",
14820
- "package": "./divider.template"
14828
+ "package": "./disclosure.template"
14821
14829
  }
14822
14830
  },
14823
14831
  {
@@ -14825,7 +14833,7 @@
14825
14833
  "name": "*",
14826
14834
  "declaration": {
14827
14835
  "name": "*",
14828
- "package": "./divider.styles"
14836
+ "package": "./disclosure.styles"
14829
14837
  }
14830
14838
  },
14831
14839
  {
@@ -14833,7 +14841,7 @@
14833
14841
  "name": "*",
14834
14842
  "declaration": {
14835
14843
  "name": "*",
14836
- "package": "./divider"
14844
+ "package": "./disclosure"
14837
14845
  }
14838
14846
  }
14839
14847
  ]
@@ -15862,35 +15870,35 @@
15862
15870
  },
15863
15871
  {
15864
15872
  "kind": "javascript-module",
15865
- "path": "src/error-dialog/error-dialog.styles.ts",
15873
+ "path": "src/file-upload/file-upload.styles.ts",
15866
15874
  "declarations": [
15867
15875
  {
15868
15876
  "kind": "variable",
15869
- "name": "foundationErrorDialogStyles",
15877
+ "name": "foundationFileUploadStyles",
15870
15878
  "type": {
15871
15879
  "text": "ElementStyles"
15872
15880
  },
15873
- "default": "css`\n :host {\n --design-unit: 3;\n --dialog-max-width: 358px;\n --dialog-min-width: 358px;\n --dialog-max-height: 128px;\n --error-details-min-height: 40px;\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(--error-details-min-height);\n }\n`"
15881
+ "default": "css`\n /* Host */\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .file-selection {\n display: flex;\n align-items: end;\n justify-content: start;\n padding-bottom: 10px;\n }\n\n .file-selection :nth-last-child(-n + 2) {\n margin: 0;\n margin-left: 10px;\n }\n\n input[type='file'] {\n display: none;\n }\n\n .clear-icon {\n cursor: pointer;\n }\n\n .uploader-grid {\n overflow-y: auto;\n }\n\n .file-name-input {\n flex: 1;\n }\n\n .download-button-container {\n display: flex;\n }\n\n .download-button {\n height: 22px;\n }\n\n fast-data-grid-row {\n align-items: center;\n }\n`"
15874
15882
  }
15875
15883
  ],
15876
15884
  "exports": [
15877
15885
  {
15878
15886
  "kind": "js",
15879
- "name": "foundationErrorDialogStyles",
15887
+ "name": "foundationFileUploadStyles",
15880
15888
  "declaration": {
15881
- "name": "foundationErrorDialogStyles",
15882
- "module": "src/error-dialog/error-dialog.styles.ts"
15889
+ "name": "foundationFileUploadStyles",
15890
+ "module": "src/file-upload/file-upload.styles.ts"
15883
15891
  }
15884
15892
  }
15885
15893
  ]
15886
15894
  },
15887
15895
  {
15888
15896
  "kind": "javascript-module",
15889
- "path": "src/error-dialog/error-dialog.template.ts",
15897
+ "path": "src/file-upload/file-upload.template.ts",
15890
15898
  "declarations": [
15891
15899
  {
15892
15900
  "kind": "function",
15893
- "name": "getErrorDialogTemplate",
15901
+ "name": "getPrefixedFileUpload",
15894
15902
  "parameters": [
15895
15903
  {
15896
15904
  "name": "prefix",
@@ -15902,95 +15910,286 @@
15902
15910
  },
15903
15911
  {
15904
15912
  "kind": "variable",
15905
- "name": "errorDialogTemplate",
15906
- "default": "html<ErrorDialog>`\n ${(x) => getErrorDialogTemplate(getPrefix(x))}\n`"
15913
+ "name": "foundationFileUploadTemplate",
15914
+ "default": "html<FileUpload>`\n ${(x) => getPrefixedFileUpload(getPrefix(x))}\n`"
15907
15915
  }
15908
15916
  ],
15909
15917
  "exports": [
15910
15918
  {
15911
15919
  "kind": "js",
15912
- "name": "getErrorDialogTemplate",
15920
+ "name": "getPrefixedFileUpload",
15913
15921
  "declaration": {
15914
- "name": "getErrorDialogTemplate",
15915
- "module": "src/error-dialog/error-dialog.template.ts"
15922
+ "name": "getPrefixedFileUpload",
15923
+ "module": "src/file-upload/file-upload.template.ts"
15916
15924
  }
15917
15925
  },
15918
15926
  {
15919
15927
  "kind": "js",
15920
- "name": "errorDialogTemplate",
15928
+ "name": "foundationFileUploadTemplate",
15921
15929
  "declaration": {
15922
- "name": "errorDialogTemplate",
15923
- "module": "src/error-dialog/error-dialog.template.ts"
15930
+ "name": "foundationFileUploadTemplate",
15931
+ "module": "src/file-upload/file-upload.template.ts"
15924
15932
  }
15925
15933
  }
15926
15934
  ]
15927
15935
  },
15928
15936
  {
15929
15937
  "kind": "javascript-module",
15930
- "path": "src/error-dialog/error-dialog.ts",
15938
+ "path": "src/file-upload/file-upload.ts",
15931
15939
  "declarations": [
15932
- {
15933
- "kind": "variable",
15934
- "name": "foundationErrorDialogShadowOptions",
15935
- "type": {
15936
- "text": "ShadowRootInit"
15937
- },
15938
- "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
15939
- },
15940
15940
  {
15941
15941
  "kind": "class",
15942
15942
  "description": "",
15943
- "name": "ErrorDialog",
15943
+ "name": "FileUpload",
15944
15944
  "members": [
15945
15945
  {
15946
15946
  "kind": "field",
15947
- "name": "dialog",
15947
+ "name": "fileInput",
15948
15948
  "type": {
15949
- "text": "HTMLElement & { close: () => void; show: () => void }"
15949
+ "text": "HTMLInputElement"
15950
15950
  },
15951
15951
  "privacy": "public"
15952
15952
  },
15953
15953
  {
15954
15954
  "kind": "field",
15955
- "name": "error",
15955
+ "name": "acceptedFormats",
15956
15956
  "type": {
15957
- "text": "ErrorStructure"
15957
+ "text": "array"
15958
+ },
15959
+ "privacy": "private",
15960
+ "default": "[]"
15961
+ },
15962
+ {
15963
+ "kind": "field",
15964
+ "name": "selectedFiles",
15965
+ "type": {
15966
+ "text": "File[]"
15967
+ },
15968
+ "privacy": "private"
15969
+ },
15970
+ {
15971
+ "kind": "field",
15972
+ "name": "gridCriteria",
15973
+ "type": {
15974
+ "text": "string"
15958
15975
  }
15959
15976
  },
15960
15977
  {
15961
15978
  "kind": "field",
15962
- "name": "notification",
15979
+ "name": "connect",
15963
15980
  "type": {
15964
- "text": "NotificationStructure"
15981
+ "text": "Connect"
15982
+ }
15983
+ },
15984
+ {
15985
+ "kind": "field",
15986
+ "name": "session",
15987
+ "type": {
15988
+ "text": "Session"
15989
+ }
15990
+ },
15991
+ {
15992
+ "kind": "field",
15993
+ "name": "label",
15994
+ "type": {
15995
+ "text": "string"
15965
15996
  }
15966
15997
  },
15998
+ {
15999
+ "kind": "field",
16000
+ "name": "accept",
16001
+ "type": {
16002
+ "text": "string"
16003
+ },
16004
+ "default": "''"
16005
+ },
15967
16006
  {
15968
16007
  "kind": "method",
15969
- "name": "show",
16008
+ "name": "acceptChanged"
16009
+ },
16010
+ {
16011
+ "kind": "field",
16012
+ "name": "fileSizeLimitBytes",
16013
+ "default": "104_857_600",
16014
+ "type": {
16015
+ "text": "number"
16016
+ }
16017
+ },
16018
+ {
16019
+ "kind": "field",
16020
+ "name": "uploadedFilesResourceName",
16021
+ "type": {
16022
+ "text": "string"
16023
+ },
16024
+ "default": "'ALL_FILE_ATTACHMENTS'"
16025
+ },
16026
+ {
16027
+ "kind": "field",
16028
+ "name": "uploadEventName",
16029
+ "type": {
16030
+ "text": "string"
16031
+ },
16032
+ "default": "'gwf/attachment-handler/upload'"
16033
+ },
16034
+ {
16035
+ "kind": "field",
16036
+ "name": "fieldName",
16037
+ "type": {
16038
+ "text": "string"
16039
+ }
16040
+ },
16041
+ {
16042
+ "kind": "method",
16043
+ "name": "fieldNameChanged"
16044
+ },
16045
+ {
16046
+ "kind": "field",
16047
+ "name": "entityId",
16048
+ "type": {
16049
+ "text": "string"
16050
+ }
16051
+ },
16052
+ {
16053
+ "kind": "method",
16054
+ "name": "entityIdChanged"
16055
+ },
16056
+ {
16057
+ "kind": "field",
16058
+ "name": "uploadKey",
16059
+ "type": {
16060
+ "text": "string"
16061
+ }
16062
+ },
16063
+ {
16064
+ "kind": "field",
16065
+ "name": "gridFields",
16066
+ "type": {
16067
+ "text": "string"
16068
+ },
16069
+ "default": "''"
16070
+ },
16071
+ {
16072
+ "kind": "field",
16073
+ "name": "fileName",
16074
+ "type": {
16075
+ "text": "string"
16076
+ },
16077
+ "default": "''"
16078
+ },
16079
+ {
16080
+ "kind": "field",
16081
+ "name": "uploadedFilesList",
16082
+ "type": {
16083
+ "text": "array"
16084
+ },
16085
+ "default": "[]"
16086
+ },
16087
+ {
16088
+ "kind": "field",
16089
+ "name": "filesGridColumnDefinitions",
16090
+ "type": {
16091
+ "text": "ColumnDefinition[]"
16092
+ },
16093
+ "default": "[]"
16094
+ },
16095
+ {
16096
+ "kind": "field",
16097
+ "name": "downloadEventName",
16098
+ "type": {
16099
+ "text": "Function"
16100
+ },
16101
+ "privacy": "public"
16102
+ },
16103
+ {
16104
+ "kind": "method",
16105
+ "name": "setupGrid"
16106
+ },
16107
+ {
16108
+ "kind": "method",
16109
+ "name": "handleStreamRowOperation",
16110
+ "privacy": "private",
16111
+ "parameters": [
16112
+ {
16113
+ "name": "data",
16114
+ "type": {
16115
+ "text": "Message<any>"
16116
+ }
16117
+ }
16118
+ ]
16119
+ },
16120
+ {
16121
+ "kind": "method",
16122
+ "name": "setRowData"
16123
+ },
16124
+ {
16125
+ "kind": "method",
16126
+ "name": "setColumnDefs"
16127
+ },
16128
+ {
16129
+ "kind": "method",
16130
+ "name": "getDownloadColumn",
16131
+ "privacy": "public"
16132
+ },
16133
+ {
16134
+ "kind": "method",
16135
+ "name": "getColumnObject",
15970
16136
  "privacy": "public",
15971
- "return": {
15972
- "type": {
15973
- "text": "void"
16137
+ "parameters": [
16138
+ {
16139
+ "name": "column"
15974
16140
  }
15975
- },
15976
- "description": "Show the Error Dialog."
16141
+ ]
15977
16142
  },
15978
16143
  {
15979
16144
  "kind": "method",
15980
- "name": "dismiss",
16145
+ "name": "handleClick",
16146
+ "privacy": "public"
16147
+ },
16148
+ {
16149
+ "kind": "method",
16150
+ "name": "onInputChange",
15981
16151
  "privacy": "public",
15982
- "description": "Dismiss the Error Dialog from display and calls the dismissing action."
16152
+ "parameters": [
16153
+ {
16154
+ "name": "e"
16155
+ }
16156
+ ]
15983
16157
  },
15984
16158
  {
15985
16159
  "kind": "method",
15986
- "name": "closeDialog",
16160
+ "name": "onFilesSelected",
15987
16161
  "privacy": "public",
15988
- "return": {
15989
- "type": {
15990
- "text": "void"
16162
+ "parameters": [
16163
+ {
16164
+ "name": "files",
16165
+ "type": {
16166
+ "text": "File[]"
16167
+ }
15991
16168
  }
15992
- },
15993
- "description": "Dismiss the Error Dialog from display."
16169
+ ]
16170
+ },
16171
+ {
16172
+ "kind": "method",
16173
+ "name": "handleFileUpload",
16174
+ "privacy": "public"
16175
+ },
16176
+ {
16177
+ "kind": "method",
16178
+ "name": "handleFileDownload",
16179
+ "privacy": "public",
16180
+ "parameters": [
16181
+ {
16182
+ "name": "rowData",
16183
+ "type": {
16184
+ "text": "any"
16185
+ }
16186
+ }
16187
+ ]
16188
+ },
16189
+ {
16190
+ "kind": "method",
16191
+ "name": "clearSelection",
16192
+ "privacy": "public"
15994
16193
  },
15995
16194
  {
15996
16195
  "kind": "field",
@@ -16104,51 +16303,257 @@
16104
16303
  }
16105
16304
  }
16106
16305
  ],
16107
- "superclass": {
16108
- "name": "FoundationElement",
16109
- "package": "@microsoft/fast-foundation"
16110
- },
16111
- "tagName": "%%prefix%%-error-dialog",
16112
- "deprecated": "true",
16113
- "customElement": true
16114
- },
16115
- {
16116
- "kind": "variable",
16117
- "name": "foundationErrorDialog",
16118
- "description": "The Foundation Error Dialog",
16119
- "privacy": "public"
16120
- }
16121
- ],
16122
- "exports": [
16123
- {
16124
- "kind": "js",
16125
- "name": "foundationErrorDialogShadowOptions",
16126
- "declaration": {
16127
- "name": "foundationErrorDialogShadowOptions",
16128
- "module": "src/error-dialog/error-dialog.ts"
16306
+ "attributes": [
16307
+ {
16308
+ "name": "label",
16309
+ "type": {
16310
+ "text": "string"
16311
+ },
16312
+ "fieldName": "label"
16313
+ },
16314
+ {
16315
+ "name": "accept",
16316
+ "type": {
16317
+ "text": "string"
16318
+ },
16319
+ "default": "''",
16320
+ "fieldName": "accept"
16321
+ },
16322
+ {
16323
+ "name": "file-size-limit-bytes",
16324
+ "default": "FILE_SIZE_LIMIT",
16325
+ "resolveInitializer": {
16326
+ "module": "src/file-upload/file-upload.ts"
16327
+ },
16328
+ "fieldName": "fileSizeLimitBytes"
16329
+ },
16330
+ {
16331
+ "name": "uploaded-files-resource-name",
16332
+ "type": {
16333
+ "text": "string"
16334
+ },
16335
+ "default": "'ALL_FILE_ATTACHMENTS'",
16336
+ "fieldName": "uploadedFilesResourceName"
16337
+ },
16338
+ {
16339
+ "name": "upload-event-name",
16340
+ "type": {
16341
+ "text": "string"
16342
+ },
16343
+ "default": "'gwf/attachment-handler/upload'",
16344
+ "fieldName": "uploadEventName"
16345
+ },
16346
+ {
16347
+ "name": "field-name",
16348
+ "type": {
16349
+ "text": "string"
16350
+ },
16351
+ "fieldName": "fieldName"
16352
+ },
16353
+ {
16354
+ "name": "entity-id",
16355
+ "type": {
16356
+ "text": "string"
16357
+ },
16358
+ "fieldName": "entityId"
16359
+ },
16360
+ {
16361
+ "name": "upload-key",
16362
+ "type": {
16363
+ "text": "string"
16364
+ },
16365
+ "fieldName": "uploadKey"
16366
+ },
16367
+ {
16368
+ "name": "grid-fields",
16369
+ "type": {
16370
+ "text": "string"
16371
+ },
16372
+ "default": "''",
16373
+ "fieldName": "gridFields"
16374
+ }
16375
+ ],
16376
+ "superclass": {
16377
+ "name": "FoundationElement",
16378
+ "package": "@microsoft/fast-foundation"
16379
+ },
16380
+ "tagName": "%%prefix%%-file-upload",
16381
+ "customElement": true
16382
+ },
16383
+ {
16384
+ "kind": "variable",
16385
+ "name": "foundationFileUploadShadowOptions",
16386
+ "type": {
16387
+ "text": "ShadowRootInit"
16388
+ },
16389
+ "default": "undefined"
16390
+ },
16391
+ {
16392
+ "kind": "variable",
16393
+ "name": "defaultFileUploadConfig",
16394
+ "type": {
16395
+ "text": "object"
16396
+ },
16397
+ "default": "{}"
16398
+ },
16399
+ {
16400
+ "kind": "variable",
16401
+ "name": "foundationFileUpload",
16402
+ "description": "The Foundation File Upload",
16403
+ "privacy": "public"
16404
+ }
16405
+ ],
16406
+ "exports": [
16407
+ {
16408
+ "kind": "js",
16409
+ "name": "FileUpload",
16410
+ "declaration": {
16411
+ "name": "FileUpload",
16412
+ "module": "src/file-upload/file-upload.ts"
16129
16413
  }
16130
16414
  },
16131
16415
  {
16132
16416
  "kind": "js",
16133
- "name": "ErrorDialog",
16417
+ "name": "foundationFileUploadShadowOptions",
16134
16418
  "declaration": {
16135
- "name": "ErrorDialog",
16136
- "module": "src/error-dialog/error-dialog.ts"
16419
+ "name": "foundationFileUploadShadowOptions",
16420
+ "module": "src/file-upload/file-upload.ts"
16137
16421
  }
16138
16422
  },
16139
16423
  {
16140
16424
  "kind": "js",
16141
- "name": "foundationErrorDialog",
16425
+ "name": "defaultFileUploadConfig",
16142
16426
  "declaration": {
16143
- "name": "foundationErrorDialog",
16144
- "module": "src/error-dialog/error-dialog.ts"
16427
+ "name": "defaultFileUploadConfig",
16428
+ "module": "src/file-upload/file-upload.ts"
16429
+ }
16430
+ },
16431
+ {
16432
+ "kind": "js",
16433
+ "name": "foundationFileUpload",
16434
+ "declaration": {
16435
+ "name": "foundationFileUpload",
16436
+ "module": "src/file-upload/file-upload.ts"
16145
16437
  }
16146
16438
  }
16147
16439
  ]
16148
16440
  },
16149
16441
  {
16150
16442
  "kind": "javascript-module",
16151
- "path": "src/error-dialog/index.ts",
16443
+ "path": "src/file-upload/file-upload.utils.ts",
16444
+ "declarations": [
16445
+ {
16446
+ "kind": "function",
16447
+ "name": "createFormData",
16448
+ "parameters": [
16449
+ {
16450
+ "name": "files",
16451
+ "type": {
16452
+ "text": "Array<File>"
16453
+ }
16454
+ }
16455
+ ]
16456
+ },
16457
+ {
16458
+ "kind": "function",
16459
+ "name": "uploadFiles",
16460
+ "parameters": [
16461
+ {
16462
+ "name": "url",
16463
+ "type": {
16464
+ "text": "string"
16465
+ }
16466
+ },
16467
+ {
16468
+ "name": "formData",
16469
+ "type": {
16470
+ "text": "FormData"
16471
+ }
16472
+ },
16473
+ {
16474
+ "name": "authToken",
16475
+ "type": {
16476
+ "text": "string"
16477
+ }
16478
+ }
16479
+ ]
16480
+ },
16481
+ {
16482
+ "kind": "function",
16483
+ "name": "downloadFile",
16484
+ "parameters": [
16485
+ {
16486
+ "name": "url",
16487
+ "type": {
16488
+ "text": "string"
16489
+ }
16490
+ },
16491
+ {
16492
+ "name": "filename",
16493
+ "type": {
16494
+ "text": "string"
16495
+ }
16496
+ },
16497
+ {
16498
+ "name": "authToken",
16499
+ "type": {
16500
+ "text": "string"
16501
+ }
16502
+ },
16503
+ {
16504
+ "name": "method",
16505
+ "default": "'GET'",
16506
+ "type": {
16507
+ "text": "string"
16508
+ }
16509
+ },
16510
+ {
16511
+ "name": "showNotifications",
16512
+ "optional": true,
16513
+ "type": {
16514
+ "text": "boolean"
16515
+ }
16516
+ },
16517
+ {
16518
+ "name": "body",
16519
+ "optional": true,
16520
+ "type": {
16521
+ "text": "any"
16522
+ }
16523
+ }
16524
+ ]
16525
+ }
16526
+ ],
16527
+ "exports": [
16528
+ {
16529
+ "kind": "js",
16530
+ "name": "createFormData",
16531
+ "declaration": {
16532
+ "name": "createFormData",
16533
+ "module": "src/file-upload/file-upload.utils.ts"
16534
+ }
16535
+ },
16536
+ {
16537
+ "kind": "js",
16538
+ "name": "uploadFiles",
16539
+ "declaration": {
16540
+ "name": "uploadFiles",
16541
+ "module": "src/file-upload/file-upload.utils.ts"
16542
+ }
16543
+ },
16544
+ {
16545
+ "kind": "js",
16546
+ "name": "downloadFile",
16547
+ "declaration": {
16548
+ "name": "downloadFile",
16549
+ "module": "src/file-upload/file-upload.utils.ts"
16550
+ }
16551
+ }
16552
+ ]
16553
+ },
16554
+ {
16555
+ "kind": "javascript-module",
16556
+ "path": "src/file-upload/index.ts",
16152
16557
  "declarations": [],
16153
16558
  "exports": [
16154
16559
  {
@@ -16156,7 +16561,7 @@
16156
16561
  "name": "*",
16157
16562
  "declaration": {
16158
16563
  "name": "*",
16159
- "package": "./error-dialog.template"
16564
+ "package": "./file-upload"
16160
16565
  }
16161
16566
  },
16162
16567
  {
@@ -16164,7 +16569,7 @@
16164
16569
  "name": "*",
16165
16570
  "declaration": {
16166
16571
  "name": "*",
16167
- "package": "./error-dialog"
16572
+ "package": "./file-upload.template"
16168
16573
  }
16169
16574
  },
16170
16575
  {
@@ -16172,42 +16577,50 @@
16172
16577
  "name": "*",
16173
16578
  "declaration": {
16174
16579
  "name": "*",
16175
- "package": "./error-dialog.styles"
16580
+ "package": "./file-upload.styles"
16581
+ }
16582
+ },
16583
+ {
16584
+ "kind": "js",
16585
+ "name": "*",
16586
+ "declaration": {
16587
+ "name": "*",
16588
+ "package": "./file-upload.utils"
16176
16589
  }
16177
16590
  }
16178
16591
  ]
16179
16592
  },
16180
16593
  {
16181
16594
  "kind": "javascript-module",
16182
- "path": "src/file-upload/file-upload.styles.ts",
16595
+ "path": "src/filter/filter.styles.ts",
16183
16596
  "declarations": [
16184
16597
  {
16185
16598
  "kind": "variable",
16186
- "name": "foundationFileUploadStyles",
16599
+ "name": "foundationFilterStyles",
16187
16600
  "type": {
16188
16601
  "text": "ElementStyles"
16189
16602
  },
16190
- "default": "css`\n /* Host */\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .file-selection {\n display: flex;\n align-items: end;\n justify-content: start;\n padding-bottom: 10px;\n }\n\n .file-selection :nth-last-child(-n + 2) {\n margin: 0;\n margin-left: 10px;\n }\n\n input[type='file'] {\n display: none;\n }\n\n .clear-icon {\n cursor: pointer;\n }\n\n .uploader-grid {\n overflow-y: auto;\n }\n\n .file-name-input {\n flex: 1;\n }\n\n .download-button-container {\n display: flex;\n }\n\n .download-button {\n height: 22px;\n }\n\n fast-data-grid-row {\n align-items: center;\n }\n`"
16603
+ "default": "css`\n .filter-wrapper {\n border: 1px solid gray;\n border-radius: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 1px);\n }\n\n .close-icon {\n display: flex;\n place-content: center;\n align-items: center;\n flex-direction: column;\n align-content: center;\n justify-content: center;\n margin: calc(var(--design-unit) * 1px);\n padding: calc(var(--design-unit) * 1px);\n border: 1px solid transparent;\n border-radius: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon,\n .cloase-icon svg path {\n transition-property: all;\n transition-timing-function: linear;\n transition-duration: 300ms;\n }\n\n .close-icon:hover {\n border-color: red;\n background: rgb(255 0 0 / 25%);\n }\n\n .close-icon:hover svg path {\n fill: red;\n }\n\n .flex-row {\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: space-between;\n align-items: center;\n }\n\n .flex-row zero-text-field,\n .flex-row zero-select,\n .flex-row foundation-text-field,\n .flex-row foundation-select {\n flex: 1;\n }\n`"
16191
16604
  }
16192
16605
  ],
16193
16606
  "exports": [
16194
16607
  {
16195
16608
  "kind": "js",
16196
- "name": "foundationFileUploadStyles",
16609
+ "name": "foundationFilterStyles",
16197
16610
  "declaration": {
16198
- "name": "foundationFileUploadStyles",
16199
- "module": "src/file-upload/file-upload.styles.ts"
16611
+ "name": "foundationFilterStyles",
16612
+ "module": "src/filter/filter.styles.ts"
16200
16613
  }
16201
16614
  }
16202
16615
  ]
16203
16616
  },
16204
16617
  {
16205
16618
  "kind": "javascript-module",
16206
- "path": "src/file-upload/file-upload.template.ts",
16619
+ "path": "src/filter/filter.template.ts",
16207
16620
  "declarations": [
16208
16621
  {
16209
16622
  "kind": "function",
16210
- "name": "getPrefixedFileUpload",
16623
+ "name": "getPrefixedFilterTemplate",
16211
16624
  "parameters": [
16212
16625
  {
16213
16626
  "name": "prefix",
@@ -16219,286 +16632,354 @@
16219
16632
  },
16220
16633
  {
16221
16634
  "kind": "variable",
16222
- "name": "foundationFileUploadTemplate",
16223
- "default": "html<FileUpload>`\n ${(x) => getPrefixedFileUpload(getPrefix(x))}\n`"
16635
+ "name": "foundationFilterTemplate",
16636
+ "type": {
16637
+ "text": "ViewTemplate<Filter>"
16638
+ },
16639
+ "default": "html`\n ${(x) => getPrefixedFilterTemplate(getPrefix(x))}</div>\n`"
16224
16640
  }
16225
16641
  ],
16226
16642
  "exports": [
16227
16643
  {
16228
16644
  "kind": "js",
16229
- "name": "getPrefixedFileUpload",
16645
+ "name": "getPrefixedFilterTemplate",
16230
16646
  "declaration": {
16231
- "name": "getPrefixedFileUpload",
16232
- "module": "src/file-upload/file-upload.template.ts"
16647
+ "name": "getPrefixedFilterTemplate",
16648
+ "module": "src/filter/filter.template.ts"
16233
16649
  }
16234
16650
  },
16235
16651
  {
16236
16652
  "kind": "js",
16237
- "name": "foundationFileUploadTemplate",
16653
+ "name": "foundationFilterTemplate",
16238
16654
  "declaration": {
16239
- "name": "foundationFileUploadTemplate",
16240
- "module": "src/file-upload/file-upload.template.ts"
16655
+ "name": "foundationFilterTemplate",
16656
+ "module": "src/filter/filter.template.ts"
16241
16657
  }
16242
16658
  }
16243
16659
  ]
16244
16660
  },
16245
16661
  {
16246
16662
  "kind": "javascript-module",
16247
- "path": "src/file-upload/file-upload.ts",
16663
+ "path": "src/filter/filter.ts",
16248
16664
  "declarations": [
16249
16665
  {
16250
16666
  "kind": "class",
16251
16667
  "description": "",
16252
- "name": "FileUpload",
16668
+ "name": "Filter",
16253
16669
  "members": [
16254
16670
  {
16255
16671
  "kind": "field",
16256
- "name": "fileInput",
16672
+ "name": "textFilterField",
16257
16673
  "type": {
16258
- "text": "HTMLInputElement"
16674
+ "text": "TextField"
16259
16675
  },
16260
16676
  "privacy": "public"
16261
16677
  },
16262
16678
  {
16263
16679
  "kind": "field",
16264
- "name": "acceptedFormats",
16680
+ "name": "numFilterFieldMin",
16265
16681
  "type": {
16266
- "text": "array"
16682
+ "text": "TextField"
16267
16683
  },
16268
- "privacy": "private",
16269
- "default": "[]"
16684
+ "privacy": "public"
16270
16685
  },
16271
16686
  {
16272
16687
  "kind": "field",
16273
- "name": "selectedFiles",
16688
+ "name": "numFilterFieldMax",
16274
16689
  "type": {
16275
- "text": "File[]"
16690
+ "text": "TextField"
16276
16691
  },
16277
- "privacy": "private"
16278
- },
16279
- {
16280
- "kind": "field",
16281
- "name": "gridCriteria",
16282
- "type": {
16283
- "text": "string"
16284
- }
16692
+ "privacy": "public"
16285
16693
  },
16286
16694
  {
16287
16695
  "kind": "field",
16288
- "name": "connect",
16696
+ "name": "dateFilterFieldMin",
16289
16697
  "type": {
16290
- "text": "Connect"
16291
- }
16698
+ "text": "TextField"
16699
+ },
16700
+ "privacy": "public"
16292
16701
  },
16293
16702
  {
16294
16703
  "kind": "field",
16295
- "name": "session",
16704
+ "name": "dateFilterFieldMax",
16296
16705
  "type": {
16297
- "text": "Session"
16298
- }
16706
+ "text": "TextField"
16707
+ },
16708
+ "privacy": "public"
16299
16709
  },
16300
16710
  {
16301
16711
  "kind": "field",
16302
- "name": "label",
16712
+ "name": "fieldName",
16303
16713
  "type": {
16304
16714
  "text": "string"
16305
16715
  }
16306
16716
  },
16307
16717
  {
16308
16718
  "kind": "field",
16309
- "name": "accept",
16719
+ "name": "type",
16310
16720
  "type": {
16311
- "text": "string"
16721
+ "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
16312
16722
  },
16313
- "default": "''"
16314
- },
16315
- {
16316
- "kind": "method",
16317
- "name": "acceptChanged"
16723
+ "default": "'text'"
16318
16724
  },
16319
16725
  {
16320
16726
  "kind": "field",
16321
- "name": "fileSizeLimitBytes",
16322
- "default": "104_857_600",
16727
+ "name": "label",
16323
16728
  "type": {
16324
- "text": "number"
16729
+ "text": "string"
16325
16730
  }
16326
16731
  },
16327
16732
  {
16328
16733
  "kind": "field",
16329
- "name": "uploadedFilesResourceName",
16734
+ "name": "target",
16330
16735
  "type": {
16331
16736
  "text": "string"
16332
16737
  },
16333
- "default": "'ALL_FILE_ATTACHMENTS'"
16738
+ "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page."
16334
16739
  },
16335
16740
  {
16336
16741
  "kind": "field",
16337
- "name": "uploadEventName",
16742
+ "name": "textFilter",
16338
16743
  "type": {
16339
16744
  "text": "string"
16340
16745
  },
16341
- "default": "'gwf/attachment-handler/upload'"
16746
+ "default": "''"
16342
16747
  },
16343
16748
  {
16344
16749
  "kind": "field",
16345
- "name": "fieldName",
16750
+ "name": "numFilterMin",
16346
16751
  "type": {
16347
- "text": "string"
16752
+ "text": "number"
16348
16753
  }
16349
16754
  },
16350
- {
16351
- "kind": "method",
16352
- "name": "fieldNameChanged"
16353
- },
16354
16755
  {
16355
16756
  "kind": "field",
16356
- "name": "entityId",
16757
+ "name": "numFilterMax",
16357
16758
  "type": {
16358
- "text": "string"
16759
+ "text": "number"
16359
16760
  }
16360
16761
  },
16361
- {
16362
- "kind": "method",
16363
- "name": "entityIdChanged"
16364
- },
16365
16762
  {
16366
16763
  "kind": "field",
16367
- "name": "uploadKey",
16764
+ "name": "dateFilterMin",
16368
16765
  "type": {
16369
16766
  "text": "string"
16370
16767
  }
16371
16768
  },
16372
16769
  {
16373
16770
  "kind": "field",
16374
- "name": "gridFields",
16771
+ "name": "dateFilterMax",
16375
16772
  "type": {
16376
16773
  "text": "string"
16377
- },
16378
- "default": "''"
16774
+ }
16379
16775
  },
16380
16776
  {
16381
16777
  "kind": "field",
16382
- "name": "fileName",
16778
+ "name": "dateMinMS",
16383
16779
  "type": {
16384
- "text": "string"
16385
- },
16386
- "default": "''"
16780
+ "text": "number"
16781
+ }
16387
16782
  },
16388
16783
  {
16389
16784
  "kind": "field",
16390
- "name": "uploadedFilesList",
16785
+ "name": "dateMaxMS",
16391
16786
  "type": {
16392
- "text": "array"
16393
- },
16394
- "default": "[]"
16787
+ "text": "number"
16788
+ }
16395
16789
  },
16396
16790
  {
16397
16791
  "kind": "field",
16398
- "name": "filesGridColumnDefinitions",
16792
+ "name": "enumOptions",
16399
16793
  "type": {
16400
- "text": "ColumnDefinition[]"
16401
- },
16402
- "default": "[]"
16794
+ "text": "string"
16795
+ }
16403
16796
  },
16404
16797
  {
16405
16798
  "kind": "field",
16406
- "name": "downloadEventName",
16799
+ "name": "enumFilterOptions",
16407
16800
  "type": {
16408
- "text": "Function"
16801
+ "text": "any[]"
16409
16802
  },
16410
- "privacy": "public"
16803
+ "default": "[{ name: 'All', value: 'all', selected: true }]"
16411
16804
  },
16412
16805
  {
16413
16806
  "kind": "method",
16414
- "name": "setupGrid"
16807
+ "name": "textFilterChanged",
16808
+ "parameters": [
16809
+ {
16810
+ "name": "oldCriteria",
16811
+ "type": {
16812
+ "text": "string"
16813
+ }
16814
+ },
16815
+ {
16816
+ "name": "newCriteria",
16817
+ "type": {
16818
+ "text": "string"
16819
+ }
16820
+ }
16821
+ ]
16415
16822
  },
16416
16823
  {
16417
16824
  "kind": "method",
16418
- "name": "handleStreamRowOperation",
16419
- "privacy": "private",
16825
+ "name": "numFilterMinChanged",
16420
16826
  "parameters": [
16421
16827
  {
16422
- "name": "data",
16828
+ "name": "oldMin",
16423
16829
  "type": {
16424
- "text": "Message<any>"
16830
+ "text": "string"
16831
+ }
16832
+ },
16833
+ {
16834
+ "name": "newMin",
16835
+ "type": {
16836
+ "text": "string"
16425
16837
  }
16426
16838
  }
16427
16839
  ]
16428
16840
  },
16429
16841
  {
16430
16842
  "kind": "method",
16431
- "name": "setRowData"
16843
+ "name": "numFilterMaxChanged",
16844
+ "parameters": [
16845
+ {
16846
+ "name": "oldMax",
16847
+ "type": {
16848
+ "text": "string"
16849
+ }
16850
+ },
16851
+ {
16852
+ "name": "newMax",
16853
+ "type": {
16854
+ "text": "string"
16855
+ }
16856
+ }
16857
+ ]
16432
16858
  },
16433
16859
  {
16434
16860
  "kind": "method",
16435
- "name": "setColumnDefs"
16861
+ "name": "handleNumericFilter",
16862
+ "privacy": "private",
16863
+ "parameters": [
16864
+ {
16865
+ "name": "min",
16866
+ "type": {
16867
+ "text": "number"
16868
+ }
16869
+ },
16870
+ {
16871
+ "name": "max",
16872
+ "type": {
16873
+ "text": "number"
16874
+ }
16875
+ }
16876
+ ]
16436
16877
  },
16437
16878
  {
16438
16879
  "kind": "method",
16439
- "name": "getDownloadColumn",
16440
- "privacy": "public"
16880
+ "name": "formatDate",
16881
+ "privacy": "private",
16882
+ "return": {
16883
+ "type": {
16884
+ "text": ""
16885
+ }
16886
+ },
16887
+ "parameters": [
16888
+ {
16889
+ "name": "epoch",
16890
+ "type": {
16891
+ "text": "number"
16892
+ },
16893
+ "description": "ms since unix epoch"
16894
+ }
16895
+ ],
16896
+ "description": "Example: 1634083200000 -> '20211013-00:00:00'"
16441
16897
  },
16442
16898
  {
16443
16899
  "kind": "method",
16444
- "name": "getColumnObject",
16445
- "privacy": "public",
16900
+ "name": "dateFilterMinChanged",
16446
16901
  "parameters": [
16447
16902
  {
16448
- "name": "column"
16903
+ "name": "oldMin",
16904
+ "type": {
16905
+ "text": "string"
16906
+ }
16907
+ },
16908
+ {
16909
+ "name": "newMin",
16910
+ "type": {
16911
+ "text": "string"
16912
+ }
16449
16913
  }
16450
16914
  ]
16451
16915
  },
16452
16916
  {
16453
16917
  "kind": "method",
16454
- "name": "handleClick",
16455
- "privacy": "public"
16456
- },
16457
- {
16458
- "kind": "method",
16459
- "name": "onInputChange",
16460
- "privacy": "public",
16918
+ "name": "dateFilterMaxChanged",
16461
16919
  "parameters": [
16462
16920
  {
16463
- "name": "e"
16921
+ "name": "oldMax",
16922
+ "type": {
16923
+ "text": "string"
16924
+ }
16925
+ },
16926
+ {
16927
+ "name": "newMax",
16928
+ "type": {
16929
+ "text": "string"
16930
+ }
16464
16931
  }
16465
16932
  ]
16466
16933
  },
16467
16934
  {
16468
16935
  "kind": "method",
16469
- "name": "onFilesSelected",
16470
- "privacy": "public",
16936
+ "name": "handleDateFilter",
16937
+ "privacy": "private",
16471
16938
  "parameters": [
16472
16939
  {
16473
- "name": "files",
16940
+ "name": "min",
16474
16941
  "type": {
16475
- "text": "File[]"
16942
+ "text": "number"
16943
+ }
16944
+ },
16945
+ {
16946
+ "name": "max",
16947
+ "type": {
16948
+ "text": "number"
16476
16949
  }
16477
16950
  }
16478
16951
  ]
16479
16952
  },
16480
16953
  {
16481
16954
  "kind": "method",
16482
- "name": "handleFileUpload",
16955
+ "name": "clear",
16483
16956
  "privacy": "public"
16484
16957
  },
16485
16958
  {
16486
16959
  "kind": "method",
16487
- "name": "handleFileDownload",
16960
+ "name": "onBooleanFilterSelection",
16488
16961
  "privacy": "public",
16489
16962
  "parameters": [
16490
16963
  {
16491
- "name": "rowData",
16964
+ "name": "selection",
16492
16965
  "type": {
16493
- "text": "any"
16966
+ "text": "'all' | 'true' | 'false' | 'null'"
16494
16967
  }
16495
16968
  }
16496
16969
  ]
16497
16970
  },
16498
16971
  {
16499
16972
  "kind": "method",
16500
- "name": "clearSelection",
16501
- "privacy": "public"
16973
+ "name": "onEnumFilterSelection",
16974
+ "privacy": "public",
16975
+ "parameters": [
16976
+ {
16977
+ "name": "selection",
16978
+ "type": {
16979
+ "text": "string"
16980
+ }
16981
+ }
16982
+ ]
16502
16983
  },
16503
16984
  {
16504
16985
  "kind": "field",
@@ -16614,255 +17095,77 @@
16614
17095
  ],
16615
17096
  "attributes": [
16616
17097
  {
16617
- "name": "label",
16618
- "type": {
16619
- "text": "string"
16620
- },
16621
- "fieldName": "label"
16622
- },
16623
- {
16624
- "name": "accept",
16625
- "type": {
16626
- "text": "string"
16627
- },
16628
- "default": "''",
16629
- "fieldName": "accept"
16630
- },
16631
- {
16632
- "name": "file-size-limit-bytes",
16633
- "default": "FILE_SIZE_LIMIT",
16634
- "resolveInitializer": {
16635
- "module": "src/file-upload/file-upload.ts"
16636
- },
16637
- "fieldName": "fileSizeLimitBytes"
16638
- },
16639
- {
16640
- "name": "uploaded-files-resource-name",
16641
- "type": {
16642
- "text": "string"
16643
- },
16644
- "default": "'ALL_FILE_ATTACHMENTS'",
16645
- "fieldName": "uploadedFilesResourceName"
16646
- },
16647
- {
16648
- "name": "upload-event-name",
16649
- "type": {
16650
- "text": "string"
16651
- },
16652
- "default": "'gwf/attachment-handler/upload'",
16653
- "fieldName": "uploadEventName"
16654
- },
16655
- {
16656
- "name": "field-name",
17098
+ "name": "fieldName",
16657
17099
  "type": {
16658
17100
  "text": "string"
16659
17101
  },
16660
17102
  "fieldName": "fieldName"
16661
17103
  },
16662
17104
  {
16663
- "name": "entity-id",
16664
- "type": {
16665
- "text": "string"
16666
- },
16667
- "fieldName": "entityId"
16668
- },
16669
- {
16670
- "name": "upload-key",
17105
+ "name": "type",
16671
17106
  "type": {
16672
- "text": "string"
17107
+ "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
16673
17108
  },
16674
- "fieldName": "uploadKey"
17109
+ "default": "'text'",
17110
+ "fieldName": "type"
16675
17111
  },
16676
17112
  {
16677
- "name": "grid-fields",
17113
+ "name": "label",
16678
17114
  "type": {
16679
17115
  "text": "string"
16680
17116
  },
16681
- "default": "''",
16682
- "fieldName": "gridFields"
16683
- }
16684
- ],
16685
- "superclass": {
16686
- "name": "FoundationElement",
16687
- "package": "@microsoft/fast-foundation"
16688
- },
16689
- "tagName": "%%prefix%%-file-upload",
16690
- "customElement": true
16691
- },
16692
- {
16693
- "kind": "variable",
16694
- "name": "foundationFileUploadShadowOptions",
16695
- "type": {
16696
- "text": "ShadowRootInit"
16697
- },
16698
- "default": "undefined"
16699
- },
16700
- {
16701
- "kind": "variable",
16702
- "name": "defaultFileUploadConfig",
16703
- "type": {
16704
- "text": "object"
16705
- },
16706
- "default": "{}"
16707
- },
16708
- {
16709
- "kind": "variable",
16710
- "name": "foundationFileUpload",
16711
- "description": "The Foundation File Upload",
16712
- "privacy": "public"
16713
- }
16714
- ],
16715
- "exports": [
16716
- {
16717
- "kind": "js",
16718
- "name": "FileUpload",
16719
- "declaration": {
16720
- "name": "FileUpload",
16721
- "module": "src/file-upload/file-upload.ts"
16722
- }
16723
- },
16724
- {
16725
- "kind": "js",
16726
- "name": "foundationFileUploadShadowOptions",
16727
- "declaration": {
16728
- "name": "foundationFileUploadShadowOptions",
16729
- "module": "src/file-upload/file-upload.ts"
16730
- }
16731
- },
16732
- {
16733
- "kind": "js",
16734
- "name": "defaultFileUploadConfig",
16735
- "declaration": {
16736
- "name": "defaultFileUploadConfig",
16737
- "module": "src/file-upload/file-upload.ts"
16738
- }
16739
- },
16740
- {
16741
- "kind": "js",
16742
- "name": "foundationFileUpload",
16743
- "declaration": {
16744
- "name": "foundationFileUpload",
16745
- "module": "src/file-upload/file-upload.ts"
16746
- }
16747
- }
16748
- ]
16749
- },
16750
- {
16751
- "kind": "javascript-module",
16752
- "path": "src/file-upload/file-upload.utils.ts",
16753
- "declarations": [
16754
- {
16755
- "kind": "function",
16756
- "name": "createFormData",
16757
- "parameters": [
16758
- {
16759
- "name": "files",
16760
- "type": {
16761
- "text": "Array<File>"
16762
- }
16763
- }
16764
- ]
16765
- },
16766
- {
16767
- "kind": "function",
16768
- "name": "uploadFiles",
16769
- "parameters": [
16770
- {
16771
- "name": "url",
16772
- "type": {
16773
- "text": "string"
16774
- }
16775
- },
16776
- {
16777
- "name": "formData",
16778
- "type": {
16779
- "text": "FormData"
16780
- }
16781
- },
16782
- {
16783
- "name": "authToken",
16784
- "type": {
16785
- "text": "string"
16786
- }
16787
- }
16788
- ]
16789
- },
16790
- {
16791
- "kind": "function",
16792
- "name": "downloadFile",
16793
- "parameters": [
16794
- {
16795
- "name": "url",
16796
- "type": {
16797
- "text": "string"
16798
- }
16799
- },
16800
- {
16801
- "name": "filename",
16802
- "type": {
16803
- "text": "string"
16804
- }
16805
- },
16806
- {
16807
- "name": "authToken",
16808
- "type": {
16809
- "text": "string"
16810
- }
16811
- },
16812
- {
16813
- "name": "method",
16814
- "default": "'GET'",
16815
- "type": {
16816
- "text": "string"
16817
- }
17117
+ "fieldName": "label"
16818
17118
  },
16819
17119
  {
16820
- "name": "showNotifications",
16821
- "optional": true,
16822
- "type": {
16823
- "text": "boolean"
16824
- }
17120
+ "name": "target",
17121
+ "type": {
17122
+ "text": "string"
17123
+ },
17124
+ "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page.",
17125
+ "fieldName": "target"
16825
17126
  },
16826
17127
  {
16827
- "name": "body",
16828
- "optional": true,
17128
+ "name": "enumOptions",
16829
17129
  "type": {
16830
- "text": "any"
16831
- }
17130
+ "text": "string"
17131
+ },
17132
+ "fieldName": "enumOptions"
16832
17133
  }
16833
- ]
17134
+ ],
17135
+ "superclass": {
17136
+ "name": "FoundationElement",
17137
+ "package": "@microsoft/fast-foundation"
17138
+ },
17139
+ "tagName": "%%prefix%%-filter",
17140
+ "customElement": true
17141
+ },
17142
+ {
17143
+ "kind": "variable",
17144
+ "name": "foundationFilter"
16834
17145
  }
16835
17146
  ],
16836
17147
  "exports": [
16837
17148
  {
16838
17149
  "kind": "js",
16839
- "name": "createFormData",
16840
- "declaration": {
16841
- "name": "createFormData",
16842
- "module": "src/file-upload/file-upload.utils.ts"
16843
- }
16844
- },
16845
- {
16846
- "kind": "js",
16847
- "name": "uploadFiles",
17150
+ "name": "Filter",
16848
17151
  "declaration": {
16849
- "name": "uploadFiles",
16850
- "module": "src/file-upload/file-upload.utils.ts"
17152
+ "name": "Filter",
17153
+ "module": "src/filter/filter.ts"
16851
17154
  }
16852
17155
  },
16853
17156
  {
16854
17157
  "kind": "js",
16855
- "name": "downloadFile",
17158
+ "name": "foundationFilter",
16856
17159
  "declaration": {
16857
- "name": "downloadFile",
16858
- "module": "src/file-upload/file-upload.utils.ts"
17160
+ "name": "foundationFilter",
17161
+ "module": "src/filter/filter.ts"
16859
17162
  }
16860
17163
  }
16861
17164
  ]
16862
17165
  },
16863
17166
  {
16864
17167
  "kind": "javascript-module",
16865
- "path": "src/file-upload/index.ts",
17168
+ "path": "src/filter/index.ts",
16866
17169
  "declarations": [],
16867
17170
  "exports": [
16868
17171
  {
@@ -16870,15 +17173,7 @@
16870
17173
  "name": "*",
16871
17174
  "declaration": {
16872
17175
  "name": "*",
16873
- "package": "./file-upload"
16874
- }
16875
- },
16876
- {
16877
- "kind": "js",
16878
- "name": "*",
16879
- "declaration": {
16880
- "name": "*",
16881
- "package": "./file-upload.template"
17176
+ "package": "./filter.styles"
16882
17177
  }
16883
17178
  },
16884
17179
  {
@@ -16886,7 +17181,7 @@
16886
17181
  "name": "*",
16887
17182
  "declaration": {
16888
17183
  "name": "*",
16889
- "package": "./file-upload.styles"
17184
+ "package": "./filter.template"
16890
17185
  }
16891
17186
  },
16892
17187
  {
@@ -16894,42 +17189,42 @@
16894
17189
  "name": "*",
16895
17190
  "declaration": {
16896
17191
  "name": "*",
16897
- "package": "./file-upload.utils"
17192
+ "package": "./filter"
16898
17193
  }
16899
17194
  }
16900
17195
  ]
16901
17196
  },
16902
17197
  {
16903
17198
  "kind": "javascript-module",
16904
- "path": "src/filter/filter.styles.ts",
17199
+ "path": "src/error-dialog/error-dialog.styles.ts",
16905
17200
  "declarations": [
16906
17201
  {
16907
17202
  "kind": "variable",
16908
- "name": "foundationFilterStyles",
17203
+ "name": "foundationErrorDialogStyles",
16909
17204
  "type": {
16910
17205
  "text": "ElementStyles"
16911
17206
  },
16912
- "default": "css`\n .filter-wrapper {\n border: 1px solid gray;\n border-radius: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 1px);\n }\n\n .close-icon {\n display: flex;\n place-content: center;\n align-items: center;\n flex-direction: column;\n align-content: center;\n justify-content: center;\n margin: calc(var(--design-unit) * 1px);\n padding: calc(var(--design-unit) * 1px);\n border: 1px solid transparent;\n border-radius: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon,\n .cloase-icon svg path {\n transition-property: all;\n transition-timing-function: linear;\n transition-duration: 300ms;\n }\n\n .close-icon:hover {\n border-color: red;\n background: rgb(255 0 0 / 25%);\n }\n\n .close-icon:hover svg path {\n fill: red;\n }\n\n .flex-row {\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: space-between;\n align-items: center;\n }\n\n .flex-row zero-text-field,\n .flex-row zero-select,\n .flex-row foundation-text-field,\n .flex-row foundation-select {\n flex: 1;\n }\n`"
17207
+ "default": "css`\n :host {\n --design-unit: 3;\n --dialog-max-width: 358px;\n --dialog-min-width: 358px;\n --dialog-max-height: 128px;\n --error-details-min-height: 40px;\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(--error-details-min-height);\n }\n`"
16913
17208
  }
16914
17209
  ],
16915
17210
  "exports": [
16916
17211
  {
16917
17212
  "kind": "js",
16918
- "name": "foundationFilterStyles",
17213
+ "name": "foundationErrorDialogStyles",
16919
17214
  "declaration": {
16920
- "name": "foundationFilterStyles",
16921
- "module": "src/filter/filter.styles.ts"
17215
+ "name": "foundationErrorDialogStyles",
17216
+ "module": "src/error-dialog/error-dialog.styles.ts"
16922
17217
  }
16923
17218
  }
16924
17219
  ]
16925
17220
  },
16926
17221
  {
16927
17222
  "kind": "javascript-module",
16928
- "path": "src/filter/filter.template.ts",
17223
+ "path": "src/error-dialog/error-dialog.template.ts",
16929
17224
  "declarations": [
16930
17225
  {
16931
17226
  "kind": "function",
16932
- "name": "getPrefixedFilterTemplate",
17227
+ "name": "getErrorDialogTemplate",
16933
17228
  "parameters": [
16934
17229
  {
16935
17230
  "name": "prefix",
@@ -16941,354 +17236,95 @@
16941
17236
  },
16942
17237
  {
16943
17238
  "kind": "variable",
16944
- "name": "foundationFilterTemplate",
16945
- "type": {
16946
- "text": "ViewTemplate<Filter>"
16947
- },
16948
- "default": "html`\n ${(x) => getPrefixedFilterTemplate(getPrefix(x))}</div>\n`"
17239
+ "name": "errorDialogTemplate",
17240
+ "default": "html<ErrorDialog>`\n ${(x) => getErrorDialogTemplate(getPrefix(x))}\n`"
16949
17241
  }
16950
17242
  ],
16951
17243
  "exports": [
16952
17244
  {
16953
17245
  "kind": "js",
16954
- "name": "getPrefixedFilterTemplate",
17246
+ "name": "getErrorDialogTemplate",
16955
17247
  "declaration": {
16956
- "name": "getPrefixedFilterTemplate",
16957
- "module": "src/filter/filter.template.ts"
17248
+ "name": "getErrorDialogTemplate",
17249
+ "module": "src/error-dialog/error-dialog.template.ts"
16958
17250
  }
16959
17251
  },
16960
17252
  {
16961
17253
  "kind": "js",
16962
- "name": "foundationFilterTemplate",
17254
+ "name": "errorDialogTemplate",
16963
17255
  "declaration": {
16964
- "name": "foundationFilterTemplate",
16965
- "module": "src/filter/filter.template.ts"
17256
+ "name": "errorDialogTemplate",
17257
+ "module": "src/error-dialog/error-dialog.template.ts"
16966
17258
  }
16967
17259
  }
16968
17260
  ]
16969
17261
  },
16970
17262
  {
16971
17263
  "kind": "javascript-module",
16972
- "path": "src/filter/filter.ts",
16973
- "declarations": [
16974
- {
16975
- "kind": "class",
16976
- "description": "",
16977
- "name": "Filter",
16978
- "members": [
16979
- {
16980
- "kind": "field",
16981
- "name": "textFilterField",
16982
- "type": {
16983
- "text": "TextField"
16984
- },
16985
- "privacy": "public"
16986
- },
16987
- {
16988
- "kind": "field",
16989
- "name": "numFilterFieldMin",
16990
- "type": {
16991
- "text": "TextField"
16992
- },
16993
- "privacy": "public"
16994
- },
16995
- {
16996
- "kind": "field",
16997
- "name": "numFilterFieldMax",
16998
- "type": {
16999
- "text": "TextField"
17000
- },
17001
- "privacy": "public"
17002
- },
17003
- {
17004
- "kind": "field",
17005
- "name": "dateFilterFieldMin",
17006
- "type": {
17007
- "text": "TextField"
17008
- },
17009
- "privacy": "public"
17010
- },
17011
- {
17012
- "kind": "field",
17013
- "name": "dateFilterFieldMax",
17014
- "type": {
17015
- "text": "TextField"
17016
- },
17017
- "privacy": "public"
17018
- },
17019
- {
17020
- "kind": "field",
17021
- "name": "fieldName",
17022
- "type": {
17023
- "text": "string"
17024
- }
17025
- },
17026
- {
17027
- "kind": "field",
17028
- "name": "type",
17029
- "type": {
17030
- "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
17031
- },
17032
- "default": "'text'"
17033
- },
17034
- {
17035
- "kind": "field",
17036
- "name": "label",
17037
- "type": {
17038
- "text": "string"
17039
- }
17040
- },
17041
- {
17042
- "kind": "field",
17043
- "name": "target",
17044
- "type": {
17045
- "text": "string"
17046
- },
17047
- "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page."
17048
- },
17049
- {
17050
- "kind": "field",
17051
- "name": "textFilter",
17052
- "type": {
17053
- "text": "string"
17054
- },
17055
- "default": "''"
17056
- },
17057
- {
17058
- "kind": "field",
17059
- "name": "numFilterMin",
17060
- "type": {
17061
- "text": "number"
17062
- }
17063
- },
17064
- {
17065
- "kind": "field",
17066
- "name": "numFilterMax",
17067
- "type": {
17068
- "text": "number"
17069
- }
17070
- },
17071
- {
17072
- "kind": "field",
17073
- "name": "dateFilterMin",
17074
- "type": {
17075
- "text": "string"
17076
- }
17077
- },
17078
- {
17079
- "kind": "field",
17080
- "name": "dateFilterMax",
17081
- "type": {
17082
- "text": "string"
17083
- }
17084
- },
17085
- {
17086
- "kind": "field",
17087
- "name": "dateMinMS",
17088
- "type": {
17089
- "text": "number"
17090
- }
17091
- },
17092
- {
17093
- "kind": "field",
17094
- "name": "dateMaxMS",
17095
- "type": {
17096
- "text": "number"
17097
- }
17098
- },
17099
- {
17100
- "kind": "field",
17101
- "name": "enumOptions",
17102
- "type": {
17103
- "text": "string"
17104
- }
17105
- },
17106
- {
17107
- "kind": "field",
17108
- "name": "enumFilterOptions",
17109
- "type": {
17110
- "text": "any[]"
17111
- },
17112
- "default": "[{ name: 'All', value: 'all', selected: true }]"
17113
- },
17114
- {
17115
- "kind": "method",
17116
- "name": "textFilterChanged",
17117
- "parameters": [
17118
- {
17119
- "name": "oldCriteria",
17120
- "type": {
17121
- "text": "string"
17122
- }
17123
- },
17124
- {
17125
- "name": "newCriteria",
17126
- "type": {
17127
- "text": "string"
17128
- }
17129
- }
17130
- ]
17131
- },
17264
+ "path": "src/error-dialog/error-dialog.ts",
17265
+ "declarations": [
17266
+ {
17267
+ "kind": "variable",
17268
+ "name": "foundationErrorDialogShadowOptions",
17269
+ "type": {
17270
+ "text": "ShadowRootInit"
17271
+ },
17272
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
17273
+ },
17274
+ {
17275
+ "kind": "class",
17276
+ "description": "",
17277
+ "name": "ErrorDialog",
17278
+ "members": [
17132
17279
  {
17133
- "kind": "method",
17134
- "name": "numFilterMinChanged",
17135
- "parameters": [
17136
- {
17137
- "name": "oldMin",
17138
- "type": {
17139
- "text": "string"
17140
- }
17141
- },
17142
- {
17143
- "name": "newMin",
17144
- "type": {
17145
- "text": "string"
17146
- }
17147
- }
17148
- ]
17280
+ "kind": "field",
17281
+ "name": "dialog",
17282
+ "type": {
17283
+ "text": "HTMLElement & { close: () => void; show: () => void }"
17284
+ },
17285
+ "privacy": "public"
17149
17286
  },
17150
17287
  {
17151
- "kind": "method",
17152
- "name": "numFilterMaxChanged",
17153
- "parameters": [
17154
- {
17155
- "name": "oldMax",
17156
- "type": {
17157
- "text": "string"
17158
- }
17159
- },
17160
- {
17161
- "name": "newMax",
17162
- "type": {
17163
- "text": "string"
17164
- }
17165
- }
17166
- ]
17288
+ "kind": "field",
17289
+ "name": "error",
17290
+ "type": {
17291
+ "text": "ErrorStructure"
17292
+ }
17167
17293
  },
17168
17294
  {
17169
- "kind": "method",
17170
- "name": "handleNumericFilter",
17171
- "privacy": "private",
17172
- "parameters": [
17173
- {
17174
- "name": "min",
17175
- "type": {
17176
- "text": "number"
17177
- }
17178
- },
17179
- {
17180
- "name": "max",
17181
- "type": {
17182
- "text": "number"
17183
- }
17184
- }
17185
- ]
17295
+ "kind": "field",
17296
+ "name": "notification",
17297
+ "type": {
17298
+ "text": "NotificationStructure"
17299
+ }
17186
17300
  },
17187
17301
  {
17188
17302
  "kind": "method",
17189
- "name": "formatDate",
17190
- "privacy": "private",
17303
+ "name": "show",
17304
+ "privacy": "public",
17191
17305
  "return": {
17192
17306
  "type": {
17193
- "text": ""
17307
+ "text": "void"
17194
17308
  }
17195
17309
  },
17196
- "parameters": [
17197
- {
17198
- "name": "epoch",
17199
- "type": {
17200
- "text": "number"
17201
- },
17202
- "description": "ms since unix epoch"
17203
- }
17204
- ],
17205
- "description": "Example: 1634083200000 -> '20211013-00:00:00'"
17206
- },
17207
- {
17208
- "kind": "method",
17209
- "name": "dateFilterMinChanged",
17210
- "parameters": [
17211
- {
17212
- "name": "oldMin",
17213
- "type": {
17214
- "text": "string"
17215
- }
17216
- },
17217
- {
17218
- "name": "newMin",
17219
- "type": {
17220
- "text": "string"
17221
- }
17222
- }
17223
- ]
17224
- },
17225
- {
17226
- "kind": "method",
17227
- "name": "dateFilterMaxChanged",
17228
- "parameters": [
17229
- {
17230
- "name": "oldMax",
17231
- "type": {
17232
- "text": "string"
17233
- }
17234
- },
17235
- {
17236
- "name": "newMax",
17237
- "type": {
17238
- "text": "string"
17239
- }
17240
- }
17241
- ]
17242
- },
17243
- {
17244
- "kind": "method",
17245
- "name": "handleDateFilter",
17246
- "privacy": "private",
17247
- "parameters": [
17248
- {
17249
- "name": "min",
17250
- "type": {
17251
- "text": "number"
17252
- }
17253
- },
17254
- {
17255
- "name": "max",
17256
- "type": {
17257
- "text": "number"
17258
- }
17259
- }
17260
- ]
17261
- },
17262
- {
17263
- "kind": "method",
17264
- "name": "clear",
17265
- "privacy": "public"
17310
+ "description": "Show the Error Dialog."
17266
17311
  },
17267
17312
  {
17268
17313
  "kind": "method",
17269
- "name": "onBooleanFilterSelection",
17314
+ "name": "dismiss",
17270
17315
  "privacy": "public",
17271
- "parameters": [
17272
- {
17273
- "name": "selection",
17274
- "type": {
17275
- "text": "'all' | 'true' | 'false' | 'null'"
17276
- }
17277
- }
17278
- ]
17316
+ "description": "Dismiss the Error Dialog from display and calls the dismissing action."
17279
17317
  },
17280
17318
  {
17281
17319
  "kind": "method",
17282
- "name": "onEnumFilterSelection",
17320
+ "name": "closeDialog",
17283
17321
  "privacy": "public",
17284
- "parameters": [
17285
- {
17286
- "name": "selection",
17287
- "type": {
17288
- "text": "string"
17289
- }
17322
+ "return": {
17323
+ "type": {
17324
+ "text": "void"
17290
17325
  }
17291
- ]
17326
+ },
17327
+ "description": "Dismiss the Error Dialog from display."
17292
17328
  },
17293
17329
  {
17294
17330
  "kind": "field",
@@ -17402,79 +17438,51 @@
17402
17438
  }
17403
17439
  }
17404
17440
  ],
17405
- "attributes": [
17406
- {
17407
- "name": "fieldName",
17408
- "type": {
17409
- "text": "string"
17410
- },
17411
- "fieldName": "fieldName"
17412
- },
17413
- {
17414
- "name": "type",
17415
- "type": {
17416
- "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
17417
- },
17418
- "default": "'text'",
17419
- "fieldName": "type"
17420
- },
17421
- {
17422
- "name": "label",
17423
- "type": {
17424
- "text": "string"
17425
- },
17426
- "fieldName": "label"
17427
- },
17428
- {
17429
- "name": "target",
17430
- "type": {
17431
- "text": "string"
17432
- },
17433
- "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page.",
17434
- "fieldName": "target"
17435
- },
17436
- {
17437
- "name": "enumOptions",
17438
- "type": {
17439
- "text": "string"
17440
- },
17441
- "fieldName": "enumOptions"
17442
- }
17443
- ],
17444
17441
  "superclass": {
17445
17442
  "name": "FoundationElement",
17446
17443
  "package": "@microsoft/fast-foundation"
17447
17444
  },
17448
- "tagName": "%%prefix%%-filter",
17445
+ "tagName": "%%prefix%%-error-dialog",
17446
+ "deprecated": "true",
17449
17447
  "customElement": true
17450
17448
  },
17451
17449
  {
17452
17450
  "kind": "variable",
17453
- "name": "foundationFilter"
17451
+ "name": "foundationErrorDialog",
17452
+ "description": "The Foundation Error Dialog",
17453
+ "privacy": "public"
17454
17454
  }
17455
17455
  ],
17456
17456
  "exports": [
17457
17457
  {
17458
17458
  "kind": "js",
17459
- "name": "Filter",
17459
+ "name": "foundationErrorDialogShadowOptions",
17460
17460
  "declaration": {
17461
- "name": "Filter",
17462
- "module": "src/filter/filter.ts"
17461
+ "name": "foundationErrorDialogShadowOptions",
17462
+ "module": "src/error-dialog/error-dialog.ts"
17463
17463
  }
17464
17464
  },
17465
17465
  {
17466
17466
  "kind": "js",
17467
- "name": "foundationFilter",
17467
+ "name": "ErrorDialog",
17468
17468
  "declaration": {
17469
- "name": "foundationFilter",
17470
- "module": "src/filter/filter.ts"
17469
+ "name": "ErrorDialog",
17470
+ "module": "src/error-dialog/error-dialog.ts"
17471
+ }
17472
+ },
17473
+ {
17474
+ "kind": "js",
17475
+ "name": "foundationErrorDialog",
17476
+ "declaration": {
17477
+ "name": "foundationErrorDialog",
17478
+ "module": "src/error-dialog/error-dialog.ts"
17471
17479
  }
17472
17480
  }
17473
17481
  ]
17474
17482
  },
17475
17483
  {
17476
17484
  "kind": "javascript-module",
17477
- "path": "src/filter/index.ts",
17485
+ "path": "src/error-dialog/index.ts",
17478
17486
  "declarations": [],
17479
17487
  "exports": [
17480
17488
  {
@@ -17482,7 +17490,7 @@
17482
17490
  "name": "*",
17483
17491
  "declaration": {
17484
17492
  "name": "*",
17485
- "package": "./filter.styles"
17493
+ "package": "./error-dialog.template"
17486
17494
  }
17487
17495
  },
17488
17496
  {
@@ -17490,7 +17498,7 @@
17490
17498
  "name": "*",
17491
17499
  "declaration": {
17492
17500
  "name": "*",
17493
- "package": "./filter.template"
17501
+ "package": "./error-dialog"
17494
17502
  }
17495
17503
  },
17496
17504
  {
@@ -17498,7 +17506,7 @@
17498
17506
  "name": "*",
17499
17507
  "declaration": {
17500
17508
  "name": "*",
17501
- "package": "./filter"
17509
+ "package": "./error-dialog.styles"
17502
17510
  }
17503
17511
  }
17504
17512
  ]