@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.
- package/edm-sdui-sdui.d.ts.map +1 -0
- package/esm2022/edm-sdui-sdui.mjs +5 -0
- package/esm2022/lib/components/navigation-controls/navigation-controls.component.mjs +27 -0
- package/esm2022/lib/components/uicomponent/button/button.component.mjs +47 -0
- package/esm2022/lib/components/uicomponent/column/column.component.mjs +23 -0
- package/esm2022/lib/components/uicomponent/image/image.component.mjs +48 -0
- package/esm2022/lib/components/uicomponent/label/label.component.mjs +49 -0
- package/esm2022/lib/components/uicomponent/row/row.component.mjs +23 -0
- package/esm2022/lib/components/uicomponent/row-divisor/row-divisor.component.mjs +22 -0
- package/esm2022/lib/components/uicomponent/search-bar/search-bar.component.mjs +99 -0
- package/esm2022/lib/components/uicomponent/space/space.component.mjs +20 -0
- package/esm2022/lib/components/uicomponent/tag/tag.component.mjs +50 -0
- package/esm2022/lib/components/uicomponent/uicomponent.component.mjs +41 -0
- package/esm2022/lib/components/uicomponent/zstack/zstack.component.mjs +23 -0
- package/esm2022/lib/components/uilayout/centered-content-layout/centered-content-layout.component.mjs +21 -0
- package/esm2022/lib/components/uilayout/single-column-layout/single-column-layout.component.mjs +21 -0
- package/esm2022/lib/components/uilayout/uinavigation/uinavigation.component.mjs +15 -0
- package/esm2022/lib/components/uiscreen/uiscreen.component.mjs +23 -0
- package/esm2022/lib/core/services/ui-action.service.mjs +42 -0
- package/esm2022/lib/core/services/uiscreen.service.mjs +150 -0
- package/esm2022/lib/core/tokens/sdui-config.token.mjs +3 -0
- package/esm2022/lib/core/uicomposition/enums/uicomponent-type.mjs +28 -0
- package/esm2022/lib/core/uicomposition/enums/uiplatform-type.mjs +6 -0
- package/esm2022/lib/core/uicomposition/enums/uiscene.mjs +5 -0
- package/esm2022/lib/core/uicomposition/enums/uiscreen-identifier.mjs +6 -0
- package/esm2022/lib/core/uicomposition/mapping/component-mapping.mjs +28 -0
- package/esm2022/lib/core/uicomposition/models/uicentered-content-layout.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uicomponent.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uielement.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uilayout.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uinavigation.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uiscreen.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uisingle-column-layout.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uiview.mjs +2 -0
- package/esm2022/lib/core/uitheme/enums/uiaction-type.mjs +14 -0
- package/esm2022/lib/core/uitheme/enums/uialignment-type.mjs +7 -0
- package/esm2022/lib/core/uitheme/enums/uiaspect-type.mjs +6 -0
- package/esm2022/lib/core/uitheme/enums/uiasset.mjs +355 -0
- package/esm2022/lib/core/uitheme/enums/uicolor.mjs +131 -0
- package/esm2022/lib/core/uitheme/enums/uicontent-type.mjs +10 -0
- package/esm2022/lib/core/uitheme/enums/uipadding-level.mjs +12 -0
- package/esm2022/lib/core/uitheme/enums/uipresentation-style.mjs +7 -0
- package/esm2022/lib/core/uitheme/enums/uiradius-level.mjs +10 -0
- package/esm2022/lib/core/uitheme/enums/uishadow-blur-radius.mjs +5 -0
- package/esm2022/lib/core/uitheme/enums/uishadow-offset.mjs +5 -0
- package/esm2022/lib/core/uitheme/enums/uisize.mjs +13 -0
- package/esm2022/lib/core/uitheme/enums/uispacing-level.mjs +8 -0
- package/esm2022/lib/core/uitheme/enums/uitext-style.mjs +15 -0
- package/esm2022/lib/core/uitheme/mapping/alignment-mapping.mjs +7 -0
- package/esm2022/lib/core/uitheme/mapping/asset-mapping.mjs +355 -0
- package/esm2022/lib/core/uitheme/mapping/color-mapping.mjs +131 -0
- package/esm2022/lib/core/uitheme/mapping/pad-mapping.mjs +12 -0
- package/esm2022/lib/core/uitheme/mapping/radius-mapping.mjs +10 -0
- package/esm2022/lib/core/uitheme/mapping/size-mapping.mjs +24 -0
- package/esm2022/lib/core/uitheme/mapping/space-mapping.mjs +8 -0
- package/esm2022/lib/core/uitheme/mapping/text-style-mapping.mjs +15 -0
- package/esm2022/lib/core/uitheme/models/uiaction.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uialignment.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uibackground.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uipadding.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uiradius.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uishadow.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uispacing.mjs +2 -0
- package/esm2022/lib/core/utils/url-parser.util.mjs +19 -0
- package/esm2022/lib/core/view-models/uiscreen.viewmodel.mjs +101 -0
- package/esm2022/lib/directives/uiview.directive.mjs +140 -0
- package/esm2022/lib/sdui-routing.module.mjs +28 -0
- package/esm2022/lib/sdui.component.mjs +51 -0
- package/esm2022/lib/sdui.module.mjs +102 -0
- package/esm2022/public-api.mjs +12 -0
- package/fesm2022/edm-sdui-sdui.mjs +2279 -0
- package/fesm2022/edm-sdui-sdui.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/lib/components/navigation-controls/navigation-controls.component.d.ts +12 -0
- package/lib/components/navigation-controls/navigation-controls.component.d.ts.map +1 -0
- package/lib/components/uicomponent/button/button.component.d.ts +17 -0
- package/lib/components/uicomponent/button/button.component.d.ts.map +1 -0
- package/lib/components/uicomponent/column/column.component.d.ts +11 -0
- package/lib/components/uicomponent/column/column.component.d.ts.map +1 -0
- package/lib/components/uicomponent/image/image.component.d.ts +15 -0
- package/lib/components/uicomponent/image/image.component.d.ts.map +1 -0
- package/lib/components/uicomponent/label/label.component.d.ts +15 -0
- package/lib/components/uicomponent/label/label.component.d.ts.map +1 -0
- package/lib/components/uicomponent/row/row.component.d.ts +11 -0
- package/lib/components/uicomponent/row/row.component.d.ts.map +1 -0
- package/lib/components/uicomponent/row-divisor/row-divisor.component.d.ts +11 -0
- package/lib/components/uicomponent/row-divisor/row-divisor.component.d.ts.map +1 -0
- package/lib/components/uicomponent/search-bar/search-bar.component.d.ts +17 -0
- package/lib/components/uicomponent/search-bar/search-bar.component.d.ts.map +1 -0
- package/lib/components/uicomponent/space/space.component.d.ts +11 -0
- package/lib/components/uicomponent/space/space.component.d.ts.map +1 -0
- package/lib/components/uicomponent/tag/tag.component.d.ts +17 -0
- package/lib/components/uicomponent/tag/tag.component.d.ts.map +1 -0
- package/lib/components/uicomponent/uicomponent.component.d.ts +17 -0
- package/lib/components/uicomponent/uicomponent.component.d.ts.map +1 -0
- package/lib/components/uicomponent/zstack/zstack.component.d.ts +11 -0
- package/lib/components/uicomponent/zstack/zstack.component.d.ts.map +1 -0
- package/lib/components/uilayout/centered-content-layout/centered-content-layout.component.d.ts +10 -0
- package/lib/components/uilayout/centered-content-layout/centered-content-layout.component.d.ts.map +1 -0
- package/lib/components/uilayout/single-column-layout/single-column-layout.component.d.ts +10 -0
- package/lib/components/uilayout/single-column-layout/single-column-layout.component.d.ts.map +1 -0
- package/lib/components/uilayout/uinavigation/uinavigation.component.d.ts +8 -0
- package/lib/components/uilayout/uinavigation/uinavigation.component.d.ts.map +1 -0
- package/lib/components/uiscreen/uiscreen.component.d.ts +11 -0
- package/lib/components/uiscreen/uiscreen.component.d.ts.map +1 -0
- package/lib/core/services/ui-action.service.d.ts +11 -0
- package/lib/core/services/ui-action.service.d.ts.map +1 -0
- package/lib/core/services/uiscreen.service.d.ts +24 -0
- package/lib/core/services/uiscreen.service.d.ts.map +1 -0
- package/lib/core/tokens/sdui-config.token.d.ts +3 -0
- package/lib/core/tokens/sdui-config.token.d.ts.map +1 -0
- package/lib/core/uicomposition/enums/uicomponent-type.d.ts +20 -0
- package/lib/core/uicomposition/enums/uicomponent-type.d.ts.map +1 -0
- package/lib/core/uicomposition/enums/uiplatform-type.d.ts +5 -0
- package/lib/core/uicomposition/enums/uiplatform-type.d.ts.map +1 -0
- package/lib/core/uicomposition/enums/uiscene.d.ts +4 -0
- package/lib/core/uicomposition/enums/uiscene.d.ts.map +1 -0
- package/lib/core/uicomposition/enums/uiscreen-identifier.d.ts +5 -0
- package/lib/core/uicomposition/enums/uiscreen-identifier.d.ts.map +1 -0
- package/lib/core/uicomposition/mapping/component-mapping.d.ts +4 -0
- package/lib/core/uicomposition/mapping/component-mapping.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uicentered-content-layout.d.ts +11 -0
- package/lib/core/uicomposition/models/uicentered-content-layout.d.ts.map +1 -0
- package/{src/lib/core/uicomposition/models/uicomponent.ts → lib/core/uicomposition/models/uicomponent.d.ts} +5 -5
- package/lib/core/uicomposition/models/uicomponent.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uielement.d.ts +25 -0
- package/lib/core/uicomposition/models/uielement.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uilayout.d.ts +4 -0
- package/lib/core/uicomposition/models/uilayout.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uinavigation.d.ts +6 -0
- package/lib/core/uicomposition/models/uinavigation.d.ts.map +1 -0
- package/{src/lib/core/uicomposition/models/uiscreen.ts → lib/core/uicomposition/models/uiscreen.d.ts} +6 -6
- package/lib/core/uicomposition/models/uiscreen.d.ts.map +1 -0
- package/{src/lib/core/uicomposition/models/uisingle-column-layout.ts → lib/core/uicomposition/models/uisingle-column-layout.d.ts} +5 -5
- package/lib/core/uicomposition/models/uisingle-column-layout.d.ts.map +1 -0
- package/{src/lib/core/uicomposition/models/uiview.ts → lib/core/uicomposition/models/uiview.d.ts} +8 -9
- package/lib/core/uicomposition/models/uiview.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uiaction-type.d.ts +10 -0
- package/lib/core/uitheme/enums/uiaction-type.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uialignment-type.d.ts +6 -0
- package/lib/core/uitheme/enums/uialignment-type.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uiaspect-type.d.ts +5 -0
- package/lib/core/uitheme/enums/uiaspect-type.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uiasset.d.ts +354 -0
- package/lib/core/uitheme/enums/uiasset.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uicolor.d.ts +130 -0
- package/lib/core/uitheme/enums/uicolor.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uicontent-type.d.ts +9 -0
- package/lib/core/uitheme/enums/uicontent-type.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uipadding-level.d.ts +11 -0
- package/lib/core/uitheme/enums/uipadding-level.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uipresentation-style.d.ts +6 -0
- package/lib/core/uitheme/enums/uipresentation-style.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uiradius-level.d.ts +9 -0
- package/lib/core/uitheme/enums/uiradius-level.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uishadow-blur-radius.d.ts +4 -0
- package/lib/core/uitheme/enums/uishadow-blur-radius.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uishadow-offset.d.ts +4 -0
- package/lib/core/uitheme/enums/uishadow-offset.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uisize.d.ts +12 -0
- package/lib/core/uitheme/enums/uisize.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uispacing-level.d.ts +7 -0
- package/lib/core/uitheme/enums/uispacing-level.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uitext-style.d.ts +14 -0
- package/lib/core/uitheme/enums/uitext-style.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/alignment-mapping.d.ts +3 -0
- package/lib/core/uitheme/mapping/alignment-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/asset-mapping.d.ts +3 -0
- package/lib/core/uitheme/mapping/asset-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/color-mapping.d.ts +3 -0
- package/lib/core/uitheme/mapping/color-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/pad-mapping.d.ts +3 -0
- package/lib/core/uitheme/mapping/pad-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/radius-mapping.d.ts +3 -0
- package/lib/core/uitheme/mapping/radius-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/size-mapping.d.ts +4 -0
- package/lib/core/uitheme/mapping/size-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/space-mapping.d.ts +3 -0
- package/lib/core/uitheme/mapping/space-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/text-style-mapping.d.ts +3 -0
- package/lib/core/uitheme/mapping/text-style-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/models/uiaction.d.ts +10 -0
- package/lib/core/uitheme/models/uiaction.d.ts.map +1 -0
- package/{src/lib/core/uitheme/models/uialignment.ts → lib/core/uitheme/models/uialignment.d.ts} +2 -2
- package/lib/core/uitheme/models/uialignment.d.ts.map +1 -0
- package/{src/lib/core/uitheme/models/uibackground.ts → lib/core/uitheme/models/uibackground.d.ts} +2 -2
- package/lib/core/uitheme/models/uibackground.d.ts.map +1 -0
- package/lib/core/uitheme/models/uipadding.d.ts +8 -0
- package/lib/core/uitheme/models/uipadding.d.ts.map +1 -0
- package/lib/core/uitheme/models/uiradius.d.ts +8 -0
- package/lib/core/uitheme/models/uiradius.d.ts.map +1 -0
- package/{src/lib/core/uitheme/models/uishadow.ts → lib/core/uitheme/models/uishadow.d.ts} +6 -6
- package/lib/core/uitheme/models/uishadow.d.ts.map +1 -0
- package/{src/lib/core/uitheme/models/uispacing.ts → lib/core/uitheme/models/uispacing.d.ts} +2 -2
- package/lib/core/uitheme/models/uispacing.d.ts.map +1 -0
- package/lib/core/utils/url-parser.util.d.ts +3 -0
- package/lib/core/utils/url-parser.util.d.ts.map +1 -0
- package/lib/core/view-models/uiscreen.viewmodel.d.ts +40 -0
- package/lib/core/view-models/uiscreen.viewmodel.d.ts.map +1 -0
- package/lib/directives/uiview.directive.d.ts +29 -0
- package/lib/directives/uiview.directive.d.ts.map +1 -0
- package/lib/sdui-routing.module.d.ts +10 -0
- package/lib/sdui-routing.module.d.ts.map +1 -0
- package/lib/sdui.component.d.ts +17 -0
- package/lib/sdui.component.d.ts.map +1 -0
- package/lib/sdui.module.d.ts +35 -0
- package/lib/sdui.module.d.ts.map +1 -0
- package/package.json +20 -16
- package/public-api.d.ts +5 -0
- package/public-api.d.ts.map +1 -0
- package/ng-package.json +0 -9
- package/src/index.ts +0 -1
- package/src/lib/components/navigation-controls/navigation-controls.component.html +0 -9
- package/src/lib/components/navigation-controls/navigation-controls.component.scss +0 -35
- package/src/lib/components/navigation-controls/navigation-controls.component.ts +0 -27
- package/src/lib/components/uicomponent/button/button.component.html +0 -4
- package/src/lib/components/uicomponent/button/button.component.scss +0 -11
- package/src/lib/components/uicomponent/button/button.component.ts +0 -64
- package/src/lib/components/uicomponent/column/column.component.html +0 -7
- package/src/lib/components/uicomponent/column/column.component.scss +0 -9
- package/src/lib/components/uicomponent/column/column.component.ts +0 -16
- package/src/lib/components/uicomponent/image/image.component.html +0 -1
- package/src/lib/components/uicomponent/image/image.component.scss +0 -3
- package/src/lib/components/uicomponent/image/image.component.ts +0 -69
- package/src/lib/components/uicomponent/label/label.component.html +0 -3
- package/src/lib/components/uicomponent/label/label.component.scss +0 -3
- package/src/lib/components/uicomponent/label/label.component.ts +0 -66
- package/src/lib/components/uicomponent/row/row.component.html +0 -7
- package/src/lib/components/uicomponent/row/row.component.scss +0 -8
- package/src/lib/components/uicomponent/row/row.component.ts +0 -16
- package/src/lib/components/uicomponent/row-divisor/row-divisor.component.html +0 -5
- package/src/lib/components/uicomponent/row-divisor/row-divisor.component.scss +0 -8
- package/src/lib/components/uicomponent/row-divisor/row-divisor.component.ts +0 -16
- package/src/lib/components/uicomponent/search-bar/search-bar.component.html +0 -7
- package/src/lib/components/uicomponent/search-bar/search-bar.component.scss +0 -7
- package/src/lib/components/uicomponent/search-bar/search-bar.component.ts +0 -129
- package/src/lib/components/uicomponent/space/space.component.html +0 -1
- package/src/lib/components/uicomponent/space/space.component.scss +0 -10
- package/src/lib/components/uicomponent/space/space.component.ts +0 -16
- package/src/lib/components/uicomponent/tag/tag.component.html +0 -3
- package/src/lib/components/uicomponent/tag/tag.component.scss +0 -7
- package/src/lib/components/uicomponent/tag/tag.component.ts +0 -54
- package/src/lib/components/uicomponent/uicomponent.component.html +0 -5
- package/src/lib/components/uicomponent/uicomponent.component.scss +0 -3
- package/src/lib/components/uicomponent/uicomponent.component.ts +0 -53
- package/src/lib/components/uicomponent/zstack/zstack.component.html +0 -6
- package/src/lib/components/uicomponent/zstack/zstack.component.scss +0 -12
- package/src/lib/components/uicomponent/zstack/zstack.component.ts +0 -16
- package/src/lib/components/uilayout/centered-content-layout/centered-content-layout.component.html +0 -20
- package/src/lib/components/uilayout/centered-content-layout/centered-content-layout.component.scss +0 -36
- package/src/lib/components/uilayout/centered-content-layout/centered-content-layout.component.ts +0 -21
- package/src/lib/components/uilayout/single-column-layout/single-column-layout.component.html +0 -22
- package/src/lib/components/uilayout/single-column-layout/single-column-layout.component.scss +0 -37
- package/src/lib/components/uilayout/single-column-layout/single-column-layout.component.ts +0 -27
- package/src/lib/components/uilayout/uinavigation/uinavigation.component.html +0 -8
- package/src/lib/components/uilayout/uinavigation/uinavigation.component.scss +0 -4
- package/src/lib/components/uilayout/uinavigation/uinavigation.component.ts +0 -12
- package/src/lib/components/uiscreen/uiscreen.component.html +0 -29
- package/src/lib/components/uiscreen/uiscreen.component.scss +0 -12
- package/src/lib/components/uiscreen/uiscreen.component.ts +0 -15
- package/src/lib/core/interfaces/sdui-config.interface.ts +0 -3
- package/src/lib/core/services/navigation.service.ts +0 -25
- package/src/lib/core/services/sdui-config.service.ts +0 -19
- package/src/lib/core/services/ui-action.service.ts +0 -36
- package/src/lib/core/services/uiscreen.service.ts +0 -185
- package/src/lib/core/tokens/sdui-config.token.ts +0 -3
- package/src/lib/core/uicomposition/enums/uicomponent-type.ts +0 -32
- package/src/lib/core/uicomposition/enums/uiplatform-type.ts +0 -4
- package/src/lib/core/uicomposition/enums/uiscene.ts +0 -3
- package/src/lib/core/uicomposition/enums/uiscreen-identifier.ts +0 -4
- package/src/lib/core/uicomposition/mapping/component-mapping.ts +0 -90
- package/src/lib/core/uicomposition/models/uicentered-content-layout.ts +0 -11
- package/src/lib/core/uicomposition/models/uielement.ts +0 -25
- package/src/lib/core/uicomposition/models/uilayout.ts +0 -4
- package/src/lib/core/uicomposition/models/uinavigation.ts +0 -6
- package/src/lib/core/uitheme/enums/uiaction-type.ts +0 -14
- package/src/lib/core/uitheme/enums/uialignment-type.ts +0 -5
- package/src/lib/core/uitheme/enums/uiaspect-type.ts +0 -4
- package/src/lib/core/uitheme/enums/uiasset.ts +0 -361
- package/src/lib/core/uitheme/enums/uicolor.ts +0 -129
- package/src/lib/core/uitheme/enums/uicontent-type.ts +0 -8
- package/src/lib/core/uitheme/enums/uipadding-level.ts +0 -10
- package/src/lib/core/uitheme/enums/uipresentation-style.ts +0 -5
- package/src/lib/core/uitheme/enums/uiradius-level.ts +0 -8
- package/src/lib/core/uitheme/enums/uishadow-blur-radius.ts +0 -3
- package/src/lib/core/uitheme/enums/uishadow-offset.ts +0 -3
- package/src/lib/core/uitheme/enums/uisize.ts +0 -12
- package/src/lib/core/uitheme/enums/uispacing-level.ts +0 -6
- package/src/lib/core/uitheme/enums/uitext-style.ts +0 -13
- package/src/lib/core/uitheme/mapping/alignment-mapping.ts +0 -7
- package/src/lib/core/uitheme/mapping/asset-mapping.ts +0 -363
- package/src/lib/core/uitheme/mapping/color-mapping.ts +0 -131
- package/src/lib/core/uitheme/mapping/pad-mapping.ts +0 -12
- package/src/lib/core/uitheme/mapping/radius-mapping.ts +0 -10
- package/src/lib/core/uitheme/mapping/size-mapping.ts +0 -25
- package/src/lib/core/uitheme/mapping/space-mapping.ts +0 -8
- package/src/lib/core/uitheme/mapping/text-style-mapping.ts +0 -15
- package/src/lib/core/uitheme/models/uiaction.ts +0 -10
- package/src/lib/core/uitheme/models/uipadding.ts +0 -8
- package/src/lib/core/uitheme/models/uiradius.ts +0 -8
- package/src/lib/core/uitheme/models/uiview.ts +0 -0
- package/src/lib/core/utils/url-parser.util.ts +0 -24
- package/src/lib/core/view-models/uiscreen.viewmodel.ts +0 -115
- package/src/lib/directives/uiview.directive.ts +0 -207
- package/src/lib/sdui-routing.module.ts +0 -22
- package/src/lib/sdui.component.html +0 -3
- package/src/lib/sdui.component.scss +0 -11
- package/src/lib/sdui.component.ts +0 -65
- package/src/lib/sdui.module.ts +0 -84
- package/src/public-api.ts +0 -16
- package/tsconfig.lib.json +0 -16
- package/tsconfig.spec.json +0 -12
package/src/lib/components/uilayout/single-column-layout/single-column-layout.component.scss
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: contents;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.single-column-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
|
-
.scrollview {
|
|
20
|
-
.main {
|
|
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
|
-
|
|
30
|
-
.footer {
|
|
31
|
-
position: fixed;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
left: 0;
|
|
34
|
-
width: 100%;
|
|
35
|
-
z-index: 100;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
Input,
|
|
5
|
-
OnChanges,
|
|
6
|
-
SimpleChanges,
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
import { UISingleColumnLayout } from '../../../core/uicomposition/models/uisingle-column-layout';
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'edm-sdui-single-column-layout',
|
|
12
|
-
templateUrl: './single-column-layout.component.html',
|
|
13
|
-
styleUrl: './single-column-layout.component.scss',
|
|
14
|
-
standalone: false,
|
|
15
|
-
})
|
|
16
|
-
export class SingleColumnLayoutComponent implements OnChanges {
|
|
17
|
-
@Input() uiLayout?: UISingleColumnLayout;
|
|
18
|
-
|
|
19
|
-
ngOnChanges(changes: SimpleChanges): void {
|
|
20
|
-
if (changes['uiLayout']) {
|
|
21
|
-
console.debug(
|
|
22
|
-
'[SingleColumnLayout] Novo layout recebido:',
|
|
23
|
-
changes['uiLayout'].currentValue
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, Component, Input } from '@angular/core';
|
|
2
|
-
import { UINavigation } from '../../../core/uicomposition/models/uinavigation';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'edm-sdui-navigation',
|
|
6
|
-
styleUrl: './uinavigation.component.scss',
|
|
7
|
-
templateUrl: './uinavigation.component.html',
|
|
8
|
-
standalone: false,
|
|
9
|
-
})
|
|
10
|
-
export class UINavigationComponent {
|
|
11
|
-
@Input() uiNavigation?: UINavigation;
|
|
12
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<div *ngIf="viewModel.isLoading$ | async"><p>Carregando...</p></div>
|
|
2
|
-
|
|
3
|
-
<div *ngIf="viewModel.error$ | async as errorMessage">
|
|
4
|
-
<p class="error-label">Erro: {{ errorMessage }}</p>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
<div
|
|
8
|
-
class="ui-screen"
|
|
9
|
-
*ngIf="viewModel.uiScreen$ | async as uiScreen"
|
|
10
|
-
[edmSduiView]="uiScreen"
|
|
11
|
-
>
|
|
12
|
-
<edm-sdui-navigation-controls
|
|
13
|
-
[edmSduiView]="uiScreen"
|
|
14
|
-
></edm-sdui-navigation-controls>
|
|
15
|
-
|
|
16
|
-
<ng-container [ngSwitch]="uiScreen.identifier">
|
|
17
|
-
<edm-sdui-single-column-layout
|
|
18
|
-
*ngSwitchCase="UIScreenIdentifier.SINGLE_COLUMN"
|
|
19
|
-
[uiLayout]="uiScreen.content"
|
|
20
|
-
>
|
|
21
|
-
</edm-sdui-single-column-layout>
|
|
22
|
-
|
|
23
|
-
<edm-sdui-centered-content-layout
|
|
24
|
-
*ngSwitchCase="UIScreenIdentifier.CENTERED_CONTENT"
|
|
25
|
-
[uiLayout]="uiScreen.content"
|
|
26
|
-
>
|
|
27
|
-
</edm-sdui-centered-content-layout>
|
|
28
|
-
</ng-container>
|
|
29
|
-
</div>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { UIScreenViewModel } from '../../core/view-models/uiscreen.viewmodel';
|
|
3
|
-
import { UIScreenIdentifier } from '../../core/uicomposition/enums/uiscreen-identifier';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'edm-sdui-uiscreen',
|
|
7
|
-
templateUrl: './uiscreen.component.html',
|
|
8
|
-
styleUrl: './uiscreen.component.scss',
|
|
9
|
-
standalone: false,
|
|
10
|
-
})
|
|
11
|
-
export class UIScreenComponent {
|
|
12
|
-
readonly UIScreenIdentifier = UIScreenIdentifier;
|
|
13
|
-
|
|
14
|
-
constructor(public viewModel: UIScreenViewModel) {}
|
|
15
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Injectable({
|
|
4
|
-
providedIn: 'root',
|
|
5
|
-
})
|
|
6
|
-
export class SduiNavigationService {
|
|
7
|
-
private navigationHistory: string[] = [];
|
|
8
|
-
|
|
9
|
-
forward(url: string): void {
|
|
10
|
-
this.navigationHistory.push(url);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
back(): string | null | undefined {
|
|
14
|
-
if (this.canGoBack()) {
|
|
15
|
-
this.navigationHistory.pop();
|
|
16
|
-
return this.navigationHistory[this.navigationHistory.length - 1];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
canGoBack(): boolean {
|
|
23
|
-
return this.navigationHistory.length > 1;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { SduiConfig } from '../interfaces/sdui-config.interface';
|
|
3
|
-
|
|
4
|
-
@Injectable({
|
|
5
|
-
providedIn: 'root',
|
|
6
|
-
})
|
|
7
|
-
export class SduiConfigService {
|
|
8
|
-
private config: SduiConfig = {
|
|
9
|
-
baseUrl: '',
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
setConfig(config: SduiConfig): void {
|
|
13
|
-
this.config = { ...this.config, ...config };
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
getBaseUrl(): string {
|
|
17
|
-
return this.config.baseUrl;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { UIActionType } from '../uitheme/enums/uiaction-type';
|
|
4
|
-
import { UIAction } from '../uitheme/models/uiaction';
|
|
5
|
-
import { resolveSduiUrl, isSduiUrl } from '../utils/url-parser.util';
|
|
6
|
-
import { SDUI_URL_PARAM } from '../view-models/uiscreen.viewmodel';
|
|
7
|
-
|
|
8
|
-
@Injectable({ providedIn: 'root' })
|
|
9
|
-
export class UIActionService {
|
|
10
|
-
constructor(private router: Router) {}
|
|
11
|
-
|
|
12
|
-
execute(action: UIAction): void {
|
|
13
|
-
if (!action || !action.type) return;
|
|
14
|
-
|
|
15
|
-
switch (action.type) {
|
|
16
|
-
case UIActionType.INTERNAL_URL:
|
|
17
|
-
case UIActionType.RELOAD_INTERNAL_URL:
|
|
18
|
-
if (action.url) {
|
|
19
|
-
console.debug('[UIActionService] Navigating to:', action.url);
|
|
20
|
-
|
|
21
|
-
if (isSduiUrl(action.url)) {
|
|
22
|
-
const resolved = resolveSduiUrl(action.url);
|
|
23
|
-
this.router.navigate([], {
|
|
24
|
-
queryParams: { [SDUI_URL_PARAM]: resolved },
|
|
25
|
-
queryParamsHandling: 'merge',
|
|
26
|
-
});
|
|
27
|
-
} else {
|
|
28
|
-
this.router.navigateByUrl(action.url, { replaceUrl: false });
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
break;
|
|
32
|
-
|
|
33
|
-
// Outros tipos de ação podem ser adicionados aqui
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { Injectable, Inject, Optional } from '@angular/core';
|
|
2
|
-
import { Observable, map } from 'rxjs';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { UIScreen } from '../uicomposition/models/uiscreen';
|
|
5
|
-
import { UILayout } from '../uicomposition/models/uilayout';
|
|
6
|
-
import { UIScreenIdentifier } from '../uicomposition/enums/uiscreen-identifier';
|
|
7
|
-
import { UISingleColumnLayout } from '../uicomposition/models/uisingle-column-layout';
|
|
8
|
-
import { UINavigation } from '../uicomposition/models/uinavigation';
|
|
9
|
-
import { UIComponent } from '../uicomposition/models/uicomponent';
|
|
10
|
-
import { UIComponentType } from '../uicomposition/enums/uicomponent-type';
|
|
11
|
-
import { UIElement } from '../uicomposition/models/uielement';
|
|
12
|
-
import { UIView } from '../uicomposition/models/uiview';
|
|
13
|
-
import { UIPadding } from '../uitheme/models/uipadding';
|
|
14
|
-
import { UIBackground } from '../uitheme/models/uibackground';
|
|
15
|
-
import { UIAction } from '../uitheme/models/uiaction';
|
|
16
|
-
import { UIShadow } from '../uitheme/models/uishadow';
|
|
17
|
-
import { UIRadius } from '../uitheme/models/uiradius';
|
|
18
|
-
import { UIActionType } from '../uitheme/enums/uiaction-type';
|
|
19
|
-
import { UIColor } from '../uitheme/enums/uicolor';
|
|
20
|
-
import { UITextStyle } from '../uitheme/enums/uitext-style';
|
|
21
|
-
import { UIAsset } from '../uitheme/enums/uiasset';
|
|
22
|
-
import { UIAlignmentType } from '../uitheme/enums/uialignment-type';
|
|
23
|
-
import { UISpacingLevel } from '../uitheme/enums/uispacing-level';
|
|
24
|
-
import { SDUI_BASE_URL } from '../tokens/sdui-config.token';
|
|
25
|
-
import { resolveSduiUrl } from '../utils/url-parser.util';
|
|
26
|
-
import { UICenteredContentLayout } from '../uicomposition/models/uicentered-content-layout';
|
|
27
|
-
import { UIRadiusLevel } from '../uitheme/enums/uiradius-level';
|
|
28
|
-
import { UIContentType } from '../uitheme/enums/uicontent-type';
|
|
29
|
-
import { UIAspectType } from '../uitheme/enums/uiaspect-type';
|
|
30
|
-
|
|
31
|
-
@Injectable({
|
|
32
|
-
providedIn: 'root',
|
|
33
|
-
})
|
|
34
|
-
export class UIScreenService {
|
|
35
|
-
constructor(
|
|
36
|
-
private http: HttpClient,
|
|
37
|
-
@Optional() @Inject(SDUI_BASE_URL) private baseUrl: string = ''
|
|
38
|
-
) {}
|
|
39
|
-
|
|
40
|
-
getUIScreen(url: string): Observable<UIScreen> {
|
|
41
|
-
let finalUrl = resolveSduiUrl(url, this.baseUrl);
|
|
42
|
-
|
|
43
|
-
return this.http
|
|
44
|
-
.get<any>(finalUrl)
|
|
45
|
-
.pipe(map((json) => this.mapToUIScreen(json)));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
private mapToUIScreen(json: Partial<UIScreen>): UIScreen {
|
|
49
|
-
const { identifier, content } = json;
|
|
50
|
-
|
|
51
|
-
if (!identifier) {
|
|
52
|
-
throw new Error(`Identificador da tela ausente no JSON recebido.`);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const layout = this.getLayout(identifier as UIScreenIdentifier, content);
|
|
56
|
-
|
|
57
|
-
return {
|
|
58
|
-
identifier: identifier as UIScreenIdentifier,
|
|
59
|
-
content: layout,
|
|
60
|
-
...this.mapToUIView(json),
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
private getLayout(
|
|
65
|
-
identifier: UIScreenIdentifier,
|
|
66
|
-
content: UILayout | undefined
|
|
67
|
-
): UILayout {
|
|
68
|
-
switch (identifier) {
|
|
69
|
-
case UIScreenIdentifier.SINGLE_COLUMN:
|
|
70
|
-
return this.mapToSingleColumnLayout(content ?? {});
|
|
71
|
-
|
|
72
|
-
case UIScreenIdentifier.CENTERED_CONTENT:
|
|
73
|
-
return this.mapToCenteredContentLayout(content ?? {});
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
throw new Error(`Tipo de tela desconhecido: ${identifier}`);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
private mapToSingleColumnLayout(
|
|
81
|
-
json: Partial<UISingleColumnLayout>
|
|
82
|
-
): UISingleColumnLayout {
|
|
83
|
-
return {
|
|
84
|
-
nav: json.nav ? this.mapToUINavigation(json.nav) : null,
|
|
85
|
-
header: json.header ? this.mapToUIComponent(json.header) : null,
|
|
86
|
-
main: json.main ? this.mapToUIComponent(json.main) : null,
|
|
87
|
-
footer: json.footer ? this.mapToUIComponent(json.footer) : null,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private mapToCenteredContentLayout(
|
|
92
|
-
json: Partial<UICenteredContentLayout>
|
|
93
|
-
): UICenteredContentLayout {
|
|
94
|
-
return {
|
|
95
|
-
nav: json.nav ? this.mapToUINavigation(json.nav) : null,
|
|
96
|
-
backgroundComponent: json.backgroundComponent
|
|
97
|
-
? this.mapToUIComponent(json.backgroundComponent)
|
|
98
|
-
: null,
|
|
99
|
-
header: json.header ? this.mapToUIComponent(json.header) : null,
|
|
100
|
-
centered: json.centered ? this.mapToUIComponent(json.centered) : null,
|
|
101
|
-
footer: json.footer ? this.mapToUIComponent(json.footer) : null,
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
private mapToUINavigation(json: any): UINavigation {
|
|
106
|
-
return {
|
|
107
|
-
title: json.title ?? null,
|
|
108
|
-
titleComponent: json.title_component
|
|
109
|
-
? this.mapToUIComponent(json.title_component)
|
|
110
|
-
: null,
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
private mapToUIComponent(json: Partial<UIComponent>): UIComponent {
|
|
115
|
-
return {
|
|
116
|
-
type: json.type || UIComponentType.COLUMN, // Define um tipo padrão
|
|
117
|
-
components: json.components
|
|
118
|
-
? json.components.map((c) => this.mapToUIComponent(c))
|
|
119
|
-
: [],
|
|
120
|
-
element: json.element ? this.mapToUIElement(json.element) : null,
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
private mapToUIElement(json: any): UIElement {
|
|
125
|
-
return {
|
|
126
|
-
label: json.label ?? null,
|
|
127
|
-
textColor: json.text_color ? (json.text_color as UIColor) : null,
|
|
128
|
-
textStyle: json.text_style ? (json.text_style as UITextStyle) : null,
|
|
129
|
-
maxLines: json.max_lines ?? null,
|
|
130
|
-
asset: json.asset ? (json.asset as UIAsset) : null,
|
|
131
|
-
url: json.url ?? null,
|
|
132
|
-
enabled: json.enabled ?? true,
|
|
133
|
-
size: json.size ?? null,
|
|
134
|
-
opacity: json.opacity ?? null,
|
|
135
|
-
contentType: (json.content_type as UIContentType) ?? null,
|
|
136
|
-
aspect: (json.aspect as UIAspectType) ?? null,
|
|
137
|
-
grow: json.grow ?? null,
|
|
138
|
-
placeholder: json.placeholder ?? null,
|
|
139
|
-
placeholderTextColor: json.placeholder_text_color ?? null,
|
|
140
|
-
placeholderTextStyle: json.placeholder_text_style ?? null,
|
|
141
|
-
...this.mapToUIView(json),
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
private mapToUIView(json: any): UIView {
|
|
146
|
-
return {
|
|
147
|
-
padding: json.padding as UIPadding,
|
|
148
|
-
background: json.background ? this.mapBackground(json.background) : null,
|
|
149
|
-
action: json.action ? this.mapAction(json.action) : null,
|
|
150
|
-
alignment: json.alignment
|
|
151
|
-
? { alignment: json.alignment as UIAlignmentType }
|
|
152
|
-
: null,
|
|
153
|
-
shadow: json.shadow as UIShadow,
|
|
154
|
-
radius: json.radius ? this.mapRadius(json.radius) : null,
|
|
155
|
-
spacing: json.spacing
|
|
156
|
-
? { spacing: json.spacing as UISpacingLevel }
|
|
157
|
-
: null,
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
private mapBackground(json: any): UIBackground {
|
|
162
|
-
return {
|
|
163
|
-
backgroundColor: json.background_color,
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
private mapAction(json: any): UIAction {
|
|
168
|
-
return {
|
|
169
|
-
canAccess: json.can_acces ?? null,
|
|
170
|
-
type: json.type ? (json.type as UIActionType) : null,
|
|
171
|
-
url: json.url ?? null,
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
private mapRadius(json: any): UIRadius {
|
|
176
|
-
return {
|
|
177
|
-
topLeft: json.top_left ? (json.top_left as UIRadiusLevel) : null,
|
|
178
|
-
topRight: json.top_right ? (json.top_right as UIRadiusLevel) : null,
|
|
179
|
-
bottomLeft: json.bottom_left ? (json.bottom_left as UIRadiusLevel) : null,
|
|
180
|
-
bottomRight: json.bottom_right
|
|
181
|
-
? (json.bottom_right as UIRadiusLevel)
|
|
182
|
-
: null,
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export enum UIComponentType {
|
|
2
|
-
// stacks
|
|
3
|
-
ROW = 'ROW',
|
|
4
|
-
ROW_DIVISOR = 'ROW_DIVISOR',
|
|
5
|
-
COLUMN = 'COLUMN',
|
|
6
|
-
Z_STACK = 'Z_STACK',
|
|
7
|
-
|
|
8
|
-
// elements
|
|
9
|
-
BUTTON = 'BUTTON',
|
|
10
|
-
LABEL = 'LABEL',
|
|
11
|
-
IMAGE = 'IMAGE',
|
|
12
|
-
SPACE = 'SPACE',
|
|
13
|
-
|
|
14
|
-
// players
|
|
15
|
-
VIDEO_PLAYER_HLS = 'VIDEO_PLAYER_HLS',
|
|
16
|
-
VIDEO_PLAYER_WEB = 'VIDEO_PLAYER_WEB',
|
|
17
|
-
|
|
18
|
-
// componentes visuais media
|
|
19
|
-
MEDIA_TYPE = 'MEDIA_TYPE',
|
|
20
|
-
MEDIA_CONTENT = 'MEDIA_CONTENT',
|
|
21
|
-
|
|
22
|
-
// search
|
|
23
|
-
SEARCH_BAR = 'SEARCH_BAR',
|
|
24
|
-
SEARCH_BAR_DISMISS = 'SEARCH_BAR_DISMISS',
|
|
25
|
-
|
|
26
|
-
// picker
|
|
27
|
-
PICKER = 'PICKER',
|
|
28
|
-
PICKER_ITEM = 'PICKER_ITEM',
|
|
29
|
-
|
|
30
|
-
// tag
|
|
31
|
-
TAG = 'TAG',
|
|
32
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { UIComponentType } from '../enums/uicomponent-type';
|
|
3
|
-
|
|
4
|
-
export const componentMapping: Record<
|
|
5
|
-
UIComponentType,
|
|
6
|
-
() => Promise<Type<any>>
|
|
7
|
-
> = {
|
|
8
|
-
// com filhos
|
|
9
|
-
[UIComponentType.ROW]: () =>
|
|
10
|
-
import('../../../components/uicomponent/row/row.component').then(
|
|
11
|
-
(m) => m.RowComponent
|
|
12
|
-
),
|
|
13
|
-
[UIComponentType.ROW_DIVISOR]: () =>
|
|
14
|
-
import(
|
|
15
|
-
'../../../components/uicomponent/row-divisor/row-divisor.component'
|
|
16
|
-
).then((m) => m.RowDivisorComponent),
|
|
17
|
-
|
|
18
|
-
[UIComponentType.COLUMN]: () =>
|
|
19
|
-
import('../../../components/uicomponent/column/column.component').then(
|
|
20
|
-
(m) => m.ColumnComponent
|
|
21
|
-
),
|
|
22
|
-
[UIComponentType.Z_STACK]: () =>
|
|
23
|
-
import('../../../components/uicomponent/zstack/zstack.component').then(
|
|
24
|
-
(m) => m.ZStackComponent
|
|
25
|
-
),
|
|
26
|
-
|
|
27
|
-
// elementos
|
|
28
|
-
[UIComponentType.BUTTON]: () =>
|
|
29
|
-
import('../../../components/uicomponent/button/button.component').then(
|
|
30
|
-
(m) => m.ButtonComponent
|
|
31
|
-
),
|
|
32
|
-
[UIComponentType.IMAGE]: () =>
|
|
33
|
-
import('../../../components/uicomponent/image/image.component').then(
|
|
34
|
-
(m) => m.ImageComponent
|
|
35
|
-
),
|
|
36
|
-
[UIComponentType.SPACE]: () =>
|
|
37
|
-
import('../../../components/uicomponent/space/space.component').then(
|
|
38
|
-
(m) => m.SpaceComponent
|
|
39
|
-
),
|
|
40
|
-
[UIComponentType.LABEL]: () =>
|
|
41
|
-
import('../../../components/uicomponent/label/label.component').then(
|
|
42
|
-
(m) => m.LabelComponent
|
|
43
|
-
),
|
|
44
|
-
|
|
45
|
-
// players
|
|
46
|
-
[UIComponentType.VIDEO_PLAYER_HLS]: () =>
|
|
47
|
-
import('../../../components/uicomponent/zstack/zstack.component').then(
|
|
48
|
-
(m) => m.ZStackComponent
|
|
49
|
-
),
|
|
50
|
-
[UIComponentType.VIDEO_PLAYER_WEB]: () =>
|
|
51
|
-
import('../../../components/uicomponent/zstack/zstack.component').then(
|
|
52
|
-
(m) => m.ZStackComponent
|
|
53
|
-
),
|
|
54
|
-
|
|
55
|
-
// componentes visuais media
|
|
56
|
-
[UIComponentType.MEDIA_TYPE]: () =>
|
|
57
|
-
import('../../../components/uicomponent/zstack/zstack.component').then(
|
|
58
|
-
(m) => m.ZStackComponent
|
|
59
|
-
),
|
|
60
|
-
[UIComponentType.MEDIA_CONTENT]: () =>
|
|
61
|
-
import('../../../components/uicomponent/zstack/zstack.component').then(
|
|
62
|
-
(m) => m.ZStackComponent
|
|
63
|
-
),
|
|
64
|
-
|
|
65
|
-
// search
|
|
66
|
-
[UIComponentType.SEARCH_BAR]: () =>
|
|
67
|
-
import(
|
|
68
|
-
'../../../components/uicomponent/search-bar/search-bar.component'
|
|
69
|
-
).then((m) => m.SearchBarComponent),
|
|
70
|
-
[UIComponentType.SEARCH_BAR_DISMISS]: () =>
|
|
71
|
-
import('../../../components/uicomponent/zstack/zstack.component').then(
|
|
72
|
-
(m) => m.ZStackComponent
|
|
73
|
-
),
|
|
74
|
-
|
|
75
|
-
// picker
|
|
76
|
-
[UIComponentType.PICKER]: () =>
|
|
77
|
-
import('../../../components/uicomponent/zstack/zstack.component').then(
|
|
78
|
-
(m) => m.ZStackComponent
|
|
79
|
-
),
|
|
80
|
-
[UIComponentType.PICKER_ITEM]: () =>
|
|
81
|
-
import('../../../components/uicomponent/zstack/zstack.component').then(
|
|
82
|
-
(m) => m.ZStackComponent
|
|
83
|
-
),
|
|
84
|
-
|
|
85
|
-
// tag
|
|
86
|
-
[UIComponentType.TAG]: () =>
|
|
87
|
-
import('../../../components/uicomponent/tag/tag.component').then(
|
|
88
|
-
(m) => m.TagComponent
|
|
89
|
-
),
|
|
90
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UIComponent } from './uicomponent';
|
|
2
|
-
import { UILayout } from './uilayout';
|
|
3
|
-
import { UINavigation } from './uinavigation';
|
|
4
|
-
|
|
5
|
-
export interface UICenteredContentLayout extends UILayout {
|
|
6
|
-
nav?: UINavigation | null;
|
|
7
|
-
backgroundComponent?: UIComponent | null;
|
|
8
|
-
header?: UIComponent | null;
|
|
9
|
-
centered?: UIComponent | null;
|
|
10
|
-
footer?: UIComponent | null;
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UIAspectType } from '../../uitheme/enums/uiaspect-type';
|
|
2
|
-
import { UIAsset } from '../../uitheme/enums/uiasset';
|
|
3
|
-
import { UIColor } from '../../uitheme/enums/uicolor';
|
|
4
|
-
import { UIContentType } from '../../uitheme/enums/uicontent-type';
|
|
5
|
-
import { UISize } from '../../uitheme/enums/uisize';
|
|
6
|
-
import { UITextStyle } from '../../uitheme/enums/uitext-style';
|
|
7
|
-
import { UIView } from './uiview';
|
|
8
|
-
|
|
9
|
-
export interface UIElement extends UIView {
|
|
10
|
-
label?: string | null;
|
|
11
|
-
textColor?: UIColor | null;
|
|
12
|
-
textStyle?: UITextStyle | null;
|
|
13
|
-
maxLines?: number | null;
|
|
14
|
-
asset?: UIAsset | null;
|
|
15
|
-
url?: string | null;
|
|
16
|
-
enabled?: boolean | null;
|
|
17
|
-
size?: UISize | null;
|
|
18
|
-
opacity?: number | null;
|
|
19
|
-
contentType?: UIContentType | null;
|
|
20
|
-
aspect?: UIAspectType | null;
|
|
21
|
-
grow?: number | null;
|
|
22
|
-
placeholder?: string | null;
|
|
23
|
-
placeholderTextColor?: UIColor | null;
|
|
24
|
-
placeholderTextStyle?: UITextStyle | null;
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export enum UIActionType {
|
|
2
|
-
// navegação
|
|
3
|
-
INTERNAL_URL = 'INTERNAL_URL',
|
|
4
|
-
RELOAD_INTERNAL_URL = 'RELOAD_INTERNAL_URL',
|
|
5
|
-
DISMISS_TO_SCENE = 'DISMISS_TO_SCENE',
|
|
6
|
-
|
|
7
|
-
// paywall
|
|
8
|
-
PAYWALL = 'PAYWALL',
|
|
9
|
-
REGISTER = 'REGISTER',
|
|
10
|
-
|
|
11
|
-
// conteúdo
|
|
12
|
-
HTML = 'HTML',
|
|
13
|
-
FILE = 'FILE',
|
|
14
|
-
}
|