udp-stencil-component-library 25.18.1-beta.5 → 25.18.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/dist/cjs/add-map-feature-popup_4.cjs.entry.js +1 -1
  2. package/dist/cjs/advanced-search-builder.cjs.entry.js +1 -1
  3. package/dist/cjs/advanced-search_50.cjs.entry.js +249 -16
  4. package/dist/cjs/ag-grid-base_5.cjs.entry.js +2 -2
  5. package/dist/cjs/api-method-instance-grid.cjs.entry.js +1 -1
  6. package/dist/cjs/chart-container_3.cjs.entry.js +1 -1
  7. package/dist/cjs/check-box-group.cjs.entry.js +1 -1
  8. package/dist/cjs/check-box.cjs.entry.js +1 -1
  9. package/dist/cjs/chip-section.cjs.entry.js +3 -3
  10. package/dist/cjs/client-side-grid_2.cjs.entry.js +1 -1
  11. package/dist/cjs/color-preview.cjs.entry.js +2 -2
  12. package/dist/cjs/date-time-renderer_6.cjs.entry.js +1 -1
  13. package/dist/cjs/entity-maintenance-grid.cjs.entry.js +1 -1
  14. package/dist/cjs/feature-details-card_2.cjs.entry.js +1 -1
  15. package/dist/cjs/file-upload_2.cjs.entry.js +1 -1
  16. package/dist/cjs/filter-group_2.cjs.entry.js +1 -1
  17. package/dist/cjs/{get-user-CljYNKAA.js → get-user-DFb8yrQ2.js} +3 -3
  18. package/dist/cjs/{get-user-CljYNKAA.js.map → get-user-DFb8yrQ2.js.map} +1 -1
  19. package/dist/cjs/get-user.cjs.entry.js +2 -2
  20. package/dist/cjs/image-upload_7.cjs.entry.js +1 -1
  21. package/dist/cjs/{index-Ci0lUvCK.js → index-DrMNAZCL.js} +7 -3
  22. package/dist/cjs/index-DrMNAZCL.js.map +1 -0
  23. package/dist/cjs/index.cjs.js +3 -3
  24. package/dist/cjs/inputs-example.cjs.entry.js +3 -3
  25. package/dist/cjs/loader.cjs.js +2 -2
  26. package/dist/cjs/logical-search-indicator.cjs.entry.js +1 -1
  27. package/dist/cjs/map-component_2.cjs.entry.js +1 -1
  28. package/dist/cjs/numeric-field_5.cjs.entry.js +1 -1
  29. package/dist/cjs/page-renderer.cjs.entry.js +2 -2
  30. package/dist/cjs/question-configs-renderer_5.cjs.entry.js +1 -1
  31. package/dist/cjs/resource-timeline-calendar.cjs.entry.js +1 -1
  32. package/dist/cjs/search-method-grid.cjs.entry.js +1 -1
  33. package/dist/cjs/server-side-grid.cjs.entry.js +1 -1
  34. package/dist/cjs/simple-card.cjs.entry.js +1 -1
  35. package/dist/cjs/stencil-field.cjs.entry.js +1 -1
  36. package/dist/cjs/stencil-library.cjs.js +2 -2
  37. package/dist/cjs/test-api-updated.cjs.entry.js +1 -1
  38. package/dist/cjs/test-api.cjs.entry.js +1 -1
  39. package/dist/cjs/toggle-button.cjs.entry.js +1 -1
  40. package/dist/cjs/udp-adornment.cjs.entry.js +1 -1
  41. package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +1 -1
  42. package/dist/cjs/udp-bar-chart_4.cjs.entry.js +1 -1
  43. package/dist/cjs/udp-calendar-base.cjs.entry.js +1 -1
  44. package/dist/cjs/udp-calendar-day.cjs.entry.js +1 -1
  45. package/dist/cjs/udp-calendar-month.cjs.entry.js +1 -1
  46. package/dist/cjs/udp-calendar-week.cjs.entry.js +1 -1
  47. package/dist/cjs/udp-calendar-year.cjs.entry.js +1 -1
  48. package/dist/cjs/udp-card-action-area.cjs.entry.js +1 -1
  49. package/dist/cjs/udp-card.udp-card-actions.udp-card-content.udp-card-header.udp-card-media.udp-link.entry.cjs.js.map +1 -1
  50. package/dist/cjs/udp-card_6.cjs.entry.js +8 -11
  51. package/dist/cjs/udp-charts-example.cjs.entry.js +1 -1
  52. package/dist/cjs/udp-chip_3.cjs.entry.js +1 -1
  53. package/dist/cjs/udp-container-query-grid-item.cjs.entry.js +1 -1
  54. package/dist/cjs/udp-container-query-grid.cjs.entry.js +1 -1
  55. package/dist/cjs/udp-container-query.cjs.entry.js +1 -1
  56. package/dist/cjs/udp-container.cjs.entry.js +1 -1
  57. package/dist/cjs/udp-date-range-selector.cjs.entry.js +1 -1
  58. package/dist/cjs/udp-dynamic-form.cjs.entry.js +1 -1
  59. package/dist/cjs/udp-empty-state-display.cjs.entry.js +1 -1
  60. package/dist/cjs/{udp-fetch-Bw6LGKaF.js → udp-fetch-C9800dwI.js} +3 -3
  61. package/dist/cjs/{udp-fetch-Bw6LGKaF.js.map → udp-fetch-C9800dwI.js.map} +1 -1
  62. package/dist/cjs/udp-fetch.cjs.entry.js +2 -2
  63. package/dist/cjs/udp-forms-builder.cjs.entry.js +1 -1
  64. package/dist/cjs/udp-forms-follow-up-list-card.cjs.entry.js +1 -1
  65. package/dist/cjs/udp-forms-list-card.cjs.entry.js +1 -1
  66. package/dist/cjs/udp-forms-list.cjs.entry.js +1 -1
  67. package/dist/cjs/udp-forms-renderer.cjs.entry.js +1 -1
  68. package/dist/cjs/udp-forms-ui.cjs.entry.js +1 -1
  69. package/dist/cjs/udp-list-renderer_3.cjs.entry.js +1 -1
  70. package/dist/cjs/udp-map.cjs.entry.js +1 -1
  71. package/dist/cjs/udp-page.cjs.entry.js +1 -1
  72. package/dist/cjs/udp-sankey-chart.cjs.entry.js +1 -1
  73. package/dist/cjs/udp-split-screen.cjs.entry.js +1 -1
  74. package/dist/cjs/udp-stepper-demo.cjs.entry.js +1 -1
  75. package/dist/cjs/udp-stepper.cjs.entry.js +1 -1
  76. package/dist/cjs/udp-tab-panel.cjs.entry.js +22 -0
  77. package/dist/cjs/udp-tab-panel.entry.cjs.js.map +1 -0
  78. package/dist/cjs/udp-user-creator.cjs.entry.js +1 -1
  79. package/dist/cjs/udp-vertical-spacer.cjs.entry.js +1 -1
  80. package/dist/cjs/udp-xy-chart.cjs.entry.js +1 -1
  81. package/dist/cjs/udp-xy-multi-series-chart.cjs.entry.js +1 -1
  82. package/dist/collection/collection-manifest.json +1 -0
  83. package/dist/collection/components/my-component/UI/data-display/cards/udp-card/udp-card.css +5 -9
  84. package/dist/collection/components/my-component/UI/data-display/cards/udp-card/udp-card.js +8 -12
  85. package/dist/collection/components/my-component/UI/data-display/cards/udp-card/udp-card.js.map +1 -1
  86. package/dist/collection/components/my-component/UI/tabs/tab/tabs/udp-tabs.css +181 -43
  87. package/dist/collection/components/my-component/UI/tabs/tab/tabs/udp-tabs.js +335 -4
  88. package/dist/collection/components/my-component/UI/tabs/tab/tabs/udp-tabs.js.map +1 -1
  89. package/dist/collection/components/my-component/UI/tabs/tab/udp-tab.css +2 -4
  90. package/dist/collection/components/my-component/UI/tabs/tab/udp-tab.js +116 -14
  91. package/dist/collection/components/my-component/UI/tabs/tab/udp-tab.js.map +1 -1
  92. package/dist/collection/components/my-component/UI/tabs/udp-tab-panel/udp-tab-panel.css +11 -0
  93. package/dist/collection/components/my-component/UI/tabs/udp-tab-panel/udp-tab-panel.js +65 -0
  94. package/dist/collection/components/my-component/UI/tabs/udp-tab-panel/udp-tab-panel.js.map +1 -0
  95. package/dist/collection/components/my-component/UI/toolbars/app-bar/app-bar.js +1 -1
  96. package/dist/collection/components/my-component/UI/util/ghost-render/ghost-render.js +1 -1
  97. package/dist/collection/components/my-component/demo/ambient-demo-container.js +1 -1
  98. package/dist/collection/components/test-component/inputs-example/inputs-example.js +2 -2
  99. package/dist/collection/page-renderer/page-renderer.js +1 -1
  100. package/dist/collection/theme/color-preview/color-preview.js +1 -1
  101. package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js +2 -2
  102. package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js +1 -1
  103. package/dist/components/ambient-demo-container2.js +1 -1
  104. package/dist/components/app-bar2.js +1 -1
  105. package/dist/components/chip-section.js +2 -2
  106. package/dist/components/color-preview.js +1 -1
  107. package/dist/components/ghost-render2.js +1 -1
  108. package/dist/components/index2.js +1 -1
  109. package/dist/components/index2.js.map +1 -1
  110. package/dist/components/inputs-example.js +2 -2
  111. package/dist/components/page-renderer.js +1 -1
  112. package/dist/components/primary-action-header2.js +14 -9
  113. package/dist/components/primary-action-header2.js.map +1 -1
  114. package/dist/components/udp-card2.js +7 -10
  115. package/dist/components/udp-card2.js.map +1 -1
  116. package/dist/components/udp-dynamic-container-with-menu2.js +1 -1
  117. package/dist/components/udp-icon2.js +176 -2
  118. package/dist/components/udp-icon2.js.map +1 -1
  119. package/dist/components/udp-tab-panel.d.ts +11 -0
  120. package/dist/components/udp-tab-panel.js +45 -0
  121. package/dist/components/udp-tab-panel.js.map +1 -0
  122. package/dist/components/udp-tab2.js +28 -12
  123. package/dist/components/udp-tab2.js.map +1 -1
  124. package/dist/components/udp-tabs2.js +246 -8
  125. package/dist/components/udp-tabs2.js.map +1 -1
  126. package/dist/docs.json +350 -22
  127. package/dist/esm/add-map-feature-popup_4.entry.js +1 -1
  128. package/dist/esm/advanced-search-builder.entry.js +1 -1
  129. package/dist/esm/advanced-search_50.entry.js +249 -16
  130. package/dist/esm/ag-grid-base_5.entry.js +2 -2
  131. package/dist/esm/api-method-instance-grid.entry.js +1 -1
  132. package/dist/esm/chart-container_3.entry.js +1 -1
  133. package/dist/esm/check-box-group.entry.js +1 -1
  134. package/dist/esm/check-box.entry.js +1 -1
  135. package/dist/esm/chip-section.entry.js +3 -3
  136. package/dist/esm/client-side-grid_2.entry.js +1 -1
  137. package/dist/esm/color-preview.entry.js +2 -2
  138. package/dist/esm/date-time-renderer_6.entry.js +1 -1
  139. package/dist/esm/entity-maintenance-grid.entry.js +1 -1
  140. package/dist/esm/feature-details-card_2.entry.js +1 -1
  141. package/dist/esm/file-upload_2.entry.js +1 -1
  142. package/dist/esm/filter-group_2.entry.js +1 -1
  143. package/dist/esm/{get-user-BRZVzzgG.js → get-user-BtNVBI86.js} +3 -3
  144. package/dist/esm/{get-user-BRZVzzgG.js.map → get-user-BtNVBI86.js.map} +1 -1
  145. package/dist/esm/get-user.entry.js +2 -2
  146. package/dist/esm/image-upload_7.entry.js +1 -1
  147. package/dist/esm/{index-DsqSxziV.js → index-n-1ZSeAs.js} +7 -3
  148. package/dist/esm/index-n-1ZSeAs.js.map +1 -0
  149. package/dist/esm/index.js +3 -3
  150. package/dist/esm/inputs-example.entry.js +3 -3
  151. package/dist/esm/loader.js +3 -3
  152. package/dist/esm/logical-search-indicator.entry.js +1 -1
  153. package/dist/esm/map-component_2.entry.js +1 -1
  154. package/dist/esm/numeric-field_5.entry.js +1 -1
  155. package/dist/esm/page-renderer.entry.js +2 -2
  156. package/dist/esm/question-configs-renderer_5.entry.js +1 -1
  157. package/dist/esm/resource-timeline-calendar.entry.js +1 -1
  158. package/dist/esm/search-method-grid.entry.js +1 -1
  159. package/dist/esm/server-side-grid.entry.js +1 -1
  160. package/dist/esm/simple-card.entry.js +1 -1
  161. package/dist/esm/stencil-field.entry.js +1 -1
  162. package/dist/esm/stencil-library.js +3 -3
  163. package/dist/esm/test-api-updated.entry.js +1 -1
  164. package/dist/esm/test-api.entry.js +1 -1
  165. package/dist/esm/toggle-button.entry.js +1 -1
  166. package/dist/esm/udp-adornment.entry.js +1 -1
  167. package/dist/esm/udp-advanced-search-builder.entry.js +1 -1
  168. package/dist/esm/udp-bar-chart_4.entry.js +1 -1
  169. package/dist/esm/udp-calendar-base.entry.js +1 -1
  170. package/dist/esm/udp-calendar-day.entry.js +1 -1
  171. package/dist/esm/udp-calendar-month.entry.js +1 -1
  172. package/dist/esm/udp-calendar-week.entry.js +1 -1
  173. package/dist/esm/udp-calendar-year.entry.js +1 -1
  174. package/dist/esm/udp-card-action-area.entry.js +1 -1
  175. package/dist/esm/udp-card.udp-card-actions.udp-card-content.udp-card-header.udp-card-media.udp-link.entry.js.map +1 -1
  176. package/dist/esm/udp-card_6.entry.js +8 -11
  177. package/dist/esm/udp-charts-example.entry.js +1 -1
  178. package/dist/esm/udp-chip_3.entry.js +1 -1
  179. package/dist/esm/udp-container-query-grid-item.entry.js +1 -1
  180. package/dist/esm/udp-container-query-grid.entry.js +1 -1
  181. package/dist/esm/udp-container-query.entry.js +1 -1
  182. package/dist/esm/udp-container.entry.js +1 -1
  183. package/dist/esm/udp-date-range-selector.entry.js +1 -1
  184. package/dist/esm/udp-dynamic-form.entry.js +1 -1
  185. package/dist/esm/udp-empty-state-display.entry.js +1 -1
  186. package/dist/esm/{udp-fetch-BZFtuXQx.js → udp-fetch-BGMJ3xhH.js} +3 -3
  187. package/dist/{stencil-library/udp-fetch-BZFtuXQx.js.map → esm/udp-fetch-BGMJ3xhH.js.map} +1 -1
  188. package/dist/esm/udp-fetch.entry.js +2 -2
  189. package/dist/esm/udp-forms-builder.entry.js +1 -1
  190. package/dist/esm/udp-forms-follow-up-list-card.entry.js +1 -1
  191. package/dist/esm/udp-forms-list-card.entry.js +1 -1
  192. package/dist/esm/udp-forms-list.entry.js +1 -1
  193. package/dist/esm/udp-forms-renderer.entry.js +1 -1
  194. package/dist/esm/udp-forms-ui.entry.js +1 -1
  195. package/dist/esm/udp-list-renderer_3.entry.js +1 -1
  196. package/dist/esm/udp-map.entry.js +1 -1
  197. package/dist/esm/udp-page.entry.js +1 -1
  198. package/dist/esm/udp-sankey-chart.entry.js +1 -1
  199. package/dist/esm/udp-split-screen.entry.js +1 -1
  200. package/dist/esm/udp-stepper-demo.entry.js +1 -1
  201. package/dist/esm/udp-stepper.entry.js +1 -1
  202. package/dist/esm/udp-tab-panel.entry.js +20 -0
  203. package/dist/esm/udp-tab-panel.entry.js.map +1 -0
  204. package/dist/esm/udp-user-creator.entry.js +1 -1
  205. package/dist/esm/udp-vertical-spacer.entry.js +1 -1
  206. package/dist/esm/udp-xy-chart.entry.js +1 -1
  207. package/dist/esm/udp-xy-multi-series-chart.entry.js +1 -1
  208. package/dist/stencil-library/add-map-feature-popup_4.entry.js +1 -1
  209. package/dist/stencil-library/advanced-search-builder.entry.js +1 -1
  210. package/dist/stencil-library/advanced-search_50.entry.js +1 -1
  211. package/dist/stencil-library/advanced-search_50.entry.js.map +1 -1
  212. package/dist/stencil-library/ag-grid-base_5.entry.js +1 -1
  213. package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
  214. package/dist/stencil-library/chart-container_3.entry.js +1 -1
  215. package/dist/stencil-library/check-box-group.entry.js +1 -1
  216. package/dist/stencil-library/check-box.entry.js +1 -1
  217. package/dist/stencil-library/chip-section.entry.js +1 -1
  218. package/dist/stencil-library/client-side-grid_2.entry.js +1 -1
  219. package/dist/stencil-library/color-preview.entry.js +1 -1
  220. package/dist/stencil-library/date-time-renderer_6.entry.js +1 -1
  221. package/dist/stencil-library/entity-maintenance-grid.entry.js +1 -1
  222. package/dist/stencil-library/feature-details-card_2.entry.js +1 -1
  223. package/dist/stencil-library/file-upload_2.entry.js +1 -1
  224. package/dist/stencil-library/filter-group_2.entry.js +1 -1
  225. package/dist/stencil-library/{get-user-BRZVzzgG.js → get-user-BtNVBI86.js} +2 -2
  226. package/dist/stencil-library/{get-user-BRZVzzgG.js.map → get-user-BtNVBI86.js.map} +1 -1
  227. package/dist/stencil-library/get-user.entry.js +1 -1
  228. package/dist/stencil-library/image-upload_7.entry.js +1 -1
  229. package/dist/stencil-library/index-n-1ZSeAs.js +3 -0
  230. package/dist/stencil-library/index-n-1ZSeAs.js.map +1 -0
  231. package/dist/stencil-library/index.esm.js +1 -1
  232. package/dist/stencil-library/inputs-example.entry.js +1 -1
  233. package/dist/stencil-library/logical-search-indicator.entry.js +1 -1
  234. package/dist/stencil-library/map-component_2.entry.js +1 -1
  235. package/dist/stencil-library/numeric-field_5.entry.js +1 -1
  236. package/dist/stencil-library/page-renderer.entry.js +1 -1
  237. package/dist/stencil-library/question-configs-renderer_5.entry.js +1 -1
  238. package/dist/stencil-library/resource-timeline-calendar.entry.js +1 -1
  239. package/dist/stencil-library/search-method-grid.entry.js +1 -1
  240. package/dist/stencil-library/server-side-grid.entry.js +1 -1
  241. package/dist/stencil-library/simple-card.entry.js +1 -1
  242. package/dist/stencil-library/stencil-field.entry.js +1 -1
  243. package/dist/stencil-library/stencil-library.css +1 -1
  244. package/dist/stencil-library/stencil-library.esm.js +1 -1
  245. package/dist/stencil-library/test-api-updated.entry.js +1 -1
  246. package/dist/stencil-library/test-api.entry.js +1 -1
  247. package/dist/stencil-library/toggle-button.entry.js +1 -1
  248. package/dist/stencil-library/udp-adornment.entry.js +1 -1
  249. package/dist/stencil-library/udp-advanced-search-builder.entry.js +1 -1
  250. package/dist/stencil-library/udp-bar-chart_4.entry.js +1 -1
  251. package/dist/stencil-library/udp-calendar-base.entry.js +1 -1
  252. package/dist/stencil-library/udp-calendar-day.entry.js +1 -1
  253. package/dist/stencil-library/udp-calendar-month.entry.js +1 -1
  254. package/dist/stencil-library/udp-calendar-week.entry.js +1 -1
  255. package/dist/stencil-library/udp-calendar-year.entry.js +1 -1
  256. package/dist/stencil-library/udp-card-action-area.entry.js +1 -1
  257. package/dist/stencil-library/udp-card.udp-card-actions.udp-card-content.udp-card-header.udp-card-media.udp-link.entry.esm.js.map +1 -1
  258. package/dist/stencil-library/udp-card_6.entry.js +1 -1
  259. package/dist/stencil-library/udp-card_6.entry.js.map +1 -1
  260. package/dist/stencil-library/udp-charts-example.entry.js +1 -1
  261. package/dist/stencil-library/udp-chip_3.entry.js +1 -1
  262. package/dist/stencil-library/udp-container-query-grid-item.entry.js +1 -1
  263. package/dist/stencil-library/udp-container-query-grid.entry.js +1 -1
  264. package/dist/stencil-library/udp-container-query.entry.js +1 -1
  265. package/dist/stencil-library/udp-container.entry.js +1 -1
  266. package/dist/stencil-library/udp-date-range-selector.entry.js +1 -1
  267. package/dist/stencil-library/udp-dynamic-form.entry.js +1 -1
  268. package/dist/stencil-library/udp-empty-state-display.entry.js +1 -1
  269. package/dist/stencil-library/{udp-fetch-BZFtuXQx.js → udp-fetch-BGMJ3xhH.js} +2 -2
  270. package/dist/{esm/udp-fetch-BZFtuXQx.js.map → stencil-library/udp-fetch-BGMJ3xhH.js.map} +1 -1
  271. package/dist/stencil-library/udp-fetch.entry.js +1 -1
  272. package/dist/stencil-library/udp-forms-builder.entry.js +1 -1
  273. package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js +1 -1
  274. package/dist/stencil-library/udp-forms-list-card.entry.js +1 -1
  275. package/dist/stencil-library/udp-forms-list.entry.js +1 -1
  276. package/dist/stencil-library/udp-forms-renderer.entry.js +1 -1
  277. package/dist/stencil-library/udp-forms-ui.entry.js +1 -1
  278. package/dist/stencil-library/udp-list-renderer_3.entry.js +1 -1
  279. package/dist/stencil-library/udp-map.entry.js +1 -1
  280. package/dist/stencil-library/udp-page.entry.js +1 -1
  281. package/dist/stencil-library/udp-sankey-chart.entry.js +1 -1
  282. package/dist/stencil-library/udp-split-screen.entry.js +1 -1
  283. package/dist/stencil-library/udp-stepper-demo.entry.js +1 -1
  284. package/dist/stencil-library/udp-stepper.entry.js +1 -1
  285. package/dist/stencil-library/udp-tab-panel.entry.esm.js.map +1 -0
  286. package/dist/stencil-library/udp-tab-panel.entry.js +2 -0
  287. package/dist/stencil-library/udp-tab-panel.entry.js.map +1 -0
  288. package/dist/stencil-library/udp-user-creator.entry.js +1 -1
  289. package/dist/stencil-library/udp-vertical-spacer.entry.js +1 -1
  290. package/dist/stencil-library/udp-xy-chart.entry.js +1 -1
  291. package/dist/stencil-library/udp-xy-multi-series-chart.entry.js +1 -1
  292. package/dist/types/components/my-component/UI/tabs/tab/tabs/udp-tabs.d.ts +82 -2
  293. package/dist/types/components/my-component/UI/tabs/tab/udp-tab.d.ts +27 -2
  294. package/dist/types/components/my-component/UI/tabs/udp-tab-panel/udp-tab-panel.d.ts +11 -0
  295. package/dist/types/components.d.ts +132 -6
  296. package/package.json +1 -1
  297. package/dist/cjs/index-Ci0lUvCK.js.map +0 -1
  298. package/dist/components/iconMapping.js +0 -180
  299. package/dist/components/iconMapping.js.map +0 -1
  300. package/dist/esm/index-DsqSxziV.js.map +0 -1
  301. package/dist/stencil-library/index-DsqSxziV.js +0 -3
  302. package/dist/stencil-library/index-DsqSxziV.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var es = require('@carbon/icons/es');
