coer-elements 0.0.30 → 0.0.32

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 (31) hide show
  1. package/components/lib/coer-accordion/coer-accordion.component.d.ts +18 -0
  2. package/components/lib/coer-form/coer-form.component.d.ts +3 -1
  3. package/components/lib/components.module.d.ts +34 -33
  4. package/components/public-api.d.ts +1 -1
  5. package/esm2022/components/lib/coer-accordion/coer-accordion.component.mjs +53 -0
  6. package/esm2022/components/lib/coer-button/coer-button.component.mjs +11 -5
  7. package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +1 -1
  8. package/esm2022/components/lib/coer-form/coer-form.component.mjs +9 -3
  9. package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +3 -3
  10. package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +1 -1
  11. package/esm2022/components/lib/coer-sidenav/coer-sidenav.component.mjs +2 -2
  12. package/esm2022/components/lib/coer-sidenav/coer-tree-accordion/coer-tree-accordion.component.mjs +3 -2
  13. package/esm2022/components/lib/components.module.mjs +8 -3
  14. package/esm2022/components/public-api.mjs +2 -2
  15. package/esm2022/tools/lib/coer-grid.templates.mjs +34 -0
  16. package/esm2022/tools/lib/page.class.mjs +7 -1
  17. package/esm2022/tools/lib/service.class.mjs +2 -2
  18. package/esm2022/tools/public-api.mjs +2 -1
  19. package/fesm2022/coer-elements-components.mjs +95 -60
  20. package/fesm2022/coer-elements-components.mjs.map +1 -1
  21. package/fesm2022/coer-elements-tools.mjs +41 -2
  22. package/fesm2022/coer-elements-tools.mjs.map +1 -1
  23. package/package.json +7 -7
  24. package/styles/angular-material.scss +1 -0
  25. package/styles/bootstrap.scss +0 -6
  26. package/styles/coer-elements.css +25 -6
  27. package/styles/containers.scss +2 -0
  28. package/{components/lib/coer-grid → tools/lib}/coer-grid.templates.d.ts +2 -0
  29. package/tools/lib/page.class.d.ts +4 -0
  30. package/tools/public-api.d.ts +1 -0
  31. package/esm2022/components/lib/coer-grid/coer-grid.templates.mjs +0 -30
@@ -1,4 +1,5 @@
1
1
  /********** COER styles **********/
2
+ @import "../components/lib/coer-accordion//coer-accordion.component.scss";
2
3
  @import "../components/lib/coer-sidenav/coer-sidenav.component.scss";
3
4
  @import "../components/lib/coer-sidenav/coer-tree-accordion/coer-tree-accordion.component.scss";
4
5
  @import "../components/lib/coer-sidenav/coer-menu-option/coer-menu-option.component.scss";
@@ -8,12 +8,6 @@
8
8
  word-break: break-word;
9
9
  }
10
10
 
11
- .invisible {
12
- visibility: hidden !important;
13
- width: 0px !important;
14
- height: 0px !important;
15
- }
16
-
17
11
  @import "../components/lib/coer-page-title/coer-page-title.component.scss";
18
12
  @import "../components/lib/coer-grid/coer-grid.component.scss";
19
13
  @import "../components/lib/coer-modal/coer-modal.component.scss";
@@ -22,6 +22,26 @@ input[type=file] {
22
22
  }
23
23
 
24
24
  /********** COER styles **********/
25
+ mat-expansion-panel.coer-accordion {
26
+ overflow: visible !important;
27
+ }
28
+ mat-expansion-panel.coer-accordion mat-expansion-panel-header {
29
+ height: 35px !important;
30
+ background-color: whitesmoke !important;
31
+ padding-left: 12px !important;
32
+ }
33
+ mat-expansion-panel.coer-accordion mat-expansion-panel-header span {
34
+ font-size: 16px !important;
35
+ }
36
+ mat-expansion-panel.coer-accordion mat-expansion-panel-header mat-panel-title {
37
+ display: flex;
38
+ align-items: center;
39
+ gap: 5px;
40
+ }
41
+ mat-expansion-panel.coer-accordion div.mat-expansion-panel-body {
42
+ padding: 0px !important;
43
+ }
44
+
25
45
  mat-drawer-container {
26
46
  height: calc(100vh - 45px) !important;
27
47
  }
@@ -382,6 +402,7 @@ div.coer-button {
382
402
  }
383
403
  div.coer-button a {
384
404
  display: inline-block !important;
405
+ height: fit-content !important;
385
406
  }
386
407
  div.coer-button a.animate__disabled {
387
408
  animation-duration: 0s !important;
@@ -2156,12 +2177,6 @@ div.coer-tab mat-tab-group div.mat-mdc-tab-body-wrapper mat-tab-body div.mat-mdc
2156
2177
  word-break: break-word;
2157
2178
  }
