From 2ef40b150ff695e7b34b02fc0c15e4eeb30d8595 Mon Sep 17 00:00:00 2001 From: Sushmitha V <58967843+Sushmitha-Vk@users.noreply.github.com> Date: Fri, 26 Aug 2022 04:09:01 +0530 Subject: [PATCH] [AAE-10219] Add css to align according to alignment property in RadioField (#7750) * [AAE-10219] Add css to align according to alignment property in RadioField * [AAE-10219] Add css to align according to alignment property in RadioField * trigger travis * Fix nx build core * reduce dependsOn config * update demoshell cspell path * [AAE-10460] fix storybook config (#7785) * [AAE-10460] fix storybook config * trigger travis * trigger travis Co-authored-by: Rafal Szmit Co-authored-by: Tomasz Co-authored-by: Tomasz Gnyp <49343696+tomgny@users.noreply.github.com> --- angular.json | 34 ++++--------------- .../widgets/core/form-field.model.ts | 2 ++ .../radio-buttons-cloud.widget.html | 4 +-- .../radio-buttons-cloud.widget.scss | 13 +++++++ nx.json | 6 ++++ 5 files changed, 30 insertions(+), 29 deletions(-) diff --git a/angular.json b/angular.json index 2edcb09d8d..d61cd7da1a 100644 --- a/angular.json +++ b/angular.json @@ -260,7 +260,7 @@ "options": { "commands": [ { - "command": "$(npm bin)/cspell 'lib/demo-shell/**/*.ts'" + "command": "$(npm bin)/cspell 'demo-shell/**/*.ts'" } ] } @@ -306,7 +306,7 @@ "tsConfig": "lib/core/tsconfig.lib.json", "project": "lib/core/ng-package.json" }, - "dependsOn": ["license"], + "dependsOn": ["license", "^build"], "configurations": { "production": { "project": "lib/core/ng-package.json", @@ -339,11 +339,7 @@ "lib/core/api/**/*.ts", "lib/core/api/**/*.html" ] - }, - "dependsOn": [ - "spellcheck", - "stylelint" - ] + } }, "storybook": { "builder": "@storybook/angular:start-storybook", @@ -454,11 +450,7 @@ "lib/content-services/**/*.ts", "lib/content-services/**/*.html" ] - }, - "dependsOn": [ - "spellcheck", - "stylelint" - ] + } }, "storybook": { "builder": "@storybook/angular:start-storybook", @@ -559,11 +551,7 @@ "lib/process-services/**/*.ts", "lib/process-services/**/*.html" ] - }, - "dependsOn": [ - "spellcheck", - "stylelint" - ] + } }, "spellcheck": { "executor": "nx:run-commands", @@ -632,11 +620,7 @@ "lib/process-services-cloud/**/*.ts", "lib/process-services-cloud/**/*.html" ] - }, - "dependsOn": [ - "spellcheck", - "stylelint" - ] + } }, "storybook": { "builder": "@storybook/angular:start-storybook", @@ -737,11 +721,7 @@ "lib/insights/**/*.ts", "lib/insights/**/*.html" ] - }, - "dependsOn": [ - "spellcheck", - "stylelint" - ] + } }, "spellcheck": { "executor": "nx:run-commands", diff --git a/lib/core/src/lib/form/components/widgets/core/form-field.model.ts b/lib/core/src/lib/form/components/widgets/core/form-field.model.ts index 8276e80518..f3dfb87db2 100644 --- a/lib/core/src/lib/form/components/widgets/core/form-field.model.ts +++ b/lib/core/src/lib/form/components/widgets/core/form-field.model.ts @@ -76,6 +76,7 @@ export class FormFieldModel extends FormWidgetModel { currency: string = null; dateDisplayFormat: string = this.defaultDateFormat; selectionType: 'single' | 'multiple' = null; + alignmentType: 'vertical' | 'horizontal' = null; rule?: FormFieldRule; selectLoggedUser: boolean; groupsRestriction: string[]; @@ -189,6 +190,7 @@ export class FormFieldModel extends FormWidgetModel { this.validationSummary = new ErrorMessageModel(); this.tooltip = json.tooltip; this.selectionType = json.selectionType; + this.alignmentType = json.alignmentType; this.rule = json.rule; this.selectLoggedUser = json.selectLoggedUser; this.groupsRestriction = json.groupsRestriction?.groups; diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.html b/lib/process-services-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.html index 0fe00fab00..63877833a7 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.html +++ b/lib/process-services-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.html @@ -1,8 +1,8 @@
-
+
- +