@elixir-cloud/trs-filer 2.0.0-alpha.1

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.
Files changed (36) hide show
  1. package/LICENSE +133 -0
  2. package/README.md +48 -0
  3. package/dist/chunks/chunk.3WU6NPWM.js +1 -0
  4. package/dist/chunks/chunk.5A4EA5NE.js +1803 -0
  5. package/dist/chunks/chunk.C5TPOPDW.js +10 -0
  6. package/dist/chunks/chunk.Q5GOJN3Z.js +849 -0
  7. package/dist/chunks/chunk.ULOGEPYW.js +23 -0
  8. package/dist/components/index.d.ts +1 -0
  9. package/dist/components/index.js +4 -0
  10. package/dist/components/tool-create/index.d.ts +8 -0
  11. package/dist/components/tool-create/index.js +3 -0
  12. package/dist/components/tool-create/tool-create.d.ts +75 -0
  13. package/dist/components/tool-create/tool-create.js +2 -0
  14. package/dist/components/tool-create/tw-styles.d.ts +1 -0
  15. package/dist/components/tool-create/tw-styles.js +1 -0
  16. package/dist/custom-elements.json +832 -0
  17. package/dist/events/ecc-tool-create-error.d.ts +6 -0
  18. package/dist/events/ecc-tool-create-success.d.ts +6 -0
  19. package/dist/events/ecc-tool-create-validation-error.d.ts +6 -0
  20. package/dist/events/ecc-tool-created.d.ts +6 -0
  21. package/dist/events/ecc-tools-change.d.ts +6 -0
  22. package/dist/events/ecc-tools-click.d.ts +6 -0
  23. package/dist/events/index.d.ts +6 -0
  24. package/dist/global.d.ts +1 -0
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.js +4 -0
  27. package/dist/providers/index.d.ts +4 -0
  28. package/dist/providers/rest-trs-filer-provider.d.ts +25 -0
  29. package/dist/providers/trs-filer-provider.d.ts +136 -0
  30. package/dist/react/ecc-client-elixir-trs-tool-create/index.d.ts +29 -0
  31. package/dist/react/ecc-client-elixir-trs-tool-create/index.js +3 -0
  32. package/dist/react/index.d.ts +1 -0
  33. package/dist/react/index.js +3 -0
  34. package/dist/vscode.html-custom-data.json +17 -0
  35. package/dist/web-types.json +129 -0
  36. package/package.json +79 -0
