bkui-vue 2.0.1-beta.24 → 2.0.1-beta.26

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/index.esm.js CHANGED
@@ -15867,7 +15867,7 @@ const _F = (e, ...t) => {
15867
15867
  var R, te;
15868
15868
  (R = D == null ? void 0 : D.value) == null || R.focus(), (te = D == null ? void 0 : D.value) == null || te.click();
15869
15869
  }, Y = () => {
15870
- e.readonly || e.disabled || (x != null && x.value && (h.showClose = !0), h.internalValue = h.tmpValue);
15870
+ e.readonly || e.disabled || x != null && x.value && (h.showClose = !0);
15871
15871
  }, le = (R) => {
15872
15872
  h.showClose = !1, h.internalValue !== h.tmpValue && Z(R);
15873
15873
  }, se = (R) => {
@@ -32123,11 +32123,155 @@ const mn = (e, t, n) => {
32123
32123
  var e, t;
32124
32124
  return f(ft, null, [(t = (e = this.$slots).default) == null ? void 0 : t.call(e)]);
32125
32125
  }
32126
- });
32126
+ }), oq = ({
32127
+ props: e,
32128
+ rows: t,
32129
+ ctx: n,
32130
+ columns: s,
32131
+ row: r,
32132
+ index: i,
32133
+ column: o,
32134
+ isChild: u = !1,
32135
+ multiShiftKey: c
32136
+ }) => {
32137
+ const {
32138
+ isShiftKeyDown: g,
32139
+ getStore: d,
32140
+ setStore: h,
32141
+ setStoreStart: p,
32142
+ clearStoreStart: y
32143
+ } = c, b = () => {
32144
+ const E = (I, A) => {
32145
+ A.stopImmediatePropagation(), A.preventDefault(), A.stopPropagation(), g.value || (I ? p(r, i) : y()), t.setRowSelection(r, I), s.setColumnAttribute(o, ke.SELECTION_INDETERMINATE, t.getRowIndeterminate()), s.setColumnAttribute(o, ke.SELECTION_VAL, t.getRowCheckedAllValue()), n.emit(Pt.ROW_SELECT, {
32146
+ row: r,
32147
+ index: i,
32148
+ checked: I,
32149
+ data: e.data
32150
+ }), n.emit(Pt.ROW_SELECT_CHANGE, {
32151
+ row: r,
32152
+ index: i,
32153
+ checked: I,
32154
+ data: e.data
32155
+ });
32156
+ }, T = () => {
32157
+ if (g.value) {
32158
+ const I = h(r, i);
32159
+ if (I) {
32160
+ const {
32161
+ start: A,
32162
+ end: D
32163
+ } = d(), V = A.index < D.index ? A.index : D.index, M = A.index < D.index ? D.index : A.index;
32164
+ (t.pageRowList.slice(V, M + 1) ?? []).forEach((j) => {
32165
+ _u(e, {
32166
+ row: r,
32167
+ index: i,
32168
+ isCheckAll: !1
32169
+ }) && t.setRowSelection(j, !0);
32170
+ });
32171
+ }
32172
+ return n.emit(Pt.ROW_SELECT, {
32173
+ row: r,
32174
+ index: i,
32175
+ checked: !0,
32176
+ data: e.data,
32177
+ isShiftKeyDown: !0
32178
+ }), n.emit(Pt.ROW_SELECT_CHANGE, {
32179
+ row: r,
32180
+ index: i,
32181
+ checked: !0,
32182
+ data: e.data,
32183
+ isShiftKeyDown: !0
32184
+ }), Promise.resolve(!I);
32185
+ }
32186
+ return Promise.resolve(!0);
32187
+ }, $ = t.getRowAttribute(r, ot.ROW_SELECTION_INDETERMINATE), L = t.getRowAttribute(r, ot.ROW_SELECTION), P = _u(e, {
32188
+ row: r,
32189
+ index: i,
32190
+ isCheckAll: !1
32191
+ });
32192
+ return f(qn, {
32193
+ beforeChange: T,
32194
+ disabled: !P,
32195
+ indeterminate: $,
32196
+ modelValue: L,
32197
+ onChange: E
32198
+ }, null);
32199
+ }, C = () => {
32200
+ var $;
32201
+ const E = () => {
32202
+ if (mn(o, "type", [o, r]) === "index")
32203
+ return t.getRowAttribute(r, ot.ROW_INDEX);
32204
+ const P = mn(o, "field", [o, r]), I = Cu(r, P);
32205
+ if (typeof o.render == "function")
32206
+ return w();
32207
+ if (typeof I == "boolean")
32208
+ return String(I);
32209
+ if (!I && typeof I != "number") {
32210
+ const {
32211
+ emptyCellText: A
32212
+ } = e;
32213
+ if (A)
32214
+ return typeof A == "function" ? A(r, o, i, t.tableRowList.value) : A;
32215
+ }
32216
+ return typeof I == "object" ? JSON.stringify(bi(I)) : I;
32217
+ }, T = {
32218
+ expand: () => u ? "" : O(),
32219
+ selection: () => b(),
32220
+ drag: _
32221
+ };
32222
+ return (($ = T[o.type]) == null ? void 0 : $.call(T, r, o, i, t)) ?? E();
32223
+ }, w = () => {
32224
+ const E = Cu(r, mn(o, "field", [o, r])), T = r;
32225
+ return o.render({
32226
+ cell: E,
32227
+ data: T,
32228
+ row: r,
32229
+ column: o,
32230
+ index: i,
32231
+ rows: t.tableRowList.value
32232
+ });
32233
+ }, x = () => {
32234
+ var $, L;
32235
+ const T = t.getRowAttribute(r, ot.ROW_EXPAND) ? f(uo, null, null) : f(mo, null, null);
32236
+ return f("span", null, [[T, ((L = ($ = n.slots).expandContent) == null ? void 0 : L.call($, r)) ?? ""]]);
32237
+ }, N = (E) => {
32238
+ t.setRowExpand(r, !t.getRowAttribute(r, ot.ROW_EXPAND)), n.emit(Pt.ROW_EXPAND_CLICK, {
32239
+ row: r,
32240
+ column: o,
32241
+ index: i,
32242
+ rows: t.tableRowList.value,
32243
+ e: E
32244
+ });
32245
+ }, O = () => f("span", {
32246
+ class: "expand-btn-action",
32247
+ onClick: (T) => N(T)
32248
+ }, [(() => {
32249
+ var T, $;
32250
+ return typeof o.render == "function" ? w() : (($ = (T = n.slots).expandCell) == null ? void 0 : $.call(T, {
32251
+ row: r,
32252
+ column: o,
32253
+ index: i,
32254
+ rows: t
32255
+ })) ?? x();
32256
+ })()]), _ = () => {
32257
+ var L, P, I;
32258
+ const E = ((L = e.rowDraggable) == null ? void 0 : L.render) ?? e.rowDraggable;
32259
+ if (typeof E == "function")
32260
+ return E(r, o, i, t.tableRowList.value);
32261
+ const T = ((P = e.rowDraggable) == null ? void 0 : P.fontSize) ?? "14px";
32262
+ return ((I = e.rowDraggable) == null ? void 0 : I.icon) ?? f(ld, {
32263
+ style: `'--font-size: ${T};'`,
32264
+ class: "drag-cell"
32265
+ }, null);
32266
+ };
32267
+ return {
32268
+ renderCell: C
32269
+ };
32270
+ };
32127
32271
  function sm(e) {
32128
32272
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !an(e);
32129
32273
  }
