@valtimo/layout 0.0.0

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 (292) hide show
  1. package/assets/css/app.css +30650 -0
  2. package/assets/img/1088x336.png +0 -0
  3. package/assets/img/140x140.png +0 -0
  4. package/assets/img/342x239.png +0 -0
  5. package/assets/img/346x106.png +0 -0
  6. package/assets/img/362x239.png +0 -0
  7. package/assets/img/404-bg.png +0 -0
  8. package/assets/img/529x161.png +0 -0
  9. package/assets/img/accessControl.svg +186 -0
  10. package/assets/img/avatar-150.png +0 -0
  11. package/assets/img/avatar.png +0 -0
  12. package/assets/img/avatar1.png +0 -0
  13. package/assets/img/avatar2.png +0 -0
  14. package/assets/img/avatar3.png +0 -0
  15. package/assets/img/avatar4.png +0 -0
  16. package/assets/img/avatar5.png +0 -0
  17. package/assets/img/avatar6.png +0 -0
  18. package/assets/img/bitbucket.png +0 -0
  19. package/assets/img/dashboard.svg +138 -0
  20. package/assets/img/db-icon.png +0 -0
  21. package/assets/img/dribbble.png +0 -0
  22. package/assets/img/dropbox.png +0 -0
  23. package/assets/img/emptystate-empty.svg +261 -0
  24. package/assets/img/emptystate-error.svg +245 -0
  25. package/assets/img/emptystate-error404.svg +146 -0
  26. package/assets/img/emptystate-no-result.svg +327 -0
  27. package/assets/img/emptystate-not-authorised.svg +279 -0
  28. package/assets/img/emptystate-success.svg +118 -0
  29. package/assets/img/fb-icon.png +0 -0
  30. package/assets/img/fl-icon.png +0 -0
  31. package/assets/img/gh-icon.png +0 -0
  32. package/assets/img/github.png +0 -0
  33. package/assets/img/gp-icon.png +0 -0
  34. package/assets/img/in-icon.png +0 -0
  35. package/assets/img/logo-fav.png +0 -0
  36. package/assets/img/logo-symbol.png +0 -0
  37. package/assets/img/logo-white-xx.png +0 -0
  38. package/assets/img/logo-white.png +0 -0
  39. package/assets/img/logo-white.svg +1 -0
  40. package/assets/img/logo-xx.png +0 -0
  41. package/assets/img/logo.png +0 -0
  42. package/assets/img/logo.svg +1 -0
  43. package/assets/img/mail_chimp.png +0 -0
  44. package/assets/img/marker.svg +3 -0
  45. package/assets/img/no-dashboards.svg +156 -0
  46. package/assets/img/no-results.svg +88 -0
  47. package/assets/img/no-widgets.svg +214 -0
  48. package/assets/img/pi-icon.png +0 -0
  49. package/assets/img/plugins.svg +1234 -0
  50. package/assets/img/slack.png +0 -0
  51. package/assets/img/slack_logo.png +0 -0
  52. package/assets/img/tu-icon.png +0 -0
  53. package/assets/img/tw-icon.png +0 -0
  54. package/assets/img/user-profile-display.png +0 -0
  55. package/assets/img/valtimo/favicons/android-chrome-192x192.png +0 -0
  56. package/assets/img/valtimo/favicons/android-chrome-256x256.png +0 -0
  57. package/assets/img/valtimo/favicons/apple-touch-icon.png +0 -0
  58. package/assets/img/valtimo/favicons/browserconfig.xml +25 -0
  59. package/assets/img/valtimo/favicons/favicon-16x16.png +0 -0
  60. package/assets/img/valtimo/favicons/favicon-32x32.png +0 -0
  61. package/assets/img/valtimo/favicons/favicon.ico +0 -0
  62. package/assets/img/valtimo/favicons/manifest.json +18 -0
  63. package/assets/img/valtimo/favicons/mstile-150x150.png +0 -0
  64. package/assets/img/valtimo/favicons/safari-pinned-tab.svg +19 -0
  65. package/assets/img/widget-management/density/compact.svg +65 -0
  66. package/assets/img/widget-management/density/default.svg +26 -0
  67. package/assets/img/widget-management/style/default.svg +26 -0
  68. package/assets/img/widget-management/style/high-contrast.svg +26 -0
  69. package/assets/img/widget-management/types/angular.svg +66 -0
  70. package/assets/img/widget-management/types/collection.svg +1 -0
  71. package/assets/img/widget-management/types/fields.svg +26 -0
  72. package/assets/img/widget-management/types/formio.svg +55 -0
  73. package/assets/img/widget-management/types/map.svg +63 -0
  74. package/assets/img/widget-management/types/table.svg +119 -0
  75. package/assets/img/widget-management/width/full-width.svg +44 -0
  76. package/assets/img/widget-management/width/half.svg +26 -0
  77. package/assets/img/widget-management/width/quarter.svg +17 -0
  78. package/assets/img/widget-management/width/three-quarters.svg +35 -0
  79. package/assets/img/yt-icon.png +0 -0
  80. package/assets/js/app.js +3062 -0
  81. package/assets/lib/jquery.gritter/images/gritter-bg.png +0 -0
  82. package/assets/lib/roboto/Roboto-Black.eot +0 -0
  83. package/assets/lib/roboto/Roboto-Black.svg +10968 -0
  84. package/assets/lib/roboto/Roboto-Black.ttf +0 -0
  85. package/assets/lib/roboto/Roboto-Black.woff +0 -0
  86. package/assets/lib/roboto/Roboto-Black.woff2 +0 -0
  87. package/assets/lib/roboto/Roboto-BlackItalic.eot +0 -0
  88. package/assets/lib/roboto/Roboto-BlackItalic.svg +11086 -0
  89. package/assets/lib/roboto/Roboto-BlackItalic.ttf +0 -0
  90. package/assets/lib/roboto/Roboto-BlackItalic.woff +0 -0
  91. package/assets/lib/roboto/Roboto-BlackItalic.woff2 +0 -0
  92. package/assets/lib/roboto/Roboto-Bold.eot +0 -0
  93. package/assets/lib/roboto/Roboto-Bold.svg +11010 -0
  94. package/assets/lib/roboto/Roboto-Bold.ttf +0 -0
  95. package/assets/lib/roboto/Roboto-Bold.woff +0 -0
  96. package/assets/lib/roboto/Roboto-Bold.woff2 +0 -0
  97. package/assets/lib/roboto/Roboto-BoldItalic.eot +0 -0
  98. package/assets/lib/roboto/Roboto-BoldItalic.svg +11096 -0
  99. package/assets/lib/roboto/Roboto-BoldItalic.ttf +0 -0
  100. package/assets/lib/roboto/Roboto-BoldItalic.woff +0 -0
  101. package/assets/lib/roboto/Roboto-BoldItalic.woff2 +0 -0
  102. package/assets/lib/roboto/Roboto-Light.eot +0 -0
  103. package/assets/lib/roboto/Roboto-Light.svg +10564 -0
  104. package/assets/lib/roboto/Roboto-Light.ttf +0 -0
  105. package/assets/lib/roboto/Roboto-Light.woff +0 -0
  106. package/assets/lib/roboto/Roboto-Light.woff2 +0 -0
  107. package/assets/lib/roboto/Roboto-LightItalic.eot +0 -0
  108. package/assets/lib/roboto/Roboto-LightItalic.svg +10646 -0
  109. package/assets/lib/roboto/Roboto-LightItalic.ttf +0 -0
  110. package/assets/lib/roboto/Roboto-LightItalic.woff +0 -0
  111. package/assets/lib/roboto/Roboto-LightItalic.woff2 +0 -0
  112. package/assets/lib/roboto/Roboto-Medium.eot +0 -0
  113. package/assets/lib/roboto/Roboto-Medium.svg +10999 -0
  114. package/assets/lib/roboto/Roboto-Medium.ttf +0 -0
  115. package/assets/lib/roboto/Roboto-Medium.woff +0 -0
  116. package/assets/lib/roboto/Roboto-Medium.woff2 +0 -0
  117. package/assets/lib/roboto/Roboto-MediumItalic.eot +0 -0
  118. package/assets/lib/roboto/Roboto-MediumItalic.svg +11100 -0
  119. package/assets/lib/roboto/Roboto-MediumItalic.ttf +0 -0
  120. package/assets/lib/roboto/Roboto-MediumItalic.woff +0 -0
  121. package/assets/lib/roboto/Roboto-MediumItalic.woff2 +0 -0
  122. package/assets/lib/roboto/Roboto-Regular.eot +0 -0
  123. package/assets/lib/roboto/Roboto-Regular.svg +10520 -0
  124. package/assets/lib/roboto/Roboto-Regular.ttf +0 -0
  125. package/assets/lib/roboto/Roboto-Regular.woff +0 -0
  126. package/assets/lib/roboto/Roboto-Regular.woff2 +0 -0
  127. package/assets/lib/roboto/Roboto-RegularItalic.eot +0 -0
  128. package/assets/lib/roboto/Roboto-RegularItalic.svg +10629 -0
  129. package/assets/lib/roboto/Roboto-RegularItalic.ttf +0 -0
  130. package/assets/lib/roboto/Roboto-RegularItalic.woff +0 -0
  131. package/assets/lib/roboto/Roboto-RegularItalic.woff2 +0 -0
  132. package/assets/lib/roboto/Roboto-Thin.eot +0 -0
  133. package/assets/lib/roboto/Roboto-Thin.svg +10617 -0
  134. package/assets/lib/roboto/Roboto-Thin.ttf +0 -0
  135. package/assets/lib/roboto/Roboto-Thin.woff +0 -0
  136. package/assets/lib/roboto/Roboto-Thin.woff2 +0 -0
  137. package/assets/lib/roboto/Roboto-ThinItalic.eot +0 -0
  138. package/assets/lib/roboto/Roboto-ThinItalic.svg +10726 -0
  139. package/assets/lib/roboto/Roboto-ThinItalic.ttf +0 -0
  140. package/assets/lib/roboto/Roboto-ThinItalic.woff +0 -0
  141. package/assets/lib/roboto/Roboto-ThinItalic.woff2 +0 -0
  142. package/fesm2022/valtimo-layout.mjs +5019 -0
  143. package/fesm2022/valtimo-layout.mjs.map +1 -0
  144. package/index.d.ts +6 -0
  145. package/lib/components/index.d.ts +16 -0
  146. package/lib/components/index.d.ts.map +1 -0
  147. package/lib/components/layout/index.d.ts +2 -0
  148. package/lib/components/layout/index.d.ts.map +1 -0
  149. package/lib/components/layout/layout.component.d.ts +22 -0
  150. package/lib/components/layout/layout.component.d.ts.map +1 -0
  151. package/lib/components/layout-internal/index.d.ts +2 -0
  152. package/lib/components/layout-internal/index.d.ts.map +1 -0
  153. package/lib/components/layout-internal/layout-internal.component.d.ts +21 -0
  154. package/lib/components/layout-internal/layout-internal.component.d.ts.map +1 -0
  155. package/lib/components/layout-public/index.d.ts +2 -0
  156. package/lib/components/layout-public/index.d.ts.map +1 -0
  157. package/lib/components/layout-public/layout-public.component.d.ts +6 -0
  158. package/lib/components/layout-public/layout-public.component.d.ts.map +1 -0
  159. package/lib/components/translation-management/index.d.ts +2 -0
  160. package/lib/components/translation-management/index.d.ts.map +1 -0
  161. package/lib/components/translation-management/translation-management.component.d.ts +46 -0
  162. package/lib/components/translation-management/translation-management.component.d.ts.map +1 -0
  163. package/lib/components/widget-action-button/widget-action-button.component.d.ts +14 -0
  164. package/lib/components/widget-action-button/widget-action-button.component.d.ts.map +1 -0
  165. package/lib/components/widget-block/index.d.ts +2 -0
  166. package/lib/components/widget-block/index.d.ts.map +1 -0
  167. package/lib/components/widget-block/widget-block.component.d.ts +39 -0
  168. package/lib/components/widget-block/widget-block.component.d.ts.map +1 -0
  169. package/lib/components/widget-collection/index.d.ts +2 -0
  170. package/lib/components/widget-collection/index.d.ts.map +1 -0
  171. package/lib/components/widget-collection/widget-collection.component.d.ts +45 -0
  172. package/lib/components/widget-collection/widget-collection.component.d.ts.map +1 -0
  173. package/lib/components/widget-container/index.d.ts +2 -0
  174. package/lib/components/widget-container/index.d.ts.map +1 -0
  175. package/lib/components/widget-container/widget-container.component.d.ts +30 -0
  176. package/lib/components/widget-container/widget-container.component.d.ts.map +1 -0
  177. package/lib/components/widget-custom/index.d.ts +2 -0
  178. package/lib/components/widget-custom/index.d.ts.map +1 -0
  179. package/lib/components/widget-custom/widget-custom.component.d.ts +31 -0
  180. package/lib/components/widget-custom/widget-custom.component.d.ts.map +1 -0
  181. package/lib/components/widget-field/index.d.ts +2 -0
  182. package/lib/components/widget-field/index.d.ts.map +1 -0
  183. package/lib/components/widget-field/widget-field.component.d.ts +36 -0
  184. package/lib/components/widget-field/widget-field.component.d.ts.map +1 -0
  185. package/lib/components/widget-formio/index.d.ts +2 -0
  186. package/lib/components/widget-formio/index.d.ts.map +1 -0
  187. package/lib/components/widget-formio/widget-formio.component.d.ts +32 -0
  188. package/lib/components/widget-formio/widget-formio.component.d.ts.map +1 -0
  189. package/lib/components/widget-interactive-table/index.d.ts +2 -0
  190. package/lib/components/widget-interactive-table/index.d.ts.map +1 -0
  191. package/lib/components/widget-interactive-table/widget-interactive-table.component.d.ts +37 -0
  192. package/lib/components/widget-interactive-table/widget-interactive-table.component.d.ts.map +1 -0
  193. package/lib/components/widget-management/index.d.ts +5 -0
  194. package/lib/components/widget-management/index.d.ts.map +1 -0
  195. package/lib/components/widget-management/management/widget-management.component.d.ts +27 -0
  196. package/lib/components/widget-management/management/widget-management.component.d.ts.map +1 -0
  197. package/lib/components/widget-management/management-action-button/widget-management-action-button.component.d.ts +30 -0
  198. package/lib/components/widget-management/management-action-button/widget-management-action-button.component.d.ts.map +1 -0
  199. package/lib/components/widget-management/management-content/collection/widget-management-collection.component.d.ts +65 -0
  200. package/lib/components/widget-management/management-content/collection/widget-management-collection.component.d.ts.map +1 -0
  201. package/lib/components/widget-management/management-content/custom/widget-management-custom.component.d.ts +44 -0
  202. package/lib/components/widget-management/management-content/custom/widget-management-custom.component.d.ts.map +1 -0
  203. package/lib/components/widget-management/management-content/fields/column/widget-management-fields-column.component.d.ts +60 -0
  204. package/lib/components/widget-management/management-content/fields/column/widget-management-fields-column.component.d.ts.map +1 -0
  205. package/lib/components/widget-management/management-content/fields/widget-management-fields.component.d.ts +39 -0
  206. package/lib/components/widget-management/management-content/fields/widget-management-fields.component.d.ts.map +1 -0
  207. package/lib/components/widget-management/management-content/formio/widget-management-widget-formio.component.d.ts +45 -0
  208. package/lib/components/widget-management/management-content/formio/widget-management-widget-formio.component.d.ts.map +1 -0
  209. package/lib/components/widget-management/management-content/index.d.ts +6 -0
  210. package/lib/components/widget-management/management-content/index.d.ts.map +1 -0
  211. package/lib/components/widget-management/management-content/interactive-table/widget-management-interactive-table.component.d.ts +27 -0
  212. package/lib/components/widget-management/management-content/interactive-table/widget-management-interactive-table.component.d.ts.map +1 -0
  213. package/lib/components/widget-management/management-content/map/widget-management-map.component.d.ts +33 -0
  214. package/lib/components/widget-management/management-content/map/widget-management-map.component.d.ts.map +1 -0
  215. package/lib/components/widget-management/management-content/table/widget-management-table.component.d.ts +42 -0
  216. package/lib/components/widget-management/management-content/table/widget-management-table.component.d.ts.map +1 -0
  217. package/lib/components/widget-management/management-divider-modal/widget-management-divider-modal.component.d.ts +34 -0
  218. package/lib/components/widget-management/management-divider-modal/widget-management-divider-modal.component.d.ts.map +1 -0
  219. package/lib/components/widget-management/management-editor/widget-management-editor.component.d.ts +53 -0
  220. package/lib/components/widget-management/management-editor/widget-management-editor.component.d.ts.map +1 -0
  221. package/lib/components/widget-management/management-process-selector/widget-management-process-selector.component.d.ts +29 -0
  222. package/lib/components/widget-management/management-process-selector/widget-management-process-selector.component.d.ts.map +1 -0
  223. package/lib/components/widget-management/management-wizard/steps/index.d.ts +8 -0
  224. package/lib/components/widget-management/management-wizard/steps/index.d.ts.map +1 -0
  225. package/lib/components/widget-management/management-wizard/steps/widget-wizard-content-step/widget-wizard-content-step.component.d.ts +16 -0
  226. package/lib/components/widget-management/management-wizard/steps/widget-wizard-content-step/widget-wizard-content-step.component.d.ts.map +1 -0
  227. package/lib/components/widget-management/management-wizard/steps/widget-wizard-density-step/widget-wizard-density-step.component.d.ts +15 -0
  228. package/lib/components/widget-management/management-wizard/steps/widget-wizard-density-step/widget-wizard-density-step.component.d.ts.map +1 -0
  229. package/lib/components/widget-management/management-wizard/steps/widget-wizard-display-conditions-step/widget-wizard-display-conditions-step.component.d.ts +33 -0
  230. package/lib/components/widget-management/management-wizard/steps/widget-wizard-display-conditions-step/widget-wizard-display-conditions-step.component.d.ts.map +1 -0
  231. package/lib/components/widget-management/management-wizard/steps/widget-wizard-style-step/widget-wizard-style-step.component.d.ts +15 -0
  232. package/lib/components/widget-management/management-wizard/steps/widget-wizard-style-step/widget-wizard-style-step.component.d.ts.map +1 -0
  233. package/lib/components/widget-management/management-wizard/steps/widget-wizard-type-step/widget-wizard-type-step.component.d.ts +15 -0
  234. package/lib/components/widget-management/management-wizard/steps/widget-wizard-type-step/widget-wizard-type-step.component.d.ts.map +1 -0
  235. package/lib/components/widget-management/management-wizard/steps/widget-wizard-width-step/widget-wizard-width-step.component.d.ts +16 -0
  236. package/lib/components/widget-management/management-wizard/steps/widget-wizard-width-step/widget-wizard-width-step.component.d.ts.map +1 -0
  237. package/lib/components/widget-management/management-wizard/widget-management-wizard.component.d.ts +46 -0
  238. package/lib/components/widget-management/management-wizard/widget-management-wizard.component.d.ts.map +1 -0
  239. package/lib/components/widget-map/index.d.ts +2 -0
  240. package/lib/components/widget-map/index.d.ts.map +1 -0
  241. package/lib/components/widget-map/widget-map.component.d.ts +27 -0
  242. package/lib/components/widget-map/widget-map.component.d.ts.map +1 -0
  243. package/lib/components/widget-table/index.d.ts +2 -0
  244. package/lib/components/widget-table/index.d.ts.map +1 -0
  245. package/lib/components/widget-table/widget-table.component.d.ts +27 -0
  246. package/lib/components/widget-table/widget-table.component.d.ts.map +1 -0
  247. package/lib/constants/custom-widget-token.d.ts +5 -0
  248. package/lib/constants/custom-widget-token.d.ts.map +1 -0
  249. package/lib/constants/index.d.ts +4 -0
  250. package/lib/constants/index.d.ts.map +1 -0
  251. package/lib/constants/widget-management.constants.d.ts +5 -0
  252. package/lib/constants/widget-management.constants.d.ts.map +1 -0
  253. package/lib/constants/widget.constants.d.ts +6 -0
  254. package/lib/constants/widget.constants.d.ts.map +1 -0
  255. package/lib/interfaces/index.d.ts +3 -0
  256. package/lib/interfaces/index.d.ts.map +1 -0
  257. package/lib/interfaces/widget-details-component.interface.d.ts +9 -0
  258. package/lib/interfaces/widget-details-component.interface.d.ts.map +1 -0
  259. package/lib/interfaces/widget-management-service.interface.d.ts +12 -0
  260. package/lib/interfaces/widget-management-service.interface.d.ts.map +1 -0
  261. package/lib/layout.module.d.ts +15 -0
  262. package/lib/layout.module.d.ts.map +1 -0
  263. package/lib/models/index.d.ts +6 -0
  264. package/lib/models/index.d.ts.map +1 -0
  265. package/lib/models/widget-content.model.d.ts +62 -0
  266. package/lib/models/widget-content.model.d.ts.map +1 -0
  267. package/lib/models/widget-display.model.d.ts +62 -0
  268. package/lib/models/widget-display.model.d.ts.map +1 -0
  269. package/lib/models/widget-editor.model.d.ts +10 -0
  270. package/lib/models/widget-editor.model.d.ts.map +1 -0
  271. package/lib/models/widget-wizard.model.d.ts +47 -0
  272. package/lib/models/widget-wizard.model.d.ts.map +1 -0
  273. package/lib/models/widget.model.d.ts +142 -0
  274. package/lib/models/widget.model.d.ts.map +1 -0
  275. package/lib/services/index.d.ts +4 -0
  276. package/lib/services/index.d.ts.map +1 -0
  277. package/lib/services/layout.service.d.ts +10 -0
  278. package/lib/services/layout.service.d.ts.map +1 -0
  279. package/lib/services/widget-fields.service.d.ts +17 -0
  280. package/lib/services/widget-fields.service.d.ts.map +1 -0
  281. package/lib/services/widget-layout.service.d.ts +35 -0
  282. package/lib/services/widget-layout.service.d.ts.map +1 -0
  283. package/lib/services/widget-wizard.service.d.ts +47 -0
  284. package/lib/services/widget-wizard.service.d.ts.map +1 -0
  285. package/lib/translation-management-routing.module.d.ts +8 -0
  286. package/lib/translation-management-routing.module.d.ts.map +1 -0
  287. package/lib/translation-management.module.d.ts +13 -0
  288. package/lib/translation-management.module.d.ts.map +1 -0
  289. package/package.json +35 -0
  290. package/public_api.d.ts +10 -0
  291. package/public_api.d.ts.map +1 -0
  292. package/valtimo-layout.d.ts.map +1 -0
