@taiga-ui/addon-doc 4.68.0 → 5.0.0-canary.0c88239

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 (139) hide show
  1. package/README.md +33 -43
  2. package/components/api/api-item-number.directive.d.ts +3 -3
  3. package/components/api/api-item.component.d.ts +12 -10
  4. package/components/api/api.component.d.ts +1 -2
  5. package/components/{documentation/pipes → api}/inspect.pipe.d.ts +1 -1
  6. package/components/{documentation/pipes → api}/type-reference.pipe.d.ts +3 -3
  7. package/components/code/index.d.ts +10 -6
  8. package/components/copy/index.d.ts +1 -1
  9. package/components/demo/index.d.ts +14 -10
  10. package/components/doc-tab/index.d.ts +2 -2
  11. package/components/example/example.component.d.ts +16 -17
  12. package/components/example/example.options.d.ts +1 -3
  13. package/components/index.d.ts +1 -11
  14. package/components/internal/header/index.d.ts +4 -4
  15. package/components/internal/source-code/source-code.component.d.ts +7 -8
  16. package/components/language-switcher/index.d.ts +1 -1
  17. package/components/main/main.component.d.ts +1 -2
  18. package/components/navigation/navigation.component.d.ts +7 -5
  19. package/components/navigation/scroll-into-view.directive.d.ts +5 -3
  20. package/components/page/page-tab.directive.d.ts +2 -2
  21. package/components/page/page.component.d.ts +9 -15
  22. package/components/page/page.providers.d.ts +1 -15
  23. package/components/theme-switcher/theme-switcher.component.d.ts +3 -2
  24. package/components/toc/index.d.ts +22 -0
  25. package/fesm2022/taiga-ui-addon-doc-components.mjs +388 -823
  26. package/fesm2022/taiga-ui-addon-doc-components.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-addon-doc-services.mjs +5 -7
  28. package/fesm2022/taiga-ui-addon-doc-services.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-addon-doc-tokens.mjs +28 -93
  30. package/fesm2022/taiga-ui-addon-doc-tokens.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-addon-doc-types.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-addon-doc-utils.mjs +26 -8
  33. package/fesm2022/taiga-ui-addon-doc-utils.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-addon-doc.mjs +4 -8
  35. package/fesm2022/taiga-ui-addon-doc.mjs.map +1 -1
  36. package/index.d.ts +3 -4
  37. package/package.json +20 -35
  38. package/tokens/doc-icons.d.ts +3 -11
  39. package/tokens/i18n.d.ts +1 -12
  40. package/tokens/pages.d.ts +1 -0
  41. package/types/page.d.ts +1 -3
  42. package/utils/index.d.ts +1 -0
  43. package/utils/inspect.d.ts +1 -1
  44. package/utils/provide-route-page-tab.d.ts +3 -4
  45. package/utils/to-kebab.d.ts +8 -0
  46. package/components/documentation/documentation-property-connector.directive.d.ts +0 -32
  47. package/components/documentation/documentation.component.d.ts +0 -23
  48. package/components/documentation/pipes/cleaner.pipe.d.ts +0 -7
  49. package/components/documentation/pipes/color.pipe.d.ts +0 -7
  50. package/components/documentation/pipes/opacity.pipe.d.ts +0 -7
  51. package/components/documentation/pipes/optional.pipe.d.ts +0 -7
  52. package/components/documentation/pipes/primitive-polymorpheus-content.pipe.d.ts +0 -7
  53. package/components/documentation/pipes/strip-optional.pipe.d.ts +0 -7
  54. package/components/internal/see-also/index.d.ts +0 -9
  55. package/directives/index.d.ts +0 -1
  56. package/directives/text-code/text-code.directive.d.ts +0 -9
  57. package/esm2022/components/api/api-item-number.directive.mjs +0 -23
  58. package/esm2022/components/api/api-item.component.mjs +0 -118
  59. package/esm2022/components/api/api.component.mjs +0 -16
  60. package/esm2022/components/code/index.mjs +0 -46
  61. package/esm2022/components/copy/index.mjs +0 -29
  62. package/esm2022/components/demo/index.mjs +0 -170
  63. package/esm2022/components/doc-tab/index.mjs +0 -17
  64. package/esm2022/components/documentation/documentation-property-connector.directive.mjs +0 -134
  65. package/esm2022/components/documentation/documentation.component.mjs +0 -108
  66. package/esm2022/components/documentation/pipes/cleaner.pipe.mjs +0 -18
  67. package/esm2022/components/documentation/pipes/color.pipe.mjs +0 -39
  68. package/esm2022/components/documentation/pipes/inspect.pipe.mjs +0 -33
  69. package/esm2022/components/documentation/pipes/opacity.pipe.mjs +0 -30
  70. package/esm2022/components/documentation/pipes/optional.pipe.mjs +0 -18
  71. package/esm2022/components/documentation/pipes/primitive-polymorpheus-content.pipe.mjs +0 -19
  72. package/esm2022/components/documentation/pipes/strip-optional.pipe.mjs +0 -18
  73. package/esm2022/components/documentation/pipes/type-reference.pipe.mjs +0 -29
  74. package/esm2022/components/example/example-get-tabs.pipe.mjs +0 -18
  75. package/esm2022/components/example/example.component.mjs +0 -118
  76. package/esm2022/components/example/example.options.mjs +0 -19
  77. package/esm2022/components/index.mjs +0 -33
  78. package/esm2022/components/internal/header/index.mjs +0 -39
  79. package/esm2022/components/internal/see-also/index.mjs +0 -26
  80. package/esm2022/components/internal/source-code/source-code.component.mjs +0 -54
  81. package/esm2022/components/language-switcher/index.mjs +0 -77
  82. package/esm2022/components/main/main.component.mjs +0 -41
  83. package/esm2022/components/navigation/navigation.component.mjs +0 -205
  84. package/esm2022/components/navigation/navigation.providers.mjs +0 -59
  85. package/esm2022/components/navigation/scroll-into-view.directive.mjs +0 -32
  86. package/esm2022/components/page/page-tab.directive.mjs +0 -20
  87. package/esm2022/components/page/page.component.mjs +0 -78
  88. package/esm2022/components/page/page.providers.mjs +0 -34
  89. package/esm2022/components/taiga-ui-addon-doc-components.mjs +0 -5
  90. package/esm2022/components/theme-switcher/theme-switcher.component.mjs +0 -45
  91. package/esm2022/directives/index.mjs +0 -2
  92. package/esm2022/directives/taiga-ui-addon-doc-directives.mjs +0 -5
  93. package/esm2022/directives/text-code/text-code.directive.mjs +0 -27
  94. package/esm2022/index.mjs +0 -28
  95. package/esm2022/services/index.mjs +0 -2
  96. package/esm2022/services/taiga-ui-addon-doc-services.mjs +0 -5
  97. package/esm2022/services/theme-dark.service.mjs +0 -52
  98. package/esm2022/taiga-ui-addon-doc.mjs +0 -5
  99. package/esm2022/tokens/code-actions.mjs +0 -8
  100. package/esm2022/tokens/code-editor.mjs +0 -6
  101. package/esm2022/tokens/default-tabs.mjs +0 -8
  102. package/esm2022/tokens/doc-icons.mjs +0 -29
  103. package/esm2022/tokens/example-content-processor.mjs +0 -16
  104. package/esm2022/tokens/excluded-properties.mjs +0 -11
  105. package/esm2022/tokens/i18n.mjs +0 -62
  106. package/esm2022/tokens/index.mjs +0 -17
  107. package/esm2022/tokens/logo.mjs +0 -8
  108. package/esm2022/tokens/page-loaded.mjs +0 -9
  109. package/esm2022/tokens/pages.mjs +0 -12
  110. package/esm2022/tokens/see-also.mjs +0 -8
  111. package/esm2022/tokens/source-code.mjs +0 -8
  112. package/esm2022/tokens/support-language.mjs +0 -5
  113. package/esm2022/tokens/taiga-ui-addon-doc-tokens.mjs +0 -5
  114. package/esm2022/tokens/title.mjs +0 -8
  115. package/esm2022/tokens/type-reference-handler.mjs +0 -9
  116. package/esm2022/tokens/url-state-handler.mjs +0 -27
  117. package/esm2022/types/code-editor.mjs +0 -2
  118. package/esm2022/types/demo-params.mjs +0 -2
  119. package/esm2022/types/index.mjs +0 -2
  120. package/esm2022/types/page.mjs +0 -6
  121. package/esm2022/types/source-code-path-options.mjs +0 -2
  122. package/esm2022/types/taiga-ui-addon-doc-types.mjs +0 -5
  123. package/esm2022/utils/clean-object.mjs +0 -10
  124. package/esm2022/utils/coerce-boolean.mjs +0 -4
  125. package/esm2022/utils/coerce-value.mjs +0 -43
  126. package/esm2022/utils/index.mjs +0 -14
  127. package/esm2022/utils/inspect.mjs +0 -67
  128. package/esm2022/utils/is-page-group.mjs +0 -4
  129. package/esm2022/utils/parse-code-block.mjs +0 -9
  130. package/esm2022/utils/provide-route-page-tab.mjs +0 -13
  131. package/esm2022/utils/raw-load-record.mjs +0 -11
  132. package/esm2022/utils/raw-load.mjs +0 -4
  133. package/esm2022/utils/sort-pages.mjs +0 -26
  134. package/esm2022/utils/taiga-ui-addon-doc-utils.mjs +0 -5
  135. package/esm2022/utils/to-flat-map-pages.mjs +0 -22
  136. package/esm2022/utils/transliterate-keyboard-layout.mjs +0 -47
  137. package/esm2022/utils/type-reference-parser.mjs +0 -21
  138. package/fesm2022/taiga-ui-addon-doc-directives.mjs +0 -33
  139. package/fesm2022/taiga-ui-addon-doc-directives.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/addon-doc",
