@unicef-polymer/etools-form-builder 1.0.1 → 1.0.2

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 (64) hide show
  1. package/dist/form-attachments-popup/form-attachments-popup.d.ts +77 -77
  2. package/dist/form-attachments-popup/form-attachments-popup.helper.d.ts +8 -8
  3. package/dist/form-attachments-popup/form-attachments-popup.helper.js +14 -14
  4. package/dist/form-attachments-popup/form-attachments-popup.js +191 -191
  5. package/dist/form-attachments-popup/form-attachments-popup.tpl.d.ts +8 -8
  6. package/dist/form-attachments-popup/form-attachments-popup.tpl.js +15 -15
  7. package/dist/form-attachments-popup/index.d.ts +2 -2
  8. package/dist/form-attachments-popup/index.js +2 -2
  9. package/dist/form-fields/base-field.d.ts +20 -20
  10. package/dist/form-fields/base-field.js +80 -80
  11. package/dist/form-fields/custom-elements.define.d.ts +1 -1
  12. package/dist/form-fields/custom-elements.define.js +11 -11
  13. package/dist/form-fields/index.d.ts +5 -5
  14. package/dist/form-fields/index.js +5 -5
  15. package/dist/form-fields/number-field.d.ts +9 -9
  16. package/dist/form-fields/number-field.js +24 -24
  17. package/dist/form-fields/scale-field.d.ts +16 -16
  18. package/dist/form-fields/scale-field.js +38 -38
  19. package/dist/form-fields/text-field.d.ts +8 -8
  20. package/dist/form-fields/text-field.js +19 -19
  21. package/dist/form-fields/wide-field.d.ts +11 -11
  22. package/dist/form-fields/wide-field.js +36 -36
  23. package/dist/form-groups/custom-elements.define.d.ts +1 -1
  24. package/dist/form-groups/custom-elements.define.js +9 -9
  25. package/dist/form-groups/form-abstract-group.d.ts +60 -60
  26. package/dist/form-groups/form-abstract-group.js +199 -199
  27. package/dist/form-groups/form-card.d.ts +31 -31
  28. package/dist/form-groups/form-card.js +69 -69
  29. package/dist/form-groups/form-collapsed-card.d.ts +68 -68
  30. package/dist/form-groups/form-collapsed-card.js +209 -209
  31. package/dist/form-groups/index.d.ts +3 -3
  32. package/dist/form-groups/index.js +3 -3
  33. package/dist/index.d.ts +14 -14
  34. package/dist/index.js +19 -19
  35. package/dist/lib/additional-components/etools-fb-card.d.ts +16 -16
  36. package/dist/lib/additional-components/etools-fb-card.js +80 -80
  37. package/dist/lib/styles/attachments.styles.d.ts +2 -2
  38. package/dist/lib/styles/attachments.styles.js +3 -3
  39. package/dist/lib/styles/card-styles.d.ts +2 -2
  40. package/dist/lib/styles/card-styles.js +3 -3
  41. package/dist/lib/styles/dialog.styles.d.ts +2 -2
  42. package/dist/lib/styles/dialog.styles.js +3 -3
  43. package/dist/lib/styles/elevation-styles.d.ts +9 -9
  44. package/dist/lib/styles/elevation-styles.js +10 -10
  45. package/dist/lib/styles/flex-layout-classes.d.ts +2 -2
  46. package/dist/lib/styles/flex-layout-classes.js +3 -3
  47. package/dist/lib/styles/form-builder-card.styles.d.ts +2 -2
  48. package/dist/lib/styles/form-builder-card.styles.js +3 -3
  49. package/dist/lib/styles/input-styles.d.ts +2 -2
  50. package/dist/lib/styles/input-styles.js +3 -3
  51. package/dist/lib/styles/page-layout-styles.d.ts +2 -2
  52. package/dist/lib/styles/page-layout-styles.js +3 -3
  53. package/dist/lib/styles/shared-styles.d.ts +2 -2
  54. package/dist/lib/styles/shared-styles.js +3 -3
  55. package/dist/lib/types/form-builder.interfaces.d.ts +83 -83
  56. package/dist/lib/types/form-builder.types.d.ts +53 -53
  57. package/dist/lib/types/global.types.d.ts +4 -4
  58. package/dist/lib/utils/dialog.d.ts +10 -10
  59. package/dist/lib/utils/dialog.js +21 -21
  60. package/dist/lib/utils/fire-custom-event.d.ts +1 -1
  61. package/dist/lib/utils/fire-custom-event.js +7 -7
  62. package/dist/lib/utils/validations.helper.d.ts +26 -26
  63. package/dist/lib/utils/validations.helper.js +35 -35
  64. package/package.json +1 -1
