@tekus/design-system 5.21.0 → 5.22.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 (221) hide show
  1. package/fesm2022/tekus-design-system-components-autocomplete.mjs +15 -15
  2. package/fesm2022/tekus-design-system-components-autocomplete.mjs.map +1 -1
  3. package/fesm2022/tekus-design-system-components-badge.mjs +8 -8
  4. package/fesm2022/tekus-design-system-components-badge.mjs.map +1 -1
  5. package/fesm2022/tekus-design-system-components-button.mjs +3 -3
  6. package/fesm2022/tekus-design-system-components-button.mjs.map +1 -1
  7. package/fesm2022/tekus-design-system-components-checkbox.mjs +14 -16
  8. package/fesm2022/tekus-design-system-components-checkbox.mjs.map +1 -1
  9. package/fesm2022/tekus-design-system-components-date-picker.mjs +22 -22
  10. package/fesm2022/tekus-design-system-components-date-picker.mjs.map +1 -1
  11. package/fesm2022/tekus-design-system-components-drawer.mjs +29 -29
  12. package/fesm2022/tekus-design-system-components-drawer.mjs.map +1 -1
  13. package/fesm2022/tekus-design-system-components-fallback-view.mjs +4 -5
  14. package/fesm2022/tekus-design-system-components-fallback-view.mjs.map +1 -1
  15. package/fesm2022/tekus-design-system-components-icon.mjs +13 -15
  16. package/fesm2022/tekus-design-system-components-icon.mjs.map +1 -1
  17. package/fesm2022/tekus-design-system-components-input-number.mjs +12 -14
  18. package/fesm2022/tekus-design-system-components-input-number.mjs.map +1 -1
  19. package/fesm2022/tekus-design-system-components-input-text.mjs +17 -18
  20. package/fesm2022/tekus-design-system-components-input-text.mjs.map +1 -1
  21. package/fesm2022/tekus-design-system-components-modal.mjs +31 -31
  22. package/fesm2022/tekus-design-system-components-modal.mjs.map +1 -1
  23. package/fesm2022/tekus-design-system-components-multiselect.mjs +19 -19
  24. package/fesm2022/tekus-design-system-components-multiselect.mjs.map +1 -1
  25. package/fesm2022/tekus-design-system-components-pagination.mjs +12 -12
  26. package/fesm2022/tekus-design-system-components-pagination.mjs.map +1 -1
  27. package/fesm2022/tekus-design-system-components-panel.mjs +3 -3
  28. package/fesm2022/tekus-design-system-components-panel.mjs.map +1 -1
  29. package/fesm2022/tekus-design-system-components-radio-button.mjs +13 -15
  30. package/fesm2022/tekus-design-system-components-radio-button.mjs.map +1 -1
  31. package/fesm2022/tekus-design-system-components-select.mjs +16 -16
  32. package/fesm2022/tekus-design-system-components-select.mjs.map +1 -1
  33. package/fesm2022/tekus-design-system-components-table.mjs +13 -13
  34. package/fesm2022/tekus-design-system-components-table.mjs.map +1 -1
  35. package/fesm2022/tekus-design-system-components-tabs.mjs +18 -21
  36. package/fesm2022/tekus-design-system-components-tabs.mjs.map +1 -1
  37. package/fesm2022/tekus-design-system-components-tag.mjs +11 -19
  38. package/fesm2022/tekus-design-system-components-tag.mjs.map +1 -1
  39. package/fesm2022/tekus-design-system-components-textarea.mjs +16 -18
  40. package/fesm2022/tekus-design-system-components-textarea.mjs.map +1 -1
  41. package/fesm2022/tekus-design-system-components-toolbar.mjs +18 -18
  42. package/fesm2022/tekus-design-system-components-toolbar.mjs.map +1 -1
  43. package/fesm2022/tekus-design-system-components-tooltip.mjs +6 -6
  44. package/fesm2022/tekus-design-system-components-tooltip.mjs.map +1 -1
  45. package/fesm2022/tekus-design-system-components-topbar.mjs +9 -9
  46. package/fesm2022/tekus-design-system-components-topbar.mjs.map +1 -1
  47. package/fesm2022/tekus-design-system-core-types.mjs +6 -6
  48. package/fesm2022/tekus-design-system-core-types.mjs.map +1 -1
  49. package/fesm2022/tekus-design-system-core.mjs +6 -6
  50. package/fesm2022/tekus-design-system-core.mjs.map +1 -1
  51. package/fesm2022/tekus-design-system-directives-gird-item.mjs +4 -4
  52. package/fesm2022/tekus-design-system-directives-gird-item.mjs.map +1 -1
  53. package/fesm2022/tekus-design-system-utils-sanitizer-utils.mjs.map +1 -1
  54. package/package.json +53 -48
  55. package/{components/autocomplete/src/autocomplete.component.d.ts → types/tekus-design-system-components-autocomplete.d.ts} +18 -16
  56. package/{components/badge/src/badge.component.d.ts → types/tekus-design-system-components-badge.d.ts} +12 -8
  57. package/{components/button/src/button.component.d.ts → types/tekus-design-system-components-button.d.ts} +8 -4
  58. package/{components/checkbox/src/checkbox.component.d.ts → types/tekus-design-system-components-checkbox.d.ts} +18 -15
  59. package/{components/date-picker/src/date-picker.component.d.ts → types/tekus-design-system-components-date-picker.d.ts} +33 -28
  60. package/{components/drawer/src/drawer.component.d.ts → types/tekus-design-system-components-drawer.d.ts} +54 -19
  61. package/{components/fallback-view/src/fallback-view.component.d.ts → types/tekus-design-system-components-fallback-view.d.ts} +7 -3
  62. package/types/tekus-design-system-components-icon.d.ts +108 -0
  63. package/{components/input-number/src/input-number.component.d.ts → types/tekus-design-system-components-input-number.d.ts} +15 -12
  64. package/{components/input-text/src/input-text.component.d.ts → types/tekus-design-system-components-input-text.d.ts} +20 -17
  65. package/types/tekus-design-system-components-modal.d.ts +186 -0
  66. package/{components/multiselect/src/multiselect.component.d.ts → types/tekus-design-system-components-multiselect.d.ts} +30 -22
  67. package/{components/pagination/src/pagination.component.d.ts → types/tekus-design-system-components-pagination.d.ts} +16 -13
  68. package/{components/panel/src/panel.component.d.ts → types/tekus-design-system-components-panel.d.ts} +5 -2
  69. package/{components/radio-button/src/radio-button.component.d.ts → types/tekus-design-system-components-radio-button.d.ts} +16 -13
  70. package/{components/select/src/select.component.d.ts → types/tekus-design-system-components-select.d.ts} +20 -17
  71. package/{components/table/src/table.component.d.ts → types/tekus-design-system-components-table.d.ts} +30 -12
  72. package/{components/tabs/src/tabs.component.d.ts → types/tekus-design-system-components-tabs.d.ts} +23 -14
  73. package/{components/tag/src/tag.component.d.ts → types/tekus-design-system-components-tag.d.ts} +14 -10
  74. package/{components/textarea/src/textarea.component.d.ts → types/tekus-design-system-components-textarea.d.ts} +18 -15
  75. package/{components/toolbar/src/toolbar.component.d.ts → types/tekus-design-system-components-toolbar.d.ts} +21 -18
  76. package/types/tekus-design-system-components-tooltip.d.ts +39 -0
  77. package/types/tekus-design-system-components-topbar.d.ts +37 -0
  78. package/types/tekus-design-system-core-types.d.ts +182 -0
  79. package/types/tekus-design-system-core.d.ts +182 -0
  80. package/{directives/gird-item/src/grid-item.directive.d.ts → types/tekus-design-system-directives-gird-item.d.ts} +11 -7
  81. package/{utils/sanitizer-utils/src/sanitizer-utils.d.ts → types/tekus-design-system-utils-sanitizer-utils.d.ts} +5 -3
  82. package/types/tekus-design-system.d.ts +2 -0
  83. package/components/autocomplete/index.d.ts +0 -5
  84. package/components/autocomplete/public-api.d.ts +0 -1
  85. package/components/badge/index.d.ts +0 -5
  86. package/components/badge/public-api.d.ts +0 -1
  87. package/components/button/index.d.ts +0 -5
  88. package/components/button/public-api.d.ts +0 -1
  89. package/components/checkbox/index.d.ts +0 -5
  90. package/components/checkbox/public-api.d.ts +0 -1
  91. package/components/date-picker/index.d.ts +0 -5
  92. package/components/date-picker/public-api.d.ts +0 -1
  93. package/components/drawer/index.d.ts +0 -5
  94. package/components/drawer/public-api.d.ts +0 -3
  95. package/components/drawer/src/drawer.types.d.ts +0 -22
  96. package/components/drawer/src/services/drawer.service.d.ts +0 -15
  97. package/components/fallback-view/index.d.ts +0 -5
  98. package/components/fallback-view/public-api.d.ts +0 -1
  99. package/components/icon/core/icon-catalog.d.ts +0 -76
  100. package/components/icon/core/icons/ads.icons.d.ts +0 -2
  101. package/components/icon/core/icons/angle.icons.d.ts +0 -2
  102. package/components/icon/core/icons/arrow.icons.d.ts +0 -2
  103. package/components/icon/core/icons/arrows-rotate.d.ts +0 -2
  104. package/components/icon/core/icons/bars.icons.d.ts +0 -2
  105. package/components/icon/core/icons/bolt.icons.d.ts +0 -2
  106. package/components/icon/core/icons/book.icons.d.ts +0 -2
  107. package/components/icon/core/icons/calendar.icons.d.ts +0 -2
  108. package/components/icon/core/icons/camera.icons.d.ts +0 -2
  109. package/components/icon/core/icons/chart.icons.d.ts +0 -2
  110. package/components/icon/core/icons/check.icons.d.ts +0 -2
  111. package/components/icon/core/icons/chevron.icons.d.ts +0 -2
  112. package/components/icon/core/icons/circle.icons.d.ts +0 -2
  113. package/components/icon/core/icons/clock.icons.d.ts +0 -2
  114. package/components/icon/core/icons/clone.icons.d.ts +0 -2
  115. package/components/icon/core/icons/download.icons.d.ts +0 -2
  116. package/components/icon/core/icons/edit.d.ts +0 -2
  117. package/components/icon/core/icons/ellipsis.icons.d.ts +0 -2
  118. package/components/icon/core/icons/eye.icons.d.ts +0 -2
  119. package/components/icon/core/icons/filter.icons.d.ts +0 -2
  120. package/components/icon/core/icons/folders.icons.d.ts +0 -2
  121. package/components/icon/core/icons/gears.icons.d.ts +0 -2
  122. package/components/icon/core/icons/globe-pointer.d.ts +0 -2
  123. package/components/icon/core/icons/grip-vertical.d.ts +0 -2
  124. package/components/icon/core/icons/hand.icons.d.ts +0 -2
  125. package/components/icon/core/icons/language.icons.d.ts +0 -2
  126. package/components/icon/core/icons/layer.icons.d.ts +0 -2
  127. package/components/icon/core/icons/link.icons.d.ts +0 -2
  128. package/components/icon/core/icons/list.icons.d.ts +0 -2
  129. package/components/icon/core/icons/location.icons.d.ts +0 -2
  130. package/components/icon/core/icons/lock.icons.d.ts +0 -2
  131. package/components/icon/core/icons/magnifying-glass.icons.d.ts +0 -2
  132. package/components/icon/core/icons/media.icons.d.ts +0 -2
  133. package/components/icon/core/icons/megaphone.icons.d.ts +0 -2
  134. package/components/icon/core/icons/money.icons.d.ts +0 -2
  135. package/components/icon/core/icons/pen.icons.d.ts +0 -2
  136. package/components/icon/core/icons/pencil.icons.d.ts +0 -2
  137. package/components/icon/core/icons/plug.icons.d.ts +0 -2
  138. package/components/icon/core/icons/plus.icons.d.ts +0 -2
  139. package/components/icon/core/icons/qr-code.icons.d.ts +0 -2
  140. package/components/icon/core/icons/screwdriver-wrench.icons.d.ts +0 -2
  141. package/components/icon/core/icons/shuffle.icons.d.ts +0 -2
  142. package/components/icon/core/icons/square.icons.d.ts +0 -2
  143. package/components/icon/core/icons/tag.icons.d.ts +0 -2
  144. package/components/icon/core/icons/thumbs.icons.d.ts +0 -2
  145. package/components/icon/core/icons/trash.icons.d.ts +0 -2
  146. package/components/icon/core/icons/triangle.icons.d.ts +0 -2
  147. package/components/icon/core/icons/user.icons.d.ts +0 -2
  148. package/components/icon/core/icons/xmark.icons.d.ts +0 -2
  149. package/components/icon/core/svg-icons/ads-icon.svg.d.ts +0 -2
  150. package/components/icon/core/svg-icons/index.d.ts +0 -1
  151. package/components/icon/index.d.ts +0 -5
  152. package/components/icon/public-api.d.ts +0 -2
  153. package/components/icon/src/icon.component.d.ts +0 -79
  154. package/components/input-number/index.d.ts +0 -5
  155. package/components/input-number/public-api.d.ts +0 -1
  156. package/components/input-text/index.d.ts +0 -5
  157. package/components/input-text/public-api.d.ts +0 -1
  158. package/components/modal/index.d.ts +0 -5
  159. package/components/modal/public-api.d.ts +0 -3
  160. package/components/modal/src/modal.component.d.ts +0 -118
  161. package/components/modal/src/modal.types.d.ts +0 -39
  162. package/components/modal/src/services/modal.service.d.ts +0 -31
  163. package/components/multiselect/index.d.ts +0 -5
  164. package/components/multiselect/public-api.d.ts +0 -2
  165. package/components/multiselect/src/multiselect.types.d.ts +0 -4
  166. package/components/pagination/index.d.ts +0 -5
  167. package/components/pagination/public-api.d.ts +0 -1
  168. package/components/panel/index.d.ts +0 -5
  169. package/components/panel/public-api.d.ts +0 -1
  170. package/components/radio-button/index.d.ts +0 -5
  171. package/components/radio-button/public-api.d.ts +0 -1
  172. package/components/select/index.d.ts +0 -5
  173. package/components/select/public-api.d.ts +0 -1
  174. package/components/table/index.d.ts +0 -5
  175. package/components/table/public-api.d.ts +0 -2
  176. package/components/table/src/table.interface.d.ts +0 -14
  177. package/components/tabs/index.d.ts +0 -5
  178. package/components/tabs/public-api.d.ts +0 -2
  179. package/components/tabs/src/tabs.interface.d.ts +0 -11
  180. package/components/tag/index.d.ts +0 -5
  181. package/components/tag/public-api.d.ts +0 -1
  182. package/components/textarea/index.d.ts +0 -5
  183. package/components/textarea/public-api.d.ts +0 -1
  184. package/components/toolbar/index.d.ts +0 -5
  185. package/components/toolbar/public-api.d.ts +0 -1
  186. package/components/tooltip/index.d.ts +0 -5
  187. package/components/tooltip/public-api.d.ts +0 -1
  188. package/components/tooltip/src/tooltip.component.d.ts +0 -35
  189. package/components/topbar/index.d.ts +0 -5
  190. package/components/topbar/public-api.d.ts +0 -2
  191. package/components/topbar/src/topbar.component.d.ts +0 -20
  192. package/components/topbar/src/topbar.types.d.ts +0 -13
  193. package/core/index.d.ts +0 -5
  194. package/core/public-api.d.ts +0 -1
  195. package/core/types/index.d.ts +0 -5
  196. package/core/types/public-api.d.ts +0 -10
  197. package/core/types/src/branding/branding.types.d.ts +0 -15
  198. package/core/types/src/branding/index.d.ts +0 -1
  199. package/core/types/src/breakpoints/breakpoints.d.ts +0 -10
  200. package/core/types/src/breakpoints/index.d.ts +0 -1
  201. package/core/types/src/grids/grid.enum.d.ts +0 -18
  202. package/core/types/src/grids/grid.model.d.ts +0 -10
  203. package/core/types/src/grids/grid.type.d.ts +0 -40
  204. package/core/types/src/grids/index.d.ts +0 -3
  205. package/core/types/src/illustration-config/illustration-config.model.d.ts +0 -4
  206. package/core/types/src/illustration-config/index.d.ts +0 -1
  207. package/core/types/src/interception/index.d.ts +0 -1
  208. package/core/types/src/interception/interception.types.d.ts +0 -21
  209. package/core/types/src/option/index.d.ts +0 -1
  210. package/core/types/src/option/option.model.d.ts +0 -8
  211. package/core/types/src/theme/theme.provider.d.ts +0 -1
  212. package/core/types/src/theme/tk-preset.d.ts +0 -1
  213. package/core/types/src/typography-styles/index.d.ts +0 -1
  214. package/core/types/src/typography-styles/typographyStyles.model.d.ts +0 -36
  215. package/core/types/src/validator-with-message/index.d.ts +0 -1
  216. package/core/types/src/validator-with-message/validator-with-message.model.d.ts +0 -5
  217. package/directives/gird-item/index.d.ts +0 -5
  218. package/directives/gird-item/public-api.d.ts +0 -1
  219. package/index.d.ts +0 -1
  220. package/utils/sanitizer-utils/index.d.ts +0 -5
  221. package/utils/sanitizer-utils/public-api.d.ts +0 -1