3
- "version": "4.68.0",
3
+ "version": "5.0.0-canary.0c88239",
4
4
  "description": "Taiga UI based library for developing documentation portals for Angular libraries.",
5
5
  "keywords": [
6
6
  "angular",
@@ -11,21 +11,24 @@
11
11
  "storybook"
12
12
  ],
13
13
  "homepage": "https://github.com/taiga-family/taiga-ui",
14
- "repository": "https://github.com/taiga-family/taiga-ui",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/taiga-family/taiga-ui"
17
+ },
15
18
  "license": "Apache-2.0",
16
19
  "peerDependencies": {
17
- "@angular/cdk": ">=16.0.0",
18
- "@angular/common": ">=16.0.0",
19
- "@angular/core": ">=16.0.0",
20
- "@angular/forms": ">=16.0.0",
21
- "@angular/router": ">=16.0.0",
22
- "@ng-web-apis/common": "^4.14.0",
23
- "@taiga-ui/addon-mobile": "^4.68.0",
24
- "@taiga-ui/cdk": "^4.68.0",
25
- "@taiga-ui/core": "^4.68.0",
26
- "@taiga-ui/kit": "^4.68.0",
27
- "@taiga-ui/legacy": "^4.68.0",
28
- "@taiga-ui/polymorpheus": "^4.9.0",
20
+ "@angular/cdk": ">=19.0.0",
21
+ "@angular/common": ">=19.0.0",
22
+ "@angular/core": ">=19.0.0",
23
+ "@angular/forms": ">=19.0.0",
24
+ "@angular/router": ">=19.0.0",
25
+ "@ng-web-apis/common": "^5.0.3",
26
+ "@ng-web-apis/platform": "^5.0.3",
27
+ "@taiga-ui/cdk": "^5.0.0-rc.2",
28
+ "@taiga-ui/core": "^5.0.0-rc.2",
29
+ "@taiga-ui/kit": "^5.0.0-rc.2",
30
+ "@taiga-ui/legacy": "^5.0.0-rc.2",
31
+ "@taiga-ui/polymorpheus": "^5.0.0",
29
32
  "@types/markdown-it": "^14.1.2",
30
33
  "markdown-it": "^14.1.0",
31
34
  "ngx-highlightjs": "^10.0.0"
@@ -38,44 +41,26 @@
38
41
  },
39
42
  ".": {
40
43
  "types": "./index.d.ts",
41
- "esm2022": "./esm2022/taiga-ui-addon-doc.mjs",
42
- "esm": "./esm2022/taiga-ui-addon-doc.mjs",
43
44
  "default": "./fesm2022/taiga-ui-addon-doc.mjs"
44
45
  },
45
46
  "./components": {
46
47
  "types": "./components/index.d.ts",
47
- "esm2022": "./esm2022/components/taiga-ui-addon-doc-components.mjs",
48
- "esm": "./esm2022/components/taiga-ui-addon-doc-components.mjs",
49
48
  "default": "./fesm2022/taiga-ui-addon-doc-components.mjs"
50
49
  },
