@a3s-lab/office 0.29.0 → 0.31.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 (61) hide show
  1. package/README.md +117 -3
  2. package/dist/{0~7043.js → 0~4808.js} +347 -2
  3. package/dist/0~5050.js +10 -1
  4. package/dist/{0~5093.js → 0~7240.js} +465 -55
  5. package/dist/0~document-editor.js +1694 -187
  6. package/dist/0~spreadsheet-editor.js +183 -34
  7. package/dist/0~work-docx-export.js +507 -31
  8. package/dist/0~work-docx-import.js +41 -7
  9. package/dist/0~work-office-diagnostics.js +146 -5
  10. package/dist/1544.js +13 -1
  11. package/dist/4104.js +29 -6
  12. package/dist/4121.js +2340 -1
  13. package/dist/6282.js +1072 -1148
  14. package/dist/internal/features/work/editors/document-command-catalog.d.ts +45 -0
  15. package/dist/internal/features/work/editors/document-dom-selection.d.ts +7 -0
  16. package/dist/internal/features/work/editors/document-editor-support.d.ts +1 -0
  17. package/dist/internal/features/work/editors/document-font-dialog-model.d.ts +5 -2
  18. package/dist/internal/features/work/editors/document-font-dialog-run-shading-model.d.ts +23 -0
  19. package/dist/internal/features/work/editors/document-font-dialog-run-shading-section.d.ts +8 -0
  20. package/dist/internal/features/work/editors/document-index-dialog.d.ts +10 -0
  21. package/dist/internal/features/work/editors/document-index-entry-dialog.d.ts +10 -0
  22. package/dist/internal/features/work/editors/document-page-chrome-ribbon.d.ts +2 -1
  23. package/dist/internal/features/work/editors/document-proofing-dialog-model.d.ts +22 -0
  24. package/dist/internal/features/work/editors/document-proofing-dialog.d.ts +7 -0
  25. package/dist/internal/features/work/editors/document-references-ribbon.d.ts +19 -0
  26. package/dist/internal/features/work/editors/document-table-of-contents-dialog.d.ts +10 -0
  27. package/dist/internal/features/work/editors/document-toolbar.d.ts +6 -1
  28. package/dist/internal/features/work/editors/spreadsheet-data-validation.d.ts +7 -1
  29. package/dist/internal/features/work/editors/use-document-insert-commands.d.ts +5 -0
  30. package/dist/internal/features/work/work-document-character-formatting.d.ts +8 -0
  31. package/dist/internal/features/work/work-document-format-changes.d.ts +6 -0
  32. package/dist/internal/features/work/work-document-highlight.d.ts +9 -0
  33. package/dist/internal/features/work/work-document-index-fields.d.ts +19 -0
  34. package/dist/internal/features/work/work-document-index-nodes.d.ts +32 -0
  35. package/dist/internal/features/work/work-document-index.d.ts +63 -0
  36. package/dist/internal/features/work/work-document-outline.d.ts +1 -0
  37. package/dist/internal/features/work/work-document-paragraph-shading.d.ts +6 -0
  38. package/dist/internal/features/work/work-document-proofing.d.ts +19 -0
  39. package/dist/internal/features/work/work-document-run-shading.d.ts +12 -0
  40. package/dist/internal/features/work/work-document-table-of-contents-node.d.ts +18 -0
  41. package/dist/internal/features/work/work-document-table-of-contents.d.ts +51 -0
  42. package/dist/internal/features/work/work-document-word-line-metrics.d.ts +3 -0
  43. package/dist/internal/features/work/work-docx-field-instructions.d.ts +1 -1
  44. package/dist/internal/features/work/work-docx-import.d.ts +5 -1
  45. package/dist/internal/features/work/work-docx-index-export.d.ts +14 -0
  46. package/dist/internal/features/work/work-docx-index-import.d.ts +23 -0
  47. package/dist/internal/features/work/work-docx-proofing-diagnostics.d.ts +3 -0
  48. package/dist/internal/features/work/work-docx-proofing.d.ts +38 -0
  49. package/dist/internal/features/work/work-docx-run-formatting-import.d.ts +7 -0
  50. package/dist/internal/features/work/work-docx-run-shading-diagnostics.d.ts +3 -0
  51. package/dist/internal/features/work/work-docx-run-shading-export.d.ts +17 -0
  52. package/dist/internal/features/work/work-docx-run-shading.d.ts +20 -0
  53. package/dist/internal/features/work/work-docx-table-of-contents-export.d.ts +11 -0
  54. package/dist/internal/features/work/work-docx-table-of-contents-import.d.ts +15 -0
  55. package/dist/internal/features/work/work-spreadsheet-data-validation.d.ts +7 -0
  56. package/dist/internal/features/work/work-types.d.ts +9 -0
  57. package/dist/internal/kernel/office-kernel-protocol.d.ts +1 -0
  58. package/dist/office-kernel.wasm +0 -0
  59. package/dist/styles.css +607 -4
  60. package/docs/latest/en/browser-editor-architecture.md +64 -1
  61. package/package.json +15 -2
