@medplum/react 2.0.5 → 2.0.7

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 (111) hide show
  1. package/dist/cjs/index.cjs +100 -123
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/index.min.cjs +1 -1
  4. package/dist/esm/DescriptionList/DescriptionList.mjs +2 -2
  5. package/dist/esm/DescriptionList/DescriptionList.mjs.map +1 -1
  6. package/dist/esm/MedplumLink/MedplumLink.mjs +3 -2
  7. package/dist/esm/MedplumLink/MedplumLink.mjs.map +1 -1
  8. package/dist/esm/Panel/Panel.mjs +1 -1
  9. package/dist/esm/Panel/Panel.mjs.map +1 -1
  10. package/dist/esm/QuestionnaireBuilder/QuestionnaireBuilder.mjs +6 -6
  11. package/dist/esm/QuestionnaireBuilder/QuestionnaireBuilder.mjs.map +1 -1
  12. package/dist/esm/QuestionnaireForm/QuestionnaireForm.mjs +1 -1
  13. package/dist/esm/QuestionnaireForm/QuestionnaireForm.mjs.map +1 -1
  14. package/dist/esm/ResourceBlame/ResourceBlame.mjs +2 -2
  15. package/dist/esm/ResourceBlame/ResourceBlame.mjs.map +1 -1
  16. package/dist/esm/ResourceDiffTable/ResourceDiffTable.mjs +1 -1
  17. package/dist/esm/ResourceDiffTable/ResourceDiffTable.mjs.map +1 -1
  18. package/dist/esm/ResourceForm/ResourceForm.mjs +2 -2
  19. package/dist/esm/ResourceForm/ResourceForm.mjs.map +1 -1
  20. package/dist/esm/ResourceTimeline/ResourceTimeline.mjs +2 -2
  21. package/dist/esm/ResourceTimeline/ResourceTimeline.mjs.map +1 -1
  22. package/dist/esm/SearchControl/SearchControl.mjs +7 -7
  23. package/dist/esm/SearchControl/SearchControl.mjs.map +1 -1
  24. package/dist/esm/SearchFieldEditor/SearchFieldEditor.mjs +1 -1
  25. package/dist/esm/SearchFieldEditor/SearchFieldEditor.mjs.map +1 -1
  26. package/dist/esm/SearchFilterEditor/SearchFilterEditor.mjs +1 -1
  27. package/dist/esm/SearchFilterEditor/SearchFilterEditor.mjs.map +1 -1
  28. package/dist/esm/TimingInput/TimingInput.mjs +1 -1
  29. package/dist/esm/TimingInput/TimingInput.mjs.map +1 -1
  30. package/dist/esm/index.min.mjs +1 -1
  31. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -1
  32. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs.map +1 -1
  33. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -1
  34. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs.map +1 -1
  35. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustmentsHorizontal.mjs +1 -1
  36. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustmentsHorizontal.mjs.map +1 -1
  37. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs +1 -1
  38. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs.map +1 -1
  39. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleach.mjs +1 -1
  40. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleach.mjs.map +1 -1
  41. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleachOff.mjs +1 -1
  42. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleachOff.mjs.map +1 -1
  43. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs +1 -1
  44. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs.map +1 -1
  45. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBracketsContain.mjs +1 -1
  46. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBracketsContain.mjs.map +1 -1
  47. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucket.mjs +1 -1
  48. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucket.mjs.map +1 -1
  49. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucketOff.mjs +1 -1
  50. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucketOff.mjs.map +1 -1
  51. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.mjs +1 -1
  52. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.mjs.map +1 -1
  53. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -1
  54. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs.map +1 -1
  55. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.mjs +1 -1
  56. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.mjs.map +1 -1
  57. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.mjs +1 -1
  58. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.mjs.map +1 -1
  59. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.mjs +1 -1
  60. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.mjs.map +1 -1
  61. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.mjs +1 -1
  62. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.mjs.map +1 -1
  63. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs +1 -1
  64. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs.map +1 -1
  65. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCurrencyDollar.mjs +1 -1
  66. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCurrencyDollar.mjs.map +1 -1
  67. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs +1 -1
  68. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs.map +1 -1
  69. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs +1 -1
  70. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs.map +1 -1
  71. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqual.mjs +1 -1
  72. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqual.mjs.map +1 -1
  73. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqualNot.mjs +1 -1
  74. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqualNot.mjs.map +1 -1
  75. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFileAlert.mjs +1 -1
  76. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFileAlert.mjs.map +1 -1
  77. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.mjs +1 -1
  78. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.mjs.map +1 -1
  79. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs +1 -1
  80. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs.map +1 -1
  81. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconListDetails.mjs +1 -1
  82. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconListDetails.mjs.map +1 -1
  83. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathGreater.mjs +1 -1
  84. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathGreater.mjs.map +1 -1
  85. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathLower.mjs +1 -1
  86. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathLower.mjs.map +1 -1
  87. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMessage.mjs +1 -1
  88. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMessage.mjs.map +1 -1
  89. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPin.mjs +1 -1
  90. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPin.mjs.map +1 -1
  91. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs +1 -1
  92. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs.map +1 -1
  93. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.mjs +1 -1
  94. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.mjs.map +1 -1
  95. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs +1 -1
  96. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs.map +1 -1
  97. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs +1 -1
  98. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs.map +1 -1
  99. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSquare.mjs +2 -2
  100. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSquare.mjs.map +1 -1
  101. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTableExport.mjs +1 -1
  102. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTableExport.mjs.map +1 -1
  103. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs +1 -1
  104. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs.map +1 -1
  105. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -1
  106. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs.map +1 -1
  107. package/dist/esm/useResource/useResource.mjs +40 -63
  108. package/dist/esm/useResource/useResource.mjs.map +1 -1
  109. package/package.json +10 -10
  110. package/dist/types/icons/IconAdjustmentsHorizontal.d.ts +0 -0
  111. package/tsconfig.build.json +0 -9
