@unicef-polymer/etools-form-builder 2.1.0-rc.6 → 2.1.1

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 (83) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +1 -1
  3. package/dist/form-attachments-popup/form-attachments-popup.d.ts +85 -85
  4. package/dist/form-attachments-popup/form-attachments-popup.helper.d.ts +8 -8
  5. package/dist/form-attachments-popup/form-attachments-popup.helper.js +14 -14
  6. package/dist/form-attachments-popup/form-attachments-popup.js +248 -248
  7. package/dist/form-attachments-popup/form-attachments-popup.tpl.d.ts +3 -3
  8. package/dist/form-attachments-popup/form-attachments-popup.tpl.js +89 -89
  9. package/dist/form-attachments-popup/index.d.ts +2 -2
  10. package/dist/form-attachments-popup/index.js +2 -2
  11. package/dist/form-fields/abstract-field-base.class.d.ts +28 -28
  12. package/dist/form-fields/abstract-field-base.class.js +176 -176
  13. package/dist/form-fields/field-renderer-component.d.ts +20 -20
  14. package/dist/form-fields/field-renderer-component.js +249 -249
  15. package/dist/form-fields/index.d.ts +12 -12
  16. package/dist/form-fields/index.js +12 -12
  17. package/dist/form-fields/repeatable-fields/repeatable-attachment-field.d.ts +17 -17
  18. package/dist/form-fields/repeatable-fields/repeatable-attachment-field.js +208 -208
  19. package/dist/form-fields/repeatable-fields/repeatable-base-field.d.ts +20 -20
  20. package/dist/form-fields/repeatable-fields/repeatable-base-field.js +123 -123
  21. package/dist/form-fields/repeatable-fields/repeatable-number-field.d.ts +10 -10
  22. package/dist/form-fields/repeatable-fields/repeatable-number-field.js +66 -66
  23. package/dist/form-fields/repeatable-fields/repeatable-scale-field.d.ts +15 -15
  24. package/dist/form-fields/repeatable-fields/repeatable-scale-field.js +108 -108
  25. package/dist/form-fields/repeatable-fields/repeatable-text-field.d.ts +8 -8
  26. package/dist/form-fields/repeatable-fields/repeatable-text-field.js +53 -53
  27. package/dist/form-fields/single-fields/attachment-field.d.ts +16 -16
  28. package/dist/form-fields/single-fields/attachment-field.js +97 -97
  29. package/dist/form-fields/single-fields/base-field.d.ts +11 -11
  30. package/dist/form-fields/single-fields/base-field.js +57 -57
  31. package/dist/form-fields/single-fields/boolean-field.d.ts +8 -8
  32. package/dist/form-fields/single-fields/boolean-field.js +49 -49
  33. package/dist/form-fields/single-fields/number-field.d.ts +10 -10
  34. package/dist/form-fields/single-fields/number-field.js +66 -66
  35. package/dist/form-fields/single-fields/scale-field.d.ts +18 -18
  36. package/dist/form-fields/single-fields/scale-field.js +107 -107
  37. package/dist/form-fields/single-fields/text-field.d.ts +8 -8
  38. package/dist/form-fields/single-fields/text-field.js +54 -54
  39. package/dist/form-groups/form-abstract-group.d.ts +60 -60
  40. package/dist/form-groups/form-abstract-group.js +353 -353
  41. package/dist/form-groups/form-card.d.ts +32 -32
  42. package/dist/form-groups/form-card.js +108 -108
  43. package/dist/form-groups/form-collapsed-card.d.ts +70 -70
  44. package/dist/form-groups/form-collapsed-card.js +253 -253
  45. package/dist/form-groups/index.d.ts +3 -3
  46. package/dist/form-groups/index.js +3 -3
  47. package/dist/index.d.ts +3 -3
  48. package/dist/index.js +3 -3
  49. package/dist/lib/additional-components/confirmation-dialog.d.ts +16 -16
  50. package/dist/lib/additional-components/confirmation-dialog.js +65 -65
  51. package/dist/lib/additional-components/etools-fb-card.d.ts +16 -16
  52. package/dist/lib/additional-components/etools-fb-card.js +215 -215
  53. package/dist/lib/styles/attachments.styles.d.ts +2 -2
  54. package/dist/lib/styles/attachments.styles.js +72 -72
  55. package/dist/lib/styles/card-styles.d.ts +2 -2
  56. package/dist/lib/styles/card-styles.js +154 -154
  57. package/dist/lib/styles/dialog.styles.d.ts +2 -2
  58. package/dist/lib/styles/dialog.styles.js +85 -85
  59. package/dist/lib/styles/elevation-styles.d.ts +9 -9
  60. package/dist/lib/styles/elevation-styles.js +43 -43
  61. package/dist/lib/styles/flex-layout-classes.d.ts +2 -2
  62. package/dist/lib/styles/flex-layout-classes.js +319 -319
  63. package/dist/lib/styles/form-builder-card.styles.d.ts +2 -2
  64. package/dist/lib/styles/form-builder-card.styles.js +49 -49
  65. package/dist/lib/styles/input-styles.d.ts +2 -2
  66. package/dist/lib/styles/input-styles.js +138 -138
  67. package/dist/lib/styles/page-layout-styles.d.ts +2 -2
  68. package/dist/lib/styles/page-layout-styles.js +201 -201
  69. package/dist/lib/styles/shared-styles.d.ts +2 -2
  70. package/dist/lib/styles/shared-styles.js +70 -70
  71. package/dist/lib/types/form-builder.interfaces.d.ts +83 -83
  72. package/dist/lib/types/form-builder.interfaces.js +0 -0
  73. package/dist/lib/types/form-builder.types.d.ts +59 -59
  74. package/dist/lib/types/form-builder.types.js +0 -0
  75. package/dist/lib/types/global.types.d.ts +4 -4
  76. package/dist/lib/types/global.types.js +0 -0
  77. package/dist/lib/utils/dialog.d.ts +10 -10
  78. package/dist/lib/utils/dialog.js +21 -21
  79. package/dist/lib/utils/fire-custom-event.d.ts +1 -1
  80. package/dist/lib/utils/fire-custom-event.js +7 -7
  81. package/dist/lib/utils/validations.helper.d.ts +26 -26
  82. package/dist/lib/utils/validations.helper.js +35 -35
  83. package/package.json +56 -56