package/dist/styles.css CHANGED
@@ -9718,7 +9718,7 @@ button.work-office-collaboration-participant:hover .work-office-collaboration-lo
9718
9718
  display: grid;
9719
9719
  }
9720
9720
 
9721
- .work-document-font-dialog-run-border {
9721
+ .work-document-font-dialog-run-border, .work-document-font-dialog-run-shading {
9722
9722
  border: 1px solid color-mix(in srgb, var(--a3s-line) 78%, transparent);
9723
9723
  background: var(--a3s-panel-soft);
9724
9724
  border-radius: 8px;
@@ -9731,7 +9731,11 @@ button.work-office-collaboration-participant:hover .work-office-collaboration-lo
9731
9731
  display: grid;
9732
9732
  }
9733
9733
 
9734
- .work-document-font-dialog-run-border > legend {
9734
+ .work-document-font-dialog-run-shading {
9735
+ grid-template-columns: repeat(4, minmax(0, 1fr));
9736
+ }
9737
+
9738
+ .work-document-font-dialog-run-border > legend, .work-document-font-dialog-run-shading > legend {
9735
9739
  color: var(--a3s-muted);
9736
9740
  padding: 0 4px;
9737
9741
  font-size: 11px;
@@ -9815,7 +9819,7 @@ button.work-office-collaboration-participant:hover .work-office-collaboration-lo
9815
9819
  grid-template-columns: repeat(2, minmax(0, 1fr));
9816
9820
  }
9817
9821
 
9818
- .work-document-font-dialog-run-border {
9822
+ .work-document-font-dialog-run-border, .work-document-font-dialog-run-shading {
9819
9823
  grid-template-columns: minmax(0, 1fr);
9820
9824
  }
9821
9825
 
@@ -9828,6 +9832,104 @@ button.work-office-collaboration-participant:hover .work-office-collaboration-lo
9828
9832
  }
9829
9833
  }
9830
9834
 
9835
+ .work-document-proofing-dialog {
9836
+ width: min(640px, 100%);
9837
+ }
9838
+
9839
+ .work-document-proofing-dialog form {
9840
+ gap: 16px;
9841
+ display: grid;
9842
+ }
9843
+
9844
+ .work-document-proofing-dialog fieldset {
9845
+ border: 1px solid var(--a3s-line);
9846
+ border-radius: 10px;
9847
+ grid-template-columns: repeat(3, minmax(0, 1fr));
9848
+ gap: 14px;
9849
+ margin: 0;
9850
+ padding: 15px 16px 17px;
9851
+ display: grid;
9852
+ }
9853
+
9854
+ .work-document-proofing-dialog legend {
9855
+ color: var(--a3s-ink);
9856
+ padding: 0 5px;
9857
+ font-size: 11px;
9858
+ font-weight: 700;
9859
+ }
9860
+
9861
+ .work-document-proofing-dialog-language {
9862
+ align-content: start;
9863
+ gap: 6px;
9864
+ min-width: 0;
9865
+ display: grid;
9866
+ }
9867
+
9868
+ .work-document-proofing-dialog-language > label, .work-document-proofing-dialog-state-label {
9869
+ color: var(--a3s-muted);
9870
+ font-size: 11px;
9871
+ font-weight: 650;
9872
+ }
9873
+
9874
+ .work-document-proofing-dialog-language > div {
9875
+ grid-template-columns: minmax(0, 1fr) auto;
9876
+ gap: 6px;
9877
+ display: grid;
9878
+ }
9879
+
9880
+ .work-document-proofing-dialog-language .work-office-text-field {
9881
+ width: 100%;
9882
+ min-width: 0;
9883
+ }
9884
+
9885
+ .work-document-proofing-dialog-language .ds-button {
9886
+ white-space: nowrap;
9887
+ padding-inline: 9px;
9888
+ }
9889
+
9890
+ .work-document-proofing-dialog-language > p, .work-document-proofing-dialog-state > p, .work-document-proofing-dialog-help, .work-document-proofing-dialog-error {
9891
+ margin: 0;
9892
+ font-size: 11px;
9893
+ line-height: 1.5;
9894
+ }
9895
+
9896
+ .work-document-proofing-dialog-language > p, .work-document-proofing-dialog-state > p, .work-document-proofing-dialog-help {
9897
+ color: var(--a3s-muted);
9898
+ }
9899
+
9900
+ .work-document-proofing-dialog-state {
9901
+ border: 1px solid var(--a3s-line);
9902
+ background: var(--a3s-panel-soft);
9903
+ border-radius: 10px;
9904
+ grid-template-columns: minmax(110px, auto) minmax(220px, 1fr);
9905
+ align-items: center;
9906
+ gap: 8px 14px;
9907
+ padding: 14px 16px;
9908
+ display: grid;
9909
+ }
9910
+
9911
+ .work-document-proofing-dialog-state > p {
9912
+ grid-column: 1 / -1;
9913
+ }
9914
+
9915
+ .work-document-proofing-dialog-state .work-office-select, .work-document-proofing-dialog-state button[role="combobox"] {
9916
+ width: 100%;
9917
+ }
9918
+
9919
+ .work-document-proofing-dialog-help code {
9920
+ color: var(--a3s-ink);
9921
+ }
9922
+
9923
+ .work-document-proofing-dialog-error {
9924
+ color: var(--a3s-red);
9925
+ }
9926
+
9927
+ @media (width <= 620px) {
9928
+ .work-document-proofing-dialog fieldset, .work-document-proofing-dialog-state {
9929
+ grid-template-columns: minmax(0, 1fr);
9930
+ }
9931
+ }
9932
+
9831
9933
  [data-office-character-position-half-points] {
9832
9934
  vertical-align: var(--work-document-character-position);
9833
9935
  }
@@ -12453,6 +12555,496 @@ sub [data-office-character-position-half-points], sup [data-office-character-pos
12453
12555
  padding: 0;
12454
12556
  }
12455
12557
 
12558
+ .work-document-table-of-contents {
12559
+ box-sizing: border-box;
12560
+ border: 1px solid color-mix(in srgb, var(--a3s-line) 82%, #8aa7d8);
12561
+ background: color-mix(in srgb, var(--a3s-panel) 96%, #edf4ff);
12562
+ width: 100%;
12563
+ color: var(--a3s-ink);
12564
+ cursor: default;
12565
+ border-radius: 6px;
12566
+ margin: 14px 0 20px;
12567
+ padding: 14px 16px 16px;
12568
+ }
12569
+
12570
+ .work-document-table-of-contents.ProseMirror-selectednode {
12571
+ border-color: var(--a3s-blue);
12572
+ outline: 2px solid color-mix(in srgb, var(--a3s-blue) 22%, transparent);
12573
+ outline-offset: 2px;
12574
+ }
12575
+
12576
+ .work-document-table-of-contents-header {
12577
+ border-bottom: 1px solid var(--a3s-line);
12578
+ justify-content: space-between;
12579
+ align-items: baseline;
12580
+ gap: 12px;
12581
+ margin-bottom: 10px;
12582
+ padding-bottom: 7px;
12583
+ display: flex;
12584
+ }
12585
+
12586
+ .work-document-table-of-contents-header strong {
12587
+ font-family: var(--a3s-font-display, inherit);
12588
+ letter-spacing: -.02em;
12589
+ font-size: 18px;
12590
+ font-weight: 680;
12591
+ }
12592
+
12593
+ .work-document-table-of-contents-header span {
12594
+ color: var(--a3s-muted);
12595
+ font-variant-numeric: tabular-nums;
12596
+ font-size: 9px;
12597
+ }
12598
+
12599
+ .work-document-table-of-contents-list {
12600
+ gap: 3px;
12601
+ margin: 0;
12602
+ padding: 0;
12603
+ list-style: none;
12604
+ display: grid;
12605
+ }
12606
+
12607
+ .work-document-table-of-contents-list > li {
12608
+ min-width: 0;
12609
+ padding-left: calc((var(--work-toc-level, 1) - 1) * 16px);
12610
+ align-items: baseline;
12611
+ gap: 5px;
12612
+ font-size: 11px;
12613
+ line-height: 1.6;
12614
+ display: flex;
12615
+ }
12616
+
12617
+ .work-document-table-of-contents-list a, .work-document-table-of-contents-list li > span:first-child {
12618
+ color: inherit;
12619
+ text-overflow: ellipsis;
12620
+ white-space: nowrap;
12621
+ text-decoration: none;
12622
+ overflow: hidden;
12623
+ }
12624
+
12625
+ .work-document-table-of-contents-list a:hover {
12626
+ color: var(--a3s-blue);
12627
+ text-decoration: underline;
12628
+ }
12629
+
12630
+ .work-document-table-of-contents-list i {
12631
+ border-bottom: 1px dotted
12632
+ color-mix(in srgb, var(--a3s-muted) 68%, transparent);
12633
+ flex: 24px;
12634
+ min-width: 12px;
12635
+ transform: translateY(-2px);
12636
+ }
12637
+
12638
+ .work-document-table-of-contents[data-toc-leader="dash"] .work-document-table-of-contents-list i {
12639
+ border-bottom-style: dashed;
12640
+ }
12641
+
12642
+ .work-document-table-of-contents[data-toc-leader="underline"] .work-document-table-of-contents-list i {
12643
+ border-bottom-style: solid;
12644
+ }
12645
+
12646
+ .work-document-table-of-contents[data-toc-leader="none"] .work-document-table-of-contents-list i, .work-document-table-of-contents[data-toc-right-align-page-numbers="false"] .work-document-table-of-contents-list i {
12647
+ border: 0;
12648
+ flex: 0 0 5px;
12649
+ min-width: 5px;
12650
+ }
12651
+
12652
+ .work-document-table-of-contents-page {
12653
+ font-variant-numeric: tabular-nums;
12654
+ flex: none;
12655
+ }
12656
+
12657
+ .work-document-table-of-contents-empty {
12658
+ color: var(--a3s-muted);
12659
+ font-style: italic;
12660
+ padding-left: 0 !important;
12661
+ }
12662
+
12663
+ .work-document-table-of-contents-dialog {
12664
+ width: min(520px, 100%);
12665
+ }
12666
+
12667
+ .work-document-table-of-contents-dialog-grid {
12668
+ grid-template-columns: repeat(2, minmax(0, 1fr));
12669
+ gap: 10px;
12670
+ display: grid;
12671
+ }
12672
+
12673
+ .work-document-table-of-contents-dialog-field, .work-document-table-of-contents-dialog-leader {
12674
+ min-width: 0;
12675
+ color: var(--a3s-muted);
12676
+ gap: 6px;
12677
+ font-size: 10px;
12678
+ display: grid;
12679
+ }
12680
+
12681
+ .work-document-table-of-contents-dialog-grid .work-office-select, .work-document-table-of-contents-dialog-leader .work-office-select {
12682
+ width: 100%;
12683
+ }
12684
+
12685
+ .work-document-table-of-contents-dialog-options {
12686
+ border: 1px solid var(--a3s-line);
12687
+ background: var(--a3s-panel-soft);
12688
+ border-radius: 7px;
12689
+ grid-template-columns: repeat(3, minmax(0, 1fr));
12690
+ gap: 8px;
12691
+ margin: 14px 0;
12692
+ padding: 10px;
12693
+ display: grid;
12694
+ }
12695
+
12696
+ .work-document-table-of-contents-dialog-preview {
12697
+ border: 1px solid var(--a3s-line);
12698
+ background: var(--a3s-bg);
12699
+ min-width: 0;
12700
+ color: var(--a3s-ink);
12701
+ border-radius: 7px;
12702
+ gap: 5px;
12703
+ margin-top: 14px;
12704
+ padding: 14px;
12705
+ font-size: 10px;
12706
+ display: grid;
12707
+ }
12708
+
12709
+ .work-document-table-of-contents-dialog-preview > legend {
12710
+ margin-bottom: 4px;
12711
+ font-size: 14px;
12712
+ }
12713
+
12714
+ .work-document-table-of-contents-dialog-preview > span {
12715
+ align-items: baseline;
12716
+ gap: 5px;
12717
+ display: flex;
12718
+ }
12719
+
12720
+ .work-document-table-of-contents-dialog-preview > span.nested {
12721
+ padding-left: 16px;
12722
+ }
12723
+
12724
+ .work-document-table-of-contents-dialog-preview i {
12725
+ border-bottom: 1px dotted var(--a3s-muted);
12726
+ flex: 1;
12727
+ }
12728
+
12729
+ .work-document-table-of-contents-dialog-preview[data-toc-leader="dash"] i {
12730
+ border-bottom-style: dashed;
12731
+ }
12732
+
12733
+ .work-document-table-of-contents-dialog-preview[data-toc-leader="underline"] i {
12734
+ border-bottom-style: solid;
12735
+ }
12736
+
12737
+ .work-document-table-of-contents-dialog-preview[data-toc-leader="none"] i, .work-document-table-of-contents-dialog-preview[data-toc-right-align-page-numbers="false"] i {
12738
+ border: 0;
12739
+ flex: 0 0 5px;
12740
+ }
12741
+
12742
+ @media (width <= 520px) {
12743
+ .work-document-table-of-contents {
12744
+ padding-inline: 12px;
12745
+ }
12746
+
12747
+ .work-document-table-of-contents-dialog-grid, .work-document-table-of-contents-dialog-options {
12748
+ grid-template-columns: 1fr;
12749
+ }
12750
+ }
12751
+
12752
+ .work-document-index-entry {
12753
+ border: 1px solid color-mix(in srgb, var(--a3s-blue) 34%, var(--a3s-line));
12754
+ background: color-mix(in srgb, var(--a3s-blue) 7%, var(--a3s-panel));
12755
+ max-width: min(260px, 80%);
12756
+ color: var(--a3s-ink);
12757
+ cursor: default;
12758
+ vertical-align: baseline;
12759
+ border-radius: 4px;
12760
+ align-items: baseline;
12761
+ gap: 5px;
12762
+ margin-inline: 3px;
12763
+ padding: 1px 5px;
12764
+ font-size: 9px;
12765
+ line-height: 1.45;
12766
+ display: inline-flex;
12767
+ }
12768
+
12769
+ .work-document-index-entry > span {
12770
+ color: color-mix(in srgb, var(--a3s-blue) 78%, var(--a3s-ink));
12771
+ white-space: nowrap;
12772
+ font-size: 8px;
12773
+ font-weight: 650;
12774
+ }
12775
+
12776
+ .work-document-index-entry > strong {
12777
+ text-overflow: ellipsis;
12778
+ white-space: nowrap;
12779
+ font-weight: 560;
12780
+ overflow: hidden;
12781
+ }
12782
+
12783
+ .work-document-index-entry.ProseMirror-selectednode {
12784
+ border-color: var(--a3s-blue);
12785
+ outline: 2px solid color-mix(in srgb, var(--a3s-blue) 22%, transparent);
12786
+ outline-offset: 1px;
12787
+ }
12788
+
12789
+ .work-document-index {
12790
+ box-sizing: border-box;
12791
+ border: 1px solid color-mix(in srgb, var(--a3s-line) 82%, #8aa7d8);
12792
+ background: color-mix(in srgb, var(--a3s-panel) 96%, #edf4ff);
12793
+ width: 100%;
12794
+ color: var(--a3s-ink);
12795
+ cursor: default;
12796
+ border-radius: 6px;
12797
+ margin: 14px 0 20px;
12798
+ padding: 14px 16px 16px;
12799
+ }
12800
+
12801
+ .work-document-index.ProseMirror-selectednode {
12802
+ border-color: var(--a3s-blue);
12803
+ outline: 2px solid color-mix(in srgb, var(--a3s-blue) 22%, transparent);
12804
+ outline-offset: 2px;
12805
+ }
12806
+
12807
+ .work-document-index-header {
12808
+ border-bottom: 1px solid var(--a3s-line);
12809
+ justify-content: space-between;
12810
+ align-items: baseline;
12811
+ gap: 12px;
12812
+ margin-bottom: 10px;
12813
+ padding-bottom: 7px;
12814
+ display: flex;
12815
+ }
12816
+
12817
+ .work-document-index-header strong {
12818
+ font-family: var(--a3s-font-display, inherit);
12819
+ letter-spacing: -.02em;
12820
+ font-size: 18px;
12821
+ font-weight: 680;
12822
+ }
12823
+
12824
+ .work-document-index-header span {
12825
+ color: var(--a3s-muted);
12826
+ font-variant-numeric: tabular-nums;
12827
+ font-size: 9px;
12828
+ }
12829
+
12830
+ .work-document-index-list {
12831
+ column-gap: 22px;
12832
+ margin: 0;
12833
+ padding: 0;
12834
+ list-style: none;
12835
+ }
12836
+
12837
+ .work-document-index[data-index-columns="2"] .work-document-index-list {
12838
+ column-count: 2;
12839
+ }
12840
+
12841
+ .work-document-index[data-index-columns="3"] .work-document-index-list {
12842
+ column-count: 3;
12843
+ }
12844
+
12845
+ .work-document-index[data-index-columns="4"] .work-document-index-list {
12846
+ column-count: 4;
12847
+ }
12848
+
12849
+ .work-document-index-list > li {
12850
+ break-inside: avoid;
12851
+ align-items: baseline;
12852
+ gap: 5px;
12853
+ min-width: 0;
12854
+ padding-block: 1px;
12855
+ font-size: 10px;
12856
+ line-height: 1.55;
12857
+ display: flex;
12858
+ }
12859
+
12860
+ .work-document-index-main, .work-document-index-sub {
12861
+ text-overflow: ellipsis;
12862
+ white-space: nowrap;
12863
+ overflow: hidden;
12864
+ }
12865
+
12866
+ .work-document-index-sub {
12867
+ color: color-mix(in srgb, var(--a3s-ink) 82%, var(--a3s-muted));
12868
+ padding-left: 12px;
12869
+ }
12870
+
12871
+ .work-document-index[data-index-format="run-in"] .work-document-index-sub {
12872
+ padding-left: 0;
12873
+ }
12874
+
12875
+ .work-document-index[data-index-format="run-in"] .work-document-index-sub:before {
12876
+ content: ", ";
12877
+ }
12878
+
12879
+ .work-document-index-list > li > i {
12880
+ border-bottom: 1px dotted
12881
+ color-mix(in srgb, var(--a3s-muted) 68%, transparent);
12882
+ flex: 20px;
12883
+ min-width: 10px;
12884
+ transform: translateY(-2px);
12885
+ }
12886
+
12887
+ .work-document-index[data-index-leader="dash"] .work-document-index-list > li > i {
12888
+ border-bottom-style: dashed;
12889
+ }
12890
+
12891
+ .work-document-index[data-index-leader="underline"] .work-document-index-list > li > i {
12892
+ border-bottom-style: solid;
12893
+ }
12894
+
12895
+ .work-document-index[data-index-leader="none"] .work-document-index-list > li > i, .work-document-index[data-index-right-align-page-numbers="false"] .work-document-index-list > li > i {
12896
+ border: 0;
12897
+ flex: 0 0 3px;
12898
+ min-width: 3px;
12899
+ }
12900
+
12901
+ .work-document-index-pages {
12902
+ font-variant-numeric: tabular-nums;
12903
+ flex: none;
12904
+ }
12905
+
12906
+ .work-document-index-pages a {
12907
+ color: inherit;
12908
+ text-decoration: none;
12909
+ }
12910
+
12911
+ .work-document-index-pages a:hover {
12912
+ color: var(--a3s-blue);
12913
+ text-decoration: underline;
12914
+ }
12915
+
12916
+ .work-document-index-pages a.bold {
12917
+ font-weight: 700;
12918
+ }
12919
+
12920
+ .work-document-index-pages a.italic {
12921
+ font-style: italic;
12922
+ }
12923
+
12924
+ .work-document-index-cross-reference, .work-document-index-empty {
12925
+ color: var(--a3s-muted);
12926
+ font-style: italic;
12927
+ }
12928
+
12929
+ .work-document-index-entry-dialog, .work-document-index-dialog {
12930
+ width: min(540px, 100%);
12931
+ }
12932
+
12933
+ .work-document-index-entry-dialog-fields, .work-document-index-dialog-grid {
12934
+ grid-template-columns: repeat(2, minmax(0, 1fr));
12935
+ gap: 10px;
12936
+ display: grid;
12937
+ }
12938
+
12939
+ .work-document-index-entry-dialog label, .work-document-index-dialog-field, .work-document-index-entry-dialog-mode {
12940
+ min-width: 0;
12941
+ color: var(--a3s-muted);
12942
+ gap: 6px;
12943
+ font-size: 10px;
12944
+ display: grid;
12945
+ }
12946
+
12947
+ .work-document-index-entry-dialog-mode, .work-document-index-dialog-options, .work-document-index-entry-dialog-page-style {
12948
+ border: 1px solid var(--a3s-line);
12949
+ background: var(--a3s-panel-soft);
12950
+ border-radius: 7px;
12951
+ margin-top: 14px;
12952
+ padding: 10px;
12953
+ }
12954
+
12955
+ .work-document-index-entry-dialog-page-style, .work-document-index-dialog-options {
12956
+ align-items: center;
12957
+ gap: 14px;
12958
+ display: flex;
12959
+ }
12960
+
12961
+ .work-document-index-entry-dialog-page-style > legend {
12962
+ color: var(--a3s-muted);
12963
+ padding-inline: 4px;
12964
+ font-size: 10px;
12965
+ }
12966
+
12967
+ .work-document-index-dialog-options > .work-document-index-dialog-field {
12968
+ min-width: 180px;
12969
+ margin-left: auto;
12970
+ }
12971
+
12972
+ .work-document-index-dialog .work-office-select {
12973
+ width: 100%;
12974
+ }
12975
+
12976
+ .work-document-index-dialog-preview {
12977
+ border: 1px solid var(--a3s-line);
12978
+ background: var(--a3s-bg);
12979
+ color: var(--a3s-ink);
12980
+ border-radius: 7px;
12981
+ gap: 5px;
12982
+ margin-top: 14px;
12983
+ padding: 14px;
12984
+ font-size: 10px;
12985
+ display: grid;
12986
+ }
12987
+
12988
+ .work-document-index-dialog-preview > legend {
12989
+ font-size: 14px;
12990
+ }
12991
+
12992
+ .work-document-index-dialog-preview > span {
12993
+ align-items: baseline;
12994
+ gap: 5px;
12995
+ display: flex;
12996
+ }
12997
+
12998
+ .work-document-index-dialog-preview > span.nested {
12999
+ padding-left: 16px;
13000
+ }
13001
+
13002
+ .work-document-index-dialog-preview[data-index-format="run-in"] > span.nested {
13003
+ padding-left: 0;
13004
+ }
13005
+
13006
+ .work-document-index-dialog-preview i {
13007
+ border-bottom: 1px dotted var(--a3s-muted);
13008
+ flex: 1;
13009
+ }
13010
+
13011
+ .work-document-index-dialog-preview[data-index-leader="dash"] i {
13012
+ border-bottom-style: dashed;
13013
+ }
13014
+
13015
+ .work-document-index-dialog-preview[data-index-leader="underline"] i {
13016
+ border-bottom-style: solid;
13017
+ }
13018
+
13019
+ .work-document-index-dialog-preview[data-index-leader="none"] i, .work-document-index-dialog-preview[data-index-right-align-page-numbers="false"] i {
13020
+ border: 0;
13021
+ flex: 0 0 5px;
13022
+ }
13023
+
13024
+ @media (width <= 560px) {
13025
+ .work-document-index {
13026
+ padding-inline: 12px;
13027
+ }
13028
+
13029
+ .work-document-index-list {
13030
+ column-count: 1 !important;
13031
+ }
13032
+
13033
+ .work-document-index-entry-dialog-fields, .work-document-index-dialog-grid {
13034
+ grid-template-columns: 1fr;
13035
+ }
13036
+
13037
+ .work-document-index-entry-dialog-page-style, .work-document-index-dialog-options {
13038
+ flex-direction: column;
13039
+ align-items: stretch;
13040
+ }
13041
+
13042
+ .work-document-index-dialog-options > .work-document-index-dialog-field {
13043
+ min-width: 0;
13044
+ margin-left: 0;
13045
+ }
13046
+ }
13047
+
12456
13048
  .work-document-equation {
12457
13049
  vertical-align: -.12em;
12458
13050
  border-radius: .2em;
@@ -17080,6 +17672,17 @@ sub [data-office-character-position-half-points], sup [data-office-character-pos
17080
17672
  padding: 8px 10px;
17081
17673
  }
17082
17674
 
17675
+ .work-spreadsheet-data-validation-message-grid {
17676
+ grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
17677
+ align-items: start;
17678
+ gap: 10px;
17679
+ display: grid;
17680
+ }
17681
+
17682
+ .work-spreadsheet-data-validation-message-grid .ds-field.message {
17683
+ grid-column: 1 / -1;
17684
+ }
17685
+
17083
17686
  .work-spreadsheet-data-validation-dialog textarea {
17084
17687
  resize: vertical;
17085
17688
  min-height: 70px;
@@ -17096,7 +17699,7 @@ sub [data-office-character-position-half-points], sup [data-office-character-pos
17096
17699
  }
17097
17700
 
17098
17701
  @media (width <= 560px) {
17099
- .work-spreadsheet-data-validation-condition-grid, .work-spreadsheet-data-validation-values.two, .work-spreadsheet-data-validation-behavior {
17702
+ .work-spreadsheet-data-validation-condition-grid, .work-spreadsheet-data-validation-values.two, .work-spreadsheet-data-validation-behavior, .work-spreadsheet-data-validation-message-grid {
17100
17703
  grid-template-columns: minmax(0, 1fr);
17101
17704
  }
17102
17705
  }