@arcgis/charts-components 6.0.0-next.40 → 6.0.0-next.42

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 (156) hide show
  1. package/dist/cdn/{N4VKOGCE.js → 2CMGEGOB.js} +1 -1
  2. package/dist/cdn/{FWETNIKF.js → 2NLUPVHC.js} +1 -1
  3. package/dist/cdn/{RFI6U64E.js → 2V6RDUQ4.js} +1 -1
  4. package/dist/cdn/{MNHJXGWB.js → 2XLWTT5J.js} +1 -1
  5. package/dist/cdn/{SWE5OVAM.js → 3SON5ZPC.js} +1 -1
  6. package/dist/cdn/3T4EFKYY.js +2 -0
  7. package/dist/cdn/{FWB3GJHP.js → 5HGXAW7L.js} +1 -1
  8. package/dist/cdn/{RAXTWSX7.js → 632TROA6.js} +1 -1
  9. package/dist/cdn/{W34R4JQD.js → 6FZRG4EO.js} +1 -1
  10. package/dist/cdn/{SEAGEOR3.js → 77J6TCGN.js} +1 -1
  11. package/dist/cdn/{DPNQLXLE.js → 7BGIK4OA.js} +1 -1
  12. package/dist/cdn/{2S3IMV7O.js → 7KZBWHVH.js} +1 -1
  13. package/dist/cdn/{JXUSPONB.js → ABAVANHR.js} +1 -1
  14. package/dist/cdn/{QE2PCHA4.js → ACTB6ZBK.js} +1 -1
  15. package/dist/cdn/{2W6EH2HT.js → AIJWEEVP.js} +1 -1
  16. package/dist/cdn/{X6JMBWG7.js → AYTSMVNG.js} +1 -1
  17. package/dist/cdn/{DKMYO4GP.js → B4M6AGX7.js} +1 -1
  18. package/dist/cdn/{V564QSU3.js → BUQ5MOP3.js} +1 -1
  19. package/dist/cdn/{YDKVGUUH.js → CBVIPAP3.js} +1 -1
  20. package/dist/cdn/{HEJIMSEP.js → CMQLHBQN.js} +1 -1
  21. package/dist/cdn/{KIDN7AE6.js → D3DZ7A7U.js} +1 -1
  22. package/dist/cdn/{7JMZPDM5.js → DCUEO36P.js} +1 -1
  23. package/dist/cdn/{CBWKTXC5.js → DPWHTNBE.js} +1 -1
  24. package/dist/cdn/{3YSNYETN.js → DRSKZGA5.js} +1 -1
  25. package/dist/cdn/{KQXIXHLV.js → EMAAJMBF.js} +1 -1
  26. package/dist/cdn/{3642CP3R.js → EOHEGVDJ.js} +1 -1
  27. package/dist/cdn/{3ZFAYKJQ.js → EYPUS3OS.js} +1 -1
  28. package/dist/cdn/{FLVDCXI5.js → FQTWIBKD.js} +1 -1
  29. package/dist/cdn/{DVEX52DB.js → G7AMXOVC.js} +1 -1
  30. package/dist/cdn/{PNMVOOAS.js → GH6LRRWO.js} +1 -1
  31. package/dist/cdn/{AMVPRTNI.js → GLCI3ZBA.js} +1 -1
  32. package/dist/cdn/{WT6Y3ALM.js → GSMBQFDI.js} +1 -1
  33. package/dist/cdn/{AGCK7Y3J.js → GVAS6PT3.js} +1 -1
  34. package/dist/cdn/{UHIFEXWJ.js → H6DQWWRK.js} +1 -1
  35. package/dist/cdn/{XFHCIQYP.js → HADWVYUW.js} +1 -1
  36. package/dist/cdn/{6KL6DV3E.js → HTLGMV4S.js} +1 -1
  37. package/dist/cdn/{MCK5B2BZ.js → I7MZOOIY.js} +1 -1
  38. package/dist/cdn/{XSQEK2DR.js → I7YQ3JCN.js} +1 -1
  39. package/dist/cdn/{IBB72HGQ.js → IEFTCPY3.js} +1 -1
  40. package/dist/cdn/{B2VFTKK6.js → INDJVCWV.js} +1 -1
  41. package/dist/cdn/{DXIZZBC3.js → J423NIGD.js} +1 -1
  42. package/dist/cdn/{Z2LXXRNV.js → J6SK2Z5T.js} +1 -1
  43. package/dist/cdn/{HNUEP5UH.js → JOVBNTEF.js} +1 -1
  44. package/dist/cdn/{XBFYV6W2.js → KIFYEOUU.js} +1 -1
  45. package/dist/cdn/{N6IQLOCY.js → KPX7NHM3.js} +1 -1
  46. package/dist/cdn/{HTLTED56.js → LSPD3MG7.js} +1 -1
  47. package/dist/cdn/{RYSNUM3A.js → M3N747C7.js} +1 -1
  48. package/dist/cdn/{52TVDV6J.js → M5UN3MYY.js} +1 -1
  49. package/dist/cdn/ME7EHCPR.js +2 -0
  50. package/dist/cdn/{AHDUDHZR.js → NKO2OO5N.js} +1 -1
  51. package/dist/cdn/{F2UUETR2.js → NWG4Q36V.js} +1 -1
  52. package/dist/cdn/{2IRI6FP7.js → O5MLVZLK.js} +1 -1
  53. package/dist/cdn/{H5VGO7ZZ.js → OLCWI4XN.js} +1 -1
  54. package/dist/cdn/{OEYCWE7U.js → PER6C4U2.js} +1 -1
  55. package/dist/cdn/{HAXUUJKD.js → PSOSE6LU.js} +1 -1
  56. package/dist/cdn/{RYKZNNAE.js → QBPDUGAU.js} +1 -1
  57. package/dist/cdn/{S5LVF5UL.js → QD733XNJ.js} +1 -1
  58. package/dist/cdn/{LAVDVQYZ.js → QVOSII2D.js} +1 -1
  59. package/dist/cdn/{LHYIQG2Q.js → R3UAKAS4.js} +1 -1
  60. package/dist/cdn/{WSHSXWLF.js → RGWPVW43.js} +1 -1
  61. package/dist/cdn/{OAQNKLKH.js → S22VFPC7.js} +1 -1
  62. package/dist/cdn/{ON6KUQYR.js → SU7RJZNV.js} +1 -1
  63. package/dist/cdn/{AHPDMFQQ.js → T2GIGPPW.js} +1 -1
  64. package/dist/cdn/{IMNOJDGS.js → TKKV7KPJ.js} +1 -1
  65. package/dist/cdn/{J5O323AF.js → TMXVA27K.js} +1 -1
  66. package/dist/cdn/{MNETNH5F.js → UK2UPGTC.js} +1 -1
  67. package/dist/cdn/UNOJKM7H.js +2 -0
  68. package/dist/cdn/{LHMYCCGG.js → UNRUZFCG.js} +1 -1
  69. package/dist/cdn/{25GQ2WOU.js → UO6RHQGP.js} +1 -1
  70. package/dist/cdn/{D4CBXK5J.js → VEVROTSG.js} +1 -1
  71. package/dist/cdn/{FVJHFMGW.js → VIID7SQW.js} +1 -1
  72. package/dist/cdn/{LYVMSY65.js → VKHE2T45.js} +1 -1
  73. package/dist/cdn/{KPG4VSFN.js → VM2DWR75.js} +1 -1
  74. package/dist/cdn/{HXIF6BYN.js → VRB6ZKPF.js} +1 -1
  75. package/dist/cdn/{JWNZPKX7.js → VWX73OUH.js} +1 -1
  76. package/dist/cdn/{QBZEEHY7.js → WBU6UBT7.js} +1 -1
  77. package/dist/cdn/{FKHPICOV.js → WBVI4QWE.js} +1 -1
  78. package/dist/cdn/{NQBZWHCV.js → WIT3P7NV.js} +1 -1
  79. package/dist/cdn/{2HC3GCXA.js → WJE2YWFP.js} +29 -27
  80. package/dist/cdn/{HYPA7F2W.js → WKDTX36G.js} +1 -1
  81. package/dist/cdn/{EYBYOHDN.js → WORMNHOD.js} +1 -1
  82. package/dist/cdn/{73YNQF72.js → XE5JJDCZ.js} +1 -1
  83. package/dist/cdn/{2CNLZPFO.js → XTWKVYX3.js} +1 -1
  84. package/dist/cdn/YUUYX57N.js +2 -0
  85. package/dist/cdn/index.js +1 -1
  86. package/dist/cdn/model/shared/setup-utils.js +1 -1
  87. package/dist/chart-rendering/common/interfaces.d.ts +0 -16
  88. package/dist/chunks/action-bar-utils.js +53 -53
  89. package/dist/chunks/bar-chart-model.js +1 -1
  90. package/dist/chunks/heat-chart-model.js +8 -8
  91. package/dist/chunks/index.js +0 -1
  92. package/dist/chunks/index4.js +7 -18
  93. package/dist/chunks/line-chart-model.js +1 -1
  94. package/dist/chunks/radar-chart-model.js +1 -1
  95. package/dist/chunks/serial-chart-data.js +94 -99
  96. package/dist/chunks/serial-chart-model.js +1 -1
  97. package/dist/chunks/web-component-utils.js +1 -1
  98. package/dist/components/arcgis-chart/customElement.d.ts +12 -48
  99. package/dist/components/arcgis-chart/customElement.js +5438 -5451
  100. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +1 -176
  101. package/dist/components/arcgis-charts-action-bar/customElement.js +82 -79
  102. package/dist/docs/api.json +1 -1
  103. package/dist/docs/docs.json +1 -1
  104. package/dist/docs/vscode.html-custom-data.json +1 -1
  105. package/dist/docs/web-types.json +1 -1
  106. package/dist/index.js +87 -92
  107. package/dist/loader.js +5 -5
  108. package/dist/types/lumina.d.ts +2 -2
  109. package/dist/types/preact.d.ts +2 -2
  110. package/dist/types/react.d.ts +2 -2
  111. package/dist/types/stencil.d.ts +2 -2
  112. package/dist/utils/types/index.d.ts +0 -35
  113. package/package.json +5 -5
  114. package/dist/cdn/ESZG2ICM.js +0 -2
  115. package/dist/cdn/KXKSKVSJ.js +0 -2
  116. package/dist/cdn/YO7YSHP3.js +0 -2
  117. package/dist/cdn/ZJAOAKQP.js +0 -2
  118. /package/dist/cdn/{KQ36C2RK.js → 326ZXBZ3.js} +0 -0
  119. /package/dist/cdn/{T7LKXFIZ.js → 3BOCK4XI.js} +0 -0
  120. /package/dist/cdn/{Z5DYKSTK.js → 3WQAQ6ZP.js} +0 -0
  121. /package/dist/cdn/{GOVIUHKT.js → 4MQZ5GEZ.js} +0 -0
  122. /package/dist/cdn/{7N2LSD5J.js → 5MYNCOJQ.js} +0 -0
  123. /package/dist/cdn/{IQSNWDU6.js → 6253AQJJ.js} +0 -0
  124. /package/dist/cdn/{CZKZMSFJ.js → 65SSSTQF.js} +0 -0
  125. /package/dist/cdn/{SWHSL245.js → ANAG7BIL.js} +0 -0
  126. /package/dist/cdn/{55OFHBXV.js → ATWHGKKA.js} +0 -0
  127. /package/dist/cdn/{6IIBIZJH.js → B76C2EYW.js} +0 -0
  128. /package/dist/cdn/{5OSVKP4N.js → D32ND4UY.js} +0 -0
  129. /package/dist/cdn/{7AWJIBMG.js → DOX4XMM5.js} +0 -0
  130. /package/dist/cdn/{XQTLPFTW.js → E2COEKI7.js} +0 -0
  131. /package/dist/cdn/{5QLZ66AU.js → EIV2Y4HO.js} +0 -0
  132. /package/dist/cdn/{IDVYAUPY.js → GBOIHW4K.js} +0 -0
  133. /package/dist/cdn/{KMZIRJIR.js → GT73OEKU.js} +0 -0
  134. /package/dist/cdn/{JETTF7E2.js → HKHA3DBO.js} +0 -0
  135. /package/dist/cdn/{M4AD4UJU.js → IFASUVT3.js} +0 -0
  136. /package/dist/cdn/{JE32QM44.js → JNOZULQZ.js} +0 -0
  137. /package/dist/cdn/{5SOADBYD.js → KUV5PKV7.js} +0 -0
  138. /package/dist/cdn/{D66GTKJ7.js → MQI4EQUW.js} +0 -0
  139. /package/dist/cdn/{A6DV5ILW.js → MSC3FE63.js} +0 -0
  140. /package/dist/cdn/{NUH2GAPZ.js → NFNND3VJ.js} +0 -0
  141. /package/dist/cdn/{HJUHYEJT.js → O27L5BEO.js} +0 -0
  142. /package/dist/cdn/{JSOFN65T.js → O7SG6AJR.js} +0 -0
  143. /package/dist/cdn/{6QY2OFUO.js → RL2VBXWI.js} +0 -0
  144. /package/dist/cdn/{BGHJMVNV.js → S6GX7T7X.js} +0 -0
  145. /package/dist/cdn/{HL6ANDJH.js → SNCJJJYE.js} +0 -0
  146. /package/dist/cdn/{QCFAV626.js → TIWJTSDJ.js} +0 -0
  147. /package/dist/cdn/{DJGQM3EK.js → TUVWF2QN.js} +0 -0
  148. /package/dist/cdn/{OWEVDN6C.js → UAZKSSTU.js} +0 -0
  149. /package/dist/cdn/{2PUVZIJ6.js → VBLQV3Y2.js} +0 -0
  150. /package/dist/cdn/{QMBHZ5JE.js → VJL3JO2N.js} +0 -0
  151. /package/dist/cdn/{CYZPIC2B.js → VNP4DHCW.js} +0 -0
  152. /package/dist/cdn/{BGVIOGAX.js → WQWVMCCF.js} +0 -0
  153. /package/dist/cdn/{FOHR4IFG.js → X7VPCAD7.js} +0 -0
  154. /package/dist/cdn/{5ZZZKI7V.js → YPONWLK4.js} +0 -0
  155. /package/dist/cdn/{H44RQIWN.js → Z7TIF3KD.js} +0 -0
  156. /package/dist/cdn/{33NEGHM6.js → ZZUSKBXK.js} +0 -0