@@ -315,7 +315,7 @@
315
315
  }
316
316
 
317
317
  /**
318
- * @tabler/icons-react v2.4.0 - MIT
318
+ * @tabler/icons-react v2.9.0 - MIT
319
319
  */
320
320
 
321
321
  var defaultAttributes = {
@@ -331,7 +331,7 @@
331
331
  };
332
332
 
333
333
  /**
334
- * @tabler/icons-react v2.4.0 - MIT
334
+ * @tabler/icons-react v2.9.0 - MIT
335
335
  */
336
336
 
337
337
  var __defProp = Object.defineProperty;
@@ -394,7 +394,7 @@
394
394
  };
395
395
 
396
396
  /**
397
- * @tabler/icons-react v2.4.0 - MIT
397
+ * @tabler/icons-react v2.9.0 - MIT
398
398
  */
399
399
 
400
400
  var IconAdjustmentsHorizontal = createReactComponent(
@@ -414,7 +414,7 @@
414
414
  );
415
415
 
416
416
  /**
417
- * @tabler/icons-react v2.4.0 - MIT
417
+ * @tabler/icons-react v2.9.0 - MIT
418
418
  */
419
419
 
420
420
  var IconAlertCircle = createReactComponent("alert-circle", "IconAlertCircle", [
@@ -424,7 +424,7 @@
424
424
  ]);
425
425
 
426
426
  /**
427
- * @tabler/icons-react v2.4.0 - MIT
427
+ * @tabler/icons-react v2.9.0 - MIT
428
428
  */
429
429
 
430
430
  var IconBleachOff = createReactComponent("bleach-off", "IconBleachOff", [
@@ -439,7 +439,7 @@
439
439
  ]);
440
440
 
441
441
  /**
442
- * @tabler/icons-react v2.4.0 - MIT
442
+ * @tabler/icons-react v2.9.0 - MIT
443
443
  */
444
444
 
445
445
  var IconBleach = createReactComponent("bleach", "IconBleach", [
@@ -453,7 +453,7 @@
453
453
  ]);
454
454
 
455
455
  /**
456
- * @tabler/icons-react v2.4.0 - MIT
456
+ * @tabler/icons-react v2.9.0 - MIT
457
457
  */
458
458
 
459
459
  var IconBoxMultiple = createReactComponent("box-multiple", "IconBoxMultiple", [
@@ -474,7 +474,7 @@
474
474
  ]);
475
475
 
476
476
  /**
477
- * @tabler/icons-react v2.4.0 - MIT
477
+ * @tabler/icons-react v2.9.0 - MIT
478
478
  */
