@seniorsistemas/data-seniorx-core 1.6.0 → 1.7.0

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 (72) hide show
  1. package/core/config/card.type.config.d.ts +2 -0
  2. package/core/config/row-card.type.config.d.ts +2 -0
  3. package/core/types/button.type.d.ts +2 -0
  4. package/core/types/card.type.d.ts +36 -0
  5. package/core/types/filters.type.d.ts +27 -0
  6. package/core/types/row-card.type.d.ts +39 -0
  7. package/core/types/semantics.type.d.ts +5 -0
  8. package/core/types/tab.type.d.ts +5 -0
  9. package/core/types/table.types.d.ts +2 -2
  10. package/esm2022/core/config/card.type.config.mjs +18 -0
  11. package/esm2022/core/config/row-card.type.config.mjs +20 -0
  12. package/esm2022/core/types/button.type.mjs +2 -0
  13. package/esm2022/core/types/card.type.mjs +39 -0
  14. package/esm2022/core/types/filters.type.mjs +2 -0
  15. package/esm2022/core/types/row-card.type.mjs +59 -0
  16. package/esm2022/core/types/semantics.type.mjs +1 -1
  17. package/esm2022/core/types/tab.type.mjs +2 -0
  18. package/esm2022/core/types/table.types.mjs +4 -2
  19. package/esm2022/features/button/button.component.mjs +5 -5
  20. package/esm2022/features/card-list/card/card.component.mjs +34 -0
  21. package/esm2022/features/card-list/card-list.component.mjs +136 -0
  22. package/esm2022/features/checkbox/checkbox.component.mjs +5 -5
  23. package/esm2022/features/combobox/combobox.component.mjs +88 -28
  24. package/esm2022/features/confirm/confirm.component.mjs +13 -13
  25. package/esm2022/features/filters/filters.component.mjs +190 -0
  26. package/esm2022/features/hyperlink/hyperlink.component.mjs +14 -14
  27. package/esm2022/features/inputs.mjs +1 -1
  28. package/esm2022/features/list/list.component.mjs +14 -14
  29. package/esm2022/features/modal/modal.component.mjs +11 -11
  30. package/esm2022/features/modalc/modalc.component.mjs +19 -13
  31. package/esm2022/features/paginator/paginator.component.mjs +43 -0
  32. package/esm2022/features/panel/panel.component.mjs +11 -11
  33. package/esm2022/features/row-card-list/row-card/row-card.component.mjs +58 -0
  34. package/esm2022/features/row-card-list/row-card-list.component.mjs +150 -0
  35. package/esm2022/features/scaffold/scaffold.component.mjs +4 -4
  36. package/esm2022/features/searchbox/searchbox.component.mjs +7 -6
  37. package/esm2022/features/sidebar/sidebar.component.mjs +6 -4
  38. package/esm2022/features/spinner/spinner.component.mjs +6 -8
  39. package/esm2022/features/sql-editor/sql-editor.component.mjs +34 -36
  40. package/esm2022/features/tab/tab.component.mjs +8 -7
  41. package/esm2022/features/table/table.component.mjs +52 -47
  42. package/esm2022/features/textbox/textbox.component.mjs +16 -9
  43. package/esm2022/features/toast/toast.component.mjs +17 -21
  44. package/esm2022/locales/en.json +6 -1
  45. package/esm2022/locales/es-CO.json +7 -2
  46. package/esm2022/locales/pt.json +6 -1
  47. package/esm2022/public-api.mjs +5 -1
  48. package/features/button/button.component.d.ts +5 -3
  49. package/features/card-list/card/card.component.d.ts +11 -0
  50. package/features/card-list/card-list.component.d.ts +36 -0
  51. package/features/combobox/combobox.component.d.ts +25 -8
  52. package/features/confirm/confirm.component.d.ts +4 -4
  53. package/features/filters/filters.component.d.ts +36 -0
  54. package/features/hyperlink/hyperlink.component.d.ts +3 -3
  55. package/features/list/list.component.d.ts +3 -3
  56. package/features/modal/modal.component.d.ts +3 -3
  57. package/features/paginator/paginator.component.d.ts +15 -0
  58. package/features/panel/panel.component.d.ts +4 -4
  59. package/features/row-card-list/row-card/row-card.component.d.ts +18 -0
  60. package/features/row-card-list/row-card-list.component.d.ts +40 -0
  61. package/features/searchbox/searchbox.component.d.ts +1 -1
  62. package/features/spinner/spinner.component.d.ts +1 -1
  63. package/features/sql-editor/sql-editor.component.d.ts +8 -8
  64. package/features/tab/tab.component.d.ts +2 -8
  65. package/features/table/table.component.d.ts +5 -6
  66. package/features/toast/toast.component.d.ts +5 -5
  67. package/fesm2022/seniorsistemas-data-seniorx-core.mjs +883 -226
  68. package/fesm2022/seniorsistemas-data-seniorx-core.mjs.map +1 -1
  69. package/package.json +1 -1
  70. package/public-api.d.ts +4 -0
  71. package/styles.css +49 -48
  72. package/styles.css.map +1 -1
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { SearchTriggerMode } from 'lib/src/core/types/searchbox.type';
3
2
  import { InputsComponent } from '../inputs';
