@esri/solutions-components 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. package/dist/assets/t9n/feature-comments/resources.json +3 -0
  2. package/dist/assets/t9n/feature-comments/resources_en.json +3 -0
  3. package/dist/assets/t9n/feature-form-flow-item/resources.json +3 -0
  4. package/dist/assets/t9n/feature-form-flow-item/resources_en.json +3 -0
  5. package/dist/assets/t9n/layer-table/resources.json +2 -1
  6. package/dist/assets/t9n/layer-table/resources_en.json +2 -1
  7. package/dist/assets/t9n/list-flow-item/resources.json +3 -0
  8. package/dist/assets/t9n/list-flow-item/resources_en.json +3 -0
  9. package/dist/assets/t9n/location-flow-item/resources.json +3 -0
  10. package/dist/assets/t9n/location-flow-item/resources_en.json +3 -0
  11. package/dist/assets/t9n/share-item/resources.json +3 -0
  12. package/dist/assets/t9n/share-item/resources_en.json +3 -0
  13. package/dist/cjs/{list-item.cjs.entry.js → arcgis-login.cjs.entry.js} +4 -19
  14. package/dist/cjs/basemap-gallery_7.cjs.entry.js +13 -9
  15. package/dist/cjs/calcite-action_2.cjs.entry.js +61 -392
  16. package/dist/cjs/calcite-alert_3.cjs.entry.js +21 -3
  17. package/dist/cjs/calcite-combobox_6.cjs.entry.js +32 -8
  18. package/dist/cjs/calcite-popover.cjs.entry.js +418 -0
  19. package/dist/cjs/card-manager_3.cjs.entry.js +154 -18
  20. package/dist/cjs/crowdsource-manager.cjs.entry.js +24 -2
  21. package/dist/cjs/crowdsource-reporter.cjs.entry.js +45 -6
  22. package/dist/cjs/{downloadUtils-e3e595e9.js → downloadUtils-9c4fde54.js} +2 -2
  23. package/dist/cjs/feature-comments.cjs.entry.js +60 -0
  24. package/dist/cjs/feature-form-flow-item.cjs.entry.js +60 -0
  25. package/dist/cjs/features-flow-item.cjs.entry.js +60 -0
  26. package/dist/cjs/{index.es-047537b5.js → index.es-d208a6d6.js} +2 -2
  27. package/dist/cjs/list-flow-item.cjs.entry.js +60 -0
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/location-flow-item.cjs.entry.js +60 -0
  30. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  31. package/dist/cjs/{mapViewUtils-f7bbc35b.js → mapViewUtils-bab83c90.js} +21 -0
  32. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  33. package/dist/cjs/refine-results-flow-item.cjs.entry.js +60 -0
  34. package/dist/cjs/share-item.cjs.entry.js +60 -0
  35. package/dist/cjs/solutions-components.cjs.js +1 -1
  36. package/dist/collection/collection-manifest.json +8 -1
  37. package/dist/collection/components/{list-item/list-item.js → arcgis-login/arcgis-login.js} +4 -19
  38. package/dist/collection/components/arcgis-login/test/arcgis-login.e2e.js +29 -0
  39. package/dist/collection/components/arcgis-login/test/arcgis-login.spec.js +37 -0
  40. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +118 -2
  41. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +294 -6
  42. package/dist/collection/components/feature-comments/feature-comments.css +19 -0
  43. package/dist/collection/components/feature-comments/feature-comments.js +74 -0
  44. package/dist/collection/components/feature-comments/test/feature-comments.e2e.js +29 -0
  45. package/dist/collection/components/feature-comments/test/feature-comments.spec.js +37 -0
  46. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.css +19 -0
  47. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +74 -0
  48. package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.e2e.js +29 -0
  49. package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.spec.js +37 -0
  50. package/dist/collection/components/features-flow-item/features-flow-item.css +19 -0
  51. package/dist/collection/components/features-flow-item/features-flow-item.js +74 -0
  52. package/dist/collection/components/features-flow-item/test/features-flow-item.e2e.js +29 -0
  53. package/dist/collection/components/features-flow-item/test/features-flow-item.spec.js +37 -0
  54. package/dist/collection/components/info-card/info-card.js +21 -2
  55. package/dist/collection/components/layer-table/layer-table.js +199 -10
  56. package/dist/collection/components/list-flow-item/list-flow-item.css +19 -0
  57. package/dist/collection/components/list-flow-item/list-flow-item.js +74 -0
  58. package/dist/collection/components/list-flow-item/test/list-flow-item.e2e.js +29 -0
  59. package/dist/collection/components/list-flow-item/test/list-flow-item.spec.js +37 -0
  60. package/dist/collection/components/location-flow-item/location-flow-item.css +19 -0
  61. package/dist/collection/components/location-flow-item/location-flow-item.js +74 -0
  62. package/dist/collection/components/location-flow-item/test/location-flow-item.e2e.js +29 -0
  63. package/dist/collection/components/location-flow-item/test/location-flow-item.spec.js +37 -0
  64. package/dist/collection/components/map-card/map-card.js +38 -7
  65. package/dist/collection/components/map-layer-picker/map-layer-picker.js +49 -7
  66. package/dist/collection/components/map-picker/map-picker.js +37 -9
  67. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.css +19 -0
  68. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +74 -0
  69. package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.e2e.js +29 -0
  70. package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.spec.js +37 -0
  71. package/dist/collection/components/share-item/share-item.css +19 -0
  72. package/dist/collection/components/share-item/share-item.js +74 -0
  73. package/dist/collection/components/share-item/test/share-item.e2e.js +29 -0
  74. package/dist/collection/components/share-item/test/share-item.spec.js +37 -0
  75. package/dist/collection/demos/crowdsource-reporter.html +56 -15
  76. package/dist/collection/utils/interfaces.ts +5 -0
  77. package/dist/collection/utils/queryUtils.js +20 -0
  78. package/dist/collection/utils/queryUtils.ts +26 -0
  79. package/dist/components/arcgis-login.d.ts +11 -0
  80. package/dist/components/arcgis-login.js +75 -0
  81. package/dist/components/calcite-list-item.js +1 -1
  82. package/dist/components/card-manager2.js +7 -1
  83. package/dist/components/crowdsource-manager.js +32 -3
  84. package/dist/components/crowdsource-reporter.js +61 -7
  85. package/dist/components/feature-comments.d.ts +11 -0
  86. package/dist/components/feature-comments.js +75 -0
  87. package/dist/components/feature-form-flow-item.d.ts +11 -0
  88. package/dist/components/feature-form-flow-item.js +75 -0
  89. package/dist/components/features-flow-item.d.ts +11 -0
  90. package/dist/components/features-flow-item.js +75 -0
  91. package/dist/components/info-card2.js +28 -3
  92. package/dist/components/layer-table2.js +138 -10
  93. package/dist/components/list-flow-item.d.ts +11 -0
  94. package/dist/components/list-flow-item.js +75 -0
  95. package/dist/components/list-item.js +425 -55
  96. package/dist/components/location-flow-item.d.ts +11 -0
  97. package/dist/components/location-flow-item.js +75 -0
  98. package/dist/components/map-card2.js +22 -8
  99. package/dist/components/map-layer-picker2.js +32 -7
  100. package/dist/components/map-picker2.js +16 -11
  101. package/dist/components/map-select-tools2.js +1 -1
  102. package/dist/components/public-notification.js +1 -1
  103. package/dist/components/queryUtils.js +21 -1
  104. package/dist/components/refine-results-flow-item.d.ts +11 -0
  105. package/dist/components/refine-results-flow-item.js +75 -0
  106. package/dist/components/refine-selection2.js +2 -2
  107. package/dist/components/{list-item.d.ts → share-item.d.ts} +4 -4
  108. package/dist/components/share-item.js +75 -0
  109. package/dist/esm/{list-item.entry.js → arcgis-login.entry.js} +4 -19
  110. package/dist/esm/basemap-gallery_7.entry.js +13 -9
  111. package/dist/esm/calcite-action_2.entry.js +63 -394
  112. package/dist/esm/calcite-alert_3.entry.js +21 -3
  113. package/dist/esm/calcite-combobox_6.entry.js +32 -8
  114. package/dist/esm/calcite-popover.entry.js +414 -0
  115. package/dist/esm/card-manager_3.entry.js +154 -18
  116. package/dist/esm/crowdsource-manager.entry.js +24 -2
  117. package/dist/esm/crowdsource-reporter.entry.js +45 -6
  118. package/dist/esm/{downloadUtils-8fbd1347.js → downloadUtils-b84a6f55.js} +2 -2
  119. package/dist/esm/feature-comments.entry.js +56 -0
  120. package/dist/esm/feature-form-flow-item.entry.js +56 -0
  121. package/dist/esm/features-flow-item.entry.js +56 -0
  122. package/dist/esm/{index.es-b6705ce7.js → index.es-0d4698c7.js} +2 -2
  123. package/dist/esm/list-flow-item.entry.js +56 -0
  124. package/dist/esm/loader.js +1 -1
  125. package/dist/esm/location-flow-item.entry.js +56 -0
  126. package/dist/esm/map-select-tools_3.entry.js +2 -2
  127. package/dist/esm/{mapViewUtils-1e2befd7.js → mapViewUtils-88f363b6.js} +21 -1
  128. package/dist/esm/public-notification.entry.js +2 -2
  129. package/dist/esm/refine-results-flow-item.entry.js +56 -0
  130. package/dist/esm/share-item.entry.js +56 -0
  131. package/dist/esm/solutions-components.js +1 -1
  132. package/dist/solutions-components/demos/crowdsource-reporter.html +56 -15
  133. package/dist/solutions-components/{p-072680a5.js → p-214d41c3.js} +2 -2
  134. package/dist/solutions-components/p-28657abb.entry.js +11 -0
  135. package/dist/solutions-components/p-31b66bc3.entry.js +6 -0
  136. package/dist/solutions-components/{p-0123207d.entry.js → p-34737944.entry.js} +1 -1
  137. package/dist/solutions-components/{p-13d0424a.entry.js → p-3ced939f.entry.js} +1 -1
  138. package/dist/solutions-components/p-3dfbf45e.entry.js +6 -0
  139. package/dist/solutions-components/{p-092fd5d9.js → p-3ee78186.js} +1 -1
  140. package/dist/solutions-components/{p-7f793144.entry.js → p-4327c361.entry.js} +1 -1
  141. package/dist/solutions-components/p-455f4ed8.entry.js +17 -0
  142. package/dist/solutions-components/p-478fc7cb.entry.js +6 -0
  143. package/dist/solutions-components/p-4aafb627.js +36 -0
  144. package/dist/solutions-components/p-58562dda.entry.js +6 -0
  145. package/dist/solutions-components/{p-f367db61.entry.js → p-81503752.entry.js} +1 -1
  146. package/dist/solutions-components/{p-c90671e1.entry.js → p-9d54d7a0.entry.js} +4 -4
  147. package/dist/solutions-components/p-a5d70d3a.entry.js +6 -0
  148. package/dist/solutions-components/p-bd62df52.entry.js +6 -0
  149. package/dist/solutions-components/{p-ca780ab8.entry.js → p-d6f51bea.entry.js} +2 -2
  150. package/dist/solutions-components/p-e6371690.entry.js +6 -0
  151. package/dist/solutions-components/p-e7aad23d.entry.js +6 -0
  152. package/dist/solutions-components/p-ed95f634.entry.js +6 -0
  153. package/dist/solutions-components/p-fd08afb5.entry.js +6 -0
  154. package/dist/solutions-components/solutions-components.esm.js +1 -1
  155. package/dist/solutions-components/utils/interfaces.ts +5 -0
  156. package/dist/solutions-components/utils/queryUtils.ts +26 -0
  157. package/dist/types/components/{list-item/list-item.d.ts → arcgis-login/arcgis-login.d.ts} +2 -9
  158. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +36 -0
  159. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +73 -0
  160. package/dist/types/components/feature-comments/feature-comments.d.ts +19 -0
  161. package/dist/types/components/feature-form-flow-item/feature-form-flow-item.d.ts +19 -0
  162. package/dist/types/components/features-flow-item/features-flow-item.d.ts +19 -0
  163. package/dist/types/components/info-card/info-card.d.ts +8 -0
  164. package/dist/types/components/layer-table/layer-table.d.ts +77 -2
  165. package/dist/types/components/list-flow-item/list-flow-item.d.ts +19 -0
  166. package/dist/types/components/location-flow-item/location-flow-item.d.ts +19 -0
  167. package/dist/types/components/map-card/map-card.d.ts +12 -0
  168. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +15 -2
  169. package/dist/types/components/map-picker/map-picker.d.ts +1 -4
  170. package/dist/types/components/refine-results-flow-item/refine-results-flow-item.d.ts +19 -0
  171. package/dist/types/components/share-item/share-item.d.ts +19 -0
  172. package/dist/types/components.d.ts +301 -9
  173. package/dist/types/preact.d.ts +15 -1
  174. package/dist/types/utils/interfaces.d.ts +4 -0
  175. package/dist/types/utils/queryUtils.d.ts +9 -0
  176. package/package.json +1 -1
  177. package/dist/assets/t9n/config-buffer-tools/resources.json +0 -12
  178. package/dist/assets/t9n/config-buffer-tools/resources_en.json +0 -12
  179. package/dist/assets/t9n/config-draw-tools/resources.json +0 -10
  180. package/dist/assets/t9n/config-draw-tools/resources_en.json +0 -10
  181. package/dist/assets/t9n/config-layer-picker/resources.json +0 -3
  182. package/dist/assets/t9n/config-layer-picker/resources_en.json +0 -3
  183. package/dist/assets/t9n/config-pdf-download/resources.json +0 -6
  184. package/dist/assets/t9n/config-pdf-download/resources_en.json +0 -6
  185. package/dist/cjs/calcite-loader.cjs.entry.js +0 -80
  186. package/dist/components/list-item2.js +0 -460
  187. package/dist/esm/calcite-loader.entry.js +0 -76
  188. package/dist/solutions-components/p-11cb7b04.entry.js +0 -6
  189. package/dist/solutions-components/p-45cf4f67.entry.js +0 -6
  190. package/dist/solutions-components/p-4807b2a1.js +0 -36
  191. package/dist/solutions-components/p-557a1912.entry.js +0 -6
  192. package/dist/solutions-components/p-68735975.entry.js +0 -6
  193. package/dist/solutions-components/p-ec830ecb.entry.js +0 -23
  194. /package/dist/assets/t9n/{list-item → arcgis-login}/resources.json +0 -0
  195. /package/dist/assets/t9n/{list-item → arcgis-login}/resources_en.json +0 -0
  196. /package/dist/collection/components/{list-item/list-item.css → arcgis-login/arcgis-login.css} +0 -0
