coer-elements 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/components/index.d.ts +12 -0
  2. package/components/lib/coer-button/coer-button.component.d.ts +3 -3
  3. package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +28 -0
  4. package/components/lib/coer-filebox/coer-filebox.component.d.ts +33 -0
  5. package/components/lib/coer-form/coer-form.component.d.ts +33 -0
  6. package/components/lib/coer-grid/coer-grid.component.d.ts +53 -0
  7. package/components/lib/coer-grid/coer-grid.extension.d.ts +105 -0
  8. package/components/lib/coer-modal/coer-modal.component.d.ts +38 -0
  9. package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +56 -0
  10. package/components/lib/coer-page-title/coer-page-title.component.d.ts +12 -0
  11. package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +75 -0
  12. package/components/lib/coer-switch/coer-switch.component.d.ts +31 -0
  13. package/components/lib/coer-tab/coer-tab.component.d.ts +35 -0
  14. package/components/lib/coer-textarea/coer-textarea.component.d.ts +51 -0
  15. package/components/lib/coer-textbox/coer-textbox.component.d.ts +57 -0
  16. package/components/lib/components.module.d.ts +24 -5
  17. package/directives/index.d.ts +3 -0
  18. package/directives/lib/coer-ref.directive.d.ts +14 -0
  19. package/directives/lib/directives.module.d.ts +8 -0
  20. package/directives/lib/life-cycle.directive.d.ts +14 -0
  21. package/esm2022/components/index.mjs +13 -1
  22. package/esm2022/components/lib/coer-button/coer-button.component.mjs +2 -2
  23. package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +84 -0
  24. package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +104 -0
  25. package/esm2022/components/lib/coer-form/coer-form.component.mjs +102 -0
  26. package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +515 -0
  27. package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +412 -0
  28. package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +108 -0
  29. package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +260 -0
  30. package/esm2022/components/lib/coer-page-title/coer-page-title.component.mjs +44 -0
  31. package/esm2022/components/lib/coer-selectbox/coer-selectbox.component.mjs +339 -0
  32. package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +94 -0
  33. package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +116 -0
  34. package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +157 -0
  35. package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +196 -0
  36. package/esm2022/components/lib/components.module.mjs +93 -57
  37. package/esm2022/directives/index.mjs +4 -0
  38. package/esm2022/directives/lib/coer-ref.directive.mjs +23 -0
  39. package/esm2022/directives/lib/directives.module.mjs +25 -0
  40. package/esm2022/directives/lib/life-cycle.directive.mjs +29 -0
  41. package/esm2022/interfaces/coer-filebox/index.mjs +3 -0
  42. package/esm2022/interfaces/coer-grid/index.mjs +21 -0
  43. package/esm2022/interfaces/index.mjs +1 -3
  44. package/esm2022/interfaces/lib/coer-filebox/file-image.interface.mjs +2 -0
  45. package/esm2022/interfaces/lib/coer-filebox/file.interface.mjs +2 -0
  46. package/esm2022/interfaces/lib/coer-grid/grid-button-by-row.interface.mjs +2 -0
  47. package/esm2022/interfaces/lib/coer-grid/grid-checkbox.interface.mjs +2 -0
  48. package/esm2022/interfaces/lib/coer-grid/grid-coer-numberbox.interface.mjs +2 -0
  49. package/esm2022/interfaces/lib/coer-grid/grid-coer-selectbox.interface.mjs +2 -0
  50. package/esm2022/interfaces/lib/coer-grid/grid-coer-switch.interface.mjs +2 -0
  51. package/esm2022/interfaces/lib/coer-grid/grid-coer-textbox.interface.mjs +2 -0
  52. package/esm2022/interfaces/lib/coer-grid/grid-column.interface.mjs +2 -0
  53. package/esm2022/interfaces/lib/coer-grid/grid-data-source.interface.mjs +2 -0
  54. package/esm2022/interfaces/lib/coer-grid/grid-header-button.interface.mjs +2 -0
  55. package/esm2022/interfaces/lib/coer-grid/grid-header-export-button.interface.mjs +2 -0
  56. package/esm2022/interfaces/lib/coer-grid/grid-header.interface.mjs +2 -0
  57. package/esm2022/interfaces/lib/coer-grid/grid-import.interface.mjs +2 -0
  58. package/esm2022/interfaces/lib/coer-grid/grid-input-checkbox.interface.mjs +2 -0
  59. package/esm2022/interfaces/lib/coer-grid/grid-input-switch-change.interface.mjs +2 -0
  60. package/esm2022/interfaces/lib/coer-grid/grid-input-textbox.interface.mjs +2 -0
  61. package/esm2022/interfaces/lib/coer-grid/grid-item.interface.mjs +2 -0
  62. package/esm2022/interfaces/lib/coer-grid/grid-keyup-enter.interface.mjs +2 -0
  63. package/esm2022/interfaces/lib/coer-grid/grid-length.interface.mjs +2 -0
  64. package/esm2022/interfaces/lib/coer-grid/grid-search.interface.mjs +2 -0
  65. package/esm2022/interfaces/lib/coer-grid/grid-sort.interface.mjs +2 -0
  66. package/esm2022/interfaces/lib/menu/menu-option-selected.interface.mjs +2 -0
  67. package/esm2022/interfaces/lib/menu/menu.interface.mjs +2 -0
  68. package/esm2022/interfaces/lib/page-title/breadcrumb.interface.mjs +2 -0
  69. package/esm2022/interfaces/lib/page-title/go-back.interface.mjs +2 -0
  70. package/esm2022/interfaces/page-title/index.mjs +3 -0
  71. package/esm2022/pipes/index.mjs +5 -0
  72. package/esm2022/pipes/lib/html.pipe.mjs +18 -0
  73. package/esm2022/pipes/lib/no-image.pipe.mjs +23 -0
  74. package/esm2022/pipes/lib/numeric-format.pipe.mjs +15 -0
  75. package/esm2022/pipes/lib/pipes.module.mjs +31 -0
  76. package/esm2022/public_api.mjs +3 -1
  77. package/esm2022/signals/lib/breakpoint.signal.mjs +2 -2
  78. package/esm2022/signals/lib/is-loading.signal.mjs +2 -2
  79. package/esm2022/signals/lib/is-modal-open.signal.mjs +2 -2
  80. package/esm2022/tools/index.mjs +3 -2
  81. package/esm2022/tools/lib/breadcrumbs.class.mjs +2 -2
  82. package/esm2022/tools/lib/date-time.class.mjs +14 -7
  83. package/esm2022/tools/lib/files.class.mjs +2 -2
  84. package/esm2022/tools/lib/menu.class.mjs +23 -0
  85. package/esm2022/tools/lib/page.class.mjs +6 -6
  86. package/esm2022/tools/lib/screen.class.mjs +9 -1
  87. package/esm2022/tools/lib/source.class.mjs +3 -3
  88. package/esm2022/tools/lib/tools.mjs +220 -0
  89. package/fesm2022/coer-elements.mjs +3266 -603
  90. package/fesm2022/coer-elements.mjs.map +1 -1
  91. package/interfaces/coer-filebox/index.d.ts +2 -0
  92. package/interfaces/coer-grid/index.d.ts +20 -0
  93. package/interfaces/index.d.ts +0 -2
  94. package/interfaces/lib/coer-filebox/file-image.interface.d.ts +14 -0
  95. package/interfaces/lib/coer-filebox/file.interface.d.ts +5 -0
  96. package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +6 -0
  97. package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +5 -0
  98. package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +12 -0
  99. package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +9 -0
  100. package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +6 -0
  101. package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +11 -0
  102. package/interfaces/lib/coer-grid/grid-column.interface.d.ts +22 -0
  103. package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +6 -0
  104. package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +8 -0
  105. package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +10 -0
  106. package/interfaces/lib/coer-grid/grid-header.interface.d.ts +5 -0
  107. package/interfaces/lib/coer-grid/grid-import.interface.d.ts +4 -0
  108. package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +5 -0
  109. package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +5 -0
  110. package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +5 -0
  111. package/interfaces/lib/coer-grid/grid-item.interface.d.ts +5 -0
  112. package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +6 -0
  113. package/interfaces/lib/coer-grid/grid-length.interface.d.ts +5 -0
  114. package/interfaces/lib/coer-grid/grid-search.interface.d.ts +4 -0
  115. package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
  116. package/interfaces/lib/menu/menu-option-selected.interface.d.ts +9 -0
  117. package/interfaces/lib/menu/menu.interface.d.ts +6 -0
  118. package/interfaces/page-title/index.d.ts +2 -0
  119. package/package.json +1 -1
  120. package/pipes/index.d.ts +4 -0
  121. package/pipes/lib/html.pipe.d.ts +10 -0
  122. package/pipes/lib/no-image.pipe.d.ts +7 -0
  123. package/pipes/lib/numeric-format.pipe.d.ts +7 -0
  124. package/pipes/lib/pipes.module.d.ts +9 -0
  125. package/public_api.d.ts +2 -0
  126. package/signals/lib/is-loading.signal.d.ts +1 -1
  127. package/signals/lib/is-modal-open.signal.d.ts +1 -1
  128. package/src/interfaces/coer-filebox/index.ts +2 -0
  129. package/src/interfaces/coer-grid/index.ts +20 -0
  130. package/src/interfaces/index.ts +1 -3
  131. package/src/interfaces/lib/coer-filebox/file-image.interface.ts +14 -0
  132. package/src/interfaces/lib/coer-filebox/file.interface.ts +5 -0
  133. package/src/interfaces/lib/coer-grid/grid-button-by-row.interface.ts +7 -0
  134. package/src/interfaces/lib/coer-grid/grid-checkbox.interface.ts +5 -0
  135. package/src/interfaces/lib/coer-grid/grid-coer-numberbox.interface.ts +12 -0
  136. package/src/interfaces/lib/coer-grid/grid-coer-selectbox.interface.ts +9 -0
  137. package/src/interfaces/lib/coer-grid/grid-coer-switch.interface.ts +6 -0
  138. package/src/interfaces/lib/coer-grid/grid-coer-textbox.interface.ts +11 -0
  139. package/src/interfaces/lib/coer-grid/grid-column.interface.ts +23 -0
  140. package/src/interfaces/lib/coer-grid/grid-data-source.interface.ts +6 -0
  141. package/src/interfaces/lib/coer-grid/grid-header-button.interface.ts +8 -0
  142. package/src/interfaces/lib/coer-grid/grid-header-export-button.interface.ts +10 -0
  143. package/src/interfaces/lib/coer-grid/grid-header.interface.ts +5 -0
  144. package/src/interfaces/lib/coer-grid/grid-import.interface.ts +4 -0
  145. package/src/interfaces/lib/coer-grid/grid-input-checkbox.interface.ts +5 -0
  146. package/src/interfaces/lib/coer-grid/grid-input-switch-change.interface.ts +5 -0
  147. package/src/interfaces/lib/coer-grid/grid-input-textbox.interface.ts +5 -0
  148. package/src/interfaces/lib/coer-grid/grid-item.interface.ts +5 -0
  149. package/src/interfaces/lib/coer-grid/grid-keyup-enter.interface.ts +6 -0
  150. package/src/interfaces/lib/coer-grid/grid-length.interface.ts +5 -0
  151. package/src/interfaces/lib/coer-grid/grid-search.interface.ts +4 -0
  152. package/src/interfaces/lib/coer-grid/grid-sort.interface.ts +5 -0
  153. package/src/interfaces/lib/menu/menu-option-selected.interface.ts +10 -0
  154. package/src/interfaces/lib/menu/menu-selected.interface.ts +11 -0
  155. package/src/interfaces/lib/menu/menu.interface.ts +6 -0
  156. package/src/interfaces/menu/index.ts +3 -0
  157. package/src/interfaces/page-title/index.ts +2 -0
  158. package/tools/index.d.ts +2 -1
  159. package/tools/lib/breadcrumbs.class.d.ts +1 -1
  160. package/tools/lib/date-time.class.d.ts +4 -2
  161. package/tools/lib/menu.class.d.ts +8 -0
  162. package/tools/lib/page.class.d.ts +4 -3
  163. package/tools/lib/screen.class.d.ts +3 -1
  164. package/tools/lib/source.class.d.ts +1 -1
  165. package/tools/lib/{generi-tools.d.ts → tools.d.ts} +7 -5
  166. package/esm2022/interfaces/lib/breadcrumb.interface.mjs +0 -2
  167. package/esm2022/interfaces/lib/go-back.interface.mjs +0 -2
  168. package/esm2022/tools/lib/generi-tools.mjs +0 -199
  169. /package/interfaces/lib/{breadcrumb.interface.d.ts → page-title/breadcrumb.interface.d.ts} +0 -0
  170. /package/interfaces/lib/{go-back.interface.d.ts → page-title/go-back.interface.d.ts} +0 -0
  171. /package/src/interfaces/lib/{breadcrumb.interface.ts → page-title/breadcrumb.interface.ts} +0 -0
  172. /package/src/interfaces/lib/{go-back.interface.ts → page-title/go-back.interface.ts} +0 -0
  173. /package/src/styles/{coer-elements.scss → index.scss} +0 -0