5
5
  var udpMapUtils = require('./udp-map-utils-BXqQmr-h.js');
6
6
  var common = require('./common-By_kzIQM.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var udpOperatorHelper = require('./udpOperatorHelper-MMG_hrZS.js');
5
5
 
6
6
  const generateFilterString = (data) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var catalogStore = require('./catalog-store-yJKDPXXM.js');
5
5
  var Close24 = require('@carbon/icons/es/close/24');
6
6
  var uuid = require('uuid');
@@ -662,7 +662,7 @@ const AmbientDemoContainer = class {
662
662
  index.registerInstance(this, hostRef);
663
663
  }
664
664
  render() {
665
- return (index.h("div", { key: 'a5c238df1343ab96d334fb0b013c393835b1c11e', class: "container" }, index.h("div", { key: '8c43e8fbc425796685da07ceb134adf8e2bc0a65', class: "title-container" }, " ", index.h("unity-typography", { key: '9ea72535c3f58822abfde8260e17a1dfc97227ae', variant: "button" }, " ", this.title, " "), " "), index.h("slot", { key: '52edab7acd8f01735b9a7341b9fca3a0ae7a9508' })));
665
+ return (index.h("div", { key: 'aabd2db2a35785c49e8bce7f39ec3321814514b5', class: "container" }, index.h("div", { key: '104242d374cbb562dae2934c379384adcf689cc2', class: "title-container" }, " ", index.h("unity-typography", { key: 'ee84ba9c0176de8e4ed3a2f5521fcecf7602ebea', variant: "button" }, " ", this.title, " "), " "), index.h("slot", { key: 'f55df725728ccad67e8f191a09eff301fb26d394' })));
666
666
  }
667
667
  };
