@masterteam/components 0.0.168 → 0.0.170
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/assets/common.css +1 -1
- package/assets/i18n/ar.json +3 -1
- package/assets/i18n/en.json +3 -1
- package/fesm2022/masterteam-components-entities.mjs +4 -2
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +6 -6
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-page-header.mjs +1 -1
- package/fesm2022/masterteam-components-page-header.mjs.map +1 -1
- package/fesm2022/masterteam-components-runtime-action.mjs +69 -34
- package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +9 -3
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-tabs.mjs +42 -5
- package/fesm2022/masterteam-components-tabs.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-runtime-action.d.ts +2 -1
- package/types/masterteam-components-tabs.d.ts +9 -1
|
@@ -1627,13 +1627,10 @@ class FormulaEditorCode {
|
|
|
1627
1627
|
return {
|
|
1628
1628
|
suggestions: (response.suggestions ?? []).map((suggestion, index) => {
|
|
1629
1629
|
const normalizedSuggestion = normalizeAutocompleteSuggestion(suggestion, response.context);
|
|
1630
|
-
const label = normalizedSuggestion.
|
|
1631
|
-
normalizedSuggestion.displayText ||
|
|
1630
|
+
const label = normalizedSuggestion.displayText?.trim() ||
|
|
1632
1631
|
normalizedSuggestion.text;
|
|
1633
|
-
const
|
|
1634
|
-
|
|
1635
|
-
? normalizedSuggestion.displayText
|
|
1636
|
-
: normalizedSuggestion.category;
|
|
1632
|
+
const description = normalizedSuggestion.description?.trim() || '';
|
|
1633
|
+
const detail = description || normalizedSuggestion.category || '';
|
|
1637
1634
|
const insertText = normalizedSuggestion.insertText ??
|
|
1638
1635
|
normalizedSuggestion.text;
|
|
1639
1636
|
const { text, rule } = this.applyCursorOffset(insertText, normalizedSuggestion.cursorOffset ?? 0);
|
|
@@ -1643,6 +1640,9 @@ class FormulaEditorCode {
|
|
|
1643
1640
|
insertText: text,
|
|
1644
1641
|
insertTextRules: rule,
|
|
1645
1642
|
detail,
|
|
1643
|
+
documentation: description
|
|
1644
|
+
? { value: description }
|
|
1645
|
+
: undefined,
|
|
1646
1646
|
range: this.getCompletionRanges(model, position, normalizedSuggestion),
|
|
1647
1647
|
sortText: String(index).padStart(4, '0'),
|
|
1648
1648
|
filterText: buildCompletionFilterText(normalizedSuggestion),
|