@taiga-ui/addon-doc 3.49.1 → 3.50.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.
Files changed (102) hide show
  1. package/bundles/taiga-ui-addon-doc-components.umd.js +1 -40
  2. package/bundles/taiga-ui-addon-doc-components.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-doc-directives.umd.js +0 -4
  4. package/bundles/taiga-ui-addon-doc-directives.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-doc-interfaces.umd.js +0 -4
  6. package/bundles/taiga-ui-addon-doc-interfaces.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-doc-languages.umd.js +0 -5
  8. package/bundles/taiga-ui-addon-doc-languages.umd.js.map +1 -1
  9. package/bundles/taiga-ui-addon-doc-services.umd.js +0 -4
  10. package/bundles/taiga-ui-addon-doc-services.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-doc-tokens.umd.js +0 -71
  12. package/bundles/taiga-ui-addon-doc-tokens.umd.js.map +1 -1
  13. package/bundles/taiga-ui-addon-doc-types.umd.js +1 -3
  14. package/bundles/taiga-ui-addon-doc-types.umd.js.map +1 -1
  15. package/bundles/taiga-ui-addon-doc-utils.umd.js +0 -15
  16. package/bundles/taiga-ui-addon-doc-utils.umd.js.map +1 -1
  17. package/bundles/taiga-ui-addon-doc.umd.js +0 -4
  18. package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
  19. package/components/documentation/documentation-property-connector.directive.d.ts +0 -4
  20. package/components/documentation/documentation.component.d.ts +2 -2
  21. package/components/example/example.options.d.ts +0 -3
  22. package/components/language-switcher/language-switcher.component.d.ts +0 -4
  23. package/components/navigation/navigation.providers.d.ts +0 -9
  24. package/components/page/page.providers.d.ts +0 -3
  25. package/components/taiga-ui-addon-doc-components.d.ts +0 -3
  26. package/directives/taiga-ui-addon-doc-directives.d.ts +0 -3
  27. package/esm2015/components/documentation/documentation-property-connector.directive.js +1 -3
  28. package/esm2015/components/documentation/documentation.component.js +1 -3
  29. package/esm2015/components/documentation/pipes/inspect.pipe.js +1 -8
  30. package/esm2015/components/example/example.options.js +1 -4
  31. package/esm2015/components/language-switcher/language-switcher.component.js +2 -7
  32. package/esm2015/components/main/main.component.js +1 -3
  33. package/esm2015/components/navigation/navigation.component.js +1 -3
  34. package/esm2015/components/navigation/navigation.providers.js +1 -10
  35. package/esm2015/components/page/page.providers.js +1 -4
  36. package/esm2015/components/taiga-ui-addon-doc-components.js +1 -4
  37. package/esm2015/directives/taiga-ui-addon-doc-directives.js +1 -4
  38. package/esm2015/interfaces/taiga-ui-addon-doc-interfaces.js +1 -4
  39. package/esm2015/languages/russian.js +1 -2
  40. package/esm2015/languages/taiga-ui-addon-doc-languages.js +1 -4
  41. package/esm2015/services/taiga-ui-addon-doc-services.js +1 -4
  42. package/esm2015/taiga-ui-addon-doc.js +1 -4
  43. package/esm2015/tokens/code-actions.js +1 -4
  44. package/esm2015/tokens/code-editor.js +1 -4
  45. package/esm2015/tokens/default-tabs.js +1 -4
  46. package/esm2015/tokens/example-content-processor.js +1 -7
  47. package/esm2015/tokens/excluded-properties.js +1 -4
  48. package/esm2015/tokens/i18n.js +1 -29
  49. package/esm2015/tokens/logo.js +1 -4
  50. package/esm2015/tokens/page-loaded.js +1 -4
  51. package/esm2015/tokens/pages.js +1 -4
  52. package/esm2015/tokens/scroll-behavior.js +1 -4
  53. package/esm2015/tokens/see-also.js +1 -4
  54. package/esm2015/tokens/source-code.js +1 -4
  55. package/esm2015/tokens/taiga-ui-addon-doc-tokens.js +1 -4
  56. package/esm2015/tokens/title.js +1 -4
  57. package/esm2015/types/taiga-ui-addon-doc-types.js +1 -4
  58. package/esm2015/utils/inspect.js +1 -7
  59. package/esm2015/utils/taiga-ui-addon-doc-utils.js +1 -4
  60. package/esm2015/utils/transliterate-keyboard-layout.js +1 -6
  61. package/fesm2015/taiga-ui-addon-doc-components.js +1 -40
  62. package/fesm2015/taiga-ui-addon-doc-components.js.map +1 -1
  63. package/fesm2015/taiga-ui-addon-doc-directives.js +0 -4
  64. package/fesm2015/taiga-ui-addon-doc-directives.js.map +1 -1
  65. package/fesm2015/taiga-ui-addon-doc-interfaces.js +0 -4
  66. package/fesm2015/taiga-ui-addon-doc-interfaces.js.map +1 -1
  67. package/fesm2015/taiga-ui-addon-doc-languages.js +0 -5
  68. package/fesm2015/taiga-ui-addon-doc-languages.js.map +1 -1
  69. package/fesm2015/taiga-ui-addon-doc-services.js +0 -4
  70. package/fesm2015/taiga-ui-addon-doc-services.js.map +1 -1
  71. package/fesm2015/taiga-ui-addon-doc-tokens.js +0 -71
  72. package/fesm2015/taiga-ui-addon-doc-tokens.js.map +1 -1
  73. package/fesm2015/taiga-ui-addon-doc-types.js +1 -3
  74. package/fesm2015/taiga-ui-addon-doc-types.js.map +1 -1
  75. package/fesm2015/taiga-ui-addon-doc-utils.js +0 -15
  76. package/fesm2015/taiga-ui-addon-doc-utils.js.map +1 -1
  77. package/fesm2015/taiga-ui-addon-doc.js +0 -4
  78. package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
  79. package/interfaces/page.d.ts +0 -4
  80. package/interfaces/taiga-ui-addon-doc-interfaces.d.ts +0 -3
  81. package/languages/taiga-ui-addon-doc-languages.d.ts +0 -3
  82. package/package.json +5 -5
  83. package/services/taiga-ui-addon-doc-services.d.ts +0 -3
  84. package/taiga-ui-addon-doc.d.ts +0 -3
  85. package/tokens/code-actions.d.ts +0 -3
  86. package/tokens/code-editor.d.ts +0 -3
  87. package/tokens/default-tabs.d.ts +0 -3
  88. package/tokens/example-content-processor.d.ts +0 -6
  89. package/tokens/excluded-properties.d.ts +0 -3
  90. package/tokens/i18n.d.ts +0 -28
  91. package/tokens/logo.d.ts +0 -3
  92. package/tokens/page-loaded.d.ts +0 -3
  93. package/tokens/pages.d.ts +0 -3
  94. package/tokens/scroll-behavior.d.ts +0 -3
  95. package/tokens/see-also.d.ts +0 -3
  96. package/tokens/source-code.d.ts +0 -3
  97. package/tokens/taiga-ui-addon-doc-tokens.d.ts +0 -3
  98. package/tokens/title.d.ts +0 -3
  99. package/types/taiga-ui-addon-doc-types.d.ts +0 -3
  100. package/utils/inspect.d.ts +0 -6
  101. package/utils/taiga-ui-addon-doc-utils.d.ts +0 -3
  102. package/utils/transliterate-keyboard-layout.d.ts +0 -5
