@zambon-dev/library 2.0.0 → 3.0.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 (80) hide show
  1. package/CHANGELOG.md +32 -9
  2. package/README.md +9 -9
  3. package/fesm2022/zambon-dev-library.mjs +304 -445
  4. package/fesm2022/zambon-dev-library.mjs.map +1 -1
  5. package/package.json +10 -9
  6. package/styles/variables.scss +26 -26
  7. package/types/zambon-dev-library.d.ts +1045 -0
  8. package/index.d.ts +0 -10
  9. package/lib/components/base.component.d.ts +0 -9
  10. package/lib/components/catalog-select/catalog-select.component.d.ts +0 -121
  11. package/lib/components/data-grid/data-grid.component.d.ts +0 -51
  12. package/lib/components/data-grid-row/data-grid-row.component.d.ts +0 -31
  13. package/lib/components/form-group/form-group.component.d.ts +0 -8
  14. package/lib/components/form-input/form-input.component.d.ts +0 -47
  15. package/lib/components/form-input-group/form-input-group.component.d.ts +0 -40
  16. package/lib/components/group-accordion/group-accordion.component.d.ts +0 -13
  17. package/lib/components/group-container/group-container.component.d.ts +0 -16
  18. package/lib/components/group-scroll-spy/group-scroll-spy.component.d.ts +0 -14
  19. package/lib/components/index.d.ts +0 -18
  20. package/lib/components/modal/modal.component.d.ts +0 -26
  21. package/lib/components/multi-editor/multi-editor.component.d.ts +0 -30
  22. package/lib/components/multi-select/multi-select.component.d.ts +0 -25
  23. package/lib/components/multi-select/result-grid/result-grid.component.d.ts +0 -18
  24. package/lib/components/ribbon/ribbon.component.d.ts +0 -5
  25. package/lib/components/ribbon-button/ribbon-button.component.d.ts +0 -32
  26. package/lib/components/ribbon-group/ribbon-group.component.d.ts +0 -10
  27. package/lib/components/sidebar/sidebar.component.d.ts +0 -41
  28. package/lib/components/sidebar-item/sidebar-item.component.d.ts +0 -34
  29. package/lib/directives/index.d.ts +0 -1
  30. package/lib/directives/scroll-spy.directive.d.ts +0 -16
  31. package/lib/helpers/date-helpers.d.ts +0 -3
  32. package/lib/helpers/display-controls.d.ts +0 -29
  33. package/lib/helpers/guid-helper.d.ts +0 -3
  34. package/lib/helpers/index.d.ts +0 -4
  35. package/lib/helpers/route-formatter.d.ts +0 -4
  36. package/lib/library.module.d.ts +0 -27
  37. package/lib/models/batch-update.d.ts +0 -4
  38. package/lib/models/catalog-entry.d.ts +0 -4
  39. package/lib/models/catalog-result.d.ts +0 -5
  40. package/lib/models/configs/data-grid-configs.d.ts +0 -9
  41. package/lib/models/configs/grid-configs.d.ts +0 -9
  42. package/lib/models/configs/index.d.ts +0 -2
  43. package/lib/models/data-grid-parameters.d.ts +0 -12
  44. package/lib/models/grid-column.d.ts +0 -9
  45. package/lib/models/index.d.ts +0 -14
  46. package/lib/models/list-result.d.ts +0 -4
  47. package/lib/models/modal.interface.d.ts +0 -7
  48. package/lib/models/multi-editor-changes.d.ts +0 -6
  49. package/lib/models/multi-selector-changes.d.ts +0 -4
  50. package/lib/models/ribbon-button-option.d.ts +0 -13
  51. package/lib/models/ribbon-group-child.d.ts +0 -3
  52. package/lib/models/sidebar/index.d.ts +0 -5
  53. package/lib/models/sidebar/sidebar-configs.d.ts +0 -22
  54. package/lib/models/sidebar/sidebar-menu-open-mode.d.ts +0 -32
  55. package/lib/models/sidebar/sidebar-menu.d.ts +0 -22
  56. package/lib/models/sidebar/sidebar-profile.d.ts +0 -5
  57. package/lib/models/sidebar/sidebar-region.d.ts +0 -6
  58. package/lib/models/tab-view.d.ts +0 -5
  59. package/lib/pipes/enum.d.ts +0 -12
  60. package/lib/pipes/index.d.ts +0 -3
  61. package/lib/pipes/replace-many.pipe.d.ts +0 -9
  62. package/lib/pipes/replace.pipe.d.ts +0 -7
  63. package/lib/services/catalog.service.d.ts +0 -11
  64. package/lib/services/configs-providers/data-grid-configs.provider.d.ts +0 -8
  65. package/lib/services/configs-providers/grid-configs.provider.d.ts +0 -9
  66. package/lib/services/configs-providers/index.d.ts +0 -2
  67. package/lib/services/data-providers/data-provider.service.d.ts +0 -29
  68. package/lib/services/data-providers/index.d.ts +0 -1
  69. package/lib/services/datasets/base.dataset.d.ts +0 -15
  70. package/lib/services/datasets/data-grid.dataset.d.ts +0 -37
  71. package/lib/services/datasets/grid.dataset.d.ts +0 -59
  72. package/lib/services/datasets/index.d.ts +0 -5
  73. package/lib/services/datasets/multi-editor.dataset.d.ts +0 -22
  74. package/lib/services/datasets/multi-select-result.dataset.d.ts +0 -26
  75. package/lib/services/form-group.service.d.ts +0 -5
  76. package/lib/services/form.service.d.ts +0 -39
  77. package/lib/services/index.d.ts +0 -6
  78. package/lib/services/sidebar.service.d.ts +0 -34
  79. package/lib/validators/date.validators.d.ts +0 -13
  80. package/lib/validators/index.d.ts +0 -1