@@ -0,0 +1,2 @@
1
+ export * from '../lib/coer-filebox/file-image.interface';
2
+ export * from '../lib/coer-filebox/file.interface';
@@ -0,0 +1,20 @@
1
+ export * from '../lib/coer-grid/grid-button-by-row.interface';
2
+ export * from '../lib/coer-grid/grid-checkbox.interface';
3
+ export * from '../lib/coer-grid/grid-coer-numberbox.interface';
4
+ export * from '../lib/coer-grid/grid-coer-selectbox.interface';
5
+ export * from '../lib/coer-grid/grid-coer-switch.interface';
6
+ export * from '../lib/coer-grid/grid-coer-textbox.interface';
7
+ export * from '../lib/coer-grid/grid-column.interface';
8
+ export * from '../lib/coer-grid/grid-data-source.interface';
9
+ export * from '../lib/coer-grid/grid-header-button.interface';
10
+ export * from '../lib/coer-grid/grid-header-export-button.interface';
11
+ export * from '../lib/coer-grid/grid-header.interface';
12
+ export * from '../lib/coer-grid/grid-import.interface';
13
+ export * from '../lib/coer-grid/grid-input-checkbox.interface';
14
+ export * from '../lib/coer-grid/grid-input-switch-change.interface';
15
+ export * from '../lib/coer-grid/grid-input-textbox.interface';
16
+ export * from '../lib/coer-grid/grid-item.interface';
17
+ export * from '../lib/coer-grid/grid-keyup-enter.interface';
18
+ export * from '../lib/coer-grid/grid-length.interface';
19
+ export * from '../lib/coer-grid/grid-search.interface';
20
+ export * from '../lib/coer-grid/grid-sort.interface';
@@ -1,6 +1,4 @@
1
1
  export * from './lib/app-source.interface';
