@oicl/openbridge-webcomponents 2.2.0-next.3 → 2.2.0-next.5

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.
@@ -51263,6 +51263,10 @@ var badge_default = i$7`* {
51263
51263
  -webkit-tap-highlight-color: transparent;
51264
51264
  }
51265
51265
 
51266
+ :host {
51267
+ line-height: 0; /* in a flex row, the host's text line adds the font's descent under an icon-first badge */
51268
+ }
51269
+
51266
51270
  .wrapper {
51267
51271
  user-select: none;
51268
51272
  display: flex;
@@ -76312,13 +76316,53 @@ var alert_counter_item_default = i$7`* {
76312
76316
  gap: var(--app-components-alert-counter-item-badge-spacing);
76313
76317
  }
76314
76318
 
76315
- obi-alerts-shelf {
76319
+ obi-timer-2 {
76316
76320
  display: block; /* fills the badge icon box that sizes the badge-icon slot */
76317
76321
  width: 100%;
76318
76322
  height: 100%;
76319
76323
  }
76320
76324
  `;
76321
76325
  //#endregion
76326
+ //#region src/icons/icon-timer-2.ts
76327
+ var ObiTimer2 = class ObiTimer2 extends i$4 {
76328
+ constructor(..._args) {
76329
+ super(..._args);
76330
+ this.useCssColor = false;
76331
+ this.icon = w`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
76332
+ <path d="M12 13L16.415 15.5488C16.5355 15.6184 16.5958 15.6532 16.6289 15.7068C16.6567 15.7517 16.6704 15.8116 16.6649 15.8642C16.6584 15.9268 16.6219 15.9805 16.5488 16.088C15.5595 17.5432 13.8923 18.5 12 18.5C8.96243 18.5 6.5 16.0376 6.5 13C6.5 10.097 8.74915 7.71925 11.6 7.51433C11.7298 7.50499 11.7948 7.50032 11.8522 7.52602C11.9004 7.54759 11.9453 7.58941 11.9703 7.63592C12 7.69131 12 7.76088 12 7.9V13Z" fill="currentColor"/>
76333
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12 4C13.0332 4 14.0247 4.16675 14.9746 4.5C15.8443 4.80516 16.6646 5.23735 17.4365 5.79395L18.3281 4.90332C18.5261 4.70531 18.6261 4.60643 18.7402 4.56934C18.8405 4.53686 18.9486 4.53677 19.0488 4.56934C19.163 4.60642 19.2621 4.70542 19.46 4.90332L20.0967 5.54004C20.2946 5.73794 20.3936 5.83704 20.4307 5.95117C20.4632 6.05143 20.4631 6.15948 20.4307 6.25977C20.3936 6.37393 20.2947 6.47387 20.0967 6.67188L19.2051 7.5625C19.7621 8.33475 20.1947 9.15526 20.5 10.0254C20.8333 10.9753 21 11.9668 21 13C21 14.2333 20.7621 15.3956 20.2871 16.4873C19.8121 17.579 19.1663 18.5329 18.3496 19.3496C17.5329 20.1663 16.579 20.8121 15.4873 21.2871C14.3956 21.7621 13.2333 22 12 22C10.7667 22 9.60436 21.7621 8.5127 21.2871C7.42103 20.8121 6.46706 20.1663 5.65039 19.3496C4.83372 18.5329 4.18789 17.579 3.71289 16.4873C3.2379 15.3956 3 14.2333 3 13C3 11.7667 3.2379 10.6044 3.71289 9.5127C4.18789 8.42103 4.83372 7.46706 5.65039 6.65039C6.46706 5.83372 7.42103 5.18789 8.5127 4.71289C9.60436 4.2379 10.7667 4 12 4ZM12 6C10.0667 6 8.41647 6.68314 7.0498 8.0498C5.68314 9.41647 5 11.0667 5 13C5 14.9333 5.68314 16.5835 7.0498 17.9502C8.41647 19.3169 10.0667 20 12 20C13.9333 20 15.5835 19.3169 16.9502 17.9502C18.3169 16.5835 19 14.9333 19 13C19 11.0667 18.3169 9.41647 16.9502 8.0498C15.5835 6.68314 13.9333 6 12 6Z" fill="currentColor"/>
76334
+ <path d="M14.2002 1C14.4799 1 14.6197 1.00034 14.7266 1.05469C14.8206 1.10262 14.8974 1.17936 14.9453 1.27344C14.9997 1.38033 15 1.52014 15 1.7998V2.2002C15 2.47986 14.9997 2.61967 14.9453 2.72656C14.8974 2.82064 14.8206 2.89738 14.7266 2.94531C14.6197 2.99966 14.4799 3 14.2002 3H9.7998C9.52014 3 9.38033 2.99966 9.27344 2.94531C9.17936 2.89738 9.10262 2.82064 9.05469 2.72656C9.00034 2.61967 9 2.47986 9 2.2002V1.7998C9 1.52014 9.00034 1.38033 9.05469 1.27344C9.10262 1.17936 9.17936 1.10262 9.27344 1.05469C9.38033 1.00034 9.52014 1 9.7998 1H14.2002Z" fill="currentColor"/>
76335
+ </svg>
76336
+ `;
76337
+ this.iconCss = w`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
76338
+ <path d="M12 13L16.415 15.5488C16.5355 15.6184 16.5958 15.6532 16.6289 15.7068C16.6567 15.7517 16.6704 15.8116 16.6649 15.8642C16.6584 15.9268 16.6219 15.9805 16.5488 16.088C15.5595 17.5432 13.8923 18.5 12 18.5C8.96243 18.5 6.5 16.0376 6.5 13C6.5 10.097 8.74915 7.71925 11.6 7.51433C11.7298 7.50499 11.7948 7.50032 11.8522 7.52602C11.9004 7.54759 11.9453 7.58941 11.9703 7.63592C12 7.69131 12 7.76088 12 7.9V13Z" fill="currentColor"/>
76339
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12 4C13.0332 4 14.0247 4.16675 14.9746 4.5C15.8443 4.80516 16.6646 5.23735 17.4365 5.79395L18.3281 4.90332C18.5261 4.70531 18.6261 4.60643 18.7402 4.56934C18.8405 4.53686 18.9486 4.53677 19.0488 4.56934C19.163 4.60642 19.2621 4.70542 19.46 4.90332L20.0967 5.54004C20.2946 5.73794 20.3936 5.83704 20.4307 5.95117C20.4632 6.05143 20.4631 6.15948 20.4307 6.25977C20.3936 6.37393 20.2947 6.47387 20.0967 6.67188L19.2051 7.5625C19.7621 8.33475 20.1947 9.15526 20.5 10.0254C20.8333 10.9753 21 11.9668 21 13C21 14.2333 20.7621 15.3956 20.2871 16.4873C19.8121 17.579 19.1663 18.5329 18.3496 19.3496C17.5329 20.1663 16.579 20.8121 15.4873 21.2871C14.3956 21.7621 13.2333 22 12 22C10.7667 22 9.60436 21.7621 8.5127 21.2871C7.42103 20.8121 6.46706 20.1663 5.65039 19.3496C4.83372 18.5329 4.18789 17.579 3.71289 16.4873C3.2379 15.3956 3 14.2333 3 13C3 11.7667 3.2379 10.6044 3.71289 9.5127C4.18789 8.42103 4.83372 7.46706 5.65039 6.65039C6.46706 5.83372 7.42103 5.18789 8.5127 4.71289C9.60436 4.2379 10.7667 4 12 4ZM12 6C10.0667 6 8.41647 6.68314 7.0498 8.0498C5.68314 9.41647 5 11.0667 5 13C5 14.9333 5.68314 16.5835 7.0498 17.9502C8.41647 19.3169 10.0667 20 12 20C13.9333 20 15.5835 19.3169 16.9502 17.9502C18.3169 16.5835 19 14.9333 19 13C19 11.0667 18.3169 9.41647 16.9502 8.0498C15.5835 6.68314 13.9333 6 12 6Z" fill="currentColor"/>
76340
+ <path d="M14.2002 1C14.4799 1 14.6197 1.00034 14.7266 1.05469C14.8206 1.10262 14.8974 1.17936 14.9453 1.27344C14.9997 1.38033 15 1.52014 15 1.7998V2.2002C15 2.47986 14.9997 2.61967 14.9453 2.72656C14.8974 2.82064 14.8206 2.89738 14.7266 2.94531C14.6197 2.99966 14.4799 3 14.2002 3H9.7998C9.52014 3 9.38033 2.99966 9.27344 2.94531C9.17936 2.89738 9.10262 2.82064 9.05469 2.72656C9.00034 2.61967 9 2.47986 9 2.2002V1.7998C9 1.52014 9.00034 1.38033 9.05469 1.27344C9.10262 1.17936 9.17936 1.10262 9.27344 1.05469C9.38033 1.00034 9.52014 1 9.7998 1H14.2002Z" fill="currentColor"/>
76341
+ </svg>
76342
+ `;
76343
+ }
76344
+ render() {
76345
+ return b`
76346
+ <div class="wrapper">${this.useCssColor ? this.iconCss : this.icon}</div>
76347
+ `;
76348
+ }
76349
+ static {
76350
+ this.styles = i$7`
76351
+ .wrapper {
76352
+ height: 100%;
76353
+ width: 100%;
76354
+ line-height: 0;
76355
+ }
76356
+ .wrapper > * {
76357
+ height: 100%;
76358
+ width: 100%;
76359
+ }
76360
+ `;
76361
+ }
76362
+ };
76363
+ __decorate([n$4({ type: Boolean })], ObiTimer2.prototype, "useCssColor", void 0);
76364
+ ObiTimer2 = __decorate([customElement("obi-timer-2")], ObiTimer2);
76365
+ //#endregion
76322
76366
  //#region src/components/alert-counter-item/alert-counter-item.ts
76323
76367
  /**
76324
76368
  * `ObcAlertCounterItemType` – How each count is drawn (Figma `Type`).
@@ -76363,7 +76407,7 @@ var ObcAlertCounterItem = class ObcAlertCounterItem extends i$4 {
76363
76407
  showIcon
76364
76408
  .number=${this.shelvedCount}
76365
76409
  >
76366
- <obi-alerts-shelf slot="badge-icon"></obi-alerts-shelf>
76410
+ <obi-timer-2 slot="badge-icon"></obi-timer-2>
76367
76411
  </obc-badge>` : A}
