@genesislcap/foundation-zero 14.94.0 → 14.94.1-pa-958.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",
@@ -815,6 +784,37 @@
815
784
  }
816
785
  ]
817
786
  },
787
+ {
788
+ "kind": "javascript-module",
789
+ "path": "src/_config/index.ts",
790
+ "declarations": [],
791
+ "exports": [
792
+ {
793
+ "kind": "js",
794
+ "name": "*",
795
+ "declaration": {
796
+ "name": "*",
797
+ "package": "./styles"
798
+ }
799
+ },
800
+ {
801
+ "kind": "js",
802
+ "name": "*",
803
+ "declaration": {
804
+ "name": "*",
805
+ "package": "./tokens"
806
+ }
807
+ },
808
+ {
809
+ "kind": "js",
810
+ "name": "*",
811
+ "declaration": {
812
+ "name": "*",
813
+ "package": "./values"
814
+ }
815
+ }
816
+ ]
817
+ },
818
818
  {
819
819
  "kind": "javascript-module",
820
820
  "path": "src/accordion/accordion.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-pa-958.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-pa-958.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-pa-958.1",
82
+ "@genesislcap/foundation-logger": "14.94.1-pa-958.1",
83
+ "@genesislcap/foundation-ui": "14.94.1-pa-958.1",
84
+ "@genesislcap/foundation-utils": "14.94.1-pa-958.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": "3dbe67e6d256eb52af379754c2c5097a36891e37"
102
102
  }