@postnord/pn-marketweb-components 2.4.27 → 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.
Files changed (55) hide show
  1. package/cjs/index-4199ff85.js +16 -4
  2. package/cjs/loader.cjs.js +1 -1
  3. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +183 -0
  4. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +309 -0
  5. package/cjs/pn-market-web-components.cjs.js +1 -1
  6. package/cjs/pn-multiple-input.cjs.entry.js +105 -0
  7. package/collection/collection-manifest.json +3 -0
  8. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.css +27 -0
  9. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.js +673 -0
  10. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.css +26 -0
  11. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.js +970 -0
  12. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.stories.js +86 -0
  13. package/collection/components/input/pn-dropdown-with-multi-input-rows/types.js +1 -0
  14. package/collection/components/input/pn-multiple-input/pn-multiple-input.css +16 -0
  15. package/collection/components/input/pn-multiple-input/pn-multiple-input.js +185 -0
  16. package/collection/components/input/pn-multiple-input/pn-multiple-input.stories.js +24 -0
  17. package/collection/components/input/pn-multiple-input/types.js +1 -0
  18. package/components/index.d.ts +3 -0
  19. package/components/index.js +3 -0
  20. package/components/pn-dropdown-with-multi-input-rows-row.d.ts +11 -0
  21. package/components/pn-dropdown-with-multi-input-rows-row.js +6 -0
  22. package/components/pn-dropdown-with-multi-input-rows-row2.js +232 -0
  23. package/components/pn-dropdown-with-multi-input-rows.d.ts +11 -0
  24. package/components/pn-dropdown-with-multi-input-rows.js +379 -0
  25. package/components/pn-multiple-input.d.ts +11 -0
  26. package/components/pn-multiple-input.js +130 -0
  27. package/esm/index-ee44c065.js +16 -4
  28. package/esm/loader.js +1 -1
  29. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +179 -0
  30. package/esm/pn-dropdown-with-multi-input-rows.entry.js +305 -0
  31. package/esm/pn-market-web-components.js +1 -1
  32. package/esm/pn-multiple-input.entry.js +101 -0
  33. package/esm-es5/index-ee44c065.js +1 -1
  34. package/esm-es5/loader.js +1 -1
  35. package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -0
  36. package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -0
  37. package/esm-es5/pn-market-web-components.js +1 -1
  38. package/esm-es5/pn-multiple-input.entry.js +1 -0
  39. package/package.json +1 -1
  40. package/pn-market-web-components/p-313658e7.entry.js +1 -0
  41. package/pn-market-web-components/p-47239bce.system.entry.js +1 -0
  42. package/pn-market-web-components/p-52e8d0ec.system.entry.js +1 -0
  43. package/pn-market-web-components/p-7787ca3b.entry.js +1 -0
  44. package/pn-market-web-components/p-ad952e14.system.entry.js +1 -0
  45. package/pn-market-web-components/p-e05b6e0c.entry.js +1 -0
  46. package/pn-market-web-components/p-fcdb7381.system.js +1 -1
  47. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  48. package/types/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.d.ts +59 -0
  49. package/types/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.d.ts +77 -0
  50. package/types/components/input/pn-dropdown-with-multi-input-rows/types.d.ts +18 -0
  51. package/types/components/input/pn-multiple-input/pn-multiple-input.d.ts +22 -0
  52. package/types/components/input/pn-multiple-input/types.d.ts +11 -0
  53. package/types/components.d.ts +180 -6
  54. package/umd/modules/@postnord/web-components/package.json +32 -62
  55. package/umd/modules/@webcomponents/custom-elements/package.json +23 -58
