ooxml-ui 1.34.0 → 1.36.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 (223) hide show
  1. package/custom-elements.json +14 -1
  2. package/dist/chart/format-pane-analysis.d.ts +0 -1
  3. package/dist/chart/format-pane-effects.d.ts +0 -1
  4. package/dist/chart/format-pane-fill-kinds.d.ts +0 -1
  5. package/dist/chart/format-pane-fill-line.d.ts +0 -1
  6. package/dist/chart/format-pane-targets.d.ts +0 -1
  7. package/dist/chart/format-pane-text.d.ts +0 -1
  8. package/dist/chrome/tab-drag.d.ts +27 -0
  9. package/dist/chrome/tab-drag.d.ts.map +1 -0
  10. package/dist/chrome/tab-strip.d.ts +25 -1
  11. package/dist/chrome/tab-strip.d.ts.map +1 -1
  12. package/dist/{chunk-CDC5MAZS.js → chunk-6VF4FEMY.js} +1 -1
  13. package/dist/chunk-7RRN2GPO.js +19 -0
  14. package/dist/{chunk-3AOIYE3R.js → chunk-7ST5QRD5.js} +1 -1
  15. package/dist/{chunk-6TS7ASDJ.js → chunk-C4KI635Q.js} +2 -17
  16. package/dist/{chunk-CALEXPBD.js → chunk-GZNBWWJ5.js} +840 -51
  17. package/dist/{chunk-KYXSQFDB.js → chunk-QAX4FAB7.js} +139 -4
  18. package/dist/{chunk-SWDVBUBW.js → chunk-Z4DML5NW.js} +3 -3
  19. package/dist/controls.d.ts +1 -1
  20. package/dist/controls.d.ts.map +1 -1
  21. package/dist/controls.js +1 -1
  22. package/dist/docx/building-blocks-actions.d.ts +2 -2
  23. package/dist/docx/editable-region-view.d.ts +4 -0
  24. package/dist/docx/editor-chrome.d.ts +1 -1
  25. package/dist/docx/editor-core.d.ts +4 -0
  26. package/dist/docx/editor-plugins.d.ts +3 -0
  27. package/dist/docx/file-commands.d.ts +5 -0
  28. package/dist/docx/format-dialogs.d.ts +6 -1
  29. package/dist/docx/insert-controller.d.ts +5 -0
  30. package/dist/docx/list-commands.d.ts +3 -1
  31. package/dist/docx/list-marker-display.d.ts +1 -1
  32. package/dist/docx/locales/en-app.d.ts +0 -1
  33. package/dist/docx/locales/en-ribbon.d.ts +51 -0
  34. package/dist/docx/locales/en.d.ts +51 -1
  35. package/dist/docx/localization-strings.d.ts +51 -1
  36. package/dist/docx/paragraph-styles.d.ts +1 -1
  37. package/dist/docx/print-picture.d.ts +4 -0
  38. package/dist/docx/protection-controls.d.ts +4 -0
  39. package/dist/docx/restrict-editing-pane.d.ts +14 -0
  40. package/dist/docx/ribbon-action.d.ts +4 -0
  41. package/dist/docx/ribbon-icons.d.ts +1 -0
  42. package/dist/docx/search-controller.d.ts +12 -5
  43. package/dist/docx/search-document.d.ts +32 -0
  44. package/dist/docx.js +1227 -390
  45. package/dist/export/pdf-embedded-font.d.ts +65 -0
  46. package/dist/export/pdf-fonts.d.ts +14 -0
  47. package/dist/export/pdf-vector.d.ts +84 -0
  48. package/dist/image-native-size.d.ts +43 -0
  49. package/dist/image-native-size.d.ts.map +1 -0
  50. package/dist/index.js +5 -5
  51. package/dist/picture-artistic-filters.d.ts +9 -0
  52. package/dist/picture-artistic-filters.d.ts.map +1 -0
  53. package/dist/picture-artistic-preview.d.ts +3 -0
  54. package/dist/picture-artistic-preview.d.ts.map +1 -0
  55. package/dist/picture-effects.d.ts +3 -1
  56. package/dist/picture-effects.d.ts.map +1 -0
  57. package/dist/picture-paint.d.ts +23 -0
  58. package/dist/picture-paint.d.ts.map +1 -0
  59. package/dist/picture-pixels.d.ts +11 -0
  60. package/dist/picture-pixels.d.ts.map +1 -0
  61. package/dist/picture-standard-filter.d.ts +6 -0
  62. package/dist/picture-standard-filter.d.ts.map +1 -0
  63. package/dist/picture-view.d.ts +10 -0
  64. package/dist/picture-view.d.ts.map +1 -0
  65. package/dist/pptx/ai/bridge-factory.d.ts +4 -1
  66. package/dist/pptx/ai/bridge-factory.d.ts.map +1 -1
  67. package/dist/pptx/ai/config.d.ts +1 -1
  68. package/dist/pptx/ai/config.d.ts.map +1 -1
  69. package/dist/pptx/ai/host.cjs +36 -36
  70. package/dist/pptx/ai/host.mjs +1 -1
  71. package/dist/pptx/ai/index.cjs +50 -43
  72. package/dist/pptx/ai/index.mjs +10 -3
  73. package/dist/pptx/ai/system-prompt.d.ts +1 -1
  74. package/dist/pptx/ai/system-prompt.d.ts.map +1 -1
  75. package/dist/pptx/ai/tool-summary.d.ts.map +1 -1
  76. package/dist/pptx/ai/tools/mcp-registry.d.ts.map +1 -1
  77. package/dist/pptx/{chart-3d-view-scene-HNL4NWJT.mjs → chart-3d-view-scene-BKNMGRGO.mjs} +3 -25
  78. package/dist/pptx/{chart-3d-view-scene-OPVBTZL5.cjs → chart-3d-view-scene-V55XPBBF.cjs} +39 -61
  79. package/dist/pptx/{chunk-KGDMMWIY.mjs → chunk-2AK5MS6H.mjs} +11 -0
  80. package/dist/pptx/{chunk-M55PNMFQ.cjs → chunk-4OKSYRYA.cjs} +11 -0
  81. package/dist/pptx/{chunk-CH4Z6H6C.mjs → chunk-4RSRCNRM.mjs} +1192 -382
  82. package/dist/pptx/{chunk-TDIJHLS5.cjs → chunk-6JJD3LFT.cjs} +1532 -715
  83. package/dist/pptx/{chunk-46HIE4IE.cjs → chunk-CRV7G4GC.cjs} +8 -0
  84. package/dist/pptx/{chunk-S3L5NNCK.cjs → chunk-FROIGMTI.cjs} +1 -1
  85. package/dist/pptx/{chunk-S5I64Y55.cjs → chunk-HIRBPTML.cjs} +12 -12
  86. package/dist/pptx/{chunk-D4LJJ7Z7.cjs → chunk-KJICUZXM.cjs} +171 -540
  87. package/dist/pptx/{chunk-7DT3UJQB.mjs → chunk-KNCCSPAV.mjs} +7 -3
  88. package/dist/pptx/{chunk-RZVEPTLN.mjs → chunk-QK6LJT3K.mjs} +140 -529
  89. package/dist/pptx/{chunk-ZS5EVODY.cjs → chunk-SI7GQYSL.cjs} +52 -48
  90. package/dist/pptx/{chunk-LCCRLB7Q.mjs → chunk-UHDWWRTX.mjs} +1 -1
  91. package/dist/pptx/{chunk-6MEBLCNK.mjs → chunk-WQI3NLMY.mjs} +8 -0
  92. package/dist/pptx/{chunk-SPOECCPV.mjs → chunk-WZHYA2B3.mjs} +1 -1
  93. package/dist/pptx/dom/elements/smartart.d.ts.map +1 -1
  94. package/dist/pptx/dom/index.cjs +427 -427
  95. package/dist/pptx/dom/index.mjs +10 -10
  96. package/dist/pptx/export/html2canvas-clone.cjs +6 -6
  97. package/dist/pptx/export/html2canvas-clone.mjs +1 -1
  98. package/dist/pptx/i18n/index.cjs +6 -6
  99. package/dist/pptx/i18n/index.mjs +1 -1
  100. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  101. package/dist/pptx/index.cjs +3361 -3353
  102. package/dist/pptx/index.mjs +5 -5
  103. package/dist/pptx/render/chart-3d-projection.d.ts +5 -54
  104. package/dist/pptx/render/chart-3d-projection.d.ts.map +1 -1
  105. package/dist/pptx/render/chart-3d-shading.d.ts +7 -10
  106. package/dist/pptx/render/chart-3d-shading.d.ts.map +1 -1
  107. package/dist/pptx/render/chart-combo-stock.cjs +3 -3
  108. package/dist/pptx/render/chart-combo-stock.mjs +1 -1
  109. package/dist/pptx/render/chart-funnel-sunburst.d.ts +1 -1
  110. package/dist/pptx/render/chart-funnel-sunburst.d.ts.map +1 -1
  111. package/dist/pptx/render/chart-map-projection.d.ts +2 -37
  112. package/dist/pptx/render/chart-map-projection.d.ts.map +1 -1
  113. package/dist/pptx/render/chart-overlays.cjs +7 -7
  114. package/dist/pptx/render/chart-overlays.mjs +1 -1
  115. package/dist/pptx/render/chart-region-map-alias.d.ts +1 -11
  116. package/dist/pptx/render/chart-region-map-alias.d.ts.map +1 -1
  117. package/dist/pptx/render/chart-region-map-colors.d.ts +1 -3
  118. package/dist/pptx/render/chart-region-map-colors.d.ts.map +1 -1
  119. package/dist/pptx/render/chart-region-map-data.d.ts +2 -44
  120. package/dist/pptx/render/chart-region-map-data.d.ts.map +1 -1
  121. package/dist/pptx/render/chart-region-map-view.d.ts.map +1 -1
  122. package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
  123. package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
  124. package/dist/pptx/render/chart-view-model-types.d.ts +2 -0
  125. package/dist/pptx/render/chart-view-model-types.d.ts.map +1 -1
  126. package/dist/pptx/render/chart-view-model.cjs +44 -44
  127. package/dist/pptx/render/chart-view-model.mjs +1 -1
  128. package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
  129. package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
  130. package/dist/pptx/render/controller/custom-shows-controller.d.ts +93 -0
  131. package/dist/pptx/render/controller/custom-shows-controller.d.ts.map +1 -0
  132. package/dist/pptx/render/controller/index.d.ts +2 -0
  133. package/dist/pptx/render/controller/index.d.ts.map +1 -1
  134. package/dist/pptx/render/custom-shows.d.ts +10 -2
  135. package/dist/pptx/render/custom-shows.d.ts.map +1 -1
  136. package/dist/pptx/render/editor-key-target.d.ts.map +1 -1
  137. package/dist/pptx/render/image-effect-filter-values.d.ts +1 -10
  138. package/dist/pptx/render/image-effect-filter-values.d.ts.map +1 -1
  139. package/dist/pptx/render/image-effects.d.ts +1 -0
  140. package/dist/pptx/render/image-effects.d.ts.map +1 -1
  141. package/dist/pptx/render/image-native-size.d.ts +1 -42
  142. package/dist/pptx/render/image-native-size.d.ts.map +1 -1
  143. package/dist/pptx/render/image-tiling.d.ts.map +1 -1
  144. package/dist/pptx/render/index.d.ts +1 -1
  145. package/dist/pptx/render/index.d.ts.map +1 -1
  146. package/dist/pptx/render/render-cache.d.ts +1 -3
  147. package/dist/pptx/render/render-cache.d.ts.map +1 -1
  148. package/dist/pptx/render/smartart-drawing.d.ts +3 -0
  149. package/dist/pptx/render/smartart-drawing.d.ts.map +1 -1
  150. package/dist/pptx/render/smartart-picture-image.d.ts +9 -0
  151. package/dist/pptx/render/smartart-picture-image.d.ts.map +1 -0
  152. package/dist/pptx/render/smartart-reflow-to-shapes.d.ts.map +1 -1
  153. package/dist/pptx/{smartart-insert-preview-RQUFRLSV.mjs → smartart-insert-preview-JH5TXECK.mjs} +6 -6
  154. package/dist/pptx/{smartart-insert-preview-YKNB37GE.cjs → smartart-insert-preview-QWROEVZL.cjs} +7 -7
  155. package/dist/render-cache.d.ts +4 -0
  156. package/dist/render-cache.d.ts.map +1 -0
  157. package/dist/smartart/smartart-paint.d.ts +2 -1
  158. package/dist/smartart/smartart-picture.d.ts +4 -3
  159. package/dist/smartart/smartart-text-pane-tools.d.ts +0 -1
  160. package/dist/smartart.d.ts +3 -0
  161. package/dist/smartart.js +1 -1
  162. package/dist/teams.js +2 -2
  163. package/dist/theme-bridge.d.ts +0 -1
  164. package/dist/theme.d.ts +0 -1
  165. package/dist/touch-targets.d.ts +0 -1
  166. package/dist/visio/binding.d.ts +2 -1
  167. package/dist/visio/canvas-editing.d.ts +2 -0
  168. package/dist/visio/controller.d.ts +3 -0
  169. package/dist/visio/pdf-path.d.ts +37 -0
  170. package/dist/visio/pdf-svg-gradient.d.ts +23 -0
  171. package/dist/visio/pdf-svg-style.d.ts +20 -0
  172. package/dist/visio/pdf-svg-text.d.ts +8 -0
  173. package/dist/visio/pdf-svg.d.ts +22 -0
  174. package/dist/visio/ribbon-action.d.ts +47 -5
  175. package/dist/visio/ribbon-arrange.d.ts +9 -0
  176. package/dist/visio/ribbon-contextual-formats.d.ts +18 -0
  177. package/dist/visio/ribbon-org-chart.d.ts +7 -0
  178. package/dist/visio/ribbon-router.d.ts +18 -0
  179. package/dist/visio/ribbon-shape-format.d.ts +7 -0
  180. package/dist/visio/ribbon-size-fields.d.ts +5 -0
  181. package/dist/visio/ribbon-swimlane.d.ts +9 -0
  182. package/dist/visio/ribbon-themes.d.ts +13 -3
  183. package/dist/visio/ribbon.d.ts +5 -1
  184. package/dist/visio/shapes-files-ui.d.ts +1 -1
  185. package/dist/visio/template-thumbnails.d.ts +10 -0
  186. package/dist/visio/viewer-backstage.d.ts +9 -3
  187. package/dist/visio/viewer-chart-editor.d.ts +2 -1
  188. package/dist/visio/viewer-contextual-tabs.d.ts +21 -0
  189. package/dist/visio/viewer-diagram-parts.d.ts +9 -1
  190. package/dist/visio/viewer-element.d.ts +10 -0
  191. package/dist/visio/viewer-export.d.ts +1 -6
  192. package/dist/visio/viewer-file-commands.d.ts +6 -1
  193. package/dist/visio/viewer-guides.d.ts +8 -1
  194. package/dist/visio/viewer-inline-size.d.ts +15 -0
  195. package/dist/visio/viewer-insert-dialog.d.ts +1 -0
  196. package/dist/visio/viewer-new-drawing.d.ts +3 -2
  197. package/dist/visio/viewer-org-chart.d.ts +19 -0
  198. package/dist/visio/viewer-pdf-options.d.ts +26 -0
  199. package/dist/visio/viewer-pdf.d.ts +47 -0
  200. package/dist/visio/viewer-picture-format.d.ts +20 -0
  201. package/dist/visio/viewer-resize-handles.d.ts +13 -1
  202. package/dist/visio/viewer-swimlanes.d.ts +34 -0
  203. package/dist/visio.js +4079 -742
  204. package/dist/xlsx/dialogs/audit-dialogs.d.ts +9 -0
  205. package/dist/xlsx/dialogs/custom-autofilter.d.ts +12 -0
  206. package/dist/xlsx/dialogs/custom-lists.d.ts +6 -0
  207. package/dist/xlsx/dialogs/filter-dates.d.ts +4 -0
  208. package/dist/xlsx/dialogs/help-dialogs.d.ts +2 -2
  209. package/dist/xlsx/dialogs/sort-dialog.d.ts +3 -3
  210. package/dist/xlsx/dialogs/text-to-columns.d.ts +0 -7
  211. package/dist/xlsx/dialogs/top10-filter.d.ts +5 -0
  212. package/dist/xlsx/dialogs/watch-window.d.ts +4 -0
  213. package/dist/xlsx/grid/audit-layer.d.ts +3 -0
  214. package/dist/xlsx/grid/filter-buttons.d.ts +11 -0
  215. package/dist/xlsx/grid/filter-menu.d.ts +10 -0
  216. package/dist/xlsx/grid/filter-presets.d.ts +19 -0
  217. package/dist/xlsx/grid/grid-view.d.ts +23 -1
  218. package/dist/xlsx/grid/pane-chrome.d.ts +2 -0
  219. package/dist/xlsx/grid/split-bars.d.ts +2 -0
  220. package/dist/xlsx/grid/styles.d.ts +1 -1
  221. package/dist/xlsx/sheet-tabs/drag.d.ts +1 -2
  222. package/dist/xlsx.js +1991 -450
  223. package/package.json +2 -2
