ooxml-ui 1.3.0 → 1.4.1
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/custom-elements.json +101 -2
- package/dist/chrome/find-bar.d.ts +85 -0
- package/dist/chrome/find-bar.d.ts.map +1 -1
- package/dist/chrome/find-replace-fields.d.ts +21 -0
- package/dist/chrome/find-replace-fields.d.ts.map +1 -0
- package/dist/{chunk-NYRRH2MD.js → chunk-6YEWVS7I.js} +1 -1
- package/dist/{chunk-56A2JK63.js → chunk-BCH2ZLWI.js} +1 -1
- package/dist/{chunk-V6P6KZCO.js → chunk-CEBFGUMT.js} +5 -5
- package/dist/{chunk-IY7QJLQG.js → chunk-CXOK5QWQ.js} +1 -1
- package/dist/{chunk-5OFAJDMQ.js → chunk-F23XSUJD.js} +4 -4
- package/dist/{chunk-TWQ45BFL.js → chunk-FN3MBKHE.js} +1 -1
- package/dist/{chunk-723JC3OC.js → chunk-J2WUY2Q4.js} +160 -52
- package/dist/{chunk-2WLRFPMW.js → chunk-SPNWHKSR.js} +2 -0
- package/dist/clipboard-worker.js +22 -0
- package/dist/controls.d.ts +1 -1
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +4 -4
- package/dist/docx.js +6 -6
- package/dist/index.js +8 -8
- package/dist/keytips.d.ts.map +1 -1
- package/dist/menu/menu-button.d.ts +11 -1
- package/dist/menu/menu-button.d.ts.map +1 -1
- package/dist/pptx/{chunk-KRMMJUCO.cjs → chunk-7DMJEYQJ.cjs} +13 -5
- package/dist/pptx/{chunk-TC7HCF5M.mjs → chunk-LHNTMJSK.mjs} +13 -5
- package/dist/pptx/{chunk-FPE5PZMI.cjs → chunk-SOHTHDYV.cjs} +147 -45
- package/dist/pptx/{chunk-MWHGUEIJ.mjs → chunk-TLLEKXWQ.mjs} +130 -36
- package/dist/pptx/dom/elements/table-editable.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +238 -207
- package/dist/pptx/dom/index.mjs +41 -10
- package/dist/pptx/export/html2canvas-clone.cjs +2 -2
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/index.cjs +2758 -2726
- package/dist/pptx/index.mjs +2 -2
- package/dist/pptx/render/device-pixel-stroke.d.ts +10 -3
- package/dist/pptx/render/device-pixel-stroke.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/morph-heuristics.d.ts.map +1 -1
- package/dist/pptx/render/morph-matching.d.ts.map +1 -1
- package/dist/pptx/render/morph-predicates.d.ts +21 -0
- package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
- package/dist/pptx/render/table-resize-merge.d.ts +59 -0
- package/dist/pptx/render/table-resize-merge.d.ts.map +1 -0
- package/dist/presence.js +3 -3
- package/dist/ribbon/overflow.d.ts.map +1 -1
- package/dist/smartart.js +3 -3
- package/dist/teams.js +6 -6
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/visio/binding.d.ts +10 -2
- package/dist/visio/clipboard-capture.d.ts +39 -0
- package/dist/visio/clipboard-worker.d.ts +1 -0
- package/dist/visio/controller.d.ts +45 -8
- package/dist/visio/creation-token.d.ts +26 -0
- package/dist/visio/index.d.ts +3 -1
- package/dist/visio/replacement-token.d.ts +56 -0
- package/dist/visio/ribbon-action.d.ts +61 -2
- package/dist/visio/ribbon-parts.d.ts +3 -2
- package/dist/visio/ribbon-router.d.ts +14 -1
- package/dist/visio/ribbon-style-options.d.ts +5 -0
- package/dist/visio/viewer-arrangement.d.ts +13 -0
- package/dist/visio/viewer-backstage.d.ts +1 -0
- package/dist/visio/viewer-clipboard.d.ts +21 -0
- package/dist/visio/viewer-commands.d.ts +5 -0
- package/dist/visio/viewer-draw-tool.d.ts +9 -29
- package/dist/visio/viewer-drawing-gesture.d.ts +36 -0
- package/dist/visio/viewer-duplication.d.ts +11 -0
- package/dist/visio/viewer-element.d.ts +11 -1
- package/dist/visio/viewer-formatting.d.ts +12 -0
- package/dist/visio/viewer-gesture-overlays.d.ts +2 -0
- package/dist/visio/viewer-handle-events.d.ts +3 -0
- package/dist/visio/viewer-layers.d.ts +1 -2
- package/dist/visio/viewer-movement-preview.d.ts +7 -0
- package/dist/visio/viewer-new-drawing.d.ts +5 -0
- package/dist/visio/viewer-page-point.d.ts +6 -0
- package/dist/visio/viewer-paint-dialog.d.ts +28 -0
- package/dist/visio/viewer-paint-menu.d.ts +4 -0
- package/dist/visio/viewer-paint-properties.d.ts +13 -0
- package/dist/visio/viewer-pointer-gestures.d.ts +14 -0
- package/dist/visio/viewer-replace-status.d.ts +6 -0
- package/dist/visio/viewer-replace.d.ts +14 -0
- package/dist/visio/viewer-resize-frame.d.ts +9 -0
- package/dist/visio/viewer-resize-handles.d.ts +14 -0
- package/dist/visio/viewer-search.d.ts +15 -0
- package/dist/visio/viewer-size-position.d.ts +13 -0
- package/dist/visio/viewer-text-draft.d.ts +9 -0
- package/dist/visio/viewer-text-tool.d.ts +17 -0
- package/dist/visio/worker-clipboard.d.ts +16 -0
- package/dist/visio.js +5952 -2622
- package/dist/xlsx.js +11 -10
- package/package.json +2 -2
package/dist/xlsx.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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-CEBFGUMT.js';
|
|
2
|
+
import { defineSmartArt } from './chunk-6YEWVS7I.js';
|
|
3
|
+
import { withExtension, saveExtension, downloadBytes, emit, emitEvent, blobFor, announceFileCommand, pickFile } from './chunk-F23XSUJD.js';
|
|
4
|
+
export { XLSX_EDITOR_EVENTS } from './chunk-F23XSUJD.js';
|
|
5
5
|
import './chunk-SNV6YKPC.js';
|
|
6
|
-
import { shadcnBridge } from './chunk-
|
|
7
|
-
import { range_control_default, createRibbonOverflow, defineBackstage, defineRibbon, defineRibbonActions, defineTitleBar, defineStatusBar, defineZoomSlider, rangeControl, defineDialog, runKeyTips, assignKeyTips, defineCheckbox, defineGallery, defineContextMenu, defineCommentsPane, parseSvgPreview } from './chunk-
|
|
6
|
+
import { shadcnBridge } from './chunk-BCH2ZLWI.js';
|
|
7
|
+
import { range_control_default, createRibbonOverflow, defineBackstage, defineRibbon, defineRibbonActions, defineTitleBar, defineStatusBar, defineZoomSlider, rangeControl, defineDialog, runKeyTips, assignKeyTips, defineCheckbox, defineGallery, defineContextMenu, defineCommentsPane, parseSvgPreview } from './chunk-J2WUY2Q4.js';
|
|
8
8
|
import { getIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
9
|
-
import { definePresence } from './chunk-
|
|
10
|
-
import { withTokens } from './chunk-
|
|
11
|
-
import './chunk-
|
|
9
|
+
import { definePresence } from './chunk-FN3MBKHE.js';
|
|
10
|
+
import { withTokens } from './chunk-CXOK5QWQ.js';
|
|
11
|
+
import './chunk-SPNWHKSR.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, historyOf, 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';
|
|
14
14
|
import { createWorksheet, createEditSession, approximateMeasure, createWorkbook, MAX_ROW, MAX_COL, chartView, createRefEvaluator, chartBarSpacing, CHART_FILL_PARTS, selectionStats, formatSelectionStat, formatRange, chartSeriesTransparencyPatch, chartSeriesTransparency, chartSeriesGradientPatch, chartSeriesSolidFillPatch, chartSeriesFillPatch, chartWithElementFills, chartElementTransparencyPatch, chartElementTransparency, chartElementGradientPatch, chartElementSolidFillPatch, chartElementFillPatch, chartElementFill, usedRange, chartGradientStopTransparency, createGridMetrics, mergeView, cellView, DEFAULT_THEME, resolveColor, nextSheetName, FUNCTION_CATALOG, mergeAt, visibleCells, getCell, cellInputText, closeParens, isFormulaText, parseCellInput, referenceTarget, formatAddress, navigate, anchorToPixelBox, renderChartSvg, pixelBoxToAnchor, listValidationOptions, validationAt, getValue, resolvePasteOptions, DEFAULT_COL_WIDTH, nameAtCaret, functionMatches, callAtCaret, splice, acceptsReference, translateFormula, isCellError, layoutRemoteSelections, parseHtmlTable, toggleAbsolute, rangeContains, formatValue, isDateFormat, pictureAnchorAt, validateDefinedName, parseAddress, styleAt, parseRange, rangesIntersect, chartColorScheme, coloredReferences, syntaxParams, activeParam, columnLabel, THEME_SLOTS, normalizeRange, currentRegion, autoFitColumnWidth, validateSheetName, dateToSerial, IMAGE_EXTENSIONS, verifySheetPassword, verifyWorkbookPassword, sheetByName, quoteSheetName, serialToDate, BUILTIN_NUMBER_FORMATS, pixelsToColumnWidth, validateTableName } from 'ooxml-core/xlsx';
|
|
@@ -1533,7 +1533,8 @@ function templateInto(core, id, chrome) {
|
|
|
1533
1533
|
async function saveBytes(core, format2 = "xlsx") {
|
|
1534
1534
|
if (!core.workbook) throw new Error("No workbook is open");
|
|
1535
1535
|
const grid = core.ctx.grid();
|
|
1536
|
-
if (grid?.isEditing()
|
|
1536
|
+
if (grid?.isEditing() && !grid.commitEdit())
|
|
1537
|
+
throw new Error(core.ctx.t("Finish or cancel the current cell edit before saving."));
|
|
1537
1538
|
const { saveWorkbook } = await import('ooxml-core/xlsx/load');
|
|
1538
1539
|
return saveWorkbook(core.workbook, format2, {
|
|
1539
1540
|
sheetIndex: core.activeSheet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-elements",
|
|
@@ -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.4.0",
|
|
150
150
|
"opentype.js": "^2.0.0",
|
|
151
151
|
"prosemirror-collab": "^1.3.1",
|
|
152
152
|
"prosemirror-commands": "^1.7.2",
|