@contrail/documents 1.1.8 → 1.1.9
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.
|
@@ -4,8 +4,8 @@ exports.ColorComponentService = void 0;
|
|
|
4
4
|
const document_element_constants_1 = require("../document-element-constants");
|
|
5
5
|
class ColorComponentService {
|
|
6
6
|
static isColorComponent(element) {
|
|
7
|
-
var _a;
|
|
8
|
-
return element && element.type === 'component' && ((_a = element.modelBindings) === null || _a === void 0 ? void 0 : _a.color);
|
|
7
|
+
var _a, _b;
|
|
8
|
+
return element && element.type === 'component' && ((_a = element.modelBindings) === null || _a === void 0 ? void 0 : _a.color) && !((_b = element.modelBindings) === null || _b === void 0 ? void 0 : _b.item);
|
|
9
9
|
}
|
|
10
10
|
static isColorHexComponent(element) {
|
|
11
11
|
var _a;
|