@wavemaker/app-ng-runtime 11.11.4-rc.6172 → 11.11.5-rc.214
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/components/base/bundles/index.umd.js +1 -1
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +2 -2
- package/components/base/fesm2022/index.mjs +1 -1
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/data/form/bundles/index.umd.js +20 -1
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +5 -2
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +2 -1
- package/components/data/form/esm2022/form.component.mjs +15 -1
- package/components/data/form/esm2022/form.props.mjs +2 -1
- package/components/data/form/fesm2022/index.mjs +20 -1
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/form.component.d.ts +1 -0
- package/components/data/list/bundles/index.umd.js +53 -10
- package/components/data/list/esm2022/list.component.mjs +51 -10
- package/components/data/list/esm2022/list.props.mjs +4 -2
- package/components/data/list/fesm2022/index.mjs +53 -10
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/list.component.d.ts +7 -0
- package/components/data/pagination/bundles/index.umd.js +502 -106
- package/components/data/pagination/esm2022/pagination.component.mjs +500 -105
- package/components/data/pagination/esm2022/pagination.props.mjs +4 -1
- package/components/data/pagination/fesm2022/index.mjs +502 -104
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/pagination.component.d.ts +21 -1
- package/components/data/table/bundles/index.umd.js +89 -11
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +3 -2
- package/components/data/table/esm2022/table-column/table-column.props.mjs +2 -1
- package/components/data/table/esm2022/table.component.mjs +82 -12
- package/components/data/table/esm2022/table.props.mjs +7 -1
- package/components/data/table/fesm2022/index.mjs +90 -12
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table-column/table-column.directive.d.ts +1 -0
- package/components/data/table/table.component.d.ts +17 -0
- package/components/input/epoch/base-date-time.component.d.ts +3 -1
- package/components/input/epoch/bundles/index.umd.js +123 -65
- package/components/input/epoch/esm2022/base-date-time.component.mjs +31 -20
- package/components/input/epoch/esm2022/date/date.component.mjs +5 -6
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +45 -22
- package/components/input/epoch/esm2022/date-time/date-time.props.mjs +3 -2
- package/components/input/epoch/esm2022/time/time.component.mjs +40 -14
- package/components/input/epoch/esm2022/time/time.props.mjs +3 -2
- package/components/input/epoch/fesm2022/index.mjs +118 -60
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/bundles/index.umd.js +107 -38
- package/components/input/slider/esm2022/slider.component.mjs +86 -18
- package/components/input/slider/esm2022/slider.props.mjs +5 -3
- package/components/input/slider/fesm2022/index.mjs +88 -19
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/slider.component.d.ts +5 -0
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/esm2022/oAuth.service.mjs +1 -1
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +84 -34
- package/runtime/base/components/app-component/app.component.d.ts +10 -3
- package/runtime/base/esm2022/components/app-component/app.component.mjs +85 -34
- package/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +2 -2
- package/runtime/base/fesm2022/index.mjs +85 -35
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +56 -10
|
@@ -23,6 +23,7 @@ $.widget('wm.datatable', {
|
|
|
23
23
|
caseinsensitive: false,
|
|
24
24
|
activeRow: undefined,
|
|
25
25
|
isrowselectable: false,
|
|
26
|
+
allowpagesizechange: false,
|
|
26
27
|
height: '100%',
|
|
27
28
|
showHeader: true,
|
|
28
29
|
selectFirstRow: false,
|
|
@@ -31,6 +32,10 @@ $.widget('wm.datatable', {
|
|
|
31
32
|
enableRowSelection: true,
|
|
32
33
|
enableColumnSelection: false,
|
|
33
34
|
multiselect: false,
|
|
35
|
+
multiselecttitle: '',
|
|
36
|
+
multiselectarialabel: '',
|
|
37
|
+
radioselecttitle:'',
|
|
38
|
+
radioselectarialabel: '',
|
|
34
39
|
filterNullRecords: true,
|
|
35
40
|
navigation: '',
|
|
36
41
|
isdynamictable: '',
|
|
@@ -95,7 +100,9 @@ $.widget('wm.datatable', {
|
|
|
95
100
|
'style': 'width: 50px; text-align: center;',
|
|
96
101
|
'textAlignment': 'center',
|
|
97
102
|
'isMultiSelectCol': true,
|
|
98
|
-
'show': true
|
|
103
|
+
'show': true,
|
|
104
|
+
'multiselecttitle': '',
|
|
105
|
+
'multiselectarialabel': ''
|
|
99
106
|
},
|
|
100
107
|
'radio': {
|
|
101
108
|
'field': 'radio',
|
|
@@ -108,7 +115,9 @@ $.widget('wm.datatable', {
|
|
|
108
115
|
'readonly': true,
|
|
109
116
|
'style': 'width: 50px; text-align: center;',
|
|
110
117
|
'textAlignment': 'center',
|
|
111
|
-
'show': true
|
|
118
|
+
'show': true,
|
|
119
|
+
'radioselecttitle': '',
|
|
120
|
+
'radioselectarialabel': ''
|
|
112
121
|
},
|
|
113
122
|
'__expand': {
|
|
114
123
|
'field': '__expand',
|
|
@@ -736,12 +745,32 @@ $.widget('wm.datatable', {
|
|
|
736
745
|
} else {
|
|
737
746
|
switch (colDef.field) {
|
|
738
747
|
case 'checkbox':
|
|
748
|
+
if(Array.isArray(this.options.multiselecttitle)) {
|
|
749
|
+
$htm.attr('title',this.options.multiselecttitle[row.$$index-1])
|
|
750
|
+
} else{
|
|
751
|
+
$htm.attr('title',this.options.multiselecttitle);
|
|
752
|
+
}
|
|
753
|
+
if(Array.isArray(this.options.multiselectarialabel)) {
|
|
754
|
+
$htm.attr('aria-label',this.options.multiselectarialabel[row.$$index-1])
|
|
755
|
+
} else{
|
|
756
|
+
$htm.attr('aria-label',this.options.multiselectarialabel);
|
|
757
|
+
}
|
|
739
758
|
innerTmpl = this._getCheckboxTemplate(row, colDef.isMultiSelectCol);
|
|
740
759
|
break;
|
|
741
760
|
case '__expand':
|
|
742
761
|
innerTmpl = '<span class="row-expansion-column" data-identifier="rowExpansionButtons"></span>';
|
|
743
762
|
break;
|
|
744
763
|
case 'radio':
|
|
764
|
+
if(Array.isArray(this.options.radioselecttitle)) {
|
|
765
|
+
$htm.attr('title',this.options.radioselecttitle[row.$$index-1])
|
|
766
|
+
} else{
|
|
767
|
+
$htm.attr('title',this.options.radioselecttitle);
|
|
768
|
+
}
|
|
769
|
+
if(Array.isArray(this.options.radioselectarialabel)) {
|
|
770
|
+
$htm.attr('aria-label',this.options.radioselectarialabel[row.$$index-1])
|
|
771
|
+
} else{
|
|
772
|
+
$htm.attr('aria-label',this.options.radioselectarialabel);
|
|
773
|
+
}
|
|
745
774
|
innerTmpl = this._getRadioTemplate(row);
|
|
746
775
|
break;
|
|
747
776
|
case 'rowOperations':
|
|
@@ -1537,6 +1566,10 @@ $.widget('wm.datatable', {
|
|
|
1537
1566
|
this.addOrRemoveScroll();
|
|
1538
1567
|
break;
|
|
1539
1568
|
}
|
|
1569
|
+
case 'multiselecttitle':
|
|
1570
|
+
case 'multiselectarialabel':
|
|
1571
|
+
case 'radioselecttitle':
|
|
1572
|
+
case 'radioselectarialabel':
|
|
1540
1573
|
case 'multiselect': // Fallthrough
|
|
1541
1574
|
case 'showRadioColumn':
|
|
1542
1575
|
case 'isrowselectable' :
|
|
@@ -1896,9 +1929,7 @@ $.widget('wm.datatable', {
|
|
|
1896
1929
|
},
|
|
1897
1930
|
//Focus the active row
|
|
1898
1931
|
focusActiveRow: function () {
|
|
1899
|
-
if(this.options.editmode!==this.CONSTANTS.QUICK_EDIT){
|
|
1900
1932
|
this.gridElement.find('tr.app-datagrid-row.active').focus();
|
|
1901
|
-
}
|
|
1902
1933
|
},
|
|
1903
1934
|
focusNewRow: function () {
|
|
1904
1935
|
var newRow = this.gridElement.find('tr.always-new-row');
|
|
@@ -2576,7 +2607,7 @@ $.widget('wm.datatable', {
|
|
|
2576
2607
|
colDef.sortInfo = {'sorted': false, 'direction': ''};
|
|
2577
2608
|
}
|
|
2578
2609
|
sortInfo.direction = direction;
|
|
2579
|
-
sortInfo.field = field;
|
|
2610
|
+
sortInfo.field = this.preparedHeaderData && this.preparedHeaderData[e.currentTarget.getAttribute('data-col-id')].sortby || field;
|
|
2580
2611
|
if (direction !== '') {
|
|
2581
2612
|
this.preparedHeaderData[id].sortInfo = {'sorted': true, 'direction': direction};
|
|
2582
2613
|
}
|
|
@@ -2632,6 +2663,7 @@ $.widget('wm.datatable', {
|
|
|
2632
2663
|
} else {
|
|
2633
2664
|
//On click of enter while inside a widget in editing row, save the row
|
|
2634
2665
|
if ($row.hasClass('row-editing') && $target.closest('[data-field-name]').length) {
|
|
2666
|
+
const $editingRow = $row;
|
|
2635
2667
|
$target.blur(); //Blur the input, to update the model
|
|
2636
2668
|
self.toggleEditRow(event, {
|
|
2637
2669
|
'action': 'save',
|
|
@@ -2640,8 +2672,22 @@ $.widget('wm.datatable', {
|
|
|
2640
2672
|
if (error) {
|
|
2641
2673
|
$target.focus();
|
|
2642
2674
|
} else {
|
|
2643
|
-
|
|
2675
|
+
if(!quickEdit){
|
|
2676
|
+
self.focusActiveRow();
|
|
2677
|
+
}
|
|
2644
2678
|
self.options.timeoutCall(function () {
|
|
2679
|
+
if(quickEdit){
|
|
2680
|
+
var rowId = $editingRow[0]?.getAttribute('data-row-id');
|
|
2681
|
+
var matchingRow = self.gridElement[0].querySelector("tr[data-row-id='" + rowId + "']");
|
|
2682
|
+
if($(matchingRow).hasClass('always-new-row')){return;}
|
|
2683
|
+
if (matchingRow) {
|
|
2684
|
+
if (!self.options.multiselect) {
|
|
2685
|
+
$(self.gridElement).find('tr.app-datagrid-row.active').removeClass('active');
|
|
2686
|
+
}
|
|
2687
|
+
matchingRow.classList.remove('active');
|
|
2688
|
+
self.hideRowEditMode($(matchingRow));
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2645
2691
|
self.focusNewRow();
|
|
2646
2692
|
}, 400);
|
|
2647
2693
|
}
|
|
@@ -2689,7 +2735,7 @@ $.widget('wm.datatable', {
|
|
|
2689
2735
|
$row.trigger('click', [undefined, {action: 'cancel'}]);
|
|
2690
2736
|
}
|
|
2691
2737
|
|
|
2692
|
-
if (!isNewRow) {
|
|
2738
|
+
if (!isNewRow && self.options.editmode!==this.CONSTANTS.QUICK_EDIT) {
|
|
2693
2739
|
$row.focus();
|
|
2694
2740
|
}
|
|
2695
2741
|
return;
|
|
@@ -2834,14 +2880,14 @@ $.widget('wm.datatable', {
|
|
|
2834
2880
|
$htm.find('.save-edit-row-button').on('click', {action: 'save'}, this.toggleEditRow.bind(this));
|
|
2835
2881
|
}
|
|
2836
2882
|
if (self.options.editmode === self.CONSTANTS.QUICK_EDIT) {
|
|
2837
|
-
$htm.on('focus', 'tr.app-datagrid-row
|
|
2883
|
+
$htm.on('focus', 'tr.app-datagrid-row', function (e) {
|
|
2838
2884
|
var $row = $(e.currentTarget);
|
|
2839
2885
|
if (!$row.hasClass('row-editing')) {
|
|
2840
|
-
self.toggleEditRow(e, { $row: $row, action: 'edit'
|
|
2886
|
+
self.toggleEditRow(e, { $row: $row, action: 'edit'});
|
|
2841
2887
|
}
|
|
2842
2888
|
});
|
|
2843
2889
|
//On tab out of a row, save the current row and make next row editable
|
|
2844
|
-
$htm.on('focusout', 'tr.app-datagrid-row', function (e) {
|
|
2890
|
+
$htm.on('focusout', 'tr.app-datagrid-row','thead.table-header', function (e) {
|
|
2845
2891
|
var $target = $(e.target),
|
|
2846
2892
|
$row = $target.closest('tr.app-datagrid-row'),
|
|
2847
2893
|
$relatedTarget = $(e.relatedTarget),
|