@@ -1,16 +0,0 @@
1
- import { AfterViewInit, EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ScrollSpyDirective implements AfterViewInit {
4
- spiedTags: Array<string>;
5
- activeSectionChange: EventEmitter<number>;
6
- private _el;
7
- private activeSection;
8
- private sections;
9
- ngAfterViewInit(): void;
10
- onScroll(event: any): void;
11
- scrollTo(section: number): void;
12
- select(section: number): void;
13
- private updateSections;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<ScrollSpyDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollSpyDirective, "[libScrollSpy]", never, { "spiedTags": { "alias": "spiedTags"; "required": false; }; }, { "activeSectionChange": "activeSectionChange"; }, never, never, true, never>;
16
- }
@@ -1,3 +0,0 @@
1
- export declare class DateHelpers {
2
- static diffDays(initialDate: Date, finalDate: Date): number;
3
- }
@@ -1,29 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- /**
3
- * Tracks the form controls that exist only to show a catalog selection's label.
4
- *
5
- * `lib-catalog-select` works in pairs: the control named by `controlName` holds the identifier, and
6
- * the one named by `displayControlName` holds the text the user reads. The second is created by the
7
- * component itself when a screen does not declare it, so a form ends up carrying controls nobody
8
- * wrote down — and a filters form then submits them alongside the real filters.
9
- *
10
- * The mark lives in a `WeakSet` keyed by the control instance rather than by its name. That is the
11
- * only scope that is actually correct: two forms may each have an `employeeName`, and only the one
12
- * a catalog select drives is a display control. It also keeps nothing alive.
13
- */
14
- export declare class DisplayControls {
15
- private static readonly marked;
16
- /**
17
- * Whether the control exists only to display a catalog selection's label.
18
- *
19
- * @param control The control, which may be absent.
20
- * @returns `true` when a catalog select drives it as its display control.
21
- */
22
- static isDisplayControl(control: AbstractControl | null | undefined): boolean;
23
- /**
24
- * Marks the control as existing only to display a catalog selection's label.
25
- *
26
- * @param control The control, which may be absent.
27
- */
28
- static markAsDisplayControl(control: AbstractControl | null | undefined): void;
29
- }
@@ -1,3 +0,0 @@
1
- export declare class GuidHelper {
2
- static generateGUID(): string;
3
- }
@@ -1,4 +0,0 @@
1
- export { DateHelpers } from './date-helpers';
2
- export { DisplayControls } from './display-controls';
3
- export { GuidHelper } from './guid-helper';
4
- export { RouterFormatter } from './route-formatter';
@@ -1,4 +0,0 @@
1
- import { ActivatedRouteSnapshot } from '@angular/router';
2
- export declare abstract class RouterFormatter {
3
- static getURL(route: ActivatedRouteSnapshot): string;
4
- }
@@ -1,27 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/catalog-select/catalog-select.component";
3
- import * as i2 from "./components/data-grid/data-grid.component";
4
- import * as i3 from "./components/data-grid-row/data-grid-row.component";
5
- import * as i4 from "./components/form-input/form-input.component";
6
- import * as i5 from "./components/form-input-group/form-input-group.component";
7
- import * as i6 from "./components/form-group/form-group.component";
8
- import * as i7 from "./components/group-accordion/group-accordion.component";
9
- import * as i8 from "./components/group-container/group-container.component";
10
- import * as i9 from "./components/group-scroll-spy/group-scroll-spy.component";
11
- import * as i10 from "./components/sidebar/sidebar.component";
12
- import * as i11 from "./components/modal/modal.component";
13
- import * as i12 from "./components/multi-editor/multi-editor.component";
14
- import * as i13 from "./components/multi-select/multi-select.component";
15
- import * as i14 from "./components/multi-select/result-grid/result-grid.component";
16
- import * as i15 from "./components/ribbon/ribbon.component";
17
- import * as i16 from "./components/ribbon-button/ribbon-button.component";
18
- import * as i17 from "./components/ribbon-group/ribbon-group.component";
19
- import * as i18 from "./directives/scroll-spy.directive";
20
- import * as i19 from "./pipes/enum";
21
- import * as i20 from "./pipes/replace.pipe";
22
- import * as i21 from "./pipes/replace-many.pipe";
23
- export declare class LibraryModule {
24
- static ɵfac: i0.ɵɵFactoryDeclaration<LibraryModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<LibraryModule, never, [typeof i1.CatalogSelectComponent, typeof i2.DataGridComponent, typeof i3.DataGridRowComponent, typeof i4.FormInputComponent, typeof i5.FormInputGroupComponent, typeof i6.FormGroupComponent, typeof i7.GroupAccordionComponent, typeof i8.GroupContainerComponent, typeof i9.GroupScrollSpyComponent, typeof i10.SidebarComponent, typeof i11.ModalComponent, typeof i12.MultiEditorComponent, typeof i13.MultiSelectComponent, typeof i14.MultiSelectResultGridComponent, typeof i15.RibbonComponent, typeof i16.RibbonButtonComponent, typeof i17.RibbonGroupComponent, typeof i18.ScrollSpyDirective, typeof i19.EnumTranslatePipe, typeof i20.ReplacePipe, typeof i21.ReplaceManyPipe], [typeof i1.CatalogSelectComponent, typeof i2.DataGridComponent, typeof i3.DataGridRowComponent, typeof i4.FormInputComponent, typeof i5.FormInputGroupComponent, typeof i6.FormGroupComponent, typeof i7.GroupAccordionComponent, typeof i8.GroupContainerComponent, typeof i9.GroupScrollSpyComponent, typeof i10.SidebarComponent, typeof i11.ModalComponent, typeof i12.MultiEditorComponent, typeof i13.MultiSelectComponent, typeof i14.MultiSelectResultGridComponent, typeof i15.RibbonComponent, typeof i16.RibbonButtonComponent, typeof i17.RibbonGroupComponent, typeof i18.ScrollSpyDirective, typeof i19.EnumTranslatePipe, typeof i20.ReplacePipe, typeof i21.ReplaceManyPipe]>;
26
- static ɵinj: i0.ɵɵInjectorDeclaration<LibraryModule>;
27
- }
@@ -1,4 +0,0 @@
1
- export interface IBatchUpdate<TEntity, TKey> {
2
- entitiesToDelete: Array<TKey>;
3
- entitiesToInsertOrUpdate: Array<TEntity>;
4
- }
@@ -1,4 +0,0 @@
1
- export interface ICatalogEntry {
2
- display: string;
3
- value: any;
4
- }
@@ -1,5 +0,0 @@
1
- import { ICatalogEntry } from './catalog-entry';
2
- export interface ICatalogResult {
3
- entries: ICatalogEntry[];
4
- shouldUseCriteria: boolean;
5
- }
@@ -1,9 +0,0 @@
1
- import { GridConfigs } from './grid-configs';
2
- export type DataGridConfigs = GridConfigs & {
3
- hideBorders?: boolean;
4
- hideColumnHeaders?: boolean;
5
- multiSelect?: boolean;
6
- multiSelectSize?: string;
7
- selectOnClick?: boolean;
8
- showMessageOnEmpty?: boolean;
9
- };
@@ -1,9 +0,0 @@
1
- export type GridConfigs = {
2
- loadingDisplayText?: string;
3
- messageOnEmpty?: string;
4
- messageOnFailed?: string;
5
- messageOnLazyLoad?: string;
6
- recordBlockSize: number;
7
- rowHeight: number;
8
- rowsToDisplay: number;
9
- };
@@ -1,2 +0,0 @@
1
- export { DataGridConfigs } from './data-grid-configs';
2
- export { GridConfigs } from './grid-configs';
@@ -1,12 +0,0 @@
1
- export interface IListParameters extends ISummaryParameters {
2
- endRow: number;
3
- sort?: {
4
- [key: string]: string;
5
- };
6
- startRow: number;
7
- }
8
- export interface ISummaryParameters {
9
- filters?: {
10
- [key: string]: string;
11
- };
12
- }
@@ -1,9 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- export interface IGridColumn {
3
- customClass?: string;
4
- field: string;
5
- headerName: string;
6
- size?: string;
7
- realSize?: number;
8
- template?: TemplateRef<any>;
9
- }
@@ -1,14 +0,0 @@
1
- export { IBatchUpdate } from './batch-update';
2
- export { ICatalogEntry } from './catalog-entry';
3
- export { ICatalogResult } from './catalog-result';
4
- export * from './configs';
5
- export { IListParameters, ISummaryParameters } from './data-grid-parameters';
6
- export { IGridColumn } from './grid-column';
7
- export { IListResult } from './list-result';
8
- export { IModal } from './modal.interface';
9
- export { IMultiEditorChanges } from './multi-editor-changes';
10
- export { IMultiSelectorChanges } from './multi-selector-changes';
11
- export { IRibbonButtonOption } from './ribbon-button-option';
12
- export { RibbonGroupChild } from './ribbon-group-child';
13
- export * from './sidebar';
14
- export { ITabView } from './tab-view';
@@ -1,4 +0,0 @@
1
- export interface IListResult<T> {
2
- items: T[];
3
- totalRows: number;
4
- }
@@ -1,7 +0,0 @@
1
- export interface IModal {
2
- size: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | 'auto';
3
- title: string;
4
- get isShown(): boolean;
5
- closeModal(): void;
6
- toggleModal(): void;
7
- }
@@ -1,6 +0,0 @@
1
- export interface IMultiEditorChanges {
2
- changed: {
3
- [key: string]: string;
4
- };
5
- removed: string[];
6
- }
@@ -1,4 +0,0 @@
1
- export interface IMultiSelectorChanges {
2
- idsToAdd: number[];
3
- idsToRemove: number[];
4
- }
@@ -1,13 +0,0 @@
1
- export interface IRibbonButtonOption {
2
- allowedActions?: string[];
3
- icon?: string;
4
- id: string;
5
- isAccessAllowed?: boolean;
6
- isDisabled?: boolean;
7
- isVisible?: boolean;
8
- label: string;
9
- parameters?: {
10
- [key: string]: string;
11
- };
12
- path?: string;
13
- }
@@ -1,3 +0,0 @@
1
- export declare abstract class RibbonGroupChild {
2
- abstract visible: boolean;
3
- }
@@ -1,5 +0,0 @@
1
- export * from './sidebar-configs';
2
- export * from './sidebar-menu';
3
- export * from './sidebar-menu-open-mode';
4
- export * from './sidebar-profile';
5
- export * from './sidebar-region';
@@ -1,22 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const SIDEBAR_CONFIGS: InjectionToken<SidebarConfigs>;
3
- export declare class SidebarConfigs {
4
- errorText: string;
5
- /** Tooltip for items that open in a new browser tab. Rendered as-is, like {@link errorText}. */
6
- externalLinkText: string;
7
- loadingText: string;
8
- /**
9
- * Derive region headers from the menu tree instead of from {@link SidebarMenu.region}.
10
- *
11
- * With this on, a top-level menu that has children and no URL stops being a collapsible node
12
- * and becomes an area header, with its children rendered flat beneath it as top-level items --
13
- * icons included. The area is then a real menu row, so it carries its own translated label and
14
- * its own order, and no `region` label has to be repeated across every item that belongs to it.
15
- *
16
- * Off by default: without it a top-level parent stays the collapsible group it has always been.
17
- */
18
- shouldDeriveAreasFromRootMenus: boolean;
19
- logoCollapsedPath?: string;
20
- logoExpandedPath?: string;
21
- constructor(options?: Partial<SidebarConfigs>);
22
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * How a {@link SidebarMenu}'s `url` is opened when the item is clicked.
3
- *
4
- * Read the value off a menu through {@link toSidebarMenuOpenMode} rather than comparing the
5
- * field directly: it crosses HTTP, so it can arrive as a string, as a number, as `null`, or not
6
- * at all.
7
- */
8
- export declare enum SidebarMenuOpenMode {
9
- /** `url` is an internal Angular route and opens an application tab. The default. */
10
- Internal = "internal",
11
- /** `url` is an absolute http(s) address and opens in a new browser tab. */
12
- ExternalNewTab = "externalNewTab",
13
- /** `url` is an absolute http(s) address and opens embedded in an application tab. */
14
- ExternalEmbedded = "externalEmbedded"
15
- }
16
- /**
17
- * Parses the wire value of `SidebarMenu.openMode`.
18
- *
19
- * Deliberately a parser rather than a `?? Internal` fallback, because the field is deserialized
20
- * straight from each application's menu endpoint and its shape is not guaranteed:
21
- *
22
- * - a **number** is read as the backend's enum ordinal, which is what an ASP.NET Core enum
23
- * property serializes to unless that backend registers a string converter;
24
- * - a **string** is matched case-insensitively, so `'externalNewTab'` and `'ExternalNewTab'`
25
- * both work;
26
- * - anything else — an omitted field from a backend that predates this feature, `null`, or a
27
- * mode introduced by a newer one — degrades to {@link SidebarMenuOpenMode.Internal}.
28
- *
29
- * Degrading to `Internal` keeps an unrecognized mode behaving the way menus behaved before
30
- * external destinations existed, instead of producing an item that does nothing when clicked.
31
- */
32
- export declare function toSidebarMenuOpenMode(value: unknown): SidebarMenuOpenMode;
@@ -1,22 +0,0 @@
1
- import { SidebarMenuOpenMode } from './sidebar-menu-open-mode';
2
- export declare class SidebarMenu {
3
- childCount: number;
4
- children: SidebarMenu[];
5
- height?: number;
6
- icon?: string;
7
- id: number;
8
- label: string;
9
- isSelected: boolean;
10
- /**
11
- * How {@link url} is opened. An absent value means {@link SidebarMenuOpenMode.Internal}.
12
- *
13
- * Left optional and without an initializer on purpose: the constructor is an `Object.assign`,
14
- * which would overwrite a default with the `null` a nullable backend column serializes to.
15
- * Read it through `toSidebarMenuOpenMode(menu.openMode)` instead of comparing it directly.
16
- */
17
- openMode?: SidebarMenuOpenMode;
18
- parent: SidebarMenu | null;
19
- region?: string;
20
- url?: string;
21
- constructor(options?: Partial<SidebarMenu>);
22
- }
@@ -1,5 +0,0 @@
1
- export interface ISidebarProfile {
2
- image?: string;
3
- name?: string;
4
- title?: string;
5
- }
@@ -1,6 +0,0 @@
1
- import { SidebarMenu } from './sidebar-menu';
2
- /** A named group of top-level sidebar menu items, rendered under a region header. */
3
- export interface SidebarRegion {
4
- items: SidebarMenu[];
5
- name?: string;
6
- }
@@ -1,5 +0,0 @@
1
- export interface ITabView {
2
- activeView?: string;
3
- title: string;
4
- url: string;
5
- }
@@ -1,12 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class EnumTranslatePipe implements PipeTransform {
5
- private translate;
6
- transform(enumType: any): Array<{
7
- value: any;
8
- display: Observable<any>;
9
- }>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<EnumTranslatePipe, never>;
11
- static ɵpipe: i0.ɵɵPipeDeclaration<EnumTranslatePipe, "enumTranslate", true>;
12
- }
@@ -1,3 +0,0 @@
1
- export { EnumTranslatePipe } from './enum';
2
- export { ReplaceManyPipe } from './replace-many.pipe';
3
- export { ReplacePipe } from './replace.pipe';
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ReplaceManyPipe implements PipeTransform {
4
- transform(message: string, replaceArgs?: {
5
- [id: string]: string | null | undefined;
6
- }): string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceManyPipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<ReplaceManyPipe, "replaceMany", true>;
9
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ReplacePipe implements PipeTransform {
4
- transform(message: string, searchValue: string, replaceValue?: string | null): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ReplacePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<ReplacePipe, "replace", true>;
7
- }
@@ -1,11 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ICatalogResult } from '../models/catalog-result';
3
- import * as i0 from "@angular/core";
4
- export declare class CatalogService {
5
- private http;
6
- search(endpoint: string, maxResults: number, criteria?: string, filters?: {
7
- [key: string]: string;
8
- } | null): Observable<ICatalogResult>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<CatalogService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<CatalogService>;
11
- }
@@ -1,8 +0,0 @@
1
- import { DataGridConfigs } from '../../models/configs/data-grid-configs';
2
- import { GridConfigsProvider } from './grid-configs.provider';
3
- import * as i0 from "@angular/core";
4
- export declare class DataGridConfigsProvider extends GridConfigsProvider<DataGridConfigs> {
5
- constructor();
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DataGridConfigsProvider, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<DataGridConfigsProvider>;
8
- }
@@ -1,9 +0,0 @@
1
- import { GridConfigs } from '../../models/configs/grid-configs';
2
- import * as i0 from "@angular/core";
3
- export declare class GridConfigsProvider<TGridConfigs extends GridConfigs = GridConfigs> {
4
- protected _configs: TGridConfigs;
5
- get configs(): TGridConfigs;
6
- constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<GridConfigsProvider<any>, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<GridConfigsProvider<any>>;
9
- }
@@ -1,2 +0,0 @@
1
- export { DataGridConfigsProvider } from './data-grid-configs.provider';
2
- export { GridConfigsProvider } from './grid-configs.provider';
@@ -1,29 +0,0 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
- import { OnDestroy } from '@angular/core';
3
- import { ActivatedRoute } from '@angular/router';
4
- import { Observable, Subject } from 'rxjs';
5
- import * as i0 from "@angular/core";
6
- export declare abstract class DataProviderService<TEntityModel> implements OnDestroy {
7
- protected activatedRoute: ActivatedRoute;
8
- protected destroy$: Subject<boolean>;
9
- protected shouldLazyLoad: boolean;
10
- private _entityID?;
11
- private errorSubject;
12
- private isLoading;
13
- private isModelLoaded;
14
- private modelCache;
15
- get entityID(): number | undefined;
16
- get hasEntityID(): boolean;
17
- constructor();
18
- ngOnDestroy(): void;
19
- getError$(): Observable<HttpErrorResponse>;
20
- abstract getTitle(entity: TEntityModel): string;
21
- getModel$(): Observable<TEntityModel | null>;
22
- refreshModel(): void;
23
- resetForNewEntity(): void;
24
- abstract saveModel(model: any): Observable<TEntityModel>;
25
- updateModel(model: any): void;
26
- protected abstract loadModel(entityID?: number): Observable<TEntityModel | null>;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DataProviderService<any>, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<DataProviderService<any>>;
29
- }
@@ -1 +0,0 @@
1
- export { DataProviderService } from './data-provider.service';
@@ -1,15 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import { DataProviderService } from '../data-providers';
4
- import * as i0 from "@angular/core";
5
- export declare abstract class BaseDataset implements OnDestroy {
6
- protected dataProvider: DataProviderService<any> | null;
7
- protected destroy$: Subject<boolean>;
8
- private _parentEntityId?;
9
- get parentEntityId(): any;
10
- set parentEntityId(value: any);
11
- constructor();
12
- ngOnDestroy(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseDataset, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseDataset>;
15
- }
@@ -1,37 +0,0 @@
1
- import { HttpResponse } from '@angular/common/http';
2
- import { EventEmitter } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- import { DataGridConfigs } from '../../models/configs/data-grid-configs';
5
- import { IListParameters } from '../../models/data-grid-parameters';
6
- import { IGridColumn } from '../../models/grid-column';
7
- import { GridDataset } from './grid.dataset';
8
- import * as i0 from "@angular/core";
9
- export declare abstract class DataGridDataset extends GridDataset {
10
- selectedRowsChanged: EventEmitter<{
11
- [id: string]: {
12
- rowData: any;
13
- selected: boolean;
14
- };
15
- }>;
16
- columns: IGridColumn[];
17
- configs: DataGridConfigs;
18
- selectedRowKeys: string[];
19
- get columnsSize(): string;
20
- get hasSelectedRows(): boolean;
21
- constructor();
22
- clearSelection(): void;
23
- export(_format: string, _parameters: IListParameters): Observable<HttpResponse<Blob>>;
24
- deselectRow(key: string): void;
25
- deselectRowID(id: any): void;
26
- getSelectedRowsData(): any[];
27
- isKeySelected(key: any): boolean;
28
- refresh(): void;
29
- removeKeys(keys: string[]): void;
30
- selectRow(key: string): void;
31
- selectRowID(id: any): void;
32
- selectRows(keys: string[]): void;
33
- setFocusedRow(key: any): void;
34
- protected removeSelectedRow(key: string): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<DataGridDataset, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<DataGridDataset>;
37
- }
@@ -1,59 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { GridConfigs } from '../../models/configs/grid-configs';
4
- import { GridConfigsProvider } from '../configs-providers/grid-configs.provider';
5
- import { BaseDataset } from './base.dataset';
6
- import * as i0 from "@angular/core";
7
- export declare abstract class GridDataset extends BaseDataset {
8
- configs: GridConfigs;
9
- filtersChanged: EventEmitter<{
10
- [key: string]: string;
11
- }>;
12
- isLoading: boolean;
13
- loadedLastRow: boolean;
14
- loadFinished: EventEmitter<boolean>;
15
- loadStarted: EventEmitter<void>;
16
- totalRows?: number;
17
- protected compareProperty: string;
18
- protected configsProvider: GridConfigsProvider;
19
- protected focusedRow: string | null;
20
- protected recordBlock: number;
21
- private _hasBeenLoaded;
22
- private _loadedKeys?;
23
- private _loadedRows?;
24
- private queryFilters?;
25
- get filters(): {
26
- [key: string]: string;
27
- } | undefined;
28
- get hasBeenLoaded(): boolean;
29
- get hasLoadedRows(): boolean;
30
- get keyProperty(): string;
31
- get loadedKeys(): string[] | undefined;
32
- get loadedRows(): any[] | undefined;
33
- get parentEntityId(): any;
34
- set parentEntityId(value: any);
35
- constructor();
36
- addNewRow(row: any): void;
37
- clearFocusedRow(): void;
38
- getRowData(key: string): any | null;
39
- getRowID(key: string): any;
40
- getRowInternalKey(row: any): string;
41
- hasRowWithID(id: any): boolean;
42
- isKeyExists(key: string): boolean;
43
- loadRows(): void;
44
- refresh(): void;
45
- removeKeys(keys: string[]): void;
46
- setFilters(filters?: {
47
- [key: string]: string;
48
- }): void;
49
- setFocusedRow(key: string): void;
50
- updateRow(key: string, newRowData: any): void;
51
- protected clearLoadedRows(): void;
52
- protected updateLoadedRows(rows: any[]): void;
53
- abstract getData(params?: any): Observable<any[] | {
54
- items: any[];
55
- totalRows: number;
56
- }>;
57
- static ɵfac: i0.ɵɵFactoryDeclaration<GridDataset, never>;
58
- static ɵprov: i0.ɵɵInjectableDeclaration<GridDataset>;
59
- }
@@ -1,5 +0,0 @@
1
- export { BaseDataset } from './base.dataset';
2
- export { DataGridDataset } from './data-grid.dataset';
3
- export { GridDataset } from './grid.dataset';
4
- export { MultiEditorDataset } from './multi-editor.dataset';
5
- export { MultiSelectResultDataset } from './multi-select-result.dataset';
@@ -1,22 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { IBatchUpdate } from '../../models/batch-update';
4
- import { BaseDataset } from './base.dataset';
5
- import { DataGridDataset } from './data-grid.dataset';
6
- import * as i0 from "@angular/core";
7
- export declare abstract class MultiEditorDataset extends BaseDataset {
8
- savedChanges: EventEmitter<void>;
9
- protected readonly dataGridDataset: DataGridDataset;
10
- private fakeIDsGenerated;
11
- private modifiedValues;
12
- constructor();
13
- clearChangedValues(): void;
14
- removeValue(key: string): void;
15
- saveChanges(): Observable<any>;
16
- storeFakeIDGenerated(id: any): void;
17
- updateValues(key: string, newRowData: any): void;
18
- abstract newData(id: any): any;
19
- abstract saveData(batchUpdate: IBatchUpdate<any, any>): Observable<any>;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiEditorDataset, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<MultiEditorDataset>;
22
- }
@@ -1,26 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { IMultiSelectorChanges } from '../../models/multi-selector-changes';
4
- import { GridDataset } from './grid.dataset';
5
- import * as i0 from "@angular/core";
6
- export declare abstract class MultiSelectResultDataset extends GridDataset {
7
- savedChanges: EventEmitter<void>;
8
- displayedIDs: any[];
9
- displayedRows: any[];
10
- private _idsToAdd;
11
- private _idsToRemove;
12
- private addedRowData;
13
- get idsToAdd(): any[];
14
- get idsToRemove(): any[];
15
- refresh(): void;
16
- saveChanges(): Observable<any>;
17
- setIDToAdd(idToAdd: any, rowData: any): void;
18
- setIDToRemove(idToRemove: any): void;
19
- protected updateLoadedRows(rows: any[]): void;
20
- private clearSelection;
21
- private isExistingID;
22
- private updateDisplayedRows;
23
- protected abstract saveData(changedIds: IMultiSelectorChanges): Observable<any>;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectResultDataset, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<MultiSelectResultDataset>;
26
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class FormGroupService {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupService, never>;
4
- static ɵprov: i0.ɵɵInjectableDeclaration<FormGroupService>;
5
- }