@univerjs/sheets-table-ui 0.15.4 → 0.15.5-insiders.20260212-8882dcc

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/es/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  var En = Object.defineProperty;
2
2
  var $n = (r, e, t) => e in r ? En(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var U = (r, e, t) => $n(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { Inject as N, IUniverInstanceService as pe, ICommandService as te, LocaleService as ne, Disposable as Le, ObjectMatrix as Ln, cellToRange as Zt, Rectangle as be, Injector as ke, IPermissionService as jt, IContextService as wt, CommandType as qt, IConfigService as Yt, ThemeService as kn, RxDisposable as Qt, VerticalAlign as rt, InterceptorEffectEnum as Pn, ErrorService as On, ColorKit as he, UniverInstanceType as Ye, DependentOn as Dn, Plugin as Bn, merge as Fn, registerDependencies as Vn, touchDependencies as Hn } from "@univerjs/core";
5
- import { IRenderManagerService as zt, SHEET_VIEWPORT_KEY as An, convertTransformToOffsetX as Un, convertTransformToOffsetY as Wn, Rect as Et, Shape as Zn } from "@univerjs/engine-render";
4
+ import { Inject as N, IUniverInstanceService as pe, LocaleService as te, Disposable as Le, ObjectMatrix as Ln, cellToRange as Zt, Rectangle as be, ICommandService as ne, Injector as ke, IPermissionService as jt, IContextService as wt, CommandType as qt, IConfigService as Yt, ThemeService as kn, RxDisposable as Qt, VerticalAlign as rt, InterceptorEffectEnum as Pn, ErrorService as On, ColorKit as he, UniverInstanceType as Ye, DependentOn as Dn, Plugin as Bn, merge as Fn, registerDependencies as Vn, touchDependencies as Hn } from "@univerjs/core";
5
+ import { SHEET_VIEWPORT_KEY as An, convertTransformToOffsetX as Un, convertTransformToOffsetY as Wn, IRenderManagerService as zt, Rect as Et, Shape as Zn } from "@univerjs/engine-render";
6
6
  import { TableManager as re, SheetTableService as jn, SetSheetTableFilterCommand as $t, isConditionFilter as qn, isManualFilter as Yn, TableDateCompareTypeEnum as o, TableStringCompareTypeEnum as Z, TableConditionTypeEnum as F, TableNumberCompareTypeEnum as k, SheetsTableSortStateEnum as Xe, TableColumnFilterTypeEnum as Lt, AddSheetTableCommand as Qn, SHEET_TABLE_CUSTOM_THEME_PREFIX as zn, DeleteSheetTableCommand as Gn, SetSheetTableCommand as ft, SheetsTableButtonStateEnum as Re, processStyleWithBorderStyle as kt, customEmptyThemeWithBorderStyle as Xn, AddTableThemeCommand as Kn, RemoveTableThemeCommand as Jn, SheetTableRemoveColCommand as Gt, SheetTableRemoveRowCommand as Xt, SheetTableInsertColCommand as Kt, SheetTableInsertRowCommand as Jt, SheetsTableController as en, UniverSheetsTablePlugin as er } from "@univerjs/sheets-table";
7
7
  import { SheetCanvasPopManagerService as tr, SheetSkeletonManagerService as lt, SheetScrollManagerService as nr, SetZoomRatioOperation as rr, SetScrollOperation as ir, getSheetObject as ar, getCoordByCell as sr, getCurrentRangeDisable$ as or, SelectAllCommand as lr } from "@univerjs/sheets-ui";
8
- import { useDependency as M, ComponentManager as tn, IDialogService as nn, ISidebarService as cr, useObservable as Te, IUIPartsService as ur, BuiltInUIPart as dr, connectInjector as hr, MenuItemType as ye, getMenuHiddenObservable as vr, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
8
+ import { useDependency as M, ComponentManager as tn, IDialogService as nn, ISidebarService as cr, useObservable as Te, BuiltInUIPart as ur, connectInjector as dr, IUIPartsService as hr, MenuItemType as ye, getMenuHiddenObservable as vr, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
9
9
  import { startWith as rn, distinctUntilChanged as fr, Subject as Cr, BehaviorSubject as Pt, merge as It, filter as Sr, debounceTime as _r, switchMap as we, of as J, map as Tr, takeUntil as wr } from "rxjs";
10
10
  import { jsxs as T, jsx as l, Fragment as yt } from "react/jsx-runtime";
11
11
  import { Dropdown as Ne, clsx as D, borderClassName as H, CascaderList as Ir, Input as Rt, InputNumber as gt, DatePicker as yr, DateRangePicker as Rr, Select as Mr, Checkbox as Ot, scrollbarClassName as xr, ButtonGroup as Nr, Button as _e, Segmented as Er, ColorPicker as Ke } from "@univerjs/design";
12
12
  import { useRef as $r, createElement as ie, forwardRef as le, useState as q, useMemo as an, useCallback as Dt, useEffect as sn } from "react";
13
- import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as on, getSheetCommandTarget as ct, SheetsSelectionsService as ut, isSingleCellSelection as kr, expandToContinuousRange as Pr, SetRangeThemeMutation as ln, WorkbookPermissionService as cn, SheetRangeThemeModel as un, SheetInterceptorService as dn, SetVerticalTextAlignCommand as Or, INTERCEPTOR_POINT as Dr, RangeThemeStyle as Br, getPrimaryForRange as Bt, SetSelectionsOperation as Ft } from "@univerjs/sheets";
13
+ import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as on, getSheetCommandTarget as ct, SheetsSelectionsService as ut, isSingleCellSelection as kr, expandToContinuousRange as Pr, SetRangeThemeMutation as ln, WorkbookPermissionService as cn, SheetRangeThemeModel as un, SheetInterceptorService as dn, SetVerticalTextAlignCommand as Or, INTERCEPTOR_POINT as Dr, RangeThemeStyle as Br, SetSelectionsOperation as Bt, getPrimaryForRange as Ft } from "@univerjs/sheets";
14
14
  import { SortRangeCommand as Fr, SortType as Vt } from "@univerjs/sheets-sort";
15
15
  import { serializeRange as Ht, deserializeRangeWithSheet as Vr } from "@univerjs/engine-formula";
16
16
  import { RangeSelector as Hr } from "@univerjs/sheets-formula-ui";
@@ -473,12 +473,12 @@ Ee = ii([
473
473
  We(0, N(re)),
474
474
  We(1, N(jn)),
475
475
  We(2, N(pe)),
476
- We(3, te),
477
- We(4, N(ne))
476
+ We(3, ne),
477
+ We(4, N(te))
478
478
  ], Ee);
479
479
  var j = /* @__PURE__ */ ((r) => (r.DatePicker = "DatePicker", r.DateRange = "DateRange", r.Input = "Input", r.Inputs = "Inputs", r.Select = "Select", r.None = "None", r))(j || {});
480
480
  function ai(r) {
481
- const t = r.get(ne).t;
481
+ const t = r.get(te).t;
482
482
  return [
483
483
  {
484
484
  value: F.String,
@@ -659,7 +659,7 @@ function ai(r) {
659
659
  function si(r, e) {
660
660
  if (!e)
661
661
  return [];
662
- const n = r.get(ne).t;
662
+ const n = r.get(te).t;
663
663
  switch (e) {
664
664
  case o.Quarter:
665
665
  return [
@@ -832,7 +832,7 @@ function li(r) {
832
832
  }
833
833
  const ci = (r) => {
834
834
  var w, S, E, C, $, I, B, R;
835
- const { conditionInfo: e, onChange: t } = r, n = M(ne), [i, a] = q(!1), s = M(ke), c = ai(s), u = (g, x, y) => {
835
+ const { conditionInfo: e, onChange: t } = r, n = M(te), [i, a] = q(!1), s = M(ke), c = ai(s), u = (g, x, y) => {
836
836
  t({
837
837
  type: x != null ? x : e.type,
838
838
  compare: y != null ? y : e.compare,
@@ -960,7 +960,7 @@ const ci = (r) => {
960
960
  }), e;
961
961
  };
962
962
  function di(r) {
963
- const { unitId: e, tableId: t, subUnitId: n, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = r, u = M(ne), h = M(Ee), { data: d, itemsCountMap: v, allItemsCount: f } = h.getTableFilterItems(e, n, t, i), [w, S] = q(c === void 0 ? !0 : a.size === v.size), [E, C] = q(w ? f : ui(v)), $ = !w && a.size > 0, [I, B] = q(""), R = an(() => I ? d.filter((m) => String(m.title).toLowerCase().includes(I.toLowerCase())) : d, [I, d]), g = Dt(() => {
963
+ const { unitId: e, tableId: t, subUnitId: n, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = r, u = M(te), h = M(Ee), { data: d, itemsCountMap: v, allItemsCount: f } = h.getTableFilterItems(e, n, t, i), [w, S] = q(c === void 0 ? !0 : a.size === v.size), [E, C] = q(w ? f : ui(v)), $ = !w && a.size > 0, [I, B] = q(""), R = an(() => I ? d.filter((m) => String(m.title).toLowerCase().includes(I.toLowerCase())) : d, [I, d]), g = Dt(() => {
964
964
  w ? (a.clear(), s(new Set(a)), S(!1)) : (R.forEach((m) => {
965
965
  a.add(m.title);
966
966
  }), s(new Set(a)), S(!0));
@@ -1031,7 +1031,7 @@ function di(r) {
1031
1031
  }
1032
1032
  function hi() {
1033
1033
  var de;
1034
- const r = M(ne), e = vi(r), t = M(Ee), n = M(re), i = M(te), a = M(jt), s = M($e), c = s.getCurrentTableFilterInfo(), u = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: d, tableId: v, tableFilter: f, currentFilterBy: w, columnIndex: S } = u, { data: E } = t.getTableFilterItems(h, d, v, S), C = t.getTableFilterCheckedItems(h, v, S), [$, I] = q(new Set(C)), [B, R] = q(w || me.Items), [g, x] = q(() => {
1034
+ const r = M(te), e = vi(r), t = M(Ee), n = M(re), i = M(ne), a = M(jt), s = M($e), c = s.getCurrentTableFilterInfo(), u = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: d, tableId: v, tableFilter: f, currentFilterBy: w, columnIndex: S } = u, { data: E } = t.getTableFilterItems(h, d, v, S), C = t.getTableFilterCheckedItems(h, v, S), [$, I] = q(new Set(C)), [B, R] = q(w || me.Items), [g, x] = q(() => {
1035
1035
  const b = u.tableFilter;
1036
1036
  return li(b);
1037
1037
  }), y = n.getTable(h, v);
@@ -1245,7 +1245,7 @@ const Ct = {
1245
1245
  id: "sheet.operation.open-table-selector",
1246
1246
  async handler(r) {
1247
1247
  var w;
1248
- const e = r.get(pe), t = r.get(te), n = ct(e);
1248
+ const e = r.get(pe), t = r.get(ne), n = ct(e);
1249
1249
  if (!n)
1250
1250
  return !1;
1251
1251
  const { unitId: i, subUnitId: a, worksheet: s } = n, u = r.get(ut).getCurrentLastSelection(), h = (w = u == null ? void 0 : u.range) != null ? w : { startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }, v = kr(u) ? Pr(h, { up: !0, left: !0, right: !0, down: !0 }, s) : h, f = await Tn(r, i, a, v);
@@ -1253,7 +1253,7 @@ const Ct = {
1253
1253
  }
1254
1254
  };
1255
1255
  async function Tn(r, e, t, n, i) {
1256
- const a = r.get(nn), s = r.get(ne);
1256
+ const a = r.get(nn), s = r.get(te);
1257
1257
  return new Promise((c) => {
1258
1258
  const u = {
1259
1259
  unitId: e,
@@ -1315,11 +1315,11 @@ let Ie = class extends Le {
1315
1315
  }
1316
1316
  };
1317
1317
  Ie = pi([
1318
- fi(0, N(te))
1318
+ fi(0, N(ne))
1319
1319
  ], Ie);
1320
1320
  const Ci = () => {
1321
1321
  var fe, de;
1322
- const [r, e] = q(""), [t, n] = q(""), i = M(cr), [a, s] = q({}), c = M(ke), u = M(it), h = Te(u.anchorPosition$), d = M(te), v = M(pe), f = M(cn), w = Te(f.unitPermissionInitStateChange$, !1), S = M(re), E = M(un), C = M(Ie), $ = Te(C.refreshTable$), I = M(ne), B = M(ut), R = Te(B.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, g] = q(Math.random()), y = M(Yt).getConfig(wn), m = (fe = y == null ? void 0 : y.anchorHeight) != null ? fe : 24, O = (de = y == null ? void 0 : y.anchorBackgroundColor) != null ? de : "rgb(53,91,183)", L = (b, P) => {
1322
+ const [r, e] = q(""), [t, n] = q(""), i = M(cr), [a, s] = q({}), c = M(ke), u = M(it), h = Te(u.anchorPosition$), d = M(ne), v = M(pe), f = M(cn), w = Te(f.unitPermissionInitStateChange$, !1), S = M(re), E = M(un), C = M(Ie), $ = Te(C.refreshTable$), I = M(te), B = M(ut), R = Te(B.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, g] = q(Math.random()), y = M(Yt).getConfig(wn), m = (fe = y == null ? void 0 : y.anchorHeight) != null ? fe : 24, O = (de = y == null ? void 0 : y.anchorBackgroundColor) != null ? de : "rgb(53,91,183)", L = (b, P) => {
1323
1323
  s((A) => ({
1324
1324
  ...A,
1325
1325
  [b]: P
@@ -1514,7 +1514,7 @@ let it = class extends Le {
1514
1514
  }
1515
1515
  _initUI() {
1516
1516
  this.disposeWithMe(
1517
- this._uiPartsService.registerComponent(dr.CONTENT, () => hr(Ci, this._injector))
1517
+ this._uiPartsService.registerComponent(ur.CONTENT, () => dr(Ci, this._injector))
1518
1518
  );
1519
1519
  }
1520
1520
  _initListener() {
@@ -1581,9 +1581,9 @@ it = _i([
1581
1581
  ee(1, N(ke)),
1582
1582
  ee(2, N(lt)),
1583
1583
  ee(3, zt),
1584
- ee(4, te),
1584
+ ee(4, ne),
1585
1585
  ee(5, pe),
1586
- ee(6, ur),
1586
+ ee(6, hr),
1587
1587
  ee(7, N(re)),
1588
1588
  ee(8, N(nr)),
1589
1589
  ee(9, N(cn)),
@@ -1702,7 +1702,7 @@ let St = class extends Zn {
1702
1702
  };
1703
1703
  St = xi([
1704
1704
  mt(2, wt),
1705
- mt(3, te),
1705
+ mt(3, ne),
1706
1706
  mt(4, N(kn))
1707
1707
  ], St);
1708
1708
  var Ni = Object.getOwnPropertyDescriptor, Ei = (r, e, t, n) => {
@@ -1829,10 +1829,10 @@ _t = Ei([
1829
1829
  Ze(2, N(lt)),
1830
1830
  Ze(3, N(dn)),
1831
1831
  Ze(4, N(re)),
1832
- Ze(5, te)
1832
+ Ze(5, ne)
1833
1833
  ], _t);
1834
1834
  const ki = (r) => {
1835
- const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = M(re), [u, h] = q(n), [d, v] = q(""), f = M(ne), w = M(pe);
1835
+ const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = M(re), [u, h] = q(n), [d, v] = q(""), f = M(te), w = M(pe);
1836
1836
  return /* @__PURE__ */ T(yt, { children: [
1837
1837
  /* @__PURE__ */ l(
1838
1838
  Hr,
@@ -1909,7 +1909,7 @@ const ki = (r) => {
1909
1909
  ] });
1910
1910
  }, Pi = (r) => {
1911
1911
  var P, A, Q, dt, Qe, ze, ht, Ge, vt, Pe, Oe, De;
1912
- const { unitId: e, subUnitId: t, tableId: n } = r, i = M(te), a = M(ne), s = M(re), c = s.getTableById(e, n), u = M(un), h = M(Ie), d = Te(u.rangeThemeMapChange$), v = Te(h.refreshTable$), f = M(On), [, w] = q(Math.random()), S = Te(s.tableThemeChanged$, {
1912
+ const { unitId: e, subUnitId: t, tableId: n } = r, i = M(ne), a = M(te), s = M(re), c = s.getTableById(e, n), u = M(un), h = M(Ie), d = Te(u.rangeThemeMapChange$), v = Te(h.refreshTable$), f = M(On), [, w] = q(Math.random()), S = Te(s.tableThemeChanged$, {
1913
1913
  theme: c == null ? void 0 : c.getTableStyleId(),
1914
1914
  oldTheme: c == null ? void 0 : c.getTableStyleId(),
1915
1915
  unitId: e,
@@ -2472,14 +2472,14 @@ let st = class extends Le {
2472
2472
  undos: [],
2473
2473
  redos: [
2474
2474
  {
2475
- id: Ft.id,
2475
+ id: Bt.id,
2476
2476
  params: {
2477
2477
  unitId: i,
2478
2478
  subUnitId: a,
2479
2479
  selections: [
2480
2480
  {
2481
2481
  range: h,
2482
- primary: Bt(h, s)
2482
+ primary: Ft(h, s)
2483
2483
  }
2484
2484
  ]
2485
2485
  }
@@ -2489,14 +2489,14 @@ let st = class extends Le {
2489
2489
  undos: [],
2490
2490
  redos: [
2491
2491
  {
2492
- id: Ft.id,
2492
+ id: Bt.id,
2493
2493
  params: {
2494
2494
  unitId: i,
2495
2495
  subUnitId: a,
2496
2496
  selections: [
2497
2497
  {
2498
2498
  range: d,
2499
- primary: Bt(d, s)
2499
+ primary: Ft(d, s)
2500
2500
  }
2501
2501
  ]
2502
2502
  }
@@ -2573,7 +2573,7 @@ xn(ot, "type", Ye.UNIVER_SHEET);
2573
2573
  ot = Ki([
2574
2574
  Dn(er),
2575
2575
  nt(1, N(ke)),
2576
- nt(2, N(te)),
2576
+ nt(2, N(ne)),
2577
2577
  nt(3, Yt),
2578
2578
  nt(4, zt)
2579
2579
  ], ot);
package/lib/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  var En = Object.defineProperty;
2
2
  var $n = (r, e, t) => e in r ? En(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var U = (r, e, t) => $n(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { Inject as N, IUniverInstanceService as pe, ICommandService as te, LocaleService as ne, Disposable as Le, ObjectMatrix as Ln, cellToRange as Zt, Rectangle as be, Injector as ke, IPermissionService as jt, IContextService as wt, CommandType as qt, IConfigService as Yt, ThemeService as kn, RxDisposable as Qt, VerticalAlign as rt, InterceptorEffectEnum as Pn, ErrorService as On, ColorKit as he, UniverInstanceType as Ye, DependentOn as Dn, Plugin as Bn, merge as Fn, registerDependencies as Vn, touchDependencies as Hn } from "@univerjs/core";
5
- import { IRenderManagerService as zt, SHEET_VIEWPORT_KEY as An, convertTransformToOffsetX as Un, convertTransformToOffsetY as Wn, Rect as Et, Shape as Zn } from "@univerjs/engine-render";
4
+ import { Inject as N, IUniverInstanceService as pe, LocaleService as te, Disposable as Le, ObjectMatrix as Ln, cellToRange as Zt, Rectangle as be, ICommandService as ne, Injector as ke, IPermissionService as jt, IContextService as wt, CommandType as qt, IConfigService as Yt, ThemeService as kn, RxDisposable as Qt, VerticalAlign as rt, InterceptorEffectEnum as Pn, ErrorService as On, ColorKit as he, UniverInstanceType as Ye, DependentOn as Dn, Plugin as Bn, merge as Fn, registerDependencies as Vn, touchDependencies as Hn } from "@univerjs/core";
5
+ import { SHEET_VIEWPORT_KEY as An, convertTransformToOffsetX as Un, convertTransformToOffsetY as Wn, IRenderManagerService as zt, Rect as Et, Shape as Zn } from "@univerjs/engine-render";
6
6
  import { TableManager as re, SheetTableService as jn, SetSheetTableFilterCommand as $t, isConditionFilter as qn, isManualFilter as Yn, TableDateCompareTypeEnum as o, TableStringCompareTypeEnum as Z, TableConditionTypeEnum as F, TableNumberCompareTypeEnum as k, SheetsTableSortStateEnum as Xe, TableColumnFilterTypeEnum as Lt, AddSheetTableCommand as Qn, SHEET_TABLE_CUSTOM_THEME_PREFIX as zn, DeleteSheetTableCommand as Gn, SetSheetTableCommand as ft, SheetsTableButtonStateEnum as Re, processStyleWithBorderStyle as kt, customEmptyThemeWithBorderStyle as Xn, AddTableThemeCommand as Kn, RemoveTableThemeCommand as Jn, SheetTableRemoveColCommand as Gt, SheetTableRemoveRowCommand as Xt, SheetTableInsertColCommand as Kt, SheetTableInsertRowCommand as Jt, SheetsTableController as en, UniverSheetsTablePlugin as er } from "@univerjs/sheets-table";
7
7
  import { SheetCanvasPopManagerService as tr, SheetSkeletonManagerService as lt, SheetScrollManagerService as nr, SetZoomRatioOperation as rr, SetScrollOperation as ir, getSheetObject as ar, getCoordByCell as sr, getCurrentRangeDisable$ as or, SelectAllCommand as lr } from "@univerjs/sheets-ui";
8
- import { useDependency as M, ComponentManager as tn, IDialogService as nn, ISidebarService as cr, useObservable as Te, IUIPartsService as ur, BuiltInUIPart as dr, connectInjector as hr, MenuItemType as ye, getMenuHiddenObservable as vr, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
8
+ import { useDependency as M, ComponentManager as tn, IDialogService as nn, ISidebarService as cr, useObservable as Te, BuiltInUIPart as ur, connectInjector as dr, IUIPartsService as hr, MenuItemType as ye, getMenuHiddenObservable as vr, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
9
9
  import { startWith as rn, distinctUntilChanged as fr, Subject as Cr, BehaviorSubject as Pt, merge as It, filter as Sr, debounceTime as _r, switchMap as we, of as J, map as Tr, takeUntil as wr } from "rxjs";
10
10
  import { jsxs as T, jsx as l, Fragment as yt } from "react/jsx-runtime";
11
11
  import { Dropdown as Ne, clsx as D, borderClassName as H, CascaderList as Ir, Input as Rt, InputNumber as gt, DatePicker as yr, DateRangePicker as Rr, Select as Mr, Checkbox as Ot, scrollbarClassName as xr, ButtonGroup as Nr, Button as _e, Segmented as Er, ColorPicker as Ke } from "@univerjs/design";
12
12
  import { useRef as $r, createElement as ie, forwardRef as le, useState as q, useMemo as an, useCallback as Dt, useEffect as sn } from "react";
13
- import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as on, getSheetCommandTarget as ct, SheetsSelectionsService as ut, isSingleCellSelection as kr, expandToContinuousRange as Pr, SetRangeThemeMutation as ln, WorkbookPermissionService as cn, SheetRangeThemeModel as un, SheetInterceptorService as dn, SetVerticalTextAlignCommand as Or, INTERCEPTOR_POINT as Dr, RangeThemeStyle as Br, getPrimaryForRange as Bt, SetSelectionsOperation as Ft } from "@univerjs/sheets";
13
+ import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as on, getSheetCommandTarget as ct, SheetsSelectionsService as ut, isSingleCellSelection as kr, expandToContinuousRange as Pr, SetRangeThemeMutation as ln, WorkbookPermissionService as cn, SheetRangeThemeModel as un, SheetInterceptorService as dn, SetVerticalTextAlignCommand as Or, INTERCEPTOR_POINT as Dr, RangeThemeStyle as Br, SetSelectionsOperation as Bt, getPrimaryForRange as Ft } from "@univerjs/sheets";
14
14
  import { SortRangeCommand as Fr, SortType as Vt } from "@univerjs/sheets-sort";
15
15
  import { serializeRange as Ht, deserializeRangeWithSheet as Vr } from "@univerjs/engine-formula";
16
16
  import { RangeSelector as Hr } from "@univerjs/sheets-formula-ui";
@@ -473,12 +473,12 @@ Ee = ii([
473
473
  We(0, N(re)),
474
474
  We(1, N(jn)),
475
475
  We(2, N(pe)),
476
- We(3, te),
477
- We(4, N(ne))
476
+ We(3, ne),
477
+ We(4, N(te))
478
478
  ], Ee);
479
479
  var j = /* @__PURE__ */ ((r) => (r.DatePicker = "DatePicker", r.DateRange = "DateRange", r.Input = "Input", r.Inputs = "Inputs", r.Select = "Select", r.None = "None", r))(j || {});
480
480
  function ai(r) {
481
- const t = r.get(ne).t;
481
+ const t = r.get(te).t;
482
482
  return [
483
483
  {
484
484
  value: F.String,
@@ -659,7 +659,7 @@ function ai(r) {
659
659
  function si(r, e) {
660
660
  if (!e)
661
661
  return [];
662
- const n = r.get(ne).t;
662
+ const n = r.get(te).t;
663
663
  switch (e) {
664
664
  case o.Quarter:
665
665
  return [
@@ -832,7 +832,7 @@ function li(r) {
832
832
  }
833
833
  const ci = (r) => {
834
834
  var w, S, E, C, $, I, B, R;
835
- const { conditionInfo: e, onChange: t } = r, n = M(ne), [i, a] = q(!1), s = M(ke), c = ai(s), u = (g, x, y) => {
835
+ const { conditionInfo: e, onChange: t } = r, n = M(te), [i, a] = q(!1), s = M(ke), c = ai(s), u = (g, x, y) => {
836
836
  t({
837
837
  type: x != null ? x : e.type,
838
838
  compare: y != null ? y : e.compare,
@@ -960,7 +960,7 @@ const ci = (r) => {
960
960
  }), e;
961
961
  };
962
962
  function di(r) {
963
- const { unitId: e, tableId: t, subUnitId: n, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = r, u = M(ne), h = M(Ee), { data: d, itemsCountMap: v, allItemsCount: f } = h.getTableFilterItems(e, n, t, i), [w, S] = q(c === void 0 ? !0 : a.size === v.size), [E, C] = q(w ? f : ui(v)), $ = !w && a.size > 0, [I, B] = q(""), R = an(() => I ? d.filter((m) => String(m.title).toLowerCase().includes(I.toLowerCase())) : d, [I, d]), g = Dt(() => {
963
+ const { unitId: e, tableId: t, subUnitId: n, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = r, u = M(te), h = M(Ee), { data: d, itemsCountMap: v, allItemsCount: f } = h.getTableFilterItems(e, n, t, i), [w, S] = q(c === void 0 ? !0 : a.size === v.size), [E, C] = q(w ? f : ui(v)), $ = !w && a.size > 0, [I, B] = q(""), R = an(() => I ? d.filter((m) => String(m.title).toLowerCase().includes(I.toLowerCase())) : d, [I, d]), g = Dt(() => {
964
964
  w ? (a.clear(), s(new Set(a)), S(!1)) : (R.forEach((m) => {
965
965
  a.add(m.title);
966
966
  }), s(new Set(a)), S(!0));
@@ -1031,7 +1031,7 @@ function di(r) {
1031
1031
  }
1032
1032
  function hi() {
1033
1033
  var de;
1034
- const r = M(ne), e = vi(r), t = M(Ee), n = M(re), i = M(te), a = M(jt), s = M($e), c = s.getCurrentTableFilterInfo(), u = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: d, tableId: v, tableFilter: f, currentFilterBy: w, columnIndex: S } = u, { data: E } = t.getTableFilterItems(h, d, v, S), C = t.getTableFilterCheckedItems(h, v, S), [$, I] = q(new Set(C)), [B, R] = q(w || me.Items), [g, x] = q(() => {
1034
+ const r = M(te), e = vi(r), t = M(Ee), n = M(re), i = M(ne), a = M(jt), s = M($e), c = s.getCurrentTableFilterInfo(), u = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: d, tableId: v, tableFilter: f, currentFilterBy: w, columnIndex: S } = u, { data: E } = t.getTableFilterItems(h, d, v, S), C = t.getTableFilterCheckedItems(h, v, S), [$, I] = q(new Set(C)), [B, R] = q(w || me.Items), [g, x] = q(() => {
1035
1035
  const b = u.tableFilter;
1036
1036
  return li(b);
1037
1037
  }), y = n.getTable(h, v);
@@ -1245,7 +1245,7 @@ const Ct = {
1245
1245
  id: "sheet.operation.open-table-selector",
1246
1246
  async handler(r) {
1247
1247
  var w;
1248
- const e = r.get(pe), t = r.get(te), n = ct(e);
1248
+ const e = r.get(pe), t = r.get(ne), n = ct(e);
1249
1249
  if (!n)
1250
1250
  return !1;
1251
1251
  const { unitId: i, subUnitId: a, worksheet: s } = n, u = r.get(ut).getCurrentLastSelection(), h = (w = u == null ? void 0 : u.range) != null ? w : { startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }, v = kr(u) ? Pr(h, { up: !0, left: !0, right: !0, down: !0 }, s) : h, f = await Tn(r, i, a, v);
@@ -1253,7 +1253,7 @@ const Ct = {
1253
1253
  }
1254
1254
  };
1255
1255
  async function Tn(r, e, t, n, i) {
1256
- const a = r.get(nn), s = r.get(ne);
1256
+ const a = r.get(nn), s = r.get(te);
1257
1257
  return new Promise((c) => {
1258
1258
  const u = {
1259
1259
  unitId: e,
@@ -1315,11 +1315,11 @@ let Ie = class extends Le {
1315
1315
  }
1316
1316
  };
1317
1317
  Ie = pi([
1318
- fi(0, N(te))
1318
+ fi(0, N(ne))
1319
1319
  ], Ie);
1320
1320
  const Ci = () => {
1321
1321
  var fe, de;
1322
- const [r, e] = q(""), [t, n] = q(""), i = M(cr), [a, s] = q({}), c = M(ke), u = M(it), h = Te(u.anchorPosition$), d = M(te), v = M(pe), f = M(cn), w = Te(f.unitPermissionInitStateChange$, !1), S = M(re), E = M(un), C = M(Ie), $ = Te(C.refreshTable$), I = M(ne), B = M(ut), R = Te(B.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, g] = q(Math.random()), y = M(Yt).getConfig(wn), m = (fe = y == null ? void 0 : y.anchorHeight) != null ? fe : 24, O = (de = y == null ? void 0 : y.anchorBackgroundColor) != null ? de : "rgb(53,91,183)", L = (b, P) => {
1322
+ const [r, e] = q(""), [t, n] = q(""), i = M(cr), [a, s] = q({}), c = M(ke), u = M(it), h = Te(u.anchorPosition$), d = M(ne), v = M(pe), f = M(cn), w = Te(f.unitPermissionInitStateChange$, !1), S = M(re), E = M(un), C = M(Ie), $ = Te(C.refreshTable$), I = M(te), B = M(ut), R = Te(B.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, g] = q(Math.random()), y = M(Yt).getConfig(wn), m = (fe = y == null ? void 0 : y.anchorHeight) != null ? fe : 24, O = (de = y == null ? void 0 : y.anchorBackgroundColor) != null ? de : "rgb(53,91,183)", L = (b, P) => {
1323
1323
  s((A) => ({
1324
1324
  ...A,
1325
1325
  [b]: P
@@ -1514,7 +1514,7 @@ let it = class extends Le {
1514
1514
  }
1515
1515
  _initUI() {
1516
1516
  this.disposeWithMe(
1517
- this._uiPartsService.registerComponent(dr.CONTENT, () => hr(Ci, this._injector))
1517
+ this._uiPartsService.registerComponent(ur.CONTENT, () => dr(Ci, this._injector))
1518
1518
  );
1519
1519
  }
1520
1520
  _initListener() {
@@ -1581,9 +1581,9 @@ it = _i([
1581
1581
  ee(1, N(ke)),
1582
1582
  ee(2, N(lt)),
1583
1583
  ee(3, zt),
1584
- ee(4, te),
1584
+ ee(4, ne),
1585
1585
  ee(5, pe),
1586
- ee(6, ur),
1586
+ ee(6, hr),
1587
1587
  ee(7, N(re)),
1588
1588
  ee(8, N(nr)),
1589
1589
  ee(9, N(cn)),
@@ -1702,7 +1702,7 @@ let St = class extends Zn {
1702
1702
  };
1703
1703
  St = xi([
1704
1704
  mt(2, wt),
1705
- mt(3, te),
1705
+ mt(3, ne),
1706
1706
  mt(4, N(kn))
1707
1707
  ], St);
1708
1708
  var Ni = Object.getOwnPropertyDescriptor, Ei = (r, e, t, n) => {
@@ -1829,10 +1829,10 @@ _t = Ei([
1829
1829
  Ze(2, N(lt)),
1830
1830
  Ze(3, N(dn)),
1831
1831
  Ze(4, N(re)),
1832
- Ze(5, te)
1832
+ Ze(5, ne)
1833
1833
  ], _t);
1834
1834
  const ki = (r) => {
1835
- const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = M(re), [u, h] = q(n), [d, v] = q(""), f = M(ne), w = M(pe);
1835
+ const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = M(re), [u, h] = q(n), [d, v] = q(""), f = M(te), w = M(pe);
1836
1836
  return /* @__PURE__ */ T(yt, { children: [
1837
1837
  /* @__PURE__ */ l(
1838
1838
  Hr,
@@ -1909,7 +1909,7 @@ const ki = (r) => {
1909
1909
  ] });
1910
1910
  }, Pi = (r) => {
1911
1911
  var P, A, Q, dt, Qe, ze, ht, Ge, vt, Pe, Oe, De;
1912
- const { unitId: e, subUnitId: t, tableId: n } = r, i = M(te), a = M(ne), s = M(re), c = s.getTableById(e, n), u = M(un), h = M(Ie), d = Te(u.rangeThemeMapChange$), v = Te(h.refreshTable$), f = M(On), [, w] = q(Math.random()), S = Te(s.tableThemeChanged$, {
1912
+ const { unitId: e, subUnitId: t, tableId: n } = r, i = M(ne), a = M(te), s = M(re), c = s.getTableById(e, n), u = M(un), h = M(Ie), d = Te(u.rangeThemeMapChange$), v = Te(h.refreshTable$), f = M(On), [, w] = q(Math.random()), S = Te(s.tableThemeChanged$, {
1913
1913
  theme: c == null ? void 0 : c.getTableStyleId(),
1914
1914
  oldTheme: c == null ? void 0 : c.getTableStyleId(),
1915
1915
  unitId: e,
@@ -2472,14 +2472,14 @@ let st = class extends Le {
2472
2472
  undos: [],
2473
2473
  redos: [
2474
2474
  {
2475
- id: Ft.id,
2475
+ id: Bt.id,
2476
2476
  params: {
2477
2477
  unitId: i,
2478
2478
  subUnitId: a,
2479
2479
  selections: [
2480
2480
  {
2481
2481
  range: h,
2482
- primary: Bt(h, s)
2482
+ primary: Ft(h, s)
2483
2483
  }
2484
2484
  ]
2485
2485
  }
@@ -2489,14 +2489,14 @@ let st = class extends Le {
2489
2489
  undos: [],
2490
2490
  redos: [
2491
2491
  {
2492
- id: Ft.id,
2492
+ id: Bt.id,
2493
2493
  params: {
2494
2494
  unitId: i,
2495
2495
  subUnitId: a,
2496
2496
  selections: [
2497
2497
  {
2498
2498
  range: d,
2499
- primary: Bt(d, s)
2499
+ primary: Ft(d, s)
2500
2500
  }
2501
2501
  ]
2502
2502
  }
@@ -2573,7 +2573,7 @@ xn(ot, "type", Ye.UNIVER_SHEET);
2573
2573
  ot = Ki([
2574
2574
  Dn(er),
2575
2575
  nt(1, N(ke)),
2576
- nt(2, N(te)),
2576
+ nt(2, N(ne)),
2577
2577
  nt(3, Yt),
2578
2578
  nt(4, zt)
2579
2579
  ], ot);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-table-ui",
3
- "version": "0.15.4",
3
+ "version": "0.15.5-insiders.20260212-8882dcc",
4
4
  "private": false,
5
5
  "description": "A library for connect and bind data from other sources to Univer Sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,16 +57,16 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs/core": "0.15.4",
61
- "@univerjs/design": "0.15.4",
62
- "@univerjs/engine-formula": "0.15.4",
63
- "@univerjs/engine-render": "0.15.4",
64
- "@univerjs/sheets": "0.15.4",
65
- "@univerjs/sheets-sort": "0.15.4",
66
- "@univerjs/sheets-table": "0.15.4",
67
- "@univerjs/ui": "0.15.4",
68
- "@univerjs/sheets-ui": "0.15.4",
69
- "@univerjs/sheets-formula-ui": "0.15.4"
60
+ "@univerjs/core": "0.15.5-insiders.20260212-8882dcc",
61
+ "@univerjs/design": "0.15.5-insiders.20260212-8882dcc",
62
+ "@univerjs/engine-formula": "0.15.5-insiders.20260212-8882dcc",
63
+ "@univerjs/engine-render": "0.15.5-insiders.20260212-8882dcc",
64
+ "@univerjs/sheets": "0.15.5-insiders.20260212-8882dcc",
65
+ "@univerjs/sheets-sort": "0.15.5-insiders.20260212-8882dcc",
66
+ "@univerjs/sheets-formula-ui": "0.15.5-insiders.20260212-8882dcc",
67
+ "@univerjs/sheets-table": "0.15.5-insiders.20260212-8882dcc",
68
+ "@univerjs/sheets-ui": "0.15.5-insiders.20260212-8882dcc",
69
+ "@univerjs/ui": "0.15.5-insiders.20260212-8882dcc"
70
70
  },
71
71
  "devDependencies": {
72
72
  "postcss": "^8.5.6",
@@ -76,7 +76,7 @@
76
76
  "typescript": "^5.9.3",
77
77
  "vite": "^7.3.1",
78
78
  "vitest": "^4.0.18",
79
- "@univerjs-infra/shared": "0.15.4"
79
+ "@univerjs-infra/shared": "0.15.5"
80
80
  },
81
81
  "scripts": {
82
82
  "test": "vitest run",
package/LICENSE DELETED
@@ -1,176 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS