@mcurros2/microm 1.1.9-0 → 1.1.10-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/index.d.ts +674 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1875,11 +1875,684 @@ export declare namespace w2locale {
|
|
|
1875
1875
|
'Your remote data source record count has changed, reloading from the first record.': string;
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
|
+
declare class w2base {
|
|
1879
|
+
/**
|
|
1880
|
+
* Initializes base object for w2ui, registers it with w2ui object
|
|
1881
|
+
*
|
|
1882
|
+
* @param {string} name - name of the object
|
|
1883
|
+
* @returns
|
|
1884
|
+
*/
|
|
1885
|
+
constructor(name: string);
|
|
1886
|
+
activeEvents: any[];
|
|
1887
|
+
listeners: any[];
|
|
1888
|
+
debug: boolean | undefined;
|
|
1889
|
+
/**
|
|
1890
|
+
* Adds event listener, supports event phase and event scoping
|
|
1891
|
+
*
|
|
1892
|
+
* @param {*} edata - an object or string, if string "eventName:phase.scope"
|
|
1893
|
+
* @param {*} handler
|
|
1894
|
+
* @returns itself
|
|
1895
|
+
*/
|
|
1896
|
+
on(events: any, handler: any): this;
|
|
1897
|
+
/**
|
|
1898
|
+
* Removes event listener, supports event phase and event scoping
|
|
1899
|
+
*
|
|
1900
|
+
* @param {*} edata - an object or string, if string "eventName:phase.scope"
|
|
1901
|
+
* @param {*} handler
|
|
1902
|
+
* @returns itself
|
|
1903
|
+
*/
|
|
1904
|
+
off(events: any, handler: any): this;
|
|
1905
|
+
/**
|
|
1906
|
+
* Triggers even listeners for a specific event, loops through this.listeners
|
|
1907
|
+
*
|
|
1908
|
+
* @param {Object} edata - Object
|
|
1909
|
+
* @returns modified edata
|
|
1910
|
+
*/
|
|
1911
|
+
trigger(eventName: any, edata: Object, ...args: any[]): Object | undefined;
|
|
1912
|
+
/**
|
|
1913
|
+
* This method renders component into the box. It is overwritten in descendents and in this base
|
|
1914
|
+
* component it is empty.
|
|
1915
|
+
*/
|
|
1916
|
+
render(box: any): void;
|
|
1917
|
+
/**
|
|
1918
|
+
* Removes all classes that start with w2ui-* and sets box to null. It is needed so that control will
|
|
1919
|
+
* release the box to be used for other widgets
|
|
1920
|
+
*/
|
|
1921
|
+
unmount(): void;
|
|
1922
|
+
box: any;
|
|
1923
|
+
}
|
|
1924
|
+
/**
|
|
1925
|
+
* Part of w2ui 2.0 library
|
|
1926
|
+
* - Dependencies: jQuery, w2utils, w2base, w2toolbar, w2field
|
|
1927
|
+
*
|
|
1928
|
+
* == TODO ==
|
|
1929
|
+
* - problem with .set() and arrays, array get extended too, but should be replaced
|
|
1930
|
+
* - allow functions in routeData (also add routeData to list/enum)
|
|
1931
|
+
* - send parsed URL to the event if there is routeData
|
|
1932
|
+
* - add selectType: 'none' so that no selection can be make but with mouse
|
|
1933
|
+
* - focus/blur for selectType = cell not display grayed out selection
|
|
1934
|
+
* - allow enum in inline edit (see https://github.com/vitmalina/w2ui/issues/911#issuecomment-107341193)
|
|
1935
|
+
* - remote source, but localSort/localSearch
|
|
1936
|
+
* - promise for request, load, save, etc.
|
|
1937
|
+
* - onloadmore event (so it will be easy to implement remote data source with local sort)
|
|
1938
|
+
* - queryStatus() - clears on next select, etc. Should not if it is off
|
|
1939
|
+
*
|
|
1940
|
+
* == DEMOS To create ==
|
|
1941
|
+
* - batch for denied buttons
|
|
1942
|
+
* - natural sort
|
|
1943
|
+
*
|
|
1944
|
+
* == 2.0 changes
|
|
1945
|
+
* - toolbarInput - deprecated, toolbarSearch stays
|
|
1946
|
+
* - searchSuggest
|
|
1947
|
+
* - searchSave, searchSelected, savedSearches, defaultSearches, useLocalStorage, searchFieldTooltip
|
|
1948
|
+
* - cache, cacheSave
|
|
1949
|
+
* - onSearchSave, onSearchRemove, onSearchSelect
|
|
1950
|
+
* - show.searchLogic
|
|
1951
|
+
* - show.searchSave
|
|
1952
|
+
* - refreshSearch
|
|
1953
|
+
* - initAllFields -> searchInitInput
|
|
1954
|
+
* - textSearch - deprecated in favor of defaultOperator
|
|
1955
|
+
* - grid.confirm - refactored
|
|
1956
|
+
* - grid.message - refactored
|
|
1957
|
+
* - search.type == 'text' can have 'in' and 'not in' operators, then it will switch to enum
|
|
1958
|
+
* - grid.find(..., displayedOnly)
|
|
1959
|
+
* - column.render(..., this) - added
|
|
1960
|
+
* - observeResize for the box
|
|
1961
|
+
* - remove edit.type == 'select'
|
|
1962
|
+
* - editDone(...)
|
|
1963
|
+
* - liveSearch
|
|
1964
|
+
* - deprecated onUnselect event
|
|
1965
|
+
* - requestComplete(data, action, callBack, resolve, reject) - new argument list
|
|
1966
|
+
* - msgAJAXError -> msgHTTPError
|
|
1967
|
+
* - aded msgServerError
|
|
1968
|
+
* - deleted grid.method
|
|
1969
|
+
* - added mouseEnter/mouseLeave
|
|
1970
|
+
* - grid.show.columnReorder -> grid.reorderRows
|
|
1971
|
+
* - updagte docs search.label (not search.text)
|
|
1972
|
+
* - added columnAutoSize - which resizes column based on text in it
|
|
1973
|
+
* - added grid.replace()
|
|
1974
|
+
*/
|
|
1975
|
+
declare class w2grid extends w2base {
|
|
1976
|
+
constructor(options: any);
|
|
1977
|
+
name: any;
|
|
1978
|
+
columns: any[];
|
|
1979
|
+
columnGroups: any[];
|
|
1980
|
+
records: any[];
|
|
1981
|
+
summary: any[];
|
|
1982
|
+
searches: any[];
|
|
1983
|
+
toolbar: {};
|
|
1984
|
+
ranges: any[];
|
|
1985
|
+
contextMenu: any[];
|
|
1986
|
+
searchMap: {};
|
|
1987
|
+
searchData: any[];
|
|
1988
|
+
sortMap: {};
|
|
1989
|
+
sortData: any[];
|
|
1990
|
+
savedSearches: any[];
|
|
1991
|
+
defaultSearches: any[];
|
|
1992
|
+
total: number;
|
|
1993
|
+
recid: any;
|
|
1994
|
+
last: {
|
|
1995
|
+
field: string;
|
|
1996
|
+
label: string;
|
|
1997
|
+
logic: string;
|
|
1998
|
+
search: string;
|
|
1999
|
+
searchIds: never[];
|
|
2000
|
+
selection: {
|
|
2001
|
+
indexes: never[];
|
|
2002
|
+
columns: {};
|
|
2003
|
+
};
|
|
2004
|
+
saved_sel: null;
|
|
2005
|
+
multi: boolean;
|
|
2006
|
+
fetch: {
|
|
2007
|
+
action: string;
|
|
2008
|
+
offset: null;
|
|
2009
|
+
start: number;
|
|
2010
|
+
response: number;
|
|
2011
|
+
options: null;
|
|
2012
|
+
controller: null;
|
|
2013
|
+
loaded: boolean;
|
|
2014
|
+
hasMore: boolean;
|
|
2015
|
+
};
|
|
2016
|
+
vscroll: {
|
|
2017
|
+
scrollTop: number;
|
|
2018
|
+
scrollLeft: number;
|
|
2019
|
+
recIndStart: null;
|
|
2020
|
+
recIndEnd: null;
|
|
2021
|
+
colIndStart: number;
|
|
2022
|
+
colIndEnd: number;
|
|
2023
|
+
pull_more: boolean;
|
|
2024
|
+
pull_refresh: boolean;
|
|
2025
|
+
show_extra: number;
|
|
2026
|
+
};
|
|
2027
|
+
sel_ind: null;
|
|
2028
|
+
sel_col: null;
|
|
2029
|
+
sel_type: null;
|
|
2030
|
+
sel_recid: null;
|
|
2031
|
+
idCache: {};
|
|
2032
|
+
move: null;
|
|
2033
|
+
cancelClick: null;
|
|
2034
|
+
inEditMode: boolean;
|
|
2035
|
+
_edit: null;
|
|
2036
|
+
kbd_timer: null;
|
|
2037
|
+
marker_timer: null;
|
|
2038
|
+
click_time: null;
|
|
2039
|
+
click_recid: null;
|
|
2040
|
+
bubbleEl: null;
|
|
2041
|
+
colResizing: boolean;
|
|
2042
|
+
tmp: null;
|
|
2043
|
+
copy_event: null;
|
|
2044
|
+
userSelect: string;
|
|
2045
|
+
columnDrag: boolean;
|
|
2046
|
+
state: null;
|
|
2047
|
+
toolbar_height: number;
|
|
2048
|
+
};
|
|
2049
|
+
header: string;
|
|
2050
|
+
url: string;
|
|
2051
|
+
limit: number;
|
|
2052
|
+
offset: number;
|
|
2053
|
+
postData: {};
|
|
2054
|
+
routeData: {};
|
|
2055
|
+
httpHeaders: {};
|
|
2056
|
+
show: {
|
|
2057
|
+
header: boolean;
|
|
2058
|
+
toolbar: boolean;
|
|
2059
|
+
footer: boolean;
|
|
2060
|
+
columnMenu: boolean;
|
|
2061
|
+
columnHeaders: boolean;
|
|
2062
|
+
lineNumbers: boolean;
|
|
2063
|
+
expandColumn: boolean;
|
|
2064
|
+
selectColumn: boolean;
|
|
2065
|
+
emptyRecords: boolean;
|
|
2066
|
+
toolbarReload: boolean;
|
|
2067
|
+
toolbarColumns: boolean;
|
|
2068
|
+
toolbarSearch: boolean;
|
|
2069
|
+
toolbarAdd: boolean;
|
|
2070
|
+
toolbarEdit: boolean;
|
|
2071
|
+
toolbarDelete: boolean;
|
|
2072
|
+
toolbarSave: boolean;
|
|
2073
|
+
searchAll: boolean;
|
|
2074
|
+
searchLogic: boolean;
|
|
2075
|
+
searchHiddenMsg: boolean;
|
|
2076
|
+
searchSave: boolean;
|
|
2077
|
+
statusRange: boolean;
|
|
2078
|
+
statusBuffered: boolean;
|
|
2079
|
+
statusRecordID: boolean;
|
|
2080
|
+
statusSelection: boolean;
|
|
2081
|
+
statusResponse: boolean;
|
|
2082
|
+
statusSort: boolean;
|
|
2083
|
+
statusSearch: boolean;
|
|
2084
|
+
recordTitles: boolean;
|
|
2085
|
+
selectionBorder: boolean;
|
|
2086
|
+
selectionResizer: boolean;
|
|
2087
|
+
skipRecords: boolean;
|
|
2088
|
+
saveRestoreState: boolean;
|
|
2089
|
+
};
|
|
2090
|
+
stateId: any;
|
|
2091
|
+
hasFocus: boolean;
|
|
2092
|
+
autoLoad: boolean;
|
|
2093
|
+
fixedBody: boolean;
|
|
2094
|
+
recordHeight: number;
|
|
2095
|
+
lineNumberWidth: number;
|
|
2096
|
+
keyboard: boolean;
|
|
2097
|
+
selectType: string;
|
|
2098
|
+
liveSearch: boolean;
|
|
2099
|
+
multiSearch: boolean;
|
|
2100
|
+
multiSelect: boolean;
|
|
2101
|
+
multiSort: boolean;
|
|
2102
|
+
reorderColumns: boolean;
|
|
2103
|
+
reorderRows: boolean;
|
|
2104
|
+
showExtraOnSearch: number;
|
|
2105
|
+
markSearch: boolean;
|
|
2106
|
+
columnTooltip: string;
|
|
2107
|
+
disableCVS: boolean;
|
|
2108
|
+
nestedFields: boolean;
|
|
2109
|
+
vs_start: number;
|
|
2110
|
+
vs_extra: number;
|
|
2111
|
+
style: string;
|
|
2112
|
+
tabIndex: any;
|
|
2113
|
+
dataType: any;
|
|
2114
|
+
parser: any;
|
|
2115
|
+
advanceOnEdit: boolean;
|
|
2116
|
+
useLocalStorage: boolean;
|
|
2117
|
+
colTemplate: {
|
|
2118
|
+
text: string;
|
|
2119
|
+
field: string;
|
|
2120
|
+
size: null;
|
|
2121
|
+
min: number;
|
|
2122
|
+
max: null;
|
|
2123
|
+
gridMinWidth: null;
|
|
2124
|
+
sizeCorrected: null;
|
|
2125
|
+
sizeCalculated: null;
|
|
2126
|
+
sizeOriginal: null;
|
|
2127
|
+
sizeType: null;
|
|
2128
|
+
hidden: boolean;
|
|
2129
|
+
sortable: boolean;
|
|
2130
|
+
sortMode: null;
|
|
2131
|
+
searchable: boolean;
|
|
2132
|
+
resizable: boolean;
|
|
2133
|
+
hideable: boolean;
|
|
2134
|
+
autoResize: null;
|
|
2135
|
+
attr: string;
|
|
2136
|
+
style: string;
|
|
2137
|
+
render: null;
|
|
2138
|
+
title: null;
|
|
2139
|
+
tooltip: null;
|
|
2140
|
+
editable: {};
|
|
2141
|
+
frozen: boolean;
|
|
2142
|
+
info: null;
|
|
2143
|
+
clipboardCopy: boolean;
|
|
2144
|
+
};
|
|
2145
|
+
stateColProps: {
|
|
2146
|
+
text: boolean;
|
|
2147
|
+
field: boolean;
|
|
2148
|
+
size: boolean;
|
|
2149
|
+
min: boolean;
|
|
2150
|
+
max: boolean;
|
|
2151
|
+
gridMinWidth: boolean;
|
|
2152
|
+
sizeCorrected: boolean;
|
|
2153
|
+
sizeCalculated: boolean;
|
|
2154
|
+
sizeOriginal: boolean;
|
|
2155
|
+
sizeType: boolean;
|
|
2156
|
+
hidden: boolean;
|
|
2157
|
+
sortable: boolean;
|
|
2158
|
+
sortMode: boolean;
|
|
2159
|
+
searchable: boolean;
|
|
2160
|
+
resizable: boolean;
|
|
2161
|
+
hideable: boolean;
|
|
2162
|
+
autoResize: boolean;
|
|
2163
|
+
attr: boolean;
|
|
2164
|
+
style: boolean;
|
|
2165
|
+
render: boolean;
|
|
2166
|
+
title: boolean;
|
|
2167
|
+
tooltip: boolean;
|
|
2168
|
+
editable: boolean;
|
|
2169
|
+
frozen: boolean;
|
|
2170
|
+
info: boolean;
|
|
2171
|
+
clipboardCopy: boolean;
|
|
2172
|
+
};
|
|
2173
|
+
msgDelete: string;
|
|
2174
|
+
msgNotJSON: string;
|
|
2175
|
+
msgHTTPError: string;
|
|
2176
|
+
msgServerError: string;
|
|
2177
|
+
msgRefresh: string;
|
|
2178
|
+
msgNeedReload: string;
|
|
2179
|
+
msgEmpty: string;
|
|
2180
|
+
buttons: {
|
|
2181
|
+
reload: {
|
|
2182
|
+
type: string;
|
|
2183
|
+
id: string;
|
|
2184
|
+
icon: string;
|
|
2185
|
+
tooltip: string;
|
|
2186
|
+
};
|
|
2187
|
+
columns: {
|
|
2188
|
+
type: string;
|
|
2189
|
+
id: string;
|
|
2190
|
+
icon: string;
|
|
2191
|
+
tooltip: string;
|
|
2192
|
+
overlay: {
|
|
2193
|
+
align: string;
|
|
2194
|
+
};
|
|
2195
|
+
};
|
|
2196
|
+
search: {
|
|
2197
|
+
type: string;
|
|
2198
|
+
id: string;
|
|
2199
|
+
html: string;
|
|
2200
|
+
};
|
|
2201
|
+
add: {
|
|
2202
|
+
type: string;
|
|
2203
|
+
id: string;
|
|
2204
|
+
text: string;
|
|
2205
|
+
tooltip: string;
|
|
2206
|
+
icon: string;
|
|
2207
|
+
};
|
|
2208
|
+
edit: {
|
|
2209
|
+
type: string;
|
|
2210
|
+
id: string;
|
|
2211
|
+
text: string;
|
|
2212
|
+
tooltip: string;
|
|
2213
|
+
icon: string;
|
|
2214
|
+
batch: number;
|
|
2215
|
+
disabled: boolean;
|
|
2216
|
+
};
|
|
2217
|
+
delete: {
|
|
2218
|
+
type: string;
|
|
2219
|
+
id: string;
|
|
2220
|
+
text: string;
|
|
2221
|
+
tooltip: string;
|
|
2222
|
+
icon: string;
|
|
2223
|
+
batch: boolean;
|
|
2224
|
+
disabled: boolean;
|
|
2225
|
+
};
|
|
2226
|
+
save: {
|
|
2227
|
+
type: string;
|
|
2228
|
+
id: string;
|
|
2229
|
+
text: string;
|
|
2230
|
+
tooltip: string;
|
|
2231
|
+
icon: string;
|
|
2232
|
+
};
|
|
2233
|
+
};
|
|
2234
|
+
operators: {
|
|
2235
|
+
text: string[];
|
|
2236
|
+
number: string[];
|
|
2237
|
+
date: (string | {
|
|
2238
|
+
oper: string;
|
|
2239
|
+
text: string;
|
|
2240
|
+
})[];
|
|
2241
|
+
list: string[];
|
|
2242
|
+
hex: string[];
|
|
2243
|
+
color: string[];
|
|
2244
|
+
enum: string[];
|
|
2245
|
+
};
|
|
2246
|
+
defaultOperator: {
|
|
2247
|
+
text: string;
|
|
2248
|
+
number: string;
|
|
2249
|
+
date: string;
|
|
2250
|
+
list: string;
|
|
2251
|
+
enum: string;
|
|
2252
|
+
hex: string;
|
|
2253
|
+
color: string;
|
|
2254
|
+
};
|
|
2255
|
+
operatorsMap: {
|
|
2256
|
+
text: string;
|
|
2257
|
+
int: string;
|
|
2258
|
+
float: string;
|
|
2259
|
+
money: string;
|
|
2260
|
+
currency: string;
|
|
2261
|
+
percent: string;
|
|
2262
|
+
hex: string;
|
|
2263
|
+
alphanumeric: string;
|
|
2264
|
+
color: string;
|
|
2265
|
+
date: string;
|
|
2266
|
+
time: string;
|
|
2267
|
+
datetime: string;
|
|
2268
|
+
list: string;
|
|
2269
|
+
combo: string;
|
|
2270
|
+
enum: string;
|
|
2271
|
+
file: string;
|
|
2272
|
+
select: string;
|
|
2273
|
+
radio: string;
|
|
2274
|
+
checkbox: string;
|
|
2275
|
+
toggle: string;
|
|
2276
|
+
};
|
|
2277
|
+
onAdd: any;
|
|
2278
|
+
onEdit: any;
|
|
2279
|
+
onRequest: any;
|
|
2280
|
+
onLoad: any;
|
|
2281
|
+
onDelete: any;
|
|
2282
|
+
onSave: any;
|
|
2283
|
+
onSelect: any;
|
|
2284
|
+
onClick: any;
|
|
2285
|
+
onDblClick: any;
|
|
2286
|
+
onContextMenu: any;
|
|
2287
|
+
onContextMenuClick: any;
|
|
2288
|
+
onColumnClick: any;
|
|
2289
|
+
onColumnDblClick: any;
|
|
2290
|
+
onColumnContextMenu: any;
|
|
2291
|
+
onColumnResize: any;
|
|
2292
|
+
onColumnAutoResize: any;
|
|
2293
|
+
onSort: any;
|
|
2294
|
+
onSearch: any;
|
|
2295
|
+
onSearchOpen: any;
|
|
2296
|
+
onChange: any;
|
|
2297
|
+
onRestore: any;
|
|
2298
|
+
onExpand: any;
|
|
2299
|
+
onCollapse: any;
|
|
2300
|
+
onError: any;
|
|
2301
|
+
onKeydown: any;
|
|
2302
|
+
onToolbar: any;
|
|
2303
|
+
onColumnOnOff: any;
|
|
2304
|
+
onCopy: any;
|
|
2305
|
+
onPaste: any;
|
|
2306
|
+
onSelectionExtend: any;
|
|
2307
|
+
onEditField: any;
|
|
2308
|
+
onRender: any;
|
|
2309
|
+
onRefresh: any;
|
|
2310
|
+
onReload: any;
|
|
2311
|
+
onResize: any;
|
|
2312
|
+
onDestroy: any;
|
|
2313
|
+
onStateSave: any;
|
|
2314
|
+
onStateRestore: any;
|
|
2315
|
+
onFocus: any;
|
|
2316
|
+
onBlur: any;
|
|
2317
|
+
onReorderRow: any;
|
|
2318
|
+
onSearchSave: any;
|
|
2319
|
+
onSearchRemove: any;
|
|
2320
|
+
onSearchSelect: any;
|
|
2321
|
+
onColumnSelect: any;
|
|
2322
|
+
onColumnDragStart: any;
|
|
2323
|
+
onColumnDragEnd: any;
|
|
2324
|
+
onResizerDblClick: any;
|
|
2325
|
+
onMouseEnter: any;
|
|
2326
|
+
onMouseLeave: any;
|
|
2327
|
+
add(record: any, first: any): number;
|
|
2328
|
+
find(obj: any, returnIndex: any, displayedOnly: any): any[];
|
|
2329
|
+
set(recid: any, record: any, noRefresh: any): boolean;
|
|
2330
|
+
replace(recid: any, record: any, noRefresh: any): boolean;
|
|
2331
|
+
get(recid: any, returnIndex: any): any;
|
|
2332
|
+
getFirst(offset: any): any;
|
|
2333
|
+
remove(...args: any[]): number;
|
|
2334
|
+
addColumn(before: any, columns: any, ...args: any[]): number;
|
|
2335
|
+
removeColumn(...args: any[]): number;
|
|
2336
|
+
getColumn(field: any, returnIndex: any, ...args: any[]): any;
|
|
2337
|
+
updateColumn(fields: any, updates: any): number;
|
|
2338
|
+
toggleColumn(...args: any[]): number;
|
|
2339
|
+
showColumn(...args: any[]): number;
|
|
2340
|
+
hideColumn(...args: any[]): number;
|
|
2341
|
+
addSearch(before: any, search: any, ...args: any[]): number;
|
|
2342
|
+
removeSearch(...args: any[]): number;
|
|
2343
|
+
getSearch(field: any, returnIndex: any, ...args: any[]): any;
|
|
2344
|
+
toggleSearch(...args: any[]): number;
|
|
2345
|
+
showSearch(...args: any[]): number;
|
|
2346
|
+
hideSearch(...args: any[]): number;
|
|
2347
|
+
getSearchData(field: any): any;
|
|
2348
|
+
localSort(silent: any, noResetRefresh: any): number | undefined;
|
|
2349
|
+
localSearch(silent: any): number | undefined;
|
|
2350
|
+
getRangeData(range: any, extra: any): any[];
|
|
2351
|
+
addRange(ranges: any): number;
|
|
2352
|
+
removeRange(...args: any[]): number;
|
|
2353
|
+
refreshRanges(): number | undefined;
|
|
2354
|
+
select(...args: any[]): number;
|
|
2355
|
+
unselect(...args: any[]): any;
|
|
2356
|
+
selectAll(): number | undefined;
|
|
2357
|
+
selectNone(skipEvent: any): number | undefined;
|
|
2358
|
+
updateToolbar(sel: any): void;
|
|
2359
|
+
getSelection(returnIndex: any): any[];
|
|
2360
|
+
search(field: any, value: any, ...args: any[]): void;
|
|
2361
|
+
searchOpen(): void;
|
|
2362
|
+
searchClose(): void;
|
|
2363
|
+
searchFieldTooltip(ind: any, sd_ind: any, el: any): void;
|
|
2364
|
+
searchSuggest(imediate: any, forceHide: any, input: any): void;
|
|
2365
|
+
searchSelected: any;
|
|
2366
|
+
searchSave(): void;
|
|
2367
|
+
cache(type: any): any;
|
|
2368
|
+
cacheSave(type: any, value: any): boolean;
|
|
2369
|
+
searchReset(noReload: any): void;
|
|
2370
|
+
searchShowFields(forceHide: any): void;
|
|
2371
|
+
searchInitInput(field: any, value: any): void;
|
|
2372
|
+
clear(noRefresh: any): void;
|
|
2373
|
+
reset(noRefresh: any): void;
|
|
2374
|
+
skip(offset: any, callBack: any): void;
|
|
2375
|
+
load(url: any, callBack: any): Promise<any>;
|
|
2376
|
+
reload(callBack: any): Promise<any>;
|
|
2377
|
+
request(action: any, postData: any, url: any, callBack: any): Promise<any>;
|
|
2378
|
+
requestComplete(data: any, action: any, callBack: any, resolve: any, reject: any): Promise<any> | undefined;
|
|
2379
|
+
error(msg: any): void;
|
|
2380
|
+
getChanges(recordsBase: any): any;
|
|
2381
|
+
mergeChanges(): void;
|
|
2382
|
+
save(callBack: any): void;
|
|
2383
|
+
editField(recid: any, column: any, value: any, event: any): void;
|
|
2384
|
+
editChange(input: any, index: any, column: any, event: any): void;
|
|
2385
|
+
editDone(index: any, column: any, event: any): void;
|
|
2386
|
+
delete(force: any): void;
|
|
2387
|
+
click(recid: any, event: any): void;
|
|
2388
|
+
columnClick(field: any, event: any): void;
|
|
2389
|
+
columnDblClick(field: any, event: any): void;
|
|
2390
|
+
columnContextMenu(field: any, event: any): void;
|
|
2391
|
+
columnAutoSize(colIndex: any, ...args: any[]): true | undefined;
|
|
2392
|
+
columnAutoSizeAll(): void;
|
|
2393
|
+
focus(event: any): false | undefined;
|
|
2394
|
+
blur(event: any): false | undefined;
|
|
2395
|
+
keydown(event: any): void;
|
|
2396
|
+
scrollIntoView(ind: any, column: any, instant: any, recTop: any): void;
|
|
2397
|
+
scrollToColumn(field: any): void;
|
|
2398
|
+
dblClick(recid: any, event: any): void;
|
|
2399
|
+
showContextMenu(recid: any, column: any, event: any): void;
|
|
2400
|
+
contextMenuClick(recid: any, column: any, event: any): void;
|
|
2401
|
+
toggle(recid: any): boolean | undefined;
|
|
2402
|
+
expand(recid: any, noRefresh: any): boolean;
|
|
2403
|
+
collapse(recid: any, noRefresh: any): boolean;
|
|
2404
|
+
sort(field: any, direction: any, multiField: any): void;
|
|
2405
|
+
copy(flag: any, oEvent: any): any;
|
|
2406
|
+
/**
|
|
2407
|
+
* Gets value to be copied to the clipboard
|
|
2408
|
+
* @param ind index of the record
|
|
2409
|
+
* @param col_ind index of the column
|
|
2410
|
+
* @returns the displayed value of the field's record associated with the cell
|
|
2411
|
+
*/
|
|
2412
|
+
getCellCopy(ind: any, col_ind: any): any;
|
|
2413
|
+
paste(text: any, event: any): void;
|
|
2414
|
+
resize(): number | undefined;
|
|
2415
|
+
update({ cells, fullCellRefresh, ignoreColumns }?: {}): number;
|
|
2416
|
+
refreshCell(recid: any, field: any): boolean;
|
|
2417
|
+
refreshRow(recid: any, ind?: null): boolean;
|
|
2418
|
+
refresh(): number | undefined;
|
|
2419
|
+
refreshSearch(): void;
|
|
2420
|
+
refreshBody(): void;
|
|
2421
|
+
render(box: any): number | undefined;
|
|
2422
|
+
destroy(): void;
|
|
2423
|
+
initColumnOnOff(): {
|
|
2424
|
+
id: string;
|
|
2425
|
+
text: string;
|
|
2426
|
+
checked: boolean;
|
|
2427
|
+
}[];
|
|
2428
|
+
initColumnDrag(box: any): {
|
|
2429
|
+
remove(): void;
|
|
2430
|
+
};
|
|
2431
|
+
columnOnOff(event: any, field: any): void;
|
|
2432
|
+
initToolbar(): void;
|
|
2433
|
+
initResize(): void;
|
|
2434
|
+
resizeBoxes(): void;
|
|
2435
|
+
resizeRecords(): void;
|
|
2436
|
+
getSearchesHTML(): string;
|
|
2437
|
+
getOperators(type: any, opers: any): string;
|
|
2438
|
+
initOperator(ind: any): void;
|
|
2439
|
+
initSearches(): void;
|
|
2440
|
+
getColumnsHTML(): string[];
|
|
2441
|
+
getColumnCellHTML(i: any): string;
|
|
2442
|
+
columnTooltipShow(ind: any, event: any): void;
|
|
2443
|
+
columnTooltipHide(ind: any, event: any): void;
|
|
2444
|
+
getRecordsHTML(): string[];
|
|
2445
|
+
getSummaryHTML(): string[] | undefined;
|
|
2446
|
+
scroll(event: any): void;
|
|
2447
|
+
getRecordHTML(ind: any, lineNum: any, summary: any): string[] | "";
|
|
2448
|
+
getLineHTML(lineNum: any): string;
|
|
2449
|
+
getCellHTML(ind: any, col_ind: any, summary: any, col_span: any): any;
|
|
2450
|
+
clipboardCopy(ind: any, col_ind: any, summary: any): void;
|
|
2451
|
+
showBubble(ind: any, col_ind: any, summary: any): any;
|
|
2452
|
+
getCellEditable(ind: any, col_ind: any): any;
|
|
2453
|
+
getCellValue(ind: any, col_ind: any, summary: any, extra: any): any;
|
|
2454
|
+
getFooterHTML(): string;
|
|
2455
|
+
status(msg: any): void;
|
|
2456
|
+
lock(msg: any, showSpinner: any, ...args: any[]): void;
|
|
2457
|
+
unlock(speed: any): void;
|
|
2458
|
+
stateSave(returnOnly: any): {
|
|
2459
|
+
columns: never[];
|
|
2460
|
+
show: any;
|
|
2461
|
+
last: {
|
|
2462
|
+
search: string;
|
|
2463
|
+
multi: boolean;
|
|
2464
|
+
logic: string;
|
|
2465
|
+
label: string;
|
|
2466
|
+
field: string;
|
|
2467
|
+
scrollTop: number;
|
|
2468
|
+
scrollLeft: number;
|
|
2469
|
+
};
|
|
2470
|
+
sortData: never[];
|
|
2471
|
+
searchData: never[];
|
|
2472
|
+
} | undefined;
|
|
2473
|
+
stateRestore(newState: any): true | undefined;
|
|
2474
|
+
stateReset(): void;
|
|
2475
|
+
parseField(obj: any, field: any): any;
|
|
2476
|
+
prepareData(): void;
|
|
2477
|
+
nextCell(index: any, col_ind: any, editable: any): any;
|
|
2478
|
+
prevCell(index: any, col_ind: any, editable: any): any;
|
|
2479
|
+
nextRow(ind: any, col_ind: any, numRows: any): any;
|
|
2480
|
+
prevRow(ind: any, col_ind: any, numRows: any): any;
|
|
2481
|
+
selectionSave(): null;
|
|
2482
|
+
selectionRestore(noRefresh: any): number;
|
|
2483
|
+
message(options: any): {
|
|
2484
|
+
self: any;
|
|
2485
|
+
action(callBack: any): any;
|
|
2486
|
+
close(callBack: any): any;
|
|
2487
|
+
open(callBack: any): any;
|
|
2488
|
+
then(callBack: any): any;
|
|
2489
|
+
} | undefined;
|
|
2490
|
+
confirm(options: any): {
|
|
2491
|
+
self: any;
|
|
2492
|
+
action(callBack: any): any;
|
|
2493
|
+
close(callBack: any): any;
|
|
2494
|
+
open(callBack: any): any;
|
|
2495
|
+
then(callBack: any): any;
|
|
2496
|
+
} | undefined;
|
|
2497
|
+
}
|
|
1878
2498
|
type w2record = Record<string, unknown> & {
|
|
1879
2499
|
recid: number;
|
|
1880
2500
|
};
|
|
1881
2501
|
type w2recordId = string | number;
|
|
2502
|
+
type w2renderFunction = (this: _w2grid1, w2record: w2record, options: {
|
|
2503
|
+
self: _w2grid1;
|
|
2504
|
+
value: unknown;
|
|
2505
|
+
index: number;
|
|
2506
|
+
colIndex: number;
|
|
2507
|
+
summary: boolean;
|
|
2508
|
+
}) => string;
|
|
2509
|
+
type w2titleFunction = (this: _w2grid1, w2record: w2record, options: {
|
|
2510
|
+
self: _w2grid1;
|
|
2511
|
+
value: unknown;
|
|
2512
|
+
index: number;
|
|
2513
|
+
colIndex: number;
|
|
2514
|
+
summary: boolean;
|
|
2515
|
+
}) => string;
|
|
1882
2516
|
type w2columnField = string;
|
|
2517
|
+
type w2column = {
|
|
2518
|
+
text?: string | (() => string);
|
|
2519
|
+
field?: w2columnField;
|
|
2520
|
+
size?: string;
|
|
2521
|
+
min?: number;
|
|
2522
|
+
max?: number;
|
|
2523
|
+
gridMinWidth?: number;
|
|
2524
|
+
readonly sizeCorrected?: string;
|
|
2525
|
+
readonly sizeCalculated?: string;
|
|
2526
|
+
sizeOriginal?: string;
|
|
2527
|
+
sizeType?: "px" | "%";
|
|
2528
|
+
hidden?: boolean;
|
|
2529
|
+
sortable?: boolean;
|
|
2530
|
+
sortMode?: "default" | "natural" | "i18n" | ((a: string, b: string) => number);
|
|
2531
|
+
searchable?: boolean | string | object;
|
|
2532
|
+
resizable?: boolean;
|
|
2533
|
+
hideable?: boolean;
|
|
2534
|
+
autoResize?: boolean;
|
|
2535
|
+
attr?: string;
|
|
2536
|
+
style?: string;
|
|
2537
|
+
render?: string | w2renderFunction;
|
|
2538
|
+
title?: string | w2titleFunction;
|
|
2539
|
+
tooltip?: string;
|
|
2540
|
+
editable?: object;
|
|
2541
|
+
frozen?: boolean;
|
|
2542
|
+
info?: boolean | object;
|
|
2543
|
+
clipboardCopy?: boolean | string | ((...args: unknown[]) => unknown);
|
|
2544
|
+
_microm_format?: GridColumnFormat;
|
|
2545
|
+
_microm_render?: GridColumnRender;
|
|
2546
|
+
_microm_autoSizeMax?: number;
|
|
2547
|
+
_microm_autoSize_cache?: boolean;
|
|
2548
|
+
_microm_userSize_cache?: boolean;
|
|
2549
|
+
};
|
|
2550
|
+
declare class _w2grid1 extends w2grid {
|
|
2551
|
+
columns: w2column[];
|
|
2552
|
+
getColumn(field: w2columnField): w2column | undefined;
|
|
2553
|
+
getColumnIndex(field: w2columnField): number | undefined;
|
|
2554
|
+
addColumn(columns: w2column | w2column[], before?: string | number): number;
|
|
2555
|
+
}
|
|
1883
2556
|
export type GridSelectionMode = 'multi' | 'single';
|
|
1884
2557
|
export type GridColumnFormat = 'url' | 'email' | 'string' | 'check' | 'image' | 'html';
|
|
1885
2558
|
export type GridColumnRender = (value: unknown, cellElement?: HTMLElement, record?: GridRecord, field?: w2columnField) => ReactNode;
|
|
@@ -2012,6 +2685,7 @@ export function DataGridToolbar(props: DataGridToolbarOptions): import("react/js
|
|
|
2012
2685
|
export interface DataGridColumnsMenuProps {
|
|
2013
2686
|
columns?: GridColumn[];
|
|
2014
2687
|
setOpened: (opened: boolean) => void;
|
|
2688
|
+
grid: _w2grid1 | null;
|
|
2015
2689
|
}
|
|
2016
2690
|
export function DataGridColumnsMenu(props: DataGridColumnsMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
2017
2691
|
export const DataGridDefaultProps: Partial<DataGridProps>;
|