@@ -0,0 +1,673 @@
1
+ import { h, Host } from '@stencil/core';
2
+ import { debounce } from 'debounce';
3
+ export class PnDropdownWithMultiInputRowsRow {
4
+ constructor() {
5
+ this.pnFirstInputField = null;
6
+ this.pnSecondInputField = null;
7
+ this.pnDatePicker = null;
8
+ this.pnDeleteRowButton = null;
9
+ this.languageCode = null;
10
+ this.fristInputPlaceholder = null;
11
+ this.firstInputMin = null;
12
+ this.firstInputMax = null;
13
+ this.firstInputWarning = null;
14
+ this.firstInputWarningText = null;
15
+ this.firstInputLowErrorText = null;
16
+ this.firstInputHighErrorText = null;
17
+ this.secondInputPlaceholder = null;
18
+ this.secondInputMin = null;
19
+ this.secondInputMax = null;
20
+ this.secondInputWarning = null;
21
+ this.secondInputWarningText = null;
22
+ this.secondInputLowErrorText = null;
23
+ this.secondInputHighErrorText = null;
24
+ this.dateLabel = null;
25
+ this.datePlaceholder = null;
26
+ this.firstValidDate = null;
27
+ this.lastValidDate = null;
28
+ this.predefinedValue = null;
29
+ this.rowIndex = null;
30
+ this.minRowCount = null;
31
+ this.showFirstInputWarning = false;
32
+ this.showFirstInputLowError = false;
33
+ this.showFirstInputHighError = false;
34
+ this.showSecondInputWarning = false;
35
+ this.showSecondInputLowError = false;
36
+ this.showSecondInputHighError = false;
37
+ this.firstInputValue = '';
38
+ this.secondInputValue = '';
39
+ this.dateValue = '';
40
+ }
41
+ componentWillLoad() {
42
+ this.getPredefinedValues();
43
+ this.setInitialValues();
44
+ }
45
+ componentDidLoad() {
46
+ this.addEventHandlers();
47
+ }
48
+ getPredefinedValues() {
49
+ this._predefinedValue = JSON.parse(this.predefinedValue);
50
+ }
51
+ applyPredefinedValue() {
52
+ var _a, _b;
53
+ this.getPredefinedValues();
54
+ this.setInitialValues();
55
+ if ((_a = this.firstInputValue) === null || _a === void 0 ? void 0 : _a.length) {
56
+ this.validateFirstInput(parseInt(this.firstInputValue));
57
+ }
58
+ if ((_b = this.secondInputValue) === null || _b === void 0 ? void 0 : _b.length) {
59
+ this.validateSecondInput(parseInt(this.secondInputValue));
60
+ }
61
+ if (this.rowIndex >= this.minRowCount) {
62
+ this.pnDeleteRowButton.addEventListener('click', this.deleteRow.bind(this));
63
+ }
64
+ }
65
+ setInitialValues() {
66
+ this.firstInputValue = this._predefinedValue.firstInput;
67
+ this.secondInputValue = this._predefinedValue.secondInput;
68
+ this.dateValue = this._predefinedValue.date;
69
+ }
70
+ addEventHandlers() {
71
+ const emmitValues = debounce(this.emitRowValues.bind(this), 500);
72
+ this.pnFirstInputField.addEventListener('keyup', debounce(this.handleFirstInput.bind(this), 500));
73
+ this.pnSecondInputField.addEventListener('keyup', debounce(this.handleSecondInput.bind(this), 500));
74
+ this.pnDatePicker.addEventListener('dateselection', this.handleDateChange.bind(this));
75
+ this.pnDatePicker.addEventListener('dateselection', emmitValues);
76
+ }
77
+ handleFirstInput(e) {
78
+ const elm = e.target;
79
+ const value = parseInt(elm.value);
80
+ if (value > 0) {
81
+ this.firstInputValue = elm.value;
82
+ this.firstInputChange.emit({
83
+ id: this._predefinedValue.id,
84
+ firstInput: this.firstInputValue,
85
+ secondInput: this.secondInputValue,
86
+ date: this.dateValue,
87
+ });
88
+ }
89
+ this.validateFirstInput(value);
90
+ this.emitRowValues();
91
+ }
92
+ handleSecondInput(e) {
93
+ const elm = e.target;
94
+ const value = parseInt(elm.value);
95
+ if (value > 0) {
96
+ this.secondInputValue = elm.value;
97
+ this.secondInputChange.emit({
98
+ id: this._predefinedValue.id,
99
+ firstInput: this.firstInputValue,
100
+ secondInput: this.secondInputValue,
101
+ date: this.dateValue,
102
+ });
103
+ }
104
+ this.validateSecondInput(value);
105
+ this.emitRowValues();
106
+ }
107
+ validateFirstInput(input) {
108
+ this.showFirstInputWarning = false;
109
+ this.showFirstInputLowError = false;
110
+ this.showFirstInputHighError = false;
111
+ if (input < this.firstInputWarning) {
112
+ this.showFirstInputWarning = true;
113
+ }
114
+ if (input < this.firstInputMin) {
115
+ this.showFirstInputWarning = false;
116
+ this.showFirstInputLowError = true;
117
+ }
118
+ if (input > this.firstInputMax) {
119
+ this.showFirstInputWarning = false;
120
+ this.showFirstInputLowError = false;
121
+ this.showFirstInputHighError = true;
122
+ }
123
+ }
124
+ validateSecondInput(input) {
125
+ this.showSecondInputWarning = false;
126
+ this.showSecondInputLowError = false;
127
+ this.showSecondInputHighError = false;
128
+ if (input < this.secondInputWarning) {
129
+ this.showSecondInputWarning = true;
130
+ }
131
+ if (input < this.secondInputMin) {
132
+ this.showSecondInputWarning = false;
133
+ this.showSecondInputLowError = true;
134
+ }
135
+ if (input > this.secondInputMax) {
136
+ this.showSecondInputWarning = false;
137
+ this.showSecondInputLowError = false;
138
+ this.showSecondInputHighError = true;
139
+ }
140
+ }
141
+ handleDateChange(e) {
142
+ const elm = e.target;
143
+ if (elm === this.pnDatePicker) {
144
+ this.dateValue = e.detail;
145
+ }
146
+ }
147
+ emitRowValues() {
148
+ this.rowValueChange.emit({
149
+ id: this._predefinedValue.id,
150
+ firstInput: this.firstInputValue,
151
+ secondInput: this.secondInputValue,
152
+ date: this.dateValue,
153
+ });
154
+ }
155
+ deleteRow() {
156
+ this.deleteRowEvent.emit(this._predefinedValue.id);
157
+ }
158
+ render() {
159
+ var _a;
160
+ return (h(Host, null, h("div", { class: "input-element-row" }, h("div", { class: "input-container" }, h("pn-marketweb-input", { ref: el => (this.pnFirstInputField = el), type: "number", placeholder: this.fristInputPlaceholder, value: this.firstInputValue, min: "1" }), this.showFirstInputLowError || this.showFirstInputHighError || this.showFirstInputWarning ? (h("div", { class: "input-element-message-container" }, this.showFirstInputLowError ? (h("div", { class: "input-element-message-container__error" }, h("small", null, this.firstInputLowErrorText))) : null, this.showFirstInputHighError ? (h("div", { class: "input-element-message-container__error" }, h("small", null, this.firstInputHighErrorText))) : null, this.showFirstInputWarning ? (h("div", { class: "input-element-message-container__warning" }, h("small", null, this.firstInputWarningText))) : null)) : null), h("div", { class: "input-container" }, h("pn-marketweb-input", { ref: el => (this.pnSecondInputField = el), type: "number", placeholder: this.secondInputPlaceholder, value: this.secondInputValue, min: "1" }), this.showSecondInputLowError || this.showSecondInputHighError || this.showSecondInputWarning ? (h("div", { class: "input-element-message-container" }, this.showSecondInputLowError ? (h("div", { class: "input-element-message-container__error" }, h("small", null, this.secondInputLowErrorText))) : null, this.showSecondInputHighError ? (h("div", { class: "input-element-message-container__error" }, h("small", null, this.secondInputHighErrorText))) : null, this.showSecondInputWarning ? (h("div", { class: "input-element-message-container__warning" }, h("small", null, this.secondInputWarningText))) : null)) : null), h("div", { class: "input-container" }, h("pn-date-picker", { ref: el => (this.pnDatePicker = el), range: "false", "disable-weekends": true, "min-date": this.firstValidDate, "max-date": this.lastValidDate, language: this.languageCode, placeholder: this.datePlaceholder, start: ((_a = this.dateValue) === null || _a === void 0 ? void 0 : _a.length) ? this.dateValue : null })), this.rowIndex >= this.minRowCount ? (h("div", { class: "delete-button-contianer" }, h("pn-button", { ref: el => (this.pnDeleteRowButton = el), small: "true", "icon-only": "true", icon: "minus", appearance: "warning", index: this.rowIndex, onClick: () => {
161
+ this.deleteRow();
162
+ } }, "Delete"))) : null)));
163
+ }
164
+ static get is() { return "pn-dropdown-with-multi-input-rows-row"; }
165
+ static get originalStyleUrls() {
166
+ return {
167
+ "$": ["pn-dropdown-with-multi-input-rows-row.scss"]
168
+ };
169
+ }
170
+ static get styleUrls() {
171
+ return {
172
+ "$": ["pn-dropdown-with-multi-input-rows-row.css"]
173
+ };
174
+ }
175
+ static get properties() {
176
+ return {
177
+ "languageCode": {
178
+ "type": "string",
179
+ "mutable": false,
180
+ "complexType": {
181
+ "original": "string",
182
+ "resolved": "string",
183
+ "references": {}
184
+ },
185
+ "required": false,
186
+ "optional": false,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": ""
190
+ },
191
+ "attribute": "language-code",
192
+ "reflect": false,
193
+ "defaultValue": "null"
194
+ },
195
+ "fristInputPlaceholder": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "string",
200
+ "resolved": "string",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": ""
208
+ },
209
+ "attribute": "frist-input-placeholder",
210
+ "reflect": false,
211
+ "defaultValue": "null"
212
+ },
213
+ "firstInputMin": {
214
+ "type": "number",
215
+ "mutable": false,
216
+ "complexType": {
217
+ "original": "number",
218
+ "resolved": "number",
219
+ "references": {}
220
+ },
221
+ "required": false,
222
+ "optional": false,
223
+ "docs": {
224
+ "tags": [],
225
+ "text": ""
226
+ },
227
+ "attribute": "first-input-min",
228
+ "reflect": false,
229
+ "defaultValue": "null"
230
+ },
231
+ "firstInputMax": {
232
+ "type": "number",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "number",
236
+ "resolved": "number",
237
+ "references": {}
238
+ },
239
+ "required": false,
240
+ "optional": false,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": ""
244
+ },
245
+ "attribute": "first-input-max",
246
+ "reflect": false,
247
+ "defaultValue": "null"
248
+ },
249
+ "firstInputWarning": {
250
+ "type": "number",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "number",
254
+ "resolved": "number",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": ""
262
+ },
263
+ "attribute": "first-input-warning",
264
+ "reflect": false,
265
+ "defaultValue": "null"
266
+ },
267
+ "firstInputWarningText": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": ""
280
+ },
281
+ "attribute": "first-input-warning-text",
282
+ "reflect": false,
283
+ "defaultValue": "null"
284
+ },
285
+ "firstInputLowErrorText": {
286
+ "type": "string",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "string",
290
+ "resolved": "string",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": ""
298
+ },
299
+ "attribute": "first-input-low-error-text",
300
+ "reflect": false,
301
+ "defaultValue": "null"
302
+ },
303
+ "firstInputHighErrorText": {
304
+ "type": "string",
305
+ "mutable": false,
306
+ "complexType": {
307
+ "original": "string",
308
+ "resolved": "string",
309
+ "references": {}
310
+ },
311
+ "required": false,
312
+ "optional": false,
313
+ "docs": {
314
+ "tags": [],
315
+ "text": ""
316
+ },
317
+ "attribute": "first-input-high-error-text",
318
+ "reflect": false,
319
+ "defaultValue": "null"
320
+ },
321
+ "secondInputPlaceholder": {
322
+ "type": "string",
323
+ "mutable": false,
324
+ "complexType": {
325
+ "original": "string",
326
+ "resolved": "string",
327
+ "references": {}
328
+ },
329
+ "required": false,
330
+ "optional": false,
331
+ "docs": {
332
+ "tags": [],
333
+ "text": ""
334
+ },
335
+ "attribute": "second-input-placeholder",
336
+ "reflect": false,
337
+ "defaultValue": "null"
338
+ },
339
+ "secondInputMin": {
340
+ "type": "number",
341
+ "mutable": false,
342
+ "complexType": {
343
+ "original": "number",
344
+ "resolved": "number",
345
+ "references": {}
346
+ },
347
+ "required": false,
348
+ "optional": false,
349
+ "docs": {
350
+ "tags": [],
351
+ "text": ""
352
+ },
353
+ "attribute": "second-input-min",
354
+ "reflect": false,
355
+ "defaultValue": "null"
356
+ },
357
+ "secondInputMax": {
358
+ "type": "number",
359
+ "mutable": false,
360
+ "complexType": {
361
+ "original": "number",
362
+ "resolved": "number",
363
+ "references": {}
364
+ },
365
+ "required": false,
366
+ "optional": false,
367
+ "docs": {
368
+ "tags": [],
369
+ "text": ""
370
+ },
371
+ "attribute": "second-input-max",
372
+ "reflect": false,
373
+ "defaultValue": "null"
374
+ },
375
+ "secondInputWarning": {
376
+ "type": "number",
377
+ "mutable": false,
378
+ "complexType": {
379
+ "original": "number",
380
+ "resolved": "number",
381
+ "references": {}
382
+ },
383
+ "required": false,
384
+ "optional": false,
385
+ "docs": {
386
+ "tags": [],
387
+ "text": ""
388
+ },
389
+ "attribute": "second-input-warning",
390
+ "reflect": false,
391
+ "defaultValue": "null"
392
+ },
393
+ "secondInputWarningText": {
394
+ "type": "string",
395
+ "mutable": false,
396
+ "complexType": {
397
+ "original": "string",
398
+ "resolved": "string",
399
+ "references": {}
400
+ },
401
+ "required": false,
402
+ "optional": false,
403
+ "docs": {
404
+ "tags": [],
405
+ "text": ""
406
+ },
407
+ "attribute": "second-input-warning-text",
408
+ "reflect": false,
409
+ "defaultValue": "null"
410
+ },
411
+ "secondInputLowErrorText": {
412
+ "type": "string",
413
+ "mutable": false,
414
+ "complexType": {
415
+ "original": "string",
416
+ "resolved": "string",
417
+ "references": {}
418
+ },
419
+ "required": false,
420
+ "optional": false,
421
+ "docs": {
422
+ "tags": [],
423
+ "text": ""
424
+ },
425
+ "attribute": "second-input-low-error-text",
426
+ "reflect": false,
427
+ "defaultValue": "null"
428
+ },
429
+ "secondInputHighErrorText": {
430
+ "type": "string",
431
+ "mutable": false,
432
+ "complexType": {
433
+ "original": "string",
434
+ "resolved": "string",
435
+ "references": {}
436
+ },
437
+ "required": false,
438
+ "optional": false,
439
+ "docs": {
440
+ "tags": [],
441
+ "text": ""
442
+ },
443
+ "attribute": "second-input-high-error-text",
444
+ "reflect": false,
445
+ "defaultValue": "null"
446
+ },
447
+ "dateLabel": {
448
+ "type": "string",
449
+ "mutable": false,
450
+ "complexType": {
451
+ "original": "string",
452
+ "resolved": "string",
453
+ "references": {}
454
+ },
455
+ "required": false,
456
+ "optional": false,
457
+ "docs": {
458
+ "tags": [],
459
+ "text": ""
460
+ },
461
+ "attribute": "date-label",
462
+ "reflect": false,
463
+ "defaultValue": "null"
464
+ },
465
+ "datePlaceholder": {
466
+ "type": "string",
467
+ "mutable": false,
468
+ "complexType": {
469
+ "original": "string",
470
+ "resolved": "string",
471
+ "references": {}
472
+ },
473
+ "required": false,
474
+ "optional": false,
475
+ "docs": {
476
+ "tags": [],
477
+ "text": ""
478
+ },
479
+ "attribute": "date-placeholder",
480
+ "reflect": false,
481
+ "defaultValue": "null"
482
+ },
483
+ "firstValidDate": {
484
+ "type": "string",
485
+ "mutable": false,
486
+ "complexType": {
487
+ "original": "string",
488
+ "resolved": "string",
489
+ "references": {}
490
+ },
491
+ "required": false,
492
+ "optional": false,
493
+ "docs": {
494
+ "tags": [],
495
+ "text": ""
496
+ },
497
+ "attribute": "first-valid-date",
498
+ "reflect": false,
499
+ "defaultValue": "null"
500
+ },
501
+ "lastValidDate": {
502
+ "type": "string",
503
+ "mutable": false,
504
+ "complexType": {
505
+ "original": "string",
506
+ "resolved": "string",
507
+ "references": {}
508
+ },
509
+ "required": false,
510
+ "optional": false,
511
+ "docs": {
512
+ "tags": [],
513
+ "text": ""
514
+ },
515
+ "attribute": "last-valid-date",
516
+ "reflect": false,
517
+ "defaultValue": "null"
518
+ },
519
+ "predefinedValue": {
520
+ "type": "string",
521
+ "mutable": false,
522
+ "complexType": {
523
+ "original": "string",
524
+ "resolved": "string",
525
+ "references": {}
526
+ },
527
+ "required": false,
528
+ "optional": false,
529
+ "docs": {
530
+ "tags": [],
531
+ "text": ""
532
+ },
533
+ "attribute": "predefined-value",
534
+ "reflect": false,
535
+ "defaultValue": "null"
536
+ },
537
+ "rowIndex": {
538
+ "type": "number",
539
+ "mutable": false,
540
+ "complexType": {
541
+ "original": "number",
542
+ "resolved": "number",
543
+ "references": {}
544
+ },
545
+ "required": false,
546
+ "optional": false,
547
+ "docs": {
548
+ "tags": [],
549
+ "text": ""
550
+ },
551
+ "attribute": "row-index",
552
+ "reflect": false,
553
+ "defaultValue": "null"
554
+ },
555
+ "minRowCount": {
556
+ "type": "number",
557
+ "mutable": false,
558
+ "complexType": {
559
+ "original": "number",
560
+ "resolved": "number",
561
+ "references": {}
562
+ },
563
+ "required": false,
564
+ "optional": false,
565
+ "docs": {
566
+ "tags": [],
567
+ "text": ""
568
+ },
569
+ "attribute": "min-row-count",
570
+ "reflect": false,
571
+ "defaultValue": "null"
572
+ }
573
+ };
574
+ }
575
+ static get states() {
576
+ return {
577
+ "showFirstInputWarning": {},
578
+ "showFirstInputLowError": {},
579
+ "showFirstInputHighError": {},
580
+ "showSecondInputWarning": {},
581
+ "showSecondInputLowError": {},
582
+ "showSecondInputHighError": {},
583
+ "firstInputValue": {},
584
+ "secondInputValue": {},
585
+ "dateValue": {}
586
+ };
587
+ }
588
+ static get events() {
589
+ return [{
590
+ "method": "rowValueChange",
591
+ "name": "rowValueChange",
592
+ "bubbles": true,
593
+ "cancelable": true,
594
+ "composed": true,
595
+ "docs": {
596
+ "tags": [],
597
+ "text": ""
598
+ },
599
+ "complexType": {
600
+ "original": "PredefinedValues",
601
+ "resolved": "PredefinedValues",
602
+ "references": {
603
+ "PredefinedValues": {
604
+ "location": "import",
605
+ "path": "./types"
606
+ }
607
+ }
608
+ }
609
+ }, {
610
+ "method": "deleteRowEvent",
611
+ "name": "deleteRowEvent",
612
+ "bubbles": true,
613
+ "cancelable": true,
614
+ "composed": true,
615
+ "docs": {
616
+ "tags": [],
617
+ "text": ""
618
+ },
619
+ "complexType": {
620
+ "original": "string",
621
+ "resolved": "string",
622
+ "references": {}
623
+ }
624
+ }, {
625
+ "method": "firstInputChange",
626
+ "name": "firstInputChange",
627
+ "bubbles": true,
628
+ "cancelable": true,
629
+ "composed": true,
630
+ "docs": {
631
+ "tags": [],
632
+ "text": ""
633
+ },
634
+ "complexType": {
635
+ "original": "PredefinedValues",
636
+ "resolved": "PredefinedValues",
637
+ "references": {
638
+ "PredefinedValues": {
639
+ "location": "import",
640
+ "path": "./types"
641
+ }
642
+ }
643
+ }
644
+ }, {
645
+ "method": "secondInputChange",
646
+ "name": "secondInputChange",
647
+ "bubbles": true,
648
+ "cancelable": true,
649
+ "composed": true,
650
+ "docs": {
651
+ "tags": [],
652
+ "text": ""
653
+ },
654
+ "complexType": {
655
+ "original": "PredefinedValues",
656
+ "resolved": "PredefinedValues",
657
+ "references": {
658
+ "PredefinedValues": {
659
+ "location": "import",
660
+ "path": "./types"
661
+ }
662
+ }
663
+ }
664
+ }];
665
+ }
666
+ static get elementRef() { return "hostElement"; }
667
+ static get watchers() {
668
+ return [{
669
+ "propName": "predefinedValue",
670
+ "methodName": "applyPredefinedValue"
671
+ }];
672
+ }
673
+ }
@@ -0,0 +1,26 @@
1
+ pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__row {
2
+ margin-bottom: 1rem;
3
+ }
4
+ pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete {
5
+ display: flex;
6
+ gap: 1rem;
7
+ margin-bottom: 1rem;
8
+ padding: 1rem;
9
+ background-color: #F9F8F8;
10
+ }
11
+ pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete pn-button {
12
+ margin-top: 0.9rem;
13
+ }
14
+ pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label-row {
15
+ display: flex;
16
+ gap: 1rem;
17
+ }
18
+ pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label {
19
+ width: 30%;
20
+ font-size: 0.875em;
21
+ color: #5e554a;
22
+ }
23
+ pn-dropdown-with-multi-input-rows .sum-row {
24
+ display: flex;
25
+ justify-content: space-between;
26
+ }