@genesislcap/foundation-forms 14.6.1 → 14.7.0-bny.10

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.
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/filters/filters.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAY1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKzC,gBAAgB;AAChB,eAAO,MAAM,aAAa,gDAAqC,CAAC;AAchE,cAAc;AACd,eAAO,MAAM,gBAAgB,OAY5B,CAAC;AACF;;;;;GAKG;AAEH,qBAKa,OAAQ,SAAQ,iBAAiB;IAC5C;;;;OAIG;IACG,YAAY,EAAE,MAAM,CAAC;YACb,mBAAmB;IAW1B,gBAAgB;IAIvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACS,QAAQ,EAAE,eAAe,CAAC;IACtC;;;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,YAAY;IAIZ;;OAEG;IACH,aAAa;IAqBb;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAO3B,oBAAoB;CAKrB"}
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/filters/filters.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAY1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKzC,gBAAgB;AAChB,eAAO,MAAM,aAAa,gDAAqC,CAAC;AAchE,cAAc;AACd,eAAO,MAAM,gBAAgB,OAY5B,CAAC;AACF;;;;;GAKG;AAEH,qBAKa,OAAQ,SAAQ,iBAAiB;IAC5C;;;;OAIG;IACG,YAAY,EAAE,MAAM,CAAC;YACb,mBAAmB;IAW1B,gBAAgB;IAKvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACS,QAAQ,EAAE,eAAe,CAAC;IACtC;;;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,YAAY;IAIZ;;OAEG;IACH,aAAa;IAuBb;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAO3B,oBAAoB;CAKrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutVertical2ColumnsRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutVertical2ColumnsRenderer.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sCAAsC,0DA8BlD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,GAIzC,CAAC"}
1
+ {"version":3,"file":"LayoutVertical2ColumnsRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/LayoutVertical2ColumnsRenderer.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sCAAsC,0DA6BlD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,GAIzC,CAAC"}
@@ -23,6 +23,7 @@ export type UiSchemaElement = {
23
23
  type: UiSchemaElementType;
24
24
  scope: string;
25
25
  label?: string;
26
+ placeholder?: string;
26
27
  options?: UiSchemaElementOptions;
27
28
  };
28
29
  /** @public */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,cAAc;AACd,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,gBAAgB,GAAG,GAAG,CAAC;AAErE,cAAc;AACd,MAAM,MAAM,sBAAsB,GAAG;IACnC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,WAAW,EAAE,CAAC;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,IAAI,CAAC,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC,CAAC;AAEF,cAAc;AAC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G,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,YAAY,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,KAAK,mBAAmB,CAAC;CACrF,CAAC"}
@@ -77,6 +77,7 @@ let Filters = class Filters extends FoundationElement {
77
77
  }
78
78
  clearFiltersData() {
79
79
  this.data = {};
80
+ this.value = '';
80
81
  }