2158
2179
 
2159
- .invisible {
2160
- visibility: hidden !important;
2161
- width: 0px !important;
2162
- height: 0px !important;
2163
- }
2164
-
2165
2180
  header.coer-page-title {
2166
2181
  margin: 15px 30px 0px 30px;
2167
2182
  }
@@ -3204,6 +3219,8 @@ aside.toast-container > * {
3204
3219
  animation-duration: 1.5s;
3205
3220
  animation-iteration-count: 1;
3206
3221
  animation-fill-mode: both;
3222
+ position: relative;
3223
+ z-index: 100;
3207
3224
  }
3208
3225
 
3209
3226
  .coer-container-tab {
@@ -3216,6 +3233,7 @@ aside.toast-container > * {
3216
3233
  animation-duration: 1.5s;
3217
3234
  animation-iteration-count: 1;
3218
3235
  animation-fill-mode: both;
3236
+ position: relative;
3219
3237
  padding: 0px;
3220
3238
  }
3221
3239
  .coer-container-tab .row {
@@ -3232,6 +3250,7 @@ aside.toast-container > * {
3232
3250
  animation-duration: 1.5s;
3233
3251
  animation-iteration-count: 1;
3234
3252
  animation-fill-mode: both;
3253
+ position: relative;
3235
3254
  padding-bottom: 5px;
3236
3255
  }
3237
3256
 
@@ -13,10 +13,12 @@
13
13
  animation-duration: 1.5s;
14
14
  animation-iteration-count: 1;
15
15
  animation-fill-mode: both;
16
+ position: relative;
16
17
  }
17
18
 
18
19
  .coer-container {
19
20
  @include Container();
21
+ z-index: 100;
20
22
  }
21
23
 
22
24
  .coer-container-tab {
@@ -6,4 +6,6 @@ export declare const GridTemplates: {
6
6
  coerSwitchTemplate: (item: IGridItem<any>) => IGridCoerSwitch;
7
7
  /** Template for text property */
8
8
  coerTextboxTemplate: (item: IGridItem<any>) => IGridCoerTextBox;
9
+ /** Template for text property */
10
+ coerIconTemplate: (icon: string, color?: string) => string;
9
11
  };
@@ -55,6 +55,10 @@ export declare class Page implements AfterViewInit, OnDestroy {
55
55
  protected ReloadPage(): void;
56
56
  /** */
57
57
  protected Log(value: any, log?: string | null): void;
58
+ protected isActiveTemplate: (item: import("coer-elements/interfaces").IGridItem<any>) => string;
59
+ protected coerSwitchTemplate: (item: import("coer-elements/interfaces").IGridItem<any>) => import("coer-elements/interfaces").IGridCoerSwitch;
60
+ protected coerTextboxTemplate: (item: import("coer-elements/interfaces").IGridItem<any>) => import("coer-elements/interfaces").IGridCoerTextBox;
61
+ protected coerIconTemplate: (icon: string, color?: string) => string;
58
62
  static ɵfac: i0.ɵɵFactoryDeclaration<Page, never>;
59
63
  static ɵcmp: i0.ɵɵComponentDeclaration<Page, "ng-component", never, {}, {}, never, never, false, never>;
60
64
  }
@@ -1,5 +1,6 @@
1
1
  export * from './lib/coer-alert/coer-alert.component';
2
2
  export * from './lib/breadcrumbs.class';
3
+ export * from './lib/coer-grid.templates';
3
4
  export * from './lib/colors.class';
4
5
  export * from './lib/control-value.class';
5
6
  export * from './lib/date-time.class';
@@ -1,30 +0,0 @@
1
- export const GridTemplates = {
2
- /** Template for boolean property */
3
- isActiveTemplate: (item) => {
4
- if (item.value) {
5
- return `
6
- <span class='text-green-bold'>
7
- <i class="fa-solid fa-circle-check"></i> Active
8
- </span>
9
- `;
10
- }
11
- else {
12
- return `
13
- <span class='text-gray-bold'>
14
- <i class="fa-solid fa-circle-minus"></i> Disabled
15
- </span>
16
- `;
17
- }
18
- },
19
- /** Template for boolean property */
20
- coerSwitchTemplate: (item) => ({
21
- isInput: true,
22
- tooltip: `${item.value ? 'Active' : 'Disabled'}`
23
- }),
24
- /** Template for text property */
25
- coerTextboxTemplate: (item) => ({
26
- isInput: true,
27
- isInvalid: item.value.length <= 0
28
- })
29
- };
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29lci1ncmlkLnRlbXBsYXRlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvY29tcG9uZW50cy9saWIvY29lci1ncmlkL2NvZXItZ3JpZC50ZW1wbGF0ZXMudHMiXSwibmF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