@univerjs/preset-sheets-core 1.0.0-alpha.8 → 1.0.0-beta.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/lib/cjs/index.js CHANGED
@@ -27,7 +27,6 @@ require("@univerjs/sheets-formula-ui/facade");
27
27
  * This presets helps you to create a Univer sheet with open sourced features.
28
28
  */
29
29
  function UniverSheetsCorePreset(config = {}) {
30
- var _sheets$protectedRang;
31
30
  const { container = "app", workerURL: workerSrc, header, footer, toolbar, ribbonType, formulaBar, menu, contextMenu, disableAutoFocus, customFontFamily, docs, sheets, formula, disableTextFormatAlert, disableTextFormatMark } = config;
32
31
  const useWorker = !!workerSrc;
33
32
  return { plugins: [
@@ -63,7 +62,7 @@ function UniverSheetsCorePreset(config = {}) {
63
62
  maxAutoHeightCount: sheets === null || sheets === void 0 ? void 0 : sheets.maxAutoHeightCount,
64
63
  clipboardConfig: sheets === null || sheets === void 0 ? void 0 : sheets.clipboardConfig,
65
64
  scrollConfig: sheets === null || sheets === void 0 ? void 0 : sheets.scrollConfig,
66
- protectedRangeShadow: (_sheets$protectedRang = sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) !== null && _sheets$protectedRang !== void 0 ? _sheets$protectedRang : true,
65
+ protectedRangeShadow: (sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) ?? true,
67
66
  protectedRangeUserSelector: sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeUserSelector,
68
67
  disableForceStringAlert: sheets === null || sheets === void 0 ? void 0 : sheets.disableForceStringAlert,
69
68
  disableForceStringMark: sheets === null || sheets === void 0 ? void 0 : sheets.disableForceStringMark
package/lib/es/index.js CHANGED
@@ -54,7 +54,6 @@ export * from "@univerjs/design"
54
54
  * This presets helps you to create a Univer sheet with open sourced features.
55
55
  */
56
56
  function UniverSheetsCorePreset(config = {}) {
57
- var _sheets$protectedRang;
58
57
  const { container = "app", workerURL: workerSrc, header, footer, toolbar, ribbonType, formulaBar, menu, contextMenu, disableAutoFocus, customFontFamily, docs, sheets, formula, disableTextFormatAlert, disableTextFormatMark } = config;
59
58
  const useWorker = !!workerSrc;
60
59
  return { plugins: [
@@ -90,7 +89,7 @@ function UniverSheetsCorePreset(config = {}) {
90
89
  maxAutoHeightCount: sheets === null || sheets === void 0 ? void 0 : sheets.maxAutoHeightCount,
91
90
  clipboardConfig: sheets === null || sheets === void 0 ? void 0 : sheets.clipboardConfig,
92
91
  scrollConfig: sheets === null || sheets === void 0 ? void 0 : sheets.scrollConfig,
93
- protectedRangeShadow: (_sheets$protectedRang = sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) !== null && _sheets$protectedRang !== void 0 ? _sheets$protectedRang : true,
92
+ protectedRangeShadow: (sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) ?? true,
94
93
  protectedRangeUserSelector: sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeUserSelector,
95
94
  disableForceStringAlert: sheets === null || sheets === void 0 ? void 0 : sheets.disableForceStringAlert,
96
95
  disableForceStringMark: sheets === null || sheets === void 0 ? void 0 : sheets.disableForceStringMark
package/lib/index.css CHANGED
@@ -91,10 +91,7 @@
91
91
  }
92
92
 
93
93
  .univer-inset-0 {
94
- top: 0;
95
- bottom: 0;
96
- left: 0;
97
- right: 0;
94
+ inset: 0;
98
95
  }
99
96
 
100
97
  .univer-inset-x-0 {
@@ -723,7 +720,6 @@
723
720
  }
724
721
 
725
722
  .univer-appearance-none {
726
- -webkit-appearance: none;
727
723
  appearance: none;
728
724
  }
729
725
 
@@ -2284,6 +2280,10 @@
2284
2280
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
2285
2281
  }
2286
2282
 
2283
+ .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
2284
+ flex-direction: row-reverse;
2285
+ }
2286
+
2287
2287
  .rtl\:univer-rounded-l-md:where([dir="rtl"], [dir="rtl"] *) {
2288
2288
  border-top-left-radius: .375rem;
2289
2289
  border-bottom-left-radius: .375rem;
@@ -2446,11 +2446,7 @@
2446
2446
  background-color: var(--univer-gray-600) !important;
2447
2447
  }
2448
2448
 
2449
- .dark\:data-\[selected\=true\]\:\!univer-bg-gray-600[data-selected="true"]:where(.univer-dark, .univer-dark *) {
2450
- background-color: var(--univer-gray-600) !important;
2451
- }
2452
-
2453
- .dark\:data-\[state\=open\]\:\!univer-bg-gray-600[data-state="open"]:where(.univer-dark, .univer-dark *) {
2449
+ .dark\:data-\[selected\=true\]\:\!univer-bg-gray-600[data-selected="true"]:where(.univer-dark, .univer-dark *), .dark\:data-\[state\=open\]\:\!univer-bg-gray-600[data-state="open"]:where(.univer-dark, .univer-dark *) {
2454
2450
  background-color: var(--univer-gray-600) !important;
2455
2451
  }
2456
2452
 
@@ -2503,7 +2499,6 @@
2503
2499
  }
2504
2500
 
2505
2501
  .\[\&\:\:-webkit-calendar-picker-indicator\]\:univer-appearance-none::-webkit-calendar-picker-indicator {
2506
- -webkit-appearance: none;
2507
2502
  appearance: none;
2508
2503
  }
2509
2504
 
@@ -2912,6 +2907,16 @@
2912
2907
  height: .125rem;
2913
2908
  }
2914
2909
 
2910
+ .univer-size-3 {
2911
+ width: .75rem;
2912
+ height: .75rem;
2913
+ }
2914
+
2915
+ .univer-size-4 {
2916
+ width: 1rem;
2917
+ height: 1rem;
2918
+ }
2919
+
2915
2920
  .univer-size-5 {
2916
2921
  width: 1.25rem;
2917
2922
  height: 1.25rem;
@@ -3011,7 +3016,7 @@
3011
3016
  flex: 1;
3012
3017
  }
3013
3018
 
3014
- .univer-flex-shrink-0 {
3019
+ .univer-flex-shrink-0, .univer-shrink-0 {
3015
3020
  flex-shrink: 0;
3016
3021
  }
3017
3022
 
@@ -4236,10 +4241,7 @@
4236
4241
  }
4237
4242
 
4238
4243
  .univer-inset-0 {
4239
- top: 0;
4240
- bottom: 0;
4241
- left: 0;
4242
- right: 0;
4244
+ inset: 0;
4243
4245
  }
4244
4246
 
4245
4247
  .-univer-bottom-0\.5 {
@@ -4718,7 +4720,6 @@
4718
4720
  }
4719
4721
 
4720
4722
  .univer-appearance-none {
4721
- -webkit-appearance: none;
4722
4723
  appearance: none;
4723
4724
  }
4724
4725
 
@@ -4875,6 +4876,11 @@
4875
4876
  border-radius: .125rem;
4876
4877
  }
4877
4878
 
4879
+ .univer-rounded-t {
4880
+ border-top-left-radius: .25rem;
4881
+ border-top-right-radius: .25rem;
4882
+ }
4883
+
4878
4884
  .univer-border-2 {
4879
4885
  border-width: 2px;
4880
4886
  }
@@ -5563,10 +5569,7 @@
5563
5569
  }
5564
5570
 
5565
5571
  .univer-inset-0 {
5566
- top: 0;
5567
- bottom: 0;
5568
- left: 0;
5569
- right: 0;
5572
+ inset: 0;
5570
5573
  }
5571
5574
 
5572
5575
  .\!univer-top-auto {
@@ -6128,7 +6131,6 @@
6128
6131
  }
6129
6132
 
6130
6133
  .univer-appearance-none {
6131
- -webkit-appearance: none;
6132
6134
  appearance: none;
6133
6135
  }
6134
6136
 
@@ -7331,7 +7333,6 @@
7331
7333
  }
7332
7334
 
7333
7335
  .\[\&\>\*\]\:univer-appearance-none > * {
7334
- -webkit-appearance: none;
7335
7336
  appearance: none;
7336
7337
  }
7337
7338
 
@@ -7573,7 +7574,6 @@
7573
7574
  }