@@ -4410,7 +4410,7 @@
4410
4410
  "name": "OfficeUiTabStrip",
4411
4411
  "tagName": "office-ui-tab-strip",
4412
4412
  "customElement": true,
4413
- "description": "Bottom document tabs (Visio pages, Excel sheets). Set `tabs` (`OfficeTab[]`) and `selected` (a tab id). Labels are inserted as text. The previous/next buttons and arrow, Home and End keys move the selection; the tab list uses a roving tabindex. User selection emits `office-tab-select` `{ id }` (cancelable); setting properties never emits. Attributes: `label` (tab list name, default \"Tabs\"), `previous-label` and `next-label` (step button names, default \"Previous\" and \"Next\"), `disabled`, and `add-label` to show an add button after the tabs (Insert Page, New Sheet) that emits `office-command` `{ command: 'tab-add' }`; `add-disabled` and `add-title` disable and explain it. The `after-tabs` slot sits between the tabs and the add button (Visio's All pages list), and the `plain` attribute draws the selected tab as bold accent text without a box, as Visio does.",
4413
+ "description": "Bottom document tabs (Visio pages, Excel sheets). Set `tabs` (`OfficeTab[]`) and `selected` (a tab id). Labels are inserted as text. The previous/next buttons and arrow, Home and End keys move the selection; the tab list uses a roving tabindex. User selection emits `office-tab-select` `{ id }` (cancelable); setting properties never emits. Attributes: `label` (tab list name, default \"Tabs\"), `previous-label` and `next-label` (step button names, default \"Previous\" and \"Next\"), `disabled`, and `add-label` to show an add button after the tabs (Insert Page, New Sheet) that emits `office-command` `{ command: 'tab-add' }`; `add-disabled` and `add-title` disable and explain it. The `after-tabs` slot sits between the tabs and the add button (Visio's All pages list), and the `reorderable` attribute lets a pointer (mouse, pen or touch) drag a tab along the strip: past a small threshold an insertion marker shows the gap, Escape cancels, and releasing emits `office-tab-reorder` `{ id, index }` (the tab's new index) without moving anything itself; the host reorders its model and sets `tabs` again. A tab with a `group` only drops within that group. The `plain` attribute draws the selected tab as bold accent text without a box, as Visio does.",
4414
4414
  "attributes": [
4415
4415
  {
4416
4416
  "name": "add-disabled"
@@ -4433,6 +4433,9 @@
4433
4433
  {
4434
4434
  "name": "previous-label"
4435
4435
  },
4436
+ {
4437
+ "name": "reorderable"
4438
+ },
4436
4439
  {
4437
4440
  "name": "selected"
4438
4441
  }
@@ -4492,6 +4495,13 @@
4492
4495
  },
4493
4496
  "attribute": "previous-label"
4494
4497
  },
