@c8y/ngx-components 1022.26.1 → 1022.28.2
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/search/inventory-search.service.d.ts +4 -3
- package/core/search/inventory-search.service.d.ts.map +1 -1
- package/core/search/search-input.component.d.ts +5 -2
- package/core/search/search-input.component.d.ts.map +1 -1
- package/core/search/search.model.d.ts +4 -0
- package/core/search/search.model.d.ts.map +1 -1
- package/core/search/search.service.d.ts +2 -1
- package/core/search/search.service.d.ts.map +1 -1
- package/core/select/typeahead.component.d.ts +2 -1
- package/core/select/typeahead.component.d.ts.map +1 -1
- package/device-grid/device-grid.component.d.ts.map +1 -1
- package/device-grid/device-grid.service.d.ts +4 -3
- package/device-grid/device-grid.service.d.ts.map +1 -1
- package/echart/charts.component.d.ts.map +1 -1
- package/ecosystem/application-plugins/application-plugins.component.d.ts +3 -0
- package/ecosystem/application-plugins/application-plugins.component.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-alarms.mjs +2 -2
- package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-assets-navigator.mjs +2 -2
- package/fesm2022/c8y-ngx-components-assets-navigator.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-grid.mjs +21 -13
- package/fesm2022/c8y-ngx-components-device-grid.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-profile.mjs +1 -1
- package/fesm2022/c8y-ngx-components-device-profile.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +22 -70
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs +41 -21
- package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem.mjs +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-map.mjs +84 -26
- package/fesm2022/c8y-ngx-components-map.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs +2 -2
- package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs +1 -1
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs +2 -2
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-shared.mjs +2 -2
- package/fesm2022/c8y-ngx-components-repository-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-software.mjs +1 -1
- package/fesm2022/c8y-ngx-components-repository-software.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-search.mjs +328 -210
- package/fesm2022/c8y-ngx-components-search.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-sub-assets.mjs +36 -16
- package/fesm2022/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +7390 -7345
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +27 -0
- package/locales/es.po +27 -0
- package/locales/fr.po +27 -0
- package/locales/ja_JP.po +27 -0
- package/locales/ko.po +27 -0
- package/locales/locales.pot +25 -3
- package/locales/nl.po +27 -0
- package/locales/pl.po +27 -0
- package/locales/pt_BR.po +27 -0
- package/locales/zh_CN.po +27 -0
- package/locales/zh_TW.po +27 -0
- package/map/map.service.d.ts +13 -10
- package/map/map.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/search/columns/asset-type-search-grid-column.d.ts.map +1 -1
- package/search/search-action.component.d.ts +12 -8
- package/search/search-action.component.d.ts.map +1 -1
- package/search/search-custom-filters.component.d.ts +18 -4
- package/search/search-custom-filters.component.d.ts.map +1 -1
- package/search/search-grid.component.d.ts +14 -14
- package/search/search-grid.component.d.ts.map +1 -1
- package/search/search-results.component.d.ts +3 -1
- package/search/search-results.component.d.ts.map +1 -1
- package/search/search.module.d.ts.map +1 -1
- package/search/search.service.d.ts +14 -6
- package/search/search.service.d.ts.map +1 -1
- package/sub-assets/sub-assets.service.d.ts +9 -5
- package/sub-assets/sub-assets.service.d.ts.map +1 -1
- package/echart/services/custom-measurements.service.d.ts +0 -12
- package/echart/services/custom-measurements.service.d.ts.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { IManagedObject
|
|
1
|
+
import { IManagedObject } from '@c8y/client';
|
|
2
2
|
import { Pagination } from '../data-grid';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class InventorySearchService {
|
|
5
|
-
private inventoryService;
|
|
6
5
|
protected DEFAULT_PAGE_SIZE: number;
|
|
6
|
+
private inventoryService;
|
|
7
|
+
private previewService;
|
|
7
8
|
private queriesUtil;
|
|
8
|
-
|
|
9
|
+
isWildcardSearchEnabled(): Promise<boolean>;
|
|
9
10
|
/**
|
|
10
11
|
* Returns the full-text search results.
|
|
11
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-search.service.d.ts","sourceRoot":"","sources":["../../../core/search/inventory-search.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"inventory-search.service.d.ts","sourceRoot":"","sources":["../../../core/search/inventory-search.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAiC,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;AAK1C,qBAGa,sBAAsB;IACjC,SAAS,CAAC,iBAAiB,SAAM;IACjC,OAAO,CAAC,gBAAgB,CAA8C;IACtE,OAAO,CAAC,cAAc,CAA0C;IAChE,OAAO,CAAC,WAAW,CAAqB;IAElC,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAMjD;;;;;OAKG;IACG,MAAM,CACV,IAAI,EAAE,MAAM,EACZ,UAAU,GAAE,UAAiE;IAyB/E;;;;;OAKG;IACG,YAAY,CAChB,IAAI,EAAE,MAAM,EACZ,UAAU,GAAE,UAAiE;IA0B/E;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;IAI1D,OAAO,CAAC,0BAA0B;IAalC,OAAO,CAAC,qBAAqB;yCArGlB,sBAAsB;6CAAtB,sBAAsB;CA4GlC"}
|
|
@@ -10,7 +10,7 @@ export declare class SearchInputComponent {
|
|
|
10
10
|
private inventory;
|
|
11
11
|
private inventorySearchService;
|
|
12
12
|
private cd;
|
|
13
|
-
mode: 'search' | 'select';
|
|
13
|
+
mode: 'search' | 'select' | 'wildcardsearch';
|
|
14
14
|
/**
|
|
15
15
|
* Unlocks the ability to place a custom template under the search input.
|
|
16
16
|
*/
|
|
@@ -34,6 +34,7 @@ export declare class SearchInputComponent {
|
|
|
34
34
|
search: EventEmitter<string>;
|
|
35
35
|
reset: EventEmitter<IManagedObject>;
|
|
36
36
|
onClick: EventEmitter<IManagedObject>;
|
|
37
|
+
onOpenToggle: EventEmitter<boolean>;
|
|
37
38
|
deviceType: typeof ManagedObjectType;
|
|
38
39
|
term: string;
|
|
39
40
|
defaultPlaceholder: "Search for groups or assets…";
|
|
@@ -44,6 +45,8 @@ export declare class SearchInputComponent {
|
|
|
44
45
|
recentlyRegisteredResults$: Observable<IResultList<IManagedObject>>;
|
|
45
46
|
isLoading: boolean;
|
|
46
47
|
noMatch: boolean;
|
|
48
|
+
readonly RESET_TEXT: "Clear search results";
|
|
49
|
+
readonly SEARCH_TEXT: "Search";
|
|
47
50
|
private readonly RECENT_SEARCH_STORAGE_KEY;
|
|
48
51
|
private readonly MAX_RECENT_SEARCH_RESULTS;
|
|
49
52
|
private readonly DEFAULT_FILTER;
|
|
@@ -73,6 +76,6 @@ export declare class SearchInputComponent {
|
|
|
73
76
|
private onLoadingDone;
|
|
74
77
|
private onTypingStarted;
|
|
75
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchInputComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "c8y-search-input", never, { "mode": { "alias": "mode"; "required": false; }; "enableCustomTemplatePlaceholder": { "alias": "enableCustomTemplatePlaceholder"; "required": false; }; "customPlaceholder": { "alias": "customPlaceholder"; "required": false; }; "externalTerm": { "alias": "externalTerm"; "required": false; }; "customDataQuery": { "alias": "customDataQuery"; "required": false; }; "container": { "alias": "container"; "required": false; }; "groupsOnly": { "alias": "groupsOnly"; "required": false; }; }, { "filter": "filter"; "search": "search"; "reset": "reset"; "onClick": "onClick"; }, never, ["*"], true, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "c8y-search-input", never, { "mode": { "alias": "mode"; "required": false; }; "enableCustomTemplatePlaceholder": { "alias": "enableCustomTemplatePlaceholder"; "required": false; }; "customPlaceholder": { "alias": "customPlaceholder"; "required": false; }; "externalTerm": { "alias": "externalTerm"; "required": false; }; "customDataQuery": { "alias": "customDataQuery"; "required": false; }; "container": { "alias": "container"; "required": false; }; "groupsOnly": { "alias": "groupsOnly"; "required": false; }; }, { "filter": "filter"; "search": "search"; "reset": "reset"; "onClick": "onClick"; "onOpenToggle": "onOpenToggle"; }, never, ["*"], true, never>;
|
|
77
80
|
}
|
|
78
81
|
//# sourceMappingURL=search-input.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-input.component.d.ts","sourceRoot":"","sources":["../../../core/search/search-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,YAAY,EAKb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAU,MAAM,aAAa,CAAC;AAGpF,OAAO,EAAuB,UAAU,EAAe,aAAa,EAAE,MAAM,MAAM,CAAC;AAEnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;;AAgBpE,qBA2Ba,oBAAoB;
|
|
1
|
+
{"version":3,"file":"search-input.component.d.ts","sourceRoot":"","sources":["../../../core/search/search-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,YAAY,EAKb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAU,MAAM,aAAa,CAAC;AAGpF,OAAO,EAAuB,UAAU,EAAe,aAAa,EAAE,MAAM,MAAM,CAAC;AAEnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;;AAgBpE,qBA2Ba,oBAAoB;IAgF7B,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,sBAAsB;IAC9B,OAAO,CAAC,EAAE;IAjFZ,IAAI,EAAE,QAAQ,GAAG,QAAQ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OAAO,CAAC,QAAQ,CAAsB;gBAG5B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,gBAAgB,EAC3B,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,EAAE,iBAAiB;IAGzB,QAAQ;IA+BgC,gBAAgB,CAAC,KAAK,EAAE,aAAa;IAMnF,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAanC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,KAAA;IAmB5C,OAAO,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,UAAU,CAAA;KAAE;IAQpD,OAAO,CAAC,KAAK,EAAE,aAAa;IAU5B,QAAQ,CAAC,MAAM,EAAE,MAAM;IAOvB,QAAQ,CAAC,MAAM,EAAE,MAAM;IAKvB,gBAAgB;IAKhB,WAAW;IAOX,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,WAAW;IAcnB,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,eAAe;yCArPZ,oBAAoB;2CAApB,oBAAoB;CA0PhC"}
|
|
@@ -42,4 +42,8 @@ export interface Search {
|
|
|
42
42
|
* Factory to implement if used in a hook for Multi Provider extension.
|
|
43
43
|
*/
|
|
44
44
|
export type SearchFactory = ExtensionFactory<Search>;
|
|
45
|
+
/**
|
|
46
|
+
* Feature key for wildcard search.
|
|
47
|
+
*/
|
|
48
|
+
export declare const WILDCARD_SEARCH_FEATURE_KEY = "ui.search.wildcard";
|
|
45
49
|
//# sourceMappingURL=search.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.model.d.ts","sourceRoot":"","sources":["../../../core/search/search.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,gBAAgB,EA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,CAAC,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,2BAA2B,uBAAuB,CAAC"}
|
|
@@ -37,7 +37,8 @@ export declare function hookSearch(search: GenericHookType<Search>, options?: Pa
|
|
|
37
37
|
export declare enum SearchFilters {
|
|
38
38
|
ONLY_DEVICES = "onlyDevices",
|
|
39
39
|
ONLY_GROUPS_AND_ASSETS = "onlyGroupsAndAssets",
|
|
40
|
-
ALL_FILTERS = "allFilters"
|
|
40
|
+
ALL_FILTERS = "allFilters",
|
|
41
|
+
CURRENT_HIERARCHY = "currentHierarchy"
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
44
|
* A service which defines the search function.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.service.d.ts","sourceRoot":"","sources":["../../../core/search/search.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAEL,eAAe,EAIf,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;;AAExC;;;;GAIG;AACH,eAAO,MAAM,WAAW,yBAAoC,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,4HAEhG;AAED,oBAAY,aAAa;IACvB,YAAY,gBAAgB;IAC5B,sBAAsB,wBAAwB;IAC9C,WAAW,eAAe;
|
|
1
|
+
{"version":3,"file":"search.service.d.ts","sourceRoot":"","sources":["../../../core/search/search.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAEL,eAAe,EAIf,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;;AAExC;;;;GAIG;AACH,eAAO,MAAM,WAAW,yBAAoC,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,4HAEhG;AAED,oBAAY,aAAa;IACvB,YAAY,gBAAgB;IAC5B,sBAAsB,wBAAwB;IAC9C,WAAW,eAAe;IAC1B,iBAAiB,qBAAqB;CACvC;AAED;;GAEG;AACH,qBAGa,aAAc,SAAQ,wBAAwB,CAAC,MAAM,CAAC;IAG/D,OAAO,CAAC,MAAM;gBADd,YAAY,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,EACtB,OAAO,EAAE,qBAAqB;IAMhC;;;;OAIG;IACH,IAAI,KAAK,gBAER;IAED;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM;IAKhB;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM;IAKnB,SAAS,CAAC,oBAAoB,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;yCArC3C,aAAa;6CAAb,aAAa;CA4CzB"}
|
|
@@ -23,6 +23,7 @@ export declare class TypeaheadComponent implements ControlValueAccessor, Validat
|
|
|
23
23
|
hideNew: boolean;
|
|
24
24
|
container: '' | 'body';
|
|
25
25
|
selected: IIdentified;
|
|
26
|
+
title: string;
|
|
26
27
|
highlightFirstItem: boolean;
|
|
27
28
|
onSearch: EventEmitter<string>;
|
|
28
29
|
onIconClick: EventEmitter<{
|
|
@@ -50,6 +51,6 @@ export declare class TypeaheadComponent implements ControlValueAccessor, Validat
|
|
|
50
51
|
[key: string]: any;
|
|
51
52
|
};
|
|
52
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<TypeaheadComponent, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeaheadComponent, "c8y-typeahead", never, { "required": { "alias": "required"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowFreeEntries": { "alias": "allowFreeEntries"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "displayProperty": { "alias": "displayProperty"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "hideNew": { "alias": "hideNew"; "required": false; }; "container": { "alias": "container"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "highlightFirstItem": { "alias": "highlightFirstItem"; "required": false; }; }, { "onSearch": "onSearch"; "onIconClick": "onIconClick"; }, ["list"], ["div, c8y-li, c8y-list-item, button, a"], true, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TypeaheadComponent, "c8y-typeahead", never, { "required": { "alias": "required"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowFreeEntries": { "alias": "allowFreeEntries"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "displayProperty": { "alias": "displayProperty"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "hideNew": { "alias": "hideNew"; "required": false; }; "container": { "alias": "container"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "title": { "alias": "title"; "required": false; }; "highlightFirstItem": { "alias": "highlightFirstItem"; "required": false; }; }, { "onSearch": "onSearch"; "onIconClick": "onIconClick"; }, ["list"], ["div, c8y-li, c8y-list-item, button, a"], true, never>;
|
|
54
55
|
}
|
|
55
56
|
//# sourceMappingURL=typeahead.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeahead.component.d.ts","sourceRoot":"","sources":["../../../core/select/typeahead.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGb,UAAU,EACV,YAAY,EAIZ,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,oBAAoB,EAGpB,SAAS,EAEV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAoB,MAAM,wBAAwB,CAAC;AAG/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;;
|
|
1
|
+
{"version":3,"file":"typeahead.component.d.ts","sourceRoot":"","sources":["../../../core/select/typeahead.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGb,UAAU,EACV,YAAY,EAIZ,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,oBAAoB,EAGpB,SAAS,EAEV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAoB,MAAM,wBAAwB,CAAC;AAG/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;;AAQlE,qBA4Ba,kBAAmB,YAAW,oBAAoB,EAAE,SAAS,EAAE,aAAa;IA6D3E,OAAO,CAAC,qBAAqB;IA5DM,aAAa,EAAE,UAAU,CAAC;IACrB,kBAAkB,M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kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAAC,oBAAoB,CAAC;IAiFhC,eAAe,CACb,WAAW,EAAE,MAAM,EAAE,EACrB,MAAM,EAAE;QACN,IAAI,EAAE,mBAAmB,CAAC;QAC1B,OAAO,CAAC,EAAE;YAAE,iBAAiB,EAAE,iBAAiB,CAAA;SAAE,CAAC;KACpD;yCA9MQ,mBAAmB;2CAAnB,mBAAmB;CAuN/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IManagedObject, InventoryService, UserService } from '@c8y/client';
|
|
2
|
-
import { AlertService, BulkActionControl, Column, DataGridService, GridConfig, HeaderActionControl, ModalService, Pagination, UserPreferencesService } from '@c8y/ngx-components';
|
|
2
|
+
import { AlertService, BulkActionControl, Column, DataGridService, GridConfig, HeaderActionControl, InventorySearchService, ModalService, Pagination, UserPreferencesService } from '@c8y/ngx-components';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { ColumnUtilService } from './columns/column-util.service';
|
|
@@ -12,8 +12,9 @@ export declare class DeviceGridService extends DataGridService {
|
|
|
12
12
|
protected modal: ModalService;
|
|
13
13
|
protected columnUtilService: ColumnUtilService;
|
|
14
14
|
protected userPreferencesService: UserPreferencesService;
|
|
15
|
+
protected searchService: InventorySearchService;
|
|
15
16
|
protected GRID_CONFIG_DEFAULT_STORAGE_KEY: string;
|
|
16
|
-
constructor(inventoryService: InventoryService, userService: UserService, translateService: TranslateService, alertService: AlertService, modal: ModalService, columnUtilService: ColumnUtilService, userPreferencesService: UserPreferencesService);
|
|
17
|
+
constructor(inventoryService: InventoryService, userService: UserService, translateService: TranslateService, alertService: AlertService, modal: ModalService, columnUtilService: ColumnUtilService, userPreferencesService: UserPreferencesService, searchService: InventorySearchService);
|
|
17
18
|
getDefaultColumns(): Column[];
|
|
18
19
|
getChildDeviceGridColumns(): Column[];
|
|
19
20
|
getDefaultPagination(): Pagination;
|
|
@@ -33,7 +34,7 @@ export declare class DeviceGridService extends DataGridService {
|
|
|
33
34
|
getCountChildDevices(columns: Column[], pagination: Pagination, query: any, id: string): Promise<number>;
|
|
34
35
|
getTotalChildDevices(query: any, id: string): Promise<number>;
|
|
35
36
|
getTotal(query?: any): Promise<number>;
|
|
36
|
-
getDeviceQueryString(columns: Column[], query: any): string;
|
|
37
|
+
getDeviceQueryString(columns: Column[], query: any, text: string, isWildcardSearchEnabled: boolean): string;
|
|
37
38
|
clearConfig(key?: string): void;
|
|
38
39
|
getConfig$(key?: string): Observable<GridConfig>;
|
|
39
40
|
saveConfig$(config: GridConfig, key?: string): Observable<GridConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-grid.service.d.ts","sourceRoot":"","sources":["../../device-grid/device-grid.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAS,WAAW,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,eAAe,EAEf,UAAU,EACV,mBAAmB,EACnB,YAAY,EACZ,UAAU,EAEV,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;;AAUlE,qBAGa,iBAAkB,SAAQ,eAAe;IAIlD,SAAS,CAAC,gBAAgB,EAAE,gBAAgB;IAC5C,SAAS,CAAC,WAAW,EAAE,WAAW;IAClC,SAAS,CAAC,gBAAgB,EAAE,gBAAgB;IAC5C,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,KAAK,EAAE,YAAY;IAC7B,SAAS,CAAC,iBAAiB,EAAE,iBAAiB;IAC9C,SAAS,CAAC,sBAAsB,EAAE,sBAAsB;
|
|
1
|
+
{"version":3,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E,OAAO,GAC/B,MAAM;IAWT,WAAW,CAAC,GAAG,GAAE,MAA6C;IAI9D,UAAU,CAAC,GAAG,GAAE,MAA6C,GAAG,UAAU,CAAC,UAAU,CAAC;IAItF,WAAW,CACT,MAAM,EAAE,UAAU,EAClB,GAAG,GAAE,MAA6C,GACjD,UAAU,CAAC,UAAU,CAAC;YAIX,iBAAiB;yCA3PpB,iBAAiB;6CAAjB,iBAAiB;CA8Q7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charts.component.d.ts","sourceRoot":"","sources":["../../echart/charts.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,YAAY,EAGZ,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EAEd,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAgB,MAAM,SAAS,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAE3B,oBAAoB,EAGrB,MAAM,UAAU,CAAC;AAClB,OAAO,
|
|
1
|
+
{"version":3,"file":"charts.component.d.ts","sourceRoot":"","sources":["../../echart/charts.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,YAAY,EAGZ,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EAEd,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAgB,MAAM,SAAS,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAE3B,oBAAoB,EAGrB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAmD,UAAU,EAAM,MAAM,MAAM,CAAC;AAEvF,OAAO,EAKL,+BAA+B,EAKhC,MAAM,qBAAqB,CAAC;AAe7B,OAAO,EAAgC,MAAM,EAAE,MAAM,EAAsB,MAAM,aAAa,CAAC;AAU/F,OAAO,EAAE,QAA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AI,IAAI;IAgBnB,YAAY,IAAI,IAAI;IA0BpB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACzC,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,GACX,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI;IAQnC;;;OAGG;IACH,+BAA+B,CAAC,SAAS,EAAE,yBAAyB,GAAG,IAAI;IAc3E;;;OAGG;IACH,gCAAgC,CAC9B,YAAY,EAAE,oBAAoB,GAAG,oBAAoB,GACxD,IAAI;IAiBP,OAAO,CAAC,sBAAsB;IAe9B,OAAO,CAAC,iBAAiB;IA0BzB,OAAO,CAAC,iBAAiB;YA8BX,mBAAmB;IA6BjC,OAAO,CAAC,uBAAuB;YAmCjB,eAAe;YAoBf,eAAe;IAyG7B,OAAO,CAAC,yBAAyB;IA6CjC,OAAO,CAAC,qBAAqB;IAY7B,OAAO,CAAC,YAAY;yCA/oBT,eAAe;2CAAf,eAAe;CA2qB3B"}
|
|
@@ -110,6 +110,9 @@ export declare class ApplicationPluginsComponent implements OnInit, OnDestroy {
|
|
|
110
110
|
updatePlugin(app: IApplication, plugin: ApplicationPlugin, downgrade?: boolean): Promise<void>;
|
|
111
111
|
refresh(): void;
|
|
112
112
|
ngOnDestroy(): void;
|
|
113
|
+
isStandard(app: IApplication): boolean;
|
|
114
|
+
private everyRemoteFromManifestIsInConfig;
|
|
115
|
+
private everyRemoteFromConfigIsInManifest;
|
|
113
116
|
private addInstallButtonToHeaderActionControls;
|
|
114
117
|
private handleRemotesInstallation;
|
|
115
118
|
private emitRemotes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-plugins.component.d.ts","sourceRoot":"","sources":["../../../ecosystem/application-plugins/application-plugins.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAa,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,aAAa,EACb,YAAY,EACZ,iBAAiB,EAEjB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAEhB,mBAAmB,EACnB,UAAU,EAEV,cAAc,EAEd,mBAAmB,EAWpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAiC,UAAU,EAAW,MAAM,MAAM,CAAC;;AAS3F,qBAoBa,2BAA4B,YAAW,MAAM,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"application-plugins.component.d.ts","sourceRoot":"","sources":["../../../ecosystem/application-plugins/application-plugins.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAa,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,aAAa,EACb,YAAY,EACZ,iBAAiB,EAEjB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAEhB,mBAAmB,EACnB,UAAU,EAEV,cAAc,EAEd,mBAAmB,EAWpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAiC,UAAU,EAAW,MAAM,MAAM,CAAC;;AAS3F,qBAoBa,2BAA4B,YAAW,MAAM,EAAE,SAAS;IAsGjE,OAAO,CAAC,cAAc;IACtB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AAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,mBAAmB,EAAE,mBAAmB;IAGlD,QAAQ;IAKF,QAAQ;IASR,cAAc;IAOd,cAAc;IAkEd,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE;IAwC/B,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,EAAE;IAKzD,iBAAiB,IAAI,aAAa,EAAE;IAyCpC,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI;IAOjD,qBAAqB,IAAI,iBAAiB,EAAE;IAWtC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,SAAS,UAAQ;IAqBlF,OAAO;IAIP,WAAW;IAKX,UAAU,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO;IAWtC,OAAO,CAAC,iCAAiC;IAmBzC,OAAO,CAAC,iCAAiC;IAmBzC,OAAO,CAAC,sCAAsC;YAehC,yBAAyB;IAKvC,OAAO,CAAC,WAAW;YAeL,gBAAgB;YAiBhB,uBAAuB;YAKvB,uBAAuB;YAKvB,2BAA2B;YAM3B,mBAAmB;IAKjC,OAAO,CAAC,wBAAwB;IAgChC,OAAO,CAAC,kBAAkB;IAqC1B,OAAO,CAAC,iDAAiD;IAyBzD,OAAO,CAAC,mBAAmB;IAwC3B,OAAO,CAAC,cAAc;IAkBtB,OAAO,CAAC,sBAAsB;IAU9B,OAAO,CAAC,kBAAkB;yCAxmBf,2BAA2B;2CAA3B,2BAA2B;CA8nBvC"}
|
|
@@ -2213,7 +2213,7 @@ class AlarmsTypeFilterComponent {
|
|
|
2213
2213
|
return activeFilters.map(filter => filter.filters.type).join(',');
|
|
2214
2214
|
}
|
|
2215
2215
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AlarmsTypeFilterComponent, deps: [{ token: i1$3.AlarmEventSelectorService }, { token: i1.ActivatedRoute }, { token: i1.Router }, { token: i3.ColorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2216
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: AlarmsTypeFilterComponent, isStandalone: true, selector: "c8y-alarms-type-filter", inputs: { alarms: "alarms", possibleFilters: "possibleFilters", activeFilters: "activeFilters" }, outputs: { onFilterChanged: "onFilterChanged" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"d-flex a-i-center\">\n <div\n class=\"dropdown\"\n title=\"{{ 'Filter by alarm types' | translate }}\"\n dropdown\n #filtersDropdown=\"bs-dropdown\"\n [cdkTrapFocus]=\"filtersDropdown.isOpen\"\n (onHidden)=\"resetFilters()\"\n [insideClick]=\"true\"\n >\n <div class=\"input-group fit-w\">\n <div class=\"form-control d-flex a-i-center inner-scroll\">\n <ng-container *ngIf=\"activeFilters.length > 0; else allTypes\">\n <span\n class=\"tag tag--info chip\"\n style=\"max-width: 150px\"\n *ngFor=\"let filter of activeFilters\"\n >\n <button\n class=\"btn btn-xs btn-clean text-10\"\n title=\"{{ 'Remove' | translate }}\"\n type=\"button\"\n (click)=\"$event.stopPropagation(); deselect(filter)\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n <span\n class=\"circle-icon-wrapper circle-icon-wrapper--small\"\n [ngStyle]=\"{ 'background-color': filter.color }\"\n >\n <i\n class=\"stroked-icon\"\n c8yIcon=\"bell\"\n ></i>\n </span>\n <span\n class=\"text-truncate text-12 flex-grow\"\n [title]=\"filter.filters.type\"\n [attr.aria-label]=\"filter.filters.type\"\n >\n {{ filter.filters.type }}\n </span>\n </span>\n </ng-container>\n <ng-template #allTypes>\n <span class=\"text-nowrap\">\n {{ 'All alarm types' | translate }}\n </span>\n </ng-template>\n </div>\n <div class=\"input-group-btn input-group-btn--last text-center\">\n <button\n class=\"btn-default btn\"\n [title]=\"'Clear filters' | translate\"\n *ngIf=\"activeFilters.length\"\n (click)=\"deselectAll()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n <button\n class=\"btn-default btn btn--caret\"\n [title]=\"'Alarm types' | translate\"\n data-cy=\"c8y-alarm-type-filter\"\n dropdownToggle\n >\n <i class=\"caret\"></i>\n </button>\n </div>\n </div>\n <div\n class=\"dropdown-menu dropdown-menu-action-bar\"\n style=\"min-width: 250px\"\n *dropdownMenu\n >\n <div class=\"p-16 bg-level-2\">\n <div>\n <p>\n <i\n class=\"text-info m-r-4\"\n [c8yIcon]=\"'info-circle'\"\n ></i>\n <strong translate>The list below may not be complete.</strong>\n </p>\n <p translate>\n Recent alarms are displayed below. Past alarms might not be shown. Optionally you can
|
|
2216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: AlarmsTypeFilterComponent, isStandalone: true, selector: "c8y-alarms-type-filter", inputs: { alarms: "alarms", possibleFilters: "possibleFilters", activeFilters: "activeFilters" }, outputs: { onFilterChanged: "onFilterChanged" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"d-flex a-i-center\">\n <div\n class=\"dropdown\"\n title=\"{{ 'Filter by alarm types' | translate }}\"\n dropdown\n #filtersDropdown=\"bs-dropdown\"\n [cdkTrapFocus]=\"filtersDropdown.isOpen\"\n (onHidden)=\"resetFilters()\"\n [insideClick]=\"true\"\n >\n <div class=\"input-group fit-w\">\n <div class=\"form-control d-flex a-i-center inner-scroll\">\n <ng-container *ngIf=\"activeFilters.length > 0; else allTypes\">\n <span\n class=\"tag tag--info chip\"\n style=\"max-width: 150px\"\n *ngFor=\"let filter of activeFilters\"\n >\n <button\n class=\"btn btn-xs btn-clean text-10\"\n title=\"{{ 'Remove' | translate }}\"\n type=\"button\"\n (click)=\"$event.stopPropagation(); deselect(filter)\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n <span\n class=\"circle-icon-wrapper circle-icon-wrapper--small\"\n [ngStyle]=\"{ 'background-color': filter.color }\"\n >\n <i\n class=\"stroked-icon\"\n c8yIcon=\"bell\"\n ></i>\n </span>\n <span\n class=\"text-truncate text-12 flex-grow\"\n [title]=\"filter.filters.type\"\n [attr.aria-label]=\"filter.filters.type\"\n >\n {{ filter.filters.type }}\n </span>\n </span>\n </ng-container>\n <ng-template #allTypes>\n <span class=\"text-nowrap\">\n {{ 'All alarm types' | translate }}\n </span>\n </ng-template>\n </div>\n <div class=\"input-group-btn input-group-btn--last text-center\">\n <button\n class=\"btn-default btn\"\n [title]=\"'Clear filters' | translate\"\n *ngIf=\"activeFilters.length\"\n (click)=\"deselectAll()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n <button\n class=\"btn-default btn btn--caret\"\n [title]=\"'Alarm types' | translate\"\n data-cy=\"c8y-alarm-type-filter\"\n dropdownToggle\n >\n <i class=\"caret\"></i>\n </button>\n </div>\n </div>\n <div\n class=\"dropdown-menu dropdown-menu-action-bar\"\n style=\"min-width: 250px\"\n *dropdownMenu\n >\n <div class=\"p-16 bg-level-2\">\n <div>\n <p>\n <i\n class=\"text-info m-r-4\"\n [c8yIcon]=\"'info-circle'\"\n ></i>\n <strong translate>The list below may not be complete.</strong>\n </p>\n <p translate>\n Recent alarms are displayed below. Past alarms might not be shown. Optionally you can add a custom alarm.\n </p>\n </div>\n </div>\n <c8y-list-group>\n <div class=\"input-group p-t-16 p-b-16 p-r-32 p-l-32 separator-bottom\">\n <input\n class=\"form-control\"\n type=\"text\"\n [placeholder]=\"'Custom alarm type' | translate\"\n [(ngModel)]=\"customAlarmTypeInput\"\n (keydown)=\"confirmWithEnter($event)\"\n />\n <div class=\"input-group-btn\">\n <button\n class=\"btn-dot text-primary\"\n [attr.aria-label]=\"'Add custom alarm' | translate\"\n [tooltip]=\"'Add' | translate\"\n placement=\"top\"\n [delay]=\"500\"\n (click)=\"addCustomAlarmType()\"\n >\n <i c8yIcon=\"plus-circle\"></i>\n </button>\n </div>\n </div>\n\n <c8y-li\n class=\"c8y-list__item__collapse--container-small cdk-drag\"\n style=\"cursor: pointer\"\n *ngFor=\"let alarmType of possibleFilters\"\n (click)=\"toggleAlarmType(alarmType)\"\n >\n <c8y-li-checkbox\n class=\"a-s-center m-t-4 p-r-0 p-l-0\"\n [selected]=\"alarmType.__active\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleAlarmType(alarmType); $event.stopPropagation()\"\n ></c8y-li-checkbox>\n <div class=\"d-flex a-i-center p-l-4\">\n <div class=\"c8y-list__item__colorpicker p-t-0 p-b-0 p-l-0\">\n <div class=\"c8y-colorpicker c8y-colorpicker--alarm\">\n <span\n class=\"circle-icon-wrapper\"\n [ngStyle]=\"{ 'background-color': alarmType.color }\"\n >\n <i\n class=\"stroked-icon\"\n [c8yIcon]=\"'bell'\"\n ></i>\n </span>\n </div>\n </div>\n <span\n class=\"text-truncate text-12 flex-grow\"\n [title]=\"alarmType.label\"\n [attr.aria-label]=\"alarmType.label\"\n >\n {{ alarmType.label }}\n </span>\n <button\n class=\"btn-dot btn-dot--danger\"\n [attr.aria-label]=\"'Remove' | translate\"\n tooltip=\"'Remove' | translate\"\n placement=\"top\"\n *ngIf=\"alarmType.__target === null\"\n [delay]=\"500\"\n (click)=\"removeCustomAlarm(alarmType); $event.stopPropagation()\"\n >\n <i c8yIcon=\"minus-circle\"></i>\n </button>\n </div>\n </c8y-li>\n <c8y-li *ngIf=\"possibleFilters.length === 0\">\n <c8y-ui-empty-state\n class=\"p-t-8\"\n icon=\"c8y-alarm\"\n [title]=\"'No alarm found' | translate\"\n [subtitle]=\"\n 'There is no alarm to filter. You can still add a custom alarm.' | translate\n \"\n [horizontal]=\"true\"\n ></c8y-ui-empty-state>\n </c8y-li>\n <div class=\"sticky-bottom p-16\">\n <button\n class=\"btn btn-block btn-primary\"\n [disabled]=\"possibleFilters.length === 0\"\n (click)=\"applyFilterChange(); $event.stopPropagation(); filtersDropdown.hide()\"\n translate\n >\n Apply\n </button>\n </div>\n </c8y-list-group>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: BsDropdownDirective, selector: "[bsDropdown], [dropdown]", inputs: ["placement", "triggers", "container", "dropup", "autoClose", "isAnimated", "insideClick", "isDisabled", "isOpen"], outputs: ["isOpenChange", "onShown", "onHidden"], exportAs: ["bs-dropdown"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: BsDropdownToggleDirective, selector: "[bsDropdownToggle],[dropdownToggle]", exportAs: ["bs-dropdown-toggle"] }, { kind: "directive", type: BsDropdownMenuDirective, selector: "[bsDropdownMenu],[dropdownMenu]", exportAs: ["bs-dropdown-menu"] }, { kind: "component", type: ListGroupComponent, selector: "c8y-list-group" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TooltipDirective, selector: "[tooltip], [tooltipHtml]", inputs: ["adaptivePosition", "tooltip", "placement", "triggers", "container", "containerClass", "boundariesElement", "isOpen", "isDisabled", "delay", "tooltipHtml", "tooltipPlacement", "tooltipIsOpen", "tooltipEnable", "tooltipAppendToBody", "tooltipAnimation", "tooltipClass", "tooltipContext", "tooltipPopupDelay", "tooltipFadeDuration", "tooltipTrigger"], outputs: ["tooltipChange", "onShown", "onHidden", "tooltipStateChanged"], exportAs: ["bs-tooltip"] }, { kind: "component", type: ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable"], outputs: ["collapsedChange"] }, { kind: "component", type: ListItemCheckboxComponent, selector: "c8y-list-item-checkbox, c8y-li-checkbox", inputs: ["selected", "indeterminate", "disabled", "displayAsSwitch"], outputs: ["onSelect"] }, { kind: "component", type: EmptyStateComponent, selector: "c8y-ui-empty-state", inputs: ["icon", "title", "subtitle", "horizontal"] }, { kind: "directive", type: C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }] }); }
|
|
2217
2217
|
}
|
|
2218
2218
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AlarmsTypeFilterComponent, decorators: [{
|
|
2219
2219
|
type: Component,
|
|
@@ -2234,7 +2234,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
2234
2234
|
EmptyStateComponent,
|
|
2235
2235
|
C8yTranslateDirective,
|
|
2236
2236
|
C8yTranslatePipe
|
|
2237
|
-
], template: "<div class=\"d-flex a-i-center\">\n <div\n class=\"dropdown\"\n title=\"{{ 'Filter by alarm types' | translate }}\"\n dropdown\n #filtersDropdown=\"bs-dropdown\"\n [cdkTrapFocus]=\"filtersDropdown.isOpen\"\n (onHidden)=\"resetFilters()\"\n [insideClick]=\"true\"\n >\n <div class=\"input-group fit-w\">\n <div class=\"form-control d-flex a-i-center inner-scroll\">\n <ng-container *ngIf=\"activeFilters.length > 0; else allTypes\">\n <span\n class=\"tag tag--info chip\"\n style=\"max-width: 150px\"\n *ngFor=\"let filter of activeFilters\"\n >\n <button\n class=\"btn btn-xs btn-clean text-10\"\n title=\"{{ 'Remove' | translate }}\"\n type=\"button\"\n (click)=\"$event.stopPropagation(); deselect(filter)\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n <span\n class=\"circle-icon-wrapper circle-icon-wrapper--small\"\n [ngStyle]=\"{ 'background-color': filter.color }\"\n >\n <i\n class=\"stroked-icon\"\n c8yIcon=\"bell\"\n ></i>\n </span>\n <span\n class=\"text-truncate text-12 flex-grow\"\n [title]=\"filter.filters.type\"\n [attr.aria-label]=\"filter.filters.type\"\n >\n {{ filter.filters.type }}\n </span>\n </span>\n </ng-container>\n <ng-template #allTypes>\n <span class=\"text-nowrap\">\n {{ 'All alarm types' | translate }}\n </span>\n </ng-template>\n </div>\n <div class=\"input-group-btn input-group-btn--last text-center\">\n <button\n class=\"btn-default btn\"\n [title]=\"'Clear filters' | translate\"\n *ngIf=\"activeFilters.length\"\n (click)=\"deselectAll()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n <button\n class=\"btn-default btn btn--caret\"\n [title]=\"'Alarm types' | translate\"\n data-cy=\"c8y-alarm-type-filter\"\n dropdownToggle\n >\n <i class=\"caret\"></i>\n </button>\n </div>\n </div>\n <div\n class=\"dropdown-menu dropdown-menu-action-bar\"\n style=\"min-width: 250px\"\n *dropdownMenu\n >\n <div class=\"p-16 bg-level-2\">\n <div>\n <p>\n <i\n class=\"text-info m-r-4\"\n [c8yIcon]=\"'info-circle'\"\n ></i>\n <strong translate>The list below may not be complete.</strong>\n </p>\n <p translate>\n Recent alarms are displayed below. Past alarms might not be shown. Optionally you can
|
|
2237
|
+
], template: "<div class=\"d-flex a-i-center\">\n <div\n class=\"dropdown\"\n title=\"{{ 'Filter by alarm types' | translate }}\"\n dropdown\n #filtersDropdown=\"bs-dropdown\"\n [cdkTrapFocus]=\"filtersDropdown.isOpen\"\n (onHidden)=\"resetFilters()\"\n [insideClick]=\"true\"\n >\n <div class=\"input-group fit-w\">\n <div class=\"form-control d-flex a-i-center inner-scroll\">\n <ng-container *ngIf=\"activeFilters.length > 0; else allTypes\">\n <span\n class=\"tag tag--info chip\"\n style=\"max-width: 150px\"\n *ngFor=\"let filter of activeFilters\"\n >\n <button\n class=\"btn btn-xs btn-clean text-10\"\n title=\"{{ 'Remove' | translate }}\"\n type=\"button\"\n (click)=\"$event.stopPropagation(); deselect(filter)\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n <span\n class=\"circle-icon-wrapper circle-icon-wrapper--small\"\n [ngStyle]=\"{ 'background-color': filter.color }\"\n >\n <i\n class=\"stroked-icon\"\n c8yIcon=\"bell\"\n ></i>\n </span>\n <span\n class=\"text-truncate text-12 flex-grow\"\n [title]=\"filter.filters.type\"\n [attr.aria-label]=\"filter.filters.type\"\n >\n {{ filter.filters.type }}\n </span>\n </span>\n </ng-container>\n <ng-template #allTypes>\n <span class=\"text-nowrap\">\n {{ 'All alarm types' | translate }}\n </span>\n </ng-template>\n </div>\n <div class=\"input-group-btn input-group-btn--last text-center\">\n <button\n class=\"btn-default btn\"\n [title]=\"'Clear filters' | translate\"\n *ngIf=\"activeFilters.length\"\n (click)=\"deselectAll()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n <button\n class=\"btn-default btn btn--caret\"\n [title]=\"'Alarm types' | translate\"\n data-cy=\"c8y-alarm-type-filter\"\n dropdownToggle\n >\n <i class=\"caret\"></i>\n </button>\n </div>\n </div>\n <div\n class=\"dropdown-menu dropdown-menu-action-bar\"\n style=\"min-width: 250px\"\n *dropdownMenu\n >\n <div class=\"p-16 bg-level-2\">\n <div>\n <p>\n <i\n class=\"text-info m-r-4\"\n [c8yIcon]=\"'info-circle'\"\n ></i>\n <strong translate>The list below may not be complete.</strong>\n </p>\n <p translate>\n Recent alarms are displayed below. Past alarms might not be shown. Optionally you can add a custom alarm.\n </p>\n </div>\n </div>\n <c8y-list-group>\n <div class=\"input-group p-t-16 p-b-16 p-r-32 p-l-32 separator-bottom\">\n <input\n class=\"form-control\"\n type=\"text\"\n [placeholder]=\"'Custom alarm type' | translate\"\n [(ngModel)]=\"customAlarmTypeInput\"\n (keydown)=\"confirmWithEnter($event)\"\n />\n <div class=\"input-group-btn\">\n <button\n class=\"btn-dot text-primary\"\n [attr.aria-label]=\"'Add custom alarm' | translate\"\n [tooltip]=\"'Add' | translate\"\n placement=\"top\"\n [delay]=\"500\"\n (click)=\"addCustomAlarmType()\"\n >\n <i c8yIcon=\"plus-circle\"></i>\n </button>\n </div>\n </div>\n\n <c8y-li\n class=\"c8y-list__item__collapse--container-small cdk-drag\"\n style=\"cursor: pointer\"\n *ngFor=\"let alarmType of possibleFilters\"\n (click)=\"toggleAlarmType(alarmType)\"\n >\n <c8y-li-checkbox\n class=\"a-s-center m-t-4 p-r-0 p-l-0\"\n [selected]=\"alarmType.__active\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleAlarmType(alarmType); $event.stopPropagation()\"\n ></c8y-li-checkbox>\n <div class=\"d-flex a-i-center p-l-4\">\n <div class=\"c8y-list__item__colorpicker p-t-0 p-b-0 p-l-0\">\n <div class=\"c8y-colorpicker c8y-colorpicker--alarm\">\n <span\n class=\"circle-icon-wrapper\"\n [ngStyle]=\"{ 'background-color': alarmType.color }\"\n >\n <i\n class=\"stroked-icon\"\n [c8yIcon]=\"'bell'\"\n ></i>\n </span>\n </div>\n </div>\n <span\n class=\"text-truncate text-12 flex-grow\"\n [title]=\"alarmType.label\"\n [attr.aria-label]=\"alarmType.label\"\n >\n {{ alarmType.label }}\n </span>\n <button\n class=\"btn-dot btn-dot--danger\"\n [attr.aria-label]=\"'Remove' | translate\"\n tooltip=\"'Remove' | translate\"\n placement=\"top\"\n *ngIf=\"alarmType.__target === null\"\n [delay]=\"500\"\n (click)=\"removeCustomAlarm(alarmType); $event.stopPropagation()\"\n >\n <i c8yIcon=\"minus-circle\"></i>\n </button>\n </div>\n </c8y-li>\n <c8y-li *ngIf=\"possibleFilters.length === 0\">\n <c8y-ui-empty-state\n class=\"p-t-8\"\n icon=\"c8y-alarm\"\n [title]=\"'No alarm found' | translate\"\n [subtitle]=\"\n 'There is no alarm to filter. You can still add a custom alarm.' | translate\n \"\n [horizontal]=\"true\"\n ></c8y-ui-empty-state>\n </c8y-li>\n <div class=\"sticky-bottom p-16\">\n <button\n class=\"btn btn-block btn-primary\"\n [disabled]=\"possibleFilters.length === 0\"\n (click)=\"applyFilterChange(); $event.stopPropagation(); filtersDropdown.hide()\"\n translate\n >\n Apply\n </button>\n </div>\n </c8y-list-group>\n </div>\n </div>\n</div>\n" }]
|
|
2238
2238
|
}], ctorParameters: () => [{ type: i1$3.AlarmEventSelectorService }, { type: i1.ActivatedRoute }, { type: i1.Router }, { type: i3.ColorService }], propDecorators: { alarms: [{
|
|
2239
2239
|
type: Input
|
|
2240
2240
|
}], possibleFilters: [{
|