668
668
  AmbientDemoContainer.style = ambientDemoContainerCss;
@@ -4547,7 +4547,7 @@ const AppBar = class {
4547
4547
  index.registerInstance(this, hostRef);
4548
4548
  }
4549
4549
  render() {
4550
- return (index.h("div", { key: 'a96a536ce64d82b2a05a305539b0d40cb9372e14', class: "header" }, index.h("stencil-icon-button", { key: '391ce32825452e7da4bba0423b7f373b8bd9c4a4', noBackground: true, darkIcon: false, icon: Menu24__default.default }), index.h("unity-typography", { key: 'bb88b074aa8ec47ef03aeb64a0b6b23794f0296f', variant: 'data-display-one' }, " ", index.h("slot", { key: '6b7dc252193ce4b63d1a42634c81ef5a704f7581' }), " "), index.h("a", { key: 'd5bc1a1c3a12ea3d6d93b82859c81f0ea1d1845e', class: "skip-to-content", href: "#main-content" }, "Skip to main content"), index.h("div", { key: 'bc6e26c729d46424d07935029f6d9a84cb658548', class: "header__logo" }), index.h("div", { key: '3827e3e7fe86a3c6a7f15d654b70655b8b77a748', class: "header__nav", role: "navigation", "aria-label": "Carbon Design System" }), index.h("div", { key: 'b81cb8f52041214a74bd02d89f17bbdd2128463a', class: "header__global" }, index.h("udp-avatar", { key: '8c9ab84ee004cc0eb1405e7f491f4cafc4863a58', username: this.username }))));
4550
+ return (index.h("div", { key: '569816f25d9bdf9286623b9e2b7e86ecb3ddb785', class: "header" }, index.h("stencil-icon-button", { key: '2980f6a34b1321c23b709ccdc63a49b35262a41f', noBackground: true, darkIcon: false, icon: Menu24__default.default }), index.h("unity-typography", { key: '916bf7f902e71fb62694a84ddabe0ffa9638424d', variant: 'data-display-one' }, " ", index.h("slot", { key: '5e792e8680f9e11ae8de27d9ccee20c004fe9cf4' }), " "), index.h("a", { key: '6eb956082f541a38807e29dc8c18c0e5ce0e7a99', class: "skip-to-content", href: "#main-content" }, "Skip to main content"), index.h("div", { key: 'ab60340a8b921edf0dc303de7558ab5b2dd473ce', class: "header__logo" }), index.h("div", { key: '64082fa1132e127acdb00f9e6876e39d53ed03ce', class: "header__nav", role: "navigation", "aria-label": "Carbon Design System" }), index.h("div", { key: '133b4ec8621d4a2d9fd0bb7b0c9f870741bba504', class: "header__global" }, index.h("udp-avatar", { key: 'a8a35852fee5cd30832266fa88cde579c5b9d2ad', username: this.username }))));
4551
4551
  }