479
479
 
480
480
  var IconBracketsContain = createReactComponent("brackets-contain", "IconBracketsContain", [
@@ -486,7 +486,7 @@
486
486
  ]);
487
487
 
488
488
  /**
489
- * @tabler/icons-react v2.4.0 - MIT
489
+ * @tabler/icons-react v2.9.0 - MIT
490
490
  */
491
491
 
492
492
  var IconBucketOff = createReactComponent("bucket-off", "IconBucketOff", [
@@ -508,7 +508,7 @@
508
508
  ]);
509
509
 
510
510
  /**
511
- * @tabler/icons-react v2.4.0 - MIT
511
+ * @tabler/icons-react v2.9.0 - MIT
512
512
  */
513
513
 
514
514
  var IconBucket = createReactComponent("bucket", "IconBucket", [
@@ -523,7 +523,7 @@
523
523
  ]);
524
524
 
525
525
  /**
526
- * @tabler/icons-react v2.4.0 - MIT
526
+ * @tabler/icons-react v2.9.0 - MIT
527
527
  */
528
528
 
529
529
  var IconCalendar = createReactComponent("calendar", "IconCalendar", [
@@ -542,7 +542,7 @@
542
542
  ]);
543
543
 
544
544
  /**
545
- * @tabler/icons-react v2.4.0 - MIT
545
+ * @tabler/icons-react v2.9.0 - MIT
546
546
  */
547
547
 
548
548
  var IconCheck = createReactComponent("check", "IconCheck", [
@@ -550,7 +550,7 @@
550
550
  ]);
551
551
 
552
552
  /**
553
- * @tabler/icons-react v2.4.0 - MIT
553
+ * @tabler/icons-react v2.9.0 - MIT
554
554
  */
555
555
 
556
556
  var IconCheckbox = createReactComponent("checkbox", "IconCheckbox", [
@@ -565,7 +565,7 @@
565
565
  ]);
566
566
 
567
567
  /**
568
- * @tabler/icons-react v2.4.0 - MIT
568
+ * @tabler/icons-react v2.9.0 - MIT
569
569
  */
570
570
 
571
571
  var IconCircleMinus = createReactComponent("circle-minus", "IconCircleMinus", [
@@ -574,7 +574,7 @@
574
574
  ]);
575
575
 
576
576
  /**
577
- * @tabler/icons-react v2.4.0 - MIT
577
+ * @tabler/icons-react v2.9.0 - MIT
578
578
  */
579
579
 
580
580
  var IconCirclePlus = createReactComponent("circle-plus", "IconCirclePlus", [
@@ -584,7 +584,7 @@
584
584
  ]);
585
585
 
586
586
  /**
587
- * @tabler/icons-react v2.4.0 - MIT
587
+ * @tabler/icons-react v2.9.0 - MIT
588
588
  */
589
589
 
590
590
  var IconCloudUpload = createReactComponent("cloud-upload", "IconCloudUpload", [
@@ -600,7 +600,7 @@
600
600
  ]);
601
601
 
602
602
  /**
603
- * @tabler/icons-react v2.4.0 - MIT
603
+ * @tabler/icons-react v2.9.0 - MIT
604
604
  */
605
605
 
606
606
  var IconColumns = createReactComponent("columns", "IconColumns", [
@@ -615,7 +615,7 @@
615
615
  ]);
616
616
 
617
617
  /**
618
- * @tabler/icons-react v2.4.0 - MIT
618
+ * @tabler/icons-react v2.9.0 - MIT
619
619
  */
620
620
 
621
621
  var IconCurrencyDollar = createReactComponent("currency-dollar", "IconCurrencyDollar", [
@@ -630,7 +630,7 @@
630
630
  ]);
631
631
 
632
632
  /**
633
- * @tabler/icons-react v2.4.0 - MIT
633
+ * @tabler/icons-react v2.9.0 - MIT
634
634
  */
635
635
 
636
636
  var IconDots = createReactComponent("dots", "IconDots", [
@@ -640,7 +640,7 @@
640
640
  ]);
641
641
 
642
642
  /**
643
- * @tabler/icons-react v2.4.0 - MIT
643
+ * @tabler/icons-react v2.9.0 - MIT
644
644
  */
645
645
 