@@ -3,7 +3,7 @@ import type { DefaultActionSelectPayload } from "../../utils/components/event-pa
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
4
  import type { ArcgisChart } from "../arcgis-chart/customElement.js";
5
5
  import type { ChartTypes } from "../../utils/misc/index.js";
6
- import type { ActionState, ActionToggle, DefaultChartActions } from "../../utils/types/index.js";
6
+ import type { DefaultChartActions } from "../../utils/types/index.js";
7
7
  import type { ActionModes } from "../../utils/cursor/interfaces.js";
8
8
  import type { WebChartTypes } from "../../spec/chart-object-literals.js";
9
9
  import type { T9nMeta } from "@arcgis/lumina/controllers";
@@ -81,22 +81,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
81
81
  * @since 5.2
82
82
  */
83
83
  accessor clearSelectionDisabled: boolean;
84
- /**
85
- * When `disabled`, interaction with the clear selection action is prevented and the action is displayed with lower opacity.
86
- *
87
- * @deprecated since 5.2. Use [clearSelectionDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#clearSelectionDisabled) instead.
88
- * @default "enabled"
89
- */
90
- accessor clearSelectionState: ActionState;
91
84
  /** Custom title for the clear selection action. */
92
85
  accessor clearSelectionTitle: string | undefined;
