@c8y/ngx-components 1024.16.21 → 1024.18.0
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/fesm2022/c8y-ngx-components-ai-agent-chat.mjs +14 -4
- package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs +77 -20
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-notes.mjs +29 -7
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-notes.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +24 -24
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-scada.mjs +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-scada.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +159 -75
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/locales.pot +31 -17
- package/package.json +1 -1
- package/types/c8y-ngx-components-ai-agent-chat.d.ts +8 -1
- package/types/c8y-ngx-components-ai-agent-chat.d.ts.map +1 -1
- package/types/c8y-ngx-components-repository-configuration.d.ts +20 -4
- package/types/c8y-ngx-components-repository-configuration.d.ts.map +1 -1
- package/types/c8y-ngx-components-widgets-implementations-asset-notes.d.ts +7 -0
- package/types/c8y-ngx-components-widgets-implementations-asset-notes.d.ts.map +1 -1
- package/types/c8y-ngx-components.d.ts +80 -23
- package/types/c8y-ngx-components.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-repository-configuration.d.ts","sources":["../../repository/configuration/device-tab/device-configuration.service.ts","../../repository/configuration/editor-languages.ts","../../repository/configuration/device-tab/text-based-configuration.component.ts","../../repository/configuration/device-tab/device-configuration.guard.ts","../../repository/configuration/device-tab/configuration-filter.pipe.ts","../../repository/configuration/device-tab/configuration-preview.component.ts","../../repository/configuration/device-tab/device-configuration.component.ts","../../repository/configuration/device-tab/save-to-repository.component.ts","../../repository/configuration/device-tab/source-code-preview.component.ts","../../repository/configuration/device-tab/device-configuration-list.component.ts","../../repository/configuration/device-tab/configuration-repository-device-tab.module.ts","../../repository/configuration/list/configuration-list.component.ts","../../repository/configuration/list/configuration-detail.component.ts","../../repository/configuration/list/configuration-repository-list.module.ts","../../repository/configuration/configuration-repository.module.ts"],"mappings":";;;;;;;;;;;;;;AAKA,cACa,0BAA0B;AAGzB;AAFZ,2BAAqB,YAAA;AAED,qCAAqB,mBAAmB;AAE5D;AAIA;;;;AAIG;;AACuC,gBAAQ,OAAO;AAAW,kBACvD,IAAI,mBACD,OAAO,MACpB,OAAO;iCAeJ,cAAc,aACP,4BAA4B,GAAG,4BAA4B;yCAjC7D,0BAA0B;6CAA1B,0BAA0B;AA4CtC;;UChDgB,oBAAoB;;;AAGpC;;ACyBD,cAca,+BAAgC,YAAW,MAAM;AA0C1D;AACA;AACA;AACA;AACA;YA7CM,cAAc;;;8BAIEA,EAAA,CAAA,cAAA;8BACAA,EAAA,CAAA,cAAA,CAAA,UAAA;AAExB,mBAAa,SAAA;;;AAGV;8BAEqB,oBAAA;AAExB;6BAGuBA,EAAA,CAAA,MAAA;2BAEFA,EAAA,CAAA,MAAA;4BAYCA,EAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,oCAAA;AAOtB;AAGU,uBAAO,cAAc,gBACP,YAAY,qBACP,iBAAiB,8BACR,0BAA0B,oBACpC,gBAAgB;AAG5C,yBAAqB,WAAW;gBAIlB,OAAA;YAIJ,OAAA;qBAiBS,OAAA;2BAsBM,OAAA;sCAgBO,OAAA;AAgBhC;AAOA;;AAWA;AAOA;AAIA;;yCA7JW,+BAA+B;2CAA/B,+BAA+B;AAwK3C;;AC9MD,cACa,wBAAwB;AACvB;AAAQ,4CAA4B,0BAA0B;uBAEvD,sBAAsB;yCAH9B,wBAAwB;6CAAxB,wBAAwB;AAoBpC;;ACxBD,cACa,uBAAwB,YAAW,aAAa;;AAW3D;yCAXW,uBAAuB;uCAAvB,uBAAuB;AAenC;;
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-repository-configuration.d.ts","sources":["../../repository/configuration/device-tab/device-configuration.service.ts","../../repository/configuration/editor-languages.ts","../../repository/configuration/device-tab/text-based-configuration.component.ts","../../repository/configuration/device-tab/device-configuration.guard.ts","../../repository/configuration/device-tab/configuration-filter.pipe.ts","../../repository/configuration/device-tab/configuration-preview.component.ts","../../repository/configuration/device-tab/device-configuration.component.ts","../../repository/configuration/device-tab/save-to-repository.component.ts","../../repository/configuration/device-tab/source-code-preview.component.ts","../../repository/configuration/device-tab/device-configuration-list.component.ts","../../repository/configuration/device-tab/configuration-repository-device-tab.module.ts","../../repository/configuration/list/configuration-list.component.ts","../../repository/configuration/list/configuration-detail.component.ts","../../repository/configuration/list/configuration-repository-list.module.ts","../../repository/configuration/configuration-repository.module.ts"],"mappings":";;;;;;;;;;;;;;AAKA,cACa,0BAA0B;AAGzB;AAFZ,2BAAqB,YAAA;AAED,qCAAqB,mBAAmB;AAE5D;AAIA;;;;AAIG;;AACuC,gBAAQ,OAAO;AAAW,kBACvD,IAAI,mBACD,OAAO,MACpB,OAAO;iCAeJ,cAAc,aACP,4BAA4B,GAAG,4BAA4B;yCAjC7D,0BAA0B;6CAA1B,0BAA0B;AA4CtC;;UChDgB,oBAAoB;;;AAGpC;;ACyBD,cAca,+BAAgC,YAAW,MAAM;AA0C1D;AACA;AACA;AACA;AACA;YA7CM,cAAc;;;8BAIEA,EAAA,CAAA,cAAA;8BACAA,EAAA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A6B;yCAA7B,6BAA6B;0CAA7B,6BAA6B,iBAAAC,IAAA,CAAA,UAAA,SAAAA,IAAA,CAAA,WAAA,SAAAC,iCAAA,SAAAC,sCAAA;0CAA7B,6BAA6B;AAAG;;;;","names":["_angular_core","i4.DeviceConfigurationComponent","i5.DeviceConfigurationListComponent","i6.ConfigurationPreviewComponent","i7.ConfigurationFilterPipe","i8.SaveToRepositoryComponent","i9.SourceCodePreviewComponent","i10.TextBasedConfigurationComponent","i2.ConfigurationListComponent","i3.ConfigurationDetailComponent","i1","i2.ConfigurationRepositoryListModule","i3.ConfigurationRepositoryDeviceTabModule"]}
|
|
@@ -15,6 +15,7 @@ declare class AssetNotesWidgetComponent implements OnInit {
|
|
|
15
15
|
private appState;
|
|
16
16
|
private alertService;
|
|
17
17
|
private datePipe;
|
|
18
|
+
private contextRoute;
|
|
18
19
|
config: InputSignal<AssetNotesConfig>;
|
|
19
20
|
notes: _angular_core.WritableSignal<AssetNotes>;
|
|
20
21
|
editable: _angular_core.WritableSignal<boolean>;
|
|
@@ -28,6 +29,12 @@ declare class AssetNotesWidgetComponent implements OnInit {
|
|
|
28
29
|
toggleEdit(): void;
|
|
29
30
|
save(): Promise<void>;
|
|
30
31
|
private loadNotes;
|
|
32
|
+
/**
|
|
33
|
+
* Id of the device whose notes are shown. Prefers the widget's own `config.device`, and
|
|
34
|
+
* falls back to the dashboard context device — pre-migration (AngularJS) Asset Notes
|
|
35
|
+
* dashboards saved no `config.device` and relied on the surrounding dashboard context.
|
|
36
|
+
*/
|
|
37
|
+
private deviceId;
|
|
31
38
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AssetNotesWidgetComponent, never>;
|
|
32
39
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AssetNotesWidgetComponent, "c8y-asset-notes", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-widgets-implementations-asset-notes.d.ts","sources":["../../widgets/implementations/asset-notes/asset-notes-widget.component.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-widgets-implementations-asset-notes.d.ts","sources":["../../widgets/implementations/asset-notes/asset-notes-widget.component.ts"],"mappings":";;;;AAwBA,UAAU,UAAU;;;;AAInB;AAEK,KAAM,gBAAgB;AAAK,YAAQ,OAAO,CAAC,cAAc;;AAE/D,cAOa,yBAA0B,YAAW,MAAM;;;;;;AAOtD,YAAQ,WAAW,CAAC,gBAAgB;AAEpC,WAAK,aAAA,CAAA,cAAA,CAAA,UAAA;AACL,cAAQ,aAAA,CAAA,cAAA;AACR,eAAS,aAAA,CAAA,MAAA;AAET;4BACsB,aAAA,CAAA,MAAA;;;AAGlB;gBAEU,OAAA;;YAQJ,OAAA;;AA0CV;;;;AAIG;AACH;oDA1EW,yBAAyB;sDAAzB,yBAAyB;AA8ErC;;;;","names":[]}
|
|
@@ -21281,11 +21281,19 @@ interface ResizableGridConfig {
|
|
|
21281
21281
|
leftColumnWidth?: string;
|
|
21282
21282
|
trackId?: string | null;
|
|
21283
21283
|
collapsible?: boolean;
|
|
21284
|
+
/**
|
|
21285
|
+
* Split direction of the grid.
|
|
21286
|
+
* - `'horizontal'`: panes side by side (left/right), draggable vertical divider.
|
|
21287
|
+
* - `'vertical'`: panes stacked (top/bottom), draggable horizontal divider.
|
|
21288
|
+
* @default 'horizontal'
|
|
21289
|
+
*/
|
|
21290
|
+
orientation?: 'horizontal' | 'vertical';
|
|
21284
21291
|
}
|
|
21285
21292
|
/**
|
|
21286
21293
|
* Resizable Grid Component
|
|
21287
21294
|
*
|
|
21288
|
-
* Provides a flexible layout with two adjustable
|
|
21295
|
+
* Provides a flexible layout with two adjustable panes separated by a draggable divider.
|
|
21296
|
+
* Supports both a horizontal (left/right) and a vertical (top/bottom) split.
|
|
21289
21297
|
*
|
|
21290
21298
|
* ## Basic Usage
|
|
21291
21299
|
*
|
|
@@ -21299,25 +21307,48 @@ interface ResizableGridConfig {
|
|
|
21299
21307
|
* <div #colB>Right column content</div>
|
|
21300
21308
|
* </c8y-resizable-grid>
|
|
21301
21309
|
* ```
|
|
21310
|
+
*
|
|
21311
|
+
* ## Vertical (top/bottom) split
|
|
21312
|
+
*
|
|
21313
|
+
* ```html
|
|
21314
|
+
* <c8y-resizable-grid
|
|
21315
|
+
* [orientation]="'vertical'"
|
|
21316
|
+
* [leftColumnWidth]="'40%'">
|
|
21317
|
+
* <div #colA>Top pane content</div>
|
|
21318
|
+
* <div #colB>Bottom pane content</div>
|
|
21319
|
+
* </c8y-resizable-grid>
|
|
21320
|
+
* ```
|
|
21302
21321
|
*/
|
|
21303
21322
|
declare class ResizableGridComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
21304
21323
|
private renderer;
|
|
21305
21324
|
/**
|
|
21306
|
-
* Initial
|
|
21325
|
+
* Initial size of pane A along the resize axis. Can be any valid CSS size value (e.g., '50%', '300px').
|
|
21326
|
+
* Applies to width when `orientation` is `'horizontal'`, and to height when it is `'vertical'`.
|
|
21307
21327
|
*/
|
|
21308
21328
|
leftColumnWidth: string;
|
|
21309
21329
|
/**
|
|
21310
|
-
* Optional key for localStorage to persist
|
|
21330
|
+
* Optional key for localStorage to persist pane A's size between sessions.
|
|
21311
21331
|
*/
|
|
21312
21332
|
trackId: string | null;
|
|
21313
21333
|
/**
|
|
21314
|
-
* Minimum
|
|
21334
|
+
* Minimum size (in pixels) before a pane is considered collapsed.
|
|
21315
21335
|
*/
|
|
21316
21336
|
collapseThreshold: number;
|
|
21317
21337
|
/**
|
|
21318
|
-
* If true,
|
|
21338
|
+
* If true, panes can collapse below the threshold. If false, panes stop at the threshold.
|
|
21319
21339
|
*/
|
|
21320
21340
|
collapsible: boolean;
|
|
21341
|
+
/**
|
|
21342
|
+
* Split direction of the grid.
|
|
21343
|
+
* - `'horizontal'`: panes side by side (left/right), draggable vertical divider. (default)
|
|
21344
|
+
* - `'vertical'`: panes stacked (top/bottom), draggable horizontal divider.
|
|
21345
|
+
*/
|
|
21346
|
+
orientation: 'horizontal' | 'vertical';
|
|
21347
|
+
/**
|
|
21348
|
+
* Whether the grid splits panes top/bottom instead of left/right.
|
|
21349
|
+
* @internal Used by the template and internal size calculations.
|
|
21350
|
+
*/
|
|
21351
|
+
get isVertical(): boolean;
|
|
21321
21352
|
/**
|
|
21322
21353
|
* Reference to the left column element.
|
|
21323
21354
|
*/
|
|
@@ -21331,24 +21362,25 @@ declare class ResizableGridComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
21331
21362
|
*/
|
|
21332
21363
|
isResizing: boolean;
|
|
21333
21364
|
/**
|
|
21334
|
-
* CSS
|
|
21335
|
-
*
|
|
21365
|
+
* CSS size value for pane A along the resize axis.
|
|
21366
|
+
* Bound to both `--col-a-width` and `--col-a-height` so either orientation's stylesheet can consume it.
|
|
21336
21367
|
*/
|
|
21337
21368
|
protected _colAWidth: string;
|
|
21369
|
+
protected get _colAHeight(): string;
|
|
21338
21370
|
/**
|
|
21339
21371
|
* Public getter for aria-valuenow
|
|
21340
21372
|
*/
|
|
21341
21373
|
get colAWidthPercent(): number;
|
|
21342
21374
|
/**
|
|
21343
|
-
*
|
|
21375
|
+
* Mouse position (X for horizontal, Y for vertical) when resizing starts.
|
|
21344
21376
|
*/
|
|
21345
|
-
private
|
|
21377
|
+
private startPos;
|
|
21346
21378
|
/**
|
|
21347
|
-
* Pixel
|
|
21379
|
+
* Pixel size of pane A when resizing starts.
|
|
21348
21380
|
*/
|
|
21349
|
-
private
|
|
21381
|
+
private startColASizePx;
|
|
21350
21382
|
/**
|
|
21351
|
-
* Last known non-collapsed
|
|
21383
|
+
* Last known non-collapsed size of pane A (for restore logic).
|
|
21352
21384
|
*/
|
|
21353
21385
|
private lastKnownNonCollapsedWidth;
|
|
21354
21386
|
colAId: string;
|
|
@@ -21393,19 +21425,27 @@ declare class ResizableGridComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
21393
21425
|
*/
|
|
21394
21426
|
onKeyDown(event: KeyboardEvent): void;
|
|
21395
21427
|
/**
|
|
21396
|
-
* Sets up the initial
|
|
21428
|
+
* Sets up the initial size of pane A, using localStorage if trackId is provided.
|
|
21397
21429
|
*/
|
|
21398
21430
|
private setupInitialWidth;
|
|
21399
21431
|
/**
|
|
21400
|
-
* Updates
|
|
21401
|
-
* @param
|
|
21432
|
+
* Updates pane A's size and handles boundaries.
|
|
21433
|
+
* @param targetSizePx The desired size in pixels for pane A.
|
|
21402
21434
|
* @param applyCollapseImmediately If true, calls checkAndApplyCollapse directly.
|
|
21403
21435
|
*/
|
|
21404
21436
|
private updateColumnWidth;
|
|
21405
21437
|
/**
|
|
21406
|
-
*
|
|
21407
|
-
|
|
21408
|
-
|
|
21438
|
+
* Reads an element's size along the current resize axis (width for horizontal, height for vertical).
|
|
21439
|
+
*/
|
|
21440
|
+
private getElementSize;
|
|
21441
|
+
/**
|
|
21442
|
+
* Total size of the grid along the current resize axis, falling back to the viewport size.
|
|
21443
|
+
*/
|
|
21444
|
+
private getTotalSize;
|
|
21445
|
+
/**
|
|
21446
|
+
* Checks if either pane should be collapsed based on their sizes and applies the appropriate classes/styles.
|
|
21447
|
+
* @param colAWidth Size of pane A in pixels, along the resize axis
|
|
21448
|
+
* @param colBWidth Size of pane B in pixels, along the resize axis
|
|
21409
21449
|
*/
|
|
21410
21450
|
private checkAndApplyCollapse;
|
|
21411
21451
|
/**
|
|
@@ -21413,7 +21453,7 @@ declare class ResizableGridComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
21413
21453
|
*/
|
|
21414
21454
|
private removeCollapseClasses;
|
|
21415
21455
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResizableGridComponent, never>;
|
|
21416
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ResizableGridComponent, "c8y-resizable-grid", never, { "leftColumnWidth": { "alias": "leftColumnWidth"; "required": false; }; "trackId": { "alias": "trackId"; "required": false; }; "collapseThreshold": { "alias": "collapseThreshold"; "required": false; }; "collapsible": { "alias": "collapsible"; "required": false; }; }, {}, never, ["[left-pane]", "[right-pane]"], true, never>;
|
|
21456
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResizableGridComponent, "c8y-resizable-grid", never, { "leftColumnWidth": { "alias": "leftColumnWidth"; "required": false; }; "trackId": { "alias": "trackId"; "required": false; }; "collapseThreshold": { "alias": "collapseThreshold"; "required": false; }; "collapsible": { "alias": "collapsible"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; }, {}, never, ["[left-pane]", "[right-pane]"], true, never>;
|
|
21417
21457
|
}
|
|
21418
21458
|
|
|
21419
21459
|
/**
|
|
@@ -22014,6 +22054,17 @@ declare class SplitViewSelectionService<T = unknown> implements OnDestroy {
|
|
|
22014
22054
|
* </c8y-sv>
|
|
22015
22055
|
* ```
|
|
22016
22056
|
*
|
|
22057
|
+
* #### Vertical (top/bottom) split
|
|
22058
|
+
*
|
|
22059
|
+
* Set `orientation: 'vertical'` in `resizableConfig` to stack the list above the details pane,
|
|
22060
|
+
* with a draggable horizontal divider, instead of the default side-by-side layout.
|
|
22061
|
+
*
|
|
22062
|
+
* ```html
|
|
22063
|
+
* <c8y-sv [resizableConfig]="{ orientation: 'vertical', leftColumnWidth: '40%' }">
|
|
22064
|
+
* <!-- content -->
|
|
22065
|
+
* </c8y-sv>
|
|
22066
|
+
* ```
|
|
22067
|
+
*
|
|
22017
22068
|
* #### List-Only mode
|
|
22018
22069
|
*
|
|
22019
22070
|
* Omit `<c8y-sv-details>` for a simple list view:
|
|
@@ -22084,10 +22135,11 @@ declare class SplitViewComponent<T = unknown> implements OnInit, OnDestroy {
|
|
|
22084
22135
|
/**
|
|
22085
22136
|
* Configuration for resizable grid behavior.
|
|
22086
22137
|
*
|
|
22087
|
-
* @property trackId - Unique ID for persisting
|
|
22088
|
-
* @property leftColumnWidth - Initial
|
|
22089
|
-
* @property collapseThreshold -
|
|
22090
|
-
* @property collapsible - Whether
|
|
22138
|
+
* @property trackId - Unique ID for persisting pane sizes in localStorage
|
|
22139
|
+
* @property leftColumnWidth - Initial size of the first pane along the split axis (default: '50%')
|
|
22140
|
+
* @property collapseThreshold - Size threshold (in px) for collapsing panes (default: 320)
|
|
22141
|
+
* @property collapsible - Whether panes can collapse below threshold (default: true)
|
|
22142
|
+
* @property orientation - `'horizontal'` for left/right panes, `'vertical'` for top/bottom panes (default: 'horizontal')
|
|
22091
22143
|
*
|
|
22092
22144
|
* @example
|
|
22093
22145
|
* ```html
|
|
@@ -22098,6 +22150,11 @@ declare class SplitViewComponent<T = unknown> implements OnInit, OnDestroy {
|
|
|
22098
22150
|
* collapsible: false
|
|
22099
22151
|
* }">
|
|
22100
22152
|
* ```
|
|
22153
|
+
*
|
|
22154
|
+
* @example Vertical (top/bottom) split
|
|
22155
|
+
* ```html
|
|
22156
|
+
* <c8y-sv [resizableConfig]="{ orientation: 'vertical', leftColumnWidth: '40%' }">
|
|
22157
|
+
* ```
|
|
22101
22158
|
*/
|
|
22102
22159
|
set resizableConfig(config: ResizableGridConfig);
|
|
22103
22160
|
get resizableConfig(): ResizableGridConfig;
|