ooxml-ui 1.16.0 → 1.17.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/custom-elements.json +66 -0
- package/dist/{chunk-QUG6IRQQ.js → chunk-CQ5BMX2Z.js} +3 -2
- package/dist/{chunk-CHFMXUPK.js → chunk-KRQ5T2GX.js} +166 -2
- package/dist/{chunk-JVNIZBG7.js → chunk-VCXKKGQZ.js} +1 -1
- package/dist/{chunk-UIVYZERK.js → chunk-VUSDTDZS.js} +1 -1
- package/dist/controls.d.ts +4 -2
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +1 -1
- package/dist/dialog/chart-picker.d.ts +78 -0
- package/dist/dialog/chart-picker.d.ts.map +1 -0
- package/dist/docx.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/teams.js +2 -2
- package/dist/visio/controller.d.ts +3 -0
- package/dist/visio/ribbon-action.d.ts +1 -1
- package/dist/visio/viewer-insert-chart.d.ts +40 -0
- package/dist/visio/viewer-insert.d.ts +2 -0
- package/dist/visio/viewer-options-categories.d.ts +2 -0
- package/dist/visio/viewer-options.d.ts +14 -1
- package/dist/visio/viewer-screen-tips.d.ts +10 -0
- package/dist/visio.js +291 -25
- package/dist/xlsx/commands/insert.d.ts +1 -0
- package/dist/xlsx.js +54 -87
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -835,6 +835,72 @@
|
|
|
835
835
|
}
|
|
836
836
|
]
|
|
837
837
|
},
|
|
838
|
+
{
|
|
839
|
+
"kind": "javascript-module",
|
|
840
|
+
"path": "dialog/chart-picker.ts",
|
|
841
|
+
"declarations": [
|
|
842
|
+
{
|
|
843
|
+
"kind": "class",
|
|
844
|
+
"name": "OfficeUiChartPicker",
|
|
845
|
+
"tagName": "office-ui-chart-picker",
|
|
846
|
+
"customElement": true,
|
|
847
|
+
"description": "`<office-ui-chart-picker>`: the body of every product's Insert Chart and Change Chart Type dialog. It owns the chart type gallery, grouping, title, an optional data editor and a live preview; the product owns the dialog around it, the OK and Cancel buttons and the chart model. The host sets `types`, `groupings`, `groupedTypes` (the type ids that offer a grouping), `labels` (translated) and `drawPreview`, which returns SVG for the current choices and is also called once per type tile with `value.type` set to that tile. Read and write the choices with `value`; leave `value.data` undefined when the numbers come from elsewhere (a spreadsheet selection) and set it to a string to show the data editor. `change-only` hides the title and data fields, as Change Chart Type keeps the chart's own. Emits `office-chart-change` with the value as `detail` on every edit.",
|
|
848
|
+
"attributes": [
|
|
849
|
+
{
|
|
850
|
+
"name": "change-only"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"members": [
|
|
854
|
+
{
|
|
855
|
+
"kind": "field",
|
|
856
|
+
"name": "changeOnly",
|
|
857
|
+
"type": {
|
|
858
|
+
"text": "boolean"
|
|
859
|
+
},
|
|
860
|
+
"attribute": "change-only"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"kind": "field",
|
|
864
|
+
"name": "drawPreview"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"kind": "field",
|
|
868
|
+
"name": "groupedTypes"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"kind": "field",
|
|
872
|
+
"name": "groupings"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"kind": "field",
|
|
876
|
+
"name": "labels"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"kind": "field",
|
|
880
|
+
"name": "types"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"kind": "field",
|
|
884
|
+
"name": "value"
|
|
885
|
+
}
|
|
886
|
+
],
|
|
887
|
+
"events": [
|
|
888
|
+
{
|
|
889
|
+
"name": "office-chart-change"
|
|
890
|
+
}
|
|
891
|
+
]
|
|
892
|
+
}
|
|
893
|
+
],
|
|
894
|
+
"exports": [
|
|
895
|
+
{
|
|
896
|
+
"kind": "custom-element-definition",
|
|
897
|
+
"name": "office-ui-chart-picker",
|
|
898
|
+
"declaration": {
|
|
899
|
+
"name": "OfficeUiChartPicker"
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
]
|
|
903
|
+
},
|
|
838
904
|
{
|
|
839
905
|
"kind": "javascript-module",
|
|
840
906
|
"path": "teams/chat-composer.ts",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineSmartArt } from './chunk-ANPFMQ6E.js';
|
|
2
|
-
import { TEAMS_TAGS, registerTeams } from './chunk-
|
|
2
|
+
import { TEAMS_TAGS, registerTeams } from './chunk-VCXKKGQZ.js';
|
|
3
3
|
import { installOfficeUiTheme } from './chunk-7E3HU7RL.js';
|
|
4
|
-
import { registerControls } from './chunk-
|
|
4
|
+
import { registerControls } from './chunk-KRQ5T2GX.js';
|
|
5
5
|
import { definePresence } from './chunk-KNC2UEUR.js';
|
|
6
6
|
|
|
7
7
|
// src/index.ts
|
|
@@ -47,6 +47,7 @@ var OFFICE_UI_TAGS = [
|
|
|
47
47
|
"office-ui-symbol-picker",
|
|
48
48
|
"office-ui-color-grid",
|
|
49
49
|
"office-ui-color-custom",
|
|
50
|
+
"office-ui-chart-picker",
|
|
50
51
|
"office-ui-presence",
|
|
51
52
|
"office-ui-smartart",
|
|
52
53
|
...TEAMS_TAGS
|
|
@@ -6035,6 +6035,169 @@ var OfficeUiColorCustom = class extends OfficeElement {
|
|
|
6035
6035
|
};
|
|
6036
6036
|
var defineColorCustom = definer("office-ui-color-custom", () => OfficeUiColorCustom);
|
|
6037
6037
|
|
|
6038
|
+
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/dialog/chart-picker.css?raw
|
|
6039
|
+
var chart_picker_default = ":host {\n display: flex;\n flex-direction: column;\n gap: var(--office-space-3);\n font-family: var(--office-font);\n font-size: var(--office-font-size);\n color: var(--office-foreground);\n}\n[hidden] {\n display: none !important;\n}\n.field {\n display: flex;\n flex-direction: column;\n gap: var(--office-space-1);\n}\n.field > span {\n font-size: var(--office-font-size-sm);\n color: var(--office-muted-foreground);\n}\n.field small {\n color: var(--office-muted-foreground);\n font-size: var(--office-font-size-2xs);\n}\ninput,\nselect,\ntextarea {\n box-sizing: border-box;\n width: 100%;\n min-height: var(--office-control-height-md);\n padding: var(--office-space-1) var(--office-space-2);\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius);\n background: var(--office-background);\n color: inherit;\n font: inherit;\n}\ntextarea {\n font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;\n resize: vertical;\n}\ninput:focus-visible,\nselect:focus-visible,\ntextarea:focus-visible,\nbutton:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: 0;\n}\n.preview {\n display: flex;\n align-items: center;\n justify-content: center;\n aspect-ratio: 360 / 220;\n border: var(--office-border-width) solid var(--office-border);\n border-radius: var(--office-radius);\n background: var(--office-background);\n}\n.preview svg {\n max-width: 100%;\n height: auto;\n}\n";
|
|
6040
|
+
|
|
6041
|
+
// src/dialog/chart-picker.ts
|
|
6042
|
+
var ENGLISH = {
|
|
6043
|
+
chartType: "Chart type",
|
|
6044
|
+
grouping: "Grouping",
|
|
6045
|
+
title: "Chart title",
|
|
6046
|
+
data: "Chart data",
|
|
6047
|
+
dataHint: "One row per line, values separated by tabs or commas. The first row names the series.",
|
|
6048
|
+
preview: "Preview"
|
|
6049
|
+
};
|
|
6050
|
+
var TILE = { width: 96, height: 60 };
|
|
6051
|
+
var PREVIEW = { width: 360, height: 220 };
|
|
6052
|
+
var OfficeUiChartPicker = class extends OfficeElement {
|
|
6053
|
+
static styles = controlStyles(chart_picker_default);
|
|
6054
|
+
static properties = {
|
|
6055
|
+
changeOnly: { type: Boolean, attribute: "change-only" }
|
|
6056
|
+
};
|
|
6057
|
+
choice = { type: "", grouping: "", title: "" };
|
|
6058
|
+
typeList = [];
|
|
6059
|
+
groupingList = [];
|
|
6060
|
+
grouped = [];
|
|
6061
|
+
text = ENGLISH;
|
|
6062
|
+
draw;
|
|
6063
|
+
constructor() {
|
|
6064
|
+
super();
|
|
6065
|
+
this.changeOnly = false;
|
|
6066
|
+
}
|
|
6067
|
+
get types() {
|
|
6068
|
+
return this.typeList;
|
|
6069
|
+
}
|
|
6070
|
+
set types(value) {
|
|
6071
|
+
this.typeList = value;
|
|
6072
|
+
if (!this.choice.type && value[0]) this.choice = { ...this.choice, type: value[0].id };
|
|
6073
|
+
this.requestUpdate("types");
|
|
6074
|
+
}
|
|
6075
|
+
get groupings() {
|
|
6076
|
+
return this.groupingList;
|
|
6077
|
+
}
|
|
6078
|
+
set groupings(value) {
|
|
6079
|
+
this.groupingList = value;
|
|
6080
|
+
if (!this.choice.grouping && value[0]) this.choice = { ...this.choice, grouping: value[0].id };
|
|
6081
|
+
this.requestUpdate("groupings");
|
|
6082
|
+
}
|
|
6083
|
+
get groupedTypes() {
|
|
6084
|
+
return this.grouped;
|
|
6085
|
+
}
|
|
6086
|
+
set groupedTypes(value) {
|
|
6087
|
+
this.grouped = value;
|
|
6088
|
+
this.requestUpdate("groupedTypes");
|
|
6089
|
+
}
|
|
6090
|
+
get labels() {
|
|
6091
|
+
return this.text;
|
|
6092
|
+
}
|
|
6093
|
+
set labels(value) {
|
|
6094
|
+
this.text = { ...ENGLISH, ...value };
|
|
6095
|
+
this.requestUpdate("labels");
|
|
6096
|
+
}
|
|
6097
|
+
get drawPreview() {
|
|
6098
|
+
return this.draw;
|
|
6099
|
+
}
|
|
6100
|
+
set drawPreview(value) {
|
|
6101
|
+
this.draw = value;
|
|
6102
|
+
this.requestUpdate("drawPreview");
|
|
6103
|
+
}
|
|
6104
|
+
get value() {
|
|
6105
|
+
return { ...this.choice };
|
|
6106
|
+
}
|
|
6107
|
+
set value(value) {
|
|
6108
|
+
this.choice = { ...value };
|
|
6109
|
+
this.requestUpdate("value");
|
|
6110
|
+
}
|
|
6111
|
+
edit(patch) {
|
|
6112
|
+
this.choice = { ...this.choice, ...patch };
|
|
6113
|
+
this.requestUpdate("value");
|
|
6114
|
+
this.fire("office-chart-change", this.value);
|
|
6115
|
+
}
|
|
6116
|
+
picked(event) {
|
|
6117
|
+
const id = event.detail.itemId;
|
|
6118
|
+
if (this.typeList.some((type) => type.id === id)) this.edit({ type: id });
|
|
6119
|
+
}
|
|
6120
|
+
svg(value, tile) {
|
|
6121
|
+
try {
|
|
6122
|
+
return this.draw?.(value, PREVIEW, tile) ?? "";
|
|
6123
|
+
} catch {
|
|
6124
|
+
return "";
|
|
6125
|
+
}
|
|
6126
|
+
}
|
|
6127
|
+
updated() {
|
|
6128
|
+
const gallery = this.renderRoot.querySelector(
|
|
6129
|
+
"office-ui-gallery"
|
|
6130
|
+
);
|
|
6131
|
+
if (gallery)
|
|
6132
|
+
gallery.state = {
|
|
6133
|
+
id: "chart-type",
|
|
6134
|
+
label: this.text.chartType,
|
|
6135
|
+
sections: [
|
|
6136
|
+
{
|
|
6137
|
+
columns: 4,
|
|
6138
|
+
tileWidth: TILE.width,
|
|
6139
|
+
tileHeight: TILE.height,
|
|
6140
|
+
items: this.typeList.map((type) => ({
|
|
6141
|
+
id: type.id,
|
|
6142
|
+
label: type.label,
|
|
6143
|
+
applied: type.id === this.choice.type,
|
|
6144
|
+
preview: this.svg({ ...this.choice, type: type.id, title: "" }, true)
|
|
6145
|
+
}))
|
|
6146
|
+
}
|
|
6147
|
+
]
|
|
6148
|
+
};
|
|
6149
|
+
const preview = this.renderRoot.querySelector(".preview");
|
|
6150
|
+
if (preview) {
|
|
6151
|
+
const node = parseSvgPreview(this.ownerDocument, this.svg(this.choice, false));
|
|
6152
|
+
preview.replaceChildren(...node ? [node] : []);
|
|
6153
|
+
}
|
|
6154
|
+
}
|
|
6155
|
+
render() {
|
|
6156
|
+
defineGallery(this.ownerDocument.defaultView?.customElements);
|
|
6157
|
+
const text = this.text;
|
|
6158
|
+
const hasGrouping = this.groupingList.length > 0 && this.grouped.includes(this.choice.type);
|
|
6159
|
+
return html`<office-ui-gallery
|
|
6160
|
+
mode="panel"
|
|
6161
|
+
@office-gallery-pick=${(event) => this.picked(event)}
|
|
6162
|
+
></office-ui-gallery
|
|
6163
|
+
>${hasGrouping ? html`<label class="field"
|
|
6164
|
+
><span>${text.grouping}</span
|
|
6165
|
+
><select
|
|
6166
|
+
data-key="grouping"
|
|
6167
|
+
aria-label=${text.grouping}
|
|
6168
|
+
@change=${(event) => this.edit({ grouping: event.target.value })}
|
|
6169
|
+
>${this.groupingList.map(
|
|
6170
|
+
(grouping) => html`<option
|
|
6171
|
+
value=${grouping.id}
|
|
6172
|
+
?selected=${grouping.id === this.choice.grouping}
|
|
6173
|
+
>${grouping.label}</option
|
|
6174
|
+
>`
|
|
6175
|
+
)}</select
|
|
6176
|
+
></label
|
|
6177
|
+
>` : nothing}${this.changeOnly ? nothing : html`<label class="field"
|
|
6178
|
+
><span>${text.title}</span
|
|
6179
|
+
><input
|
|
6180
|
+
data-key="title"
|
|
6181
|
+
type="text"
|
|
6182
|
+
aria-label=${text.title}
|
|
6183
|
+
.value=${this.choice.title}
|
|
6184
|
+
@input=${(event) => this.edit({ title: event.target.value })}
|
|
6185
|
+
/></label>`}${this.choice.data === void 0 || this.changeOnly ? nothing : html`<label class="field"
|
|
6186
|
+
><span>${text.data}</span
|
|
6187
|
+
><textarea
|
|
6188
|
+
data-key="data"
|
|
6189
|
+
rows="5"
|
|
6190
|
+
spellcheck="false"
|
|
6191
|
+
aria-label=${text.data}
|
|
6192
|
+
.value=${this.choice.data}
|
|
6193
|
+
@input=${(event) => this.edit({ data: event.target.value })}
|
|
6194
|
+
></textarea
|
|
6195
|
+
><small>${text.dataHint}</small></label
|
|
6196
|
+
>`} <div class="preview" role="img" aria-label=${text.preview}></div>`;
|
|
6197
|
+
}
|
|
6198
|
+
};
|
|
6199
|
+
var defineChartPicker = definer("office-ui-chart-picker", () => OfficeUiChartPicker);
|
|
6200
|
+
|
|
6038
6201
|
// src/keytips.ts
|
|
6039
6202
|
var BADGE_CSS = "position:fixed;inset:auto;margin:0;padding:0;border:0;background:transparent;overflow:visible;pointer-events:none";
|
|
6040
6203
|
var TIP_CSS = `position:fixed;transform:translate(-50%,-30%);min-width:${tok("--office-icon-size")};padding:${tok("--office-space-px")} ${tok("--office-space-1")};border:${tok("--office-border-width")} solid ${tok("--office-keytip-border")};border-radius:${tok("--office-radius-xs")};background:${tok("--office-keytip-background")};color:${tok("--office-keytip-foreground")};font:${tok("--office-font-weight-bold")} ${tok("--office-font-size-xs")}/${tok("--office-icon-size")} ${tok("--office-font")};text-align:center;box-shadow:${tok("--office-shadow-sm")}`;
|
|
@@ -6749,10 +6912,11 @@ var CONTROL_DEFINERS = [
|
|
|
6749
6912
|
defineCommentsPane,
|
|
6750
6913
|
defineSymbolPicker,
|
|
6751
6914
|
defineColorGrid,
|
|
6752
|
-
defineColorCustom
|
|
6915
|
+
defineColorCustom,
|
|
6916
|
+
defineChartPicker
|
|
6753
6917
|
];
|
|
6754
6918
|
function registerControls(registry) {
|
|
6755
6919
|
for (const define of CONTROL_DEFINERS) define(registry);
|
|
6756
6920
|
}
|
|
6757
6921
|
|
|
6758
|
-
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, glyph, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, parseSvgPreview, personalizeSection, profileInitials, rangeControl, range_control_default, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile };
|
|
6922
|
+
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineChartPicker, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, glyph, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, parseSvgPreview, personalizeSection, profileInitials, rangeControl, range_control_default, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TeamsLitElement, LOCALE_HOST, teamsI18n, inheritLocale, pushLocale } from './chunk-GSWCAZQ3.js';
|
|
2
2
|
import { THEME_CSS, installOfficeUiTheme } from './chunk-7E3HU7RL.js';
|
|
3
|
-
import { defineMenuButton, defineMenuItem, registerControls, defineSwitch } from './chunk-
|
|
3
|
+
import { defineMenuButton, defineMenuItem, registerControls, defineSwitch } from './chunk-KRQ5T2GX.js';
|
|
4
4
|
import { registerIcon, getIcon } from './chunk-M6GF5ED2.js';
|
|
5
5
|
import { initialsOf, definePresence } from './chunk-KNC2UEUR.js';
|
|
6
6
|
import { definer, OfficeElement, controlStyles } from './chunk-CWBSXK7P.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineRibbonGroup, defineRibbonStack, defineButton, defineMenuItem, defineMenuButton } from './chunk-
|
|
1
|
+
import { defineRibbonGroup, defineRibbonStack, defineButton, defineMenuItem, defineMenuButton } from './chunk-KRQ5T2GX.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
|
|
package/dist/controls.d.ts
CHANGED
|
@@ -41,7 +41,8 @@ import { defineSymbolPicker } from './form/symbol-picker.js';
|
|
|
41
41
|
import { defineColorGrid } from './form/color-grid.js';
|
|
42
42
|
export type { OfficeColorChange, OfficeColorChangeEvent, OfficeUiColorCustom, } from './form/color-custom.js';
|
|
43
43
|
import { defineColorCustom } from './form/color-custom.js';
|
|
44
|
-
|
|
44
|
+
import { defineChartPicker } from './dialog/chart-picker.js';
|
|
45
|
+
export { defineAccount, defineDialogFooter, definePasteOptions, defineRadio, defineReadOnlyBanner, defineRibbonToggle, defineSearchField, defineToasts, defineBackstage, defineCommentsPane, defineFindBar, defineGallery, definePrintPreview, defineRibbon, defineRibbonActions, defineRuler, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineTaskPane, defineTitleBar, defineToolbar, defineZoomSlider, defineSymbolPicker, defineColorGrid, defineColorCustom, defineChartPicker, };
|
|
45
46
|
export { OFFICE_SYMBOLS, parseOfficeSymbolCode } from './form/symbol-picker.js';
|
|
46
47
|
export type { OfficeColorPick, OfficeColorPickEvent, OfficeColorSource, OfficeUiColorGrid, } from './form/color-grid.js';
|
|
47
48
|
export type { OfficeCommandEvent } from './ribbon/button.js';
|
|
@@ -74,9 +75,10 @@ export type { OfficePasteOption, OfficePasteOptionsState } from './notices/paste
|
|
|
74
75
|
export type { OfficeReadOnlyBannerIntent, OfficeReadOnlyBannerState, } from './notices/read-only-banner.js';
|
|
75
76
|
export { clearOfficeProfile, DEFAULT_OFFICE_PROFILE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, profileInitials, readOfficeProfile, sanitizeOfficeProfile, writeOfficeProfile, type OfficeProfile, type OfficeProfileChangeEvent, } from './chrome/account-profile.js';
|
|
76
77
|
export { clampOptionNumber, type OfficeOptionCategory, type OfficeOptionChoice, type OfficeOptionControl, type OfficeOptionSection, type OfficeOptionsChangeEvent, type OfficeOptionsLabels, type OfficeOptionValue, type OfficeOptionValues, } from './dialog/options-dialog.js';
|
|
78
|
+
export { type OfficeChartPickerLabels, type OfficeChartPreview, type OfficeChartType, type OfficeChartValue, } from './dialog/chart-picker.js';
|
|
77
79
|
export { optionsLabels, optionText, personalizeSection, unavailableCategory, unavailableControl, userInterfaceSection, type OptionsContext, type UnavailableKind, } from './dialog/options-categories.js';
|
|
78
80
|
/** Every control of this entry. */
|
|
79
|
-
export declare const CONTROL_DEFINERS: readonly [import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer];
|
|
81
|
+
export declare const CONTROL_DEFINERS: readonly [import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer, import("./registry.js").Definer];
|
|
80
82
|
/** Idempotent, SSR-safe (no-op without a DOM). */
|
|
81
83
|
export declare function registerControls(registry?: CustomElementRegistry): void;
|
|
82
84
|
//# sourceMappingURL=controls.d.ts.map
|
package/dist/controls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../src/controls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACN,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,iBAAiB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C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ACjC,OAAO,EACN,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACN,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,GACpB,MAAM,6BAA6B,CAAC;AAErC,mCAAmC;AACnC,eAAO,MAAM,gBAAgB,uvCA2CnB,CAAC;AAEX,kDAAkD;AAClD,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAEvE"}
|
package/dist/controls.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, parseSvgPreview, personalizeSection, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-
|
|
1
|
+
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineChartPicker, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, parseSvgPreview, personalizeSection, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-KRQ5T2GX.js';
|
|
2
2
|
import './chunk-M6GF5ED2.js';
|
|
3
3
|
import './chunk-KNC2UEUR.js';
|
|
4
4
|
import './chunk-CWBSXK7P.js';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { OfficeElement } from '../base.js';
|
|
2
|
+
export interface OfficeChartType {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
/** What the picker edits. `data` is only present when the host asked for the data editor. */
|
|
7
|
+
export interface OfficeChartValue {
|
|
8
|
+
type: string;
|
|
9
|
+
grouping: string;
|
|
10
|
+
title: string;
|
|
11
|
+
data?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Draws a chart as SVG markup for the current choices; `size` is the box in pixels. `tile` is true
|
|
15
|
+
* for a chart type tile, which the gallery scales down: leave out the title and legend.
|
|
16
|
+
*/
|
|
17
|
+
export type OfficeChartPreview = (value: OfficeChartValue, size: {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
}, tile: boolean) => string;
|
|
21
|
+
export interface OfficeChartPickerLabels {
|
|
22
|
+
chartType: string;
|
|
23
|
+
grouping: string;
|
|
24
|
+
title: string;
|
|
25
|
+
data: string;
|
|
26
|
+
dataHint: string;
|
|
27
|
+
preview: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* `<office-ui-chart-picker>`: the body of every product's Insert Chart and Change Chart Type
|
|
31
|
+
* dialog. It owns the chart type gallery, grouping, title, an optional data editor and a live
|
|
32
|
+
* preview; the product owns the dialog around it, the OK and Cancel buttons and the chart
|
|
33
|
+
* model. The host sets `types`, `groupings`, `groupedTypes` (the type ids that offer a grouping),
|
|
34
|
+
* `labels` (translated) and `drawPreview`, which returns SVG for the current choices and is also
|
|
35
|
+
* called once per type tile with `value.type` set to that tile. Read and write the choices with
|
|
36
|
+
* `value`; leave `value.data` undefined when the numbers come from elsewhere (a spreadsheet
|
|
37
|
+
* selection) and set it to a string to show the data editor. `change-only` hides the title and
|
|
38
|
+
* data fields, as Change Chart Type keeps the chart's own.
|
|
39
|
+
*
|
|
40
|
+
* Emits `office-chart-change` with the value as `detail` on every edit.
|
|
41
|
+
*/
|
|
42
|
+
export declare class OfficeUiChartPicker extends OfficeElement {
|
|
43
|
+
static styles: import("lit").CSSResult[];
|
|
44
|
+
static properties: {
|
|
45
|
+
changeOnly: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
attribute: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
/** Hides the title and data fields. */
|
|
51
|
+
changeOnly: boolean;
|
|
52
|
+
private choice;
|
|
53
|
+
private typeList;
|
|
54
|
+
private groupingList;
|
|
55
|
+
private grouped;
|
|
56
|
+
private text;
|
|
57
|
+
private draw;
|
|
58
|
+
constructor();
|
|
59
|
+
get types(): readonly OfficeChartType[];
|
|
60
|
+
set types(value: readonly OfficeChartType[]);
|
|
61
|
+
get groupings(): readonly OfficeChartType[];
|
|
62
|
+
set groupings(value: readonly OfficeChartType[]);
|
|
63
|
+
get groupedTypes(): readonly string[];
|
|
64
|
+
set groupedTypes(value: readonly string[]);
|
|
65
|
+
get labels(): OfficeChartPickerLabels;
|
|
66
|
+
set labels(value: Partial<OfficeChartPickerLabels>);
|
|
67
|
+
get drawPreview(): OfficeChartPreview | undefined;
|
|
68
|
+
set drawPreview(value: OfficeChartPreview | undefined);
|
|
69
|
+
get value(): OfficeChartValue;
|
|
70
|
+
set value(value: OfficeChartValue);
|
|
71
|
+
private edit;
|
|
72
|
+
private picked;
|
|
73
|
+
private svg;
|
|
74
|
+
protected updated(): void;
|
|
75
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
76
|
+
}
|
|
77
|
+
export declare const defineChartPicker: import("../registry.js").Definer;
|
|
78
|
+
//# sourceMappingURL=chart-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-picker.d.ts","sourceRoot":"","sources":["../../src/dialog/chart-picker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAC;AAMvD,MAAM,WAAW,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AK,EAAE,SAAS,eAAe,EAAE,EAI9C;IACD,IAAI,YAAY,IAAI,SAAS,MAAM,EAAE,CAEpC;IACD,IAAI,YAAY,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAGxC;IACD,IAAI,MAAM,IAAI,uBAAuB,CAEpC;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,uBAAuB,CAAC,EAGjD;IACD,IAAI,WAAW,IAAI,kBAAkB,GAAG,SAAS,CAEhD;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,EAGpD;IACD,IAAI,KAAK,IAAI,gBAAgB,CAE5B;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,gBAAgB,EAGhC;IAED,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,GAAG;IASX,UAAmB,OAAO,IAAI,IAAI,CA2BjC;IAED,UAAmB,MAAM,oCAyDxB;CACD;AAED,eAAO,MAAM,iBAAiB,+BAA+D,CAAC"}
|
package/dist/docx.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { statusLayout, watchStatusWidth, compactPageText } from './chunk-UBBC5FH7.js';
|
|
2
|
-
import { syncRibbonAddIns } from './chunk-
|
|
3
|
-
export { RIBBON_ADD_IN_EVENT } from './chunk-
|
|
2
|
+
import { syncRibbonAddIns } from './chunk-VUSDTDZS.js';
|
|
3
|
+
export { RIBBON_ADD_IN_EVENT } from './chunk-VUSDTDZS.js';
|
|
4
4
|
import { defineSmartArt } from './chunk-ANPFMQ6E.js';
|
|
5
5
|
import { shadcnBridge } from './chunk-7E3HU7RL.js';
|
|
6
|
-
import { createRibbonOverflow, defineRibbon, defineRuler, defineCommentsPane, defineDialog, defineSearchField, defineSwitch, defineTitleBar, defineRibbonActions, defineBackstage, defineStatusBar, defineZoomSlider, defineContextMenu, defineColorGrid, runKeyTips, defineOptionsDialog, assignKeyTips, optionsLabels, userInterfaceSection, personalizeSection, optionText, unavailableCategory } from './chunk-
|
|
6
|
+
import { createRibbonOverflow, defineRibbon, defineRuler, defineCommentsPane, defineDialog, defineSearchField, defineSwitch, defineTitleBar, defineRibbonActions, defineBackstage, defineStatusBar, defineZoomSlider, defineContextMenu, defineColorGrid, runKeyTips, defineOptionsDialog, assignKeyTips, optionsLabels, userInterfaceSection, personalizeSection, optionText, unavailableCategory } from './chunk-KRQ5T2GX.js';
|
|
7
7
|
import { registerIcon } from './chunk-M6GF5ED2.js';
|
|
8
8
|
import './chunk-KNC2UEUR.js';
|
|
9
9
|
import './chunk-CWBSXK7P.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from './teams/index.js';
|
|
|
9
9
|
export * from './theme.js';
|
|
10
10
|
export { CONTRACT_REVISION, type Definer } from './registry.js';
|
|
11
11
|
/** Every ooxml-ui tag this package defines, in registration order. */
|
|
12
|
-
export declare const OFFICE_UI_TAGS: readonly ["office-ui-icon", "office-ui-button", "office-ui-checkbox", "office-ui-switch", "office-ui-select", "office-ui-ribbon-group", "office-ui-ribbon-stack", "office-ui-menu-item", "office-ui-menu-button", "office-ui-menu-separator", "office-ui-context-menu", "office-ui-command-search", "office-ui-toolbar", "office-ui-dialog", "office-ui-status-bar", "office-ui-status-item", "office-ui-zoom-slider", "office-ui-tab-strip", "office-ui-task-pane", "office-ui-options-dialog", "office-ui-account", "office-ui-ribbon", "office-ui-ribbon-actions", "office-ui-find-bar", "office-ui-ruler", "office-ui-backstage", "office-ui-print-preview", "office-ui-radio", "office-ui-search", "office-ui-ribbon-toggle", "office-ui-dialog-footer", "office-ui-toasts", "office-ui-read-only-banner", "office-ui-paste-options", "office-ui-title-bar", "office-ui-ribbon-section", "office-ui-gallery", "office-ui-comments-pane", "office-ui-symbol-picker", "office-ui-color-grid", "office-ui-color-custom", "office-ui-presence", "office-ui-smartart", "office-ui-avatar", "office-ui-app-rail", "office-ui-activity-feed", "office-ui-channel-list", "office-ui-chat-list", "office-ui-chat-composer", "office-ui-prejoin", "office-ui-call-grid", "office-ui-call-controls", "office-ui-chat-sidebar", "office-ui-people-picker", "office-ui-calendar-view", "office-ui-calendar-agenda"];
|
|
12
|
+
export declare const OFFICE_UI_TAGS: readonly ["office-ui-icon", "office-ui-button", "office-ui-checkbox", "office-ui-switch", "office-ui-select", "office-ui-ribbon-group", "office-ui-ribbon-stack", "office-ui-menu-item", "office-ui-menu-button", "office-ui-menu-separator", "office-ui-context-menu", "office-ui-command-search", "office-ui-toolbar", "office-ui-dialog", "office-ui-status-bar", "office-ui-status-item", "office-ui-zoom-slider", "office-ui-tab-strip", "office-ui-task-pane", "office-ui-options-dialog", "office-ui-account", "office-ui-ribbon", "office-ui-ribbon-actions", "office-ui-find-bar", "office-ui-ruler", "office-ui-backstage", "office-ui-print-preview", "office-ui-radio", "office-ui-search", "office-ui-ribbon-toggle", "office-ui-dialog-footer", "office-ui-toasts", "office-ui-read-only-banner", "office-ui-paste-options", "office-ui-title-bar", "office-ui-ribbon-section", "office-ui-gallery", "office-ui-comments-pane", "office-ui-symbol-picker", "office-ui-color-grid", "office-ui-color-custom", "office-ui-chart-picker", "office-ui-presence", "office-ui-smartart", "office-ui-avatar", "office-ui-app-rail", "office-ui-activity-feed", "office-ui-channel-list", "office-ui-chat-list", "office-ui-chat-composer", "office-ui-prejoin", "office-ui-call-grid", "office-ui-call-controls", "office-ui-chat-sidebar", "office-ui-people-picker", "office-ui-calendar-view", "office-ui-calendar-agenda"];
|
|
13
13
|
/**
|
|
14
14
|
* Install the theme tokens and define every element. Idempotent and safe to call from every
|
|
15
15
|
* viewer binding; a no-op where there is no DOM (SSR).
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-
|
|
2
|
-
export { RIBBON_ADD_IN_EVENT, defineRibbonAddInElements, syncRibbonAddIns } from './chunk-
|
|
1
|
+
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-CQ5BMX2Z.js';
|
|
2
|
+
export { RIBBON_ADD_IN_EVENT, defineRibbonAddInElements, syncRibbonAddIns } from './chunk-VUSDTDZS.js';
|
|
3
3
|
export { OfficeUiSmartArt, defineSmartArt, renderDiagramDrawing } from './chunk-ANPFMQ6E.js';
|
|
4
|
-
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-
|
|
4
|
+
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-VCXKKGQZ.js';
|
|
5
5
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-GSWCAZQ3.js';
|
|
6
6
|
export { THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme, shadcnBridge, themeBridge } from './chunk-7E3HU7RL.js';
|
|
7
|
-
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, glyph, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, parseSvgPreview, personalizeSection, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-
|
|
7
|
+
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineChartPicker, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, glyph, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, parseSvgPreview, personalizeSection, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-KRQ5T2GX.js';
|
|
8
8
|
export { createIconSvg, getIcon, listIcons, paintIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
9
9
|
export { OfficeUiPresence, definePresence, initialsOf, participantsFromAwareness } from './chunk-KNC2UEUR.js';
|
|
10
10
|
export { CONTRACT_REVISION, OfficeElement, controlStyles, flag, readFlag, triState, valueOn, withTokens } from './chunk-CWBSXK7P.js';
|
package/dist/teams.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-
|
|
1
|
+
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-VCXKKGQZ.js';
|
|
2
2
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-GSWCAZQ3.js';
|
|
3
3
|
import './chunk-7E3HU7RL.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-KRQ5T2GX.js';
|
|
5
5
|
import './chunk-M6GF5ED2.js';
|
|
6
6
|
import './chunk-KNC2UEUR.js';
|
|
7
7
|
import './chunk-CWBSXK7P.js';
|
|
@@ -106,6 +106,9 @@ export declare class ViewerController {
|
|
|
106
106
|
cutPreparedSelection(token: ViewerClipboardToken): Promise<void>;
|
|
107
107
|
/** The supplied text must come from the current clipboard read, never an internal fallback. */
|
|
108
108
|
pasteClipboardText(text: string, token: ViewerClipboardToken): Promise<void>;
|
|
109
|
+
/** Number of undo steps kept (File > Options > Advanced); applies to the open drawing at once. */
|
|
110
|
+
get undoLevels(): number | undefined;
|
|
111
|
+
set undoLevels(levels: number | undefined);
|
|
109
112
|
undo(): Promise<void>;
|
|
110
113
|
/**
|
|
111
114
|
* Adopt a package from a shared session as one undoable history step. Emits `document-change`
|
|
@@ -55,7 +55,7 @@ export type VisioFormattingAction = {
|
|
|
55
55
|
/** Text dialogs and tools: Home launchers and Text Block, Insert Symbol/Field, Review proofing. */
|
|
56
56
|
export type VisioTextFeature = 'text-dialog' | 'paragraph-dialog' | 'text-block' | 'symbol' | 'field' | 'spelling' | 'language';
|
|
57
57
|
/** Insert-tab items that act on the page or the selected shape. */
|
|
58
|
-
export type VisioInsertItem = 'picture' | 'link' | 'screen-tip';
|
|
58
|
+
export type VisioInsertItem = 'picture' | 'chart' | 'link' | 'screen-tip';
|
|
59
59
|
/** Review and Process tab commands: comments, shape reports, diagram checks and subprocesses. */
|
|
60
60
|
export type VisioReviewCommand = 'check-accessibility' | 'alt-text' | 'page-alt-text' | 'new-comment' | 'page-comment' | 'comments-pane' | 'shape-reports' | 'check-diagram' | 'issues-window' | 'ignore-issue' | 'rule-set' | 'subprocess-new' | 'subprocess-existing' | 'subprocess-selection';
|
|
61
61
|
/** Insert > Diagram Parts: a container or callout in one of its styles. */
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { OfficeChartPreview, OfficeChartValue } from '../dialog/chart-picker.js';
|
|
2
|
+
type Dialog = HTMLElement & {
|
|
3
|
+
open: boolean;
|
|
4
|
+
show(): void;
|
|
5
|
+
close(): void;
|
|
6
|
+
};
|
|
7
|
+
type Picker = HTMLElement & {
|
|
8
|
+
types: {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
groupings: {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
groupedTypes: string[];
|
|
17
|
+
drawPreview: OfficeChartPreview;
|
|
18
|
+
value: OfficeChartValue;
|
|
19
|
+
};
|
|
20
|
+
/** Turns a chart's SVG into PNG bytes (Visio pictures are raster); replaceable for tests. */
|
|
21
|
+
export type RasterizeSvg = (doc: Document, svg: string, width: number, height: number) => Promise<Uint8Array>;
|
|
22
|
+
/** The browser's canvas draws the SVG; a chart is never loaded from a URL, only from this blob. */
|
|
23
|
+
export declare const rasterizeSvg: RasterizeSvg;
|
|
24
|
+
/**
|
|
25
|
+
* Insert > Chart: the shared chart picker (type, grouping, title and a data grid with a live
|
|
26
|
+
* preview) in a dialog. OK draws the chart with the same core renderer Excel's charts use and
|
|
27
|
+
* hands the PNG to `insert`, which places it on the page like any picture. The chart is a
|
|
28
|
+
* picture: it is not an embedded workbook and cannot be edited as data afterwards.
|
|
29
|
+
*/
|
|
30
|
+
export declare class InsertChartDialog {
|
|
31
|
+
#private;
|
|
32
|
+
readonly dialog: Dialog;
|
|
33
|
+
readonly picker: Picker;
|
|
34
|
+
readonly error: HTMLElement;
|
|
35
|
+
constructor(root: ShadowRoot, insert: (png: Uint8Array) => Promise<void>, rasterize?: RasterizeSvg);
|
|
36
|
+
/** Open with the sample data, ready to be replaced. */
|
|
37
|
+
open(): void;
|
|
38
|
+
close(): void;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ViewerController, ViewerState } from './controller.js';
|
|
2
2
|
import type { VisioInsertItem } from './ribbon-action.js';
|
|
3
3
|
import { InsertDialog } from './viewer-insert-dialog.js';
|
|
4
|
+
import { InsertChartDialog } from './viewer-insert-chart.js';
|
|
4
5
|
type Run = (action: () => Promise<void>, success: string) => void;
|
|
5
6
|
/**
|
|
6
7
|
* Insert-tab Pictures, Link and ScreenTip, plus Ctrl+click link following. Pictures are read
|
|
@@ -15,6 +16,7 @@ export declare class ViewerInsert {
|
|
|
15
16
|
readonly input: HTMLInputElement;
|
|
16
17
|
readonly link: InsertDialog;
|
|
17
18
|
readonly tip: InsertDialog;
|
|
19
|
+
readonly chart: InsertChartDialog;
|
|
18
20
|
constructor(root: ShadowRoot, controller: ViewerController, announce: (message: string) => void, run: Run);
|
|
19
21
|
open(item: VisioInsertItem): void;
|
|
20
22
|
close(): void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { type OfficeOptionCategory } from '../controls.js';
|
|
2
|
+
/** Undo depth is bounded by the retained drawing snapshots (see EDIT_HISTORY_LIMITS). */
|
|
3
|
+
export declare const MAX_UNDO_LEVELS = 19;
|
|
2
4
|
/**
|
|
3
5
|
* Visio's File > Options categories, in Visio's order, built from the shared Office categories
|
|
4
6
|
* (`unavailableCategory`, `userInterfaceSection`, `personalizeSection`). User name and Initials
|