@formio/js 5.0.0-rc.65 → 5.0.0-rc.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +106 -10
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.full.js +11 -11
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  10. package/dist/formio.js +2 -2
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.js +3 -3
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  16. package/lib/cjs/Webform.js +6 -0
  17. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +8 -0
  18. package/lib/cjs/components/address/Address.js +4 -0
  19. package/lib/cjs/components/address/editForm/Address.edit.provider.js +1 -1
  20. package/lib/cjs/components/datagrid/fixtures/comp9.d.ts +41 -0
  21. package/lib/cjs/components/datagrid/fixtures/comp9.js +44 -0
  22. package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
  23. package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
  24. package/lib/cjs/components/day/fixtures/comp8.d.ts +41 -0
  25. package/lib/cjs/components/day/fixtures/comp8.js +40 -0
  26. package/lib/cjs/components/day/fixtures/index.d.ts +2 -1
  27. package/lib/cjs/components/day/fixtures/index.js +3 -1
  28. package/lib/cjs/components/editgrid/EditGrid.js +2 -2
  29. package/lib/cjs/translations/en.d.ts +3 -0
  30. package/lib/cjs/translations/en.js +4 -1
  31. package/lib/mjs/Webform.js +6 -0
  32. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +8 -0
  33. package/lib/mjs/components/address/Address.js +4 -0
  34. package/lib/mjs/components/address/editForm/Address.edit.provider.js +1 -1
  35. package/lib/mjs/components/datagrid/fixtures/comp9.d.ts +41 -0
  36. package/lib/mjs/components/datagrid/fixtures/comp9.js +42 -0
  37. package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
  38. package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
  39. package/lib/mjs/components/day/fixtures/comp8.d.ts +41 -0
  40. package/lib/mjs/components/day/fixtures/comp8.js +38 -0
  41. package/lib/mjs/components/day/fixtures/index.d.ts +2 -1
  42. package/lib/mjs/components/day/fixtures/index.js +2 -1
  43. package/lib/mjs/components/editgrid/EditGrid.js +2 -2
  44. package/lib/mjs/translations/en.d.ts +3 -0
  45. package/lib/mjs/translations/en.js +4 -1
  46. package/package.json +2 -2
@@ -20,7 +20,7 @@
20
20
 
21
21
  /*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
22
22
 
23
- /*! formiojs v5.0.0-rc.65 | https://unpkg.com/formiojs@5.0.0-rc.65/LICENSE.txt */
23
+ /*! formiojs v5.0.0-rc.67 | https://unpkg.com/formiojs@5.0.0-rc.67/LICENSE.txt */
24
24
 
25
25
  /**
26
26
  * @license
@@ -13,6 +13,11 @@ const Components_1 = __importDefault(require("./components/Components"));
13
13
  const NestedDataComponent_1 = __importDefault(require("./components/_classes/nesteddata/NestedDataComponent"));
14
14
  const utils_1 = require("./utils/utils");
15
15
  const formUtils_1 = require("./utils/formUtils");
16
+ // We need this here because dragula pulls in CustomEvent class that requires global to exist.
17
+ if (typeof window !== 'undefined' && typeof window.global === 'undefined') {
18
+ window.global = window;
19
+ }
20
+ const dragula_1 = __importDefault(require("dragula"));
16
21
  // Initialize the available forms.
17
22
  Formio_1.Formio.forms = {};
18
23
  // Allow people to register components.
@@ -309,6 +314,7 @@ class Webform extends NestedDataComponent_1.default {
309
314
  // Ensure the root is set to this component.
310
315
  this.root = this;
311
316
  this.localRoot = this;
317
+ this.root.dragulaLib = dragula_1.default;
312
318
  }
313
319
  /* eslint-enable max-statements */
314
320
  get language() {
@@ -190,5 +190,13 @@ exports.default = [
190
190
  key: 'tableView',
191
191
  input: true
192
192
  },
193
+ {
194
+ weight: 1600,
195
+ type: 'checkbox',
196
+ label: 'Modal Edit',
197
+ tooltip: 'Opens up a modal to edit the value of this component.',
198
+ key: 'modalEdit',
199
+ input: true
200
+ }
193
201
  ];
194
202
  /* eslint-enable max-len */
