@edm-sdui/sdui 1.0.1 → 1.0.3

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 (312) hide show
  1. package/edm-sdui-sdui.d.ts.map +1 -0
  2. package/esm2022/edm-sdui-sdui.mjs +5 -0
  3. package/esm2022/lib/components/navigation-controls/navigation-controls.component.mjs +27 -0
  4. package/esm2022/lib/components/uicomponent/button/button.component.mjs +47 -0
  5. package/esm2022/lib/components/uicomponent/column/column.component.mjs +23 -0
  6. package/esm2022/lib/components/uicomponent/image/image.component.mjs +48 -0
  7. package/esm2022/lib/components/uicomponent/label/label.component.mjs +49 -0
  8. package/esm2022/lib/components/uicomponent/row/row.component.mjs +23 -0
  9. package/esm2022/lib/components/uicomponent/row-divisor/row-divisor.component.mjs +22 -0
  10. package/esm2022/lib/components/uicomponent/search-bar/search-bar.component.mjs +99 -0
  11. package/esm2022/lib/components/uicomponent/space/space.component.mjs +20 -0
  12. package/esm2022/lib/components/uicomponent/tag/tag.component.mjs +50 -0
  13. package/esm2022/lib/components/uicomponent/uicomponent.component.mjs +41 -0
  14. package/esm2022/lib/components/uicomponent/zstack/zstack.component.mjs +23 -0
  15. package/esm2022/lib/components/uilayout/centered-content-layout/centered-content-layout.component.mjs +21 -0
  16. package/esm2022/lib/components/uilayout/single-column-layout/single-column-layout.component.mjs +21 -0
  17. package/esm2022/lib/components/uilayout/uinavigation/uinavigation.component.mjs +15 -0
  18. package/esm2022/lib/components/uiscreen/uiscreen.component.mjs +23 -0
  19. package/esm2022/lib/core/services/ui-action.service.mjs +42 -0
  20. package/esm2022/lib/core/services/uiscreen.service.mjs +150 -0
  21. package/esm2022/lib/core/tokens/sdui-config.token.mjs +3 -0
  22. package/esm2022/lib/core/uicomposition/enums/uicomponent-type.mjs +28 -0
  23. package/esm2022/lib/core/uicomposition/enums/uiplatform-type.mjs +6 -0
  24. package/esm2022/lib/core/uicomposition/enums/uiscene.mjs +5 -0
  25. package/esm2022/lib/core/uicomposition/enums/uiscreen-identifier.mjs +6 -0
  26. package/esm2022/lib/core/uicomposition/mapping/component-mapping.mjs +28 -0
  27. package/esm2022/lib/core/uicomposition/models/uicentered-content-layout.mjs +2 -0
  28. package/esm2022/lib/core/uicomposition/models/uicomponent.mjs +2 -0
  29. package/esm2022/lib/core/uicomposition/models/uielement.mjs +2 -0
  30. package/esm2022/lib/core/uicomposition/models/uilayout.mjs +2 -0
  31. package/esm2022/lib/core/uicomposition/models/uinavigation.mjs +2 -0
  32. package/esm2022/lib/core/uicomposition/models/uiscreen.mjs +2 -0
  33. package/esm2022/lib/core/uicomposition/models/uisingle-column-layout.mjs +2 -0
  34. package/esm2022/lib/core/uicomposition/models/uiview.mjs +2 -0
  35. package/esm2022/lib/core/uitheme/enums/uiaction-type.mjs +14 -0
  36. package/esm2022/lib/core/uitheme/enums/uialignment-type.mjs +7 -0
  37. package/esm2022/lib/core/uitheme/enums/uiaspect-type.mjs +6 -0
  38. package/esm2022/lib/core/uitheme/enums/uiasset.mjs +355 -0
  39. package/esm2022/lib/core/uitheme/enums/uicolor.mjs +131 -0
  40. package/esm2022/lib/core/uitheme/enums/uicontent-type.mjs +10 -0
  41. package/esm2022/lib/core/uitheme/enums/uipadding-level.mjs +12 -0
  42. package/esm2022/lib/core/uitheme/enums/uipresentation-style.mjs +7 -0
  43. package/esm2022/lib/core/uitheme/enums/uiradius-level.mjs +10 -0
  44. package/esm2022/lib/core/uitheme/enums/uishadow-blur-radius.mjs +5 -0
  45. package/esm2022/lib/core/uitheme/enums/uishadow-offset.mjs +5 -0
  46. package/esm2022/lib/core/uitheme/enums/uisize.mjs +13 -0
  47. package/esm2022/lib/core/uitheme/enums/uispacing-level.mjs +8 -0
  48. package/esm2022/lib/core/uitheme/enums/uitext-style.mjs +15 -0
  49. package/esm2022/lib/core/uitheme/mapping/alignment-mapping.mjs +7 -0
  50. package/esm2022/lib/core/uitheme/mapping/asset-mapping.mjs +355 -0
  51. package/esm2022/lib/core/uitheme/mapping/color-mapping.mjs +131 -0
  52. package/esm2022/lib/core/uitheme/mapping/pad-mapping.mjs +12 -0
  53. package/esm2022/lib/core/uitheme/mapping/radius-mapping.mjs +10 -0
  54. package/esm2022/lib/core/uitheme/mapping/size-mapping.mjs +24 -0
  55. package/esm2022/lib/core/uitheme/mapping/space-mapping.mjs +8 -0
  56. package/esm2022/lib/core/uitheme/mapping/text-style-mapping.mjs +15 -0
  57. package/esm2022/lib/core/uitheme/models/uiaction.mjs +2 -0
  58. package/esm2022/lib/core/uitheme/models/uialignment.mjs +2 -0
  59. package/esm2022/lib/core/uitheme/models/uibackground.mjs +2 -0
  60. package/esm2022/lib/core/uitheme/models/uipadding.mjs +2 -0
  61. package/esm2022/lib/core/uitheme/models/uiradius.mjs +2 -0
  62. package/esm2022/lib/core/uitheme/models/uishadow.mjs +2 -0
  63. package/esm2022/lib/core/uitheme/models/uispacing.mjs +2 -0
  64. package/esm2022/lib/core/utils/url-parser.util.mjs +19 -0
  65. package/esm2022/lib/core/view-models/uiscreen.viewmodel.mjs +101 -0
  66. package/esm2022/lib/directives/uiview.directive.mjs +140 -0
  67. package/esm2022/lib/sdui-routing.module.mjs +28 -0
  68. package/esm2022/lib/sdui.component.mjs +51 -0
  69. package/esm2022/lib/sdui.module.mjs +102 -0
  70. package/esm2022/public-api.mjs +12 -0
  71. package/fesm2022/edm-sdui-sdui.mjs +2279 -0
  72. package/fesm2022/edm-sdui-sdui.mjs.map +1 -0
  73. package/index.d.ts +6 -0
  74. package/lib/components/navigation-controls/navigation-controls.component.d.ts +12 -0
  75. package/lib/components/navigation-controls/navigation-controls.component.d.ts.map +1 -0
  76. package/lib/components/uicomponent/button/button.component.d.ts +17 -0
  77. package/lib/components/uicomponent/button/button.component.d.ts.map +1 -0
  78. package/lib/components/uicomponent/column/column.component.d.ts +11 -0
  79. package/lib/components/uicomponent/column/column.component.d.ts.map +1 -0
  80. package/lib/components/uicomponent/image/image.component.d.ts +15 -0
  81. package/lib/components/uicomponent/image/image.component.d.ts.map +1 -0
  82. package/lib/components/uicomponent/label/label.component.d.ts +15 -0
  83. package/lib/components/uicomponent/label/label.component.d.ts.map +1 -0
  84. package/lib/components/uicomponent/row/row.component.d.ts +11 -0
  85. package/lib/components/uicomponent/row/row.component.d.ts.map +1 -0
  86. package/lib/components/uicomponent/row-divisor/row-divisor.component.d.ts +11 -0
  87. package/lib/components/uicomponent/row-divisor/row-divisor.component.d.ts.map +1 -0
  88. package/lib/components/uicomponent/search-bar/search-bar.component.d.ts +17 -0
  89. package/lib/components/uicomponent/search-bar/search-bar.component.d.ts.map +1 -0
  90. package/lib/components/uicomponent/space/space.component.d.ts +11 -0
  91. package/lib/components/uicomponent/space/space.component.d.ts.map +1 -0
  92. package/lib/components/uicomponent/tag/tag.component.d.ts +17 -0
  93. package/lib/components/uicomponent/tag/tag.component.d.ts.map +1 -0
  94. package/lib/components/uicomponent/uicomponent.component.d.ts +17 -0
  95. package/lib/components/uicomponent/uicomponent.component.d.ts.map +1 -0
  96. package/lib/components/uicomponent/zstack/zstack.component.d.ts +11 -0
  97. package/lib/components/uicomponent/zstack/zstack.component.d.ts.map +1 -0
  98. package/lib/components/uilayout/centered-content-layout/centered-content-layout.component.d.ts +10 -0
  99. package/lib/components/uilayout/centered-content-layout/centered-content-layout.component.d.ts.map +1 -0
  100. package/lib/components/uilayout/single-column-layout/single-column-layout.component.d.ts +10 -0
  101. package/lib/components/uilayout/single-column-layout/single-column-layout.component.d.ts.map +1 -0
  102. package/lib/components/uilayout/uinavigation/uinavigation.component.d.ts +8 -0
  103. package/lib/components/uilayout/uinavigation/uinavigation.component.d.ts.map +1 -0
  104. package/lib/components/uiscreen/uiscreen.component.d.ts +11 -0
  105. package/lib/components/uiscreen/uiscreen.component.d.ts.map +1 -0
  106. package/lib/core/services/ui-action.service.d.ts +11 -0
  107. package/lib/core/services/ui-action.service.d.ts.map +1 -0
  108. package/lib/core/services/uiscreen.service.d.ts +24 -0
  109. package/lib/core/services/uiscreen.service.d.ts.map +1 -0
  110. package/lib/core/tokens/sdui-config.token.d.ts +3 -0
  111. package/lib/core/tokens/sdui-config.token.d.ts.map +1 -0
  112. package/lib/core/uicomposition/enums/uicomponent-type.d.ts +20 -0
  113. package/lib/core/uicomposition/enums/uicomponent-type.d.ts.map +1 -0
  114. package/lib/core/uicomposition/enums/uiplatform-type.d.ts +5 -0
  115. package/lib/core/uicomposition/enums/uiplatform-type.d.ts.map +1 -0
  116. package/lib/core/uicomposition/enums/uiscene.d.ts +4 -0
  117. package/lib/core/uicomposition/enums/uiscene.d.ts.map +1 -0
  118. package/lib/core/uicomposition/enums/uiscreen-identifier.d.ts +5 -0
  119. package/lib/core/uicomposition/enums/uiscreen-identifier.d.ts.map +1 -0
  120. package/lib/core/uicomposition/mapping/component-mapping.d.ts +4 -0
  121. package/lib/core/uicomposition/mapping/component-mapping.d.ts.map +1 -0
  122. package/lib/core/uicomposition/models/uicentered-content-layout.d.ts +11 -0
  123. package/lib/core/uicomposition/models/uicentered-content-layout.d.ts.map +1 -0
  124. package/{src/lib/core/uicomposition/models/uicomponent.ts → lib/core/uicomposition/models/uicomponent.d.ts} +5 -5
  125. package/lib/core/uicomposition/models/uicomponent.d.ts.map +1 -0
  126. package/lib/core/uicomposition/models/uielement.d.ts +25 -0
  127. package/lib/core/uicomposition/models/uielement.d.ts.map +1 -0
  128. package/lib/core/uicomposition/models/uilayout.d.ts +4 -0
  129. package/lib/core/uicomposition/models/uilayout.d.ts.map +1 -0
  130. package/lib/core/uicomposition/models/uinavigation.d.ts +6 -0
  131. package/lib/core/uicomposition/models/uinavigation.d.ts.map +1 -0
  132. package/{src/lib/core/uicomposition/models/uiscreen.ts → lib/core/uicomposition/models/uiscreen.d.ts} +6 -6
  133. package/lib/core/uicomposition/models/uiscreen.d.ts.map +1 -0
  134. package/{src/lib/core/uicomposition/models/uisingle-column-layout.ts → lib/core/uicomposition/models/uisingle-column-layout.d.ts} +5 -5
  135. package/lib/core/uicomposition/models/uisingle-column-layout.d.ts.map +1 -0
  136. package/{src/lib/core/uicomposition/models/uiview.ts → lib/core/uicomposition/models/uiview.d.ts} +8 -9
  137. package/lib/core/uicomposition/models/uiview.d.ts.map +1 -0
  138. package/lib/core/uitheme/enums/uiaction-type.d.ts +10 -0
  139. package/lib/core/uitheme/enums/uiaction-type.d.ts.map +1 -0
  140. package/lib/core/uitheme/enums/uialignment-type.d.ts +6 -0
  141. package/lib/core/uitheme/enums/uialignment-type.d.ts.map +1 -0
  142. package/lib/core/uitheme/enums/uiaspect-type.d.ts +5 -0
  143. package/lib/core/uitheme/enums/uiaspect-type.d.ts.map +1 -0
  144. package/lib/core/uitheme/enums/uiasset.d.ts +354 -0
  145. package/lib/core/uitheme/enums/uiasset.d.ts.map +1 -0
  146. package/lib/core/uitheme/enums/uicolor.d.ts +130 -0
  147. package/lib/core/uitheme/enums/uicolor.d.ts.map +1 -0
  148. package/lib/core/uitheme/enums/uicontent-type.d.ts +9 -0
  149. package/lib/core/uitheme/enums/uicontent-type.d.ts.map +1 -0
  150. package/lib/core/uitheme/enums/uipadding-level.d.ts +11 -0
  151. package/lib/core/uitheme/enums/uipadding-level.d.ts.map +1 -0
  152. package/lib/core/uitheme/enums/uipresentation-style.d.ts +6 -0
  153. package/lib/core/uitheme/enums/uipresentation-style.d.ts.map +1 -0
  154. package/lib/core/uitheme/enums/uiradius-level.d.ts +9 -0
  155. package/lib/core/uitheme/enums/uiradius-level.d.ts.map +1 -0
  156. package/lib/core/uitheme/enums/uishadow-blur-radius.d.ts +4 -0
  157. package/lib/core/uitheme/enums/uishadow-blur-radius.d.ts.map +1 -0
  158. package/lib/core/uitheme/enums/uishadow-offset.d.ts +4 -0
  159. package/lib/core/uitheme/enums/uishadow-offset.d.ts.map +1 -0
  160. package/lib/core/uitheme/enums/uisize.d.ts +12 -0
  161. package/lib/core/uitheme/enums/uisize.d.ts.map +1 -0
  162. package/lib/core/uitheme/enums/uispacing-level.d.ts +7 -0
  163. package/lib/core/uitheme/enums/uispacing-level.d.ts.map +1 -0
  164. package/lib/core/uitheme/enums/uitext-style.d.ts +14 -0
  165. package/lib/core/uitheme/enums/uitext-style.d.ts.map +1 -0
  166. package/lib/core/uitheme/mapping/alignment-mapping.d.ts +3 -0
  167. package/lib/core/uitheme/mapping/alignment-mapping.d.ts.map +1 -0
  168. package/lib/core/uitheme/mapping/asset-mapping.d.ts +3 -0
  169. package/lib/core/uitheme/mapping/asset-mapping.d.ts.map +1 -0
  170. package/lib/core/uitheme/mapping/color-mapping.d.ts +3 -0
  171. package/lib/core/uitheme/mapping/color-mapping.d.ts.map +1 -0
  172. package/lib/core/uitheme/mapping/pad-mapping.d.ts +3 -0
  173. package/lib/core/uitheme/mapping/pad-mapping.d.ts.map +1 -0
  174. package/lib/core/uitheme/mapping/radius-mapping.d.ts +3 -0
  175. package/lib/core/uitheme/mapping/radius-mapping.d.ts.map +1 -0
  176. package/lib/core/uitheme/mapping/size-mapping.d.ts +4 -0
  177. package/lib/core/uitheme/mapping/size-mapping.d.ts.map +1 -0
  178. package/lib/core/uitheme/mapping/space-mapping.d.ts +3 -0
  179. package/lib/core/uitheme/mapping/space-mapping.d.ts.map +1 -0
  180. package/lib/core/uitheme/mapping/text-style-mapping.d.ts +3 -0
  181. package/lib/core/uitheme/mapping/text-style-mapping.d.ts.map +1 -0
  182. package/lib/core/uitheme/models/uiaction.d.ts +10 -0
  183. package/lib/core/uitheme/models/uiaction.d.ts.map +1 -0
  184. package/{src/lib/core/uitheme/models/uialignment.ts → lib/core/uitheme/models/uialignment.d.ts} +2 -2
  185. package/lib/core/uitheme/models/uialignment.d.ts.map +1 -0
  186. package/{src/lib/core/uitheme/models/uibackground.ts → lib/core/uitheme/models/uibackground.d.ts} +2 -2
  187. package/lib/core/uitheme/models/uibackground.d.ts.map +1 -0
  188. package/lib/core/uitheme/models/uipadding.d.ts +8 -0
  189. package/lib/core/uitheme/models/uipadding.d.ts.map +1 -0
  190. package/lib/core/uitheme/models/uiradius.d.ts +8 -0
  191. package/lib/core/uitheme/models/uiradius.d.ts.map +1 -0
  192. package/{src/lib/core/uitheme/models/uishadow.ts → lib/core/uitheme/models/uishadow.d.ts} +6 -6
  193. package/lib/core/uitheme/models/uishadow.d.ts.map +1 -0
  194. package/{src/lib/core/uitheme/models/uispacing.ts → lib/core/uitheme/models/uispacing.d.ts} +2 -2
  195. package/lib/core/uitheme/models/uispacing.d.ts.map +1 -0
  196. package/lib/core/utils/url-parser.util.d.ts +3 -0
  197. package/lib/core/utils/url-parser.util.d.ts.map +1 -0
  198. package/lib/core/view-models/uiscreen.viewmodel.d.ts +40 -0
  199. package/lib/core/view-models/uiscreen.viewmodel.d.ts.map +1 -0
  200. package/lib/directives/uiview.directive.d.ts +29 -0
  201. package/lib/directives/uiview.directive.d.ts.map +1 -0
  202. package/lib/sdui-routing.module.d.ts +10 -0
  203. package/lib/sdui-routing.module.d.ts.map +1 -0
  204. package/lib/sdui.component.d.ts +17 -0
  205. package/lib/sdui.component.d.ts.map +1 -0
  206. package/lib/sdui.module.d.ts +35 -0
  207. package/lib/sdui.module.d.ts.map +1 -0
  208. package/package.json +20 -16
  209. package/public-api.d.ts +5 -0
  210. package/public-api.d.ts.map +1 -0
  211. package/ng-package.json +0 -9
  212. package/src/index.ts +0 -1
  213. package/src/lib/components/navigation-controls/navigation-controls.component.html +0 -9
  214. package/src/lib/components/navigation-controls/navigation-controls.component.scss +0 -35
  215. package/src/lib/components/navigation-controls/navigation-controls.component.ts +0 -27
  216. package/src/lib/components/uicomponent/button/button.component.html +0 -4
  217. package/src/lib/components/uicomponent/button/button.component.scss +0 -11
  218. package/src/lib/components/uicomponent/button/button.component.ts +0 -64
  219. package/src/lib/components/uicomponent/column/column.component.html +0 -7
  220. package/src/lib/components/uicomponent/column/column.component.scss +0 -9
  221. package/src/lib/components/uicomponent/column/column.component.ts +0 -16
  222. package/src/lib/components/uicomponent/image/image.component.html +0 -1
  223. package/src/lib/components/uicomponent/image/image.component.scss +0 -3
  224. package/src/lib/components/uicomponent/image/image.component.ts +0 -69
  225. package/src/lib/components/uicomponent/label/label.component.html +0 -3
  226. package/src/lib/components/uicomponent/label/label.component.scss +0 -3
  227. package/src/lib/components/uicomponent/label/label.component.ts +0 -66
  228. package/src/lib/components/uicomponent/row/row.component.html +0 -7
  229. package/src/lib/components/uicomponent/row/row.component.scss +0 -8
  230. package/src/lib/components/uicomponent/row/row.component.ts +0 -16
  231. package/src/lib/components/uicomponent/row-divisor/row-divisor.component.html +0 -5
  232. package/src/lib/components/uicomponent/row-divisor/row-divisor.component.scss +0 -8
  233. package/src/lib/components/uicomponent/row-divisor/row-divisor.component.ts +0 -16
  234. package/src/lib/components/uicomponent/search-bar/search-bar.component.html +0 -7
  235. package/src/lib/components/uicomponent/search-bar/search-bar.component.scss +0 -7
  236. package/src/lib/components/uicomponent/search-bar/search-bar.component.ts +0 -129
  237. package/src/lib/components/uicomponent/space/space.component.html +0 -1
  238. package/src/lib/components/uicomponent/space/space.component.scss +0 -10
  239. package/src/lib/components/uicomponent/space/space.component.ts +0 -16
  240. package/src/lib/components/uicomponent/tag/tag.component.html +0 -3
  241. package/src/lib/components/uicomponent/tag/tag.component.scss +0 -7
  242. package/src/lib/components/uicomponent/tag/tag.component.ts +0 -54
  243. package/src/lib/components/uicomponent/uicomponent.component.html +0 -5
  244. package/src/lib/components/uicomponent/uicomponent.component.scss +0 -3
  245. package/src/lib/components/uicomponent/uicomponent.component.ts +0 -53
  246. package/src/lib/components/uicomponent/zstack/zstack.component.html +0 -6
  247. package/src/lib/components/uicomponent/zstack/zstack.component.scss +0 -12
  248. package/src/lib/components/uicomponent/zstack/zstack.component.ts +0 -16
  249. package/src/lib/components/uilayout/centered-content-layout/centered-content-layout.component.html +0 -20
  250. package/src/lib/components/uilayout/centered-content-layout/centered-content-layout.component.scss +0 -36
  251. package/src/lib/components/uilayout/centered-content-layout/centered-content-layout.component.ts +0 -21
  252. package/src/lib/components/uilayout/single-column-layout/single-column-layout.component.html +0 -22
  253. package/src/lib/components/uilayout/single-column-layout/single-column-layout.component.scss +0 -37
  254. package/src/lib/components/uilayout/single-column-layout/single-column-layout.component.ts +0 -27
  255. package/src/lib/components/uilayout/uinavigation/uinavigation.component.html +0 -8
  256. package/src/lib/components/uilayout/uinavigation/uinavigation.component.scss +0 -4
  257. package/src/lib/components/uilayout/uinavigation/uinavigation.component.ts +0 -12
  258. package/src/lib/components/uiscreen/uiscreen.component.html +0 -29
  259. package/src/lib/components/uiscreen/uiscreen.component.scss +0 -12
  260. package/src/lib/components/uiscreen/uiscreen.component.ts +0 -15
  261. package/src/lib/core/interfaces/sdui-config.interface.ts +0 -3
  262. package/src/lib/core/services/navigation.service.ts +0 -25
  263. package/src/lib/core/services/sdui-config.service.ts +0 -19
  264. package/src/lib/core/services/ui-action.service.ts +0 -36
  265. package/src/lib/core/services/uiscreen.service.ts +0 -185
  266. package/src/lib/core/tokens/sdui-config.token.ts +0 -3
  267. package/src/lib/core/uicomposition/enums/uicomponent-type.ts +0 -32
  268. package/src/lib/core/uicomposition/enums/uiplatform-type.ts +0 -4
  269. package/src/lib/core/uicomposition/enums/uiscene.ts +0 -3
  270. package/src/lib/core/uicomposition/enums/uiscreen-identifier.ts +0 -4
  271. package/src/lib/core/uicomposition/mapping/component-mapping.ts +0 -90
  272. package/src/lib/core/uicomposition/models/uicentered-content-layout.ts +0 -11
  273. package/src/lib/core/uicomposition/models/uielement.ts +0 -25
  274. package/src/lib/core/uicomposition/models/uilayout.ts +0 -4
  275. package/src/lib/core/uicomposition/models/uinavigation.ts +0 -6
  276. package/src/lib/core/uitheme/enums/uiaction-type.ts +0 -14
  277. package/src/lib/core/uitheme/enums/uialignment-type.ts +0 -5
  278. package/src/lib/core/uitheme/enums/uiaspect-type.ts +0 -4
  279. package/src/lib/core/uitheme/enums/uiasset.ts +0 -361
  280. package/src/lib/core/uitheme/enums/uicolor.ts +0 -129
  281. package/src/lib/core/uitheme/enums/uicontent-type.ts +0 -8
  282. package/src/lib/core/uitheme/enums/uipadding-level.ts +0 -10
  283. package/src/lib/core/uitheme/enums/uipresentation-style.ts +0 -5
  284. package/src/lib/core/uitheme/enums/uiradius-level.ts +0 -8
  285. package/src/lib/core/uitheme/enums/uishadow-blur-radius.ts +0 -3
  286. package/src/lib/core/uitheme/enums/uishadow-offset.ts +0 -3
  287. package/src/lib/core/uitheme/enums/uisize.ts +0 -12
  288. package/src/lib/core/uitheme/enums/uispacing-level.ts +0 -6
  289. package/src/lib/core/uitheme/enums/uitext-style.ts +0 -13
  290. package/src/lib/core/uitheme/mapping/alignment-mapping.ts +0 -7
  291. package/src/lib/core/uitheme/mapping/asset-mapping.ts +0 -363
  292. package/src/lib/core/uitheme/mapping/color-mapping.ts +0 -131
  293. package/src/lib/core/uitheme/mapping/pad-mapping.ts +0 -12
  294. package/src/lib/core/uitheme/mapping/radius-mapping.ts +0 -10
  295. package/src/lib/core/uitheme/mapping/size-mapping.ts +0 -25
  296. package/src/lib/core/uitheme/mapping/space-mapping.ts +0 -8
  297. package/src/lib/core/uitheme/mapping/text-style-mapping.ts +0 -15
  298. package/src/lib/core/uitheme/models/uiaction.ts +0 -10
  299. package/src/lib/core/uitheme/models/uipadding.ts +0 -8
  300. package/src/lib/core/uitheme/models/uiradius.ts +0 -8
  301. package/src/lib/core/uitheme/models/uiview.ts +0 -0
  302. package/src/lib/core/utils/url-parser.util.ts +0 -24
  303. package/src/lib/core/view-models/uiscreen.viewmodel.ts +0 -115
  304. package/src/lib/directives/uiview.directive.ts +0 -207
  305. package/src/lib/sdui-routing.module.ts +0 -22
  306. package/src/lib/sdui.component.html +0 -3
  307. package/src/lib/sdui.component.scss +0 -11
  308. package/src/lib/sdui.component.ts +0 -65
  309. package/src/lib/sdui.module.ts +0 -84
  310. package/src/public-api.ts +0 -16
  311. package/tsconfig.lib.json +0 -16
  312. package/tsconfig.spec.json +0 -12