646
646
  var IconEdit = createReactComponent("edit", "IconEdit", [
@@ -662,7 +662,7 @@
662
662
  ]);
663
663
 
664
664
  /**
665
- * @tabler/icons-react v2.4.0 - MIT
665
+ * @tabler/icons-react v2.9.0 - MIT
666
666
  */
667
667
 
668
668
  var IconEqualNot = createReactComponent("equal-not", "IconEqualNot", [
@@ -672,7 +672,7 @@
672
672
  ]);
673
673
 
674
674
  /**
675
- * @tabler/icons-react v2.4.0 - MIT
675
+ * @tabler/icons-react v2.9.0 - MIT
676
676
  */
677
677
 
678
678
  var IconEqual = createReactComponent("equal", "IconEqual", [
@@ -681,7 +681,7 @@
681
681
  ]);
682
682
 
683
683
  /**
684
- * @tabler/icons-react v2.4.0 - MIT
684
+ * @tabler/icons-react v2.9.0 - MIT
685
685
  */
686
686
 
687
687
  var IconFileAlert = createReactComponent("file-alert", "IconFileAlert", [
@@ -698,7 +698,7 @@
698
698
  ]);
699
699
 
700
700
  /**
701
- * @tabler/icons-react v2.4.0 - MIT
701
+ * @tabler/icons-react v2.9.0 - MIT
702
702
  */
703
703
 
704
704
  var IconFilePlus = createReactComponent("file-plus", "IconFilePlus", [
@@ -715,7 +715,7 @@
715
715
  ]);
716
716
 
717
717
  /**
718
- * @tabler/icons-react v2.4.0 - MIT
718
+ * @tabler/icons-react v2.9.0 - MIT
719
719
  */
720
720
 
721
721
  var IconFilter = createReactComponent("filter", "IconFilter", [
@@ -729,7 +729,7 @@
729
729
  ]);
730
730
 
731
731
  /**
732
- * @tabler/icons-react v2.4.0 - MIT
732
+ * @tabler/icons-react v2.9.0 - MIT
733
733
  */
734
734
 
735
735
  var IconListDetails = createReactComponent("list-details", "IconListDetails", [
@@ -754,7 +754,7 @@
754
754
  ]);
755
755
 
756
756
  /**
757
- * @tabler/icons-react v2.4.0 - MIT
757
+ * @tabler/icons-react v2.9.0 - MIT
758
758
  */
759
759
 
760
760
  var IconMathGreater = createReactComponent("math-greater", "IconMathGreater", [
@@ -762,7 +762,7 @@
762
762
  ]);
763
763
 
764
764
  /**
765
- * @tabler/icons-react v2.4.0 - MIT
765
+ * @tabler/icons-react v2.9.0 - MIT
766
766
  */
767
767
 
768
768
  var IconMathLower = createReactComponent("math-lower", "IconMathLower", [
@@ -770,7 +770,7 @@
770
770
  ]);
771
771
 
772
772
  /**
773
- * @tabler/icons-react v2.4.0 - MIT
773
+ * @tabler/icons-react v2.9.0 - MIT
774
774
  */
775
775
 
776
776
  var IconMessage = createReactComponent("message", "IconMessage", [
@@ -786,7 +786,7 @@
786
786
  ]);
787
787
 
788
788
  /**
789
- * @tabler/icons-react v2.4.0 - MIT
789
+ * @tabler/icons-react v2.9.0 - MIT
790
790
  */
791
791
 
792
792
  var IconPin = createReactComponent("pin", "IconPin", [
@@ -802,7 +802,7 @@
802
802
  ]);
803
803
 
804
804
  /**
805
- * @tabler/icons-react v2.4.0 - MIT
805
+ * @tabler/icons-react v2.9.0 - MIT
806
806
  */
807
807
 
808
808
  var IconPinnedOff = createReactComponent("pinned-off", "IconPinnedOff", [
@@ -819,7 +819,7 @@
819
819
  ]);
820
820
 
821
821
  /**
822
- * @tabler/icons-react v2.4.0 - MIT
822
+ * @tabler/icons-react v2.9.0 - MIT
823
823
  */
824
824
 
825
825
  var IconSettings = createReactComponent("settings", "IconSettings", [
@@ -834,7 +834,7 @@
834
834
  ]);
835
835
 
