@taiga-ui/addon-doc 3.0.0 → 3.2.0
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/bundles/taiga-ui-addon-doc.umd.js +24 -23
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/esm2015/components/navigation/navigation.component.js +3 -2
- package/esm2015/components/navigation/navigation.providers.js +4 -4
- package/esm2015/components/page/page.providers.js +2 -2
- package/esm2015/tokens/code-actions.js +2 -2
- package/esm2015/tokens/code-editor.js +2 -2
- package/esm2015/tokens/default-tabs.js +2 -2
- package/esm2015/tokens/example-content-processor.js +2 -2
- package/esm2015/tokens/i18n.js +8 -8
- package/esm2015/tokens/logo.js +2 -2
- package/esm2015/tokens/pages.js +2 -2
- package/esm2015/tokens/see-also.js +2 -2
- package/esm2015/tokens/source-code.js +2 -2
- package/esm2015/tokens/title.js +2 -2
- package/fesm2015/taiga-ui-addon-doc.js +22 -21
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/package.json +5 -5
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
* Works with a tuple
|
|
535
535
|
* [@string tuiMode tooltip content, @string word 'background', @string 'form value']
|
|
536
536
|
*/
|
|
537
|
-
var TUI_DOC_DEMO_TEXTS = new i0.InjectionToken("tui-doc-demo i18n texts", {
|
|
537
|
+
var TUI_DOC_DEMO_TEXTS = new i0.InjectionToken("[TUI_DOC_DEMO_TEXTS]: tui-doc-demo i18n texts", {
|
|
538
538
|
factory: function () { return ["Read more more about modes: ", "Background", "Form value"]; },
|
|
539
539
|
});
|
|
540
540
|
/**
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
* @string message for tooltip about ng-polymorpheus
|
|
548
548
|
* ]
|
|
549
549
|
*/
|
|
550
|
-
var TUI_DOC_DOCUMENTATION_TEXTS = new i0.InjectionToken("tui-doc-documentation i18n texts", {
|
|
550
|
+
var TUI_DOC_DOCUMENTATION_TEXTS = new i0.InjectionToken("[TUI_DOC_DOCUMENTATION_TEXTS]: tui-doc-documentation i18n texts", {
|
|
551
551
|
factory: function () { return [
|
|
552
552
|
"Argument",
|
|
553
553
|
"Type",
|
|
@@ -564,19 +564,19 @@
|
|
|
564
564
|
* @string link to a sample copied message label
|
|
565
565
|
* ]
|
|
566
566
|
*/
|
|
567
|
-
var TUI_DOC_EXAMPLE_TEXTS = new i0.InjectionToken("tui-doc-example i18n texts", {
|
|
567
|
+
var TUI_DOC_EXAMPLE_TEXTS = new i0.InjectionToken("[TUI_DOC_EXAMPLE_TEXTS]: tui-doc-example i18n texts", {
|
|
568
568
|
factory: function () { return ["Preview", "Link to a sample was successfully copied", "Done"]; },
|
|
569
569
|
});
|
|
570
|
-
var TUI_DOC_MENU_TEXT = new i0.InjectionToken("menu i18n text", {
|
|
570
|
+
var TUI_DOC_MENU_TEXT = new i0.InjectionToken("[TUI_DOC_MENU_TEXT]: menu i18n text", {
|
|
571
571
|
factory: function () { return "Menu"; },
|
|
572
572
|
});
|
|
573
|
-
var TUI_DOC_SEARCH_TEXT = new i0.InjectionToken("search i18n text", {
|
|
573
|
+
var TUI_DOC_SEARCH_TEXT = new i0.InjectionToken("[TUI_DOC_SEARCH_TEXT]: search i18n text", {
|
|
574
574
|
factory: function () { return "Search"; },
|
|
575
575
|
});
|
|
576
|
-
var TUI_DOC_SEE_ALSO_TEXT = new i0.InjectionToken("tui-doc-see-also i18n text", {
|
|
576
|
+
var TUI_DOC_SEE_ALSO_TEXT = new i0.InjectionToken("[TUI_DOC_SEE_ALSO_TEXT]: tui-doc-see-also i18n text", {
|
|
577
577
|
factory: function () { return "See also"; },
|
|
578
578
|
});
|
|
579
|
-
var TUI_DOC_SOURCE_CODE_TEXT = new i0.InjectionToken("tui-doc-source-code i18n text", {
|
|
579
|
+
var TUI_DOC_SOURCE_CODE_TEXT = new i0.InjectionToken("[TUI_DOC_SOURCE_CODE_TEXT]: tui-doc-source-code i18n text", {
|
|
580
580
|
factory: function () { return "Source code"; },
|
|
581
581
|
});
|
|
582
582
|
|
|
@@ -1310,13 +1310,13 @@
|
|
|
1310
1310
|
}]
|
|
1311
1311
|
}] });
|
|
1312
1312
|
|
|
1313
|
-
var TUI_DOC_CODE_ACTIONS = new i0.InjectionToken("Code actions for the opened tab with code example", {
|
|
1313
|
+
var TUI_DOC_CODE_ACTIONS = new i0.InjectionToken("[TUI_DOC_CODE_ACTIONS]: Code actions for the opened tab with code example", {
|
|
1314
1314
|
factory: function () { return ""; },
|
|
1315
1315
|
});
|
|
1316
1316
|
|
|
1317
|
-
var TUI_DOC_CODE_EDITOR = new i0.InjectionToken("Contains service for opening online IDE e.g. Stackblitz");
|
|
1317
|
+
var TUI_DOC_CODE_EDITOR = new i0.InjectionToken("[TUI_DOC_CODE_EDITOR]: Contains service for opening online IDE e.g. Stackblitz");
|
|
1318
1318
|
|
|
1319
|
-
var TUI_DOC_EXAMPLE_CONTENT_PROCESSOR = new i0.InjectionToken("Processes content in example", { factory: function () { return i9.identity; } });
|
|
1319
|
+
var TUI_DOC_EXAMPLE_CONTENT_PROCESSOR = new i0.InjectionToken("[TUI_DOC_EXAMPLE_CONTENT_PROCESSOR]: Processes content in example", { factory: function () { return i9.identity; } });
|
|
1320
1320
|
|
|
1321
1321
|
function tuiRawLoadRecord(example) {
|
|
1322
1322
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1687,17 +1687,17 @@
|
|
|
1687
1687
|
return newStr;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
var TUI_DOC_PAGES = new i0.InjectionToken("Documentation pages", {
|
|
1690
|
+
var TUI_DOC_PAGES = new i0.InjectionToken("[TUI_DOC_PAGES]: Documentation pages", {
|
|
1691
1691
|
factory: function () { return []; },
|
|
1692
1692
|
});
|
|
1693
1693
|
|
|
1694
|
-
var TUI_DOC_TITLE = new i0.InjectionToken("Page title", {
|
|
1694
|
+
var TUI_DOC_TITLE = new i0.InjectionToken("[TUI_DOC_TITLE]: Page title", {
|
|
1695
1695
|
factory: function () { return ""; },
|
|
1696
1696
|
});
|
|
1697
1697
|
|
|
1698
|
-
var NAVIGATION_TITLE = new i0.InjectionToken("Page title");
|
|
1699
|
-
var NAVIGATION_LABELS = new i0.InjectionToken("Navigation sections labels for search");
|
|
1700
|
-
var NAVIGATION_ITEMS = new i0.InjectionToken("Navigation pages");
|
|
1698
|
+
var NAVIGATION_TITLE = new i0.InjectionToken("[NAVIGATION_TITLE]: Page title");
|
|
1699
|
+
var NAVIGATION_LABELS = new i0.InjectionToken("[NAVIGATION_LABELS]: Navigation sections labels for search");
|
|
1700
|
+
var NAVIGATION_ITEMS = new i0.InjectionToken("[NAVIGATION_ITEMS]: Navigation pages");
|
|
1701
1701
|
var NAVIGATION_PROVIDERS = [
|
|
1702
1702
|
i6.TuiDestroyService,
|
|
1703
1703
|
{
|
|
@@ -1817,7 +1817,8 @@
|
|
|
1817
1817
|
}
|
|
1818
1818
|
Object.defineProperty(TuiDocNavigationComponent.prototype, "canOpen", {
|
|
1819
1819
|
get: function () {
|
|
1820
|
-
|
|
1820
|
+
var _a, _b;
|
|
1821
|
+
return ((_b = (_a = this.search.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 2;
|
|
1821
1822
|
},
|
|
1822
1823
|
enumerable: false,
|
|
1823
1824
|
configurable: true
|
|
@@ -1845,8 +1846,8 @@
|
|
|
1845
1846
|
this.openActivePageGroup();
|
|
1846
1847
|
};
|
|
1847
1848
|
TuiDocNavigationComponent.prototype.filterItems = function (items, search) {
|
|
1848
|
-
return items.map(function (section) { return i6.tuiUniqBy(section.filter(function (
|
|
1849
|
-
var title =
|
|
1849
|
+
return items.map(function (section) { return i6.tuiUniqBy(section.filter(function (_c) {
|
|
1850
|
+
var title = _c.title, _d = _c.keywords, keywords = _d === void 0 ? "" : _d;
|
|
1850
1851
|
title = title.toLowerCase();
|
|
1851
1852
|
search = search.toLowerCase();
|
|
1852
1853
|
keywords = keywords.toLowerCase();
|
|
@@ -1974,7 +1975,7 @@
|
|
|
1974
1975
|
args: ["class._open"]
|
|
1975
1976
|
}], filterItems: [], flattenSubPages: [] } });
|
|
1976
1977
|
|
|
1977
|
-
var TUI_DOC_LOGO = new i0.InjectionToken("Main logo", {
|
|
1978
|
+
var TUI_DOC_LOGO = new i0.InjectionToken("[TUI_DOC_LOGO]: Main logo", {
|
|
1978
1979
|
factory: function () { return ""; },
|
|
1979
1980
|
});
|
|
1980
1981
|
|
|
@@ -2260,15 +2261,15 @@
|
|
|
2260
2261
|
}]
|
|
2261
2262
|
}] });
|
|
2262
2263
|
|
|
2263
|
-
var TUI_DOC_DEFAULT_TABS = new i0.InjectionToken("Array of default tab names", {
|
|
2264
|
+
var TUI_DOC_DEFAULT_TABS = new i0.InjectionToken("[TUI_DOC_DEFAULT_TABS]: Array of default tab names", {
|
|
2264
2265
|
factory: function () { return []; },
|
|
2265
2266
|
});
|
|
2266
2267
|
|
|
2267
|
-
var TUI_DOC_SEE_ALSO = new i0.InjectionToken("Array of arrays of related pages", {
|
|
2268
|
+
var TUI_DOC_SEE_ALSO = new i0.InjectionToken("[TUI_DOC_SEE_ALSO]: Array of arrays of related pages", {
|
|
2268
2269
|
factory: function () { return []; },
|
|
2269
2270
|
});
|
|
2270
2271
|
|
|
2271
|
-
var PAGE_SEE_ALSO = new i0.InjectionToken("Page see also");
|
|
2272
|
+
var PAGE_SEE_ALSO = new i0.InjectionToken("[PAGE_SEE_ALSO]: Page see also");
|
|
2272
2273
|
var PAGE_PROVIDERS = [
|
|
2273
2274
|
{
|
|
2274
2275
|
provide: PAGE_SEE_ALSO,
|
|
@@ -2311,7 +2312,7 @@
|
|
|
2311
2312
|
type: i0.Input
|
|
2312
2313
|
}] } });
|
|
2313
2314
|
|
|
2314
|
-
var TUI_DOC_SOURCE_CODE = new i0.InjectionToken("Source code link", {
|
|
2315
|
+
var TUI_DOC_SOURCE_CODE = new i0.InjectionToken("[TUI_DOC_SOURCE_CODE]: Source code link", {
|
|
2315
2316
|
factory: function () { return null; },
|
|
2316
2317
|
});
|
|
2317
2318
|
|