@@ -1,118 +0,0 @@
1
- import { EventEmitter, Type, ElementRef, OnDestroy } from '@angular/core';
2
- import { ModalFooterButton, ModalSizeType } from './modal.types';
3
- import { TkCloseInterceptor } from '@tekus/design-system/core/types';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @component ModalComponent
7
- * @description
8
- * A programmatically controlled modal dialog used for displaying dynamic content.
9
- * Modernized for Angular 19 with 100% synchronous Signal-based closing interception.
10
- */
11
- export declare class ModalComponent<T = unknown> implements OnDestroy {
12
- private readonly elementRef;
13
- private readonly contentHost;
14
- private componentRef?;
15
- /** The title displayed at the top of the modal */
16
- title: import("@angular/core").InputSignal<string>;
17
- /** The main content of the modal. Can be a string or a Component Type. */
18
- content: import("@angular/core").InputSignal<string | Type<T> | null>;
19
- /** Array of footer buttons with label, callback, and return value */
20
- footerButtons: import("@angular/core").InputSignal<ModalFooterButton[]>;
21
- /** Modal size: 'small', 'large', 'medium' or 'full' */
22
- size: import("@angular/core").InputSignal<ModalSizeType>;
23
- /** Whether the modal can be closed by the user via close button */
24
- closable: import("@angular/core").InputSignal<boolean>;
25
- /** Whether clicking outside the modal mask closes the modal */
26
- closeOnOutsideClick: import("@angular/core").InputSignal<boolean>;
27
- /**
28
- * Optional data to be passed as inputs to the dynamic component.
29
- */
30
- data: import("@angular/core").InputSignal<Partial<T>>;
31
- /**
32
- * Optional interceptor called before the modal closes.
33
- * MUST be synchronous. Returns true to allow closing.
34
- */
35
- interceptor: import("@angular/core").InputSignal<TkCloseInterceptor | undefined>;
36
- /** Computed: whether the content is a simple string */
37
- isContentString: import("@angular/core").Signal<boolean>;
38
- /** Computed: whether the modal has footer buttons to display */
39
- hasFooter: import("@angular/core").Signal<boolean>;
40
- /** Whether the modal should be responsive on mobile screens */
41
- responsive: import("@angular/core").InputSignal<boolean>;
42
- /** Visibility flag as Model Signal (allows two-way binding) */
43
- isOpened: import("@angular/core").ModelSignal<boolean>;
44
- /** Whether the modal content has a scrollbar */
45
- hasScroll: boolean;
46
- /** Emits when the modal closes, passing the return value from footer buttons or null */
47
- readonly onClose: EventEmitter<unknown>;
48
- private alreadyEmitted;
49
- private returnValueOnClose;
50
- constructor(elementRef: ElementRef);
51
- /** Computed: calculates modal max-width based on `size` */
52
- modalMaxWidth: import("@angular/core").Signal<"67.5rem" | "35rem" | "98vw" | "25rem">;
53
- ngOnDestroy(): void;
54
- /**
55
- * @summary Orchestrates dynamic rendering and destruction based on visibility.
56
- * @private
57
- */
58
- private attachDynamicContent;
59
- /**
60
- * @summary Synchronizes incoming data record with the dynamic instance @Inputs.
61
- * @private
62
- */
63
- private syncDynamicInputs;
64
- /**
65
- * @summary Safely destroys the dynamic component and clears references.
66
- * @private
67
- */
68
- private detachDynamicContent;
69
- /**
70
- * Checks if the modal content has a scrollbar and updates `hasScroll` state.
71
- */
72
- checkScroll(): void;
73
- /**
74
- * Opens the modal dialog.
75
- */
76
- open(): void;
77
- /**
78
- * @summary Main entry point for closure requests.
79
- * Evaluation is 100% synchronous based on current Signal state.
80
- * @param returnValue (Optional) Value to emit on close.
81
- */
82
- tryClose(returnValue?: unknown): void;
83
- /**
84
- * @summary Synchronous evaluator of hierarchical guards.
85
- * @returns true if closure is allowed.
86
- * @private
87
- */
88
- private canExecuteClosure;
89
- /**
90
- * @summary Unified logic to execute the final closure state change.
91
- * @private
92
- */
93
- private executeClosure;
94
- /**
95
- * @summary Handles external visibility changes (from p-dialog 'X' or Escape).
96
- * Ensures the reactive guard is respected before allowing closure.
97
- */
98
- onVisibleChange(visible: boolean): void;
99
- /**
100
- * Handles the close event from the underlying dialog component.
101
- */
102
- handleClose(): void;
103
- /**
104
- * @summary Handles actions triggered by footer buttons.
105
- */
106
- handleAction(action: (() => void) | undefined, returnValue: unknown): void;
107
- /**
108
- * @summary Safely closes the modal forcefully without checks.
109
- */
110
- close(): void;
111
- /**
112
- * @private
113
- * Encapsulates state cleanup to avoid repetitive assignments
114
- */
115
- private resetClosureState;
116
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent<any>, never>;
117
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent<any>, "tk-modal", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "footerButtons": { "alias": "footerButtons"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "interceptor": { "alias": "interceptor"; "required": false; "isSignal": true; }; "responsive": { "alias": "responsive"; "required": false; "isSignal": true; }; "isOpened": { "alias": "isOpened"; "required": false; "isSignal": true; }; }, { "isOpened": "isOpenedChange"; }, never, never, true, never>;
118
- }
@@ -1,39 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { Variant } from '@tekus/design-system/components/button';
3
- import { TkCloseInterceptor } from '@tekus/design-system/core/types';
4
- export type ModalSizeType = 'small' | 'large' | 'medium' | 'full';
5
- export type SeverityType = 'primary' | 'secondary' | 'danger';
6
- export interface ModalFooterButton {
7
- label: string;
8
- severity: SeverityType;
9
- /** Optional callback function executed when the button is clicked */
10
- action?: () => void;
11
- /** Optional value emitted when the modal closes after clicking this button */
12
- returnValue?: unknown;
13
- /** Optional button variant */
14
- variant?: Variant;
15
- }
16
- export interface ModalConfig<T = unknown> {
17
- /** The title displayed at the top of the modal */
18
- title: string;
19
- /** The main content of the modal. Can be a string or a Component Type. */
20
- content?: string | Type<T>;
21
- /** Array of footer buttons with label, callback, and return value */
22
- footerButtons?: ModalFooterButton[];
23
- /** Modal size: 'small', 'large', 'medium' or 'full' */
24
- size?: ModalSizeType;
25
- /** Whether the modal can be closed by the user via close button */
26
- closable?: boolean;
27
- /** Whether clicking outside the modal mask closes the modal */
28
- closeOnOutsideClick?: boolean;
29
- /**
30
- * Optional data to be passed as inputs to the dynamic component.
31
- * Keys must match the component's @Input names.
32
- */
33
- data?: Partial<T>;
34
- /**
35
- * Optional interceptor called before the modal closes.
36
- * Return false, Promise<false> or Observable<false> to prevent closing.
37
- */
38
- interceptor?: TkCloseInterceptor;
39
- }
@@ -1,31 +0,0 @@
1
- import { ApplicationRef, ComponentRef, Injector } from '@angular/core';
2
- import { ModalComponent } from '../modal.component';
3
- import { Observable } from 'rxjs';
4
- import { ModalConfig } from '../modal.types';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @service ModalService
8
- * @description
9
- * Service responsible for programmatically opening and managing modal dialogs.
10
- * It handles component creation, attachment to the document body, and cleanup.
11
- */
12
- export declare class ModalService {
13
- private readonly injector;
14
- private readonly appRef;
15
- /** Reference to the currently open modal component */
16
- private modalRef;
17
- constructor(injector: Injector, appRef: ApplicationRef);
18
- /** Internal getter for testing purposes */
19
- get _modalRefForTesting(): ComponentRef<ModalComponent> | null;
20
- /** Internal setter for testing purposes */
21
- set _modalRefForTesting(ref: ComponentRef<ModalComponent> | null);
22
- /**
23
- * Opens a modal dialog with the provided configuration.
24
- * Only one modal can be open at a time.
25
- * @param config Configuration object for the modal (title, content, buttons, etc.)
26
- * @returns An observable that emits the modal's return value when it closes.
27
- */
28
- open(config: ModalConfig): Observable<unknown>;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
31
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/multiselect" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from './src/multiselect.component';
2
- export * from './src/multiselect.types';
@@ -1,4 +0,0 @@
1
- export interface MultiSelectOption {
2
- name: string;
3
- code: string;
4
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/pagination" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/pagination.component';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/panel" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/panel.component';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/radio-button" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/radio-button.component';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/select" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/select.component';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/table" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from '../table/src/table.component';
2
- export * from '../table/src/table.interface';
@@ -1,14 +0,0 @@
1
- import { TagSeverity } from '@tekus/design-system/components/tag';
2
- export type TableColumnType = 'text' | 'tag' | 'actions' | 'selection' | 'checkbox';
3
- export interface TableColumn<T = unknown> {
4
- field?: string;
5
- header: string;
6
- sortable?: boolean;
7
- type?: TableColumnType;
8
- width?: string;
9
- tagSeverity?: (row: T) => TagSeverity;
10
- actions?: Array<{
11
- icon: string;
12
- action?: (row: T) => void;
13
- }>;
14
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/tabs" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from '../tabs/src/tabs.component';
2
- export * from '../tabs/src/tabs.interface';
@@ -1,11 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- export interface TabData {
3
- id: string;
4
- label: string;
5
- tooltip?: string;
6
- badge?: string;
7
- disabled?: boolean;
8
- visible?: boolean;
9
- lazy?: boolean;
10
- content?: TemplateRef<unknown>;
11
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/tag" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/tag.component';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/textarea" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/textarea.component';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/toolbar" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/toolbar.component';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/tooltip" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/tooltip.component';
@@ -1,35 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * @component TooltipComponent
4
- * @description
5
- * Wrapper component that applies a PrimeNG tooltip to its projected content.
6
- * It allows defining the tooltip text and its position relative to the content.
7
- *
8
- * @usage
9
- * ```html
10
- * <tk-tooltip content="Tooltip text" position="top">
11
- * <button>Hover me</button>
12
- * </tk-tooltip>
13
- * ```
14
- */
15
- export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
16
- export declare class TooltipComponent {
17
- /**
18
- * @property {string} content
19
- * @description
20
- * The text to be displayed in the tooltip.
21
- *
22
- * @required
23
- */
24
- content: import("@angular/core").InputSignal<string>;
25
- /**
26
- * @property {TooltipPosition} position
27
- * @description
28
- * Position of the tooltip relative to the element.
29
- *
30
- * @default 'top'
31
- */
32
- position: import("@angular/core").InputSignal<TooltipPosition>;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "tk-tooltip", never, { "content": { "alias": "content"; "required": true; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
35
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/topbar" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from './src/topbar.component';
2
- export * from './src/topbar.types';
@@ -1,20 +0,0 @@
1
- import { TopbarAction, TopbarTag } from './topbar.types';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @component TopbarComponent
5
- * @description
6
- * Layout component that renders a title with optional actions and metadata.
7
- * It composes `tk-button` and `tk-tag` and uses only design tokens for styles.
8
- */
9
- export declare class TopbarComponent {
10
- /** Main title text for the topbar. */
11
- title: import("@angular/core").InputSignal<string>;
12
- /** Optional list of actions displayed in the header. */
13
- actions: import("@angular/core").InputSignal<TopbarAction[] | null>;
14
- /** Optional list of tags displayed in the meta section. */
15
- tags: import("@angular/core").InputSignal<TopbarTag[] | null>;
16
- /** Optional description displayed in the meta section. */
17
- description: import("@angular/core").InputSignal<string | null>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<TopbarComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<TopbarComponent, "tk-topbar", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "tags": { "alias": "tags"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
- }
@@ -1,13 +0,0 @@
1
- import { TagSeverity } from '@tekus/design-system/components/tag';
2
- export type TopbarActionType = 'primary' | 'icon';
3
- export interface TopbarAction {
4
- type: TopbarActionType;
5
- label?: string;
6
- icon?: string;
7
- tooltipText?: string;
8
- onClick: () => void;
9
- }
10
- export interface TopbarTag {
11
- label: string;
12
- variant?: TagSeverity;
13
- }
package/core/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/core" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './types';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/core/types" />
5
- export * from './public-api';
@@ -1,10 +0,0 @@
1
- export * from './src/option';
2
- export * from './src/validator-with-message';
3
- export * from './src/typography-styles';
4
- export * from './src/illustration-config';
5
- export * from './src/branding';
6
- export * from './src/grids';
7
- export * from './src/breakpoints';
8
- export * from './src/theme/theme.provider';
9
- export * from './src/theme/tk-preset';
10
- export * from './src/interception';
@@ -1,15 +0,0 @@
1
- /**
2
- * @type { `dark` | `light` } ThemeLogo
3
- * @description Defines the theme variant of the logo.
4
- * - `dark`: The logo is designed to look good on a **light** background (the logo is dark).
5
- * - `light`: The logo is designed to look good on a **dark** background (the logo is light/white).
6
- */
7
- export type ThemeLogo = 'dark' | 'light';
8
- /**
9
- * @type { `minimal` | `normal` | `compound` } VariantLogo
10
- * @description Defines the logo style variant (complexity/presentation).
11
- * - `minimal`: Only the icon or a very simplified version of the logo.
12
- * - `normal`: The standard version of the logo (name/text).
13
- * - `compound`: A version of the logo (icon -name/text).
14
- */
15
- export type VariantLogo = 'minimal' | 'normal' | 'compound';
@@ -1 +0,0 @@
1
- export * from './branding.types';
@@ -1,10 +0,0 @@
1
- export declare const Breakpoints: {
2
- mobileSmall: string;
3
- mobile: string;
4
- mobileLarge: string;
5
- tabletVertical: string;
6
- tabletHorizontal: string;
7
- desktopSmall: string;
8
- desktop: string;
9
- desktopLarge: string;
10
- };
@@ -1 +0,0 @@
1
- export * from './breakpoints';
@@ -1,18 +0,0 @@
1
- declare enum GapGutter {
2
- normal = "24px",
3
- small = "16px",
4
- large = "32px",
5
- extraLarge = "40px"
6
- }
7
- declare enum PaddingGridContainer {
8
- large = "32px",
9
- medium = "24px",
10
- small = "16px"
11
- }
12
- declare enum Gutter {
13
- normal = "normal",
14
- small = "small",
15
- large = "large",
16
- extraLarge = "extraLarge"
17
- }
18
- export { Gutter, GapGutter, PaddingGridContainer };
@@ -1,10 +0,0 @@
1
- import { ColumnRowSize, ComposeMinMax } from "./grid.type";
2
- interface FixedGridProps {
3
- columns?: number;
4
- size?: ColumnRowSize;
5
- }
6
- interface AutoFillGridProps {
7
- columns?: 'auto-fill';
8
- size?: ComposeMinMax;
9
- }
10
- export { FixedGridProps, AutoFillGridProps };
@@ -1,40 +0,0 @@
1
- /**
2
- * Defines a set of predefined container sizes for layout components.
3
- */
4
- type ContainerType = 'large' | 'medium' | 'small';
5
- /**
6
- * Represents a valid CSS unit for defining the size of a grid column or row.
7
- * This type ensures type safety by restricting values to standard CSS units.
8
- * @description
9
- * Description: This type is designed to enforce correct formatting and unit types for grid layouts, preventing invalid values at compile time.
10
- * px: A fixed-size unit.
11
- * rem: A size relative to the root element's font size, useful for accessibility.
12
- * em: A size relative to the parent element's font size.
13
- * %: A percentage of the container's size.
14
- * fr: A fractional unit used in CSS Grid to distribute available space.
15
- */
16
- type ColumnRowSize = `${number}px` | `${number}rem` | `${number}em` | `${number}%` | `${number}fr`;
17
- /**
18
- * Represents a type-safe CSS `minmax()` function for creating responsive grid tracks.
19
- * @description
20
- * Description: This type ensures that the minmax() function is always created with valid ColumnRowSize arguments.
21
- * It's essential for building flexible layouts that adapt to different screen sizes.
22
- */
23
- type ComposeMinMax = `minmax(${ColumnRowSize},${ColumnRowSize})`;
24
- /**
25
- * A versatile type for defining grid track sizes, allowing for both fixed and flexible dimensions.
26
- * @description
27
- * Description: This union type offers maximum flexibility, allowing a grid template to accept either a
28
- * specific unit size (like '200px') or a dynamic minmax() function (like 'minmax(100px, 1fr)').
29
- */
30
- type ComposeSize = ComposeMinMax | ColumnRowSize;
31
- /**
32
- * Defines the number of columns in a grid.
33
- * @description
34
- * Description: This type provides two distinct ways to set the number of columns in a grid.
35
- * number: Used for a fixed number of columns (e.g., 4).
36
- * 'auto-fill': A CSS Grid keyword that automatically creates as many columns as will fit inside a container.
37
- */
38
- type GridColumns = number | 'auto-fill';
39
- type GutterType = 'normal' | 'small' | 'large' | 'extraLarge';
40
- export { ColumnRowSize, ComposeMinMax, ComposeSize, ContainerType, GridColumns, GutterType };
@@ -1,3 +0,0 @@
1
- export * from './grid.enum';
2
- export * from './grid.model';
3
- export * from './grid.type';
@@ -1,4 +0,0 @@
1
- export interface IllustrationConfig {
2
- name: string;
3
- url: string;
4
- }
@@ -1 +0,0 @@
1
- export * from './illustration-config.model';
@@ -1 +0,0 @@
1
- export * from './interception.types';
@@ -1,21 +0,0 @@
1
- /**
2
- * Interface that can be optionally implemented by components loaded into overlays
3
- * (Modals, Drawers, etc.) to intercept the closing process.
4
- */
5
- export interface TkCanClose {
6
- /**
7
- * Function or Signal indicating if the component can be closed.
8
- * When returning false, the overlay will prevent closure.
9
- */
10
- canClose?: () => boolean;
11
- /**
12
- * Optional hook called when a user attempt to close the overlay is blocked
13
- * by the canClose() returning false.
14
- */
15
- onBlockedClose?(): void;
16
- }
17
- /**
18
- * Type definition for the overlay closing interceptor.
19
- * It must be a synchronous function returning the "allowed" state.
20
- */
21
- export type TkCloseInterceptor = () => boolean;
@@ -1 +0,0 @@
1
- export * from './option.model';
@@ -1,8 +0,0 @@
1
- export interface Option {
2
- ViewValue: string;
3
- Value: number | string;
4
- }
5
- export interface DropdownListItem<T> {
6
- ViewValue: string;
7
- Value: T;
8
- }
@@ -1 +0,0 @@
1
- export declare function provideTkTheme(): import("@angular/core").EnvironmentProviders;
@@ -1 +0,0 @@
1
- export declare const TkPreset: any;
@@ -1 +0,0 @@
1
- export * from './typographyStyles.model';