@sasindi/samplecollection 1.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/LICENSE +354 -0
- package/README.md +123 -0
- package/dist/117.js +1 -0
- package/dist/117.js.map +1 -0
- package/dist/197.js +1 -0
- package/dist/197.js.map +1 -0
- package/dist/237.js +1 -0
- package/dist/237.js.map +1 -0
- package/dist/30.js +1 -0
- package/dist/30.js.map +1 -0
- package/dist/362.js +1 -0
- package/dist/362.js.map +1 -0
- package/dist/410.js +1 -0
- package/dist/410.js.map +1 -0
- package/dist/435.js +1 -0
- package/dist/435.js.map +1 -0
- package/dist/480.js +1 -0
- package/dist/480.js.map +1 -0
- package/dist/517.js +1 -0
- package/dist/517.js.map +1 -0
- package/dist/529.js +1 -0
- package/dist/529.js.map +1 -0
- package/dist/538.js +1 -0
- package/dist/538.js.map +1 -0
- package/dist/578.js +1 -0
- package/dist/578.js.map +1 -0
- package/dist/584.js +22 -0
- package/dist/584.js.map +1 -0
- package/dist/652.js +1 -0
- package/dist/652.js.map +1 -0
- package/dist/668.js +1 -0
- package/dist/668.js.map +1 -0
- package/dist/749.js +1 -0
- package/dist/749.js.map +1 -0
- package/dist/898.js +1 -0
- package/dist/898.js.map +1 -0
- package/dist/964.js +1 -0
- package/dist/964.js.map +1 -0
- package/dist/976.js +1 -0
- package/dist/976.js.map +1 -0
- package/dist/98.js +1 -0
- package/dist/98.js.map +1 -0
- package/dist/981.js +43 -0
- package/dist/981.js.map +1 -0
- package/dist/997.js +1 -0
- package/dist/997.js.map +1 -0
- package/dist/main.js +6 -0
- package/dist/main.js.map +1 -0
- package/dist/openmrs-esm-samplecollection.js +6 -0
- package/dist/openmrs-esm-samplecollection.js.buildmanifest.json +748 -0
- package/dist/openmrs-esm-samplecollection.js.map +1 -0
- package/dist/routes.json +1 -0
- package/package.json +111 -0
- package/src/config-schema.ts +21 -0
- package/src/constants.ts +1 -0
- package/src/declarations.d.ts +23 -0
- package/src/index.ts +28 -0
- package/src/root.component.test.tsx +12 -0
- package/src/root.component.tsx +15 -0
- package/src/root.scss +5 -0
- package/src/routes.json +14 -0
- package/src/samplecollection.component.tsx +280 -0
- package/src/samplecollection.scss +163 -0
- package/src/samplecollectionroom.component.tsx +640 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
Mozilla Public License Version 2.0
|
|
2
|
+
==================================
|
|
3
|
+
|
|
4
|
+
1. Definitions
|
|
5
|
+
--------------
|
|
6
|
+
|
|
7
|
+
1.1. "Contributor"
|
|
8
|
+
means each individual or legal entity that creates, contributes to
|
|
9
|
+
the creation of, or owns Covered Software.
|
|
10
|
+
|
|
11
|
+
1.2. "Contributor Version"
|
|
12
|
+
means the combination of the Contributions of others (if any) used
|
|
13
|
+
by a Contributor and that particular Contributor's Contribution.
|
|
14
|
+
|
|
15
|
+
1.3. "Contribution"
|
|
16
|
+
means Covered Software of a particular Contributor.
|
|
17
|
+
|
|
18
|
+
1.4. "Covered Software"
|
|
19
|
+
means Source Code Form to which the initial Contributor has attached
|
|
20
|
+
the notice in Exhibit A, the Executable Form of such Source Code
|
|
21
|
+
Form, and Modifications of such Source Code Form, in each case
|
|
22
|
+
including portions thereof.
|
|
23
|
+
|
|
24
|
+
1.5. "Incompatible With Secondary Licenses"
|
|
25
|
+
means
|
|
26
|
+
|
|
27
|
+
(a) that the initial Contributor has attached the notice described
|
|
28
|
+
in Exhibit B to the Covered Software; or
|
|
29
|
+
|
|
30
|
+
(b) that the Covered Software was made available under the terms of
|
|
31
|
+
version 1.1 or earlier of the License, but not also under the
|
|
32
|
+
terms of a Secondary License.
|
|
33
|
+
|
|
34
|
+
1.6. "Executable Form"
|
|
35
|
+
means any form of the work other than Source Code Form.
|
|
36
|
+
|
|
37
|
+
1.7. "Larger Work"
|
|
38
|
+
means a work that combines Covered Software with other material, in
|
|
39
|
+
a separate file or files, that is not Covered Software.
|
|
40
|
+
|
|
41
|
+
1.8. "License"
|
|
42
|
+
means this document.
|
|
43
|
+
|
|
44
|
+
1.9. "Licensable"
|
|
45
|
+
means having the right to grant, to the maximum extent possible,
|
|
46
|
+
whether at the time of the initial grant or subsequently, any and
|
|
47
|
+
all of the rights conveyed by this License.
|
|
48
|
+
|
|
49
|
+
1.10. "Modifications"
|
|
50
|
+
means any of the following:
|
|
51
|
+
|
|
52
|
+
(a) any file in Source Code Form that results from an addition to,
|
|
53
|
+
deletion from, or modification of the contents of Covered
|
|
54
|
+
Software; or
|
|
55
|
+
|
|
56
|
+
(b) any new file in Source Code Form that contains any Covered
|
|
57
|
+
Software.
|
|
58
|
+
|
|
59
|
+
1.11. "Patent Claims" of a Contributor
|
|
60
|
+
means any patent claim(s), including without limitation, method,
|
|
61
|
+
process, and apparatus claims, in any patent Licensable by such
|
|
62
|
+
Contributor that would be infringed, but for the grant of the
|
|
63
|
+
License, by the making, using, selling, offering for sale, having
|
|
64
|
+
made, import, or transfer of either its Contributions or its
|
|
65
|
+
Contributor Version.
|
|
66
|
+
|
|
67
|
+
1.12. "Secondary License"
|
|
68
|
+
means either the GNU General Public License, Version 2.0, the GNU
|
|
69
|
+
Lesser General Public License, Version 2.1, the GNU Affero General
|
|
70
|
+
Public License, Version 3.0, or any later versions of those
|
|
71
|
+
licenses.
|
|
72
|
+
|
|
73
|
+
1.13. "Source Code Form"
|
|
74
|
+
means the form of the work preferred for making modifications.
|
|
75
|
+
|
|
76
|
+
1.14. "You" (or "Your")
|
|
77
|
+
means an individual or a legal entity exercising rights under this
|
|
78
|
+
License. For legal entities, "You" includes any entity that
|
|
79
|
+
controls, is controlled by, or is under common control with You. For
|
|
80
|
+
purposes of this definition, "control" means (a) the power, direct or
|
|
81
|
+
indirect, to cause the direction or management of such entity,
|
|
82
|
+
whether by contract or otherwise, or (b) ownership of more than
|
|
83
|
+
fifty percent (50%) of the outstanding shares or beneficial
|
|
84
|
+
ownership of such entity.
|
|
85
|
+
|
|
86
|
+
2. License Grants and Conditions
|
|
87
|
+
--------------------------------
|
|
88
|
+
|
|
89
|
+
2.1. Grants
|
|
90
|
+
|
|
91
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
92
|
+
non-exclusive license:
|
|
93
|
+
|
|
94
|
+
(a) under intellectual property rights (other than patent or trademark)
|
|
95
|
+
Licensable by such Contributor to use, reproduce, make available,
|
|
96
|
+
modify, display, perform, distribute, and otherwise exploit its
|
|
97
|
+
Contributions, either on an unmodified basis, with other
|
|
98
|
+
Modifications, as Covered Software and/or as part of a Larger Work;
|
|
99
|
+
and
|
|
100
|
+
|
|
101
|
+
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
|
102
|
+
for sale, have made, import, and otherwise transfer either its
|
|
103
|
+
Contributions or its Contributor Version.
|
|
104
|
+
|
|
105
|
+
2.2. Effective Date
|
|
106
|
+
|
|
107
|
+
The licenses granted in Section 2.1 with respect to any Contribution
|
|
108
|
+
become effective for each Contribution on the date the Contributor first
|
|
109
|
+
distributes such Contribution.
|
|
110
|
+
|
|
111
|
+
2.3. Limitations on Grant Scope
|
|
112
|
+
|
|
113
|
+
The licenses granted in this Section 2 are the only rights granted under
|
|
114
|
+
this License. No additional rights or licenses will be implied from the
|
|
115
|
+
distribution or licensing of Covered Software under this License.
|
|
116
|
+
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
|
117
|
+
Contributor:
|
|
118
|
+
|
|
119
|
+
(a) for any code that a Contributor has removed from Covered Software;
|
|
120
|
+
or
|
|
121
|
+
|
|
122
|
+
(b) for infringements caused by: (i) Your and any other third party's
|
|
123
|
+
modifications of Covered Software, or (ii) the combination of its
|
|
124
|
+
Contributions with other software (except as part of its Contributor
|
|
125
|
+
Version); or
|
|
126
|
+
|
|
127
|
+
(c) under Patent Claims infringed by Covered Software in the absence of
|
|
128
|
+
its Contributions.
|
|
129
|
+
|
|
130
|
+
This License does not grant any rights in the trademarks, service marks,
|
|
131
|
+
or logos of any Contributor (except as may be necessary to comply with
|
|
132
|
+
the notice requirements in Section 3.4).
|
|
133
|
+
|
|
134
|
+
2.4. Subsequent Licenses
|
|
135
|
+
|
|
136
|
+
No Contributor makes additional grants as a result of Your choice to
|
|
137
|
+
distribute the Covered Software under a subsequent version of this
|
|
138
|
+
License (see Section 10.2) or under the terms of a Secondary License (if
|
|
139
|
+
permitted under the terms of Section 3.3).
|
|
140
|
+
|
|
141
|
+
2.5. Representation
|
|
142
|
+
|
|
143
|
+
Each Contributor represents that the Contributor believes its
|
|
144
|
+
Contributions are its original creation(s) or it has sufficient rights to
|
|
145
|
+
grant the rights to its Contributions conveyed by this License.
|
|
146
|
+
|
|
147
|
+
2.6. Fair Use
|
|
148
|
+
|
|
149
|
+
This License is not intended to limit any rights You have under
|
|
150
|
+
applicable copyright laws of fair use, fair dealing, or other
|
|
151
|
+
equivalents.
|
|
152
|
+
|
|
153
|
+
2.7. Conditions
|
|
154
|
+
|
|
155
|
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
|
156
|
+
in Section 2.1.
|
|
157
|
+
|
|
158
|
+
3. Responsibilities
|
|
159
|
+
-------------------
|
|
160
|
+
|
|
161
|
+
3.1. Distribution of Source Form
|
|
162
|
+
|
|
163
|
+
All distribution of Covered Software in Source Code Form, including any
|
|
164
|
+
Modifications that You create or to which You contribute, must be under
|
|
165
|
+
the terms of this License. You must inform recipients that the Source
|
|
166
|
+
Code Form of the Covered Software is governed by the terms of this
|
|
167
|
+
License, and how they can obtain a copy of this License. You may not
|
|
168
|
+
attempt to alter or restrict the recipients' rights in the Source Code
|
|
169
|
+
Form.
|
|
170
|
+
|
|
171
|
+
3.2. Distribution of Executable Form
|
|
172
|
+
|
|
173
|
+
If You distribute Covered Software in Executable Form then:
|
|
174
|
+
|
|
175
|
+
(a) such Covered Software must also be made available in Source Code
|
|
176
|
+
Form, as described in Section 3.1, and You must inform recipients of
|
|
177
|
+
the Executable Form how they can obtain a copy of such Source Code
|
|
178
|
+
Form by reasonable means in a timely manner, at a charge no more
|
|
179
|
+
than the cost of distribution to the recipient; and
|
|
180
|
+
|
|
181
|
+
(b) You may distribute such Executable Form under the terms of this
|
|
182
|
+
License, or sublicense it under different terms, provided that the
|
|
183
|
+
license for the Executable Form does not attempt to limit or alter
|
|
184
|
+
the recipients' rights in the Source Code Form under this License.
|
|
185
|
+
|
|
186
|
+
3.3. Distribution of a Larger Work
|
|
187
|
+
|
|
188
|
+
You may create and distribute a Larger Work under terms of Your choice,
|
|
189
|
+
provided that You also comply with the requirements of this License for
|
|
190
|
+
the Covered Software. If the Larger Work is a combination of Covered
|
|
191
|
+
Software with a work governed by one or more Secondary Licenses, and the
|
|
192
|
+
Covered Software is not Incompatible With Secondary Licenses, this
|
|
193
|
+
License permits You to additionally distribute such Covered Software under
|
|
194
|
+
the terms of such Secondary License(s), so that the recipient of the
|
|
195
|
+
Larger Work may, at their option, further distribute the Covered Software
|
|
196
|
+
under the terms of either this License or such Secondary License(s).
|
|
197
|
+
|
|
198
|
+
3.4. Notices
|
|
199
|
+
|
|
200
|
+
You may not remove or alter the substance of any license notices
|
|
201
|
+
(including copyright notices, patent notices, disclaimers of warranty,
|
|
202
|
+
or limitations of liability) contained within the Source Code Form of
|
|
203
|
+
the Covered Software, except that You may alter any license notices to
|
|
204
|
+
the extent required to remedy known factual inaccuracies.
|
|
205
|
+
|
|
206
|
+
3.5. Application of Additional Terms
|
|
207
|
+
|
|
208
|
+
You may choose to offer, and to charge a fee for, warranty, support,
|
|
209
|
+
indemnity or other liability obligations and/or rights consistent with
|
|
210
|
+
this License. However, in accepting such obligations, You may act only
|
|
211
|
+
on Your own behalf and on Your sole responsibility, not on behalf of any
|
|
212
|
+
other Contributor, and only if You agree to indemnify, defend, and hold
|
|
213
|
+
each Contributor harmless for any liability incurred by, or claims
|
|
214
|
+
asserted against, such Contributor by reason of your accepting any such
|
|
215
|
+
warranty or support.
|
|
216
|
+
|
|
217
|
+
4. Inability to Comply Due to Statute or Regulation
|
|
218
|
+
---------------------------------------------------
|
|
219
|
+
|
|
220
|
+
If it is impossible for You to comply with any of the terms of this
|
|
221
|
+
License with respect to some or all of the Covered Software due to
|
|
222
|
+
statute, judicial order, or regulation then You must: (a) comply with
|
|
223
|
+
the terms of this License to the maximum extent possible; and (b)
|
|
224
|
+
describe the limitations and the code they affect. Such description must
|
|
225
|
+
be placed in a text file included with all distributions of the Covered
|
|
226
|
+
Software under this License. Except to the extent prohibited by statute
|
|
227
|
+
or regulation, such description must be sufficiently detailed for a
|
|
228
|
+
recipient of ordinary skill to be able to understand it.
|
|
229
|
+
|
|
230
|
+
5. Termination
|
|
231
|
+
--------------
|
|
232
|
+
|
|
233
|
+
5.1. The rights granted under this License will terminate automatically
|
|
234
|
+
if You fail to comply with any of its terms. However, if You become
|
|
235
|
+
compliant, then the rights granted under this License from a particular
|
|
236
|
+
Contributor are reinstated (a) provisionally, unless and until such
|
|
237
|
+
Contributor explicitly and finally terminates Your grants, and (b) on an
|
|
238
|
+
ongoing basis, if such Contributor fails to notify You of the
|
|
239
|
+
non-compliance by some reasonable means prior to 60 days after You have
|
|
240
|
+
come back into compliance. Moreover, Your grants from a particular
|
|
241
|
+
Contributor are reinstated on an ongoing basis if such Contributor
|
|
242
|
+
notifies You of the non-compliance by some reasonable means, this is the
|
|
243
|
+
first time You have received notice of non-compliance with this License
|
|
244
|
+
from such Contributor, and You become compliant prior to 30 days after
|
|
245
|
+
Your receipt of the notice.
|
|
246
|
+
|
|
247
|
+
5.2. If You initiate litigation against any entity by asserting a patent
|
|
248
|
+
infringement claim (excluding declaratory judgment actions,
|
|
249
|
+
counter-claims, and cross-claims) alleging that a Contributor Version
|
|
250
|
+
directly or indirectly infringes any patent, then the rights granted to
|
|
251
|
+
You by any and all Contributors for the Covered Software under Section
|
|
252
|
+
2.1 of this License shall terminate.
|
|
253
|
+
|
|
254
|
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
|
255
|
+
end user license agreements (excluding distributors and resellers) which
|
|
256
|
+
have been validly granted by You or Your distributors under this License
|
|
257
|
+
prior to termination shall survive termination.
|
|
258
|
+
|
|
259
|
+
6. Disclaimer of Warranty
|
|
260
|
+
-------------------------
|
|
261
|
+
|
|
262
|
+
Covered Software is provided under this License on an "as is" basis,
|
|
263
|
+
without warranty of any kind, either expressed, implied, or statutory,
|
|
264
|
+
including, without limitation, warranties that the Covered Software is free
|
|
265
|
+
of defects, merchantable, fit for a particular purpose or non-infringing.
|
|
266
|
+
The entire risk as to the quality and performance of the Covered Software
|
|
267
|
+
is with You. Should any Covered Software prove defective in any respect,
|
|
268
|
+
You (not any Contributor) assume the cost of any necessary servicing,
|
|
269
|
+
repair or correction. This disclaimer of warranty constitutes an essential
|
|
270
|
+
part of this License. No use of any Covered Software is authorized
|
|
271
|
+
under this License except under this disclaimer.
|
|
272
|
+
|
|
273
|
+
7. Limitation of Liability
|
|
274
|
+
---------------------------
|
|
275
|
+
|
|
276
|
+
Under no circumstances and under no legal theory, whether tort (including
|
|
277
|
+
negligence), contract, or otherwise, shall any Contributor, or anyone who
|
|
278
|
+
distributes Covered Software as permitted above, be liable to You for any
|
|
279
|
+
direct, indirect, special, incidental, or consequential damages of any
|
|
280
|
+
character including, without limitation, damages for lost profits, loss of
|
|
281
|
+
goodwill, work stoppage, computer failure or malfunction, or any and all
|
|
282
|
+
other commercial damages or losses, even if such party shall have been
|
|
283
|
+
informed of the possibility of such damages. This limitation of liability
|
|
284
|
+
shall not apply to liability for death or personal injury resulting from
|
|
285
|
+
such party's negligence to the extent applicable law prohibits such
|
|
286
|
+
limitation. Some jurisdictions do not allow the exclusion or limitation
|
|
287
|
+
of incidental or consequential damages, so this exclusion and limitation
|
|
288
|
+
may not apply to You.
|
|
289
|
+
|
|
290
|
+
8. Litigation
|
|
291
|
+
-------------
|
|
292
|
+
|
|
293
|
+
Any litigation relating to this License may be brought only in the
|
|
294
|
+
courts of a jurisdiction where the defendant maintains its principal
|
|
295
|
+
place of business and such litigation shall be governed by laws of that
|
|
296
|
+
jurisdiction, without reference to its conflict-of-law provisions.
|
|
297
|
+
Nothing in this Section shall prevent a party's ability to bring
|
|
298
|
+
cross-claims or counter-claims.
|
|
299
|
+
|
|
300
|
+
9. Miscellaneous
|
|
301
|
+
---------------
|
|
302
|
+
|
|
303
|
+
This License represents the complete agreement concerning the subject
|
|
304
|
+
matter hereof. If any provision of this License is held to be
|
|
305
|
+
unenforceable, such provision shall be reformed only to the extent
|
|
306
|
+
necessary to make it enforceable. Any law or regulation which provides
|
|
307
|
+
that the language of a contract shall be construed against the drafter
|
|
308
|
+
shall not be used to construe this License against a Contributor.
|
|
309
|
+
|
|
310
|
+
10. Versions of the License
|
|
311
|
+
---------------------------
|
|
312
|
+
|
|
313
|
+
10.1. New Versions
|
|
314
|
+
|
|
315
|
+
Mozilla Foundation is the license steward. Except as provided in Section
|
|
316
|
+
10.3, no one other than the license steward has the right to modify or
|
|
317
|
+
publish new versions of this License. Each version will be given a
|
|
318
|
+
distinguishing version number.
|
|
319
|
+
|
|
320
|
+
10.2. Effect of New Versions
|
|
321
|
+
|
|
322
|
+
You may distribute the Covered Software under the terms of the version
|
|
323
|
+
of the License under which You originally received the Covered Software,
|
|
324
|
+
or under the terms of any subsequent version published by the license
|
|
325
|
+
steward.
|
|
326
|
+
|
|
327
|
+
10.3. Modified Versions
|
|
328
|
+
|
|
329
|
+
If you create software not governed by this License, and you want to
|
|
330
|
+
create a new license for such software, you may create and use a
|
|
331
|
+
modified version of this License if you rename the license and remove
|
|
332
|
+
any references to the name of the license steward (except to note that
|
|
333
|
+
such modified license differs from this License).
|
|
334
|
+
|
|
335
|
+
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
|
336
|
+
Licenses
|
|
337
|
+
|
|
338
|
+
If You choose to distribute Source Code Form that is Incompatible With
|
|
339
|
+
Secondary Licenses under the terms of this License, the notice
|
|
340
|
+
described in Exhibit B must be attached.
|
|
341
|
+
|
|
342
|
+
EXHIBIT A: The Source Code Form License Notice
|
|
343
|
+
----------------------------------------------
|
|
344
|
+
|
|
345
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
|
346
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
347
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
348
|
+
|
|
349
|
+
EXHIBIT B: "Incompatible With Secondary Licenses" Notice
|
|
350
|
+
---------------------------------------------------------
|
|
351
|
+
|
|
352
|
+
This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
353
|
+
defined by the Mozilla Public License, v. 2.0.
|
|
354
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# @openmrs/esm-samplecollection
|
|
2
|
+
|
|
3
|
+
samplecollection frontend module for O3
|
|
4
|
+
|
|
5
|
+
## Quick start
|
|
6
|
+
|
|
7
|
+
\`\`\`bash
|
|
8
|
+
yarn install
|
|
9
|
+
yarn start
|
|
10
|
+
\`\`\`
|
|
11
|
+
|
|
12
|
+
Once started, your module will be available at:
|
|
13
|
+
**http://localhost:8080/openmrs/spa/samplecollection**
|
|
14
|
+
|
|
15
|
+
## What's included
|
|
16
|
+
|
|
17
|
+
- ✅ OpenMRS 3.0 microfrontend setup
|
|
18
|
+
- ✅ Carbon Design System integration
|
|
19
|
+
- ✅ Internationalization (i18n) ready
|
|
20
|
+
- ✅ TypeScript configuration
|
|
21
|
+
- ✅ Jest testing setup
|
|
22
|
+
- ✅ ESLint + Prettier
|
|
23
|
+
|
|
24
|
+
## Learn more
|
|
25
|
+
|
|
26
|
+
### OpenMRS O3 resources
|
|
27
|
+
|
|
28
|
+
- [Getting Started](https://o3-docs.openmrs.org/docs/getting-started) - Start here for O3 development
|
|
29
|
+
- [Creating a Frontend Module](https://o3-docs.openmrs.org/docs/frontend-modules/creating-a-frontend-module) - Step-by-step guide
|
|
30
|
+
- [Framework Concepts](https://o3-docs.openmrs.org/docs/framework-concepts) - Core O3 patterns
|
|
31
|
+
|
|
32
|
+
### Development guide
|
|
33
|
+
|
|
34
|
+
- [Extension System](https://o3-docs.openmrs.org/docs/extension-system) - Adding widgets and extensions
|
|
35
|
+
- [State Management](https://o3-docs.openmrs.org/docs/state-management) - Managing app state
|
|
36
|
+
- [Carbon and Styling](https://o3-docs.openmrs.org/docs/carbon-and-styling) - UI components and styling
|
|
37
|
+
- [Testing](https://o3-docs.openmrs.org/docs/testing) - Testing your module
|
|
38
|
+
|
|
39
|
+
### Community
|
|
40
|
+
|
|
41
|
+
- [OpenMRS Talk](https://talk.openmrs.org/) - Community forum for questions
|
|
42
|
+
- [OpenMRS Wiki](https://wiki.openmrs.org/display/RES/OpenMRS+3.x+Dev+Forum) - Join the developer community
|
|
43
|
+
|
|
44
|
+
## Common tasks
|
|
45
|
+
|
|
46
|
+
### Adding new routes
|
|
47
|
+
|
|
48
|
+
See the [Routing Guide](https://o3-docs.openmrs.org/docs/frontend-modules/routing) for details.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Development commands
|
|
52
|
+
|
|
53
|
+
\`\`\`bash
|
|
54
|
+
# Start development server
|
|
55
|
+
yarn start
|
|
56
|
+
|
|
57
|
+
# Build for production
|
|
58
|
+
yarn build
|
|
59
|
+
|
|
60
|
+
# Run tests
|
|
61
|
+
yarn test
|
|
62
|
+
|
|
63
|
+
# Watch tests
|
|
64
|
+
yarn test:watch
|
|
65
|
+
|
|
66
|
+
# Extract translations
|
|
67
|
+
yarn extract-translations
|
|
68
|
+
|
|
69
|
+
# Type checking
|
|
70
|
+
yarn typescript
|
|
71
|
+
|
|
72
|
+
# Linting
|
|
73
|
+
yarn lint
|
|
74
|
+
|
|
75
|
+
# Format code
|
|
76
|
+
yarn prettier
|
|
77
|
+
\`\`\`
|
|
78
|
+
|
|
79
|
+
## Installation
|
|
80
|
+
|
|
81
|
+
\`\`\`bash
|
|
82
|
+
yarn add @openmrs/esm-samplecollection
|
|
83
|
+
\`\`\`
|
|
84
|
+
|
|
85
|
+
## Usage
|
|
86
|
+
|
|
87
|
+
[Add usage instructions here]
|
|
88
|
+
|
|
89
|
+
## Building
|
|
90
|
+
|
|
91
|
+
\`\`\`bash
|
|
92
|
+
yarn build
|
|
93
|
+
\`\`\`
|
|
94
|
+
|
|
95
|
+
## Testing
|
|
96
|
+
|
|
97
|
+
\`\`\`bash
|
|
98
|
+
yarn test
|
|
99
|
+
\`\`\`
|
|
100
|
+
|
|
101
|
+
## Troubleshooting
|
|
102
|
+
|
|
103
|
+
### `openmrs develop` crashes with `Cannot read properties of undefined (reading 'devServer')`
|
|
104
|
+
|
|
105
|
+
Ensure your build config exports the default OpenMRS config:
|
|
106
|
+
|
|
107
|
+
For rspack (default):
|
|
108
|
+
\`\`\`js
|
|
109
|
+
const config = require('@openmrs/rspack-config');
|
|
110
|
+
|
|
111
|
+
module.exports = config.default ?? config;
|
|
112
|
+
\`\`\`
|
|
113
|
+
|
|
114
|
+
For webpack:
|
|
115
|
+
\`\`\`js
|
|
116
|
+
const config = require('@openmrs/webpack-config');
|
|
117
|
+
|
|
118
|
+
module.exports = config.default ?? config;
|
|
119
|
+
\`\`\`
|
|
120
|
+
|
|
121
|
+
### Yarn peer dependency warnings (dayjs, i18next, single-spa, swr, react-is, sass)
|
|
122
|
+
|
|
123
|
+
If you see missing peer dependency warnings, add the missing deps and align `react-i18next` to `11.x` in your `package.json`, then re-run `yarn install`.
|
package/dist/117.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_sasindi_samplecollection=globalThis.webpackChunk_sasindi_samplecollection||[]).push([["117"],{4300(e){e.exports=JSON.parse('{"welcomeToModule":"Welcome to samplecollection!","getStarted":"Get started by adding routes, extensions, or components."}')}}]);
|
package/dist/117.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"117.js","sources":["webpack://@sasindi/samplecollection/json|C:\\Users\\Sasindi\\OneDrive\\Documents\\SLIT projects\\OpenMRS\\OpenmrsO3FrontendModules\\samplecollection\\translations\\en.json"],"names":["JSON"],"mappings":"4IAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,6H"}
|
package/dist/197.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_sasindi_samplecollection=globalThis.webpackChunk_sasindi_samplecollection||[]).push([["197"],{3041(e,t,r){r.r(t),r.d(t,{default:()=>m,infinite:()=>k,unstable_serialize:()=>_});var a=r(658),l=r(2177),i=r(3736),n=r(4993),u=r(9888);let s=()=>{},o=s(),c=Object,f=e=>e===o,d=new WeakMap,p=(e,t)=>e===`[object ${t}]`,g=0,y=e=>{let t,r,a=typeof e,l=c.prototype.toString.call(e),i=p(l,"Date"),n=p(l,"RegExp"),u=p(l,"Object");if(c(e)!==e||i||n)t=i?e.toJSON():"symbol"==a?e.toString():"string"==a?JSON.stringify(e):""+e;else{if(t=d.get(e))return t;if(t=++g+"~",d.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=y(e[r])+",";d.set(e,t)}if(u){t="#";let a=c.keys(e).sort();for(;!f(r=a.pop());)f(e[r])||(t+=r+":"+y(e[r])+",");d.set(e,t)}}return t},b=e=>(e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"",t]})(e?e(0,null):null)[0],_=e=>"$inf$"+b(e),h=Promise.resolve(),k=e=>(t,r,l)=>{let n,s=(0,a.useRef)(!1),{cache:o,initialSize:c=1,revalidateAll:f=!1,persistSize:d=!1,revalidateFirstPage:p=!0,revalidateOnMount:g=!1,parallel:y=!1}=l,[,,,_]=i.b.get(i.c);try{(n=b(t))&&(n="$inf$"+n)}catch(e){}let[k,m,w]=(0,i.z)(o,n),z=(0,a.useCallback)(()=>(0,i.e)(k()._l)?c:k()._l,[o,n,c]);(0,u.useSyncExternalStore)((0,a.useCallback)(e=>n?w(n,()=>{e()}):()=>{},[o,n]),z,z);let v=(0,a.useCallback)(()=>{let e=k()._l;return(0,i.e)(e)?c:e},[n,c]),C=(0,a.useRef)(v());(0,i.u)(()=>{if(!s.current){s.current=!0;return}n&&m({_l:d?C.current:v()})},[n,o]);let S=g&&!s.current,A=e(n,async e=>{let a=k()._i,n=k()._r;m({_r:i.U});let u=[],s=v(),[c]=(0,i.z)(o,e),d=c().data,g=[],b=null;for(let e=0;e<s;++e){let[s,c]=(0,i.s)(t(e,y?null:b));if(!s)break;let[h,k]=(0,i.z)(o,s),m=h().data,w=f||a||(0,i.e)(m)||p&&!e&&!(0,i.e)(d)||S||d&&!(0,i.e)(d[e])&&!l.compare(d[e],m);if(r&&("function"==typeof n?n(m,c):w)){let t=async()=>{if(s in _){let e=_[s];delete _[s],m=await e}else m=await r(c);k({data:m,_k:c}),u[e]=m};y?g.push(t):await t()}else u[e]=m;y||(b=m)}return y&&await Promise.all(g.map(e=>e())),m({_i:i.U}),u},l),$=(0,a.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},a=!1!==r.revalidate;return n?(a&&((0,i.e)(e)?m({_i:!0,_r:r.revalidate}):m({_i:!1,_r:r.revalidate})),arguments.length?A.mutate(e,{...r,revalidate:a}):A.mutate()):h},[n,o]),O=(0,a.useCallback)(e=>{let r;if(!n)return h;let[,a]=(0,i.z)(o,n);if((0,i.a)(e)?r=e(v()):"number"==typeof e&&(r=e),"number"!=typeof r)return h;a({_l:r}),C.current=r;let l=[],[u]=(0,i.z)(o,n),s=null;for(let e=0;e<r;++e){let[r]=(0,i.s)(t(e,s)),[a]=(0,i.z)(o,r),n=r?a().data:i.U;if((0,i.e)(n))return $(u().data);l.push(n),s=n}return $(l)},[n,o,$,v]);return{size:v(),setSize:O,mutate:$,get data(){return A.data},get error(){return A.error},get isValidating(){return A.isValidating},get isLoading(){return A.isLoading}}},m=(0,n.withMiddleware)(l.Ay,k)}}]);
|
package/dist/197.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"197.js","sources":["webpack://@sasindi/samplecollection/./node_modules/swr/dist/infinite/index.mjs"],"names":["Object","WeakMap","t","i","JSON","Array","Promise","e","u","ar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AAO,EAClB,EAEA,CACI,EACA,EACA,EACA,EACH,EAGD,MAAO,CACH,KAAM,IACN,UACA,SACA,IAAI,MAAQ,CACR,OAAO,EAAI,IAAI,AACnB,EACA,IAAI,OAAS,CACT,OAAO,EAAI,KAAK,AACpB,EACA,IAAI,cAAgB,CAChB,OAAO,EAAI,YAAY,AAC3B,EACA,IAAI,WAAa,CACb,OAAO,EAAI,SAAS,AACxB,CACJ,CACJ,EACE,EAAiB,qBAAe,IAAM,CAAE,E"}
|
package/dist/237.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_sasindi_samplecollection=globalThis.webpackChunk_sasindi_samplecollection||[]).push([["237"],{5287(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function b(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=b.prototype;var S=v.prototype=new m;S.constructor=v,_(S,b.prototype),S.isPureReactComponent=!0;var k=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!$.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];u.children=l}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function O(e,t,o){if(null==e)return e;var u=[],a=0;return!function e(t,o,u,a,c){var i,l,s,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var p=!1;if(null===t)p=!0;else switch(f){case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case r:case n:p=!0}}if(p)return c=c(p=t),t=""===a?"."+j(p,0):a,k(c)?(u="",null!=t&&(u=t.replace(g,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(i=c,l=u+(!c.key||p&&p.key===c.key?"":(""+c.key).replace(g,"$&/")+"/")+t,c={$$typeof:r,type:i.type,key:l,ref:i.ref,props:i.props,_owner:i._owner}),o.push(c)),1;if(p=0,a=""===a?".":a+":",k(t))for(var d=0;d<t.length;d++){var _=a+j(f=t[d],d);p+=e(f,o,u,_,c)}else if("function"==typeof(_=null===(s=t)||"object"!=typeof s?null:"function"==typeof(s=y&&s[y]||s["@@iterator"])?s:null))for(t=_.call(t),d=0;!(f=t.next()).done;)_=a+j(f=f.value,d++),p+=e(f,o,u,_,c);else if("object"===f)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return p}(e,u,"","",function(e){return t.call(o,e,a++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},I={transition:null};function T(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,r){O(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:I,ReactCurrentOwner:E},t.act=T,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)w.call(t,l)&&!$.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==i?i[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){i=Array(l);for(var s=0;s<l;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=T,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},6540(e,t,r){e.exports=r(5287)}}]);
|
package/dist/237.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"237.js","sources":["webpack://@sasindi/samplecollection/./node_modules/react/cjs/react.production.min.js","webpack://@sasindi/samplecollection/./node_modules/react/index.js"],"names":["Symbol","n","Object","Error","Array","arguments","c","String","r"],"mappings":"8IASa,IAAI,EAAEA,OAAO,GAAG,CAAC,iBAAiBC,EAAED,OAAO,GAAG,CAAC,gBAAgB,EAAEA,OAAO,GAAG,CAAC,kBAAkB,EAAEA,OAAO,GAAG,CAAC,qBAAqB,EAAEA,OAAO,GAAG,CAAC,kBAAkB,EAAEA,OAAO,GAAG,CAAC,kBAAkB,EAAEA,OAAO,GAAG,CAAC,iBAAiB,EAAEA,OAAO,GAAG,CAAC,qBAAqB,EAAEA,OAAO,GAAG,CAAC,kBAAkB,EAAEA,OAAO,GAAG,CAAC,cAAc,EAAEA,OAAO,GAAG,CAAC,cAAc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