93
- /**
94
- * When `active`, the clear selection action is highlighted.
95
- *
96
- * @deprecated since 5.2. Use [clearSelectionActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#clearSelectionActive) instead.
97
- * @default "inactive"
98
- */
99
- accessor clearSelectionToggle: ActionToggle;
100
86
  /**
101
87
  * Localized common strings.
102
88
  *
@@ -665,14 +651,6 @@ export abstract class ArcgisChartsActionBar extends LitElement {
665
651
  * Modify this property to add or remove chart types from the list of disabled types.
666
652
  */
667
653
  accessor csvExportExclusionList: WebChartTypes[];
668
- /**
669
- * The CSV export action is disabled for certain chart types.
670
- *
671
- * Modify this property to add or remove chart types from the list of disabled types.
672
- *
673
- * @deprecated since 5.1. Use [csvExportExclusionList](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#csvExportExclusionList) instead.
674
- */
675
- accessor disableCSVExportForChartTypes: WebChartTypes[];
676
654
  /**
677
655
  * When `true`, the edit chart action is active.
678
656
  *
@@ -688,22 +666,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
688
666
  * @since 5.2
689
667
  */
690
668
  accessor editChartEnabled: boolean;
691
- /**
692
- * When `disabled`, interaction with the edit chart action is prevented and the action is displayed with lower opacity.
693
- *
694
- * @deprecated since 5.2. Use [editChartEnabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#editChartEnabled) instead.
695
- * @default "disabled"
696
- */
697
- accessor editChartState: ActionState;
698
669
  /** Custom title for the edit chart action. */
699
670
  accessor editChartTitle: string | undefined;
700
- /**
701
- * When `active`, the edit chart action is highlighted.
702
- *
703
- * @deprecated since 5.2. Use [editChartActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#editChartActive) instead.
704
- * @default "inactive"
705
- */
706
- accessor editChartToggle: ActionToggle;
707
671
  /**
708
672
  * When `true`, the action bar is expanded.
709
673
  *
@@ -717,13 +681,6 @@ export abstract class ArcgisChartsActionBar extends LitElement {
717
681
  * @since 5.2
718
682
  */
719
683
  accessor exportActionDisabled: boolean;
720
- /**
721
- * When `disabled`, interaction with the export action is prevented and the action is displayed with lower opacity.
722
- *
723
- * @deprecated since 5.2. Use [exportActionDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#exportActionDisabled) instead.
724
- * @default "enabled"
725
- */
726
- accessor exportActionState: ActionState;
727
684
  /**
728
685
  * When `true`, interaction with the export as CSV action is prevented and the action is displayed with lower opacity.
729
686
  *
@@ -731,13 +688,6 @@ export abstract class ArcgisChartsActionBar extends LitElement {
731
688
  * @since 5.2
732
689
  */
733
690
  accessor exportAsCSVDisabled: boolean;
734
- /**
735
- * When `disabled`, interaction with the download CSV is prevented and the action is displayed with lower opacity.
736
- *
737
- * @deprecated since 5.2. Use [exportAsCSVDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#exportAsCSVDisabled) instead.
738
- * @default "enabled"
739
- */
740
- accessor exportAsCSVState: ActionState;
741
691
  /** Custom title for the download CSV action. */
742
692
  accessor exportAsCSVTitle: string | undefined;
743
693
  /**
@@ -747,35 +697,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
747
697
  * @since 5.2
748
698
  */
749
699
  accessor exportAsImageDisabled: boolean;
750
- /**
751
- * When `disabled`, interaction with the download image action is prevented and the action is displayed with lower opacity.
752
- *
753
- * @deprecated since 5.2. Use [exportAsImageDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#exportAsImageDisabled) instead.
754
- * @default "enabled"
755
- */
756
- accessor exportAsImageState: ActionState;
757
700
  /** Custom title for the download chart action. */
758
701
  accessor exportAsImageTitle: string | undefined;
759
- /**
760
- * When `disabled`, interaction with the filter by view extent action is prevented and the action is displayed with lower opacity.
761
- *
762
- * @deprecated since 5.2. Use [filterByViewExtentDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#filterByViewExtentDisabled) instead.
763
- * @default "enabled"
764
- */
765
- accessor filterByExtentState: ActionState;
766
- /**
767
- * Custom title for the filter by view extent action.
768
- *
769
- * @deprecated since 5.2. Use [filterByViewExtentTitle](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#filterByViewExtentTitle) instead.
770
- */
771
- accessor filterByExtentTitle: string | undefined;
772
- /**
773
- * When `active`, the filter by view extent action is highlighted.
774
- *
775
- * @deprecated since 5.2. Use [filterByViewExtentActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#filterByViewExtentActive) instead.
776
- * @default "inactive"
777
- */
778
- accessor filterByExtentToggle: ActionToggle;
779
702
  /**
780
703
  * When `true`, the filter by selection action is active.
781
704
  *
@@ -790,22 +713,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
790
713
  * @since 5.2
791
714
  */
792
715
  accessor filterBySelectionDisabled: boolean;
793
- /**
794
- * When `disabled`, interaction with the filter by selection action is prevented and the action is displayed with lower opacity.
795
- *
796
- * @deprecated since 5.2. Use [filterBySelectionDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#filterBySelectionDisabled) instead.
797
- * @default "enabled"
798
- */
799
- accessor filterBySelectionState: ActionState;
800
716
  /** Custom title for the filter by selection action. */
801
717
  accessor filterBySelectionTitle: string | undefined;
802
- /**
803
- * When `active`, the filter by selection action is highlighted.
804
- *
805
- * @deprecated since 5.2. Use [filterBySelectionActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#filterBySelectionActive) instead.
806
- * @default "inactive"
807
- */
808
- accessor filterBySelectionToggle: ActionToggle;
809
718
  /**
810
719
  * When `true`, the filter by view extent action is active.
811
720
  *
@@ -846,22 +755,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
846
755
  * @since 5.2
847
756
  */
848
757
  accessor fullExtentDisabled: boolean;