4498
+ {
4499
+ "kind": "field",
4500
+ "name": "reorderable",
4501
+ "type": {
4502
+ "text": "boolean"
4503
+ }
4504
+ },
4495
4505
  {
4496
4506
  "kind": "field",
4497
4507
  "name": "selected",
@@ -4508,6 +4518,9 @@
4508
4518
  {
4509
4519
  "name": "office-command"
4510
4520
  },
4521
+ {
4522
+ "name": "office-tab-reorder"
4523
+ },
4511
4524
  {
4512
4525
  "name": "office-tab-select"
4513
4526
  }
@@ -4,4 +4,3 @@ import type { ChartFormatSeriesOptionsView } from './format-pane-view.js';
4
4
  export declare function chartAnalysisSections(series: ChartFormatSeriesOptionsView): ChartFormatSection[];
5
5
  /** Converts only the selected analysis property, retaining other trendlines, bars and styles. */
6
6
  export declare function chartAnalysisFieldIntent(series: ChartFormatSeriesOptionsView | undefined, target: ChartFormatTarget, field: string, value: ChartFormatFieldValue): ChartEditIntent | null | undefined;
7
- //# sourceMappingURL=format-pane-analysis.d.ts.map
@@ -22,4 +22,3 @@ export declare function glowSection(prefix: string, glow: Effects['glow']): Char
22
22
  /** The Effects tab's sections. */
23
23
  export declare function effectsSections(view: ChartFormatElementView): ChartFormatSection[];
24
24
  export {};
25
- //# sourceMappingURL=format-pane-effects.d.ts.map
@@ -13,4 +13,3 @@ export declare function gradientFields(prefix: string, gradient: ChartGradientFi
13
13
  export declare function patternFields(pattern: NonNullable<ChartFormatFillView['pattern']>, presets: readonly ChartFormatChoice[]): ChartFormatField[];
14
14
  /** Picture source, transparency and tiling of a picture fill. */
15
15
  export declare function pictureFields(picture: ChartFormatFillView['picture']): ChartFormatField[];
16
- //# sourceMappingURL=format-pane-fill-kinds.d.ts.map
@@ -10,4 +10,3 @@ import type { ChartFormatElementView, ChartFormatSource } from './format-pane-vi
10
10
  export declare const ARROWS: Array<[string, string]>;
11
11
  /** The Fill & Line tab's sections. */
12
12
  export declare function fillLineSections(view: ChartFormatElementView, target: ChartFormatTarget, source?: Pick<ChartFormatSource, 'patternPresets' | 'slots'>): ChartFormatSection[];
13
- //# sourceMappingURL=format-pane-fill-line.d.ts.map
@@ -22,4 +22,3 @@ export declare function chartFormatPaneTitle(target: ChartFormatTarget): ChartFo
22
22
  export declare function chartFormatTargetOptions(targets: readonly ChartFormatTarget[], describe: ChartFormatDescribe): ChartFormatTargetOption[];
23
23
  /** The chart area entry, what a stale or missing key falls back to. */
24
24
  export declare const CHART_AREA_TARGET: ChartFormatTargetOption;
25
- //# sourceMappingURL=format-pane-targets.d.ts.map
@@ -4,4 +4,3 @@ import type { ChartFormatTextView } from './format-pane-view.js';
4
4
  export declare function chartTextTabs(): ChartFormatTab[];
5
5
  /** The sections of Text Options tab `tab`. */
6
6
  export declare function textOptionsSections(text: ChartFormatTextView, tab: 'textFill' | 'textEffects' | 'textBox'): ChartFormatSection[];
7
- //# sourceMappingURL=format-pane-text.d.ts.map
@@ -0,0 +1,27 @@
1
+ /** The gap (0..n) nearest to `clientX`: before the first tab whose midpoint lies right of it. */
2
+ export declare function slotAt(tabs: HTMLElement[], clientX: number): number;
3
+ /** The index a tab at `from` ends up at when dropped into gap `slot` of the same list. */
4
+ export declare function indexAfterDrop(from: number, slot: number): number;
5
+ export interface TabDragHost {
6
+ /** Receives the pointer events and the pointer capture. */
7
+ area: HTMLElement;
8
+ /** The tab elements in display order. */
9
+ tabs(): HTMLElement[];
10
+ /** Whether this pointer-down target may start a drag. */
11
+ canDrag(tab: HTMLElement): boolean;
12
+ /** Class names for the dragged tab and the insertion marker. */
13
+ draggingClass: string;
14
+ markerClass: string;
15
+ /** Where the marker is appended, and the element its `left` is measured from. */
16
+ markerParent: ParentNode;
17
+ markerBox: HTMLElement;
18
+ /** Selector matching a tab element. */
19
+ tabSelector: string;
20
+ /** Inclusive gap range the tab may be dropped into; defaults to every gap. */
21
+ limit?(tab: HTMLElement): [number, number];
22
+ /** Called once with the tab and the chosen gap when a drag completes. */
23
+ drop(tab: HTMLElement, slot: number): void;
24
+ }
25
+ /** Wires pointer dragging on `host.area`; returns a disposer. */
26
+ export declare function wireTabDrag(host: TabDragHost): () => void;
27
+ //# sourceMappingURL=tab-drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-drag.d.ts","sourceRoot":"","sources":["../../src/chrome/tab-drag.ts"],"names":[],"mappings":"AAOA,iGAAiG;AACjG,wBAAgB,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAMnE;AAED,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,MAAM,WAAW,WAAW;IAC3B,2DAA2D;IAC3D,IAAI,EAAE,WAAW,CAAC;IAClB,yCAAyC;IACzC,IAAI,IAAI,WAAW,EAAE,CAAC;IACtB,yDAAyD;IACzD,OAAO,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC;IACnC,gEAAgE;IAChE,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,YAAY,EAAE,UAAU,CAAC;IACzB,SAAS,EAAE,WAAW,CAAC;IACvB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,KAAK,CAAC,CAAC,GAAG,EAAE,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,yEAAyE;IACzE,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAUD,iEAAiE;AACjE,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,IAAI,CAgFzD"}
@@ -5,7 +5,13 @@ export interface OfficeTab {
5
5
  label: string;
6
6
  /** Tooltip; defaults to the label. */
7
7
  title?: string;
8
+ /** Tabs only reorder within their own group (Visio keeps background pages after the others). */
9
+ group?: string;
8
10
  }
11
+ export type OfficeTabReorderEvent = CustomEvent<{
12
+ id: string;
13
+ index: number;
14
+ }>;
9
15
  export type OfficeTabSelectEvent = CustomEvent<{
10
16
  id: string;
11
17
  }>;
@@ -19,7 +25,11 @@ export type OfficeTabSelectEvent = CustomEvent<{
19
25
  * add button after the tabs (Insert Page, New Sheet) that emits `office-command`
20
26
  * `{ command: 'tab-add' }`; `add-disabled` and `add-title` disable and explain it. The
21
27
  * `after-tabs` slot sits between the tabs and the add button (Visio's All pages list), and the
22
- * `plain` attribute draws the selected tab as bold accent text without a box, as Visio does.
28
+ * `reorderable` attribute lets a pointer (mouse, pen or touch) drag a tab along the strip: past a
29
+ * small threshold an insertion marker shows the gap, Escape cancels, and releasing emits
30
+ * `office-tab-reorder` `{ id, index }` (the tab's new index) without moving anything itself; the
31
+ * host reorders its model and sets `tabs` again. A tab with a `group` only drops within that group.
32
+ * The `plain` attribute draws the selected tab as bold accent text without a box, as Visio does.
23
33
  */
24
34
  export declare class OfficeUiTabStrip extends OfficeElement {
25
35
  static styles: import("lit").CSSResult[];
@@ -64,6 +74,14 @@ export declare class OfficeUiTabStrip extends OfficeElement {
64
74
  toAttribute: (value: unknown) => string | null;
65
75
  };
66
76
  };
77
+ reorderable: {
78
+ type: BooleanConstructor;
79
+ reflect: true;
80
+ converter: {
81
+ fromAttribute: (value: string | null) => boolean;
82
+ toAttribute: (value: unknown) => string | null;
83
+ };
84
+ };
67
85
  };
68
86
  label: string | null;
69
87
  previousLabel: string | null;
@@ -72,6 +90,8 @@ export declare class OfficeUiTabStrip extends OfficeElement {
72
90
  addTitle: string | null;
73
91
  addDisabled: boolean;
74
92
  disabled: boolean;
93
+ reorderable: boolean;
94
+ private disposeDrag;
75
95
  private items;
76
96
  private picked;
77
97
  constructor();
@@ -84,6 +104,10 @@ export declare class OfficeUiTabStrip extends OfficeElement {
84
104
  private choose;
85
105
  private onListClick;
86
106
  private onKey;
107
+ connectedCallback(): void;
108
+ disconnectedCallback(): void;
109
+ private wireDrag;
110
+ protected firstUpdated(_changed: PropertyValues<this>): void;
87
111
  protected updated(_changed: PropertyValues<this>): void;
88
112
  protected render(): import("lit").TemplateResult<1>;
89
113
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tab-strip.d.ts","sourceRoot":"","sources":["../../src/chrome/tab-strip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAK7D,MAAM,WAAW,SAAS;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAS/D;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;IAClD,OAAgB,MAAM,4BAAsB;IAC5C,OAAgB,UAAU;;YAEb,IAAI;YAAU,UAAU;;;YAC3B,IAAI;;;YACI,SAAS;YAAoB,IAAI;;;YACrC,SAAS;YAAgB,IAAI;;;YAC9B,SAAS;YAAe,IAAI;;;YAC5B,SAAS;YAAe,IAAI;;;;;;;;;;;;;;;;;;;MAGvC;IACM,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IA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AAO,MAAM,cAAc,+BAAyD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineRibbonGroup, defineRibbonStack, defineButton, defineMenuItem, defineMenuButton } from './chunk-KYXSQFDB.js';
1
+ import { defineRibbonGroup, defineRibbonStack, defineButton, defineMenuItem, defineMenuButton } from './chunk-QAX4FAB7.js';
2
2
  import { acceptedRibbonAddIns, findRibbonAddInCommand, RIBBON_ADD_IN_EVENT } from 'ooxml-core/ribbon';
3
3
  export { RIBBON_ADD_IN_EVENT } from 'ooxml-core/ribbon';
4
4
  import { sameRenderer, sameRegionContext, hostBackstagePageId, acceptedHostBackstagePages, placeHostBackstagePages, hostBackstageItemId, withHostMenuCommands, isHostMenuEntry, resolveHostMenuCommands, withoutHiddenEntries, hostBackstageRegionId } from 'ooxml-core/embedding';
@@ -0,0 +1,19 @@
1
+ import { chartSpaceFormatSource } from './chunk-QAX4FAB7.js';
2
+ import { chartExStyleSpace } from 'ooxml-core/chart';
3
+
4
+ function chartExSpaceFormatSource(space, theme) {
5
+ const source = chartSpaceFormatSource(chartExStyleSpace(space), {
6
+ ...theme ? { theme } : {},
7
+ advanced: true
8
+ });
9
+ const { axisOptions: _axes, seriesOptions: _series, ...common } = source;
10
+ return {
11
+ ...common,
12
+ element(target) {
13
+ const view = source.element(target);
14
+ return { ...view, support: { ...view.support, secondaryAxis: false } };
15
+ }
16
+ };
17
+ }
18
+
19
+ export { chartExSpaceFormatSource };
@@ -2,7 +2,7 @@ import { TeamsLitElement, LOCALE_HOST, teamsI18n, inheritLocale, pushLocale } fr
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';
5
- import { defineMenuButton, defineMenuItem, registerControls, defineSwitch } from './chunk-KYXSQFDB.js';
5
+ import { defineMenuButton, defineMenuItem, registerControls, defineSwitch } from './chunk-QAX4FAB7.js';
6
6
  import { registerIcon, getIcon } from './chunk-M6GF5ED2.js';
7
7
  import { initialsOf, definePresence } from './chunk-YZH2QS7J.js';
8
8
  import { definer, OfficeElement, controlStyles } from './chunk-QLHCGV4C.js';
@@ -1,8 +1,7 @@
1
- import { chartSpaceFormatSource } from './chunk-KYXSQFDB.js';
2
1
  import { OfficeElement, controlStyles, flag, emit, definer } from './chunk-QLHCGV4C.js';
3
2
  import { html, nothing } from 'lit';
4
3
  import { live } from 'lit/directives/live.js';
5
- import { chartExSpaceDataSheet, CHART_EX_LAYOUTS, chartExStyleSpace } from 'ooxml-core/chart';
4
+ import { chartExSpaceDataSheet, CHART_EX_LAYOUTS } from 'ooxml-core/chart';
6
5
  import { normalizeLocale } from 'ooxml-core/i18n';
7
6
 
8
7
  var en = [
@@ -444,19 +443,5 @@ function compactPageText(text) {
444
443
  const numbers = text.match(/\d+/g);
445
444
  return numbers && numbers.length === 2 ? numbers.join("/") : text;
446
445
  }
447
- function chartExSpaceFormatSource(space, theme) {
448
- const source = chartSpaceFormatSource(chartExStyleSpace(space), {
449
- ...theme ? { theme } : {},
450
- advanced: true
451
- });
452
- const { axisOptions: _axes, seriesOptions: _series, ...common } = source;
453
- return {
454
- ...common,
455
- element(target) {
456
- const view = source.element(target);
457
- return { ...view, support: { ...view.support, secondaryAxis: false } };
458
- }
459
- };
460
- }
461
446
 
462
- export { chartExSpaceFormatSource, compactPageText, defineChartExOptions, statusLayout, watchStatusWidth };
447
+ export { compactPageText, defineChartExOptions, statusLayout, watchStatusWidth };