836
836
  /**
837
- * @tabler/icons-react v2.4.0 - MIT
837
+ * @tabler/icons-react v2.9.0 - MIT
838
838
  */
839
839
 
840
840
  var IconSortAscending = createReactComponent("sort-ascending", "IconSortAscending", [
@@ -846,7 +846,7 @@
846
846
  ]);
847
847
 
848
848
  /**
849
- * @tabler/icons-react v2.4.0 - MIT
849
+ * @tabler/icons-react v2.9.0 - MIT
850
850
  */
851
851
 
852
852
  var IconSortDescending = createReactComponent("sort-descending", "IconSortDescending", [
@@ -858,21 +858,21 @@
858
858
  ]);
859
859
 
860
860
  /**
861
- * @tabler/icons-react v2.4.0 - MIT
861
+ * @tabler/icons-react v2.9.0 - MIT
862
862
  */
863
863
 
864
864
  var IconSquare = createReactComponent("square", "IconSquare", [
865
865
  [
866
866
  "path",
867
867
  {
868
- d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",
868
+ d: "M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",
869
869
  key: "svg-0"
870
870
  }
871
871
  ]
872
872
  ]);
873
873
 
874
874
  /**
875
- * @tabler/icons-react v2.4.0 - MIT
875
+ * @tabler/icons-react v2.9.0 - MIT
876
876
  */
877
877
 
878
878
  var IconTableExport = createReactComponent("table-export", "IconTableExport", [
@@ -886,7 +886,7 @@
886
886
  ]);
887
887
 
888
888
  /**
889
- * @tabler/icons-react v2.4.0 - MIT
889
+ * @tabler/icons-react v2.9.0 - MIT
890
890
  */
891
891
 
892
892
  var IconTrash = createReactComponent("trash", "IconTrash", [
@@ -901,7 +901,7 @@
901
901
  ]);
902
902
 
903
903
  /**
904
- * @tabler/icons-react v2.4.0 - MIT
904
+ * @tabler/icons-react v2.9.0 - MIT
905
905
  */
906
906
 
