@zeedhi/common 1.73.0 → 1.74.0
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/dist/zd-common.esm.js +557 -60
- package/dist/zd-common.umd.js +557 -60
- package/package.json +2 -2
- package/types/components/zd-apex-chart/apex-chart.d.ts +26 -2
- package/types/components/zd-apex-chart/interfaces.d.ts +5 -0
- package/types/components/zd-card/card.d.ts +8 -4
- package/types/components/zd-card/interfaces.d.ts +6 -5
- package/types/components/zd-carousel/carousel.d.ts +4 -0
- package/types/components/zd-carousel/interfaces.d.ts +4 -3
- package/types/components/zd-code-editor/code-editor.d.ts +30 -4
- package/types/components/zd-code-editor/interfaces.d.ts +7 -2
- package/types/components/zd-component/component.d.ts +4 -0
- package/types/components/zd-component/interfaces.d.ts +1 -0
- package/types/components/zd-container/container.d.ts +15 -0
- package/types/components/zd-container/interfaces.d.ts +4 -1
- package/types/components/zd-dashboard/dashboard.d.ts +34 -1
- package/types/components/zd-dashboard/interfaces.d.ts +7 -1
- package/types/components/zd-form/form.d.ts +34 -6
- package/types/components/zd-form/interfaces.d.ts +6 -0
- package/types/components/zd-frame/frame.d.ts +34 -3
- package/types/components/zd-frame/interfaces.d.ts +4 -0
- package/types/components/zd-grid/grid-column.d.ts +1 -0
- package/types/components/zd-grid/grid-editable.d.ts +2 -1
- package/types/components/zd-grid/grid.d.ts +23 -9
- package/types/components/zd-grid/interfaces.d.ts +7 -5
- package/types/components/zd-image/image.d.ts +34 -12
- package/types/components/zd-image/interfaces.d.ts +7 -2
- package/types/components/zd-iterable-component-render/interfaces.d.ts +4 -0
- package/types/components/zd-iterable-component-render/iterable-component-render.d.ts +28 -6
- package/types/components/zd-list/interfaces.d.ts +4 -0
- package/types/components/zd-list/list.d.ts +28 -6
- package/types/components/zd-row/interfaces.d.ts +4 -0
- package/types/components/zd-row/row.d.ts +19 -0
- package/types/components/zd-selectable-list/interfaces.d.ts +7 -0
- package/types/components/zd-selectable-list/selectable-list.d.ts +34 -0
- package/types/components/zd-table/interfaces.d.ts +4 -0
- package/types/components/zd-table/table.d.ts +19 -0
- package/types/components/zd-tabs/interfaces.d.ts +3 -1
- package/types/components/zd-tabs/tab.d.ts +0 -4
- package/types/components/zd-tabs/tabs.d.ts +17 -2
- package/types/components/zd-textarea/interfaces.d.ts +3 -1
- package/types/components/zd-textarea/textarea.d.ts +15 -4
- package/types/components/zd-tree/interfaces.d.ts +7 -2
- package/types/components/zd-tree/tree.d.ts +29 -3
- package/types/components/zd-tree-grid/tree-grid-editable.d.ts +1 -0
package/dist/zd-common.umd.js
CHANGED
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
* @param props Components properties
|
|
31
31
|
*/
|
|
32
32
|
constructor(props) {
|
|
33
|
+
/**
|
|
34
|
+
* Allow the component to be duplicated without warning.
|
|
35
|
+
*/
|
|
36
|
+
this.allowDuplicate = false;
|
|
33
37
|
/**
|
|
34
38
|
* Automatically add focus to input when it's created.
|
|
35
39
|
*/
|
|
@@ -88,6 +92,7 @@
|
|
|
88
92
|
this.parent = props.parent;
|
|
89
93
|
this.name = props.name;
|
|
90
94
|
this.events = core.Event.factory(props.events || this.events);
|
|
95
|
+
this.allowDuplicate = this.getInitValue('allowDuplicate', props.allowDuplicate, this.allowDuplicate);
|
|
91
96
|
this.autofocus = this.getInitValue('autofocus', props.autofocus, this.autofocus);
|
|
92
97
|
this.cssClass = this.getInitValue('cssClass', props.cssClass, this.cssClass);
|
|
93
98
|
this.cssStyle = this.getInitValue('cssStyle', props.cssStyle, this.cssStyle);
|
|
@@ -201,7 +206,7 @@
|
|
|
201
206
|
* Triggered when the component is created.
|
|
202
207
|
*/
|
|
203
208
|
onCreated() {
|
|
204
|
-
this.componentId = core.Metadata.addInstance(this);
|
|
209
|
+
this.componentId = core.Metadata.addInstance(this, this.allowDuplicate);
|
|
205
210
|
if (this.parent) {
|
|
206
211
|
this.parent.addChildInstance(this);
|
|
207
212
|
}
|
|
@@ -436,10 +441,24 @@
|
|
|
436
441
|
*/
|
|
437
442
|
this.chartType = 'line';
|
|
438
443
|
/**
|
|
439
|
-
* Defines the
|
|
444
|
+
* Defines the component height. Possible values for this property can be
|
|
440
445
|
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
441
446
|
*/
|
|
442
|
-
this.height = '
|
|
447
|
+
this.height = '100%';
|
|
448
|
+
/**
|
|
449
|
+
* Defines the component min height. Possible values for this property can be
|
|
450
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
451
|
+
*/
|
|
452
|
+
this.minHeight = 'auto';
|
|
453
|
+
/**
|
|
454
|
+
* Defines the component max height. Possible values for this property can be
|
|
455
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
456
|
+
*/
|
|
457
|
+
this.maxHeight = 'none';
|
|
458
|
+
/**
|
|
459
|
+
* Set component height to fill all space available
|
|
460
|
+
*/
|
|
461
|
+
this.fillHeight = false;
|
|
443
462
|
/**
|
|
444
463
|
* Chart options. See <a href=\"https://apexcharts.com/docs/options/\"
|
|
445
464
|
* target=\"_blank\" alt=\"Apex Charts API Reference\">Apex Chart API
|
|
@@ -453,10 +472,20 @@
|
|
|
453
472
|
*/
|
|
454
473
|
this.series = [];
|
|
455
474
|
/**
|
|
456
|
-
* Defines the
|
|
475
|
+
* Defines the component width. Possible values for this property can be
|
|
457
476
|
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
458
477
|
*/
|
|
459
478
|
this.width = '100%';
|
|
479
|
+
/**
|
|
480
|
+
* Defines the component min width. Possible values for this property can be
|
|
481
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
482
|
+
*/
|
|
483
|
+
this.minWidth = 'auto';
|
|
484
|
+
/**
|
|
485
|
+
* Defines the component max height. Possible values for this property can be
|
|
486
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
487
|
+
*/
|
|
488
|
+
this.maxWidth = 'none';
|
|
460
489
|
/**
|
|
461
490
|
* Defines if chart is loading
|
|
462
491
|
*/
|
|
@@ -508,7 +537,12 @@
|
|
|
508
537
|
this.options = merge__default["default"](this.defaultOptions, this.getInitValue('options', props.options, this.options));
|
|
509
538
|
this.series = this.getInitValue('series', props.series, this.series);
|
|
510
539
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
540
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
541
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
542
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
511
543
|
this.width = this.getInitValue('width', props.width, this.width);
|
|
544
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
545
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
512
546
|
this.loading = this.getInitValue('loading', props.loading, this.loading);
|
|
513
547
|
this.loadOpacity = this.getInitValue('loadOpacity', props.loadOpacity, this.loadOpacity);
|
|
514
548
|
this.loadColor = this.getInitValue('loadColor', props.loadColor, this.loadColor);
|
|
@@ -1157,7 +1191,11 @@
|
|
|
1157
1191
|
* Sets the carousel min height. Example values: 'auto', '100%', '400px',
|
|
1158
1192
|
* '30em', '400', 400. Values without measurement unit will be notated in pixels by default
|
|
1159
1193
|
*/
|
|
1160
|
-
this.minHeight = '
|
|
1194
|
+
this.minHeight = 'auto';
|
|
1195
|
+
/**
|
|
1196
|
+
* Set component height to fill all space available
|
|
1197
|
+
*/
|
|
1198
|
+
this.fillHeight = false;
|
|
1161
1199
|
/**
|
|
1162
1200
|
* Configures the carousel as infinite (the slide after the last one is the first slide, and vice-versa)
|
|
1163
1201
|
*/
|
|
@@ -1251,6 +1289,7 @@
|
|
|
1251
1289
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
1252
1290
|
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
1253
1291
|
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
1292
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
1254
1293
|
this.infiniteScroll = this.getInitValue('infiniteScroll', props.infiniteScroll, this.infiniteScroll);
|
|
1255
1294
|
this.initialSlide = this.getInitValue('initialSlide', props.initialSlide, this.initialSlide);
|
|
1256
1295
|
this.currentSlide = this.getInitValue('currentSlide', props.currentSlide, this.initialSlide);
|
|
@@ -1390,6 +1429,30 @@
|
|
|
1390
1429
|
* Designates that the card is a link
|
|
1391
1430
|
*/
|
|
1392
1431
|
this.link = false;
|
|
1432
|
+
/**
|
|
1433
|
+
* Sets the maximum height for the card.
|
|
1434
|
+
* Possible values for width can be 'auto', '100%', '400px' or 400
|
|
1435
|
+
*/
|
|
1436
|
+
this.maxHeight = 'none';
|
|
1437
|
+
/**
|
|
1438
|
+
* Sets the maximum width for the card.
|
|
1439
|
+
* Possible values for width can be 'auto', '100%', '400px' or 400
|
|
1440
|
+
*/
|
|
1441
|
+
this.maxWidth = 'none';
|
|
1442
|
+
/**
|
|
1443
|
+
* Sets the minimum height for the card.
|
|
1444
|
+
* Possible values for width can be 'auto', '100%', '400px' or 400
|
|
1445
|
+
*/
|
|
1446
|
+
this.minHeight = 'auto';
|
|
1447
|
+
/**
|
|
1448
|
+
* Sets the minimum width for the card.
|
|
1449
|
+
* Possible values for width can be 'auto', '100%', '400px' or 400
|
|
1450
|
+
*/
|
|
1451
|
+
this.minWidth = 'auto';
|
|
1452
|
+
/**
|
|
1453
|
+
* Set component height to fill all space available
|
|
1454
|
+
*/
|
|
1455
|
+
this.fillHeight = false;
|
|
1393
1456
|
/**
|
|
1394
1457
|
* Removes card elevation shadow and adds a thin border
|
|
1395
1458
|
*/
|
|
@@ -1412,21 +1475,22 @@
|
|
|
1412
1475
|
this.disabled = this.getInitValue('disabled', props.disabled, this.disabled);
|
|
1413
1476
|
this.elevation = this.getInitValue('elevation', props.elevation, this.elevation);
|
|
1414
1477
|
this.flat = this.getInitValue('flat', props.flat, this.flat);
|
|
1415
|
-
this.height = this.getInitValue('height', props.height, this.height);
|
|
1416
1478
|
this.hover = this.getInitValue('hover', props.hover, this.hover);
|
|
1417
1479
|
this.href = this.getInitValue('href', props.href, this.href);
|
|
1418
1480
|
this.img = this.getInitValue('img', props.img, this.img);
|
|
1419
1481
|
this.link = this.getInitValue('link', props.link, this.link);
|
|
1482
|
+
this.height = this.getInitValue('height', props.height, this.height);
|
|
1483
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
1420
1484
|
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
1421
1485
|
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
1422
1486
|
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
1423
1487
|
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
1488
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
1424
1489
|
this.outlined = this.getInitValue('outlined', props.outlined, this.outlined);
|
|
1425
1490
|
this.raised = this.getInitValue('raised', props.raised, this.raised);
|
|
1426
1491
|
this.ripple = this.getInitValue('ripple', props.ripple, this.ripple);
|
|
1427
1492
|
this.tile = this.getInitValue('tile', props.tile, this.tile);
|
|
1428
1493
|
this.to = this.getInitValue('to', props.to, this.to);
|
|
1429
|
-
this.width = this.getInitValue('width', props.width, this.width);
|
|
1430
1494
|
this.createAccessors();
|
|
1431
1495
|
}
|
|
1432
1496
|
}
|
|
@@ -1479,6 +1543,40 @@
|
|
|
1479
1543
|
*/
|
|
1480
1544
|
constructor(props) {
|
|
1481
1545
|
super(props);
|
|
1546
|
+
/**
|
|
1547
|
+
* Defines the component height. Possible values for this property can be
|
|
1548
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
1549
|
+
*/
|
|
1550
|
+
this.height = 'auto';
|
|
1551
|
+
/**
|
|
1552
|
+
* Defines the component min height. Possible values for this property can be
|
|
1553
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
1554
|
+
*/
|
|
1555
|
+
this.minHeight = 'auto';
|
|
1556
|
+
/**
|
|
1557
|
+
* Defines the component max height. Possible values for this property can be
|
|
1558
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
1559
|
+
*/
|
|
1560
|
+
this.maxHeight = 'none';
|
|
1561
|
+
/**
|
|
1562
|
+
* Set component height to fill all space available
|
|
1563
|
+
*/
|
|
1564
|
+
this.fillHeight = false;
|
|
1565
|
+
/**
|
|
1566
|
+
* Defines the component width. Possible values for this property can be
|
|
1567
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
1568
|
+
*/
|
|
1569
|
+
this.width = '100%';
|
|
1570
|
+
/**
|
|
1571
|
+
* Defines the component min width. Possible values for this property can be
|
|
1572
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
1573
|
+
*/
|
|
1574
|
+
this.minWidth = 'auto';
|
|
1575
|
+
/**
|
|
1576
|
+
* Defines the component max height. Possible values for this property can be
|
|
1577
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
1578
|
+
*/
|
|
1579
|
+
this.maxWidth = 'none';
|
|
1482
1580
|
/**
|
|
1483
1581
|
* Children components that are Inputs.
|
|
1484
1582
|
*/
|
|
@@ -1487,6 +1585,12 @@
|
|
|
1487
1585
|
this.align = this.getInitValue('align', props.align, this.align);
|
|
1488
1586
|
this.justify = this.getInitValue('justify', props.justify, this.justify);
|
|
1489
1587
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
1588
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
1589
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
1590
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
1591
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
1592
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
1593
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
1490
1594
|
this.internalValue = this.getInitValue('value', props.value, this.value);
|
|
1491
1595
|
this.createAccessors();
|
|
1492
1596
|
}
|
|
@@ -2105,13 +2209,39 @@
|
|
|
2105
2209
|
constructor(props) {
|
|
2106
2210
|
super(props);
|
|
2107
2211
|
/**
|
|
2108
|
-
*
|
|
2212
|
+
* Defines the component height. Possible values for this property can be
|
|
2213
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2214
|
+
*/
|
|
2215
|
+
this.height = 'auto';
|
|
2216
|
+
/**
|
|
2217
|
+
* Defines the component min height. Possible values for this property can be
|
|
2218
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2219
|
+
*/
|
|
2220
|
+
this.minHeight = 'auto';
|
|
2221
|
+
/**
|
|
2222
|
+
* Defines the component max height. Possible values for this property can be
|
|
2223
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2109
2224
|
*/
|
|
2110
2225
|
this.maxHeight = 'none';
|
|
2111
2226
|
/**
|
|
2112
|
-
*
|
|
2227
|
+
* Set component height to fill all space available
|
|
2113
2228
|
*/
|
|
2114
|
-
this.
|
|
2229
|
+
this.fillHeight = false;
|
|
2230
|
+
/**
|
|
2231
|
+
* Defines the component width. Possible values for this property can be
|
|
2232
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2233
|
+
*/
|
|
2234
|
+
this.width = 'auto';
|
|
2235
|
+
/**
|
|
2236
|
+
* Defines the component min width. Possible values for this property can be
|
|
2237
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2238
|
+
*/
|
|
2239
|
+
this.minWidth = 'auto';
|
|
2240
|
+
/**
|
|
2241
|
+
* Defines the component max height. Possible values for this property can be
|
|
2242
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2243
|
+
*/
|
|
2244
|
+
this.maxWidth = 'none';
|
|
2115
2245
|
/**
|
|
2116
2246
|
* Language code to be used for highlight (js|javascript, css, html, json, ts|typescript, bash|shell)
|
|
2117
2247
|
* Other languages must be imported above
|
|
@@ -2130,8 +2260,13 @@
|
|
|
2130
2260
|
this.staticCodeValue = '';
|
|
2131
2261
|
this.staticCode = this.getInitValue('staticCode', props.staticCode, this.staticCodeValue);
|
|
2132
2262
|
this.copyIcon = this.getInitValue('copyIcon', props.copyIcon, this.copyIcon);
|
|
2133
|
-
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
2134
2263
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
2264
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
2265
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
2266
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
2267
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
2268
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
2269
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
2135
2270
|
this.language = this.getInitValue('language', props.language, this.language);
|
|
2136
2271
|
this.showLineNumbers = this.getInitValue('showLineNumbers', props.showLineNumbers, this.showLineNumbers);
|
|
2137
2272
|
this.createAccessors();
|
|
@@ -2349,7 +2484,22 @@
|
|
|
2349
2484
|
/**
|
|
2350
2485
|
* Sets the minimum height for the component.
|
|
2351
2486
|
*/
|
|
2352
|
-
this.minHeight = '
|
|
2487
|
+
this.minHeight = 'auto';
|
|
2488
|
+
/**
|
|
2489
|
+
* Defines the component width. Possible values for this property can be
|
|
2490
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2491
|
+
*/
|
|
2492
|
+
this.width = '100%';
|
|
2493
|
+
/**
|
|
2494
|
+
* Defines the component min width. Possible values for this property can be
|
|
2495
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2496
|
+
*/
|
|
2497
|
+
this.minWidth = 'auto';
|
|
2498
|
+
/**
|
|
2499
|
+
* Defines the component max height. Possible values for this property can be
|
|
2500
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2501
|
+
*/
|
|
2502
|
+
this.maxWidth = 'none';
|
|
2353
2503
|
/**
|
|
2354
2504
|
* Removes viewport maximum-width size breakpoints.
|
|
2355
2505
|
*/
|
|
@@ -2364,6 +2514,9 @@
|
|
|
2364
2514
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
2365
2515
|
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
2366
2516
|
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
2517
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
2518
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
2519
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
2367
2520
|
this.createAccessors();
|
|
2368
2521
|
}
|
|
2369
2522
|
}
|
|
@@ -2977,10 +3130,42 @@
|
|
|
2977
3130
|
this.overrideNamedProps = {};
|
|
2978
3131
|
/* Remove the paddings of the dashboard */
|
|
2979
3132
|
this.removePadding = false;
|
|
2980
|
-
/* Height of the dashboard */
|
|
2981
|
-
this.height = '';
|
|
2982
|
-
/* Height adjust of the dashboard */
|
|
3133
|
+
/* Height steps of the dashboard cards */
|
|
2983
3134
|
this.heightAdjust = '';
|
|
3135
|
+
/**
|
|
3136
|
+
* Defines the component height. Possible values for this property can be
|
|
3137
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
3138
|
+
*/
|
|
3139
|
+
this.height = 'auto';
|
|
3140
|
+
/**
|
|
3141
|
+
* Defines the component min height. Possible values for this property can be
|
|
3142
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
3143
|
+
*/
|
|
3144
|
+
this.minHeight = 'auto';
|
|
3145
|
+
/**
|
|
3146
|
+
* Defines the component max height. Possible values for this property can be
|
|
3147
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
3148
|
+
*/
|
|
3149
|
+
this.maxHeight = 'none';
|
|
3150
|
+
/**
|
|
3151
|
+
* Set component height to fill all space available
|
|
3152
|
+
*/
|
|
3153
|
+
this.fillHeight = false;
|
|
3154
|
+
/**
|
|
3155
|
+
* Defines the component width. Possible values for this property can be
|
|
3156
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
3157
|
+
*/
|
|
3158
|
+
this.width = '100%';
|
|
3159
|
+
/**
|
|
3160
|
+
* Defines the component min width. Possible values for this property can be
|
|
3161
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
3162
|
+
*/
|
|
3163
|
+
this.minWidth = 'auto';
|
|
3164
|
+
/**
|
|
3165
|
+
* Defines the component max height. Possible values for this property can be
|
|
3166
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
3167
|
+
*/
|
|
3168
|
+
this.maxWidth = 'none';
|
|
2984
3169
|
/* Creates the add modal */
|
|
2985
3170
|
this.addModalDef = {
|
|
2986
3171
|
name: `addModal${this.getCardId()}`,
|
|
@@ -3201,6 +3386,12 @@
|
|
|
3201
3386
|
this.overrideNamedProps = props.overrideNamedProps || this.overrideNamedProps;
|
|
3202
3387
|
this.removePadding = this.getInitValue('removePadding', props.removePadding, this.removePadding);
|
|
3203
3388
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
3389
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
3390
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
3391
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
3392
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
3393
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
3394
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
3204
3395
|
this.heightAdjust = this.getInitValue('heightAdjust', props.heightAdjust, this.heightAdjust);
|
|
3205
3396
|
this.cardFooterSlot = this.getInitValue('cardFooterSlot', props.cardFooterSlot, this.cardFooterSlot);
|
|
3206
3397
|
this.editHeader = this.getInitValue('editHeader', props.editHeader, this.editHeader);
|
|
@@ -4543,9 +4734,40 @@
|
|
|
4543
4734
|
this.cache = false;
|
|
4544
4735
|
this.JSONCache = false;
|
|
4545
4736
|
this.cacheDuration = 2 * 60 * 60 * 1000;
|
|
4737
|
+
/**
|
|
4738
|
+
* Defines the component height. Possible values for this property can be
|
|
4739
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
4740
|
+
*/
|
|
4546
4741
|
this.height = 'auto';
|
|
4742
|
+
/**
|
|
4743
|
+
* Defines the component min height. Possible values for this property can be
|
|
4744
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
4745
|
+
*/
|
|
4746
|
+
this.minHeight = 'auto';
|
|
4747
|
+
/**
|
|
4748
|
+
* Defines the component max height. Possible values for this property can be
|
|
4749
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
4750
|
+
*/
|
|
4547
4751
|
this.maxHeight = 'none';
|
|
4548
|
-
|
|
4752
|
+
/**
|
|
4753
|
+
* Set component height to fill all space available
|
|
4754
|
+
*/
|
|
4755
|
+
this.fillHeight = false;
|
|
4756
|
+
/**
|
|
4757
|
+
* Defines the component width. Possible values for this property can be
|
|
4758
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
4759
|
+
*/
|
|
4760
|
+
this.width = '100%';
|
|
4761
|
+
/**
|
|
4762
|
+
* Defines the component min width. Possible values for this property can be
|
|
4763
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
4764
|
+
*/
|
|
4765
|
+
this.minWidth = 'auto';
|
|
4766
|
+
/**
|
|
4767
|
+
* Defines the component max height. Possible values for this property can be
|
|
4768
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
4769
|
+
*/
|
|
4770
|
+
this.maxWidth = 'none';
|
|
4549
4771
|
this.type = 'get';
|
|
4550
4772
|
this.headerName = 'sw-fetched-on';
|
|
4551
4773
|
this.path = this.getInitValue('path', props.path, this.path);
|
|
@@ -4558,6 +4780,10 @@
|
|
|
4558
4780
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
4559
4781
|
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
4560
4782
|
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
4783
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
4784
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
4785
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
4786
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
4561
4787
|
this.type = this.getInitValue('type', props.type, this.type);
|
|
4562
4788
|
this.params = this.getInitValue('params', props.params, this.params);
|
|
4563
4789
|
this.createAccessors();
|
|
@@ -5342,9 +5568,39 @@
|
|
|
5342
5568
|
*/
|
|
5343
5569
|
this.dense = true;
|
|
5344
5570
|
/**
|
|
5345
|
-
* Defines
|
|
5571
|
+
* Defines the component height. Possible values for this property can be
|
|
5572
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
5573
|
+
*/
|
|
5574
|
+
this.height = 'auto';
|
|
5575
|
+
/**
|
|
5576
|
+
* Defines the component min height. Possible values for this property can be
|
|
5577
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
5578
|
+
*/
|
|
5579
|
+
this.minHeight = 'auto';
|
|
5580
|
+
/**
|
|
5581
|
+
* Defines the component max height. Possible values for this property can be
|
|
5582
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
5583
|
+
*/
|
|
5584
|
+
this.maxHeight = 'none';
|
|
5585
|
+
/**
|
|
5586
|
+
* Set component height to fill all space available
|
|
5346
5587
|
*/
|
|
5347
5588
|
this.fillHeight = false;
|
|
5589
|
+
/**
|
|
5590
|
+
* Defines the component width. Possible values for this property can be
|
|
5591
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
5592
|
+
*/
|
|
5593
|
+
this.width = '100%';
|
|
5594
|
+
/**
|
|
5595
|
+
* Defines the component min width. Possible values for this property can be
|
|
5596
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
5597
|
+
*/
|
|
5598
|
+
this.minWidth = 'auto';
|
|
5599
|
+
/**
|
|
5600
|
+
* Defines the component max height. Possible values for this property can be
|
|
5601
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
5602
|
+
*/
|
|
5603
|
+
this.maxWidth = 'none';
|
|
5348
5604
|
/**
|
|
5349
5605
|
* Controls footer visibility
|
|
5350
5606
|
*/
|
|
@@ -5413,10 +5669,12 @@
|
|
|
5413
5669
|
this.light = this.getInitValue('light', props.light, this.light);
|
|
5414
5670
|
this.selectable = this.getInitValue('selectable', props.selectable, this.selectable);
|
|
5415
5671
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
5416
|
-
this.
|
|
5672
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
5417
5673
|
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
5418
|
-
this.
|
|
5419
|
-
this.
|
|
5674
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
5675
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
5676
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
5677
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
5420
5678
|
this.showFooter = this.getInitValue('showFooter', props.showFooter, this.showFooter);
|
|
5421
5679
|
this.showHeader = this.getInitValue('showHeader', props.showHeader, this.showHeader);
|
|
5422
5680
|
this.headerBackground = this.getInitValue('headerBackground', props.headerBackground, this.headerBackground);
|
|
@@ -5632,6 +5890,7 @@
|
|
|
5632
5890
|
const newChildren = (_d = newComponent.children) === null || _d === void 0 ? void 0 : _d.map((child) => this.getActionComponent(child, column, row, path));
|
|
5633
5891
|
newComponent.name = instanceName;
|
|
5634
5892
|
newComponent.children = newChildren;
|
|
5893
|
+
newComponent.allowDuplicate = true;
|
|
5635
5894
|
try {
|
|
5636
5895
|
const updatedComponent = Object.assign({}, newComponent);
|
|
5637
5896
|
delete updatedComponent.datasource;
|
|
@@ -5897,7 +6156,7 @@
|
|
|
5897
6156
|
}
|
|
5898
6157
|
} });
|
|
5899
6158
|
this.updateOriginalRow(key, row);
|
|
5900
|
-
return Object.assign(Object.assign({}, componentProps), { name: compName, parent: this, align: column.align, showLabel: false, showHelper: false, dense: true, value: colValue, events: newEvents, autofill: false });
|
|
6159
|
+
return Object.assign(Object.assign({}, componentProps), { name: compName, parent: this, align: column.align, showLabel: false, showHelper: false, dense: true, value: colValue, events: newEvents, autofill: false, allowDuplicate: true });
|
|
5901
6160
|
}
|
|
5902
6161
|
checkLookupData(column, row, componentProps) {
|
|
5903
6162
|
if (row[column.name] && column.lookupData && componentProps.datasource) {
|
|
@@ -6006,21 +6265,25 @@
|
|
|
6006
6265
|
*/
|
|
6007
6266
|
cancelEditedRows() {
|
|
6008
6267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6009
|
-
yield this.
|
|
6268
|
+
yield this.cancelAddedRows();
|
|
6010
6269
|
this.editing = false;
|
|
6011
6270
|
this.editedRows = {};
|
|
6012
6271
|
this.invalidComponents = {};
|
|
6013
6272
|
});
|
|
6014
6273
|
}
|
|
6015
|
-
|
|
6274
|
+
cancelAddedRows() {
|
|
6016
6275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6017
|
-
const { data } = this.datasource;
|
|
6018
|
-
|
|
6276
|
+
const { data, page } = this.datasource;
|
|
6277
|
+
const allData = this.datasource.allData || data;
|
|
6278
|
+
Promise.resolve(allData);
|
|
6279
|
+
allData.forEach((row, index) => {
|
|
6019
6280
|
if (row[this.newRowIdentifier]) {
|
|
6020
|
-
|
|
6281
|
+
allData.splice(index, 1);
|
|
6021
6282
|
}
|
|
6022
6283
|
});
|
|
6023
|
-
yield this.datasource.updateData(
|
|
6284
|
+
yield this.datasource.updateData(allData);
|
|
6285
|
+
yield this.datasource.get();
|
|
6286
|
+
yield this.datasource.setPage(page);
|
|
6024
6287
|
});
|
|
6025
6288
|
}
|
|
6026
6289
|
addDataRow(row) {
|
|
@@ -6036,7 +6299,7 @@
|
|
|
6036
6299
|
*/
|
|
6037
6300
|
saveEditedRows(revalidate = false) {
|
|
6038
6301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6039
|
-
yield this.
|
|
6302
|
+
yield this.cancelAddedRows();
|
|
6040
6303
|
const response = yield Promise.all(this.getEditedRows(revalidate).map((row) => this.addDataRow(row)));
|
|
6041
6304
|
this.editing = false;
|
|
6042
6305
|
this.editedRows = {};
|
|
@@ -6378,10 +6641,6 @@
|
|
|
6378
6641
|
* Text to be shown if an error occurs.
|
|
6379
6642
|
*/
|
|
6380
6643
|
this.errorImageText = '';
|
|
6381
|
-
/**
|
|
6382
|
-
* Height of the image, e.g. <samp>\"100px\"</samp> or <samp>\"50%\"</samp>.
|
|
6383
|
-
*/
|
|
6384
|
-
this.height = '';
|
|
6385
6644
|
/**
|
|
6386
6645
|
* Defines how the image should be resized to fit its container.
|
|
6387
6646
|
* See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit\"
|
|
@@ -6390,32 +6649,58 @@
|
|
|
6390
6649
|
*/
|
|
6391
6650
|
this.objectFit = '';
|
|
6392
6651
|
/**
|
|
6393
|
-
*
|
|
6652
|
+
* Defines the component height. Possible values for this property can be
|
|
6653
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
6394
6654
|
*/
|
|
6395
|
-
this.
|
|
6655
|
+
this.height = 'auto';
|
|
6396
6656
|
/**
|
|
6397
|
-
*
|
|
6657
|
+
* Defines the component min height. Possible values for this property can be
|
|
6658
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
6398
6659
|
*/
|
|
6399
|
-
this.
|
|
6660
|
+
this.minHeight = 'auto';
|
|
6661
|
+
/**
|
|
6662
|
+
* Defines the component max height. Possible values for this property can be
|
|
6663
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
6664
|
+
*/
|
|
6665
|
+
this.maxHeight = 'none';
|
|
6666
|
+
/**
|
|
6667
|
+
* Set component height to fill all space available
|
|
6668
|
+
*/
|
|
6669
|
+
this.fillHeight = false;
|
|
6670
|
+
/**
|
|
6671
|
+
* Defines the component width. Possible values for this property can be
|
|
6672
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
6673
|
+
*/
|
|
6674
|
+
this.width = 'auto';
|
|
6675
|
+
/**
|
|
6676
|
+
* Defines the component min width. Possible values for this property can be
|
|
6677
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
6678
|
+
*/
|
|
6679
|
+
this.minWidth = 'auto';
|
|
6680
|
+
/**
|
|
6681
|
+
* Defines the component max height. Possible values for this property can be
|
|
6682
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
6683
|
+
*/
|
|
6684
|
+
this.maxWidth = 'none';
|
|
6685
|
+
/**
|
|
6686
|
+
* Source of the image file.
|
|
6687
|
+
*/
|
|
6688
|
+
this.srcValue = '';
|
|
6400
6689
|
this.validImage = undefined;
|
|
6401
6690
|
this.src = this.getInitValue('src', props.src, this.srcValue);
|
|
6402
6691
|
this.alt = this.getInitValue('alt', props.alt, this.alt);
|
|
6403
6692
|
this.errorImagePath = this.getInitValue('errorImagePath', props.errorImagePath, this.errorImagePath);
|
|
6404
6693
|
this.errorImageText = this.getInitValue('errorImageText', props.errorImageText, this.errorImageText);
|
|
6405
|
-
this.width = this.getInitValue('width', props.width, this.width);
|
|
6406
6694
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
6695
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
6696
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
6697
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
6698
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
6699
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
6700
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
6407
6701
|
this.objectFit = this.getInitValue('objectFit', props.objectFit, this.objectFit);
|
|
6408
6702
|
this.createAccessors();
|
|
6409
6703
|
}
|
|
6410
|
-
/**
|
|
6411
|
-
* Returns the style attribute for the image component
|
|
6412
|
-
*/
|
|
6413
|
-
getStyle() {
|
|
6414
|
-
const width = this.width ? `width: ${this.width}; ` : '';
|
|
6415
|
-
const height = this.height ? `height: ${this.height}; ` : '';
|
|
6416
|
-
const objectFit = this.objectFit ? `object-fit: ${this.objectFit};` : '';
|
|
6417
|
-
return width + height + objectFit;
|
|
6418
|
-
}
|
|
6419
6704
|
/**
|
|
6420
6705
|
* Event to be called after the error image is loaded
|
|
6421
6706
|
*/
|
|
@@ -7368,17 +7653,39 @@
|
|
|
7368
7653
|
},
|
|
7369
7654
|
];
|
|
7370
7655
|
/**
|
|
7371
|
-
*
|
|
7656
|
+
* Defines the component height. Possible values for this property can be
|
|
7657
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7372
7658
|
*/
|
|
7373
7659
|
this.height = 'auto';
|
|
7374
7660
|
/**
|
|
7375
|
-
*
|
|
7661
|
+
* Defines the component min height. Possible values for this property can be
|
|
7662
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7663
|
+
*/
|
|
7664
|
+
this.minHeight = 'auto';
|
|
7665
|
+
/**
|
|
7666
|
+
* Defines the component max height. Possible values for this property can be
|
|
7667
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7376
7668
|
*/
|
|
7377
7669
|
this.maxHeight = 'none';
|
|
7378
7670
|
/**
|
|
7379
|
-
*
|
|
7671
|
+
* Set component height to fill all space available
|
|
7672
|
+
*/
|
|
7673
|
+
this.fillHeight = false;
|
|
7674
|
+
/**
|
|
7675
|
+
* Defines the component width. Possible values for this property can be
|
|
7676
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7677
|
+
*/
|
|
7678
|
+
this.width = '100%';
|
|
7679
|
+
/**
|
|
7680
|
+
* Defines the component min width. Possible values for this property can be
|
|
7681
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7380
7682
|
*/
|
|
7381
|
-
this.
|
|
7683
|
+
this.minWidth = 'auto';
|
|
7684
|
+
/**
|
|
7685
|
+
* Defines the component max height. Possible values for this property can be
|
|
7686
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7687
|
+
*/
|
|
7688
|
+
this.maxWidth = 'none';
|
|
7382
7689
|
/**
|
|
7383
7690
|
* Components that will be rendered in error case
|
|
7384
7691
|
*/
|
|
@@ -7393,8 +7700,12 @@
|
|
|
7393
7700
|
this.noDataSlot = this.changeDefaultSlotNames(this.noDataSlot);
|
|
7394
7701
|
this.noResultSlot = this.changeDefaultSlotNames(this.noResultSlot);
|
|
7395
7702
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
7396
|
-
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
7397
7703
|
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
7704
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
7705
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
7706
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
7707
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
7708
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
7398
7709
|
this.createAccessors();
|
|
7399
7710
|
}
|
|
7400
7711
|
addSlashes(value) {
|
|
@@ -7480,17 +7791,39 @@
|
|
|
7480
7791
|
*/
|
|
7481
7792
|
this.expand = false;
|
|
7482
7793
|
/**
|
|
7483
|
-
*
|
|
7794
|
+
* Defines the component height. Possible values for this property can be
|
|
7795
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7484
7796
|
*/
|
|
7485
7797
|
this.height = 'auto';
|
|
7486
7798
|
/**
|
|
7487
|
-
*
|
|
7799
|
+
* Defines the component min height. Possible values for this property can be
|
|
7800
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7801
|
+
*/
|
|
7802
|
+
this.minHeight = 'auto';
|
|
7803
|
+
/**
|
|
7804
|
+
* Defines the component max height. Possible values for this property can be
|
|
7805
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7488
7806
|
*/
|
|
7489
7807
|
this.maxHeight = 'none';
|
|
7490
7808
|
/**
|
|
7491
|
-
*
|
|
7809
|
+
* Set component height to fill all space available
|
|
7810
|
+
*/
|
|
7811
|
+
this.fillHeight = false;
|
|
7812
|
+
/**
|
|
7813
|
+
* Defines the component width. Possible values for this property can be
|
|
7814
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7815
|
+
*/
|
|
7816
|
+
this.width = '100%';
|
|
7817
|
+
/**
|
|
7818
|
+
* Defines the component min width. Possible values for this property can be
|
|
7819
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7820
|
+
*/
|
|
7821
|
+
this.minWidth = 'auto';
|
|
7822
|
+
/**
|
|
7823
|
+
* Defines the component max height. Possible values for this property can be
|
|
7824
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
7492
7825
|
*/
|
|
7493
|
-
this.
|
|
7826
|
+
this.maxWidth = 'none';
|
|
7494
7827
|
this.dark = this.getInitValue('dark', props.dark, this.dark);
|
|
7495
7828
|
this.dense = this.getInitValue('dense', props.dense, this.dense);
|
|
7496
7829
|
this.disabled = this.getInitValue('disabled', props.disabled, this.disabled);
|
|
@@ -7503,8 +7836,12 @@
|
|
|
7503
7836
|
this.elevation = this.getInitValue('elevation', props.elevation, this.elevation);
|
|
7504
7837
|
this.expand = this.getInitValue('expand', props.expand, this.expand);
|
|
7505
7838
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
7506
|
-
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
7507
7839
|
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
7840
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
7841
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
7842
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
7843
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
7844
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
7508
7845
|
this.createAccessors();
|
|
7509
7846
|
}
|
|
7510
7847
|
/**
|
|
@@ -8870,10 +9207,33 @@
|
|
|
8870
9207
|
super(props);
|
|
8871
9208
|
this.dense = true;
|
|
8872
9209
|
this.noGutters = false;
|
|
9210
|
+
/**
|
|
9211
|
+
* Defines the component height. Possible values for this property can be
|
|
9212
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
9213
|
+
*/
|
|
9214
|
+
this.height = 'auto';
|
|
9215
|
+
/**
|
|
9216
|
+
* Defines the component min height. Possible values for this property can be
|
|
9217
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
9218
|
+
*/
|
|
9219
|
+
this.minHeight = 'auto';
|
|
9220
|
+
/**
|
|
9221
|
+
* Defines the component max height. Possible values for this property can be
|
|
9222
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
9223
|
+
*/
|
|
9224
|
+
this.maxHeight = 'none';
|
|
9225
|
+
/**
|
|
9226
|
+
* Set component height to fill all space available
|
|
9227
|
+
*/
|
|
9228
|
+
this.fillHeight = false;
|
|
8873
9229
|
this.align = this.getInitValue('align', props.align, this.align);
|
|
8874
9230
|
this.dense = this.getInitValue('dense', props.dense, this.dense);
|
|
8875
9231
|
this.justify = this.getInitValue('justify', props.justify, this.justify);
|
|
8876
9232
|
this.noGutters = this.getInitValue('noGutters', props.noGutters, this.noGutters);
|
|
9233
|
+
this.height = this.getInitValue('height', props.height, this.height);
|
|
9234
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
9235
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
9236
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
8877
9237
|
this.createAccessors();
|
|
8878
9238
|
}
|
|
8879
9239
|
}
|
|
@@ -10130,11 +10490,52 @@
|
|
|
10130
10490
|
* Sets the active list-item inside the list-group
|
|
10131
10491
|
*/
|
|
10132
10492
|
this.value = undefined;
|
|
10493
|
+
/**
|
|
10494
|
+
* Defines the component height. Possible values for this property can be
|
|
10495
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10496
|
+
*/
|
|
10497
|
+
this.height = 'auto';
|
|
10498
|
+
/**
|
|
10499
|
+
* Defines the component min height. Possible values for this property can be
|
|
10500
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10501
|
+
*/
|
|
10502
|
+
this.minHeight = 'auto';
|
|
10503
|
+
/**
|
|
10504
|
+
* Defines the component max height. Possible values for this property can be
|
|
10505
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10506
|
+
*/
|
|
10507
|
+
this.maxHeight = 'none';
|
|
10508
|
+
/**
|
|
10509
|
+
* Set component height to fill all space available
|
|
10510
|
+
*/
|
|
10511
|
+
this.fillHeight = false;
|
|
10512
|
+
/**
|
|
10513
|
+
* Defines the component width. Possible values for this property can be
|
|
10514
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10515
|
+
*/
|
|
10516
|
+
this.width = '100%';
|
|
10517
|
+
/**
|
|
10518
|
+
* Defines the component min width. Possible values for this property can be
|
|
10519
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10520
|
+
*/
|
|
10521
|
+
this.minWidth = 'auto';
|
|
10522
|
+
/**
|
|
10523
|
+
* Defines the component max height. Possible values for this property can be
|
|
10524
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10525
|
+
*/
|
|
10526
|
+
this.maxWidth = 'none';
|
|
10133
10527
|
this.activeClass = this.getInitValue('activeClass', props.activeClass, this.activeClass);
|
|
10134
10528
|
this.mandatory = this.getInitValue('mandatory', props.mandatory, this.mandatory);
|
|
10135
10529
|
this.max = this.getInitValue('max', props.max, this.max);
|
|
10136
10530
|
this.multiple = this.getInitValue('multiple', props.multiple, this.multiple);
|
|
10137
10531
|
this.value = this.getInitValue('value', props.value, this.value);
|
|
10532
|
+
this.height = this.getInitValue('height', props.height, this.height);
|
|
10533
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
10534
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
10535
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
10536
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
10537
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
10538
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
10138
10539
|
this.createAccessors();
|
|
10139
10540
|
}
|
|
10140
10541
|
change(event, element) {
|
|
@@ -10431,9 +10832,32 @@
|
|
|
10431
10832
|
* Controls table head visibility.
|
|
10432
10833
|
*/
|
|
10433
10834
|
this.showTableHead = true;
|
|
10835
|
+
/**
|
|
10836
|
+
* Defines the component height. Possible values for this property can be
|
|
10837
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10838
|
+
*/
|
|
10839
|
+
this.height = 'auto';
|
|
10840
|
+
/**
|
|
10841
|
+
* Defines the component min height. Possible values for this property can be
|
|
10842
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10843
|
+
*/
|
|
10844
|
+
this.minHeight = 'auto';
|
|
10845
|
+
/**
|
|
10846
|
+
* Defines the component max height. Possible values for this property can be
|
|
10847
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10848
|
+
*/
|
|
10849
|
+
this.maxHeight = 'none';
|
|
10850
|
+
/**
|
|
10851
|
+
* Set component height to fill all space available
|
|
10852
|
+
*/
|
|
10853
|
+
this.fillHeight = false;
|
|
10434
10854
|
this.caption = Object.assign(Object.assign({}, this.caption), props.caption || {});
|
|
10435
10855
|
this.fillWidth = this.getInitValue('fillWidth', props.fillWidth, this.fillWidth);
|
|
10436
10856
|
this.showTableHead = this.getInitValue('showTableHead', props.showTableHead, this.showTableHead);
|
|
10857
|
+
this.height = this.getInitValue('height', props.height, this.height);
|
|
10858
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
10859
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
10860
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
10437
10861
|
this.createAccessors();
|
|
10438
10862
|
}
|
|
10439
10863
|
}
|
|
@@ -10454,7 +10878,6 @@
|
|
|
10454
10878
|
this.lazyLoad = true;
|
|
10455
10879
|
this.tabTitle = this.getInitValue('tabTitle', props.tabTitle, this.tabTitle);
|
|
10456
10880
|
this.disabled = this.getInitValue('disabled', props.disabled, this.disabled);
|
|
10457
|
-
this.flex = this.getInitValue('flex', props.flex, this.flex);
|
|
10458
10881
|
this.lazyLoad = this.getInitValue('lazyLoad', props.lazyLoad, this.lazyLoad);
|
|
10459
10882
|
this.createAccessors();
|
|
10460
10883
|
}
|
|
@@ -10488,9 +10911,31 @@
|
|
|
10488
10911
|
super(props);
|
|
10489
10912
|
this.activeTabValue = 0;
|
|
10490
10913
|
this.tabs = [];
|
|
10914
|
+
/**
|
|
10915
|
+
* Defines the component height. Possible values for this property can be
|
|
10916
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10917
|
+
*/
|
|
10918
|
+
this.height = 'auto';
|
|
10919
|
+
/**
|
|
10920
|
+
* Defines the component min height. Possible values for this property can be
|
|
10921
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10922
|
+
*/
|
|
10923
|
+
this.minHeight = 'auto';
|
|
10924
|
+
/**
|
|
10925
|
+
* Defines the component max height. Possible values for this property can be
|
|
10926
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10927
|
+
*/
|
|
10928
|
+
this.maxHeight = 'none';
|
|
10929
|
+
/**
|
|
10930
|
+
* Set component height to fill all space available
|
|
10931
|
+
*/
|
|
10932
|
+
this.fillHeight = false;
|
|
10491
10933
|
this.tabs = this.getTabs(props.tabs || []);
|
|
10492
10934
|
this.activeTab = this.getInitValue('activeTab', props.activeTab, this.activeTabValue);
|
|
10493
10935
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
10936
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
10937
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
10938
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
10494
10939
|
this.createAccessors();
|
|
10495
10940
|
}
|
|
10496
10941
|
get activeTab() {
|
|
@@ -10652,11 +11097,22 @@
|
|
|
10652
11097
|
*/
|
|
10653
11098
|
this.rows = 5;
|
|
10654
11099
|
/**
|
|
10655
|
-
*
|
|
11100
|
+
* Defines the component height. Possible values for this property can be
|
|
11101
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
10656
11102
|
*/
|
|
10657
11103
|
this.height = 'auto';
|
|
10658
11104
|
/**
|
|
10659
|
-
*
|
|
11105
|
+
* Defines the component min height. Possible values for this property can be
|
|
11106
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
11107
|
+
*/
|
|
11108
|
+
this.minHeight = 'auto';
|
|
11109
|
+
/**
|
|
11110
|
+
* Defines the component max height. Possible values for this property can be
|
|
11111
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
11112
|
+
*/
|
|
11113
|
+
this.maxHeight = 'none';
|
|
11114
|
+
/**
|
|
11115
|
+
* Set component height to fill all space available
|
|
10660
11116
|
*/
|
|
10661
11117
|
this.fillHeight = false;
|
|
10662
11118
|
this.autoGrow = this.getInitValue('autoGrow', props.autoGrow, this.autoGrow);
|
|
@@ -10671,6 +11127,8 @@
|
|
|
10671
11127
|
this.rowHeight = this.getInitValue('rowHeight', props.rowHeight, this.rowHeight);
|
|
10672
11128
|
this.rows = this.getInitValue('rows', props.rows, this.rows);
|
|
10673
11129
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
11130
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
11131
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
10674
11132
|
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
10675
11133
|
this.createAccessors();
|
|
10676
11134
|
if (this.counter && !Number.isNaN(parseInt(this.counter.toString(), 10))) {
|
|
@@ -11170,6 +11628,40 @@
|
|
|
11170
11628
|
* Components that will be rendered on toolbar slot
|
|
11171
11629
|
*/
|
|
11172
11630
|
this.toolbarSlot = [];
|
|
11631
|
+
/**
|
|
11632
|
+
* Defines the component height. Possible values for this property can be
|
|
11633
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
11634
|
+
*/
|
|
11635
|
+
this.height = 'auto';
|
|
11636
|
+
/**
|
|
11637
|
+
* Defines the component min height. Possible values for this property can be
|
|
11638
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
11639
|
+
*/
|
|
11640
|
+
this.minHeight = 'auto';
|
|
11641
|
+
/**
|
|
11642
|
+
* Defines the component max height. Possible values for this property can be
|
|
11643
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
11644
|
+
*/
|
|
11645
|
+
this.maxHeight = 'none';
|
|
11646
|
+
/**
|
|
11647
|
+
* Set component height to fill all space available
|
|
11648
|
+
*/
|
|
11649
|
+
this.fillHeight = false;
|
|
11650
|
+
/**
|
|
11651
|
+
* Defines the component width. Possible values for this property can be
|
|
11652
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
11653
|
+
*/
|
|
11654
|
+
this.width = '100%';
|
|
11655
|
+
/**
|
|
11656
|
+
* Defines the component min width. Possible values for this property can be
|
|
11657
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
11658
|
+
*/
|
|
11659
|
+
this.minWidth = 'auto';
|
|
11660
|
+
/**
|
|
11661
|
+
* Defines the component max height. Possible values for this property can be
|
|
11662
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
11663
|
+
*/
|
|
11664
|
+
this.maxWidth = 'none';
|
|
11173
11665
|
/**
|
|
11174
11666
|
* Components that will be rendered on title slot
|
|
11175
11667
|
*/
|
|
@@ -11213,7 +11705,12 @@
|
|
|
11213
11705
|
this.openLevelOnLoad = this.getInitValue('openLevelOnLoad', props.openLevelOnLoad, this.openLevelOnLoad);
|
|
11214
11706
|
this.checkbox = this.getInitValue('checkbox', props.checkbox, this.checkbox);
|
|
11215
11707
|
this.height = this.getInitValue('height', props.height, this.height);
|
|
11708
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
11216
11709
|
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
11710
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
11711
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
11712
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
11713
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
11217
11714
|
this.disableCheckbox = this.getInitValue('disableCheckbox', props.disableCheckbox, this.disableCheckbox);
|
|
11218
11715
|
this.afterTitleSlot = props.afterTitleSlot || this.afterTitleSlot;
|
|
11219
11716
|
this.toolbarSlot = props.toolbarSlot || this.toolbarSlot;
|
|
@@ -11965,7 +12462,7 @@
|
|
|
11965
12462
|
}
|
|
11966
12463
|
} });
|
|
11967
12464
|
this.updateOriginalRow(key, row);
|
|
11968
|
-
return Object.assign(Object.assign({}, componentProps), { name: compName, parent: this, align: column.align, showLabel: false, showHelper: false, dense: true, value: colValue, events: newEvents, autofill: false });
|
|
12465
|
+
return Object.assign(Object.assign({}, componentProps), { name: compName, parent: this, align: column.align, showLabel: false, showHelper: false, dense: true, value: colValue, events: newEvents, autofill: false, allowDuplicate: true });
|
|
11969
12466
|
}
|
|
11970
12467
|
updateOriginalRow(key, row) {
|
|
11971
12468
|
if (this.editedRows[key] !== undefined)
|