@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.
Files changed (52) hide show
  1. package/cumulocity.config.ts +39 -4
  2. package/package.json +7 -7
  3. package/src/__mocks/global-mocks/inventory.interceptor.ts +6 -1
  4. package/src/__mocks/global-mocks/provider-configuration.ts +62 -0
  5. package/src/__mocks/global-mocks/provider-definitions.ts +24 -0
  6. package/src/__mocks/index.ts +18 -0
  7. package/src/countdown/countdown-example.component.html +4 -1
  8. package/src/countdown/countdown-example.component.ts +1 -0
  9. package/src/dynamic-forms/custom-element-example/custom-element-example.component.ts +2 -2
  10. package/src/dynamic-forms/introduction-example/introduction-example.component.ts +2 -2
  11. package/src/dynamic-forms/json-schema-example/json-schema-example.component.html +2 -2
  12. package/src/dynamic-forms/validation-example/validation-example.component.ts +2 -2
  13. package/src/for-of-directive/for-of-example.component.ts +3 -3
  14. package/src/generate-json-schema/generate-json-schema.component.ts +1 -0
  15. package/src/hooks/docs/docs-example.service.ts +17 -0
  16. package/src/hooks/docs/hook-docs-example.component.ts +17 -0
  17. package/src/hooks/docs/hook-docs.module.ts +30 -0
  18. package/src/hooks/preview-feature/index.ts +0 -1
  19. package/src/hooks/tabs/named-outlet/basic-view/basic-view.component.html +15 -0
  20. package/src/hooks/tabs/named-outlet/basic-view/basic-view.component.ts +25 -0
  21. package/src/hooks/tabs/named-outlet/content-a.component.ts +8 -0
  22. package/src/hooks/tabs/named-outlet/content-b.component.ts +8 -0
  23. package/src/hooks/tabs/named-outlet/named-outlet.module.ts +80 -0
  24. package/src/hooks/tabs/tabs.module.ts +0 -2
  25. package/src/hooks/widget/context-dashboard.component.ts +13 -0
  26. package/src/hooks/widget/widget.providers.ts +18 -0
  27. package/src/hooks/widget-config/basic-view/basic-edit.component.ts +18 -1
  28. package/src/hooks/widget-config/widget-config.providers.ts +0 -3
  29. package/src/input-group/extendable-input-list-example.component.ts +19 -3
  30. package/src/lazy-widget/lazy-widget-config/lazy-widget-config.component.ts +19 -3
  31. package/src/list/list/list-check/list-check.component.html +1 -1
  32. package/src/maps/cluster-map/cluster-map-example.component.html +31 -10
  33. package/src/maps/cluster-map/cluster-map-example.component.ts +7 -2
  34. package/src/maps/cluster-map-root-node/cluster-map-root-node-example.component.html +13 -17
  35. package/src/maps/map-popup/map-popup-example.component.html +4 -4
  36. package/src/maps/simple-map/simple-map-example.component.html +8 -5
  37. package/src/maps/simple-map/simple-map-example.module.ts +1 -1
  38. package/src/maps/simple-map-custom-config/map-layer.service.ts +50 -0
  39. package/src/maps/simple-map-custom-config/simple-map-custom-config.component.html +27 -0
  40. package/src/maps/simple-map-custom-config/simple-map-custom-config.component.ts +16 -0
  41. package/src/maps/simple-map-custom-config/simple-map-custom-config.module.ts +35 -0
  42. package/src/pattern-messages/pattern-messages-array.ts +20 -0
  43. package/src/pattern-messages/pattern-messages-factory.ts +18 -0
  44. package/src/pattern-messages/pattern-messages-single.ts +10 -0
  45. package/src/popconfirm/pop-confirm-example.component.ts +5 -2
  46. package/src/quick-link/quick-link-example.component.ts +0 -3
  47. package/src/realtime/realtime-tutorial.component.html +39 -30
  48. package/src/selector/alarm-event-selector-example/alarm-event-selector.component.ts +19 -15
  49. package/src/selector/data-points-export-selector-example/datapoints-export-selector.component.ts +11 -15
  50. package/src/translations/text-translation/gettext-translation/text-translation-gettext.component.ts +8 -6
  51. package/src/hooks/preview-feature/preview-feature.module.ts +0 -11
  52. 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
- <c8y-alarm-event-selection-list
18
- name="alarms"
19
- [config]="config"
20
- [timelineType]="'ALARM'"
21
- formControlName="alarms"
22
- >
23
- </c8y-alarm-event-selection-list>
24
- <c8y-alarm-event-selection-list
25
- name="events"
26
- [config]="config"
27
- [timelineType]="'EVENT'"
28
- formControlName="events"
29
- >
30
- </c8y-alarm-event-selection-list>
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>
@@ -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 p-t-24">
16
- <div class="row">
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="row">
20
- <div class="col-xs-12 col-sm-8 col-md-9">
21
- <div class="card">
22
- <div class="card-block d-flex d-col p-0" style="height: 300px">
23
- <c8y-datapoint-selector
24
- class="d-contents"
25
- [allowDatapointsFromMultipleAssets]="false"
26
- [(ngModel)]="datapoints"
27
- (ngModelChange)="updateExportConfig()"
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>
@@ -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
- This word will be translated: {{ (enabled ? enabledLabel : disabledLabel) | translate }}.
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>