@c10t/nice-component-library 0.0.1-beta

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 (145) hide show
  1. package/components/base/base-add-edit.component.d.ts +28 -0
  2. package/components/base/base-search.component.d.ts +62 -0
  3. package/components/base/base-table.component.d.ts +16 -0
  4. package/components/cva-breadcrumb.component.d.ts +14 -0
  5. package/components/cva-counter-input.component.d.ts +42 -0
  6. package/components/cva-custom-dialog.component.d.ts +30 -0
  7. package/components/cva-input.component.d.ts +60 -0
  8. package/components/cva-loader.component.d.ts +9 -0
  9. package/components/cva-multi-select-autocomplete.d.ts +64 -0
  10. package/components/cva-quill-editor.component.d.ts +66 -0
  11. package/components/cva-radiobutton.component.d.ts +32 -0
  12. package/components/cva-tree.component.d.ts +38 -0
  13. package/components/datepicker/cva-date-picker.component.d.ts +43 -0
  14. package/components/datepicker/cva-range-date-picker.component.d.ts +64 -0
  15. package/components/table/cva-header-expand-button.component.d.ts +22 -0
  16. package/components/table/cva-smart-table.component.d.ts +72 -0
  17. package/components/table/cva-table.component.d.ts +62 -0
  18. package/components/tree/cva-flat-tree-node-left.component.d.ts +22 -0
  19. package/components/tree/cva-flat-tree-node-right.component.d.ts +18 -0
  20. package/components/tree/cva-flat-tree.component.d.ts +96 -0
  21. package/components/upload/cva-dialog-import-file.component.d.ts +30 -0
  22. package/components/upload/cva-multi-upload-img.component.d.ts +24 -0
  23. package/components/upload/cva-multi-upload.component.d.ts +30 -0
  24. package/components/upload/cva-upload-file.component.d.ts +70 -0
  25. package/directives/drag-drop.directive.d.ts +12 -0
  26. package/directives/format-datepicker.d.ts +8 -0
  27. package/directives/format-input.directive.d.ts +29 -0
  28. package/directives/multi-language-table-paginator.d.ts +12 -0
  29. package/directives/pattern.directive.d.ts +16 -0
  30. package/directives/style-paginator.directive.d.ts +31 -0
  31. package/enums/action-type.enum.d.ts +5 -0
  32. package/enums/align.enum.d.ts +5 -0
  33. package/enums/column-type.enum.d.ts +14 -0
  34. package/enums/dialog-type.enum.d.ts +5 -0
  35. package/enums/file-type.enum.d.ts +13 -0
  36. package/enums/icon-type.enum.d.ts +4 -0
  37. package/fesm2022/c10t-nice-component-library.mjs +9024 -0
  38. package/fesm2022/c10t-nice-component-library.mjs.map +1 -0
  39. package/index.d.ts +75 -0
  40. package/models/base.model.d.ts +5 -0
  41. package/models/button-click.event.d.ts +6 -0
  42. package/models/components/bread-crumb.model.d.ts +5 -0
  43. package/models/components/button.model.d.ts +16 -0
  44. package/models/components/checkbox.model.d.ts +7 -0
  45. package/models/components/column.model.d.ts +37 -0
  46. package/models/components/custom-dialog-data-config.model.d.ts +16 -0
  47. package/models/components/dialog-import-file-config.model.d.ts +9 -0
  48. package/models/components/flat-tree-config.model.d.ts +5 -0
  49. package/models/components/flat-tree-node.model.d.ts +16 -0
  50. package/models/components/flat-tree.model.d.ts +7 -0
  51. package/models/components/range-date-picker.model.d.ts +7 -0
  52. package/models/components/select.model.d.ts +7 -0
  53. package/models/components/table-footer.model.d.ts +10 -0
  54. package/models/components/table-paging-request.model.d.ts +6 -0
  55. package/models/components/table-paging-response.model.d.ts +6 -0
  56. package/models/components/upload.model.d.ts +11 -0
  57. package/models/menu.model.d.ts +10 -0
  58. package/models/navigator.model.d.ts +10 -0
  59. package/models/nice-component-library.config.d.ts +13 -0
  60. package/models/oauth/authority.d.ts +3 -0
  61. package/models/oauth/oAuth2AuthenticationDto.d.ts +7 -0
  62. package/models/oauth/principal.d.ts +10 -0
  63. package/models/oauth/user.authentication.d.ts +4 -0
  64. package/models/permission.model.d.ts +7 -0
  65. package/models/role.model.d.ts +12 -0
  66. package/models/ui.state.d.ts +5 -0
  67. package/modules/angular-material.module.d.ts +45 -0
  68. package/modules/nice-component-library.module.d.ts +46 -0
  69. package/package.json +59 -0
  70. package/pipes/secure.pipe.d.ts +13 -0
  71. package/services/MultiTranslateHttpLoader.d.ts +13 -0
  72. package/services/api.service.d.ts +42 -0
  73. package/services/authorities.resolver.service.d.ts +18 -0
  74. package/services/authorities.service.d.ts +12 -0
  75. package/services/date-util.service.d.ts +23 -0
  76. package/services/flat.tree.service.d.ts +7 -0
  77. package/services/form-state.service.d.ts +9 -0
  78. package/services/jsog.http.interceptor.d.ts +11 -0
  79. package/services/loader.interceptor.d.ts +13 -0
  80. package/services/loader.service.d.ts +7 -0
  81. package/services/ns-validator.service.d.ts +48 -0
  82. package/services/singleton.translate.service.d.ts +8 -0
  83. package/services/table.service.d.ts +24 -0
  84. package/services/utils.service.d.ts +47 -0
  85. package/src/styles/base.theme.scss +3112 -0
  86. package/src/styles/components/cva-breadcrumb.scss +38 -0
  87. package/src/styles/components/cva-counter-input.scss +45 -0
  88. package/src/styles/components/cva-custom-dialog.scss +7 -0
  89. package/src/styles/components/cva-date-picker.scss +16 -0
  90. package/src/styles/components/cva-date-range-picker.scss +22 -0
  91. package/src/styles/components/cva-flat-tree.scss +171 -0
  92. package/src/styles/components/cva-input.scss +120 -0
  93. package/src/styles/components/cva-loader.scss +36 -0
  94. package/src/styles/components/cva-multi-select-autocomplete.scss +128 -0
  95. package/src/styles/components/cva-multi-upload.scss +145 -0
  96. package/src/styles/components/cva-radio-button.scss +58 -0
  97. package/src/styles/components/cva-smart-table.scss +129 -0
  98. package/src/styles/components/cva-table.scss +98 -0
  99. package/src/styles/components/cva-tree.scss +76 -0
  100. package/src/styles/fonts/Comfortaa-Medium.ttf +0 -0
  101. package/src/styles/fonts/Exo-Regular.ttf +0 -0
  102. package/src/styles/fonts/Mali-Medium.ttf +0 -0
  103. package/src/styles/fonts/VarelaRound-Regular.ttf +0 -0
  104. package/src/styles/fonts/fa-brands-400.eot +0 -0
  105. package/src/styles/fonts/fa-brands-400.svg +3570 -0
  106. package/src/styles/fonts/fa-brands-400.ttf +0 -0
  107. package/src/styles/fonts/fa-brands-400.woff +0 -0
  108. package/src/styles/fonts/fa-brands-400.woff2 +0 -0
  109. package/src/styles/fonts/fa-duotone-900.eot +0 -0
  110. package/src/styles/fonts/fa-duotone-900.svg +15055 -0
  111. package/src/styles/fonts/fa-duotone-900.ttf +0 -0
  112. package/src/styles/fonts/fa-duotone-900.woff +0 -0
  113. package/src/styles/fonts/fa-duotone-900.woff2 +0 -0
  114. package/src/styles/fonts/fa-light-300.eot +0 -0
  115. package/src/styles/fonts/fa-light-300.svg +12330 -0
  116. package/src/styles/fonts/fa-light-300.ttf +0 -0
  117. package/src/styles/fonts/fa-light-300.woff +0 -0
  118. package/src/styles/fonts/fa-light-300.woff2 +0 -0
  119. package/src/styles/fonts/fa-regular-400.eot +0 -0
  120. package/src/styles/fonts/fa-regular-400.svg +11256 -0
  121. package/src/styles/fonts/fa-regular-400.ttf +0 -0
  122. package/src/styles/fonts/fa-regular-400.woff +0 -0
  123. package/src/styles/fonts/fa-regular-400.woff2 +0 -0
  124. package/src/styles/fonts/fa-solid-900.eot +0 -0
  125. package/src/styles/fonts/fa-solid-900.svg +9588 -0
  126. package/src/styles/fonts/fa-solid-900.ttf +0 -0
  127. package/src/styles/fonts/fa-solid-900.woff +0 -0
  128. package/src/styles/fonts/fa-solid-900.woff2 +0 -0
  129. package/src/styles/fonts/fontawesome-webfont.eot +0 -0
  130. package/src/styles/fonts/fontawesome-webfont.svg +2671 -0
  131. package/src/styles/fonts/fontawesome-webfont.ttf +0 -0
  132. package/src/styles/fonts/fontawesome-webfont.woff +0 -0
  133. package/src/styles/fonts/fontawesome-webfont.woff2 +0 -0
  134. package/src/styles/fonts/glyphter.eot +0 -0
  135. package/src/styles/fonts/glyphter.svg +1 -0
  136. package/src/styles/fonts/glyphter.ttf +0 -0
  137. package/src/styles/fonts/glyphter.woff +0 -0
  138. package/src/styles/themes/athena.theme.scss +1684 -0
  139. package/src/styles/themes/button-default.style.scss +961 -0
  140. package/src/styles/themes/default.theme.scss +939 -0
  141. package/src/styles/themes/fonts-awesome.scss +12756 -0
  142. package/src/styles/themes/glyphter.scss +27 -0
  143. package/src/styles/themes/hera.theme.scss +1600 -0
  144. package/src/styles/themes/poseidon.theme.scss +1639 -0
  145. package/src/styles/themes/zeus.theme.scss +1655 -0
