@energycap/components 0.27.4 → 0.27.7
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/bundles/energycap-components.umd.js +63 -6
- package/bundles/energycap-components.umd.js.map +1 -1
- package/bundles/energycap-components.umd.min.js +1 -1
- package/bundles/energycap-components.umd.min.js.map +1 -1
- package/energycap-components.metadata.json +1 -1
- package/energycap-components.min.css +1 -1
- package/esm2015/lib/components.module.js +8 -4
- package/esm2015/lib/controls/menu/menu.component.js +16 -3
- package/esm2015/lib/core/custom-validators.js +8 -1
- package/esm2015/lib/core/validation-message.service.js +5 -2
- package/esm2015/lib/core/validation-patterns.js +3 -1
- package/esm2015/lib/display/hierarchy/hierarchy-base.js +1 -1
- package/esm2015/lib/display/table/searchable-table.component.js +2 -2
- package/esm2015/lib/shared/display/pipes/highlight-text.pipe.js +26 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/energycap-components.js +59 -7
- package/fesm2015/energycap-components.js.map +1 -1
- package/lib/controls/menu/menu.component.d.ts +6 -0
- package/lib/core/custom-validators.d.ts +4 -0
- package/lib/core/validation-message.service.d.ts +1 -1
- package/lib/core/validation-patterns.d.ts +2 -0
- package/lib/display/hierarchy/hierarchy-base.d.ts +5 -0
- package/lib/shared/display/pipes/highlight-text.pipe.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/assets/locales/en_US.json +2 -1
- package/src/styles/utilities/_layout.scss +5 -0
|
@@ -89,6 +89,12 @@ export declare class MenuComponent implements AfterContentInit, OnDestroy {
|
|
|
89
89
|
* Item currently highlighted by keyboard navigation
|
|
90
90
|
*/
|
|
91
91
|
highlightedItem: MenuItem | null;
|
|
92
|
+
/**
|
|
93
|
+
* Tells the menu to maintain the selected/lastSelected item. Turning this off is useful for
|
|
94
|
+
* action type menus that are displayed on the screen at all times and you do not
|
|
95
|
+
* want the item to be selected when clicked.
|
|
96
|
+
*/
|
|
97
|
+
maintainSelectedItem: boolean;
|
|
92
98
|
/**
|
|
93
99
|
* Emitted when `selected` is changed. Emits the referenced object.
|
|
94
100
|
*
|
|
@@ -13,4 +13,8 @@ export declare class CustomValidators {
|
|
|
13
13
|
* Returns a validation error if the control's value is not valid JSON.
|
|
14
14
|
*/
|
|
15
15
|
static json: ValidatorFn;
|
|
16
|
+
/**
|
|
17
|
+
* Returns a validation error if the control's value is not a valid domain.
|
|
18
|
+
*/
|
|
19
|
+
static domain: ValidatorFn;
|
|
16
20
|
}
|
|
@@ -13,6 +13,8 @@ export declare const dateInputFormatRegex: RegExp;
|
|
|
13
13
|
* invalidate if just a minus sign is entered in the input, any digit `0-9` is allowed
|
|
14
14
|
*/
|
|
15
15
|
export declare const integerPattern: RegExp;
|
|
16
|
+
/** Pattern to validate most public domains */
|
|
17
|
+
export declare const domainPattern: RegExp;
|
|
16
18
|
/**
|
|
17
19
|
* Function to return a decimal RegExp. Takes in the number of decimals to validate
|
|
18
20
|
* against
|
|
@@ -42,6 +42,11 @@ export declare class HierarchyItem implements LinkItem {
|
|
|
42
42
|
* @see https://angular.io/guide/router#active-router-links
|
|
43
43
|
*/
|
|
44
44
|
isActiveExactMatch?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Reference to the parent item. Useful if you need to walk the tree in reverse. An example usage
|
|
47
|
+
* would be to expand all parent items above a node that is the current selection.
|
|
48
|
+
*/
|
|
49
|
+
parentItem?: HierarchyItem;
|
|
45
50
|
}
|
|
46
51
|
export declare abstract class HierarchyBase implements OnChanges, OnDestroy {
|
|
47
52
|
/** First item to start the hierarchy structure */
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from './lib/shared/display/pipes/date-display.pipe';
|
|
|
51
51
|
export * from './lib/shared/display/pipes/row-count.pipe';
|
|
52
52
|
export * from './lib/shared/display/pipes/time-display.pipe';
|
|
53
53
|
export * from './lib/shared/display/pipes/relative-date.pipe';
|
|
54
|
+
export * from './lib/shared/display/pipes/highlight-text.pipe';
|
|
54
55
|
export * from './lib/shared/user-preference.service';
|
|
55
56
|
export * from './lib/shared/lodash-helper';
|
|
56
57
|
export * from './lib/core/cache.service';
|
|
@@ -36,5 +36,6 @@
|
|
|
36
36
|
"PageBaseUnknownSaveError_SC": "An unknown error occurred while saving your changes. Please try again later.",
|
|
37
37
|
"PasswordInvalidValidationMessage_LC": "does not meet all requirements",
|
|
38
38
|
"Next_TC": "Next",
|
|
39
|
-
"Back_TC": "Back"
|
|
39
|
+
"Back_TC": "Back",
|
|
40
|
+
"DomainValidationMessage_SC": "must be a valid domain name"
|
|
40
41
|
}
|