3
+ import { type SearchTriggerMode } from 'lib/src/core/types/searchbox.type';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SearchboxComponent extends InputsComponent<string> {
6
6
  value: string;
@@ -9,7 +9,7 @@ export declare class SpinnerComponent implements OnInit, OnDestroy {
9
9
  constructor($service: SpinnerService);
10
10
  ngOnInit(): void;
11
11
  ngOnDestroy(): void;
12
- getStyle(): any;
12
+ getStyle(): Record<string, string>;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "sdc-spinner", never, { "loading": { "alias": "loading"; "required": true; }; "blockWindow": { "alias": "blockWindow"; "required": false; }; }, {}, never, never, true, never>;
15
15
  }
@@ -1,14 +1,14 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
1
  import { Schema } from '../../core/handlers/sqlAutoComplete';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
3
  import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SqlEditorComponent implements ControlValueAccessor, OnInit, OnDestroy {
6
- height: null | string | number;
7
6
  sql: string;
8
- width: null | string | number;
7
+ height: string | number | null;
8
+ width: string | number | null;
9
+ set schema(value: Schema);
9
10
  onDomainFilter: EventEmitter<string>;
10
11
  editorContainer: ElementRef;
11
- set schema(value: Schema);
12
12
  private $editor;
13
13
  private $onChange;
14
14
  private $onTouched;
@@ -16,12 +16,12 @@ export declare class SqlEditorComponent implements ControlValueAccessor, OnInit,
16
16
  ngOnInit(): void;
17
17
  ngOnDestroy(): void;
18
18
  writeValue(value: string): void;
19
- registerOnChange(fn: any): void;
20
- registerOnTouched(fn: any): void;
21
- setDisabledState?(isDisabled: boolean): void;
19
+ registerOnChange(fn: (val: string) => void): void;
20
+ registerOnTouched(fn: () => void): void;
21
+ setDisabledState(isDisabled: boolean): void;
22
22
  getStyles(): string;
23
23
  private buildExtensions;
24
24
  private updateEditorExtensions;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<SqlEditorComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<SqlEditorComponent, "sdc-sql-editor", never, { "height": { "alias": "height"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "width": { "alias": "width"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; }, { "onDomainFilter": "onDomainFilter"; }, never, never, true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<SqlEditorComponent, "sdc-sql-editor", never, { "sql": { "alias": "sql"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; }, { "onDomainFilter": "onDomainFilter"; }, never, never, true, never>;
27
27
  }
@@ -1,14 +1,9 @@
1
+ import { TabHeader } from 'lib/src/core/types/tab.type';
1
2
  import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
3
  import * as i0 from "@angular/core";
3
- type TabHeader = {
4
- label: string;
5
- disabled: boolean;
6
- id: string;
7
- };
8
4
  export declare class TabComponent implements AfterViewInit, OnDestroy {
9
5
  private host;
10
6
  private zone;
11
- private destroyRef;
12
7
  private cdr;
13
8
  headersRef: ElementRef<HTMLDivElement>;
14
9
  private _activeIndex;
@@ -17,7 +12,7 @@ export declare class TabComponent implements AfterViewInit, OnDestroy {
17
12
  activeIndexChange: EventEmitter<number>;
18
13
  readonly isMobile: boolean;
19
14
  private wcEls;
20
- readonly headers: import("@angular/core").Signal<TabHeader[]>;
15
+ protected readonly headers: import("@angular/core").Signal<TabHeader[]>;
21
16
  private mo?;
22
17
  private readonly _headersEffect;
23
18
  ngAfterViewInit(): void;
@@ -35,4 +30,3 @@ export declare class TabComponent implements AfterViewInit, OnDestroy {
35
30
  static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "sdc-tab", never, { "activeIndex": { "alias": "activeIndex"; "required": false; }; }, { "activeIndexChange": "activeIndexChange"; }, never, ["*"], true, never>;
36
31
  static ngAcceptInputType_activeIndex: unknown;
37
32
  }
38
- export {};
@@ -1,7 +1,7 @@
1
- import { EventEmitter, OnChanges, SimpleChanges, DoCheck } from '@angular/core';
2
- import { RowBase, SortOrder, TableColumn, TableOptions } from 'lib/src/core/types/table.types';
3
- import { SearchTriggerMode } from 'lib/src/core/types/searchbox.type';
4
1
  import { PaginatorState } from 'primeng/paginator';
2
+ import { EventEmitter, OnChanges, SimpleChanges, DoCheck } from '@angular/core';
3
+ import { type RowBase, type SortOrder, type TableColumn, type TableOptions } from 'lib/src/core/types/table.types';
4
+ import { type SearchTriggerMode } from 'lib/src/core/types/searchbox.type';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class TableComponent<T extends RowBase = RowBase> implements OnChanges, DoCheck {
7
7
  cols: TableColumn[];
@@ -29,14 +29,11 @@ export declare class TableComponent<T extends RowBase = RowBase> implements OnCh
29
29
  protected readonly selection: import("@angular/core").WritableSignal<T[]>;
30
30
  protected readonly first: import("@angular/core").WritableSignal<number>;
31
31
  protected readonly rows: import("@angular/core").WritableSignal<number>;
32
- protected cellCfg<K extends 'checkbox' | 'button' | 'tag'>(kind: K): any;
33
- protected tagsOf(row: T, col: TableColumn): any[];
34
32
  protected readonly filteredData: import("@angular/core").Signal<T[]>;
35
33
  protected readonly sortedData: import("@angular/core").Signal<T[]>;
36
34
  protected readonly totalRecords: import("@angular/core").Signal<number>;
37
35
  protected readonly pageData: import("@angular/core").Signal<T[]>;
38
36
  private configHash;
39
- constructor();
40
37
  ngOnChanges(changes: SimpleChanges): void;
41
38
  ngDoCheck(): void;
42
39
  protected onSearchTerm(evOrVal: unknown): void;
@@ -48,6 +45,8 @@ export declare class TableComponent<T extends RowBase = RowBase> implements OnCh
48
45
  protected isRowSelected(row: T): boolean;
49
46
  protected toggleSelectPage(checked: boolean): void;
50
47
  protected isPageFullySelected(): boolean;
48
+ protected cellCfg<K extends 'checkbox' | 'button' | 'tag'>(kind: K): any;
49
+ protected tagsOf(row: T, col: TableColumn): any[];
51
50
  protected _: (obj: T, path: string) => unknown;
52
51
  protected formatDate(value: unknown, _format?: string): string;
53
52
  protected formatCurrency(value: unknown, currency?: string): string;
@@ -1,15 +1,15 @@
1
- import { EventEmitter, OnDestroy } from "@angular/core";
2
- import { Toast } from "lib/src/core/types/toast.type";
1
+ import { Toast } from 'lib/src/core/types/toast.type';
2
+ import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ToastComponent implements OnDestroy {
4
+ export declare class ToastComponent implements OnInit, OnDestroy {
5
5
  toast: Toast;
6
6
  dismiss: EventEmitter<void>;
7
7
  isLeaving: boolean;
8
8
  private timer;
9
- startDismissAnimation(): void;
10
- dismissToast(): void;
11
9
  ngOnInit(): void;
12
10
  ngOnDestroy(): void;
11
+ dismissToast(): void;
12
+ startDismissAnimation(): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "s-toast", never, { "toast": { "alias": "toast"; "required": false; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
15
15
  }