Commit Graph

964 Commits

Author SHA1 Message Date
Michaël Van Canneyt
2f0cc94585 * Fix issue with ignored formatsettings, reported by Roman Kassebaum, fixes issue #39235 2022-09-30 21:28:18 +02:00
Luca Olivetti
80e261c379 Add disabled property to TButtonWidget 2022-09-29 20:37:05 +02:00
Michaël Van Canneyt
b8cf8a6274 * WebAssembly thread support 2022-09-07 21:06:38 +02:00
Michaël Van Canneyt
137e776f2a * Correct order of arguments in logn 2022-09-01 15:48:28 +02:00
Michaël Van Canneyt
6996e9b418 * Fix casing 2022-08-28 12:15:42 +02:00
Michaël Van Canneyt
0b325c5195 * Fix error in async handling 2022-08-28 12:15:42 +02:00
Michaël Van Canneyt
65d5d05d67 * Register global component find procedure 2022-08-28 12:15:42 +02:00
Michaël Van Canneyt
3e371f14c0 * Some fixes, refresh was wrongly overridden 2022-08-28 12:15:42 +02:00
mattias
de4878c143 Merge branch 'main' of https://gitlab.com/freepascal.org/fpc/pas2js into main 2022-08-26 16:00:21 +02:00
mattias
80a4c037a0 wasmjob: switched job_js using variants, added fetch 2022-08-26 16:00:15 +02:00
Michaël Van Canneyt
f5b7651600 * Add EventSource 2022-08-26 11:31:41 +02:00
mattias
5c42154d6b Merge branch 'main' of https://gitlab.com/freepascal.org/fpc/pas2js into main 2022-08-25 00:22:27 +02:00
mattias
04ae910f3b wasmjob: fixed pass literal string 2022-08-25 00:22:21 +02:00
Michaël Van Canneyt
65efed5142 * Renamed &in to jsIn 2022-08-24 23:54:00 +02:00
Henrique Gottardi Werlang
ae96ff6686 In operator. 2022-08-24 21:51:03 +00:00
mattias
b819dc02c7 wasmjob: fixed callback returning object passed by arg 2022-08-24 23:35:03 +02:00
mattias
60c1186110 wasmjob: fixed callback arg string 2022-08-24 17:31:51 +02:00
Henrique Gottardi Werlang
09155a0b33 Invoke in the RTTI Method. 2022-08-23 07:33:36 -03:00
mattias
c74fcb363a wasmjob: variant object 2022-08-21 20:18:42 +02:00
mattias
d484f6e826 wasmjob: pass utf8string as utf-16 2022-08-20 01:37:20 +02:00
mattias
224d0b3944 wasmjob: started tests 2022-08-18 10:31:25 +02:00
Michaël Van Canneyt
ff46ec5e9e * PDF.js interface 2022-08-14 12:00:14 +02:00
mattias
c5aab46aa4 wasmjob: started fetch demo 2022-08-01 14:04:41 +02:00
mattias
8b6bdbd553 rtl: added allSettled 2022-07-30 19:53:21 +02:00
mattias
6135d09834 wasmjob: added some IJSArray members 2022-07-30 18:51:37 +02:00
Michaël Van Canneyt
c18fba090a * Fix compilation 2022-07-27 08:41:38 +02:00
mattias
600c131157 rtl: fixed TRttiStructuredType.GetProperty case insensitive, issue 39230 2022-07-23 02:38:46 +02:00
Michaël Van Canneyt
56ec14f407 * Tiny editor 2022-07-17 20:48:43 +02:00
mattias
08ec14ff9b wasmjob: started base classes 2022-07-15 20:57:42 +02:00
mattias
25172f1dd1 wasmjob: global objects via names 2022-07-13 18:10:14 +02:00
mattias
264336babc rtl: added TJSObjectClass 2022-07-13 17:58:56 +02:00
mattias
31d1d84886 wasi: clean up 2022-07-13 16:28:17 +02:00
mattias
eb74dbf3b0 wasmjob: merged job_wasm into job_js, moved job_shared and job_browser to packages/job 2022-07-13 15:27:24 +02:00
Michaël Van Canneyt
49606b2627 * Add some convenience functions 2022-07-11 08:58:23 +02:00
Michaël Van Canneyt
4f81e571e4 * Avoid infinite loop in tparser.alphanum. Fix issue #39227 2022-07-11 08:58:04 +02:00
Michaël Van Canneyt
cea050a231 * Fix deleting records from indexes 2022-07-10 11:48:44 +02:00
Michaël Van Canneyt
729cd0db81 * Move message definition, must be available in web workers as well 2022-07-10 11:48:44 +02:00
Michaël Van Canneyt
d70b8c3d54 * DedicatedWorkerGlobalScope 2022-07-10 11:48:44 +02:00
Michaël Van Canneyt
daa8a20fd5 * Fix some compiler warnings 2022-07-10 11:48:44 +02:00
Michaël Van Canneyt
be00ea17f6 * Fix compiler warning 2022-07-10 11:48:44 +02:00
Michaël Van Canneyt
9c9231e6ba * Memo field has no max length, encode param values with EncodeUriComponent 2022-07-10 11:48:44 +02:00
Michaël Van Canneyt
3f2fac179e * Fix some compiler warnings 2022-07-10 11:48:44 +02:00
Michaël Van Canneyt
6ab796a4b5 * Fix warning 2022-07-10 11:48:44 +02:00
Nikolay Nikolov
3518f1ae9a + added method TJSWebAssemblyMemory.grow 2022-07-09 02:45:09 +03:00
Nikolay Nikolov
6512160636 + added 'shared' flag to TJSWebAssemblyMemoryDescriptor 2022-07-09 01:38:43 +03:00
Michaël Van Canneyt
e77cb3502d * Add secsperhour. Fix issue #39226 2022-06-23 07:45:07 +02:00
Michaël Van Canneyt
1cc84b8e1b * Fix wrong import sock_recv 2022-06-22 20:37:37 +02:00
Michaël Van Canneyt
f844cde403 * Use Typed Dataset property of TJSHTMLElement 2022-06-22 17:00:08 +02:00
Michaël Van Canneyt
326b571d8d * IFragmentClient is now alias to IHTMLClient 2022-06-22 16:59:37 +02:00
Michaël Van Canneyt
d03f94beaf * TJSBlob moved to WebOrWorker 2022-06-22 16:58:47 +02:00
Michaël Van Canneyt
86cf9f57c3 * Use Reference to in array callbacks 2022-06-22 16:58:19 +02:00
Michaël Van Canneyt
efe93922d2 * Better handling of DatasetToElement/ElementToDataset 2022-06-22 16:57:35 +02:00
Michaël Van Canneyt
c0d1ebde37 * Server returns base64 encoded blob data 2022-06-22 16:57:07 +02:00
Michaël Van Canneyt
3a45781c1c * Extend blob handling with various formats and event 2022-06-22 16:56:45 +02:00
Michaël Van Canneyt
465f2395b8 IHTMLClient interface 2022-06-22 16:56:19 +02:00
Michaël Van Canneyt
ee912ee368 * Add IHTMLClient, formatHTMLTime 2022-06-22 16:15:09 +02:00
Michaël Van Canneyt
6f673ec196 * Fix moustache function 2022-06-22 16:14:05 +02:00
Michaël Van Canneyt
705e4c08f5 * Fix getting clock time 2022-06-22 16:11:03 +02:00
Michaël Van Canneyt
a897cae63e * iscontenteditable 2022-06-18 14:53:14 +02:00
Michaël Van Canneyt
e7a7f6946e * notification interface 2022-06-18 14:52:59 +02:00
Michaël Van Canneyt
7367b27a66 * Introduce ResourceID, AutoApplyUpdates, better AsQuery implementation 2022-06-17 14:13:05 +02:00
Michaël Van Canneyt
0d9412ffbe * Fix access violation 2022-06-17 14:11:42 +02:00
Michaël Van Canneyt
0e24cef774 * Introduce some aliases 2022-06-17 14:11:19 +02:00
Michaël Van Canneyt
72300c0b73 * Allow to use the default route 2022-06-15 10:28:01 +02:00
Michaël Van Canneyt
c1179cf6f5 * Introduce less generic name for use in IDE 2022-06-13 10:03:37 +02:00
Michaël Van Canneyt
b4e72f8675 * Also show JS excceptions as EExternalException 2022-06-13 10:03:13 +02:00
Michaël Van Canneyt
8c084b528b * Introduce ShowExceptions 2022-06-13 10:02:41 +02:00
Michaël Van Canneyt
ade8cdd468 * Allow to specify delay in ShowToast 2022-06-13 10:01:46 +02:00
Michaël Van Canneyt
f81077146d * Class Of definitions 2022-06-13 09:56:59 +02:00
Michaël Van Canneyt
4ca558c37e ISO8601 date support routines 2022-06-13 09:56:41 +02:00
Michaël Van Canneyt
5297f0cf73 * Improved timezone support in line with FPC 2022-06-13 09:56:15 +02:00
Michaël Van Canneyt
b50087d09d * Change TJSEvent to alias, TargetElement, CurrentTargetElement provided through helper 2022-06-13 09:55:40 +02:00
Michaël Van Canneyt
c4dcf88a62 * Handler reject when doing fetch, register form lowercase 2022-06-13 09:54:57 +02:00
Michaël Van Canneyt
26e8ca99a2 * Add event to set up request 2022-06-11 16:04:40 +02:00
Michaël Van Canneyt
59b0fb327f * Add event to set up request 2022-06-11 16:03:46 +02:00
Michaël Van Canneyt
6a4925eee2 * Fix delete 2022-06-11 16:03:31 +02:00
Michaël Van Canneyt
c4a5282309 * Fix day names 2022-06-11 16:02:48 +02:00
Michaël Van Canneyt
957c5371bc * Fix bug in FloatToDecimal. Fix issue #39220 2022-06-11 08:17:31 +02:00
mattias
c41a54be66 rtl: fixed typo 2022-05-28 22:15:14 +02:00
Michaël Van Canneyt
7f2f5f240a * Catch errors when initializing/instantiating Webassembly 2022-05-28 14:54:08 +02:00
Michaël Van Canneyt
8fa57daec4 Bulma widgets 2022-05-28 14:54:08 +02:00
Michaël Van Canneyt
2461fbec16 * Fix overload of on_ 2022-05-28 14:54:08 +02:00
Michaël Van Canneyt
c22e573ac3 * SkipWaiting function 2022-05-24 17:56:03 +02:00
Michaël Van Canneyt
fc23ed5458 * Some fixes based on remarks of Jerome 2022-05-24 17:44:37 +02:00
Michaël Van Canneyt
777b6dd3ad * Hopefully final fix for TJSResponse constructor 2022-05-24 12:06:27 +02:00
Michaël Van Canneyt
6de7df37e0 * Avoid overload confusion 2022-05-24 11:50:40 +02:00
Michaël Van Canneyt
85d9b33f6c * Use headers in both request and response 2022-05-24 11:13:33 +02:00
Michaël Van Canneyt
9e0d6d0729 * Some fixes in TJSResponse 2022-05-24 11:05:16 +02:00
Michaël Van Canneyt
d72ae15aeb * fromEntries 2022-05-23 19:03:52 +02:00
Michaël Van Canneyt
19b7356981 * Remove duplicates 2022-05-23 16:24:44 +02:00
Michaël Van Canneyt
259a1223a6 * Rearrange, add some methods by Jerome 2022-05-23 13:04:46 +02:00
Michaël Van Canneyt
7cdbf0966b * Generic version of Promise 2022-05-23 13:04:46 +02:00
mattias
65dfb6a31c rtl: added TJSString.replaceAll 2022-05-23 10:04:25 +02:00
mattias
3369ec279d wasi: fixed typo 2022-05-23 10:04:25 +02:00
Michaël Van Canneyt
d6107912ac * Allow filtering through query parameters 2022-05-21 21:28:55 +02:00
Michaël Van Canneyt
791113663a * Fix some warnings, add TLongintField alias 2022-05-21 21:28:55 +02:00
Michaël Van Canneyt
574be89907 * Examples for new design-time editing components 2022-05-21 21:28:55 +02:00
Michaël Van Canneyt
88b90b517d * WASI Service app 2022-05-21 21:28:55 +02:00
Michaël Van Canneyt
46358eb3be * WASI Service app 2022-05-19 08:41:50 +02:00
Michaël Van Canneyt
6159ff9293 * Split out webassembly host 2022-05-19 08:38:34 +02:00
Michaël Van Canneyt
85ab0dc64d * After run parameter 2022-05-19 08:07:14 +02:00
Michaël Van Canneyt
a3a1ba5d28 * Alloc/Free exports 2022-05-19 08:07:14 +02:00
Michaël Van Canneyt
f41b417f2a * Corrections to serviceworker object 2022-05-18 21:16:44 +02:00
Michaël Van Canneyt
bf54462d1f * Fix casing 2022-05-18 17:09:31 +02:00
Michaël Van Canneyt
902300d69a * Crypto is available in web workers 2022-05-18 16:11:01 +02:00
Michaël Van Canneyt
e67986f9f3 * Refactor web to web & worker separate parts 2022-05-18 12:59:34 +02:00
mattias
4c991bb050 fcl-base: service worker: removed env 2022-05-12 12:36:16 +02:00
mattias
3891ead506 fcl-base: use rtl 2022-05-12 12:35:53 +02:00
mattias
1575dd7eeb fcl-base: ReloadEnvironmentStrings: check window 2022-05-12 10:57:30 +02:00
Michaël Van Canneyt
40f289f3b6 * Fixes for latest version 2022-05-09 15:44:02 +02:00
Michaël Van Canneyt
4fb0dc5a9b * Fix typo in imported name 2022-05-09 15:44:02 +02:00
Henrique Gottardi Werlang
1ff36296fb Fixed the quick sort implementation. 2022-05-04 15:26:01 +00:00
Henrique Gottardi Werlang
2e1c24f789 Fixed IsOrdinal from TValue. 2022-05-04 14:07:00 +00:00
Michaël Van Canneyt
d86b3b5742 * Some changes to work when streaming 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
8c8be46ce1 * Deprecated 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
a2de03435d * Foreach callback can be reference to 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
fa4fc061a9 * Fix compiler warnings 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
97cd784cb9 * Rename to be more consistent 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
3f4c2c9252 * Get rid of warnings 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
378fedc319 * Disable compiler warning 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
e1e78c7aef * Make DefaultBlobDataToBytes public 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
25f2393051 * Add getUpdatecount, fix some warnings 2022-05-01 16:40:58 +02:00
Michaël Van Canneyt
add91b7b27 * Support for versions 2022-05-01 16:40:57 +02:00
Michaël Van Canneyt
255280a10b * Some changes to accomodate streaming 2022-05-01 16:40:57 +02:00
Michaël Van Canneyt
32d76c84ee * LibElectron added 2022-04-11 14:00:23 +02:00
Michaël Van Canneyt
7800365186 * Remove unused variables 2022-04-11 13:59:44 +02:00
Michaël Van Canneyt
50f19e89f7 * Add templatename property 2022-04-11 13:59:44 +02:00
Michaël Van Canneyt
b7396548f4 * Add bind call to list 2022-04-11 13:59:44 +02:00
Michaël Van Canneyt
14c840b2fd * Prepare for use in LFM 2022-04-11 13:59:44 +02:00
Michaël Van Canneyt
e22d53612b * Add getHTMLElementById alias to document class 2022-04-11 13:59:44 +02:00
Michaël Van Canneyt
bf2d83e724 * Additional published properties for connection 2022-04-11 13:59:44 +02:00
Michaël Van Canneyt
046777532e * add IfTemplate 2022-04-11 13:59:44 +02:00
Michaël Van Canneyt
3359a0a254 * Resource string encoding 2022-04-11 13:59:44 +02:00
Michaël Van Canneyt
0f909fc3b4 * Better detection of resource format. 2022-04-11 13:59:44 +02:00
mattias
4eb3cac52b rtl: do not use TDataModule and TFormatSettings in initialization 2022-04-09 13:24:26 +02:00
mattias
b3319c4d4a fcl-base: TServiceWorkerApplication: comments 2022-03-31 15:11:04 +02:00
mattias
32705d4659 fcl-base: TServiceWorkerApplication: added virtual methods 2022-03-31 14:59:21 +02:00
mattias
03efe9d17b fcl-base: added serviceworkerapp.pas 2022-03-31 14:39:41 +02:00
mattias
49e4bf63ab rtl: added TBrowserApp.RegisterServiceWorker 2022-03-31 12:02:45 +02:00
mattias
4c501a5ed9 rtl: renamed HasServiceWorker 2022-03-31 12:02:45 +02:00
mattias
1dd4eaa96c rtl: less hints 2022-03-30 14:39:33 +02:00
mattias
0825eba3b7 rtl: TJSNavigationPreloadState 2022-03-30 14:39:33 +02:00
mattias
80136bb8ac rtl: less hints 2022-03-30 14:39:33 +02:00
Michaël Van Canneyt
dc33972704 * fix IsServiceWorker 2022-03-29 18:33:03 +02:00
Michaël Van Canneyt
fdbdca9207 * fix caches 2022-03-29 18:29:07 +02:00
Michaël Van Canneyt
c2a8b40044 * Self for serviceworker 2022-03-29 18:28:16 +02:00
Michaël Van Canneyt
c5acb9a2e2 * Cache and friends 2022-03-29 17:34:33 +02:00
Michaël Van Canneyt
a5286f1dbc * Extendable event etc 2022-03-29 16:37:32 +02:00
Michaël Van Canneyt
940ed2537d * Cannot assigne line ending 2022-03-29 16:37:32 +02:00
Michaël Van Canneyt
a6945100a0 * HTMLActionList 2022-03-21 22:46:55 +01:00
Michaël Van Canneyt
079edf826b * TDatamodule, TResourceStream added 2022-03-21 22:46:55 +01:00
Michaël Van Canneyt
dfb8c2a06c * TDatamodule, TResourceStream added 2022-03-21 22:46:55 +01:00
Michaël Van Canneyt
cd181f192a * Dummy THandle type 2022-03-21 22:46:55 +01:00
Michaël Van Canneyt
3f7fc79935 * Added TJSHTMLElementArray 2022-03-21 22:46:55 +01:00
Michaël Van Canneyt
418901d777 * Allow to add data to route 2022-03-20 09:28:30 +01:00
Michaël Van Canneyt
e2ff032213 * Correct global definition 2022-03-09 11:20:53 +01:00
Michaël Van Canneyt
cedf711a86 * click and trigger 2022-03-05 17:49:35 +01:00
Michaël Van Canneyt
5fec2409ca * PopOver corrections 2022-03-05 17:49:35 +01:00
Michaël Van Canneyt
9088c2050f * Backport some fixes
(cherry picked from commit b792791eae7feb2a08d2eb946e6d725fb891bf6f)
2022-03-05 17:49:35 +01:00
mattias
fb23c8ad49 rtl: less hints 2022-02-14 20:42:58 +01:00
Henrique Gottardi Werlang
ffcb2ac150 Invariant no format settings. 2022-02-09 11:49:54 +00:00
Henrique Gottardi Werlang
54014abb5c Global loading classes implementation. 2022-02-07 07:36:08 -03:00
Henrique Gottardi Werlang
846b223e79 Typeinfo of external classes. 2022-02-06 13:42:35 +00:00
Michaël Van Canneyt
42a493f8e3 * Added TrttiType.GetProperties 2022-02-05 10:22:04 +01:00
Michaël Van Canneyt
354bd551e5 * Sign can accept nativeint. Fix issue #39211 2022-02-02 15:51:32 +01:00
Henrique Gottardi Werlang
4702161f5a All changes in RTTI I have made. 2022-01-29 09:55:59 +00:00
Michaël Van Canneyt
0d7474cec4 * Removing from previous owner after doing validation 2022-01-13 22:44:02 +01:00
Michaël Van Canneyt
f6d675b224 relatedTarget also exists in firefox 2022-01-06 10:04:57 +01:00
Michaël Van Canneyt
9f8e8c71de * Micro improvements 2021-12-29 21:31:29 +01:00
Michaël Van Canneyt
4469f8defe * WASIHostApplication object 2021-12-29 21:31:29 +01:00
Henrique Gottardi Werlang
4c18c4f2a5 Adjusted the component insertion implementation, which did not remove the component from the original owner, only added in the other owner. 2021-12-27 18:12:01 +00:00
Henrique Gottardi Werlang
9d0b5468d1 They forgot the overload. 2021-12-27 14:41:39 -03:00
Michaël Van Canneyt
2d3fbefd0a * Fix error when no import extensions registered 2021-12-27 16:51:34 +01:00
Michaël Van Canneyt
2626eef7c3 * WASI runtime embedding 2021-12-24 14:02:56 +01:00
Michaël Van Canneyt
6f1f064d16 * Xterm package, plus demo 2021-12-24 13:44:37 +01:00
Michaël Van Canneyt
4b07d2f9bb * Memory property for exports 2021-12-24 13:44:37 +01:00
Michaël Van Canneyt
2a840f9e58 * Text decoder/encoder 2021-12-24 13:44:37 +01:00
Michaël Van Canneyt
4c2cdc6e03 * Enhanced patch from Henrique Werlang to implement ancestor type. Fix issue #38945 2021-12-21 17:46:56 +01:00
Michael Van Canneyt
7f643577a7 * Patch from Henrique Werlang to access external classes RTTI info. Fix issue #38944 2021-12-21 15:08:47 +01:00
Michael Van Canneyt
a8b1e1f7c4 * Patch from Dmytro Bogatskyy to add missing overload. Fix issue #39202 2021-12-21 14:51:18 +01:00
Michael Van Canneyt
fb6cf854dd * Fix for escaping too much HTML, issue #39203 2021-12-21 14:32:57 +01:00
Henrique Gottardi Werlang
d69b7e791b Fixed loading boolean property. 2021-12-21 13:22:44 +00:00
Yuri
c9bfb3c440 Added imageSmoothingEnabled property for Canvas 2021-12-21 13:16:43 +00:00
Michael Van Canneyt
2799118b26 * Patch from heliosroots. Closes merge request cd pas2js/ 2021-12-21 14:15:45 +01:00
Michaël Van Canneyt
56d3f11fba * RPC Client + RPC Client Code generator 2021-12-19 22:04:58 +01:00
Michaël Van Canneyt
c9bf21a20d * Pascal code generator from FPC codebase 2021-12-19 22:04:58 +01:00
Michaël Van Canneyt
1714ad692d * Syntax error class 2021-12-19 22:04:58 +01:00
Michaël Van Canneyt
9641700974 * Allow identifiers to start with _ 2021-11-26 12:00:33 +01:00
Michaël Van Canneyt
571ad193dc * Rename newly introduced method 2021-11-26 11:40:53 +01:00
Michaël Van Canneyt
de1173cba4 * Remove unneeded overload directive 2021-11-26 11:35:14 +01:00
Michaël Van Canneyt
097a3d1167 * Restore calculated fields storage, make sure they do not propagate to server 2021-11-26 11:35:14 +01:00
Michaël Van Canneyt
95acdc6501 * Added SinCos for Delphi compatibility 2021-11-26 11:35:14 +01:00
Michaël Van Canneyt
eb52f60dde * Inserted and then deleted records are removed from changelist 2021-10-05 13:57:02 +02:00
Michaël Van Canneyt
37cc921e52 * off 2021-10-04 18:09:24 +02:00
mattias
1feacc66d2 rtl: less anonymous arrays 2021-09-21 12:24:31 +02:00
mattias
103f8ce03a typeinfo: updated comments, that Module, Attributes and Params can be nil 2021-09-21 12:24:06 +02:00
Michaël Van Canneyt
bd6bc41f7f * Fix streaming of chars outside ASCII range 2021-09-12 11:21:09 +02:00
Michaël Van Canneyt
eaf7f8b282 * Correct ReadString to be delphi compatible: count is number of characters, not bytes 2021-09-11 19:09:26 +02:00
Michaël Van Canneyt
b1ebb09f79 * Undo &type 2021-09-06 21:47:14 +02:00
Henrique Gottardi Werlang
8eb6e78e43 Adicionado mais algumas classes de controle de arquivos. 2021-09-06 19:40:39 +00:00