@vitrosoftware/common-ui-ts 1.1.52 → 1.1.54
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/css/std/controls/search/checkbox-list.css +5 -0
- package/css/std/controls/table-view/treegrid.css +11 -8
- package/dist/controls/Checkbox/Checkbox.d.ts +1 -1
- package/dist/controls/TableView/TableView.d.ts +1 -0
- package/dist/controls/TableView/TableViewConstants.d.ts +7 -2
- package/dist/controls/TableView/TableViewContext.d.ts +1 -0
- package/dist/controls/TableView/TreeGridTableViewContextImpl.d.ts +1 -0
- package/dist/index.css +5 -0
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.TWLow .TWIconRight {
|
|
120
|
-
background-position
|
|
120
|
+
background-position: center;
|
|
121
121
|
background-size: 24px;
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -139,13 +139,21 @@
|
|
|
139
139
|
.TWCellMenuMain,
|
|
140
140
|
.TWFilterMenuMain {
|
|
141
141
|
width: 241px !important;
|
|
142
|
-
margin-top: 24px !important;
|
|
143
|
-
margin-left: -34px;
|
|
144
142
|
border: none;
|
|
145
143
|
border-radius: 4px;
|
|
146
144
|
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.15), 0px 0px 4px 0px rgba(0, 0, 0, 0.12);
|
|
147
145
|
}
|
|
148
146
|
|
|
147
|
+
.TWCellMenuMain {
|
|
148
|
+
margin-top: 24px !important;
|
|
149
|
+
margin-left: -27px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.TWFilterMenuMain {
|
|
153
|
+
margin-top: 8px !important;
|
|
154
|
+
margin-left: -22px;
|
|
155
|
+
}
|
|
156
|
+
|
|
149
157
|
.TWCellMenuMain::before,
|
|
150
158
|
.TWFilterMenuMain::before {
|
|
151
159
|
content: '';
|
|
@@ -313,11 +321,6 @@
|
|
|
313
321
|
background-repeat: no-repeat;
|
|
314
322
|
}
|
|
315
323
|
|
|
316
|
-
.TWIconRight.TWCellFilter {
|
|
317
|
-
background-size: 16px 16px !important;
|
|
318
|
-
background-position: 0 !important;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
324
|
.TWRightSplitter {
|
|
322
325
|
background: #4292F7;
|
|
323
326
|
}
|
|
@@ -12,6 +12,7 @@ export interface TableViewProps {
|
|
|
12
12
|
controller?: string | undefined;
|
|
13
13
|
listCode?: string | undefined;
|
|
14
14
|
eventHandlerList?: TableViewEventHandler[];
|
|
15
|
+
onCustomAjax?: (grid: any, source: any, data: string, func: (code: any, result: any) => any) => any;
|
|
15
16
|
onInit?: ((grid: TableViewContext, next?: () => any) => any) | undefined;
|
|
16
17
|
onSelect?: ((grid: TableViewContext, row: TableViewRow, deselect: boolean, columnList: string[], test: boolean) => any) | undefined;
|
|
17
18
|
layout?: any;
|
|
@@ -3,6 +3,8 @@ export declare enum EVENT {
|
|
|
3
3
|
ON_DATA_SEND = "OnDataSend",
|
|
4
4
|
ON_LOADED = "OnLoaded",
|
|
5
5
|
ON_CLICK = "OnClick",
|
|
6
|
+
ON_CLICK_PANEL = "OnClickPanel",
|
|
7
|
+
ON_CLICK_CELL = "OnClickCell",
|
|
6
8
|
ON_BLUR = "OnBlur",
|
|
7
9
|
ON_DBL_CLICK = "OnDblClick",
|
|
8
10
|
ON_CONTEXT_MENU = "OnContextMenu",
|
|
@@ -32,7 +34,9 @@ export declare enum EVENT {
|
|
|
32
34
|
ON_SUGGEST = "OnSuggest",
|
|
33
35
|
ON_VALUE_CHANGED = "OnValueChanged",
|
|
34
36
|
ON_DRAG_OVER = "OnDragOver",
|
|
35
|
-
ON_DROP = "OnDrop"
|
|
37
|
+
ON_DROP = "OnDrop",
|
|
38
|
+
ON_INIT = "OnInit",
|
|
39
|
+
ON_CUSTOM_AJAX = "OnCustomAjax"
|
|
36
40
|
}
|
|
37
41
|
export declare enum URL {
|
|
38
42
|
LAYOUT = "Layout",
|
|
@@ -54,7 +58,8 @@ export declare enum COLUMN {
|
|
|
54
58
|
export declare enum ROW_TYPE {
|
|
55
59
|
HEADER = "Header",
|
|
56
60
|
DATA = "Data",
|
|
57
|
-
FILTER = "Filter"
|
|
61
|
+
FILTER = "Filter",
|
|
62
|
+
GROUP = "Group"
|
|
58
63
|
}
|
|
59
64
|
export declare enum CELL_TYPE {
|
|
60
65
|
DATE = "Date",
|
package/dist/index.css
CHANGED
|
@@ -5203,6 +5203,11 @@ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
|
|
|
5203
5203
|
._checkbox-list_vitro-checkbox-list_1iZSkkv ._checkbox-list_vitro-control_cxgm4cj {
|
|
5204
5204
|
margin-bottom: 8px;
|
|
5205
5205
|
margin-right: 12px;
|
|
5206
|
+
width: unset !important;
|
|
5207
|
+
}
|
|
5208
|
+
|
|
5209
|
+
._checkbox-list_vitro-checkbox-list_1iZSkkv ._checkbox-list_vitro-control_cxgm4cj > div {
|
|
5210
|
+
width: unset !important;
|
|
5206
5211
|
}
|
|
5207
5212
|
|
|
5208
5213
|
._checkbox-list_vitro-checkbox-list_1iZSkkv ._checkbox-list_vitro-checkbox_1EqsnoQ {
|
package/dist/index.js
CHANGED
|
@@ -20684,6 +20684,9 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
|
|
|
20684
20684
|
_proto.getFilter = function getFilter(spec) {
|
|
20685
20685
|
return this.grid.GetFilter(spec);
|
|
20686
20686
|
};
|
|
20687
|
+
_proto.selectRange = function selectRange(row1, col1, row2, col2, select) {
|
|
20688
|
+
this.grid.SelectRange(row1, col1, row2, col2, select);
|
|
20689
|
+
};
|
|
20687
20690
|
_createClass(TreeGridTableViewContextImpl, [{
|
|
20688
20691
|
key: "columnList",
|
|
20689
20692
|
get: function get() {
|
|
@@ -20755,6 +20758,8 @@ var EVENT$1;
|
|
|
20755
20758
|
EVENT["ON_DATA_SEND"] = "OnDataSend";
|
|
20756
20759
|
EVENT["ON_LOADED"] = "OnLoaded";
|
|
20757
20760
|
EVENT["ON_CLICK"] = "OnClick";
|
|
20761
|
+
EVENT["ON_CLICK_PANEL"] = "OnClickPanel";
|
|
20762
|
+
EVENT["ON_CLICK_CELL"] = "OnClickCell";
|
|
20758
20763
|
EVENT["ON_BLUR"] = "OnBlur";
|
|
20759
20764
|
EVENT["ON_DBL_CLICK"] = "OnDblClick";
|
|
20760
20765
|
EVENT["ON_CONTEXT_MENU"] = "OnContextMenu";
|
|
@@ -20785,6 +20790,8 @@ var EVENT$1;
|
|
|
20785
20790
|
EVENT["ON_VALUE_CHANGED"] = "OnValueChanged";
|
|
20786
20791
|
EVENT["ON_DRAG_OVER"] = "OnDragOver";
|
|
20787
20792
|
EVENT["ON_DROP"] = "OnDrop";
|
|
20793
|
+
EVENT["ON_INIT"] = "OnInit";
|
|
20794
|
+
EVENT["ON_CUSTOM_AJAX"] = "OnCustomAjax";
|
|
20788
20795
|
})(EVENT$1 || (EVENT$1 = {}));
|
|
20789
20796
|
var URL;
|
|
20790
20797
|
(function (URL) {
|
|
@@ -20812,6 +20819,7 @@ var ROW_TYPE;
|
|
|
20812
20819
|
ROW_TYPE["HEADER"] = "Header";
|
|
20813
20820
|
ROW_TYPE["DATA"] = "Data";
|
|
20814
20821
|
ROW_TYPE["FILTER"] = "Filter";
|
|
20822
|
+
ROW_TYPE["GROUP"] = "Group";
|
|
20815
20823
|
})(ROW_TYPE || (ROW_TYPE = {}));
|
|
20816
20824
|
var CELL_TYPE;
|
|
20817
20825
|
(function (CELL_TYPE) {
|
|
@@ -21010,6 +21018,9 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
21010
21018
|
};
|
|
21011
21019
|
grid.setEventHandler(onDateSendEventHandler);
|
|
21012
21020
|
};
|
|
21021
|
+
var onGridInit = function onGridInit(g, reload) {
|
|
21022
|
+
g.scope = props.scope;
|
|
21023
|
+
};
|
|
21013
21024
|
var createGridUrl = function createGridUrl(dataKey) {
|
|
21014
21025
|
if (props.layout || props.data) {
|
|
21015
21026
|
return null;
|
|
@@ -21026,6 +21037,15 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
21026
21037
|
w$2.TGSetEvent(EVENT$1.ON_LOADED, props.id, function (grid, next) {
|
|
21027
21038
|
return onGridLoaded(grid, next);
|
|
21028
21039
|
});
|
|
21040
|
+
w$2.TGSetEvent(EVENT$1.ON_INIT, props.id, function (grid, reload) {
|
|
21041
|
+
return onGridInit(grid);
|
|
21042
|
+
});
|
|
21043
|
+
if (props.onCustomAjax) {
|
|
21044
|
+
var onCustomAjax = props.onCustomAjax;
|
|
21045
|
+
w$2.TGSetEvent(EVENT$1.ON_CUSTOM_AJAX, props.id, function (grid, source, data, func) {
|
|
21046
|
+
return onCustomAjax(grid, source, data, func);
|
|
21047
|
+
});
|
|
21048
|
+
}
|
|
21029
21049
|
if (props.layout || props.data) {
|
|
21030
21050
|
w$2.TreeGrid({
|
|
21031
21051
|
id: props.id,
|
|
@@ -21040,8 +21060,7 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
21040
21060
|
},
|
|
21041
21061
|
Debug: props.debug || '',
|
|
21042
21062
|
Cache: props.cache || CACHE.DEFAULT,
|
|
21043
|
-
CacheVersion: props.cacheVersion
|
|
21044
|
-
scope: props.scope
|
|
21063
|
+
CacheVersion: props.cacheVersion
|
|
21045
21064
|
}, "vitro-table-view" + props.id);
|
|
21046
21065
|
} else {
|
|
21047
21066
|
w$2.TreeGrid({
|
|
@@ -21060,8 +21079,7 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
21060
21079
|
},
|
|
21061
21080
|
Debug: props.debug || '',
|
|
21062
21081
|
Cache: props.cache || CACHE.DEFAULT,
|
|
21063
|
-
CacheVersion: props.cacheVersion
|
|
21064
|
-
scope: props.scope
|
|
21082
|
+
CacheVersion: props.cacheVersion
|
|
21065
21083
|
}, "vitro-table-view" + props.id);
|
|
21066
21084
|
}
|
|
21067
21085
|
return function () {
|
|
@@ -61002,7 +61020,7 @@ var Checkbox = function Checkbox(props) {
|
|
|
61002
61020
|
value = _useState[0],
|
|
61003
61021
|
setValue = _useState[1];
|
|
61004
61022
|
var onChange = function onChange() {
|
|
61005
|
-
props.onChange && props.onChange(!value);
|
|
61023
|
+
props.onChange && props.onChange(!value, props.name);
|
|
61006
61024
|
setValue(!value);
|
|
61007
61025
|
};
|
|
61008
61026
|
React.useEffect(function () {
|