4552
4552
  };
4553
4553
  AppBar.style = appBarCss;
@@ -7653,7 +7653,7 @@ const DynamicContainerWithMenu = class {
7653
7653
  this.udpChipClicked.emit(chipText);
7654
7654
  }
7655
7655
  render() {
7656
- return (index.h("div", { key: '71f418211a987ee241e9037c29c4bd3204cb1836', class: "container" }, index.h("div", { key: '5da39f24ea892e4176fbedd85b3a3a6f1ee17aa4', class: "chips" }, console.log('Received data for chips via executeQwith', this.visibleChildren), this.visibleChildren && this.visibleChildren.map((child, index$1) => (index.h("stencil-chip", { color: "secondary", key: index$1, text: child.description, "show-delete": "false", externalToggleString: this.externalToggle })))), index.h("div", { key: 'af27dfc93010680c2617a7da6fb6cf6c51bb8727', class: "overflow" }, index.h("udp-pop-over", { key: '4c2a5beda6b819e7e452aecf384a82719c4a1eb7', isOpen: this.popoverOpen, anchorElement: document.getElementById('anchorElement') }, index.h("div", { key: 'd4cf442f4ee12e97517e69b883fd6c52d11c4837', class: "menu" }, this.menuChildren && this.menuChildren.map((child, index$1) => (index.h("stencil-chip", { key: index$1, text: child.label, "show-delete": "false" }, " "))))))));
7656
+ return (index.h("div", { key: '99a3ae39a56314eacb1cad4a8088f98acc52ef9d', class: "container" }, index.h("div", { key: 'cf6c29cc6fc435cadcc12f22b61246d03a3fa85b', class: "chips" }, console.log('Received data for chips via executeQwith', this.visibleChildren), this.visibleChildren && this.visibleChildren.map((child, index$1) => (index.h("stencil-chip", { color: "secondary", key: index$1, text: child.description, "show-delete": "false", externalToggleString: this.externalToggle })))), index.h("div", { key: '6f06947570a2f227909060d9cbb0c282ed219eda', class: "overflow" }, index.h("udp-pop-over", { key: '11cf2f25c44d69075d24f622c03bdd7418f037af', isOpen: this.popoverOpen, anchorElement: document.getElementById('anchorElement') }, index.h("div", { key: 'c69c2e7eadedaaa70e63da5b7e636050660dd889', class: "menu" }, this.menuChildren && this.menuChildren.map((child, index$1) => (index.h("stencil-chip", { key: index$1, text: child.label, "show-delete": "false" }, " "))))))));
7657
7657
  }
7658
7658
  get el() { return index.getElement(this); }
