@tekus/design-system 5.20.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.
- package/fesm2022/tekus-design-system-components-autocomplete.mjs +15 -15
- package/fesm2022/tekus-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-badge.mjs +8 -8
- package/fesm2022/tekus-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-button.mjs +3 -3
- package/fesm2022/tekus-design-system-components-button.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-checkbox.mjs +14 -16
- package/fesm2022/tekus-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-date-picker.mjs +166 -167
- package/fesm2022/tekus-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-drawer.mjs +29 -29
- package/fesm2022/tekus-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-fallback-view.mjs +4 -5
- package/fesm2022/tekus-design-system-components-fallback-view.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-icon.mjs +13 -15
- package/fesm2022/tekus-design-system-components-icon.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-input-number.mjs +12 -14
- package/fesm2022/tekus-design-system-components-input-number.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-input-text.mjs +17 -18
- package/fesm2022/tekus-design-system-components-input-text.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-modal.mjs +31 -31
- package/fesm2022/tekus-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-multiselect.mjs +19 -19
- package/fesm2022/tekus-design-system-components-multiselect.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-pagination.mjs +12 -12
- package/fesm2022/tekus-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-panel.mjs +3 -3
- package/fesm2022/tekus-design-system-components-panel.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-radio-button.mjs +13 -15
- package/fesm2022/tekus-design-system-components-radio-button.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-select.mjs +16 -16
- package/fesm2022/tekus-design-system-components-select.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-table.mjs +13 -13
- package/fesm2022/tekus-design-system-components-table.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-tabs.mjs +18 -21
- package/fesm2022/tekus-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-tag.mjs +11 -19
- package/fesm2022/tekus-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-textarea.mjs +16 -18
- package/fesm2022/tekus-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-toolbar.mjs +18 -18
- package/fesm2022/tekus-design-system-components-toolbar.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-tooltip.mjs +6 -6
- package/fesm2022/tekus-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-topbar.mjs +9 -9
- package/fesm2022/tekus-design-system-components-topbar.mjs.map +1 -1
- package/fesm2022/tekus-design-system-core-types.mjs +6 -6
- package/fesm2022/tekus-design-system-core-types.mjs.map +1 -1
- package/fesm2022/tekus-design-system-core.mjs +6 -6
- package/fesm2022/tekus-design-system-core.mjs.map +1 -1
- package/fesm2022/tekus-design-system-directives-gird-item.mjs +4 -4
- package/fesm2022/tekus-design-system-directives-gird-item.mjs.map +1 -1
- package/fesm2022/tekus-design-system-utils-sanitizer-utils.mjs.map +1 -1
- package/package.json +47 -42
- package/{components/autocomplete/src/autocomplete.component.d.ts → types/tekus-design-system-components-autocomplete.d.ts} +18 -16
- package/{components/badge/src/badge.component.d.ts → types/tekus-design-system-components-badge.d.ts} +12 -8
- package/{components/button/src/button.component.d.ts → types/tekus-design-system-components-button.d.ts} +8 -4
- package/{components/checkbox/src/checkbox.component.d.ts → types/tekus-design-system-components-checkbox.d.ts} +18 -15
- package/types/tekus-design-system-components-date-picker.d.ts +193 -0
- package/{components/drawer/src/drawer.component.d.ts → types/tekus-design-system-components-drawer.d.ts} +54 -19
- package/{components/fallback-view/src/fallback-view.component.d.ts → types/tekus-design-system-components-fallback-view.d.ts} +7 -3
- package/types/tekus-design-system-components-icon.d.ts +108 -0
- package/{components/input-number/src/input-number.component.d.ts → types/tekus-design-system-components-input-number.d.ts} +15 -12
- package/{components/input-text/src/input-text.component.d.ts → types/tekus-design-system-components-input-text.d.ts} +20 -17
- package/types/tekus-design-system-components-modal.d.ts +186 -0
- package/{components/multiselect/src/multiselect.component.d.ts → types/tekus-design-system-components-multiselect.d.ts} +30 -22
- package/{components/pagination/src/pagination.component.d.ts → types/tekus-design-system-components-pagination.d.ts} +16 -13
- package/{components/panel/src/panel.component.d.ts → types/tekus-design-system-components-panel.d.ts} +5 -2
- package/{components/radio-button/src/radio-button.component.d.ts → types/tekus-design-system-components-radio-button.d.ts} +16 -13
- package/{components/select/src/select.component.d.ts → types/tekus-design-system-components-select.d.ts} +20 -17
- package/{components/table/src/table.component.d.ts → types/tekus-design-system-components-table.d.ts} +30 -12
- package/{components/tabs/src/tabs.component.d.ts → types/tekus-design-system-components-tabs.d.ts} +23 -14
- package/{components/tag/src/tag.component.d.ts → types/tekus-design-system-components-tag.d.ts} +14 -10
- package/{components/textarea/src/textarea.component.d.ts → types/tekus-design-system-components-textarea.d.ts} +18 -15
- package/{components/toolbar/src/toolbar.component.d.ts → types/tekus-design-system-components-toolbar.d.ts} +21 -18
- package/types/tekus-design-system-components-tooltip.d.ts +39 -0
- package/types/tekus-design-system-components-topbar.d.ts +37 -0
- package/types/tekus-design-system-core-types.d.ts +182 -0
- package/types/tekus-design-system-core.d.ts +182 -0
- package/{directives/gird-item/src/grid-item.directive.d.ts → types/tekus-design-system-directives-gird-item.d.ts} +11 -7
- package/{utils/sanitizer-utils/src/sanitizer-utils.d.ts → types/tekus-design-system-utils-sanitizer-utils.d.ts} +5 -3
- package/types/tekus-design-system.d.ts +2 -0
- package/components/autocomplete/index.d.ts +0 -5
- package/components/autocomplete/public-api.d.ts +0 -1
- package/components/badge/index.d.ts +0 -5
- package/components/badge/public-api.d.ts +0 -1
- package/components/button/index.d.ts +0 -5
- package/components/button/public-api.d.ts +0 -1
- package/components/checkbox/index.d.ts +0 -5
- package/components/checkbox/public-api.d.ts +0 -1
- package/components/date-picker/index.d.ts +0 -5
- package/components/date-picker/public-api.d.ts +0 -1
- package/components/date-picker/src/date-picker.component.d.ts +0 -163
- package/components/drawer/index.d.ts +0 -5
- package/components/drawer/public-api.d.ts +0 -3
- package/components/drawer/src/drawer.types.d.ts +0 -22
- package/components/drawer/src/services/drawer.service.d.ts +0 -15
- package/components/fallback-view/index.d.ts +0 -5
- package/components/fallback-view/public-api.d.ts +0 -1
- package/components/icon/core/icon-catalog.d.ts +0 -76
- package/components/icon/core/icons/ads.icons.d.ts +0 -2
- package/components/icon/core/icons/angle.icons.d.ts +0 -2
- package/components/icon/core/icons/arrow.icons.d.ts +0 -2
- package/components/icon/core/icons/arrows-rotate.d.ts +0 -2
- package/components/icon/core/icons/bars.icons.d.ts +0 -2
- package/components/icon/core/icons/bolt.icons.d.ts +0 -2
- package/components/icon/core/icons/book.icons.d.ts +0 -2
- package/components/icon/core/icons/calendar.icons.d.ts +0 -2
- package/components/icon/core/icons/camera.icons.d.ts +0 -2
- package/components/icon/core/icons/chart.icons.d.ts +0 -2
- package/components/icon/core/icons/check.icons.d.ts +0 -2
- package/components/icon/core/icons/chevron.icons.d.ts +0 -2
- package/components/icon/core/icons/circle.icons.d.ts +0 -2
- package/components/icon/core/icons/clock.icons.d.ts +0 -2
- package/components/icon/core/icons/clone.icons.d.ts +0 -2
- package/components/icon/core/icons/download.icons.d.ts +0 -2
- package/components/icon/core/icons/edit.d.ts +0 -2
- package/components/icon/core/icons/ellipsis.icons.d.ts +0 -2
- package/components/icon/core/icons/eye.icons.d.ts +0 -2
- package/components/icon/core/icons/filter.icons.d.ts +0 -2
- package/components/icon/core/icons/folders.icons.d.ts +0 -2
- package/components/icon/core/icons/gears.icons.d.ts +0 -2
- package/components/icon/core/icons/globe-pointer.d.ts +0 -2
- package/components/icon/core/icons/grip-vertical.d.ts +0 -2
- package/components/icon/core/icons/hand.icons.d.ts +0 -2
- package/components/icon/core/icons/language.icons.d.ts +0 -2
- package/components/icon/core/icons/layer.icons.d.ts +0 -2
- package/components/icon/core/icons/link.icons.d.ts +0 -2
- package/components/icon/core/icons/list.icons.d.ts +0 -2
- package/components/icon/core/icons/location.icons.d.ts +0 -2
- package/components/icon/core/icons/lock.icons.d.ts +0 -2
- package/components/icon/core/icons/magnifying-glass.icons.d.ts +0 -2
- package/components/icon/core/icons/media.icons.d.ts +0 -2
- package/components/icon/core/icons/megaphone.icons.d.ts +0 -2
- package/components/icon/core/icons/money.icons.d.ts +0 -2
- package/components/icon/core/icons/pen.icons.d.ts +0 -2
- package/components/icon/core/icons/pencil.icons.d.ts +0 -2
- package/components/icon/core/icons/plug.icons.d.ts +0 -2
- package/components/icon/core/icons/plus.icons.d.ts +0 -2
- package/components/icon/core/icons/qr-code.icons.d.ts +0 -2
- package/components/icon/core/icons/screwdriver-wrench.icons.d.ts +0 -2
- package/components/icon/core/icons/shuffle.icons.d.ts +0 -2
- package/components/icon/core/icons/square.icons.d.ts +0 -2
- package/components/icon/core/icons/tag.icons.d.ts +0 -2
- package/components/icon/core/icons/thumbs.icons.d.ts +0 -2
- package/components/icon/core/icons/trash.icons.d.ts +0 -2
- package/components/icon/core/icons/triangle.icons.d.ts +0 -2
- package/components/icon/core/icons/user.icons.d.ts +0 -2
- package/components/icon/core/icons/xmark.icons.d.ts +0 -2
- package/components/icon/core/svg-icons/ads-icon.svg.d.ts +0 -2
- package/components/icon/core/svg-icons/index.d.ts +0 -1
- package/components/icon/index.d.ts +0 -5
- package/components/icon/public-api.d.ts +0 -2
- package/components/icon/src/icon.component.d.ts +0 -79
- package/components/input-number/index.d.ts +0 -5
- package/components/input-number/public-api.d.ts +0 -1
- package/components/input-text/index.d.ts +0 -5
- package/components/input-text/public-api.d.ts +0 -1
- package/components/modal/index.d.ts +0 -5
- package/components/modal/public-api.d.ts +0 -3
- package/components/modal/src/modal.component.d.ts +0 -118
- package/components/modal/src/modal.types.d.ts +0 -39
- package/components/modal/src/services/modal.service.d.ts +0 -31
- package/components/multiselect/index.d.ts +0 -5
- package/components/multiselect/public-api.d.ts +0 -2
- package/components/multiselect/src/multiselect.types.d.ts +0 -4
- package/components/pagination/index.d.ts +0 -5
- package/components/pagination/public-api.d.ts +0 -1
- package/components/panel/index.d.ts +0 -5
- package/components/panel/public-api.d.ts +0 -1
- package/components/radio-button/index.d.ts +0 -5
- package/components/radio-button/public-api.d.ts +0 -1
- package/components/select/index.d.ts +0 -5
- package/components/select/public-api.d.ts +0 -1
- package/components/table/index.d.ts +0 -5
- package/components/table/public-api.d.ts +0 -2
- package/components/table/src/table.interface.d.ts +0 -14
- package/components/tabs/index.d.ts +0 -5
- package/components/tabs/public-api.d.ts +0 -2
- package/components/tabs/src/tabs.interface.d.ts +0 -11
- package/components/tag/index.d.ts +0 -5
- package/components/tag/public-api.d.ts +0 -1
- package/components/textarea/index.d.ts +0 -5
- package/components/textarea/public-api.d.ts +0 -1
- package/components/toolbar/index.d.ts +0 -5
- package/components/toolbar/public-api.d.ts +0 -1
- package/components/tooltip/index.d.ts +0 -5
- package/components/tooltip/public-api.d.ts +0 -1
- package/components/tooltip/src/tooltip.component.d.ts +0 -35
- package/components/topbar/index.d.ts +0 -5
- package/components/topbar/public-api.d.ts +0 -2
- package/components/topbar/src/topbar.component.d.ts +0 -20
- package/components/topbar/src/topbar.types.d.ts +0 -13
- package/core/index.d.ts +0 -5
- package/core/public-api.d.ts +0 -1
- package/core/types/index.d.ts +0 -5
- package/core/types/public-api.d.ts +0 -10
- package/core/types/src/branding/branding.types.d.ts +0 -15
- package/core/types/src/branding/index.d.ts +0 -1
- package/core/types/src/breakpoints/breakpoints.d.ts +0 -10
- package/core/types/src/breakpoints/index.d.ts +0 -1
- package/core/types/src/grids/grid.enum.d.ts +0 -18
- package/core/types/src/grids/grid.model.d.ts +0 -10
- package/core/types/src/grids/grid.type.d.ts +0 -40
- package/core/types/src/grids/index.d.ts +0 -3
- package/core/types/src/illustration-config/illustration-config.model.d.ts +0 -4
- package/core/types/src/illustration-config/index.d.ts +0 -1
- package/core/types/src/interception/index.d.ts +0 -1
- package/core/types/src/interception/interception.types.d.ts +0 -21
- package/core/types/src/option/index.d.ts +0 -1
- package/core/types/src/option/option.model.d.ts +0 -8
- package/core/types/src/theme/theme.provider.d.ts +0 -1
- package/core/types/src/theme/tk-preset.d.ts +0 -1
- package/core/types/src/typography-styles/index.d.ts +0 -1
- package/core/types/src/typography-styles/typographyStyles.model.d.ts +0 -36
- package/core/types/src/validator-with-message/index.d.ts +0 -1
- package/core/types/src/validator-with-message/validator-with-message.model.d.ts +0 -5
- package/directives/gird-item/index.d.ts +0 -5
- package/directives/gird-item/public-api.d.ts +0 -1
- package/index.d.ts +0 -1
- package/utils/sanitizer-utils/index.d.ts +0 -5
- package/utils/sanitizer-utils/public-api.d.ts +0 -1
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { EffectRef, OnDestroy } from "@angular/core";
|
|
2
|
-
import { IconColors, IconStylesGeneral } from "../core/icon-catalog";
|
|
3
|
-
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
4
|
-
import { IconProp, SizeProp } from "@fortawesome/fontawesome-svg-core";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export type SizeMap = SizeProp | 'md';
|
|
7
|
-
export declare class IconComponent implements OnDestroy {
|
|
8
|
-
/**
|
|
9
|
-
* The name of the icon to display.
|
|
10
|
-
* This is a required field.
|
|
11
|
-
* It should match one of the icons in the *IconCatalog*.
|
|
12
|
-
*/
|
|
13
|
-
icon: import("@angular/core").ModelSignal<string>;
|
|
14
|
-
/**
|
|
15
|
-
* The style of the icon to display.
|
|
16
|
-
* This is an optional field.
|
|
17
|
-
* It defaults to 'regular'.
|
|
18
|
-
*/
|
|
19
|
-
styleIcon: import("@angular/core").ModelSignal<IconStylesGeneral>;
|
|
20
|
-
/**
|
|
21
|
-
* The color of the icon to display.
|
|
22
|
-
*/
|
|
23
|
-
color: import("@angular/core").ModelSignal<IconColors | undefined>;
|
|
24
|
-
/**
|
|
25
|
-
* The size of the icon to display.
|
|
26
|
-
*/
|
|
27
|
-
size: import("@angular/core").ModelSignal<SizeMap | undefined>;
|
|
28
|
-
/**
|
|
29
|
-
* Whether the icon is disabled.
|
|
30
|
-
*/
|
|
31
|
-
disabled: import("@angular/core").ModelSignal<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* The definition of the icon to display for Font Awesome.
|
|
34
|
-
*/
|
|
35
|
-
iconDefinition: import("@angular/core").WritableSignal<IconProp | null>;
|
|
36
|
-
/**
|
|
37
|
-
* The SVG content of the icon to display for custom icons.
|
|
38
|
-
*/
|
|
39
|
-
svgContent: import("@angular/core").WritableSignal<SafeHtml | null>;
|
|
40
|
-
/**
|
|
41
|
-
* The sanitizer service to use for sanitizing SVG content.
|
|
42
|
-
*/
|
|
43
|
-
sanitizer: DomSanitizer;
|
|
44
|
-
/**
|
|
45
|
-
* The size property to use for the icon.
|
|
46
|
-
*/
|
|
47
|
-
sizeProp: import("@angular/core").Signal<SizeProp | null>;
|
|
48
|
-
/**
|
|
49
|
-
* The effect reference for the icon.
|
|
50
|
-
*/
|
|
51
|
-
iconEffect: EffectRef;
|
|
52
|
-
constructor();
|
|
53
|
-
/**
|
|
54
|
-
* Destroy icon effect
|
|
55
|
-
*/
|
|
56
|
-
ngOnDestroy(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Gets the icon to display.
|
|
59
|
-
*/
|
|
60
|
-
getIcon(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Loads the icon from Font Awesome.
|
|
63
|
-
*/
|
|
64
|
-
loadIconFa(): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Gets the key style for the icon based on the current styleIcon model.
|
|
67
|
-
*
|
|
68
|
-
* @returns 'light' | 'regular' | 'solid' | null
|
|
69
|
-
*/
|
|
70
|
-
getKeyStyle(): 'light' | 'regular' | 'solid' | null;
|
|
71
|
-
/**
|
|
72
|
-
* Loads a custom icon from the IconCatalog.
|
|
73
|
-
* Sanitize the SVG content and apply the appropriate color.
|
|
74
|
-
* @returns void
|
|
75
|
-
*/
|
|
76
|
-
loadIconCustom(): void;
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "tk-icon", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "styleIcon": { "alias": "styleIcon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "icon": "iconChange"; "styleIcon": "styleIconChange"; "color": "colorChange"; "size": "sizeChange"; "disabled": "disabledChange"; }, never, never, true, never>;
|
|
79
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/input-number.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/input-text.component';
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export * from './src/pagination.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/panel.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/radio-button.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/select.component';
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export * from './src/tag.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/textarea.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/toolbar.component';
|
|
@@ -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,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
package/core/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './types';
|
package/core/types/index.d.ts
DELETED
|
@@ -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 +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 };
|