@genesislcap/foundation-forms 14.217.2 → 14.217.3

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.
@@ -540,23 +540,8 @@
540
540
  {
541
541
  "kind": "javascript-module",
542
542
  "path": "src/filters/filters.template.ts",
543
- "declarations": [
544
- {
545
- "kind": "variable",
546
- "name": "foundationFiltersTemplate",
547
- "default": "html<Filters>`\n <template>\n <div class=\"container\" part=\"container\">\n <div class=\"container-forms\" part=\"container-forms\">\n <json-forms\n :renderers=${(x) => x.renderers}\n :uischema=${(x) => x.uischema}\n :schema=${(x) => x.jsonSchema}\n :data=${(x) => x.data}\n @data-change=${(x, c) => x.onChange(c.event as CustomEvent)}\n ></json-forms>\n </div>\n <div class=\"actions\" part=\"actions\">\n <fast-button\n @click=\"${(x) => x.clearFiltersData()}\"\n class=\"action-button\"\n appearance=\"neutral\"\n data-test-id=\"clear-filters-button\"\n >\n Clear\n </fast-button>\n <fast-button\n @click=\"${(x) => x.searchFilters()}\"\n data-test-id=\"search-filters-button\"\n class=\"action-button\"\n appearance=\"accent\"\n >\n Search\n </fast-button>\n </div>\n </div>\n </template>\n`"
548
- }
549
- ],
550
- "exports": [
551
- {
552
- "kind": "js",
553
- "name": "foundationFiltersTemplate",
554
- "declaration": {
555
- "name": "foundationFiltersTemplate",
556
- "module": "src/filters/filters.template.ts"
557
- }
558
- }
559
- ]
543
+ "declarations": [],
544
+ "exports": []
560
545
  },
561
546
  {
562
547
  "kind": "javascript-module",
@@ -619,6 +604,16 @@
619
604
  "description": "Alternatively to providing Form.resourceName you can hardcode the JSON schema on the client.",
620
605
  "privacy": "public"
621
606
  },
607
+ {
608
+ "kind": "field",
609
+ "name": "prefix",
610
+ "type": {
611
+ "text": "string"
612
+ },
613
+ "default": "'zero'",
614
+ "description": "Name of the design system prefix that will be used in renderers.",
615
+ "privacy": "public"
616
+ },
622
617
  {
623
618
  "kind": "field",
624
619
  "name": "connect",
@@ -774,6 +769,15 @@
774
769
  },
775
770
  "description": "Name of the backend resource which will provide metadata\nused to generate filters.",
776
771
  "fieldName": "resourceName"
772
+ },
773
+ {
774
+ "name": "design-system-prefix",
775
+ "type": {
776
+ "text": "string"
777
+ },
778
+ "default": "'zero'",
779
+ "description": "Name of the design system prefix that will be used in renderers.",
780
+ "fieldName": "prefix"
777
781
  }
778
782
  ],
