@postnord/pn-marketweb-components 2.4.26 → 2.4.28
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.
- package/cjs/index-4199ff85.js +16 -4
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +183 -0
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +309 -0
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +1 -1
- package/cjs/pn-multiple-input.cjs.entry.js +105 -0
- package/collection/collection-manifest.json +3 -0
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.css +27 -0
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.js +673 -0
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.css +26 -0
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.js +970 -0
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.stories.js +86 -0
- package/collection/components/input/pn-dropdown-with-multi-input-rows/types.js +1 -0
- package/collection/components/input/pn-multiple-input/pn-multiple-input.css +16 -0
- package/collection/components/input/pn-multiple-input/pn-multiple-input.js +185 -0
- package/collection/components/input/pn-multiple-input/pn-multiple-input.stories.js +24 -0
- package/collection/components/input/pn-multiple-input/types.js +1 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +4 -3
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +1 -1
- package/components/index.d.ts +3 -0
- package/components/index.js +3 -0
- package/components/pn-dropdown-with-multi-input-rows-row.d.ts +11 -0
- package/components/pn-dropdown-with-multi-input-rows-row.js +6 -0
- package/components/pn-dropdown-with-multi-input-rows-row2.js +232 -0
- package/components/pn-dropdown-with-multi-input-rows.d.ts +11 -0
- package/components/pn-dropdown-with-multi-input-rows.js +379 -0
- package/components/pn-marketweb-siteheader.js +1 -1
- package/components/pn-multiple-input.d.ts +11 -0
- package/components/pn-multiple-input.js +130 -0
- package/esm/index-ee44c065.js +16 -4
- package/esm/loader.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +179 -0
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +305 -0
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +1 -1
- package/esm/pn-multiple-input.entry.js +101 -0
- package/esm-es5/index-ee44c065.js +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -0
- package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -0
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-multiple-input.entry.js +1 -0
- package/package.json +1 -1
- package/pn-market-web-components/{p-5d0e8295.system.entry.js → p-0ee378ea.system.entry.js} +1 -1
- package/pn-market-web-components/p-313658e7.entry.js +1 -0
- package/pn-market-web-components/p-47239bce.system.entry.js +1 -0
- package/pn-market-web-components/p-52e8d0ec.system.entry.js +1 -0
- package/pn-market-web-components/p-7787ca3b.entry.js +1 -0
- package/pn-market-web-components/p-a953d346.entry.js +1 -0
- package/pn-market-web-components/p-ad952e14.system.entry.js +1 -0
- package/pn-market-web-components/p-e05b6e0c.entry.js +1 -0
- package/pn-market-web-components/p-fcdb7381.system.js +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.d.ts +59 -0
- package/types/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.d.ts +77 -0
- package/types/components/input/pn-dropdown-with-multi-input-rows/types.d.ts +18 -0
- package/types/components/input/pn-multiple-input/pn-multiple-input.d.ts +22 -0
- package/types/components/input/pn-multiple-input/types.d.ts +11 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +1 -1
- package/types/components.d.ts +181 -7
- package/umd/modules/@postnord/web-components/package.json +32 -62
- package/umd/modules/@webcomponents/custom-elements/package.json +23 -58
- package/pn-market-web-components/p-6789a592.entry.js +0 -1
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
+
import { debounce } from 'debounce';
|
|
4
|
+
export class PnDropdownWithMultiInputRows {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.pnFirstDropdown = null;
|
|
7
|
+
this.pnSecondDropdown = null;
|
|
8
|
+
this.pnSumField = null;
|
|
9
|
+
this.pnConfirmDeleteButton = null;
|
|
10
|
+
this.pnAbortDeleteButton = null;
|
|
11
|
+
this._firstDropdownSelection = null;
|
|
12
|
+
this._secondDropdownSelection = null;
|
|
13
|
+
this._defaultRow = {
|
|
14
|
+
id: this.generateUniqueId(),
|
|
15
|
+
firstInput: '',
|
|
16
|
+
secondInput: this.secondInputWarning.toString(),
|
|
17
|
+
date: '',
|
|
18
|
+
};
|
|
19
|
+
this.dropdownData = null;
|
|
20
|
+
this.languageCode = null;
|
|
21
|
+
this.firstDropdownLabel = null;
|
|
22
|
+
this.firstDropdownHelperText = null;
|
|
23
|
+
this.secondDropdownLabel = null;
|
|
24
|
+
this.secondDropdownHelperText = null;
|
|
25
|
+
this.secondDropdownMax = null;
|
|
26
|
+
this.deleteMultipleRowsWarningText = null;
|
|
27
|
+
this.confirmDeleteButtonText = null;
|
|
28
|
+
this.abortDeleteButtonText = null;
|
|
29
|
+
this.fristInputLabel = null;
|
|
30
|
+
this.fristInputPlaceholder = null;
|
|
31
|
+
this.firstInputMin = null;
|
|
32
|
+
this.firstInputMax = null;
|
|
33
|
+
this.firstInputWarning = null;
|
|
34
|
+
this.firstInputWarningText = null;
|
|
35
|
+
this.firstInputLowErrorText = null;
|
|
36
|
+
this.firstInputHighErrorText = null;
|
|
37
|
+
this.secondInputLabel = null;
|
|
38
|
+
this.secondInputPlaceholder = null;
|
|
39
|
+
this.secondInputMin = null;
|
|
40
|
+
this.secondInputMax = null;
|
|
41
|
+
this.secondInputWarning = null;
|
|
42
|
+
this.secondInputWarningText = null;
|
|
43
|
+
this.secondInputLowErrorText = null;
|
|
44
|
+
this.secondInputHighErrorText = null;
|
|
45
|
+
this.dateLabel = null;
|
|
46
|
+
this.datePlaceholder = null;
|
|
47
|
+
this.dateDaysFromToday = 1;
|
|
48
|
+
this.yearsToAddToEndDate = null;
|
|
49
|
+
this.sumFieldLabel = null;
|
|
50
|
+
this.addRowText = null;
|
|
51
|
+
this.elementHelperText = null;
|
|
52
|
+
this.dropdownDataRoot = null;
|
|
53
|
+
this.secondDropdownArr = [];
|
|
54
|
+
this.rowCount = null;
|
|
55
|
+
this.rowData = null;
|
|
56
|
+
this.formValues = null;
|
|
57
|
+
this.firstValidDateString = '';
|
|
58
|
+
this.lastValidDateString = '';
|
|
59
|
+
this.rowSum = null;
|
|
60
|
+
this.minRowCount = null;
|
|
61
|
+
this.showDelteConfirm = false;
|
|
62
|
+
}
|
|
63
|
+
componentWillLoad() {
|
|
64
|
+
this.formValues = [];
|
|
65
|
+
this.setDropDownData();
|
|
66
|
+
this.updateSecondDropdown();
|
|
67
|
+
this.setRowData();
|
|
68
|
+
this.setFirstValidDate();
|
|
69
|
+
}
|
|
70
|
+
componentDidLoad() {
|
|
71
|
+
this.updateSum();
|
|
72
|
+
}
|
|
73
|
+
setDropDownData() {
|
|
74
|
+
var _a;
|
|
75
|
+
if (typeof this.dropdownData === 'string') {
|
|
76
|
+
this.dropdownDataRoot = JSON.parse(this.dropdownData);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
this.dropdownDataRoot = this.dropdownData;
|
|
80
|
+
}
|
|
81
|
+
if ((_a = this.dropdownDataRoot) === null || _a === void 0 ? void 0 : _a.length) {
|
|
82
|
+
this.dropdownDataRoot.forEach(element => {
|
|
83
|
+
if (!element.value) {
|
|
84
|
+
element.value = 0;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
if (this.dropdownDataRoot.length > 0) {
|
|
89
|
+
this.dropdownDataRoot[0].checked = true;
|
|
90
|
+
this._firstDropdownSelection = this.dropdownDataRoot[0].caption;
|
|
91
|
+
this._secondDropdownSelection = this.dropdownDataRoot[0].value;
|
|
92
|
+
this.minRowCount = this.dropdownDataRoot[0].value;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
updateSecondDropdown() {
|
|
96
|
+
const selectedItem = this.dropdownDataRoot.find(arr => arr.checked === true);
|
|
97
|
+
this.secondDropdownArr = [];
|
|
98
|
+
for (let index = selectedItem.value; index <= this.secondDropdownMax; index++) {
|
|
99
|
+
this.secondDropdownArr.push(index);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
updateSelectItemArr(arr, caption) {
|
|
103
|
+
arr.forEach(item => {
|
|
104
|
+
if (item.caption === caption) {
|
|
105
|
+
item.checked = !item.checked;
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
item.checked = false;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
return arr;
|
|
112
|
+
}
|
|
113
|
+
setRowData() {
|
|
114
|
+
this.rowData = [];
|
|
115
|
+
for (let index = 0; index < this._secondDropdownSelection; index++) {
|
|
116
|
+
const row = Object.assign({}, this._defaultRow);
|
|
117
|
+
row.id = this.generateUniqueId();
|
|
118
|
+
this.rowData = [...this.rowData, row];
|
|
119
|
+
}
|
|
120
|
+
this.rowCount = this.rowData.length;
|
|
121
|
+
}
|
|
122
|
+
generateUniqueId() {
|
|
123
|
+
return uuidv4();
|
|
124
|
+
}
|
|
125
|
+
setFirstValidDate() {
|
|
126
|
+
var _a;
|
|
127
|
+
const yearsToadd = this.yearsToAddToEndDate ? this.yearsToAddToEndDate : 2;
|
|
128
|
+
const date = new Date();
|
|
129
|
+
date.setDate((_a = date.getDate() + this.dateDaysFromToday) !== null && _a !== void 0 ? _a : 0);
|
|
130
|
+
const year = date.getFullYear();
|
|
131
|
+
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
132
|
+
const day = date.getDate().toString().padStart(2, '0');
|
|
133
|
+
const endYear = year + yearsToadd;
|
|
134
|
+
this.firstValidDateString = `${year.toString()}-${month}-${day}`;
|
|
135
|
+
this.lastValidDateString = `${endYear.toString()}-${month}-${day}`;
|
|
136
|
+
}
|
|
137
|
+
addRow(newRowId) {
|
|
138
|
+
const newRow = Object.assign({}, this.rowData[0]);
|
|
139
|
+
newRow.id = newRowId ? newRowId : this.generateUniqueId();
|
|
140
|
+
newRow.date = '';
|
|
141
|
+
this.rowData = [...this.rowData, newRow];
|
|
142
|
+
this.rowCount = this.rowData.length;
|
|
143
|
+
this._secondDropdownSelection = this.rowCount;
|
|
144
|
+
this.secondDropdownArr = [...this.secondDropdownArr];
|
|
145
|
+
this.updateSum();
|
|
146
|
+
this.emitValuesIfValid();
|
|
147
|
+
}
|
|
148
|
+
handleFirstDropdown() {
|
|
149
|
+
const selected = this.pnFirstDropdown.querySelector('.current-selection .pn-option-content');
|
|
150
|
+
const selectedValue = selected === null || selected === void 0 ? void 0 : selected.textContent;
|
|
151
|
+
if (!(selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length)) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
this.dropdownDataRoot.forEach(element => {
|
|
155
|
+
element.checked = false;
|
|
156
|
+
});
|
|
157
|
+
const selectionRoot = this.dropdownDataRoot.find(x => x.caption === selectedValue);
|
|
158
|
+
selectionRoot.checked = true;
|
|
159
|
+
this._firstDropdownSelection = selectionRoot.caption;
|
|
160
|
+
this.minRowCount = selectionRoot.value;
|
|
161
|
+
if (selectionRoot.value > this._secondDropdownSelection) {
|
|
162
|
+
this.dropdownDataRoot = [...this.dropdownDataRoot];
|
|
163
|
+
for (let index = this.rowCount; index < selectionRoot.value; index++) {
|
|
164
|
+
this.addRow(this.generateUniqueId());
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
this.updateSecondDropdown();
|
|
168
|
+
this.updateSum();
|
|
169
|
+
this.emitValuesIfValid();
|
|
170
|
+
}
|
|
171
|
+
handleSecondDropdown() {
|
|
172
|
+
const selected = this.pnSecondDropdown.querySelector('.current-selection .pn-option-content');
|
|
173
|
+
const selectedValue = selected === null || selected === void 0 ? void 0 : selected.textContent;
|
|
174
|
+
if (!(selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length)) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const value = parseInt(selectedValue);
|
|
178
|
+
if (value < this._secondDropdownSelection) {
|
|
179
|
+
this.showDelteConfirm = true;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
for (let index = this.rowCount; index < value; index++) {
|
|
183
|
+
this.addRow(this.generateUniqueId());
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
this.updateSum();
|
|
187
|
+
this.emitValuesIfValid();
|
|
188
|
+
}
|
|
189
|
+
predefinedValueChange(e) {
|
|
190
|
+
const indexToUpdate = this.rowData.findIndex(data => data.id === e.detail.id);
|
|
191
|
+
const val = e.detail;
|
|
192
|
+
this.rowData[indexToUpdate] = Object.assign(Object.assign({}, this.rowData[indexToUpdate]), { firstInput: val.firstInput, secondInput: val.secondInput, date: val.date });
|
|
193
|
+
if (e.type === 'firstInputChange' && indexToUpdate === 0) {
|
|
194
|
+
this.updateFirstInputOfRows(val.firstInput);
|
|
195
|
+
}
|
|
196
|
+
if (e.type === 'secondInputChange' && indexToUpdate === 0) {
|
|
197
|
+
this.updateSecondInputOfRows(val.secondInput);
|
|
198
|
+
}
|
|
199
|
+
this.rowData = [...this.rowData];
|
|
200
|
+
this.emitValuesIfValid();
|
|
201
|
+
this.updateSum();
|
|
202
|
+
}
|
|
203
|
+
updateFirstInputOfRows(value) {
|
|
204
|
+
for (let index = 1; index < this.rowCount; index++) {
|
|
205
|
+
this.rowData[index] = Object.assign(Object.assign({}, this.rowData[index]), { firstInput: value });
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
updateSecondInputOfRows(value) {
|
|
209
|
+
for (let index = 1; index < this.rowCount; index++) {
|
|
210
|
+
this.rowData[index] = Object.assign(Object.assign({}, this.rowData[index]), { secondInput: value });
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
deleteRowEvent(e) {
|
|
214
|
+
const indexToRemove = this.rowData.findIndex(data => data.id === e.detail);
|
|
215
|
+
if (indexToRemove < 0) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
this.rowData.splice(indexToRemove, 1);
|
|
219
|
+
this.rowData = [...this.rowData];
|
|
220
|
+
this.rowCount = this.rowData.length;
|
|
221
|
+
this._secondDropdownSelection = this.rowCount;
|
|
222
|
+
this.secondDropdownArr = [...this.secondDropdownArr];
|
|
223
|
+
this.emitValuesIfValid();
|
|
224
|
+
this.updateSum();
|
|
225
|
+
}
|
|
226
|
+
updateSum() {
|
|
227
|
+
this.rowSum = '';
|
|
228
|
+
let sum = 0;
|
|
229
|
+
this.rowData.forEach(element => {
|
|
230
|
+
var _a;
|
|
231
|
+
if ((_a = element === null || element === void 0 ? void 0 : element.firstInput) === null || _a === void 0 ? void 0 : _a.length) {
|
|
232
|
+
sum += parseInt(element.firstInput);
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
this.rowSum = sum.toString();
|
|
236
|
+
}
|
|
237
|
+
deleteExcessRows() {
|
|
238
|
+
const selected = this.pnSecondDropdown.querySelector('.current-selection .pn-option-content');
|
|
239
|
+
const selectedValue = selected === null || selected === void 0 ? void 0 : selected.textContent;
|
|
240
|
+
if (!(selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length)) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
const rowsToDelete = this.rowCount - parseInt(selectedValue);
|
|
244
|
+
for (let index = 0; index < rowsToDelete; index++) {
|
|
245
|
+
this.rowData.pop();
|
|
246
|
+
}
|
|
247
|
+
this.rowData = [...this.rowData];
|
|
248
|
+
this.showDelteConfirm = false;
|
|
249
|
+
this.updateSum();
|
|
250
|
+
}
|
|
251
|
+
abortDeleteRows() {
|
|
252
|
+
this.showDelteConfirm = false;
|
|
253
|
+
}
|
|
254
|
+
emitValuesIfValid() {
|
|
255
|
+
this.formValues = [];
|
|
256
|
+
this.rowData.forEach(item => {
|
|
257
|
+
var _a, _b, _c, _d;
|
|
258
|
+
const rowValue = { row: [] };
|
|
259
|
+
if ((_a = this._firstDropdownSelection) === null || _a === void 0 ? void 0 : _a.length) {
|
|
260
|
+
const dropDownValue = { name: this.firstDropdownLabel, value: this._firstDropdownSelection };
|
|
261
|
+
rowValue.row.push(dropDownValue);
|
|
262
|
+
}
|
|
263
|
+
if ((_b = item.firstInput) === null || _b === void 0 ? void 0 : _b.length) {
|
|
264
|
+
const firstInputValue = { name: this.fristInputLabel, value: item.firstInput };
|
|
265
|
+
rowValue.row.push(firstInputValue);
|
|
266
|
+
}
|
|
267
|
+
if ((_c = item.secondInput) === null || _c === void 0 ? void 0 : _c.length) {
|
|
268
|
+
const secondInputValue = { name: this.secondInputLabel, value: item.secondInput };
|
|
269
|
+
rowValue.row.push(secondInputValue);
|
|
270
|
+
}
|
|
271
|
+
if ((_d = item.date) === null || _d === void 0 ? void 0 : _d.length) {
|
|
272
|
+
const dateValue = { name: this.dateLabel, value: item.date };
|
|
273
|
+
rowValue.row.push(dateValue);
|
|
274
|
+
}
|
|
275
|
+
if (rowValue.row.length === 4) {
|
|
276
|
+
this.formValues.push(rowValue);
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
if (this.formValues.length === this.rowData.length) {
|
|
280
|
+
const valueJsonString = JSON.stringify(this.formValues);
|
|
281
|
+
this.allFormValues.emit(valueJsonString);
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
this.allFormValues.emit('');
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
render() {
|
|
288
|
+
var _a, _b, _c, _d, _e, _f;
|
|
289
|
+
return (h(Host, { class: "dropdown-with-multi-input-elemet" }, h("div", { class: "dropdown-with-multi-input-elemet__row" }, h("div", null, h("pn-select", { ref: el => (this.pnFirstDropdown = el), class: "pn-row-select-dropdown dropDown1-dropdown", label: this.firstDropdownLabel }, (_a = this.dropdownDataRoot) === null || _a === void 0 ? void 0 : _a.map((item, i) => (h("pn-option", { index: i, value: item.value, selected: item.checked, onClick: debounce(this.handleFirstDropdown.bind(this), 500) }, item.caption)))), ((_b = this.firstDropdownHelperText) === null || _b === void 0 ? void 0 : _b.length) ? h("small", null, this.firstDropdownHelperText) : null)), h("div", { class: "dropdown-with-multi-input-elemet__row" }, h("div", null, h("pn-select", { ref: el => (this.pnSecondDropdown = el), class: "pn-row-select-dropdown dropDown2-dropdown", label: this.secondDropdownLabel }, (_c = this.secondDropdownArr) === null || _c === void 0 ? void 0 : _c.map((item, i) => (h("pn-option", { index: i, value: item, selected: item === this._secondDropdownSelection, onClick: debounce(this.handleSecondDropdown.bind(this), 500) }, item)))), ((_d = this.secondDropdownHelperText) === null || _d === void 0 ? void 0 : _d.length) ? h("small", null, this.secondDropdownHelperText) : null)), this.showDelteConfirm ? (h("div", { class: "dropdown-with-multi-input-elemet__delete" }, h("p", null, this.deleteMultipleRowsWarningText), h("pn-button", { ref: el => (this.pnConfirmDeleteButton = el), small: "true", appearance: "warning", onClick: this.deleteExcessRows.bind(this) }, this.confirmDeleteButtonText), h("pn-button", { ref: el => (this.pnAbortDeleteButton = el), small: "true", appearance: "light", onClick: this.abortDeleteRows.bind(this) }, this.abortDeleteButtonText))) : null, h("div", { class: "dropdown-with-multi-input-elemet__label-row" }, h("div", { class: "dropdown-with-multi-input-elemet__label" }, h("label", null, this.fristInputLabel)), h("div", { class: "dropdown-with-multi-input-elemet__label" }, h("label", null, this.secondInputLabel)), h("div", { class: "dropdown-with-multi-input-elemet__label" }, h("label", null, this.dateLabel))), (_e = this.rowData) === null || _e === void 0 ? void 0 :
|
|
290
|
+
_e.map((data, i) => {
|
|
291
|
+
return (h("div", { class: 'dropdown-with-multi-input-elemet__row generated-row-' + i, id: 'generated-row-' + i }, h("pn-dropdown-with-multi-input-rows-row", { "language-code": this.languageCode, "frist-input-placeholder": this.fristInputPlaceholder, "first-input-min": this.firstInputMin, "first-input-max": this.firstInputMax, "first-input-warning": this.firstInputWarning, "first-input-warning-text": this.firstInputWarningText, "first-input-low-error-text": this.firstInputLowErrorText, "first-input-high-error-text": this.firstInputHighErrorText, "second-input-placeholder": this.secondInputPlaceholder, "second-input-min": this.secondInputMin, "second-input-max": this.secondInputMax, "second-input-warning": this.secondInputWarning, "second-input-warning-text": this.secondInputWarningText, "second-input-low-error-text": this.secondInputLowErrorText, "second-input-high-error-text": this.secondInputHighErrorText, datePlaceholder: this.datePlaceholder, firstValidDate: this.firstValidDateString, lastValidDate: this.lastValidDateString, "predefined-value": JSON.stringify(data), "min-row-count": this.minRowCount, "row-index": i })));
|
|
292
|
+
}), h("div", { class: "dropdown-with-multi-input-elemet__row sum-row" }, h("pn-marketweb-input", { disabled: true, ref: el => (this.pnSumField = el), type: "number", value: this.rowSum, label: this.sumFieldLabel }), h("pn-button", { "icon-only": this.addRowText ? false : true, "left-icon": "true", "aria-label": "Add", icon: "plus", appearance: "light", variant: "borderless", class: "connected-dropdown__button-right", onClick: () => {
|
|
293
|
+
this.addRow(this.generateUniqueId());
|
|
294
|
+
} }, this.addRowText)), ((_f = this.elementHelperText) === null || _f === void 0 ? void 0 : _f.length) ? h("div", { class: "dropdown-with-multi-input-elemet__row" }, this.elementHelperText) : null));
|
|
295
|
+
}
|
|
296
|
+
static get is() { return "pn-dropdown-with-multi-input-rows"; }
|
|
297
|
+
static get originalStyleUrls() {
|
|
298
|
+
return {
|
|
299
|
+
"$": ["pn-dropdown-with-multi-input-rows.scss"]
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
static get styleUrls() {
|
|
303
|
+
return {
|
|
304
|
+
"$": ["pn-dropdown-with-multi-input-rows.css"]
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
static get properties() {
|
|
308
|
+
return {
|
|
309
|
+
"dropdownData": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "string | Root[]",
|
|
314
|
+
"resolved": "Root[] | string",
|
|
315
|
+
"references": {
|
|
316
|
+
"Root": {
|
|
317
|
+
"location": "import",
|
|
318
|
+
"path": "./types"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"required": false,
|
|
323
|
+
"optional": false,
|
|
324
|
+
"docs": {
|
|
325
|
+
"tags": [],
|
|
326
|
+
"text": ""
|
|
327
|
+
},
|
|
328
|
+
"attribute": "dropdown-data",
|
|
329
|
+
"reflect": false,
|
|
330
|
+
"defaultValue": "null"
|
|
331
|
+
},
|
|
332
|
+
"languageCode": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"mutable": false,
|
|
335
|
+
"complexType": {
|
|
336
|
+
"original": "string",
|
|
337
|
+
"resolved": "string",
|
|
338
|
+
"references": {}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": false,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": ""
|
|
345
|
+
},
|
|
346
|
+
"attribute": "language-code",
|
|
347
|
+
"reflect": false,
|
|
348
|
+
"defaultValue": "null"
|
|
349
|
+
},
|
|
350
|
+
"firstDropdownLabel": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"mutable": false,
|
|
353
|
+
"complexType": {
|
|
354
|
+
"original": "string",
|
|
355
|
+
"resolved": "string",
|
|
356
|
+
"references": {}
|
|
357
|
+
},
|
|
358
|
+
"required": false,
|
|
359
|
+
"optional": false,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": ""
|
|
363
|
+
},
|
|
364
|
+
"attribute": "first-dropdown-label",
|
|
365
|
+
"reflect": false,
|
|
366
|
+
"defaultValue": "null"
|
|
367
|
+
},
|
|
368
|
+
"firstDropdownHelperText": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "string",
|
|
373
|
+
"resolved": "string",
|
|
374
|
+
"references": {}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": false,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": ""
|
|
381
|
+
},
|
|
382
|
+
"attribute": "first-dropdown-helper-text",
|
|
383
|
+
"reflect": false,
|
|
384
|
+
"defaultValue": "null"
|
|
385
|
+
},
|
|
386
|
+
"secondDropdownLabel": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"mutable": false,
|
|
389
|
+
"complexType": {
|
|
390
|
+
"original": "string",
|
|
391
|
+
"resolved": "string",
|
|
392
|
+
"references": {}
|
|
393
|
+
},
|
|
394
|
+
"required": false,
|
|
395
|
+
"optional": false,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": ""
|
|
399
|
+
},
|
|
400
|
+
"attribute": "second-dropdown-label",
|
|
401
|
+
"reflect": false,
|
|
402
|
+
"defaultValue": "null"
|
|
403
|
+
},
|
|
404
|
+
"secondDropdownHelperText": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"mutable": false,
|
|
407
|
+
"complexType": {
|
|
408
|
+
"original": "string",
|
|
409
|
+
"resolved": "string",
|
|
410
|
+
"references": {}
|
|
411
|
+
},
|
|
412
|
+
"required": false,
|
|
413
|
+
"optional": false,
|
|
414
|
+
"docs": {
|
|
415
|
+
"tags": [],
|
|
416
|
+
"text": ""
|
|
417
|
+
},
|
|
418
|
+
"attribute": "second-dropdown-helper-text",
|
|
419
|
+
"reflect": false,
|
|
420
|
+
"defaultValue": "null"
|
|
421
|
+
},
|
|
422
|
+
"secondDropdownMax": {
|
|
423
|
+
"type": "number",
|
|
424
|
+
"mutable": false,
|
|
425
|
+
"complexType": {
|
|
426
|
+
"original": "number",
|
|
427
|
+
"resolved": "number",
|
|
428
|
+
"references": {}
|
|
429
|
+
},
|
|
430
|
+
"required": false,
|
|
431
|
+
"optional": false,
|
|
432
|
+
"docs": {
|
|
433
|
+
"tags": [],
|
|
434
|
+
"text": ""
|
|
435
|
+
},
|
|
436
|
+
"attribute": "second-dropdown-max",
|
|
437
|
+
"reflect": false,
|
|
438
|
+
"defaultValue": "null"
|
|
439
|
+
},
|
|
440
|
+
"deleteMultipleRowsWarningText": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"mutable": false,
|
|
443
|
+
"complexType": {
|
|
444
|
+
"original": "string",
|
|
445
|
+
"resolved": "string",
|
|
446
|
+
"references": {}
|
|
447
|
+
},
|
|
448
|
+
"required": false,
|
|
449
|
+
"optional": false,
|
|
450
|
+
"docs": {
|
|
451
|
+
"tags": [],
|
|
452
|
+
"text": ""
|
|
453
|
+
},
|
|
454
|
+
"attribute": "delete-multiple-rows-warning-text",
|
|
455
|
+
"reflect": false,
|
|
456
|
+
"defaultValue": "null"
|
|
457
|
+
},
|
|
458
|
+
"confirmDeleteButtonText": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"mutable": false,
|
|
461
|
+
"complexType": {
|
|
462
|
+
"original": "string",
|
|
463
|
+
"resolved": "string",
|
|
464
|
+
"references": {}
|
|
465
|
+
},
|
|
466
|
+
"required": false,
|
|
467
|
+
"optional": false,
|
|
468
|
+
"docs": {
|
|
469
|
+
"tags": [],
|
|
470
|
+
"text": ""
|
|
471
|
+
},
|
|
472
|
+
"attribute": "confirm-delete-button-text",
|
|
473
|
+
"reflect": false,
|
|
474
|
+
"defaultValue": "null"
|
|
475
|
+
},
|
|
476
|
+
"abortDeleteButtonText": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"mutable": false,
|
|
479
|
+
"complexType": {
|
|
480
|
+
"original": "string",
|
|
481
|
+
"resolved": "string",
|
|
482
|
+
"references": {}
|
|
483
|
+
},
|
|
484
|
+
"required": false,
|
|
485
|
+
"optional": false,
|
|
486
|
+
"docs": {
|
|
487
|
+
"tags": [],
|
|
488
|
+
"text": ""
|
|
489
|
+
},
|
|
490
|
+
"attribute": "abort-delete-button-text",
|
|
491
|
+
"reflect": false,
|
|
492
|
+
"defaultValue": "null"
|
|
493
|
+
},
|
|
494
|
+
"fristInputLabel": {
|
|
495
|
+
"type": "string",
|
|
496
|
+
"mutable": false,
|
|
497
|
+
"complexType": {
|
|
498
|
+
"original": "string",
|
|
499
|
+
"resolved": "string",
|
|
500
|
+
"references": {}
|
|
501
|
+
},
|
|
502
|
+
"required": false,
|
|
503
|
+
"optional": false,
|
|
504
|
+
"docs": {
|
|
505
|
+
"tags": [],
|
|
506
|
+
"text": ""
|
|
507
|
+
},
|
|
508
|
+
"attribute": "frist-input-label",
|
|
509
|
+
"reflect": false,
|
|
510
|
+
"defaultValue": "null"
|
|
511
|
+
},
|
|
512
|
+
"fristInputPlaceholder": {
|
|
513
|
+
"type": "string",
|
|
514
|
+
"mutable": false,
|
|
515
|
+
"complexType": {
|
|
516
|
+
"original": "string",
|
|
517
|
+
"resolved": "string",
|
|
518
|
+
"references": {}
|
|
519
|
+
},
|
|
520
|
+
"required": false,
|
|
521
|
+
"optional": false,
|
|
522
|
+
"docs": {
|
|
523
|
+
"tags": [],
|
|
524
|
+
"text": ""
|
|
525
|
+
},
|
|
526
|
+
"attribute": "frist-input-placeholder",
|
|
527
|
+
"reflect": false,
|
|
528
|
+
"defaultValue": "null"
|
|
529
|
+
},
|
|
530
|
+
"firstInputMin": {
|
|
531
|
+
"type": "number",
|
|
532
|
+
"mutable": false,
|
|
533
|
+
"complexType": {
|
|
534
|
+
"original": "number",
|
|
535
|
+
"resolved": "number",
|
|
536
|
+
"references": {}
|
|
537
|
+
},
|
|
538
|
+
"required": false,
|
|
539
|
+
"optional": false,
|
|
540
|
+
"docs": {
|
|
541
|
+
"tags": [],
|
|
542
|
+
"text": ""
|
|
543
|
+
},
|
|
544
|
+
"attribute": "first-input-min",
|
|
545
|
+
"reflect": false,
|
|
546
|
+
"defaultValue": "null"
|
|
547
|
+
},
|
|
548
|
+
"firstInputMax": {
|
|
549
|
+
"type": "number",
|
|
550
|
+
"mutable": false,
|
|
551
|
+
"complexType": {
|
|
552
|
+
"original": "number",
|
|
553
|
+
"resolved": "number",
|
|
554
|
+
"references": {}
|
|
555
|
+
},
|
|
556
|
+
"required": false,
|
|
557
|
+
"optional": false,
|
|
558
|
+
"docs": {
|
|
559
|
+
"tags": [],
|
|
560
|
+
"text": ""
|
|
561
|
+
},
|
|
562
|
+
"attribute": "first-input-max",
|
|
563
|
+
"reflect": false,
|
|
564
|
+
"defaultValue": "null"
|
|
565
|
+
},
|
|
566
|
+
"firstInputWarning": {
|
|
567
|
+
"type": "number",
|
|
568
|
+
"mutable": false,
|
|
569
|
+
"complexType": {
|
|
570
|
+
"original": "number",
|
|
571
|
+
"resolved": "number",
|
|
572
|
+
"references": {}
|
|
573
|
+
},
|
|
574
|
+
"required": false,
|
|
575
|
+
"optional": false,
|
|
576
|
+
"docs": {
|
|
577
|
+
"tags": [],
|
|
578
|
+
"text": ""
|
|
579
|
+
},
|
|
580
|
+
"attribute": "first-input-warning",
|
|
581
|
+
"reflect": false,
|
|
582
|
+
"defaultValue": "null"
|
|
583
|
+
},
|
|
584
|
+
"firstInputWarningText": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"mutable": false,
|
|
587
|
+
"complexType": {
|
|
588
|
+
"original": "string",
|
|
589
|
+
"resolved": "string",
|
|
590
|
+
"references": {}
|
|
591
|
+
},
|
|
592
|
+
"required": false,
|
|
593
|
+
"optional": false,
|
|
594
|
+
"docs": {
|
|
595
|
+
"tags": [],
|
|
596
|
+
"text": ""
|
|
597
|
+
},
|
|
598
|
+
"attribute": "first-input-warning-text",
|
|
599
|
+
"reflect": false,
|
|
600
|
+
"defaultValue": "null"
|
|
601
|
+
},
|
|
602
|
+
"firstInputLowErrorText": {
|
|
603
|
+
"type": "string",
|
|
604
|
+
"mutable": false,
|
|
605
|
+
"complexType": {
|
|
606
|
+
"original": "string",
|
|
607
|
+
"resolved": "string",
|
|
608
|
+
"references": {}
|
|
609
|
+
},
|
|
610
|
+
"required": false,
|
|
611
|
+
"optional": false,
|
|
612
|
+
"docs": {
|
|
613
|
+
"tags": [],
|
|
614
|
+
"text": ""
|
|
615
|
+
},
|
|
616
|
+
"attribute": "first-input-low-error-text",
|
|
617
|
+
"reflect": false,
|
|
618
|
+
"defaultValue": "null"
|
|
619
|
+
},
|
|
620
|
+
"firstInputHighErrorText": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"mutable": false,
|
|
623
|
+
"complexType": {
|
|
624
|
+
"original": "string",
|
|
625
|
+
"resolved": "string",
|
|
626
|
+
"references": {}
|
|
627
|
+
},
|
|
628
|
+
"required": false,
|
|
629
|
+
"optional": false,
|
|
630
|
+
"docs": {
|
|
631
|
+
"tags": [],
|
|
632
|
+
"text": ""
|
|
633
|
+
},
|
|
634
|
+
"attribute": "first-input-high-error-text",
|
|
635
|
+
"reflect": false,
|
|
636
|
+
"defaultValue": "null"
|
|
637
|
+
},
|
|
638
|
+
"secondInputLabel": {
|
|
639
|
+
"type": "string",
|
|
640
|
+
"mutable": false,
|
|
641
|
+
"complexType": {
|
|
642
|
+
"original": "string",
|
|
643
|
+
"resolved": "string",
|
|
644
|
+
"references": {}
|
|
645
|
+
},
|
|
646
|
+
"required": false,
|
|
647
|
+
"optional": false,
|
|
648
|
+
"docs": {
|
|
649
|
+
"tags": [],
|
|
650
|
+
"text": ""
|
|
651
|
+
},
|
|
652
|
+
"attribute": "second-input-label",
|
|
653
|
+
"reflect": false,
|
|
654
|
+
"defaultValue": "null"
|
|
655
|
+
},
|
|
656
|
+
"secondInputPlaceholder": {
|
|
657
|
+
"type": "string",
|
|
658
|
+
"mutable": false,
|
|
659
|
+
"complexType": {
|
|
660
|
+
"original": "string",
|
|
661
|
+
"resolved": "string",
|
|
662
|
+
"references": {}
|
|
663
|
+
},
|
|
664
|
+
"required": false,
|
|
665
|
+
"optional": false,
|
|
666
|
+
"docs": {
|
|
667
|
+
"tags": [],
|
|
668
|
+
"text": ""
|
|
669
|
+
},
|
|
670
|
+
"attribute": "second-input-placeholder",
|
|
671
|
+
"reflect": false,
|
|
672
|
+
"defaultValue": "null"
|
|
673
|
+
},
|
|
674
|
+
"secondInputMin": {
|
|
675
|
+
"type": "number",
|
|
676
|
+
"mutable": false,
|
|
677
|
+
"complexType": {
|
|
678
|
+
"original": "number",
|
|
679
|
+
"resolved": "number",
|
|
680
|
+
"references": {}
|
|
681
|
+
},
|
|
682
|
+
"required": false,
|
|
683
|
+
"optional": false,
|
|
684
|
+
"docs": {
|
|
685
|
+
"tags": [],
|
|
686
|
+
"text": ""
|
|
687
|
+
},
|
|
688
|
+
"attribute": "second-input-min",
|
|
689
|
+
"reflect": false,
|
|
690
|
+
"defaultValue": "null"
|
|
691
|
+
},
|
|
692
|
+
"secondInputMax": {
|
|
693
|
+
"type": "number",
|
|
694
|
+
"mutable": false,
|
|
695
|
+
"complexType": {
|
|
696
|
+
"original": "number",
|
|
697
|
+
"resolved": "number",
|
|
698
|
+
"references": {}
|
|
699
|
+
},
|
|
700
|
+
"required": false,
|
|
701
|
+
"optional": false,
|
|
702
|
+
"docs": {
|
|
703
|
+
"tags": [],
|
|
704
|
+
"text": ""
|
|
705
|
+
},
|
|
706
|
+
"attribute": "second-input-max",
|
|
707
|
+
"reflect": false,
|
|
708
|
+
"defaultValue": "null"
|
|
709
|
+
},
|
|
710
|
+
"secondInputWarning": {
|
|
711
|
+
"type": "number",
|
|
712
|
+
"mutable": false,
|
|
713
|
+
"complexType": {
|
|
714
|
+
"original": "number",
|
|
715
|
+
"resolved": "number",
|
|
716
|
+
"references": {}
|
|
717
|
+
},
|
|
718
|
+
"required": false,
|
|
719
|
+
"optional": false,
|
|
720
|
+
"docs": {
|
|
721
|
+
"tags": [],
|
|
722
|
+
"text": ""
|
|
723
|
+
},
|
|
724
|
+
"attribute": "second-input-warning",
|
|
725
|
+
"reflect": false,
|
|
726
|
+
"defaultValue": "null"
|
|
727
|
+
},
|
|
728
|
+
"secondInputWarningText": {
|
|
729
|
+
"type": "string",
|
|
730
|
+
"mutable": false,
|
|
731
|
+
"complexType": {
|
|
732
|
+
"original": "string",
|
|
733
|
+
"resolved": "string",
|
|
734
|
+
"references": {}
|
|
735
|
+
},
|
|
736
|
+
"required": false,
|
|
737
|
+
"optional": false,
|
|
738
|
+
"docs": {
|
|
739
|
+
"tags": [],
|
|
740
|
+
"text": ""
|
|
741
|
+
},
|
|
742
|
+
"attribute": "second-input-warning-text",
|
|
743
|
+
"reflect": false,
|
|
744
|
+
"defaultValue": "null"
|
|
745
|
+
},
|
|
746
|
+
"secondInputLowErrorText": {
|
|
747
|
+
"type": "string",
|
|
748
|
+
"mutable": false,
|
|
749
|
+
"complexType": {
|
|
750
|
+
"original": "string",
|
|
751
|
+
"resolved": "string",
|
|
752
|
+
"references": {}
|
|
753
|
+
},
|
|
754
|
+
"required": false,
|
|
755
|
+
"optional": false,
|
|
756
|
+
"docs": {
|
|
757
|
+
"tags": [],
|
|
758
|
+
"text": ""
|
|
759
|
+
},
|
|
760
|
+
"attribute": "second-input-low-error-text",
|
|
761
|
+
"reflect": false,
|
|
762
|
+
"defaultValue": "null"
|
|
763
|
+
},
|
|
764
|
+
"secondInputHighErrorText": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"mutable": false,
|
|
767
|
+
"complexType": {
|
|
768
|
+
"original": "string",
|
|
769
|
+
"resolved": "string",
|
|
770
|
+
"references": {}
|
|
771
|
+
},
|
|
772
|
+
"required": false,
|
|
773
|
+
"optional": false,
|
|
774
|
+
"docs": {
|
|
775
|
+
"tags": [],
|
|
776
|
+
"text": ""
|
|
777
|
+
},
|
|
778
|
+
"attribute": "second-input-high-error-text",
|
|
779
|
+
"reflect": false,
|
|
780
|
+
"defaultValue": "null"
|
|
781
|
+
},
|
|
782
|
+
"dateLabel": {
|
|
783
|
+
"type": "string",
|
|
784
|
+
"mutable": false,
|
|
785
|
+
"complexType": {
|
|
786
|
+
"original": "string",
|
|
787
|
+
"resolved": "string",
|
|
788
|
+
"references": {}
|
|
789
|
+
},
|
|
790
|
+
"required": false,
|
|
791
|
+
"optional": false,
|
|
792
|
+
"docs": {
|
|
793
|
+
"tags": [],
|
|
794
|
+
"text": ""
|
|
795
|
+
},
|
|
796
|
+
"attribute": "date-label",
|
|
797
|
+
"reflect": false,
|
|
798
|
+
"defaultValue": "null"
|
|
799
|
+
},
|
|
800
|
+
"datePlaceholder": {
|
|
801
|
+
"type": "string",
|
|
802
|
+
"mutable": false,
|
|
803
|
+
"complexType": {
|
|
804
|
+
"original": "string",
|
|
805
|
+
"resolved": "string",
|
|
806
|
+
"references": {}
|
|
807
|
+
},
|
|
808
|
+
"required": false,
|
|
809
|
+
"optional": false,
|
|
810
|
+
"docs": {
|
|
811
|
+
"tags": [],
|
|
812
|
+
"text": ""
|
|
813
|
+
},
|
|
814
|
+
"attribute": "date-placeholder",
|
|
815
|
+
"reflect": false,
|
|
816
|
+
"defaultValue": "null"
|
|
817
|
+
},
|
|
818
|
+
"dateDaysFromToday": {
|
|
819
|
+
"type": "number",
|
|
820
|
+
"mutable": false,
|
|
821
|
+
"complexType": {
|
|
822
|
+
"original": "number",
|
|
823
|
+
"resolved": "number",
|
|
824
|
+
"references": {}
|
|
825
|
+
},
|
|
826
|
+
"required": false,
|
|
827
|
+
"optional": false,
|
|
828
|
+
"docs": {
|
|
829
|
+
"tags": [],
|
|
830
|
+
"text": ""
|
|
831
|
+
},
|
|
832
|
+
"attribute": "date-days-from-today",
|
|
833
|
+
"reflect": false,
|
|
834
|
+
"defaultValue": "1"
|
|
835
|
+
},
|
|
836
|
+
"yearsToAddToEndDate": {
|
|
837
|
+
"type": "number",
|
|
838
|
+
"mutable": false,
|
|
839
|
+
"complexType": {
|
|
840
|
+
"original": "number",
|
|
841
|
+
"resolved": "number",
|
|
842
|
+
"references": {}
|
|
843
|
+
},
|
|
844
|
+
"required": false,
|
|
845
|
+
"optional": false,
|
|
846
|
+
"docs": {
|
|
847
|
+
"tags": [],
|
|
848
|
+
"text": ""
|
|
849
|
+
},
|
|
850
|
+
"attribute": "years-to-add-to-end-date",
|
|
851
|
+
"reflect": false,
|
|
852
|
+
"defaultValue": "null"
|
|
853
|
+
},
|
|
854
|
+
"sumFieldLabel": {
|
|
855
|
+
"type": "string",
|
|
856
|
+
"mutable": false,
|
|
857
|
+
"complexType": {
|
|
858
|
+
"original": "string",
|
|
859
|
+
"resolved": "string",
|
|
860
|
+
"references": {}
|
|
861
|
+
},
|
|
862
|
+
"required": false,
|
|
863
|
+
"optional": false,
|
|
864
|
+
"docs": {
|
|
865
|
+
"tags": [],
|
|
866
|
+
"text": ""
|
|
867
|
+
},
|
|
868
|
+
"attribute": "sum-field-label",
|
|
869
|
+
"reflect": false,
|
|
870
|
+
"defaultValue": "null"
|
|
871
|
+
},
|
|
872
|
+
"addRowText": {
|
|
873
|
+
"type": "string",
|
|
874
|
+
"mutable": false,
|
|
875
|
+
"complexType": {
|
|
876
|
+
"original": "string",
|
|
877
|
+
"resolved": "string",
|
|
878
|
+
"references": {}
|
|
879
|
+
},
|
|
880
|
+
"required": false,
|
|
881
|
+
"optional": false,
|
|
882
|
+
"docs": {
|
|
883
|
+
"tags": [],
|
|
884
|
+
"text": ""
|
|
885
|
+
},
|
|
886
|
+
"attribute": "add-row-text",
|
|
887
|
+
"reflect": false,
|
|
888
|
+
"defaultValue": "null"
|
|
889
|
+
},
|
|
890
|
+
"elementHelperText": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"mutable": false,
|
|
893
|
+
"complexType": {
|
|
894
|
+
"original": "string",
|
|
895
|
+
"resolved": "string",
|
|
896
|
+
"references": {}
|
|
897
|
+
},
|
|
898
|
+
"required": false,
|
|
899
|
+
"optional": false,
|
|
900
|
+
"docs": {
|
|
901
|
+
"tags": [],
|
|
902
|
+
"text": ""
|
|
903
|
+
},
|
|
904
|
+
"attribute": "element-helper-text",
|
|
905
|
+
"reflect": false,
|
|
906
|
+
"defaultValue": "null"
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
static get states() {
|
|
911
|
+
return {
|
|
912
|
+
"dropdownDataRoot": {},
|
|
913
|
+
"secondDropdownArr": {},
|
|
914
|
+
"rowCount": {},
|
|
915
|
+
"rowData": {},
|
|
916
|
+
"formValues": {},
|
|
917
|
+
"firstValidDateString": {},
|
|
918
|
+
"lastValidDateString": {},
|
|
919
|
+
"rowSum": {},
|
|
920
|
+
"minRowCount": {},
|
|
921
|
+
"showDelteConfirm": {}
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
static get events() {
|
|
925
|
+
return [{
|
|
926
|
+
"method": "allFormValues",
|
|
927
|
+
"name": "allFormValues",
|
|
928
|
+
"bubbles": true,
|
|
929
|
+
"cancelable": true,
|
|
930
|
+
"composed": true,
|
|
931
|
+
"docs": {
|
|
932
|
+
"tags": [],
|
|
933
|
+
"text": ""
|
|
934
|
+
},
|
|
935
|
+
"complexType": {
|
|
936
|
+
"original": "string",
|
|
937
|
+
"resolved": "string",
|
|
938
|
+
"references": {}
|
|
939
|
+
}
|
|
940
|
+
}];
|
|
941
|
+
}
|
|
942
|
+
static get elementRef() { return "hostElement"; }
|
|
943
|
+
static get listeners() {
|
|
944
|
+
return [{
|
|
945
|
+
"name": "rowValueChange",
|
|
946
|
+
"method": "predefinedValueChange",
|
|
947
|
+
"target": undefined,
|
|
948
|
+
"capture": false,
|
|
949
|
+
"passive": false
|
|
950
|
+
}, {
|
|
951
|
+
"name": "firstInputChange",
|
|
952
|
+
"method": "predefinedValueChange",
|
|
953
|
+
"target": undefined,
|
|
954
|
+
"capture": false,
|
|
955
|
+
"passive": false
|
|
956
|
+
}, {
|
|
957
|
+
"name": "secondInputChange",
|
|
958
|
+
"method": "predefinedValueChange",
|
|
959
|
+
"target": undefined,
|
|
960
|
+
"capture": false,
|
|
961
|
+
"passive": false
|
|
962
|
+
}, {
|
|
963
|
+
"name": "deleteRowEvent",
|
|
964
|
+
"method": "deleteRowEvent",
|
|
965
|
+
"target": undefined,
|
|
966
|
+
"capture": false,
|
|
967
|
+
"passive": false
|
|
968
|
+
}];
|
|
969
|
+
}
|
|
970
|
+
}
|