@@ -1,248 +1,248 @@
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 '@unicef-polymer/etools-dialog/etools-dialog';
8
- import '@unicef-polymer/etools-upload/etools-upload-multi';
9
- import '@unicef-polymer/etools-dropdown/etools-dropdown';
10
- import '@polymer/paper-button/paper-button';
11
- import '@polymer/iron-icons/iron-icons';
12
- import { css, customElement, LitElement, property, query } from 'lit-element';
13
- import { clone, equals } from 'ramda';
14
- import { template } from './form-attachments-popup.tpl';
15
- import { fireEvent } from '../lib/utils/fire-custom-event';
16
- import { SharedStyles } from '../lib/styles/shared-styles';
17
- import { AttachmentsStyles } from '../lib/styles/attachments.styles';
18
- import { AttachmentsHelper } from './form-attachments-popup.helper';
19
- import { deleteFileFromDexie } from '@unicef-polymer/etools-upload/offline/dexie-operations';
20
- let FormAttachmentsPopup = class FormAttachmentsPopup extends LitElement {
21
- constructor() {
22
- super();
23
- this.dialogOpened = true;
24
- this.saveBtnClicked = false;
25
- this.attachments = [];
26
- this.readonly = false;
27
- this.popupTitle = '';
28
- this.computedPath = [];
29
- this.errors = [];
30
- /**
31
- * Array of offline saved fileIds that was remove from popup.
32
- * We need to remove them from IDB but only after confirm button click
33
- */
34
- this.filesForRemove = [];
35
- this.originalAttachments = [];
36
- if (!AttachmentsHelper.isInitialized) {
37
- throw new Error('Please initialize attachments popup before use');
38
- }
39
- }
40
- set dialogData({ attachments, title, metadata, readonly, computedPath, errors }) {
41
- this.popupTitle = title;
42
- this.attachments = clone(attachments) || [];
43
- this.originalAttachments = clone(attachments) || [];
44
- this.metadata = clone(metadata);
45
- this.readonly = Boolean(readonly);
46
- this.computedPath = computedPath;
47
- this.errors = clone(errors) || [];
48
- }
49
- get uploadUrl() {
50
- return AttachmentsHelper.uploadUrl;
51
- }
52
- get jwtLocalStorageKey() {
53
- return AttachmentsHelper.jwtLocalStorageKey;
54
- }
55
- render() {
56
- return template.call(this);
57
- }
58
- /**
59
- * on Cancel button click
60
- * Remove offline saved attachments from IDB if they are missing in originalAttachments
61
- */
62
- onClose() {
63
- this.attachments.forEach(({ url, attachment }) => {
64
- const existsInOriginal = this.originalAttachments
65
- .map((item) => item.attachment || [])
66
- .includes(attachment);
67
- if (!existsInOriginal && !url) {
68
- deleteFileFromDexie(attachment);
69
- }
70
- });
71
- fireEvent(this, 'response', { confirmed: false });
72
- }
73
- async saveChanges() {
74
- let fileTypeNotSelected = false;
75
- this.attachments.forEach((attachment, index) => {
76
- if (!attachment.file_type) {
77
- fileTypeNotSelected = true;
78
- this.errors[index] = { file_type: ['This field is required'] };
79
- }
80
- else {
81
- this.errors[index] = [];
82
- }
83
- });
84
- this.requestUpdate();
85
- if (fileTypeNotSelected) {
86
- return;
87
- }
88
- if (this.filesForRemove.length) {
89
- for (const fileId of this.filesForRemove) {
90
- await deleteFileFromDexie(fileId);
91
- }
92
- }
93
- /**
94
- * Don't confirm popup if no changes was made
95
- */
96
- if (!equals(this.attachments, this.originalAttachments)) {
97
- fireEvent(this, 'response', { confirmed: true, attachments: this.attachments });
98
- }
99
- else {
100
- fireEvent(this, 'response', { confirmed: false });
101
- }
102
- }
103
- checkFileType(index) {
104
- var _a;
105
- return (_a = this.errors[index]) === null || _a === void 0 ? void 0 : _a.file_type;
106
- }
107
- retrieveErrorMessage(index) {
108
- return this.errors[index] && this.errors[index].file_type ? this.errors[index].file_type[0] : '';
109
- }
110
- downloadFile(attachment) {
111
- const url = attachment.url;
112
- this.link.href = url;
113
- this.link.click();
114
- window.URL.revokeObjectURL(url);
115
- }
116
- changeFileType(attachment, newType, index) {
117
- if (newType && attachment.file_type !== newType) {
118
- attachment.file_type = newType;
119
- this.errors[index] = [];
120
- this.requestUpdate();
121
- }
122
- }
123
- attachmentsUploaded({ success, error }) {
124
- const parsedAttachments = success
125
- .map((attachment) => {
126
- if (this.isUploadedAttachment(attachment)) {
127
- return {
128
- url: attachment.file_link,
129
- attachment: attachment.id,
130
- filename: attachment.filename,
131
- file_type: null
132
- };
133
- }
134
- else if (this.isOfflineSavedAttachment(attachment)) {
135
- return {
136
- attachment: attachment.id,
137
- filename: attachment.filename,
138
- composedPath: this.computedPath,
139
- file_type: null
140
- };
141
- }
142
- else {
143
- console.warn('Missing fields in parsed attachment');
144
- return null;
145
- }
146
- })
147
- .filter((attachment) => Boolean(attachment));
148
- this.attachments = [...this.attachments, ...parsedAttachments];
149
- if (error && error.length) {
150
- console.error(error);
151
- fireEvent(this, 'toast', { text: 'Can not upload attachments. Please try again later' });
152
- }
153
- }
154
- deleteAttachment(index) {
155
- const [attachment] = this.attachments.splice(index, 1);
156
- if (!attachment.hasOwnProperty('url')) {
157
- /**
158
- * prepare attachment for remove from IDB after Popup confirm
159
- */
160
- this.filesForRemove.push(attachment.attachment);
161
- }
162
- this.attachments = [...this.attachments];
163
- }
164
- isUploadedAttachment(attachment) {
165
- return (attachment.hasOwnProperty('filename') &&
166
- attachment.hasOwnProperty('id') &&
167
- attachment.hasOwnProperty('file_link') &&
168
- !attachment.hasOwnProperty('unsynced'));
169
- }
170
- isOfflineSavedAttachment(attachment) {
171
- return (attachment.hasOwnProperty('filename') && attachment.hasOwnProperty('id') && attachment.hasOwnProperty('unsynced'));
172
- }
173
- static get styles() {
174
- // language=CSS
175
- return [
176
- SharedStyles,
177
- AttachmentsStyles,
178
- css `
179
- .file-selector__type-dropdown {
180
- flex-basis: 25%;
181
- padding-left: 8px;
182
- padding-right: 8px;
183
- }
184
- .file-selector__filename {
185
- flex-basis: 35%;
186
- }
187
- .file-selector__download {
188
- flex-basis: 10%;
189
- }
190
- .file-selector__delete {
191
- flex-basis: 10%;
192
- }
193
- .file-selector-container.with-type-dropdown {
194
- flex-wrap: nowrap;
195
- }
196
- .popup-container {
197
- padding: 12px 12px 0;
198
- }
199
- @media (max-width: 380px) {
200
- .file-selector-container.with-type-dropdown {
201
- justify-content: center;
202
- }
203
- .file-selector-container.with-type-dropdown etools-dropdown.type-dropdown {
204
- flex-basis: 90%;
205
- }
206
- .file-selector__filename {
207
- flex-basis: 90%;
208
- }
209
- .file-selector__download {
210
- flex-basis: 5%;
211
- }
212
- .file-selector__delete {
213
- flex-basis: 5%;
214
- }
215
- }
216
- @media (max-width: 600px) {
217
- etools-dropdown {
218
- padding: 0;
219
- }
220
- .file-selector-container.with-type-dropdown {
221
- border-bottom: 1px solid lightgrey;
222
- flex-wrap: wrap;
223
- padding-bottom: 10px;
224
- }
225
- }
226
- `
227
- ];
228
- }
229
- };
230
- __decorate([
231
- property()
232
- ], FormAttachmentsPopup.prototype, "dialogOpened", void 0);
233
- __decorate([
234
- property()
235
- ], FormAttachmentsPopup.prototype, "saveBtnClicked", void 0);
236
- __decorate([
237
- property()
238
- ], FormAttachmentsPopup.prototype, "attachments", void 0);
239
- __decorate([
240
- property()
241
- ], FormAttachmentsPopup.prototype, "metadata", void 0);
242
- __decorate([
243
- query('#link')
244
- ], FormAttachmentsPopup.prototype, "link", void 0);
245
- FormAttachmentsPopup = __decorate([
246
- customElement('form-attachments-popup')
247
- ], FormAttachmentsPopup);
248
- export { FormAttachmentsPopup };
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 '@unicef-polymer/etools-dialog/etools-dialog';
8
+ import '@unicef-polymer/etools-upload/etools-upload-multi';
9
+ import '@unicef-polymer/etools-dropdown/etools-dropdown';
10
+ import '@polymer/paper-button/paper-button';
11
+ import '@polymer/iron-icons/iron-icons';
12
+ import { css, customElement, LitElement, property, query } from 'lit-element';
13
+ import { clone, equals } from 'ramda';
14
+ import { template } from './form-attachments-popup.tpl';
15
+ import { fireEvent } from '../lib/utils/fire-custom-event';
16
+ import { SharedStyles } from '../lib/styles/shared-styles';
17
+ import { AttachmentsStyles } from '../lib/styles/attachments.styles';
18
+ import { AttachmentsHelper } from './form-attachments-popup.helper';
19
+ import { deleteFileFromDexie } from '@unicef-polymer/etools-upload/offline/dexie-operations';
20
+ let FormAttachmentsPopup = class FormAttachmentsPopup extends LitElement {
21
+ constructor() {
22
+ super();
23
+ this.dialogOpened = true;
24
+ this.saveBtnClicked = false;
25
+ this.attachments = [];
26
+ this.readonly = false;
27
+ this.popupTitle = '';
28
+ this.computedPath = [];
29
+ this.errors = [];
30
+ /**
31
+ * Array of offline saved fileIds that was remove from popup.
32
+ * We need to remove them from IDB but only after confirm button click
33
+ */
34
+ this.filesForRemove = [];
35
+ this.originalAttachments = [];
36
+ if (!AttachmentsHelper.isInitialized) {
37
+ throw new Error('Please initialize attachments popup before use');
38
+ }
39
+ }
40
+ set dialogData({ attachments, title, metadata, readonly, computedPath, errors }) {
41
+ this.popupTitle = title;
42
+ this.attachments = clone(attachments) || [];
43
+ this.originalAttachments = clone(attachments) || [];
44
+ this.metadata = clone(metadata);
45
+ this.readonly = Boolean(readonly);
46
+ this.computedPath = computedPath;
47
+ this.errors = clone(errors) || [];
48
+ }
49
+ get uploadUrl() {
50
+ return AttachmentsHelper.uploadUrl;
51
+ }
52
+ get jwtLocalStorageKey() {
53
+ return AttachmentsHelper.jwtLocalStorageKey;
54
+ }
55
+ render() {
56
+ return template.call(this);
57
+ }
58
+ /**
59
+ * on Cancel button click
60
+ * Remove offline saved attachments from IDB if they are missing in originalAttachments
61
+ */
62
+ onClose() {
63
+ this.attachments.forEach(({ url, attachment }) => {
64
+ const existsInOriginal = this.originalAttachments
65
+ .map((item) => item.attachment || [])
66
+ .includes(attachment);
67
+ if (!existsInOriginal && !url) {
68
+ deleteFileFromDexie(attachment);
69
+ }
70
+ });
71
+ fireEvent(this, 'response', { confirmed: false });
72
+ }
73
+ async saveChanges() {
74
+ let fileTypeNotSelected = false;
75
+ this.attachments.forEach((attachment, index) => {
76
+ if (!attachment.file_type) {
77
+ fileTypeNotSelected = true;
78
+ this.errors[index] = { file_type: ['This field is required'] };
79
+ }
80
+ else {
81
+ this.errors[index] = [];
82
+ }
83
+ });
84
+ this.requestUpdate();
85
+ if (fileTypeNotSelected) {
86
+ return;
87
+ }
88
+ if (this.filesForRemove.length) {
89
+ for (const fileId of this.filesForRemove) {
90
+ await deleteFileFromDexie(fileId);
91
+ }
92
+ }
93
+ /**
94
+ * Don't confirm popup if no changes was made
95
+ */
96
+ if (!equals(this.attachments, this.originalAttachments)) {
97
+ fireEvent(this, 'response', { confirmed: true, attachments: this.attachments });
98
+ }
99
+ else {
100
+ fireEvent(this, 'response', { confirmed: false });
101
+ }
102
+ }
103
+ checkFileType(index) {
104
+ var _a;
105
+ return (_a = this.errors[index]) === null || _a === void 0 ? void 0 : _a.file_type;
106
+ }
107
+ retrieveErrorMessage(index) {
108
+ return this.errors[index] && this.errors[index].file_type ? this.errors[index].file_type[0] : '';
109
+ }
110
+ downloadFile(attachment) {
111
+ const url = attachment.url;
112
+ this.link.href = url;
113
+ this.link.click();
114
+ window.URL.revokeObjectURL(url);
115
+ }
116
+ changeFileType(attachment, newType, index) {
117
+ if (newType && attachment.file_type !== newType) {
118
+ attachment.file_type = newType;
119
+ this.errors[index] = [];
120
+ this.requestUpdate();
121
+ }
122
+ }
123
+ attachmentsUploaded({ success, error }) {
124
+ const parsedAttachments = success
125
+ .map((attachment) => {
126
+ if (this.isUploadedAttachment(attachment)) {
127
+ return {
128
+ url: attachment.file_link,
129
+ attachment: attachment.id,
130
+ filename: attachment.filename,
131
+ file_type: null
132
+ };
133
+ }
134
+ else if (this.isOfflineSavedAttachment(attachment)) {
135
+ return {
136
+ attachment: attachment.id,
137
+ filename: attachment.filename,
138
+ composedPath: this.computedPath,
139
+ file_type: null
140
+ };
141
+ }
142
+ else {
143
+ console.warn('Missing fields in parsed attachment');
144
+ return null;
145
+ }
146
+ })
147
+ .filter((attachment) => Boolean(attachment));
148
+ this.attachments = [...this.attachments, ...parsedAttachments];
149
+ if (error && error.length) {
150
+ console.error(error);
151
+ fireEvent(this, 'toast', { text: 'Can not upload attachments. Please try again later' });
152
+ }
153
+ }
154
+ deleteAttachment(index) {
155
+ const [attachment] = this.attachments.splice(index, 1);
156
+ if (!attachment.hasOwnProperty('url')) {
157
+ /**
158
+ * prepare attachment for remove from IDB after Popup confirm
159
+ */
160
+ this.filesForRemove.push(attachment.attachment);
161
+ }
162
+ this.attachments = [...this.attachments];
163
+ }
164
+ isUploadedAttachment(attachment) {
165
+ return (attachment.hasOwnProperty('filename') &&
166
+ attachment.hasOwnProperty('id') &&
167
+ attachment.hasOwnProperty('file_link') &&
168
+ !attachment.hasOwnProperty('unsynced'));
169
+ }
170
+ isOfflineSavedAttachment(attachment) {
171
+ return (attachment.hasOwnProperty('filename') && attachment.hasOwnProperty('id') && attachment.hasOwnProperty('unsynced'));
172
+ }
173
+ static get styles() {
174
+ // language=CSS
175
+ return [
176
+ SharedStyles,
177
+ AttachmentsStyles,
178
+ css `
179
+ .file-selector__type-dropdown {
180
+ flex-basis: 25%;
181
+ padding-left: 8px;
182
+ padding-right: 8px;
183
+ }
184
+ .file-selector__filename {
185
+ flex-basis: 35%;
186
+ }
187
+ .file-selector__download {
188
+ flex-basis: 10%;
189
+ }
190
+ .file-selector__delete {
191
+ flex-basis: 10%;
192
+ }
193
+ .file-selector-container.with-type-dropdown {
194
+ flex-wrap: nowrap;
195
+ }
196
+ .popup-container {
197
+ padding: 12px 12px 0;
198
+ }
199
+ @media (max-width: 380px) {
200
+ .file-selector-container.with-type-dropdown {
201
+ justify-content: center;
202
+ }
203
+ .file-selector-container.with-type-dropdown etools-dropdown.type-dropdown {
204
+ flex-basis: 90%;
205
+ }
206
+ .file-selector__filename {
207
+ flex-basis: 90%;
208
+ }
209
+ .file-selector__download {
210
+ flex-basis: 5%;
211
+ }
212
+ .file-selector__delete {
213
+ flex-basis: 5%;
214
+ }
215
+ }
216
+ @media (max-width: 600px) {
217
+ etools-dropdown {
218
+ padding: 0;
219
+ }
220
+ .file-selector-container.with-type-dropdown {
221
+ border-bottom: 1px solid lightgrey;
222
+ flex-wrap: wrap;
223
+ padding-bottom: 10px;
224
+ }
225
+ }
226
+ `
227
+ ];
228
+ }
229
+ };
230
+ __decorate([
231
+ property()
232
+ ], FormAttachmentsPopup.prototype, "dialogOpened", void 0);
233
+ __decorate([
234
+ property()
235
+ ], FormAttachmentsPopup.prototype, "saveBtnClicked", void 0);
236
+ __decorate([
237
+ property()
238
+ ], FormAttachmentsPopup.prototype, "attachments", void 0);
239
+ __decorate([
240
+ property()
241
+ ], FormAttachmentsPopup.prototype, "metadata", void 0);
242
+ __decorate([
243
+ query('#link')
244
+ ], FormAttachmentsPopup.prototype, "link", void 0);
245
+ FormAttachmentsPopup = __decorate([
246
+ customElement('form-attachments-popup')
247
+ ], FormAttachmentsPopup);
248
+ export { FormAttachmentsPopup };
@@ -1,3 +1,3 @@
1
- import { FormAttachmentsPopup } from './form-attachments-popup';
2
- import { TemplateResult } from 'lit-html';
3
- export declare function template(this: FormAttachmentsPopup): TemplateResult;
1
+ import { FormAttachmentsPopup } from './form-attachments-popup';
2
+ import { TemplateResult } from 'lit-html';
3
+ export declare function template(this: FormAttachmentsPopup): TemplateResult;