849
- /**
850
- * When `disabled`, interaction with the full extent action is prevented and the action is displayed with lower opacity.
851
- *
852
- * @deprecated since 5.2. Use [fullExtentDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#fullExtentDisabled) instead.
853
- * @default "enabled"
854
- */
855
- accessor fullExtentState: ActionState;
856
758
  /** Custom title for the full extent action. */
857
759
  accessor fullExtentTitle: string | undefined;
858
- /**
859
- * When `active`, the full extent action is highlighted.
860
- *
861
- * @deprecated since 5.2. Use [fullExtentActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#fullExtentActive) instead.
862
- * @default "inactive"
863
- */
864
- accessor fullExtentToggle: ActionToggle;
865
760
  /**
866
761
  * Holds a list of actions to hide from the action bar.
867
762
  *
@@ -882,22 +777,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
882
777
  * @since 5.2
883
778
  */
884
779
  accessor legendDisabled: boolean;
885
- /**
886
- * When `disabled`, interaction with the legend action is prevented and the action is displayed with lower opacity.
887
- *
888
- * @deprecated since 5.2. Use [legendDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#legendDisabled) instead.
889
- * @default "enabled"
890
- */
891
- accessor legendState: ActionState;
892
780
  /** Custom title for the legend action. */
893
781
  accessor legendTitle: string | undefined;
894
- /**
895
- * When `active`, the legend action is highlighted.
896
- *
897
- * @deprecated since 5.2. Use [legendActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#legendActive) instead.
898
- * @default "inactive"
899
- */
900
- accessor legendToggle: ActionToggle;
901
782
  /** Overwrite localized strings for this component. */
902
783
  accessor messageOverrides: {
903
784
  legend?: string | undefined;
@@ -929,22 +810,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
929
810
  * @since 5.2
930
811
  */
931
812
  accessor rotateChartDisabled: boolean;
932
- /**
933
- * When `disabled`, interaction with the rotate chart action is prevented and the action is displayed with lower opacity.
934
- *
935
- * @deprecated since 5.2. Use [rotateChartDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#rotateChartDisabled) instead.
936
- * @default "enabled"
937
- */
938
- accessor rotateChartState: ActionState;
939
813
  /** Custom title for the rotate chart action. */
940
814
  accessor rotateChartTitle: string | undefined;
941
- /**
942
- * When `active`, the rotate chart action is highlighted.
943
- *
944
- * @deprecated since 5.2. Use [rotateChartActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#rotateChartActive) instead.
945
- * @default "inactive"
946
- */
947
- accessor rotateChartToggle: ActionToggle;
948
815
  /**
949
816
  * When `true`, the selection action is active.
950
817
  *
@@ -959,22 +826,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
959
826
  * @since 5.2
960
827
  */
961
828
  accessor selectionDisabled: boolean;
962
- /**
963
- * When `disabled`, interaction with the selection action is prevented and the action is displayed with lower opacity.
964
- *
965
- * @deprecated since 5.2. Use [selectionDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#selectionDisabled) instead.
966
- * @default "enabled"
967
- */
968
- accessor selectionState: ActionState;
969
829
  /** Custom title for the selection action. */
970
830
  accessor selectionTitle: string | undefined;
971
- /**
972
- * When `active`, the selection action is highlighted.
973
- *
974
- * @deprecated since 5.2. Use [selectionActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#selectionActive) instead.
975
- * @default "inactive"
976
- */
977
- accessor selectionToggle: ActionToggle;
978
831
  /**
979
832
  * When `true`, the switch selection action is active.
980
833
  *
@@ -989,22 +842,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
989
842
  * @since 5.2
990
843
  */
991
844
  accessor switchSelectionDisabled: boolean;
992
- /**
993
- * When `disabled`, interaction with the switch selection action is prevented and the action is displayed with lower opacity.
994
- *
995
- * @deprecated since 5.2. Use [switchSelectionDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#switchSelectionDisabled) instead.
996
- * @default "enabled"
997
- */
998
- accessor switchSelectionState: ActionState;
999
845
  /** Custom title for the switch selection action. */
1000
846
  accessor switchSelectionTitle: string | undefined;
1001
- /**
1002
- * When `active`, the switch selection action is highlighted.
1003
- *
1004
- * @deprecated since 5.2. Use [switchSelectionActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#switchSelectionActive) instead.
1005
- * @default "inactive"
1006
- */
1007
- accessor switchSelectionToggle: ActionToggle;
1008
847
  /**
1009
848
  * When `true`, the zoom action is active.
1010
849
  *
@@ -1019,22 +858,8 @@ export abstract class ArcgisChartsActionBar extends LitElement {
1019
858
  * @since 5.2
1020
859
  */
1021
860
  accessor zoomDisabled: boolean;
1022
- /**
1023
- * When `disabled`, interaction with the zoom action is prevented and the action is displayed with lower opacity.
1024
- *
1025
- * @deprecated since 5.2. Use [zoomDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#zoomDisabled) instead.
1026
- * @default "enabled"
1027
- */
1028
- accessor zoomState: ActionState;
1029
861
  /** Custom title for the zoom action. */
1030
862
  accessor zoomTitle: string | undefined;
1031
- /**
1032
- * When `active`, the zoom action is highlighted.
1033
- *
1034
- * @deprecated since 5.2. Use [zoomActive](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/#zoomActive) instead.
1035
- * @default "inactive"
1036
- */
1037
- accessor zoomToggle: ActionToggle;
1038
863
  /** Event triggered once action bar expand is toggled. */
1039
864
  readonly arcgisActionBarToggle: import("@arcgis/lumina").TargetedEvent<this, boolean>;
1040
865
  /** Event triggered once a default action is selected. */
@@ -1,43 +1,46 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as M } from "../../chunks/runtime.js";
3
- import { css as z, html as c } from "lit";
4
- import { S as b } from "../../chunks/interfaces.js";
3
+ import { css as V, html as s } from "lit";
4
+ import { S as $ } from "../../chunks/interfaces.js";
5
5
  import { g as O } from "../../chunks/action-bar-utils.js";
