@tekus/design-system 4.0.3 → 5.0.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/assets/img/avatar.png +0 -0
- package/assets/img/pexels-jodaarba-4250980.jpg +0 -0
- package/assets/img/shadown.png +0 -0
- package/assets/img/tk-logo-compound-dark.svg +9 -0
- package/assets/img/tk-logo-minimal-dark.svg +16 -0
- package/assets/img/tk-logo-minimal-light.svg +16 -0
- package/assets/img/tk-logo-normal-dark.svg +12 -0
- package/assets/img/tk-logo-normal-light.svg +12 -0
- package/assets/styles/_index.scss +10 -0
- package/assets/styles/docs/_branding.doc.scss +69 -0
- package/assets/styles/docs/_grids.doc.scss +13 -0
- package/assets/styles/docs/_icons.doc.scss +102 -0
- package/assets/styles/docs/_illustrations.doc.scss +86 -0
- package/assets/styles/docs/_paginador.doc.scss +16 -0
- package/assets/styles/docs/_table-of-content.scss +22 -0
- package/components/{tk-typography → branding}/index.d.ts +1 -1
- package/components/branding/public-api.d.ts +1 -0
- package/components/branding/src/branding-register-logo.d.ts +22 -0
- package/components/branding/src/branding.component.d.ts +54 -0
- package/components/{tk-search-bar → button}/index.d.ts +1 -1
- package/components/button/public-api.d.ts +1 -0
- package/components/button/src/button.component.d.ts +99 -0
- package/components/{tk-dropdown-list → dropdown-list}/index.d.ts +1 -1
- package/components/dropdown-list/public-api.d.ts +1 -0
- package/components/{tk-dropdown-list/tk-dropdown-list.component.d.ts → dropdown-list/src/dropdown-list.component.d.ts} +7 -7
- package/components/fallback-view/index.d.ts +5 -0
- package/components/fallback-view/public-api.d.ts +1 -0
- package/components/fallback-view/src/fallback-view.component.d.ts +149 -0
- package/components/forms/form-autocomplete-field/index.d.ts +5 -0
- package/components/forms/form-autocomplete-field/public-api.d.ts +1 -0
- package/components/forms/{tk-form-autocomplete-field/tk-form-autocomplete-field.component.d.ts → form-autocomplete-field/src/form-autocomplete-field.component.d.ts} +4 -4
- package/components/forms/form-chips-autocomplete-field/index.d.ts +5 -0
- package/components/forms/form-chips-autocomplete-field/public-api.d.ts +1 -0
- package/components/forms/{tk-form-chips-autocomplete-field/tk-form-chips-autocomplete-field.component.d.ts → form-chips-autocomplete-field/src/form-chips-autocomplete-field.component.d.ts} +4 -4
- package/components/forms/form-input-field/index.d.ts +5 -0
- package/components/forms/form-input-field/public-api.d.ts +1 -0
- package/components/forms/{tk-form-input-field/tk-form-input-field.component.d.ts → form-input-field/src/form-input-field.component.d.ts} +4 -4
- package/components/forms/public-api.d.ts +3 -3
- package/components/grid-container/index.d.ts +5 -0
- package/components/grid-container/public-api.d.ts +1 -0
- package/components/grid-container/src/grid-container.component.d.ts +121 -0
- package/components/icon/core/icon-catalog.d.ts +76 -0
- package/components/icon/core/icons/ads.icons.d.ts +2 -0
- package/components/icon/core/icons/angle.icons.d.ts +2 -0
- package/components/icon/core/icons/arrow.icons.d.ts +2 -0
- package/components/icon/core/icons/bars.icons.d.ts +2 -0
- package/components/icon/core/icons/bolt.icons.d.ts +2 -0
- package/components/icon/core/icons/book.icons.d.ts +2 -0
- package/components/icon/core/icons/calendar.icons.d.ts +2 -0
- package/components/icon/core/icons/camera.icons.d.ts +2 -0
- package/components/icon/core/icons/chart.icons.d.ts +2 -0
- package/components/icon/core/icons/check.icons.d.ts +2 -0
- package/components/icon/core/icons/chevron.icons.d.ts +2 -0
- package/components/icon/core/icons/circle.icons.d.ts +2 -0
- package/components/icon/core/icons/clock.icons.d.ts +2 -0
- package/components/icon/core/icons/clone.icons.d.ts +2 -0
- package/components/icon/core/icons/download.icons.d.ts +2 -0
- package/components/icon/core/icons/ellipsis.icons.d.ts +2 -0
- package/components/icon/core/icons/eye.icons.d.ts +2 -0
- package/components/icon/core/icons/filter.icons.d.ts +2 -0
- package/components/icon/core/icons/folders.icons.d.ts +2 -0
- package/components/icon/core/icons/gears.icons.d.ts +2 -0
- package/components/icon/core/icons/hand.icons.d.ts +2 -0
- package/components/icon/core/icons/language.icons.d.ts +2 -0
- package/components/icon/core/icons/layer.icons.d.ts +2 -0
- package/components/icon/core/icons/link.icons.d.ts +2 -0
- package/components/icon/core/icons/list.icons.d.ts +2 -0
- package/components/icon/core/icons/location.icons.d.ts +2 -0
- package/components/icon/core/icons/lock.icons.d.ts +2 -0
- package/components/icon/core/icons/magnifying-glass.icons.d.ts +2 -0
- package/components/icon/core/icons/media.icons.d.ts +2 -0
- package/components/icon/core/icons/megaphone.icons.d.ts +2 -0
- package/components/icon/core/icons/money.icons.d.ts +2 -0
- package/components/icon/core/icons/pen.icons.d.ts +2 -0
- package/components/icon/core/icons/pencil.icons.d.ts +2 -0
- package/components/icon/core/icons/plug.icons.d.ts +2 -0
- package/components/icon/core/icons/plus.icons.d.ts +2 -0
- package/components/icon/core/icons/qr-code.icons.d.ts +2 -0
- package/components/icon/core/icons/screwdriver-wrench.icons.d.ts +2 -0
- package/components/icon/core/icons/shuffle.icons.d.ts +2 -0
- package/components/icon/core/icons/square.icons.d.ts +2 -0
- package/components/icon/core/icons/tag.icons.d.ts +2 -0
- package/components/icon/core/icons/thumbs.icons.d.ts +2 -0
- package/components/icon/core/icons/trash.icons.d.ts +2 -0
- package/components/icon/core/icons/triangle.icons.d.ts +2 -0
- package/components/icon/core/icons/user.icons.d.ts +2 -0
- package/components/icon/core/icons/xmark.icons.d.ts +2 -0
- package/components/icon/core/svg-icons/ads-icon.svg.d.ts +2 -0
- package/components/icon/core/svg-icons/index.d.ts +1 -0
- package/components/icon/index.d.ts +5 -0
- package/components/icon/public-api.d.ts +2 -0
- package/components/icon/src/icon.component.d.ts +79 -0
- package/components/illustration/assets/illustrations/tk-catalogs.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-categories.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-confirmation-action.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-create-an-account.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-custom-design.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-delete.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-download-AKF.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-error.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-graphics.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-items.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-kiosk.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-list.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-locations.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-login.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-multimedia.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-no-connection.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-no-found.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-order.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-playlist.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-screens.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-success.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-support.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-technical-failure.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-tip.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-upload.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-void.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-warning.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-welcome.svg.d.ts +2 -0
- package/components/illustration/assets/illustrations/tk-without-catalogs.svg.d.ts +2 -0
- package/components/illustration/illustrations.registry.d.ts +5 -0
- package/components/illustration/index.d.ts +5 -0
- package/components/illustration/public-api.d.ts +1 -0
- package/components/illustration/src/illustration.component.d.ts +117 -0
- package/components/search-bar/index.d.ts +5 -0
- package/components/search-bar/public-api.d.ts +1 -0
- package/components/{tk-search-bar/tk-search-bar.component.d.ts → search-bar/src/search-bar.component.d.ts} +3 -3
- package/components/typography/index.d.ts +5 -0
- package/components/typography/public-api.d.ts +1 -0
- package/components/typography/src/typography.component.d.ts +10 -0
- package/core/index.d.ts +5 -0
- package/core/public-api.d.ts +1 -0
- package/core/types/index.d.ts +5 -0
- package/core/types/public-api.d.ts +9 -0
- package/core/types/src/branding/branding.types.d.ts +15 -0
- package/core/types/src/branding/index.d.ts +1 -0
- package/core/types/src/breakpoints/breakpoints.d.ts +10 -0
- package/core/types/src/breakpoints/index.d.ts +1 -0
- package/core/types/src/grids/grid.enum.d.ts +18 -0
- package/core/types/src/grids/grid.model.d.ts +10 -0
- package/core/types/src/grids/grid.type.d.ts +40 -0
- package/core/types/src/grids/index.d.ts +3 -0
- package/core/types/src/illustration-config/illustration-config.model.d.ts +4 -0
- package/core/types/src/illustration-config/index.d.ts +1 -0
- package/core/types/src/option/index.d.ts +1 -0
- package/core/types/src/option/option.model.d.ts +8 -0
- package/core/types/src/theme/theme.provider.d.ts +1 -0
- package/core/types/src/theme/tk-preset.d.ts +1 -0
- package/core/types/src/typography-styles/index.d.ts +1 -0
- package/core/types/src/validator-with-message/index.d.ts +1 -0
- package/directives/gird-item/index.d.ts +5 -0
- package/directives/gird-item/public-api.d.ts +1 -0
- package/directives/gird-item/src/grid-item.directive.d.ts +42 -0
- package/fesm2022/tekus-design-system-components-branding.mjs +93 -0
- package/fesm2022/tekus-design-system-components-branding.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-button.mjs +129 -0
- package/fesm2022/tekus-design-system-components-button.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-dropdown-list.mjs +147 -0
- package/fesm2022/tekus-design-system-components-dropdown-list.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-fallback-view.mjs +187 -0
- package/fesm2022/tekus-design-system-components-fallback-view.mjs.map +1 -0
- package/fesm2022/{tekus-design-system-components-forms-tk-form-autocomplete-field.mjs → tekus-design-system-components-forms-form-autocomplete-field.mjs} +9 -11
- package/fesm2022/tekus-design-system-components-forms-form-autocomplete-field.mjs.map +1 -0
- package/fesm2022/{tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs → tekus-design-system-components-forms-form-chips-autocomplete-field.mjs} +8 -9
- package/fesm2022/tekus-design-system-components-forms-form-chips-autocomplete-field.mjs.map +1 -0
- package/fesm2022/{tekus-design-system-components-forms-tk-form-input-field.mjs → tekus-design-system-components-forms-form-input-field.mjs} +8 -9
- package/fesm2022/tekus-design-system-components-forms-form-input-field.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-forms.mjs +212 -214
- package/fesm2022/tekus-design-system-components-forms.mjs.map +1 -1
- package/fesm2022/tekus-design-system-components-grid-container.mjs +193 -0
- package/fesm2022/tekus-design-system-components-grid-container.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-icon.mjs +1206 -0
- package/fesm2022/tekus-design-system-components-icon.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-illustration.mjs +3893 -0
- package/fesm2022/tekus-design-system-components-illustration.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-search-bar.mjs +56 -0
- package/fesm2022/tekus-design-system-components-search-bar.mjs.map +1 -0
- package/fesm2022/tekus-design-system-components-typography.mjs +36 -0
- package/fesm2022/tekus-design-system-components-typography.mjs.map +1 -0
- package/fesm2022/tekus-design-system-core-types.mjs +307 -0
- package/fesm2022/tekus-design-system-core-types.mjs.map +1 -0
- package/fesm2022/tekus-design-system-core.mjs +307 -0
- package/fesm2022/tekus-design-system-core.mjs.map +1 -0
- package/fesm2022/tekus-design-system-directives-gird-item.mjs +95 -0
- package/fesm2022/tekus-design-system-directives-gird-item.mjs.map +1 -0
- package/fesm2022/tekus-design-system-services-design-tokens.mjs +47 -0
- package/fesm2022/tekus-design-system-services-design-tokens.mjs.map +1 -0
- package/fesm2022/tekus-design-system-services-typography.mjs +3 -3
- package/fesm2022/tekus-design-system-services-typography.mjs.map +1 -1
- package/fesm2022/tekus-design-system-utils-sanitizer-utils.mjs +53 -0
- package/fesm2022/tekus-design-system-utils-sanitizer-utils.mjs.map +1 -0
- package/package.json +65 -39
- package/services/design-tokens/index.d.ts +5 -0
- package/services/design-tokens/public-api.d.ts +1 -0
- package/services/design-tokens/src/design-tokens.service.d.ts +10 -0
- package/services/typography/public-api.d.ts +1 -1
- package/services/typography/{typography.service.d.ts → src/typography.service.d.ts} +1 -1
- package/tokens/blur/_blur.scss +11 -0
- package/tokens/colors/_colors.scss +97 -0
- package/tokens/index.scss +6 -0
- package/tokens/shadow/_shadow.scss +10 -0
- package/tokens/shapes/_shapes.scss +9 -0
- package/tokens/spacing/_spacing.scss +25 -0
- package/tokens/typography/_typography.scss +6 -0
- package/tokens/typography/font-size/_font-size.scss +16 -0
- package/tokens/typography/font-weight/_font-weight.scss +14 -0
- package/tokens/typography/letter-spacing/_letter-spacing.scss +12 -0
- package/tokens/typography/line-height/_line-height.scss +16 -0
- package/tokens/typography/variants/_variants.scss +211 -0
- package/utils/sanitizer-utils/index.d.ts +5 -0
- package/utils/sanitizer-utils/public-api.d.ts +1 -0
- package/utils/sanitizer-utils/src/sanitizer-utils.d.ts +20 -0
- package/components/forms/tk-form-autocomplete-field/index.d.ts +0 -5
- package/components/forms/tk-form-autocomplete-field/models/option.model.d.ts +0 -4
- package/components/forms/tk-form-autocomplete-field/public-api.d.ts +0 -1
- package/components/forms/tk-form-chips-autocomplete-field/index.d.ts +0 -5
- package/components/forms/tk-form-chips-autocomplete-field/models/option.model.d.ts +0 -4
- package/components/forms/tk-form-chips-autocomplete-field/public-api.d.ts +0 -1
- package/components/forms/tk-form-input-field/index.d.ts +0 -5
- package/components/forms/tk-form-input-field/public-api.d.ts +0 -1
- package/components/tk-dropdown-list/models/dropdown-list-item.model.d.ts +0 -4
- package/components/tk-dropdown-list/public-api.d.ts +0 -1
- package/components/tk-search-bar/public-api.d.ts +0 -1
- package/components/tk-typography/public-api.d.ts +0 -1
- package/components/tk-typography/tk-typography.component.d.ts +0 -10
- package/esm2022/components/forms/public-api.mjs +0 -4
- package/esm2022/components/forms/tekus-design-system-components-forms.mjs +0 -5
- package/esm2022/components/forms/tk-form-autocomplete-field/models/option.model.mjs +0 -2
- package/esm2022/components/forms/tk-form-autocomplete-field/public-api.mjs +0 -2
- package/esm2022/components/forms/tk-form-autocomplete-field/tekus-design-system-components-forms-tk-form-autocomplete-field.mjs +0 -5
- package/esm2022/components/forms/tk-form-autocomplete-field/tk-form-autocomplete-field.component.mjs +0 -263
- package/esm2022/components/forms/tk-form-chips-autocomplete-field/models/option.model.mjs +0 -2
- package/esm2022/components/forms/tk-form-chips-autocomplete-field/public-api.mjs +0 -2
- package/esm2022/components/forms/tk-form-chips-autocomplete-field/tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs +0 -5
- package/esm2022/components/forms/tk-form-chips-autocomplete-field/tk-form-chips-autocomplete-field.component.mjs +0 -187
- package/esm2022/components/forms/tk-form-input-field/models/validator-with-message.model.mjs +0 -2
- package/esm2022/components/forms/tk-form-input-field/public-api.mjs +0 -2
- package/esm2022/components/forms/tk-form-input-field/tekus-design-system-components-forms-tk-form-input-field.mjs +0 -5
- package/esm2022/components/forms/tk-form-input-field/tk-form-input-field.component.mjs +0 -206
- package/esm2022/components/tk-dropdown-list/models/dropdown-list-item.model.mjs +0 -2
- package/esm2022/components/tk-dropdown-list/public-api.mjs +0 -2
- package/esm2022/components/tk-dropdown-list/tekus-design-system-components-tk-dropdown-list.mjs +0 -5
- package/esm2022/components/tk-dropdown-list/tk-dropdown-list.component.mjs +0 -137
- package/esm2022/components/tk-search-bar/public-api.mjs +0 -2
- package/esm2022/components/tk-search-bar/tekus-design-system-components-tk-search-bar.mjs +0 -5
- package/esm2022/components/tk-search-bar/tk-search-bar.component.mjs +0 -49
- package/esm2022/components/tk-typography/public-api.mjs +0 -2
- package/esm2022/components/tk-typography/tekus-design-system-components-tk-typography.mjs +0 -5
- package/esm2022/components/tk-typography/tk-typography.component.mjs +0 -29
- package/esm2022/index.mjs +0 -2
- package/esm2022/services/typography/models/typographyStyles.model.mjs +0 -2
- package/esm2022/services/typography/public-api.mjs +0 -2
- package/esm2022/services/typography/tekus-design-system-services-typography.mjs +0 -5
- package/esm2022/services/typography/typography.service.mjs +0 -84
- package/esm2022/tekus-design-system.mjs +0 -5
- package/fesm2022/tekus-design-system-components-forms-tk-form-autocomplete-field.mjs.map +0 -1
- package/fesm2022/tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs.map +0 -1
- package/fesm2022/tekus-design-system-components-forms-tk-form-input-field.mjs.map +0 -1
- package/fesm2022/tekus-design-system-components-tk-dropdown-list.mjs +0 -144
- package/fesm2022/tekus-design-system-components-tk-dropdown-list.mjs.map +0 -1
- package/fesm2022/tekus-design-system-components-tk-search-bar.mjs +0 -56
- package/fesm2022/tekus-design-system-components-tk-search-bar.mjs.map +0 -1
- package/fesm2022/tekus-design-system-components-tk-typography.mjs +0 -36
- package/fesm2022/tekus-design-system-components-tk-typography.mjs.map +0 -1
- /package/{services/typography/models → core/types/src/typography-styles}/typographyStyles.model.d.ts +0 -0
- /package/{components/forms/tk-form-input-field/models → core/types/src/validator-with-message}/validator-with-message.model.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DropdownListItem } from '
|
|
1
|
+
import { DropdownListItem } from '@tekus/design-system/core/types';
|
|
2
2
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class DropdownListComponent implements OnInit {
|
|
5
5
|
/**
|
|
6
6
|
* Search field input value
|
|
7
7
|
* @ignore
|
|
@@ -19,7 +19,7 @@ export declare class TkDropdownListComponent implements OnInit {
|
|
|
19
19
|
* Filtered data
|
|
20
20
|
* @ignore
|
|
21
21
|
*/
|
|
22
|
-
filteredData: DropdownListItem[];
|
|
22
|
+
filteredData: DropdownListItem<string>[];
|
|
23
23
|
/**
|
|
24
24
|
* Is dropdown list visible
|
|
25
25
|
* @ignore
|
|
@@ -48,7 +48,7 @@ export declare class TkDropdownListComponent implements OnInit {
|
|
|
48
48
|
/**
|
|
49
49
|
* Data for dropdown list
|
|
50
50
|
*/
|
|
51
|
-
data: DropdownListItem[];
|
|
51
|
+
data: DropdownListItem<string>[];
|
|
52
52
|
/**
|
|
53
53
|
* Dropdown list hint label
|
|
54
54
|
* @default ''
|
|
@@ -102,12 +102,12 @@ export declare class TkDropdownListComponent implements OnInit {
|
|
|
102
102
|
* @ignore
|
|
103
103
|
* Component method to handle click on dropdown list item
|
|
104
104
|
*/
|
|
105
|
-
onClickListItem(item: DropdownListItem): void;
|
|
105
|
+
onClickListItem(item: DropdownListItem<string | number>): void;
|
|
106
106
|
/**
|
|
107
107
|
* @ignore
|
|
108
108
|
* Component method to filter data
|
|
109
109
|
*/
|
|
110
110
|
filter(): void;
|
|
111
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownListComponent, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownListComponent, "tk-dropdown-list", never, { "data": { "alias": "data"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; "searchFieldPlaceHolder": { "alias": "searchFieldPlaceHolder"; "required": false; }; "width": { "alias": "width"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
|
|
113
113
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/fallback-view.component';
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type FallbackViewType = 'content' | 'section';
|
|
4
|
+
/**
|
|
5
|
+
* @component FallbackViewComponent
|
|
6
|
+
* @description
|
|
7
|
+
* A reusable component for displaying fallback or empty states such as
|
|
8
|
+
* “no results found”, “error loading data”, or “content not available”.
|
|
9
|
+
* It provides a consistent structure with support for an image, title,
|
|
10
|
+
* message, and optional action buttons.
|
|
11
|
+
*
|
|
12
|
+
* The component can be used in two ways:
|
|
13
|
+
* 1. **Via Inputs:** Pass data directly through component inputs (`imageSrc`, `title`, `message`, etc.).
|
|
14
|
+
* 2. **Via Content Projection (`ng-content`):** Use your own HTML structure for full customization.
|
|
15
|
+
*
|
|
16
|
+
* @usage
|
|
17
|
+
* ### Basic Usage (via Inputs)
|
|
18
|
+
* ```html
|
|
19
|
+
* <tk-fallback-view
|
|
20
|
+
* imageSrc="assets/img/empty-state.svg"
|
|
21
|
+
* title="No Items Found"
|
|
22
|
+
* message="There are currently no items to display. Try adding one."
|
|
23
|
+
* buttonLabel="Add New Item"
|
|
24
|
+
* linkLabel="Learn More"
|
|
25
|
+
* (buttonAction)="handleAddNewItem()"
|
|
26
|
+
* (linkAction)="handleLearnMore()">
|
|
27
|
+
* </tk-fallback-view>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ### Compact Variant (Section type)
|
|
31
|
+
* ```html
|
|
32
|
+
* <tk-fallback-view
|
|
33
|
+
* [type]="'small'"
|
|
34
|
+
* imageSrc="assets/img/check.svg"
|
|
35
|
+
* message="Saved successfully">
|
|
36
|
+
* </tk-fallback-view>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ### Advanced Usage (via ng-content)
|
|
40
|
+
* ```html
|
|
41
|
+
* <tk-fallback-view [type]="'content'">
|
|
42
|
+
* <img image src="assets/img/empty-state.svg" alt="Tekus logo">
|
|
43
|
+
* <h2 title>Custom Title</h2>
|
|
44
|
+
* <p message>
|
|
45
|
+
* This is a <b>custom message</b> with <strong>HTML content</strong>.
|
|
46
|
+
* </p>
|
|
47
|
+
* <div actions>
|
|
48
|
+
* <tk-button
|
|
49
|
+
* label="Primary Action"
|
|
50
|
+
* severity="primary"
|
|
51
|
+
* (click)="onPrimaryAction()">
|
|
52
|
+
* </tk-button>
|
|
53
|
+
* <tk-button
|
|
54
|
+
* label="Secondary Action"
|
|
55
|
+
* [link]="true"
|
|
56
|
+
* (click)="onSecondaryAction()">
|
|
57
|
+
* </tk-button>
|
|
58
|
+
* </div>
|
|
59
|
+
* </tk-fallback-view>
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare class FallbackViewComponent {
|
|
63
|
+
/**
|
|
64
|
+
* @property {FallbackViewType} type
|
|
65
|
+
* @description
|
|
66
|
+
* Controls the overall type and spacing of the component.
|
|
67
|
+
* - `'content'`: Standard size.
|
|
68
|
+
* - `'section'`: A more compact version.
|
|
69
|
+
*
|
|
70
|
+
* @default `'default'`
|
|
71
|
+
*/
|
|
72
|
+
type: FallbackViewType;
|
|
73
|
+
/**
|
|
74
|
+
* @property {string} imageSrc
|
|
75
|
+
* @description
|
|
76
|
+
* The URL for the illustrative image to be displayed at the top.
|
|
77
|
+
*
|
|
78
|
+
* @default `''`
|
|
79
|
+
*/
|
|
80
|
+
imageSrc: string;
|
|
81
|
+
/**
|
|
82
|
+
* @property {string} illustrationAlt
|
|
83
|
+
* Descriptive alternative text for the image. Improves accessibility.
|
|
84
|
+
*/
|
|
85
|
+
illustrationAlt: string;
|
|
86
|
+
/**
|
|
87
|
+
* @property {string} title
|
|
88
|
+
* @description
|
|
89
|
+
* The main title or heading of the fallback view.
|
|
90
|
+
*
|
|
91
|
+
* @default `''`
|
|
92
|
+
*/
|
|
93
|
+
title: string;
|
|
94
|
+
/**
|
|
95
|
+
* @property {string} message
|
|
96
|
+
* @description
|
|
97
|
+
* The descriptive text or message displayed below the title.
|
|
98
|
+
*
|
|
99
|
+
* @default `''`
|
|
100
|
+
*/
|
|
101
|
+
message: string;
|
|
102
|
+
/**
|
|
103
|
+
* @property {string} buttonLabel
|
|
104
|
+
* @description
|
|
105
|
+
* Text for the primary action button. If left empty, the button is not rendered.
|
|
106
|
+
*
|
|
107
|
+
* @default `''`
|
|
108
|
+
*/
|
|
109
|
+
buttonLabel: string;
|
|
110
|
+
/**
|
|
111
|
+
* @property {string} linkLabel
|
|
112
|
+
* @description
|
|
113
|
+
* Text for the secondary action, which is styled as a link.
|
|
114
|
+
* If left empty, the link is not rendered.
|
|
115
|
+
*
|
|
116
|
+
* @default `''`
|
|
117
|
+
*/
|
|
118
|
+
linkLabel: string;
|
|
119
|
+
/**
|
|
120
|
+
* @event buttonAction
|
|
121
|
+
* @description
|
|
122
|
+
* Emits when the main action button is clicked. Listen to this event
|
|
123
|
+
* to handle the primary call-to-action.
|
|
124
|
+
*/
|
|
125
|
+
buttonAction: EventEmitter<void>;
|
|
126
|
+
/**
|
|
127
|
+
* @event linkAction
|
|
128
|
+
* @description
|
|
129
|
+
* Emits when the link-styled button is clicked. Use for secondary
|
|
130
|
+
* or alternative actions.
|
|
131
|
+
*/
|
|
132
|
+
linkAction: EventEmitter<void>;
|
|
133
|
+
/**
|
|
134
|
+
* @method onButtonActionClick
|
|
135
|
+
* @description
|
|
136
|
+
* Internal handler that emits the `primaryAction` event when the
|
|
137
|
+
* main button is clicked.
|
|
138
|
+
*/
|
|
139
|
+
onButtonActionClick(): void;
|
|
140
|
+
/**
|
|
141
|
+
* @method onLinkActionClick
|
|
142
|
+
* @description
|
|
143
|
+
* Internal handler that emits the `linkAction` event when the
|
|
144
|
+
* link button is clicked.
|
|
145
|
+
*/
|
|
146
|
+
onLinkActionClick(): void;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FallbackViewComponent, never>;
|
|
148
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FallbackViewComponent, "tk-fallback-view", never, { "type": { "alias": "type"; "required": false; }; "imageSrc": { "alias": "imageSrc"; "required": false; }; "illustrationAlt": { "alias": "illustrationAlt"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "linkLabel": { "alias": "linkLabel"; "required": false; }; }, { "buttonAction": "buttonAction"; "linkAction": "linkAction"; }, never, ["[image]", "[title]", "[message]", "[actions]"], true, never>;
|
|
149
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/form-autocomplete-field.component';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, OnChanges, EventEmitter, AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
3
3
|
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
4
|
-
import { Option } from '
|
|
4
|
+
import { Option } from '@tekus/design-system/core/types';
|
|
5
5
|
import { ThemePalette } from '@angular/material/core';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { FormControl } from '@angular/forms';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class FormAutocompleteFieldComponent implements OnInit, OnDestroy, AfterViewInit, OnChanges {
|
|
10
10
|
/**
|
|
11
11
|
* Input field control
|
|
12
12
|
* @ignore
|
|
@@ -168,6 +168,6 @@ export declare class TkFormAutocompleteFieldComponent implements OnInit, OnDestr
|
|
|
168
168
|
* @ignore
|
|
169
169
|
*/
|
|
170
170
|
ngOnDestroy(): void;
|
|
171
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
172
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAutocompleteFieldComponent, never>;
|
|
172
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormAutocompleteFieldComponent, "tk-form-autocomplete-field", never, { "fieldWidth": { "alias": "fieldWidth"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "autoSelectActiveOption": { "alias": "autoSelectActiveOption"; "required": false; }; "type": { "alias": "type"; "required": false; }; "required": { "alias": "required"; "required": false; }; "fieldTitle": { "alias": "fieldTitle"; "required": false; }; "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "optionSelected": "optionSelected"; "inputStatus": "inputStatus"; "bottomReached": "bottomReached"; }, never, never, true, never>;
|
|
173
173
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/form-chips-autocomplete-field.component';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OnInit, OnChanges, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
3
3
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
4
|
-
import { Option } from '
|
|
4
|
+
import { Option } from '@tekus/design-system/core/types';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { ThemePalette } from '@angular/material/core';
|
|
7
7
|
import { FormControl } from '@angular/forms';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class FormChipsAutocompleteFieldComponent implements OnInit, OnChanges {
|
|
10
10
|
/**
|
|
11
11
|
* Input field label
|
|
12
12
|
*/
|
|
@@ -119,6 +119,6 @@ export declare class TkFormChipsAutocompleteFieldComponent implements OnInit, On
|
|
|
119
119
|
* @ignore
|
|
120
120
|
*/
|
|
121
121
|
private _filter;
|
|
122
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
123
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormChipsAutocompleteFieldComponent, never>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormChipsAutocompleteFieldComponent, "tk-form-chips-autocomplete-field", never, { "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "fieldTitle": { "alias": "fieldTitle"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "fieldWidth": { "alias": "fieldWidth"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "allKeywords": { "alias": "allKeywords"; "required": false; }; }, { "inputStatus": "inputStatus"; "selectedKeywords": "selectedKeywords"; }, never, never, true, never>;
|
|
124
124
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/form-input-field.component';
|
|
@@ -2,9 +2,9 @@ import { OnInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { FloatLabelType, SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
4
4
|
import { ThemePalette } from '@angular/material/core';
|
|
5
|
-
import { ValidatorWithMessage } from '
|
|
5
|
+
import { ValidatorWithMessage } from '@tekus/design-system/core/types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class FormInputFieldComponent implements OnInit, OnChanges {
|
|
8
8
|
/**
|
|
9
9
|
* Optional input field width
|
|
10
10
|
* @default 100%
|
|
@@ -132,6 +132,6 @@ export declare class TkFormInputFieldComponent implements OnInit, OnChanges {
|
|
|
132
132
|
* @ignore
|
|
133
133
|
*/
|
|
134
134
|
updateErrorMessage(): void;
|
|
135
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
136
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputFieldComponent, never>;
|
|
136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputFieldComponent, "tk-form-input-field", never, { "fieldWidth": { "alias": "fieldWidth"; "required": false; }; "fieldTitle": { "alias": "fieldTitle"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "type": { "alias": "type"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "inputPrefix": { "alias": "inputPrefix"; "required": false; }; "inputSuffix": { "alias": "inputSuffix"; "required": false; }; "validatorsWithMessages": { "alias": "validatorsWithMessages"; "required": false; }; "asyncValidatorsWithMessages": { "alias": "asyncValidatorsWithMessages"; "required": false; }; }, { "inputStatus": "inputStatus"; }, never, never, true, never>;
|
|
137
137
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
1
|
+
export * from './form-autocomplete-field';
|
|
2
|
+
export * from './form-input-field';
|
|
3
|
+
export * from './form-chips-autocomplete-field';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/grid-container.component';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { AutoFillGridProps, ComposeSize, ContainerType, FixedGridProps, GapGutter, GridColumns, GutterType } from '@tekus/design-system/core/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* A responsive CSS Grid container that exposes typed, two-way models to control
|
|
5
|
+
* column count, track size, inter-item gutter, and container padding.
|
|
6
|
+
*
|
|
7
|
+
* Behavior:
|
|
8
|
+
* - columns: GridColumns (default 12). Numeric values are capped per Breakpoints
|
|
9
|
+
* (2/3/4/8 for mobileSmall/mobileLarge/tabletVertical/tabletHorizontal). No cap when size is minmax().
|
|
10
|
+
* - size: ComposeSize (default '1fr'). Required to be minmax() when columns is 'auto-fill', otherwise an error is thrown.
|
|
11
|
+
* - gutter: Gutter (default 'normal'), mapped to GapGutter for host gap.
|
|
12
|
+
* - containerType: ContainerType (default 'medium'), mapped to PaddingGridContainer for host padding.
|
|
13
|
+
*
|
|
14
|
+
* Host bindings:
|
|
15
|
+
* - style.grid-template-columns via repeat(...) from computed columns/size.
|
|
16
|
+
* - style.gap via GapGutter.
|
|
17
|
+
* - style.padding via PaddingGridContainer.
|
|
18
|
+
*
|
|
19
|
+
* Intended to wrap GridItemDirective children. Public type is compatible with FixedGridProps | AutoFillGridProps.
|
|
20
|
+
* @selector tk-grid-container
|
|
21
|
+
*/
|
|
22
|
+
export declare class GridContainerComponent {
|
|
23
|
+
/**
|
|
24
|
+
* Two-way bound model defining the number of columns in the grid.
|
|
25
|
+
*
|
|
26
|
+
* The value is capped based on the current screen breakpoint. If the `size` model
|
|
27
|
+
* is a `minmax()` function, the column cap is disabled.
|
|
28
|
+
*
|
|
29
|
+
* @default 12
|
|
30
|
+
* @see GridColumns
|
|
31
|
+
*/
|
|
32
|
+
columns: import("@angular/core").ModelSignal<GridColumns>;
|
|
33
|
+
/**
|
|
34
|
+
* Two-way bound model defining the spacing between grid items.
|
|
35
|
+
*
|
|
36
|
+
* The value is mapped to a CSS `gap` property based on the `Gutter` type.
|
|
37
|
+
*
|
|
38
|
+
* @default Gutter.normal
|
|
39
|
+
* @see Gutter
|
|
40
|
+
* @see GutterType
|
|
41
|
+
*/
|
|
42
|
+
gutter: import("@angular/core").ModelSignal<GutterType>;
|
|
43
|
+
/**
|
|
44
|
+
* Two-way bound model defining the grid track size.
|
|
45
|
+
*
|
|
46
|
+
* Accepts any ComposeSize value (e.g., '1fr', fixed lengths, or minmax()) and
|
|
47
|
+
* drives the computed grid template for the container.
|
|
48
|
+
*
|
|
49
|
+
* @default '1fr'
|
|
50
|
+
* @see ComposeSize
|
|
51
|
+
*/
|
|
52
|
+
size: import("@angular/core").ModelSignal<ComposeSize>;
|
|
53
|
+
/**
|
|
54
|
+
* Two-way bound model defining the internal spacing of the grid container.
|
|
55
|
+
*
|
|
56
|
+
* The value is mapped to a CSS `padding` property based on the `PaddingGridContainer` type.
|
|
57
|
+
*
|
|
58
|
+
* @default 'medium'
|
|
59
|
+
* @see ContainerType
|
|
60
|
+
*/
|
|
61
|
+
containerType: import("@angular/core").ModelSignal<ContainerType>;
|
|
62
|
+
/**
|
|
63
|
+
* A private static RegExp to validate strings that match the `minmax()` function.
|
|
64
|
+
*/
|
|
65
|
+
readonly MINMAX_RE: RegExp;
|
|
66
|
+
/**
|
|
67
|
+
* A private service injection to observe screen breakpoint changes.
|
|
68
|
+
*/
|
|
69
|
+
private readonly breakpointObserver;
|
|
70
|
+
/**
|
|
71
|
+
* A signal derived from `breakpointObserver` to reactively track changes
|
|
72
|
+
* across all defined breakpoints.
|
|
73
|
+
*/
|
|
74
|
+
screenChanges: import("@angular/core").Signal<import("@angular/cdk/layout").BreakpointState | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* A computed signal that determines the final number of columns for the grid.
|
|
77
|
+
*
|
|
78
|
+
* It caps the `columns` model value based on the current screen breakpoint,
|
|
79
|
+
* unless the `size` model is a `minmax()` function.
|
|
80
|
+
*/
|
|
81
|
+
readonly finalColumns: import("@angular/core").Signal<GridColumns>;
|
|
82
|
+
/**
|
|
83
|
+
* Host binding that maps the `gutter` model to the host element's `style.gap` property.
|
|
84
|
+
* @returns The CSS gap value from the `GapGutter` type.
|
|
85
|
+
*/
|
|
86
|
+
get hostGap(): GapGutter;
|
|
87
|
+
/**
|
|
88
|
+
* Host binding that sets the `style.grid-template-columns` property based on
|
|
89
|
+
* the computed column count and track size.
|
|
90
|
+
* @returns The computed CSS value for `grid-template-columns`.
|
|
91
|
+
*/
|
|
92
|
+
get gridColumns(): string;
|
|
93
|
+
/**
|
|
94
|
+
* Host binding that sets the `style.padding` property based on the `containerType` model.
|
|
95
|
+
* @returns The CSS padding value from the `PaddingGridContainer` type.
|
|
96
|
+
*/
|
|
97
|
+
get containerPadding(): string;
|
|
98
|
+
/**
|
|
99
|
+
* Computes the final `grid-template-columns` string for the host element.
|
|
100
|
+
*
|
|
101
|
+
* It handles both fixed and `auto-fill` column types and validates that the `size`
|
|
102
|
+
* model is a `minmax()` function when `columns` is set to `'auto-fill'`.
|
|
103
|
+
* @returns The CSS value for the `grid-template-columns` property.
|
|
104
|
+
*/
|
|
105
|
+
computeGridTemplateColumns(): string;
|
|
106
|
+
/**
|
|
107
|
+
* A private helper method to check if a given value is a valid `minmax()` function string.
|
|
108
|
+
* @param value The value to check.
|
|
109
|
+
* @returns `true` if the value is a valid `minmax()` string, `false` otherwise.
|
|
110
|
+
*/
|
|
111
|
+
private isMinMax;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridContainerComponent, never>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridContainerComponent, "tk-grid-container", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "gutter": { "alias": "gutter"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "containerType": { "alias": "containerType"; "required": false; "isSignal": true; }; }, { "columns": "columnsChange"; "gutter": "gutterChange"; "size": "sizeChange"; "containerType": "containerTypeChange"; }, never, ["*"], true, never>;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* A public type to represent an instance of the `GridContainerComponent` class,
|
|
117
|
+
* combined with its public input properties.
|
|
118
|
+
*
|
|
119
|
+
* This allows for better type-checking when the component is used in a template.
|
|
120
|
+
*/
|
|
121
|
+
export type GridComponent = new () => GridContainerComponent & (FixedGridProps | AutoFillGridProps);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { IconDefinition } from "@fortawesome/angular-fontawesome";
|
|
2
|
+
/**
|
|
3
|
+
* IconSource is used to indicate the origin of an icon in the IconCatalog.
|
|
4
|
+
* It can either be 'Font awesome' for icons sourced from the Font Awesome library,
|
|
5
|
+
* or 'Custom' for user-defined icons.
|
|
6
|
+
*/
|
|
7
|
+
export type IconSource = 'Font awesome' | 'Custom';
|
|
8
|
+
/**
|
|
9
|
+
* IconRegister is used to define the structure of the icon registration object.
|
|
10
|
+
* It maps icon names to their registration details.
|
|
11
|
+
*/
|
|
12
|
+
export interface IconRegister {
|
|
13
|
+
[iconName: string]: IconRegisterDetail;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* IconRegisterDetail is used to define the details of each icon in the IconCatalog.
|
|
17
|
+
* It includes the icon's name, tags, source, and styles.
|
|
18
|
+
*/
|
|
19
|
+
export interface IconRegisterDetail {
|
|
20
|
+
name: string;
|
|
21
|
+
tags: string[];
|
|
22
|
+
source: IconSource;
|
|
23
|
+
styles?: IconStyles;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* IconStyles is used to define the available styles for each icon in the IconCatalog.
|
|
27
|
+
* It allows for lazy loading of icon styles.
|
|
28
|
+
*/
|
|
29
|
+
type IconType = IconDefinition | string;
|
|
30
|
+
export interface IconStyles {
|
|
31
|
+
light?: Promise<IconType>;
|
|
32
|
+
regular?: Promise<IconType> | IconType;
|
|
33
|
+
solid?: Promise<IconType>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* IconStylesLight is used to define the available light styles for each icon in the IconCatalog.
|
|
37
|
+
* It includes styles such as 'light', 'fal', 'fa-light', and 'tkl'.
|
|
38
|
+
*/
|
|
39
|
+
export type IconStylesLight = 'light' | 'fal' | 'fa-light' | 'tkl';
|
|
40
|
+
/**
|
|
41
|
+
* IconStylesSolid is used to define the available solid styles for each icon in the IconCatalog.
|
|
42
|
+
* It includes styles such as 'solid', 'fas', 'fa-solid', and 'tks'.
|
|
43
|
+
*/
|
|
44
|
+
export type IconStylesSolid = 'solid' | 'fas' | 'fa-solid' | 'tks';
|
|
45
|
+
/**
|
|
46
|
+
* IconStylesRegular is used to define the available regular styles for each icon in the IconCatalog.
|
|
47
|
+
* It includes styles such as 'regular', 'far', 'fa-regular', 'fa', 'fa-classic', and 'tkr'.
|
|
48
|
+
*/
|
|
49
|
+
export type IconStylesRegular = 'regular' | 'far' | 'fa-regular' | 'fa' | 'fa-classic' | 'tkr';
|
|
50
|
+
/**
|
|
51
|
+
* IconStylesGeneral is used to define the available general styles for each icon in the IconCatalog.
|
|
52
|
+
* It includes all styles from light, solid, and regular categories.
|
|
53
|
+
*/
|
|
54
|
+
export type IconStylesGeneral = IconStylesLight | IconStylesSolid | IconStylesRegular | null;
|
|
55
|
+
/**
|
|
56
|
+
* IconColors is used to define the available colors for each icon in the IconCatalog.
|
|
57
|
+
* It includes colors such as 'primary', 'secondary', 'success', 'danger', 'warning', 'info', and 'light'.
|
|
58
|
+
*/
|
|
59
|
+
export type IconColors = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | null;
|
|
60
|
+
/**
|
|
61
|
+
* iconsStylesLight is an array of available light styles for each icon in the IconCatalog.
|
|
62
|
+
* It allows for easy access and iteration over the light styles.
|
|
63
|
+
*/
|
|
64
|
+
export declare const iconsStylesLight: IconStylesLight[];
|
|
65
|
+
/**
|
|
66
|
+
* iconsStylesSolid is an array of available solid styles for each icon in the IconCatalog.
|
|
67
|
+
* It allows for easy access and iteration over the solid styles.
|
|
68
|
+
*/
|
|
69
|
+
export declare const iconsStylesSolid: IconStylesSolid[];
|
|
70
|
+
/**
|
|
71
|
+
* iconsStylesRegular is an array of available regular styles for each icon in the IconCatalog.
|
|
72
|
+
* It allows for easy access and iteration over the regular styles.
|
|
73
|
+
*/
|
|
74
|
+
export declare const iconsStylesRegular: IconStylesRegular[];
|
|
75
|
+
export declare const IconCatalog: IconRegister;
|
|
76
|
+
export {};
|