@kato-lee/components 1.0.3

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 (207) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/assets/_fade-in.scss +40 -0
  4. package/assets/_fields.scss +76 -0
  5. package/assets/_grids.scss +317 -0
  6. package/assets/components/_buttons.scss +3 -0
  7. package/assets/components/_cards.scss +26 -0
  8. package/assets/components/_dialogs.scss +13 -0
  9. package/assets/components/_fields.scss +110 -0
  10. package/assets/components/_material.scss +15 -0
  11. package/assets/components/_pretty-box.scss +41 -0
  12. package/assets/components/_scroll-bar.scss +23 -0
  13. package/assets/components/_snack-bar.scss +18 -0
  14. package/assets/components/_tables.scss +235 -0
  15. package/assets/components/_tabs.scss +7 -0
  16. package/assets/components/main.scss +25 -0
  17. package/assets/fonts/body/Transpass-Bold.ttf +0 -0
  18. package/assets/fonts/body/Transpass-Light.ttf +0 -0
  19. package/assets/fonts/body/Transpass-Medium.ttf +0 -0
  20. package/assets/fonts/body/Transpass-Regular.ttf +0 -0
  21. package/assets/fonts/body/style-font.scss +40 -0
  22. package/assets/fonts/main.scss +2 -0
  23. package/assets/fonts/title/Poppins-Bold.ttf +0 -0
  24. package/assets/fonts/title/Poppins-Light.ttf +0 -0
  25. package/assets/fonts/title/Poppins-Medium.ttf +0 -0
  26. package/assets/fonts/title/Poppins-Regular.ttf +0 -0
  27. package/assets/fonts/title/Poppins-SemiBold.ttf +0 -0
  28. package/assets/fonts/title/style-font.scss +39 -0
  29. package/assets/layouts/_loader.scss +71 -0
  30. package/assets/layouts/origin.scss +775 -0
  31. package/assets/main.scss +4 -0
  32. package/assets/material/icons/icons.woff2 +0 -0
  33. package/assets/material/icons/local.css +1 -0
  34. package/assets/material/icons/remote.css +1 -0
  35. package/assets/material/themes/dark.scss +55 -0
  36. package/assets/material/themes/default.scss +106 -0
  37. package/assets/material/themes/main.scss +2907 -0
  38. package/assets/themes/_dark.scss +15 -0
  39. package/assets/themes/_default.scss +30 -0
  40. package/assets/themes/main.scss +2 -0
  41. package/assets/variables.scss +7 -0
  42. package/box-form/box-form.component.d.ts +34 -0
  43. package/box-form/box-form.module.d.ts +13 -0
  44. package/box-form/common.d.ts +5 -0
  45. package/box-form/index.d.ts +3 -0
  46. package/box-form/package.json +3 -0
  47. package/capsule/capsule.component.d.ts +14 -0
  48. package/capsule/capsule.module.d.ts +7 -0
  49. package/capsule/index.d.ts +2 -0
  50. package/capsule/package.json +3 -0
  51. package/cards/cards.module.d.ts +7 -0
  52. package/cards/index.d.ts +2 -0
  53. package/cards/package.json +3 -0
  54. package/cards/simple-card.component.d.ts +8 -0
  55. package/dialogs/dialogs.module.d.ts +11 -0
  56. package/dialogs/dismiss-dialog-button.component.d.ts +8 -0
  57. package/dialogs/index.d.ts +2 -0
  58. package/dialogs/package.json +3 -0
  59. package/esm2022/box-form/box-form.component.mjs +99 -0
  60. package/esm2022/box-form/box-form.module.mjs +40 -0
  61. package/esm2022/box-form/common.mjs +2 -0
  62. package/esm2022/box-form/index.mjs +7 -0
  63. package/esm2022/box-form/kato-lee-components-box-form.mjs +5 -0
  64. package/esm2022/capsule/capsule.component.mjs +78 -0
  65. package/esm2022/capsule/capsule.module.mjs +16 -0
  66. package/esm2022/capsule/index.mjs +6 -0
  67. package/esm2022/capsule/kato-lee-components-capsule.mjs +5 -0
  68. package/esm2022/cards/cards.module.mjs +17 -0
  69. package/esm2022/cards/index.mjs +6 -0
  70. package/esm2022/cards/kato-lee-components-cards.mjs +5 -0
  71. package/esm2022/cards/simple-card.component.mjs +47 -0
  72. package/esm2022/dialogs/dialogs.module.mjs +22 -0
  73. package/esm2022/dialogs/dismiss-dialog-button.component.mjs +44 -0
  74. package/esm2022/dialogs/index.mjs +6 -0
  75. package/esm2022/dialogs/kato-lee-components-dialogs.mjs +5 -0
  76. package/esm2022/fields/autocomplete-field/autocomplete-field.component.mjs +240 -0
  77. package/esm2022/fields/date-field/date-field.component.mjs +148 -0
  78. package/esm2022/fields/date-range-field/date-range-field.component.mjs +70 -0
  79. package/esm2022/fields/error/error-equals.pipe.mjs +19 -0
  80. package/esm2022/fields/error/error.component.mjs +55 -0
  81. package/esm2022/fields/error/error.module.mjs +21 -0
  82. package/esm2022/fields/error/error.msg.pipe.mjs +19 -0
  83. package/esm2022/fields/error/lang/_en.mjs +12 -0
  84. package/esm2022/fields/error/lang/_es.mjs +12 -0
  85. package/esm2022/fields/error/lang/index.mjs +3 -0
  86. package/esm2022/fields/fields.common.mjs +8 -0
  87. package/esm2022/fields/fields.module.mjs +118 -0
  88. package/esm2022/fields/general-field/general-field.component.mjs +188 -0
  89. package/esm2022/fields/index.mjs +17 -0
  90. package/esm2022/fields/kato-lee-components-fields.mjs +5 -0
  91. package/esm2022/fields/money-field/money-field.component.mjs +188 -0
  92. package/esm2022/fields/number-field/number-field.component.mjs +165 -0
  93. package/esm2022/fields/select-field/select-field.component.mjs +135 -0
  94. package/esm2022/fields/text-area/textarea.component.mjs +171 -0
  95. package/esm2022/index.mjs +2 -0
  96. package/esm2022/kato-lee-components.mjs +5 -0
  97. package/esm2022/layouts/origin/breadcrumb/breadcrumb.component.mjs +65 -0
  98. package/esm2022/layouts/origin/footer/footer.component.mjs +11 -0
  99. package/esm2022/layouts/origin/header/header.component.mjs +46 -0
  100. package/esm2022/layouts/origin/index.mjs +12 -0
  101. package/esm2022/layouts/origin/kato-lee-components-layouts-origin.mjs +5 -0
  102. package/esm2022/layouts/origin/layout.component.mjs +210 -0
  103. package/esm2022/layouts/origin/layout.module.mjs +52 -0
  104. package/esm2022/layouts/origin/layout.navigation.mjs +19 -0
  105. package/esm2022/layouts/origin/navigation-interfaces.mjs +2 -0
  106. package/esm2022/layouts/origin/services/index.mjs +4 -0
  107. package/esm2022/layouts/origin/services/route-parts.service.mjs +28 -0
  108. package/esm2022/layouts/origin/services/toggle-sidebar.mjs +48 -0
  109. package/esm2022/layouts/origin/services/validate-access.pipe.mjs +53 -0
  110. package/esm2022/layouts/origin/sidebar/sidebar.component.mjs +69 -0
  111. package/esm2022/layouts/origin/sidebar/sidenav/expansion/accordion.component.mjs +74 -0
  112. package/esm2022/layouts/origin/sidebar/sidenav/expansion/expansion-panel-header.component.mjs +51 -0
  113. package/esm2022/layouts/origin/sidebar/sidenav/expansion/expansion-panel.component.mjs +63 -0
  114. package/esm2022/layouts/origin/sidebar/sidenav/sidenav.component.mjs +130 -0
  115. package/esm2022/modal/config.mjs +2 -0
  116. package/esm2022/modal/index.mjs +8 -0
  117. package/esm2022/modal/kato-lee-components-modal.mjs +5 -0
  118. package/esm2022/modal/modal.component.mjs +63 -0
  119. package/esm2022/modal/modal.module.mjs +21 -0
  120. package/esm2022/modal/modal.service.mjs +33 -0
  121. package/esm2022/pretty-box/index.mjs +5 -0
  122. package/esm2022/pretty-box/kato-lee-components-pretty-box.mjs +5 -0
  123. package/esm2022/pretty-box/pretty-box.component.mjs +94 -0
  124. package/esm2022/tables/index.mjs +6 -0
  125. package/esm2022/tables/kato-lee-components-tables.mjs +5 -0
  126. package/esm2022/tables/mat-paginator.translation.mjs +22 -0
  127. package/esm2022/tables/tables.module.mjs +19 -0
  128. package/esm2022/toast/index.mjs +5 -0
  129. package/esm2022/toast/kato-lee-components-toast.mjs +5 -0
  130. package/esm2022/toast/toast.service.mjs +42 -0
  131. package/fesm2022/kato-lee-components-box-form.mjs +146 -0
  132. package/fesm2022/kato-lee-components-box-form.mjs.map +1 -0
  133. package/fesm2022/kato-lee-components-capsule.mjs +102 -0
  134. package/fesm2022/kato-lee-components-capsule.mjs.map +1 -0
  135. package/fesm2022/kato-lee-components-cards.mjs +72 -0
  136. package/fesm2022/kato-lee-components-cards.mjs.map +1 -0
  137. package/fesm2022/kato-lee-components-dialogs.mjs +74 -0
  138. package/fesm2022/kato-lee-components-dialogs.mjs.map +1 -0
  139. package/fesm2022/kato-lee-components-fields.mjs +1486 -0
  140. package/fesm2022/kato-lee-components-fields.mjs.map +1 -0
  141. package/fesm2022/kato-lee-components-layouts-origin.mjs +872 -0
  142. package/fesm2022/kato-lee-components-layouts-origin.mjs.map +1 -0
  143. package/fesm2022/kato-lee-components-modal.mjs +121 -0
  144. package/fesm2022/kato-lee-components-modal.mjs.map +1 -0
  145. package/fesm2022/kato-lee-components-pretty-box.mjs +105 -0
  146. package/fesm2022/kato-lee-components-pretty-box.mjs.map +1 -0
  147. package/fesm2022/kato-lee-components-tables.mjs +51 -0
  148. package/fesm2022/kato-lee-components-tables.mjs.map +1 -0
  149. package/fesm2022/kato-lee-components-toast.mjs +53 -0
  150. package/fesm2022/kato-lee-components-toast.mjs.map +1 -0
  151. package/fesm2022/kato-lee-components.mjs +4 -0
  152. package/fesm2022/kato-lee-components.mjs.map +1 -0
  153. package/fields/autocomplete-field/autocomplete-field.component.d.ts +65 -0
  154. package/fields/date-field/date-field.component.d.ts +46 -0
  155. package/fields/date-range-field/date-range-field.component.d.ts +23 -0
  156. package/fields/error/error-equals.pipe.d.ts +7 -0
  157. package/fields/error/error.component.d.ts +22 -0
  158. package/fields/error/error.module.d.ts +11 -0
  159. package/fields/error/error.msg.pipe.d.ts +7 -0
  160. package/fields/error/lang/_en.d.ts +1 -0
  161. package/fields/error/lang/_es.d.ts +1 -0
  162. package/fields/error/lang/index.d.ts +2 -0
  163. package/fields/fields.common.d.ts +5 -0
  164. package/fields/fields.module.d.ts +28 -0
  165. package/fields/general-field/general-field.component.d.ts +56 -0
  166. package/fields/index.d.ts +13 -0
  167. package/fields/money-field/money-field.component.d.ts +53 -0
  168. package/fields/number-field/number-field.component.d.ts +52 -0
  169. package/fields/package.json +3 -0
  170. package/fields/select-field/select-field.component.d.ts +44 -0
  171. package/fields/text-area/textarea.component.d.ts +55 -0
  172. package/index.d.ts +1 -0
  173. package/layouts/origin/breadcrumb/breadcrumb.component.d.ts +24 -0
  174. package/layouts/origin/footer/footer.component.d.ts +5 -0
  175. package/layouts/origin/header/header.component.d.ts +15 -0
  176. package/layouts/origin/index.d.ts +8 -0
  177. package/layouts/origin/layout.component.d.ts +58 -0
  178. package/layouts/origin/layout.module.d.ts +18 -0
  179. package/layouts/origin/layout.navigation.d.ts +10 -0
  180. package/layouts/origin/navigation-interfaces.d.ts +24 -0
  181. package/layouts/origin/package.json +3 -0
  182. package/layouts/origin/services/index.d.ts +3 -0
  183. package/layouts/origin/services/route-parts.service.d.ts +15 -0
  184. package/layouts/origin/services/toggle-sidebar.d.ts +10 -0
  185. package/layouts/origin/services/validate-access.pipe.d.ts +7 -0
  186. package/layouts/origin/sidebar/sidebar.component.d.ts +27 -0
  187. package/layouts/origin/sidebar/sidenav/expansion/accordion.component.d.ts +10 -0
  188. package/layouts/origin/sidebar/sidenav/expansion/expansion-panel-header.component.d.ts +11 -0
  189. package/layouts/origin/sidebar/sidenav/expansion/expansion-panel.component.d.ts +12 -0
  190. package/layouts/origin/sidebar/sidenav/sidenav.component.d.ts +23 -0
  191. package/modal/config.d.ts +9 -0
  192. package/modal/index.d.ts +4 -0
  193. package/modal/modal.component.d.ts +35 -0
  194. package/modal/modal.module.d.ts +11 -0
  195. package/modal/modal.service.d.ts +13 -0
  196. package/modal/package.json +3 -0
  197. package/package.json +82 -0
  198. package/pretty-box/index.d.ts +1 -0
  199. package/pretty-box/package.json +3 -0
  200. package/pretty-box/pretty-box.component.d.ts +24 -0
  201. package/tables/index.d.ts +2 -0
  202. package/tables/mat-paginator.translation.d.ts +2 -0
  203. package/tables/package.json +3 -0
  204. package/tables/tables.module.d.ts +9 -0
  205. package/toast/index.d.ts +1 -0
  206. package/toast/package.json +3 -0
  207. package/toast/toast.service.d.ts +21 -0
