ooxml-ui 1.31.0 → 1.33.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.
Files changed (72) hide show
  1. package/custom-elements.json +10 -0
  2. package/dist/{chunk-32P252JS.js → chunk-QK5DQR6L.js} +1 -1
  3. package/dist/{chunk-WYKMVMX4.js → chunk-VSHQNHDG.js} +40 -0
  4. package/dist/{chunk-OKEFAQJT.js → chunk-XPUXFZNB.js} +71 -18
  5. package/dist/docx/editor-attributes.d.ts +7 -0
  6. package/dist/docx/format-dialogs.d.ts +1 -1
  7. package/dist/docx/locales/en.d.ts +4 -0
  8. package/dist/docx/locales/split-cells.d.ts +10 -0
  9. package/dist/docx/localization-strings.d.ts +4 -0
  10. package/dist/docx/ribbon-icons.d.ts +2 -0
  11. package/dist/docx/split-cells-dialog.d.ts +4 -0
  12. package/dist/docx/table-commands.d.ts +9 -3
  13. package/dist/docx/table-model-adapter.d.ts +5 -0
  14. package/dist/docx/table-restructure-commands.d.ts +36 -0
  15. package/dist/docx/table-restructure-convert.d.ts +10 -0
  16. package/dist/docx/table-restructure.d.ts +22 -0
  17. package/dist/docx.js +652 -46
  18. package/dist/index.js +3 -3
  19. package/dist/pptx/{chunk-KCZWGNWT.mjs → chunk-7DT3UJQB.mjs} +1 -1
  20. package/dist/pptx/{chunk-52Z74ESQ.mjs → chunk-CH4Z6H6C.mjs} +274 -76
  21. package/dist/pptx/{chunk-W4GPWC2Z.cjs → chunk-TDIJHLS5.cjs} +277 -74
  22. package/dist/pptx/{chunk-UG72HBSV.cjs → chunk-ZS5EVODY.cjs} +41 -41
  23. package/dist/pptx/dom/index.cjs +384 -383
  24. package/dist/pptx/dom/index.mjs +7 -6
  25. package/dist/pptx/index.cjs +3046 -3026
  26. package/dist/pptx/index.mjs +1 -1
  27. package/dist/pptx/render/bullet-toggle-selection.d.ts +8 -4
  28. package/dist/pptx/render/bullet-toggle-selection.d.ts.map +1 -1
  29. package/dist/pptx/render/index.d.ts +1 -0
  30. package/dist/pptx/render/index.d.ts.map +1 -1
  31. package/dist/pptx/render/inline-list-style.d.ts +2 -1
  32. package/dist/pptx/render/inline-list-style.d.ts.map +1 -1
  33. package/dist/pptx/render/text-list-style-update.d.ts +23 -2
  34. package/dist/pptx/render/text-list-style-update.d.ts.map +1 -1
  35. package/dist/pptx/render/text-warp-envelope-block.d.ts +10 -1
  36. package/dist/pptx/render/text-warp-envelope-block.d.ts.map +1 -1
  37. package/dist/pptx/render/text-warp-envelope-curves.d.ts +8 -0
  38. package/dist/pptx/render/text-warp-envelope-curves.d.ts.map +1 -1
  39. package/dist/pptx/render/text-warp-envelope-layout.d.ts +9 -3
  40. package/dist/pptx/render/text-warp-envelope-layout.d.ts.map +1 -1
  41. package/dist/pptx/render/text-warp-envelope-map.d.ts.map +1 -1
  42. package/dist/pptx/render/text-warp-envelope-wrap.d.ts +29 -0
  43. package/dist/pptx/render/text-warp-envelope-wrap.d.ts.map +1 -0
  44. package/dist/pptx/render/text-warp-preset-definitions.d.ts +13 -0
  45. package/dist/pptx/render/text-warp-preset-definitions.d.ts.map +1 -1
  46. package/dist/pptx/render/text-warp-preset-sampler.d.ts +12 -0
  47. package/dist/pptx/render/text-warp-preset-sampler.d.ts.map +1 -1
  48. package/dist/pptx/render/text-warp.d.ts +3 -2
  49. package/dist/pptx/render/text-warp.d.ts.map +1 -1
  50. package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
  51. package/dist/pptx/{smartart-insert-preview-GDFFXVAO.mjs → smartart-insert-preview-RQUFRLSV.mjs} +2 -2
  52. package/dist/pptx/{smartart-insert-preview-FA4WM2N4.cjs → smartart-insert-preview-YKNB37GE.cjs} +3 -3
  53. package/dist/{presentation-preview-XGJMARKI.js → presentation-preview-DKJC6TUJ.js} +1 -1
  54. package/dist/teams/app/chat-people-dialog.d.ts +5 -0
  55. package/dist/teams/app/teams-app.d.ts +3 -0
  56. package/dist/teams/chat-list.d.ts +5 -0
  57. package/dist/teams/i18n/locales/de.d.ts +8 -0
  58. package/dist/teams/i18n/locales/en/chat.d.ts +2 -0
  59. package/dist/teams/i18n/locales/en/shell.d.ts +6 -0
  60. package/dist/teams/i18n/locales/en.d.ts +8 -0
  61. package/dist/teams/i18n/locales/es.d.ts +8 -0
  62. package/dist/teams/i18n/locales/fr.d.ts +8 -0
  63. package/dist/teams/i18n/locales/zh-CN.d.ts +8 -0
  64. package/dist/teams.js +2 -2
  65. package/dist/xlsx/dialogs/custom-views.d.ts +2 -0
  66. package/dist/xlsx/dialogs/forecast-sheet.d.ts +2 -0
  67. package/dist/xlsx/dialogs/scenario-extras.d.ts +8 -0
  68. package/dist/xlsx/grid/shapes.d.ts +21 -0
  69. package/dist/xlsx/grid/styles.d.ts +1 -1
  70. package/dist/xlsx/header-image.d.ts +8 -0
  71. package/dist/xlsx.js +656 -126
  72. package/package.json +2 -2
@@ -1174,6 +1174,9 @@
1174
1174
  {
1175
1175
  "name": "locale"
1176
1176
  },
1177
+ {
1178
+ "name": "moderator"
1179
+ },
1177
1180
  {
1178
1181
  "name": "self-id"
1179
1182
  }
@@ -1202,6 +1205,13 @@
1202
1205
  "kind": "field",
1203
1206
  "name": "messages"
1204
1207
  },
