intelica-library-ui 0.1.99 → 0.1.100

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.
@@ -31,6 +31,8 @@ import * as i3$2 from 'primeng/ripple';
31
31
  import { RippleModule } from 'primeng/ripple';
32
32
  import { Dialog } from 'primeng/dialog';
33
33
  import * as echarts from 'echarts';
34
+ import * as i1$3 from 'primeng/skeleton';
35
+ import { SkeletonModule } from 'primeng/skeleton';
34
36
  import * as XLSX from 'xlsx';
35
37
  import { Workbook } from 'exceljs';
36
38
  import { saveAs } from 'file-saver';
@@ -2748,6 +2750,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
2748
2750
  args: ["document:click", ["$event"]]
2749
2751
  }] } });
2750
2752
 
2753
+ class SkeletonService {
2754
+ isLoading = signal(false);
2755
+ hide() {
2756
+ this.isLoading.set(false);
2757
+ }
2758
+ show() {
2759
+ this.isLoading.set(true);
2760
+ }
2761
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2762
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonService, providedIn: "root" });
2763
+ }
2764
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonService, decorators: [{
2765
+ type: Injectable,
2766
+ args: [{ providedIn: "root" }]
2767
+ }] });
2768
+
2769
+ class SkeletonComponent {
2770
+ skeletonService = inject(SkeletonService);
2771
+ isLoading = this.skeletonService.isLoading;
2772
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2773
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: SkeletonComponent, isStandalone: true, selector: "intelica-skeleton", ngImport: i0, template: "@if(isLoading()){\r\n<ng-content></ng-content>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
2774
+ }
2775
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonComponent, decorators: [{
2776
+ type: Component,
2777
+ args: [{ selector: "intelica-skeleton", imports: [CommonModule], template: "@if(isLoading()){\r\n<ng-content></ng-content>\r\n}\r\n" }]
2778
+ }] });
2779
+
2780
+ class SkeletonTableComponent {
2781
+ /**
2782
+ * @description number of rows to display
2783
+ * @default 6
2784
+ * @type number
2785
+ * @example <intelica-skeleton-table [rows]="6"></intelica-skeleton-table>
2786
+ */
2787
+ rows = 6;
2788
+ /**
2789
+ * @description number of columns to display
2790
+ * @default 6
2791
+ * @type number
2792
+ * @example <intelica-skeleton-table [columns]="6"></intelica-skeleton-table>
2793
+ */
2794
+ columns = 6;
2795
+ columnSizes = [];
2796
+ ngOnInit() {
2797
+ const baseSize = 12 / this.columns;
2798
+ this.columnSizes = Array.from({ length: this.columns }, (_, i) => {
2799
+ return `col-${baseSize}`;
2800
+ });
2801
+ }
2802
+ getRows() {
2803
+ return new Array(this.rows);
2804
+ }
2805
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2806
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: SkeletonTableComponent, isStandalone: true, selector: "intelica-skeleton-table", inputs: { rows: "rows", columns: "columns" }, ngImport: i0, template: "<div class=\"skeletonTable\">\r\n\t<div class=\"mb-2 row justify-content-between\">\r\n\t\t<div class=\"col-1 px-0\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'3rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t\t<div class=\"col-3 px-0\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'3rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-12 px-0 mb-2\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'4rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t</div>\r\n\t@for (row of getRows(); track $index) {\r\n\t<div class=\"row borderBottomRow\">\r\n\t\t@for (column of columnSizes; track $index) {\r\n\t\t<div class=\"{{ column }} px-0\">\r\n\t\t\t<div class=\"bodyPaddingTable\">\r\n\t\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'2rem'\"></p-skeleton>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\t}\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i1$3.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }] });
2807
+ }
2808
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonTableComponent, decorators: [{
2809
+ type: Component,
2810
+ args: [{ selector: "intelica-skeleton-table", imports: [CommonModule, SkeletonModule], template: "<div class=\"skeletonTable\">\r\n\t<div class=\"mb-2 row justify-content-between\">\r\n\t\t<div class=\"col-1 px-0\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'3rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t\t<div class=\"col-3 px-0\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'3rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-12 px-0 mb-2\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'4rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t</div>\r\n\t@for (row of getRows(); track $index) {\r\n\t<div class=\"row borderBottomRow\">\r\n\t\t@for (column of columnSizes; track $index) {\r\n\t\t<div class=\"{{ column }} px-0\">\r\n\t\t\t<div class=\"bodyPaddingTable\">\r\n\t\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'2rem'\"></p-skeleton>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\t}\r\n</div>\r\n" }]
2811
+ }], propDecorators: { rows: [{
2812
+ type: Input
2813
+ }], columns: [{
2814
+ type: Input
2815
+ }] } });
2816
+
2751
2817
  class HtmlToExcelService {
2752
2818
  ExportTOExcel(idTabla, html, filename, tabname, extension) {
2753
2819
  let Table = document.getElementById(idTabla);
@@ -4145,6 +4211,22 @@ const IntelicaTheme = definePreset(Aura, {
4145
4211
  },
4146
4212
  },
4147
4213
  components: {
4214
+ skeleton: {
4215
+ colorScheme: {
4216
+ light: {
4217
+ root: {
4218
+ background: "{surface.200}",
4219
+ animationBackground: "rgba(0,0,0,0.4)",
4220
+ },
4221
+ },
4222
+ dark: {
4223
+ root: {
4224
+ background: "rgba(0, 0, 0, 0.06)",
4225
+ animationBackground: "rgba(0, 0, 0, 0.04)",
4226
+ },
4227
+ },
4228
+ },
4229
+ },
4148
4230
  accordion: {
4149
4231
  root: {
4150
4232
  transitionDuration: "{transition.duration}",
@@ -5970,5 +6052,5 @@ const IntelicaTheme = definePreset(Aura, {
5970
6052
  * Generated bundle index. Do not edit.
5971
6053
  */
5972
6054
 
5973
- export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DynamicInputValidation, EchartComponent, EchartService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaTheme, ItemSplitDirective, LanguageService, ModalDialogComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RowResumenComponent, SearchComponent, SharedService, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TemplateMenuComponent, TermGuard, TermPipe, TermService, decryptData, encryptData, getColor };
6055
+ export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DynamicInputValidation, EchartComponent, EchartService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaTheme, ItemSplitDirective, LanguageService, ModalDialogComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RowResumenComponent, SearchComponent, SharedService, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TemplateMenuComponent, TermGuard, TermPipe, TermService, decryptData, encryptData, getColor };
5974
6056
  //# sourceMappingURL=intelica-library-ui.mjs.map