@unicef-polymer/etools-form-builder 2.0.0-rc.3 → 2.0.0

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.
Files changed (87) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/dist/form-attachments-popup/form-attachments-popup.d.ts +0 -0
  4. package/dist/form-attachments-popup/form-attachments-popup.helper.d.ts +0 -0
  5. package/dist/form-attachments-popup/form-attachments-popup.helper.js +0 -0
  6. package/dist/form-attachments-popup/form-attachments-popup.js +7 -3
  7. package/dist/form-attachments-popup/form-attachments-popup.tpl.d.ts +0 -0
  8. package/dist/form-attachments-popup/form-attachments-popup.tpl.js +1 -2
  9. package/dist/form-attachments-popup/index.d.ts +0 -0
  10. package/dist/form-attachments-popup/index.js +0 -0
  11. package/dist/form-fields/abstract-field-base.class.d.ts +0 -0
  12. package/dist/form-fields/abstract-field-base.class.js +5 -9
  13. package/dist/form-fields/field-renderer-component.d.ts +0 -0
  14. package/dist/form-fields/field-renderer-component.js +9 -5
  15. package/dist/form-fields/index.d.ts +3 -0
  16. package/dist/form-fields/index.js +3 -0
  17. package/dist/form-fields/repeatable-fields/repeatable-attachment-field.d.ts +0 -0
  18. package/dist/form-fields/repeatable-fields/repeatable-attachment-field.js +13 -3
  19. package/dist/form-fields/repeatable-fields/repeatable-base-field.d.ts +0 -0
  20. package/dist/form-fields/repeatable-fields/repeatable-base-field.js +0 -0
  21. package/dist/form-fields/repeatable-fields/repeatable-number-field.d.ts +0 -0
  22. package/dist/form-fields/repeatable-fields/repeatable-number-field.js +15 -5
  23. package/dist/form-fields/repeatable-fields/repeatable-scale-field.d.ts +0 -0
  24. package/dist/form-fields/repeatable-fields/repeatable-scale-field.js +7 -3
  25. package/dist/form-fields/repeatable-fields/repeatable-text-field.d.ts +0 -0
  26. package/dist/form-fields/repeatable-fields/repeatable-text-field.js +15 -5
  27. package/dist/form-fields/single-fields/attachment-field.d.ts +0 -0
  28. package/dist/form-fields/single-fields/attachment-field.js +13 -3
  29. package/dist/form-fields/single-fields/base-field.d.ts +0 -0
  30. package/dist/form-fields/single-fields/base-field.js +0 -0
  31. package/dist/form-fields/single-fields/boolean-field.d.ts +0 -0
  32. package/dist/form-fields/single-fields/boolean-field.js +15 -5
  33. package/dist/form-fields/single-fields/number-field.d.ts +0 -0
  34. package/dist/form-fields/single-fields/number-field.js +15 -5
  35. package/dist/form-fields/single-fields/scale-field.d.ts +0 -0
  36. package/dist/form-fields/single-fields/scale-field.js +7 -3
  37. package/dist/form-fields/single-fields/text-field.d.ts +0 -0
  38. package/dist/form-fields/single-fields/text-field.js +15 -5
  39. package/dist/form-groups/form-abstract-group.d.ts +0 -0
  40. package/dist/form-groups/form-abstract-group.js +8 -4
  41. package/dist/form-groups/form-card.d.ts +0 -0
  42. package/dist/form-groups/form-card.js +7 -3
  43. package/dist/form-groups/form-collapsed-card.d.ts +0 -0
  44. package/dist/form-groups/form-collapsed-card.js +7 -3
  45. package/dist/form-groups/index.d.ts +0 -0
  46. package/dist/form-groups/index.js +0 -0
  47. package/dist/index.d.ts +3 -14
  48. package/dist/index.js +3 -24
  49. package/dist/lib/additional-components/confirmation-dialog.d.ts +0 -0
  50. package/dist/lib/additional-components/confirmation-dialog.js +7 -3
  51. package/dist/lib/additional-components/etools-fb-card.d.ts +0 -0
  52. package/dist/lib/additional-components/etools-fb-card.js +0 -0
  53. package/dist/lib/styles/attachments.styles.d.ts +0 -0
  54. package/dist/lib/styles/attachments.styles.js +0 -0
  55. package/dist/lib/styles/card-styles.d.ts +0 -0
  56. package/dist/lib/styles/card-styles.js +0 -0
  57. package/dist/lib/styles/dialog.styles.d.ts +0 -0
  58. package/dist/lib/styles/dialog.styles.js +0 -0
  59. package/dist/lib/styles/elevation-styles.d.ts +0 -0
  60. package/dist/lib/styles/elevation-styles.js +0 -0
  61. package/dist/lib/styles/flex-layout-classes.d.ts +0 -0
  62. package/dist/lib/styles/flex-layout-classes.js +0 -0
  63. package/dist/lib/styles/form-builder-card.styles.d.ts +0 -0
  64. package/dist/lib/styles/form-builder-card.styles.js +0 -0
  65. package/dist/lib/styles/input-styles.d.ts +0 -0
  66. package/dist/lib/styles/input-styles.js +47 -69
  67. package/dist/lib/styles/page-layout-styles.d.ts +0 -0
  68. package/dist/lib/styles/page-layout-styles.js +0 -0
  69. package/dist/lib/styles/shared-styles.d.ts +0 -0
  70. package/dist/lib/styles/shared-styles.js +0 -0
  71. package/dist/lib/types/form-builder.interfaces.d.ts +0 -0
  72. package/dist/lib/types/form-builder.interfaces.js +0 -0
  73. package/dist/lib/types/form-builder.types.d.ts +0 -0
  74. package/dist/lib/types/form-builder.types.js +0 -0
  75. package/dist/lib/types/global.types.d.ts +0 -0
  76. package/dist/lib/types/global.types.js +0 -0
  77. package/dist/lib/utils/dialog.d.ts +0 -0
  78. package/dist/lib/utils/dialog.js +0 -0
  79. package/dist/lib/utils/fire-custom-event.d.ts +0 -0
  80. package/dist/lib/utils/fire-custom-event.js +0 -0
  81. package/dist/lib/utils/validations.helper.d.ts +0 -0
  82. package/dist/lib/utils/validations.helper.js +0 -0
  83. package/package.json +10 -7
  84. package/dist/form-fields/custom-elements.define.d.ts +0 -1
  85. package/dist/form-fields/custom-elements.define.js +0 -23
  86. package/dist/form-groups/custom-elements.define.d.ts +0 -1
  87. package/dist/form-groups/custom-elements.define.js +0 -9
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
@@ -9,7 +9,7 @@ import '@unicef-polymer/etools-upload/etools-upload-multi';
9
9
  import '@unicef-polymer/etools-dropdown/etools-dropdown';
