diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index b7ec02fc5..ed10c7fd4 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -76,6 +76,9 @@ export default { cx(key = '', params = {}) { return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params }) : undefined; }, + cxo(key = '', params = {}) { + return !this.isUnstyled ? this._getOptionValue(this.$parentInstance.$parentInstance.$css.classes, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params }) : undefined; + }, sx(key = '', when = true, params = {}) { if (when) { const self = this._getOptionValue(this.$css.inlineStyles, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params }); @@ -84,6 +87,16 @@ export default { return [base, self]; } + return undefined; + }, + sxo(key = '', when = true, params = {}) { + if (when) { + const self = this._getOptionValue(this.$parentInstance.$parentInstance.$css.inlineStyles, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params }); + const base = this._getOptionValue(inlineStyles, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params }); + + return [base, self]; + } + return undefined; } }, diff --git a/components/lib/datatable/BodyCell.vue b/components/lib/datatable/BodyCell.vue index 078cab88f..18e3706d7 100755 --- a/components/lib/datatable/BodyCell.vue +++ b/components/lib/datatable/BodyCell.vue @@ -15,7 +15,7 @@ :data-p-cell-editing="d_editing" :data-p-frozen-column="columnProp('frozen')" > - {{ columnProp('header') }} + {{ columnProp('header') }} - - - + + + - + - - - - + + + + - - + + - - + + - - + + {{ resolveFieldData() }} @@ -464,7 +464,7 @@ export default { return this.columnProp('field'); }, containerClass() { - return [this.columnProp('bodyClass'), this.columnProp('class'), this.cx('bodyCell')]; + return [this.columnProp('bodyClass'), this.columnProp('class'), this.cxo('bodyCell')]; }, containerStyle() { let bodyStyle = this.columnProp('bodyStyle'); diff --git a/components/lib/datatable/ColumnFilter.vue b/components/lib/datatable/ColumnFilter.vue index 3ab266eb0..1f0d111d6 100644 --- a/components/lib/datatable/ColumnFilter.vue +++ b/components/lib/datatable/ColumnFilter.vue @@ -1,6 +1,6 @@ - - + + - + @@ -30,7 +30,7 @@ v-focustrap="{ autoFocus: true }" :aria-modal="overlayVisible" role="dialog" - :class="[cx('filterOverlay'), filterMenuClass]" + :class="[cxo('filterOverlay'), filterMenuClass]" @keydown.escape="hide" @click="onContentClick" @mousedown="onContentMouseDown" @@ -38,11 +38,11 @@ > - + {{ matchMode.label }} - - + + {{ noFilterLabel }} - + - - + + - + - + - - + + - {{ columnProp('header') }} + {{ columnProp('header') }} - + - {{ getBadgeValue() }} + {{ getBadgeValue() }} - - + + - - - + + + diff --git a/components/lib/datatable/RowCheckbox.vue b/components/lib/datatable/RowCheckbox.vue index e4338dd7d..307224d1d 100755 --- a/components/lib/datatable/RowCheckbox.vue +++ b/components/lib/datatable/RowCheckbox.vue @@ -1,6 +1,6 @@ - - + + - - - + + + diff --git a/components/lib/datatable/RowRadioButton.vue b/components/lib/datatable/RowRadioButton.vue index bf53216c1..07909d61a 100755 --- a/components/lib/datatable/RowRadioButton.vue +++ b/components/lib/datatable/RowRadioButton.vue @@ -1,10 +1,10 @@ - - + + - - + + diff --git a/components/lib/datatable/TableBody.vue b/components/lib/datatable/TableBody.vue index 4c671f28d..272ba1307 100755 --- a/components/lib/datatable/TableBody.vue +++ b/components/lib/datatable/TableBody.vue @@ -1,23 +1,23 @@ - + - + - - - - + + + + @@ -87,7 +87,7 @@ v-if="templates['expansion'] && expandedRows && isRowExpanded(rowData)" :key="getRowKey(rowData, getRowIndex(index)) + '_expansion'" :id="expandedRowId + '_' + index + '_expansion'" - :class="cx('rowExpansion')" + :class="cxo('rowExpansion')" role="row" v-bind="ptm('rowExpansion')" > @@ -98,7 +98,7 @@ @@ -108,7 +108,7 @@ - + @@ -353,7 +353,7 @@ export default { } } - return [this.cx('row', { rowData }), rowStyleClass]; + return [this.cxo('row', { rowData }), rowStyleClass]; }, shouldRenderRowGroupFooter(value, rowData, i) { if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) { diff --git a/components/lib/datatable/TableFooter.vue b/components/lib/datatable/TableFooter.vue index c2fc3a804..955ce2c6f 100755 --- a/components/lib/datatable/TableFooter.vue +++ b/components/lib/datatable/TableFooter.vue @@ -1,5 +1,5 @@ - + diff --git a/components/lib/datatable/TableHeader.vue b/components/lib/datatable/TableHeader.vue index c79d2feb8..6ba3cb147 100755 --- a/components/lib/datatable/TableHeader.vue +++ b/components/lib/datatable/TableHeader.vue @@ -1,5 +1,5 @@ - +