@@ -0,0 +1,58 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
3
+ import { ActivatedRoute, Router } from '@angular/router';
4
+ import { TakSnavItems } from './navigation-interfaces';
5
+ import { RoutePartsService, ToggleSidebar } from './services';
6
+ import { FormControl } from '@angular/forms';
7
+ import * as i0 from "@angular/core";
8
+ export declare class TakOriginLayoutComponent implements OnInit, AfterViewInit, OnDestroy {
9
+ private _routePartsService;
10
+ private _toggleSidebar;
11
+ private _activeRoute;
12
+ private _cd;
13
+ private _router;
14
+ private _title;
15
+ scrollLayout: ElementRef;
16
+ private _routerSubs;
17
+ private _routerChangeTitleSubs;
18
+ private _sidebarStatus;
19
+ navigation: TakSnavItems[];
20
+ appIcon: string;
21
+ appTitle: string;
22
+ appSidebarTitle: string;
23
+ appSidebarSubtitle: string;
24
+ sidebarDebounceTime: number;
25
+ mdWidth: number;
26
+ isDinamicSidebar: boolean;
27
+ includeBreadcrumbs: boolean;
28
+ accordionInCollections: boolean;
29
+ disableHiddenCollections: boolean;
30
+ hasFooter: boolean;
31
+ authorities: any[];
32
+ context: any;
33
+ private _isModuleLoading;
34
+ private _pageTitle;
35
+ private _isSidebarCompact;
36
+ isSidebarFixed: boolean;
37
+ isMd: boolean;
38
+ sidebarRespForm: FormControl<any>;
39
+ constructor(_routePartsService: RoutePartsService, _toggleSidebar: ToggleSidebar, _activeRoute: ActivatedRoute, _cd: ChangeDetectorRef, _router: Router, _title: Title);
40
+ ngOnInit(): void;
41
+ ngAfterViewInit(): void;
42
+ onResize(): void;
43
+ sidebarMouseEnter(): void;
44
+ sidebarMouseLeave(): void;
45
+ toggleSidebar(event: boolean): void;
46
+ onBlockSidebar(event: boolean): void;
47
+ scrollToTop(): void;
48
+ private _changePageTitle;
49
+ ngOnDestroy(): void;
50
+ get isModuleLoading(): boolean;
51
+ get isSidebarCompact(): boolean;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakOriginLayoutComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakOriginLayoutComponent, "tak-origin-layout", never, { "navigation": { "alias": "navigation"; "required": false; }; "appIcon": { "alias": "appIcon"; "required": false; }; "appTitle": { "alias": "appTitle"; "required": false; }; "appSidebarTitle": { "alias": "appSidebarTitle"; "required": false; }; "appSidebarSubtitle": { "alias": "appSidebarSubtitle"; "required": false; }; "sidebarDebounceTime": { "alias": "sidebarDebounceTime"; "required": false; }; "mdWidth": { "alias": "mdWidth"; "required": false; }; "isDinamicSidebar": { "alias": "isDinamicSidebar"; "required": false; }; "includeBreadcrumbs": { "alias": "includeBreadcrumbs"; "required": false; }; "accordionInCollections": { "alias": "accordionInCollections"; "required": false; }; "disableHiddenCollections": { "alias": "disableHiddenCollections"; "required": false; }; "hasFooter": { "alias": "hasFooter"; "required": false; }; "authorities": { "alias": "authorities"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, {}, never, ["[tak-custom-header]", "*", "[tak-custom-footer]"], false, never>;
54
+ }
55
+ export declare class TakLoader {
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakLoader, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakLoader, "tak-loader", never, {}, {}, never, never, false, never>;
58
+ }
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./services/validate-access.pipe";
3
+ import * as i2 from "./sidebar/sidenav/expansion/expansion-panel-header.component";
4
+ import * as i3 from "./sidebar/sidenav/expansion/expansion-panel.component";
5
+ import * as i4 from "./breadcrumb/breadcrumb.component";
6
+ import * as i5 from "./sidebar/sidenav/expansion/accordion.component";
7
+ import * as i6 from "./sidebar/sidebar.component";
8
+ import * as i7 from "./sidebar/sidenav/sidenav.component";
9
+ import * as i8 from "./layout.component";
10
+ import * as i9 from "./header/header.component";
11
+ import * as i10 from "./footer/footer.component";
12
+ import * as i11 from "@angular/forms";
13
+ import * as i12 from "@angular/router";
14
+ export declare class TakOriginLayoutModule {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakOriginLayoutModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TakOriginLayoutModule, [typeof i1.ValidateAccessPipe, typeof i2.TakExpansionPanelHeaderComponent, typeof i3.TakExpansionPanelComponent, typeof i4.TakBreadcrumbComponent, typeof i5.TakAccordionComponent, typeof i6.TakSidebarComponent, typeof i7.TakSidenavComponent, typeof i8.TakOriginLayoutComponent, typeof i9.TakHeaderComponent, typeof i10.TakFooterComponent, typeof i8.TakLoader], [typeof i11.ReactiveFormsModule, typeof i12.RouterModule], [typeof i8.TakOriginLayoutComponent, typeof i8.TakLoader]>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<TakOriginLayoutModule>;
18
+ }
@@ -0,0 +1,10 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NavigationService {
4
+ iconMenu: any[];
5
+ menuItems: BehaviorSubject<any[]>;
6
+ menuItems$: import("rxjs").Observable<any[]>;
7
+ publishNavigationChange(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
10
+ }
@@ -0,0 +1,24 @@
1
+ export type TakSnavIconsType = 'material-icon' | 'img';
2
+ export type TakSnavItemType = 'link' | 'collection' | 'dropdown';
3
+ export interface TakSnavItems {
4
+ type: TakSnavItemType;
5
+ icon?: string;
6
+ name: string;
7
+ url?: string;
8
+ urlIsNotAutoCompleted?: boolean;
9
+ dropdownLinks?: TakSnavDropdownLink[];
10
+ objects?: TakSnavItems[];
11
+ authorities?: string[];
12
+ disableOnContexts?: string[];
13
+ showCollectionContent?: boolean;
14
+ forceDisabledContent?: boolean;
15
+ isOpened?: boolean;
16
+ }
17
+ export interface TakSnavDropdownLink {
18
+ name: string;
19
+ url: string;
20
+ urlIsNotAutoCompleted?: boolean;
21
+ authorities?: string[];
22
+ disableOnContexts?: string[];
23
+ forceDisabledContent?: boolean;
24
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../../fesm2022/kato-lee-components-layouts-origin.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ export * from './route-parts.service';
2
+ export * from './toggle-sidebar';
3
+ export * from './validate-access.pipe';
@@ -0,0 +1,15 @@
1
+ import { ActivatedRouteSnapshot, Params } from '@angular/router';
2
+ import * as i0 from "@angular/core";
3
+ interface IRoutePart {
4
+ title: string;
5
+ breadcrumb: string;
6
+ params?: Params;
7
+ url: string;
8
+ urlSegments: any[];
9
+ }
10
+ export declare class RoutePartsService {
11
+ generateRouteParts(snapshot: ActivatedRouteSnapshot): IRoutePart[];
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<RoutePartsService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<RoutePartsService>;
14
+ }
15
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare const LAYOUT_CONTAINER = "tak__layout__container";
3
+ export declare class ToggleSidebar {
4
+ openSidebar(): void;
5
+ closeSidebar(): void;
6
+ toggleMobile(isMobile: boolean): void;
7
+ expansionButton(expand: boolean): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToggleSidebar, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToggleSidebar>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ValidateAccessPipe implements PipeTransform {
4
+ transform(_valuesToCompare: any[], _user: any[]): boolean;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValidateAccessPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<ValidateAccessPipe, "validateAccess", false>;
7
+ }
@@ -0,0 +1,27 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { TakSnavItems } from '../navigation-interfaces';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TakSidebarComponent implements AfterViewInit {
6
+ checkbox: ElementRef;
7
+ blockSidebar: EventEmitter<any>;
8
+ toggleSidebar: EventEmitter<any>;
9
+ appIcon: string;
10
+ appTitle: string;
11
+ appSubtitle: string;
12
+ mdWidth: number;
13
+ navigation: TakSnavItems[];
14
+ authorities: any[];
15
+ context: any;
16
+ isToggleShow: boolean;
17
+ isCompact: boolean;
18
+ isMd: boolean;
19
+ accordionInCollections: boolean;
20
+ disableHiddenCollections: boolean;
21
+ hideSidebar: FormControl<boolean | null>;
22
+ ngAfterViewInit(): void;
23
+ onToggleSidebar(): void;
24
+ onBlockSidebar(checked?: boolean): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakSidebarComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakSidebarComponent, "tak-sidebar", never, { "appIcon": { "alias": "appIcon"; "required": false; }; "appTitle": { "alias": "appTitle"; "required": false; }; "appSubtitle": { "alias": "appSubtitle"; "required": false; }; "mdWidth": { "alias": "mdWidth"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "authorities": { "alias": "authorities"; "required": false; }; "context": { "alias": "context"; "required": false; }; "isToggleShow": { "alias": "isToggleShow"; "required": false; }; "isCompact": { "alias": "isCompact"; "required": false; }; "isMd": { "alias": "isMd"; "required": false; }; "accordionInCollections": { "alias": "accordionInCollections"; "required": false; }; "disableHiddenCollections": { "alias": "disableHiddenCollections"; "required": false; }; }, { "blockSidebar": "blockSidebar"; "toggleSidebar": "toggleSidebar"; }, never, never, false, never>;
27
+ }
@@ -0,0 +1,10 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TakAccordionComponent implements AfterViewInit {
4
+ accordion: ElementRef | any;
5
+ ngAfterViewInit(): void;
6
+ private _subscribeToExpansionPanels;
7
+ private _activeAccordionMode;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakAccordionComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakAccordionComponent, "tak-layout-accordion", never, {}, {}, never, ["*"], false, never>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef, AfterViewInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TakExpansionPanelHeaderComponent implements AfterViewInit {
4
+ expansionPanelHeader: ElementRef;
5
+ style: string;
6
+ class: string;
7
+ ngAfterViewInit(): void;
8
+ toggle(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakExpansionPanelHeaderComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakExpansionPanelHeaderComponent, "tak-layout-expansion-panel-header", never, { "style": { "alias": "style"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], false, never>;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { ChangeDetectorRef, AfterViewInit, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TakExpansionPanelComponent implements AfterViewInit {
4
+ private _cd;
5
+ expansionPanelHeader: ElementRef;
6
+ style: string;
7
+ class: string;
8
+ constructor(_cd: ChangeDetectorRef);
9
+ ngAfterViewInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakExpansionPanelComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakExpansionPanelComponent, "tak-layout-expansion-panel", never, { "style": { "alias": "style"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["tak-layout-expansion-panel-header", "*"], false, never>;
12
+ }
@@ -0,0 +1,23 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { ToggleSidebar } from '../../services';
3
+ import { TakSnavItems } from '../../navigation-interfaces';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TakSidenavComponent implements OnInit {
6
+ private _toggleSidebar;
7
+ private _cd;
8
+ navigation: TakSnavItems[];
9
+ authorities: any[];
10
+ context: any;
11
+ mdWidth: number;
12
+ accordionInCollections: boolean;
13
+ disableHiddenCollections: boolean;
14
+ private _isMobile;
15
+ constructor(_toggleSidebar: ToggleSidebar, _cd: ChangeDetectorRef);
16
+ ngOnInit(): void;
17
+ onCloseSidebar(): void;
18
+ toggleModule(index: number): void;
19
+ onResize(): void;
20
+ get isMobile(): boolean;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakSidenavComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakSidenavComponent, "tak-sidenav", never, { "navigation": { "alias": "navigation"; "required": false; }; "authorities": { "alias": "authorities"; "required": false; }; "context": { "alias": "context"; "required": false; }; "mdWidth": { "alias": "mdWidth"; "required": false; }; "accordionInCollections": { "alias": "accordionInCollections"; "required": false; }; "disableHiddenCollections": { "alias": "disableHiddenCollections"; "required": false; }; }, {}, never, never, false, never>;
23
+ }
@@ -0,0 +1,9 @@
1
+ import { MatDialogConfig } from '@kato-lee/material/dialog';
2
+ export type TakModalType = 'confirm' | 'alert';
3
+ export interface TakModalConfig {
4
+ confirmButton?: string;
5
+ deniedButton?: string;
6
+ okButton?: string;
7
+ hasTopCloseButton?: boolean;
8
+ dialogOptions?: MatDialogConfig;
9
+ }
@@ -0,0 +1,4 @@
1
+ export * from './config';
2
+ export * from './modal.component';
3
+ export * from './modal.module';
4
+ export * from './modal.service';
@@ -0,0 +1,35 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@kato-lee/material/dialog';
3
+ import { TakModalConfig, TakModalType } from './config';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TakModalComponent implements OnInit {
6
+ private _dialogRef;
7
+ data: {
8
+ content: string;
9
+ title: string;
10
+ options?: TakModalConfig;
11
+ type: TakModalType;
12
+ };
13
+ private _isAlert;
14
+ private _confirmButton;
15
+ private _deniedButton;
16
+ private _okButton;
17
+ private _hasTopCloseButton;
18
+ constructor(href: ElementRef<HTMLElement>, _dialogRef: MatDialogRef<TakModalComponent>, data: {
19
+ content: string;
20
+ title: string;
21
+ options?: TakModalConfig;
22
+ type: TakModalType;
23
+ });
24
+ ngOnInit(): void;
25
+ onConfirm(): void;
26
+ onClose(): void;
27
+ onCloseFromButton(): void;
28
+ get isAlert(): boolean;
29
+ get confirmButton(): string;
30
+ get deniedButton(): string;
31
+ get okButton(): string;
32
+ get hasTopCloseButton(): boolean;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakModalComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakModalComponent, "tak-modal", never, {}, {}, never, never, false, never>;
35
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./modal.component";
3
+ import * as i2 from "@kato-lee/material/button";
4
+ import * as i3 from "@kato-lee/components/dialogs";
5
+ import * as i4 from "@kato-lee/material/divider";
6
+ import * as i5 from "@kato-lee/material/icon";
7
+ export declare class TakModalModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakModalModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TakModalModule, [typeof i1.TakModalComponent], [typeof i2.MatButtonModule, typeof i3.TakDialogModule, typeof i4.MatDividerModule, typeof i5.MatIconModule], [typeof i1.TakModalComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<TakModalModule>;
11
+ }
@@ -0,0 +1,13 @@
1
+ import { MatDialog } from '@kato-lee/material/dialog';
2
+ import { TakModalConfig } from './config';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TakModal {
6
+ private dialog;
7
+ constructor(dialog: MatDialog);
8
+ alert(content: string, title?: string, options?: TakModalConfig): Observable<boolean>;
9
+ confirm(content: string, title?: string, options?: TakModalConfig): Observable<boolean>;
10
+ private _generateDialog;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakModal, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<TakModal>;
13
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/kato-lee-components-modal.mjs"
3
+ }
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@kato-lee/components",
3
+ "version": "1.0.3",
4
+ "peerDependencies": {
5
+ "@kato-lee/cdk": "^14.2.7",
6
+ "@kato-lee/material": "^14.2.7"
7
+ },
8
+ "sideEffects": false,
9
+ "module": "fesm2022/kato-lee-components.mjs",
10
+ "typings": "index.d.ts",
11
+ "exports": {
12
+ "./package.json": {
13
+ "default": "./package.json"
14
+ },
15
+ ".": {
16
+ "types": "./index.d.ts",
17
+ "esm2022": "./esm2022/kato-lee-components.mjs",
18
+ "esm": "./esm2022/kato-lee-components.mjs",
19
+ "default": "./fesm2022/kato-lee-components.mjs"
20
+ },
21
+ "./box-form": {
22
+ "types": "./box-form/index.d.ts",
23
+ "esm2022": "./esm2022/box-form/kato-lee-components-box-form.mjs",
24
+ "esm": "./esm2022/box-form/kato-lee-components-box-form.mjs",
25
+ "default": "./fesm2022/kato-lee-components-box-form.mjs"
26
+ },
27
+ "./capsule": {
28
+ "types": "./capsule/index.d.ts",
29
+ "esm2022": "./esm2022/capsule/kato-lee-components-capsule.mjs",
30
+ "esm": "./esm2022/capsule/kato-lee-components-capsule.mjs",
31
+ "default": "./fesm2022/kato-lee-components-capsule.mjs"
32
+ },
33
+ "./cards": {
34
+ "types": "./cards/index.d.ts",
35
+ "esm2022": "./esm2022/cards/kato-lee-components-cards.mjs",
36
+ "esm": "./esm2022/cards/kato-lee-components-cards.mjs",
37
+ "default": "./fesm2022/kato-lee-components-cards.mjs"
38
+ },
39
+ "./dialogs": {
40
+ "types": "./dialogs/index.d.ts",
41
+ "esm2022": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
42
+ "esm": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
43
+ "default": "./fesm2022/kato-lee-components-dialogs.mjs"
44
+ },
45
+ "./fields": {
46
+ "types": "./fields/index.d.ts",
47
+ "esm2022": "./esm2022/fields/kato-lee-components-fields.mjs",
48
+ "esm": "./esm2022/fields/kato-lee-components-fields.mjs",
49
+ "default": "./fesm2022/kato-lee-components-fields.mjs"
50
+ },
51
+ "./modal": {
52
+ "types": "./modal/index.d.ts",
53
+ "esm2022": "./esm2022/modal/kato-lee-components-modal.mjs",
54
+ "esm": "./esm2022/modal/kato-lee-components-modal.mjs",
55
+ "default": "./fesm2022/kato-lee-components-modal.mjs"
56
+ },
57
+ "./pretty-box": {
58
+ "types": "./pretty-box/index.d.ts",
59
+ "esm2022": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
60
+ "esm": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
61
+ "default": "./fesm2022/kato-lee-components-pretty-box.mjs"
62
+ },
63
+ "./tables": {
64
+ "types": "./tables/index.d.ts",
65
+ "esm2022": "./esm2022/tables/kato-lee-components-tables.mjs",
66
+ "esm": "./esm2022/tables/kato-lee-components-tables.mjs",
67
+ "default": "./fesm2022/kato-lee-components-tables.mjs"
68
+ },
69
+ "./toast": {
70
+ "types": "./toast/index.d.ts",
71
+ "esm2022": "./esm2022/toast/kato-lee-components-toast.mjs",
72
+ "esm": "./esm2022/toast/kato-lee-components-toast.mjs",
73
+ "default": "./fesm2022/kato-lee-components-toast.mjs"
74
+ },
75
+ "./layouts/origin": {
76
+ "types": "./layouts/origin/index.d.ts",
77
+ "esm2022": "./esm2022/layouts/origin/kato-lee-components-layouts-origin.mjs",
78
+ "esm": "./esm2022/layouts/origin/kato-lee-components-layouts-origin.mjs",
79
+ "default": "./fesm2022/kato-lee-components-layouts-origin.mjs"
80
+ }
81
+ }
82
+ }
@@ -0,0 +1 @@
1
+ export * from './pretty-box.component';
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/kato-lee-components-pretty-box.mjs"
3
+ }
@@ -0,0 +1,24 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TakPrettyBoxModule implements AfterViewInit {
4
+ private _cd;
5
+ header: ElementRef;
6
+ footer: ElementRef;
7
+ scroll: ElementRef;
8
+ calcHeight: string | number;
9
+ headerHeightPx: number;
10
+ footerHeightPx: number;
11
+ encapsulated: boolean;
12
+ private _hasHeader;
13
+ private _hasFooter;
14
+ private _substractFromHeight;
15
+ constructor(_cd: ChangeDetectorRef);
16
+ ngAfterViewInit(): void;
17
+ scrollTop(): void;
18
+ private _config;
19
+ get minHeightFt(): string;
20
+ get hasHeader(): boolean;
21
+ get hasFooter(): boolean;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakPrettyBoxModule, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakPrettyBoxModule, "tak-pretty-box", never, { "calcHeight": { "alias": "calcHeight"; "required": false; }; "headerHeightPx": { "alias": "headerHeightPx"; "required": false; }; "footerHeightPx": { "alias": "footerHeightPx"; "required": false; }; "encapsulated": { "alias": "encapsulated"; "required": false; }; }, {}, never, ["[tak-pretty-box-header]", "[tak-pretty-box-content]", "[tak-pretty-box-footer]"], true, never>;
24
+ }
@@ -0,0 +1,2 @@
1
+ export * from './mat-paginator.translation';
2
+ export * from './tables.module';
@@ -0,0 +1,2 @@
1
+ import { MatPaginatorIntl } from '@kato-lee/material/paginator';
2
+ export declare function getSpanishMatPaginatorIntl(): MatPaginatorIntl;
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/kato-lee-components-tables.mjs"
3
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@kato-lee/material/table";
3
+ import * as i2 from "@kato-lee/material/sort";
4
+ import * as i3 from "@kato-lee/material/paginator";
5
+ export declare class TakTablesModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakTablesModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TakTablesModule, never, [typeof i1.MatTableModule, typeof i2.MatSortModule, typeof i3.MatPaginatorModule], [typeof i1.MatTableModule, typeof i2.MatSortModule, typeof i3.MatPaginatorModule]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<TakTablesModule>;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './toast.service';
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/kato-lee-components-toast.mjs"
3
+ }
@@ -0,0 +1,21 @@
1
+ import { MatSnackBar, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from '@kato-lee/material/snack-bar';
2
+ import * as i0 from "@angular/core";
3
+ export type TakToastType = 'notification' | 'danger' | 'success';
4
+ export interface TakToastConfig {
5
+ hasDissmissButton?: boolean;
6
+ dissmissButtonMessage?: string;
7
+ horizontalPosition?: MatSnackBarHorizontalPosition;
8
+ verticalPosition?: MatSnackBarVerticalPosition;
9
+ duration?: number;
10
+ }
11
+ export declare class TakToast {
12
+ private _snackBar;
13
+ constructor(_snackBar: MatSnackBar);
14
+ notification(message: string, payload?: TakToastConfig): void;
15
+ success(message: string, payload?: TakToastConfig): void;
16
+ danger(message: string, payload?: TakToastConfig): void;
17
+ private _generateTakToast;
18
+ private _managePayload;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakToast, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<TakToast>;
21
+ }