10
10
  import '@polymer/paper-button/paper-button';
11
11
  import '@polymer/iron-icons/iron-icons';
12
- import { css, LitElement, property, query } from 'lit-element';
12
+ import { css, customElement, LitElement, property, query } from 'lit-element';
13
13
  import { clone, equals } from 'ramda';
14
14
  import { template } from './form-attachments-popup.tpl';
15
15
  import { fireEvent } from '../lib/utils/fire-custom-event';
@@ -17,7 +17,7 @@ import { SharedStyles } from '../lib/styles/shared-styles';
17
17
  import { AttachmentsStyles } from '../lib/styles/attachments.styles';
18
18
  import { AttachmentsHelper } from './form-attachments-popup.helper';
19
19
  import { deleteFileFromDexie } from '@unicef-polymer/etools-upload/offline/dexie-operations';
20
- export class FormAttachmentsPopup extends LitElement {
20
+ let FormAttachmentsPopup = class FormAttachmentsPopup extends LitElement {
21
21
  constructor() {
22
22
  super();
23
23
  this.dialogOpened = true;
@@ -226,7 +226,7 @@ export class FormAttachmentsPopup extends LitElement {
226
226
  `
227
227
  ];
228
228
  }
229
- }
229
+ };
230
230
  __decorate([
231
231
  property()
232
232
  ], FormAttachmentsPopup.prototype, "dialogOpened", void 0);
@@ -242,3 +242,7 @@ __decorate([
242
242
  __decorate([
243
243
  query('#link')
244
244
  ], FormAttachmentsPopup.prototype, "link", void 0);
245
+ FormAttachmentsPopup = __decorate([
246
+ customElement('form-attachments-popup')
247
+ ], FormAttachmentsPopup);
248
+ export { FormAttachmentsPopup };
@@ -27,7 +27,7 @@ export function template() {
27
27
  <div class="file-selector-container with-type-dropdown">
28
28
  <!-- Type select Dropdown -->
29
29
  <etools-dropdown
30
- class="type-dropdown disabled-as-readonly file-selector__type-dropdown"
30
+ class="type-dropdown file-selector__type-dropdown"
31
31
  .selected="${attachment.file_type}"
32
32
  @etools-selected-item-changed="${({ detail }) => { var _a; return this.changeFileType(attachment, (_a = detail.selectedItem) === null || _a === void 0 ? void 0 : _a.value, index); }}"
33
33
  trigger-value-change-event
@@ -35,7 +35,6 @@ export function template() {
35
35
  placeholder="Select Document Type"
36
36
  required
37
37
  ?readonly="${this.readonly}"
38
- ?disabled="${this.readonly}"
39
38
  hide-search
40
39
  .options="${(_b = (_a = this.metadata) === null || _a === void 0 ? void 0 : _a.options.target_attachments_file_types) === null || _b === void 0 ? void 0 : _b.values}"
41
40
  option-label="label"
File without changes
File without changes
File without changes
@@ -24,6 +24,7 @@ export class AbstractFieldBaseClass extends LitElement {
24
24
  set isReadonly(readonly) {
25
25
  this._readonly = readonly;
26
26
  this.setDefaultValue(readonly, this._defaultValue);
27
+ this.requestUpdate();
27
28
  }
28
29
  get isReadonly() {
29
30
  return this._readonly;
@@ -121,22 +122,17 @@ export class AbstractFieldBaseClass extends LitElement {
121
122
  color: var(--primary-text-color);
122
123
  }
123
124
 
124
- paper-input.form-control,
125
- paper-textarea.form-control {
125
+ paper-input,
126
+ paper-textarea {
126
127
  outline: none !important;
127
128
  }
128
- paper-input[required].form-control,
129
- paper-textarea[required].form-control {
129
+ paper-input[required],
130
+ paper-textarea[required] {
130
131
  --paper-input-container-label_-_background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221235%22%20height%3D%221175%22%3E%3Cpath%20fill%3D%22%23de0000%22%20d%3D%22M0%2C449h1235l-999%2C726%20382-1175%20382%2C1175z%22%2F%3E%3C%2Fsvg%3E')
131
132
  no-repeat 98% 14%/7px;
132
133
  --paper-input-container-label_-_max-width: max-content;
133
134
  --paper-input-container-label_-_padding-right: 15px;
134
135
  }
135
- paper-input[disabled].form-control,
136
- paper-textarea[disabled].form-control {
137
- --paper-input-container-underline_-_border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
138
- --paper-input-container-underline_-_border-color: rgba(0, 0, 0, 0.2) !important;
139
- }
140
136
 
141
137
  iron-icon[icon='close'] {
142
138
  cursor: pointer;
File without changes
@@ -4,11 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { css, html, LitElement, property } from 'lit-element';
8
- import { FieldTypes, StructureTypes } from '../form-groups';
7
+ import { css, customElement, html, LitElement, property } from 'lit-element';
9
8
  import { FlexLayoutClasses } from '../lib/styles/flex-layout-classes';
10
- import { FormBuilderCardStyles } from '..';
11
- export class FieldRendererComponent extends LitElement {
9
+ import { FieldTypes, StructureTypes } from '../form-groups';
10
+ import { FormBuilderCardStyles } from '../lib/styles/form-builder-card.styles';
11
+ let FieldRendererComponent = class FieldRendererComponent extends LitElement {
12
12
  constructor() {
13
13
  super(...arguments);
14
14
  this.errorMessage = null;
@@ -224,7 +224,7 @@ export class FieldRendererComponent extends LitElement {
224
224
  `
225
225
  ];
226
226
  }
227
- }
227
+ };
228
228
  __decorate([
229
229
  property()
230
230
  ], FieldRendererComponent.prototype, "field", void 0);