32130
- const N0 = 32, oq = /* @__PURE__ */ Te({
32274
+ const N0 = 32, cq = /* @__PURE__ */ Te({
32131
32275
  name: "HeadFilter",
32132
32276
  props: {
32133
32277
  column: kd,
@@ -32287,7 +32431,7 @@ const N0 = 32, oq = /* @__PURE__ */ Te({
32287
32431
  }, [P(), I()])])
32288
32432
  });
32289
32433
  }
32290
- }), cq = /* @__PURE__ */ Te({
32434
+ }), uq = /* @__PURE__ */ Te({
32291
32435
  name: "HeadSort",
32292
32436
  props: {
32293
32437
  column: kd,
@@ -32332,10 +32476,10 @@ const N0 = 32, oq = /* @__PURE__ */ Te({
32332
32476
  }, null)]);
32333
32477
  }
32334
32478
  });
32335
- function uq(e) {
32479
+ function dq(e) {
32336
32480
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !an(e);
32337
32481
  }
32338
- const dq = ({
32482
+ const fq = ({
32339
32483
  props: e,
32340
32484
  columns: t,
32341
32485
  rows: n,
@@ -32354,7 +32498,7 @@ const dq = ({
32354
32498
  index: i,
32355
32499
  type: P
32356
32500
  });
32357
- }, g = () => f(cq, {
32501
+ }, g = () => f(uq, {
32358
32502
  active: u.value,
32359
32503
  column: r,
32360
32504
  defaultSort: o.value,
@@ -32378,7 +32522,7 @@ const dq = ({
32378
32522
  index: i
32379
32523
  });
32380
32524
  };
32381
- return f(oq, {
32525
+ return f(cq, {
32382
32526
  height: e.headHeight,
32383
32527
  column: r,
32384
32528
  onChange: T,
@@ -32436,7 +32580,7 @@ const dq = ({
32436
32580
  parentSetting: e.showOverflowTooltip,
32437
32581
  resizerWay: e.resizerWay,
32438
32582
  title: $
32439
- }, uq(L) ? L : {
32583
+ }, dq(L) ? L : {
32440
32584
  default: () => [L]
32441
32585
  });
32442
32586
  }, x = () => {
@@ -32460,150 +32604,6 @@ const dq = ({
32460
32604
  onClick: () => x()
32461
32605
  }, t.resolveEventListener(r)), [w()])
32462
32606
  };
32463
- }, fq = ({
32464
- props: e,
32465
- rows: t,
32466
- ctx: n,
32467
- columns: s,
32468
- row: r,
32469
- index: i,
32470
- column: o,
32471
- isChild: u = !1,
32472
- multiShiftKey: c
32473
- }) => {
32474
- const {
32475
- isShiftKeyDown: g,
32476
- getStore: d,
32477
- setStore: h,
32478
- setStoreStart: p,
32479
- clearStoreStart: y
32480
- } = c, b = () => {
32481
- const E = (I, A) => {
32482
- A.stopImmediatePropagation(), A.preventDefault(), A.stopPropagation(), g.value || (I ? p(r, i) : y()), t.setRowSelection(r, I), s.setColumnAttribute(o, ke.SELECTION_INDETERMINATE, t.getRowIndeterminate()), s.setColumnAttribute(o, ke.SELECTION_VAL, t.getRowCheckedAllValue()), n.emit(Pt.ROW_SELECT, {
32483
- row: r,
32484
- index: i,
32485
- checked: I,
32486
- data: e.data
32487
- }), n.emit(Pt.ROW_SELECT_CHANGE, {
32488
- row: r,
32489
- index: i,
32490
- checked: I,
32491
- data: e.data
32492
- });
32493
- }, T = () => {
32494
- if (g.value) {
32495
- const I = h(r, i);
32496
- if (I) {
32497
- const {
32498
- start: A,
32499
- end: D
32500
- } = d(), V = A.index < D.index ? A.index : D.index, M = A.index < D.index ? D.index : A.index;
32501
- (t.pageRowList.slice(V, M + 1) ?? []).forEach((j) => {
32502
- _u(e, {
32503
- row: r,
32504
- index: i,
32505
- isCheckAll: !1
32506
- }) && t.setRowSelection(j, !0);
32507
- });
32508
- }
32509
- return n.emit(Pt.ROW_SELECT, {
32510
- row: r,
32511
- index: i,
32512
- checked: !0,
32513
- data: e.data,
32514
- isShiftKeyDown: !0
32515
- }), n.emit(Pt.ROW_SELECT_CHANGE, {
32516
- row: r,
32517
- index: i,
32518
- checked: !0,
32519
- data: e.data,
32520
- isShiftKeyDown: !0
32521
- }), Promise.resolve(!I);
32522
- }
32523
- return Promise.resolve(!0);
32524
- }, $ = t.getRowAttribute(r, ot.ROW_SELECTION_INDETERMINATE), L = t.getRowAttribute(r, ot.ROW_SELECTION), P = _u(e, {
32525
- row: r,
32526
- index: i,
32527
- isCheckAll: !1
32528
- });
32529
- return f(qn, {
32530
- beforeChange: T,
32531
- disabled: !P,
32532
- indeterminate: $,
32533
- modelValue: L,
32534
- onChange: E
32535
- }, null);
32536
- }, C = () => {
32537
- var $;
32538
- const E = () => {
32539
- if (mn(o, "type", [o, r]) === "index")
32540
- return t.getRowAttribute(r, ot.ROW_INDEX);
32541
- const P = mn(o, "field", [o, r]), I = Cu(r, P);
32542
- if (typeof o.render == "function")
32543
- return w();
32544
- if (typeof I == "boolean")
32545
- return String(I);
32546
- if (!I && typeof I != "number") {
32547
- const {
32548
- emptyCellText: A
32549
- } = e;
32550
- if (A)
32551
- return typeof A == "function" ? A(r, o, i, t.tableRowList.value) : A;
32552
- }
32553
- return typeof I == "object" ? JSON.stringify(bi(I)) : I;
32554
- }, T = {
32555
- expand: () => u ? "" : O(),
32556
- selection: () => b(),
32557
- drag: _
32558
- };
32559
- return (($ = T[o.type]) == null ? void 0 : $.call(T, r, o, i, t)) ?? E();
32560
- }, w = () => {
32561
- const E = Cu(r, mn(o, "field", [o, r])), T = r;
32562
- return o.render({
32563
- cell: E,
32564
- data: T,
32565
- row: r,
32566
- column: o,
32567
- index: i,
32568
- rows: t.tableRowList.value
32569
- });
32570
- }, x = () => {
32571
- var $, L;
32572
- const T = t.getRowAttribute(r, ot.ROW_EXPAND) ? f(uo, null, null) : f(mo, null, null);
32573
- return f("span", null, [[T, ((L = ($ = n.slots).expandContent) == null ? void 0 : L.call($, r)) ?? ""]]);
32574
- }, N = (E) => {
32575
- t.setRowExpand(r, !t.getRowAttribute(r, ot.ROW_EXPAND)), n.emit(Pt.ROW_EXPAND_CLICK, {
32576
- row: r,
32577
- column: o,
32578
- index: i,
32579
- rows: t.tableRowList.value,
32580
- e: E
32581
- });
32582
- }, O = () => f("span", {
32583
- class: "expand-btn-action",
32584
- onClick: (T) => N(T)
32585
- }, [(() => {
32586
- var T, $;
32587
- return typeof o.render == "function" ? w() : (($ = (T = n.slots).expandCell) == null ? void 0 : $.call(T, {
32588
- row: r,
32589
- column: o,
32590
- index: i,
32591
- rows: t
32592
- })) ?? x();
32593
- })()]), _ = () => {
32594
- var L, P, I;
32595
- const E = ((L = e.rowDraggable) == null ? void 0 : L.render) ?? e.rowDraggable;
32596
- if (typeof E == "function")
32597
- return E(r, o, i, t.tableRowList.value);
32598
- const T = ((P = e.rowDraggable) == null ? void 0 : P.fontSize) ?? "14px";
32599
- return ((I = e.rowDraggable) == null ? void 0 : I.icon) ?? f(ld, {
32600
- style: `'--font-size: ${T};'`,
32601
- class: "drag-cell"
32602
- }, null);
32603
- };
32604
- return {
32605
- renderCell: C
32606
- };
32607
32607
  }, hq = (e) => {
32608
32608
  const t = U(!1), n = {
32609
32609
  start: null,
@@ -32673,7 +32673,7 @@ const mq = ({
32673
32673
  default: () => [f("tr", null, [n.visibleColumns.map((V, M) => {
32674
32674
  const {
32675
32675
  getTH: j
32676
- } = dq({
32676
+ } = fq({
32677
32677
  props: e,
32678
32678
  ctx: t,
32679
32679
  columns: n,
@@ -32779,13 +32779,13 @@ const mq = ({
32779
32779
  "is-last": D + me >= Y
32780
32780
  }], oe = `${Z}_${W}`, R = `${Z}_${W}_cell`, {
32781
32781
  renderCell: te
32782
- } = fq({
32782
+ } = oq({
32783
32783
  props: e,
32784
32784
  rows: s,
32785
32785
  ctx: t,
32786
32786
  columns: n,
32787
32787
  row: A,
32788
- index: W,
32788
+ index: D,
32789
32789
  column: K,
32790
32790
  isChild: he,
32791
32791
  multiShiftKey: g
@@ -32807,15 +32807,15 @@ const mq = ({
32807
32807
  style: Q,
32808
32808
  class: G,
32809
32809
  colspan: ae,
32810
- rowspan: me,
32811
32810
  "data-id": oe,
32811
+ rowspan: me,
32812
32812
  onClick: (z) => X(z, Pt.CELL_CLICK),
32813
32813
  onDblclick: (z) => X(z, Pt.CELL_DBL_CLICK)
32814
32814
  }, [f(zv, {
32815
32815
  key: R,
32816
- "data-id": R,
32817
32816
  class: ce,
32818
32817
  column: K,
32818
+ "data-id": R,
32819
32819
  observerResize: e.observerResize,
32820
32820
  parentSetting: e.showOverflowTooltip,
32821
32821
  row: A
@@ -36492,7 +36492,7 @@ const tX = (e, t) => {
36492
36492
  }, hX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
36493
36493
  __proto__: null,
36494
36494
  $bkPopover: Lh
36495
- }, Symbol.toStringTag, { value: "Module" })), rX = "2.0.1-beta.24";
36495
+ }, Symbol.toStringTag, { value: "Module" })), rX = "2.0.1-beta.26";
36496
36496
  window.__bkui_vue_version__ = rX;
36497
36497
  export {
36498
36498
  Lh as $bkPopover,