779
783
  "superclass": {
@@ -78,6 +78,11 @@ export declare class Filters extends FoundationElement {
78
78
  * be aware that it could get out of sync if metadata changes on the server
79
79
  */
80
80
  jsonSchema: JSONSchema7;
81
+ /**
82
+ * Name of the design system prefix that will be used in renderers.
83
+ * @public
84
+ */
85
+ prefix: string;
81
86
  private connect;
82
87
  /**
83
88
  * Initial data for the filters.
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/filters/filters.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAY1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKnD,gBAAgB;AAChB,eAAO,MAAM,aAAa,iDAAqC,CAAC;AAchE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,OAY5B,CAAC;AACF;;;;;GAKG;AACH,qBAKa,OAAQ,SAAQ,iBAAiB;IAC5C;;;;OAIG;IACG,YAAY,EAAE,MAAM,CAAC;YACb,mBAAmB;IAWjC;;OAEG;IACI,gBAAgB;IAKvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACS,QAAQ,EAAE,QAAQ,CAAC;IAC/B;;;OAGG;IACS,SAAS,EAAE,aAAa,EAAE,CAAoB;IAC1D;;;;;;OAMG;IACS,UAAU,EAAE,WAAW,CAAC;IAE3B,OAAO,CAAC,OAAO,CAAW;IACnC;;;OAGG;IACS,IAAI,EAAE,GAAG,CAAM;IAC3B;;;OAGG;IACS,KAAK,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY;IAIZ;;OAEG;IACH,aAAa;IAyBb;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAO3B;;OAEG;IACH,oBAAoB;CAKrB"}
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/filters/filters.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAY1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKnD,gBAAgB;AAChB,eAAO,MAAM,aAAa,iDAAqC,CAAC;AAchE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,OAY5B,CAAC;AACF;;;;;GAKG;AACH,qBAKa,OAAQ,SAAQ,iBAAiB;IAC5C;;;;OAIG;IACG,YAAY,EAAE,MAAM,CAAC;YACb,mBAAmB;IAWjC;;OAEG;IACI,gBAAgB;IAKvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACS,QAAQ,EAAE,QAAQ,CAAC;IAC/B;;;OAGG;IACS,SAAS,EAAE,aAAa,EAAE,CAAoB;IAC1D;;;;;;OAMG;IACS,UAAU,EAAE,WAAW,CAAC;IACpC;;;OAGG;IAC0C,MAAM,EAAE,MAAM,CAAU;IAE5D,OAAO,CAAC,OAAO,CAAW;IACnC;;;OAGG;IACS,IAAI,EAAE,GAAG,CAAM;IAC3B;;;OAGG;IACS,KAAK,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY;IAIZ;;OAEG;IACH,aAAa;IAyBb;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAO3B;;OAEG;IACH,oBAAoB;CAKrB"}
@@ -1,3 +1,6 @@
1
1
  import type { Filters } from './filters';
2
+ /** @internal */
3
+ export declare const getPrefixedFilters: (prefix: string) => import("@microsoft/fast-element").ViewTemplate<Filters, any>;
4
+ /** @internal */
2
5
  export declare const foundationFiltersTemplate: import("@microsoft/fast-element").ViewTemplate<Filters, any>;
3
6
  //# sourceMappingURL=filters.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filters.template.d.ts","sourceRoot":"","sources":["../../../src/filters/filters.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC,eAAO,MAAM,yBAAyB,8DAgCrC,CAAC"}
1
+ {"version":3,"file":"filters.template.d.ts","sourceRoot":"","sources":["../../../src/filters/filters.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,WAAY,MAAM,iEAiChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,8DAErC,CAAC"}
@@ -61,6 +61,11 @@ let Filters = class Filters extends FoundationElement {
61
61
  * @public
62
62
  */
63
63
  this.renderers = filtersRenderers;
64
+ /**
65
+ * Name of the design system prefix that will be used in renderers.
66
+ * @public
67
+ */
68
+ this.prefix = 'zero';
64
69
  /**
65
70
  * Initial data for the filters.
66
71
  * @public
@@ -141,6 +146,9 @@ __decorate([
141
146
  __decorate([
142
147
  observable
143
148
  ], Filters.prototype, "jsonSchema", void 0);
149
+ __decorate([
150
+ attr({ attribute: 'design-system-prefix' })
151
+ ], Filters.prototype, "prefix", void 0);
144
152
  __decorate([
145
153
  Connect
146
154
  ], Filters.prototype, "connect", void 0);
@@ -5,7 +5,8 @@ import { DispatchRenderer } from '../jsonforms/renderers/dispatch-renderer';
5
5
  JSONForms;
6
6
  ControlWrapper;
7
7
  DispatchRenderer;
8
- export const foundationFiltersTemplate = html `
8
+ /** @internal */
9
+ export const getPrefixedFilters = (prefix) => html `
9
10
  <template>
10
11
  <div class="container" part="container">
11
12
  <div class="container-forms" part="container-forms">
@@ -14,27 +15,32 @@ export const foundationFiltersTemplate = html `
14
15
  :uischema=${(x) => x.uischema}
15
16
  :schema=${(x) => x.jsonSchema}
16
17
  :data=${(x) => x.data}
18
+ :prefix=${(x) => x.prefix}
17
19
  @data-change=${(x, c) => x.onChange(c.event)}
18
20
  ></json-forms>
19
21
  </div>
20
22
  <div class="actions" part="actions">
21
- <fast-button
23
+ <${prefix}-button
22
24
  @click="${(x) => x.clearFiltersData()}"
23
25
  class="action-button"
24
26
  appearance="neutral"
25
27
  data-test-id="clear-filters-button"
26
28
  >
27
29
  Clear
28
- </fast-button>
29
- <fast-button
30
+ </${prefix}-button>
31
+ <${prefix}-button
30
32
  @click="${(x) => x.searchFilters()}"
31
33
  data-test-id="search-filters-button"
32
34
  class="action-button"
33
35
  appearance="accent"
34
36
  >
35
37
  Search
36
- </fast-button>
38
+ </${prefix}-button>
37
39
  </div>
38
40
  </div>
39
41
  </template>
40
42
  `;
43
+ /** @internal */
44
+ export const foundationFiltersTemplate = html `
45
+ ${(x) => getPrefixedFilters(x.prefix)}
46
+ `;
@@ -363,6 +363,36 @@
363
363
  "isProtected": false,
364
364
  "isAbstract": false
365
365
  },
366
+ {
367
+ "kind": "Property",
368
+ "canonicalReference": "@genesislcap/foundation-forms!Filters#prefix:member",
369
+ "docComment": "/**\n * Name of the design system prefix that will be used in renderers.\n *\n * @public\n */\n",
370
+ "excerptTokens": [
371
+ {
372
+ "kind": "Content",
373
+ "text": "prefix: "
374
+ },
375
+ {
376
+ "kind": "Content",
377
+ "text": "string"
378
+ },
379
+ {
380
+ "kind": "Content",
381
+ "text": ";"
382
+ }
383
+ ],
384
+ "isReadonly": false,
385
+ "isOptional": false,
386
+ "releaseTag": "Public",
387
+ "name": "prefix",
388
+ "propertyTypeTokenRange": {
389
+ "startIndex": 1,
390
+ "endIndex": 2
391
+ },
392
+ "isStatic": false,
393
+ "isProtected": false,
394
+ "isAbstract": false
395
+ },
366
396
  {
367
397
  "kind": "Property",
368
398
  "canonicalReference": "@genesislcap/foundation-forms!Filters#renderers:member",
@@ -184,6 +184,11 @@ export declare class Filters extends FoundationElement {
184
184
  * be aware that it could get out of sync if metadata changes on the server
185
185
  */
186
186
  jsonSchema: JSONSchema7;
187
+ /**
188
+ * Name of the design system prefix that will be used in renderers.
189
+ * @public
190
+ */
191
+ prefix: string;
187
192
  private connect;
188
193
  /**
189
194
  * Initial data for the filters.
@@ -19,6 +19,7 @@ export declare class Filters extends FoundationElement
19
19
  | --- | --- | --- | --- |
20
20
  | [data](./foundation-forms.filters.data.md) | | any | Initial data for the filters. |
21
21
  | [jsonSchema](./foundation-forms.filters.jsonschema.md) | | JSONSchema7 | Alternatively to providing [Form.resourceName](./foundation-forms.form.resourcename.md) you can hardcode the JSON schema on the client. |
22
+ | [prefix](./foundation-forms.filters.prefix.md) | | string | Name of the design system prefix that will be used in renderers. |
22
23
  | [renderers](./foundation-forms.filters.renderers.md) | | [RendererEntry](./foundation-forms.rendererentry.md)<!-- -->\[\] | Allows to provide the main set of renderers used by the form. If not provided, the built-in renderers will be used by default. |
23
24
  | [resourceName](./foundation-forms.filters.resourcename.md) | | string | Name of the backend resource which will provide metadata used to generate filters. |
24
25
  | [uischema](./foundation-forms.filters.uischema.md) | | [UiSchema](./foundation-forms.uischema.md) | UI schema used to define configuration of the layout and elements in the filters Check [UiSchema](./foundation-forms.uischema.md) for possible options. |
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-forms](./foundation-forms.md) &gt; [Filters](./foundation-forms.filters.md) &gt; [prefix](./foundation-forms.filters.prefix.md)
4
+
5
+ ## Filters.prefix property
6
+
7
+ Name of the design system prefix that will be used in renderers.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ prefix: string;
13
+ ```
@@ -63,6 +63,7 @@ export class Filters extends FoundationElement {
63
63
  jsonSchema: JSONSchema7;
64
64
  // @internal (undocumented)
65
65
  onChange(event: CustomEvent): void;
66
+ prefix: string;
66
67
  renderers: RendererEntry[];
67
68
  resourceName: string;
68
69
  // @internal (undocumented)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-forms",
3
3
  "description": "Genesis Foundation Forms",
4
- "version": "14.217.2",
4
+ "version": "14.217.3",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -48,22 +48,22 @@
48
48
  }
49
49
  },
50
50
  "devDependencies": {
51
- "@genesislcap/foundation-testing": "14.217.2",
52
- "@genesislcap/genx": "14.217.2",
53
- "@genesislcap/rollup-builder": "14.217.2",
54
- "@genesislcap/ts-builder": "14.217.2",
55
- "@genesislcap/uvu-playwright-builder": "14.217.2",
56
- "@genesislcap/vite-builder": "14.217.2",
57
- "@genesislcap/webpack-builder": "14.217.2",
51
+ "@genesislcap/foundation-testing": "14.217.3",
52
+ "@genesislcap/genx": "14.217.3",
53
+ "@genesislcap/rollup-builder": "14.217.3",
54
+ "@genesislcap/ts-builder": "14.217.3",
55
+ "@genesislcap/uvu-playwright-builder": "14.217.3",
56
+ "@genesislcap/vite-builder": "14.217.3",
57
+ "@genesislcap/webpack-builder": "14.217.3",
58
58
  "@types/json-schema": "^7.0.11",
59
59
  "rimraf": "^5.0.0"
60
60
  },
61
61
  "dependencies": {
62
- "@genesislcap/foundation-comms": "14.217.2",
63
- "@genesislcap/foundation-criteria": "14.217.2",
64
- "@genesislcap/foundation-logger": "14.217.2",
65
- "@genesislcap/foundation-ui": "14.217.2",
66
- "@genesislcap/foundation-utils": "14.217.2",
62
+ "@genesislcap/foundation-comms": "14.217.3",
63
+ "@genesislcap/foundation-criteria": "14.217.3",
64
+ "@genesislcap/foundation-logger": "14.217.3",
65
+ "@genesislcap/foundation-ui": "14.217.3",
66
+ "@genesislcap/foundation-utils": "14.217.3",
67
67
  "@json-schema-tools/dereferencer": "^1.6.1",
68
68
  "@jsonforms/core": "^3.2.1",
69
69
  "@microsoft/fast-components": "^2.30.6",
@@ -85,5 +85,5 @@
85
85
  "access": "public"
86
86
  },
87
87
  "customElements": "dist/custom-elements.json",
88
- "gitHead": "69c1d43ea24b182462a2bc522e270c2fb5502244"
88
+ "gitHead": "816c557cbddb2b6466af9f15b0f06c75de07c8cb"
89
89
  }