@@ -113,6 +113,10 @@ class AddressComponent extends Container_1.default {
113
113
  if (!this.builderMode) {
114
114
  if (this.component.provider) {
115
115
  const { provider, providerOptions, } = this.component;
116
+ if (lodash_1.default.get(providerOptions, 'params.subscriptionKey')) {
117
+ lodash_1.default.set(providerOptions, "params['subscription-key']", lodash_1.default.get(providerOptions, 'params.subscriptionKey'));
118
+ lodash_1.default.unset(providerOptions, 'params.subscriptionKey');
119
+ }
116
120
  this.provider = this.initializeProvider(provider, providerOptions);
117
121
  }
118
122
  else if (this.component.map) {
@@ -31,7 +31,7 @@ exports.default = [
31
31
  {
32
32
  type: 'textfield',
33
33
  input: true,
34
- key: "providerOptions.params['subscription-key']",
34
+ key: "providerOptions.params.subscriptionKey",
35
35
  label: 'Subscription Key',
36
36
  placeholder: 'Enter Subscription Key',
37
37
  weight: 10,
@@ -0,0 +1,41 @@
1
+ declare namespace _default {
2
+ let components: {
3
+ label: string;
4
+ reorder: boolean;
5
+ addAnotherPosition: string;
6
+ layoutFixed: boolean;
7
+ enableRowGroups: boolean;
8
+ initEmpty: boolean;
9
+ tableView: boolean;
10
+ defaultValue: {}[];
11
+ key: string;
12
+ type: string;
13
+ input: boolean;
14
+ components: ({
15
+ label: string;
16
+ applyMaskOn: string;
17
+ tableView: boolean;
18
+ key: string;
19
+ type: string;
20
+ input: boolean;
21
+ mask?: undefined;
22
+ delimiter?: undefined;
23
+ requireDecimal?: undefined;
24
+ inputFormat?: undefined;
25
+ truncateMultipleSpaces?: undefined;
26
+ } | {
27
+ label: string;
28
+ applyMaskOn: string;
29
+ mask: boolean;
30
+ tableView: boolean;
31
+ delimiter: boolean;
32
+ requireDecimal: boolean;
33
+ inputFormat: string;
34
+ truncateMultipleSpaces: boolean;
35
+ key: string;
36
+ type: string;
37
+ input: boolean;
38
+ })[];
39
+ }[];
40
+ }
41
+ export default _default;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "components": [
5
+ {
6
+ "label": "Data Grid",
7
+ "reorder": true,
8
+ "addAnotherPosition": "bottom",
9
+ "layoutFixed": false,
10
+ "enableRowGroups": false,
11
+ "initEmpty": false,
12
+ "tableView": false,
13
+ "defaultValue": [
14
+ {}
15
+ ],
16
+ "key": "dataGrid",
17
+ "type": "datagrid",
18
+ "input": true,
19
+ "components": [
20
+ {
21
+ "label": "Text Field",
22
+ "applyMaskOn": "change",
23
+ "tableView": true,
24
+ "key": "textField",
25
+ "type": "textfield",
26
+ "input": true
27
+ },
28
+ {
29
+ "label": "Number",
30
+ "applyMaskOn": "change",
31
+ "mask": false,
32
+ "tableView": false,
33
+ "delimiter": false,
34
+ "requireDecimal": false,
35
+ "inputFormat": "plain",
36
+ "truncateMultipleSpaces": false,
37
+ "key": "number",
38
+ "type": "number",
39
+ "input": true
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ };
@@ -6,6 +6,7 @@ import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
8
  import comp8 from './comp8';
9
+ import comp9 from './comp9';
9
10
  import withCollapsibleRowGroups from './comp-with-collapsible-groups';
10
11
  import withConditionalFieldsAndValidations from './comp-with-conditional-components-and-validations';
11
12
  import withDefValue from './comp-with-def-value';
@@ -15,4 +16,4 @@ import modalWithRequiredFields from './comp-modal-with-required-fields';
15
16
  import withAllowCalculateOverride from './comp-with-allow-calculate-override';
16
17
  import twoWithAllowCalculatedOverride from './two-comp-with-allow-calculate-override';
17
18
  import withCheckboxes from './comp-with-checkboxes';
18
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes };
19
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes };
@@ -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.withCheckboxes = exports.twoWithAllowCalculatedOverride = exports.withAllowCalculateOverride = exports.modalWithRequiredFields = exports.withRowGroupsAndDefValue = exports.withLogic = exports.withDefValue = exports.withConditionalFieldsAndValidations = exports.withCollapsibleRowGroups = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
6
+ exports.withCheckboxes = exports.twoWithAllowCalculatedOverride = exports.withAllowCalculateOverride = exports.modalWithRequiredFields = exports.withRowGroupsAndDefValue = exports.withLogic = exports.withDefValue = exports.withConditionalFieldsAndValidations = exports.withCollapsibleRowGroups = exports.comp9 = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = 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"));
@@ -20,6 +20,8 @@ const comp7_1 = __importDefault(require("./comp7"));
20
20
  exports.comp7 = comp7_1.default;
21
21
  const comp8_1 = __importDefault(require("./comp8"));
22
22
  exports.comp8 = comp8_1.default;
23
+ const comp9_1 = __importDefault(require("./comp9"));
24
+ exports.comp9 = comp9_1.default;
23
25
  const comp_with_def_value_1 = __importDefault(require("./comp-with-def-value"));
24
26
  exports.withDefValue = comp_with_def_value_1.default;
25
27
  const comp_row_groups_with_def_value_1 = __importDefault(require("./comp-row-groups-with-def-value"));
@@ -0,0 +1,41 @@
1
+ declare namespace _default {
2
+ let components: ({
3
+ label: string;
4
+ hideInputLabels: boolean;
5
+ inputsLabelPosition: string;
6
+ useLocaleSettings: boolean;
7
+ alwaysEnabled: boolean;
8
+ tableView: boolean;
9
+ fields: {
10
+ day: {
11
+ hide: boolean;
12
+ required: boolean;
13
+ };
14
+ month: {
15
+ hide: boolean;
16
+ required: boolean;
17
+ };
18
+ year: {
19
+ hide: boolean;
20
+ required: boolean;
21
+ };
22
+ };
23
+ key: string;
24
+ type: string;
25
+ input: boolean;
26
+ showValidations?: undefined;
27
+ } | {
28
+ label: string;
29
+ showValidations: boolean;
30
+ alwaysEnabled: boolean;
31
+ tableView: boolean;
32
+ key: string;
33
+ type: string;
34
+ input: boolean;
35
+ hideInputLabels?: undefined;
36
+ inputsLabelPosition?: undefined;
37
+ useLocaleSettings?: undefined;
38
+ fields?: undefined;
39
+ })[];
40
+ }
41
+ export default _default;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "components": [
5
+ {
6
+ "label": "Day - Table",
7
+ "hideInputLabels": false,
8
+ "inputsLabelPosition": "top",
9
+ "useLocaleSettings": false,
10
+ "alwaysEnabled": false,
11
+ "tableView": false,
12
+ "fields": {
13
+ "day": {
14
+ "hide": false,
15
+ "required": true
16
+ },
17
+ "month": {
18
+ "hide": false,
19
+ "required": true
20
+ },
21
+ "year": {
22
+ "hide": false,
23
+ "required": true
24
+ }
25
+ },
26
+ "key": "dayTable",
27
+ "type": "day",
28
+ "input": true
29
+ },
30
+ {
31
+ "label": "Submit",
32
+ "showValidations": false,
33
+ "alwaysEnabled": false,
34
+ "tableView": false,
35
+ "key": "submit",
36
+ "type": "button",
37
+ "input": true
38
+ }
39
+ ]
40
+ };
@@ -5,4 +5,5 @@ import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
8
+ import comp8 from './comp8';
9
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
@@ -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.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
6
+ exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = 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"));
@@ -18,3 +18,5 @@ const comp6_1 = __importDefault(require("./comp6"));
18
18
  exports.comp6 = comp6_1.default;
19
19
  const comp7_1 = __importDefault(require("./comp7"));
20
20
  exports.comp7 = comp7_1.default;
21
+ const comp8_1 = __importDefault(require("./comp8"));
22
+ exports.comp8 = comp8_1.default;
@@ -88,7 +88,7 @@ class EditGridComponent extends NestedArrayComponent_1.default {
88
88
  {% if (!instance.options.readOnly && !instance.disabled) { %}
89
89
  <div class="col-sm-2">
90
90
  <div class="btn-group pull-right">
91
- <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('pen-fill') }}"></i></button>
91
+ <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('edit') }}"></i></button>
92
92
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
93
93
  <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass('trash') }}"></i></button>
94
94
  {% } %}
