@zohodesk/dot 1.0.0-temp-51 → 1.0.0-temp-55
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.
- package/README.md +10 -0
- package/es/Appearance/dark/mode/dotDarkMode.module.css +2 -1
- package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/es/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/es/Appearance/default/mode/dotDefaultMode.module.css +2 -1
- package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/es/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/es/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/es/form/fields/CurrencyField/CurrencyField.js +2 -2
- package/es/form/fields/DateField/DateField.js +2 -2
- package/es/form/fields/Fields.module.css +7 -5
- package/es/form/fields/MultiSelectField/MultiSelectField.js +2 -2
- package/es/form/fields/RadioField/RadioField.js +2 -2
- package/es/form/fields/SelectField/SelectField.js +2 -2
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
- package/es/form/fields/TextBoxField/TextBoxField.js +2 -2
- package/es/form/fields/TextEditorField/TextEditorField.js +2 -2
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/es/form/fields/TextareaField/TextareaField.js +2 -2
- package/es/form/layout/Section/Section.js +3 -7
- package/es/version2/GlobalNotification/GlobalNotification.js +18 -6
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
- package/lib/Appearance/dark/mode/dotDarkMode.module.css +2 -1
- package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/lib/Appearance/default/mode/dotDefaultMode.module.css +2 -1
- package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +2 -2
- package/lib/form/fields/DateField/DateField.js +2 -2
- package/lib/form/fields/Fields.module.css +7 -5
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +2 -2
- package/lib/form/fields/RadioField/RadioField.js +2 -2
- package/lib/form/fields/SelectField/SelectField.js +2 -2
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
- package/lib/form/fields/TextBoxField/TextBoxField.js +2 -2
- package/lib/form/fields/TextEditorField/TextEditorField.js +2 -2
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/lib/form/fields/TextareaField/TextareaField.js +2 -2
- package/lib/form/layout/Section/Section.js +3 -7
- package/lib/version2/GlobalNotification/GlobalNotification.js +18 -6
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
- package/package.json +8 -4
- package/preprocess/dotThemeColors.js +98 -0
- package/preprocess/index.js +1 -0
- package/preprocess/json/dotVariableJson.js +90 -0
- package/src/Appearance/dark/mode/dotDarkMode.module.css +2 -1
- package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/src/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/src/Appearance/default/mode/dotDefaultMode.module.css +2 -1
- package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/src/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/src/form/fields/CheckBoxField/CheckBoxField.js +7 -1
- package/src/form/fields/CurrencyField/CurrencyField.js +8 -2
- package/src/form/fields/DateField/DateField.js +8 -2
- package/src/form/fields/Fields.module.css +8 -5
- package/src/form/fields/MultiSelectField/MultiSelectField.js +8 -2
- package/src/form/fields/RadioField/RadioField.js +8 -2
- package/src/form/fields/SelectField/SelectField.js +8 -2
- package/src/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
- package/src/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +10 -2
- package/src/form/fields/TextBoxField/TextBoxField.js +8 -2
- package/src/form/fields/TextEditorField/TextEditorField.js +10 -2
- package/src/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/src/form/fields/TextareaField/TextareaField.js +8 -2
- package/src/form/layout/Section/Section.js +10 -14
- package/src/version2/GlobalNotification/GlobalNotification.js +12 -4
- package/src/version2/notification/DesktopNotification/DesktopNotification.js +10 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[data-mode='dark'] {
|
|
1
|
+
[data-mode='dark'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
3
|
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
4
|
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
@@ -457,6 +457,7 @@
|
|
|
457
457
|
--zdt_commonalert_close_hover_bg: #583a45;
|
|
458
458
|
--zdt_commonalert_success_hover_bg: #2c4e42;
|
|
459
459
|
--zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
|
|
460
|
+
--zdt_commonalert_plaininfo_hover_bg: #262f3d;
|
|
460
461
|
--zdt_commonalert_danger_hover_bg: #583a45;
|
|
461
462
|
--zdt_commonalert_error_hover_bg: #583a45;
|
|
462
463
|
--zdt_commonalert_warning_hover_bg: #583c2c;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
[data-mode='dark'][data-theme='blue'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
[data-mode='dark'][data-theme='blue'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #479dff;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #2469ff;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='green'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #45a159;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #0e7c1c;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='orange'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #ff801f;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #a85100;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='red'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #e94f4f;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #a81111;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='yellow'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #d79835;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #9b6808;
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[data-mode='default'] {
|
|
1
|
+
[data-mode='default'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
3
|
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
4
|
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
@@ -457,6 +457,7 @@
|
|
|
457
457
|
--zdt_commonalert_close_hover_bg: var(--dot_bg_paleRed);
|
|
458
458
|
--zdt_commonalert_success_hover_bg: #e9f7ef;
|
|
459
459
|
--zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
|
|
460
|
+
--zdt_commonalert_plaininfo_hover_bg: var(--dot_bg_lavender);
|
|
460
461
|
--zdt_commonalert_danger_hover_bg: var(--dot_bg_paleRed);
|
|
461
462
|
--zdt_commonalert_error_hover_bg: var(--dot_bg_paleRed);
|
|
462
463
|
--zdt_commonalert_warning_hover_bg: #fff1e6;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
[data-mode='default'][data-theme='blue'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
[data-mode='default'][data-theme='blue'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(44, 51, 77, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #6cbbfc;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #2469ff;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='green'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(15, 34, 38, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #4ac064;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #0e7526;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='orange'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(36, 30, 19, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #e57717;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #b25900;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='red'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(34, 15, 27, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #ff6363;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #ab1a18;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='yellow'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(34, 36, 18, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #e8b923;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #b59100;
|
|
10
10
|
}
|
|
@@ -153,7 +153,7 @@ var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
153
153
|
}) : null);
|
|
154
154
|
|
|
155
155
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
156
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
157
157
|
"data-title": isDisabled ? title : ''
|
|
158
158
|
}, isDirectCol && labelElement, /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
159
|
className: "".concat(isDirectCol ? _FieldsModule["default"].fieldContainer : _FieldsModule["default"].checkboxFieldContainer, " ").concat(isDirectCol && labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
@@ -165,7 +165,7 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
165
165
|
|
|
166
166
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
167
167
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
168
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
169
169
|
"data-title": isDisabled ? title : ''
|
|
170
170
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
171
|
className: _FieldsModule["default"].labelContainer
|
|
@@ -173,7 +173,7 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
173
173
|
text: labelName,
|
|
174
174
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
175
175
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
176
|
-
customClass: "".concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
176
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
177
177
|
htmlFor: uniqueId,
|
|
178
178
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
179
179
|
}, LabelProps)), infoText ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
@@ -171,7 +171,7 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
171
171
|
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
172
172
|
var getAriaId = htmlId ? htmlId : this.getNextId();
|
|
173
173
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
174
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
175
175
|
"data-title": isDisabled ? title : ''
|
|
176
176
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
177
|
className: _FieldsModule["default"].labelContainer
|
|
@@ -181,7 +181,7 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
181
181
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
182
182
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
183
183
|
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
184
|
-
customClass: "".concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
184
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
185
185
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
186
186
|
}, LabelProps)), infoText ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
187
187
|
name: "ZD-GN-info",
|
|
@@ -43,14 +43,16 @@
|
|
|
43
43
|
[dir=rtl] .checkboxText {
|
|
44
44
|
padding-right: var(--zd_size6);
|
|
45
45
|
}
|
|
46
|
-
.cbTextReadonly {
|
|
47
|
-
cursor: not-allowed;
|
|
48
|
-
}
|
|
49
46
|
.cbTextPointer {
|
|
50
47
|
cursor: pointer;
|
|
51
48
|
}
|
|
52
|
-
.disabled {
|
|
53
|
-
|
|
49
|
+
.disabled, .readonly {
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
.cbTextReadonly,
|
|
53
|
+
.disabled .fieldLabel,
|
|
54
|
+
.readonly .fieldLabel {
|
|
55
|
+
--label_cursor: not-allowed;
|
|
54
56
|
}
|
|
55
57
|
[dir=ltr] .radio {
|
|
56
58
|
margin: var(--zd_size5) var(--zd_size32) var(--zd_size5) 0;
|
|
@@ -184,7 +184,7 @@ var MultiSelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
184
184
|
var isDarkPalette = palette === 'dark';
|
|
185
185
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
186
186
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
187
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
188
188
|
"data-title": isDisabled ? title : ''
|
|
189
189
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
190
|
className: _FieldsModule["default"].labelContainer
|
|
@@ -194,7 +194,7 @@ var MultiSelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
194
194
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
195
195
|
palette: isDarkPalette ? 'dark' : isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette // onClick={this.handleLabelClick}
|
|
196
196
|
,
|
|
197
|
-
customClass: "".concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
197
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
198
198
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
199
199
|
htmlFor: uniqueId
|
|
200
200
|
}, LabelProps)), infoText ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
@@ -105,14 +105,14 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
|
|
|
105
105
|
_customProps$Validati2 = customProps.ValidationMessageProps2,
|
|
106
106
|
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
107
107
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
108
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
109
109
|
"data-title": isDisabled ? title : ''
|
|
110
110
|
}, labelName && /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
111
111
|
text: labelName,
|
|
112
112
|
size: "medium",
|
|
113
113
|
id: id,
|
|
114
114
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
|
|
115
|
-
customClass: "".concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
115
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
116
116
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
117
117
|
}, LabelProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
118
118
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"].fieldMargin_medium : '', " ").concat(_FieldsModule["default"].radioContainer)
|
|
@@ -152,7 +152,7 @@ var SelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
152
152
|
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
153
153
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
154
154
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
155
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
156
156
|
"data-title": isDisabled ? title : ''
|
|
157
157
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
158
|
className: _FieldsModule["default"].labelContainer
|
|
@@ -160,7 +160,7 @@ var SelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
160
160
|
text: labelName,
|
|
161
161
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
162
162
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
163
|
-
customClass: "".concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
163
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
164
164
|
htmlFor: uniqueId,
|
|
165
165
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
166
166
|
}, LabelProps)), infoText ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
@@ -200,10 +200,10 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
200
200
|
key: index
|
|
201
201
|
}, /*#__PURE__*/_react["default"].createElement(_Tag["default"], {
|
|
202
202
|
text: name,
|
|
203
|
-
onRemove: deleteTag.bind(_this3, name),
|
|
203
|
+
onRemove: isReadOnly ? null : deleteTag.bind(_this3, name),
|
|
204
204
|
closeTitle: i18nKeys.deleteText,
|
|
205
205
|
palette: tagType === 'SYSTEM' ? 'primary' : 'default',
|
|
206
|
-
|
|
206
|
+
isReadOnly: isReadOnly
|
|
207
207
|
})) : null;
|
|
208
208
|
}), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
209
209
|
className: _TagsMultiSelectModule["default"].moreLess,
|
|
@@ -226,7 +226,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
226
226
|
isReadOnly: isReadOnly,
|
|
227
227
|
ref: this.textBoxRef,
|
|
228
228
|
needBorder: false,
|
|
229
|
-
placeHolder: tagsList.length ? '' : '-',
|
|
229
|
+
placeHolder: tagsList.length ? '' : i18nKeys.placeholderText || '-',
|
|
230
230
|
onClick: !isReadOnly ? handleTogglePopup : undefined,
|
|
231
231
|
customClass: {
|
|
232
232
|
customTBoxWrap: _TagsMultiSelectModule["default"].custmInp,
|
|
@@ -329,7 +329,8 @@ TagsMultiSelect.propTypes = {
|
|
|
329
329
|
errorMessage: _propTypes["default"].string.isRequired,
|
|
330
330
|
deleteText: _propTypes["default"].string.isRequired,
|
|
331
331
|
lessText: _propTypes["default"].string.isRequired,
|
|
332
|
-
moreText: _propTypes["default"].string.isRequired
|
|
332
|
+
moreText: _propTypes["default"].string.isRequired,
|
|
333
|
+
placeholderText: _propTypes["default"].string
|
|
333
334
|
}),
|
|
334
335
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default', 'dark']),
|
|
335
336
|
needBorder: _propTypes["default"].bool,
|
|
@@ -220,7 +220,7 @@ var TagsMultiSelectField = function TagsMultiSelectField(props) {
|
|
|
220
220
|
};
|
|
221
221
|
}, []);
|
|
222
222
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
223
|
-
className: _TagsMultiSelectFieldModule["default"].container
|
|
223
|
+
className: "".concat(_TagsMultiSelectFieldModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : '')
|
|
224
224
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
225
225
|
alignBox: "row",
|
|
226
226
|
align: "baseline",
|
|
@@ -231,7 +231,7 @@ var TagsMultiSelectField = function TagsMultiSelectField(props) {
|
|
|
231
231
|
id: id,
|
|
232
232
|
size: labelSize,
|
|
233
233
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
234
|
-
customClass: "".concat(isMandatory ? _FieldsModule["default"].labelMandatory : '', " ").concat(labelClass ? labelClass : ''),
|
|
234
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : '', " ").concat(labelClass ? labelClass : ''),
|
|
235
235
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
236
236
|
htmlFor: htmlId
|
|
237
237
|
}, LabelProps)), selectedValueCount ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
@@ -146,7 +146,7 @@ var TextBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
146
146
|
ePhiStatus = _ePhiData$ePhiStatus === void 0 ? false : _ePhiData$ePhiStatus;
|
|
147
147
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
148
148
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
149
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
150
150
|
"data-title": isDisabled ? title : ''
|
|
151
151
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
152
|
className: _FieldsModule["default"].labelContainer
|
|
@@ -154,7 +154,7 @@ var TextBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
154
154
|
text: labelName,
|
|
155
155
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
156
156
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
157
|
-
customClass: "".concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
157
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
158
158
|
htmlFor: uniqueId,
|
|
159
159
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
160
160
|
}, LabelProps)), infoText ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
@@ -156,7 +156,7 @@ var TextEditorField = /*#__PURE__*/function (_PureComponent) {
|
|
|
156
156
|
_ePhiData$ePhiStatus = ePhiData.ePhiStatus,
|
|
157
157
|
ePhiStatus = _ePhiData$ePhiStatus === void 0 ? false : _ePhiData$ePhiStatus;
|
|
158
158
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(className)
|
|
159
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : '', " ").concat(className || '')
|
|
160
160
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
161
161
|
isCover: false,
|
|
162
162
|
alignBox: "row",
|
|
@@ -167,7 +167,7 @@ var TextEditorField = /*#__PURE__*/function (_PureComponent) {
|
|
|
167
167
|
htmlFor: !isReadOnly && !isDisabled ? id : undefined,
|
|
168
168
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
169
169
|
onClick: this.handleLabelClick,
|
|
170
|
-
customClass: "".concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
170
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
171
171
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
172
172
|
}, LabelProps))), infoText ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
173
173
|
name: "ZD-GN-info",
|
|
@@ -119,7 +119,7 @@ var TextEditorWrapper = /*#__PURE__*/function (_Component) {
|
|
|
119
119
|
isEditorShow: true
|
|
120
120
|
});
|
|
121
121
|
} else {
|
|
122
|
-
if (!this.state.isEditorFocus) {
|
|
122
|
+
if (!this.state.isEditorFocus && !this.props.isEditorDefaultOpen) {
|
|
123
123
|
this.setState({
|
|
124
124
|
isEditorShow: false
|
|
125
125
|
});
|
|
@@ -142,7 +142,7 @@ var TextareaField = /*#__PURE__*/function (_PureComponent) {
|
|
|
142
142
|
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
143
143
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
144
144
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
-
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
145
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
146
146
|
"data-title": isDisabled ? title : ''
|
|
147
147
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
148
|
className: _FieldsModule["default"].labelContainer
|
|
@@ -151,7 +151,7 @@ var TextareaField = /*#__PURE__*/function (_PureComponent) {
|
|
|
151
151
|
id: id,
|
|
152
152
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
153
153
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
154
|
-
customClass: "".concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
154
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
155
155
|
htmlFor: uniqueId,
|
|
156
156
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
157
157
|
}, LabelProps)), infoText ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
@@ -60,19 +60,16 @@ var Section = /*#__PURE__*/function (_Component) {
|
|
|
60
60
|
titleClass = _this$props.titleClass,
|
|
61
61
|
className = _this$props.className,
|
|
62
62
|
column = _this$props.column,
|
|
63
|
-
formName = _this$props.formName
|
|
64
|
-
innerContainerClass = _this$props.innerContainerClass;
|
|
63
|
+
formName = _this$props.formName;
|
|
65
64
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
66
65
|
"data-id": dataId,
|
|
67
66
|
className: containerClass ? containerClass : ''
|
|
68
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
-
className: innerContainerClass ? innerContainerClass : ''
|
|
70
67
|
}, title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
68
|
className: titleClass ? titleClass : ''
|
|
72
69
|
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
70
|
className: "".concat(className ? className : '', " ").concat(column == 'single' ? _ModuleFormSectionModule["default"].singleColumn : ''),
|
|
74
71
|
"data-id": formName && formName
|
|
75
|
-
}, this.props.children))
|
|
72
|
+
}, this.props.children));
|
|
76
73
|
}
|
|
77
74
|
}]);
|
|
78
75
|
|
|
@@ -86,8 +83,7 @@ Section.propTypes = {
|
|
|
86
83
|
containerClass: _propTypes["default"].string,
|
|
87
84
|
dataId: _propTypes["default"].string,
|
|
88
85
|
title: _propTypes["default"].string,
|
|
89
|
-
titleClass: _propTypes["default"].string
|
|
90
|
-
innerContainerClass: _propTypes["default"].string
|
|
86
|
+
titleClass: _propTypes["default"].string
|
|
91
87
|
};
|
|
92
88
|
|
|
93
89
|
if (false) {
|
|
@@ -102,7 +102,8 @@ var GlobalNotification = /*#__PURE__*/function (_React$Component) {
|
|
|
102
102
|
hideMessage = _this$props3.hideMessage,
|
|
103
103
|
onClick = _this$props3.onClick,
|
|
104
104
|
_this$props3$i18nKeys = _this$props3.i18nKeys,
|
|
105
|
-
i18nKeys = _this$props3$i18nKeys === void 0 ? {} : _this$props3$i18nKeys
|
|
105
|
+
i18nKeys = _this$props3$i18nKeys === void 0 ? {} : _this$props3$i18nKeys,
|
|
106
|
+
customProps = _this$props3.customProps;
|
|
106
107
|
var _i18nKeys$closeTitle = i18nKeys.closeTitle,
|
|
107
108
|
closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
|
|
108
109
|
return /*#__PURE__*/_react["default"].createElement(GlobalNotificationUI, {
|
|
@@ -110,7 +111,8 @@ var GlobalNotification = /*#__PURE__*/function (_React$Component) {
|
|
|
110
111
|
message: message,
|
|
111
112
|
hideMessage: hideMessage,
|
|
112
113
|
onClick: onClick,
|
|
113
|
-
closeTitle: closeTitle
|
|
114
|
+
closeTitle: closeTitle,
|
|
115
|
+
customProps: customProps
|
|
114
116
|
});
|
|
115
117
|
}
|
|
116
118
|
}]);
|
|
@@ -126,7 +128,13 @@ GlobalNotification.propTypes = {
|
|
|
126
128
|
onClick: _propTypes["default"].func,
|
|
127
129
|
showMessage: _propTypes["default"].bool,
|
|
128
130
|
type: _propTypes["default"].oneOf(['success', 'danger', 'info', 'warning', 'error']),
|
|
129
|
-
i18nKeys: _propTypes["default"].object
|
|
131
|
+
i18nKeys: _propTypes["default"].object,
|
|
132
|
+
customProps: _propTypes["default"].shape({
|
|
133
|
+
ExtraProps: _propTypes["default"].object
|
|
134
|
+
})
|
|
135
|
+
};
|
|
136
|
+
GlobalNotification.defaultProps = {
|
|
137
|
+
customProps: {}
|
|
130
138
|
};
|
|
131
139
|
|
|
132
140
|
if (false) {
|
|
@@ -149,11 +157,15 @@ function GlobalNotificationUI(props) {
|
|
|
149
157
|
message = props.message,
|
|
150
158
|
onClick = props.onClick,
|
|
151
159
|
_props$closeTitle = props.closeTitle,
|
|
152
|
-
closeTitle = _props$closeTitle === void 0 ? '' : _props$closeTitle
|
|
153
|
-
|
|
160
|
+
closeTitle = _props$closeTitle === void 0 ? '' : _props$closeTitle,
|
|
161
|
+
_props$customProps = props.customProps,
|
|
162
|
+
customProps = _props$customProps === void 0 ? {} : _props$customProps;
|
|
163
|
+
var _customProps$ExtraPro = customProps.ExtraProps,
|
|
164
|
+
ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
|
|
165
|
+
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
154
166
|
className: "".concat(_GlobalNotificationModule["default"].message, " ").concat(type ? _GlobalNotificationModule["default"][type] : ''),
|
|
155
167
|
"data-id": "show_".concat(type, "_message")
|
|
156
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
168
|
+
}, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
157
169
|
className: "".concat(_GlobalNotificationModule["default"].container),
|
|
158
170
|
alignBox: "row",
|
|
159
171
|
isCover: false,
|