2
- export * from './lib/breadcrumb.interface';
3
2
  export * from './lib/coer-ref.interface';
4
- export * from './lib/go-back.interface';
5
3
  export * from './lib/patch.interface';
6
4
  export * from './lib/screen-size.interface';
@@ -0,0 +1,14 @@
1
+ export interface IFileImage {
2
+ value: string | File | null | undefined;
3
+ name?: string;
4
+ width?: string;
5
+ maxWidth?: string;
6
+ height?: string;
7
+ maxHeight?: string;
8
+ marginTop?: string;
9
+ marginRight?: string;
10
+ marginBottom?: string;
11
+ marginLeft?: string;
12
+ allowDelete?: boolean;
13
+ allowExpand?: boolean;
14
+ }
@@ -0,0 +1,5 @@
1
+ export interface IFile {
2
+ file: File;
3
+ extension: string;
4
+ base64: string | null;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { IGridItem } from "./grid-item.interface";
2
+ export interface IGridButtonByRow<T> {
3
+ showEditButton?: boolean | ((item: IGridItem<T>) => boolean);
4
+ showDeleteButton?: boolean | ((item: IGridItem<T>) => boolean);
5
+ showGoButton?: boolean | ((item: IGridItem<T>) => boolean);
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridCheckbox {
2
+ show: boolean;
3
+ onlyOneCheck?: boolean;
4
+ checkOnRow?: boolean;
5
+ }
@@ -0,0 +1,12 @@
1
+ export interface IGridCoerNumberBox {
2
+ isInput: boolean;
3
+ isDisabled?: boolean;
4
+ isValid?: boolean;
5
+ isInvalid?: boolean;
6
+ selectOnFocus?: boolean;
7
+ placeholder?: string;
8
+ textPosition?: 'left' | 'center' | 'right';
9
+ min?: number;
10
+ max?: number;
11
+ decimals?: number;
12
+ }
@@ -0,0 +1,9 @@
1
+ export interface IGridCoerSelectBox {
2
+ isInput: boolean;
3
+ isDisabled?: boolean;
4
+ isValid?: boolean;
5
+ isInvalid?: boolean;
6
+ placeholder?: string;
7
+ propDisplay?: string;
8
+ dataSource?: any[];
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface IGridCoerSwitch {
2
+ isInput: boolean;
3
+ isDisabled?: boolean;
4
+ tooltip?: string;
5
+ tooltipPosition?: 'top' | 'right' | 'bottom' | 'left';
6
+ }
@@ -0,0 +1,11 @@
1
+ export interface IGridCoerTextBox {
2
+ isInput: boolean;
3
+ isDisabled?: boolean;
4
+ isValid?: boolean;
5
+ isInvalid?: boolean;
6
+ selectOnFocus?: boolean;
7
+ placeholder?: string;
8
+ textPosition?: 'left' | 'center' | 'right';
9
+ minLength?: number;
10
+ maxLength?: number;
11
+ }
@@ -0,0 +1,22 @@
1
+ import { IGridCoerNumberBox } from "./grid-coer-numberbox.interface";
2
+ import { IGridCoerSelectBox } from "./grid-coer-selectbox.interface";
3
+ import { IGridCoerSwitch } from "./grid-coer-switch.interface";
4
+ import { IGridCoerTextBox } from "./grid-coer-textbox.interface";
5
+ import { IGridItem } from "./grid-item.interface";
6
+ export interface IGridColumn<T> {
7
+ property: string;
8
+ alias?: string;
9
+ width?: string;
10
+ textAlign?: 'left' | 'center' | 'right';
11
+ colorBlue?: boolean | ((item: IGridItem<T>) => boolean);
12
+ colorGreen?: boolean | ((item: IGridItem<T>) => boolean);
13
+ colorYellow?: boolean | ((item: IGridItem<T>) => boolean);
14
+ colorRed?: boolean | ((item: IGridItem<T>) => boolean);
15
+ typeNumber?: boolean | ((item: IGridItem<T>) => boolean);
16
+ typeDate?: boolean | ((item: IGridItem<T>) => boolean);
17
+ template?: string | ((item: IGridItem<T>) => string);
18
+ coerSwitch?: ((item: IGridItem<T>) => IGridCoerSwitch);
19
+ coerTextbox?: ((item: IGridItem<T>) => IGridCoerTextBox);
20
+ coerNumberbox?: ((item: IGridItem<T>) => IGridCoerNumberBox);
21
+ coerSelectbox?: ((item: IGridItem<T>) => IGridCoerSelectBox);
22
+ }
@@ -0,0 +1,6 @@
1
+ export interface IGridDataSource {
2
+ groupBy: string;
3
+ indexGroup: number;
4
+ length: number;
5
+ rows: any[];
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface IGridHeaderButton {
2
+ show: boolean;
3
+ path?: string | (string | number)[];
4
+ tooltip?: string;
5
+ isDisabled?: boolean;
6
+ preventDefault?: boolean;
7
+ Autofill?: boolean;
8
+ }
@@ -0,0 +1,10 @@
1
+ export interface IGridHeaderExportButton {
2
+ show: boolean;
3
+ path?: string | (string | number)[];
4
+ tooltip?: string;
5
+ isDisabled?: boolean;
6
+ fileName?: string;
7
+ onlyColumnFiltered?: boolean;
8
+ onlyRowFiltered?: boolean;
9
+ preventDefault?: boolean;
10
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridHeader {
2
+ indexColumn: number;
3
+ columnName: string;
4
+ width: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface IGridImport<T> {
2
+ data: T[];
3
+ file: File | null;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridInputCheckbox<T> {
2
+ all: boolean;
3
+ checked: boolean;
4
+ rows: T[];
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridInputSwitchChange<T> {
2
+ property: string;
3
+ row: T;
4
+ value: any;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridInputTextbox<T> {
2
+ property: string;
3
+ row: T;
4
+ value: any;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridItem<T> {
2
+ property: string;
3
+ row: T;
4
+ value: any;
5
+ }
@@ -0,0 +1,6 @@
1
+ export interface IGridKeyupEnter {
2
+ id: string;
3
+ input: 'coer-textbox-search' | 'coer-textbox' | 'coer-numberbox' | 'coer-selectbox';
4
+ row: any;
5
+ value: any;
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridLength {
2
+ dataSource: number;
3
+ dataSourceFiltered: number;
4
+ dataSourceSelected: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface IGridSearch {
2
+ show: boolean;
3
+ ignore?: boolean;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridSort {
2
+ columnName: string;
3
+ direction: 'ascendant' | 'descendant' | 'none';
4
+ icon: 'fa-solid fa-arrow-up-wide-short' | 'fa-solid fa-arrow-down-short-wide' | '';
5
+ }
@@ -0,0 +1,9 @@
1
+ import { IMenu } from "./menu.interface";
2
+ export interface IMenuOptionSelected {
3
+ level: number;
4
+ label: string;
5
+ icon: string;
6
+ path: string;
7
+ queryParams: string;
8
+ tree: IMenu[];
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface IMenu {
2
+ label: string;
3
+ icon?: string;
4
+ path?: string;
5
+ items?: IMenu[];
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from '../lib/page-title/breadcrumb.interface';
2
+ export * from '../lib/page-title/go-back.interface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "coer",
@@ -0,0 +1,4 @@
1
+ export * from './lib/pipes.module';
2
+ export * from './lib/html.pipe';
3
+ export * from './lib/no-image.pipe';
4
+ export * from './lib/numeric-format.pipe';
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HtmlPipe implements PipeTransform {
5
+ private sanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(value: string): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<HtmlPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<HtmlPipe, "html", false>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NoImagePipe implements PipeTransform {
4
+ transform(value: string | File | null | undefined): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoImagePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<NoImagePipe, "noImage", false>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NumericFormatPipe implements PipeTransform {
4
+ transform(value: string | number | null | undefined, decimals?: number): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumericFormatPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<NumericFormatPipe, "numericFormat", false>;
7
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./html.pipe";
3
+ import * as i2 from "./no-image.pipe";
4
+ import * as i3 from "./numeric-format.pipe";
5
+ export declare class PipesModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.HtmlPipe, typeof i2.NoImagePipe, typeof i3.NumericFormatPipe], never, [typeof i1.HtmlPipe, typeof i2.NoImagePipe, typeof i3.NumericFormatPipe]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
9
+ }
package/public_api.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export * from './components';
2
+ export * from './directives';
3
+ export * from './pipes';
2
4
  export * from './signals';
3
5
  export * from './tools';
@@ -1 +1 @@
1
- export declare const isLoadingSIG: import("@angular/core").WritableSignal<boolean>;
1
+ export declare const isLoadingSIGNAL: import("@angular/core").WritableSignal<boolean>;
@@ -1 +1 @@
1
- export declare const isModalOpenSIG: import("@angular/core").WritableSignal<boolean>;
1
+ export declare const isModalOpenSIGNAL: import("@angular/core").WritableSignal<boolean>;
@@ -0,0 +1,2 @@
1
+ export * from '../lib/coer-filebox/file-image.interface';
2
+ export * from '../lib/coer-filebox/file.interface';
@@ -0,0 +1,20 @@
1
+ export * from '../lib/coer-grid/grid-button-by-row.interface';
2
+ export * from '../lib/coer-grid/grid-checkbox.interface';
3
+ export * from '../lib/coer-grid/grid-coer-numberbox.interface';
4
+ export * from '../lib/coer-grid/grid-coer-selectbox.interface';
5
+ export * from '../lib/coer-grid/grid-coer-switch.interface';
6
+ export * from '../lib/coer-grid/grid-coer-textbox.interface';
7
+ export * from '../lib/coer-grid/grid-column.interface';
8
+ export * from '../lib/coer-grid/grid-data-source.interface';
9
+ export * from '../lib/coer-grid/grid-header-button.interface';
10
+ export * from '../lib/coer-grid/grid-header-export-button.interface';
11
+ export * from '../lib/coer-grid/grid-header.interface';
12
+ export * from '../lib/coer-grid/grid-import.interface';
13
+ export * from '../lib/coer-grid/grid-input-checkbox.interface';
14
+ export * from '../lib/coer-grid/grid-input-switch-change.interface';
15
+ export * from '../lib/coer-grid/grid-input-textbox.interface';
16
+ export * from '../lib/coer-grid/grid-item.interface';
17
+ export * from '../lib/coer-grid/grid-keyup-enter.interface';
18
+ export * from '../lib/coer-grid/grid-length.interface';
19
+ export * from '../lib/coer-grid/grid-search.interface';
20
+ export * from '../lib/coer-grid/grid-sort.interface';
@@ -1,6 +1,4 @@
1
- export * from './lib/app-source.interface';
2
- export * from './lib/breadcrumb.interface';
1
+ export * from './lib/app-source.interface';
3
2
  export * from './lib/coer-ref.interface';
4
- export * from './lib/go-back.interface';
5
3
  export * from './lib/patch.interface';
6
4
  export * from './lib/screen-size.interface';
@@ -0,0 +1,14 @@
1
+ export interface IFileImage {
2
+ value: string | File | null | undefined;
3
+ name?: string;
4
+ width?: string;
5
+ maxWidth?: string;
6
+ height?: string;
7
+ maxHeight?: string;
8
+ marginTop?: string;
9
+ marginRight?: string;
10
+ marginBottom?: string;
11
+ marginLeft?: string;
12
+ allowDelete?: boolean;
13
+ allowExpand?: boolean;
14
+ }
@@ -0,0 +1,5 @@
1
+ export interface IFile {
2
+ file: File;
3
+ extension: string;
4
+ base64: string | null;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { IGridItem } from "./grid-item.interface";
2
+
3
+ export interface IGridButtonByRow<T> {
4
+ showEditButton?: boolean | ((item: IGridItem<T>) => boolean);
5
+ showDeleteButton?: boolean | ((item: IGridItem<T>) => boolean);
6
+ showGoButton?: boolean | ((item: IGridItem<T>) => boolean);
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridCheckbox {
2
+ show: boolean;
3
+ onlyOneCheck?: boolean;
4
+ checkOnRow?: boolean;
5
+ }
@@ -0,0 +1,12 @@
1
+ export interface IGridCoerNumberBox {
2
+ isInput: boolean;
3
+ isDisabled?: boolean;
4
+ isValid?: boolean;
5
+ isInvalid?: boolean;
6
+ selectOnFocus?: boolean;
7
+ placeholder?: string;
8
+ textPosition?: 'left' | 'center' | 'right';
9
+ min?: number;
10
+ max?: number;
11
+ decimals?: number;
12
+ }
@@ -0,0 +1,9 @@
1
+ export interface IGridCoerSelectBox {
2
+ isInput: boolean;
3
+ isDisabled?: boolean;
4
+ isValid?: boolean;
5
+ isInvalid?: boolean;
6
+ placeholder?: string;
7
+ propDisplay?: string;
8
+ dataSource?: any[];
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface IGridCoerSwitch {
2
+ isInput: boolean;
3
+ isDisabled?: boolean;
4
+ tooltip?: string;
5
+ tooltipPosition?: 'top' | 'right' | 'bottom' | 'left';
6
+ }
@@ -0,0 +1,11 @@
1
+ export interface IGridCoerTextBox {
2
+ isInput: boolean;
3
+ isDisabled?: boolean;
4
+ isValid?: boolean;
5
+ isInvalid?: boolean;
6
+ selectOnFocus?: boolean;
7
+ placeholder?: string;
8
+ textPosition?: 'left' | 'center' | 'right';
9
+ minLength?: number;
10
+ maxLength?: number;
11
+ }
@@ -0,0 +1,23 @@
1
+ import { IGridCoerNumberBox } from "./grid-coer-numberbox.interface";
2
+ import { IGridCoerSelectBox } from "./grid-coer-selectbox.interface";
3
+ import { IGridCoerSwitch } from "./grid-coer-switch.interface";
4
+ import { IGridCoerTextBox } from "./grid-coer-textbox.interface";
5
+ import { IGridItem } from "./grid-item.interface";
6
+
7
+ export interface IGridColumn<T> {
8
+ property: string;
9
+ alias?: string;
10
+ width?: string;
11
+ textAlign?: 'left' | 'center' | 'right';
12
+ colorBlue?: boolean | ((item: IGridItem<T>) => boolean);
13
+ colorGreen?: boolean | ((item: IGridItem<T>) => boolean);
14
+ colorYellow?: boolean | ((item: IGridItem<T>) => boolean);
15
+ colorRed?: boolean | ((item: IGridItem<T>) => boolean);
16
+ typeNumber?: boolean | ((item: IGridItem<T>) => boolean);
17
+ typeDate?: boolean | ((item: IGridItem<T>) => boolean);
18
+ template?: string | ((item: IGridItem<T>) => string);
19
+ coerSwitch?: ((item: IGridItem<T>) => IGridCoerSwitch);
20
+ coerTextbox?: ((item: IGridItem<T>) => IGridCoerTextBox);
21
+ coerNumberbox?: ((item: IGridItem<T>) => IGridCoerNumberBox);
22
+ coerSelectbox?: ((item: IGridItem<T>) => IGridCoerSelectBox);
23
+ }
@@ -0,0 +1,6 @@
1
+ export interface IGridDataSource {
2
+ groupBy: string;
3
+ indexGroup: number;
4
+ length: number;
5
+ rows: any[];
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface IGridHeaderButton {
2
+ show: boolean;
3
+ path?: string | (string | number)[];
4
+ tooltip?: string;
5
+ isDisabled?: boolean;
6
+ preventDefault?: boolean;
7
+ Autofill?: boolean;
8
+ }
@@ -0,0 +1,10 @@
1
+ export interface IGridHeaderExportButton {
2
+ show: boolean;
3
+ path?: string | (string | number)[];
4
+ tooltip?: string;
5
+ isDisabled?: boolean;
6
+ fileName?: string;
7
+ onlyColumnFiltered?: boolean;
8
+ onlyRowFiltered?: boolean;
9
+ preventDefault?: boolean;
10
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridHeader {
2
+ indexColumn: number;
3
+ columnName: string;
4
+ width: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface IGridImport<T> {
2
+ data: T[];
3
+ file: File | null;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridInputCheckbox<T> {
2
+ all: boolean;
3
+ checked: boolean;
4
+ rows: T[];
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridInputSwitchChange<T> {
2
+ property: string;
3
+ row: T;
4
+ value: any;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridInputTextbox<T> {
2
+ property: string;
3
+ row: T;
4
+ value: any;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridItem<T> {
2
+ property: string;
3
+ row: T
4
+ value: any;
5
+ }
@@ -0,0 +1,6 @@
1
+ export interface IGridKeyupEnter {
2
+ id: string;
3
+ input: 'coer-textbox-search' | 'coer-textbox' | 'coer-numberbox' | 'coer-selectbox';
4
+ row: any;
5
+ value: any;
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridLength {
2
+ dataSource: number;
3
+ dataSourceFiltered: number;
4
+ dataSourceSelected: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface IGridSearch {
2
+ show: boolean;
3
+ ignore?: boolean;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IGridSort {
2
+ columnName: string;
3
+ direction: 'ascendant' | 'descendant' | 'none';
4
+ icon: 'fa-solid fa-arrow-up-wide-short' | 'fa-solid fa-arrow-down-short-wide' | '';
5
+ }
@@ -0,0 +1,10 @@
1
+ import { IMenu } from "./menu.interface";
2
+
3
+ export interface IMenuOptionSelected {
4
+ level: number;
5
+ label: string;
6
+ icon: string;
7
+ path: string;
8
+ queryParams: string;
9
+ tree: IMenu[];
10
+ }
@@ -0,0 +1,11 @@
1
+ import { IMenu } from "./menu.interface";
2
+
3
+ export interface IMenuSelected {
4
+ level: number;
5
+ label: string;
6
+ icon: string;
7
+ isExpanded: boolean;
8
+ isCollapsed: boolean;
9
+ items?: IMenu[];
10
+ tree: IMenu[];
11
+ }
@@ -0,0 +1,6 @@
1
+ export interface IMenu {
2
+ label: string;
3
+ icon?: string;
4
+ path?: string;
5
+ items?: IMenu[];
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from '../lib/menu/menu-option-selected.interface';
2
+ export * from '../lib/menu/menu-selected.interface';
3
+ export * from '../lib/menu/menu.interface';
@@ -0,0 +1,2 @@
1
+ export * from '../lib/page-title/breadcrumb.interface';
2
+ export * from '../lib/page-title/go-back.interface';
package/tools/index.d.ts CHANGED
@@ -2,7 +2,8 @@ export * from './lib/breadcrumbs.class';
2
2
  export * from './lib/control-value.class';
3
3
  export * from './lib/date-time.class';
4
4
  export * from './lib/files.class';
5
- export * from './lib/generi-tools';
5
+ export * from './lib/tools';
6
+ export * from './lib/menu.class';
6
7
  export * from './lib/page.class';
7
8
  export * from './lib/screen.class';
8
9
  export * from './lib/source.class';