@@ -109,7 +109,7 @@ class EditGridComponent extends NestedArrayComponent_1.default {
109
109
  {% if (!instance.options.readOnly && !instance.disabled) { %}
110
110
  <td class="editgrid-table-column">
111
111
  <div class="btn-group">
112
- <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('pen-fill') }}"></i></button>
112
+ <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('edit') }}"></i></button>
113
113
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
114
114
  <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t('Remove row') }}"><i class="{{ iconClass('trash') }}"></i></button>
115
115
  {% } %}
@@ -74,5 +74,8 @@ declare namespace _default {
74
74
  let apiKey: string;
75
75
  let typeRemaining: string;
76
76
  let typeCount: string;
77
+ let requiredDayField: string;
78
+ let requiredMonthField: string;
79
+ let requiredYearField: string;
77
80
  }
78
81
  export default _default;
@@ -75,5 +75,8 @@ exports.default = {
75
75
  reCaptchaTokenNotSpecifiedError: 'ReCAPTCHA: Token is not specified in submission',
76
76
  apiKey: 'API Key is not unique: {{key}}',
77
77
  typeRemaining: '{{ remaining }} {{ type }} remaining.',
78
- typeCount: '{{ count }} {{ type }}'
78
+ typeCount: '{{ count }} {{ type }}',
79
+ requiredDayField: '{{ field }} is required',
80
+ requiredMonthField: '{{ field }} is required',
81
+ requiredYearField: '{{ field }} is required'
79
82
  };