81
82
  valueChanged() {
82
83
  this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
@@ -93,9 +94,11 @@ let Filters = class Filters extends FoundationElement {
93
94
  if (expressions.dateOptions.length > 0 ||
94
95
  expressions.numberOptions.length > 0 ||
95
96
  expressions.options.length > 0) {
96
- for (const [key, value] of Object.entries(expressions)) {
97
- value.length > 0 ? criteriaBuilder.withExpression(value, { join: Join.And() }) : '';
98
- }
97
+ Object.values(expressions).forEach((value) => {
98
+ if (value.length > 0) {
99
+ criteriaBuilder.withExpression(value, { join: Join.And() });
100
+ }
101
+ });
99
102
  this.value = criteriaBuilder.build();
100
103
  }
101
104
  }
@@ -11,7 +11,7 @@ export const ConnectedSelectControlRendererTemplate = html `
11
11
  >
12
12
  <zero-combobox
13
13
  style="width: 100%"
14
- placeholder=${(x) => x.control.label}
14
+ placeholder=${(x) => x.control.uischema.placeholder || x.control.label}
15
15
  ?disabled=${(x) => !x.control.enabled}
16
16
  @value-change=${(x, c) => {
17
17
  var _a;
@@ -4,8 +4,7 @@ import { LAYOUT2COLUMNS_RANK } from './RenderersRanks';
4
4
  export const LayoutVertical2ColumnsRendererTemplate = html `
5
5
  <template>
6
6
  <div
7
- style="max-width:600px;
8
- display: flex;
7
+ style="display: flex;
9
8
  flex-direction: row;
10
9
  flex-wrap: wrap;
11
10
  justify-content: space-between;"
@@ -15,7 +15,7 @@ export const NumberControlRendererTemplate = html `
15
15
  const value = parseFloat(c.event.target.value);
16
16
  return x.control.handleChange(x.control.path, !isNaN(value) ? value : undefined);
17
17
  }}
18
- placeholder=${(x) => x.control.label}
18
+ placeholder=${(x) => x.control.uischema.placeholder || x.control.label}
19
19
  id=${(x) => x.control.path}
20
20
  data-test-id=${(x) => x.control.path}
21
21
  ?required=${(x) => x.control.required}
@@ -11,7 +11,7 @@ export const StringControlRendererTemplate = html `
11
11
  type=${(x) => { var _a, _b; return (((_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.isPassword) ? 'password' : 'text'); }}
12
12
  :value=${(x) => x.control.data || ''}
13
13
  @change=${(x, c) => x.control.handleChange(x.control.path, c.event.target.value)}
14
- placeholder=${(x) => x.control.label}
14
+ placeholder=${(x) => x.control.uischema.placeholder || x.control.label}
15
15
  id=${(x) => x.control.path}
16
16
  data-test-id=${(x) => x.control.path}
17
17
  ?required=${(x) => x.control.required}
@@ -999,7 +999,7 @@
999
999
  },
1000
1000
  {
1001
1001
  "kind": "Content",
1002
- "text": ";\n scope: string;\n label?: string;\n options?: "
1002
+ "text": ";\n scope: string;\n label?: string;\n placeholder?: string;\n options?: "
1003
1003
  },
1004
1004
  {
1005
1005
  "kind": "Reference",
@@ -272,6 +272,7 @@ export declare type UiSchemaElement = {
272
272
  type: UiSchemaElementType;
273
273
  scope: string;
274
274
  label?: string;
275
+ placeholder?: string;
275
276
  options?: UiSchemaElementOptions;
276
277
  };
277
278
 
@@ -12,6 +12,7 @@ export type UiSchemaElement = {
12
12
  type: UiSchemaElementType;
13
13
  scope: string;
14
14
  label?: string;
15
+ placeholder?: string;
15
16
  options?: UiSchemaElementOptions;
16
17
  };
17
18
  ```
@@ -121,6 +121,7 @@ export type UiSchemaElement = {
121
121
  type: UiSchemaElementType;
122
122
  scope: string;
123
123
  label?: string;
124
+ placeholder?: string;
124
125
  options?: UiSchemaElementOptions;
125
126
  };
126
127
 
@@ -144,7 +145,7 @@ export type UiSchemaElementType = 'Control' | 'VerticalLayout' | any;
144
145
 
145
146
  // Warnings were encountered during analysis:
146
147
  //
147
- // src/types.ts:46:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
148
+ // src/types.ts:47:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
148
149
 
149
150
  // (No @packageDocumentation comment for this package)
150
151
 
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.6.1",
4
+ "version": "14.7.0-bny.10",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -48,7 +48,7 @@
48
48
  "test:unit:watch": "watchlist src test -- npm run test:unit"
49
49
  },
50
50
  "devDependencies": {
51
- "@genesislcap/foundation-testing": "^14.6.1",
51
+ "@genesislcap/foundation-testing": "14.7.0-bny.10",
52
52
  "@microsoft/api-documenter": "^7.19.13",
53
53
  "@microsoft/api-extractor": "^7.31.1",
54
54
  "@module-federation/dashboard-plugin": "2.3.0",
@@ -100,9 +100,9 @@
100
100
  "webpack-merge": "^5.7.3"
101
101
  },
102
102
  "dependencies": {
103
- "@genesislcap/foundation-comms": "^14.6.1",
104
- "@genesislcap/foundation-criteria": "^14.6.1",
105
- "@genesislcap/foundation-utils": "^14.6.1",
103
+ "@genesislcap/foundation-comms": "14.7.0-bny.10",
104
+ "@genesislcap/foundation-criteria": "14.7.0-bny.10",
105
+ "@genesislcap/foundation-utils": "14.7.0-bny.10",
106
106
  "@jsonforms/core": "^3.0.0",
107
107
  "@microsoft/fast-components": "^2.21.3",
108
108
  "@microsoft/fast-element": "^1.7.0",
@@ -122,5 +122,5 @@
122
122
  "publishConfig": {
123
123
  "access": "public"
124
124
  },
125
- "gitHead": "af330ac20a3fc54eb055074a454ad01d105dd8ae"
125
+ "gitHead": "64954c7bd59a65dc6617a6299f8d16edd3aa89cd"
126
126
  }