ooxml-ui 0.16.1 → 0.16.2
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/dist/{chunk-A46H2JBV.js → chunk-HSM56NH6.js} +1 -1
- package/dist/{chunk-2XJDHLPW.js → chunk-QELTZLUJ.js} +18 -18
- package/dist/{chunk-NDEB6EBU.js → chunk-XPYONXNE.js} +4 -1
- package/dist/{chunk-VUXNXH4Q.js → chunk-YFT6FYOP.js} +1 -1
- package/dist/{chunk-VYF7LGXZ.js → chunk-YM2DT6QD.js} +1 -1
- package/dist/controls.js +4 -4
- package/dist/icons.js +2 -2
- package/dist/index.js +8 -8
- package/dist/presence.js +2 -2
- package/dist/registry.d.ts +6 -0
- package/dist/smartart.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createIconSvg, paintIcon, defineIcon } from './chunk-
|
|
2
|
-
import { initialsOf } from './chunk-
|
|
3
|
-
import { definer, attachStyles, controlCss, emit } from './chunk-
|
|
1
|
+
import { createIconSvg, paintIcon, defineIcon } from './chunk-YFT6FYOP.js';
|
|
2
|
+
import { initialsOf } from './chunk-YM2DT6QD.js';
|
|
3
|
+
import { definer, attachStyles, controlCss, present, emit } from './chunk-XPYONXNE.js';
|
|
4
4
|
import { tok, FOCUS_RING, OFFICE_TOKENS } from './chunk-4MT4OIAJ.js';
|
|
5
5
|
|
|
6
6
|
// src/chrome-controls.ts
|
|
@@ -613,13 +613,13 @@ var defineRadio = definer("office-ui-radio", () => {
|
|
|
613
613
|
return this.hasAttribute("checked");
|
|
614
614
|
}
|
|
615
615
|
set checked(next) {
|
|
616
|
-
this.toggleAttribute("checked",
|
|
616
|
+
this.toggleAttribute("checked", present(next));
|
|
617
617
|
}
|
|
618
618
|
get disabled() {
|
|
619
619
|
return this.hasAttribute("disabled");
|
|
620
620
|
}
|
|
621
621
|
set disabled(next) {
|
|
622
|
-
this.toggleAttribute("disabled",
|
|
622
|
+
this.toggleAttribute("disabled", present(next));
|
|
623
623
|
}
|
|
624
624
|
get value() {
|
|
625
625
|
return this.getAttribute("value") ?? "on";
|
|
@@ -752,7 +752,7 @@ var defineRibbonToggle = definer("office-ui-ribbon-toggle", () => {
|
|
|
752
752
|
return this.hasAttribute("checked");
|
|
753
753
|
}
|
|
754
754
|
set checked(value) {
|
|
755
|
-
this.toggleAttribute("checked",
|
|
755
|
+
this.toggleAttribute("checked", present(value));
|
|
756
756
|
}
|
|
757
757
|
sync() {
|
|
758
758
|
const label = this.getAttribute("label") ?? "";
|
|
@@ -856,7 +856,7 @@ var defineSearchField = definer("office-ui-search", () => {
|
|
|
856
856
|
return this.hasAttribute("disabled");
|
|
857
857
|
}
|
|
858
858
|
set disabled(next) {
|
|
859
|
-
this.toggleAttribute("disabled",
|
|
859
|
+
this.toggleAttribute("disabled", present(next));
|
|
860
860
|
}
|
|
861
861
|
focus(options) {
|
|
862
862
|
this.input.focus(options);
|
|
@@ -971,7 +971,7 @@ var defineBackstage = definer("office-ui-backstage", () => {
|
|
|
971
971
|
return this.hasAttribute("open");
|
|
972
972
|
}
|
|
973
973
|
set open(value) {
|
|
974
|
-
this.toggleAttribute("open",
|
|
974
|
+
this.toggleAttribute("open", present(value));
|
|
975
975
|
}
|
|
976
976
|
get selected() {
|
|
977
977
|
return this.getAttribute("selected") ?? "";
|
|
@@ -1139,7 +1139,7 @@ var defineFindBar = definer("office-ui-find-bar", () => {
|
|
|
1139
1139
|
return this.hasAttribute("open");
|
|
1140
1140
|
}
|
|
1141
1141
|
set open(value) {
|
|
1142
|
-
this.toggleAttribute("open",
|
|
1142
|
+
this.toggleAttribute("open", present(value));
|
|
1143
1143
|
}
|
|
1144
1144
|
get value() {
|
|
1145
1145
|
return this.#input.value;
|
|
@@ -1894,7 +1894,7 @@ var defineButton = definer("office-ui-button", () => {
|
|
|
1894
1894
|
return this.hasAttribute("disabled");
|
|
1895
1895
|
}
|
|
1896
1896
|
set disabled(value) {
|
|
1897
|
-
this.toggleAttribute("disabled",
|
|
1897
|
+
this.toggleAttribute("disabled", present(value));
|
|
1898
1898
|
}
|
|
1899
1899
|
get pressed() {
|
|
1900
1900
|
const value = this.getAttribute("pressed");
|
|
@@ -2033,13 +2033,13 @@ function makeCheckable(role, css) {
|
|
|
2033
2033
|
return this.hasAttribute("checked");
|
|
2034
2034
|
}
|
|
2035
2035
|
set checked(value) {
|
|
2036
|
-
this.toggleAttribute("checked",
|
|
2036
|
+
this.toggleAttribute("checked", present(value));
|
|
2037
2037
|
}
|
|
2038
2038
|
get disabled() {
|
|
2039
2039
|
return this.hasAttribute("disabled");
|
|
2040
2040
|
}
|
|
2041
2041
|
set disabled(value) {
|
|
2042
|
-
this.toggleAttribute("disabled",
|
|
2042
|
+
this.toggleAttribute("disabled", present(value));
|
|
2043
2043
|
}
|
|
2044
2044
|
get value() {
|
|
2045
2045
|
return this.getAttribute("value") ?? "on";
|
|
@@ -2155,7 +2155,7 @@ var defineDialog = definer("office-ui-dialog", () => {
|
|
|
2155
2155
|
return this.hasAttribute("open");
|
|
2156
2156
|
}
|
|
2157
2157
|
set open(value) {
|
|
2158
|
-
this.toggleAttribute("open",
|
|
2158
|
+
this.toggleAttribute("open", present(value));
|
|
2159
2159
|
}
|
|
2160
2160
|
show() {
|
|
2161
2161
|
this.open = true;
|
|
@@ -2940,7 +2940,7 @@ var defineMenuItem = definer("office-ui-menu-item", () => {
|
|
|
2940
2940
|
return this.hasAttribute("disabled");
|
|
2941
2941
|
}
|
|
2942
2942
|
set disabled(value) {
|
|
2943
|
-
this.toggleAttribute("disabled",
|
|
2943
|
+
this.toggleAttribute("disabled", present(value));
|
|
2944
2944
|
}
|
|
2945
2945
|
/** Focus the menuitem itself, so arrow navigation never depends on delegatesFocus. */
|
|
2946
2946
|
focus(options) {
|
|
@@ -3048,7 +3048,7 @@ var defineMenuButton = definer("office-ui-menu-button", () => {
|
|
|
3048
3048
|
return this.hasAttribute("disabled");
|
|
3049
3049
|
}
|
|
3050
3050
|
set disabled(value) {
|
|
3051
|
-
this.toggleAttribute("disabled",
|
|
3051
|
+
this.toggleAttribute("disabled", present(value));
|
|
3052
3052
|
}
|
|
3053
3053
|
get open() {
|
|
3054
3054
|
return this.caret.getAttribute("aria-expanded") === "true";
|
|
@@ -3280,7 +3280,7 @@ var defineOptionsDialog = definer("office-ui-options-dialog", () => {
|
|
|
3280
3280
|
return this.hasAttribute("open");
|
|
3281
3281
|
}
|
|
3282
3282
|
set open(value) {
|
|
3283
|
-
this.toggleAttribute("open",
|
|
3283
|
+
this.toggleAttribute("open", present(value));
|
|
3284
3284
|
}
|
|
3285
3285
|
show() {
|
|
3286
3286
|
this.open = true;
|
|
@@ -4005,7 +4005,7 @@ var defineSelect = definer("office-ui-select", () => {
|
|
|
4005
4005
|
return this.hasAttribute("disabled");
|
|
4006
4006
|
}
|
|
4007
4007
|
set disabled(next) {
|
|
4008
|
-
this.toggleAttribute("disabled",
|
|
4008
|
+
this.toggleAttribute("disabled", present(next));
|
|
4009
4009
|
}
|
|
4010
4010
|
focus(options) {
|
|
4011
4011
|
this.trigger.focus(options);
|
|
@@ -4546,7 +4546,7 @@ var defineZoomSlider = definer("office-ui-zoom-slider", () => {
|
|
|
4546
4546
|
return this.hasAttribute("disabled");
|
|
4547
4547
|
}
|
|
4548
4548
|
set disabled(value) {
|
|
4549
|
-
this.toggleAttribute("disabled",
|
|
4549
|
+
this.toggleAttribute("disabled", present(value));
|
|
4550
4550
|
}
|
|
4551
4551
|
/** Office buttons snap to the next multiple of `step`, so 67% steps to 70%, not 77%. */
|
|
4552
4552
|
stepBy(direction) {
|
|
@@ -32,6 +32,9 @@ function emit(host, type, detail, cancelable = false) {
|
|
|
32
32
|
new CustomEvent(type, { detail, bubbles: true, composed: true, cancelable })
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
+
function present(value) {
|
|
36
|
+
return value === "" || Boolean(value);
|
|
37
|
+
}
|
|
35
38
|
|
|
36
39
|
// src/styles.ts
|
|
37
40
|
var sheetsByDocument = /* @__PURE__ */ new WeakMap();
|
|
@@ -72,4 +75,4 @@ var COMMON_CONTROL_CSS = `
|
|
|
72
75
|
var controlCss = (css) => `${COMMON_CONTROL_CSS}
|
|
73
76
|
${css}`;
|
|
74
77
|
|
|
75
|
-
export { CONTRACT_REVISION, attachStyles, controlCss, definer, emit };
|
|
78
|
+
export { CONTRACT_REVISION, attachStyles, controlCss, definer, emit, present };
|
package/dist/controls.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CONTROL_DEFINERS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TOAST_VISIBLE_LIMIT, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonGroup, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineToasts, defineToolbar, defineZoomSlider, nextEnabledIndex, profileInitials, readOfficeProfile, registerControls, rulerDivisions, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-
|
|
2
|
-
export { defineIcon } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { CONTROL_DEFINERS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TOAST_VISIBLE_LIMIT, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonGroup, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineToasts, defineToolbar, defineZoomSlider, nextEnabledIndex, profileInitials, readOfficeProfile, registerControls, rulerDivisions, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-QELTZLUJ.js';
|
|
2
|
+
export { defineIcon } from './chunk-YFT6FYOP.js';
|
|
3
|
+
import './chunk-YM2DT6QD.js';
|
|
4
|
+
import './chunk-XPYONXNE.js';
|
|
5
5
|
import './chunk-4MT4OIAJ.js';
|
package/dist/icons.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ICON_CSS, createIconSvg, defineIcon, getIcon, listIcons, paintIcon, registerIcon } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { ICON_CSS, createIconSvg, defineIcon, getIcon, listIcons, paintIcon, registerIcon } from './chunk-YFT6FYOP.js';
|
|
2
|
+
import './chunk-XPYONXNE.js';
|
|
3
3
|
import './chunk-4MT4OIAJ.js';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { installOfficeUiTheme } from './chunk-F4TM7U4P.js';
|
|
2
2
|
export { THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme } from './chunk-F4TM7U4P.js';
|
|
3
|
-
import { registerControls } from './chunk-
|
|
4
|
-
export { CONTROL_DEFINERS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TOAST_VISIBLE_LIMIT, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonGroup, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineToasts, defineToolbar, defineZoomSlider, nextEnabledIndex, profileInitials, readOfficeProfile, registerControls, rulerDivisions, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-
|
|
5
|
-
export { ICON_CSS, createIconSvg, defineIcon, getIcon, listIcons, paintIcon, registerIcon } from './chunk-
|
|
6
|
-
import { definePresence } from './chunk-
|
|
7
|
-
export { definePresence, initialsOf, participantsFromAwareness } from './chunk-
|
|
8
|
-
import { defineSmartArt } from './chunk-
|
|
9
|
-
export { defineSmartArt, renderDiagramDrawing } from './chunk-
|
|
10
|
-
export { CONTRACT_REVISION } from './chunk-
|
|
3
|
+
import { registerControls } from './chunk-QELTZLUJ.js';
|
|
4
|
+
export { CONTROL_DEFINERS, DEFAULT_OFFICE_PROFILE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_TOAST_VISIBLE_LIMIT, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonGroup, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineTabStrip, defineToasts, defineToolbar, defineZoomSlider, nextEnabledIndex, profileInitials, readOfficeProfile, registerControls, rulerDivisions, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-QELTZLUJ.js';
|
|
5
|
+
export { ICON_CSS, createIconSvg, defineIcon, getIcon, listIcons, paintIcon, registerIcon } from './chunk-YFT6FYOP.js';
|
|
6
|
+
import { definePresence } from './chunk-YM2DT6QD.js';
|
|
7
|
+
export { definePresence, initialsOf, participantsFromAwareness } from './chunk-YM2DT6QD.js';
|
|
8
|
+
import { defineSmartArt } from './chunk-HSM56NH6.js';
|
|
9
|
+
export { defineSmartArt, renderDiagramDrawing } from './chunk-HSM56NH6.js';
|
|
10
|
+
export { CONTRACT_REVISION } from './chunk-XPYONXNE.js';
|
|
11
11
|
export { COMPACT, FOCUS_RING, OFFICE_TOKENS, TOUCH, tok } from './chunk-4MT4OIAJ.js';
|
|
12
12
|
|
|
13
13
|
// src/index.ts
|
package/dist/presence.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { definePresence, initialsOf, participantsFromAwareness } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { definePresence, initialsOf, participantsFromAwareness } from './chunk-YM2DT6QD.js';
|
|
2
|
+
import './chunk-XPYONXNE.js';
|
|
3
3
|
import './chunk-4MT4OIAJ.js';
|
package/dist/registry.d.ts
CHANGED
|
@@ -16,3 +16,9 @@ export declare function browserRegistry(): CustomElementRegistry | undefined;
|
|
|
16
16
|
export declare function definer(tag: string, make: () => CustomElementConstructor): Definer;
|
|
17
17
|
/** Bubbling, composed event: crosses shadow boundaries like the native ones do. */
|
|
18
18
|
export declare function emit<T>(host: HTMLElement, type: string, detail: T, cancelable?: boolean): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A boolean property value as its attribute would read it: `''` means present, as in
|
|
21
|
+
* `checked=""`. Frameworks that pass attribute idioms through properties (Svelte's
|
|
22
|
+
* `checked={on ? '' : undefined}`) therefore keep working.
|
|
23
|
+
*/
|
|
24
|
+
export declare function present(value: unknown): boolean;
|
package/dist/smartart.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { defineSmartArt, renderDiagramDrawing } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { defineSmartArt, renderDiagramDrawing } from './chunk-HSM56NH6.js';
|
|
2
|
+
import './chunk-XPYONXNE.js';
|
|
3
3
|
import './chunk-4MT4OIAJ.js';
|