51
- "./directives": {
52
- "types": "./directives/index.d.ts",
53
- "esm2022": "./esm2022/directives/taiga-ui-addon-doc-directives.mjs",
54
- "esm": "./esm2022/directives/taiga-ui-addon-doc-directives.mjs",
55
- "default": "./fesm2022/taiga-ui-addon-doc-directives.mjs"
50
+ "./types": {
51
+ "types": "./types/index.d.ts",
52
+ "default": "./fesm2022/taiga-ui-addon-doc-types.mjs"
56
53
  },
57
54
  "./services": {
58
55
  "types": "./services/index.d.ts",
59
- "esm2022": "./esm2022/services/taiga-ui-addon-doc-services.mjs",
60
- "esm": "./esm2022/services/taiga-ui-addon-doc-services.mjs",
61
56
  "default": "./fesm2022/taiga-ui-addon-doc-services.mjs"
62
57
  },
63
58
  "./tokens": {
64
59
  "types": "./tokens/index.d.ts",
65
- "esm2022": "./esm2022/tokens/taiga-ui-addon-doc-tokens.mjs",
66
- "esm": "./esm2022/tokens/taiga-ui-addon-doc-tokens.mjs",
67
60
  "default": "./fesm2022/taiga-ui-addon-doc-tokens.mjs"
68
61
  },
69
- "./types": {
70
- "types": "./types/index.d.ts",
71
- "esm2022": "./esm2022/types/taiga-ui-addon-doc-types.mjs",
72
- "esm": "./esm2022/types/taiga-ui-addon-doc-types.mjs",
73
- "default": "./fesm2022/taiga-ui-addon-doc-types.mjs"
74
- },
75
62
  "./utils": {
76
63
  "types": "./utils/index.d.ts",
77
- "esm2022": "./esm2022/utils/taiga-ui-addon-doc-utils.mjs",
78
- "esm": "./esm2022/utils/taiga-ui-addon-doc-utils.mjs",
79
64
  "default": "./fesm2022/taiga-ui-addon-doc-utils.mjs"
80
65
  }
81
66
  },
