@a3s-lab/office 0.18.0 → 0.20.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 (32) hide show
  1. package/README.md +19 -6
  2. package/dist/0~3635.js +23 -2
  3. package/dist/0~spreadsheet-editor.js +4457 -4022
  4. package/dist/0~work-office-diagnostics.js +1 -1
  5. package/dist/4104.js +693 -279
  6. package/dist/{1992.js → 6164.js} +107 -1
  7. package/dist/core.js +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/internal/features/work/editors/office-color-picker.d.ts +6 -1
  10. package/dist/internal/features/work/editors/spreadsheet-alignment-ribbon.d.ts +7 -0
  11. package/dist/internal/features/work/editors/spreadsheet-cell-format.d.ts +2 -0
  12. package/dist/internal/features/work/editors/spreadsheet-clipboard-ribbon.d.ts +7 -0
  13. package/dist/internal/features/work/editors/spreadsheet-command-catalog.d.ts +119 -9
  14. package/dist/internal/features/work/editors/spreadsheet-command-controller.d.ts +4 -2
  15. package/dist/internal/features/work/editors/spreadsheet-command-selection.d.ts +3 -0
  16. package/dist/internal/features/work/editors/spreadsheet-editing-ribbon.d.ts +6 -0
  17. package/dist/internal/features/work/editors/spreadsheet-keyboard-shortcut-runners.d.ts +16 -0
  18. package/dist/internal/features/work/editors/spreadsheet-keyboard-shortcuts.d.ts +3 -0
  19. package/dist/internal/features/work/editors/spreadsheet-rows-columns-ribbon.d.ts +5 -0
  20. package/dist/internal/features/work/editors/spreadsheet-selection-navigation-command.d.ts +3 -0
  21. package/dist/internal/features/work/editors/spreadsheet-structure-command.d.ts +5 -0
  22. package/dist/internal/features/work/editors/spreadsheet-text-orientation-command.d.ts +18 -0
  23. package/dist/internal/features/work/editors/spreadsheet-view-ribbon.d.ts +8 -0
  24. package/dist/internal/features/work/editors/spreadsheet-visibility-shortcuts.d.ts +3 -0
  25. package/dist/internal/features/work/work-spreadsheet-text-orientation.d.ts +21 -0
  26. package/dist/internal/features/work/work-xlsx-cell-style-origin.d.ts +44 -0
  27. package/dist/internal/features/work/work-xlsx-cell-style-values.d.ts +26 -0
  28. package/dist/internal/features/work/work-xlsx-cell-style-writer.d.ts +4 -1
  29. package/dist/internal/features/work/work-xlsx-cell-styles.d.ts +2 -0
  30. package/dist/office-kernel.wasm +0 -0
  31. package/dist/styles.css +103 -0
  32. package/package.json +6 -1
package/dist/styles.css CHANGED
@@ -5008,6 +5008,47 @@ html[data-ds-resizing="horizontal"], html[data-ds-resizing="horizontal"] * {
5008
5008
  padding: 8px;
5009
5009
  }
5010
5010
 
5011
+ .work-office-color-reset {
5012
+ border: 0;
5013
+ border-bottom: 1px solid var(--a3s-line);
5014
+ width: 100%;
5015
+ min-height: 30px;
5016
+ color: var(--a3s-ink);
5017
+ font: inherit;
5018
+ text-align: start;
5019
+ cursor: pointer;
5020
+ background: none;
5021
+ outline: 0;
5022
+ align-items: center;
5023
+ gap: 8px;
5024
+ margin-bottom: 7px;
5025
+ padding: 4px 6px 7px;
5026
+ font-size: 10px;
5027
+ display: flex;
5028
+ }
5029
+
5030
+ .work-office-color-reset:hover, .work-office-color-reset:focus-visible {
5031
+ background: var(--a3s-panel-soft);
5032
+ color: var(--work-office-control-accent, var(--a3s-blue));
5033
+ }
5034
+
5035
+ .work-office-color-reset-swatch {
5036
+ border: 1px solid var(--a3s-line-strong);
5037
+ background: var(--a3s-panel);
5038
+ width: 19px;
5039
+ height: 16px;
5040
+ color: var(--a3s-red);
5041
+ border-radius: 3px;
5042
+ flex: 0 0 19px;
5043
+ place-items: center;
5044
+ display: grid;
5045
+ }
5046
+
5047
+ .work-office-color-reset[data-kind="automatic"] .work-office-color-reset-swatch {
5048
+ box-shadow: inset 0 0 0 2px var(--a3s-panel);
5049
+ background: #111827;
5050
+ }
5051
+
5011
5052
  .work-office-color-palette {
5012
5053
  gap: 6px;
5013
5054
  display: grid;
@@ -5142,6 +5183,20 @@ html[data-ds-resizing="horizontal"], html[data-ds-resizing="horizontal"] * {
5142
5183
  gap: 7px;
5143
5184
  }
5144
5185
 
5186
+ .work-office-color-reset {
5187
+ border-radius: 7px 7px 0 0;
5188
+ min-height: 44px;
5189
+ margin-bottom: 8px;
5190
+ padding: 8px 9px 9px;
5191
+ font-size: 11px;
5192
+ }
5193
+
5194
+ .work-office-color-reset-swatch {
5195
+ flex-basis: 24px;
5196
+ width: 24px;
5197
+ height: 20px;
5198
+ }
5199
+
5145
5200
  .work-office-color-section-title {
5146
5201
  font-size: 10px;
5147
5202
  }
@@ -14985,6 +15040,37 @@ button.work-office-collaboration-participant:hover .work-office-collaboration-lo
14985
15040
  grid-template-columns: 20px minmax(0, 1fr);
14986
15041
  }
