@sap-ux/ui-components 1.24.10 → 1.24.11

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.
@@ -78,7 +78,7 @@ const UITranslationButton = (props) => {
78
78
  }, []);
79
79
  return (react_1.default.createElement("div", { className: "ui-translatable__button" },
80
80
  react_1.default.createElement(UILoadButton_1.UILoadButton, { id: id, disabled: props.disabled ?? false, onClick: onToggleCallout, iconProps: { iconName: suggestion.suggest?.icon ?? Icons_1.UiIcons.World }, title: suggestion.tooltip, busy: busy?.busy, useMinWaitingTime: busy?.useMinWaitingTime }),
81
- calloutVisible && (react_1.default.createElement(UICallout_1.UICallout, { target: `#${id}`, gapSpace: 5, directionalHint: 6, calloutWidth: 250, calloutMinWidth: 250, beakWidth: 8, isBeakVisible: false, setInitialFocus: true, className: "ui-translatable__callout", onDismiss: () => onToggleCallout(), contentPadding: UICallout_1.UICalloutContentPadding.Standard },
81
+ calloutVisible && (react_1.default.createElement(UICallout_1.UICallout, { target: `#${id}`, gapSpace: 5, directionalHint: 5, calloutWidth: 250, calloutMinWidth: 250, beakWidth: 8, isBeakVisible: false, setInitialFocus: true, className: "ui-translatable__callout", onDismiss: () => onToggleCallout(), contentPadding: UICallout_1.UICalloutContentPadding.Standard },
82
82
  react_1.default.createElement("div", { className: "ui-translatable__message" },
83
83
  suggestion.message,
84
84
  react_1.default.createElement("div", { className: "ui-translatable__actions" },
@@ -18,19 +18,23 @@
18
18
  }
19
19
  }
20
20
  &__callout {
21
+ border-radius: 4px;
22
+ border: 1px solid var(--vscode-editorWidget-foreground);
23
+ background-color: var(--vscode-editor-foreground);
21
24
  .ms-Callout-main {
25
+ color: var(--vscode-editorWidget-background);
22
26
  padding: 0;
23
27
  }
24
28
  }
25
29
  &__message {
26
- padding: 20px 10px;
30
+ padding: 20px;
27
31
  text-align: center;
28
32
  font-size: var(--vscode-font-size);
29
33
  word-break: break-word;
30
34
  .ui-translatable__actions {
31
35
  margin-top: 16px;
32
36
  > .ms-Button {
33
- margin-right: 16px;
37
+ margin-right: 10px;
34
38
  &:last-child {
35
39
  margin-right: 0;
36
40
  }
@@ -45,3 +49,13 @@
45
49
  }
46
50
  }
47
51
  }
52
+
53
+ .vscode-high-contrast {
54
+ .ui-translatable__callout {
55
+ border: 1px solid var(--vscode-editorWidget-border);
56
+ background-color: var(--vscode-editorWidget-background);
57
+ .ms-Callout-main {
58
+ color: var(--vscode-foreground);
59
+ }
60
+ }
61
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,eAAO,MAAM,8BAA8B,EAAE,uBAa5C,CAAC"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,eAAO,MAAM,8BAA8B,EAAE,uBAc5C,CAAC"}
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultTranslationInputStrings = void 0;
4
4
  exports.defaultTranslationInputStrings = {
5
- acceptButtonLabel: 'Apply',
5
+ acceptButtonLabel: 'Substitute',
6
6
  cancelButtonLabel: 'Cancel',
7
7
  i18nKeyMissingTooltip: 'Text key or value is not available in i18n file.',
8
8
  i18nKeyMissingDescription: 'Generate a text key {{{key}}} with value {{{value}}} in i18n file.',
9
9
  i18nValueMissingTooltip: 'Text key or value for {{{value}}} is not available in i18n file.',
10
- i18nValueMissingDescription: 'Generate a text key {{{key}}} in i18n file and substitute {{{value}}} by {{{i18n}}}.',
11
- i18nReplaceWithExistingTooltip: 'Text key {{{key}}} for value {{{value}}} is available in i18n file. \nConsider substituting {{{value}}} by {{{i18n}}}.',
12
- i18nReplaceWithExistingDescription: 'Text key {{{key}}} for value {{{value}}} is available in i18n file.Substitute {{{value}}} by {{{i18n}}}.',
10
+ i18nValueMissingDescription: 'Generate a text key {{{key}}} in i18n file and substitute {{{value}}} with {{{i18n}}}.',
11
+ i18nReplaceWithExistingTooltip: 'Text key {{{key}}} for value {{{value}}} is available in i18n file. \nConsider substituting {{{value}}} with {{{i18n}}}.',
12
+ i18nReplaceWithExistingDescription: 'Text key {{{key}}} for value {{{value}}} is available in i18n file. Substitute {{{value}}} with {{{i18n}}}?',
13
13
  i18nEntryExistsTooltip: 'Edit in source file',
14
14
  i18nEntryExistsInputTooltip: "Value: '{{{value}}}'.\nTranslation: '{{{translation}}}'."
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/defaults.ts"],"names":[],"mappings":";;;AAEa,QAAA,8BAA8B,GAA4B;IACnE,iBAAiB,EAAE,OAAO;IAC1B,iBAAiB,EAAE,QAAQ;IAC3B,qBAAqB,EAAE,kDAAkD;IACzE,yBAAyB,EAAE,oEAAoE;IAC/F,uBAAuB,EAAE,kEAAkE;IAC3F,2BAA2B,EAAE,sFAAsF;IACnH,8BAA8B,EAC1B,wHAAwH;IAC5H,kCAAkC,EAC9B,0GAA0G;IAC9G,sBAAsB,EAAE,qBAAqB;IAC7C,2BAA2B,EAAE,0DAA0D;CAC1F,CAAC"}
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/defaults.ts"],"names":[],"mappings":";;;AAEa,QAAA,8BAA8B,GAA4B;IACnE,iBAAiB,EAAE,YAAY;IAC/B,iBAAiB,EAAE,QAAQ;IAC3B,qBAAqB,EAAE,kDAAkD;IACzE,yBAAyB,EAAE,oEAAoE;IAC/F,uBAAuB,EAAE,kEAAkE;IAC3F,2BAA2B,EACvB,wFAAwF;IAC5F,8BAA8B,EAC1B,0HAA0H;IAC9H,kCAAkC,EAC9B,6GAA6G;IACjH,sBAAsB,EAAE,qBAAqB;IAC7C,2BAA2B,EAAE,0DAA0D;CAC1F,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/ui-components",
3
- "version": "1.24.10",
3
+ "version": "1.24.11",
4
4
  "license": "Apache-2.0",
5
5
  "description": "SAP UI Components Library",
6
6
  "repository": {