@@ -8,6 +8,11 @@ import Components from "./components/Components";
8
8
  import NestedDataComponent from "./components/_classes/nesteddata/NestedDataComponent";
9
9
  import { fastCloneDeep, currentTimezone, unescapeHTML, getStringFromComponentPath, convertStringToHTMLElement, getArrayFromComponentPath, } from "./utils/utils";
10
10
  import { eachComponent } from "./utils/formUtils";
11
+ // We need this here because dragula pulls in CustomEvent class that requires global to exist.
12
+ if (typeof window !== 'undefined' && typeof window.global === 'undefined') {
13
+ window.global = window;
14
+ }
15
+ import dragula from "dragula";
11
16
  // Initialize the available forms.
12
17
  Formio.forms = {};
13
18
  // Allow people to register components.
@@ -281,6 +286,7 @@ export default class Webform extends NestedDataComponent {
281
286
  // Ensure the root is set to this component.
282
287
  this.root = this;
283
288
  this.localRoot = this;
289
+ this.root.dragulaLib = dragula;
284
290
  }
285
291
  /* eslint-enable max-statements */
286
292
  get language() {
@@ -187,5 +187,13 @@ export default [
187
187
  key: 'tableView',
188
188
  input: true
189
189
  },
190
+ {
191
+ weight: 1600,
192
+ type: 'checkbox',
193
+ label: 'Modal Edit',
194
+ tooltip: 'Opens up a modal to edit the value of this component.',
195
+ key: 'modalEdit',
196
+ input: true
197
+ }
190
198
  ];
191
199
  /* eslint-enable max-len */
