Merge branch 'develop' of https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui.git into feature/ONEAPP-2811-Tilet

This commit is contained in:
Matt Bruce 2023-03-08 13:03:43 -06:00
commit bafe44326f
9 changed files with 33 additions and 15 deletions

View File

@ -22,9 +22,9 @@ download_artifacts:
- bash_shell - bash_shell
environment: environment:
name: oneartifactory name: oneartifactory
url: https://oneartifactoryprod.verizon.com/artifactory url: https://oneartifactoryci.verizon.com/artifactory
variables: variables:
ARTIFACTORY_URL: https://oneartifactoryprod.verizon.com/artifactory ARTIFACTORY_URL: https://oneartifactoryci.verizon.com/artifactory
build_project: build_project:
stage: build stage: build
@ -47,9 +47,9 @@ deploy_snapshot:
- bash_shell - bash_shell
environment: environment:
name: oneartifactory name: oneartifactory
url: https://oneartifactoryprod.verizon.com/artifactory url: https://oneartifactoryci.verizon.com/artifactory
variables: variables:
ARTIFACTORY_URL: https://oneartifactoryprod.verizon.com/artifactory ARTIFACTORY_URL: https://oneartifactoryci.verizon.com/artifactory
#promote_snapshot: #promote_snapshot:
# stage: go live # stage: go live
@ -65,9 +65,9 @@ deploy_snapshot:
# - bash_shell # - bash_shell
# environment: # environment:
# name: oneartifactory # name: oneartifactory
# url: https://oneartifactoryprod.verizon.com/artifactory # url: https://oneartifactoryci.verizon.com/artifactory
# variables: # variables:
# ARTIFACTORY_URL: https://oneartifactoryprod.verizon.com/artifactory # ARTIFACTORY_URL: https://oneartifactoryci.verizon.com/artifactory
# #
#create_version_tag: #create_version_tag:
# stage: tag # stage: tag

View File

