@c8y/tutorial 1022.10.1 → 1022.16.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/cumulocity.config.ts +39 -4
- package/package.json +7 -7
- package/src/__mocks/global-mocks/inventory.interceptor.ts +6 -1
- package/src/__mocks/global-mocks/provider-configuration.ts +62 -0
- package/src/__mocks/global-mocks/provider-definitions.ts +24 -0
- package/src/__mocks/index.ts +18 -0
- package/src/countdown/countdown-example.component.html +4 -1
- package/src/countdown/countdown-example.component.ts +1 -0
- package/src/dynamic-forms/custom-element-example/custom-element-example.component.ts +2 -2
- package/src/dynamic-forms/introduction-example/introduction-example.component.ts +2 -2
- package/src/dynamic-forms/json-schema-example/json-schema-example.component.html +2 -2
- package/src/dynamic-forms/validation-example/validation-example.component.ts +2 -2
- package/src/for-of-directive/for-of-example.component.ts +3 -3
- package/src/generate-json-schema/generate-json-schema.component.ts +1 -0
- package/src/hooks/docs/docs-example.service.ts +17 -0
- package/src/hooks/docs/hook-docs-example.component.ts +17 -0
- package/src/hooks/docs/hook-docs.module.ts +30 -0
- package/src/hooks/preview-feature/index.ts +0 -1
- package/src/hooks/tabs/named-outlet/basic-view/basic-view.component.html +15 -0
- package/src/hooks/tabs/named-outlet/basic-view/basic-view.component.ts +25 -0
- package/src/hooks/tabs/named-outlet/content-a.component.ts +8 -0
- package/src/hooks/tabs/named-outlet/content-b.component.ts +8 -0
- package/src/hooks/tabs/named-outlet/named-outlet.module.ts +80 -0
- package/src/hooks/tabs/tabs.module.ts +0 -2
- package/src/hooks/widget/context-dashboard.component.ts +13 -0
- package/src/hooks/widget/widget.providers.ts +18 -0
- package/src/hooks/widget-config/basic-view/basic-edit.component.ts +18 -1
- package/src/hooks/widget-config/widget-config.providers.ts +0 -3
- package/src/input-group/extendable-input-list-example.component.ts +19 -3
- package/src/lazy-widget/lazy-widget-config/lazy-widget-config.component.ts +19 -3
- package/src/list/list/list-check/list-check.component.html +1 -1
- package/src/maps/cluster-map/cluster-map-example.component.html +31 -10
- package/src/maps/cluster-map/cluster-map-example.component.ts +7 -2
- package/src/maps/cluster-map-root-node/cluster-map-root-node-example.component.html +13 -17
- package/src/maps/map-popup/map-popup-example.component.html +4 -4
- package/src/maps/simple-map/simple-map-example.component.html +8 -5
- package/src/maps/simple-map/simple-map-example.module.ts +1 -1
- package/src/maps/simple-map-custom-config/map-layer.service.ts +50 -0
- package/src/maps/simple-map-custom-config/simple-map-custom-config.component.html +27 -0
- package/src/maps/simple-map-custom-config/simple-map-custom-config.component.ts +16 -0
- package/src/maps/simple-map-custom-config/simple-map-custom-config.module.ts +35 -0
- package/src/pattern-messages/pattern-messages-array.ts +20 -0
- package/src/pattern-messages/pattern-messages-factory.ts +18 -0
- package/src/pattern-messages/pattern-messages-single.ts +10 -0
- package/src/popconfirm/pop-confirm-example.component.ts +5 -2
- package/src/quick-link/quick-link-example.component.ts +0 -3
- package/src/realtime/realtime-tutorial.component.html +39 -30
- package/src/selector/alarm-event-selector-example/alarm-event-selector.component.ts +19 -15
- package/src/selector/data-points-export-selector-example/datapoints-export-selector.component.ts +11 -15
- package/src/translations/text-translation/gettext-translation/text-translation-gettext.component.ts +8 -6
- package/src/hooks/preview-feature/preview-feature.module.ts +0 -11
- package/src/hooks/widget-config/basic-view/basic-edit.component.html +0 -18
|
@@ -13,21 +13,25 @@ import { AssetSelectorModule } from '@c8y/ngx-components/assets-navigator';
|
|
|
13
13
|
template: `
|
|
14
14
|
<div class="row">
|
|
15
15
|
<div class="col-md-6">
|
|
16
|
-
<form [formGroup]="formGroup">
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
<form class="card" [formGroup]="formGroup">
|
|
17
|
+
<div class="inner-scroll" style="max-height:560px">
|
|
18
|
+
<c8y-alarm-event-selection-list
|
|
19
|
+
class="bg-inherit"
|
|
20
|
+
name="alarms"
|
|
21
|
+
[config]="config"
|
|
22
|
+
[timelineType]="'ALARM'"
|
|
23
|
+
formControlName="alarms"
|
|
24
|
+
>
|
|
25
|
+
</c8y-alarm-event-selection-list>
|
|
26
|
+
<c8y-alarm-event-selection-list
|
|
27
|
+
class="bg-inherit"
|
|
28
|
+
name="events"
|
|
29
|
+
[config]="config"
|
|
30
|
+
[timelineType]="'EVENT'"
|
|
31
|
+
formControlName="events"
|
|
32
|
+
>
|
|
33
|
+
</c8y-alarm-event-selection-list>
|
|
34
|
+
</div>
|
|
31
35
|
</form>
|
|
32
36
|
</div>
|
|
33
37
|
</div>
|
package/src/selector/data-points-export-selector-example/datapoints-export-selector.component.ts
CHANGED
|
@@ -12,23 +12,19 @@ import {
|
|
|
12
12
|
selector: 'tut-datapoints-export-selector-example',
|
|
13
13
|
template: `
|
|
14
14
|
<c8y-title>Data points export selector</c8y-title>
|
|
15
|
-
<div class="container-fluid
|
|
16
|
-
<div class="
|
|
15
|
+
<div class="container-fluid">
|
|
16
|
+
<div class="p-16 m-b-16 separator-bottom">
|
|
17
17
|
<c8y-datapoints-export-selector [exportConfig]="config"></c8y-datapoints-export-selector>
|
|
18
18
|
</div>
|
|
19
|
-
<div class="
|
|
20
|
-
<div class="
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
>
|
|
29
|
-
</c8y-datapoint-selector>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
19
|
+
<div class="card">
|
|
20
|
+
<div class="card-block d-flex d-col p-0" style="height: 450px;">
|
|
21
|
+
<c8y-datapoint-selector
|
|
22
|
+
class="d-contents"
|
|
23
|
+
[allowDatapointsFromMultipleAssets]="false"
|
|
24
|
+
[(ngModel)]="datapoints"
|
|
25
|
+
(ngModelChange)="updateExportConfig()"
|
|
26
|
+
>
|
|
27
|
+
</c8y-datapoint-selector>
|
|
32
28
|
</div>
|
|
33
29
|
</div>
|
|
34
30
|
</div>
|
package/src/translations/text-translation/gettext-translation/text-translation-gettext.component.ts
CHANGED
|
@@ -9,13 +9,15 @@ import { CoreModule, gettext } from '@c8y/ngx-components';
|
|
|
9
9
|
<h4 class="card-title">Gettext example (mark string for translation)</h4>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="card-block">
|
|
12
|
-
|
|
12
|
+
<p class="m-b-8">
|
|
13
|
+
This word will be translated: {{ (enabled ? enabledLabel : disabledLabel) | translate }}.
|
|
14
|
+
</p>
|
|
15
|
+
<label class="c8y-switch">
|
|
16
|
+
<input type="checkbox" [(ngModel)]="enabled" />
|
|
17
|
+
<span></span>
|
|
18
|
+
Toggle state
|
|
19
|
+
</label>
|
|
13
20
|
</div>
|
|
14
|
-
<label class="c8y-switch">
|
|
15
|
-
<input type="checkbox" [(ngModel)]="enabled" />
|
|
16
|
-
<span></span>
|
|
17
|
-
Toggle state
|
|
18
|
-
</label>
|
|
19
21
|
</div>`,
|
|
20
22
|
standalone: true,
|
|
21
23
|
imports: [CoreModule]
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { PreviewFeatureCustomModule } from './basic-view-custom/preview-feature-custom.module';
|
|
3
|
-
import { PreviewFeatureDefaultModule } from './basic-view-default/preview-feature-default.module';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* This module combines both PreviewFeatureDefaultModule and PreviewFeatureCustomModule.
|
|
7
|
-
*/
|
|
8
|
-
@NgModule({
|
|
9
|
-
imports: [PreviewFeatureDefaultModule, PreviewFeatureCustomModule]
|
|
10
|
-
})
|
|
11
|
-
export class PreviewFeatureModule {}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<div class="card">
|
|
2
|
-
<div class="card-block">
|
|
3
|
-
<c8y-widget-config-section
|
|
4
|
-
*ngFor="let section of widgetConfigService.currentSections$ | async; let i = index"
|
|
5
|
-
[section]="section"
|
|
6
|
-
></c8y-widget-config-section>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div class="card-block">
|
|
10
|
-
<label>The configuration is:</label>
|
|
11
|
-
<code>
|
|
12
|
-
<pre>
|
|
13
|
-
{{ widgetConfigService.currentConfig$ | async | json }}
|
|
14
|
-
</pre
|
|
15
|
-
>
|
|
16
|
-
</code>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|