@@ -107,6 +107,10 @@ export default class AddressComponent extends ContainerComponent {
107
107
  if (!this.builderMode) {
108
108
  if (this.component.provider) {
109
109
  const { provider, providerOptions, } = this.component;
110
+ if (_.get(providerOptions, 'params.subscriptionKey')) {
111
+ _.set(providerOptions, "params['subscription-key']", _.get(providerOptions, 'params.subscriptionKey'));
112
+ _.unset(providerOptions, 'params.subscriptionKey');
113
+ }
110
114
  this.provider = this.initializeProvider(provider, providerOptions);
111
115
  }
112
116
  else if (this.component.map) {
@@ -26,7 +26,7 @@ export default [
26
26
  {
27
27
  type: 'textfield',
28
28
  input: true,
29
- key: "providerOptions.params['subscription-key']",
29
+ key: "providerOptions.params.subscriptionKey",
30
30
  label: 'Subscription Key',
31
31
  placeholder: 'Enter Subscription Key',
32
32
  weight: 10,
@@ -0,0 +1,41 @@
1
+ declare namespace _default {
2
+ let components: {
3
+ label: string;
4
+ reorder: boolean;
5
+ addAnotherPosition: string;
6
+ layoutFixed: boolean;
7
+ enableRowGroups: boolean;
8
+ initEmpty: boolean;
9
+ tableView: boolean;
10
+ defaultValue: {}[];
11
+ key: string;
12
+ type: string;
13
+ input: boolean;
14
+ components: ({
15
+ label: string;
16
+ applyMaskOn: string;
17
+ tableView: boolean;
18
+ key: string;
19
+ type: string;
20
+ input: boolean;
21
+ mask?: undefined;
22
+ delimiter?: undefined;
23
+ requireDecimal?: undefined;
24
+ inputFormat?: undefined;
25
+ truncateMultipleSpaces?: undefined;
26
+ } | {
27
+ label: string;
28
+ applyMaskOn: string;
29
+ mask: boolean;
30
+ tableView: boolean;
31
+ delimiter: boolean;
32
+ requireDecimal: boolean;
33
+ inputFormat: string;
34
+ truncateMultipleSpaces: boolean;
35
+ key: string;
36
+ type: string;
37
+ input: boolean;
38
+ })[];
39
+ }[];
40
+ }
41
+ export default _default;
@@ -0,0 +1,42 @@
1
+ export default {
2
+ "components": [
3
+ {
4
+ "label": "Data Grid",
5
+ "reorder": true,
6
+ "addAnotherPosition": "bottom",
7
+ "layoutFixed": false,
8
+ "enableRowGroups": false,
9
+ "initEmpty": false,
10
+ "tableView": false,
11
+ "defaultValue": [
12
+ {}
13
+ ],
14
+ "key": "dataGrid",
15
+ "type": "datagrid",
16
+ "input": true,
17
+ "components": [
18
+ {
19
+ "label": "Text Field",
20
+ "applyMaskOn": "change",
21
+ "tableView": true,
22
+ "key": "textField",
23
+ "type": "textfield",
24
+ "input": true
25
+ },
26
+ {
27
+ "label": "Number",
28
+ "applyMaskOn": "change",
29
+ "mask": false,
30
+ "tableView": false,
31
+ "delimiter": false,
32
+ "requireDecimal": false,
33
+ "inputFormat": "plain",
34
+ "truncateMultipleSpaces": false,
35
+ "key": "number",
36
+ "type": "number",
37
+ "input": true
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ };
@@ -6,6 +6,7 @@ import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
8
  import comp8 from './comp8';
9
+ import comp9 from './comp9';
9
10
  import withCollapsibleRowGroups from './comp-with-collapsible-groups';
10
11
  import withConditionalFieldsAndValidations from './comp-with-conditional-components-and-validations';
11
12
  import withDefValue from './comp-with-def-value';
@@ -15,4 +16,4 @@ import modalWithRequiredFields from './comp-modal-with-required-fields';
15
16
  import withAllowCalculateOverride from './comp-with-allow-calculate-override';
16
17
  import twoWithAllowCalculatedOverride from './two-comp-with-allow-calculate-override';
17
18
  import withCheckboxes from './comp-with-checkboxes';
18
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes };
19
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes };
@@ -6,6 +6,7 @@ import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
8
  import comp8 from './comp8';
9
+ import comp9 from './comp9';
9
10
  import withDefValue from './comp-with-def-value';
10
11
  import withRowGroupsAndDefValue from './comp-row-groups-with-def-value';
11
12
  import modalWithRequiredFields from './comp-modal-with-required-fields';
@@ -15,4 +16,4 @@ import withCollapsibleRowGroups from './comp-with-collapsible-groups';
15
16
  import withAllowCalculateOverride from './comp-with-allow-calculate-override';
16
17
  import twoWithAllowCalculatedOverride from './two-comp-with-allow-calculate-override';
17
18
  import withCheckboxes from './comp-with-checkboxes';
18
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes };
19
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes };
@@ -0,0 +1,41 @@
1
+ declare namespace _default {
2
+ let components: ({
3
+ label: string;
4
+ hideInputLabels: boolean;
5
+ inputsLabelPosition: string;
6
+ useLocaleSettings: boolean;
7
+ alwaysEnabled: boolean;
8
+ tableView: boolean;
9
+ fields: {
10
+ day: {
11
+ hide: boolean;
12
+ required: boolean;
13
+ };
14
+ month: {
15
+ hide: boolean;
16
+ required: boolean;
17
+ };
18
+ year: {
19
+ hide: boolean;
20
+ required: boolean;
21
+ };
22
+ };
23
+ key: string;
24
+ type: string;
25
+ input: boolean;
26
+ showValidations?: undefined;
27
+ } | {
28
+ label: string;
29
+ showValidations: boolean;
30
+ alwaysEnabled: boolean;
31
+ tableView: boolean;
32
+ key: string;
33
+ type: string;
34
+ input: boolean;
35
+ hideInputLabels?: undefined;
36
+ inputsLabelPosition?: undefined;
37
+ useLocaleSettings?: undefined;
38
+ fields?: undefined;
39
+ })[];
40
+ }
41
+ export default _default;
@@ -0,0 +1,38 @@
1
+ export default {
2
+ "components": [
3
+ {
4
+ "label": "Day - Table",
5
+ "hideInputLabels": false,
6
+ "inputsLabelPosition": "top",
7
+ "useLocaleSettings": false,
8
+ "alwaysEnabled": false,
9
+ "tableView": false,
10
+ "fields": {
11
+ "day": {
12
+ "hide": false,
13
+ "required": true
14
+ },
15
+ "month": {
16
+ "hide": false,
17
+ "required": true
18
+ },
19
+ "year": {
20
+ "hide": false,
21
+ "required": true
22
+ }
23
+ },
24
+ "key": "dayTable",
25
+ "type": "day",
26
+ "input": true
27
+ },
28
+ {
29
+ "label": "Submit",
30
+ "showValidations": false,
31
+ "alwaysEnabled": false,
32
+ "tableView": false,
33
+ "key": "submit",
34
+ "type": "button",
35
+ "input": true
36
+ }
37
+ ]
38
+ };
@@ -5,4 +5,5 @@ import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
8
+ import comp8 from './comp8';
9
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
@@ -5,4 +5,5 @@ import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
8
+ import comp8 from './comp8';
9
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
@@ -83,7 +83,7 @@ export default class EditGridComponent extends NestedArrayComponent {
83
83
  {% if (!instance.options.readOnly && !instance.disabled) { %}
84
84
  <div class="col-sm-2">
85
85
  <div class="btn-group pull-right">
86
- <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('pen-fill') }}"></i></button>
86
+ <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('edit') }}"></i></button>
87
87
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
88
88
  <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass('trash') }}"></i></button>
89
89
  {% } %}