7574
7575
 
7575
7576
  .\[\&_button\]\:\!univer-appearance-none button {
7576
- -webkit-appearance: none !important;
7577
7577
  appearance: none !important;
7578
7578
  }
7579
7579
 
@@ -7631,7 +7631,6 @@
7631
7631
  }
7632
7632
 
7633
7633
  .\[\&_input\]\:\!univer-appearance-none input {
7634
- -webkit-appearance: none !important;
7635
7634
  appearance: none !important;
7636
7635
  }
7637
7636
 
package/lib/index.js CHANGED
@@ -54,7 +54,6 @@ export * from "@univerjs/design"
54
54
  * This presets helps you to create a Univer sheet with open sourced features.
55
55
  */
56
56
  function UniverSheetsCorePreset(config = {}) {
57
- var _sheets$protectedRang;
58
57
  const { container = "app", workerURL: workerSrc, header, footer, toolbar, ribbonType, formulaBar, menu, contextMenu, disableAutoFocus, customFontFamily, docs, sheets, formula, disableTextFormatAlert, disableTextFormatMark } = config;
59
58
  const useWorker = !!workerSrc;
60
59
  return { plugins: [
@@ -90,7 +89,7 @@ function UniverSheetsCorePreset(config = {}) {
90
89
  maxAutoHeightCount: sheets === null || sheets === void 0 ? void 0 : sheets.maxAutoHeightCount,
91
90
  clipboardConfig: sheets === null || sheets === void 0 ? void 0 : sheets.clipboardConfig,
92
91
  scrollConfig: sheets === null || sheets === void 0 ? void 0 : sheets.scrollConfig,
93
- protectedRangeShadow: (_sheets$protectedRang = sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) !== null && _sheets$protectedRang !== void 0 ? _sheets$protectedRang : true,
92
+ protectedRangeShadow: (sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) ?? true,
94
93
  protectedRangeUserSelector: sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeUserSelector,
95
94
  disableForceStringAlert: sheets === null || sheets === void 0 ? void 0 : sheets.disableForceStringAlert,
96
95
  disableForceStringMark: sheets === null || sheets === void 0 ? void 0 : sheets.disableForceStringMark
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-core",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0-beta.0",
4
4
  "private": false,
5
5
  "description": "Preset for core Univer Sheets spreadsheet features.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,29 +61,29 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs/design": "1.0.0-alpha.8",
65
- "@univerjs/docs": "1.0.0-alpha.8",
66
- "@univerjs/docs-ui": "1.0.0-alpha.8",
67
- "@univerjs/engine-render": "1.0.0-alpha.8",
68
- "@univerjs/network": "1.0.0-alpha.8",
69
- "@univerjs/engine-formula": "1.0.0-alpha.8",
70
- "@univerjs/rpc": "1.0.0-alpha.8",
71
- "@univerjs/sheets-formula": "1.0.0-alpha.8",
72
- "@univerjs/sheets-formula-ui": "1.0.0-alpha.8",
73
- "@univerjs/sheets": "1.0.0-alpha.8",
74
- "@univerjs/sheets-numfmt": "1.0.0-alpha.8",
75
- "@univerjs/sheets-ui": "1.0.0-alpha.8",
76
- "@univerjs/sheets-numfmt-ui": "1.0.0-alpha.8",
77
- "@univerjs/ui": "1.0.0-alpha.8"
64
+ "@univerjs/design": "1.0.0-beta.0",
65
+ "@univerjs/docs": "1.0.0-beta.0",
66
+ "@univerjs/docs-ui": "1.0.0-beta.0",
67
+ "@univerjs/engine-formula": "1.0.0-beta.0",
68
+ "@univerjs/engine-render": "1.0.0-beta.0",
69
+ "@univerjs/sheets": "1.0.0-beta.0",
70
+ "@univerjs/sheets-formula": "1.0.0-beta.0",
71
+ "@univerjs/sheets-numfmt": "1.0.0-beta.0",
72
+ "@univerjs/network": "1.0.0-beta.0",
73
+ "@univerjs/rpc": "1.0.0-beta.0",
74
+ "@univerjs/sheets-numfmt-ui": "1.0.0-beta.0",
75
+ "@univerjs/sheets-ui": "1.0.0-beta.0",
76
+ "@univerjs/sheets-formula-ui": "1.0.0-beta.0",
77
+ "@univerjs/ui": "1.0.0-beta.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "react": "18.3.1",
81
81
  "react-dom": "18.3.1",
82
82
  "rxjs": "^7.8.2",
83
83
  "typescript": "^6.0.3",
84
- "@univerjs-infra/shared": "1.0.0-alpha.8",
85
- "@univerjs/core": "1.0.0-alpha.8",
86
- "@univerjs/presets": "1.0.0-alpha.8"
84
+ "@univerjs/core": "1.0.0-beta.0",
85
+ "@univerjs-infra/shared": "1.0.0-beta.0",
86
+ "@univerjs/presets": "1.0.0-beta.0"
87
87
  },
88
88
  "scripts": {
89
89
  "build:bundle": "univer-cli preset build --cleanup",