@@ -731,7 +731,6 @@
731
731
  }] });
732
732
 
733
733
  var SERIALIZED_SUFFIX = '$';
734
- // @bad TODO: refactor output and value sync
735
734
  var TuiDocDocumentationPropertyConnectorDirective = /** @class */ (function () {
736
735
  function TuiDocDocumentationPropertyConnectorDirective(template, locationRef, activatedRoute, urlSerializer, urlStateHandler) {
737
736
  this.template = template;
@@ -790,7 +789,6 @@
790
789
  this.setQueryParam(value);
791
790
  };
792
791
  TuiDocDocumentationPropertyConnectorDirective.prototype.emitEvent = function (event) {
793
- // For more convenient debugging
794
792
  console.info(this.attrName, event);
795
793
  this.emits$.next(this.emits$.value + 1);
796
794
  };
@@ -1028,13 +1026,6 @@
1028
1026
  TuiInspectPipe.prototype.transform = function (value, depth) {
1029
1027
  if (depth === void 0) { depth = 2; }
1030
1028
  if (this.isE2E && typeof value === "function") {
1031
- /**
1032
- * @description:
1033
- * When developing in production mode the webpack bundler minify
1034
- * functions in different ways, then due to which the string content
1035
- * of the function may differ from build to build, which can be to
1036
- * various problems when screenshot testing on e2e.
1037
- */
1038
1029
  return "\u03BB(x) => y";
1039
1030
  }
1040
1031
  return utils.tuiInspectAny(value, depth);
@@ -1068,8 +1059,6 @@
1068
1059
  args: [{ name: "tuiIsPrimitivePolymorpheusContentPipe" }]
1069
1060
  }] });