76368
76412
  </div>
76369
76413
  `;
@@ -113971,11 +114015,16 @@ var top_bar_default = i$7`* {
113971
114015
  .dimming-button,
113972
114016
  .user-button,
113973
114017
  .apps-button,
114018
+ ::slotted([slot="asset-picker"]),
113974
114019
  ::slotted([slot="command-button"]),
113975
114020
  ::slotted([slot="clock"]) {
113976
114021
  flex-shrink: 0;
113977
114022
  }
113978
114023
 
114024
+ ::slotted([slot="asset-picker"]) {
114025
+ margin: 0 var(--app-components-topbar-label-spacing); /* Figma pads the picker 8 px each side; a dropdown button brings no gutter of its own */
114026
+ }
114027
+
113979
114028
  .alert-container {
113980
114029
  display: flex;
113981
114030
  flex: 1 1 0; /* zero basis: fills what the texts leave, holds its min-content in a squeeze */
@@ -114363,6 +114412,7 @@ var ObcTopBar = class ObcTopBar extends i$4 {
114363
114412
  if (this.showAppIcon) leftGroup.push(b`<div class="app-icon"><slot name="app-icon"></slot></div>`);
114364
114413
  leftGroup.push(b`<div class="title">${this.appTitle}</div>`);
114365
114414
  leftGroup.push(b`<div class="page-name">${this.pageName}</div>`);
114415
+ leftGroup.push(b`<slot name="asset-picker"></slot>`);
114366
114416
  leftGroup.push(b`<slot name="command-button"></slot>`);
114367
114417
  }
114368
114418
  return b`
@@ -183425,46 +183475,6 @@ var ObiTimer = class ObiTimer extends i$4 {
183425
183475
  __decorate([n$4({ type: Boolean })], ObiTimer.prototype, "useCssColor", void 0);
183426
183476
  ObiTimer = __decorate([customElement("obi-timer")], ObiTimer);
183427
183477
  //#endregion
183428
- //#region src/icons/icon-timer-2.ts
183429
- var ObiTimer2 = class ObiTimer2 extends i$4 {
183430
- constructor(..._args) {
183431
- super(..._args);
183432
- this.useCssColor = false;
183433
- this.icon = w`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
183434
- <path d="M12 13L16.415 15.5488C16.5355 15.6184 16.5958 15.6532 16.6289 15.7068C16.6567 15.7517 16.6704 15.8116 16.6649 15.8642C16.6584 15.9268 16.6219 15.9805 16.5488 16.088C15.5595 17.5432 13.8923 18.5 12 18.5C8.96243 18.5 6.5 16.0376 6.5 13C6.5 10.097 8.74915 7.71925 11.6 7.51433C11.7298 7.50499 11.7948 7.50032 11.8522 7.52602C11.9004 7.54759 11.9453 7.58941 11.9703 7.63592C12 7.69131 12 7.76088 12 7.9V13Z" fill="currentColor"/>
183435
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12 4C13.0332 4 14.0247 4.16675 14.9746 4.5C15.8443 4.80516 16.6646 5.23735 17.4365 5.79395L18.3281 4.90332C18.5261 4.70531 18.6261 4.60643 18.7402 4.56934C18.8405 4.53686 18.9486 4.53677 19.0488 4.56934C19.163 4.60642 19.2621 4.70542 19.46 4.90332L20.0967 5.54004C20.2946 5.73794 20.3936 5.83704 20.4307 5.95117C20.4632 6.05143 20.4631 6.15948 20.4307 6.25977C20.3936 6.37393 20.2947 6.47387 20.0967 6.67188L19.2051 7.5625C19.7621 8.33475 20.1947 9.15526 20.5 10.0254C20.8333 10.9753 21 11.9668 21 13C21 14.2333 20.7621 15.3956 20.2871 16.4873C19.8121 17.579 19.1663 18.5329 18.3496 19.3496C17.5329 20.1663 16.579 20.8121 15.4873 21.2871C14.3956 21.7621 13.2333 22 12 22C10.7667 22 9.60436 21.7621 8.5127 21.2871C7.42103 20.8121 6.46706 20.1663 5.65039 19.3496C4.83372 18.5329 4.18789 17.579 3.71289 16.4873C3.2379 15.3956 3 14.2333 3 13C3 11.7667 3.2379 10.6044 3.71289 9.5127C4.18789 8.42103 4.83372 7.46706 5.65039 6.65039C6.46706 5.83372 7.42103 5.18789 8.5127 4.71289C9.60436 4.2379 10.7667 4 12 4ZM12 6C10.0667 6 8.41647 6.68314 7.0498 8.0498C5.68314 9.41647 5 11.0667 5 13C5 14.9333 5.68314 16.5835 7.0498 17.9502C8.41647 19.3169 10.0667 20 12 20C13.9333 20 15.5835 19.3169 16.9502 17.9502C18.3169 16.5835 19 14.9333 19 13C19 11.0667 18.3169 9.41647 16.9502 8.0498C15.5835 6.68314 13.9333 6 12 6Z" fill="currentColor"/>
183436
- <path d="M14.2002 1C14.4799 1 14.6197 1.00034 14.7266 1.05469C14.8206 1.10262 14.8974 1.17936 14.9453 1.27344C14.9997 1.38033 15 1.52014 15 1.7998V2.2002C15 2.47986 14.9997 2.61967 14.9453 2.72656C14.8974 2.82064 14.8206 2.89738 14.7266 2.94531C14.6197 2.99966 14.4799 3 14.2002 3H9.7998C9.52014 3 9.38033 2.99966 9.27344 2.94531C9.17936 2.89738 9.10262 2.82064 9.05469 2.72656C9.00034 2.61967 9 2.47986 9 2.2002V1.7998C9 1.52014 9.00034 1.38033 9.05469 1.27344C9.10262 1.17936 9.17936 1.10262 9.27344 1.05469C9.38033 1.00034 9.52014 1 9.7998 1H14.2002Z" fill="currentColor"/>
183437
- </svg>
183438
- `;
183439
- this.iconCss = w`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
183440
- <path d="M12 13L16.415 15.5488C16.5355 15.6184 16.5958 15.6532 16.6289 15.7068C16.6567 15.7517 16.6704 15.8116 16.6649 15.8642C16.6584 15.9268 16.6219 15.9805 16.5488 16.088C15.5595 17.5432 13.8923 18.5 12 18.5C8.96243 18.5 6.5 16.0376 6.5 13C6.5 10.097 8.74915 7.71925 11.6 7.51433C11.7298 7.50499 11.7948 7.50032 11.8522 7.52602C11.9004 7.54759 11.9453 7.58941 11.9703 7.63592C12 7.69131 12 7.76088 12 7.9V13Z" fill="currentColor"/>
183441
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12 4C13.0332 4 14.0247 4.16675 14.9746 4.5C15.8443 4.80516 16.6646 5.23735 17.4365 5.79395L18.3281 4.90332C18.5261 4.70531 18.6261 4.60643 18.7402 4.56934C18.8405 4.53686 18.9486 4.53677 19.0488 4.56934C19.163 4.60642 19.2621 4.70542 19.46 4.90332L20.0967 5.54004C20.2946 5.73794 20.3936 5.83704 20.4307 5.95117C20.4632 6.05143 20.4631 6.15948 20.4307 6.25977C20.3936 6.37393 20.2947 6.47387 20.0967 6.67188L19.2051 7.5625C19.7621 8.33475 20.1947 9.15526 20.5 10.0254C20.8333 10.9753 21 11.9668 21 13C21 14.2333 20.7621 15.3956 20.2871 16.4873C19.8121 17.579 19.1663 18.5329 18.3496 19.3496C17.5329 20.1663 16.579 20.8121 15.4873 21.2871C14.3956 21.7621 13.2333 22 12 22C10.7667 22 9.60436 21.7621 8.5127 21.2871C7.42103 20.8121 6.46706 20.1663 5.65039 19.3496C4.83372 18.5329 4.18789 17.579 3.71289 16.4873C3.2379 15.3956 3 14.2333 3 13C3 11.7667 3.2379 10.6044 3.71289 9.5127C4.18789 8.42103 4.83372 7.46706 5.65039 6.65039C6.46706 5.83372 7.42103 5.18789 8.5127 4.71289C9.60436 4.2379 10.7667 4 12 4ZM12 6C10.0667 6 8.41647 6.68314 7.0498 8.0498C5.68314 9.41647 5 11.0667 5 13C5 14.9333 5.68314 16.5835 7.0498 17.9502C8.41647 19.3169 10.0667 20 12 20C13.9333 20 15.5835 19.3169 16.9502 17.9502C18.3169 16.5835 19 14.9333 19 13C19 11.0667 18.3169 9.41647 16.9502 8.0498C15.5835 6.68314 13.9333 6 12 6Z" fill="currentColor"/>
183442
- <path d="M14.2002 1C14.4799 1 14.6197 1.00034 14.7266 1.05469C14.8206 1.10262 14.8974 1.17936 14.9453 1.27344C14.9997 1.38033 15 1.52014 15 1.7998V2.2002C15 2.47986 14.9997 2.61967 14.9453 2.72656C14.8974 2.82064 14.8206 2.89738 14.7266 2.94531C14.6197 2.99966 14.4799 3 14.2002 3H9.7998C9.52014 3 9.38033 2.99966 9.27344 2.94531C9.17936 2.89738 9.10262 2.82064 9.05469 2.72656C9.00034 2.61967 9 2.47986 9 2.2002V1.7998C9 1.52014 9.00034 1.38033 9.05469 1.27344C9.10262 1.17936 9.17936 1.10262 9.27344 1.05469C9.38033 1.00034 9.52014 1 9.7998 1H14.2002Z" fill="currentColor"/>
183443
- </svg>
183444
- `;
183445
- }
183446
- render() {
183447
- return b`
183448
- <div class="wrapper">${this.useCssColor ? this.iconCss : this.icon}</div>
183449
- `;
183450
- }
183451
- static {
183452
- this.styles = i$7`
183453
- .wrapper {
183454
- height: 100%;
183455
- width: 100%;
183456
- line-height: 0;
183457
- }
183458
- .wrapper > * {
183459
- height: 100%;
183460
- width: 100%;
183461
- }
183462
- `;
183463
- }
183464
- };
183465
- __decorate([n$4({ type: Boolean })], ObiTimer2.prototype, "useCssColor", void 0);
183466
- ObiTimer2 = __decorate([customElement("obi-timer-2")], ObiTimer2);
183467
- //#endregion
183468
183478
  //#region src/icons/icon-timer-google.ts
183469
183479
  var ObiTimerGoogle = class ObiTimerGoogle extends ObiTimer {};
183470
183480
  ObiTimerGoogle = __decorate([customElement("obi-timer-google")], ObiTimerGoogle);