@@ -1,4 +1,4 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
1
+ import { InjectionToken } from '@angular/core';
2
2
  export interface TuiDocIcons {
3
3
  readonly code: string;
4
4
  readonly light: string;
@@ -9,24 +9,16 @@ export interface TuiDocIcons {
9
9
  readonly check: string;
10
10
  readonly link: string;
11
11
  readonly languages: string;
12
- /**
13
- * TODO: drop optional in v5
14
- */
15
- readonly externalLink?: string;
16
12
  /**
17
13
  * TODO: drop optional in v5
18
14
  */
19
15
  readonly shrink?: string;
20
16
  readonly expand?: string;
21
- /**
22
- * TODO: drop optional in v5
23
- */
24
- readonly ltr?: {
17
+ readonly ltr: {
25
18
  readonly preview: string;
26
19
  readonly direction: string;
27
20
  };
28
21
  }
29
22
  export declare const TUI_DOC_DEFAULT_ICONS: TuiDocIcons;
30
- export declare const TUI_DOC_ICONS: InjectionToken<TuiDocIcons>;
31
- export declare function tuiDocIconsProvider(icons: Partial<TuiDocIcons>): Provider;
23
+ export declare const TUI_DOC_ICONS: InjectionToken<TuiDocIcons>, tuiDocIconsProvider: (item: Partial<TuiDocIcons> | (() => Partial<TuiDocIcons>)) => import("@angular/core").FactoryProvider;
32
24
  export declare const TUI_DOC_DIRECTION_ENABLED: InjectionToken<false>;
package/tokens/i18n.d.ts CHANGED
@@ -7,18 +7,6 @@ import { InjectionToken } from '@angular/core';
7
7
  * Works with a tuple
8
8
  */
9
9
  export declare const TUI_DOC_DEMO_TEXTS: InjectionToken<[string, string, string]>;
10
- /**
11
- * tui-doc-documentation i18n texts
12
- * Works with a tuple
13
- * [
14
- * @string word 'argument',
15
- * @string word 'type',
16
- * @string 'name and description',
17
- * @string word 'value'
18
- * @string @deprecated message for tooltip about ng-polymorpheus
19
- * ]
20
- */
21
- export declare const TUI_DOC_DOCUMENTATION_TEXTS: InjectionToken<[argument: string, type: string, name: string, value: string, tooltip: string]>;
22
10
  /**
23
11
  * tui-doc-example i18n texts
24
12
  * Works with a tuple
@@ -32,5 +20,6 @@ export declare const TUI_DOC_EXAMPLE_TEXTS: InjectionToken<[string, string, stri
32
20
  export declare const TUI_DOC_MENU_TEXT: InjectionToken<string>;
33
21
  export declare const TUI_DOC_SEARCH_TEXT: InjectionToken<string>;
34
22
  export declare const TUI_DOC_SEE_ALSO_TEXT: InjectionToken<string>;
23
+ export declare const TUI_DOC_TOC_TEXT: InjectionToken<string>;
35
24
  export declare const TUI_DOC_SOURCE_CODE_TEXT: InjectionToken<string>;
36
25
  export declare const TUI_DOC_SEARCH_ENABLED: InjectionToken<import("@angular/core").WritableSignal<boolean>>;
package/tokens/pages.d.ts CHANGED
@@ -4,4 +4,5 @@ import { type TuiDocRoutePage, type TuiDocRoutePages } from '@taiga-ui/addon-doc
4
4
  * Documentation pages
5
5
  */
6
6
  export declare const TUI_DOC_PAGES: InjectionToken<TuiDocRoutePages>;
7
+ export declare const TUI_DOC_PAGES_ICONS: InjectionToken<Record<string, string>>;
7
8
  export declare const TUI_DOC_MAP_PAGES: InjectionToken<Map<string, TuiDocRoutePage>>;
package/types/page.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
2
1
  export type TuiDocRoutePages = ReadonlyArray<TuiDocRoutePage | TuiDocRoutePageGroup>;
3
2
  export interface TuiDocRoutePageBase {
4
3
  readonly section?: string;
@@ -8,7 +7,6 @@ export interface TuiDocRoutePage extends TuiDocRoutePageBase {
8
7
  readonly fragment?: string;
9
8
  readonly keywords?: string;
10
9
  readonly route: string;
11
- readonly icon?: PolymorpheusContent;
12
10
  readonly rel?: HTMLAnchorElement['rel'];
13
11
  readonly target?: HTMLAnchorElement['target'];
14
12
  }
@@ -16,7 +14,7 @@ export interface TuiDocRoutePageGroup extends TuiDocRoutePageBase {
16
14
  readonly subPages: readonly TuiDocRoutePage[];
17
15
  }
18
16
  export type TuiRawLoaderContent = Promise<{
19
- default: string;
17
+ readonly default: unknown;
20
18
  }> | string;
21
19
  export declare const TUI_EXAMPLE_PRIMARY_FILE_NAME: {
22
20
  readonly TS: "TypeScript";
package/utils/index.d.ts CHANGED
@@ -9,5 +9,6 @@ export * from './raw-load';
9
9
  export * from './raw-load-record';
10
10
  export * from './sort-pages';
11
11
  export * from './to-flat-map-pages';
12
+ export * from './to-kebab';
12
13
  export * from './transliterate-keyboard-layout';
13
14
  export * from './type-reference-parser';
@@ -4,4 +4,4 @@
4
4
  * @param depth
5
5
  * @return readable JS entity
6
6
  */
7
- export declare function tuiInspectAny<T>(data: T, depth: number): string;
7
+ export declare function tuiInspect<T>(data: T, depth: number): string;
@@ -1,12 +1,11 @@
1
- import { type EnvironmentProviders, type Provider, type Type } from '@angular/core';
1
+ import { type Type } from '@angular/core';
2
2
  import { type DefaultExport, type LoadChildren, type Route } from '@angular/router';
3
3
  import { type Observable } from 'rxjs';
4
4
  interface Options {
5
5
  path?: string;
6
6
  title?: string;
7
- loadComponent?: () => Observable<DefaultExport<Type<unknown>> | Type<unknown>> | Promise<DefaultExport<Type<unknown>> | Type<unknown>> | Type<unknown>;
7
+ loadComponent?(): Observable<DefaultExport<Type<unknown>> | Type<unknown>> | Promise<DefaultExport<Type<unknown>> | Type<unknown>> | Type<unknown>;
8
8
  loadChildren?: LoadChildren;
9
- providers?: Array<EnvironmentProviders | Provider>;
10
9
  }
11
- export declare function tuiProvideRoutePageTab({ path, title, loadComponent, loadChildren, providers, }?: Options): Route;
10
+ export declare function tuiProvideRoutePageTab({ path, title, loadComponent, loadChildren, }?: Options): Route;
12
11
  export {};
@@ -0,0 +1,8 @@
1
+ import { type PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare function tuiToKebab(str: string): string;
4
+ export declare class TuiDocKebabPipe implements PipeTransform {
5
+ readonly transform: typeof tuiToKebab;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocKebabPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<TuiDocKebabPipe, "tuiKebab", true>;
8
+ }
@@ -1,32 +0,0 @@
1
- import { EventEmitter, type OnChanges, type OnInit, TemplateRef } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export type TuiDocumentationPropertyType = 'input-output' | 'input' | 'output' | null;
5
- export declare class TuiDocDocumentationPropertyConnector<T> implements OnInit, OnChanges {
6
- private readonly locationRef;
7
- private readonly activatedRoute;
8
- private readonly urlSerializer;
9
- private readonly urlStateHandler;
10
- private readonly alerts;
11
- documentationPropertyName: string;
12
- documentationPropertyMode: TuiDocumentationPropertyType;
13
- documentationPropertyType: string;
14
- documentationPropertyValue: T;
15
- documentationPropertyDeprecated: boolean;
16
- documentationPropertyValues: readonly T[] | null;
17
- readonly documentationPropertyValueChange: EventEmitter<T>;
18
- readonly changed$: Subject<void>;
19
- readonly emits: import("@angular/core").WritableSignal<number>;
20
- readonly template: TemplateRef<any>;
21
- get attrName(): string;
22
- get shouldShowValues(): boolean;
23
- get hasItems(): boolean;
24
- ngOnInit(): void;
25
- ngOnChanges(): void;
26
- onValueChange(value: T): void;
27
- emitEvent(event: unknown): void;
28
- private parseParams;
29
- private setQueryParam;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocDocumentationPropertyConnector<any>, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDocDocumentationPropertyConnector<any>, "ng-template[documentationPropertyName]", ["documentationProperty"], { "documentationPropertyName": { "alias": "documentationPropertyName"; "required": false; }; "documentationPropertyMode": { "alias": "documentationPropertyMode"; "required": false; }; "documentationPropertyType": { "alias": "documentationPropertyType"; "required": false; }; "documentationPropertyValue": { "alias": "documentationPropertyValue"; "required": false; }; "documentationPropertyDeprecated": { "alias": "documentationPropertyDeprecated"; "required": false; }; "documentationPropertyValues": { "alias": "documentationPropertyValues"; "required": false; }; }, { "documentationPropertyValueChange": "documentationPropertyValueChange"; }, never, never, true, never>;
32
- }
@@ -1,23 +0,0 @@
1
- import { type AfterContentInit, type QueryList } from '@angular/core';
2
- import { type TuiMatcher } from '@taiga-ui/cdk/types';
3
- import { TuiDocDocumentationPropertyConnector } from './documentation-property-connector.directive';
4
- import * as i0 from "@angular/core";
5
- export declare class TuiDocDocumentation implements AfterContentInit {
6
- private readonly cdr;
7
- private readonly destroyRef;
8
- protected propertiesConnectors: QueryList<TuiDocDocumentationPropertyConnector<unknown>>;
9
- protected readonly texts: [argument: string, type: string, name: string, value: string, tooltip: string];
10
- protected readonly excludedProperties: Set<string>;
11
- protected activeItemIndex: number;
12
- heading: string;
13
- showValues: boolean;
14
- isAPI: boolean;
15
- ngAfterContentInit(): void;
16
- protected get type(): string;
17
- protected matcher: TuiMatcher<[
18
- TuiDocDocumentationPropertyConnector<unknown>,
19
- Set<string>
20
- ]>;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocDocumentation, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiDocDocumentation, "tui-doc-documentation", never, { "heading": { "alias": "heading"; "required": false; }; "showValues": { "alias": "showValues"; "required": false; }; "isAPI": { "alias": "isAPI"; "required": false; }; }, {}, ["propertiesConnectors"], ["*"], true, never>;
23
- }
@@ -1,7 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiShowCleanerPipe implements PipeTransform {
4
- transform(type: string): boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiShowCleanerPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiShowCleanerPipe, "tuiShowCleanerPipe", true>;
7
- }
@@ -1,7 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiGetColorPipe implements PipeTransform {
4
- transform(color: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiGetColorPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiGetColorPipe, "tuiGetColorPipe", true>;
7
- }
@@ -1,7 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiGetOpacityPipe implements PipeTransform {
4
- transform(color: string): number;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiGetOpacityPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiGetOpacityPipe, "tuiGetOpacity", true>;
7
- }
@@ -1,7 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiIsOptionalPipe implements PipeTransform {
4
- transform(name: string): boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiIsOptionalPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiIsOptionalPipe, "tuiIsOptionalPipe", true>;
7
- }
@@ -1,7 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiIsPrimitivePolymorpheusContentPipe implements PipeTransform {
4
- transform(value: unknown): boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiIsPrimitivePolymorpheusContentPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiIsPrimitivePolymorpheusContentPipe, "tuiIsPrimitivePolymorpheusContentPipe", true>;
7
- }
@@ -1,7 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiStripOptionalPipe implements PipeTransform {
4
- transform(name: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiStripOptionalPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiStripOptionalPipe, "tuiStripOptionalPipe", true>;
7
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TuiDocSeeAlso {
3
- private readonly pages;
4
- protected readonly text: string;
5
- seeAlso: readonly string[];
6
- protected getRouterLink(pageTitle: string): string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocSeeAlso, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiDocSeeAlso, "tui-doc-see-also", never, { "seeAlso": { "alias": "seeAlso"; "required": false; }; }, {}, never, never, true, never>;
9
- }
@@ -1 +0,0 @@
1
- export * from './text-code/text-code.directive';
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * @deprecated: use [textContent]="code"
4
- */
5
- export declare class TuiDocText {
6
- code: string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocText, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDocText, "code[tuiDocText]", never, { "code": { "alias": "tuiDocText"; "required": false; }; }, {}, never, never, true, never>;
9
- }
@@ -1,23 +0,0 @@
1
- import { Directive, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- class TuiDocAPINumberItem {
4
- constructor() {
5
- this.min = null;
6
- this.max = null;
7
- }
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDocAPINumberItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
9
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDocAPINumberItem, isStandalone: true, selector: "tr[tuiDocAPIItem][type=number]", inputs: { min: "min", max: "max" }, ngImport: i0 }); }
10
- }
11
- export { TuiDocAPINumberItem };
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDocAPINumberItem, decorators: [{
13
- type: Directive,
14
- args: [{
15
- standalone: true,
16
- selector: 'tr[tuiDocAPIItem][type=number]',
17
- }]
18
- }], propDecorators: { min: [{
19
- type: Input
20
- }], max: [{
21
- type: Input
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CBudWxsID0gbnVsbDtcbn1cbiJdfQ==
@@ -1,118 +0,0 @@
1
- import { Location, NgForOf, NgIf, NgSwitch, NgSwitchCase } from '@angular/common';
2
- import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output, } from '@angular/core';
3
- import { FormsModule } from '@angular/forms';
4
- import { ActivatedRoute, UrlSerializer } from '@angular/router';
5
- import { TUI_DOC_ICONS, TUI_DOC_URL_STATE_HANDLER } from '@taiga-ui/addon-doc/tokens';
6
- import { tuiCoerceValue, tuiInspectAny } from '@taiga-ui/addon-doc/utils';
7
- import { tuiIsNumber } from '@taiga-ui/cdk/utils/miscellaneous';
8
- import { TuiAlertService } from '@taiga-ui/core/components/alert';
9
- import { TuiIcon } from '@taiga-ui/core/components/icon';
10
- import { TuiTextfield } from '@taiga-ui/core/components/textfield';
11
- import { TuiDataListWrapper } from '@taiga-ui/kit/components/data-list-wrapper';
12
- import { TuiInputNumber } from '@taiga-ui/kit/components/input-number';
13
- import { TuiSwitch } from '@taiga-ui/kit/components/switch';
14
- import { TuiChevron } from '@taiga-ui/kit/directives/chevron';
15
- import { TuiInspectPipe } from '../documentation/pipes/inspect.pipe';
16
- import { TuiDocTypeReferencePipe } from '../documentation/pipes/type-reference.pipe';
17
- import { TuiDocAPINumberItem } from './api-item-number.directive';
18
- import * as i0 from "@angular/core";
19
- import * as i1 from "@angular/forms";
20
- import * as i2 from "@taiga-ui/kit/components/data-list-wrapper";
21
- import * as i3 from "@taiga-ui/kit/components/input-number";
22
- import * as i4 from "@taiga-ui/core/components/textfield";
23
- const SERIALIZED_SUFFIX = '$';
24
- class TuiDocAPIItem {
25
- constructor() {
26
- this.locationRef = inject(Location);
27
- this.activatedRoute = inject(ActivatedRoute);
28
- this.urlSerializer = inject(UrlSerializer);
29
- this.urlStateHandler = inject(TUI_DOC_URL_STATE_HANDLER);
30
- this.alerts = inject(TuiAlertService);
31
- this.icons = inject(TUI_DOC_ICONS);
32
- this.numberItem = inject(TuiDocAPINumberItem, {
33
- self: true,
34
- optional: true,
35
- });
36
- this.name = '';
37
- this.type = '';
38
- this.items = [];
39
- this.valueChange = new EventEmitter();
40
- }
41
- ngAfterViewInit() {
42
- this.parseParams(this.activatedRoute.snapshot.queryParams);
43
- }
44
- onValueChange(value) {
45
- this.value = value;
46
- this.valueChange.emit(value);
47
- this.setQueryParam(value);
48
- }
49
- emitEvent(event) {
50
- console.info('emitEvent', event);
51
- const alert = !event || event?.toString() === '[object Object]'
52
- ? tuiInspectAny(event, 2)
53
- : event;
54
- this.alerts.open(alert, { label: this.name }).subscribe();
55
- }
56
- clearBrackets(value) {
57
- return value.replaceAll(/[()[\]]/g, '');
58
- }
59
- parseParams(params) {
60
- const name = this.clearBrackets(this.name);
61
- const propertyValue = params[name];
62
- const propertyValueWithSuffix = params[`${name}${SERIALIZED_SUFFIX}`];
63
- if (!propertyValue && !propertyValueWithSuffix) {
64
- return;
65
- }
66
- let value = !!propertyValueWithSuffix && this.items
67
- ? this.items[propertyValueWithSuffix]
68
- : tuiCoerceValue(propertyValue);
69
- if (this.type === 'string' && tuiIsNumber(value)) {
70
- value = value.toString();
71
- }
72
- this.onValueChange(value);
73
- }
74
- setQueryParam(value) {
75
- const tree = this.urlSerializer.parse(this.locationRef.path());
76
- const isValueAvailableByKey = value instanceof Object;
77
- const computedValue = isValueAvailableByKey && this.items ? this.items.indexOf(value) : value;
78
- const suffix = isValueAvailableByKey ? SERIALIZED_SUFFIX : '';
79
- const propName = this.clearBrackets(this.name) + suffix;
80
- tree.queryParams = {
81
- ...tree.queryParams,
82
- [propName]: computedValue,
83
- };
84
- this.locationRef.go(this.urlStateHandler(tree));
85
- }
86
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDocAPIItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
87
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiDocAPIItem, isStandalone: true, selector: "tr[tuiDocAPIItem]", inputs: { name: "name", type: "type", value: "value", items: "items" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<td class=\"t-td\">\n <code\n class=\"t-name\"\n [class.t-name_banana]=\"name.startsWith('[(')\"\n [class.t-name_input]=\"name.startsWith('[')\"\n [class.t-name_output]=\"name.startsWith('(')\"\n >\n {{ name }}\n </code>\n <ng-content />\n</td>\n<td class=\"t-td\">\n <code class=\"t-type\">\n <ng-container *ngFor=\"let item of type | tuiDocTypeReference; let last = last\">\n <a\n *ngIf=\"item.reference; else default\"\n target=\"_blank\"\n class=\"t-reference\"\n [attr.href]=\"item.reference\"\n >\n {{ item.type }}\n <tui-icon\n *ngIf=\"icons.externalLink\"\n [icon]=\"icons.externalLink\"\n [style.font-size.rem]=\"1\"\n />\n </a>\n <ng-template #default>\n {{ item.type }}\n </ng-template>\n <span *ngIf=\"!last\">&nbsp;|&nbsp;</span>\n </ng-container>\n </code>\n</td>\n<td class=\"t-td\">\n <tui-textfield\n *ngIf=\"items.length; else noItems\"\n tuiChevron\n tuiTextfieldSize=\"m\"\n class=\"t-input\"\n [content]=\"content\"\n [tuiTextfieldCleaner]=\"type.includes('null') || type.includes('PolymorpheusContent')\"\n >\n <select\n placeholder=\"null\"\n tuiTextfield\n [ngModel]=\"value ?? null\"\n (ngModelChange)=\"onValueChange($event)\"\n ></select>\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n [itemContent]=\"content\"\n [items]=\"items\"\n />\n </tui-textfield>\n <ng-template\n #content\n let-data\n >\n <code [style.margin]=\"0\">{{ data | tuiInspectAny }}</code>\n </ng-template>\n <ng-template #noItems>\n <ng-container\n *ngIf=\"value !== undefined\"\n [ngSwitch]=\"type\"\n >\n <input\n *ngSwitchCase=\"'boolean'\"\n tuiSwitch\n type=\"checkbox\"\n [id]=\"name\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n <tui-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n class=\"t-input\"\n >\n <input\n tuiTextfield\n [id]=\"name\"\n [ngModel]=\"value || ''\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n </tui-textfield>\n\n <tui-textfield\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n >\n <input\n tuiInputNumber\n [id]=\"name\"\n [max]=\"numberItem?.max ?? null\"\n [min]=\"numberItem?.min ?? null\"\n [ngModel]=\"value\"\n [step]=\"1\"\n (ngModelChange)=\"onValueChange($event || 0)\"\n />\n </tui-textfield>\n </ng-container>\n </ng-template>\n</td>\n", styles: [":host{box-shadow:inset 0 -1px var(--tui-border-normal)}.t-td{padding:1.5rem 2rem 1.5rem 0;vertical-align:top}.t-td:last-child{padding-inline-end:0;text-align:end;min-inline-size:10rem}.t-name{display:flex!important;min-block-size:1.5rem;inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;margin:0 0 .5rem!important;-webkit-text-fill-color:var(--tui-background-accent-2-pressed)}.t-name_input{-webkit-text-fill-color:var(--tui-text-negative)}.t-name_banana{-webkit-text-fill-color:var(--tui-text-action)}.t-name_output{-webkit-text-fill-color:var(--tui-status-info)}.t-type{flex-wrap:wrap;align-items:center;justify-content:flex-start;min-block-size:1.5rem;margin:0!important}.t-reference{display:inline-flex;color:var(--tui-text-action);text-decoration:none;align-items:center;justify-content:center;gap:.1875rem}.t-input{min-inline-size:10rem;margin-block-start:-.625rem}.t-input code{overflow:hidden;white-space:nowrap}@media screen and (max-width: 47.9625em){:host{gap:1rem;padding:1rem 0}.t-td{padding:0}.t-td:last-child{text-align:start}.t-input{margin:0}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: TuiChevron, selector: "[tuiChevron]", inputs: ["tuiChevron"] }, { kind: "component", type: i2.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels]), tui-data-list-wrapper:not([labels])[new]", inputs: ["items", "disabledItemHandler", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "pipe", type: TuiDocTypeReferencePipe, name: "tuiDocTypeReference" }, { kind: "component", type: TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i3.TuiInputNumberDirective, selector: "input[tuiInputNumber]", inputs: ["min", "max", "prefix", "postfix"] }, { kind: "component", type: i3.TuiInputNumberStep, selector: "input[tuiInputNumber][step]", inputs: ["step"] }, { kind: "pipe", type: TuiInspectPipe, name: "tuiInspectAny" }, { kind: "component", type: TuiSwitch, selector: "input[type=\"checkbox\"][tuiSwitch]", inputs: ["size", "showIcons"] }, { kind: "component", type: i4.TuiSelect, selector: "select[tuiTextfield]", inputs: ["placeholder"] }, { kind: "component", type: i4.TuiTextfieldComponent, selector: "tui-textfield:not([multi])" }, { kind: "directive", type: i4.TuiTextfieldDirective, selector: "input[tuiTextfield]:not([tuiInputCard]):not([tuiInputExpire]):not([tuiInputCVC])" }, { kind: "directive", type: i4.TuiTextfieldOptionsDirective, selector: "[tuiTextfieldAppearance],[tuiTextfieldSize],[tuiTextfieldCleaner]", inputs: ["tuiTextfieldAppearance", "tuiTextfieldSize", "tuiTextfieldCleaner"] }, { kind: "directive", type: i4.TuiTextfieldDropdownDirective, selector: "ng-template[tuiTextfieldDropdown]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
88
- }
89
- export { TuiDocAPIItem };
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDocAPIItem, decorators: [{
91
- type: Component,
92
- args: [{ standalone: true, selector: 'tr[tuiDocAPIItem]', imports: [
93
- FormsModule,
94
- NgForOf,
95
- NgIf,
96
- NgSwitch,
97
- NgSwitchCase,
98
- TuiChevron,
99
- TuiDataListWrapper,
100
- TuiDocTypeReferencePipe,
101
- TuiIcon,
102
- TuiInputNumber,
103
- TuiInspectPipe,
104
- TuiSwitch,
105
- TuiTextfield,
106
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<td class=\"t-td\">\n <code\n class=\"t-name\"\n [class.t-name_banana]=\"name.startsWith('[(')\"\n [class.t-name_input]=\"name.startsWith('[')\"\n [class.t-name_output]=\"name.startsWith('(')\"\n >\n {{ name }}\n </code>\n <ng-content />\n</td>\n<td class=\"t-td\">\n <code class=\"t-type\">\n <ng-container *ngFor=\"let item of type | tuiDocTypeReference; let last = last\">\n <a\n *ngIf=\"item.reference; else default\"\n target=\"_blank\"\n class=\"t-reference\"\n [attr.href]=\"item.reference\"\n >\n {{ item.type }}\n <tui-icon\n *ngIf=\"icons.externalLink\"\n [icon]=\"icons.externalLink\"\n [style.font-size.rem]=\"1\"\n />\n </a>\n <ng-template #default>\n {{ item.type }}\n </ng-template>\n <span *ngIf=\"!last\">&nbsp;|&nbsp;</span>\n </ng-container>\n </code>\n</td>\n<td class=\"t-td\">\n <tui-textfield\n *ngIf=\"items.length; else noItems\"\n tuiChevron\n tuiTextfieldSize=\"m\"\n class=\"t-input\"\n [content]=\"content\"\n [tuiTextfieldCleaner]=\"type.includes('null') || type.includes('PolymorpheusContent')\"\n >\n <select\n placeholder=\"null\"\n tuiTextfield\n [ngModel]=\"value ?? null\"\n (ngModelChange)=\"onValueChange($event)\"\n ></select>\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n [itemContent]=\"content\"\n [items]=\"items\"\n />\n </tui-textfield>\n <ng-template\n #content\n let-data\n >\n <code [style.margin]=\"0\">{{ data | tuiInspectAny }}</code>\n </ng-template>\n <ng-template #noItems>\n <ng-container\n *ngIf=\"value !== undefined\"\n [ngSwitch]=\"type\"\n >\n <input\n *ngSwitchCase=\"'boolean'\"\n tuiSwitch\n type=\"checkbox\"\n [id]=\"name\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n <tui-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n class=\"t-input\"\n >\n <input\n tuiTextfield\n [id]=\"name\"\n [ngModel]=\"value || ''\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n </tui-textfield>\n\n <tui-textfield\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n >\n <input\n tuiInputNumber\n [id]=\"name\"\n [max]=\"numberItem?.max ?? null\"\n [min]=\"numberItem?.min ?? null\"\n [ngModel]=\"value\"\n [step]=\"1\"\n (ngModelChange)=\"onValueChange($event || 0)\"\n />\n </tui-textfield>\n </ng-container>\n </ng-template>\n</td>\n", styles: [":host{box-shadow:inset 0 -1px var(--tui-border-normal)}.t-td{padding:1.5rem 2rem 1.5rem 0;vertical-align:top}.t-td:last-child{padding-inline-end:0;text-align:end;min-inline-size:10rem}.t-name{display:flex!important;min-block-size:1.5rem;inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;margin:0 0 .5rem!important;-webkit-text-fill-color:var(--tui-background-accent-2-pressed)}.t-name_input{-webkit-text-fill-color:var(--tui-text-negative)}.t-name_banana{-webkit-text-fill-color:var(--tui-text-action)}.t-name_output{-webkit-text-fill-color:var(--tui-status-info)}.t-type{flex-wrap:wrap;align-items:center;justify-content:flex-start;min-block-size:1.5rem;margin:0!important}.t-reference{display:inline-flex;color:var(--tui-text-action);text-decoration:none;align-items:center;justify-content:center;gap:.1875rem}.t-input{min-inline-size:10rem;margin-block-start:-.625rem}.t-input code{overflow:hidden;white-space:nowrap}@media screen and (max-width: 47.9625em){:host{gap:1rem;padding:1rem 0}.t-td{padding:0}.t-td:last-child{text-align:start}.t-input{margin:0}}\n"] }]
107
- }], propDecorators: { name: [{
108
- type: Input
109
- }], type: [{
110
- type: Input
111
- }], value: [{
112
- type: Input
113
- }], items: [{
114
- type: Input
115
- }], valueChange: [{
116
- type: Output
117
- }] } });
118
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRkb24tZG9jL2NvbXBvbmVudHMvYXBpL2FwaS1pdGVtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLWRvYy9jb21wb25lbnRzL2FwaS9hcGktaXRlbS50ZW1wbGF0ZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDaEYsT0FBTyxFQUVILHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSx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ICAgICAgICAgICAgICAgICpuZ0lmPVwiaXRlbS5yZWZlcmVuY2U7IGVsc2UgZGVmYXVsdFwiXG4gICAgICAgICAgICAgICAgdGFyZ2V0PVwiX2JsYW5rXCJcbiAgICAgICAgICAgICAgICBjbGFzcz1cInQtcmVmZXJlbmNlXCJcbiAgICAgICAgICAgICAgICBbYXR0ci5ocmVmXT1cIml0ZW0ucmVmZXJlbmNlXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7eyBpdGVtLnR5cGUgfX1cbiAgICAgICAgICAgICAgICA8dHVpLWljb25cbiAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJpY29ucy5leHRlcm5hbExpbmtcIlxuICAgICAgICAgICAgICAgICAgICBbaWNvbl09XCJpY29ucy5leHRlcm5hbExpbmtcIlxuICAgICAgICAgICAgICAgICAgICBbc3R5bGUuZm9udC1zaXplLnJlbV09XCIxXCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgPC9hPlxuICAgICAgICAgICAgPG5nLXRlbXBsYXRlICNkZWZhdWx0PlxuICAgICAgICAgICAgICAgIHt7IGl0ZW0udHlwZSB9fVxuICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgIDxzcGFuICpuZ0lmPVwiIWxhc3RcIj4mbmJzcDt8Jm5ic3A7PC9zcGFuPlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8L2NvZGU+XG48L3RkPlxuPHRkIGNsYXNzPVwidC10ZFwiPlxuICAgIDx0dWktdGV4dGZpZWxkXG4gICAgICAgICpuZ0lmPVwiaXRlbXMubGVuZ3RoOyBlbHNlIG5vSXRlbXNcIlxuICAgICAgICB0dWlDaGV2cm9uXG4gICAgICAgIHR1aVRleHRmaWVsZFNpemU9XCJtXCJcbiAgICAgICAgY2xhc3M9XCJ0LWlucHV0XCJcbiAgICAgICAgW2NvbnRlbnRdPVwiY29udGVudFwiXG4gICAgICAgIFt0dWlUZXh0ZmllbGRDbGVhbmVyXT1cInR5cGUuaW5jbHVkZXMoJ251bGwnKSB8fCB0eXBlLmluY2x1ZGVzKCdQb2x5bW9ycGhldXNDb250ZW50JylcIlxuICAgID5cbiAgICAgICAgPHNlbGVjdFxuICAgICAgICAgICAgcGxhY2Vob2xkZXI9XCJudWxsXCJcbiAgICAgICAgICAgIHR1aVRleHRmaWVsZFxuICAgICAgICAgICAgW25nTW9kZWxdPVwidmFsdWUgPz8gbnVsbFwiXG4gICAgICAgICAgICAobmdNb2RlbENoYW5nZSk9XCJvblZhbHVlQ2hhbmdlKCRldmVudClcIlxuICAgICAgICA+PC9zZWxlY3Q+XG4gICAgICAgIDx0dWktZGF0YS1saXN0LXdyYXBwZXJcbiAgICAgICAgICAgICp0dWlUZXh0ZmllbGREcm9wZG93blxuICAgICAgICAgICAgW2l0ZW1Db250ZW50XT1cImNvbnRlbnRcIlxuICAgICAgICAgICAgW2l0ZW1zXT1cIml0ZW1zXCJcbiAgICAgICAgLz5cbiAgICA8L3R1aS10ZXh0ZmllbGQ+XG4gICAgPG5nLXRlbXBsYXRlXG4gICAgICAgICNjb250ZW50XG4gICAgICAgIGxldC1kYXRhXG4gICAgPlxuICAgICAgICA8Y29kZSBbc3R5bGUubWFyZ2luXT1cIjBcIj57eyBkYXRhIHwgdHVpSW5zcGVjdEFueSB9fTwvY29kZT5cbiAgICA8L25nLXRlbXBsYXRlPlxuICAgIDxuZy10ZW1wbGF0ZSAjbm9JdGVtcz5cbiAgICAgICAgPG5nLWNvbnRhaW5lclxuICAgICAgICAgICAgKm5nSWY9XCJ2YWx1ZSAhPT0gdW5kZWZpbmVkXCJcbiAgICAgICAgICAgIFtuZ1N3aXRjaF09XCJ0eXBlXCJcbiAgICAgICAgPlxuICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIidib29sZWFuJ1wiXG4gICAgICAgICAgICAgICAgdHVpU3dpdGNoXG4gICAgICAgICAgICAgICAgdHlwZT1cImNoZWNrYm94XCJcbiAgICAgICAgICAgICAgICBbaWRdPVwibmFtZVwiXG4gICAgICAgICAgICAgICAgW25nTW9kZWxdPVwidmFsdWVcIlxuICAgICAgICAgICAgICAgIChuZ01vZGVsQ2hhbmdlKT1cIm9uVmFsdWVDaGFuZ2UoJGV2ZW50KVwiXG4gICAgICAgICAgICAvPlxuXG4gICAgICAgICAgICA8dHVpLXRleHRmaWVsZFxuICAgICAgICAgICAgICAgICpuZ1N3aXRjaENhc2U9XCInc3RyaW5nJ1wiXG4gICAgICAgICAgICAgICAgdHVpVGV4dGZpZWxkU2l6ZT1cIm1cIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwidC1pbnB1dFwiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgICAgIHR1aVRleHRmaWVsZFxuICAgICAgICAgICAgICAgICAgICBbaWRdPVwibmFtZVwiXG4gICAgICAgICAgICAgICAgICAgIFtuZ01vZGVsXT1cInZhbHVlIHx8ICcnXCJcbiAgICAgICAgICAgICAgICAgICAgKG5nTW9kZWxDaGFuZ2UpPVwib25WYWx1ZUNoYW5nZSgkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgPC90dWktdGV4dGZpZWxkPlxuXG4gICAgICAgICAgICA8dHVpLXRleHRmaWVsZFxuICAgICAgICAgICAgICAgICpuZ1N3aXRjaENhc2U9XCInbnVtYmVyJ1wiXG4gICAgICAgICAgICAgICAgdHVpVGV4dGZpZWxkU2l6ZT1cIm1cIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgICAgICAgICB0dWlJbnB1dE51bWJlclxuICAgICAgICAgICAgICAgICAgICBbaWRdPVwibmFtZVwiXG4gICAgICAgICAgICAgICAgICAgIFttYXhdPVwibnVtYmVySXRlbT8ubWF4ID8/IG51bGxcIlxuICAgICAgICAgICAgICAgICAgICBbbWluXT1cIm51bWJlckl0ZW0/Lm1pbiA/PyBudWxsXCJcbiAgICAgICAgICAgICAgICAgICAgW25nTW9kZWxdPVwidmFsdWVcIlxuICAgICAgICAgICAgICAgICAgICBbc3RlcF09XCIxXCJcbiAgICAgICAgICAgICAgICAgICAgKG5nTW9kZWxDaGFuZ2UpPVwib25WYWx1ZUNoYW5nZSgkZXZlbnQgfHwgMClcIlxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8L3R1aS10ZXh0ZmllbGQ+XG4gICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgIDwvbmctdGVtcGxhdGU+XG48L3RkPlxuIl19
@@ -1,16 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, inject, ViewEncapsulation, } from '@angular/core';
2
- import { TUI_DOC_DOCUMENTATION_TEXTS } from '@taiga-ui/addon-doc/tokens';
3
- import * as i0 from "@angular/core";
4
- class TuiDocAPI {
5
- constructor() {
6
- this.texts = inject(TUI_DOC_DOCUMENTATION_TEXTS);
7
- }
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDocAPI, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiDocAPI, isStandalone: true, selector: "table[tuiDocAPI]", ngImport: i0, template: "<thead>\n <tr>\n <th>{{ texts[2] }}</th>\n <th>{{ texts[1] }}</th>\n <th>{{ texts[3] }}</th>\n </tr>\n</thead>\n<ng-content />\n", styles: ["[tuiDocAPI]{inline-size:100%}[tuiDocAPI] tbody [tuiTitle]{align-items:flex-start;color:var(--tui-text-secondary);padding:1rem;box-shadow:0 1px var(--tui-border-normal);background:var(--tui-background-base-alt)}[tuiDocAPI] th{padding:.5rem 0;color:var(--tui-text-secondary);font-weight:400;text-align:start;box-shadow:inset 0 -1px var(--tui-border-normal)}[tuiDocAPI] th:last-child{text-align:end}@media screen and (max-width: 47.9625em){[tuiDocAPI],[tuiDocAPI] tbody,[tuiDocAPI] tr{display:flex;flex-direction:column}[tuiDocAPI] th,[tuiDocAPI] tbody th,[tuiDocAPI] tr th{display:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
- }
11
- export { TuiDocAPI };
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDocAPI, decorators: [{
13
- type: Component,
14
- args: [{ standalone: true, selector: 'table[tuiDocAPI]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<thead>\n <tr>\n <th>{{ texts[2] }}</th>\n <th>{{ texts[1] }}</th>\n <th>{{ texts[3] }}</th>\n </tr>\n</thead>\n<ng-content />\n", styles: ["[tuiDocAPI]{inline-size:100%}[tuiDocAPI] tbody [tuiTitle]{align-items:flex-start;color:var(--tui-text-secondary);padding:1rem;box-shadow:0 1px var(--tui-border-normal);background:var(--tui-background-base-alt)}[tuiDocAPI] th{padding:.5rem 0;color:var(--tui-text-secondary);font-weight:400;text-align:start;box-shadow:inset 0 -1px var(--tui-border-normal)}[tuiDocAPI] th:last-child{text-align:end}@media screen and (max-width: 47.9625em){[tuiDocAPI],[tuiDocAPI] tbody,[tuiDocAPI] tr{display:flex;flex-direction:column}[tuiDocAPI] th,[tuiDocAPI] tbody th,[tuiDocAPI] tr th{display:none}}\n"] }]
15
- }] });
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLWRvYy9jb21wb25lbnRzL2FwaS9hcGkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRkb24tZG9jL2NvbXBvbmVudHMvYXBpL2FwaS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