@telia-ace/alliance-ui 1.0.17 → 1.1.0-next.1

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 (323) hide show
  1. package/dist/chunk-AIATXCVP.js +1 -0
  2. package/dist/chunk-AZ6GENL6.js +1 -0
  3. package/dist/chunk-BDQXACZ6.js +1 -0
  4. package/dist/chunk-CNFJFZ6D.js +5 -0
  5. package/dist/chunk-DDZCFV2G.js +33 -0
  6. package/dist/chunk-H7ZWVNSK.js +1 -0
  7. package/{components/alliance-view.js → dist/chunk-HIRVP2II.js} +8 -100
  8. package/dist/chunk-IXSQVPWG.js +55 -0
  9. package/dist/chunk-IZII256B.js +116 -0
  10. package/dist/chunk-JZJUYJ7F.js +1 -0
  11. package/dist/chunk-QLXKAVKR.js +1 -0
  12. package/dist/chunk-T7HYVHI2.js +162 -0
  13. package/dist/chunk-XLNQVDOQ.js +16 -0
  14. package/dist/components/alliance-link/index.d.ts +33 -0
  15. package/dist/components/alliance-link/index.js +1 -0
  16. package/dist/components/alliance-modal/index.d.ts +45 -0
  17. package/dist/components/alliance-modal/index.js +1 -0
  18. package/dist/components/alliance-paginator/index.d.ts +72 -0
  19. package/dist/components/alliance-paginator/index.js +1 -0
  20. package/dist/components/alliance-pop-over/index.d.ts +21 -0
  21. package/dist/components/alliance-pop-over/index.js +1 -0
  22. package/dist/components/alliance-table/index.d.ts +33 -0
  23. package/dist/components/alliance-table/index.js +1 -0
  24. package/{components/alliance-view.d.ts → dist/components/alliance-view/index.d.ts} +1 -1
  25. package/dist/components/alliance-view/index.js +1 -0
  26. package/dist/components/index.d.ts +10 -0
  27. package/dist/components/index.js +1 -0
  28. package/dist/voca/component-library-styling.d.ts +2 -0
  29. package/dist/voca/component-library-styling.js +1 -0
  30. package/dist/voca/components/telia-accordion-item.d.ts +2 -0
  31. package/dist/voca/components/telia-accordion-item.js +1 -0
  32. package/dist/voca/components/telia-accordion.d.ts +2 -0
  33. package/dist/voca/components/telia-accordion.js +1 -0
  34. package/dist/voca/components/telia-badge.d.ts +2 -0
  35. package/dist/voca/components/telia-badge.js +1 -0
  36. package/dist/voca/components/telia-button.js +1 -0
  37. package/dist/voca/components/telia-card-frame-link.d.ts +2 -0
  38. package/dist/voca/components/telia-card-frame-link.js +1 -0
  39. package/dist/voca/components/telia-card-frame.d.ts +2 -0
  40. package/dist/voca/components/telia-card-frame.js +1 -0
  41. package/dist/voca/components/telia-checkbox.d.ts +2 -0
  42. package/dist/voca/components/telia-checkbox.js +1 -0
  43. package/dist/voca/components/telia-chip-choice.d.ts +2 -0
  44. package/dist/voca/components/telia-chip-choice.js +1 -0
  45. package/dist/voca/components/telia-chip-filter.d.ts +2 -0
  46. package/dist/voca/components/telia-chip-filter.js +1 -0
  47. package/dist/voca/components/telia-col.d.ts +2 -0
  48. package/dist/voca/components/telia-col.js +1 -0
  49. package/dist/voca/components/telia-color-dot.d.ts +2 -0
  50. package/dist/voca/components/telia-color-dot.js +1 -0
  51. package/dist/voca/components/telia-counter-badge.d.ts +2 -0
  52. package/dist/voca/components/telia-counter-badge.js +1 -0
  53. package/dist/voca/components/telia-cta-link.d.ts +2 -0
  54. package/dist/voca/components/telia-cta-link.js +1 -0
  55. package/dist/voca/components/telia-date-picker.d.ts +2 -0
  56. package/dist/voca/components/telia-date-picker.js +1 -0
  57. package/dist/voca/components/telia-divider.d.ts +2 -0
  58. package/dist/voca/components/telia-divider.js +1 -0
  59. package/dist/voca/components/telia-field-assistive-text.d.ts +2 -0
  60. package/dist/voca/components/telia-field-assistive-text.js +1 -0
  61. package/dist/voca/components/telia-field-error.d.ts +2 -0
  62. package/dist/voca/components/telia-field-error.js +1 -0
  63. package/dist/voca/components/telia-field-valid.d.ts +2 -0
  64. package/dist/voca/components/telia-field-valid.js +1 -0
  65. package/dist/voca/components/telia-fieldset.d.ts +2 -0
  66. package/dist/voca/components/telia-fieldset.js +1 -0
  67. package/dist/voca/components/telia-focus-trap.d.ts +2 -0
  68. package/dist/voca/components/telia-focus-trap.js +1 -0
  69. package/dist/voca/components/telia-form.d.ts +2 -0
  70. package/dist/voca/components/telia-form.js +1 -0
  71. package/dist/voca/components/telia-grid.d.ts +2 -0
  72. package/dist/voca/components/telia-grid.js +1 -0
  73. package/dist/voca/components/telia-heading.d.ts +2 -0
  74. package/dist/voca/components/telia-heading.js +1 -0
  75. package/dist/voca/components/telia-icon.d.ts +2 -0
  76. package/dist/voca/components/telia-icon.js +1 -0
  77. package/dist/voca/components/telia-image.d.ts +2 -0
  78. package/dist/voca/components/telia-image.js +1 -0
  79. package/dist/voca/components/telia-label.d.ts +2 -0
  80. package/dist/voca/components/telia-label.js +1 -0
  81. package/dist/voca/components/telia-link-image.d.ts +2 -0
  82. package/dist/voca/components/telia-link-image.js +1 -0
  83. package/dist/voca/components/telia-link.d.ts +2 -0
  84. package/dist/voca/components/telia-link.js +1 -0
  85. package/dist/voca/components/telia-list.d.ts +2 -0
  86. package/dist/voca/components/telia-list.js +1 -0
  87. package/dist/voca/components/telia-logo.d.ts +2 -0
  88. package/dist/voca/components/telia-logo.js +1 -0
  89. package/dist/voca/components/telia-notification.d.ts +2 -0
  90. package/dist/voca/components/telia-notification.js +1 -0
  91. package/dist/voca/components/telia-overlay.d.ts +2 -0
  92. package/dist/voca/components/telia-overlay.js +1 -0
  93. package/dist/voca/components/telia-p.d.ts +2 -0
  94. package/dist/voca/components/telia-p.js +1 -0
  95. package/dist/voca/components/telia-pictogram.d.ts +2 -0
  96. package/dist/voca/components/telia-pictogram.js +1 -0
  97. package/dist/voca/components/telia-radio-button.d.ts +2 -0
  98. package/dist/voca/components/telia-radio-button.js +1 -0
  99. package/dist/voca/components/telia-row.d.ts +2 -0
  100. package/dist/voca/components/telia-row.js +1 -0
  101. package/dist/voca/components/telia-search-input.d.ts +2 -0
  102. package/dist/voca/components/telia-search-input.js +1 -0
  103. package/dist/voca/components/telia-select.d.ts +2 -0
  104. package/dist/voca/components/telia-select.js +1 -0
  105. package/dist/voca/components/telia-skeleton.d.ts +2 -0
  106. package/dist/voca/components/telia-skeleton.js +1 -0
  107. package/dist/voca/components/telia-status-badge.d.ts +2 -0
  108. package/dist/voca/components/telia-status-badge.js +1 -0
  109. package/dist/voca/components/telia-style-link.d.ts +2 -0
  110. package/dist/voca/components/telia-style-link.js +1 -0
  111. package/dist/voca/components/telia-tab-content.d.ts +2 -0
  112. package/dist/voca/components/telia-tab-content.js +1 -0
  113. package/dist/voca/components/telia-tab-header.d.ts +2 -0
  114. package/dist/voca/components/telia-tab-header.js +1 -0
  115. package/dist/voca/components/telia-tab.d.ts +2 -0
  116. package/dist/voca/components/telia-tab.js +1 -0
  117. package/dist/voca/components/telia-text-input.d.ts +2 -0
  118. package/dist/voca/components/telia-text-input.js +1 -0
  119. package/dist/voca/components/telia-text-spacing.d.ts +2 -0
  120. package/dist/voca/components/telia-text-spacing.js +1 -0
  121. package/dist/voca/components/telia-textarea.d.ts +2 -0
  122. package/dist/voca/components/telia-textarea.js +1 -0
  123. package/dist/voca/components/telia-toggle.d.ts +2 -0
  124. package/dist/voca/components/telia-toggle.js +1 -0
  125. package/dist/voca/components/telia-visually-hidden.d.ts +2 -0
  126. package/dist/voca/components/telia-visually-hidden.js +1 -0
  127. package/dist/voca/foundations.js +1 -0
  128. package/dist/voca/icons.js +1 -0
  129. package/package.json +20 -33
  130. package/CHANGELOG.md +0 -520
  131. package/components/alliance-link.d.ts +0 -2
  132. package/components/alliance-link.js +0 -4
  133. package/components/alliance-link.js.map +0 -1
  134. package/components/alliance-modal.d.ts +0 -12
  135. package/components/alliance-modal.js +0 -7
  136. package/components/alliance-modal.js.map +0 -1
  137. package/components/alliance-paginator.d.ts +0 -13
  138. package/components/alliance-paginator.js +0 -6
  139. package/components/alliance-paginator.js.map +0 -1
  140. package/components/alliance-pop-over.d.ts +0 -2
  141. package/components/alliance-pop-over.js +0 -5
  142. package/components/alliance-pop-over.js.map +0 -1
  143. package/components/alliance-table.d.ts +0 -2
  144. package/components/alliance-table.js +0 -6
  145. package/components/alliance-table.js.map +0 -1
  146. package/components/alliance-view.js.map +0 -1
  147. package/components/chunk-2PC6L5RK.js +0 -115
  148. package/components/chunk-2PC6L5RK.js.map +0 -1
  149. package/components/chunk-4546RD56.js +0 -279
  150. package/components/chunk-4546RD56.js.map +0 -1
  151. package/components/chunk-5A2VXG2P.js +0 -4
  152. package/components/chunk-5A2VXG2P.js.map +0 -1
  153. package/components/chunk-AW7BCYX5.js +0 -22
  154. package/components/chunk-AW7BCYX5.js.map +0 -1
  155. package/components/chunk-CZPHL6EU.js +0 -347
  156. package/components/chunk-CZPHL6EU.js.map +0 -1
  157. package/components/chunk-IFHLWFVT.js +0 -133
  158. package/components/chunk-IFHLWFVT.js.map +0 -1
  159. package/components/chunk-JQ76TOQT.js +0 -4
  160. package/components/chunk-JQ76TOQT.js.map +0 -1
  161. package/components/chunk-MA6NFT5S.js +0 -121
  162. package/components/chunk-MA6NFT5S.js.map +0 -1
  163. package/components/chunk-P2AWWJPH.js +0 -3
  164. package/components/chunk-P2AWWJPH.js.map +0 -1
  165. package/components/index.d.ts +0 -2
  166. package/components/index.js +0 -11
  167. package/components/index.js.map +0 -1
  168. package/voca/components/telia-accordion-item.js +0 -3
  169. package/voca/components/telia-accordion-item.js.map +0 -1
  170. package/voca/components/telia-accordion.d.ts +0 -2
  171. package/voca/components/telia-accordion.js +0 -3
  172. package/voca/components/telia-accordion.js.map +0 -1
  173. package/voca/components/telia-badge.d.ts +0 -2
  174. package/voca/components/telia-badge.js +0 -3
  175. package/voca/components/telia-badge.js.map +0 -1
  176. package/voca/components/telia-button.d.ts +0 -2
  177. package/voca/components/telia-button.js +0 -3
  178. package/voca/components/telia-button.js.map +0 -1
  179. package/voca/components/telia-card-frame-link.d.ts +0 -2
  180. package/voca/components/telia-card-frame-link.js +0 -3
  181. package/voca/components/telia-card-frame-link.js.map +0 -1
  182. package/voca/components/telia-card-frame.d.ts +0 -2
  183. package/voca/components/telia-card-frame.js +0 -3
  184. package/voca/components/telia-card-frame.js.map +0 -1
  185. package/voca/components/telia-checkbox.d.ts +0 -2
  186. package/voca/components/telia-checkbox.js +0 -3
  187. package/voca/components/telia-checkbox.js.map +0 -1
  188. package/voca/components/telia-chip-choice.d.ts +0 -2
  189. package/voca/components/telia-chip-choice.js +0 -3
  190. package/voca/components/telia-chip-choice.js.map +0 -1
  191. package/voca/components/telia-chip-filter.d.ts +0 -2
  192. package/voca/components/telia-chip-filter.js +0 -3
  193. package/voca/components/telia-chip-filter.js.map +0 -1
  194. package/voca/components/telia-col.d.ts +0 -2
  195. package/voca/components/telia-col.js +0 -3
  196. package/voca/components/telia-col.js.map +0 -1
  197. package/voca/components/telia-color-dot.d.ts +0 -2
  198. package/voca/components/telia-color-dot.js +0 -3
  199. package/voca/components/telia-color-dot.js.map +0 -1
  200. package/voca/components/telia-counter-badge.d.ts +0 -2
  201. package/voca/components/telia-counter-badge.js +0 -3
  202. package/voca/components/telia-counter-badge.js.map +0 -1
  203. package/voca/components/telia-cta-link.d.ts +0 -2
  204. package/voca/components/telia-cta-link.js +0 -3
  205. package/voca/components/telia-cta-link.js.map +0 -1
  206. package/voca/components/telia-date-picker.d.ts +0 -2
  207. package/voca/components/telia-date-picker.js +0 -3
  208. package/voca/components/telia-date-picker.js.map +0 -1
  209. package/voca/components/telia-divider.d.ts +0 -2
  210. package/voca/components/telia-divider.js +0 -3
  211. package/voca/components/telia-divider.js.map +0 -1
  212. package/voca/components/telia-field-assistive-text.d.ts +0 -2
  213. package/voca/components/telia-field-assistive-text.js +0 -3
  214. package/voca/components/telia-field-assistive-text.js.map +0 -1
  215. package/voca/components/telia-field-error.d.ts +0 -2
  216. package/voca/components/telia-field-error.js +0 -3
  217. package/voca/components/telia-field-error.js.map +0 -1
  218. package/voca/components/telia-field-valid.d.ts +0 -2
  219. package/voca/components/telia-field-valid.js +0 -3
  220. package/voca/components/telia-field-valid.js.map +0 -1
  221. package/voca/components/telia-fieldset.d.ts +0 -2
  222. package/voca/components/telia-fieldset.js +0 -3
  223. package/voca/components/telia-fieldset.js.map +0 -1
  224. package/voca/components/telia-focus-trap.d.ts +0 -2
  225. package/voca/components/telia-focus-trap.js +0 -3
  226. package/voca/components/telia-focus-trap.js.map +0 -1
  227. package/voca/components/telia-form.d.ts +0 -2
  228. package/voca/components/telia-form.js +0 -3
  229. package/voca/components/telia-form.js.map +0 -1
  230. package/voca/components/telia-grid.d.ts +0 -2
  231. package/voca/components/telia-grid.js +0 -3
  232. package/voca/components/telia-grid.js.map +0 -1
  233. package/voca/components/telia-heading.d.ts +0 -2
  234. package/voca/components/telia-heading.js +0 -3
  235. package/voca/components/telia-heading.js.map +0 -1
  236. package/voca/components/telia-icon.d.ts +0 -2
  237. package/voca/components/telia-icon.js +0 -3
  238. package/voca/components/telia-icon.js.map +0 -1
  239. package/voca/components/telia-image.d.ts +0 -2
  240. package/voca/components/telia-image.js +0 -3
  241. package/voca/components/telia-image.js.map +0 -1
  242. package/voca/components/telia-label.d.ts +0 -2
  243. package/voca/components/telia-label.js +0 -3
  244. package/voca/components/telia-label.js.map +0 -1
  245. package/voca/components/telia-link-image.d.ts +0 -2
  246. package/voca/components/telia-link-image.js +0 -3
  247. package/voca/components/telia-link-image.js.map +0 -1
  248. package/voca/components/telia-link.d.ts +0 -2
  249. package/voca/components/telia-link.js +0 -3
  250. package/voca/components/telia-link.js.map +0 -1
  251. package/voca/components/telia-list.d.ts +0 -2
  252. package/voca/components/telia-list.js +0 -3
  253. package/voca/components/telia-list.js.map +0 -1
  254. package/voca/components/telia-logo.d.ts +0 -2
  255. package/voca/components/telia-logo.js +0 -3
  256. package/voca/components/telia-logo.js.map +0 -1
  257. package/voca/components/telia-notification.d.ts +0 -2
  258. package/voca/components/telia-notification.js +0 -3
  259. package/voca/components/telia-notification.js.map +0 -1
  260. package/voca/components/telia-overlay.d.ts +0 -2
  261. package/voca/components/telia-overlay.js +0 -3
  262. package/voca/components/telia-overlay.js.map +0 -1
  263. package/voca/components/telia-p.d.ts +0 -2
  264. package/voca/components/telia-p.js +0 -3
  265. package/voca/components/telia-p.js.map +0 -1
  266. package/voca/components/telia-pictogram.d.ts +0 -2
  267. package/voca/components/telia-pictogram.js +0 -3
  268. package/voca/components/telia-pictogram.js.map +0 -1
  269. package/voca/components/telia-radio-button.d.ts +0 -2
  270. package/voca/components/telia-radio-button.js +0 -3
  271. package/voca/components/telia-radio-button.js.map +0 -1
  272. package/voca/components/telia-row.d.ts +0 -2
  273. package/voca/components/telia-row.js +0 -3
  274. package/voca/components/telia-row.js.map +0 -1
  275. package/voca/components/telia-search-input.d.ts +0 -2
  276. package/voca/components/telia-search-input.js +0 -3
  277. package/voca/components/telia-search-input.js.map +0 -1
  278. package/voca/components/telia-select.d.ts +0 -2
  279. package/voca/components/telia-select.js +0 -3
  280. package/voca/components/telia-select.js.map +0 -1
  281. package/voca/components/telia-skeleton.d.ts +0 -2
  282. package/voca/components/telia-skeleton.js +0 -3
  283. package/voca/components/telia-skeleton.js.map +0 -1
  284. package/voca/components/telia-status-badge.d.ts +0 -2
  285. package/voca/components/telia-status-badge.js +0 -3
  286. package/voca/components/telia-status-badge.js.map +0 -1
  287. package/voca/components/telia-style-link.d.ts +0 -2
  288. package/voca/components/telia-style-link.js +0 -3
  289. package/voca/components/telia-style-link.js.map +0 -1
  290. package/voca/components/telia-tab-content.d.ts +0 -2
  291. package/voca/components/telia-tab-content.js +0 -3
  292. package/voca/components/telia-tab-content.js.map +0 -1
  293. package/voca/components/telia-tab-header.d.ts +0 -2
  294. package/voca/components/telia-tab-header.js +0 -3
  295. package/voca/components/telia-tab-header.js.map +0 -1
  296. package/voca/components/telia-tab.d.ts +0 -2
  297. package/voca/components/telia-tab.js +0 -3
  298. package/voca/components/telia-tab.js.map +0 -1
  299. package/voca/components/telia-text-input.d.ts +0 -2
  300. package/voca/components/telia-text-input.js +0 -3
  301. package/voca/components/telia-text-input.js.map +0 -1
  302. package/voca/components/telia-text-spacing.d.ts +0 -2
  303. package/voca/components/telia-text-spacing.js +0 -3
  304. package/voca/components/telia-text-spacing.js.map +0 -1
  305. package/voca/components/telia-textarea.d.ts +0 -2
  306. package/voca/components/telia-textarea.js +0 -3
  307. package/voca/components/telia-textarea.js.map +0 -1
  308. package/voca/components/telia-toggle.d.ts +0 -2
  309. package/voca/components/telia-toggle.js +0 -3
  310. package/voca/components/telia-toggle.js.map +0 -1
  311. package/voca/components/telia-visually-hidden.d.ts +0 -2
  312. package/voca/components/telia-visually-hidden.js +0 -3
  313. package/voca/components/telia-visually-hidden.js.map +0 -1
  314. package/voca/foundations/component-library-styling.d.ts +0 -2
  315. package/voca/foundations/component-library-styling.js +0 -3
  316. package/voca/foundations/component-library-styling.js.map +0 -1
  317. package/voca/foundations/index.js +0 -191
  318. package/voca/foundations/index.js.map +0 -1
  319. package/voca/icons/index.js +0 -3
  320. package/voca/icons/index.js.map +0 -1
  321. /package/{voca/components/telia-accordion-item.d.ts → dist/voca/components/telia-button.d.ts} +0 -0
  322. /package/{voca/foundations/index.d.ts → dist/voca/foundations.d.ts} +0 -0
  323. /package/{voca/icons/index.d.ts → dist/voca/icons.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ var h=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=(g,b,d,c)=>{for(var a=c>1?void 0:c?i(b,d):b,e=g.length-1,f;e>=0;e--)(f=g[e])&&(a=(c?f(b,d,a):f(a))||a);return c&&a&&h(b,d,a),a};export{j as a};
@@ -0,0 +1 @@
1
+ import"@teliads/components/dist/components/telia-label";
@@ -0,0 +1 @@
1
+ import"@teliads/components/dist/components/telia-icon";
@@ -0,0 +1,5 @@
1
+ import{borders as g,breakpoints as t,colors as e,grid as n,layers as d,motion as r,shadows as s,spacing as a,typography as p}from"@teliads/components/foundations";import c from"@teliads/components/foundations/focus/variables.json";var y=()=>{let o="voca-foundations-style-tag",u=document.getElementById(o),i=document.createElement("style");i.id=o;let l={"--font-telia-heading":"TeliaSansHeading, TeliaSans, HelveticaNeue, Helvetica, Arial, sans-serif","--font-telia-sans":"TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif","--font-normal":p.weightNormal,"--font-medium":p.weightMedium,"--font-bold":p.weightBold,"--spacing-0":a.spacing0,"--spacing-2":a.spacing2,"--spacing-4":a.spacing4,"--spacing-8":a.spacing8,"--spacing-12":a.spacing12,"--spacing-16":a.spacing16,"--spacing-20":a.spacing20,"--spacing-24":a.spacing24,"--spacing-32":a.spacing32,"--spacing-48":a.spacing48,"--spacing-64":a.spacing64,"--spacing-80":a.spacing80,"--spacing-96":a.spacing96,"--spacing-128":a.spacing128,"--box-shadow-none":s.none,"--box-shadow-sm":s.sm,"--box-shadow-md":s.md,"--box-shadow-lg":s.lg,"--duration-50":r.duration50,"--duration-100":r.duration100,"--duration-150":r.duration150,"--duration-200":r.duration200,"--duration-250":r.duration250,"--duration-300":r.duration300,"--duration-350":r.duration350,"--duration-400":r.duration400,"--duration-500":r.duration500,"--duration-1500":r.duration1500,"--duration-2000":r.duration2000,"--timing-ease-in":r.easeIn,"--timing-ease-out":r.easeOut,"--timing-ease-in-out":r.easeInOut,"--layer-base":d.base,"--layer-dropdown":d.dropdown,"--layer-header":d.header,"--layer-modal":d.modal,"--border-width-none":g.widthNone,"--border-width-xs":g.widthXs,"--border-width-sm":g.widthSm,"--border-width-md":g.widthMd,"--border-radius-none":g.radiusNone,"--border-radius-default":g.radiusDefault,"--border-radius-sm":g.radiusSm,"--border-radius-lg":g.radiusLg,"--border-radius-full":g.radiusFull,"--screen-size-sm":t.breakpointSm,"--screen-size-md":t.breakpointMd,"--screen-size-lg":t.breakpointLg,"--screen-size-xl":t.breakpointXl,"--purple-100":e.purple100,"--purple-200":e.purple200,"--purple-300":e.purple300,"--purple-400":e.purple400,"--purple-500":e.purple500,"--purple-600":e.purple600,"--purple-700":e.purple700,"--purple-800":e.purple800,"--purple-850":e.purple850,"--purple-900":e.purple900,"--beige-50":e.beige50,"--beige-100":e.beige100,"--beige-200":e.beige200,"--beige-300":e.beige300,"--beige-400":e.beige400,"--beige-500":e.beige500,"--beige-600":e.beige600,"--beige-700":e.beige700,"--beige-800":e.beige800,"--beige-900":e.beige900,"--gray-50":e.gray50,"--gray-100":e.gray100,"--gray-200":e.gray200,"--gray-300":e.gray300,"--gray-400":e.gray400,"--gray-500":e.gray500,"--gray-600":e.gray600,"--gray-700":e.gray700,"--gray-800":e.gray800,"--gray-900":e.gray900,"--green-100":e.green100,"--green-200":e.green200,"--green-300":e.green300,"--green-400":e.green400,"--green-500":e.green500,"--green-600":e.green600,"--green-700":e.green700,"--green-800":e.green800,"--green-900":e.green900,"--red-100":e.red100,"--red-200":e.red200,"--red-300":e.red300,"--red-400":e.red400,"--red-500":e.red500,"--red-600":e.red600,"--red-700":e.red700,"--red-800":e.red800,"--red-900":e.red900,"--orange-100":e.orange100,"--orange-200":e.orange200,"--orange-300":e.orange300,"--orange-400":e.orange400,"--orange-500":e.orange500,"--orange-600":e.orange600,"--orange-700":e.orange700,"--orange-800":e.orange800,"--orange-900":e.orange900,"--blue-100":e.blue100,"--blue-200":e.blue200,"--blue-300":e.blue300,"--blue-400":e.blue400,"--blue-500":e.blue500,"--blue-600":e.blue600,"--blue-700":e.blue700,"--blue-800":e.blue800,"--blue-900":e.blue900,"--white":e.white,"--black":e.black,"--functional-black":e.functionalBlack,"--grid-gutter":n.gutter,"--grid-gutter-medium":n.gutterMedium,"--grid-gutter-large":n.gutterLarge,"--grid-page-padding":n.pagePadding,"--grid-page-padding-m":n.pagePaddingM,"--grid-page-padding-l":n.pagePaddingL,"--grid-gutter-sm":n.gutter,"--grid-gutter-md":n.gutterMedium,"--grid-gutter-lg":n.gutterLarge,"--grid-page-padding-sm":n.pagePadding,"--grid-page-padding-md":n.pagePaddingM,"--grid-page-padding-lg":n.pagePaddingL,"--grid-page-padding-xl":n.pagePaddingXl,"--functional-transparent":"transparent","--transparent-black-50":"rgba(0, 0, 0, 0.05)","--transparent-black-100":"rgba(0, 0, 0, 0.1)","--transparent-black-200":"rgba(0, 0, 0, 0.2)","--transparent-black-300":"rgba(0, 0, 0, 0.3)","--transparent-black-400":"rgba(0, 0, 0, 0.4)","--transparent-black-500":"rgba(0, 0, 0, 0.5)","--transparent-black-600":"rgba(0, 0, 0, 0.6)","--transparent-black-700":"rgba(0, 0, 0, 0.7)","--transparent-black-800":"rgba(0, 0, 0, 0.8)","--transparent-black-850":"rgba(0, 0, 0, 0.85)","--transparent-black-900":"rgba(0, 0, 0, 0.9)","--transparent-white-50":"rgba(0, 0, 0, 0.05)","--transparent-white-100":"rgba(0, 0, 0, 0.1)","--transparent-white-200":"rgba(0, 0, 0, 0.2)","--transparent-white-300":"rgba(0, 0, 0, 0.3)","--transparent-white-400":"rgba(0, 0, 0, 0.4)","--transparent-white-500":"rgba(0, 0, 0, 0.5)","--transparent-white-600":"rgba(0, 0, 0, 0.6)","--transparent-white-700":"rgba(0, 0, 0, 0.7)","--transparent-white-800":"rgba(0, 0, 0, 0.8)","--transparent-white-850":"rgba(0, 0, 0, 0.85)","--transparent-white-900":"rgba(0, 0, 0, 0.9)","--focus-border":`${c.focusBorderWidth} solid ${c.focusColor}`},m=Object.keys(l).map(b=>`${b}:${l[b]};`).join("");if(i.innerHTML=`
2
+ :root {
3
+ ${m}
4
+ }
5
+ `,u){document.head.replaceChild(i,u);return}return document.head.append(i)};export{g as a,t as b,e as c,n as d,d as e,r as f,s as g,a as h,p as i,c as j,y as k};
@@ -0,0 +1,33 @@
1
+ import{a as c,c as h,e as u,g as p,h as i}from"./chunk-CNFJFZ6D.js";import{a as l}from"./chunk-AIATXCVP.js";import{autoPlacement as k,autoUpdate as b,computePosition as w}from"@floating-ui/dom";import{LitElement as E,css as y,html as m,unsafeCSS as t}from"lit";import{property as d}from"lit/decorators.js";var o=class extends E{constructor(){super(...arguments);this.onWindowClick=n=>{let{target:e,clientX:a,clientY:g}=n;if(!this.cursor){this.cursor={x:a,y:g};return}!e||e===this||this.contains(e)||this.anchorElement&&(e===this.anchorElement||this.anchorElement.contains(e))||this.remove()};this.position=()=>{let n=[];this.placement||n.push(k()),w(this.reference(),this,{middleware:n,placement:this.placement}).then(({x:e,y:a})=>{Object.assign(this.style,{left:`${e}px`,top:`${a}px`})})};this.reference=()=>!this.anchorElement&&!this.cursor?f({x:0,y:0}):this.anchorElement||f(this.cursor)}static{this.styles=y`
2
+ :host {
3
+ display: block;
4
+ width: max-content;
5
+ position: absolute;
6
+ top: 0;
7
+ left: 0;
8
+
9
+ z-index: ${t(Number(u.modal)*2)};
10
+ border: ${t(c.widthXs)};
11
+ border-radius: ${t(c.radiusSm)};
12
+ background-color: ${t(h.white)};
13
+ box-shadow: ${t(p.md)};
14
+ }
15
+
16
+ :host([loading]) {
17
+ display: flex;
18
+ flex-direction: column;
19
+ padding: ${t(i.spacing12)};
20
+ gap: ${t(i.spacing12)};
21
+ }
22
+
23
+ :host([loading]) telia-skeleton {
24
+ height: ${t(i.spacing12)};
25
+ width: ${t(i.spacing128)};
26
+ }
27
+ `}connectedCallback(){super.connectedCallback();let n=document.getElementById(this.anchor);n&&(this.anchorElement=n),window.addEventListener("click",this.onWindowClick);let e=b(this.reference(),this,this.position);this.cleanup=()=>{window.removeEventListener("click",this.onWindowClick),e()}}disconnectedCallback(){this.dispatchEvent(new CustomEvent("close")),this.cleanup(),super.disconnectedCallback()}render(){return this.loading?m`
28
+ <telia-skeleton round> </telia-skeleton>
29
+ <telia-skeleton round> </telia-skeleton>
30
+ <telia-skeleton round> </telia-skeleton>
31
+ <telia-skeleton round> </telia-skeleton>
32
+ <telia-skeleton round> </telia-skeleton>
33
+ `:m` <slot> </slot> `}};l([d({type:String})],o.prototype,"anchor",2),l([d({type:String,attribute:!0,reflect:!0})],o.prototype,"placement",2),l([d({type:Boolean,attribute:!0,reflect:!0})],o.prototype,"loading",2);function f({x:r,y:s}){return{getBoundingClientRect:()=>({width:0,height:0,x:r,y:s,top:s,left:r,right:r,bottom:s})}}export{o as a};
@@ -0,0 +1 @@
1
+ import"@teliads/components/dist/components/telia-heading";
@@ -1,34 +1,4 @@
1
- import { __decorateClass, define } from './chunk-AW7BCYX5.js';
2
- import { LitElement, css, html } from 'lit';
3
- import { property } from 'lit/decorators.js';
4
-
5
- var viewElementPrefix = "alliance-view-";
6
- var viewElementSelector = "app-view";
7
- var ViewElementType = /* @__PURE__ */ ((ViewElementType2) => {
8
- ViewElementType2["Main"] = "main";
9
- ViewElementType2["Aside"] = "aside";
10
- ViewElementType2["Body"] = "body";
11
- return ViewElementType2;
12
- })(ViewElementType || {});
13
- function viewElementTag(appName) {
14
- return `${viewElementPrefix}${appName}`;
15
- }
16
- function registerViewElement(appName, onRender) {
17
- class ViewElement extends LitElement {
18
- constructor() {
19
- super();
20
- this.appView = true;
21
- this.loading = true;
22
- this.mounted = false;
23
- this.args = {};
24
- this.app = appName;
25
- this.capability = "launch";
26
- this.complete = (result) => {
27
- this.dispatchEvent(new CustomEvent("complete", { detail: result }));
28
- };
29
- }
30
- static {
31
- this.styles = css`
1
+ import{a as t}from"./chunk-AIATXCVP.js";import{LitElement as s,css as c,html as l}from"lit";import{property as i}from"lit/decorators.js";var h="alliance-view-",m="app-view",u=(a=>(a.Main="main",a.Aside="aside",a.Body="body",a))(u||{});function y(n){return`${h}${n}`}function g(n,p){class e extends s{constructor(){super();this.appView=!0,this.loading=!0,this.mounted=!1,this.args={},this.app=n,this.capability="launch",this.complete=r=>{this.dispatchEvent(new CustomEvent("complete",{detail:r}))}}static{this.styles=c`
32
2
  .loader {
33
3
  background-color: rgba(255, 255, 255, 0.4);
34
4
  z-index: var(--layer-modal);
@@ -125,26 +95,7 @@ function registerViewElement(appName, onRender) {
125
95
  transform: rotate(360deg);
126
96
  }
127
97
  }
128
- `;
129
- }
130
- init(props) {
131
- for (const [key, value] of Object.entries(props)) {
132
- if (value) {
133
- this[key] = value;
134
- }
135
- }
136
- }
137
- async connectedCallback() {
138
- super.connectedCallback();
139
- if (!this.id) {
140
- this.id = crypto.randomUUID();
141
- }
142
- await onRender(this);
143
- this.loading = false;
144
- this.mounted = true;
145
- }
146
- renderLoader() {
147
- return html`
98
+ `}init(r){for(let[d,o]of Object.entries(r))o&&(this[d]=o)}async connectedCallback(){super.connectedCallback(),this.id||(this.id=crypto.randomUUID()),await p(this),this.loading=!1,this.mounted=!0}renderLoader(){return l`
148
99
  <div class="loader">
149
100
  <div>
150
101
  <div></div>
@@ -157,20 +108,13 @@ function registerViewElement(appName, onRender) {
157
108
  <div></div>
158
109
  </div>
159
110
  </div>
160
- `;
161
- }
162
- renderTypeStyling() {
163
- switch (this.type) {
164
- case "body" /* Body */:
165
- return html`
111
+ `}renderTypeStyling(){switch(this.type){case"body":return l`
166
112
  <style>
167
113
  :host .app-loader {
168
114
  display: none;
169
115
  }
170
116
  </style>
171
- `;
172
- case "aside" /* Aside */:
173
- return html`
117
+ `;case"aside":return l`
174
118
  <style>
175
119
  :host {
176
120
  height: 100vh;
@@ -184,10 +128,7 @@ function registerViewElement(appName, onRender) {
184
128
  display: none;
185
129
  }
186
130
  </style>
187
- `;
188
- default:
189
- case "main" /* Main */:
190
- return html`
131
+ `;default:case"main":return l`
191
132
  <style>
192
133
  :host {
193
134
  position: relative;
@@ -196,40 +137,7 @@ function registerViewElement(appName, onRender) {
196
137
  width: 100%;
197
138
  }
198
139
  </style>
199
- `;
200
- }
201
- }
202
- render() {
203
- return html`
204
- ${this.renderTypeStyling()} ${this.loading ? this.renderLoader() : ""}
140
+ `}}render(){return l`
141
+ ${this.renderTypeStyling()} ${this.loading?this.renderLoader():""}
205
142
  <slot></slot>
206
- `;
207
- }
208
- }
209
- __decorateClass([
210
- property({ type: Boolean, attribute: viewElementSelector, reflect: true })
211
- ], ViewElement.prototype, "appView", 2);
212
- __decorateClass([
213
- property({ type: Boolean, attribute: true, reflect: true })
214
- ], ViewElement.prototype, "mounted", 2);
215
- __decorateClass([
216
- property({ type: Boolean, attribute: true, reflect: true })
217
- ], ViewElement.prototype, "loading", 2);
218
- __decorateClass([
219
- property({ type: String, attribute: false, reflect: true })
220
- ], ViewElement.prototype, "app", 2);
221
- __decorateClass([
222
- property({ type: String, attribute: true, reflect: true })
223
- ], ViewElement.prototype, "type", 2);
224
- __decorateClass([
225
- property({ type: String, attribute: true, reflect: true })
226
- ], ViewElement.prototype, "capability", 2);
227
- __decorateClass([
228
- property({ type: Object, attribute: true, reflect: true })
229
- ], ViewElement.prototype, "args", 2);
230
- define(viewElementTag(appName), ViewElement);
231
- }
232
-
233
- export { ViewElementType, registerViewElement, viewElementPrefix, viewElementSelector, viewElementTag };
234
- //# sourceMappingURL=out.js.map
235
- //# sourceMappingURL=alliance-view.js.map
143
+ `}}t([i({type:Boolean,attribute:m,reflect:!0})],e.prototype,"appView",2),t([i({type:Boolean,attribute:!0,reflect:!0})],e.prototype,"mounted",2),t([i({type:Boolean,attribute:!0,reflect:!0})],e.prototype,"loading",2),t([i({type:String,attribute:!1,reflect:!0})],e.prototype,"app",2),t([i({type:String,attribute:!0,reflect:!0})],e.prototype,"type",2),t([i({type:String,attribute:!0,reflect:!0})],e.prototype,"capability",2),t([i({type:Object,attribute:!0,reflect:!0})],e.prototype,"args",2);let a=y(n);customElements.get(a)||customElements.define(a,e)}export{h as a,m as b,u as c,y as d,g as e};
@@ -0,0 +1,55 @@
1
+ import{a as n,c as e,f as l,h as o,j as i}from"./chunk-CNFJFZ6D.js";import{a as s}from"./chunk-AIATXCVP.js";import{LitElement as u,css as g,html as b}from"lit";var p=class extends u{static{this.styles=g`
2
+ :host {
3
+ display: table;
4
+ border-collapse: collapse;
5
+ width: 100%;
6
+ }
7
+ `}render(){return b` <alliance-tb>
8
+ <slot></slot>
9
+ </alliance-tb>`}};import{LitElement as y,css as x,html as $}from"lit";var m=class extends y{static{this.styles=x`
10
+ :host {
11
+ display: table-row-group;
12
+ vertical-align: middle;
13
+ border-color: inherit;
14
+ }
15
+ `}render(){return $`<slot></slot>`}};import{LitElement as k,css as S,html as v,unsafeCSS as E}from"lit";var d=class extends k{static{this.styles=S`
16
+ :host {
17
+ display: table-cell;
18
+ vertical-align: inherit;
19
+ padding: ${E(o.spacing24)};
20
+ }
21
+ `}render(){return v` <slot></slot> `}};import{LitElement as L,css as C,html as w,unsafeCSS as B}from"lit";import{property as I}from"lit/decorators.js";var a=class extends L{constructor(){super();this.label=""}static{this.styles=C`
22
+ :host {
23
+ display: table-cell;
24
+ padding: ${B(o.spacing24)};
25
+ }
26
+ `}render(){return w`<telia-heading tag="h4" variant="title-100">${this.label}</telia-heading>`}};s([I({type:String})],a.prototype,"label",2);import{LitElement as W,css as X,html as h,unsafeCSS as t}from"lit";import{property as j}from"lit/decorators.js";var c=class extends W{constructor(){super();this.clickable=!1}static{this.styles=X`
27
+ :host {
28
+ display: table-row;
29
+ border-bottom: ${t(n.widthXs)} solid ${t(e.gray200)};
30
+ }
31
+ `}render(){return h`
32
+ ${this.clickable?q:""}
33
+ <slot></slot>
34
+ `}};s([j({type:Boolean})],c.prototype,"clickable",2);var q=h`<style>
35
+ :host {
36
+ background-color: transparent;
37
+ transition: background-color ${t(l.duration150)} ${t(l.easeIn)};
38
+ cursor: pointer;
39
+ }
40
+
41
+ :host(:hover),
42
+ :host(:focus-visible),
43
+ :host(:focus) {
44
+ background-color: ${t(e.gray200)};
45
+ }
46
+
47
+ :host(:active) {
48
+ background-color: ${t(e.gray300)};
49
+ }
50
+
51
+ :host(:focus-visible) {
52
+ outline: solid ${t(i.focusBorderWidth)} ${t(i.focusColor)};
53
+ outline-offset: ${t(o.spacing4)};
54
+ }
55
+ </style>`;export{p as a,m as b,d as c,a as d,c as e};
@@ -0,0 +1,116 @@
1
+ import{a as y,b as R,c as s,f as C,h as l,j as x}from"./chunk-CNFJFZ6D.js";import{a}from"./chunk-AIATXCVP.js";import{LitElement as j,css as F,html as M,unsafeCSS as t}from"lit";import{property as V}from"lit/decorators.js";import{repeat as G}from"lit/directives/repeat.js";var m="...",p=(n,i)=>{let e=i-n+1;return Array.from({length:e},(o,r)=>r+n)};function S(n){return n[n.length-1]}function N(n){return Array.from({length:n},(i,e)=>k(e+1,n))}function k(n,i){return`${n} / ${i}`}function A(n){let i=n.split("/")[0];if(typeof i!="string")throw new Error("Could not parse page value from select.");return parseInt(i)}function b({itemCount:n,pageSize:i,siblingCount:e,currentPage:o}){let r=Math.ceil(n/i);if(e+5>=r)return p(1,r);let w=Math.max(o-e,1),L=Math.min(o+e,r),$=w>2,v=L<r-2,T=1,_=r;if(!$&&v){let g=3+2*e;return[...p(1,g),m,r]}if($&&!v){let g=3+2*e,I=p(r-g+1,r);return[T,m,...I]}if($&&v){let g=p(w,L);return[T,m,...g,m,_]}return p(1,r)}var d=class extends j{constructor(){super();this.onChange=e=>{let o=A(e.currentTarget.value),r=new CustomEvent("select-page",{bubbles:!0,composed:!0,detail:{nextPage:o,previousPage:this.currentPage},cancelable:!0});this.dispatchEvent(r)};this.currentPage=0,this.lastPage=0}static{this.styles=F`
2
+ :host select {
3
+ padding: ${t(l.spacing16)} ${t(l.spacing24)};
4
+ border-radius: ${t(y.radiusFull)};
5
+ border: ${t(y.widthXs)} solid ${t(s.purple850)};
6
+ background-color: transparent;
7
+ color: ${t(s.purple850)};
8
+ text-align: center;
9
+ align-items: center;
10
+ justify-content: center;
11
+ cursor: pointer;
12
+ display: inline-flex;
13
+ font-family: 'TeliaSans', Helvetica, Arial, 'Lucida Grande', sans-serif;
14
+ font-size: ${t(l.spacing16)};
15
+ line-height: ${t(l.spacing16)};
16
+ transition:
17
+ color ${t(C.duration150)} ease,
18
+ background-color ${t(C.duration150)} ease;
19
+
20
+ -webkit-appearance: none;
21
+ -moz-appearance: none;
22
+ appearance: none;
23
+ outline: none;
24
+ }
25
+
26
+ :host select:hover {
27
+ background-color: ${t(s.purple850)};
28
+ color: ${t(s.white)};
29
+ }
30
+
31
+ :host select:active {
32
+ background-color: ${t(s.purple700)};
33
+ }
34
+
35
+ :host select option {
36
+ background-color: ${t(s.white)};
37
+ color: ${t(s.black)};
38
+ text-align: center;
39
+ }
40
+
41
+ :host select::-ms-expand {
42
+ display: none;
43
+ }
44
+
45
+ :host select:focus-visible {
46
+ outline: solid ${t(x.focusBorderWidth)} ${t(x.focusColor)};
47
+ outline-offset: ${t(l.spacing4)};
48
+ }
49
+ `}render(){return M`
50
+ <select
51
+ id="select"
52
+ @change=${this.onChange}
53
+ .value=${k(this.currentPage,this.lastPage)}
54
+ >
55
+ ${G(N(this.lastPage),e=>M`<option value="${e}">${e}</option>`)}
56
+ </select>
57
+ `}};a([V({type:Number,attribute:"current-page"})],d.prototype,"currentPage",2),a([V({type:Number,attribute:"last-page"})],d.prototype,"lastPage",2);import{LitElement as O,css as W,html as E,unsafeCSS as z}from"lit";import{property as f,state as D}from"lit/decorators.js";import{repeat as X}from"lit/directives/repeat.js";var c=class extends O{constructor(){super();this.changePage=e=>{if(e===this.currentPage||e<1||e>this.pages[this.pages.length-1])return;let o=new CustomEvent("change-page",{bubbles:!0,composed:!0,detail:{nextPage:e,previousPage:this.currentPage},cancelable:!0});this.dispatchEvent(o)&&(this.currentPage=e,this.pages=b({itemCount:this.itemCount,pageSize:this.pageSize,siblingCount:this.siblingCount,currentPage:this.currentPage}))};this.next=()=>{this.changePage(this.currentPage+1)};this.previous=()=>{this.changePage(this.currentPage-1)};this.onPageSelect=e=>this.changePage(e.detail.nextPage);this.itemCount=0,this.pageSize=50,this.initialPage=1,this.siblingCount=2,this.currentPage=this.initialPage,this.pages=[]}static{this.styles=W`
58
+ :host {
59
+ display: flex;
60
+ flex-direction: row;
61
+ place-items: center;
62
+ gap: ${z(l.spacing8)};
63
+ }
64
+
65
+ :host telia-label {
66
+ display: none;
67
+ }
68
+
69
+ :host .telia-label {
70
+ color: ${z(s.purple700)};
71
+ }
72
+
73
+ :host alliance-paginator-button[page] {
74
+ display: none;
75
+ }
76
+
77
+ span {
78
+ display: block;
79
+ }
80
+
81
+ @container (min-width: ${z(R.breakpointLg)}) {
82
+ :host telia-label,
83
+ :host alliance-paginator-button[page] {
84
+ display: block;
85
+ }
86
+
87
+ :host alliance-page-selector {
88
+ display: none;
89
+ }
90
+ }
91
+ `}connectedCallback(){super.connectedCallback(),this.currentPage=this.initialPage,this.pages=b({itemCount:this.itemCount,pageSize:this.pageSize,siblingCount:this.siblingCount,currentPage:this.currentPage})}attributeChangedCallback(e,o,r){super.attributeChangedCallback(e,o,r),e==="initial-page"&&(this.currentPage=this.initialPage),this.pages=b({itemCount:this.itemCount,pageSize:this.pageSize,siblingCount:this.siblingCount,currentPage:this.currentPage,[e]:r})}render(){return E`
92
+ <alliance-paginator-button
93
+ @click=${this.previous}
94
+ ?disabled=${this.currentPage===1}
95
+ icon="left"
96
+ ></alliance-paginator-button>
97
+
98
+ ${X(this.pages,e=>e==="..."?E`<telia-label>...</telia-label>`:E`<alliance-paginator-button
99
+ page=${e}
100
+ @click=${()=>this.changePage(e)}
101
+ ?selected=${this.currentPage===e}
102
+ ></alliance-paginator-button>`)}
103
+
104
+ <alliance-page-selector
105
+ current-page=${this.currentPage}
106
+ last-page=${S(this.pages)}
107
+ @select-page=${this.onPageSelect}
108
+ >
109
+ </alliance-page-selector>
110
+
111
+ <alliance-paginator-button
112
+ @click=${this.next}
113
+ ?disabled=${this.currentPage===S(this.pages)}
114
+ icon="right"
115
+ ></alliance-paginator-button>
116
+ `}};a([f({type:Number,attribute:"item-count"})],c.prototype,"itemCount",2),a([f({type:Number,attribute:"page-size"})],c.prototype,"pageSize",2),a([f({type:Number,attribute:"initial-page"})],c.prototype,"initialPage",2),a([f({type:Number,attribute:"sibling-count"})],c.prototype,"siblingCount",2),a([D()],c.prototype,"currentPage",2),a([D()],c.prototype,"pages",2);import{chevronLeft as q,chevronRight as J}from"@teliads/components/icons";import{LitElement as K,html as P}from"lit";import{property as h}from"lit/decorators.js";var H=(e=>(e.Left="left",e.Right="right",e))(H||{}),u=class extends K{constructor(){super();this.selected=!1,this.disabled=!1,this.clickable=!0}renderContent(){return this.icon==="left"?P`<telia-icon size="sm" svg="${q.svg}" />`:this.icon==="right"?P`<telia-icon size="sm" svg="${J.svg}" />`:P`<span>${this.page}</span>`}render(){return P`<telia-button ?disabled=${this.disabled} variant=${this.selected?"primary":"tertiary-purple"}>${this.renderContent()}</telia-button> `}};a([h({type:H})],u.prototype,"icon",2),a([h({type:String})],u.prototype,"page",2),a([h({type:Boolean})],u.prototype,"selected",2),a([h({type:Boolean})],u.prototype,"disabled",2),a([h({type:Boolean})],u.prototype,"clickable",2);export{d as a,c as b,u as c};
@@ -0,0 +1 @@
1
+ import"@teliads/components/dist/components/telia-button";
@@ -0,0 +1 @@
1
+ import"@teliads/components/dist/components/telia-skeleton";
@@ -0,0 +1,162 @@
1
+ import{a as r,b as h,c as a,e as l,g as u,h as e}from"./chunk-CNFJFZ6D.js";import{a as n}from"./chunk-AIATXCVP.js";import{close as b}from"@teliads/components/icons";import{LitElement as y,css as m,html as i,unsafeCSS as t}from"lit";import{property as d,state as $}from"lit/decorators.js";import{repeat as f}from"lit/directives/repeat.js";var o=class extends y{constructor(){super();this.containStyling=()=>this.contain?i`<style>
2
+ :host {
3
+ height: 500px;
4
+ position: static;
5
+ }
6
+ .backdrop {
7
+ position: absolute;
8
+ }
9
+ </style>`:i`<style>
10
+ :host {
11
+ position: fixed;
12
+ }
13
+
14
+ .backdrop {
15
+ position: absolute;
16
+ }
17
+ </style>`;this.scrollStyling=()=>this.scrollMode==="inside"?i`<style>
18
+ .container {
19
+ align-items: center;
20
+ }
21
+
22
+ dialog {
23
+ max-height: 80%;
24
+ display: flex;
25
+ flex-direction: column;
26
+ }
27
+
28
+ .body {
29
+ flex: 1;
30
+ padding: ${t(e.spacing24)} ${t(e.spacing32)};
31
+ height: 80%;
32
+ overflow-x: hidden;
33
+ overflow-y: auto;
34
+ }
35
+
36
+ .footer {
37
+ border-top: ${t(r.widthXs)} solid ${t(a.gray200)};
38
+ padding: ${t(e.spacing24)} ${t(e.spacing32)};
39
+ }
40
+ </style>`:i`<style>
41
+ .container {
42
+ overflow-x: hidden;
43
+ overflow-y: overlay;
44
+ align-items: flex-start;
45
+ }
46
+
47
+ dialog {
48
+ display: block;
49
+ margin: ${t(e.spacing128)} ${t(e.spacing24)};
50
+ }
51
+
52
+ .footer,
53
+ .body {
54
+ margin: ${t(e.spacing24)} 0;
55
+ padding: 0 ${t(e.spacing32)};
56
+ }
57
+ </style>`;this.subHeaderStyling=()=>{if(this.hasSubHeader)return i`<style>
58
+ div.sub-header {
59
+ display: block;
60
+ }
61
+ </style>`};this.closeButton=()=>this.required?"":i`<telia-button
62
+ size="sm"
63
+ variant="text"
64
+ data-testid="close-modal-button"
65
+ @click=${this.onCloseClick}
66
+ ><telia-icon size="md" svg="${b.svg}"
67
+ /></telia-button>`;this.footer=()=>this.actions.length?i`
68
+ <div class="footer">
69
+ ${f(this.actions,({disabled:s,variant:c,action:p,label:g})=>i`
70
+ <telia-button
71
+ disabled="${s?"true":"false"}"
72
+ variant="${c||"primary"}"
73
+ size="sm"
74
+ @click=${()=>this.action(p)}
75
+ data-testid="${p}-action-button"
76
+ >
77
+ ${g}
78
+ </telia-button>
79
+ `)}
80
+ </div>
81
+ `:"";this.onBackdropClick=()=>{if(!this.required)return this.action("close")};this.onCloseClick=()=>{if(!this.required)return this.action("close")};this.onKeyDown=s=>{s.defaultPrevented||!this.required&&s.key==="Escape"&&this.action("close")};this.onSubHeaderSlotChange=()=>{this.hasSubHeader=!0};this.action=s=>{let c=new CustomEvent("action",{bubbles:!0,composed:!0,detail:{action:s},cancelable:!0});return this.dispatchEvent(c)};this.header="",this.actions=[],this.required=!1,this.scrollMode="outside",this.hasSubHeader=!1}static{this.styles=m`
82
+ :host {
83
+ display: block;
84
+ inset: 0;
85
+ z-index: ${t(parseInt(l.modal)-2)};
86
+ }
87
+
88
+ .backdrop {
89
+ inset: 0;
90
+ z-index: ${t(parseInt(l.modal)-1)};
91
+ background-color: ${t(a.black)};
92
+ opacity: 0.3;
93
+ }
94
+
95
+ .container {
96
+ margin: 0 auto;
97
+ display: flex;
98
+ justify-content: center;
99
+ height: 100%;
100
+ width: 100%;
101
+ }
102
+
103
+ dialog {
104
+ background-color: ${t(a.white)};
105
+ border-radius: ${t(r.radiusLg)};
106
+ box-shadow: ${t(u.md)};
107
+ z-index: ${t(parseInt(l.modal))};
108
+ max-width: ${t(h.breakpointLg)};
109
+ position: static;
110
+ padding: 0;
111
+ border: none;
112
+ }
113
+
114
+ .header {
115
+ position: relative;
116
+ display: flex;
117
+ align-items: center;
118
+ padding: ${t(e.spacing24)} ${t(e.spacing32)};
119
+ border-bottom: ${t(r.widthXs)} solid ${t(a.gray200)};
120
+ min-height: 40px;
121
+ }
122
+
123
+ .header telia-button {
124
+ position: absolute;
125
+ top: ${t(e.spacing20)};
126
+ right: ${t(e.spacing24)};
127
+ }
128
+
129
+ .sub-header {
130
+ padding: ${t(e.spacing24)} ${t(e.spacing32)};
131
+ border-bottom: ${t(r.widthXs)} solid ${t(a.gray200)};
132
+ display: none;
133
+ }
134
+
135
+ .body {
136
+ min-width: calc(${t(e.spacing128)} * 2);
137
+ }
138
+
139
+ .footer {
140
+ display: flex;
141
+ justify-content: flex-end;
142
+ gap: ${t(e.spacing16)};
143
+ }
144
+ `}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){window.removeEventListener("keydown",this.onKeyDown),super.disconnectedCallback()}render(){return i`
145
+ ${this.containStyling()} ${this.scrollStyling()} ${this.subHeaderStyling()}
146
+ <div class="backdrop" @click=${this.onBackdropClick}></div>
147
+ <div class="container">
148
+ <dialog open>
149
+ <div class="header">
150
+ <telia-heading tag="h3" variant="title-100">${this.header}</telia-heading>
151
+ ${this.closeButton()}
152
+ </div>
153
+ <div class="sub-header">
154
+ <slot name="sub-header" @slotchange=${this.onSubHeaderSlotChange}></slot>
155
+ </div>
156
+ <div class="body">
157
+ <slot></slot>
158
+ </div>
159
+ ${this.footer()}
160
+ </dialog>
161
+ </div>
162
+ `}};n([d({type:String,attribute:"header"})],o.prototype,"header",2),n([d({type:Array})],o.prototype,"actions",2),n([d({type:Boolean,attribute:"required"})],o.prototype,"required",2),n([d({type:String,attribute:"scroll-mode"})],o.prototype,"scrollMode",2),n([$()],o.prototype,"hasSubHeader",2),n([d({type:Boolean,attribute:"contain"})],o.prototype,"contain",2);export{o as a};
@@ -0,0 +1,16 @@
1
+ import{a}from"./chunk-AIATXCVP.js";var d=(e=>(e[e.AlreadyInitialized=1e3]="AlreadyInitialized",e[e.NoAppName=1001]="NoAppName",e[e.MissingAppController=1002]="MissingAppController",e[e.MissingCapabilityOnApp=1003]="MissingCapabilityOnApp",e[e.MissingManagedObjectProvider=1004]="MissingManagedObjectProvider",e[e.NoManifest=1005]="NoManifest",e[e.NoRootElement=1006]="NoRootElement",e[e.NoView=1007]="NoView",e[e.CookieKeyNotDefined=1008]="CookieKeyNotDefined",e[e.CookieCategoryNotAllowed=1009]="CookieCategoryNotAllowed",e[e.StorageKeyNotDefined=1010]="StorageKeyNotDefined",e[e.StorageCategoryNotAllowed=1011]="StorageCategoryNotAllowed",e[e.LocalizationTemplateNotDefined=1012]="LocalizationTemplateNotDefined",e[e.NonViewOperation=1013]="NonViewOperation",e))(d||{}),u=(e=>(e[e.CurrentUserMissingProvider=2e3]="CurrentUserMissingProvider",e[e.CurrentUserGatewayNotStarted=2001]="CurrentUserGatewayNotStarted",e[e.CurrentUserMissingBackend=2002]="CurrentUserMissingBackend",e[e.CurrentUserMissingInDatabase=2003]="CurrentUserMissingInDatabase",e))(u||{});function h(e){let r=Object.entries(e).reduce((i,s)=>{let[o,l]=s;return typeof l>"u"||(typeof l=="object"&&l!==null?i[o]=JSON.stringify(l):i[o]=l),i},{});return Object.keys(r).length?`?${new URLSearchParams(r)}`:""}function c(e="",r="",i={}){let s=f().replace(location.origin,""),o=h(i);return e?r?`${s}/${e}/${r}${o}`:`${s}/${e}${o}`:`${s}${o}`}function f(){return globalThis.__ALLIANCE_RUNTIME_ROOT_URL?globalThis.__ALLIANCE_RUNTIME_ROOT_URL:window.origin}var y=(e=>(e.Primary="primary",e.Secondary="secondary",e.Expressive="expressive",e.Destructive="destructive",e.Text="text",e.PrimaryWhite="primary-white",e.SecondaryWhite="secondary-white",e.ExpressiveWhite="expressive-white",e.TertiaryPurple="tertiary-purple",e))(y||{});function p(e){return r=>{r.key==="Enter"&&e(r)}}import{LitElement as b,css as g,html as m}from"lit";import{property as n}from"lit/decorators.js";function w(e=""){return location.href.replace(location.origin,"").startsWith(e)}var t=class extends b{constructor(){super();this.navigate=()=>{this.active||(history.pushState({},"",this._href),window.dispatchEvent(new Event("popstate")))};this.clickHandler=i=>{!this.app||this.download||(i.preventDefault(),this.navigate())};this.updateActive=()=>{this.active=w(this._href)};this.computeHref=()=>{if(this.app){this._href=this.href=c(this.app,this.capability,this.args),this.updateActive();return}if(this.href)return this.capability="",this._href=this.href;throw new Error("The <alliance-link> component requires either the 'app' property or 'href' property!")};this.args={},this.download=!1,this.target="_self",this.href=this._href="",this.capability="launch",this.active=!1}static{this.styles=g`
2
+ :host {
3
+ display: contents;
4
+ }
5
+ `}connectedCallback(){super.connectedCallback(),window.addEventListener("popstate",this.updateActive),this.computeHref()}disconnectedCallback(){window.removeEventListener("popstate",this.updateActive),super.disconnectedCallback()}attributeChangedCallback(i,s,o){super.attributeChangedCallback(i,s,o),setTimeout(()=>this.computeHref())}render(){return m`<a
6
+ part="anchor"
7
+ rel=${this.rel}
8
+ .target=${this.target}
9
+ .href=${this._href}
10
+ ?download=${this.download}
11
+ ?active=${this.active}
12
+ @click=${this.clickHandler}
13
+ @keydown=${p(this.clickHandler)}
14
+ >
15
+ <slot></slot>
16
+ </a>`}};a([n({type:String,attribute:!0,reflect:!0})],t.prototype,"capability",2),a([n({type:String,attribute:!0,reflect:!0})],t.prototype,"app",2),a([n({type:Object,attribute:!0,reflect:!0})],t.prototype,"args",2),a([n({type:String,attribute:!0,reflect:!0})],t.prototype,"href",2),a([n({type:String})],t.prototype,"target",2),a([n({type:String,attribute:!0,reflect:!0})],t.prototype,"rel",2),a([n({type:Boolean,attribute:!0,reflect:!0})],t.prototype,"download",2),a([n({type:String,attribute:!1,reflect:!1})],t.prototype,"_href",2),a([n({type:Boolean,attribute:!0,reflect:!0})],t.prototype,"active",2);export{t as a};
@@ -0,0 +1,33 @@
1
+ import * as lit from 'lit';
2
+ import { LitElement } from 'lit';
3
+ import { SerializeableObject } from '@telia-ace/alliance-internal-client-utilities';
4
+
5
+ declare class Link extends LitElement {
6
+ constructor();
7
+ static styles: lit.CSSResult;
8
+ capability: string;
9
+ app: string;
10
+ args: SerializeableObject;
11
+ /**
12
+ * Link properties
13
+ */
14
+ href?: string;
15
+ target?: string;
16
+ rel?: string;
17
+ download?: boolean;
18
+ navigate: () => void;
19
+ clickHandler: (event: MouseEvent | KeyboardEvent) => void;
20
+ updateActive: () => void;
21
+ connectedCallback(): void;
22
+ disconnectedCallback(): void;
23
+ attributeChangedCallback(_1: string, _2: string | null, _3: string | null): void;
24
+ /**
25
+ * Internal properties
26
+ */
27
+ private _href;
28
+ private active;
29
+ private computeHref;
30
+ render(): lit.TemplateResult<1>;
31
+ }
32
+
33
+ export { Link };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-XLNQVDOQ.js";import"../../chunk-AIATXCVP.js";export{a as Link};