907
907
  var IconX = createReactComponent("x", "IconX", [
@@ -1030,7 +1030,7 @@
1030
1030
  const useStyles$d = core$1.createStyles((theme, { width, fill }) => ({
1031
1031
  paper: {
1032
1032
  maxWidth: width,
1033
- margin: `${theme.spacing.xl}px auto`,
1033
+ margin: `${theme.spacing.xl} auto`,
1034
1034
  padding: fill ? 0 : theme.spacing.md,
1035
1035
  '@media (max-width: 800px)': {
1036
1036
  padding: fill ? 0 : 8,
@@ -1619,7 +1619,7 @@
1619
1619
  gridTemplateColumns: '30% 70%',
1620
1620
  margin: 0,
1621
1621
  '& > dt, & > dd': {
1622
- padding: `${theme.spacing.sm}px ${theme.spacing.sm}px`,
1622
+ padding: `${theme.spacing.sm} ${theme.spacing.sm}`,
1623
1623
  borderTop: `0.1px solid ${theme.colors.gray[3]}`,
1624
1624
  margin: 0,
1625
1625
  },
@@ -1627,7 +1627,7 @@
1627
1627
  compact: {
1628
1628
  gridTemplateColumns: '20% 80%',
1629
1629
  '& > dt, & > dd': {
1630
- padding: `0 ${theme.spacing.xs}px ${theme.spacing.xs}px 0`,
1630
+ padding: `0 ${theme.spacing.xs} ${theme.spacing.xs} 0`,
1631
1631
  border: 0,
1632
1632
  },
1633
1633
  },
@@ -1747,10 +1747,10 @@
1747
1747
  if (typeof to === 'string') {
1748
1748
  return getStringHref(to);
1749
1749
  }
1750
- else if ('resourceType' in to) {
1750
+ else if (core.isResource(to)) {
1751
1751
  return getResourceHref(to);
1752
1752
  }
1753
- else if ('reference' in to) {
1753
+ else if (core.isReference(to)) {
1754
1754
  return getReferenceHref(to);
1755
1755
  }
1756
1756
  }
@@ -1944,80 +1944,57 @@
1944
1944
  */
1945
1945
  function useResource(value, setOutcome) {
1946
1946
  const medplum = useMedplum();
1947
- const referenceRef = React.useRef(undefined);
1948
- const resourceRef = React.useRef(undefined);
1949
- const lastRequestedRef = React.useRef(undefined);
1950
- // Parse the input value into a reference and resource
1951
- parseValue(value, referenceRef, resourceRef);
1952
- // Priority order:
1953
- // 1. Cached reference
1954
- // 2. Resource passed in as-is
1955
- // 3. Undefined
1956
- const currentResource = getCurrentValue(medplum, referenceRef, resourceRef);
1957
- // Keep track of the previous resource
1958
- // This is used to detect when the resource has changed
1959
- // We need a React "state" variable to trigger a re-render
1960
- const [prevResource, forceRerender] = React.useState(currentResource);
1961
- // Subscribe to changes to the passed-in value
1947
+ const [resource, setResource] = React.useState(getInitialResource(medplum, value));
1948
+ const setResourceIfChanged = React.useCallback((r) => {
1949
+ if (!core.deepEquals(r, resource)) {
1950
+ setResource(r);
1951
+ }
1952
+ }, [resource, setResource]);
1953
+ React.useEffect(() => {
1954
+ setResourceIfChanged(getInitialResource(medplum, value));
1955
+ }, [medplum, value, setResourceIfChanged]);
1962
1956
  React.useEffect(() => {
1963
- if (referenceRef.current && referenceRef.current.reference !== lastRequestedRef.current) {
1964
- lastRequestedRef.current = referenceRef.current.reference;
1957
+ let subscribed = true;
1958
+ if (core.isReference(value)) {
1965
1959
  medplum
1966
- .readReference(referenceRef.current)
1967
- .then((newValue) => {
1968
- if (!core.deepEquals(newValue, prevResource)) {
1969
- forceRerender(newValue);
1960
+ .readReference(value)
1961
+ .then((r) => {
1962
+ if (subscribed) {
1963
+ setResourceIfChanged(r);
1970
1964
  }
1971
1965
  })
1972
1966
  .catch((err) => {
1973
- if (setOutcome) {
1974
- setOutcome(core.normalizeOperationOutcome(err));
1967
+ if (subscribed) {
1968
+ setResourceIfChanged(undefined);
1969
+ if (setOutcome) {
1970
+ setOutcome(core.normalizeOperationOutcome(err));
1971
+ }
1975
1972
  }
1976
1973
  });
1977
1974
  }
1978
- }, [medplum, prevResource, value, setOutcome]);
1979
- return currentResource;
1975
+ return (() => (subscribed = false));
1976
+ }, [medplum, resource, value, setResourceIfChanged, setOutcome]);
1977
+ return resource;
1980
1978
  }
1981
1979
  /**
1982
- * Parses the input into a reference and resource.
1983
- * @param value The input value to parse. Can be either a reference or a resource.
1984
- * @param referenceRef The output reference.
1985
- * @param resourceRef The output resource.
1980
+ * Returns the initial resource value based on the input value.
1981
+ * If the input value is a resource, returns the resource.
1982
+ * If the input value is a reference to a resource available in the cache, returns the resource.
1983
+ * Otherwise, returns undefined.
1984
+ * @param medplum The medplum client.
1985
+ * @param value The resource or reference to resource.
1986
+ * @returns An initial resource if available; undefined otherwise.
1986
1987
  */
1987
- function parseValue(value, referenceRef, resourceRef) {
1988
- // Reset the reference and resource
1989
- referenceRef.current = undefined;
1990
- resourceRef.current = undefined;
1991
- if (!value) {
1992
- return;
1993
- }
1994
- if ('reference' in value) {
1995
- // If the input is a reference then we can use it as-is
1996
- referenceRef.current = value;
1997
- }
1998
- else if ('resourceType' in value) {
1999
- resourceRef.current = value;
2000
- if ('id' in value) {
2001
- // If the input is a resource with an ID, then we can still create a reference
2002
- referenceRef.current = { reference: value.resourceType + '/' + value.id };
1988
+ function getInitialResource(medplum, value) {
1989
+ if (value) {
1990
+ if (core.isResource(value)) {
1991
+ return value;
1992
+ }
1993
+ if (core.isReference(value)) {
1994
+ return medplum.getCachedReference(value);
2003
1995
  }
2004
1996
  }
2005
- }
2006
- /**
2007
- * Returns the best currently available value.
2008
- * This is ***not*** asynchronous and returns immediately.
2009
- * It attempts to return the value from the cache, or the resource passed in as-is.
2010
- * @param medplum The Medplum client.
2011
- * @param referenceRef The reference.
2012
- * @param resourceRef The resource.
2013
- * @returns The currently available value.
2014
- */
2015
- function getCurrentValue(medplum, referenceRef, resourceRef) {
2016
- // Priority order:
2017
- // 1. Cached reference
2018
- // 2. Resource passed in as-is
2019
- // 3. Undefined
2020
- return (referenceRef.current && medplum.getCachedReference(referenceRef.current)) || resourceRef.current;
1997
+ return undefined;
2021
1998
  }
2022
1999
 
2023
2000
  function ResourceForm(props) {
@@ -2027,7 +2004,7 @@
2027
2004
  const [value, setValue] = React.useState();
2028
2005
  React.useEffect(() => {
2029
2006
  if (defaultValue) {
2030
- setValue(JSON.parse(JSON.stringify(defaultValue)));
2007
+ setValue(core.deepClone(defaultValue));
2031
2008
  medplum.requestSchema(defaultValue.resourceType).then(setSchema).catch(console.log);
2032
2009
  }
2033
2010
  }, [medplum, defaultValue]);
@@ -2733,7 +2710,7 @@
2733
2710
  setRepeat({ ...valueRef.current?.repeat, dayOfWeek: existing.filter((d) => d !== day) });
2734
2711
  }
2735
2712
  }
2736
- return (React.createElement(core$1.Modal, { title: "Timing", closeButtonLabel: "Close", opened: props.visible, onClose: () => props.onCancel() },
2713
+ return (React.createElement(core$1.Modal, { title: "Timing", closeButtonProps: { 'aria-label': 'Close' }, opened: props.visible, onClose: () => props.onCancel() },
2737
2714
  React.createElement("div", { style: { padding: '5px 20px', textAlign: 'left' } },
2738
2715
  React.createElement(FormSection, { title: "Starts on", htmlFor: 'timing-dialog-start' },
2739
2716
  React.createElement(DateTimeInput, { name: 'timing-dialog-start', onChange: (newValue) => setStart(newValue) })),
@@ -3322,7 +3299,7 @@
3322
3299
  borderTop: `0.1px solid ${theme.colors.gray[3]}`,
3323
3300
  },
3324
3301
  '& th, & td': {
3325
- padding: `${theme.spacing.sm}px ${theme.spacing.sm}px`,
3302
+ padding: `${theme.spacing.sm} ${theme.spacing.sm}`,
3326
3303
  verticalAlign: 'top',
3327
3304
  },
3328
3305
  },
@@ -3655,7 +3632,7 @@
3655
3632
  title: 'Initializing upload...',
3656
3633
  message: 'Please wait...',
3657
3634
  autoClose: false,
3658
- disallowClose: true,
3635
+ withCloseButton: false,
3659
3636
  });
3660
3637
  }
3661
3638
  function onUploadProgress(e) {
@@ -3665,7 +3642,7 @@
3665
3642
  title: 'Uploading...',
3666
3643
  message: getProgressMessage(e),
3667
3644
  autoClose: false,
3668
- disallowClose: true,
3645
+ withCloseButton: false,
3669
3646
  });
3670
3647
  }
3671
3648
  if (!resource) {
@@ -4438,7 +4415,7 @@
4438
4415
  const available = getFieldsList(typeDef)
4439
4416
  .filter((field) => !selected?.includes(field))
4440
4417
  .sort();
4441
- return (React.createElement(core$1.Modal, { title: "Fields", closeButtonLabel: "Close", opened: props.visible, onClose: props.onCancel },
4418
+ return (React.createElement(core$1.Modal, { title: "Fields", closeButtonProps: { 'aria-label': 'Close' }, opened: props.visible, onClose: props.onCancel },
4442
4419
  React.createElement("div", null,
4443
4420
  React.createElement("table", { style: { margin: 'auto' } },
4444
4421
  React.createElement("thead", null,
@@ -4572,7 +4549,7 @@
4572
4549
  const resourceType = props.search.resourceType;
4573
4550
  const searchParams = core.globalSchema.types[resourceType].searchParams;
4574
4551
  const filters = search.filters || [];
4575
- return (React.createElement(core$1.Modal, { title: "Filters", closeButtonLabel: "Close", size: 900, opened: props.visible, onClose: props.onCancel },
4552
+ return (React.createElement(core$1.Modal, { title: "Filters", closeButtonProps: { 'aria-label': 'Close' }, size: 900, opened: props.visible, onClose: props.onCancel },
4576
4553
  React.createElement("div", null,
4577
4554
  React.createElement("table", null,
4578
4555
  React.createElement("colgroup", null,
@@ -4901,7 +4878,7 @@
4901
4878
  },
4902
4879
  control: {
4903
4880
  width: '100%',
4904
- padding: `${theme.spacing.xs}px ${theme.spacing.md}px`,
4881
+ padding: `${theme.spacing.xs} ${theme.spacing.md}`,
4905
4882
  '&:hover': {
4906
4883
  backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[0],
4907
4884
  },
@@ -5090,14 +5067,14 @@
5090
5067
  React.createElement(core$1.Center, { style: { height: 150 } },
5091
5068
  React.createElement(core$1.Text, { size: "xl", color: "dimmed" }, "No results")))),
5092
5069
  lastResult?.total !== undefined && lastResult.total > 0 && (React.createElement(core$1.Center, { m: "md", p: "md" },
5093
- React.createElement(core$1.Pagination, { page: getPage(search), total: getTotalPages(search, lastResult.total), onChange: (newPage) => emitSearchChange(setPage(search, newPage)), getItemAriaLabel: (page) => {
5094
- switch (page) {
5095
- case 'prev':
5096
- return 'Previous page';
5070
+ React.createElement(core$1.Pagination, { value: getPage(search), total: getTotalPages(search, lastResult.total), onChange: (newPage) => emitSearchChange(setPage(search, newPage)), getControlProps: (control) => {
5071
+ switch (control) {
5072
+ case 'previous':
5073
+ return { 'aria-label': 'Previous page' };
5097
5074
  case 'next':
5098
- return 'Next page';
5075
+ return { 'aria-label': 'Next page' };
5099
5076
  default:
5100
- return undefined;
5077
+ return {};
5101
5078
  }
5102
5079
  } }))),
5103
5080
  outcome && (React.createElement("div", { "data-testid": "search-error" },
@@ -5759,7 +5736,7 @@
5759
5736
  options.push([optionName, optionValue]);
5760
5737
  }
5761
5738
  }
5762
- return (React.createElement(core$1.Radio.Group, { name: name, orientation: "vertical", defaultValue: defaultValue, onChange: (newValue) => {
5739
+ return (React.createElement(core$1.Radio.Group, { name: name, defaultValue: defaultValue, onChange: (newValue) => {
5763
5740
  const option = options.find((option) => option[0] === newValue);
5764
5741
  if (option) {
5765
5742
  const optionValue = option[1];
@@ -5907,7 +5884,7 @@
5907
5884
  const { classes, cx } = useStyles$4();
5908
5885
  const resource = props.item;
5909
5886
  const item = props.item;
5910
- const isResource = 'resourceType' in props.item;
5887
+ const isResource = core.isResource(props.item);
5911
5888
  const isContainer = isResource || item.type === exports.QuestionnaireItemType.group;
5912
5889
  const linkId = item.linkId ?? '[untitled]';
5913
5890
  const editing = props.selectedKey === props.item.id;
@@ -6644,13 +6621,13 @@
6644
6621
  border: 0,
6645
6622
  color: theme.colors.gray[5],
6646
6623
  fontFamily: theme.fontFamilyMonospace,
6647
- padding: `${theme.spacing.xs}px ${theme.spacing.sm}px`,
6624
+ padding: `${theme.spacing.xs} ${theme.spacing.sm}`,
6648
6625
  textAlign: 'right',
6649
6626
  },
6650
6627
  line: {
6651
6628
  fontFamily: theme.fontFamilyMonospace,
6652
6629
  fontSize: theme.fontSizes.sm,
6653
- padding: `${theme.spacing.xs}px ${theme.spacing.sm}px`,
6630
+ padding: `${theme.spacing.xs} ${theme.spacing.sm}`,
6654
6631
  },
6655
6632
  pre: {
6656
6633
  margin: 0,