1070
1061
 
1071
- // @bad TODO subscribe propertiesConnectors changes
1072
- // @bad TODO refactor to make more flexible
1073
1062
  var TuiDocDocumentationComponent = /** @class */ (function () {
1074
1063
  function TuiDocDocumentationComponent(cdr, texts, excludedProperties, destroy$, getColor, getOpacity) {
1075
1064
  this.cdr = cdr;
@@ -1293,9 +1282,6 @@
1293
1282
  fullsize: true,
1294
1283
  linkIcon: "tuiIconLink",
1295
1284
  };
1296
- /**
1297
- * Default parameters for DocExample component
1298
- */
1299
1285
  var TUI_DOC_EXAMPLE_OPTIONS = i6.tuiCreateToken(TUI_DOC_EXAMPLE_DEFAULT_OPTIONS);
1300
1286
  function tuiDocExampleOptionsProvider(options) {
1301
1287
  return i6.tuiProvideOptions(TUI_DOC_EXAMPLE_OPTIONS, options, TUI_DOC_EXAMPLE_DEFAULT_OPTIONS);
@@ -1528,17 +1514,8 @@
1528
1514
  }]
1529
1515
  }] });
1530
1516
 
1531
- /**
1532
- * Page title
1533
- */
1534
1517
  var NAVIGATION_TITLE = new i0.InjectionToken("[NAVIGATION_TITLE]");
1535
- /**
1536
- * Navigation sections labels for search
1537
- */
1538
1518
  var NAVIGATION_LABELS = new i0.InjectionToken("[NAVIGATION_LABELS]");
1539
- /**
1540
- * Navigation pages
1541
- */
1542
1519
  var NAVIGATION_ITEMS = new i0.InjectionToken("[NAVIGATION_ITEMS]");
1543
1520
  var NAVIGATION_PROVIDERS = [
1544
1521
  i6.TuiDestroyService,
@@ -1605,8 +1582,6 @@
1605
1582
  this.search = new i5.FormControl('');
1606
1583
  this.filtered$ = i6.tuiControlValue(this.search).pipe(operators.filter(function (search) { return search.trim().length > 2; }), operators.map(function (search) { return _this.filterItems(_this.flattenSubPages(_this.items), search); }));
1607
1584
  this.mode$ = this.mode.change$.pipe(operators.startWith(null), operators.map(function () { return _this.mode.mode || 'onLight'; }));
1608
- // Angular can't navigate no anchor links
1609
- // https://stackoverflow.com/questions/36101756/angular2-routing-with-hashtag-to-page-anchor
1610
1585
  title$.subscribe(function (title) {
1611
1586
  cdr.markForCheck();
1612
1587
  titleService.setTitle(title);
@@ -2109,14 +2084,11 @@
2109
2084
  ['spanish', i5$2.TuiCountryIsoCode.ES],
2110
2085
  ['turkish', i5$2.TuiCountryIsoCode.TR],
2111
2086
  ['ukrainian', i5$2.TuiCountryIsoCode.UA],
2087
+ ['kazakh', i5$2.TuiCountryIsoCode.KZ],
2112
2088
  ['vietnamese', i5$2.TuiCountryIsoCode.VN],
2113
2089
  ]);
2114
2090
  this.names = Array.from(this.flags.keys());
2115
2091
  }
