@oicl/openbridge-webcomponents 2.0.0-next.149 → 2.0.0-next.150
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/bundle/openbridge-webcomponents.bundle.js +4443 -3841
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +378 -1
- package/dist/components/alert-list-details-experimental/alert-list-details-experimental.css.js +94 -0
- package/dist/components/alert-list-details-experimental/alert-list-details-experimental.css.js.map +1 -0
- package/dist/components/alert-list-details-experimental/alert-list-details-experimental.d.ts +73 -0
- package/dist/components/alert-list-details-experimental/alert-list-details-experimental.d.ts.map +1 -0
- package/dist/components/alert-list-details-experimental/alert-list-details-experimental.js +396 -0
- package/dist/components/alert-list-details-experimental/alert-list-details-experimental.js.map +1 -0
- package/dist/components/table/table.css.js +43 -0
- package/dist/components/table/table.css.js.map +1 -1
- package/dist/components/table/table.d.ts +31 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +124 -11
- package/dist/components/table/table.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -55293,6 +55293,293 @@
|
|
|
55293
55293
|
}
|
|
55294
55294
|
]
|
|
55295
55295
|
},
|
|
55296
|
+
{
|
|
55297
|
+
"kind": "javascript-module",
|
|
55298
|
+
"path": "src/components/alert-list-details-experimental/alert-list-details-experimental.ts",
|
|
55299
|
+
"declarations": [
|
|
55300
|
+
{
|
|
55301
|
+
"kind": "class",
|
|
55302
|
+
"description": "",
|
|
55303
|
+
"name": "ObcAlertListDetailsExperimental",
|
|
55304
|
+
"members": [
|
|
55305
|
+
{
|
|
55306
|
+
"kind": "field",
|
|
55307
|
+
"name": "selectedMode",
|
|
55308
|
+
"type": {
|
|
55309
|
+
"text": "AlertListMode"
|
|
55310
|
+
},
|
|
55311
|
+
"attribute": "selectedMode"
|
|
55312
|
+
},
|
|
55313
|
+
{
|
|
55314
|
+
"kind": "field",
|
|
55315
|
+
"name": "alerts",
|
|
55316
|
+
"type": {
|
|
55317
|
+
"text": "Alert[]"
|
|
55318
|
+
},
|
|
55319
|
+
"default": "[]",
|
|
55320
|
+
"attribute": "alerts"
|
|
55321
|
+
},
|
|
55322
|
+
{
|
|
55323
|
+
"kind": "field",
|
|
55324
|
+
"name": "showTime",
|
|
55325
|
+
"type": {
|
|
55326
|
+
"text": "boolean"
|
|
55327
|
+
},
|
|
55328
|
+
"default": "false",
|
|
55329
|
+
"attribute": "showTime"
|
|
55330
|
+
},
|
|
55331
|
+
{
|
|
55332
|
+
"kind": "field",
|
|
55333
|
+
"name": "timeFormatter",
|
|
55334
|
+
"type": {
|
|
55335
|
+
"text": "(time: Date) => string"
|
|
55336
|
+
},
|
|
55337
|
+
"availableWhen": "showTime==true",
|
|
55338
|
+
"description": "Available when `showTime==true`.",
|
|
55339
|
+
"availableWhenIf": {
|
|
55340
|
+
"arg": "showTime",
|
|
55341
|
+
"truthy": true
|
|
55342
|
+
}
|
|
55343
|
+
},
|
|
55344
|
+
{
|
|
55345
|
+
"kind": "field",
|
|
55346
|
+
"name": "small",
|
|
55347
|
+
"type": {
|
|
55348
|
+
"text": "boolean"
|
|
55349
|
+
},
|
|
55350
|
+
"default": "false",
|
|
55351
|
+
"attribute": "small"
|
|
55352
|
+
},
|
|
55353
|
+
{
|
|
55354
|
+
"kind": "field",
|
|
55355
|
+
"name": "defaultExpanded",
|
|
55356
|
+
"type": {
|
|
55357
|
+
"text": "boolean"
|
|
55358
|
+
},
|
|
55359
|
+
"default": "true",
|
|
55360
|
+
"description": "Whether groups start expanded. Set false to open the list collapsed."
|
|
55361
|
+
},
|
|
55362
|
+
{
|
|
55363
|
+
"kind": "field",
|
|
55364
|
+
"name": "alertList",
|
|
55365
|
+
"type": {
|
|
55366
|
+
"text": "ObcTable"
|
|
55367
|
+
},
|
|
55368
|
+
"privacy": "private"
|
|
55369
|
+
},
|
|
55370
|
+
{
|
|
55371
|
+
"kind": "field",
|
|
55372
|
+
"name": "expansionOverrides",
|
|
55373
|
+
"privacy": "private",
|
|
55374
|
+
"default": "new Map<string, boolean>()"
|
|
55375
|
+
},
|
|
55376
|
+
{
|
|
55377
|
+
"kind": "field",
|
|
55378
|
+
"name": "alertByRowId",
|
|
55379
|
+
"privacy": "private",
|
|
55380
|
+
"default": "new Map<string, Alert>()"
|
|
55381
|
+
},
|
|
55382
|
+
{
|
|
55383
|
+
"kind": "method",
|
|
55384
|
+
"name": "getVisibleAlerts",
|
|
55385
|
+
"privacy": "public",
|
|
55386
|
+
"return": {
|
|
55387
|
+
"type": {
|
|
55388
|
+
"text": "Alert[]"
|
|
55389
|
+
}
|
|
55390
|
+
}
|
|
55391
|
+
},
|
|
55392
|
+
{
|
|
55393
|
+
"kind": "method",
|
|
55394
|
+
"name": "onRowClick",
|
|
55395
|
+
"privacy": "private",
|
|
55396
|
+
"parameters": [
|
|
55397
|
+
{
|
|
55398
|
+
"name": "e",
|
|
55399
|
+
"type": {
|
|
55400
|
+
"text": "ObcTableRowClickEvent"
|
|
55401
|
+
}
|
|
55402
|
+
}
|
|
55403
|
+
]
|
|
55404
|
+
},
|
|
55405
|
+
{
|
|
55406
|
+
"kind": "method",
|
|
55407
|
+
"name": "onCellButtonClick",
|
|
55408
|
+
"privacy": "private",
|
|
55409
|
+
"parameters": [
|
|
55410
|
+
{
|
|
55411
|
+
"name": "e",
|
|
55412
|
+
"type": {
|
|
55413
|
+
"text": "ObcTableCellClickEvent"
|
|
55414
|
+
}
|
|
55415
|
+
}
|
|
55416
|
+
]
|
|
55417
|
+
},
|
|
55418
|
+
{
|
|
55419
|
+
"kind": "method",
|
|
55420
|
+
"name": "onExpandToggle",
|
|
55421
|
+
"privacy": "private",
|
|
55422
|
+
"parameters": [
|
|
55423
|
+
{
|
|
55424
|
+
"name": "e",
|
|
55425
|
+
"type": {
|
|
55426
|
+
"text": "ObcTableExpandToggleEvent"
|
|
55427
|
+
}
|
|
55428
|
+
}
|
|
55429
|
+
]
|
|
55430
|
+
},
|
|
55431
|
+
{
|
|
55432
|
+
"kind": "method",
|
|
55433
|
+
"name": "isExpanded",
|
|
55434
|
+
"privacy": "private",
|
|
55435
|
+
"parameters": [
|
|
55436
|
+
{
|
|
55437
|
+
"name": "rowId",
|
|
55438
|
+
"type": {
|
|
55439
|
+
"text": "string"
|
|
55440
|
+
}
|
|
55441
|
+
}
|
|
55442
|
+
]
|
|
55443
|
+
},
|
|
55444
|
+
{
|
|
55445
|
+
"kind": "field",
|
|
55446
|
+
"name": "columns",
|
|
55447
|
+
"privacy": "private",
|
|
55448
|
+
"readonly": true
|
|
55449
|
+
},
|
|
55450
|
+
{
|
|
55451
|
+
"kind": "field",
|
|
55452
|
+
"name": "metadata",
|
|
55453
|
+
"privacy": "private",
|
|
55454
|
+
"readonly": true
|
|
55455
|
+
},
|
|
55456
|
+
{
|
|
55457
|
+
"kind": "field",
|
|
55458
|
+
"name": "filteredAlerts",
|
|
55459
|
+
"privacy": "private",
|
|
55460
|
+
"readonly": true
|
|
55461
|
+
},
|
|
55462
|
+
{
|
|
55463
|
+
"kind": "method",
|
|
55464
|
+
"name": "buildVisibleRows",
|
|
55465
|
+
"privacy": "private",
|
|
55466
|
+
"return": {
|
|
55467
|
+
"type": {
|
|
55468
|
+
"text": "ObcTableRow[]"
|
|
55469
|
+
}
|
|
55470
|
+
}
|
|
55471
|
+
},
|
|
55472
|
+
{
|
|
55473
|
+
"kind": "method",
|
|
55474
|
+
"name": "buildRowCells",
|
|
55475
|
+
"privacy": "private",
|
|
55476
|
+
"return": {
|
|
55477
|
+
"type": {
|
|
55478
|
+
"text": "Record<string, ObcTableCellData | undefined>"
|
|
55479
|
+
}
|
|
55480
|
+
},
|
|
55481
|
+
"parameters": [
|
|
55482
|
+
{
|
|
55483
|
+
"name": "alert",
|
|
55484
|
+
"type": {
|
|
55485
|
+
"text": "Alert"
|
|
55486
|
+
}
|
|
55487
|
+
}
|
|
55488
|
+
]
|
|
55489
|
+
}
|
|
55490
|
+
],
|
|
55491
|
+
"events": [
|
|
55492
|
+
{
|
|
55493
|
+
"type": {
|
|
55494
|
+
"text": "ObcAckClickEvent"
|
|
55495
|
+
},
|
|
55496
|
+
"description": "Fired when the user clicks the \"ACK\" button.",
|
|
55497
|
+
"name": "ack-click"
|
|
55498
|
+
},
|
|
55499
|
+
{
|
|
55500
|
+
"type": {
|
|
55501
|
+
"text": "ObcRowClickEvent"
|
|
55502
|
+
},
|
|
55503
|
+
"description": "Fired when the user clicks a row.",
|
|
55504
|
+
"name": "row-click"
|
|
55505
|
+
}
|
|
55506
|
+
],
|
|
55507
|
+
"attributes": [
|
|
55508
|
+
{
|
|
55509
|
+
"name": "selectedMode",
|
|
55510
|
+
"type": {
|
|
55511
|
+
"text": "AlertListMode"
|
|
55512
|
+
},
|
|
55513
|
+
"fieldName": "selectedMode"
|
|
55514
|
+
},
|
|
55515
|
+
{
|
|
55516
|
+
"name": "alerts",
|
|
55517
|
+
"type": {
|
|
55518
|
+
"text": "Alert[]"
|
|
55519
|
+
},
|
|
55520
|
+
"default": "[]",
|
|
55521
|
+
"fieldName": "alerts"
|
|
55522
|
+
},
|
|
55523
|
+
{
|
|
55524
|
+
"name": "showTime",
|
|
55525
|
+
"type": {
|
|
55526
|
+
"text": "boolean"
|
|
55527
|
+
},
|
|
55528
|
+
"default": "false",
|
|
55529
|
+
"fieldName": "showTime"
|
|
55530
|
+
},
|
|
55531
|
+
{
|
|
55532
|
+
"name": "small",
|
|
55533
|
+
"type": {
|
|
55534
|
+
"text": "boolean"
|
|
55535
|
+
},
|
|
55536
|
+
"default": "false",
|
|
55537
|
+
"fieldName": "small"
|
|
55538
|
+
}
|
|
55539
|
+
],
|
|
55540
|
+
"superclass": {
|
|
55541
|
+
"name": "LitElement",
|
|
55542
|
+
"package": "lit"
|
|
55543
|
+
},
|
|
55544
|
+
"tagName": "obc-alert-list-details-experimental",
|
|
55545
|
+
"customElement": true
|
|
55546
|
+
}
|
|
55547
|
+
],
|
|
55548
|
+
"exports": [
|
|
55549
|
+
{
|
|
55550
|
+
"kind": "js",
|
|
55551
|
+
"name": "getAlertListModeData",
|
|
55552
|
+
"declaration": {
|
|
55553
|
+
"name": "getAlertListModeData",
|
|
55554
|
+
"module": "src/components/alert-list-details-experimental/alert-list-details-experimental.ts"
|
|
55555
|
+
}
|
|
55556
|
+
},
|
|
55557
|
+
{
|
|
55558
|
+
"kind": "js",
|
|
55559
|
+
"name": "canAckFilter",
|
|
55560
|
+
"declaration": {
|
|
55561
|
+
"name": "canAckFilter",
|
|
55562
|
+
"module": "src/components/alert-list-details-experimental/alert-list-details-experimental.ts"
|
|
55563
|
+
}
|
|
55564
|
+
},
|
|
55565
|
+
{
|
|
55566
|
+
"kind": "js",
|
|
55567
|
+
"name": "ObcAlertListDetailsExperimental",
|
|
55568
|
+
"declaration": {
|
|
55569
|
+
"name": "ObcAlertListDetailsExperimental",
|
|
55570
|
+
"module": "src/components/alert-list-details-experimental/alert-list-details-experimental.ts"
|
|
55571
|
+
}
|
|
55572
|
+
},
|
|
55573
|
+
{
|
|
55574
|
+
"kind": "custom-element-definition",
|
|
55575
|
+
"name": "obc-alert-list-details-experimental",
|
|
55576
|
+
"declaration": {
|
|
55577
|
+
"name": "ObcAlertListDetailsExperimental",
|
|
55578
|
+
"module": "src/components/alert-list-details-experimental/alert-list-details-experimental.ts"
|
|
55579
|
+
}
|
|
55580
|
+
}
|
|
55581
|
+
]
|
|
55582
|
+
},
|
|
55296
55583
|
{
|
|
55297
55584
|
"kind": "javascript-module",
|
|
55298
55585
|
"path": "src/components/alert-list-details/alert-list-details.ts",
|
|
@@ -78734,7 +79021,7 @@
|
|
|
78734
79021
|
"declarations": [
|
|
78735
79022
|
{
|
|
78736
79023
|
"kind": "class",
|
|
78737
|
-
"description": "`<obc-table>` renders tabular data with configurable columns and cell types.\n\nOverview\nUse this component to display structured datasets with optional selection, sorting, and rich cell\nrendering. It accepts `data` and `columns` and renders rows based on column configuration.\n\nFeatures/Variants\n- Selectable rows with header “select all” checkbox via `selectable=true`.\n- Cell rendering variants: `checkbox`, `tag`, `horizontal-bar`, and `button` cell types.\n- Visual variants: `rowDivider`, `striped`, `narrowHeader`, and `showHeader`.\n- Sorting support for sortable columns via column definitions.\n\nUsage Guidelines\n- Controlled selection: pass `selectedRowIds` and update it on `selection-change`.\n- Uncontrolled selection: pass `defaultSelectedRowIds` and listen to `selection-change`.\n- Use `selectAllAriaLabel` to customize the header checkbox accessibility label.\n\nSlots/Content\n- This component does not expose public slots. Provide content via `data` and `columns`.\n\nEvents\n- `row-click` fires when a row is clicked.\n- `cell-button-click` fires when a button cell is clicked.\n- `cell-checkbox-change` fires when a checkbox cell changes.\n- `cell-tag-click` fires when a tag inside a cell is clicked.\n- `selection-change` fires when row selection changes (source: `row` or `header`).\n\nBest Practices\n- Keep column `key` values stable across renders to avoid selection or sorting resets.\n- Prefer `selectedRowIds` for deterministic state in apps with external stores.\n- For dense tables, combine `narrowHeader` and `rowDivider` for visual clarity.\n\nExample (keywords: table, data grid, grid, tabular, datatable)\n```ts\nhtml`<obc-table\n .data=${rows}\n .columns=${columns}\n selectable\n striped",
|
|
79024
|
+
"description": "`<obc-table>` renders tabular data with configurable columns and cell types.\n\nOverview\nUse this component to display structured datasets with optional selection, sorting, and rich cell\nrendering. It accepts `data` and `columns` and renders rows based on column configuration.\n\nFeatures/Variants\n- Selectable rows with header “select all” checkbox via `selectable=true`.\n- Cell rendering variants: `checkbox`, `tag`, `horizontal-bar`, and `button` cell types.\n- Visual variants: `rowDivider`, `striped`, `narrowHeader`, and `showHeader`.\n- Sorting support for sortable columns via column definitions.\n- Hierarchical rows via `parentId`, `level`, `expandable` and `expanded`.\n\nUsage Guidelines\n- Controlled selection: pass `selectedRowIds` and update it on `selection-change`.\n- Uncontrolled selection: pass `defaultSelectedRowIds` and listen to `selection-change`.\n- Use `selectAllAriaLabel` to customize the header checkbox accessibility label.\n- Hierarchy is controlled, and flat: pass only the rows that are currently\n visible, each with the `parentId` of its parent row, and drop a collapsed\n group's descendants from `data` on `expand-toggle`. The table draws the\n indent and the chevron, keeps each sibling set sorted within its parent,\n and owns no expansion state of its own.\n\nSlots/Content\n- This component does not expose public slots. Provide content via `data` and `columns`.\n\nEvents\n- `row-click` fires when a row is clicked.\n- `cell-button-click` fires when a button cell is clicked.\n- `cell-checkbox-change` fires when a checkbox cell changes.\n- `cell-tag-click` fires when a tag inside a cell is clicked.\n- `selection-change` fires when row selection changes (source: `row` or `header`).\n- `expand-toggle` fires when a group row's chevron or expand key is used.\n\nAccessibility\nA table with hierarchical rows renders as a\n[treegrid](https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/): rows carry\n`aria-level`, and group rows `aria-expanded`. Right expands a collapsed\ngroup, Left collapses an expanded one or moves to the parent row. Cell-level\narrow navigation, which the full pattern also specifies, is out of scope —\narrow keys move between rows, matching the flat table.\n\nBest Practices\n- Keep column `key` values stable across renders to avoid selection or sorting resets.\n- Prefer `selectedRowIds` for deterministic state in apps with external stores.\n- For dense tables, combine `narrowHeader` and `rowDivider` for visual clarity.\n\nExample (keywords: table, data grid, grid, tabular, datatable)\n```ts\nhtml`<obc-table\n .data=${rows}\n .columns=${columns}\n selectable\n striped",
|
|
78738
79025
|
"name": "ObcTable",
|
|
78739
79026
|
"members": [
|
|
78740
79027
|
{
|
|
@@ -78876,6 +79163,31 @@
|
|
|
78876
79163
|
"privacy": "private",
|
|
78877
79164
|
"default": "[]"
|
|
78878
79165
|
},
|
|
79166
|
+
{
|
|
79167
|
+
"kind": "field",
|
|
79168
|
+
"name": "hasHierarchy",
|
|
79169
|
+
"privacy": "private",
|
|
79170
|
+
"readonly": true
|
|
79171
|
+
},
|
|
79172
|
+
{
|
|
79173
|
+
"kind": "method",
|
|
79174
|
+
"name": "sortWithinSiblings",
|
|
79175
|
+
"privacy": "private",
|
|
79176
|
+
"parameters": [
|
|
79177
|
+
{
|
|
79178
|
+
"name": "rows",
|
|
79179
|
+
"type": {
|
|
79180
|
+
"text": "ObcTableRow[]"
|
|
79181
|
+
}
|
|
79182
|
+
},
|
|
79183
|
+
{
|
|
79184
|
+
"name": "compare",
|
|
79185
|
+
"type": {
|
|
79186
|
+
"text": "(a: ObcTableRow, b: ObcTableRow) => number"
|
|
79187
|
+
}
|
|
79188
|
+
}
|
|
79189
|
+
]
|
|
79190
|
+
},
|
|
78879
79191
|
{
|
|
78880
79192
|
"kind": "field",
|
|
78881
79193
|
"name": "sortedData",
|
|
@@ -78907,6 +79219,38 @@
|
|
|
78907
79219
|
}
|
|
78908
79220
|
]
|
|
78909
79221
|
},
|
|
79222
|
+
{
|
|
79223
|
+
"kind": "method",
|
|
79224
|
+
"name": "_handleExpandToggle",
|
|
79225
|
+
"privacy": "private",
|
|
79226
|
+
"parameters": [
|
|
79227
|
+
{
|
|
79228
|
+
"name": "row",
|
|
79229
|
+
"type": {
|
|
79230
|
+
"text": "ObcTableRow"
|
|
79231
|
+
}
|
|
79232
|
+
},
|
|
79233
|
+
{
|
|
79234
|
+
"name": "expanded",
|
|
79235
|
+
"type": {
|
|
79236
|
+
"text": "boolean"
|
|
79237
|
+
}
|
|
79238
|
+
}
|
|
79239
|
+
]
|
|
79240
|
+
},
|
|
79241
|
+
{
|
|
79242
|
+
"kind": "method",
|
|
79243
|
+
"name": "_renderRowExpander",
|
|
79244
|
+
"privacy": "private",
|
|
79245
|
+
"parameters": [
|
|
79246
|
+
{
|
|
79247
|
+
"name": "row",
|
|
79248
|
+
"type": {
|
|
79249
|
+
"text": "ObcTableRow"
|
|
79250
|
+
}
|
|
79251
|
+
}
|
|
79252
|
+
]
|
|
79253
|
+
},
|
|
78910
79254
|
{
|
|
78911
79255
|
"kind": "method",
|
|
78912
79256
|
"name": "_focusFirstRow",
|
|
@@ -78956,6 +79300,25 @@
|
|
|
78956
79300
|
}
|
|
78957
79301
|
]
|
|
78958
79302
|
},
|
|
79303
|
+
{
|
|
79304
|
+
"kind": "method",
|
|
79305
|
+
"name": "_handleRowExpandKey",
|
|
79306
|
+
"privacy": "private",
|
|
79307
|
+
"parameters": [
|
|
79308
|
+
{
|
|
79309
|
+
"name": "event",
|
|
79310
|
+
"type": {
|
|
79311
|
+
"text": "KeyboardEvent"
|
|
79312
|
+
}
|
|
79313
|
+
},
|
|
79314
|
+
{
|
|
79315
|
+
"name": "key",
|
|
79316
|
+
"type": {
|
|
79317
|
+
"text": "'ArrowRight' | 'ArrowLeft'"
|
|
79318
|
+
}
|
|
79319
|
+
}
|
|
79320
|
+
]
|
|
79321
|
+
},
|
|
78959
79322
|
{
|
|
78960
79323
|
"kind": "method",
|
|
78961
79324
|
"name": "_getAllPositions",
|
|
@@ -79174,6 +79537,13 @@
|
|
|
79174
79537
|
"type": {
|
|
79175
79538
|
"text": "ObcTableColumn<ObcTableCellData, ObcTableRow>"
|
|
79176
79539
|
}
|
|
79540
|
+
},
|
|
79541
|
+
{
|
|
79542
|
+
"name": "expander",
|
|
79543
|
+
"default": "nothing",
|
|
79544
|
+
"type": {
|
|
79545
|
+
"text": "HTMLTemplateResult | typeof nothing"
|
|
79546
|
+
}
|
|
79177
79547
|
}
|
|
79178
79548
|
]
|
|
79179
79549
|
}
|
|
@@ -79213,6 +79583,13 @@
|
|
|
79213
79583
|
},
|
|
79214
79584
|
"description": "Fired when row selection changes.",
|
|
79215
79585
|
"name": "selection-change"
|
|
79586
|
+
},
|
|
79587
|
+
{
|
|
79588
|
+
"type": {
|
|
79589
|
+
"text": "ObcTableExpandToggleEvent"
|
|
79590
|
+
},
|
|
79591
|
+
"description": "Fired when a group row is expanded or collapsed.",
|
|
79592
|
+
"name": "expand-toggle"
|
|
79216
79593
|
}
|
|
79217
79594
|
],
|
|
79218
79595
|
"attributes": [
|
package/dist/components/alert-list-details-experimental/alert-list-details-experimental.css.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
const compentStyle = css`* {
|
|
3
|
+
-webkit-tap-highlight-color: transparent;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.wrapper {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
user-select: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.alert-list {
|
|
15
|
+
min-height: 0;
|
|
16
|
+
flex-grow: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.spacer {
|
|
20
|
+
flex-grow: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.action {
|
|
24
|
+
display: flex;
|
|
25
|
+
height: var(--app-components-tool-bar-touch-target-size);
|
|
26
|
+
padding: 0px var(--app-components-alert-toolbar-margin-horizontal);
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
flex-grow: 0;
|
|
31
|
+
border-top: 1px solid var(--border-divider-color);
|
|
32
|
+
background: var(--container-section-color);
|
|
33
|
+
box-shadow: var(--shadow-flat);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.action .btn-group {
|
|
37
|
+
display: flex;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
obc-table::part(grid) {
|
|
41
|
+
grid-template-columns: 1fr repeat(4, min-content);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.wrapper.small obc-table::part(grid) {
|
|
45
|
+
grid-template-columns: 1fr min-content var(
|
|
46
|
+
--app-components-alert-table-row-ack-container-width-small
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.empty-list {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
height: 100%;
|
|
56
|
+
gap: var(--app-components-alert-menu-button-spacing);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.empty-list .icon {
|
|
60
|
+
height: 96px;
|
|
61
|
+
width: 96px;
|
|
62
|
+
color: var(--on-flat-neutral-color);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.empty-list .empty-title {
|
|
66
|
+
color: var(--element-active-color);
|
|
67
|
+
font-family: var(--global-typography-font-family);
|
|
68
|
+
font-weight: var(--global-typography-ui-body-active-font-weight);
|
|
69
|
+
font-size: var(--global-typography-ui-body-active-font-size);
|
|
70
|
+
line-height: var(--global-typography-ui-body-active-line-height);
|
|
71
|
+
font-feature-settings:
|
|
72
|
+
"liga" off,
|
|
73
|
+
"clig" off,
|
|
74
|
+
"ss04" on;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.empty-list .empty-description {
|
|
78
|
+
color: var(--element-neutral-color);
|
|
79
|
+
font-family: var(--global-typography-font-family);
|
|
80
|
+
font-weight: var(--global-typography-ui-body-font-weight);
|
|
81
|
+
font-size: var(--global-typography-ui-body-font-size);
|
|
82
|
+
line-height: var(--global-typography-ui-body-line-height);
|
|
83
|
+
font-feature-settings:
|
|
84
|
+
"liga" off,
|
|
85
|
+
"clig" off,
|
|
86
|
+
"ss04" on;
|
|
87
|
+
max-width: 344px;
|
|
88
|
+
text-align: center;
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
91
|
+
export {
|
|
92
|
+
compentStyle as default
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=alert-list-details-experimental.css.js.map
|
package/dist/components/alert-list-details-experimental/alert-list-details-experimental.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-list-details-experimental.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { Alert } from '../../types.js';
|
|
3
|
+
import '../icon-button/icon-button.js';
|
|
4
|
+
import '../button/button.js';
|
|
5
|
+
import '../../icons/icon-silence-iec.js';
|
|
6
|
+
import '../../icons/icon-alerts.js';
|
|
7
|
+
import '../../icons/icon-alerts-shelf.js';
|
|
8
|
+
import '../../icons/icon-alerts-active.js';
|
|
9
|
+
import '../../icons/icon-alarm-rectified-iec.js';
|
|
10
|
+
import '../../icons/icon-unacknowledged.js';
|
|
11
|
+
import '../../icons/icon-alarm-noack-iec.js';
|
|
12
|
+
import '../../icons/icon-warning-noack-iec.js';
|
|
13
|
+
import '../alert-icon/alert-icon.js';
|
|
14
|
+
import '../scrollbar/scrollbar.js';
|
|
15
|
+
export declare enum AlertListMode {
|
|
16
|
+
UNACKED = "unacked",
|
|
17
|
+
ALL = "all",
|
|
18
|
+
SHELVED = "shelved",
|
|
19
|
+
BLOCKED = "blocked",
|
|
20
|
+
RECTIFIED = "rectified"
|
|
21
|
+
}
|
|
22
|
+
export type ObcAckClickEvent = CustomEvent<{
|
|
23
|
+
alert: Alert;
|
|
24
|
+
}>;
|
|
25
|
+
export type ObcRowClickEvent = CustomEvent<{
|
|
26
|
+
alert: Alert;
|
|
27
|
+
}>;
|
|
28
|
+
export declare function getAlertListModeData(selectedMode: AlertListMode): {
|
|
29
|
+
name: AlertListMode;
|
|
30
|
+
title: string;
|
|
31
|
+
emptyTitle: string;
|
|
32
|
+
emptyIcon: import('lit-html').TemplateResult<1>;
|
|
33
|
+
filter: (alert: Alert) => boolean;
|
|
34
|
+
};
|
|
35
|
+
export declare function canAckFilter(filter: (alert: Alert) => boolean): (alert: Alert) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @availableWhen timeFormatter showTime==true
|
|
38
|
+
* @property defaultExpanded - Whether groups start expanded. Set false to open the list collapsed.
|
|
39
|
+
* @fires {ObcAckClickEvent} ack-click - Fired when the user clicks the "ACK" button.
|
|
40
|
+
* @fires {ObcRowClickEvent} row-click - Fired when the user clicks a row.
|
|
41
|
+
* @experimental
|
|
42
|
+
*/
|
|
43
|
+
export declare class ObcAlertListDetailsExperimental extends LitElement {
|
|
44
|
+
selectedMode: AlertListMode;
|
|
45
|
+
alerts: Alert[];
|
|
46
|
+
showTime: boolean;
|
|
47
|
+
/** Available when `showTime==true`. */
|
|
48
|
+
timeFormatter: (time: Date) => string;
|
|
49
|
+
small: boolean;
|
|
50
|
+
/** Whether groups start expanded. Set false to open the list collapsed. */
|
|
51
|
+
defaultExpanded: boolean;
|
|
52
|
+
private alertList;
|
|
53
|
+
private expansionOverrides;
|
|
54
|
+
private alertByRowId;
|
|
55
|
+
getVisibleAlerts(): Alert[];
|
|
56
|
+
private onRowClick;
|
|
57
|
+
private onCellButtonClick;
|
|
58
|
+
private onExpandToggle;
|
|
59
|
+
private isExpanded;
|
|
60
|
+
private get columns();
|
|
61
|
+
private get metadata();
|
|
62
|
+
private get filteredAlerts();
|
|
63
|
+
private buildVisibleRows;
|
|
64
|
+
private buildRowCells;
|
|
65
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
66
|
+
static styles: import('lit').CSSResult;
|
|
67
|
+
}
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
'obc-alert-list-details-experimental': ObcAlertListDetailsExperimental;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=alert-list-details-experimental.d.ts.map
|
package/dist/components/alert-list-details-experimental/alert-list-details-experimental.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-list-details-experimental.d.ts","sourceRoot":"","sources":["../../../src/components/alert-list-details-experimental/alert-list-details-experimental.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAKhD,OAAO,+BAA+B,CAAC;AACvC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iCAAiC,CAAC;AACzC,OAAO,4BAA4B,CAAC;AACpC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,yCAAyC,CAAC;AACjD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,EAMN,MAAM,gBAAgB,CAAC;AAgBxB,OAAO,2BAA2B,CAAC;AAEnC,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;CACd,CAAC,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,aAAa;;;;;oBAO1C,KAAK;EAuC1B;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,IACpD,OAAO,KAAK,aAKrB;AAED;;;;;;GAMG;AACH,qBACa,+BAAgC,SAAQ,UAAU;IACnC,YAAY,EAAE,aAAa,CAAqB;IACjD,MAAM,EAAE,KAAK,EAAE,CAAM;IACnB,QAAQ,EAAE,OAAO,CAAS;IACvB,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAEV;IAC9B,KAAK,EAAE,OAAO,CAAS;IACL,eAAe,EAAE,OAAO,CAAQ;IAG7E,OAAO,CAAC,SAAS,CAAY;IAEpB,OAAO,CAAC,kBAAkB,CAA8B;IAEjE,OAAO,CAAC,YAAY,CAA4B;IAEzC,gBAAgB,IAAI,KAAK,EAAE;IAelC,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,UAAU;IAIlB,OAAO,KAAK,OAAO,GAkFlB;IAED,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,KAAK,cAAc,GAEzB;IAED,OAAO,CAAC,gBAAgB;IAiFxB,OAAO,CAAC,aAAa;IAkEZ,MAAM;IA0Bf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qCAAqC,EAAE,+BAA+B,CAAC;KACxE;CACF"}
|