@dataclouder/ngx-core 0.1.11 → 0.1.13

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.
@@ -14,8 +14,6 @@ export interface OnActionEvent {
14
14
  * Child classes must implement the loadData method and define columns.
15
15
  */
16
16
  export declare abstract class PaginationBase {
17
- protected route: ActivatedRoute;
18
- protected router: Router;
19
17
  /**
20
18
  * Available actions for items.
21
19
  * Must be implemented by child classes.
@@ -48,12 +46,14 @@ export declare abstract class PaginationBase {
48
46
  * Includes current page, rows per page, sorting criteria, and applied filters.
49
47
  */
50
48
  filterConfig: FiltersConfig;
49
+ protected route: ActivatedRoute;
50
+ protected router: Router;
51
51
  /**
52
52
  * Creates an instance of PaginationBase.
53
53
  * @param route - The ActivatedRoute for accessing route parameters
54
54
  * @param router - The Router for navigation
55
55
  */
56
- constructor(route: ActivatedRoute, router: Router);
56
+ constructor();
57
57
  /**
58
58
  * Initializes pagination based on URL query parameters.
59
59
  * Sets the current page from the 'page' query parameter if available.
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface PromptOptions {
3
+ title?: string;
4
+ message?: string;
5
+ acceptText?: string;
6
+ cancelText?: string;
7
+ initialValue?: string;
8
+ }
9
+ export declare class PromptService {
10
+ private readonly dialogService;
11
+ /**
12
+ * Opens a prompt dialog.
13
+ * @param options Configuration options for the prompt dialog.
14
+ * @returns A promise that resolves with the input value if accepted, or null if canceled.
15
+ */
16
+ openPrompt(options: PromptOptions): Promise<string | null>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<PromptService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<PromptService>;
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-core",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Angular core components library for DataClouder applications, only for internal use",
5
5
  "author": {
6
6
  "name": "dataclouder",
package/public-api.d.ts CHANGED
@@ -1,14 +1,15 @@
1
1
  export * from './lib/components/empty-state/empty-state.component';
2
2
  export * from './lib/components/list-filter-bar/dc-list-filter-bar.component';
3
3
  export * from './lib/components/confirm/confirm.component';
4
- export * from './lib/models/classes';
5
- export * from './lib/models/pagination.abstract';
6
- export * from './lib/models/filter.models';
7
- export * from './lib/services/confirm.service';
8
- export * from './lib/utils/utils';
9
4
  export * from './lib/components/progress-toast/progress-toast';
10
5
  export * from './lib/components/loading-bar/loading-bar';
11
6
  export * from './lib/components/loading-bar/loading-bar.service';
12
7
  export * from './lib/components/quick-table/quick-table';
8
+ export * from './lib/models/classes';
9
+ export * from './lib/models/pagination.abstract';
10
+ export * from './lib/models/filter.models';
11
+ export * from './lib/utils/utils';
13
12
  export * from './lib/pipes/loadash-get.pipe';
13
+ export * from './lib/services/confirm.service';
14
+ export * from './lib/services/prompt.service';
14
15
  export * from './lib/services/http-core.service';