@@ -1,74 +1,74 @@
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 { html, property } from 'lit-element';
8
- import { clone } from 'ramda';
9
- import { fireEvent } from '../lib/utils/fire-custom-event';
10
- import { openDialog } from '../lib/utils/dialog';
11
- import { FormAbstractGroup, StructureTypes } from './form-abstract-group';
12
- import '../lib/additional-components/etools-fb-card';
13
- const PARTNER_KEY = 'partner';
14
- const OUTPUT_KEY = 'output';
15
- const INTERVENTION_KEY = 'intervention';
16
- export class FormCollapsedCard extends FormAbstractGroup {
17
- constructor() {
18
- super(...arguments);
19
- this.isEditMode = false;
20
- this._readonly = true;
21
- this._value = {};
22
- this.originalValue = {};
23
- }
24
- /**
25
- * Overrides readonly property
26
- * In collapsed card it must consider isEditMode property,
27
- * components inside card are readonly if isEditMode is off or if card is readonly
28
- */
29
- set readonly(state) {
30
- this._readonly = state;
31
- }
32
- get readonly() {
33
- return this._readonly || !this.isEditMode;
34
- }
35
- /**
36
- * Overrides errors setter
37
- * In collapsed card it must consider isEditMode property,
38
- * We must to enable isEditMode if errors comes from backend
39
- */
40
- set errors(errors) {
41
- if (Array.isArray(errors)) {
42
- fireEvent(this, 'toast', { text: errors[0] });
43
- fireEvent(this, 'error-changed', { error: null });
44
- }
45
- else if (errors) {
46
- this._errors = errors;
47
- }
48
- if (errors) {
49
- this.isEditMode = true;
50
- }
51
- }
52
- /**
53
- * Overrides value property
54
- * We need to save originalValue to have Cancel possibility in collapsed card.
55
- * Don't override current edited value if isEditMode enabled
56
- * (It can be happened if other sibling card or component updates their value during current card edition)
57
- */
58
- set value(value) {
59
- this.originalValue = value;
60
- if (!this.isEditMode) {
61
- this._value = clone(value);
62
- }
63
- }
64
- get value() {
65
- return this._value;
66
- }
67
- /**
68
- * Extends parent render method for handling additional types (StructureTypes.ATTACHMENTS_BUTTON in our case)
69
- * and adds etools-card as container wrapper
70
- */
71
- render() {
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 { html, property } from 'lit-element';
8
+ import { clone } from 'ramda';
9
+ import { fireEvent } from '../lib/utils/fire-custom-event';
10
+ import { openDialog } from '../lib/utils/dialog';
11
+ import { FormAbstractGroup, StructureTypes } from './form-abstract-group';
12
+ import '../lib/additional-components/etools-fb-card';
13
+ const PARTNER_KEY = 'partner';
14
+ const OUTPUT_KEY = 'output';
15
+ const INTERVENTION_KEY = 'intervention';
16
+ export class FormCollapsedCard extends FormAbstractGroup {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.isEditMode = false;
20
+ this._readonly = true;
21
+ this._value = {};
22
+ this.originalValue = {};
23
+ }
24
+ /**
25
+ * Overrides readonly property
26
+ * In collapsed card it must consider isEditMode property,
27
+ * components inside card are readonly if isEditMode is off or if card is readonly
28
+ */
29
+ set readonly(state) {
30
+ this._readonly = state;
31
+ }
32
+ get readonly() {
33
+ return this._readonly || !this.isEditMode;
34
+ }
35
+ /**
36
+ * Overrides errors setter
37
+ * In collapsed card it must consider isEditMode property,
38
+ * We must to enable isEditMode if errors comes from backend
39
+ */
40
+ set errors(errors) {
41
+ if (Array.isArray(errors)) {
42
+ fireEvent(this, 'toast', { text: errors[0] });
43
+ fireEvent(this, 'error-changed', { error: null });
44
+ }
45
+ else if (errors) {
46
+ this._errors = errors;
47
+ }
48
+ if (errors) {
49
+ this.isEditMode = true;
50
+ }
51
+ }
52
+ /**
53
+ * Overrides value property
54
+ * We need to save originalValue to have Cancel possibility in collapsed card.
55
+ * Don't override current edited value if isEditMode enabled
56
+ * (It can be happened if other sibling card or component updates their value during current card edition)
57
+ */
58
+ set value(value) {
59
+ this.originalValue = value;
60
+ if (!this.isEditMode) {
61
+ this._value = clone(value);
62
+ }
63
+ }
64
+ get value() {
65
+ return this._value;
66
+ }
67
+ /**
68
+ * Extends parent render method for handling additional types (StructureTypes.ATTACHMENTS_BUTTON in our case)
69
+ * and adds etools-card as container wrapper
70
+ */
71
+ render() {
72
72
  return html `
73
73
  <section class="elevation page-content card-container" elevation="1">
74
74
  <etools-fb-card
@@ -85,145 +85,145 @@ export class FormCollapsedCard extends FormAbstractGroup {
85
85
  <div slot="content">${this.renderGroupChildren()}</div>
86
86
  </etools-fb-card>
87
87
  </section>
88
- `;
89
- }
90
- /**
91
- * Filters StructureTypes.ATTACHMENTS_BUTTON type. It will be rendered as button,
92
- * allows parent renderChild method to render other types
93
- */
94
- renderGroupChildren() {
95
- return this.groupStructure.children
96
- .filter(({ styling }) => !styling.includes(StructureTypes.ATTACHMENTS_BUTTON))
97
- .map((child) => super.renderChild(child));
98
- }
99
- /**
100
- * Generate open Attachments popup button.
101
- * It is hidden if tab is readonly and no attachments uploaded
102
- */
103
- getAdditionalButtons() {
104
- var _a, _b, _c, _d;
105
- const hideAttachmentsButton = (this._readonly && !this.value.attachments.length) ||
106
- !this.groupStructure.children.some(({ styling }) => styling.includes(StructureTypes.ATTACHMENTS_BUTTON));
107
- return hideAttachmentsButton
108
- ? html ``
88
+ `;
89
+ }
90
+ /**
91
+ * Filters StructureTypes.ATTACHMENTS_BUTTON type. It will be rendered as button,
92
+ * allows parent renderChild method to render other types
93
+ */
94
+ renderGroupChildren() {
95
+ return this.groupStructure.children
96
+ .filter(({ styling }) => !styling.includes(StructureTypes.ATTACHMENTS_BUTTON))
97
+ .map((child) => super.renderChild(child));
98
+ }
99
+ /**
100
+ * Generate open Attachments popup button.
101
+ * It is hidden if tab is readonly and no attachments uploaded
102
+ */
103
+ getAdditionalButtons() {
104
+ var _a, _b, _c, _d, _e, _f;
105
+ const hideAttachmentsButton = (this._readonly && !((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.attachments) === null || _b === void 0 ? void 0 : _b.length)) ||
106
+ !this.groupStructure.children.some(({ styling }) => styling.includes(StructureTypes.ATTACHMENTS_BUTTON));
107
+ return hideAttachmentsButton
108
+ ? html ``
109
109
  : html `
110
110
  <iron-icon icon="warning" class="attachments-warning" ?hidden="${!this._errors.attachments}"></iron-icon>
111
111
  <paper-button @click="${() => this.openAttachmentsPopup()}" class="attachments-button">
112
- <iron-icon icon="${((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.attachments) === null || _b === void 0 ? void 0 : _b.length) ? 'file-download' : 'file-upload'}"></iron-icon>
113
- ${this.getAttachmentsBtnText((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.attachments) === null || _d === void 0 ? void 0 : _d.length)}
112
+ <iron-icon icon="${((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.attachments) === null || _d === void 0 ? void 0 : _d.length) ? 'file-download' : 'file-upload'}"></iron-icon>
113
+ ${this.getAttachmentsBtnText((_f = (_e = this.value) === null || _e === void 0 ? void 0 : _e.attachments) === null || _f === void 0 ? void 0 : _f.length)}
114
114
  </paper-button>
115
- `;
116
- }
117
- retrieveTitle(target) {
118
- switch (target) {
119
- case PARTNER_KEY:
120
- return `Partner`;
121
- case OUTPUT_KEY:
122
- return `Output`;
123
- case INTERVENTION_KEY:
124
- return `PD/SSFA`;
125
- default:
126
- return '';
127
- }
128
- }
129
- startEdit() {
130
- if (this._readonly) {
131
- return;
132
- }
133
- this.isEditMode = true;
134
- }
135
- /**
136
- * We need to rerender view to update all changes that was happen,
137
- * because only fields are updating during @value-change event.
138
- * Only then we can reset all changed values to their original
139
- */
140
- cancelEdit() {
141
- this.requestUpdate().then(() => {
142
- this._value = clone(this.originalValue);
143
- this.isEditMode = false;
144
- });
145
- }
146
- /**
147
- * Updates value property, stops event propagation.
148
- * We need to fire value-changed event only after save button click
149
- */
150
- valueChanged(event, name) {
151
- event.stopPropagation();
152
- if (!this._value) {
153
- this._value = {};
154
- }
155
- if (this._value[name] !== event.detail.value) {
156
- this._value[name] = event.detail.value;
157
- }
158
- }
159
- saveChanges() {
160
- if (Object.keys(this._errors).length) {
161
- fireEvent(this, 'toast', { text: 'Please check all fields and try again' });
162
- return;
163
- }
164
- this.isEditMode = false;
165
- fireEvent(this, 'value-changed', { value: this.value });
166
- }
167
- /**
168
- * Tries to save changed attachments on popup confirm
169
- * Generates value-changed event with originalValue clone if isEditMode enabled.
170
- * In this case it will take only attachments changes and ignore other changes that may happen during card edit
171
- */
172
- openAttachmentsPopup() {
173
- var _a;
174
- if (!customElements.get('form-attachments-popup')) {
175
- throw new Error('Please define "form-attachments-popup" custom element!');
176
- }
177
- openDialog({
178
- dialog: 'form-attachments-popup',
179
- dialogData: {
180
- attachments: (_a = this.value) === null || _a === void 0 ? void 0 : _a.attachments,
181
- metadata: this.metadata,
182
- title: `Attachments for ${this.retrieveTitle(this.parentGroupName) + ': ' + this.groupStructure.title}`,
183
- computedPath: this.computedPath.concat([this.groupStructure.name, 'attachments']),
184
- errors: this._errors.attachments
185
- },
186
- readonly: this._readonly
187
- }).then((response) => {
188
- if (!response.confirmed) {
189
- return;
190
- }
191
- if (!this._value) {
192
- this._value = {};
193
- }
194
- this._value.attachments = response.attachments;
195
- delete this._errors.attachments;
196
- fireEvent(this, 'error-changed', { error: Object.keys(this._errors).length ? this._errors : null });
197
- fireEvent(this, 'attachments-changed', { attachments: this._value.attachments });
198
- if (this.isEditMode) {
199
- const tmp = clone(this.originalValue) || {};
200
- tmp.attachments = response.attachments;
201
- fireEvent(this, 'value-changed', { value: tmp });
202
- }
203
- else {
204
- this.saveChanges();
205
- }
206
- this.requestUpdate();
207
- });
208
- }
209
- getAttachmentsBtnText(attachmentsCount = 0) {
210
- if (attachmentsCount === 1) {
211
- return `${attachmentsCount} File`;
212
- }
213
- else if (attachmentsCount > 1) {
214
- return `${attachmentsCount} Files`;
215
- }
216
- else {
217
- return 'Upload Files';
218
- }
219
- }
220
- }
221
- __decorate([
222
- property()
223
- ], FormCollapsedCard.prototype, "isEditMode", void 0);
224
- __decorate([
225
- property({ type: Boolean, attribute: 'readonly', reflect: true })
226
- ], FormCollapsedCard.prototype, "_readonly", void 0);
227
- __decorate([
228
- property()
229
- ], FormCollapsedCard.prototype, "_value", void 0);
115
+ `;
116
+ }
117
+ retrieveTitle(target) {
118
+ switch (target) {
119
+ case PARTNER_KEY:
120
+ return `Partner`;
121
+ case OUTPUT_KEY:
122
+ return `Output`;
123
+ case INTERVENTION_KEY:
124
+ return `PD/SSFA`;
125
+ default:
126
+ return '';
127
+ }
128
+ }
129
+ startEdit() {
130
+ if (this._readonly) {
131
+ return;
132
+ }
133
+ this.isEditMode = true;
134
+ }
135
+ /**
136
+ * We need to rerender view to update all changes that was happen,
137
+ * because only fields are updating during @value-change event.
138
+ * Only then we can reset all changed values to their original
139
+ */
140
+ cancelEdit() {
141
+ this.requestUpdate().then(() => {
142
+ this._value = clone(this.originalValue);
143
+ this.isEditMode = false;
144
+ });
145
+ }
146
+ /**
147
+ * Updates value property, stops event propagation.
148
+ * We need to fire value-changed event only after save button click
149
+ */
150
+ valueChanged(event, name) {
151
+ event.stopPropagation();
152
+ if (!this._value) {
153
+ this._value = {};
154
+ }
155
+ if (this._value[name] !== event.detail.value) {
156
+ this._value[name] = event.detail.value;
157
+ }
158
+ }
159
+ saveChanges() {
160
+ if (Object.keys(this._errors).length) {
161
+ fireEvent(this, 'toast', { text: 'Please check all fields and try again' });
162
+ return;
163
+ }
164
+ this.isEditMode = false;
165
+ fireEvent(this, 'value-changed', { value: this.value });
166
+ }
167
+ /**
168
+ * Tries to save changed attachments on popup confirm
169
+ * Generates value-changed event with originalValue clone if isEditMode enabled.
170
+ * In this case it will take only attachments changes and ignore other changes that may happen during card edit
171
+ */
172
+ openAttachmentsPopup() {
173
+ var _a;
174
+ if (!customElements.get('form-attachments-popup')) {
175
+ throw new Error('Please define "form-attachments-popup" custom element!');
176
+ }
177
+ openDialog({
178
+ dialog: 'form-attachments-popup',
179
+ dialogData: {
180
+ attachments: (_a = this.value) === null || _a === void 0 ? void 0 : _a.attachments,
181
+ metadata: this.metadata,
182
+ title: `Attachments for ${this.retrieveTitle(this.parentGroupName) + ': ' + this.groupStructure.title}`,
183
+ computedPath: this.computedPath.concat([this.groupStructure.name, 'attachments']),
184
+ errors: this._errors.attachments
185
+ },
186
+ readonly: this._readonly
187
+ }).then((response) => {
188
+ if (!response.confirmed) {
189
+ return;
190
+ }
191
+ if (!this._value) {
192
+ this._value = {};
193
+ }
194
+ this._value.attachments = response.attachments;
195
+ delete this._errors.attachments;
196
+ fireEvent(this, 'error-changed', { error: Object.keys(this._errors).length ? this._errors : null });
197
+ fireEvent(this, 'attachments-changed', { attachments: this._value.attachments });
198
+ if (this.isEditMode) {
199
+ const tmp = clone(this.originalValue) || {};
200
+ tmp.attachments = response.attachments;
201
+ fireEvent(this, 'value-changed', { value: tmp });
202
+ }
203
+ else {
204
+ this.saveChanges();
205
+ }
206
+ this.requestUpdate();
207
+ });
208
+ }
209
+ getAttachmentsBtnText(attachmentsCount = 0) {
210
+ if (attachmentsCount === 1) {
211
+ return `${attachmentsCount} File`;
212
+ }
213
+ else if (attachmentsCount > 1) {
214
+ return `${attachmentsCount} Files`;
215
+ }
216
+ else {
217
+ return 'Upload Files';
218
+ }
219
+ }
220
+ }
221
+ __decorate([
222
+ property()
223
+ ], FormCollapsedCard.prototype, "isEditMode", void 0);
224
+ __decorate([
225
+ property({ type: Boolean, attribute: 'readonly', reflect: true })
226
+ ], FormCollapsedCard.prototype, "_readonly", void 0);
227
+ __decorate([
228
+ property()
229
+ ], FormCollapsedCard.prototype, "_value", void 0);
@@ -1,3 +1,3 @@
1
- export * from './form-abstract-group';
2
- export * from './form-card';
3
- export * from './form-collapsed-card';
1
+ export * from './form-abstract-group';
2
+ export * from './form-card';
3
+ export * from './form-collapsed-card';
@@ -1,3 +1,3 @@
1
- export * from './form-abstract-group';
2
- export * from './form-card';
3
- export * from './form-collapsed-card';
1
+ export * from './form-abstract-group';
2
+ export * from './form-card';
3
+ export * from './form-collapsed-card';
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
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/base-field';
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/base-field';
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
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/base-field';
15
- /**
16
- * Attachments Popup
17
- */
18
- import { FormAttachmentsPopup } from './form-attachments-popup';
19
- window.customElements.define('form-attachments-popup', FormAttachmentsPopup);
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/base-field';
15
+ /**
16
+ * Attachments Popup
17
+ */
18
+ import { FormAttachmentsPopup } from './form-attachments-popup';
19
+ window.customElements.define('form-attachments-popup', FormAttachmentsPopup);
@@ -1,16 +1,16 @@
1
- import { CSSResultArray, LitElement, TemplateResult } from 'lit-element';
2
- import '@polymer/iron-icons/iron-icons';
3
- export declare class EtoolsFbCard extends LitElement {
4
- cardTitle: string;
5
- isEditable: boolean;
6
- isCollapsible: boolean;
7
- hideEditButton: boolean;
8
- collapsed: boolean;
9
- edit: boolean;
10
- static get styles(): CSSResultArray;
11
- save(): void;
12
- cancel(): void;
13
- startEdit(): void;
14
- toggleCollapse(): void;
15
- protected render(): TemplateResult;
16
- }
1
+ import { CSSResultArray, LitElement, TemplateResult } from 'lit-element';
2
+ import '@polymer/iron-icons/iron-icons';
3
+ export declare class EtoolsFbCard extends LitElement {
4
+ cardTitle: string;
5
+ isEditable: boolean;
6
+ isCollapsible: boolean;
7
+ hideEditButton: boolean;
8
+ collapsed: boolean;
9
+ edit: boolean;
10
+ static get styles(): CSSResultArray;
11
+ save(): void;
12
+ cancel(): void;
13
+ startEdit(): void;
14
+ toggleCollapse(): void;
15
+ protected render(): TemplateResult;
16
+ }