@postnord/pn-marketweb-components 2.4.24 → 2.4.25
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 -8
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +372 -0
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +205 -0
- package/collection/collection-manifest.json +2 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.css +90 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.js +836 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.css +16 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.js +631 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.stories.js +62 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/types.js +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -0
- package/components/pn-filter-checkbox.js +1 -88
- package/components/pn-filter-checkbox2.js +90 -0
- package/components/pn-multi-row-connected-dropdown-row.d.ts +11 -0
- package/components/pn-multi-row-connected-dropdown-row.js +6 -0
- package/components/pn-multi-row-connected-dropdown-row2.js +434 -0
- package/components/pn-multi-row-connected-dropdown.d.ts +11 -0
- package/components/pn-multi-row-connected-dropdown.js +262 -0
- package/esm/index-ee44c065.js +16 -8
- package/esm/loader.js +1 -1
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +368 -0
- package/esm/pn-multi-row-connected-dropdown.entry.js +201 -0
- package/esm-es5/index-ee44c065.js +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -0
- package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -0
- package/package.json +1 -1
- package/pn-market-web-components/p-5d2a19e3.entry.js +1 -0
- package/pn-market-web-components/p-7e81b501.system.entry.js +1 -0
- package/pn-market-web-components/p-83c85053.system.entry.js +1 -0
- package/pn-market-web-components/p-b4416838.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-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.d.ts +93 -0
- package/types/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.d.ts +45 -0
- package/types/components/input/pn-multi-row-connected-dropdown/types.d.ts +32 -0
- package/types/components.d.ts +124 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
pn-multi-row-connected-dropdown {
|
|
2
|
+
gap: 1rem;
|
|
3
|
+
}
|
|
4
|
+
pn-multi-row-connected-dropdown .connected-dropdown__row {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: flex-end;
|
|
7
|
+
gap: 1rem;
|
|
8
|
+
margin-bottom: 1rem;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
}
|
|
11
|
+
pn-multi-row-connected-dropdown .connected-dropdown__row__no-margin {
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
pn-multi-row-connected-dropdown .connected-dropdown__button-right {
|
|
15
|
+
margin-left: auto;
|
|
16
|
+
}
|
|
@@ -0,0 +1,631 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
+
export class PnMultiRowConnectedDropdown {
|
|
4
|
+
constructor() {
|
|
5
|
+
this._buttonValueName = null;
|
|
6
|
+
this._firstDropdownValueName = null;
|
|
7
|
+
this._secondDropdownValueName = null;
|
|
8
|
+
this._inputValueName = null;
|
|
9
|
+
this._dateValueName = null;
|
|
10
|
+
this._defaultRow = {
|
|
11
|
+
id: this.generateUniqueId(),
|
|
12
|
+
buttons: [],
|
|
13
|
+
firstDropdown: [],
|
|
14
|
+
secondDropdown: [],
|
|
15
|
+
input: '',
|
|
16
|
+
dates: '',
|
|
17
|
+
dateRange: {
|
|
18
|
+
days: [],
|
|
19
|
+
startDate: '',
|
|
20
|
+
endDate: '',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
this.dropdownData = null;
|
|
24
|
+
this.languageCode = null;
|
|
25
|
+
this.label = null;
|
|
26
|
+
this.firstDropdownLabel = null;
|
|
27
|
+
this.secondDropdownLabel = null;
|
|
28
|
+
this.dropdownPlaceholder = null;
|
|
29
|
+
this.addRowText = null;
|
|
30
|
+
this.inputFildLabel = null;
|
|
31
|
+
this.inputFildPlaceholder = null;
|
|
32
|
+
this.dateButtonText = null;
|
|
33
|
+
this.datePlaceholder = null;
|
|
34
|
+
this.dateDaysFromToday = null;
|
|
35
|
+
this.allowMultipleRows = false;
|
|
36
|
+
this.allowMultipleDates = false;
|
|
37
|
+
this.startDateLabel = null;
|
|
38
|
+
this.endDateLabel = null;
|
|
39
|
+
this.multiDateHelperText = null;
|
|
40
|
+
this.generateDatesButtonText = null;
|
|
41
|
+
this.saveDateButtonText = null;
|
|
42
|
+
this.noDatesText = null;
|
|
43
|
+
this.yearsToAddToEndDate = null;
|
|
44
|
+
this.rowCount = null;
|
|
45
|
+
this.rowData = null;
|
|
46
|
+
this.formValues = null;
|
|
47
|
+
}
|
|
48
|
+
componentWillLoad() {
|
|
49
|
+
var _a, _b, _c, _d, _e;
|
|
50
|
+
this.setDaysArr();
|
|
51
|
+
this.formValues = [];
|
|
52
|
+
this.rowData = [this._defaultRow];
|
|
53
|
+
this.rowCount = this.rowData.length;
|
|
54
|
+
this._buttonValueName = ((_a = this.label) === null || _a === void 0 ? void 0 : _a.length) ? this.label : 'value0';
|
|
55
|
+
this._firstDropdownValueName = ((_b = this.firstDropdownLabel) === null || _b === void 0 ? void 0 : _b.length) ? this.firstDropdownLabel : 'value1';
|
|
56
|
+
this._secondDropdownValueName = ((_c = this.secondDropdownLabel) === null || _c === void 0 ? void 0 : _c.length) ? this.secondDropdownLabel : 'value2';
|
|
57
|
+
this._inputValueName = ((_d = this.inputFildLabel) === null || _d === void 0 ? void 0 : _d.length) ? this.inputFildLabel : 'value3';
|
|
58
|
+
this._dateValueName = ((_e = this.dateButtonText) === null || _e === void 0 ? void 0 : _e.length) ? this.dateButtonText : 'value4';
|
|
59
|
+
}
|
|
60
|
+
componentDidLoad() { }
|
|
61
|
+
emittValuesIfValid() {
|
|
62
|
+
this.formValues = [];
|
|
63
|
+
this.rowData.forEach(item => {
|
|
64
|
+
const rowValue = { row: [] };
|
|
65
|
+
const buttonSelection = item.buttons.find(x => x.selected === true);
|
|
66
|
+
if (buttonSelection) {
|
|
67
|
+
const buttonValue = { name: this._buttonValueName, value: buttonSelection.caption };
|
|
68
|
+
rowValue.row.push(buttonValue);
|
|
69
|
+
}
|
|
70
|
+
const firstDropdownSelection = item.firstDropdown.find(x => x.selected === true);
|
|
71
|
+
if (firstDropdownSelection) {
|
|
72
|
+
const firstDropdownValue = { name: this._firstDropdownValueName, value: firstDropdownSelection.caption };
|
|
73
|
+
rowValue.row.push(firstDropdownValue);
|
|
74
|
+
}
|
|
75
|
+
const secondDropdownSelection = item.secondDropdown.find(x => x.selected === true);
|
|
76
|
+
if (secondDropdownSelection) {
|
|
77
|
+
const secondDropdownValue = { name: this._secondDropdownValueName, value: secondDropdownSelection.caption };
|
|
78
|
+
rowValue.row.push(secondDropdownValue);
|
|
79
|
+
}
|
|
80
|
+
const input = item.input;
|
|
81
|
+
if (input === null || input === void 0 ? void 0 : input.length) {
|
|
82
|
+
const inputValue = { name: this._inputValueName, value: input };
|
|
83
|
+
rowValue.row.push(inputValue);
|
|
84
|
+
}
|
|
85
|
+
const dates = item.dates;
|
|
86
|
+
if (dates === null || dates === void 0 ? void 0 : dates.length) {
|
|
87
|
+
const datestValue = { name: this._dateValueName, value: dates };
|
|
88
|
+
rowValue.row.push(datestValue);
|
|
89
|
+
}
|
|
90
|
+
if (rowValue.row.length === 5) {
|
|
91
|
+
this.formValues.push(rowValue);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
if (this.formValues.length === this.rowData.length) {
|
|
95
|
+
const valueJsonString = JSON.stringify(this.formValues);
|
|
96
|
+
this.allFormValues.emit(valueJsonString);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
this.allFormValues.emit('');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
predefinedValueChange(e) {
|
|
103
|
+
const indexToUpdate = this.rowData.findIndex(data => data.id === e.detail.id);
|
|
104
|
+
const val = e.detail;
|
|
105
|
+
this.rowData[indexToUpdate] = Object.assign(Object.assign({}, this.rowData[indexToUpdate]), { buttons: val.buttons, firstDropdown: val.firstDropdown, secondDropdown: val.secondDropdown, input: val.input, dates: val.dates, dateRange: val.dateRange });
|
|
106
|
+
this.emittValuesIfValid();
|
|
107
|
+
}
|
|
108
|
+
deleteRowEvent(e) {
|
|
109
|
+
const indexToRemove = this.rowData.findIndex(data => data.id === e.detail);
|
|
110
|
+
this.rowData.splice(indexToRemove, 1);
|
|
111
|
+
this.rowData = [...this.rowData];
|
|
112
|
+
this.rowCount = this.rowData.length;
|
|
113
|
+
this.emittValuesIfValid();
|
|
114
|
+
}
|
|
115
|
+
generateUniqueId() {
|
|
116
|
+
return uuidv4();
|
|
117
|
+
}
|
|
118
|
+
addRow() {
|
|
119
|
+
const newRow = this._defaultRow;
|
|
120
|
+
newRow.id = this.generateUniqueId();
|
|
121
|
+
this.rowData = [...this.rowData, newRow];
|
|
122
|
+
this.rowCount = this.rowData.length;
|
|
123
|
+
}
|
|
124
|
+
setDaysArr() {
|
|
125
|
+
const language = this.languageCode.toLowerCase();
|
|
126
|
+
switch (language) {
|
|
127
|
+
case 'en':
|
|
128
|
+
this._defaultRow.dateRange.days = [
|
|
129
|
+
{ caption: 'Monday', value: '1', selected: false },
|
|
130
|
+
{ caption: 'Tuesday', value: '2', selected: false },
|
|
131
|
+
{ caption: 'Wednesday', value: '3', selected: false },
|
|
132
|
+
{ caption: 'Thursday', value: '4', selected: false },
|
|
133
|
+
{ caption: 'Friday', value: '5', selected: false },
|
|
134
|
+
];
|
|
135
|
+
break;
|
|
136
|
+
case 'sv':
|
|
137
|
+
this._defaultRow.dateRange.days = [
|
|
138
|
+
{ caption: 'Måndag', value: '1', selected: false },
|
|
139
|
+
{ caption: 'Tisdag', value: '2', selected: false },
|
|
140
|
+
{ caption: 'Onsdag', value: '3', selected: false },
|
|
141
|
+
{ caption: 'Torsdag', value: '4', selected: false },
|
|
142
|
+
{ caption: 'Fredag', value: '5', selected: false },
|
|
143
|
+
];
|
|
144
|
+
break;
|
|
145
|
+
case 'da':
|
|
146
|
+
this._defaultRow.dateRange.days = [
|
|
147
|
+
{ caption: 'Mandag', value: '1', selected: false },
|
|
148
|
+
{ caption: 'Tirsdag', value: '2', selected: false },
|
|
149
|
+
{ caption: 'Onsdag', value: '3', selected: false },
|
|
150
|
+
{ caption: 'Torsdag', value: '4', selected: false },
|
|
151
|
+
{ caption: 'Fredag', value: '5', selected: false },
|
|
152
|
+
];
|
|
153
|
+
break;
|
|
154
|
+
case 'fi':
|
|
155
|
+
this._defaultRow.dateRange.days = [
|
|
156
|
+
{ caption: 'Maanantai', value: '1', selected: false },
|
|
157
|
+
{ caption: 'Tiistai', value: '2', selected: false },
|
|
158
|
+
{ caption: 'Keskiviikko', value: '3', selected: false },
|
|
159
|
+
{ caption: 'Torstai', value: '4', selected: false },
|
|
160
|
+
{ caption: 'Perjantai', value: '5', selected: false },
|
|
161
|
+
];
|
|
162
|
+
break;
|
|
163
|
+
case 'no':
|
|
164
|
+
this._defaultRow.dateRange.days = [
|
|
165
|
+
{ caption: 'Mandag', value: '1', selected: false },
|
|
166
|
+
{ caption: 'Tirsdag', value: '2', selected: false },
|
|
167
|
+
{ caption: 'Onsdag', value: '3', selected: false },
|
|
168
|
+
{ caption: 'Torsdag', value: '4', selected: false },
|
|
169
|
+
{ caption: 'Fredag', value: '5', selected: false },
|
|
170
|
+
];
|
|
171
|
+
break;
|
|
172
|
+
default:
|
|
173
|
+
this._defaultRow.dateRange.days = [
|
|
174
|
+
{ caption: 'Monday', value: '1', selected: false },
|
|
175
|
+
{ caption: 'Tuesday', value: '2', selected: false },
|
|
176
|
+
{ caption: 'Wednesday', value: '3', selected: false },
|
|
177
|
+
{ caption: 'Thursday', value: '4', selected: false },
|
|
178
|
+
{ caption: 'Friday', value: '5', selected: false },
|
|
179
|
+
];
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
render() {
|
|
184
|
+
var _a;
|
|
185
|
+
return (h(Host, null, (_a = this.rowData) === null || _a === void 0 ? void 0 :
|
|
186
|
+
_a.map((data, i) => {
|
|
187
|
+
return (h("div", { class: 'generated-row-' + i, id: 'generated-row-connected-dropdown-' + i }, h("pn-multi-row-connected-dropdown-row", { "dropdown-data": this.dropdownData, "language-code": this.languageCode, label: this.label, "first-dropdown-label": this.firstDropdownLabel, "second-dropdown-label": this.secondDropdownLabel, "dropdown-placeholder": this.dropdownPlaceholder, "add-row-text": this.addRowText, "input-fild-label": this.inputFildLabel, "input-fild-placeholder": this.inputFildPlaceholder, "date-button-text": this.dateButtonText, "date-placeholder": this.datePlaceholder, "date-days-from-today": 1, "allow-multiple-dates": this.allowMultipleDates, "start-date-label": this.startDateLabel, "end-date-label": this.endDateLabel, "multi-date-helper-text": this.multiDateHelperText, "generate-dates-button-text": this.generateDatesButtonText, "save-date-button-text": this.saveDateButtonText, "no-dates-text": this.noDatesText, index: i, "predefined-value": JSON.stringify(data), "years-to-add-to-end-date": this.yearsToAddToEndDate })));
|
|
188
|
+
}), this.allowMultipleRows ? (h("div", { class: "connected-dropdown__row" }, 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: () => {
|
|
189
|
+
this.addRow();
|
|
190
|
+
} }, this.addRowText))) : null));
|
|
191
|
+
}
|
|
192
|
+
static get is() { return "pn-multi-row-connected-dropdown"; }
|
|
193
|
+
static get originalStyleUrls() {
|
|
194
|
+
return {
|
|
195
|
+
"$": ["pn-multi-row-connected-dropdown.scss"]
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
static get styleUrls() {
|
|
199
|
+
return {
|
|
200
|
+
"$": ["pn-multi-row-connected-dropdown.css"]
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
static get properties() {
|
|
204
|
+
return {
|
|
205
|
+
"dropdownData": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "string | Root[]",
|
|
210
|
+
"resolved": "Root[] | string",
|
|
211
|
+
"references": {
|
|
212
|
+
"Root": {
|
|
213
|
+
"location": "import",
|
|
214
|
+
"path": "./types"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": false,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [],
|
|
222
|
+
"text": ""
|
|
223
|
+
},
|
|
224
|
+
"attribute": "dropdown-data",
|
|
225
|
+
"reflect": false,
|
|
226
|
+
"defaultValue": "null"
|
|
227
|
+
},
|
|
228
|
+
"languageCode": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"mutable": false,
|
|
231
|
+
"complexType": {
|
|
232
|
+
"original": "string",
|
|
233
|
+
"resolved": "string",
|
|
234
|
+
"references": {}
|
|
235
|
+
},
|
|
236
|
+
"required": false,
|
|
237
|
+
"optional": false,
|
|
238
|
+
"docs": {
|
|
239
|
+
"tags": [],
|
|
240
|
+
"text": ""
|
|
241
|
+
},
|
|
242
|
+
"attribute": "language-code",
|
|
243
|
+
"reflect": false,
|
|
244
|
+
"defaultValue": "null"
|
|
245
|
+
},
|
|
246
|
+
"label": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"mutable": false,
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "string",
|
|
251
|
+
"resolved": "string",
|
|
252
|
+
"references": {}
|
|
253
|
+
},
|
|
254
|
+
"required": false,
|
|
255
|
+
"optional": false,
|
|
256
|
+
"docs": {
|
|
257
|
+
"tags": [],
|
|
258
|
+
"text": ""
|
|
259
|
+
},
|
|
260
|
+
"attribute": "label",
|
|
261
|
+
"reflect": false,
|
|
262
|
+
"defaultValue": "null"
|
|
263
|
+
},
|
|
264
|
+
"firstDropdownLabel": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"mutable": false,
|
|
267
|
+
"complexType": {
|
|
268
|
+
"original": "string",
|
|
269
|
+
"resolved": "string",
|
|
270
|
+
"references": {}
|
|
271
|
+
},
|
|
272
|
+
"required": false,
|
|
273
|
+
"optional": false,
|
|
274
|
+
"docs": {
|
|
275
|
+
"tags": [],
|
|
276
|
+
"text": ""
|
|
277
|
+
},
|
|
278
|
+
"attribute": "first-dropdown-label",
|
|
279
|
+
"reflect": false,
|
|
280
|
+
"defaultValue": "null"
|
|
281
|
+
},
|
|
282
|
+
"secondDropdownLabel": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"mutable": false,
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "string",
|
|
287
|
+
"resolved": "string",
|
|
288
|
+
"references": {}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": false,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": ""
|
|
295
|
+
},
|
|
296
|
+
"attribute": "second-dropdown-label",
|
|
297
|
+
"reflect": false,
|
|
298
|
+
"defaultValue": "null"
|
|
299
|
+
},
|
|
300
|
+
"dropdownPlaceholder": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"mutable": false,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "string",
|
|
305
|
+
"resolved": "string",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": false,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": ""
|
|
313
|
+
},
|
|
314
|
+
"attribute": "dropdown-placeholder",
|
|
315
|
+
"reflect": false,
|
|
316
|
+
"defaultValue": "null"
|
|
317
|
+
},
|
|
318
|
+
"addRowText": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"mutable": false,
|
|
321
|
+
"complexType": {
|
|
322
|
+
"original": "string",
|
|
323
|
+
"resolved": "string",
|
|
324
|
+
"references": {}
|
|
325
|
+
},
|
|
326
|
+
"required": false,
|
|
327
|
+
"optional": false,
|
|
328
|
+
"docs": {
|
|
329
|
+
"tags": [],
|
|
330
|
+
"text": ""
|
|
331
|
+
},
|
|
332
|
+
"attribute": "add-row-text",
|
|
333
|
+
"reflect": false,
|
|
334
|
+
"defaultValue": "null"
|
|
335
|
+
},
|
|
336
|
+
"inputFildLabel": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"mutable": false,
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "string",
|
|
341
|
+
"resolved": "string",
|
|
342
|
+
"references": {}
|
|
343
|
+
},
|
|
344
|
+
"required": false,
|
|
345
|
+
"optional": false,
|
|
346
|
+
"docs": {
|
|
347
|
+
"tags": [],
|
|
348
|
+
"text": ""
|
|
349
|
+
},
|
|
350
|
+
"attribute": "input-fild-label",
|
|
351
|
+
"reflect": false,
|
|
352
|
+
"defaultValue": "null"
|
|
353
|
+
},
|
|
354
|
+
"inputFildPlaceholder": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "string",
|
|
359
|
+
"resolved": "string",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": false,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": ""
|
|
367
|
+
},
|
|
368
|
+
"attribute": "input-fild-placeholder",
|
|
369
|
+
"reflect": false,
|
|
370
|
+
"defaultValue": "null"
|
|
371
|
+
},
|
|
372
|
+
"dateButtonText": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"mutable": false,
|
|
375
|
+
"complexType": {
|
|
376
|
+
"original": "string",
|
|
377
|
+
"resolved": "string",
|
|
378
|
+
"references": {}
|
|
379
|
+
},
|
|
380
|
+
"required": false,
|
|
381
|
+
"optional": false,
|
|
382
|
+
"docs": {
|
|
383
|
+
"tags": [],
|
|
384
|
+
"text": ""
|
|
385
|
+
},
|
|
386
|
+
"attribute": "date-button-text",
|
|
387
|
+
"reflect": false,
|
|
388
|
+
"defaultValue": "null"
|
|
389
|
+
},
|
|
390
|
+
"datePlaceholder": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"mutable": false,
|
|
393
|
+
"complexType": {
|
|
394
|
+
"original": "string",
|
|
395
|
+
"resolved": "string",
|
|
396
|
+
"references": {}
|
|
397
|
+
},
|
|
398
|
+
"required": false,
|
|
399
|
+
"optional": false,
|
|
400
|
+
"docs": {
|
|
401
|
+
"tags": [],
|
|
402
|
+
"text": ""
|
|
403
|
+
},
|
|
404
|
+
"attribute": "date-placeholder",
|
|
405
|
+
"reflect": false,
|
|
406
|
+
"defaultValue": "null"
|
|
407
|
+
},
|
|
408
|
+
"dateDaysFromToday": {
|
|
409
|
+
"type": "number",
|
|
410
|
+
"mutable": false,
|
|
411
|
+
"complexType": {
|
|
412
|
+
"original": "number",
|
|
413
|
+
"resolved": "number",
|
|
414
|
+
"references": {}
|
|
415
|
+
},
|
|
416
|
+
"required": false,
|
|
417
|
+
"optional": false,
|
|
418
|
+
"docs": {
|
|
419
|
+
"tags": [],
|
|
420
|
+
"text": ""
|
|
421
|
+
},
|
|
422
|
+
"attribute": "date-days-from-today",
|
|
423
|
+
"reflect": false,
|
|
424
|
+
"defaultValue": "null"
|
|
425
|
+
},
|
|
426
|
+
"allowMultipleRows": {
|
|
427
|
+
"type": "boolean",
|
|
428
|
+
"mutable": false,
|
|
429
|
+
"complexType": {
|
|
430
|
+
"original": "boolean",
|
|
431
|
+
"resolved": "boolean",
|
|
432
|
+
"references": {}
|
|
433
|
+
},
|
|
434
|
+
"required": false,
|
|
435
|
+
"optional": false,
|
|
436
|
+
"docs": {
|
|
437
|
+
"tags": [],
|
|
438
|
+
"text": ""
|
|
439
|
+
},
|
|
440
|
+
"attribute": "allow-multiple-rows",
|
|
441
|
+
"reflect": false,
|
|
442
|
+
"defaultValue": "false"
|
|
443
|
+
},
|
|
444
|
+
"allowMultipleDates": {
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"mutable": false,
|
|
447
|
+
"complexType": {
|
|
448
|
+
"original": "boolean",
|
|
449
|
+
"resolved": "boolean",
|
|
450
|
+
"references": {}
|
|
451
|
+
},
|
|
452
|
+
"required": false,
|
|
453
|
+
"optional": false,
|
|
454
|
+
"docs": {
|
|
455
|
+
"tags": [],
|
|
456
|
+
"text": ""
|
|
457
|
+
},
|
|
458
|
+
"attribute": "allow-multiple-dates",
|
|
459
|
+
"reflect": false,
|
|
460
|
+
"defaultValue": "false"
|
|
461
|
+
},
|
|
462
|
+
"startDateLabel": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"mutable": false,
|
|
465
|
+
"complexType": {
|
|
466
|
+
"original": "string",
|
|
467
|
+
"resolved": "string",
|
|
468
|
+
"references": {}
|
|
469
|
+
},
|
|
470
|
+
"required": false,
|
|
471
|
+
"optional": false,
|
|
472
|
+
"docs": {
|
|
473
|
+
"tags": [],
|
|
474
|
+
"text": ""
|
|
475
|
+
},
|
|
476
|
+
"attribute": "start-date-label",
|
|
477
|
+
"reflect": false,
|
|
478
|
+
"defaultValue": "null"
|
|
479
|
+
},
|
|
480
|
+
"endDateLabel": {
|
|
481
|
+
"type": "string",
|
|
482
|
+
"mutable": false,
|
|
483
|
+
"complexType": {
|
|
484
|
+
"original": "string",
|
|
485
|
+
"resolved": "string",
|
|
486
|
+
"references": {}
|
|
487
|
+
},
|
|
488
|
+
"required": false,
|
|
489
|
+
"optional": false,
|
|
490
|
+
"docs": {
|
|
491
|
+
"tags": [],
|
|
492
|
+
"text": ""
|
|
493
|
+
},
|
|
494
|
+
"attribute": "end-date-label",
|
|
495
|
+
"reflect": false,
|
|
496
|
+
"defaultValue": "null"
|
|
497
|
+
},
|
|
498
|
+
"multiDateHelperText": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"mutable": false,
|
|
501
|
+
"complexType": {
|
|
502
|
+
"original": "string",
|
|
503
|
+
"resolved": "string",
|
|
504
|
+
"references": {}
|
|
505
|
+
},
|
|
506
|
+
"required": false,
|
|
507
|
+
"optional": false,
|
|
508
|
+
"docs": {
|
|
509
|
+
"tags": [],
|
|
510
|
+
"text": ""
|
|
511
|
+
},
|
|
512
|
+
"attribute": "multi-date-helper-text",
|
|
513
|
+
"reflect": false,
|
|
514
|
+
"defaultValue": "null"
|
|
515
|
+
},
|
|
516
|
+
"generateDatesButtonText": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"mutable": false,
|
|
519
|
+
"complexType": {
|
|
520
|
+
"original": "string",
|
|
521
|
+
"resolved": "string",
|
|
522
|
+
"references": {}
|
|
523
|
+
},
|
|
524
|
+
"required": false,
|
|
525
|
+
"optional": false,
|
|
526
|
+
"docs": {
|
|
527
|
+
"tags": [],
|
|
528
|
+
"text": ""
|
|
529
|
+
},
|
|
530
|
+
"attribute": "generate-dates-button-text",
|
|
531
|
+
"reflect": false,
|
|
532
|
+
"defaultValue": "null"
|
|
533
|
+
},
|
|
534
|
+
"saveDateButtonText": {
|
|
535
|
+
"type": "string",
|
|
536
|
+
"mutable": false,
|
|
537
|
+
"complexType": {
|
|
538
|
+
"original": "string",
|
|
539
|
+
"resolved": "string",
|
|
540
|
+
"references": {}
|
|
541
|
+
},
|
|
542
|
+
"required": false,
|
|
543
|
+
"optional": false,
|
|
544
|
+
"docs": {
|
|
545
|
+
"tags": [],
|
|
546
|
+
"text": ""
|
|
547
|
+
},
|
|
548
|
+
"attribute": "save-date-button-text",
|
|
549
|
+
"reflect": false,
|
|
550
|
+
"defaultValue": "null"
|
|
551
|
+
},
|
|
552
|
+
"noDatesText": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"mutable": false,
|
|
555
|
+
"complexType": {
|
|
556
|
+
"original": "string",
|
|
557
|
+
"resolved": "string",
|
|
558
|
+
"references": {}
|
|
559
|
+
},
|
|
560
|
+
"required": false,
|
|
561
|
+
"optional": false,
|
|
562
|
+
"docs": {
|
|
563
|
+
"tags": [],
|
|
564
|
+
"text": ""
|
|
565
|
+
},
|
|
566
|
+
"attribute": "no-dates-text",
|
|
567
|
+
"reflect": false,
|
|
568
|
+
"defaultValue": "null"
|
|
569
|
+
},
|
|
570
|
+
"yearsToAddToEndDate": {
|
|
571
|
+
"type": "number",
|
|
572
|
+
"mutable": false,
|
|
573
|
+
"complexType": {
|
|
574
|
+
"original": "number",
|
|
575
|
+
"resolved": "number",
|
|
576
|
+
"references": {}
|
|
577
|
+
},
|
|
578
|
+
"required": false,
|
|
579
|
+
"optional": false,
|
|
580
|
+
"docs": {
|
|
581
|
+
"tags": [],
|
|
582
|
+
"text": ""
|
|
583
|
+
},
|
|
584
|
+
"attribute": "years-to-add-to-end-date",
|
|
585
|
+
"reflect": false,
|
|
586
|
+
"defaultValue": "null"
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
static get states() {
|
|
591
|
+
return {
|
|
592
|
+
"rowCount": {},
|
|
593
|
+
"rowData": {},
|
|
594
|
+
"formValues": {}
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
static get events() {
|
|
598
|
+
return [{
|
|
599
|
+
"method": "allFormValues",
|
|
600
|
+
"name": "allFormValues",
|
|
601
|
+
"bubbles": true,
|
|
602
|
+
"cancelable": true,
|
|
603
|
+
"composed": true,
|
|
604
|
+
"docs": {
|
|
605
|
+
"tags": [],
|
|
606
|
+
"text": ""
|
|
607
|
+
},
|
|
608
|
+
"complexType": {
|
|
609
|
+
"original": "string",
|
|
610
|
+
"resolved": "string",
|
|
611
|
+
"references": {}
|
|
612
|
+
}
|
|
613
|
+
}];
|
|
614
|
+
}
|
|
615
|
+
static get elementRef() { return "hostElement"; }
|
|
616
|
+
static get listeners() {
|
|
617
|
+
return [{
|
|
618
|
+
"name": "rowValueChange",
|
|
619
|
+
"method": "predefinedValueChange",
|
|
620
|
+
"target": undefined,
|
|
621
|
+
"capture": false,
|
|
622
|
+
"passive": false
|
|
623
|
+
}, {
|
|
624
|
+
"name": "deleteRowEvent",
|
|
625
|
+
"method": "deleteRowEvent",
|
|
626
|
+
"target": undefined,
|
|
627
|
+
"capture": false,
|
|
628
|
+
"passive": false
|
|
629
|
+
}];
|
|
630
|
+
}
|
|
631
|
+
}
|