profoundjs 7.4.0 → 7.6.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/LICENSE.txt +27 -25
- package/htdocs/jszip/FileSaver.min.js +2 -2
- package/htdocs/profoundui/proddata/css/atrium.css +201 -201
- package/htdocs/profoundui/proddata/css/designer_respeditor.css +91 -91
- package/htdocs/profoundui/proddata/css/ipademulator.css +38 -38
- package/htdocs/profoundui/proddata/css/iphoneemulator.css +29 -29
- package/htdocs/profoundui/proddata/css/jumpstart.css +442 -442
- package/htdocs/profoundui/proddata/css/key_management.css +122 -122
- package/htdocs/profoundui/proddata/css/logic.css +1669 -1665
- package/htdocs/profoundui/proddata/css/markdown.css +754 -754
- package/htdocs/profoundui/proddata/css/profoundai.css +42 -0
- package/htdocs/profoundui/proddata/css/puisplash.css +186 -186
- package/htdocs/profoundui/proddata/css/qtips.css +32 -32
- package/htdocs/profoundui/proddata/html/genieframe.html +25 -25
- package/htdocs/profoundui/proddata/js/designer.js +4022 -4002
- package/htdocs/profoundui/proddata/js/key_management.js +34 -34
- package/htdocs/profoundui/proddata/js/profoundai.js +26 -0
- package/htdocs/profoundui/proddata/js/rich-display-react-component.js +45 -45
- package/htdocs/profoundui/proddata/js/rich-display-vue-component.js +28 -28
- package/htdocs/profoundui/proddata/js/runtime.js +1373 -1369
- package/htdocs/profoundui/proddata/js/soapclient.js +419 -419
- package/htdocs/profoundui/proddata/typings/profoundjs.d.ts +881 -881
- package/htdocs/profoundui/proddata/typings/profoundui.d.ts +388 -388
- package/htdocs/profoundui/userdata/atrium themes/css/xtheme-gray.css +414 -414
- package/htdocs/profoundui/userdata/atrium themes/css/xtheme-olive.css +623 -623
- package/htdocs/profoundui/userdata/atrium themes/css/xtheme-slate.css +672 -672
- package/htdocs/profoundui/userdata/atrium themes/css/xtheme-steel.css +10437 -10437
- package/htdocs/profoundui/userdata/css/atrium_banner.css +13 -13
- package/htdocs/profoundui/userdata/css/atrium_home.css +37 -37
- package/htdocs/profoundui/userdata/custom/themes/enhanced.js +104 -104
- package/htdocs/profoundui/userdata/custom/themes/hybrid.js +109 -109
- package/htdocs/profoundui/userdata/custom/themes/standard.js +68 -68
- package/htdocs/profoundui/userdata/custom/widgets/googlemaps.js +139 -139
- package/htdocs/profoundui/userdata/custom/widgets/listbox.js +37 -37
- package/htdocs/profoundui/userdata/custom/widgets/panel.js +74 -74
- package/htdocs/profoundui/userdata/custom/widgets/styled_button.js +71 -71
- package/htdocs/profoundui/userdata/custom/widgets/tabpanel.js +61 -61
- package/htdocs/profoundui/userdata/genie skins/Classic/Classic.css +562 -562
- package/htdocs/profoundui/userdata/genie skins/Classic/custom.js +3 -3
- package/htdocs/profoundui/userdata/genie skins/Gradient/Gradient.css +616 -616
- package/htdocs/profoundui/userdata/genie skins/Gradient/adjusted columns custom.js +83 -83
- package/htdocs/profoundui/userdata/genie skins/Gradient/custom.js +83 -83
- package/htdocs/profoundui/userdata/genie skins/Hybrid/Hybrid.css +616 -616
- package/htdocs/profoundui/userdata/genie skins/Hybrid/custom.js +330 -330
- package/htdocs/profoundui/userdata/genie skins/Plain/Plain.css +546 -546
- package/htdocs/profoundui/userdata/genie skins/Plain/custom.js +6 -6
- package/htdocs/profoundui/userdata/genie skins/Skyline/Skyline.css +753 -753
- package/htdocs/profoundui/userdata/genie skins/Skyline/adjusted columns custom.js +97 -97
- package/htdocs/profoundui/userdata/genie skins/Skyline/custom.js +97 -97
- package/htdocs/profoundui/userdata/genie skins/Tablet/Tablet.css +743 -743
- package/htdocs/profoundui/userdata/genie skins/Tablet/custom.js +153 -153
- package/htdocs/profoundui/userdata/samples/ordentry/OrdEntry.js +92 -92
- package/package.json +3 -2
- package/profound.jse +1 -1
- package/setup/pjsdist.savf +0 -0
|
@@ -1,389 +1,389 @@
|
|
|
1
|
-
|
|
2
|
-
declare function getObj(id: string) :DomElement | null;
|
|
3
|
-
declare function get(id:string | DomElement): string;
|
|
4
|
-
declare function applyProperty(id: string | DomElement, property: string, value: string): void;
|
|
5
|
-
declare function pressKey(key: string, additionalKeys?: string, onTimeout?: boolean): void;
|
|
6
|
-
declare function changeElementClass(id: string | DomElement, className: string): void;
|
|
7
|
-
declare function changeElementValue(id: string | DomElement, value: string): void;
|
|
8
|
-
declare function getElementValue(id: string | DomElement): string;
|
|
9
|
-
declare function getInnerText(id: string | DomElement): string;
|
|
10
|
-
declare function hideElement(id: string): void;
|
|
11
|
-
declare function hideElements(id: string, id2?: string): void;
|
|
12
|
-
declare function ajax(url?: string | ajaxConfig, handler?: Function): void;
|
|
13
|
-
declare function ajaxJSON(url?: string |ajaxConfig, handler?: Function): void;
|
|
14
|
-
declare function ajaxXML(url?: string| ajaxConfig, handler?: Function): void
|
|
15
|
-
declare function currentDate(editCode?: number, fullYearFormat?: boolean): string;
|
|
16
|
-
declare function currentTime(): string;
|
|
17
|
-
declare function currentUser(): string;
|
|
18
|
-
declare function getSystemName(): string;
|
|
19
|
-
declare function addEvent(obj: string, eventName: string, func: Function): void;
|
|
20
|
-
declare function preventEvent(event: string): void;
|
|
21
|
-
declare function removeEvent(obj: string, eventName: string, func: Function): void;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare namespace pui {
|
|
27
|
-
declare class AjaxRequest {
|
|
28
|
-
async?: boolean;
|
|
29
|
-
headers?: Object;
|
|
30
|
-
method?: string;
|
|
31
|
-
params?: Object;
|
|
32
|
-
password?: string;
|
|
33
|
-
postData?: string;
|
|
34
|
-
suppressAlert?: boolean;
|
|
35
|
-
url: string;
|
|
36
|
-
user?: string;
|
|
37
|
-
public onfail(ajaxObject:AjaxRequest): void;
|
|
38
|
-
public onsuccess(ajaxObject:AjaxRequest): void;
|
|
39
|
-
public onready(ajaxObject:AjaxRequest): void;
|
|
40
|
-
public abort(): void;
|
|
41
|
-
public getAllResponseHeaders(): string;
|
|
42
|
-
public getResponseHeader(header:string): string;
|
|
43
|
-
public getResponseText(): string;
|
|
44
|
-
public getResponseXML(): XMLDocument;
|
|
45
|
-
public getStatus(): number;
|
|
46
|
-
public getStatusMessage(): string;
|
|
47
|
-
public getStatusText(): string;
|
|
48
|
-
public ok(): boolean;
|
|
49
|
-
public send(): void;
|
|
50
|
-
public setRequestHeader(header: string, value: string): void;
|
|
51
|
-
}
|
|
52
|
-
export function set(id: string | DomElement, value: string): void;
|
|
53
|
-
export function click(id: string | DomElement): void;
|
|
54
|
-
export function link(url: string): void;
|
|
55
|
-
export function errorTip(id: string| DomElement, message: string, hideDelay?: number): void;
|
|
56
|
-
/**
|
|
57
|
-
* This method dynamically adds CSS code to the currently running application.
|
|
58
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=11206690
|
|
59
|
-
* @param cssCode A string with a CSS rule.
|
|
60
|
-
*/
|
|
61
|
-
export function addCSS(cssCode: string): void;
|
|
62
|
-
/**
|
|
63
|
-
* This method loads an external Cascading Style Sheet file on the fly.
|
|
64
|
-
* @param path The path to the cascading style sheet file.
|
|
65
|
-
*/
|
|
66
|
-
export function loadCSS(path: string): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* This method dynamically loads an external JavaScript file
|
|
69
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=11206707
|
|
70
|
-
* @param path The JavaScript path to load.
|
|
71
|
-
* @param config A configuration object that specifies the JavaScript path to load along with other configuration options
|
|
72
|
-
*/
|
|
73
|
-
export function loadJS(path?: string, config?: loadJSConfig): boolean; //this also takes config options, idrk what to do with those
|
|
74
|
-
export function runPCCommand(command: string): void;
|
|
75
|
-
/**
|
|
76
|
-
* his API initiates a download from a file in the Integrated File System (IFS) to the browser.
|
|
77
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=10092549
|
|
78
|
-
* @param config JavaScript object containing configuration properties.
|
|
79
|
-
*/
|
|
80
|
-
export function download(config: downloadConfig): void;
|
|
81
|
-
/**
|
|
82
|
-
* This API calculates the URL needed to start a download.
|
|
83
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=13664291
|
|
84
|
-
* @param config JavaScript object containing configuration properties.
|
|
85
|
-
*/
|
|
86
|
-
export function downloadURL(config: downloadURLConfig): string;
|
|
87
|
-
/**
|
|
88
|
-
* This function navigates to a URL in a new browser tab or window
|
|
89
|
-
* @param url The url address to navigate to.
|
|
90
|
-
*/
|
|
91
|
-
export function openURL(url: string): void;
|
|
92
|
-
export function maskScreen(): void;
|
|
93
|
-
export function unmaskScreen(): void;
|
|
94
|
-
/**
|
|
95
|
-
* This function prevents a Profound UI Rich Display File session or a Profound UI Genie session from timing out.
|
|
96
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=4850055
|
|
97
|
-
*/
|
|
98
|
-
export function keepAlive(): void;
|
|
99
|
-
/**
|
|
100
|
-
* This API refreshes the browser page and reloads all CSS and JavaScript files
|
|
101
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=9601118
|
|
102
|
-
* @param config JavaScript object containing configuration properties.
|
|
103
|
-
*/
|
|
104
|
-
export function refresh(config: refreshConfig): void;
|
|
105
|
-
/**
|
|
106
|
-
* Startup API. This API runs an anonymous Profound UI program.
|
|
107
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=7864464
|
|
108
|
-
* @param config JavaScript object containing configuration properties.
|
|
109
|
-
*/
|
|
110
|
-
export function run(config: runConfig): void;
|
|
111
|
-
/**
|
|
112
|
-
* Startup API. Starts an authenticated session with a sign on screen.
|
|
113
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=7864470
|
|
114
|
-
* @param config JavaScript object containing configuration properties.
|
|
115
|
-
*/
|
|
116
|
-
export function signon(config: signonConfig): void;
|
|
117
|
-
/**
|
|
118
|
-
* Mobile API.
|
|
119
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=13336579
|
|
120
|
-
* @param message The message to display in the box.
|
|
121
|
-
* @param callback The optional function to call when the dialog is dimissed
|
|
122
|
-
* @param title The optional title for the native dialog box
|
|
123
|
-
* @param buttonName The optional name of the button to dismiss the dialog
|
|
124
|
-
*/
|
|
125
|
-
export function alert(message: string, callback?: Function, title?: string, buttonName?: string): void;
|
|
126
|
-
/**
|
|
127
|
-
* Mobile API. This function animates an element or a container using a CSS3 transition.
|
|
128
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=7602219
|
|
129
|
-
* @param config JavaScript object containing configuration properties.
|
|
130
|
-
*/
|
|
131
|
-
export function animate(config: animateConfig): void;
|
|
132
|
-
/**
|
|
133
|
-
* Mobile API. This API takes a picture using a mobile device and uploads it to the IFS on the IBM i.
|
|
134
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=8519752
|
|
135
|
-
* @param config JavaScript object containing configuration properties.
|
|
136
|
-
*/
|
|
137
|
-
export function capturePhoto(config: capturePhotoConfig): void;
|
|
138
|
-
/**
|
|
139
|
-
* Mobile API. This function returns a normalized URL based on the pui.serverURL configuration setting.
|
|
140
|
-
* @param url The url address of an image file or some other resource.
|
|
141
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=7602181
|
|
142
|
-
*/
|
|
143
|
-
export function normalizeURL(url: string): string;
|
|
144
|
-
/**
|
|
145
|
-
* Mobile API. This function allows you to show a Rich Display File screen outside of the normal Profound UI session flow.
|
|
146
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=4850033
|
|
147
|
-
* @param config JavaScript object containing configuration properties.
|
|
148
|
-
*/
|
|
149
|
-
export function show(config: showConfig): void;
|
|
150
|
-
/**
|
|
151
|
-
* Mobile API. This API uploads the contents of a signature pad widget to a file in the IFS on your server running IBM i.
|
|
152
|
-
* http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=9601058
|
|
153
|
-
* @param config JavaScript object containing configuration properties.
|
|
154
|
-
*/
|
|
155
|
-
export function uploadSignature(config: uploadSignatureConfig): void;
|
|
156
|
-
/**
|
|
157
|
-
* This API submits a specified response to the server.
|
|
158
|
-
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=31261068
|
|
159
|
-
* @param postData A post data object parameter, no parameters, or a property name parameter with an optional value parameter.
|
|
160
|
-
*/
|
|
161
|
-
export function submit( postData: Object | string): void
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
interface grid {
|
|
165
|
-
collapse(buttonImage?: string | DomElement): void;
|
|
166
|
-
clearState(state?: string): void;
|
|
167
|
-
clearHighlighting(): void;
|
|
168
|
-
expand(buttonImage?: string | DomElement): void;
|
|
169
|
-
exportCSV(fileName?: string): void;
|
|
170
|
-
exportXLSX(fileName?: string): void;
|
|
171
|
-
find(columnIndex: number, text: string, next?: boolean): void;
|
|
172
|
-
getAllDataValues(includeFilter: boolean): any[];
|
|
173
|
-
/**
|
|
174
|
-
* @param row The row number to retrieve value from. Row numbers start with 1.
|
|
175
|
-
* @param col The column number to retrieve value from. Column numbers start with 0.
|
|
176
|
-
*/
|
|
177
|
-
getCellValue(row: number, col: number): string;
|
|
178
|
-
/**
|
|
179
|
-
* @param row The row number to retrieve value from. Row numbers start with 1.
|
|
180
|
-
* @param fieldName The field name as defined in the subfile record format.
|
|
181
|
-
*/
|
|
182
|
-
getDataValue(row: number, fieldName: string): string | null;
|
|
183
|
-
/**
|
|
184
|
-
* @param column The column number to retrieve the filter from. Column numbers start with 0.
|
|
185
|
-
*/
|
|
186
|
-
getFilter(column: number): string | null;
|
|
187
|
-
getRecordCount(): number;
|
|
188
|
-
getSelectedCount(): number;
|
|
189
|
-
getSelectedRows(): number[];
|
|
190
|
-
hide(): void;
|
|
191
|
-
/**
|
|
192
|
-
* @param column The column number to hide. Column numbers start with 0.
|
|
193
|
-
*/
|
|
194
|
-
hideColumn(column: number): boolean;
|
|
195
|
-
/**
|
|
196
|
-
* @param row The row number to check if is filtered. Row numbers start with 1.
|
|
197
|
-
*/
|
|
198
|
-
isRowFilteredOut(row: number): boolean;
|
|
199
|
-
/**
|
|
200
|
-
* @param row The row number to check if is selected. Row numbers start with 1.
|
|
201
|
-
*/
|
|
202
|
-
isRowSelected(row: number): boolean;
|
|
203
|
-
/**
|
|
204
|
-
* @param colid The column ID to check if the column is hidden. Column ID starts with 0 for first, 1 for second, etc.
|
|
205
|
-
*/
|
|
206
|
-
isColumnHidden(colid): boolean;
|
|
207
|
-
/**
|
|
208
|
-
* The refresh method refreshes the data in a grid.
|
|
209
|
-
*/
|
|
210
|
-
refresh(): void;
|
|
211
|
-
removeAllFilters(): void;
|
|
212
|
-
/**
|
|
213
|
-
* @param column The column number to remove. Column numbers start with 0.
|
|
214
|
-
*/
|
|
215
|
-
removeColumn(column: number): void;
|
|
216
|
-
/**
|
|
217
|
-
* @param column The column number to remove the filter from. Column numbers start with 0.
|
|
218
|
-
*/
|
|
219
|
-
removeFilter(column: number): void;
|
|
220
|
-
/**
|
|
221
|
-
* The render method re-renders grid.
|
|
222
|
-
*/
|
|
223
|
-
render(): void;
|
|
224
|
-
/**
|
|
225
|
-
* @param row The row number to zoom on. Row numbers start with 1.
|
|
226
|
-
*/
|
|
227
|
-
rowZoom(row: number): void;
|
|
228
|
-
/**
|
|
229
|
-
* @param row The row number to scroll to. Row numbers start with 1.
|
|
230
|
-
*/
|
|
231
|
-
scrollToRow(row): void;
|
|
232
|
-
/**
|
|
233
|
-
* @param relativeRecordNumber The relative record number to set. This must be a Number value 1-9999.
|
|
234
|
-
*/
|
|
235
|
-
setCursorRecordNumber(relativeRecordNumber: number): void;
|
|
236
|
-
/**
|
|
237
|
-
* @param row The row number to set the value on. Row numbers start with 1.
|
|
238
|
-
* @param fieldName The field name as defined in the subfile record format.
|
|
239
|
-
* @param value The value to set in the bound field.
|
|
240
|
-
*/
|
|
241
|
-
setDataValue(row: number, fieldName: string, value: string): boolean;
|
|
242
|
-
/**
|
|
243
|
-
* @param column The column number to set the filter on. Column numbers start with 0.
|
|
244
|
-
* @param expression The expression to filter grid data. More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=24445103
|
|
245
|
-
*/
|
|
246
|
-
setFilter(column: number, expression: string): void;
|
|
247
|
-
/**
|
|
248
|
-
* @param rows The new number of visible rows.
|
|
249
|
-
*/
|
|
250
|
-
setNumberOfRows(rows: number): boolean;
|
|
251
|
-
setProperty(property: string, value: string): void;
|
|
252
|
-
show(): void;
|
|
253
|
-
/**
|
|
254
|
-
* @param column The column number to show. Column numbers start with 0.
|
|
255
|
-
*/
|
|
256
|
-
showColumn(column: number): boolean;
|
|
257
|
-
/**
|
|
258
|
-
* @param column The column number to start filtering on. Column numbers start with 0.
|
|
259
|
-
*/
|
|
260
|
-
startFilter(column: number): void;
|
|
261
|
-
/**
|
|
262
|
-
* @param column The column number to start a searching on. Column numbers start with 0.
|
|
263
|
-
*/
|
|
264
|
-
startFind(column: number): void;
|
|
265
|
-
toggle(buttonImage?: string | DomElement): void;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
declare class DomElement extends HTMLElement {
|
|
269
|
-
grid: grid;
|
|
270
|
-
/**
|
|
271
|
-
* @param tab The tab number to activate. The first tab is tab 0.
|
|
272
|
-
*/
|
|
273
|
-
public setTab(tab: number): void;
|
|
274
|
-
/**
|
|
275
|
-
* @param tab The tab number to hide. The first tab is tab 0.
|
|
276
|
-
*/
|
|
277
|
-
public hideTab(tab: number): void;
|
|
278
|
-
/**
|
|
279
|
-
* @param tab The tab number to show. The fist tab is tab 0.
|
|
280
|
-
*/
|
|
281
|
-
public showTab(tab: number): void;
|
|
282
|
-
/**
|
|
283
|
-
* @param tab The tab number. The first tab is tab 0.
|
|
284
|
-
*/
|
|
285
|
-
public getTab(tab: number): void;
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
interface ajaxConfig {
|
|
290
|
-
headers?: Object;
|
|
291
|
-
method?: string;
|
|
292
|
-
params?: Object;
|
|
293
|
-
password?: string;
|
|
294
|
-
postData?: string;
|
|
295
|
-
suppressAlert?: boolean;
|
|
296
|
-
url: string;
|
|
297
|
-
user?: string;
|
|
298
|
-
handler?: Function;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
interface loadJSConfig {
|
|
302
|
-
path: string;
|
|
303
|
-
callback?: Function;
|
|
304
|
-
onerror?: Function;
|
|
305
|
-
test?: Function;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
interface downloadConfig {
|
|
309
|
-
id: string;
|
|
310
|
-
inline?: boolean;
|
|
311
|
-
contentType?: string;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
interface downloadURLConfig {
|
|
315
|
-
id: string;
|
|
316
|
-
contentType?: string;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
interface refreshConfig {
|
|
320
|
-
skin: string;
|
|
321
|
-
url: string;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
interface runConfig extends signonConfig {
|
|
325
|
-
parameter?: string;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
interface signonConfig {
|
|
329
|
-
program?: string;
|
|
330
|
-
container?: string;
|
|
331
|
-
workstnid?: string;
|
|
332
|
-
suffixid?: boolean;
|
|
333
|
-
duplicateid?: boolean;
|
|
334
|
-
params?: Object;
|
|
335
|
-
log?: boolean;
|
|
336
|
-
debug?: boolean;
|
|
337
|
-
jsonURL?: string;
|
|
338
|
-
mobile?: boolean;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
interface animateConfig {
|
|
342
|
-
element: string;
|
|
343
|
-
effect?: string;
|
|
344
|
-
property?: string;
|
|
345
|
-
duration?: string;
|
|
346
|
-
type?: string;
|
|
347
|
-
from?: string;
|
|
348
|
-
to?: string;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
interface capturePhotoConfig {
|
|
352
|
-
dir: string;
|
|
353
|
-
fileName: string;
|
|
354
|
-
overwrite: boolean;
|
|
355
|
-
quality: number;
|
|
356
|
-
targetHeight: number;
|
|
357
|
-
targetWidth: number;
|
|
358
|
-
handler: Function;
|
|
359
|
-
success: boolean;
|
|
360
|
-
error: string;
|
|
361
|
-
bytesSent: number;
|
|
362
|
-
responseCode: number;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
interface showConfig {
|
|
366
|
-
path: string;
|
|
367
|
-
method?: string;
|
|
368
|
-
meta: Object;
|
|
369
|
-
format: string;
|
|
370
|
-
formats: array;
|
|
371
|
-
data: Object;
|
|
372
|
-
handler: Function;
|
|
373
|
-
transition: Object;
|
|
374
|
-
animation: string;
|
|
375
|
-
screen: string;
|
|
376
|
-
overlay: boolean;
|
|
377
|
-
container: string;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
interface uploadSignatureConfig {
|
|
381
|
-
signaturePadId: string;
|
|
382
|
-
dir: string;
|
|
383
|
-
fileName: string;
|
|
384
|
-
imageType?: string;
|
|
385
|
-
overwrite?: boolean;
|
|
386
|
-
handler: Function;
|
|
387
|
-
success: boolean;
|
|
388
|
-
error: string;
|
|
1
|
+
|
|
2
|
+
declare function getObj(id: string) :DomElement | null;
|
|
3
|
+
declare function get(id:string | DomElement): string;
|
|
4
|
+
declare function applyProperty(id: string | DomElement, property: string, value: string): void;
|
|
5
|
+
declare function pressKey(key: string, additionalKeys?: string, onTimeout?: boolean): void;
|
|
6
|
+
declare function changeElementClass(id: string | DomElement, className: string): void;
|
|
7
|
+
declare function changeElementValue(id: string | DomElement, value: string): void;
|
|
8
|
+
declare function getElementValue(id: string | DomElement): string;
|
|
9
|
+
declare function getInnerText(id: string | DomElement): string;
|
|
10
|
+
declare function hideElement(id: string): void;
|
|
11
|
+
declare function hideElements(id: string, id2?: string): void;
|
|
12
|
+
declare function ajax(url?: string | ajaxConfig, handler?: Function): void;
|
|
13
|
+
declare function ajaxJSON(url?: string |ajaxConfig, handler?: Function): void;
|
|
14
|
+
declare function ajaxXML(url?: string| ajaxConfig, handler?: Function): void
|
|
15
|
+
declare function currentDate(editCode?: number, fullYearFormat?: boolean): string;
|
|
16
|
+
declare function currentTime(): string;
|
|
17
|
+
declare function currentUser(): string;
|
|
18
|
+
declare function getSystemName(): string;
|
|
19
|
+
declare function addEvent(obj: string, eventName: string, func: Function): void;
|
|
20
|
+
declare function preventEvent(event: string): void;
|
|
21
|
+
declare function removeEvent(obj: string, eventName: string, func: Function): void;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
declare namespace pui {
|
|
27
|
+
declare class AjaxRequest {
|
|
28
|
+
async?: boolean;
|
|
29
|
+
headers?: Object;
|
|
30
|
+
method?: string;
|
|
31
|
+
params?: Object;
|
|
32
|
+
password?: string;
|
|
33
|
+
postData?: string;
|
|
34
|
+
suppressAlert?: boolean;
|
|
35
|
+
url: string;
|
|
36
|
+
user?: string;
|
|
37
|
+
public onfail(ajaxObject:AjaxRequest): void;
|
|
38
|
+
public onsuccess(ajaxObject:AjaxRequest): void;
|
|
39
|
+
public onready(ajaxObject:AjaxRequest): void;
|
|
40
|
+
public abort(): void;
|
|
41
|
+
public getAllResponseHeaders(): string;
|
|
42
|
+
public getResponseHeader(header:string): string;
|
|
43
|
+
public getResponseText(): string;
|
|
44
|
+
public getResponseXML(): XMLDocument;
|
|
45
|
+
public getStatus(): number;
|
|
46
|
+
public getStatusMessage(): string;
|
|
47
|
+
public getStatusText(): string;
|
|
48
|
+
public ok(): boolean;
|
|
49
|
+
public send(): void;
|
|
50
|
+
public setRequestHeader(header: string, value: string): void;
|
|
51
|
+
}
|
|
52
|
+
export function set(id: string | DomElement, value: string): void;
|
|
53
|
+
export function click(id: string | DomElement): void;
|
|
54
|
+
export function link(url: string): void;
|
|
55
|
+
export function errorTip(id: string| DomElement, message: string, hideDelay?: number): void;
|
|
56
|
+
/**
|
|
57
|
+
* This method dynamically adds CSS code to the currently running application.
|
|
58
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=11206690
|
|
59
|
+
* @param cssCode A string with a CSS rule.
|
|
60
|
+
*/
|
|
61
|
+
export function addCSS(cssCode: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* This method loads an external Cascading Style Sheet file on the fly.
|
|
64
|
+
* @param path The path to the cascading style sheet file.
|
|
65
|
+
*/
|
|
66
|
+
export function loadCSS(path: string): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* This method dynamically loads an external JavaScript file
|
|
69
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=11206707
|
|
70
|
+
* @param path The JavaScript path to load.
|
|
71
|
+
* @param config A configuration object that specifies the JavaScript path to load along with other configuration options
|
|
72
|
+
*/
|
|
73
|
+
export function loadJS(path?: string, config?: loadJSConfig): boolean; //this also takes config options, idrk what to do with those
|
|
74
|
+
export function runPCCommand(command: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* his API initiates a download from a file in the Integrated File System (IFS) to the browser.
|
|
77
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=10092549
|
|
78
|
+
* @param config JavaScript object containing configuration properties.
|
|
79
|
+
*/
|
|
80
|
+
export function download(config: downloadConfig): void;
|
|
81
|
+
/**
|
|
82
|
+
* This API calculates the URL needed to start a download.
|
|
83
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=13664291
|
|
84
|
+
* @param config JavaScript object containing configuration properties.
|
|
85
|
+
*/
|
|
86
|
+
export function downloadURL(config: downloadURLConfig): string;
|
|
87
|
+
/**
|
|
88
|
+
* This function navigates to a URL in a new browser tab or window
|
|
89
|
+
* @param url The url address to navigate to.
|
|
90
|
+
*/
|
|
91
|
+
export function openURL(url: string): void;
|
|
92
|
+
export function maskScreen(): void;
|
|
93
|
+
export function unmaskScreen(): void;
|
|
94
|
+
/**
|
|
95
|
+
* This function prevents a Profound UI Rich Display File session or a Profound UI Genie session from timing out.
|
|
96
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=4850055
|
|
97
|
+
*/
|
|
98
|
+
export function keepAlive(): void;
|
|
99
|
+
/**
|
|
100
|
+
* This API refreshes the browser page and reloads all CSS and JavaScript files
|
|
101
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=9601118
|
|
102
|
+
* @param config JavaScript object containing configuration properties.
|
|
103
|
+
*/
|
|
104
|
+
export function refresh(config: refreshConfig): void;
|
|
105
|
+
/**
|
|
106
|
+
* Startup API. This API runs an anonymous Profound UI program.
|
|
107
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=7864464
|
|
108
|
+
* @param config JavaScript object containing configuration properties.
|
|
109
|
+
*/
|
|
110
|
+
export function run(config: runConfig): void;
|
|
111
|
+
/**
|
|
112
|
+
* Startup API. Starts an authenticated session with a sign on screen.
|
|
113
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=7864470
|
|
114
|
+
* @param config JavaScript object containing configuration properties.
|
|
115
|
+
*/
|
|
116
|
+
export function signon(config: signonConfig): void;
|
|
117
|
+
/**
|
|
118
|
+
* Mobile API.
|
|
119
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=13336579
|
|
120
|
+
* @param message The message to display in the box.
|
|
121
|
+
* @param callback The optional function to call when the dialog is dimissed
|
|
122
|
+
* @param title The optional title for the native dialog box
|
|
123
|
+
* @param buttonName The optional name of the button to dismiss the dialog
|
|
124
|
+
*/
|
|
125
|
+
export function alert(message: string, callback?: Function, title?: string, buttonName?: string): void;
|
|
126
|
+
/**
|
|
127
|
+
* Mobile API. This function animates an element or a container using a CSS3 transition.
|
|
128
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=7602219
|
|
129
|
+
* @param config JavaScript object containing configuration properties.
|
|
130
|
+
*/
|
|
131
|
+
export function animate(config: animateConfig): void;
|
|
132
|
+
/**
|
|
133
|
+
* Mobile API. This API takes a picture using a mobile device and uploads it to the IFS on the IBM i.
|
|
134
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=8519752
|
|
135
|
+
* @param config JavaScript object containing configuration properties.
|
|
136
|
+
*/
|
|
137
|
+
export function capturePhoto(config: capturePhotoConfig): void;
|
|
138
|
+
/**
|
|
139
|
+
* Mobile API. This function returns a normalized URL based on the pui.serverURL configuration setting.
|
|
140
|
+
* @param url The url address of an image file or some other resource.
|
|
141
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=7602181
|
|
142
|
+
*/
|
|
143
|
+
export function normalizeURL(url: string): string;
|
|
144
|
+
/**
|
|
145
|
+
* Mobile API. This function allows you to show a Rich Display File screen outside of the normal Profound UI session flow.
|
|
146
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=4850033
|
|
147
|
+
* @param config JavaScript object containing configuration properties.
|
|
148
|
+
*/
|
|
149
|
+
export function show(config: showConfig): void;
|
|
150
|
+
/**
|
|
151
|
+
* Mobile API. This API uploads the contents of a signature pad widget to a file in the IFS on your server running IBM i.
|
|
152
|
+
* http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=9601058
|
|
153
|
+
* @param config JavaScript object containing configuration properties.
|
|
154
|
+
*/
|
|
155
|
+
export function uploadSignature(config: uploadSignatureConfig): void;
|
|
156
|
+
/**
|
|
157
|
+
* This API submits a specified response to the server.
|
|
158
|
+
* More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=31261068
|
|
159
|
+
* @param postData A post data object parameter, no parameters, or a property name parameter with an optional value parameter.
|
|
160
|
+
*/
|
|
161
|
+
export function submit( postData: Object | string): void
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
interface grid {
|
|
165
|
+
collapse(buttonImage?: string | DomElement): void;
|
|
166
|
+
clearState(state?: string): void;
|
|
167
|
+
clearHighlighting(): void;
|
|
168
|
+
expand(buttonImage?: string | DomElement): void;
|
|
169
|
+
exportCSV(fileName?: string): void;
|
|
170
|
+
exportXLSX(fileName?: string): void;
|
|
171
|
+
find(columnIndex: number, text: string, next?: boolean): void;
|
|
172
|
+
getAllDataValues(includeFilter: boolean): any[];
|
|
173
|
+
/**
|
|
174
|
+
* @param row The row number to retrieve value from. Row numbers start with 1.
|
|
175
|
+
* @param col The column number to retrieve value from. Column numbers start with 0.
|
|
176
|
+
*/
|
|
177
|
+
getCellValue(row: number, col: number): string;
|
|
178
|
+
/**
|
|
179
|
+
* @param row The row number to retrieve value from. Row numbers start with 1.
|
|
180
|
+
* @param fieldName The field name as defined in the subfile record format.
|
|
181
|
+
*/
|
|
182
|
+
getDataValue(row: number, fieldName: string): string | null;
|
|
183
|
+
/**
|
|
184
|
+
* @param column The column number to retrieve the filter from. Column numbers start with 0.
|
|
185
|
+
*/
|
|
186
|
+
getFilter(column: number): string | null;
|
|
187
|
+
getRecordCount(): number;
|
|
188
|
+
getSelectedCount(): number;
|
|
189
|
+
getSelectedRows(): number[];
|
|
190
|
+
hide(): void;
|
|
191
|
+
/**
|
|
192
|
+
* @param column The column number to hide. Column numbers start with 0.
|
|
193
|
+
*/
|
|
194
|
+
hideColumn(column: number): boolean;
|
|
195
|
+
/**
|
|
196
|
+
* @param row The row number to check if is filtered. Row numbers start with 1.
|
|
197
|
+
*/
|
|
198
|
+
isRowFilteredOut(row: number): boolean;
|
|
199
|
+
/**
|
|
200
|
+
* @param row The row number to check if is selected. Row numbers start with 1.
|
|
201
|
+
*/
|
|
202
|
+
isRowSelected(row: number): boolean;
|
|
203
|
+
/**
|
|
204
|
+
* @param colid The column ID to check if the column is hidden. Column ID starts with 0 for first, 1 for second, etc.
|
|
205
|
+
*/
|
|
206
|
+
isColumnHidden(colid): boolean;
|
|
207
|
+
/**
|
|
208
|
+
* The refresh method refreshes the data in a grid.
|
|
209
|
+
*/
|
|
210
|
+
refresh(): void;
|
|
211
|
+
removeAllFilters(): void;
|
|
212
|
+
/**
|
|
213
|
+
* @param column The column number to remove. Column numbers start with 0.
|
|
214
|
+
*/
|
|
215
|
+
removeColumn(column: number): void;
|
|
216
|
+
/**
|
|
217
|
+
* @param column The column number to remove the filter from. Column numbers start with 0.
|
|
218
|
+
*/
|
|
219
|
+
removeFilter(column: number): void;
|
|
220
|
+
/**
|
|
221
|
+
* The render method re-renders grid.
|
|
222
|
+
*/
|
|
223
|
+
render(): void;
|
|
224
|
+
/**
|
|
225
|
+
* @param row The row number to zoom on. Row numbers start with 1.
|
|
226
|
+
*/
|
|
227
|
+
rowZoom(row: number): void;
|
|
228
|
+
/**
|
|
229
|
+
* @param row The row number to scroll to. Row numbers start with 1.
|
|
230
|
+
*/
|
|
231
|
+
scrollToRow(row): void;
|
|
232
|
+
/**
|
|
233
|
+
* @param relativeRecordNumber The relative record number to set. This must be a Number value 1-9999.
|
|
234
|
+
*/
|
|
235
|
+
setCursorRecordNumber(relativeRecordNumber: number): void;
|
|
236
|
+
/**
|
|
237
|
+
* @param row The row number to set the value on. Row numbers start with 1.
|
|
238
|
+
* @param fieldName The field name as defined in the subfile record format.
|
|
239
|
+
* @param value The value to set in the bound field.
|
|
240
|
+
*/
|
|
241
|
+
setDataValue(row: number, fieldName: string, value: string): boolean;
|
|
242
|
+
/**
|
|
243
|
+
* @param column The column number to set the filter on. Column numbers start with 0.
|
|
244
|
+
* @param expression The expression to filter grid data. More info here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=24445103
|
|
245
|
+
*/
|
|
246
|
+
setFilter(column: number, expression: string): void;
|
|
247
|
+
/**
|
|
248
|
+
* @param rows The new number of visible rows.
|
|
249
|
+
*/
|
|
250
|
+
setNumberOfRows(rows: number): boolean;
|
|
251
|
+
setProperty(property: string, value: string): void;
|
|
252
|
+
show(): void;
|
|
253
|
+
/**
|
|
254
|
+
* @param column The column number to show. Column numbers start with 0.
|
|
255
|
+
*/
|
|
256
|
+
showColumn(column: number): boolean;
|
|
257
|
+
/**
|
|
258
|
+
* @param column The column number to start filtering on. Column numbers start with 0.
|
|
259
|
+
*/
|
|
260
|
+
startFilter(column: number): void;
|
|
261
|
+
/**
|
|
262
|
+
* @param column The column number to start a searching on. Column numbers start with 0.
|
|
263
|
+
*/
|
|
264
|
+
startFind(column: number): void;
|
|
265
|
+
toggle(buttonImage?: string | DomElement): void;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare class DomElement extends HTMLElement {
|
|
269
|
+
grid: grid;
|
|
270
|
+
/**
|
|
271
|
+
* @param tab The tab number to activate. The first tab is tab 0.
|
|
272
|
+
*/
|
|
273
|
+
public setTab(tab: number): void;
|
|
274
|
+
/**
|
|
275
|
+
* @param tab The tab number to hide. The first tab is tab 0.
|
|
276
|
+
*/
|
|
277
|
+
public hideTab(tab: number): void;
|
|
278
|
+
/**
|
|
279
|
+
* @param tab The tab number to show. The fist tab is tab 0.
|
|
280
|
+
*/
|
|
281
|
+
public showTab(tab: number): void;
|
|
282
|
+
/**
|
|
283
|
+
* @param tab The tab number. The first tab is tab 0.
|
|
284
|
+
*/
|
|
285
|
+
public getTab(tab: number): void;
|
|
286
|
+
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
interface ajaxConfig {
|
|
290
|
+
headers?: Object;
|
|
291
|
+
method?: string;
|
|
292
|
+
params?: Object;
|
|
293
|
+
password?: string;
|
|
294
|
+
postData?: string;
|
|
295
|
+
suppressAlert?: boolean;
|
|
296
|
+
url: string;
|
|
297
|
+
user?: string;
|
|
298
|
+
handler?: Function;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
interface loadJSConfig {
|
|
302
|
+
path: string;
|
|
303
|
+
callback?: Function;
|
|
304
|
+
onerror?: Function;
|
|
305
|
+
test?: Function;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
interface downloadConfig {
|
|
309
|
+
id: string;
|
|
310
|
+
inline?: boolean;
|
|
311
|
+
contentType?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
interface downloadURLConfig {
|
|
315
|
+
id: string;
|
|
316
|
+
contentType?: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
interface refreshConfig {
|
|
320
|
+
skin: string;
|
|
321
|
+
url: string;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
interface runConfig extends signonConfig {
|
|
325
|
+
parameter?: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
interface signonConfig {
|
|
329
|
+
program?: string;
|
|
330
|
+
container?: string;
|
|
331
|
+
workstnid?: string;
|
|
332
|
+
suffixid?: boolean;
|
|
333
|
+
duplicateid?: boolean;
|
|
334
|
+
params?: Object;
|
|
335
|
+
log?: boolean;
|
|
336
|
+
debug?: boolean;
|
|
337
|
+
jsonURL?: string;
|
|
338
|
+
mobile?: boolean;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
interface animateConfig {
|
|
342
|
+
element: string;
|
|
343
|
+
effect?: string;
|
|
344
|
+
property?: string;
|
|
345
|
+
duration?: string;
|
|
346
|
+
type?: string;
|
|
347
|
+
from?: string;
|
|
348
|
+
to?: string;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
interface capturePhotoConfig {
|
|
352
|
+
dir: string;
|
|
353
|
+
fileName: string;
|
|
354
|
+
overwrite: boolean;
|
|
355
|
+
quality: number;
|
|
356
|
+
targetHeight: number;
|
|
357
|
+
targetWidth: number;
|
|
358
|
+
handler: Function;
|
|
359
|
+
success: boolean;
|
|
360
|
+
error: string;
|
|
361
|
+
bytesSent: number;
|
|
362
|
+
responseCode: number;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
interface showConfig {
|
|
366
|
+
path: string;
|
|
367
|
+
method?: string;
|
|
368
|
+
meta: Object;
|
|
369
|
+
format: string;
|
|
370
|
+
formats: array;
|
|
371
|
+
data: Object;
|
|
372
|
+
handler: Function;
|
|
373
|
+
transition: Object;
|
|
374
|
+
animation: string;
|
|
375
|
+
screen: string;
|
|
376
|
+
overlay: boolean;
|
|
377
|
+
container: string;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
interface uploadSignatureConfig {
|
|
381
|
+
signaturePadId: string;
|
|
382
|
+
dir: string;
|
|
383
|
+
fileName: string;
|
|
384
|
+
imageType?: string;
|
|
385
|
+
overwrite?: boolean;
|
|
386
|
+
handler: Function;
|
|
387
|
+
success: boolean;
|
|
388
|
+
error: string;
|
|
389
389
|
}
|