@@ -104,7 +104,7 @@ export default class EditGridComponent extends NestedArrayComponent {
104
104
  {% if (!instance.options.readOnly && !instance.disabled) { %}
105
105
  <td class="editgrid-table-column">
106
106
  <div class="btn-group">
107
- <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('pen-fill') }}"></i></button>
107
+ <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('edit') }}"></i></button>
108
108
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
109
109
  <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t('Remove row') }}"><i class="{{ iconClass('trash') }}"></i></button>
110
110
  {% } %}
@@ -74,5 +74,8 @@ declare namespace _default {
74
74
  let apiKey: string;
75
75
  let typeRemaining: string;
76
76
  let typeCount: string;
77
+ let requiredDayField: string;
78
+ let requiredMonthField: string;
79
+ let requiredYearField: string;
77
80
  }
78
81
  export default _default;
@@ -73,5 +73,8 @@ export default {
73
73
  reCaptchaTokenNotSpecifiedError: 'ReCAPTCHA: Token is not specified in submission',
74
74
  apiKey: 'API Key is not unique: {{key}}',
75
75
  typeRemaining: '{{ remaining }} {{ type }} remaining.',
76
- typeCount: '{{ count }} {{ type }}'
76
+ typeCount: '{{ count }} {{ type }}',
77
+ requiredDayField: '{{ field }} is required',
78
+ requiredMonthField: '{{ field }} is required',
79
+ requiredYearField: '{{ field }} is required'
77
80
  };