package/LICENSE ADDED
@@ -0,0 +1,133 @@
1
+
2
+ Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS
3
+ AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License"
4
+ shall mean the terms and conditions for use, reproduction, and distribution as
5
+ defined by Sections 1 through 9 of this document. "Licensor" shall mean the
6
+ copyright owner or entity authorized by the copyright owner that is granting the
7
+ License. "Legal Entity" shall mean the union of the acting entity and all other
8
+ entities that control, are controlled by, or are under common control with that
9
+ entity. For the purposes of this definition, "control" means (i) the power,
10
+ direct or indirect, to cause the direction or management of such entity, whether
11
+ by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of
12
+ the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or
13
+ "Your") shall mean an individual or Legal Entity exercising permissions granted
14
+ by this License. "Source" form shall mean the preferred form for making
15
+ modifications, including but not limited to software source code, documentation
16
+ source, and configuration files. "Object" form shall mean any form resulting
17
+ from mechanical transformation or translation of a Source form, including but
18
+ not limited to compiled object code, generated documentation, and conversions to
19
+ other media types. "Work" shall mean the work of authorship, whether in Source
20
+ or Object form, made available under the License, as indicated by a copyright
21
+ notice that is included in or attached to the work (an example is provided in
22
+ the Appendix below). "Derivative Works" shall mean any work, whether in Source
23
+ or Object form, that is based on (or derived from) the Work and for which the
24
+ editorial revisions, annotations, elaborations, or other modifications
25
+ represent, as a whole, an original work of authorship. For the purposes of this
26
+ License, Derivative Works shall not include works that remain separable from, or
27
+ merely link (or bind by name) to the interfaces of, the Work and Derivative
28
+ Works thereof. "Contribution" shall mean any work of authorship, including the
29
+ original version of the Work and any modifications or additions to that Work or
30
+ Derivative Works thereof, that is intentionally submitted to Licensor for
31
+ inclusion in the Work by the copyright owner or by an individual or Legal Entity
32
+ authorized to submit on behalf of the copyright owner. For the purposes of this
33
+ definition, "submitted" means any form of electronic, verbal, or written
34
+ communication sent to the Licensor or its representatives, including but not
35
+ limited to communication on electronic mailing lists, source code control
36
+ systems, and issue tracking systems that are managed by, or on behalf of, the
37
+ Licensor for the purpose of discussing and improving the Work, but excluding
38
+ communication that is conspicuously marked or otherwise designated in writing by
39
+ the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor
40
+ and any individual or Legal Entity on behalf of whom a Contribution has been
41
+ received by Licensor and subsequently incorporated within the Work. 2. Grant of
42
+ Copyright License. Subject to the terms and conditions of this License, each
43
+ Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
44
+ no-charge, royalty-free, irrevocable copyright license to reproduce, prepare
45
+ Derivative Works of, publicly display, publicly perform, sublicense, and
46
+ distribute the Work and such Derivative Works in Source or Object form. 3. Grant
47
+ of Patent License. Subject to the terms and conditions of this License, each
48
+ Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
49
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
50
+ license to make, have made, use, offer to sell, sell, import, and otherwise
51
+ transfer the Work, where such license applies only to those patent claims
52
+ licensable by such Contributor that are necessarily infringed by their
53
+ Contribution(s) alone or by combination of their Contribution(s) with the Work
54
+ to which such Contribution(s) was submitted. If You institute patent litigation
55
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
56
+ alleging that the Work or a Contribution incorporated within the Work
57
+ constitutes direct or contributory patent infringement, then any patent licenses
58
+ granted to You under this License for that Work shall terminate as of the date
59
+ such litigation is filed. 4. Redistribution. You may reproduce and distribute
60
+ copies of the Work or Derivative Works thereof in any medium, with or without
61
+ modifications, and in Source or Object form, provided that You meet the
62
+ following conditions: (a) You must give any other recipients of the Work or
63
+ Derivative Works a copy of this License; and (b) You must cause any modified
64
+ files to carry prominent notices stating that You changed the files; and (c) You
65
+ must retain, in the Source form of any Derivative Works that You distribute, all
66
+ copyright, patent, trademark, and attribution notices from the Source form of
67
+ the Work, excluding those notices that do not pertain to any part of the
68
+ Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of
69
+ its distribution, then any Derivative Works that You distribute must include a
70
+ readable copy of the attribution notices contained within such NOTICE file,
71
+ excluding those notices that do not pertain to any part of the Derivative Works,
72
+ in at least one of the following places: within a NOTICE text file distributed
73
+ as part of the Derivative Works; within the Source form or documentation, if
74
+ provided along with the Derivative Works; or, within a display generated by the
75
+ Derivative Works, if and wherever such third-party notices normally appear. The
76
+ contents of the NOTICE file are for informational purposes only and do not
77
+ modify the License. You may add Your own attribution notices within Derivative
78
+ Works that You distribute, alongside or as an addendum to the NOTICE text from
79
+ the Work, provided that such additional attribution notices cannot be construed
80
+ as modifying the License. You may add Your own copyright statement to Your
81
+ modifications and may provide additional or different license terms and
82
+ conditions for use, reproduction, or distribution of Your modifications, or for
83
+ any such Derivative Works as a whole, provided Your use, reproduction, and
84
+ distribution of the Work otherwise complies with the conditions stated in this
85
+ License. 5. Submission of Contributions. Unless You explicitly state otherwise,
86
+ any Contribution intentionally submitted for inclusion in the Work by You to the
87
+ Licensor shall be under the terms and conditions of this License, without any
88
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
89
+ supersede or modify the terms of any separate license agreement you may have
90
+ executed with Licensor regarding such Contributions. 6. Trademarks. This License
91
+ does not grant permission to use the trade names, trademarks, service marks, or
92
+ product names of the Licensor, except as required for reasonable and customary
93
+ use in describing the origin of the Work and reproducing the content of the
94
+ NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or
95
+ agreed to in writing, Licensor provides the Work (and each Contributor provides
96
+ its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
97
+ KIND, either express or implied, including, without limitation, any warranties
98
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
99
+ PARTICULAR PURPOSE. You are solely responsible for determining the
100
+ appropriateness of using or redistributing the Work and assume any risks
101
+ associated with Your exercise of permissions under this License. 8. Limitation
102
+ of Liability. In no event and under no legal theory, whether in tort (including
103
+ negligence), contract, or otherwise, unless required by applicable law (such as
104
+ deliberate and grossly negligent acts) or agreed to in writing, shall any
105
+ Contributor be liable to You for damages, including any direct, indirect,
106
+ special, incidental, or consequential damages of any character arising as a
107
+ result of this License or out of the use or inability to use the Work (including
108
+ but not limited to damages for loss of goodwill, work stoppage, computer failure
109
+ or malfunction, or any and all other commercial damages or losses), even if such
110
+ Contributor has been advised of the possibility of such damages. 9. Accepting
111
+ Warranty or Additional Liability. While redistributing the Work or Derivative
112
+ Works thereof, You may choose to offer, and charge a fee for, acceptance of
113
+ support, warranty, indemnity, or other liability obligations and/or rights
114
+ consistent with this License. However, in accepting such obligations, You may
115
+ act only on Your own behalf and on Your sole responsibility, not on behalf of
116
+ any other Contributor, and only if You agree to indemnify, defend, and hold each
117
+ Contributor harmless for any liability incurred by, or claims asserted against,
118
+ such Contributor by reason of your accepting any such warranty or additional
119
+ liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License
120
+ to your work. To apply the Apache License to your work, attach the following
121
+ boilerplate notice, with the fields enclosed by brackets "[]" replaced with your
122
+ own identifying information. (Don't include the brackets!) The text should be
123
+ enclosed in the appropriate comment syntax for the file format. We also
124
+ recommend that a file or class name and description of purpose be included on
125
+ the same "printed page" as the copyright notice for easier identification within
126
+ third-party archives. Copyright 2022 ELIXIR, Wellcome Genome Campus, Hinxton,
127
+ Cambridgeshire, CB10 1SD, UK Licensed under the Apache License, Version 2.0 (the
128
+ "License"); you may not use this file except in compliance with the License. You
129
+ may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
130
+ Unless required by applicable law or agreed to in writing, software distributed
131
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
132
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
133
+ specific language governing permissions and limitations under the License.
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # @elixir-cloud/trs
2
+
3
+ A web component for interacting with GA4GH Tool Registry Service (TRS) API.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @elixir-cloud/trs
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```html
14
+ <!DOCTYPE html>
15
+ <html>
16
+ <head>
17
+ <script
18
+ type="module"
19
+ src="node_modules/@elixir-cloud/trs/dist/index.js"
20
+ ></script>
21
+ </head>
22
+ <body>
23
+ <ecc-client-ga4gh-trs
24
+ baseUrl="https://trs-filer-test.rahtiapp.fi/ga4gh/trs/v2"
25
+ ></ecc-client-ga4gh-trs>
26
+ </body>
27
+ </html>
28
+ ```
29
+
30
+ ## Development
31
+
32
+ ```bash
33
+ # Install dependencies
34
+ npm install
35
+
36
+ # Build the component
37
+ npm run build
38
+
39
+ # Run the demo
40
+ npm run demo
41
+
42
+ # Run tests
43
+ npm test
44
+ ```
45
+
46
+ ## License
47
+
48
+ Apache-2.0
@@ -0,0 +1 @@
1
+