@formio/js 5.0.0-dev.5620.dedc19b → 5.0.0-dev.5621.91bd945

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.
@@ -228,10 +228,9 @@ class SelectComponent extends ListComponent_1.default {
228
228
  }
229
229
  selectValueAndLabel(data) {
230
230
  const value = this.getOptionValue((this.isEntireObjectDisplay() && !this.itemValue(data)) ? data : this.itemValue(data));
231
- const readOnlyResourceLabelData = this.options.readOnly && (this.component.dataSrc === 'resource' || this.component.dataSrc === 'url') && this.selectData;
232
231
  return {
233
232
  value,
234
- label: this.itemTemplate((this.isEntireObjectDisplay() && !lodash_1.default.isObject(data.data)) ? { data: data } : readOnlyResourceLabelData || data, value)
233
+ label: this.itemTemplate((this.isEntireObjectDisplay() && !lodash_1.default.isObject(data.data)) ? { data: data } : data, value)
235
234
  };
236
235
  }
237
236
  itemTemplate(data, value) {
@@ -19,6 +19,5 @@ import comp19 from './comp19';
19
19
  import comp20 from './comp20';
20
20
  import comp21 from './comp21';
21
21
  import comp22 from './comp22';
22
- import comp23 from './comp23';
23
- export { comp1, comp2, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, comp20, comp21, comp22, comp23 };
22
+ export { comp1, comp2, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, comp20, comp21, comp22 };
24
23
  export { multiSelect, multiSelectOptions } from "./comp3";
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.comp23 = exports.comp22 = exports.comp21 = exports.comp20 = exports.comp19 = exports.comp18 = exports.comp17 = exports.comp16 = exports.comp15 = exports.comp14 = exports.comp13 = exports.comp12 = exports.comp11 = exports.comp10 = exports.comp9 = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp2 = exports.comp1 = exports.multiSelectOptions = exports.multiSelect = void 0;
6
+ exports.comp22 = exports.comp21 = exports.comp20 = exports.comp19 = exports.comp18 = exports.comp17 = exports.comp16 = exports.comp15 = exports.comp14 = exports.comp13 = exports.comp12 = exports.comp11 = exports.comp10 = exports.comp9 = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp2 = exports.comp1 = exports.multiSelectOptions = exports.multiSelect = void 0;
7
7
  const comp1_1 = __importDefault(require("./comp1"));
8
8
  exports.comp1 = comp1_1.default;
9
9
  const comp2_1 = __importDefault(require("./comp2"));
@@ -49,5 +49,3 @@ const comp21_1 = __importDefault(require("./comp21"));
49
49
  exports.comp21 = comp21_1.default;
50
50
  const comp22_1 = __importDefault(require("./comp22"));
51
51
  exports.comp22 = comp22_1.default;
52
- const comp23_1 = __importDefault(require("./comp23"));
53
- exports.comp23 = comp23_1.default;
@@ -226,10 +226,9 @@ export default class SelectComponent extends ListComponent {
226
226
  }
227
227
  selectValueAndLabel(data) {
228
228
  const value = this.getOptionValue((this.isEntireObjectDisplay() && !this.itemValue(data)) ? data : this.itemValue(data));
229
- const readOnlyResourceLabelData = this.options.readOnly && (this.component.dataSrc === 'resource' || this.component.dataSrc === 'url') && this.selectData;
230
229
  return {
231
230
  value,
232
- label: this.itemTemplate((this.isEntireObjectDisplay() && !_.isObject(data.data)) ? { data: data } : readOnlyResourceLabelData || data, value)
231
+ label: this.itemTemplate((this.isEntireObjectDisplay() && !_.isObject(data.data)) ? { data: data } : data, value)
233
232
  };
234
233
  }
235
234
  itemTemplate(data, value) {
@@ -19,6 +19,5 @@ import comp19 from './comp19';
19
19
  import comp20 from './comp20';
20
20
  import comp21 from './comp21';
21
21
  import comp22 from './comp22';
22
- import comp23 from './comp23';
23
- export { comp1, comp2, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, comp20, comp21, comp22, comp23 };
22
+ export { comp1, comp2, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, comp20, comp21, comp22 };
24
23
  export { multiSelect, multiSelectOptions } from "./comp3";
@@ -20,5 +20,4 @@ import comp19 from './comp19';
20
20
  import comp20 from './comp20';
21
21
  import comp21 from './comp21';
22
22
  import comp22 from './comp22';
23
- import comp23 from './comp23';
24
- export { comp1, comp2, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, comp20, comp21, comp22, comp23 };
23
+ export { comp1, comp2, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, comp20, comp21, comp22 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5620.dedc19b",
3
+ "version": "5.0.0-dev.5621.91bd945",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -1,47 +0,0 @@
1
- declare namespace _default {
2
- let title: string;
3
- let name: string;
4
- let path: string;
5
- let type: string;
6
- let display: string;
7
- let components: ({
8
- label: string;
9
- widget: string;
10
- tableView: boolean;
11
- dataSrc: string;
12
- data: {
13
- resource: string;
14
- };
15
- template: string;
16
- validate: {
17
- select: boolean;
18
- };
19
- key: string;
20
- type: string;
21
- searchField: string;
22
- input: boolean;
23
- noRefreshOnScroll: boolean;
24
- addResource: boolean;
25
- reference: boolean;
26
- valueProperty: string;
27
- disableOnInvalid?: undefined;
28
- } | {
29
- type: string;
30
- label: string;
31
- key: string;
32
- disableOnInvalid: boolean;
33
- input: boolean;
34
- tableView: boolean;
35
- widget?: undefined;
36
- dataSrc?: undefined;
37
- data?: undefined;
38
- template?: undefined;
39
- validate?: undefined;
40
- searchField?: undefined;
41
- noRefreshOnScroll?: undefined;
42
- addResource?: undefined;
43
- reference?: undefined;
44
- valueProperty?: undefined;
45
- })[];
46
- }
47
- export default _default;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- title: 'FIO-8234',
5
- name: 'fio8234',
6
- path: 'fio8234',
7
- type: 'form',
8
- display: 'form',
9
- components: [
10
- {
11
- label: 'Select',
12
- widget: 'choicesjs',
13
- tableView: true,
14
- dataSrc: 'resource',
15
- data: {
16
- resource: '665446284c9b0163c3e0c7e6',
17
- },
18
- template: '<span>{{ item.data.textField1 }}</span>',
19
- validate: {
20
- select: false,
21
- },
22
- key: 'select',
23
- type: 'select',
24
- searchField: 'data.textField2__regex',
25
- input: true,
26
- noRefreshOnScroll: false,
27
- addResource: false,
28
- reference: false,
29
- valueProperty: 'data.textField2',
30
- },
31
- {
32
- type: 'button',
33
- label: 'Submit',
34
- key: 'submit',
35
- disableOnInvalid: true,
36
- input: true,
37
- tableView: false,
38
- },
39
- ],
40
- };
@@ -1,47 +0,0 @@
1
- declare namespace _default {
2
- let title: string;
3
- let name: string;
4
- let path: string;
5
- let type: string;
6
- let display: string;
7
- let components: ({
8
- label: string;
9
- widget: string;
10
- tableView: boolean;
11
- dataSrc: string;
12
- data: {
13
- resource: string;
14
- };
15
- template: string;
16
- validate: {
17
- select: boolean;
18
- };
19
- key: string;
20
- type: string;
21
- searchField: string;
22
- input: boolean;
23
- noRefreshOnScroll: boolean;
24
- addResource: boolean;
25
- reference: boolean;
26
- valueProperty: string;
27
- disableOnInvalid?: undefined;
28
- } | {
29
- type: string;
30
- label: string;
31
- key: string;
32
- disableOnInvalid: boolean;
33
- input: boolean;
34
- tableView: boolean;
35
- widget?: undefined;
36
- dataSrc?: undefined;
37
- data?: undefined;
38
- template?: undefined;
39
- validate?: undefined;
40
- searchField?: undefined;
41
- noRefreshOnScroll?: undefined;
42
- addResource?: undefined;
43
- reference?: undefined;
44
- valueProperty?: undefined;
45
- })[];
46
- }
47
- export default _default;
@@ -1,38 +0,0 @@
1
- export default {
2
- title: 'FIO-8234',
3
- name: 'fio8234',
4
- path: 'fio8234',
5
- type: 'form',
6
- display: 'form',
7
- components: [
8
- {
9
- label: 'Select',
10
- widget: 'choicesjs',
11
- tableView: true,
12
- dataSrc: 'resource',
13
- data: {
14
- resource: '665446284c9b0163c3e0c7e6',
15
- },
16
- template: '<span>{{ item.data.textField1 }}</span>',
17
- validate: {
18
- select: false,
19
- },
20
- key: 'select',
21
- type: 'select',
22
- searchField: 'data.textField2__regex',
23
- input: true,
24
- noRefreshOnScroll: false,
25
- addResource: false,
26
- reference: false,
27
- valueProperty: 'data.textField2',
28
- },
29
- {
30
- type: 'button',
31
- label: 'Submit',
32
- key: 'submit',
33
- disableOnInvalid: true,
34
- input: true,
35
- tableView: false,
36
- },
37
- ],
38
- };