7659
7659
  static get watchers() { return {
@@ -8492,37 +8492,270 @@ const UdpSkeletonLoading = class {
8492
8492
  };
8493
8493
  UdpSkeletonLoading.style = udpSkeletonLoadingCss;
8494
8494
 
8495
- const udpTabCss = ".tab-panel{display:none;background-color:#ffffff}.tab-panel.active{display:block}";
8495
+ const udpTabCss = ".tab-panel{display:none}.tab-panel.active{display:block}";
8496
8496
 
8497
8497
  const UdpTab = class {
8498
8498
  constructor(hostRef) {
8499
8499
  index.registerInstance(this, hostRef);
8500
- }
8501
- activeChanged() {
8502
- // Handle the active state change, if needed
8500
+ /**
8501
+ * True if this is the active tab.
8502
+ * This is set by the parent <udp-tabs> component.
8503
+ */
8504
+ this.active = false;
8505
+ /**
8506
+ * Placement of the icon relative to the title.
8507
+ * @default 'start'
8508
+ */
8509
+ this.iconPlacement = 'start';
8510
+ /**
8511
+ * If true, the tab will be hidden from the tab list.
8512
+ * @default false
8513
+ */
8514
+ this.hidden = false;
8515
+ /**
8516
+ * If true, the tab will be unselectable.
8517
+ * @default false
8518
+ */
8519
+ this.disabled = false;
8503
8520
  }
8504
8521
  render() {
8505
- return (index.h("div", { key: '775798db38994b9a9dcfdb94a8cc588bafed47f9', class: { 'tab-panel': true, 'active': this.active } }, index.h("slot", { key: '6f67d3f672d0600eeb84b9dfcc2c12f2fc931ef7' })));
8522
+ return (index.h("div", { key: '0dbc41862f8bb01ecfec94ca44f082f0e4e7104f', class: { 'tab-panel': true, 'active': this.active }, role: "tabpanel" }, index.h("slot", { key: 'facc5f18260ea67c405dca1a90dcdc48e5ec995c' })));
8506
8523
  }
8507
- static get watchers() { return {
8508
- "active": ["activeChanged"]
8509
- }; }
8510
8524
  };
8511
8525
  UdpTab.style = udpTabCss;
8512
8526
 
8513
- const udpTabsCss = ".tab-header{display:flex;background-color:#ffffff;border-bottom:1px solid #e0e0e0}.tab-header button{flex-grow:1;padding:16px;font-size:14px;text-align:center;border:none;background:none;cursor:pointer;outline:none;transition:all 0.3s ease}.tab-header button.active{border-bottom:2px solid 'var(--secondary-color)';font-weight:600}.tab-content{display:flex;flex-direction:column;padding:16px;background-color:#ffffff}.tab-header button{cursor:pointer;border:none;padding:16px;background-color:transparent;color:#757575}.tab-header button.active{border-bottom:2px solid #344861;color:#344861;font-weight:600}";
8527
+ const udpTabsCss = ".tab-container{display:flex;flex-direction:column}.tab-header{background-color:#ffffff;position:relative;display:flex;align-items:center}.tab-scroll-container{display:flex;position:relative;overflow-x:auto;overflow-y:hidden;flex:1;min-width:0}.tab-scroll-container::-webkit-scrollbar{height:4px}.tab-scroll-container::-webkit-scrollbar-track{background:transparent}.tab-scroll-container::-webkit-scrollbar-thumb{background-color:rgba(0, 0, 0, 0.2);border-radius:4px}.tab-scroll-container::-webkit-scrollbar-thumb:hover{background-color:rgba(0, 0, 0, 0.3)}.tab-header::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--divider-color, #e0e0e0)}.tab-header button{padding:16px;font-size:14px;text-align:center;border:none;background:none;cursor:pointer;outline:none;transition:all 0.22s ease;color:#555555;font-weight:600;opacity:0.9;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:8px}.tab-header.fill .tab-scroll-container{width:100%}.tab-header.fill .tab-scroll-container button{flex-grow:1}.tab-header button.active{color:var(--secondary-color, #344861);opacity:1.0}.tab-header button.scroll-arrow{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;width:40px;padding:0;background:#ffffff;cursor:pointer;font-size:16px;font-weight:bold;color:#757575;z-index:2;transition:color 0.2s ease;flex-shrink:0;opacity:1;gap:0}.tab-header button.scroll-arrow:hover{color:#000}.tab-header button.scroll-arrow.left{left:0}.tab-header button.scroll-arrow.right{right:0}.scroll-fade{position:absolute;top:0;bottom:0;width:30px;z-index:1;pointer-events:none}.scroll-fade.left{left:40px;background:linear-gradient(\n to right,\n #ffffff,\n rgba(255, 255, 255, 0)\n )}.scroll-fade.right{right:40px;background:linear-gradient(\n to left,\n #ffffff,\n rgba(255, 255, 255, 0)\n )}.tab-header button udp-icon{font-size:1.2em;line-height:1}.tab-header button.icon-start{flex-direction:row}.tab-header button.icon-end{flex-direction:row-reverse}.tab-header button.icon-top{flex-direction:column;gap:4px}.tab-header button.icon-bottom{flex-direction:column-reverse;gap:4px}.slider{position:absolute;bottom:0;left:0;height:2px;background-color:var(--secondary-color, #344861);transition:transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n width 0.22s cubic-bezier(0.4, 0, 0.2, 1);z-index:1}.tab-header button.disabled{opacity:0.5;cursor:not-allowed}.tab-header button.disabled.active{color:#757575;opacity:0.5}";
8514
8528
 
8515
8529
  const UdpTabs = class {
8516
8530
  constructor(hostRef) {
8517
8531
  index.registerInstance(this, hostRef);
8518
- this.activeTab = 0;
8532
+ this.udpTabChange = index.createEvent(this, "udpTabChange");
8533
+ /**
8534
+ * Specifies the layout variant of the tab header.
8535
+ *
8536
+ * - `'standard'`: Tabs will be sized based on their content.
8537
+ * - `'fill'`: Tabs will stretch to fill the available horizontal space.
8538
+ */
8539
+ this.variant = 'fill';
8540
+ /**
8541
+ * (Optional) An array of tab configuration objects.
8542
+ * If provided, this will be used to render tabs instead of slotted `<udp-tab>` components.
8543
+ * This mode is typically used with controlled tabs.
8544
+ */
8545
+ this.tabs = [];
8546
+ this.internalActiveTab = 0; // For uncontrolled mode
8547
+ this.tabDetails = []; // Unified details from prop or slot
8548
+ this.sliderStyle = {
8549
+ width: '0',
8550
+ transform: 'translateX(0)',
8551
+ };
8552
+ this.showScrollLeft = false;
8553
+ this.showScrollRight = false;
8554
+ this.slottedTabs = []; // Renamed from `tabs`
8555
+ this.buttonRefs = [];
8556
+ }
8557
+ /**
8558
+ * Returns true if the component is in controlled mode.
8559
+ */
8560
+ get isControlled() {
8561
+ return this.value != null;
8562
+ }
8563
+ /**
8564
+ * Returns true if tabs are being provided by the `tabs` prop.
8565
+ */
8566
+ get useTabsProp() {
8567
+ return this.tabs && this.tabs.length > 0;
8568
+ }
8569
+ /**
8570
+ * Returns the currently active tab index,
8571
+ * respecting controlled or uncontrolled mode.
8572
+ */
8573
+ get activeTab() {
8574
+ return this.isControlled ? this.value : this.internalActiveTab;
8575
+ }
8576
+ handleSlotChange() {
8577
+ // If we're using the tabs prop, slot changes are irrelevant
8578
+ if (this.useTabsProp)
8579
+ return;
8580
+ this.initializeTabs();
8581
+ }
8582
+ handleResize() {
8583
+ requestAnimationFrame(() => {
8584
+ this.updateSliderPosition();
8585
+ this.checkScroll();
8586
+ });
8587
+ }
8588
+ componentDidLoad() {
8589
+ this.initializeTabs();
8590
+ }
8591
+ /**
8592
+ * Watcher for uncontrolled state changes.
8593
+ */
8594
+ onActiveTabChange(newValue) {
8595
+ this.updateActiveTabs();
8596
+ this.updateSliderPosition();
8597
+ this.scrollTabIntoView(newValue);
8598
+ }
8599
+ /**
8600
+ * Watcher for controlled state changes.
8601
+ */
8602
+ onValueChange(newValue) {
8603
+ this.updateActiveTabs();
8604
+ this.updateSliderPosition();
8605
+ this.scrollTabIntoView(newValue);
8606
+ }
8607
+ /**
8608
+ * Watcher for tabs prop changes.
8609
+ */
8610
+ onTabsPropChange() {
8611
+ this.initializeTabs();
8612
+ }
8613
+ onVariantChange() {
8614
+ requestAnimationFrame(() => {
8615
+ this.updateSliderPosition();
8616
+ this.checkScroll();
8617
+ });
8618
+ }
8619
+ initializeTabs() {
8620
+ var _a, _b;
8621
+ this.buttonRefs = [];
8622
+ if (this.useTabsProp) {
8623
+ // --- Prop-based ---
8624
+ this.tabDetails = this.tabs.map(t => (Object.assign({}, t))); // Use data from prop
8625
+ this.slottedTabs = []; // Ensure we're not tracking slotted tabs
8626
+ }
8627
+ else {
8628
+ // --- Slot-based ---
8629
+ this.slottedTabs = Array.from(this.el.children).filter((child) => child.tagName.toLowerCase() === 'udp-tab');
8630
+ this.tabDetails = this.slottedTabs.map(tab => ({
8631
+ label: tab.label,
8632
+ icon: tab.icon,
8633
+ iconPlacement: tab.iconPlacement,
8634
+ hidden: tab.hidden,
8635
+ disabled: tab.disabled,
8636
+ }));
8637
+ }
8638
+ // --- Common Logic ---
8639
+ // In uncontrolled mode, check if the default active tab is invalid.
8640
+ if (!this.isControlled) {
8641
+ if (((_a = this.tabDetails[this.internalActiveTab]) === null || _a === void 0 ? void 0 : _a.hidden) || ((_b = this.tabDetails[this.internalActiveTab]) === null || _b === void 0 ? void 0 : _b.disabled)) {
8642
+ const firstValidIndex = this.tabDetails.findIndex(tab => !tab.hidden && !tab.disabled);
8643
+ this.internalActiveTab = firstValidIndex > -1 ? firstValidIndex : 0;
8644
+ }
8645
+ }
8646
+ this.updateActiveTabs();
8647
+ requestAnimationFrame(() => {
8648
+ this.updateSliderPosition();
8649
+ this.checkScroll();
8650
+ });
8651
+ }
8652
+ updateActiveTabs() {
8653
+ // Only update slotted tabs if we're in slot mode
8654
+ if (!this.useTabsProp) {
8655
+ const currentActiveTab = this.activeTab;
8656
+ this.slottedTabs.forEach((tab, index) => {
8657
+ tab.active = index === currentActiveTab;
8658
+ });
8659
+ }
8660
+ // If in prop mode, the <button> 'active' class is handled by render()
8661
+ }
8662
+ updateSliderPosition() {
8663
+ const activeButton = this.buttonRefs[this.activeTab]; // Use getter
8664
+ if (!activeButton) {
8665
+ this.sliderStyle = { width: '0px', transform: 'translateX(0px)' };
8666
+ return;
8667
+ }
8668
+ this.sliderStyle = {
8669
+ width: `${activeButton.offsetWidth}px`,
8670
+ transform: `translateX(${activeButton.offsetLeft}px)`,
8671
+ };
8672
+ }
8673
+ checkScroll() {
8674
+ if (!this.scrollContainerRef)
8675
+ return;
8676
+ const { scrollLeft, scrollWidth, clientWidth } = this.scrollContainerRef;
8677
+ const isOverflowing = scrollWidth > clientWidth;
8678
+ this.showScrollLeft = isOverflowing && scrollLeft > 1;
8679
+ this.showScrollRight = isOverflowing && scrollLeft < scrollWidth - clientWidth - 1;
8519
8680
  }
8520
8681
  tabClicked(tabIndex) {
8521
- this.activeTab = tabIndex;
8682
+ var _a;
8683
+ if ((_a = this.tabDetails[tabIndex]) === null || _a === void 0 ? void 0 : _a.disabled) {
8684
+ return;
8685
+ }
8686
+ if (this.isControlled) {
8687
+ // In controlled mode, emit the event for the parent to handle.
8688
+ // The `onValueChange` watcher will handle UI updates when the prop changes.
8689
+ this.udpTabChange.emit(tabIndex);
8690
+ }
8691
+ else {
8692
+ // In uncontrolled mode, update state directly.
8693
+ // The `onActiveTabChange` watcher will handle UI updates.
8694
+ this.internalActiveTab = tabIndex;
8695
+ }
8696
+ }
8697
+ scrollTabIntoView(tabIndex) {
8698
+ const tabButton = this.buttonRefs[tabIndex];
8699
+ const container = this.scrollContainerRef;
8700
+ if (!tabButton || !container)
8701
+ return;
8702
+ const { scrollLeft, clientWidth } = container;
8703
+ const tabLeft = tabButton.offsetLeft;
8704
+ const tabRight = tabLeft + tabButton.offsetWidth;
8705
+ const safeZonePadding = 70;
8706
+ const safeZoneLeft = scrollLeft + safeZonePadding;
8707
+ const safeZoneRight = scrollLeft + clientWidth - safeZonePadding;
8708
+ if (tabLeft < safeZoneLeft) {
8709
+ container.scrollTo({
8710
+ left: tabLeft - safeZonePadding,
8711
+ behavior: 'smooth',
8712
+ });
8713
+ }
8714
+ else if (tabRight > safeZoneRight) {
8715
+ container.scrollTo({
8716
+ left: tabRight - clientWidth + safeZonePadding,
8717
+ behavior: 'smooth',
8718
+ });
8719
+ }
8720
+ }
8721
+ scrollToStart() {
8722
+ if (!this.scrollContainerRef)
8723
+ return;
8724
+ this.scrollContainerRef.scrollTo({ left: 0, behavior: 'smooth' });
8725
+ }
8726
+ scrollToEnd() {
8727
+ if (!this.scrollContainerRef)
8728
+ return;
8729
+ const container = this.scrollContainerRef;
8730
+ const { scrollWidth, clientWidth } = container;
8731
+ const maxScrollLeft = scrollWidth - clientWidth;
8732
+ container.scrollTo({ left: maxScrollLeft, behavior: 'smooth' });
8522
8733
  }
8523
8734
  render() {
8524
- return (index.h("div", { key: '11b569eb074151f849159aa15af92129c8992929' }, index.h("div", { key: '3c6d9178dd37fd5fd5b91ec44e287241ee256e1c', class: "tab-header" }, index.h("slot", { key: 'e9289d5d3fa6e2da92b81de71e55276b3455f37c', name: "tab-title" })), index.h("div", { key: 'ed2038f48697251f5dfd3856d26711313376af10' }, index.h("slot", { key: '2b6d109cef169e2f50fb876387efc334464dc9da' }))));
8735
+ const currentActiveTab = this.activeTab; // Use getter
8736
+ return (index.h("div", { key: 'dd8ac7e3d101993b8df00c97bf561e2502e9f3c1', class: "tab-container" }, index.h("div", { key: '5f70a5c0da906152b130f6eaa98b81bf80485920', class: `tab-header ${this.variant}` }, this.showScrollLeft && (index.h("button", { key: 'e1a3a7d3650ae3703734a51b251600bf12dbed0c', class: "scroll-arrow left", onClick: () => this.scrollToStart(), "aria-label": "Scroll to first tab" }, index.h("udp-icon", { key: '36e6294b1a775a30906cc0236f8104ad03998c01', iconName: "chevronLeft16", color: "inherit" }))), this.showScrollLeft && index.h("div", { key: '8dca0bd111f13c1890fbc010efbabb2aa0440c13', class: "scroll-fade left" }), index.h("div", { key: '966f761c7f3cc45eb5b6737e8dbb63dc75a68325', class: "tab-scroll-container", ref: el => (this.scrollContainerRef = el), onScroll: () => this.checkScroll() }, this.tabDetails.map((tab, index$1) => {
8737
+ if (tab.hidden) {
8738
+ return null;
8739
+ }
8740
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
8741
+ const iconEl = tab.icon ? index.h("udp-icon", { iconName: tab.icon, color: 'inherit' }) : null;
8742
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
8743
+ const labelEl = index.h("span", null, tab.label);
8744
+ return (index.h("button", { class: {
8745
+ 'active': index$1 === currentActiveTab,
8746
+ 'has-icon': !!tab.icon,
8747
+ [`icon-${tab.iconPlacement}`]: !!tab.icon,
8748
+ 'disabled': tab.disabled,
8749
+ }, disabled: tab.disabled, onClick: () => this.tabClicked(index$1), role: "tab", "aria-selected": index$1 === currentActiveTab ? 'true' : 'false', "aria-disabled": tab.disabled ? 'true' : 'false', ref: el => (this.buttonRefs[index$1] = el) }, iconEl, labelEl));
8750
+ }), index.h("div", { key: 'df383b17c3e36fc7f261ff6a6c1220a4f923477f', class: "slider", style: this.sliderStyle })), this.showScrollRight && index.h("div", { key: '7f8ae28f6662266a113adbb7ca40a4ef7d0b8427', class: "scroll-fade right" }), this.showScrollRight && (index.h("button", { key: '0ad034fb7dc24388476e0c37bc9cf4196f4145bc', class: "scroll-arrow right", onClick: () => this.scrollToEnd(), "aria-label": "Scroll to last tab" }, index.h("udp-icon", { key: '4cdbf5880b2e30dc6541228323a31e2dd34eabae', iconName: "chevronRight16", color: "inherit" })))), !this.isControlled && !this.useTabsProp && (index.h("div", { key: '2097c674562eb5acfdadda5a05e6f2eed8821f99' }, index.h("slot", { key: '375c96eb85f6581426f72bf1c544538df4c6fdd6' })))));
8525
8751
  }
8752
+ get el() { return index.getElement(this); }
8753
+ static get watchers() { return {
8754
+ "internalActiveTab": ["onActiveTabChange"],
8755
+ "value": ["onValueChange"],
8756
+ "tabs": ["onTabsPropChange"],
8757
+ "variant": ["onVariantChange"]
8758
+ }; }
8526
8759
  };
8527
8760
  UdpTabs.style = udpTabsCss;
8528
8761
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var agGridCommunityV33 = require('ag-grid-community-v33');
5
5
  var agGridEnterpriseV33 = require('ag-grid-enterprise-v33');
6
6
  var apiUtils = require('./apiUtils-DT-fLJOw.js');
@@ -1084,7 +1084,7 @@ const GhostRender = class {
1084
1084
  // The <slot /> is necessary to prevent the Stencil compiler from
1085
1085
  // overly optimizing this component's output and aliasing the
1086
1086
  // defineCustomElement export, which breaks downstream wrappers.
1087
- return (index.h(index.Host, { key: '02fc2687cd43c93172cc0e626810724b3933fc25' }, index.h("slot", { key: 'c240aa0ccde1c38e5d80a0cd89f5608b8c608636' })));
1087
+ return (index.h(index.Host, { key: '1e77fbfc7ab0bc5ca00ee2351f547ef3d752f7c9' }, index.h("slot", { key: '092e556509b9c77f9c54da22fd41ed35c2ce65b2' })));
1088
1088
  }
1089
1089
  };
1090
1090
  GhostRender.style = ":host {\n display: none;\n }";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
5
5
  var isEqual = require('lodash/isEqual');
6
6
  var configureUdpColumnMods = require('./configureUdpColumnMods-CQMOB8IW.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var ChevronDown = require('@carbon/icons/es/chevron--down/16');
5
5
  var ChevronUp16 = require('@carbon/icons/es/chevron--up/16');
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var icons = require('@carbon/icons');
5
5
  var lodash = require('lodash');
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
 
5
5
  const checkBoxCss = ".checkbox-container{display:flex;align-items:center}.checkbox-container input[type=\"checkbox\"]{margin-right:8px}";
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
 
5
5
  const chipSectionCss = ".wrapper{display:flex;gap:8px;flex-wrap:no-wrap;align-items:center;flex-grow:1;width:100%;}.chipHolder{display:flex;gap:8px;flex-wrap:no-wrap;align-items:center;flex:1 1 auto;overflow:scroll}.chipHolder::-webkit-scrollbar{display:none}.viewChip{background-color:var(--primary-color);color:white;max-width:150px;transition:opacity 0.3s ease}.filterChipMenuIcon{background:grey;padding:8px;color:#3f51b5;}.additionalFilterChip{}.KPI{margin-left:auto;display:flex;gap:8px;color:grey;width:auto}.kpiValue{color:black;font-size:1.1em}.kpiItem{display:flex;justify-content:center;width:max-content}.kpiLabel{width:max-content;margin-right:8px;}.clickedChip{background-color:var(--primary-color);color:white;max-width:150px}";
6
6
 
@@ -100,13 +100,13 @@ const ChipSection = class {
100
100
  }
101
101
  render() {
102
102
  console.log("Rendering ChipSection", this.visibleFilterChips);
103
- return (index.h("div", { key: '97503932df8fda4b368905a88e8aa1e3ef601443', class: "wrapper", id: "chipSectionContainer" }, index.h("div", { key: '57814e45ad3c18bc0e63000c117843b2b05d61ef', class: "chipHolder" }, index.h("div", { key: 'ec26227bf3af968aca95ebdcd8ac8f9128f8bb62', id: "viewChipsContainer" }, this.viewChips.map((chip, index$1) => (index.h("stencil-chip", { onOnDelete: () => this.handleDelete('view', index$1), text: chip.label, class: "viewChip" })))), index.h("udp-dynamic-container-with-menu", { key: '592e4853cd0a478e8779e591392e99928cd2f243', id: "filterChipsContainer", menuItems: this.menuItems }, this.selectedFilterChip && (index.h("stencil-chip", { key: '90b22a6f40be859668bdb1b878b446029929d0d3', onOnDelete: this.handleFilterChipUntoggle, text: this.selectedFilterChip.label, class: "viewChip" })), console.log('filtering here...', this.filterChips), this.filterChips.map((chip) => {
103
+ return (index.h("div", { key: '567b5925fcedb62ecf4f0435b7a564da46e21465', class: "wrapper", id: "chipSectionContainer" }, index.h("div", { key: '41c9dfc9f98d2d2d42261d1a28a6755faea2def9', class: "chipHolder" }, index.h("div", { key: 'aef7cada00ecb04c01a80967a07871ced2f8fe29', id: "viewChipsContainer" }, this.viewChips.map((chip, index$1) => (index.h("stencil-chip", { onOnDelete: () => this.handleDelete('view', index$1), text: chip.label, class: "viewChip" })))), index.h("udp-dynamic-container-with-menu", { key: 'c82f515501ffdc2e33e4b147f370c3e88302afbb', id: "filterChipsContainer", menuItems: this.menuItems }, this.selectedFilterChip && (index.h("stencil-chip", { key: '760c303eb392690316ea61e466ea70f2e3c32c6c', onOnDelete: this.handleFilterChipUntoggle, text: this.selectedFilterChip.label, class: "viewChip" })), console.log('filtering here...', this.filterChips), this.filterChips.map((chip) => {
104
104
  if (this.selectedFilterChip && chip.id === this.selectedFilterChip.id) {
105
105
  console.log('returning null...');
106
106
  return null;
107
107
  }
108
108
  return (index.h("stencil-chip", { text: `${chip.label} ${chip.value}`, class: "filterChip", onClick: () => this.handleFilterChipToggle(chip) }));
109
- })), index.h("div", { key: '3fcf40061e51d798ebad3024ec893cbcd1fcff2c', id: "additionalFilterChipsContainer" }, this.additionalFilterChips.map((chip, index$1) => (index.h("stencil-chip", { onOnDelete: () => this.handleDelete('additionalFilter', index$1), text: chip.label, class: "additionalFilterChip" })))), !this.hideKpiSection && (index.h("div", { key: 'b038933ee9d50d99c13c7dae2dababd5c4ede139', class: "KPI", id: "kpiContainer" }, this.kpiValues.slice(0, this.maxKPIsDisplayed).map((kpi) => (index.h("div", { class: "kpiItem" }, index.h("span", { class: "kpiLabel" }, this.abbreviateLabel(kpi.label) || kpi.label), index.h("span", { class: "kpiValue" }, this.abbrNum(kpi.value, 1))))))))));
109
+ })), index.h("div", { key: '3651cb76022e5b363edd49428df66638114b52dc', id: "additionalFilterChipsContainer" }, this.additionalFilterChips.map((chip, index$1) => (index.h("stencil-chip", { onOnDelete: () => this.handleDelete('additionalFilter', index$1), text: chip.label, class: "additionalFilterChip" })))), !this.hideKpiSection && (index.h("div", { key: '931110b82bf127b6a571a8b312e4d21a691423ef', class: "KPI", id: "kpiContainer" }, this.kpiValues.slice(0, this.maxKPIsDisplayed).map((kpi) => (index.h("div", { class: "kpiItem" }, index.h("span", { class: "kpiLabel" }, this.abbreviateLabel(kpi.label) || kpi.label), index.h("span", { class: "kpiValue" }, this.abbrNum(kpi.value, 1))))))))));
110
110
  }
111
111
  get el() { return index.getElement(this); }
112
112
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var ChevronLeft16 = require('@carbon/icons/es/chevron--left/16');
5
5
  var ChevronRight24 = require('@carbon/icons/es/chevron--right/16');
6
6
  var iconUtils = require('./iconUtils-Bfr2fT9-.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
 
5
5
  const colorPreviewCss = ".sc-color-preview-h{display:block;padding:2rem}.container.sc-color-preview{display:flex;flex-direction:column;gap:2rem}.theme-section.sc-color-preview,.status-section.sc-color-preview{display:flex;flex-wrap:wrap;gap:2rem}.theme-section.sc-color-preview>div.sc-color-preview{width:100%;display:flex;gap:2rem;flex-wrap:wrap}.color-section.sc-color-preview{min-width:300px;flex:1}.color-grid.sc-color-preview{display:grid;gap:1rem;margin-top:1rem}.color-box.sc-color-preview{padding:1rem;border-radius:var(--border-radius);min-height:60px;display:flex;align-items:center;justify-content:center;text-align:center;font-family:var(--font-family);font-size:0.875rem;box-shadow:var(--elevation-01)}";
6
6
 
@@ -18,7 +18,7 @@ const ColorPreview = class {
18
18
  return (index.h("div", { class: "color-section" }, index.h("unity-typography", { variant: "h4" }, title), index.h("div", { class: "color-grid" }, this.renderColorBox(`--${prefix}-color-main`, `--${prefix}-contrast-text`), this.renderColorBox(`--${prefix}-color-dark`, `--${prefix}-contrast-text`), this.renderColorBox(`--${prefix}-color-light`, `--${prefix}-contrast-text`), this.renderColorBox(`--${prefix}-color-hint`, `--${prefix}-contrast-text`))));
19
19
  }
20
20
  render() {
21
- return (index.h("div", { key: 'b9d28659e92e4fd4211283ad8d9d4cc4b89227a1', class: "container" }, index.h("unity-typography", { key: '6ae71d5e546969c04e3b517879dc8798de6758e5', variant: "h2" }, "Unity Theme"), index.h("div", { key: 'bbf373dff37916ac06bd3c525e2e6894a6d1f959', class: "theme-section" }, index.h("div", { key: '53a93b2d6d105871218fbcf099af2db67da759c2', class: "unity-theme" }, this.renderColorSection('Primary Colors', 'primary'), this.renderColorSection('Secondary Colors', 'secondary'))), index.h("unity-typography", { key: '7f11dcbeeddd63cf3f2fb8967c1c998b56cca28f', variant: "h2" }, "SAP Theme"), index.h("div", { key: '8211f3c961758b530fc65181376a79f8a01db13a', class: "theme-section" }, index.h("div", { key: '8fd5fe3896c6b36660348745da33208fd313b99c', class: "sap-theme" }, this.renderColorSection('Primary Colors', 'primary'), this.renderColorSection('Secondary Colors', 'secondary'))), index.h("unity-typography", { key: 'b0e1469eba809cad5ce5960fb7e57cc8997fa12f', variant: "h2" }, "Status Colors"), index.h("div", { key: '44cddcae4395207ab6c027c7b97a5dc507fd501c', class: "status-section" }, this.renderStatusSection('Success', 'success'), this.renderStatusSection('Error', 'error'), this.renderStatusSection('Warning', 'warning'), this.renderStatusSection('Info', 'info'), this.renderStatusSection('Note', 'note'))));
21
+ return (index.h("div", { key: '98a80f4e8502dd50d6f8f76a74196d1306456ddb', class: "container" }, index.h("unity-typography", { key: '70dfefd7b9032e0bea9ac6bd1c38e737ece1e034', variant: "h2" }, "Unity Theme"), index.h("div", { key: 'cdd7efeb53f12d6363e1ff391708eaeeb2cd89ab', class: "theme-section" }, index.h("div", { key: 'c698420ae9fb2fa3ca1067aa12f388ddccf5a566', class: "unity-theme" }, this.renderColorSection('Primary Colors', 'primary'), this.renderColorSection('Secondary Colors', 'secondary'))), index.h("unity-typography", { key: 'c2cadbc40e7a4d1af6395ee98c2021af275e5187', variant: "h2" }, "SAP Theme"), index.h("div", { key: 'ce4312afaedc584183c85e356dad6c050bd13164', class: "theme-section" }, index.h("div", { key: '7460ef49884a7dd3a7c4e5e4c46dbd65d367b44a', class: "sap-theme" }, this.renderColorSection('Primary Colors', 'primary'), this.renderColorSection('Secondary Colors', 'secondary'))), index.h("unity-typography", { key: '110cdc21e09f0089365989ba4f7af4a38225f7cb', variant: "h2" }, "Status Colors"), index.h("div", { key: '15b1b26a27b44cef9da3de647dfed23c5744300f', class: "status-section" }, this.renderStatusSection('Success', 'success'), this.renderStatusSection('Error', 'error'), this.renderStatusSection('Warning', 'warning'), this.renderStatusSection('Info', 'info'), this.renderStatusSection('Note', 'note'))));
22
22
  }
23
23
  };
24
24
  ColorPreview.style = colorPreviewCss;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var enums = require('./enums-CCTE5CDK.js');
5
5
  var iconUtils = require('./iconUtils-Bfr2fT9-.js');
6
6
  var udpFormsBuilderQuestionTemplate = require('./udp-forms-builder-question-template-DZsst2LG.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var apiUtils = require('./apiUtils-DT-fLJOw.js');
5
5
  require('deep-equal');
6
6
  require('./makeApiCall-CFfg9gI0.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var Close24 = require('@carbon/icons/es/close/24');
5
5
  var OverflowMenuVertical24 = require('@carbon/icons/es/overflow-menu--vertical/16');
6
6
  var iconUtils = require('./iconUtils-Bfr2fT9-.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var Close24 = require('@carbon/icons/es/close/24');
5
5
  var axios = require('axios');
6
6
  var udpDriveUtils = require('./udp-drive-utils-B8uPAKzW.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var udpOperatorHelper = require('./udpOperatorHelper-MMG_hrZS.js');
5
5
  var udpFieldHelper = require('./udpFieldHelper-0jB0kwFN.js');
6
6
  var iconUtils = require('./iconUtils-Bfr2fT9-.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var axios = require('axios');
5
5
  var jwtDecode = require('jwt-decode');
6
6
  var configService = require('./configService-BmGAegZf.js');
@@ -83,6 +83,6 @@ const GetUser = class {
83
83
  };
84
84
 
85
85
  exports.GetUser = GetUser;
86
- //# sourceMappingURL=get-user-CljYNKAA.js.map
86
+ //# sourceMappingURL=get-user-DFb8yrQ2.js.map
87
87
 
88
- //# sourceMappingURL=get-user-CljYNKAA.js.map
88
+ //# sourceMappingURL=get-user-DFb8yrQ2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-CljYNKAA.js","sources":["src/udp-utilities/api-udp/get-user.tsx"],"sourcesContent":["import { Component, State, Event, EventEmitter, Prop } from '@stencil/core';\nimport axios from 'axios';\nimport { jwtDecode } from 'jwt-decode';\nimport { ConfigService } from '../api-config';\n\n//import { accessToken } from '../testAuth/manualAccessToken';\n\ninterface DecodedToken {\n exp: number;\n eid?: string;\n sub: string;\n // Add other expected fields here\n}\n\ninterface ApiConfig {\n method: string;\n [key: string]: any;\n}\n\n@Component({\n tag: 'get-user',\n})\nexport class GetUser {\n @Prop() accessToken: string;\n @State() loading: boolean = false;\n @State() userInfo: any = {};\n @State() unityUserInfo: any = {};\n @Event() userDataReady: EventEmitter;\n\n configBaseURL = ConfigService.securityV1ApiUrl;\n\n async getAccessToken(): Promise<string> {\n return this.accessToken;\n }\n\n async apiMutate(baseURL: string, url: string, config: ApiConfig): Promise<any> {\n const fullURL = `${baseURL}/${url}`;\n //const accessToken = await this.getAccessToken();\n const headers = {\n // Authorization: `Bearer ${accessToken}`,\n // Add other headers as needed\n };\n return axios({\n url: fullURL,\n headers,\n ...config,\n }).catch(error => {\n if (error.response) {\n }\n });\n }\n\n async componentWillLoad() {\n await this.getUserInfo();\n // Emit the event when user data is ready\n this.userDataReady.emit(this.userInfo);\n }\n\n async getUserInfo() {\n const accessToken = await this.getAccessToken(); // Hardcoded for now\n if (!accessToken) return;\n\n this.loading = true;\n\n const decodedToken: DecodedToken = jwtDecode<DecodedToken>(accessToken);\n const sub = decodedToken.eid ?? decodedToken.sub;\n\n let unityResponse: any;\n\n try {\n unityResponse = await this.apiMutate(this.configBaseURL, `users/unityuser?sub=${sub}`, {\n method: 'get',\n });\n // Do something with the unityResponse here, e.g., storing the tenant.\n console.log('unityResponse', unityResponse);\n console.log('tenant', unityResponse.data.tenantIds[0]);\n } catch (e) {\n console.log(e);\n this.userInfo = {\n /* ...emptyUser, statusCode: e?.response?.status */\n };\n }\n\n let unityUserResponse: any;\n try {\n unityUserResponse = await this.apiMutate(\n // process.env.REACT_APP_USER_API_BASE!,\n this.configBaseURL,\n `users/${sub}`,\n {\n method: 'get',\n },\n );\n if (unityUserResponse) {\n this.unityUserInfo = {\n ...unityUserResponse.data,\n unityId: sub,\n displayName: `${unityUserResponse.data.givenName} ${unityUserResponse.data.surname}`,\n };\n }\n } catch (e) {\n console.log(e);\n }\n\n if (unityResponse) {\n this.userInfo = {\n ...unityResponse.data,\n statusCode: unityResponse.status,\n id: unityResponse.data.userId,\n };\n\n // Emit the event when user data is ready\n this.userDataReady.emit(this.userInfo);\n }\n\n this.loading = false;\n }\n}\n"],"names":["ConfigService","axios","jwtDecode"],"mappings":"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"}
1
+ {"version":3,"file":"get-user-DFb8yrQ2.js","sources":["src/udp-utilities/api-udp/get-user.tsx"],"sourcesContent":["import { Component, State, Event, EventEmitter, Prop } from '@stencil/core';\nimport axios from 'axios';\nimport { jwtDecode } from 'jwt-decode';\nimport { ConfigService } from '../api-config';\n\n//import { accessToken } from '../testAuth/manualAccessToken';\n\ninterface DecodedToken {\n exp: number;\n eid?: string;\n sub: string;\n // Add other expected fields here\n}\n\ninterface ApiConfig {\n method: string;\n [key: string]: any;\n}\n\n@Component({\n tag: 'get-user',\n})\nexport class GetUser {\n @Prop() accessToken: string;\n @State() loading: boolean = false;\n @State() userInfo: any = {};\n @State() unityUserInfo: any = {};\n @Event() userDataReady: EventEmitter;\n\n configBaseURL = ConfigService.securityV1ApiUrl;\n\n async getAccessToken(): Promise<string> {\n return this.accessToken;\n }\n\n async apiMutate(baseURL: string, url: string, config: ApiConfig): Promise<any> {\n const fullURL = `${baseURL}/${url}`;\n //const accessToken = await this.getAccessToken();\n const headers = {\n // Authorization: `Bearer ${accessToken}`,\n // Add other headers as needed\n };\n return axios({\n url: fullURL,\n headers,\n ...config,\n }).catch(error => {\n if (error.response) {\n }\n });\n }\n\n async componentWillLoad() {\n await this.getUserInfo();\n // Emit the event when user data is ready\n this.userDataReady.emit(this.userInfo);\n }\n\n async getUserInfo() {\n const accessToken = await this.getAccessToken(); // Hardcoded for now\n if (!accessToken) return;\n\n this.loading = true;\n\n const decodedToken: DecodedToken = jwtDecode<DecodedToken>(accessToken);\n const sub = decodedToken.eid ?? decodedToken.sub;\n\n let unityResponse: any;\n\n try {\n unityResponse = await this.apiMutate(this.configBaseURL, `users/unityuser?sub=${sub}`, {\n method: 'get',\n });\n // Do something with the unityResponse here, e.g., storing the tenant.\n console.log('unityResponse', unityResponse);\n console.log('tenant', unityResponse.data.tenantIds[0]);\n } catch (e) {\n console.log(e);\n this.userInfo = {\n /* ...emptyUser, statusCode: e?.response?.status */\n };\n }\n\n let unityUserResponse: any;\n try {\n unityUserResponse = await this.apiMutate(\n // process.env.REACT_APP_USER_API_BASE!,\n this.configBaseURL,\n `users/${sub}`,\n {\n method: 'get',\n },\n );\n if (unityUserResponse) {\n this.unityUserInfo = {\n ...unityUserResponse.data,\n unityId: sub,\n displayName: `${unityUserResponse.data.givenName} ${unityUserResponse.data.surname}`,\n };\n }\n } catch (e) {\n console.log(e);\n }\n\n if (unityResponse) {\n this.userInfo = {\n ...unityResponse.data,\n statusCode: unityResponse.status,\n id: unityResponse.data.userId,\n };\n\n // Emit the event when user data is ready\n this.userDataReady.emit(this.userInfo);\n }\n\n this.loading = false;\n }\n}\n"],"names":["ConfigService","axios","jwtDecode"],"mappings":";;;;;;;;;;;MAsBa,OAAO,GAAA,MAAA;AAHpB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAKW,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;AACxB,QAAA,IAAQ,CAAA,QAAA,GAAQ,EAAE;AAClB,QAAA,IAAa,CAAA,aAAA,GAAQ,EAAE;AAGhC,QAAA,IAAA,CAAA,aAAa,GAAGA,2BAAa,CAAC,gBAAgB;AAwF/C;AAtFC,IAAA,MAAM,cAAc,GAAA;QAClB,OAAO,IAAI,CAAC,WAAW;;AAGzB,IAAA,MAAM,SAAS,CAAC,OAAe,EAAE,GAAW,EAAE,MAAiB,EAAA;AAC7D,QAAA,MAAM,OAAO,GAAG,CAAA,EAAG,OAAO,CAAI,CAAA,EAAA,GAAG,EAAE;;AAEnC,QAAA,MAAM,OAAO,GAAG;;;SAGf;QACD,OAAOC,sBAAK,CAAA,MAAA,CAAA,MAAA,CAAA,EACV,GAAG,EAAE,OAAO,EACZ,OAAO,EACJ,EAAA,MAAM,EACT,CAAC,KAAK,CAAC,KAAK,IAAG;AAGjB,SAAC,CAAC;;AAGJ,IAAA,MAAM,iBAAiB,GAAA;AACrB,QAAA,MAAM,IAAI,CAAC,WAAW,EAAE;;QAExB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;AAGxC,IAAA,MAAM,WAAW,GAAA;;QACf,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;AAChD,QAAA,IAAI,CAAC,WAAW;YAAE;AAElB,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;AAEnB,QAAA,MAAM,YAAY,GAAiBC,mBAAS,CAAe,WAAW,CAAC;QACvE,MAAM,GAAG,GAAG,CAAA,EAAA,GAAA,YAAY,CAAC,GAAG,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,YAAY,CAAC,GAAG;AAEhD,QAAA,IAAI,aAAkB;AAEtB,QAAA,IAAI;AACF,YAAA,aAAa,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,EAAE,CAAuB,oBAAA,EAAA,GAAG,EAAE,EAAE;AACrF,gBAAA,MAAM,EAAE,KAAK;AACd,aAAA,CAAC;;AAEF,YAAA,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,aAAa,CAAC;AAC3C,YAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;QACtD,OAAO,CAAC,EAAE;AACV,YAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;YACd,IAAI,CAAC,QAAQ,GAAG;;aAEf;;AAGH,QAAA,IAAI,iBAAsB;AAC1B,QAAA,IAAI;AACF,YAAA,iBAAiB,GAAG,MAAM,IAAI,CAAC,SAAS;;AAEtC,YAAA,IAAI,CAAC,aAAa,EAClB,CAAS,MAAA,EAAA,GAAG,EAAE,EACd;AACE,gBAAA,MAAM,EAAE,KAAK;AACd,aAAA,CACF;YACD,IAAI,iBAAiB,EAAE;AACrB,gBAAA,IAAI,CAAC,aAAa,GAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACb,iBAAiB,CAAC,IAAI,CAAA,EAAA,EACzB,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,GAAG,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAI,CAAA,EAAA,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAE,CAAA,EAAA,CACrF;;;QAEH,OAAO,CAAC,EAAE;AACV,YAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;;QAGhB,IAAI,aAAa,EAAE;AACjB,YAAA,IAAI,CAAC,QAAQ,GACR,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,aAAa,CAAC,IAAI,CAAA,EAAA,EACrB,UAAU,EAAE,aAAa,CAAC,MAAM,EAChC,EAAE,EAAE,aAAa,CAAC,IAAI,CAAC,MAAM,EAAA,CAC9B;;YAGD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;AAGxC,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var getUser = require('./get-user-CljYNKAA.js');
4
- require('./index-Ci0lUvCK.js');
3
+ var getUser = require('./get-user-DFb8yrQ2.js');
4
+ require('./index-DrMNAZCL.js');
5
5
  require('axios');
6
6
  require('jwt-decode');
7
7
  require('./configService-BmGAegZf.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Ci0lUvCK.js');
3
+ var index = require('./index-DrMNAZCL.js');
4
4
  var udpDriveUtils = require('./udp-drive-utils-B8uPAKzW.js');
5
5
  var finalForm = require('final-form');
6
6
  var debounce = require('lodash.debounce');