ooxml-ui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{chunk-OXKWNNNJ.js → chunk-3FPW7M6U.js} +1 -1
- package/dist/{chunk-XDUYS4KK.js → chunk-BEN3453I.js} +1 -1
- package/dist/{chunk-FLHM5Q4O.js → chunk-KVKKXRL7.js} +3 -3
- package/dist/{chunk-T3HB5LMH.js → chunk-M5DTJSOV.js} +2 -2
- package/dist/{chunk-ZV2Z4IWH.js → chunk-USDLALB5.js} +4 -1
- package/dist/{chunk-4QQASR5A.js → chunk-ZU7GX4SY.js} +4 -4
- package/dist/controls.js +3 -3
- package/dist/docx/localization-strings.d.ts +1 -1
- package/dist/docx/localization.d.ts +0 -1
- package/dist/docx.js +11 -21
- package/dist/index.js +6 -6
- package/dist/pptx/{chunk-FEFQTZDM.cjs → chunk-KPZWYF44.cjs} +62 -97
- package/dist/pptx/{chunk-XQZWZMGZ.cjs → chunk-SM3CWDIQ.cjs} +7 -17
- package/dist/pptx/{chunk-JSBGBVBH.mjs → chunk-VRFNAF3Q.mjs} +7 -17
- package/dist/pptx/{chunk-XWE5GSE7.mjs → chunk-Y2W4SZER.mjs} +57 -95
- package/dist/pptx/dom/index.cjs +196 -196
- package/dist/pptx/dom/index.mjs +4 -4
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translator.d.ts.map +1 -1
- package/dist/pptx/index.cjs +2700 -2688
- package/dist/pptx/index.mjs +2 -2
- package/dist/pptx/render/connector-elbow-geometry.d.ts +7 -43
- package/dist/pptx/render/connector-elbow-geometry.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +1 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/viewer-root-options.d.ts +46 -0
- package/dist/pptx/render/viewer-root-options.d.ts.map +1 -0
- package/dist/pptx/web-components/registration-contract.d.ts.map +1 -1
- package/dist/presence.js +2 -2
- package/dist/registry.d.ts +2 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/smartart.js +2 -2
- package/dist/teams.js +4 -4
- package/dist/visio.js +14 -8
- package/dist/xlsx.js +7 -7
- package/package.json +3 -3
package/dist/visio.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { attachKeyTips, registerControls, readOfficeProfile, sanitizeOfficeProfile, writeOfficeProfile } from './chunk-
|
|
1
|
+
import { attachKeyTips, registerControls, readOfficeProfile, sanitizeOfficeProfile, writeOfficeProfile } from './chunk-M5DTJSOV.js';
|
|
2
2
|
import { getIcon, registerIcon } from './chunk-BOX43CZD.js';
|
|
3
|
-
import { definePresence } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { definePresence } from './chunk-3FPW7M6U.js';
|
|
4
|
+
import './chunk-USDLALB5.js';
|
|
5
5
|
import './chunk-JFJXBYRD.js';
|
|
6
6
|
import { FOREIGN_VECTOR_SCENE_LIMITS, EMPTY_TEXT_SEARCH, EMPTY_EDIT_STATE, assertViewableDocument, indexDocumentText, searchDocumentText, validateSearchQuery, MAX_INPUT_BYTES, DocumentHistory, snapshotEdits, ForeignVectorBudget, VISIO_IDENTITY_TRANSFORM, composeVisioTransform, compatibilityNotes, compatibilityText, visioGradientInstances, visioRenderedGradientStopCount, inspectForeignVectorResource, copySnapshotScene, editErrorMessage, eventKeys, propertyKeys, TEXT_SEARCH_LIMITS, isEditCancellation, visioPageInsertCommand, visioQuarterTurnCommand, visioLocalRotationShape, visioStraightLineHandles, visioPageEditToDrawing, textSearchStatus, visioRotationPreviewTransform, visioFillPatternTransform, visioRenderedGradientStops, visioStrokeGradient, visioNextShapeId } from 'ooxml-core/visio/ui';
|
|
7
7
|
export { TEXT_SEARCH_LIMITS, compatibilityNotes, compatibilityText, demoDocument, eventKeys, propertyKeys } from 'ooxml-core/visio/ui';
|
|
@@ -6226,7 +6226,7 @@ var ViewerCommands = class {
|
|
|
6226
6226
|
const state = this.host.controller.state;
|
|
6227
6227
|
const page2 = state.document?.pages[state.pageIndex];
|
|
6228
6228
|
if (!page2 || !state.selectedShape || !this.#canEdit(state)) return;
|
|
6229
|
-
const command2 = action2.type === "rotate" ? visioQuarterTurnCommand(page2, state.selectedShape.id, action2.direction) : visioLocalRotationShape(page2, state.selectedShape.id) ? {
|
|
6229
|
+
const command2 = action2.type === "rotate" ? visioQuarterTurnCommand(page2, state.selectedShape.id, action2.direction) : visioLocalRotationShape(page2, state.selectedShape.id, false) ? {
|
|
6230
6230
|
type: "flip-shape",
|
|
6231
6231
|
pageId: page2.id,
|
|
6232
6232
|
shapeId: state.selectedShape.id,
|
|
@@ -6307,8 +6307,9 @@ var ViewerCommands = class {
|
|
|
6307
6307
|
if (this.#tool !== "pointer" && !state.edit.sourceAvailable) this.#tool = "pointer";
|
|
6308
6308
|
const page2 = state.document?.pages[state.pageIndex];
|
|
6309
6309
|
const rotating = editing && !!page2 && !!state.selectedShape && !!visioLocalRotationShape(page2, state.selectedShape.id);
|
|
6310
|
-
for (const name of ["rotate-left", "rotate-right"
|
|
6311
|
-
|
|
6310
|
+
for (const name of ["rotate-left", "rotate-right"]) button(name).disabled = !rotating;
|
|
6311
|
+
const flipping = rotating && !!page2 && !!state.selectedShape && !!visioLocalRotationShape(page2, state.selectedShape.id, false);
|
|
6312
|
+
for (const name of ["flip-horizontal", "flip-vertical"]) button(name).disabled = !flipping;
|
|
6312
6313
|
root.querySelector('[data-menu="rotate"]').disabled = !rotating;
|
|
6313
6314
|
root.querySelector('[data-menu="position"]').disabled = !rotating;
|
|
6314
6315
|
button("undo").disabled = !state.edit.canUndo || state.edit.busy || state.loading;
|
|
@@ -7264,6 +7265,7 @@ var VisioViewerElement = class extends BaseElement {
|
|
|
7264
7265
|
#commands;
|
|
7265
7266
|
#lineEndpoints;
|
|
7266
7267
|
#rotationHandle;
|
|
7268
|
+
#handleState;
|
|
7267
7269
|
#rulers;
|
|
7268
7270
|
#canvas;
|
|
7269
7271
|
#panZoom;
|
|
@@ -7612,8 +7614,12 @@ var VisioViewerElement = class extends BaseElement {
|
|
|
7612
7614
|
if (this.#suspended) return;
|
|
7613
7615
|
const page2 = state.document?.pages[state.pageIndex];
|
|
7614
7616
|
const changed = this.#canvas.render(state);
|
|
7615
|
-
this.#
|
|
7616
|
-
this.#
|
|
7617
|
+
const previous = this.#handleState;
|
|
7618
|
+
this.#handleState = state;
|
|
7619
|
+
if (changed || !previous || previous.zoom !== state.zoom || previous.selectedShape !== state.selectedShape || previous.loading !== state.loading || previous.edit.busy !== state.edit.busy || previous.edit.sourceAvailable !== state.edit.sourceAvailable) {
|
|
7620
|
+
this.#lineEndpoints.render(state);
|
|
7621
|
+
this.#rotationHandle.render(state);
|
|
7622
|
+
}
|
|
7617
7623
|
if (changed) this.#announcement = void 0;
|
|
7618
7624
|
this.#zoomSlider.value = Math.round(state.zoom * 100);
|
|
7619
7625
|
this.#zoomSlider.disabled = !page2;
|
package/dist/xlsx.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import './chunk-
|
|
2
|
-
import { defineSmartArt } from './chunk-
|
|
3
|
-
import { withExtension, saveExtension, downloadBytes, emit, emitEvent, blobFor, announceFileCommand, pickFile } from './chunk-
|
|
4
|
-
export { XLSX_EDITOR_EVENTS } from './chunk-
|
|
1
|
+
import './chunk-ZU7GX4SY.js';
|
|
2
|
+
import { defineSmartArt } from './chunk-BEN3453I.js';
|
|
3
|
+
import { withExtension, saveExtension, downloadBytes, emit, emitEvent, blobFor, announceFileCommand, pickFile } from './chunk-KVKKXRL7.js';
|
|
4
|
+
export { XLSX_EDITOR_EVENTS } from './chunk-KVKKXRL7.js';
|
|
5
5
|
import './chunk-SNV6YKPC.js';
|
|
6
6
|
import './chunk-X7RINDJQ.js';
|
|
7
|
-
import { range_control_default, createRibbonOverflow, defineBackstage, defineRibbon, defineTitleBar, defineStatusBar, defineZoomSlider, rangeControl, defineDialog, runKeyTips, assignKeyTips, defineCheckbox, defineGallery, defineContextMenu, parseSvgPreview } from './chunk-
|
|
7
|
+
import { range_control_default, createRibbonOverflow, defineBackstage, defineRibbon, defineTitleBar, defineStatusBar, defineZoomSlider, rangeControl, defineDialog, runKeyTips, assignKeyTips, defineCheckbox, defineGallery, defineContextMenu, parseSvgPreview } from './chunk-M5DTJSOV.js';
|
|
8
8
|
import { getIcon, registerIcon } from './chunk-BOX43CZD.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { withTokens } from './chunk-
|
|
9
|
+
import './chunk-3FPW7M6U.js';
|
|
10
|
+
import { withTokens } from './chunk-USDLALB5.js';
|
|
11
11
|
import './chunk-JFJXBYRD.js';
|
|
12
12
|
import { SPECIAL_CODES, FRACTION_CODES, AUTOSUM_FUNCTIONS, themeToCssVars, lightTheme, darkTheme, ICON_ACCENTS, ICON_PATHS, normalizeThemeMode, applyThemeColors, parseSelectionRef, selectionRef, normalizeEditorLocale, DirtyState, createCommandRegistry, createDialogRegistry, activeRef, createSelectionModel, SheetSelections, translator, initialSelection, sheetBaseName, onRibbonTabsChange, activeChart, editChart, ribbonTabs, isTabHidden, selectTab, setTabHidden, tabButton, searchCommands, formatNumber, TEMPLATES, createTemplateWorkbook, isMenuSeparator, registerRibbonTabs, installFormatPainter, SHEET_ICONS, clipboardCommands, fontCommands, alignmentCommands, numberCommands, cellCommands, editingCommands, pageLayoutCommands, formulaCommands, dataCommands, contextualCommands, reviewTab, viewTab, helpTab, editBridge, CellViewCache, QUADRANTS, columnHeaderHeight, rowHeaderWidth, GridGeometry, cellRange, scrollToReveal, buildItems, fitNumber, cssFont, clampAddress, selectCell, movingEnd, extendSelection, moveWithinSelection, rowsRange, colsRange, ALL_RANGE, tabMenu, editing, icon, DATA_BAR_COLORS, dataBarRule, COLOR_SCALES, colorScaleRule, iconSetRule, target, tableAt, viewing, activeTable, numberFormatOptions, FONT_NAMES, FONT_SIZES, BORDER_PRESETS, ORIENTATIONS, ACCOUNTING_FORMATS, themePaletteItems, MARGIN_PRESETS, PAPER_SIZES, FUNCTION_MENUS, MORE_FUNCTION_CATEGORIES, functionsIn, isSingleCell, spanRange, selectionCellCount, addRange, activeStyle, selectSpecial, insertFunctionCall, guessHeader, regionOf, HIGHLIGHT_STYLES, ICON_SETS, TABLE_STYLES, tableStylePreview, resolveNameBox, absoluteReference, nameForRange, fillPaint, iconSvg, colSelected, rowSelected, rowHeaderMenu, columnHeaderMenu, cellMenu, recentFunctions, evaluateRef, buildChart, detectCategory, CATEGORIES, TIME_CODES, DATE_CODES, DEFAULT_OPTIONS, cellStyleItems, textDecoration, justify, alignItems, textAlign, hasBorders, edgeCss, diagonalSvg, SYMBOLS, buildCode, UNSET, dxfCss, negativeCodes, iconCount, iconThresholds, rowsOf, colsOf } from 'ooxml-core/xlsx/ui';
|
|
13
13
|
export { EDITOR_LOCALES, THEME_KEYS, normalizeEditorLocale, registerRibbonTabs, themeToCssVars, darkTheme as xlsxDarkTheme, lightTheme as xlsxLightTheme } from 'ooxml-core/xlsx/ui';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-elements",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"scripts": {
|
|
137
137
|
"build": "node scripts/build.mjs",
|
|
138
138
|
"prepack": "node scripts/ensure-built.mjs",
|
|
139
|
-
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.pptx.json --noEmit",
|
|
139
|
+
"typecheck": "tsc -p tsconfig.pptx.json --outDir .types-pptx && tsc -p tsconfig.json --noEmit && tsc -p tsconfig.pptx.json --noEmit",
|
|
140
140
|
"test": "vitest run && vitest run --config vitest.pptx.config.ts",
|
|
141
141
|
"test:package": "node scripts/package-smoke.mjs",
|
|
142
142
|
"gen:manifest": "node scripts/gen-manifest.mjs",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"dompurify": "^3.4.16",
|
|
147
147
|
"emf-converter": "4.8.21",
|
|
148
148
|
"lit": "^3.3.3",
|
|
149
|
-
"ooxml-core": "^1.
|
|
149
|
+
"ooxml-core": "^1.1.0",
|
|
150
150
|
"opentype.js": "^2.0.0",
|
|
151
151
|
"prosemirror-collab": "^1.3.1",
|
|
152
152
|
"prosemirror-commands": "^1.7.2",
|