@seniorsistemas/data-seniorx-core 1.7.0 → 1.9.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.
- package/core/types/card.type.d.ts +1 -15
- package/core/types/filters.type.d.ts +9 -6
- package/core/types/row-card.type.d.ts +1 -7
- package/core/types/select-button.type.d.ts +5 -0
- package/core/types/sidebar.type.d.ts +6 -0
- package/core/utils/array.util.d.ts +1 -0
- package/esm2022/core/config/card.type.config.mjs +3 -3
- package/esm2022/core/config/row-card.type.config.mjs +2 -1
- package/esm2022/core/handlers/sqlFormatter.mjs +2 -2
- package/esm2022/core/types/card.type.mjs +2 -39
- package/esm2022/core/types/filters.type.mjs +1 -1
- package/esm2022/core/types/row-card.type.mjs +1 -1
- package/esm2022/core/types/select-button.type.mjs +2 -0
- package/esm2022/core/types/sidebar.type.mjs +2 -0
- package/esm2022/core/types/table.type.mjs +28 -0
- package/esm2022/core/utils/array.util.mjs +4 -0
- package/esm2022/features/button/button.component.mjs +5 -5
- package/esm2022/features/card-list/card/card.component.mjs +5 -5
- package/esm2022/features/card-list/card-list.component.mjs +8 -8
- package/esm2022/features/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/features/code-editor/code-editor.component.mjs +216 -0
- package/esm2022/features/combobox/combobox.component.mjs +10 -7
- package/esm2022/features/confirm/confirm.component.mjs +3 -3
- package/esm2022/features/filters/filters.component.mjs +35 -9
- package/esm2022/features/hyperlink/hyperlink.component.mjs +3 -3
- package/esm2022/features/inputs.mjs +3 -3
- package/esm2022/features/list/list.component.mjs +3 -3
- package/esm2022/features/modal/modal.component.mjs +3 -3
- package/esm2022/features/modalc/modalc.component.mjs +4 -4
- package/esm2022/features/paginator/paginator.component.mjs +81 -33
- package/esm2022/features/panel/panel.component.mjs +26 -16
- package/esm2022/features/row-card-list/row-card/row-card.component.mjs +29 -18
- package/esm2022/features/row-card-list/row-card-list.component.mjs +10 -10
- package/esm2022/features/scaffold/scaffold.component.mjs +43 -14
- package/esm2022/features/searchbox/searchbox.component.mjs +4 -4
- package/esm2022/features/select-button/select-button.component.mjs +118 -0
- package/esm2022/features/sidebar/sidebar.component.mjs +3 -3
- package/esm2022/features/spinner/spinner.component.mjs +3 -3
- package/esm2022/features/spinner/spinner.service.mjs +3 -3
- package/esm2022/features/tab/tab-item.component.mjs +4 -4
- package/esm2022/features/tab/tab.component.mjs +31 -14
- package/esm2022/features/table/table.component.mjs +6 -6
- package/esm2022/features/textbox/textbox.component.mjs +3 -3
- package/esm2022/features/toast/toast.component.mjs +4 -4
- package/esm2022/features/toast/toast.service.mjs +4 -4
- package/esm2022/providers/services.provider.mjs +3 -3
- package/esm2022/providers/styles.provider.mjs +32 -0
- package/esm2022/providers/translate.provider.mjs +48 -26
- package/esm2022/public-api.mjs +31 -7
- package/features/button/button.component.d.ts +1 -1
- package/features/card-list/card/card.component.d.ts +2 -2
- package/features/card-list/card-list.component.d.ts +1 -1
- package/features/code-editor/code-editor.component.d.ts +57 -0
- package/features/combobox/combobox.component.d.ts +3 -2
- package/features/filters/filters.component.d.ts +5 -2
- package/features/modalc/modalc.component.d.ts +1 -1
- package/features/paginator/paginator.component.d.ts +29 -8
- package/features/panel/panel.component.d.ts +8 -2
- package/features/row-card-list/row-card/row-card.component.d.ts +7 -4
- package/features/row-card-list/row-card-list.component.d.ts +3 -3
- package/features/scaffold/scaffold.component.d.ts +12 -4
- package/features/searchbox/searchbox.component.d.ts +1 -1
- package/features/select-button/select-button.component.d.ts +30 -0
- package/features/tab/tab.component.d.ts +4 -1
- package/features/table/table.component.d.ts +2 -2
- package/features/toast/toast.component.d.ts +1 -1
- package/features/toast/toast.service.d.ts +1 -1
- package/fesm2022/seniorsistemas-data-seniorx-core.mjs +884 -363
- package/fesm2022/seniorsistemas-data-seniorx-core.mjs.map +1 -1
- package/package.json +20 -15
- package/providers/services.provider.d.ts +2 -2
- package/providers/styles.provider.d.ts +2 -0
- package/providers/translate.provider.d.ts +2 -7
- package/public-api.d.ts +23 -6
- package/src/locales/en.json +15 -0
- package/src/locales/es-CO.json +15 -0
- package/src/locales/pt.json +15 -0
- package/styles/domain-filter.scss +10 -0
- package/styles/fields.scss +17 -0
- package/styles/hyperlink.scss +11 -0
- package/styles/sdc-card.scss +34 -0
- package/styles/sdc-global-variables.scss +73 -0
- package/styles.css +20161 -6
- package/styles.scss +5 -0
- package/webfonts/fa-brands-400.eot +0 -0
- package/webfonts/fa-brands-400.svg +3717 -0
- package/webfonts/fa-brands-400.ttf +0 -0
- package/webfonts/fa-brands-400.woff +0 -0
- package/webfonts/fa-brands-400.woff2 +0 -0
- package/webfonts/fa-duotone-900.eot +0 -0
- package/webfonts/fa-duotone-900.svg +15328 -0
- package/webfonts/fa-duotone-900.ttf +0 -0
- package/webfonts/fa-duotone-900.woff +0 -0
- package/webfonts/fa-duotone-900.woff2 +0 -0
- package/webfonts/fa-light-300.eot +0 -0
- package/webfonts/fa-light-300.svg +12423 -0
- package/webfonts/fa-light-300.ttf +0 -0
- package/webfonts/fa-light-300.woff +0 -0
- package/webfonts/fa-light-300.woff2 +0 -0
- package/webfonts/fa-regular-400.eot +0 -0
- package/webfonts/fa-regular-400.svg +11323 -0
- package/webfonts/fa-regular-400.ttf +0 -0
- package/webfonts/fa-regular-400.woff +0 -0
- package/webfonts/fa-regular-400.woff2 +0 -0
- package/webfonts/fa-solid-900.eot +0 -0
- package/webfonts/fa-solid-900.svg +9653 -0
- package/webfonts/fa-solid-900.ttf +0 -0
- package/webfonts/fa-solid-900.woff +0 -0
- package/webfonts/fa-solid-900.woff2 +0 -0
- package/esm2022/core/types/table.types.mjs +0 -28
- package/esm2022/features/sql-editor/sql-editor.component.mjs +0 -125
- package/features/sql-editor/sql-editor.component.d.ts +0 -27
- package/styles.css.map +0 -1
- /package/core/types/{table.types.d.ts → table.type.d.ts} +0 -0
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, SimpleChanges, TemplateRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { OptionsRowCard, RowCard } from '
|
|
2
|
+
import { OptionsRowCard, RowCard } from '../../../core/types/row-card.type';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class RowCardComponent implements OnChanges {
|
|
5
5
|
data: RowCard;
|
|
6
6
|
options?: OptionsRowCard;
|
|
7
7
|
isExpanded: boolean;
|
|
8
8
|
detailTemplate?: TemplateRef<any>;
|
|
9
|
-
|
|
9
|
+
cardClick: EventEmitter<RowCard>;
|
|
10
10
|
cardButtonClick: EventEmitter<RowCard>;
|
|
11
11
|
contentWrapper?: ElementRef<HTMLDivElement>;
|
|
12
12
|
protected readonly isMobile: boolean;
|
|
13
|
+
get expanded(): boolean;
|
|
13
14
|
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
-
onCardClick(
|
|
15
|
+
onCardClick(): void;
|
|
16
|
+
onExpandCardClick(event: MouseEvent): void;
|
|
15
17
|
onCardButtonClick(): void;
|
|
18
|
+
private updateCollapseHeight;
|
|
16
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<RowCardComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RowCardComponent, "sdc-row-card", never, { "data": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "detailTemplate": { "alias": "detailTemplate"; "required": false; }; }, { "
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowCardComponent, "sdc-row-card", never, { "data": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "detailTemplate": { "alias": "detailTemplate"; "required": false; }; }, { "cardClick": "cardClick"; "cardButtonClick": "cardButtonClick"; }, never, never, true, never>;
|
|
18
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaginatorState } from 'primeng/paginator';
|
|
2
|
-
import { RowCard, RowCardListOptions } from '
|
|
2
|
+
import { RowCard, RowCardListOptions } from '../../core/types/row-card.type';
|
|
3
3
|
import { EventEmitter, OnChanges, SimpleChanges, DoCheck, TemplateRef } from '@angular/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class RowCardListComponent implements OnChanges, DoCheck {
|
|
@@ -7,7 +7,7 @@ export declare class RowCardListComponent implements OnChanges, DoCheck {
|
|
|
7
7
|
loading: boolean;
|
|
8
8
|
config: RowCardListOptions;
|
|
9
9
|
cardButtonClick: EventEmitter<RowCard>;
|
|
10
|
-
|
|
10
|
+
cardClick: EventEmitter<RowCard>;
|
|
11
11
|
detailTemplate?: TemplateRef<any>;
|
|
12
12
|
protected readonly isMobile: boolean;
|
|
13
13
|
protected readonly isTablet: boolean;
|
|
@@ -36,5 +36,5 @@ export declare class RowCardListComponent implements OnChanges, DoCheck {
|
|
|
36
36
|
private applyConfigOptions;
|
|
37
37
|
private stableStringify;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<RowCardListComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RowCardListComponent, "sdc-row-card-list", never, { "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "cardButtonClick": "cardButtonClick"; "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowCardListComponent, "sdc-row-card-list", never, { "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "cardButtonClick": "cardButtonClick"; "cardClick": "cardClick"; }, ["detailTemplate"], never, true, never>;
|
|
40
40
|
}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
1
|
+
import { TemplateRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScaffoldComponent {
|
|
4
|
+
export declare class ScaffoldComponent implements OnInit, OnDestroy {
|
|
5
|
+
private route;
|
|
6
|
+
private router;
|
|
4
7
|
header: string;
|
|
5
|
-
title: string;
|
|
6
8
|
homeUrl: string | undefined;
|
|
9
|
+
currentTitle: string;
|
|
7
10
|
headerTpl?: TemplateRef<any>;
|
|
8
11
|
footerTpl?: TemplateRef<any>;
|
|
12
|
+
private destroyed$;
|
|
13
|
+
constructor(route: ActivatedRoute, router: Router);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
private getDeepest;
|
|
9
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScaffoldComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScaffoldComponent, "sdc-scaffold", never, { "header": { "alias": "header"; "required": false; }; "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScaffoldComponent, "sdc-scaffold", never, { "header": { "alias": "header"; "required": false; }; "homeUrl": { "alias": "homeUrl"; "required": false; }; }, {}, ["headerTpl", "footerTpl"], never, true, never>;
|
|
11
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { InputsComponent } from '../inputs';
|
|
3
|
-
import { type SearchTriggerMode } from '
|
|
3
|
+
import { type SearchTriggerMode } from '../../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;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
+
import { EventEmitter, ChangeDetectorRef } from "@angular/core";
|
|
3
|
+
import { SelectButtonItem } from "../../core/types/select-button.type";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SelectButtonComponent implements ControlValueAccessor {
|
|
6
|
+
private readonly cdr;
|
|
7
|
+
items: SelectButtonItem[];
|
|
8
|
+
multiple: boolean;
|
|
9
|
+
compareWith: (a: SelectButtonItem, b: SelectButtonItem) => boolean;
|
|
10
|
+
itemSelected: EventEmitter<SelectButtonItem[]>;
|
|
11
|
+
itemClicked: EventEmitter<SelectButtonItem>;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
activeItems: Set<SelectButtonItem>;
|
|
14
|
+
private onChange?;
|
|
15
|
+
private onTouched?;
|
|
16
|
+
constructor(cdr: ChangeDetectorRef);
|
|
17
|
+
writeValue(value?: SelectButtonItem | SelectButtonItem[] | null): void;
|
|
18
|
+
registerOnChange(fn: (value: SelectButtonItem[]) => void): void;
|
|
19
|
+
registerOnTouched(fn: () => void): void;
|
|
20
|
+
setDisabledState(disabled: boolean): void;
|
|
21
|
+
onItemSelect(item: SelectButtonItem): void;
|
|
22
|
+
isActive(item: SelectButtonItem): boolean;
|
|
23
|
+
trackByIndex: (i: number) => number;
|
|
24
|
+
private _addByRef;
|
|
25
|
+
private _deleteByCompare;
|
|
26
|
+
private _asArray;
|
|
27
|
+
private _deepEqual;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectButtonComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectButtonComponent, "sdc-select-button", never, { "items": { "alias": "items"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; }, { "itemSelected": "itemSelected"; "itemClicked": "itemClicked"; }, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TabHeader } from '
|
|
1
|
+
import { TabHeader } from '../../core/types/tab.type';
|
|
2
2
|
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TabComponent implements AfterViewInit, OnDestroy {
|
|
@@ -6,6 +6,8 @@ export declare class TabComponent implements AfterViewInit, OnDestroy {
|
|
|
6
6
|
private zone;
|
|
7
7
|
private cdr;
|
|
8
8
|
headersRef: ElementRef<HTMLDivElement>;
|
|
9
|
+
panelsRef: ElementRef<HTMLDivElement>;
|
|
10
|
+
private uid;
|
|
9
11
|
private _activeIndex;
|
|
10
12
|
set activeIndex(v: number);
|
|
11
13
|
get activeIndex(): number;
|
|
@@ -22,6 +24,7 @@ export declare class TabComponent implements AfterViewInit, OnDestroy {
|
|
|
22
24
|
private focusNext;
|
|
23
25
|
private focusPrev;
|
|
24
26
|
private focusIndex;
|
|
27
|
+
private getDirectItems;
|
|
25
28
|
private refreshChildren;
|
|
26
29
|
private syncHiddenAndAria;
|
|
27
30
|
private normalizeIndex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaginatorState } from 'primeng/paginator';
|
|
2
2
|
import { EventEmitter, OnChanges, SimpleChanges, DoCheck } from '@angular/core';
|
|
3
|
-
import { type RowBase, type SortOrder, type TableColumn, type TableOptions } from '
|
|
4
|
-
import { type SearchTriggerMode } from '
|
|
3
|
+
import { type RowBase, type SortOrder, type TableColumn, type TableOptions } from '../../core/types/table.type';
|
|
4
|
+
import { type SearchTriggerMode } from '../../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[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Toast } from '
|
|
1
|
+
import { Toast } from '../../core/types/toast.type';
|
|
2
2
|
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ToastComponent implements OnInit, OnDestroy {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApplicationRef, Injector, ComponentFactoryResolver } from "@angular/core";
|
|
2
|
-
import { Toast } from "
|
|
2
|
+
import { Toast } from "../../core/types/toast.type";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ToastService {
|
|
5
5
|
private appRef;
|