package/index.d.ts ADDED
@@ -0,0 +1,75 @@
1
+ import { NavigatorModel } from './models/navigator.model';
2
+ import { ButtonClickEvent } from './models/button-click.event';
3
+ import { ButtonModel } from './models/components/button.model';
4
+ import { CheckboxModel } from './models/components/checkbox.model';
5
+ import { ColumnModel } from './models/components/column.model';
6
+ import { ColumnTypeEnum } from './enums/column-type.enum';
7
+ import { AlignEnum } from './enums/align.enum';
8
+ import { IconTypeEnum } from './enums/icon-type.enum';
9
+ import { MenuModel } from './models/menu.model';
10
+ import { OAuth2AuthenticationDto } from './models/oauth/oAuth2AuthenticationDto';
11
+ import { Authority } from './models/oauth/authority';
12
+ import { TablePagingResponseModel } from './models/components/table-paging-response.model';
13
+ import { TablePagingRequestModel } from './models/components/table-paging-request.model';
14
+ import { RoleModel } from './models/role.model';
15
+ import { SelectModel } from './models/components/select.model';
16
+ import { UIState } from './models/ui.state';
17
+ import { BaseModel } from './models/base.model';
18
+ import { FileTypeEnum } from './enums/file-type.enum';
19
+ import { UploadModel } from './models/components/upload.model';
20
+ import { BreadCrumbModel } from './models/components/bread-crumb.model';
21
+ import { FlatTreeModel } from './models/components/flat-tree.model';
22
+ import { TableFooterModel } from './models/components/table-footer.model';
23
+ import { RangeDatePickerModel } from './models/components/range-date-picker.model';
24
+ import { FlatTreeConfigModel } from './models/components/flat-tree-config.model';
25
+ import { FlatTreeNodeModel } from './models/components/flat-tree-node.model';
26
+ import { DialogTypeEnum } from './enums/dialog-type.enum';
27
+ import { CustomDialogDataConfigModel } from './models/components/custom-dialog-data-config.model';
28
+ import { Principal } from "./models/oauth/principal";
29
+ import { DialogImportFileConfigModel } from './models/components/dialog-import-file-config.model';
30
+ import { PermissionModel } from './models/permission.model';
31
+ import { ActionTypeEnum } from './enums/action-type.enum';
32
+ export { NavigatorModel, ButtonClickEvent, ButtonModel, CheckboxModel, ColumnModel, ColumnTypeEnum, TableFooterModel, MenuModel, OAuth2AuthenticationDto, Principal, Authority, TablePagingResponseModel, TablePagingRequestModel, RoleModel, SelectModel, UIState, BaseModel, AlignEnum, FileTypeEnum, UploadModel, BreadCrumbModel, FlatTreeModel, IconTypeEnum, RangeDatePickerModel, FlatTreeNodeModel, FlatTreeConfigModel, CustomDialogDataConfigModel, DialogTypeEnum, DialogImportFileConfigModel, PermissionModel, ActionTypeEnum, };
33
+ export { BaseTableComponent } from './components/base/base-table.component';
34
+ export { BaseSearchComponent } from './components/base/base-search.component';
35
+ export { BaseAddEditComponent } from './components/base/base-add-edit.component';
36
+ export { MultiTranslateHttpLoader } from './services/MultiTranslateHttpLoader';
37
+ export { CvaTableComponent } from './components/table/cva-table.component';
38
+ export { CvaSmartTableComponent } from './components/table/cva-smart-table.component';
39
+ export { CvaInputComponent } from './components/cva-input.component';
40
+ export { CvaCounterInputComponent } from './components/cva-counter-input.component';
41
+ export { CvaDatePickerComponent } from './components/datepicker/cva-date-picker.component';
42
+ export { CvaRangeDatePickerComponent } from './components/datepicker/cva-range-date-picker.component';
43
+ export { CvaMultiSelectAutocomplete } from './components/cva-multi-select-autocomplete';
44
+ export { CvaMultiUploadComponent } from './components/upload/cva-multi-upload.component';
45
+ export { CvaUploadFileComponent } from './components/upload/cva-upload-file.component';
46
+ export { CvaMultiUploadImgComponent } from './components/upload/cva-multi-upload-img.component';
47
+ export { CvaBreadcrumbComponent } from './components/cva-breadcrumb.component';
48
+ export { CvaLoaderComponent } from './components/cva-loader.component';
49
+ export { CvaTreeComponent } from './components/cva-tree.component';
50
+ export { CvaCustomDialogComponent } from './components/cva-custom-dialog.component';
51
+ export { CvaRadiobuttonComponent } from './components/cva-radiobutton.component';
52
+ export { CvaFlatTreeComponent } from './components/tree/cva-flat-tree.component';
53
+ export { CvaFlatTreeNodeLeftComponent } from './components/tree/cva-flat-tree-node-left.component';
54
+ export { CvaFlatTreeNodeRightComponent } from './components/tree/cva-flat-tree-node-right.component';
55
+ export { CvaDialogImportFileComponent } from './components/upload/cva-dialog-import-file.component';
56
+ export { CvaQuillEditorComponent } from './components/cva-quill-editor.component';
57
+ export * from './services/api.service';
58
+ export * from './services/date-util.service';
59
+ export * from './services/form-state.service';
60
+ export * from './services/utils.service';
61
+ export * from './services/jsog.http.interceptor';
62
+ export * from './services/loader.service';
63
+ export * from './services/loader.interceptor';
64
+ export * from './services/ns-validator.service';
65
+ export * from './services/authorities.service';
66
+ export * from './services/authorities.resolver.service';
67
+ export * from './services/singleton.translate.service';
68
+ export * from './services/table.service';
69
+ export * from './directives/drag-drop.directive';
70
+ export * from './directives/format-input.directive';
71
+ export * from './directives/pattern.directive';
72
+ export * from './directives/style-paginator.directive';
73
+ export * from './pipes/secure.pipe';
74
+ export * from './modules/nice-component-library.module';
75
+ export * from './models/nice-component-library.config';
@@ -0,0 +1,5 @@
1
+ export declare class BaseModel {
2
+ id?: number | null;
3
+ checked?: boolean;
4
+ invalid?: boolean;
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare class ButtonClickEvent {
2
+ action: string;
3
+ object: any;
4
+ index: number | null | undefined;
5
+ constructor(action: string, object: any, index?: number | null);
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare class BreadCrumbModel {
2
+ label: string;
3
+ url: string;
4
+ constructor(label: string, url: string);
5
+ }
@@ -0,0 +1,16 @@
1
+ import { AlignEnum } from "../../enums/align.enum";
2
+ import { IconTypeEnum } from "../../enums/icon-type.enum";
3
+ export declare class ButtonModel {
4
+ columnDef: string;
5
+ color?: string;
6
+ icon: string;
7
+ iconType?: IconTypeEnum;
8
+ click: string;
9
+ isShowHeader?: boolean;
10
+ title?: string;
11
+ display?: (e: any) => boolean;
12
+ disabled?: (e: any) => boolean;
13
+ className?: string;
14
+ header?: ButtonModel | string;
15
+ alignHeader?: AlignEnum;
16
+ }
@@ -0,0 +1,7 @@
1
+ export declare class CheckboxModel {
2
+ id: number;
3
+ viewValue: string;
4
+ checked: boolean;
5
+ disabled: boolean | undefined;
6
+ constructor(id: number, viewValue: string, checked: boolean, disabled?: boolean);
7
+ }
@@ -0,0 +1,37 @@
1
+ import { ColumnTypeEnum } from '../../enums/column-type.enum';
2
+ import { SelectModel } from './select.model';
3
+ import { AlignEnum } from '../../enums/align.enum';
4
+ import { TableFooterModel } from './table-footer.model';
5
+ import { ButtonModel } from "./button.model";
6
+ export declare class ColumnModel {
7
+ columnDef: string;
8
+ header: ((e: any) => string) | string | undefined;
9
+ title: (e: any) => string;
10
+ cell: (e: any) => string;
11
+ align?: AlignEnum;
12
+ alignHeader?: AlignEnum;
13
+ link?: (e: any) => string;
14
+ style?: (e: any) => string;
15
+ className?: ((e: any) => string) | string;
16
+ headerClassName?: (() => string) | string;
17
+ columnType?: ColumnTypeEnum | ((e: any) => ColumnTypeEnum);
18
+ onCellValueChange?: (e: any) => void;
19
+ onHeaderCellValueChange?: (val: any) => void;
20
+ disabled?: (e: any) => boolean;
21
+ optionValues?: (e: any) => SelectModel[];
22
+ display?: (e: any) => boolean;
23
+ isShowHeader?: boolean;
24
+ isNotShowHeaderCheckbox?: boolean;
25
+ isRequired?: boolean | (() => boolean);
26
+ min?: (e: any) => any;
27
+ max?: (e: any) => any;
28
+ hasWordBreakStyle?: boolean;
29
+ validate?: (e: any) => any | null;
30
+ errorMessage?: Map<string, () => string>;
31
+ isTree?: boolean;
32
+ isDecimal?: boolean | (() => boolean);
33
+ isExpandOptionColumn?: () => boolean;
34
+ footer?: TableFooterModel;
35
+ footers?: TableFooterModel[];
36
+ button?: ButtonModel;
37
+ }
@@ -0,0 +1,16 @@
1
+ import { DialogTypeEnum } from "../../enums/dialog-type.enum";
2
+ export declare class CustomDialogDataConfigModel {
3
+ type: DialogTypeEnum;
4
+ maxLength?: number;
5
+ msg?: string;
6
+ msgDetail?: string;
7
+ errorMsg?: string;
8
+ btnOKString?: string;
9
+ btnOKClass?: string;
10
+ btnOK_IconClass?: string;
11
+ btnCancelClass?: string;
12
+ btnCancel_IconClass?: string;
13
+ btnCancelString?: string;
14
+ customClass?: string;
15
+ hideIconButton?: boolean;
16
+ }
@@ -0,0 +1,9 @@
1
+ import { Observable } from "rxjs";
2
+ export declare class DialogImportFileConfigModel {
3
+ downloadTemplateFunc?: () => void;
4
+ importFunc?: (file: File | undefined) => Observable<any>;
5
+ downloadErrorFile?: (errorImportExcelUrl: String) => void;
6
+ confirmMsgKey: string;
7
+ successMsgKey: string;
8
+ errorMsgKey: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare class FlatTreeConfigModel {
2
+ isDynamicConfig: boolean;
3
+ display: ((node: any) => boolean) | boolean;
4
+ disabled: ((node: any) => boolean) | boolean;
5
+ }
@@ -0,0 +1,16 @@
1
+ export declare class FlatTreeNodeModel {
2
+ children?: FlatTreeNodeModel[];
3
+ value: any;
4
+ displayValue: string;
5
+ checked?: boolean;
6
+ checkedDisplay?: boolean;
7
+ filterChecked?: boolean;
8
+ level: number;
9
+ expandable?: boolean;
10
+ isExpanded?: boolean;
11
+ isFilterExpanded?: boolean;
12
+ display?: boolean;
13
+ _displayFuncInput?: ((node: any) => boolean) | boolean;
14
+ disabled?: boolean;
15
+ _disabledFuncInput?: ((node: any) => boolean) | boolean;
16
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from "../base.model";
2
+ export declare class FlatTreeModel {
3
+ rootData: BaseModel[];
4
+ value: (node: any) => string | number;
5
+ display: (node: any) => string;
6
+ children: (node: any) => any[];
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare class RangeDatePickerModel {
2
+ fromDate: any;
3
+ toDate: any;
4
+ constructor(fromDate?: any, toDate?: any);
5
+ isString(inputValue: any): boolean;
6
+ reset(): void;
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare class SelectModel {
2
+ value: any;
3
+ displayValue: string;
4
+ disabled: boolean | undefined;
5
+ rawData: any;
6
+ constructor(value: any, displayValue: string, disabled?: boolean, rawData?: any);
7
+ }
@@ -0,0 +1,10 @@
1
+ import { AlignEnum } from '../../enums/align.enum';
2
+ export declare class TableFooterModel {
3
+ columnDef: string;
4
+ title: (e: any) => string;
5
+ cell: (e: any) => string;
6
+ colspan: number | ((e: any) => number);
7
+ align?: AlignEnum;
8
+ className?: ((e: any) => string) | string;
9
+ display?: (e: any) => boolean;
10
+ }
@@ -0,0 +1,6 @@
1
+ export declare class TablePagingRequestModel {
2
+ text: string;
3
+ pageSize: number;
4
+ pageNumber: number;
5
+ totalElements: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ export declare class TablePagingResponseModel {
2
+ content: any[];
3
+ size: number | null;
4
+ number: number | null;
5
+ totalElements: number | null;
6
+ }
@@ -0,0 +1,11 @@
1
+ export declare class UploadModel {
2
+ id?: number;
3
+ name: string;
4
+ type?: string;
5
+ binary: File | null;
6
+ previewValue: string | ArrayBuffer | null;
7
+ constructor(name: string, binary: File | null, previewValue: string | ArrayBuffer | null, type?: string, id?: number);
8
+ static init(url: string): UploadModel;
9
+ static getFileType(url: string): string;
10
+ static getFileName(url: string): string;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { FormGroup } from "@angular/forms";
2
+ import { BaseModel } from "./base.model";
3
+ export declare class MenuModel extends BaseModel {
4
+ clientId: string | null;
5
+ code: string | null;
6
+ url: string | null;
7
+ appType: string | null;
8
+ parentMenu: MenuModel | null;
9
+ constructor(form: FormGroup | number);
10
+ }
@@ -0,0 +1,10 @@
1
+ export declare class NavigatorModel {
2
+ displayName: string;
3
+ disabled?: boolean;
4
+ iconName: string;
5
+ roleMenu: string;
6
+ route?: string;
7
+ children?: NavigatorModel[];
8
+ isOnlyIcon: boolean;
9
+ expanded: boolean;
10
+ }
@@ -0,0 +1,13 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export interface NiceComponentLibraryConfig {
3
+ BASE_URL: string;
4
+ BASE_AUTHORIZATION_URL: string;
5
+ PAGE_SIZE: number;
6
+ PAGE_SIZE_OPTIONS: number[];
7
+ API_DATE_FORMAT: string;
8
+ DIS_DATE_FORMAT: string;
9
+ DIS_DATE_TIME_FORMAT?: string;
10
+ DIALOG_LOGO?: string;
11
+ NO_IMAGE_AVAILABLE?: string;
12
+ }
13
+ export declare const InjectTokenNextSolutionsConfig: InjectionToken<NiceComponentLibraryConfig>;
@@ -0,0 +1,3 @@
1
+ export declare class Authority {
2
+ authority: string;
3
+ }
@@ -0,0 +1,7 @@
1
+ import { UserAuthentication } from './user.authentication';
2
+ import { Authority } from './authority';
3
+ export declare class OAuth2AuthenticationDto {
4
+ userAuthentication: UserAuthentication | null;
5
+ authorities: Authority[] | null;
6
+ name: string | null;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { RoleModel } from '../role.model';
2
+ export declare class Principal {
3
+ username: string | null;
4
+ firstName: string | null;
5
+ lastName: string | null;
6
+ roles: RoleModel[] | null;
7
+ mustChangePassword: boolean | undefined | null;
8
+ attemptLoginFailed: number | undefined | null;
9
+ enabled: boolean;
10
+ }
@@ -0,0 +1,4 @@
1
+ import { Principal } from './principal';
2
+ export declare class UserAuthentication {
3
+ principal: Principal | null;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from "./base.model";
2
+ export declare class PermissionModel extends BaseModel {
3
+ clientId: string | undefined;
4
+ description: string | undefined;
5
+ id: number | null;
6
+ url: string | undefined;
7
+ }
@@ -0,0 +1,12 @@
1
+ import { MenuModel } from './menu.model';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { PermissionModel } from "./permission.model";
4
+ import { BaseModel } from "./base.model";
5
+ export declare class RoleModel extends BaseModel {
6
+ clientId: string | null;
7
+ roleName: string | null;
8
+ description: string;
9
+ permissions: PermissionModel[];
10
+ menus: MenuModel[];
11
+ constructor(form: FormGroup | number);
12
+ }
@@ -0,0 +1,5 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ export declare class UIState {
3
+ moduleName: string;
4
+ formGroup: FormGroup;
5
+ }
@@ -0,0 +1,45 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/material/autocomplete";
3
+ import * as i2 from "@angular/material/button";
4
+ import * as i3 from "@angular/material/button-toggle";
5
+ import * as i4 from "@angular/material/card";
6
+ import * as i5 from "@angular/material/chips";
7
+ import * as i6 from "@angular/material/checkbox";
8
+ import * as i7 from "@angular/material/datepicker";
9
+ import * as i8 from "@angular/material/table";
10
+ import * as i9 from "@angular/material/dialog";
11
+ import * as i10 from "@angular/material/form-field";
12
+ import * as i11 from "@angular/material/grid-list";
13
+ import * as i12 from "@angular/material/icon";
14
+ import * as i13 from "@angular/material/input";
15
+ import * as i14 from "@angular/material/list";
16
+ import * as i15 from "@angular/material/menu";
17
+ import * as i16 from "@angular/material/paginator";
18
+ import * as i17 from "@angular/material/progress-bar";
19
+ import * as i18 from "@angular/material/progress-spinner";
20
+ import * as i19 from "@angular/material/core";
21
+ import * as i20 from "@angular/material/select";
22
+ import * as i21 from "@angular/material/sidenav";
23
+ import * as i22 from "@angular/material/slider";
24
+ import * as i23 from "@angular/material/slide-toggle";
25
+ import * as i24 from "@angular/material/snack-bar";
26
+ import * as i25 from "@angular/material/sort";
27
+ import * as i26 from "@angular/material/stepper";
28
+ import * as i27 from "@angular/material/tabs";
29
+ import * as i28 from "@angular/material/toolbar";
30
+ import * as i29 from "@angular/material/tooltip";
31
+ import * as i30 from "@angular/material/tree";
32
+ import * as i31 from "@angular/cdk/overlay";
33
+ import * as i32 from "@angular/cdk/portal";
34
+ import * as i33 from "@angular/cdk/bidi";
35
+ import * as i34 from "@angular/cdk/a11y";
36
+ import * as i35 from "@angular/cdk/observers";
37
+ import * as i36 from "@angular/material/radio";
38
+ import * as i37 from "@angular/cdk/scrolling";
39
+ import * as i38 from "@angular/cdk-experimental/scrolling";
40
+ import * as i39 from "@angular/cdk/tree";
41
+ export declare class AngularMaterialModule {
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularMaterialModule, never>;
43
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularMaterialModule, never, [typeof i1.MatAutocompleteModule, typeof i2.MatButtonModule, typeof i3.MatButtonToggleModule, typeof i4.MatCardModule, typeof i5.MatChipsModule, typeof i6.MatCheckboxModule, typeof i7.MatDatepickerModule, typeof i8.MatTableModule, typeof i9.MatDialogModule, typeof i10.MatFormFieldModule, typeof i11.MatGridListModule, typeof i12.MatIconModule, typeof i13.MatInputModule, typeof i14.MatListModule, typeof i15.MatMenuModule, typeof i16.MatPaginatorModule, typeof i17.MatProgressBarModule, typeof i18.MatProgressSpinnerModule, typeof i19.MatRippleModule, typeof i20.MatSelectModule, typeof i21.MatSidenavModule, typeof i22.MatSliderModule, typeof i23.MatSlideToggleModule, typeof i24.MatSnackBarModule, typeof i25.MatSortModule, typeof i26.MatStepperModule, typeof i27.MatTabsModule, typeof i28.MatToolbarModule, typeof i29.MatTooltipModule, typeof i30.MatTreeModule, typeof i31.OverlayModule, typeof i32.PortalModule, typeof i33.BidiModule, typeof i34.A11yModule, typeof i19.MatCommonModule, typeof i35.ObserversModule, typeof i36.MatRadioModule, typeof i37.ScrollingModule, typeof i38.ScrollingModule, typeof i39.CdkTreeModule], [typeof i1.MatAutocompleteModule, typeof i2.MatButtonModule, typeof i3.MatButtonToggleModule, typeof i4.MatCardModule, typeof i5.MatChipsModule, typeof i6.MatCheckboxModule, typeof i7.MatDatepickerModule, typeof i8.MatTableModule, typeof i9.MatDialogModule, typeof i10.MatFormFieldModule, typeof i11.MatGridListModule, typeof i12.MatIconModule, typeof i13.MatInputModule, typeof i14.MatListModule, typeof i15.MatMenuModule, typeof i16.MatPaginatorModule, typeof i17.MatProgressBarModule, typeof i18.MatProgressSpinnerModule, typeof i19.MatRippleModule, typeof i20.MatSelectModule, typeof i21.MatSidenavModule, typeof i22.MatSliderModule, typeof i23.MatSlideToggleModule, typeof i24.MatSnackBarModule, typeof i25.MatSortModule, typeof i26.MatStepperModule, typeof i27.MatTabsModule, typeof i28.MatToolbarModule, typeof i29.MatTooltipModule, typeof i30.MatTreeModule, typeof i31.OverlayModule, typeof i32.PortalModule, typeof i33.BidiModule, typeof i34.A11yModule, typeof i19.MatCommonModule, typeof i35.ObserversModule, typeof i36.MatRadioModule, typeof i37.ScrollingModule, typeof i38.ScrollingModule, typeof i39.CdkTreeModule]>;
44
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularMaterialModule>;
45
+ }
@@ -0,0 +1,46 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { NiceComponentLibraryConfig } from '../models/nice-component-library.config';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../components/table/cva-table.component";
5
+ import * as i2 from "../components/table/cva-smart-table.component";
6
+ import * as i3 from "../components/cva-input.component";
7
+ import * as i4 from "../components/cva-counter-input.component";
8
+ import * as i5 from "../components/datepicker/cva-date-picker.component";
9
+ import * as i6 from "../components/datepicker/cva-range-date-picker.component";
10
+ import * as i7 from "../components/cva-multi-select-autocomplete";
11
+ import * as i8 from "../directives/drag-drop.directive";
12
+ import * as i9 from "../components/upload/cva-multi-upload.component";
13
+ import * as i10 from "../components/upload/cva-upload-file.component";
14
+ import * as i11 from "../components/upload/cva-multi-upload-img.component";
15
+ import * as i12 from "../components/cva-breadcrumb.component";
16
+ import * as i13 from "../components/cva-loader.component";
17
+ import * as i14 from "../components/cva-tree.component";
18
+ import * as i15 from "../components/cva-custom-dialog.component";
19
+ import * as i16 from "../components/cva-radiobutton.component";
20
+ import * as i17 from "../directives/style-paginator.directive";
21
+ import * as i18 from "../pipes/secure.pipe";
22
+ import * as i19 from "../components/tree/cva-flat-tree.component";
23
+ import * as i20 from "../components/tree/cva-flat-tree-node-left.component";
24
+ import * as i21 from "../components/tree/cva-flat-tree-node-right.component";
25
+ import * as i22 from "../components/table/cva-header-expand-button.component";
26
+ import * as i23 from "../directives/pattern.directive";
27
+ import * as i24 from "../directives/format-input.directive";
28
+ import * as i25 from "../components/upload/cva-dialog-import-file.component";
29
+ import * as i26 from "../components/base/base-search.component";
30
+ import * as i27 from "../components/base/base-add-edit.component";
31
+ import * as i28 from "../components/cva-quill-editor.component";
32
+ import * as i29 from "@angular/common";
33
+ import * as i30 from "@angular/forms";
34
+ import * as i31 from "./angular-material.module";
35
+ import * as i32 from "@angular/router";
36
+ import * as i33 from "@ngx-translate/core";
37
+ import * as i34 from "ngx-quill";
38
+ import * as i35 from "@angular/flex-layout";
39
+ export declare class NiceComponentLibraryModule {
40
+ static forRoot(config?: {
41
+ data: NiceComponentLibraryConfig;
42
+ }): ModuleWithProviders<NiceComponentLibraryModule>;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceComponentLibraryModule, never>;
44
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceComponentLibraryModule, [typeof i1.CvaTableComponent, typeof i2.CvaSmartTableComponent, typeof i3.CvaInputComponent, typeof i4.CvaCounterInputComponent, typeof i5.CvaDatePickerComponent, typeof i6.CvaRangeDatePickerComponent, typeof i7.CvaMultiSelectAutocomplete, typeof i8.DragDropDirective, typeof i9.CvaMultiUploadComponent, typeof i10.CvaUploadFileComponent, typeof i11.CvaMultiUploadImgComponent, typeof i12.CvaBreadcrumbComponent, typeof i13.CvaLoaderComponent, typeof i14.CvaTreeComponent, typeof i15.CvaCustomDialogComponent, typeof i16.CvaRadiobuttonComponent, typeof i17.StylePaginatorDirective, typeof i18.SecureImgPipe, typeof i19.CvaFlatTreeComponent, typeof i20.CvaFlatTreeNodeLeftComponent, typeof i21.CvaFlatTreeNodeRightComponent, typeof i22.CvaHeaderExpandButtonComponent, typeof i23.PatternDirective, typeof i24.FormatInputDirective, typeof i25.CvaDialogImportFileComponent, typeof i26.BaseSearchComponent, typeof i27.BaseAddEditComponent, typeof i28.CvaQuillEditorComponent], [typeof i29.CommonModule, typeof i30.FormsModule, typeof i30.ReactiveFormsModule, typeof i31.AngularMaterialModule, typeof i32.RouterModule, typeof i33.TranslateModule, typeof i34.QuillModule, typeof i35.FlexLayoutModule], [typeof i1.CvaTableComponent, typeof i2.CvaSmartTableComponent, typeof i3.CvaInputComponent, typeof i4.CvaCounterInputComponent, typeof i5.CvaDatePickerComponent, typeof i6.CvaRangeDatePickerComponent, typeof i7.CvaMultiSelectAutocomplete, typeof i8.DragDropDirective, typeof i9.CvaMultiUploadComponent, typeof i10.CvaUploadFileComponent, typeof i11.CvaMultiUploadImgComponent, typeof i12.CvaBreadcrumbComponent, typeof i13.CvaLoaderComponent, typeof i14.CvaTreeComponent, typeof i15.CvaCustomDialogComponent, typeof i16.CvaRadiobuttonComponent, typeof i17.StylePaginatorDirective, typeof i19.CvaFlatTreeComponent, typeof i18.SecureImgPipe, typeof i23.PatternDirective, typeof i24.FormatInputDirective, typeof i20.CvaFlatTreeNodeLeftComponent, typeof i21.CvaFlatTreeNodeRightComponent, typeof i25.CvaDialogImportFileComponent, typeof i26.BaseSearchComponent, typeof i27.BaseAddEditComponent, typeof i28.CvaQuillEditorComponent]>;
45
+ static ɵinj: i0.ɵɵInjectorDeclaration<NiceComponentLibraryModule>;
46
+ }
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@c10t/nice-component-library",
3
+ "version": "0.0.1-beta",
4
+ "main": "lib/bundles/ncl-nice-component-library.umd.js",
5
+ "module": "fesm2022/c10t-nice-component-library.mjs",
6
+ "es2015": "lib/fesm2015/ncl-nice-component-library.js",
7
+ "esm5": "lib/esm5/ncl-nice-component-library.js",
8
+ "esm2015": "lib/esm2015/ncl-nice-component-library.js",
9
+ "fesm5": "lib/fesm5/ncl-nice-component-library.js",
10
+ "fesm2015": "lib/fesm2015/ncl-nice-component-library.js",
11
+ "typings": "index.d.ts",
12
+ "metadata": "lib/ncl-nice-component-library.metadata.json",
13
+ "sideEffects": false,
14
+ "description": "nice-component-library",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "peerDependencies": {
19
+ "@angular/animations": "~19.1.5",
20
+ "@angular/cdk": "~19.1.3",
21
+ "@angular/cdk-experimental": "~19.1.3",
22
+ "@angular/common": "~19.1.5",
23
+ "@angular/core": "~19.1.5",
24
+ "@angular/flex-layout": "~15.0.0-beta.42",
25
+ "@angular/forms": "~19.1.5",
26
+ "@angular/material": "~19.1.3",
27
+ "@angular/platform-browser": "~19.1.5",
28
+ "@angular/router": "~19.1.5",
29
+ "@ngx-translate/core": "~16.0.4",
30
+ "@ngx-translate/http-loader": "~16.0.1",
31
+ "@types/file-saver": "~2.0.7",
32
+ "core-js": "~3.40.0",
33
+ "file-saver": "~2.0.5",
34
+ "jsog-typescript": "~1.0.0-1",
35
+ "ngx-filesaver": "~19.0.0",
36
+ "ngx-toastr": "~19.0.0",
37
+ "rxjs": "~7.8.1",
38
+ "zone.js": "~0.15.0"
39
+ },
40
+ "keywords": [
41
+ "ncl",
42
+ "c10t",
43
+ "vtl",
44
+ "Nice Component Library"
45
+ ],
46
+ "author": "c10t",
47
+ "exports": {
48
+ "./package.json": {
49
+ "default": "./package.json"
50
+ },
51
+ ".": {
52
+ "types": "./index.d.ts",
53
+ "default": "./fesm2022/c10t-nice-component-library.mjs"
54
+ }
55
+ },
56
+ "dependencies": {
57
+ "tslib": "^2.3.0"
58
+ }
59
+ }
@@ -0,0 +1,13 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SecureImgPipe implements PipeTransform {
7
+ private http;
8
+ private sanitizer;
9
+ constructor(http: HttpClient, sanitizer: DomSanitizer);
10
+ transform(url: string): Observable<SafeUrl>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SecureImgPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<SecureImgPipe, "secure", false>;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { TranslateLoader } from '@ngx-translate/core';
3
+ import { Observable } from 'rxjs';
4
+ export interface ITranslationResource {
5
+ prefix: string;
6
+ suffix: string;
7
+ }
8
+ export declare class MultiTranslateHttpLoader implements TranslateLoader {
9
+ private http;
10
+ private resources;
11
+ constructor(http: HttpClient, resources: ITranslationResource[]);
12
+ getTranslation(lang: string): Observable<any>;
13
+ }
@@ -0,0 +1,42 @@
1
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
2
+ import { Injector } from '@angular/core';
3
+ import { FileSaverService } from 'ngx-filesaver';
4
+ import { NiceComponentLibraryConfig } from '../models/nice-component-library.config';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApiService {
8
+ private http;
9
+ private fileSaver;
10
+ private injector;
11
+ config: NiceComponentLibraryConfig;
12
+ constructor(http: HttpClient, fileSaver: FileSaverService, injector: Injector);
13
+ getFullUrl(url: string): string;
14
+ get<T>(nativeUrl: string, params: HttpParams, baseUrl?: string): Observable<T>;
15
+ getJSON<T>(file: string): Observable<T>;
16
+ post(nativeUrl: string, obj: any, options?: {
17
+ headers?: HttpHeaders;
18
+ params?: HttpParams;
19
+ }, baseUrl?: string): Observable<Object>;
20
+ postBlob(nativeUrl: string, obj: any, options: {
21
+ headers?: HttpHeaders;
22
+ params?: HttpParams;
23
+ }, baseUrl?: string): Observable<HttpResponse<Blob>>;
24
+ patch(nativeUrl: string, obj: any, options?: {
25
+ headers?: HttpHeaders;
26
+ params?: HttpParams;
27
+ }, baseUrl?: string): Observable<Object>;
28
+ put(nativeUrl: string, obj: any, options?: {
29
+ headers?: HttpHeaders;
30
+ params?: HttpParams;
31
+ }, baseUrl?: string): Observable<Object>;
32
+ delete(nativeUrl: string, options?: {
33
+ headers?: HttpHeaders;
34
+ params?: HttpParams;
35
+ }, baseUrl?: string): Observable<Object>;
36
+ saveFile(nativeUrl: string, obj: any, options: {
37
+ headers?: HttpHeaders;
38
+ params?: HttpParams;
39
+ }, baseUrl?: string, onErrorFunc?: (err: any) => void): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, never>;
41
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
42
+ }
@@ -0,0 +1,18 @@
1
+ import { Injector } from '@angular/core';
2
+ import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
3
+ import { Observable } from 'rxjs';
4
+ import { OAuth2AuthenticationDto } from '../models/oauth/oAuth2AuthenticationDto';
5
+ import { AuthoritiesService } from './authorities.service';
6
+ import { NiceComponentLibraryConfig } from '../models/nice-component-library.config';
7
+ import { ApiService } from './api.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class AuthoritiesResolverService implements Resolve<Observable<OAuth2AuthenticationDto>> {
10
+ protected authoritiesService: AuthoritiesService;
11
+ protected injector: Injector;
12
+ protected apiService: ApiService;
13
+ config: NiceComponentLibraryConfig;
14
+ constructor(authoritiesService: AuthoritiesService, injector: Injector, apiService: ApiService);
15
+ resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<OAuth2AuthenticationDto> | Observable<Observable<OAuth2AuthenticationDto>> | Promise<Observable<OAuth2AuthenticationDto>>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthoritiesResolverService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthoritiesResolverService>;
18
+ }