2116
- /**
2117
- * @deprecated use `<img [src]="countryIsoCode | tuiFlagPipe" />`
2118
- * TODO drop in v4.0
2119
- */
2120
2092
  TuiLanguageSwitcherComponent.prototype.getFlagPath = function (code) {
2121
2093
  return this.flagPipe.transform(code);
2122
2094
  };
@@ -2124,7 +2096,6 @@
2124
2096
  }());
2125
2097
  TuiLanguageSwitcherComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiLanguageSwitcherComponent, deps: [{ token: i5$2.TuiLanguageSwitcher }, { token: i2.TuiFlagPipe }], target: i0__namespace.ɵɵFactoryTarget.Component });
2126
2098
  TuiLanguageSwitcherComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiLanguageSwitcherComponent, selector: "tui-language-switcher", providers: [
2127
- // TODO: for backward compatibility only. Drop in v4.0
2128
2099
  i2.TuiFlagPipe,
2129
2100
  ], ngImport: i0__namespace, template: "<tui-select [formControl]=\"language\">\n <ng-content></ng-content>\n <tui-data-list *tuiDataList>\n <button\n *ngFor=\"let name of names\"\n tuiOption\n [value]=\"name | titlecase\"\n (click)=\"switcher.setLanguage(name)\"\n >\n <img\n alt=\"\"\n class=\"t-flag\"\n [src]=\"flags.get(name) | tuiFlag\"\n />\n {{ name | titlecase }}\n </button>\n </tui-data-list>\n</tui-select>\n", styles: [".t-flag{width:1.75rem;height:1.25rem;margin-right:.5rem}\n"], components: [{ type: i1__namespace.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { type: i2__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i2__namespace.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }], directives: [{ type: i1__namespace.TuiSelectDirective, selector: "tui-select" }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2__namespace.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "titlecase": i4__namespace.TitleCasePipe, "tuiFlag": i2__namespace.TuiFlagPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2130
2101
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiLanguageSwitcherComponent, decorators: [{
@@ -2134,7 +2105,6 @@
2134
2105
  templateUrl: './language-switcher.component.html',
2135
2106
  styleUrls: ['./language-switcher.component.less'],
2136
2107
  providers: [
2137
- // TODO: for backward compatibility only. Drop in v4.0
2138
2108
  i2.TuiFlagPipe,
2139
2109
  ],
2140
2110
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
@@ -2222,8 +2192,6 @@
2222
2192
  templateUrl: './main.template.html',
2223
2193
  styleUrls: ['./main.style.less'],
2224
2194
  encapsulation: i0.ViewEncapsulation.None,
2225
- // @note: This one was default on purpose so we can test demo in default mode.
2226
- // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
2227
2195
  changeDetection: i0.ChangeDetectionStrategy.Default,
2228
2196
  providers: [
2229
2197
  {
@@ -2297,9 +2265,6 @@
2297
2265
  }]
2298
2266
  }] });
2299
2267
 
2300
- /**
2301
- * Array if related page titles
2302
- */
2303
2268
  var PAGE_SEE_ALSO = new i0.InjectionToken("[PAGE_SEE_ALSO]");
2304
2269
  var PAGE_PROVIDERS = [
2305
2270
  {
@@ -2436,10 +2401,6 @@
2436
2401
  }]
2437
2402
  }] });
2438
2403
 
2439
- /**
2440
- * Generated bundle index. Do not edit.
2441
- */
2442
-
2443
2404
  exports.PAGE_PROVIDERS = PAGE_PROVIDERS;
2444
2405
  exports.PAGE_SEE_ALSO = PAGE_SEE_ALSO;
2445
2406
  exports.TUI_DOC_EXAMPLE_DEFAULT_OPTIONS = TUI_DOC_EXAMPLE_DEFAULT_OPTIONS;