@wavemaker/app-ng-runtime 11.7.1-next.NULL → 11.7.1-rc.162
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.
- app-ng-runtime/build-task/bundles/index.umd.js +11 -1
- app-ng-runtime/build-task/esm2022/basic/default/label/label.build.mjs +12 -2
- app-ng-runtime/build-task/fesm2022/index.mjs +11 -1
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/bundles/index.umd.js +2 -0
- app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +3 -1
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +2 -0
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +12 -12
- app-ng-runtime/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +5 -5
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +9 -9
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +12 -12
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tab-pane/tab-pane.component.d.ts +1 -1
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +3 -3
- app-ng-runtime/components/data/table/bundles/index.umd.js +3 -0
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +3 -1
- app-ng-runtime/components/data/table/esm2022/table.props.mjs +2 -1
- app-ng-runtime/components/data/table/fesm2022/index.mjs +3 -0
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +2 -0
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +20 -12
- app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +19 -11
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +2 -2
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +2 -2
- app-ng-runtime/components/input/epoch/esm2022/epoch.module.mjs +1 -1
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +20 -12
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +54 -1
- app-ng-runtime/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +51 -1
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +5 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +54 -1
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown/menu-dropdown.component.d.ts +4 -0
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +2 -1
- app-ng-runtime/locales/moment-timezone/moment-timezone-with-data.js +66 -33
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +37 -3
app-ng-runtime/package.json
CHANGED
|
@@ -19,6 +19,7 @@ $.widget('wm.datatable', {
|
|
|
19
19
|
isMobile: false,
|
|
20
20
|
enableSort: true,
|
|
21
21
|
filtermode: '',
|
|
22
|
+
filteronkeypress: false,
|
|
22
23
|
activeRow: undefined,
|
|
23
24
|
height: '100%',
|
|
24
25
|
showHeader: true,
|
|
@@ -964,6 +965,7 @@ $.widget('wm.datatable', {
|
|
|
964
965
|
gridElement: null,
|
|
965
966
|
gridHeader: null,
|
|
966
967
|
gridBody: null,
|
|
968
|
+
columnClickInfo: {},
|
|
967
969
|
gridFooter: null,
|
|
968
970
|
gridSearch: null,
|
|
969
971
|
tableId: null,
|
|
@@ -1662,6 +1664,9 @@ $.widget('wm.datatable', {
|
|
|
1662
1664
|
// triggered on capture phase of click listener.
|
|
1663
1665
|
// sets the selected rowdata on click.
|
|
1664
1666
|
rowClickHandlerOnCapture: function (e, $row, options) {
|
|
1667
|
+
if(this.getColInfo(e) && (e.target.type != 'checkbox')) {
|
|
1668
|
+
return;
|
|
1669
|
+
}
|
|
1665
1670
|
$row = $row || $(e.target).closest('tr.app-datagrid-row');
|
|
1666
1671
|
var gridRow = this.gridElement.find($row);
|
|
1667
1672
|
// WMS-21139 trigger selectedItems change when the captured click is on the current table but not on child table
|
|
@@ -1675,6 +1680,9 @@ $.widget('wm.datatable', {
|
|
|
1675
1680
|
|
|
1676
1681
|
/* Handles row selection. */
|
|
1677
1682
|
rowSelectionHandler: function (e, $row, options) {
|
|
1683
|
+
if(this.getColInfo(e) && (e.target.type != 'checkbox')) {
|
|
1684
|
+
return;
|
|
1685
|
+
}
|
|
1678
1686
|
options = options || {};
|
|
1679
1687
|
var rowId,
|
|
1680
1688
|
rowData,
|
|
@@ -2684,18 +2692,44 @@ $.widget('wm.datatable', {
|
|
|
2684
2692
|
}
|
|
2685
2693
|
return false;
|
|
2686
2694
|
},
|
|
2695
|
+
getColInfo: function(event) {
|
|
2696
|
+
var row = $(event.target).closest('tr.app-datagrid-row');
|
|
2697
|
+
var rowId = row.attr('data-row-id');
|
|
2698
|
+
var column = $(event.target).closest('td.app-datagrid-cell');
|
|
2699
|
+
var colId = column.attr('data-col-id');
|
|
2700
|
+
if(this.columnClickInfo && this.columnClickInfo[rowId] && this.columnClickInfo[rowId][colId]) {
|
|
2701
|
+
return this.columnClickInfo[rowId][colId];
|
|
2702
|
+
}
|
|
2703
|
+
return false;
|
|
2704
|
+
},
|
|
2687
2705
|
/* Attaches all event handlers for the table. */
|
|
2688
2706
|
attachEventHandlers: function ($htm) {
|
|
2689
2707
|
var $header = this.gridHeaderElement,
|
|
2690
2708
|
self = this;
|
|
2691
2709
|
|
|
2692
2710
|
if (this.options.enableRowSelection) {
|
|
2693
|
-
$htm[0].removeEventListener('click', this.rowClickHandlerOnCapture.bind(this)
|
|
2711
|
+
$htm[0].removeEventListener('click', this.rowClickHandlerOnCapture.bind(this));
|
|
2694
2712
|
$htm.off();
|
|
2713
|
+
$htm[0].addEventListener('click', this.rowClickHandlerOnCapture.bind(this));
|
|
2695
2714
|
// add js click handler for capture phase in order to first listen on grid and
|
|
2696
2715
|
// assign selectedItems so that any child actions can have access to the selectedItems.
|
|
2697
|
-
$htm[0].addEventListener('click', this.rowClickHandlerOnCapture.bind(this), true);
|
|
2698
2716
|
$htm.on('click', this.rowSelectionHandler.bind(this));
|
|
2717
|
+
$htm.on("click", "td *", function(event) {
|
|
2718
|
+
|
|
2719
|
+
// Prevent propagation to parent elements
|
|
2720
|
+
if(event.target.type != 'checkbox'){
|
|
2721
|
+
var row = $(event.target).closest('tr.app-datagrid-row');
|
|
2722
|
+
var rowId = row.attr('data-row-id');
|
|
2723
|
+
var column = $(event.target).closest('td.app-datagrid-cell');
|
|
2724
|
+
var colId = column.attr('data-col-id');
|
|
2725
|
+
var id = Number(colId);
|
|
2726
|
+
var colDefination = self.preparedHeaderData[id];
|
|
2727
|
+
if(colDefination.readonly) {
|
|
2728
|
+
self.columnClickInfo[rowId] = {};
|
|
2729
|
+
self.columnClickInfo[rowId][colId] = true;
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
});
|
|
2699
2733
|
$htm.on('dblclick', this.rowDblClickHandler.bind(this));
|
|
2700
2734
|
$htm.on('keydown', this.onKeyDown.bind(this));
|
|
2701
2735
|
}
|
|
@@ -2924,7 +2958,7 @@ $.widget('wm.datatable', {
|
|
|
2924
2958
|
}
|
|
2925
2959
|
|
|
2926
2960
|
/* Search only when enter key is pressed. */
|
|
2927
|
-
if (e.which === 13) {
|
|
2961
|
+
if (e.which === 13 || self.options.filteronkeypress) {
|
|
2928
2962
|
search(e);
|
|
2929
2963
|
}
|
|
2930
2964
|
});
|