@@ -243,3 +243,7 @@ __decorate([
243
243
  __decorate([
244
244
  property({ type: Array })
245
245
  ], FieldRendererComponent.prototype, "options", void 0);
246
+ FieldRendererComponent = __decorate([
247
+ customElement('field-renderer')
248
+ ], FieldRendererComponent);
249
+ export { FieldRendererComponent };
@@ -2,8 +2,11 @@ export * from './single-fields/base-field';
2
2
  export * from './single-fields/number-field';
3
3
  export * from './single-fields/text-field';
4
4
  export * from './single-fields/scale-field';
5
+ export * from './single-fields/boolean-field';
6
+ export * from './single-fields/attachment-field';
5
7
  export * from './repeatable-fields/repeatable-base-field';
6
8
  export * from './repeatable-fields/repeatable-text-field';
7
9
  export * from './repeatable-fields/repeatable-number-field';
8
10
  export * from './repeatable-fields/repeatable-scale-field';
11
+ export * from './repeatable-fields/repeatable-attachment-field';
9
12
  export * from './field-renderer-component';
@@ -2,8 +2,11 @@ export * from './single-fields/base-field';
2
2
  export * from './single-fields/number-field';
3
3
  export * from './single-fields/text-field';
4
4
  export * from './single-fields/scale-field';
5
+ export * from './single-fields/boolean-field';
6
+ export * from './single-fields/attachment-field';
5
7
  export * from './repeatable-fields/repeatable-base-field';
6
8
  export * from './repeatable-fields/repeatable-text-field';
7
9
  export * from './repeatable-fields/repeatable-number-field';
8
10
  export * from './repeatable-fields/repeatable-scale-field';
11
+ export * from './repeatable-fields/repeatable-attachment-field';
9
12
  export * from './field-renderer-component';
@@ -1,11 +1,17 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
1
7
  import '@unicef-polymer/etools-upload/etools-upload';
2
8
  import { RepeatableBaseField } from './repeatable-base-field';
3
9
  import { AttachmentsHelper } from '../../form-attachments-popup';
4
- import { html, css } from 'lit-element';
10
+ import { html, css, customElement } from 'lit-element';
5
11
  import { fireEvent } from '../../lib/utils/fire-custom-event';
6
12
  import { SharedStyles } from '../../lib/styles/shared-styles';
7
13
  import { AttachmentsStyles } from '../../lib/styles/attachments.styles';
8
- export class RepeatableAttachmentField extends RepeatableBaseField {
14
+ let RepeatableAttachmentField = class RepeatableAttachmentField extends RepeatableBaseField {
9
15
  constructor() {
10
16
  super(...arguments);
11
17
  this.computedPath = [];
@@ -195,4 +201,8 @@ export class RepeatableAttachmentField extends RepeatableBaseField {
195
201
  `
196
202
  ];
197
203
  }
198
- }
204
+ };
205
+ RepeatableAttachmentField = __decorate([
206
+ customElement('repeatable-attachments-field')
207
+ ], RepeatableAttachmentField);
208
+ export { RepeatableAttachmentField };
@@ -1,9 +1,15 @@
1
- import { css, html } from 'lit-element';
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { css, customElement, html } from 'lit-element';
2
8
  import '@polymer/paper-input/paper-input';
3
9
  import { InputStyles } from '../../lib/styles/input-styles';
4
10
  import { RepeatableBaseField } from './repeatable-base-field';
5
11
  import { AbstractFieldBaseClass } from '../abstract-field-base.class';
6
- export class RepeatableNumberField extends RepeatableBaseField {
12
+ let RepeatableNumberField = class RepeatableNumberField extends RepeatableBaseField {
7
13
  constructor() {
8
14
  super(...arguments);
9
15
  this.isInteger = false;
@@ -12,7 +18,7 @@ export class RepeatableNumberField extends RepeatableBaseField {
12
18
  return html `
13
19
  ${InputStyles}
14
20
  <paper-input
15
- class="without-border no-padding-left form-control"
21
+ class="no-padding-left"
16
22
  no-label-float
17
23
  placeholder="${this.isReadonly ? '—' : this.placeholder}"
18
24
  .value="${value}"
@@ -20,7 +26,7 @@ export class RepeatableNumberField extends RepeatableBaseField {
20
26
  placeholder="&#8212;"
21
27
  ?invalid="${this.errorMessage[index]}"
22
28
  error-message="${this.errorMessage[index]}"
23
- ?disabled="${this.isReadonly}"
29
+ ?readonly="${this.isReadonly}"
24
30
  >
25
31
  </paper-input>
26
32
  `;
@@ -53,4 +59,8 @@ export class RepeatableNumberField extends RepeatableBaseField {
53
59
  `
54
60
  ];
55
61
  }
56
- }
62
+ };
63
+ RepeatableNumberField = __decorate([
64
+ customElement('repeatable-number-field')
65
+ ], RepeatableNumberField);
66
+ export { RepeatableNumberField };
@@ -4,14 +4,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, property, css } from 'lit-element';
7
+ import { html, property, css, customElement } from 'lit-element';
8
8
  import { repeat } from 'lit-html/directives/repeat';
9
9
  import '@polymer/paper-radio-group/paper-radio-group';
10
10
  import '@polymer/paper-radio-button/paper-radio-button';
11
11
  import { InputStyles } from '../../lib/styles/input-styles';
12
12
  import { RepeatableBaseField } from './repeatable-base-field';
13
13
  import { AbstractFieldBaseClass } from '../abstract-field-base.class';
14
- export class RepeatableScaleField extends RepeatableBaseField {
14
+ let RepeatableScaleField = class RepeatableScaleField extends RepeatableBaseField {
15
15
  constructor() {
16
16
  super(...arguments);
17
17
  this.options = [];
@@ -98,7 +98,11 @@ export class RepeatableScaleField extends RepeatableBaseField {
98
98
  `
99
99
  ];
100
100
  }
101
- }
101
+ };
102
102
  __decorate([
103
103
  property({ type: Array })
104
104
  ], RepeatableScaleField.prototype, "options", void 0);
105
+ RepeatableScaleField = __decorate([
106
+ customElement('repeatable-scale-field')
107
+ ], RepeatableScaleField);
108
+ export { RepeatableScaleField };
@@ -1,20 +1,26 @@
1
- import { css, html } from 'lit-element';
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { css, customElement, html } from 'lit-element';
2
8
  import '@polymer/paper-input/paper-textarea';
3
9
  import { InputStyles } from '../../lib/styles/input-styles';
4
10
  import { RepeatableBaseField } from './repeatable-base-field';
5
11
  import { AbstractFieldBaseClass } from '../abstract-field-base.class';
6
- export class RepeatableTextField extends RepeatableBaseField {
12
+ let RepeatableTextField = class RepeatableTextField extends RepeatableBaseField {
7
13
  controlTemplate(value, index) {
8
14
  return html `
9
15
  ${InputStyles}
10
16
  <paper-textarea
11
17
  id="textarea"
12
- class="no-padding-left form-control"
18
+ class="no-padding-left"
13
19
  no-label-float
14
20
  placeholder="${this.isReadonly ? '—' : this.placeholder}"
15
21
  .value="${value}"
16
22
  @value-changed="${({ detail }) => this.valueChanged(detail.value, index)}"
17
- ?disabled="${this.isReadonly}"
23
+ ?readonly="${this.isReadonly}"
18
24
  ?invalid="${this.errorMessage[index]}"
19
25
  error-message="${this.errorMessage[index]}"
20
26
  >
@@ -40,4 +46,8 @@ export class RepeatableTextField extends RepeatableBaseField {
40
46
  `
41
47
  ];
42
48
  }
43
- }
49
+ };
50
+ RepeatableTextField = __decorate([
51
+ customElement('repeatable-text-field')
52
+ ], RepeatableTextField);
53
+ export { RepeatableTextField };
@@ -1,11 +1,17 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
1
7
  import '@unicef-polymer/etools-upload/etools-upload';
2
8
  import { BaseField } from './base-field';
3
9
  import { AttachmentsHelper } from '../../form-attachments-popup';
4
- import { html } from 'lit-element';
10
+ import { html, customElement } from 'lit-element';
5
11
  import { fireEvent } from '../../lib/utils/fire-custom-event';
6
12
  import { SharedStyles } from '../../lib/styles/shared-styles';
7
13
  import { AttachmentsStyles } from '../../lib/styles/attachments.styles';
8
- export class AttachmentField extends BaseField {
14
+ let AttachmentField = class AttachmentField extends BaseField {
9
15
  constructor() {
10
16
  super(...arguments);
11
17
  this.computedPath = [];
@@ -84,4 +90,8 @@ export class AttachmentField extends BaseField {
84
90
  // language=CSS
85
91
  return [...BaseField.styles, SharedStyles, AttachmentsStyles];
86
92
  }
87
- }
93
+ };
94
+ AttachmentField = __decorate([
95
+ customElement('attachments-field')
96
+ ], AttachmentField);
97
+ export { AttachmentField };
File without changes
File without changes
File without changes
@@ -1,16 +1,22 @@
1
- import { css, html } from 'lit-element';
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { css, customElement, html } from 'lit-element';
2
8
  import { BaseField } from './base-field';
3
9
  import '@polymer/paper-toggle-button';
4
10
  import { InputStyles } from '../../lib/styles/input-styles';
5
- export class BooleanField extends BaseField {
11
+ let BooleanField = class BooleanField extends BaseField {
6
12
  controlTemplate() {
7
13
  return html `
8
14
  ${InputStyles}
9
15
  <paper-toggle-button
10
- class="no-padding-left form-control"
16
+ class="no-padding-left"
11
17
  ?checked="${this.value}"
12
18
  @iron-change="${(event) => this.valueChanged(event.currentTarget.checked)}"
13
- ?disabled="${this.isReadonly}"
19
+ ?readonly="${this.isReadonly}"
14
20
  >
15
21
  </paper-toggle-button>
16
22
 
@@ -36,4 +42,8 @@ export class BooleanField extends BaseField {
36
42
  `
37
43
  ];
38
44
  }
39
- }
45
+ };
46
+ BooleanField = __decorate([
47
+ customElement('boolean-field')
48
+ ], BooleanField);
49
+ export { BooleanField };
File without changes
@@ -1,8 +1,14 @@
1
- import { css, html } from 'lit-element';
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { css, customElement, html } from 'lit-element';
2
8
  import { BaseField } from './base-field';
3
9
  import '@polymer/paper-input/paper-input';
4
10
  import { InputStyles } from '../../lib/styles/input-styles';
5
- export class NumberField extends BaseField {
11
+ let NumberField = class NumberField extends BaseField {
6
12
  constructor() {
7
13
  super(...arguments);
8
14
  this.isInteger = false;
@@ -11,7 +17,7 @@ export class NumberField extends BaseField {
11
17
  return html `
12
18
  ${InputStyles}
13
19
  <paper-input
14
- class="without-border no-padding-left form-control"
20
+ class="no-padding-left"
15
21
  no-label-float
16
22
  placeholder="${this.isReadonly ? '—' : this.placeholder}"
17
23
  .value="${this.value}"
@@ -20,7 +26,7 @@ export class NumberField extends BaseField {
20
26
  placeholder="&#8212;"
21
27
  ?invalid="${this.errorMessage}"
22
28
  error-message="${this.errorMessage}"
23
- ?disabled="${this.isReadonly}"
29
+ ?readonly="${this.isReadonly}"
24
30
  >
25
31
  </paper-input>
26
32
  `;
@@ -53,4 +59,8 @@ export class NumberField extends BaseField {
53
59
  `
54
60
  ];
55
61
  }
56
- }
62
+ };
63
+ NumberField = __decorate([
64
+ customElement('number-field')
65
+ ], NumberField);
66
+ export { NumberField };
File without changes
@@ -4,13 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, property, css } from 'lit-element';
7
+ import { html, property, css, customElement } from 'lit-element';
8
8
  import { BaseField } from './base-field';
9
9
  import { repeat } from 'lit-html/directives/repeat';
10
10
  import '@polymer/paper-radio-group/paper-radio-group';
11
11
  import '@polymer/paper-radio-button/paper-radio-button';
12
12
  import { InputStyles } from '../../lib/styles/input-styles';
13
- export class ScaleField extends BaseField {
13
+ let ScaleField = class ScaleField extends BaseField {
14
14
  constructor() {
15
15
  super(...arguments);
16
16
  this.options = [];
@@ -97,7 +97,11 @@ export class ScaleField extends BaseField {
97
97
  `
98
98
  ];
99
99
  }
100
- }
100
+ };
101
101
  __decorate([
102
102
  property({ type: Array })
103
103
  ], ScaleField.prototype, "options", void 0);
104
+ ScaleField = __decorate([
105
+ customElement('scale-field')
106
+ ], ScaleField);
107
+ export { ScaleField };
File without changes
@@ -1,21 +1,27 @@
1
- import { css, html } from 'lit-element';
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { css, customElement, html } from 'lit-element';
2
8
  import { BaseField } from './base-field';
3
9
  import '@polymer/paper-input/paper-textarea';
4
10
  import { InputStyles } from '../../lib/styles/input-styles';
5
- export class TextField extends BaseField {
11
+ let TextField = class TextField extends BaseField {
6
12
  controlTemplate() {
7
13
  return html `
8
14
  ${InputStyles}
9
15
  <paper-textarea
10
16
  id="textarea"
11
- class="no-padding-left form-control"
17
+ class="no-padding-left"
12
18
  no-label-float
13
19
  placeholder="${this.isReadonly ? '—' : this.placeholder}"
14
20
  .value="${this.value}"
15
21
  @value-changed="${({ detail }) => this.valueChanged(detail.value)}"
16
22
  @focus="${() => (this.touched = true)}"
17
23
  placeholder="&#8212;"
18
- ?disabled="${this.isReadonly}"
24
+ ?readonly="${this.isReadonly}"
19
25
  ?invalid="${this.errorMessage}"
20
26
  error-message="${this.errorMessage}"
21
27
  >
@@ -41,4 +47,8 @@ export class TextField extends BaseField {
41
47
  `
42
48
  ];
43
49
  }
44
- }
50
+ };
51
+ TextField = __decorate([
52
+ customElement('text-field')
53
+ ], TextField);
54
+ export { TextField };
File without changes
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { LitElement, property, html, css } from 'lit-element';
7
+ import { LitElement, property, html, css, customElement } from 'lit-element';
8
8
  import '../form-fields/single-fields/text-field';
9
9
  import '../form-fields/single-fields/number-field';
10
10
  import '../form-fields/single-fields/scale-field';
@@ -14,11 +14,11 @@ import { pageLayoutStyles } from '../lib/styles/page-layout-styles';
14
14
  import { elevationStyles } from '../lib/styles/elevation-styles';
15
15
  import { CardStyles } from '../lib/styles/card-styles';
16
16
  import { FlexLayoutClasses } from '../lib/styles/flex-layout-classes';
17
- import { FormBuilderCardStyles } from '..';
18
17
  import { fireEvent } from '../lib/utils/fire-custom-event';
19
18
  import { clone } from 'ramda';
20
19
  import { live } from 'lit-html/directives/live';
21
20
  import { openDialog } from '../lib/utils/dialog';
21
+ import { FormBuilderCardStyles } from '../lib/styles/form-builder-card.styles';
22
22
  export var FieldTypes;
23
23
  (function (FieldTypes) {
24
24
  FieldTypes["FILE_TYPE"] = "file";
@@ -38,7 +38,7 @@ export var StructureTypes;
38
38
  StructureTypes["COLLAPSED"] = "collapse";
39
39
  StructureTypes["ATTACHMENTS_BUTTON"] = "floating_attachments";
40
40
  })(StructureTypes || (StructureTypes = {}));
41
- export class FormAbstractGroup extends LitElement {
41
+ let FormAbstractGroup = class FormAbstractGroup extends LitElement {
42
42
  constructor() {
43
43
  super(...arguments);
44
44
  this.parentGroupName = '';
@@ -328,7 +328,7 @@ export class FormAbstractGroup extends LitElement {
328
328
  `
329
329
  ];
330
330
  }
331
- }
331
+ };
332
332
  __decorate([
333
333
  property({ type: Object })
334
334
  ], FormAbstractGroup.prototype, "groupStructure", void 0);
@@ -347,3 +347,7 @@ __decorate([
347
347
  __decorate([
348
348
  property()
349
349
  ], FormAbstractGroup.prototype, "_value", void 0);
350
+ FormAbstractGroup = __decorate([
351
+ customElement('form-abstract-group')
352
+ ], FormAbstractGroup);
353
+ export { FormAbstractGroup };
File without changes
@@ -4,13 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, property } from 'lit-element';
7
+ import { html, property, customElement } from 'lit-element';
8
8
  import { fireEvent } from '../lib/utils/fire-custom-event';
9
9
  import { clone, equals } from 'ramda';
10
10
  import { FormAbstractGroup } from './form-abstract-group';
11
11
  import '@polymer/iron-collapse';
12
12
  import { openDialog } from '../lib/utils/dialog';
13
- export class FormCard extends FormAbstractGroup {
13
+ let FormCard = class FormCard extends FormAbstractGroup {
14
14
  constructor() {
15
15
  super(...arguments);
16
16
  this._value = {};
@@ -95,10 +95,14 @@ export class FormCard extends FormAbstractGroup {
95
95
  }
96
96
  });
97
97
  }
98
- }
98
+ };
99
99
  __decorate([
100
100
  property()
101
101
  ], FormCard.prototype, "_value", void 0);
102
102
  __decorate([
103
103
  property()
104
104
  ], FormCard.prototype, "showSaveButton", void 0);
105
+ FormCard = __decorate([
106
+ customElement('form-card')
107
+ ], FormCard);
108
+ export { FormCard };
File without changes
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, property } from 'lit-element';
7
+ import { html, property, customElement } from 'lit-element';
8
8
  import { clone } from 'ramda';
9
9
  import { fireEvent } from '../lib/utils/fire-custom-event';
10
10
  import { openDialog } from '../lib/utils/dialog';
@@ -14,7 +14,7 @@ import '../lib/additional-components/confirmation-dialog';
14
14
  const PARTNER_KEY = 'partner';
15
15
  const OUTPUT_KEY = 'output';
16
16
  const INTERVENTION_KEY = 'intervention';
17
- export class FormCollapsedCard extends FormAbstractGroup {
17
+ let FormCollapsedCard = class FormCollapsedCard extends FormAbstractGroup {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  this.isEditMode = false;
@@ -237,7 +237,7 @@ export class FormCollapsedCard extends FormAbstractGroup {
237
237
  return 'Upload Files';
238
238
  }
239
239
  }
240
- }
240
+ };
241
241
  __decorate([
242
242
  property()
243
243
  ], FormCollapsedCard.prototype, "isEditMode", void 0);
@@ -247,3 +247,7 @@ __decorate([
247
247
  __decorate([
248
248
  property()
249
249
  ], FormCollapsedCard.prototype, "_value", void 0);
250
+ FormCollapsedCard = __decorate([
251
+ customElement('form-collapsed-card')
252
+ ], FormCollapsedCard);
253
+ export { FormCollapsedCard };
File without changes
File without changes
package/dist/index.d.ts CHANGED
@@ -1,14 +1,3 @@
1
- /**
2
- * Styles
3
- */
4
- export * from './lib/styles/form-builder-card.styles';
5
- import './lib/styles/input-styles';
6
- /**
7
- * Form group elements
8
- */
9
- import './form-groups/custom-elements.define';
10
- /**
11
- * Form field elements
12
- */
13
- import './form-fields/custom-elements.define';
14
- export * from './form-fields/single-fields/base-field';
1
+ export * from './form-fields';
2
+ export * from './form-groups';
3
+ export * from './form-attachments-popup';
package/dist/index.js CHANGED
@@ -1,24 +1,3 @@
1
- /**
2
- * Styles
3
- */
4
- export * from './lib/styles/form-builder-card.styles';
5
- import './lib/styles/input-styles';
6
- /**
7
- * Form group elements
8
- */
9
- import './form-groups/custom-elements.define';
10
- /**
11
- * Form field elements
12
- */
13
- import './form-fields/custom-elements.define';
14
- export * from './form-fields/single-fields/base-field';
15
- /**
16
- * Attachments Popup
17
- */
18
- import { FormAttachmentsPopup } from './form-attachments-popup';
19
- window.customElements.define('form-attachments-popup', FormAttachmentsPopup);
20
- /**
21
- * Confirmation Popup
22
- */
23
- import { ConfirmationDialog } from './lib/additional-components/confirmation-dialog';
24
- window.customElements.define('confirmation-popup', ConfirmationDialog);
1
+ export * from './form-fields';
2
+ export * from './form-groups';
3
+ export * from './form-attachments-popup';
@@ -4,9 +4,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { LitElement, property, html, css } from 'lit-element';
7
+ import { LitElement, property, html, css, customElement } from 'lit-element';
8
8
  import { fireEvent } from '../utils/fire-custom-event';
9
- export class ConfirmationDialog extends LitElement {
9
+ let ConfirmationDialog = class ConfirmationDialog extends LitElement {
10
10
  constructor() {
11
11
  super(...arguments);
12
12
  this.dialogOpened = true;
@@ -55,7 +55,11 @@ export class ConfirmationDialog extends LitElement {
55
55
  `
56
56
  ];
57
57
  }
58
- }
58
+ };
59
59
  __decorate([
60
60
  property()
61
61
  ], ConfirmationDialog.prototype, "dialogOpened", void 0);
62
+ ConfirmationDialog = __decorate([
63
+ customElement('confirmation-popup')
64
+ ], ConfirmationDialog);
65
+ export { ConfirmationDialog };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -2,35 +2,30 @@ import { html } from 'lit-element';
2
2
  // language=HTML
3
3
  export const InputStyles = html `
4
4
  <style>
5
- etools-dropdown.form-control,
6
- etools-dropdown-multi.form-control,
7
- paper-input.form-control,
8
- paper-textarea.form-control,
9
- paper-dropdown-menu.form-control,
10
- etools-currency-amount-input.form-control,
11
- datepicker-lite.form-control {
5
+ etools-dropdown,
6
+ etools-dropdown-multi,
7
+ paper-input,
8
+ paper-textarea,
9
+ paper-dropdown-menu,
10
+ etools-currency-amount-input,
11
+ datepicker-lite {
12
12
  outline: none !important;
13
13
  padding: 0 12px;
14
- color: var(--gray-mid, rgba(0, 0, 0, 0.54));
14
+ color: var(--gray-dark, rgba(0, 0, 0, 0.87));
15
15
  box-sizing: border-box;
16
- --esmm-placeholder-color: var(--gray-20, rgba(0, 0, 0, 0.2));
17
- --esmm-multi-placeholder-color: var(--gray-20, rgba(0, 0, 0, 0.2));
18
- --paper-input-container-color: rgba(0, 0, 0, 0.2);
16
+
17
+ --paper-input-container-input-color: var(--gray-dark, rgba(0, 0, 0, 0.87));
18
+ --esmm-placeholder-color: var(--gray-dark, rgba(0, 0, 0, 0.87));
19
+ --esmm-multi-placeholder-color: var(--gray-dark, rgba(0, 0, 0, 0.87));
20
+
19
21
  --paper-input-container-focus-color: var(--primary-color, #0099ff);
20
- --paper-input-container-input: {
21
- font-size: 16px;
22
- color: var(--gray-dark, rgba(0, 0, 0, 0.87));
23
- }
22
+
24
23
  --paper-input-container-label: {
25
24
  color: var(--gray-50, rgba(0, 0, 0, 0.5));
26
25
  }
27
26
 
28
27
  --paper-input-container-invalid-color: var(--module-error, #ea4022);
29
28
 
30
- --paper-input-container-disabled: {
31
- color: var(--gray-light, rgba(0, 0, 0, 0.38));
32
- opacity: 1;
33
- }
34
29
  --paper-input-char-counter: {
35
30
  color: var(--gray-light, rgba(0, 0, 0, 0.38));
36
31
  }
@@ -56,9 +51,6 @@ export const InputStyles = html `
56
51
  width: 100%;
57
52
  font-size: 12px;
58
53
  }
59
- --paper-input-container-underline: {
60
- border-color: rgba(0, 0, 0, 0.2) !important;
61
- }
62
54
 
63
55
  --paper-input-container-shared-input-style: {
64
56
  font-size: 16px;
@@ -74,44 +66,35 @@ export const InputStyles = html `
74
66
  overflow: hidden;
75
67
  }
76
68
 
77
- --iron-autogrow-textarea-placeholder: {
78
- color: var(--gray-20, rgba(0, 0, 0, 0.2)) !important;
79
- }
80
69
  --iron-autogrow-textarea: {
81
70
  padding: 0;
82
71
  }
83
72
  }
84
73
 
85
- paper-input-container.form-control,
86
- etools-dropdown-multi[disabled].disabled-as-readonly.form-control,
87
- etools-dropdown[disabled].disabled-as-readonly.form-control,
88
- paper-textarea[disabled].disabled-as-readonly.form-control,
89
- paper-dropdown-menu[disabled].disabled-as-readonly.form-control,
90
- paper-input[disabled].disabled-as-readonly.form-control,
91
- datepicker-lite[disabled].disabled-as-readonly.form-control {
74
+ etools-dropdown-multi[disabled],
75
+ etools-dropdown[disabled],
76
+ paper-textarea[disabled],
77
+ paper-dropdown-menu[disabled],
78
+ paper-input[disabled],
79
+ datepicker-lite[disabled] {
92
80
  --paper-input-container: {
93
81
  opacity: 1 !important;
94
82
  }
95
- --paper-input-container-underline: {
96
- border-bottom: none !important;
97
- display: none !important;
98
- }
83
+
99
84
  --paper-input-container-underline-focus: {
100
85
  display: none;
101
86
  }
102
- --paper-input-container-color: rgba(0, 0, 0, 0.2) !important;
87
+ --esmm-select-cursor: initial;
103
88
  }
104
89
 
105
- etools-dropdown-multi[disabled].without-border.form-control,
106
- etools-dropdown[disabled].without-border.form-control,
107
- paper-textarea[disabled].without-border.form-control,
108
- paper-input[disabled].without-border.form-control,
109
- datepicker-lite[disabled].without-border.form-control {
110
- --paper-input-container-label: {
111
- color: var(--gray-50, rgba(0, 0, 0, 0.5)) !important;
112
- }
113
- --esmm-placeholder-color: rgba(0, 0, 0, 0.16) !important;
114
- --esmm-multi-placeholder-color: rgba(0, 0, 0, 0.16) !important;
90
+ etools-dropdown-multi[readonly],
91
+ etools-dropdown[readonly],
92
+ paper-textarea[readonly],
93
+ paper-dropdown-menu[readonly],
94
+ paper-input[readonly],
95
+ datepicker-lite[readonly] {
96
+ --paper-input-container-underline_-_display: none;
97
+ --paper-input-container-underline-focus_-_display: none;
115
98
  --paper-input-container: {
116
99
  opacity: 1 !important;
117
100
  }
@@ -122,30 +105,25 @@ export const InputStyles = html `
122
105
  --paper-input-container-underline-focus: {
123
106
  display: none;
124
107
  }
125
- --paper-input-container-underline-disabled: {
126
- display: none;
127
- }
128
- --iron-autogrow-textarea-placeholder: {
129
- color: var(--gray-mid-dark, rgba(0, 0, 0, 0.7)) !important;
130
- }
131
- --paper-input-container-color: var(--gray-mid-dark, rgba(0, 0, 0, 0.7));
108
+
109
+ --esmm-select-cursor: initial;
132
110
  }
133
111
 
134
- etools-dropdown-multi.required:not([disabled]).form-control,
135
- etools-dropdown-multi[required]:not([disabled]).form-control,
136
- etools-dropdown-multi[required].readonly-required.form-control,
137
- etools-dropdown.required:not([disabled]).form-control,
138
- etools-dropdown[required]:not([disabled]).form-control,
139
- etools-dropdown[required].readonly-required.form-control,
140
- paper-dropdown-menu.required:not([disabled]).form-control,
141
- paper-dropdown-menu[required]:not([disabled]).form-control,
142
- paper-dropdown-menu[required].readonly-required.form-control,
143
- paper-textarea.required:not([disabled]).form-control,
144
- paper-textarea[required]:not([disabled]).form-control,
145
- paper-textarea[required].readonly-required.form-control,
146
- paper-input.required:not([disabled]).form-control,
147
- paper-input[required].readonly-required.form-control,
148
- paper-input[required]:not([disabled]).form-control {
112
+ etools-dropdown-multi.required:not([disabled]),
113
+ etools-dropdown-multi[required]:not([disabled]),
114
+ etools-dropdown-multi[required].readonly-required,
115
+ etools-dropdown.required:not([disabled]),
116
+ etools-dropdown[required]:not([disabled]),
117
+ etools-dropdown[required].readonly-required,
118
+ paper-dropdown-menu.required:not([disabled]),
119
+ paper-dropdown-menu[required]:not([disabled]),
120
+ paper-dropdown-menu[required].readonly-required,
121
+ paper-textarea.required:not([disabled]),
122
+ paper-textarea[required]:not([disabled]),
123
+ paper-textarea[required].readonly-required,
124
+ paper-input.required:not([disabled]),
125
+ paper-input[required].readonly-required,
126
+ paper-input[required]:not([disabled]) {
149
127
  --paper-input-container-label: {
150
128
  background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221235%22%20height%3D%221175%22%3E%3Cpath%20fill%3D%22%23de0000%22%20d%3D%22M0%2C449h1235l-999%2C726%20382-1175%20382%2C1175z%22%2F%3E%3C%2Fsvg%3E')
151
129
  no-repeat 98% 14%/7px;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unicef-polymer/etools-form-builder",
3
3
  "description": "Etools FM Form Builder components",
4
- "version": "2.0.0-rc.3",
4
+ "version": "2.0.0",
5
5
  "contributors": [
6
6
  "eTools Team"
7
7
  ],
@@ -22,17 +22,17 @@
22
22
  "@polymer/iron-collapse": "^3.0.1",
23
23
  "@polymer/iron-icons": "^3.0.1",
24
24
  "@polymer/paper-button": "^3.0.1",
25
- "@polymer/paper-input": "^3.0.2",
25
+ "@polymer/paper-input": "^3.2.1",
26
26
  "@polymer/paper-radio-button": "^3.0.1",
27
27
  "@polymer/paper-radio-group": "^3.0.1",
28
28
  "@polymer/paper-toast": "^3.0.1",
29
29
  "@polymer/paper-toggle-button": "^3.0.1",
30
30
  "@types/ramda": "^0.26.43",
31
- "@unicef-polymer/etools-dialog": "5.0.0-rc.2",
32
- "@unicef-polymer/etools-dropdown": "^3.7.6",
33
- "@unicef-polymer/etools-upload": "^4.2.1-rc.3",
31
+ "@unicef-polymer/etools-dialog": "^6.0.1",
32
+ "@unicef-polymer/etools-dropdown": "^3.7.10",
33
+ "@unicef-polymer/etools-upload": "^4.2.1",
34
34
  "@webcomponents/webcomponentsjs": "^2.6.0",
35
- "lit-element": "^2.4.0",
35
+ "lit-element": "^2.5.1",
36
36
  "lit-translate": "^1.2.1",
37
37
  "ramda": "^0.27.1",
38
38
  "web-animations-js": "^2.3.2"
@@ -48,6 +48,9 @@
48
48
  "eslint-plugin-prettier": "^3.1.3",
49
49
  "minimist": ">=0.2.1",
50
50
  "prettier": "~2.2.0",
51
- "typescript": "^3.9.7"
51
+ "typescript": "^3.9.7",
52
+ "lodash": ">=4.17.21",
53
+ "ansi-regex": ">=5.0.1",
54
+ "glob-parent": ">=5.1.2"
52
55
  }
53
56
  }
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- /**
2
- * Form field elements
3
- */
4
- import { TextField } from './single-fields/text-field';
5
- import { NumberField } from './single-fields/number-field';
6
- import { ScaleField } from './single-fields/scale-field';
7
- import { BooleanField } from './single-fields/boolean-field';
8
- import { FieldRendererComponent } from './field-renderer-component';
9
- import { RepeatableTextField } from './repeatable-fields/repeatable-text-field';
10
- import { RepeatableNumberField } from './repeatable-fields/repeatable-number-field';
11
- import { RepeatableScaleField } from './repeatable-fields/repeatable-scale-field';
12
- import { AttachmentField } from './single-fields/attachment-field';
13
- import { RepeatableAttachmentField } from './repeatable-fields/repeatable-attachment-field';
14
- window.customElements.define('number-field', NumberField);
15
- window.customElements.define('text-field', TextField);
16
- window.customElements.define('scale-field', ScaleField);
17
- window.customElements.define('boolean-field', BooleanField);
18
- window.customElements.define('attachments-field', AttachmentField);
19
- window.customElements.define('field-renderer', FieldRendererComponent);
20
- window.customElements.define('repeatable-text-field', RepeatableTextField);
21
- window.customElements.define('repeatable-number-field', RepeatableNumberField);
22
- window.customElements.define('repeatable-scale-field', RepeatableScaleField);
23
- window.customElements.define('repeatable-attachments-field', RepeatableAttachmentField);
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * Form group elements
3
- */
4
- import { FormAbstractGroup } from './form-abstract-group';
5
- import { FormCard } from './form-card';
6
- import { FormCollapsedCard } from './form-collapsed-card';
7
- window.customElements.define('form-abstract-group', FormAbstractGroup);
8
- window.customElements.define('form-card', FormCard);
9
- window.customElements.define('form-collapsed-card', FormCollapsedCard);