14987
15042
 
15043
+ .work-spreadsheet-orientation-menu > button, .work-spreadsheet-rows-columns-menu > button {
15044
+ grid-template-columns: 20px minmax(0, 1fr) auto;
15045
+ }
15046
+
15047
+ .work-spreadsheet-orientation-menu > button:after {
15048
+ border: 1px solid var(--a3s-faint);
15049
+ content: "";
15050
+ border-radius: 50%;
15051
+ width: 9px;
15052
+ height: 9px;
15053
+ }
15054
+
15055
+ .work-spreadsheet-orientation-menu > button[aria-checked="true"]:after {
15056
+ border-color: var(--work-office-menu-accent);
15057
+ background: var(--work-office-menu-accent);
15058
+ box-shadow: inset 0 0 0 2px var(--a3s-overlay-surface);
15059
+ }
15060
+
15061
+ .work-spreadsheet-orientation-glyph {
15062
+ stroke: currentColor;
15063
+ stroke-width: 1.45px;
15064
+ stroke-linecap: round;
15065
+ stroke-linejoin: round;
15066
+ flex: none;
15067
+ overflow: visible;
15068
+ }
15069
+
15070
+ .work-spreadsheet-orientation-trigger.active .work-spreadsheet-orientation-glyph {
15071
+ color: var(--work-spreadsheet-accent);
15072
+ }
15073
+
14988
15074
  .work-spreadsheet-find-select-menu > button, .work-spreadsheet-paste-menu > button {
14989
15075
  grid-template-columns: 20px minmax(0, 1fr) auto;
14990
15076
  }
@@ -15021,6 +15107,23 @@ button.work-office-collaboration-participant:hover .work-office-collaboration-lo
15021
15107
  color: currentColor;
15022
15108
  }
15023
15109
 
15110
+ @media (width <= 640px) {
15111
+ .work-spreadsheet-orientation-menu, .work-spreadsheet-rows-columns-menu {
15112
+ border-radius: 12px;
15113
+ width: calc(100vw - 16px);
15114
+ max-width: none;
15115
+ max-height: min(68dvh, 520px);
15116
+ padding: 8px;
15117
+ }
15118
+
15119
+ .work-spreadsheet-orientation-menu > button, .work-spreadsheet-rows-columns-menu > button {
15120
+ gap: 10px;
15121
+ min-height: 44px;
15122
+ padding: 9px 10px;
15123
+ font-size: 12px;
15124
+ }
15125
+ }
15126
+
15024
15127
  .work-spreadsheet-cell-style-panel {
15025
15128
  gap: 10px;
15026
15129
  width: min(440px, 100vw - 32px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a3s-lab/office",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "description": "Open-source collaborative browser editors for documents, Markdown, spreadsheets, presentations, and PDFs.",
5
5
  "keywords": [
6
6
  "office",
@@ -88,6 +88,7 @@
88
88
  "playground:typecheck": "tsc --noEmit -p playground/tsconfig.json",
89
89
  "playground:visual": "playwright test --config playwright.config.ts",
90
90
  "playground:visual:spreadsheet-data-validation": "playwright test visual-tests/spreadsheet-data-validation.functional.spec.ts --config playwright.config.ts",
91
+ "playground:visual:spreadsheet-font-colors-shortcuts": "playwright test visual-tests/spreadsheet-font-colors-shortcuts.functional.spec.ts --config playwright.config.ts",
91
92
  "playground:visual:spreadsheet-hyperlink": "playwright test visual-tests/spreadsheet-hyperlink.functional.spec.ts --config playwright.config.ts",
92
93
  "playground:visual:spreadsheet-ribbon": "playwright test visual-tests/spreadsheet-ribbon.functional.spec.ts --config playwright.config.ts",
93
94
  "playground:visual:spreadsheet-underline": "playwright test visual-tests/spreadsheet-underline.functional.spec.ts --config playwright.config.ts",
@@ -134,6 +135,10 @@
134
135
  "test:e2e:writer-ribbon:check": "a3s-test check tests/e2e/word-ribbon-collapse.acl --json",
135
136
  "test:e2e:spreadsheet-ribbon": "a3s-test run tests/e2e/spreadsheet-ribbon-alignment.acl --json",
136
137
  "test:e2e:spreadsheet-ribbon:check": "a3s-test check tests/e2e/spreadsheet-ribbon-alignment.acl --json",
138
+ "test:e2e:spreadsheet-orientation-visibility": "a3s-test run tests/e2e/spreadsheet-ribbon-orientation-visibility.acl --json",
139
+ "test:e2e:spreadsheet-orientation-visibility:check": "a3s-test check tests/e2e/spreadsheet-ribbon-orientation-visibility.acl --json",
140
+ "test:e2e:spreadsheet-font-colors-shortcuts": "a3s-test run tests/e2e/spreadsheet-font-colors-shortcuts.acl --json",
141
+ "test:e2e:spreadsheet-font-colors-shortcuts:check": "a3s-test check tests/e2e/spreadsheet-font-colors-shortcuts.acl --json",
137
142
  "test:e2e:spreadsheet-cell-style": "a3s-test run tests/e2e/spreadsheet-cell-style.acl --json",
138
143
  "test:e2e:spreadsheet-cell-style:check": "a3s-test check tests/e2e/spreadsheet-cell-style.acl --json",
139
144
  "test:e2e:spreadsheet-font-size-border-shortcuts": "a3s-test run tests/e2e/spreadsheet-font-size-border-shortcuts.acl --json",