merge conflicts solved

This commit is contained in:
ahmed-Bazzara
2019-02-22 12:01:41 +01:00
8 changed files with 58 additions and 17 deletions

View File

@@ -90,12 +90,17 @@ class DataCell extends React.PureComponent {
if (styleBuilder.hasComments()) {
formattedMeasurementValue = '.';
}
let textAlignment = 'Right';
const textAlignmentProp = styling.options.textAlignment;
if (textAlignmentProp) {
textAlignment = textAlignmentProp;
}
let cellStyle = {
fontFamily: styling.options.fontFamily,
...styleBuilder.getStyle(),
paddingLeft: '4px',
textAlign: 'right'
textAlign: textAlignment
};
const { semaphoreColors } = styling;
@@ -109,7 +114,7 @@ class DataCell extends React.PureComponent {
fontFamily: styling.options.fontFamily,
fontSize: styleBuilder.getStyle().fontSize,
paddingLeft: '4px',
textAlign: 'right'
textAlign: textAlignment
};
}

View File

@@ -187,6 +187,26 @@ const formatted = {
],
defaultValue: 1
},
textAlignment: {
ref: 'cellTextAlignment',
label: 'Cell Text alignment',
component: 'buttongroup',
options: [
{
value: 'left',
label: 'Left'
},
{
value: 'center',
label: 'Center'
},
{
value: 'right',
label: 'Right'
}
],
defaultValue: 'right'
},
ColumnWidthSlider: {
type: 'number',
component: 'slider',

View File

@@ -27,7 +27,7 @@ const header = {
ref: 'HeaderColorSchema',
type: 'string',
component: 'dropdown',
label: 'BackGround Header Color',
label: 'Background Header Color',
options: [
{
value: 'Clean',

View File

@@ -9,15 +9,16 @@ import pijamaColorLibrary from './pijama-color-library';
const definition = {
component: 'accordion',
items: {
dimensions: {
max: 2,
min: 1,
uses: 'dimensions'
},
measures: {
max: 9,
min: 1,
uses: 'measures'
data: {
items: {
dimensions: {
disabledRef: ''
},
measures: {
disabledRef: ''
}
},
uses: 'data'
},
settings: {
items: {

View File

@@ -12,6 +12,18 @@ export default {
'$timeout',
function () { }
],
data: {
dimensions: {
max: 2,
min: 1,
uses: 'dimensions'
},
measures: {
max: 9,
min: 1,
uses: 'measures'
}
},
definition,
initialProperties: {
qHyperCubeDef: {

View File

@@ -282,7 +282,8 @@ async function initializeTransformed ({ $element, layout, component }) {
backgroundColorOdd: colors[`vColLib${layout.ColorSchemaP}`],
color: layout.BodyTextColorSchema,
fontFamily: layout.FontFamily,
fontSizeAdjustment: getFontSizeAdjustment(layout.lettersize)
fontSizeAdjustment: getFontSizeAdjustment(layout.lettersize),
textAlignment: layout.cellTextAlignment
},
semaphoreColors: {
fieldsToApplyTo: {

View File

@@ -1,7 +1,9 @@
.qv-object-qlik-smart-pivot {
@TableBorder: 1px solid #d3d3d3;
@KpiTableWidth: 230px;
.edit-mode{
pointer-events: none;
}
._cell(@Width: 50px) {
min-width: @Width!important;
max-width: @Width!important;

View File

@@ -12,10 +12,10 @@ export default async function paint ($element, layout, component) {
component,
layout
});
const editmodeClass = component.inAnalysisState() ? '' : 'edit-mode';
const jsx = (
<LinkedScrollWrapper>
<div className="kpi-table">
<div className={`kpi-table ${editmodeClass}`}>
<HeadersTable
data={state.data}
general={state.general}
@@ -32,7 +32,7 @@ export default async function paint ($element, layout, component) {
/>
</LinkedScrollSection>
</div>
<div className="data-table">
<div className={`data-table ${editmodeClass}`}>
<LinkedScrollSection linkHorizontal>
<HeadersTable
data={state.data}