@ -15,8 +15,8 @@ public enum CheckboxPosition: String, Codable {
case bottom case bottom
} }
@objcMembers public class CheckboxLabelModel: MoleculeModelProtocol { @objcMembers open class CheckboxLabelModel: MoleculeModelProtocol {
public static var identifier: String = "checkboxLabel" open class var identifier: String { "checkboxLabel" }
public var moleculeName: String = CheckboxLabelModel.identifier public var moleculeName: String = CheckboxLabelModel.identifier
public var backgroundColor: Color? public var backgroundColor: Color?
public var checkboxAlignment: CheckboxPosition? public var checkboxAlignment: CheckboxPosition?

View File

@ -7,12 +7,13 @@
// //
@objcMembers open class LabelModel: MoleculeModelProtocol { @objcMembers open class LabelModel: MoleculeModelProtocol, Identifiable {
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Properties // MARK: - Properties
//-------------------------------------------------- //--------------------------------------------------
open class var identifier: String { "label" } open class var identifier: String { "label" }
public var id: String
public var backgroundColor: Color? public var backgroundColor: Color?
public var text: String public var text: String
public var accessibilityText: String? public var accessibilityText: String?
@ -34,6 +35,7 @@
private enum CodingKeys: String, CodingKey { private enum CodingKeys: String, CodingKey {
case moleculeName case moleculeName
case id
case text case text
case accessibilityText case accessibilityText
case textColor case textColor
@ -58,7 +60,8 @@
// MARK: - Initializer // MARK: - Initializer
//-------------------------------------------------- //--------------------------------------------------
public init(text: String) { public init(id: String = UUID().uuidString, text: String) {
self.id = id
self.text = text self.text = text
} }
@ -78,6 +81,7 @@
required public init(from decoder: Decoder) throws { required public init(from decoder: Decoder) throws {
let typeContainer = try decoder.container(keyedBy: CodingKeys.self) let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
id = try typeContainer.decodeIfPresent(String.self, forKey: .id) ?? UUID().uuidString
text = try typeContainer.decode(String.self, forKey: .text) text = try typeContainer.decode(String.self, forKey: .text)
accessibilityText = try typeContainer.decodeIfPresent(String.self, forKey: .accessibilityText) accessibilityText = try typeContainer.decodeIfPresent(String.self, forKey: .accessibilityText)
textColor = try typeContainer.decodeIfPresent(Color.self, forKey: .textColor) textColor = try typeContainer.decodeIfPresent(Color.self, forKey: .textColor)
@ -102,6 +106,7 @@
open func encode(to encoder: Encoder) throws { open func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self) var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(moleculeName, forKey: .moleculeName) try container.encodeIfPresent(moleculeName, forKey: .moleculeName)
try container.encodeIfPresent(id, forKey: .id)
try container.encode(text, forKey: .text) try container.encode(text, forKey: .text)
try container.encodeIfPresent(accessibilityText, forKey: .accessibilityText) try container.encodeIfPresent(accessibilityText, forKey: .accessibilityText)
try container.encodeIfPresent(textColor, forKey: .textColor) try container.encodeIfPresent(textColor, forKey: .textColor)

View File

@ -9,7 +9,7 @@
import Foundation import Foundation
public class ListOneColumnFullWidthTextBodyTextModel: ListItemModel, MoleculeModelProtocol { public class ListOneColumnFullWidthTextBodyTextModel: ListItemModel, MoleculeModelProtocol, ParentMoleculeModelProtocol {
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Properties // MARK: - Properties
//-------------------------------------------------- //--------------------------------------------------
@ -35,6 +35,10 @@ public class ListOneColumnFullWidthTextBodyTextModel: ListItemModel, MoleculeMod
headlineBody.style = .item headlineBody.style = .item
} }
public var children: [MoleculeModelProtocol] {
return [headlineBody]
}
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Keys // MARK: - Keys
//-------------------------------------------------- //--------------------------------------------------

View File

@ -7,7 +7,7 @@
// //
public class ListRightVariableButtonAllTextAndLinksModel: ListItemModel, MoleculeModelProtocol { public class ListRightVariableButtonAllTextAndLinksModel: ListItemModel, MoleculeModelProtocol, ParentMoleculeModelProtocol {
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Properties // MARK: - Properties
//-------------------------------------------------- //--------------------------------------------------
@ -36,6 +36,10 @@ public class ListRightVariableButtonAllTextAndLinksModel: ListItemModel, Molecul
self.button.style = .secondary self.button.style = .secondary
} }
public var children: [MoleculeModelProtocol] {
return [button, eyebrowHeadlineBodyLink]
}
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Keys // MARK: - Keys
//-------------------------------------------------- //--------------------------------------------------

View File

@ -47,6 +47,11 @@
self.body = body self.body = body
} }
public init(headline: LabelModel, body: LabelModel) {
self.headline = headline
self.body = body
}
//----------------------------------------------------- //-----------------------------------------------------
// MARK: - Codec // MARK: - Codec
//----------------------------------------------------- //-----------------------------------------------------

View File

@ -9,7 +9,7 @@
import UIKit import UIKit
@objcMembers open class Control: UIControl, MoleculeViewProtocol { open class Control: UIControl, MoleculeViewProtocol {
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Properties // MARK: - Properties
//-------------------------------------------------- //--------------------------------------------------

View File

@ -8,7 +8,7 @@
# Create new aggregate builds # Create new aggregate builds
if [ -z $ARTIFACTORY_URL ]; then if [ -z $ARTIFACTORY_URL ]; then
ARTIFACTORY_URL="https://oneartifactoryprod.verizon.com/artifactory" ARTIFACTORY_URL="https://oneartifactoryci.verizon.com/artifactory"
fi fi
BUILD_DIR=$(xcodebuild -showBuildSettings -project ./MVMCoreUI.xcodeproj | grep -w -o 'BUILD_DIR = .*' | cut -d\ -f3-) BUILD_DIR=$(xcodebuild -showBuildSettings -project ./MVMCoreUI.xcodeproj | grep -w -o 'BUILD_DIR = .*' | cut -d\ -f3-)

View File

@ -17,7 +17,7 @@ fi
# Create new aggregate builds # Create new aggregate builds
if [ -z $ARTIFACTORY_URL ]; then if [ -z $ARTIFACTORY_URL ]; then
ARTIFACTORY_URL="https://oneartifactoryprod.verizon.com/artifactory" ARTIFACTORY_URL="https://oneartifactoryci.verizon.com/artifactory"
fi fi
# Upload # Upload