@genesislcap/foundation-zero 14.94.0 → 14.94.1

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.
@@ -645,37 +645,6 @@
645
645
  }
646
646
  ]
647
647
  },
648
- {
649
- "kind": "javascript-module",
650
- "path": "src/_config/index.ts",
651
- "declarations": [],
652
- "exports": [
653
- {
654
- "kind": "js",
655
- "name": "*",
656
- "declaration": {
657
- "name": "*",
658
- "package": "./styles"
659
- }
660
- },
661
- {
662
- "kind": "js",
663
- "name": "*",
664
- "declaration": {
665
- "name": "*",
666
- "package": "./tokens"
667
- }
668
- },
669
- {
670
- "kind": "js",
671
- "name": "*",
672
- "declaration": {
673
- "name": "*",
674
- "package": "./values"
675
- }
676
- }
677
- ]
678
- },
679
648
  {
680
649
  "kind": "javascript-module",
681
650
  "path": "src/_common/colors.hex.ts",
@@ -817,51 +786,11 @@
817
786
  },
818
787
  {
819
788
  "kind": "javascript-module",
820
- "path": "src/accordion/accordion.stories.ts",
821
- "declarations": [
822
- {
823
- "kind": "variable",
824
- "name": "meta",
825
- "type": {
826
- "text": "Meta"
827
- },
828
- "default": "{\n title: 'Accordion',\n component: 'zero-accordion',\n}"
829
- },
830
- {
831
- "kind": "variable",
832
- "name": "Primary",
833
- "type": {
834
- "text": "StoryObj"
835
- },
836
- "default": "{\n render: () => html`\n <zero-accordion>\n <zero-accordion-item slot=\"item\" id=\"accordion-1\">\n Accordion one content\n <div slot=\"heading\">Accordion one</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-2\">\n Accordion two content\n <div slot=\"heading\">Accordion two</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-3\">\n Accordion three content\n <div slot=\"heading\">Accordion three</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-4\">\n Accordion four content\n <div slot=\"heading\">Accordion four</div>\n </zero-accordion-item>\n </zero-accordion>\n `,\n}"
837
- }
838
- ],
839
- "exports": [
840
- {
841
- "kind": "js",
842
- "name": "default",
843
- "declaration": {
844
- "name": "meta",
845
- "module": "src/accordion/accordion.stories.ts"
846
- }
847
- },
848
- {
849
- "kind": "js",
850
- "name": "Primary",
851
- "declaration": {
852
- "name": "Primary",
853
- "module": "src/accordion/accordion.stories.ts"
854
- }
855
- }
856
- ]
857
- },
858
- {
859
- "kind": "javascript-module",
860
- "path": "src/accordion/accordion.styles.ts",
789
+ "path": "src/accordion-item/accordion-item.styles.ts",
861
790
  "declarations": [
862
791
  {
863
792
  "kind": "function",
864
- "name": "zeroAccordionStyles",
793
+ "name": "zeroAccordionItemStyles",
865
794
  "return": {
866
795
  "type": {
867
796
  "text": "ElementStyles"
@@ -886,24 +815,24 @@
886
815
  "exports": [
887
816
  {
888
817
  "kind": "js",
889
- "name": "zeroAccordionStyles",
818
+ "name": "zeroAccordionItemStyles",
890
819
  "declaration": {
891
- "name": "zeroAccordionStyles",
892
- "module": "src/accordion/accordion.styles.ts"
820
+ "name": "zeroAccordionItemStyles",
821
+ "module": "src/accordion-item/accordion-item.styles.ts"
893
822
  }
894
823
  }
895
824
  ]
896
825
  },
897
826
  {
898
827
  "kind": "javascript-module",
899
- "path": "src/accordion/accordion.template.ts",
828
+ "path": "src/accordion-item/accordion-item.template.ts",
900
829
  "declarations": [
901
830
  {
902
831
  "kind": "function",
903
- "name": "zeroAccordionTemplate",
832
+ "name": "zeroAccordionItemTemplate",
904
833
  "return": {
905
834
  "type": {
906
- "text": "ViewTemplate<Accordion>"
835
+ "text": "ViewTemplate<AccordionItem>"
907
836
  }
908
837
  },
909
838
  "parameters": [
@@ -925,24 +854,24 @@
925
854
  "exports": [
926
855
  {
927
856
  "kind": "js",
928
- "name": "zeroAccordionTemplate",
857
+ "name": "zeroAccordionItemTemplate",
929
858
  "declaration": {
930
- "name": "zeroAccordionTemplate",
931
- "module": "src/accordion/accordion.template.ts"
859
+ "name": "zeroAccordionItemTemplate",
860
+ "module": "src/accordion-item/accordion-item.template.ts"
932
861
  }
933
862
  }
934
863
  ]
935
864
  },
936
865
  {
937
866
  "kind": "javascript-module",
938
- "path": "src/accordion/accordion.ts",
867
+ "path": "src/accordion-item/accordion-item.ts",
939
868
  "declarations": [
940
869
  {
941
870
  "kind": "class",
942
871
  "description": "",
943
- "name": "Accordion",
872
+ "name": "AccordionItem",
944
873
  "superclass": {
945
- "name": "FoundationAccordion",
874
+ "name": "FoundationAccordionItem",
946
875
  "package": "@genesislcap/foundation-ui"
947
876
  },
948
877
  "tagName": "%%prefix%%-card",
@@ -950,31 +879,31 @@
950
879
  },
951
880
  {
952
881
  "kind": "variable",
953
- "name": "zeroAccordion"
882
+ "name": "zeroAccordionItem"
954
883
  }
955
884
  ],
956
885
  "exports": [
957
886
  {
958
887
  "kind": "js",
959
- "name": "Accordion",
888
+ "name": "AccordionItem",
960
889
  "declaration": {
961
- "name": "Accordion",
962
- "module": "src/accordion/accordion.ts"
890
+ "name": "AccordionItem",
891
+ "module": "src/accordion-item/accordion-item.ts"
963
892
  }
964
893
  },
965
894
  {
966
895
  "kind": "js",
967
- "name": "zeroAccordion",
896
+ "name": "zeroAccordionItem",
968
897
  "declaration": {
969
- "name": "zeroAccordion",
970
- "module": "src/accordion/accordion.ts"
898
+ "name": "zeroAccordionItem",
899
+ "module": "src/accordion-item/accordion-item.ts"
971
900
  }
972
901
  }
973
902
  ]
974
903
  },
975
904
  {
976
905
  "kind": "javascript-module",
977
- "path": "src/accordion/index.ts",
906
+ "path": "src/accordion-item/index.ts",
978
907
  "declarations": [],
979
908
  "exports": [
980
909
  {
@@ -982,7 +911,7 @@
982
911
  "name": "*",
983
912
  "declaration": {
984
913
  "name": "*",
985
- "package": "./accordion"
914
+ "package": "./accordion-item"
986
915
  }
987
916
  },
988
917
  {
@@ -990,7 +919,7 @@
990
919
  "name": "*",
991
920
  "declaration": {
992
921
  "name": "*",
993
- "package": "./accordion.styles"
922
+ "package": "./accordion-item.styles"
994
923
  }
995
924
  },
996
925
  {
@@ -998,18 +927,58 @@
998
927
  "name": "*",
999
928
  "declaration": {
1000
929
  "name": "*",
1001
- "package": "./accordion.template"
930
+ "package": "./accordion-item.template"
1002
931
  }
1003
932
  }
1004
933
  ]
1005
934
  },
1006
935
  {
1007
936
  "kind": "javascript-module",
1008
- "path": "src/accordion-item/accordion-item.styles.ts",
937
+ "path": "src/accordion/accordion.stories.ts",
938
+ "declarations": [
939
+ {
940
+ "kind": "variable",
941
+ "name": "meta",
942
+ "type": {
943
+ "text": "Meta"
944
+ },
945
+ "default": "{\n title: 'Accordion',\n component: 'zero-accordion',\n}"
946
+ },
947
+ {
948
+ "kind": "variable",
949
+ "name": "Primary",
950
+ "type": {
951
+ "text": "StoryObj"
952
+ },
953
+ "default": "{\n render: () => html`\n <zero-accordion>\n <zero-accordion-item slot=\"item\" id=\"accordion-1\">\n Accordion one content\n <div slot=\"heading\">Accordion one</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-2\">\n Accordion two content\n <div slot=\"heading\">Accordion two</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-3\">\n Accordion three content\n <div slot=\"heading\">Accordion three</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-4\">\n Accordion four content\n <div slot=\"heading\">Accordion four</div>\n </zero-accordion-item>\n </zero-accordion>\n `,\n}"
954
+ }
955
+ ],
956
+ "exports": [
957
+ {
958
+ "kind": "js",
959
+ "name": "default",
960
+ "declaration": {
961
+ "name": "meta",
962
+ "module": "src/accordion/accordion.stories.ts"
963
+ }
964
+ },
965
+ {
966
+ "kind": "js",
967
+ "name": "Primary",
968
+ "declaration": {
969
+ "name": "Primary",
970
+ "module": "src/accordion/accordion.stories.ts"
971
+ }
972
+ }
973
+ ]
974
+ },
975
+ {
976
+ "kind": "javascript-module",
977
+ "path": "src/accordion/accordion.styles.ts",
1009
978
  "declarations": [
1010
979
  {
1011
980
  "kind": "function",
1012
- "name": "zeroAccordionItemStyles",
981
+ "name": "zeroAccordionStyles",
1013
982
  "return": {
1014
983
  "type": {
1015
984
  "text": "ElementStyles"
@@ -1034,24 +1003,24 @@
1034
1003
  "exports": [
1035
1004
  {
1036
1005
  "kind": "js",
1037
- "name": "zeroAccordionItemStyles",
1006
+ "name": "zeroAccordionStyles",
1038
1007
  "declaration": {
1039
- "name": "zeroAccordionItemStyles",
1040
- "module": "src/accordion-item/accordion-item.styles.ts"
1008
+ "name": "zeroAccordionStyles",
1009
+ "module": "src/accordion/accordion.styles.ts"
1041
1010
  }
1042
1011
  }
1043
1012
  ]
1044
1013
  },
1045
1014
  {
1046
1015
  "kind": "javascript-module",
1047
- "path": "src/accordion-item/accordion-item.template.ts",
1016
+ "path": "src/accordion/accordion.template.ts",
1048
1017
  "declarations": [
1049
1018
  {
1050
1019
  "kind": "function",
1051
- "name": "zeroAccordionItemTemplate",
1020
+ "name": "zeroAccordionTemplate",
1052
1021
  "return": {
1053
1022
  "type": {
1054
- "text": "ViewTemplate<AccordionItem>"
1023
+ "text": "ViewTemplate<Accordion>"
1055
1024
  }
1056
1025
  },
1057
1026
  "parameters": [
@@ -1073,24 +1042,24 @@
1073
1042
  "exports": [
1074
1043
  {
1075
1044
  "kind": "js",
1076
- "name": "zeroAccordionItemTemplate",
1045
+ "name": "zeroAccordionTemplate",
1077
1046
  "declaration": {
1078
- "name": "zeroAccordionItemTemplate",
1079
- "module": "src/accordion-item/accordion-item.template.ts"
1047
+ "name": "zeroAccordionTemplate",
1048
+ "module": "src/accordion/accordion.template.ts"
1080
1049
  }
1081
1050
  }
1082
1051
  ]
1083
1052
  },
1084
1053
  {
1085
1054
  "kind": "javascript-module",
1086
- "path": "src/accordion-item/accordion-item.ts",
1055
+ "path": "src/accordion/accordion.ts",
1087
1056
  "declarations": [
1088
1057
  {
1089
1058
  "kind": "class",
1090
1059
  "description": "",
1091
- "name": "AccordionItem",
1060
+ "name": "Accordion",
1092
1061
  "superclass": {
1093
- "name": "FoundationAccordionItem",
1062
+ "name": "FoundationAccordion",
1094
1063
  "package": "@genesislcap/foundation-ui"
1095
1064
  },
1096
1065
  "tagName": "%%prefix%%-card",
@@ -1098,31 +1067,31 @@
1098
1067
  },
1099
1068
  {
1100
1069
  "kind": "variable",
1101
- "name": "zeroAccordionItem"
1070
+ "name": "zeroAccordion"
1102
1071
  }
1103
1072
  ],
1104
1073
  "exports": [
1105
1074
  {
1106
1075
  "kind": "js",
1107
- "name": "AccordionItem",
1076
+ "name": "Accordion",
1108
1077
  "declaration": {
1109
- "name": "AccordionItem",
1110
- "module": "src/accordion-item/accordion-item.ts"
1078
+ "name": "Accordion",
1079
+ "module": "src/accordion/accordion.ts"
1111
1080
  }
1112
1081
  },
1113
1082
  {
1114
1083
  "kind": "js",
1115
- "name": "zeroAccordionItem",
1084
+ "name": "zeroAccordion",
1116
1085
  "declaration": {
1117
- "name": "zeroAccordionItem",
1118
- "module": "src/accordion-item/accordion-item.ts"
1086
+ "name": "zeroAccordion",
1087
+ "module": "src/accordion/accordion.ts"
1119
1088
  }
1120
1089
  }
1121
1090
  ]
1122
1091
  },
1123
1092
  {
1124
1093
  "kind": "javascript-module",
1125
- "path": "src/accordion-item/index.ts",
1094
+ "path": "src/accordion/index.ts",
1126
1095
  "declarations": [],
1127
1096
  "exports": [
1128
1097
  {
@@ -1130,7 +1099,7 @@
1130
1099
  "name": "*",
1131
1100
  "declaration": {
1132
1101
  "name": "*",
1133
- "package": "./accordion-item"
1102
+ "package": "./accordion"
1134
1103
  }
1135
1104
  },
1136
1105
  {
@@ -1138,7 +1107,7 @@
1138
1107
  "name": "*",
1139
1108
  "declaration": {
1140
1109
  "name": "*",
1141
- "package": "./accordion-item.styles"
1110
+ "package": "./accordion.styles"
1142
1111
  }
1143
1112
  },
1144
1113
  {
@@ -1146,7 +1115,7 @@
1146
1115
  "name": "*",
1147
1116
  "declaration": {
1148
1117
  "name": "*",
1149
- "package": "./accordion-item.template"
1118
+ "package": "./accordion.template"
1150
1119
  }
1151
1120
  }
1152
1121
  ]
@@ -1611,6 +1580,37 @@
1611
1580
  }
1612
1581
  ]
1613
1582
  },
1583
+ {
1584
+ "kind": "javascript-module",
1585
+ "path": "src/_config/index.ts",
1586
+ "declarations": [],
1587
+ "exports": [
1588
+ {
1589
+ "kind": "js",
1590
+ "name": "*",
1591
+ "declaration": {
1592
+ "name": "*",
1593
+ "package": "./styles"
1594
+ }
1595
+ },
1596
+ {
1597
+ "kind": "js",
1598
+ "name": "*",
1599
+ "declaration": {
1600
+ "name": "*",
1601
+ "package": "./tokens"
1602
+ }
1603
+ },
1604
+ {
1605
+ "kind": "js",
1606
+ "name": "*",
1607
+ "declaration": {
1608
+ "name": "*",
1609
+ "package": "./values"
1610
+ }
1611
+ }
1612
+ ]
1613
+ },
1614
1614
  {
1615
1615
  "kind": "javascript-module",
1616
1616
  "path": "src/anchored-region/anchored-region.stories.ts",
@@ -7127,7 +7127,7 @@
7127
7127
  "type": {
7128
7128
  "text": "ViewTemplate<FilterBar>"
7129
7129
  },
7130
- "default": "html`\n ${filterBarTemplate}\n`"
7130
+ "default": "html`\n ${filterBarTemplate('zero')}\n`"
7131
7131
  }
7132
7132
  ],
7133
7133
  "exports": [
@@ -7149,68 +7149,13 @@
7149
7149
  "kind": "class",
7150
7150
  "description": "",
7151
7151
  "name": "FilterBar",
7152
+ "superclass": {
7153
+ "name": "FoundationFilterBar",
7154
+ "package": "@genesislcap/foundation-ui"
7155
+ },
7156
+ "tagName": "%%prefix%%-filter-bar",
7157
+ "customElement": true,
7152
7158
  "members": [
7153
- {
7154
- "kind": "field",
7155
- "name": "resource",
7156
- "type": {
7157
- "text": "string"
7158
- }
7159
- },
7160
- {
7161
- "kind": "field",
7162
- "name": "only",
7163
- "type": {
7164
- "text": "string"
7165
- },
7166
- "description": "Only generate filters for the specified fields, provided as a comma separated list.\nDefault behavior (if \"only\" is not set) is to generate filters for all fields based on metadata."
7167
- },
7168
- {
7169
- "kind": "field",
7170
- "name": "labels",
7171
- "type": {
7172
- "text": "string"
7173
- },
7174
- "description": "Labels for the specified fields, to be used alongside \"only\" prop."
7175
- },
7176
- {
7177
- "kind": "field",
7178
- "name": "target",
7179
- "type": {
7180
- "text": "string"
7181
- },
7182
- "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."
7183
- },
7184
- {
7185
- "kind": "field",
7186
- "name": "ready",
7187
- "type": {
7188
- "text": "boolean"
7189
- }
7190
- },
7191
- {
7192
- "kind": "field",
7193
- "name": "fields",
7194
- "type": {
7195
- "text": "MetadataDetail[]"
7196
- }
7197
- },
7198
- {
7199
- "kind": "field",
7200
- "name": "filterGrid",
7201
- "type": {
7202
- "text": "HTMLDivElement"
7203
- },
7204
- "privacy": "public"
7205
- },
7206
- {
7207
- "kind": "field",
7208
- "name": "collapsed",
7209
- "type": {
7210
- "text": "boolean"
7211
- },
7212
- "default": "true"
7213
- },
7214
7159
  {
7215
7160
  "kind": "field",
7216
7161
  "name": "_presentation",
@@ -7322,46 +7267,7 @@
7322
7267
  "module": "src/foundation-element/foundation-element.ts"
7323
7268
  }
7324
7269
  }
7325
- ],
7326
- "attributes": [
7327
- {
7328
- "name": "resource",
7329
- "type": {
7330
- "text": "string"
7331
- },
7332
- "fieldName": "resource"
7333
- },
7334
- {
7335
- "name": "only",
7336
- "type": {
7337
- "text": "string"
7338
- },
7339
- "description": "Only generate filters for the specified fields, provided as a comma separated list.\nDefault behavior (if \"only\" is not set) is to generate filters for all fields based on metadata.",
7340
- "fieldName": "only"
7341
- },
7342
- {
7343
- "name": "labels",
7344
- "type": {
7345
- "text": "string"
7346
- },
7347
- "description": "Labels for the specified fields, to be used alongside \"only\" prop.",
7348
- "fieldName": "labels"
7349
- },
7350
- {
7351
- "name": "target",
7352
- "type": {
7353
- "text": "string"
7354
- },
7355
- "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.",
7356
- "fieldName": "target"
7357
- }
7358
- ],
7359
- "superclass": {
7360
- "name": "FoundationFilterBar",
7361
- "package": "@genesislcap/foundation-ui"
7362
- },
7363
- "tagName": "%%prefix%%-filter-bar",
7364
- "customElement": true
7270
+ ]
7365
7271
  },
7366
7272
  {
7367
7273
  "kind": "variable",
@@ -1,29 +1,8 @@
1
- import { MetadataDetail } from '@genesislcap/foundation-comms';
2
1
  import { FilterBar as FoundationFilterBar } from '@genesislcap/foundation-ui';
3
2
  /**
4
3
  * @tagname %%prefix%%-filter-bar
5
4
  */
6
5
  export declare class FilterBar extends FoundationFilterBar {
7
- resource: string;
8
- /**
9
- * Only generate filters for the specified fields, provided as a comma separated list.
10
- * Default behavior (if "only" is not set) is to generate filters for all fields based on metadata.
11
- */
12
- only: string;
13
- /**
14
- * Labels for the specified fields, to be used alongside "only" prop.
15
- */
16
- labels: string;
17
- /**
18
- * Will be included in event emmissions.
19
- * Usually set to the id of the target datasource.
20
- * Usefull when we have multiple grids in the same page.
21
- */
22
- target: string;
23
- ready: boolean;
24
- fields: MetadataDetail[];
25
- filterGrid: HTMLDivElement;
26
- collapsed: boolean;
27
6
  }
28
7
  /**
29
8
  * The Zero Filter
@@ -1 +1 @@
1
- {"version":3,"file":"filter-bar.d.ts","sourceRoot":"","sources":["../../../src/filter-bar/filter-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,SAAS,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAK9E;;GAEG;AACH,qBAAa,SAAU,SAAQ,mBAAmB;IAC1C,QAAQ,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACG,IAAI,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACG,MAAM,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACG,MAAM,EAAE,MAAM,CAAC;IAET,KAAK,EAAE,OAAO,CAAe;IAC7B,MAAM,EAAE,cAAc,EAAE,CAAC;IAE9B,UAAU,EAAG,cAAc,CAAC;IAEvB,SAAS,EAAE,OAAO,CAAQ;CACvC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,yTAIxB,CAAC"}
1
+ {"version":3,"file":"filter-bar.d.ts","sourceRoot":"","sources":["../../../src/filter-bar/filter-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAI9E;;GAEG;AACH,qBAAa,SAAU,SAAQ,mBAAmB;CAAG;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,yTAIxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"filter-bar.template.d.ts","sourceRoot":"","sources":["../../../src/filter-bar/filter-bar.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,YAAY,EAAQ,MAAM,yBAAyB,CAAC;AAEhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA0C9C,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,SAAS,CAEzD,CAAC"}
1
+ {"version":3,"file":"filter-bar.template.d.ts","sourceRoot":"","sources":["../../../src/filter-bar/filter-bar.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,SAAS,CAEzD,CAAC"}
@@ -1,39 +1,11 @@
1
- import { __decorate } from "tslib";
2
1
  import { FilterBar as FoundationFilterBar } from '@genesislcap/foundation-ui';
3
- import { attr, observable } from '@microsoft/fast-element';
4
2
  import { zeroFilterBarStyles as styles } from './filter-bar.styles';
5
3
  import { zeroFilterBarTemplate as template } from './filter-bar.template';
6
4
  /**
7
5
  * @tagname %%prefix%%-filter-bar
8
6
  */
9
7
  export class FilterBar extends FoundationFilterBar {
10
- constructor() {
11
- super(...arguments);
12
- this.ready = super.ready;
13
- this.collapsed = true;
14
- }
15
8
  }
16
- __decorate([
17
- attr
18
- ], FilterBar.prototype, "resource", void 0);
19
- __decorate([
20
- attr
21
- ], FilterBar.prototype, "only", void 0);
22
- __decorate([
23
- attr
24
- ], FilterBar.prototype, "labels", void 0);
25
- __decorate([
26
- attr
27
- ], FilterBar.prototype, "target", void 0);
28
- __decorate([
29
- observable
30
- ], FilterBar.prototype, "ready", void 0);
31
- __decorate([
32
- observable
33
- ], FilterBar.prototype, "fields", void 0);
34
- __decorate([
35
- observable
36
- ], FilterBar.prototype, "collapsed", void 0);
37
9
  /**
38
10
  * The Zero Filter
39
11
  *
@@ -1,35 +1,5 @@
1
- import { mapType } from '@genesislcap/foundation-ui';
2
- import { html, ref, repeat, when } from '@microsoft/fast-element';
3
- import { classNames } from '@microsoft/fast-web-utilities';
4
- const collapseIcon = html `
5
- ${when((x) => x.collapsed, html `
6
- <zero-icon name="chevron-down"></zero-icon>
7
- `)}
8
- ${when((x) => !x.collapsed, html `
9
- <zero-icon name="chevron-up"></zero-icon>
10
- `)}
11
- `;
12
- const filterBarTemplate = html `
13
- <div
14
- class=${(x) => classNames(['toggle', true], ['toggle-collapsed', x.collapsed])}
15
- @click="${(x) => x['toggle']()}"
16
- >
17
- ${collapseIcon}
18
- </div>
19
- <div class=${(x) => classNames(['filter-bar', true], ['collapsed', x.collapsed])}>
20
- <div class="filter-grid" ${ref('filterGrid')}>
21
- ${repeat((x) => x.fields, html `
22
- <zero-filter
23
- label="${(x) => x.UI_LABEL}"
24
- target="${(x, c) => { var _a; return (_a = c.parent) === null || _a === void 0 ? void 0 : _a.target; }}"
25
- type="${(x) => mapType(x.TYPE)}"
26
- fieldName="${(x) => x.NAME}"
27
- enumOptions="${(x) => x.VALID_VALUES}"
28
- />
29
- `)}
30
- </div>
31
- </div>
32
- `;
1
+ import { filterBarTemplate } from '@genesislcap/foundation-ui';
2
+ import { html } from '@microsoft/fast-element';
33
3
  export const zeroFilterBarTemplate = html `
34
- ${filterBarTemplate}
4
+ ${filterBarTemplate('zero')}
35
5
  `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-zero",
3
3
  "description": "Genesis Foundation Zero Design System",
4
- "version": "14.94.0",
4
+ "version": "14.94.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -65,7 +65,7 @@
65
65
  "storybook": "storybook dev -p 6006"
66
66
  },
67
67
  "devDependencies": {
68
- "@genesislcap/genx": "14.94.0",
68
+ "@genesislcap/genx": "14.94.1",
69
69
  "@storybook/addon-essentials": "^7.1.0",
70
70
  "@storybook/addon-links": "^7.1.0",
71
71
  "@storybook/addons": "^7.1.0",
@@ -78,10 +78,10 @@
78
78
  "storybook": "^7.1.0"
79
79
  },
80
80
  "dependencies": {
81
- "@genesislcap/foundation-comms": "14.94.0",
82
- "@genesislcap/foundation-logger": "14.94.0",
83
- "@genesislcap/foundation-ui": "14.94.0",
84
- "@genesislcap/foundation-utils": "14.94.0",
81
+ "@genesislcap/foundation-comms": "14.94.1",
82
+ "@genesislcap/foundation-logger": "14.94.1",
83
+ "@genesislcap/foundation-ui": "14.94.1",
84
+ "@genesislcap/foundation-utils": "14.94.1",
85
85
  "@microsoft/fast-colors": "^5.1.4",
86
86
  "@microsoft/fast-components": "^2.21.3",
87
87
  "@microsoft/fast-element": "^1.7.0",
@@ -98,5 +98,5 @@
98
98
  "access": "public"
99
99
  },
100
100
  "customElements": "dist/custom-elements.json",
101
- "gitHead": "cb3b05d51d51d25f3558ab4436258df58268aa0e"
101
+ "gitHead": "a1b6baf9b2003cbb1d73b44d0715ac3492e4f6f5"
102
102
  }