@@ -1,69 +0,0 @@
1
- import {
2
- AfterViewInit,
3
- Component,
4
- ElementRef,
5
- Inject,
6
- OnInit,
7
- Renderer2,
8
- ViewChild,
9
- } from '@angular/core';
10
- import { UIComponent } from '../../../core/uicomposition/models/uicomponent';
11
- import { UIElement } from '../../../core/uicomposition/models/uielement';
12
- import { assetMapping } from '../../../core/uitheme/mapping/asset-mapping';
13
- import {
14
- sizeMappingHeight,
15
- sizeMappingWidth,
16
- } from '../../../core/uitheme/mapping/size-mapping';
17
-
18
- @Component({
19
- selector: 'edm-sdui-image',
20
- templateUrl: './image.component.html',
21
- styleUrl: './image.component.scss',
22
- standalone: false,
23
- })
24
- export class ImageComponent implements OnInit, AfterViewInit {
25
- @ViewChild('imgElement') imgElementRef!: ElementRef<HTMLImageElement>;
26
-
27
- constructor(
28
- @Inject('uiComponent') public uiComponent: UIComponent,
29
- private renderer: Renderer2
30
- ) {}
31
-
32
- ngOnInit(): void {
33
- // console.debug('image.uiComponent: ', this.uiComponent);
34
- }
35
-
36
- ngAfterViewInit(): void {
37
- if (this.uiComponent?.element) {
38
- this.applyElement(this.uiComponent.element);
39
- }
40
- }
41
-
42
- private applyElement(element: UIElement) {
43
- if (element.asset) {
44
- const asset = assetMapping[element.asset];
45
- this.renderer.setAttribute(
46
- this.imgElementRef.nativeElement,
47
- 'src',
48
- './assets/' + asset
49
- );
50
- } else if (element.url) {
51
- this.renderer.setAttribute(
52
- this.imgElementRef.nativeElement,
53
- 'src',
54
- element.url
55
- );
56
- }
57
-
58
- if (element.size) {
59
- const height = sizeMappingHeight[element.size];
60
- const width = sizeMappingWidth[element.size];
61
- this.renderer.setStyle(
62
- this.imgElementRef.nativeElement,
63
- 'height',
64
- height
65
- );
66
- this.renderer.setStyle(this.imgElementRef.nativeElement, 'width', width);
67
- }
68
- }
69
- }
@@ -1,3 +0,0 @@
1
- <span #spanElement [edmSduiView]="uiComponent.element" *ngIf="uiComponent">{{
2
- uiComponent.element?.label ?? ""
3
- }}</span>
@@ -1,3 +0,0 @@
1
- :host {
2
- display: contents;
3
- }
@@ -1,66 +0,0 @@
1
- import {
2
- AfterViewInit,
3
- Component,
4
- ElementRef,
5
- Inject,
6
- OnInit,
7
- Renderer2,
8
- ViewChild,
9
- } from '@angular/core';
10
- import { UIComponent } from '../../../core/uicomposition/models/uicomponent';
11
- import { UIElement } from '../../../core/uicomposition/models/uielement';
12
- import { colorMapping } from '../../../core/uitheme/mapping/color-mapping';
13
- import { textStyleMappingFontSize } from '../../../core/uitheme/mapping/text-style-mapping';
14
-
15
- @Component({
16
- selector: 'edm-sdui-label',
17
- templateUrl: './label.component.html',
18
- styleUrl: './label.component.scss',
19
- standalone: false,
20
- })
21
- export class LabelComponent implements OnInit, AfterViewInit {
22
- @ViewChild('spanElement') spanElementRef!: ElementRef<HTMLImageElement>;
23
-
24
- constructor(
25
- @Inject('uiComponent') public uiComponent: UIComponent,
26
- private renderer: Renderer2
27
- ) {}
28
-
29
- ngOnInit(): void {
30
- // console.debug('label.uiComponent: ', this.uiComponent);
31
- }
32
-
33
- ngAfterViewInit(): void {
34
- if (this.uiComponent.element) {
35
- this.applyElement(this.uiComponent.element);
36
- }
37
- }
38
-
39
- private applyElement(element: UIElement) {
40
- if (element.textColor) {
41
- const color = colorMapping[element.textColor];
42
- this.renderer.setStyle(this.spanElementRef.nativeElement, 'color', color);
43
- }
44
-
45
- if (element.textStyle) {
46
- const fontSize = textStyleMappingFontSize[element.textStyle];
47
- this.renderer.setStyle(
48
- this.spanElementRef.nativeElement,
49
- 'font-size',
50
- fontSize
51
- );
52
- }
53
-
54
- const maxLines = element.maxLines ?? 1;
55
- // TODO: - definir o maxLines do Span
56
-
57
- if (element.opacity) {
58
- const opacity = element.opacity;
59
- this.renderer.setStyle(
60
- this.spanElementRef.nativeElement,
61
- 'opacity',
62
- opacity
63
- );
64
- }
65
- }
66
- }
@@ -1,7 +0,0 @@
1
- <div class="row" *ngIf="uiComponent" [edmSduiView]="uiComponent.element">
2
- <edm-sdui-component
3
- *ngFor="let component of uiComponent.components"
4
- [uiComponent]="component"
5
- >
6
- </edm-sdui-component>
7
- </div>
@@ -1,8 +0,0 @@
1
- :host {
2
- display: contents;
3
- }
4
-
5
- .row {
6
- display: flex;
7
- flex-direction: row;
8
- }
@@ -1,16 +0,0 @@
1
- import { Component, Inject, OnInit } from '@angular/core';
2
- import { UIComponent } from '../../../core/uicomposition/models/uicomponent';
3
-
4
- @Component({
5
- selector: 'edm-sdui-row',
6
- styleUrl: './row.component.scss',
7
- templateUrl: './row.component.html',
8
- standalone: false,
9
- })
10
- export class RowComponent implements OnInit {
11
- constructor(@Inject('uiComponent') public uiComponent: UIComponent) {}
12
-
13
- ngOnInit(): void {
14
- // console.debug('row.uiComponent: ', this.uiComponent);
15
- }
16
- }
@@ -1,5 +0,0 @@
1
- <div
2
- class="row-divisor"
3
- *ngIf="uiComponent"
4
- [edmSduiView]="uiComponent.element"
5
- ></div>
@@ -1,8 +0,0 @@
1
- :host {
2
- display: contents;
3
- }
4
-
5
- .row-divisor {
6
- height: 1px;
7
- // width: 100%;
8
- }
@@ -1,16 +0,0 @@
1
- import { Component, Inject, OnInit } from '@angular/core';
2
- import { UIComponent } from '../../../core/uicomposition/models/uicomponent';
3
-
4
- @Component({
5
- selector: 'edm-sdui-row-divisor',
6
- styleUrl: './row-divisor.component.scss',
7
- templateUrl: './row-divisor.component.html',
8
- standalone: false,
9
- })
10
- export class RowDivisorComponent implements OnInit {
11
- constructor(@Inject('uiComponent') public uiComponent: UIComponent) {}
12
-
13
- ngOnInit(): void {
14
- // console.debug('rowDivisor.uiComponent: ', this.uiComponent);
15
- }
16
- }
@@ -1,7 +0,0 @@
1
- <input
2
- #inputElement
3
- class="search-bar"
4
- [edmSduiView]="uiComponent.element"
5
- [disableClick]="true"
6
- *ngIf="uiComponent"
7
- />
@@ -1,7 +0,0 @@
1
- .search-bar {
2
- width: 100vw;
3
- margin: 1rem;
4
- line-height: 1.5rem;
5
- padding: 0.25rem 0.5rem;
6
- background-color: var(--bg-search);
7
- }
@@ -1,129 +0,0 @@
1
- import {
2
- AfterViewInit,
3
- Component,
4
- ElementRef,
5
- Inject,
6
- OnInit,
7
- Renderer2,
8
- ViewChild,
9
- } from '@angular/core';
10
- import { UIComponent } from '../../../core/uicomposition/models/uicomponent';
11
- import { UIElement } from '../../../core/uicomposition/models/uielement';
12
- import { colorMapping } from '../../../core/uitheme/mapping/color-mapping';
13
- import { textStyleMappingFontSize } from '../../../core/uitheme/mapping/text-style-mapping';
14
- import { UIActionService } from '../../../core/services/ui-action.service';
15
-
16
- @Component({
17
- styleUrl: './search-bar.component.scss',
18
- templateUrl: './search-bar.component.html',
19
- standalone: false,
20
- selector: 'edm-sdui-search-bar',
21
- })
22
- export class SearchBarComponent implements OnInit, AfterViewInit {
23
- @ViewChild('inputElement') inputElementRef!: ElementRef<HTMLInputElement>;
24
-
25
- constructor(
26
- private actionService: UIActionService,
27
- @Inject('uiComponent') public uiComponent: UIComponent,
28
- private renderer: Renderer2
29
- ) {}
30
-
31
- ngOnInit(): void {
32
- // console.debug('label.uiComponent: ', this.uiComponent);
33
- }
34
-
35
- ngAfterViewInit(): void {
36
- if (this.uiComponent.element) {
37
- this.applyElement(this.uiComponent.element);
38
- this.renderer.listen(
39
- this.inputElementRef.nativeElement,
40
- 'keydown',
41
- (event: KeyboardEvent) => {
42
- if (event.key === 'Enter') {
43
- const action = this.uiComponent.element?.action;
44
- const inputValue = this.inputElementRef.nativeElement.value.trim();
45
-
46
- if (action && inputValue && action.url) {
47
- const param = action.param || 'SEARCH';
48
- const encodedValue = encodeURIComponent(inputValue);
49
-
50
- try {
51
- const parsed = new URL(action.url);
52
- const innerUrlRaw = parsed.searchParams.get('url');
53
-
54
- if (innerUrlRaw) {
55
- const decodedInnerUrl = decodeURIComponent(innerUrlRaw);
56
- const updatedInnerUrl = decodedInnerUrl.replace(
57
- `{${param}}`,
58
- encodedValue
59
- );
60
- parsed.searchParams.set(
61
- 'url',
62
- encodeURIComponent(updatedInnerUrl)
63
- );
64
-
65
- const adjustedUrl = parsed.toString();
66
-
67
- console.debug('[key.enter]', {
68
- param,
69
- encodedValue,
70
- adjustedUrl,
71
- });
72
-
73
- this.actionService.execute({
74
- ...action,
75
- url: adjustedUrl,
76
- });
77
- }
78
- } catch (err) {
79
- console.warn(
80
- '[key.enter] Invalid action.url format:',
81
- action.url,
82
- err
83
- );
84
- }
85
- }
86
- }
87
- }
88
- );
89
- }
90
- }
91
-
92
- private applyElement(element: UIElement) {
93
- console.debug('search.element:', element);
94
-
95
- const inputEl = this.inputElementRef.nativeElement;
96
-
97
- if (element.placeholder) {
98
- this.renderer.setAttribute(inputEl, 'placeholder', element.placeholder);
99
- }
100
-
101
- if (element.textColor) {
102
- const color = colorMapping[element.textColor];
103
- this.renderer.setStyle(inputEl, 'color', color);
104
- }
105
-
106
- if (element.textStyle) {
107
- const fontSize = textStyleMappingFontSize[element.textStyle];
108
- this.renderer.setStyle(inputEl, 'font-size', fontSize);
109
- }
110
-
111
- if (element.placeholderTextColor || element.placeholderTextStyle) {
112
- const styleEl = this.renderer.createElement('style');
113
- const color = element.placeholderTextColor
114
- ? colorMapping[element.placeholderTextColor]
115
- : 'inherit';
116
- const fontSize = element.placeholderTextStyle
117
- ? textStyleMappingFontSize[element.placeholderTextStyle]
118
- : 'inherit';
119
-
120
- styleEl.textContent = `
121
- edm-sdui-search-bar input::placeholder {
122
- color: ${color};
123
- font-size: ${fontSize};
124
- }
125
- `;
126
- this.renderer.appendChild(document.head, styleEl);
127
- }
128
- }
129
- }
@@ -1 +0,0 @@
1
- <div class="space"></div>
@@ -1,10 +0,0 @@
1
- :host {
2
- display: contents;
3
- }
4
-
5
- .space {
6
- flex-grow: 1;
7
- flex-shrink: 1;
8
- min-height: 1px;
9
- min-width: 1px;
10
- }
@@ -1,16 +0,0 @@
1
- import { Component, Inject, Input, OnInit } from '@angular/core';
2
- import { UIComponent } from '../../../core/uicomposition/models/uicomponent';
3
-
4
- @Component({
5
- selector: 'edm-sdui-space',
6
- templateUrl: './space.component.html',
7
- styleUrl: './space.component.scss',
8
- standalone: false,
9
- })
10
- export class SpaceComponent implements OnInit {
11
- constructor(@Inject('uiComponent') public uiComponent: UIComponent) {}
12
-
13
- ngOnInit(): void {
14
- // console.debug('space.uiComponent: ', this.uiComponent);
15
- }
16
- }
@@ -1,3 +0,0 @@
1
- <div class="tag" #tagElement *ngIf="uiComponent" [edmSduiView]="uiComponent.element">
2
- <span class="tag-name" #tagNameElement>{{ uiComponent.element?.label ?? '' }}</span>
3
- </div>
@@ -1,7 +0,0 @@
1
- :host {
2
- display: contents;
3
- }
4
-
5
- .tag {
6
- padding: 4px 8px;
7
- }
@@ -1,54 +0,0 @@
1
- import { AfterViewInit, Component, ElementRef, Inject, OnInit, Renderer2, ViewChild } from "@angular/core";
2
- import { UIComponent } from "../../../core/uicomposition/models/uicomponent";
3
- import { UIElement } from "../../../core/uicomposition/models/uielement";
4
- import { colorMapping } from "../../../core/uitheme/mapping/color-mapping";
5
- import { textStyleMappingFontSize } from "../../../core/uitheme/mapping/text-style-mapping";
6
-
7
- @Component({
8
- styleUrl: './tag.component.scss',
9
- templateUrl: './tag.component.html',
10
- standalone: false
11
- })
12
- export class TagComponent implements OnInit, AfterViewInit {
13
- @ViewChild('tagElement') tagElementRef!: ElementRef<HTMLImageElement>;
14
- @ViewChild('tagNameElement') tagNameElementRef!: ElementRef<HTMLImageElement>;
15
-
16
- constructor(
17
- @Inject('uiComponent') public uiComponent: UIComponent,
18
- private renderer: Renderer2
19
- ) {}
20
-
21
- ngOnInit(): void {
22
-
23
- }
24
-
25
- ngAfterViewInit(): void {
26
- if (this.uiComponent.element) {
27
- this.applyElement(this.uiComponent.element);
28
- }
29
-
30
- if (this.uiComponent.element) {
31
- this.applyLabelElement(this.uiComponent.element);
32
- }
33
- }
34
-
35
- private applyElement(element: UIElement) {
36
-
37
- }
38
-
39
- private applyLabelElement(element: UIElement) {
40
- if (element.textColor) {
41
- const color = colorMapping[element.textColor];
42
- this.renderer.setStyle(this.tagNameElementRef.nativeElement, 'color', color);
43
- }
44
-
45
- if (element.textStyle) {
46
- const fontSize = textStyleMappingFontSize[element.textStyle];
47
- this.renderer.setStyle(
48
- this.tagNameElementRef.nativeElement,
49
- 'font-size',
50
- fontSize
51
- );
52
- }
53
- }
54
- }
@@ -1,5 +0,0 @@
1
- <ng-container *ngIf="componentToRender">
2
- <ng-container
3
- *ngComponentOutlet="componentToRender; injector: componentInjector"
4
- ></ng-container>
5
- </ng-container>
@@ -1,3 +0,0 @@
1
- :host {
2
- display: contents;
3
- }
@@ -1,53 +0,0 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- ChangeDetectorRef,
4
- Component,
5
- Injector,
6
- Input,
7
- OnChanges,
8
- OnInit,
9
- SimpleChanges,
10
- Type,
11
- } from '@angular/core';
12
- import { UIComponent } from '../../core/uicomposition/models/uicomponent';
13
- import { componentMapping } from '../../core/uicomposition/mapping/component-mapping';
14
-
15
- @Component({
16
- selector: 'edm-sdui-component',
17
- styleUrl: './uicomponent.component.scss',
18
- templateUrl: './uicomponent.component.html',
19
- standalone: false,
20
- })
21
- export class UIComponentComponent implements OnInit, OnChanges {
22
- @Input() uiComponent?: UIComponent;
23
- componentToRender?: Type<any>;
24
- componentInjector!: Injector;
25
-
26
- constructor(private injector: Injector, private cdr: ChangeDetectorRef) {}
27
-
28
- ngOnInit(): void {
29
- this.initializeComponent();
30
- }
31
-
32
- ngOnChanges(changes: SimpleChanges): void {
33
- if (changes['uiComponent'] && changes['uiComponent'].currentValue) {
34
- this.initializeComponent();
35
- }
36
- }
37
-
38
- private initializeComponent(): void {
39
- const current = this.uiComponent;
40
- if (!current) return;
41
-
42
- const mappingFn = componentMapping[current.type];
43
- mappingFn().then((component: Type<any>) => {
44
- this.componentToRender = component;
45
- this.cdr.markForCheck();
46
- });
47
-
48
- this.componentInjector = Injector.create({
49
- providers: [{ provide: 'uiComponent', useValue: current }],
50
- parent: this.injector,
51
- });
52
- }
53
- }
@@ -1,6 +0,0 @@
1
- <div class="zstack" *ngIf="uiComponent" [edmSduiView]="uiComponent.element">
2
- <edm-sdui-component
3
- *ngFor="let child of uiComponent.components"
4
- [uiComponent]="child"
5
- ></edm-sdui-component>
6
- </div>
@@ -1,12 +0,0 @@
1
- :host {
2
- display: contents;
3
- }
4
-
5
- .zstack {
6
- display: grid;
7
- place-items: center;
8
- }
9
-
10
- .zstack > * {
11
- grid-area: 1 / 1;
12
- }
@@ -1,16 +0,0 @@
1
- import { Component, Inject, OnInit } from '@angular/core';
2
- import { UIComponent } from '../../../core/uicomposition/models/uicomponent';
3
-
4
- @Component({
5
- selector: 'edm-sdui-zstack',
6
- styleUrl: './zstack.component.scss',
7
- templateUrl: './zstack.component.html',
8
- standalone: false,
9
- })
10
- export class ZStackComponent implements OnInit {
11
- constructor(@Inject('uiComponent') public uiComponent: UIComponent) {}
12
-
13
- ngOnInit(): void {
14
- // console.debug('zstack.uiComponent: ', this.uiComponent);
15
- }
16
- }
@@ -1,20 +0,0 @@
1
- <div class="centered-content-layout" *ngIf="!!uiLayout">
2
- <!-- <pre>{{ uiLayout | json }}</pre> -->
3
-
4
- <edm-sdui-navigation [uiNavigation]="uiLayout.nav"></edm-sdui-navigation>
5
-
6
- <div class="header" *ngIf="!!uiLayout?.header">
7
- <edm-sdui-component [uiComponent]="uiLayout.header"></edm-sdui-component>
8
- </div>
9
-
10
- <div class="centered">
11
- <edm-sdui-component
12
- *ngIf="!!uiLayout?.centered"
13
- [uiComponent]="uiLayout.centered"
14
- ></edm-sdui-component>
15
- </div>
16
-
17
- <div class="footer" *ngIf="!!uiLayout?.footer">
18
- <edm-sdui-component [uiComponent]="uiLayout.footer"></edm-sdui-component>
19
- </div>
20
- </div>
@@ -1,36 +0,0 @@
1
- :host {
2
- display: contents;
3
- }
4
-
5
- .centered-content-layout {
6
- display: flex;
7
- flex-direction: column;
8
- width: 100vw;
9
- min-height: 100vh;
10
- position: relative;
11
-
12
- .header {
13
- position: fixed;
14
- top: 0;
15
- left: 0;
16
- width: 100%;
17
- z-index: 100;
18
- }
19
-
20
- .centered {
21
- flex: 1;
22
- display: flex;
23
- align-items: center;
24
- justify-content: center;
25
- margin-top: var(--header-height, 64px);
26
- margin-bottom: var(--footer-height, 64px);
27
- }
28
-
29
- .footer {
30
- position: fixed;
31
- bottom: 0;
32
- left: 0;
33
- width: 100%;
34
- z-index: 100;
35
- }
36
- }
@@ -1,21 +0,0 @@
1
- import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
2
- import { UICenteredContentLayout } from '../../../core/uicomposition/models/uicentered-content-layout';
3
-
4
- @Component({
5
- selector: 'edm-sdui-centered-content-layout',
6
- templateUrl: './centered-content-layout.component.html',
7
- styleUrl: './centered-content-layout.component.scss',
8
- standalone: false,
9
- })
10
- export class CenteredContentLayoutComponent implements OnChanges {
11
- @Input() uiLayout?: UICenteredContentLayout;
12
-
13
- ngOnChanges(changes: SimpleChanges): void {
14
- if (changes['uiLayout']) {
15
- console.debug(
16
- '[CenteredContentLayoutComponent] Novo layout recebido:',
17
- changes['uiLayout'].currentValue
18
- );
19
- }
20
- }
21
- }
@@ -1,22 +0,0 @@
1
- <div class="single-column-layout" *ngIf="!!uiLayout">
2
- <!-- <pre>{{ uiLayout | json }}</pre> -->
3
-
4
- <edm-sdui-navigation [uiNavigation]="uiLayout.nav"></edm-sdui-navigation>
5
-
6
- <div class="header" *ngIf="!!uiLayout?.header">
7
- <edm-sdui-component [uiComponent]="uiLayout.header"></edm-sdui-component>
8
- </div>
9
-
10
- <div class="scrollview" *ngIf="!!uiLayout?.main">
11
- <div class="main">
12
- <edm-sdui-component
13
- *ngIf="!!uiLayout?.main"
14
- [uiComponent]="uiLayout.main"
15
- ></edm-sdui-component>
16
- </div>
17
- </div>
18
-
19
- <div class="footer" *ngIf="!!uiLayout?.footer">
20
- <edm-sdui-component [uiComponent]="uiLayout.footer"></edm-sdui-component>
21
- </div>
22
- </div>