@fgv/ts-web-extras 5.0.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/.rush/temp/86c9c1ad46e237e0b957c2442bf0355cf39babba.tar.log +121 -0
- package/.rush/temp/chunked-rush-logs/ts-web-extras.build.chunks.jsonl +40 -0
- package/.rush/temp/operation/build/all.log +40 -0
- package/.rush/temp/operation/build/log-chunks.jsonl +40 -0
- package/.rush/temp/operation/build/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +624 -0
- package/config/api-extractor.json +343 -0
- package/config/jest.config.json +16 -0
- package/config/rig.json +16 -0
- package/dist/ts-web-extras.d.ts +574 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/docs/index.md +34 -0
- package/docs/ts-web-extras.browserhashprovider.hashparts.md +88 -0
- package/docs/ts-web-extras.browserhashprovider.hashstring.md +72 -0
- package/docs/ts-web-extras.browserhashprovider.md +66 -0
- package/docs/ts-web-extras.exportasjson.md +70 -0
- package/docs/ts-web-extras.exportusingfilesystemapi.md +104 -0
- package/docs/ts-web-extras.extractdirectorypath.md +52 -0
- package/docs/ts-web-extras.fileapitreeaccessors.create.md +72 -0
- package/docs/ts-web-extras.fileapitreeaccessors.extractfilemetadata.md +54 -0
- package/docs/ts-web-extras.fileapitreeaccessors.fromdirectoryupload.md +72 -0
- package/docs/ts-web-extras.fileapitreeaccessors.fromfilelist.md +72 -0
- package/docs/ts-web-extras.fileapitreeaccessors.getoriginalfile.md +72 -0
- package/docs/ts-web-extras.fileapitreeaccessors.md +114 -0
- package/docs/ts-web-extras.filepickeraccepttype.accept.md +11 -0
- package/docs/ts-web-extras.filepickeraccepttype.description.md +11 -0
- package/docs/ts-web-extras.filepickeraccepttype.md +75 -0
- package/docs/ts-web-extras.filesystemcreatewritableoptions_2.keepexistingdata.md +11 -0
- package/docs/ts-web-extras.filesystemcreatewritableoptions_2.md +58 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2._symbol.asynciterator_.md +15 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.entries.md +15 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.getdirectoryhandle.md +66 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.getfilehandle.md +66 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.keys.md +15 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.kind.md +11 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.md +146 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.removeentry.md +66 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.resolve.md +50 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.values.md +15 -0
- package/docs/ts-web-extras.filesystemfilehandle_2.createwritable.md +52 -0
- package/docs/ts-web-extras.filesystemfilehandle_2.getfile.md +15 -0
- package/docs/ts-web-extras.filesystemfilehandle_2.kind.md +11 -0
- package/docs/ts-web-extras.filesystemfilehandle_2.md +92 -0
- package/docs/ts-web-extras.filesystemgetdirectoryoptions_2.create.md +11 -0
- package/docs/ts-web-extras.filesystemgetdirectoryoptions_2.md +58 -0
- package/docs/ts-web-extras.filesystemgetfileoptions_2.create.md +11 -0
- package/docs/ts-web-extras.filesystemgetfileoptions_2.md +58 -0
- package/docs/ts-web-extras.filesystemhandle_2.issameentry.md +50 -0
- package/docs/ts-web-extras.filesystemhandle_2.kind.md +11 -0
- package/docs/ts-web-extras.filesystemhandle_2.md +119 -0
- package/docs/ts-web-extras.filesystemhandle_2.name.md +11 -0
- package/docs/ts-web-extras.filesystemhandle_2.querypermission.md +52 -0
- package/docs/ts-web-extras.filesystemhandle_2.requestpermission.md +52 -0
- package/docs/ts-web-extras.filesystemhandlepermissiondescriptor.md +58 -0
- package/docs/ts-web-extras.filesystemhandlepermissiondescriptor.mode.md +11 -0
- package/docs/ts-web-extras.filesystemremoveoptions_2.md +58 -0
- package/docs/ts-web-extras.filesystemremoveoptions_2.recursive.md +11 -0
- package/docs/ts-web-extras.filesystemwritablefilestream_2.md +57 -0
- package/docs/ts-web-extras.filesystemwritablefilestream_2.seek.md +50 -0
- package/docs/ts-web-extras.filesystemwritablefilestream_2.truncate.md +50 -0
- package/docs/ts-web-extras.filesystemwritablefilestream_2.write.md +50 -0
- package/docs/ts-web-extras.filetreehelpers.defaultfileapitreeinitparams.md +13 -0
- package/docs/ts-web-extras.filetreehelpers.extractfilelistmetadata.md +56 -0
- package/docs/ts-web-extras.filetreehelpers.extractfilemetadata.md +56 -0
- package/docs/ts-web-extras.filetreehelpers.fromdirectoryupload.md +76 -0
- package/docs/ts-web-extras.filetreehelpers.fromfilelist.md +76 -0
- package/docs/ts-web-extras.filetreehelpers.getoriginalfile.md +72 -0
- package/docs/ts-web-extras.filetreehelpers.md +102 -0
- package/docs/ts-web-extras.idirectoryhandletreeinitializer.dirhandles.md +11 -0
- package/docs/ts-web-extras.idirectoryhandletreeinitializer.md +100 -0
- package/docs/ts-web-extras.idirectoryhandletreeinitializer.nonrecursive.md +11 -0
- package/docs/ts-web-extras.idirectoryhandletreeinitializer.prefix.md +11 -0
- package/docs/ts-web-extras.ifilehandletreeinitializer.filehandles.md +11 -0
- package/docs/ts-web-extras.ifilehandletreeinitializer.md +79 -0
- package/docs/ts-web-extras.ifilehandletreeinitializer.prefix.md +11 -0
- package/docs/ts-web-extras.ifilelisttreeinitializer.filelist.md +11 -0
- package/docs/ts-web-extras.ifilelisttreeinitializer.md +58 -0
- package/docs/ts-web-extras.ifilemetadata.lastmodified.md +11 -0
- package/docs/ts-web-extras.ifilemetadata.md +124 -0
- package/docs/ts-web-extras.ifilemetadata.name.md +11 -0
- package/docs/ts-web-extras.ifilemetadata.path.md +11 -0
- package/docs/ts-web-extras.ifilemetadata.size.md +11 -0
- package/docs/ts-web-extras.ifilemetadata.type.md +11 -0
- package/docs/ts-web-extras.ifsaccessapis.md +56 -0
- package/docs/ts-web-extras.ifsaccessapis.showdirectorypicker.md +52 -0
- package/docs/ts-web-extras.ifsaccessapis.showopenfilepicker.md +52 -0
- package/docs/ts-web-extras.ifsaccessapis.showsavefilepicker.md +52 -0
- package/docs/ts-web-extras.isdirectoryhandle.md +56 -0
- package/docs/ts-web-extras.isfilehandle.md +56 -0
- package/docs/ts-web-extras.isfilepath.md +52 -0
- package/docs/ts-web-extras.iurlconfigoptions.config.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.configstartdir.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.contextfilter.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.input.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.inputstartdir.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.interactive.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.loadzip.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.maxdistance.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.md +286 -0
- package/docs/ts-web-extras.iurlconfigoptions.qualifierdefaults.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.reducequalifiers.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.resourcetypes.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.zipfile.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.zippath.md +13 -0
- package/docs/ts-web-extras.md +512 -0
- package/docs/ts-web-extras.parsecontextfilter.md +52 -0
- package/docs/ts-web-extras.parsequalifierdefaults.md +52 -0
- package/docs/ts-web-extras.parseresourcetypes.md +52 -0
- package/docs/ts-web-extras.parseurlparameters.md +17 -0
- package/docs/ts-web-extras.safeshowdirectorypicker.md +72 -0
- package/docs/ts-web-extras.safeshowopenfilepicker.md +72 -0
- package/docs/ts-web-extras.safeshowsavefilepicker.md +72 -0
- package/docs/ts-web-extras.showdirectorypickeroptions.id.md +11 -0
- package/docs/ts-web-extras.showdirectorypickeroptions.md +96 -0
- package/docs/ts-web-extras.showdirectorypickeroptions.mode.md +11 -0
- package/docs/ts-web-extras.showdirectorypickeroptions.startin.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.excludeacceptalloption.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.id.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.md +134 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.multiple.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.startin.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.types.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.excludeacceptalloption.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.id.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.md +134 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.startin.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.suggestedname.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.types.md +11 -0
- package/docs/ts-web-extras.supportsfilesystemaccess.md +56 -0
- package/docs/ts-web-extras.treeinitializer.md +15 -0
- package/docs/ts-web-extras.wellknowndirectory.md +13 -0
- package/docs/ts-web-extras.windowwithfsaccess.md +15 -0
- package/etc/ts-web-extras.api.md +310 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +58 -0
- package/lib/index.js.map +1 -0
- package/lib/packlets/crypto/browserHashProvider.d.ts +24 -0
- package/lib/packlets/crypto/browserHashProvider.d.ts.map +1 -0
- package/lib/packlets/crypto/browserHashProvider.js +70 -0
- package/lib/packlets/crypto/browserHashProvider.js.map +1 -0
- package/lib/packlets/crypto/index.d.ts +6 -0
- package/lib/packlets/crypto/index.d.ts.map +1 -0
- package/lib/packlets/crypto/index.js +43 -0
- package/lib/packlets/crypto/index.js.map +1 -0
- package/lib/packlets/file-api-types/index.d.ts +205 -0
- package/lib/packlets/file-api-types/index.d.ts.map +1 -0
- package/lib/packlets/file-api-types/index.js +166 -0
- package/lib/packlets/file-api-types/index.js.map +1 -0
- package/lib/packlets/file-tree/fileApiTreeAccessors.d.ts +129 -0
- package/lib/packlets/file-tree/fileApiTreeAccessors.d.ts.map +1 -0
- package/lib/packlets/file-tree/fileApiTreeAccessors.js +334 -0
- package/lib/packlets/file-tree/fileApiTreeAccessors.js.map +1 -0
- package/lib/packlets/file-tree/index.d.ts +6 -0
- package/lib/packlets/file-tree/index.d.ts.map +1 -0
- package/lib/packlets/file-tree/index.js +43 -0
- package/lib/packlets/file-tree/index.js.map +1 -0
- package/lib/packlets/helpers/fileTreeHelpers.d.ts +60 -0
- package/lib/packlets/helpers/fileTreeHelpers.d.ts.map +1 -0
- package/lib/packlets/helpers/fileTreeHelpers.js +102 -0
- package/lib/packlets/helpers/fileTreeHelpers.js.map +1 -0
- package/lib/packlets/helpers/index.d.ts +6 -0
- package/lib/packlets/helpers/index.d.ts.map +1 -0
- package/lib/packlets/helpers/index.js +63 -0
- package/lib/packlets/helpers/index.js.map +1 -0
- package/lib/packlets/url-utils/index.d.ts +6 -0
- package/lib/packlets/url-utils/index.d.ts.map +1 -0
- package/lib/packlets/url-utils/index.js +43 -0
- package/lib/packlets/url-utils/index.js.map +1 -0
- package/lib/packlets/url-utils/urlParams.d.ts +94 -0
- package/lib/packlets/url-utils/urlParams.d.ts.map +1 -0
- package/lib/packlets/url-utils/urlParams.js +165 -0
- package/lib/packlets/url-utils/urlParams.js.map +1 -0
- package/lib/test/setupTests.d.ts +2 -0
- package/lib/test/setupTests.d.ts.map +1 -0
- package/lib/test/setupTests.js +76 -0
- package/lib/test/setupTests.js.map +1 -0
- package/lib/test/unit/browserHashProvider.test.d.ts +2 -0
- package/lib/test/unit/browserHashProvider.test.d.ts.map +1 -0
- package/lib/test/unit/browserHashProvider.test.js +142 -0
- package/lib/test/unit/browserHashProvider.test.js.map +1 -0
- package/lib/test/unit/fileApiTreeAccessors.test.d.ts +2 -0
- package/lib/test/unit/fileApiTreeAccessors.test.d.ts.map +1 -0
- package/lib/test/unit/fileApiTreeAccessors.test.js +1139 -0
- package/lib/test/unit/fileApiTreeAccessors.test.js.map +1 -0
- package/lib/test/unit/fileApiTypes.test.d.ts +2 -0
- package/lib/test/unit/fileApiTypes.test.d.ts.map +1 -0
- package/lib/test/unit/fileApiTypes.test.js +444 -0
- package/lib/test/unit/fileApiTypes.test.js.map +1 -0
- package/lib/test/unit/fileTreeHelpers.test.d.ts +2 -0
- package/lib/test/unit/fileTreeHelpers.test.d.ts.map +1 -0
- package/lib/test/unit/fileTreeHelpers.test.js +592 -0
- package/lib/test/unit/fileTreeHelpers.test.js.map +1 -0
- package/lib/test/unit/urlParams.test.d.ts +2 -0
- package/lib/test/unit/urlParams.test.d.ts.map +1 -0
- package/lib/test/unit/urlParams.test.js +395 -0
- package/lib/test/unit/urlParams.test.js.map +1 -0
- package/lib/test/utils/testHelpers.d.ts +51 -0
- package/lib/test/utils/testHelpers.d.ts.map +1 -0
- package/lib/test/utils/testHelpers.js +133 -0
- package/lib/test/utils/testHelpers.js.map +1 -0
- package/package.json +68 -0
- package/rush-logs/ts-web-extras.build.cache.log +3 -0
- package/rush-logs/ts-web-extras.build.log +40 -0
- package/src/index.ts +47 -0
- package/src/packlets/crypto/browserHashProvider.ts +73 -0
- package/src/packlets/crypto/index.ts +28 -0
- package/src/packlets/file-api-types/index.ts +345 -0
- package/src/packlets/file-tree/fileApiTreeAccessors.ts +420 -0
- package/src/packlets/file-tree/index.ts +28 -0
- package/src/packlets/helpers/fileTreeHelpers.ts +107 -0
- package/src/packlets/helpers/index.ts +28 -0
- package/src/packlets/url-utils/index.ts +28 -0
- package/src/packlets/url-utils/urlParams.ts +245 -0
- package/src/test/setupTests.ts +87 -0
- package/src/test/unit/browserHashProvider.test.ts +155 -0
- package/src/test/unit/browserHashProvider.test.ts.bak +376 -0
- package/src/test/unit/fileApiTreeAccessors.test.ts +1318 -0
- package/src/test/unit/fileApiTypes.test.ts +551 -0
- package/src/test/unit/fileTreeHelpers.test.ts +694 -0
- package/src/test/unit/urlParams.test.ts +464 -0
- package/src/test/utils/testHelpers.ts +155 -0
- package/temp/build/typescript/ts_l9Fw4VUO.json +1 -0
- package/temp/coverage/base.css +224 -0
- package/temp/coverage/block-navigation.js +87 -0
- package/temp/coverage/crypto/browserHashProvider.ts.html +304 -0
- package/temp/coverage/crypto/index.html +116 -0
- package/temp/coverage/favicon.png +0 -0
- package/temp/coverage/file-tree/fileApiTreeAccessors.ts.html +1345 -0
- package/temp/coverage/file-tree/index.html +116 -0
- package/temp/coverage/helpers/fileTreeHelpers.ts.html +406 -0
- package/temp/coverage/helpers/index.html +116 -0
- package/temp/coverage/index.html +161 -0
- package/temp/coverage/lcov-report/base.css +224 -0
- package/temp/coverage/lcov-report/block-navigation.js +87 -0
- package/temp/coverage/lcov-report/crypto/browserHashProvider.ts.html +304 -0
- package/temp/coverage/lcov-report/crypto/index.html +116 -0
- package/temp/coverage/lcov-report/favicon.png +0 -0
- package/temp/coverage/lcov-report/file-tree/fileApiTreeAccessors.ts.html +1345 -0
- package/temp/coverage/lcov-report/file-tree/index.html +116 -0
- package/temp/coverage/lcov-report/helpers/fileTreeHelpers.ts.html +406 -0
- package/temp/coverage/lcov-report/helpers/index.html +116 -0
- package/temp/coverage/lcov-report/index.html +161 -0
- package/temp/coverage/lcov-report/prettify.css +1 -0
- package/temp/coverage/lcov-report/prettify.js +2 -0
- package/temp/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/temp/coverage/lcov-report/sorter.js +210 -0
- package/temp/coverage/lcov-report/url-utils/index.html +116 -0
- package/temp/coverage/lcov-report/url-utils/urlParams.ts.html +820 -0
- package/temp/coverage/lcov.info +1096 -0
- package/temp/coverage/prettify.css +1 -0
- package/temp/coverage/prettify.js +2 -0
- package/temp/coverage/sort-arrow-sprite.png +0 -0
- package/temp/coverage/sorter.js +210 -0
- package/temp/coverage/url-utils/index.html +116 -0
- package/temp/coverage/url-utils/urlParams.ts.html +820 -0
- package/temp/test/jest/haste-map-7492f1b44480e0cdd1f220078fb3afd8-c8dd6c3430605adeb2f1cadf4f75e791-8c9336785555d572065b28c111982ba4 +0 -0
- package/temp/test/jest/jest-transform-cache-7492f1b44480e0cdd1f220078fb3afd8-79ef2876fae7ca75eedb2aa53dc48338/63/package_63a8257b0e4d0e7ff33f927d75f27a75 +53 -0
- package/temp/test/jest/perf-cache-7492f1b44480e0cdd1f220078fb3afd8-da39a3ee5e6b4b0d3255bfef95601890 +1 -0
- package/temp/ts-web-extras.api.json +5040 -0
- package/temp/ts-web-extras.api.md +310 -0
- package/tsconfig.json +7 -0
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@fgv/ts-web-extras](./ts-web-extras.md)
|
|
4
|
+
|
|
5
|
+
## ts-web-extras package
|
|
6
|
+
|
|
7
|
+
Browser-compatible utilities and FileTree implementations.
|
|
8
|
+
|
|
9
|
+
This library provides browser-compatible alternatives to Node.js-specific functionality, including Web Crypto API-based hashing, File API-based file tree implementations, and URL parameter parsing utilities. All exports are designed to be tree-shakeable for optimal bundle size.
|
|
10
|
+
|
|
11
|
+
## Classes
|
|
12
|
+
|
|
13
|
+
<table><thead><tr><th>
|
|
14
|
+
|
|
15
|
+
Class
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
</th><th>
|
|
19
|
+
|
|
20
|
+
Description
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
</th></tr></thead>
|
|
24
|
+
<tbody><tr><td>
|
|
25
|
+
|
|
26
|
+
[BrowserHashProvider](./ts-web-extras.browserhashprovider.md)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</td><td>
|
|
30
|
+
|
|
31
|
+
Browser-compatible hash provider using the Web Crypto API. Supports common hash algorithms available in browsers.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
</td></tr>
|
|
35
|
+
<tr><td>
|
|
36
|
+
|
|
37
|
+
[FileApiTreeAccessors](./ts-web-extras.fileapitreeaccessors.md)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
</td><td>
|
|
41
|
+
|
|
42
|
+
Helper class to create FileTree instances from various file sources. Supports File API (FileList) and File System Access API handles.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</td></tr>
|
|
46
|
+
</tbody></table>
|
|
47
|
+
|
|
48
|
+
## Functions
|
|
49
|
+
|
|
50
|
+
<table><thead><tr><th>
|
|
51
|
+
|
|
52
|
+
Function
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</th><th>
|
|
56
|
+
|
|
57
|
+
Description
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</th></tr></thead>
|
|
61
|
+
<tbody><tr><td>
|
|
62
|
+
|
|
63
|
+
[exportAsJson(data, filename)](./ts-web-extras.exportasjson.md)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</td><td>
|
|
67
|
+
|
|
68
|
+
Export data as JSON file using legacy blob download method. Creates a temporary download link and triggers file download.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
</td></tr>
|
|
72
|
+
<tr><td>
|
|
73
|
+
|
|
74
|
+
[exportUsingFileSystemAPI(data, suggestedName, description, window)](./ts-web-extras.exportusingfilesystemapi.md)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</td><td>
|
|
78
|
+
|
|
79
|
+
Export data using File System Access API with fallback to blob download.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
</td></tr>
|
|
83
|
+
<tr><td>
|
|
84
|
+
|
|
85
|
+
[extractDirectoryPath(path)](./ts-web-extras.extractdirectorypath.md)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
</td><td>
|
|
89
|
+
|
|
90
|
+
Extracts the directory path from a file or directory path If the path appears to be a directory (no extension), returns it as-is If the path appears to be a file, returns the parent directory
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
</td></tr>
|
|
94
|
+
<tr><td>
|
|
95
|
+
|
|
96
|
+
[isDirectoryHandle(handle)](./ts-web-extras.isdirectoryhandle.md)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
</td><td>
|
|
100
|
+
|
|
101
|
+
Type guard to check if a FileSystemHandle is a directory handle
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
</td></tr>
|
|
105
|
+
<tr><td>
|
|
106
|
+
|
|
107
|
+
[isFileHandle(handle)](./ts-web-extras.isfilehandle.md)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</td><td>
|
|
111
|
+
|
|
112
|
+
Type guard to check if a FileSystemHandle is a file handle
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</td></tr>
|
|
116
|
+
<tr><td>
|
|
117
|
+
|
|
118
|
+
[isFilePath(path)](./ts-web-extras.isfilepath.md)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
</td><td>
|
|
122
|
+
|
|
123
|
+
Determines if a path appears to be a file (has extension) or directory
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
</td></tr>
|
|
127
|
+
<tr><td>
|
|
128
|
+
|
|
129
|
+
[parseContextFilter(contextFilter)](./ts-web-extras.parsecontextfilter.md)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
</td><td>
|
|
133
|
+
|
|
134
|
+
Converts context filter token to context object Example: "language=en-US\|territory=US" -<!-- -->> { language: "en-US", territory: "US" }
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
</td></tr>
|
|
138
|
+
<tr><td>
|
|
139
|
+
|
|
140
|
+
[parseQualifierDefaults(qualifierDefaults)](./ts-web-extras.parsequalifierdefaults.md)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
</td><td>
|
|
144
|
+
|
|
145
|
+
Converts qualifier defaults token to structured format Example: "language=en-US,en-CA\|territory=US" -<!-- -->> { language: \["en-US", "en-CA"\], territory: \["US"\] }
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
</td></tr>
|
|
149
|
+
<tr><td>
|
|
150
|
+
|
|
151
|
+
[parseResourceTypes(resourceTypes)](./ts-web-extras.parseresourcetypes.md)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
</td><td>
|
|
155
|
+
|
|
156
|
+
Converts resource types string to array Example: "json,string" -<!-- -->> \["json", "string"\]
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
</td></tr>
|
|
160
|
+
<tr><td>
|
|
161
|
+
|
|
162
|
+
[parseUrlParameters()](./ts-web-extras.parseurlparameters.md)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
</td><td>
|
|
166
|
+
|
|
167
|
+
Parses URL parameters and extracts configuration options
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
</td></tr>
|
|
171
|
+
<tr><td>
|
|
172
|
+
|
|
173
|
+
[safeShowDirectoryPicker(window, options)](./ts-web-extras.safeshowdirectorypicker.md)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
</td><td>
|
|
177
|
+
|
|
178
|
+
Safely access showDirectoryPicker with proper type checking
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
</td></tr>
|
|
182
|
+
<tr><td>
|
|
183
|
+
|
|
184
|
+
[safeShowOpenFilePicker(window, options)](./ts-web-extras.safeshowopenfilepicker.md)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
</td><td>
|
|
188
|
+
|
|
189
|
+
Safely access showOpenFilePicker with proper type checking
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
</td></tr>
|
|
193
|
+
<tr><td>
|
|
194
|
+
|
|
195
|
+
[safeShowSaveFilePicker(window, options)](./ts-web-extras.safeshowsavefilepicker.md)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
</td><td>
|
|
199
|
+
|
|
200
|
+
Safely access showSaveFilePicker with proper type checking
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
</td></tr>
|
|
204
|
+
<tr><td>
|
|
205
|
+
|
|
206
|
+
[supportsFileSystemAccess(window)](./ts-web-extras.supportsfilesystemaccess.md)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
</td><td>
|
|
210
|
+
|
|
211
|
+
Type guard to check if the browser supports the File System Access API
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
</td></tr>
|
|
215
|
+
</tbody></table>
|
|
216
|
+
|
|
217
|
+
## Interfaces
|
|
218
|
+
|
|
219
|
+
<table><thead><tr><th>
|
|
220
|
+
|
|
221
|
+
Interface
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
</th><th>
|
|
225
|
+
|
|
226
|
+
Description
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
</th></tr></thead>
|
|
230
|
+
<tbody><tr><td>
|
|
231
|
+
|
|
232
|
+
[FilePickerAcceptType](./ts-web-extras.filepickeraccepttype.md)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
</td><td>
|
|
236
|
+
|
|
237
|
+
File picker accept type
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
</td></tr>
|
|
241
|
+
<tr><td>
|
|
242
|
+
|
|
243
|
+
[FileSystemCreateWritableOptions\_2](./ts-web-extras.filesystemcreatewritableoptions_2.md)
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
</td><td>
|
|
247
|
+
|
|
248
|
+
Options for creating writable file streams
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
</td></tr>
|
|
252
|
+
<tr><td>
|
|
253
|
+
|
|
254
|
+
[FileSystemDirectoryHandle\_2](./ts-web-extras.filesystemdirectoryhandle_2.md)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
</td><td>
|
|
258
|
+
|
|
259
|
+
Directory handle interface
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
</td></tr>
|
|
263
|
+
<tr><td>
|
|
264
|
+
|
|
265
|
+
[FileSystemFileHandle\_2](./ts-web-extras.filesystemfilehandle_2.md)
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
</td><td>
|
|
269
|
+
|
|
270
|
+
File handle interface
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
</td></tr>
|
|
274
|
+
<tr><td>
|
|
275
|
+
|
|
276
|
+
[FileSystemGetDirectoryOptions\_2](./ts-web-extras.filesystemgetdirectoryoptions_2.md)
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
</td><td>
|
|
280
|
+
|
|
281
|
+
Options for getting directory handles
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
</td></tr>
|
|
285
|
+
<tr><td>
|
|
286
|
+
|
|
287
|
+
[FileSystemGetFileOptions\_2](./ts-web-extras.filesystemgetfileoptions_2.md)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
</td><td>
|
|
291
|
+
|
|
292
|
+
Options for getting file handles
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
</td></tr>
|
|
296
|
+
<tr><td>
|
|
297
|
+
|
|
298
|
+
[FileSystemHandle\_2](./ts-web-extras.filesystemhandle_2.md)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
</td><td>
|
|
302
|
+
|
|
303
|
+
Base interface for file system handles
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
</td></tr>
|
|
307
|
+
<tr><td>
|
|
308
|
+
|
|
309
|
+
[FileSystemHandlePermissionDescriptor](./ts-web-extras.filesystemhandlepermissiondescriptor.md)
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
</td><td>
|
|
313
|
+
|
|
314
|
+
Permission descriptor for file system handles
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
</td></tr>
|
|
318
|
+
<tr><td>
|
|
319
|
+
|
|
320
|
+
[FileSystemRemoveOptions\_2](./ts-web-extras.filesystemremoveoptions_2.md)
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
</td><td>
|
|
324
|
+
|
|
325
|
+
Options for removing entries
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
</td></tr>
|
|
329
|
+
<tr><td>
|
|
330
|
+
|
|
331
|
+
[FileSystemWritableFileStream\_2](./ts-web-extras.filesystemwritablefilestream_2.md)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
</td><td>
|
|
335
|
+
|
|
336
|
+
Writable file stream interface
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
</td></tr>
|
|
340
|
+
<tr><td>
|
|
341
|
+
|
|
342
|
+
[IDirectoryHandleTreeInitializer](./ts-web-extras.idirectoryhandletreeinitializer.md)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
</td><td>
|
|
346
|
+
|
|
347
|
+
Tree initializer for File System Access API directory handles.
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
</td></tr>
|
|
351
|
+
<tr><td>
|
|
352
|
+
|
|
353
|
+
[IFileHandleTreeInitializer](./ts-web-extras.ifilehandletreeinitializer.md)
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
</td><td>
|
|
357
|
+
|
|
358
|
+
Tree initializer for File System Access API file handles.
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
</td></tr>
|
|
362
|
+
<tr><td>
|
|
363
|
+
|
|
364
|
+
[IFileListTreeInitializer](./ts-web-extras.ifilelisttreeinitializer.md)
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
</td><td>
|
|
368
|
+
|
|
369
|
+
Tree initializer for FileList objects (from File API).
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
</td></tr>
|
|
373
|
+
<tr><td>
|
|
374
|
+
|
|
375
|
+
[IFileMetadata](./ts-web-extras.ifilemetadata.md)
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
</td><td>
|
|
379
|
+
|
|
380
|
+
Interface for file metadata.
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
</td></tr>
|
|
384
|
+
<tr><td>
|
|
385
|
+
|
|
386
|
+
[IFsAccessApis](./ts-web-extras.ifsaccessapis.md)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
</td><td>
|
|
390
|
+
|
|
391
|
+
File System Access API methods available on Window
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
</td></tr>
|
|
395
|
+
<tr><td>
|
|
396
|
+
|
|
397
|
+
[IUrlConfigOptions](./ts-web-extras.iurlconfigoptions.md)
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
</td><td>
|
|
401
|
+
|
|
402
|
+
Configuration options that can be passed via URL parameters
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
</td></tr>
|
|
406
|
+
<tr><td>
|
|
407
|
+
|
|
408
|
+
[ShowDirectoryPickerOptions](./ts-web-extras.showdirectorypickeroptions.md)
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
</td><td>
|
|
412
|
+
|
|
413
|
+
Directory picker options
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
</td></tr>
|
|
417
|
+
<tr><td>
|
|
418
|
+
|
|
419
|
+
[ShowOpenFilePickerOptions](./ts-web-extras.showopenfilepickeroptions.md)
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
</td><td>
|
|
423
|
+
|
|
424
|
+
File picker options
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
</td></tr>
|
|
428
|
+
<tr><td>
|
|
429
|
+
|
|
430
|
+
[ShowSaveFilePickerOptions](./ts-web-extras.showsavefilepickeroptions.md)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
</td><td>
|
|
434
|
+
|
|
435
|
+
Save file picker options
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
</td></tr>
|
|
439
|
+
</tbody></table>
|
|
440
|
+
|
|
441
|
+
## Namespaces
|
|
442
|
+
|
|
443
|
+
<table><thead><tr><th>
|
|
444
|
+
|
|
445
|
+
Namespace
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
</th><th>
|
|
449
|
+
|
|
450
|
+
Description
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
</th></tr></thead>
|
|
454
|
+
<tbody><tr><td>
|
|
455
|
+
|
|
456
|
+
[FileTreeHelpers](./ts-web-extras.filetreehelpers.md)
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
</td><td>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
</td></tr>
|
|
463
|
+
</tbody></table>
|
|
464
|
+
|
|
465
|
+
## Type Aliases
|
|
466
|
+
|
|
467
|
+
<table><thead><tr><th>
|
|
468
|
+
|
|
469
|
+
Type Alias
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
</th><th>
|
|
473
|
+
|
|
474
|
+
Description
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
</th></tr></thead>
|
|
478
|
+
<tbody><tr><td>
|
|
479
|
+
|
|
480
|
+
[TreeInitializer](./ts-web-extras.treeinitializer.md)
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
</td><td>
|
|
484
|
+
|
|
485
|
+
Union type for all supported tree initializers.
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
</td></tr>
|
|
489
|
+
<tr><td>
|
|
490
|
+
|
|
491
|
+
[WellKnownDirectory](./ts-web-extras.wellknowndirectory.md)
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
</td><td>
|
|
495
|
+
|
|
496
|
+
Well-known directory type
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
</td></tr>
|
|
500
|
+
<tr><td>
|
|
501
|
+
|
|
502
|
+
[WindowWithFsAccess](./ts-web-extras.windowwithfsaccess.md)
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
</td><td>
|
|
506
|
+
|
|
507
|
+
Window interface extended with File System Access API
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
</td></tr>
|
|
511
|
+
</tbody></table>
|
|
512
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@fgv/ts-web-extras](./ts-web-extras.md) > [parseContextFilter](./ts-web-extras.parsecontextfilter.md)
|
|
4
|
+
|
|
5
|
+
## parseContextFilter() function
|
|
6
|
+
|
|
7
|
+
Converts context filter token to context object Example: "language=en-US\|territory=US" -<!-- -->> { language: "en-US", territory: "US" }
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function parseContextFilter(contextFilter: string): Record<string, string>;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
contextFilter
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
string
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
</tbody></table>
|
|
48
|
+
|
|
49
|
+
**Returns:**
|
|
50
|
+
|
|
51
|
+
Record<string, string>
|
|
52
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@fgv/ts-web-extras](./ts-web-extras.md) > [parseQualifierDefaults](./ts-web-extras.parsequalifierdefaults.md)
|
|
4
|
+
|
|
5
|
+
## parseQualifierDefaults() function
|
|
6
|
+
|
|
7
|
+
Converts qualifier defaults token to structured format Example: "language=en-US,en-CA\|territory=US" -<!-- -->> { language: \["en-US", "en-CA"\], territory: \["US"\] }
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function parseQualifierDefaults(qualifierDefaults: string): Record<string, string[]>;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
qualifierDefaults
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
string
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
</tbody></table>
|
|
48
|
+
|
|
49
|
+
**Returns:**
|
|
50
|
+
|
|
51
|
+
Record<string, string\[\]>
|
|
52
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@fgv/ts-web-extras](./ts-web-extras.md) > [parseResourceTypes](./ts-web-extras.parseresourcetypes.md)
|
|
4
|
+
|
|
5
|
+
## parseResourceTypes() function
|
|
6
|
+
|
|
7
|
+
Converts resource types string to array Example: "json,string" -<!-- -->> \["json", "string"\]
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function parseResourceTypes(resourceTypes: string): string[];
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
resourceTypes
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
string
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
</tbody></table>
|
|
48
|
+
|
|
49
|
+
**Returns:**
|
|
50
|
+
|
|
51
|
+
string\[\]
|
|
52
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@fgv/ts-web-extras](./ts-web-extras.md) > [parseUrlParameters](./ts-web-extras.parseurlparameters.md)
|
|
4
|
+
|
|
5
|
+
## parseUrlParameters() function
|
|
6
|
+
|
|
7
|
+
Parses URL parameters and extracts configuration options
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function parseUrlParameters(): IUrlConfigOptions;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
[IUrlConfigOptions](./ts-web-extras.iurlconfigoptions.md)
|
|
17
|
+
|