@@ -1,12 +0,0 @@
1
- {
2
- "defaultBufferDistance": "Default distance",
3
- "defaultUnit": "Default unit",
4
- "units": {
5
- "feet": "Feet",
6
- "yards": "Yards",
7
- "meters": "Meters",
8
- "kilometers": "Kilometers",
9
- "miles": "Miles"
10
- },
11
- "showSearchDistance": "Show buffer options"
12
- }
@@ -1,12 +0,0 @@
1
- {
2
- "defaultBufferDistance": "Default distance",
3
- "defaultUnit": "Default unit",
4
- "units": {
5
- "feet": "Feet",
6
- "yards": "Yards",
7
- "meters": "Meters",
8
- "kilometers": "Kilometers",
9
- "miles": "Miles"
10
- },
11
- "showSearchDistance": "Show buffer options"
12
- }
@@ -1,10 +0,0 @@
1
- {
2
- "drawTools": "Drawing tools",
3
- "types": {
4
- "point": "Point",
5
- "line": "Line",
6
- "polygon": "Polygon",
7
- "rectangle": "Rectangle",
8
- "freehandPolygon": "Freehand Polygon"
9
- }
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "drawTools": "Drawing tools",
3
- "types": {
4
- "point": "Point",
5
- "line": "Line",
6
- "polygon": "Polygon",
7
- "rectangle": "Rectangle",
8
- "freehandPolygon": "Freehand Polygon"
9
- }
10
- }
@@ -1,3 +0,0 @@
1
- {
2
- "chooseLayer": "Choose layers"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "chooseLayer": "Choose layers"
3
- }
@@ -1,6 +0,0 @@
1
- {
2
- "availableLabelFormats": "Available label formats",
3
- "csvOptions": "CSV options",
4
- "csvColumnTitle": "Add column title",
5
- "pdfLabel": "{{n}} per page | {{labelSize}}"
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "availableLabelFormats": "Available label formats",
3
- "csvOptions": "CSV options",
4
- "csvColumnTitle": "Add column title",
5
- "pdfLabel": "{{n}} per page | {{labelSize}}"
6
- }
@@ -1,80 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
- const index = require('./index-2d5760f2.js');
11
- const guid = require('./guid-5ef151a6.js');
12
-
13
- const loaderCss = "@charset \"UTF-8\";@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}:host([no-padding]){padding-block:0px}:host{display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.66 / var(--calcite-internal-duration-factor));animation-name:loader-clockwise}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear}@supports (display: grid){.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}}:host([type=determinate]){animation:none;stroke:var(--calcite-ui-border-3)}:host([type=determinate]) .loader__svgs{animation:none}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 4.8 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-83.7757333333}100%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:-279.2524444444}}.loader__svg--2{stroke-dasharray:55.8504888889 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.4 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-97.7383555556}100%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:-279.2524444444}}.loader__svg--3{stroke-dasharray:13.9626222222 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 7.734 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-76.7944222222}100%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:-279.2524444444}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{100%{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}";
14
-
15
- const Loader = class {
16
- constructor(hostRef) {
17
- index.registerInstance(this, hostRef);
18
- this.inline = false;
19
- this.label = undefined;
20
- this.scale = "m";
21
- this.type = undefined;
22
- this.value = 0;
23
- this.text = "";
24
- }
25
- //--------------------------------------------------------------------------
26
- //
27
- // Lifecycle
28
- //
29
- //--------------------------------------------------------------------------
30
- render() {
31
- const { el, inline, label, scale, text, type, value } = this;
32
- const id = el.id || guid.guid();
33
- const radiusRatio = 0.45;
34
- const size = inline ? this.getInlineSize(scale) : this.getSize(scale);
35
- const radius = size * radiusRatio;
36
- const viewbox = `0 0 ${size} ${size}`;
37
- const isDeterminate = type === "determinate";
38
- const circumference = 2 * radius * Math.PI;
39
- const progress = (value / 100) * circumference;
40
- const remaining = circumference - progress;
41
- const valueNow = Math.floor(value);
42
- const hostAttributes = {
43
- "aria-valuenow": valueNow,
44
- "aria-valuemin": 0,
45
- "aria-valuemax": 100,
46
- complete: valueNow === 100,
47
- };
48
- const svgAttributes = { r: radius, cx: size / 2, cy: size / 2 };
49
- const determinateStyle = { "stroke-dasharray": `${progress} ${remaining}` };
50
- return (index.h(index.Host, Object.assign({ "aria-label": label, id: id, role: "progressbar" }, (isDeterminate ? hostAttributes : {})), index.h("div", { class: "loader__svgs" }, index.h("svg", { "aria-hidden": "true", class: "loader__svg loader__svg--1", viewBox: viewbox }, index.h("circle", Object.assign({}, svgAttributes))), index.h("svg", { "aria-hidden": "true", class: "loader__svg loader__svg--2", viewBox: viewbox }, index.h("circle", Object.assign({}, svgAttributes))), index.h("svg", Object.assign({ "aria-hidden": "true", class: "loader__svg loader__svg--3", viewBox: viewbox }, (isDeterminate ? { style: determinateStyle } : {})), index.h("circle", Object.assign({}, svgAttributes)))), text && index.h("div", { class: "loader__text" }, text), isDeterminate && index.h("div", { class: "loader__percentage" }, value)));
51
- }
52
- //--------------------------------------------------------------------------
53
- //
54
- // Private Methods
55
- //
56
- //--------------------------------------------------------------------------
57
- /**
58
- * Return the proper sizes based on the scale property
59
- *
60
- * @param scale
61
- */
62
- getSize(scale) {
63
- return {
64
- s: 32,
65
- m: 56,
66
- l: 80,
67
- }[scale];
68
- }
69
- getInlineSize(scale) {
70
- return {
71
- s: 12,
72
- m: 16,
73
- l: 20,
74
- }[scale];
75
- }
76
- get el() { return index.getElement(this); }
77
- };
78
- Loader.style = loaderCss;
79
-
80
- exports.calcite_loader = Loader;
@@ -1,460 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
- import { j as slotChangeHasAssignedElement, g as getElementDir, t as toAriaBoolean } from './dom.js';
8
- import { c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive } from './interactive.js';
9
- import { a as getDepth, C as CSS, I as ICONS, S as SLOTS, g as getListItemChildren, u as updateListItemChildren } from './utils3.js';
10
- import { c as connectLocalized, d as disconnectLocalized } from './locale2.js';
11
- import { u as updateMessages, c as connectMessages, s as setUpMessages, d as disconnectMessages } from './t9n.js';
12
- import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentFocusable } from './loadable.js';
13
- import { d as defineCustomElement$4 } from './action.js';
14
- import { d as defineCustomElement$3 } from './handle.js';
15
- import { d as defineCustomElement$2 } from './icon.js';
16
- import { d as defineCustomElement$1 } from './loader.js';
17
-
18
- const listItemCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-ui-brand);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}.container *{box-sizing:border-box}.container:hover{cursor:pointer;background-color:var(--calcite-ui-foreground-2)}.container--border-selected{border-inline-start:4px solid var(--calcite-ui-brand)}.container--border-unselected{border-inline-start:4px solid transparent}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.nested-container--hidden{display:none}.content-container{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}tr,td{outline-color:transparent}tr:focus,td:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.content,.custom-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.selection-container{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.drag-container,.open-container{display:flex;align-items:center}.open-container,.selection-container{cursor:pointer}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item){border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";
19
-
20
- const focusMap = new Map();
21
- const listSelector = "calcite-list";
22
- const ListItem = /*@__PURE__*/ proxyCustomElement(class ListItem extends HTMLElement {
23
- constructor() {
24
- super();
25
- this.__registerHost();
26
- this.__attachShadow();
27
- this.calciteListItemSelect = createEvent(this, "calciteListItemSelect", 6);
28
- this.calciteListItemClose = createEvent(this, "calciteListItemClose", 6);
29
- this.calciteInternalListItemSelect = createEvent(this, "calciteInternalListItemSelect", 6);
30
- this.calciteInternalListItemActive = createEvent(this, "calciteInternalListItemActive", 6);
31
- this.calciteInternalFocusPreviousItem = createEvent(this, "calciteInternalFocusPreviousItem", 6);
32
- this.calciteInternalListItemChange = createEvent(this, "calciteInternalListItemChange", 6);
33
- this.closeClickHandler = () => {
34
- this.closed = true;
35
- this.calciteListItemClose.emit();
36
- };
37
- this.handleContentSlotChange = (event) => {
38
- this.hasCustomContent = slotChangeHasAssignedElement(event);
39
- };
40
- this.handleActionsStartSlotChange = (event) => {
41
- this.hasActionsStart = slotChangeHasAssignedElement(event);
42
- };
43
- this.handleActionsEndSlotChange = (event) => {
44
- this.hasActionsEnd = slotChangeHasAssignedElement(event);
45
- };
46
- this.handleContentStartSlotChange = (event) => {
47
- this.hasContentStart = slotChangeHasAssignedElement(event);
48
- };
49
- this.handleContentEndSlotChange = (event) => {
50
- this.hasContentEnd = slotChangeHasAssignedElement(event);
51
- };
52
- this.handleDefaultSlotChange = (event) => {
53
- this.handleOpenableChange(event.target);
54
- };
55
- this.toggleOpen = () => {
56
- this.open = !this.open;
57
- };
58
- this.itemClicked = (event) => {
59
- if (event.defaultPrevented) {
60
- return;
61
- }
62
- this.toggleSelected();
63
- this.calciteInternalListItemActive.emit();
64
- };
65
- this.toggleSelected = () => {
66
- const { selectionMode, selected } = this;
67
- if (this.disabled) {
68
- return;
69
- }
70
- if (selectionMode === "multiple" || selectionMode === "single") {
71
- this.selected = !selected;
72
- }
73
- else if (selectionMode === "single-persist") {
74
- this.selected = true;
75
- }
76
- this.calciteListItemSelect.emit();
77
- };
78
- this.handleItemKeyDown = (event) => {
79
- if (event.defaultPrevented) {
80
- return;
81
- }
82
- const { key } = event;
83
- const composedPath = event.composedPath();
84
- const { containerEl, contentEl, actionsStartEl, actionsEndEl, open, openable } = this;
85
- const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
86
- const currentIndex = cells.findIndex((cell) => composedPath.includes(cell));
87
- if (key === "Enter" &&
88
- !composedPath.includes(actionsStartEl) &&
89
- !composedPath.includes(actionsEndEl)) {
90
- event.preventDefault();
91
- this.toggleSelected();
92
- }
93
- else if (key === "ArrowRight") {
94
- event.preventDefault();
95
- const nextIndex = currentIndex + 1;
96
- if (currentIndex === -1) {
97
- if (!open && openable) {
98
- this.open = true;
99
- this.focusCell(null);
100
- }
101
- else if (cells[0]) {
102
- this.focusCell(cells[0]);
103
- }
104
- }
105
- else if (cells[currentIndex] && cells[nextIndex]) {
106
- this.focusCell(cells[nextIndex]);
107
- }
108
- }
109
- else if (key === "ArrowLeft") {
110
- event.preventDefault();
111
- const prevIndex = currentIndex - 1;
112
- if (currentIndex === -1) {
113
- this.focusCell(null);
114
- if (open && openable) {
115
- this.open = false;
116
- }
117
- else {
118
- this.calciteInternalFocusPreviousItem.emit();
119
- }
120
- }
121
- else if (currentIndex === 0) {
122
- this.focusCell(null);
123
- containerEl.focus();
124
- }
125
- else if (cells[currentIndex] && cells[prevIndex]) {
126
- this.focusCell(cells[prevIndex]);
127
- }
128
- }
129
- };
130
- this.focusCellNull = () => {
131
- this.focusCell(null);
132
- };
133
- this.focusCell = (focusEl, saveFocusIndex = true) => {
134
- const { contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
135
- if (saveFocusIndex) {
136
- focusMap.set(parentListEl, null);
137
- }
138
- [actionsStartEl, contentEl, actionsEndEl].filter(Boolean).forEach((tableCell, cellIndex) => {
139
- const tabIndexAttr = "tabindex";
140
- if (tableCell === focusEl) {
141
- tableCell.setAttribute(tabIndexAttr, "0");
142
- saveFocusIndex && focusMap.set(parentListEl, cellIndex);
143
- }
144
- else {
145
- tableCell.removeAttribute(tabIndexAttr);
146
- }
147
- });
148
- focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
149
- };
150
- this.active = false;
151
- this.closable = false;
152
- this.closed = false;
153
- this.description = undefined;
154
- this.disabled = false;
155
- this.dragHandle = false;
156
- this.label = undefined;
157
- this.metadata = undefined;
158
- this.open = false;
159
- this.setSize = null;
160
- this.setPosition = null;
161
- this.selected = false;
162
- this.value = undefined;
163
- this.selectionMode = null;
164
- this.selectionAppearance = null;
165
- this.messageOverrides = undefined;
166
- this.messages = undefined;
167
- this.effectiveLocale = "";
168
- this.defaultMessages = undefined;
169
- this.level = null;
170
- this.visualLevel = null;
171
- this.parentListEl = undefined;
172
- this.openable = false;
173
- this.hasActionsStart = false;
174
- this.hasActionsEnd = false;
175
- this.hasCustomContent = false;
176
- this.hasContentStart = false;
177
- this.hasContentEnd = false;
178
- }
179
- activeHandler(active) {
180
- if (!active) {
181
- this.focusCell(null, false);
182
- }
183
- }
184
- handleClosedChange() {
185
- this.emitCalciteInternalListItemChange();
186
- }
187
- handleDisabledChange() {
188
- this.emitCalciteInternalListItemChange();
189
- }
190
- handleSelectedChange() {
191
- this.calciteInternalListItemSelect.emit();
192
- }
193
- onMessagesChange() {
194
- /* wired up by t9n util */
195
- }
196
- handleCalciteInternalListDefaultSlotChanges(event) {
197
- event.stopPropagation();
198
- this.handleOpenableChange(this.defaultSlotEl);
199
- }
200
- effectiveLocaleChange() {
201
- updateMessages(this, this.effectiveLocale);
202
- }
203
- // --------------------------------------------------------------------------
204
- //
205
- // Lifecycle
206
- //
207
- // --------------------------------------------------------------------------
208
- connectedCallback() {
209
- connectInteractive(this);
210
- connectLocalized(this);
211
- connectMessages(this);
212
- const { el } = this;
213
- this.parentListEl = el.closest(listSelector);
214
- this.level = getDepth(el) + 1;
215
- this.visualLevel = getDepth(el, true);
216
- this.setSelectionDefaults();
217
- }
218
- async componentWillLoad() {
219
- setUpLoadableComponent(this);
220
- await setUpMessages(this);
221
- }
222
- componentDidLoad() {
223
- setComponentLoaded(this);
224
- }
225
- componentDidRender() {
226
- updateHostInteraction(this, "managed");
227
- }
228
- disconnectedCallback() {
229
- disconnectInteractive(this);
230
- disconnectLocalized(this);
231
- disconnectMessages(this);
232
- }
233
- // --------------------------------------------------------------------------
234
- //
235
- // Public Methods
236
- //
237
- // --------------------------------------------------------------------------
238
- /** Sets focus on the component. */
239
- async setFocus() {
240
- await componentFocusable(this);
241
- const { containerEl, contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
242
- const focusIndex = focusMap.get(parentListEl);
243
- if (typeof focusIndex === "number") {
244
- const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
245
- if (cells[focusIndex]) {
246
- this.focusCell(cells[focusIndex]);
247
- }
248
- else {
249
- containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
250
- }
251
- return;
252
- }
253
- containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
254
- }
255
- // --------------------------------------------------------------------------
256
- //
257
- // Render Methods
258
- //
259
- // --------------------------------------------------------------------------
260
- renderSelected() {
261
- const { selected, selectionMode, selectionAppearance } = this;
262
- if (selectionMode === "none" || selectionAppearance === "border") {
263
- return null;
264
- }
265
- return (h("td", { class: CSS.selectionContainer, key: "selection-container", onClick: this.itemClicked }, h("calcite-icon", { icon: selected
266
- ? selectionMode === "multiple"
267
- ? ICONS.selectedMultiple
268
- : ICONS.selectedSingle
269
- : ICONS.unselected, scale: "s" })));
270
- }
271
- renderDragHandle() {
272
- return this.dragHandle ? (h("td", { class: CSS.dragContainer, key: "drag-handle-container" }, h("calcite-handle", { label: this.label, setPosition: this.setPosition, setSize: this.setSize }))) : null;
273
- }
274
- renderOpen() {
275
- const { el, open, openable, parentListEl } = this;
276
- const dir = getElementDir(el);
277
- return openable ? (h("td", { class: CSS.openContainer, key: "open-container", onClick: this.toggleOpen }, h("calcite-icon", { icon: open ? ICONS.open : dir === "rtl" ? ICONS.closedRTL : ICONS.closedLTR, scale: "s" }))) : (parentListEl === null || parentListEl === void 0 ? void 0 : parentListEl.openable) ? (h("td", { class: CSS.openContainer, key: "open-container", onClick: this.itemClicked }, h("calcite-icon", { icon: ICONS.blank, scale: "s" }))) : null;
278
- }
279
- renderActionsStart() {
280
- const { label, hasActionsStart } = this;
281
- return (h("td", { "aria-label": label, class: CSS.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
282
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
283
- ref: (el) => (this.actionsStartEl = el) }, h("slot", { name: SLOTS.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
284
- }
285
- renderActionsEnd() {
286
- const { label, hasActionsEnd, closable, messages } = this;
287
- return (h("td", { "aria-label": label, class: CSS.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
288
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
289
- ref: (el) => (this.actionsEndEl = el) }, h("slot", { name: SLOTS.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (h("calcite-action", { appearance: "transparent", icon: ICONS.close, key: "close-action", label: messages.close, onClick: this.closeClickHandler, text: messages.close })) : null));
290
- }
291
- renderContentStart() {
292
- const { hasContentStart } = this;
293
- return (h("div", { class: CSS.contentStart, hidden: !hasContentStart }, h("slot", { name: SLOTS.contentStart, onSlotchange: this.handleContentStartSlotChange })));
294
- }
295
- renderCustomContent() {
296
- const { hasCustomContent } = this;
297
- return (h("div", { class: CSS.customContent, hidden: !hasCustomContent }, h("slot", { name: SLOTS.content, onSlotchange: this.handleContentSlotChange })));
298
- }
299
- renderContentEnd() {
300
- const { hasContentEnd } = this;
301
- return (h("div", { class: CSS.contentEnd, hidden: !hasContentEnd }, h("slot", { name: SLOTS.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
302
- }
303
- renderContentProperties() {
304
- const { label, description, hasCustomContent } = this;
305
- return !hasCustomContent && (!!label || !!description) ? (h("div", { class: CSS.content, key: "content" }, label ? (h("div", { class: CSS.label, key: "label" }, label)) : null, description ? (h("div", { class: CSS.description, key: "description" }, description)) : null)) : null;
306
- }
307
- renderContentContainer() {
308
- const { description, label, selectionMode, hasCustomContent } = this;
309
- const hasCenterContent = hasCustomContent || !!label || !!description;
310
- const content = [
311
- this.renderContentStart(),
312
- this.renderCustomContent(),
313
- this.renderContentProperties(),
314
- this.renderContentEnd(),
315
- ];
316
- return (h("td", { "aria-label": label, class: {
317
- [CSS.contentContainer]: true,
318
- [CSS.contentContainerSelectable]: selectionMode !== "none",
319
- [CSS.contentContainerHasCenterContent]: hasCenterContent,
320
- }, key: "content-container", onClick: this.itemClicked, role: "gridcell",
321
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
322
- ref: (el) => (this.contentEl = el) }, content));
323
- }
324
- render() {
325
- const { openable, open, level, setPosition, setSize, active, label, selected, selectionAppearance, selectionMode, closed, } = this;
326
- const showBorder = selectionMode !== "none" && selectionAppearance === "border";
327
- const borderSelected = showBorder && selected;
328
- const borderUnselected = showBorder && !selected;
329
- return (h(Host, null, h("tr", { "aria-expanded": openable ? toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": toAriaBoolean(selected), "aria-setsize": setSize, class: {
330
- [CSS.container]: true,
331
- [CSS.containerBorderSelected]: borderSelected,
332
- [CSS.containerBorderUnselected]: borderUnselected,
333
- }, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1,
334
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
335
- ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), h("div", { class: {
336
- [CSS.nestedContainer]: true,
337
- [CSS.nestedContainerHidden]: openable && !open,
338
- } }, h("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) }))));
339
- }
340
- // --------------------------------------------------------------------------
341
- //
342
- // Private Methods
343
- //
344
- // --------------------------------------------------------------------------
345
- emitCalciteInternalListItemChange() {
346
- this.calciteInternalListItemChange.emit();
347
- }
348
- setSelectionDefaults() {
349
- const { parentListEl, selectionMode, selectionAppearance } = this;
350
- if (!parentListEl) {
351
- return;
352
- }
353
- if (!selectionMode) {
354
- this.selectionMode = parentListEl.selectionMode;
355
- }
356
- if (!selectionAppearance) {
357
- this.selectionAppearance = parentListEl.selectionAppearance;
358
- }
359
- }
360
- handleOpenableChange(slotEl) {
361
- if (!slotEl) {
362
- return;
363
- }
364
- const { parentListEl } = this;
365
- const listItemChildren = getListItemChildren(slotEl);
366
- updateListItemChildren(listItemChildren);
367
- const openable = !!listItemChildren.length;
368
- if (openable && parentListEl && !parentListEl.openable) {
369
- parentListEl.openable = true;
370
- }
371
- this.openable = openable;
372
- if (!openable) {
373
- this.open = false;
374
- }
375
- }
376
- static get assetsDirs() { return ["assets"]; }
377
- get el() { return this; }
378
- static get watchers() { return {
379
- "active": ["activeHandler"],
380
- "closed": ["handleClosedChange"],
381
- "disabled": ["handleDisabledChange"],
382
- "selected": ["handleSelectedChange"],
383
- "messageOverrides": ["onMessagesChange"],
384
- "effectiveLocale": ["effectiveLocaleChange"]
385
- }; }
386
- static get style() { return listItemCss; }
387
- }, [1, "calcite-list-item", {
388
- "active": [4],
389
- "closable": [516],
390
- "closed": [1540],
391
- "description": [1],
392
- "disabled": [516],
393
- "dragHandle": [4, "drag-handle"],
394
- "label": [1],
395
- "metadata": [16],
396
- "open": [1540],
397
- "setSize": [2, "set-size"],
398
- "setPosition": [2, "set-position"],
399
- "selected": [1540],
400
- "value": [8],
401
- "selectionMode": [1025, "selection-mode"],
402
- "selectionAppearance": [1025, "selection-appearance"],
403
- "messageOverrides": [1040],
404
- "messages": [1040],
405
- "effectiveLocale": [32],
406
- "defaultMessages": [32],
407
- "level": [32],
408
- "visualLevel": [32],
409
- "parentListEl": [32],
410
- "openable": [32],
411
- "hasActionsStart": [32],
412
- "hasActionsEnd": [32],
413
- "hasCustomContent": [32],
414
- "hasContentStart": [32],
415
- "hasContentEnd": [32],
416
- "setFocus": [64]
417
- }, [[0, "calciteInternalListItemGroupDefaultSlotChange", "handleCalciteInternalListDefaultSlotChanges"], [0, "calciteInternalListDefaultSlotChange", "handleCalciteInternalListDefaultSlotChanges"]], {
418
- "active": ["activeHandler"],
419
- "closed": ["handleClosedChange"],
420
- "disabled": ["handleDisabledChange"],
421
- "selected": ["handleSelectedChange"],
422
- "messageOverrides": ["onMessagesChange"],
423
- "effectiveLocale": ["effectiveLocaleChange"]
424
- }]);
425
- function defineCustomElement() {
426
- if (typeof customElements === "undefined") {
427
- return;
428
- }
429
- const components = ["calcite-list-item", "calcite-action", "calcite-handle", "calcite-icon", "calcite-loader"];
430
- components.forEach(tagName => { switch (tagName) {
431
- case "calcite-list-item":
432
- if (!customElements.get(tagName)) {
433
- customElements.define(tagName, ListItem);
434
- }
435
- break;
436
- case "calcite-action":
437
- if (!customElements.get(tagName)) {
438
- defineCustomElement$4();
439
- }
440
- break;
441
- case "calcite-handle":
442
- if (!customElements.get(tagName)) {
443
- defineCustomElement$3();
444
- }
445
- break;
446
- case "calcite-icon":
447
- if (!customElements.get(tagName)) {
448
- defineCustomElement$2();
449
- }
450
- break;
451
- case "calcite-loader":
452
- if (!customElements.get(tagName)) {
453
- defineCustomElement$1();
454
- }
455
- break;
456
- } });
457
- }
458
- defineCustomElement();
459
-
460
- export { ListItem as L, defineCustomElement as d };