1208
+ {
1209
+ "kind": "field",
1210
+ "name": "moderator",
1211
+ "type": {
1212
+ "text": "boolean"
1213
+ }
1214
+ },
1205
1215
  {
1206
1216
  "kind": "field",
1207
1217
  "name": "pinnedIds"
@@ -1,5 +1,5 @@
1
1
  import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-CALEXPBD.js';
2
- import { TEAMS_TAGS, registerTeams } from './chunk-OKEFAQJT.js';
2
+ import { TEAMS_TAGS, registerTeams } from './chunk-XPUXFZNB.js';
3
3
  import { installOfficeUiTheme } from './chunk-T5ARELU2.js';
4
4
  import { registerControls } from './chunk-KYXSQFDB.js';
5
5
  import { definePresence } from './chunk-YZH2QS7J.js';
@@ -89,6 +89,8 @@ var deChat = {
89
89
  "chat.backToChats": "Zur\xFCck zu den Chats",
90
90
  "chat.call": "Anrufen",
91
91
  "chat.confirmDelete": "Diese Nachricht l\xF6schen?",
92
+ "chat.confirmHide": "Diese Nachricht f\xFCr alle ausblenden?",
93
+ "chat.hide": "Nachricht ausblenden",
92
94
  "chat.delete": "L\xF6schen",
93
95
  "chat.deleted": "Diese Nachricht wurde gel\xF6scht",
94
96
  "chat.edited": "(bearbeitet)",
@@ -612,6 +614,7 @@ var deShell = {
612
614
  "app.backToChannels": "Zur\xFCck zu den Kan\xE4len",
613
615
  "app.confirmRemoveTab": "{name} aus diesem Kanal entfernen?",
614
616
  "app.createChannelFirst": "Erstellen Sie zuerst einen Kanal",
617
+ "app.schemaTooNew": "Dieser Arbeitsbereich wurde mit einer neueren Version von OpenTeams erstellt und ist hier daher schreibgesch\xFCtzt. Aktualisieren Sie die App, um zu schreiben oder \xC4nderungen vorzunehmen.",
615
618
  "app.dismiss": "Schlie\xDFen",
616
619
  "app.downloadFailed": "Der Download konnte nicht gestartet werden",
617
620
  "app.inCall": "Sie sind in einem Anruf in {where}",
@@ -627,6 +630,11 @@ var deShell = {
627
630
  "app.pinNeedsUrl": "Diese Datei ben\xF6tigt eine hochgeladene URL, bevor sie angeheftet werden kann",
628
631
  "app.posts": "Beitr\xE4ge",
629
632
  "app.removeTab": "Registerkarte entfernen",
633
+ "app.archiveChannel": "Kanal archivieren",
634
+ "app.channelNamePrompt": "Kanalname",
635
+ "app.channelOptions": "Kanaloptionen",
636
+ "app.confirmArchiveChannel": "{name} archivieren? Der Kanal verschwindet f\xFCr alle.",
637
+ "app.renameChannel": "Kanal umbenennen",
630
638
  "app.renameTab": "Registerkarte umbenennen",
631
639
  "app.returnToCall": "Zur\xFCck zum Anruf",
632
640
  "app.settingsAndMore": "Einstellungen und mehr",
@@ -730,6 +738,8 @@ var enChat = {
730
738
  "chat.backToChats": "Back to chats",
731
739
  "chat.call": "Call",
732
740
  "chat.confirmDelete": "Delete this message?",
741
+ "chat.confirmHide": "Hide this message for everyone?",
742
+ "chat.hide": "Hide message",
733
743
  "chat.delete": "Delete",
734
744
  "chat.deleted": "This message was deleted",
735
745
  "chat.edited": "(edited)",
@@ -1253,6 +1263,7 @@ var enShell = {
1253
1263
  "app.backToChannels": "Back to channels",
1254
1264
  "app.confirmRemoveTab": "Remove {name} from this channel?",
1255
1265
  "app.createChannelFirst": "Create a channel first",
1266
+ "app.schemaTooNew": "This workspace was created by a newer version of OpenTeams, so it is read-only here. Update the app to post or make changes.",
1256
1267
  "app.dismiss": "Dismiss",
1257
1268
  "app.downloadFailed": "Could not start the download",
1258
1269
  "app.inCall": "You are in a call in {where}",
@@ -1268,6 +1279,11 @@ var enShell = {
1268
1279
  "app.pinNeedsUrl": "This file needs an uploaded URL before it can be pinned",
1269
1280
  "app.posts": "Posts",
1270
1281
  "app.removeTab": "Remove tab",
1282
+ "app.archiveChannel": "Archive channel",
1283
+ "app.channelNamePrompt": "Channel name",
1284
+ "app.channelOptions": "Channel options",
1285
+ "app.confirmArchiveChannel": "Archive {name}? It disappears for everyone.",
1286
+ "app.renameChannel": "Rename channel",
1271
1287
  "app.renameTab": "Rename tab",
1272
1288
  "app.returnToCall": "Return to call",
1273
1289
  "app.settingsAndMore": "Settings and more",
@@ -1371,6 +1387,8 @@ var esChat = {
1371
1387
  "chat.backToChats": "Volver a los chats",
1372
1388
  "chat.call": "Llamar",
1373
1389
  "chat.confirmDelete": "\xBFEliminar este mensaje?",
1390
+ "chat.confirmHide": "\xBFOcultar este mensaje para todos?",
1391
+ "chat.hide": "Ocultar mensaje",
1374
1392
  "chat.delete": "Eliminar",
1375
1393
  "chat.deleted": "Este mensaje se elimin\xF3",
1376
1394
  "chat.edited": "(editado)",
@@ -1894,6 +1912,7 @@ var esShell = {
1894
1912
  "app.backToChannels": "Volver a los canales",
1895
1913
  "app.confirmRemoveTab": "\xBFQuitar {name} de este canal?",
1896
1914
  "app.createChannelFirst": "Crea primero un canal",
1915
+ "app.schemaTooNew": "Este espacio de trabajo se cre\xF3 con una versi\xF3n m\xE1s reciente de OpenTeams, por lo que aqu\xED es de solo lectura. Actualiza la aplicaci\xF3n para publicar o hacer cambios.",
1897
1916
  "app.dismiss": "Descartar",
1898
1917
  "app.downloadFailed": "No se pudo iniciar la descarga",
1899
1918
  "app.inCall": "Est\xE1s en una llamada en {where}",
@@ -1909,6 +1928,11 @@ var esShell = {
1909
1928
  "app.pinNeedsUrl": "Este archivo necesita una direcci\xF3n URL cargada antes de poder anclarse",
1910
1929
  "app.posts": "Publicaciones",
1911
1930
  "app.removeTab": "Quitar pesta\xF1a",
1931
+ "app.archiveChannel": "Archivar canal",
1932
+ "app.channelNamePrompt": "Nombre del canal",
1933
+ "app.channelOptions": "Opciones del canal",
1934
+ "app.confirmArchiveChannel": "\xBFArchivar {name}? Desaparece para todos.",
1935
+ "app.renameChannel": "Cambiar nombre del canal",
1912
1936
  "app.renameTab": "Cambiar nombre de la pesta\xF1a",
1913
1937
  "app.returnToCall": "Volver a la llamada",
1914
1938
  "app.settingsAndMore": "Configuraci\xF3n y m\xE1s",
@@ -2012,6 +2036,8 @@ var frChat = {
2012
2036
  "chat.backToChats": "Retour aux conversations",
2013
2037
  "chat.call": "Appeler",
2014
2038
  "chat.confirmDelete": "Supprimer ce message ?",
2039
+ "chat.confirmHide": "Masquer ce message pour tout le monde ?",
2040
+ "chat.hide": "Masquer le message",
2015
2041
  "chat.delete": "Supprimer",
2016
2042
  "chat.deleted": "Ce message a \xE9t\xE9 supprim\xE9",
2017
2043
  "chat.edited": "(modifi\xE9)",
@@ -2535,6 +2561,7 @@ var frShell = {
2535
2561
  "app.backToChannels": "Retour aux canaux",
2536
2562
  "app.confirmRemoveTab": "Supprimer {name} de ce canal ?",
2537
2563
  "app.createChannelFirst": "Cr\xE9ez d'abord un canal",
2564
+ "app.schemaTooNew": "Cet espace de travail a \xE9t\xE9 cr\xE9\xE9 avec une version plus r\xE9cente d\u2019OpenTeams ; il est donc en lecture seule ici. Mettez l\u2019application \xE0 jour pour publier ou modifier.",
2538
2565
  "app.dismiss": "Ignorer",
2539
2566
  "app.downloadFailed": "Impossible de d\xE9marrer le t\xE9l\xE9chargement",
2540
2567
  "app.inCall": "Vous participez \xE0 un appel dans {where}",
@@ -2550,6 +2577,11 @@ var frShell = {
2550
2577
  "app.pinNeedsUrl": "Ce fichier n\xE9cessite une URL charg\xE9e avant de pouvoir \xEAtre \xE9pingl\xE9",
2551
2578
  "app.posts": "Publications",
2552
2579
  "app.removeTab": "Supprimer l'onglet",
2580
+ "app.archiveChannel": "Archiver le canal",
2581
+ "app.channelNamePrompt": "Nom du canal",
2582
+ "app.channelOptions": "Options du canal",
2583
+ "app.confirmArchiveChannel": "Archiver {name} ? Il dispara\xEEt pour tout le monde.",
2584
+ "app.renameChannel": "Renommer le canal",
2553
2585
  "app.renameTab": "Renommer l'onglet",
2554
2586
  "app.returnToCall": "Retourner \xE0 l'appel",
2555
2587
  "app.settingsAndMore": "Param\xE8tres et plus",
@@ -2653,6 +2685,8 @@ var zhCNChat = {
2653
2685
  "chat.backToChats": "\u8FD4\u56DE\u804A\u5929",
2654
2686
  "chat.call": "\u547C\u53EB",
2655
2687
  "chat.confirmDelete": "\u8981\u5220\u9664\u6B64\u6D88\u606F\u5417\uFF1F",
2688
+ "chat.confirmHide": "\u8981\u5BF9\u6240\u6709\u4EBA\u9690\u85CF\u6B64\u6D88\u606F\u5417\uFF1F",
2689
+ "chat.hide": "\u9690\u85CF\u6D88\u606F",
2656
2690
  "chat.delete": "\u5220\u9664",
2657
2691
  "chat.deleted": "\u6B64\u6D88\u606F\u5DF2\u5220\u9664",
2658
2692
  "chat.edited": "\uFF08\u5DF2\u7F16\u8F91\uFF09",
@@ -3176,6 +3210,7 @@ var zhCNShell = {
3176
3210
  "app.backToChannels": "\u8FD4\u56DE\u9891\u9053",
3177
3211
  "app.confirmRemoveTab": "\u8981\u4ECE\u6B64\u9891\u9053\u4E2D\u5220\u9664 {name} \u5417\uFF1F",
3178
3212
  "app.createChannelFirst": "\u8BF7\u5148\u521B\u5EFA\u9891\u9053",
3213
+ "app.schemaTooNew": "\u6B64\u5DE5\u4F5C\u533A\u7531\u8F83\u65B0\u7248\u672C\u7684 OpenTeams \u521B\u5EFA\uFF0C\u56E0\u6B64\u5728\u8FD9\u91CC\u662F\u53EA\u8BFB\u7684\u3002\u8BF7\u66F4\u65B0\u5E94\u7528\u4EE5\u53D1\u5E03\u6D88\u606F\u6216\u8FDB\u884C\u66F4\u6539\u3002",
3179
3214
  "app.dismiss": "\u5173\u95ED",
3180
3215
  "app.downloadFailed": "\u65E0\u6CD5\u5F00\u59CB\u4E0B\u8F7D",
3181
3216
  "app.inCall": "\u4F60\u6B63\u5728 {where} \u4E2D\u901A\u8BDD",
@@ -3191,6 +3226,11 @@ var zhCNShell = {
3191
3226
  "app.pinNeedsUrl": "\u6B64\u6587\u4EF6\u9700\u8981\u5148\u6709\u5DF2\u4E0A\u4F20\u7684 URL \u624D\u80FD\u56FA\u5B9A",
3192
3227
  "app.posts": "\u5E16\u5B50",
3193
3228
  "app.removeTab": "\u5220\u9664\u9009\u9879\u5361",
3229
+ "app.archiveChannel": "\u5F52\u6863\u9891\u9053",
3230
+ "app.channelNamePrompt": "\u9891\u9053\u540D\u79F0",
3231
+ "app.channelOptions": "\u9891\u9053\u9009\u9879",
3232
+ "app.confirmArchiveChannel": "\u8981\u5F52\u6863 {name} \u5417\uFF1F\u5B83\u5C06\u5BF9\u6240\u6709\u4EBA\u6D88\u5931\u3002",
3233
+ "app.renameChannel": "\u91CD\u547D\u540D\u9891\u9053",
3194
3234
  "app.renameTab": "\u91CD\u547D\u540D\u9009\u9879\u5361",
3195
3235
  "app.returnToCall": "\u8FD4\u56DE\u901A\u8BDD",
3196
3236
  "app.settingsAndMore": "\u8BBE\u7F6E\u53CA\u66F4\u591A",
@@ -1,4 +1,4 @@
1
- import { TeamsLitElement, LOCALE_HOST, teamsI18n, inheritLocale, pushLocale } from './chunk-WYKMVMX4.js';
1
+ import { TeamsLitElement, LOCALE_HOST, teamsI18n, inheritLocale, pushLocale } from './chunk-VSHQNHDG.js';
2
2
  import { listenEvents, bindElement, syncClassName } from './chunk-CDAXY5KC.js';
3
3
  import { eventArgs, pickProps } from './chunk-NDUD5JJB.js';
4
4
  import { THEME_CSS, installOfficeUiTheme } from './chunk-T5ARELU2.js';
@@ -1407,7 +1407,8 @@ var OfficeUiChatList = class extends TeamsElement {
1407
1407
  replyCounts: { attribute: false },
1408
1408
  pinnedIds: { attribute: false },
1409
1409
  highlightId: { type: String, attribute: "highlight-id" },
1410
- meetings: { attribute: false }
1410
+ meetings: { attribute: false },
1411
+ moderator: { type: Boolean }
1411
1412
  };
1412
1413
  stickToBottom = true;
1413
1414
  constructor() {
@@ -1418,6 +1419,7 @@ var OfficeUiChatList = class extends TeamsElement {
1418
1419
  this.pinnedIds = [];
1419
1420
  this.highlightId = "";
1420
1421
  this.meetings = {};
1422
+ this.moderator = false;
1421
1423
  }
1422
1424
  connectedCallback() {
1423
1425
  super.connectedCallback();
@@ -1584,6 +1586,14 @@ var OfficeUiChatList = class extends TeamsElement {
1584
1586
  @click=${() => this.fire("office-chat-delete", { messageId: m.id })}
1585
1587
  >
1586
1588
  ${icon("trash")}
1589
+ </button>` : this.moderator && !m.system ? html`<button
1590
+ type="button"
1591
+ data-action="hide"
1592
+ title=${this.t("chat.hide")}
1593
+ aria-label=${this.t("chat.hide")}
1594
+ @click=${() => this.fire("office-chat-delete", { messageId: m.id, moderation: true })}
1595
+ >
1596
+ ${icon("trash")}
1587
1597
  </button>` : nothing}
1588
1598
  </div>
1589
1599
  `;
@@ -2257,7 +2267,7 @@ var TeamsContentPreview = class extends TeamsLitElement {
2257
2267
  if (kind === "xlsx") (await import('./xlsx.js')).defineXlsxEditor();
2258
2268
  if (kind === "vsdx") (await import('./visio.js')).registerVisioViewer();
2259
2269
  if (kind === "pptx")
2260
- (await import('./presentation-preview-XGJMARKI.js')).defineTeamsPresentationPreview();
2270
+ (await import('./presentation-preview-DKJC6TUJ.js')).defineTeamsPresentationPreview();
2261
2271
  if (request.signal.aborted) return;
2262
2272
  this.native = kind;
2263
2273
  await this.updateComplete;
@@ -3572,7 +3582,7 @@ function loadConfig() {
3572
3582
  var saveConfig = (config) => safeStorage.setItem("teams:config", JSON.stringify(config));
3573
3583
 
3574
3584
  // raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/teams/app/teams-app.css?raw
3575
- var teams_app_default = "/* <teams-app>: the shell. Colours, spacing and radii come from the ooxml-ui tokens, so a host\n retheme or dark mode reaches the whole app. The elements inside bring their own styles. */\n:host {\n display: block;\n height: 100%;\n min-height: 28em;\n font: var(--office-font-size) var(--office-font);\n color: var(--office-foreground);\n background: var(--office-background);\n}\n:host([data-office-theme='dark']) {\n --office-background: var(--office-teams-panel);\n --office-surface: var(--office-teams-bubble);\n --office-popover: var(--office-teams-panel);\n}\n:host([data-chat-density='compact']) {\n --office-teams-message-gap: var(--office-space-1);\n --office-teams-message-padding: var(--office-space-1) var(--office-space-2);\n}\n@media (prefers-color-scheme: dark) {\n :host(:not([data-office-theme='light'])) {\n --office-background: var(--office-teams-panel);\n --office-surface: var(--office-teams-bubble);\n --office-popover: var(--office-teams-panel);\n }\n}\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\nbutton {\n font: inherit;\n color: inherit;\n cursor: pointer;\n}\n:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: var(--office-focus-offset);\n}\n\n.shell {\n display: grid;\n grid-template-rows: auto minmax(0, 1fr);\n height: 100%;\n}\n\n/* ---- top bar ---------------------------------------------------------------------------- */\n.topbar {\n display: grid;\n grid-template-columns: 16em minmax(0, 1fr) auto;\n align-items: center;\n gap: var(--office-space-4);\n padding: var(--office-space-2) var(--office-space-4);\n background: var(--office-teams-rail);\n border-bottom: var(--office-border-width) solid var(--office-teams-divider);\n}\n.brand {\n display: flex;\n align-items: center;\n gap: var(--office-space-2);\n font-size: var(--office-font-size-lg);\n font-weight: var(--office-font-weight-bold);\n}\n.logo {\n display: inline-grid;\n place-items: center;\n width: 1.8em;\n height: 1.8em;\n border-radius: var(--office-radius-md);\n background: var(--office-teams-brand);\n color: var(--office-teams-brand-foreground);\n font-size: 0.85em;\n}\n.search {\n position: relative;\n justify-self: center;\n width: min(34em, 100%);\n}\n.search input {\n width: 100%;\n padding: var(--office-space-2) var(--office-space-4);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-full);\n background: var(--office-background);\n color: inherit;\n font: inherit;\n}\n.results {\n position: absolute;\n inset-inline: 0;\n inset-block-start: calc(100% + var(--office-space-1));\n z-index: 5;\n max-height: 22em;\n margin: 0;\n padding: var(--office-space-1);\n overflow: auto;\n list-style: none;\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n background: var(--office-popover);\n box-shadow: var(--office-shadow-teams);\n}\n.results button {\n display: grid;\n width: 100%;\n padding: var(--office-space-2) var(--office-space-3);\n border: 0;\n border-radius: var(--office-radius);\n background: transparent;\n text-align: start;\n}\n.results button:hover {\n background: var(--office-selected);\n}\n.results .in,\n.results .none {\n color: var(--office-teams-text-subtle);\n font-size: var(--office-font-size-sm);\n}\n.results .none {\n padding: var(--office-space-3);\n}\n.snippet {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.me {\n display: flex;\n align-items: center;\n gap: var(--office-space-3);\n}\n.me office-ui-menu-button::part(caret) {\n display: none;\n}\n.channel-head office-ui-menu-button::part(caret) {\n display: none;\n}\n.channel-head svg {\n width: 1em;\n height: 1em;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n\n/* ---- body ------------------------------------------------------------------------------- */\n.body {\n display: grid;\n grid-template-columns: auto 19em minmax(0, 1fr);\n min-height: 0;\n grid-template-rows: minmax(0, 1fr);\n}\n.body > office-ui-app-rail {\n grid-column: 1;\n grid-row: 1;\n}\n.body > .side {\n grid-column: 2;\n grid-row: 1;\n}\n.body > .main {\n grid-column: 3;\n grid-row: 1;\n}\n.body > teams-settings {\n grid-column: 2 / -1;\n grid-row: 1;\n min-width: 0;\n min-height: 0;\n z-index: 1;\n}\n.body > teams-settings:not([open]) {\n display: none;\n}\n.body > [inert] {\n visibility: hidden;\n}\n.side {\n min-height: 0;\n overflow: auto;\n background: var(--office-teams-panel);\n border-inline-end: var(--office-border-width) solid var(--office-teams-divider);\n}\n.side h2 {\n margin: 0;\n padding: var(--office-space-3) var(--office-space-4);\n font-size: var(--office-font-size-lg);\n}\n.main {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n}\n.popout-view {\n display: flex;\n height: 100%;\n min-height: 0;\n}\n.popout-view teams-content-preview {\n flex: 1;\n}\n.main office-ui-chat-list,\n.main office-ui-prejoin {\n flex: 1;\n}\n\nul.plain {\n margin: 0;\n padding: 0 var(--office-space-3);\n list-style: none;\n}\nul.plain li {\n display: flex;\n align-items: center;\n gap: var(--office-space-2);\n padding: var(--office-space-2) var(--office-space-2);\n}\nul.plain li > :first-child:not(office-ui-avatar) {\n flex: 1;\n}\n.hint {\n padding: 0 var(--office-space-4);\n color: var(--office-teams-text-subtle);\n}\n.join {\n padding: var(--office-space-1) var(--office-space-3);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n background: var(--office-background);\n}\n.join.live {\n border-color: transparent;\n background: var(--office-call-live);\n color: var(--office-call-foreground);\n}\n\n/* ---- conversation ----------------------------------------------------------------------- */\n.channel-head {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--office-space-4);\n padding: var(--office-space-2) var(--office-space-5);\n border-bottom: var(--office-border-width) solid var(--office-teams-divider);\n}\n.channel-head > button:not(.meet),\n.thread-head button {\n padding: var(--office-space-2) var(--office-space-3);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n background: var(--office-background);\n}\n.channel-head > button:hover:not(:disabled),\n.thread-head button:hover {\n background: var(--office-selected);\n}\n.channel-head > button:disabled {\n opacity: 0.5;\n cursor: default;\n}\n.channel-head h1 {\n margin: 0;\n font-size: var(--office-font-size-lg);\n white-space: nowrap;\n}\n.hash {\n color: var(--office-teams-text-subtle);\n}\n.tabs {\n display: flex;\n gap: var(--office-space-1);\n}\n.tabs button {\n padding: var(--office-space-2) var(--office-space-3);\n border: 0;\n border-bottom: var(--office-border-width-thick) solid transparent;\n background: transparent;\n}\n.tabs button[aria-selected='true'] {\n border-bottom-color: var(--office-teams-brand);\n font-weight: var(--office-font-weight-bold);\n}\n.topic {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--office-teams-text-subtle);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.people {\n display: flex;\n align-items: center;\n gap: var(--office-space-0);\n}\n.more {\n margin-inline-start: var(--office-space-1);\n color: var(--office-teams-text-subtle);\n font-size: var(--office-font-size-sm);\n}\n.meet {\n padding: var(--office-space-2) var(--office-space-4);\n border: 0;\n border-radius: var(--office-radius-md);\n background: var(--office-teams-brand);\n color: var(--office-teams-brand-foreground);\n font-weight: var(--office-font-weight-bold);\n}\n.meet:hover:not(:disabled) {\n background: var(--office-teams-brand-hover);\n}\n.meet:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.callbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--office-space-2) var(--office-space-5);\n background: var(--office-call-live);\n color: var(--office-call-foreground);\n}\n.callbar button {\n padding: 0 var(--office-space-3);\n border: var(--office-border-width) solid currentColor;\n border-radius: var(--office-radius);\n background: transparent;\n}\n\n/* ---- files ------------------------------------------------------------------------------ */\n/* ---- meeting ---------------------------------------------------------------------------- */\n.meeting {\n display: grid;\n grid-template-rows: auto minmax(0, 1fr);\n height: 100%;\n background: var(--office-call-background);\n}\n.stage {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n min-height: 0;\n}\n.panel {\n display: flex;\n flex-direction: column;\n width: 22em;\n min-height: 0;\n background: var(--office-background);\n border-inline-start: var(--office-border-width) solid var(--office-teams-divider);\n}\n.panel office-ui-chat-list {\n flex: 1;\n padding-inline: var(--office-space-3);\n}\n.panel office-ui-chat-composer {\n padding-inline: var(--office-space-3);\n}\n.people-panel h2 {\n margin: 0;\n padding: var(--office-space-3) var(--office-space-4);\n font-size: var(--office-font-size-lg);\n}\n\n/* ---- welcome and toast ------------------------------------------------------------------ */\n.welcome {\n display: grid;\n place-items: center;\n height: 100%;\n background: var(--office-teams-panel);\n}\n.welcome form {\n display: grid;\n justify-items: center;\n gap: var(--office-space-3);\n width: min(24em, 90%);\n padding: var(--office-space-6);\n border-radius: var(--office-radius-lg);\n background: var(--office-background);\n box-shadow: var(--office-shadow-teams);\n}\n.welcome h1 {\n margin: 0;\n font-size: var(--office-font-size-xl);\n}\n.welcome p {\n margin: 0;\n color: var(--office-teams-text-subtle);\n}\n.welcome input {\n width: 100%;\n padding: var(--office-space-3);\n border: var(--office-border-width) solid var(--office-field-border);\n border-radius: var(--office-radius);\n background: var(--office-field-background);\n color: inherit;\n font: inherit;\n}\n.welcome button {\n width: 100%;\n padding: var(--office-space-3);\n border: 0;\n border-radius: var(--office-radius-md);\n background: var(--office-teams-brand);\n color: var(--office-teams-brand-foreground);\n font-weight: var(--office-font-weight-bold);\n}\n.toast {\n position: fixed;\n inset-block-end: var(--office-space-4);\n inset-inline-start: 50%;\n z-index: 10;\n transform: translateX(-50%);\n padding: var(--office-space-2) var(--office-space-4);\n border-radius: var(--office-radius-md);\n background: var(--office-call-background);\n color: var(--office-call-foreground);\n}\n\n.conversation-grid {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n flex: 1;\n min-height: 0;\n}\n.conversation-grid[data-thread='true'] {\n grid-template-columns: minmax(0, 1fr) minmax(18em, 0.8fr);\n}\n.conversation-main,\n.thread-pane {\n display: flex;\n flex-direction: column;\n min-height: 0;\n min-width: 0;\n}\n.tab-conversation teams-channel-tab {\n flex: 1;\n min-height: 0;\n}\n.thread-pane {\n border-inline-start: var(--office-border-width) solid var(--office-teams-divider);\n}\n.thread-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--office-space-3);\n padding: var(--office-space-3);\n}\n.thread-head h2 {\n margin: 0;\n font-size: 1em;\n}\n.followed-threads {\n overflow: auto;\n padding: var(--office-space-4);\n}\n.message-transfer {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--office-space-3);\n padding: var(--office-space-3);\n background: var(--office-teams-panel);\n border-block-end: var(--office-border-width) solid var(--office-teams-divider);\n}\n.message-transfer span {\n flex: 1;\n overflow-wrap: anywhere;\n}\n.message-transfer button {\n font: inherit;\n color: inherit;\n background: var(--office-background);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n padding: var(--office-space-2) var(--office-space-3);\n cursor: pointer;\n}\n.followed-threads ul {\n list-style: none;\n padding: 0;\n}\n.followed-threads fieldset {\n display: flex;\n flex-wrap: wrap;\n gap: var(--office-space-4);\n padding: var(--office-space-3);\n margin-block: var(--office-space-3);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n}\n.followed-threads li {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--office-space-3);\n padding-block: var(--office-space-3);\n border-block-end: var(--office-border-width) solid var(--office-teams-divider);\n}\n.followed-threads button {\n font: inherit;\n color: inherit;\n background: var(--office-background);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n padding: var(--office-space-2) var(--office-space-3);\n cursor: pointer;\n}\n.followed-threads button:hover {\n background: var(--office-selected);\n}\n.followed-threads li button:first-child {\n display: grid;\n gap: var(--office-space-2);\n flex: 1;\n text-align: start;\n min-width: 0;\n overflow-wrap: anywhere;\n border-color: transparent;\n}\n.followed-threads li[data-unread='true'] button:first-child span {\n font-weight: var(--office-font-weight-bold);\n}\n@media (max-width: 56em) {\n .conversation-grid[data-thread='true'] {\n grid-template-columns: minmax(0, 1fr);\n }\n .conversation-grid[data-thread='true'] .conversation-main {\n display: none;\n }\n}\n.tabs {\n overflow-x: auto;\n min-width: 0;\n flex: 1 1 16em;\n}\n\n.channel-head > .back {\n display: none;\n}\n\n/* ---- compact shell ---------------------------------------------------------------------- */\n/* Below 56em the app rail is a bottom bar, the channel list is its own full-screen view and the\n conversation (or any other content) fills the width with a back button to the list. */\n@media (max-width: 56em) {\n .brand {\n display: none;\n }\n .topbar {\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--office-space-2);\n }\n .search {\n width: 100%;\n }\n .channel-head {\n gap: var(--office-space-2);\n padding-inline: var(--office-space-3);\n }\n .channel-head > .back {\n display: inline-flex;\n border-color: transparent;\n }\n .channel-head .topic,\n .channel-head .people {\n display: none;\n }\n .channel-head .tabs {\n flex-basis: 100%;\n order: 1;\n }\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: minmax(0, 1fr) auto;\n }\n .body > office-ui-app-rail {\n grid-column: 1;\n grid-row: 2;\n }\n .body > .side,\n .body > .main,\n .body > teams-settings {\n grid-column: 1;\n grid-row: 1;\n }\n .side {\n border-inline-end: 0;\n }\n .shell[data-mobile-view='list'] .main,\n .shell[data-mobile-view='content'] .side {\n display: none;\n }\n}\n/* Phone landscape has little height: keep the chrome to one thin row each. */\n@media (max-width: 56em) and (max-height: 30em) {\n .topbar {\n padding-block: var(--office-space-1);\n }\n .channel-head {\n flex-wrap: nowrap;\n padding-block: var(--office-space-1);\n }\n .channel-head .tabs {\n flex: 1 1 0;\n order: 0;\n }\n .channel-head h1 {\n font-size: var(--office-font-size);\n }\n}\n/* Touch: every control in the shell reaches the minimum hit target. */\n@media (pointer: coarse) {\n .channel-head > button,\n .meet,\n .tabs button,\n .join,\n .thread-head button,\n .callbar button {\n min-width: var(--office-touch-target, 44px);\n min-height: var(--office-touch-target, 44px);\n }\n}\n\n/* An application host can own the single suite-level account control. */\n:host([host-profile]) teams-profile-menu {\n display: none;\n}\n\n/* ---- activity ---------------------------------------------------------------------------- */\n.side > office-ui-activity-feed {\n height: 100%;\n}\n/* Toasts for new activity stack at the top right, under the header, so they never cover the\n compose box; on phones they are full-width banners below the header. */\n.activity-toasts {\n position: fixed;\n inset-block-start: 8em;\n inset-inline-end: var(--office-space-4);\n z-index: 10;\n display: flex;\n flex-direction: column;\n gap: var(--office-space-2);\n width: min(28em, calc(100% - var(--office-space-5)));\n pointer-events: none;\n}\n.activity-toast {\n display: flex;\n align-items: center;\n gap: var(--office-space-3);\n padding: var(--office-space-2) var(--office-space-3) var(--office-space-2) var(--office-space-4);\n border-radius: var(--office-radius-md);\n background: var(--office-call-background);\n color: var(--office-call-foreground);\n box-shadow: var(--office-shadow-teams);\n pointer-events: auto;\n}\n@media (max-width: 40em) {\n .activity-toasts {\n inset-block-start: 4.6em;\n inset-inline: var(--office-space-2);\n width: auto;\n }\n}\n.activity-toast .toast-text {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-width: 0;\n}\n.activity-toast .toast-text > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.activity-toast .toast-preview {\n opacity: 0.8;\n font-size: var(--office-font-size-sm);\n}\n.activity-toast button {\n flex: none;\n padding: var(--office-space-1) var(--office-space-3);\n border: 0;\n border-radius: var(--office-radius);\n background: transparent;\n color: inherit;\n font-weight: var(--office-font-weight-bold);\n}\n.activity-toast button:hover {\n background: var(--office-selected);\n}\n.activity-toast button svg {\n width: 1em;\n height: 1em;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n@media (pointer: coarse) {\n .activity-toast button {\n min-width: var(--office-touch-target, 44px);\n min-height: var(--office-touch-target, 44px);\n }\n}\n\n/* ---- chat and calendar ------------------------------------------------------------------ */\n.calendar-back svg,\n.show-calendar svg,\n.group-mark svg,\n.chat-head .chat-people svg {\n width: 1.25em;\n height: 1.25em;\n flex: none;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.chat-head office-ui-avatar {\n flex: none;\n}\n.group-mark {\n display: grid;\n flex: none;\n place-items: center;\n width: 2.3em;\n height: 2.3em;\n border-radius: var(--office-radius-full);\n background: var(--office-teams-bubble);\n color: var(--office-teams-brand);\n}\n.chat-head .chat-people {\n display: inline-flex;\n align-items: center;\n gap: var(--office-space-2);\n}\n.empty-main {\n display: grid;\n flex: 1;\n place-content: center;\n justify-items: center;\n gap: var(--office-space-3);\n padding: var(--office-space-6);\n color: var(--office-teams-text-subtle);\n text-align: center;\n}\n.empty-main button {\n padding: var(--office-space-2) var(--office-space-4);\n border: 0;\n border-radius: var(--office-radius-md);\n background: var(--office-teams-brand);\n color: var(--office-teams-brand-foreground);\n font: inherit;\n}\n.main > office-ui-calendar-view {\n flex: 1;\n min-height: 0;\n}\n.calendar-back {\n display: none;\n}\n@media (max-width: 56em) {\n .calendar-back {\n display: flex;\n align-items: center;\n gap: var(--office-space-2);\n padding: var(--office-space-2) var(--office-space-3);\n border-block-end: var(--office-border-width) solid var(--office-teams-divider);\n }\n .calendar-back button {\n display: inline-flex;\n align-items: center;\n gap: var(--office-space-2);\n min-height: var(--office-touch-target, 44px);\n padding: var(--office-space-2) var(--office-space-3);\n border: 0;\n border-radius: var(--office-radius-md);\n background: transparent;\n }\n .chat-head .chat-people {\n min-width: var(--office-touch-target, 44px);\n }\n}\n.show-calendar {\n display: none;\n}\n@media (max-width: 56em) {\n .show-calendar {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--office-space-2);\n width: calc(100% - 2 * var(--office-space-4));\n min-height: var(--office-touch-target, 44px);\n margin: var(--office-space-3) var(--office-space-4);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n background: var(--office-background);\n }\n}\n";
3585
+ var teams_app_default = "/* <teams-app>: the shell. Colours, spacing and radii come from the ooxml-ui tokens, so a host\n retheme or dark mode reaches the whole app. The elements inside bring their own styles. */\n:host {\n display: block;\n height: 100%;\n min-height: 28em;\n font: var(--office-font-size) var(--office-font);\n color: var(--office-foreground);\n background: var(--office-background);\n}\n:host([data-office-theme='dark']) {\n --office-background: var(--office-teams-panel);\n --office-surface: var(--office-teams-bubble);\n --office-popover: var(--office-teams-panel);\n}\n:host([data-chat-density='compact']) {\n --office-teams-message-gap: var(--office-space-1);\n --office-teams-message-padding: var(--office-space-1) var(--office-space-2);\n}\n@media (prefers-color-scheme: dark) {\n :host(:not([data-office-theme='light'])) {\n --office-background: var(--office-teams-panel);\n --office-surface: var(--office-teams-bubble);\n --office-popover: var(--office-teams-panel);\n }\n}\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\nbutton {\n font: inherit;\n color: inherit;\n cursor: pointer;\n}\n:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: var(--office-focus-offset);\n}\n\n.shell {\n display: grid;\n grid-template-rows: auto minmax(0, 1fr);\n height: 100%;\n}\n\n/* ---- top bar ---------------------------------------------------------------------------- */\n.topbar {\n display: grid;\n grid-template-columns: 16em minmax(0, 1fr) auto;\n align-items: center;\n gap: var(--office-space-4);\n padding: var(--office-space-2) var(--office-space-4);\n background: var(--office-teams-rail);\n border-bottom: var(--office-border-width) solid var(--office-teams-divider);\n}\n.brand {\n display: flex;\n align-items: center;\n gap: var(--office-space-2);\n font-size: var(--office-font-size-lg);\n font-weight: var(--office-font-weight-bold);\n}\n.logo {\n display: inline-grid;\n place-items: center;\n width: 1.8em;\n height: 1.8em;\n border-radius: var(--office-radius-md);\n background: var(--office-teams-brand);\n color: var(--office-teams-brand-foreground);\n font-size: 0.85em;\n}\n.search {\n position: relative;\n justify-self: center;\n width: min(34em, 100%);\n}\n.search input {\n width: 100%;\n padding: var(--office-space-2) var(--office-space-4);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-full);\n background: var(--office-background);\n color: inherit;\n font: inherit;\n}\n.results {\n position: absolute;\n inset-inline: 0;\n inset-block-start: calc(100% + var(--office-space-1));\n z-index: 5;\n max-height: 22em;\n margin: 0;\n padding: var(--office-space-1);\n overflow: auto;\n list-style: none;\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n background: var(--office-popover);\n box-shadow: var(--office-shadow-teams);\n}\n.results button {\n display: grid;\n width: 100%;\n padding: var(--office-space-2) var(--office-space-3);\n border: 0;\n border-radius: var(--office-radius);\n background: transparent;\n text-align: start;\n}\n.results button:hover {\n background: var(--office-selected);\n}\n.results .in,\n.results .none {\n color: var(--office-teams-text-subtle);\n font-size: var(--office-font-size-sm);\n}\n.results .none {\n padding: var(--office-space-3);\n}\n.snippet {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.me {\n display: flex;\n align-items: center;\n gap: var(--office-space-3);\n}\n.me office-ui-menu-button::part(caret) {\n display: none;\n}\n.channel-head office-ui-menu-button::part(caret) {\n display: none;\n}\n.channel-head svg {\n width: 1em;\n height: 1em;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n\n/* ---- body ------------------------------------------------------------------------------- */\n.body {\n display: grid;\n grid-template-columns: auto 19em minmax(0, 1fr);\n min-height: 0;\n grid-template-rows: minmax(0, 1fr);\n}\n.body > office-ui-app-rail {\n grid-column: 1;\n grid-row: 1;\n}\n.body > .side {\n grid-column: 2;\n grid-row: 1;\n}\n.body > .main {\n grid-column: 3;\n grid-row: 1;\n}\n.body > teams-settings {\n grid-column: 2 / -1;\n grid-row: 1;\n min-width: 0;\n min-height: 0;\n z-index: 1;\n}\n.body > teams-settings:not([open]) {\n display: none;\n}\n.body > [inert] {\n visibility: hidden;\n}\n.side {\n min-height: 0;\n overflow: auto;\n background: var(--office-teams-panel);\n border-inline-end: var(--office-border-width) solid var(--office-teams-divider);\n}\n.side h2 {\n margin: 0;\n padding: var(--office-space-3) var(--office-space-4);\n font-size: var(--office-font-size-lg);\n}\n.main {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n}\n.popout-view {\n display: flex;\n height: 100%;\n min-height: 0;\n}\n.popout-view teams-content-preview {\n flex: 1;\n}\n.main office-ui-chat-list,\n.main office-ui-prejoin {\n flex: 1;\n}\n\nul.plain {\n margin: 0;\n padding: 0 var(--office-space-3);\n list-style: none;\n}\nul.plain li {\n display: flex;\n align-items: center;\n gap: var(--office-space-2);\n padding: var(--office-space-2) var(--office-space-2);\n}\nul.plain li > :first-child:not(office-ui-avatar) {\n flex: 1;\n}\n.hint {\n padding: 0 var(--office-space-4);\n color: var(--office-teams-text-subtle);\n}\n.join {\n padding: var(--office-space-1) var(--office-space-3);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n background: var(--office-background);\n}\n.join.live {\n border-color: transparent;\n background: var(--office-call-live);\n color: var(--office-call-foreground);\n}\n\n/* ---- conversation ----------------------------------------------------------------------- */\n.channel-head {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--office-space-4);\n padding: var(--office-space-2) var(--office-space-5);\n border-bottom: var(--office-border-width) solid var(--office-teams-divider);\n}\n.channel-head > button:not(.meet),\n.thread-head button {\n padding: var(--office-space-2) var(--office-space-3);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n background: var(--office-background);\n}\n.channel-head > button:hover:not(:disabled),\n.thread-head button:hover {\n background: var(--office-selected);\n}\n.channel-head > button:disabled {\n opacity: 0.5;\n cursor: default;\n}\n.channel-head h1 {\n margin: 0;\n font-size: var(--office-font-size-lg);\n white-space: nowrap;\n}\n.hash {\n color: var(--office-teams-text-subtle);\n}\n.tabs {\n display: flex;\n gap: var(--office-space-1);\n}\n.tabs button {\n padding: var(--office-space-2) var(--office-space-3);\n border: 0;\n border-bottom: var(--office-border-width-thick) solid transparent;\n background: transparent;\n}\n.tabs button[aria-selected='true'] {\n border-bottom-color: var(--office-teams-brand);\n font-weight: var(--office-font-weight-bold);\n}\n.topic {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--office-teams-text-subtle);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.people {\n display: flex;\n align-items: center;\n gap: var(--office-space-0);\n}\n.more {\n margin-inline-start: var(--office-space-1);\n color: var(--office-teams-text-subtle);\n font-size: var(--office-font-size-sm);\n}\n.meet {\n padding: var(--office-space-2) var(--office-space-4);\n border: 0;\n border-radius: var(--office-radius-md);\n background: var(--office-teams-brand);\n color: var(--office-teams-brand-foreground);\n font-weight: var(--office-font-weight-bold);\n}\n.meet:hover:not(:disabled) {\n background: var(--office-teams-brand-hover);\n}\n.meet:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.callbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--office-space-2) var(--office-space-5);\n background: var(--office-call-live);\n color: var(--office-call-foreground);\n}\n.callbar button {\n padding: 0 var(--office-space-3);\n border: var(--office-border-width) solid currentColor;\n border-radius: var(--office-radius);\n background: transparent;\n}\n\n/* ---- files ------------------------------------------------------------------------------ */\n/* ---- meeting ---------------------------------------------------------------------------- */\n.meeting {\n display: grid;\n grid-template-rows: auto minmax(0, 1fr);\n height: 100%;\n background: var(--office-call-background);\n}\n.stage {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n min-height: 0;\n}\n.panel {\n display: flex;\n flex-direction: column;\n width: 22em;\n min-height: 0;\n background: var(--office-background);\n border-inline-start: var(--office-border-width) solid var(--office-teams-divider);\n}\n.panel office-ui-chat-list {\n flex: 1;\n padding-inline: var(--office-space-3);\n}\n.panel office-ui-chat-composer {\n padding-inline: var(--office-space-3);\n}\n.people-panel h2 {\n margin: 0;\n padding: var(--office-space-3) var(--office-space-4);\n font-size: var(--office-font-size-lg);\n}\n\n/* ---- welcome and toast ------------------------------------------------------------------ */\n.welcome {\n display: grid;\n place-items: center;\n height: 100%;\n background: var(--office-teams-panel);\n}\n.welcome form {\n display: grid;\n justify-items: center;\n gap: var(--office-space-3);\n width: min(24em, 90%);\n padding: var(--office-space-6);\n border-radius: var(--office-radius-lg);\n background: var(--office-background);\n box-shadow: var(--office-shadow-teams);\n}\n.welcome h1 {\n margin: 0;\n font-size: var(--office-font-size-xl);\n}\n.welcome p {\n margin: 0;\n color: var(--office-teams-text-subtle);\n}\n.welcome input {\n width: 100%;\n padding: var(--office-space-3);\n border: var(--office-border-width) solid var(--office-field-border);\n border-radius: var(--office-radius);\n background: var(--office-field-background);\n color: inherit;\n font: inherit;\n}\n.welcome button {\n width: 100%;\n padding: var(--office-space-3);\n border: 0;\n border-radius: var(--office-radius-md);\n background: var(--office-teams-brand);\n color: var(--office-teams-brand-foreground);\n font-weight: var(--office-font-weight-bold);\n}\n.toast {\n position: fixed;\n inset-block-end: var(--office-space-4);\n inset-inline-start: 50%;\n z-index: 10;\n transform: translateX(-50%);\n padding: var(--office-space-2) var(--office-space-4);\n border-radius: var(--office-radius-md);\n background: var(--office-call-background);\n color: var(--office-call-foreground);\n}\n\n.conversation-grid {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n flex: 1;\n min-height: 0;\n}\n.conversation-grid[data-thread='true'] {\n grid-template-columns: minmax(0, 1fr) minmax(18em, 0.8fr);\n}\n.conversation-main,\n.thread-pane {\n display: flex;\n flex-direction: column;\n min-height: 0;\n min-width: 0;\n}\n.tab-conversation teams-channel-tab {\n flex: 1;\n min-height: 0;\n}\n.thread-pane {\n border-inline-start: var(--office-border-width) solid var(--office-teams-divider);\n}\n.thread-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--office-space-3);\n padding: var(--office-space-3);\n}\n.thread-head h2 {\n margin: 0;\n font-size: 1em;\n}\n.followed-threads {\n overflow: auto;\n padding: var(--office-space-4);\n}\n.message-transfer {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--office-space-3);\n padding: var(--office-space-3);\n background: var(--office-teams-panel);\n border-block-end: var(--office-border-width) solid var(--office-teams-divider);\n}\n.message-transfer span {\n flex: 1;\n overflow-wrap: anywhere;\n}\n.message-transfer button {\n font: inherit;\n color: inherit;\n background: var(--office-background);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n padding: var(--office-space-2) var(--office-space-3);\n cursor: pointer;\n}\n.followed-threads ul {\n list-style: none;\n padding: 0;\n}\n.followed-threads fieldset {\n display: flex;\n flex-wrap: wrap;\n gap: var(--office-space-4);\n padding: var(--office-space-3);\n margin-block: var(--office-space-3);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n}\n.followed-threads li {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--office-space-3);\n padding-block: var(--office-space-3);\n border-block-end: var(--office-border-width) solid var(--office-teams-divider);\n}\n.followed-threads button {\n font: inherit;\n color: inherit;\n background: var(--office-background);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n padding: var(--office-space-2) var(--office-space-3);\n cursor: pointer;\n}\n.followed-threads button:hover {\n background: var(--office-selected);\n}\n.followed-threads li button:first-child {\n display: grid;\n gap: var(--office-space-2);\n flex: 1;\n text-align: start;\n min-width: 0;\n overflow-wrap: anywhere;\n border-color: transparent;\n}\n.followed-threads li[data-unread='true'] button:first-child span {\n font-weight: var(--office-font-weight-bold);\n}\n@media (max-width: 56em) {\n .conversation-grid[data-thread='true'] {\n grid-template-columns: minmax(0, 1fr);\n }\n .conversation-grid[data-thread='true'] .conversation-main {\n display: none;\n }\n}\n.tabs {\n overflow-x: auto;\n min-width: 0;\n flex: 1 1 16em;\n}\n\n.channel-head > .back {\n display: none;\n}\n\n/* ---- compact shell ---------------------------------------------------------------------- */\n/* Below 56em the app rail is a bottom bar, the channel list is its own full-screen view and the\n conversation (or any other content) fills the width with a back button to the list. */\n@media (max-width: 56em) {\n .brand {\n display: none;\n }\n .topbar {\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--office-space-2);\n }\n .search {\n width: 100%;\n }\n .channel-head {\n gap: var(--office-space-2);\n padding-inline: var(--office-space-3);\n }\n .channel-head > .back {\n display: inline-flex;\n border-color: transparent;\n }\n .channel-head .topic,\n .channel-head .people {\n display: none;\n }\n .channel-head .tabs {\n flex-basis: 100%;\n order: 1;\n }\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: minmax(0, 1fr) auto;\n }\n .body > office-ui-app-rail {\n grid-column: 1;\n grid-row: 2;\n }\n .body > .side,\n .body > .main,\n .body > teams-settings {\n grid-column: 1;\n grid-row: 1;\n }\n .side {\n border-inline-end: 0;\n }\n .shell[data-mobile-view='list'] .main,\n .shell[data-mobile-view='content'] .side {\n display: none;\n }\n}\n/* Phone landscape has little height: keep the chrome to one thin row each. */\n@media (max-width: 56em) and (max-height: 30em) {\n .topbar {\n padding-block: var(--office-space-1);\n }\n .channel-head {\n flex-wrap: nowrap;\n padding-block: var(--office-space-1);\n }\n .channel-head .tabs {\n flex: 1 1 0;\n order: 0;\n }\n .channel-head h1 {\n font-size: var(--office-font-size);\n }\n}\n/* Touch: every control in the shell reaches the minimum hit target. */\n@media (pointer: coarse) {\n .channel-head > button,\n .meet,\n .tabs button,\n .join,\n .thread-head button,\n .callbar button {\n min-width: var(--office-touch-target, 44px);\n min-height: var(--office-touch-target, 44px);\n }\n}\n\n/* An application host can own the single suite-level account control. */\n:host([host-profile]) teams-profile-menu {\n display: none;\n}\n\n/* ---- activity ---------------------------------------------------------------------------- */\n.side > office-ui-activity-feed {\n height: 100%;\n}\n/* Toasts for new activity stack at the top right, under the header, so they never cover the\n compose box; on phones they are full-width banners below the header. */\n.activity-toasts {\n position: fixed;\n inset-block-start: 8em;\n inset-inline-end: var(--office-space-4);\n z-index: 10;\n display: flex;\n flex-direction: column;\n gap: var(--office-space-2);\n width: min(28em, calc(100% - var(--office-space-5)));\n pointer-events: none;\n}\n.activity-toast {\n display: flex;\n align-items: center;\n gap: var(--office-space-3);\n padding: var(--office-space-2) var(--office-space-3) var(--office-space-2) var(--office-space-4);\n border-radius: var(--office-radius-md);\n background: var(--office-call-background);\n color: var(--office-call-foreground);\n box-shadow: var(--office-shadow-teams);\n pointer-events: auto;\n}\n@media (max-width: 40em) {\n .activity-toasts {\n inset-block-start: 4.6em;\n inset-inline: var(--office-space-2);\n width: auto;\n }\n}\n.activity-toast .toast-text {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-width: 0;\n}\n.activity-toast .toast-text > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.activity-toast .toast-preview {\n opacity: 0.8;\n font-size: var(--office-font-size-sm);\n}\n.activity-toast button {\n flex: none;\n padding: var(--office-space-1) var(--office-space-3);\n border: 0;\n border-radius: var(--office-radius);\n background: transparent;\n color: inherit;\n font-weight: var(--office-font-weight-bold);\n}\n.activity-toast button:hover {\n background: var(--office-selected);\n}\n.activity-toast button svg {\n width: 1em;\n height: 1em;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n@media (pointer: coarse) {\n .activity-toast button {\n min-width: var(--office-touch-target, 44px);\n min-height: var(--office-touch-target, 44px);\n }\n}\n\n/* ---- chat and calendar ------------------------------------------------------------------ */\n.calendar-back svg,\n.show-calendar svg,\n.group-mark svg,\n.chat-head .chat-people svg {\n width: 1.25em;\n height: 1.25em;\n flex: none;\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.chat-head office-ui-avatar {\n flex: none;\n}\n.group-mark {\n display: grid;\n flex: none;\n place-items: center;\n width: 2.3em;\n height: 2.3em;\n border-radius: var(--office-radius-full);\n background: var(--office-teams-bubble);\n color: var(--office-teams-brand);\n}\n.chat-head .chat-people {\n display: inline-flex;\n align-items: center;\n gap: var(--office-space-2);\n}\n.empty-main {\n display: grid;\n flex: 1;\n place-content: center;\n justify-items: center;\n gap: var(--office-space-3);\n padding: var(--office-space-6);\n color: var(--office-teams-text-subtle);\n text-align: center;\n}\n.empty-main button {\n padding: var(--office-space-2) var(--office-space-4);\n border: 0;\n border-radius: var(--office-radius-md);\n background: var(--office-teams-brand);\n color: var(--office-teams-brand-foreground);\n font: inherit;\n}\n.main > office-ui-calendar-view {\n flex: 1;\n min-height: 0;\n}\n.calendar-back {\n display: none;\n}\n@media (max-width: 56em) {\n .calendar-back {\n display: flex;\n align-items: center;\n gap: var(--office-space-2);\n padding: var(--office-space-2) var(--office-space-3);\n border-block-end: var(--office-border-width) solid var(--office-teams-divider);\n }\n .calendar-back button {\n display: inline-flex;\n align-items: center;\n gap: var(--office-space-2);\n min-height: var(--office-touch-target, 44px);\n padding: var(--office-space-2) var(--office-space-3);\n border: 0;\n border-radius: var(--office-radius-md);\n background: transparent;\n }\n .chat-head .chat-people {\n min-width: var(--office-touch-target, 44px);\n }\n}\n.show-calendar {\n display: none;\n}\n@media (max-width: 56em) {\n .show-calendar {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--office-space-2);\n width: calc(100% - 2 * var(--office-space-4));\n min-height: var(--office-touch-target, 44px);\n margin: var(--office-space-3) var(--office-space-4);\n border: var(--office-border-width) solid var(--office-teams-divider);\n border-radius: var(--office-radius-md);\n background: var(--office-background);\n }\n}\n\n.shell:has(> .schema-banner) {\n grid-template-rows: auto auto minmax(0, 1fr);\n}\n/* The workspace was written by a newer release: read-only, with the reason always visible. */\n.schema-banner {\n padding: var(--office-space-2) var(--office-space-4);\n border-block-end: var(--office-border-width) solid var(--office-teams-divider);\n background: var(--office-teams-panel);\n color: var(--office-foreground);\n font-size: var(--office-font-size-sm);\n}\n";
3576
3586
  function threadPane(state, client, openFile, close, highlightId = "", i18n = teamsI18n()) {
3577
3587
  const thread = state.thread;
3578
3588
  if (!thread) return nothing;
@@ -3592,13 +3602,14 @@ function threadPane(state, client, openFile, close, highlightId = "", i18n = tea
3592
3602
  .messages=${[thread.root, ...thread.replies]}
3593
3603
  .pinnedIds=${state.pinned.map((p) => p.message.id)}
3594
3604
  self-id=${state.user.id}
3605
+ ?moderator=${state.moderator}
3595
3606
  .highlightId=${highlightId}
3596
3607
  @office-chat-pin=${(e) => client.pinMessage(e.detail.messageId)}
3597
3608
  @office-chat-unpin=${(e) => client.unpinMessage(e.detail.messageId)}
3598
3609
  @office-chat-react=${(e) => client.toggleReaction(e.detail.messageId, e.detail.emoji)}
3599
3610
  @office-chat-reply=${(e) => client.startReply(e.detail.messageId)}
3600
3611
  @office-chat-edit=${(e) => client.startEdit(e.detail.messageId)}
3601
- @office-chat-delete=${(e) => globalThis.confirm?.(t("chat.confirmDelete")) !== false && client.deleteMessage(e.detail.messageId)}
3612
+ @office-chat-delete=${(e) => globalThis.confirm?.(t(e.detail.moderation ? "chat.confirmHide" : "chat.confirmDelete")) !== false && client.deleteMessage(e.detail.messageId)}
3602
3613
  @office-chat-open-file=${(e) => openFile(e.detail.attachment)}
3603
3614
  ></office-ui-chat-list>
3604
3615
  <office-ui-chat-composer
@@ -4941,6 +4952,7 @@ var TeamsChatPeopleDialog = class extends TeamsDialog {
4941
4952
  ...TeamsDialog.properties,
4942
4953
  chat: { attribute: false },
4943
4954
  contacts: { attribute: false },
4955
+ moderator: { type: Boolean },
4944
4956
  name: { state: true },
4945
4957
  adding: { state: true }
4946
4958
  };
@@ -4948,6 +4960,7 @@ var TeamsChatPeopleDialog = class extends TeamsDialog {
4948
4960
  super();
4949
4961
  this.chat = null;
4950
4962
  this.contacts = [];
4963
+ this.moderator = false;
4951
4964
  this.name = "";
4952
4965
  this.adding = [];
4953
4966
  }
@@ -4993,7 +5006,7 @@ var TeamsChatPeopleDialog = class extends TeamsDialog {
4993
5006
  <span class="name"
4994
5007
  >${m.self ? this.t("common.nameYou", { name: m.name }) : m.name}</span
4995
5008
  >
4996
- ${group && !m.self && chat.members.length > 1 ? html`<button
5009
+ ${group && !m.self && this.moderator && chat.members.length > 1 ? html`<button
4997
5010
  type="button"
4998
5011
  aria-label=${this.t("people.remove", { name: m.name })}
4999
5012
  @click=${() => this.fire("teams-chat-remove", { id: chat.id, userId: m.id })}
@@ -5792,6 +5805,7 @@ var TeamsApp = class extends TeamsLitElement {
5792
5805
  workspaceId,
5793
5806
  user: named,
5794
5807
  config: this.signIn.apply(base),
5808
+ moderator: account?.role === "moderator",
5795
5809
  storage: safeStorage,
5796
5810
  ...this.uploadFile ? { uploadFile: this.uploadFile } : {}
5797
5811
  });
@@ -5912,6 +5926,7 @@ var TeamsApp = class extends TeamsLitElement {
5912
5926
  super.disconnectedCallback();
5913
5927
  }
5914
5928
  createChannel() {
5929
+ if (this.teams.state && this.isLocked(this.teams.state)) return;
5915
5930
  this.creatingChannel = true;
5916
5931
  }
5917
5932
  commitChannel(name, description, client) {
@@ -6009,7 +6024,7 @@ var TeamsApp = class extends TeamsLitElement {
6009
6024
  else this.notify(this.t("app.tabGone"));
6010
6025
  }}
6011
6026
  >
6012
- ${this.topbar(s)}
6027
+ ${this.topbar(s)} ${this.schemaBanner(s)}
6013
6028
  <div class="body">
6014
6029
  <office-ui-app-rail
6015
6030
  .hideLabels=${!this.showAppNames}
@@ -6158,6 +6173,15 @@ var TeamsApp = class extends TeamsLitElement {
6158
6173
  </div>
6159
6174
  `;
6160
6175
  }
6176
+ /** A workspace written by a newer release is read-only here: say why instead of failing quietly. */
6177
+ isLocked(s) {
6178
+ return s.schema.state === "unsupported-schema";
6179
+ }
6180
+ schemaBanner(s) {
6181
+ return this.isLocked(s) ? html`<div class="schema-banner" role="alert" data-schema-banner>
6182
+ ${this.t("app.schemaTooNew")}
6183
+ </div>` : nothing;
6184
+ }
6161
6185
  topbar(s) {
6162
6186
  return html`
6163
6187
  <header class="topbar">
@@ -6265,7 +6289,7 @@ var TeamsApp = class extends TeamsLitElement {
6265
6289
  .chats=${s.chats}
6266
6290
  selected-id=${s.selectedChannelId}
6267
6291
  @office-chat-select=${(e) => this.selectChannel(e.detail.id)}
6268
- @office-chat-new=${() => this.newChat = true}
6292
+ @office-chat-new=${() => this.newChat = !this.isLocked(s)}
6269
6293
  ></office-ui-chat-sidebar>`;
6270
6294
  if (this.rail === "calendar")
6271
6295
  return html`<office-ui-calendar-agenda
@@ -6375,6 +6399,7 @@ var TeamsApp = class extends TeamsLitElement {
6375
6399
  const channel = s.channel;
6376
6400
  const chat = s.chats.find((x) => x.id === s.selectedChannelId);
6377
6401
  const c = this.teams.client;
6402
+ const w = this.isLocked(s) ? null : c;
6378
6403
  const compose = s.editing ?? s.replyingTo;
6379
6404
  const sharedTab = s.tabs.find((t) => t.id === this.tab);
6380
6405
  if (sharedTab) this.retainedTab = sharedTab;
@@ -6417,7 +6442,7 @@ var TeamsApp = class extends TeamsLitElement {
6417
6442
  aria-label=${this.t("app.addTab")}
6418
6443
  title=${this.t("app.addTab")}
6419
6444
  ?disabled=${!channel}
6420
- @click=${() => this.addingTab = !this.addingTab}
6445
+ @click=${() => this.addingTab = !this.addingTab && !this.isLocked(s)}
6421
6446
  >
6422
6447
  +
6423
6448
  </button>
@@ -6443,7 +6468,7 @@ var TeamsApp = class extends TeamsLitElement {
6443
6468
  >
6444
6469
  ${icon("chat")}
6445
6470
  </button>` : nothing}
6446
- ${sharedTab?.createdBy === s.user.id ? html`<office-ui-menu-button
6471
+ ${sharedTab && (sharedTab.createdBy === s.user.id || s.moderator) ? html`<office-ui-menu-button
6447
6472
  label=${this.t("app.tabOptions")}
6448
6473
  icon="more"
6449
6474
  icon-only
@@ -6471,6 +6496,32 @@ var TeamsApp = class extends TeamsLitElement {
6471
6496
  command="remove-tab"
6472
6497
  ></office-ui-menu-item
6473
6498
  ></office-ui-menu-button>` : nothing}
6499
+ ${channel && channel.kind === "channel" && (channel.createdBy === s.user.id || s.moderator) ? html`<office-ui-menu-button
6500
+ data-channel-options
6501
+ label=${this.t("app.channelOptions")}
6502
+ icon="more"
6503
+ icon-only
6504
+ @office-command=${(event) => {
6505
+ if (event.detail.command === "rename-channel") {
6506
+ const name = globalThis.prompt?.(this.t("app.channelNamePrompt"), channel.name)?.trim();
6507
+ if (name) c?.renameChannel(channel.id, name);
6508
+ } else if (event.detail.command === "archive-channel") {
6509
+ if (!this.canLeaveContent()) return;
6510
+ if (globalThis.confirm?.(
6511
+ this.t("app.confirmArchiveChannel", { name: channel.name })
6512
+ ) === true)
6513
+ c?.archiveChannel(channel.id);
6514
+ }
6515
+ }}
6516
+ ><office-ui-menu-item
6517
+ label=${this.t("app.renameChannel")}
6518
+ command="rename-channel"
6519
+ ></office-ui-menu-item
6520
+ ><office-ui-menu-item
6521
+ label=${this.t("app.archiveChannel")}
6522
+ command="archive-channel"
6523
+ ></office-ui-menu-item
6524
+ ></office-ui-menu-button>` : nothing}
6474
6525
  <span class="topic">${channel?.topic ?? ""}</span>
6475
6526
  <div class="people" aria-label=${this.t("app.peopleOnline")}>
6476
6527
  ${s.people.slice(0, 5).map((p) => html`<office-ui-avatar size="sm" name=${p.name} seed=${p.id} color=${p.color} presence=${p.availability}></office-ui-avatar>`)}
@@ -6513,23 +6564,24 @@ var TeamsApp = class extends TeamsLitElement {
6513
6564
  ${compact || s.pinned.length === 0 ? nothing : html`<teams-pinned-bar
6514
6565
  .pinned=${s.pinned}
6515
6566
  @teams-pinned-open=${(e) => void this.revealMessage(e.detail.messageId)}
6516
- @teams-pinned-unpin=${(e) => c?.unpinMessage(e.detail.messageId)}
6567
+ @teams-pinned-unpin=${(e) => w?.unpinMessage(e.detail.messageId)}
6517
6568
  ></teams-pinned-bar>`}
6518
6569
  <office-ui-chat-list
6519
6570
  .messages=${compact ? s.messages : s.posts}
6520
6571
  .replyCounts=${compact ? {} : s.replyCounts}
6521
6572
  .pinnedIds=${s.pinned.map((p) => p.message.id)}
6522
6573
  self-id=${s.user.id}
6574
+ ?moderator=${s.moderator}
6523
6575
  .highlightId=${this.highlightId}
6524
6576
  .meetings=${meetingCards(s.meetings, Date.now())}
6525
6577
  @office-chat-meeting=${(e) => e.detail.action === "join" ? void this.joinMeeting(e.detail.meetingId) : this.openMeeting(e.detail.meetingId)}
6526
- @office-chat-pin=${(e) => c?.pinMessage(e.detail.messageId)}
6527
- @office-chat-unpin=${(e) => c?.unpinMessage(e.detail.messageId)}
6528
- @office-chat-react=${(e) => c?.toggleReaction(e.detail.messageId, e.detail.emoji)}
6578
+ @office-chat-pin=${(e) => w?.pinMessage(e.detail.messageId)}
6579
+ @office-chat-unpin=${(e) => w?.unpinMessage(e.detail.messageId)}
6580
+ @office-chat-react=${(e) => w?.toggleReaction(e.detail.messageId, e.detail.emoji)}
6529
6581
  @office-chat-thread=${(e) => void this.openThread(e.detail.messageId)}
6530
- @office-chat-reply=${(e) => compact ? c?.startReply(e.detail.messageId) : void this.openThread(e.detail.messageId, "reply")}
6531
- @office-chat-edit=${(e) => compact ? c?.startEdit(e.detail.messageId) : void this.openThread(e.detail.messageId, "edit")}
6532
- @office-chat-delete=${(e) => globalThis.confirm?.(this.t("chat.confirmDelete")) !== false && c?.deleteMessage(e.detail.messageId)}
6582
+ @office-chat-reply=${(e) => compact ? w?.startReply(e.detail.messageId) : w ? void this.openThread(e.detail.messageId, "reply") : void 0}
6583
+ @office-chat-edit=${(e) => compact ? w?.startEdit(e.detail.messageId) : w ? void this.openThread(e.detail.messageId, "edit") : void 0}
6584
+ @office-chat-delete=${(e) => globalThis.confirm?.(this.t(e.detail.moderation ? "chat.confirmHide" : "chat.confirmDelete")) !== false && w?.deleteMessage(e.detail.messageId)}
6533
6585
  @office-chat-open-file=${(e) => this.openFile(e.detail.attachment)}
6534
6586
  ></office-ui-chat-list>
6535
6587
  ${s.thread && !compact ? nothing : html`<office-ui-chat-composer
@@ -6541,7 +6593,7 @@ var TeamsApp = class extends TeamsLitElement {
6541
6593
  .missingFiles=${s.draft.missingFiles}
6542
6594
  .mentionTargets=${s.mentionTargets}
6543
6595
  @office-chat-draft=${(e) => c?.setDraft(e.detail)}
6544
- ?disabled=${!channel}
6596
+ ?disabled=${!channel || !w}
6545
6597
  placeholder=${chat ? this.t("app.messageTo", { name: chat.title }) : channel ? this.t("app.messageTo", { name: `# ${channel.name}` }) : this.t("app.createChannelFirst")}
6546
6598
  @office-chat-typing=${() => c?.notifyTyping()}
6547
6599
  @office-chat-cancel=${() => c?.cancelCompose()}
@@ -6656,6 +6708,7 @@ var TeamsApp = class extends TeamsLitElement {
6656
6708
  ?open=${this.chatPeople && chat !== null}
6657
6709
  .chat=${chat}
6658
6710
  .contacts=${s.contacts}
6711
+ ?moderator=${s.moderator}
6659
6712
  @teams-chat-rename=${(e) => c?.renameChat(e.detail.id, e.detail.name)}
6660
6713
  @teams-chat-add=${(e) => c?.addToChat(e.detail.id, e.detail.userIds)}
6661
6714
  @teams-chat-remove=${(e) => c?.removeFromChat(e.detail.id, e.detail.userId)}
@@ -9,6 +9,13 @@ export declare const DOCX_EDITOR_ATTRIBUTES: readonly ['locale', 'read-only', 'f
9
9
  export type DocxEditorAttribute = (typeof DOCX_EDITOR_ATTRIBUTES)[number];
10
10
  export declare const DEFAULT_FILE_NAME = "Document1.docx";
11
11
  export declare const DEFAULT_REVIEW_AUTHOR = "Author";
12
+ /**
13
+ * The last-modified stamp a save records: the host's `reviewAuthor` becomes `cp:lastModifiedBy`.
14
+ * The default name is a placeholder, not a person, so it never overwrites the package's own value.
15
+ */
16
+ export declare function modifiedStamp(reviewAuthor: string): {
17
+ author?: string;
18
+ };
12
19
  /** The element properties the attributes drive. */
13
20
  export interface AttributeProperties {
14
21
  locale: string;
@@ -8,7 +8,7 @@ import { type PageSetupHost } from './page-setup-dialog.js';
8
8
  import { type ZoomHost } from './zoom-dialog.js';
9
9
  import { type LineNumberHost } from './line-number-dialog.js';
10
10
  import { type ColumnsHost } from './columns-dialog.js';
11
- export type FormatDialogKind = 'font' | 'paragraph' | 'bookmark' | 'pageSetup' | 'caption' | 'crossReference' | 'zoom' | 'borders' | 'tableProperties' | 'lineNumbers' | 'textBox' | 'contentControl' | 'equation' | 'shapeText' | 'pageBorders' | 'watermark' | 'dropCap' | 'columns' | 'multilevelList' | 'tracking' | 'insertChart' | 'changeChartType' | 'chartData';
11
+ export type FormatDialogKind = 'font' | 'paragraph' | 'bookmark' | 'pageSetup' | 'caption' | 'crossReference' | 'zoom' | 'borders' | 'tableProperties' | 'splitCells' | 'lineNumbers' | 'textBox' | 'contentControl' | 'equation' | 'shapeText' | 'pageBorders' | 'watermark' | 'dropCap' | 'columns' | 'multilevelList' | 'tracking' | 'insertChart' | 'changeChartType' | 'chartData';
12
12
  export interface FormatDialogsHost {
13
13
  view(): EditorView | undefined;
14
14
  /** Header/footer edits use the main document's history; notes use their own. */
@@ -89,6 +89,10 @@ export declare const en: {
89
89
  readonly 'smartart.layout.basicPyramid': 'Basic Pyramid';
90
90
  readonly 'smartart.layout.invertedPyramid': 'Inverted Pyramid';
91
91
  readonly 'smartart.layout.basicFunnel': 'Funnel';
92
+ readonly 'Merge cells': 'Merge cells';
93
+ readonly 'Split cells': 'Split cells';
94
+ readonly 'Number of rows': 'Number of rows';
95
+ readonly 'Split the cell into this many columns and rows.': 'Split the cell into this many columns and rows.';
92
96
  readonly 'Change how document content is displayed on the screen.': string;
93
97
  readonly 'Page display options': string;
94
98
  readonly 'Formatting marks': string;
@@ -0,0 +1,10 @@
1
+ export declare const enSplitCells: {
2
+ readonly 'Merge cells': 'Merge cells';
3
+ readonly 'Split cells': 'Split cells';
4
+ readonly 'Number of rows': 'Number of rows';
5
+ readonly 'Split the cell into this many columns and rows.': 'Split the cell into this many columns and rows.';
6
+ };
7
+ export declare const frSplitCells: Record<"Merge cells" | "Number of rows" | "Split cells" | "Split the cell into this many columns and rows.", string>;
8
+ export declare const deSplitCells: Record<"Merge cells" | "Number of rows" | "Split cells" | "Split the cell into this many columns and rows.", string>;
9
+ export declare const esSplitCells: Record<"Merge cells" | "Number of rows" | "Split cells" | "Split the cell into this many columns and rows.", string>;
10
+ export declare const zhSplitCells: Record<"Merge cells" | "Number of rows" | "Split cells" | "Split the cell into this many columns and rows.", string>;
@@ -86,6 +86,10 @@ export declare const strings: {
86
86
  readonly 'smartart.layout.basicPyramid': 'Basic Pyramid';
87
87
  readonly 'smartart.layout.invertedPyramid': 'Inverted Pyramid';
88
88
  readonly 'smartart.layout.basicFunnel': 'Funnel';
89
+ readonly 'Merge cells': 'Merge cells';
90
+ readonly 'Split cells': 'Split cells';
91
+ readonly 'Number of rows': 'Number of rows';
92
+ readonly 'Split the cell into this many columns and rows.': 'Split the cell into this many columns and rows.';
89
93
  readonly 'Change how document content is displayed on the screen.': string;
90
94
  readonly 'Page display options': string;
91
95
  readonly 'Formatting marks': string;
@@ -75,6 +75,8 @@ declare const paths: {
75
75
  readonly columnLeft: 'M10 4h10v16H10z M15 4v16 M3 12h4 M5 10v4';
76
76
  readonly columnRight: 'M4 4h10v16H4z M9 4v16 M17 12h4 M19 10v4';
77
77
  readonly deleteColumn: 'M6 4h9v16H6z M10.5 4v16 M19 8v8';
78
+ readonly mergeCells: 'M4 5h16v14H4z M4 12h4 M16 12h4 M10 9l-3 3 3 3 M14 9l3 3-3 3';
79
+ readonly splitCell: 'M4 5h16v14H4z M12 5v14 M8 9l-3 3 3 3 M16 9l3 3-3 3';
78
80
  readonly deleteTable: 'M4 5h16v14H4z M4 10h16 M10 5v14 M14 13l5 5 M19 13l-5 5';
79
81
  readonly margins: 'M5 3h14v18H5z M8 6h8v12H8z';
80
82
  readonly orientation: 'M6 3h9l3 3v15H6z M12 9v6 M9 12h6';
@@ -0,0 +1,4 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ import type { FormatDialog } from './font-dialog.js';
3
+ /** The Split Cells dialog; OK splits the cell around the selection into the chosen grid. */
4
+ export declare function createSplitCellsDialog(viewOf: () => EditorView | undefined): FormatDialog;
@@ -1,6 +1,12 @@
1
1
  import type { EditorView } from 'prosemirror-view';
2
- export type TableCommand = 'rowBefore' | 'rowAfter' | 'deleteRow' | 'columnBefore' | 'columnAfter' | 'deleteColumn' | 'deleteTable';
2
+ import { type Split } from './table-restructure-commands.js';
3
+ export type TableCommand = 'rowBefore' | 'rowAfter' | 'deleteRow' | 'columnBefore' | 'columnAfter' | 'deleteColumn' | 'mergeCells' | 'splitCell' | 'deleteTable';
4
+ export declare function paragraphIdFactory(view: EditorView): () => string;
3
5
  /** Reports whether the current selection can receive the requested table edit. */
4
6
  export declare function canExecuteTableCommand(view: EditorView, action: TableCommand): boolean;
5
- /** Applies a structural command to the rectangular table containing the selection. */
6
- export declare function executeTableCommand(view: EditorView, action: TableCommand): boolean;
7
+ /**
8
+ * Applies a structural command to the table containing the selection: rows and columns of a
9
+ * rectangular table directly, merged and nested tables, and merge and split, through the
10
+ * merge-aware editor. `split` sizes Split Cells (it defaults to two columns).
11
+ */
12
+ export declare function executeTableCommand(view: EditorView, action: TableCommand, split?: Split): boolean;
@@ -15,3 +15,8 @@ export declare function convertSimpleTable(node: ProseMirrorNode, convertParagra
15
15
  * identity, leaving row/cell layout, merges and descriptive properties exactly as they were.
16
16
  */
17
17
  export declare function convertMergedTable(node: ProseMirrorNode, prior: Table, convertParagraph: (paragraph: ProseMirrorNode) => Paragraph): Table;
18
+ /**
19
+ * A merged or nested table back to the model: rebuilt from the node when its cells, merges or
20
+ * grid were edited, otherwise patched by cell identity so its structure stays as authored.
21
+ */
22
+ export declare function convertStructuredTable(node: ProseMirrorNode, prior: Table, convertParagraph: (paragraph: ProseMirrorNode) => Paragraph): Table;