@@ -0,0 +1,47 @@
1
+ import { Type } from '@angular/core';
2
+ import { BasicWidget, WidgetType } from './widget.model';
3
+ declare enum WidgetWizardStep {
4
+ TYPE = "type",
5
+ WIDTH = "width",
6
+ DENSITY = "density",
7
+ STYLE = "style",
8
+ CONTENT = "content",
9
+ DISPLAY_CONDITIONS = "displayConditions"
10
+ }
11
+ declare enum WidgetWizardCloseEventType {
12
+ CANCEL = "cancel",
13
+ CREATE = "create",
14
+ EDIT = "edit"
15
+ }
16
+ declare enum WidgetStyle {
17
+ DEFAULT = "default",
18
+ HIGH_CONTRAST = "high-contrast"
19
+ }
20
+ declare enum WidgetDensity {
21
+ DEFAULT = "default",
22
+ COMPACT = "compact"
23
+ }
24
+ interface WidgetWizardCloseEvent {
25
+ type: WidgetWizardCloseEventType;
26
+ widget: BasicWidget | null;
27
+ }
28
+ interface WidgetTypeSelection {
29
+ titleKey: string;
30
+ descriptionKey: string;
31
+ illustrationUrl: string;
32
+ type: WidgetType;
33
+ component: Type<any>;
34
+ }
35
+ declare const WIZARD_STEP_COMPONENTS: Record<WidgetWizardStep, any>;
36
+ declare const AVAILABLE_WIDGETS: WidgetTypeSelection[];
37
+ declare const WIDGET_WIDTH_LABELS: {
38
+ [key: number]: string;
39
+ };
40
+ declare const WIDGET_STYLE_LABELS: {
41
+ [key: string]: string;
42
+ };
43
+ declare const WIDGET_DENSITY_LABELS: {
44
+ [key: string]: string;
45
+ };
46
+ export { AVAILABLE_WIDGETS, WIDGET_DENSITY_LABELS, WIDGET_STYLE_LABELS, WIDGET_WIDTH_LABELS, WidgetDensity, WidgetStyle, WidgetTypeSelection, WidgetWizardCloseEvent, WidgetWizardCloseEventType, WidgetWizardStep, WIZARD_STEP_COMPONENTS, };
47
+ //# sourceMappingURL=widget-wizard.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-wizard.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/models/widget-wizard.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAUnC,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AASvD,aAAK,gBAAgB;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,kBAAkB,sBAAsB;CACzC;AAED,aAAK,0BAA0B;IAC7B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,aAAK,WAAW;IACd,OAAO,YAAY;IACnB,aAAa,kBAAkB;CAChC;AAED,aAAK,aAAa;IAChB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,UAAU,sBAAsB;IAC9B,IAAI,EAAE,0BAA0B,CAAC;IACjC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;CAC5B;AAED,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;CACtB;AAED,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,GAAG,CAOzD,CAAC;AAEF,QAAA,MAAM,iBAAiB,EAAE,mBAAmB,EAkD3C,CAAC;AAEF,QAAA,MAAM,mBAAmB,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAKhD,CAAC;AAEF,QAAA,MAAM,mBAAmB,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAGhD,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAGlD,CAAC;AAEF,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,gBAAgB,EAChB,sBAAsB,GACvB,CAAC"}
@@ -0,0 +1,142 @@
1
+ import { Type } from '@angular/core';
2
+ import { Condition } from '@valtimo/shared';
3
+ import { WidgetCollectionContent, WidgetContentProperties, WidgetCustomContent, WidgetFieldsContent, WidgetInteractiveTableContent, WidgetMapContent, WidgetTableContent } from './widget-content.model';
4
+ import { WidgetDisplayType } from './widget-display.model';
5
+ declare enum WidgetType {
6
+ FIELDS = "fields",
7
+ INTERACTIVE_TABLE = "interactive-table",
8
+ TABLE = "table",
9
+ CUSTOM = "custom",
10
+ COLLECTION = "collection",
11
+ FORMIO = "formio",
12
+ DIVIDER = "divider",
13
+ MAP = "map"
14
+ }
15
+ type WidgetWidth = 1 | 2 | 3 | 4;
16
+ type CollectionFieldWidth = 'half' | 'full';
17
+ interface WidgetAction {
18
+ name?: string;
19
+ processDefinitionKey?: string;
20
+ caseDefinitionKey?: string;
21
+ navigateTo?: string;
22
+ }
23
+ interface BasicWidget {
24
+ type: WidgetType;
25
+ title: string;
26
+ icon?: string;
27
+ width: WidgetWidth;
28
+ highContrast: boolean;
29
+ key: string;
30
+ properties?: WidgetContentProperties;
31
+ isCompact?: boolean;
32
+ actions?: WidgetAction[];
33
+ displayConditions: Array<Condition>;
34
+ }
35
+ interface FieldsWidgetValue {
36
+ key: string;
37
+ title: string;
38
+ value: string;
39
+ ellipsisCharacterLimit?: number;
40
+ displayProperties?: WidgetDisplayType;
41
+ }
42
+ interface GeoJsonSource {
43
+ key: string;
44
+ }
45
+ interface MapData {
46
+ geoJsonFeatureCollection: any;
47
+ }
48
+ interface FieldsWidget extends BasicWidget {
49
+ type: WidgetType.FIELDS;
50
+ properties: WidgetFieldsContent;
51
+ }
52
+ interface CollectionWidget extends BasicWidget {
53
+ type: WidgetType.COLLECTION;
54
+ properties: WidgetCollectionContent;
55
+ }
56
+ interface TableWidget extends BasicWidget {
57
+ type: WidgetType.TABLE;
58
+ properties: WidgetTableContent;
59
+ }
60
+ interface InteractiveTableWidget extends BasicWidget {
61
+ type: WidgetType.INTERACTIVE_TABLE;
62
+ properties: WidgetInteractiveTableContent;
63
+ }
64
+ interface InteractiveTableWidget extends BasicWidget {
65
+ type: WidgetType.INTERACTIVE_TABLE;
66
+ properties: WidgetInteractiveTableContent;
67
+ }
68
+ interface CustomWidget extends BasicWidget {
69
+ type: WidgetType.CUSTOM;
70
+ properties: WidgetCustomContent;
71
+ }
72
+ interface FormioWidget extends BasicWidget {
73
+ type: WidgetType.FORMIO;
74
+ properties: {
75
+ formDefinitionName: string;
76
+ };
77
+ }
78
+ interface DividerWidget extends BasicWidget {
79
+ type: WidgetType.DIVIDER;
80
+ }
81
+ interface MapWidget extends BasicWidget {
82
+ type: WidgetType.MAP;
83
+ properties: WidgetMapContent;
84
+ }
85
+ type Widget = FieldsWidget | CollectionWidget | CustomWidget | TableWidget | InteractiveTableWidget | FormioWidget | DividerWidget | MapWidget;
86
+ type WidgetWithUuid = Widget & {
87
+ uuid: string;
88
+ };
89
+ type FormioWidgetWidgetWithUuid = FormioWidget & {
90
+ uuid: string;
91
+ };
92
+ interface WidgetWidthsPx {
93
+ [uuid: string]: number;
94
+ }
95
+ interface WidgetContentHeightsPx {
96
+ [uuid: string]: number;
97
+ }
98
+ interface WidgetContentHeightsPxWithContainerWidth {
99
+ [uuid: string]: {
100
+ containerWidth: number;
101
+ height: number;
102
+ };
103
+ }
104
+ interface WidgetConfigurationBin {
105
+ configurationKey: string;
106
+ width: number;
107
+ height: number;
108
+ }
109
+ interface WidgetPackResultItem {
110
+ width: number;
111
+ height: number;
112
+ x: number;
113
+ y: number;
114
+ item: WidgetConfigurationBin;
115
+ }
116
+ interface WidgetPackResult {
117
+ height: number;
118
+ width: number;
119
+ items: WidgetPackResultItem[];
120
+ }
121
+ interface MaxRectsResult extends WidgetConfigurationBin {
122
+ x: number;
123
+ y: number;
124
+ }
125
+ interface WidgetPackResultItemsByRow {
126
+ [rowY: string]: WidgetPackResultItem[];
127
+ }
128
+ interface WidgetXY {
129
+ x: number;
130
+ y: number;
131
+ }
132
+ interface CustomWidgetConfig {
133
+ [componentKey: string]: Type<any>;
134
+ }
135
+ interface WidgetGroup {
136
+ divider: DividerWidget | null;
137
+ widgets: Widget[];
138
+ }
139
+ type WidgetComponentMap = Record<Exclude<WidgetType, WidgetType.DIVIDER>, Type<any>>;
140
+ type WidgetContext = 'case' | 'iko';
141
+ export { BasicWidget, Widget, WidgetAction, WidgetConfigurationBin, WidgetContentHeightsPx, WidgetContentHeightsPxWithContainerWidth, WidgetPackResult, WidgetType, WidgetWidth, WidgetWidthsPx, WidgetWithUuid, WidgetXY, CollectionFieldWidth, DividerWidget, FieldsWidget, FieldsWidgetValue, GeoJsonSource, MapData, CollectionWidget, CustomWidgetConfig, CustomWidget, TableWidget, InteractiveTableWidget, MapWidget, WidgetPackResultItem, WidgetPackResultItemsByRow, FormioWidgetWidgetWithUuid, MaxRectsResult, WidgetComponentMap, WidgetContext, WidgetGroup, };
142
+ //# sourceMappingURL=widget.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/models/widget.model.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,6BAA6B,EAC7B,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,wBAA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UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAErF,KAAK,aAAa,GAAG,MAAM,GAAG,KAAK,CAAC;AAEpC,OAAO,EACL,WAAW,EACX,MAAM,EACN,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EACtB,wCAAwC,EACxC,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACR,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,sBAAsB,EACtB,SAAS,EACT,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,WAAW,GACZ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './layout.service';
2
+ export * from './widget-fields.service';
3
+ export * from './widget-wizard.service';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/services/index.ts"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LayoutService {
3
+ private fullscreen;
4
+ constructor();
5
+ get isFullscreen(): boolean;
6
+ toggleFullscreen(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
9
+ }
10
+ //# sourceMappingURL=layout.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/services/layout.service.ts"],"names":[],"mappings":";AAkBA,qBAGa,aAAa;IACxB,OAAO,CAAC,UAAU,CAAS;;IAI3B,IAAW,YAAY,YAEtB;IAEM,gBAAgB;yCATZ,aAAa;6CAAb,aAAa;CAYzB"}
@@ -0,0 +1,17 @@
1
+ import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { ListItem } from 'carbon-components-angular';
4
+ import * as i0 from "@angular/core";
5
+ export declare class WidgetFieldsService {
6
+ private readonly fb;
7
+ private readonly translateService;
8
+ readonly displayTypeItems: ListItem[];
9
+ constructor(fb: FormBuilder, translateService: TranslateService);
10
+ getDisplayItemsSelected(control: AbstractControl): ListItem[];
11
+ onDisplayTypeSelected(mainKeysArray: string[], formGroup: FormGroup, event: {
12
+ item: ListItem;
13
+ }): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetFieldsService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<WidgetFieldsService>;
16
+ }
17
+ //# sourceMappingURL=widget-fields.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-fields.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/services/widget-fields.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,eAAe,EAAE,WAAW,EAAE,SAAS,EAAa,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,2BAA2B,CAAC;;AAGnD,qBAGa,mBAAmB;IAoE5B,OAAO,CAAC,QAAQ,CAAC,EAAE;IACnB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IApEnC,SAAgB,gBAAgB,EAAE,QAAQ,EAAE,CAgE1C;gBAGiB,EAAE,EAAE,WAAW,EACf,gBAAgB,EAAE,gBAAgB;IAG9C,uBAAuB,CAAC,OAAO,EAAE,eAAe,GAAG,QAAQ,EAAE;IAW7D,qBAAqB,CAC1B,aAAa,EAAE,MAAM,EAAE,EACvB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAC,GACtB,IAAI;yCAvFI,mBAAmB;6CAAnB,mBAAmB;CAqI/B"}
@@ -0,0 +1,35 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import Muuri from 'muuri';
4
+ import { WidgetWithUuid } from '../models/widget.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class WidgetLayoutService implements OnDestroy {
7
+ private readonly _containerWidthSubject$;
8
+ private readonly _widgetsSubject$;
9
+ private readonly _widgetDataLoadedSubject$;
10
+ private readonly _muuriSubject$;
11
+ private readonly _triggerMuuriLayout$;
12
+ private get _muuri$();
13
+ private get _containerWidth$();
14
+ get amountOfColumns$(): Observable<number>;
15
+ private get _widgets$();
16
+ private get _widgetDataLoaded$();
17
+ private readonly _widgetsWithExternalData$;
18
+ private readonly _widgetsWithExternalDataReady$;
19
+ private readonly _subscriptions;
20
+ get loaded$(): Observable<boolean>;
21
+ constructor();
22
+ ngOnDestroy(): void;
23
+ setMuuri(muuri: Muuri): void;
24
+ triggerMuuriLayout(): void;
25
+ setWidgets(widgets: WidgetWithUuid[]): void;
26
+ setWidgetWithExternalData(uuid: string): void;
27
+ setWidgetWithExternalDataReady(uuid: string): void;
28
+ setContainerWidth(width: number): void;
29
+ setWidgetDataLoaded(uuid: string): void;
30
+ reset(): void;
31
+ private openMuuriSubscription;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetLayoutService, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<WidgetLayoutService>;
34
+ }
35
+ //# sourceMappingURL=widget-layout.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-layout.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/services/widget-layout.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAa,SAAS,EAAC,MAAM,eAAe,CAAC;AACpD,O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@@ -0,0 +1,47 @@
1
+ import { Signal, WritableSignal } from '@angular/core';
2
+ import { BasicWidget, WidgetAction, WidgetContentProperties, WidgetContext, WidgetDensity, WidgetStyle, WidgetType, WidgetTypeSelection, WidgetWidth, WidgetWizardStep } from '../models';
3
+ import { Condition } from '@valtimo/shared';
4
+ import * as i0 from "@angular/core";
5
+ export declare class WidgetWizardService {
6
+ readonly $currentStepIndex: WritableSignal<number>;
7
+ readonly $currentStep: WritableSignal<WidgetWizardStep>;
8
+ readonly $selectedWidget: WritableSignal<WidgetTypeSelection | null>;
9
+ readonly $widgetWidth: WritableSignal<WidgetWidth | null>;
10
+ readonly $widgetStyle: WritableSignal<WidgetStyle | null>;
11
+ readonly $widgetDensity: WritableSignal<WidgetDensity | null>;
12
+ readonly $widgetContent: WritableSignal<WidgetContentProperties | null>;
13
+ readonly $widgetDisplayConditions: WritableSignal<Array<Condition> | null>;
14
+ readonly $widgetTitle: WritableSignal<string | null>;
15
+ readonly $widgetIcon: WritableSignal<string | null>;
16
+ readonly $widgetKey: WritableSignal<string | null>;
17
+ readonly $widgetActions: WritableSignal<WidgetAction[] | undefined>;
18
+ readonly $widgetContext: WritableSignal<WidgetContext | null>;
19
+ readonly $widgetContentValid: WritableSignal<boolean>;
20
+ readonly $widgetConditionsValid: WritableSignal<boolean>;
21
+ readonly $disableTitleInput: WritableSignal<boolean>;
22
+ readonly $disableActionButton: WritableSignal<boolean>;
23
+ readonly $widgetWizardSteps: WritableSignal<WidgetWizardStep[]>;
24
+ readonly $editMode: WritableSignal<boolean>;
25
+ private readonly _$stepCompleteCondition;
26
+ readonly $widgetWizardStepEnableCondition: Signal<Record<any, {
27
+ dependingStep: WidgetWizardStep;
28
+ condition: () => boolean;
29
+ }>>;
30
+ readonly $widgetWizardStepProperties: Signal<Record<Partial<WidgetWizardStep>, {
31
+ disabled: boolean;
32
+ complete: boolean;
33
+ }>>;
34
+ readonly $nextButtonDisabled: Signal<boolean>;
35
+ private _defaultWidth;
36
+ get defaultWidth(): WidgetWidth | null;
37
+ readonly $widgetsConfig: Signal<BasicWidget>;
38
+ readonly $usedWidgetKeys: WritableSignal<string[]>;
39
+ readonly $availableWidgetTypes: WritableSignal<WidgetType[] | null>;
40
+ resetWizard(): void;
41
+ resetWizardSteps(): void;
42
+ setDefaultWidth(width: number | null): void;
43
+ private isWidgetWidth;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetWizardService, never>;
45
+ static ɵprov: i0.ɵɵInjectableDeclaration<WidgetWizardService>;
46
+ }
47
+ //# sourceMappingURL=widget-wizard.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-wizard.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/layout/src/lib/services/widget-wizard.service.ts"],"names":[],"mappings":"AAeA,OAAO,EAAuB,MAAM,EAAU,cAAc,EAAC,MAAM,eAAe,CAAC;AAEnF,OAAO,EACL,WAAW,EACX,YAAY,EACZ,uBAAuB,EACvB,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;;AAG1C,qBAGa,mBAAmB;IAC9B,SAAgB,iBAAiB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAa;IAEtE,SAAgB,YAAY,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAiC;IAE/F,SAAgB,eAAe,EAAE,cAAc,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAgB;IAE3F,SAAgB,YAAY,EAAE,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,CAAgB;IAEhF,SAAgB,YAAY,EAAE,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,CAAgB;IAEhF,SAAgB,cAAc,EAAE,cAAc,CAAC,aAAa,GAAG,IAAI,CAAC,CAAgB;IAEpF,SAAgB,cAAc,EAAE,cAAc,CAAC,uBAAuB,GAAG,I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AEjC;IAEF,OAAO,CAAC,aAAa,CAAsB;IAE3C,IAAW,YAAY,IAAI,WAAW,GAAG,IAAI,CAE5C;IAED,SAAgB,cAAc,EAAE,MAAM,CAAC,WAAW,CAAC,CAW/C;IAEJ,SAAgB,eAAe,EAAE,cAAc,CAAC,MAAM,EAAE,CAAC,CAAc;IAEvE,SAAgB,qBAAqB,EAAE,cAAc,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAAgB;IAEnF,WAAW,IAAI,IAAI;IAoBnB,gBAAgB,IAAI,IAAI;IAWxB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAMlD,OAAO,CAAC,aAAa;yCAlKV,mBAAmB;6CAAnB,mBAAmB;CAqK/B"}
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ export declare class TranslationManagementRoutingModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslationManagementRoutingModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TranslationManagementRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<TranslationManagementRoutingModule>;
7
+ }
8
+ //# sourceMappingURL=translation-management-routing.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-management-routing.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/layout/src/lib/translation-management-routing.module.ts"],"names":[],"mappings":";;AA8BA,qBAIa,kCAAkC;yCAAlC,kCAAkC;0CAAlC,kCAAkC;0CAAlC,kCAAkC;CAAG"}
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/translation-management/translation-management.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@ngx-translate/core";
5
+ import * as i4 from "./translation-management-routing.module";
6
+ import * as i5 from "@valtimo/components";
7
+ import * as i6 from "carbon-components-angular";
8
+ export declare class TranslationManagementModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslationManagementModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TranslationManagementModule, [typeof i1.TranslationManagementComponent], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.TranslationManagementRoutingModule, typeof i5.MultiInputFormModule, typeof i5.CarbonMultiInputModule, typeof i6.LoadingModule, typeof i5.RenderInPageHeaderDirective, typeof i6.ButtonModule, typeof i6.IconModule, typeof i5.ConfirmationModalModule], never>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<TranslationManagementModule>;
12
+ }
13
+ //# sourceMappingURL=translation-management.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-management.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/layout/src/lib/translation-management.module.ts"],"names":[],"mappings":";;;;;;;AA6BA,qBAgBa,2BAA2B;yCAA3B,2BAA2B;0CAA3B,2BAA2B;0CAA3B,2BAA2B;CAAG"}
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@valtimo/layout",
3
+ "license": "EUPL-1.2",
4
+ "version": "0.0.0",
5
+ "peerDependencies": {
6
+ "@angular/common": "^19.2.8",
7
+ "@angular/core": "^19.2.8"
8
+ },
9
+ "dependencies": {
10
+ "@foxythemes/bootstrap-datetime-picker-bs4": "2.3.5",
11
+ "bootstrap": "4.6.2",
12
+ "popper.js": "1.16.1",
13
+ "jquery": "3.7.1",
14
+ "components-jqueryui": "1.12.1",
15
+ "moment": "2.30.1",
16
+ "perfect-scrollbar": "1.5.6",
17
+ "select2": "4.1.0-rc.0",
18
+ "tslib": "2.8.1",
19
+ "csp-header": "6.1.0",
20
+ "lodash": "4.17.21",
21
+ "ol": "10.7.0"
22
+ },
23
+ "module": "fesm2022/valtimo-layout.mjs",
24
+ "typings": "index.d.ts",
25
+ "exports": {
26
+ "./package.json": {
27
+ "default": "./package.json"
28
+ },
29
+ ".": {
30
+ "types": "./index.d.ts",
31
+ "default": "./fesm2022/valtimo-layout.mjs"
32
+ }
33
+ },
34
+ "sideEffects": false
35
+ }
@@ -0,0 +1,10 @@
1
+ export * from './lib/services';
2
+ export * from './lib/services/widget-layout.service';
3
+ export * from './lib/components/layout/layout.component';
4
+ export * from './lib/layout.module';
5
+ export * from './lib/translation-management.module';
6
+ export * from './lib/components';
7
+ export * from './lib/models';
8
+ export * from './lib/constants';
9
+ export * from './lib/interfaces';
10
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/layout/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qBAAqB,CAAC;AACpC,cAAc,qCAAqC,CAAC;AACpD,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-layout.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/layout/src/valtimo-layout.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}