6
- import { u as T } from "../../chunks/useT9n.js";
7
- import { createRef as C, ref as $ } from "lit/directives/ref.js";
8
- import { LitElement as _, renderElement as D, safeStyleMap as y, createEvent as B, safeClassMap as L, nothing as n } from "@arcgis/lumina";
9
- import { a as h } from "../../chunks/chart-ui-utils.js";
10
- import { i as F } from "../../chunks/rotated-state.js";
11
- import { A as t, c as l, D as e } from "../../chunks/index4.js";
12
- import { W as w } from "../../chunks/index.js";
13
- import { a as k } from "../../chunks/chart-object-literals.js";
14
- import { i as r, j as I } from "../../chunks/type-guards.js";
15
- function N(d) {
16
- return d?.tagName.toLowerCase() === "arcgis-chart";
6
+ import { u as E } from "../../chunks/useT9n.js";
7
+ import { createRef as g, ref as C } from "lit/directives/ref.js";
8
+ import { LitElement as I, renderElement as S, safeStyleMap as D, createEvent as T, safeClassMap as z, nothing as a } from "@arcgis/lumina";
9
+ import { a as o } from "../../chunks/chart-ui-utils.js";
10
+ import { i as _ } from "../../chunks/rotated-state.js";
11
+ import { D as t } from "../../chunks/index4.js";
12
+ import { W as y } from "../../chunks/index.js";
13
+ import { a as B } from "../../chunks/chart-object-literals.js";
14
+ import { i as n, j as k } from "../../chunks/type-guards.js";
15
+ function L(r) {
16
+ return r?.tagName.toLowerCase() === "arcgis-chart";
17
17
  }
18
- const R = {
18
+ const F = {
19
19
  actionBar: "action-bar"
20
- }, W = z`.action-bar{display:flex;flex-direction:column;height:100%;border-right:1px solid var(--calcite-color-border-2);width:fit-content}:host{z-index:1001}`;
21
- class Z extends _ {
20
+ }, N = V`.action-bar{display:flex;flex-direction:column;height:100%;border-right:1px solid var(--calcite-color-border-2);width:fit-content}:host{z-index:1001}`;
21
+ class R extends I {
22
22
  constructor() {
23
- super(...arguments), this.calciteActionBar = C(), this.exportCalciteActionBar = C(), this.expandAction = null, this._messages = T(), this.commonStrings = T({ name: "common", blocking: !0 }), this.handleMouseOver = (a) => {
23
+ super(...arguments), this.calciteActionBar = g(), this.exportCalciteActionBar = g(), this.expandAction = null, this._messages = E(), this.commonStrings = E({ name: "common", blocking: !0 }), this.handleMouseOver = (i) => {
24
24
  if (this.calciteActionBar.value && !this.calciteActionBar.value?.expanded) {
25
- const o = a.target;
26
- this.actionTooltip !== void 0 && (this.actionTooltip = h(this.actionTooltip));
27
- let i;
28
- o?.tagName === "CALCITE-ACTION" ? i = o : (o?.tagName === "CALCITE-ACTION-MENU" || o?.tagName === "DIV") && (i = o.firstChild), i !== void 0 && (this.actionTooltip = D(c`<calcite-tooltip style=${y({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${i} open placement=trailing-end>${i.text}</calcite-tooltip>`), document.body.appendChild(this.actionTooltip));
25
+ const l = i.target;
26
+ this.actionTooltip !== void 0 && (this.actionTooltip = o(this.actionTooltip));
27
+ let e;
28
+ l?.tagName === "CALCITE-ACTION" ? e = l : (l?.tagName === "CALCITE-ACTION-MENU" || l?.tagName === "DIV") && (e = l.firstChild), e !== void 0 && (this.actionTooltip = S(s`<calcite-tooltip style=${D({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${e} open placement=trailing-end>${e.text}</calcite-tooltip>`), document.body.appendChild(this.actionTooltip));
29
29
  } else
30
- this.actionTooltip = h(this.actionTooltip);
31
- }, this._csvExportExclusionList = [k.ScatterSeries, k.BoxPlotSeries], this.actionTooltip = null, this.forceDisableActions = !1, this.editChartToggle = t.Inactive, this.editChartActive = !1, this.editChartState = l.Disabled, this.editChartEnabled = !1, this.legendToggle = t.Inactive, this.legendActive = !1, this.legendState = l.Enabled, this.legendDisabled = !1, this.rotateChartToggle = t.Inactive, this.rotateChartActive = !1, this.rotateChartState = l.Enabled, this.rotateChartDisabled = !1, this.filterBySelectionToggle = t.Inactive, this.filterBySelectionActive = !1, this.filterBySelectionState = l.Enabled, this.filterBySelectionDisabled = !1, this.filterByExtentToggle = t.Inactive, this.filterByViewExtentActive = !1, this.filterByExtentState = l.Enabled, this.filterByViewExtentDisabled = !1, this.actionBarSelectionMode = w.MultiSelectionWithCtrlKey, this.selectionToggle = t.Inactive, this.selectionActive = !1, this.selectionState = l.Enabled, this.selectionDisabled = !1, this.zoomToggle = t.Inactive, this.zoomActive = !1, this.zoomState = l.Enabled, this.zoomDisabled = !1, this.fullExtentToggle = t.Inactive, this.fullExtentActive = !1, this.fullExtentState = l.Enabled, this.fullExtentDisabled = !1, this.clearSelectionToggle = t.Inactive, this.clearSelectionActive = !1, this.clearSelectionState = l.Enabled, this.clearSelectionDisabled = !1, this.switchSelectionToggle = t.Inactive, this.switchSelectionActive = !1, this.switchSelectionState = l.Enabled, this.switchSelectionDisabled = !1, this.exportAsImageState = l.Enabled, this.exportAsImageDisabled = !1, this.exportAsCSVState = l.Enabled, this.exportAsCSVDisabled = !1, this.disableCSVExportForChartTypes = this._csvExportExclusionList, this.csvExportExclusionList = this._csvExportExclusionList, this.exportActionState = l.Enabled, this.exportActionDisabled = !1, this.expanded = !1, this.hiddenActions = [e.EditChart], this.arcgisActionBarToggle = B(), this.arcgisDefaultActionSelect = B();
30
+ this.actionTooltip = o(this.actionTooltip);
31
+ }, this.actionTooltip = null, this.forceDisableActions = !1, this.editChartActive = !1, this.editChartEnabled = !1, this.legendActive = !1, this.legendDisabled = !1, this.rotateChartActive = !1, this.rotateChartDisabled = !1, this.filterBySelectionActive = !1, this.filterBySelectionDisabled = !1, this.filterByViewExtentActive = !1, this.filterByViewExtentDisabled = !1, this.actionBarSelectionMode = y.MultiSelectionWithCtrlKey, this.selectionActive = !1, this.selectionDisabled = !1, this.zoomActive = !1, this.zoomDisabled = !1, this.fullExtentActive = !1, this.fullExtentDisabled = !1, this.clearSelectionActive = !1, this.clearSelectionDisabled = !1, this.switchSelectionActive = !1, this.switchSelectionDisabled = !1, this.exportAsImageDisabled = !1, this.exportAsCSVDisabled = !1, this.csvExportExclusionList = [
32
+ B.ScatterSeries,
33
+ B.BoxPlotSeries
34
+ ], this.exportActionDisabled = !1, this.expanded = !1, this.hiddenActions = [t.EditChart], this.arcgisActionBarToggle = T(), this.arcgisDefaultActionSelect = T();
32
35
  }
33
36
  static {
34
- this.properties = { actionTooltip: 16, messageOverrides: 0, chartType: 1, chartElement: 0, forceDisableActions: 5, editChartToggle: 1, editChartActive: 5, editChartState: 1, editChartEnabled: 5, editChartTitle: 1, legendToggle: 1, legendActive: 5, legendState: 1, legendDisabled: 5, legendTitle: 1, rotateChartToggle: 1, rotateChartActive: 5, rotateChartState: 1, rotateChartDisabled: 5, rotateChartTitle: 1, filterBySelectionToggle: 1, filterBySelectionActive: 5, filterBySelectionState: 1, filterBySelectionDisabled: 5, filterBySelectionTitle: 1, filterByExtentToggle: 1, filterByViewExtentActive: 5, filterByExtentState: 1, filterByViewExtentDisabled: 5, filterByExtentTitle: 1, filterByViewExtentTitle: 1, actionBarSelectionMode: 1, selectionToggle: 1, selectionActive: 5, selectionState: 1, selectionDisabled: 5, selectionTitle: 1, zoomToggle: 1, zoomActive: 5, zoomState: 1, zoomDisabled: 5, zoomTitle: 1, fullExtentToggle: 1, fullExtentActive: 5, fullExtentState: 1, fullExtentDisabled: 5, fullExtentTitle: 1, clearSelectionToggle: 1, clearSelectionActive: 5, clearSelectionState: 1, clearSelectionDisabled: 5, clearSelectionTitle: 1, switchSelectionToggle: 1, switchSelectionActive: 5, switchSelectionState: 1, switchSelectionDisabled: 5, switchSelectionTitle: 1, exportAsImageState: 1, exportAsImageDisabled: 5, exportAsImageTitle: 1, exportAsCSVState: 1, exportAsCSVDisabled: 5, exportAsCSVTitle: 1, disableCSVExportForChartTypes: 0, csvExportExclusionList: 0, exportActionState: 1, exportActionDisabled: 5, expanded: 5, hiddenActions: 0 };
37
+ this.properties = { actionTooltip: 16, messageOverrides: 0, chartType: 1, chartElement: 0, forceDisableActions: 5, editChartActive: 5, editChartEnabled: 5, editChartTitle: 1, legendActive: 5, legendDisabled: 5, legendTitle: 1, rotateChartActive: 5, rotateChartDisabled: 5, rotateChartTitle: 1, filterBySelectionActive: 5, filterBySelectionDisabled: 5, filterBySelectionTitle: 1, filterByViewExtentActive: 5, filterByViewExtentDisabled: 5, filterByViewExtentTitle: 1, actionBarSelectionMode: 1, selectionActive: 5, selectionDisabled: 5, selectionTitle: 1, zoomActive: 5, zoomDisabled: 5, zoomTitle: 1, fullExtentActive: 5, fullExtentDisabled: 5, fullExtentTitle: 1, clearSelectionActive: 5, clearSelectionDisabled: 5, clearSelectionTitle: 1, switchSelectionActive: 5, switchSelectionDisabled: 5, switchSelectionTitle: 1, exportAsImageDisabled: 5, exportAsImageTitle: 1, exportAsCSVDisabled: 5, exportAsCSVTitle: 1, csvExportExclusionList: 0, exportActionDisabled: 5, expanded: 5, hiddenActions: 0 };
35
38
  }
36
39
  static {
37
- this.styles = W;
40
+ this.styles = N;
38
41
  }
39
42
  load() {
40
- this.chartElement = N(this.el.parentElement) ? this.el.parentElement : void 0;
43
+ this.chartElement = L(this.el.parentElement) ? this.el.parentElement : void 0;
41
44
  }
42
45
  updated() {
43
46
  this.handleExpandTooltip();
@@ -45,103 +48,103 @@ class Z extends _ {
45
48
  disconnectedCallback() {
46
49
  super.disconnectedCallback(), this.actionTooltip?.remove();
47
50
  }
48
- async onDefaultActionClick(a) {
49
- const o = a.currentTarget, i = {
50
- actionId: o.id,
51
+ async onDefaultActionClick(i) {
52
+ const l = i.currentTarget, e = {
53
+ actionId: l.id,
51
54
  actionActive: !1
52
55
  };
53
- switch (o.id) {
54
- case e.EditChart: {
55
- const s = !(this.editChartToggle === t.Active || this.editChartActive);
56
- this.editChartToggle = s ? t.Active : t.Inactive, this.editChartActive = s, i.actionActive = s;
56
+ switch (l.id) {
57
+ case t.EditChart: {
58
+ const c = !this.editChartActive;
59
+ this.editChartActive = c, e.actionActive = c;
57
60
  break;
58
61
  }
59
- case e.Legend: {
60
- const s = !(this.legendToggle === t.Active || this.legendActive);
61
- this.legendToggle = s ? t.Active : t.Inactive, this.legendActive = s, i.actionActive = s, r(this.chartElement?.model) && I(this.chartElement?.model) && (this.chartElement.model.legendVisibility = i.actionActive), this.chartElement?.model && (r(this.chartElement.model) ? I(this.chartElement.model) && (this.chartElement.model.legendVisibility = i.actionActive) : this.chartElement.model.rotated = this.chartElement.model.rotated !== !0);
62
+ case t.Legend: {
63
+ const c = !this.legendActive;
64
+ this.legendActive = c, e.actionActive = c, n(this.chartElement?.model) && k(this.chartElement?.model) && (this.chartElement.model.legendVisibility = e.actionActive), this.chartElement?.model && (n(this.chartElement.model) ? k(this.chartElement.model) && (this.chartElement.model.legendVisibility = e.actionActive) : this.chartElement.model.rotated = this.chartElement.model.rotated !== !0);
62
65
  break;
63
66
  }
64
- case e.RotateChart: {
65
- const s = !(this.rotateChartToggle === t.Active || this.rotateChartActive);
66
- this.rotateChartToggle = s ? t.Active : t.Inactive, this.rotateChartActive = s, i.actionActive = s, this.chartElement?.model && (r(this.chartElement.model) ? F(this.chartElement.model) && (this.chartElement.model.rotated = i.actionActive) : this.chartElement.model.rotated = this.chartElement.model.rotated !== !0);
67
+ case t.RotateChart: {
68
+ const c = !this.rotateChartActive;
69
+ this.rotateChartActive = c, e.actionActive = c, this.chartElement?.model && (n(this.chartElement.model) ? _(this.chartElement.model) && (this.chartElement.model.rotated = e.actionActive) : this.chartElement.model.rotated = this.chartElement.model.rotated !== !0);
67
70
  break;
68
71
  }
69
- case e.FilterBySelection: {
70
- const s = !(this.filterBySelectionToggle === t.Active || this.filterBySelectionActive);
71
- this.filterBySelectionToggle = s ? t.Active : t.Inactive, this.filterBySelectionActive = s, i.actionActive = s, this.chartElement !== void 0 && (this.chartElement.filterBySelection = i.actionActive);
72
+ case t.FilterBySelection: {
73
+ const c = !this.filterBySelectionActive;
74
+ this.filterBySelectionActive = c, e.actionActive = c, this.chartElement !== void 0 && (this.chartElement.filterBySelection = e.actionActive);
72
75
  break;
73
76
  }
74
- case e.FilterByViewExtent: {
75
- const s = !(this.filterByExtentToggle === t.Active || this.filterByViewExtentActive);
76
- this.filterByExtentToggle = s ? t.Active : t.Inactive, this.filterByViewExtentActive = s, i.actionActive = s, this.chartElement !== void 0 && (this.chartElement.filterByViewExtent = i.actionActive);
77
+ case t.FilterByViewExtent: {
78
+ const c = !this.filterByViewExtentActive;
79
+ this.filterByViewExtentActive = c, e.actionActive = c, this.chartElement !== void 0 && (this.chartElement.filterByViewExtent = e.actionActive);
77
80
  break;
78
81
  }
79
- case e.Selection: {
80
- this.selectionToggle = t.Active, this.selectionActive = !0, this.zoomToggle = t.Inactive, this.zoomActive = !1, i.actionActive = !0, this.chartElement !== void 0 && (this.chartElement.actionMode = this.actionBarSelectionMode);
82
+ case t.Selection: {
83
+ this.selectionActive = !0, this.zoomActive = !1, e.actionActive = !0, this.chartElement !== void 0 && (this.chartElement.actionMode = this.actionBarSelectionMode);
81
84
  break;
82
85
  }
83
- case e.Zoom: {
84
- this.zoomToggle = t.Active, this.zoomActive = !0, this.selectionToggle = t.Inactive, this.selectionActive = !1, i.actionActive = !0, this.chartElement !== void 0 && (this.chartElement.actionMode = w.Zoom);
86
+ case t.Zoom: {
87
+ this.zoomActive = !0, this.selectionActive = !1, e.actionActive = !0, this.chartElement !== void 0 && (this.chartElement.actionMode = y.Zoom);
85
88
  break;
86
89
  }
87
- case e.ClearSelection:
88
- i.actionActive = this.clearSelectionToggle === t.Active || this.clearSelectionActive, this.chartElement?.clearSelection();
90
+ case t.ClearSelection:
91
+ e.actionActive = this.clearSelectionActive, this.chartElement?.clearSelection();
89
92
  break;
90
- case e.FullExtent:
91
- i.actionActive = this.fullExtentToggle === t.Active || this.fullExtentActive, this.chartElement?.resetZoom();
93
+ case t.FullExtent:
94
+ e.actionActive = this.fullExtentActive, this.chartElement?.resetZoom();
92
95
  break;
93
- case e.SwitchSelection:
94
- i.actionActive = this.switchSelectionToggle === t.Active || this.switchSelectionActive, this.chartElement?.switchSelection();
96
+ case t.SwitchSelection:
97
+ e.actionActive = this.switchSelectionActive, this.chartElement?.switchSelection();
95
98
  break;
96
- case e.ExportAsImage:
97
- i.actionActive = !0, await this.chartElement?.exportAsImage();
99
+ case t.ExportAsImage:
100
+ e.actionActive = !0, await this.chartElement?.exportAsImage();
98
101
  break;
99
- case e.ExportAsCSV:
100
- i.actionActive = !0, await this.chartElement?.exportAsCSV();
102
+ case t.ExportAsCSV:
103
+ e.actionActive = !0, await this.chartElement?.exportAsCSV();
101
104
  break;
102
105
  }
103
- this.arcgisDefaultActionSelect.emit(i);
106
+ this.arcgisDefaultActionSelect.emit(e);
104
107
  }
105
108
  handleCalciteActionBarToggle() {
106
109
  this.expanded = this.calciteActionBar.value?.expanded ?? !1, this.setCustomActionsExpanded(), this.arcgisActionBarToggle.emit(this.expanded);
107
110
  }
108
111
  handleMouseOut() {
109
- this.actionTooltip !== null && (this.actionTooltip = h(this.actionTooltip));
112
+ this.actionTooltip !== null && (this.actionTooltip = o(this.actionTooltip));
110
113
  }
111
- handleSlotChange(a) {
112
- const i = a.currentTarget.assignedElements();
113
- for (const s of i)
114
- s.onmouseover = this.handleMouseOver;
114
+ handleSlotChange(i) {
115
+ const e = i.currentTarget.assignedElements();
116
+ for (const c of e)
117
+ c.onmouseover = this.handleMouseOver;
115
118
  }
116
119
  setCustomActionsExpanded() {
117
- this.el.querySelectorAll("calcite-action").forEach((a) => {
118
- const o = a;
119
- o.textEnabled = this.expanded;
120
+ this.el.querySelectorAll("calcite-action").forEach((i) => {
121
+ const l = i;
122
+ l.textEnabled = this.expanded;
120
123
  });
121
124
  }
122
125
  handleExpandTooltip() {
123
126
  this.expandAction === null && (this.expandAction = this.calciteActionBar.value?.shadowRoot?.querySelector("calcite-action") ?? null, this.expandAction !== null && (this.listenOn(this.expandAction, "mouseenter", () => {
124
- !this.calciteActionBar.value?.expanded && this.expandAction !== null && !document.body.contains(this.actionTooltip) && (this.actionTooltip = D(c`<calcite-tooltip style=${y({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand ?? ""}</calcite-tooltip>`), document.body.appendChild(this.actionTooltip));
127
+ !this.calciteActionBar.value?.expanded && this.expandAction !== null && !document.body.contains(this.actionTooltip) && (this.actionTooltip = S(s`<calcite-tooltip style=${D({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand ?? ""}</calcite-tooltip>`), document.body.appendChild(this.actionTooltip));
125
128
  }), this.listenOn(this.expandAction, "mouseleave", () => {
126
- !this.calciteActionBar.value?.expanded && this.actionTooltip !== null && (this.actionTooltip = h(this.actionTooltip));
129
+ !this.calciteActionBar.value?.expanded && this.actionTooltip !== null && (this.actionTooltip = o(this.actionTooltip));
127
130
  }), this.listenOn(this.expandAction, "click", () => {
128
- this.calciteActionBar.value?.expanded && this.actionTooltip !== null && (this.actionTooltip = h(this.actionTooltip));
131
+ this.calciteActionBar.value?.expanded && this.actionTooltip !== null && (this.actionTooltip = o(this.actionTooltip));
129
132
  })));
130
133
  }
131
134
  renderDefaultActions() {
132
- const a = O(this.chartType).filter((V) => !this.hiddenActions?.includes(V)), o = this.chartElement?.layer && "isTable" in this.chartElement.layer ? this.chartElement.layer.isTable : !1, i = a.includes(e.EditChart), s = a.includes(e.Legend), g = a.includes(e.RotateChart), A = a.includes(e.FilterBySelection), v = a.includes(e.FilterByViewExtent) && !o, m = a.includes(e.Zoom), f = a.includes(e.Selection), x = a.includes(e.ClearSelection), u = a.includes(e.FullExtent), p = a.includes(e.SwitchSelection), S = a.includes(e.ExportAsImage), E = a.includes(e.ExportAsCSV);
135
+ const i = O(this.chartType).filter((w) => !this.hiddenActions?.includes(w)), l = this.chartElement?.layer && "isTable" in this.chartElement.layer ? this.chartElement.layer.isTable : !1, e = i.includes(t.EditChart), c = i.includes(t.Legend), h = i.includes(t.RotateChart), d = i.includes(t.FilterBySelection), m = i.includes(t.FilterByViewExtent) && !l, A = i.includes(t.Zoom), u = i.includes(t.Selection), f = i.includes(t.ClearSelection), v = i.includes(t.FullExtent), p = i.includes(t.SwitchSelection), x = i.includes(t.ExportAsImage), b = i.includes(t.ExportAsCSV);
133
136
  return [
134
- s || g ? c`<calcite-action-group>${i ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart ?? n} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart ?? ""} .textEnabled=${this.expanded} .active=${this.editChartToggle === t.Active || this.editChartActive} .disabled=${this.editChartState === l.Disabled || !this.editChartEnabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${s ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend ?? n} .text=${this.legendTitle ?? this._messages?.legend ?? ""} .textEnabled=${this.expanded} .active=${this.legendToggle === t.Active || this.legendActive} .disabled=${this.legendState === l.Disabled || this.legendDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>` : null}${g ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart ?? n} icon=rotate .text=${this.rotateChartTitle ?? this._messages?.rotateChart ?? ""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle === t.Active || this.rotateChartActive} .disabled=${this.rotateChartState === l.Disabled || this.rotateChartDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
135
- A || v ? c`<calcite-action-group>${A ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection ?? n} icon=selection-filter .text=${this.filterBySelectionTitle ?? this._messages?.filterBySelection ?? ""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle === t.Active || this.filterBySelectionActive} .disabled=${this.filterBySelectionState === l.Disabled || this.filterBySelectionDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${v ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByViewExtent ?? n} icon=extent-filter .text=${(this.filterByExtentTitle || this.filterByViewExtentTitle) ?? this._messages?.filterByExtent ?? ""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle === t.Active || this.filterByViewExtentActive} .disabled=${this.filterByExtentState === l.Disabled || this.filterByViewExtentDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
136
- f || m || u || x || p ? c`<calcite-action-group>${m ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom ?? n} icon=magnifying-glass .text=${this.zoomTitle ?? this._messages?.zoom ?? ""} .textEnabled=${this.expanded} .active=${this.zoomToggle === t.Active || this.zoomActive} .disabled=${this.zoomState === l.Disabled || this.zoomDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${f ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection ?? n} icon=cursor-selection .text=${this.selectionTitle ?? this._messages?.selection ?? ""} .textEnabled=${this.expanded} .active=${this.selectionToggle === t.Active || this.selectionActive} .disabled=${this.selectionState === l.Disabled || this.selectionDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${x ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection ?? n} icon=erase .text=${this.clearSelectionTitle ?? this._messages?.clearSelection ?? ""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle === t.Active || this.clearSelectionActive} .disabled=${this.clearSelectionState === l.Disabled || this.clearSelectionDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${u ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent ?? n} icon=zoom-out-fixed .text=${this.fullExtentTitle ?? this._messages?.fullExtent ?? ""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle === t.Active || this.fullExtentActive} .disabled=${this.fullExtentState === l.Disabled || this.fullExtentDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${p ? c`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection ?? n} icon=arrow-right-left .text=${this.switchSelectionTitle ?? this._messages?.switchSelection ?? ""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle === t.Active || this.switchSelectionActive} .disabled=${this.switchSelectionState === l.Disabled || this.switchSelectionDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
137
- S || E ? c`<calcite-action-menu .label=${this._messages?.export ?? ""} ${$(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export ?? ""} .textEnabled=${this.expanded} .disabled=${this.exportActionState === l.Disabled || this.exportActionDisabled || this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${S ? c`<div><calcite-action id=${e.ExportAsImage ?? n} icon=graph-bar .text=${this.exportAsImageTitle ?? this._messages?.exportAsImage ?? ""} .disabled=${this.exportAsImageState === l.Disabled || this.exportAsImageDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>` : null}${E ? c`<div><calcite-action id=${e.ExportAsCSV ?? n} icon=table .text=${this.exportAsCSVTitle ?? this._messages?.exportAsTable ?? ""} .disabled=${this.exportAsCSVState === l.Disabled || this.exportAsCSVDisabled || this.forceDisableActions || this.chartType && (this.disableCSVExportForChartTypes.includes(this.chartType) || this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>` : null}</calcite-action-menu>` : null
137
+ c || h ? s`<calcite-action-group>${e ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.EditChart ?? a} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart ?? ""} .textEnabled=${this.expanded} .active=${this.editChartActive} .disabled=${!this.editChartEnabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${c ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.Legend ?? a} .text=${this.legendTitle ?? this._messages?.legend ?? ""} .textEnabled=${this.expanded} .active=${this.legendActive} .disabled=${this.legendDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>` : null}${h ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.RotateChart ?? a} icon=rotate .text=${this.rotateChartTitle ?? this._messages?.rotateChart ?? ""} .textEnabled=${this.expanded} .active=${this.rotateChartActive} .disabled=${this.rotateChartDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
138
+ d || m ? s`<calcite-action-group>${d ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.FilterBySelection ?? a} icon=selection-filter .text=${this.filterBySelectionTitle ?? this._messages?.filterBySelection ?? ""} .textEnabled=${this.expanded} .active=${this.filterBySelectionActive} .disabled=${this.filterBySelectionDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${m ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.FilterByViewExtent ?? a} icon=extent-filter .text=${this.filterByViewExtentTitle ?? this._messages?.filterByExtent ?? ""} .textEnabled=${this.expanded} .active=${this.filterByViewExtentActive} .disabled=${this.filterByViewExtentDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
139
+ u || A || v || f || p ? s`<calcite-action-group>${A ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.Zoom ?? a} icon=magnifying-glass .text=${this.zoomTitle ?? this._messages?.zoom ?? ""} .textEnabled=${this.expanded} .active=${this.zoomActive} .disabled=${this.zoomDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${u ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.Selection ?? a} icon=cursor-selection .text=${this.selectionTitle ?? this._messages?.selection ?? ""} .textEnabled=${this.expanded} .active=${this.selectionActive} .disabled=${this.selectionDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${f ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.ClearSelection ?? a} icon=erase .text=${this.clearSelectionTitle ?? this._messages?.clearSelection ?? ""} .textEnabled=${this.expanded} .active=${this.clearSelectionActive} .disabled=${this.clearSelectionDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${v ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.FullExtent ?? a} icon=zoom-out-fixed .text=${this.fullExtentTitle ?? this._messages?.fullExtent ?? ""} .textEnabled=${this.expanded} .active=${this.fullExtentActive} .disabled=${this.fullExtentDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}${p ? s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${t.SwitchSelection ?? a} icon=arrow-right-left .text=${this.switchSelectionTitle ?? this._messages?.switchSelection ?? ""} .textEnabled=${this.expanded} .active=${this.switchSelectionActive} .disabled=${this.switchSelectionDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>` : null}</calcite-action-group>` : null,
140
+ x || b ? s`<calcite-action-menu .label=${this._messages?.export ?? ""} ${C(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export ?? ""} .textEnabled=${this.expanded} .disabled=${this.exportActionDisabled || this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${x ? s`<div><calcite-action id=${t.ExportAsImage ?? a} icon=graph-bar .text=${this.exportAsImageTitle ?? this._messages?.exportAsImage ?? ""} .disabled=${this.exportAsImageDisabled || this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>` : null}${b ? s`<div><calcite-action id=${t.ExportAsCSV ?? a} icon=table .text=${this.exportAsCSVTitle ?? this._messages?.exportAsTable ?? ""} .disabled=${this.exportAsCSVDisabled || this.forceDisableActions || this.chartType && this.csvExportExclusionList.includes(this.chartType)} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>` : null}</calcite-action-menu>` : null
138
141
  ];
139
142
  }
140
143
  render() {
141
- return c`<calcite-action-bar class=${L(R.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{ expand: this._messages.expand, collapse: this._messages.collapse }} overflow-actions-disabled ${$(this.calciteActionBar)}><slot name=${b.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${b.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`;
144
+ return s`<calcite-action-bar class=${z(F.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{ expand: this._messages.expand, collapse: this._messages.collapse }} overflow-actions-disabled ${C(this.calciteActionBar)}><slot name=${$.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${$.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`;
142
145
  }
143
146
  }
144
- M("arcgis-charts-action-bar", Z);
147
+ M("arcgis-charts-action-bar", R);
145
148
  export {
146
- Z as ArcgisChartsActionBar
149
+ R as ArcgisChartsActionBar
147
150
  };