@energycap/components 0.39.27-ECAP-26661-delete-site-updates-product-aware-confirm.20241002-1458 → 0.39.28-ECAP-26357-spinner-theme.20241007-0858
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/esm2020/lib/controls/item-picker/item-picker.component.mjs +8 -4
- package/esm2020/lib/display/confirm/confirm.component.mjs +4 -37
- package/esm2020/lib/display/spinner/spinner.component.mjs +2 -2
- package/esm2020/lib/display/table/searchable-table.component.mjs +7 -3
- package/esm2020/lib/display/table/table-pagination.component.mjs +8 -3
- package/fesm2015/energycap-components.mjs +24 -43
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +24 -41
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/controls/item-picker/item-picker.component.d.ts +2 -0
- package/lib/display/confirm/confirm.component.d.ts +2 -20
- package/lib/display/table/searchable-table.component.d.ts +3 -1
- package/lib/display/table/table-pagination.component.d.ts +3 -1
- package/package.json +1 -1
- package/src/styles/mixins/_spinner-base.scss +1 -1
@@ -100,6 +100,8 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
|
|
100
100
|
showSelectAllItemsButton: boolean;
|
101
101
|
/** The total number of items returned from the api across all pages */
|
102
102
|
totalItemsBeforePaging?: number;
|
103
|
+
/** Passed to the searchable table control. Used to disable the pagination controls */
|
104
|
+
disablePaginationControls?: boolean;
|
103
105
|
/**
|
104
106
|
* Template used to display the available and selected items as well as the available item header.
|
105
107
|
* This will be set to the default template if a custom is not provided
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { EventEmitter,
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
2
2
|
import { UntypedFormGroup, ValidatorFn } from '@angular/forms';
|
3
3
|
import { ButtonType } from '../../controls/button/button.component';
|
4
4
|
import { TextboxType } from '../../controls/textbox/textbox.component';
|
@@ -17,17 +17,6 @@ export declare class ConfirmDialogContext {
|
|
17
17
|
title?: string;
|
18
18
|
/** Optional message */
|
19
19
|
message?: string;
|
20
|
-
/** Optional checkConfirm
|
21
|
-
* this will determine if ec-checkbox is available or no
|
22
|
-
* in order to delete or move to no parent the entity
|
23
|
-
*/
|
24
|
-
checkConfirm?: boolean;
|
25
|
-
/**
|
26
|
-
* checkboxContent
|
27
|
-
* Determine the label next to the checkbox
|
28
|
-
* if checkConfirm is true otherwise is not visible
|
29
|
-
*/
|
30
|
-
checkboxText?: string;
|
31
20
|
/**
|
32
21
|
* Optional textbox type, this will determine whether
|
33
22
|
* an input is visible or not
|
@@ -56,8 +45,6 @@ export declare class ConfirmDialogContext {
|
|
56
45
|
validationErrorMessage?: string;
|
57
46
|
/** Value returned from the input if enabled */
|
58
47
|
textboxValue?: string;
|
59
|
-
checkboxValue?: boolean;
|
60
|
-
confirmLabel?: string;
|
61
48
|
/** Optional save button label */
|
62
49
|
saveLabel?: string;
|
63
50
|
/** Optional save button type */
|
@@ -87,13 +74,11 @@ export declare class ConfirmDialogContext {
|
|
87
74
|
/** The message to be displayed while inlineConfirmAction is pending. */
|
88
75
|
inlineConfirmPendingMessage?: string;
|
89
76
|
}
|
90
|
-
export declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDialogContext
|
77
|
+
export declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDialogContext> {
|
91
78
|
dialogId: string;
|
92
79
|
/** Form Group to hold any form controls needed */
|
93
80
|
formGroup: UntypedFormGroup;
|
94
81
|
status: Overlay;
|
95
|
-
showTextBox: boolean;
|
96
|
-
private destroyed;
|
97
82
|
/**
|
98
83
|
* Provided by the calling component to tell the confirm what to show
|
99
84
|
* and is used on save to send back any entered values from the user
|
@@ -108,9 +93,6 @@ export declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDi
|
|
108
93
|
ngOnInit(): void;
|
109
94
|
onSave(source: SaveSource): void;
|
110
95
|
onCancel(): void;
|
111
|
-
ngOnDestroy(): void;
|
112
|
-
listenCheckBox(): void;
|
113
|
-
private setValidations;
|
114
96
|
/**
|
115
97
|
* Adds the textbox form control to our form group if its configured to be visible
|
116
98
|
* Will also add the required validator if requested
|
@@ -152,6 +152,8 @@ export declare class SearchableTableComponent implements OnInit, OnDestroy, OnCh
|
|
152
152
|
overlayClasses: string;
|
153
153
|
/** When true the overlay and table will not have flex-shrink-max but instead flex-grow */
|
154
154
|
fillParentHeight?: boolean;
|
155
|
+
/** Passed to the pagination control component. Used to disable the pagination controls */
|
156
|
+
disablePaginationControls?: boolean;
|
155
157
|
/**
|
156
158
|
* PagingInfo for the current page.
|
157
159
|
*/
|
@@ -200,5 +202,5 @@ export declare class SearchableTableComponent implements OnInit, OnDestroy, OnCh
|
|
200
202
|
/** Get text to display in the footer. */
|
201
203
|
private getCaption;
|
202
204
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchableTableComponent, never>;
|
203
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchableTableComponent, "ec-searchable-table", never, { "id": "id"; "resizable": "resizable"; "sortable": "sortable"; "sort": "sort"; "autofocus": "autofocus"; "tableClasses": "tableClasses"; "searchboxPlaceholder": "searchboxPlaceholder"; "formModel": "formModel"; "noDataMessage": "noDataMessage"; "noSearchResultsMessage": "noSearchResultsMessage"; "ready": "ready"; "getItems": "getItems"; "refresh": "refresh"; "status": "status"; "tableLayoutFixed": "tableLayoutFixed"; "searchboxTabIndex": "searchboxTabIndex"; "maxItemCount": "maxItemCount"; "hideSearchControl": "hideSearchControl"; "hideHeader": "hideHeader"; "objectType": "objectType"; "hideFooter": "hideFooter"; "pageable": "pageable"; "pageSize": "pageSize"; "maxTabs": "maxTabs"; "searchboxReadonly": "searchboxReadonly"; "selectionContext": "selectionContext"; "selectionToolbarTemplate": "selectionToolbarTemplate"; "additionalCountText": "additionalCountText"; "selectable": "selectable"; "customContentTemplate": "customContentTemplate"; "removeCard": "removeCard"; "overlayClasses": "overlayClasses"; "fillParentHeight": "fillParentHeight"; }, { "sortChange": "sortChange"; "pageChangeEmitter": "pageChange"; "itemsChange": "itemsChange"; }, ["resizableColumns"], [".searchable-table-controls", ".card-header", "*", ".searchable-table-footer"], false, never>;
|
205
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchableTableComponent, "ec-searchable-table", never, { "id": "id"; "resizable": "resizable"; "sortable": "sortable"; "sort": "sort"; "autofocus": "autofocus"; "tableClasses": "tableClasses"; "searchboxPlaceholder": "searchboxPlaceholder"; "formModel": "formModel"; "noDataMessage": "noDataMessage"; "noSearchResultsMessage": "noSearchResultsMessage"; "ready": "ready"; "getItems": "getItems"; "refresh": "refresh"; "status": "status"; "tableLayoutFixed": "tableLayoutFixed"; "searchboxTabIndex": "searchboxTabIndex"; "maxItemCount": "maxItemCount"; "hideSearchControl": "hideSearchControl"; "hideHeader": "hideHeader"; "objectType": "objectType"; "hideFooter": "hideFooter"; "pageable": "pageable"; "pageSize": "pageSize"; "maxTabs": "maxTabs"; "searchboxReadonly": "searchboxReadonly"; "selectionContext": "selectionContext"; "selectionToolbarTemplate": "selectionToolbarTemplate"; "additionalCountText": "additionalCountText"; "selectable": "selectable"; "customContentTemplate": "customContentTemplate"; "removeCard": "removeCard"; "overlayClasses": "overlayClasses"; "fillParentHeight": "fillParentHeight"; "disablePaginationControls": "disablePaginationControls"; }, { "sortChange": "sortChange"; "pageChangeEmitter": "pageChange"; "itemsChange": "itemsChange"; }, ["resizableColumns"], [".searchable-table-controls", ".card-header", "*", ".searchable-table-footer"], false, never>;
|
204
206
|
}
|
@@ -35,6 +35,8 @@ export declare class TablePaginationComponent implements OnChanges {
|
|
35
35
|
* Maximum number of page tabs to show
|
36
36
|
*/
|
37
37
|
maxTabs?: number;
|
38
|
+
/** When true the tabs and the more pages dropdown will be disabled */
|
39
|
+
disablePaginationControls?: boolean;
|
38
40
|
/**
|
39
41
|
* Emits when the page changes.
|
40
42
|
*
|
@@ -84,6 +86,6 @@ export declare class TablePaginationComponent implements OnChanges {
|
|
84
86
|
*/
|
85
87
|
private setDropdownItems;
|
86
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<TablePaginationComponent, never>;
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TablePaginationComponent, "ec-table-pagination", never, { "id": "id"; "totalItems": "totalItems"; "pageSize": "pageSize"; "pageNumber": "pageNumber"; "maxTabs": "maxTabs"; }, { "pageChanged": "pageChanged"; }, never, never, false, never>;
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TablePaginationComponent, "ec-table-pagination", never, { "id": "id"; "totalItems": "totalItems"; "pageSize": "pageSize"; "pageNumber": "pageNumber"; "maxTabs": "maxTabs"; "disablePaginationControls": "disablePaginationControls"; }, { "pageChanged": "pageChanged"; }, never, never, false, never>;
|
88
90
|
}
|
89
91
|
export {};
|
package/package.json
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
@mixin spinner-dot($dot-size: .75rem) {
|
13
13
|
width: $dot-size;
|
14
14
|
height: $dot-size;
|
15
|
-
background-color: var(--ec-color-
|
15
|
+
background-color: var(--ec-spinner-color, var(--ec-color-purple-5));
|
16
16
|
animation: sk-bouncedelay 1.7s infinite ease-in-out both;
|
17
17
|
margin-right: math.div($dot-size, 3);
|
18
18
|
|